@wacht/jsx 1.0.0-beta.30 → 1.0.0-beta.31
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 +78 -78
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +1107 -1099
- 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"),Sn=require("react-dom"),Bs=require("@wacht/types");function ju(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const a in e)if(a!=="default"){const n=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(r,a,n.get?n:{enumerable:!0,get:()=>e[a]})}}return r.default=e,Object.freeze(r)}const o=ju(c),Ws="__dev_session__",_u="__dev_session_updated_at",ku="__dev_session_updated_at";function ta(){return typeof window<"u"&&typeof document<"u"}function Gs(e){if(!ta())return null;const r=document.cookie?document.cookie.split(";"):[];for(const a of r){const[n,...s]=a.trim().split("=");if(n===e)return decodeURIComponent(s.join("="))}return null}function qs(e,r){ta()&&(document.cookie=`${e}=${encodeURIComponent(r)}; Path=/; Secure; SameSite=Lax`)}function Io(e){if(!ta())return null;try{return window.localStorage.getItem(e)}catch{return null}}function bn(e,r){if(ta())try{window.localStorage.setItem(e,r)}catch{}}function Ks(e){if(!e)return 0;const r=Number(e);return Number.isFinite(r)?r:0}function Cu(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 Su(e){const r=Cu(e);if(!r)return"";const a=r.replace(/[^a-z0-9]+/g,"_").replace(/^_+|_+$/g,"").slice(0,64);return a?`_${a}`:""}function t0(e){const r=Su(e);return{cookie:`${Ws}${r}`,updatedAtCookie:`${_u}${r}`,storage:`${Ws}${r}`,updatedAtStorage:`${ku}${r}`}}function Eu(e){const r=Gs(e.cookie);if(!r)return null;const a=Ks(Gs(e.updatedAtCookie)),n=Io(e.storage),s=Ks(Io(e.updatedAtStorage)),i=a>s||a===0&&r!==n;return(!n||i)&&(bn(e.storage,r),bn(e.updatedAtStorage,String(a||Date.now()))),r}function ht(e){if(!ta())return null;const r=t0(e),a=Eu(r);return a||Io(r.storage)}function dn(e,r){if(!ta()||!e)return;const a=t0(r),n=Date.now();qs(a.cookie,e),qs(a.updatedAtCookie,String(n)),bn(a.storage,e),bn(a.updatedAtStorage,String(n))}const gs=c.createContext(void 0);function Au({children:e,publicKey:r,adapter:a,uiOverrides:n}){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,v]=r.split("_");if(!v)throw new Error("Invalid public key");let b=atob(v),x=g==="test";const w=b;let A=null;if(new URLSearchParams(window.location.search).has("__dev_session__")){A=new URLSearchParams(window.location.search).get("__dev_session__"),dn(A,w);const k=new URL(window.location.href);k.searchParams.delete("__dev_session__"),window.history.replaceState({},"",k.toString())}else A=ht(w),A&&dn(A,w);let j={};const S=new URLSearchParams;x?S.append("__dev_session__",A??""):j={credentials:"include"};const C=await fetch(`${b}/deployment${x?"?":""}${S.toString()}`,j);if(!C.ok){i(!1);return}const _=await C.json();_.data.backend_host=b,n&&(_.data.ui_settings={..._.data.ui_settings,...n}),d(_.data),x&&C.headers.get("x-development-session")&&dn(C.headers.get("x-development-session"),w),i(!1)}catch{i(!1)}}p()},[r,n]);const f=c.useMemo(()=>({loading:s,deployment:h,adapter:a}),[s,h,a]);return t.jsx(gs.Provider,{value:f,children:e})}async function V(e){if(!e.ok){let a=`HTTP ${e.status}: ${e.statusText}`,n;try{const i=await e.json();i.errors&&i.errors.length>0?(a=i.errors[0].message||a,n=i.errors[0].code):i.message&&(a=i.message)}catch{}const s=new Error(a);throw n&&(s.code=n),s}return{data:(await e.json()).data}}function Ae(){const e=c.useContext(gs);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}=Ae(),a=c.useCallback(async(n,s)=>{if(r||!e)throw new Error("Deployment is loading");const i=zu(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??""}${n}`);e.mode==="staging"&&d.searchParams.append("__dev_session__",ht(e.backend_host)??"");const u=await fetch(d,{...i,...s,headers:h});return e.mode==="staging"&&u.headers.get("x-development-session")&&dn(u.headers.get("x-development-session"),e.backend_host),u},[e,r]);return c.useMemo(()=>({client:a,loading:r}),[a,r])}function zu(e){return e.mode==="staging"?{}:{credentials:"include"}}var r0=(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))(r0||{});function $u(e,r){const a={username:Mu(e,r),email:Lu(e,r),phone:Ru(e,r),email_otp:Pu(e,r),magic_link:Tu(e,r),oauth:Fu(e),passkey:Zu(e),generic:Iu(e,r)};return function(s){return a[s]}}function Mu(e,r){return async({username:a,password:n})=>{var d,u;const s=new FormData;s.append("strategy","plain_username"),s.append("username",a),s.append("password",n);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 Lu(e,r){return async({email:a,password:n})=>{var d,u;const s=new FormData;s.append("strategy","plain_email"),s.append("email",a),s.append("password",n);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 Ru(e,r){return async({phone:a})=>{var h,d;const n=new FormData;n.append("strategy","phone_otp"),n.append("phone",a);const s=await e("/auth/signin",{method:"POST",body:n}),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 Pu(e,r){return async({email:a})=>{var h,d;const n=new FormData;n.append("strategy","email_otp"),n.append("email",a);const s=await e("/auth/signin",{method:"POST",body:n}),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 Tu(e,r){return async({email:a})=>{var h,d;const n=new FormData;n.append("strategy","magic_link"),n.append("email",a);const s=await e("/auth/signin",{method:"POST",body:n}),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 Fu(e){return async({provider:r,redirectUri:a})=>{const n=new URLSearchParams({provider:r});a&&n.append("redirect_uri",a);const s=await e(`/auth/oauth2/init?${n.toString()}`,{method:"POST"}),i=await V(s);return"data"in i&&i.data.oauth_url&&(window.location.href=i.data.oauth_url),i}}function ia(e){const r=new Uint8Array(e);let a="";for(let n=0;n<r.length;n++)a+=String.fromCharCode(r[n]);return btoa(a).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function Ys(e){const r=e.replace(/-/g,"+").replace(/_/g,"/"),a=r.padEnd(r.length+(4-r.length%4)%4,"="),n=atob(a),s=new Uint8Array(n.length);for(let i=0;i<n.length;i++)s[i]=n.charCodeAt(i);return s.buffer}function Zu(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 n=a.data.options.publicKey,s={challenge:Ys(n.challenge),timeout:n.timeout,rpId:n.rpId,userVerification:n.userVerification,allowCredentials:(f=n.allowCredentials)==null?void 0:f.map(p=>({type:p.type,id:Ys(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",ia(i.rawId)),d.append("type",i.type),d.append("clientDataJSON",ia(h.clientDataJSON)),d.append("authenticatorData",ia(h.authenticatorData)),d.append("signature",ia(h.signature)),h.userHandle&&d.append("userHandle",ia(h.userHandle));const u=await e("/auth/passkey/login/finish",{method:"POST",body:d});return V(u)}}function Iu(e,r){return async({email:a,username:n,password:s,phone:i,strategy:h})=>{var p,m;const d=new FormData;h&&d.append("strategy",h),a&&d.append("email",a),n&&d.append("username",n),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 a0(){const{client:e,loading:r}=je(),[a,n]=c.useState(null);return r?{loading:!0,signIn:null,signinAttempt:null,discardSignInAttempt:()=>{n(null)},setSignInAttempt:n}:{loading:!1,signinAttempt:a,signIn:{createStrategy:$u(e,n),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 n(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&&n(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:()=>{n(null)},setSignInAttempt:n}}function wa(e){const{loading:r,signIn:a,signinAttempt:n,discardSignInAttempt:s,setSignInAttempt:i}=a0();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:n,signIn:{create:h,completeVerification:a.completeVerification,prepareVerification:a.prepareVerification,completeProfile:a.completeProfile,identify:a.identify,initEnterpriseSso:a.initEnterpriseSso},discardSignInAttempt:s,setSignInAttempt:i}}function Ou(e,r,a){return{create:async n=>{var d,u,f;const s=new FormData;for(const[p,m]of Object.entries(n))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 n=>{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",n.strategy),s.searchParams.set("identifier_type","signup"),n.strategy==="phone_otp"&&n.lastDigits?s.searchParams.set("last_digits",n.lastDigits):n.strategy==="email_otp"&&n.redirectUri&&s.searchParams.set("redirect_uri",n.redirectUri);const i=await e(s.pathname+s.search,{method:"POST"});return V(i)},completeVerification:async n=>{var d,u;const s=new FormData;s.append("verification_code",n);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 n=>{try{const s=await e(`/deployment/invitations/validate?token=${encodeURIComponent(n)}`,{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 n0(){const{client:e,loading:r}=je(),[a,n]=c.useState(null);return r?{loading:!0,signUp:null,signupAttempt:null,discardSignupAttempt:()=>{n(null)}}:{loading:!1,signupAttempt:a,discardSignupAttempt:()=>{n(null)},signUp:Ou(e,a,n)}}var Ta={exports:{}},Vn={};/**
|
|
2
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),c=require("react"),Sn=require("react-dom"),Bs=require("@wacht/types");function ju(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const a in e)if(a!=="default"){const n=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(r,a,n.get?n:{enumerable:!0,get:()=>e[a]})}}return r.default=e,Object.freeze(r)}const o=ju(c),Ws="__dev_session__",_u="__dev_session_updated_at",ku="__dev_session_updated_at";function ta(){return typeof window<"u"&&typeof document<"u"}function Gs(e){if(!ta())return null;const r=document.cookie?document.cookie.split(";"):[];for(const a of r){const[n,...s]=a.trim().split("=");if(n===e)return decodeURIComponent(s.join("="))}return null}function qs(e,r){ta()&&(document.cookie=`${e}=${encodeURIComponent(r)}; Path=/; Secure; SameSite=Lax`)}function Zo(e){if(!ta())return null;try{return window.localStorage.getItem(e)}catch{return null}}function bn(e,r){if(ta())try{window.localStorage.setItem(e,r)}catch{}}function Ks(e){if(!e)return 0;const r=Number(e);return Number.isFinite(r)?r:0}function Cu(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 Su(e){const r=Cu(e);if(!r)return"";const a=r.replace(/[^a-z0-9]+/g,"_").replace(/^_+|_+$/g,"").slice(0,64);return a?`_${a}`:""}function t0(e){const r=Su(e);return{cookie:`${Ws}${r}`,updatedAtCookie:`${_u}${r}`,storage:`${Ws}${r}`,updatedAtStorage:`${ku}${r}`}}function Eu(e){const r=Gs(e.cookie);if(!r)return null;const a=Ks(Gs(e.updatedAtCookie)),n=Zo(e.storage),s=Ks(Zo(e.updatedAtStorage)),i=a>s||a===0&&r!==n;return(!n||i)&&(bn(e.storage,r),bn(e.updatedAtStorage,String(a||Date.now()))),r}function ht(e){if(!ta())return null;const r=t0(e),a=Eu(r);return a||Zo(r.storage)}function dn(e,r){if(!ta()||!e)return;const a=t0(r),n=Date.now();qs(a.cookie,e),qs(a.updatedAtCookie,String(n)),bn(a.storage,e),bn(a.updatedAtStorage,String(n))}const gs=c.createContext(void 0);function Au({children:e,publicKey:r,adapter:a,uiOverrides:n}){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,v]=r.split("_");if(!v)throw new Error("Invalid public key");let b=atob(v),x=g==="test";const w=b;let A=null;if(new URLSearchParams(window.location.search).has("__dev_session__")){A=new URLSearchParams(window.location.search).get("__dev_session__"),dn(A,w);const k=new URL(window.location.href);k.searchParams.delete("__dev_session__"),window.history.replaceState({},"",k.toString())}else A=ht(w),A&&dn(A,w);let j={};const S=new URLSearchParams;x?S.append("__dev_session__",A??""):j={credentials:"include"};const C=await fetch(`${b}/deployment${x?"?":""}${S.toString()}`,j);if(!C.ok){i(!1);return}const _=await C.json();_.data.backend_host=b,n&&(_.data.ui_settings={..._.data.ui_settings,...n}),d(_.data),x&&C.headers.get("x-development-session")&&dn(C.headers.get("x-development-session"),w),i(!1)}catch{i(!1)}}p()},[r,n]);const f=c.useMemo(()=>({loading:s,deployment:h,adapter:a}),[s,h,a]);return t.jsx(gs.Provider,{value:f,children:e})}async function V(e){if(!e.ok){let a=`HTTP ${e.status}: ${e.statusText}`,n;try{const i=await e.json();i.errors&&i.errors.length>0?(a=i.errors[0].message||a,n=i.errors[0].code):i.message&&(a=i.message)}catch{}const s=new Error(a);throw n&&(s.code=n),s}return{data:(await e.json()).data}}function Ae(){const e=c.useContext(gs);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}=Ae(),a=c.useCallback(async(n,s)=>{if(r||!e)throw new Error("Deployment is loading");const i=zu(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??""}${n}`);e.mode==="staging"&&d.searchParams.append("__dev_session__",ht(e.backend_host)??"");const u=await fetch(d,{...i,...s,headers:h});return e.mode==="staging"&&u.headers.get("x-development-session")&&dn(u.headers.get("x-development-session"),e.backend_host),u},[e,r]);return c.useMemo(()=>({client:a,loading:r}),[a,r])}function zu(e){return e.mode==="staging"?{}:{credentials:"include"}}var r0=(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))(r0||{});function $u(e,r){const a={username:Mu(e,r),email:Lu(e,r),phone:Ru(e,r),email_otp:Pu(e,r),magic_link:Tu(e,r),oauth:Fu(e),passkey:Iu(e),generic:Zu(e,r)};return function(s){return a[s]}}function Mu(e,r){return async({username:a,password:n})=>{var d,u;const s=new FormData;s.append("strategy","plain_username"),s.append("username",a),s.append("password",n);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 Lu(e,r){return async({email:a,password:n})=>{var d,u;const s=new FormData;s.append("strategy","plain_email"),s.append("email",a),s.append("password",n);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 Ru(e,r){return async({phone:a})=>{var h,d;const n=new FormData;n.append("strategy","phone_otp"),n.append("phone",a);const s=await e("/auth/signin",{method:"POST",body:n}),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 Pu(e,r){return async({email:a})=>{var h,d;const n=new FormData;n.append("strategy","email_otp"),n.append("email",a);const s=await e("/auth/signin",{method:"POST",body:n}),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 Tu(e,r){return async({email:a})=>{var h,d;const n=new FormData;n.append("strategy","magic_link"),n.append("email",a);const s=await e("/auth/signin",{method:"POST",body:n}),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 Fu(e){return async({provider:r,redirectUri:a})=>{const n=new URLSearchParams({provider:r});a&&n.append("redirect_uri",a);const s=await e(`/auth/oauth2/init?${n.toString()}`,{method:"POST"}),i=await V(s);return"data"in i&&i.data.oauth_url&&(window.location.href=i.data.oauth_url),i}}function ia(e){const r=new Uint8Array(e);let a="";for(let n=0;n<r.length;n++)a+=String.fromCharCode(r[n]);return btoa(a).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function Ys(e){const r=e.replace(/-/g,"+").replace(/_/g,"/"),a=r.padEnd(r.length+(4-r.length%4)%4,"="),n=atob(a),s=new Uint8Array(n.length);for(let i=0;i<n.length;i++)s[i]=n.charCodeAt(i);return s.buffer}function Iu(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 n=a.data.options.publicKey,s={challenge:Ys(n.challenge),timeout:n.timeout,rpId:n.rpId,userVerification:n.userVerification,allowCredentials:(f=n.allowCredentials)==null?void 0:f.map(p=>({type:p.type,id:Ys(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",ia(i.rawId)),d.append("type",i.type),d.append("clientDataJSON",ia(h.clientDataJSON)),d.append("authenticatorData",ia(h.authenticatorData)),d.append("signature",ia(h.signature)),h.userHandle&&d.append("userHandle",ia(h.userHandle));const u=await e("/auth/passkey/login/finish",{method:"POST",body:d});return V(u)}}function Zu(e,r){return async({email:a,username:n,password:s,phone:i,strategy:h})=>{var p,m;const d=new FormData;h&&d.append("strategy",h),a&&d.append("email",a),n&&d.append("username",n),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 a0(){const{client:e,loading:r}=je(),[a,n]=c.useState(null);return r?{loading:!0,signIn:null,signinAttempt:null,discardSignInAttempt:()=>{n(null)},setSignInAttempt:n}:{loading:!1,signinAttempt:a,signIn:{createStrategy:$u(e,n),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 n(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&&n(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:()=>{n(null)},setSignInAttempt:n}}function wa(e){const{loading:r,signIn:a,signinAttempt:n,discardSignInAttempt:s,setSignInAttempt:i}=a0();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:n,signIn:{create:h,completeVerification:a.completeVerification,prepareVerification:a.prepareVerification,completeProfile:a.completeProfile,identify:a.identify,initEnterpriseSso:a.initEnterpriseSso},discardSignInAttempt:s,setSignInAttempt:i}}function Ou(e,r,a){return{create:async n=>{var d,u,f;const s=new FormData;for(const[p,m]of Object.entries(n))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 n=>{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",n.strategy),s.searchParams.set("identifier_type","signup"),n.strategy==="phone_otp"&&n.lastDigits?s.searchParams.set("last_digits",n.lastDigits):n.strategy==="email_otp"&&n.redirectUri&&s.searchParams.set("redirect_uri",n.redirectUri);const i=await e(s.pathname+s.search,{method:"POST"});return V(i)},completeVerification:async n=>{var d,u;const s=new FormData;s.append("verification_code",n);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 n=>{try{const s=await e(`/deployment/invitations/validate?token=${encodeURIComponent(n)}`,{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 n0(){const{client:e,loading:r}=je(),[a,n]=c.useState(null);return r?{loading:!0,signUp:null,signupAttempt:null,discardSignupAttempt:()=>{n(null)}}:{loading:!1,signupAttempt:a,discardSignupAttempt:()=>{n(null)},signUp:Ou(e,a,n)}}var Ta={exports:{}},Vn={};/**
|
|
3
3
|
* @license React
|
|
4
4
|
* use-sync-external-store-shim.production.js
|
|
5
5
|
*
|
|
@@ -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 Js;function Vu(){return Js||(Js=1,process.env.NODE_ENV!=="production"&&(function(){function e(v,b){return v===b&&(v!==0||1/v===1/b)||v!==v&&b!==b}function r(v,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 x=b();if(!m){var w=b();i(x,w)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),m=!0)}w=h({inst:{value:x,getSnapshot:b}});var A=w[0].inst,j=w[1];return u(function(){A.value=x,A.getSnapshot=b,a(A)&&j({inst:A})},[v,x,b]),d(function(){return a(A)&&j({inst:A}),v(function(){a(A)&&j({inst:A})})},[v]),f(x),x}function a(v){var b=v.getSnapshot;v=v.value;try{var x=b();return!i(v,x)}catch{return!0}}function n(v,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"?n:r;Dn.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())})()),Dn}var Xs;function Du(){return Xs||(Xs=1,process.env.NODE_ENV==="production"?Ta.exports=Hu():Ta.exports=Vu()),Ta.exports}var Oo=Du();const o0=0,s0=1,i0=2,ei=3;var ti=Object.prototype.hasOwnProperty;function Ho(e,r){var a,n;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((n=e.length)===r.length)for(;n--&&Ho(e[n],r[n]););return n===-1}if(!a||typeof e=="object"){n=0;for(a in e)if(ti.call(e,a)&&++n&&!ti.call(r,a)||!(a in r)||!Ho(e[a],r[a]))return!1;return Object.keys(r).length===n}}return e!==e&&r!==r}const Tt=new WeakMap,Wt=()=>{},pt=Wt(),Vo=Object,Ee=e=>e===pt,$t=e=>typeof e=="function",ar=(e,r)=>({...e,...r}),c0=e=>$t(e.then),Nn={},Fa={},vs="undefined",Aa=typeof window!=vs,Do=typeof document!=vs,Nu=Aa&&"Deno"in window,Uu=()=>Aa&&typeof window.requestAnimationFrame!=vs,er=(e,r)=>{const a=Tt.get(e);return[()=>!Ee(r)&&e.get(r)||Nn,n=>{if(!Ee(r)){const s=e.get(r);r in Fa||(Fa[r]=s),a[5](r,ar(s,n),s||Nn)}},a[6],()=>!Ee(r)&&r in Fa?Fa[r]:!Ee(r)&&e.get(r)||Nn]};let No=!0;const Bu=()=>No,[Uo,Bo]=Aa&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[Wt,Wt],Wu=()=>{const e=Do&&document.visibilityState;return Ee(e)||e!=="hidden"},Gu=e=>(Do&&document.addEventListener("visibilitychange",e),Uo("focus",e),()=>{Do&&document.removeEventListener("visibilitychange",e),Bo("focus",e)}),qu=e=>{const r=()=>{No=!0,e()},a=()=>{No=!1};return Uo("online",r),Uo("offline",a),()=>{Bo("online",r),Bo("offline",a)}},Ku={isOnline:Bu,isVisible:Wu},Yu={initFocus:Gu,initReconnect:qu},ri=!c.useId,Yr=!Aa||Nu,Qu=e=>Uu()?window.requestAnimationFrame(e):setTimeout(e,1),un=Yr?c.useEffect:c.useLayoutEffect,Un=typeof navigator<"u"&&navigator.connection,ai=!Yr&&Un&&(["slow-2g","2g"].includes(Un.effectiveType)||Un.saveData),Za=new WeakMap,Ju=e=>Vo.prototype.toString.call(e),Bn=(e,r)=>e===`[object ${r}]`;let Xu=0;const Wo=e=>{const r=typeof e,a=Ju(e),n=Bn(a,"Date"),s=Bn(a,"RegExp"),i=Bn(a,"Object");let h,d;if(Vo(e)===e&&!n&&!s){if(h=Za.get(e),h)return h;if(h=++Xu+"~",Za.set(e,h),Array.isArray(e)){for(h="@",d=0;d<e.length;d++)h+=Wo(e[d])+",";Za.set(e,h)}if(i){h="#";const u=Vo.keys(e).sort();for(;!Ee(d=u.pop());)Ee(e[d])||(h+=d+":"+Wo(e[d])+",");Za.set(e,h)}}else h=n?e.toJSON():r=="symbol"?e.toString():r=="string"?JSON.stringify(e):""+e;return h},ka=e=>{if($t(e))try{e=e()}catch{e=""}const r=e;return e=typeof e=="string"?e:(Array.isArray(e)?e.length:e)?Wo(e):"",[e,r]};let e2=0;const Go=()=>++e2;async function l0(...e){const[r,a,n,s]=e,i=ar({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,v=[],b=r.keys();for(const x of b)!/^\$(inf|sub)\$/.test(x)&&g(r.get(x)._k)&&v.push(x);return Promise.all(v.map(m))}return m(a);async function m(g){const[v]=ka(g);if(!v)return;const[b,x]=er(r,v),[w,A,j,S]=Tt.get(r),C=()=>{const $=w[v];return($t(i.revalidate)?i.revalidate(b().data,g):i.revalidate!==!1)&&(delete j[v],delete S[v],$&&$[0])?$[0](i0).then(()=>b().data):b().data};if(e.length<3)return C();let _=n,k,y=!1;const M=Go();A[v]=[M,0];const z=!Ee(u),O=b(),I=O.data,P=O._c,T=Ee(P)?I:P;if(z&&(u=$t(u)?u(T,I):u,x({data:u,_c:T})),$t(_))try{_=_(T)}catch($){k=$,y=!0}if(_&&c0(_))if(_=await _.catch($=>{k=$,y=!0}),M!==A[v][0]){if(y)throw k;return _}else y&&z&&f(k)&&(h=!0,x({data:T,_c:pt}));if(h&&!y)if($t(h)){const $=h(_,T);x({data:$,error:pt,_c:pt})}else x({data:_,error:pt,_c:pt});if(A[v][1]=Go(),Promise.resolve(C()).then(()=>{x({_c:pt})}),y){if(p)throw k;return}return _}}const ni=(e,r)=>{for(const a in e)e[a][0]&&e[a][0](r)},t2=(e,r)=>{if(!Tt.has(e)){const a=ar(Yu,r),n=Object.create(null),s=l0.bind(pt,e);let i=Wt;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 v=h[p];if(v)for(const b of v)b(m,g)},f=()=>{if(!Tt.has(e)&&(Tt.set(e,[n,Object.create(null),Object.create(null),Object.create(null),s,u,d]),!Yr)){const p=a.initFocus(setTimeout.bind(pt,ni.bind(pt,n,o0))),m=a.initReconnect(setTimeout.bind(pt,ni.bind(pt,n,s0)));i=()=>{p&&p(),m&&m(),Tt.delete(e)}}};return f(),[e,s,f,i]}return[e,Tt.get(e)[4]]},r2=(e,r,a,n,s)=>{const i=a.errorRetryCount,h=s.retryCount,d=~~((Math.random()+.5)*(1<<(h<8?h:8)))*a.errorRetryInterval;!Ee(i)&&h>i||setTimeout(n,d,s)},a2=Ho,[xs,qr]=t2(new Map),n2=ar({onLoadingSlow:Wt,onSuccess:Wt,onError:Wt,onErrorRetry:r2,onDiscarded:Wt,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:ai?1e4:5e3,focusThrottleInterval:5*1e3,dedupingInterval:2*1e3,loadingTimeout:ai?5e3:3e3,compare:a2,isPaused:()=>!1,cache:xs,mutate:qr,fallback:{}},Ku),o2=(e,r)=>{const a=ar(e,r);if(r){const{use:n,fallback:s}=e,{use:i,fallback:h}=r;n&&i&&(a.use=n.concat(i)),s&&h&&(a.fallback=ar(s,h))}return a},s2=c.createContext({}),d0="$inf$",u0=Aa&&window.__SWR_DEVTOOLS_USE__,i2=u0?window.__SWR_DEVTOOLS_USE__:[],c2=()=>{u0&&(window.__SWR_DEVTOOLS_REACT__=c)},p0=e=>$t(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(e[1]===null?e[2]:e[1])||{}],h0=()=>{const e=c.useContext(s2);return c.useMemo(()=>ar(n2,e),[e])},l2=e=>(r,a,n)=>e(r,a&&((...i)=>{const[h]=ka(r),[,,,d]=Tt.get(xs);if(h.startsWith(d0))return a(...i);const u=d[h];return Ee(u)?a(...i):(delete d[h],u)}),n),d2=i2.concat(l2),u2=e=>function(...a){const n=h0(),[s,i,h]=p0(a),d=o2(n,h);let u=e;const{use:f}=d,p=(f||[]).concat(d2);for(let m=p.length;m--;)u=p[m](u);return u(s,i||d.fetcher||null,d)},p2=(e,r,a)=>{const n=r[e]||(r[e]=[]);return n.push(a),()=>{const s=n.indexOf(a);s>=0&&(n[s]=n[n.length-1],n.pop())}},h2=(e,r)=>(...a)=>{const[n,s,i]=p0(a),h=(i.use||[]).concat(r);return e(n,s,{...i,use:h})};c2();const Wn=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}}),Gn={dedupe:!0},oi=Promise.resolve(pt),f2=()=>Wt,m2=(e,r,a)=>{const{cache:n,compare:s,suspense:i,fallbackData:h,revalidateOnMount:d,revalidateIfStale:u,refreshInterval:f,refreshWhenHidden:p,refreshWhenOffline:m,keepPreviousData:g,strictServerPrefetchWarning:v}=a,[b,x,w,A]=Tt.get(n),[j,S]=ka(e),C=c.useRef(!1),_=c.useRef(!1),k=c.useRef(j),y=c.useRef(r),M=c.useRef(a),z=()=>M.current,O=()=>z().isVisible()&&z().isOnline(),[I,P,T,$]=er(n,j),E=c.useRef({}).current,F=Ee(h)?Ee(a.fallback)?pt:a.fallback[j]:h,L=(J,le)=>{for(const oe in E){const G=oe;if(G==="data"){if(!s(J[G],le[G])&&(!Ee(J[G])||!s(ce,le[G])))return!1}else if(le[G]!==J[G])return!1}return!0},H=!C.current,Z=c.useMemo(()=>{const J=I(),le=$(),oe=q=>{const de=ar(q);return delete de._k,(()=>{if(!j||!r||z().isPaused())return!1;if(H&&!Ee(d))return d;const We=Ee(F)?de.data:F;return Ee(We)||u})()?{isValidating:!0,isLoading:!0,...de}:de},G=oe(J),pe=J===le?G:oe(le);let fe=G;return[()=>{const q=oe(I());return L(q,fe)?(fe.data=q.data,fe.isLoading=q.isLoading,fe.isValidating=q.isValidating,fe.error=q.error,fe):(fe=q,q)},()=>pe]},[n,j]),R=Oo.useSyncExternalStore(c.useCallback(J=>T(j,(le,oe)=>{L(oe,le)||J()}),[n,j]),Z[0],Z[1]),W=b[j]&&b[j].length>0,D=R.data,B=Ee(D)?F&&c0(F)?Wn(F):F:D,Y=R.error,X=c.useRef(B),ce=g?Ee(D)?Ee(X.current)?B:X.current:D:B,me=j&&Ee(B),te=c.useRef(null);!Yr&&Oo.useSyncExternalStore(f2,()=>(te.current=!1,te),()=>(te.current=!0,te));const xe=te.current;v&&xe&&!i&&me&&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 re=!j||!r||z().isPaused()||W&&!Ee(Y)?!1:H&&!Ee(d)?d:i?Ee(B)?!1:u:Ee(B)||u,U=H&&re,Ye=Ee(R.isValidating)?U:R.isValidating,Te=Ee(R.isLoading)?U:R.isLoading,Ve=c.useCallback(async J=>{const le=y.current;if(!j||!le||_.current||z().isPaused())return!1;let oe,G,pe=!0;const fe=J||{},q=!w[j]||!fe.dedupe,de=()=>ri?!_.current&&j===k.current&&C.current:j===k.current,Be={isValidating:!1,isLoading:!1},We=()=>{P(Be)},Q=()=>{const he=w[j];he&&he[1]===G&&delete w[j]},se={isValidating:!0};Ee(I().data)&&(se.isLoading=!0);try{if(q&&(P(se),a.loadingTimeout&&Ee(I().data)&&setTimeout(()=>{pe&&de()&&z().onLoadingSlow(j,a)},a.loadingTimeout),w[j]=[le(S),Go()]),[oe,G]=w[j],oe=await oe,q&&setTimeout(Q,a.dedupingInterval),!w[j]||w[j][1]!==G)return q&&de()&&z().onDiscarded(j),!1;Be.error=pt;const he=x[j];if(!Ee(he)&&(G<=he[0]||G<=he[1]||he[1]===0))return We(),q&&de()&&z().onDiscarded(j),!1;const _e=I().data;Be.data=s(_e,oe)?_e:oe,q&&de()&&z().onSuccess(oe,j,a)}catch(he){Q();const _e=z(),{shouldRetryOnError:ke}=_e;_e.isPaused()||(Be.error=he,q&&de()&&(_e.onError(he,j,_e),(ke===!0||$t(ke)&&ke(he))&&(!z().revalidateOnFocus||!z().revalidateOnReconnect||O())&&_e.onErrorRetry(he,j,_e,Ge=>{const dt=b[j];dt&&dt[0]&&dt[0](ei,Ge)},{retryCount:(fe.retryCount||0)+1,dedupe:!0})))}return pe=!1,We(),!0},[j,n]),Ue=c.useCallback((...J)=>l0(n,k.current,...J),[]);if(un(()=>{y.current=r,M.current=a,Ee(D)||(X.current=D)}),un(()=>{if(!j)return;const J=Ve.bind(pt,Gn);let le=0;z().revalidateOnFocus&&(le=Date.now()+z().focusThrottleInterval);const G=p2(j,b,(pe,fe={})=>{if(pe==o0){const q=Date.now();z().revalidateOnFocus&&q>le&&O()&&(le=q+z().focusThrottleInterval,J())}else if(pe==s0)z().revalidateOnReconnect&&O()&&J();else{if(pe==i0)return Ve();if(pe==ei)return Ve(fe)}});return _.current=!1,k.current=j,C.current=!0,P({_k:S}),re&&(w[j]||(Ee(B)||Yr?J():Qu(J))),()=>{_.current=!0,G()}},[j]),un(()=>{let J;function le(){const G=$t(f)?f(I().data):f;G&&J!==-1&&(J=setTimeout(oe,G))}function oe(){!I().error&&(p||z().isVisible())&&(m||z().isOnline())?Ve(Gn).then(le):le()}return le(),()=>{J&&(clearTimeout(J),J=-1)}},[f,p,m,j]),c.useDebugValue(ce),i){if(!ri&&Yr&&me)throw new Error("Fallback data is required when using Suspense in SSR.");me&&(y.current=r,M.current=a,_.current=!1);const J=A[j],le=!Ee(J)&&me?Ue(J):oi;if(Wn(le),!Ee(Y)&&me)throw Y;const oe=me?Ve(Gn):oi;!Ee(ce)&&me&&(oe.status="fulfilled",oe.value=!0),Wn(oe)}return{mutate:Ue,get data(){return E.data=!0,ce},get error(){return E.error=!0,Y},get isValidating(){return E.isValidating=!0,Ye},get isLoading(){return E.isLoading=!0,Te}}},$e=u2(m2),yt=()=>{const{adapter:e,deployment:r}=Ae(),a=e.useNavigate(),n=(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:n,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__",ht(r.backend_host)??""),n(`${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__",ht(r.backend_host)??""),n(`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__",ht(r.backend_host)??""),n(`${r.ui_settings.sign_up_page_url}?${p.toString()}`,{replace:!0})}}};async function g2(e){const r=await e("/session",{method:"GET"});return(await V(r)).data}async function v2(e,r){const a=await e(`/session/switch-sign-in?sign_in_id=${r}`,{method:"POST"});return V(a)}async function x2(e,r){const a=r?`/session/sign-out?sign_in_id=${r}`:"/session/sign-out",n=await e(a,{method:"POST"});return V(n)}async function b2(e,r){const a=await e(`/session/switch-organization${r?`?organization_id=${r}`:""}`,{method:"POST"});return V(a)}async function w2(e,r){const a=await e(`/session/switch-workspace?workspace_id=${r}`,{method:"POST"});return V(a)}async function y2(e,r){const a=await e(`/session/ticket/exchange?ticket=${encodeURIComponent(r)}`,{method:"GET"});return V(a)}const qo=new Map,ga=new Map;function Mt(){qo.clear(),ga.clear()}async function j2(e,r){const a=await e(`/session/token${r?`?template=${r}`:""}`);return V(a)}function st(){const{client:e,loading:r}=je(),{deployment:a}=Ae(),{navigate:n}=yt(),{cache:s}=h0(),{data:i,error:h,mutate:d,isLoading:u}=$e(r?null:"/session",()=>g2(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=qo.get(m);if(g&&g.expires>Date.now())return(g==null?void 0:g.token)||"";ga.get(m)||ga.set(m,j2(e,m));const v=await ga.get(m);return ga.delete(m),qo.set(m,v.data),v.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 v2(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 x2(e,m);const g=["/session","/user","/me/signins","/me/organization-memberships","/me/workspace-memberships","wacht-notifications:scope-unread"],v=["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 x of b){let w=!1;(g.includes(x)||typeof x=="string"&&v.some(A=>x.startsWith(A)))&&(w=!0),w&&s.delete(x)}}Mt(),await d(void 0,{revalidate:!0}),a!=null&&a.ui_settings&&(m&&a.ui_settings.after_sign_out_one_page_url?n(a.ui_settings.after_sign_out_one_page_url):!m&&a.ui_settings.after_sign_out_all_page_url&&n(a.ui_settings.after_sign_out_all_page_url))},switchOrganization:async m=>{await b2(e,m),Mt(),await d(void 0,{revalidate:!0})},switchWorkspace:async m=>{await w2(e,m),Mt(),await d(void 0,{revalidate:!0})},exchangeTicket:async m=>{await y2(e,m),Mt(),await d(void 0,{revalidate:!0})},getToken:p,refetch:f}}const Zt=()=>{const{organizationMemberships:e,refetch:r,loading:a}=Kt(),{client:n}=je(),{refetch:s}=st(),i=c.useCallback(async H=>(await V(await n(`/organizations/${H.id}/roles`,{method:"GET"}))).data,[n]),h=c.useCallback(async(H,Z)=>{const R=new URLSearchParams;return Z&&(R.set("page",Z.page.toString()),R.set("limit",Z.limit.toString()),Z.search&&R.set("search",Z.search)),(await V(await n(`/organizations/${H.id}/members?${R.toString()}`,{method:"GET"}))).data},[n]),d=c.useCallback(async H=>(await V(await n(`/organizations/${H.id}/invitations`,{method:"GET"}))).data,[n]),u=c.useCallback(async H=>(await V(await n(`/organizations/${H.id}/domains`,{method:"GET"}))).data,[n]),f=c.useCallback(async(H,Z)=>{await n(`/organizations/${H.id}/members/${Z.id}/remove`,{method:"POST"})},[n]),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 R=await V(await n("/organizations",{method:"POST",body:Z}));return Mt(),await r(),await s(),R},[s,r,n]),m=c.useCallback(async(H,Z)=>{const R=Object.entries(Z).reduce((D,[B,Y])=>(Y!=null&&(Array.isArray(Y)?Y.forEach(X=>D.append(B,X)):D.append(B,Y)),D),new FormData),W=await V(await n(`/organizations/${H.id}/update`,{method:"POST",body:R}));return await r(),W},[r,n]),g=c.useCallback(async(H,Z)=>{await n(`/organizations/${H.id}/roles/${Z.id}/remove`,{method:"POST"})},[n]),v=c.useCallback(async(H,Z)=>{const R=new FormData;return R.append("domain",Z.fqdn),await V(await n(`/organizations/${H.id}/domains`,{method:"POST",body:R}))},[n]),b=c.useCallback(async(H,Z)=>await V(await n(`/organizations/${H.id}/domains/${Z.id}/verify`,{method:"POST"})),[n]),x=c.useCallback(async(H,Z)=>await V(await n(`/organizations/${H.id}/domains/${Z.id}/delete`,{method:"POST"})),[n]),w=c.useCallback(async H=>(await V(await n(`/organizations/${H.id}/enterprise-connections`,{method:"GET"}))).data,[n]),A=c.useCallback(async(H,Z)=>{const R=new FormData;return R.append("protocol",Z.protocol),Z.domain_id&&R.append("domain_id",Z.domain_id),Z.idp_entity_id&&R.append("idp_entity_id",Z.idp_entity_id),Z.idp_sso_url&&R.append("idp_sso_url",Z.idp_sso_url),Z.idp_certificate&&R.append("idp_certificate",Z.idp_certificate),Z.oidc_client_id&&R.append("oidc_client_id",Z.oidc_client_id),Z.oidc_client_secret&&R.append("oidc_client_secret",Z.oidc_client_secret),Z.oidc_issuer_url&&R.append("oidc_issuer_url",Z.oidc_issuer_url),Z.oidc_scopes&&R.append("oidc_scopes",Z.oidc_scopes),Z.jit_enabled!==void 0&&R.append("jit_enabled",String(Z.jit_enabled)),Z.attribute_mapping&&R.append("attribute_mapping",JSON.stringify(Z.attribute_mapping)),(await V(await n(`/organizations/${H.id}/enterprise-connections`,{method:"POST",body:R}))).data},[n]),j=c.useCallback(async(H,Z,R)=>{const W=new FormData;return R.domain_id&&W.append("domain_id",R.domain_id),R.idp_entity_id&&W.append("idp_entity_id",R.idp_entity_id),R.idp_sso_url&&W.append("idp_sso_url",R.idp_sso_url),R.idp_certificate&&W.append("idp_certificate",R.idp_certificate),R.oidc_client_id&&W.append("oidc_client_id",R.oidc_client_id),R.oidc_client_secret&&W.append("oidc_client_secret",R.oidc_client_secret),R.oidc_issuer_url&&W.append("oidc_issuer_url",R.oidc_issuer_url),R.oidc_scopes&&W.append("oidc_scopes",R.oidc_scopes),R.attribute_mapping&&W.append("attribute_mapping",JSON.stringify(R.attribute_mapping)),(await V(await n(`/organizations/${H.id}/enterprise-connections/${Z}/update`,{method:"POST",body:W}))).data},[n]),S=c.useCallback(async(H,Z)=>{await n(`/organizations/${H.id}/enterprise-connections/${Z}/delete`,{method:"POST"})},[n]),C=c.useCallback(async(H,Z)=>{const R=new FormData;return R.append("protocol",Z.protocol),Z.idp_entity_id&&R.append("idp_entity_id",Z.idp_entity_id),Z.idp_sso_url&&R.append("idp_sso_url",Z.idp_sso_url),Z.idp_certificate&&R.append("idp_certificate",Z.idp_certificate),Z.oidc_issuer_url&&R.append("oidc_issuer_url",Z.oidc_issuer_url),Z.oidc_client_id&&R.append("oidc_client_id",Z.oidc_client_id),Z.oidc_client_secret&&R.append("oidc_client_secret",Z.oidc_client_secret),(await V(await n(`/organizations/${H.id}/enterprise-connections/test`,{method:"POST",body:R}))).data},[n]),_=c.useCallback(async(H,Z)=>(await V(await n(`/organizations/${H.id}/enterprise-connections/${Z}/test`,{method:"POST"}))).data,[n]),k=c.useCallback(async(H,Z)=>(await V(await n(`/organizations/${H.id}/enterprise-connections/${Z}/scim/token`,{method:"POST"}))).data,[n]),y=c.useCallback(async(H,Z)=>(await V(await n(`/organizations/${H.id}/enterprise-connections/${Z}/scim/token`,{method:"GET"}))).data,[n]),M=c.useCallback(async(H,Z)=>{await n(`/organizations/${H.id}/enterprise-connections/${Z}/scim/token/revoke`,{method:"POST"})},[n]),z=c.useCallback(async(H,Z)=>{const R=new FormData;return R.append("name",Z.name),Z.permissions&&Z.permissions.forEach((D,B)=>{R.append(`permissions[${B}]`,D)}),await V(await n(`/organizations/${H.id}/roles`,{method:"POST",body:R}))},[n]),O=c.useCallback(async H=>(await V(await n(`/organizations/${H.id}/leave`,{method:"POST"}))).data,[n]),I=c.useCallback(async H=>{const Z=await V(await n(`/organizations/${H.id}/delete`,{method:"POST"}));return Mt(),await r(),await s(),Z.data},[n,r,s]),P=c.useCallback(async(H,Z,R)=>(await V(await n(`/organizations/${H.id}/members/${Z.id}/roles/${R.id}/add`,{method:"POST"}))).data,[n]),T=c.useCallback(async(H,Z,R)=>(await V(await n(`/organizations/${H.id}/members/${Z.id}/roles/${R.id}/remove`,{method:"POST"}))).data,[n]),$=c.useCallback(async(H,Z)=>{var D,B;const R=new FormData;return R.append("email",Z.email),R.append("role_id",Z.organizationRole.id),(D=Z.workspace)!=null&&D.id&&R.append("workspace_id",Z.workspace.id),(B=Z.workspaceRole)!=null&&B.id&&R.append("workspace_role_id",Z.workspaceRole.id),(await V(await n(`/organizations/${H.id}/invitations`,{method:"POST",body:R}))).data},[n]),E=c.useCallback(async(H,Z)=>(await V(await n(`/organizations/${H.id}/invitations/${Z.id}/discard`,{method:"POST"}))).data,[n]),F=c.useCallback(async(H,Z)=>(await V(await n(`/organizations/${H.id}/invitations/${Z.id}/resend`,{method:"POST"}))).data,[n]);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:v,verifyOrganizationDomain:b,removeOrganizationDomain:x,addRoleToOrganizationMember:P,removeRoleFromOrganizationMember:T,inviteOrganizationMember:$,discardOrganizationInvitation:E,resendOrganizationInvitation:F,updateOrganization:m,addRole:z,removeOrganizationRoles:g,deleteOrganization:I,getEnterpriseConnections:w,createEnterpriseConnection:A,updateEnterpriseConnection:j,deleteEnterpriseConnection:S,testEnterpriseConnectionConfig:C,testEnterpriseConnection:_,generateSCIMToken:k,getSCIMToken:y,revokeSCIMToken:M}},sr=()=>{const{loading:e,error:r,refetch:a,getOrganizationMembers:n,getOrganizationRoles:s,leaveOrganization:i,removeOrganizationMember:h,getOrganizationInvitations:d,getOrganizationDomains:u,removeOrganizationDomain:f,addOrganizationDomain:p,verifyOrganizationDomain:m,addRoleToOrganizationMember:g,removeRoleFromOrganizationMember:v,inviteOrganizationMember:b,discardOrganizationInvitation:x,resendOrganizationInvitation:w,updateOrganization:A,removeOrganizationRoles:j,getEnterpriseConnections:S,createEnterpriseConnection:C,updateEnterpriseConnection:_,deleteEnterpriseConnection:k,testEnterpriseConnectionConfig:y,testEnterpriseConnection:M,generateSCIMToken:z,getSCIMToken:O,revokeSCIMToken:I}=Zt(),{session:P,error:T,loading:$}=st(),{organizationMemberships:E}=Kt(),F=c.useMemo(()=>(E==null?void 0:E.find(q=>{var de;return q.id===((de=P==null?void 0:P.active_signin)==null?void 0:de.active_organization_membership_id)}))||null,[E,P]),L=c.useMemo(()=>(F==null?void 0:F.organization)||null,[F]),H=c.useCallback(async q=>L?await A(L,q):[],[L,A]),Z=c.useCallback(async()=>L?await n(L):[],[L,n]),R=c.useCallback(async()=>L?await s(L):[],[L,s]),W=c.useCallback(async q=>L?await h(L,q):[],[L,h]),D=c.useCallback(async q=>L?await j(L,q):void 0,[L,j]),B=c.useCallback(async()=>L?await u(L):[],[L,u]),Y=c.useCallback(async q=>L?await p(L,q):void 0,[L,p]),X=c.useCallback(async q=>L?await m(L,q):void 0,[L,m]),ce=c.useCallback(async q=>L?await f(L,q):void 0,[L,f]),me=c.useCallback(async(q,de)=>L?await g(L,q,de):void 0,[L,g]),te=c.useCallback(async(q,de)=>L?await v(L,q,de):void 0,[L,v]),xe=c.useCallback(async q=>L?await b(L,q):void 0,[L,b]),re=c.useCallback(async q=>L?await x(L,q):void 0,[L,x]),U=c.useCallback(async q=>L?await w(L,q):void 0,[L,w]),Ye=c.useCallback(async()=>{L&&await i(L)},[L,i]),Te=c.useCallback(async()=>L?await d(L):[],[L,d]),Ve=c.useCallback(async()=>L?await S(L):[],[L,S]),Ue=c.useCallback(async q=>{if(L)return await C(L,q)},[L,C]),ve=c.useCallback(async(q,de)=>{if(L)return await _(L,q,de)},[L,_]),J=c.useCallback(async q=>{L&&await k(L,q)},[L,k]),le=c.useCallback(async q=>L?await y(L,q):null,[L,y]),oe=c.useCallback(async q=>L?await M(L,q):null,[L,M]),G=c.useCallback(async q=>{if(L)return await z(L,q)},[L,z]),pe=c.useCallback(async q=>{if(L)return await O(L,q)},[L,O]),fe=c.useCallback(async q=>{L&&await I(L,q)},[L,I]);return $||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:L,activeMembership:F,loading:!1,refetch:a,getRoles:R,updateOrganization:H,getMembers:Z,getDomains:B,addDomain:Y,verifyDomain:X,removeDomain:ce,getInvitations:Te,removeMember:W,leave:Ye,removeRole:D,addMemberRole:me,removeMemberRole:te,inviteMember:xe,discardInvitation:re,resendInvitation:U,getEnterpriseConnections:Ve,createEnterpriseConnection:Ue,updateEnterpriseConnection:ve,deleteEnterpriseConnection:J,testEnterpriseConnectionConfig:le,testEnterpriseConnection:oe,generateSCIMToken:G,getSCIMToken:pe,revokeSCIMToken:fe,error:null}};async function _2(e){return(await V(await e("/me/organization-memberships"))).data}const Kt=()=>{const{client:e,loading:r}=je(),{data:a,isLoading:n,error:s,mutate:i}=$e(r?null:"/me/organization-memberships",()=>_2(e),{refreshInterval:3e4,revalidateOnFocus:!1,revalidateOnReconnect:!1,revalidateIfStale:!1,dedupingInterval:5e3}),h=c.useCallback(async()=>{await i()},[i]);return{organizationMemberships:a,loading:r||n,error:s,refetch:h}};async function k2(e){return(await V(await e("/me/workspace-memberships"))).data}async function C2(e,r){return(await V(await e(`/workspaces/${r}/leave`,{method:"POST"}))).data}const En=()=>{const{client:e,loading:r}=je(),{deployment:a}=Ae(),{data:n,isLoading:s,error:i,mutate:h}=$e(!r&&(a!=null&&a.b2b_settings.workspaces_enabled)?"/me/workspace-memberships":null,()=>k2(e),{refreshInterval:3e4,revalidateOnFocus:!1,revalidateOnReconnect:!1,revalidateIfStale:!1,dedupingInterval:5e3}),d=c.useCallback(async()=>{await h(void 0,{revalidate:!0})},[h]);return{workspaceMemberships:n,loading:r||s,error:i,refetch:d}},ir=()=>{const{workspaceMemberships:e,refetch:r,loading:a,error:n}=En(),{client:s}=je(),{refetch:i}=st(),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,M,z)=>{const O=new FormData;O.append("name",y),M&&O.append("image",M),z&&O.append("description",z),O.append("organization_id",k);const I=await V(await s("/workspaces",{method:"POST",body:O}));return Mt(),await r(),I.data},[s,r]),u=c.useCallback(async k=>{const y=await C2(s,k);return Mt(),await r(),await i(),y},[s,r,i]),f=c.useCallback(async(k,y)=>{const M=new FormData;y.name&&M.append("name",y.name),y.description&&M.append("description",y.description),y.image&&M.append("image",y.image),y.enforce_2fa!==void 0&&M.append("enforce_2fa",String(y.enforce_2fa)),y.enable_ip_restriction!==void 0&&M.append("enable_ip_restriction",String(y.enable_ip_restriction)),y.whitelisted_ips&&y.whitelisted_ips.forEach(O=>M.append("whitelisted_ips",O));const z=await V(await s(`/workspaces/${k.id}/update`,{method:"POST",body:M}));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 M=new URLSearchParams;return y&&(M.set("page",y.page.toString()),M.set("limit",y.limit.toString()),y.search&&M.set("search",y.search)),(await V(await s(`/workspaces/${k.id}/members?${M.toString()}`,{method:"GET"}))).data},[s]),g=c.useCallback(async k=>(await V(await s(`/workspaces/${k.id}/roles`,{method:"GET"}))).data,[s]),v=c.useCallback(async(k,y,M)=>{const z=new FormData;return z.append("name",y),M.forEach(I=>z.append("permissions",I)),(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]),x=c.useCallback(async(k,y)=>{const M=await V(await s(`/workspaces/${k.id}/members/${y}/remove`,{method:"POST"}));return await r(),M.data},[s,r]),w=c.useCallback(async(k,y,M)=>(await V(await s(`/workspaces/${k.id}/members/${y}/roles/${M}/add`,{method:"POST"}))).data,[s]),A=c.useCallback(async(k,y,M)=>(await V(await s(`/workspaces/${k.id}/members/${y}/roles/${M}/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,M)=>{const z=new FormData;return z.append("email",y),z.append("workspace_id",k.id),M&&z.append("workspace_role_id",M),(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:n,refetch:r,leaveWorkspace:u,createWorkspace:d,updateWorkspace:f,deleteWorkspace:p,getWorkspaceMembers:m,getWorkspaceRoles:g,createWorkspaceRole:v,deleteWorkspaceRole:b,removeWorkspaceMember:x,addWorkspaceMemberRole:w,removeWorkspaceMemberRole:A,getWorkspaceInvitations:j,createWorkspaceInvitation:S,discardWorkspaceInvitation:C,resendWorkspaceInvitation:_}},It=()=>{const{refetch:e,loading:r,error:a,workspaces:n,leaveWorkspace:s,updateWorkspace:i,deleteWorkspace:h,getWorkspaceMembers:d,getWorkspaceRoles:u,createWorkspaceRole:f,deleteWorkspaceRole:p,removeWorkspaceMember:m,addWorkspaceMemberRole:g,removeWorkspaceMemberRole:v,getWorkspaceInvitations:b,createWorkspaceInvitation:x,discardWorkspaceInvitation:w,resendWorkspaceInvitation:A}=ir(),{workspaceMemberships:j}=En(),{session:S,loading:C,error:_}=st(),k=c.useMemo(()=>(j==null?void 0:j.find(X=>{var ce;return X.id===((ce=S==null?void 0:S.active_signin)==null?void 0:ce.active_workspace_membership_id)}))||null,[j,S]),y=c.useMemo(()=>(k==null?void 0:k.workspace)||null,[k]),M=c.useCallback(async()=>{if(y)return await s(y.id)},[y,s]),z=c.useCallback(async X=>{if(y)return await i(y,X)},[y,i]),O=c.useCallback(async()=>{if(y)return await h(y)},[y,h]),I=c.useCallback(async X=>y?await d(y,X):{data:[],meta:{total:0,page:1,limit:10}},[y,d]),P=c.useCallback(async()=>y?await u(y):[],[y,u]),T=c.useCallback(async(X,ce)=>{if(y)return await f(y,X,ce)},[y,f]),$=c.useCallback(async X=>{if(y)return await p(y,X)},[y,p]),E=c.useCallback(async X=>{if(y)return await m(y,X)},[y,m]),F=c.useCallback(async(X,ce)=>{if(y)return await g(y,X,ce)},[y,g]),L=c.useCallback(async(X,ce)=>{if(y)return await v(y,X,ce)},[y,v]),H=c.useMemo(()=>(n==null?void 0:n.find(X=>X.id===(y==null?void 0:y.id)))||null,[n,y]),Z=c.useCallback(async()=>H?await b(H):[],[H,b]),R=c.useCallback(async X=>{if(H)return await x(H,X.email,X.workspaceRoleId)},[H,x]),W=c.useCallback(async X=>{if(H)return await w(H,X)},[H,w]),D=c.useCallback(async X=>{if(H)return await A(H,X)},[H,A]),B=r||C,Y=a||_;return B?{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:M,updateWorkspace:z,deleteWorkspace:O,getMembers:I,getRoles:P,createRole:T,deleteRole:$,inviteMember:R,removeMember:E,addMemberRole:F,removeMemberRole:L,getInvitations:Z,discardInvitation:W,resendInvitation:D}};function qn(e){const r=new Uint8Array(e);let a="";for(let n=0;n<r.length;n++)a+=String.fromCharCode(r[n]);return btoa(a).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function Kn(e){const r=e.replace(/-/g,"+").replace(/_/g,"/"),a=r.padEnd(r.length+(4-r.length%4)%4,"="),n=atob(a),s=new Uint8Array(n.length);for(let i=0;i<n.length;i++)s[i]=n.charCodeAt(i);return s.buffer}const S2=async e=>(await V(await e("/me"))).data,E2=async e=>(await V(await e("/me/signins"))).data;function cr(){const{client:e,loading:r}=je(),{data:a,error:n,isLoading:s,mutate:i}=$e(r?null:"/user",()=>S2(e)),h=async H=>{const Z=new FormData;for(const[W,D]of Object.entries(H))D!=null&&D!==""&&Z.append(W,String(D));const R=await V(await e("/me",{method:"POST",body:Z}));return i(),R},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"})),v=async(H,Z)=>{const R=new FormData;return R.append("phone_number",H),R.append("country_code",Z),await V(await e("/me/phone-numbers",{method:"POST",body:R}))},b=async H=>await V(await e(`/me/phone-numbers/${H}/delete`,{method:"POST"})),x=async H=>await V(await e(`/me/phone-numbers/${H}/prepare-verification`,{method:"POST"})),w=async(H,Z)=>{const R=new FormData;return R.append("code",Z),await V(await e(`/me/phone-numbers/${H}/attempt-verification`,{method:"POST",body:R}))},A=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 R=new FormData;return R.append("authenticator_id",H),Z.forEach(D=>{R.append("codes",D)}),await V(await e("/me/authenticator/attempt-verification",{method:"POST",body:R}))},_=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}))},M=async()=>(await V(await e("/me/backup-codes/regenerate",{method:"POST"}))).data,z=async(H,Z)=>{const R=new FormData;return R.append("current_password",H),R.append("new_password",Z),await V(await e("/me/update-password",{method:"POST",body:R}))},O=async H=>{const Z=new FormData;Z.append("current_password",H);const R=await V(await e("/me/remove-password",{method:"POST",body:Z}));return i(),R},I=async H=>{const Z=new FormData;return Z.append("password",H),await V(await e("/me/account/delete",{method:"POST",body:Z}))},P=async H=>await V(await e(`/me/social-connections/${H}/disconnect`,{method:"POST"})),T=async({provider:H,redirectUri:Z})=>{var D;const R=new URLSearchParams({provider:H});Z&&R.append("redirect_uri",Z);const W=await V(await e(`/me/init-sso-connection?${R.toString()}`,{method:"POST"}));return"data"in W&&((D=W.data)!=null&&D.oauth_url)&&window.open(W.data.oauth_url,"_blank"),W},$=async()=>await V(await e("/me/passkeys",{method:"GET"})),E=async H=>{var ce,me;const Z=await V(await e("/me/passkeys/register/begin",{method:"POST"}));if(!("data"in Z))return Z;const R=Z.data.options.publicKey,W={challenge:Kn(R.challenge),rp:R.rp,user:{id:Kn(R.user.id),name:R.user.name,displayName:R.user.displayName},pubKeyCredParams:R.pubKeyCredParams,timeout:R.timeout,attestation:R.attestation,authenticatorSelection:R.authenticatorSelection,excludeCredentials:(ce=R.excludeCredentials)==null?void 0:ce.map(te=>({type:te.type,id:Kn(te.id),transports:te.transports}))},D=await navigator.credentials.create({publicKey:W});if(!D)throw new Error("Failed to create credential");const B=D.response,Y={id:D.id,rawId:qn(D.rawId),type:D.type,response:{clientDataJSON:qn(B.clientDataJSON),attestationObject:qn(B.attestationObject),transports:((me=B.getTransports)==null?void 0:me.call(B))||[]}};return await V(await e(`/me/passkeys/register/finish?name=${encodeURIComponent(H||"")}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(Y)}))},F=async H=>await V(await e(`/me/passkeys/${H}/delete`,{method:"POST"})),L=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:n||null,updateProfile:h,getEmailAddresses:d,getEmailAddress:u,createEmailAddress:f,deleteEmailAddress:p,prepareEmailVerification:m,attemptEmailVerification:g,makeEmailPrimary:j,createPhoneNumber:v,deletePhoneNumber:b,preparePhoneVerification:x,attemptPhoneVerification:w,makePhonePrimary:A,setupAuthenticator:S,verifyAuthenticator:C,deleteAuthenticator:_,generateBackupCodes:k,regenerateBackupCodes:M,updateProfilePicture:y,disconnectSocialConnection:P,connectSocialAccount:T,updatePassword:z,removePassword:O,deleteAccount:I,getPasskeys:$,registerPasskey:E,deletePasskey:F,renamePasskey:L}}function f0(){const{client:e,loading:r}=je(),{data:a,error:n,isLoading:s,mutate:i}=$e(r?null:"/me/signins",()=>E2(e));return{signins:a,error:n||null,removeSignin:async d=>await V(await e(`/me/signins/${d}/signout`,{method:"POST"})),refetch:i,loading:s||r}}function m0(){const{session:e,loading:r}=st(),{loading:a,organizationMemberships:n}=Kt(),{loading:s,workspaceMemberships:i}=En(),h=c.useMemo(()=>!e||!e.signins||e.signins.length===0?null:(n==null?void 0:n.find(u=>{var f;return u.id===((f=e.active_signin)==null?void 0:f.active_organization_membership_id)}))||null,[n,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 g0(){const{client:e,loading:r}=je(),[a,n]=c.useState(!1),s=async i=>{n(!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{n(!1)}};return r?{loading:!0,joinWaitlist:null}:{loading:a,joinWaitlist:s}}function v0(){const{client:e,loading:r}=je(),[a,n]=c.useState(!1),[s,i]=c.useState(null),[h,d]=c.useState(null),[u,f]=c.useState(null),[p,m]=c.useState(!1),[g,v]=c.useState(null);c.useEffect(()=>{if(p||r)return;const x=new URLSearchParams(window.location.search),w=x.get("code"),A=x.get("state"),j=x.get("error"),S=x.get("error_description");if(!w&&!j){m(!0);const C=new Error("No OAuth callback data found.");i(C);return}if(m(!0),n(!0),j){const C=S||j,_=new Error(`OAuth Error: ${C}`);i(_),n(!1);return}if(w&&A)b(w,A);else{const C=new Error("Missing required OAuth parameters");i(C),n(!1)}},[p,r]);const b=async(x,w)=>{try{let A,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")A="/auth/oauth2/callback",j="GET";else if(z==="connect_social")A="/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.`)),n(!1);return}const S=await e(`${A}?code=${encodeURIComponent(x)}&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&&v(y)}}else{const _=new Error("SSO callback failed");i(_)}}catch(A){const j=A instanceof Error?A:new Error("Unknown error occurred");i(j)}finally{n(!1)}};return{loading:a,error:s,session:h,redirectUri:u,processed:p,signinAttempt:g}}function x0(){const{client:e,loading:r}=je(),[a,n]=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");n(!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 n(!1),i(!0),p}catch(u){throw n(!1),i(!1),u}},success:s}}function A2(){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 b0(){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 z2=()=>{},$2=z2(),Ko=Object,si=e=>e===$2,M2=e=>typeof e=="function",Ia=new WeakMap,L2=e=>Ko.prototype.toString.call(e),Yn=(e,r)=>e===`[object ${r}]`;let R2=0;const Yo=e=>{const r=typeof e,a=L2(e),n=Yn(a,"Date"),s=Yn(a,"RegExp"),i=Yn(a,"Object");let h,d;if(Ko(e)===e&&!n&&!s){if(h=Ia.get(e),h)return h;if(h=++R2+"~",Ia.set(e,h),Array.isArray(e)){for(h="@",d=0;d<e.length;d++)h+=Yo(e[d])+",";Ia.set(e,h)}if(i){h="#";const u=Ko.keys(e).sort();for(;!si(d=u.pop());)si(e[d])||(h+=d+":"+Yo(e[d])+",");Ia.set(e,h)}}else h=n?e.toJSON():r=="symbol"?e.toString():r=="string"?JSON.stringify(e):""+e;return h},P2=e=>{if(M2(e))try{e=e()}catch{e=""}const r=e;return e=typeof e=="string"?e:(Array.isArray(e)?e.length:e)?Yo(e):"",[e,r]},T2=e=>P2(e?e(0,null):null)[0],Qn=Promise.resolve(),F2=e=>(r,a,n)=>{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}=n,[,,,g]=Tt.get(xs);let v;try{v=T2(r),v&&(v=d0+v)}catch{}const[b,x,w]=er(i,v),A=c.useCallback(()=>Ee(b()._l)?h:b()._l,[i,v,h]);Oo.useSyncExternalStore(c.useCallback(M=>v?w(v,()=>{M()}):()=>{},[i,v]),A,A);const j=c.useCallback(()=>{const M=b()._l;return Ee(M)?h:M},[v,h]),S=c.useRef(j());un(()=>{if(!s.current){s.current=!0;return}v&&x({_l:u?S.current:j()})},[v,i]);const C=p&&!s.current,_=e(v,async M=>{const z=b()._i,O=b()._r;x({_r:pt});const I=[],P=j(),[T]=er(i,M),$=T().data,E=[];let F=null;for(let L=0;L<P;++L){const[H,Z]=ka(r(L,m?null:F));if(!H)break;const[R,W]=er(i,H);let D=R().data;const B=d||z||Ee(D)||f&&!L&&!Ee($)||C||$&&!Ee($[L])&&!n.compare($[L],D);if(a&&(typeof O=="function"?O(D,Z):B)){const Y=async()=>{if(!(H in g))D=await a(Z);else{const ce=g[H];delete g[H],D=await ce}W({data:D,_k:Z}),I[L]=D};m?E.push(Y):await Y()}else I[L]=D;m||(F=D)}return m&&await Promise.all(E.map(L=>L())),x({_i:pt}),I},n),k=c.useCallback(function(M,z){const O=typeof z=="boolean"?{revalidate:z}:z||{},I=O.revalidate!==!1;return v?(I&&(Ee(M)?x({_i:!0,_r:O.revalidate}):x({_i:!1,_r:O.revalidate})),arguments.length?_.mutate(M,{...O,revalidate:I}):_.mutate()):Qn},[v,i]),y=c.useCallback(M=>{if(!v)return Qn;const[,z]=er(i,v);let O;if($t(M)?O=M(j()):typeof M=="number"&&(O=M),typeof O!="number")return Qn;z({_l:O}),S.current=O;const I=[],[P]=er(i,v);let T=null;for(let $=0;$<O;++$){const[E]=ka(r($,T)),[F]=er(i,E),L=E?F().data:pt;if(Ee(L))return k(P().data);I.push(L),T=L}return k(I)},[v,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}}},nr=h2($e,F2);function w0({enabled:e=!0,channels:r,organizationIds:a,workspaceIds:n,onNotification:s,onError:i,reconnectDelay:h=1e3,maxReconnectAttempts:d=5}={}){const{session:u,loading:f}=st(),{deployment:p,loading:m}=Ae(),[g,v]=c.useState(!1),[b,x]=c.useState(null),w=c.useRef(null),A=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),M=c.useRef(n),z=c.useRef(h),O=c.useRef(d);C.current=s,_.current=i,k.current=r,y.current=a,M.current=n,z.current=h,O.current=d;const I=c.useCallback(()=>{A.current&&(clearTimeout(A.current),A.current=null),S.current&&(clearInterval(S.current),S.current=null),w.current&&(w.current.close(),w.current=null)},[]),P=c.useCallback(async()=>{var H;if(!e||f||m||!u||!p)return;I();const E=new URL(p.backend_host),F=E.protocol==="https:"?"wss:":"ws:",L=new URL("/notifications/stream",`${F}//${E.host}`);if(p.mode==="staging"){const Z=ht(p.backend_host);Z&&L.searchParams.set("__dev_session__",Z)}k.current&&k.current.length>0&&L.searchParams.set("channels",k.current.join(",")),y.current&&y.current.length>0&&L.searchParams.set("organization_ids",y.current.join(",")),M.current&&M.current.length>0&&L.searchParams.set("workspace_ids",M.current.join(","));try{const Z=new WebSocket(L.toString());w.current=Z,Z.onopen=()=>{v(!0),x(null),j.current=0,S.current=setInterval(()=>{Z.readyState===WebSocket.OPEN&&Z.send("ping")},3e4)},Z.onmessage=R=>{var W,D;try{const B=JSON.parse(R.data);if(B.type==="notification"&&B.data)(W=C.current)==null||W.call(C,B.data);else if(B.type==="error"){const Y=B.error||"Unknown error occurred";x(Y),(D=_.current)==null||D.call(_,Y)}else B.type}catch{}},Z.onerror=()=>{var R;x("Connection error occurred"),(R=_.current)==null||R.call(_,"Connection error occurred")},Z.onclose=R=>{var W;if(v(!1),S.current&&(clearInterval(S.current),S.current=null),e&&R.code!==1e3&&j.current<O.current){j.current++;const D=z.current*Math.pow(2,j.current-1);A.current=setTimeout(()=>{P()},D)}else j.current>=O.current&&(x("Max reconnection attempts reached"),(W=_.current)==null||W.call(_,"Max reconnection attempts reached"))}}catch{x("Failed to connect"),(H=_.current)==null||H.call(_,"Failed to connect")}},[e,f,m,u,p,I]);c.useEffect(()=>(P(),()=>{I()}),[P,I]),c.useEffect(()=>{w.current&&w.current.readyState===WebSocket.OPEN&&P()},[r,a,n,P]);const T=c.useCallback(()=>{I(),v(!1)},[I]),$=c.useCallback(()=>{j.current=0,P()},[P]);return{isConnected:g,connectionError:b,disconnect:T,reconnect:$}}function An(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(n=>r.append("channels",n)),e.organization_ids&&e.organization_ids.length>0&&e.organization_ids.forEach(n=>r.append("organization_ids",n)),e.workspace_ids&&e.workspace_ids.length>0&&e.workspace_ids.forEach(n=>r.append("workspace_ids",n)),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 Z2(e,r){const a=`/notifications${An(r)}`,n=await e(a,{method:"GET"});return(await V(n)).data}async function I2(e,r){const a=await e(`/notifications/${r}/read`,{method:"POST"});return V(a)}async function O2(e,r){const a=await e(`/notifications/${r}/unread`,{method:"POST"});return V(a)}async function H2(e,r){const a=await e(`/notifications/mark-all-read${An(r)}`,{method:"POST"});return V(a)}async function V2(e,r){const a=await e(`/notifications/archive-all-read${An(r)}`,{method:"POST"});return V(a)}async function D2(e,r){const a=await e(`/notifications/${r}/archive`,{method:"POST"});return V(a)}async function N2(e,r){const a=await e(`/notifications/${r}/star`,{method:"POST"});return V(a)}function y0(e){var M;const{client:r,loading:a}=je(),{data:n,error:s,mutate:i,isLoading:h,size:d,setSize:u,isValidating:f}=nr((z,O)=>{var $;if(a||z>0&&(!O||!O.has_more))return null;const I=z===0||($=O==null?void 0:O.notifications[O.notifications.length-1])==null?void 0:$.id,{onNotification:P,...T}=e||{};return["wacht-notifications",{...T,cursor:I}]},([,z])=>Z2(r,z),{refreshInterval:6e4,revalidateOnFocus:!0,revalidateFirstPage:!0}),p=c.useMemo(()=>n?n.flatMap(z=>z.notifications):[],[n]),m=n?(M=n[n.length-1])==null?void 0:M.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]),v=c.useMemo(()=>{var z;return(z=e==null?void 0:e.organization_ids)==null?void 0:z.map(O=>Number(O)).filter(O=>Number.isFinite(O))},[e==null?void 0:e.organization_ids]),b=c.useMemo(()=>{var z;return(z=e==null?void 0:e.workspace_ids)==null?void 0:z.map(O=>Number(O)).filter(O=>Number.isFinite(O))},[e==null?void 0:e.workspace_ids]);w0({enabled:!a&&!!n,channels:g,organizationIds:v,workspaceIds:b,onNotification:c.useCallback(z=>{i(async O=>{var $;if(!O||O.length===0||O.some(E=>E.notifications.some(F=>F.id===z.id.toString())))return O;($=e==null?void 0:e.onNotification)==null||$.call(e,z);const P=O[0];return[{...P,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},...P.notifications]},...O.slice(1)]},!1)},[i,e]),onError:c.useCallback(()=>{},[])});const x=c.useCallback(async z=>{a||(await i(async O=>O&&O.map(I=>({...I,notifications:I.notifications.map(P=>P.id===z?{...P,is_read:!0}:P)})),!1),await I2(r,z),await i())},[r,a,i]),w=c.useCallback(async z=>{a||(await i(async O=>O&&O.map(I=>({...I,notifications:I.notifications.map(P=>P.id===z?{...P,is_read:!1}:P)})),!1),await O2(r,z),await i())},[r,a,i]),A=c.useCallback(async()=>{a||(await i(async z=>z&&z.map(O=>({...O,notifications:O.notifications.map(I=>({...I,is_read:!0}))})),!1),await H2(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(I=>!I.is_read)})),!1),await V2(r,e),await i())},[r,e,a,i]),S=c.useCallback(async z=>{a||(await i(async O=>O&&O.map(I=>({...I,notifications:(e==null?void 0:e.is_archived)!==void 0?I.notifications.filter(P=>P.id!==z):I.notifications.map(P=>P.id===z?{...P,is_archived:!P.is_archived}:P)})),!1),await D2(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(I=>({...I,notifications:I.notifications.map(P=>P.id===z?{...P,is_starred:!P.is_starred}:P)})),!1),await N2(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&&n&&typeof n[d-1]>"u";return!n||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:x,markAllAsRead:A,archiveAllRead:j,archiveNotification:S,starNotification:C,markAsUnread:w,refetch:k,loadMore:_}}async function U2(e,r){const a=`/notifications/scope-unread${An(r)}`,n=await e(a,{method:"GET"});return(await V(n)).data}function j0(e){const{client:r,loading:a}=je(),{data:n,error:s,mutate:i}=$e(a?null:["wacht-notifications-unread",e],([,d])=>U2(r,d),{refreshInterval:3e4,revalidateOnFocus:!0}),h=async()=>{await i()};return!n||a?{loading:!0,count:0,error:s,refetch:h}:{loading:!1,count:n.count,error:s,refetch:h}}const Ir={DISCONNECTED:"disconnected",CONNECTED:"connected",ERROR:"error"},nt={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 B2(e){switch(e.trim()){case mr.IDLE:return nt.IDLE;case mr.STARTING:case"starting":return nt.STARTING;case mr.RUNNING:case"running":return nt.RUNNING;case mr.WAITING_FOR_INPUT:case"waiting_for_input":return nt.WAITING_FOR_INPUT;case mr.COMPLETED:case"completed":return nt.COMPLETED;case mr.FAILED:case mr.CANCELLED:case"failed":case"cancelled":return nt.FAILED;default:return nt.IDLE}}function Or(e){return e===nt.STARTING||e===nt.RUNNING||e===nt.WAITING_FOR_INPUT}function Gt(e){return e&&typeof e=="object"?e:null}function Sr(e){return typeof e=="string"?e:null}function W2(e){const r=Gt(e);return(r==null?void 0:r.ConversationMessage)??e}function G2(e){const r=Gt(e);if(!r)return null;const a=Gt(r.content),n=Gt(r.metadata),s=Sr(r.message_type)||Sr(n==null?void 0:n.message_type)||Sr(a==null?void 0:a.type);return{...r,metadata:{...n||{},message_type:s}}}function q2(e){const r=Gt(e.metadata),a=Gt(e.content);return Sr(r==null?void 0:r.message_type)||Sr(a==null?void 0:a.type)}function K2(e){const r=Gt(e.content);return Sr(r==null?void 0:r.status)}function Y2(e){const r=Gt(e.content),a=Sr(r==null?void 0:r.step);return a==="execution_cancelled"||a==="abort"}function Q2(e){const r=Gt(e.content);return(r==null?void 0:r.further_actions_required)===!1}function ii(e){return[...e].sort((r,a)=>new Date(r.timestamp).getTime()-new Date(a.timestamp).getTime())}function J2(e,r){return{id:e,timestamp:new Date().toISOString(),content:{type:"user_message",message:r},metadata:{message_type:"user_message"}}}function X2(e,r){const a=new FormData;a.append("message",e);for(const n of r??[])a.append("files",n);return a}function ep(e,r){const a=new FormData;a.append("request_message_id",e);for(const n of r)a.append("approval_tool_name",n.tool_name),a.append("approval_mode",n.mode);return a}function tp(){const e=new FormData;return e.append("cancel","true"),e}function rp({deployment:e,threadId:r,file:a}){const n=a.url||a.filename;if(!n)return null;if(/^https?:\/\//i.test(n))return n;const s=e.backend_host.replace(/\/$/,"");let i;if(n.startsWith("/ai/threads/"))i=new URL(n,`${s}/`);else{const h=n.includes("/")?n.split("/").pop()??"":n;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=ht(e.backend_host);h&&i.searchParams.set("__dev_session__",h)}return i.toString()}const ap=5e3,np=5e3;function op({threadId:e,initialThread:r=null,platformAdapter:a}){var We;const{deployment:n}=Ae(),{client:s}=je(),[i,h]=c.useState([]),[d,u]=c.useState(null),[f,p]=c.useState(null),[m,g]=c.useState(r),[v,b]=c.useState(nt.IDLE),[x,w]=c.useState({status:Ir.DISCONNECTED}),[A,j]=c.useState(!0),[S,C]=c.useState(!1),[_,k]=c.useState(!1),[y,M]=c.useState(null),z=c.useRef(null),O=c.useRef(e),I=c.useRef(0),P=c.useRef(nt.IDLE),T=c.useRef(null),$=c.useCallback(Q=>{h(se=>{const he=[...se],_e=he.findIndex(ke=>String(ke.id)===String(Q.id));return _e>=0?he[_e]=Q:he.push(Q),ii(he)})},[]),E=c.useCallback(({messages:Q,prepend:se,hasMore:he})=>{const _e=ii(Q);_e.length>0&&(z.current=_e[0].id),h(ke=>se?[..._e,...ke]:_e),he!==void 0&&j(he)},[]),F=c.useCallback(Q=>{P.current=Q,b(Q)},[]),L=c.useCallback(Q=>{I.current=Date.now()+ap,F(Q)},[F]),H=c.useCallback(()=>{var Q;I.current>Date.now()&&Or(P.current)||(F(nt.IDLE),(Q=T.current)==null||Q.call(T))},[F]),Z=c.useCallback(Q=>{const se=B2(Q),he=Or(se);!he&&I.current>Date.now()&&Or(P.current)||(he&&(I.current=0),F(se))},[F]),R=c.useCallback(()=>{u(null),p(null)},[]),W=c.useCallback(Q=>{g(se=>se&&{...se,...Q?{status:Q}:{},last_activity_at:new Date().toISOString()})},[]),D=c.useCallback((Q,se)=>{$(J2(Q,se)),R()},[R,$]),B=c.useCallback(Q=>{const se=G2(Q);if(!se)return;switch(q2(se)){case"system_decision":$(se),Y2(se)&&H();return;case"execution_summary":case"tool_result":case"user_message":$(se);return;case"steer":$(se),Q2(se)&&H();return;case"approval_request":I.current=0,F(nt.WAITING_FOR_INPUT),$(se);return;case"approval_response":$(se),L(nt.RUNNING);return;case"execution_status":{const _e=K2(se);if(!_e)return;Z(_e),g(ke=>ke&&{...ke,status:_e});return}default:$(se)}},[Z,H,F,L,$]),Y=c.useCallback((Q,se)=>{var he;(he=a==null?void 0:a.onPlatformEvent)==null||he.call(a,Q,se)},[a]),X=c.useRef(B),ce=c.useRef(Y),me=c.useRef(s),te=c.useRef(n);c.useEffect(()=>{X.current=B,ce.current=Y,me.current=s,te.current=n}),c.useEffect(()=>{O.current=e},[e]);const xe=c.useRef(null),re=c.useRef(null),U=c.useRef(0),Ye=10,Te=c.useCallback(async Q=>{if(!e)return;const se=e;Q?C(!0):k(!0),M(null);try{const he=new URLSearchParams({limit:"100"});Q&&he.append("before_id",Q);const _e=await s(`/ai/threads/${e}/messages?${he}`,{method:"GET"}),ke=await V(_e);ke.data&&O.current===se&&E({messages:ke.data.data,prepend:!!Q,hasMore:ke.data.has_more||!1})}catch(he){O.current===se&&M(he instanceof Error?he:new Error("Failed to fetch messages"))}finally{O.current===se&&(Q?C(!1):k(!1))}},[e,s,E]);c.useEffect(()=>{const Q=te.current;if(!Q||!e)return;const se=()=>{xe.current&&(xe.current.close(),xe.current=null);const he=new URL(`${Q.backend_host}/ai/threads/${encodeURIComponent(e)}/stream`);if(Q.mode==="staging"){const ke=ht(Q.backend_host);ke&&he.searchParams.append("__dev_session__",ke)}const _e=new EventSource(he.toString(),{withCredentials:Q.mode!=="staging"});xe.current=_e,_e.onopen=()=>{if(w({status:Ir.CONNECTED}),U.current>0){const ke=e;setTimeout(()=>{s(`/ai/threads/${ke}/messages?limit=100`,{method:"GET"}).then(async Ge=>{const dt=await V(Ge);dt.data&&O.current===ke&&E({messages:dt.data.data,hasMore:dt.data.has_more||!1})}).catch(()=>{})},100)}U.current=0},_e.onerror=()=>{if(w({status:Ir.ERROR}),_e.close(),xe.current=null,U.current<Ye){const ke=Math.min(1e3*Math.pow(2,U.current),3e4);re.current=setTimeout(()=>{U.current++,se()},ke)}else w({status:Ir.DISCONNECTED})},_e.addEventListener("conversation_message",ke=>{try{const Ge=W2(JSON.parse(ke.data));Ge&&X.current(Ge)}catch{}}),_e.addEventListener("platform_event",ke=>{try{const Ge=JSON.parse(ke.data);Ge!=null&&Ge.PlatformEvent?ce.current(Ge.PlatformEvent[0],Ge.PlatformEvent[1]):Ge!=null&&Ge.event_label&&ce.current(Ge.event_label,Ge.event_data)}catch{}})};return se(),()=>{re.current&&(clearTimeout(re.current),re.current=null),xe.current&&(xe.current.close(),xe.current=null)}},[e,s,E]);const Ve=c.useCallback(async()=>{if(!e)return;const Q=e;try{const se=await s(`/ai/threads/${Q}`,{method:"GET"});if(!se.ok)return;const he=await V(se);he.data&&O.current===Q&&(g(he.data),Z(he.data.status),qr(`wacht-ai-thread:${Q}`,he.data,{revalidate:!1}))}catch{}},[e,s,Z]);c.useEffect(()=>{T.current=Ve},[Ve]),c.useEffect(()=>{if(!e)return;Ve();const Q=window.setInterval(()=>{!Or(P.current)&&I.current<=Date.now()||Ve()},np);return()=>{window.clearInterval(Q)}},[e,Ve]),c.useEffect(()=>{h([]),g(null),j(!0),C(!1),M(null),k(!!e),w({status:Ir.DISCONNECTED}),z.current=null,I.current=0,P.current=nt.IDLE,R()},[e,R]),c.useEffect(()=>{!r||r.id!==e||g(r)},[r,e]);const Ue=c.useCallback(async(Q,se)=>{var he,_e;if(!(!e||!n)){u(Q),se&&se.length>0&&p(se);try{const ke=await s(`/ai/threads/${e}/run`,{method:"POST",body:X2(Q,se)});if(ke.ok){const Ge=await V(ke),dt=((he=Ge.data)==null?void 0:he.conversation_id)??null;W(typeof((_e=Ge.data)==null?void 0:_e.status)=="string"?Ge.data.status:void 0),dt?D(dt,Q):R(),L(nt.RUNNING)}else R()}catch{R()}}},[e,n,s,L,W,R,D]);c.useEffect(()=>{e&&Te()},[e,Te]);const ve=c.useCallback(async()=>{await Te()},[Te]),J=c.useCallback(async()=>{if(!(S||!A||!z.current)){C(!0);try{await Te(z.current)}finally{C(!1)}}},[S,A,Te]),le=c.useCallback(()=>{h([]),R()},[R]),oe=c.useCallback(async(Q,se)=>{if(!e)return!1;try{return(await s(`/ai/threads/${e}/run`,{method:"POST",body:ep(Q,se)})).ok?(W(),L(nt.RUNNING),!0):!1}catch{return!1}},[e,s,L,W]),G=c.useCallback(async()=>{if(!(!e||!Or(v)))try{await s(`/ai/threads/${e}/run`,{method:"POST",body:tp()}),I.current=0,W(),F(nt.IDLE)}catch{}},[e,v,s,F,W]),pe=c.useCallback(Q=>!n||!e||!Q?null:rp({deployment:n,threadId:e,file:Q}),[e,n]),fe=c.useCallback(Q=>{const se=pe(Q);if(!se)return;const he=document.createElement("a");he.href=se,he.download=(Q==null?void 0:Q.filename)||"attachment",he.rel="noreferrer",document.body.appendChild(he),he.click(),document.body.removeChild(he)},[pe]),q=((We=m==null?void 0:m.execution_state)==null?void 0:We.pending_approval_request)??null,de=(q==null?void 0:q.request_message_id)??null,Be=m==null?void 0:m.status;return{thread:m,threadState:m,threadStatus:Be,messages:i,pendingMessage:d,pendingFiles:f,connectionState:x,isConnected:x.status===Ir.CONNECTED,hasActiveRun:Or(v),isRunning:v===nt.STARTING||v===nt.RUNNING,executionStatus:v,isWaitingForInput:v===nt.WAITING_FOR_INPUT,pendingApprovalRequest:q,activeApprovalRequestId:de,hasMoreMessages:A,isLoadingMore:S,messagesLoading:_,messagesError:y,refreshThread:Ve,refreshMessages:ve,sendMessage:Ue,submitApprovalResponse:oe,clearMessages:le,loadMoreMessages:J,cancelExecution:G,resolveMessageFileUrl:pe,downloadMessageFile:fe}}function sp(e){const{client:r}=je(),[a,n]=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:v,error:b,isLoading:x,mutate:w}=$e(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,n(!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 A=!h&&(e?a:!0)&&(!b||b.message!=="NO_SESSION"),j=h||(b&&b.message!=="NO_SESSION"?b:null);return{hasSession:A,sessionLoading:s||m&&x,sessionError:j,sessionId:(v==null?void 0:v.session_id)||null,actor:(v==null?void 0:v.actor)||null,agents:(v==null?void 0:v.agents)||[],ticketExchanged:a,ticketLoading:s,refetch:async()=>{await w()}}}const ci={exists:!1,files:[]};function ip(e,r){return r===void 0?"":`?${new URLSearchParams({[e]:String(r)}).toString()}`}function _0(e,r){const a=new URLSearchParams({path:e});return r&&a.set("include_archived","true"),`?${a.toString()}`}function k0(e,r){const a=new URLSearchParams;e&&a.set("path",e),r&&a.set("include_archived","true");const n=a.toString();return n?`?${n}`:""}function cp(e){const r=e.split("/").pop()||e,a=r.lastIndexOf(".");return a<0||a===r.length-1?"":r.slice(a+1).toLowerCase()}function lp(e,r){const a=cp(r),n=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 n.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 dp(e,r,a){a&&e.set(r,JSON.stringify(a))}function li(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 up(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),dp(r,"metadata",e.metadata),Array.isArray(e.capability_tags))for(const a of e.capability_tags)r.append("capability_tags",a);return r}function C0(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 S0(e,r=[]){const a=new FormData;ot(a,"title",e.title),ot(a,"description",e.description),ot(a,"status",e.status),ot(a,"priority",e.priority),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 n of r)a.append("files",n);return a}function pp(e={}){const{client:r}=je(),{includeArchived:a=!1,enabled:n=!0}=e,s=n?`wacht-ai-actor-projects:${a}`:null,i=c.useCallback(async()=>{const v=await r(`/ai/projects${ip("include_archived",a)}`);return(await V(v)).data},[r,a]),{data:h,error:d,mutate:u}=$e(s,i,{revalidateOnFocus:!1}),f=c.useCallback(async v=>{const b=await r("/ai/projects",{method:"POST",body:li(v)}),x=await V(b);return await u(),x},[r,u]),p=c.useCallback(async(v,b)=>{const x=await r(`/ai/projects/${v}/update`,{method:"POST",body:li(b)}),w=await V(x);return await u(),w},[r,u]),m=c.useCallback(async v=>{const b=await r(`/ai/projects/${v}/archive`,{method:"POST",body:new URLSearchParams}),x=await V(b);return await u(),x},[r,u]),g=c.useCallback(async v=>{const b=await r(`/ai/projects/${v}/unarchive`,{method:"POST",body:new URLSearchParams}),x=await V(b);return await u(),x},[r,u]);return{projects:h||[],loading:!h&&!d,error:d,createProject:f,updateProject:p,archiveProject:m,unarchiveProject:g,refetch:async()=>{await u()}}}function hp(e={}){const{client:r}=je(),{enabled:a=!0,query:n="",limit:s=12}=e,i=n.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}=$e(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 fp(e,r={}){const{client:a}=je(),{includeArchived:n=!1,enabled:s=!0}=r,i=s&&e?`wacht-ai-threads:${e}:${n}`:null,h=c.useCallback(async()=>{if(!e)return{data:[],has_more:!1,next_cursor:""};const x=new URLSearchParams({limit:"100"});n&&x.set("include_archived","true");const w=await a(`/ai/projects/${e}/threads?${x.toString()}`);return(await V(w)).data},[e,a,n]),{data:d,error:u,mutate:f}=$e(i,h,{revalidateOnFocus:!1}),p=c.useCallback(async(x,w)=>{const A=await a(`/ai/projects/${x}/threads`,{method:"POST",body:up(w)}),j=await V(A);return x===e&&await f(),j},[e,a,f]),m=c.useCallback(async x=>{if(!e)throw new Error("projectId is required");return p(e,x)},[e,p]),g=c.useCallback(async(x,w)=>{const A=await a(`/ai/threads/${x}/update`,{method:"POST",body:C0(w)}),j=await V(A);return await f(),j},[a,f]),v=c.useCallback(async x=>{const w=await a(`/ai/threads/${x}/archive`,{method:"POST",body:new URLSearchParams}),A=await V(w);return await f(),A},[a,f]),b=c.useCallback(async x=>{const w=await a(`/ai/threads/${x}/unarchive`,{method:"POST",body:new URLSearchParams}),A=await V(w);return await f(),A},[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:v,unarchiveThread:b,refetch:async()=>{await f()}}}function mp(e,r={}){var v,b;const{client:a}=je(),{includeArchived:n=!1,archivedOnly:s=!1,enabled:i=!0,query:h="",limit:d=10}=r,u=h.trim(),f=nr((x,w)=>{if(!i||!e||x>0&&w&&!w.has_more)return null;const A=x===0||w==null?void 0:w.next_cursor;return["wacht-ai-project-thread-feed",e,s?"archived-only":n?"with-archived":"active-only",u,d,A||""]},async([,x,w,A,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")),A&&C.set("q",String(A)),S&&C.set("cursor",String(S));const _=await a(`/ai/projects/${x}/threads?${C.toString()}`);return(await V(_)).data},{revalidateOnFocus:!1,revalidateFirstPage:!0,persistSize:!0}),p=c.useMemo(()=>{var x;return((x=f.data)==null?void 0:x.flatMap(w=>w.data||[]))||[]},[f.data]),m=f.data&&((v=f.data[f.data.length-1])==null?void 0:v.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(x=>x+1)},refetch:async()=>{await f.mutate()}}}function gp(e={}){const{client:r}=je(),{enabled:a=!0,query:n="",limit:s=16}=e,i=n.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}=$e(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 vp(e,r=!0){const{client:a}=je(),n=r&&e?`wacht-ai-thread:${e}`:null,s=c.useCallback(async()=>{if(!e)return null;const f=await a(`/ai/threads/${e}`);return(await V(f)).data},[e,a]),i=$e(n,s,{revalidateOnFocus:!1}),h=c.useCallback(async f=>{if(!e)throw new Error("threadId is required");const p=await a(`/ai/threads/${e}/update`,{method:"POST",body:C0(f)}),m=await V(p);return await i.mutate(),m},[e,a,i]),d=c.useCallback(async()=>{if(!e)throw new Error("threadId is required");const f=await a(`/ai/threads/${e}/archive`,{method:"POST",body:new URLSearchParams}),p=await V(f);return await i.mutate(),p},[e,a,i]),u=c.useCallback(async()=>{if(!e)throw new Error("threadId is required");const f=await a(`/ai/threads/${e}/unarchive`,{method:"POST",body:new URLSearchParams}),p=await V(f);return await i.mutate(),p},[e,a,i]);return{thread:i.data||null,loading:!i.data&&!i.error,error:i.error||null,updateThread:h,archiveThread:d,unarchiveThread:u,refetch:async()=>{await i.mutate()}}}function xp(e,r=!0){const{client:a}=je(),n=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${_0(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=lp(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 ci;const u=await a(`/ai/threads/${e}/filesystem${k0(d)}`);return(await V(u)).data},[e,a]),h=$e(n,()=>i(),{revalidateOnFocus:!1});return{filesystem:h.data||ci,filesystemLoading:!h.data&&!h.error,filesystemError:h.error||null,getFile:s,listDirectory:i,refetch:async()=>{await h.mutate()}}}function bp(e,r={}){var f,p;const{client:a}=je(),{enabled:n=!0,limit:s=40}=r,i=nr((m,g)=>{if(!n||!e||m>0&&g&&!g.has_more)return null;const v=m===0||g==null?void 0:g.next_cursor;return["wacht-ai-thread-events",e,s,v||""]},async([,m,g,v])=>{const b=new URLSearchParams({limit:String(g)});v&&b.set("cursor",String(v));const x=await a(`/ai/threads/${m}/events?${b.toString()}`);return(await V(x)).data},{revalidateOnFocus:!1,revalidateFirstPage:!0,persistSize:!0,refreshInterval:5e3}),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{events: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 wp(e,r={}){var f,p;const{client:a}=je(),{enabled:n=!0,limit:s=40}=r,i=nr((m,g)=>{if(!n||!e||m>0&&g&&!g.has_more)return null;const v=m===0||g==null?void 0:g.next_cursor;return["wacht-ai-thread-assignments",e,s,v||""]},async([,m,g,v])=>{const b=new URLSearchParams({limit:String(g)});v&&b.set("cursor",String(v));const x=await a(`/ai/threads/${m}/assignments?${b.toString()}`);return(await V(x)).data},{revalidateOnFocus:!1,revalidateFirstPage:!0,persistSize:!0,refreshInterval:5e3}),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 yp(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 n=a.toString();return n?`?${n}`:""}function jp(e,r=!0,a={}){var b,x,w;const{client:n}=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=nr((A,j)=>{if(!r||!e||A>0&&j&&!j.has_more)return null;const S=A===0||j==null?void 0:j.next_cursor;return["wacht-ai-project-tasks",e,s,i,h,S||""]},async([,A,,,,j])=>{const S=await n(`/ai/projects/${A}/board/items${yp(a,j||void 0)}`);return(await V(S)).data},{revalidateOnFocus:!1,revalidateFirstPage:!0,persistSize:!0,refreshInterval:5e3}),u=c.useMemo(()=>{var A;return((A=d.data)==null?void 0:A.flatMap(j=>j.data||[]))||[]},[d.data]),f=d.data&&((x=d.data[d.data.length-1])==null?void 0:x.has_more)||!1,p=d.isValidating&&!!d.data&&d.size>(((w=d.data)==null?void 0:w.length)||0),m=c.useCallback(async(A,j=[])=>{if(!e)throw new Error("projectId is required");const S=await n(`/ai/projects/${e}/board/items`,{method:"POST",body:S0(A,j)}),C=await V(S);return await d.mutate(),C},[e,n,d]),g=c.useCallback(async A=>{if(!e)throw new Error("projectId is required");const j=await n(`/ai/projects/${e}/board/items/${A}/archive`,{method:"POST",body:new URLSearchParams}),S=await V(j);return await d.mutate(),S},[e,n,d]),v=c.useCallback(async A=>{if(!e)throw new Error("projectId is required");const j=await n(`/ai/projects/${e}/board/items/${A}/unarchive`,{method:"POST",body:new URLSearchParams}),S=await V(j);return await d.mutate(),S},[e,n,d]);return{tasks:u,loading:!d.data&&!d.error,error:d.error||null,hasMore:f,loadingMore:p,loadMore:async()=>{!f||p||await d.setSize(A=>A+1)},createTask:m,archiveTask:g,unarchiveTask:v,refetch:async()=>{await d.mutate()}}}function _p(e,r,a=!0,n={}){var I,P,T,$;const{client:s}=je(),i=n.includeArchived?"with-archived":"active-only",h=n.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 E=await s(`/ai/projects/${e}/board/items/${r}${h}`);return(await V(E)).data},[e,r,s,h]),p=$e(d,f,{revalidateOnFocus:!1,refreshInterval:5e3}),m=nr((E,F)=>{if(!a||!e||!r||E>0&&F&&!F.has_more)return null;const L=E===0||F==null?void 0:F.next_cursor;return["wacht-ai-board-item-events",e,r,i,L||""]},async([,E,F,,L])=>{const H=new URLSearchParams({limit:"40"});n.includeArchived&&H.set("include_archived","true"),L&&H.set("cursor",String(L));const Z=await s(`/ai/projects/${E}/board/items/${F}/events?${H.toString()}`);return(await V(Z)).data},{revalidateOnFocus:!1,revalidateFirstPage:!0,persistSize:!0,refreshInterval:5e3}),g=nr((E,F)=>{if(!a||!e||!r||E>0&&F&&!F.has_more)return null;const L=E===0||F==null?void 0:F.next_cursor;return["wacht-ai-board-item-assignments",e,r,i,L||""]},async([,E,F,,L])=>{const H=new URLSearchParams({limit:"40"});n.includeArchived&&H.set("include_archived","true"),L&&H.set("cursor",String(L));const Z=await s(`/ai/projects/${E}/board/items/${F}/assignments?${H.toString()}`);return(await V(Z)).data},{revalidateOnFocus:!1,revalidateFirstPage:!0,persistSize:!0,refreshInterval:5e3}),v=c.useCallback(async()=>{if(!e||!r)return{exists:!1,files:[]};const E=await s(`/ai/projects/${e}/board/items/${r}/filesystem${h}`);return(await V(E)).data},[e,r,s,h]),b=$e(u,v,{revalidateOnFocus:!1,refreshInterval:5e3}),x=c.useCallback(async(E,F=[])=>{if(!e||!r)throw new Error("projectId and itemId are required");const L=await s(`/ai/projects/${e}/board/items/${r}/update`,{method:"POST",body:S0(E,F)}),H=await V(L);return await p.mutate(),await b.mutate(),H},[e,r,s,p,b]),w=c.useCallback(async()=>{if(!e||!r)throw new Error("projectId and itemId are required");const E=await s(`/ai/projects/${e}/board/items/${r}/archive`,{method:"POST",body:new URLSearchParams}),F=await V(E);return await p.mutate(),F},[e,r,s,p]),A=c.useCallback(async()=>{if(!e||!r)throw new Error("projectId and itemId are required");const E=await s(`/ai/projects/${e}/board/items/${r}/unarchive`,{method:"POST",body:new URLSearchParams}),F=await V(E);return await p.mutate(),F},[e,r,s,p]),j=c.useCallback(async E=>{if(!e||!r)throw new Error("projectId and itemId are required");const F=await s(`/ai/projects/${e}/board/items/${r}/filesystem/file${_0(E,n.includeArchived)}`);return await V(F)},[e,r,s,n.includeArchived]),S=c.useCallback(async E=>{if(!e||!r)throw new Error("projectId and itemId are required");const F=await s(`/ai/projects/${e}/board/items/${r}/filesystem${k0(E,n.includeArchived)}`);return await V(F)},[e,r,s,n.includeArchived]),C=c.useCallback(async(E,F=[])=>{if(!e||!r)throw new Error("projectId and itemId are required");const L=await s(`/ai/projects/${e}/board/items/${r}/journal`,{method:"POST",body:(()=>{const Z=new FormData;Z.set("summary",E.summary),E.body_markdown&&Z.set("body_markdown",E.body_markdown),E.details&&Z.set("details",E.details);for(const R of F)Z.append("files",R);return Z})()}),H=await V(L);return await m.mutate(),await b.mutate(),H},[e,r,s,m,b]),_=c.useMemo(()=>{var E;return((E=m.data)==null?void 0:E.flatMap(F=>F.data||[]))||[]},[m.data]),k=c.useMemo(()=>{var E;return((E=g.data)==null?void 0:E.flatMap(F=>F.data||[]))||[]},[g.data]),y=m.data&&((I=m.data[m.data.length-1])==null?void 0:I.has_more)||!1,M=m.isValidating&&!!m.data&&m.size>(((P=m.data)==null?void 0:P.length)||0),z=g.data&&((T=g.data[g.data.length-1])==null?void 0:T.has_more)||!1,O=g.isValidating&&!!g.data&&g.size>((($=g.data)==null?void 0:$.length)||0);return{item:p.data||null,events:_,assignments:k,eventsHasMore:y,eventsLoadingMore:M,loadMoreEvents:async()=>{!y||M||await m.setSize(E=>E+1)},assignmentsHasMore:z,assignmentsLoadingMore:O,loadMoreAssignments:async()=>{!z||O||await g.setSize(E=>E+1)},taskWorkspace:b.data||{exists:!1,files:[]},taskWorkspaceLoading:!b.data&&!b.error,taskWorkspaceError:b.error||null,loading:!p.data&&!p.error||!m.data&&!m.error||!g.data&&!g.error,error:p.error||m.error||g.error||null,updateItem:x,archiveItem:w,unarchiveItem:A,getTaskWorkspaceFile:j,listTaskWorkspaceDirectory:S,appendJournal:C,refetch:async()=>{await p.mutate(),await m.mutate(),await g.mutate(),await b.mutate()},refetchEvents:async()=>{await m.mutate()},refetchAssignments:async()=>{await g.mutate()},refetchTaskWorkspace:async()=>{await b.mutate()}}}function kp(e,r=!0){var v;const{client:a}=je(),{data:n,error:s,mutate:i,isLoading:h,size:d,setSize:u,isValidating:f}=nr((b,x)=>{if(!r||!e||b>0&&(!x||!x.has_more))return null;const w=b===0||x==null?void 0:x.next_cursor;return["wacht-ai-thread-graphs",e,w]},async([,b,x])=>{const w=new URLSearchParams;w.set("limit","10"),x&&w.set("cursor",String(x));const A=await a(`/ai/threads/${b}/task-graphs?${w.toString()}`),S=(await V(A)).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:5e3,revalidateFirstPage:!0,revalidateAll:!1,persistSize:!0}),p=c.useMemo(()=>n?n.flatMap(b=>b.data||[]):[],[n]),m=n&&((v=n[n.length-1])==null?void 0:v.has_more)||!1,g=f&&!!n&&d>((n==null?void 0:n.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 Cp(e=!0){const{client:r}=je(),a=e?"wacht-ai-actor-mcp-servers":null,n=c.useCallback(async()=>{const p=await r("/ai/mcp-servers");return(await V(p)).data},[r]),{data:s,error:i,mutate:h,isLoading:d}=$e(a,n,{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 Sp(e=!0){const{client:r}=je(),a=e?"wacht-ai-external-agent-connections":null,n=c.useCallback(async()=>{const p=await r("/ai/external-connections");return(await V(p)).data},[r]),{data:s,error:i,mutate:h,isLoading:d}=$e(a,n,{revalidateOnFocus:!1}),u=c.useCallback(async(p,m,g)=>{const v=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(v);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"}),v=await V(g);return await h(),v.data},[r,h]);return{connections:s??[],loading:d,error:i,connect:u,disconnect:f,refetch:async()=>{await h()}}}function E0(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,n])=>{r.append(`headers[${a}]`,n)}),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 Ep(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,n])=>{r.append(`headers[${a}]`,n)}),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 Ap(e){const r=new URLSearchParams;return r.append("event_name",e.event_name),r.append("payload",JSON.stringify(e.payload||{})),r}function zp(e){const r=new URLSearchParams;return(e.delivery_ids||[]).forEach(n=>r.append("delivery_ids",n)),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 za={"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 $p(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 Mp(e,r){if(!(await e(`/session/ticket/exchange?ticket=${encodeURIComponent(r)}`,{method:"GET"})).ok)throw new Error("Failed to exchange ticket")}async function Lp(e,r){const a=E0(r),n=await e("/webhook/endpoints",{method:"POST",headers:za,body:a.toString()});return St(n,"Failed to create webhook endpoint")}async function Rp(e,r,a){const n=Ep(a),s=await e(`/webhook/endpoints/${r}`,{method:"PUT",headers:za,body:n.toString()});return St(s,"Failed to update webhook endpoint")}async function Pp(e,r){const a=await e(`/webhook/endpoints/${r}`,{method:"DELETE"});return St(a,"Failed to delete webhook endpoint")}async function Tp(e,r,a){const n=Ap(a),s=await e(`/webhook/endpoints/${r}/test`,{method:"POST",headers:za,body:n.toString()});return St(s,"Failed to test webhook endpoint")}async function Fp(e){const r=await e("/webhook/rotate-secret",{method:"POST"});return St(r,"Failed to rotate signing secret")}async function Zp(e,r){const a=new URLSearchParams;for(const s of r.failure_notification_emails)a.append("failure_notification_emails",s);const n=await e("/webhook/settings",{method:"PUT",headers:za,body:a.toString()});return St(n,"Failed to update webhook settings")}async function Ip(e,r){const a=zp(r),n=await e("/webhook/deliveries/replay",{method:"POST",headers:za,body:a.toString()});return St(n,"Failed to replay webhook delivery")}async function Op(e,r){const a=await e(`/webhook/deliveries/${r}`,{method:"GET"});return St(a,"Failed to fetch delivery details")}async function Hp(e,{taskId:r}){const a=await e(`/webhook/deliveries/replay/${r}`,{method:"GET"});return St(a,"Failed to fetch replay task status")}async function Vp(e,r){const a=(r==null?void 0:r.limit)??50,n=(r==null?void 0:r.offset)??0,s=await e(`/webhook/deliveries/replay?limit=${a}&offset=${n}`,{method:"GET"});return St(s,"Failed to fetch replay tasks")}async function Dp(e,{taskId:r}){const a=await e(`/webhook/deliveries/replay/${r}/cancel`,{method:"POST"});return St(a,"Failed to cancel replay task")}function Np(e){const{client:r}=je(),[a,n]=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()=>$p(r),[r]),{data:v,error:b,isLoading:x,mutate:w}=$e(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 Mp(r,e),u.current=!0,n(!0)}catch(F){d(F instanceof Error?F:new Error("Failed to exchange ticket"))}finally{i(!1),f.current=!1}})()},[e,r]);const A=c.useCallback(async E=>Lp(r,E),[r]),j=c.useCallback(async(E,F)=>Rp(r,E,F),[r]),S=c.useCallback(async E=>Pp(r,E),[r]),C=c.useCallback(async(E,F)=>Tp(r,E,F),[r]),_=c.useCallback(async()=>Fp(r),[r]),k=c.useCallback(async E=>Ip(r,E),[r]),y=c.useCallback(async E=>Zp(r,E),[r]),M=c.useCallback(async E=>Op(r,E),[r]),z=c.useCallback(async E=>Hp(r,E),[r]),O=c.useCallback(async E=>Vp(r,E),[r]),I=c.useCallback(async E=>Dp(r,E),[r]),P=!b||b.message!=="NO_SESSION",T=h||(b&&b.message!=="NO_SESSION"?b:null);return{hasSession:P,sessionLoading:s||m&&x,sessionError:T,sessionId:(v==null?void 0:v.session_id)||null,webhookApp:(v==null?void 0:v.webhook_app)||null,ticketExchanged:a,ticketLoading:s,refetch:async()=>{await w()},createEndpoint:A,updateEndpoint:j,deleteEndpoint:S,testEndpoint:C,rotateSecret:_,updateSettings:y,replayDelivery:k,fetchReplayTaskStatus:z,fetchReplayTasks:O,cancelReplayTask:I,fetchDeliveryDetail:M}}function Up(){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:n,isLoading:s,mutate:i}=$e("wacht-webhook-stats",r,{revalidateOnFocus:!1,shouldRetryOnError:!1});return{stats:a||null,loading:s,error:n,refetch:()=>i()}}function Bp(){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:n,isLoading:s,mutate:i}=$e("wacht-webhook-endpoints",r,{revalidateOnFocus:!1,shouldRetryOnError:!1});return{endpoints:a||[],loading:s,error:n,refetch:()=>i()}}function Wp(){const{client:e}=je();return{createEndpoint:c.useCallback(async a=>{const n=E0(a),s=await e("/webhook/endpoints",{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:n.toString()});return await V(s)},[e]),loading:!1,error:null}}function Gp(){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:n,isLoading:s,mutate:i}=$e("wacht-webhook-events",r,{revalidateOnFocus:!1,shouldRetryOnError:!1});return{events:a||[],loading:s,error:n,refetch:()=>i()}}function qp(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:n,error:s,isLoading:i,mutate:h}=$e(()=>{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:(n==null?void 0:n.data)||[],has_more:(n==null?void 0:n.has_more)||!1,next_cursor:n==null?void 0:n.next_cursor,loading:i,error:s,refetch:()=>h()}}function Kp(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:n,error:s,isLoading:i,mutate:h}=$e(()=>{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:n||null,loading:i,error:s,refetch:()=>h()}}function Yp(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:n,error:s,isLoading:i,mutate:h}=$e(()=>{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:(n==null?void 0:n.data)||[],interval:(n==null?void 0:n.interval)||"hour",loading:i,error:s,refetch:()=>h()}}function Qp(e){const{client:r}=je(),[a,n]=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:v,error:b,isLoading:x,mutate:w}=$e(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,n(!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 A=!b||b.message!=="NO_SESSION",j=h||(b&&b.message!=="NO_SESSION"?b:null);return{hasSession:A,sessionLoading:s||m&&x,sessionError:j,sessionId:(v==null?void 0:v.session_id)||null,apiAuthApp:(v==null?void 0:v.api_auth_app)||null,ticketExchanged:a,ticketLoading:s,refetch:async()=>{await w()}}}function Jp(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:n,error:s,isLoading:i,mutate:h}=$e(`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}),v=await V(g);return await h(),v},[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}),v=await V(g);return await h(),v},[r,h]);return{keys:n||[],createKey:d,rotateKey:u,revokeKey:f,loading:i,error:s,refetch:()=>h()}}function Xp(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:n,error:s,isLoading:i,mutate:h}=$e(()=>{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:(n==null?void 0:n.data)||[],limit:(n==null?void 0:n.limit)||e.limit||0,has_more:(n==null?void 0:n.has_more)||!1,next_cursor:n==null?void 0:n.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.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:n,error:s,isLoading:i,mutate:h}=$e(()=>{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:n||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.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:n,error:s,isLoading:i,mutate:h}=$e(()=>{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:(n==null?void 0:n.data)||[],interval:(n==null?void 0:n.interval)||e.interval||"hour",loading:i,error:s,refetch:()=>h()}}const A0=()=>{const{client:e}=je(),[r,a]=c.useState(!1),[n,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}),v=(await V(m)).data;return h(v),v.error_code&&s(v.message||"Failed to accept invitation"),v}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:n,reset:u}},rh=({children:e})=>{const{loading:r}=Ae();return r?null:t.jsx(t.Fragment,{children:e})},ah=({children:e})=>{const{loading:r}=Ae();return r?t.jsx(t.Fragment,{children:e}):null};function nh(e){var r=Object.create(null);return function(a){return r[a]===void 0&&(r[a]=e(a)),r[a]}}var oh=/^((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)-.*))$/,sh=nh(function(e){return oh.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),Je="-ms-",ya="-moz-",Ne="-webkit-",z0="comm",zn="rule",bs="decl",ih="@import",ch="@namespace",$0="@keyframes",lh="@layer",M0=Math.abs,ws=String.fromCharCode,Qo=Object.assign;function dh(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 L0(e){return e.trim()}function Ut(e,r){return(e=r.exec(e))?e[0]:e}function Le(e,r,a){return e.replace(r,a)}function pn(e,r,a){return e.indexOf(r,a)}function ut(e,r){return e.charCodeAt(r)|0}function Rr(e,r,a){return e.slice(r,a)}function zt(e){return e.length}function R0(e){return e.length}function va(e,r){return r.push(e),e}function uh(e,r){return e.map(r).join("")}function di(e,r){return e.filter(function(a){return!Ut(a,r)})}var $n=1,Jr=1,P0=0,Ct=0,it=0,ra="";function Mn(e,r,a,n,s,i,h,d){return{value:e,root:r,parent:a,type:n,props:s,children:i,line:$n,column:Jr,length:h,return:"",siblings:d}}function Xt(e,r){return Qo(Mn("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},r)}function Hr(e){for(;e.root;)e=Xt(e.root,{children:[e]});va(e,e.siblings)}function ph(){return it}function hh(){return it=Ct>0?ut(ra,--Ct):0,Jr--,it===10&&(Jr=1,$n--),it}function Lt(){return it=Ct<P0?ut(ra,Ct++):0,Jr++,it===10&&(Jr=1,$n++),it}function tr(){return ut(ra,Ct)}function hn(){return Ct}function Ln(e,r){return Rr(ra,e,r)}function Ca(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 fh(e){return $n=Jr=1,P0=zt(ra=e),Ct=0,[]}function mh(e){return ra="",e}function Jn(e){return L0(Ln(Ct-1,Jo(e===91?e+2:e===40?e+1:e)))}function gh(e){for(;(it=tr())&&it<33;)Lt();return Ca(e)>2||Ca(it)>3?"":" "}function vh(e,r){for(;--r&&Lt()&&!(it<48||it>102||it>57&&it<65||it>70&&it<97););return Ln(e,hn()+(r<6&&tr()==32&&Lt()==32))}function Jo(e){for(;Lt();)switch(it){case e:return Ct;case 34:case 39:e!==34&&e!==39&&Jo(it);break;case 40:e===41&&Jo(e);break;case 92:Lt();break}return Ct}function xh(e,r){for(;Lt()&&e+it!==57;)if(e+it===84&&tr()===47)break;return"/*"+Ln(r,Ct-1)+"*"+ws(e===47?e:Lt())}function bh(e){for(;!Ca(tr());)Lt();return Ln(e,Ct)}function wh(e){return mh(fn("",null,null,null,[""],e=fh(e),0,[0],e))}function fn(e,r,a,n,s,i,h,d,u){for(var f=0,p=0,m=h,g=0,v=0,b=0,x=1,w=1,A=1,j=0,S="",C=s,_=i,k=n,y=S;w;)switch(b=j,j=Lt()){case 40:if(b!=108&&ut(y,m-1)==58){pn(y+=Le(Jn(j),"&","&\f"),"&\f",M0(f?d[f-1]:0))!=-1&&(A=-1);break}case 34:case 39:case 91:y+=Jn(j);break;case 9:case 10:case 13:case 32:y+=gh(b);break;case 92:y+=vh(hn()-1,7);continue;case 47:switch(tr()){case 42:case 47:va(yh(xh(Lt(),hn()),r,a,u),u),(Ca(b||1)==5||Ca(tr()||1)==5)&&zt(y)&&Rr(y,-1,void 0)!==" "&&(y+=" ");break;default:y+="/"}break;case 123*x:d[f++]=zt(y)*A;case 125*x:case 59:case 0:switch(j){case 0:case 125:w=0;case 59+p:A==-1&&(y=Le(y,/\f/g,"")),v>0&&(zt(y)-m||x===0&&b===47)&&va(v>32?pi(y+";",n,a,m-1,u):pi(Le(y," ","")+";",n,a,m-2,u),u);break;case 59:y+=";";default:if(va(k=ui(y,r,a,f,p,s,d,S,C=[],_=[],m,i),i),j===123)if(p===0)fn(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?fn(e,k,k,n&&va(ui(e,k,k,0,0,s,d,S,s,C=[],m,_),_),s,_,m,d,n?C:_):fn(y,k,k,k,[""],_,0,d,_)}}f=p=v=0,x=A=1,S=y="",m=h;break;case 58:m=1+zt(y),v=b;default:if(x<1){if(j==123)--x;else if(j==125&&x++==0&&hh()==125)continue}switch(y+=ws(j),j*x){case 38:A=p>0?1:(y+="\f",-1);break;case 44:d[f++]=(zt(y)-1)*A,A=1;break;case 64:tr()===45&&(y+=Jn(Lt())),g=tr(),p=m=zt(S=y+=bh(hn())),j++;break;case 45:b===45&&zt(y)==2&&(x=0)}}return i}function ui(e,r,a,n,s,i,h,d,u,f,p,m){for(var g=s-1,v=s===0?i:[""],b=R0(v),x=0,w=0,A=0;x<n;++x)for(var j=0,S=Rr(e,g+1,g=M0(w=h[x])),C=e;j<b;++j)(C=L0(w>0?v[j]+" "+S:Le(S,/&\f/g,v[j])))&&(u[A++]=C);return Mn(e,r,a,s===0?zn:d,u,f,p,m)}function yh(e,r,a,n){return Mn(e,r,a,z0,ws(ph()),Rr(e,2,-2),0,n)}function pi(e,r,a,n,s){return Mn(e,r,a,bs,Rr(e,0,n),Rr(e,n+1,-1),n,s)}function T0(e,r,a){switch(dh(e,r)){case 5103:return Ne+"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 Ne+e+e;case 4855:return Ne+e.replace("add","source-over").replace("substract","source-out").replace("intersect","source-in").replace("exclude","xor")+e;case 4789:return ya+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Ne+e+ya+e+Je+e+e;case 5936:switch(ut(e,r+11)){case 114:return Ne+e+Je+Le(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Ne+e+Je+Le(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Ne+e+Je+Le(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return Ne+e+Je+e+e;case 6165:return Ne+e+Je+"flex-"+e+e;case 5187:return Ne+e+Le(e,/(\w+).+(:[^]+)/,Ne+"box-$1$2"+Je+"flex-$1$2")+e;case 5443:return Ne+e+Je+"flex-item-"+Le(e,/flex-|-self/g,"")+(Ut(e,/flex-|baseline/)?"":Je+"grid-row-"+Le(e,/flex-|-self/g,""))+e;case 4675:return Ne+e+Je+"flex-line-pack"+Le(e,/align-content|flex-|-self/g,"")+e;case 5548:return Ne+e+Je+Le(e,"shrink","negative")+e;case 5292:return Ne+e+Je+Le(e,"basis","preferred-size")+e;case 6060:return Ne+"box-"+Le(e,"-grow","")+Ne+e+Je+Le(e,"grow","positive")+e;case 4554:return Ne+Le(e,/([^-])(transform)/g,"$1"+Ne+"$2")+e;case 6187:return Le(Le(Le(e,/(zoom-|grab)/,Ne+"$1"),/(image-set)/,Ne+"$1"),e,"")+e;case 5495:case 3959:return Le(e,/(image-set\([^]*)/,Ne+"$1$`$1");case 4968:return Le(Le(e,/(.+:)(flex-)?(.*)/,Ne+"box-pack:$3"+Je+"flex-pack:$3"),/space-between/,"justify")+Ne+e+e;case 4200:if(!Ut(e,/flex-|baseline/))return Je+"grid-column-align"+Rr(e,r)+e;break;case 2592:case 3360:return Je+Le(e,"template-","")+e;case 4384:case 3616:return a&&a.some(function(n,s){return r=s,Ut(n.props,/grid-\w+-end/)})?~pn(e+(a=a[r].value),"span",0)?e:Je+Le(e,"-start","")+e+Je+"grid-row-span:"+(~pn(a,"span",0)?Ut(a,/\d+/):+Ut(a,/\d+/)-+Ut(e,/\d+/))+";":Je+Le(e,"-start","")+e;case 4896:case 4128:return a&&a.some(function(n){return Ut(n.props,/grid-\w+-start/)})?e:Je+Le(Le(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return Le(e,/(.+)-inline(.+)/,Ne+"$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 Le(e,/(.+:)(.+)-([^]+)/,"$1"+Ne+"$2-$3$1"+ya+(ut(e,r+3)==108?"$3":"$2-$3"))+e;case 115:return~pn(e,"stretch",0)?T0(Le(e,"stretch","fill-available"),r,a)+e:e}break;case 5152:case 5920:return Le(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(n,s,i,h,d,u,f){return Je+s+":"+i+f+(h?Je+s+"-span:"+(d?u:+u-+i)+f:"")+e});case 4949:if(ut(e,r+6)===121)return Le(e,":",":"+Ne)+e;break;case 6444:switch(ut(e,ut(e,14)===45?18:11)){case 120:return Le(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+Ne+(ut(e,14)===45?"inline-":"")+"box$3$1"+Ne+"$2$3$1"+Je+"$2box$3")+e;case 100:return Le(e,":",":"+Je)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return Le(e,"scroll-","scroll-snap-")+e}return e}function wn(e,r){for(var a="",n=0;n<e.length;n++)a+=r(e[n],n,e,r)||"";return a}function jh(e,r,a,n){switch(e.type){case lh:if(e.children.length)break;case ih:case ch:case bs:return e.return=e.return||e.value;case z0:return"";case $0:return e.return=e.value+"{"+wn(e.children,n)+"}";case zn:if(!zt(e.value=e.props.join(",")))return""}return zt(a=wn(e.children,n))?e.return=e.value+"{"+a+"}":""}function _h(e){var r=R0(e);return function(a,n,s,i){for(var h="",d=0;d<r;d++)h+=e[d](a,n,s,i)||"";return h}}function kh(e){return function(r){r.root||(r=r.return)&&e(r)}}function Ch(e,r,a,n){if(e.length>-1&&!e.return)switch(e.type){case bs:e.return=T0(e.value,e.length,a);return;case $0:return wn([Xt(e,{value:Le(e.value,"@","@"+Ne)})],n);case zn:if(e.length)return uh(a=e.props,function(s){switch(Ut(s,n=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":Hr(Xt(e,{props:[Le(s,/:(read-\w+)/,":"+ya+"$1")]})),Hr(Xt(e,{props:[s]})),Qo(e,{props:di(a,n)});break;case"::placeholder":Hr(Xt(e,{props:[Le(s,/:(plac\w+)/,":"+Ne+"input-$1")]})),Hr(Xt(e,{props:[Le(s,/:(plac\w+)/,":"+ya+"$1")]})),Hr(Xt(e,{props:[Le(s,/:(plac\w+)/,Je+"input-$1")]})),Hr(Xt(e,{props:[s]})),Qo(e,{props:di(a,n)});break}return""})}}var Xn,eo;const Pr=typeof process<"u"&&process.env!==void 0&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",F0="active",Z0="data-styled-version",Rn="6.4.1",ys=`/*!sc*/
|
|
19
|
-
`,ja=typeof window<"u"&&typeof document<"u";function hi(e){if(typeof process<"u"&&process.env!==void 0){const r=process.env[e];if(r!==void 0&&r!=="")return r!=="false"}}const Sh=!!(typeof SC_DISABLE_SPEEDY=="boolean"?SC_DISABLE_SPEEDY:(eo=(Xn=hi("REACT_APP_SC_DISABLE_SPEEDY"))!==null&&Xn!==void 0?Xn:hi("SC_DISABLE_SPEEDY"))!==null&&eo!==void 0?eo:typeof process>"u"||process.env===void 0||process.env.NODE_ENV!=="production"),
|
|
18
|
+
*/var Js;function Vu(){return Js||(Js=1,process.env.NODE_ENV!=="production"&&(function(){function e(v,b){return v===b&&(v!==0||1/v===1/b)||v!==v&&b!==b}function r(v,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 x=b();if(!m){var w=b();i(x,w)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),m=!0)}w=h({inst:{value:x,getSnapshot:b}});var A=w[0].inst,j=w[1];return u(function(){A.value=x,A.getSnapshot=b,a(A)&&j({inst:A})},[v,x,b]),d(function(){return a(A)&&j({inst:A}),v(function(){a(A)&&j({inst:A})})},[v]),f(x),x}function a(v){var b=v.getSnapshot;v=v.value;try{var x=b();return!i(v,x)}catch{return!0}}function n(v,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"?n:r;Dn.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())})()),Dn}var Xs;function Du(){return Xs||(Xs=1,process.env.NODE_ENV==="production"?Ta.exports=Hu():Ta.exports=Vu()),Ta.exports}var Oo=Du();const o0=0,s0=1,i0=2,ei=3;var ti=Object.prototype.hasOwnProperty;function Ho(e,r){var a,n;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((n=e.length)===r.length)for(;n--&&Ho(e[n],r[n]););return n===-1}if(!a||typeof e=="object"){n=0;for(a in e)if(ti.call(e,a)&&++n&&!ti.call(r,a)||!(a in r)||!Ho(e[a],r[a]))return!1;return Object.keys(r).length===n}}return e!==e&&r!==r}const Tt=new WeakMap,Wt=()=>{},pt=Wt(),Vo=Object,Ee=e=>e===pt,$t=e=>typeof e=="function",ar=(e,r)=>({...e,...r}),c0=e=>$t(e.then),Nn={},Fa={},vs="undefined",Aa=typeof window!=vs,Do=typeof document!=vs,Nu=Aa&&"Deno"in window,Uu=()=>Aa&&typeof window.requestAnimationFrame!=vs,er=(e,r)=>{const a=Tt.get(e);return[()=>!Ee(r)&&e.get(r)||Nn,n=>{if(!Ee(r)){const s=e.get(r);r in Fa||(Fa[r]=s),a[5](r,ar(s,n),s||Nn)}},a[6],()=>!Ee(r)&&r in Fa?Fa[r]:!Ee(r)&&e.get(r)||Nn]};let No=!0;const Bu=()=>No,[Uo,Bo]=Aa&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[Wt,Wt],Wu=()=>{const e=Do&&document.visibilityState;return Ee(e)||e!=="hidden"},Gu=e=>(Do&&document.addEventListener("visibilitychange",e),Uo("focus",e),()=>{Do&&document.removeEventListener("visibilitychange",e),Bo("focus",e)}),qu=e=>{const r=()=>{No=!0,e()},a=()=>{No=!1};return Uo("online",r),Uo("offline",a),()=>{Bo("online",r),Bo("offline",a)}},Ku={isOnline:Bu,isVisible:Wu},Yu={initFocus:Gu,initReconnect:qu},ri=!c.useId,Yr=!Aa||Nu,Qu=e=>Uu()?window.requestAnimationFrame(e):setTimeout(e,1),un=Yr?c.useEffect:c.useLayoutEffect,Un=typeof navigator<"u"&&navigator.connection,ai=!Yr&&Un&&(["slow-2g","2g"].includes(Un.effectiveType)||Un.saveData),Ia=new WeakMap,Ju=e=>Vo.prototype.toString.call(e),Bn=(e,r)=>e===`[object ${r}]`;let Xu=0;const Wo=e=>{const r=typeof e,a=Ju(e),n=Bn(a,"Date"),s=Bn(a,"RegExp"),i=Bn(a,"Object");let h,d;if(Vo(e)===e&&!n&&!s){if(h=Ia.get(e),h)return h;if(h=++Xu+"~",Ia.set(e,h),Array.isArray(e)){for(h="@",d=0;d<e.length;d++)h+=Wo(e[d])+",";Ia.set(e,h)}if(i){h="#";const u=Vo.keys(e).sort();for(;!Ee(d=u.pop());)Ee(e[d])||(h+=d+":"+Wo(e[d])+",");Ia.set(e,h)}}else h=n?e.toJSON():r=="symbol"?e.toString():r=="string"?JSON.stringify(e):""+e;return h},ka=e=>{if($t(e))try{e=e()}catch{e=""}const r=e;return e=typeof e=="string"?e:(Array.isArray(e)?e.length:e)?Wo(e):"",[e,r]};let e2=0;const Go=()=>++e2;async function l0(...e){const[r,a,n,s]=e,i=ar({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,v=[],b=r.keys();for(const x of b)!/^\$(inf|sub)\$/.test(x)&&g(r.get(x)._k)&&v.push(x);return Promise.all(v.map(m))}return m(a);async function m(g){const[v]=ka(g);if(!v)return;const[b,x]=er(r,v),[w,A,j,S]=Tt.get(r),C=()=>{const $=w[v];return($t(i.revalidate)?i.revalidate(b().data,g):i.revalidate!==!1)&&(delete j[v],delete S[v],$&&$[0])?$[0](i0).then(()=>b().data):b().data};if(e.length<3)return C();let _=n,k,y=!1;const M=Go();A[v]=[M,0];const z=!Ee(u),O=b(),I=O.data,P=O._c,T=Ee(P)?I:P;if(z&&(u=$t(u)?u(T,I):u,x({data:u,_c:T})),$t(_))try{_=_(T)}catch($){k=$,y=!0}if(_&&c0(_))if(_=await _.catch($=>{k=$,y=!0}),M!==A[v][0]){if(y)throw k;return _}else y&&z&&f(k)&&(h=!0,x({data:T,_c:pt}));if(h&&!y)if($t(h)){const $=h(_,T);x({data:$,error:pt,_c:pt})}else x({data:_,error:pt,_c:pt});if(A[v][1]=Go(),Promise.resolve(C()).then(()=>{x({_c:pt})}),y){if(p)throw k;return}return _}}const ni=(e,r)=>{for(const a in e)e[a][0]&&e[a][0](r)},t2=(e,r)=>{if(!Tt.has(e)){const a=ar(Yu,r),n=Object.create(null),s=l0.bind(pt,e);let i=Wt;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 v=h[p];if(v)for(const b of v)b(m,g)},f=()=>{if(!Tt.has(e)&&(Tt.set(e,[n,Object.create(null),Object.create(null),Object.create(null),s,u,d]),!Yr)){const p=a.initFocus(setTimeout.bind(pt,ni.bind(pt,n,o0))),m=a.initReconnect(setTimeout.bind(pt,ni.bind(pt,n,s0)));i=()=>{p&&p(),m&&m(),Tt.delete(e)}}};return f(),[e,s,f,i]}return[e,Tt.get(e)[4]]},r2=(e,r,a,n,s)=>{const i=a.errorRetryCount,h=s.retryCount,d=~~((Math.random()+.5)*(1<<(h<8?h:8)))*a.errorRetryInterval;!Ee(i)&&h>i||setTimeout(n,d,s)},a2=Ho,[xs,qr]=t2(new Map),n2=ar({onLoadingSlow:Wt,onSuccess:Wt,onError:Wt,onErrorRetry:r2,onDiscarded:Wt,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:ai?1e4:5e3,focusThrottleInterval:5*1e3,dedupingInterval:2*1e3,loadingTimeout:ai?5e3:3e3,compare:a2,isPaused:()=>!1,cache:xs,mutate:qr,fallback:{}},Ku),o2=(e,r)=>{const a=ar(e,r);if(r){const{use:n,fallback:s}=e,{use:i,fallback:h}=r;n&&i&&(a.use=n.concat(i)),s&&h&&(a.fallback=ar(s,h))}return a},s2=c.createContext({}),d0="$inf$",u0=Aa&&window.__SWR_DEVTOOLS_USE__,i2=u0?window.__SWR_DEVTOOLS_USE__:[],c2=()=>{u0&&(window.__SWR_DEVTOOLS_REACT__=c)},p0=e=>$t(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(e[1]===null?e[2]:e[1])||{}],h0=()=>{const e=c.useContext(s2);return c.useMemo(()=>ar(n2,e),[e])},l2=e=>(r,a,n)=>e(r,a&&((...i)=>{const[h]=ka(r),[,,,d]=Tt.get(xs);if(h.startsWith(d0))return a(...i);const u=d[h];return Ee(u)?a(...i):(delete d[h],u)}),n),d2=i2.concat(l2),u2=e=>function(...a){const n=h0(),[s,i,h]=p0(a),d=o2(n,h);let u=e;const{use:f}=d,p=(f||[]).concat(d2);for(let m=p.length;m--;)u=p[m](u);return u(s,i||d.fetcher||null,d)},p2=(e,r,a)=>{const n=r[e]||(r[e]=[]);return n.push(a),()=>{const s=n.indexOf(a);s>=0&&(n[s]=n[n.length-1],n.pop())}},h2=(e,r)=>(...a)=>{const[n,s,i]=p0(a),h=(i.use||[]).concat(r);return e(n,s,{...i,use:h})};c2();const Wn=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}}),Gn={dedupe:!0},oi=Promise.resolve(pt),f2=()=>Wt,m2=(e,r,a)=>{const{cache:n,compare:s,suspense:i,fallbackData:h,revalidateOnMount:d,revalidateIfStale:u,refreshInterval:f,refreshWhenHidden:p,refreshWhenOffline:m,keepPreviousData:g,strictServerPrefetchWarning:v}=a,[b,x,w,A]=Tt.get(n),[j,S]=ka(e),C=c.useRef(!1),_=c.useRef(!1),k=c.useRef(j),y=c.useRef(r),M=c.useRef(a),z=()=>M.current,O=()=>z().isVisible()&&z().isOnline(),[I,P,T,$]=er(n,j),E=c.useRef({}).current,F=Ee(h)?Ee(a.fallback)?pt:a.fallback[j]:h,L=(J,le)=>{for(const oe in E){const G=oe;if(G==="data"){if(!s(J[G],le[G])&&(!Ee(J[G])||!s(ce,le[G])))return!1}else if(le[G]!==J[G])return!1}return!0},H=!C.current,Z=c.useMemo(()=>{const J=I(),le=$(),oe=q=>{const de=ar(q);return delete de._k,(()=>{if(!j||!r||z().isPaused())return!1;if(H&&!Ee(d))return d;const We=Ee(F)?de.data:F;return Ee(We)||u})()?{isValidating:!0,isLoading:!0,...de}:de},G=oe(J),pe=J===le?G:oe(le);let fe=G;return[()=>{const q=oe(I());return L(q,fe)?(fe.data=q.data,fe.isLoading=q.isLoading,fe.isValidating=q.isValidating,fe.error=q.error,fe):(fe=q,q)},()=>pe]},[n,j]),R=Oo.useSyncExternalStore(c.useCallback(J=>T(j,(le,oe)=>{L(oe,le)||J()}),[n,j]),Z[0],Z[1]),W=b[j]&&b[j].length>0,D=R.data,B=Ee(D)?F&&c0(F)?Wn(F):F:D,Y=R.error,X=c.useRef(B),ce=g?Ee(D)?Ee(X.current)?B:X.current:D:B,me=j&&Ee(B),te=c.useRef(null);!Yr&&Oo.useSyncExternalStore(f2,()=>(te.current=!1,te),()=>(te.current=!0,te));const xe=te.current;v&&xe&&!i&&me&&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 re=!j||!r||z().isPaused()||W&&!Ee(Y)?!1:H&&!Ee(d)?d:i?Ee(B)?!1:u:Ee(B)||u,U=H&&re,Qe=Ee(R.isValidating)?U:R.isValidating,Te=Ee(R.isLoading)?U:R.isLoading,Ve=c.useCallback(async J=>{const le=y.current;if(!j||!le||_.current||z().isPaused())return!1;let oe,G,pe=!0;const fe=J||{},q=!w[j]||!fe.dedupe,de=()=>ri?!_.current&&j===k.current&&C.current:j===k.current,Be={isValidating:!1,isLoading:!1},We=()=>{P(Be)},Q=()=>{const he=w[j];he&&he[1]===G&&delete w[j]},se={isValidating:!0};Ee(I().data)&&(se.isLoading=!0);try{if(q&&(P(se),a.loadingTimeout&&Ee(I().data)&&setTimeout(()=>{pe&&de()&&z().onLoadingSlow(j,a)},a.loadingTimeout),w[j]=[le(S),Go()]),[oe,G]=w[j],oe=await oe,q&&setTimeout(Q,a.dedupingInterval),!w[j]||w[j][1]!==G)return q&&de()&&z().onDiscarded(j),!1;Be.error=pt;const he=x[j];if(!Ee(he)&&(G<=he[0]||G<=he[1]||he[1]===0))return We(),q&&de()&&z().onDiscarded(j),!1;const _e=I().data;Be.data=s(_e,oe)?_e:oe,q&&de()&&z().onSuccess(oe,j,a)}catch(he){Q();const _e=z(),{shouldRetryOnError:ke}=_e;_e.isPaused()||(Be.error=he,q&&de()&&(_e.onError(he,j,_e),(ke===!0||$t(ke)&&ke(he))&&(!z().revalidateOnFocus||!z().revalidateOnReconnect||O())&&_e.onErrorRetry(he,j,_e,Ge=>{const dt=b[j];dt&&dt[0]&&dt[0](ei,Ge)},{retryCount:(fe.retryCount||0)+1,dedupe:!0})))}return pe=!1,We(),!0},[j,n]),Ue=c.useCallback((...J)=>l0(n,k.current,...J),[]);if(un(()=>{y.current=r,M.current=a,Ee(D)||(X.current=D)}),un(()=>{if(!j)return;const J=Ve.bind(pt,Gn);let le=0;z().revalidateOnFocus&&(le=Date.now()+z().focusThrottleInterval);const G=p2(j,b,(pe,fe={})=>{if(pe==o0){const q=Date.now();z().revalidateOnFocus&&q>le&&O()&&(le=q+z().focusThrottleInterval,J())}else if(pe==s0)z().revalidateOnReconnect&&O()&&J();else{if(pe==i0)return Ve();if(pe==ei)return Ve(fe)}});return _.current=!1,k.current=j,C.current=!0,P({_k:S}),re&&(w[j]||(Ee(B)||Yr?J():Qu(J))),()=>{_.current=!0,G()}},[j]),un(()=>{let J;function le(){const G=$t(f)?f(I().data):f;G&&J!==-1&&(J=setTimeout(oe,G))}function oe(){!I().error&&(p||z().isVisible())&&(m||z().isOnline())?Ve(Gn).then(le):le()}return le(),()=>{J&&(clearTimeout(J),J=-1)}},[f,p,m,j]),c.useDebugValue(ce),i){if(!ri&&Yr&&me)throw new Error("Fallback data is required when using Suspense in SSR.");me&&(y.current=r,M.current=a,_.current=!1);const J=A[j],le=!Ee(J)&&me?Ue(J):oi;if(Wn(le),!Ee(Y)&&me)throw Y;const oe=me?Ve(Gn):oi;!Ee(ce)&&me&&(oe.status="fulfilled",oe.value=!0),Wn(oe)}return{mutate:Ue,get data(){return E.data=!0,ce},get error(){return E.error=!0,Y},get isValidating(){return E.isValidating=!0,Qe},get isLoading(){return E.isLoading=!0,Te}}},$e=u2(m2),yt=()=>{const{adapter:e,deployment:r}=Ae(),a=e.useNavigate(),n=(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:n,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__",ht(r.backend_host)??""),n(`${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__",ht(r.backend_host)??""),n(`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__",ht(r.backend_host)??""),n(`${r.ui_settings.sign_up_page_url}?${p.toString()}`,{replace:!0})}}};async function g2(e){const r=await e("/session",{method:"GET"});return(await V(r)).data}async function v2(e,r){const a=await e(`/session/switch-sign-in?sign_in_id=${r}`,{method:"POST"});return V(a)}async function x2(e,r){const a=r?`/session/sign-out?sign_in_id=${r}`:"/session/sign-out",n=await e(a,{method:"POST"});return V(n)}async function b2(e,r){const a=await e(`/session/switch-organization${r?`?organization_id=${r}`:""}`,{method:"POST"});return V(a)}async function w2(e,r){const a=await e(`/session/switch-workspace?workspace_id=${r}`,{method:"POST"});return V(a)}async function y2(e,r){const a=await e(`/session/ticket/exchange?ticket=${encodeURIComponent(r)}`,{method:"GET"});return V(a)}const qo=new Map,ga=new Map;function Mt(){qo.clear(),ga.clear()}async function j2(e,r){const a=await e(`/session/token${r?`?template=${r}`:""}`);return V(a)}function st(){const{client:e,loading:r}=je(),{deployment:a}=Ae(),{navigate:n}=yt(),{cache:s}=h0(),{data:i,error:h,mutate:d,isLoading:u}=$e(r?null:"/session",()=>g2(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=qo.get(m);if(g&&g.expires>Date.now())return(g==null?void 0:g.token)||"";ga.get(m)||ga.set(m,j2(e,m));const v=await ga.get(m);return ga.delete(m),qo.set(m,v.data),v.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 v2(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 x2(e,m);const g=["/session","/user","/me/signins","/me/organization-memberships","/me/workspace-memberships","wacht-notifications:scope-unread"],v=["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 x of b){let w=!1;(g.includes(x)||typeof x=="string"&&v.some(A=>x.startsWith(A)))&&(w=!0),w&&s.delete(x)}}Mt(),await d(void 0,{revalidate:!0}),a!=null&&a.ui_settings&&(m&&a.ui_settings.after_sign_out_one_page_url?n(a.ui_settings.after_sign_out_one_page_url):!m&&a.ui_settings.after_sign_out_all_page_url&&n(a.ui_settings.after_sign_out_all_page_url))},switchOrganization:async m=>{await b2(e,m),Mt(),await d(void 0,{revalidate:!0})},switchWorkspace:async m=>{await w2(e,m),Mt(),await d(void 0,{revalidate:!0})},exchangeTicket:async m=>{await y2(e,m),Mt(),await d(void 0,{revalidate:!0})},getToken:p,refetch:f}}const It=()=>{const{organizationMemberships:e,refetch:r,loading:a}=Kt(),{client:n}=je(),{refetch:s}=st(),i=c.useCallback(async H=>(await V(await n(`/organizations/${H.id}/roles`,{method:"GET"}))).data,[n]),h=c.useCallback(async(H,Z)=>{const R=new URLSearchParams;return Z&&(R.set("page",Z.page.toString()),R.set("limit",Z.limit.toString()),Z.search&&R.set("search",Z.search)),(await V(await n(`/organizations/${H.id}/members?${R.toString()}`,{method:"GET"}))).data},[n]),d=c.useCallback(async H=>(await V(await n(`/organizations/${H.id}/invitations`,{method:"GET"}))).data,[n]),u=c.useCallback(async H=>(await V(await n(`/organizations/${H.id}/domains`,{method:"GET"}))).data,[n]),f=c.useCallback(async(H,Z)=>{await n(`/organizations/${H.id}/members/${Z.id}/remove`,{method:"POST"})},[n]),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 R=await V(await n("/organizations",{method:"POST",body:Z}));return Mt(),await r(),await s(),R},[s,r,n]),m=c.useCallback(async(H,Z)=>{const R=Object.entries(Z).reduce((D,[B,Y])=>(Y!=null&&(Array.isArray(Y)?Y.forEach(X=>D.append(B,X)):D.append(B,Y)),D),new FormData),W=await V(await n(`/organizations/${H.id}/update`,{method:"POST",body:R}));return await r(),W},[r,n]),g=c.useCallback(async(H,Z)=>{await n(`/organizations/${H.id}/roles/${Z.id}/remove`,{method:"POST"})},[n]),v=c.useCallback(async(H,Z)=>{const R=new FormData;return R.append("domain",Z.fqdn),await V(await n(`/organizations/${H.id}/domains`,{method:"POST",body:R}))},[n]),b=c.useCallback(async(H,Z)=>await V(await n(`/organizations/${H.id}/domains/${Z.id}/verify`,{method:"POST"})),[n]),x=c.useCallback(async(H,Z)=>await V(await n(`/organizations/${H.id}/domains/${Z.id}/delete`,{method:"POST"})),[n]),w=c.useCallback(async H=>(await V(await n(`/organizations/${H.id}/enterprise-connections`,{method:"GET"}))).data,[n]),A=c.useCallback(async(H,Z)=>{const R=new FormData;return R.append("protocol",Z.protocol),Z.domain_id&&R.append("domain_id",Z.domain_id),Z.idp_entity_id&&R.append("idp_entity_id",Z.idp_entity_id),Z.idp_sso_url&&R.append("idp_sso_url",Z.idp_sso_url),Z.idp_certificate&&R.append("idp_certificate",Z.idp_certificate),Z.oidc_client_id&&R.append("oidc_client_id",Z.oidc_client_id),Z.oidc_client_secret&&R.append("oidc_client_secret",Z.oidc_client_secret),Z.oidc_issuer_url&&R.append("oidc_issuer_url",Z.oidc_issuer_url),Z.oidc_scopes&&R.append("oidc_scopes",Z.oidc_scopes),Z.jit_enabled!==void 0&&R.append("jit_enabled",String(Z.jit_enabled)),Z.attribute_mapping&&R.append("attribute_mapping",JSON.stringify(Z.attribute_mapping)),(await V(await n(`/organizations/${H.id}/enterprise-connections`,{method:"POST",body:R}))).data},[n]),j=c.useCallback(async(H,Z,R)=>{const W=new FormData;return R.domain_id&&W.append("domain_id",R.domain_id),R.idp_entity_id&&W.append("idp_entity_id",R.idp_entity_id),R.idp_sso_url&&W.append("idp_sso_url",R.idp_sso_url),R.idp_certificate&&W.append("idp_certificate",R.idp_certificate),R.oidc_client_id&&W.append("oidc_client_id",R.oidc_client_id),R.oidc_client_secret&&W.append("oidc_client_secret",R.oidc_client_secret),R.oidc_issuer_url&&W.append("oidc_issuer_url",R.oidc_issuer_url),R.oidc_scopes&&W.append("oidc_scopes",R.oidc_scopes),R.attribute_mapping&&W.append("attribute_mapping",JSON.stringify(R.attribute_mapping)),(await V(await n(`/organizations/${H.id}/enterprise-connections/${Z}/update`,{method:"POST",body:W}))).data},[n]),S=c.useCallback(async(H,Z)=>{await n(`/organizations/${H.id}/enterprise-connections/${Z}/delete`,{method:"POST"})},[n]),C=c.useCallback(async(H,Z)=>{const R=new FormData;return R.append("protocol",Z.protocol),Z.idp_entity_id&&R.append("idp_entity_id",Z.idp_entity_id),Z.idp_sso_url&&R.append("idp_sso_url",Z.idp_sso_url),Z.idp_certificate&&R.append("idp_certificate",Z.idp_certificate),Z.oidc_issuer_url&&R.append("oidc_issuer_url",Z.oidc_issuer_url),Z.oidc_client_id&&R.append("oidc_client_id",Z.oidc_client_id),Z.oidc_client_secret&&R.append("oidc_client_secret",Z.oidc_client_secret),(await V(await n(`/organizations/${H.id}/enterprise-connections/test`,{method:"POST",body:R}))).data},[n]),_=c.useCallback(async(H,Z)=>(await V(await n(`/organizations/${H.id}/enterprise-connections/${Z}/test`,{method:"POST"}))).data,[n]),k=c.useCallback(async(H,Z)=>(await V(await n(`/organizations/${H.id}/enterprise-connections/${Z}/scim/token`,{method:"POST"}))).data,[n]),y=c.useCallback(async(H,Z)=>(await V(await n(`/organizations/${H.id}/enterprise-connections/${Z}/scim/token`,{method:"GET"}))).data,[n]),M=c.useCallback(async(H,Z)=>{await n(`/organizations/${H.id}/enterprise-connections/${Z}/scim/token/revoke`,{method:"POST"})},[n]),z=c.useCallback(async(H,Z)=>{const R=new FormData;return R.append("name",Z.name),Z.permissions&&Z.permissions.forEach((D,B)=>{R.append(`permissions[${B}]`,D)}),await V(await n(`/organizations/${H.id}/roles`,{method:"POST",body:R}))},[n]),O=c.useCallback(async H=>(await V(await n(`/organizations/${H.id}/leave`,{method:"POST"}))).data,[n]),I=c.useCallback(async H=>{const Z=await V(await n(`/organizations/${H.id}/delete`,{method:"POST"}));return Mt(),await r(),await s(),Z.data},[n,r,s]),P=c.useCallback(async(H,Z,R)=>(await V(await n(`/organizations/${H.id}/members/${Z.id}/roles/${R.id}/add`,{method:"POST"}))).data,[n]),T=c.useCallback(async(H,Z,R)=>(await V(await n(`/organizations/${H.id}/members/${Z.id}/roles/${R.id}/remove`,{method:"POST"}))).data,[n]),$=c.useCallback(async(H,Z)=>{var D,B;const R=new FormData;return R.append("email",Z.email),R.append("role_id",Z.organizationRole.id),(D=Z.workspace)!=null&&D.id&&R.append("workspace_id",Z.workspace.id),(B=Z.workspaceRole)!=null&&B.id&&R.append("workspace_role_id",Z.workspaceRole.id),(await V(await n(`/organizations/${H.id}/invitations`,{method:"POST",body:R}))).data},[n]),E=c.useCallback(async(H,Z)=>(await V(await n(`/organizations/${H.id}/invitations/${Z.id}/discard`,{method:"POST"}))).data,[n]),F=c.useCallback(async(H,Z)=>(await V(await n(`/organizations/${H.id}/invitations/${Z.id}/resend`,{method:"POST"}))).data,[n]);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:v,verifyOrganizationDomain:b,removeOrganizationDomain:x,addRoleToOrganizationMember:P,removeRoleFromOrganizationMember:T,inviteOrganizationMember:$,discardOrganizationInvitation:E,resendOrganizationInvitation:F,updateOrganization:m,addRole:z,removeOrganizationRoles:g,deleteOrganization:I,getEnterpriseConnections:w,createEnterpriseConnection:A,updateEnterpriseConnection:j,deleteEnterpriseConnection:S,testEnterpriseConnectionConfig:C,testEnterpriseConnection:_,generateSCIMToken:k,getSCIMToken:y,revokeSCIMToken:M}},sr=()=>{const{loading:e,error:r,refetch:a,getOrganizationMembers:n,getOrganizationRoles:s,leaveOrganization:i,removeOrganizationMember:h,getOrganizationInvitations:d,getOrganizationDomains:u,removeOrganizationDomain:f,addOrganizationDomain:p,verifyOrganizationDomain:m,addRoleToOrganizationMember:g,removeRoleFromOrganizationMember:v,inviteOrganizationMember:b,discardOrganizationInvitation:x,resendOrganizationInvitation:w,updateOrganization:A,removeOrganizationRoles:j,getEnterpriseConnections:S,createEnterpriseConnection:C,updateEnterpriseConnection:_,deleteEnterpriseConnection:k,testEnterpriseConnectionConfig:y,testEnterpriseConnection:M,generateSCIMToken:z,getSCIMToken:O,revokeSCIMToken:I}=It(),{session:P,error:T,loading:$}=st(),{organizationMemberships:E}=Kt(),F=c.useMemo(()=>(E==null?void 0:E.find(q=>{var de;return q.id===((de=P==null?void 0:P.active_signin)==null?void 0:de.active_organization_membership_id)}))||null,[E,P]),L=c.useMemo(()=>(F==null?void 0:F.organization)||null,[F]),H=c.useCallback(async q=>L?await A(L,q):[],[L,A]),Z=c.useCallback(async()=>L?await n(L):[],[L,n]),R=c.useCallback(async()=>L?await s(L):[],[L,s]),W=c.useCallback(async q=>L?await h(L,q):[],[L,h]),D=c.useCallback(async q=>L?await j(L,q):void 0,[L,j]),B=c.useCallback(async()=>L?await u(L):[],[L,u]),Y=c.useCallback(async q=>L?await p(L,q):void 0,[L,p]),X=c.useCallback(async q=>L?await m(L,q):void 0,[L,m]),ce=c.useCallback(async q=>L?await f(L,q):void 0,[L,f]),me=c.useCallback(async(q,de)=>L?await g(L,q,de):void 0,[L,g]),te=c.useCallback(async(q,de)=>L?await v(L,q,de):void 0,[L,v]),xe=c.useCallback(async q=>L?await b(L,q):void 0,[L,b]),re=c.useCallback(async q=>L?await x(L,q):void 0,[L,x]),U=c.useCallback(async q=>L?await w(L,q):void 0,[L,w]),Qe=c.useCallback(async()=>{L&&await i(L)},[L,i]),Te=c.useCallback(async()=>L?await d(L):[],[L,d]),Ve=c.useCallback(async()=>L?await S(L):[],[L,S]),Ue=c.useCallback(async q=>{if(L)return await C(L,q)},[L,C]),ve=c.useCallback(async(q,de)=>{if(L)return await _(L,q,de)},[L,_]),J=c.useCallback(async q=>{L&&await k(L,q)},[L,k]),le=c.useCallback(async q=>L?await y(L,q):null,[L,y]),oe=c.useCallback(async q=>L?await M(L,q):null,[L,M]),G=c.useCallback(async q=>{if(L)return await z(L,q)},[L,z]),pe=c.useCallback(async q=>{if(L)return await O(L,q)},[L,O]),fe=c.useCallback(async q=>{L&&await I(L,q)},[L,I]);return $||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:L,activeMembership:F,loading:!1,refetch:a,getRoles:R,updateOrganization:H,getMembers:Z,getDomains:B,addDomain:Y,verifyDomain:X,removeDomain:ce,getInvitations:Te,removeMember:W,leave:Qe,removeRole:D,addMemberRole:me,removeMemberRole:te,inviteMember:xe,discardInvitation:re,resendInvitation:U,getEnterpriseConnections:Ve,createEnterpriseConnection:Ue,updateEnterpriseConnection:ve,deleteEnterpriseConnection:J,testEnterpriseConnectionConfig:le,testEnterpriseConnection:oe,generateSCIMToken:G,getSCIMToken:pe,revokeSCIMToken:fe,error:null}};async function _2(e){return(await V(await e("/me/organization-memberships"))).data}const Kt=()=>{const{client:e,loading:r}=je(),{data:a,isLoading:n,error:s,mutate:i}=$e(r?null:"/me/organization-memberships",()=>_2(e),{refreshInterval:3e4,revalidateOnFocus:!1,revalidateOnReconnect:!1,revalidateIfStale:!1,dedupingInterval:5e3}),h=c.useCallback(async()=>{await i()},[i]);return{organizationMemberships:a,loading:r||n,error:s,refetch:h}};async function k2(e){return(await V(await e("/me/workspace-memberships"))).data}async function C2(e,r){return(await V(await e(`/workspaces/${r}/leave`,{method:"POST"}))).data}const En=()=>{const{client:e,loading:r}=je(),{deployment:a}=Ae(),{data:n,isLoading:s,error:i,mutate:h}=$e(!r&&(a!=null&&a.b2b_settings.workspaces_enabled)?"/me/workspace-memberships":null,()=>k2(e),{refreshInterval:3e4,revalidateOnFocus:!1,revalidateOnReconnect:!1,revalidateIfStale:!1,dedupingInterval:5e3}),d=c.useCallback(async()=>{await h(void 0,{revalidate:!0})},[h]);return{workspaceMemberships:n,loading:r||s,error:i,refetch:d}},ir=()=>{const{workspaceMemberships:e,refetch:r,loading:a,error:n}=En(),{client:s}=je(),{refetch:i}=st(),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,M,z)=>{const O=new FormData;O.append("name",y),M&&O.append("image",M),z&&O.append("description",z),O.append("organization_id",k);const I=await V(await s("/workspaces",{method:"POST",body:O}));return Mt(),await r(),I.data},[s,r]),u=c.useCallback(async k=>{const y=await C2(s,k);return Mt(),await r(),await i(),y},[s,r,i]),f=c.useCallback(async(k,y)=>{const M=new FormData;y.name&&M.append("name",y.name),y.description&&M.append("description",y.description),y.image&&M.append("image",y.image),y.enforce_2fa!==void 0&&M.append("enforce_2fa",String(y.enforce_2fa)),y.enable_ip_restriction!==void 0&&M.append("enable_ip_restriction",String(y.enable_ip_restriction)),y.whitelisted_ips&&y.whitelisted_ips.forEach(O=>M.append("whitelisted_ips",O));const z=await V(await s(`/workspaces/${k.id}/update`,{method:"POST",body:M}));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 M=new URLSearchParams;return y&&(M.set("page",y.page.toString()),M.set("limit",y.limit.toString()),y.search&&M.set("search",y.search)),(await V(await s(`/workspaces/${k.id}/members?${M.toString()}`,{method:"GET"}))).data},[s]),g=c.useCallback(async k=>(await V(await s(`/workspaces/${k.id}/roles`,{method:"GET"}))).data,[s]),v=c.useCallback(async(k,y,M)=>{const z=new FormData;return z.append("name",y),M.forEach(I=>z.append("permissions",I)),(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]),x=c.useCallback(async(k,y)=>{const M=await V(await s(`/workspaces/${k.id}/members/${y}/remove`,{method:"POST"}));return await r(),M.data},[s,r]),w=c.useCallback(async(k,y,M)=>(await V(await s(`/workspaces/${k.id}/members/${y}/roles/${M}/add`,{method:"POST"}))).data,[s]),A=c.useCallback(async(k,y,M)=>(await V(await s(`/workspaces/${k.id}/members/${y}/roles/${M}/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,M)=>{const z=new FormData;return z.append("email",y),z.append("workspace_id",k.id),M&&z.append("workspace_role_id",M),(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:n,refetch:r,leaveWorkspace:u,createWorkspace:d,updateWorkspace:f,deleteWorkspace:p,getWorkspaceMembers:m,getWorkspaceRoles:g,createWorkspaceRole:v,deleteWorkspaceRole:b,removeWorkspaceMember:x,addWorkspaceMemberRole:w,removeWorkspaceMemberRole:A,getWorkspaceInvitations:j,createWorkspaceInvitation:S,discardWorkspaceInvitation:C,resendWorkspaceInvitation:_}},Zt=()=>{const{refetch:e,loading:r,error:a,workspaces:n,leaveWorkspace:s,updateWorkspace:i,deleteWorkspace:h,getWorkspaceMembers:d,getWorkspaceRoles:u,createWorkspaceRole:f,deleteWorkspaceRole:p,removeWorkspaceMember:m,addWorkspaceMemberRole:g,removeWorkspaceMemberRole:v,getWorkspaceInvitations:b,createWorkspaceInvitation:x,discardWorkspaceInvitation:w,resendWorkspaceInvitation:A}=ir(),{workspaceMemberships:j}=En(),{session:S,loading:C,error:_}=st(),k=c.useMemo(()=>(j==null?void 0:j.find(X=>{var ce;return X.id===((ce=S==null?void 0:S.active_signin)==null?void 0:ce.active_workspace_membership_id)}))||null,[j,S]),y=c.useMemo(()=>(k==null?void 0:k.workspace)||null,[k]),M=c.useCallback(async()=>{if(y)return await s(y.id)},[y,s]),z=c.useCallback(async X=>{if(y)return await i(y,X)},[y,i]),O=c.useCallback(async()=>{if(y)return await h(y)},[y,h]),I=c.useCallback(async X=>y?await d(y,X):{data:[],meta:{total:0,page:1,limit:10}},[y,d]),P=c.useCallback(async()=>y?await u(y):[],[y,u]),T=c.useCallback(async(X,ce)=>{if(y)return await f(y,X,ce)},[y,f]),$=c.useCallback(async X=>{if(y)return await p(y,X)},[y,p]),E=c.useCallback(async X=>{if(y)return await m(y,X)},[y,m]),F=c.useCallback(async(X,ce)=>{if(y)return await g(y,X,ce)},[y,g]),L=c.useCallback(async(X,ce)=>{if(y)return await v(y,X,ce)},[y,v]),H=c.useMemo(()=>(n==null?void 0:n.find(X=>X.id===(y==null?void 0:y.id)))||null,[n,y]),Z=c.useCallback(async()=>H?await b(H):[],[H,b]),R=c.useCallback(async X=>{if(H)return await x(H,X.email,X.workspaceRoleId)},[H,x]),W=c.useCallback(async X=>{if(H)return await w(H,X)},[H,w]),D=c.useCallback(async X=>{if(H)return await A(H,X)},[H,A]),B=r||C,Y=a||_;return B?{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:M,updateWorkspace:z,deleteWorkspace:O,getMembers:I,getRoles:P,createRole:T,deleteRole:$,inviteMember:R,removeMember:E,addMemberRole:F,removeMemberRole:L,getInvitations:Z,discardInvitation:W,resendInvitation:D}};function qn(e){const r=new Uint8Array(e);let a="";for(let n=0;n<r.length;n++)a+=String.fromCharCode(r[n]);return btoa(a).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function Kn(e){const r=e.replace(/-/g,"+").replace(/_/g,"/"),a=r.padEnd(r.length+(4-r.length%4)%4,"="),n=atob(a),s=new Uint8Array(n.length);for(let i=0;i<n.length;i++)s[i]=n.charCodeAt(i);return s.buffer}const S2=async e=>(await V(await e("/me"))).data,E2=async e=>(await V(await e("/me/signins"))).data;function cr(){const{client:e,loading:r}=je(),{data:a,error:n,isLoading:s,mutate:i}=$e(r?null:"/user",()=>S2(e)),h=async H=>{const Z=new FormData;for(const[W,D]of Object.entries(H))D!=null&&D!==""&&Z.append(W,String(D));const R=await V(await e("/me",{method:"POST",body:Z}));return i(),R},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"})),v=async(H,Z)=>{const R=new FormData;return R.append("phone_number",H),R.append("country_code",Z),await V(await e("/me/phone-numbers",{method:"POST",body:R}))},b=async H=>await V(await e(`/me/phone-numbers/${H}/delete`,{method:"POST"})),x=async H=>await V(await e(`/me/phone-numbers/${H}/prepare-verification`,{method:"POST"})),w=async(H,Z)=>{const R=new FormData;return R.append("code",Z),await V(await e(`/me/phone-numbers/${H}/attempt-verification`,{method:"POST",body:R}))},A=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 R=new FormData;return R.append("authenticator_id",H),Z.forEach(D=>{R.append("codes",D)}),await V(await e("/me/authenticator/attempt-verification",{method:"POST",body:R}))},_=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}))},M=async()=>(await V(await e("/me/backup-codes/regenerate",{method:"POST"}))).data,z=async(H,Z)=>{const R=new FormData;return R.append("current_password",H),R.append("new_password",Z),await V(await e("/me/update-password",{method:"POST",body:R}))},O=async H=>{const Z=new FormData;Z.append("current_password",H);const R=await V(await e("/me/remove-password",{method:"POST",body:Z}));return i(),R},I=async H=>{const Z=new FormData;return Z.append("password",H),await V(await e("/me/account/delete",{method:"POST",body:Z}))},P=async H=>await V(await e(`/me/social-connections/${H}/disconnect`,{method:"POST"})),T=async({provider:H,redirectUri:Z})=>{var D;const R=new URLSearchParams({provider:H});Z&&R.append("redirect_uri",Z);const W=await V(await e(`/me/init-sso-connection?${R.toString()}`,{method:"POST"}));return"data"in W&&((D=W.data)!=null&&D.oauth_url)&&window.open(W.data.oauth_url,"_blank"),W},$=async()=>await V(await e("/me/passkeys",{method:"GET"})),E=async H=>{var ce,me;const Z=await V(await e("/me/passkeys/register/begin",{method:"POST"}));if(!("data"in Z))return Z;const R=Z.data.options.publicKey,W={challenge:Kn(R.challenge),rp:R.rp,user:{id:Kn(R.user.id),name:R.user.name,displayName:R.user.displayName},pubKeyCredParams:R.pubKeyCredParams,timeout:R.timeout,attestation:R.attestation,authenticatorSelection:R.authenticatorSelection,excludeCredentials:(ce=R.excludeCredentials)==null?void 0:ce.map(te=>({type:te.type,id:Kn(te.id),transports:te.transports}))},D=await navigator.credentials.create({publicKey:W});if(!D)throw new Error("Failed to create credential");const B=D.response,Y={id:D.id,rawId:qn(D.rawId),type:D.type,response:{clientDataJSON:qn(B.clientDataJSON),attestationObject:qn(B.attestationObject),transports:((me=B.getTransports)==null?void 0:me.call(B))||[]}};return await V(await e(`/me/passkeys/register/finish?name=${encodeURIComponent(H||"")}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(Y)}))},F=async H=>await V(await e(`/me/passkeys/${H}/delete`,{method:"POST"})),L=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:n||null,updateProfile:h,getEmailAddresses:d,getEmailAddress:u,createEmailAddress:f,deleteEmailAddress:p,prepareEmailVerification:m,attemptEmailVerification:g,makeEmailPrimary:j,createPhoneNumber:v,deletePhoneNumber:b,preparePhoneVerification:x,attemptPhoneVerification:w,makePhonePrimary:A,setupAuthenticator:S,verifyAuthenticator:C,deleteAuthenticator:_,generateBackupCodes:k,regenerateBackupCodes:M,updateProfilePicture:y,disconnectSocialConnection:P,connectSocialAccount:T,updatePassword:z,removePassword:O,deleteAccount:I,getPasskeys:$,registerPasskey:E,deletePasskey:F,renamePasskey:L}}function f0(){const{client:e,loading:r}=je(),{data:a,error:n,isLoading:s,mutate:i}=$e(r?null:"/me/signins",()=>E2(e));return{signins:a,error:n||null,removeSignin:async d=>await V(await e(`/me/signins/${d}/signout`,{method:"POST"})),refetch:i,loading:s||r}}function m0(){const{session:e,loading:r}=st(),{loading:a,organizationMemberships:n}=Kt(),{loading:s,workspaceMemberships:i}=En(),h=c.useMemo(()=>!e||!e.signins||e.signins.length===0?null:(n==null?void 0:n.find(u=>{var f;return u.id===((f=e.active_signin)==null?void 0:f.active_organization_membership_id)}))||null,[n,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 g0(){const{client:e,loading:r}=je(),[a,n]=c.useState(!1),s=async i=>{n(!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{n(!1)}};return r?{loading:!0,joinWaitlist:null}:{loading:a,joinWaitlist:s}}function v0(){const{client:e,loading:r}=je(),[a,n]=c.useState(!1),[s,i]=c.useState(null),[h,d]=c.useState(null),[u,f]=c.useState(null),[p,m]=c.useState(!1),[g,v]=c.useState(null);c.useEffect(()=>{if(p||r)return;const x=new URLSearchParams(window.location.search),w=x.get("code"),A=x.get("state"),j=x.get("error"),S=x.get("error_description");if(!w&&!j){m(!0);const C=new Error("No OAuth callback data found.");i(C);return}if(m(!0),n(!0),j){const C=S||j,_=new Error(`OAuth Error: ${C}`);i(_),n(!1);return}if(w&&A)b(w,A);else{const C=new Error("Missing required OAuth parameters");i(C),n(!1)}},[p,r]);const b=async(x,w)=>{try{let A,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")A="/auth/oauth2/callback",j="GET";else if(z==="connect_social")A="/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.`)),n(!1);return}const S=await e(`${A}?code=${encodeURIComponent(x)}&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&&v(y)}}else{const _=new Error("SSO callback failed");i(_)}}catch(A){const j=A instanceof Error?A:new Error("Unknown error occurred");i(j)}finally{n(!1)}};return{loading:a,error:s,session:h,redirectUri:u,processed:p,signinAttempt:g}}function x0(){const{client:e,loading:r}=je(),[a,n]=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");n(!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 n(!1),i(!0),p}catch(u){throw n(!1),i(!1),u}},success:s}}function A2(){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 b0(){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 z2=()=>{},$2=z2(),Ko=Object,si=e=>e===$2,M2=e=>typeof e=="function",Za=new WeakMap,L2=e=>Ko.prototype.toString.call(e),Yn=(e,r)=>e===`[object ${r}]`;let R2=0;const Yo=e=>{const r=typeof e,a=L2(e),n=Yn(a,"Date"),s=Yn(a,"RegExp"),i=Yn(a,"Object");let h,d;if(Ko(e)===e&&!n&&!s){if(h=Za.get(e),h)return h;if(h=++R2+"~",Za.set(e,h),Array.isArray(e)){for(h="@",d=0;d<e.length;d++)h+=Yo(e[d])+",";Za.set(e,h)}if(i){h="#";const u=Ko.keys(e).sort();for(;!si(d=u.pop());)si(e[d])||(h+=d+":"+Yo(e[d])+",");Za.set(e,h)}}else h=n?e.toJSON():r=="symbol"?e.toString():r=="string"?JSON.stringify(e):""+e;return h},P2=e=>{if(M2(e))try{e=e()}catch{e=""}const r=e;return e=typeof e=="string"?e:(Array.isArray(e)?e.length:e)?Yo(e):"",[e,r]},T2=e=>P2(e?e(0,null):null)[0],Qn=Promise.resolve(),F2=e=>(r,a,n)=>{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}=n,[,,,g]=Tt.get(xs);let v;try{v=T2(r),v&&(v=d0+v)}catch{}const[b,x,w]=er(i,v),A=c.useCallback(()=>Ee(b()._l)?h:b()._l,[i,v,h]);Oo.useSyncExternalStore(c.useCallback(M=>v?w(v,()=>{M()}):()=>{},[i,v]),A,A);const j=c.useCallback(()=>{const M=b()._l;return Ee(M)?h:M},[v,h]),S=c.useRef(j());un(()=>{if(!s.current){s.current=!0;return}v&&x({_l:u?S.current:j()})},[v,i]);const C=p&&!s.current,_=e(v,async M=>{const z=b()._i,O=b()._r;x({_r:pt});const I=[],P=j(),[T]=er(i,M),$=T().data,E=[];let F=null;for(let L=0;L<P;++L){const[H,Z]=ka(r(L,m?null:F));if(!H)break;const[R,W]=er(i,H);let D=R().data;const B=d||z||Ee(D)||f&&!L&&!Ee($)||C||$&&!Ee($[L])&&!n.compare($[L],D);if(a&&(typeof O=="function"?O(D,Z):B)){const Y=async()=>{if(!(H in g))D=await a(Z);else{const ce=g[H];delete g[H],D=await ce}W({data:D,_k:Z}),I[L]=D};m?E.push(Y):await Y()}else I[L]=D;m||(F=D)}return m&&await Promise.all(E.map(L=>L())),x({_i:pt}),I},n),k=c.useCallback(function(M,z){const O=typeof z=="boolean"?{revalidate:z}:z||{},I=O.revalidate!==!1;return v?(I&&(Ee(M)?x({_i:!0,_r:O.revalidate}):x({_i:!1,_r:O.revalidate})),arguments.length?_.mutate(M,{...O,revalidate:I}):_.mutate()):Qn},[v,i]),y=c.useCallback(M=>{if(!v)return Qn;const[,z]=er(i,v);let O;if($t(M)?O=M(j()):typeof M=="number"&&(O=M),typeof O!="number")return Qn;z({_l:O}),S.current=O;const I=[],[P]=er(i,v);let T=null;for(let $=0;$<O;++$){const[E]=ka(r($,T)),[F]=er(i,E),L=E?F().data:pt;if(Ee(L))return k(P().data);I.push(L),T=L}return k(I)},[v,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}}},nr=h2($e,F2);function w0({enabled:e=!0,channels:r,organizationIds:a,workspaceIds:n,onNotification:s,onError:i,reconnectDelay:h=1e3,maxReconnectAttempts:d=5}={}){const{session:u,loading:f}=st(),{deployment:p,loading:m}=Ae(),[g,v]=c.useState(!1),[b,x]=c.useState(null),w=c.useRef(null),A=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),M=c.useRef(n),z=c.useRef(h),O=c.useRef(d);C.current=s,_.current=i,k.current=r,y.current=a,M.current=n,z.current=h,O.current=d;const I=c.useCallback(()=>{A.current&&(clearTimeout(A.current),A.current=null),S.current&&(clearInterval(S.current),S.current=null),w.current&&(w.current.close(),w.current=null)},[]),P=c.useCallback(async()=>{var H;if(!e||f||m||!u||!p)return;I();const E=new URL(p.backend_host),F=E.protocol==="https:"?"wss:":"ws:",L=new URL("/notifications/stream",`${F}//${E.host}`);if(p.mode==="staging"){const Z=ht(p.backend_host);Z&&L.searchParams.set("__dev_session__",Z)}k.current&&k.current.length>0&&L.searchParams.set("channels",k.current.join(",")),y.current&&y.current.length>0&&L.searchParams.set("organization_ids",y.current.join(",")),M.current&&M.current.length>0&&L.searchParams.set("workspace_ids",M.current.join(","));try{const Z=new WebSocket(L.toString());w.current=Z,Z.onopen=()=>{v(!0),x(null),j.current=0,S.current=setInterval(()=>{Z.readyState===WebSocket.OPEN&&Z.send("ping")},3e4)},Z.onmessage=R=>{var W,D;try{const B=JSON.parse(R.data);if(B.type==="notification"&&B.data)(W=C.current)==null||W.call(C,B.data);else if(B.type==="error"){const Y=B.error||"Unknown error occurred";x(Y),(D=_.current)==null||D.call(_,Y)}else B.type}catch{}},Z.onerror=()=>{var R;x("Connection error occurred"),(R=_.current)==null||R.call(_,"Connection error occurred")},Z.onclose=R=>{var W;if(v(!1),S.current&&(clearInterval(S.current),S.current=null),e&&R.code!==1e3&&j.current<O.current){j.current++;const D=z.current*Math.pow(2,j.current-1);A.current=setTimeout(()=>{P()},D)}else j.current>=O.current&&(x("Max reconnection attempts reached"),(W=_.current)==null||W.call(_,"Max reconnection attempts reached"))}}catch{x("Failed to connect"),(H=_.current)==null||H.call(_,"Failed to connect")}},[e,f,m,u,p,I]);c.useEffect(()=>(P(),()=>{I()}),[P,I]),c.useEffect(()=>{w.current&&w.current.readyState===WebSocket.OPEN&&P()},[r,a,n,P]);const T=c.useCallback(()=>{I(),v(!1)},[I]),$=c.useCallback(()=>{j.current=0,P()},[P]);return{isConnected:g,connectionError:b,disconnect:T,reconnect:$}}function An(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(n=>r.append("channels",n)),e.organization_ids&&e.organization_ids.length>0&&e.organization_ids.forEach(n=>r.append("organization_ids",n)),e.workspace_ids&&e.workspace_ids.length>0&&e.workspace_ids.forEach(n=>r.append("workspace_ids",n)),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 I2(e,r){const a=`/notifications${An(r)}`,n=await e(a,{method:"GET"});return(await V(n)).data}async function Z2(e,r){const a=await e(`/notifications/${r}/read`,{method:"POST"});return V(a)}async function O2(e,r){const a=await e(`/notifications/${r}/unread`,{method:"POST"});return V(a)}async function H2(e,r){const a=await e(`/notifications/mark-all-read${An(r)}`,{method:"POST"});return V(a)}async function V2(e,r){const a=await e(`/notifications/archive-all-read${An(r)}`,{method:"POST"});return V(a)}async function D2(e,r){const a=await e(`/notifications/${r}/archive`,{method:"POST"});return V(a)}async function N2(e,r){const a=await e(`/notifications/${r}/star`,{method:"POST"});return V(a)}function y0(e){var M;const{client:r,loading:a}=je(),{data:n,error:s,mutate:i,isLoading:h,size:d,setSize:u,isValidating:f}=nr((z,O)=>{var $;if(a||z>0&&(!O||!O.has_more))return null;const I=z===0||($=O==null?void 0:O.notifications[O.notifications.length-1])==null?void 0:$.id,{onNotification:P,...T}=e||{};return["wacht-notifications",{...T,cursor:I}]},([,z])=>I2(r,z),{refreshInterval:6e4,revalidateOnFocus:!0,revalidateFirstPage:!0}),p=c.useMemo(()=>n?n.flatMap(z=>z.notifications):[],[n]),m=n?(M=n[n.length-1])==null?void 0:M.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]),v=c.useMemo(()=>{var z;return(z=e==null?void 0:e.organization_ids)==null?void 0:z.map(O=>Number(O)).filter(O=>Number.isFinite(O))},[e==null?void 0:e.organization_ids]),b=c.useMemo(()=>{var z;return(z=e==null?void 0:e.workspace_ids)==null?void 0:z.map(O=>Number(O)).filter(O=>Number.isFinite(O))},[e==null?void 0:e.workspace_ids]);w0({enabled:!a&&!!n,channels:g,organizationIds:v,workspaceIds:b,onNotification:c.useCallback(z=>{i(async O=>{var $;if(!O||O.length===0||O.some(E=>E.notifications.some(F=>F.id===z.id.toString())))return O;($=e==null?void 0:e.onNotification)==null||$.call(e,z);const P=O[0];return[{...P,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},...P.notifications]},...O.slice(1)]},!1)},[i,e]),onError:c.useCallback(()=>{},[])});const x=c.useCallback(async z=>{a||(await i(async O=>O&&O.map(I=>({...I,notifications:I.notifications.map(P=>P.id===z?{...P,is_read:!0}:P)})),!1),await Z2(r,z),await i())},[r,a,i]),w=c.useCallback(async z=>{a||(await i(async O=>O&&O.map(I=>({...I,notifications:I.notifications.map(P=>P.id===z?{...P,is_read:!1}:P)})),!1),await O2(r,z),await i())},[r,a,i]),A=c.useCallback(async()=>{a||(await i(async z=>z&&z.map(O=>({...O,notifications:O.notifications.map(I=>({...I,is_read:!0}))})),!1),await H2(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(I=>!I.is_read)})),!1),await V2(r,e),await i())},[r,e,a,i]),S=c.useCallback(async z=>{a||(await i(async O=>O&&O.map(I=>({...I,notifications:(e==null?void 0:e.is_archived)!==void 0?I.notifications.filter(P=>P.id!==z):I.notifications.map(P=>P.id===z?{...P,is_archived:!P.is_archived}:P)})),!1),await D2(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(I=>({...I,notifications:I.notifications.map(P=>P.id===z?{...P,is_starred:!P.is_starred}:P)})),!1),await N2(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&&n&&typeof n[d-1]>"u";return!n||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:x,markAllAsRead:A,archiveAllRead:j,archiveNotification:S,starNotification:C,markAsUnread:w,refetch:k,loadMore:_}}async function U2(e,r){const a=`/notifications/scope-unread${An(r)}`,n=await e(a,{method:"GET"});return(await V(n)).data}function j0(e){const{client:r,loading:a}=je(),{data:n,error:s,mutate:i}=$e(a?null:["wacht-notifications-unread",e],([,d])=>U2(r,d),{refreshInterval:3e4,revalidateOnFocus:!0}),h=async()=>{await i()};return!n||a?{loading:!0,count:0,error:s,refetch:h}:{loading:!1,count:n.count,error:s,refetch:h}}const Zr={DISCONNECTED:"disconnected",CONNECTED:"connected",ERROR:"error"},Ke={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 B2(e){switch(e.trim()){case mr.IDLE:return Ke.IDLE;case mr.STARTING:case"starting":return Ke.STARTING;case mr.RUNNING:case"running":return Ke.RUNNING;case mr.WAITING_FOR_INPUT:case"waiting_for_input":return Ke.WAITING_FOR_INPUT;case mr.COMPLETED:case"completed":return Ke.COMPLETED;case mr.FAILED:case mr.CANCELLED:case"failed":case"cancelled":return Ke.FAILED;default:return Ke.IDLE}}function Or(e){return e===Ke.STARTING||e===Ke.RUNNING||e===Ke.WAITING_FOR_INPUT}function Gt(e){return e&&typeof e=="object"?e:null}function Sr(e){return typeof e=="string"?e:null}function W2(e){const r=Gt(e);return(r==null?void 0:r.ConversationMessage)??e}function G2(e){const r=Gt(e);if(!r)return null;const a=Gt(r.content),n=Gt(r.metadata),s=Sr(r.message_type)||Sr(n==null?void 0:n.message_type)||Sr(a==null?void 0:a.type);return{...r,metadata:{...n||{},message_type:s}}}function q2(e){const r=Gt(e.metadata),a=Gt(e.content);return Sr(r==null?void 0:r.message_type)||Sr(a==null?void 0:a.type)}function K2(e){const r=Gt(e.content);return Sr(r==null?void 0:r.status)}function Y2(e){const r=Gt(e.content),a=Sr(r==null?void 0:r.step);return a==="execution_cancelled"||a==="abort"}function Q2(e){const r=Gt(e.content);return(r==null?void 0:r.further_actions_required)===!1}function ii(e){return[...e].sort((r,a)=>new Date(r.timestamp).getTime()-new Date(a.timestamp).getTime())}function J2(e,r){return{id:e,timestamp:new Date().toISOString(),content:{type:"user_message",message:r},metadata:{message_type:"user_message"}}}function X2(e,r){const a=new FormData;a.append("message",e);for(const n of r??[])a.append("files",n);return a}function ep(e,r){const a=new FormData;a.append("request_message_id",e);for(const n of r)a.append("approval_tool_name",n.tool_name),a.append("approval_mode",n.mode);return a}function tp(){const e=new FormData;return e.append("cancel","true"),e}function rp({deployment:e,threadId:r,file:a}){const n=a.url||a.filename;if(!n)return null;if(/^https?:\/\//i.test(n))return n;const s=e.backend_host.replace(/\/$/,"");let i;if(n.startsWith("/ai/threads/"))i=new URL(n,`${s}/`);else{const h=n.includes("/")?n.split("/").pop()??"":n;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=ht(e.backend_host);h&&i.searchParams.set("__dev_session__",h)}return i.toString()}const ap=5e3,np=5e3;function op({threadId:e,initialThread:r=null,platformAdapter:a}){var We;const{deployment:n}=Ae(),{client:s}=je(),[i,h]=c.useState([]),[d,u]=c.useState(null),[f,p]=c.useState(null),[m,g]=c.useState(r),[v,b]=c.useState(Ke.IDLE),[x,w]=c.useState({status:Zr.DISCONNECTED}),[A,j]=c.useState(!0),[S,C]=c.useState(!1),[_,k]=c.useState(!1),[y,M]=c.useState(null),z=c.useRef(null),O=c.useRef(e),I=c.useRef(0),P=c.useRef(Ke.IDLE),T=c.useRef(null),$=c.useCallback(Q=>{h(se=>{const he=[...se],_e=he.findIndex(ke=>String(ke.id)===String(Q.id));return _e>=0?he[_e]=Q:he.push(Q),ii(he)})},[]),E=c.useCallback(({messages:Q,prepend:se,hasMore:he})=>{const _e=ii(Q);_e.length>0&&(z.current=_e[0].id),h(ke=>se?[..._e,...ke]:_e),he!==void 0&&j(he)},[]),F=c.useCallback(Q=>{P.current=Q,b(Q)},[]),L=c.useCallback(Q=>{I.current=Date.now()+ap,F(Q)},[F]),H=c.useCallback(()=>{var Q;I.current>Date.now()&&Or(P.current)||(F(Ke.IDLE),(Q=T.current)==null||Q.call(T))},[F]),Z=c.useCallback(Q=>{const se=B2(Q),he=Or(se);!he&&I.current>Date.now()&&Or(P.current)||(he&&(I.current=0),F(se))},[F]),R=c.useCallback(()=>{u(null),p(null)},[]),W=c.useCallback(Q=>{g(se=>se&&{...se,...Q?{status:Q}:{},last_activity_at:new Date().toISOString()})},[]),D=c.useCallback((Q,se)=>{$(J2(Q,se)),R()},[R,$]),B=c.useCallback(Q=>{const se=G2(Q);if(!se)return;switch(q2(se)){case"system_decision":$(se),Y2(se)&&H();return;case"execution_summary":case"tool_result":case"user_message":$(se);return;case"steer":$(se),Q2(se)&&H();return;case"approval_request":I.current=0,F(Ke.WAITING_FOR_INPUT),$(se);return;case"approval_response":$(se),L(Ke.RUNNING);return;case"execution_status":{const _e=K2(se);if(!_e)return;Z(_e),g(ke=>ke&&{...ke,status:_e});return}default:$(se)}},[Z,H,F,L,$]),Y=c.useCallback((Q,se)=>{var he;(he=a==null?void 0:a.onPlatformEvent)==null||he.call(a,Q,se)},[a]),X=c.useRef(B),ce=c.useRef(Y),me=c.useRef(s),te=c.useRef(n);c.useEffect(()=>{X.current=B,ce.current=Y,me.current=s,te.current=n}),c.useEffect(()=>{O.current=e},[e]);const xe=c.useRef(null),re=c.useRef(null),U=c.useRef(0),Qe=10,Te=c.useCallback(async Q=>{if(!e)return;const se=e;Q?C(!0):k(!0),M(null);try{const he=new URLSearchParams({limit:"100"});Q&&he.append("before_id",Q);const _e=await s(`/ai/threads/${e}/messages?${he}`,{method:"GET"}),ke=await V(_e);ke.data&&O.current===se&&E({messages:ke.data.data,prepend:!!Q,hasMore:ke.data.has_more||!1})}catch(he){O.current===se&&M(he instanceof Error?he:new Error("Failed to fetch messages"))}finally{O.current===se&&(Q?C(!1):k(!1))}},[e,s,E]);c.useEffect(()=>{const Q=te.current;if(!Q||!e)return;const se=()=>{xe.current&&(xe.current.close(),xe.current=null);const he=new URL(`${Q.backend_host}/ai/threads/${encodeURIComponent(e)}/stream`);if(Q.mode==="staging"){const ke=ht(Q.backend_host);ke&&he.searchParams.append("__dev_session__",ke)}const _e=new EventSource(he.toString(),{withCredentials:Q.mode!=="staging"});xe.current=_e,_e.onopen=()=>{if(w({status:Zr.CONNECTED}),U.current>0){const ke=e;setTimeout(()=>{s(`/ai/threads/${ke}/messages?limit=100`,{method:"GET"}).then(async Ge=>{const dt=await V(Ge);dt.data&&O.current===ke&&E({messages:dt.data.data,hasMore:dt.data.has_more||!1})}).catch(()=>{})},100)}U.current=0},_e.onerror=()=>{if(w({status:Zr.ERROR}),_e.close(),xe.current=null,U.current<Qe){const ke=Math.min(1e3*Math.pow(2,U.current),3e4);re.current=setTimeout(()=>{U.current++,se()},ke)}else w({status:Zr.DISCONNECTED})},_e.addEventListener("conversation_message",ke=>{try{const Ge=W2(JSON.parse(ke.data));Ge&&X.current(Ge)}catch{}}),_e.addEventListener("platform_event",ke=>{try{const Ge=JSON.parse(ke.data);Ge!=null&&Ge.PlatformEvent?ce.current(Ge.PlatformEvent[0],Ge.PlatformEvent[1]):Ge!=null&&Ge.event_label&&ce.current(Ge.event_label,Ge.event_data)}catch{}})};return se(),()=>{re.current&&(clearTimeout(re.current),re.current=null),xe.current&&(xe.current.close(),xe.current=null)}},[e,s,E]);const Ve=c.useCallback(async()=>{if(!e)return;const Q=e;try{const se=await s(`/ai/threads/${Q}`,{method:"GET"});if(!se.ok)return;const he=await V(se);he.data&&O.current===Q&&(g(he.data),Z(he.data.status),qr(`wacht-ai-thread:${Q}`,he.data,{revalidate:!1}))}catch{}},[e,s,Z]);c.useEffect(()=>{T.current=Ve},[Ve]),c.useEffect(()=>{if(!e)return;Ve();const Q=window.setInterval(()=>{!Or(P.current)&&I.current<=Date.now()||Ve()},np);return()=>{window.clearInterval(Q)}},[e,Ve]),c.useEffect(()=>{h([]),g(null),j(!0),C(!1),M(null),k(!!e),w({status:Zr.DISCONNECTED}),z.current=null,I.current=0,P.current=Ke.IDLE,b(Ke.IDLE),R()},[e,R]),c.useEffect(()=>{!r||r.id!==e||g(r)},[r,e]);const Ue=c.useCallback(async(Q,se)=>{var he,_e;if(!(!e||!n)){u(Q),se&&se.length>0&&p(se),L(Ke.STARTING);try{const ke=await s(`/ai/threads/${e}/run`,{method:"POST",body:X2(Q,se)});if(ke.ok){const Ge=await V(ke),dt=((he=Ge.data)==null?void 0:he.conversation_id)??null;W(typeof((_e=Ge.data)==null?void 0:_e.status)=="string"?Ge.data.status:void 0),dt?D(dt,Q):R(),L(Ke.RUNNING)}else I.current=0,F(Ke.IDLE),R()}catch{I.current=0,F(Ke.IDLE),R()}}},[e,n,s,L,F,W,R,D]);c.useEffect(()=>{e&&Te()},[e,Te]);const ve=c.useCallback(async()=>{await Te()},[Te]),J=c.useCallback(async()=>{if(!(S||!A||!z.current)){C(!0);try{await Te(z.current)}finally{C(!1)}}},[S,A,Te]),le=c.useCallback(()=>{h([]),R()},[R]),oe=c.useCallback(async(Q,se)=>{if(!e)return!1;L(Ke.STARTING);try{return(await s(`/ai/threads/${e}/run`,{method:"POST",body:ep(Q,se)})).ok?(W(),L(Ke.RUNNING),!0):(I.current=0,F(Ke.IDLE),!1)}catch{return I.current=0,F(Ke.IDLE),!1}},[e,s,L,F,W]),G=c.useCallback(async()=>{if(!(!e||!Or(v)))try{await s(`/ai/threads/${e}/run`,{method:"POST",body:tp()}),I.current=0,W(),F(Ke.IDLE)}catch{}},[e,v,s,F,W]),pe=c.useCallback(Q=>!n||!e||!Q?null:rp({deployment:n,threadId:e,file:Q}),[e,n]),fe=c.useCallback(Q=>{const se=pe(Q);if(!se)return;const he=document.createElement("a");he.href=se,he.download=(Q==null?void 0:Q.filename)||"attachment",he.rel="noreferrer",document.body.appendChild(he),he.click(),document.body.removeChild(he)},[pe]),q=((We=m==null?void 0:m.execution_state)==null?void 0:We.pending_approval_request)??null,de=(q==null?void 0:q.request_message_id)??null,Be=m==null?void 0:m.status;return{thread:m,threadState:m,threadStatus:Be,messages:i,pendingMessage:d,pendingFiles:f,connectionState:x,isConnected:x.status===Zr.CONNECTED,hasActiveRun:Or(v),isRunning:v===Ke.STARTING||v===Ke.RUNNING,executionStatus:v,isWaitingForInput:v===Ke.WAITING_FOR_INPUT,pendingApprovalRequest:q,activeApprovalRequestId:de,hasMoreMessages:A,isLoadingMore:S,messagesLoading:_,messagesError:y,refreshThread:Ve,refreshMessages:ve,sendMessage:Ue,submitApprovalResponse:oe,clearMessages:le,loadMoreMessages:J,cancelExecution:G,resolveMessageFileUrl:pe,downloadMessageFile:fe}}function sp(e){const{client:r}=je(),[a,n]=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:v,error:b,isLoading:x,mutate:w}=$e(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,n(!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 A=!h&&(e?a:!0)&&(!b||b.message!=="NO_SESSION"),j=h||(b&&b.message!=="NO_SESSION"?b:null);return{hasSession:A,sessionLoading:s||m&&x,sessionError:j,sessionId:(v==null?void 0:v.session_id)||null,actor:(v==null?void 0:v.actor)||null,agents:(v==null?void 0:v.agents)||[],ticketExchanged:a,ticketLoading:s,refetch:async()=>{await w()}}}const ci={exists:!1,files:[]};function ip(e,r){return r===void 0?"":`?${new URLSearchParams({[e]:String(r)}).toString()}`}function _0(e,r){const a=new URLSearchParams({path:e});return r&&a.set("include_archived","true"),`?${a.toString()}`}function k0(e,r){const a=new URLSearchParams;e&&a.set("path",e),r&&a.set("include_archived","true");const n=a.toString();return n?`?${n}`:""}function cp(e){const r=e.split("/").pop()||e,a=r.lastIndexOf(".");return a<0||a===r.length-1?"":r.slice(a+1).toLowerCase()}function lp(e,r){const a=cp(r),n=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 n.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 dp(e,r,a){a&&e.set(r,JSON.stringify(a))}function li(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 up(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),dp(r,"metadata",e.metadata),Array.isArray(e.capability_tags))for(const a of e.capability_tags)r.append("capability_tags",a);return r}function C0(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 S0(e,r=[]){const a=new FormData;ot(a,"title",e.title),ot(a,"description",e.description),ot(a,"status",e.status),ot(a,"priority",e.priority),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 n of r)a.append("files",n);return a}function pp(e={}){const{client:r}=je(),{includeArchived:a=!1,enabled:n=!0}=e,s=n?`wacht-ai-actor-projects:${a}`:null,i=c.useCallback(async()=>{const v=await r(`/ai/projects${ip("include_archived",a)}`);return(await V(v)).data},[r,a]),{data:h,error:d,mutate:u}=$e(s,i,{revalidateOnFocus:!1}),f=c.useCallback(async v=>{const b=await r("/ai/projects",{method:"POST",body:li(v)}),x=await V(b);return await u(),x},[r,u]),p=c.useCallback(async(v,b)=>{const x=await r(`/ai/projects/${v}/update`,{method:"POST",body:li(b)}),w=await V(x);return await u(),w},[r,u]),m=c.useCallback(async v=>{const b=await r(`/ai/projects/${v}/archive`,{method:"POST",body:new URLSearchParams}),x=await V(b);return await u(),x},[r,u]),g=c.useCallback(async v=>{const b=await r(`/ai/projects/${v}/unarchive`,{method:"POST",body:new URLSearchParams}),x=await V(b);return await u(),x},[r,u]);return{projects:h||[],loading:!h&&!d,error:d,createProject:f,updateProject:p,archiveProject:m,unarchiveProject:g,refetch:async()=>{await u()}}}function hp(e={}){const{client:r}=je(),{enabled:a=!0,query:n="",limit:s=12}=e,i=n.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}=$e(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 fp(e,r={}){const{client:a}=je(),{includeArchived:n=!1,enabled:s=!0}=r,i=s&&e?`wacht-ai-threads:${e}:${n}`:null,h=c.useCallback(async()=>{if(!e)return{data:[],has_more:!1,next_cursor:""};const x=new URLSearchParams({limit:"100"});n&&x.set("include_archived","true");const w=await a(`/ai/projects/${e}/threads?${x.toString()}`);return(await V(w)).data},[e,a,n]),{data:d,error:u,mutate:f}=$e(i,h,{revalidateOnFocus:!1}),p=c.useCallback(async(x,w)=>{const A=await a(`/ai/projects/${x}/threads`,{method:"POST",body:up(w)}),j=await V(A);return x===e&&await f(),j},[e,a,f]),m=c.useCallback(async x=>{if(!e)throw new Error("projectId is required");return p(e,x)},[e,p]),g=c.useCallback(async(x,w)=>{const A=await a(`/ai/threads/${x}/update`,{method:"POST",body:C0(w)}),j=await V(A);return await f(),j},[a,f]),v=c.useCallback(async x=>{const w=await a(`/ai/threads/${x}/archive`,{method:"POST",body:new URLSearchParams}),A=await V(w);return await f(),A},[a,f]),b=c.useCallback(async x=>{const w=await a(`/ai/threads/${x}/unarchive`,{method:"POST",body:new URLSearchParams}),A=await V(w);return await f(),A},[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:v,unarchiveThread:b,refetch:async()=>{await f()}}}function mp(e,r={}){var v,b;const{client:a}=je(),{includeArchived:n=!1,archivedOnly:s=!1,enabled:i=!0,query:h="",limit:d=10}=r,u=h.trim(),f=nr((x,w)=>{if(!i||!e||x>0&&w&&!w.has_more)return null;const A=x===0||w==null?void 0:w.next_cursor;return["wacht-ai-project-thread-feed",e,s?"archived-only":n?"with-archived":"active-only",u,d,A||""]},async([,x,w,A,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")),A&&C.set("q",String(A)),S&&C.set("cursor",String(S));const _=await a(`/ai/projects/${x}/threads?${C.toString()}`);return(await V(_)).data},{revalidateOnFocus:!1,revalidateFirstPage:!0,persistSize:!0}),p=c.useMemo(()=>{var x;return((x=f.data)==null?void 0:x.flatMap(w=>w.data||[]))||[]},[f.data]),m=f.data&&((v=f.data[f.data.length-1])==null?void 0:v.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(x=>x+1)},refetch:async()=>{await f.mutate()}}}function gp(e={}){const{client:r}=je(),{enabled:a=!0,query:n="",limit:s=16}=e,i=n.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}=$e(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 vp(e,r=!0){const{client:a}=je(),n=r&&e?`wacht-ai-thread:${e}`:null,s=c.useCallback(async()=>{if(!e)return null;const f=await a(`/ai/threads/${e}`);return(await V(f)).data},[e,a]),i=$e(n,s,{revalidateOnFocus:!1}),h=c.useCallback(async f=>{if(!e)throw new Error("threadId is required");const p=await a(`/ai/threads/${e}/update`,{method:"POST",body:C0(f)}),m=await V(p);return await i.mutate(),m},[e,a,i]),d=c.useCallback(async()=>{if(!e)throw new Error("threadId is required");const f=await a(`/ai/threads/${e}/archive`,{method:"POST",body:new URLSearchParams}),p=await V(f);return await i.mutate(),p},[e,a,i]),u=c.useCallback(async()=>{if(!e)throw new Error("threadId is required");const f=await a(`/ai/threads/${e}/unarchive`,{method:"POST",body:new URLSearchParams}),p=await V(f);return await i.mutate(),p},[e,a,i]);return{thread:i.data||null,loading:!i.data&&!i.error,error:i.error||null,updateThread:h,archiveThread:d,unarchiveThread:u,refetch:async()=>{await i.mutate()}}}function xp(e,r=!0){const{client:a}=je(),n=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${_0(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=lp(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 ci;const u=await a(`/ai/threads/${e}/filesystem${k0(d)}`);return(await V(u)).data},[e,a]),h=$e(n,()=>i(),{revalidateOnFocus:!1});return{filesystem:h.data||ci,filesystemLoading:!h.data&&!h.error,filesystemError:h.error||null,getFile:s,listDirectory:i,refetch:async()=>{await h.mutate()}}}function bp(e,r={}){var f,p;const{client:a}=je(),{enabled:n=!0,limit:s=40}=r,i=nr((m,g)=>{if(!n||!e||m>0&&g&&!g.has_more)return null;const v=m===0||g==null?void 0:g.next_cursor;return["wacht-ai-thread-events",e,s,v||""]},async([,m,g,v])=>{const b=new URLSearchParams({limit:String(g)});v&&b.set("cursor",String(v));const x=await a(`/ai/threads/${m}/events?${b.toString()}`);return(await V(x)).data},{revalidateOnFocus:!1,revalidateFirstPage:!0,persistSize:!0,refreshInterval:5e3}),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{events: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 wp(e,r={}){var f,p;const{client:a}=je(),{enabled:n=!0,limit:s=40}=r,i=nr((m,g)=>{if(!n||!e||m>0&&g&&!g.has_more)return null;const v=m===0||g==null?void 0:g.next_cursor;return["wacht-ai-thread-assignments",e,s,v||""]},async([,m,g,v])=>{const b=new URLSearchParams({limit:String(g)});v&&b.set("cursor",String(v));const x=await a(`/ai/threads/${m}/assignments?${b.toString()}`);return(await V(x)).data},{revalidateOnFocus:!1,revalidateFirstPage:!0,persistSize:!0,refreshInterval:5e3}),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 yp(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 n=a.toString();return n?`?${n}`:""}function jp(e,r=!0,a={}){var b,x,w;const{client:n}=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=nr((A,j)=>{if(!r||!e||A>0&&j&&!j.has_more)return null;const S=A===0||j==null?void 0:j.next_cursor;return["wacht-ai-project-tasks",e,s,i,h,S||""]},async([,A,,,,j])=>{const S=await n(`/ai/projects/${A}/board/items${yp(a,j||void 0)}`);return(await V(S)).data},{revalidateOnFocus:!1,revalidateFirstPage:!0,persistSize:!0,refreshInterval:5e3}),u=c.useMemo(()=>{var A;return((A=d.data)==null?void 0:A.flatMap(j=>j.data||[]))||[]},[d.data]),f=d.data&&((x=d.data[d.data.length-1])==null?void 0:x.has_more)||!1,p=d.isValidating&&!!d.data&&d.size>(((w=d.data)==null?void 0:w.length)||0),m=c.useCallback(async(A,j=[])=>{if(!e)throw new Error("projectId is required");const S=await n(`/ai/projects/${e}/board/items`,{method:"POST",body:S0(A,j)}),C=await V(S);return await d.mutate(),C},[e,n,d]),g=c.useCallback(async A=>{if(!e)throw new Error("projectId is required");const j=await n(`/ai/projects/${e}/board/items/${A}/archive`,{method:"POST",body:new URLSearchParams}),S=await V(j);return await d.mutate(),S},[e,n,d]),v=c.useCallback(async A=>{if(!e)throw new Error("projectId is required");const j=await n(`/ai/projects/${e}/board/items/${A}/unarchive`,{method:"POST",body:new URLSearchParams}),S=await V(j);return await d.mutate(),S},[e,n,d]);return{tasks:u,loading:!d.data&&!d.error,error:d.error||null,hasMore:f,loadingMore:p,loadMore:async()=>{!f||p||await d.setSize(A=>A+1)},createTask:m,archiveTask:g,unarchiveTask:v,refetch:async()=>{await d.mutate()}}}function _p(e,r,a=!0,n={}){var I,P,T,$;const{client:s}=je(),i=n.includeArchived?"with-archived":"active-only",h=n.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 E=await s(`/ai/projects/${e}/board/items/${r}${h}`);return(await V(E)).data},[e,r,s,h]),p=$e(d,f,{revalidateOnFocus:!1,refreshInterval:5e3}),m=nr((E,F)=>{if(!a||!e||!r||E>0&&F&&!F.has_more)return null;const L=E===0||F==null?void 0:F.next_cursor;return["wacht-ai-board-item-events",e,r,i,L||""]},async([,E,F,,L])=>{const H=new URLSearchParams({limit:"40"});n.includeArchived&&H.set("include_archived","true"),L&&H.set("cursor",String(L));const Z=await s(`/ai/projects/${E}/board/items/${F}/events?${H.toString()}`);return(await V(Z)).data},{revalidateOnFocus:!1,revalidateFirstPage:!0,persistSize:!0,refreshInterval:5e3}),g=nr((E,F)=>{if(!a||!e||!r||E>0&&F&&!F.has_more)return null;const L=E===0||F==null?void 0:F.next_cursor;return["wacht-ai-board-item-assignments",e,r,i,L||""]},async([,E,F,,L])=>{const H=new URLSearchParams({limit:"40"});n.includeArchived&&H.set("include_archived","true"),L&&H.set("cursor",String(L));const Z=await s(`/ai/projects/${E}/board/items/${F}/assignments?${H.toString()}`);return(await V(Z)).data},{revalidateOnFocus:!1,revalidateFirstPage:!0,persistSize:!0,refreshInterval:5e3}),v=c.useCallback(async()=>{if(!e||!r)return{exists:!1,files:[]};const E=await s(`/ai/projects/${e}/board/items/${r}/filesystem${h}`);return(await V(E)).data},[e,r,s,h]),b=$e(u,v,{revalidateOnFocus:!1,refreshInterval:5e3}),x=c.useCallback(async(E,F=[])=>{if(!e||!r)throw new Error("projectId and itemId are required");const L=await s(`/ai/projects/${e}/board/items/${r}/update`,{method:"POST",body:S0(E,F)}),H=await V(L);return await p.mutate(),await b.mutate(),H},[e,r,s,p,b]),w=c.useCallback(async()=>{if(!e||!r)throw new Error("projectId and itemId are required");const E=await s(`/ai/projects/${e}/board/items/${r}/archive`,{method:"POST",body:new URLSearchParams}),F=await V(E);return await p.mutate(),F},[e,r,s,p]),A=c.useCallback(async()=>{if(!e||!r)throw new Error("projectId and itemId are required");const E=await s(`/ai/projects/${e}/board/items/${r}/unarchive`,{method:"POST",body:new URLSearchParams}),F=await V(E);return await p.mutate(),F},[e,r,s,p]),j=c.useCallback(async E=>{if(!e||!r)throw new Error("projectId and itemId are required");const F=await s(`/ai/projects/${e}/board/items/${r}/filesystem/file${_0(E,n.includeArchived)}`);return await V(F)},[e,r,s,n.includeArchived]),S=c.useCallback(async E=>{if(!e||!r)throw new Error("projectId and itemId are required");const F=await s(`/ai/projects/${e}/board/items/${r}/filesystem${k0(E,n.includeArchived)}`);return await V(F)},[e,r,s,n.includeArchived]),C=c.useCallback(async(E,F=[])=>{if(!e||!r)throw new Error("projectId and itemId are required");const L=await s(`/ai/projects/${e}/board/items/${r}/journal`,{method:"POST",body:(()=>{const Z=new FormData;Z.set("summary",E.summary),E.body_markdown&&Z.set("body_markdown",E.body_markdown),E.details&&Z.set("details",E.details);for(const R of F)Z.append("files",R);return Z})()}),H=await V(L);return await m.mutate(),await b.mutate(),H},[e,r,s,m,b]),_=c.useMemo(()=>{var E;return((E=m.data)==null?void 0:E.flatMap(F=>F.data||[]))||[]},[m.data]),k=c.useMemo(()=>{var E;return((E=g.data)==null?void 0:E.flatMap(F=>F.data||[]))||[]},[g.data]),y=m.data&&((I=m.data[m.data.length-1])==null?void 0:I.has_more)||!1,M=m.isValidating&&!!m.data&&m.size>(((P=m.data)==null?void 0:P.length)||0),z=g.data&&((T=g.data[g.data.length-1])==null?void 0:T.has_more)||!1,O=g.isValidating&&!!g.data&&g.size>((($=g.data)==null?void 0:$.length)||0);return{item:p.data||null,events:_,assignments:k,eventsHasMore:y,eventsLoadingMore:M,loadMoreEvents:async()=>{!y||M||await m.setSize(E=>E+1)},assignmentsHasMore:z,assignmentsLoadingMore:O,loadMoreAssignments:async()=>{!z||O||await g.setSize(E=>E+1)},taskWorkspace:b.data||{exists:!1,files:[]},taskWorkspaceLoading:!b.data&&!b.error,taskWorkspaceError:b.error||null,loading:!p.data&&!p.error||!m.data&&!m.error||!g.data&&!g.error,error:p.error||m.error||g.error||null,updateItem:x,archiveItem:w,unarchiveItem:A,getTaskWorkspaceFile:j,listTaskWorkspaceDirectory:S,appendJournal:C,refetch:async()=>{await p.mutate(),await m.mutate(),await g.mutate(),await b.mutate()},refetchEvents:async()=>{await m.mutate()},refetchAssignments:async()=>{await g.mutate()},refetchTaskWorkspace:async()=>{await b.mutate()}}}function kp(e,r=!0){var v;const{client:a}=je(),{data:n,error:s,mutate:i,isLoading:h,size:d,setSize:u,isValidating:f}=nr((b,x)=>{if(!r||!e||b>0&&(!x||!x.has_more))return null;const w=b===0||x==null?void 0:x.next_cursor;return["wacht-ai-thread-graphs",e,w]},async([,b,x])=>{const w=new URLSearchParams;w.set("limit","10"),x&&w.set("cursor",String(x));const A=await a(`/ai/threads/${b}/task-graphs?${w.toString()}`),S=(await V(A)).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:5e3,revalidateFirstPage:!0,revalidateAll:!1,persistSize:!0}),p=c.useMemo(()=>n?n.flatMap(b=>b.data||[]):[],[n]),m=n&&((v=n[n.length-1])==null?void 0:v.has_more)||!1,g=f&&!!n&&d>((n==null?void 0:n.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 Cp(e=!0){const{client:r}=je(),a=e?"wacht-ai-actor-mcp-servers":null,n=c.useCallback(async()=>{const p=await r("/ai/mcp-servers");return(await V(p)).data},[r]),{data:s,error:i,mutate:h,isLoading:d}=$e(a,n,{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 Sp(e=!0){const{client:r}=je(),a=e?"wacht-ai-external-agent-connections":null,n=c.useCallback(async()=>{const p=await r("/ai/external-connections");return(await V(p)).data},[r]),{data:s,error:i,mutate:h,isLoading:d}=$e(a,n,{revalidateOnFocus:!1}),u=c.useCallback(async(p,m,g)=>{const v=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(v);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"}),v=await V(g);return await h(),v.data},[r,h]);return{connections:s??[],loading:d,error:i,connect:u,disconnect:f,refetch:async()=>{await h()}}}function E0(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,n])=>{r.append(`headers[${a}]`,n)}),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 Ep(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,n])=>{r.append(`headers[${a}]`,n)}),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 Ap(e){const r=new URLSearchParams;return r.append("event_name",e.event_name),r.append("payload",JSON.stringify(e.payload||{})),r}function zp(e){const r=new URLSearchParams;return(e.delivery_ids||[]).forEach(n=>r.append("delivery_ids",n)),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 za={"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 $p(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 Mp(e,r){if(!(await e(`/session/ticket/exchange?ticket=${encodeURIComponent(r)}`,{method:"GET"})).ok)throw new Error("Failed to exchange ticket")}async function Lp(e,r){const a=E0(r),n=await e("/webhook/endpoints",{method:"POST",headers:za,body:a.toString()});return St(n,"Failed to create webhook endpoint")}async function Rp(e,r,a){const n=Ep(a),s=await e(`/webhook/endpoints/${r}`,{method:"PUT",headers:za,body:n.toString()});return St(s,"Failed to update webhook endpoint")}async function Pp(e,r){const a=await e(`/webhook/endpoints/${r}`,{method:"DELETE"});return St(a,"Failed to delete webhook endpoint")}async function Tp(e,r,a){const n=Ap(a),s=await e(`/webhook/endpoints/${r}/test`,{method:"POST",headers:za,body:n.toString()});return St(s,"Failed to test webhook endpoint")}async function Fp(e){const r=await e("/webhook/rotate-secret",{method:"POST"});return St(r,"Failed to rotate signing secret")}async function Ip(e,r){const a=new URLSearchParams;for(const s of r.failure_notification_emails)a.append("failure_notification_emails",s);const n=await e("/webhook/settings",{method:"PUT",headers:za,body:a.toString()});return St(n,"Failed to update webhook settings")}async function Zp(e,r){const a=zp(r),n=await e("/webhook/deliveries/replay",{method:"POST",headers:za,body:a.toString()});return St(n,"Failed to replay webhook delivery")}async function Op(e,r){const a=await e(`/webhook/deliveries/${r}`,{method:"GET"});return St(a,"Failed to fetch delivery details")}async function Hp(e,{taskId:r}){const a=await e(`/webhook/deliveries/replay/${r}`,{method:"GET"});return St(a,"Failed to fetch replay task status")}async function Vp(e,r){const a=(r==null?void 0:r.limit)??50,n=(r==null?void 0:r.offset)??0,s=await e(`/webhook/deliveries/replay?limit=${a}&offset=${n}`,{method:"GET"});return St(s,"Failed to fetch replay tasks")}async function Dp(e,{taskId:r}){const a=await e(`/webhook/deliveries/replay/${r}/cancel`,{method:"POST"});return St(a,"Failed to cancel replay task")}function Np(e){const{client:r}=je(),[a,n]=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()=>$p(r),[r]),{data:v,error:b,isLoading:x,mutate:w}=$e(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 Mp(r,e),u.current=!0,n(!0)}catch(F){d(F instanceof Error?F:new Error("Failed to exchange ticket"))}finally{i(!1),f.current=!1}})()},[e,r]);const A=c.useCallback(async E=>Lp(r,E),[r]),j=c.useCallback(async(E,F)=>Rp(r,E,F),[r]),S=c.useCallback(async E=>Pp(r,E),[r]),C=c.useCallback(async(E,F)=>Tp(r,E,F),[r]),_=c.useCallback(async()=>Fp(r),[r]),k=c.useCallback(async E=>Zp(r,E),[r]),y=c.useCallback(async E=>Ip(r,E),[r]),M=c.useCallback(async E=>Op(r,E),[r]),z=c.useCallback(async E=>Hp(r,E),[r]),O=c.useCallback(async E=>Vp(r,E),[r]),I=c.useCallback(async E=>Dp(r,E),[r]),P=!b||b.message!=="NO_SESSION",T=h||(b&&b.message!=="NO_SESSION"?b:null);return{hasSession:P,sessionLoading:s||m&&x,sessionError:T,sessionId:(v==null?void 0:v.session_id)||null,webhookApp:(v==null?void 0:v.webhook_app)||null,ticketExchanged:a,ticketLoading:s,refetch:async()=>{await w()},createEndpoint:A,updateEndpoint:j,deleteEndpoint:S,testEndpoint:C,rotateSecret:_,updateSettings:y,replayDelivery:k,fetchReplayTaskStatus:z,fetchReplayTasks:O,cancelReplayTask:I,fetchDeliveryDetail:M}}function Up(){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:n,isLoading:s,mutate:i}=$e("wacht-webhook-stats",r,{revalidateOnFocus:!1,shouldRetryOnError:!1});return{stats:a||null,loading:s,error:n,refetch:()=>i()}}function Bp(){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:n,isLoading:s,mutate:i}=$e("wacht-webhook-endpoints",r,{revalidateOnFocus:!1,shouldRetryOnError:!1});return{endpoints:a||[],loading:s,error:n,refetch:()=>i()}}function Wp(){const{client:e}=je();return{createEndpoint:c.useCallback(async a=>{const n=E0(a),s=await e("/webhook/endpoints",{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:n.toString()});return await V(s)},[e]),loading:!1,error:null}}function Gp(){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:n,isLoading:s,mutate:i}=$e("wacht-webhook-events",r,{revalidateOnFocus:!1,shouldRetryOnError:!1});return{events:a||[],loading:s,error:n,refetch:()=>i()}}function qp(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:n,error:s,isLoading:i,mutate:h}=$e(()=>{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:(n==null?void 0:n.data)||[],has_more:(n==null?void 0:n.has_more)||!1,next_cursor:n==null?void 0:n.next_cursor,loading:i,error:s,refetch:()=>h()}}function Kp(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:n,error:s,isLoading:i,mutate:h}=$e(()=>{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:n||null,loading:i,error:s,refetch:()=>h()}}function Yp(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:n,error:s,isLoading:i,mutate:h}=$e(()=>{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:(n==null?void 0:n.data)||[],interval:(n==null?void 0:n.interval)||"hour",loading:i,error:s,refetch:()=>h()}}function Qp(e){const{client:r}=je(),[a,n]=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:v,error:b,isLoading:x,mutate:w}=$e(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,n(!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 A=!b||b.message!=="NO_SESSION",j=h||(b&&b.message!=="NO_SESSION"?b:null);return{hasSession:A,sessionLoading:s||m&&x,sessionError:j,sessionId:(v==null?void 0:v.session_id)||null,apiAuthApp:(v==null?void 0:v.api_auth_app)||null,ticketExchanged:a,ticketLoading:s,refetch:async()=>{await w()}}}function Jp(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:n,error:s,isLoading:i,mutate:h}=$e(`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}),v=await V(g);return await h(),v},[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}),v=await V(g);return await h(),v},[r,h]);return{keys:n||[],createKey:d,rotateKey:u,revokeKey:f,loading:i,error:s,refetch:()=>h()}}function Xp(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:n,error:s,isLoading:i,mutate:h}=$e(()=>{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:(n==null?void 0:n.data)||[],limit:(n==null?void 0:n.limit)||e.limit||0,has_more:(n==null?void 0:n.has_more)||!1,next_cursor:n==null?void 0:n.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.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:n,error:s,isLoading:i,mutate:h}=$e(()=>{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:n||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.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:n,error:s,isLoading:i,mutate:h}=$e(()=>{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:(n==null?void 0:n.data)||[],interval:(n==null?void 0:n.interval)||e.interval||"hour",loading:i,error:s,refetch:()=>h()}}const A0=()=>{const{client:e}=je(),[r,a]=c.useState(!1),[n,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}),v=(await V(m)).data;return h(v),v.error_code&&s(v.message||"Failed to accept invitation"),v}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:n,reset:u}},rh=({children:e})=>{const{loading:r}=Ae();return r?null:t.jsx(t.Fragment,{children:e})},ah=({children:e})=>{const{loading:r}=Ae();return r?t.jsx(t.Fragment,{children:e}):null};function nh(e){var r=Object.create(null);return function(a){return r[a]===void 0&&(r[a]=e(a)),r[a]}}var oh=/^((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)-.*))$/,sh=nh(function(e){return oh.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),Xe="-ms-",ya="-moz-",Ne="-webkit-",z0="comm",zn="rule",bs="decl",ih="@import",ch="@namespace",$0="@keyframes",lh="@layer",M0=Math.abs,ws=String.fromCharCode,Qo=Object.assign;function dh(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 L0(e){return e.trim()}function Ut(e,r){return(e=r.exec(e))?e[0]:e}function Le(e,r,a){return e.replace(r,a)}function pn(e,r,a){return e.indexOf(r,a)}function ut(e,r){return e.charCodeAt(r)|0}function Rr(e,r,a){return e.slice(r,a)}function zt(e){return e.length}function R0(e){return e.length}function va(e,r){return r.push(e),e}function uh(e,r){return e.map(r).join("")}function di(e,r){return e.filter(function(a){return!Ut(a,r)})}var $n=1,Jr=1,P0=0,Ct=0,it=0,ra="";function Mn(e,r,a,n,s,i,h,d){return{value:e,root:r,parent:a,type:n,props:s,children:i,line:$n,column:Jr,length:h,return:"",siblings:d}}function Xt(e,r){return Qo(Mn("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},r)}function Hr(e){for(;e.root;)e=Xt(e.root,{children:[e]});va(e,e.siblings)}function ph(){return it}function hh(){return it=Ct>0?ut(ra,--Ct):0,Jr--,it===10&&(Jr=1,$n--),it}function Lt(){return it=Ct<P0?ut(ra,Ct++):0,Jr++,it===10&&(Jr=1,$n++),it}function tr(){return ut(ra,Ct)}function hn(){return Ct}function Ln(e,r){return Rr(ra,e,r)}function Ca(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 fh(e){return $n=Jr=1,P0=zt(ra=e),Ct=0,[]}function mh(e){return ra="",e}function Jn(e){return L0(Ln(Ct-1,Jo(e===91?e+2:e===40?e+1:e)))}function gh(e){for(;(it=tr())&&it<33;)Lt();return Ca(e)>2||Ca(it)>3?"":" "}function vh(e,r){for(;--r&&Lt()&&!(it<48||it>102||it>57&&it<65||it>70&&it<97););return Ln(e,hn()+(r<6&&tr()==32&&Lt()==32))}function Jo(e){for(;Lt();)switch(it){case e:return Ct;case 34:case 39:e!==34&&e!==39&&Jo(it);break;case 40:e===41&&Jo(e);break;case 92:Lt();break}return Ct}function xh(e,r){for(;Lt()&&e+it!==57;)if(e+it===84&&tr()===47)break;return"/*"+Ln(r,Ct-1)+"*"+ws(e===47?e:Lt())}function bh(e){for(;!Ca(tr());)Lt();return Ln(e,Ct)}function wh(e){return mh(fn("",null,null,null,[""],e=fh(e),0,[0],e))}function fn(e,r,a,n,s,i,h,d,u){for(var f=0,p=0,m=h,g=0,v=0,b=0,x=1,w=1,A=1,j=0,S="",C=s,_=i,k=n,y=S;w;)switch(b=j,j=Lt()){case 40:if(b!=108&&ut(y,m-1)==58){pn(y+=Le(Jn(j),"&","&\f"),"&\f",M0(f?d[f-1]:0))!=-1&&(A=-1);break}case 34:case 39:case 91:y+=Jn(j);break;case 9:case 10:case 13:case 32:y+=gh(b);break;case 92:y+=vh(hn()-1,7);continue;case 47:switch(tr()){case 42:case 47:va(yh(xh(Lt(),hn()),r,a,u),u),(Ca(b||1)==5||Ca(tr()||1)==5)&&zt(y)&&Rr(y,-1,void 0)!==" "&&(y+=" ");break;default:y+="/"}break;case 123*x:d[f++]=zt(y)*A;case 125*x:case 59:case 0:switch(j){case 0:case 125:w=0;case 59+p:A==-1&&(y=Le(y,/\f/g,"")),v>0&&(zt(y)-m||x===0&&b===47)&&va(v>32?pi(y+";",n,a,m-1,u):pi(Le(y," ","")+";",n,a,m-2,u),u);break;case 59:y+=";";default:if(va(k=ui(y,r,a,f,p,s,d,S,C=[],_=[],m,i),i),j===123)if(p===0)fn(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?fn(e,k,k,n&&va(ui(e,k,k,0,0,s,d,S,s,C=[],m,_),_),s,_,m,d,n?C:_):fn(y,k,k,k,[""],_,0,d,_)}}f=p=v=0,x=A=1,S=y="",m=h;break;case 58:m=1+zt(y),v=b;default:if(x<1){if(j==123)--x;else if(j==125&&x++==0&&hh()==125)continue}switch(y+=ws(j),j*x){case 38:A=p>0?1:(y+="\f",-1);break;case 44:d[f++]=(zt(y)-1)*A,A=1;break;case 64:tr()===45&&(y+=Jn(Lt())),g=tr(),p=m=zt(S=y+=bh(hn())),j++;break;case 45:b===45&&zt(y)==2&&(x=0)}}return i}function ui(e,r,a,n,s,i,h,d,u,f,p,m){for(var g=s-1,v=s===0?i:[""],b=R0(v),x=0,w=0,A=0;x<n;++x)for(var j=0,S=Rr(e,g+1,g=M0(w=h[x])),C=e;j<b;++j)(C=L0(w>0?v[j]+" "+S:Le(S,/&\f/g,v[j])))&&(u[A++]=C);return Mn(e,r,a,s===0?zn:d,u,f,p,m)}function yh(e,r,a,n){return Mn(e,r,a,z0,ws(ph()),Rr(e,2,-2),0,n)}function pi(e,r,a,n,s){return Mn(e,r,a,bs,Rr(e,0,n),Rr(e,n+1,-1),n,s)}function T0(e,r,a){switch(dh(e,r)){case 5103:return Ne+"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 Ne+e+e;case 4855:return Ne+e.replace("add","source-over").replace("substract","source-out").replace("intersect","source-in").replace("exclude","xor")+e;case 4789:return ya+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Ne+e+ya+e+Xe+e+e;case 5936:switch(ut(e,r+11)){case 114:return Ne+e+Xe+Le(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Ne+e+Xe+Le(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Ne+e+Xe+Le(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return Ne+e+Xe+e+e;case 6165:return Ne+e+Xe+"flex-"+e+e;case 5187:return Ne+e+Le(e,/(\w+).+(:[^]+)/,Ne+"box-$1$2"+Xe+"flex-$1$2")+e;case 5443:return Ne+e+Xe+"flex-item-"+Le(e,/flex-|-self/g,"")+(Ut(e,/flex-|baseline/)?"":Xe+"grid-row-"+Le(e,/flex-|-self/g,""))+e;case 4675:return Ne+e+Xe+"flex-line-pack"+Le(e,/align-content|flex-|-self/g,"")+e;case 5548:return Ne+e+Xe+Le(e,"shrink","negative")+e;case 5292:return Ne+e+Xe+Le(e,"basis","preferred-size")+e;case 6060:return Ne+"box-"+Le(e,"-grow","")+Ne+e+Xe+Le(e,"grow","positive")+e;case 4554:return Ne+Le(e,/([^-])(transform)/g,"$1"+Ne+"$2")+e;case 6187:return Le(Le(Le(e,/(zoom-|grab)/,Ne+"$1"),/(image-set)/,Ne+"$1"),e,"")+e;case 5495:case 3959:return Le(e,/(image-set\([^]*)/,Ne+"$1$`$1");case 4968:return Le(Le(e,/(.+:)(flex-)?(.*)/,Ne+"box-pack:$3"+Xe+"flex-pack:$3"),/space-between/,"justify")+Ne+e+e;case 4200:if(!Ut(e,/flex-|baseline/))return Xe+"grid-column-align"+Rr(e,r)+e;break;case 2592:case 3360:return Xe+Le(e,"template-","")+e;case 4384:case 3616:return a&&a.some(function(n,s){return r=s,Ut(n.props,/grid-\w+-end/)})?~pn(e+(a=a[r].value),"span",0)?e:Xe+Le(e,"-start","")+e+Xe+"grid-row-span:"+(~pn(a,"span",0)?Ut(a,/\d+/):+Ut(a,/\d+/)-+Ut(e,/\d+/))+";":Xe+Le(e,"-start","")+e;case 4896:case 4128:return a&&a.some(function(n){return Ut(n.props,/grid-\w+-start/)})?e:Xe+Le(Le(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return Le(e,/(.+)-inline(.+)/,Ne+"$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 Le(e,/(.+:)(.+)-([^]+)/,"$1"+Ne+"$2-$3$1"+ya+(ut(e,r+3)==108?"$3":"$2-$3"))+e;case 115:return~pn(e,"stretch",0)?T0(Le(e,"stretch","fill-available"),r,a)+e:e}break;case 5152:case 5920:return Le(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(n,s,i,h,d,u,f){return Xe+s+":"+i+f+(h?Xe+s+"-span:"+(d?u:+u-+i)+f:"")+e});case 4949:if(ut(e,r+6)===121)return Le(e,":",":"+Ne)+e;break;case 6444:switch(ut(e,ut(e,14)===45?18:11)){case 120:return Le(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+Ne+(ut(e,14)===45?"inline-":"")+"box$3$1"+Ne+"$2$3$1"+Xe+"$2box$3")+e;case 100:return Le(e,":",":"+Xe)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return Le(e,"scroll-","scroll-snap-")+e}return e}function wn(e,r){for(var a="",n=0;n<e.length;n++)a+=r(e[n],n,e,r)||"";return a}function jh(e,r,a,n){switch(e.type){case lh:if(e.children.length)break;case ih:case ch:case bs:return e.return=e.return||e.value;case z0:return"";case $0:return e.return=e.value+"{"+wn(e.children,n)+"}";case zn:if(!zt(e.value=e.props.join(",")))return""}return zt(a=wn(e.children,n))?e.return=e.value+"{"+a+"}":""}function _h(e){var r=R0(e);return function(a,n,s,i){for(var h="",d=0;d<r;d++)h+=e[d](a,n,s,i)||"";return h}}function kh(e){return function(r){r.root||(r=r.return)&&e(r)}}function Ch(e,r,a,n){if(e.length>-1&&!e.return)switch(e.type){case bs:e.return=T0(e.value,e.length,a);return;case $0:return wn([Xt(e,{value:Le(e.value,"@","@"+Ne)})],n);case zn:if(e.length)return uh(a=e.props,function(s){switch(Ut(s,n=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":Hr(Xt(e,{props:[Le(s,/:(read-\w+)/,":"+ya+"$1")]})),Hr(Xt(e,{props:[s]})),Qo(e,{props:di(a,n)});break;case"::placeholder":Hr(Xt(e,{props:[Le(s,/:(plac\w+)/,":"+Ne+"input-$1")]})),Hr(Xt(e,{props:[Le(s,/:(plac\w+)/,":"+ya+"$1")]})),Hr(Xt(e,{props:[Le(s,/:(plac\w+)/,Xe+"input-$1")]})),Hr(Xt(e,{props:[s]})),Qo(e,{props:di(a,n)});break}return""})}}var Xn,eo;const Pr=typeof process<"u"&&process.env!==void 0&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",F0="active",I0="data-styled-version",Rn="6.4.1",ys=`/*!sc*/
|
|
19
|
+
`,ja=typeof window<"u"&&typeof document<"u";function hi(e){if(typeof process<"u"&&process.env!==void 0){const r=process.env[e];if(r!==void 0&&r!=="")return r!=="false"}}const Sh=!!(typeof SC_DISABLE_SPEEDY=="boolean"?SC_DISABLE_SPEEDY:(eo=(Xn=hi("REACT_APP_SC_DISABLE_SPEEDY"))!==null&&Xn!==void 0?Xn:hi("SC_DISABLE_SPEEDY"))!==null&&eo!==void 0?eo:typeof process>"u"||process.env===void 0||process.env.NODE_ENV!=="production"),Z0="sc-keyframes-",Eh=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
|
|
|
@@ -83,7 +83,7 @@ If you need access to the theme in an uncertain composition scenario, \`React.us
|
|
|
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
|
-
`,n=console.error;try{let s=!0;console.error=(i,...h)=>{fi.test(i)?(s=!1,Oa.delete(a)):n(i,...h)},typeof c.useState=="function"&&c.useState(null),s&&!Oa.has(a)&&(console.warn(a),Oa.add(a))}catch(s){fi.test(s.message)&&Oa.delete(a)}finally{console.error=n}}},js=Object.freeze([]),Xr=Object.freeze({});function Lh(e,r,a=Xr){return e.theme!==a.theme&&e.theme||r||a.theme}const Rh=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,Ph=/(^-|-$)/g;function O0(e){return e.replace(Rh,"-").replace(Ph,"")}const Th=/(a)(d)/gi,mi=e=>String.fromCharCode(e+(e>25?39:97));function _s(e){let r,a="";for(r=Math.abs(e);r>52;r=r/52|0)a=mi(r%52)+a;return(mi(r%52)+a).replace(Th,"$1-$2")}const Xo=5381,Er=(e,r)=>{let a=r.length;for(;a;)e=33*e^r.charCodeAt(--a);return e},H0=e=>Er(Xo,e);function V0(e){return _s(H0(e)>>>0)}function ks(e){return process.env.NODE_ENV!=="production"&&typeof e=="string"&&e||e.displayName||e.name||"Component"}function vn(e){return typeof e=="string"&&(process.env.NODE_ENV==="production"||e.charAt(0)===e.charAt(0).toLowerCase())}function Fh(e){return vn(e)?`styled.${e}`:`Styled(${ks(e)})`}const D0=Symbol.for("react.memo"),Zh=Symbol.for("react.forward_ref"),Ih={contextType:!0,defaultProps:!0,displayName:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,propTypes:!0,type:!0},Oh={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},N0={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Hh={[Zh]:{$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},[D0]:N0};function gi(e){return("type"in(r=e)&&r.type.$$typeof)===D0?N0:"$$typeof"in e?Hh[e.$$typeof]:Ih;var r}const Vh=Object.defineProperty,Dh=Object.getOwnPropertyNames,Nh=Object.getOwnPropertySymbols,Uh=Object.getOwnPropertyDescriptor,Bh=Object.getPrototypeOf,Wh=Object.prototype;function U0(e,r,a){if(typeof r!="string"){const n=Bh(r);n&&n!==Wh&&U0(e,n,a);const s=Dh(r).concat(Nh(r)),i=gi(e),h=gi(r);for(let d=0;d<s.length;++d){const u=s[d];if(!(u in Oh||a&&a[u]||h&&u in h||i&&u in i)){const f=Uh(r,u);try{Vh(e,u,f)}catch{}}}}return e}function Pn(e){return typeof e=="function"}function B0(e){return typeof e=="object"&&"styledComponentId"in e}function ba(e,r){return e&&r?e+" "+r:e||r||""}function es(e,r){return e.join("")}function Tr(e){return e!==null&&typeof e=="object"&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function ts(e,r,a=!1){if(!a&&!Tr(e)&&!Array.isArray(e))return r;if(Array.isArray(r))for(let n=0;n<r.length;n++)e[n]=ts(e[n],r[n]);else if(Tr(r))for(const n in r)e[n]=ts(e[n],r[n]);return e}function Cs(e,r){Object.defineProperty(e,"toString",{value:r})}const Gh=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 aa(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),n=0;for(let s=0,i=r.length;s<i;s++)this.tag.insertRule(a,r[s])&&(this.groupSizes[e]++,a++,n++);n>0&&this._cGroup>e&&(this._cIndex+=n)}clearGroup(e){if(e<this.length){const r=this.groupSizes[e],a=this.indexOfGroup(e),n=a+r;this.groupSizes[e]=0;for(let s=a;s<n;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],n=this.indexOfGroup(e),s=n+a;for(let i=n;i<s;i++)r+=this.tag.getRule(i)+ys;return r}},qh=`style[${Pr}][${Z0}="${Rn}"]`,Kh=new RegExp(`^${Pr}\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)`),vi=e=>typeof ShadowRoot<"u"&&e instanceof ShadowRoot||"host"in e&&e.nodeType===11,rs=e=>{if(!e)return document;if(vi(e))return e;if("getRootNode"in e){const r=e.getRootNode();if(vi(r))return r}return document},Yh=(e,r,a)=>{const n=a.split(",");let s;for(let i=0,h=n.length;i<h;i++)(s=n[i])&&e.registerName(r,s)},Qh=(e,r)=>{var a;const n=((a=r.textContent)!==null&&a!==void 0?a:"").split(ys),s=[];for(let i=0,h=n.length;i<h;i++){const d=n[i].trim();if(!d)continue;const u=d.match(Kh);if(u){const f=0|parseInt(u[1],10),p=u[2];f!==0&&($h(p,f),Yh(e,p,u[3]),e.getTag().insertRules(f,s)),s.length=0}else s.push(d)}},to=e=>{const r=rs(e.options.target).querySelectorAll(qh);for(let a=0,n=r.length;a<n;a++){const s=r[a];s&&s.getAttribute(Pr)!==F0&&(Qh(e,s),s.parentNode&&s.parentNode.removeChild(s))}};let ca=!1;function Jh(){if(ca!==!1)return ca;if(typeof document<"u"){const e=document.head.querySelector('meta[property="csp-nonce"]');if(e)return ca=e.nonce||e.getAttribute("content")||void 0;const r=document.head.querySelector('meta[name="sc-nonce"]');if(r)return ca=r.getAttribute("content")||void 0}return ca=typeof __webpack_nonce__<"u"?__webpack_nonce__:void 0}const W0=(e,r)=>{const a=document.head,n=e||a,s=document.createElement("style"),i=(u=>{const f=Array.from(u.querySelectorAll(`style[${Pr}]`));return f[f.length-1]})(n),h=i!==void 0?i.nextSibling:null;s.setAttribute(Pr,F0),s.setAttribute(Z0,Rn);const d=r||Jh();return d&&s.setAttribute("nonce",d),n.insertBefore(s,h),s},Xh=class{constructor(e,r){this.element=W0(e,r),this.element.appendChild(document.createTextNode("")),this.sheet=(a=>{var n;if(a.sheet)return a.sheet;const s=(n=a.getRootNode().styleSheets)!==null&&n!==void 0?n:document.styleSheets;for(let i=0,h=s.length;i<h;i++){const d=s[i];if(d.ownerNode===a)return d}throw aa(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:""}},e8=class{constructor(e,r){this.element=W0(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 xi=ja;const t8={isServer:!ja,useCSSOMInjection:!Sh};class Tn{static registerId(r){return xa(r)}constructor(r=Xr,a={},n){this.options=Object.assign(Object.assign({},t8),r),this.gs=a,this.keyframeIds=new Set,this.names=new Map(n),this.server=!!r.isServer,!this.server&&ja&&xi&&(xi=!1,to(this)),Cs(this,()=>(s=>{const i=s.getTag(),{length:h}=i;let d="";for(let u=0;u<h;u++){const f=zh(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=Pr+".g"+u+'[id="'+f+'"]';let v="";for(const b of p)b.length>0&&(v+=b+",");d+=m+g+'{content:"'+v+'"}'+ys}return d})(this))}rehydrate(){!this.server&&ja&&to(this)}reconstructWithOptions(r,a=!0){const n=new Tn(Object.assign(Object.assign({},this.options),r),this.gs,a&&this.names||void 0);return n.keyframeIds=new Set(this.keyframeIds),!this.server&&ja&&r.target!==this.options.target&&rs(this.options.target)!==rs(r.target)&&to(n),n}allocateGSInstance(r){return this.gs[r]=(this.gs[r]||0)+1}getTag(){return this.tag||(this.tag=(r=(({useCSSOMInjection:a,target:n,nonce:s})=>a?new Xh(n,s):new e8(n,s))(this.options),new Gh(r)));var r}hasNameForId(r,a){var n,s;return(s=(n=this.names.get(r))===null||n===void 0?void 0:n.has(a))!==null&&s!==void 0&&s}registerName(r,a){xa(r),r.startsWith(I0)&&this.keyframeIds.add(r);const n=this.names.get(r);n?n.add(a):this.names.set(r,new Set([a]))}insertRules(r,a,n){this.registerName(r,a),this.getTag().insertRules(xa(r),n)}clearNames(r){this.names.has(r)&&this.names.get(r).clear()}clearRules(r){this.getTag().clearGroup(xa(r)),this.clearNames(r)}clearTag(){this.tag=void 0}}const G0=new WeakSet,r8={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 a8(e,r){return r==null||typeof r=="boolean"||r===""?"":typeof r!="number"||r===0||e in r8||e.startsWith("--")?String(r).trim():r+"px"}const Cr=47;function bi(e){if(e.charCodeAt(0)===45&&e.charCodeAt(1)===45)return e;let r="";for(let a=0;a<e.length;a++){const n=e.charCodeAt(a);r+=n>=65&&n<=90?"-"+String.fromCharCode(n+32):e[a]}return r.startsWith("ms-")?"-"+r:r}const q0=Symbol.for("sc-keyframes");function as(e){return typeof e=="object"&&e!==null&&q0 in e}function K0(e){return Pn(e)&&!(e.prototype&&e.prototype.isReactComponent)}const Y0=e=>e==null||e===!1||e==="",n8=Symbol.for("react.client.reference");function wi(e){return e.$$typeof===n8}function yi(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 Q0(e,r){for(const a in e){const n=e[a];e.hasOwnProperty(a)&&!Y0(n)&&(Array.isArray(n)&&G0.has(n)||Pn(n)?r.push(bi(a)+":",n,";"):Tr(n)?(r.push(a+" {"),Q0(n,r),r.push("}")):r.push(bi(a)+": "+a8(a,n)+";"))}}function Ar(e,r,a,n,s=[]){if(Y0(e))return s;const i=typeof e;if(i==="string")return s.push(e),s;if(i==="function"){if(wi(e))return process.env.NODE_ENV!=="production"&&yi(e),s;if(K0(e)&&r){const h=e(r);return process.env.NODE_ENV==="production"||typeof h!="object"||Array.isArray(h)||as(h)||Tr(h)||h===null||console.error(`${ks(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,n,s)}return s.push(e),s}if(Array.isArray(e)){for(let h=0;h<e.length;h++)Ar(e[h],r,a,n,s);return s}return B0(e)?(s.push(`.${e.styledComponentId}`),s):as(e)?(a?(e.inject(a,n),s.push(e.getName(n))):s.push(e),s):wi(e)?(process.env.NODE_ENV!=="production"&&yi(e),s):Tr(e)?(Q0(e,s),s):(s.push(e.toString()),s)}const o8=H0(Rn);class s8{constructor(r,a,n){this.rules=r,this.componentId=a,this.baseHash=Er(o8,a),this.baseStyle=n,Tn.registerId(a)}generateAndInjectStyles(r,a,n){let s=this.baseStyle?this.baseStyle.generateAndInjectStyles(r,a,n):"";{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(K0(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)||as(u)||Tr(u)||console.error(`${ks(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+=es(Ar(u,r,a,n)))}else i+=es(Ar(d,r,a,n))}if(i){this.dynamicNameCache||(this.dynamicNameCache=new Map);const h=n.hash?n.hash+i:i;let d=this.dynamicNameCache.get(h);if(!d){if(d=_s(Er(Er(this.baseHash,n.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=n(i,"."+d,void 0,this.componentId);a.insertRules(this.componentId,d,u)}s=ba(s,d)}}return s}}const i8=/&/g;function J0(e,r){let a=0;for(;--r>=0&&e.charCodeAt(r)===92;)a++;return!(1&~a)}function ro(e){const r=e.length;let a="",n=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||J0(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,n=p;continue}s===0&&(a+=e.substring(n,u+1),n=u+1)}else f===59&&s===0&&(a+=e.substring(n,u+1),n=u+1)}else i===0?i=f:i===f&&(i=0);else h=!0,u++}return d||s!==0||i!==0?(n<r&&s===0&&i===0&&(a+=e.substring(n)),a):e}function X0(e,r){const a=r+" ",n=","+a;for(let s=0;s<e.length;s++){const i=e[s];if(i.type==="rule"){i.value=(a+i.value).replaceAll(",",n);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"&&X0(i.children,r)}return e}function c8({options:e=Xr,plugins:r=js}=Xr){let a,n,s;const i=(g,v,b)=>b.startsWith(n)&&b.endsWith(n)&&b.replaceAll(n,"").length>0?`.${a}`:g,h=r.slice();h.push(g=>{g.type===zn&&g.value.includes("&")&&(s||(s=new RegExp(`\\${n}\\b`,"g")),g.props[0]=g.props[0].replace(i8,n).replace(s,i))}),e.prefix&&h.push(Ch),h.push(jh);let d=[];const u=_h(h.concat(kh(g=>d.push(g)))),f=(g,v="",b="",x="&")=>{a=x,n=v,s=void 0;const w=(function(j){const S=j.indexOf("//")!==-1,C=j.indexOf("}")!==-1;if(!S&&!C)return j;if(!S)return ro(j);const _=j.length;let k="",y=0,M=0,z=0,O=0,I=0,P=!1;for(;M<_;){const T=j.charCodeAt(M);if(T!==34&&T!==39||J0(j,M))if(z===0)if(T===Cr&&M+1<_&&j.charCodeAt(M+1)===42){for(M+=2;M+1<_&&(j.charCodeAt(M)!==42||j.charCodeAt(M+1)!==Cr);)M++;M+=2}else if(T!==40)if(T!==41)if(O>0)M++;else if(T===42&&M+1<_&&j.charCodeAt(M+1)===Cr)k+=j.substring(y,M),M+=2,y=M,P=!0;else if(T===Cr&&M+1<_&&j.charCodeAt(M+1)===Cr){for(k+=j.substring(y,M);M<_&&j.charCodeAt(M)!==10;)M++;y=M,P=!0}else T===123?I++:T===125&&I--,M++;else O>0&&O--,M++;else O++,M++;else M++;else z===0?z=T:z===T&&(z=0),M++}return P?(y<_&&(k+=j.substring(y)),I===0?k:ro(k)):I===0?j:ro(j)})(g);let A=wh(b||v?b+" "+v+" { "+w+" }":w);return e.namespace&&(A=X0(A,e.namespace)),d=[],wn(A,u),d},p=e;let m=Xo;for(let g=0;g<r.length;g++)r[g].name||aa(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!==Xo?m.toString():"",f}const l8=new Tn,ns=c8(),ed=c.createContext({shouldForwardProp:void 0,styleSheet:l8,stylis:ns,stylisPlugins:void 0});ed.Consumer;function d8(){return c.useContext(ed)}const td=c.createContext(void 0);td.Consumer;const ji=Object.prototype.hasOwnProperty,ao={};function u8(e,r){const a=typeof e!="string"?"sc":O0(e);ao[a]=(ao[a]||0)+1;const n=a+"-"+V0(Rn+a+ao[a]);return r?r+"-"+n:n}let no;function p8(e,r,a){const n=B0(e),s=e,i=!vn(e),{attrs:h=js,componentId:d=u8(r.displayName,r.parentComponentId),displayName:u=Fh(e)}=r,f=r.displayName&&r.componentId?O0(r.displayName)+"-"+r.componentId:r.componentId||d,p=n&&s.attrs?s.attrs.concat(h).filter(Boolean):h;let{shouldForwardProp:m}=r;if(n&&s.shouldForwardProp){const x=s.shouldForwardProp;if(r.shouldForwardProp){const w=r.shouldForwardProp;m=(A,j)=>x(A,j)&&w(A,j)}else m=x}const g=new s8(a,f,n?s.componentStyle:void 0);function v(x,w){return(function(A,j,S){const{attrs:C,componentStyle:_,defaultProps:k,foldedComponentIds:y,styledComponentId:M,target:z}=A,O=c.useContext(td),I=d8(),P=A.shouldForwardProp||I.shouldForwardProp;process.env.NODE_ENV!=="production"&&c.useDebugValue&&c.useDebugValue(M);const T=Lh(j,O,k)||Xr;let $,E;{const Z=c.useRef(null),R=Z.current;if(R!==null&&R[1]===T&&R[2]===I.styleSheet&&R[3]===I.stylis&&R[7]===_&&(function(W,D,B){const Y=W,X=D;let ce=0;for(const me in X)if(ji.call(X,me)&&(ce++,Y[me]!==X[me]))return!1;return ce===B})(R[0],j,R[4]))$=R[5],E=R[6];else{$=(function(D,B,Y){const X=Object.assign(Object.assign({},B),{className:void 0,theme:Y}),ce=D.length>1;for(let me=0;me<D.length;me++){const te=D[me],xe=Pn(te)?te(ce?Object.assign({},X):X):te;for(const re in xe)re==="className"?X.className=ba(X.className,xe[re]):re==="style"?X.style=Object.assign(Object.assign({},X.style),xe[re]):re in B&&B[re]===void 0||(X[re]=xe[re])}return"className"in B&&typeof B.className=="string"&&(X.className=ba(X.className,B.className)),X})(C,j,T),E=(function(D,B,Y,X){const ce=D.generateAndInjectStyles(B,Y,X);return process.env.NODE_ENV!=="production"&&c.useDebugValue&&c.useDebugValue(ce),ce})(_,$,I.styleSheet,I.stylis);let W=0;for(const D in j)ji.call(j,D)&&W++;Z.current=[j,T,I.styleSheet,I.stylis,W,$,E,_]}}process.env.NODE_ENV!=="production"&&A.warnTooManyClasses&&A.warnTooManyClasses(E);const F=$.as||z,L=(function(Z,R,W,D){const B={};for(const Y in Z)Z[Y]===void 0||Y[0]==="$"||Y==="as"||Y==="theme"&&Z.theme===W||(Y==="forwardedAs"?B.as=Z.forwardedAs:D&&!D(Y,R)||(B[Y]=Z[Y],D||process.env.NODE_ENV!=="development"||sh(Y)||(no||(no=new Set)).has(Y)||!vn(R)||R.includes("-")||(no.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 B})($,F,T,P);let H=ba(y,M);return E&&(H+=" "+E),$.className&&(H+=" "+$.className),L[vn(F)&&F.includes("-")?"class":"className"]=H,S&&(L.ref=S),c.createElement(F,L)})(b,x,w)}v.displayName=u;let b=c.forwardRef(v);return b.attrs=p,b.componentStyle=g,b.displayName=u,b.shouldForwardProp=m,b.foldedComponentIds=n?ba(s.foldedComponentIds,s.styledComponentId):"",b.styledComponentId=f,b.target=n?s.target:e,Object.defineProperty(b,"defaultProps",{get(){return this._foldedDefaultProps},set(x){this._foldedDefaultProps=n?(function(w,...A){for(const j of A)ts(w,j,!0);return w})({},s.defaultProps,x):x}}),process.env.NODE_ENV!=="production"&&(Mh(u,f),b.warnTooManyClasses=((x,w)=>{let A={},j=!1;return S=>{!j&&(A[S]=!0,Object.keys(A).length>=200)&&(console.warn(`Over 200 classes were generated for component ${x}${w?` with the id of "${w}"`:""}.
|
|
86
|
+
`,n=console.error;try{let s=!0;console.error=(i,...h)=>{fi.test(i)?(s=!1,Oa.delete(a)):n(i,...h)},typeof c.useState=="function"&&c.useState(null),s&&!Oa.has(a)&&(console.warn(a),Oa.add(a))}catch(s){fi.test(s.message)&&Oa.delete(a)}finally{console.error=n}}},js=Object.freeze([]),Xr=Object.freeze({});function Lh(e,r,a=Xr){return e.theme!==a.theme&&e.theme||r||a.theme}const Rh=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,Ph=/(^-|-$)/g;function O0(e){return e.replace(Rh,"-").replace(Ph,"")}const Th=/(a)(d)/gi,mi=e=>String.fromCharCode(e+(e>25?39:97));function _s(e){let r,a="";for(r=Math.abs(e);r>52;r=r/52|0)a=mi(r%52)+a;return(mi(r%52)+a).replace(Th,"$1-$2")}const Xo=5381,Er=(e,r)=>{let a=r.length;for(;a;)e=33*e^r.charCodeAt(--a);return e},H0=e=>Er(Xo,e);function V0(e){return _s(H0(e)>>>0)}function ks(e){return process.env.NODE_ENV!=="production"&&typeof e=="string"&&e||e.displayName||e.name||"Component"}function vn(e){return typeof e=="string"&&(process.env.NODE_ENV==="production"||e.charAt(0)===e.charAt(0).toLowerCase())}function Fh(e){return vn(e)?`styled.${e}`:`Styled(${ks(e)})`}const D0=Symbol.for("react.memo"),Ih=Symbol.for("react.forward_ref"),Zh={contextType:!0,defaultProps:!0,displayName:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,propTypes:!0,type:!0},Oh={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},N0={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Hh={[Ih]:{$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},[D0]:N0};function gi(e){return("type"in(r=e)&&r.type.$$typeof)===D0?N0:"$$typeof"in e?Hh[e.$$typeof]:Zh;var r}const Vh=Object.defineProperty,Dh=Object.getOwnPropertyNames,Nh=Object.getOwnPropertySymbols,Uh=Object.getOwnPropertyDescriptor,Bh=Object.getPrototypeOf,Wh=Object.prototype;function U0(e,r,a){if(typeof r!="string"){const n=Bh(r);n&&n!==Wh&&U0(e,n,a);const s=Dh(r).concat(Nh(r)),i=gi(e),h=gi(r);for(let d=0;d<s.length;++d){const u=s[d];if(!(u in Oh||a&&a[u]||h&&u in h||i&&u in i)){const f=Uh(r,u);try{Vh(e,u,f)}catch{}}}}return e}function Pn(e){return typeof e=="function"}function B0(e){return typeof e=="object"&&"styledComponentId"in e}function ba(e,r){return e&&r?e+" "+r:e||r||""}function es(e,r){return e.join("")}function Tr(e){return e!==null&&typeof e=="object"&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function ts(e,r,a=!1){if(!a&&!Tr(e)&&!Array.isArray(e))return r;if(Array.isArray(r))for(let n=0;n<r.length;n++)e[n]=ts(e[n],r[n]);else if(Tr(r))for(const n in r)e[n]=ts(e[n],r[n]);return e}function Cs(e,r){Object.defineProperty(e,"toString",{value:r})}const Gh=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 aa(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),n=0;for(let s=0,i=r.length;s<i;s++)this.tag.insertRule(a,r[s])&&(this.groupSizes[e]++,a++,n++);n>0&&this._cGroup>e&&(this._cIndex+=n)}clearGroup(e){if(e<this.length){const r=this.groupSizes[e],a=this.indexOfGroup(e),n=a+r;this.groupSizes[e]=0;for(let s=a;s<n;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],n=this.indexOfGroup(e),s=n+a;for(let i=n;i<s;i++)r+=this.tag.getRule(i)+ys;return r}},qh=`style[${Pr}][${I0}="${Rn}"]`,Kh=new RegExp(`^${Pr}\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)`),vi=e=>typeof ShadowRoot<"u"&&e instanceof ShadowRoot||"host"in e&&e.nodeType===11,rs=e=>{if(!e)return document;if(vi(e))return e;if("getRootNode"in e){const r=e.getRootNode();if(vi(r))return r}return document},Yh=(e,r,a)=>{const n=a.split(",");let s;for(let i=0,h=n.length;i<h;i++)(s=n[i])&&e.registerName(r,s)},Qh=(e,r)=>{var a;const n=((a=r.textContent)!==null&&a!==void 0?a:"").split(ys),s=[];for(let i=0,h=n.length;i<h;i++){const d=n[i].trim();if(!d)continue;const u=d.match(Kh);if(u){const f=0|parseInt(u[1],10),p=u[2];f!==0&&($h(p,f),Yh(e,p,u[3]),e.getTag().insertRules(f,s)),s.length=0}else s.push(d)}},to=e=>{const r=rs(e.options.target).querySelectorAll(qh);for(let a=0,n=r.length;a<n;a++){const s=r[a];s&&s.getAttribute(Pr)!==F0&&(Qh(e,s),s.parentNode&&s.parentNode.removeChild(s))}};let ca=!1;function Jh(){if(ca!==!1)return ca;if(typeof document<"u"){const e=document.head.querySelector('meta[property="csp-nonce"]');if(e)return ca=e.nonce||e.getAttribute("content")||void 0;const r=document.head.querySelector('meta[name="sc-nonce"]');if(r)return ca=r.getAttribute("content")||void 0}return ca=typeof __webpack_nonce__<"u"?__webpack_nonce__:void 0}const W0=(e,r)=>{const a=document.head,n=e||a,s=document.createElement("style"),i=(u=>{const f=Array.from(u.querySelectorAll(`style[${Pr}]`));return f[f.length-1]})(n),h=i!==void 0?i.nextSibling:null;s.setAttribute(Pr,F0),s.setAttribute(I0,Rn);const d=r||Jh();return d&&s.setAttribute("nonce",d),n.insertBefore(s,h),s},Xh=class{constructor(e,r){this.element=W0(e,r),this.element.appendChild(document.createTextNode("")),this.sheet=(a=>{var n;if(a.sheet)return a.sheet;const s=(n=a.getRootNode().styleSheets)!==null&&n!==void 0?n:document.styleSheets;for(let i=0,h=s.length;i<h;i++){const d=s[i];if(d.ownerNode===a)return d}throw aa(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:""}},e8=class{constructor(e,r){this.element=W0(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 xi=ja;const t8={isServer:!ja,useCSSOMInjection:!Sh};class Tn{static registerId(r){return xa(r)}constructor(r=Xr,a={},n){this.options=Object.assign(Object.assign({},t8),r),this.gs=a,this.keyframeIds=new Set,this.names=new Map(n),this.server=!!r.isServer,!this.server&&ja&&xi&&(xi=!1,to(this)),Cs(this,()=>(s=>{const i=s.getTag(),{length:h}=i;let d="";for(let u=0;u<h;u++){const f=zh(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=Pr+".g"+u+'[id="'+f+'"]';let v="";for(const b of p)b.length>0&&(v+=b+",");d+=m+g+'{content:"'+v+'"}'+ys}return d})(this))}rehydrate(){!this.server&&ja&&to(this)}reconstructWithOptions(r,a=!0){const n=new Tn(Object.assign(Object.assign({},this.options),r),this.gs,a&&this.names||void 0);return n.keyframeIds=new Set(this.keyframeIds),!this.server&&ja&&r.target!==this.options.target&&rs(this.options.target)!==rs(r.target)&&to(n),n}allocateGSInstance(r){return this.gs[r]=(this.gs[r]||0)+1}getTag(){return this.tag||(this.tag=(r=(({useCSSOMInjection:a,target:n,nonce:s})=>a?new Xh(n,s):new e8(n,s))(this.options),new Gh(r)));var r}hasNameForId(r,a){var n,s;return(s=(n=this.names.get(r))===null||n===void 0?void 0:n.has(a))!==null&&s!==void 0&&s}registerName(r,a){xa(r),r.startsWith(Z0)&&this.keyframeIds.add(r);const n=this.names.get(r);n?n.add(a):this.names.set(r,new Set([a]))}insertRules(r,a,n){this.registerName(r,a),this.getTag().insertRules(xa(r),n)}clearNames(r){this.names.has(r)&&this.names.get(r).clear()}clearRules(r){this.getTag().clearGroup(xa(r)),this.clearNames(r)}clearTag(){this.tag=void 0}}const G0=new WeakSet,r8={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 a8(e,r){return r==null||typeof r=="boolean"||r===""?"":typeof r!="number"||r===0||e in r8||e.startsWith("--")?String(r).trim():r+"px"}const Cr=47;function bi(e){if(e.charCodeAt(0)===45&&e.charCodeAt(1)===45)return e;let r="";for(let a=0;a<e.length;a++){const n=e.charCodeAt(a);r+=n>=65&&n<=90?"-"+String.fromCharCode(n+32):e[a]}return r.startsWith("ms-")?"-"+r:r}const q0=Symbol.for("sc-keyframes");function as(e){return typeof e=="object"&&e!==null&&q0 in e}function K0(e){return Pn(e)&&!(e.prototype&&e.prototype.isReactComponent)}const Y0=e=>e==null||e===!1||e==="",n8=Symbol.for("react.client.reference");function wi(e){return e.$$typeof===n8}function yi(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 Q0(e,r){for(const a in e){const n=e[a];e.hasOwnProperty(a)&&!Y0(n)&&(Array.isArray(n)&&G0.has(n)||Pn(n)?r.push(bi(a)+":",n,";"):Tr(n)?(r.push(a+" {"),Q0(n,r),r.push("}")):r.push(bi(a)+": "+a8(a,n)+";"))}}function Ar(e,r,a,n,s=[]){if(Y0(e))return s;const i=typeof e;if(i==="string")return s.push(e),s;if(i==="function"){if(wi(e))return process.env.NODE_ENV!=="production"&&yi(e),s;if(K0(e)&&r){const h=e(r);return process.env.NODE_ENV==="production"||typeof h!="object"||Array.isArray(h)||as(h)||Tr(h)||h===null||console.error(`${ks(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,n,s)}return s.push(e),s}if(Array.isArray(e)){for(let h=0;h<e.length;h++)Ar(e[h],r,a,n,s);return s}return B0(e)?(s.push(`.${e.styledComponentId}`),s):as(e)?(a?(e.inject(a,n),s.push(e.getName(n))):s.push(e),s):wi(e)?(process.env.NODE_ENV!=="production"&&yi(e),s):Tr(e)?(Q0(e,s),s):(s.push(e.toString()),s)}const o8=H0(Rn);class s8{constructor(r,a,n){this.rules=r,this.componentId=a,this.baseHash=Er(o8,a),this.baseStyle=n,Tn.registerId(a)}generateAndInjectStyles(r,a,n){let s=this.baseStyle?this.baseStyle.generateAndInjectStyles(r,a,n):"";{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(K0(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)||as(u)||Tr(u)||console.error(`${ks(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+=es(Ar(u,r,a,n)))}else i+=es(Ar(d,r,a,n))}if(i){this.dynamicNameCache||(this.dynamicNameCache=new Map);const h=n.hash?n.hash+i:i;let d=this.dynamicNameCache.get(h);if(!d){if(d=_s(Er(Er(this.baseHash,n.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=n(i,"."+d,void 0,this.componentId);a.insertRules(this.componentId,d,u)}s=ba(s,d)}}return s}}const i8=/&/g;function J0(e,r){let a=0;for(;--r>=0&&e.charCodeAt(r)===92;)a++;return!(1&~a)}function ro(e){const r=e.length;let a="",n=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||J0(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,n=p;continue}s===0&&(a+=e.substring(n,u+1),n=u+1)}else f===59&&s===0&&(a+=e.substring(n,u+1),n=u+1)}else i===0?i=f:i===f&&(i=0);else h=!0,u++}return d||s!==0||i!==0?(n<r&&s===0&&i===0&&(a+=e.substring(n)),a):e}function X0(e,r){const a=r+" ",n=","+a;for(let s=0;s<e.length;s++){const i=e[s];if(i.type==="rule"){i.value=(a+i.value).replaceAll(",",n);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"&&X0(i.children,r)}return e}function c8({options:e=Xr,plugins:r=js}=Xr){let a,n,s;const i=(g,v,b)=>b.startsWith(n)&&b.endsWith(n)&&b.replaceAll(n,"").length>0?`.${a}`:g,h=r.slice();h.push(g=>{g.type===zn&&g.value.includes("&")&&(s||(s=new RegExp(`\\${n}\\b`,"g")),g.props[0]=g.props[0].replace(i8,n).replace(s,i))}),e.prefix&&h.push(Ch),h.push(jh);let d=[];const u=_h(h.concat(kh(g=>d.push(g)))),f=(g,v="",b="",x="&")=>{a=x,n=v,s=void 0;const w=(function(j){const S=j.indexOf("//")!==-1,C=j.indexOf("}")!==-1;if(!S&&!C)return j;if(!S)return ro(j);const _=j.length;let k="",y=0,M=0,z=0,O=0,I=0,P=!1;for(;M<_;){const T=j.charCodeAt(M);if(T!==34&&T!==39||J0(j,M))if(z===0)if(T===Cr&&M+1<_&&j.charCodeAt(M+1)===42){for(M+=2;M+1<_&&(j.charCodeAt(M)!==42||j.charCodeAt(M+1)!==Cr);)M++;M+=2}else if(T!==40)if(T!==41)if(O>0)M++;else if(T===42&&M+1<_&&j.charCodeAt(M+1)===Cr)k+=j.substring(y,M),M+=2,y=M,P=!0;else if(T===Cr&&M+1<_&&j.charCodeAt(M+1)===Cr){for(k+=j.substring(y,M);M<_&&j.charCodeAt(M)!==10;)M++;y=M,P=!0}else T===123?I++:T===125&&I--,M++;else O>0&&O--,M++;else O++,M++;else M++;else z===0?z=T:z===T&&(z=0),M++}return P?(y<_&&(k+=j.substring(y)),I===0?k:ro(k)):I===0?j:ro(j)})(g);let A=wh(b||v?b+" "+v+" { "+w+" }":w);return e.namespace&&(A=X0(A,e.namespace)),d=[],wn(A,u),d},p=e;let m=Xo;for(let g=0;g<r.length;g++)r[g].name||aa(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!==Xo?m.toString():"",f}const l8=new Tn,ns=c8(),ed=c.createContext({shouldForwardProp:void 0,styleSheet:l8,stylis:ns,stylisPlugins:void 0});ed.Consumer;function d8(){return c.useContext(ed)}const td=c.createContext(void 0);td.Consumer;const ji=Object.prototype.hasOwnProperty,ao={};function u8(e,r){const a=typeof e!="string"?"sc":O0(e);ao[a]=(ao[a]||0)+1;const n=a+"-"+V0(Rn+a+ao[a]);return r?r+"-"+n:n}let no;function p8(e,r,a){const n=B0(e),s=e,i=!vn(e),{attrs:h=js,componentId:d=u8(r.displayName,r.parentComponentId),displayName:u=Fh(e)}=r,f=r.displayName&&r.componentId?O0(r.displayName)+"-"+r.componentId:r.componentId||d,p=n&&s.attrs?s.attrs.concat(h).filter(Boolean):h;let{shouldForwardProp:m}=r;if(n&&s.shouldForwardProp){const x=s.shouldForwardProp;if(r.shouldForwardProp){const w=r.shouldForwardProp;m=(A,j)=>x(A,j)&&w(A,j)}else m=x}const g=new s8(a,f,n?s.componentStyle:void 0);function v(x,w){return(function(A,j,S){const{attrs:C,componentStyle:_,defaultProps:k,foldedComponentIds:y,styledComponentId:M,target:z}=A,O=c.useContext(td),I=d8(),P=A.shouldForwardProp||I.shouldForwardProp;process.env.NODE_ENV!=="production"&&c.useDebugValue&&c.useDebugValue(M);const T=Lh(j,O,k)||Xr;let $,E;{const Z=c.useRef(null),R=Z.current;if(R!==null&&R[1]===T&&R[2]===I.styleSheet&&R[3]===I.stylis&&R[7]===_&&(function(W,D,B){const Y=W,X=D;let ce=0;for(const me in X)if(ji.call(X,me)&&(ce++,Y[me]!==X[me]))return!1;return ce===B})(R[0],j,R[4]))$=R[5],E=R[6];else{$=(function(D,B,Y){const X=Object.assign(Object.assign({},B),{className:void 0,theme:Y}),ce=D.length>1;for(let me=0;me<D.length;me++){const te=D[me],xe=Pn(te)?te(ce?Object.assign({},X):X):te;for(const re in xe)re==="className"?X.className=ba(X.className,xe[re]):re==="style"?X.style=Object.assign(Object.assign({},X.style),xe[re]):re in B&&B[re]===void 0||(X[re]=xe[re])}return"className"in B&&typeof B.className=="string"&&(X.className=ba(X.className,B.className)),X})(C,j,T),E=(function(D,B,Y,X){const ce=D.generateAndInjectStyles(B,Y,X);return process.env.NODE_ENV!=="production"&&c.useDebugValue&&c.useDebugValue(ce),ce})(_,$,I.styleSheet,I.stylis);let W=0;for(const D in j)ji.call(j,D)&&W++;Z.current=[j,T,I.styleSheet,I.stylis,W,$,E,_]}}process.env.NODE_ENV!=="production"&&A.warnTooManyClasses&&A.warnTooManyClasses(E);const F=$.as||z,L=(function(Z,R,W,D){const B={};for(const Y in Z)Z[Y]===void 0||Y[0]==="$"||Y==="as"||Y==="theme"&&Z.theme===W||(Y==="forwardedAs"?B.as=Z.forwardedAs:D&&!D(Y,R)||(B[Y]=Z[Y],D||process.env.NODE_ENV!=="development"||sh(Y)||(no||(no=new Set)).has(Y)||!vn(R)||R.includes("-")||(no.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 B})($,F,T,P);let H=ba(y,M);return E&&(H+=" "+E),$.className&&(H+=" "+$.className),L[vn(F)&&F.includes("-")?"class":"className"]=H,S&&(L.ref=S),c.createElement(F,L)})(b,x,w)}v.displayName=u;let b=c.forwardRef(v);return b.attrs=p,b.componentStyle=g,b.displayName=u,b.shouldForwardProp=m,b.foldedComponentIds=n?ba(s.foldedComponentIds,s.styledComponentId):"",b.styledComponentId=f,b.target=n?s.target:e,Object.defineProperty(b,"defaultProps",{get(){return this._foldedDefaultProps},set(x){this._foldedDefaultProps=n?(function(w,...A){for(const j of A)ts(w,j,!0);return w})({},s.defaultProps,x):x}}),process.env.NODE_ENV!=="production"&&(Mh(u,f),b.warnTooManyClasses=((x,w)=>{let A={},j=!1;return S=>{!j&&(A[S]=!0,Object.keys(A).length>=200)&&(console.warn(`Over 200 classes were generated for component ${x}${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,A={})}})(u,f)),Cs(b,()=>`.${b.styledComponentId}`),i&&U0(b,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),b}var h8=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 _i(e,r){const a=[e[0]];for(let n=0,s=r.length;n<s;n+=1)a.push(r[n],e[n+1]);return a}const ki=e=>(G0.add(e),e);function qt(e,...r){if(Pn(e)||Tr(e))return ki(Ar(_i(js,[e,...r])));const a=e;return r.length===0&&a.length===1&&typeof a[0]=="string"?Ar(a):ki(Ar(_i(a,r)))}function os(e,r,a=Xr){if(!r)throw aa(1,r);const n=(s,...i)=>e(r,a,qt(s,...i));return n.attrs=s=>os(e,r,Object.assign(Object.assign({},a),{attrs:Array.prototype.concat(a.attrs,s).filter(Boolean)})),n.withConfig=s=>os(e,r,Object.assign(Object.assign({},a),s)),n}const rd=e=>os(p8,e),l=rd;h8.forEach(e=>{l[e]=rd(e)});var ad;class f8{constructor(r,a){this[ad]=!0,this.inject=(n,s=ns)=>{const i=this.getName(s);if(!n.hasNameForId(this.id,i)){const h=s(this.rules,i,"@keyframes");n.insertRules(this.id,i,h)}},this.name=r,this.id=
|
|
95
|
+
<Component />`),j=!0,A={})}})(u,f)),Cs(b,()=>`.${b.styledComponentId}`),i&&U0(b,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),b}var h8=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 _i(e,r){const a=[e[0]];for(let n=0,s=r.length;n<s;n+=1)a.push(r[n],e[n+1]);return a}const ki=e=>(G0.add(e),e);function qt(e,...r){if(Pn(e)||Tr(e))return ki(Ar(_i(js,[e,...r])));const a=e;return r.length===0&&a.length===1&&typeof a[0]=="string"?Ar(a):ki(Ar(_i(a,r)))}function os(e,r,a=Xr){if(!r)throw aa(1,r);const n=(s,...i)=>e(r,a,qt(s,...i));return n.attrs=s=>os(e,r,Object.assign(Object.assign({},a),{attrs:Array.prototype.concat(a.attrs,s).filter(Boolean)})),n.withConfig=s=>os(e,r,Object.assign(Object.assign({},a),s)),n}const rd=e=>os(p8,e),l=rd;h8.forEach(e=>{l[e]=rd(e)});var ad;class f8{constructor(r,a){this[ad]=!0,this.inject=(n,s=ns)=>{const i=this.getName(s);if(!n.hasNameForId(this.id,i)){const h=s(this.rules,i,"@keyframes");n.insertRules(this.id,i,h)}},this.name=r,this.id=Z0+r,this.rules=a,xa(this.id),Cs(this,()=>{throw aa(12,String(this.name))})}getName(r=ns){return r.hash?this.name+_s(+r.hash>>>0):this.name}}function mt(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=es(qt(e,...r)),n=V0(a);return new f8(n,a)}ad=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 Ha=`__sc-${Pr}__`;process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&typeof window<"u"&&(window[Ha]||(window[Ha]=0),window[Ha]===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[Ha]+=1);const m8=new Map([["bold",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.createElement("path",{d:"M216,96v96a8,8,0,0,1-8,8H48a8,8,0,0,1-8-8V96Z",opacity:"0.2"}),o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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"}))]]),g8=new Map([["bold",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.createElement("path",{d:"M216,128a88,88,0,1,1-88-88A88,88,0,0,1,216,128Z",opacity:"0.2"}),o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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"}))]]),v8=new Map([["bold",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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"}),o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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"}))]]),x8=new Map([["bold",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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"}),o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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"}))]]),b8=new Map([["bold",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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"}),o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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"}))]]),w8=new Map([["bold",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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"}),o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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"}))]]),y8=new Map([["bold",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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"}),o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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"}))]]),j8=new Map([["bold",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.createElement("path",{d:"M208,96l-80,80L48,96Z",opacity:"0.2"}),o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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"}))]]),_8=new Map([["bold",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.createElement("path",{d:"M160,48V208L80,128Z",opacity:"0.2"}),o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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"}))]]),k8=new Map([["bold",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.createElement("path",{d:"M176,128,96,208V48Z",opacity:"0.2"}),o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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"}))]]),C8=new Map([["bold",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.createElement("path",{d:"M208,160H48l80-80Z",opacity:"0.2"}),o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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"}))]]),S8=new Map([["bold",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.createElement("path",{d:"M80,176h96l-48,48ZM128,32,80,80h96Z",opacity:"0.2"}),o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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"}))]]),E8=new Map([["bold",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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"}),o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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"}))]]),A8=new Map([["bold",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.createElement("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"}),o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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"}))]]),z8=new Map([["bold",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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"}),o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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"}))]]),$8=new Map([["bold",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.createElement("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"}),o.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",o.createElement(o.Fragment,null,o.createElement("path",{d:"M232,128A104,104,0,1,1,128,24,104.13,104.13,0,0,1,232,128Z"}))],["light",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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"}))]]),M8=new Map([["bold",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.createElement("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"}),o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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"}))]]),L8=new Map([["bold",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.createElement("path",{d:"M216,40V168H168V88H88V40Z",opacity:"0.2"}),o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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"}))]]),R8=new Map([["bold",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.createElement("path",{d:"M192,56V200H64V56Z",opacity:"0.2"}),o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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"}))]]),P8=new Map([["bold",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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"}),o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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"}))]]),T8=new Map([["bold",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.createElement("path",{d:"M216,48V208H40V48A16,16,0,0,1,56,32H200A16,16,0,0,1,216,48Z",opacity:"0.2"}),o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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"}))]]),F8=new Map([["bold",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.createElement("path",{d:"M224,56l-96,88L32,56Z",opacity:"0.2"}),o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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"}))]]),Z8=new Map([["bold",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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"}),o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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"}))]]),I8=new Map([["bold",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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"}),o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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"}))]]),O8=new Map([["bold",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.createElement("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"}),o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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"}))]]),H8=new Map([["bold",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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"}),o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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"}))]]),V8=new Map([["bold",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.createElement("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"}),o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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"}))]]),D8=new Map([["bold",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.createElement("path",{d:"M165.82,96l-11.64,64h-64l11.64-64Z",opacity:"0.2"}),o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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"}))]]),N8=new Map([["bold",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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"}),o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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"}))]]),U8=new Map([["bold",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.createElement("path",{d:"M96,240l16-80L48,136,160,16,144,96l64,24Z",opacity:"0.2"}),o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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"}))]]),B8=new Map([["bold",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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"}),o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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"}))]]),W8=new Map([["bold",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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"}),o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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"}))]]),G8=new Map([["bold",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.createElement("path",{d:"M192,112a80,80,0,1,1-80-80A80,80,0,0,1,192,112Z",opacity:"0.2"}),o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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"}))]]),q8=new Map([["bold",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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"}),o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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"}))]]),K8=new Map([["bold",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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"}),o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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"}))]]),Y8=new Map([["bold",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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"}),o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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"}))]]),Q8=new Map([["bold",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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"}),o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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"}))]]),J8=new Map([["bold",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.createElement("path",{d:"M96,40l33.52,88H56Zm104,88H129.52L160,208Z",opacity:"0.2"}),o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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"}))]]),X8=new Map([["bold",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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"}),o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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"}))]]),ef=new Map([["bold",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.createElement("path",{d:"M224,56V200a16,16,0,0,1-16,16H48V40H208A16,16,0,0,1,224,56Z",opacity:"0.2"}),o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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"}))]]),tf=new Map([["bold",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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"}),o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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"}))]]),rf=new Map([["bold",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.createElement("path",{d:"M200,56V208a8,8,0,0,1-8,8H64a8,8,0,0,1-8-8V56Z",opacity:"0.2"}),o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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"}))]]),af=new Map([["bold",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.createElement("path",{d:"M192,96a64,64,0,1,1-64-64A64,64,0,0,1,192,96Z",opacity:"0.2"}),o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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"}))]]),nf=new Map([["bold",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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"}),o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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"}))]]),of=new Map([["bold",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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"}),o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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"}))]]),sf=new Map([["bold",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.createElement("path",{d:"M136,108A52,52,0,1,1,84,56,52,52,0,0,1,136,108Z",opacity:"0.2"}),o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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"}))]]),cf=new Map([["bold",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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"}),o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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"}))]]),lf=new Map([["bold",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.createElement("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"}),o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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"}))]]),df=new Map([["bold",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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"}),o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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"}))]]),uf=c.createContext({color:"currentColor",size:"1em",weight:"regular",mirrored:!1}),we=o.forwardRef((e,r)=>{const{alt:a,color:n,size:s,weight:i,mirrored:h,children:d,weights:u,...f}=e,{color:p="currentColor",size:m,weight:g="regular",mirrored:v=!1,...b}=o.useContext(uf);return o.createElement("svg",{ref:r,xmlns:"http://www.w3.org/2000/svg",width:s??m,height:s??m,fill:n??p,viewBox:"0 0 256 256",transform:h||v?"scale(-1, 1)":void 0,...b,...f},!!a&&o.createElement("title",null,a),d,u.get(i??g))});we.displayName="IconBase";const nd=o.forwardRef((e,r)=>o.createElement(we,{ref:r,...e,weights:m8}));nd.displayName="ArchiveIcon";const od=nd,sd=o.forwardRef((e,r)=>o.createElement(we,{ref:r,...e,weights:g8}));sd.displayName="ArrowCounterClockwiseIcon";const pf=sd,id=o.forwardRef((e,r)=>o.createElement(we,{ref:r,...e,weights:v8}));id.displayName="ArrowSquareOutIcon";const hf=id,cd=o.forwardRef((e,r)=>o.createElement(we,{ref:r,...e,weights:x8}));cd.displayName="BellIcon";const ff=cd,ld=o.forwardRef((e,r)=>o.createElement(we,{ref:r,...e,weights:b8}));ld.displayName="BellSlashIcon";const Ci=ld,dd=o.forwardRef((e,r)=>o.createElement(we,{ref:r,...e,weights:w8}));dd.displayName="BuildingsIcon";const ud=dd,pd=o.forwardRef((e,r)=>o.createElement(we,{ref:r,...e,weights:y8}));pd.displayName="CameraIcon";const Ss=pd,hd=o.forwardRef((e,r)=>o.createElement(we,{ref:r,...e,weights:j8}));hd.displayName="CaretDownIcon";const lr=hd,fd=o.forwardRef((e,r)=>o.createElement(we,{ref:r,...e,weights:_8}));fd.displayName="CaretLeftIcon";const na=fd,md=o.forwardRef((e,r)=>o.createElement(we,{ref:r,...e,weights:k8}));md.displayName="CaretRightIcon";const Sa=md,gd=o.forwardRef((e,r)=>o.createElement(we,{ref:r,...e,weights:C8}));gd.displayName="CaretUpIcon";const vd=gd,xd=o.forwardRef((e,r)=>o.createElement(we,{ref:r,...e,weights:S8}));xd.displayName="CaretUpDownIcon";const mf=xd,bd=o.forwardRef((e,r)=>o.createElement(we,{ref:r,...e,weights:E8}));bd.displayName="CheckIcon";const ct=bd,wd=o.forwardRef((e,r)=>o.createElement(we,{ref:r,...e,weights:A8}));wd.displayName="CheckCircleIcon";const gf=wd,yd=o.forwardRef((e,r)=>o.createElement(we,{ref:r,...e,weights:z8}));yd.displayName="ChecksIcon";const vf=yd,jd=o.forwardRef((e,r)=>o.createElement(we,{ref:r,...e,weights:$8}));jd.displayName="CircleIcon";const xf=jd,_d=o.forwardRef((e,r)=>o.createElement(we,{ref:r,...e,weights:M8}));_d.displayName="CircleNotchIcon";const wt=_d,kd=o.forwardRef((e,r)=>o.createElement(we,{ref:r,...e,weights:L8}));kd.displayName="CopyIcon";const Qr=kd,Cd=o.forwardRef((e,r)=>o.createElement(we,{ref:r,...e,weights:R8}));Cd.displayName="DeviceMobileIcon";const Es=Cd,Sd=o.forwardRef((e,r)=>o.createElement(we,{ref:r,...e,weights:P8}));Sd.displayName="DotsThreeIcon";const bf=Sd,Ed=o.forwardRef((e,r)=>o.createElement(we,{ref:r,...e,weights:T8}));Ed.displayName="DownloadSimpleIcon";const Ad=Ed,zd=o.forwardRef((e,r)=>o.createElement(we,{ref:r,...e,weights:F8}));zd.displayName="EnvelopeSimpleIcon";const Fn=zd,$d=o.forwardRef((e,r)=>o.createElement(we,{ref:r,...e,weights:Z8}));$d.displayName="EyeIcon";const oo=$d,Md=o.forwardRef((e,r)=>o.createElement(we,{ref:r,...e,weights:I8}));Md.displayName="EyeSlashIcon";const so=Md,Ld=o.forwardRef((e,r)=>o.createElement(we,{ref:r,...e,weights:O8}));Ld.displayName="FingerprintIcon";const ss=Ld,Rd=o.forwardRef((e,r)=>o.createElement(we,{ref:r,...e,weights:H8}));Rd.displayName="GearSixIcon";const zr=Rd,Pd=o.forwardRef((e,r)=>o.createElement(we,{ref:r,...e,weights:V8}));Pd.displayName="GlobeIcon";const wf=Pd,Td=o.forwardRef((e,r)=>o.createElement(we,{ref:r,...e,weights:D8}));Td.displayName="HashIcon";const Fd=Td,Zd=o.forwardRef((e,r)=>o.createElement(we,{ref:r,...e,weights:N8}));Zd.displayName="KeyIcon";const yf=Zd,Id=o.forwardRef((e,r)=>o.createElement(we,{ref:r,...e,weights:U8}));Id.displayName="LightningIcon";const jf=Id,Od=o.forwardRef((e,r)=>o.createElement(we,{ref:r,...e,weights:B8}));Od.displayName="LinkIcon";const _f=Od,Hd=o.forwardRef((e,r)=>o.createElement(we,{ref:r,...e,weights:W8}));Hd.displayName="LockIcon";const kf=Hd,Vd=o.forwardRef((e,r)=>o.createElement(we,{ref:r,...e,weights:G8}));Vd.displayName="MagnifyingGlassIcon";const Cf=Vd,Dd=o.forwardRef((e,r)=>o.createElement(we,{ref:r,...e,weights:q8}));Dd.displayName="PaperPlaneTiltIcon";const Nd=Dd,Ud=o.forwardRef((e,r)=>o.createElement(we,{ref:r,...e,weights:K8}));Ud.displayName="PencilSimpleIcon";const is=Ud,Bd=o.forwardRef((e,r)=>o.createElement(we,{ref:r,...e,weights:Y8}));Bd.displayName="PhoneIcon";const Sf=Bd,Wd=o.forwardRef((e,r)=>o.createElement(we,{ref:r,...e,weights:Q8}));Wd.displayName="PlusIcon";const jt=Wd,Gd=o.forwardRef((e,r)=>o.createElement(we,{ref:r,...e,weights:J8}));Gd.displayName="PulseIcon";const Ef=Gd,qd=o.forwardRef((e,r)=>o.createElement(we,{ref:r,...e,weights:X8}));qd.displayName="ShieldIcon";const Rt=qd,Kd=o.forwardRef((e,r)=>o.createElement(we,{ref:r,...e,weights:ef}));Kd.displayName="SignOutIcon";const $r=Kd,Yd=o.forwardRef((e,r)=>o.createElement(we,{ref:r,...e,weights:tf}));Yd.displayName="StarIcon";const Af=Yd,Qd=o.forwardRef((e,r)=>o.createElement(we,{ref:r,...e,weights:rf}));Qd.displayName="TrashIcon";const As=Qd,Jd=o.forwardRef((e,r)=>o.createElement(we,{ref:r,...e,weights:af}));Jd.displayName="UserIcon";const Ea=Jd,Xd=o.forwardRef((e,r)=>o.createElement(we,{ref:r,...e,weights:nf}));Xd.displayName="UserCircleIcon";const zf=Xd,e1=o.forwardRef((e,r)=>o.createElement(we,{ref:r,...e,weights:of}));e1.displayName="UserCirclePlusIcon";const $f=e1,t1=o.forwardRef((e,r)=>o.createElement(we,{ref:r,...e,weights:sf}));t1.displayName="UsersIcon";const jn=t1,r1=o.forwardRef((e,r)=>o.createElement(we,{ref:r,...e,weights:cf}));r1.displayName="WarningIcon";const oa=r1,a1=o.forwardRef((e,r)=>o.createElement(we,{ref:r,...e,weights:lf}));a1.displayName="WarningCircleIcon";const Mr=a1,n1=o.forwardRef((e,r)=>o.createElement(we,{ref:r,...e,weights:df}));n1.displayName="XIcon";const zs=n1,Mf=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[Ha]+=1);const m8=new Map([["bold",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.createElement("path",{d:"M216,96v96a8,8,0,0,1-8,8H48a8,8,0,0,1-8-8V96Z",opacity:"0.2"}),o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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"}))]]),g8=new Map([["bold",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.createElement("path",{d:"M216,128a88,88,0,1,1-88-88A88,88,0,0,1,216,128Z",opacity:"0.2"}),o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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"}))]]),v8=new Map([["bold",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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"}),o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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"}))]]),x8=new Map([["bold",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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"}),o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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"}))]]),b8=new Map([["bold",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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"}),o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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"}))]]),w8=new Map([["bold",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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"}),o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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"}))]]),y8=new Map([["bold",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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"}),o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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"}))]]),j8=new Map([["bold",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.createElement("path",{d:"M208,96l-80,80L48,96Z",opacity:"0.2"}),o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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"}))]]),_8=new Map([["bold",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.createElement("path",{d:"M160,48V208L80,128Z",opacity:"0.2"}),o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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"}))]]),k8=new Map([["bold",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.createElement("path",{d:"M176,128,96,208V48Z",opacity:"0.2"}),o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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"}))]]),C8=new Map([["bold",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.createElement("path",{d:"M208,160H48l80-80Z",opacity:"0.2"}),o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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"}))]]),S8=new Map([["bold",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.createElement("path",{d:"M80,176h96l-48,48ZM128,32,80,80h96Z",opacity:"0.2"}),o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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"}))]]),E8=new Map([["bold",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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"}),o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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"}))]]),A8=new Map([["bold",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.createElement("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"}),o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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"}))]]),z8=new Map([["bold",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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"}),o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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"}))]]),$8=new Map([["bold",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.createElement("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"}),o.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",o.createElement(o.Fragment,null,o.createElement("path",{d:"M232,128A104,104,0,1,1,128,24,104.13,104.13,0,0,1,232,128Z"}))],["light",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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"}))]]),M8=new Map([["bold",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.createElement("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"}),o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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"}))]]),L8=new Map([["bold",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.createElement("path",{d:"M216,40V168H168V88H88V40Z",opacity:"0.2"}),o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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"}))]]),R8=new Map([["bold",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.createElement("path",{d:"M192,56V200H64V56Z",opacity:"0.2"}),o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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"}))]]),P8=new Map([["bold",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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"}),o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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"}))]]),T8=new Map([["bold",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.createElement("path",{d:"M216,48V208H40V48A16,16,0,0,1,56,32H200A16,16,0,0,1,216,48Z",opacity:"0.2"}),o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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"}))]]),F8=new Map([["bold",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.createElement("path",{d:"M224,56l-96,88L32,56Z",opacity:"0.2"}),o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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"}))]]),I8=new Map([["bold",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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"}),o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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"}))]]),Z8=new Map([["bold",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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"}),o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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"}))]]),O8=new Map([["bold",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.createElement("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"}),o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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"}))]]),H8=new Map([["bold",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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"}),o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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"}))]]),V8=new Map([["bold",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.createElement("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"}),o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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"}))]]),D8=new Map([["bold",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.createElement("path",{d:"M165.82,96l-11.64,64h-64l11.64-64Z",opacity:"0.2"}),o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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"}))]]),N8=new Map([["bold",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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"}),o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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"}))]]),U8=new Map([["bold",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.createElement("path",{d:"M96,240l16-80L48,136,160,16,144,96l64,24Z",opacity:"0.2"}),o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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"}))]]),B8=new Map([["bold",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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"}),o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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"}))]]),W8=new Map([["bold",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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"}),o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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"}))]]),G8=new Map([["bold",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.createElement("path",{d:"M192,112a80,80,0,1,1-80-80A80,80,0,0,1,192,112Z",opacity:"0.2"}),o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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"}))]]),q8=new Map([["bold",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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"}),o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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"}))]]),K8=new Map([["bold",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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"}),o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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"}))]]),Y8=new Map([["bold",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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"}),o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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"}))]]),Q8=new Map([["bold",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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"}),o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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"}))]]),J8=new Map([["bold",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.createElement("path",{d:"M96,40l33.52,88H56Zm104,88H129.52L160,208Z",opacity:"0.2"}),o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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"}))]]),X8=new Map([["bold",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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"}),o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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"}))]]),ef=new Map([["bold",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.createElement("path",{d:"M224,56V200a16,16,0,0,1-16,16H48V40H208A16,16,0,0,1,224,56Z",opacity:"0.2"}),o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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"}))]]),tf=new Map([["bold",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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"}),o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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"}))]]),rf=new Map([["bold",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.createElement("path",{d:"M200,56V208a8,8,0,0,1-8,8H64a8,8,0,0,1-8-8V56Z",opacity:"0.2"}),o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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"}))]]),af=new Map([["bold",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.createElement("path",{d:"M192,96a64,64,0,1,1-64-64A64,64,0,0,1,192,96Z",opacity:"0.2"}),o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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"}))]]),nf=new Map([["bold",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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"}),o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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"}))]]),of=new Map([["bold",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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"}),o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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"}))]]),sf=new Map([["bold",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.createElement("path",{d:"M136,108A52,52,0,1,1,84,56,52,52,0,0,1,136,108Z",opacity:"0.2"}),o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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"}))]]),cf=new Map([["bold",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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"}),o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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"}))]]),lf=new Map([["bold",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.createElement("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"}),o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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"}))]]),df=new Map([["bold",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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"}),o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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",o.createElement(o.Fragment,null,o.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"}))]]),uf=c.createContext({color:"currentColor",size:"1em",weight:"regular",mirrored:!1}),we=o.forwardRef((e,r)=>{const{alt:a,color:n,size:s,weight:i,mirrored:h,children:d,weights:u,...f}=e,{color:p="currentColor",size:m,weight:g="regular",mirrored:v=!1,...b}=o.useContext(uf);return o.createElement("svg",{ref:r,xmlns:"http://www.w3.org/2000/svg",width:s??m,height:s??m,fill:n??p,viewBox:"0 0 256 256",transform:h||v?"scale(-1, 1)":void 0,...b,...f},!!a&&o.createElement("title",null,a),d,u.get(i??g))});we.displayName="IconBase";const nd=o.forwardRef((e,r)=>o.createElement(we,{ref:r,...e,weights:m8}));nd.displayName="ArchiveIcon";const od=nd,sd=o.forwardRef((e,r)=>o.createElement(we,{ref:r,...e,weights:g8}));sd.displayName="ArrowCounterClockwiseIcon";const pf=sd,id=o.forwardRef((e,r)=>o.createElement(we,{ref:r,...e,weights:v8}));id.displayName="ArrowSquareOutIcon";const hf=id,cd=o.forwardRef((e,r)=>o.createElement(we,{ref:r,...e,weights:x8}));cd.displayName="BellIcon";const ff=cd,ld=o.forwardRef((e,r)=>o.createElement(we,{ref:r,...e,weights:b8}));ld.displayName="BellSlashIcon";const Ci=ld,dd=o.forwardRef((e,r)=>o.createElement(we,{ref:r,...e,weights:w8}));dd.displayName="BuildingsIcon";const ud=dd,pd=o.forwardRef((e,r)=>o.createElement(we,{ref:r,...e,weights:y8}));pd.displayName="CameraIcon";const Ss=pd,hd=o.forwardRef((e,r)=>o.createElement(we,{ref:r,...e,weights:j8}));hd.displayName="CaretDownIcon";const lr=hd,fd=o.forwardRef((e,r)=>o.createElement(we,{ref:r,...e,weights:_8}));fd.displayName="CaretLeftIcon";const na=fd,md=o.forwardRef((e,r)=>o.createElement(we,{ref:r,...e,weights:k8}));md.displayName="CaretRightIcon";const Sa=md,gd=o.forwardRef((e,r)=>o.createElement(we,{ref:r,...e,weights:C8}));gd.displayName="CaretUpIcon";const vd=gd,xd=o.forwardRef((e,r)=>o.createElement(we,{ref:r,...e,weights:S8}));xd.displayName="CaretUpDownIcon";const mf=xd,bd=o.forwardRef((e,r)=>o.createElement(we,{ref:r,...e,weights:E8}));bd.displayName="CheckIcon";const ct=bd,wd=o.forwardRef((e,r)=>o.createElement(we,{ref:r,...e,weights:A8}));wd.displayName="CheckCircleIcon";const gf=wd,yd=o.forwardRef((e,r)=>o.createElement(we,{ref:r,...e,weights:z8}));yd.displayName="ChecksIcon";const vf=yd,jd=o.forwardRef((e,r)=>o.createElement(we,{ref:r,...e,weights:$8}));jd.displayName="CircleIcon";const xf=jd,_d=o.forwardRef((e,r)=>o.createElement(we,{ref:r,...e,weights:M8}));_d.displayName="CircleNotchIcon";const wt=_d,kd=o.forwardRef((e,r)=>o.createElement(we,{ref:r,...e,weights:L8}));kd.displayName="CopyIcon";const Qr=kd,Cd=o.forwardRef((e,r)=>o.createElement(we,{ref:r,...e,weights:R8}));Cd.displayName="DeviceMobileIcon";const Es=Cd,Sd=o.forwardRef((e,r)=>o.createElement(we,{ref:r,...e,weights:P8}));Sd.displayName="DotsThreeIcon";const bf=Sd,Ed=o.forwardRef((e,r)=>o.createElement(we,{ref:r,...e,weights:T8}));Ed.displayName="DownloadSimpleIcon";const Ad=Ed,zd=o.forwardRef((e,r)=>o.createElement(we,{ref:r,...e,weights:F8}));zd.displayName="EnvelopeSimpleIcon";const Fn=zd,$d=o.forwardRef((e,r)=>o.createElement(we,{ref:r,...e,weights:I8}));$d.displayName="EyeIcon";const oo=$d,Md=o.forwardRef((e,r)=>o.createElement(we,{ref:r,...e,weights:Z8}));Md.displayName="EyeSlashIcon";const so=Md,Ld=o.forwardRef((e,r)=>o.createElement(we,{ref:r,...e,weights:O8}));Ld.displayName="FingerprintIcon";const ss=Ld,Rd=o.forwardRef((e,r)=>o.createElement(we,{ref:r,...e,weights:H8}));Rd.displayName="GearSixIcon";const zr=Rd,Pd=o.forwardRef((e,r)=>o.createElement(we,{ref:r,...e,weights:V8}));Pd.displayName="GlobeIcon";const wf=Pd,Td=o.forwardRef((e,r)=>o.createElement(we,{ref:r,...e,weights:D8}));Td.displayName="HashIcon";const Fd=Td,Id=o.forwardRef((e,r)=>o.createElement(we,{ref:r,...e,weights:N8}));Id.displayName="KeyIcon";const yf=Id,Zd=o.forwardRef((e,r)=>o.createElement(we,{ref:r,...e,weights:U8}));Zd.displayName="LightningIcon";const jf=Zd,Od=o.forwardRef((e,r)=>o.createElement(we,{ref:r,...e,weights:B8}));Od.displayName="LinkIcon";const _f=Od,Hd=o.forwardRef((e,r)=>o.createElement(we,{ref:r,...e,weights:W8}));Hd.displayName="LockIcon";const kf=Hd,Vd=o.forwardRef((e,r)=>o.createElement(we,{ref:r,...e,weights:G8}));Vd.displayName="MagnifyingGlassIcon";const Cf=Vd,Dd=o.forwardRef((e,r)=>o.createElement(we,{ref:r,...e,weights:q8}));Dd.displayName="PaperPlaneTiltIcon";const Nd=Dd,Ud=o.forwardRef((e,r)=>o.createElement(we,{ref:r,...e,weights:K8}));Ud.displayName="PencilSimpleIcon";const is=Ud,Bd=o.forwardRef((e,r)=>o.createElement(we,{ref:r,...e,weights:Y8}));Bd.displayName="PhoneIcon";const Sf=Bd,Wd=o.forwardRef((e,r)=>o.createElement(we,{ref:r,...e,weights:Q8}));Wd.displayName="PlusIcon";const jt=Wd,Gd=o.forwardRef((e,r)=>o.createElement(we,{ref:r,...e,weights:J8}));Gd.displayName="PulseIcon";const Ef=Gd,qd=o.forwardRef((e,r)=>o.createElement(we,{ref:r,...e,weights:X8}));qd.displayName="ShieldIcon";const Rt=qd,Kd=o.forwardRef((e,r)=>o.createElement(we,{ref:r,...e,weights:ef}));Kd.displayName="SignOutIcon";const $r=Kd,Yd=o.forwardRef((e,r)=>o.createElement(we,{ref:r,...e,weights:tf}));Yd.displayName="StarIcon";const Af=Yd,Qd=o.forwardRef((e,r)=>o.createElement(we,{ref:r,...e,weights:rf}));Qd.displayName="TrashIcon";const As=Qd,Jd=o.forwardRef((e,r)=>o.createElement(we,{ref:r,...e,weights:af}));Jd.displayName="UserIcon";const Ea=Jd,Xd=o.forwardRef((e,r)=>o.createElement(we,{ref:r,...e,weights:nf}));Xd.displayName="UserCircleIcon";const zf=Xd,e1=o.forwardRef((e,r)=>o.createElement(we,{ref:r,...e,weights:of}));e1.displayName="UserCirclePlusIcon";const $f=e1,t1=o.forwardRef((e,r)=>o.createElement(we,{ref:r,...e,weights:sf}));t1.displayName="UsersIcon";const jn=t1,r1=o.forwardRef((e,r)=>o.createElement(we,{ref:r,...e,weights:cf}));r1.displayName="WarningIcon";const oa=r1,a1=o.forwardRef((e,r)=>o.createElement(we,{ref:r,...e,weights:lf}));a1.displayName="WarningCircleIcon";const Mr=a1,n1=o.forwardRef((e,r)=>o.createElement(we,{ref:r,...e,weights:df}));n1.displayName="XIcon";const zs=n1,Mf=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 Lf(e){return e?/^(#([\da-f]{3,8})|rgba?\([^)]*\)|hsla?\([^)]*\)|oklch\([^)]*\)|oklab\([^)]*\)|lch\([^)]*\)|lab\([^)]*\)|transparent|currentColor)$/i.test(e.trim()):!1}function Rf(e){return e?/^(0|\d+(\.\d+)?(px|rem|em|%)?)$/i.test(e.trim()):!1}function Pf(e){if(!e)return!1;const r=e.trim();return!r||/[;{}<>]/.test(r)?!1:/^(?!.*(?:url|expression)\s*\()[\w\s.,%#()\-+/]*$/i.test(r)}function
|
|
311
|
+
`;function Lf(e){return e?/^(#([\da-f]{3,8})|rgba?\([^)]*\)|hsla?\([^)]*\)|oklch\([^)]*\)|oklab\([^)]*\)|lch\([^)]*\)|lab\([^)]*\)|transparent|currentColor)$/i.test(e.trim()):!1}function Rf(e){return e?/^(0|\d+(\.\d+)?(px|rem|em|%)?)$/i.test(e.trim()):!1}function Pf(e){if(!e)return!1;const r=e.trim();return!r||/[;{}<>]/.test(r)?!1:/^(?!.*(?:url|expression)\s*\()[\w\s.,%#()\-+/]*$/i.test(r)}function Ie(e,r,a){Lf(a)&&(e[r]=a.trim())}function Ce(e,r,a){Rf(a)&&(e[r]=a.trim())}function la(e,r,a){Pf(a)&&(e[r]=a.trim())}function Tf(e,r){return{...(r==null?void 0:r.token_overrides)??{},...(e==null?void 0:e.token_overrides)??{}}}function Ff(e,r){r&&(Ce(e,"--theme-global-space-unit",r.space_unit),Ce(e,"--theme-global-space-0u",r.space_0u),Ce(e,"--theme-global-space-1u",r.space_1u),Ce(e,"--theme-global-space-2u",r.space_2u),Ce(e,"--theme-global-space-3u",r.space_3u),Ce(e,"--theme-global-space-4u",r.space_4u),Ce(e,"--theme-global-space-5u",r.space_5u),Ce(e,"--theme-global-space-6u",r.space_6u),Ce(e,"--theme-global-space-7u",r.space_7u),Ce(e,"--theme-global-space-8u",r.space_8u),Ce(e,"--theme-global-space-10u",r.space_10u),Ce(e,"--theme-global-space-12u",r.space_12u),Ce(e,"--theme-global-space-14u",r.space_14u),Ce(e,"--theme-global-space-16u",r.space_16u),Ce(e,"--theme-global-space-24u",r.space_24u),Ce(e,"--theme-global-font-size-2xs",r.font_size_2xs),Ce(e,"--theme-global-font-size-xs",r.font_size_xs),Ce(e,"--theme-global-font-size-sm",r.font_size_sm),Ce(e,"--theme-global-font-size-md",r.font_size_md),Ce(e,"--theme-global-font-size-lg",r.font_size_lg),Ce(e,"--theme-global-font-size-xl",r.font_size_xl),Ce(e,"--theme-global-font-size-2xl",r.font_size_2xl),Ce(e,"--theme-global-font-size-3xl",r.font_size_3xl),Ce(e,"--theme-global-radius-2xs",r.radius_2xs),Ce(e,"--theme-global-radius-xs",r.radius_xs),Ce(e,"--theme-global-radius-md",r.radius_md),Ce(e,"--theme-global-radius-lg",r.radius_lg),Ce(e,"--theme-global-radius-xl",r.radius_xl),Ce(e,"--theme-global-radius-2xl",r.radius_2xl),Ce(e,"--theme-global-radius-full",r.radius_full),Ce(e,"--theme-global-border-width-thin",r.border_width_thin),Ce(e,"--theme-global-border-width-regular",r.border_width_regular),Ce(e,"--theme-global-size-8u",r.size_8u),Ce(e,"--theme-global-size-10u",r.size_10u),Ce(e,"--theme-global-size-12u",r.size_12u),Ce(e,"--theme-global-size-18u",r.size_18u),Ce(e,"--theme-global-size-20u",r.size_20u),Ce(e,"--theme-global-size-24u",r.size_24u),Ce(e,"--theme-global-size-32u",r.size_32u),Ce(e,"--theme-global-size-36u",r.size_36u),Ce(e,"--theme-global-size-40u",r.size_40u),Ce(e,"--theme-global-size-45u",r.size_45u),Ce(e,"--theme-global-size-50u",r.size_50u),la(e,"--theme-global-shadow-sm",r.shadow_sm),la(e,"--theme-global-shadow-md",r.shadow_md),la(e,"--theme-global-shadow-lg",r.shadow_lg),la(e,"--theme-global-shadow-xl",r.shadow_xl),la(e,"--theme-global-ring-primary",r.ring_primary),Ce(e,"--theme-global-letter-spacing-tight",r.letter_spacing_tight))}function Si(e,r,a){if(!a)return;const n=`--theme-${r}`,s=a.token_overrides??void 0,i=a.text_color;Ie(e,`${n}-primary`,a.primary_color),Ie(e,`${n}-background`,a.background_color),Ie(e,`${n}-text`,i),Ie(e,`${n}-foreground`,(s==null?void 0:s.foreground)??i),Ie(e,`${n}-card`,s==null?void 0:s.card),Ie(e,`${n}-card-foreground`,s==null?void 0:s.card_foreground),Ie(e,`${n}-popover`,s==null?void 0:s.popover),Ie(e,`${n}-popover-foreground`,s==null?void 0:s.popover_foreground),Ie(e,`${n}-secondary-text`,s==null?void 0:s.secondary_text),Ie(e,`${n}-secondary`,s==null?void 0:s.secondary),Ie(e,`${n}-secondary-foreground`,s==null?void 0:s.secondary_foreground),Ie(e,`${n}-muted`,s==null?void 0:s.muted),Ie(e,`${n}-accent`,s==null?void 0:s.accent),Ie(e,`${n}-accent-foreground`,s==null?void 0:s.accent_foreground),Ie(e,`${n}-border`,s==null?void 0:s.border),Ie(e,`${n}-border-hover`,s==null?void 0:s.border_hover),Ie(e,`${n}-divider`,s==null?void 0:s.divider),Ie(e,`${n}-input-background`,s==null?void 0:s.input_background),Ie(e,`${n}-input-border`,s==null?void 0:s.input_border),Ie(e,`${n}-input-focus-border`,s==null?void 0:s.input_focus_border),Ie(e,`${n}-background-subtle`,s==null?void 0:s.background_subtle),Ie(e,`${n}-background-hover`,s==null?void 0:s.background_hover),Ie(e,`${n}-primary-foreground`,s==null?void 0:s.primary_foreground),Ie(e,`${n}-primary-hover`,s==null?void 0:s.primary_hover),Ie(e,`${n}-error`,s==null?void 0:s.error),Ie(e,`${n}-error-background`,s==null?void 0:s.error_background),Ie(e,`${n}-error-border`,s==null?void 0:s.error_border),Ie(e,`${n}-warning`,s==null?void 0:s.warning),Ie(e,`${n}-warning-background`,s==null?void 0:s.warning_background),Ie(e,`${n}-warning-border`,s==null?void 0:s.warning_border),Ie(e,`${n}-warning-text`,s==null?void 0:s.warning_text),Ie(e,`${n}-success`,s==null?void 0:s.success),Ie(e,`${n}-success-background`,s==null?void 0:s.success_background),Ie(e,`${n}-success-border`,s==null?void 0:s.success_border),Ie(e,`${n}-info`,s==null?void 0:s.info),Ie(e,`${n}-info-background`,s==null?void 0:s.info_background),Ie(e,`${n}-ring`,s==null?void 0:s.ring)}function If(e,r){const a={};return Ff(a,Tf(e,r)),Si(a,"light",e),Si(a,"dark",r),a}function ge({children:e,style:r,...a}){var i,h,d,u;const n=c.useContext(gs),s=If((h=(i=n==null?void 0:n.deployment)==null?void 0:i.ui_settings)==null?void 0:h.light_mode_settings,(u=(d=n==null?void 0:n.deployment)==null?void 0:d.ui_settings)==null?void 0:u.dark_mode_settings);return t.jsx(Mf,{...a,style:{...s,...r},children:e})}const Zf=mt`
|
|
312
312
|
from { opacity: 0; transform: translateY(6px); }
|
|
313
313
|
to { opacity: 1; transform: translateY(0); }
|
|
314
314
|
`,Of=mt`
|
|
@@ -323,7 +323,7 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
323
323
|
flex-direction: column;
|
|
324
324
|
align-items: center;
|
|
325
325
|
gap: var(--space-8u);
|
|
326
|
-
animation: ${
|
|
326
|
+
animation: ${Zf} 0.25s ease both;
|
|
327
327
|
`,Vf=l.div`
|
|
328
328
|
display: flex;
|
|
329
329
|
align-items: center;
|
|
@@ -625,7 +625,7 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
625
625
|
width: auto;
|
|
626
626
|
height: auto;
|
|
627
627
|
object-fit: contain;
|
|
628
|
-
`;function
|
|
628
|
+
`;function Je({placement:e="center"}){var h;const{deployment:r}=Ae(),[a,n]=c.useState(!1),s=(h=r==null?void 0:r.ui_settings)==null?void 0:h.logo_image_url;if(!s||a)return null;const i=e==="left"?"flex-start":e==="right"?"flex-end":"center";return t.jsx(lm,{style:{justifyContent:i},children:t.jsx(dm,{children:t.jsx(um,{src:s,alt:"Logo",onError:()=>n(!0)})})})}const Et=qt`
|
|
629
629
|
max-width: calc(var(--size-50u) * 4);
|
|
630
630
|
width: calc(var(--size-50u) * 4);
|
|
631
631
|
padding: calc(var(--space-unit, 2px) * 18) var(--space-12u) var(--space-12u);
|
|
@@ -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 km(){var B,Y,X,ce,me,te,xe,re,U,Ye,Te,Ve,Ue,ve,J,le;const{loading:e,signUp:r,signupAttempt:a,discardSignupAttempt:n}=n0(),{signIn:s}=wa("oauth"),{deployment:i}=Ae(),{navigate:h}=yt(),{session:d,refetch:u,loading:f}=st(),[p,m]=c.useState({first_name:"",last_name:"",email:"",password:"",username:"",phone_number:""}),[g,v]=c.useState({}),[b,x]=c.useState(!1),[w,A]=c.useState(void 0),[j,S]=c.useState(null),[C,_]=c.useState(null),[k,y]=c.useState(!1),M=((B=i==null?void 0:i.restrictions)==null?void 0:B.sign_up_mode)==="restricted",z=((Y=i==null?void 0:i.restrictions)==null?void 0:Y.sign_up_mode)==="waitlist",O=((ce=(X=i==null?void 0:i.auth_settings)==null?void 0:X.multi_session_support)==null?void 0:ce.enabled)??!1;c.useEffect(()=>{var oe;if(!f&&(d!=null&&d.active_signin)&&!O&&!k){y(!0);let G=new URLSearchParams(window.location.search).get("redirect_uri");G||(G=((oe=i==null?void 0:i.ui_settings)==null?void 0:oe.after_signin_redirect_url)||null),!G&&(i!=null&&i.frontend_host)&&(G=`https://${i.frontend_host}`),!G&&(i!=null&&i.frontend_host)&&(G=`https://${i.frontend_host}`),G&&h(G)}},[d,f,O,i,h,k]),c.useEffect(()=>{var pe;if(!i)return;const G=new URLSearchParams(window.location.search).get("invite_token");if(z&&!G){y(!0);const fe=((pe=i.ui_settings)==null?void 0:pe.waitlist_page_url)||`https://${i.frontend_host}/waitlist`;h(fe);return}G&&!j&&r&&(_(G),r.validateDeploymentInvitation(G).then(fe=>{S(fe),fe.valid&&m(q=>({...q,first_name:fe.first_name||q.first_name,last_name:fe.last_name||q.last_name,email:fe.email||q.email}))}).catch(()=>{v(fe=>({...fe,submit:"Failed to validate invitation."}))}))},[i,z,h,j,r]);const[I,P]=c.useState(!1),[T,$]=c.useState(""),E=oe=>{let{name:G,value:pe}=oe.target;G==="phone_number"?pe=pe.replace(/[^0-9-]/g,""):G==="email"&&(pe=pe.toLowerCase()),m(fe=>({...fe,[G]:pe})),v(fe=>({...fe,[G]:""}))},F=()=>{m({first_name:"",last_name:"",email:"",password:"",username:"",phone_number:""}),v({}),P(!1),$(""),n()},L=async oe=>{if(oe.preventDefault(),e||b)return;const G={},pe=/^[a-zA-Z]{3,30}$/,fe=/^[a-zA-Z][a-zA-Z0-9_.]{2,29}$/,q=/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/,de=/^\d{7,15}$/,Be=/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[@$!%*?&])[A-Za-z\d@$!%*?&]{8,125}$/;if(R!=null&&R.first_name.enabled&&(R!=null&&R.first_name.required&&!p.first_name?G.first_name="First name is required":p.first_name&&!pe.test(p.first_name)&&(G.first_name="Invalid name")),R!=null&&R.last_name.enabled&&(R!=null&&R.last_name.required&&!p.last_name?G.last_name="Last name is required":p.last_name&&!pe.test(p.last_name)&&(G.last_name="Invalid last name")),R!=null&&R.username.enabled&&(R!=null&&R.username.required&&!p.username?G.username="Username is required":p.username&&!fe.test(p.username)&&(G.username="Username must be 3-20 characters")),R!=null&&R.email_address.enabled&&(R!=null&&R.email_address.required&&!p.email?G.email="Email address is required":p.email&&!q.test(p.email)&&(G.email="Invalid email address")),R!=null&&R.phone_number.enabled&&(R!=null&&R.phone_number.required&&!p.phone_number?G.phone_number="Phone number is required":p.phone_number&&!de.test(p.phone_number)&&(G.phone_number="Phone number must contain 7-15 digits")),R!=null&&R.password.enabled&&(p.password?Be.test(p.password)||(G.password="Password must be 8-125 characters and include uppercase, lowercase, number, and special character"):G.password="Password is required"),v(G),!(Object.keys(G).length>0)){x(!0);try{const We={...p};p.phone_number&&w&&(We.phone_country_code=w),C&&(We.invite_token=C),await r.create(We)}catch(We){v({submit:We.message})}finally{x(!1)}}},H=async oe=>{if(!(e||b)){x(!0);try{const pe=new URLSearchParams(window.location.search).get("redirect_uri")||void 0,{data:fe}=await s.create({provider:oe.provider,redirectUri:pe});fe&&typeof fe=="object"&&"oauth_url"in fe&&(window.location.href=fe.oauth_url)}catch(G){v({submit:G.message})}finally{x(!1)}}},Z=(i==null?void 0:i.social_connections.filter(oe=>oe.enabled))||[],R=i==null?void 0:i.auth_settings,W=!!((me=R==null?void 0:R.first_name)!=null&&me.enabled&&((te=R==null?void 0:R.last_name)!=null&&te.enabled)),D=async oe=>{var pe;if(oe.preventDefault(),e||b)return;x(!0);const G={};if(!T){G.otp="OTP code is required",v(G),x(!1);return}v(G);try{const fe=await r.completeVerification(T);"data"in fe&&((pe=fe.data)!=null&&pe.active_signin)&&await u()}catch{v(fe=>({...fe,submit:"Verification failed. Please try again."}))}finally{x(!1)}};return c.useEffect(()=>{var oe;if(a){if(a.completed){let G=new URLSearchParams(window.location.search).get("redirect_uri");if(G||(G=((oe=i==null?void 0:i.ui_settings)==null?void 0:oe.after_signup_redirect_url)||null),!G&&(i!=null&&i.frontend_host)&&(G=`https://${i.frontend_host}`),G){let pe;try{pe=new URL(G)}catch{pe=new URL(G,window.location.origin)}(i==null?void 0:i.mode)==="staging"&&pe.searchParams.set("__dev_session__",ht(i.backend_host)||""),h(pe.toString())}return}if(!I){switch(a.current_step){case"verify_email":r.prepareVerification({strategy:"email_otp"});break;case"verify_phone":r.prepareVerification({strategy:"phone_otp"});break}P(!0)}}},[a,r,I,i,d,h]),f?t.jsx(ge,{children:t.jsxs(Va,{children:[t.jsx(Qe,{}),t.jsx(zi,{children:t.jsx(wt,{size:32})})]})}):k?t.jsx(ge,{children:t.jsxs(Va,{children:[t.jsx(Qe,{}),t.jsx(zi,{children:t.jsx(wt,{size:32})})]})}):M?t.jsx(ge,{children:t.jsxs(Va,{children:[t.jsx(Qe,{}),t.jsx(io,{children:t.jsx(co,{children:"Sign up Restricted!"})}),t.jsx(gm,{children:t.jsx(vm,{children:"New account registration is currently restricted. Please check back later."})}),t.jsx(xm,{children:t.jsxs(bm,{children:["Need assistance?"," ",t.jsx(wm,{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(ge,{children:t.jsx(Va,{children:I?t.jsxs(t.Fragment,{children:[t.jsx(Qe,{}),t.jsxs(io,{children:[!((re=i==null?void 0:i.ui_settings)!=null&&re.logo_image_url)&&t.jsx(ym,{children:(a==null?void 0:a.current_step)==="verify_phone"?t.jsx(Es,{weight:"light"}):t.jsx(Fn,{weight:"light"})}),t.jsx(co,{children:(a==null?void 0:a.current_step)==="verify_phone"?"Check your phone":"Enter the code"}),t.jsx($i,{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(jm,{children:t.jsxs(_m,{type:"button",onClick:F,children:[t.jsx(is,{weight:"light"}),(a==null?void 0:a.current_step)==="verify_phone"?`+${p.phone_number}`:p.email]})})]}),t.jsxs(Mi,{onSubmit:D,noValidate:!0,children:[t.jsx(dr,{onComplete:async oe=>{$(oe)},onResend:async()=>{const oe=(a==null?void 0:a.current_step)==="verify_email"?"email_otp":"phone_otp";await r.prepareVerification({strategy:oe})},error:g.otp,isSubmitting:b}),t.jsx(Li,{type:"submit",disabled:b||e||!T,children:b&&T?t.jsx(Ai,{size:16}):`Continue to ${(U=i==null?void 0:i.ui_settings)==null?void 0:U.app_name}`})]}),t.jsxs(Ri,{children:["Having trouble?"," ",t.jsx(Pi,{children:t.jsx(Pt,{to:i.ui_settings.support_page_url,children:"Get help"})})]})]}):t.jsxs(t.Fragment,{children:[t.jsx(Qe,{}),t.jsxs(io,{children:[t.jsx(co,{children:"Create your account"}),t.jsx($i,{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($s,{connections:Z,callback:H}),t.jsx(pm,{children:t.jsx(hm,{children:"or"})})]}),t.jsxs(Mi,{onSubmit:L,noValidate:!0,children:[(((Ye=R==null?void 0:R.first_name)==null?void 0:Ye.enabled)||((Te=R==null?void 0:R.last_name)==null?void 0:Te.enabled))&&t.jsxs(fm,{$isBothEnabled:W,children:[((Ve=R==null?void 0:R.first_name)==null?void 0:Ve.enabled)&&t.jsxs(Vr,{children:[t.jsxs(Dr,{htmlFor:"first_name",children:["First name",((Ue=R==null?void 0:R.first_name)==null?void 0:Ue.required)&&t.jsx(Nr,{children:"*"})]}),t.jsx(ue,{type:"text",id:"first_name",name:"first_name",required:!0,minLength:3,maxLength:30,value:p.first_name,onChange:E,placeholder:"First name","aria-invalid":!!g.first_name,pattern:"^[a-zA-Z]{3,30}$"}),g.first_name&&t.jsx(gr,{children:g.first_name})]}),((ve=R==null?void 0:R.last_name)==null?void 0:ve.enabled)&&t.jsxs(Vr,{children:[t.jsxs(Dr,{htmlFor:"last_name",children:["Last name",((J=R==null?void 0:R.last_name)==null?void 0:J.required)&&t.jsx(Nr,{children:"*"})]}),t.jsx(ue,{type:"text",id:"last_name",name:"last_name",required:!0,minLength:3,maxLength:30,value:p.last_name,onChange:E,placeholder:"Last name","aria-invalid":!!g.last_name,pattern:"^[a-zA-Z]{3,30}$"}),g.last_name&&t.jsx(gr,{children:g.last_name})]})]}),(R==null?void 0:R.username.enabled)&&t.jsxs(Vr,{children:[t.jsxs(Dr,{htmlFor:"username",children:["Username",R.username.required&&t.jsx(Nr,{children:"*"})]}),t.jsx(ue,{type:"text",id:"username",name:"username",minLength:3,maxLength:20,value:p.username,onChange:E,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})]}),(R==null?void 0:R.email_address.enabled)&&t.jsxs(Vr,{children:[t.jsxs(Dr,{htmlFor:"email",children:["Email address",R.email_address.required&&t.jsx(Nr,{children:"*"})]}),t.jsx(ue,{type:"email",id:"email",name:"email",maxLength:320,value:p.email,onChange:E,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})]}),(R==null?void 0:R.phone_number.enabled)&&t.jsxs(Vr,{children:[t.jsxs(Dr,{htmlFor:"phone_number",children:["Phone number",R.phone_number.required&&t.jsx(Nr,{children:"*"})]}),t.jsx($a,{value:p.phone_number,onChange:E,error:g.phone_number,countryCode:w,setCountryCode:A}),g.phone_number&&t.jsx(gr,{children:g.phone_number})]}),(R==null?void 0:R.password.enabled)&&t.jsxs(Vr,{children:[t.jsxs(Dr,{htmlFor:"password",children:["Password",R.password.required&&t.jsx(Nr,{children:"*"})]}),t.jsx(mm,{children:t.jsx(ue,{type:"password",id:"password",name:"password",value:p.password,onChange:E,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(Li,{type:"submit",disabled:b||e,children:b?t.jsx(Ai,{size:16}):"Continue"})]}),t.jsxs(Ri,{children:["Already have an account?"," ",t.jsx(Pi,{children:t.jsx(Pt,{to:`${(le=i.ui_settings)==null?void 0:le.sign_in_page_url}${window.location.search}`,children:"Sign in"})})]})]})})})}const p1=c.createContext(void 0),h1=()=>{const e=c.useContext(p1);if(!e)throw new Error("Dialog components must be used within a Dialog");return e},Cm=l.div`
|
|
833
|
+
`;function km(){var B,Y,X,ce,me,te,xe,re,U,Qe,Te,Ve,Ue,ve,J,le;const{loading:e,signUp:r,signupAttempt:a,discardSignupAttempt:n}=n0(),{signIn:s}=wa("oauth"),{deployment:i}=Ae(),{navigate:h}=yt(),{session:d,refetch:u,loading:f}=st(),[p,m]=c.useState({first_name:"",last_name:"",email:"",password:"",username:"",phone_number:""}),[g,v]=c.useState({}),[b,x]=c.useState(!1),[w,A]=c.useState(void 0),[j,S]=c.useState(null),[C,_]=c.useState(null),[k,y]=c.useState(!1),M=((B=i==null?void 0:i.restrictions)==null?void 0:B.sign_up_mode)==="restricted",z=((Y=i==null?void 0:i.restrictions)==null?void 0:Y.sign_up_mode)==="waitlist",O=((ce=(X=i==null?void 0:i.auth_settings)==null?void 0:X.multi_session_support)==null?void 0:ce.enabled)??!1;c.useEffect(()=>{var oe;if(!f&&(d!=null&&d.active_signin)&&!O&&!k){y(!0);let G=new URLSearchParams(window.location.search).get("redirect_uri");G||(G=((oe=i==null?void 0:i.ui_settings)==null?void 0:oe.after_signin_redirect_url)||null),!G&&(i!=null&&i.frontend_host)&&(G=`https://${i.frontend_host}`),!G&&(i!=null&&i.frontend_host)&&(G=`https://${i.frontend_host}`),G&&h(G)}},[d,f,O,i,h,k]),c.useEffect(()=>{var pe;if(!i)return;const G=new URLSearchParams(window.location.search).get("invite_token");if(z&&!G){y(!0);const fe=((pe=i.ui_settings)==null?void 0:pe.waitlist_page_url)||`https://${i.frontend_host}/waitlist`;h(fe);return}G&&!j&&r&&(_(G),r.validateDeploymentInvitation(G).then(fe=>{S(fe),fe.valid&&m(q=>({...q,first_name:fe.first_name||q.first_name,last_name:fe.last_name||q.last_name,email:fe.email||q.email}))}).catch(()=>{v(fe=>({...fe,submit:"Failed to validate invitation."}))}))},[i,z,h,j,r]);const[I,P]=c.useState(!1),[T,$]=c.useState(""),E=oe=>{let{name:G,value:pe}=oe.target;G==="phone_number"?pe=pe.replace(/[^0-9-]/g,""):G==="email"&&(pe=pe.toLowerCase()),m(fe=>({...fe,[G]:pe})),v(fe=>({...fe,[G]:""}))},F=()=>{m({first_name:"",last_name:"",email:"",password:"",username:"",phone_number:""}),v({}),P(!1),$(""),n()},L=async oe=>{if(oe.preventDefault(),e||b)return;const G={},pe=/^[a-zA-Z]{3,30}$/,fe=/^[a-zA-Z][a-zA-Z0-9_.]{2,29}$/,q=/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/,de=/^\d{7,15}$/,Be=/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[@$!%*?&])[A-Za-z\d@$!%*?&]{8,125}$/;if(R!=null&&R.first_name.enabled&&(R!=null&&R.first_name.required&&!p.first_name?G.first_name="First name is required":p.first_name&&!pe.test(p.first_name)&&(G.first_name="Invalid name")),R!=null&&R.last_name.enabled&&(R!=null&&R.last_name.required&&!p.last_name?G.last_name="Last name is required":p.last_name&&!pe.test(p.last_name)&&(G.last_name="Invalid last name")),R!=null&&R.username.enabled&&(R!=null&&R.username.required&&!p.username?G.username="Username is required":p.username&&!fe.test(p.username)&&(G.username="Username must be 3-20 characters")),R!=null&&R.email_address.enabled&&(R!=null&&R.email_address.required&&!p.email?G.email="Email address is required":p.email&&!q.test(p.email)&&(G.email="Invalid email address")),R!=null&&R.phone_number.enabled&&(R!=null&&R.phone_number.required&&!p.phone_number?G.phone_number="Phone number is required":p.phone_number&&!de.test(p.phone_number)&&(G.phone_number="Phone number must contain 7-15 digits")),R!=null&&R.password.enabled&&(p.password?Be.test(p.password)||(G.password="Password must be 8-125 characters and include uppercase, lowercase, number, and special character"):G.password="Password is required"),v(G),!(Object.keys(G).length>0)){x(!0);try{const We={...p};p.phone_number&&w&&(We.phone_country_code=w),C&&(We.invite_token=C),await r.create(We)}catch(We){v({submit:We.message})}finally{x(!1)}}},H=async oe=>{if(!(e||b)){x(!0);try{const pe=new URLSearchParams(window.location.search).get("redirect_uri")||void 0,{data:fe}=await s.create({provider:oe.provider,redirectUri:pe});fe&&typeof fe=="object"&&"oauth_url"in fe&&(window.location.href=fe.oauth_url)}catch(G){v({submit:G.message})}finally{x(!1)}}},Z=(i==null?void 0:i.social_connections.filter(oe=>oe.enabled))||[],R=i==null?void 0:i.auth_settings,W=!!((me=R==null?void 0:R.first_name)!=null&&me.enabled&&((te=R==null?void 0:R.last_name)!=null&&te.enabled)),D=async oe=>{var pe;if(oe.preventDefault(),e||b)return;x(!0);const G={};if(!T){G.otp="OTP code is required",v(G),x(!1);return}v(G);try{const fe=await r.completeVerification(T);"data"in fe&&((pe=fe.data)!=null&&pe.active_signin)&&await u()}catch{v(fe=>({...fe,submit:"Verification failed. Please try again."}))}finally{x(!1)}};return c.useEffect(()=>{var oe;if(a){if(a.completed){let G=new URLSearchParams(window.location.search).get("redirect_uri");if(G||(G=((oe=i==null?void 0:i.ui_settings)==null?void 0:oe.after_signup_redirect_url)||null),!G&&(i!=null&&i.frontend_host)&&(G=`https://${i.frontend_host}`),G){let pe;try{pe=new URL(G)}catch{pe=new URL(G,window.location.origin)}(i==null?void 0:i.mode)==="staging"&&pe.searchParams.set("__dev_session__",ht(i.backend_host)||""),h(pe.toString())}return}if(!I){switch(a.current_step){case"verify_email":r.prepareVerification({strategy:"email_otp"});break;case"verify_phone":r.prepareVerification({strategy:"phone_otp"});break}P(!0)}}},[a,r,I,i,d,h]),f?t.jsx(ge,{children:t.jsxs(Va,{children:[t.jsx(Je,{}),t.jsx(zi,{children:t.jsx(wt,{size:32})})]})}):k?t.jsx(ge,{children:t.jsxs(Va,{children:[t.jsx(Je,{}),t.jsx(zi,{children:t.jsx(wt,{size:32})})]})}):M?t.jsx(ge,{children:t.jsxs(Va,{children:[t.jsx(Je,{}),t.jsx(io,{children:t.jsx(co,{children:"Sign up Restricted!"})}),t.jsx(gm,{children:t.jsx(vm,{children:"New account registration is currently restricted. Please check back later."})}),t.jsx(xm,{children:t.jsxs(bm,{children:["Need assistance?"," ",t.jsx(wm,{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(ge,{children:t.jsx(Va,{children:I?t.jsxs(t.Fragment,{children:[t.jsx(Je,{}),t.jsxs(io,{children:[!((re=i==null?void 0:i.ui_settings)!=null&&re.logo_image_url)&&t.jsx(ym,{children:(a==null?void 0:a.current_step)==="verify_phone"?t.jsx(Es,{weight:"light"}):t.jsx(Fn,{weight:"light"})}),t.jsx(co,{children:(a==null?void 0:a.current_step)==="verify_phone"?"Check your phone":"Enter the code"}),t.jsx($i,{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(jm,{children:t.jsxs(_m,{type:"button",onClick:F,children:[t.jsx(is,{weight:"light"}),(a==null?void 0:a.current_step)==="verify_phone"?`+${p.phone_number}`:p.email]})})]}),t.jsxs(Mi,{onSubmit:D,noValidate:!0,children:[t.jsx(dr,{onComplete:async oe=>{$(oe)},onResend:async()=>{const oe=(a==null?void 0:a.current_step)==="verify_email"?"email_otp":"phone_otp";await r.prepareVerification({strategy:oe})},error:g.otp,isSubmitting:b}),t.jsx(Li,{type:"submit",disabled:b||e||!T,children:b&&T?t.jsx(Ai,{size:16}):`Continue to ${(U=i==null?void 0:i.ui_settings)==null?void 0:U.app_name}`})]}),t.jsxs(Ri,{children:["Having trouble?"," ",t.jsx(Pi,{children:t.jsx(Pt,{to:i.ui_settings.support_page_url,children:"Get help"})})]})]}):t.jsxs(t.Fragment,{children:[t.jsx(Je,{}),t.jsxs(io,{children:[t.jsx(co,{children:"Create your account"}),t.jsx($i,{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($s,{connections:Z,callback:H}),t.jsx(pm,{children:t.jsx(hm,{children:"or"})})]}),t.jsxs(Mi,{onSubmit:L,noValidate:!0,children:[(((Qe=R==null?void 0:R.first_name)==null?void 0:Qe.enabled)||((Te=R==null?void 0:R.last_name)==null?void 0:Te.enabled))&&t.jsxs(fm,{$isBothEnabled:W,children:[((Ve=R==null?void 0:R.first_name)==null?void 0:Ve.enabled)&&t.jsxs(Vr,{children:[t.jsxs(Dr,{htmlFor:"first_name",children:["First name",((Ue=R==null?void 0:R.first_name)==null?void 0:Ue.required)&&t.jsx(Nr,{children:"*"})]}),t.jsx(ue,{type:"text",id:"first_name",name:"first_name",required:!0,minLength:3,maxLength:30,value:p.first_name,onChange:E,placeholder:"First name","aria-invalid":!!g.first_name,pattern:"^[a-zA-Z]{3,30}$"}),g.first_name&&t.jsx(gr,{children:g.first_name})]}),((ve=R==null?void 0:R.last_name)==null?void 0:ve.enabled)&&t.jsxs(Vr,{children:[t.jsxs(Dr,{htmlFor:"last_name",children:["Last name",((J=R==null?void 0:R.last_name)==null?void 0:J.required)&&t.jsx(Nr,{children:"*"})]}),t.jsx(ue,{type:"text",id:"last_name",name:"last_name",required:!0,minLength:3,maxLength:30,value:p.last_name,onChange:E,placeholder:"Last name","aria-invalid":!!g.last_name,pattern:"^[a-zA-Z]{3,30}$"}),g.last_name&&t.jsx(gr,{children:g.last_name})]})]}),(R==null?void 0:R.username.enabled)&&t.jsxs(Vr,{children:[t.jsxs(Dr,{htmlFor:"username",children:["Username",R.username.required&&t.jsx(Nr,{children:"*"})]}),t.jsx(ue,{type:"text",id:"username",name:"username",minLength:3,maxLength:20,value:p.username,onChange:E,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})]}),(R==null?void 0:R.email_address.enabled)&&t.jsxs(Vr,{children:[t.jsxs(Dr,{htmlFor:"email",children:["Email address",R.email_address.required&&t.jsx(Nr,{children:"*"})]}),t.jsx(ue,{type:"email",id:"email",name:"email",maxLength:320,value:p.email,onChange:E,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})]}),(R==null?void 0:R.phone_number.enabled)&&t.jsxs(Vr,{children:[t.jsxs(Dr,{htmlFor:"phone_number",children:["Phone number",R.phone_number.required&&t.jsx(Nr,{children:"*"})]}),t.jsx($a,{value:p.phone_number,onChange:E,error:g.phone_number,countryCode:w,setCountryCode:A}),g.phone_number&&t.jsx(gr,{children:g.phone_number})]}),(R==null?void 0:R.password.enabled)&&t.jsxs(Vr,{children:[t.jsxs(Dr,{htmlFor:"password",children:["Password",R.password.required&&t.jsx(Nr,{children:"*"})]}),t.jsx(mm,{children:t.jsx(ue,{type:"password",id:"password",name:"password",value:p.password,onChange:E,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(Li,{type:"submit",disabled:b||e,children:b?t.jsx(Ai,{size:16}):"Continue"})]}),t.jsxs(Ri,{children:["Already have an account?"," ",t.jsx(Pi,{children:t.jsx(Pt,{to:`${(le=i.ui_settings)==null?void 0:le.sign_in_page_url}${window.location.search}`,children:"Sign in"})})]})]})})})}const p1=c.createContext(void 0),h1=()=>{const e=c.useContext(p1);if(!e)throw new Error("Dialog components must be used within a Dialog");return e},Cm=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
|
-
`,Lm=({isOpen:e,onClose:r,children:a})=>{const[n,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||!n?null:Sn.createPortal(t.jsx(ge,{children:t.jsx(p1.Provider,{value:{isOpen:e,onClose:r},children:a})}),document.body)},Rm=({children:e})=>{const{onClose:r}=h1(),a=c.useRef(null),n=s=>{a.current&&!a.current.contains(s.target)&&(r==null||r())};return t.jsx(Cm,{onClick:n,children:t.jsx("div",{ref:a,children:e})})},Pm=({children:e,style:r,className:a})=>t.jsx(Sm,{style:r,className:a,children:e}),Tm=({children:e,showCloseButton:r=!0})=>{const{onClose:a}=h1();return t.jsxs(Em,{children:[typeof e=="string"?t.jsx(Am,{children:e}):e,r&&t.jsx(zm,{onClick:a,children:t.jsx(zs,{size:18})})]})},Fm=({children:e,style:r,className:a})=>t.jsx($m,{style:r,className:a,children:e}),
|
|
884
|
+
`,Lm=({isOpen:e,onClose:r,children:a})=>{const[n,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||!n?null:Sn.createPortal(t.jsx(ge,{children:t.jsx(p1.Provider,{value:{isOpen:e,onClose:r},children:a})}),document.body)},Rm=({children:e})=>{const{onClose:r}=h1(),a=c.useRef(null),n=s=>{a.current&&!a.current.contains(s.target)&&(r==null||r())};return t.jsx(Cm,{onClick:n,children:t.jsx("div",{ref:a,children:e})})},Pm=({children:e,style:r,className:a})=>t.jsx(Sm,{style:r,className:a,children:e}),Tm=({children:e,showCloseButton:r=!0})=>{const{onClose:a}=h1();return t.jsxs(Em,{children:[typeof e=="string"?t.jsx(Am,{children:e}):e,r&&t.jsx(zm,{onClick:a,children:t.jsx(zs,{size:18})})]})},Fm=({children:e,style:r,className:a})=>t.jsx($m,{style:r,className:a,children:e}),Im=({children:e})=>t.jsx(Mm,{children:e}),He=Object.assign(Lm,{Overlay:Rm,Content:Pm,Header:Tm,Body:Fm,Footer:Im}),Zm=({isOpen:e,onClose:r,title:a,children:n,showCloseButton:s=!0})=>t.jsx(He,{isOpen:e,onClose:r,children:t.jsx(He.Overlay,{children:t.jsxs(He.Content,{children:[a&&t.jsx(He.Header,{showCloseButton:s,children:a}),t.jsx(He.Body,{children:n})]})})}),Om=({trigger:e,renderDialog:r})=>{const[a,n]=c.useState(!1),s=()=>n(!0),i=()=>n(!1);return t.jsxs(t.Fragment,{children:[e({onClick:s}),r({isOpen:a,onClose:i})]})},Hm=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
|
-
`,
|
|
1146
|
+
`,In=({options:e,value:r,onChange:a,placeholder:n="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),[v,b]=c.useState(""),x=c.useRef(null),w=c.useRef(null),A=f&&"options"in e[0],S=(A?e.flatMap(y=>y.options):e).find(y=>y.value===r),C=v?A?e.map(y=>({...y,options:y.options.filter(M=>M.label.toLowerCase().includes(v.toLowerCase()))})).filter(y=>y.options.length>0):e.filter(y=>y.label.toLowerCase().includes(v.toLowerCase())):e,_=(y,M=!1)=>{M||(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=M=>{x.current&&!x.current.contains(M.target)&&(g(!1),b(""))};return document.addEventListener("mousedown",y),()=>{document.removeEventListener("mousedown",y)}},[]),t.jsxs(x1,{ref:x,style:{width:h},className:p,children:[t.jsxs(b1,{type:"button",onClick:k,disabled:s,"aria-haspopup":"listbox","aria-expanded":m,id:u,children:[S?S.label:t.jsx(j1,{children:n}),m?t.jsx(vd,{size:16}):t.jsx(lr,{size:16})]}),t.jsxs(w1,{isOpen:m,role:"listbox",children:[i&&t.jsx(y1,{ref:w,type:"text",placeholder:"MagnifyingGlass...",value:v,onChange:y=>b(y.target.value),onClick:y=>y.stopPropagation()}),A?C.map((y,M)=>t.jsxs(c.Fragment,{children:[t.jsx(_1,{children:y.label}),y.options.length===0?t.jsx(kn,{children:"No options available"}):y.options.map(z=>t.jsxs(_n,{isSelected:z.value===r,disabled:z.disabled,onClick:()=>_(z.value,z.disabled),role:"option","aria-selected":z.value===r,children:[z.label,z.value===r&&t.jsx(ct,{size:16})]},z.value))]},`group-${M}`)):t.jsx(t.Fragment,{children:C.length===0?t.jsx(kn,{children:"No options available"}):C.map(y=>t.jsxs(_n,{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||""})]})},k1=({options:e,value:r,onChange:a,placeholder:n="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),[v,b]=c.useState(""),x=c.useRef(null),w=c.useRef(null),A=f&&"options"in e[0],S=(A?e.flatMap(y=>y.options):e).filter(y=>r.includes(y.value)),C=v?A?e.map(y=>({...y,options:y.options.filter(M=>M.label.toLowerCase().includes(v.toLowerCase()))})).filter(y=>y.options.length>0):e.filter(y=>y.label.toLowerCase().includes(v.toLowerCase())):e,_=(y,M=!1)=>{M||(r.includes(y)?a(r.filter(z=>z!==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=M=>{x.current&&!x.current.contains(M.target)&&(g(!1),b(""))};return document.addEventListener("mousedown",y),()=>{document.removeEventListener("mousedown",y)}},[]),t.jsxs(x1,{ref:x,style:{width:h},className:p,children:[t.jsxs(b1,{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(j1,{children:n}),m?t.jsx(vd,{size:16}):t.jsx(lr,{size:16})]}),t.jsxs(w1,{isOpen:m,role:"listbox",children:[i&&t.jsx(y1,{ref:w,type:"text",placeholder:"MagnifyingGlass...",value:v,onChange:y=>b(y.target.value),onClick:y=>y.stopPropagation()}),A?C.map((y,M)=>t.jsxs(c.Fragment,{children:[t.jsx(_1,{children:y.label}),y.options.length===0?t.jsx(kn,{children:"No options available"}):y.options.map(z=>t.jsxs(_n,{isSelected:r.includes(z.value),disabled:z.disabled,onClick:()=>_(z.value,z.disabled),role:"option","aria-selected":r.includes(z.value),children:[z.label,r.includes(z.value)&&t.jsx(ct,{size:16})]},z.value))]},`group-${M}`)):t.jsx(t.Fragment,{children:C.length===0?t.jsx(kn,{children:"No options available"}):C.map(y=>t.jsxs(_n,{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(",")})]})},Qm=l.button`
|
|
1147
1147
|
display: flex;
|
|
1148
1148
|
align-items: center;
|
|
1149
1149
|
gap: var(--space-4u);
|
|
@@ -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 p4({onBack:e}){const{deployment:r}=Ae(),{navigate:a}=yt(),[n,s]=c.useState("start"),[i,h]=c.useState(""),[d,u]=c.useState(""),[f,p]=c.useState(""),[m,g]=c.useState(""),[v,b]=c.useState(""),{forgotPassword:x,verifyOtp:w,resetPassword:A}=b0(),[j,S]=c.useState(!1),[C,_]=c.useState(null),k=async O=>{if(O.preventDefault(),!!i){S(!0),_(null);try{await x(i),s("otp")}catch(I){_(I)}finally{S(!1)}}},y=async O=>{if(O.preventDefault(),d.length===6){S(!0),_(null);try{const I=await w(i,d);I.data&&(p(I.data.token),s("reset"))}catch(I){_(I)}finally{S(!1)}}},M=async O=>{var I,P;if(O.preventDefault(),m===v&&!(m.length<8)){S(!0),_(null);try{const T=await A(f,m);if(T.data){const $=T.data,E=$.signin_attempts&&$.signin_attempts.length>0?$.signin_attempts[$.signin_attempts.length-1]:null;if(E&&!E.completed){const F=(I=r==null?void 0:r.ui_settings)==null?void 0:I.sign_in_page_url;if(F){const L=new URL(F,window.location.origin);L.searchParams.set("signin_attempt_id",E.id),a(L.toString())}else e()}else{const F=((P=r==null?void 0:r.ui_settings)==null?void 0:P.after_signin_redirect_url)||"/";a(F)}}}catch(T){_(T)}finally{S(!1)}}},z=()=>t.jsxs(t.Fragment,{children:[t.jsx(
|
|
1304
|
+
`;function p4({onBack:e}){const{deployment:r}=Ae(),{navigate:a}=yt(),[n,s]=c.useState("start"),[i,h]=c.useState(""),[d,u]=c.useState(""),[f,p]=c.useState(""),[m,g]=c.useState(""),[v,b]=c.useState(""),{forgotPassword:x,verifyOtp:w,resetPassword:A}=b0(),[j,S]=c.useState(!1),[C,_]=c.useState(null),k=async O=>{if(O.preventDefault(),!!i){S(!0),_(null);try{await x(i),s("otp")}catch(I){_(I)}finally{S(!1)}}},y=async O=>{if(O.preventDefault(),d.length===6){S(!0),_(null);try{const I=await w(i,d);I.data&&(p(I.data.token),s("reset"))}catch(I){_(I)}finally{S(!1)}}},M=async O=>{var I,P;if(O.preventDefault(),m===v&&!(m.length<8)){S(!0),_(null);try{const T=await A(f,m);if(T.data){const $=T.data,E=$.signin_attempts&&$.signin_attempts.length>0?$.signin_attempts[$.signin_attempts.length-1]:null;if(E&&!E.completed){const F=(I=r==null?void 0:r.ui_settings)==null?void 0:I.sign_in_page_url;if(F){const L=new URL(F,window.location.origin);L.searchParams.set("signin_attempt_id",E.id),a(L.toString())}else e()}else{const F=((P=r==null?void 0:r.ui_settings)==null?void 0:P.after_signin_redirect_url)||"/";a(F)}}}catch(T){_(T)}finally{S(!1)}}},z=()=>t.jsxs(t.Fragment,{children:[t.jsx(Je,{}),t.jsx(Da,{children:t.jsx(Na,{children:"Forgot Password"})}),t.jsx(l4,{onClick:()=>s("email"),disabled:j,children:"Reset your password"}),t.jsx(d4,{children:t.jsx(u4,{children:"Or, sign in with another method"})}),t.jsx(A1,{}),t.jsxs(Ua,{children:[t.jsxs(da,{children:["Unable to reset password? ",t.jsx(ua,{href:"/contact",children:"Get help"})]}),t.jsx(da,{style:{marginTop:"var(--space-4u)"},children:t.jsx(ua,{onClick:e,style:{cursor:"pointer"},children:"Back to login"})})]})]});return t.jsx(ge,{children:t.jsxs(c4,{children:[n==="start"&&z(),n==="email"&&t.jsxs(t.Fragment,{children:[t.jsx(Je,{}),t.jsxs(Da,{children:[t.jsx(Na,{children:"Forgot Password"}),t.jsx(uo,{children:"Enter your email address and we'll send you a code to reset your password."})]}),t.jsxs(Ft,{onSubmit:k,noValidate:!0,children:[t.jsxs(Se,{children:[t.jsx(be,{htmlFor:"email",children:"Email Address"}),t.jsx(ue,{type:"email",id:"email",value:i,onChange:O=>h(O.target.value),placeholder:"Enter your email",required:!0})]}),C&&t.jsx(po,{children:C.message}),t.jsx(N,{type:"submit",$fullWidth:!0,disabled:j,style:{marginTop:"var(--space-6u)"},children:j?t.jsx(lo,{size:16}):"Send Code"})]}),t.jsx(Ua,{children:t.jsx(da,{style:{marginTop:"var(--space-4u)"},children:t.jsx(ua,{onClick:e,style:{cursor:"pointer"},children:"Back to login"})})})]}),n==="otp"&&t.jsxs(t.Fragment,{children:[t.jsx(Je,{}),t.jsxs(Da,{children:[t.jsx(Na,{children:"Enter Verification Code"}),t.jsxs(uo,{children:["We've sent a 6-digit code to ",i,". Please enter it below."]})]}),t.jsxs(Ft,{onSubmit:y,noValidate:!0,children:[t.jsx(dr,{onComplete:O=>u(O),isSubmitting:j,error:C==null?void 0:C.message,onResend:async()=>{await x(i)}}),C&&t.jsx(po,{children:C.message}),t.jsx(N,{type:"submit",$fullWidth:!0,disabled:j||d.length!==6,style:{marginTop:"var(--space-6u)"},children:j?t.jsx(lo,{size:16}):"Verify"})]}),t.jsx(Ua,{children:t.jsx(da,{style:{marginTop:"var(--space-4u)"},children:t.jsx(ua,{onClick:e,style:{cursor:"pointer"},children:"Back to login"})})})]}),n==="reset"&&t.jsxs(t.Fragment,{children:[t.jsx(Je,{}),t.jsxs(Da,{children:[t.jsx(Na,{children:"Reset Password"}),t.jsx(uo,{children:"Create a new password for your account."})]}),t.jsxs(Ft,{onSubmit:M,noValidate:!0,children:[t.jsxs(Se,{children:[t.jsx(be,{htmlFor:"password",children:"New Password"}),t.jsx(ue,{type:"password",id:"password",value:m,onChange:O=>g(O.target.value),placeholder:"Enter new password",required:!0})]}),t.jsxs(Se,{children:[t.jsx(be,{htmlFor:"confirmPassword",children:"Confirm New Password"}),t.jsx(ue,{type:"password",id:"confirmPassword",value:v,onChange:O=>b(O.target.value),placeholder:"Confirm new password",required:!0})]}),C&&t.jsx(po,{children:C.message}),t.jsx(N,{type:"submit",$fullWidth:!0,disabled:j,style:{marginTop:"var(--space-6u)"},children:j?t.jsx(lo,{size:16}):"Reset Password"})]}),t.jsx(Ua,{children:t.jsx(da,{style:{marginTop:"var(--space-4u)"},children:t.jsx(ua,{onClick:e,style:{cursor:"pointer"},children:"Back to login"})})})]})]})})}const h4=l.div`
|
|
1305
1305
|
${Et}
|
|
1306
1306
|
`,f4=l.div`
|
|
1307
1307
|
margin-bottom: var(--space-8u);
|
|
@@ -1339,7 +1339,7 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
1339
1339
|
&:hover {
|
|
1340
1340
|
color: var(--color-primary);
|
|
1341
1341
|
}
|
|
1342
|
-
`;function b4({onBack:e}){var n;const{deployment:r}=Ae(),a=(n=r==null?void 0:r.ui_settings)==null?void 0:n.app_name;return t.jsx(ge,{children:t.jsxs(h4,{children:[t.jsx(
|
|
1342
|
+
`;function b4({onBack:e}){var n;const{deployment:r}=Ae(),a=(n=r==null?void 0:r.ui_settings)==null?void 0:n.app_name;return t.jsx(ge,{children:t.jsxs(h4,{children:[t.jsx(Je,{}),t.jsxs(f4,{children:[t.jsx(m4,{children:"All sign-in methods"}),t.jsxs(g4,{children:["Choose another way to sign in to"," ",a||"your account"]})]}),t.jsx(A1,{}),t.jsx(v4,{children:t.jsx(x4,{type:"button",onClick:e,children:"Back to sign in"})})]})})}const w4=l.div`
|
|
1343
1343
|
${Et}
|
|
1344
1344
|
`,y4=l.div`
|
|
1345
1345
|
text-align: center;
|
|
@@ -1430,7 +1430,7 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
1430
1430
|
&:hover {
|
|
1431
1431
|
color: var(--color-primary-hover);
|
|
1432
1432
|
}
|
|
1433
|
-
`;function z1({methods:e,onSelectMethod:r,onBack:a}){const n=s=>{r(s)};return t.jsx(ge,{children:t.jsxs(w4,{children:[t.jsx(
|
|
1433
|
+
`;function z1({methods:e,onSelectMethod:r,onBack:a}){const n=s=>{r(s)};return t.jsx(ge,{children:t.jsxs(w4,{children:[t.jsx(Je,{}),t.jsxs(y4,{children:[t.jsx(j4,{children:"Two-factor authentication"}),t.jsx(_4,{children:"Choose how you'd like to verify your identity"})]}),t.jsx(k4,{children:e.map(s=>t.jsxs(C4,{onClick:()=>n(s.id),disabled:!s.available,type:"button",children:[s.icon,t.jsxs(S4,{children:[t.jsx(E4,{children:s.name}),t.jsxs(A4,{children:[s.description,s.phoneNumber&&` ${s.phoneNumber}`]})]})]},s.id))}),a&&t.jsx(z4,{children:t.jsx($4,{onClick:a,style:{cursor:"pointer"},children:"Back to login"})})]})})}const M4=mt`
|
|
1434
1434
|
from { transform: rotate(0deg); }
|
|
1435
1435
|
to { transform: rotate(360deg); }
|
|
1436
1436
|
`,L4=l(wt)`
|
|
@@ -1450,12 +1450,12 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
1450
1450
|
`,F4=l.p`
|
|
1451
1451
|
color: var(--color-secondary-text);
|
|
1452
1452
|
font-size: var(--font-size-md);
|
|
1453
|
-
`,
|
|
1453
|
+
`,I4=l.p`
|
|
1454
1454
|
font-size: var(--font-size-xs);
|
|
1455
1455
|
color: var(--color-error);
|
|
1456
1456
|
margin: 0;
|
|
1457
1457
|
margin-top: var(--space-1u);
|
|
1458
|
-
`,
|
|
1458
|
+
`,Z4=l(N)`
|
|
1459
1459
|
margin-top: var(--space-4u);
|
|
1460
1460
|
width: 100%;
|
|
1461
1461
|
`,O4=l.div`
|
|
@@ -1475,7 +1475,7 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
1475
1475
|
}
|
|
1476
1476
|
`,V4=l(ue)`
|
|
1477
1477
|
padding: var(--space-4u) var(--space-6u);
|
|
1478
|
-
`;function $1({onVerify:e,onBack:r,loading:a}){const[n,s]=c.useState(""),[i,h]=c.useState(""),d=f=>{if(f.preventDefault(),n.length!==4){h("Please enter the last 4 digits of your phone number");return}e(n)},u=f=>{const p=f.target.value.replace(/\D/g,"").slice(0,4);s(p),h("")};return t.jsx(ge,{children:t.jsxs(R4,{children:[t.jsx(
|
|
1478
|
+
`;function $1({onVerify:e,onBack:r,loading:a}){const[n,s]=c.useState(""),[i,h]=c.useState(""),d=f=>{if(f.preventDefault(),n.length!==4){h("Please enter the last 4 digits of your phone number");return}e(n)},u=f=>{const p=f.target.value.replace(/\D/g,"").slice(0,4);s(p),h("")};return t.jsx(ge,{children:t.jsxs(R4,{children:[t.jsx(Je,{}),t.jsxs(P4,{children:[t.jsx(T4,{children:"Verify Phone"}),t.jsx(F4,{children:"Enter the last 4 digits of your phone number."})]}),t.jsxs(Ft,{onSubmit:d,noValidate:!0,children:[t.jsxs(Se,{children:[t.jsx(be,{htmlFor:"lastDigits",children:"Last 4 digits"}),t.jsx(V4,{type:"text",id:"lastDigits",name:"lastDigits",value:n,onChange:u,placeholder:"0000",maxLength:4,autoComplete:"off","aria-invalid":!!i,autoFocus:!0}),i&&t.jsx(I4,{children:i})]}),t.jsx(Z4,{type:"submit",disabled:a||n.length!==4,children:a?t.jsx(L4,{size:16}):"Send code"})]}),t.jsx(O4,{children:t.jsx(H4,{onClick:r,style:{cursor:"pointer"},children:"Choose a different method"})})]})})}const D4=()=>t.jsx("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:t.jsx("path",{d:"M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z"})}),N4=()=>t.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[t.jsx("rect",{x:"5",y:"2",width:"14",height:"20",rx:"2",ry:"2"}),t.jsx("path",{d:"M12 18h.01"})]}),U4=()=>t.jsx("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:t.jsx("path",{d:"m21 2-2 2m-7.61 7.61a5.5 5.5 0 1 1-7.778 7.778 5.5 5.5 0 0 1 7.777-7.777zm0 0L15.5 7.5m0 0 3 3L22 7l-3-3m-3.5 3.5L19 4"})}),ho=l.div`
|
|
1479
1479
|
${Et}
|
|
1480
1480
|
`,M1=mt`
|
|
1481
1481
|
from {
|
|
@@ -1506,10 +1506,10 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
1506
1506
|
color: var(--color-card-foreground);
|
|
1507
1507
|
margin-bottom: var(--space-2u);
|
|
1508
1508
|
margin-top: 0;
|
|
1509
|
-
`,
|
|
1509
|
+
`,Ii=l.p`
|
|
1510
1510
|
color: var(--color-secondary-text);
|
|
1511
1511
|
font-size: var(--font-size-md);
|
|
1512
|
-
`,
|
|
1512
|
+
`,Zi=l.p`
|
|
1513
1513
|
font-size: var(--font-size-xs);
|
|
1514
1514
|
color: var(--color-error);
|
|
1515
1515
|
margin: 0;
|
|
@@ -1534,7 +1534,7 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
1534
1534
|
}
|
|
1535
1535
|
`,q4=l(ue)`
|
|
1536
1536
|
padding: var(--space-4u) var(--space-6u);
|
|
1537
|
-
`;function L1({onBack:e,attempt:r,completeVerification:a,prepareVerification:n}){const{deployment:s}=Ae(),[i,h]=c.useState(""),[d,u]=c.useState({}),[f,p]=c.useState(!1),[m,g]=c.useState(null),[v,b]=c.useState(!0),[x,w]=c.useState(!1),[A,j]=c.useState(""),[S,C]=c.useState(!1),{navigate:_}=yt(),k=(r==null?void 0:r.available_2fa_methods)||[],y=[{id:"authenticator",name:"Authenticator app",description:"Use your authenticator app",icon:t.jsx(D4,{}),available:k.includes("authenticator")},{id:"phone_otp",name:"Text message",description:"Get a code via SMS",icon:t.jsx(N4,{}),available:k.includes("phone_otp"),phoneNumber:A},{id:"backup_code",name:"Backup code",description:"Use one of your backup codes",icon:t.jsx(U4,{}),available:k.includes("backup_code")}].filter(P=>P.available),M=async P=>{g(P),b(!1),P==="phone_otp"&&w(!0)},z=async P=>{var T,$;if(r){p(!0);try{const E=await n({strategy:"phone_otp",lastDigits:P});E&&"data"in E&&((T=E.data)!=null&&T.otp_sent)?(($=E.data)!=null&&$.masked_phone&&j(E.data.masked_phone),w(!1)):u({phone:"Phone number verification failed"})}catch(E){u({phone:E.message})}finally{p(!1)}}},O=async(P,T)=>{if(P.preventDefault(),f)return;const $=T||i,E={};if($?m==="authenticator"&&$.length!==6?E.code="Authentication code must be 6 digits":m==="phone_otp"&&$.length!==6&&(E.code="SMS code must be 6 digits"):E.code="Verification code is required",u(E),!(Object.keys(E).length>0)){p(!0);try{await a($)}catch(F){u({submit:F.message})}finally{p(!1)}}},I=P=>{let T=P.target.value;m!=="backup_code"&&(T=T.replace(/\D/g,"").slice(0,6)),h(T),u($=>({...$,code:""}))};return c.useEffect(()=>{var P;if(r.completed){C(!0);let T=new URLSearchParams(window.location.search).get("redirect_uri");if(T||(T=((P=s==null?void 0:s.ui_settings)==null?void 0:P.after_signin_redirect_url)||null),!T&&(s!=null&&s.frontend_host)&&(T=`https://${s.frontend_host}`),T){let $;try{$=new URL(T)}catch{$=new URL(T,window.location.origin)}(s==null?void 0:s.mode)==="staging"&&$.searchParams.set("__dev_session__",ht(s.backend_host)||""),_($.toString())}return}},[r,s]),S?t.jsx(ge,{children:t.jsxs(ho,{children:[t.jsx(
|
|
1537
|
+
`;function L1({onBack:e,attempt:r,completeVerification:a,prepareVerification:n}){const{deployment:s}=Ae(),[i,h]=c.useState(""),[d,u]=c.useState({}),[f,p]=c.useState(!1),[m,g]=c.useState(null),[v,b]=c.useState(!0),[x,w]=c.useState(!1),[A,j]=c.useState(""),[S,C]=c.useState(!1),{navigate:_}=yt(),k=(r==null?void 0:r.available_2fa_methods)||[],y=[{id:"authenticator",name:"Authenticator app",description:"Use your authenticator app",icon:t.jsx(D4,{}),available:k.includes("authenticator")},{id:"phone_otp",name:"Text message",description:"Get a code via SMS",icon:t.jsx(N4,{}),available:k.includes("phone_otp"),phoneNumber:A},{id:"backup_code",name:"Backup code",description:"Use one of your backup codes",icon:t.jsx(U4,{}),available:k.includes("backup_code")}].filter(P=>P.available),M=async P=>{g(P),b(!1),P==="phone_otp"&&w(!0)},z=async P=>{var T,$;if(r){p(!0);try{const E=await n({strategy:"phone_otp",lastDigits:P});E&&"data"in E&&((T=E.data)!=null&&T.otp_sent)?(($=E.data)!=null&&$.masked_phone&&j(E.data.masked_phone),w(!1)):u({phone:"Phone number verification failed"})}catch(E){u({phone:E.message})}finally{p(!1)}}},O=async(P,T)=>{if(P.preventDefault(),f)return;const $=T||i,E={};if($?m==="authenticator"&&$.length!==6?E.code="Authentication code must be 6 digits":m==="phone_otp"&&$.length!==6&&(E.code="SMS code must be 6 digits"):E.code="Verification code is required",u(E),!(Object.keys(E).length>0)){p(!0);try{await a($)}catch(F){u({submit:F.message})}finally{p(!1)}}},I=P=>{let T=P.target.value;m!=="backup_code"&&(T=T.replace(/\D/g,"").slice(0,6)),h(T),u($=>({...$,code:""}))};return c.useEffect(()=>{var P;if(r.completed){C(!0);let T=new URLSearchParams(window.location.search).get("redirect_uri");if(T||(T=((P=s==null?void 0:s.ui_settings)==null?void 0:P.after_signin_redirect_url)||null),!T&&(s!=null&&s.frontend_host)&&(T=`https://${s.frontend_host}`),T){let $;try{$=new URL(T)}catch{$=new URL(T,window.location.origin)}(s==null?void 0:s.mode)==="staging"&&$.searchParams.set("__dev_session__",ht(s.backend_host)||""),_($.toString())}return}},[r,s]),S?t.jsx(ge,{children:t.jsxs(ho,{children:[t.jsx(Je,{}),t.jsx(W4,{children:t.jsx(wt,{size:32})})]})}):v?y.length===0?t.jsx(ge,{children:t.jsxs(ho,{children:[t.jsx(Je,{}),t.jsxs(Ti,{children:[t.jsx(Fi,{children:"Set Up Two-Factor Authentication"}),t.jsx(Ii,{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(Oi,{children:[e&&t.jsx("div",{children:t.jsx(pa,{onClick:e,style:{cursor:"pointer"},children:"Back to login"})}),t.jsxs("div",{style:{marginTop:"var(--space-4u)"},children:["Having trouble?"," ",t.jsx(pa,{children:t.jsx(Pt,{to:(s==null?void 0:s.ui_settings.support_page_url)||"#",children:"Get help"})})]})]})]})}):t.jsx(z1,{methods:y,onSelectMethod:M,onBack:e}):x&&m==="phone_otp"?t.jsx($1,{onVerify:z,onBack:()=>{w(!1),b(!0),g(null)},loading:f}):t.jsx(ge,{children:t.jsxs(ho,{children:[t.jsx(Je,{}),t.jsxs(Ti,{children:[t.jsx(Fi,{children:"Two-factor authentication"}),t.jsxs(Ii,{children:[m==="authenticator"&&"Enter the 6-digit code from your authenticator app",m==="phone_otp"&&`Enter the 6-digit code sent to your phone ${A}`,m==="backup_code"&&"Enter one of your backup codes"]})]}),t.jsxs(Ft,{onSubmit:O,noValidate:!0,children:[m==="backup_code"?t.jsxs(Se,{children:[t.jsx(be,{htmlFor:"code",children:"Backup code"}),t.jsx(q4,{type:"text",id:"code",name:"code",value:i,onChange:I,placeholder:"Enter backup code",maxLength:20,autoComplete:"one-time-code","aria-invalid":!!d.code,autoFocus:!0}),d.code&&t.jsx(Zi,{children:d.code})]}):t.jsx(dr,{onComplete:async P=>{if(h(P),m!=="backup_code"){const T=new Event("submit",{bubbles:!0,cancelable:!0});await O(T,P)}},onResend:m==="phone_otp"?async()=>{try{await n({strategy:"phone_otp",lastDigits:A.slice(-4)})}catch(P){u({submit:P.message})}}:void 0,error:d.code,isSubmitting:f}),t.jsxs("div",{children:[d.submit&&t.jsx(Zi,{children:d.submit}),t.jsx(G4,{type:"submit",disabled:f||!i,children:f?t.jsx(B4,{size:16}):"Verify"})]})]}),t.jsxs(Oi,{children:[t.jsx(pa,{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(pa,{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(pa,{onClick:e,style:{cursor:"pointer"},children:"Back to login"})})]})]})})}const K4=mt`
|
|
1538
1538
|
from { transform: rotate(0deg); }
|
|
1539
1539
|
to { transform: rotate(360deg); }
|
|
1540
1540
|
`,Y4=l(wt)`
|
|
@@ -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 R1({attempt:e,onBack:r,completeProfile:a,completeVerification:n,prepareVerification:s}){var H,Z,R,W,D,B,Y,X,ce;const{deployment:i}=Ae(),{navigate:h}=yt(),[d,u]=c.useState({}),[f,p]=c.useState({}),[m,g]=c.useState("US"),[v,b]=c.useState(!1),[x,w]=c.useState(!1),[A,j]=c.useState(null),[S,C]=c.useState(!1),_=A,k=x,y=async me=>{var te;w(!0),j(null);try{if(await a(me)){C(!0);let re=new URLSearchParams(window.location.search).get("redirect_uri");if(re||(re=((te=i==null?void 0:i.ui_settings)==null?void 0:te.after_signin_redirect_url)||null),!re&&(i!=null&&i.frontend_host)&&(re=`https://${i.frontend_host}`),re){let U;try{U=new URL(re)}catch{U=new URL(re,window.location.origin)}(i==null?void 0:i.mode)==="staging"&&U.searchParams.set("__dev_session__",ht(i.backend_host)||""),h(U.toString())}}}catch(xe){const re=xe;throw j(re),re}finally{w(!1)}},M=async me=>{var te;w(!0),j(null);try{if(await n(me)){C(!0);let re=new URLSearchParams(window.location.search).get("redirect_uri");if(re||(re=((te=i==null?void 0:i.ui_settings)==null?void 0:te.after_signin_redirect_url)||null),!re&&(i!=null&&i.frontend_host)&&(re=`https://${i.frontend_host}`),re){let U;try{U=new URL(re)}catch{U=new URL(re,window.location.origin)}(i==null?void 0:i.mode)==="staging"&&U.searchParams.set("__dev_session__",ht(i.backend_host)||""),h(U.toString())}}return!0}catch(xe){return j(xe),!1}finally{w(!1)}};if(S||!e)return t.jsx(ge,{children:t.jsxs(fo,{children:[t.jsx(
|
|
1602
|
+
`;function R1({attempt:e,onBack:r,completeProfile:a,completeVerification:n,prepareVerification:s}){var H,Z,R,W,D,B,Y,X,ce;const{deployment:i}=Ae(),{navigate:h}=yt(),[d,u]=c.useState({}),[f,p]=c.useState({}),[m,g]=c.useState("US"),[v,b]=c.useState(!1),[x,w]=c.useState(!1),[A,j]=c.useState(null),[S,C]=c.useState(!1),_=A,k=x,y=async me=>{var te;w(!0),j(null);try{if(await a(me)){C(!0);let re=new URLSearchParams(window.location.search).get("redirect_uri");if(re||(re=((te=i==null?void 0:i.ui_settings)==null?void 0:te.after_signin_redirect_url)||null),!re&&(i!=null&&i.frontend_host)&&(re=`https://${i.frontend_host}`),re){let U;try{U=new URL(re)}catch{U=new URL(re,window.location.origin)}(i==null?void 0:i.mode)==="staging"&&U.searchParams.set("__dev_session__",ht(i.backend_host)||""),h(U.toString())}}}catch(xe){const re=xe;throw j(re),re}finally{w(!1)}},M=async me=>{var te;w(!0),j(null);try{if(await n(me)){C(!0);let re=new URLSearchParams(window.location.search).get("redirect_uri");if(re||(re=((te=i==null?void 0:i.ui_settings)==null?void 0:te.after_signin_redirect_url)||null),!re&&(i!=null&&i.frontend_host)&&(re=`https://${i.frontend_host}`),re){let U;try{U=new URL(re)}catch{U=new URL(re,window.location.origin)}(i==null?void 0:i.mode)==="staging"&&U.searchParams.set("__dev_session__",ht(i.backend_host)||""),h(U.toString())}}return!0}catch(xe){return j(xe),!1}finally{w(!1)}};if(S||!e)return t.jsx(ge,{children:t.jsxs(fo,{children:[t.jsx(Je,{}),t.jsx(X4,{children:t.jsx(wt,{size:32})})]})});const z=e.missing_fields||[],O="Complete Your Profile",I="Please provide the following information to continue",P=i==null?void 0:i.auth_settings,T=(e==null?void 0:e.current_step)==="verify_phone_otp"||(e==null?void 0:e.current_step)==="verify_email_otp"||v,$=me=>{const{name:te,value:xe}=me.target;u(re=>({...re,[te]:xe})),f[te]&&p(re=>({...re,[te]:""}))},E=()=>{const me={};return z.forEach(te=>{var U,Qe,Te,Ve,Ue;const xe=d[te];let re=!1;switch(te){case"first_name":re=((U=P==null?void 0:P.first_name)==null?void 0:U.enabled)||!1;break;case"last_name":re=((Qe=P==null?void 0:P.last_name)==null?void 0:Qe.enabled)||!1;break;case"username":re=((Te=P==null?void 0:P.username)==null?void 0:Te.enabled)||!1;break;case"phone_number":re=((Ve=P==null?void 0:P.phone_number)==null?void 0:Ve.enabled)||!1;break;case"email_address":re=((Ue=P==null?void 0:P.email_address)==null?void 0:Ue.enabled)||!1;break;default:re=!0}if(re&&(!xe||xe.trim()==="")){const ve=te.replace("_"," ").replace(/\b\w/g,J=>J.toUpperCase());me[te]=`${ve} is required`}}),d.username&&z.includes("username")&&(/^[a-zA-Z0-9_-]{3,30}$/.test(d.username)||(me.username="Username must be 3-30 characters and contain only letters, numbers, underscores, and hyphens")),d.phone_number&&z.includes("phone_number")&&(/^\d{7,15}$/.test(d.phone_number)||(me.phone_number="Phone number must contain 7-15 digits")),d.email&&z.includes("email_address")&&(/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/.test(d.email)||(me.email_address="Please enter a valid email address")),p(me),Object.keys(me).length===0},F=async me=>{if(me.preventDefault(),!E())return;const te={...d};d.phone_number&&m&&(te.phone_country_code=m),await y(te)},L=me=>{const te=me.target.value;u(xe=>({...xe,phone_number:te})),f.phone_number&&p(xe=>({...xe,phone_number:""}))};if(T){const me=e.current_step==="verify_phone_otp"?"Verify Your Phone Number":"Verify Your Email",te=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(ge,{children:t.jsxs(fo,{children:[t.jsx(Je,{}),t.jsxs(Hi,{children:[t.jsx(Vi,{children:me}),t.jsx(Di,{children:te})]}),t.jsxs(Ft,{onSubmit:re=>re.preventDefault(),noValidate:!0,children:[t.jsx(dr,{onComplete:M,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(Ni,{children:[t.jsx("div",{children:t.jsx(Ba,{onClick:()=>b(!1),style:{cursor:"pointer"},children:"Back to profile completion"})}),t.jsxs("div",{style:{marginTop:"var(--space-4u)"},children:["Having trouble?"," ",t.jsx(Ba,{children:t.jsx(Pt,{to:(i==null?void 0:i.ui_settings.support_page_url)||"#",children:"Get help"})})]})]})]})})}return t.jsx(ge,{children:t.jsxs(fo,{children:[t.jsx(Je,{}),t.jsxs(Hi,{children:[t.jsx(Vi,{children:O}),t.jsx(Di,{children:I})]}),t.jsxs(Ft,{onSubmit:F,noValidate:!0,children:[(z.includes("first_name")||z.includes("last_name"))&&(((H=P==null?void 0:P.first_name)==null?void 0:H.enabled)||((Z=P==null?void 0:P.last_name)==null?void 0:Z.enabled))&&t.jsxs(Q4,{$isBothEnabled:!!((R=P==null?void 0:P.first_name)!=null&&R.enabled&&((W=P==null?void 0:P.last_name)!=null&&W.enabled)&&z.includes("first_name")&&z.includes("last_name")),children:[z.includes("first_name")&&((D=P==null?void 0:P.first_name)==null?void 0:D.enabled)&&t.jsxs(Se,{children:[t.jsxs(be,{htmlFor:"first_name",children:["First name ",P.first_name.required&&"*"]}),t.jsx(ue,{type:"text",id:"first_name",name:"first_name",value:d.first_name||"",onChange:$,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})]}),z.includes("last_name")&&((B=P==null?void 0:P.last_name)==null?void 0:B.enabled)&&t.jsxs(Se,{children:[t.jsxs(be,{htmlFor:"last_name",children:["Last name ",P.last_name.required&&"*"]}),t.jsx(ue,{type:"text",id:"last_name",name:"last_name",value:d.last_name||"",onChange:$,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})]})]}),z.includes("username")&&((Y=P==null?void 0:P.username)==null?void 0:Y.enabled)&&t.jsxs(Se,{children:[t.jsxs(be,{htmlFor:"username",children:["Username ",P.username.required&&"*"]}),t.jsx(ue,{type:"text",id:"username",name:"username",value:d.username||"",onChange:$,placeholder:"Choose a username","aria-invalid":!!f.username,disabled:k,autoComplete:"username"}),f.username&&t.jsx(vr,{children:f.username})]}),z.includes("phone_number")&&((X=P==null?void 0:P.phone_number)==null?void 0:X.enabled)&&t.jsxs(Se,{children:[t.jsxs(be,{htmlFor:"phone_number",children:["Phone number ",P.phone_number.required&&"*"]}),t.jsx($a,{value:d.phone_number||"",onChange:L,error:f.phone_number,countryCode:m,setCountryCode:g}),f.phone_number&&t.jsx(vr,{children:f.phone_number})]}),z.includes("email_address")&&((ce=P==null?void 0:P.email_address)==null?void 0:ce.enabled)&&t.jsxs(Se,{children:[t.jsxs(be,{htmlFor:"email",children:["Email address ",P.email_address.required&&"*"]}),t.jsx(ue,{type:"email",id:"email",name:"email",value:d.email||"",onChange:$,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(J4,{type:"submit",disabled:k,children:k?t.jsx(Y4,{size:16}):"Continue"})]}),t.jsxs(Ni,{children:[r&&t.jsx("div",{children:t.jsx(Ba,{onClick:r,style:{cursor:"pointer"},children:"Back to login"})}),t.jsxs("div",{style:{marginTop:"var(--space-4u)"},children:["Having trouble?"," ",t.jsx(Ba,{children:t.jsx(Pt,{to:(i==null?void 0:i.ui_settings.support_page_url)||"#",children:"Get help"})})]})]})]})})}const eg=l.div`
|
|
1603
1603
|
text-align: center;
|
|
1604
1604
|
margin-bottom: var(--space-12u);
|
|
1605
1605
|
`,tg=l.div`
|
|
@@ -2046,7 +2046,7 @@ 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 Mg(){return t.jsx(r4,{children:t.jsx(Lg,{})})}function Lg(){var Ge,dt,ur,pr,Qt,Jt,Nt,hr,fr,bt,ie,ye,Me,De,Xe,tt,ft,_t,ae,Re,et,qe,kt;const{deployment:e}=Ae(),{navigate:r}=yt(),{session:a,loading:n,refetch:s,exchangeTicket:i,switchSignIn:h}=st(),d=((dt=(Ge=e==null?void 0:e.auth_settings)==null?void 0:Ge.multi_session_support)==null?void 0:dt.enabled)??!1,{setEmail:u,otpSent:f,setOtpSent:p,showForgotPassword:m,setShowForgotPassword:g,showOtherOptions:v,setShowOtherOptions:b,enabledSocialsProviders:x,firstFactor:w,setFirstFactor:A,signInStep:j,setSignInStep:S}=E1(),{loading:C,signIn:_,signinAttempt:k,discardSignInAttempt:y,setSignInAttempt:M}=wa("generic"),{signIn:z}=wa("oauth"),{signIn:O}=wa("passkey"),[I,P]=c.useState({email:"",username:"",password:"",phone:""}),[T,$]=c.useState({}),[E,F]=c.useState(!1),[L,H]=c.useState(""),[Z,R]=c.useState("US"),[W,D]=c.useState(!1),[B,Y]=c.useState(null),[X,ce]=c.useState(!1),[me,te]=c.useState(!1),[xe,re]=c.useState(!1),[U,Ye]=c.useState(60),[Te,Ve]=c.useState(!1),[Ue,ve]=c.useState(null),J=[...(a==null?void 0:a.signins)||[]].sort((K,ee)=>{var ne,Fe;return K.id===((ne=a==null?void 0:a.active_signin)==null?void 0:ne.id)?-1:ee.id===((Fe=a==null?void 0:a.active_signin)==null?void 0:Fe.id)?1:0});c.useEffect(()=>{const K=new URLSearchParams(window.location.search),ee=K.get("error"),ne=K.get("error_description");if(ee==="access_denied"&&ne){Y(ne),K.delete("error"),K.delete("error_description");const Fe=K.toString()?`${window.location.pathname}?${K.toString()}`:window.location.pathname;window.history.replaceState({},"",Fe)}},[]),c.useEffect(()=>{if(w!=="email_magic_link"||!f)return;Ye(60),Ve(!1);const K=setInterval(()=>{Ye(ee=>ee<=1?(Ve(!0),clearInterval(K),0):ee-1)},1e3);return()=>clearInterval(K)},[w,f]),c.useEffect(()=>{var K,ee,ne,Fe;if(!n&&(a!=null&&a.active_signin)&&!d&&!W&&!X){let Pe=new URLSearchParams(window.location.search).get("redirect_uri");Pe||(Pe=((K=e==null?void 0:e.ui_settings)==null?void 0:K.after_signin_redirect_url)||null),!Pe&&(e!=null&&e.frontend_host)&&(Pe=`https://${e.frontend_host}`);const rt=(ee=e==null?void 0:e.auth_settings)==null?void 0:ee.passkey;(rt==null?void 0:rt.enabled)&&(rt==null?void 0:rt.prompt_registration_on_auth)&&!((Fe=(ne=a.active_signin)==null?void 0:ne.user)!=null&&Fe.has_passkeys)?(ve(Pe),ce(!0)):Pe&&(D(!0),r(Pe))}},[a,n,d,e,r,W]);const le=K=>{let{name:ee,value:ne}=K.target;ee==="phone"?ne=ne.replace(/[^0-9]/g,""):ee==="email"&&(u(ne),ne=ne.toLowerCase()),P(Fe=>({...Fe,[ee]:ne})),$(Fe=>({...Fe,[ee]:""}))},oe=()=>{P({email:"",username:"",password:"",phone:""}),$({}),R("US"),S("identifier")},G=async K=>{if(!K){$({email:"Email address is required"});return}F(!0),$({});try{const ee=await _.identify(K);if(ee.strategy==="sso"&&ee.connection_id){const Fe=new URLSearchParams(window.location.search).get("redirect_uri")||void 0,Pe=await _.initEnterpriseSso(ee.connection_id,Fe);if(Pe&&Pe.sso_url){D(!0),window.location.href=Pe.sso_url;return}}else if(ee.strategy==="social"&&ee.provider){const ne=x.find(Fe=>Fe.provider===ee.provider);if(ne){const Pe=new URLSearchParams(window.location.search).get("redirect_uri")||void 0,{data:rt}=await z.create({provider:ne.provider,redirectUri:Pe});if(rt&&typeof rt=="object"&&"oauth_url"in rt){D(!0),window.location.href=rt.oauth_url;return}}else S("password")}else S("password")}catch(ee){$({submit:ee.message})}finally{W||F(!1)}},pe=async K=>{if(K.preventDefault(),C||E)return;y();const ee={};if(j==="identifier"&&w==="email_password"){if(!I.email){$({email:"Email address is required"});return}await G(I.email);return}if(w==="email_password"?(I.email||(ee.email="Email address is required"),I.password||(ee.password="Password is required")):w==="username_password"?(I.username||(ee.username="Username is required"),I.password||(ee.password="Password is required")):w==="email_otp"||w==="email_magic_link"?I.email||(ee.email="Email address is required"):w==="phone_otp"&&(I.phone?/^\d{7,15}$/.test(I.phone)||(ee.phone="Phone number must contain 7-15 digits"):ee.phone="Phone number is required"),$(ee),Object.keys(ee).length>0)return;let ne="";switch(w){case"email_password":ne="plain_email";break;case"username_password":ne="plain_username";break;case"email_otp":ne="email_otp";break;case"email_magic_link":ne="magic_link";break;case"phone_otp":ne="phone_otp";break}const Fe=w==="email_otp"||w==="email_magic_link"||w==="phone_otp";F(!0);try{const Pe={...I,strategy:ne};w==="phone_otp"&&Z&&(Pe.phone_country_code=Z),await _.create(Pe),Fe||F(!1)}catch(Pe){$({submit:Pe.message}),F(!1)}},fe=async K=>{if(K.preventDefault(),C||E)return;const ee={};if(!L){ee.otp="OTP code is required",$(ee);return}F(!0),$({});try{await _.completeVerification(L),p(!1),H("")}catch(ne){$({otp:ne.message||"Verification failed"})}finally{F(!1)}},q=async K=>{if(!(C||E)){F(!0);try{const ne=new URLSearchParams(window.location.search).get("redirect_uri")||void 0,{data:Fe}=await z.create({provider:K.provider,redirectUri:ne});Fe&&typeof Fe=="object"&&"oauth_url"in Fe&&(window.location.href=Fe.oauth_url)}catch(ee){$({submit:ee.message})}finally{F(!1)}}},de=async()=>{var K;if(!(C||E)){F(!0),$({});try{const ee=await O.create();if("data"in ee&&ee.data){await s();let ne=new URLSearchParams(window.location.search).get("redirect_uri");ne||(ne=((K=e==null?void 0:e.ui_settings)==null?void 0:K.after_signin_redirect_url)||null),!ne&&(e!=null&&e.frontend_host)&&(ne=`https://${e.frontend_host}`),D(!0),ne&&r(ne)}}catch(ee){$({submit:ee.message||"Passkey sign-in failed"})}finally{F(!1)}}},Be=()=>{var ne;let K=new URLSearchParams(window.location.search).get("redirect_uri");if(K||(K=((ne=e==null?void 0:e.ui_settings)==null?void 0:ne.after_signin_redirect_url)||null),!K&&(e!=null&&e.frontend_host)&&(K=`https://${e.frontend_host}`),!K)return null;let ee;try{ee=new URL(K)}catch{ee=new URL(K,window.location.origin)}return(e==null?void 0:e.mode)==="staging"&&ee.searchParams.set("__dev_session__",ht(e.backend_host)||""),ee.toString()},We=async K=>{if(!(C||E)){$({}),F(!0);try{await h(K);const ee=Be();ee&&(D(!0),r(ee))}catch(ee){$({submit:ee.message||"Failed to continue with selected account"})}finally{F(!1)}}},Q=(K,ee)=>`${K||""} ${ee||""}`.trim().split(" ").filter(Boolean).map(ne=>ne[0]).join("").toUpperCase().slice(0,2)||"?",se=c.useRef(!1);if(c.useEffect(()=>{if(n)return;const K=new URLSearchParams(window.location.search),ee=K.get("ticket");if(ee&&!se.current&&!C){se.current=!0,K.delete("ticket");const Fe=K.toString()?`${window.location.pathname}?${K.toString()}`:window.location.pathname;window.history.replaceState({},"",Fe),(async()=>{var rt;try{F(!0),await i(ee),D(!0);let vt=new URLSearchParams(window.location.search).get("redirect_uri");if(vt||(vt=((rt=e==null?void 0:e.ui_settings)==null?void 0:rt.after_signin_redirect_url)||null),!vt&&(e!=null&&e.frontend_host)&&(vt=`https://${e.frontend_host}`),vt){let Pa;try{Pa=new URL(vt)}catch{Pa=new URL(vt,window.location.origin)}(e==null?void 0:e.mode)==="staging"&&Pa.searchParams.set("__dev_session__",ht(e.backend_host)||""),r(Pa.toString())}return}catch(vt){$({submit:vt.message||"Failed to exchange ticket"}),se.current=!1}finally{F(!1)}})();return}const ne=K.get("signin_attempt_id");if(ne&&(a!=null&&a.signin_attempts)&&!k){const Fe=a.signin_attempts.find(Pe=>Pe.id===ne);if(Fe){M(Fe),K.delete("signin_attempt_id");const Pe=K.toString()?`${window.location.pathname}?${K.toString()}`:window.location.pathname;window.history.replaceState({},"",Pe)}}},[a,n,k,M,C]),c.useEffect(()=>{var Fe;if(!k)return;if(k.completed){D(!0);let Pe=new URLSearchParams(window.location.search).get("redirect_uri");if(Pe||(Pe=((Fe=e==null?void 0:e.ui_settings)==null?void 0:Fe.after_signin_redirect_url)||null),!Pe&&(e!=null&&e.frontend_host)&&(Pe=`https://${e.frontend_host}`),Pe){let rt;try{rt=new URL(Pe)}catch{rt=new URL(Pe,window.location.origin)}(e==null?void 0:e.mode)==="staging"&&rt.searchParams.set("__dev_session__",ht(e.backend_host)||""),r(rt.toString())}return}if(!_||f)return;const ee={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(!ee)return;(async()=>{try{await _.prepareVerification({strategy:ee}),F(!1),p(!0)}catch{$({submit:"Failed to send verification. Please try again."}),F(!1)}})()},[k,_,f,p,r,e]),v)return t.jsx(b4,{onBack:()=>b(!1)});if(m)return t.jsx(p4,{onBack:()=>g(!1)});if((k==null?void 0:k.current_step)==="verify_second_factor")return t.jsx(L1,{attempt:k,completeVerification:_.completeVerification,prepareVerification:_.prepareVerification,onBack:()=>{y(),oe(),p(!1)}});if((k==null?void 0:k.current_step)==="complete_profile")return t.jsx(R1,{attempt:k,completeProfile:_.completeProfile,completeVerification:_.completeVerification,prepareVerification:_.prepareVerification,onBack:()=>{y(),oe(),p(!1)}});if(X){const K=()=>{ce(!1),Ue&&(D(!0),r(Ue))},ee=()=>{ce(!1),Ue&&(D(!0),r(Ue))};return t.jsx(ge,{children:t.jsxs(Wa,{children:[t.jsx(Qe,{}),t.jsx(P1,{onComplete:K,onSkip:ee})]})})}if(n)return t.jsx(ge,{children:t.jsxs(Wa,{children:[t.jsx(Qe,{}),t.jsx(Ui,{children:t.jsx(wt,{size:32})})]})});if(W)return t.jsx(ge,{children:t.jsxs(Wa,{children:[t.jsx(Qe,{}),t.jsx(Ui,{children:t.jsx(wt,{size:32})})]})});const _e=(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,ke=d&&!_e&&J.length>0&&!xe;return t.jsx(ge,{children:t.jsxs(Wa,{children:[t.jsx(Qe,{}),_e?t.jsxs(Bi,{children:[!((ur=e==null?void 0:e.ui_settings)!=null&&ur.logo_image_url)&&t.jsx(_g,{children:w==="phone_otp"?t.jsx(Es,{weight:"light"}):t.jsx(Fn,{weight:"light"})}),t.jsx(Wi,{children:w==="phone_otp"?"Check your phone":w==="email_magic_link"?"Check your inbox":"Enter the code"}),t.jsx(Gi,{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")&&I.email&&t.jsx(tc,{children:t.jsxs(rc,{type:"button",onClick:()=>{p(!1),y(),oe()},children:[t.jsx(is,{weight:"light"}),I.email]})}),w==="phone_otp"&&I.phone&&t.jsx(tc,{children:t.jsxs(rc,{type:"button",onClick:()=>{p(!1),y(),oe()},children:[t.jsx(is,{weight:"light"}),"+",I.phone]})})]}):t.jsxs(Bi,{children:[t.jsx(Wi,{children:"Sign in to your account"}),t.jsxs(Gi,{children:["Please enter your details to continue to"," ",(e==null?void 0:e.ui_settings.app_name)||"App","!"]})]}),B&&t.jsxs(Eg,{children:[t.jsx(Ag,{children:"Access Denied"}),t.jsx(zg,{children:B}),t.jsx($g,{onClick:()=>Y(null),children:"Try again"})]}),ke&&(me?t.jsxs(wg,{children:[t.jsx(yg,{children:"Choose an account"}),J.map(K=>{var ee,ne,Fe,Pe;return t.jsxs(cs,{type:"button",onClick:()=>We(K.id),disabled:E||C,children:[t.jsx(Ji,{children:K.user.has_profile_picture?t.jsx("img",{src:K.user.profile_picture_url,alt:((ee=K.user.primary_email_address)==null?void 0:ee.email)||"account"}):Q(K.user.first_name,K.user.last_name)}),t.jsxs(Xi,{children:[t.jsx(ec,{children:K.user.first_name&&K.user.last_name?`${K.user.first_name} ${K.user.last_name}`:K.user.first_name||((Fe=(ne=K.user.primary_email_address)==null?void 0:ne.email)==null?void 0:Fe.split("@")[0])||"Account"}),t.jsx(jg,{children:(Pe=K.user.primary_email_address)==null?void 0:Pe.email})]}),t.jsx(go,{})]},K.id)}),t.jsxs(cs,{type:"button",onClick:()=>{te(!1),re(!0),oe()},children:[t.jsx(Ji,{children:t.jsx($f,{size:16})}),t.jsx(Xi,{children:t.jsx(ec,{children:"Use a different account"})}),t.jsx(go,{})]})]}):t.jsxs(fg,{type:"button",onClick:()=>We(J[0].id),disabled:E||C,children:[t.jsx(mg,{children:J[0].user.has_profile_picture?t.jsx("img",{src:J[0].user.profile_picture_url,alt:((pr=J[0].user.primary_email_address)==null?void 0:pr.email)||"account"}):Q(J[0].user.first_name,J[0].user.last_name)}),t.jsxs(gg,{children:[t.jsxs(vg,{children:["Welcome back,"," ",J[0].user.first_name||((Jt=(Qt=J[0].user.primary_email_address)==null?void 0:Qt.email)==null?void 0:Jt.split("@")[0])||"back"]}),t.jsx(xg,{children:(Nt=J[0].user.primary_email_address)==null?void 0:Nt.email})]}),t.jsx(bg,{onClick:K=>{K.stopPropagation(),J.length>1?te(!0):(re(!0),oe())},children:"Not you?"})]})),_e?w==="email_magic_link"?t.jsxs(t.Fragment,{children:[t.jsx(kg,{children:Te?t.jsx(Sg,{type:"button",onClick:async()=>{Ve(!1),Ye(60);try{await _.prepareVerification({strategy:"magic_link"})}catch{}},children:"Resend magic link"}):t.jsxs(Cg,{children:["Resend in ",U,"s"]})}),t.jsxs(mo,{children:["Having trouble?"," ",t.jsx(fa,{children:t.jsx(Pt,{to:e.ui_settings.support_page_url,children:"Get help"})})]})]}):t.jsxs(t.Fragment,{children:[t.jsxs(Ft,{style:{gap:"var(--space-7u)"},onSubmit:fe,noValidate:!0,children:[t.jsx(dr,{onComplete:async K=>{if(H(K),K&&K.length===6){F(!0),$({});try{await _.completeVerification(K),p(!1)}catch(ee){$({otp:ee.message||"Verification failed"})}finally{F(!1)}}},onResend:async()=>{const K=w==="email_otp"?"email_otp":"phone_otp";await _.prepareVerification({strategy:K})},error:T.otp,isSubmitting:E}),t.jsx(Yi,{type:"submit",$fullWidth:!0,$size:"md",disabled:E||C||!L,style:{margin:0},children:E&&L?t.jsx(Qi,{size:16}):`Continue to ${(kt=e==null?void 0:e.ui_settings)==null?void 0:kt.app_name}`})]}),t.jsxs(mo,{children:["Having trouble?"," ",t.jsx(fa,{children:t.jsx(Pt,{to:e.ui_settings.support_page_url,children:"Get help"})})]})]}):t.jsxs(t.Fragment,{children:[x.length>0&&t.jsx(t.Fragment,{children:t.jsx($s,{connections:x,callback:q})}),((fr=(hr=e==null?void 0:e.auth_settings)==null?void 0:hr.passkey)==null?void 0:fr.enabled)&&t.jsxs(hg,{type:"button",$fullWidth:!0,$outline:!0,$size:"md",onClick:de,disabled:E,children:[t.jsx(ss,{size:16}),"Sign in with Passkey",t.jsx(go,{})]}),(x.length>0||((ie=(bt=e==null?void 0:e.auth_settings)==null?void 0:bt.passkey)==null?void 0:ie.enabled))&&t.jsx(qi,{children:t.jsx(Ki,{children:"or"})}),t.jsxs(Ft,{onSubmit:pe,noValidate:!0,children:[(w==="email_password"||w==="email_otp"||w==="email_magic_link")&&((Me=(ye=e==null?void 0:e.auth_settings)==null?void 0:ye.email_address)==null?void 0:Me.enabled)&&t.jsxs(Se,{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(fa,{style:{fontSize:"var(--font-size-sm)"},onClick:()=>b(!0),children:"Other methods"})]}),j==="password"&&w==="email_password"&&I.email?t.jsxs(lg,{children:[t.jsx(dg,{children:t.jsx(kf,{})}),t.jsx(ug,{children:I.email}),t.jsx(pg,{type:"button",onClick:()=>S("identifier"),children:"Edit"})]}):t.jsx(ue,{type:"email",id:"email",name:"email",value:I.email,onChange:le,placeholder:"Enter your email address","aria-invalid":!!T.email}),T.email&&t.jsx(ha,{children:T.email})]}),w==="username_password"&&((Xe=(De=e==null?void 0:e.auth_settings)==null?void 0:De.username)==null?void 0:Xe.enabled)&&t.jsxs(Se,{children:[t.jsx(be,{htmlFor:"username",children:"Username"}),t.jsx(ue,{type:"text",id:"username",name:"username",value:I.username,onChange:le,placeholder:"Enter your username","aria-invalid":!!T.username}),T.username&&t.jsx(ha,{children:T.username})]}),w==="phone_otp"&&((ft=(tt=e==null?void 0:e.auth_settings)==null?void 0:tt.phone_number)==null?void 0:ft.enabled)&&t.jsxs(Se,{children:[t.jsx(be,{htmlFor:"phone",children:"Phone number"}),t.jsx($a,{value:I.phone,onChange:le,error:T.phone,countryCode:Z,setCountryCode:R}),T.phone&&t.jsx(ha,{children:T.phone})]}),j==="password"&&(w==="email_password"||w==="username_password")&&((ae=(_t=e==null?void 0:e.auth_settings)==null?void 0:_t.password)==null?void 0:ae.enabled)&&t.jsxs(Se,{children:[t.jsxs("div",{style:{display:"flex",justifyContent:"space-between"},children:[t.jsx(be,{htmlFor:"password",children:"Password"}),t.jsx(fa,{style:{fontSize:"var(--font-size-sm)"},onClick:()=>g(!0),children:"Forgot password?"})]}),t.jsx(cg,{children:t.jsx(ue,{type:"password",id:"password",name:"password",value:I.password,onChange:le,placeholder:"Enter your password","aria-invalid":!!T.password})}),T.password&&t.jsx(ha,{children:T.password})]}),t.jsxs("div",{children:[T.submit&&t.jsx(ha,{children:T.submit}),t.jsx(Yi,{type:"submit",$fullWidth:!0,$size:"md",disabled:E||C,children:E?t.jsx(Qi,{size:16}):j==="identifier"?"Continue":"Sign in"}),j==="password"&&((et=(Re=e==null?void 0:e.auth_settings)==null?void 0:Re.auth_factors_enabled)==null?void 0:et.email_otp)&&t.jsxs(t.Fragment,{children:[t.jsx(qi,{style:{margin:"var(--space-6u) 0 var(--space-5u)"},children:t.jsx(Ki,{children:"or"})}),t.jsx(C1,{type:"button",icon:t.jsx(Fd,{}),label:"Sign in with a code",description:"We'll send a 6-digit code to your email",disabled:E,onClick:async()=>{F(!0),$({});try{await _.create({email:I.email,strategy:"email_otp"}),A("email_otp")}catch(K){$({submit:K.message}),F(!1)}}})]})]})]}),t.jsxs(mo,{children:["Don't have an account?"," ",t.jsx(fa,{children:t.jsx(Pt,{to:`${(qe=e.ui_settings)==null?void 0:qe.sign_up_page_url}${window.location.search}`,children:"Sign up"})})]})]})]})})}const Rg=mt`
|
|
2049
|
+
`;function Mg(){return t.jsx(r4,{children:t.jsx(Lg,{})})}function Lg(){var Ge,dt,ur,pr,Qt,Jt,Nt,hr,fr,bt,ie,ye,Me,De,et,rt,ft,_t,ae,Re,tt,qe,kt;const{deployment:e}=Ae(),{navigate:r}=yt(),{session:a,loading:n,refetch:s,exchangeTicket:i,switchSignIn:h}=st(),d=((dt=(Ge=e==null?void 0:e.auth_settings)==null?void 0:Ge.multi_session_support)==null?void 0:dt.enabled)??!1,{setEmail:u,otpSent:f,setOtpSent:p,showForgotPassword:m,setShowForgotPassword:g,showOtherOptions:v,setShowOtherOptions:b,enabledSocialsProviders:x,firstFactor:w,setFirstFactor:A,signInStep:j,setSignInStep:S}=E1(),{loading:C,signIn:_,signinAttempt:k,discardSignInAttempt:y,setSignInAttempt:M}=wa("generic"),{signIn:z}=wa("oauth"),{signIn:O}=wa("passkey"),[I,P]=c.useState({email:"",username:"",password:"",phone:""}),[T,$]=c.useState({}),[E,F]=c.useState(!1),[L,H]=c.useState(""),[Z,R]=c.useState("US"),[W,D]=c.useState(!1),[B,Y]=c.useState(null),[X,ce]=c.useState(!1),[me,te]=c.useState(!1),[xe,re]=c.useState(!1),[U,Qe]=c.useState(60),[Te,Ve]=c.useState(!1),[Ue,ve]=c.useState(null),J=[...(a==null?void 0:a.signins)||[]].sort((K,ee)=>{var ne,Fe;return K.id===((ne=a==null?void 0:a.active_signin)==null?void 0:ne.id)?-1:ee.id===((Fe=a==null?void 0:a.active_signin)==null?void 0:Fe.id)?1:0});c.useEffect(()=>{const K=new URLSearchParams(window.location.search),ee=K.get("error"),ne=K.get("error_description");if(ee==="access_denied"&&ne){Y(ne),K.delete("error"),K.delete("error_description");const Fe=K.toString()?`${window.location.pathname}?${K.toString()}`:window.location.pathname;window.history.replaceState({},"",Fe)}},[]),c.useEffect(()=>{if(w!=="email_magic_link"||!f)return;Qe(60),Ve(!1);const K=setInterval(()=>{Qe(ee=>ee<=1?(Ve(!0),clearInterval(K),0):ee-1)},1e3);return()=>clearInterval(K)},[w,f]),c.useEffect(()=>{var K,ee,ne,Fe;if(!n&&(a!=null&&a.active_signin)&&!d&&!W&&!X){let Pe=new URLSearchParams(window.location.search).get("redirect_uri");Pe||(Pe=((K=e==null?void 0:e.ui_settings)==null?void 0:K.after_signin_redirect_url)||null),!Pe&&(e!=null&&e.frontend_host)&&(Pe=`https://${e.frontend_host}`);const at=(ee=e==null?void 0:e.auth_settings)==null?void 0:ee.passkey;(at==null?void 0:at.enabled)&&(at==null?void 0:at.prompt_registration_on_auth)&&!((Fe=(ne=a.active_signin)==null?void 0:ne.user)!=null&&Fe.has_passkeys)?(ve(Pe),ce(!0)):Pe&&(D(!0),r(Pe))}},[a,n,d,e,r,W]);const le=K=>{let{name:ee,value:ne}=K.target;ee==="phone"?ne=ne.replace(/[^0-9]/g,""):ee==="email"&&(u(ne),ne=ne.toLowerCase()),P(Fe=>({...Fe,[ee]:ne})),$(Fe=>({...Fe,[ee]:""}))},oe=()=>{P({email:"",username:"",password:"",phone:""}),$({}),R("US"),S("identifier")},G=async K=>{if(!K){$({email:"Email address is required"});return}F(!0),$({});try{const ee=await _.identify(K);if(ee.strategy==="sso"&&ee.connection_id){const Fe=new URLSearchParams(window.location.search).get("redirect_uri")||void 0,Pe=await _.initEnterpriseSso(ee.connection_id,Fe);if(Pe&&Pe.sso_url){D(!0),window.location.href=Pe.sso_url;return}}else if(ee.strategy==="social"&&ee.provider){const ne=x.find(Fe=>Fe.provider===ee.provider);if(ne){const Pe=new URLSearchParams(window.location.search).get("redirect_uri")||void 0,{data:at}=await z.create({provider:ne.provider,redirectUri:Pe});if(at&&typeof at=="object"&&"oauth_url"in at){D(!0),window.location.href=at.oauth_url;return}}else S("password")}else S("password")}catch(ee){$({submit:ee.message})}finally{W||F(!1)}},pe=async K=>{if(K.preventDefault(),C||E)return;y();const ee={};if(j==="identifier"&&w==="email_password"){if(!I.email){$({email:"Email address is required"});return}await G(I.email);return}if(w==="email_password"?(I.email||(ee.email="Email address is required"),I.password||(ee.password="Password is required")):w==="username_password"?(I.username||(ee.username="Username is required"),I.password||(ee.password="Password is required")):w==="email_otp"||w==="email_magic_link"?I.email||(ee.email="Email address is required"):w==="phone_otp"&&(I.phone?/^\d{7,15}$/.test(I.phone)||(ee.phone="Phone number must contain 7-15 digits"):ee.phone="Phone number is required"),$(ee),Object.keys(ee).length>0)return;let ne="";switch(w){case"email_password":ne="plain_email";break;case"username_password":ne="plain_username";break;case"email_otp":ne="email_otp";break;case"email_magic_link":ne="magic_link";break;case"phone_otp":ne="phone_otp";break}const Fe=w==="email_otp"||w==="email_magic_link"||w==="phone_otp";F(!0);try{const Pe={...I,strategy:ne};w==="phone_otp"&&Z&&(Pe.phone_country_code=Z),await _.create(Pe),Fe||F(!1)}catch(Pe){$({submit:Pe.message}),F(!1)}},fe=async K=>{if(K.preventDefault(),C||E)return;const ee={};if(!L){ee.otp="OTP code is required",$(ee);return}F(!0),$({});try{await _.completeVerification(L),p(!1),H("")}catch(ne){$({otp:ne.message||"Verification failed"})}finally{F(!1)}},q=async K=>{if(!(C||E)){F(!0);try{const ne=new URLSearchParams(window.location.search).get("redirect_uri")||void 0,{data:Fe}=await z.create({provider:K.provider,redirectUri:ne});Fe&&typeof Fe=="object"&&"oauth_url"in Fe&&(window.location.href=Fe.oauth_url)}catch(ee){$({submit:ee.message})}finally{F(!1)}}},de=async()=>{var K;if(!(C||E)){F(!0),$({});try{const ee=await O.create();if("data"in ee&&ee.data){await s();let ne=new URLSearchParams(window.location.search).get("redirect_uri");ne||(ne=((K=e==null?void 0:e.ui_settings)==null?void 0:K.after_signin_redirect_url)||null),!ne&&(e!=null&&e.frontend_host)&&(ne=`https://${e.frontend_host}`),D(!0),ne&&r(ne)}}catch(ee){$({submit:ee.message||"Passkey sign-in failed"})}finally{F(!1)}}},Be=()=>{var ne;let K=new URLSearchParams(window.location.search).get("redirect_uri");if(K||(K=((ne=e==null?void 0:e.ui_settings)==null?void 0:ne.after_signin_redirect_url)||null),!K&&(e!=null&&e.frontend_host)&&(K=`https://${e.frontend_host}`),!K)return null;let ee;try{ee=new URL(K)}catch{ee=new URL(K,window.location.origin)}return(e==null?void 0:e.mode)==="staging"&&ee.searchParams.set("__dev_session__",ht(e.backend_host)||""),ee.toString()},We=async K=>{if(!(C||E)){$({}),F(!0);try{await h(K);const ee=Be();ee&&(D(!0),r(ee))}catch(ee){$({submit:ee.message||"Failed to continue with selected account"})}finally{F(!1)}}},Q=(K,ee)=>`${K||""} ${ee||""}`.trim().split(" ").filter(Boolean).map(ne=>ne[0]).join("").toUpperCase().slice(0,2)||"?",se=c.useRef(!1);if(c.useEffect(()=>{if(n)return;const K=new URLSearchParams(window.location.search),ee=K.get("ticket");if(ee&&!se.current&&!C){se.current=!0,K.delete("ticket");const Fe=K.toString()?`${window.location.pathname}?${K.toString()}`:window.location.pathname;window.history.replaceState({},"",Fe),(async()=>{var at;try{F(!0),await i(ee),D(!0);let vt=new URLSearchParams(window.location.search).get("redirect_uri");if(vt||(vt=((at=e==null?void 0:e.ui_settings)==null?void 0:at.after_signin_redirect_url)||null),!vt&&(e!=null&&e.frontend_host)&&(vt=`https://${e.frontend_host}`),vt){let Pa;try{Pa=new URL(vt)}catch{Pa=new URL(vt,window.location.origin)}(e==null?void 0:e.mode)==="staging"&&Pa.searchParams.set("__dev_session__",ht(e.backend_host)||""),r(Pa.toString())}return}catch(vt){$({submit:vt.message||"Failed to exchange ticket"}),se.current=!1}finally{F(!1)}})();return}const ne=K.get("signin_attempt_id");if(ne&&(a!=null&&a.signin_attempts)&&!k){const Fe=a.signin_attempts.find(Pe=>Pe.id===ne);if(Fe){M(Fe),K.delete("signin_attempt_id");const Pe=K.toString()?`${window.location.pathname}?${K.toString()}`:window.location.pathname;window.history.replaceState({},"",Pe)}}},[a,n,k,M,C]),c.useEffect(()=>{var Fe;if(!k)return;if(k.completed){D(!0);let Pe=new URLSearchParams(window.location.search).get("redirect_uri");if(Pe||(Pe=((Fe=e==null?void 0:e.ui_settings)==null?void 0:Fe.after_signin_redirect_url)||null),!Pe&&(e!=null&&e.frontend_host)&&(Pe=`https://${e.frontend_host}`),Pe){let at;try{at=new URL(Pe)}catch{at=new URL(Pe,window.location.origin)}(e==null?void 0:e.mode)==="staging"&&at.searchParams.set("__dev_session__",ht(e.backend_host)||""),r(at.toString())}return}if(!_||f)return;const ee={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(!ee)return;(async()=>{try{await _.prepareVerification({strategy:ee}),F(!1),p(!0)}catch{$({submit:"Failed to send verification. Please try again."}),F(!1)}})()},[k,_,f,p,r,e]),v)return t.jsx(b4,{onBack:()=>b(!1)});if(m)return t.jsx(p4,{onBack:()=>g(!1)});if((k==null?void 0:k.current_step)==="verify_second_factor")return t.jsx(L1,{attempt:k,completeVerification:_.completeVerification,prepareVerification:_.prepareVerification,onBack:()=>{y(),oe(),p(!1)}});if((k==null?void 0:k.current_step)==="complete_profile")return t.jsx(R1,{attempt:k,completeProfile:_.completeProfile,completeVerification:_.completeVerification,prepareVerification:_.prepareVerification,onBack:()=>{y(),oe(),p(!1)}});if(X){const K=()=>{ce(!1),Ue&&(D(!0),r(Ue))},ee=()=>{ce(!1),Ue&&(D(!0),r(Ue))};return t.jsx(ge,{children:t.jsxs(Wa,{children:[t.jsx(Je,{}),t.jsx(P1,{onComplete:K,onSkip:ee})]})})}if(n)return t.jsx(ge,{children:t.jsxs(Wa,{children:[t.jsx(Je,{}),t.jsx(Ui,{children:t.jsx(wt,{size:32})})]})});if(W)return t.jsx(ge,{children:t.jsxs(Wa,{children:[t.jsx(Je,{}),t.jsx(Ui,{children:t.jsx(wt,{size:32})})]})});const _e=(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,ke=d&&!_e&&J.length>0&&!xe;return t.jsx(ge,{children:t.jsxs(Wa,{children:[t.jsx(Je,{}),_e?t.jsxs(Bi,{children:[!((ur=e==null?void 0:e.ui_settings)!=null&&ur.logo_image_url)&&t.jsx(_g,{children:w==="phone_otp"?t.jsx(Es,{weight:"light"}):t.jsx(Fn,{weight:"light"})}),t.jsx(Wi,{children:w==="phone_otp"?"Check your phone":w==="email_magic_link"?"Check your inbox":"Enter the code"}),t.jsx(Gi,{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")&&I.email&&t.jsx(tc,{children:t.jsxs(rc,{type:"button",onClick:()=>{p(!1),y(),oe()},children:[t.jsx(is,{weight:"light"}),I.email]})}),w==="phone_otp"&&I.phone&&t.jsx(tc,{children:t.jsxs(rc,{type:"button",onClick:()=>{p(!1),y(),oe()},children:[t.jsx(is,{weight:"light"}),"+",I.phone]})})]}):t.jsxs(Bi,{children:[t.jsx(Wi,{children:"Sign in to your account"}),t.jsxs(Gi,{children:["Please enter your details to continue to"," ",(e==null?void 0:e.ui_settings.app_name)||"App","!"]})]}),B&&t.jsxs(Eg,{children:[t.jsx(Ag,{children:"Access Denied"}),t.jsx(zg,{children:B}),t.jsx($g,{onClick:()=>Y(null),children:"Try again"})]}),ke&&(me?t.jsxs(wg,{children:[t.jsx(yg,{children:"Choose an account"}),J.map(K=>{var ee,ne,Fe,Pe;return t.jsxs(cs,{type:"button",onClick:()=>We(K.id),disabled:E||C,children:[t.jsx(Ji,{children:K.user.has_profile_picture?t.jsx("img",{src:K.user.profile_picture_url,alt:((ee=K.user.primary_email_address)==null?void 0:ee.email)||"account"}):Q(K.user.first_name,K.user.last_name)}),t.jsxs(Xi,{children:[t.jsx(ec,{children:K.user.first_name&&K.user.last_name?`${K.user.first_name} ${K.user.last_name}`:K.user.first_name||((Fe=(ne=K.user.primary_email_address)==null?void 0:ne.email)==null?void 0:Fe.split("@")[0])||"Account"}),t.jsx(jg,{children:(Pe=K.user.primary_email_address)==null?void 0:Pe.email})]}),t.jsx(go,{})]},K.id)}),t.jsxs(cs,{type:"button",onClick:()=>{te(!1),re(!0),oe()},children:[t.jsx(Ji,{children:t.jsx($f,{size:16})}),t.jsx(Xi,{children:t.jsx(ec,{children:"Use a different account"})}),t.jsx(go,{})]})]}):t.jsxs(fg,{type:"button",onClick:()=>We(J[0].id),disabled:E||C,children:[t.jsx(mg,{children:J[0].user.has_profile_picture?t.jsx("img",{src:J[0].user.profile_picture_url,alt:((pr=J[0].user.primary_email_address)==null?void 0:pr.email)||"account"}):Q(J[0].user.first_name,J[0].user.last_name)}),t.jsxs(gg,{children:[t.jsxs(vg,{children:["Welcome back,"," ",J[0].user.first_name||((Jt=(Qt=J[0].user.primary_email_address)==null?void 0:Qt.email)==null?void 0:Jt.split("@")[0])||"back"]}),t.jsx(xg,{children:(Nt=J[0].user.primary_email_address)==null?void 0:Nt.email})]}),t.jsx(bg,{onClick:K=>{K.stopPropagation(),J.length>1?te(!0):(re(!0),oe())},children:"Not you?"})]})),_e?w==="email_magic_link"?t.jsxs(t.Fragment,{children:[t.jsx(kg,{children:Te?t.jsx(Sg,{type:"button",onClick:async()=>{Ve(!1),Qe(60);try{await _.prepareVerification({strategy:"magic_link"})}catch{}},children:"Resend magic link"}):t.jsxs(Cg,{children:["Resend in ",U,"s"]})}),t.jsxs(mo,{children:["Having trouble?"," ",t.jsx(fa,{children:t.jsx(Pt,{to:e.ui_settings.support_page_url,children:"Get help"})})]})]}):t.jsxs(t.Fragment,{children:[t.jsxs(Ft,{style:{gap:"var(--space-7u)"},onSubmit:fe,noValidate:!0,children:[t.jsx(dr,{onComplete:async K=>{if(H(K),K&&K.length===6){F(!0),$({});try{await _.completeVerification(K),p(!1)}catch(ee){$({otp:ee.message||"Verification failed"})}finally{F(!1)}}},onResend:async()=>{const K=w==="email_otp"?"email_otp":"phone_otp";await _.prepareVerification({strategy:K})},error:T.otp,isSubmitting:E}),t.jsx(Yi,{type:"submit",$fullWidth:!0,$size:"md",disabled:E||C||!L,style:{margin:0},children:E&&L?t.jsx(Qi,{size:16}):`Continue to ${(kt=e==null?void 0:e.ui_settings)==null?void 0:kt.app_name}`})]}),t.jsxs(mo,{children:["Having trouble?"," ",t.jsx(fa,{children:t.jsx(Pt,{to:e.ui_settings.support_page_url,children:"Get help"})})]})]}):t.jsxs(t.Fragment,{children:[x.length>0&&t.jsx(t.Fragment,{children:t.jsx($s,{connections:x,callback:q})}),((fr=(hr=e==null?void 0:e.auth_settings)==null?void 0:hr.passkey)==null?void 0:fr.enabled)&&t.jsxs(hg,{type:"button",$fullWidth:!0,$outline:!0,$size:"md",onClick:de,disabled:E,children:[t.jsx(ss,{size:16}),"Sign in with Passkey",t.jsx(go,{})]}),(x.length>0||((ie=(bt=e==null?void 0:e.auth_settings)==null?void 0:bt.passkey)==null?void 0:ie.enabled))&&t.jsx(qi,{children:t.jsx(Ki,{children:"or"})}),t.jsxs(Ft,{onSubmit:pe,noValidate:!0,children:[(w==="email_password"||w==="email_otp"||w==="email_magic_link")&&((Me=(ye=e==null?void 0:e.auth_settings)==null?void 0:ye.email_address)==null?void 0:Me.enabled)&&t.jsxs(Se,{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(fa,{style:{fontSize:"var(--font-size-sm)"},onClick:()=>b(!0),children:"Other methods"})]}),j==="password"&&w==="email_password"&&I.email?t.jsxs(lg,{children:[t.jsx(dg,{children:t.jsx(kf,{})}),t.jsx(ug,{children:I.email}),t.jsx(pg,{type:"button",onClick:()=>S("identifier"),children:"Edit"})]}):t.jsx(ue,{type:"email",id:"email",name:"email",value:I.email,onChange:le,placeholder:"Enter your email address","aria-invalid":!!T.email}),T.email&&t.jsx(ha,{children:T.email})]}),w==="username_password"&&((et=(De=e==null?void 0:e.auth_settings)==null?void 0:De.username)==null?void 0:et.enabled)&&t.jsxs(Se,{children:[t.jsx(be,{htmlFor:"username",children:"Username"}),t.jsx(ue,{type:"text",id:"username",name:"username",value:I.username,onChange:le,placeholder:"Enter your username","aria-invalid":!!T.username}),T.username&&t.jsx(ha,{children:T.username})]}),w==="phone_otp"&&((ft=(rt=e==null?void 0:e.auth_settings)==null?void 0:rt.phone_number)==null?void 0:ft.enabled)&&t.jsxs(Se,{children:[t.jsx(be,{htmlFor:"phone",children:"Phone number"}),t.jsx($a,{value:I.phone,onChange:le,error:T.phone,countryCode:Z,setCountryCode:R}),T.phone&&t.jsx(ha,{children:T.phone})]}),j==="password"&&(w==="email_password"||w==="username_password")&&((ae=(_t=e==null?void 0:e.auth_settings)==null?void 0:_t.password)==null?void 0:ae.enabled)&&t.jsxs(Se,{children:[t.jsxs("div",{style:{display:"flex",justifyContent:"space-between"},children:[t.jsx(be,{htmlFor:"password",children:"Password"}),t.jsx(fa,{style:{fontSize:"var(--font-size-sm)"},onClick:()=>g(!0),children:"Forgot password?"})]}),t.jsx(cg,{children:t.jsx(ue,{type:"password",id:"password",name:"password",value:I.password,onChange:le,placeholder:"Enter your password","aria-invalid":!!T.password})}),T.password&&t.jsx(ha,{children:T.password})]}),t.jsxs("div",{children:[T.submit&&t.jsx(ha,{children:T.submit}),t.jsx(Yi,{type:"submit",$fullWidth:!0,$size:"md",disabled:E||C,children:E?t.jsx(Qi,{size:16}):j==="identifier"?"Continue":"Sign in"}),j==="password"&&((tt=(Re=e==null?void 0:e.auth_settings)==null?void 0:Re.auth_factors_enabled)==null?void 0:tt.email_otp)&&t.jsxs(t.Fragment,{children:[t.jsx(qi,{style:{margin:"var(--space-6u) 0 var(--space-5u)"},children:t.jsx(Ki,{children:"or"})}),t.jsx(C1,{type:"button",icon:t.jsx(Fd,{}),label:"Sign in with a code",description:"We'll send a 6-digit code to your email",disabled:E,onClick:async()=>{F(!0),$({});try{await _.create({email:I.email,strategy:"email_otp"}),A("email_otp")}catch(K){$({submit:K.message}),F(!1)}}})]})]})]}),t.jsxs(mo,{children:["Don't have an account?"," ",t.jsx(fa,{children:t.jsx(Pt,{to:`${(qe=e.ui_settings)==null?void 0:qe.sign_up_page_url}${window.location.search}`,children:"Sign up"})})]})]})]})})}const Rg=mt`
|
|
2050
2050
|
from { transform: rotate(0deg); }
|
|
2051
2051
|
to { transform: rotate(360deg); }
|
|
2052
2052
|
`,Pg=l(wt)`
|
|
@@ -2062,11 +2062,11 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
2062
2062
|
color: var(--color-card-foreground);
|
|
2063
2063
|
margin-bottom: var(--space-2u);
|
|
2064
2064
|
margin-top: 0;
|
|
2065
|
-
`,
|
|
2065
|
+
`,Ig=l.p`
|
|
2066
2066
|
color: var(--color-secondary-text);
|
|
2067
2067
|
font-size: var(--font-size-md);
|
|
2068
2068
|
margin: 0;
|
|
2069
|
-
`,
|
|
2069
|
+
`,Zg=l.form`
|
|
2070
2070
|
display: flex;
|
|
2071
2071
|
flex-direction: column;
|
|
2072
2072
|
gap: var(--space-6u);
|
|
@@ -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 Gg(){var w,A,j,S,C,_,k,y,M,z,O,I;const{deployment:e}=Ae(),{loading:r,joinWaitlist:a}=g0(),[n,s]=c.useState({first_name:"",last_name:"",email:""}),[i,h]=c.useState(!1),[d,u]=c.useState(!1),[f,p]=c.useState(null),m=P=>{if(f)return f.message},g=e==null?void 0:e.auth_settings,v=!!((w=g==null?void 0:g.first_name)!=null&&w.enabled&&((A=g==null?void 0:g.last_name)!=null&&A.enabled)),b=P=>{const{name:T,value:$}=P.target;s(E=>({...E,[T]:$}))},x=async P=>{if(P.preventDefault(),!!g){u(!0),p(null);try{(await a(n)).data&&h(!0)}catch(T){p(T)}finally{u(!1)}}};return i?t.jsx(ge,{children:t.jsx(ac,{children:t.jsxs(Hg,{children:[t.jsx(Vg,{children:t.jsx(ct,{size:32})}),t.jsx(Dg,{children:"You're on the waitlist!"}),t.jsxs(Ng,{children:["Thanks for your interest! We'll notify you at ",n.email," ","when we're ready for you to join."]})]})})}):t.jsx(ge,{children:t.jsxs(ac,{children:[t.jsx(
|
|
2131
|
+
`;function Gg(){var w,A,j,S,C,_,k,y,M,z,O,I;const{deployment:e}=Ae(),{loading:r,joinWaitlist:a}=g0(),[n,s]=c.useState({first_name:"",last_name:"",email:""}),[i,h]=c.useState(!1),[d,u]=c.useState(!1),[f,p]=c.useState(null),m=P=>{if(f)return f.message},g=e==null?void 0:e.auth_settings,v=!!((w=g==null?void 0:g.first_name)!=null&&w.enabled&&((A=g==null?void 0:g.last_name)!=null&&A.enabled)),b=P=>{const{name:T,value:$}=P.target;s(E=>({...E,[T]:$}))},x=async P=>{if(P.preventDefault(),!!g){u(!0),p(null);try{(await a(n)).data&&h(!0)}catch(T){p(T)}finally{u(!1)}}};return i?t.jsx(ge,{children:t.jsx(ac,{children:t.jsxs(Hg,{children:[t.jsx(Vg,{children:t.jsx(ct,{size:32})}),t.jsx(Dg,{children:"You're on the waitlist!"}),t.jsxs(Ng,{children:["Thanks for your interest! We'll notify you at ",n.email," ","when we're ready for you to join."]})]})})}):t.jsx(ge,{children:t.jsxs(ac,{children:[t.jsx(Je,{}),t.jsxs(Tg,{children:[t.jsx(Fg,{children:"Join the waitlist"}),t.jsx(Ig,{children:"Be the first to know when we launch!"})]}),t.jsxs(Zg,{onSubmit:x,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(Og,{$isBothEnabled:v,children:[((C=g==null?void 0:g.first_name)==null?void 0:C.enabled)&&t.jsxs(vo,{children:[t.jsxs(xo,{htmlFor:"first_name",children:["First name",((_=g==null?void 0:g.first_name)==null?void 0:_.required)&&t.jsx(bo,{children:"*"})]}),t.jsx(ue,{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:n.first_name,onChange:b,placeholder:"First name","aria-invalid":!!m()}),m()&&t.jsx(Ga,{children:m()})]}),((y=g==null?void 0:g.last_name)==null?void 0:y.enabled)&&t.jsxs(vo,{children:[t.jsxs(xo,{htmlFor:"last_name",children:["Last name",((M=g==null?void 0:g.last_name)==null?void 0:M.required)&&t.jsx(bo,{children:"*"})]}),t.jsx(ue,{type:"text",id:"last_name",name:"last_name",required:(z=g==null?void 0:g.last_name)==null?void 0:z.required,minLength:2,maxLength:50,value:n.last_name,onChange:b,placeholder:"Last name","aria-invalid":!!m()}),m()&&t.jsx(Ga,{children:m()})]})]}),t.jsxs(vo,{children:[t.jsxs(xo,{htmlFor:"email",children:["Email address",((O=g==null?void 0:g.email_address)==null?void 0:O.required)&&t.jsx(bo,{children:"*"})]}),t.jsx(ue,{type:"email",id:"email",name:"email",required:(I=g==null?void 0:g.email_address)==null?void 0:I.required,value:n.email,onChange:b,placeholder:"Enter your email address","aria-invalid":!!m()}),m()&&t.jsx(Ga,{children:m()})]}),m()&&t.jsx(Ga,{children:m()}),t.jsx(N,{type:"submit",$primary:!0,$fullWidth:!0,disabled:d||r,children:d||r?t.jsx(Pg,{size:16}):"Join waitlist"})]}),t.jsx(Ug,{children:t.jsxs(Bg,{children:["Need assistance? ",t.jsx(Wg,{href:"/contact",children:"Get help"})]})})]})})}const ma=l.div`
|
|
2132
2132
|
${Et}
|
|
2133
2133
|
`,qa=l.div`
|
|
2134
2134
|
text-align: center;
|
|
@@ -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 Jg(){const{deployment:e}=Ae(),{navigate:r}=yt(),{error:a,session:n,processed:s,signinAttempt:i,redirectUri:h,loading:d}=v0(),[u,f]=c.useState(!1),[p,m]=c.useState(null),g=()=>{window.location.reload()},v=()=>{var A;const w=((A=e==null?void 0:e.ui_settings)==null?void 0:A.sign_in_page_url)||"/sign-in";r(w)},b=()=>{f(!1),p&&r(p)},x=()=>{f(!1),p&&r(p)};if(c.useEffect(()=>{var w,A,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 _=h||((A=e==null?void 0:e.ui_settings)==null?void 0:A.after_signin_redirect_url)||(e==null?void 0:e.frontend_host)||"/";let k;try{k=new URL(_)}catch{k=new URL(_,window.location.origin)}if(k){(e==null?void 0:e.mode)==="staging"&&k.searchParams.set("__dev_session__",ht(e.backend_host)||"");const y=(j=e==null?void 0:e.auth_settings)==null?void 0:j.passkey;(y==null?void 0:y.enabled)&&(y==null?void 0:y.prompt_registration_on_auth)&&!((C=(S=n==null?void 0:n.active_signin)==null?void 0:S.user)!=null&&C.has_passkeys)?(m(k.toString()),f(!0)):r(k.toString())}}}},[n,s,d,h,e,i,r]),c.useEffect(()=>{a&&a.message.includes("No OAuth callback data found")&&setTimeout(()=>{var A;const w=((A=e==null?void 0:e.ui_settings)==null?void 0:A.sign_in_page_url)||(e==null?void 0:e.frontend_host);w&&r(w)},2e3)},[a,e,r]),d&&!s)return t.jsx(ge,{children:t.jsxs(ma,{children:[t.jsxs(qa,{children:[t.jsx(Ka,{children:"Completing sign in"}),t.jsx(Ya,{children:"Please wait while we authenticate you"})]}),t.jsxs(Qa,{children:[t.jsx(nc,{}),t.jsx(Ja,{children:"Verifying your credentials..."}),t.jsx(Xa,{children:"This will only take a moment."})]})]})});if(u)return t.jsx(ge,{children:t.jsxs(ma,{children:[t.jsx(
|
|
2213
|
+
`;function Jg(){const{deployment:e}=Ae(),{navigate:r}=yt(),{error:a,session:n,processed:s,signinAttempt:i,redirectUri:h,loading:d}=v0(),[u,f]=c.useState(!1),[p,m]=c.useState(null),g=()=>{window.location.reload()},v=()=>{var A;const w=((A=e==null?void 0:e.ui_settings)==null?void 0:A.sign_in_page_url)||"/sign-in";r(w)},b=()=>{f(!1),p&&r(p)},x=()=>{f(!1),p&&r(p)};if(c.useEffect(()=>{var w,A,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 _=h||((A=e==null?void 0:e.ui_settings)==null?void 0:A.after_signin_redirect_url)||(e==null?void 0:e.frontend_host)||"/";let k;try{k=new URL(_)}catch{k=new URL(_,window.location.origin)}if(k){(e==null?void 0:e.mode)==="staging"&&k.searchParams.set("__dev_session__",ht(e.backend_host)||"");const y=(j=e==null?void 0:e.auth_settings)==null?void 0:j.passkey;(y==null?void 0:y.enabled)&&(y==null?void 0:y.prompt_registration_on_auth)&&!((C=(S=n==null?void 0:n.active_signin)==null?void 0:S.user)!=null&&C.has_passkeys)?(m(k.toString()),f(!0)):r(k.toString())}}}},[n,s,d,h,e,i,r]),c.useEffect(()=>{a&&a.message.includes("No OAuth callback data found")&&setTimeout(()=>{var A;const w=((A=e==null?void 0:e.ui_settings)==null?void 0:A.sign_in_page_url)||(e==null?void 0:e.frontend_host);w&&r(w)},2e3)},[a,e,r]),d&&!s)return t.jsx(ge,{children:t.jsxs(ma,{children:[t.jsxs(qa,{children:[t.jsx(Ka,{children:"Completing sign in"}),t.jsx(Ya,{children:"Please wait while we authenticate you"})]}),t.jsxs(Qa,{children:[t.jsx(nc,{}),t.jsx(Ja,{children:"Verifying your credentials..."}),t.jsx(Xa,{children:"This will only take a moment."})]})]})});if(u)return t.jsx(ge,{children:t.jsxs(ma,{children:[t.jsx(Je,{}),t.jsx(P1,{onComplete:b,onSkip:x})]})});if(n&&s&&!a)return t.jsx(ge,{children:t.jsxs(ma,{children:[t.jsxs(qa,{children:[t.jsx(Ka,{children:"Success!"}),t.jsx(Ya,{children:"Authentication completed successfully"})]}),t.jsxs(Qa,{children:[t.jsx(Kg,{children:"✓"}),t.jsx(Ja,{children:"Redirecting you now..."}),t.jsx(Xa,{children:"You'll be redirected to your destination shortly."})]})]})});if(a){const w=a.message.includes("No OAuth callback data found");return t.jsx(ge,{children:t.jsxs(ma,{children:[t.jsxs(qa,{children:[t.jsx(Ka,{children:"Something went wrong"}),t.jsx(Ya,{children:"We couldn't complete your sign in"})]}),t.jsxs(Qa,{children:[t.jsx(qg,{children:"✗"}),t.jsx(Ja,{children:"Authentication Failed"}),t.jsx(Xa,{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(Yg,{children:t.jsxs("div",{children:["Having trouble?"," ",t.jsx(Qg,{onClick:v,children:"Return to sign in"})]})})]})})}return t.jsx(ge,{children:t.jsxs(ma,{children:[t.jsxs(qa,{children:[t.jsx(Ka,{children:"Completing sign in"}),t.jsx(Ya,{children:"Please wait while we authenticate you"})]}),t.jsxs(Qa,{children:[t.jsx(nc,{}),t.jsx(Ja,{children:"Verifying your credentials..."}),t.jsx(Xa,{children:"This will only take a moment."})]})]})})}const Xg=l.div`
|
|
2214
2214
|
${Et}
|
|
2215
2215
|
`,e6=l.div`
|
|
2216
2216
|
text-align: center;
|
|
@@ -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
|
-
`,
|
|
2577
|
+
`,Zn=({onSuccess:e,onCancel:r})=>{const[a,n]=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:v}=It(),{refetch:b}=st(),{toast:x}=gt(),w=y=>{n(y)},A=y=>{if(y.target.files&&y.target.files[0]){const M=y.target.files[0];if(M.size>2*1024*1024){x("File size cannot exceed 2MB","error");return}if(!M.type.startsWith("image/")){x("Please select a valid image file","error");return}u&&URL.revokeObjectURL(u),d(M),f(URL.createObjectURL(M))}},j=()=>{var y;(y=g.current)==null||y.click()},S=y=>y.split(" ").map(M=>M[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),M=C(s);if(!y){x("Please enter an organization name","error");return}if(!_(y)){x("Organization name must be 2-100 characters and contain only letters, numbers, spaces, dots, underscores, and hyphens","error");return}if(M.length>500){x("Description must be less than 500 characters","error");return}m(!0);try{const z=await v({name:y,description:M,image:h});await b(),e==null||e(z)}catch(z){const O=z.message||"Failed to create organization. Please try again.";x(O,"error")}finally{m(!1)}};return t.jsx(ge,{children:t.jsxs(m6,{children:[t.jsxs(g6,{children:[t.jsxs(F1,{hasImage:!!u,onClick:j,children:[u?t.jsx(x6,{src:u,alt:"Organization logo"}):t.jsx(b6,{children:S(a||"O")}),t.jsx(L6,{children:t.jsx(R6,{children:"Upload Logo"})})]}),t.jsx(M6,{type:"file",ref:g,onChange:A,accept:"image/png, image/jpeg, image/gif",disabled:p}),t.jsx(w6,{children:"Create new organization"}),t.jsx(y6,{children:"Organizations help you manage all your team members for an org in one umbrella."})]}),t.jsxs(v6,{children:[t.jsxs(j6,{children:[t.jsx(_6,{children:"Choose your organization name"}),t.jsx(k6,{children:"This is the name of your company or team. You can always change it later."})]}),t.jsxs(C6,{children:[t.jsxs(ic,{children:[t.jsx(cc,{children:"Organization name"}),t.jsx(S6,{type:"text",value:a,onChange:y=>w(y.target.value),placeholder:"Acme Inc.",disabled:p})]}),t.jsxs(ic,{children:[t.jsx(cc,{children:"Description (optional)"}),t.jsx(E6,{value:s,onChange:y=>i(y.target.value),placeholder:"What does your organization do?",disabled:p})]})]}),t.jsxs(A6,{children:[r?t.jsxs(z6,{onClick:r,disabled:p,children:[t.jsx(na,{size:16}),"Back"]}):t.jsx("div",{}),t.jsx($6,{onClick:k,disabled:p||!a.trim(),children:p?"Creating...":"Create"})]})]})]})})},I1=({isOpen:e,onClose:r,onCreated:a})=>{const n=()=>{a==null||a(),r==null||r()};return t.jsx(ge,{children:t.jsx(He,{isOpen:e,onClose:r,children:t.jsx(He.Overlay,{children:t.jsx(He.Content,{style:{width:"900px",maxWidth:"90vw"},children:t.jsx(He.Body,{style:{padding:0},children:t.jsx(Zn,{onSuccess:n,onCancel:r})})})})})})},P6=l.div`
|
|
2578
2578
|
text-align: left;
|
|
2579
2579
|
position: fixed;
|
|
2580
2580
|
background: var(--color-popover);
|
|
@@ -2595,11 +2595,11 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
2595
2595
|
color: var(--color-secondary-text);
|
|
2596
2596
|
margin-bottom: var(--space-8u);
|
|
2597
2597
|
line-height: 1.4;
|
|
2598
|
-
`,
|
|
2598
|
+
`,I6=l.div`
|
|
2599
2599
|
display: flex;
|
|
2600
2600
|
gap: var(--space-4u);
|
|
2601
2601
|
justify-content: flex-end;
|
|
2602
|
-
`,ea=({title:e,description:r,onConfirm:a,onCancel:n,style:s})=>{const i=c.useRef(null);return c.useEffect(()=>{const h=d=>{i.current&&!i.current.contains(d.target)&&n()};return document.addEventListener("mousedown",h),()=>{document.removeEventListener("mousedown",h)}},[n]),t.jsxs(P6,{ref:i,style:{right:"calc(var(--size-32u) + var(--space-3u))",...s},children:[t.jsx(T6,{children:e}),r&&t.jsx(F6,{children:r}),t.jsxs(
|
|
2602
|
+
`,ea=({title:e,description:r,onConfirm:a,onCancel:n,style:s})=>{const i=c.useRef(null);return c.useEffect(()=>{const h=d=>{i.current&&!i.current.contains(d.target)&&n()};return document.addEventListener("mousedown",h),()=>{document.removeEventListener("mousedown",h)}},[n]),t.jsxs(P6,{ref:i,style:{right:"calc(var(--size-32u) + var(--space-3u))",...s},children:[t.jsx(T6,{children:e}),r&&t.jsx(F6,{children:r}),t.jsxs(I6,{children:[t.jsx(N,{onClick:n,style:{fontSize:"var(--font-size-lg)",padding:"var(--space-3u) var(--space-8u)",background:"transparent",border:"var(--border-width-thin) solid var(--color-border)",color:"var(--color-popover-foreground)"},children:"Cancel"}),t.jsx(N,{onClick:a,style:{fontSize:"var(--font-size-lg)",padding:"var(--space-3u) var(--space-8u)",background:"var(--color-error)",border:"var(--border-width-thin) solid var(--color-error)",color:"var(--color-foreground-inverse)"},children:"Confirm"})]})]})},Z6=l.div`
|
|
2603
2603
|
display: flex;
|
|
2604
2604
|
align-items: center;
|
|
2605
2605
|
flex-wrap: wrap;
|
|
@@ -2725,7 +2725,7 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
2725
2725
|
outline: none;
|
|
2726
2726
|
border-color: var(--color-primary);
|
|
2727
2727
|
}
|
|
2728
|
-
`,U6=({organization:e})=>{const{getEnterpriseConnections:r,createEnterpriseConnection:a,deleteEnterpriseConnection:n,testEnterpriseConnection:s,generateSCIMToken:i,getSCIMToken:h,revokeSCIMToken:d}=
|
|
2728
|
+
`,U6=({organization:e})=>{const{getEnterpriseConnections:r,createEnterpriseConnection:a,deleteEnterpriseConnection:n,testEnterpriseConnection:s,generateSCIMToken:i,getSCIMToken:h,revokeSCIMToken:d}=It(),{toast:u}=gt(),[f,p]=c.useState(!1),[m,g]=c.useState(null),{data:v=[],isLoading:b,mutate:x}=$e(e!=null&&e.id?`wacht-org-sso:${e.id}`:null,async()=>await(r==null?void 0:r(e))||[],{refreshInterval:3e4,revalidateOnFocus:!1}),w=async A=>{try{await(n==null?void 0:n(e,A)),x(),u("SSO connection deleted","info")}catch(j){u(j.message||"Failed to delete connection","error")}g(null)};return b?t.jsx("div",{style:{display:"flex",justifyContent:"center",padding:"var(--space-20u) 0"},children:t.jsx(ze,{})}):f?t.jsx(K6,{organization:e,onClose:()=>p(!1),onCreate:async A=>{try{await(a==null?void 0:a(e,A)),x(),p(!1),u("SSO connection created","info")}catch(j){u(j.message||"Failed to create connection","error")}}}):t.jsx(t.Fragment,{children:v.length===0?t.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",padding:"var(--space-40u) var(--space-12u)",textAlign:"center",height:"100%"},children:[t.jsx(Rt,{size:56,strokeWidth:1,style:{color:"var(--color-primary)",marginBottom:"var(--space-10u)",opacity:.7}}),t.jsx("h3",{style:{margin:"0 0 var(--space-4u) 0",fontSize:"var(--font-size-2xl)",fontWeight:500,color:"var(--color-foreground)"},children:"Enterprise SSO"}),t.jsx("p",{style:{margin:"0 0 var(--space-12u) 0",fontSize:"var(--font-size-lg)",color:"var(--color-muted)",maxWidth:"calc(var(--size-50u) * 4)",lineHeight:"1.6"},children:"Set up SAML or OIDC single sign-on to allow members to sign in with your identity provider."}),t.jsxs(N,{onClick:()=>p(!0),style:{width:"auto"},children:[t.jsx(jt,{size:16})," Configure SSO"]})]}):t.jsxs(t.Fragment,{children:[t.jsx(Z6,{children:t.jsxs("div",{style:{flex:1},children:[t.jsx("h3",{style:{margin:0,fontSize:"var(--font-size-xl)",color:"var(--color-foreground)"},children:"Enterprise SSO"}),t.jsx("p",{style:{margin:"var(--space-2u) 0 0",fontSize:"var(--font-size-md)",color:"var(--color-muted)"},children:"Configure SAML or OIDC SSO for your organization"})]})}),v.map(A=>t.jsx(q6,{connection:A,onDelete:j=>g(j),connectionToDelete:m,onConfirmDelete:w,onCancelDelete:()=>g(null),testConnection:j=>s(e,j),generateSCIMToken:j=>i(e,j),getSCIMToken:j=>h(e,j),revokeSCIMToken:j=>d(e,j),toast:u},A.id))]})})},B6=l.div`
|
|
2729
2729
|
margin-top: var(--space-8u);
|
|
2730
2730
|
padding-top: var(--space-8u);
|
|
2731
2731
|
border-top: var(--border-width-thin) solid var(--color-border);
|
|
@@ -2748,7 +2748,7 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
2748
2748
|
color: var(--color-card-foreground);
|
|
2749
2749
|
text-transform: uppercase;
|
|
2750
2750
|
letter-spacing: var(--letter-spacing-tight);
|
|
2751
|
-
`,K6=({onCreate:e,organization:r})=>{const{getOrganizationDomains:a,testEnterpriseConnectionConfig:n}=Zt(),{deployment:s}=Ae(),{toast:i}=gt(),[h,d]=c.useState(!1),[u,f]=c.useState(null),[p,m]=c.useState("saml"),[g,v]=c.useState(null),[b,x]=c.useState(!1),[w,A]=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}=$e("wacht-org-verified-domains-for-sso-screen",async()=>(await(a==null?void 0:a(r))||[]).filter(F=>F.verified),{revalidateOnFocus:!1}),M=E=>{f(E),m(E.protocol),E.protocol==="saml"?A(F=>{var L,H,Z;return{...F,idp_entity_id:E.placeholders.entityId||"",idp_sso_url:E.placeholders.ssoUrl||"",attr_first_name:((L=E.attributeMapping)==null?void 0:L.first_name)||"",attr_last_name:((H=E.attributeMapping)==null?void 0:H.last_name)||"",attr_email:((Z=E.attributeMapping)==null?void 0:Z.email)||""}}):A(F=>{var L,H,Z;return{...F,oidc_issuer_url:E.placeholders.issuerUrl||"",oidc_scopes:E.placeholders.scopes||"openid profile email",attr_first_name:((L=E.attributeMapping)==null?void 0:L.first_name)||"",attr_last_name:((H=E.attributeMapping)==null?void 0:H.last_name)||"",attr_email:((Z=E.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`:"",I=s!=null&&s.backend_host?`https://${s.backend_host}/auth/sso/callback`:"",P=(E,F)=>{navigator.clipboard.writeText(E),v(F),setTimeout(()=>v(null),2e3)},T=async E=>{E.preventDefault();const F=L=>L.includes("{")||L.includes("}");if(p==="saml"){if(!w.idp_entity_id||F(w.idp_entity_id)){i("Please enter a valid IdP Entity ID (no placeholders)","error");return}if(!w.idp_sso_url||F(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||F(w.oidc_issuer_url)){i("Please enter a valid Issuer URL (no placeholders)","error");return}if(!w.oidc_client_id||F(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 L={};w.attr_first_name&&(L.first_name=w.attr_first_name),w.attr_last_name&&(L.last_name=w.attr_last_name),w.attr_email&&(L.email=w.attr_email);const H=Object.keys(L).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:L}}):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:L}})}finally{d(!1)}},$=async()=>{S(!0),_(null);const E=H=>H.includes("{")||H.includes("}"),F={},L={};if(p==="saml"?(w.idp_entity_id?E(w.idp_entity_id)?(L.entity_id_valid=!1,F.entity_id_valid="IdP Entity ID contains placeholder values - please replace with actual values"):L.entity_id_valid=!0:(L.entity_id_valid=!1,F.entity_id_valid="IdP Entity ID is required"),w.idp_sso_url?E(w.idp_sso_url)?(L.sso_url_valid=!1,F.sso_url_valid="IdP SSO URL contains placeholder values - please replace with actual values"):L.sso_url_valid=!0:(L.sso_url_valid=!1,F.sso_url_valid="IdP SSO URL is required"),w.idp_certificate?L.certificate_provided=!0:(L.certificate_provided=!1,F.certificate_provided="X.509 Certificate is required")):(w.oidc_issuer_url?E(w.oidc_issuer_url)?(L.issuer_url_valid=!1,F.issuer_url_valid="Issuer URL contains placeholder values - please replace with actual values"):L.issuer_url_valid=!0:(L.issuer_url_valid=!1,F.issuer_url_valid="Issuer URL is required"),w.oidc_client_id?E(w.oidc_client_id)?(L.client_id_valid=!1,F.client_id_valid="Client ID contains placeholder values - please replace with actual values"):L.client_id_valid=!0:(L.client_id_valid=!1,F.client_id_valid="Client ID is required")),Object.keys(F).length>0){_({success:!1,checks:L,errors:F}),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(n==null?void 0:n(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(jo,{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(_o,{children:"SAML Providers"}),t.jsx(uc,{children:dc.filter(E=>E.protocol==="saml").map(E=>t.jsxs(pc,{type:"button",$selected:!1,onClick:()=>M(E),children:[E.logo?t.jsx(jo,{src:E.logo,alt:E.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(hc,{children:E.name})]},E.id))}),t.jsx(_o,{style:{marginTop:"var(--space-10u)"},children:"OIDC Providers"}),t.jsx(uc,{children:dc.filter(E=>E.protocol==="oidc").map(E=>t.jsxs(pc,{type:"button",$selected:!1,onClick:()=>M(E),children:[E.logo?t.jsx(jo,{src:E.logo,alt:E.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(hc,{children:E.name})]},E.id))})]}),u&&t.jsxs(t.Fragment,{children:[t.jsxs(lc,{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:I}),t.jsx(_a,{onClick:()=>P(I,"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(_a,{onClick:()=>P(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(_a,{onClick:()=>P(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(_o,{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(hf,{size:12})," Docs"]}),t.jsx(N,{type:"button",$outline:!0,onClick:$,disabled:j||!u,style:{padding:"var(--space-4u) var(--space-8u)"},children:j?t.jsx(ze,{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(ze,{size:16}):"Create Connection"})]})]}),C&&(()=>{const E={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(([F,L])=>{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:L?"var(--color-success)":"var(--color-error)",fontWeight:600,fontSize:"var(--font-size-lg)",minWidth:"var(--size-8u)"},children:L?"✓":"✗"}),t.jsxs("div",{style:{flex:1},children:[t.jsx("div",{style:{fontWeight:500,color:"var(--color-foreground)",fontSize:"var(--font-size-md)"},children:E[F]||F.replace(/_/g," ").replace(/\b\w/g,Z=>Z.toUpperCase())}),((H=C.errors)==null?void 0:H[F])&&t.jsx("div",{style:{color:"var(--color-error)",fontSize:"var(--font-size-sm)",marginTop:"var(--space-2u)"},children:C.errors[F]})]})]},F)})})]})})(),t.jsxs("div",{style:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:"var(--space-8u)"},children:[!u&&t.jsxs(Se,{children:[t.jsx(be,{children:"Protocol *"}),t.jsxs(fc,{value:p,onChange:E=>m(E.target.value),children:[t.jsx("option",{value:"saml",children:"SAML"}),t.jsx("option",{value:"oidc",children:"OpenID Connect (OIDC)"})]})]}),t.jsxs(Se,{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(lc,{style:{marginBottom:0},children:"No verified domains found. Please add and verify a domain first."}):t.jsxs(fc,{value:w.domain_id,onChange:E=>A({...w,domain_id:E.target.value}),required:!0,children:[t.jsx("option",{value:"",children:"Select a verified domain"}),k.map(E=>t.jsx("option",{value:E.id,children:E.fqdn},E.id))]})]}),p==="saml"?t.jsxs(t.Fragment,{children:[t.jsxs(Se,{children:[t.jsx(be,{children:"IdP Entity ID *"}),t.jsx(ue,{type:"text",value:w.idp_entity_id,onChange:E=>A({...w,idp_entity_id:E.target.value}),placeholder:"https://idp.example.com/entity",required:!0})]}),t.jsxs(Se,{children:[t.jsx(be,{children:"IdP SSO URL *"}),t.jsx(ue,{type:"url",value:w.idp_sso_url,onChange:E=>A({...w,idp_sso_url:E.target.value}),placeholder:"https://idp.example.com/sso",required:!0})]}),t.jsxs(Se,{style:{gridColumn:"1 / -1"},children:[t.jsx(be,{children:"X.509 Certificate *"}),t.jsx(N6,{value:w.idp_certificate,onChange:E=>A({...w,idp_certificate:E.target.value}),placeholder:"-----BEGIN CERTIFICATE-----...",required:!0})]})]}):t.jsxs(t.Fragment,{children:[t.jsxs(Se,{children:[t.jsx(be,{children:"Issuer URL *"}),t.jsx(ue,{type:"url",value:w.oidc_issuer_url,onChange:E=>A({...w,oidc_issuer_url:E.target.value}),placeholder:"https://login.example.com",required:!0})]}),t.jsxs(Se,{children:[t.jsx(be,{children:"Client ID *"}),t.jsx(ue,{type:"text",value:w.oidc_client_id,onChange:E=>A({...w,oidc_client_id:E.target.value}),placeholder:"your-client-id",required:!0,autoComplete:"off","data-lpignore":"true","data-form-type":"other"})]}),t.jsxs(Se,{children:[t.jsx(be,{children:"Client Secret *"}),t.jsx(ue,{type:"password",value:w.oidc_client_secret,onChange:E=>A({...w,oidc_client_secret:E.target.value}),placeholder:"your-client-secret",required:!0,autoComplete:"new-password","data-lpignore":"true","data-form-type":"other"})]}),t.jsxs(Se,{children:[t.jsx(be,{children:"Scopes"}),t.jsx(ue,{type:"text",value:w.oidc_scopes,onChange:E=>A({...w,oidc_scopes:E.target.value}),placeholder:"openid profile email"})]})]}),t.jsx(Se,{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(Fr,{checked:w.jit_enabled,onChange:()=>A({...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:()=>x(!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(Se,{children:[t.jsx(be,{children:"First Name Attribute"}),t.jsx(ue,{type:"text",value:w.attr_first_name,onChange:E=>A({...w,attr_first_name:E.target.value}),placeholder:p==="saml"?"givenName":"given_name"})]}),t.jsxs(Se,{children:[t.jsx(be,{children:"Last Name Attribute"}),t.jsx(ue,{type:"text",value:w.attr_last_name,onChange:E=>A({...w,attr_last_name:E.target.value}),placeholder:p==="saml"?"surname":"family_name"})]}),t.jsxs(Se,{children:[t.jsx(be,{children:"Email Attribute"}),t.jsx(ue,{type:"text",value:w.attr_email,onChange:E=>A({...w,attr_email:E.target.value}),placeholder:"email"})]})]})]})]})]})]})]})]})};mt`
|
|
2751
|
+
`,K6=({onCreate:e,organization:r})=>{const{getOrganizationDomains:a,testEnterpriseConnectionConfig:n}=It(),{deployment:s}=Ae(),{toast:i}=gt(),[h,d]=c.useState(!1),[u,f]=c.useState(null),[p,m]=c.useState("saml"),[g,v]=c.useState(null),[b,x]=c.useState(!1),[w,A]=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}=$e("wacht-org-verified-domains-for-sso-screen",async()=>(await(a==null?void 0:a(r))||[]).filter(F=>F.verified),{revalidateOnFocus:!1}),M=E=>{f(E),m(E.protocol),E.protocol==="saml"?A(F=>{var L,H,Z;return{...F,idp_entity_id:E.placeholders.entityId||"",idp_sso_url:E.placeholders.ssoUrl||"",attr_first_name:((L=E.attributeMapping)==null?void 0:L.first_name)||"",attr_last_name:((H=E.attributeMapping)==null?void 0:H.last_name)||"",attr_email:((Z=E.attributeMapping)==null?void 0:Z.email)||""}}):A(F=>{var L,H,Z;return{...F,oidc_issuer_url:E.placeholders.issuerUrl||"",oidc_scopes:E.placeholders.scopes||"openid profile email",attr_first_name:((L=E.attributeMapping)==null?void 0:L.first_name)||"",attr_last_name:((H=E.attributeMapping)==null?void 0:H.last_name)||"",attr_email:((Z=E.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`:"",I=s!=null&&s.backend_host?`https://${s.backend_host}/auth/sso/callback`:"",P=(E,F)=>{navigator.clipboard.writeText(E),v(F),setTimeout(()=>v(null),2e3)},T=async E=>{E.preventDefault();const F=L=>L.includes("{")||L.includes("}");if(p==="saml"){if(!w.idp_entity_id||F(w.idp_entity_id)){i("Please enter a valid IdP Entity ID (no placeholders)","error");return}if(!w.idp_sso_url||F(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||F(w.oidc_issuer_url)){i("Please enter a valid Issuer URL (no placeholders)","error");return}if(!w.oidc_client_id||F(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 L={};w.attr_first_name&&(L.first_name=w.attr_first_name),w.attr_last_name&&(L.last_name=w.attr_last_name),w.attr_email&&(L.email=w.attr_email);const H=Object.keys(L).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:L}}):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:L}})}finally{d(!1)}},$=async()=>{S(!0),_(null);const E=H=>H.includes("{")||H.includes("}"),F={},L={};if(p==="saml"?(w.idp_entity_id?E(w.idp_entity_id)?(L.entity_id_valid=!1,F.entity_id_valid="IdP Entity ID contains placeholder values - please replace with actual values"):L.entity_id_valid=!0:(L.entity_id_valid=!1,F.entity_id_valid="IdP Entity ID is required"),w.idp_sso_url?E(w.idp_sso_url)?(L.sso_url_valid=!1,F.sso_url_valid="IdP SSO URL contains placeholder values - please replace with actual values"):L.sso_url_valid=!0:(L.sso_url_valid=!1,F.sso_url_valid="IdP SSO URL is required"),w.idp_certificate?L.certificate_provided=!0:(L.certificate_provided=!1,F.certificate_provided="X.509 Certificate is required")):(w.oidc_issuer_url?E(w.oidc_issuer_url)?(L.issuer_url_valid=!1,F.issuer_url_valid="Issuer URL contains placeholder values - please replace with actual values"):L.issuer_url_valid=!0:(L.issuer_url_valid=!1,F.issuer_url_valid="Issuer URL is required"),w.oidc_client_id?E(w.oidc_client_id)?(L.client_id_valid=!1,F.client_id_valid="Client ID contains placeholder values - please replace with actual values"):L.client_id_valid=!0:(L.client_id_valid=!1,F.client_id_valid="Client ID is required")),Object.keys(F).length>0){_({success:!1,checks:L,errors:F}),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(n==null?void 0:n(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(jo,{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(_o,{children:"SAML Providers"}),t.jsx(uc,{children:dc.filter(E=>E.protocol==="saml").map(E=>t.jsxs(pc,{type:"button",$selected:!1,onClick:()=>M(E),children:[E.logo?t.jsx(jo,{src:E.logo,alt:E.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(hc,{children:E.name})]},E.id))}),t.jsx(_o,{style:{marginTop:"var(--space-10u)"},children:"OIDC Providers"}),t.jsx(uc,{children:dc.filter(E=>E.protocol==="oidc").map(E=>t.jsxs(pc,{type:"button",$selected:!1,onClick:()=>M(E),children:[E.logo?t.jsx(jo,{src:E.logo,alt:E.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(hc,{children:E.name})]},E.id))})]}),u&&t.jsxs(t.Fragment,{children:[t.jsxs(lc,{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:I}),t.jsx(_a,{onClick:()=>P(I,"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(_a,{onClick:()=>P(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(_a,{onClick:()=>P(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(_o,{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(hf,{size:12})," Docs"]}),t.jsx(N,{type:"button",$outline:!0,onClick:$,disabled:j||!u,style:{padding:"var(--space-4u) var(--space-8u)"},children:j?t.jsx(ze,{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(ze,{size:16}):"Create Connection"})]})]}),C&&(()=>{const E={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(([F,L])=>{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:L?"var(--color-success)":"var(--color-error)",fontWeight:600,fontSize:"var(--font-size-lg)",minWidth:"var(--size-8u)"},children:L?"✓":"✗"}),t.jsxs("div",{style:{flex:1},children:[t.jsx("div",{style:{fontWeight:500,color:"var(--color-foreground)",fontSize:"var(--font-size-md)"},children:E[F]||F.replace(/_/g," ").replace(/\b\w/g,Z=>Z.toUpperCase())}),((H=C.errors)==null?void 0:H[F])&&t.jsx("div",{style:{color:"var(--color-error)",fontSize:"var(--font-size-sm)",marginTop:"var(--space-2u)"},children:C.errors[F]})]})]},F)})})]})})(),t.jsxs("div",{style:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:"var(--space-8u)"},children:[!u&&t.jsxs(Se,{children:[t.jsx(be,{children:"Protocol *"}),t.jsxs(fc,{value:p,onChange:E=>m(E.target.value),children:[t.jsx("option",{value:"saml",children:"SAML"}),t.jsx("option",{value:"oidc",children:"OpenID Connect (OIDC)"})]})]}),t.jsxs(Se,{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(lc,{style:{marginBottom:0},children:"No verified domains found. Please add and verify a domain first."}):t.jsxs(fc,{value:w.domain_id,onChange:E=>A({...w,domain_id:E.target.value}),required:!0,children:[t.jsx("option",{value:"",children:"Select a verified domain"}),k.map(E=>t.jsx("option",{value:E.id,children:E.fqdn},E.id))]})]}),p==="saml"?t.jsxs(t.Fragment,{children:[t.jsxs(Se,{children:[t.jsx(be,{children:"IdP Entity ID *"}),t.jsx(ue,{type:"text",value:w.idp_entity_id,onChange:E=>A({...w,idp_entity_id:E.target.value}),placeholder:"https://idp.example.com/entity",required:!0})]}),t.jsxs(Se,{children:[t.jsx(be,{children:"IdP SSO URL *"}),t.jsx(ue,{type:"url",value:w.idp_sso_url,onChange:E=>A({...w,idp_sso_url:E.target.value}),placeholder:"https://idp.example.com/sso",required:!0})]}),t.jsxs(Se,{style:{gridColumn:"1 / -1"},children:[t.jsx(be,{children:"X.509 Certificate *"}),t.jsx(N6,{value:w.idp_certificate,onChange:E=>A({...w,idp_certificate:E.target.value}),placeholder:"-----BEGIN CERTIFICATE-----...",required:!0})]})]}):t.jsxs(t.Fragment,{children:[t.jsxs(Se,{children:[t.jsx(be,{children:"Issuer URL *"}),t.jsx(ue,{type:"url",value:w.oidc_issuer_url,onChange:E=>A({...w,oidc_issuer_url:E.target.value}),placeholder:"https://login.example.com",required:!0})]}),t.jsxs(Se,{children:[t.jsx(be,{children:"Client ID *"}),t.jsx(ue,{type:"text",value:w.oidc_client_id,onChange:E=>A({...w,oidc_client_id:E.target.value}),placeholder:"your-client-id",required:!0,autoComplete:"off","data-lpignore":"true","data-form-type":"other"})]}),t.jsxs(Se,{children:[t.jsx(be,{children:"Client Secret *"}),t.jsx(ue,{type:"password",value:w.oidc_client_secret,onChange:E=>A({...w,oidc_client_secret:E.target.value}),placeholder:"your-client-secret",required:!0,autoComplete:"new-password","data-lpignore":"true","data-form-type":"other"})]}),t.jsxs(Se,{children:[t.jsx(be,{children:"Scopes"}),t.jsx(ue,{type:"text",value:w.oidc_scopes,onChange:E=>A({...w,oidc_scopes:E.target.value}),placeholder:"openid profile email"})]})]}),t.jsx(Se,{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(Fr,{checked:w.jit_enabled,onChange:()=>A({...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:()=>x(!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(Se,{children:[t.jsx(be,{children:"First Name Attribute"}),t.jsx(ue,{type:"text",value:w.attr_first_name,onChange:E=>A({...w,attr_first_name:E.target.value}),placeholder:p==="saml"?"givenName":"given_name"})]}),t.jsxs(Se,{children:[t.jsx(be,{children:"Last Name Attribute"}),t.jsx(ue,{type:"text",value:w.attr_last_name,onChange:E=>A({...w,attr_last_name:E.target.value}),placeholder:p==="saml"?"surname":"family_name"})]}),t.jsxs(Se,{children:[t.jsx(be,{children:"Email Attribute"}),t.jsx(ue,{type:"text",value:w.attr_email,onChange:E=>A({...w,attr_email:E.target.value}),placeholder:"email"})]})]})]})]})]})]})]})]})};mt`
|
|
2752
2752
|
0% { transform: rotate(0deg); }
|
|
2753
2753
|
100% { transform: rotate(360deg); }
|
|
2754
2754
|
`;const mc=l.div`
|
|
@@ -3160,9 +3160,9 @@ 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
|
-
`,iv=({organization:e})=>{var I,P,T,$,E,F;const{switchOrganization:r,refetch:a}=st(),{workspaces:n}=ir(),{deployment:s}=Ae(),{deleteOrganization:i,updateOrganization:h}=
|
|
3163
|
+
`,iv=({organization:e})=>{var I,P,T,$,E,F;const{switchOrganization:r,refetch:a}=st(),{workspaces:n}=ir(),{deployment:s}=Ae(),{deleteOrganization:i,updateOrganization:h}=It(),{toast:d}=gt(),[u,f]=c.useState((e==null?void 0:e.name)||""),[p,m]=c.useState((e==null?void 0:e.description)||""),[g,v]=c.useState(!1),[b,x]=c.useState({mfa_required:!1,ip_restrictions:!1,allowed_ips:"",default_workspace_id:""}),[w,A]=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 L=k.current;try{v(!0),await h(e,{name:L.name,description:L.description,whitelisted_ips:L.security.allowed_ips.split(`
|
|
3164
3164
|
`).filter(H=>H.trim()),enable_ip_restriction:L.security.ip_restrictions,enforce_mfa:L.security.mfa_required,auto_assigned_workspace_id:L.security.default_workspace_id||"0"}),d("Changes saved","info")}catch(H){d(H.message||"Failed to save changes","error")}finally{v(!1)}},[e,h,d]),M=c.useCallback(()=>{k.current.isSaving||y()},[y]);c.useEffect(()=>{var L;e&&(f(e.name||""),m(e.description||""),x({allowed_ips:((L=e.whitelisted_ips)==null?void 0:L.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 z=c.useMemo(()=>n.filter(L=>L.organization.id===(e==null?void 0:e.id)),[n,e==null?void 0:e.id]),O=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),A("")}};return e?t.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"var(--space-8u)",paddingBottom:"var(--size-20u)"},children:[t.jsxs(ko,{children:[t.jsxs(Se,{children:[t.jsx(be,{htmlFor:"name",children:"Organization name"}),t.jsx(ue,{id:"name",value:u,onChange:L=>f(L.target.value),onBlur:M,placeholder:"Organization name",required:!0})]}),t.jsxs(Se,{children:[t.jsx(be,{htmlFor:"description",children:"Description"}),t.jsx(ue,{id:"description",as:"textarea",value:p,onChange:L=>m(L.target.value),onBlur:M,placeholder:"Optional description",style:{minHeight:"var(--size-40u)",resize:"vertical"}})]}),((I=s==null?void 0:s.b2b_settings)==null?void 0:I.workspaces_enabled)&&z.length>0&&t.jsxs(Se,{children:[t.jsx(be,{htmlFor:"default_workspace",children:"Default workspace"}),t.jsx(
|
|
3165
|
+
`))||"",ip_restrictions:e.enable_ip_restriction||!1,mfa_required:e.enforce_mfa||!1,default_workspace_id:e.auto_assigned_workspace_id||""}))},[e]);const z=c.useMemo(()=>n.filter(L=>L.organization.id===(e==null?void 0:e.id)),[n,e==null?void 0:e.id]),O=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),A("")}};return e?t.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"var(--space-8u)",paddingBottom:"var(--size-20u)"},children:[t.jsxs(ko,{children:[t.jsxs(Se,{children:[t.jsx(be,{htmlFor:"name",children:"Organization name"}),t.jsx(ue,{id:"name",value:u,onChange:L=>f(L.target.value),onBlur:M,placeholder:"Organization name",required:!0})]}),t.jsxs(Se,{children:[t.jsx(be,{htmlFor:"description",children:"Description"}),t.jsx(ue,{id:"description",as:"textarea",value:p,onChange:L=>m(L.target.value),onBlur:M,placeholder:"Optional description",style:{minHeight:"var(--size-40u)",resize:"vertical"}})]}),((I=s==null?void 0:s.b2b_settings)==null?void 0:I.workspaces_enabled)&&z.length>0&&t.jsxs(Se,{children:[t.jsx(be,{htmlFor:"default_workspace",children:"Default workspace"}),t.jsx(In,{options:z.map(L=>({value:L.id,label:L.name})),value:b.default_workspace_id,onChange:L=>{x(H=>({...H,default_workspace_id:L})),setTimeout(M,0)},placeholder:"Select default workspace"})]})]}),(((P=s==null?void 0:s.b2b_settings)==null?void 0:P.enforce_mfa_per_org_enabled)||((T=s==null?void 0:s.b2b_settings)==null?void 0:T.ip_allowlist_per_org_enabled))&&t.jsxs(ko,{children:[t.jsx(bc,{children:"Security"}),(($=s==null?void 0:s.b2b_settings)==null?void 0:$.enforce_mfa_per_org_enabled)&&t.jsxs(gc,{style:{padding:0},children:[t.jsxs(vc,{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(xc,{children:t.jsx(Fr,{checked:b.mfa_required,onChange:()=>{const L=!b.mfa_required;x(H=>({...H,mfa_required:L})),setTimeout(M,0)}})})]}),((E=s==null?void 0:s.b2b_settings)==null?void 0:E.ip_allowlist_per_org_enabled)&&t.jsxs(t.Fragment,{children:[t.jsxs(gc,{style:{padding:0},children:[t.jsxs(vc,{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(xc,{children:t.jsx(Fr,{checked:b.ip_restrictions,onChange:()=>{const L=!b.ip_restrictions;x(H=>({...H,ip_restrictions:L})),setTimeout(M,0)}})})]}),b.ip_restrictions&&t.jsxs(Se,{children:[t.jsx(be,{htmlFor:"allowed_ips",children:"Allowed IP addresses"}),t.jsx(ue,{id:"allowed_ips",as:"textarea",value:b.allowed_ips,onChange:L=>x(H=>({...H,allowed_ips:L.target.value})),onBlur:M,placeholder:`192.168.1.1
|
|
3166
3166
|
10.0.0.0/24`,style:{minHeight:"var(--size-40u)",fontFamily:"monospace"}})]})]})]}),((F=s==null?void 0:s.b2b_settings)==null?void 0:F.allow_org_deletion)&&t.jsxs(ko,{children:[t.jsx(bc,{children:"Danger zone"}),t.jsxs(av,{children:[t.jsxs(nv,{children:[t.jsxs("div",{style:{flex:1,minWidth:0},children:[t.jsx(ov,{children:"Delete organization"}),t.jsx(sv,{children:"Once you delete this organization, there is no going back."})]}),t.jsx(N,{$size:"sm",$outline:!0,$destructive:!0,onClick:()=>{_(!C),A("")},children:C?"Cancel":"Delete organization"})]}),C&&t.jsxs("div",{style:{marginTop:14,display:"flex",flexDirection:"column",gap:10},children:[t.jsxs(Se,{children:[t.jsxs(be,{htmlFor:"confirm_org_name",children:["Type"," ",t.jsx("strong",{children:e.name})," ","to confirm"]}),t.jsx(ue,{id:"confirm_org_name",type:"text",value:w,onChange:L=>A(L.target.value),placeholder:e.name})]}),t.jsx(N,{$size:"sm",$destructive:!0,onClick:O,disabled:w!==e.name||j,children:j?t.jsx(ze,{size:12}):"Delete forever"})]})]})]})]}):t.jsx(ze,{})},Ot=l.table`
|
|
3167
3167
|
width: 100%;
|
|
3168
3168
|
border-collapse: separate;
|
|
@@ -3200,20 +3200,20 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
3200
3200
|
text-align: right;
|
|
3201
3201
|
width: var(--size-30u);
|
|
3202
3202
|
}
|
|
3203
|
-
`,
|
|
3203
|
+
`,Ye=l.td`
|
|
3204
3204
|
padding: 12px 16px;
|
|
3205
3205
|
font-size: 13px;
|
|
3206
3206
|
color: var(--color-foreground);
|
|
3207
3207
|
vertical-align: middle;
|
|
3208
3208
|
white-space: nowrap;
|
|
3209
3209
|
transition: background 0.12s ease;
|
|
3210
|
-
`;l(
|
|
3210
|
+
`;l(Ye)`
|
|
3211
3211
|
& > div {
|
|
3212
3212
|
display: flex;
|
|
3213
3213
|
align-items: center;
|
|
3214
3214
|
gap: 10px;
|
|
3215
3215
|
}
|
|
3216
|
-
`;const Dt=l(
|
|
3216
|
+
`;const Dt=l(Ye)`
|
|
3217
3217
|
text-align: right;
|
|
3218
3218
|
width: auto;
|
|
3219
3219
|
white-space: nowrap;
|
|
@@ -3298,7 +3298,7 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
3298
3298
|
justify-content: flex-end;
|
|
3299
3299
|
flex-wrap: nowrap;
|
|
3300
3300
|
white-space: nowrap;
|
|
3301
|
-
`,pv=({organization:e})=>{const{getOrganizationDomains:r,removeOrganizationDomain:a}=
|
|
3301
|
+
`,pv=({organization:e})=>{const{getOrganizationDomains:r,removeOrganizationDomain:a}=It(),[n,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:v=[],isLoading:b,mutate:x}=$e(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),_})},A=async j=>{w(j.id,!0);try{await a(e,j),x()}finally{w(j.id,!1),s(null)}};return b?t.jsx(ze,{}):t.jsxs(t.Fragment,{children:[t.jsxs(On,{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(kc,{onClose:()=>{h(!1),x()},triggerRef:m})]}),v!=null&&v.length?t.jsx(Hn,{children:t.jsxs(Ot,{children:[t.jsx(Ht,{children:t.jsxs(lt,{children:[t.jsx(Oe,{children:"Domain"}),t.jsx(Oe,{children:"Status"}),t.jsx(Oe,{children:"Added"}),t.jsx(Oe,{})]})}),t.jsx(Vt,{children:v.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(rr,{$variant:"success",children:"Verified"}):t.jsx(rr,{$variant:"warning",children:"Pending"})}),t.jsx(Ye,{style:{color:"var(--color-secondary-text)"},children:new Date(j.created_at).toLocaleDateString()}),t.jsx(Dt,{children:t.jsxs(uv,{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(ze,{size:12}):"Remove"})]})})]},j.id)})})]})}):t.jsx(At,{title:"No domains added",description:"Users with verified domain emails automatically join this organization."}),n&&t.jsx(ea,{title:"Remove domain?",description:"Active users aren't affected, but new users with this domain won't auto-join.",onConfirm:()=>{const j=v.find(S=>S.id===n);j&&A(j)},onCancel:()=>s(null)}),d&&t.jsx(kc,{domain:v.find(j=>j.id===d),onClose:()=>u(null),triggerRef:{current:g.current[d]}})]})},hv=l.div`
|
|
3302
3302
|
position: fixed;
|
|
3303
3303
|
background: var(--color-popover);
|
|
3304
3304
|
border-radius: 10px;
|
|
@@ -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
|
-
`,
|
|
3336
|
+
`,Z1=({onClose:e,onSuccess:r,roles:a,triggerRef:n})=>{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:v}=sr(),{toast:b}=gt(),x=xt({triggerRef:n??{current:null},isOpen:m,minWidth:360,defaultMaxHeight:360}),w=a.map(S=>({value:S.id,label:S.name})),A=S=>/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(S),j=async()=>{const S=i.trim().toLowerCase();if(!(!S||!d)){if(!A(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 v({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(hv,{ref:s,style:{top:(x==null?void 0:x.top)!==void 0?`${x.top}px`:void 0,bottom:(x==null?void 0:x.bottom)!==void 0?`${x.bottom}px`:void 0,left:(x==null?void 0:x.left)!==void 0?`${x.left}px`:void 0,right:(x==null?void 0:x.right)!==void 0?`${x.right}px`:void 0,visibility:x?"visible":"hidden"},onClick:S=>S.stopPropagation(),role:"dialog","aria-labelledby":"invite-member-title","aria-modal":"true",children:[t.jsx(fv,{id:"invite-member-title",children:"Invite member"}),t.jsxs(Cc,{children:[t.jsx(Sc,{children:"Email"}),t.jsx(ue,{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(Cc,{children:[t.jsx(Sc,{children:"Role"}),t.jsx(In,{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(mv,{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(ze,{size:12}):"Send invite"})]})]}):null},gv=l.div`
|
|
3337
3337
|
width: 32px;
|
|
3338
3338
|
height: 32px;
|
|
3339
3339
|
min-width: 32px;
|
|
@@ -3355,14 +3355,14 @@ 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
|
-
`,xv=({organization:e})=>{const{getOrganizationMembers:r,getOrganizationRoles:a,addRoleToOrganizationMember:n,removeRoleFromOrganizationMember:s,removeOrganizationMember:i}=
|
|
3358
|
+
`,xv=({organization:e})=>{const{getOrganizationMembers:r,getOrganizationRoles:a,addRoleToOrganizationMember:n,removeRoleFromOrganizationMember:s,removeOrganizationMember:i}=It(),{session:h}=st(),{toast:d}=gt(),[u,f]=c.useState(""),[p,m]=c.useState(1),[g]=c.useState(10),[v,b]=c.useState(!1),[x,w]=c.useState(new Set),A=c.useRef(null),[j,S]=c.useState(u);c.useEffect(()=>{const $=setTimeout(()=>{S(u),m(1)},500);return()=>clearTimeout($)},[u]);const{data:C,mutate:_}=$e(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},M=Math.ceil(y.total/(y.limit||10)),{data:z=[]}=$e(e?`wacht-api-organizations:${e.id}:roles`:null,()=>(a==null?void 0:a(e))||[]),O=z,I=($,E)=>{w(F=>{const L=new Set(F);return E?L.add($):L.delete($),L})},P=async($,E,F)=>{I($.id,!0);try{F?(await s(e,$,E),d("Role removed","info")):(await n(e,$,E),d("Role added","info")),_()}catch(L){d(L.message||"Failed to update role","error")}finally{I($.id,!1)}},T=async $=>{I($.id,!0);try{await i(e,$),_(),d("Member removed","info")}catch(E){d(E.message||"Failed to remove member","error")}finally{I($.id,!1)}};return C?t.jsxs(t.Fragment,{children:[t.jsxs(On,{children:[t.jsx("div",{style:{flex:1},children:t.jsx(v1,{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:A,onClick:()=>b(!0),$size:"sm",children:"Invite"})]})]}),v&&t.jsx(Z1,{onClose:()=>b(!1),onSuccess:()=>{_(),b(!1)},roles:O,triggerRef:A}),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(Hn,{children:t.jsxs(Ot,{children:[t.jsx(Ht,{children:t.jsxs(lt,{children:[t.jsx(Oe,{children:"Member"}),t.jsx(Oe,{children:"Joined"}),t.jsx(Oe,{children:"Roles"}),t.jsx(Oe,{})]})}),t.jsx(Vt,{children:k.map($=>{var L,H;const E=((L=$.user)==null?void 0:L.id)===((H=h==null?void 0:h.active_signin)==null?void 0:H.user_id),F=x.has($.id);return t.jsxs(lt,{children:[t.jsx(Ye,{children:t.jsx(bv,{member:$,isCurrentUser:E})}),t.jsx(Ye,{style:{color:"var(--color-secondary-text)"},children:new Date($.created_at).toLocaleDateString()}),t.jsx(Ye,{children:t.jsx(wv,{member:$,roles:O,onToggle:P,disabled:F})}),t.jsx(Dt,{children:t.jsx(vv,{children:t.jsx(N,{$size:"sm",$outline:!0,$destructive:!0,disabled:F||E,onClick:()=>T($),title:E?"You cannot remove yourself":"Remove member",children:F?t.jsx(ze,{size:12}):"Remove"})})})]},$.id)})})]})}),M>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($=>Math.max(1,$-1)),disabled:p===1,$size:"sm",$outline:!0,children:"Previous"}),t.jsxs("span",{style:{fontSize:13,color:"var(--color-secondary-text)"},children:[p," / ",M]}),t.jsx(N,{onClick:()=>m($=>Math.min(M,$+1)),disabled:p===M,$size:"sm",$outline:!0,children:"Next"})]})]}):t.jsx(ze,{})},bv=({member:e,isCurrentUser:r})=>{var i,h;const a=e.user,n=(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(gv,{children:a!=null&&a.profile_picture_url?t.jsx("img",{src:a.profile_picture_url,alt:s}):n(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(rr,{$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})]})]})},wv=({member:e,roles:r,onToggle:a,disabled:n})=>{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(Ma,{children:[t.jsx(Ra,{children:t.jsxs(N,{$size:"sm",$outline:!0,disabled:n,style:{minWidth:150,justifyContent:"space-between"},children:[h,t.jsx(lr,{size:12,style:{marginLeft:6}})]})}),t.jsx(La,{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(or,{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)})})]})},yv=l.div`
|
|
3359
3359
|
display: flex;
|
|
3360
3360
|
align-items: center;
|
|
3361
3361
|
gap: 6px;
|
|
3362
3362
|
justify-content: flex-end;
|
|
3363
3363
|
flex-wrap: nowrap;
|
|
3364
3364
|
white-space: nowrap;
|
|
3365
|
-
`,jv=e=>{const r=e.expires_at;return r?new Date(r).getTime()<Date.now():!1},_v=({organization:e})=>{const{getOrganizationInvitations:r,getOrganizationRoles:a,discardOrganizationInvitation:n,resendOrganizationInvitation:s}=
|
|
3365
|
+
`,jv=e=>{const r=e.expires_at;return r?new Date(r).getTime()<Date.now():!1},_v=({organization:e})=>{const{getOrganizationInvitations:r,getOrganizationRoles:a,discardOrganizationInvitation:n,resendOrganizationInvitation:s}=It(),{toast:i}=gt(),[h,d]=c.useState(!1),[u,f]=c.useState(new Set),p=c.useRef(null),{data:m=[],isLoading:g,mutate:v}=$e(e?`wacht-api-organizations:${e.id}:invitations`:null,()=>(r==null?void 0:r(e))||[]),{data:b=[],isLoading:x}=$e(e?`wacht-api-organizations:${e.id}:roles`:null,()=>(a==null?void 0:a(e))||[]),w=b,A=(C,_)=>{f(k=>{const y=new Set(k);return _?y.add(C):y.delete(C),y})},j=async C=>{A(C.id,!0);try{await n(e,C),v(),i("Invitation cancelled","info")}catch(_){i(_.message||"Failed to cancel invitation","error")}finally{A(C.id,!1)}},S=async C=>{A(C.id,!0);try{await s(e,C),i("Invitation resent","info")}catch(_){i(_.message||"Failed to resend invitation","error")}finally{A(C.id,!1)}};return g||x?t.jsx(ze,{}):t.jsxs(t.Fragment,{children:[t.jsxs(On,{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 organization."})]}),t.jsx(N,{ref:p,onClick:()=>d(!0),$size:"sm",children:"Invite"})]}),h&&t.jsx(Z1,{onClose:()=>d(!1),onSuccess:()=>{v(),d(!1)},roles:w,triggerRef:p}),m.length===0?t.jsx(At,{title:"No pending invitations",description:"Invite members to collaborate."}):t.jsx(Hn,{children:t.jsxs(Ot,{children:[t.jsx(Ht,{children:t.jsxs(lt,{children:[t.jsx(Oe,{children:"Email"}),t.jsx(Oe,{children:"Role"}),t.jsx(Oe,{children:"Status"}),t.jsx(Oe,{children:"Invited"}),t.jsx(Oe,{})]})}),t.jsx(Vt,{children:m.map(C=>{var y;const _=jv(C),k=u.has(C.id);return t.jsxs(lt,{children:[t.jsx(Ye,{children:C.email}),t.jsx(Ye,{style:{color:"var(--color-secondary-text)"},children:((y=C.initial_organization_role)==null?void 0:y.name)||"No role"}),t.jsx(Ye,{children:_?t.jsx(rr,{$variant:"danger",children:"Expired"}):t.jsx(rr,{$variant:"warning",children:"Pending"})}),t.jsx(Ye,{style:{color:"var(--color-secondary-text)"},children:new Date(C.created_at).toLocaleDateString()}),t.jsx(Dt,{children:t.jsxs(yv,{children:[t.jsx(N,{$size:"sm",$outline:!0,disabled:k,onClick:()=>S(C),children:"Resend"}),t.jsx(N,{$size:"sm",$outline:!0,$destructive:!0,disabled:k,onClick:()=>j(C),children:k?t.jsx(ze,{size:12}):"Cancel"})]})})]},C.id)})})]})})]})},kv=l.div`
|
|
3366
3366
|
position: fixed;
|
|
3367
3367
|
background: var(--color-popover);
|
|
3368
3368
|
border-radius: 10px;
|
|
@@ -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
|
-
`,Rv=({organization:e})=>{var _;const{getOrganizationRoles:r,removeOrganizationRoles:a}=
|
|
3433
|
+
`,Rv=({organization:e})=>{var _;const{getOrganizationRoles:r,removeOrganizationRoles:a}=It(),{deployment:n}=Ae(),[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),v=c.useRef(new Map),{data:b=[],isLoading:x,mutate:w}=$e(e?`wacht-api-organizations:${e.id}:roles`:null,()=>(r==null?void 0:r(e))||[]),A=(k,y)=>{m(M=>{const z=new Set(M);return y?z.add(k):z.delete(k),z})},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 M=y instanceof Error?y.message:"Failed to save role";d({text:M,type:"error"})}finally{setTimeout(()=>d(null),3e3)}},S=async k=>{A(k.id,!0);try{await a(e,k),w()}finally{A(k.id,!1),f(null)}};if(x&&b.length===0)return t.jsx(ze,{});const C=k=>{const y=Av(k),M=p.has(k.id),z=k.permissions.length;return t.jsxs(lt,{children:[t.jsx(Ye,{children:t.jsxs($v,{children:[k.name,!y&&t.jsx(rr,{$variant:"neutral",children:"Default"})]})}),t.jsx(Ye,{children:z===0?t.jsx(rr,{$variant:"neutral",children:"No permissions"}):t.jsxs("div",{style:{display:"inline-flex",alignItems:"center",gap:8},children:[t.jsxs(rr,{$variant:"primary",children:[z," ",z===1?"permission":"permissions"]}),t.jsx(Lv,{children:k.permissions.join(", ")})]})}),t.jsx(Dt,{children:y?t.jsxs(Mv,{children:[t.jsx(N,{ref:O=>{O&&v.current.set(k.id,O)},$size:"sm",$outline:!0,disabled:M,onClick:()=>i({isOpen:!0,role:k,triggerElement:v.current.get(k.id)??null}),children:"Edit"}),t.jsx(N,{$size:"sm",$outline:!0,$destructive:!0,disabled:M,onClick:()=>f(k.id),children:M?t.jsx(ze,{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(zv,{$type:h.type,children:[h.type==="success"?"✓":t.jsx(oa,{size:13}),h.text]}),t.jsxs(On,{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."})]}),((_=n==null?void 0:n.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(Hn,{children:t.jsxs(Ot,{children:[t.jsx(Ht,{children:t.jsxs(lt,{children:[t.jsx(Oe,{children:"Role"}),t.jsx(Oe,{children:"Permissions"}),t.jsx(Oe,{})]})}),t.jsx(Vt,{children:b.map(C)})]})})}),u&&t.jsx(ea,{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}})]})},Pv=()=>{const{activeOrganization:e,loading:r}=sr(),[a,n]=c.useState(null);return c.useEffect(()=>{e?n(e):!r&&!e&&a&&n(null)},[e,r,a]),{activeOrganization:a||e,loading:r}},Tv=l(ls)`
|
|
3434
3434
|
display: flex;
|
|
3435
3435
|
justify-content: center;
|
|
3436
3436
|
align-items: center;
|
|
@@ -3442,7 +3442,7 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
3442
3442
|
height: 100%;
|
|
3443
3443
|
padding: var(--size-20u) var(--space-12u);
|
|
3444
3444
|
text-align: center;
|
|
3445
|
-
`,
|
|
3445
|
+
`,Iv=l.div`
|
|
3446
3446
|
width: var(--size-40u);
|
|
3447
3447
|
height: var(--size-40u);
|
|
3448
3448
|
border-radius: var(--radius-full);
|
|
@@ -3452,7 +3452,7 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
3452
3452
|
justify-content: center;
|
|
3453
3453
|
margin-bottom: var(--space-12u);
|
|
3454
3454
|
border: var(--border-width-regular) dashed var(--color-border);
|
|
3455
|
-
`,
|
|
3455
|
+
`,Zv=l.h3`
|
|
3456
3456
|
font-size: var(--font-size-2xl);
|
|
3457
3457
|
font-weight: 600;
|
|
3458
3458
|
color: var(--color-card-foreground);
|
|
@@ -3517,7 +3517,7 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
3517
3517
|
`,Dv=l.span`
|
|
3518
3518
|
font-size: var(--font-size-lg);
|
|
3519
3519
|
color: var(--color-popover-foreground);
|
|
3520
|
-
`,V1=()=>{var x,w,A;const{loading:e,activeOrganization:r}=Pv(),{updateOrganization:a}=sr(),{deployment:n}=Ae(),[s,i]=c.useState("general"),[h,d]=c.useState(null),[u,f]=c.useState("info"),[p,m]=c.useState(!1),g=c.useRef(null),v=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){v("File size cannot exceed 2MB","error");return}if(!S.type.startsWith("image/")){v("Please select a valid image file","error");return}try{m(!0),await a({image:S}),v("Logo updated","info")}catch(_){v((_==null?void 0:_.message)||"Failed to update logo","error")}finally{m(!1),g.current&&(g.current.value="")}}};return e&&!r?t.jsx(ge,{children:t.jsx(Tv,{children:t.jsx(ze,{})})}):r?t.jsx(ge,{children:t.jsx(mc,{children:t.jsx(Ms.Provider,{value:{screen:null,setScreen:()=>{},toast:v},children:t.jsxs(ls,{children:[t.jsxs(X6,{children:[t.jsxs(Ov,{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}):((x=r.name)==null?void 0:x.slice(0,2).toUpperCase())||"O",t.jsx("span",{className:"hover-overlay",children:p?t.jsx(ze,{size:14}):t.jsx(Ss,{size:16})})]}),t.jsx("input",{ref:g,type:"file",accept:"image/*",style:{display:"none"},onChange:b}),t.jsxs(ev,{children:[t.jsx(tv,{children:r.name}),t.jsx(rv,{children:r.member_count!=null?`${r.member_count} members`:"Organization settings"})]})]}),t.jsx(Y6,{children:t.jsxs(Q6,{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(wf,{size:16})," Domains"]})}),t.jsx(Ur,{$isActive:s==="members",onClick:()=>i("members"),children:t.jsxs(Br,{children:[t.jsx(jn,{size:16})," Members"]})}),t.jsx(Ur,{$isActive:s==="invitations",onClick:()=>i("invitations"),children:t.jsxs(Br,{children:[t.jsx(Fn,{size:16})," Invitations"]})}),((w=n==null?void 0:n.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"]})}),((A=n==null?void 0:n.b2b_settings)==null?void 0:A.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(J6,{children:[s==="general"&&t.jsx(iv,{organization:r}),s==="domains"&&t.jsx(pv,{organization:r}),s==="members"&&t.jsx(xv,{organization:r}),s==="invitations"&&t.jsx(_v,{organization:r}),s==="roles"&&t.jsx(Rv,{organization:r}),s==="sso"&&t.jsx(U6,{organization:r})]}),h&&t.jsx(Hv,{children:t.jsxs(Vv,{children:[u==="error"?t.jsx(oa,{size:16,color:"var(--color-error)"}):t.jsx(ct,{size:16,color:"var(--color-success)"}),t.jsx(Dv,{children:h})]})})]})})})}):t.jsx(ge,{children:t.jsx(mc,{children:t.jsx(ls,{children:t.jsxs(Fv,{children:[t.jsx(
|
|
3520
|
+
`,V1=()=>{var x,w,A;const{loading:e,activeOrganization:r}=Pv(),{updateOrganization:a}=sr(),{deployment:n}=Ae(),[s,i]=c.useState("general"),[h,d]=c.useState(null),[u,f]=c.useState("info"),[p,m]=c.useState(!1),g=c.useRef(null),v=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){v("File size cannot exceed 2MB","error");return}if(!S.type.startsWith("image/")){v("Please select a valid image file","error");return}try{m(!0),await a({image:S}),v("Logo updated","info")}catch(_){v((_==null?void 0:_.message)||"Failed to update logo","error")}finally{m(!1),g.current&&(g.current.value="")}}};return e&&!r?t.jsx(ge,{children:t.jsx(Tv,{children:t.jsx(ze,{})})}):r?t.jsx(ge,{children:t.jsx(mc,{children:t.jsx(Ms.Provider,{value:{screen:null,setScreen:()=>{},toast:v},children:t.jsxs(ls,{children:[t.jsxs(X6,{children:[t.jsxs(Ov,{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}):((x=r.name)==null?void 0:x.slice(0,2).toUpperCase())||"O",t.jsx("span",{className:"hover-overlay",children:p?t.jsx(ze,{size:14}):t.jsx(Ss,{size:16})})]}),t.jsx("input",{ref:g,type:"file",accept:"image/*",style:{display:"none"},onChange:b}),t.jsxs(ev,{children:[t.jsx(tv,{children:r.name}),t.jsx(rv,{children:r.member_count!=null?`${r.member_count} members`:"Organization settings"})]})]}),t.jsx(Y6,{children:t.jsxs(Q6,{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(wf,{size:16})," Domains"]})}),t.jsx(Ur,{$isActive:s==="members",onClick:()=>i("members"),children:t.jsxs(Br,{children:[t.jsx(jn,{size:16})," Members"]})}),t.jsx(Ur,{$isActive:s==="invitations",onClick:()=>i("invitations"),children:t.jsxs(Br,{children:[t.jsx(Fn,{size:16})," Invitations"]})}),((w=n==null?void 0:n.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"]})}),((A=n==null?void 0:n.b2b_settings)==null?void 0:A.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(J6,{children:[s==="general"&&t.jsx(iv,{organization:r}),s==="domains"&&t.jsx(pv,{organization:r}),s==="members"&&t.jsx(xv,{organization:r}),s==="invitations"&&t.jsx(_v,{organization:r}),s==="roles"&&t.jsx(Rv,{organization:r}),s==="sso"&&t.jsx(U6,{organization:r})]}),h&&t.jsx(Hv,{children:t.jsxs(Vv,{children:[u==="error"?t.jsx(oa,{size:16,color:"var(--color-error)"}):t.jsx(ct,{size:16,color:"var(--color-success)"}),t.jsx(Dv,{children:h})]})})]})})})}):t.jsx(ge,{children:t.jsx(mc,{children:t.jsx(ls,{children:t.jsxs(Fv,{children:[t.jsx(Iv,{children:t.jsx(ud,{size:32,color:"var(--color-muted)"})}),t.jsx(Zv,{children:"No Organization Selected"}),t.jsx(Q1,{})]})})})})},D1=({isOpen:e,onClose:r,title:a,showHeader:n,headerContent:s,footerContent:i,customContent:h,children:d,showCloseButton:u})=>t.jsx(He,{isOpen:e,onClose:r,children:t.jsx(He.Overlay,{children:t.jsxs(He.Content,{style:{width:"900px",maxWidth:"90vw"},children:[n&&t.jsx(He.Header,{showCloseButton:u,children:s||a}),h||d||t.jsx(V1,{}),i&&t.jsx(He.Footer,{children:i})]})})}),Nv=l.div`
|
|
3521
3521
|
display: flex;
|
|
3522
3522
|
height: 100%;
|
|
3523
3523
|
min-height: calc(var(--size-50u) * 4);
|
|
@@ -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
|
-
`,Rs=({organizationId:e,onSuccess:r,onCancel:a,onCreateOrganization:n})=>{var E;const[s,i]=c.useState(""),[h,d]=c.useState(""),[u,f]=c.useState(),[p,m]=c.useState(null),[g,v]=c.useState(!1),[b,x]=c.useState(!1),[w,A]=c.useState(e),j=c.useRef(null),S=c.useRef(null),{toast:C}=gt(),{createWorkspace:_}=ir(),{refetch:k}=st(),{organizationMemberships:y}=Kt(),M=(E=y==null?void 0:y.find(F=>F.organization.id===w))==null?void 0:E.organization,z=F=>{if(F.target.files&&F.target.files[0]){const L=F.target.files[0];if(L.size>2*1024*1024){C("File size cannot exceed 2MB","error");return}if(!L.type.startsWith("image/")){C("Please select a valid image file","error");return}p&&URL.revokeObjectURL(p),f(L),m(URL.createObjectURL(L))}},O=()=>{var F;(F=j.current)==null||F.click()},I=F=>F.split(" ").map(L=>L[0]).join("").toUpperCase().slice(0,2)||"W",P=F=>F.trim().replace(/[<>\"'&]/g,""),T=F=>F.length>=2&&F.length<=100&&/^[a-zA-Z0-9\s_.-]+$/.test(F),$=async()=>{const F=P(s),L=P(h);if(!F||!w){C("Please enter a workspace name","error");return}if(!T(F)){C("Workspace name must be 2-100 characters and contain only letters, numbers, spaces, dots, underscores, and hyphens","error");return}if(L.length>500){C("Description must be less than 500 characters","error");return}v(!0);try{const H=await _(w,F,u,L);await k(),r==null||r(H)}catch(H){const Z=H.message||"Failed to create workspace. Please try again.";C(Z,"error")}finally{v(!1)}};return c.useEffect(()=>()=>{p&&URL.revokeObjectURL(p)},[p]),c.useEffect(()=>{const F=L=>{S.current&&!S.current.contains(L.target)&&x(!1)};return document.addEventListener("mousedown",F),()=>document.removeEventListener("mousedown",F)},[]),t.jsx(ge,{children:t.jsxs(Nv,{children:[t.jsxs(Uv,{children:[t.jsxs(N1,{hasImage:!!p,onClick:O,children:[p?t.jsx(Wv,{src:p,alt:"Workspace logo"}):t.jsx(Gv,{children:I(s||"W")}),t.jsx(s3,{children:t.jsx(i3,{children:"Upload Logo"})})]}),t.jsx(o3,{type:"file",ref:j,onChange:z,accept:"image/png, image/jpeg, image/gif",disabled:g}),t.jsx(qv,{children:"Create new workspace"}),t.jsx(Kv,{children:"Workspaces are used to organize your projects and team members into logical groups."})]}),t.jsxs(Bv,{children:[t.jsxs(Yv,{children:[t.jsx(Qv,{children:"Choose your workspace name"}),t.jsx(Jv,{children:"Enter a name for your new workspace. This will be visible to all members."})]}),t.jsxs(Xv,{children:[t.jsxs(Co,{children:[t.jsx(So,{children:"Organization"}),t.jsxs(c3,{ref:S,children:[t.jsxs(l3,{type:"button",onClick:()=>x(!b),disabled:g,children:[t.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"var(--space-4u)"},children:[t.jsx($c,{children:M!=null&&M.image_url?t.jsx(Mc,{src:M.image_url,alt:M.name}):I((M==null?void 0:M.name)||"O").charAt(0)}),t.jsx("span",{children:(M==null?void 0:M.name)||"Select organization"})]}),t.jsx(lr,{size:16,style:{color:"var(--color-secondary-text)"}})]}),b&&t.jsxs(d3,{children:[y==null?void 0:y.map(F=>{var H,Z,R;const L=((H=F.eligibility_restriction)==null?void 0:H.type)&&((Z=F.eligibility_restriction)==null?void 0:Z.type)!=="none";return t.jsxs(U1,{onClick:()=>{L||(A(F.organization.id),x(!1))},disabled:L,style:{opacity:L?.6:1,cursor:L?"not-allowed":"pointer"},title:L?(R=F.eligibility_restriction)==null?void 0:R.message:void 0,children:[t.jsx($c,{children:F.organization.image_url?t.jsx(Mc,{src:F.organization.image_url,alt:F.organization.name}):I(F.organization.name).charAt(0)}),t.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"var(--space-1u)"},children:[t.jsx("span",{children:F.organization.name}),L&&t.jsx("span",{style:{fontSize:"var(--font-size-2xs)",color:"var(--color-error)"},children:"Restricted"})]})]},F.organization.id)}),t.jsxs(u3,{onClick:()=>{x(!1),n==null||n()},children:[t.jsx(p3,{children:t.jsx(jt,{size:12})}),t.jsx("span",{children:"Create new organization"})]})]})]})]}),t.jsxs(Co,{children:[t.jsx(So,{children:"Workspace name"}),t.jsx(e3,{type:"text",value:s,onChange:F=>i(F.target.value),placeholder:"Workspace Name",disabled:g})]}),t.jsxs(Co,{children:[t.jsx(So,{children:"Description (optional)"}),t.jsx(t3,{value:h,onChange:F=>d(F.target.value),placeholder:"What is this workspace for?",disabled:g})]})]}),t.jsxs(r3,{children:[a?t.jsxs(a3,{onClick:a,disabled:g,children:[t.jsx(na,{size:16}),"Back"]}):t.jsx("div",{}),t.jsx(n3,{onClick:$,disabled:g||!s.trim(),children:g?"Creating...":"Create"})]})]})]})})},Ps=({isOpen:e,onClose:r,onCreated:a,organizationId:n})=>{const[s,i]=c.useState(!1),[h,d]=c.useState(n),{refetch:u,organizationMemberships:f}=Kt(),p=()=>{a==null||a(),r==null||r()},m=()=>{i(!0)},g=async()=>{await u(),setTimeout(()=>{if(f&&f.length>0){const v=f[f.length-1];d(v.organization.id)}i(!1)},500)};return t.jsx(ge,{children:t.jsx(He,{isOpen:e,onClose:r,children:t.jsx(He.Overlay,{children:t.jsx(He.Content,{style:{width:"calc(calc(var(--size-50u) * 8) - var(--space-8u))",maxWidth:"90vw"},children:t.jsx(He.Body,{style:{padding:0},children:s?t.jsx(
|
|
3829
|
+
`,Rs=({organizationId:e,onSuccess:r,onCancel:a,onCreateOrganization:n})=>{var E;const[s,i]=c.useState(""),[h,d]=c.useState(""),[u,f]=c.useState(),[p,m]=c.useState(null),[g,v]=c.useState(!1),[b,x]=c.useState(!1),[w,A]=c.useState(e),j=c.useRef(null),S=c.useRef(null),{toast:C}=gt(),{createWorkspace:_}=ir(),{refetch:k}=st(),{organizationMemberships:y}=Kt(),M=(E=y==null?void 0:y.find(F=>F.organization.id===w))==null?void 0:E.organization,z=F=>{if(F.target.files&&F.target.files[0]){const L=F.target.files[0];if(L.size>2*1024*1024){C("File size cannot exceed 2MB","error");return}if(!L.type.startsWith("image/")){C("Please select a valid image file","error");return}p&&URL.revokeObjectURL(p),f(L),m(URL.createObjectURL(L))}},O=()=>{var F;(F=j.current)==null||F.click()},I=F=>F.split(" ").map(L=>L[0]).join("").toUpperCase().slice(0,2)||"W",P=F=>F.trim().replace(/[<>\"'&]/g,""),T=F=>F.length>=2&&F.length<=100&&/^[a-zA-Z0-9\s_.-]+$/.test(F),$=async()=>{const F=P(s),L=P(h);if(!F||!w){C("Please enter a workspace name","error");return}if(!T(F)){C("Workspace name must be 2-100 characters and contain only letters, numbers, spaces, dots, underscores, and hyphens","error");return}if(L.length>500){C("Description must be less than 500 characters","error");return}v(!0);try{const H=await _(w,F,u,L);await k(),r==null||r(H)}catch(H){const Z=H.message||"Failed to create workspace. Please try again.";C(Z,"error")}finally{v(!1)}};return c.useEffect(()=>()=>{p&&URL.revokeObjectURL(p)},[p]),c.useEffect(()=>{const F=L=>{S.current&&!S.current.contains(L.target)&&x(!1)};return document.addEventListener("mousedown",F),()=>document.removeEventListener("mousedown",F)},[]),t.jsx(ge,{children:t.jsxs(Nv,{children:[t.jsxs(Uv,{children:[t.jsxs(N1,{hasImage:!!p,onClick:O,children:[p?t.jsx(Wv,{src:p,alt:"Workspace logo"}):t.jsx(Gv,{children:I(s||"W")}),t.jsx(s3,{children:t.jsx(i3,{children:"Upload Logo"})})]}),t.jsx(o3,{type:"file",ref:j,onChange:z,accept:"image/png, image/jpeg, image/gif",disabled:g}),t.jsx(qv,{children:"Create new workspace"}),t.jsx(Kv,{children:"Workspaces are used to organize your projects and team members into logical groups."})]}),t.jsxs(Bv,{children:[t.jsxs(Yv,{children:[t.jsx(Qv,{children:"Choose your workspace name"}),t.jsx(Jv,{children:"Enter a name for your new workspace. This will be visible to all members."})]}),t.jsxs(Xv,{children:[t.jsxs(Co,{children:[t.jsx(So,{children:"Organization"}),t.jsxs(c3,{ref:S,children:[t.jsxs(l3,{type:"button",onClick:()=>x(!b),disabled:g,children:[t.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"var(--space-4u)"},children:[t.jsx($c,{children:M!=null&&M.image_url?t.jsx(Mc,{src:M.image_url,alt:M.name}):I((M==null?void 0:M.name)||"O").charAt(0)}),t.jsx("span",{children:(M==null?void 0:M.name)||"Select organization"})]}),t.jsx(lr,{size:16,style:{color:"var(--color-secondary-text)"}})]}),b&&t.jsxs(d3,{children:[y==null?void 0:y.map(F=>{var H,Z,R;const L=((H=F.eligibility_restriction)==null?void 0:H.type)&&((Z=F.eligibility_restriction)==null?void 0:Z.type)!=="none";return t.jsxs(U1,{onClick:()=>{L||(A(F.organization.id),x(!1))},disabled:L,style:{opacity:L?.6:1,cursor:L?"not-allowed":"pointer"},title:L?(R=F.eligibility_restriction)==null?void 0:R.message:void 0,children:[t.jsx($c,{children:F.organization.image_url?t.jsx(Mc,{src:F.organization.image_url,alt:F.organization.name}):I(F.organization.name).charAt(0)}),t.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"var(--space-1u)"},children:[t.jsx("span",{children:F.organization.name}),L&&t.jsx("span",{style:{fontSize:"var(--font-size-2xs)",color:"var(--color-error)"},children:"Restricted"})]})]},F.organization.id)}),t.jsxs(u3,{onClick:()=>{x(!1),n==null||n()},children:[t.jsx(p3,{children:t.jsx(jt,{size:12})}),t.jsx("span",{children:"Create new organization"})]})]})]})]}),t.jsxs(Co,{children:[t.jsx(So,{children:"Workspace name"}),t.jsx(e3,{type:"text",value:s,onChange:F=>i(F.target.value),placeholder:"Workspace Name",disabled:g})]}),t.jsxs(Co,{children:[t.jsx(So,{children:"Description (optional)"}),t.jsx(t3,{value:h,onChange:F=>d(F.target.value),placeholder:"What is this workspace for?",disabled:g})]})]}),t.jsxs(r3,{children:[a?t.jsxs(a3,{onClick:a,disabled:g,children:[t.jsx(na,{size:16}),"Back"]}):t.jsx("div",{}),t.jsx(n3,{onClick:$,disabled:g||!s.trim(),children:g?"Creating...":"Create"})]})]})]})})},Ps=({isOpen:e,onClose:r,onCreated:a,organizationId:n})=>{const[s,i]=c.useState(!1),[h,d]=c.useState(n),{refetch:u,organizationMemberships:f}=Kt(),p=()=>{a==null||a(),r==null||r()},m=()=>{i(!0)},g=async()=>{await u(),setTimeout(()=>{if(f&&f.length>0){const v=f[f.length-1];d(v.organization.id)}i(!1)},500)};return t.jsx(ge,{children:t.jsx(He,{isOpen:e,onClose:r,children:t.jsx(He.Overlay,{children:t.jsx(He.Content,{style:{width:"calc(calc(var(--size-50u) * 8) - var(--space-8u))",maxWidth:"90vw"},children:t.jsx(He.Body,{style:{padding:0},children:s?t.jsx(Zn,{onSuccess:g,onCancel:()=>i(!1)}):t.jsx(Rs,{organizationId:h||n,onSuccess:p,onCancel:r,onCreateOrganization:m})})})})})})};mt`
|
|
3830
3830
|
0% { transform: rotate(0deg); }
|
|
3831
3831
|
100% { transform: rotate(360deg); }
|
|
3832
3832
|
`;const h3=l.div`
|
|
@@ -4243,7 +4243,7 @@ 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
|
-
`,C3=()=>{var M,z;const{activeWorkspace:e,loading:r,updateWorkspace:a}=
|
|
4246
|
+
`,C3=()=>{var M,z;const{activeWorkspace:e,loading:r,updateWorkspace:a}=Zt(),{deleteWorkspace:n}=ir(),{deployment:s}=Ae(),{toast:i}=gt(),[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,v]=c.useState(!1),[b,x]=c.useState(""),[w,A]=c.useState(!1),[j,S]=c.useState(!1);c.useEffect(()=>{var O;e&&(d(e.name||""),f(e.description||""),m({mfa_required:e.enforce_2fa||!1,ip_restrictions:e.enable_ip_restriction||!1,allowed_ips:((O=e.whitelisted_ips)==null?void 0:O.join(`
|
|
4247
4247
|
`))||""}))},[e]);const C=async()=>{if(!(!e||g))try{v(!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
4248
|
`).filter(O=>O.trim())}),i("Changes saved","info")}catch(O){i(O.message||"Failed to save changes","error")}finally{v(!1)}},_=async()=>{if(!(!e||b!==e.name))try{A(!0),await n(e),i("Workspace deleted","info")}catch{i("Failed to delete workspace","error")}finally{A(!1),x("")}};if(r&&!e)return t.jsx(ze,{});if(!e)return null;const k=(M=s==null?void 0:s.b2b_settings)==null?void 0:M.enforce_mfa_per_workspace_enabled,y=(z=s==null?void 0:s.b2b_settings)==null?void 0:z.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(Eo,{children:[t.jsxs(Se,{children:[t.jsx(be,{htmlFor:"name",children:"Workspace name"}),t.jsx(ue,{id:"name",value:h,onChange:O=>d(O.target.value),onBlur:C,placeholder:"Workspace name",required:!0})]}),t.jsxs(Se,{children:[t.jsx(be,{htmlFor:"description",children:"Description"}),t.jsx(ue,{id:"description",as:"textarea",value:u,onChange:O=>f(O.target.value),onBlur:C,placeholder:"Optional description",style:{minHeight:"var(--size-40u)",resize:"vertical"}})]})]}),(k||y)&&t.jsxs(Eo,{children:[t.jsx(Fc,{children:"Security"}),k&&t.jsxs(Rc,{style:{padding:0},children:[t.jsxs(Pc,{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(Tc,{children:t.jsx(Fr,{checked:p.mfa_required,onChange:()=>{m(O=>({...O,mfa_required:!O.mfa_required})),setTimeout(C,0)}})})]}),y&&t.jsxs(t.Fragment,{children:[t.jsxs(Rc,{style:{padding:0},children:[t.jsxs(Pc,{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(Tc,{children:t.jsx(Fr,{checked:p.ip_restrictions,onChange:()=>{m(O=>({...O,ip_restrictions:!O.ip_restrictions})),setTimeout(C,0)}})})]}),p.ip_restrictions&&t.jsxs(Se,{children:[t.jsx(be,{htmlFor:"allowed_ips",children:"Allowed IP addresses"}),t.jsx(ue,{id:"allowed_ips",as:"textarea",value:p.allowed_ips,onChange:O=>m(I=>({...I,allowed_ips:O.target.value})),onBlur:C,placeholder:`192.168.1.1
|
|
4249
4249
|
10.0.0.0/24`,style:{minHeight:"var(--size-40u)",fontFamily:"monospace"}})]})]})]}),t.jsxs(Eo,{children:[t.jsx(Fc,{children:"Danger zone"}),t.jsxs(y3,{children:[t.jsxs(j3,{children:[t.jsxs("div",{style:{flex:1,minWidth:0},children:[t.jsx(_3,{children:"Delete workspace"}),t.jsx(k3,{children:"Once you delete this workspace, there is no going back."})]}),t.jsx(N,{$size:"sm",$outline:!0,$destructive:!0,onClick:()=>{S(!j),x("")},children:j?"Cancel":"Delete workspace"})]}),j&&t.jsxs("div",{style:{marginTop:14,display:"flex",flexDirection:"column",gap:10},children:[t.jsxs(Se,{children:[t.jsxs(be,{htmlFor:"confirm_workspace_name",children:["Type ",t.jsx("strong",{children:e.name})," to confirm"]}),t.jsx(ue,{id:"confirm_workspace_name",type:"text",value:b,onChange:O=>x(O.target.value),placeholder:e.name})]}),t.jsx(N,{$size:"sm",$destructive:!0,onClick:_,disabled:b!==e.name||w,children:w?t.jsx(ze,{size:12}):"Delete forever"})]})]})]})]})},S3=l.div`
|
|
@@ -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
|
-
`,R3=({onClose:e,onSuccess:r,roles:a,triggerRef:n})=>{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:v}=gt(),{inviteMember:b}=
|
|
4302
|
+
`,R3=({onClose:e,onSuccess:r,roles:a,triggerRef:n})=>{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:v}=gt(),{inviteMember:b}=Zt(),x=xt({triggerRef:n??{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 A=S=>/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(S),j=async()=>{const S=i.trim().toLowerCase();if(!(!S||!d)){if(!A(S)){v("Please enter a valid email address","error");return}if(S.length>320){v("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.";v(_,"error")}finally{p(!1)}}};return m?t.jsxs(S3,{ref:s,style:{top:(x==null?void 0:x.top)!==void 0?`${x.top}px`:void 0,bottom:(x==null?void 0:x.bottom)!==void 0?`${x.bottom}px`:void 0,left:(x==null?void 0:x.left)!==void 0?`${x.left}px`:void 0,right:(x==null?void 0:x.right)!==void 0?`${x.right}px`:void 0,maxHeight:x!=null&&x.maxHeight?`${x.maxHeight}px`:void 0,visibility:x?"visible":"hidden"},onClick:S=>S.stopPropagation(),role:"dialog","aria-labelledby":"invite-workspace-member-title","aria-modal":"true",children:[t.jsxs(E3,{children:[t.jsx(A3,{id:"invite-workspace-member-title",children:"Invite Member"}),t.jsx(M3,{onClick:e,"aria-label":"Close invite member dialog",children:t.jsx(zs,{size:16})})]}),t.jsx(z3,{children:t.jsxs(L3,{children:[t.jsxs(Se,{children:[t.jsx(be,{children:"Email Address"}),t.jsx(ue,{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(Se,{children:[t.jsx(be,{children:"Role"}),t.jsx(In,{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($3,{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(ze,{size:14})," Sending..."]}):"PaperPlaneTilt Invitation"})]})]}):null},P3=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
|
-
`,T3=()=>{const{activeWorkspace:e,getMembers:r,getRoles:a,removeMember:n,addMemberRole:s,removeMemberRole:i}=
|
|
4315
|
+
`,T3=()=>{const{activeWorkspace:e,getMembers:r,getRoles:a,removeMember:n,addMemberRole:s,removeMemberRole:i}=Zt(),{session:h}=st(),{toast:d}=gt(),[u,f]=c.useState(""),[p,m]=c.useState(1),[g]=c.useState(10),[v,b]=c.useState(""),[x,w]=c.useState(!1),A=c.useRef(null);c.useEffect(()=>{const I=setTimeout(()=>{b(u),m(1)},500);return()=>clearTimeout(I)},[u]);const{data:j,mutate:S}=$e(e?`wacht - api - workspaces:${e.id}: members:${p}:${g}:${v} `:null,()=>r==null?void 0:r({page:p,limit:g,search:v}),{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=[]}=$e(e?`wacht - api - workspaces:${e.id}: roles`:null,()=>a()||[]),M=y,z=async(I,P,T)=>{try{T?(await i(I,P),d("Role removed","info")):(await s(I,P),d("Role added","info")),S()}catch{d("Failed to update role","error")}},O=async I=>{try{await n(I),d("Member removed","info"),S()}catch{d("Failed to remove member","error")}};return j?t.jsxs(t.Fragment,{children:[t.jsxs(Ts,{children:[t.jsx("div",{style:{flex:1},children:t.jsx(v1,{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:A,onClick:()=>w(!0),children:"Invite"})]})]}),x&&t.jsx(R3,{onClose:()=>w(!1),onSuccess:()=>{S(),w(!1)},roles:M,triggerRef:A}),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(Fs,{children:t.jsxs(Ot,{children:[t.jsx(Ht,{children:t.jsxs(lt,{children:[t.jsx(Oe,{children:"Member"}),t.jsx(Oe,{children:"Joined"}),t.jsx(Oe,{children:"Role"})]})}),t.jsx(Vt,{children:C.map(I=>t.jsxs(lt,{children:[t.jsx(Ye,{children:t.jsx(F3,{member:I,session:h})}),t.jsx(Ye,{children:new Date(I.created_at).toLocaleDateString()}),t.jsx(Dt,{children:t.jsx(I3,{member:I,roles:M,onToggle:(P,T)=>z(I.id,P,T),onRemove:()=>O(I.id)})})]},I.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(I=>Math.max(1,I-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(I=>Math.min(k,I+1)),disabled:p===k,$size:"sm",children:"Next"})]})]}):t.jsx(ze,{})},F3=({member:e,session:r,subtitle:a})=>{var h,d,u;const n=e.public_user_data||e.user,s=(n==null?void 0:n.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(P3,{children:n!=null&&n.profile_picture_url?t.jsx("img",{src:n.profile_picture_url,alt:"Avatar",style:{width:"100%",height:"100%",objectFit:"cover"}}):i(n==null?void 0:n.first_name,n==null?void 0:n.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:n?`${n.first_name||""} ${n.last_name||""} `.trim()||((d=n.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=n==null?void 0:n.primary_email_address)==null?void 0:u.email}),a&&t.jsxs("span",{style:{color:"var(--color-muted)"},children:["• ",a]})]})]})]})},I3=({member:e,roles:r,onToggle:a,onRemove:n})=>{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(Ma,{children:[t.jsx(Ra,{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(lr,{size:14,style:{marginLeft:"var(--space-2u)"}})]})}),t.jsxs(La,{style:{minWidth:h},children:[r.map(u=>{const f=i(u.id);return t.jsx(or,{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(g1,{}),t.jsx(or,{$destructive:!0,onClick:n,children:t.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"var(--space-4u)"},children:[t.jsx(As,{size:14})," Remove Member"]})})]})]})},Z3=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
|
+
`,Ic=l.div`
|
|
4338
4338
|
display: flex;
|
|
4339
4339
|
flex-direction: column;
|
|
4340
4340
|
gap: 4px;
|
|
4341
|
-
`,
|
|
4341
|
+
`,Zc=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
|
-
`,V3=({onClose:e,onSuccess:r,roles:a,createInvitation:n,triggerRef:s})=>{const i=c.useRef(null),[h,d]=c.useState(""),[u,f]=c.useState(a[0]||null),[p,m]=c.useState(!1),[g,v]=c.useState(!1),{toast:b}=gt(),x=xt({triggerRef:s,isOpen:g,minWidth:360,defaultMaxHeight:320}),w=a.map(S=>({value:S.id,label:S.name})),A=S=>/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(S),j=async()=>{const S=h.trim().toLowerCase();if(!(!S||!u)){if(!A(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 n({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(()=>{v(!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(
|
|
4350
|
+
`,V3=({onClose:e,onSuccess:r,roles:a,createInvitation:n,triggerRef:s})=>{const i=c.useRef(null),[h,d]=c.useState(""),[u,f]=c.useState(a[0]||null),[p,m]=c.useState(!1),[g,v]=c.useState(!1),{toast:b}=gt(),x=xt({triggerRef:s,isOpen:g,minWidth:360,defaultMaxHeight:320}),w=a.map(S=>({value:S.id,label:S.name})),A=S=>/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(S),j=async()=>{const S=h.trim().toLowerCase();if(!(!S||!u)){if(!A(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 n({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(()=>{v(!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(Z3,{ref:i,style:{top:(x==null?void 0:x.top)!==void 0?`${x.top}px`:void 0,bottom:(x==null?void 0:x.bottom)!==void 0?`${x.bottom}px`:void 0,left:(x==null?void 0:x.left)!==void 0?`${x.left}px`:void 0,right:(x==null?void 0:x.right)!==void 0?`${x.right}px`:void 0,visibility:x?"visible":"hidden"},onClick:S=>S.stopPropagation(),role:"dialog","aria-labelledby":"invite-member-title","aria-modal":"true",children:[t.jsx(O3,{id:"invite-member-title",children:"Invite member"}),t.jsxs(Ic,{children:[t.jsx(Zc,{children:"Email"}),t.jsx(ue,{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(Ic,{children:[t.jsx(Zc,{children:"Role"}),t.jsx(In,{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(H3,{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(ze,{size:12}):"Send invite"})]})]}):null},D3=()=>{const{activeWorkspace:e,loading:r,getRoles:a,getInvitations:n,inviteMember:s,discardInvitation:i,resendInvitation:h}=Zt(),{toast:d}=gt(),[u,f]=c.useState(!0),[p,m]=c.useState(!0),[g,v]=c.useState([]),[b,x]=c.useState([]),[w,A]=c.useState(!1),j=c.useRef(null),S=async()=>{if(e){f(!0),m(!0);try{const[k,y]=await Promise.all([a(),n()]);x(k),v(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(ze,{}):t.jsxs(t.Fragment,{children:[t.jsxs(Ts,{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:()=>A(!0),$size:"sm",children:"Invite"})]}),w&&t.jsx(V3,{onClose:()=>A(!1),onSuccess:()=>{S(),A(!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(Fs,{children:t.jsxs(Ot,{children:[t.jsx(Ht,{children:t.jsxs(lt,{children:[t.jsx(Oe,{children:"Email"}),t.jsx(Oe,{children:"Role"}),t.jsx(Oe,{children:"Invited"}),t.jsx(Oe,{})]})}),t.jsx(Vt,{children:g.map(k=>{var y,M;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)||((M=k.initial_organization_role)==null?void 0:M.name)||"No role"}),t.jsx(Ye,{children:new Date(k.created_at).toLocaleDateString()}),t.jsx(Dt,{children:t.jsx(N3,{onResend:()=>_(k.id),onCancel:()=>C(k.id)})})]},k.id)})})]})})})]})},N3=({onResend:e,onCancel:r})=>t.jsxs(Ma,{children:[t.jsx(Ra,{children:t.jsx(us,{children:"•••"})}),t.jsxs(La,{children:[t.jsxs(or,{onClick:e,children:[t.jsx(Nd,{size:16})," Resend"]}),t.jsxs(or,{$destructive:!0,onClick:r,children:[t.jsx(As,{size:16})," Cancel"]})]})]}),U3=l.div`
|
|
4351
4351
|
position: fixed;
|
|
4352
4352
|
background: var(--color-popover);
|
|
4353
4353
|
border-radius: 10px;
|
|
@@ -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
|
`,Y3=l.div`
|
|
4403
4403
|
color: var(--color-secondary-text);
|
|
4404
|
-
`,Q3=()=>{var C;const{activeWorkspace:e,loading:r,getRoles:a,createRole:n,deleteRole:s}=
|
|
4404
|
+
`,Q3=()=>{var C;const{activeWorkspace:e,loading:r,getRoles:a,createRole:n,deleteRole:s}=Zt(),{deployment:i}=Ae(),{toast:h}=gt(),[d,u]=c.useState({isOpen:!1}),[f,p]=c.useState(null),[m,g]=c.useState(null),v=c.useRef(null),b=c.useRef(new Map),{data:x=[],isLoading:w,mutate:A}=$e(e?`wacht-api-workspaces:${e.id}:roles`:null,()=>a()||[]),j=async _=>{try{await n(_.name,_.permissions||[]),h("Role saved successfully","info"),u({isOpen:!1}),A()}catch{h("Failed to save role","error")}},S=async _=>{try{await s(_),h("Role deleted","info"),p(null),A()}catch{h("Failed to delete role","error")}};return r||w?t.jsx(ze,{}):t.jsxs(t.Fragment,{children:[t.jsxs(Ts,{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:v,onClick:()=>u({isOpen:!0,triggerElement:v.current}),$size:"sm",children:"Add role"})]}),d.isOpen&&!d.role&&t.jsx(Vc,{triggerRef:{current:d.triggerElement||null},onClose:()=>u({isOpen:!1}),onSuccess:j}),x.length===0?t.jsx(At,{title:"No roles yet",description:"Create workspace-specific roles to manage access."}):t.jsx(t.Fragment,{children:t.jsx(Fs,{children:t.jsxs(Ot,{children:[t.jsx(Ht,{children:t.jsxs(lt,{children:[t.jsx(Oe,{children:"Role"}),t.jsx(Oe,{children:"Permissions"}),t.jsx(Oe,{})]})}),t.jsx(Vt,{children:x.map(_=>{var k;return t.jsxs(lt,{children:[t.jsx(Ye,{children:t.jsxs(G3,{children:[t.jsx(q3,{children:_.name}),!ds(_)&&t.jsx(K3,{children:"Default"})]})}),t.jsx(Ye,{children:t.jsxs(Y3,{children:[(k=_.permissions)==null?void 0:k.join(", "),!ds(_)&&" • Cannot be edited or deleted"]})}),t.jsx(Dt,{children:t.jsx(J3,{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(ea,{title:"Delete role?",description:"Are you sure? This will remove the role from all workspace members.",onConfirm:()=>{const _=x.find(k=>k.id===f);_&&S(_)},onCancel:()=>p(null)}),d.isOpen&&d.role&&t.jsx(Vc,{role:d.role,triggerRef:{current:d.triggerElement||null},onClose:()=>u({isOpen:!1}),onSuccess:j})]})},J3=({role:e,onEdit:r,onDelete:a,open:n,onOpenChange:s,dropdownButtonRefs:i})=>ds(e)?t.jsxs(Ma,{open:n,openChange:s,children:[t.jsx(Ra,{children:t.jsx(us,{ref:d=>{d&&i.current.set(e.id,d)},children:"•••"})}),t.jsxs(La,{children:[t.jsx(or,{onClick:()=>r(i.current.get(e.id)??null),children:"Edit Role"}),t.jsxs(or,{$destructive:!0,onClick:a,children:[t.jsx(As,{size:16})," Remove Role"]})]})]}):t.jsx(us,{disabled:!0,title:"Deployment roles cannot be edited","aria-label":"Deployment roles cannot be edited",children:"•••"}),X3=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
|
-
`,tx=e=>(e||"").slice(0,2).toUpperCase()||"W",B1=()=>{var w,A;const{activeWorkspace:e,loading:r,updateWorkspace:a}=
|
|
4455
|
+
`,tx=e=>(e||"").slice(0,2).toUpperCase()||"W",B1=()=>{var w,A;const{activeWorkspace:e,loading:r,updateWorkspace:a}=Zt(),{deployment:n}=Ae(),[s,i]=c.useState("general"),[h,d]=c.useState(null),[u,f]=c.useState("info"),[p,m]=c.useState(!1),g=c.useRef(null),v=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){v("File size cannot exceed 2MB","error");return}if(!S.type.startsWith("image/")){v("Please select a valid image file","error");return}try{m(!0),await a({image:S}),v("Logo updated","info")}catch(_){v((_==null?void 0:_.message)||"Failed to update logo","error")}finally{m(!1),g.current&&(g.current.value="")}}};if(r&&!e)return t.jsx(ge,{children:t.jsx(Lc,{style:{display:"flex",justifyContent:"center",alignItems:"center"},children:t.jsx(ze,{})})});if(!e)return null;const x=(w=e.organization)==null?void 0:w.name;return t.jsx(ge,{children:t.jsx(h3,{children:t.jsx(Ms.Provider,{value:{screen:null,setScreen:()=>{},toast:v},children:t.jsxs(Lc,{children:[t.jsxs(v3,{children:[t.jsxs(X3,{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}):tx(e.name),t.jsx("span",{className:"hover-overlay",children:p?t.jsx(ze,{size:14}):t.jsx(Ss,{size:16})})]}),t.jsx("input",{ref:g,type:"file",accept:"image/*",style:{display:"none"},onChange:b}),t.jsxs(x3,{children:[t.jsx(b3,{children:e.name}),t.jsx(w3,{children:x?`${x} · Workspace settings`:"Workspace settings"})]})]}),t.jsx(f3,{children:t.jsxs(m3,{children:[t.jsx(rn,{$isActive:s==="general",onClick:()=>i("general"),children:t.jsxs(an,{children:[t.jsx(zr,{size:14})," General"]})}),t.jsx(rn,{$isActive:s==="members",onClick:()=>i("members"),children:t.jsxs(an,{children:[t.jsx(jn,{size:14})," Members"]})}),t.jsx(rn,{$isActive:s==="invitations",onClick:()=>i("invitations"),children:t.jsxs(an,{children:[t.jsx(Nd,{size:14})," Invitations"]})}),((A=n==null?void 0:n.b2b_settings)==null?void 0:A.custom_workspace_role_enabled)&&t.jsx(rn,{$isActive:s==="roles",onClick:()=>i("roles"),children:t.jsxs(an,{children:[t.jsx(Rt,{size:14})," Roles"]})})]})}),t.jsxs(g3,{children:[s==="general"&&t.jsx(C3,{}),s==="members"&&t.jsx(T3,{}),s==="invitations"&&t.jsx(D3,{}),s==="roles"&&t.jsx(Q3,{})]}),h&&t.jsx(ex,{children:t.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8},children:[u==="error"?t.jsx(oa,{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})]})})]})})})})},Is=({isOpen:e,onClose:r,title:a,showHeader:n,headerContent:s,footerContent:i,customContent:h,children:d,showCloseButton:u})=>t.jsx(He,{isOpen:e,onClose:r,children:t.jsx(He.Overlay,{children:t.jsxs(He.Content,{style:{width:"900px",maxWidth:"90vw"},children:[n&&t.jsx(He.Header,{showCloseButton:u,children:s||a}),h||d||t.jsx(B1,{}),i&&t.jsx(He.Footer,{children:i})]})})}),W1=["organization:admin"],G1=["organization:admin","organization:manage"],q1=["workspace:admin"],K1=["workspace:admin","workspace:manage"];function Zs(e,r){return e!=null&&e.roles?e.roles.some(a=>{var n;return(n=a.permissions)==null?void 0:n.some(s=>r.includes(s))}):!1}function Os(e){return Zs(e,G1)}function rx(e){return Zs(e,W1)}function Hs(e,r){return e!=null&&e.roles?e.roles.some(a=>{var n;return(n=a.permissions)==null?void 0:n.some(s=>r.includes(s))}):!1}function Vs(e){return Hs(e,K1)}function ax(e){return Hs(e,q1)}const Dc=l.div`
|
|
4456
4456
|
position: relative;
|
|
4457
4457
|
display: block;
|
|
4458
4458
|
width: 100%;
|
|
@@ -4792,7 +4792,7 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
4792
4792
|
display: flex;
|
|
4793
4793
|
align-items: center;
|
|
4794
4794
|
gap: 8px;
|
|
4795
|
-
`,Q1=({showPersonal:e=!0})=>{var Te,Ve,Ue;const[r,a]=c.useState(!1),[n,s]=c.useState(!1),[i,h]=c.useState(new Set),d=c.useRef(null),u=c.useRef(null),f=xt({triggerRef:d,isOpen:r,minWidth:300}),p=Bt(!1),m=Bt(!1),g=Bt(!1),v=Bt(!1),[b,x]=c.useState(null),[w,A]=c.useState(null),[j,S]=c.useState(null),[C,_]=c.useState("org"),{organizationMemberships:k,loading:y,refetch:M}=Kt(),{activeOrganization:z,activeMembership:O,leave:I}=sr(),{activeWorkspace:P,activeMembership:T,leave:$}=
|
|
4795
|
+
`,Q1=({showPersonal:e=!0})=>{var Te,Ve,Ue;const[r,a]=c.useState(!1),[n,s]=c.useState(!1),[i,h]=c.useState(new Set),d=c.useRef(null),u=c.useRef(null),f=xt({triggerRef:d,isOpen:r,minWidth:300}),p=Bt(!1),m=Bt(!1),g=Bt(!1),v=Bt(!1),[b,x]=c.useState(null),[w,A]=c.useState(null),[j,S]=c.useState(null),[C,_]=c.useState("org"),{organizationMemberships:k,loading:y,refetch:M}=Kt(),{activeOrganization:z,activeMembership:O,leave:I}=sr(),{activeWorkspace:P,activeMembership:T,leave:$}=Zt(),{workspaces:E,loading:F}=ir(),{session:L,switchOrganization:H,switchWorkspace:Z}=st(),{deployment:R}=Ae(),W=R==null?void 0:R.b2b_settings.organizations_enabled,D=R==null?void 0:R.b2b_settings.workspaces_enabled,B=R==null?void 0:R.b2b_settings.allow_users_to_create_orgs,Y=!O,X=c.useMemo(()=>{var J,le;return Y?{name:"Personal account",image_url:(le=(J=L==null?void 0:L.active_signin)==null?void 0:J.user)==null?void 0:le.profile_picture_url,isPersonal:!0}:{name:D&&P?`${z==null?void 0:z.name} / ${P.name}`:(z==null?void 0:z.name)||"",image_url:z==null?void 0:z.image_url,isPersonal:!1}},[Y,z,P,L,D]);if(c.useEffect(()=>{z&&D&&h(ve=>{if(ve.has(z.id))return ve;const J=new Set(ve);return J.add(z.id),J})},[z,D]),c.useEffect(()=>{_(D&&P?"ws":"org")},[D,P==null?void 0:P.id]),c.useEffect(()=>{if(!r)return;let ve=null;const J=setTimeout(()=>{const le=oe=>{var pe,fe;const G=oe.target;(pe=d.current)!=null&&pe.contains(G)||(fe=u.current)!=null&&fe.contains(G)||(a(!1),A(null))};document.addEventListener("mousedown",le),ve=()=>document.removeEventListener("mousedown",le)},50);return()=>{clearTimeout(J),ve==null||ve()}},[r]),c.useEffect(()=>{if(!w)return;const ve=setTimeout(()=>A(null),5e3);return()=>clearTimeout(ve)},[w]),!W)return null;const ce=ve=>ve.split(" ").map(J=>J[0]).join("").toUpperCase().slice(0,2),me=ve=>{s(!0),H(ve).finally(()=>s(!1))},te=ve=>{s(!0),Z(ve).finally(()=>s(!1))},xe=ve=>{h(J=>{const le=new Set(J);return le.has(ve)?le.delete(ve):le.add(ve),le})},re=!!((Te=O==null?void 0:O.eligibility_restriction)!=null&&Te.type)&&O.eligibility_restriction.type!=="none";return!!!L||y||D&&F?t.jsx(ge,{children:t.jsx(Dc,{children:t.jsxs(px,{children:[t.jsx(on,{w:"20px",h:"20px",r:"5px"}),t.jsx(on,{w:"120px",h:"12px"})]})})}):t.jsx(ge,{children:t.jsxs(Dc,{children:[t.jsxs(nx,{ref:d,onClick:()=>{a(!r),r||A(null)},disabled:n,children:[t.jsx(ox,{$personal:X.isPersonal,children:X.image_url?t.jsx("img",{src:X.image_url,alt:X.name}):X.isPersonal?t.jsx(Ea,{size:11}):ce(X.name)}),t.jsx(sx,{children:X.name}),t.jsx(mf,{size:13,color:"var(--color-secondary-text)"})]}),typeof window<"u"&&Sn.createPortal(t.jsx(ge,{children:t.jsxs(ix,{ref:u,$isOpen:r,$position:f,children:[(()=>{var Q,se,he,_e;const ve=D&&!!P,J=!!z&&!re&&Os(O),le=ve&&!re&&Vs(T),oe=()=>{m.open(),a(!1)},G=()=>{v.open(),a(!1)},pe=async()=>{if(I){S("org"),A(null);try{await I(),await M(),a(!1)}catch(ke){A(ke instanceof Error?ke.message:"Failed to leave organization")}finally{S(null)}}},fe=async()=>{if($){S("ws"),A(null);try{await $(),a(!1)}catch(ke){A(ke instanceof Error?ke.message:"Failed to leave workspace")}finally{S(null)}}};if(Y)return null;const q=ve,de=q?C:"org",Be=(se=(Q=O==null?void 0:O.roles)==null?void 0:Q[0])==null?void 0:se.name,We=(_e=(he=T==null?void 0:T.roles)==null?void 0:he[0])==null?void 0:_e.name;return t.jsxs(lx,{children:[q&&t.jsxs(dx,{children:[t.jsx(Nc,{type:"button",$active:de==="org","data-active":de==="org",onClick:()=>_("org"),children:"Organization"}),t.jsx(Nc,{type:"button",$active:de==="ws","data-active":de==="ws",onClick:()=>_("ws"),children:"Workspace"})]}),de==="org"&&z&&t.jsxs(Uc,{children:[t.jsx(Bc,{children:z.image_url?t.jsx("img",{src:z.image_url,alt:z.name}):ce(z.name)}),t.jsxs(Wc,{children:[t.jsx(Gc,{children:z.name}),Be&&t.jsx(qc,{children:Be})]}),t.jsxs(Kc,{children:[J&&t.jsx(nn,{onClick:oe,title:"Organization settings","aria-label":"Organization settings",children:t.jsx(zr,{size:14})}),t.jsx(nn,{$destructive:!0,onClick:pe,disabled:j==="org",title:"Leave organization","aria-label":"Leave organization",children:t.jsx($r,{size:14})})]})]}),de==="ws"&&ve&&t.jsxs(Uc,{children:[t.jsx(Bc,{children:P.image_url?t.jsx("img",{src:P.image_url,alt:P.name}):ce(P.name)}),t.jsxs(Wc,{children:[t.jsx(Gc,{children:P.name}),We&&t.jsx(qc,{children:We})]}),t.jsxs(Kc,{children:[le&&t.jsx(nn,{onClick:G,title:"Workspace settings","aria-label":"Workspace settings",children:t.jsx(zr,{size:14})}),t.jsx(nn,{$destructive:!0,onClick:fe,disabled:j==="ws",title:"Leave workspace","aria-label":"Leave workspace",children:t.jsx($r,{size:14})})]})]})]})})(),w&&t.jsxs(fx,{children:[t.jsx(Mr,{size:13}),w]}),t.jsx(cx,{children:y||F?t.jsx(t.Fragment,{children:[1,2,3].map(ve=>t.jsxs(hx,{children:[t.jsx(on,{w:"22px",h:"22px",r:"5px"}),t.jsx(on,{w:ve===2?"60%":"80%",h:"11px"})]},ve))}):t.jsxs(t.Fragment,{children:[e&&t.jsxs(Yc,{$active:Y,onClick:()=>{Y||me()},disabled:n||Y,children:[t.jsx(Jc,{$personal:!0,children:(Ue=(Ve=L==null?void 0:L.active_signin)==null?void 0:Ve.user)!=null&&Ue.profile_picture_url?t.jsx("img",{src:L.active_signin.user.profile_picture_url,alt:"Personal"}):t.jsx(Ea,{size:12})}),t.jsx(ps,{children:"Personal account"}),Y&&t.jsx(Ao,{children:t.jsx("span",{className:"row-check",style:{display:"inline-flex"},children:t.jsx(zo,{size:13})})})]}),k==null?void 0:k.map(ve=>{var fe,q;const J=ve.organization,le=J.id===(z==null?void 0:z.id),oe=i.has(J.id),G=D?(E==null?void 0:E.filter(de=>de.organization.id===J.id))||[]:[],pe=!!((fe=ve.eligibility_restriction)!=null&&fe.type)&&ve.eligibility_restriction.type!=="none";return t.jsxs(c.Fragment,{children:[t.jsxs(Yc,{$active:le,onClick:()=>{pe||(D?xe(J.id):le||me(J.id))},disabled:n,style:pe?{opacity:.55,cursor:"not-allowed"}:le&&!D?{cursor:"default"}:void 0,title:(q=ve.eligibility_restriction)==null?void 0:q.message,children:[t.jsx(Jc,{children:J.image_url?t.jsx("img",{src:J.image_url,alt:J.name}):ce(J.name)}),t.jsx(ps,{children:J.name}),t.jsxs(Ao,{children:[pe&&t.jsx(Mr,{size:12,color:"var(--color-error)"}),le&&!D&&t.jsx(zo,{size:13}),D&&t.jsx(ux,{size:11,$open:oe})]})]}),D&&oe&&t.jsxs(t.Fragment,{children:[G.map(de=>{var Q,se;const Be=le&&(P==null?void 0:P.id)===de.id,We=((Q=de.eligibility_restriction)==null?void 0:Q.type)&&de.eligibility_restriction.type!=="none";return t.jsxs(Qc,{$active:Be,onClick:()=>{!Be&&!We&&te(de.id)},disabled:n,style:We||pe?{opacity:.55,cursor:"not-allowed"}:Be?{cursor:"default"}:void 0,title:(se=de.eligibility_restriction)==null?void 0:se.message,children:[t.jsx(Xc,{children:de.image_url?t.jsx("img",{src:de.image_url,alt:de.name}):ce(de.name).charAt(0)}),t.jsx(el,{children:de.name}),t.jsxs(Ao,{children:[We&&t.jsx(Mr,{size:12,color:"var(--color-error)"}),Be&&t.jsx(zo,{size:12})]})]},de.id)}),!pe&&t.jsxs(Qc,{onClick:()=>{x(J.id),g.open()},disabled:n,children:[t.jsx(Xc,{style:{background:"transparent",border:"1px dashed var(--color-border)"},children:t.jsx(jt,{size:10})}),t.jsx(el,{children:"New workspace"})]})]})]},J.id)})]})}),D?t.jsx(tl,{children:t.jsxs(rl,{onClick:()=>{x(z&&!re?z.id:null),g.open()},disabled:n||!z||re,children:[t.jsx(al,{children:t.jsx(jt,{size:12})}),"New workspace"]})}):B&&t.jsx(tl,{children:t.jsxs(rl,{onClick:()=>p.open(),disabled:n,children:[t.jsx(al,{children:t.jsx(jt,{size:12})}),"New organization"]})})]})}),document.body),W&&B&&t.jsx(I1,{isOpen:p.isOpen,onClose:p.close,onCreated:M}),t.jsx(D1,{isOpen:m.isOpen,onClose:m.close}),D&&t.jsxs(t.Fragment,{children:[t.jsx(Is,{isOpen:v.isOpen,onClose:v.close}),t.jsx(Ps,{isOpen:g.isOpen,onClose:()=>{g.close(),x(null)},organizationId:b||void 0})]})]})})},J1=c.createContext(void 0),Yt=()=>{const e=c.useContext(J1);if(!e)throw new Error("useScreenContext must be used within a ScreenProvider");return e},mx=mt`
|
|
4796
4796
|
0% { transform: rotate(0deg); }
|
|
4797
4797
|
100% { transform: rotate(360deg); }
|
|
4798
4798
|
`,gx=l.div`
|
|
@@ -5401,7 +5401,7 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
5401
5401
|
`,Fx=l.span`
|
|
5402
5402
|
font-size: 12px;
|
|
5403
5403
|
color: var(--color-secondary-text);
|
|
5404
|
-
`,
|
|
5404
|
+
`,Ix=()=>{var z,O,I,P;const{deployment:e}=Ae(),{toast:r}=Yt(),[a,n]=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:v,deleteEmailAddress:b,prepareEmailVerification:x,attemptEmailVerification:w,makeEmailPrimary:A}=cr();if(!((O=(z=e==null?void 0:e.auth_settings)==null?void 0:z.email_address)!=null&&O.enabled))return null;const j=(T,$)=>{f(E=>{const F=new Set(E);return $?F.add(T):F.delete(T),F})},S=async T=>{j(T,!0);try{await A(T),await g.refetch(),r("Primary email updated","info")}catch($){r($.message||"Failed to update primary email","error")}finally{j(T,!1)}},C=async T=>{if(T===(g==null?void 0:g.primary_email_address_id)){r("Cannot delete primary email. Set another email as primary first.","error");return}j(T,!0);try{await b(T),await g.refetch(),r("Email removed","info")}catch($){r($.message||"Failed to delete email address. Please try again.","error")}finally{j(T,!1)}},_=async T=>{j(T,!0);try{await x(T),await g.refetch(),d(T)}catch($){r($.message||"Failed to send verification","error")}finally{j(T,!1)}},k=(g==null?void 0:g.user_email_addresses)||[],y=T=>T.id===(g==null?void 0:g.primary_email_address_id)?t.jsx(Lr,{$variant:"success",children:"Primary"}):T.verified?t.jsx(Lr,{$variant:"neutral",children:"Backup"}):t.jsx(Lr,{$variant:"warning",children:"Pending verification"}),M=T=>{const $=T.id===(g==null?void 0:g.primary_email_address_id),E=u.has(T.id);return $?t.jsx(Fx,{children:"Cannot remove"}):t.jsxs(Tx,{children:[T.verified&&t.jsx(N,{$size:"sm",$outline:!0,disabled:E,onClick:()=>S(T.id),children:"Make primary"}),!T.verified&&t.jsx(N,{ref:F=>{F&&(m.current[T.id]=F)},$size:"sm",$outline:!0,disabled:E,onClick:()=>_(T.id),children:"Resend"}),t.jsx(N,{$size:"sm",$destructive:!0,disabled:E,onClick:()=>C(T.id),children:E?t.jsx(ze,{size:12}):"Remove"})]})};return t.jsxs(t.Fragment,{children:[t.jsxs(eu,{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(il,{triggerRef:p,onClose:()=>i(!1),onAddEmail:async T=>{const $=await v(T);n($.data.id),await x($.data.id),g.refetch()},onPrepareVerification:async()=>{await x(a),g.refetch()},onAttemptVerification:async T=>{await w(a,T),g.refetch(),i(!1),n(""),r("Email added and verified","info")}})]})]}),k.length?t.jsx(t.Fragment,{children:t.jsx(Ds,{children:t.jsxs(Ot,{children:[t.jsx(Ht,{children:t.jsxs(lt,{children:[t.jsx(Oe,{children:"Email address"}),t.jsx(Oe,{children:"Status"}),t.jsx(Oe,{})]})}),t.jsx(Vt,{children:k.map(T=>t.jsxs(lt,{children:[t.jsx(Ye,{children:T.email}),t.jsx(Ye,{children:y(T)}),t.jsx(Dt,{children:M(T)})]},T.id))})]})})}):t.jsx(At,{title:"No email addresses",description:"Add an email address to get started."}),h&&t.jsx(il,{existingEmail:(P=(I=g==null?void 0:g.user_email_addresses)==null?void 0:I.find(T=>T.id===h))==null?void 0:P.email,triggerRef:{current:m.current[h]},onClose:()=>d(null),onAddEmail:async()=>{},onPrepareVerification:async()=>{await x(h),g.refetch()},onAttemptVerification:async T=>{await w(h,T),g.refetch(),d(null),r("Email verified","info")}})]})},Zx=l.div`
|
|
5405
5405
|
position: fixed;
|
|
5406
5406
|
background: var(--color-popover);
|
|
5407
5407
|
border-radius: 10px;
|
|
@@ -5455,7 +5455,7 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
5455
5455
|
grid-template-columns: 1fr 1fr;
|
|
5456
5456
|
gap: 6px;
|
|
5457
5457
|
& > button { width: 100%; }
|
|
5458
|
-
`,ul=({onClose:e,onAddPhone:r,onAttemptVerification:a,existingPhone:n,onPrepareVerification:s,triggerRef:i})=>{var y;const h=c.useRef(null),[d,u]=c.useState(!1),{toast:f}=Yt(),p=xt({triggerRef:i??{current:null},isOpen:d,minWidth:340,defaultMaxHeight:360});c.useEffect(()=>{u(!0);const M=O=>{h.current&&!h.current.contains(O.target)&&e()},z=O=>{O.key==="Escape"&&e()};return document.addEventListener("mousedown",M),document.addEventListener("keydown",z),()=>{document.removeEventListener("mousedown",M),document.removeEventListener("keydown",z)}},[e]);const[m,g]=c.useState(n?"otp":"phone"),[v,b]=c.useState((n==null?void 0:n.replace(/^\+\d+/,""))||""),[x,w]=c.useState((y=Intl.DateTimeFormat().resolvedOptions().locale.split("-"))==null?void 0:y.pop()),[A,j]=c.useState(""),[S,C]=c.useState(!1),_=async()=>{if(!(!v||S)){C(!0);try{await r(v,x||""),g("otp")}catch(M){f(M.message||"Failed to add phone number. Please try again.","error")}finally{C(!1)}}},k=async()=>{C(!0);try{await a(A),e()}catch(M){f(M.message||"Failed to verify phone. Check the code and try again.","error")}finally{C(!1)}};return d?t.jsx(
|
|
5458
|
+
`,ul=({onClose:e,onAddPhone:r,onAttemptVerification:a,existingPhone:n,onPrepareVerification:s,triggerRef:i})=>{var y;const h=c.useRef(null),[d,u]=c.useState(!1),{toast:f}=Yt(),p=xt({triggerRef:i??{current:null},isOpen:d,minWidth:340,defaultMaxHeight:360});c.useEffect(()=>{u(!0);const M=O=>{h.current&&!h.current.contains(O.target)&&e()},z=O=>{O.key==="Escape"&&e()};return document.addEventListener("mousedown",M),document.addEventListener("keydown",z),()=>{document.removeEventListener("mousedown",M),document.removeEventListener("keydown",z)}},[e]);const[m,g]=c.useState(n?"otp":"phone"),[v,b]=c.useState((n==null?void 0:n.replace(/^\+\d+/,""))||""),[x,w]=c.useState((y=Intl.DateTimeFormat().resolvedOptions().locale.split("-"))==null?void 0:y.pop()),[A,j]=c.useState(""),[S,C]=c.useState(!1),_=async()=>{if(!(!v||S)){C(!0);try{await r(v,x||""),g("otp")}catch(M){f(M.message||"Failed to add phone number. Please try again.","error")}finally{C(!1)}}},k=async()=>{C(!0);try{await a(A),e()}catch(M){f(M.message||"Failed to verify phone. Check the code and try again.","error")}finally{C(!1)}};return d?t.jsx(Zx,{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:M=>M.stopPropagation(),children:m==="phone"?t.jsxs(t.Fragment,{children:[t.jsx(cl,{children:t.jsx(ll,{children:"Add phone number"})}),t.jsx($a,{value:v,onChange:M=>b(M.target.value),error:"",countryCode:x,setCountryCode:w}),t.jsxs(dl,{children:[t.jsx(N,{$size:"sm",$outline:!0,onClick:e,children:"Cancel"}),t.jsx(N,{$size:"sm",onClick:_,disabled:!v||S,children:S?"Sending…":"Send code"})]})]}):t.jsxs(t.Fragment,{children:[t.jsx(cl,{children:n?t.jsx("span",{}):t.jsxs(Ox,{onClick:()=>g("phone"),children:[t.jsx(na,{size:11})," Back"]})}),t.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:4},children:[t.jsx(ll,{children:"Verify phone number"}),t.jsxs(Hx,{children:["Enter the 6-digit code sent to ",t.jsx("strong",{children:n||v})]})]}),t.jsx(dr,{onComplete:M=>j(M),onResend:async()=>s(),isSubmitting:S}),t.jsxs(dl,{children:[t.jsx(N,{$size:"sm",$outline:!0,onClick:e,children:"Cancel"}),t.jsx(N,{$size:"sm",onClick:k,disabled:A.length!==6||S,children:S?"Verifying…":"Verify"})]})]})}):null},Vx=l.div`
|
|
5459
5459
|
display: flex;
|
|
5460
5460
|
align-items: center;
|
|
5461
5461
|
gap: 6px;
|
|
@@ -5473,7 +5473,7 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
5473
5473
|
font-size: 13px;
|
|
5474
5474
|
& .flag { font-size: 14px; line-height: 1; }
|
|
5475
5475
|
& .code { color: var(--color-secondary-text); }
|
|
5476
|
-
`,Ux=()=>{var O,I,P,T;const{deployment:e}=Ae(),{toast:r}=Yt(),[a,n]=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:v,deletePhoneNumber:b,preparePhoneVerification:x,attemptPhoneVerification:w,makePhonePrimary:A}=cr();if(!((I=(O=e==null?void 0:e.auth_settings)==null?void 0:O.phone_number)!=null&&I.enabled))return null;const j=($,E)=>{f(F=>{const L=new Set(F);return E?L.add($):L.delete($),L})},S=$=>{const E=xn.find(F=>F.dialCode===$);return(E==null?void 0:E.flag)||"🌍"},C=async $=>{j($,!0);try{await A($),await g.refetch(),r("Primary phone updated","info")}catch(E){r(E.message||"Failed to update primary phone","error")}finally{j($,!1)}},_=async $=>{if($===(g==null?void 0:g.primary_phone_number_id)){r("Cannot delete primary phone. Set another phone as primary first.","error");return}j($,!0);try{await b($),await g.refetch(),r("Phone removed","info")}catch(E){r(E.message||"Failed to delete phone. Please try again.","error")}finally{j($,!1)}},k=async $=>{j($,!0);try{await x($),await g.refetch(),d($)}catch(E){r(E.message||"Failed to send verification","error")}finally{j($,!1)}},y=(g==null?void 0:g.user_phone_numbers)||[],M=$=>$.id===(g==null?void 0:g.primary_phone_number_id)?t.jsx(Lr,{$variant:"success",children:"Primary"}):$.verified?t.jsx(Lr,{$variant:"neutral",children:"Backup"}):t.jsx(Lr,{$variant:"warning",children:"Pending verification"}),z=$=>{const E=$.id===(g==null?void 0:g.primary_phone_number_id),F=u.has($.id);return E?t.jsx(Dx,{children:"Cannot remove"}):t.jsxs(Vx,{children:[$.verified&&t.jsx(N,{$size:"sm",$outline:!0,disabled:F,onClick:()=>C($.id),children:"Make primary"}),!$.verified&&t.jsx(N,{ref:L=>{L&&(m.current[$.id]=L)},$size:"sm",$outline:!0,disabled:F,onClick:()=>k($.id),children:"Resend"}),t.jsx(N,{$size:"sm",$destructive:!0,disabled:F,onClick:()=>_($.id),children:F?t.jsx(ze,{size:12}):"Remove"})]})};return t.jsxs(t.Fragment,{children:[t.jsxs(eu,{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(ul,{triggerRef:p,onClose:()=>i(!1),onAddPhone:async($,E)=>{const F=await v($,E);n(F.data.id),await x(F.data.id)},onPrepareVerification:async()=>{await x(a),g.refetch()},onAttemptVerification:async $=>{await w(a,$),g.refetch(),i(!1),n(""),r("Phone added and verified","info")}}),h&&t.jsx(ul,{existingPhone:(T=(P=g==null?void 0:g.user_phone_numbers)==null?void 0:P.find($=>$.id===h))==null?void 0:T.phone_number,triggerRef:{current:m.current[h]},onClose:()=>d(null),onAddPhone:async()=>{},onPrepareVerification:async()=>{await x(h),g.refetch()},onAttemptVerification:async $=>{await w(h,$),g.refetch(),d(null),r("Phone verified","info")}})]})]}),y.length?t.jsx(t.Fragment,{children:t.jsx(Ds,{children:t.jsxs(Ot,{children:[t.jsx(Ht,{children:t.jsxs(lt,{children:[t.jsx(Oe,{children:"Phone number"}),t.jsx(Oe,{children:"Status"}),t.jsx(Oe,{})]})}),t.jsx(Vt,{children:y.map($=>t.jsxs(lt,{children:[t.jsx(
|
|
5476
|
+
`,Ux=()=>{var O,I,P,T;const{deployment:e}=Ae(),{toast:r}=Yt(),[a,n]=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:v,deletePhoneNumber:b,preparePhoneVerification:x,attemptPhoneVerification:w,makePhonePrimary:A}=cr();if(!((I=(O=e==null?void 0:e.auth_settings)==null?void 0:O.phone_number)!=null&&I.enabled))return null;const j=($,E)=>{f(F=>{const L=new Set(F);return E?L.add($):L.delete($),L})},S=$=>{const E=xn.find(F=>F.dialCode===$);return(E==null?void 0:E.flag)||"🌍"},C=async $=>{j($,!0);try{await A($),await g.refetch(),r("Primary phone updated","info")}catch(E){r(E.message||"Failed to update primary phone","error")}finally{j($,!1)}},_=async $=>{if($===(g==null?void 0:g.primary_phone_number_id)){r("Cannot delete primary phone. Set another phone as primary first.","error");return}j($,!0);try{await b($),await g.refetch(),r("Phone removed","info")}catch(E){r(E.message||"Failed to delete phone. Please try again.","error")}finally{j($,!1)}},k=async $=>{j($,!0);try{await x($),await g.refetch(),d($)}catch(E){r(E.message||"Failed to send verification","error")}finally{j($,!1)}},y=(g==null?void 0:g.user_phone_numbers)||[],M=$=>$.id===(g==null?void 0:g.primary_phone_number_id)?t.jsx(Lr,{$variant:"success",children:"Primary"}):$.verified?t.jsx(Lr,{$variant:"neutral",children:"Backup"}):t.jsx(Lr,{$variant:"warning",children:"Pending verification"}),z=$=>{const E=$.id===(g==null?void 0:g.primary_phone_number_id),F=u.has($.id);return E?t.jsx(Dx,{children:"Cannot remove"}):t.jsxs(Vx,{children:[$.verified&&t.jsx(N,{$size:"sm",$outline:!0,disabled:F,onClick:()=>C($.id),children:"Make primary"}),!$.verified&&t.jsx(N,{ref:L=>{L&&(m.current[$.id]=L)},$size:"sm",$outline:!0,disabled:F,onClick:()=>k($.id),children:"Resend"}),t.jsx(N,{$size:"sm",$destructive:!0,disabled:F,onClick:()=>_($.id),children:F?t.jsx(ze,{size:12}):"Remove"})]})};return t.jsxs(t.Fragment,{children:[t.jsxs(eu,{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(ul,{triggerRef:p,onClose:()=>i(!1),onAddPhone:async($,E)=>{const F=await v($,E);n(F.data.id),await x(F.data.id)},onPrepareVerification:async()=>{await x(a),g.refetch()},onAttemptVerification:async $=>{await w(a,$),g.refetch(),i(!1),n(""),r("Phone added and verified","info")}}),h&&t.jsx(ul,{existingPhone:(T=(P=g==null?void 0:g.user_phone_numbers)==null?void 0:P.find($=>$.id===h))==null?void 0:T.phone_number,triggerRef:{current:m.current[h]},onClose:()=>d(null),onAddPhone:async()=>{},onPrepareVerification:async()=>{await x(h),g.refetch()},onAttemptVerification:async $=>{await w(h,$),g.refetch(),d(null),r("Phone verified","info")}})]})]}),y.length?t.jsx(t.Fragment,{children:t.jsx(Ds,{children:t.jsxs(Ot,{children:[t.jsx(Ht,{children:t.jsxs(lt,{children:[t.jsx(Oe,{children:"Phone number"}),t.jsx(Oe,{children:"Status"}),t.jsx(Oe,{})]})}),t.jsx(Vt,{children:y.map($=>t.jsxs(lt,{children:[t.jsx(Ye,{children:t.jsxs(Nx,{children:[t.jsx("span",{className:"flag",children:S($.country_code)}),t.jsx("span",{className:"code",children:$.country_code}),t.jsx("span",{children:$.phone_number})]})}),t.jsx(Ye,{children:M($)}),t.jsx(Dt,{children:z($)})]},$.id))})]})})}):t.jsx(At,{title:"No phone numbers",description:"Add a phone number to get started."})]})},Bx=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"})]}),Wx={google_oauth:{icon:t.jsx(s1,{}),label:"Google"},microsoft_oauth:{icon:t.jsx(Bx,{}),label:"Microsoft"},github_oauth:{icon:t.jsx(o1,{}),label:"GitHub"},gitlab_oauth:{icon:t.jsx(l1,{}),label:"GitLab"},linkedin_oauth:{icon:t.jsx(c1,{}),label:"LinkedIn"},discord_oauth:{icon:t.jsx(d1,{}),label:"Discord"},x_oauth:{icon:t.jsx(i1,{}),label:"X"}},Gx=l.div`
|
|
5477
5477
|
display: flex;
|
|
5478
5478
|
align-items: center;
|
|
5479
5479
|
gap: var(--space-4u);
|
|
@@ -5584,7 +5584,7 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
5584
5584
|
* @license QR Code generator library (TypeScript)
|
|
5585
5585
|
* Copyright (c) Project Nayuki.
|
|
5586
5586
|
* SPDX-License-Identifier: MIT
|
|
5587
|
-
*/var Zr;(e=>{const r=class Ie{constructor(u,f,p,m){if(this.version=u,this.errorCorrectionLevel=f,this.modules=[],this.isFunction=[],u<Ie.MIN_VERSION||u>Ie.MAX_VERSION)throw new RangeError("Version value out of range");if(m<-1||m>7)throw new RangeError("Mask value out of range");this.size=u*4+17;let g=[];for(let b=0;b<this.size;b++)g.push(!1);for(let b=0;b<this.size;b++)this.modules.push(g.slice()),this.isFunction.push(g.slice());this.drawFunctionPatterns();const v=this.addEccAndInterleave(p);if(this.drawCodewords(v),m==-1){let b=1e9;for(let x=0;x<8;x++){this.applyMask(x),this.drawFormatBits(x);const w=this.getPenaltyScore();w<b&&(m=x,b=w),this.applyMask(x)}}s(0<=m&&m<=7),this.mask=m,this.applyMask(m),this.drawFormatBits(m),this.isFunction=[]}static encodeText(u,f){const p=e.QrSegment.makeSegments(u);return Ie.encodeSegments(p,f)}static encodeBinary(u,f){const p=e.QrSegment.makeBytes(u);return Ie.encodeSegments([p],f)}static encodeSegments(u,f,p=1,m=40,g=-1,v=!0){if(!(Ie.MIN_VERSION<=p&&p<=m&&m<=Ie.MAX_VERSION)||g<-1||g>7)throw new RangeError("Invalid value");let b,x;for(b=p;;b++){const S=Ie.getNumDataCodewords(b,f)*8,C=h.getTotalBits(u,b);if(C<=S){x=C;break}if(b>=m)throw new RangeError("Data too long")}for(const S of[Ie.Ecc.MEDIUM,Ie.Ecc.QUARTILE,Ie.Ecc.HIGH])v&&x<=Ie.getNumDataCodewords(b,S)*8&&(f=S);let w=[];for(const S of u){a(S.mode.modeBits,4,w),a(S.numChars,S.mode.numCharCountBits(b),w);for(const C of S.getData())w.push(C)}s(w.length==x);const A=Ie.getNumDataCodewords(b,f)*8;s(w.length<=A),a(0,Math.min(4,A-w.length),w),a(0,(8-w.length%8)%8,w),s(w.length%8==0);for(let S=236;w.length<A;S^=253)a(S,8,w);let j=[];for(;j.length*8<w.length;)j.push(0);return w.forEach((S,C)=>j[C>>>3]|=S<<7-(C&7)),new Ie(b,f,j,g)}getModule(u,f){return 0<=u&&u<this.size&&0<=f&&f<this.size&&this.modules[f][u]}getModules(){return this.modules}drawFunctionPatterns(){for(let p=0;p<this.size;p++)this.setFunctionModule(6,p,p%2==0),this.setFunctionModule(p,6,p%2==0);this.drawFinderPattern(3,3),this.drawFinderPattern(this.size-4,3),this.drawFinderPattern(3,this.size-4);const u=this.getAlignmentPatternPositions(),f=u.length;for(let p=0;p<f;p++)for(let m=0;m<f;m++)p==0&&m==0||p==0&&m==f-1||p==f-1&&m==0||this.drawAlignmentPattern(u[p],u[m]);this.drawFormatBits(0),this.drawVersion()}drawFormatBits(u){const f=this.errorCorrectionLevel.formatBits<<3|u;let p=f;for(let g=0;g<10;g++)p=p<<1^(p>>>9)*1335;const m=(f<<10|p)^21522;s(m>>>15==0);for(let g=0;g<=5;g++)this.setFunctionModule(8,g,n(m,g));this.setFunctionModule(8,7,n(m,6)),this.setFunctionModule(8,8,n(m,7)),this.setFunctionModule(7,8,n(m,8));for(let g=9;g<15;g++)this.setFunctionModule(14-g,8,n(m,g));for(let g=0;g<8;g++)this.setFunctionModule(this.size-1-g,8,n(m,g));for(let g=8;g<15;g++)this.setFunctionModule(8,this.size-15+g,n(m,g));this.setFunctionModule(8,this.size-8,!0)}drawVersion(){if(this.version<7)return;let u=this.version;for(let p=0;p<12;p++)u=u<<1^(u>>>11)*7973;const f=this.version<<12|u;s(f>>>18==0);for(let p=0;p<18;p++){const m=n(f,p),g=this.size-11+p%3,v=Math.floor(p/3);this.setFunctionModule(g,v,m),this.setFunctionModule(v,g,m)}}drawFinderPattern(u,f){for(let p=-4;p<=4;p++)for(let m=-4;m<=4;m++){const g=Math.max(Math.abs(m),Math.abs(p)),v=u+m,b=f+p;0<=v&&v<this.size&&0<=b&&b<this.size&&this.setFunctionModule(v,b,g!=2&&g!=4)}}drawAlignmentPattern(u,f){for(let p=-2;p<=2;p++)for(let m=-2;m<=2;m++)this.setFunctionModule(u+m,f+p,Math.max(Math.abs(m),Math.abs(p))!=1)}setFunctionModule(u,f,p){this.modules[f][u]=p,this.isFunction[f][u]=!0}addEccAndInterleave(u){const f=this.version,p=this.errorCorrectionLevel;if(u.length!=Ie.getNumDataCodewords(f,p))throw new RangeError("Invalid argument");const m=Ie.NUM_ERROR_CORRECTION_BLOCKS[p.ordinal][f],g=Ie.ECC_CODEWORDS_PER_BLOCK[p.ordinal][f],v=Math.floor(Ie.getNumRawDataModules(f)/8),b=m-v%m,x=Math.floor(v/m);let w=[];const A=Ie.reedSolomonComputeDivisor(g);for(let S=0,C=0;S<m;S++){let _=u.slice(C,C+x-g+(S<b?0:1));C+=_.length;const k=Ie.reedSolomonComputeRemainder(_,A);S<b&&_.push(0),w.push(_.concat(k))}let j=[];for(let S=0;S<w[0].length;S++)w.forEach((C,_)=>{(S!=x-g||_>=b)&&j.push(C[S])});return s(j.length==v),j}drawCodewords(u){if(u.length!=Math.floor(Ie.getNumRawDataModules(this.version)/8))throw new RangeError("Invalid argument");let f=0;for(let p=this.size-1;p>=1;p-=2){p==6&&(p=5);for(let m=0;m<this.size;m++)for(let g=0;g<2;g++){const v=p-g,x=(p+1&2)==0?this.size-1-m:m;!this.isFunction[x][v]&&f<u.length*8&&(this.modules[x][v]=n(u[f>>>3],7-(f&7)),f++)}}s(f==u.length*8)}applyMask(u){if(u<0||u>7)throw new RangeError("Mask value out of range");for(let f=0;f<this.size;f++)for(let p=0;p<this.size;p++){let m;switch(u){case 0:m=(p+f)%2==0;break;case 1:m=f%2==0;break;case 2:m=p%3==0;break;case 3:m=(p+f)%3==0;break;case 4:m=(Math.floor(p/3)+Math.floor(f/2))%2==0;break;case 5:m=p*f%2+p*f%3==0;break;case 6:m=(p*f%2+p*f%3)%2==0;break;case 7:m=((p+f)%2+p*f%3)%2==0;break;default:throw new Error("Unreachable")}!this.isFunction[f][p]&&m&&(this.modules[f][p]=!this.modules[f][p])}}getPenaltyScore(){let u=0;for(let g=0;g<this.size;g++){let v=!1,b=0,x=[0,0,0,0,0,0,0];for(let w=0;w<this.size;w++)this.modules[g][w]==v?(b++,b==5?u+=Ie.PENALTY_N1:b>5&&u++):(this.finderPenaltyAddHistory(b,x),v||(u+=this.finderPenaltyCountPatterns(x)*Ie.PENALTY_N3),v=this.modules[g][w],b=1);u+=this.finderPenaltyTerminateAndCount(v,b,x)*Ie.PENALTY_N3}for(let g=0;g<this.size;g++){let v=!1,b=0,x=[0,0,0,0,0,0,0];for(let w=0;w<this.size;w++)this.modules[w][g]==v?(b++,b==5?u+=Ie.PENALTY_N1:b>5&&u++):(this.finderPenaltyAddHistory(b,x),v||(u+=this.finderPenaltyCountPatterns(x)*Ie.PENALTY_N3),v=this.modules[w][g],b=1);u+=this.finderPenaltyTerminateAndCount(v,b,x)*Ie.PENALTY_N3}for(let g=0;g<this.size-1;g++)for(let v=0;v<this.size-1;v++){const b=this.modules[g][v];b==this.modules[g][v+1]&&b==this.modules[g+1][v]&&b==this.modules[g+1][v+1]&&(u+=Ie.PENALTY_N2)}let f=0;for(const g of this.modules)f=g.reduce((v,b)=>v+(b?1:0),f);const p=this.size*this.size,m=Math.ceil(Math.abs(f*20-p*10)/p)-1;return s(0<=m&&m<=9),u+=m*Ie.PENALTY_N4,s(0<=u&&u<=2568888),u}getAlignmentPatternPositions(){if(this.version==1)return[];{const u=Math.floor(this.version/7)+2,f=this.version==32?26:Math.ceil((this.version*4+4)/(u*2-2))*2;let p=[6];for(let m=this.size-7;p.length<u;m-=f)p.splice(1,0,m);return p}}static getNumRawDataModules(u){if(u<Ie.MIN_VERSION||u>Ie.MAX_VERSION)throw new RangeError("Version number out of range");let f=(16*u+128)*u+64;if(u>=2){const p=Math.floor(u/7)+2;f-=(25*p-10)*p-55,u>=7&&(f-=36)}return s(208<=f&&f<=29648),f}static getNumDataCodewords(u,f){return Math.floor(Ie.getNumRawDataModules(u)/8)-Ie.ECC_CODEWORDS_PER_BLOCK[f.ordinal][u]*Ie.NUM_ERROR_CORRECTION_BLOCKS[f.ordinal][u]}static reedSolomonComputeDivisor(u){if(u<1||u>255)throw new RangeError("Degree out of range");let f=[];for(let m=0;m<u-1;m++)f.push(0);f.push(1);let p=1;for(let m=0;m<u;m++){for(let g=0;g<f.length;g++)f[g]=Ie.reedSolomonMultiply(f[g],p),g+1<f.length&&(f[g]^=f[g+1]);p=Ie.reedSolomonMultiply(p,2)}return f}static reedSolomonComputeRemainder(u,f){let p=f.map(m=>0);for(const m of u){const g=m^p.shift();p.push(0),f.forEach((v,b)=>p[b]^=Ie.reedSolomonMultiply(v,g))}return p}static reedSolomonMultiply(u,f){if(u>>>8||f>>>8)throw new RangeError("Byte out of range");let p=0;for(let m=7;m>=0;m--)p=p<<1^(p>>>7)*285,p^=(f>>>m&1)*u;return s(p>>>8==0),p}finderPenaltyCountPatterns(u){const f=u[1];s(f<=this.size*3);const p=f>0&&u[2]==f&&u[3]==f*3&&u[4]==f&&u[5]==f;return(p&&u[0]>=f*4&&u[6]>=f?1:0)+(p&&u[6]>=f*4&&u[0]>=f?1:0)}finderPenaltyTerminateAndCount(u,f,p){return u&&(this.finderPenaltyAddHistory(f,p),f=0),f+=this.size,this.finderPenaltyAddHistory(f,p),this.finderPenaltyCountPatterns(p)}finderPenaltyAddHistory(u,f){f[0]==0&&(u+=this.size),f.pop(),f.unshift(u)}};r.MIN_VERSION=1,r.MAX_VERSION=40,r.PENALTY_N1=3,r.PENALTY_N2=3,r.PENALTY_N3=40,r.PENALTY_N4=10,r.ECC_CODEWORDS_PER_BLOCK=[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]],r.NUM_ERROR_CORRECTION_BLOCKS=[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]],e.QrCode=r;function a(d,u,f){if(u<0||u>31||d>>>u)throw new RangeError("Value out of range");for(let p=u-1;p>=0;p--)f.push(d>>>p&1)}function n(d,u){return(d>>>u&1)!=0}function s(d){if(!d)throw new Error("Assertion error")}const i=class at{constructor(u,f,p){if(this.mode=u,this.numChars=f,this.bitData=p,f<0)throw new RangeError("Invalid argument");this.bitData=p.slice()}static makeBytes(u){let f=[];for(const p of u)a(p,8,f);return new at(at.Mode.BYTE,u.length,f)}static makeNumeric(u){if(!at.isNumeric(u))throw new RangeError("String contains non-numeric characters");let f=[];for(let p=0;p<u.length;){const m=Math.min(u.length-p,3);a(parseInt(u.substring(p,p+m),10),m*3+1,f),p+=m}return new at(at.Mode.NUMERIC,u.length,f)}static makeAlphanumeric(u){if(!at.isAlphanumeric(u))throw new RangeError("String contains unencodable characters in alphanumeric mode");let f=[],p;for(p=0;p+2<=u.length;p+=2){let m=at.ALPHANUMERIC_CHARSET.indexOf(u.charAt(p))*45;m+=at.ALPHANUMERIC_CHARSET.indexOf(u.charAt(p+1)),a(m,11,f)}return p<u.length&&a(at.ALPHANUMERIC_CHARSET.indexOf(u.charAt(p)),6,f),new at(at.Mode.ALPHANUMERIC,u.length,f)}static makeSegments(u){return u==""?[]:at.isNumeric(u)?[at.makeNumeric(u)]:at.isAlphanumeric(u)?[at.makeAlphanumeric(u)]:[at.makeBytes(at.toUtf8ByteArray(u))]}static makeEci(u){let f=[];if(u<0)throw new RangeError("ECI assignment value out of range");if(u<128)a(u,8,f);else if(u<16384)a(2,2,f),a(u,14,f);else if(u<1e6)a(6,3,f),a(u,21,f);else throw new RangeError("ECI assignment value out of range");return new at(at.Mode.ECI,0,f)}static isNumeric(u){return at.NUMERIC_REGEX.test(u)}static isAlphanumeric(u){return at.ALPHANUMERIC_REGEX.test(u)}getData(){return this.bitData.slice()}static getTotalBits(u,f){let p=0;for(const m of u){const g=m.mode.numCharCountBits(f);if(m.numChars>=1<<g)return 1/0;p+=4+g+m.bitData.length}return p}static toUtf8ByteArray(u){u=encodeURI(u);let f=[];for(let p=0;p<u.length;p++)u.charAt(p)!="%"?f.push(u.charCodeAt(p)):(f.push(parseInt(u.substring(p+1,p+3),16)),p+=2);return f}};i.NUMERIC_REGEX=/^[0-9]*$/,i.ALPHANUMERIC_REGEX=/^[A-Z0-9 $%*+.\/:-]*$/,i.ALPHANUMERIC_CHARSET="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:";let h=i;e.QrSegment=i})(Zr||(Zr={}));(e=>{(r=>{const a=class{constructor(s,i){this.ordinal=s,this.formatBits=i}};a.LOW=new a(0,1),a.MEDIUM=new a(1,0),a.QUARTILE=new a(2,3),a.HIGH=new a(3,2),r.Ecc=a})(e.QrCode||(e.QrCode={}))})(Zr||(Zr={}));(e=>{(r=>{const a=class{constructor(s,i){this.modeBits=s,this.numBitsCharCount=i}numCharCountBits(s){return this.numBitsCharCount[Math.floor((s+7)/17)]}};a.NUMERIC=new a(1,[10,12,14]),a.ALPHANUMERIC=new a(2,[9,11,13]),a.BYTE=new a(4,[8,16,16]),a.KANJI=new a(8,[8,10,12]),a.ECI=new a(7,[0,0,0]),r.Mode=a})(e.QrSegment||(e.QrSegment={}))})(Zr||(Zr={}));var Kr=Zr;/**
|
|
5587
|
+
*/var Ir;(e=>{const r=class Ze{constructor(u,f,p,m){if(this.version=u,this.errorCorrectionLevel=f,this.modules=[],this.isFunction=[],u<Ze.MIN_VERSION||u>Ze.MAX_VERSION)throw new RangeError("Version value out of range");if(m<-1||m>7)throw new RangeError("Mask value out of range");this.size=u*4+17;let g=[];for(let b=0;b<this.size;b++)g.push(!1);for(let b=0;b<this.size;b++)this.modules.push(g.slice()),this.isFunction.push(g.slice());this.drawFunctionPatterns();const v=this.addEccAndInterleave(p);if(this.drawCodewords(v),m==-1){let b=1e9;for(let x=0;x<8;x++){this.applyMask(x),this.drawFormatBits(x);const w=this.getPenaltyScore();w<b&&(m=x,b=w),this.applyMask(x)}}s(0<=m&&m<=7),this.mask=m,this.applyMask(m),this.drawFormatBits(m),this.isFunction=[]}static encodeText(u,f){const p=e.QrSegment.makeSegments(u);return Ze.encodeSegments(p,f)}static encodeBinary(u,f){const p=e.QrSegment.makeBytes(u);return Ze.encodeSegments([p],f)}static encodeSegments(u,f,p=1,m=40,g=-1,v=!0){if(!(Ze.MIN_VERSION<=p&&p<=m&&m<=Ze.MAX_VERSION)||g<-1||g>7)throw new RangeError("Invalid value");let b,x;for(b=p;;b++){const S=Ze.getNumDataCodewords(b,f)*8,C=h.getTotalBits(u,b);if(C<=S){x=C;break}if(b>=m)throw new RangeError("Data too long")}for(const S of[Ze.Ecc.MEDIUM,Ze.Ecc.QUARTILE,Ze.Ecc.HIGH])v&&x<=Ze.getNumDataCodewords(b,S)*8&&(f=S);let w=[];for(const S of u){a(S.mode.modeBits,4,w),a(S.numChars,S.mode.numCharCountBits(b),w);for(const C of S.getData())w.push(C)}s(w.length==x);const A=Ze.getNumDataCodewords(b,f)*8;s(w.length<=A),a(0,Math.min(4,A-w.length),w),a(0,(8-w.length%8)%8,w),s(w.length%8==0);for(let S=236;w.length<A;S^=253)a(S,8,w);let j=[];for(;j.length*8<w.length;)j.push(0);return w.forEach((S,C)=>j[C>>>3]|=S<<7-(C&7)),new Ze(b,f,j,g)}getModule(u,f){return 0<=u&&u<this.size&&0<=f&&f<this.size&&this.modules[f][u]}getModules(){return this.modules}drawFunctionPatterns(){for(let p=0;p<this.size;p++)this.setFunctionModule(6,p,p%2==0),this.setFunctionModule(p,6,p%2==0);this.drawFinderPattern(3,3),this.drawFinderPattern(this.size-4,3),this.drawFinderPattern(3,this.size-4);const u=this.getAlignmentPatternPositions(),f=u.length;for(let p=0;p<f;p++)for(let m=0;m<f;m++)p==0&&m==0||p==0&&m==f-1||p==f-1&&m==0||this.drawAlignmentPattern(u[p],u[m]);this.drawFormatBits(0),this.drawVersion()}drawFormatBits(u){const f=this.errorCorrectionLevel.formatBits<<3|u;let p=f;for(let g=0;g<10;g++)p=p<<1^(p>>>9)*1335;const m=(f<<10|p)^21522;s(m>>>15==0);for(let g=0;g<=5;g++)this.setFunctionModule(8,g,n(m,g));this.setFunctionModule(8,7,n(m,6)),this.setFunctionModule(8,8,n(m,7)),this.setFunctionModule(7,8,n(m,8));for(let g=9;g<15;g++)this.setFunctionModule(14-g,8,n(m,g));for(let g=0;g<8;g++)this.setFunctionModule(this.size-1-g,8,n(m,g));for(let g=8;g<15;g++)this.setFunctionModule(8,this.size-15+g,n(m,g));this.setFunctionModule(8,this.size-8,!0)}drawVersion(){if(this.version<7)return;let u=this.version;for(let p=0;p<12;p++)u=u<<1^(u>>>11)*7973;const f=this.version<<12|u;s(f>>>18==0);for(let p=0;p<18;p++){const m=n(f,p),g=this.size-11+p%3,v=Math.floor(p/3);this.setFunctionModule(g,v,m),this.setFunctionModule(v,g,m)}}drawFinderPattern(u,f){for(let p=-4;p<=4;p++)for(let m=-4;m<=4;m++){const g=Math.max(Math.abs(m),Math.abs(p)),v=u+m,b=f+p;0<=v&&v<this.size&&0<=b&&b<this.size&&this.setFunctionModule(v,b,g!=2&&g!=4)}}drawAlignmentPattern(u,f){for(let p=-2;p<=2;p++)for(let m=-2;m<=2;m++)this.setFunctionModule(u+m,f+p,Math.max(Math.abs(m),Math.abs(p))!=1)}setFunctionModule(u,f,p){this.modules[f][u]=p,this.isFunction[f][u]=!0}addEccAndInterleave(u){const f=this.version,p=this.errorCorrectionLevel;if(u.length!=Ze.getNumDataCodewords(f,p))throw new RangeError("Invalid argument");const m=Ze.NUM_ERROR_CORRECTION_BLOCKS[p.ordinal][f],g=Ze.ECC_CODEWORDS_PER_BLOCK[p.ordinal][f],v=Math.floor(Ze.getNumRawDataModules(f)/8),b=m-v%m,x=Math.floor(v/m);let w=[];const A=Ze.reedSolomonComputeDivisor(g);for(let S=0,C=0;S<m;S++){let _=u.slice(C,C+x-g+(S<b?0:1));C+=_.length;const k=Ze.reedSolomonComputeRemainder(_,A);S<b&&_.push(0),w.push(_.concat(k))}let j=[];for(let S=0;S<w[0].length;S++)w.forEach((C,_)=>{(S!=x-g||_>=b)&&j.push(C[S])});return s(j.length==v),j}drawCodewords(u){if(u.length!=Math.floor(Ze.getNumRawDataModules(this.version)/8))throw new RangeError("Invalid argument");let f=0;for(let p=this.size-1;p>=1;p-=2){p==6&&(p=5);for(let m=0;m<this.size;m++)for(let g=0;g<2;g++){const v=p-g,x=(p+1&2)==0?this.size-1-m:m;!this.isFunction[x][v]&&f<u.length*8&&(this.modules[x][v]=n(u[f>>>3],7-(f&7)),f++)}}s(f==u.length*8)}applyMask(u){if(u<0||u>7)throw new RangeError("Mask value out of range");for(let f=0;f<this.size;f++)for(let p=0;p<this.size;p++){let m;switch(u){case 0:m=(p+f)%2==0;break;case 1:m=f%2==0;break;case 2:m=p%3==0;break;case 3:m=(p+f)%3==0;break;case 4:m=(Math.floor(p/3)+Math.floor(f/2))%2==0;break;case 5:m=p*f%2+p*f%3==0;break;case 6:m=(p*f%2+p*f%3)%2==0;break;case 7:m=((p+f)%2+p*f%3)%2==0;break;default:throw new Error("Unreachable")}!this.isFunction[f][p]&&m&&(this.modules[f][p]=!this.modules[f][p])}}getPenaltyScore(){let u=0;for(let g=0;g<this.size;g++){let v=!1,b=0,x=[0,0,0,0,0,0,0];for(let w=0;w<this.size;w++)this.modules[g][w]==v?(b++,b==5?u+=Ze.PENALTY_N1:b>5&&u++):(this.finderPenaltyAddHistory(b,x),v||(u+=this.finderPenaltyCountPatterns(x)*Ze.PENALTY_N3),v=this.modules[g][w],b=1);u+=this.finderPenaltyTerminateAndCount(v,b,x)*Ze.PENALTY_N3}for(let g=0;g<this.size;g++){let v=!1,b=0,x=[0,0,0,0,0,0,0];for(let w=0;w<this.size;w++)this.modules[w][g]==v?(b++,b==5?u+=Ze.PENALTY_N1:b>5&&u++):(this.finderPenaltyAddHistory(b,x),v||(u+=this.finderPenaltyCountPatterns(x)*Ze.PENALTY_N3),v=this.modules[w][g],b=1);u+=this.finderPenaltyTerminateAndCount(v,b,x)*Ze.PENALTY_N3}for(let g=0;g<this.size-1;g++)for(let v=0;v<this.size-1;v++){const b=this.modules[g][v];b==this.modules[g][v+1]&&b==this.modules[g+1][v]&&b==this.modules[g+1][v+1]&&(u+=Ze.PENALTY_N2)}let f=0;for(const g of this.modules)f=g.reduce((v,b)=>v+(b?1:0),f);const p=this.size*this.size,m=Math.ceil(Math.abs(f*20-p*10)/p)-1;return s(0<=m&&m<=9),u+=m*Ze.PENALTY_N4,s(0<=u&&u<=2568888),u}getAlignmentPatternPositions(){if(this.version==1)return[];{const u=Math.floor(this.version/7)+2,f=this.version==32?26:Math.ceil((this.version*4+4)/(u*2-2))*2;let p=[6];for(let m=this.size-7;p.length<u;m-=f)p.splice(1,0,m);return p}}static getNumRawDataModules(u){if(u<Ze.MIN_VERSION||u>Ze.MAX_VERSION)throw new RangeError("Version number out of range");let f=(16*u+128)*u+64;if(u>=2){const p=Math.floor(u/7)+2;f-=(25*p-10)*p-55,u>=7&&(f-=36)}return s(208<=f&&f<=29648),f}static getNumDataCodewords(u,f){return Math.floor(Ze.getNumRawDataModules(u)/8)-Ze.ECC_CODEWORDS_PER_BLOCK[f.ordinal][u]*Ze.NUM_ERROR_CORRECTION_BLOCKS[f.ordinal][u]}static reedSolomonComputeDivisor(u){if(u<1||u>255)throw new RangeError("Degree out of range");let f=[];for(let m=0;m<u-1;m++)f.push(0);f.push(1);let p=1;for(let m=0;m<u;m++){for(let g=0;g<f.length;g++)f[g]=Ze.reedSolomonMultiply(f[g],p),g+1<f.length&&(f[g]^=f[g+1]);p=Ze.reedSolomonMultiply(p,2)}return f}static reedSolomonComputeRemainder(u,f){let p=f.map(m=>0);for(const m of u){const g=m^p.shift();p.push(0),f.forEach((v,b)=>p[b]^=Ze.reedSolomonMultiply(v,g))}return p}static reedSolomonMultiply(u,f){if(u>>>8||f>>>8)throw new RangeError("Byte out of range");let p=0;for(let m=7;m>=0;m--)p=p<<1^(p>>>7)*285,p^=(f>>>m&1)*u;return s(p>>>8==0),p}finderPenaltyCountPatterns(u){const f=u[1];s(f<=this.size*3);const p=f>0&&u[2]==f&&u[3]==f*3&&u[4]==f&&u[5]==f;return(p&&u[0]>=f*4&&u[6]>=f?1:0)+(p&&u[6]>=f*4&&u[0]>=f?1:0)}finderPenaltyTerminateAndCount(u,f,p){return u&&(this.finderPenaltyAddHistory(f,p),f=0),f+=this.size,this.finderPenaltyAddHistory(f,p),this.finderPenaltyCountPatterns(p)}finderPenaltyAddHistory(u,f){f[0]==0&&(u+=this.size),f.pop(),f.unshift(u)}};r.MIN_VERSION=1,r.MAX_VERSION=40,r.PENALTY_N1=3,r.PENALTY_N2=3,r.PENALTY_N3=40,r.PENALTY_N4=10,r.ECC_CODEWORDS_PER_BLOCK=[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]],r.NUM_ERROR_CORRECTION_BLOCKS=[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]],e.QrCode=r;function a(d,u,f){if(u<0||u>31||d>>>u)throw new RangeError("Value out of range");for(let p=u-1;p>=0;p--)f.push(d>>>p&1)}function n(d,u){return(d>>>u&1)!=0}function s(d){if(!d)throw new Error("Assertion error")}const i=class nt{constructor(u,f,p){if(this.mode=u,this.numChars=f,this.bitData=p,f<0)throw new RangeError("Invalid argument");this.bitData=p.slice()}static makeBytes(u){let f=[];for(const p of u)a(p,8,f);return new nt(nt.Mode.BYTE,u.length,f)}static makeNumeric(u){if(!nt.isNumeric(u))throw new RangeError("String contains non-numeric characters");let f=[];for(let p=0;p<u.length;){const m=Math.min(u.length-p,3);a(parseInt(u.substring(p,p+m),10),m*3+1,f),p+=m}return new nt(nt.Mode.NUMERIC,u.length,f)}static makeAlphanumeric(u){if(!nt.isAlphanumeric(u))throw new RangeError("String contains unencodable characters in alphanumeric mode");let f=[],p;for(p=0;p+2<=u.length;p+=2){let m=nt.ALPHANUMERIC_CHARSET.indexOf(u.charAt(p))*45;m+=nt.ALPHANUMERIC_CHARSET.indexOf(u.charAt(p+1)),a(m,11,f)}return p<u.length&&a(nt.ALPHANUMERIC_CHARSET.indexOf(u.charAt(p)),6,f),new nt(nt.Mode.ALPHANUMERIC,u.length,f)}static makeSegments(u){return u==""?[]:nt.isNumeric(u)?[nt.makeNumeric(u)]:nt.isAlphanumeric(u)?[nt.makeAlphanumeric(u)]:[nt.makeBytes(nt.toUtf8ByteArray(u))]}static makeEci(u){let f=[];if(u<0)throw new RangeError("ECI assignment value out of range");if(u<128)a(u,8,f);else if(u<16384)a(2,2,f),a(u,14,f);else if(u<1e6)a(6,3,f),a(u,21,f);else throw new RangeError("ECI assignment value out of range");return new nt(nt.Mode.ECI,0,f)}static isNumeric(u){return nt.NUMERIC_REGEX.test(u)}static isAlphanumeric(u){return nt.ALPHANUMERIC_REGEX.test(u)}getData(){return this.bitData.slice()}static getTotalBits(u,f){let p=0;for(const m of u){const g=m.mode.numCharCountBits(f);if(m.numChars>=1<<g)return 1/0;p+=4+g+m.bitData.length}return p}static toUtf8ByteArray(u){u=encodeURI(u);let f=[];for(let p=0;p<u.length;p++)u.charAt(p)!="%"?f.push(u.charCodeAt(p)):(f.push(parseInt(u.substring(p+1,p+3),16)),p+=2);return f}};i.NUMERIC_REGEX=/^[0-9]*$/,i.ALPHANUMERIC_REGEX=/^[A-Z0-9 $%*+.\/:-]*$/,i.ALPHANUMERIC_CHARSET="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:";let h=i;e.QrSegment=i})(Ir||(Ir={}));(e=>{(r=>{const a=class{constructor(s,i){this.ordinal=s,this.formatBits=i}};a.LOW=new a(0,1),a.MEDIUM=new a(1,0),a.QUARTILE=new a(2,3),a.HIGH=new a(3,2),r.Ecc=a})(e.QrCode||(e.QrCode={}))})(Ir||(Ir={}));(e=>{(r=>{const a=class{constructor(s,i){this.modeBits=s,this.numBitsCharCount=i}numCharCountBits(s){return this.numBitsCharCount[Math.floor((s+7)/17)]}};a.NUMERIC=new a(1,[10,12,14]),a.ALPHANUMERIC=new a(2,[9,11,13]),a.BYTE=new a(4,[8,16,16]),a.KANJI=new a(8,[8,10,12]),a.ECI=new a(7,[0,0,0]),r.Mode=a})(e.QrSegment||(e.QrSegment={}))})(Ir||(Ir={}));var Kr=Ir;/**
|
|
5588
5588
|
* @license qrcode.react
|
|
5589
5589
|
* Copyright (c) Paul O'Shannessy
|
|
5590
5590
|
* SPDX-License-Identifier: ISC
|
|
@@ -5762,12 +5762,12 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
5762
5762
|
@media (max-width: 600px) {
|
|
5763
5763
|
width: calc(100vw - var(--space-24u));
|
|
5764
5764
|
}
|
|
5765
|
-
`,
|
|
5765
|
+
`,I5=l.div`
|
|
5766
5766
|
display: flex;
|
|
5767
5767
|
gap: var(--space-4u);
|
|
5768
5768
|
justify-content: flex-end;
|
|
5769
5769
|
margin-top: var(--space-8u);
|
|
5770
|
-
`,
|
|
5770
|
+
`,Z5=l.div`
|
|
5771
5771
|
font-size: var(--font-size-lg);
|
|
5772
5772
|
font-weight: 400;
|
|
5773
5773
|
color: var(--color-popover-foreground);
|
|
@@ -5781,15 +5781,15 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
5781
5781
|
color: var(--color-error);
|
|
5782
5782
|
font-size: var(--font-size-sm);
|
|
5783
5783
|
margin-top: var(--space-2u);
|
|
5784
|
-
`,V5=({onClose:e,onAddPasskey:r,triggerRef:a})=>{const n=c.useRef(null),[s,i]=c.useState(!1),[h,d]=c.useState(""),[u,f]=c.useState(!1),[p,m]=c.useState(""),g=xt({triggerRef:a??{current:null},isOpen:s,minWidth:320,defaultMaxHeight:260});c.useEffect(()=>{i(!0);const b=w=>{n.current&&!n.current.contains(w.target)&&e()},x=w=>{w.key==="Escape"&&e()};return document.addEventListener("mousedown",b),document.addEventListener("keydown",x),()=>{document.removeEventListener("mousedown",b),document.removeEventListener("keydown",x)}},[e]);const v=async()=>{if(!u){f(!0),m("");try{await r(h.trim()),e()}catch(b){m(b.message||"Failed to register passkey"),f(!1)}}};return s?t.jsxs(F5,{ref:n,style:{top:(g==null?void 0:g.top)!==void 0?`${g.top}px`:void 0,bottom:(g==null?void 0:g.bottom)!==void 0?`${g.bottom}px`:void 0,left:(g==null?void 0:g.left)!==void 0?`${g.left}px`:void 0,right:(g==null?void 0:g.right)!==void 0?`${g.right}px`:void 0,maxHeight:g!=null&&g.maxHeight?`${g.maxHeight}px`:void 0,visibility:g?"visible":"hidden"},onClick:b=>b.stopPropagation(),children:[t.jsx(
|
|
5784
|
+
`,V5=({onClose:e,onAddPasskey:r,triggerRef:a})=>{const n=c.useRef(null),[s,i]=c.useState(!1),[h,d]=c.useState(""),[u,f]=c.useState(!1),[p,m]=c.useState(""),g=xt({triggerRef:a??{current:null},isOpen:s,minWidth:320,defaultMaxHeight:260});c.useEffect(()=>{i(!0);const b=w=>{n.current&&!n.current.contains(w.target)&&e()},x=w=>{w.key==="Escape"&&e()};return document.addEventListener("mousedown",b),document.addEventListener("keydown",x),()=>{document.removeEventListener("mousedown",b),document.removeEventListener("keydown",x)}},[e]);const v=async()=>{if(!u){f(!0),m("");try{await r(h.trim()),e()}catch(b){m(b.message||"Failed to register passkey"),f(!1)}}};return s?t.jsxs(F5,{ref:n,style:{top:(g==null?void 0:g.top)!==void 0?`${g.top}px`:void 0,bottom:(g==null?void 0:g.bottom)!==void 0?`${g.bottom}px`:void 0,left:(g==null?void 0:g.left)!==void 0?`${g.left}px`:void 0,right:(g==null?void 0:g.right)!==void 0?`${g.right}px`:void 0,maxHeight:g!=null&&g.maxHeight?`${g.maxHeight}px`:void 0,visibility:g?"visible":"hidden"},onClick:b=>b.stopPropagation(),children:[t.jsx(Z5,{children:"Add Passkey"}),t.jsx(O5,{children:t.jsx(ue,{type:"text",placeholder:"e.g., MacBook Pro, iPhone",value:h,onChange:b=>d(b.target.value),autoFocus:!0})}),p&&t.jsx(H5,{children:p}),t.jsxs(I5,{children:[t.jsx(N,{$outline:!0,onClick:e,children:"Cancel"}),t.jsx(N,{onClick:v,disabled:u,children:u?"Registering...":"Continue"})]})]}):null},D5=l.div`
|
|
5785
5785
|
font-size: var(--font-size-sm);
|
|
5786
5786
|
text-transform: uppercase;
|
|
5787
5787
|
color: var(--color-secondary-text);
|
|
5788
5788
|
padding: ${e=>e.$first?"0":"var(--space-8u) 0 0"};
|
|
5789
5789
|
margin-bottom: var(--space-4u);
|
|
5790
|
-
`,N5=()=>{var ye,Me,De,
|
|
5790
|
+
`,N5=()=>{var ye,Me,De,et,rt,ft,_t;const{deployment:e}=Ae(),{user:r,updatePassword:a,removePassword:n,setupAuthenticator:s,verifyAuthenticator:i,deleteAuthenticator:h,generateBackupCodes:d,regenerateBackupCodes:u,updateProfile:f,getPasskeys:p,registerPasskey:m,deletePasskey:g}=cr(),{toast:v}=Yt(),[b,x]=c.useState((r==null?void 0:r.second_factor_policy)||"none"),[w,A]=c.useState(!1),j=async ae=>{try{await f({second_factor_policy:ae}),x(ae),v("2FA requirement updated successfully","info")}catch(Re){v(Re.message||"Failed to update 2FA requirement","error")}},[S,C]=c.useState(!1),[_,k]=c.useState(!1),[y,M]=c.useState(!1),[z,O]=c.useState(!1),I=c.useRef(null),P=c.useRef(null),T=c.useRef(null),$=c.useRef(null),[E,F]=c.useState([]),[L,H]=c.useState(!1),[Z,R]=c.useState(!1),[W,D]=c.useState(!1),[B,Y]=c.useState(!1),[X,ce]=c.useState(null),me=c.useRef(null),[te,xe]=c.useState("table"),[re,U]=c.useState(""),[Qe,Te]=c.useState(""),[Ve,Ue]=c.useState(""),[ve,J]=c.useState(["",""]),[le,oe]=c.useState([]),[G,pe]=c.useState(!1),[fe,q]=c.useState(!1),[de]=c.useState(!1),[Be,We]=c.useState(!1),Q=(ye=e==null?void 0:e.auth_settings)==null?void 0:ye.auth_factors_enabled,se=(De=(Me=e==null?void 0:e.auth_settings)==null?void 0:Me.password)==null?void 0:De.enabled;if(!(Q!=null&&Q.authenticator)&&!(Q!=null&&Q.backup_code)&&!se)return null;const he=async(ae,Re)=>{await a(ae,Re),await r.refetch(),v("Password updated successfully","info")},_e=async ae=>{await n(ae),await r.refetch(),v("Password removed successfully","info")},ke=()=>{var K,ee,ne,Fe,Pe,at;if(!r)return!1;const ae=(K=r.user_email_addresses)==null?void 0:K.some(vt=>vt.verified),Re=(ee=r.user_phone_numbers)==null?void 0:ee.some(vt=>vt.verified),tt=r.social_connections&&r.social_connections.length>0,qe=e==null?void 0:e.auth_settings;return(qe==null?void 0:qe.first_factor)==="email_otp"&&ae||((ne=qe==null?void 0:qe.magic_link)==null?void 0:ne.enabled)&&ae||((Fe=qe==null?void 0:qe.passkey)==null?void 0:Fe.enabled)||((Pe=qe==null?void 0:qe.auth_factors_enabled)==null?void 0:Pe.phone_otp)&&Re||tt&&((at=e==null?void 0:e.social_connections)==null?void 0:at.some(vt=>vt.enabled))},Ge=async()=>{if(ve.some(ae=>ae.length!==6)){v("Please enter both 6-digit verification codes","error");return}try{if(q(!0),await i(Ve,ve),await r.refetch(),Q!=null&&Q.backup_code){const ae=await d();oe(ae),await r.refetch(),xe("backup")}else xe("success")}catch(ae){v(ae.message||"Invalid verification codes","error")}finally{q(!1)}},dt=()=>{xe("table"),U(""),Te(""),Ue(""),J(["",""]),oe([]),v("Two-factor authentication setup completed successfully!","info")},ur=async()=>{var ae;if((ae=r==null?void 0:r.user_authenticator)!=null&&ae.id)try{We(!0),await h(r.user_authenticator.id),await r.refetch(),A(!1),v("Two-factor authentication removed successfully","info")}catch(Re){v(Re.message||"Failed to remove authenticator","error")}finally{We(!1)}},pr=async()=>{if(!G)try{pe(!0);const ae=await u();oe(ae),await r.refetch(),O(!0),v("New backup codes generated","info")}catch(ae){v(ae.message||"Failed to generate backup codes","error")}finally{pe(!1)}},Qt=()=>{const ae=le.join(`
|
|
5791
5791
|
`);navigator.clipboard.writeText(ae).then(()=>{v("Backup codes copied to clipboard","info")}).catch(()=>{v("Failed to copy backup codes","error")})},Jt=()=>{const ae=le.join(`
|
|
5792
|
-
`),Re=new Blob([ae],{type:"text/plain"}),et=URL.createObjectURL(Re),qe=document.createElement("a");qe.href=et,qe.download="wacht-backup-codes.txt",qe.click(),URL.revokeObjectURL(et),v("Backup codes downloaded","info")},Nt=async()=>{var ae,Re;if((Re=(ae=e==null?void 0:e.auth_settings)==null?void 0:ae.passkey)!=null&&Re.enabled)try{H(!0);const et=await p();F(et.data||[])}catch{v("Failed to load passkeys","error")}finally{H(!1)}},hr=async ae=>{try{R(!0),await m(ae||void 0),await Nt(),v("Passkey registered successfully!","info")}catch(Re){throw v(Re.message||"Failed to register passkey","error"),Re}finally{R(!1)}},fr=async ae=>{try{await g(ae),await Nt(),v("Passkey removed","info")}catch(Re){v(Re.message||"Failed to remove passkey","error")}};c.useEffect(()=>{Nt()},[(tt=(Xe=e==null?void 0:e.auth_settings)==null?void 0:Xe.passkey)==null?void 0:tt.enabled]);const bt=[];se&&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"}),(_t=(ft=e==null?void 0:e.auth_settings)==null?void 0:ft.passkey)!=null&&_t.enabled&&bt.push({id:"passkey",name:"Passkeys",description:"Sign in faster with fingerprint, face, or screen lock",status:E.length>0?`${E.length} registered`:"",actions:E.length>0?["manage","add"]:["add"],group:"sign-in"}),Q!=null&&Q.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"});const ie=ae=>{switch(ae){case"password":return r!=null&&r.has_password?{variant:"success",label:"Active"}:{variant:"warning",label:"Not set up"};case"passkey":return E.length>0?{variant:"neutral",label:`${E.length} registered`}:{variant:"warning",label:"None"};case"authenticator":return r!=null&&r.user_authenticator?{variant:"success",label:"Enabled"}:{variant:"warning",label:"Not set up"};case"backup_codes":return r!=null&&r.backup_codes_generated?{variant:"success",label:"Generated"}:{variant:"warning",label:"Not generated"};case"second_factor_policy":return b==="enforced"?{variant:"success",label:"Enforced"}:{variant:"neutral",label:"Optional"};default:return null}};return te!=="table"?t.jsxs(t.Fragment,{children:[t.jsxs(wx,{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:[te==="qr"&&"Setup Two-Factor Authentication",te==="verify"&&"Verify Your Authenticator",te==="backup"&&"Save Your Backup Codes",te==="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:[te==="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:de?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:`${mx} 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..."})]})}):re?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(Ns,{value:re,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:Ye||"Loading..."})]}),t.jsx(N,{onClick:()=>xe("verify"),disabled:!re||!Ye,style:{padding:"var(--space-5u) var(--space-10u)",background:!re||!Ye?"var(--color-border)":"var(--color-primary)",color:!re||!Ye?"var(--color-secondary-text)":"var(--color-background)",border:`var(--border-width-thin) solid ${!re||!Ye?"var(--color-border)":"var(--color-primary)"}`,cursor:!re||!Ye?"not-allowed":"pointer"},children:"I've Scanned the Code"})]}),te==="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(ue,{type:"text",placeholder:"000000",value:ve[0],onChange:ae=>{const Re=ae.target.value.replace(/[^0-9]/g,"").substring(0,6);J([Re,ve[1]])},maxLength:6,style:{width:"var(--size-50u)",textAlign:"center",fontFamily:"monospace"}}),t.jsx(ue,{type:"text",placeholder:"000000",value:ve[1],onChange:ae=>{const Re=ae.target.value.replace(/[^0-9]/g,"").substring(0,6);J([ve[0],Re])},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:Ge,disabled:fe||ve.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:fe?"Verifying...":"Verify & Continue"})]})]}),te==="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(oa,{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:le.map((ae,Re)=>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},Re))}),t.jsxs("div",{style:{display:"flex",gap:"var(--space-6u)",justifyContent:"center",marginBottom:"var(--space-12u)"},children:[t.jsx(N,{onClick:Qt,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:Jt,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(Ad,{size:16,style:{marginRight:"var(--space-2u)"}}),"DownloadSimple"]})]}),t.jsx(N,{onClick:dt,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"})]}),te==="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:dt,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,Re)=>{const et=Re>0?bt[Re-1].group:null,qe=ae.group!==et,kt=bt[Re+1],K=kt&&kt.group===ae.group,ee=ie(ae.id);return t.jsxs("div",{children:[qe&&t.jsx(D5,{$first:Re===0,children:ae.group==="sign-in"?"Sign-in methods":"Recovery"}),t.jsxs(yx,{style:qe?{paddingTop:0}:void 0,children:[t.jsxs(jx,{children:[t.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8,flexWrap:"wrap",fontWeight:400,color:"var(--color-foreground)"},children:[t.jsx("span",{children:ae.name}),ee&&t.jsx(Lr,{$variant:ee.variant,children:ee.label})]}),t.jsx("div",{style:{fontSize:"var(--font-size-md)",color:"var(--color-secondary-text)"},children:ae.description})]}),t.jsx(_x,{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:P,onClick:()=>k(!0),children:"Change"}),_&&t.jsx(hl,{triggerRef:P,onClose:()=>k(!1),onChangePassword:he})]}),ke()&&t.jsxs("div",{style:{position:"relative"},children:[t.jsx(N,{$destructive:!0,$size:"sm",ref:T,onClick:()=>M(!0),children:"Remove"}),y&&t.jsx(S5,{triggerRef:T,onClose:()=>M(!1),onRemovePassword:_e})]})]}):t.jsxs("div",{style:{position:"relative"},children:[t.jsx(N,{$size:"sm",ref:P,onClick:()=>k(!0),children:"Setup"}),_&&t.jsx(hl,{triggerRef:P,onClose:()=>k(!1),onChangePassword:he,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:I,onClick:()=>C(!0),disabled:de,children:de?"Setting up...":"Setup"}),S&&t.jsx(A5,{triggerRef:I,onClose:()=>C(!1),onSetupTOTP:async()=>{const ne=await s();return Ue(ne.id),ne},onVerifyTOTP:async ne=>{await i(Ve,ne),await r.refetch(),v("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:()=>A(!0),disabled:Be,style:{cursor:Be?"not-allowed":"pointer",opacity:Be?.6:1},children:Be?"Removing...":"Remove"}),w&&t.jsx(ea,{title:"Remove MFA and reset policy to default?",onConfirm:ur,onCancel:()=>A(!1)})]}),ae.id==="backup_codes"&&t.jsx(t.Fragment,{children:t.jsxs("div",{style:{position:"relative"},children:[t.jsx(N,{$size:"sm",ref:$,onClick:pr,disabled:G,children:G?"Generating...":r!=null&&r.backup_codes_generated?"Regenerate":"Generate"}),z&&t.jsx(T5,{triggerRef:$,codes:le,onClose:()=>O(!1),onCopy:Qt,onDownload:Jt})]})}),ae.id==="second_factor_policy"&&t.jsx(Fr,{checked:b==="enforced",onChange:ne=>{j(ne?"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(!W),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:[W?"Hide":"Manage"," ","(",E.length,")",t.jsx(lr,{size:14,style:{transform:W?"rotate(180deg)":"rotate(0deg)",transition:"transform 0.2s ease"}})]}),t.jsxs("div",{style:{position:"relative"},children:[t.jsx(N,{$size:"sm",ref:me,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"}),B&&t.jsx(V5,{triggerRef:me,onClose:()=>Y(!1),onAddPasskey:hr})]})]})]})})]}),ae.id==="passkey"&&W&&t.jsx("div",{style:{padding:"var(--space-6u) 0",borderTop:"var(--border-width-thin) solid var(--color-border)",marginTop:"var(--space-4u)"},children:L?t.jsx("div",{style:{display:"flex",justifyContent:"center",padding:"var(--space-8u)"},children:t.jsx(ze,{})}):E.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:E.map(ne=>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:ne.name||"Unnamed Passkey"}),t.jsxs("span",{style:{fontSize:"var(--font-size-xs)",color:"var(--color-secondary-text)"},children:[ne.device_type==="platform"?"This device":"Security key",ne.last_used_at&&` • Last used ${new Date(ne.last_used_at).toLocaleDateString()}`]})]}),t.jsxs("div",{style:{position:"relative"},children:[t.jsx(N,{$destructive:!0,$size:"sm",onClick:()=>ce(ne.id),style:{flexShrink:0,width:"auto"},children:"Remove"}),X===ne.id&&t.jsx(ea,{title:`Remove "${ne.name||"Unnamed Passkey"}"?`,onConfirm:()=>{fr(ne.id),ce(null)},onCancel:()=>ce(null)})]})]},ne.id))})}),K&&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."})})},U5=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)"}})]}),B5=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"})]}),W5=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})]}),G5=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)"})]}),q5=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)"})]}),K5=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)"})]}),Y5=()=>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:"?"})]}),Q5=({browser:e})=>{const r=(e==null?void 0:e.toLowerCase())||"",a={width:20,height:20};return r.includes("chrome")?t.jsx(U5,{...a}):r.includes("firefox")?t.jsx(B5,{...a}):r.includes("safari")?t.jsx(W5,{...a}):r.includes("edge")?t.jsx(G5,{...a}):r.includes("opera")?t.jsx(q5,{...a}):r.includes("brave")?t.jsx(K5,{...a}):t.jsx(Y5,{})},J5=()=>{const{signins:e,removeSignin:r,refetch:a,loading:n}=f0(),{refetch:s}=st(),{toast:i}=Yt(),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 n?t.jsx("div",{style:{display:"flex",justifyContent:"center",padding:"var(--space-10u)"},children:t.jsx(ze,{})}):t.jsx("div",{children:h&&h.length>0?t.jsx(t.Fragment,{children:t.jsx(Ds,{children:t.jsxs(Ot,{children:[t.jsx(Ht,{children:t.jsxs(lt,{children:[t.jsx(Oe,{children:"Browser & Device"}),t.jsx(Oe,{children:"Location"}),t.jsx(Oe,{children:"Last Active"}),t.jsx(Oe,{})]})}),t.jsx(Vt,{children:h.map(f=>t.jsxs(lt,{children:[t.jsx(Ke,{children:t.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"var(--space-4u)"},children:[t.jsx(Cx,{children:t.jsx(Q5,{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(Ke,{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(Ke,{children:u(f.last_active_at)}),t.jsx(Dt,{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."})})},X5=l(X1)`
|
|
5792
|
+
`),Re=new Blob([ae],{type:"text/plain"}),tt=URL.createObjectURL(Re),qe=document.createElement("a");qe.href=tt,qe.download="wacht-backup-codes.txt",qe.click(),URL.revokeObjectURL(tt),v("Backup codes downloaded","info")},Nt=async()=>{var ae,Re;if((Re=(ae=e==null?void 0:e.auth_settings)==null?void 0:ae.passkey)!=null&&Re.enabled)try{H(!0);const tt=await p();F(tt.data||[])}catch{v("Failed to load passkeys","error")}finally{H(!1)}},hr=async ae=>{try{R(!0),await m(ae||void 0),await Nt(),v("Passkey registered successfully!","info")}catch(Re){throw v(Re.message||"Failed to register passkey","error"),Re}finally{R(!1)}},fr=async ae=>{try{await g(ae),await Nt(),v("Passkey removed","info")}catch(Re){v(Re.message||"Failed to remove passkey","error")}};c.useEffect(()=>{Nt()},[(rt=(et=e==null?void 0:e.auth_settings)==null?void 0:et.passkey)==null?void 0:rt.enabled]);const bt=[];se&&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"}),(_t=(ft=e==null?void 0:e.auth_settings)==null?void 0:ft.passkey)!=null&&_t.enabled&&bt.push({id:"passkey",name:"Passkeys",description:"Sign in faster with fingerprint, face, or screen lock",status:E.length>0?`${E.length} registered`:"",actions:E.length>0?["manage","add"]:["add"],group:"sign-in"}),Q!=null&&Q.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"});const ie=ae=>{switch(ae){case"password":return r!=null&&r.has_password?{variant:"success",label:"Active"}:{variant:"warning",label:"Not set up"};case"passkey":return E.length>0?{variant:"neutral",label:`${E.length} registered`}:{variant:"warning",label:"None"};case"authenticator":return r!=null&&r.user_authenticator?{variant:"success",label:"Enabled"}:{variant:"warning",label:"Not set up"};case"backup_codes":return r!=null&&r.backup_codes_generated?{variant:"success",label:"Generated"}:{variant:"warning",label:"Not generated"};case"second_factor_policy":return b==="enforced"?{variant:"success",label:"Enforced"}:{variant:"neutral",label:"Optional"};default:return null}};return te!=="table"?t.jsxs(t.Fragment,{children:[t.jsxs(wx,{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:[te==="qr"&&"Setup Two-Factor Authentication",te==="verify"&&"Verify Your Authenticator",te==="backup"&&"Save Your Backup Codes",te==="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:[te==="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:de?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:`${mx} 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..."})]})}):re?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(Ns,{value:re,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:Qe||"Loading..."})]}),t.jsx(N,{onClick:()=>xe("verify"),disabled:!re||!Qe,style:{padding:"var(--space-5u) var(--space-10u)",background:!re||!Qe?"var(--color-border)":"var(--color-primary)",color:!re||!Qe?"var(--color-secondary-text)":"var(--color-background)",border:`var(--border-width-thin) solid ${!re||!Qe?"var(--color-border)":"var(--color-primary)"}`,cursor:!re||!Qe?"not-allowed":"pointer"},children:"I've Scanned the Code"})]}),te==="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(ue,{type:"text",placeholder:"000000",value:ve[0],onChange:ae=>{const Re=ae.target.value.replace(/[^0-9]/g,"").substring(0,6);J([Re,ve[1]])},maxLength:6,style:{width:"var(--size-50u)",textAlign:"center",fontFamily:"monospace"}}),t.jsx(ue,{type:"text",placeholder:"000000",value:ve[1],onChange:ae=>{const Re=ae.target.value.replace(/[^0-9]/g,"").substring(0,6);J([ve[0],Re])},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:Ge,disabled:fe||ve.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:fe?"Verifying...":"Verify & Continue"})]})]}),te==="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(oa,{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:le.map((ae,Re)=>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},Re))}),t.jsxs("div",{style:{display:"flex",gap:"var(--space-6u)",justifyContent:"center",marginBottom:"var(--space-12u)"},children:[t.jsx(N,{onClick:Qt,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:Jt,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(Ad,{size:16,style:{marginRight:"var(--space-2u)"}}),"DownloadSimple"]})]}),t.jsx(N,{onClick:dt,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"})]}),te==="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:dt,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,Re)=>{const tt=Re>0?bt[Re-1].group:null,qe=ae.group!==tt,kt=bt[Re+1],K=kt&&kt.group===ae.group,ee=ie(ae.id);return t.jsxs("div",{children:[qe&&t.jsx(D5,{$first:Re===0,children:ae.group==="sign-in"?"Sign-in methods":"Recovery"}),t.jsxs(yx,{style:qe?{paddingTop:0}:void 0,children:[t.jsxs(jx,{children:[t.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8,flexWrap:"wrap",fontWeight:400,color:"var(--color-foreground)"},children:[t.jsx("span",{children:ae.name}),ee&&t.jsx(Lr,{$variant:ee.variant,children:ee.label})]}),t.jsx("div",{style:{fontSize:"var(--font-size-md)",color:"var(--color-secondary-text)"},children:ae.description})]}),t.jsx(_x,{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:P,onClick:()=>k(!0),children:"Change"}),_&&t.jsx(hl,{triggerRef:P,onClose:()=>k(!1),onChangePassword:he})]}),ke()&&t.jsxs("div",{style:{position:"relative"},children:[t.jsx(N,{$destructive:!0,$size:"sm",ref:T,onClick:()=>M(!0),children:"Remove"}),y&&t.jsx(S5,{triggerRef:T,onClose:()=>M(!1),onRemovePassword:_e})]})]}):t.jsxs("div",{style:{position:"relative"},children:[t.jsx(N,{$size:"sm",ref:P,onClick:()=>k(!0),children:"Setup"}),_&&t.jsx(hl,{triggerRef:P,onClose:()=>k(!1),onChangePassword:he,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:I,onClick:()=>C(!0),disabled:de,children:de?"Setting up...":"Setup"}),S&&t.jsx(A5,{triggerRef:I,onClose:()=>C(!1),onSetupTOTP:async()=>{const ne=await s();return Ue(ne.id),ne},onVerifyTOTP:async ne=>{await i(Ve,ne),await r.refetch(),v("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:()=>A(!0),disabled:Be,style:{cursor:Be?"not-allowed":"pointer",opacity:Be?.6:1},children:Be?"Removing...":"Remove"}),w&&t.jsx(ea,{title:"Remove MFA and reset policy to default?",onConfirm:ur,onCancel:()=>A(!1)})]}),ae.id==="backup_codes"&&t.jsx(t.Fragment,{children:t.jsxs("div",{style:{position:"relative"},children:[t.jsx(N,{$size:"sm",ref:$,onClick:pr,disabled:G,children:G?"Generating...":r!=null&&r.backup_codes_generated?"Regenerate":"Generate"}),z&&t.jsx(T5,{triggerRef:$,codes:le,onClose:()=>O(!1),onCopy:Qt,onDownload:Jt})]})}),ae.id==="second_factor_policy"&&t.jsx(Fr,{checked:b==="enforced",onChange:ne=>{j(ne?"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(!W),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:[W?"Hide":"Manage"," ","(",E.length,")",t.jsx(lr,{size:14,style:{transform:W?"rotate(180deg)":"rotate(0deg)",transition:"transform 0.2s ease"}})]}),t.jsxs("div",{style:{position:"relative"},children:[t.jsx(N,{$size:"sm",ref:me,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"}),B&&t.jsx(V5,{triggerRef:me,onClose:()=>Y(!1),onAddPasskey:hr})]})]})]})})]}),ae.id==="passkey"&&W&&t.jsx("div",{style:{padding:"var(--space-6u) 0",borderTop:"var(--border-width-thin) solid var(--color-border)",marginTop:"var(--space-4u)"},children:L?t.jsx("div",{style:{display:"flex",justifyContent:"center",padding:"var(--space-8u)"},children:t.jsx(ze,{})}):E.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:E.map(ne=>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:ne.name||"Unnamed Passkey"}),t.jsxs("span",{style:{fontSize:"var(--font-size-xs)",color:"var(--color-secondary-text)"},children:[ne.device_type==="platform"?"This device":"Security key",ne.last_used_at&&` • Last used ${new Date(ne.last_used_at).toLocaleDateString()}`]})]}),t.jsxs("div",{style:{position:"relative"},children:[t.jsx(N,{$destructive:!0,$size:"sm",onClick:()=>ce(ne.id),style:{flexShrink:0,width:"auto"},children:"Remove"}),X===ne.id&&t.jsx(ea,{title:`Remove "${ne.name||"Unnamed Passkey"}"?`,onConfirm:()=>{fr(ne.id),ce(null)},onCancel:()=>ce(null)})]})]},ne.id))})}),K&&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."})})},U5=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)"}})]}),B5=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"})]}),W5=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})]}),G5=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)"})]}),q5=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)"})]}),K5=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)"})]}),Y5=()=>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:"?"})]}),Q5=({browser:e})=>{const r=(e==null?void 0:e.toLowerCase())||"",a={width:20,height:20};return r.includes("chrome")?t.jsx(U5,{...a}):r.includes("firefox")?t.jsx(B5,{...a}):r.includes("safari")?t.jsx(W5,{...a}):r.includes("edge")?t.jsx(G5,{...a}):r.includes("opera")?t.jsx(q5,{...a}):r.includes("brave")?t.jsx(K5,{...a}):t.jsx(Y5,{})},J5=()=>{const{signins:e,removeSignin:r,refetch:a,loading:n}=f0(),{refetch:s}=st(),{toast:i}=Yt(),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 n?t.jsx("div",{style:{display:"flex",justifyContent:"center",padding:"var(--space-10u)"},children:t.jsx(ze,{})}):t.jsx("div",{children:h&&h.length>0?t.jsx(t.Fragment,{children:t.jsx(Ds,{children:t.jsxs(Ot,{children:[t.jsx(Ht,{children:t.jsxs(lt,{children:[t.jsx(Oe,{children:"Browser & Device"}),t.jsx(Oe,{children:"Location"}),t.jsx(Oe,{children:"Last Active"}),t.jsx(Oe,{})]})}),t.jsx(Vt,{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(Cx,{children:t.jsx(Q5,{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(Dt,{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."})})},X5=l(X1)`
|
|
5793
5793
|
display: flex;
|
|
5794
5794
|
justify-content: center;
|
|
5795
5795
|
align-items: center;
|
|
@@ -5851,7 +5851,7 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
5851
5851
|
`,ab=l.span`
|
|
5852
5852
|
font-size: var(--font-size-lg);
|
|
5853
5853
|
color: var(--color-popover-foreground);
|
|
5854
|
-
`,nb=(e,r)=>`${(e==null?void 0:e[0])||""}${(r==null?void 0:r[0])||""}`.toUpperCase()||"U",pu=()=>{var C,_,k,y,M,z,O,I;const{loading:e,user:r,updateProfilePicture:a}=cr(),{deployment:n}=Ae(),[s,i]=c.useState("profile"),[h,d]=c.useState(null),[u,f]=c.useState("info"),[p,m]=c.useState(!1),g=c.useRef(null),v=c.useCallback((P,T="info")=>{d(P),f(T),setTimeout(()=>d(null),3e3)},[d]),b=async P=>{var $;const T=($=P.target.files)==null?void 0:$[0];if(T){if(T.size>2*1024*1024){v("File size cannot exceed 2MB","error");return}if(!T.type.startsWith("image/")){v("Please select a valid image file","error");return}try{m(!0),await a(T),await(r==null?void 0:r.refetch()),v("Profile picture updated","info")}catch(E){v((E==null?void 0:E.message)||"Failed to update profile picture","error")}finally{m(!1),g.current&&(g.current.value="")}}};if(e)return t.jsx(ge,{children:t.jsx(X5,{children:t.jsx(ze,{})})});const x=n==null?void 0:n.auth_settings,w=(C=x==null?void 0:x.email_address)==null?void 0:C.enabled,A=(_=x==null?void 0:x.phone_number)==null?void 0:_.enabled,j=((k=n==null?void 0:n.social_connections)==null?void 0:k.some(P=>P.enabled))||!1,S=((y=x==null?void 0:x.password)==null?void 0:y.enabled)||((M=x==null?void 0:x.auth_factors_enabled)==null?void 0:M.authenticator)||((z=x==null?void 0:x.auth_factors_enabled)==null?void 0:z.phone_otp)||((O=x==null?void 0:x.auth_factors_enabled)==null?void 0:O.backup_code);return t.jsx(ge,{children:t.jsx(gx,{children:t.jsx(J1.Provider,{value:{screen:null,setScreen:()=>{},toast:v},children:t.jsxs(X1,{children:[r&&t.jsxs(Sx,{className:"mac-page-header",children:[t.jsxs(eb,{type:"button",onClick:()=>{var P;return(P=g.current)==null?void 0:P.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:""}):nb(r.first_name,r.last_name),t.jsx("span",{className:"hover-overlay",children:p?t.jsx(ze,{size:14}):t.jsx(Ss,{size:16})})]}),t.jsx("input",{ref:g,type:"file",accept:"image/*",style:{display:"none"},onChange:b}),t.jsxs(Ex,{children:[t.jsx(Ax,{children:`${r.first_name||""} ${r.last_name||""}`.trim()||r.username||"Account"}),((I=r.primary_email_address)==null?void 0:I.email)&&t.jsx(zx,{children:r.primary_email_address.email})]})]}),t.jsx(vx,{children:t.jsxs(xx,{children:[t.jsx(Wr,{$isActive:s==="profile",onClick:()=>i("profile"),children:t.jsxs(Gr,{children:[t.jsx(Ea,{size:16}),"Profile"]})}),w&&t.jsx(Wr,{$isActive:s==="email",onClick:()=>i("email"),children:t.jsxs(Gr,{children:[t.jsx(Fn,{size:16}),"Email"]})}),A&&t.jsx(Wr,{$isActive:s==="phone",onClick:()=>i("phone"),children:t.jsxs(Gr,{children:[t.jsx(Sf,{size:16}),"Phone"]})}),j&&t.jsx(Wr,{$isActive:s==="social",onClick:()=>i("social"),children:t.jsxs(Gr,{children:[t.jsx(_f,{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(Ef,{size:16}),"Sessions"]})})]})}),t.jsxs(bx,{children:[s==="profile"&&t.jsx(Mx,{}),s==="email"&&w&&t.jsx(
|
|
5854
|
+
`,nb=(e,r)=>`${(e==null?void 0:e[0])||""}${(r==null?void 0:r[0])||""}`.toUpperCase()||"U",pu=()=>{var C,_,k,y,M,z,O,I;const{loading:e,user:r,updateProfilePicture:a}=cr(),{deployment:n}=Ae(),[s,i]=c.useState("profile"),[h,d]=c.useState(null),[u,f]=c.useState("info"),[p,m]=c.useState(!1),g=c.useRef(null),v=c.useCallback((P,T="info")=>{d(P),f(T),setTimeout(()=>d(null),3e3)},[d]),b=async P=>{var $;const T=($=P.target.files)==null?void 0:$[0];if(T){if(T.size>2*1024*1024){v("File size cannot exceed 2MB","error");return}if(!T.type.startsWith("image/")){v("Please select a valid image file","error");return}try{m(!0),await a(T),await(r==null?void 0:r.refetch()),v("Profile picture updated","info")}catch(E){v((E==null?void 0:E.message)||"Failed to update profile picture","error")}finally{m(!1),g.current&&(g.current.value="")}}};if(e)return t.jsx(ge,{children:t.jsx(X5,{children:t.jsx(ze,{})})});const x=n==null?void 0:n.auth_settings,w=(C=x==null?void 0:x.email_address)==null?void 0:C.enabled,A=(_=x==null?void 0:x.phone_number)==null?void 0:_.enabled,j=((k=n==null?void 0:n.social_connections)==null?void 0:k.some(P=>P.enabled))||!1,S=((y=x==null?void 0:x.password)==null?void 0:y.enabled)||((M=x==null?void 0:x.auth_factors_enabled)==null?void 0:M.authenticator)||((z=x==null?void 0:x.auth_factors_enabled)==null?void 0:z.phone_otp)||((O=x==null?void 0:x.auth_factors_enabled)==null?void 0:O.backup_code);return t.jsx(ge,{children:t.jsx(gx,{children:t.jsx(J1.Provider,{value:{screen:null,setScreen:()=>{},toast:v},children:t.jsxs(X1,{children:[r&&t.jsxs(Sx,{className:"mac-page-header",children:[t.jsxs(eb,{type:"button",onClick:()=>{var P;return(P=g.current)==null?void 0:P.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:""}):nb(r.first_name,r.last_name),t.jsx("span",{className:"hover-overlay",children:p?t.jsx(ze,{size:14}):t.jsx(Ss,{size:16})})]}),t.jsx("input",{ref:g,type:"file",accept:"image/*",style:{display:"none"},onChange:b}),t.jsxs(Ex,{children:[t.jsx(Ax,{children:`${r.first_name||""} ${r.last_name||""}`.trim()||r.username||"Account"}),((I=r.primary_email_address)==null?void 0:I.email)&&t.jsx(zx,{children:r.primary_email_address.email})]})]}),t.jsx(vx,{children:t.jsxs(xx,{children:[t.jsx(Wr,{$isActive:s==="profile",onClick:()=>i("profile"),children:t.jsxs(Gr,{children:[t.jsx(Ea,{size:16}),"Profile"]})}),w&&t.jsx(Wr,{$isActive:s==="email",onClick:()=>i("email"),children:t.jsxs(Gr,{children:[t.jsx(Fn,{size:16}),"Email"]})}),A&&t.jsx(Wr,{$isActive:s==="phone",onClick:()=>i("phone"),children:t.jsxs(Gr,{children:[t.jsx(Sf,{size:16}),"Phone"]})}),j&&t.jsx(Wr,{$isActive:s==="social",onClick:()=>i("social"),children:t.jsxs(Gr,{children:[t.jsx(_f,{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(Ef,{size:16}),"Sessions"]})})]})}),t.jsxs(bx,{children:[s==="profile"&&t.jsx(Mx,{}),s==="email"&&w&&t.jsx(Ix,{}),s==="phone"&&A&&t.jsx(Ux,{}),s==="social"&&j&&t.jsx(c5,{}),s==="security"&&S&&t.jsx(N5,{}),s==="sessions"&&t.jsx(J5,{})]}),h&&t.jsx(tb,{children:t.jsxs(rb,{children:[u==="error"?t.jsx(oa,{size:16,color:"var(--color-error)"}):t.jsx(ct,{size:16,color:"var(--color-success)"}),t.jsx(ab,{children:h})]})})]})})})})},hu=({isOpen:e,onClose:r,title:a,showHeader:n,headerContent:s,footerContent:i,customContent:h,children:d,showCloseButton:u})=>t.jsx(He,{isOpen:e,onClose:r,children:t.jsx(He.Overlay,{children:t.jsxs(He.Content,{style:{width:"900px",maxWidth:"min(90vw, 100vw - 16px)"},children:[n&&t.jsx(He.Header,{showCloseButton:u,children:s||a}),h||d||t.jsx(pu,{}),i&&t.jsx(He.Footer,{children:i})]})})}),ob=l.div`
|
|
5855
5855
|
position: relative;
|
|
5856
5856
|
`,sb=l.button`
|
|
5857
5857
|
display: flex;
|
|
@@ -6410,7 +6410,7 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
6410
6410
|
align-items: center;
|
|
6411
6411
|
justify-content: center;
|
|
6412
6412
|
flex-shrink: 0;
|
|
6413
|
-
`,Us=({showName:e=!0,onCreateOrg:r,showOrgSwitcher:a=!0,narrowBreakpoint:n=640})=>{var ke,Ge,dt,ur,pr,Qt,Jt,Nt,hr,fr,bt;const[s,i]=c.useState(!1),[h,d]=c.useState(!1),[u,f]=c.useState(typeof window<"u"&&window.innerWidth<n),[p,m]=c.useState(!1),[g,v]=c.useState("org"),[b,x]=c.useState(null),[w,A]=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),M=c.useRef(null),z=xt({triggerRef:k,isOpen:s,minWidth:300}),O=Bt(!1),I=Bt(!1),P=Bt(!1),T=Bt(!1),$=Bt(!1),{session:E,signOut:F,switchSignIn:L,switchOrganization:H,switchWorkspace:Z,refetch:R}=st(),{navigateToSignIn:W}=yt(),{deployment:D}=Ae(),{activeOrganization:B,activeMembership:Y,leave:X}=sr(),{organizationMemberships:ce}=Kt(),{workspaces:me}=ir(),{activeWorkspace:te,activeMembership:xe,leave:re}=It(),U=(ke=E==null?void 0:E.active_signin)==null?void 0:ke.user,Ye=((dt=(Ge=D==null?void 0:D.auth_settings)==null?void 0:Ge.multi_session_support)==null?void 0:dt.enabled)??!1,Te=((ur=D==null?void 0:D.b2b_settings)==null?void 0:ur.workspaces_enabled)??!1,Ve=((pr=D==null?void 0:D.b2b_settings)==null?void 0:pr.allow_users_to_create_orgs)??!1,Ue=!B,ve=c.useMemo(()=>{var ye;const ie={};for(const Me of me||[]){const De=(ye=Me.organization)==null?void 0:ye.id;De&&(ie[De]||(ie[De]=[]),ie[De].push(Me))}return ie},[me]),J=ce||[],le=c.useCallback(()=>{if(!y.current)return;const ie=y.current.getBoundingClientRect(),ye=300,Me=8,De=window.innerWidth<n;if(f(De),De){A({top:ie.top,left:ie.left,maxHeight:ie.height});return}const Xe=Math.min(Math.max(ie.height,520),window.innerHeight-ie.top-16),tt=ie.right+Me+ye<=window.innerWidth-8;A({top:ie.top,left:tt?ie.right+Me:ie.left-Me-ye,maxHeight:Xe})},[n]),oe=c.useCallback(()=>{le(),d(!0)},[le]),G=c.useCallback(ie=>{S(ye=>{const Me=new Set(ye);return Me.has(ie)?Me.delete(ie):Me.add(ie),Me})},[]);c.useEffect(()=>{B&&Te&&S(ie=>{if(ie.has(B.id))return ie;const ye=new Set(ie);return ye.add(B.id),ye})},[B,Te]),c.useEffect(()=>{v(Te&&te?"ws":"org")},[Te,te==null?void 0:te.id]),c.useEffect(()=>{const ie=()=>{f(window.innerWidth<n),h&&le()};return window.addEventListener("resize",ie),()=>window.removeEventListener("resize",ie)},[n,h,le]),c.useEffect(()=>{s||(d(!1),m(!1))},[s]),c.useEffect(()=>{if(!s)return;const ie=setTimeout(()=>{const ye=Me=>{var Xe,tt,ft;const De=Me.target;(Xe=k.current)!=null&&Xe.contains(De)||(tt=y.current)!=null&&tt.contains(De)||(ft=M.current)!=null&&ft.contains(De)||i(!1)};return document.addEventListener("mousedown",ye),()=>document.removeEventListener("mousedown",ye)},50);return()=>clearTimeout(ie)},[s]);const pe=ie=>ie.split(" ").filter(Boolean).map(ye=>ye[0]).join("").toUpperCase().slice(0,2),fe=(ie,ye,Me,De,Xe)=>t.jsx(Xe,{children:ie?t.jsx("img",{src:ye,alt:Me}):pe(`${Me||""} ${De||""}`)}),q=async ie=>{try{await F(ie),await R(),i(!1)}catch{}},de=async ie=>{try{await L(ie),await R(),i(!1)}catch{}},Be=async ie=>{if(!p){m(!0);try{await H(ie),await R(),d(!1)}catch{}finally{m(!1)}}},We=async ie=>{if(!p){m(!0);try{await Z(ie),await R(),d(!1)}catch{}finally{m(!1)}}},Q=()=>{O.open(),i(!1)},se=[...(E==null?void 0:E.signins)||[]].sort((ie,ye)=>{const Me=ie.user.id===(U==null?void 0:U.id),De=ye.user.id===(U==null?void 0:U.id);return Me===De?0:Me?-1:1}),he=((Qt=se.find(ie=>ie.user.id===(U==null?void 0:U.id)))==null?void 0:Qt.id)||"",_e=((Nt=(Jt=Y==null?void 0:Y.roles)==null?void 0:Jt[0])==null?void 0:Nt.name)??null;return t.jsx(ge,{children:t.jsxs(ob,{children:[t.jsxs(sb,{ref:k,onClick:()=>i(!s),children:[fe(U==null?void 0:U.has_profile_picture,U==null?void 0:U.profile_picture_url,U==null?void 0:U.first_name,U==null?void 0:U.last_name,fu),e&&t.jsx(ib,{children:`${(U==null?void 0:U.first_name)||""} ${(U==null?void 0:U.last_name)||""}`.trim()})]}),typeof window<"u"&&Sn.createPortal(t.jsxs(ge,{children:[t.jsxs(cb,{ref:y,$position:z,$isOpen:s&&!(u&&h),$maxHeight:z==null?void 0:z.maxHeight,children:[t.jsx(db,{children:t.jsxs(ub,{children:[fe(U==null?void 0:U.has_profile_picture,U==null?void 0:U.profile_picture_url,U==null?void 0:U.first_name,U==null?void 0:U.last_name,pb),t.jsxs(hb,{children:[t.jsx(fb,{children:`${(U==null?void 0:U.first_name)||""} ${(U==null?void 0:U.last_name)||""}`.trim()}),t.jsx(mb,{children:(hr=U==null?void 0:U.primary_email_address)==null?void 0:hr.email})]})]})}),t.jsxs(wb,{children:[a&&t.jsxs(gb,{$active:h,onClick:oe,style:{marginBottom:"var(--space-2u)"},children:[t.jsx(vb,{children:B?B.image_url?t.jsx("img",{src:B.image_url,alt:B.name}):(fr=B.name)==null?void 0:fr.charAt(0).toUpperCase():U!=null&&U.has_profile_picture?t.jsx("img",{src:U.profile_picture_url,alt:U.first_name}):pe(`${(U==null?void 0:U.first_name)||""} ${(U==null?void 0:U.last_name)||""}`)}),t.jsx(xb,{children:(B==null?void 0:B.name)??"Personal account"}),_e&&t.jsx(bb,{children:_e})]}),t.jsxs(yb,{onClick:Q,children:[t.jsx(zr,{}),t.jsx(jb,{children:"Manage account"}),t.jsx(_b,{children:"⌘,"})]})]}),t.jsx(gl,{}),t.jsxs(kb,{children:[t.jsx(Cb,{children:"Accounts"}),Ye?se.map(({user:ie,id:ye})=>{var De;const Me=ie.id===(U==null?void 0:U.id);return t.jsxs(Lo,{$active:Me,onClick:Me?void 0:()=>de(ye),children:[Me?t.jsx(Ro,{children:t.jsx(ct,{})}):t.jsx(Sb,{}),t.jsx(Po,{children:(De=ie.primary_email_address)==null?void 0:De.email}),Me&&t.jsx(vl,{children:"Current"})]},ie.id)}):U&&t.jsxs(Lo,{$active:!0,children:[t.jsx(Ro,{children:t.jsx(ct,{})}),t.jsx(Po,{children:(bt=U.primary_email_address)==null?void 0:bt.email}),t.jsx(vl,{children:"Current"})]}),Ye&&t.jsxs(Lo,{onClick:()=>{W(),i(!1)},children:[t.jsx(Ro,{style:{color:"var(--color-secondary-text)"},children:t.jsx(jt,{})}),t.jsx(Po,{style:{color:"var(--color-secondary-text)"},children:"Add account"})]})]}),t.jsx(gl,{}),t.jsx(Eb,{children:t.jsxs(Ab,{onClick:()=>q(he),children:[t.jsx($r,{}),"Sign out"]})})]}),t.jsxs(lb,{ref:M,$top:w.top,$left:w.left,$isOpen:s&&h,$maxHeight:w.maxHeight,children:[u&&t.jsxs(zb,{onClick:()=>d(!1),children:[t.jsx(na,{size:13}),"Back"]}),(()=>{var Re,et,qe,kt,K;if(Ue)return null;const ie=Te&&!!te,ye=!!((Re=Y==null?void 0:Y.eligibility_restriction)!=null&&Re.type)&&Y.eligibility_restriction.type!=="none",Me=!!B&&!ye&&Os(Y),De=ie&&!ye&&Vs(xe),Xe=ie?g:"org",tt=(qe=(et=Y==null?void 0:Y.roles)==null?void 0:et[0])==null?void 0:qe.name,ft=(K=(kt=xe==null?void 0:xe.roles)==null?void 0:kt[0])==null?void 0:K.name,_t=async()=>{if(X){x("org");try{await X(),await R(),d(!1)}catch{}finally{x(null)}}},ae=async()=>{if(re){x("ws");try{await re(),d(!1)}catch{}finally{x(null)}}};return t.jsxs(Lb,{children:[ie&&t.jsxs(Rb,{children:[t.jsx(_l,{type:"button",$active:Xe==="org","data-active":Xe==="org",onClick:()=>v("org"),children:"Organization"}),t.jsx(_l,{type:"button",$active:Xe==="ws","data-active":Xe==="ws",onClick:()=>v("ws"),children:"Workspace"})]}),Xe==="org"&&B&&t.jsxs(kl,{children:[t.jsx(Cl,{children:B.image_url?t.jsx("img",{src:B.image_url,alt:B.name}):pe(B.name)}),t.jsxs(Sl,{children:[t.jsx(El,{children:B.name}),tt&&t.jsx(Al,{children:tt})]}),t.jsxs(zl,{children:[Me&&t.jsx(cn,{onClick:()=>{P.open(),i(!1)},title:"Organization settings","aria-label":"Organization settings",children:t.jsx(zr,{size:14})}),t.jsx(cn,{$destructive:!0,onClick:_t,disabled:b==="org",title:"Leave organization","aria-label":"Leave organization",children:t.jsx($r,{size:14})})]})]}),Xe==="ws"&&ie&&t.jsxs(kl,{children:[t.jsx(Cl,{children:te.image_url?t.jsx("img",{src:te.image_url,alt:te.name}):pe(te.name)}),t.jsxs(Sl,{children:[t.jsx(El,{children:te.name}),ft&&t.jsx(Al,{children:ft})]}),t.jsxs(zl,{children:[De&&t.jsx(cn,{onClick:()=>{$.open(),i(!1)},title:"Workspace settings","aria-label":"Workspace settings",children:t.jsx(zr,{size:14})}),t.jsx(cn,{$destructive:!0,onClick:ae,disabled:b==="ws",title:"Leave workspace","aria-label":"Leave workspace",children:t.jsx($r,{size:14})})]})]})]})})(),t.jsxs($b,{children:[t.jsxs(xl,{$active:Ue,onClick:()=>{Ue||Be(void 0)},disabled:p,style:Ue?{cursor:"default"}:void 0,children:[t.jsx(wl,{$personal:!0,children:U!=null&&U.has_profile_picture?t.jsx("img",{src:U.profile_picture_url,alt:U.first_name}):t.jsx(Ea,{size:12})}),t.jsx(ms,{children:"Personal account"}),Ue&&t.jsx(To,{children:t.jsx("span",{className:"sp-check",style:{display:"inline-flex"},children:t.jsx(Fo,{size:13})})})]}),J.map(ie=>{var ft,_t;const ye=ie.organization,Me=ye.id===(B==null?void 0:B.id),De=j.has(ye.id),Xe=Te?ve[ye.id]||[]:[],tt=!!((ft=ie.eligibility_restriction)!=null&&ft.type)&&ie.eligibility_restriction.type!=="none";return t.jsxs(c.Fragment,{children:[t.jsxs(xl,{$active:Me,onClick:()=>{tt||(Te?G(ye.id):Me||Be(ye.id))},disabled:p,style:tt?{opacity:.55,cursor:"not-allowed"}:Me&&!Te?{cursor:"default"}:void 0,title:(_t=ie.eligibility_restriction)==null?void 0:_t.message,children:[t.jsx(wl,{children:ye.image_url?t.jsx("img",{src:ye.image_url,alt:ye.name}):pe(ye.name)}),t.jsx(ms,{children:ye.name}),t.jsxs(To,{children:[tt&&t.jsx(Mr,{size:12,color:"var(--color-error)"}),Me&&!Te&&t.jsx(Fo,{size:13}),Te&&t.jsx(Mb,{size:11,$open:De})]})]}),Te&&De&&t.jsxs(t.Fragment,{children:[Xe.map(ae=>{var kt,K;const Re=Me&&(te==null?void 0:te.id)===ae.id,et=ae,qe=((kt=et.eligibility_restriction)==null?void 0:kt.type)&&et.eligibility_restriction.type!=="none";return t.jsxs(bl,{$active:Re,onClick:()=>{!Re&&!qe&&We(ae.id)},disabled:p,style:qe||tt?{opacity:.55,cursor:"not-allowed"}:Re?{cursor:"default"}:void 0,title:(K=et.eligibility_restriction)==null?void 0:K.message,children:[t.jsx(yl,{children:et.image_url?t.jsx("img",{src:et.image_url,alt:et.name}):pe(et.name).charAt(0)}),t.jsx(jl,{children:et.name}),t.jsxs(To,{children:[qe&&t.jsx(Mr,{size:12,color:"var(--color-error)"}),Re&&t.jsx(Fo,{size:12})]})]},ae.id)}),!tt&&t.jsxs(bl,{onClick:()=>{_(ye.id),T.open()},disabled:p,children:[t.jsx(yl,{style:{background:"transparent",border:"1px dashed var(--color-border)"},children:t.jsx(jt,{size:10})}),t.jsx(jl,{children:"New workspace"})]})]})]},ye.id)})]}),(()=>{var tt,ft,_t;const ie=((ce==null?void 0:ce.length)??0)>0,ye=()=>Ve&&t.jsx($l,{children:t.jsxs(Ml,{onClick:()=>{r?(r(),i(!1)):I.open()},disabled:p,children:[t.jsx(Ll,{children:t.jsx(jt,{size:12})}),"New organization"]})});if(!Te||!ie)return ye();const Me=!!((tt=Y==null?void 0:Y.eligibility_restriction)!=null&&tt.type)&&Y.eligibility_restriction.type!=="none",De=((_t=(ft=ce==null?void 0:ce[0])==null?void 0:ft.organization)==null?void 0:_t.id)??null,Xe=B&&!Me?B.id:De;return t.jsx($l,{children:t.jsxs(Ml,{onClick:()=>{_(Xe),T.open()},disabled:p,children:[t.jsx(Ll,{children:t.jsx(jt,{size:12})}),"New workspace"]})})})()]})]}),document.body),t.jsx(hu,{isOpen:O.isOpen,onClose:O.close}),a&&t.jsxs(t.Fragment,{children:[t.jsx(Z1,{isOpen:I.isOpen,onClose:I.close}),t.jsx(D1,{isOpen:P.isOpen,onClose:P.close}),Te&&t.jsxs(t.Fragment,{children:[t.jsx(Ps,{isOpen:T.isOpen,onClose:()=>{T.close(),_(null)},organizationId:C||void 0}),t.jsx(Zs,{isOpen:$.isOpen,onClose:$.close})]})]})]})})},Pb=l.div`
|
|
6413
|
+
`,Us=({showName:e=!0,onCreateOrg:r,showOrgSwitcher:a=!0,narrowBreakpoint:n=640})=>{var ke,Ge,dt,ur,pr,Qt,Jt,Nt,hr,fr,bt;const[s,i]=c.useState(!1),[h,d]=c.useState(!1),[u,f]=c.useState(typeof window<"u"&&window.innerWidth<n),[p,m]=c.useState(!1),[g,v]=c.useState("org"),[b,x]=c.useState(null),[w,A]=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),M=c.useRef(null),z=xt({triggerRef:k,isOpen:s,minWidth:300}),O=Bt(!1),I=Bt(!1),P=Bt(!1),T=Bt(!1),$=Bt(!1),{session:E,signOut:F,switchSignIn:L,switchOrganization:H,switchWorkspace:Z,refetch:R}=st(),{navigateToSignIn:W}=yt(),{deployment:D}=Ae(),{activeOrganization:B,activeMembership:Y,leave:X}=sr(),{organizationMemberships:ce}=Kt(),{workspaces:me}=ir(),{activeWorkspace:te,activeMembership:xe,leave:re}=Zt(),U=(ke=E==null?void 0:E.active_signin)==null?void 0:ke.user,Qe=((dt=(Ge=D==null?void 0:D.auth_settings)==null?void 0:Ge.multi_session_support)==null?void 0:dt.enabled)??!1,Te=((ur=D==null?void 0:D.b2b_settings)==null?void 0:ur.workspaces_enabled)??!1,Ve=((pr=D==null?void 0:D.b2b_settings)==null?void 0:pr.allow_users_to_create_orgs)??!1,Ue=!B,ve=c.useMemo(()=>{var ye;const ie={};for(const Me of me||[]){const De=(ye=Me.organization)==null?void 0:ye.id;De&&(ie[De]||(ie[De]=[]),ie[De].push(Me))}return ie},[me]),J=ce||[],le=c.useCallback(()=>{if(!y.current)return;const ie=y.current.getBoundingClientRect(),ye=300,Me=8,De=window.innerWidth<n;if(f(De),De){A({top:ie.top,left:ie.left,maxHeight:ie.height});return}const et=Math.min(Math.max(ie.height,520),window.innerHeight-ie.top-16),rt=ie.right+Me+ye<=window.innerWidth-8;A({top:ie.top,left:rt?ie.right+Me:ie.left-Me-ye,maxHeight:et})},[n]),oe=c.useCallback(()=>{le(),d(!0)},[le]),G=c.useCallback(ie=>{S(ye=>{const Me=new Set(ye);return Me.has(ie)?Me.delete(ie):Me.add(ie),Me})},[]);c.useEffect(()=>{B&&Te&&S(ie=>{if(ie.has(B.id))return ie;const ye=new Set(ie);return ye.add(B.id),ye})},[B,Te]),c.useEffect(()=>{v(Te&&te?"ws":"org")},[Te,te==null?void 0:te.id]),c.useEffect(()=>{const ie=()=>{f(window.innerWidth<n),h&&le()};return window.addEventListener("resize",ie),()=>window.removeEventListener("resize",ie)},[n,h,le]),c.useEffect(()=>{s||(d(!1),m(!1))},[s]),c.useEffect(()=>{if(!s)return;const ie=setTimeout(()=>{const ye=Me=>{var et,rt,ft;const De=Me.target;(et=k.current)!=null&&et.contains(De)||(rt=y.current)!=null&&rt.contains(De)||(ft=M.current)!=null&&ft.contains(De)||i(!1)};return document.addEventListener("mousedown",ye),()=>document.removeEventListener("mousedown",ye)},50);return()=>clearTimeout(ie)},[s]);const pe=ie=>ie.split(" ").filter(Boolean).map(ye=>ye[0]).join("").toUpperCase().slice(0,2),fe=(ie,ye,Me,De,et)=>t.jsx(et,{children:ie?t.jsx("img",{src:ye,alt:Me}):pe(`${Me||""} ${De||""}`)}),q=async ie=>{try{await F(ie),await R(),i(!1)}catch{}},de=async ie=>{try{await L(ie),await R(),i(!1)}catch{}},Be=async ie=>{if(!p){m(!0);try{await H(ie),await R(),d(!1)}catch{}finally{m(!1)}}},We=async ie=>{if(!p){m(!0);try{await Z(ie),await R(),d(!1)}catch{}finally{m(!1)}}},Q=()=>{O.open(),i(!1)},se=[...(E==null?void 0:E.signins)||[]].sort((ie,ye)=>{const Me=ie.user.id===(U==null?void 0:U.id),De=ye.user.id===(U==null?void 0:U.id);return Me===De?0:Me?-1:1}),he=((Qt=se.find(ie=>ie.user.id===(U==null?void 0:U.id)))==null?void 0:Qt.id)||"",_e=((Nt=(Jt=Y==null?void 0:Y.roles)==null?void 0:Jt[0])==null?void 0:Nt.name)??null;return t.jsx(ge,{children:t.jsxs(ob,{children:[t.jsxs(sb,{ref:k,onClick:()=>i(!s),children:[fe(U==null?void 0:U.has_profile_picture,U==null?void 0:U.profile_picture_url,U==null?void 0:U.first_name,U==null?void 0:U.last_name,fu),e&&t.jsx(ib,{children:`${(U==null?void 0:U.first_name)||""} ${(U==null?void 0:U.last_name)||""}`.trim()})]}),typeof window<"u"&&Sn.createPortal(t.jsxs(ge,{children:[t.jsxs(cb,{ref:y,$position:z,$isOpen:s&&!(u&&h),$maxHeight:z==null?void 0:z.maxHeight,children:[t.jsx(db,{children:t.jsxs(ub,{children:[fe(U==null?void 0:U.has_profile_picture,U==null?void 0:U.profile_picture_url,U==null?void 0:U.first_name,U==null?void 0:U.last_name,pb),t.jsxs(hb,{children:[t.jsx(fb,{children:`${(U==null?void 0:U.first_name)||""} ${(U==null?void 0:U.last_name)||""}`.trim()}),t.jsx(mb,{children:(hr=U==null?void 0:U.primary_email_address)==null?void 0:hr.email})]})]})}),t.jsxs(wb,{children:[a&&t.jsxs(gb,{$active:h,onClick:oe,style:{marginBottom:"var(--space-2u)"},children:[t.jsx(vb,{children:B?B.image_url?t.jsx("img",{src:B.image_url,alt:B.name}):(fr=B.name)==null?void 0:fr.charAt(0).toUpperCase():U!=null&&U.has_profile_picture?t.jsx("img",{src:U.profile_picture_url,alt:U.first_name}):pe(`${(U==null?void 0:U.first_name)||""} ${(U==null?void 0:U.last_name)||""}`)}),t.jsx(xb,{children:(B==null?void 0:B.name)??"Personal account"}),_e&&t.jsx(bb,{children:_e})]}),t.jsxs(yb,{onClick:Q,children:[t.jsx(zr,{}),t.jsx(jb,{children:"Manage account"}),t.jsx(_b,{children:"⌘,"})]})]}),t.jsx(gl,{}),t.jsxs(kb,{children:[t.jsx(Cb,{children:"Accounts"}),Qe?se.map(({user:ie,id:ye})=>{var De;const Me=ie.id===(U==null?void 0:U.id);return t.jsxs(Lo,{$active:Me,onClick:Me?void 0:()=>de(ye),children:[Me?t.jsx(Ro,{children:t.jsx(ct,{})}):t.jsx(Sb,{}),t.jsx(Po,{children:(De=ie.primary_email_address)==null?void 0:De.email}),Me&&t.jsx(vl,{children:"Current"})]},ie.id)}):U&&t.jsxs(Lo,{$active:!0,children:[t.jsx(Ro,{children:t.jsx(ct,{})}),t.jsx(Po,{children:(bt=U.primary_email_address)==null?void 0:bt.email}),t.jsx(vl,{children:"Current"})]}),Qe&&t.jsxs(Lo,{onClick:()=>{W(),i(!1)},children:[t.jsx(Ro,{style:{color:"var(--color-secondary-text)"},children:t.jsx(jt,{})}),t.jsx(Po,{style:{color:"var(--color-secondary-text)"},children:"Add account"})]})]}),t.jsx(gl,{}),t.jsx(Eb,{children:t.jsxs(Ab,{onClick:()=>q(he),children:[t.jsx($r,{}),"Sign out"]})})]}),t.jsxs(lb,{ref:M,$top:w.top,$left:w.left,$isOpen:s&&h,$maxHeight:w.maxHeight,children:[u&&t.jsxs(zb,{onClick:()=>d(!1),children:[t.jsx(na,{size:13}),"Back"]}),(()=>{var Re,tt,qe,kt,K;if(Ue)return null;const ie=Te&&!!te,ye=!!((Re=Y==null?void 0:Y.eligibility_restriction)!=null&&Re.type)&&Y.eligibility_restriction.type!=="none",Me=!!B&&!ye&&Os(Y),De=ie&&!ye&&Vs(xe),et=ie?g:"org",rt=(qe=(tt=Y==null?void 0:Y.roles)==null?void 0:tt[0])==null?void 0:qe.name,ft=(K=(kt=xe==null?void 0:xe.roles)==null?void 0:kt[0])==null?void 0:K.name,_t=async()=>{if(X){x("org");try{await X(),await R(),d(!1)}catch{}finally{x(null)}}},ae=async()=>{if(re){x("ws");try{await re(),d(!1)}catch{}finally{x(null)}}};return t.jsxs(Lb,{children:[ie&&t.jsxs(Rb,{children:[t.jsx(_l,{type:"button",$active:et==="org","data-active":et==="org",onClick:()=>v("org"),children:"Organization"}),t.jsx(_l,{type:"button",$active:et==="ws","data-active":et==="ws",onClick:()=>v("ws"),children:"Workspace"})]}),et==="org"&&B&&t.jsxs(kl,{children:[t.jsx(Cl,{children:B.image_url?t.jsx("img",{src:B.image_url,alt:B.name}):pe(B.name)}),t.jsxs(Sl,{children:[t.jsx(El,{children:B.name}),rt&&t.jsx(Al,{children:rt})]}),t.jsxs(zl,{children:[Me&&t.jsx(cn,{onClick:()=>{P.open(),i(!1)},title:"Organization settings","aria-label":"Organization settings",children:t.jsx(zr,{size:14})}),t.jsx(cn,{$destructive:!0,onClick:_t,disabled:b==="org",title:"Leave organization","aria-label":"Leave organization",children:t.jsx($r,{size:14})})]})]}),et==="ws"&&ie&&t.jsxs(kl,{children:[t.jsx(Cl,{children:te.image_url?t.jsx("img",{src:te.image_url,alt:te.name}):pe(te.name)}),t.jsxs(Sl,{children:[t.jsx(El,{children:te.name}),ft&&t.jsx(Al,{children:ft})]}),t.jsxs(zl,{children:[De&&t.jsx(cn,{onClick:()=>{$.open(),i(!1)},title:"Workspace settings","aria-label":"Workspace settings",children:t.jsx(zr,{size:14})}),t.jsx(cn,{$destructive:!0,onClick:ae,disabled:b==="ws",title:"Leave workspace","aria-label":"Leave workspace",children:t.jsx($r,{size:14})})]})]})]})})(),t.jsxs($b,{children:[t.jsxs(xl,{$active:Ue,onClick:()=>{Ue||Be(void 0)},disabled:p,style:Ue?{cursor:"default"}:void 0,children:[t.jsx(wl,{$personal:!0,children:U!=null&&U.has_profile_picture?t.jsx("img",{src:U.profile_picture_url,alt:U.first_name}):t.jsx(Ea,{size:12})}),t.jsx(ms,{children:"Personal account"}),Ue&&t.jsx(To,{children:t.jsx("span",{className:"sp-check",style:{display:"inline-flex"},children:t.jsx(Fo,{size:13})})})]}),J.map(ie=>{var ft,_t;const ye=ie.organization,Me=ye.id===(B==null?void 0:B.id),De=j.has(ye.id),et=Te?ve[ye.id]||[]:[],rt=!!((ft=ie.eligibility_restriction)!=null&&ft.type)&&ie.eligibility_restriction.type!=="none";return t.jsxs(c.Fragment,{children:[t.jsxs(xl,{$active:Me,onClick:()=>{rt||(Te?G(ye.id):Me||Be(ye.id))},disabled:p,style:rt?{opacity:.55,cursor:"not-allowed"}:Me&&!Te?{cursor:"default"}:void 0,title:(_t=ie.eligibility_restriction)==null?void 0:_t.message,children:[t.jsx(wl,{children:ye.image_url?t.jsx("img",{src:ye.image_url,alt:ye.name}):pe(ye.name)}),t.jsx(ms,{children:ye.name}),t.jsxs(To,{children:[rt&&t.jsx(Mr,{size:12,color:"var(--color-error)"}),Me&&!Te&&t.jsx(Fo,{size:13}),Te&&t.jsx(Mb,{size:11,$open:De})]})]}),Te&&De&&t.jsxs(t.Fragment,{children:[et.map(ae=>{var kt,K;const Re=Me&&(te==null?void 0:te.id)===ae.id,tt=ae,qe=((kt=tt.eligibility_restriction)==null?void 0:kt.type)&&tt.eligibility_restriction.type!=="none";return t.jsxs(bl,{$active:Re,onClick:()=>{!Re&&!qe&&We(ae.id)},disabled:p,style:qe||rt?{opacity:.55,cursor:"not-allowed"}:Re?{cursor:"default"}:void 0,title:(K=tt.eligibility_restriction)==null?void 0:K.message,children:[t.jsx(yl,{children:tt.image_url?t.jsx("img",{src:tt.image_url,alt:tt.name}):pe(tt.name).charAt(0)}),t.jsx(jl,{children:tt.name}),t.jsxs(To,{children:[qe&&t.jsx(Mr,{size:12,color:"var(--color-error)"}),Re&&t.jsx(Fo,{size:12})]})]},ae.id)}),!rt&&t.jsxs(bl,{onClick:()=>{_(ye.id),T.open()},disabled:p,children:[t.jsx(yl,{style:{background:"transparent",border:"1px dashed var(--color-border)"},children:t.jsx(jt,{size:10})}),t.jsx(jl,{children:"New workspace"})]})]})]},ye.id)})]}),(()=>{var rt,ft,_t;const ie=((ce==null?void 0:ce.length)??0)>0,ye=()=>Ve&&t.jsx($l,{children:t.jsxs(Ml,{onClick:()=>{r?(r(),i(!1)):I.open()},disabled:p,children:[t.jsx(Ll,{children:t.jsx(jt,{size:12})}),"New organization"]})});if(!Te||!ie)return ye();const Me=!!((rt=Y==null?void 0:Y.eligibility_restriction)!=null&&rt.type)&&Y.eligibility_restriction.type!=="none",De=((_t=(ft=ce==null?void 0:ce[0])==null?void 0:ft.organization)==null?void 0:_t.id)??null,et=B&&!Me?B.id:De;return t.jsx($l,{children:t.jsxs(Ml,{onClick:()=>{_(et),T.open()},disabled:p,children:[t.jsx(Ll,{children:t.jsx(jt,{size:12})}),"New workspace"]})})})()]})]}),document.body),t.jsx(hu,{isOpen:O.isOpen,onClose:O.close}),a&&t.jsxs(t.Fragment,{children:[t.jsx(I1,{isOpen:I.isOpen,onClose:I.close}),t.jsx(D1,{isOpen:P.isOpen,onClose:P.close}),Te&&t.jsxs(t.Fragment,{children:[t.jsx(Ps,{isOpen:T.isOpen,onClose:()=>{T.close(),_(null)},organizationId:C||void 0}),t.jsx(Is,{isOpen:$.isOpen,onClose:$.close})]})]})]})})},Pb=l.div`
|
|
6414
6414
|
padding: var(--space-6u) var(--space-8u);
|
|
6415
6415
|
background: ${e=>e.$unread?"var(--color-accent)":"transparent"};
|
|
6416
6416
|
transition: background-color 0.2s ease;
|
|
@@ -6440,7 +6440,7 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
6440
6440
|
white-space: nowrap;
|
|
6441
6441
|
overflow: hidden;
|
|
6442
6442
|
text-overflow: ellipsis;
|
|
6443
|
-
`,
|
|
6443
|
+
`,Ib=l.p`
|
|
6444
6444
|
font-size: var(--font-size-md);
|
|
6445
6445
|
color: var(--color-secondary-text);
|
|
6446
6446
|
margin: 0;
|
|
@@ -6453,7 +6453,7 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
6453
6453
|
overflow: hidden;
|
|
6454
6454
|
text-overflow: ellipsis;
|
|
6455
6455
|
`}
|
|
6456
|
-
`,
|
|
6456
|
+
`,Zb=l.div`
|
|
6457
6457
|
display: flex;
|
|
6458
6458
|
flex-direction: column;
|
|
6459
6459
|
align-items: flex-end;
|
|
@@ -6468,7 +6468,7 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
6468
6468
|
height: var(--space-4u);
|
|
6469
6469
|
border-radius: 50%;
|
|
6470
6470
|
background: var(--color-primary);
|
|
6471
|
-
`;function gu({notification:e,onAction:r}){const[a,n]=c.useState(!1),s=d=>{d.target.closest("button")||(n(!a),e.is_read||r({type:"read",id:e.id}))},i=d=>{r({type:"custom",payload:d.payload})},h=d=>{const u=new Date(d),p=new Date().getTime()-u.getTime();if(p<6e4)return"Just now";const m=Math.floor(p/6e4);if(m<60)return`${m}m`;const g=Math.floor(m/60);if(g<24)return`${g}h`;const v=Math.floor(g/24);return v<7?`${v}d`:u.toLocaleDateString(void 0,{month:"short",day:"numeric"})};return t.jsx(t.Fragment,{children:t.jsxs(Pb,{$unread:!e.is_read,$expanded:a,onClick:s,children:[t.jsxs(Tb,{children:[t.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"var(--space-4u)",marginBottom:"var(--space-1u)"},children:[!e.is_read&&t.jsx(Hb,{}),t.jsx(Fb,{children:e.title})]}),t.jsx(
|
|
6471
|
+
`;function gu({notification:e,onAction:r}){const[a,n]=c.useState(!1),s=d=>{d.target.closest("button")||(n(!a),e.is_read||r({type:"read",id:e.id}))},i=d=>{r({type:"custom",payload:d.payload})},h=d=>{const u=new Date(d),p=new Date().getTime()-u.getTime();if(p<6e4)return"Just now";const m=Math.floor(p/6e4);if(m<60)return`${m}m`;const g=Math.floor(m/60);if(g<24)return`${g}h`;const v=Math.floor(g/24);return v<7?`${v}d`:u.toLocaleDateString(void 0,{month:"short",day:"numeric"})};return t.jsx(t.Fragment,{children:t.jsxs(Pb,{$unread:!e.is_read,$expanded:a,onClick:s,children:[t.jsxs(Tb,{children:[t.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"var(--space-4u)",marginBottom:"var(--space-1u)"},children:[!e.is_read&&t.jsx(Hb,{}),t.jsx(Fb,{children:e.title})]}),t.jsx(Ib,{$expanded:a,children:e.body}),e.ctas&&e.ctas.length>0&&t.jsx("div",{style:{display:"flex",gap:"var(--space-4u)",marginTop:"var(--space-5u)",flexWrap:"wrap"},children:e.ctas.map((d,u)=>t.jsx("button",{onClick:()=>i(d),style:{display:"inline-flex",alignItems:"center",justifyContent:"center",padding:"calc(var(--space-2u) + var(--border-width-thin)) var(--space-6u)",fontSize:"var(--font-size-sm)",fontWeight:500,borderRadius:"var(--radius-xs)",cursor:"pointer",transition:"all 0.2s cubic-bezier(0.4, 0, 0.2, 1)",border:"var(--border-width-thin) solid var(--color-border)",background:"var(--color-secondary)",color:"var(--color-secondary-foreground)",boxShadow:"var(--shadow-sm)"},onMouseOver:f=>{f.currentTarget.style.background="var(--color-accent)",f.currentTarget.style.borderColor="var(--color-border-hover)"},onMouseOut:f=>{f.currentTarget.style.background="var(--color-secondary)",f.currentTarget.style.borderColor="var(--color-border)"},children:d.label},u))})]}),t.jsxs(Zb,{children:[t.jsxs("div",{style:{display:"flex",gap:"var(--space-4u)",alignItems:"center"},children:[e.is_read&&t.jsx("button",{onClick:d=>{d.stopPropagation(),r({type:"unread",id:e.id})},title:"Mark as unread",style:{background:"transparent",border:"none",cursor:"pointer",color:"var(--color-muted)",padding:"var(--space-2u) 0",display:"flex",transition:"color 0.2s ease"},onMouseOver:d=>d.currentTarget.style.color="var(--color-popover-foreground)",onMouseOut:d=>d.currentTarget.style.color="var(--color-muted)",children:t.jsx(xf,{size:14})}),t.jsx("button",{onClick:d=>{d.stopPropagation(),r({type:"star",id:e.id})},title:e.is_starred?"Unstar":"Star",style:{background:"transparent",border:"none",cursor:"pointer",color:e.is_starred?"var(--color-warning)":"var(--color-muted)",padding:"var(--space-2u) 0",display:"flex",transition:"color 0.2s ease"},onMouseOver:d=>d.currentTarget.style.color=e.is_starred?"var(--color-warning)":"var(--color-popover-foreground)",onMouseOut:d=>d.currentTarget.style.color=e.is_starred?"var(--color-warning)":"var(--color-muted)",children:t.jsx(Af,{size:14,fill:e.is_starred?"currentColor":"none"})}),t.jsx("button",{onClick:d=>{d.stopPropagation(),r({type:"archive",id:e.id})},title:e.is_archived?"Unarchive":"Archive",style:{background:"transparent",border:"none",cursor:"pointer",color:"var(--color-muted)",padding:"var(--space-2u) 0",display:"flex",transition:"color 0.2s ease"},onMouseOver:d=>d.currentTarget.style.color="var(--color-popover-foreground)",onMouseOut:d=>d.currentTarget.style.color="var(--color-muted)",children:e.is_archived?t.jsx(pf,{size:14}):t.jsx(od,{size:14})})]}),t.jsx(Ob,{children:h(e.created_at)})]})]})})}const Vb=l.div`
|
|
6472
6472
|
width: ${e=>e.$fullWidth?"100%":"calc(calc(var(--size-50u) * 4) + var(--space-10u) + var(--space-5u))"};
|
|
6473
6473
|
max-width: 100%;
|
|
6474
6474
|
height: 100%;
|
|
@@ -6653,12 +6653,12 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
6653
6653
|
font-weight: 400;
|
|
6654
6654
|
color: var(--color-popover-foreground);
|
|
6655
6655
|
margin: 0 0 var(--space-2u) 0;
|
|
6656
|
-
`,
|
|
6656
|
+
`,Il=l.p`
|
|
6657
6657
|
font-size: var(--font-size-md);
|
|
6658
6658
|
color: var(--color-secondary-text);
|
|
6659
6659
|
margin: 0;
|
|
6660
6660
|
line-height: 1.4;
|
|
6661
|
-
`,vu=c.forwardRef(({scope:e="all",onAction:r,fullWidth:a,maxHeight:n,className:s},i)=>{const[h,d]=c.useState("inbox"),[u,f]=c.useState(!1),[p,m]=c.useState(!1),g=c.useRef(null),v={scope:e,limit:20,is_archived:h==="archive",is_starred:h==="starred",is_read:u?!1:void 0},{notifications:b,loading:x,error:w,hasMore:A,loadMore:j,markAsRead:S,markAsUnread:C,markAllAsRead:_,archiveAllRead:k,archiveNotification:y,starNotification:M}=y0(v);c.useEffect(()=>{if(!p)return;const P=T=>{g.current&&!g.current.contains(T.target)&&m(!1)};return document.addEventListener("mousedown",P),()=>document.removeEventListener("mousedown",P)},[p]);const z=async P=>{switch(P.type){case"read":await S(P.id);break;case"unread":await C(P.id);break;case"archive":await y(P.id);break;case"star":await M(P.id);break;case"custom":r==null||r(P.payload);break}},O=()=>{_(),m(!1)},I=()=>{k(),m(!1)};return t.jsxs(Vb,{ref:i,$fullWidth:a,$maxHeight:n,className:s,children:[t.jsxs(Db,{children:[t.jsxs(Nb,{children:[t.jsx(ln,{$active:h==="inbox",onClick:()=>d("inbox"),children:"Inbox"}),t.jsx(ln,{$active:h==="archive",onClick:()=>d("archive"),children:"Archive"}),t.jsx(ln,{$active:h==="starred",onClick:()=>d("starred"),children:"Starred"})]}),t.jsxs(Wb,{onClick:()=>f(!u),children:[t.jsx(Gb,{$active:u}),t.jsx(qb,{children:"Unread Only"})]}),t.jsx(Ub,{onClick:()=>m(!p),style:{padding:"var(--space-2u)"},children:t.jsx(bf,{size:16})}),p&&t.jsxs(Bb,{ref:g,style:{top:"var(--size-18u)",right:"var(--space-6u)"},children:[h==="inbox"&&t.jsxs(Rl,{onClick:O,children:[t.jsx(vf,{})," Mark all as read"]}),t.jsxs(Rl,{onClick:I,children:[t.jsx(od,{})," Archive all read"]})]})]}),t.jsx(Kb,{children:x?t.jsx(Yb,{children:t.jsx(ze,{})}):w?t.jsxs(Pl,{children:[t.jsx(Tl,{children:t.jsx(Ci,{size:24,style:{color:"var(--color-error)"}})}),t.jsx(Fl,{children:"Failed to load notifications"}),t.jsx(
|
|
6661
|
+
`,vu=c.forwardRef(({scope:e="all",onAction:r,fullWidth:a,maxHeight:n,className:s},i)=>{const[h,d]=c.useState("inbox"),[u,f]=c.useState(!1),[p,m]=c.useState(!1),g=c.useRef(null),v={scope:e,limit:20,is_archived:h==="archive",is_starred:h==="starred",is_read:u?!1:void 0},{notifications:b,loading:x,error:w,hasMore:A,loadMore:j,markAsRead:S,markAsUnread:C,markAllAsRead:_,archiveAllRead:k,archiveNotification:y,starNotification:M}=y0(v);c.useEffect(()=>{if(!p)return;const P=T=>{g.current&&!g.current.contains(T.target)&&m(!1)};return document.addEventListener("mousedown",P),()=>document.removeEventListener("mousedown",P)},[p]);const z=async P=>{switch(P.type){case"read":await S(P.id);break;case"unread":await C(P.id);break;case"archive":await y(P.id);break;case"star":await M(P.id);break;case"custom":r==null||r(P.payload);break}},O=()=>{_(),m(!1)},I=()=>{k(),m(!1)};return t.jsxs(Vb,{ref:i,$fullWidth:a,$maxHeight:n,className:s,children:[t.jsxs(Db,{children:[t.jsxs(Nb,{children:[t.jsx(ln,{$active:h==="inbox",onClick:()=>d("inbox"),children:"Inbox"}),t.jsx(ln,{$active:h==="archive",onClick:()=>d("archive"),children:"Archive"}),t.jsx(ln,{$active:h==="starred",onClick:()=>d("starred"),children:"Starred"})]}),t.jsxs(Wb,{onClick:()=>f(!u),children:[t.jsx(Gb,{$active:u}),t.jsx(qb,{children:"Unread Only"})]}),t.jsx(Ub,{onClick:()=>m(!p),style:{padding:"var(--space-2u)"},children:t.jsx(bf,{size:16})}),p&&t.jsxs(Bb,{ref:g,style:{top:"var(--size-18u)",right:"var(--space-6u)"},children:[h==="inbox"&&t.jsxs(Rl,{onClick:O,children:[t.jsx(vf,{})," Mark all as read"]}),t.jsxs(Rl,{onClick:I,children:[t.jsx(od,{})," Archive all read"]})]})]}),t.jsx(Kb,{children:x?t.jsx(Yb,{children:t.jsx(ze,{})}):w?t.jsxs(Pl,{children:[t.jsx(Tl,{children:t.jsx(Ci,{size:24,style:{color:"var(--color-error)"}})}),t.jsx(Fl,{children:"Failed to load notifications"}),t.jsx(Il,{children:w.message||"An unexpected error occurred."})]}):b.length===0?t.jsxs(Pl,{children:[t.jsx(Tl,{children:t.jsx(Ci,{size:24})}),t.jsx(Fl,{children:"No notifications"}),t.jsx(Il,{children:"You're all caught up!"})]}):t.jsxs(t.Fragment,{children:[b.map(P=>t.jsx(gu,{notification:P,onAction:z},P.id)),A&&t.jsx("div",{style:{padding:"var(--space-6u)",display:"flex",justifyContent:"center"},children:t.jsx(ln,{$active:!1,onClick:j,style:{fontSize:"var(--font-size-sm)"},children:"Load more"})})]})})]})}),Qb=l.div`
|
|
6662
6662
|
position: fixed;
|
|
6663
6663
|
${e=>{var r;return((r=e.$position)==null?void 0:r.top)!==void 0?`top: ${e.$position.top}px;`:""}}
|
|
6664
6664
|
${e=>{var r;return((r=e.$position)==null?void 0:r.bottom)!==void 0?`bottom: ${e.$position.bottom}px;`:""}}
|
|
@@ -6760,7 +6760,7 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
6760
6760
|
`,sw=mt`
|
|
6761
6761
|
from { transform: rotate(0deg); }
|
|
6762
6762
|
to { transform: rotate(360deg); }
|
|
6763
|
-
`,
|
|
6763
|
+
`,Zl=l(wt)`
|
|
6764
6764
|
animation: ${sw} 1s linear infinite;
|
|
6765
6765
|
flex-shrink: 0;
|
|
6766
6766
|
`,Ol=l.div`
|
|
@@ -6993,14 +6993,14 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
6993
6993
|
display: flex;
|
|
6994
6994
|
flex-direction: column;
|
|
6995
6995
|
gap: var(--space-2u);
|
|
6996
|
-
`,
|
|
6996
|
+
`,Io=l.div`
|
|
6997
6997
|
height: var(--space-6u);
|
|
6998
6998
|
width: ${e=>e.$width??"50%"};
|
|
6999
6999
|
border-radius: var(--radius-2xs);
|
|
7000
7000
|
background: linear-gradient(90deg, var(--color-accent) 0%, var(--color-secondary) 50%, var(--color-accent) 100%);
|
|
7001
7001
|
background-size: calc(var(--size-50u) * 10) 100%;
|
|
7002
7002
|
animation: ${wu} 2s infinite linear;
|
|
7003
|
-
`,zw=({onAccountSelect:e,showAddAccount:r=!0})=>{var y,M,z,O,I;const{session:a,loading:n,switchSignIn:s,signOut:i}=st(),{deployment:h}=Ae(),{navigateToSignIn:d,navigate:u}=yt(),[f,p]=c.useState(null),[m,g]=c.useState(null),v=a==null?void 0:a.active_signin,b=(a==null?void 0:a.signins)||[],x=((M=(y=h==null?void 0:h.auth_settings)==null?void 0:y.multi_session_support)==null?void 0:M.enabled)??!1,w=(z=h==null?void 0:h.ui_settings)==null?void 0:z.logo_image_url,A=(O=h==null?void 0:h.ui_settings)==null?void 0:O.app_name;c.useEffect(()=>{n||b.length||d()},[n,b,d]);const j=P=>P.split(" ").map(T=>T[0]).join("").toUpperCase().slice(0,2),S=async P=>{var T;g(P);try{if(await s(P),e)e(P),g(null);else{let $=new URLSearchParams(window.location.search).get("redirect_uri");if($||($=(T=h.ui_settings)==null?void 0:T.after_signin_redirect_url),$){let E;try{E=new URL($)}catch{E=new URL($,window.location.origin)}(h==null?void 0:h.mode)==="staging"&&E.searchParams.set("__dev_session__",ht(h.backend_host)??""),u(E.toString())}else g(null)}}catch{g(null)}},C=async(P,T)=>{P.stopPropagation(),p(T);try{await i(T)}catch{}finally{p(null)}},_=()=>{var T;let P=new URLSearchParams(window.location.search).get("redirect_uri");P||(P=(T=h.ui_settings)==null?void 0:T.after_signin_redirect_url),d(P)},k=()=>t.jsxs(iw,{children:[t.jsxs(cw,{children:[w?t.jsx(lw,{src:w,alt:A||"App"}):t.jsx(dw,{children:t.jsx(zf,{size:20})}),t.jsxs(uw,{children:[t.jsx(pw,{children:A||"Your App"}),t.jsx(hw,{children:"Select or switch between your accounts"})]})]}),t.jsx(fw,{})]});return n?t.jsx(ge,{children:t.jsxs(Ol,{children:[k(),t.jsxs(Hl,{children:[t.jsx(Vl,{children:t.jsx(
|
|
7003
|
+
`,zw=({onAccountSelect:e,showAddAccount:r=!0})=>{var y,M,z,O,I;const{session:a,loading:n,switchSignIn:s,signOut:i}=st(),{deployment:h}=Ae(),{navigateToSignIn:d,navigate:u}=yt(),[f,p]=c.useState(null),[m,g]=c.useState(null),v=a==null?void 0:a.active_signin,b=(a==null?void 0:a.signins)||[],x=((M=(y=h==null?void 0:h.auth_settings)==null?void 0:y.multi_session_support)==null?void 0:M.enabled)??!1,w=(z=h==null?void 0:h.ui_settings)==null?void 0:z.logo_image_url,A=(O=h==null?void 0:h.ui_settings)==null?void 0:O.app_name;c.useEffect(()=>{n||b.length||d()},[n,b,d]);const j=P=>P.split(" ").map(T=>T[0]).join("").toUpperCase().slice(0,2),S=async P=>{var T;g(P);try{if(await s(P),e)e(P),g(null);else{let $=new URLSearchParams(window.location.search).get("redirect_uri");if($||($=(T=h.ui_settings)==null?void 0:T.after_signin_redirect_url),$){let E;try{E=new URL($)}catch{E=new URL($,window.location.origin)}(h==null?void 0:h.mode)==="staging"&&E.searchParams.set("__dev_session__",ht(h.backend_host)??""),u(E.toString())}else g(null)}}catch{g(null)}},C=async(P,T)=>{P.stopPropagation(),p(T);try{await i(T)}catch{}finally{p(null)}},_=()=>{var T;let P=new URLSearchParams(window.location.search).get("redirect_uri");P||(P=(T=h.ui_settings)==null?void 0:T.after_signin_redirect_url),d(P)},k=()=>t.jsxs(iw,{children:[t.jsxs(cw,{children:[w?t.jsx(lw,{src:w,alt:A||"App"}):t.jsx(dw,{children:t.jsx(zf,{size:20})}),t.jsxs(uw,{children:[t.jsx(pw,{children:A||"Your App"}),t.jsx(hw,{children:"Select or switch between your accounts"})]})]}),t.jsx(fw,{})]});return n?t.jsx(ge,{children:t.jsxs(Ol,{children:[k(),t.jsxs(Hl,{children:[t.jsx(Vl,{children:t.jsx(Io,{$width:"55%"})}),t.jsx(Dl,{children:[1,2,3].map(P=>t.jsxs(Sw,{children:[t.jsx(Ew,{}),t.jsxs(Aw,{children:[t.jsx(Io,{$width:"45%"}),t.jsx(Io,{$width:"65%"})]})]},P))})]})]})}):b.length?t.jsx(ge,{children:t.jsxs(Ol,{children:[k(),t.jsxs(Hl,{children:[t.jsxs(Vl,{children:[t.jsx(mw,{children:"Your accounts"}),t.jsx(gw,{children:"Select one to continue"})]}),t.jsxs(Dl,{children:[b.map(({user:P,id:T})=>{var R,W;if(!P)return null;const $=T===(v==null?void 0:v.id),E=m===T,F=f===T,L=`${P.first_name||""} ${P.last_name||""}`.trim(),H=L||((R=P.primary_email_address)==null?void 0:R.email)||P.username||"User",Z=((W=P.primary_email_address)==null?void 0:W.email)||P.username;return t.jsxs(vw,{$isActive:$,$isSwitching:E,$clickable:!$,onClick:()=>!$&&S(T),children:[t.jsx(xw,{$isActive:$,children:E?t.jsx(Zl,{size:14}):P.has_profile_picture?t.jsx("img",{src:P.profile_picture_url,alt:L}):j(H)}),t.jsxs(bw,{children:[t.jsx(ww,{children:H}),Z&&Z!==H&&t.jsx(yw,{children:Z})]}),t.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"var(--space-3u)",flexShrink:0},children:[$&&t.jsx(gf,{size:16,weight:"fill",style:{color:"var(--color-primary)"}}),t.jsx(jw,{onClick:D=>C(D,T),disabled:F,title:"Sign out",children:F?t.jsx(Zl,{size:13}):t.jsx($r,{size:13})})]})]},T)}),r&&x&&t.jsxs(yu,{onClick:_,children:[t.jsx(_w,{children:t.jsx(jt,{size:13})}),"Add account"]})]}),t.jsxs(kw,{children:["Don't have an account?"," ",t.jsx(Cw,{children:t.jsx(Pt,{to:`${(I=h.ui_settings)==null?void 0:I.sign_up_page_url}${window.location.search}`,children:"Sign up"})})]})]})]})}):null},$w=()=>{const{navigateToSignIn:e}=yt();return c.useEffect(()=>{e()},[e]),null},Mw=()=>{const{navigateToSignUp:e}=yt();return c.useEffect(()=>{e()},[e]),null},Lw=l.div`
|
|
7004
7004
|
width: 100%;
|
|
7005
7005
|
max-width: 100%;
|
|
7006
7006
|
height: calc(calc(var(--size-50u) * 4) + calc(var(--size-50u) * 2));
|
|
@@ -7056,13 +7056,13 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
7056
7056
|
flex-direction: column;
|
|
7057
7057
|
overflow: hidden;
|
|
7058
7058
|
margin-bottom: var(--space-12u);
|
|
7059
|
-
`,
|
|
7059
|
+
`,Iw=l.div`
|
|
7060
7060
|
display: flex;
|
|
7061
7061
|
align-items: center;
|
|
7062
7062
|
justify-content: flex-start;
|
|
7063
7063
|
gap: var(--space-4u);
|
|
7064
7064
|
margin-bottom: var(--space-4u);
|
|
7065
|
-
`,
|
|
7065
|
+
`,Zw=l.h2`
|
|
7066
7066
|
font-size: var(--font-size-lg);
|
|
7067
7067
|
font-weight: 400;
|
|
7068
7068
|
color: var(--color-secondary-text);
|
|
@@ -7268,7 +7268,7 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
7268
7268
|
margin: 0 auto;
|
|
7269
7269
|
padding: var(--space-3u) var(--space-8u);
|
|
7270
7270
|
font-size: var(--font-size-md);
|
|
7271
|
-
`,Uw=()=>{var I,P;const{organizationMemberships:e,refetch:r,loading:a}=Kt(),{workspaces:n}=ir(),{switchOrganization:s,switchWorkspace:i}=st(),{deployment:h}=Ae(),[d,u]=c.useState(null),[f,p]=c.useState("orgList"),[m,g]=c.useState(null),v=(h==null?void 0:h.b2b_settings.workspaces_enabled)??!1,b=(h==null?void 0:h.b2b_settings.allow_users_to_create_orgs)??!1,x=c.useRef(!1);c.useEffect(()=>{if(!(x.current||!e)){if(x.current=!0,e.length===0){p("createOrg");return}if(!v){p("orgList");return}if(!n||n.length===0){const T=e.find($=>{var E,F;return!((E=$.eligibility_restriction)!=null&&E.type)||((F=$.eligibility_restriction)==null?void 0:F.type)==="none"});if(T){g(T.organization.id),p("createWorkspace");return}}p("orgList")}},[e,n,v]);const w=T=>T.split(" ").map($=>$[0]).join("").toUpperCase().slice(0,2),A=async T=>{if(v){g(T.id),p("workspaceList");return}u(T.id);try{await s(T.id)}finally{u(null)}},j=async T=>{u(T.id);try{await i(T.id)}finally{u(null)}},S=async T=>{var E;await r();const $=((E=T==null?void 0:T.data)==null?void 0:E.organization)||(T==null?void 0:T.organization)||T;if(!v){p("orgList");return}$!=null&&$.id?(g($.id),p("createWorkspace")):p("orgList")},C=()=>{},_=async()=>{g(null),p("orgList")},k=(I=e==null?void 0:e.find(T=>T.organization.id===m))==null?void 0:I.organization,y=m?n==null?void 0:n.filter(T=>T.organization.id===m):[];if(a)return null;if(f==="createOrg")return t.jsx(He.Body,{style:{padding:0},children:t.jsx(
|
|
7271
|
+
`,Uw=()=>{var I,P;const{organizationMemberships:e,refetch:r,loading:a}=Kt(),{workspaces:n}=ir(),{switchOrganization:s,switchWorkspace:i}=st(),{deployment:h}=Ae(),[d,u]=c.useState(null),[f,p]=c.useState("orgList"),[m,g]=c.useState(null),v=(h==null?void 0:h.b2b_settings.workspaces_enabled)??!1,b=(h==null?void 0:h.b2b_settings.allow_users_to_create_orgs)??!1,x=c.useRef(!1);c.useEffect(()=>{if(!(x.current||!e)){if(x.current=!0,e.length===0){p("createOrg");return}if(!v){p("orgList");return}if(!n||n.length===0){const T=e.find($=>{var E,F;return!((E=$.eligibility_restriction)!=null&&E.type)||((F=$.eligibility_restriction)==null?void 0:F.type)==="none"});if(T){g(T.organization.id),p("createWorkspace");return}}p("orgList")}},[e,n,v]);const w=T=>T.split(" ").map($=>$[0]).join("").toUpperCase().slice(0,2),A=async T=>{if(v){g(T.id),p("workspaceList");return}u(T.id);try{await s(T.id)}finally{u(null)}},j=async T=>{u(T.id);try{await i(T.id)}finally{u(null)}},S=async T=>{var E;await r();const $=((E=T==null?void 0:T.data)==null?void 0:E.organization)||(T==null?void 0:T.organization)||T;if(!v){p("orgList");return}$!=null&&$.id?(g($.id),p("createWorkspace")):p("orgList")},C=()=>{},_=async()=>{g(null),p("orgList")},k=(I=e==null?void 0:e.find(T=>T.organization.id===m))==null?void 0:I.organization,y=m?n==null?void 0:n.filter(T=>T.organization.id===m):[];if(a)return null;if(f==="createOrg")return t.jsx(He.Body,{style:{padding:0},children:t.jsx(Zn,{onSuccess:S,onCancel:()=>p("orgList")})});if(f==="createWorkspace"&&m)return t.jsx(He.Body,{style:{padding:0},children:t.jsx(Rs,{organizationId:m,onSuccess:C,onCancel:()=>p("workspaceList"),onCreateOrganization:()=>p("createOrg")})});const M=f==="workspaceList",z=M?"Select a workspace":"Select an organization",O=M?`Choose a workspace in ${(k==null?void 0:k.name)||""}`:`to continue to ${((P=h==null?void 0:h.ui_settings)==null?void 0:P.app_name)||"App"}`;return t.jsxs(Lw,{children:[t.jsxs(Rw,{children:[t.jsxs(Pw,{children:[t.jsx(Je,{placement:"left"}),t.jsxs(Hw,{children:[t.jsx(Vw,{children:z}),t.jsx(Dw,{children:O})]})]}),t.jsx(Us,{showName:!0})]}),t.jsxs(Tw,{children:[t.jsxs(Fw,{children:[t.jsxs(Iw,{children:[M&&t.jsx(Ow,{onClick:_,"aria-label":"Go back",title:"Go back",children:t.jsx(na,{})}),t.jsx(Zw,{children:M?"Workspaces":"Your organizations"})]}),t.jsx(Nw,{children:M?t.jsx(t.Fragment,{children:y&&y.length>0?y.map(T=>{var E,F,L;const $=((E=T.eligibility_restriction)==null?void 0:E.type)!=="none"&&((F=T.eligibility_restriction)==null?void 0:F.type)!==void 0;return t.jsxs(Nl,{onClick:()=>!$&&j(T),disabled:d===T.id||$,style:{opacity:$?.6:1},children:[$&&t.jsx(Ul,{className:"warning-popover",children:(L=T.eligibility_restriction)==null?void 0:L.message}),t.jsx(Bl,{children:T.image_url?t.jsx(Wl,{src:T.image_url,alt:T.name}):w(T.name).charAt(0)}),t.jsxs(Gl,{children:[t.jsx(ql,{children:T.name}),t.jsxs(Kl,{children:[t.jsx(jn,{}),"Workspace"]})]}),t.jsxs(Yl,{children:[$&&t.jsx(Mr,{size:16,style:{color:"var(--color-error)"}}),t.jsx(Sa,{})]})]},T.id)}):t.jsxs(Ql,{children:[t.jsx(Jl,{children:"No workspaces yet"}),t.jsxs(Xl,{children:["Create your first workspace for"," ",(k==null?void 0:k.name)||"this organization"]}),t.jsxs(e0,{onClick:()=>p("createWorkspace"),children:[t.jsx(jt,{}),"Create workspace"]})]})}):e&&e.length>0?e.map(T=>{var D,B,Y,X,ce;const $=T.organization,E=n==null?void 0:n.filter(me=>me.organization.id===$.id),F=(E==null?void 0:E.length)||0,L=$.member_count,H=((B=(D=T.roles)==null?void 0:D[0])==null?void 0:B.name)||"No role",Z=T.roles.length-1,R=Z>0?`${H.charAt(0).toUpperCase()+H.slice(1)} +${Z}`:H.charAt(0).toUpperCase()+H.slice(1),W=((Y=T.eligibility_restriction)==null?void 0:Y.type)!=="none"&&((X=T.eligibility_restriction)==null?void 0:X.type)!==void 0;return t.jsxs(Nl,{onClick:()=>!W&&A($),disabled:d===$.id||W,style:{opacity:W?.6:1},children:[W&&t.jsx(Ul,{className:"warning-popover",children:(ce=T.eligibility_restriction)==null?void 0:ce.message}),t.jsx(Bl,{children:$.image_url?t.jsx(Wl,{src:$.image_url,alt:$.name}):w($.name)}),t.jsxs(Gl,{children:[t.jsx(ql,{children:$.name}),t.jsx(Kl,{children:v?t.jsxs(t.Fragment,{children:[t.jsx(jn,{}),F," ","workspace",F!==1?"s":""]}):t.jsxs(t.Fragment,{children:[t.jsx(ud,{}),R," •"," ",L," member",L!==1?"s":""]})})]}),t.jsxs(Yl,{children:[W&&t.jsx(Mr,{size:16,style:{color:"var(--color-error)"}}),t.jsx(Sa,{})]})]},$.id)}):t.jsxs(Ql,{children:[t.jsx(Jl,{children:"No organizations yet"}),t.jsx(Xl,{children:b?"Create your first organization to get started":"You don't have access to any organizations yet"}),b&&t.jsxs(e0,{onClick:()=>p("createOrg"),children:[t.jsx(jt,{}),"Create organization"]})]})})]}),M&&m&&t.jsxs(N,{$outline:!0,style:{marginTop:"var(--space-4u)"},onClick:()=>p("createWorkspace"),disabled:d!==null,children:[t.jsx(jt,{size:12}),"Create workspace"]}),!M&&e&&e.length>0&&b&&t.jsxs(N,{$outline:!0,style:{marginTop:v?"var(--space-4u)":"var(--space-6u)"},onClick:()=>p("createOrg"),disabled:d!==null,children:[t.jsx(jt,{size:12}),"Create new organization"]})]})]})},Bw=l(He.Content)`
|
|
7272
7272
|
padding: 0;
|
|
7273
7273
|
width: calc(var(--size-50u) * 9);
|
|
7274
7274
|
max-width: 90vw;
|
|
@@ -7279,5 +7279,5 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
7279
7279
|
width: calc(100vw - var(--space-10u));
|
|
7280
7280
|
max-width: calc(100vw - var(--space-10u));
|
|
7281
7281
|
}
|
|
7282
|
-
`,Ww=({children:e})=>{var m,g,v,b;const{activeOrganization:r}=sr(),{activeWorkspace:a}=
|
|
7282
|
+
`,Ww=({children:e})=>{var m,g,v,b;const{activeOrganization:r}=sr(),{activeWorkspace:a}=Zt(),{deployment:n}=Ae(),{loading:s,orgMembership:i,workspaceMembership:h}=m0(),d=(n==null?void 0:n.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=((v=h==null?void 0:h.eligibility_restriction)==null?void 0:v.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(ge,{children:t.jsx(He,{isOpen:!0,children:t.jsx(He.Overlay,{children:t.jsx(Bw,{children:t.jsx(Uw,{})})})})})},Gw=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))},qw=e=>{const r=e.toLowerCase().trim();return!["javascript:","data:","vbscript:"].some(n=>r.startsWith(n))};exports.AcceptInvite=f6;exports.AuthFormImage=Je;exports.CreateOrganizationForm=Zn;exports.CreateWorkspaceDialog=Ps;exports.CreateWorkspaceForm=Rs;exports.DefaultStylesProvider=ge;exports.DeploymentInitialized=rh;exports.DeploymentInitializing=ah;exports.DeploymentProvider=Au;exports.Dialog=He;exports.DialogTrigger=Om;exports.Dropdown=Ma;exports.DropdownDivider=g1;exports.DropdownItem=or;exports.DropdownItems=La;exports.DropdownTrigger=Ra;exports.Form=Ft;exports.FormGroup=Se;exports.Input=ue;exports.Label=be;exports.MagicLinkVerification=i6;exports.ManageAccount=pu;exports.ManageAccountDialog=hu;exports.ManageOrganization=V1;exports.ManageWorkspace=B1;exports.ManageWorkspaceDialog=Is;exports.NavigateToSignIn=$w;exports.NavigateToSignUp=Mw;exports.NavigationLink=Pt;exports.NotificationBell=bu;exports.NotificationItem=gu;exports.NotificationPanel=vu;exports.NotificationPopover=xu;exports.OAuthProvider=r0;exports.ORG_ADMIN_PERMISSIONS=W1;exports.ORG_MANAGEMENT_PERMISSIONS=G1;exports.OTPInput=dr;exports.OrganizationSwitcher=Q1;exports.PhoneNumberInput=$a;exports.PhoneVerification=$1;exports.ProfileCompletion=R1;exports.RequireActiveTenancy=Ww;exports.SSOCallback=Jg;exports.SignInForm=Mg;exports.SignUpForm=km;exports.SignedIn=nw;exports.SignedInAccounts=zw;exports.SignedOut=ow;exports.SimpleDialog=Zm;exports.Spinner=ze;exports.Switch=Fr;exports.TwoFactorMethodSelector=z1;exports.TwoFactorVerification=L1;exports.UserButton=Us;exports.UserControls=aw;exports.WORKSPACE_ADMIN_PERMISSIONS=q1;exports.WORKSPACE_MANAGEMENT_PERMISSIONS=K1;exports.WaitlistForm=Gg;exports.canManageOrganization=Os;exports.canManageWorkspace=Vs;exports.clearTokenCache=Mt;exports.hasIncompleteProfile=c6;exports.hasOrgPermission=Zs;exports.hasWorkspacePermission=Hs;exports.isExternalUrl=Gw;exports.isOrgAdmin=rx;exports.isSafeUrl=qw;exports.isWorkspaceAdmin=ax;exports.redirectToProfileCompletion=l6;exports.useActiveOrganization=sr;exports.useActiveTenancy=m0;exports.useActiveWorkspace=Zt;exports.useActorMcpServers=Cp;exports.useActorProjectSearch=hp;exports.useActorProjects=pp;exports.useActorThreadSearch=gp;exports.useAgentSession=sp;exports.useAgentThread=vp;exports.useAgentThreadAssignments=wp;exports.useAgentThreadConversation=op;exports.useAgentThreadEvents=bp;exports.useAgentThreadFilesystem=xp;exports.useAgentThreadTaskGraphs=kp;exports.useApiAuthAppSession=Qp;exports.useApiAuthAuditAnalytics=eh;exports.useApiAuthAuditLogs=Xp;exports.useApiAuthAuditTimeseries=th;exports.useApiAuthKeys=Jp;exports.useClient=je;exports.useCreateWebhookEndpoint=Wp;exports.useDeployment=Ae;exports.useExternalAgentConnections=Sp;exports.useForgotPassword=b0;exports.useInvitation=A0;exports.useMagicLinkVerification=x0;exports.useNavigation=yt;exports.useNotificationStream=w0;exports.useNotificationUnreadCount=j0;exports.useNotifications=y0;exports.useOrganizationList=It;exports.useOrganizationMemberships=Kt;exports.useProjectTaskBoardItem=_p;exports.useProjectTasks=jp;exports.useProjectThreadFeed=mp;exports.useProjectThreads=fp;exports.useSSOCallback=v0;exports.useSession=st;exports.useSignIn=a0;exports.useSignUp=n0;exports.useUser=cr;exports.useUserSignins=f0;exports.useWaitlist=g0;exports.useWebhookAnalytics=Kp;exports.useWebhookAppSession=Np;exports.useWebhookDeliveries=qp;exports.useWebhookEndpoints=Bp;exports.useWebhookEvents=Gp;exports.useWebhookStats=Up;exports.useWebhookTimeseries=Yp;exports.useWorkspaceList=ir;exports.useWorkspaceMemberships=En;Object.keys(Bs).forEach(e=>{e!=="default"&&!Object.prototype.hasOwnProperty.call(exports,e)&&Object.defineProperty(exports,e,{enumerable:!0,get:()=>Bs[e]})});
|
|
7283
7283
|
//# sourceMappingURL=index.cjs.js.map
|