@ghostly-solutions/ui 2.1.0 → 2.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +12 -2
- package/dist/components/drawer/drawer.d.ts +1 -0
- package/dist/components/drawer/drawer.d.ts.map +1 -1
- package/dist/hooks/use-reduced-motion.d.ts +2 -1
- package/dist/hooks/use-reduced-motion.d.ts.map +1 -1
- package/dist/index.js +4 -4
- package/dist/server.js +1 -1
- package/package.json +1 -1
- /package/dist/{chunk-e8n8m48r.js → index-0v1djh1s.js} +0 -0
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import{A as s0,B as kt,C as l0,D as m0,E as Nt,F as Lg,G as Rg,H as xg,I as Cg,J as wg,K as Hg,L as kg,M as bo,N as zt,O as Sg,P as Ag,Q as pa,R as ga,S as ba,T as Ui,U as ya,V as Bg,W as Ig,X as fa,Y as Fg,Z as ha,a,b as _g,c as ZP,d as F,e as EP,f as DP,g as jP,h as e0,i as t0,j as r0,k as o0,l as oo,m as n0,n as a0,o as ey,p as Ga,q as Wa,r as _a,s as Ad,t as ni,u as Bd,v as i0,w as Va,x as Ya,y as Cn,z as ea}from"./chunk-e8n8m48r.js";import{cva as D1}from"class-variance-authority";import*as pt from"@radix-ui/react-accordion";import{cva as Na}from"class-variance-authority";import{ChevronDown as $g}from"lucide-react";import{createContext as Vg,forwardRef as rn,useContext as Yi}from"react";var Ug="sm",Kg=()=>{return"sm"};function f(e){if(e!==void 0)return e;return"sm"}import{jsxDEV as Ft}from"react/jsx-dev-runtime";var Fe={sm:"sm",md:"md",lg:"lg"},La=Vg(Fe.md),Xi=Na("border-b border-border"),Ji=Na("transition-[color,background-color,border-color,box-shadow,transform,opacity,filter] duration-[var(--motion-duration-medium)] ease-[var(--motion-ease-standard)] flex flex-1 items-center justify-between font-medium hover:underline [&[data-state=open]>svg]:rotate-180",{variants:{size:{[Fe.sm]:"py-3 text-xs [&>svg]:size-3.5",[Fe.md]:"py-4 text-sm [&>svg]:size-4",[Fe.lg]:"py-5 text-base [&>svg]:size-5"}},defaultVariants:{size:Fe.md}}),qi=Na("gs-accordion-content overflow-hidden",{variants:{size:{[Fe.sm]:"text-xs",[Fe.md]:"text-sm",[Fe.lg]:"text-base"}},defaultVariants:{size:Fe.md}}),Yg={[Fe.sm]:"pt-0 pb-3",[Fe.md]:"pt-0 pb-4",[Fe.lg]:"pt-0 pb-5"},Qi=rn(({size:e=Fe.sm,...t},r)=>{let o=f(e)??Fe.md;return Ft(La.Provider,{value:o,children:Ft(pt.Root,{ref:r,...t},void 0,!1,void 0,this)},void 0,!1,void 0,this)});Qi.displayName="Accordion";var Zi=rn(({className:e,...t},r)=>Ft(pt.Item,{ref:r,className:a(Xi(),e),...t},void 0,!1,void 0,this));Zi.displayName="AccordionItem";var Ei=rn(({className:e,children:t,...r},o)=>{let n=Yi(La);return Ft(pt.Header,{className:"flex",children:Ft(pt.Trigger,{ref:o,className:a(Ji({size:n}),e),...r,children:[t,Ft($g,{className:"shrink-0 transition-transform"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)});Ei.displayName="AccordionTrigger";var Di=rn(({className:e,children:t,...r},o)=>{let n=Yi(La);return Ft(pt.Content,{ref:o,className:a(qi({size:n}),e),...r,children:Ft("div",{className:Yg[n],children:t},void 0,!1,void 0,this)},void 0,!1,void 0,this)});Di.displayName="AccordionContent";import{cva as Ra}from"class-variance-authority";import{TriangleAlert as Xg,CircleCheck as Jg,Info as qg,CircleAlert as Qg}from"lucide-react";import{forwardRef as xa}from"react";import{jsxDEV as Ca}from"react/jsx-dev-runtime";var kr={default:"default",success:"success",warning:"warning",error:"error",info:"info"},on={sm:"sm",md:"md",lg:"lg"},ji=Ra("gs-alert relative w-full rounded-[var(--radius)] border [&>svg~*]:pl-8 [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:size-4 [&>svg]:text-foreground h-min",{variants:{variant:{[kr.default]:"border-border bg-secondary text-foreground",[kr.success]:"border-success/50 text-success [&>svg]:text-success bg-success/10",[kr.warning]:"border-warning/50 text-warning [&>svg]:text-warning bg-warning/10",[kr.error]:"border-destructive/50 text-destructive [&>svg]:text-destructive bg-destructive/10",[kr.info]:"border-info/50 text-info [&>svg]:text-info bg-info/10"},size:{[on.sm]:"p-3 text-sm [&>svg]:left-3 [&>svg]:top-3 [&>svg]:size-3.5 [&>svg~*]:pl-7",[on.md]:"p-4 text-sm",[on.lg]:"p-5 text-sm [&>svg]:left-5 [&>svg]:top-5"}},defaultVariants:{variant:kr.default,size:on.sm}}),es=Ra("mb-1 font-medium leading-none tracking-tight [.gs-alert[data-size=sm]_&]:text-sm [.gs-alert[data-size=md]_&]:text-sm [.gs-alert[data-size=lg]_&]:text-base h-min"),ts=Ra("[&_p]:leading-relaxed [.gs-alert[data-size=sm]_&]:text-[13px] [.gs-alert[data-size=md]_&]:text-sm [.gs-alert[data-size=lg]_&]:text-sm"),rs=xa(({className:e,variant:t,size:r,...o},n)=>{let i=f(r);return Ca("div",{ref:n,role:"alert","data-size":i,className:a(ji({variant:t,size:i}),e),...o},void 0,!1,void 0,this)});rs.displayName="Alert";var os=xa(({className:e,...t},r)=>Ca("h5",{ref:r,className:a(es(),e),...t},void 0,!1,void 0,this));os.displayName="AlertTitle";var ns=xa(({className:e,...t},r)=>Ca("div",{ref:r,className:a(ts(),e),...t},void 0,!1,void 0,this));ns.displayName="AlertDescription";import*as Le from"@radix-ui/react-alert-dialog";import{cva as vs}from"class-variance-authority";import{createContext as pb,forwardRef as Br,useCallback as fb,useContext as gb,useEffect as bb,useState as Ts}from"react";import{Slot as as}from"@radix-ui/react-slot";import{cva as Ha}from"class-variance-authority";import{forwardRef as nn}from"react";import{forwardRef as Zg}from"react";import{jsxDEV as wa}from"react/jsx-dev-runtime";var vo={sm:"sm",md:"md",lg:"lg"},Eg={[vo.sm]:"h-4 w-4",[vo.md]:"h-5 w-5",[vo.lg]:"h-6 w-6"},Ot=Zg(({className:e,size:t=vo.sm,label:r="Loading",...o},n)=>{let i=f(t);return wa("span",{ref:n,className:a("inline-flex items-center justify-center",e),role:"status","aria-label":r,...o,children:[wa("span",{"data-gs-motion":"essential",className:a("gs-loading-motion animate-spin rounded-full border-2 border-current border-r-transparent",Eg[i])},void 0,!1,void 0,this),wa("span",{className:"sr-only",children:r},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});Ot.displayName="Spinner";import{jsxDEV as xt}from"react/jsx-dev-runtime";var Rt={primary:"primary",secondary:"secondary",neutral:"neutral",outline:"outline",ghost:"ghost",danger:"danger"},Qe={sm:"sm",md:"md",lg:"lg",icon:"icon",iconSm:"icon-sm",iconLg:"icon-lg"},Gt={default:"default",success:"success",warning:"warning",error:"error",info:"info"},Sr={sm:"sm",md:"md",lg:"lg"},Dg="Loading",jg="button",To=Ha("transition-[color,background-color,border-color,box-shadow,transform,opacity,filter] duration-[var(--motion-duration-medium)] ease-[var(--motion-ease-standard)] relative inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-[var(--radius)] border border-transparent font-semibold outline-none focus-visible:border-primary disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-55",{variants:{variant:{[Rt.primary]:"border-primary bg-primary text-primary-foreground enabled:hover:bg-primary/90",[Rt.secondary]:"border-secondary bg-secondary text-secondary-foreground enabled:hover:bg-secondary/90",[Rt.neutral]:"border-border bg-muted text-foreground enabled:hover:bg-muted/90",[Rt.outline]:"border-border bg-background text-foreground enabled:hover:border-primary enabled:hover:bg-muted/50",[Rt.ghost]:"border-transparent bg-transparent text-foreground enabled:hover:bg-muted/70",[Rt.danger]:"border-destructive bg-destructive text-destructive-foreground enabled:hover:bg-destructive/90"},size:{[Qe.sm]:"h-8 px-2.5 text-xs",[Qe.md]:"h-10 px-4 text-sm",[Qe.lg]:"h-11 px-5 text-sm",[Qe.icon]:"h-10 w-10 p-0",[Qe.iconSm]:"h-9 w-9 p-0",[Qe.iconLg]:"h-11 w-11 p-0"}},defaultVariants:{variant:Rt.primary,size:Qe.sm}}),is=Ha("shrink-0",{variants:{size:{[Sr.sm]:"size-3",[Sr.md]:"size-4",[Sr.lg]:"size-4.5"}},defaultVariants:{size:Sr.sm}}),ss=Ha("inline-flex items-center rounded-full border px-1.5 py-0.5 font-semibold text-[11px] leading-none",{variants:{tone:{[Gt.default]:"border-border/70 bg-background/75 text-muted-foreground",[Gt.success]:"border-success/35 bg-success/12 text-success",[Gt.warning]:"border-warning/35 bg-warning/12 text-warning",[Gt.error]:"border-destructive/35 bg-destructive/12 text-destructive",[Gt.info]:"border-info/35 bg-info/12 text-info"}},defaultVariants:{tone:Gt.default}});function eb(e){return e===Qe.icon||e===Qe.iconSm||e===Qe.iconLg}function tb(e,t,r){return e&&t?-1:r}function rb(e){return e["aria-label"]??e["aria-labelledby"]??e.title}function ob(){if(typeof process>"u")return!0;return!0}var ls=nn(({className:e,size:t=Sr.sm,...r},o)=>xt(as,{ref:o,className:a(is({size:t}),e),...r},void 0,!1,void 0,this));ls.displayName="ButtonIcon";var ms=nn(({className:e,...t},r)=>xt("span",{ref:r,className:a("truncate",e),...t},void 0,!1,void 0,this));ms.displayName="ButtonLabel";var ds=nn(({className:e,tone:t=Gt.default,...r},o)=>xt("span",{ref:o,className:a(ss({tone:t}),e),...r},void 0,!1,void 0,this));ds.displayName="ButtonBadge";var us=nn(({className:e,variant:t=Rt.primary,size:r=Qe.sm,asChild:o=!1,loading:n=!1,loadingText:i=Dg,fullWidth:s=!1,leadingIcon:l,trailingIcon:d,disabled:m,children:c,type:u,tabIndex:g,onClick:v,...y},T)=>{let z=f(r),M=z??r,p=rb(y);if(ob()&&eb(M)&&!p)throw Error("Icon-size Button requires aria-label, aria-labelledby, or title.");let h=Boolean(m||n),L=a(To({variant:t,size:z}),h&&"pointer-events-none cursor-not-allowed opacity-55",s&&"w-full",e);if(o)return xt(as,{ref:T,className:L,"aria-disabled":h||void 0,"aria-busy":n||void 0,tabIndex:tb(!0,h,g),onClick:h?(H)=>{H.preventDefault()}:v,...y,children:c},void 0,!1,void 0,this);return xt("button",{ref:T,className:L,disabled:h,"aria-disabled":h,"aria-busy":n,tabIndex:g,type:u??jg,onClick:n?void 0:v,...y,children:[xt("span",{className:a("absolute inset-0 flex items-center justify-center transition-opacity duration-150",n?"opacity-100":"opacity-0"),"aria-hidden":"true",children:xt(Ot,{size:"sm"},void 0,!1,void 0,this)},void 0,!1,void 0,this),n&&xt("span",{className:"sr-only",children:i},void 0,!1,void 0,this),xt("span",{className:a("inline-flex items-center justify-center gap-2 transition-opacity duration-150",n&&"opacity-0"),children:[l,c,d]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)});us.displayName="Button";var se=!0,nt=4,Wt="fixed inset-0 z-50 bg-black/50",an="transition-[color,background-color,border-color,box-shadow,transform,opacity,filter] duration-[var(--motion-duration-medium)] ease-[var(--motion-ease-standard)] absolute top-4 right-4 rounded-[var(--radius)] border border-border p-1.5 text-muted-foreground hover:bg-accent hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none";import{useEffect as nb,useSyncExternalStore as ab}from"react";var ka="(prefers-reduced-motion: reduce)",Ar="data-gs-reduced-motion",sr="data-gs-demo-reduced-motion",Sa="gs-reduced-motion",ib=sr,cs=!1;function fs(){return typeof window<"u"&&typeof window.localStorage<"u"}function gs(e){if(!fs())return null;try{let t=window.localStorage.getItem(e);if(t==="true")return!0;if(t==="false")return!1;return null}catch{return null}}function sb(e,t){if(!fs())return;try{if(e){window.localStorage.setItem(t,"true");return}window.localStorage.removeItem(t)}catch(r){}}function ps(e){if(typeof document>"u")return!1;return document.documentElement.getAttribute(e)==="true"}function lb(){return ps(Ar)||ps(sr)}function mb(){if(typeof window>"u"||typeof window.matchMedia!=="function")return!1;return window.matchMedia(ka).matches}function ho(){return lb()||mb()}function bs(e){if(typeof document>"u")return;if(e){document.documentElement.setAttribute(Ar,"true"),document.documentElement.setAttribute(sr,"true");return}document.documentElement.removeAttribute(Ar),document.documentElement.removeAttribute(sr)}function db(e,t){let r=t?.persist??!0,o=t?.storageKey??Sa;if(bs(e),r)sb(e,o)}function ys(e){if(cs)return;cs=!0;let t=gs(e);if(t===null)return;bs(t)}var ub=()=>!1;function cb(e){if(typeof window>"u")return()=>{return};let t=window.matchMedia(ka);t.addEventListener("change",e);let r=typeof MutationObserver<"u"?new MutationObserver((o)=>{for(let n of o)if(n.type==="attributes"&&(n.attributeName===Ar||n.attributeName===sr)){e();break}}):null;return r?.observe(document.documentElement,{attributes:!0,attributeFilter:[Ar,sr]}),()=>{t.removeEventListener("change",e),r?.disconnect()}}function ge(){return nb(()=>{ys(Sa)},[]),ab(cb,ho,ub)}import{jsxDEV as Je,Fragment as hb}from"react/jsx-dev-runtime";var lr={sm:F.sm,md:F.md,lg:F.lg,full:"full"},yb=160,hs=vs(a("gs-dialog-overlay",Wt)),Ps=vs("gs-dialog-content fixed left-1/2 top-1/2 z-50 grid w-full gap-4 border border-border bg-card p-6 text-foreground shadow-[var(--shadow-xl)] rounded-[var(--radius)]",{variants:{size:{[lr.sm]:"max-w-sm",[lr.md]:"max-w-md",[lr.lg]:"max-w-lg",[lr.full]:"max-w-[calc(100vw-2rem)] max-h-[calc(100vh-2rem)]"}},defaultVariants:{size:lr.md}}),Ms=pb(!1),vb=({children:e,open:t,defaultOpen:r=!1,onOpenChange:o,...n})=>{let[i,s]=Ts(r),l=t!==void 0,d=l?t:i,m=fb((c)=>{if(!l)s(c);o?.(c)},[l,o]);return Je(Ms.Provider,{value:d,children:Je(Le.Root,{open:d,onOpenChange:m,...n,children:e},void 0,!1,void 0,this)},void 0,!1,void 0,this)},Tb=Le.Trigger,zs=Le.Portal,Aa=Br(({className:e,...t},r)=>Je(Le.Overlay,{ref:r,className:a(hs(),e),...t},void 0,!1,void 0,this));Aa.displayName="AlertDialogOverlay";var Ns=Br(({className:e,size:t=lr.sm,showOverlay:r=!0,portal:o=se,portalContainer:n,forceMount:i=!1,"aria-describedby":s,...l},d)=>{let m=gb(Ms),[c,u]=Ts(i||m),g=f(t),v=ge();if(bb(()=>{if(i||m){u(!0);return}let z=setTimeout(()=>{u(!1)},v?0:yb);return()=>{clearTimeout(z)}},[i,m,v]),!(i||m||c))return null;let T=Je(hb,{children:[r?Je(Aa,{forceMount:!0},void 0,!1,void 0,this):null,Je(Le.Content,{ref:d,forceMount:!0,"aria-describedby":s,className:a(Ps({size:g}),e),...l},void 0,!1,void 0,this)]},void 0,!0,void 0,this);if(!o)return T;return Je(zs,{forceMount:!0,container:n??void 0,children:T},void 0,!1,void 0,this)});Ns.displayName="AlertDialogContent";var Ls=({className:e,...t})=>Je("div",{className:a("flex flex-col space-y-2 text-center sm:text-left",e),...t},void 0,!1,void 0,this);Ls.displayName="AlertDialogHeader";var Rs=({className:e,...t})=>Je("div",{className:a("flex flex-col-reverse sm:flex-row sm:justify-end sm:gap-2.5",e),...t},void 0,!1,void 0,this);Rs.displayName="AlertDialogFooter";var xs=Br(({className:e,...t},r)=>Je(Le.Title,{ref:r,className:a("font-semibold text-lg",e),...t},void 0,!1,void 0,this));xs.displayName="AlertDialogTitle";var Cs=Br(({className:e,...t},r)=>Je(Le.Description,{ref:r,className:a("text-muted-foreground text-sm",e),...t},void 0,!1,void 0,this));Cs.displayName="AlertDialogDescription";var ws=Br(({className:e,...t},r)=>Je(Le.Action,{ref:r,className:a(To(),e),...t},void 0,!1,void 0,this));ws.displayName="AlertDialogAction";var Hs=Br(({className:e,...t},r)=>Je(Le.Cancel,{ref:r,className:a(To({variant:"outline"}),"mt-2 sm:mt-0",e),...t},void 0,!1,void 0,this));Hs.displayName="AlertDialogCancel";import*as Ba from"@radix-ui/react-aspect-ratio";import{cva as Pb}from"class-variance-authority";import{forwardRef as Mb}from"react";import{jsxDEV as zb}from"react/jsx-dev-runtime";var ks=Pb("relative overflow-hidden rounded-[calc(var(--radius)-2px)] border border-border/40"),Ss=Mb(({className:e,...t},r)=>zb(Ba.Root,{ref:r,className:a(ks(),e),...t},void 0,!1,void 0,this));Ss.displayName=Ba.Root.displayName;import*as Fr from"@radix-ui/react-avatar";import{cva as Nb}from"class-variance-authority";import{forwardRef as sn}from"react";import{jsxDEV as Ir}from"react/jsx-dev-runtime";var ft={sm:"sm",md:"md",lg:"lg"},As=Nb("relative flex shrink-0 overflow-hidden rounded-full",{variants:{size:{[ft.sm]:"h-7 w-7 text-xs",[ft.md]:"h-10 w-10 text-sm",[ft.lg]:"h-12 w-12 text-base"}},defaultVariants:{size:ft.md}}),Ia=sn(({className:e,size:t=ft.sm,...r},o)=>{let n=f(t);return Ir(Fr.Root,{ref:o,className:a(As({size:n}),e),...r},void 0,!1,void 0,this)});Ia.displayName="Avatar";var Bs=sn(({className:e,...t},r)=>Ir(Fr.Image,{ref:r,className:a("aspect-square h-full w-full object-cover",e),...t},void 0,!1,void 0,this));Bs.displayName="AvatarImage";var Fa=sn(({className:e,...t},r)=>Ir(Fr.Fallback,{ref:r,className:a("flex h-full w-full items-center justify-center rounded-full bg-muted font-medium text-muted-foreground",e),...t},void 0,!1,void 0,this));Fa.displayName="AvatarFallback";var Lb={[ft.sm]:"-space-x-2",[ft.md]:"-space-x-3",[ft.lg]:"-space-x-4"},Is=sn(({className:e,children:t,max:r,size:o=ft.sm,...n},i)=>{let s=f(o),l=Array.isArray(t)?t:[t],d=r?l.slice(0,r):l,m=r?Math.max(0,l.length-r):0;return Ir("div",{ref:i,className:a("flex items-center",Lb[s],e),...n,children:[d,m>0&&Ir(Ia,{size:s,className:"border-2 border-background",children:Ir(Fa,{className:"text-xs",children:["+",m]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});Is.displayName="AvatarGroup";import{Slot as Rb}from"@radix-ui/react-slot";import{cva as xb}from"class-variance-authority";import{X as Fs}from"lucide-react";import{forwardRef as Cb}from"react";import{jsxDEV as mr}from"react/jsx-dev-runtime";var we={default:"default",primary:"primary",success:"success",warning:"warning",error:"error",info:"info",outline:"outline"},_t={sm:"sm",md:"md",lg:"lg",dot:"dot"},Os=xb("group/badge inline-flex items-center justify-center gap-1 whitespace-nowrap rounded-full border font-medium leading-none",{variants:{variant:{[we.default]:"border-border bg-muted text-muted-foreground",[we.primary]:"border-primary/30 bg-primary/10 text-primary",[we.success]:"border-success/30 bg-success/10 text-success",[we.warning]:"border-warning/30 bg-warning/10 text-warning",[we.error]:"border-destructive/30 bg-destructive/10 text-destructive",[we.info]:"border-info/30 bg-info/10 text-info",[we.outline]:"border-border bg-transparent text-foreground"},solid:{true:"",false:""},size:{[_t.sm]:"h-5 px-1.5 text-[11px]",[_t.md]:"h-5 px-2 text-[11px]",[_t.lg]:"h-6 px-2.5 text-xs",[_t.dot]:"h-2 w-2 p-0"}},compoundVariants:[{solid:!0,variant:we.default,className:"border-transparent bg-foreground text-background"},{solid:!0,variant:we.primary,className:"border-primary bg-primary text-primary-foreground"},{solid:!0,variant:we.success,className:"border-success bg-success text-background"},{solid:!0,variant:we.warning,className:"border-warning bg-warning text-background"},{solid:!0,variant:we.error,className:"border-destructive bg-destructive text-destructive-foreground"},{solid:!0,variant:we.info,className:"border-info bg-info text-background"},{solid:!0,variant:we.outline,className:"border-border bg-foreground text-background"}],defaultVariants:{variant:we.default,solid:!1,size:_t.sm}}),Po=Cb(({className:e,variant:t=we.default,size:r=_t.sm,solid:o=!1,pulse:n=!1,removable:i=!1,removeControl:s="button",removeLabel:l="Remove",onRemove:d,onClick:m,children:c,asChild:u=!1,...g},v)=>{let y=f(r),T=Boolean(m),z=y===_t.dot,M=T&&s==="button"?"span":s,p=(x)=>{x.preventDefault(),x.stopPropagation(),d?.(x)},h=(x)=>{if(x.key!=="Enter"&&x.key!==" ")return;x.preventDefault(),x.stopPropagation()},L=a(Os({variant:t,solid:o,size:y}),T&&"cursor-pointer",n&&"animate-pulse",i&&!z&&"pr-1",e),H=a("ml-0.5 inline-flex items-center justify-center rounded-full text-current opacity-60","transition-[color,background-color,border-color,box-shadow,transform,opacity,filter] duration-[var(--motion-duration-medium)] ease-[var(--motion-ease-standard)] hover:opacity-100","size-3.5 group-data-[size=lg]/badge:size-4"),S="size-2.5 group-data-[size=lg]/badge:size-3",B=i&&!z&&M==="button"?mr("button",{type:"button",className:H,onClick:p,"aria-label":l,tabIndex:-1,children:mr(Fs,{className:"size-2.5 group-data-[size=lg]/badge:size-3"},void 0,!1,void 0,this)},void 0,!1,void 0,this):i&&!z?mr("span",{role:"button",className:H,onClick:p,onKeyDown:h,"aria-label":l,tabIndex:-1,children:mr(Fs,{className:"size-2.5 group-data-[size=lg]/badge:size-3"},void 0,!1,void 0,this)},void 0,!1,void 0,this):null;if(u)return mr(Rb,{ref:v,className:L,onClick:m,"data-size":y,...g,children:c},void 0,!1,void 0,this);if(T)return mr("button",{ref:v,className:L,onClick:m,type:"button","data-size":y,...g,children:[!z&&c,B]},void 0,!0,void 0,this);return mr("span",{ref:v,className:L,"data-size":y,...g,children:[!z&&c,B]},void 0,!0,void 0,this)});Po.displayName="Badge";import{Children as wb,cloneElement as Hb,forwardRef as kb,isValidElement as Sb,useCallback as Gs,useEffect as Ab,useLayoutEffect as Bb,useRef as Ib,useState as Fb}from"react";import{jsxDEV as Ws}from"react/jsx-dev-runtime";function Ob(e){let t=[];return wb.forEach(e,(r,o)=>{if(!Sb(r))return;let n=r.key??o;t.push({key:n,element:r,isLeaving:!1})}),t}function Gb(e,t){let r=new Set(t.map((i)=>i.key)),o=new Set(e.map((i)=>i.key)),n=[];for(let i of e)if(r.has(i.key)){let s=t.find((l)=>l.key===i.key);if(s)n.push({...s,isLeaving:!1})}else n.push({...i,isLeaving:!0});for(let i of t)if(!o.has(i.key))n.push(i);return n}function Wb(e,t,r){if(r.current)return r.current=!1,t;return Gb(e,t)}var _b=typeof window<"u"?Bb:Ab,_s=kb(({children:e,className:t,onRemove:r,gap:o="sm"},n)=>{let[i,s]=Fb([]),l=Ib(!0);_b(()=>{let u=Ob(e);s((g)=>Wb(g,u,l))},[e]);let d=Gs((u)=>{s((g)=>g.filter((v)=>v.key!==u))},[]),m=Gs((u)=>{r?.(u)},[r]),c={sm:"gap-1",md:"gap-2",lg:"gap-3"}[o];return Ws("div",{ref:n,className:a("inline-flex flex-wrap items-center",c,t),children:i.map((u)=>{let g={};if(u.element.props.removable&&r)g.onRemove=()=>{m(u.key)};let v=a("inline-flex transition-all duration-200",u.isLeaving&&"pointer-events-none scale-95 opacity-0");return Ws("span",{className:v,onTransitionEnd:u.isLeaving?()=>d(u.key):void 0,children:Hb(u.element,g)},u.key,!1,void 0,this)})},void 0,!1,void 0,this)});_s.displayName="BadgeGroup";import{Slot as Ub}from"@radix-ui/react-slot";import{cva as Or}from"class-variance-authority";import{ChevronRight as Kb,MoreHorizontal as $b}from"lucide-react";import{createContext as Vb,forwardRef as Mo,useContext as Oa}from"react";import{jsxDEV as at}from"react/jsx-dev-runtime";var ye={sm:"sm",md:"md",lg:"lg"},ln=Vb(ye.md),Us=Or("flex flex-wrap items-center break-words text-muted-foreground",{variants:{size:{[ye.sm]:"gap-1 text-xs",[ye.md]:"gap-1.5 text-sm sm:gap-2.5",[ye.lg]:"gap-2 text-base sm:gap-3"}},defaultVariants:{size:ye.md}}),Ks=Or("inline-flex items-center gap-1.5"),$s=Or("transition-[color,background-color,border-color,box-shadow,transform,opacity,filter] duration-[var(--motion-duration-medium)] ease-[var(--motion-ease-standard)] hover:text-foreground focus-visible:outline-none focus-visible:text-foreground"),Vs=Or("font-normal text-foreground"),Ys=Or("",{variants:{size:{[ye.sm]:"[&>svg]:size-3",[ye.md]:"[&>svg]:size-3.5",[ye.lg]:"[&>svg]:size-4"}},defaultVariants:{size:ye.md}}),Xs=Or("flex items-center justify-center",{variants:{size:{[ye.sm]:"h-7 w-7 [&>svg]:size-3.5",[ye.md]:"h-9 w-9 [&>svg]:size-4",[ye.lg]:"h-10 w-10 [&>svg]:size-5"}},defaultVariants:{size:ye.md}}),mn=Mo(({size:e=ye.sm,...t},r)=>{let o=f(e)??ye.md;return at(ln.Provider,{value:o,children:at("nav",{ref:r,"aria-label":"breadcrumb",...t},void 0,!1,void 0,this)},void 0,!1,void 0,this)});mn.displayName="Breadcrumb";var dn=Mo(({className:e,...t},r)=>{let o=Oa(ln);return at("ol",{ref:r,className:a(Us({size:o}),e),...t},void 0,!1,void 0,this)});dn.displayName="BreadcrumbList";var zo=Mo(({className:e,...t},r)=>at("li",{ref:r,className:a(Ks(),e),...t},void 0,!1,void 0,this));zo.displayName="BreadcrumbItem";var No=Mo(({asChild:e,className:t,...r},o)=>{return at(e?Ub:"a",{ref:o,className:a($s(),t),...r},void 0,!1,void 0,this)});No.displayName="BreadcrumbLink";var un=Mo(({className:e,...t},r)=>at("span",{ref:r,role:"link",tabIndex:0,"aria-disabled":"true","aria-current":"page",className:a(Vs(),e),...t},void 0,!1,void 0,this));un.displayName="BreadcrumbPage";var Lo=({children:e,className:t,...r})=>{let o=Oa(ln),n={[ye.sm]:"size-3",[ye.md]:"size-3.5",[ye.lg]:"size-4"};return at("li",{role:"presentation","aria-hidden":"true",className:a(Ys({size:o}),t),...r,children:e??at(Kb,{className:n[o]},void 0,!1,void 0,this)},void 0,!1,void 0,this)};Lo.displayName="BreadcrumbSeparator";var cn=({className:e,...t})=>{let r=Oa(ln);return at("span",{role:"presentation","aria-hidden":"true",className:a(Xs({size:r}),e),...t,children:[at($b,{},void 0,!1,void 0,this),at("span",{className:"sr-only",children:"More"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)};cn.displayName="BreadcrumbEllipsis";import{createContext as Yb,Fragment as Js,useCallback as Xb,useContext as Ua,useEffect as Jb,useMemo as qs,useRef as qb,useState as Qb}from"react";import{jsxDEV as Ue}from"react/jsx-dev-runtime";var pn=Yb(null),Zb=({children:e})=>{let[t,r]=Qb([]),o=qs(()=>({items:t,setItems:r}),[t]);return Ue(pn.Provider,{value:o,children:e},void 0,!1,void 0,this)},Eb=()=>{let e=Ua(pn);if(!e)throw Error("useBreadcrumbStore must be used within BreadcrumbStoreProvider");return{items:e.items}},Db=({items:e})=>{let t=Ua(pn);if(!t)throw Error("SetBreadcrumbs must be used within BreadcrumbStoreProvider");let r=qb("");return Jb(()=>{let o=Ga(e),n=Wa(o);if(n===r.current)return;r.current=n,t.setItems(o)}),null},jb=({size:e,className:t,collapse:r,renderLink:o})=>{let n=Ua(pn);if(!n)throw Error("BreadcrumbDisplay must be used within BreadcrumbStoreProvider");let{items:i}=n,s=qs(()=>_a(i,r),[i,r]),l=Xb((m)=>{if(m.current)return Ue(un,{children:m.label},void 0,!1,void 0,this);if(m.href){if(o)return Ue(No,{asChild:!0,children:o({href:m.href,children:m.label,className:a(m.disabled&&"pointer-events-none opacity-50")})},void 0,!1,void 0,this);return Ue(No,{href:m.href,"aria-disabled":m.disabled||void 0,className:a(m.disabled&&"pointer-events-none opacity-50"),children:m.label},void 0,!1,void 0,this)}return Ue("span",{className:"text-muted-foreground",children:m.label},void 0,!1,void 0,this)},[o]);if(i.length===0)return null;let{visibleItems:d}=s;return Ue(mn,{size:e,className:t,children:Ue(dn,{children:d.map((m,c)=>{let u=c===d.length-1;if(m.type==="ellipsis")return Ue(Js,{children:[Ue(zo,{children:Ue(cn,{},void 0,!1,void 0,this)},void 0,!1,void 0,this),!u&&Ue(Lo,{},void 0,!1,void 0,this)]},m.id,!0,void 0,this);return Ue(Js,{children:[Ue(zo,{children:l(m.item)},void 0,!1,void 0,this),!u&&Ue(Lo,{},void 0,!1,void 0,this)]},m.item.id,!0,void 0,this)})},void 0,!1,void 0,this)},void 0,!1,void 0,this)};import{cva as ty}from"class-variance-authority";import{forwardRef as ry}from"react";import{jsxDEV as oy}from"react/jsx-dev-runtime";var Ro={horizontal:"horizontal",vertical:"vertical"},Qs=ty("inline-flex items-stretch",{variants:{orientation:{[Ro.horizontal]:"flex-row",[Ro.vertical]:"flex-col"},attached:{true:"gap-0 [&>*:not(:first-child)]:rounded-l-none [&>*:not(:last-child)]:rounded-r-none",false:"gap-2"}},defaultVariants:{orientation:Ro.horizontal,attached:!1}}),Zs=ry(({className:e,orientation:t=Ro.horizontal,attached:r=!1,fullWidth:o=!1,...n},i)=>oy("div",{ref:i,className:a(Qs({orientation:t,attached:r}),o&&"w-full",e),...n},void 0,!1,void 0,this));Zs.displayName="ButtonGroup";import{cva as Ut}from"class-variance-authority";import{forwardRef as ny,useCallback as Gr,useEffect as ay,useMemo as Es,useState as Ds}from"react";import{jsxDEV as qe}from"react/jsx-dev-runtime";var q={sm:"sm",md:"md",lg:"lg"},el=Ut("flex flex-col rounded-xl border border-border bg-card/95 shadow-[var(--shadow-sm)] transition-[color,background-color,border-color,box-shadow] duration-150",{variants:{size:{[q.sm]:"p-3 text-sm",[q.md]:"p-4 text-sm",[q.lg]:"p-5 text-base"}},defaultVariants:{size:q.sm}}),tl=Ut("mb-3 flex items-center justify-between",{variants:{size:{[q.sm]:"gap-1",[q.md]:"gap-2",[q.lg]:"gap-3"}},defaultVariants:{size:q.sm}}),rl=Ut("font-semibold text-foreground",{variants:{size:{[q.sm]:"text-sm",[q.md]:"text-base",[q.lg]:"text-lg"}},defaultVariants:{size:q.sm}}),Ka=Ut(["inline-flex items-center justify-center rounded-md border border-transparent","text-muted-foreground hover:border-border/70 hover:bg-accent/60 hover:text-foreground","active:scale-[0.98]","transition-[color,background-color,border-color,box-shadow,transform,opacity] duration-150","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2","disabled:pointer-events-none disabled:cursor-not-allowed disabled:border-transparent disabled:bg-muted/40 disabled:text-muted-foreground/70"],{variants:{size:{[q.sm]:"size-7",[q.md]:"size-8",[q.lg]:"size-10"}},defaultVariants:{size:q.sm}}),ol=Ut("grid grid-cols-7",{variants:{size:{[q.sm]:"gap-0",[q.md]:"gap-0",[q.lg]:"gap-0"}},defaultVariants:{size:q.sm}}),nl=Ut("text-center font-semibold uppercase tracking-wide text-muted-foreground",{variants:{size:{[q.sm]:"py-1 text-[11px]",[q.md]:"py-1.5 text-xs",[q.lg]:"py-2 text-sm"}},defaultVariants:{size:q.sm}}),al=Ut(["inline-flex items-center justify-center rounded-md border border-transparent font-medium","transition-[color,background-color,border-color,box-shadow,transform,opacity] duration-150","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-1","active:scale-[0.98]"],{variants:{size:{[q.sm]:"size-7 text-xs",[q.md]:"size-9 text-sm",[q.lg]:"size-10 text-base"},state:{default:"cursor-pointer text-foreground hover:border-border/70 hover:bg-accent/60",selected:"border-primary/35 bg-primary text-primary-foreground shadow-[var(--glow-brand-sm)] hover:bg-primary/90",today:"border-primary/30 bg-primary/10 text-primary",disabled:"cursor-not-allowed border-transparent bg-muted/40 text-muted-foreground/60",outside:"",rangeStart:"cursor-pointer rounded-r-none border-primary/35 bg-primary text-primary-foreground hover:bg-primary/90",rangeEnd:"cursor-pointer rounded-l-none border-primary/35 bg-primary text-primary-foreground hover:bg-primary/90",range:"cursor-pointer rounded-none border-transparent bg-primary/12 text-primary hover:bg-primary/20"}},defaultVariants:{size:q.sm,state:"default"}}),iy=Ut("rounded-md border border-transparent",{variants:{size:{[q.sm]:"size-7",[q.md]:"size-9",[q.lg]:"size-10"}},defaultVariants:{size:q.sm}}),js=["Su","Mo","Tu","We","Th","Fr","Sa"],sy=["January","February","March","April","May","June","July","August","September","October","November","December"],Ct=(e)=>new Date(e.getFullYear(),e.getMonth(),e.getDate()),Wr=(e,t)=>{return e.getDate()===t.getDate()&&e.getMonth()===t.getMonth()&&e.getFullYear()===t.getFullYear()},il=ny(({className:e,size:t="sm",cellSize:r,mode:o="single",value:n,defaultValue:i,onChange:s,rangeValue:l,onRangeChange:d,viewMonth:m,onViewMonthChange:c,minDate:u,maxDate:g,disabledDates:v=[],weekStartsOn:y=1,highlightToday:T=!0,...z},M)=>{let p=f(t)??q.md,h=f(r??p)??p,[L,H]=Ds(n??i??null),[S,B]=Ds(n??i??new Date),x=m??S,Y=Gr((b)=>{if(c){let P=typeof b==="function"?b(m??S):b;c(P)}else B((P)=>{return typeof b==="function"?b(P):b})},[m,S,c]),K=n!==void 0?n:L,X=u?Ct(u):null,j=g?Ct(g):null;ay(()=>{if(n!==void 0){if(H(n??null),n&&!m)B(n)}},[n,m]);let ie=Gr((b,P)=>{return(new Date(b,P,1).getDay()-y+7)%7},[y]),V=Es(()=>{let b=x.getFullYear(),P=x.getMonth(),C=ie(b,P),oe=new Date(b,P+1,0).getDate(),_=[];for(let G=0;G<C;G+=1)_.push({key:`leading-${b}-${P}-${G}`,date:null});for(let G=1;G<=oe;G+=1)_.push({key:`day-${b}-${P}-${G}`,date:new Date(b,P,G)});let Ce=(7-_.length%7)%7;for(let G=0;G<Ce;G+=1)_.push({key:`trailing-${b}-${P}-${G}`,date:null});return _},[x,ie]),re=Gr((b)=>{let P=Ct(b);if(X&&P<X)return!0;if(j&&P>j)return!0;return v.some((C)=>Wr(P,Ct(C)))},[X,j,v]),k=Gr((b)=>{if(re(b))return"disabled";if(o==="range"&&l){let{from:P,to:C}=l;if(P&&Wr(b,P))return"rangeStart";if(C&&Wr(b,C))return"rangeEnd";if(P&&C){let oe=Ct(b),_=Ct(P),Ce=Ct(C);if(oe>_&&oe<Ce)return"range"}}if(o==="single"&&K&&Wr(b,K))return"selected";if(T&&Wr(b,new Date))return"today";return"default"},[K,T,re,o,l]),Z=Gr((b)=>{if(re(b))return;let P=new Date(b);if(o==="range"){if(!l?.from||l.from&&l.to)d?.({from:P,to:void 0});else{let C=Ct(l.from);if(Ct(P)<C)d?.({from:P,to:l.from});else d?.({from:l.from,to:P})}return}if(n===void 0)H(P);s?.(P)},[re,o,s,d,l,n]),R=Gr((b)=>{Y((P)=>{let C=new Date(P);return C.setMonth(C.getMonth()+b),C})},[Y]),W=Es(()=>{return[...js.slice(y),...js.slice(0,y)]},[y]);return qe("div",{ref:M,className:a(el({size:p}),e),...z,children:[qe("div",{className:a(tl({size:p})),children:[qe("button",{type:"button",onClick:()=>R(-1),className:a(Ka({size:p})),"aria-label":"Previous month",children:qe("svg",{className:"size-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:qe("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 19l-7-7 7-7"},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),qe("span",{className:a(rl({size:p})),children:[sy[x.getMonth()]," ",x.getFullYear()]},void 0,!0,void 0,this),qe("button",{type:"button",onClick:()=>R(1),className:a(Ka({size:p})),"aria-label":"Next month",children:qe("svg",{className:"size-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:qe("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 5l7 7-7 7"},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),qe("div",{className:a(ol({size:p})),children:[W.map((b)=>qe("div",{className:a(nl({size:h})),children:b},b,!1,void 0,this)),V.map((b)=>{if(!b.date)return qe("div",{"aria-hidden":"true",className:a(iy({size:h}))},b.key,!1,void 0,this);let P=b.date,C=k(P);return qe("button",{type:"button",onClick:()=>Z(P),disabled:C==="disabled",className:a(al({size:h,state:C})),children:P.getDate()},b.key,!1,void 0,this)})]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)});il.displayName="Calendar";import{Slot as _r}from"@radix-ui/react-slot";import{cva as ly}from"class-variance-authority";import{forwardRef as Ur}from"react";import{jsxDEV as Kr}from"react/jsx-dev-runtime";var fn={default:"default",muted:"muted",danger:"danger"},sl=ly("transition-[color,background-color,border-color,box-shadow,transform,opacity,filter] duration-[var(--motion-duration-medium)] ease-[var(--motion-ease-standard)] relative overflow-hidden rounded-[var(--radius)] border bg-card text-card-foreground shadow-[var(--shadow-sm)]",{variants:{variant:{[fn.default]:"border-border",[fn.muted]:"border-border bg-muted/70",[fn.danger]:"border-destructive/30 bg-destructive/[0.06]"}},defaultVariants:{variant:fn.default}}),ll=Ur(({asChild:e=!1,className:t,variant:r,...o},n)=>{return Kr(e?_r:"div",{ref:n,className:a(sl({variant:r}),t),...o},void 0,!1,void 0,this)});ll.displayName="Card";var ml=Ur(({asChild:e=!1,className:t,...r},o)=>{return Kr(e?_r:"div",{ref:o,className:a("flex flex-col gap-1.5 border-border border-b p-4",t),...r},void 0,!1,void 0,this)});ml.displayName="CardHeader";var dl=Ur(({asChild:e=!1,className:t,...r},o)=>{return Kr(e?_r:"div",{ref:o,className:a("p-4",t),...r},void 0,!1,void 0,this)});dl.displayName="CardContent";var ul=Ur(({asChild:e=!1,className:t,...r},o)=>{return Kr(e?_r:"div",{ref:o,className:a("flex items-center border-border border-t p-4",t),...r},void 0,!1,void 0,this)});ul.displayName="CardFooter";var cl=Ur(({asChild:e=!1,className:t,...r},o)=>{return Kr(e?_r:"h3",{ref:o,className:a("font-semibold text-base leading-none tracking-tight",t),...r},void 0,!1,void 0,this)});cl.displayName="CardTitle";var pl=Ur(({asChild:e=!1,className:t,...r},o)=>{return Kr(e?_r:"p",{ref:o,className:a("text-muted-foreground text-sm",t),...r},void 0,!1,void 0,this)});pl.displayName="CardDescription";import*as bn from"@radix-ui/react-checkbox";import{cva as my}from"class-variance-authority";import{Check as dy,Minus as uy}from"lucide-react";import{forwardRef as cy}from"react";import{jsxDEV as gn}from"react/jsx-dev-runtime";var wt={sm:"sm",md:"md",lg:"lg"},$r={default:"default",error:"error",success:"success"},gl=my("transition-[color,background-color,border-color,box-shadow,transform,opacity,filter] duration-[var(--motion-duration-medium)] ease-[var(--motion-ease-standard)] inline-flex shrink-0 items-center justify-center rounded border border-border bg-background text-foreground enabled:active:scale-[0.94] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background data-[state=checked]:border-primary data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground data-[state=indeterminate]:border-primary data-[state=indeterminate]:bg-primary data-[state=indeterminate]:text-primary-foreground disabled:cursor-not-allowed disabled:border-border disabled:bg-muted/45 disabled:text-muted-foreground",{variants:{size:{[wt.sm]:"h-4 w-4",[wt.md]:"h-5 w-5",[wt.lg]:"h-6 w-6"},status:{[$r.default]:"enabled:hover:border-primary/70",[$r.error]:"enabled:hover:border-destructive/70 focus-visible:ring-destructive data-[state=checked]:border-destructive data-[state=checked]:bg-destructive data-[state=checked]:text-destructive-foreground data-[state=indeterminate]:border-destructive data-[state=indeterminate]:bg-destructive data-[state=indeterminate]:text-destructive-foreground",[$r.success]:"enabled:hover:border-success/70 focus-visible:ring-success data-[state=checked]:border-success data-[state=checked]:bg-success data-[state=checked]:text-success-foreground data-[state=indeterminate]:border-success data-[state=indeterminate]:bg-success data-[state=indeterminate]:text-success-foreground"}},defaultVariants:{size:wt.md,status:$r.default}}),fl={[wt.sm]:"size-3.5",[wt.md]:"size-3.5",[wt.lg]:"size-4"},bl=cy(({className:e,size:t=wt.sm,status:r=$r.default,checked:o,disabled:n,...i},s)=>{let l=f(t);return gn(bn.Root,{ref:s,checked:o,disabled:n,className:a(gl({size:l,status:r}),e),...i,children:gn(bn.Indicator,{className:"gs-checkbox-indicator flex items-center justify-center text-current",children:o==="indeterminate"?gn(uy,{className:fl[l]},void 0,!1,void 0,this):gn(dy,{className:fl[l]},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)});bl.displayName="Checkbox";import{cva as Kt}from"class-variance-authority";import{forwardRef as py,useCallback as fy,useState as gy}from"react";import{jsxDEV as Oe,Fragment as yl}from"react/jsx-dev-runtime";var D={sm:"sm",md:"md",lg:"lg"},$a={default:"default",ghost:"ghost"},vl=Kt("relative rounded-lg overflow-hidden font-mono",{variants:{size:{[D.sm]:"text-xs",[D.md]:"text-sm",[D.lg]:"text-base"},variant:{[$a.default]:"bg-muted border border-border",[$a.ghost]:"bg-transparent"}},defaultVariants:{size:D.sm,variant:$a.default}}),Tl=Kt("flex items-center justify-between border-b border-border bg-muted",{variants:{size:{[D.sm]:"px-2.5 py-1.5 text-xs",[D.md]:"px-4 py-2 text-sm",[D.lg]:"px-5 py-2.5 text-base"}},defaultVariants:{size:D.sm}}),hl=Kt("text-muted-foreground font-medium",{variants:{size:{[D.sm]:"text-[11px]",[D.md]:"text-xs",[D.lg]:"text-sm"}},defaultVariants:{size:D.sm}}),Pl=Kt(["inline-flex items-center gap-1.5 rounded-md font-medium","text-muted-foreground hover:text-foreground hover:bg-muted","transition-all duration-150","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary"],{variants:{size:{[D.sm]:"px-2 py-1 text-xs",[D.md]:"px-2.5 py-1 text-xs",[D.lg]:"px-3 py-1.5 text-sm"},copied:{true:"text-success",false:""}},defaultVariants:{size:D.sm,copied:!1}}),Ml=Kt("overflow-x-auto",{variants:{size:{[D.sm]:"p-2.5",[D.md]:"p-4",[D.lg]:"p-5"}},defaultVariants:{size:D.sm}}),zl=Kt("text-foreground",{variants:{size:{[D.sm]:"",[D.md]:"",[D.lg]:""},showLineNumbers:{true:"",false:""}},defaultVariants:{size:D.sm,showLineNumbers:!1}}),Nl=Kt("block",{variants:{size:{[D.sm]:"min-h-[1.25rem]",[D.md]:"min-h-[1.5rem]",[D.lg]:"min-h-[1.75rem]"},highlighted:{true:"bg-primary/10 -mx-4 px-4",false:""}},defaultVariants:{size:D.sm,highlighted:!1}}),Ll=Kt("inline-block text-right text-muted-foreground select-none",{variants:{size:{[D.sm]:"w-6 mr-2 text-[11px]",[D.md]:"w-8 mr-4 text-xs",[D.lg]:"w-10 mr-5 text-sm"}},defaultVariants:{size:D.sm}}),Rl=py(({className:e,code:t,language:r,showLineNumbers:o=!1,highlightedLines:n=[],showCopy:i=!0,size:s="sm",variant:l="default",onCopy:d,...m},c)=>{let u=f(s),[g,v]=gy(!1),y=fy(async()=>{try{await navigator.clipboard.writeText(t),v(!0),d?.(t),setTimeout(()=>v(!1),2000)}catch(M){}},[t,d]),T=t.split(`
|
|
3
|
-
`),
|
|
4
|
-
`]},`line-${String(p)}`,!0,void 0,this))},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});Rl.displayName="CodeBlock";import*as Vr from"@radix-ui/react-collapsible";import{cva as by}from"class-variance-authority";import{forwardRef as yy}from"react";import{jsxDEV as hy}from"react/jsx-dev-runtime";var xl=by("gs-collapsible-content overflow-hidden"),vy=Vr.Root,Ty=Vr.CollapsibleTrigger,Cl=yy(({className:e,...t},r)=>hy(Vr.CollapsibleContent,{ref:r,className:a(xl(),e),...t},void 0,!1,void 0,this));Cl.displayName="CollapsibleContent";import*as $t from"@radix-ui/react-dialog";import{cva as it}from"class-variance-authority";import{createContext as zy,forwardRef as gt,useCallback as Hl,useContext as Ny,useId as Ly,useLayoutEffect as Ry,useMemo as xy,useState as Xa}from"react";import{useCallback as Py,useEffect as My,useRef as wl}from"react";function xo(e,t,r={}){let{enabled:o=!0,preventDefault:n=!0,stopPropagation:i=!1,target:s="global"}=r,l=wl(t);l.current=t;let d=wl([]),m=Array.isArray(e)?e:[e];d.current=m.map((u)=>({combo:u,def:Va(u)}));let c=Py((u)=>{if(!o)return;for(let{combo:g,def:v}of d.current)if(Ya(u,v)){if(n)u.preventDefault();if(i)u.stopPropagation();l.current(u,g);return}},[o,n,i]);My(()=>{if(!o)return;let u=s==="global"?document:s.current;if(!u)return;return u.addEventListener("keydown",c),()=>{u.removeEventListener("keydown",c)}},[o,c,s])}import{jsxDEV as ve,Fragment as wy}from"react/jsx-dev-runtime";var yn={sm:F.sm,md:F.md,lg:F.lg},kl=it(["gs-dialog-content fixed left-1/2 top-1/2 z-50","w-full border border-border rounded-xl bg-background","overflow-hidden shadow-[var(--shadow-xl)]"],{variants:{size:{[yn.sm]:"max-w-sm",[yn.md]:"max-w-lg",[yn.lg]:"max-w-2xl"}},defaultVariants:{size:yn.md}}),Sl=it(["gs-dialog-overlay fixed inset-0 z-50 bg-black/50 backdrop-blur-sm"]),Al=it(["flex h-12 w-full bg-transparent px-4 py-3","text-base text-foreground placeholder:text-muted-foreground","border-b border-border","focus:outline-none","disabled:cursor-not-allowed disabled:border-transparent disabled:bg-muted/40 disabled:text-muted-foreground/70"]),Bl=it(["max-h-[300px] overflow-y-auto overflow-x-hidden p-2"]),Il=it(["py-6 text-center text-sm text-muted-foreground"]),Fl=it(["overflow-hidden"]),Ol=it(["px-2 py-1.5 text-xs font-medium text-muted-foreground"]),vn={default:"default",danger:"danger"},Gl=it(["relative flex items-center gap-2 rounded-lg px-2 py-2","text-sm cursor-pointer select-none","outline-none transition-none","data-[disabled=true]:pointer-events-none data-[disabled=true]:cursor-not-allowed data-[disabled=true]:border-transparent data-[disabled=true]:bg-muted/40 data-[disabled=true]:text-muted-foreground/70"],{variants:{selected:{true:"bg-primary/10 text-primary",false:"hover:bg-accent hover:text-accent-foreground"},variant:{[vn.default]:"text-foreground",[vn.danger]:"text-destructive hover:bg-destructive/10 focus:bg-destructive/10 focus:text-destructive"}},defaultVariants:{selected:!1,variant:vn.default}}),Wl=it(["-mx-1 my-1 h-px bg-border"]),_l=it(["ml-auto text-xs tracking-widest text-muted-foreground"]),Ul=it(["flex items-center justify-center py-6"]),Kl=zy(null),Tn=()=>{let e=Ny(Kl);if(!e)throw Error("useCommand must be used within a Command");return e},Ja=gt(({className:e,children:t,loop:r=!0,...o},n)=>{let[i,s]=Xa(""),[l,d]=Xa(0),[m,c]=Xa({}),u=Hl((y,T)=>{c((z)=>{if(z[y]===T)return z;return{...z,[y]:T}})},[]),g=Hl((y)=>{c((T)=>{if(!(y in T))return T;let z={...T};return delete z[y],z})},[]),v=xy(()=>{return Object.values(m).filter(Boolean).length},[m]);return ve(Kl.Provider,{value:{search:i,setSearch:s,selectedIndex:l,setSelectedIndex:d,visibleItemsCount:v,setItemVisible:u,removeItem:g},children:ve("div",{ref:n,className:a("flex flex-col overflow-hidden rounded-xl bg-card",e),...o,children:t},void 0,!1,void 0,this)},void 0,!1,void 0,this)});Ja.displayName="Command";var $l=gt(({children:e,size:t,showOverlay:r=!0,portal:o=se,portalContainer:n,forceMount:i=!1,...s},l)=>{let d=ve(wy,{children:[r?ve($t.Overlay,{forceMount:i?!0:void 0,className:a(Sl())},void 0,!1,void 0,this):null,ve($t.Content,{ref:l,forceMount:i?!0:void 0,className:a(kl({size:t})),children:ve(Ja,{children:e},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this);return ve($t.Root,{...s,children:o?ve($t.Portal,{forceMount:i?!0:void 0,container:n??void 0,children:d},void 0,!1,void 0,this):d},void 0,!1,void 0,this)});$l.displayName="CommandDialog";var Vl=gt(({className:e,icon:t,...r},o)=>{let{search:n,setSearch:i,setSelectedIndex:s}=Tn();return ve("div",{className:"flex items-center border-border border-b px-3",children:[t&&ve("span",{className:"mr-2 shrink-0 text-muted-foreground",children:t},void 0,!1,void 0,this),ve("input",{ref:o,value:n,onChange:(l)=>{i(l.target.value),s(0)},className:a(Al(),e),...r},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});Vl.displayName="CommandInput";var Yl=gt(({className:e,children:t,...r},o)=>{return ve("div",{ref:o,className:a(Bl(),e),...r,children:t},void 0,!1,void 0,this)});Yl.displayName="CommandList";var Xl=gt(({className:e,children:t="No results found.",...r},o)=>{let{visibleItemsCount:n}=Tn();if(n>0)return null;return ve("div",{ref:o,className:a(Il(),e),...r,children:t},void 0,!1,void 0,this)});Xl.displayName="CommandEmpty";var Jl=gt(({className:e,heading:t,children:r,...o},n)=>{return ve("div",{ref:n,className:a(Fl(),e),...o,children:[t&&ve("div",{className:a(Ol()),children:t},void 0,!1,void 0,this),r]},void 0,!0,void 0,this)});Jl.displayName="CommandGroup";var ql=gt(({className:e,disabled:t,selected:r=!1,onSelect:o,children:n,keywords:i,variant:s,...l},d)=>{let{search:m,removeItem:c,setItemVisible:u}=Tn(),g=Ly(),y=(()=>{if(!m)return!0;let T=m.toLowerCase();if((typeof n==="string"?n.toLowerCase():"").includes(T))return!0;if(i?.some((M)=>M.toLowerCase().includes(T)))return!0;return!1})();if(Ry(()=>{return u(g,y),()=>{c(g)}},[y,g,c,u]),!y)return null;return ve("div",{ref:d,role:"option","aria-selected":r,"aria-disabled":t,"data-disabled":t,"data-selected":r,onClick:()=>!t&&o?.(),onKeyDown:(T)=>{if(T.key==="Enter"&&!t)T.preventDefault(),o?.()},tabIndex:t?-1:0,className:a(Gl({selected:r,variant:s}),e),...l,children:n},void 0,!1,void 0,this)});ql.displayName="CommandItem";var Ql=gt(({className:e,...t},r)=>{return ve("div",{ref:r,className:a(Wl(),e),...t},void 0,!1,void 0,this)});Ql.displayName="CommandSeparator";var Zl=gt(({className:e,children:t,...r},o)=>{return ve("span",{ref:o,className:a(_l(),e),...r,children:t},void 0,!1,void 0,this)});Zl.displayName="CommandShortcut";var El=gt(({className:e,children:t,...r},o)=>{return ve("div",{ref:o,className:a(Ul(),e),...r,children:t},void 0,!1,void 0,this)});El.displayName="CommandLoading";var Cy=({key:e,modifier:t="meta",callback:r})=>{xo(`${t}+${e}`,r)};import*as I from"@radix-ui/react-context-menu";import{cva as dr}from"class-variance-authority";import{Check as Hy,ChevronRight as ky,Circle as Sy}from"lucide-react";import{createContext as Dl,forwardRef as Vt,useContext as ur}from"react";import{jsxDEV as ce}from"react/jsx-dev-runtime";var J={sm:F.sm,md:F.md,lg:F.lg},hn={default:"default",danger:"danger"},cr=Dl(J.md),jl=Dl(void 0),qa=dr("z-50 min-w-[8rem] overflow-hidden rounded-[var(--radius)] border border-border/70 bg-popover p-1 text-popover-foreground shadow-[var(--shadow-md)] gs-float-content origin-[var(--radix-context-menu-content-transform-origin)]"),Qa=dr("relative flex cursor-pointer select-none items-center rounded-md outline-none transition-none data-[disabled]:pointer-events-none data-[disabled]:text-muted-foreground/50 data-[disabled]:cursor-not-allowed [&_svg]:pointer-events-none [&_svg]:shrink-0",{variants:{size:{[J.sm]:"h-7 gap-1.5 px-2 text-xs [&_svg]:size-3.5",[J.md]:"h-8 gap-2 px-2 text-sm [&_svg]:size-4",[J.lg]:"h-9 gap-2 px-2.5 text-sm [&_svg]:size-4"},variant:{[hn.default]:"hover:bg-accent/80 focus:bg-accent focus:text-accent-foreground",[hn.danger]:"text-destructive hover:bg-destructive/10 focus:bg-destructive/10 focus:text-destructive"}},defaultVariants:{size:J.sm,variant:hn.default}}),em=dr("relative flex cursor-pointer select-none items-center rounded-md outline-none transition-none hover:bg-accent/80 focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:text-muted-foreground/50 data-[disabled]:cursor-not-allowed",{variants:{size:{[J.sm]:"h-7 pl-7 pr-2 text-xs",[J.md]:"h-8 pl-8 pr-2 text-sm",[J.lg]:"h-9 pl-8 pr-2.5 text-sm"}},defaultVariants:{size:J.sm}}),tm=dr("relative flex cursor-pointer select-none items-center rounded-md outline-none transition-none hover:bg-accent/80 focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:text-muted-foreground/50 data-[disabled]:cursor-not-allowed",{variants:{size:{[J.sm]:"h-7 pl-7 pr-2 text-xs",[J.md]:"h-8 pl-8 pr-2 text-sm",[J.lg]:"h-9 pl-8 pr-2.5 text-sm"}},defaultVariants:{size:J.sm}}),rm=dr("font-semibold text-muted-foreground",{variants:{size:{[J.sm]:"px-2 py-1 text-[11px]",[J.md]:"px-2 py-1.5 text-xs",[J.lg]:"px-2.5 py-1.5 text-xs"}},defaultVariants:{size:J.sm}}),om=dr("-mx-1 my-1 h-px bg-border/50"),nm=dr("ml-auto tracking-widest text-muted-foreground/70",{variants:{size:{[J.sm]:"text-[11px]",[J.md]:"text-xs",[J.lg]:"text-xs"}},defaultVariants:{size:J.sm}}),am={[J.sm]:"absolute left-2 flex size-3.5 items-center justify-center",[J.md]:"absolute left-2 flex size-3.5 items-center justify-center",[J.lg]:"absolute left-2.5 flex size-4 items-center justify-center"},Ay={[J.sm]:"size-3",[J.md]:"size-3.5",[J.lg]:"size-4"},By={[J.sm]:"size-1.5 fill-current",[J.md]:"size-2 fill-current",[J.lg]:"size-2.5 fill-current"},im=({size:e,...t})=>{let r=f(e??J.sm),o=e===void 0?void 0:r;return ce(jl.Provider,{value:o,children:ce(I.Root,{...t},void 0,!1,void 0,this)},void 0,!1,void 0,this)};im.displayName=I.Root.displayName;var Iy=I.Trigger,Fy=I.Group,Oy=I.Portal,Gy=I.Sub,Wy=I.RadioGroup,sm=Vt(({className:e,inset:t,children:r,...o},n)=>{let i=ur(cr),s=f(i);return ce(I.SubTrigger,{ref:n,className:a(Qa({size:s}),"data-[state=open]:bg-accent",t&&"pl-8",e),...o,children:[r,ce(ky,{className:"ml-auto"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});sm.displayName=I.SubTrigger.displayName;var lm=Vt(({className:e,sideOffset:t=nt,portal:r=se,portalContainer:o,...n},i)=>{let s=ce(I.SubContent,{ref:i,sideOffset:t,className:a(qa(),e),...n},void 0,!1,void 0,this);if(!r)return s;return ce(I.Portal,{container:o??void 0,children:s},void 0,!1,void 0,this)});lm.displayName=I.SubContent.displayName;var mm=Vt(({className:e,size:t,portal:r=se,portalContainer:o,...n},i)=>{let s=ur(jl),l=f(t??s??J.md),d=ce(I.Content,{ref:i,className:a(qa(),e),...n},void 0,!1,void 0,this);return ce(cr.Provider,{value:l,children:r?ce(I.Portal,{container:o??void 0,children:d},void 0,!1,void 0,this):d},void 0,!1,void 0,this)});mm.displayName=I.Content.displayName;var dm=Vt(({className:e,inset:t,variant:r,...o},n)=>{let i=ur(cr),s=f(i);return ce(I.Item,{ref:n,className:a(Qa({size:s,variant:r}),t&&"pl-8",e),...o},void 0,!1,void 0,this)});dm.displayName=I.Item.displayName;var um=Vt(({className:e,children:t,checked:r,...o},n)=>{let i=ur(cr),s=f(i)??J.md;return ce(I.CheckboxItem,{ref:n,className:a(em({size:s}),e),checked:r,...o,children:[ce("span",{className:am[s],children:ce(I.ItemIndicator,{children:ce(Hy,{className:Ay[s]},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),t]},void 0,!0,void 0,this)});um.displayName=I.CheckboxItem.displayName;var cm=Vt(({className:e,children:t,...r},o)=>{let n=ur(cr),i=f(n)??J.md;return ce(I.RadioItem,{ref:o,className:a(tm({size:i}),e),...r,children:[ce("span",{className:am[i],children:ce(I.ItemIndicator,{children:ce(Sy,{className:By[i]},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),t]},void 0,!0,void 0,this)});cm.displayName=I.RadioItem.displayName;var pm=Vt(({className:e,inset:t,...r},o)=>{let n=ur(cr),i=f(n);return ce(I.Label,{ref:o,className:a(rm({size:i}),t&&"pl-8",e),...r},void 0,!1,void 0,this)});pm.displayName=I.Label.displayName;var fm=Vt(({className:e,...t},r)=>ce(I.Separator,{ref:r,className:a(om(),e),...t},void 0,!1,void 0,this));fm.displayName=I.Separator.displayName;var gm=({className:e,...t})=>{let r=ur(cr),o=f(r);return ce("span",{className:a(nm({size:o}),e),...t},void 0,!1,void 0,this)};gm.displayName="ContextMenuShortcut";import*as Re from"@radix-ui/react-dialog";import{cva as _y}from"class-variance-authority";import{X as Uy}from"lucide-react";import{createContext as Ky,forwardRef as Pn,useCallback as $y,useContext as Vy,useEffect as Yy,useState as bm}from"react";import{jsxDEV as Ke,Fragment as Qy}from"react/jsx-dev-runtime";var pr={sm:F.sm,md:F.md,lg:F.lg,full:"full"},Xy=160,ym=Ky(!1),Co=({children:e,open:t,defaultOpen:r=!1,onOpenChange:o,...n})=>{let[i,s]=bm(r),l=t!==void 0,d=l?t:i,m=$y((c)=>{if(!l)s(c);o?.(c)},[l,o]);return Ke(ym.Provider,{value:d,children:Ke(Re.Root,{open:d,onOpenChange:m,...n,children:e},void 0,!1,void 0,this)},void 0,!1,void 0,this)},Jy=Re.Trigger,Mn=Re.Portal,qy=Re.Close,Za=Re.Content,wo=Pn(({className:e,...t},r)=>Ke(Re.Overlay,{ref:r,className:a("gs-dialog-overlay",Wt,e),...t},void 0,!1,void 0,this));wo.displayName="DialogOverlay";var vm=_y("gs-dialog-content fixed left-1/2 top-1/2 z-50 grid w-full gap-4 rounded-[var(--radius)] border border-border bg-card p-6 text-foreground shadow-[var(--shadow-xl)]",{variants:{size:{[pr.sm]:"max-w-sm",[pr.md]:"max-w-md",[pr.lg]:"max-w-lg",[pr.full]:"max-w-[calc(100vw-2rem)] max-h-[calc(100vh-2rem)]"}},defaultVariants:{size:pr.md}}),zn=Pn(({className:e,children:t,size:r=pr.sm,showClose:o=!0,showOverlay:n=!0,portal:i=se,portalContainer:s,forceMount:l=!1,"aria-describedby":d,...m},c)=>{let u=Vy(ym),[g,v]=bm(l||u),y=f(r),T=ge();if(Yy(()=>{if(l||u){v(!0);return}let p=setTimeout(()=>{v(!1)},T?0:Xy);return()=>{clearTimeout(p)}},[l,u,T]),!(l||u||g))return null;let M=Ke(Qy,{children:[n?Ke(wo,{forceMount:!0},void 0,!1,void 0,this):null,Ke(Re.Content,{ref:c,forceMount:!0,"aria-describedby":d,className:a(vm({size:y}),e),...m,children:[t,o&&Ke(Re.Close,{className:an,children:[Ke(Uy,{className:"size-4"},void 0,!1,void 0,this),Ke("span",{className:"sr-only",children:"Close"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this);if(!i)return M;return Ke(Mn,{forceMount:!0,container:s??void 0,children:M},void 0,!1,void 0,this)});zn.displayName="DialogContent";var Tm=({className:e,...t})=>Ke("div",{className:a("flex flex-col space-y-1.5 text-center sm:text-left",e),...t},void 0,!1,void 0,this);Tm.displayName="DialogHeader";var hm=({className:e,...t})=>Ke("div",{className:a("flex flex-col-reverse sm:flex-row sm:justify-end sm:gap-2.5",e),...t},void 0,!1,void 0,this);hm.displayName="DialogFooter";var Nn=Pn(({className:e,...t},r)=>Ke(Re.Title,{ref:r,className:a("font-semibold text-lg leading-none tracking-tight",e),...t},void 0,!1,void 0,this));Nn.displayName="DialogTitle";var Pm=Pn(({className:e,...t},r)=>Ke(Re.Description,{ref:r,className:a("text-muted-foreground text-sm",e),...t},void 0,!1,void 0,this));Pm.displayName="DialogDescription";import{cva as Da}from"class-variance-authority";import{X as Zy}from"lucide-react";import{forwardRef as Ln}from"react";import{Drawer as yt}from"vaul";import{jsxDEV as He}from"react/jsx-dev-runtime";var bt={sm:"sm",md:"md",lg:"lg",full:"full"},Ey={[bt.sm]:"sm:max-w-sm",[bt.md]:"sm:max-w-md",[bt.lg]:"sm:max-w-lg",[bt.full]:"sm:max-w-full"},Dy={[bt.sm]:"sm:max-h-[30vh]",[bt.md]:"sm:max-h-[50vh]",[bt.lg]:"sm:max-h-[70vh]",[bt.full]:"sm:max-h-full"},Nm=Da(a("gs-sheet-overlay",Wt)),Lm=Da(["group/drawer-content fixed z-50 flex h-auto flex-col border border-border bg-card shadow-[var(--shadow-xl)]","data-[vaul-drawer-direction=top]:inset-x-0 data-[vaul-drawer-direction=top]:top-0 data-[vaul-drawer-direction=top]:mb-24 data-[vaul-drawer-direction=top]:max-h-[80vh] data-[vaul-drawer-direction=top]:rounded-b-xl data-[vaul-drawer-direction=top]:border-t-0","data-[vaul-drawer-direction=bottom]:inset-x-0 data-[vaul-drawer-direction=bottom]:bottom-0 data-[vaul-drawer-direction=bottom]:mt-24 data-[vaul-drawer-direction=bottom]:max-h-[80vh] data-[vaul-drawer-direction=bottom]:rounded-t-xl data-[vaul-drawer-direction=bottom]:border-b-0","data-[vaul-drawer-direction=right]:inset-y-0 data-[vaul-drawer-direction=right]:right-0 data-[vaul-drawer-direction=right]:h-full data-[vaul-drawer-direction=right]:w-3/4 data-[vaul-drawer-direction=right]:border-r-0","data-[vaul-drawer-direction=left]:inset-y-0 data-[vaul-drawer-direction=left]:left-0 data-[vaul-drawer-direction=left]:h-full data-[vaul-drawer-direction=left]:w-3/4 data-[vaul-drawer-direction=left]:border-l-0"]),Ea=Da("shrink-0 rounded-full bg-muted-foreground/25 transition-colors duration-150 hover:bg-muted-foreground/40",{variants:{direction:{top:"h-1.5 w-[60px]",bottom:"h-1.5 w-[60px]",left:"h-[60px] w-1.5",right:"h-[60px] w-1.5"}},defaultVariants:{direction:"bottom"}}),Mm={top:"flex justify-center pb-2 pt-4",bottom:"flex justify-center pt-4 pb-2",left:"absolute right-0 top-0 flex h-full items-center pr-2 pl-0",right:"absolute left-0 top-0 flex h-full items-center pl-2 pr-0"},jy=yt.Root,ev=yt.Trigger,tv=yt.Close,Rm=yt.Portal,zm=yt.Handle,ja=Ln(({className:e,...t},r)=>He(yt.Overlay,{ref:r,className:a(Nm(),e),...t},void 0,!1,void 0,this));ja.displayName="DrawerOverlay";var xm=Ln(({size:e=bt.sm,showClose:t=!1,direction:r="bottom",className:o,children:n,...i},s)=>{let d=r==="left"||r==="right"?Ey[e]:Dy[e];return He(Rm,{children:[He(ja,{},void 0,!1,void 0,this),He(yt.Content,{ref:s,className:a(Lm(),d,o),...i,children:[r!=="top"&&He("div",{className:a(Mm[r]),children:He(zm,{className:"!m-0 !h-auto !w-auto !rounded-none !bg-transparent !opacity-100",children:He("div",{className:a(Ea({direction:r}))},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),n,r==="top"&&He("div",{className:a(Mm[r]),children:He(zm,{className:"!m-0 !h-auto !w-auto !rounded-none !bg-transparent !opacity-100",children:He("div",{className:a(Ea({direction:r}))},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),t&&He(yt.Close,{className:"absolute top-4 right-4 rounded-[var(--radius)] border border-border p-1.5 text-muted-foreground transition-[color,background-color,border-color] duration-150 hover:bg-accent hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none",children:[He(Zy,{className:"size-4"},void 0,!1,void 0,this),He("span",{className:"sr-only",children:"Close"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)});xm.displayName="DrawerContent";var Cm=({className:e,...t})=>He("div",{className:a("flex flex-col gap-1.5 p-4 group-data-[vaul-drawer-direction=bottom]/drawer-content:text-center group-data-[vaul-drawer-direction=top]/drawer-content:text-center sm:text-left",e),...t},void 0,!1,void 0,this);Cm.displayName="DrawerHeader";var wm=({className:e,...t})=>He("div",{className:a("mt-auto flex flex-col gap-2 p-4",e),...t},void 0,!1,void 0,this);wm.displayName="DrawerFooter";var Hm=Ln(({className:e,...t},r)=>He(yt.Title,{ref:r,className:a("font-semibold text-foreground text-lg",e),...t},void 0,!1,void 0,this));Hm.displayName="DrawerTitle";var km=Ln(({className:e,...t},r)=>He(yt.Description,{ref:r,className:a("text-muted-foreground text-sm",e),...t},void 0,!1,void 0,this));km.displayName="DrawerDescription";import*as O from"@radix-ui/react-dropdown-menu";import{cva as fr}from"class-variance-authority";import{Check as rv,ChevronRight as ov,Circle as nv}from"lucide-react";import{createContext as av,forwardRef as Yt,useContext as Yr}from"react";import{jsxDEV as Te}from"react/jsx-dev-runtime";var Q={sm:F.sm,md:F.md,lg:F.lg},Rn={default:"default",danger:"danger"},gr=av(Q.md),ei=fr("z-50 min-w-[8rem] overflow-hidden rounded-[var(--radius)] border border-border/70 bg-popover p-1 text-popover-foreground shadow-[var(--shadow-md)] gs-float-content origin-[var(--radix-dropdown-menu-content-transform-origin)]"),ti=fr("relative flex cursor-pointer select-none items-center rounded-md outline-none data-[disabled]:pointer-events-none data-[disabled]:text-muted-foreground/50 data-[disabled]:cursor-not-allowed [&_svg]:pointer-events-none [&_svg]:shrink-0",{variants:{size:{[Q.sm]:"h-7 gap-1.5 px-2 text-xs [&_svg]:size-3.5",[Q.md]:"h-8 gap-2 px-2 text-sm [&_svg]:size-4",[Q.lg]:"h-9 gap-2 px-2.5 text-sm [&_svg]:size-4"},variant:{[Rn.default]:"hover:bg-accent/80 focus:bg-accent focus:text-accent-foreground",[Rn.danger]:"text-destructive hover:bg-destructive/10 focus:bg-destructive/10 focus:text-destructive"}},defaultVariants:{size:Q.sm,variant:Rn.default}}),Sm=fr("relative flex cursor-pointer select-none items-center rounded-md outline-none hover:bg-accent/80 focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:text-muted-foreground/50 data-[disabled]:cursor-not-allowed",{variants:{size:{[Q.sm]:"h-7 pl-7 pr-2 text-xs",[Q.md]:"h-8 pl-8 pr-2 text-sm",[Q.lg]:"h-9 pl-8 pr-2.5 text-sm"}},defaultVariants:{size:Q.sm}}),Am=fr("relative flex cursor-pointer select-none items-center rounded-md outline-none hover:bg-accent/80 focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:text-muted-foreground/50 data-[disabled]:cursor-not-allowed",{variants:{size:{[Q.sm]:"h-7 pl-7 pr-2 text-xs",[Q.md]:"h-8 pl-8 pr-2 text-sm",[Q.lg]:"h-9 pl-8 pr-2.5 text-sm"}},defaultVariants:{size:Q.sm}}),Bm=fr("font-semibold text-muted-foreground",{variants:{size:{[Q.sm]:"px-2 py-1 text-[11px]",[Q.md]:"px-2 py-1.5 text-xs",[Q.lg]:"px-2.5 py-1.5 text-xs"}},defaultVariants:{size:Q.sm}}),Im=fr("-mx-1 my-1 h-px bg-border/50"),Fm=fr("ml-auto tracking-widest text-muted-foreground/70",{variants:{size:{[Q.sm]:"text-[11px]",[Q.md]:"text-xs",[Q.lg]:"text-xs"}},defaultVariants:{size:Q.sm}}),Om={[Q.sm]:"absolute left-2 flex size-3.5 items-center justify-center",[Q.md]:"absolute left-2 flex size-3.5 items-center justify-center",[Q.lg]:"absolute left-2.5 flex size-4 items-center justify-center"},iv={[Q.sm]:"size-3",[Q.md]:"size-3.5",[Q.lg]:"size-4"},sv={[Q.sm]:"size-1.5 fill-current",[Q.md]:"size-2 fill-current",[Q.lg]:"size-2.5 fill-current"},lv=O.Root,mv=O.Trigger,dv=O.Group,uv=O.Portal,cv=O.Sub,pv=O.RadioGroup,Gm=Yt(({className:e,inset:t,children:r,...o},n)=>{let i=Yr(gr),s=f(i);return Te(O.SubTrigger,{ref:n,className:a(ti({size:s}),"data-[state=open]:bg-accent",t&&"pl-8",e),...o,children:[r,Te(ov,{className:"ml-auto"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});Gm.displayName=O.SubTrigger.displayName;var Wm=Yt(({className:e,sideOffset:t=nt,portal:r=se,portalContainer:o,...n},i)=>{let s=Te(O.SubContent,{ref:i,sideOffset:t,className:a(ei(),e),...n},void 0,!1,void 0,this);if(!r)return s;return Te(O.Portal,{container:o??void 0,children:s},void 0,!1,void 0,this)});Wm.displayName=O.SubContent.displayName;var _m=Yt(({className:e,sideOffset:t=nt,size:r,portal:o=se,portalContainer:n,...i},s)=>{let l=f(r)??Q.md,d=Te(O.Content,{ref:s,sideOffset:t,className:a(ei(),e),...i},void 0,!1,void 0,this);return Te(gr.Provider,{value:l,children:o?Te(O.Portal,{container:n??void 0,children:d},void 0,!1,void 0,this):d},void 0,!1,void 0,this)});_m.displayName=O.Content.displayName;var Um=Yt(({className:e,inset:t,variant:r,...o},n)=>{let i=Yr(gr),s=f(i);return Te(O.Item,{ref:n,className:a(ti({size:s,variant:r}),t&&"pl-8",e),...o},void 0,!1,void 0,this)});Um.displayName=O.Item.displayName;var Km=Yt(({className:e,children:t,checked:r,...o},n)=>{let i=Yr(gr),s=f(i)??Q.md;return Te(O.CheckboxItem,{ref:n,className:a(Sm({size:s}),e),checked:r,...o,children:[Te("span",{className:Om[s],children:Te(O.ItemIndicator,{children:Te(rv,{className:iv[s]},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),t]},void 0,!0,void 0,this)});Km.displayName=O.CheckboxItem.displayName;var $m=Yt(({className:e,children:t,...r},o)=>{let n=Yr(gr),i=f(n)??Q.md;return Te(O.RadioItem,{ref:o,className:a(Am({size:i}),e),...r,children:[Te("span",{className:Om[i],children:Te(O.ItemIndicator,{children:Te(nv,{className:sv[i]},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),t]},void 0,!0,void 0,this)});$m.displayName=O.RadioItem.displayName;var Vm=Yt(({className:e,inset:t,...r},o)=>{let n=Yr(gr),i=f(n);return Te(O.Label,{ref:o,className:a(Bm({size:i}),t&&"pl-8",e),...r},void 0,!1,void 0,this)});Vm.displayName=O.Label.displayName;var Ym=Yt(({className:e,...t},r)=>Te(O.Separator,{ref:r,className:a(Im(),e),...t},void 0,!1,void 0,this));Ym.displayName=O.Separator.displayName;var Xm=({className:e,...t})=>{let r=Yr(gr),o=f(r);return Te("span",{className:a(Fm({size:o}),e),...t},void 0,!1,void 0,this)};Xm.displayName="DropdownMenuShortcut";import{cva as ko}from"class-variance-authority";import{forwardRef as fv}from"react";import{jsxDEV as Ho}from"react/jsx-dev-runtime";var ke={sm:"sm",md:"md",lg:"lg"},Jm=ko("flex flex-col items-center justify-center text-center rounded-[var(--radius)] border border-dashed border-border/70 bg-muted/35",{variants:{size:{[ke.sm]:"gap-2 p-4",[ke.md]:"gap-4 p-8",[ke.lg]:"gap-6 p-12"}},defaultVariants:{size:ke.sm}}),qm=ko("flex items-center justify-center rounded-full border border-border/60 bg-muted/70 text-muted-foreground",{variants:{size:{[ke.sm]:"h-10 w-10 [&>svg]:h-4 [&>svg]:w-4",[ke.md]:"h-16 w-16 [&>svg]:h-7 [&>svg]:w-7",[ke.lg]:"h-20 w-20 [&>svg]:h-9 [&>svg]:w-9"}},defaultVariants:{size:ke.sm}}),Qm=ko("font-semibold text-foreground",{variants:{size:{[ke.sm]:"text-sm",[ke.md]:"text-lg",[ke.lg]:"text-xl"}},defaultVariants:{size:ke.sm}}),Zm=ko("text-muted-foreground max-w-sm",{variants:{size:{[ke.sm]:"text-xs",[ke.md]:"text-sm",[ke.lg]:"text-base"}},defaultVariants:{size:ke.sm}}),Em=ko("flex items-center gap-2 mt-2"),Dm=fv(({className:e,icon:t,title:r,description:o,actions:n,size:i=ke.sm,children:s,...l},d)=>{let m=f(i);return Ho("div",{ref:d,className:a(Jm({size:m}),e),...l,children:[t&&Ho("div",{className:qm({size:m}),children:t},void 0,!1,void 0,this),r&&Ho("h3",{className:Qm({size:m}),children:r},void 0,!1,void 0,this),o&&Ho("p",{className:Zm({size:m}),children:o},void 0,!1,void 0,this),n&&Ho("div",{className:Em(),children:n},void 0,!1,void 0,this),s]},void 0,!0,void 0,this)});Dm.displayName="EmptyState";import{cva as Xr}from"class-variance-authority";import{Component as gv,createElement as jm}from"react";import{jsxDEV as Ge,Fragment as yv}from"react/jsx-dev-runtime";var ed=Xr(["flex flex-col items-center justify-center rounded-xl border text-center","transition-colors duration-200 ease-out"],{variants:{size:{sm:"gap-3 p-6",md:"gap-4 p-8",lg:"gap-6 p-12"},variant:{destructive:"border-destructive/30 bg-destructive/8",warning:"border-warning/30 bg-warning/8",info:"border-info/30 bg-info/8"}},defaultVariants:{size:"sm",variant:"destructive"}}),td=Xr(["flex items-center justify-center rounded-full","transition-colors duration-200 ease-out"],{variants:{size:{sm:"h-12 w-12 [&>svg]:h-5 [&>svg]:w-5",md:"h-16 w-16 [&>svg]:h-7 [&>svg]:w-7",lg:"h-20 w-20 [&>svg]:h-9 [&>svg]:w-9"},variant:{destructive:"bg-destructive/10 text-destructive",warning:"bg-warning/10 text-warning",info:"bg-info/10 text-info"}},defaultVariants:{size:"sm",variant:"destructive"}}),rd=Xr("font-semibold transition-colors duration-300",{variants:{size:{sm:"text-lg",md:"text-xl",lg:"text-2xl"},variant:{destructive:"text-destructive",warning:"text-warning",info:"text-info"}},defaultVariants:{size:"sm",variant:"destructive"}}),od=Xr("max-w-xl text-muted-foreground transition-all duration-200",{variants:{size:{sm:"text-sm",md:"text-sm",lg:"text-base"}},defaultVariants:{size:"sm"}}),nd=Xr("mt-2 flex flex-wrap items-center justify-center gap-2"),ad=Xr("mt-4 max-h-48 w-full max-w-2xl overflow-auto rounded-md border border-border/70 bg-background/80 p-3 text-left font-mono text-xs text-muted-foreground");class id extends gv{static displayName="ErrorBoundary";constructor(e){super(e);this.state={hasError:!1,error:null}}static getDerivedStateFromError(e){return{hasError:!0,error:e}}componentDidCatch(e,t){this.props.onError?.(e,t)}handleReset=()=>{this.setState({hasError:!1,error:null}),this.props.onReset?.()};render(){let{children:e,fallback:t,showDetails:r=!1,size:o="sm",variant:n="destructive",className:i,title:s="Something went wrong",description:l="An unexpected error occurred. Please try again.",icon:d,actions:m,resetLabel:c="Try again",hideReset:u=!1,renderDetails:g}=this.props;if(this.state.hasError&&this.state.error){let v={error:this.state.error,reset:this.handleReset};if(t){if(typeof t==="function")return jm(t,v);return t}let y=null;if(m)y=typeof m==="function"?jm(m,v):m;else if(!u){let z={destructive:"border-destructive/30 bg-destructive text-destructive-foreground hover:bg-destructive/90",warning:"border-warning/30 bg-warning text-warning-foreground hover:bg-warning/90",info:"border-info/30 bg-info text-info-foreground hover:bg-info/90"};y=Ge("button",{type:"button",onClick:this.handleReset,className:a("inline-flex items-center justify-center rounded-md border px-4 py-2 font-medium text-sm","transition-colors duration-150 ease-out","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-1",z[n]),children:c},void 0,!1,void 0,this)}let T=g?g(this.state.error):Ge(yv,{children:[Ge("strong",{children:"Error:"},void 0,!1,void 0,this)," ",this.state.error.message,this.state.error.stack&&Ge("pre",{className:"mt-2 whitespace-pre-wrap",children:this.state.error.stack},void 0,!1,void 0,this)]},void 0,!0,void 0,this);return Ge("div",{className:a(ed({size:o,variant:n}),i),children:[Ge("div",{className:a(td({size:o,variant:n})),children:d??Ge(bv,{},void 0,!1,void 0,this)},void 0,!1,void 0,this),Ge("h3",{className:a(rd({size:o,variant:n})),children:s},void 0,!1,void 0,this),Ge("p",{className:a(od({size:o})),children:l},void 0,!1,void 0,this),y&&Ge("div",{className:a(nd()),children:y},void 0,!1,void 0,this),r&&Ge("div",{className:a(ad()),children:T},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}return e}}function bv(){return Ge("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[Ge("circle",{cx:"12",cy:"12",r:"10"},void 0,!1,void 0,this),Ge("line",{x1:"12",x2:"12",y1:"8",y2:"12"},void 0,!1,void 0,this),Ge("line",{x1:"12",x2:"12.01",y1:"16",y2:"16"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}import{cva as Xt}from"class-variance-authority";import{forwardRef as vv,useCallback as st,useRef as Tv,useState as sd}from"react";import{jsxDEV as Ae}from"react/jsx-dev-runtime";var xe={sm:"sm",md:"md",lg:"lg"},ld=Xt(["relative flex flex-col items-center justify-center","rounded-xl border-2 border-dashed","shadow-[var(--shadow-xs)]","transition-[color,background-color,border-color,box-shadow,transform,opacity] duration-150","cursor-pointer","hover:border-primary/45 hover:bg-primary/8","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary focus-visible:ring-offset-2"],{variants:{size:{[xe.sm]:"min-h-28 p-5",[xe.md]:"min-h-36 p-8",[xe.lg]:"min-h-44 p-10"},isDragging:{true:"scale-[1.01] border-primary bg-primary/12 shadow-[var(--glow-brand-sm)]",false:"border-border bg-card/75"},disabled:{true:"cursor-not-allowed border-border/70 bg-muted/35 text-muted-foreground pointer-events-none",false:""},hasError:{true:"border-destructive bg-destructive/5",false:""}},defaultVariants:{size:xe.sm,isDragging:!1,disabled:!1,hasError:!1}}),md=Xt("text-muted-foreground transition-colors duration-200",{variants:{size:{[xe.sm]:"mb-2 size-6",[xe.md]:"size-8 mb-3",[xe.lg]:"size-10 mb-4"},isDragging:{true:"text-primary",false:""}},defaultVariants:{size:xe.sm,isDragging:!1}}),ri=Xt("text-center",{variants:{size:{[xe.sm]:"text-sm",[xe.md]:"text-sm",[xe.lg]:"text-base"}},defaultVariants:{size:xe.sm}}),dd=Xt("mt-4 w-full space-y-2"),ud=Xt(["flex items-center gap-3 rounded-lg border border-border/75 bg-card p-3.5","transition-[color,background-color,border-color,box-shadow,transform,opacity] duration-150","hover:border-primary/30 hover:bg-accent/45"]),cd=Xt("min-w-0 flex-1 truncate font-medium text-foreground",{variants:{size:{[xe.sm]:"text-sm",[xe.md]:"text-sm",[xe.lg]:"text-base"}},defaultVariants:{size:"sm"}}),pd=Xt("text-muted-foreground",{variants:{size:{[xe.sm]:"text-xs",[xe.md]:"text-sm",[xe.lg]:"text-sm"}},defaultVariants:{size:"sm"}}),fd=Xt(["size-7 shrink-0 rounded-full border border-transparent","flex items-center justify-center","text-muted-foreground hover:border-destructive/25 hover:bg-destructive/10 hover:text-destructive","transition-colors duration-150","cursor-pointer"]),gd=vv(({className:e,size:t="sm",disabled:r=!1,accept:o,multiple:n=!1,maxSize:i,maxFiles:s,value:l=[],onChange:d,onError:m,icon:c,title:u="Drop files here or click to upload",description:g,showFileList:v=!0,...y},T)=>{let z=f(t),[M,p]=sd(!1),[h,L]=sd(!1),H=Tv(null),S=st((R)=>{if(R===0)return"0 Bytes";let W=1024,b=["Bytes","KB","MB","GB"],P=Math.floor(Math.log(R)/Math.log(W));return`${parseFloat((R/W**P).toFixed(2))} ${b[P]}`},[]),B=st((R)=>{let W=[...R];if(L(!1),o){let b=o.split(",").map((P)=>P.trim());if(W=W.filter((P)=>{return b.some((C)=>{if(C.startsWith("."))return P.name.toLowerCase().endsWith(C.toLowerCase());if(C.endsWith("/*"))return P.type.startsWith(C.slice(0,-1));return P.type===C})}),W.length<R.length)m?.("Some files were rejected due to file type"),L(!0)}if(i){let b=W.length;if(W=W.filter((P)=>P.size<=i),W.length<b)m?.(`File size must be less than ${S(i)}`),L(!0)}if(s&&W.length+l.length>s)W=W.slice(0,s-l.length),m?.(`Maximum ${s} files allowed`),L(!0);return W},[o,i,s,l.length,m,S]),x=st((R)=>{if(!R||R.length===0)return;let W=Array.from(R),b=B(W);if(b.length>0)if(n)d?.([...l,...b]);else d?.(b.slice(0,1))},[n,l,d,B]),Y=st((R)=>{R.preventDefault(),R.stopPropagation(),p(!0)},[]),K=st((R)=>{R.preventDefault(),R.stopPropagation(),p(!1)},[]),X=st((R)=>{R.preventDefault(),R.stopPropagation()},[]),j=st((R)=>{if(R.preventDefault(),R.stopPropagation(),p(!1),r)return;x(R.dataTransfer.files)},[r,x]),ie=st((R)=>{if(x(R.target.files),H.current)H.current.value=""},[x]),V=st(()=>{if(!r)H.current?.click()},[r]),re=st((R)=>{if(R.key==="Enter"||R.key===" ")R.preventDefault(),V()},[V]),k=st((R)=>{let W=l.filter((b,P)=>P!==R);d?.(W)},[l,d]),Z=Ae("svg",{className:a(md({size:z,isDragging:M})),fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1.5,children:Ae("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3 16.5v2.25A2.25 2.25 0 005.25 21h13.5A2.25 2.25 0 0021 18.75V16.5m-13.5-9L12 3m0 0l4.5 4.5M12 3v13.5"},void 0,!1,void 0,this)},void 0,!1,void 0,this);return Ae("div",{ref:T,className:a("w-full",e),...y,children:[Ae("div",{role:"button",tabIndex:r?-1:0,onClick:V,onKeyDown:re,onDragEnter:Y,onDragLeave:K,onDragOver:X,onDrop:j,className:a(ld({size:z,isDragging:M,disabled:r,hasError:h})),children:[Ae("input",{ref:H,type:"file",accept:o,multiple:n,disabled:r,onChange:ie,className:"sr-only"},void 0,!1,void 0,this),c||Z,Ae("p",{className:a(ri({size:z}),"font-medium text-foreground"),children:u},void 0,!1,void 0,this),g&&Ae("p",{className:a(ri({size:z}),"mt-1 text-muted-foreground"),children:g},void 0,!1,void 0,this)]},void 0,!0,void 0,this),v&&l.length>0&&Ae("div",{className:a(dd()),children:l.map((R,W)=>Ae("div",{className:a(ud()),children:[Ae("svg",{className:"size-5 shrink-0 text-muted-foreground",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1.5,children:Ae("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19.5 14.25v-2.625a3.375 3.375 0 00-3.375-3.375h-1.5A1.125 1.125 0 0113.5 7.125v-1.5a3.375 3.375 0 00-3.375-3.375H8.25m2.25 0H5.625c-.621 0-1.125.504-1.125 1.125v17.25c0 .621.504 1.125 1.125 1.125h12.75c.621 0 1.125-.504 1.125-1.125V11.25a9 9 0 00-9-9z"},void 0,!1,void 0,this)},void 0,!1,void 0,this),Ae("span",{className:a(cd({size:z})),children:R.name},void 0,!1,void 0,this),Ae("span",{className:a(pd({size:z})),children:S(R.size)},void 0,!1,void 0,this),Ae("button",{type:"button",onClick:(b)=>{b.stopPropagation(),k(W)},className:a(fd()),"aria-label":`Remove ${R.name}`,children:Ae("svg",{className:"size-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:Ae("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},`${R.name}-${W}`,!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});gd.displayName="FileUpload";import{cva as hv}from"class-variance-authority";import{createContext as Pv,forwardRef as xn,useCallback as bd,useContext as Mv,useEffect as vd,useId as zv,useMemo as Nv,useState as yd}from"react";import{jsxDEV as br,Fragment as Rv}from"react/jsx-dev-runtime";var Ze={sm:"sm",md:"md",lg:"lg"},Td=Pv(null),So=()=>{let e=Mv(Td);if(!e)throw Error("useFormField must be used within a FormField");return e},hd=hv("flex flex-col",{variants:{size:{[Ze.sm]:"gap-1",[Ze.md]:"gap-1.5",[Ze.lg]:"gap-2"}},defaultVariants:{size:Ze.sm}}),Pd=xn(({className:e,size:t=Ze.sm,error:r,disabled:o=!1,required:n=!1,children:i,...s},l)=>{let d=zv(),m=f(t),[c,u]=yd([]),[g,v]=yd([]),y=bd((M)=>{return u((p)=>p.includes(M)?p:[...p,M]),()=>{u((p)=>p.filter((h)=>h!==M))}},[]),T=bd((M)=>{return v((p)=>p.includes(M)?p:[...p,M]),()=>{v((p)=>p.filter((h)=>h!==M))}},[]),z=Nv(()=>({id:d,size:m,error:r,disabled:o,required:n,descriptionIds:c,errorIds:g,registerDescriptionId:y,registerErrorId:T}),[c,o,m,r,g,d,y,T,n]);return br(Td.Provider,{value:z,children:br("div",{ref:l,className:a(hd({size:m}),e),...s,children:i},void 0,!1,void 0,this)},void 0,!1,void 0,this)});Pd.displayName="FormField";var Lv={[Ze.sm]:"text-xs",[Ze.md]:"text-sm",[Ze.lg]:"text-base"},Md=xn(({className:e,htmlFor:t,children:r,...o},n)=>{let{id:i,size:s,disabled:l,required:d}=So();return br("label",{ref:n,htmlFor:t??i,className:a("inline-block select-none font-medium text-foreground",Lv[s],l&&"cursor-not-allowed opacity-60",e),...o,children:[r,d&&br("span",{className:"ml-0.5 text-destructive","aria-hidden":"true",children:"*"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});Md.displayName="FormFieldLabel";var zd={[Ze.sm]:"text-[11px]",[Ze.md]:"text-xs",[Ze.lg]:"text-sm"},Nd=xn(({className:e,id:t,...r},o)=>{let{id:n,size:i,registerDescriptionId:s}=So(),l=t??`${n}-description`;return vd(()=>{return s(l)},[l,s]),br("p",{ref:o,id:l,className:a("text-muted-foreground",zd[i],e),...r},void 0,!1,void 0,this)});Nd.displayName="FormFieldDescription";var Ld=xn(({className:e,children:t,id:r,...o},n)=>{let{id:i,size:s,error:l,registerErrorId:d}=So(),m=t??l,c=r??`${i}-error`;if(vd(()=>{if(!m)return;return d(c)},[c,m,d]),!m)return null;return br("p",{ref:n,id:c,role:"alert",className:a("text-destructive",zd[s],e),...o,children:m},void 0,!1,void 0,this)});Ld.displayName="FormFieldError";var Rd=({children:e})=>{let{id:t,disabled:r,required:o,error:n,descriptionIds:i,errorIds:s}=So(),l=[...i,...s].join(" ");return br(Rv,{children:e({id:t,disabled:r,required:o,status:n||s.length>0?"error":"default","aria-describedby":l||void 0,"aria-invalid":n||s.length>0?!0:void 0})},void 0,!1,void 0,this)};Rd.displayName="FormFieldControl";import*as Ht from"@radix-ui/react-hover-card";import{cva as xv}from"class-variance-authority";import{forwardRef as Cv}from"react";import{jsxDEV as oi}from"react/jsx-dev-runtime";var Jr={sm:F.sm,md:F.md,lg:F.lg},xd=xv("z-50 rounded-[var(--radius)] border border-border/70 bg-popover text-popover-foreground shadow-[var(--shadow-md)] gs-float-content origin-[var(--radix-hover-card-content-transform-origin)]",{variants:{size:{[Jr.sm]:"w-52 p-3 text-xs",[Jr.md]:"w-64 p-4 text-sm",[Jr.lg]:"w-80 p-5 text-sm"}},defaultVariants:{size:Jr.md}}),Cd=({openDelay:e,closeDelay:t,...r})=>{let o=ge();return oi(Ht.Root,{openDelay:o?0:e,closeDelay:o?0:t,...r},void 0,!1,void 0,this)};Cd.displayName="HoverCard";var wv=Ht.Trigger,wd=Cv(({className:e,align:t="center",sideOffset:r=nt,portal:o=se,portalContainer:n,size:i=Jr.sm,...s},l)=>{let d=f(i),m=oi(Ht.Content,{ref:l,align:t,sideOffset:r,className:a(xd({size:d}),e),...s},void 0,!1,void 0,this);if(!o)return m;return oi(Ht.Portal,{container:n??void 0,children:m},void 0,!1,void 0,this)});wd.displayName=Ht.Content.displayName;import{cva as Hv}from"class-variance-authority";import{X as kv}from"lucide-react";import{forwardRef as Sv,useRef as Av,useState as Bv}from"react";import{jsxDEV as yr}from"react/jsx-dev-runtime";var Ao={default:"default",error:"error",success:"success"},ne={sm:"sm",md:"md",lg:"lg"},Iv="Clear input",kd=Hv("transition-[color,background-color,border-color,box-shadow,transform,opacity,filter] duration-[var(--motion-duration-medium)] ease-[var(--motion-ease-standard)] w-full rounded-[var(--radius)] border border-input bg-background text-sm text-foreground outline-none placeholder:text-muted-foreground focus-visible:ring-2 disabled:cursor-not-allowed disabled:border-border disabled:bg-muted/45 disabled:text-muted-foreground",{variants:{status:{[Ao.default]:"focus-visible:ring-primary",[Ao.error]:"border-destructive focus-visible:ring-destructive",[Ao.success]:"border-success focus-visible:ring-success"},size:{[ne.sm]:"h-8 px-2 text-xs",[ne.md]:"h-10 px-3",[ne.lg]:"h-11 px-4"}},defaultVariants:{status:Ao.default,size:ne.sm}}),Fv={[ne.sm]:"pl-7",[ne.md]:"pl-9",[ne.lg]:"pl-10"},Ov={[ne.sm]:"pr-7",[ne.md]:"pr-9",[ne.lg]:"pr-10"},Gv={[ne.sm]:"pr-12",[ne.md]:"pr-16",[ne.lg]:"pr-18"},Wv={[ne.sm]:"text-xs left-2",[ne.md]:"text-sm left-3",[ne.lg]:"text-sm left-3.5"},_v={[ne.sm]:"text-xs",[ne.md]:"text-sm",[ne.lg]:"text-sm"},Uv={[ne.sm]:"size-4",[ne.md]:"size-5",[ne.lg]:"size-5"},Kv={[ne.sm]:"size-3",[ne.md]:"size-3.5",[ne.lg]:"size-3.5"};function Hd(e){if(e===void 0||e===null)return"";if(Array.isArray(e))return e.join("");return String(e)}var Sd=Sv(({className:e,status:t=Ao.default,size:r=ne.sm,fullWidth:o=!1,prefix:n,suffix:i,clearable:s=!1,clearAriaLabel:l=Iv,onClear:d,onValueChange:m,disabled:c,readOnly:u,onChange:g,value:v,defaultValue:y,...T},z)=>{let M=Boolean(n),p=Boolean(i),h=f(r),L=Av(null),H=kt(z,L),[S,B]=Bv(()=>Hd(y)),x=v!==void 0,Y=x?Hd(v):S,K=s&&!c&&!u,X=s&&!c&&!u&&Y.length>0,j=p||K,ie=p&&K,V=(k)=>{let Z=k.target.value;if(!x)B(Z);m?.(Z),g?.(k)},re=()=>{if(!x)B("");m?.("");let k=L.current;if(k)k.value="",k.dispatchEvent(new Event("input",{bubbles:!0})),k.focus();d?.()};return yr("div",{className:a("relative flex items-center",o&&"w-full"),children:[M&&yr("span",{className:a("absolute inset-y-0 flex items-center text-muted-foreground",Wv[h]),children:n},void 0,!1,void 0,this),yr("input",{ref:H,className:a(kd({status:t,size:h}),M&&Fv[h],ie&&Gv[h],!ie&&j&&Ov[h],e),disabled:c,readOnly:u,onChange:V,value:Y,...T},void 0,!1,void 0,this),j&&yr("span",{className:a("absolute inset-y-0 right-2 flex items-center gap-1 text-muted-foreground",_v[h]),children:[p&&yr("span",{className:"inline-flex items-center",children:i},void 0,!1,void 0,this),K&&yr("button",{type:"button","aria-label":l,onMouseDown:(k)=>k.preventDefault(),onClick:re,tabIndex:X?0:-1,disabled:!X,className:a("inline-flex items-center justify-center rounded-[calc(var(--radius)-4px)] text-muted-foreground transition-[color,background-color,border-color,box-shadow,transform,opacity,filter] duration-[var(--motion-duration-medium)] ease-[var(--motion-ease-standard)] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",X?"cursor-pointer hover:text-foreground":"pointer-events-none opacity-0",Uv[h]),children:yr(kv,{className:Kv[h]},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)});Sd.displayName="Input";import{cva as Xv}from"class-variance-authority";import{forwardRef as Jv}from"react";import{useSyncExternalStore as $v}from"react";var Vv=()=>ni(),Yv=()=>Ad;function Bo(){return $v(Bd,Vv,Yv)}import{jsxDEV as qv}from"react/jsx-dev-runtime";var qr={sm:"sm",md:"md",lg:"lg"},Qr=Xv("inline-flex items-center justify-center rounded border border-border bg-muted font-mono font-medium text-muted-foreground shadow-[0_1px_0_1px] shadow-border/50",{variants:{size:{[qr.sm]:"min-w-5 h-5 px-1 text-[11px]",[qr.md]:"min-w-6 h-6 px-1.5 text-xs",[qr.lg]:"min-w-7 h-7 px-2 text-sm"}},defaultVariants:{size:qr.sm}}),Id=Jv(({className:e,size:t=qr.sm,combo:r,keys:o,children:n,...i},s)=>{let l=f(t),{isMac:d}=Bo(),m=r?Cn(r,d):o?Cn(o,d):n;return qv("kbd",{ref:s,className:a(Qr({size:l}),e),...i,children:m},void 0,!1,void 0,this)});Id.displayName="Kbd";import{cva as Qv}from"class-variance-authority";import{forwardRef as Zv}from"react";import{jsxDEV as Fd}from"react/jsx-dev-runtime";var Zr={sm:"sm",md:"md",lg:"lg"},Od=Qv("inline-block font-medium text-foreground select-none peer-disabled:cursor-not-allowed peer-disabled:text-muted-foreground/70",{variants:{size:{[Zr.sm]:"text-xs",[Zr.md]:"text-sm",[Zr.lg]:"text-base"}},defaultVariants:{size:Zr.sm}}),Gd=Zv(({className:e,size:t=Zr.sm,required:r=!1,disabled:o=!1,children:n,htmlFor:i,...s},l)=>{let d=f(t);return Fd("label",{ref:l,htmlFor:i,className:a(Od({size:d}),o&&"cursor-not-allowed text-muted-foreground/70",e),"aria-disabled":o||void 0,...s,children:[n,r&&Fd("span",{className:"ml-0.5 text-destructive","aria-hidden":"true",children:"*"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});Gd.displayName="Label";import{forwardRef as Ev}from"react";import{jsxDEV as Dv}from"react/jsx-dev-runtime";var Wd=Ev((e,t)=>{return Dv(Ot,{ref:t,...e},void 0,!1,void 0,this)});Wd.displayName="Loader";import*as Jt from"@radix-ui/react-popover";import{cva as aT}from"class-variance-authority";import{Check as iT,ChevronDown as sT,X as lT}from"lucide-react";import{forwardRef as mT,useCallback as St,useEffect as ai,useLayoutEffect as Kd,useMemo as jr,useRef as eo,useState as wn}from"react";import*as Ee from"@radix-ui/react-popover";import{cva as jv}from"class-variance-authority";import{forwardRef as eT}from"react";import{jsxDEV as _d}from"react/jsx-dev-runtime";var Er={sm:F.sm,md:F.md,lg:F.lg},Dr=jv("z-50 rounded-[var(--radius)] border border-border bg-popover text-popover-foreground outline-none shadow-[var(--shadow-md)] gs-float-content origin-[var(--radix-popover-content-transform-origin)]",{variants:{size:{[Er.sm]:"w-56 p-3 text-sm",[Er.md]:"w-72 p-4 text-sm",[Er.lg]:"w-96 p-5 text-sm"}},defaultVariants:{size:Er.md}}),tT=Ee.Root,rT=Ee.Trigger,oT=Ee.Anchor,nT=Ee.Close,Ud=eT(({className:e,align:t="center",sideOffset:r=nt,portal:o=se,portalContainer:n,size:i=Er.sm,...s},l)=>{let d=f(i),m=_d(Ee.Content,{ref:l,align:t,sideOffset:r,className:a(Dr({size:d}),e),...s},void 0,!1,void 0,this);if(o)return _d(Ee.Portal,{container:n??void 0,children:m},void 0,!1,void 0,this);return m});Ud.displayName="PopoverContent";import{jsxDEV as le,Fragment as PT}from"react/jsx-dev-runtime";var te={sm:"sm",md:"md",lg:"lg"},$d=aT(["group flex w-full items-center gap-2 rounded-[var(--radius)] border border-input","bg-background text-sm text-foreground outline-none","placeholder:text-muted-foreground focus-visible:ring-2","data-[state=open]:ring-2","disabled:cursor-not-allowed disabled:border-border disabled:bg-muted/45 disabled:text-muted-foreground"].join(" "),{variants:{size:{[te.sm]:"min-h-8 px-2.5 py-1 text-xs",[te.md]:"min-h-10 px-3.5 py-1.5",[te.lg]:"min-h-11 px-4.5 py-2 text-sm"},status:{default:"focus-visible:ring-primary data-[state=open]:ring-primary",error:"border-destructive focus-visible:ring-destructive data-[state=open]:ring-destructive",success:"border-success focus-visible:ring-success data-[state=open]:ring-success"}},defaultVariants:{size:te.md,status:"default"}}),dT={[te.sm]:"sm",[te.md]:"md",[te.lg]:"lg"},uT={[te.sm]:"min-h-7.5 py-1.5 px-2.5 text-xs",[te.md]:"min-h-9 py-2 px-3 text-sm",[te.lg]:"min-h-10 py-2.5 px-3.5 text-sm"},Hn={[te.sm]:"size-3.5",[te.md]:"size-4",[te.lg]:"size-4"},cT={[te.sm]:"text-[11px]",[te.md]:"text-xs",[te.lg]:"text-xs"},pT=4,fT={[te.sm]:34,[te.md]:36,[te.lg]:40},gT={[te.sm]:5.8,[te.md]:6,[te.lg]:6.2},bT={[te.sm]:14,[te.md]:16,[te.lg]:18},yT={[te.sm]:5.6,[te.md]:5.8,[te.lg]:6},vT=(e,t)=>{return Math.ceil(fT[t]+Math.max(1,e.trim().length)*gT[t])},TT=(e,t)=>{let r=`+${e}`;return Math.ceil(bT[t]+r.length*yT[t])},hT=({containerWidth:e,badgeWidths:t,getSummaryWidth:r,gapPx:o=pT})=>{if(t.length===0)return{visibleCount:0,hiddenCount:0};if(e<=0)return{visibleCount:0,hiddenCount:t.length};let n=0,i=0;for(let s=0;s<t.length;s+=1){let l=t[s]??0,d=i>0,m=n+(d?o:0)+l,c=t.length-(s+1);if(c>0){let u=r(c),g=m>0?o:0;if(m+g+u<=e){n=m,i+=1;continue}break}if(m<=e)n=m,i+=1}return{visibleCount:i,hiddenCount:t.length-i}},Vd=mT(({className:e,options:t,value:r,defaultValue:o=[],onValueChange:n,placeholder:i="Select options...",size:s=te.sm,status:l="default",clearable:d=!1,open:m,defaultOpen:c=!1,onOpenChange:u,portal:g=se,portalContainer:v,disabled:y,...T},z)=>{let M=f(s)??s,[p,h]=wn(c),[L,H]=wn(o),[S,B]=wn(null),[x,Y]=wn(null),K=eo(null),X=eo(null),j=eo(null),ie=eo(o),V=eo(new Map),re=eo(new Map),k=r!==void 0,Z=m!==void 0,R=k?r:L,W=Z?m:p,b=St((N)=>{if(!Z)h(N);u?.(N)},[Z,u]),P=jr(()=>{return new Map(t.map((N)=>[N.value,N]))},[t]),C=jr(()=>{return R.flatMap((N)=>{let E=P.get(N);return E?[E]:[]})},[P,R]),oe=jr(()=>{if(!S)return;return P.get(S)},[P,S]),_=St((N)=>{let E=R.includes(N)?R.filter((ee)=>ee!==N):[...R,N];if(!k)H(E);n?.(E)},[k,n,R]),Ce=St((N)=>{let E=R.filter((ee)=>ee!==N);if(!k)H(E);n?.(E)},[k,n,R]),G=St(()=>{if(!k)H([]);n?.([])},[k,n]),ae=St((N)=>{N.stopPropagation(),N.preventDefault(),G()},[G]),Lt=St((N)=>{if(N.key==="Enter"||N.key===" ")N.stopPropagation(),N.preventDefault(),G()},[G]),ot=St((N)=>{let E=K.current;if(!E)return;let ee=Array.from(E.querySelectorAll('[role="option"]:not([data-disabled])'));if(ee.length===0)return;let ir=E.querySelector('[role="option"]:focus'),tn=ir?ee.indexOf(ir):-1,yo;switch(N){case"first":yo=ee[0];break;case"last":yo=ee[ee.length-1];break;case"next":yo=ee[tn+1]??ee[0];break;case"prev":yo=ee[tn-1]??ee[ee.length-1];break}yo?.focus()},[]),$=St((N)=>{switch(N.key){case"ArrowDown":N.preventDefault(),ot("next");break;case"ArrowUp":N.preventDefault(),ot("prev");break;case"Home":N.preventDefault(),ot("first");break;case"End":N.preventDefault(),ot("last");break;case"Escape":N.preventDefault(),b(!1);break}},[ot,b]);ai(()=>{if(W)requestAnimationFrame(()=>ot("first"))},[ot,W]),ai(()=>{if(S&&!oe)B(null)},[oe,S]),ai(()=>{let N=ie.current,E=R.filter((ee)=>!N.includes(ee));if(E.length>0){let ee=E[E.length-1];if(ee&&!V.current.has(`${M}:${ee}`))B(ee)}ie.current=R},[M,R]),Kd(()=>{let N=X.current;if(!N)return;if((()=>{Y(Math.ceil(N.getBoundingClientRect().width))})(),typeof ResizeObserver>"u")return;let ee=new ResizeObserver((ir)=>{let tn=Math.ceil(ir[0]?.contentRect.width??N.getBoundingClientRect().width);Y(tn)});return ee.observe(N),()=>{ee.disconnect()}},[]),Kd(()=>{if(!S)return;let N=j.current;if(!N)return;let E=Math.ceil(N.getBoundingClientRect().width);if(E>0)V.current.set(`${M}:${S}`,E);B(null)},[M,S]);let de=dT[M],ze=C.length>0,be=d&&ze&&!y,Xe=St((N)=>{let E=`${M}:${N}`,ee=re.current.get(E);if(ee!==void 0)return ee;let ir=TT(N,M);return re.current.set(E,ir),ir},[M]),ct=jr(()=>{return C.map((N)=>{let E=`${M}:${N.value}`;return V.current.get(E)??vT(N.label,M)})},[M,C]),A=jr(()=>{if(!ze)return{visibleCount:0,hiddenCount:0};if(x===null||x<=0)return{visibleCount:C.length,hiddenCount:0};return hT({containerWidth:x,badgeWidths:ct,getSummaryWidth:Xe})},[x,Xe,ze,ct,C.length]),ue=jr(()=>{return C.slice(0,A.visibleCount)},[A.visibleCount,C]),Ne=le(Jt.Content,{ref:K,role:"listbox","aria-multiselectable":"true",align:"start",sideOffset:4,onKeyDown:$,onOpenAutoFocus:(N)=>N.preventDefault(),className:a(Dr(),"max-h-96 w-[var(--radix-popover-trigger-width)] overflow-y-auto overflow-x-hidden p-1"),children:[t.map((N)=>{let E=R.includes(N.value);return le("div",{role:"option",tabIndex:N.disabled?void 0:-1,"aria-selected":E,"aria-disabled":N.disabled||void 0,"data-disabled":N.disabled?"":void 0,className:a("relative flex w-full cursor-pointer select-none items-center gap-2","rounded-[calc(var(--radius)-3px)] outline-none","hover:bg-accent focus-visible:bg-accent focus-visible:text-accent-foreground","data-disabled:cursor-not-allowed data-disabled:border-transparent data-disabled:bg-muted/40 data-disabled:text-muted-foreground/70",uT[M]),onClick:()=>!N.disabled&&_(N.value),onKeyDown:(ee)=>{if(ee.key==="Enter"||ee.key===" "){if(ee.preventDefault(),!N.disabled)_(N.value)}},children:[le("span",{className:a("flex shrink-0 items-center justify-center",Hn[M]),children:E?le(iT,{className:Hn[M]},void 0,!1,void 0,this):null},void 0,!1,void 0,this),le("span",{className:"min-w-0 flex-1 truncate",children:N.label},void 0,!1,void 0,this)]},N.value,!0,void 0,this)}),t.length===0?le("div",{className:"px-3 py-6 text-center text-muted-foreground text-sm",children:"No options available"},void 0,!1,void 0,this):null]},void 0,!0,void 0,this);return le(Jt.Root,{open:W,onOpenChange:b,children:[le(Jt.Trigger,{asChild:!0,children:le("button",{ref:z,type:"button",disabled:y,"data-state":W?"open":"closed","data-placeholder":ze?void 0:"",className:a($d({size:M,status:l}),e),...T,children:[le("span",{ref:X,className:"flex min-w-0 flex-1 flex-wrap items-center gap-1 text-left",children:ze?le(PT,{children:[ue.map((N)=>le(Po,{variant:"outline",size:de,removable:!0,removeControl:"span",removeLabel:`Remove ${N.label}`,onRemove:()=>Ce(N.value),className:"max-w-[180px]",children:le("span",{className:"truncate",children:N.label},void 0,!1,void 0,this)},N.value,!1,void 0,this)),A.hiddenCount>0?le("span",{className:a("text-muted-foreground",cT[M]),children:["+",A.hiddenCount]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this):le("span",{className:"text-muted-foreground",children:i},void 0,!1,void 0,this)},void 0,!1,void 0,this),le("span",{className:"inline-flex shrink-0 items-center gap-1 text-muted-foreground",children:[be?le("span",{role:"button",tabIndex:-1,"aria-label":"Clear all",onMouseDown:(N)=>N.preventDefault(),onKeyDown:Lt,onClick:ae,className:"inline-flex items-center justify-center rounded-[calc(var(--radius)-4px)] text-muted-foreground hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",children:le(lT,{className:Hn[M]},void 0,!1,void 0,this)},void 0,!1,void 0,this):null,le(sT,{className:a(Hn[M],"opacity-60 transition-transform duration-[var(--motion-duration-fast)] ease-[var(--motion-ease-productive)]",W&&"rotate-180")},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),g?le(Jt.Portal,{container:v??void 0,children:Ne},void 0,!1,void 0,this):Ne,oe?le("span",{className:"pointer-events-none invisible absolute top-0 left-0 -z-10","aria-hidden":!0,children:le(Po,{ref:j,variant:"outline",size:de,removable:!0,removeControl:"span",className:"max-w-[180px]",children:le("span",{className:"truncate",children:oe.label},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this):null]},void 0,!0,void 0,this)});Vd.displayName="Multiselect";import{cva as qt}from"class-variance-authority";import{createContext as MT,forwardRef as vr,useContext as zT}from"react";import{jsxDEV as De}from"react/jsx-dev-runtime";var Yd=qt(["transition-[color,background-color,border-color,box-shadow,transform,opacity,filter] duration-[var(--motion-duration-medium)] ease-[var(--motion-ease-standard)] flex w-full items-center justify-between border-b","transition-colors duration-200 ease-out"],{variants:{variant:{default:["border-border bg-background/95 backdrop-blur-xl","shadow-[var(--shadow-sm)]"],transparent:"bg-transparent border-transparent",blur:["bg-[var(--surface-glass)] dark:bg-[var(--surface-glass-dark)] border-[color:color-mix(in_srgb,var(--primary)_18%,var(--border))] backdrop-blur-[14px] shadow-[var(--shadow-glass)]","shadow-[var(--shadow-md)]"],solid:["border-border bg-background","shadow-[var(--shadow-xs)]"]},size:{sm:"h-12 px-3",md:"h-14 px-5",lg:"h-16 px-8"},sticky:{true:"sticky top-0 z-50",false:""}},defaultVariants:{variant:"default",size:"sm",sticky:!1}}),Xd=qt("flex items-center gap-2 font-semibold text-foreground",{variants:{size:{sm:"text-sm",md:"text-sm",lg:"text-base"}},defaultVariants:{size:"sm"}}),NT=qt("truncate text-muted-foreground",{variants:{size:{sm:"text-xs",md:"text-xs",lg:"text-sm"}},defaultVariants:{size:"sm"}}),Jd=qt("flex items-center",{variants:{align:{start:"justify-start",center:"justify-center",end:"justify-end"},gap:{sm:"gap-2",md:"gap-4",lg:"gap-6"},size:{sm:"text-sm",md:"text-sm",lg:"text-base"}},defaultVariants:{align:"center",gap:"md",size:"sm"}}),qd=qt(["relative inline-flex items-center rounded-lg font-medium text-muted-foreground","transition-colors duration-150 ease-out","hover:bg-accent/60 hover:text-foreground"],{variants:{active:{true:"bg-accent text-foreground",false:""},size:{sm:"h-8 px-2.5 text-sm",md:"h-9 px-3 text-sm",lg:"h-10 px-3.5 text-base"}},defaultVariants:{active:!1,size:"sm"}}),Qd=qt(["relative inline-flex items-center rounded-lg font-medium text-muted-foreground","transition-colors duration-150 ease-out","hover:bg-accent/60 hover:text-foreground","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-1"],{variants:{active:{true:["bg-accent text-foreground"],false:""},size:{sm:"h-8 px-2.5 text-sm",md:"h-9 px-3 text-sm",lg:"h-10 px-3.5 text-base"}},defaultVariants:{active:!1,size:"sm"}}),Zd=qt("flex items-center",{variants:{size:{sm:"gap-1.5",md:"gap-2",lg:"gap-2.5"}},defaultVariants:{size:"sm"}}),Ed=qt("w-px rounded-full bg-gradient-to-b from-transparent via-border to-transparent transition-opacity duration-300",{variants:{size:{sm:"mx-1.5 h-5",md:"mx-2 h-6",lg:"mx-2.5 h-7"}},defaultVariants:{size:"sm"}});var Dd={sm:"sm",md:"md",lg:"lg"};var jd=MT(null),to=()=>{return zT(jd)?.size??Dd.sm},eu=vr(({className:e,variant:t,size:r,sticky:o,...n},i)=>{let s=f(r)??Dd.md;return De(jd.Provider,{value:{size:s},children:De("nav",{ref:i,className:a(Yd({variant:t,size:s,sticky:o}),e),...n},void 0,!1,void 0,this)},void 0,!1,void 0,this)});eu.displayName="Navbar";var tu=vr(({className:e,logo:t,tagline:r,size:o,children:n,...i},s)=>{let l=to(),d=f(o??l)??l;return De("div",{ref:s,className:a(Xd({size:d}),e),...i,children:[t&&De("span",{className:"inline-flex shrink-0 items-center",children:t},void 0,!1,void 0,this),De("div",{className:"flex min-w-0 flex-col",children:[De("span",{className:"truncate",children:n},void 0,!1,void 0,this),r&&De("span",{className:a(NT({size:d})),children:r},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)});tu.displayName="NavbarBrand";var ru=vr(({className:e,align:t,gap:r,size:o,...n},i)=>{let s=to(),l=f(o??s)??s;return De("div",{ref:i,className:a(Jd({align:t,gap:r??l,size:l}),e),...n},void 0,!1,void 0,this)});ru.displayName="NavbarContent";var ou=vr(({className:e,active:t,size:r,...o},n)=>{let i=to(),s=f(r??i)??i;return De("div",{ref:n,className:a(qd({active:t,size:s}),e),"data-active":t,...o},void 0,!1,void 0,this)});ou.displayName="NavbarItem";var nu=vr(({className:e,active:t,href:r="#",size:o,...n},i)=>{let s=to(),l=f(o??s)??s;return De("a",{ref:i,href:r,className:a(Qd({active:t,size:l}),e),"data-active":t,...n},void 0,!1,void 0,this)});nu.displayName="NavbarLink";var au=vr(({className:e,size:t,...r},o)=>{let n=to(),i=f(t??n)??n;return De("div",{ref:o,className:a(Zd({size:i}),e),...r},void 0,!1,void 0,this)});au.displayName="NavbarActions";var iu=vr(({className:e,size:t,...r},o)=>{let n=to(),i=f(t??n)??n;return De("div",{ref:o,className:a(Ed({size:i}),e),...r},void 0,!1,void 0,this)});iu.displayName="NavbarDivider";import*as Be from"@radix-ui/react-navigation-menu";import{cva as Tr}from"class-variance-authority";import{createContext as LT,forwardRef as Qt,useContext as su}from"react";import{jsxDEV as We}from"react/jsx-dev-runtime";var lt={sm:F.sm,md:F.md,lg:F.lg},ii=LT(lt.md),lu=Tr("group/navigation-menu relative z-10 flex max-w-max flex-1 items-center justify-center"),mu=Tr("group relative flex flex-1 list-none items-center justify-center gap-0.5"),du=Tr(["group/trigger inline-flex w-max items-center justify-center gap-1 rounded-[var(--radius)] border border-transparent bg-transparent font-medium outline-none","transition-[color,background-color,border-color,box-shadow,transform,opacity,filter] duration-[var(--motion-duration-medium)] ease-[var(--motion-ease-standard)]","hover:bg-accent hover:text-accent-foreground","focus-visible:ring-2 focus-visible:ring-ring/50 focus-visible:ring-offset-1 focus-visible:ring-offset-background","disabled:pointer-events-none disabled:cursor-not-allowed disabled:bg-muted/40 disabled:text-muted-foreground/70","data-[state=open]:border-border data-[state=open]:bg-accent data-[state=open]:text-accent-foreground"],{variants:{size:{[lt.sm]:"h-8 px-3 py-1.5 text-xs",[lt.md]:"h-9 px-3 py-2 text-sm",[lt.lg]:"h-11 px-4 py-2.5 text-sm"}},defaultVariants:{size:lt.sm}}),uu=Tr(["left-0 top-0 w-full p-1 md:absolute md:w-auto","gs-nav-content"]),cu=Tr(["flex select-none items-center gap-2 rounded-[var(--radius-md)] leading-none no-underline outline-none","transition-[color,background-color,border-color,box-shadow,transform,opacity,filter] duration-[var(--motion-duration-medium)] ease-[var(--motion-ease-standard)]","hover:bg-accent/80 hover:text-accent-foreground","focus:bg-accent focus:text-accent-foreground","focus-visible:ring-2 focus-visible:ring-ring/50 focus-visible:outline-none"],{variants:{size:{[lt.sm]:"p-2 text-xs [&_svg:not([class*='size-'])]:size-3.5",[lt.md]:"p-2.5 text-sm [&_svg:not([class*='size-'])]:size-4",[lt.lg]:"p-3 text-sm [&_svg:not([class*='size-'])]:size-4"}},defaultVariants:{size:lt.sm}}),pu=Tr(["gs-nav-viewport origin-[top_center] relative mt-1.5 w-full overflow-hidden rounded-[var(--radius)] border border-border bg-popover text-popover-foreground shadow-[var(--shadow-lg)]","h-[var(--radix-navigation-menu-viewport-height)] md:w-[var(--radix-navigation-menu-viewport-width)]"]),fu=Tr(["gs-nav-indicator top-full z-[1] flex h-1.5 items-end justify-center overflow-hidden"]),RT=()=>We("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"relative top-px ml-0.5 size-3 transition-transform duration-[var(--motion-duration-medium)] ease-[var(--motion-ease-emphasized)] group-data-[state=open]/trigger:rotate-180","aria-hidden":"true",children:We("path",{d:"m6 9 6 6 6-6"},void 0,!1,void 0,this)},void 0,!1,void 0,this),gu=Qt(({className:e,children:t,size:r,viewport:o=!0,...n},i)=>{let s=f(r??lt.sm);return We(ii.Provider,{value:s,children:We(Be.Root,{ref:i,"data-viewport":o,className:a(lu(),e),...n,children:[t,o&&We(si,{},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)});gu.displayName="NavigationMenu";var bu=Qt(({className:e,...t},r)=>We(Be.List,{ref:r,className:a(mu(),e),...t},void 0,!1,void 0,this));bu.displayName="NavigationMenuList";var yu=Qt(({className:e,...t},r)=>We(Be.Item,{ref:r,className:a("relative",e),...t},void 0,!1,void 0,this));yu.displayName="NavigationMenuItem";var vu=Qt(({className:e,children:t,...r},o)=>{let n=su(ii);return We(Be.Trigger,{ref:o,className:a(du({size:n}),e),...r,children:[t,We(RT,{},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});vu.displayName="NavigationMenuTrigger";var Tu=Qt(({className:e,...t},r)=>We(Be.Content,{ref:r,className:a(uu(),e),...t},void 0,!1,void 0,this));Tu.displayName="NavigationMenuContent";var hu=Qt(({className:e,...t},r)=>{let o=su(ii);return We(Be.Link,{ref:r,className:a(cu({size:o}),e),...t},void 0,!1,void 0,this)});hu.displayName="NavigationMenuLink";var si=Qt(({className:e,...t},r)=>We("div",{className:"absolute top-full left-0 isolate z-50 flex justify-center",children:We(Be.Viewport,{ref:r,className:a(pu(),e),...t},void 0,!1,void 0,this)},void 0,!1,void 0,this));si.displayName="NavigationMenuViewport";var Pu=Qt(({className:e,...t},r)=>We(Be.Indicator,{ref:r,className:a(fu(),e),...t,children:We("div",{className:"relative top-[60%] size-2 rotate-45 rounded-tl-sm bg-border shadow-sm"},void 0,!1,void 0,this)},void 0,!1,void 0,this));Pu.displayName="NavigationMenuIndicator";import{cva as ro}from"class-variance-authority";import{Fragment as xT,forwardRef as CT,useCallback as hr,useEffect as Mu,useMemo as zu,useRef as wT,useState as Nu}from"react";import{jsxDEV as Pr}from"react/jsx-dev-runtime";var Mr={sm:"sm",md:"md",lg:"lg"},Fo={default:"default",error:"error",success:"success"},Io={single:"single",first:"first",middle:"middle",last:"last"},Lu=ro("relative inline-flex items-center",{variants:{size:{sm:"gap-1",md:"gap-1.5",lg:"gap-2"}},defaultVariants:{size:Mr.sm}}),Ru=ro("relative inline-flex items-center",{variants:{size:{sm:"gap-0",md:"gap-0",lg:"gap-0"},status:{default:"",error:"text-destructive",success:"text-success"}},defaultVariants:{size:Mr.sm,status:Fo.default}}),xu=ro(["relative flex items-center justify-center border bg-background","transition-[color,background-color,border-color,box-shadow,transform,opacity] duration-150","motion-reduce:transition-none"],{variants:{size:{sm:"h-8 w-8",md:"h-10 w-10",lg:"h-11 w-11"},filled:{true:"border-border bg-card",false:"border-input bg-background"},focused:{true:"scale-[1.02]",false:""},status:{default:"focus-within:border-ring",error:"border-destructive/70 focus-within:border-destructive focus-within:ring-2 focus-within:ring-destructive/20",success:"border-success/70 focus-within:border-success focus-within:ring-2 focus-within:ring-success/20"},disabled:{true:"border-border/80 bg-muted/45",false:""},position:{single:"rounded-[calc(var(--radius)-2px)]",first:"rounded-l-[calc(var(--radius)-2px)] rounded-r-none",middle:"rounded-none border-l-0",last:"rounded-r-[calc(var(--radius)-2px)] rounded-l-none border-l-0"}},defaultVariants:{size:Mr.sm,filled:!1,focused:!1,status:Fo.default,disabled:!1,position:Io.single}}),Cu=ro(["h-full w-full rounded-[inherit] bg-transparent text-center font-sans font-medium outline-none","transition-[color,opacity] duration-150 motion-reduce:transition-none","disabled:cursor-not-allowed disabled:text-muted-foreground"],{variants:{size:{sm:"text-xs",md:"text-sm",lg:"text-base"},status:{default:"caret-primary",error:"caret-destructive",success:"caret-success"},filled:{true:"text-foreground",false:"text-muted-foreground"}},defaultVariants:{size:Mr.sm,status:Fo.default,filled:!1}}),wu=ro(["pointer-events-none absolute inset-0 flex items-center justify-center select-none","font-medium text-muted-foreground/45","transition-[opacity,transform] duration-150 motion-reduce:transition-none"],{variants:{size:{sm:"text-sm",md:"text-base",lg:"text-lg"},focused:{true:"opacity-0 scale-95",false:"opacity-100 scale-100"}},defaultVariants:{size:Mr.sm,focused:!1}}),Hu=ro("select-none font-medium text-muted-foreground",{variants:{size:{sm:"px-0.5 text-sm",md:"px-0.5 text-base",lg:"px-1 text-lg"}},defaultVariants:{size:Mr.sm}});function HT(e){if(!Number.isFinite(e))return 6;return Math.max(1,Math.floor(e))}function li(e,t){let r=(e??"").split("").slice(0,t);if(r.length<t)return r.concat(Array(t-r.length).fill(""));return r}var ku=CT(({className:e,length:t=6,value:r,onChange:o,onComplete:n,size:i=Mr.sm,status:s=Fo.default,disabled:l=!1,autoFocus:d=!1,mask:m=!1,groupSize:c,separator:u,separatorChar:g="—",placeholder:v="•",inputMode:y="numeric",pattern:T="[0-9]*",...z},M)=>{let p=f(i),h=HT(t),L=wT([]),[H,S]=Nu(null),[B,x]=Nu(()=>li(r,h));Mu(()=>{if(r!==void 0){x(li(r,h));return}x((b)=>li(b.join(""),h))},[r,h]),Mu(()=>{if(d)L.current[0]?.focus()},[d]);let Y=zu(()=>{if(typeof c==="number"&&Number.isFinite(c)){let b=Math.floor(c);if(b<=0)return h;return Math.min(h,Math.max(1,b))}if(typeof u==="number"&&Number.isFinite(u)){let b=Math.floor(u);if(b<=0)return h;return Math.min(h,Math.max(1,b))}if(u)return Math.max(1,Math.floor(h/2));return h},[c,h,u]),K=zu(()=>{let b=[];for(let P=0;P<h;P+=Y){let C=Math.min(P+Y,h),oe=[];for(let _=P;_<C;_+=1)oe.push(_);b.push(oe)}return b},[Y,h]),X=hr((b)=>{let P=L.current[b];if(!P)return;P.focus(),P.select()},[]),j=hr((b)=>{x(b);let P=b.join("");if(o?.(P),b.every((C)=>C!=="")&&P.length===h)n?.(P)},[o,n,h]),ie=hr((b,P)=>{if(l)return;let oe=(y==="numeric"?P.replace(/\D/g,""):P).slice(-1),_=[...B];if(_[b]=oe,j(_),oe&&b<h-1)X(b+1)},[B,l,j,X,y,h]),V=hr((b,P)=>{if(l)return;if(P.key==="Backspace"){if(P.preventDefault(),B[b]){let C=[...B];C[b]="",j(C);return}if(b>0){let C=[...B];C[b-1]="",j(C),X(b-1)}return}if(P.key==="Delete"){if(P.preventDefault(),B[b]){let C=[...B];C[b]="",j(C)}return}if(P.key==="ArrowLeft"){if(P.preventDefault(),b>0)X(b-1);return}if(P.key==="ArrowRight"){if(P.preventDefault(),b<h-1)X(b+1);return}if(P.key==="Home"){P.preventDefault(),X(0);return}if(P.key==="End")P.preventDefault(),X(h-1)},[B,l,j,X,h]),re=hr((b,P)=>{if(P.preventDefault(),l)return;let C=P.clipboardData.getData("text"),_=(y==="numeric"?C.replace(/\D/g,""):C.replace(/\s/g,"")).split("");if(_.length===0)return;let Ce=[...B];for(let ae=0;ae<_.length;ae+=1){let Lt=b+ae;if(Lt>=h)break;Ce[Lt]=_[ae]??""}j(Ce);let G=Math.min(h-1,b+_.length-1);if(G<h-1){X(G+1);return}L.current[G]?.blur()},[B,l,j,X,y,h]),k=hr((b,P)=>{S(b),P.target.select()},[]),Z=hr(()=>{S(null)},[]),R=u!==void 0,W=g.length>0&&u!==!1&&(R||K.length>1);return Pr("div",{ref:M,className:a(Lu({size:p}),e),role:"group","aria-label":"One-time password input",...z,children:K.map((b,P)=>Pr(xT,{children:[Pr("div",{"data-gs-otp-group":"true",className:a(Ru({size:p,status:s})),children:b.map((C,oe)=>{let _=B[C]??"",Ce=H===C,G=Io.middle;if(b.length===1)G=Io.single;else if(oe===0)G=Io.first;else if(oe===b.length-1)G=Io.last;return Pr("div",{"data-gs-otp-slot":"true","data-disabled":l,className:a(xu({size:p,filled:Boolean(_),focused:Ce,status:s,disabled:l,position:G})),children:[Pr("input",{ref:(ae)=>{L.current[C]=ae},type:m?"password":"text",inputMode:y,pattern:T,maxLength:1,value:_,placeholder:"",disabled:l,"aria-invalid":s===Fo.error,"aria-label":`Digit ${C+1} of ${h}`,autoComplete:"one-time-code",onChange:(ae)=>ie(C,ae.target.value),onKeyDown:(ae)=>V(C,ae),onPaste:(ae)=>re(C,ae),onFocus:(ae)=>k(C,ae),onBlur:Z,className:a(Cu({size:p,status:s,filled:Boolean(_)}))},void 0,!1,void 0,this),!_&&Pr("div",{"data-gs-otp-placeholder":"true","aria-hidden":"true",className:a(wu({size:p,focused:Ce})),children:v},void 0,!1,void 0,this)]},`slot-${C}`,!0,void 0,this)})},void 0,!1,void 0,this),W&&P<K.length-1&&Pr("span",{"data-gs-otp-separator":"true",className:a(Hu({size:p})),children:g},void 0,!1,void 0,this)]},`group-${b[0]}-${b[b.length-1]}`,!0,void 0,this))},void 0,!1,void 0,this)});ku.displayName="OTPInput";import{createContext as KT,createElement as Ku,useCallback as mt,useContext as $T,useEffect as VT,useMemo as YT,useRef as $u,useState as XT}from"react";import*as pe from"@radix-ui/react-dialog";import{cva as Su}from"class-variance-authority";import{X as kT}from"lucide-react";import{createContext as ST,forwardRef as kn,useCallback as AT,useContext as BT,useEffect as IT,useState as Au}from"react";import{jsxDEV as $e,Fragment as UT}from"react/jsx-dev-runtime";var Ve={top:oo.top,right:oo.right,bottom:oo.bottom,left:oo.left},he={sm:F.sm,md:F.md,lg:F.lg,full:"full"},FT=160,OT={[Ve.top]:"gs-sheet-content gs-sheet-content-top",[Ve.right]:"gs-sheet-content gs-sheet-content-right",[Ve.bottom]:"gs-sheet-content gs-sheet-content-bottom",[Ve.left]:"gs-sheet-content gs-sheet-content-left"},GT={[Ve.right]:{[he.sm]:"sm:max-w-sm",[he.md]:"sm:max-w-md",[he.lg]:"sm:max-w-lg",[he.full]:"sm:max-w-full"},[Ve.left]:{[he.sm]:"sm:max-w-sm",[he.md]:"sm:max-w-md",[he.lg]:"sm:max-w-lg",[he.full]:"sm:max-w-full"},[Ve.top]:{[he.sm]:"sm:max-h-[30vh]",[he.md]:"sm:max-h-[50vh]",[he.lg]:"sm:max-h-[70vh]",[he.full]:"sm:max-h-full"},[Ve.bottom]:{[he.sm]:"sm:max-h-[30vh]",[he.md]:"sm:max-h-[50vh]",[he.lg]:"sm:max-h-[70vh]",[he.full]:"sm:max-h-full"}},Bu=Su(a("gs-sheet-overlay",Wt)),Iu=Su("fixed z-50 flex flex-col gap-4 border border-border bg-card p-6 shadow-[var(--shadow-xl)]",{variants:{side:{[Ve.top]:"inset-x-0 top-0 border-b",[Ve.bottom]:"inset-x-0 bottom-0 border-t",[Ve.left]:"inset-y-0 left-0 h-full w-3/4 border-r",[Ve.right]:"inset-y-0 right-0 h-full w-3/4 border-l"}},defaultVariants:{side:Ve.right}}),Fu=ST(!1),mi=({children:e,open:t,defaultOpen:r=!1,onOpenChange:o,...n})=>{let[i,s]=Au(r),l=t!==void 0,d=l?t:i,m=AT((c)=>{if(!l)s(c);o?.(c)},[l,o]);return $e(Fu.Provider,{value:d,children:$e(pe.Root,{open:d,onOpenChange:m,...n,children:e},void 0,!1,void 0,this)},void 0,!1,void 0,this)},WT=pe.Trigger,_T=pe.Close,Ou=pe.Portal,di=kn(({className:e,...t},r)=>$e(pe.Overlay,{className:a(Bu(),e),...t,ref:r},void 0,!1,void 0,this));di.displayName=pe.Overlay.displayName;var Sn=kn(({side:e=Ve.right,size:t=he.sm,showClose:r=!0,showOverlay:o=!0,portal:n=se,portalContainer:i,forceMount:s=!1,className:l,children:d,"aria-describedby":m,...c},u)=>{let g=BT(Fu),[v,y]=Au(s||g),T=f(t)??he.md,z=ge(),M=OT[e],p=GT[e][T];if(IT(()=>{if(s||g){y(!0);return}let H=setTimeout(()=>{y(!1)},z?0:FT);return()=>{clearTimeout(H)}},[s,g,z]),!(s||g||v))return null;let L=$e(UT,{children:[o?$e(di,{forceMount:!0},void 0,!1,void 0,this):null,$e(pe.Content,{ref:u,forceMount:!0,"aria-describedby":m,className:a(Iu({side:e}),M,p,l),...c,children:[d,r&&$e(pe.Close,{className:an,children:[$e(kT,{className:"size-4"},void 0,!1,void 0,this),$e("span",{className:"sr-only",children:"Close"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this);if(!n)return L;return $e(Ou,{forceMount:!0,container:i??void 0,children:L},void 0,!1,void 0,this)});Sn.displayName=pe.Content.displayName;var Gu=({className:e,...t})=>$e("div",{className:a("flex flex-col space-y-2 text-center sm:text-left",e),...t},void 0,!1,void 0,this);Gu.displayName="SheetHeader";var Wu=({className:e,...t})=>$e("div",{className:a("flex flex-col-reverse sm:flex-row sm:justify-end sm:gap-2.5",e),...t},void 0,!1,void 0,this);Wu.displayName="SheetFooter";var _u=kn(({className:e,...t},r)=>$e(pe.Title,{ref:r,className:a("font-semibold text-foreground text-lg",e),...t},void 0,!1,void 0,this));_u.displayName=pe.Title.displayName;var Uu=kn(({className:e,...t},r)=>$e(pe.Description,{ref:r,className:a("text-muted-foreground text-sm",e),...t},void 0,!1,void 0,this));Uu.displayName=pe.Description.displayName;import{jsxDEV as no}from"react/jsx-dev-runtime";var Vu=KT(null),Yu=250;function Xu({children:e,removeDelay:t=Yu}){let r=ge(),[o,n]=XT([]),i=$u(0),s=$u(new Map),l=mt((p)=>{let h=s.current.get(p);if(h===void 0)return;window.clearTimeout(h),s.current.delete(p)},[]),d=mt((p)=>{l(p),n((h)=>h.filter((L)=>L.id!==p))},[l]),m=mt((p)=>{l(p);let h=r?0:t;if(h<=0){d(p);return}let L=window.setTimeout(()=>{d(p)},h);s.current.set(p,L)},[l,r,t,d]),c=mt((p)=>{n((h)=>h.map((L)=>L.id===p?{...L,open:!1}:L)),m(p)},[m]),u=mt(()=>{n((p)=>{for(let h of p)m(h.id);return p.map((h)=>({...h,open:!1}))})},[m]),g=mt(()=>{return i.current+=1,`overlay-${i.current}`},[]),v=mt((p,h)=>{let L=g();l(L);let H={id:L,kind:"dialog",render:p,open:!0,options:h};return n((S)=>[...S,H]),{id:L,close:()=>c(L)}},[l,c,g]),y=mt((p,h)=>{let L=g();l(L);let H={id:L,kind:"sheet",render:p,open:!0,options:h};return n((S)=>[...S,H]),{id:L,close:()=>c(L)}},[l,c,g]),T=mt((p,h,L)=>{return v((H)=>Ku(p,{...h,close:H}),L)},[v]),z=mt((p,h,L)=>{return y((H)=>Ku(p,{...h,close:H}),L)},[y]);VT(()=>{return()=>{for(let p of s.current.values())window.clearTimeout(p);s.current.clear()}},[]);let M=YT(()=>({dialog:T,sheet:z,close:c,closeAll:u}),[u,c,T,z]);return no(Vu.Provider,{value:M,children:[e,o.map((p)=>no(JT,{entry:p,onClose:c},p.id,!1,void 0,this))]},void 0,!0,void 0,this)}Xu.displayName="OverlayProvider";function JT({entry:e,onClose:t}){let r=mt(()=>t(e.id),[e.id,t]);if(e.kind==="dialog")return no(Co,{open:e.open,onOpenChange:(o)=>!o&&r(),children:no(zn,{...e.options,children:e.render(r)},void 0,!1,void 0,this)},void 0,!1,void 0,this);return no(mi,{open:e.open,onOpenChange:(o)=>!o&&r(),children:no(Sn,{...e.options,children:e.render(r)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}function qT(){let e=$T(Vu);if(!e)throw Error("useOverlay must be used within an OverlayProvider");return e}import{cva as Oo}from"class-variance-authority";import{ChevronLeft as QT,ChevronRight as ZT,MoreHorizontal as ET}from"lucide-react";import{createContext as DT,forwardRef as Go,useContext as An}from"react";import{jsxDEV as Ye}from"react/jsx-dev-runtime";var je={sm:"sm",md:"md",lg:"lg"},Wo=DT(je.md),Ju=Oo("mx-auto flex w-full justify-center"),qu=Oo("flex flex-row items-center gap-1"),Qu=Oo(""),Bn=Oo("transition-[color,background-color,border-color,box-shadow,transform,opacity,filter] duration-[var(--motion-duration-medium)] ease-[var(--motion-ease-standard)] inline-flex items-center justify-center whitespace-nowrap rounded-[var(--radius)] font-medium focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:cursor-not-allowed disabled:border-transparent disabled:bg-muted/40 disabled:text-muted-foreground/70 hover:bg-accent hover:text-accent-foreground",{variants:{isActive:{true:"border border-border bg-background shadow-[var(--shadow-sm)]",false:""},size:{[je.sm]:"h-7 w-7 text-xs [&_svg]:size-3.5",[je.md]:"h-9 w-9 text-sm [&_svg]:size-4",[je.lg]:"h-10 w-10 text-sm [&_svg]:size-5"}},defaultVariants:{isActive:!1,size:je.md}}),Zu=Oo("flex items-center justify-center",{variants:{size:{[je.sm]:"h-7 w-7 [&_svg]:size-3.5",[je.md]:"h-9 w-9 [&_svg]:size-4",[je.lg]:"h-10 w-10 [&_svg]:size-5"}},defaultVariants:{size:je.md}}),Eu=({className:e,size:t=je.sm,...r})=>{let o=f(t)??je.md;return Ye(Wo.Provider,{value:o,children:Ye("nav",{"aria-label":"pagination",className:a(Ju(),e),...r},void 0,!1,void 0,this)},void 0,!1,void 0,this)};Eu.displayName="Pagination";var Du=Go(({className:e,...t},r)=>Ye("ul",{ref:r,className:a(qu(),e),...t},void 0,!1,void 0,this));Du.displayName="PaginationContent";var ju=Go(({className:e,...t},r)=>Ye("li",{ref:r,className:a(Qu(),e),...t},void 0,!1,void 0,this));ju.displayName="PaginationItem";var ec=Go(({className:e,isActive:t,...r},o)=>{let n=An(Wo);return Ye("button",{ref:o,type:"button","aria-current":t?"page":void 0,className:a(Bn({isActive:t,size:n}),e),...r},void 0,!1,void 0,this)});ec.displayName="PaginationLink";var tc=Go(({className:e,...t},r)=>{let o=An(Wo);return Ye("button",{ref:r,type:"button","aria-label":"Go to previous page",className:a(Bn({size:o}),"w-auto gap-1 pr-3 pl-2.5",e),...t,children:[Ye(QT,{},void 0,!1,void 0,this),Ye("span",{children:"Previous"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});tc.displayName="PaginationPrevious";var rc=Go(({className:e,...t},r)=>{let o=An(Wo);return Ye("button",{ref:r,type:"button","aria-label":"Go to next page",className:a(Bn({size:o}),"w-auto gap-1 pr-2.5 pl-3",e),...t,children:[Ye("span",{children:"Next"},void 0,!1,void 0,this),Ye(ZT,{},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});rc.displayName="PaginationNext";var oc=({className:e,...t})=>{let r=An(Wo);return Ye("span",{"aria-hidden":!0,className:a(Zu({size:r}),e),...t,children:[Ye(ET,{},void 0,!1,void 0,this),Ye("span",{className:"sr-only",children:"More pages"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)};oc.displayName="PaginationEllipsis";import*as Uo from"@radix-ui/react-progress";import{cva as nc}from"class-variance-authority";import{forwardRef as jT,useEffect as eh,useRef as th}from"react";import{jsxDEV as Fn}from"react/jsx-dev-runtime";var In={sm:"sm",md:"md",lg:"lg"},_o={default:"default",success:"success",warning:"warning",error:"error"},ac=nc("relative w-full overflow-hidden rounded-full bg-muted",{variants:{size:{[In.sm]:"h-2",[In.md]:"h-2.5",[In.lg]:"h-3"}},defaultVariants:{size:In.sm}}),ic=nc("h-full w-full flex-1 rounded-full transition-transform duration-[var(--motion-duration-fast)] ease-[var(--motion-ease-productive)]",{variants:{variant:{[_o.default]:"bg-primary",[_o.success]:"bg-success",[_o.warning]:"bg-warning",[_o.error]:"bg-destructive"}},defaultVariants:{variant:_o.default}});function rh(e){if(typeof e!=="number"||Number.isNaN(e))return 0;return Math.max(0,Math.min(100,e))}var sc=jT(({className:e,value:t,size:r,variant:o,showValue:n,...i},s)=>{let l=f(r),d=th(null),m=rh(t);return eh(()=>{let c=d.current;if(!c)return;c.style.setProperty("--gs-progress-value",`${m}%`)},[m]),Fn("div",{className:"flex w-full items-center gap-2",children:[Fn(Uo.Root,{ref:s,className:a(ac({size:l}),e),...i,children:Fn(Uo.Indicator,{ref:d,className:a(ic({variant:o}),"[transform:translateX(calc(-100%+var(--gs-progress-value,0%)))]")},void 0,!1,void 0,this)},void 0,!1,void 0,this),n&&Fn("span",{className:"font-medium text-muted-foreground text-sm tabular-nums",children:[m,"%"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)});sc.displayName=Uo.Root.displayName;import*as ao from"@radix-ui/react-radio-group";import{cva as lc}from"class-variance-authority";import{forwardRef as mc}from"react";import{jsxDEV as On}from"react/jsx-dev-runtime";var At={sm:"sm",md:"md",lg:"lg"},zr={default:"default",error:"error",success:"success"},dc=lc("grid gap-2"),uc=lc("transition-[color,background-color,border-color,box-shadow,transform,opacity,filter] duration-[var(--motion-duration-medium)] ease-[var(--motion-ease-standard)] aspect-square rounded-full border border-input bg-background ring-offset-background enabled:active:scale-[0.94] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 data-[state=checked]:border-primary data-[state=checked]:text-primary disabled:cursor-not-allowed disabled:border-border disabled:bg-muted/45 disabled:text-muted-foreground",{variants:{size:{[At.sm]:"h-4 w-4",[At.md]:"h-5 w-5",[At.lg]:"h-6 w-6"},status:{[zr.default]:"enabled:hover:border-primary/70",[zr.error]:"border-destructive enabled:hover:border-destructive/70 focus-visible:ring-destructive data-[state=checked]:border-destructive data-[state=checked]:text-destructive",[zr.success]:"border-success enabled:hover:border-success/70 focus-visible:ring-success data-[state=checked]:border-success data-[state=checked]:text-success"}},defaultVariants:{size:At.md,status:zr.default}}),oh={[At.sm]:"h-2 w-2",[At.md]:"h-2.5 w-2.5",[At.lg]:"h-3 w-3"},cc=mc(({className:e,...t},r)=>On(ao.Root,{ref:r,className:a(dc(),e),...t},void 0,!1,void 0,this));cc.displayName="RadioGroup";var pc=mc(({className:e,size:t=At.sm,status:r=zr.default,error:o=!1,...n},i)=>{let s=f(t),l=o?zr.error:r;return On(ao.Item,{ref:i,className:a(uc({size:s,status:l}),e),...n,children:On(ao.Indicator,{className:"flex items-center justify-center",children:On("span",{className:a("block rounded-full bg-current transition-transform duration-150",oh[s])},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)});pc.displayName="RadioGroupItem";import{cva as Wn}from"class-variance-authority";import{forwardRef as ci,useCallback as Ko,useEffect as yc,useRef as vc,useState as fc}from"react";import{jsxDEV as Gn}from"react/jsx-dev-runtime";var nh=10,ah=90,ui=50,Tc=Wn("flex h-full w-full",{variants:{direction:{horizontal:"flex-row",vertical:"flex-col"}},defaultVariants:{direction:"horizontal"}}),hc=Wn("relative basis-[var(--gs-panel-basis,50%)] overflow-hidden grow-0 shrink-0"),Pc=Wn("relative flex items-center justify-center bg-border transition-colors duration-150 hover:bg-primary/40 active:bg-primary focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",{variants:{direction:{horizontal:"h-full w-1 cursor-col-resize",vertical:"h-1 w-full cursor-row-resize"},withHandle:{true:"",false:""}},compoundVariants:[{direction:"horizontal",withHandle:!0,class:"w-3"},{direction:"vertical",withHandle:!0,class:"h-3"}],defaultVariants:{direction:"horizontal",withHandle:!1}}),Mc=Wn("z-10 flex items-center justify-center rounded-sm bg-border",{variants:{direction:{horizontal:"h-6 w-1",vertical:"h-1 w-6"}},defaultVariants:{direction:"horizontal"}});function zc(e){return Math.max(nh,Math.min(ah,e))}function Nc(e){return e.dataset.direction==="vertical"?"vertical":"horizontal"}function ih(e,t){let r=Array.from(e.children),o=r.indexOf(t),n;for(let s=o-1;s>=0;s-=1){let l=r[s];if(l instanceof HTMLElement&&l.matches("[data-panel]")){n=l;break}}let i;for(let s=o+1;s<r.length;s+=1){let l=r[s];if(l instanceof HTMLElement&&l.matches("[data-panel]")){i=l;break}}return{prevPanel:n,nextPanel:i}}function gc(e){if(!e)return null;let t=e.closest("[data-panel-group]");if(!(t instanceof HTMLElement))return null;let{prevPanel:r,nextPanel:o}=ih(t,e);if(!(r&&o))return null;return{group:t,direction:Nc(t),prevPanel:r,nextPanel:o}}function sh(e){if("touches"in e){let t=e.touches[0];if(!t)return null;return{x:t.clientX,y:t.clientY}}return{x:e.clientX,y:e.clientY}}function bc(e,t,r){let o=zc(r);e.style.setProperty("--gs-panel-basis",`${o}%`),t.style.setProperty("--gs-panel-basis",`${100-o}%`)}function lh(e){let t=e.style.getPropertyValue("--gs-panel-basis").trim();if(t.endsWith("%"))return Number.parseFloat(t)||ui;let r=e.dataset.defaultSize;if(r)return Number.parseFloat(r)||ui;return ui}function mh(e,t,r){if(t==="horizontal"){if(e==="ArrowLeft")return-r;if(e==="ArrowRight")return r;return 0}if(e==="ArrowUp")return-r;if(e==="ArrowDown")return r;return 0}var Lc=ci(({className:e,direction:t="horizontal",children:r,...o},n)=>Gn("div",{ref:n,"data-panel-group":"","data-direction":t,className:a(Tc({direction:t}),e),...o,children:r},void 0,!1,void 0,this));Lc.displayName="ResizablePanelGroup";var Rc=ci(({className:e,defaultSize:t=50,children:r,...o},n)=>{let i=vc(null),s=zc(t);yc(()=>{let d=i.current;if(!d)return;d.style.setProperty("--gs-panel-basis",`${s}%`)},[s]);let l=Ko((d)=>{if(i.current=d,typeof n==="function")n(d);else if(n)n.current=d},[n]);return Gn("div",{ref:l,"data-panel":"","data-default-size":s,className:a(hc(),e),...o,children:r},void 0,!1,void 0,this)});Rc.displayName="ResizablePanel";var xc=ci(({className:e,withHandle:t=!1,disabled:r=!1,...o},n)=>{let[i,s]=fc(!1),[l,d]=fc("horizontal"),m=vc(null);yc(()=>{let y=m.current;if(!y)return;let T=y.closest("[data-panel-group]");if(!(T instanceof HTMLElement))return;let z=()=>d(Nc(T));z();let M=new MutationObserver(z);return M.observe(T,{attributes:!0,attributeFilter:["data-direction"]}),()=>M.disconnect()},[]);let c=Ko(()=>{if(r)return;s(!0);let y=(z)=>{let M=sh(z);if(!M)return;let p=gc(m.current);if(!p)return;let h=p.group.getBoundingClientRect(),L=p.direction==="horizontal"?h.width:h.height;if(L<=0)return;let S=(p.direction==="horizontal"?M.x-h.left:M.y-h.top)/L*100;bc(p.prevPanel,p.nextPanel,S)},T=()=>{s(!1),document.removeEventListener("mousemove",y),document.removeEventListener("mouseup",T),document.removeEventListener("touchmove",y),document.removeEventListener("touchend",T)};document.addEventListener("mousemove",y),document.addEventListener("mouseup",T),document.addEventListener("touchmove",y),document.addEventListener("touchend",T)},[r]),u=Ko((y)=>{y.preventDefault(),c()},[c]),g=Ko((y)=>{if(y.touches.length===0)return;c()},[c]),v=Ko((y)=>{if(r)return;let T=gc(m.current??y.currentTarget);if(!T)return;let z=y.shiftKey?10:1,M=mh(y.key,T.direction,z);if(M===0)return;y.preventDefault();let p=lh(T.prevPanel);bc(T.prevPanel,T.nextPanel,p+M)},[r]);return Gn("div",{ref:(y)=>{if(m.current=y,typeof n==="function")n(y);else if(n)n.current=y},role:"separator","aria-orientation":l,"aria-valuemin":10,"aria-valuemax":90,"aria-valuenow":50,tabIndex:r?-1:0,"data-panel-resize-handle":"","data-dragging":i,onMouseDown:u,onTouchStart:g,onKeyDown:v,className:a(Pc({direction:l,withHandle:t}),i&&"bg-primary",r&&"pointer-events-none cursor-not-allowed bg-muted/40 text-muted-foreground/70",e),...o,children:t&&Gn("div",{className:a(Mc({direction:l}))},void 0,!1,void 0,this)},void 0,!1,void 0,this)});xc.displayName="ResizableHandle";import*as vt from"@radix-ui/react-scroll-area";import{cva as pi}from"class-variance-authority";import{forwardRef as Cc}from"react";import{jsxDEV as io}from"react/jsx-dev-runtime";var wc=pi("relative flex flex-col overflow-hidden"),Hc=pi("flex touch-none select-none transition-colors duration-150",{variants:{orientation:{vertical:"h-full w-2.5 border-l border-l-transparent p-px",horizontal:"h-2.5 flex-col border-t border-t-transparent p-px"}},defaultVariants:{orientation:"vertical"}}),kc=pi("relative flex-1 rounded-full bg-border"),Sc=Cc(({className:e,children:t,...r},o)=>io(vt.Root,{ref:o,className:a(wc(),e),...r,children:[io(vt.Viewport,{className:"min-h-0 w-full flex-1 rounded-[inherit]",children:t},void 0,!1,void 0,this),io(fi,{},void 0,!1,void 0,this),io(vt.Corner,{},void 0,!1,void 0,this)]},void 0,!0,void 0,this));Sc.displayName="ScrollArea";var fi=Cc(({className:e,orientation:t="vertical",...r},o)=>io(vt.ScrollAreaScrollbar,{ref:o,orientation:t,className:a(Hc({orientation:t}),e),...r,children:io(vt.ScrollAreaThumb,{className:a(kc())},void 0,!1,void 0,this)},void 0,!1,void 0,this));fi.displayName="ScrollBar";import{cva as bi}from"class-variance-authority";import{createContext as fh,forwardRef as yi,useCallback as gh,useContext as Ic,useRef as Bc,useState as bh}from"react";import{useLayoutEffect as Ac,useRef as so}from"react";var dh={x:0,y:0,width:0,height:0};function uh(e,t){let r=e.querySelector(t);if(!r)return null;return{x:r.offsetLeft,y:r.offsetTop,width:r.offsetWidth,height:r.offsetHeight}}function ch(e,t){let r=e.getBoundingClientRect(),o=t.getBoundingClientRect();return{x:r.left-o.left-t.clientLeft,y:r.top-o.top-t.clientTop,width:r.width,height:r.height}}function gi(e,t){let r=e.style;r.transform=`translate3d(${t.x}px,${t.y}px,0)`,r.width=`${t.width}px`,r.height=`${t.height}px`}function ph(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function _n(e,t,r){let o=ge(),n=so(!1),i=so(dh),s=so(r.activeSelector);s.current=r.activeSelector;let l=so(r.observeAttributes);l.current=r.observeAttributes;let d=so(o);d.current=o;let m=so(null);m.current=(c,u)=>{let g=uh(c,s.current);if(!g){u.style.opacity="0";return}if(ph(i.current,g)&&n.current)return;if(!n.current||d.current){u.style.transition="none",gi(u,g),u.style.opacity="1",u.offsetHeight,u.style.transition="",n.current=!0,i.current=g;return}let v=ch(u,c);u.style.transition="none",gi(u,v),u.style.opacity="1",u.offsetHeight,u.style.transition="",gi(u,g),i.current=g},Ac(()=>{r.activeKey;let c=e.current,u=t.current;if(!(c&&u))return;m.current?.(c,u)},[r.activeKey,o,e.current,t.current]),Ac(()=>{let c=e.current,u=t.current;if(!(c&&u))return;let g=0;function v(){if(!(c&&u))return;m.current?.(c,u)}function y(){cancelAnimationFrame(g),g=requestAnimationFrame(v)}let T=typeof ResizeObserver<"u"?new ResizeObserver(y):null;T?.observe(c);let z=l.current,M=null;if(z&&z.length>0)M=typeof MutationObserver<"u"?new MutationObserver(y):null,M?.observe(c,{subtree:!0,attributes:!0,attributeFilter:z});return()=>{cancelAnimationFrame(g),T?.disconnect(),M?.disconnect()}},[e.current,t.current])}var Un="pointer-events-none absolute top-0 left-0 z-0 rounded-[calc(var(--radius)-2px)] border border-border bg-accent shadow-[var(--shadow-xs)] transition-[transform,width,height,opacity] duration-[var(--motion-duration-fast)] ease-[var(--motion-ease-emphasized)]";import{jsxDEV as Nr}from"react/jsx-dev-runtime";var Pe={sm:"sm",md:"md",lg:"lg"},Fc=bi("relative inline-flex items-center rounded-[var(--radius)] border border-border bg-secondary p-1 text-muted-foreground",{variants:{size:{[Pe.sm]:"h-8 gap-0.5",[Pe.md]:"h-10 gap-0.5",[Pe.lg]:"h-11 gap-1"}},defaultVariants:{size:Pe.sm}}),Oc=bi(["relative z-10 inline-flex items-center justify-center rounded-[calc(var(--radius)-2px)]","cursor-pointer select-none outline-none","transition-[color,background-color,box-shadow] duration-[var(--motion-duration-fast)] ease-[var(--motion-ease-standard)]","focus-visible:ring-2 focus-visible:ring-ring","disabled:pointer-events-none disabled:text-muted-foreground/40","leading-none"],{variants:{size:{[Pe.sm]:"size-6",[Pe.md]:"size-8",[Pe.lg]:"size-9"},active:{true:"text-foreground",false:"text-muted-foreground hover:text-foreground/70"}},defaultVariants:{size:Pe.sm,active:!1}}),Gc=bi(["relative z-10 inline-flex items-center justify-center gap-1.5 rounded-[calc(var(--radius)-2px)]","cursor-pointer select-none whitespace-nowrap font-medium leading-none outline-none","transition-[color,background-color,box-shadow] duration-[var(--motion-duration-fast)] ease-[var(--motion-ease-standard)]","focus-visible:ring-2 focus-visible:ring-ring","disabled:pointer-events-none disabled:text-muted-foreground/40"],{variants:{size:{[Pe.sm]:"h-6 px-2.5 text-xs",[Pe.md]:"h-8 px-3 text-sm",[Pe.lg]:"h-9 px-4 text-sm"},active:{true:"text-foreground",false:"text-muted-foreground hover:text-foreground/70"}},defaultVariants:{size:Pe.sm,active:!1}}),Wc={[Pe.sm]:"size-3",[Pe.md]:"size-3.5",[Pe.lg]:"size-4"},yh=(e)=>{return},vi=fh({activeValue:"",onSelect:yh,size:Pe.sm,disabled:!1}),_c=yi(({className:e,value:t,defaultValue:r,onValueChange:o,size:n,disabled:i=!1,children:s,...l},d)=>{let m=f(n),[c,u]=bh(r??""),g=Bc(null),v=kt(d,g),y=Bc(null),T=t!==void 0?t:c,z=gh((M)=>{if(i)return;if(t===void 0)u(M);o?.(M)},[i,o,t]);return _n(g,y,{activeSelector:"button[data-state='active']",activeKey:T}),Nr(vi.Provider,{value:{activeValue:T,onSelect:z,size:m,disabled:i},children:Nr("div",{ref:v,role:"radiogroup",className:a(Fc({size:m}),i&&"pointer-events-none cursor-not-allowed border-transparent bg-muted/40 text-muted-foreground/70",e),...l,children:[Nr("span",{ref:y,"aria-hidden":!0,"data-slot":"indicator",className:Un,style:{opacity:0}},void 0,!1,void 0,this),s]},void 0,!0,void 0,this)},void 0,!1,void 0,this)});_c.displayName="SegmentedControl";var Uc=yi(({className:e,value:t,icon:r,disabled:o=!1,...n},i)=>{let{activeValue:s,onSelect:l,size:d,disabled:m}=Ic(vi),c=s===t,u=o||m;return Nr("button",{ref:i,type:"button",role:"radio","aria-checked":c,"aria-disabled":u||void 0,"data-state":c?"active":"inactive","data-value":t,disabled:u,onClick:()=>l(t),className:a(Oc({size:d,active:c}),e),...n,children:Nr("span",{className:a(Wc[d??Pe.sm],"[&>svg]:size-full"),children:r},void 0,!1,void 0,this)},void 0,!1,void 0,this)});Uc.displayName="SegmentedControlItem";var Kc=yi(({className:e,value:t,icon:r,disabled:o=!1,children:n,...i},s)=>{let{activeValue:l,onSelect:d,size:m,disabled:c}=Ic(vi),u=l===t,g=o||c;return Nr("button",{ref:s,type:"button",role:"radio","aria-checked":u,"aria-disabled":g||void 0,"data-state":u?"active":"inactive","data-value":t,disabled:g,onClick:()=>d(t),className:a(Gc({size:m,active:u}),e),...i,children:[r&&Nr("span",{className:a(Wc[m??Pe.sm],"[&>svg]:size-full"),children:r},void 0,!1,void 0,this),n]},void 0,!0,void 0,this)});Kc.displayName="SegmentedControlLabelItem";var vh=Pe;import*as Zt from"@radix-ui/react-popover";import{cva as Vc}from"class-variance-authority";import{Check as Th,ChevronDown as hh,X as Ph}from"lucide-react";import{Children as Mh,createContext as zh,forwardRef as Xo,isValidElement as hi,useCallback as Vo,useContext as Yc,useEffect as Kn,useId as $c,useMemo as Nh,useRef as Xc,useState as $o}from"react";import{jsxDEV as me,Fragment as Sh}from"react/jsx-dev-runtime";var fe={sm:"sm",md:"md",lg:"lg"},lo={default:"default",error:"error",success:"success"},Yo={trigger:"trigger",auto:"auto"},Lh={start:"start",center:"center",end:"end"},Jc=Vc(["group flex items-center gap-2 rounded-[var(--radius)] border border-input","bg-background text-sm text-foreground outline-none","placeholder:text-muted-foreground focus-visible:ring-2","data-[state=open]:ring-2","disabled:cursor-not-allowed disabled:border-border disabled:bg-muted/45 disabled:text-muted-foreground","data-[placeholder]:text-muted-foreground","[&_[data-slot=select-value]]:line-clamp-1"].join(" "),{variants:{size:{[fe.sm]:"h-8 px-2.5 text-xs",[fe.md]:"h-10 px-3.5",[fe.lg]:"h-11 px-4.5 text-sm"},status:{[lo.default]:"focus-visible:ring-primary data-[state=open]:ring-primary",[lo.error]:"border-destructive focus-visible:ring-destructive data-[state=open]:ring-destructive",[lo.success]:"border-success focus-visible:ring-success data-[state=open]:ring-success"}},defaultVariants:{size:fe.md,status:lo.default}}),qc=Vc(["max-h-96 overflow-y-auto overflow-x-hidden"].join(" "),{variants:{widthMode:{[Yo.trigger]:"w-[var(--radix-popover-trigger-width)]",[Yo.auto]:"w-max min-w-0"},size:{[fe.sm]:"text-xs",[fe.md]:"text-sm",[fe.lg]:"text-sm"}},defaultVariants:{widthMode:Yo.auto,size:fe.md}}),Rh={[fe.sm]:"min-h-7.5 py-1.5 px-2.5 pr-3 text-xs",[fe.md]:"min-h-9 py-2 px-3 pr-4.5 text-sm",[fe.lg]:"min-h-10 py-2.5 px-3.5 pr-5.5 text-sm"},xh={[fe.sm]:"px-2 py-1 text-xs",[fe.md]:"px-2 py-1.5 text-sm",[fe.lg]:"px-2.5 py-1.5 text-sm"},$n={[fe.sm]:"size-3.5",[fe.md]:"size-4",[fe.lg]:"size-4"};function Ch(e){if(!hi(e))return!1;let t=e.type;if(typeof t==="string"||typeof t!=="function"&&typeof t!=="object"||t===null)return!1;return Reflect.get(t,"displayName")==="SelectItem"}function Ti(e,t){if(e===null||e===void 0||typeof e==="boolean")return;if(Array.isArray(e)){for(let o of e)Ti(o,t);return}if(!hi(e))return;if(Ch(e)){let o=typeof e.props.value==="string"?e.props.value:"";if(o.length>0){let n=typeof e.props.label==="string"?e.props.label:Vn(e.props.children).trim();if(n.length>0)t.set(o,n)}}let r=e.props.children;if(r!==void 0)Ti(r,t)}function Vn(e){if(e===null||e===void 0||typeof e==="boolean")return"";if(typeof e==="string"||typeof e==="number")return String(e);if(Array.isArray(e))return e.map((t)=>Vn(t)).join("");if(hi(e))return Vn(e.props.children);return""}var Pi=zh(null);function Yn(){let e=Yc(Pi);if(!e)throw Error("Select components must be used within Select");return e}function Mi(e){let t=Yc(Pi);if(e)return e;return t?.triggerSize??fe.md}var wh=({children:e,value:t,defaultValue:r="",onValueChange:o,open:n,defaultOpen:i=!1,onOpenChange:s,disabled:l=!1})=>{let[d,m]=$o(fe.md),[c,u]=$o(!1),[g,v]=$o(r),[y,T]=$o(i),[,z]=$o(0),M=Xc(new Map),p=Nh(()=>{let V=new Map;return Ti(e,V),V},[e]),h=t!==void 0,L=n!==void 0,H=h?t:g,S=L?n:y,B=Vo((V)=>{if(!h)v(V);if(o?.(V),!L)T(!1);s?.(!1)},[h,L,o,s]),x=Vo((V)=>{if(l)return;if(!L)T(V);s?.(V)},[l,L,s]),Y=Vo((V,re)=>{if(M.current.get(V)!==re)M.current.set(V,re),z((Z)=>Z+1)},[]),K=Vo((V)=>{return M.current.get(V)??p.get(V)},[p]),X=$c(),j=$c(),ie={value:H,onValueChange:B,open:S,onOpenChange:x,triggerSize:d,setTriggerSize:m,triggerFullWidth:c,setTriggerFullWidth:u,disabled:l,triggerId:X,contentId:j,registerItem:Y,getLabel:K};return me(Pi.Provider,{value:ie,children:me(Zt.Root,{open:S,onOpenChange:x,children:e},void 0,!1,void 0,this)},void 0,!1,void 0,this)},Hh=({children:e,className:t})=>me("div",{role:"group",className:t,children:e},void 0,!1,void 0,this),kh=({placeholder:e})=>{let{value:t,getLabel:r}=Yn();if(!t)return e?me("span",{className:"text-muted-foreground",children:e},void 0,!1,void 0,this):null;let o=r(t);return me(Sh,{children:o??t},void 0,!1,void 0,this)},Qc=Xo(({className:e,children:t,size:r=fe.sm,status:o=lo.default,fullWidth:n=!1,clearable:i=!1,leadingIcon:s,indicatorIcon:l,renderValue:d,placeholder:m,onKeyDown:c,...u},g)=>{let v=Yn(),y=f(r)??r,T=v.setTriggerSize,z=v.setTriggerFullWidth;Kn(()=>{T(y)},[y,T]),Kn(()=>{z(n)},[n,z]);let M=v.value.length>0,p=i&&M&&!v.disabled,h=()=>{v.onValueChange("")},L;if(d)L=M?d(v.value):m?me("span",{className:"text-muted-foreground",children:m},void 0,!1,void 0,this):null;else L=t;let H=(S)=>{if(c?.(S),S.defaultPrevented)return;if(S.key==="ArrowDown"||S.key==="ArrowUp"||S.key==="Enter"||S.key===" "){if(!v.open)S.preventDefault(),v.onOpenChange(!0)}};return me(Zt.Trigger,{asChild:!0,children:me("button",{ref:g,type:"button",role:"combobox","aria-expanded":v.open,"aria-haspopup":"listbox","aria-controls":v.contentId,id:v.triggerId,disabled:v.disabled,"data-state":v.open?"open":"closed","data-placeholder":M?void 0:"",className:a(Jc({size:y,status:o}),n?"w-full":"w-auto",e),onKeyDown:H,...u,children:[s&&me("i",{className:"inline-flex shrink-0 items-center text-muted-foreground not-italic",children:s},void 0,!1,void 0,this),me("span",{"data-slot":"select-value",className:"min-w-0 flex-1 text-left",children:L},void 0,!1,void 0,this),me("span",{className:"inline-flex shrink-0 items-center gap-1 text-muted-foreground",children:[p&&me("span",{role:"button",tabIndex:-1,"aria-label":"Clear selection",onPointerDown:(S)=>{S.stopPropagation(),S.preventDefault(),h()},className:"inline-flex items-center justify-center rounded-[calc(var(--radius)-4px)] text-muted-foreground hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",children:me(Ph,{className:$n[y]},void 0,!1,void 0,this)},void 0,!1,void 0,this),l??me(hh,{className:a($n[y],"opacity-60 transition-transform duration-[var(--motion-duration-fast)] ease-[var(--motion-ease-productive)]",v.open&&"rotate-180")},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)});Qc.displayName="SelectTrigger";var Zc=Xo(({className:e,children:t,widthMode:r,size:o,align:n="start",side:i="bottom",sideOffset:s=4,portal:l=se,portalContainer:d,forceMount:m=!1,onKeyDown:c,...u},g)=>{let v=Yn(),y=Mi(o),T=r??Yo.auto,z=Xc(null),M=kt(g,z),p=Vo((H)=>{let S=z.current;if(!S)return;let B=Array.from(S.querySelectorAll('[role="option"]:not([data-disabled])'));if(B.length===0)return;let x=S.querySelector('[role="option"]:focus'),Y=x?B.indexOf(x):-1,K;switch(H){case"first":K=B[0];break;case"last":K=B[B.length-1];break;case"next":K=B[Y+1]??B[0];break;case"prev":K=B[Y-1]??B[B.length-1];break}K?.focus()},[]),h=(H)=>{if(c?.(H),H.defaultPrevented)return;switch(H.key){case"ArrowDown":H.preventDefault(),p("next");break;case"ArrowUp":H.preventDefault(),p("prev");break;case"Home":H.preventDefault(),p("first");break;case"End":H.preventDefault(),p("last");break;case"Escape":H.preventDefault(),v.onOpenChange(!1);break}};Kn(()=>{if(v.open)requestAnimationFrame(()=>p("first"))},[v.open,p]);let L=me(Zt.Content,{ref:M,id:v.contentId,role:"listbox","aria-labelledby":v.triggerId,side:i,align:n,sideOffset:s,forceMount:m?!0:void 0,onKeyDown:h,onOpenAutoFocus:(H)=>H.preventDefault(),className:a(Dr(),qc({widthMode:T,size:y}),"p-1",e),...u,children:t},void 0,!1,void 0,this);if(l)return me(Zt.Portal,{container:d??void 0,children:L},void 0,!1,void 0,this);return L});Zc.displayName="SelectContent";var Ec=Xo(({className:e,size:t,...r},o)=>{let n=Mi(t);return me("div",{ref:o,className:a("font-semibold text-foreground",xh[n],e),...r},void 0,!1,void 0,this)});Ec.displayName="SelectLabel";var Dc=Xo(({className:e,children:t,value:r,label:o,size:n,disabled:i=!1,...s},l)=>{let d=Yn(),m=Mi(n),c=d.value===r,u=d.registerItem,g=Vn(Mh.toArray(t)).trim();Kn(()=>{let T=o??(g.length>0?g:r);u(r,T)},[g,r,o,u]);let v=()=>{if(!i)d.onValueChange(r)},y=(T)=>{if(T.key==="Enter"||T.key===" ")T.preventDefault(),v()};return me("div",{ref:l,role:"option",tabIndex:i?void 0:-1,"aria-selected":c,"aria-disabled":i||void 0,"data-selected":c?"":void 0,"data-disabled":i?"":void 0,"data-value":r,className:a("relative flex w-full cursor-pointer select-none items-center gap-2","rounded-[calc(var(--radius)-3px)] outline-none","hover:bg-accent focus-visible:bg-accent focus-visible:text-accent-foreground","data-disabled:cursor-not-allowed data-disabled:border-transparent data-disabled:bg-muted/40 data-disabled:text-muted-foreground/70",Rh[m],c&&"bg-accent/50",e),onClick:v,onKeyDown:y,...s,children:[me("span",{className:a("flex shrink-0 items-center justify-center",$n[m]),children:c&&me(Th,{className:$n[m]},void 0,!1,void 0,this)},void 0,!1,void 0,this),me("span",{className:"min-w-0 flex-1 truncate",children:t},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});Dc.displayName="SelectItem";var jc=Xo(({className:e,...t},r)=>me("div",{ref:r,className:a("-mx-1 my-1 h-px bg-border",e),...t},void 0,!1,void 0,this));jc.displayName="SelectSeparator";import{cva as Ah}from"class-variance-authority";import{forwardRef as Bh}from"react";import{jsxDEV as Ih}from"react/jsx-dev-runtime";var Jo={horizontal:"horizontal",vertical:"vertical"},ep=Ah("shrink-0 bg-border",{variants:{orientation:{[Jo.horizontal]:"h-px w-full",[Jo.vertical]:"h-full w-px"}},defaultVariants:{orientation:Jo.horizontal}}),tp=Bh(({className:e,orientation:t=Jo.horizontal,decorative:r=!0,...o},n)=>{let i=r?{role:"none"}:{role:"separator","aria-orientation":t};return Ih("div",{ref:n,className:a(ep({orientation:t}),e),...i,...o},void 0,!1,void 0,this)});tp.displayName="Separator";import{cva as Xn}from"class-variance-authority";import{forwardRef as Jn}from"react";import{jsxDEV as qn}from"react/jsx-dev-runtime";var Me={sm:"sm",md:"md",lg:"lg"},rp=Xn("animate-pulse rounded-[var(--radius)] bg-muted"),op=Xn("w-full",{variants:{size:{[Me.sm]:"h-3",[Me.md]:"h-4",[Me.lg]:"h-5"}},defaultVariants:{size:Me.md}}),np=Xn("",{variants:{size:{[Me.sm]:"h-8 w-8",[Me.md]:"h-10 w-10",[Me.lg]:"h-12 w-12"}},defaultVariants:{size:Me.md}}),ap=Xn("",{variants:{size:{[Me.sm]:"h-8 w-20",[Me.md]:"h-9 w-24",[Me.lg]:"h-10 w-28"}},defaultVariants:{size:Me.md}}),qo=Jn(({className:e,circle:t=!1,...r},o)=>qn("div",{ref:o,className:a(rp(),t&&"rounded-full",e),...r},void 0,!1,void 0,this));qo.displayName="Skeleton";var ip=Jn(({className:e,size:t=Me.sm,...r},o)=>{let n=f(t)??Me.md;return qn(qo,{ref:o,className:a(op({size:n}),e),...r},void 0,!1,void 0,this)});ip.displayName="SkeletonText";var sp=Jn(({className:e,size:t=Me.sm,...r},o)=>{let n=f(t)??Me.md;return qn(qo,{ref:o,circle:!0,className:a(np({size:n}),e),...r},void 0,!1,void 0,this)});sp.displayName="SkeletonAvatar";var lp=Jn(({className:e,size:t=Me.sm,...r},o)=>{let n=f(t)??Me.md;return qn(qo,{ref:o,className:a(ap({size:n}),e),...r},void 0,!1,void 0,this)});lp.displayName="SkeletonButton";import*as Et from"@radix-ui/react-slider";import{cva as Zn}from"class-variance-authority";import{forwardRef as Fh}from"react";import{jsxDEV as Qn}from"react/jsx-dev-runtime";var mo={sm:"sm",md:"md",lg:"lg"},mp=Zn("relative flex w-full touch-none select-none items-center"),dp=Zn("relative w-full grow overflow-hidden rounded-full bg-secondary"),up=Zn("absolute h-full bg-primary"),cp=Zn("transition-[color,background-color,border-color,box-shadow,transform,opacity,filter] duration-[var(--motion-duration-medium)] ease-[var(--motion-ease-standard)] block cursor-grab rounded-full border-2 border-primary bg-background ring-offset-background active:cursor-grabbing focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:cursor-not-allowed disabled:border-border disabled:bg-muted/40 disabled:text-muted-foreground/70"),Oh={[mo.sm]:"h-2",[mo.md]:"h-2.5",[mo.lg]:"h-3"},Gh={[mo.sm]:"h-4 w-4",[mo.md]:"h-5 w-5",[mo.lg]:"h-6 w-6"},pp=Fh(({className:e,size:t,...r},o)=>{let n=f(t);return Qn(Et.Root,{ref:o,className:a(mp(),e),...r,children:[Qn(Et.Track,{"data-slider-track":!0,className:a(dp(),Oh[n]),children:Qn(Et.Range,{className:a(up())},void 0,!1,void 0,this)},void 0,!1,void 0,this),(r.defaultValue??r.value??[0]).map((i,s)=>Qn(Et.Thumb,{"data-slider-thumb":!0,className:a(cp(),Gh[n])},`thumb-${String(s)}`,!1,void 0,this))]},void 0,!0,void 0,this)});pp.displayName="Slider";import{cva as Se}from"class-variance-authority";import{forwardRef as Kh,useCallback as zi,useEffect as Li,useLayoutEffect as $h,useMemo as uo,useRef as Tt,useState as Ni}from"react";import{useCallback as fp,useSyncExternalStore as Wh}from"react";var _h=()=>!1,Uh=()=>{return};function gp(e){let t=fp((o)=>{if(typeof window>"u")return Uh;let n=window.matchMedia(e);return n.addEventListener("change",o),()=>n.removeEventListener("change",o)},[e]),r=fp(()=>{if(typeof window>"u")return!1;return window.matchMedia(e).matches},[e]);return Wh(t,r,_h)}import{jsxDEV as U,Fragment as Ap}from"react/jsx-dev-runtime";var Vh="(max-width: 639px)",w={sm:"sm",md:"md",lg:"lg"},Ri={sm:"sm",md:"sm",lg:"md"},En={idle:"idle",loading:"loading",error:"error"},Yh=160,bp=Se("z-[120] bg-black/40"),yp=Se(["gs-spotlight-content fixed inset-x-0 top-[15vh] z-[120] w-full mx-auto","rounded-[calc(var(--radius)+6px)] border border-border bg-popover shadow-2xl","overflow-hidden"],{variants:{size:{[w.sm]:"max-w-md",[w.md]:"max-w-xl",[w.lg]:"max-w-2xl"}},defaultVariants:{size:w.md}}),vp=Se(["gs-sheet-content gs-sheet-content-bottom","fixed inset-x-0 bottom-0 z-[120] w-full flex flex-col","rounded-t-2xl border-t border-x border-border bg-popover shadow-2xl","overflow-hidden"]),Tp=Se("flex items-center border-b border-border",{variants:{size:{[w.sm]:"gap-2 px-3 py-2",[w.md]:"gap-3 px-4 py-3",[w.lg]:"gap-3 px-5 py-3.5"}},defaultVariants:{size:w.md}}),hp=Se(["w-full flex-1 bg-transparent text-foreground","placeholder:text-muted-foreground","outline-none border-none"],{variants:{size:{[w.sm]:"text-sm",[w.md]:"text-base",[w.lg]:"text-lg"}},defaultVariants:{size:w.md}}),Pp=Se("text-muted-foreground shrink-0",{variants:{size:{[w.sm]:"size-3.5",[w.md]:"size-4",[w.lg]:"size-5"}},defaultVariants:{size:w.md}}),Mp=Se("overflow-y-auto py-1",{variants:{size:{[w.sm]:"max-h-64",[w.md]:"max-h-80",[w.lg]:"max-h-96"}},defaultVariants:{size:w.md}}),zp=Se("font-semibold text-muted-foreground uppercase tracking-wide",{variants:{size:{[w.sm]:"px-2.5 py-1.5 text-[11px]",[w.md]:"px-3 py-2 text-xs",[w.lg]:"px-3.5 py-2 text-xs"}},defaultVariants:{size:w.md}}),Np=Se(["group flex items-center cursor-pointer rounded-lg","text-foreground","transition-[color,background-color,box-shadow] duration-100","active:scale-[0.98]"],{variants:{size:{[w.sm]:"gap-2 px-2.5 py-1.5 mx-1.5",[w.md]:"gap-3 px-3 py-2 mx-2",[w.lg]:"gap-3 px-3.5 py-2.5 mx-2"},selected:{true:"bg-primary/10",false:"hover:bg-muted"},disabled:{true:"text-muted-foreground cursor-not-allowed pointer-events-none bg-muted/40",false:""}},defaultVariants:{size:w.md,selected:!1,disabled:!1}}),Lp=Se("shrink-0",{variants:{size:{[w.sm]:"size-3.5",[w.md]:"size-4",[w.lg]:"size-5"},selected:{true:"text-primary",false:"text-muted-foreground"}},defaultVariants:{size:w.md,selected:!1}}),Rp=Se("flex-1 min-w-0"),xp=Se("font-medium truncate",{variants:{size:{[w.sm]:"text-xs",[w.md]:"text-sm",[w.lg]:"text-sm"}},defaultVariants:{size:w.md}}),Cp=Se("text-muted-foreground truncate",{variants:{size:{[w.sm]:"text-[11px]",[w.md]:"text-xs",[w.lg]:"text-xs"}},defaultVariants:{size:w.md}}),wp=Se("flex items-center gap-1 text-muted-foreground shrink-0",{variants:{size:{[w.sm]:"text-[11px]",[w.md]:"text-[11px]",[w.lg]:"text-xs"}},defaultVariants:{size:w.md}}),Dn=Se("flex flex-col items-center justify-center text-muted-foreground",{variants:{size:{[w.sm]:"py-6 min-h-20",[w.md]:"py-8 min-h-24",[w.lg]:"py-10 min-h-28"},state:{empty:"text-muted-foreground",loading:"text-muted-foreground",error:"text-destructive"}},defaultVariants:{size:w.md,state:"empty"}}),jn=Se("font-medium",{variants:{size:{[w.sm]:"text-xs",[w.md]:"text-sm",[w.lg]:"text-sm"}},defaultVariants:{size:w.md}}),Hp=Se("mt-1",{variants:{size:{[w.sm]:"text-[11px]",[w.md]:"text-xs",[w.lg]:"text-xs"}},defaultVariants:{size:w.md}}),kp=(e,t)=>{if(!t)return!0;let r=t.toLowerCase();return e.title.toLowerCase().includes(r)||(e.description?.toLowerCase().includes(r)??!1)||(e.keywords?.some((o)=>o.toLowerCase().includes(r))??!1)};function Xh(e,t){let r=Tt(null),o=Tt(null),n=Tt(null),i=Tt(!0),s=Tt(t);return Li(()=>{if(e)i.current=!0},[e]),$h(()=>{let l=r.current,d=o.current,m=n.current;if(!(l&&d&&m))return;let c=d.scrollHeight,u=s.current!==t;if(s.current=t,i.current)l.style.transition="none",l.style.height=`${c}px`,m.style.transition="none",m.style.opacity="1",requestAnimationFrame(()=>{l.style.transition="",m.style.transition="",i.current=!1});else if(u)m.style.transition="none",m.style.opacity="0",l.style.height=`${c}px`,requestAnimationFrame(()=>{m.style.transition="opacity 200ms var(--motion-ease-emphasized)",m.style.opacity="1"});else l.style.height=`${c}px`}),{wrapperRef:r,contentRef:o,viewRef:n}}function Jh({action:e,size:t,isActive:r,isDisabled:o,isMac:n,onClick:i,renderItem:s,index:l}){let d=e.shortcut?ea(e.shortcut,n):[],m=new Map,c=d.map((u)=>{let g=(m.get(u)??0)+1;return m.set(u,g),{token:u,key:`${u}-${g}`}});return U("div",{role:"option","aria-selected":r,"aria-disabled":o,tabIndex:o?-1:0,onClick:i,onKeyDown:(u)=>{if(u.key==="Enter"||u.key===" ")u.preventDefault(),i()},className:a(Np({size:t,selected:r,disabled:o})),children:s?s(e,{active:r,disabled:o,index:l}):U(Ap,{children:[e.icon&&U("span",{className:a(Lp({size:t,selected:r})),children:e.icon},void 0,!1,void 0,this),U("div",{className:a(Rp()),children:[U("div",{className:a(xp({size:t})),children:e.title},void 0,!1,void 0,this),e.description&&U("div",{className:a(Cp({size:t})),children:e.description},void 0,!1,void 0,this)]},void 0,!0,void 0,this),c.length>0&&U("div",{className:a(wp({size:t})),children:c.map((u)=>U("kbd",{className:a(Qr({size:Ri[t]})),children:u.token},u.key,!1,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}var Sp=Kh(({className:e,open:t,onOpenChange:r,actions:o,onActionSelect:n,value:i,defaultValue:s="",onValueChange:l,placeholder:d="Search commands, pages, or actions...",size:m=w.sm,status:c=En.idle,statusMessage:u,emptyText:g="No command found for this query.",hotkey:v,portal:y=!0,filterFn:T,renderItem:z,footer:M,...p},h)=>{let L=Tt(null),H=Tt(null),[S,B]=Ni(s),[x,Y]=Ni(0),[K,X]=Ni(t),{isMac:j}=Bo(),ie=gp(Vh),V=ge(),re=uo(()=>v&&v.length>0?v.join("+"):null,[v]),k=uo(()=>v?ea(v,j):[],[v,j]),Z=uo(()=>{let A=new Map;return k.map((ue)=>{let Ne=(A.get(ue)??0)+1;return A.set(ue,Ne),{token:ue,key:`${ue}-${Ne}`}})},[k]);xo(re??"",()=>r(!t),{enabled:!!re});let R=i!==void 0?i:S,W=T??kp,b=uo(()=>o.filter((A)=>W(A,R)),[o,R,W]),P=uo(()=>b.flatMap((A,ue)=>A.disabled?[]:[ue]),[b]),C=uo(()=>{let A=new Map,ue=new Map,Ne=0;for(let N of b){let E=N.group??"";if(!A.has(E))A.set(E,[]);A.get(E)?.push(N),ue.set(N,Ne++)}return{groups:A,indexMap:ue}},[b]),oe=Tt(!1),_=Tt(t);if(_.current!==t)oe.current=!t,_.current=t;let Ce=Tt({query:R,status:c,statusMessage:u??null,filtered:b,grouped:C,activeIndex:x,emptyText:g});if(!oe.current)Ce.current={query:R,status:c,statusMessage:u??null,filtered:b,grouped:C,activeIndex:x,emptyText:g};let G=Ce.current,ae=G.status===En.loading?"loading":G.status===En.error?"error":G.filtered.length===0?"empty":"results",{wrapperRef:Lt,contentRef:ot,viewRef:$}=Xh(t,ae);Li(()=>{if(t)Y(0)},[t]),Li(()=>{if(t){X(!0);return}let A=setTimeout(()=>{X(!1)},V?0:Yh);return()=>{clearTimeout(A)}},[t,V]);let de=t||K,ze=zi((A)=>{B(A.target.value),l?.(A.target.value),Y(0)},[l]),be=zi((A)=>{H.current?.querySelectorAll('[role="option"]')[A]?.scrollIntoView({block:"nearest"})},[]),Xe=zi((A)=>{if(A.key==="ArrowDown"||A.key==="ArrowUp"){if(A.preventDefault(),P.length===0)return;let ue=P.indexOf(x),Ne=A.key==="ArrowDown"?P[(ue+1)%P.length]:P[(ue-1+P.length)%P.length];if(Ne!==void 0)Y(Ne),be(Ne);return}if(A.key==="Enter"){A.preventDefault();let ue=b[x];if(ue&&!ue.disabled)n(ue,x)}},[x,P,b,n,be]),ct=U(Ap,{children:[U(wo,{forceMount:!0,"data-testid":"spotlight-overlay",className:a(bp()),onClick:()=>r(!1)},void 0,!1,void 0,this),U(Za,{...p,ref:h,forceMount:!0,className:a(ie?vp():yp({size:m}),e),"aria-label":"Spotlight search","aria-describedby":void 0,onOpenAutoFocus:(A)=>{A.preventDefault(),L.current?.focus()},onCloseAutoFocus:(A)=>A.preventDefault(),onKeyDown:Xe,children:[U(Nn,{className:"sr-only",children:"Spotlight search"},void 0,!1,void 0,this),ie&&U("div",{className:"flex justify-center pt-2 pb-1",children:U("div",{className:"h-1 w-8 rounded-full bg-muted-foreground/30"},void 0,!1,void 0,this)},void 0,!1,void 0,this),U("div",{className:a(Tp({size:m})),children:[U("svg",{className:a(Pp({size:m})),fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:U("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"},void 0,!1,void 0,this)},void 0,!1,void 0,this),U("input",{ref:L,type:"text",value:G.query,onChange:ze,placeholder:d,"aria-label":"Search",className:a(hp({size:m}))},void 0,!1,void 0,this),!ie&&(v?U("div",{className:"flex items-center gap-1",children:Z.map((A)=>U("kbd",{className:a(Qr({size:Ri[m]})),children:A.token},A.key,!1,void 0,this))},void 0,!1,void 0,this):U("kbd",{className:a(Qr({size:Ri[m]})),children:"ESC"},void 0,!1,void 0,this))]},void 0,!0,void 0,this),U("div",{ref:Lt,className:"overflow-hidden transition-[height] duration-200 ease-[var(--motion-ease-emphasized)] motion-reduce:transition-none",children:U("div",{ref:ot,children:U("div",{ref:$,children:[ae==="loading"&&U("div",{className:a(Dn({size:m,state:"loading"})),children:[U(Ot,{size:"sm",className:"mb-2 text-muted-foreground"},void 0,!1,void 0,this),U("div",{className:a(jn({size:m})),children:"Searching commands..."},void 0,!1,void 0,this)]},void 0,!0,void 0,this),ae==="error"&&U("div",{className:a(Dn({size:m,state:"error"})),children:[U("div",{className:a(jn({size:m})),children:"Search failed"},void 0,!1,void 0,this),G.statusMessage&&U("div",{className:a(Hp({size:m})),children:G.statusMessage},void 0,!1,void 0,this)]},void 0,!0,void 0,this),ae==="empty"&&U("div",{className:a(Dn({size:m,state:"empty"})),children:U("div",{className:a(jn({size:m})),children:G.emptyText},void 0,!1,void 0,this)},void 0,!1,void 0,this),ae==="results"&&U("div",{ref:H,role:"listbox","aria-label":"Search results",className:a(Mp({size:m}),ie&&"max-h-none min-h-0 flex-1"),children:Array.from(G.grouped.groups.entries()).map(([A,ue])=>U("div",{children:[A&&U("div",{className:a(zp({size:m})),children:A},void 0,!1,void 0,this),ue.map((Ne)=>{let N=G.grouped.indexMap.get(Ne)??0;return U(Jh,{action:Ne,size:m,isActive:N===G.activeIndex,isDisabled:Ne.disabled??!1,isMac:j,index:N,onClick:()=>{if(!Ne.disabled)n(Ne,N)},renderItem:z},Ne.id,!1,void 0,this)})]},A||"__ungrouped__",!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),M&&U("div",{className:"border-border border-t px-3 py-2",children:M},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this);return U(Co,{open:t,onOpenChange:r,children:de?y?U(Mn,{forceMount:!0,children:ct},void 0,!1,void 0,this):ct:null},void 0,!1,void 0,this)});Sp.displayName="Spotlight";import{cva as Lr}from"class-variance-authority";import{Check as qh}from"lucide-react";import{forwardRef as Rr}from"react";import{jsxDEV as Dt}from"react/jsx-dev-runtime";var Bp=Lr("flex w-full",{variants:{orientation:{horizontal:"flex-row items-start",vertical:"flex-col"}},defaultVariants:{orientation:"horizontal"}}),Ip=Lr("flex",{variants:{orientation:{horizontal:"flex-1 flex-col items-center",vertical:"gap-4 flex-row"}},defaultVariants:{orientation:"horizontal"}}),Fp=Lr(["relative z-10 flex shrink-0 items-center justify-center rounded-full border-2 font-semibold","transition-[color,background-color,border-color,box-shadow] duration-200 ease-out"],{variants:{status:{incomplete:["border-border bg-card text-muted-foreground","shadow-[var(--shadow-xs)]"],current:["border-primary bg-primary text-primary-foreground","shadow-[var(--glow-brand-sm)]"],complete:["border-success/60 bg-success text-success-foreground","shadow-[var(--shadow-sm)]","[&>svg]:gs-step-check-animated"]},size:{sm:"h-8 w-8 text-xs",md:"h-10 w-10 text-sm",lg:"h-12 w-12 text-base"},animated:{true:"gs-step-indicator-animated",false:""}},defaultVariants:{status:"incomplete",size:"sm",animated:!0}}),Op=Lr("rounded-full transition-[background-color,opacity] duration-300 ease-out",{variants:{orientation:{horizontal:"mx-2 mt-5 h-1 flex-1",vertical:"ml-5 min-h-10 w-1"},status:{incomplete:"bg-border/60",complete:"bg-gradient-to-r from-primary to-success"},size:{sm:"opacity-80",md:"",lg:"opacity-95"},animated:{true:"",false:""}},compoundVariants:[{status:"complete",orientation:"horizontal",animated:!0,className:"gs-connector-fill-animated"},{status:"complete",orientation:"vertical",animated:!0,className:"gs-connector-fill-vertical-animated"}],defaultVariants:{orientation:"horizontal",status:"incomplete",size:"sm",animated:!0}}),Gp=Lr("flex flex-col",{variants:{orientation:{horizontal:"mt-3 items-center text-center",vertical:"flex-1 pb-8 last:pb-0"}},defaultVariants:{orientation:"horizontal"}}),Wp=Lr("font-medium transition-colors duration-200 ease-out",{variants:{status:{incomplete:"text-muted-foreground",current:"text-foreground",complete:"text-foreground"},size:{sm:"text-sm",md:"text-sm",lg:"text-base"}},defaultVariants:{status:"incomplete",size:"sm"}}),_p=Lr("text-muted-foreground transition-colors duration-200 ease-out",{variants:{size:{sm:"text-sm",md:"text-xs",lg:"text-sm"}},defaultVariants:{size:"sm"}});var Up=Rr(({className:e,orientation:t="horizontal",activeStep:r,...o},n)=>{return Dt("div",{ref:n,role:"group","aria-label":"Progress steps",className:a(Bp({orientation:t}),e),"data-orientation":t,"data-active-step":r,...o},void 0,!1,void 0,this)});Up.displayName="Stepper";var Kp=Rr(({className:e,orientation:t="horizontal",isLast:r,isCurrent:o,...n},i)=>{return Dt("div",{ref:i,className:a(Ip({orientation:t}),e),"data-last":r,"aria-current":o?"step":void 0,...n},void 0,!1,void 0,this)});Kp.displayName="Step";var $p=Rr(({className:e,status:t="incomplete",size:r="sm",icon:o,step:n,children:i,animated:s=!0,...l},d)=>{let m=f(r);return Dt("div",{ref:d,className:a(Fp({status:t,size:m,animated:s}),e),"data-status":t,"aria-hidden":"true",...l,children:t==="complete"?o||Dt(qh,{className:"size-4",strokeWidth:3},void 0,!1,void 0,this):i||n},void 0,!1,void 0,this)});$p.displayName="StepIndicator";var Vp=Rr(({className:e,orientation:t="horizontal",status:r="incomplete",size:o="sm",animated:n=!0,...i},s)=>{let l=f(o);return Dt("div",{ref:s,className:a(Op({orientation:t,status:r,size:l,animated:n}),e),"data-status":r,...i},void 0,!1,void 0,this)});Vp.displayName="StepConnector";var Yp=Rr(({className:e,orientation:t="horizontal",...r},o)=>{return Dt("div",{ref:o,className:a(Gp({orientation:t}),e),...r},void 0,!1,void 0,this)});Yp.displayName="StepContent";var Xp=Rr(({className:e,status:t="incomplete",size:r="sm",...o},n)=>{let i=f(r);return Dt("h4",{ref:n,className:a(Wp({status:t,size:i}),e),...o},void 0,!1,void 0,this)});Xp.displayName="StepTitle";var Jp=Rr(({className:e,size:t="sm",...r},o)=>{let n=f(t);return Dt("p",{ref:o,className:a(_p({size:n}),e),...r},void 0,!1,void 0,this)});Jp.displayName="StepDescription";import*as ta from"@radix-ui/react-switch";import{cva as Qh}from"class-variance-authority";import{forwardRef as Zh}from"react";import{jsxDEV as qp}from"react/jsx-dev-runtime";var et={sm:"sm",md:"md",lg:"lg"},xr={default:"default",error:"error",success:"success"},Qp=Qh("transition-[color,background-color,border-color,box-shadow,transform,opacity,filter] duration-[var(--motion-duration-medium)] ease-[var(--motion-ease-standard)] relative inline-flex shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent bg-input enabled:active:scale-[0.96] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:bg-input/70",{variants:{size:{[et.sm]:"h-4.5 w-8",[et.md]:"h-5 w-9",[et.lg]:"h-6 w-11"},status:{[xr.default]:"disabled:data-[state=checked]:bg-muted-foreground/40 enabled:data-[state=unchecked]:hover:bg-input/80 data-[state=checked]:bg-primary data-[state=checked]:hover:bg-primary/90",[xr.error]:"bg-destructive/30 disabled:bg-destructive/25 disabled:data-[state=checked]:bg-destructive/50 enabled:data-[state=unchecked]:hover:bg-destructive/45 focus-visible:ring-destructive data-[state=checked]:bg-destructive data-[state=checked]:hover:bg-destructive/90",[xr.success]:"disabled:bg-success/20 disabled:data-[state=checked]:bg-success/45 focus-visible:ring-success enabled:data-[state=unchecked]:hover:bg-input/80 data-[state=checked]:bg-success data-[state=checked]:hover:bg-success/90"}},defaultVariants:{size:et.md,status:xr.default}}),Eh={[et.sm]:"h-3.5 w-3.5",[et.md]:"h-4 w-4",[et.lg]:"h-5 w-5"},Dh={[et.sm]:"data-[state=checked]:translate-x-3.5",[et.md]:"data-[state=checked]:translate-x-4",[et.lg]:"data-[state=checked]:translate-x-5"},Zp=Zh(({className:e,size:t=et.sm,status:r=xr.default,error:o=!1,checked:n,disabled:i,...s},l)=>{let d=f(t),m=o?xr.error:r;return qp(ta.Root,{ref:l,checked:n,disabled:i,className:a(Qp({size:d,status:m}),e),...s,children:qp(ta.Thumb,{className:a("pointer-events-none block rounded-full bg-background shadow-sm transition-transform duration-150",Eh[d],Dh[d])},void 0,!1,void 0,this)},void 0,!1,void 0,this)});Zp.displayName="Switch";import{cva as Bt}from"class-variance-authority";import{createContext as jh,forwardRef as jt,useContext as Ep}from"react";import{jsxDEV as ht}from"react/jsx-dev-runtime";var Ie={sm:"sm",md:"md",lg:"lg"},xi=jh(Ie.md),Dp=Bt("relative w-full overflow-auto rounded-[var(--radius)] border border-border bg-card shadow-[var(--shadow-sm)]"),jp=Bt("w-full caption-bottom",{variants:{size:{[Ie.sm]:"text-xs",[Ie.md]:"text-sm",[Ie.lg]:"text-sm"}},defaultVariants:{size:Ie.md}}),ef=Bt("sticky top-0 z-[1] [&_tr]:border-b [&_tr]:border-border [&_th]:bg-muted"),tf=Bt("[&_tr:last-child]:border-0"),rf=Bt("border-t border-border bg-muted font-medium text-muted-foreground [&>tr]:last:border-b-0"),of=Bt("transition-[color,background-color,border-color,box-shadow,transform,opacity,filter] duration-[var(--motion-duration-medium)] ease-[var(--motion-ease-standard)] border-b border-border hover:bg-muted/50 data-[state=selected]:bg-primary/10"),nf=Bt("text-left align-middle font-semibold text-muted-foreground [&:has([role=checkbox])]:pr-0",{variants:{size:{[Ie.sm]:"h-8 px-2",[Ie.md]:"h-10 px-3",[Ie.lg]:"h-12 px-4"}},defaultVariants:{size:Ie.md}}),af=Bt("align-middle text-foreground [&:has([role=checkbox])]:pr-0",{variants:{size:{[Ie.sm]:"p-2",[Ie.md]:"p-3",[Ie.lg]:"p-4"}},defaultVariants:{size:Ie.md}}),sf=Bt("mt-4 text-sm text-muted-foreground"),lf=jt(({className:e,containerClassName:t,size:r=Ie.sm,...o},n)=>{let i=f(r)??Ie.md;return ht(xi.Provider,{value:i,children:ht("div",{className:a(Dp(),t),children:ht("table",{ref:n,className:a(jp({size:i}),e),...o},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)});lf.displayName="Table";var mf=jt(({className:e,...t},r)=>ht("thead",{ref:r,className:a(ef(),e),...t},void 0,!1,void 0,this));mf.displayName="TableHeader";var df=jt(({className:e,...t},r)=>ht("tbody",{ref:r,className:a(tf(),e),...t},void 0,!1,void 0,this));df.displayName="TableBody";var uf=jt(({className:e,...t},r)=>ht("tfoot",{ref:r,className:a(rf(),e),...t},void 0,!1,void 0,this));uf.displayName="TableFooter";var cf=jt(({className:e,...t},r)=>ht("tr",{ref:r,className:a(of(),e),...t},void 0,!1,void 0,this));cf.displayName="TableRow";var pf=jt(({className:e,size:t,...r},o)=>{let n=Ep(xi);return ht("th",{ref:o,className:a(nf({size:t??n}),e),...r},void 0,!1,void 0,this)});pf.displayName="TableHead";var ff=jt(({className:e,size:t,...r},o)=>{let n=Ep(xi);return ht("td",{ref:o,className:a(af({size:t??n}),e),...r},void 0,!1,void 0,this)});ff.displayName="TableCell";var gf=jt(({className:e,...t},r)=>ht("caption",{ref:r,className:a(sf(),e),...t},void 0,!1,void 0,this));gf.displayName="TableCaption";import*as dt from"@radix-ui/react-tabs";import{cva as Ci}from"class-variance-authority";import{forwardRef as wi,useRef as bf}from"react";import{jsxDEV as ra}from"react/jsx-dev-runtime";var er={sm:"sm",md:"md",lg:"lg"},yf=Ci("relative inline-flex items-center justify-center rounded-[var(--radius)] border border-border bg-secondary p-1 text-muted-foreground",{variants:{size:{[er.sm]:"gap-0.5",[er.md]:"gap-1",[er.lg]:"gap-1.5"}},defaultVariants:{size:er.sm}}),vf=Ci("transition-[color,background-color,border-color,box-shadow,transform,opacity,filter] duration-[var(--motion-duration-medium)] ease-[var(--motion-ease-standard)] relative z-10 inline-flex items-center justify-center whitespace-nowrap rounded-[calc(var(--radius)-2px)] font-semibold leading-none text-muted-foreground outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:pointer-events-none disabled:cursor-not-allowed disabled:text-muted-foreground/50 data-[state=active]:text-foreground data-[state=inactive]:hover:text-foreground/80",{variants:{size:{[er.sm]:"h-7 px-2.5 text-xs",[er.md]:"h-9 px-3 text-sm",[er.lg]:"h-10 px-4 text-sm"}},defaultVariants:{size:er.sm}}),Tf=Ci("mt-3 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2"),eP=dt.Root,tP=["data-state","aria-selected"],hf=wi(({className:e,size:t,children:r,...o},n)=>{let i=f(t),s=bf(null),l=kt(n,s),d=bf(null);return _n(s,d,{activeSelector:"button[role='tab'][data-state='active']",observeAttributes:tP}),ra(dt.List,{ref:l,className:a(yf({size:i}),e),...o,children:[ra("span",{ref:d,"aria-hidden":!0,"data-slot":"indicator",className:Un,style:{opacity:0}},void 0,!1,void 0,this),r]},void 0,!0,void 0,this)});hf.displayName=dt.List.displayName;var Pf=wi(({className:e,size:t,...r},o)=>{let n=f(t);return ra(dt.Trigger,{ref:o,className:a(vf({size:n}),e),...r},void 0,!1,void 0,this)});Pf.displayName=dt.Trigger.displayName;var Mf=wi(({className:e,...t},r)=>ra(dt.Content,{ref:r,className:a(Tf(),e),...t},void 0,!1,void 0,this));Mf.displayName=dt.Content.displayName;import{cva as rP}from"class-variance-authority";import{forwardRef as oP}from"react";import{jsxDEV as nP}from"react/jsx-dev-runtime";var Qo={default:"default",error:"error",success:"success"},Zo={sm:"sm",md:"md",lg:"lg"},zf=rP("transition-[color,background-color,border-color,box-shadow,transform,opacity,filter] duration-[var(--motion-duration-medium)] ease-[var(--motion-ease-standard)] w-full resize-y rounded-[var(--radius)] border border-input bg-background text-sm text-foreground outline-none placeholder:text-muted-foreground focus-visible:ring-2 disabled:cursor-not-allowed disabled:border-border disabled:bg-muted/45 disabled:text-muted-foreground",{variants:{status:{[Qo.default]:"focus-visible:ring-primary",[Qo.error]:"border-destructive focus-visible:ring-destructive",[Qo.success]:"border-success focus-visible:ring-success"},size:{[Zo.sm]:"min-h-[64px] px-2 py-1.5 text-xs",[Zo.md]:"min-h-[96px] px-3 py-2",[Zo.lg]:"min-h-[112px] px-4 py-2.5"}},defaultVariants:{status:Qo.default,size:Zo.md}}),Nf=oP(({className:e,status:t=Qo.default,size:r=Zo.sm,fullWidth:o=!1,noResize:n=!1,disabled:i,...s},l)=>{let d=f(r);return nP("textarea",{ref:l,className:a(zf({status:t,size:d}),i&&"bg-muted",o&&"w-full",n&&"resize-none",e),disabled:i,...s},void 0,!1,void 0,this)});Nf.displayName="Textarea";import{cva as tr}from"class-variance-authority";import{forwardRef as rr}from"react";import{jsxDEV as Pt}from"react/jsx-dev-runtime";var Lf=tr("relative flex flex-col"),Rf=tr(["group relative flex pb-8 last:pb-0","transition-opacity duration-[var(--motion-duration-medium)] ease-[var(--motion-ease-standard)]"],{variants:{align:{left:"flex-row gap-4",right:"flex-row-reverse gap-4"},animated:{true:"gs-timeline-item-animated",false:""}},defaultVariants:{align:"left",animated:!0}}),xf=tr(["absolute bottom-0 w-0.5 rounded-full","transition-[background-color,opacity,height] duration-[var(--motion-duration-medium)] ease-[var(--motion-ease-standard)]"],{variants:{variant:{default:"bg-border",success:"bg-gradient-to-b from-success/50 to-success/30",warning:"bg-gradient-to-b from-warning/50 to-warning/30",error:"bg-gradient-to-b from-destructive/50 to-destructive/30",info:"bg-gradient-to-b from-info/50 to-info/30",primary:"bg-gradient-to-b from-primary/50 to-primary/30"},size:{sm:"left-[7px] top-5",md:"left-[15px] top-9",lg:"left-[21px] top-12"},animated:{true:"gs-timeline-connector-animated",false:""}},defaultVariants:{variant:"default",size:"sm",animated:!0}}),Cf=tr(["relative z-10 flex shrink-0 items-center justify-center rounded-full border-2","transition-[color,background-color,border-color,box-shadow] duration-[var(--motion-duration-fast)] ease-[var(--motion-ease-standard)]","[&>svg]:shrink-0"],{variants:{variant:{default:["border-border bg-card text-muted-foreground","shadow-[var(--shadow-sm)]","hover:border-border hover:shadow-[var(--shadow-md)]"],success:["border-success/60 bg-success/10 text-success","shadow-[var(--shadow-success-sm)]","hover:bg-success/15 hover:border-success/70 hover:shadow-[var(--shadow-success-md)]"],warning:["border-warning/60 bg-warning/10 text-warning","shadow-[var(--shadow-warning-sm)]","hover:bg-warning/15 hover:border-warning/70 hover:shadow-[var(--shadow-warning-md)]"],error:["border-destructive/60 bg-destructive/10 text-destructive","shadow-[var(--shadow-destructive-sm)]","hover:bg-destructive/15 hover:border-destructive/70 hover:shadow-[var(--shadow-destructive-md)]"],info:["border-info/60 bg-info/10 text-info","shadow-[var(--shadow-info-sm)]","hover:bg-info/15 hover:border-info/70 hover:shadow-[var(--shadow-info-md)]"],primary:["border-primary/60 bg-primary/10 text-primary","shadow-[var(--shadow-primary-sm)]","hover:bg-primary/15 hover:border-primary/70 hover:shadow-[var(--shadow-primary-md)]"]},size:{sm:"h-4 w-4 [&>svg]:size-2",md:"h-8 w-8 [&>svg]:size-4",lg:"h-11 w-11 [&>svg]:size-5"},pulse:{true:"gs-timeline-dot-pulse-enabled gs-timeline-dot-pulse",false:""},animated:{true:"gs-timeline-dot-animated",false:""}},defaultVariants:{variant:"default",size:"sm",pulse:!1,animated:!0}}),wf=tr("flex min-w-0 flex-col gap-1 pt-0.5 transition-opacity duration-[var(--motion-duration-fast)] ease-[var(--motion-ease-standard)]"),Hf=tr("font-semibold leading-tight text-foreground transition-colors duration-[var(--motion-duration-fast)] ease-[var(--motion-ease-standard)]",{variants:{size:{sm:"text-[11px]",md:"text-base",lg:"text-lg"}},defaultVariants:{size:"sm"}}),kf=tr("text-muted-foreground transition-colors duration-[var(--motion-duration-fast)] ease-[var(--motion-ease-standard)]",{variants:{size:{sm:"text-[11px]",md:"text-sm",lg:"text-base"}},defaultVariants:{size:"sm"}}),Sf=tr("font-medium text-muted-foreground/70 transition-colors duration-[var(--motion-duration-fast)] ease-[var(--motion-ease-standard)]",{variants:{size:{sm:"text-[11px]",md:"text-sm",lg:"text-base"}},defaultVariants:{size:"sm"}});var Af=rr(({className:e,...t},r)=>{return Pt("div",{ref:r,role:"list","aria-label":"Timeline events",className:a(Lf(),e),...t},void 0,!1,void 0,this)});Af.displayName="Timeline";var Bf=rr(({className:e,align:t,isLast:r,animated:o=!0,...n},i)=>{return Pt("div",{ref:i,role:"listitem",className:a(Rf({align:t,animated:o}),e),"data-last":r,...n},void 0,!1,void 0,this)});Bf.displayName="TimelineItem";var If=rr(({className:e,variant:t,size:r,animated:o=!0,...n},i)=>{let s=f(r);return Pt("div",{ref:i,className:a(xf({variant:t,size:s,animated:o}),e),...n},void 0,!1,void 0,this)});If.displayName="TimelineConnector";var Ff=rr(({className:e,variant:t,size:r,icon:o,children:n,pulse:i=!1,animated:s=!0,...l},d)=>{let m=f(r);return Pt("div",{ref:d,className:a(Cf({variant:t,size:m,pulse:i,animated:s}),e),"aria-hidden":"true",...l,children:o||n||Pt(aP,{},void 0,!1,void 0,this)},void 0,!1,void 0,this)});Ff.displayName="TimelineDot";var Of=rr(({className:e,...t},r)=>{return Pt("div",{ref:r,className:a(wf(),e),...t},void 0,!1,void 0,this)});Of.displayName="TimelineContent";var Gf=rr(({className:e,size:t,...r},o)=>{let n=f(t);return Pt("h4",{ref:o,className:a(Hf({size:n}),e),...r},void 0,!1,void 0,this)});Gf.displayName="TimelineTitle";var Wf=rr(({className:e,size:t,...r},o)=>{let n=f(t);return Pt("p",{ref:o,className:a(kf({size:n}),e),...r},void 0,!1,void 0,this)});Wf.displayName="TimelineDescription";var _f=rr(({className:e,size:t,...r},o)=>{let n=f(t);return Pt("time",{ref:o,className:a(Sf({size:n}),e),...r},void 0,!1,void 0,this)});_f.displayName="TimelineTime";function aP(){return Pt("span",{className:"size-2 rounded-full bg-current"},void 0,!1,void 0,this)}import{cva as Uf}from"class-variance-authority";var co={default:"default",success:"success",info:"info",warning:"warning",error:"error"},tt={sm:"sm",md:"md",lg:"lg"},Hi=Uf("pointer-events-auto relative flex w-full items-center overflow-hidden rounded-[var(--radius)] border shadow-[var(--shadow-md)]",{variants:{variant:{[co.default]:"border-border bg-card text-card-foreground",[co.success]:"border-success/30 bg-card text-card-foreground",[co.info]:"border-info/30 bg-card text-card-foreground",[co.warning]:"border-warning/30 bg-card text-card-foreground",[co.error]:"border-destructive/30 bg-card text-card-foreground"},size:{[tt.sm]:"gap-2 p-3",[tt.md]:"gap-3 p-4",[tt.lg]:"gap-3.5 p-5"}},defaultVariants:{variant:co.default,size:tt.md}}),ki=Uf("transition-[color,background-color,border-color,box-shadow,transform,opacity,filter] duration-[var(--motion-duration-medium)] ease-[var(--motion-ease-standard)] inline-flex shrink-0 items-center justify-center rounded-[var(--radius)] border border-border bg-transparent font-medium text-foreground hover:bg-secondary focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:pointer-events-none disabled:cursor-not-allowed disabled:border-transparent disabled:bg-muted/40 disabled:text-muted-foreground/70",{variants:{size:{[tt.sm]:"h-6 px-2 text-xs",[tt.md]:"h-7 px-2.5 text-xs",[tt.lg]:"h-8 px-3 text-sm"}},defaultVariants:{size:tt.md}});import{AlertTriangle as fP,CheckCircle2 as gP,Info as Jf,X as bP,XCircle as yP}from"lucide-react";import{forwardRef as vP,useCallback as aa,useEffect as po,useRef as Fi,useState as Oi}from"react";import{useSyncExternalStore as iP}from"react";var sP=5,$f=5000,lP=500,Si=0;function mP(){return Si=(Si+1)%Number.MAX_SAFE_INTEGER,`toast-${Si}-${Date.now()}`}var Ai=new Set,rt=[],wr=new Map,Do=new Map,jo=!1,Cr=new Map;function oa(){for(let e of Ai)e()}function Kf(){return rt}function dP(e){return Ai.add(e),()=>{Ai.delete(e)}}function Bi(e,t){if(jo){Cr.set(e,t);return}clearTimeout(wr.get(e));let r=Date.now(),o=setTimeout(()=>{wr.delete(e),Cr.delete(e),na(e)},t);wr.set(e,o),Cr.set(e,t);let n=setInterval(()=>{let i=Date.now()-r,s=t-i;if(s<=0)clearInterval(n),Cr.delete(e);else Cr.set(e,s)},100)}function uP(e){clearTimeout(Do.get(e));let t=ho()?0:lP,r=setTimeout(()=>{rt=rt.filter((o)=>o.id!==e),Do.delete(e),oa()},t);Do.set(e,r)}function Vf(e){clearTimeout(wr.get(e)),wr.delete(e),Cr.delete(e)}function Eo(e){let t=e.id??mP(),r=e.duration===void 0?$f:e.duration;if(rt.find((i)=>i.id===t)){if(rt=rt.map((i)=>i.id===t?{...i,...e,id:t,open:!0,createdAt:Date.now()}:i),clearTimeout(Do.get(t)),Do.delete(t),Vf(t),typeof r==="number")Bi(t,r);return oa(),t}if(rt=[{...e,id:t,variant:e.variant??"default",dismissible:e.dismissible??!0,open:!0,createdAt:Date.now()},...rt].slice(0,sP),typeof r==="number")Bi(t,r);return oa(),t}function na(e){Vf(e),rt=rt.map((t)=>t.id===e?{...t,open:!1}:t),oa(),uP(e)}function Yf(){for(let e of rt)na(e.id)}function cP(){if(jo)return;jo=!0;for(let[e,t]of wr)clearTimeout(t),wr.delete(e)}function pP(){if(!jo)return;jo=!1;for(let e of rt)if(e.open){if(e.duration===null)continue;let t=e.duration??$f,r=Cr.get(e.id)??t;Bi(e.id,r)}}var Xf=Object.assign((e)=>Eo(e),{success:(e,t)=>Eo({...t,variant:"success",title:e}),info:(e,t)=>Eo({...t,variant:"info",title:e}),warning:(e,t)=>Eo({...t,variant:"warning",title:e}),error:(e,t)=>Eo({...t,variant:"error",title:e}),dismiss:na,dismissAll:Yf});function Ii(){return{toasts:iP(dP,Kf,Kf),toast:Xf,dismiss:na,dismissAll:Yf,pauseAll:cP,resumeAll:pP}}import{jsxDEV as _e}from"react/jsx-dev-runtime";var Qf=10,qf=0.05,TP=200,hP={"top-right":"top-4 right-4","top-left":"top-4 left-4","bottom-right":"bottom-4 right-4","bottom-left":"bottom-4 left-4","top-center":"top-4 left-1/2 -translate-x-1/2","bottom-center":"bottom-4 left-1/2 -translate-x-1/2"},PP={success:(e)=>_e(gP,{className:a("mt-0.5 shrink-0 text-success",e==="sm"?"size-4":"size-[18px]")},void 0,!1,void 0,this),info:(e)=>_e(Jf,{className:a("mt-0.5 shrink-0 text-info",e==="sm"?"size-4":"size-[18px]")},void 0,!1,void 0,this),warning:(e)=>_e(fP,{className:a("mt-0.5 shrink-0 text-warning",e==="sm"?"size-4":"size-[18px]")},void 0,!1,void 0,this),error:(e)=>_e(yP,{className:a("mt-0.5 shrink-0 text-destructive",e==="sm"?"size-4":"size-[18px]")},void 0,!1,void 0,this),default:(e)=>_e(Jf,{className:a("mt-0.5 shrink-0 text-muted-foreground",e==="sm"?"size-4":"size-[18px]")},void 0,!1,void 0,this)};function MP(e,t,r,o,n){let i=e<o,s=r?n:e*Qf,l=r?1:i?1-e*qf:1-o*qf,d=i||r?1:0,m=t-e;return{offset:s,scale:l,opacity:d,zIndex:m}}var Zf=vP(({position:e="bottom-right",gap:t=12,visibleCount:r=3,size:o=tt.sm,className:n,...i},s)=>{let{toasts:l,dismiss:d,pauseAll:m,resumeAll:c}=Ii(),u=ge(),g=f(o)??tt.md,[v,y]=Oi(!1),[T,z]=Oi({}),M=Fi(null),p=Fi(void 0),h=e.startsWith("bottom"),L=aa((k)=>{if(M.current=k,typeof s==="function")s(k);else if(s)s.current=k},[s]),H=aa(()=>{clearTimeout(p.current),y(!0),m()},[m]),S=aa(()=>{clearTimeout(p.current),p.current=setTimeout(()=>{y(!1),c()},u?0:TP)},[u,c]);po(()=>{return()=>clearTimeout(p.current)},[]);let B=aa((k,Z)=>{z((R)=>{if(R[k]===Z)return R;return{...R,[k]:Z}})},[]);po(()=>{let k=new Set(l.map((Z)=>Z.id));z((Z)=>{let R=!1,W={};for(let[b,P]of Object.entries(Z))if(k.has(b))W[b]=P;else R=!0;return R?W:Z})},[l]);let x=l.filter((k)=>k.open),Y=new Map,K=0;for(let[k,Z]of x.entries()){let R=T[Z.id]??0;Y.set(Z.id,MP(k,x.length,v,r,K)),K+=R+t}let X=x[0],ie=(X?T[X.id]??0:0)+Math.min(x.length-1,r-1)*Qf,V=K-(x.length>0?t:0),re=v?V:ie;if(po(()=>{let k=M.current;if(!k)return;k.style.setProperty("--gs-toast-stack-height",`${Math.max(re,0)}px`)},[re]),l.length===0)return null;return _e("ol",{ref:L,role:"region","aria-label":"Notifications",tabIndex:-1,onMouseEnter:H,onMouseLeave:S,className:a("pointer-events-auto fixed z-[100] h-[var(--gs-toast-stack-height,0px)] w-full max-w-[400px] outline-none transition-[height] duration-[var(--motion-duration-spring)] ease-[var(--motion-ease-emphasized)]",hP[e],n),...i,children:l.map((k)=>{let Z=!k.open,R=Y.get(k.id);return _e(zP,{toast:k,layout:R??{offset:0,scale:1,opacity:0,zIndex:0},isClosed:Z,isBottom:h,size:g,onDismiss:d,onMeasure:B,reducedMotion:u},k.id,!1,void 0,this)})},void 0,!1,void 0,this)});Zf.displayName="Toaster";function zP({toast:e,layout:t,isClosed:r,isBottom:o,size:n,onDismiss:i,onMeasure:s,reducedMotion:l}){let d=Fi(null),[m,c]=Oi(!1);po(()=>{if(l){c(!0);return}let T=requestAnimationFrame(()=>c(!0));return()=>cancelAnimationFrame(T)},[l]),po(()=>{let T=d.current;if(!T)return;let z=new ResizeObserver((M)=>{for(let p of M){let h=p.borderBoxSize?.[0];if(h)s(e.id,h.blockSize)}});return z.observe(T),()=>z.disconnect()},[e.id,s]);let u=o?"bottom-0 left-0 right-0 origin-bottom":"top-0 left-0 right-0 origin-top",g,v,y;if(!m)g=`translateY(${o?80:-80}px) scale(0.9)`,v=0,y="false";else if(r)g=`translateY(${o?80:-80}px) scale(0.95)`,v=0,y="false";else g=`translateY(${o?-t.offset:t.offset}px) scale(${t.scale})`,v=t.opacity,y="true";return po(()=>{let T=d.current;if(!T)return;T.style.setProperty("--gs-toast-transform",g),T.style.setProperty("--gs-toast-opacity",`${v}`),T.style.setProperty("--gs-toast-z-index",`${t.zIndex}`)},[t.zIndex,v,g]),_e("li",{ref:d,"data-state":e.open?"open":"closed","data-variant":e.variant,"data-interactive":y,className:a("absolute list-none transition-[transform,opacity] duration-[var(--motion-duration-spring)] ease-[var(--motion-ease-emphasized)] [opacity:var(--gs-toast-opacity,0)] [transform:var(--gs-toast-transform)] [z-index:var(--gs-toast-z-index,0)]","data-[interactive=false]:pointer-events-none data-[interactive=true]:pointer-events-auto",u),children:_e("div",{className:a(Hi({variant:e.variant,size:n}),"w-full"),children:[PP[e.variant]?.(n),_e("div",{className:"flex-1 space-y-0.5",children:[e.title&&_e("p",{className:a("font-semibold leading-tight",n==="sm"?"text-xs":"text-sm"),children:e.title},void 0,!1,void 0,this),e.description&&_e("p",{className:a("text-muted-foreground leading-snug",n==="sm"?"text-xs":"text-sm"),children:e.description},void 0,!1,void 0,this)]},void 0,!0,void 0,this),e.action&&_e("button",{type:"button",className:a(ki({size:n}),"mt-0.5"),onClick:e.action.onClick,"aria-label":e.action.altText,children:e.action.label},void 0,!1,void 0,this),e.dismissible!==!1&&_e("button",{type:"button",className:a("mt-0.5 shrink-0 rounded-[var(--radius)] p-1 text-muted-foreground transition-[color,background-color,border-color,box-shadow,transform,opacity,filter] duration-[var(--motion-duration-medium)] ease-[var(--motion-ease-standard)] hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",n==="sm"?"[&>svg]:size-3.5":"[&>svg]:size-4"),onClick:()=>i(e.id),"aria-label":"Dismiss",children:_e(bP,{},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}import*as Ef from"@radix-ui/react-toggle";import{cva as NP}from"class-variance-authority";import{forwardRef as LP}from"react";import{jsxDEV as RP}from"react/jsx-dev-runtime";var Gi={default:"default",outline:"outline"},ia={sm:"sm",md:"md",lg:"lg"},sa=NP("transition-[color,background-color,border-color,box-shadow,transform,opacity,filter] duration-[var(--motion-duration-medium)] ease-[var(--motion-ease-standard)] inline-flex items-center justify-center gap-2 rounded-[var(--radius)] border border-transparent text-sm font-medium outline-none transition-[color,background-color,border-color] duration-150 hover:bg-muted hover:text-muted-foreground focus-visible:border-primary disabled:cursor-not-allowed disabled:pointer-events-none data-[state=on]:bg-accent data-[state=on]:text-accent-foreground [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{[Gi.default]:"bg-transparent disabled:bg-transparent disabled:text-foreground/50",[Gi.outline]:"border-input bg-transparent hover:bg-accent hover:text-accent-foreground disabled:bg-transparent disabled:text-foreground/50 disabled:border-border/50"},size:{[ia.sm]:"h-7 px-1.5 min-w-7 text-xs",[ia.md]:"h-10 px-3 min-w-10",[ia.lg]:"h-11 px-5 min-w-11"}},defaultVariants:{variant:Gi.default,size:ia.sm}}),Df=LP(({className:e,variant:t,size:r,...o},n)=>{let i=f(r);return RP(Ef.Root,{ref:n,className:a(sa({variant:t,size:i}),e),...o},void 0,!1,void 0,this)});Df.displayName="Toggle";import*as la from"@radix-ui/react-toggle-group";import{cva as xP}from"class-variance-authority";import{createContext as CP,forwardRef as jf,useContext as wP}from"react";import{jsxDEV as Wi}from"react/jsx-dev-runtime";var HP={default:"default",outline:"outline"},kP={sm:"sm",md:"md",lg:"lg"},eg=xP("flex items-center justify-center gap-1"),tg=CP({size:kP.sm,variant:HP.default}),rg=jf(({className:e,variant:t,size:r,children:o,...n},i)=>{let s=f(r);return Wi(la.Root,{ref:i,className:a(eg(),e),...n,children:Wi(tg.Provider,{value:{variant:t,size:s},children:o},void 0,!1,void 0,this)},void 0,!1,void 0,this)});rg.displayName="ToggleGroup";var og=jf(({className:e,children:t,variant:r,size:o,...n},i)=>{let s=wP(tg),l=f(o);return Wi(la.Item,{ref:i,className:a(sa({variant:r??s.variant,size:l??s.size}),e),...n,children:t},void 0,!1,void 0,this)});og.displayName="ToggleGroupItem";import{cva as ng}from"class-variance-authority";import{forwardRef as ma}from"react";import{jsxDEV as da}from"react/jsx-dev-runtime";var ut={sm:"sm",md:"md",lg:"lg"},ag=ng("flex items-center border-b border-border bg-secondary",{variants:{size:{[ut.sm]:"gap-1.5 px-3 py-1.5",[ut.md]:"gap-2 px-4 py-2",[ut.lg]:"gap-3 px-5 py-2.5"}},defaultVariants:{size:ut.sm}}),ig=ma(({className:e,size:t=ut.sm,...r},o)=>{let n=f(t);return da("div",{ref:o,role:"toolbar",className:a(ag({size:n}),e),...r},void 0,!1,void 0,this)});ig.displayName="Toolbar";var sg=ng("flex items-center",{variants:{size:{[ut.sm]:"gap-1",[ut.md]:"gap-1.5",[ut.lg]:"gap-2"}},defaultVariants:{size:ut.sm}}),lg=ma(({className:e,size:t=ut.sm,...r},o)=>{let n=f(t);return da("div",{ref:o,role:"group",className:a(sg({size:n}),e),...r},void 0,!1,void 0,this)});lg.displayName="ToolbarGroup";var mg=ma(({className:e,...t},r)=>{return da("div",{ref:r,role:"none",className:a("h-5 w-px shrink-0 bg-border",e),...t},void 0,!1,void 0,this)});mg.displayName="ToolbarSeparator";var dg=ma(({className:e,...t},r)=>{return da("div",{ref:r,className:a("flex-1",e),...t},void 0,!1,void 0,this)});dg.displayName="ToolbarSpacer";import*as Mt from"@radix-ui/react-tooltip";import{cva as SP}from"class-variance-authority";import{createContext as AP,forwardRef as ug,useContext as cg}from"react";import{jsxDEV as go}from"react/jsx-dev-runtime";var pg=({delayDuration:e,skipDelayDuration:t,...r})=>{let o=ge();return go(Mt.Provider,{delayDuration:o?0:e,skipDelayDuration:o?0:t,...r},void 0,!1,void 0,this)};pg.displayName="TooltipProvider";var _i=AP(!1),fg=({persistOnClick:e=!1,children:t,delayDuration:r,...o})=>{let n=ge();return go(_i.Provider,{value:e,children:go(Mt.Root,{delayDuration:n?0:r,...o,children:t},void 0,!1,void 0,this)},void 0,!1,void 0,this)};fg.displayName="Tooltip";var gg=ug(({onClick:e,onPointerDown:t,...r},o)=>{let n=cg(_i);return go(Mt.Trigger,{ref:o,onClick:n?(i)=>{i.preventDefault(),e?.(i)}:e,onPointerDown:n?(i)=>{i.preventDefault(),t?.(i)}:t,...r},void 0,!1,void 0,this)});gg.displayName="TooltipTrigger";var fo={sm:F.sm,md:F.md,lg:F.lg},bg=SP("z-50 overflow-hidden rounded-[var(--radius)] border border-primary/20 bg-primary text-primary-foreground shadow-[var(--shadow-md)] gs-float-content origin-[var(--radix-tooltip-content-transform-origin)]",{variants:{size:{[fo.sm]:"px-2 py-1 text-xs",[fo.md]:"px-3 py-1.5 text-xs",[fo.lg]:"px-4 py-2 text-sm"}},defaultVariants:{size:fo.md}}),yg=ug(({className:e,sideOffset:t=nt,onPointerDownOutside:r,size:o=fo.sm,portal:n=se,portalContainer:i,...s},l)=>{let d=cg(_i),m=f(o),c=go(Mt.Content,{ref:l,sideOffset:t,className:a(bg({size:m}),e),onPointerDownOutside:d?(u)=>{u.preventDefault(),r?.(u)}:r,...s},void 0,!1,void 0,this);if(!n)return c;return go(Mt.Portal,{container:i??void 0,children:c},void 0,!1,void 0,this)});yg.displayName="TooltipContent";import{createContext as BP,useCallback as or,useContext as IP,useEffect as en,useInsertionEffect as FP,useLayoutEffect as OP,useMemo as ua,useRef as nr,useState as vg}from"react";import{jsxDEV as _P}from"react/jsx-dev-runtime";var GP=typeof window<"u"?OP:en,WP=typeof window<"u"?FP:en,Ki=BP(null);function ca(e,t){return e.theme===t.theme&&e.colorScheme===t.colorScheme}var Hr=({children:e,value:t,initialState:r,onChange:o,onStateChange:n,transformState:i,readState:s,writeState:l,syncWithSystem:d=!0,enableTransition:m=!1,transitionDuration:c,defaultTheme:u,defaultColorScheme:g,themes:v,attribute:y,colorSchemeAttribute:T,darkClassName:z,storage:M})=>{let p=ua(()=>bo({defaultTheme:u,defaultColorScheme:g,themes:v,attribute:y,colorSchemeAttribute:T,darkClassName:z,storage:M}),[u,g,v,y,T,z,M]),[h,L]=vg(()=>zt(typeof window<"u"?pa(p)??r:r,p)),[H,S]=vg(ya),x=ua(()=>t?zt(t,p):null,[t,p])??h,Y=ua(()=>({...x,resolvedColorScheme:Ui(x.colorScheme,H)}),[x,H]),K=t!==void 0,X=nr(x);X.current=x;let j=nr(!1),ie=nr(!1),V=nr(!1),re=nr(x),k=nr(null),Z=nr(m);Z.current=m;let R=nr(c);R.current=c;let W=or(($)=>{return ga($)},[]),b=or(($)=>{return pa($)},[]),P=or(($,de)=>{ba($,de)},[]),C=s??W,oe=l??P;en(()=>{if(!d||typeof window>"u"||typeof window.matchMedia!=="function")return;let $=window.matchMedia("(prefers-color-scheme: dark)"),de=()=>{S($.matches?Nt.dark:Nt.light)};return de(),$.addEventListener("change",de),()=>$.removeEventListener("change",de)},[d]),en(()=>{if(K)return;L(($)=>{let de=zt($,p);return ca($,de)?$:de})},[p,K]),GP(()=>{if(K||j.current)return;j.current=!0;let $=C(p)??b(p);if(!$)return;let de=X.current,ze=zt($,p),be={reason:"hydrate",previousState:de},Xe=i?zt(i(ze,be),p):ze;if(ca(de,Xe))return;k.current=be,L(Xe),o?.(Xe,be),n?.(Xe,be)},[p,K,o,n,b,C,i]),WP(()=>{if(typeof document>"u")return;let $=!V.current;if(V.current=!0,!$&&Z.current&&!ho()&&typeof document.startViewTransition==="function"){let ze=R.current??200,be=document.createElement("style");return be.setAttribute("data-gs-theme-transition",""),be.textContent=`::view-transition-old(root), ::view-transition-new(root) { animation-duration: ${ze}ms; }`,document.head.appendChild(be),document.startViewTransition(()=>{fa(document.documentElement,Y,p)}).finished.then(()=>be.remove(),()=>be.remove()),()=>{be.remove()}}fa(document.documentElement,Y,p);return},[p,Y]),en(()=>{if(typeof window>"u")return;if(!ie.current){ie.current=!0,re.current=x;return}let $=re.current;if(ca($,x))return;let de=k.current??{reason:"set-state",previousState:$};k.current=null,oe(x,p,de),re.current=x},[p,x,oe]);let _=or(($,de)=>{let ze=X.current,be=typeof $==="function"?$(ze):$,Xe=zt({theme:be.theme??ze.theme,colorScheme:be.colorScheme??ze.colorScheme},p),ct={reason:de,previousState:ze},A=i?zt(i(Xe,ct),p):Xe;if(ca(ze,A))return;if(k.current=ct,!K)L(A);o?.(A,ct),n?.(A,ct)},[p,K,o,n,i]),Ce=or(($)=>{_($,"set-state")},[_]),G=or(($)=>{_({theme:$},"set-theme")},[_]),ae=or(($)=>{_({colorScheme:$},"set-color-scheme")},[_]),Lt=or(()=>{let $=Y.resolvedColorScheme===Nt.dark?Nt.light:Nt.dark;_({colorScheme:$},"toggle-color-scheme")},[Y.resolvedColorScheme,_]),ot=ua(()=>({theme:x.theme,colorScheme:x.colorScheme,resolvedColorScheme:Y.resolvedColorScheme,state:x,resolvedState:Y,contract:p,themes:p.themes,setTheme:G,setColorScheme:ae,setState:Ce,toggleColorScheme:Lt}),[x,Y,p,G,ae,Ce,Lt]);return _P(Ki.Provider,{value:ot,children:e},void 0,!1,void 0,this)};Hr.displayName="ThemeProvider";var va=()=>{let e=IP(Ki);if(!e)throw Error("useTheme must be used within a ThemeProvider");return e};import{jsxDEV as Ta}from"react/jsx-dev-runtime";function Pa(e){return typeof e==="object"&&e!==null}function It(e){return typeof e==="string"&&e.trim().length>0}function Tg(e){if(!Pa(e))return!1;return Object.values(e).every(It)}function Pg(e){if(!Pa(e))return!1;if(!Tg(e.light))return!1;if(e.dark===void 0)return!0;return Tg(e.dark)}function Mg(e){return Pa(e)&&It(e.cssText)}function UP(e){return Pa(e)&&It(e.theme)}function $i(e){return Error(`Invalid theme registry definition: ${e}`)}function hg(e){let t=new Set,r=[];for(let o of e){if(!It(o)||t.has(o))continue;t.add(o),r.push(o)}return r}function KP(e){return e.filter(It).join(`
|
|
2
|
+
import{A as YV,B as Ct,C as XV,D as JV,E as Mt,F as Qg,G as Zg,H as jg,I as eb,J as tb,K as rb,L as ob,M as uo,N as Vt,O as nb,P as ab,Q as fa,R as ba,S as va,T as ts,U as ya,V as ib,W as sb,X as ga,Y as lb,Z as Pa,a,b as cb,c as AV,d as A,e as BV,f as IV,g as FV,h as OV,i as GV,j as WV,k as _V,l as eo,m as UV,n as KV,o as Cv,p as Fa,q as Oa,r as Ga,s as jd,t as pi,u as eu,v as $V,w as Ka,x as $a,y as Hn,z as ra}from"./index-0v1djh1s.js";import{cva as IH}from"class-variance-authority";import*as dt from"@radix-ui/react-accordion";import{cva as Na}from"class-variance-authority";import{ChevronDown as gb}from"lucide-react";import{createContext as bb,forwardRef as on,useContext as as}from"react";var pb="sm",fb=()=>{return"sm"};function f(e){if(e!==void 0)return e;return"sm"}import{jsx as ir,jsxs as yb}from"react/jsx-runtime";var Se={sm:"sm",md:"md",lg:"lg"},Ea=bb(Se.md),is=Na("border-b border-border"),ss=Na("transition-[color,background-color,border-color,box-shadow,transform,opacity,filter] duration-[var(--motion-duration-medium)] ease-[var(--motion-ease-standard)] flex flex-1 items-center justify-between font-medium hover:underline [&[data-state=open]>svg]:rotate-180",{variants:{size:{[Se.sm]:"py-3 text-xs [&>svg]:size-3.5",[Se.md]:"py-4 text-sm [&>svg]:size-4",[Se.lg]:"py-5 text-base [&>svg]:size-5"}},defaultVariants:{size:Se.md}}),ls=Na("gs-accordion-content overflow-hidden",{variants:{size:{[Se.sm]:"text-xs",[Se.md]:"text-sm",[Se.lg]:"text-base"}},defaultVariants:{size:Se.md}}),vb={[Se.sm]:"pt-0 pb-3",[Se.md]:"pt-0 pb-4",[Se.lg]:"pt-0 pb-5"},ms=on(({size:e=Se.sm,...t},r)=>{let o=f(e)??Se.md;return ir(Ea.Provider,{value:o,children:ir(dt.Root,{ref:r,...t})})});ms.displayName="Accordion";var ds=on(({className:e,...t},r)=>ir(dt.Item,{ref:r,className:a(is(),e),...t}));ds.displayName="AccordionItem";var us=on(({className:e,children:t,...r},o)=>{let n=as(Ea);return ir(dt.Header,{className:"flex",children:yb(dt.Trigger,{ref:o,className:a(ss({size:n}),e),...r,children:[t,ir(gb,{className:"shrink-0 transition-transform"})]})})});us.displayName="AccordionTrigger";var cs=on(({className:e,children:t,...r},o)=>{let n=as(Ea);return ir(dt.Content,{ref:o,className:a(ls({size:n}),e),...r,children:ir("div",{className:vb[n],children:t})})});cs.displayName="AccordionContent";import{cva as La}from"class-variance-authority";import{TriangleAlert as Tb,CircleCheck as hb,Info as Pb,CircleAlert as Vb}from"lucide-react";import{forwardRef as Ra}from"react";import{jsx as xa}from"react/jsx-runtime";var Rr={default:"default",success:"success",warning:"warning",error:"error",info:"info"},nn={sm:"sm",md:"md",lg:"lg"},ps=La("gs-alert relative w-full rounded-[var(--radius)] border [&>svg~*]:pl-8 [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:size-4 [&>svg]:text-foreground h-min",{variants:{variant:{[Rr.default]:"border-border bg-secondary text-foreground",[Rr.success]:"border-success/50 text-success [&>svg]:text-success bg-success/10",[Rr.warning]:"border-warning/50 text-warning [&>svg]:text-warning bg-warning/10",[Rr.error]:"border-destructive/50 text-destructive [&>svg]:text-destructive bg-destructive/10",[Rr.info]:"border-info/50 text-info [&>svg]:text-info bg-info/10"},size:{[nn.sm]:"p-3 text-sm [&>svg]:left-3 [&>svg]:top-3 [&>svg]:size-3.5 [&>svg~*]:pl-7",[nn.md]:"p-4 text-sm",[nn.lg]:"p-5 text-sm [&>svg]:left-5 [&>svg]:top-5"}},defaultVariants:{variant:Rr.default,size:nn.sm}}),fs=La("mb-1 font-medium leading-none tracking-tight [.gs-alert[data-size=sm]_&]:text-sm [.gs-alert[data-size=md]_&]:text-sm [.gs-alert[data-size=lg]_&]:text-base h-min"),gs=La("[&_p]:leading-relaxed [.gs-alert[data-size=sm]_&]:text-[13px] [.gs-alert[data-size=md]_&]:text-sm [.gs-alert[data-size=lg]_&]:text-sm"),bs=Ra(({className:e,variant:t,size:r,...o},n)=>{let i=f(r);return xa("div",{ref:n,role:"alert","data-size":i,className:a(ps({variant:t,size:i}),e),...o})});bs.displayName="Alert";var vs=Ra(({className:e,...t},r)=>xa("h5",{ref:r,className:a(fs(),e),...t}));vs.displayName="AlertTitle";var ys=Ra(({className:e,...t},r)=>xa("div",{ref:r,className:a(gs(),e),...t}));ys.displayName="AlertDescription";import*as Pe from"@radix-ui/react-alert-dialog";import{cva as Ss}from"class-variance-authority";import{createContext as Gb,forwardRef as wr,useCallback as Wb,useContext as _b,useEffect as Ub,useState as Ds}from"react";import{Slot as Ps}from"@radix-ui/react-slot";import{cva as Ca}from"class-variance-authority";import{forwardRef as an}from"react";import{forwardRef as Mb}from"react";import{jsx as Ts,jsxs as Nb}from"react/jsx-runtime";var po={sm:"sm",md:"md",lg:"lg"},zb={[po.sm]:"h-4 w-4",[po.md]:"h-5 w-5",[po.lg]:"h-6 w-6"},At=Mb(({className:e,size:t=po.sm,label:r="Loading",...o},n)=>{let i=f(t);return Nb("span",{ref:n,className:a("inline-flex items-center justify-center",e),role:"status","aria-label":r,...o,children:[Ts("span",{"data-gs-motion":"essential",className:a("gs-loading-motion animate-spin rounded-full border-2 border-current border-r-transparent",zb[i])}),Ts("span",{className:"sr-only",children:r})]})});At.displayName="Spinner";import{jsx as sr,jsxs as hs}from"react/jsx-runtime";var Nt={primary:"primary",secondary:"secondary",neutral:"neutral",outline:"outline",ghost:"ghost",danger:"danger"},Ge={sm:"sm",md:"md",lg:"lg",icon:"icon",iconSm:"icon-sm",iconLg:"icon-lg"},Bt={default:"default",success:"success",warning:"warning",error:"error",info:"info"},xr={sm:"sm",md:"md",lg:"lg"},Eb="Loading",Lb="button",fo=Ca("transition-[color,background-color,border-color,box-shadow,transform,opacity,filter] duration-[var(--motion-duration-medium)] ease-[var(--motion-ease-standard)] relative inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-[var(--radius)] border border-transparent font-semibold outline-none focus-visible:border-primary disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-55",{variants:{variant:{[Nt.primary]:"border-primary bg-primary text-primary-foreground enabled:hover:bg-primary/90",[Nt.secondary]:"border-secondary bg-secondary text-secondary-foreground enabled:hover:bg-secondary/90",[Nt.neutral]:"border-border bg-muted text-foreground enabled:hover:bg-muted/90",[Nt.outline]:"border-border bg-background text-foreground enabled:hover:border-primary enabled:hover:bg-muted/50",[Nt.ghost]:"border-transparent bg-transparent text-foreground enabled:hover:bg-muted/70",[Nt.danger]:"border-destructive bg-destructive text-destructive-foreground enabled:hover:bg-destructive/90"},size:{[Ge.sm]:"h-8 px-2.5 text-xs",[Ge.md]:"h-10 px-4 text-sm",[Ge.lg]:"h-11 px-5 text-sm",[Ge.icon]:"h-10 w-10 p-0",[Ge.iconSm]:"h-9 w-9 p-0",[Ge.iconLg]:"h-11 w-11 p-0"}},defaultVariants:{variant:Nt.primary,size:Ge.sm}}),Vs=Ca("shrink-0",{variants:{size:{[xr.sm]:"size-3",[xr.md]:"size-4",[xr.lg]:"size-4.5"}},defaultVariants:{size:xr.sm}}),Ms=Ca("inline-flex items-center rounded-full border px-1.5 py-0.5 font-semibold text-[11px] leading-none",{variants:{tone:{[Bt.default]:"border-border/70 bg-background/75 text-muted-foreground",[Bt.success]:"border-success/35 bg-success/12 text-success",[Bt.warning]:"border-warning/35 bg-warning/12 text-warning",[Bt.error]:"border-destructive/35 bg-destructive/12 text-destructive",[Bt.info]:"border-info/35 bg-info/12 text-info"}},defaultVariants:{tone:Bt.default}});function Rb(e){return e===Ge.icon||e===Ge.iconSm||e===Ge.iconLg}function xb(e,t,r){return e&&t?-1:r}function Cb(e){return e["aria-label"]??e["aria-labelledby"]??e.title}function wb(){if(typeof process>"u")return!0;return!1}var zs=an(({className:e,size:t=xr.sm,...r},o)=>sr(Ps,{ref:o,className:a(Vs({size:t}),e),...r}));zs.displayName="ButtonIcon";var Ns=an(({className:e,...t},r)=>sr("span",{ref:r,className:a("truncate",e),...t}));Ns.displayName="ButtonLabel";var Es=an(({className:e,tone:t=Bt.default,...r},o)=>sr("span",{ref:o,className:a(Ms({tone:t}),e),...r}));Es.displayName="ButtonBadge";var Ls=an(({className:e,variant:t=Nt.primary,size:r=Ge.sm,asChild:o=!1,loading:n=!1,loadingText:i=Eb,fullWidth:s=!1,leadingIcon:l,trailingIcon:d,disabled:m,children:c,type:u,tabIndex:g,onClick:y,...v},T)=>{let M=f(r),V=M??r,p=Cb(v);if(wb()&&Rb(V)&&!p)throw Error("Icon-size Button requires aria-label, aria-labelledby, or title.");let h=Boolean(m||n),N=a(fo({variant:t,size:M}),h&&"pointer-events-none cursor-not-allowed opacity-55",s&&"w-full",e);if(o)return sr(Ps,{ref:T,className:N,"aria-disabled":h||void 0,"aria-busy":n||void 0,tabIndex:xb(!0,h,g),onClick:h?(C)=>{C.preventDefault()}:y,...v,children:c});return hs("button",{ref:T,className:N,disabled:h,"aria-disabled":h,"aria-busy":n,tabIndex:g,type:u??Lb,onClick:n?void 0:y,...v,children:[sr("span",{className:a("absolute inset-0 flex items-center justify-center transition-opacity duration-150",n?"opacity-100":"opacity-0"),"aria-hidden":"true",children:sr(At,{size:"sm"})}),n&&sr("span",{className:"sr-only",children:i}),hs("span",{className:a("inline-flex items-center justify-center gap-2 transition-opacity duration-150",n&&"opacity-0"),children:[l,c,d]})]})});Ls.displayName="Button";var se=!0,Ze=4,It="fixed inset-0 z-50 bg-black/50",sn="transition-[color,background-color,border-color,box-shadow,transform,opacity,filter] duration-[var(--motion-duration-medium)] ease-[var(--motion-ease-standard)] absolute top-4 right-4 rounded-[var(--radius)] border border-border p-1.5 text-muted-foreground hover:bg-accent hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none";import{useEffect as Hb,useSyncExternalStore as kb}from"react";var Ha="(prefers-reduced-motion: reduce)",Cr="data-gs-reduced-motion",lr="data-gs-demo-reduced-motion",ka="gs-reduced-motion",wa="gs:reduced-motion-change",Sb=lr,Rs=!1;function Cs(){return typeof window<"u"&&typeof window.localStorage<"u"}function ws(e){if(!Cs())return null;try{let t=window.localStorage.getItem(e);if(t==="true")return!0;if(t==="false")return!1;return null}catch{return null}}function Db(e,t){if(!Cs())return;try{if(e){window.localStorage.setItem(t,"true");return}window.localStorage.removeItem(t)}catch(r){}}function xs(e){if(typeof document>"u")return!1;return document.documentElement.getAttribute(e)==="true"}function Ab(){return xs(Cr)||xs(lr)}function Bb(){if(typeof window>"u"||typeof window.matchMedia!=="function")return!1;return window.matchMedia(Ha).matches}function go(){return Ab()||Bb()}function Hs(e){if(typeof document>"u")return;if(e){document.documentElement.setAttribute(Cr,"true"),document.documentElement.setAttribute(lr,"true");return}document.documentElement.removeAttribute(Cr),document.documentElement.removeAttribute(lr)}function Ib(e,t){let r=t?.persist??!0,o=t?.storageKey??ka;if(Hs(e),r)Db(e,o);if(typeof window<"u")window.dispatchEvent(new CustomEvent(wa,{detail:{enabled:e}}))}function ks(e){if(Rs)return;Rs=!0;let t=ws(e);if(t===null)return;Hs(t)}var Fb=()=>!1;function Ob(e){if(typeof window>"u")return()=>{return};let t=window.matchMedia(Ha);t.addEventListener("change",e),window.addEventListener(wa,e);let r=typeof MutationObserver<"u"?new MutationObserver((o)=>{for(let n of o)if(n.type==="attributes"&&(n.attributeName===Cr||n.attributeName===lr)){e();break}}):null;return r?.observe(document.documentElement,{attributes:!0,attributeFilter:[Cr,lr]}),()=>{t.removeEventListener("change",e),window.removeEventListener(wa,e),r?.disconnect()}}function ce(){return Hb(()=>{ks(ka)},[]),kb(Ob,go,Fb)}import{jsx as We,jsxs as Jb,Fragment as Xb}from"react/jsx-runtime";var mr={sm:A.sm,md:A.md,lg:A.lg,full:"full"},Kb=160,As=Ss(a("gs-dialog-overlay",It)),Bs=Ss("gs-dialog-content fixed left-1/2 top-1/2 z-50 grid w-full gap-4 border border-border bg-card p-6 text-foreground shadow-[var(--shadow-xl)] rounded-[var(--radius)]",{variants:{size:{[mr.sm]:"max-w-sm",[mr.md]:"max-w-md",[mr.lg]:"max-w-lg",[mr.full]:"max-w-[calc(100vw-2rem)] max-h-[calc(100vh-2rem)]"}},defaultVariants:{size:mr.md}}),Is=Gb(!1),$b=({children:e,open:t,defaultOpen:r=!1,onOpenChange:o,...n})=>{let[i,s]=Ds(r),l=t!==void 0,d=l?t:i,m=Wb((c)=>{if(!l)s(c);o?.(c)},[l,o]);return We(Is.Provider,{value:d,children:We(Pe.Root,{open:d,onOpenChange:m,...n,children:e})})},Yb=Pe.Trigger,Fs=Pe.Portal,Sa=wr(({className:e,...t},r)=>We(Pe.Overlay,{ref:r,className:a(As(),e),...t}));Sa.displayName="AlertDialogOverlay";var Os=wr(({className:e,size:t=mr.sm,showOverlay:r=!0,portal:o=se,portalContainer:n,forceMount:i=!1,"aria-describedby":s,...l},d)=>{let m=_b(Is),[c,u]=Ds(i||m),g=f(t),y=ce();if(Ub(()=>{if(i||m){u(!0);return}let M=setTimeout(()=>{u(!1)},y?0:Kb);return()=>{clearTimeout(M)}},[i,m,y]),!(i||m||c))return null;let T=Jb(Xb,{children:[r?We(Sa,{forceMount:!0}):null,We(Pe.Content,{ref:d,forceMount:!0,"aria-describedby":s,className:a(Bs({size:g}),e),...l})]});if(!o)return T;return We(Fs,{forceMount:!0,container:n??void 0,children:T})});Os.displayName="AlertDialogContent";var Gs=({className:e,...t})=>We("div",{className:a("flex flex-col space-y-2 text-center sm:text-left",e),...t});Gs.displayName="AlertDialogHeader";var Ws=({className:e,...t})=>We("div",{className:a("flex flex-col-reverse sm:flex-row sm:justify-end sm:gap-2.5",e),...t});Ws.displayName="AlertDialogFooter";var _s=wr(({className:e,...t},r)=>We(Pe.Title,{ref:r,className:a("font-semibold text-lg",e),...t}));_s.displayName="AlertDialogTitle";var Us=wr(({className:e,...t},r)=>We(Pe.Description,{ref:r,className:a("text-muted-foreground text-sm",e),...t}));Us.displayName="AlertDialogDescription";var Ks=wr(({className:e,...t},r)=>We(Pe.Action,{ref:r,className:a(fo(),e),...t}));Ks.displayName="AlertDialogAction";var $s=wr(({className:e,...t},r)=>We(Pe.Cancel,{ref:r,className:a(fo({variant:"outline"}),"mt-2 sm:mt-0",e),...t}));$s.displayName="AlertDialogCancel";import*as Da from"@radix-ui/react-aspect-ratio";import{cva as qb}from"class-variance-authority";import{forwardRef as Qb}from"react";import{jsx as Zb}from"react/jsx-runtime";var Ys=qb("relative overflow-hidden rounded-[calc(var(--radius)-2px)] border border-border/40"),Xs=Qb(({className:e,...t},r)=>Zb(Da.Root,{ref:r,className:a(Ys(),e),...t}));Xs.displayName=Da.Root.displayName;import*as Hr from"@radix-ui/react-avatar";import{cva as jb}from"class-variance-authority";import{forwardRef as ln}from"react";import{jsx as mn,jsxs as Js}from"react/jsx-runtime";var ut={sm:"sm",md:"md",lg:"lg"},qs=jb("relative flex shrink-0 overflow-hidden rounded-full",{variants:{size:{[ut.sm]:"h-7 w-7 text-xs",[ut.md]:"h-10 w-10 text-sm",[ut.lg]:"h-12 w-12 text-base"}},defaultVariants:{size:ut.md}}),Aa=ln(({className:e,size:t=ut.sm,...r},o)=>{let n=f(t);return mn(Hr.Root,{ref:o,className:a(qs({size:n}),e),...r})});Aa.displayName="Avatar";var Qs=ln(({className:e,...t},r)=>mn(Hr.Image,{ref:r,className:a("aspect-square h-full w-full object-cover",e),...t}));Qs.displayName="AvatarImage";var Ba=ln(({className:e,...t},r)=>mn(Hr.Fallback,{ref:r,className:a("flex h-full w-full items-center justify-center rounded-full bg-muted font-medium text-muted-foreground",e),...t}));Ba.displayName="AvatarFallback";var ev={[ut.sm]:"-space-x-2",[ut.md]:"-space-x-3",[ut.lg]:"-space-x-4"},Zs=ln(({className:e,children:t,max:r,size:o=ut.sm,...n},i)=>{let s=f(o),l=Array.isArray(t)?t:[t],d=r?l.slice(0,r):l,m=r?Math.max(0,l.length-r):0;return Js("div",{ref:i,className:a("flex items-center",ev[s],e),...n,children:[d,m>0&&mn(Aa,{size:s,className:"border-2 border-background",children:Js(Ba,{className:"text-xs",children:["+",m]})})]})});Zs.displayName="AvatarGroup";import{Slot as tv}from"@radix-ui/react-slot";import{cva as rv}from"class-variance-authority";import{X as js}from"lucide-react";import{forwardRef as ov}from"react";import{jsx as bo,jsxs as el}from"react/jsx-runtime";var Ee={default:"default",primary:"primary",success:"success",warning:"warning",error:"error",info:"info",outline:"outline"},Ft={sm:"sm",md:"md",lg:"lg",dot:"dot"},tl=rv("group/badge inline-flex items-center justify-center gap-1 whitespace-nowrap rounded-full border font-medium leading-none",{variants:{variant:{[Ee.default]:"border-border bg-muted text-muted-foreground",[Ee.primary]:"border-primary/30 bg-primary/10 text-primary",[Ee.success]:"border-success/30 bg-success/10 text-success",[Ee.warning]:"border-warning/30 bg-warning/10 text-warning",[Ee.error]:"border-destructive/30 bg-destructive/10 text-destructive",[Ee.info]:"border-info/30 bg-info/10 text-info",[Ee.outline]:"border-border bg-transparent text-foreground"},solid:{true:"",false:""},size:{[Ft.sm]:"h-5 px-1.5 text-[11px]",[Ft.md]:"h-5 px-2 text-[11px]",[Ft.lg]:"h-6 px-2.5 text-xs",[Ft.dot]:"h-2 w-2 p-0"}},compoundVariants:[{solid:!0,variant:Ee.default,className:"border-transparent bg-foreground text-background"},{solid:!0,variant:Ee.primary,className:"border-primary bg-primary text-primary-foreground"},{solid:!0,variant:Ee.success,className:"border-success bg-success text-background"},{solid:!0,variant:Ee.warning,className:"border-warning bg-warning text-background"},{solid:!0,variant:Ee.error,className:"border-destructive bg-destructive text-destructive-foreground"},{solid:!0,variant:Ee.info,className:"border-info bg-info text-background"},{solid:!0,variant:Ee.outline,className:"border-border bg-foreground text-background"}],defaultVariants:{variant:Ee.default,solid:!1,size:Ft.sm}}),vo=ov(({className:e,variant:t=Ee.default,size:r=Ft.sm,solid:o=!1,pulse:n=!1,removable:i=!1,removeControl:s="button",removeLabel:l="Remove",onRemove:d,onClick:m,children:c,asChild:u=!1,...g},y)=>{let v=f(r),T=Boolean(m),M=v===Ft.dot,V=T&&s==="button"?"span":s,p=(L)=>{L.preventDefault(),L.stopPropagation(),d?.(L)},h=(L)=>{if(L.key!=="Enter"&&L.key!==" ")return;L.preventDefault(),L.stopPropagation()},N=a(tl({variant:t,solid:o,size:v}),T&&"cursor-pointer",n&&"animate-pulse",i&&!M&&"pr-1",e),C=a("ml-0.5 inline-flex items-center justify-center rounded-full text-current opacity-60","transition-[color,background-color,border-color,box-shadow,transform,opacity,filter] duration-[var(--motion-duration-medium)] ease-[var(--motion-ease-standard)] hover:opacity-100","size-3.5 group-data-[size=lg]/badge:size-4"),H="size-2.5 group-data-[size=lg]/badge:size-3",S=i&&!M&&V==="button"?bo("button",{type:"button",className:C,onClick:p,"aria-label":l,tabIndex:-1,children:bo(js,{className:"size-2.5 group-data-[size=lg]/badge:size-3"})}):i&&!M?bo("span",{role:"button",className:C,onClick:p,onKeyDown:h,"aria-label":l,tabIndex:-1,children:bo(js,{className:"size-2.5 group-data-[size=lg]/badge:size-3"})}):null;if(u)return bo(tv,{ref:y,className:N,onClick:m,"data-size":v,...g,children:c});if(T)return el("button",{ref:y,className:N,onClick:m,type:"button","data-size":v,...g,children:[!M&&c,S]});return el("span",{ref:y,className:N,"data-size":v,...g,children:[!M&&c,S]})});vo.displayName="Badge";import{Children as nv,cloneElement as av,forwardRef as iv,isValidElement as sv,useCallback as rl,useEffect as lv,useLayoutEffect as mv,useRef as dv,useState as uv}from"react";import{jsx as ol}from"react/jsx-runtime";function cv(e){let t=[];return nv.forEach(e,(r,o)=>{if(!sv(r))return;let n=r.key??o;t.push({key:n,element:r,isLeaving:!1})}),t}function pv(e,t){let r=new Set(t.map((i)=>i.key)),o=new Set(e.map((i)=>i.key)),n=[];for(let i of e)if(r.has(i.key)){let s=t.find((l)=>l.key===i.key);if(s)n.push({...s,isLeaving:!1})}else n.push({...i,isLeaving:!0});for(let i of t)if(!o.has(i.key))n.push(i);return n}function fv(e,t,r){if(r.current)return r.current=!1,t;return pv(e,t)}var gv=typeof window<"u"?mv:lv,nl=iv(({children:e,className:t,onRemove:r,gap:o="sm"},n)=>{let[i,s]=uv([]),l=dv(!0);gv(()=>{let u=cv(e);s((g)=>fv(g,u,l))},[e]);let d=rl((u)=>{s((g)=>g.filter((y)=>y.key!==u))},[]),m=rl((u)=>{r?.(u)},[r]),c={sm:"gap-1",md:"gap-2",lg:"gap-3"}[o];return ol("div",{ref:n,className:a("inline-flex flex-wrap items-center",c,t),children:i.map((u)=>{let g={};if(u.element.props.removable&&r)g.onRemove=()=>{m(u.key)};let y=a("inline-flex transition-all duration-200",u.isLeaving&&"pointer-events-none scale-95 opacity-0");return ol("span",{className:y,onTransitionEnd:u.isLeaving?()=>d(u.key):void 0,children:av(u.element,g)},u.key)})})});nl.displayName="BadgeGroup";import{Slot as bv}from"@radix-ui/react-slot";import{cva as kr}from"class-variance-authority";import{ChevronRight as vv,MoreHorizontal as yv}from"lucide-react";import{createContext as Tv,forwardRef as yo,useContext as Ia}from"react";import{jsx as ct,jsxs as hv}from"react/jsx-runtime";var fe={sm:"sm",md:"md",lg:"lg"},dn=Tv(fe.md),al=kr("flex flex-wrap items-center break-words text-muted-foreground",{variants:{size:{[fe.sm]:"gap-1 text-xs",[fe.md]:"gap-1.5 text-sm sm:gap-2.5",[fe.lg]:"gap-2 text-base sm:gap-3"}},defaultVariants:{size:fe.md}}),il=kr("inline-flex items-center gap-1.5"),sl=kr("transition-[color,background-color,border-color,box-shadow,transform,opacity,filter] duration-[var(--motion-duration-medium)] ease-[var(--motion-ease-standard)] hover:text-foreground focus-visible:outline-none focus-visible:text-foreground"),ll=kr("font-normal text-foreground"),ml=kr("",{variants:{size:{[fe.sm]:"[&>svg]:size-3",[fe.md]:"[&>svg]:size-3.5",[fe.lg]:"[&>svg]:size-4"}},defaultVariants:{size:fe.md}}),dl=kr("flex items-center justify-center",{variants:{size:{[fe.sm]:"h-7 w-7 [&>svg]:size-3.5",[fe.md]:"h-9 w-9 [&>svg]:size-4",[fe.lg]:"h-10 w-10 [&>svg]:size-5"}},defaultVariants:{size:fe.md}}),un=yo(({size:e=fe.sm,...t},r)=>{let o=f(e)??fe.md;return ct(dn.Provider,{value:o,children:ct("nav",{ref:r,"aria-label":"breadcrumb",...t})})});un.displayName="Breadcrumb";var cn=yo(({className:e,...t},r)=>{let o=Ia(dn);return ct("ol",{ref:r,className:a(al({size:o}),e),...t})});cn.displayName="BreadcrumbList";var To=yo(({className:e,...t},r)=>ct("li",{ref:r,className:a(il(),e),...t}));To.displayName="BreadcrumbItem";var ho=yo(({asChild:e,className:t,...r},o)=>{return ct(e?bv:"a",{ref:o,className:a(sl(),t),...r})});ho.displayName="BreadcrumbLink";var pn=yo(({className:e,...t},r)=>ct("span",{ref:r,role:"link",tabIndex:0,"aria-disabled":"true","aria-current":"page",className:a(ll(),e),...t}));pn.displayName="BreadcrumbPage";var Po=({children:e,className:t,...r})=>{let o=Ia(dn),n={[fe.sm]:"size-3",[fe.md]:"size-3.5",[fe.lg]:"size-4"};return ct("li",{role:"presentation","aria-hidden":"true",className:a(ml({size:o}),t),...r,children:e??ct(vv,{className:n[o]})})};Po.displayName="BreadcrumbSeparator";var fn=({className:e,...t})=>{let r=Ia(dn);return hv("span",{role:"presentation","aria-hidden":"true",className:a(dl({size:r}),e),...t,children:[ct(yv,{}),ct("span",{className:"sr-only",children:"More"})]})};fn.displayName="BreadcrumbEllipsis";import{createContext as Pv,Fragment as ul,useCallback as Vv,useContext as Wa,useEffect as Mv,useMemo as pl,useRef as zv,useState as Nv}from"react";import{jsx as _e,jsxs as cl}from"react/jsx-runtime";var gn=Pv(null),Ev=({children:e})=>{let[t,r]=Nv([]),o=pl(()=>({items:t,setItems:r}),[t]);return _e(gn.Provider,{value:o,children:e})},Lv=()=>{let e=Wa(gn);if(!e)throw Error("useBreadcrumbStore must be used within BreadcrumbStoreProvider");return{items:e.items}},Rv=({items:e})=>{let t=Wa(gn);if(!t)throw Error("SetBreadcrumbs must be used within BreadcrumbStoreProvider");let r=zv("");return Mv(()=>{let o=Fa(e),n=Oa(o);if(n===r.current)return;r.current=n,t.setItems(o)}),null},xv=({size:e,className:t,collapse:r,renderLink:o})=>{let n=Wa(gn);if(!n)throw Error("BreadcrumbDisplay must be used within BreadcrumbStoreProvider");let{items:i}=n,s=pl(()=>Ga(i,r),[i,r]),l=Vv((m)=>{if(m.current)return _e(pn,{children:m.label});if(m.href){if(o)return _e(ho,{asChild:!0,children:o({href:m.href,children:m.label,className:a(m.disabled&&"pointer-events-none opacity-50")})});return _e(ho,{href:m.href,"aria-disabled":m.disabled||void 0,className:a(m.disabled&&"pointer-events-none opacity-50"),children:m.label})}return _e("span",{className:"text-muted-foreground",children:m.label})},[o]);if(i.length===0)return null;let{visibleItems:d}=s;return _e(un,{size:e,className:t,children:_e(cn,{children:d.map((m,c)=>{let u=c===d.length-1;if(m.type==="ellipsis")return cl(ul,{children:[_e(To,{children:_e(fn,{})}),!u&&_e(Po,{})]},m.id);return cl(ul,{children:[_e(To,{children:l(m.item)}),!u&&_e(Po,{})]},m.item.id)})})})};import{cva as wv}from"class-variance-authority";import{forwardRef as Hv}from"react";import{jsx as kv}from"react/jsx-runtime";var Vo={horizontal:"horizontal",vertical:"vertical"},fl=wv("inline-flex items-stretch",{variants:{orientation:{[Vo.horizontal]:"flex-row",[Vo.vertical]:"flex-col"},attached:{true:"gap-0 [&>*:not(:first-child)]:rounded-l-none [&>*:not(:last-child)]:rounded-r-none",false:"gap-2"}},defaultVariants:{orientation:Vo.horizontal,attached:!1}}),gl=Hv(({className:e,orientation:t=Vo.horizontal,attached:r=!1,fullWidth:o=!1,...n},i)=>kv("div",{ref:i,className:a(fl({orientation:t,attached:r}),o&&"w-full",e),...n}));gl.displayName="ButtonGroup";import{cva as Ot}from"class-variance-authority";import{forwardRef as Sv,useCallback as Sr,useEffect as Dv,useMemo as bl,useState as vl}from"react";import{jsx as Lt,jsxs as bn}from"react/jsx-runtime";var Y={sm:"sm",md:"md",lg:"lg"},Tl=Ot("flex flex-col rounded-xl border border-border bg-card/95 shadow-[var(--shadow-sm)] transition-[color,background-color,border-color,box-shadow] duration-150",{variants:{size:{[Y.sm]:"p-3 text-sm",[Y.md]:"p-4 text-sm",[Y.lg]:"p-5 text-base"}},defaultVariants:{size:Y.sm}}),hl=Ot("mb-3 flex items-center justify-between",{variants:{size:{[Y.sm]:"gap-1",[Y.md]:"gap-2",[Y.lg]:"gap-3"}},defaultVariants:{size:Y.sm}}),Pl=Ot("font-semibold text-foreground",{variants:{size:{[Y.sm]:"text-sm",[Y.md]:"text-base",[Y.lg]:"text-lg"}},defaultVariants:{size:Y.sm}}),_a=Ot(["inline-flex items-center justify-center rounded-md border border-transparent","text-muted-foreground hover:border-border/70 hover:bg-accent/60 hover:text-foreground","active:scale-[0.98]","transition-[color,background-color,border-color,box-shadow,transform,opacity] duration-150","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2","disabled:pointer-events-none disabled:cursor-not-allowed disabled:border-transparent disabled:bg-muted/40 disabled:text-muted-foreground/70"],{variants:{size:{[Y.sm]:"size-7",[Y.md]:"size-8",[Y.lg]:"size-10"}},defaultVariants:{size:Y.sm}}),Vl=Ot("grid grid-cols-7",{variants:{size:{[Y.sm]:"gap-0",[Y.md]:"gap-0",[Y.lg]:"gap-0"}},defaultVariants:{size:Y.sm}}),Ml=Ot("text-center font-semibold uppercase tracking-wide text-muted-foreground",{variants:{size:{[Y.sm]:"py-1 text-[11px]",[Y.md]:"py-1.5 text-xs",[Y.lg]:"py-2 text-sm"}},defaultVariants:{size:Y.sm}}),zl=Ot(["inline-flex items-center justify-center rounded-md border border-transparent font-medium","transition-[color,background-color,border-color,box-shadow,transform,opacity] duration-150","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-1","active:scale-[0.98]"],{variants:{size:{[Y.sm]:"size-7 text-xs",[Y.md]:"size-9 text-sm",[Y.lg]:"size-10 text-base"},state:{default:"cursor-pointer text-foreground hover:border-border/70 hover:bg-accent/60",selected:"border-primary/35 bg-primary text-primary-foreground shadow-[var(--glow-brand-sm)] hover:bg-primary/90",today:"border-primary/30 bg-primary/10 text-primary",disabled:"cursor-not-allowed border-transparent bg-muted/40 text-muted-foreground/60",outside:"",rangeStart:"cursor-pointer rounded-r-none border-primary/35 bg-primary text-primary-foreground hover:bg-primary/90",rangeEnd:"cursor-pointer rounded-l-none border-primary/35 bg-primary text-primary-foreground hover:bg-primary/90",range:"cursor-pointer rounded-none border-transparent bg-primary/12 text-primary hover:bg-primary/20"}},defaultVariants:{size:Y.sm,state:"default"}}),Av=Ot("rounded-md border border-transparent",{variants:{size:{[Y.sm]:"size-7",[Y.md]:"size-9",[Y.lg]:"size-10"}},defaultVariants:{size:Y.sm}}),yl=["Su","Mo","Tu","We","Th","Fr","Sa"],Bv=["January","February","March","April","May","June","July","August","September","October","November","December"],Et=(e)=>new Date(e.getFullYear(),e.getMonth(),e.getDate()),Dr=(e,t)=>{return e.getDate()===t.getDate()&&e.getMonth()===t.getMonth()&&e.getFullYear()===t.getFullYear()},Nl=Sv(({className:e,size:t="sm",cellSize:r,mode:o="single",value:n,defaultValue:i,onChange:s,rangeValue:l,onRangeChange:d,viewMonth:m,onViewMonthChange:c,minDate:u,maxDate:g,disabledDates:y=[],weekStartsOn:v=1,highlightToday:T=!0,...M},V)=>{let p=f(t)??Y.md,h=f(r??p)??p,[N,C]=vl(n??i??null),[H,S]=vl(n??i??new Date),L=m??H,U=Sr((b)=>{if(c){let P=typeof b==="function"?b(m??H):b;c(P)}else S((P)=>{return typeof b==="function"?b(P):b})},[m,H,c]),G=n!==void 0?n:N,K=u?Et(u):null,Z=g?Et(g):null;Dv(()=>{if(n!==void 0){if(C(n??null),n&&!m)S(n)}},[n,m]);let ie=Sr((b,P)=>{return(new Date(b,P,1).getDay()-v+7)%7},[v]),_=bl(()=>{let b=L.getFullYear(),P=L.getMonth(),R=ie(b,P),oe=new Date(b,P+1,0).getDate(),O=[];for(let I=0;I<R;I+=1)O.push({key:`leading-${b}-${P}-${I}`,date:null});for(let I=1;I<=oe;I+=1)O.push({key:`day-${b}-${P}-${I}`,date:new Date(b,P,I)});let Ne=(7-O.length%7)%7;for(let I=0;I<Ne;I+=1)O.push({key:`trailing-${b}-${P}-${I}`,date:null});return O},[L,ie]),re=Sr((b)=>{let P=Et(b);if(K&&P<K)return!0;if(Z&&P>Z)return!0;return y.some((R)=>Dr(P,Et(R)))},[K,Z,y]),w=Sr((b)=>{if(re(b))return"disabled";if(o==="range"&&l){let{from:P,to:R}=l;if(P&&Dr(b,P))return"rangeStart";if(R&&Dr(b,R))return"rangeEnd";if(P&&R){let oe=Et(b),O=Et(P),Ne=Et(R);if(oe>O&&oe<Ne)return"range"}}if(o==="single"&&G&&Dr(b,G))return"selected";if(T&&Dr(b,new Date))return"today";return"default"},[G,T,re,o,l]),J=Sr((b)=>{if(re(b))return;let P=new Date(b);if(o==="range"){if(!l?.from||l.from&&l.to)d?.({from:P,to:void 0});else{let R=Et(l.from);if(Et(P)<R)d?.({from:P,to:l.from});else d?.({from:l.from,to:P})}return}if(n===void 0)C(P);s?.(P)},[re,o,s,d,l,n]),E=Sr((b)=>{U((P)=>{let R=new Date(P);return R.setMonth(R.getMonth()+b),R})},[U]),F=bl(()=>{return[...yl.slice(v),...yl.slice(0,v)]},[v]);return bn("div",{ref:V,className:a(Tl({size:p}),e),...M,children:[bn("div",{className:a(hl({size:p})),children:[Lt("button",{type:"button",onClick:()=>E(-1),className:a(_a({size:p})),"aria-label":"Previous month",children:Lt("svg",{className:"size-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:Lt("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 19l-7-7 7-7"})})}),bn("span",{className:a(Pl({size:p})),children:[Bv[L.getMonth()]," ",L.getFullYear()]}),Lt("button",{type:"button",onClick:()=>E(1),className:a(_a({size:p})),"aria-label":"Next month",children:Lt("svg",{className:"size-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:Lt("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 5l7 7-7 7"})})})]}),bn("div",{className:a(Vl({size:p})),children:[F.map((b)=>Lt("div",{className:a(Ml({size:h})),children:b},b)),_.map((b)=>{if(!b.date)return Lt("div",{"aria-hidden":"true",className:a(Av({size:h}))},b.key);let P=b.date,R=w(P);return Lt("button",{type:"button",onClick:()=>J(P),disabled:R==="disabled",className:a(zl({size:h,state:R})),children:P.getDate()},b.key)})]})]})});Nl.displayName="Calendar";import{Slot as Ar}from"@radix-ui/react-slot";import{cva as Iv}from"class-variance-authority";import{forwardRef as Br}from"react";import{jsx as Ir}from"react/jsx-runtime";var vn={default:"default",muted:"muted",danger:"danger"},El=Iv("transition-[color,background-color,border-color,box-shadow,transform,opacity,filter] duration-[var(--motion-duration-medium)] ease-[var(--motion-ease-standard)] relative overflow-hidden rounded-[var(--radius)] border bg-card text-card-foreground shadow-[var(--shadow-sm)]",{variants:{variant:{[vn.default]:"border-border",[vn.muted]:"border-border bg-muted/70",[vn.danger]:"border-destructive/30 bg-destructive/[0.06]"}},defaultVariants:{variant:vn.default}}),Ll=Br(({asChild:e=!1,className:t,variant:r,...o},n)=>{return Ir(e?Ar:"div",{ref:n,className:a(El({variant:r}),t),...o})});Ll.displayName="Card";var Rl=Br(({asChild:e=!1,className:t,...r},o)=>{return Ir(e?Ar:"div",{ref:o,className:a("flex flex-col gap-1.5 border-border border-b p-4",t),...r})});Rl.displayName="CardHeader";var xl=Br(({asChild:e=!1,className:t,...r},o)=>{return Ir(e?Ar:"div",{ref:o,className:a("p-4",t),...r})});xl.displayName="CardContent";var Cl=Br(({asChild:e=!1,className:t,...r},o)=>{return Ir(e?Ar:"div",{ref:o,className:a("flex items-center border-border border-t p-4",t),...r})});Cl.displayName="CardFooter";var wl=Br(({asChild:e=!1,className:t,...r},o)=>{return Ir(e?Ar:"h3",{ref:o,className:a("font-semibold text-base leading-none tracking-tight",t),...r})});wl.displayName="CardTitle";var Hl=Br(({asChild:e=!1,className:t,...r},o)=>{return Ir(e?Ar:"p",{ref:o,className:a("text-muted-foreground text-sm",t),...r})});Hl.displayName="CardDescription";import*as Tn from"@radix-ui/react-checkbox";import{cva as Fv}from"class-variance-authority";import{Check as Ov,Minus as Gv}from"lucide-react";import{forwardRef as Wv}from"react";import{jsx as yn}from"react/jsx-runtime";var Rt={sm:"sm",md:"md",lg:"lg"},Fr={default:"default",error:"error",success:"success"},Sl=Fv("transition-[color,background-color,border-color,box-shadow,transform,opacity,filter] duration-[var(--motion-duration-medium)] ease-[var(--motion-ease-standard)] inline-flex shrink-0 items-center justify-center rounded border border-border bg-background text-foreground enabled:active:scale-[0.94] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background data-[state=checked]:border-primary data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground data-[state=indeterminate]:border-primary data-[state=indeterminate]:bg-primary data-[state=indeterminate]:text-primary-foreground disabled:cursor-not-allowed disabled:border-border disabled:bg-muted/45 disabled:text-muted-foreground",{variants:{size:{[Rt.sm]:"h-4 w-4",[Rt.md]:"h-5 w-5",[Rt.lg]:"h-6 w-6"},status:{[Fr.default]:"enabled:hover:border-primary/70",[Fr.error]:"enabled:hover:border-destructive/70 focus-visible:ring-destructive data-[state=checked]:border-destructive data-[state=checked]:bg-destructive data-[state=checked]:text-destructive-foreground data-[state=indeterminate]:border-destructive data-[state=indeterminate]:bg-destructive data-[state=indeterminate]:text-destructive-foreground",[Fr.success]:"enabled:hover:border-success/70 focus-visible:ring-success data-[state=checked]:border-success data-[state=checked]:bg-success data-[state=checked]:text-success-foreground data-[state=indeterminate]:border-success data-[state=indeterminate]:bg-success data-[state=indeterminate]:text-success-foreground"}},defaultVariants:{size:Rt.md,status:Fr.default}}),kl={[Rt.sm]:"size-3.5",[Rt.md]:"size-3.5",[Rt.lg]:"size-4"},Dl=Wv(({className:e,size:t=Rt.sm,status:r=Fr.default,checked:o,disabled:n,...i},s)=>{let l=f(t);return yn(Tn.Root,{ref:s,checked:o,disabled:n,className:a(Sl({size:l,status:r}),e),...i,children:yn(Tn.Indicator,{className:"gs-checkbox-indicator flex items-center justify-center text-current",children:o==="indeterminate"?yn(Gv,{className:kl[l]}):yn(Ov,{className:kl[l]})})})});Dl.displayName="Checkbox";import{cva as Gt}from"class-variance-authority";import{forwardRef as _v,useCallback as Uv,useState as Kv}from"react";import{jsx as pt,jsxs as Mo,Fragment as Al}from"react/jsx-runtime";var Q={sm:"sm",md:"md",lg:"lg"},Ua={default:"default",ghost:"ghost"},Bl=Gt("relative rounded-lg overflow-hidden font-mono",{variants:{size:{[Q.sm]:"text-xs",[Q.md]:"text-sm",[Q.lg]:"text-base"},variant:{[Ua.default]:"bg-muted border border-border",[Ua.ghost]:"bg-transparent"}},defaultVariants:{size:Q.sm,variant:Ua.default}}),Il=Gt("flex items-center justify-between border-b border-border bg-muted",{variants:{size:{[Q.sm]:"px-2.5 py-1.5 text-xs",[Q.md]:"px-4 py-2 text-sm",[Q.lg]:"px-5 py-2.5 text-base"}},defaultVariants:{size:Q.sm}}),Fl=Gt("text-muted-foreground font-medium",{variants:{size:{[Q.sm]:"text-[11px]",[Q.md]:"text-xs",[Q.lg]:"text-sm"}},defaultVariants:{size:Q.sm}}),Ol=Gt(["inline-flex items-center gap-1.5 rounded-md font-medium","text-muted-foreground hover:text-foreground hover:bg-muted","transition-all duration-150","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary"],{variants:{size:{[Q.sm]:"px-2 py-1 text-xs",[Q.md]:"px-2.5 py-1 text-xs",[Q.lg]:"px-3 py-1.5 text-sm"},copied:{true:"text-success",false:""}},defaultVariants:{size:Q.sm,copied:!1}}),Gl=Gt("overflow-x-auto",{variants:{size:{[Q.sm]:"p-2.5",[Q.md]:"p-4",[Q.lg]:"p-5"}},defaultVariants:{size:Q.sm}}),Wl=Gt("text-foreground",{variants:{size:{[Q.sm]:"",[Q.md]:"",[Q.lg]:""},showLineNumbers:{true:"",false:""}},defaultVariants:{size:Q.sm,showLineNumbers:!1}}),_l=Gt("block",{variants:{size:{[Q.sm]:"min-h-[1.25rem]",[Q.md]:"min-h-[1.5rem]",[Q.lg]:"min-h-[1.75rem]"},highlighted:{true:"bg-primary/10 -mx-4 px-4",false:""}},defaultVariants:{size:Q.sm,highlighted:!1}}),Ul=Gt("inline-block text-right text-muted-foreground select-none",{variants:{size:{[Q.sm]:"w-6 mr-2 text-[11px]",[Q.md]:"w-8 mr-4 text-xs",[Q.lg]:"w-10 mr-5 text-sm"}},defaultVariants:{size:Q.sm}}),Kl=_v(({className:e,code:t,language:r,showLineNumbers:o=!1,highlightedLines:n=[],showCopy:i=!0,size:s="sm",variant:l="default",onCopy:d,...m},c)=>{let u=f(s),[g,y]=Kv(!1),v=Uv(async()=>{try{await navigator.clipboard.writeText(t),y(!0),d?.(t),setTimeout(()=>y(!1),2000)}catch(V){}},[t,d]),T=t.split(`
|
|
3
|
+
`),M=new Set(n);return Mo("div",{ref:c,className:a(Bl({size:u,variant:l}),e),...m,children:[(r||i)&&Mo("div",{className:a(Il({size:u})),children:[pt("span",{className:a(Fl({size:u})),children:r}),i&&pt("button",{type:"button",onClick:v,className:a(Ol({size:u,copied:g})),children:g?Mo(Al,{children:[pt("svg",{className:"size-3.5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:pt("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M5 13l4 4L19 7"})}),"Copied!"]}):Mo(Al,{children:[pt("svg",{className:"size-3.5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:pt("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8 16H6a2 2 0 01-2-2V6a2 2 0 012-2h8a2 2 0 012 2v2m-6 12h8a2 2 0 002-2v-8a2 2 0 00-2-2h-8a2 2 0 00-2 2v8a2 2 0 002 2z"})}),"Copy"]})})]}),pt("div",{className:a(Gl({size:u})),children:pt("pre",{className:a(Wl({size:u,showLineNumbers:o})),children:pt("code",{children:T.map((V,p)=>Mo("span",{className:a(_l({size:u,highlighted:M.has(p+1)})),children:[o&&pt("span",{className:a(Ul({size:u})),children:p+1}),V,`
|
|
4
|
+
`]},`line-${String(p)}`))})})})]})});Kl.displayName="CodeBlock";import*as Or from"@radix-ui/react-collapsible";import{cva as $v}from"class-variance-authority";import{forwardRef as Yv}from"react";import{jsx as qv}from"react/jsx-runtime";var $l=$v("gs-collapsible-content overflow-hidden"),Xv=Or.Root,Jv=Or.CollapsibleTrigger,Yl=Yv(({className:e,...t},r)=>qv(Or.CollapsibleContent,{ref:r,className:a($l(),e),...t}));Yl.displayName="CollapsibleContent";import*as Wt from"@radix-ui/react-dialog";import{cva as je}from"class-variance-authority";import{createContext as jv,forwardRef as ft,useCallback as Jl,useContext as ey,useId as ty,useLayoutEffect as ry,useMemo as oy,useState as Ya}from"react";import{useCallback as Qv,useEffect as Zv,useRef as Xl}from"react";function zo(e,t,r={}){let{enabled:o=!0,preventDefault:n=!0,stopPropagation:i=!1,target:s="global"}=r,l=Xl(t);l.current=t;let d=Xl([]),m=Array.isArray(e)?e:[e];d.current=m.map((u)=>({combo:u,def:Ka(u)}));let c=Qv((u)=>{if(!o)return;for(let{combo:g,def:y}of d.current)if($a(u,y)){if(n)u.preventDefault();if(i)u.stopPropagation();l.current(u,g);return}},[o,n,i]);Zv(()=>{if(!o)return;let u=s==="global"?document:s.current;if(!u)return;return u.addEventListener("keydown",c),()=>{u.removeEventListener("keydown",c)}},[o,c,s])}import{jsx as xe,jsxs as Ja,Fragment as ay}from"react/jsx-runtime";var hn={sm:A.sm,md:A.md,lg:A.lg},ql=je(["gs-dialog-content fixed left-1/2 top-1/2 z-50","w-full border border-border rounded-xl bg-background","overflow-hidden shadow-[var(--shadow-xl)]"],{variants:{size:{[hn.sm]:"max-w-sm",[hn.md]:"max-w-lg",[hn.lg]:"max-w-2xl"}},defaultVariants:{size:hn.md}}),Ql=je(["gs-dialog-overlay fixed inset-0 z-50 bg-black/50 backdrop-blur-sm"]),Zl=je(["flex h-12 w-full bg-transparent px-4 py-3","text-base text-foreground placeholder:text-muted-foreground","border-b border-border","focus:outline-none","disabled:cursor-not-allowed disabled:border-transparent disabled:bg-muted/40 disabled:text-muted-foreground/70"]),jl=je(["max-h-[300px] overflow-y-auto overflow-x-hidden p-2"]),em=je(["py-6 text-center text-sm text-muted-foreground"]),tm=je(["overflow-hidden"]),rm=je(["px-2 py-1.5 text-xs font-medium text-muted-foreground"]),Pn={default:"default",danger:"danger"},om=je(["relative flex items-center gap-2 rounded-lg px-2 py-2","text-sm cursor-pointer select-none","outline-none transition-none","data-[disabled=true]:pointer-events-none data-[disabled=true]:cursor-not-allowed data-[disabled=true]:border-transparent data-[disabled=true]:bg-muted/40 data-[disabled=true]:text-muted-foreground/70"],{variants:{selected:{true:"bg-primary/10 text-primary",false:"hover:bg-accent hover:text-accent-foreground"},variant:{[Pn.default]:"text-foreground",[Pn.danger]:"text-destructive hover:bg-destructive/10 focus:bg-destructive/10 focus:text-destructive"}},defaultVariants:{selected:!1,variant:Pn.default}}),nm=je(["-mx-1 my-1 h-px bg-border"]),am=je(["ml-auto text-xs tracking-widest text-muted-foreground"]),im=je(["flex items-center justify-center py-6"]),sm=jv(null),Vn=()=>{let e=ey(sm);if(!e)throw Error("useCommand must be used within a Command");return e},Xa=ft(({className:e,children:t,loop:r=!0,...o},n)=>{let[i,s]=Ya(""),[l,d]=Ya(0),[m,c]=Ya({}),u=Jl((v,T)=>{c((M)=>{if(M[v]===T)return M;return{...M,[v]:T}})},[]),g=Jl((v)=>{c((T)=>{if(!(v in T))return T;let M={...T};return delete M[v],M})},[]),y=oy(()=>{return Object.values(m).filter(Boolean).length},[m]);return xe(sm.Provider,{value:{search:i,setSearch:s,selectedIndex:l,setSelectedIndex:d,visibleItemsCount:y,setItemVisible:u,removeItem:g},children:xe("div",{ref:n,className:a("flex flex-col overflow-hidden rounded-xl bg-card",e),...o,children:t})})});Xa.displayName="Command";var lm=ft(({children:e,size:t,showOverlay:r=!0,portal:o=se,portalContainer:n,forceMount:i=!1,...s},l)=>{let d=Ja(ay,{children:[r?xe(Wt.Overlay,{forceMount:i?!0:void 0,className:a(Ql())}):null,xe(Wt.Content,{ref:l,forceMount:i?!0:void 0,className:a(ql({size:t})),children:xe(Xa,{children:e})})]});return xe(Wt.Root,{...s,children:o?xe(Wt.Portal,{forceMount:i?!0:void 0,container:n??void 0,children:d}):d})});lm.displayName="CommandDialog";var mm=ft(({className:e,icon:t,...r},o)=>{let{search:n,setSearch:i,setSelectedIndex:s}=Vn();return Ja("div",{className:"flex items-center border-border border-b px-3",children:[t&&xe("span",{className:"mr-2 shrink-0 text-muted-foreground",children:t}),xe("input",{ref:o,value:n,onChange:(l)=>{i(l.target.value),s(0)},className:a(Zl(),e),...r})]})});mm.displayName="CommandInput";var dm=ft(({className:e,children:t,...r},o)=>{return xe("div",{ref:o,className:a(jl(),e),...r,children:t})});dm.displayName="CommandList";var um=ft(({className:e,children:t="No results found.",...r},o)=>{let{visibleItemsCount:n}=Vn();if(n>0)return null;return xe("div",{ref:o,className:a(em(),e),...r,children:t})});um.displayName="CommandEmpty";var cm=ft(({className:e,heading:t,children:r,...o},n)=>{return Ja("div",{ref:n,className:a(tm(),e),...o,children:[t&&xe("div",{className:a(rm()),children:t}),r]})});cm.displayName="CommandGroup";var pm=ft(({className:e,disabled:t,selected:r=!1,onSelect:o,children:n,keywords:i,variant:s,...l},d)=>{let{search:m,removeItem:c,setItemVisible:u}=Vn(),g=ty(),v=(()=>{if(!m)return!0;let T=m.toLowerCase();if((typeof n==="string"?n.toLowerCase():"").includes(T))return!0;if(i?.some((V)=>V.toLowerCase().includes(T)))return!0;return!1})();if(ry(()=>{return u(g,v),()=>{c(g)}},[v,g,c,u]),!v)return null;return xe("div",{ref:d,role:"option","aria-selected":r,"aria-disabled":t,"data-disabled":t,"data-selected":r,onClick:()=>!t&&o?.(),onKeyDown:(T)=>{if(T.key==="Enter"&&!t)T.preventDefault(),o?.()},tabIndex:t?-1:0,className:a(om({selected:r,variant:s}),e),...l,children:n})});pm.displayName="CommandItem";var fm=ft(({className:e,...t},r)=>{return xe("div",{ref:r,className:a(nm(),e),...t})});fm.displayName="CommandSeparator";var gm=ft(({className:e,children:t,...r},o)=>{return xe("span",{ref:o,className:a(am(),e),...r,children:t})});gm.displayName="CommandShortcut";var bm=ft(({className:e,children:t,...r},o)=>{return xe("div",{ref:o,className:a(im(),e),...r,children:t})});bm.displayName="CommandLoading";var ny=({key:e,modifier:t="meta",callback:r})=>{zo(`${t}+${e}`,r)};import*as D from"@radix-ui/react-context-menu";import{cva as dr}from"class-variance-authority";import{Check as iy,ChevronRight as sy,Circle as ly}from"lucide-react";import{createContext as vm,forwardRef as _t,useContext as ur}from"react";import{jsx as Ve,jsxs as Za}from"react/jsx-runtime";var $={sm:A.sm,md:A.md,lg:A.lg},Mn={default:"default",danger:"danger"},cr=vm($.md),ym=vm(void 0),qa=dr("z-50 min-w-[8rem] overflow-hidden rounded-[var(--radius)] border border-border/70 bg-popover p-1 text-popover-foreground shadow-[var(--shadow-md)] gs-float-content origin-[var(--radix-context-menu-content-transform-origin)]"),Qa=dr("relative flex cursor-pointer select-none items-center rounded-md outline-none transition-none data-[disabled]:pointer-events-none data-[disabled]:text-muted-foreground/50 data-[disabled]:cursor-not-allowed [&_svg]:pointer-events-none [&_svg]:shrink-0",{variants:{size:{[$.sm]:"h-7 gap-1.5 px-2 text-xs [&_svg]:size-3.5",[$.md]:"h-8 gap-2 px-2 text-sm [&_svg]:size-4",[$.lg]:"h-9 gap-2 px-2.5 text-sm [&_svg]:size-4"},variant:{[Mn.default]:"hover:bg-accent/80 focus:bg-accent focus:text-accent-foreground",[Mn.danger]:"text-destructive hover:bg-destructive/10 focus:bg-destructive/10 focus:text-destructive"}},defaultVariants:{size:$.sm,variant:Mn.default}}),Tm=dr("relative flex cursor-pointer select-none items-center rounded-md outline-none transition-none hover:bg-accent/80 focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:text-muted-foreground/50 data-[disabled]:cursor-not-allowed",{variants:{size:{[$.sm]:"h-7 pl-7 pr-2 text-xs",[$.md]:"h-8 pl-8 pr-2 text-sm",[$.lg]:"h-9 pl-8 pr-2.5 text-sm"}},defaultVariants:{size:$.sm}}),hm=dr("relative flex cursor-pointer select-none items-center rounded-md outline-none transition-none hover:bg-accent/80 focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:text-muted-foreground/50 data-[disabled]:cursor-not-allowed",{variants:{size:{[$.sm]:"h-7 pl-7 pr-2 text-xs",[$.md]:"h-8 pl-8 pr-2 text-sm",[$.lg]:"h-9 pl-8 pr-2.5 text-sm"}},defaultVariants:{size:$.sm}}),Pm=dr("font-semibold text-muted-foreground",{variants:{size:{[$.sm]:"px-2 py-1 text-[11px]",[$.md]:"px-2 py-1.5 text-xs",[$.lg]:"px-2.5 py-1.5 text-xs"}},defaultVariants:{size:$.sm}}),Vm=dr("-mx-1 my-1 h-px bg-border/50"),Mm=dr("ml-auto tracking-widest text-muted-foreground/70",{variants:{size:{[$.sm]:"text-[11px]",[$.md]:"text-xs",[$.lg]:"text-xs"}},defaultVariants:{size:$.sm}}),zm={[$.sm]:"absolute left-2 flex size-3.5 items-center justify-center",[$.md]:"absolute left-2 flex size-3.5 items-center justify-center",[$.lg]:"absolute left-2.5 flex size-4 items-center justify-center"},my={[$.sm]:"size-3",[$.md]:"size-3.5",[$.lg]:"size-4"},dy={[$.sm]:"size-1.5 fill-current",[$.md]:"size-2 fill-current",[$.lg]:"size-2.5 fill-current"},Nm=({size:e,...t})=>{let r=f(e??$.sm),o=e===void 0?void 0:r;return Ve(ym.Provider,{value:o,children:Ve(D.Root,{...t})})};Nm.displayName=D.Root.displayName;var uy=D.Trigger,cy=D.Group,py=D.Portal,fy=D.Sub,gy=D.RadioGroup,Em=_t(({className:e,inset:t,children:r,...o},n)=>{let i=ur(cr),s=f(i);return Za(D.SubTrigger,{ref:n,className:a(Qa({size:s}),"data-[state=open]:bg-accent",t&&"pl-8",e),...o,children:[r,Ve(sy,{className:"ml-auto"})]})});Em.displayName=D.SubTrigger.displayName;var Lm=_t(({className:e,sideOffset:t=Ze,portal:r=se,portalContainer:o,...n},i)=>{let s=Ve(D.SubContent,{ref:i,sideOffset:t,className:a(qa(),e),...n});if(!r)return s;return Ve(D.Portal,{container:o??void 0,children:s})});Lm.displayName=D.SubContent.displayName;var Rm=_t(({className:e,size:t,portal:r=se,portalContainer:o,...n},i)=>{let s=ur(ym),l=f(t??s??$.md),d=Ve(D.Content,{ref:i,className:a(qa(),e),...n});return Ve(cr.Provider,{value:l,children:r?Ve(D.Portal,{container:o??void 0,children:d}):d})});Rm.displayName=D.Content.displayName;var xm=_t(({className:e,inset:t,variant:r,...o},n)=>{let i=ur(cr),s=f(i);return Ve(D.Item,{ref:n,className:a(Qa({size:s,variant:r}),t&&"pl-8",e),...o})});xm.displayName=D.Item.displayName;var Cm=_t(({className:e,children:t,checked:r,...o},n)=>{let i=ur(cr),s=f(i)??$.md;return Za(D.CheckboxItem,{ref:n,className:a(Tm({size:s}),e),checked:r,...o,children:[Ve("span",{className:zm[s],children:Ve(D.ItemIndicator,{children:Ve(iy,{className:my[s]})})}),t]})});Cm.displayName=D.CheckboxItem.displayName;var wm=_t(({className:e,children:t,...r},o)=>{let n=ur(cr),i=f(n)??$.md;return Za(D.RadioItem,{ref:o,className:a(hm({size:i}),e),...r,children:[Ve("span",{className:zm[i],children:Ve(D.ItemIndicator,{children:Ve(ly,{className:dy[i]})})}),t]})});wm.displayName=D.RadioItem.displayName;var Hm=_t(({className:e,inset:t,...r},o)=>{let n=ur(cr),i=f(n);return Ve(D.Label,{ref:o,className:a(Pm({size:i}),t&&"pl-8",e),...r})});Hm.displayName=D.Label.displayName;var km=_t(({className:e,...t},r)=>Ve(D.Separator,{ref:r,className:a(Vm(),e),...t}));km.displayName=D.Separator.displayName;var Sm=({className:e,...t})=>{let r=ur(cr),o=f(r);return Ve("span",{className:a(Mm({size:o}),e),...t})};Sm.displayName="ContextMenuShortcut";import*as Me from"@radix-ui/react-dialog";import{cva as by}from"class-variance-authority";import{X as vy}from"lucide-react";import{createContext as yy,forwardRef as zn,useCallback as Ty,useContext as hy,useEffect as Py,useState as Dm}from"react";import{jsx as et,jsxs as ja,Fragment as Ny}from"react/jsx-runtime";var pr={sm:A.sm,md:A.md,lg:A.lg,full:"full"},Vy=160,Am=yy(!1),No=({children:e,open:t,defaultOpen:r=!1,onOpenChange:o,...n})=>{let[i,s]=Dm(r),l=t!==void 0,d=l?t:i,m=Ty((c)=>{if(!l)s(c);o?.(c)},[l,o]);return et(Am.Provider,{value:d,children:et(Me.Root,{open:d,onOpenChange:m,...n,children:e})})},My=Me.Trigger,Nn=Me.Portal,zy=Me.Close,ei=Me.Content,Eo=zn(({className:e,...t},r)=>et(Me.Overlay,{ref:r,className:a("gs-dialog-overlay",It,e),...t}));Eo.displayName="DialogOverlay";var Bm=by("gs-dialog-content fixed left-1/2 top-1/2 z-50 grid w-full gap-4 rounded-[var(--radius)] border border-border bg-card p-6 text-foreground shadow-[var(--shadow-xl)]",{variants:{size:{[pr.sm]:"max-w-sm",[pr.md]:"max-w-md",[pr.lg]:"max-w-lg",[pr.full]:"max-w-[calc(100vw-2rem)] max-h-[calc(100vh-2rem)]"}},defaultVariants:{size:pr.md}}),En=zn(({className:e,children:t,size:r=pr.sm,showClose:o=!0,showOverlay:n=!0,portal:i=se,portalContainer:s,forceMount:l=!1,"aria-describedby":d,...m},c)=>{let u=hy(Am),[g,y]=Dm(l||u),v=f(r),T=ce();if(Py(()=>{if(l||u){y(!0);return}let p=setTimeout(()=>{y(!1)},T?0:Vy);return()=>{clearTimeout(p)}},[l,u,T]),!(l||u||g))return null;let V=ja(Ny,{children:[n?et(Eo,{forceMount:!0}):null,ja(Me.Content,{ref:c,forceMount:!0,"aria-describedby":d,className:a(Bm({size:v}),e),...m,children:[t,o&&ja(Me.Close,{className:sn,children:[et(vy,{className:"size-4"}),et("span",{className:"sr-only",children:"Close"})]})]})]});if(!i)return V;return et(Nn,{forceMount:!0,container:s??void 0,children:V})});En.displayName="DialogContent";var Im=({className:e,...t})=>et("div",{className:a("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});Im.displayName="DialogHeader";var Fm=({className:e,...t})=>et("div",{className:a("flex flex-col-reverse sm:flex-row sm:justify-end sm:gap-2.5",e),...t});Fm.displayName="DialogFooter";var Ln=zn(({className:e,...t},r)=>et(Me.Title,{ref:r,className:a("font-semibold text-lg leading-none tracking-tight",e),...t}));Ln.displayName="DialogTitle";var Om=zn(({className:e,...t},r)=>et(Me.Description,{ref:r,className:a("text-muted-foreground text-sm",e),...t}));Om.displayName="DialogDescription";import{cva as oi}from"class-variance-authority";import{X as Ey}from"lucide-react";import{Children as Ly,forwardRef as Rn,isValidElement as Ry}from"react";import{Drawer as tt}from"vaul";import{jsx as De,jsxs as ti}from"react/jsx-runtime";var gt={sm:"sm",md:"md",lg:"lg",full:"full"},xy={[gt.sm]:"sm:max-w-sm",[gt.md]:"sm:max-w-md",[gt.lg]:"sm:max-w-lg",[gt.full]:"sm:max-w-full"},Cy={[gt.sm]:"sm:max-h-[30vh]",[gt.md]:"sm:max-h-[50vh]",[gt.lg]:"sm:max-h-[70vh]",[gt.full]:"sm:max-h-full"},_m=oi(a("gs-sheet-overlay",It)),Um=oi(["group/drawer-content fixed z-50 flex h-auto flex-col border border-border bg-card shadow-[var(--shadow-xl)]","data-[vaul-drawer-direction=top]:inset-x-0 data-[vaul-drawer-direction=top]:top-0 data-[vaul-drawer-direction=top]:mb-24 data-[vaul-drawer-direction=top]:max-h-[80vh] data-[vaul-drawer-direction=top]:rounded-b-xl data-[vaul-drawer-direction=top]:border-t-0","data-[vaul-drawer-direction=bottom]:inset-x-0 data-[vaul-drawer-direction=bottom]:bottom-0 data-[vaul-drawer-direction=bottom]:mt-24 data-[vaul-drawer-direction=bottom]:max-h-[80vh] data-[vaul-drawer-direction=bottom]:rounded-t-xl data-[vaul-drawer-direction=bottom]:border-b-0","data-[vaul-drawer-direction=right]:inset-y-0 data-[vaul-drawer-direction=right]:right-0 data-[vaul-drawer-direction=right]:h-full data-[vaul-drawer-direction=right]:w-3/4 data-[vaul-drawer-direction=right]:border-r-0","data-[vaul-drawer-direction=left]:inset-y-0 data-[vaul-drawer-direction=left]:left-0 data-[vaul-drawer-direction=left]:h-full data-[vaul-drawer-direction=left]:w-3/4 data-[vaul-drawer-direction=left]:border-l-0"]),ri=oi("shrink-0 rounded-full bg-muted-foreground/25 transition-colors duration-150 hover:bg-muted-foreground/40",{variants:{direction:{top:"h-1.5 w-[60px]",bottom:"h-1.5 w-[60px]",left:"h-[60px] w-1.5",right:"h-[60px] w-1.5"}},defaultVariants:{direction:"bottom"}}),Gm={top:"flex justify-center pb-2 pt-4",bottom:"flex justify-center pt-4 pb-2",left:"absolute right-0 top-0 flex h-full items-center pr-2 pl-0",right:"absolute left-0 top-0 flex h-full items-center pl-2 pr-0"},wy=tt.Root,Hy=tt.Trigger,ky=tt.Close,Km=tt.Portal,Wm=tt.Handle,ni=Rn(({className:e,...t},r)=>De(tt.Overlay,{ref:r,className:a(_m(),e),...t}));ni.displayName="DrawerOverlay";var $m=(e)=>Ly.toArray(e).some((t)=>{if(!Ry(t))return!1;if(t.type===ai)return!0;return $m(t.props.children)}),Ym=Rn(({size:e=gt.sm,showClose:t=!1,direction:r="bottom",srTitle:o="Drawer",className:n,children:i,"aria-describedby":s,...l},d)=>{let c=r==="left"||r==="right"?xy[e]:Cy[e],u=!$m(i);return ti(Km,{children:[De(ni,{}),ti(tt.Content,{ref:d,"aria-describedby":s,className:a(Um(),c,n),...l,children:[u?De(tt.Title,{className:"sr-only",children:o}):null,r!=="top"&&De("div",{className:a(Gm[r]),children:De(Wm,{className:"!m-0 !h-auto !w-auto !rounded-none !bg-transparent !opacity-100",children:De("div",{className:a(ri({direction:r}))})})}),i,r==="top"&&De("div",{className:a(Gm[r]),children:De(Wm,{className:"!m-0 !h-auto !w-auto !rounded-none !bg-transparent !opacity-100",children:De("div",{className:a(ri({direction:r}))})})}),t&&ti(tt.Close,{className:"absolute top-4 right-4 rounded-[var(--radius)] border border-border p-1.5 text-muted-foreground transition-[color,background-color,border-color] duration-150 hover:bg-accent hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none",children:[De(Ey,{className:"size-4"}),De("span",{className:"sr-only",children:"Close"})]})]})]})});Ym.displayName="DrawerContent";var Xm=({className:e,...t})=>De("div",{className:a("flex flex-col gap-1.5 p-4 group-data-[vaul-drawer-direction=bottom]/drawer-content:text-center group-data-[vaul-drawer-direction=top]/drawer-content:text-center sm:text-left",e),...t});Xm.displayName="DrawerHeader";var Jm=({className:e,...t})=>De("div",{className:a("mt-auto flex flex-col gap-2 p-4",e),...t});Jm.displayName="DrawerFooter";var ai=Rn(({className:e,...t},r)=>De(tt.Title,{ref:r,className:a("font-semibold text-foreground text-lg",e),...t}));ai.displayName="DrawerTitle";var qm=Rn(({className:e,...t},r)=>De(tt.Description,{ref:r,className:a("text-muted-foreground text-sm",e),...t}));qm.displayName="DrawerDescription";import*as B from"@radix-ui/react-dropdown-menu";import{cva as fr}from"class-variance-authority";import{Check as Sy,ChevronRight as Dy,Circle as Ay}from"lucide-react";import{createContext as By,forwardRef as Ut,useContext as Gr}from"react";import{jsx as Ce,jsxs as li}from"react/jsx-runtime";var X={sm:A.sm,md:A.md,lg:A.lg},xn={default:"default",danger:"danger"},gr=By(X.md),ii=fr("z-50 min-w-[8rem] overflow-hidden rounded-[var(--radius)] border border-border/70 bg-popover p-1 text-popover-foreground shadow-[var(--shadow-md)] gs-float-content origin-[var(--radix-dropdown-menu-content-transform-origin)]"),si=fr("relative flex cursor-pointer select-none items-center rounded-md outline-none data-[disabled]:pointer-events-none data-[disabled]:text-muted-foreground/50 data-[disabled]:cursor-not-allowed [&_svg]:pointer-events-none [&_svg]:shrink-0",{variants:{size:{[X.sm]:"h-7 gap-1.5 px-2 text-xs [&_svg]:size-3.5",[X.md]:"h-8 gap-2 px-2 text-sm [&_svg]:size-4",[X.lg]:"h-9 gap-2 px-2.5 text-sm [&_svg]:size-4"},variant:{[xn.default]:"hover:bg-accent/80 focus:bg-accent focus:text-accent-foreground",[xn.danger]:"text-destructive hover:bg-destructive/10 focus:bg-destructive/10 focus:text-destructive"}},defaultVariants:{size:X.sm,variant:xn.default}}),Qm=fr("relative flex cursor-pointer select-none items-center rounded-md outline-none hover:bg-accent/80 focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:text-muted-foreground/50 data-[disabled]:cursor-not-allowed",{variants:{size:{[X.sm]:"h-7 pl-7 pr-2 text-xs",[X.md]:"h-8 pl-8 pr-2 text-sm",[X.lg]:"h-9 pl-8 pr-2.5 text-sm"}},defaultVariants:{size:X.sm}}),Zm=fr("relative flex cursor-pointer select-none items-center rounded-md outline-none hover:bg-accent/80 focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:text-muted-foreground/50 data-[disabled]:cursor-not-allowed",{variants:{size:{[X.sm]:"h-7 pl-7 pr-2 text-xs",[X.md]:"h-8 pl-8 pr-2 text-sm",[X.lg]:"h-9 pl-8 pr-2.5 text-sm"}},defaultVariants:{size:X.sm}}),jm=fr("font-semibold text-muted-foreground",{variants:{size:{[X.sm]:"px-2 py-1 text-[11px]",[X.md]:"px-2 py-1.5 text-xs",[X.lg]:"px-2.5 py-1.5 text-xs"}},defaultVariants:{size:X.sm}}),ed=fr("-mx-1 my-1 h-px bg-border/50"),td=fr("ml-auto tracking-widest text-muted-foreground/70",{variants:{size:{[X.sm]:"text-[11px]",[X.md]:"text-xs",[X.lg]:"text-xs"}},defaultVariants:{size:X.sm}}),rd={[X.sm]:"absolute left-2 flex size-3.5 items-center justify-center",[X.md]:"absolute left-2 flex size-3.5 items-center justify-center",[X.lg]:"absolute left-2.5 flex size-4 items-center justify-center"},Iy={[X.sm]:"size-3",[X.md]:"size-3.5",[X.lg]:"size-4"},Fy={[X.sm]:"size-1.5 fill-current",[X.md]:"size-2 fill-current",[X.lg]:"size-2.5 fill-current"},Oy=B.Root,Gy=B.Trigger,Wy=B.Group,_y=B.Portal,Uy=B.Sub,Ky=B.RadioGroup,od=Ut(({className:e,inset:t,children:r,...o},n)=>{let i=Gr(gr),s=f(i);return li(B.SubTrigger,{ref:n,className:a(si({size:s}),"data-[state=open]:bg-accent",t&&"pl-8",e),...o,children:[r,Ce(Dy,{className:"ml-auto"})]})});od.displayName=B.SubTrigger.displayName;var nd=Ut(({className:e,sideOffset:t=Ze,portal:r=se,portalContainer:o,...n},i)=>{let s=Ce(B.SubContent,{ref:i,sideOffset:t,className:a(ii(),e),...n});if(!r)return s;return Ce(B.Portal,{container:o??void 0,children:s})});nd.displayName=B.SubContent.displayName;var ad=Ut(({className:e,sideOffset:t=Ze,size:r,portal:o=se,portalContainer:n,...i},s)=>{let l=f(r)??X.md,d=Ce(B.Content,{ref:s,sideOffset:t,className:a(ii(),e),...i});return Ce(gr.Provider,{value:l,children:o?Ce(B.Portal,{container:n??void 0,children:d}):d})});ad.displayName=B.Content.displayName;var id=Ut(({className:e,inset:t,variant:r,...o},n)=>{let i=Gr(gr),s=f(i);return Ce(B.Item,{ref:n,className:a(si({size:s,variant:r}),t&&"pl-8",e),...o})});id.displayName=B.Item.displayName;var sd=Ut(({className:e,children:t,checked:r,...o},n)=>{let i=Gr(gr),s=f(i)??X.md;return li(B.CheckboxItem,{ref:n,className:a(Qm({size:s}),e),checked:r,...o,children:[Ce("span",{className:rd[s],children:Ce(B.ItemIndicator,{children:Ce(Sy,{className:Iy[s]})})}),t]})});sd.displayName=B.CheckboxItem.displayName;var ld=Ut(({className:e,children:t,...r},o)=>{let n=Gr(gr),i=f(n)??X.md;return li(B.RadioItem,{ref:o,className:a(Zm({size:i}),e),...r,children:[Ce("span",{className:rd[i],children:Ce(B.ItemIndicator,{children:Ce(Ay,{className:Fy[i]})})}),t]})});ld.displayName=B.RadioItem.displayName;var md=Ut(({className:e,inset:t,...r},o)=>{let n=Gr(gr),i=f(n);return Ce(B.Label,{ref:o,className:a(jm({size:i}),t&&"pl-8",e),...r})});md.displayName=B.Label.displayName;var dd=Ut(({className:e,...t},r)=>Ce(B.Separator,{ref:r,className:a(ed(),e),...t}));dd.displayName=B.Separator.displayName;var ud=({className:e,...t})=>{let r=Gr(gr),o=f(r);return Ce("span",{className:a(td({size:o}),e),...t})};ud.displayName="DropdownMenuShortcut";import{cva as Lo}from"class-variance-authority";import{forwardRef as $y}from"react";import{jsx as Cn,jsxs as Yy}from"react/jsx-runtime";var Le={sm:"sm",md:"md",lg:"lg"},cd=Lo("flex flex-col items-center justify-center text-center rounded-[var(--radius)] border border-dashed border-border/70 bg-muted/35",{variants:{size:{[Le.sm]:"gap-2 p-4",[Le.md]:"gap-4 p-8",[Le.lg]:"gap-6 p-12"}},defaultVariants:{size:Le.sm}}),pd=Lo("flex items-center justify-center rounded-full border border-border/60 bg-muted/70 text-muted-foreground",{variants:{size:{[Le.sm]:"h-10 w-10 [&>svg]:h-4 [&>svg]:w-4",[Le.md]:"h-16 w-16 [&>svg]:h-7 [&>svg]:w-7",[Le.lg]:"h-20 w-20 [&>svg]:h-9 [&>svg]:w-9"}},defaultVariants:{size:Le.sm}}),fd=Lo("font-semibold text-foreground",{variants:{size:{[Le.sm]:"text-sm",[Le.md]:"text-lg",[Le.lg]:"text-xl"}},defaultVariants:{size:Le.sm}}),gd=Lo("text-muted-foreground max-w-sm",{variants:{size:{[Le.sm]:"text-xs",[Le.md]:"text-sm",[Le.lg]:"text-base"}},defaultVariants:{size:Le.sm}}),bd=Lo("flex items-center gap-2 mt-2"),vd=$y(({className:e,icon:t,title:r,description:o,actions:n,size:i=Le.sm,children:s,...l},d)=>{let m=f(i);return Yy("div",{ref:d,className:a(cd({size:m}),e),...l,children:[t&&Cn("div",{className:pd({size:m}),children:t}),r&&Cn("h3",{className:fd({size:m}),children:r}),o&&Cn("p",{className:gd({size:m}),children:o}),n&&Cn("div",{className:bd(),children:n}),s]})});vd.displayName="EmptyState";import{cva as Wr}from"class-variance-authority";import{Component as Xy,createElement as yd}from"react";import{jsx as Ue,jsxs as mi,Fragment as qy}from"react/jsx-runtime";var Td=Wr(["flex flex-col items-center justify-center rounded-xl border text-center","transition-colors duration-200 ease-out"],{variants:{size:{sm:"gap-3 p-6",md:"gap-4 p-8",lg:"gap-6 p-12"},variant:{destructive:"border-destructive/30 bg-destructive/8",warning:"border-warning/30 bg-warning/8",info:"border-info/30 bg-info/8"}},defaultVariants:{size:"sm",variant:"destructive"}}),hd=Wr(["flex items-center justify-center rounded-full","transition-colors duration-200 ease-out"],{variants:{size:{sm:"h-12 w-12 [&>svg]:h-5 [&>svg]:w-5",md:"h-16 w-16 [&>svg]:h-7 [&>svg]:w-7",lg:"h-20 w-20 [&>svg]:h-9 [&>svg]:w-9"},variant:{destructive:"bg-destructive/10 text-destructive",warning:"bg-warning/10 text-warning",info:"bg-info/10 text-info"}},defaultVariants:{size:"sm",variant:"destructive"}}),Pd=Wr("font-semibold transition-colors duration-300",{variants:{size:{sm:"text-lg",md:"text-xl",lg:"text-2xl"},variant:{destructive:"text-destructive",warning:"text-warning",info:"text-info"}},defaultVariants:{size:"sm",variant:"destructive"}}),Vd=Wr("max-w-xl text-muted-foreground transition-all duration-200",{variants:{size:{sm:"text-sm",md:"text-sm",lg:"text-base"}},defaultVariants:{size:"sm"}}),Md=Wr("mt-2 flex flex-wrap items-center justify-center gap-2"),zd=Wr("mt-4 max-h-48 w-full max-w-2xl overflow-auto rounded-md border border-border/70 bg-background/80 p-3 text-left font-mono text-xs text-muted-foreground");class Nd extends Xy{static displayName="ErrorBoundary";constructor(e){super(e);this.state={hasError:!1,error:null}}static getDerivedStateFromError(e){return{hasError:!0,error:e}}componentDidCatch(e,t){this.props.onError?.(e,t)}handleReset=()=>{this.setState({hasError:!1,error:null}),this.props.onReset?.()};render(){let{children:e,fallback:t,showDetails:r=!1,size:o="sm",variant:n="destructive",className:i,title:s="Something went wrong",description:l="An unexpected error occurred. Please try again.",icon:d,actions:m,resetLabel:c="Try again",hideReset:u=!1,renderDetails:g}=this.props;if(this.state.hasError&&this.state.error){let y={error:this.state.error,reset:this.handleReset};if(t){if(typeof t==="function")return yd(t,y);return t}let v=null;if(m)v=typeof m==="function"?yd(m,y):m;else if(!u){let M={destructive:"border-destructive/30 bg-destructive text-destructive-foreground hover:bg-destructive/90",warning:"border-warning/30 bg-warning text-warning-foreground hover:bg-warning/90",info:"border-info/30 bg-info text-info-foreground hover:bg-info/90"};v=Ue("button",{type:"button",onClick:this.handleReset,className:a("inline-flex items-center justify-center rounded-md border px-4 py-2 font-medium text-sm","transition-colors duration-150 ease-out","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-1",M[n]),children:c})}let T=g?g(this.state.error):mi(qy,{children:[Ue("strong",{children:"Error:"})," ",this.state.error.message,this.state.error.stack&&Ue("pre",{className:"mt-2 whitespace-pre-wrap",children:this.state.error.stack})]});return mi("div",{className:a(Td({size:o,variant:n}),i),children:[Ue("div",{className:a(hd({size:o,variant:n})),children:d??Ue(Jy,{})}),Ue("h3",{className:a(Pd({size:o,variant:n})),children:s}),Ue("p",{className:a(Vd({size:o})),children:l}),v&&Ue("div",{className:a(Md()),children:v}),r&&Ue("div",{className:a(zd()),children:T})]})}return e}}function Jy(){return mi("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[Ue("circle",{cx:"12",cy:"12",r:"10"}),Ue("line",{x1:"12",x2:"12",y1:"8",y2:"12"}),Ue("line",{x1:"12",x2:"12.01",y1:"16",y2:"16"})]})}import{cva as Kt}from"class-variance-authority";import{forwardRef as Qy,useCallback as rt,useRef as Zy,useState as Ed}from"react";import{jsx as Ie,jsxs as di}from"react/jsx-runtime";var ze={sm:"sm",md:"md",lg:"lg"},Ld=Kt(["relative flex flex-col items-center justify-center","rounded-xl border-2 border-dashed","shadow-[var(--shadow-xs)]","transition-[color,background-color,border-color,box-shadow,transform,opacity] duration-150","cursor-pointer","hover:border-primary/45 hover:bg-primary/8","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary focus-visible:ring-offset-2"],{variants:{size:{[ze.sm]:"min-h-28 p-5",[ze.md]:"min-h-36 p-8",[ze.lg]:"min-h-44 p-10"},isDragging:{true:"scale-[1.01] border-primary bg-primary/12 shadow-[var(--glow-brand-sm)]",false:"border-border bg-card/75"},disabled:{true:"cursor-not-allowed border-border/70 bg-muted/35 text-muted-foreground pointer-events-none",false:""},hasError:{true:"border-destructive bg-destructive/5",false:""}},defaultVariants:{size:ze.sm,isDragging:!1,disabled:!1,hasError:!1}}),Rd=Kt("text-muted-foreground transition-colors duration-200",{variants:{size:{[ze.sm]:"mb-2 size-6",[ze.md]:"size-8 mb-3",[ze.lg]:"size-10 mb-4"},isDragging:{true:"text-primary",false:""}},defaultVariants:{size:ze.sm,isDragging:!1}}),ui=Kt("text-center",{variants:{size:{[ze.sm]:"text-sm",[ze.md]:"text-sm",[ze.lg]:"text-base"}},defaultVariants:{size:ze.sm}}),xd=Kt("mt-4 w-full space-y-2"),Cd=Kt(["flex items-center gap-3 rounded-lg border border-border/75 bg-card p-3.5","transition-[color,background-color,border-color,box-shadow,transform,opacity] duration-150","hover:border-primary/30 hover:bg-accent/45"]),wd=Kt("min-w-0 flex-1 truncate font-medium text-foreground",{variants:{size:{[ze.sm]:"text-sm",[ze.md]:"text-sm",[ze.lg]:"text-base"}},defaultVariants:{size:"sm"}}),Hd=Kt("text-muted-foreground",{variants:{size:{[ze.sm]:"text-xs",[ze.md]:"text-sm",[ze.lg]:"text-sm"}},defaultVariants:{size:"sm"}}),kd=Kt(["size-7 shrink-0 rounded-full border border-transparent","flex items-center justify-center","text-muted-foreground hover:border-destructive/25 hover:bg-destructive/10 hover:text-destructive","transition-colors duration-150","cursor-pointer"]),Sd=Qy(({className:e,size:t="sm",disabled:r=!1,accept:o,multiple:n=!1,maxSize:i,maxFiles:s,value:l=[],onChange:d,onError:m,icon:c,title:u="Drop files here or click to upload",description:g,showFileList:y=!0,...v},T)=>{let M=f(t),[V,p]=Ed(!1),[h,N]=Ed(!1),C=Zy(null),H=rt((E)=>{if(E===0)return"0 Bytes";let F=1024,b=["Bytes","KB","MB","GB"],P=Math.floor(Math.log(E)/Math.log(F));return`${parseFloat((E/F**P).toFixed(2))} ${b[P]}`},[]),S=rt((E)=>{let F=[...E];if(N(!1),o){let b=o.split(",").map((P)=>P.trim());if(F=F.filter((P)=>{return b.some((R)=>{if(R.startsWith("."))return P.name.toLowerCase().endsWith(R.toLowerCase());if(R.endsWith("/*"))return P.type.startsWith(R.slice(0,-1));return P.type===R})}),F.length<E.length)m?.("Some files were rejected due to file type"),N(!0)}if(i){let b=F.length;if(F=F.filter((P)=>P.size<=i),F.length<b)m?.(`File size must be less than ${H(i)}`),N(!0)}if(s&&F.length+l.length>s)F=F.slice(0,s-l.length),m?.(`Maximum ${s} files allowed`),N(!0);return F},[o,i,s,l.length,m,H]),L=rt((E)=>{if(!E||E.length===0)return;let F=Array.from(E),b=S(F);if(b.length>0)if(n)d?.([...l,...b]);else d?.(b.slice(0,1))},[n,l,d,S]),U=rt((E)=>{E.preventDefault(),E.stopPropagation(),p(!0)},[]),G=rt((E)=>{E.preventDefault(),E.stopPropagation(),p(!1)},[]),K=rt((E)=>{E.preventDefault(),E.stopPropagation()},[]),Z=rt((E)=>{if(E.preventDefault(),E.stopPropagation(),p(!1),r)return;L(E.dataTransfer.files)},[r,L]),ie=rt((E)=>{if(L(E.target.files),C.current)C.current.value=""},[L]),_=rt(()=>{if(!r)C.current?.click()},[r]),re=rt((E)=>{if(E.key==="Enter"||E.key===" ")E.preventDefault(),_()},[_]),w=rt((E)=>{let F=l.filter((b,P)=>P!==E);d?.(F)},[l,d]),J=Ie("svg",{className:a(Rd({size:M,isDragging:V})),fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1.5,children:Ie("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3 16.5v2.25A2.25 2.25 0 005.25 21h13.5A2.25 2.25 0 0021 18.75V16.5m-13.5-9L12 3m0 0l4.5 4.5M12 3v13.5"})});return di("div",{ref:T,className:a("w-full",e),...v,children:[di("div",{role:"button",tabIndex:r?-1:0,onClick:_,onKeyDown:re,onDragEnter:U,onDragLeave:G,onDragOver:K,onDrop:Z,className:a(Ld({size:M,isDragging:V,disabled:r,hasError:h})),children:[Ie("input",{ref:C,type:"file",accept:o,multiple:n,disabled:r,onChange:ie,className:"sr-only"}),c||J,Ie("p",{className:a(ui({size:M}),"font-medium text-foreground"),children:u}),g&&Ie("p",{className:a(ui({size:M}),"mt-1 text-muted-foreground"),children:g})]}),y&&l.length>0&&Ie("div",{className:a(xd()),children:l.map((E,F)=>di("div",{className:a(Cd()),children:[Ie("svg",{className:"size-5 shrink-0 text-muted-foreground",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1.5,children:Ie("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19.5 14.25v-2.625a3.375 3.375 0 00-3.375-3.375h-1.5A1.125 1.125 0 0113.5 7.125v-1.5a3.375 3.375 0 00-3.375-3.375H8.25m2.25 0H5.625c-.621 0-1.125.504-1.125 1.125v17.25c0 .621.504 1.125 1.125 1.125h12.75c.621 0 1.125-.504 1.125-1.125V11.25a9 9 0 00-9-9z"})}),Ie("span",{className:a(wd({size:M})),children:E.name}),Ie("span",{className:a(Hd({size:M})),children:H(E.size)}),Ie("button",{type:"button",onClick:(b)=>{b.stopPropagation(),w(F)},className:a(kd()),"aria-label":`Remove ${E.name}`,children:Ie("svg",{className:"size-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:Ie("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"})})})]},`${E.name}-${F}`))})]})});Sd.displayName="FileUpload";import{cva as jy}from"class-variance-authority";import{createContext as eT,forwardRef as wn,useCallback as Dd,useContext as tT,useEffect as Bd,useId as rT,useMemo as oT,useState as Ad}from"react";import{jsx as _r,jsxs as aT,Fragment as iT}from"react/jsx-runtime";var Ke={sm:"sm",md:"md",lg:"lg"},Id=eT(null),Ro=()=>{let e=tT(Id);if(!e)throw Error("useFormField must be used within a FormField");return e},Fd=jy("flex flex-col",{variants:{size:{[Ke.sm]:"gap-1",[Ke.md]:"gap-1.5",[Ke.lg]:"gap-2"}},defaultVariants:{size:Ke.sm}}),Od=wn(({className:e,size:t=Ke.sm,error:r,disabled:o=!1,required:n=!1,children:i,...s},l)=>{let d=rT(),m=f(t),[c,u]=Ad([]),[g,y]=Ad([]),v=Dd((V)=>{return u((p)=>p.includes(V)?p:[...p,V]),()=>{u((p)=>p.filter((h)=>h!==V))}},[]),T=Dd((V)=>{return y((p)=>p.includes(V)?p:[...p,V]),()=>{y((p)=>p.filter((h)=>h!==V))}},[]),M=oT(()=>({id:d,size:m,error:r,disabled:o,required:n,descriptionIds:c,errorIds:g,registerDescriptionId:v,registerErrorId:T}),[c,o,m,r,g,d,v,T,n]);return _r(Id.Provider,{value:M,children:_r("div",{ref:l,className:a(Fd({size:m}),e),...s,children:i})})});Od.displayName="FormField";var nT={[Ke.sm]:"text-xs",[Ke.md]:"text-sm",[Ke.lg]:"text-base"},Gd=wn(({className:e,htmlFor:t,children:r,...o},n)=>{let{id:i,size:s,disabled:l,required:d}=Ro();return aT("label",{ref:n,htmlFor:t??i,className:a("inline-block select-none font-medium text-foreground",nT[s],l&&"cursor-not-allowed opacity-60",e),...o,children:[r,d&&_r("span",{className:"ml-0.5 text-destructive","aria-hidden":"true",children:"*"})]})});Gd.displayName="FormFieldLabel";var Wd={[Ke.sm]:"text-[11px]",[Ke.md]:"text-xs",[Ke.lg]:"text-sm"},_d=wn(({className:e,id:t,...r},o)=>{let{id:n,size:i,registerDescriptionId:s}=Ro(),l=t??`${n}-description`;return Bd(()=>{return s(l)},[l,s]),_r("p",{ref:o,id:l,className:a("text-muted-foreground",Wd[i],e),...r})});_d.displayName="FormFieldDescription";var Ud=wn(({className:e,children:t,id:r,...o},n)=>{let{id:i,size:s,error:l,registerErrorId:d}=Ro(),m=t??l,c=r??`${i}-error`;if(Bd(()=>{if(!m)return;return d(c)},[c,m,d]),!m)return null;return _r("p",{ref:n,id:c,role:"alert",className:a("text-destructive",Wd[s],e),...o,children:m})});Ud.displayName="FormFieldError";var Kd=({children:e})=>{let{id:t,disabled:r,required:o,error:n,descriptionIds:i,errorIds:s}=Ro(),l=[...i,...s].join(" ");return _r(iT,{children:e({id:t,disabled:r,required:o,status:n||s.length>0?"error":"default","aria-describedby":l||void 0,"aria-invalid":n||s.length>0?!0:void 0})})};Kd.displayName="FormFieldControl";import*as xt from"@radix-ui/react-hover-card";import{cva as sT}from"class-variance-authority";import{forwardRef as lT}from"react";import{jsx as ci}from"react/jsx-runtime";var Ur={sm:A.sm,md:A.md,lg:A.lg},$d=sT("z-50 rounded-[var(--radius)] border border-border/70 bg-popover text-popover-foreground shadow-[var(--shadow-md)] gs-float-content origin-[var(--radix-hover-card-content-transform-origin)]",{variants:{size:{[Ur.sm]:"w-52 p-3 text-xs",[Ur.md]:"w-64 p-4 text-sm",[Ur.lg]:"w-80 p-5 text-sm"}},defaultVariants:{size:Ur.md}}),Yd=({openDelay:e,closeDelay:t,...r})=>{let o=ce();return ci(xt.Root,{openDelay:o?0:e,closeDelay:o?0:t,...r})};Yd.displayName="HoverCard";var mT=xt.Trigger,Xd=lT(({className:e,align:t="center",sideOffset:r=Ze,portal:o=se,portalContainer:n,size:i=Ur.sm,...s},l)=>{let d=f(i),m=ci(xt.Content,{ref:l,align:t,sideOffset:r,className:a($d({size:d}),e),...s});if(!o)return m;return ci(xt.Portal,{container:n??void 0,children:m})});Xd.displayName=xt.Content.displayName;import{cva as dT}from"class-variance-authority";import{X as uT}from"lucide-react";import{forwardRef as cT,useRef as pT,useState as fT}from"react";import{jsx as xo,jsxs as qd}from"react/jsx-runtime";var Co={default:"default",error:"error",success:"success"},ne={sm:"sm",md:"md",lg:"lg"},gT="Clear input",Qd=dT("transition-[color,background-color,border-color,box-shadow,transform,opacity,filter] duration-[var(--motion-duration-medium)] ease-[var(--motion-ease-standard)] w-full rounded-[var(--radius)] border border-input bg-background text-sm text-foreground outline-none placeholder:text-muted-foreground focus-visible:ring-2 disabled:cursor-not-allowed disabled:border-border disabled:bg-muted/45 disabled:text-muted-foreground",{variants:{status:{[Co.default]:"focus-visible:ring-primary",[Co.error]:"border-destructive focus-visible:ring-destructive",[Co.success]:"border-success focus-visible:ring-success"},size:{[ne.sm]:"h-8 px-2 text-xs",[ne.md]:"h-10 px-3",[ne.lg]:"h-11 px-4"}},defaultVariants:{status:Co.default,size:ne.sm}}),bT={[ne.sm]:"pl-7",[ne.md]:"pl-9",[ne.lg]:"pl-10"},vT={[ne.sm]:"pr-7",[ne.md]:"pr-9",[ne.lg]:"pr-10"},yT={[ne.sm]:"pr-12",[ne.md]:"pr-16",[ne.lg]:"pr-18"},TT={[ne.sm]:"text-xs left-2",[ne.md]:"text-sm left-3",[ne.lg]:"text-sm left-3.5"},hT={[ne.sm]:"text-xs",[ne.md]:"text-sm",[ne.lg]:"text-sm"},PT={[ne.sm]:"size-4",[ne.md]:"size-5",[ne.lg]:"size-5"},VT={[ne.sm]:"size-3",[ne.md]:"size-3.5",[ne.lg]:"size-3.5"};function Jd(e){if(e===void 0||e===null)return"";if(Array.isArray(e))return e.join("");return String(e)}var Zd=cT(({className:e,status:t=Co.default,size:r=ne.sm,fullWidth:o=!1,prefix:n,suffix:i,clearable:s=!1,clearAriaLabel:l=gT,onClear:d,onValueChange:m,disabled:c,readOnly:u,onChange:g,value:y,defaultValue:v,...T},M)=>{let V=Boolean(n),p=Boolean(i),h=f(r),N=pT(null),C=Ct(M,N),[H,S]=fT(()=>Jd(v)),L=y!==void 0,U=L?Jd(y):H,G=s&&!c&&!u,K=s&&!c&&!u&&U.length>0,Z=p||G,ie=p&&G,_=(w)=>{let J=w.target.value;if(!L)S(J);m?.(J),g?.(w)},re=()=>{if(!L)S("");m?.("");let w=N.current;if(w)w.value="",w.dispatchEvent(new Event("input",{bubbles:!0})),w.focus();d?.()};return qd("div",{className:a("relative flex items-center",o&&"w-full"),children:[V&&xo("span",{className:a("absolute inset-y-0 flex items-center text-muted-foreground",TT[h]),children:n}),xo("input",{ref:C,className:a(Qd({status:t,size:h}),V&&bT[h],ie&&yT[h],!ie&&Z&&vT[h],e),disabled:c,readOnly:u,onChange:_,value:U,...T}),Z&&qd("span",{className:a("absolute inset-y-0 right-2 flex items-center gap-1 text-muted-foreground",hT[h]),children:[p&&xo("span",{className:"inline-flex items-center",children:i}),G&&xo("button",{type:"button","aria-label":l,onMouseDown:(w)=>w.preventDefault(),onClick:re,tabIndex:K?0:-1,disabled:!K,className:a("inline-flex items-center justify-center rounded-[calc(var(--radius)-4px)] text-muted-foreground transition-[color,background-color,border-color,box-shadow,transform,opacity,filter] duration-[var(--motion-duration-medium)] ease-[var(--motion-ease-standard)] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",K?"cursor-pointer hover:text-foreground":"pointer-events-none opacity-0",PT[h]),children:xo(uT,{className:VT[h]})})]})]})});Zd.displayName="Input";import{cva as ET}from"class-variance-authority";import{forwardRef as LT}from"react";import{useSyncExternalStore as MT}from"react";var zT=()=>pi(),NT=()=>jd;function wo(){return MT(eu,zT,NT)}import{jsx as RT}from"react/jsx-runtime";var Kr={sm:"sm",md:"md",lg:"lg"},$r=ET("inline-flex items-center justify-center rounded border border-border bg-muted font-mono font-medium text-muted-foreground shadow-[0_1px_0_1px] shadow-border/50",{variants:{size:{[Kr.sm]:"min-w-5 h-5 px-1 text-[11px]",[Kr.md]:"min-w-6 h-6 px-1.5 text-xs",[Kr.lg]:"min-w-7 h-7 px-2 text-sm"}},defaultVariants:{size:Kr.sm}}),tu=LT(({className:e,size:t=Kr.sm,combo:r,keys:o,children:n,...i},s)=>{let l=f(t),{isMac:d}=wo(),m=r?Hn(r,d):o?Hn(o,d):n;return RT("kbd",{ref:s,className:a($r({size:l}),e),...i,children:m})});tu.displayName="Kbd";import{cva as xT}from"class-variance-authority";import{forwardRef as CT}from"react";import{jsx as wT,jsxs as HT}from"react/jsx-runtime";var Yr={sm:"sm",md:"md",lg:"lg"},ru=xT("inline-block font-medium text-foreground select-none peer-disabled:cursor-not-allowed peer-disabled:text-muted-foreground/70",{variants:{size:{[Yr.sm]:"text-xs",[Yr.md]:"text-sm",[Yr.lg]:"text-base"}},defaultVariants:{size:Yr.sm}}),ou=CT(({className:e,size:t=Yr.sm,required:r=!1,disabled:o=!1,children:n,htmlFor:i,...s},l)=>{let d=f(t);return HT("label",{ref:l,htmlFor:i,className:a(ru({size:d}),o&&"cursor-not-allowed text-muted-foreground/70",e),"aria-disabled":o||void 0,...s,children:[n,r&&wT("span",{className:"ml-0.5 text-destructive","aria-hidden":"true",children:"*"})]})});ou.displayName="Label";import{forwardRef as kT}from"react";import{jsx as ST}from"react/jsx-runtime";var nu=kT((e,t)=>{return ST(At,{ref:t,...e})});nu.displayName="Loader";import*as $t from"@radix-ui/react-popover";import{cva as GT}from"class-variance-authority";import{Check as WT,ChevronDown as _T,X as UT}from"lucide-react";import{forwardRef as KT,useCallback as wt,useEffect as fi,useLayoutEffect as su,useMemo as qr,useRef as Qr,useState as kn}from"react";import*as $e from"@radix-ui/react-popover";import{cva as DT}from"class-variance-authority";import{forwardRef as AT}from"react";import{jsx as au}from"react/jsx-runtime";var Xr={sm:A.sm,md:A.md,lg:A.lg},Jr=DT("z-50 rounded-[var(--radius)] border border-border bg-popover text-popover-foreground outline-none shadow-[var(--shadow-md)] gs-float-content origin-[var(--radix-popover-content-transform-origin)]",{variants:{size:{[Xr.sm]:"w-56 p-3 text-sm",[Xr.md]:"w-72 p-4 text-sm",[Xr.lg]:"w-96 p-5 text-sm"}},defaultVariants:{size:Xr.md}}),BT=$e.Root,IT=$e.Trigger,FT=$e.Anchor,OT=$e.Close,iu=AT(({className:e,align:t="center",sideOffset:r=Ze,portal:o=se,portalContainer:n,size:i=Xr.sm,...s},l)=>{let d=f(i),m=au($e.Content,{ref:l,align:t,sideOffset:r,className:a(Jr({size:d}),e),...s});if(o)return au($e.Portal,{container:n??void 0,children:m});return m});iu.displayName="PopoverContent";import{jsx as we,jsxs as br,Fragment as oh}from"react/jsx-runtime";var ee={sm:"sm",md:"md",lg:"lg"},lu=GT(["group flex w-full items-center gap-2 rounded-[var(--radius)] border border-input","bg-background text-sm text-foreground outline-none","placeholder:text-muted-foreground focus-visible:ring-2","data-[state=open]:ring-2","disabled:cursor-not-allowed disabled:border-border disabled:bg-muted/45 disabled:text-muted-foreground"].join(" "),{variants:{size:{[ee.sm]:"min-h-8 px-2.5 py-1 text-xs",[ee.md]:"min-h-10 px-3.5 py-1.5",[ee.lg]:"min-h-11 px-4.5 py-2 text-sm"},status:{default:"focus-visible:ring-primary data-[state=open]:ring-primary",error:"border-destructive focus-visible:ring-destructive data-[state=open]:ring-destructive",success:"border-success focus-visible:ring-success data-[state=open]:ring-success"}},defaultVariants:{size:ee.md,status:"default"}}),$T={[ee.sm]:"sm",[ee.md]:"md",[ee.lg]:"lg"},YT={[ee.sm]:"min-h-7.5 py-1.5 px-2.5 text-xs",[ee.md]:"min-h-9 py-2 px-3 text-sm",[ee.lg]:"min-h-10 py-2.5 px-3.5 text-sm"},Sn={[ee.sm]:"size-3.5",[ee.md]:"size-4",[ee.lg]:"size-4"},XT={[ee.sm]:"text-[11px]",[ee.md]:"text-xs",[ee.lg]:"text-xs"},JT=4,qT={[ee.sm]:34,[ee.md]:36,[ee.lg]:40},QT={[ee.sm]:5.8,[ee.md]:6,[ee.lg]:6.2},ZT={[ee.sm]:14,[ee.md]:16,[ee.lg]:18},jT={[ee.sm]:5.6,[ee.md]:5.8,[ee.lg]:6},eh=(e,t)=>{return Math.ceil(qT[t]+Math.max(1,e.trim().length)*QT[t])},th=(e,t)=>{let r=`+${e}`;return Math.ceil(ZT[t]+r.length*jT[t])},rh=({containerWidth:e,badgeWidths:t,getSummaryWidth:r,gapPx:o=JT})=>{if(t.length===0)return{visibleCount:0,hiddenCount:0};if(e<=0)return{visibleCount:0,hiddenCount:t.length};let n=0,i=0;for(let s=0;s<t.length;s+=1){let l=t[s]??0,d=i>0,m=n+(d?o:0)+l,c=t.length-(s+1);if(c>0){let u=r(c),g=m>0?o:0;if(m+g+u<=e){n=m,i+=1;continue}break}if(m<=e)n=m,i+=1}return{visibleCount:i,hiddenCount:t.length-i}},mu=KT(({className:e,options:t,value:r,defaultValue:o=[],onValueChange:n,placeholder:i="Select options...",size:s=ee.sm,status:l="default",clearable:d=!1,open:m,defaultOpen:c=!1,onOpenChange:u,portal:g=se,portalContainer:y,disabled:v,...T},M)=>{let V=f(s)??s,[p,h]=kn(c),[N,C]=kn(o),[H,S]=kn(null),[L,U]=kn(null),G=Qr(null),K=Qr(null),Z=Qr(null),ie=Qr(o),_=Qr(new Map),re=Qr(new Map),w=r!==void 0,J=m!==void 0,E=w?r:N,F=J?m:p,b=wt((z)=>{if(!J)h(z);u?.(z)},[J,u]),P=qr(()=>{return new Map(t.map((z)=>[z.value,z]))},[t]),R=qr(()=>{return E.flatMap((z)=>{let q=P.get(z);return q?[q]:[]})},[P,E]),oe=qr(()=>{if(!H)return;return P.get(H)},[P,H]),O=wt((z)=>{let q=E.includes(z)?E.filter((j)=>j!==z):[...E,z];if(!w)C(q);n?.(q)},[w,n,E]),Ne=wt((z)=>{let q=E.filter((j)=>j!==z);if(!w)C(q);n?.(q)},[w,n,E]),I=wt(()=>{if(!w)C([]);n?.([])},[w,n]),ae=wt((z)=>{z.stopPropagation(),z.preventDefault(),I()},[I]),zt=wt((z)=>{if(z.key==="Enter"||z.key===" ")z.stopPropagation(),z.preventDefault(),I()},[I]),Qe=wt((z)=>{let q=G.current;if(!q)return;let j=Array.from(q.querySelectorAll('[role="option"]:not([data-disabled])'));if(j.length===0)return;let ar=q.querySelector('[role="option"]:focus'),rn=ar?j.indexOf(ar):-1,co;switch(z){case"first":co=j[0];break;case"last":co=j[j.length-1];break;case"next":co=j[rn+1]??j[0];break;case"prev":co=j[rn-1]??j[j.length-1];break}co?.focus()},[]),W=wt((z)=>{switch(z.key){case"ArrowDown":z.preventDefault(),Qe("next");break;case"ArrowUp":z.preventDefault(),Qe("prev");break;case"Home":z.preventDefault(),Qe("first");break;case"End":z.preventDefault(),Qe("last");break;case"Escape":z.preventDefault(),b(!1);break}},[Qe,b]);fi(()=>{if(F)requestAnimationFrame(()=>Qe("first"))},[Qe,F]),fi(()=>{if(H&&!oe)S(null)},[oe,H]),fi(()=>{let z=ie.current,q=E.filter((j)=>!z.includes(j));if(q.length>0){let j=q[q.length-1];if(j&&!_.current.has(`${V}:${j}`))S(j)}ie.current=E},[V,E]),su(()=>{let z=K.current;if(!z)return;if((()=>{U(Math.ceil(z.getBoundingClientRect().width))})(),typeof ResizeObserver>"u")return;let j=new ResizeObserver((ar)=>{let rn=Math.ceil(ar[0]?.contentRect.width??z.getBoundingClientRect().width);U(rn)});return j.observe(z),()=>{j.disconnect()}},[]),su(()=>{if(!H)return;let z=Z.current;if(!z)return;let q=Math.ceil(z.getBoundingClientRect().width);if(q>0)_.current.set(`${V}:${H}`,q);S(null)},[V,H]);let le=$T[V],Te=R.length>0,pe=d&&Te&&!v,Be=wt((z)=>{let q=`${V}:${z}`,j=re.current.get(q);if(j!==void 0)return j;let ar=th(z,V);return re.current.set(q,ar),ar},[V]),mt=qr(()=>{return R.map((z)=>{let q=`${V}:${z.value}`;return _.current.get(q)??eh(z.label,V)})},[V,R]),k=qr(()=>{if(!Te)return{visibleCount:0,hiddenCount:0};if(L===null||L<=0)return{visibleCount:R.length,hiddenCount:0};return rh({containerWidth:L,badgeWidths:mt,getSummaryWidth:Be})},[L,Be,Te,mt,R.length]),me=qr(()=>{return R.slice(0,k.visibleCount)},[k.visibleCount,R]),he=br($t.Content,{ref:G,role:"listbox","aria-multiselectable":"true",align:"start",sideOffset:4,onKeyDown:W,onOpenAutoFocus:(z)=>z.preventDefault(),className:a(Jr(),"max-h-96 w-[var(--radix-popover-trigger-width)] overflow-y-auto overflow-x-hidden p-1"),children:[t.map((z)=>{let q=E.includes(z.value);return br("div",{role:"option",tabIndex:z.disabled?void 0:-1,"aria-selected":q,"aria-disabled":z.disabled||void 0,"data-disabled":z.disabled?"":void 0,className:a("relative flex w-full cursor-pointer select-none items-center gap-2","rounded-[calc(var(--radius)-3px)] outline-none","hover:bg-accent focus-visible:bg-accent focus-visible:text-accent-foreground","data-disabled:cursor-not-allowed data-disabled:border-transparent data-disabled:bg-muted/40 data-disabled:text-muted-foreground/70",YT[V]),onClick:()=>!z.disabled&&O(z.value),onKeyDown:(j)=>{if(j.key==="Enter"||j.key===" "){if(j.preventDefault(),!z.disabled)O(z.value)}},children:[we("span",{className:a("flex shrink-0 items-center justify-center",Sn[V]),children:q?we(WT,{className:Sn[V]}):null}),we("span",{className:"min-w-0 flex-1 truncate",children:z.label})]},z.value)}),t.length===0?we("div",{className:"px-3 py-6 text-center text-muted-foreground text-sm",children:"No options available"}):null]});return br($t.Root,{open:F,onOpenChange:b,children:[we($t.Trigger,{asChild:!0,children:br("button",{ref:M,type:"button",disabled:v,"data-state":F?"open":"closed","data-placeholder":Te?void 0:"",className:a(lu({size:V,status:l}),e),...T,children:[we("span",{ref:K,className:"flex min-w-0 flex-1 flex-wrap items-center gap-1 text-left",children:Te?br(oh,{children:[me.map((z)=>we(vo,{variant:"outline",size:le,removable:!0,removeControl:"span",removeLabel:`Remove ${z.label}`,onRemove:()=>Ne(z.value),className:"max-w-[180px]",children:we("span",{className:"truncate",children:z.label})},z.value)),k.hiddenCount>0?br("span",{className:a("text-muted-foreground",XT[V]),children:["+",k.hiddenCount]}):null]}):we("span",{className:"text-muted-foreground",children:i})}),br("span",{className:"inline-flex shrink-0 items-center gap-1 text-muted-foreground",children:[pe?we("span",{role:"button",tabIndex:-1,"aria-label":"Clear all",onMouseDown:(z)=>z.preventDefault(),onKeyDown:zt,onClick:ae,className:"inline-flex items-center justify-center rounded-[calc(var(--radius)-4px)] text-muted-foreground hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",children:we(UT,{className:Sn[V]})}):null,we(_T,{className:a(Sn[V],"opacity-60 transition-transform duration-[var(--motion-duration-fast)] ease-[var(--motion-ease-productive)]",F&&"rotate-180")})]})]})}),g?we($t.Portal,{container:y??void 0,children:he}):he,oe?we("span",{className:"pointer-events-none invisible absolute top-0 left-0 -z-10","aria-hidden":!0,children:we(vo,{ref:Z,variant:"outline",size:le,removable:!0,removeControl:"span",className:"max-w-[180px]",children:we("span",{className:"truncate",children:oe.label})})}):null]})});mu.displayName="Multiselect";import{cva as Yt}from"class-variance-authority";import{createContext as nh,forwardRef as vr,useContext as ah}from"react";import{jsx as bt,jsxs as du}from"react/jsx-runtime";var uu=Yt(["transition-[color,background-color,border-color,box-shadow,transform,opacity,filter] duration-[var(--motion-duration-medium)] ease-[var(--motion-ease-standard)] flex w-full items-center justify-between border-b","transition-colors duration-200 ease-out"],{variants:{variant:{default:["border-border bg-background/95 backdrop-blur-xl","shadow-[var(--shadow-sm)]"],transparent:"bg-transparent border-transparent",blur:["bg-[var(--surface-glass)] dark:bg-[var(--surface-glass-dark)] border-[color:color-mix(in_srgb,var(--primary)_18%,var(--border))] backdrop-blur-[14px] shadow-[var(--shadow-glass)]","shadow-[var(--shadow-md)]"],solid:["border-border bg-background","shadow-[var(--shadow-xs)]"]},size:{sm:"h-12 px-3",md:"h-14 px-5",lg:"h-16 px-8"},sticky:{true:"sticky top-0 z-50",false:""}},defaultVariants:{variant:"default",size:"sm",sticky:!1}}),cu=Yt("flex items-center gap-2 font-semibold text-foreground",{variants:{size:{sm:"text-sm",md:"text-sm",lg:"text-base"}},defaultVariants:{size:"sm"}}),ih=Yt("truncate text-muted-foreground",{variants:{size:{sm:"text-xs",md:"text-xs",lg:"text-sm"}},defaultVariants:{size:"sm"}}),pu=Yt("flex items-center",{variants:{align:{start:"justify-start",center:"justify-center",end:"justify-end"},gap:{sm:"gap-2",md:"gap-4",lg:"gap-6"},size:{sm:"text-sm",md:"text-sm",lg:"text-base"}},defaultVariants:{align:"center",gap:"md",size:"sm"}}),fu=Yt(["relative inline-flex items-center rounded-lg font-medium text-muted-foreground","transition-colors duration-150 ease-out","hover:bg-accent/60 hover:text-foreground"],{variants:{active:{true:"bg-accent text-foreground",false:""},size:{sm:"h-8 px-2.5 text-sm",md:"h-9 px-3 text-sm",lg:"h-10 px-3.5 text-base"}},defaultVariants:{active:!1,size:"sm"}}),gu=Yt(["relative inline-flex items-center rounded-lg font-medium text-muted-foreground","transition-colors duration-150 ease-out","hover:bg-accent/60 hover:text-foreground","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-1"],{variants:{active:{true:["bg-accent text-foreground"],false:""},size:{sm:"h-8 px-2.5 text-sm",md:"h-9 px-3 text-sm",lg:"h-10 px-3.5 text-base"}},defaultVariants:{active:!1,size:"sm"}}),bu=Yt("flex items-center",{variants:{size:{sm:"gap-1.5",md:"gap-2",lg:"gap-2.5"}},defaultVariants:{size:"sm"}}),vu=Yt("w-px rounded-full bg-gradient-to-b from-transparent via-border to-transparent transition-opacity duration-300",{variants:{size:{sm:"mx-1.5 h-5",md:"mx-2 h-6",lg:"mx-2.5 h-7"}},defaultVariants:{size:"sm"}});var yu={sm:"sm",md:"md",lg:"lg"};var Tu=nh(null),Zr=()=>{return ah(Tu)?.size??yu.sm},hu=vr(({className:e,variant:t,size:r,sticky:o,...n},i)=>{let s=f(r)??yu.md;return bt(Tu.Provider,{value:{size:s},children:bt("nav",{ref:i,className:a(uu({variant:t,size:s,sticky:o}),e),...n})})});hu.displayName="Navbar";var Pu=vr(({className:e,logo:t,tagline:r,size:o,children:n,...i},s)=>{let l=Zr(),d=f(o??l)??l;return du("div",{ref:s,className:a(cu({size:d}),e),...i,children:[t&&bt("span",{className:"inline-flex shrink-0 items-center",children:t}),du("div",{className:"flex min-w-0 flex-col",children:[bt("span",{className:"truncate",children:n}),r&&bt("span",{className:a(ih({size:d})),children:r})]})]})});Pu.displayName="NavbarBrand";var Vu=vr(({className:e,align:t,gap:r,size:o,...n},i)=>{let s=Zr(),l=f(o??s)??s;return bt("div",{ref:i,className:a(pu({align:t,gap:r??l,size:l}),e),...n})});Vu.displayName="NavbarContent";var Mu=vr(({className:e,active:t,size:r,...o},n)=>{let i=Zr(),s=f(r??i)??i;return bt("div",{ref:n,className:a(fu({active:t,size:s}),e),"data-active":t,...o})});Mu.displayName="NavbarItem";var zu=vr(({className:e,active:t,href:r="#",size:o,...n},i)=>{let s=Zr(),l=f(o??s)??s;return bt("a",{ref:i,href:r,className:a(gu({active:t,size:l}),e),"data-active":t,...n})});zu.displayName="NavbarLink";var Nu=vr(({className:e,size:t,...r},o)=>{let n=Zr(),i=f(t??n)??n;return bt("div",{ref:o,className:a(bu({size:i}),e),...r})});Nu.displayName="NavbarActions";var Eu=vr(({className:e,size:t,...r},o)=>{let n=Zr(),i=f(t??n)??n;return bt("div",{ref:o,className:a(vu({size:i}),e),...r})});Eu.displayName="NavbarDivider";import*as He from"@radix-ui/react-navigation-menu";import{cva as yr}from"class-variance-authority";import{createContext as sh,forwardRef as Xt,useContext as Lu}from"react";import{jsx as Fe,jsxs as Wu}from"react/jsx-runtime";var ot={sm:A.sm,md:A.md,lg:A.lg},gi=sh(ot.md),Ru=yr("group/navigation-menu relative z-10 flex max-w-max flex-1 items-center justify-center"),xu=yr("group relative flex flex-1 list-none items-center justify-center gap-0.5"),Cu=yr(["group/trigger inline-flex w-max items-center justify-center gap-1 rounded-[var(--radius)] border border-transparent bg-transparent font-medium outline-none","transition-[color,background-color,border-color,box-shadow,transform,opacity,filter] duration-[var(--motion-duration-medium)] ease-[var(--motion-ease-standard)]","hover:bg-accent hover:text-accent-foreground","focus-visible:ring-2 focus-visible:ring-ring/50 focus-visible:ring-offset-1 focus-visible:ring-offset-background","disabled:pointer-events-none disabled:cursor-not-allowed disabled:bg-muted/40 disabled:text-muted-foreground/70","data-[state=open]:border-border data-[state=open]:bg-accent data-[state=open]:text-accent-foreground"],{variants:{size:{[ot.sm]:"h-8 px-3 py-1.5 text-xs",[ot.md]:"h-9 px-3 py-2 text-sm",[ot.lg]:"h-11 px-4 py-2.5 text-sm"}},defaultVariants:{size:ot.sm}}),wu=yr(["left-0 top-0 w-full p-1 md:absolute md:w-auto","gs-nav-content"]),Hu=yr(["flex select-none items-center gap-2 rounded-[var(--radius-md)] leading-none no-underline outline-none","transition-[color,background-color,border-color,box-shadow,transform,opacity,filter] duration-[var(--motion-duration-medium)] ease-[var(--motion-ease-standard)]","hover:bg-accent/80 hover:text-accent-foreground","focus:bg-accent focus:text-accent-foreground","focus-visible:ring-2 focus-visible:ring-ring/50 focus-visible:outline-none"],{variants:{size:{[ot.sm]:"p-2 text-xs [&_svg:not([class*='size-'])]:size-3.5",[ot.md]:"p-2.5 text-sm [&_svg:not([class*='size-'])]:size-4",[ot.lg]:"p-3 text-sm [&_svg:not([class*='size-'])]:size-4"}},defaultVariants:{size:ot.sm}}),ku=yr(["gs-nav-viewport origin-[top_center] relative mt-1.5 w-full overflow-hidden rounded-[var(--radius)] border border-border bg-popover text-popover-foreground shadow-[var(--shadow-lg)]","h-[var(--radix-navigation-menu-viewport-height)] md:w-[var(--radix-navigation-menu-viewport-width)]"]),Su=yr(["gs-nav-indicator top-full z-[1] flex h-1.5 items-end justify-center overflow-hidden"]),lh=()=>Fe("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"relative top-px ml-0.5 size-3 transition-transform duration-[var(--motion-duration-medium)] ease-[var(--motion-ease-emphasized)] group-data-[state=open]/trigger:rotate-180","aria-hidden":"true",children:Fe("path",{d:"m6 9 6 6 6-6"})}),Du=Xt(({className:e,children:t,size:r,viewport:o=!0,...n},i)=>{let s=f(r??ot.sm);return Fe(gi.Provider,{value:s,children:Wu(He.Root,{ref:i,"data-viewport":o,className:a(Ru(),e),...n,children:[t,o&&Fe(bi,{})]})})});Du.displayName="NavigationMenu";var Au=Xt(({className:e,...t},r)=>Fe(He.List,{ref:r,className:a(xu(),e),...t}));Au.displayName="NavigationMenuList";var Bu=Xt(({className:e,...t},r)=>Fe(He.Item,{ref:r,className:a("relative",e),...t}));Bu.displayName="NavigationMenuItem";var Iu=Xt(({className:e,children:t,...r},o)=>{let n=Lu(gi);return Wu(He.Trigger,{ref:o,className:a(Cu({size:n}),e),...r,children:[t,Fe(lh,{})]})});Iu.displayName="NavigationMenuTrigger";var Fu=Xt(({className:e,...t},r)=>Fe(He.Content,{ref:r,className:a(wu(),e),...t}));Fu.displayName="NavigationMenuContent";var Ou=Xt(({className:e,...t},r)=>{let o=Lu(gi);return Fe(He.Link,{ref:r,className:a(Hu({size:o}),e),...t})});Ou.displayName="NavigationMenuLink";var bi=Xt(({className:e,...t},r)=>Fe("div",{className:"absolute top-full left-0 isolate z-50 flex justify-center",children:Fe(He.Viewport,{ref:r,className:a(ku(),e),...t})}));bi.displayName="NavigationMenuViewport";var Gu=Xt(({className:e,...t},r)=>Fe(He.Indicator,{ref:r,className:a(Su(),e),...t,children:Fe("div",{className:"relative top-[60%] size-2 rotate-45 rounded-tl-sm bg-border shadow-sm"})}));Gu.displayName="NavigationMenuIndicator";import{cva as jr}from"class-variance-authority";import{Fragment as mh,forwardRef as dh,useCallback as Tr,useEffect as _u,useMemo as Uu,useRef as uh,useState as Ku}from"react";import{jsx as Ho,jsxs as $u}from"react/jsx-runtime";var hr={sm:"sm",md:"md",lg:"lg"},So={default:"default",error:"error",success:"success"},ko={single:"single",first:"first",middle:"middle",last:"last"},Yu=jr("relative inline-flex items-center",{variants:{size:{sm:"gap-1",md:"gap-1.5",lg:"gap-2"}},defaultVariants:{size:hr.sm}}),Xu=jr("relative inline-flex items-center",{variants:{size:{sm:"gap-0",md:"gap-0",lg:"gap-0"},status:{default:"",error:"text-destructive",success:"text-success"}},defaultVariants:{size:hr.sm,status:So.default}}),Ju=jr(["relative flex items-center justify-center border bg-background","transition-[color,background-color,border-color,box-shadow,transform,opacity] duration-150","motion-reduce:transition-none"],{variants:{size:{sm:"h-8 w-8",md:"h-10 w-10",lg:"h-11 w-11"},filled:{true:"border-border bg-card",false:"border-input bg-background"},focused:{true:"scale-[1.02]",false:""},status:{default:"focus-within:border-ring",error:"border-destructive/70 focus-within:border-destructive focus-within:ring-2 focus-within:ring-destructive/20",success:"border-success/70 focus-within:border-success focus-within:ring-2 focus-within:ring-success/20"},disabled:{true:"border-border/80 bg-muted/45",false:""},position:{single:"rounded-[calc(var(--radius)-2px)]",first:"rounded-l-[calc(var(--radius)-2px)] rounded-r-none",middle:"rounded-none border-l-0",last:"rounded-r-[calc(var(--radius)-2px)] rounded-l-none border-l-0"}},defaultVariants:{size:hr.sm,filled:!1,focused:!1,status:So.default,disabled:!1,position:ko.single}}),qu=jr(["h-full w-full rounded-[inherit] bg-transparent text-center font-sans font-medium outline-none","transition-[color,opacity] duration-150 motion-reduce:transition-none","disabled:cursor-not-allowed disabled:text-muted-foreground"],{variants:{size:{sm:"text-xs",md:"text-sm",lg:"text-base"},status:{default:"caret-primary",error:"caret-destructive",success:"caret-success"},filled:{true:"text-foreground",false:"text-muted-foreground"}},defaultVariants:{size:hr.sm,status:So.default,filled:!1}}),Qu=jr(["pointer-events-none absolute inset-0 flex items-center justify-center select-none","font-medium text-muted-foreground/45","transition-[opacity,transform] duration-150 motion-reduce:transition-none"],{variants:{size:{sm:"text-sm",md:"text-base",lg:"text-lg"},focused:{true:"opacity-0 scale-95",false:"opacity-100 scale-100"}},defaultVariants:{size:hr.sm,focused:!1}}),Zu=jr("select-none font-medium text-muted-foreground",{variants:{size:{sm:"px-0.5 text-sm",md:"px-0.5 text-base",lg:"px-1 text-lg"}},defaultVariants:{size:hr.sm}});function ch(e){if(!Number.isFinite(e))return 6;return Math.max(1,Math.floor(e))}function vi(e,t){let r=(e??"").split("").slice(0,t);if(r.length<t)return r.concat(Array(t-r.length).fill(""));return r}var ju=dh(({className:e,length:t=6,value:r,onChange:o,onComplete:n,size:i=hr.sm,status:s=So.default,disabled:l=!1,autoFocus:d=!1,mask:m=!1,groupSize:c,separator:u,separatorChar:g="—",placeholder:y="•",inputMode:v="numeric",pattern:T="[0-9]*",...M},V)=>{let p=f(i),h=ch(t),N=uh([]),[C,H]=Ku(null),[S,L]=Ku(()=>vi(r,h));_u(()=>{if(r!==void 0){L(vi(r,h));return}L((b)=>vi(b.join(""),h))},[r,h]),_u(()=>{if(d)N.current[0]?.focus()},[d]);let U=Uu(()=>{if(typeof c==="number"&&Number.isFinite(c)){let b=Math.floor(c);if(b<=0)return h;return Math.min(h,Math.max(1,b))}if(typeof u==="number"&&Number.isFinite(u)){let b=Math.floor(u);if(b<=0)return h;return Math.min(h,Math.max(1,b))}if(u)return Math.max(1,Math.floor(h/2));return h},[c,h,u]),G=Uu(()=>{let b=[];for(let P=0;P<h;P+=U){let R=Math.min(P+U,h),oe=[];for(let O=P;O<R;O+=1)oe.push(O);b.push(oe)}return b},[U,h]),K=Tr((b)=>{let P=N.current[b];if(!P)return;P.focus(),P.select()},[]),Z=Tr((b)=>{L(b);let P=b.join("");if(o?.(P),b.every((R)=>R!=="")&&P.length===h)n?.(P)},[o,n,h]),ie=Tr((b,P)=>{if(l)return;let oe=(v==="numeric"?P.replace(/\D/g,""):P).slice(-1),O=[...S];if(O[b]=oe,Z(O),oe&&b<h-1)K(b+1)},[S,l,Z,K,v,h]),_=Tr((b,P)=>{if(l)return;if(P.key==="Backspace"){if(P.preventDefault(),S[b]){let R=[...S];R[b]="",Z(R);return}if(b>0){let R=[...S];R[b-1]="",Z(R),K(b-1)}return}if(P.key==="Delete"){if(P.preventDefault(),S[b]){let R=[...S];R[b]="",Z(R)}return}if(P.key==="ArrowLeft"){if(P.preventDefault(),b>0)K(b-1);return}if(P.key==="ArrowRight"){if(P.preventDefault(),b<h-1)K(b+1);return}if(P.key==="Home"){P.preventDefault(),K(0);return}if(P.key==="End")P.preventDefault(),K(h-1)},[S,l,Z,K,h]),re=Tr((b,P)=>{if(P.preventDefault(),l)return;let R=P.clipboardData.getData("text"),O=(v==="numeric"?R.replace(/\D/g,""):R.replace(/\s/g,"")).split("");if(O.length===0)return;let Ne=[...S];for(let ae=0;ae<O.length;ae+=1){let zt=b+ae;if(zt>=h)break;Ne[zt]=O[ae]??""}Z(Ne);let I=Math.min(h-1,b+O.length-1);if(I<h-1){K(I+1);return}N.current[I]?.blur()},[S,l,Z,K,v,h]),w=Tr((b,P)=>{H(b),P.target.select()},[]),J=Tr(()=>{H(null)},[]),E=u!==void 0,F=g.length>0&&u!==!1&&(E||G.length>1);return Ho("div",{ref:V,className:a(Yu({size:p}),e),role:"group","aria-label":"One-time password input",...M,children:G.map((b,P)=>$u(mh,{children:[Ho("div",{"data-gs-otp-group":"true",className:a(Xu({size:p,status:s})),children:b.map((R,oe)=>{let O=S[R]??"",Ne=C===R,I=ko.middle;if(b.length===1)I=ko.single;else if(oe===0)I=ko.first;else if(oe===b.length-1)I=ko.last;return $u("div",{"data-gs-otp-slot":"true","data-disabled":l,className:a(Ju({size:p,filled:Boolean(O),focused:Ne,status:s,disabled:l,position:I})),children:[Ho("input",{ref:(ae)=>{N.current[R]=ae},type:m?"password":"text",inputMode:v,pattern:T,maxLength:1,value:O,placeholder:"",disabled:l,"aria-invalid":s===So.error,"aria-label":`Digit ${R+1} of ${h}`,autoComplete:"one-time-code",onChange:(ae)=>ie(R,ae.target.value),onKeyDown:(ae)=>_(R,ae),onPaste:(ae)=>re(R,ae),onFocus:(ae)=>w(R,ae),onBlur:J,className:a(qu({size:p,status:s,filled:Boolean(O)}))}),!O&&Ho("div",{"data-gs-otp-placeholder":"true","aria-hidden":"true",className:a(Qu({size:p,focused:Ne})),children:y})]},`slot-${R}`)})}),F&&P<G.length-1&&Ho("span",{"data-gs-otp-separator":"true",className:a(Zu({size:p})),children:g})]},`group-${b[0]}-${b[b.length-1]}`))})});ju.displayName="OTPInput";import{createContext as zh,createElement as dc,useCallback as at,useContext as Nh,useEffect as Eh,useMemo as Lh,useRef as uc,useState as Rh}from"react";import*as de from"@radix-ui/react-dialog";import{cva as ec}from"class-variance-authority";import{X as ph}from"lucide-react";import{createContext as fh,forwardRef as Dn,useCallback as gh,useContext as bh,useEffect as vh,useState as tc}from"react";import{jsx as nt,jsxs as yi,Fragment as Mh}from"react/jsx-runtime";var Ae={top:eo.top,right:eo.right,bottom:eo.bottom,left:eo.left},ge={sm:A.sm,md:A.md,lg:A.lg,full:"full"},yh=160,Th={[Ae.top]:"gs-sheet-content gs-sheet-content-top",[Ae.right]:"gs-sheet-content gs-sheet-content-right",[Ae.bottom]:"gs-sheet-content gs-sheet-content-bottom",[Ae.left]:"gs-sheet-content gs-sheet-content-left"},hh={[Ae.right]:{[ge.sm]:"sm:max-w-sm",[ge.md]:"sm:max-w-md",[ge.lg]:"sm:max-w-lg",[ge.full]:"sm:max-w-full"},[Ae.left]:{[ge.sm]:"sm:max-w-sm",[ge.md]:"sm:max-w-md",[ge.lg]:"sm:max-w-lg",[ge.full]:"sm:max-w-full"},[Ae.top]:{[ge.sm]:"sm:max-h-[30vh]",[ge.md]:"sm:max-h-[50vh]",[ge.lg]:"sm:max-h-[70vh]",[ge.full]:"sm:max-h-full"},[Ae.bottom]:{[ge.sm]:"sm:max-h-[30vh]",[ge.md]:"sm:max-h-[50vh]",[ge.lg]:"sm:max-h-[70vh]",[ge.full]:"sm:max-h-full"}},rc=ec(a("gs-sheet-overlay",It)),oc=ec("fixed z-50 flex flex-col gap-4 border border-border bg-card p-6 shadow-[var(--shadow-xl)]",{variants:{side:{[Ae.top]:"inset-x-0 top-0 border-b",[Ae.bottom]:"inset-x-0 bottom-0 border-t",[Ae.left]:"inset-y-0 left-0 h-full w-3/4 border-r",[Ae.right]:"inset-y-0 right-0 h-full w-3/4 border-l"}},defaultVariants:{side:Ae.right}}),nc=fh(!1),Ti=({children:e,open:t,defaultOpen:r=!1,onOpenChange:o,...n})=>{let[i,s]=tc(r),l=t!==void 0,d=l?t:i,m=gh((c)=>{if(!l)s(c);o?.(c)},[l,o]);return nt(nc.Provider,{value:d,children:nt(de.Root,{open:d,onOpenChange:m,...n,children:e})})},Ph=de.Trigger,Vh=de.Close,ac=de.Portal,hi=Dn(({className:e,...t},r)=>nt(de.Overlay,{className:a(rc(),e),...t,ref:r}));hi.displayName=de.Overlay.displayName;var An=Dn(({side:e=Ae.right,size:t=ge.sm,showClose:r=!0,showOverlay:o=!0,portal:n=se,portalContainer:i,forceMount:s=!1,className:l,children:d,"aria-describedby":m,...c},u)=>{let g=bh(nc),[y,v]=tc(s||g),T=f(t)??ge.md,M=ce(),V=Th[e],p=hh[e][T];if(vh(()=>{if(s||g){v(!0);return}let C=setTimeout(()=>{v(!1)},M?0:yh);return()=>{clearTimeout(C)}},[s,g,M]),!(s||g||y))return null;let N=yi(Mh,{children:[o?nt(hi,{forceMount:!0}):null,yi(de.Content,{ref:u,forceMount:!0,"aria-describedby":m,className:a(oc({side:e}),V,p,l),...c,children:[d,r&&yi(de.Close,{className:sn,children:[nt(ph,{className:"size-4"}),nt("span",{className:"sr-only",children:"Close"})]})]})]});if(!n)return N;return nt(ac,{forceMount:!0,container:i??void 0,children:N})});An.displayName=de.Content.displayName;var ic=({className:e,...t})=>nt("div",{className:a("flex flex-col space-y-2 text-center sm:text-left",e),...t});ic.displayName="SheetHeader";var sc=({className:e,...t})=>nt("div",{className:a("flex flex-col-reverse sm:flex-row sm:justify-end sm:gap-2.5",e),...t});sc.displayName="SheetFooter";var lc=Dn(({className:e,...t},r)=>nt(de.Title,{ref:r,className:a("font-semibold text-foreground text-lg",e),...t}));lc.displayName=de.Title.displayName;var mc=Dn(({className:e,...t},r)=>nt(de.Description,{ref:r,className:a("text-muted-foreground text-sm",e),...t}));mc.displayName=de.Description.displayName;import{jsx as Do,jsxs as wh}from"react/jsx-runtime";var cc=zh(null),pc=250;function fc({children:e,removeDelay:t=pc}){let r=ce(),[o,n]=Rh([]),i=uc(0),s=uc(new Map),l=at((p)=>{let h=s.current.get(p);if(h===void 0)return;window.clearTimeout(h),s.current.delete(p)},[]),d=at((p)=>{l(p),n((h)=>h.filter((N)=>N.id!==p))},[l]),m=at((p)=>{l(p);let h=r?0:t;if(h<=0){d(p);return}let N=window.setTimeout(()=>{d(p)},h);s.current.set(p,N)},[l,r,t,d]),c=at((p)=>{n((h)=>h.map((N)=>N.id===p?{...N,open:!1}:N)),m(p)},[m]),u=at(()=>{n((p)=>{for(let h of p)m(h.id);return p.map((h)=>({...h,open:!1}))})},[m]),g=at(()=>{return i.current+=1,`overlay-${i.current}`},[]),y=at((p,h)=>{let N=g();l(N);let C={id:N,kind:"dialog",render:p,open:!0,options:h};return n((H)=>[...H,C]),{id:N,close:()=>c(N)}},[l,c,g]),v=at((p,h)=>{let N=g();l(N);let C={id:N,kind:"sheet",render:p,open:!0,options:h};return n((H)=>[...H,C]),{id:N,close:()=>c(N)}},[l,c,g]),T=at((p,h,N)=>{return y((C)=>dc(p,{...h,close:C}),N)},[y]),M=at((p,h,N)=>{return v((C)=>dc(p,{...h,close:C}),N)},[v]);Eh(()=>{return()=>{for(let p of s.current.values())window.clearTimeout(p);s.current.clear()}},[]);let V=Lh(()=>({dialog:T,sheet:M,close:c,closeAll:u}),[u,c,T,M]);return wh(cc.Provider,{value:V,children:[e,o.map((p)=>Do(xh,{entry:p,onClose:c},p.id))]})}fc.displayName="OverlayProvider";function xh({entry:e,onClose:t}){let r=at(()=>t(e.id),[e.id,t]);if(e.kind==="dialog")return Do(No,{open:e.open,onOpenChange:(o)=>!o&&r(),children:Do(En,{...e.options,children:e.render(r)})});return Do(Ti,{open:e.open,onOpenChange:(o)=>!o&&r(),children:Do(An,{...e.options,children:e.render(r)})})}function Ch(){let e=Nh(cc);if(!e)throw Error("useOverlay must be used within an OverlayProvider");return e}import{cva as Ao}from"class-variance-authority";import{ChevronLeft as Hh,ChevronRight as kh,MoreHorizontal as Sh}from"lucide-react";import{createContext as Dh,forwardRef as Bo,useContext as Bn}from"react";import{jsx as it,jsxs as Pi}from"react/jsx-runtime";var Ye={sm:"sm",md:"md",lg:"lg"},Io=Dh(Ye.md),gc=Ao("mx-auto flex w-full justify-center"),bc=Ao("flex flex-row items-center gap-1"),vc=Ao(""),In=Ao("transition-[color,background-color,border-color,box-shadow,transform,opacity,filter] duration-[var(--motion-duration-medium)] ease-[var(--motion-ease-standard)] inline-flex items-center justify-center whitespace-nowrap rounded-[var(--radius)] font-medium focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:cursor-not-allowed disabled:border-transparent disabled:bg-muted/40 disabled:text-muted-foreground/70 hover:bg-accent hover:text-accent-foreground",{variants:{isActive:{true:"border border-border bg-background shadow-[var(--shadow-sm)]",false:""},size:{[Ye.sm]:"h-7 w-7 text-xs [&_svg]:size-3.5",[Ye.md]:"h-9 w-9 text-sm [&_svg]:size-4",[Ye.lg]:"h-10 w-10 text-sm [&_svg]:size-5"}},defaultVariants:{isActive:!1,size:Ye.md}}),yc=Ao("flex items-center justify-center",{variants:{size:{[Ye.sm]:"h-7 w-7 [&_svg]:size-3.5",[Ye.md]:"h-9 w-9 [&_svg]:size-4",[Ye.lg]:"h-10 w-10 [&_svg]:size-5"}},defaultVariants:{size:Ye.md}}),Tc=({className:e,size:t=Ye.sm,...r})=>{let o=f(t)??Ye.md;return it(Io.Provider,{value:o,children:it("nav",{"aria-label":"pagination",className:a(gc(),e),...r})})};Tc.displayName="Pagination";var hc=Bo(({className:e,...t},r)=>it("ul",{ref:r,className:a(bc(),e),...t}));hc.displayName="PaginationContent";var Pc=Bo(({className:e,...t},r)=>it("li",{ref:r,className:a(vc(),e),...t}));Pc.displayName="PaginationItem";var Vc=Bo(({className:e,isActive:t,...r},o)=>{let n=Bn(Io);return it("button",{ref:o,type:"button","aria-current":t?"page":void 0,className:a(In({isActive:t,size:n}),e),...r})});Vc.displayName="PaginationLink";var Mc=Bo(({className:e,...t},r)=>{let o=Bn(Io);return Pi("button",{ref:r,type:"button","aria-label":"Go to previous page",className:a(In({size:o}),"w-auto gap-1 pr-3 pl-2.5",e),...t,children:[it(Hh,{}),it("span",{children:"Previous"})]})});Mc.displayName="PaginationPrevious";var zc=Bo(({className:e,...t},r)=>{let o=Bn(Io);return Pi("button",{ref:r,type:"button","aria-label":"Go to next page",className:a(In({size:o}),"w-auto gap-1 pr-2.5 pl-3",e),...t,children:[it("span",{children:"Next"}),it(kh,{})]})});zc.displayName="PaginationNext";var Nc=({className:e,...t})=>{let r=Bn(Io);return Pi("span",{"aria-hidden":!0,className:a(yc({size:r}),e),...t,children:[it(Sh,{}),it("span",{className:"sr-only",children:"More pages"})]})};Nc.displayName="PaginationEllipsis";import*as Oo from"@radix-ui/react-progress";import{cva as Rc}from"class-variance-authority";import{forwardRef as Ah,useEffect as Bh,useRef as Ih}from"react";import{jsx as Ec,jsxs as Lc}from"react/jsx-runtime";var Fn={sm:"sm",md:"md",lg:"lg"},Fo={default:"default",success:"success",warning:"warning",error:"error"},xc=Rc("relative w-full overflow-hidden rounded-full bg-muted",{variants:{size:{[Fn.sm]:"h-2",[Fn.md]:"h-2.5",[Fn.lg]:"h-3"}},defaultVariants:{size:Fn.sm}}),Cc=Rc("h-full w-full flex-1 rounded-full transition-transform duration-[var(--motion-duration-fast)] ease-[var(--motion-ease-productive)]",{variants:{variant:{[Fo.default]:"bg-primary",[Fo.success]:"bg-success",[Fo.warning]:"bg-warning",[Fo.error]:"bg-destructive"}},defaultVariants:{variant:Fo.default}});function Fh(e){if(typeof e!=="number"||Number.isNaN(e))return 0;return Math.max(0,Math.min(100,e))}var wc=Ah(({className:e,value:t,size:r,variant:o,showValue:n,...i},s)=>{let l=f(r),d=Ih(null),m=Fh(t);return Bh(()=>{let c=d.current;if(!c)return;c.style.setProperty("--gs-progress-value",`${m}%`)},[m]),Lc("div",{className:"flex w-full items-center gap-2",children:[Ec(Oo.Root,{ref:s,className:a(xc({size:l}),e),...i,children:Ec(Oo.Indicator,{ref:d,className:a(Cc({variant:o}),"[transform:translateX(calc(-100%+var(--gs-progress-value,0%)))]")})}),n&&Lc("span",{className:"font-medium text-muted-foreground text-sm tabular-nums",children:[m,"%"]})]})});wc.displayName=Oo.Root.displayName;import*as to from"@radix-ui/react-radio-group";import{cva as Hc}from"class-variance-authority";import{forwardRef as kc}from"react";import{jsx as On}from"react/jsx-runtime";var Ht={sm:"sm",md:"md",lg:"lg"},Pr={default:"default",error:"error",success:"success"},Sc=Hc("grid gap-2"),Dc=Hc("transition-[color,background-color,border-color,box-shadow,transform,opacity,filter] duration-[var(--motion-duration-medium)] ease-[var(--motion-ease-standard)] aspect-square rounded-full border border-input bg-background ring-offset-background enabled:active:scale-[0.94] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 data-[state=checked]:border-primary data-[state=checked]:text-primary disabled:cursor-not-allowed disabled:border-border disabled:bg-muted/45 disabled:text-muted-foreground",{variants:{size:{[Ht.sm]:"h-4 w-4",[Ht.md]:"h-5 w-5",[Ht.lg]:"h-6 w-6"},status:{[Pr.default]:"enabled:hover:border-primary/70",[Pr.error]:"border-destructive enabled:hover:border-destructive/70 focus-visible:ring-destructive data-[state=checked]:border-destructive data-[state=checked]:text-destructive",[Pr.success]:"border-success enabled:hover:border-success/70 focus-visible:ring-success data-[state=checked]:border-success data-[state=checked]:text-success"}},defaultVariants:{size:Ht.md,status:Pr.default}}),Oh={[Ht.sm]:"h-2 w-2",[Ht.md]:"h-2.5 w-2.5",[Ht.lg]:"h-3 w-3"},Ac=kc(({className:e,...t},r)=>On(to.Root,{ref:r,className:a(Sc(),e),...t}));Ac.displayName="RadioGroup";var Bc=kc(({className:e,size:t=Ht.sm,status:r=Pr.default,error:o=!1,...n},i)=>{let s=f(t),l=o?Pr.error:r;return On(to.Item,{ref:i,className:a(Dc({size:s,status:l}),e),...n,children:On(to.Indicator,{className:"flex items-center justify-center",children:On("span",{className:a("block rounded-full bg-current transition-transform duration-150",Oh[s])})})})});Bc.displayName="RadioGroupItem";import{cva as Wn}from"class-variance-authority";import{forwardRef as Mi,useCallback as Go,useEffect as Gc,useRef as Wc,useState as Ic}from"react";import{jsx as Gn}from"react/jsx-runtime";var Gh=10,Wh=90,Vi=50,_c=Wn("flex h-full w-full",{variants:{direction:{horizontal:"flex-row",vertical:"flex-col"}},defaultVariants:{direction:"horizontal"}}),Uc=Wn("relative basis-[var(--gs-panel-basis,50%)] overflow-hidden grow-0 shrink-0"),Kc=Wn("relative flex items-center justify-center bg-border transition-colors duration-150 hover:bg-primary/40 active:bg-primary focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",{variants:{direction:{horizontal:"h-full w-1 cursor-col-resize",vertical:"h-1 w-full cursor-row-resize"},withHandle:{true:"",false:""}},compoundVariants:[{direction:"horizontal",withHandle:!0,class:"w-3"},{direction:"vertical",withHandle:!0,class:"h-3"}],defaultVariants:{direction:"horizontal",withHandle:!1}}),$c=Wn("z-10 flex items-center justify-center rounded-sm bg-border",{variants:{direction:{horizontal:"h-6 w-1",vertical:"h-1 w-6"}},defaultVariants:{direction:"horizontal"}});function Yc(e){return Math.max(Gh,Math.min(Wh,e))}function Xc(e){return e.dataset.direction==="vertical"?"vertical":"horizontal"}function _h(e,t){let r=Array.from(e.children),o=r.indexOf(t),n;for(let s=o-1;s>=0;s-=1){let l=r[s];if(l instanceof HTMLElement&&l.matches("[data-panel]")){n=l;break}}let i;for(let s=o+1;s<r.length;s+=1){let l=r[s];if(l instanceof HTMLElement&&l.matches("[data-panel]")){i=l;break}}return{prevPanel:n,nextPanel:i}}function Fc(e){if(!e)return null;let t=e.closest("[data-panel-group]");if(!(t instanceof HTMLElement))return null;let{prevPanel:r,nextPanel:o}=_h(t,e);if(!(r&&o))return null;return{group:t,direction:Xc(t),prevPanel:r,nextPanel:o}}function Uh(e){if("touches"in e){let t=e.touches[0];if(!t)return null;return{x:t.clientX,y:t.clientY}}return{x:e.clientX,y:e.clientY}}function Oc(e,t,r){let o=Yc(r);e.style.setProperty("--gs-panel-basis",`${o}%`),t.style.setProperty("--gs-panel-basis",`${100-o}%`)}function Kh(e){let t=e.style.getPropertyValue("--gs-panel-basis").trim();if(t.endsWith("%"))return Number.parseFloat(t)||Vi;let r=e.dataset.defaultSize;if(r)return Number.parseFloat(r)||Vi;return Vi}function $h(e,t,r){if(t==="horizontal"){if(e==="ArrowLeft")return-r;if(e==="ArrowRight")return r;return 0}if(e==="ArrowUp")return-r;if(e==="ArrowDown")return r;return 0}var Jc=Mi(({className:e,direction:t="horizontal",children:r,...o},n)=>Gn("div",{ref:n,"data-panel-group":"","data-direction":t,className:a(_c({direction:t}),e),...o,children:r}));Jc.displayName="ResizablePanelGroup";var qc=Mi(({className:e,defaultSize:t=50,children:r,...o},n)=>{let i=Wc(null),s=Yc(t);Gc(()=>{let d=i.current;if(!d)return;d.style.setProperty("--gs-panel-basis",`${s}%`)},[s]);let l=Go((d)=>{if(i.current=d,typeof n==="function")n(d);else if(n)n.current=d},[n]);return Gn("div",{ref:l,"data-panel":"","data-default-size":s,className:a(Uc(),e),...o,children:r})});qc.displayName="ResizablePanel";var Qc=Mi(({className:e,withHandle:t=!1,disabled:r=!1,...o},n)=>{let[i,s]=Ic(!1),[l,d]=Ic("horizontal"),m=Wc(null);Gc(()=>{let v=m.current;if(!v)return;let T=v.closest("[data-panel-group]");if(!(T instanceof HTMLElement))return;let M=()=>d(Xc(T));M();let V=new MutationObserver(M);return V.observe(T,{attributes:!0,attributeFilter:["data-direction"]}),()=>V.disconnect()},[]);let c=Go(()=>{if(r)return;s(!0);let v=(M)=>{let V=Uh(M);if(!V)return;let p=Fc(m.current);if(!p)return;let h=p.group.getBoundingClientRect(),N=p.direction==="horizontal"?h.width:h.height;if(N<=0)return;let H=(p.direction==="horizontal"?V.x-h.left:V.y-h.top)/N*100;Oc(p.prevPanel,p.nextPanel,H)},T=()=>{s(!1),document.removeEventListener("mousemove",v),document.removeEventListener("mouseup",T),document.removeEventListener("touchmove",v),document.removeEventListener("touchend",T)};document.addEventListener("mousemove",v),document.addEventListener("mouseup",T),document.addEventListener("touchmove",v),document.addEventListener("touchend",T)},[r]),u=Go((v)=>{v.preventDefault(),c()},[c]),g=Go((v)=>{if(v.touches.length===0)return;c()},[c]),y=Go((v)=>{if(r)return;let T=Fc(m.current??v.currentTarget);if(!T)return;let M=v.shiftKey?10:1,V=$h(v.key,T.direction,M);if(V===0)return;v.preventDefault();let p=Kh(T.prevPanel);Oc(T.prevPanel,T.nextPanel,p+V)},[r]);return Gn("div",{ref:(v)=>{if(m.current=v,typeof n==="function")n(v);else if(n)n.current=v},role:"separator","aria-orientation":l,"aria-valuemin":10,"aria-valuemax":90,"aria-valuenow":50,tabIndex:r?-1:0,"data-panel-resize-handle":"","data-dragging":i,onMouseDown:u,onTouchStart:g,onKeyDown:y,className:a(Kc({direction:l,withHandle:t}),i&&"bg-primary",r&&"pointer-events-none cursor-not-allowed bg-muted/40 text-muted-foreground/70",e),...o,children:t&&Gn("div",{className:a($c({direction:l}))})})});Qc.displayName="ResizableHandle";import*as vt from"@radix-ui/react-scroll-area";import{cva as zi}from"class-variance-authority";import{forwardRef as Zc}from"react";import{jsx as Wo,jsxs as Yh}from"react/jsx-runtime";var jc=zi("relative flex flex-col overflow-hidden"),ep=zi("flex touch-none select-none transition-colors duration-150",{variants:{orientation:{vertical:"h-full w-2.5 border-l border-l-transparent p-px",horizontal:"h-2.5 flex-col border-t border-t-transparent p-px"}},defaultVariants:{orientation:"vertical"}}),tp=zi("relative flex-1 rounded-full bg-border"),rp=Zc(({className:e,children:t,...r},o)=>Yh(vt.Root,{ref:o,className:a(jc(),e),...r,children:[Wo(vt.Viewport,{className:"min-h-0 w-full flex-1 rounded-[inherit]",children:t}),Wo(Ni,{}),Wo(vt.Corner,{})]}));rp.displayName="ScrollArea";var Ni=Zc(({className:e,orientation:t="vertical",...r},o)=>Wo(vt.ScrollAreaScrollbar,{ref:o,orientation:t,className:a(ep({orientation:t}),e),...r,children:Wo(vt.ScrollAreaThumb,{className:a(tp())})}));Ni.displayName="ScrollBar";import{cva as Li}from"class-variance-authority";import{createContext as Zh,forwardRef as Ri,useCallback as jh,useContext as ap,useRef as np,useState as eP}from"react";import{useLayoutEffect as op,useRef as ro}from"react";var Xh={x:0,y:0,width:0,height:0};function Jh(e,t){let r=e.querySelector(t);if(!r)return null;return{x:r.offsetLeft,y:r.offsetTop,width:r.offsetWidth,height:r.offsetHeight}}function qh(e,t){let r=e.getBoundingClientRect(),o=t.getBoundingClientRect();return{x:r.left-o.left-t.clientLeft,y:r.top-o.top-t.clientTop,width:r.width,height:r.height}}function Ei(e,t){let r=e.style;r.transform=`translate3d(${t.x}px,${t.y}px,0)`,r.width=`${t.width}px`,r.height=`${t.height}px`}function Qh(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function _n(e,t,r){let o=ce(),n=ro(!1),i=ro(Xh),s=ro(r.activeSelector);s.current=r.activeSelector;let l=ro(r.observeAttributes);l.current=r.observeAttributes;let d=ro(o);d.current=o;let m=ro(null);m.current=(c,u)=>{let g=Jh(c,s.current);if(!g){u.style.opacity="0";return}if(Qh(i.current,g)&&n.current)return;if(!n.current||d.current){u.style.transition="none",Ei(u,g),u.style.opacity="1",u.offsetHeight,u.style.transition="",n.current=!0,i.current=g;return}let y=qh(u,c);u.style.transition="none",Ei(u,y),u.style.opacity="1",u.offsetHeight,u.style.transition="",Ei(u,g),i.current=g},op(()=>{r.activeKey;let c=e.current,u=t.current;if(!(c&&u))return;m.current?.(c,u)},[r.activeKey,o,e.current,t.current]),op(()=>{let c=e.current,u=t.current;if(!(c&&u))return;let g=0;function y(){if(!(c&&u))return;m.current?.(c,u)}function v(){cancelAnimationFrame(g),g=requestAnimationFrame(y)}let T=typeof ResizeObserver<"u"?new ResizeObserver(v):null;T?.observe(c);let M=l.current,V=null;if(M&&M.length>0)V=typeof MutationObserver<"u"?new MutationObserver(v):null,V?.observe(c,{subtree:!0,attributes:!0,attributeFilter:M});return()=>{cancelAnimationFrame(g),T?.disconnect(),V?.disconnect()}},[e.current,t.current])}var Un="pointer-events-none absolute top-0 left-0 z-0 rounded-[calc(var(--radius)-2px)] border border-border bg-accent shadow-[var(--shadow-xs)] transition-[transform,width,height,opacity] duration-[var(--motion-duration-fast)] ease-[var(--motion-ease-emphasized)]";import{jsx as _o,jsxs as pp}from"react/jsx-runtime";var be={sm:"sm",md:"md",lg:"lg"},ip=Li("relative inline-flex items-center rounded-[var(--radius)] border border-border bg-secondary p-1 text-muted-foreground",{variants:{size:{[be.sm]:"h-8 gap-0.5",[be.md]:"h-10 gap-0.5",[be.lg]:"h-11 gap-1"}},defaultVariants:{size:be.sm}}),sp=Li(["relative z-10 inline-flex items-center justify-center rounded-[calc(var(--radius)-2px)]","cursor-pointer select-none outline-none","transition-[color,background-color,box-shadow] duration-[var(--motion-duration-fast)] ease-[var(--motion-ease-standard)]","focus-visible:ring-2 focus-visible:ring-ring","disabled:pointer-events-none disabled:text-muted-foreground/40","leading-none"],{variants:{size:{[be.sm]:"size-6",[be.md]:"size-8",[be.lg]:"size-9"},active:{true:"text-foreground",false:"text-muted-foreground hover:text-foreground/70"}},defaultVariants:{size:be.sm,active:!1}}),lp=Li(["relative z-10 inline-flex items-center justify-center gap-1.5 rounded-[calc(var(--radius)-2px)]","cursor-pointer select-none whitespace-nowrap font-medium leading-none outline-none","transition-[color,background-color,box-shadow] duration-[var(--motion-duration-fast)] ease-[var(--motion-ease-standard)]","focus-visible:ring-2 focus-visible:ring-ring","disabled:pointer-events-none disabled:text-muted-foreground/40"],{variants:{size:{[be.sm]:"h-6 px-2.5 text-xs",[be.md]:"h-8 px-3 text-sm",[be.lg]:"h-9 px-4 text-sm"},active:{true:"text-foreground",false:"text-muted-foreground hover:text-foreground/70"}},defaultVariants:{size:be.sm,active:!1}}),mp={[be.sm]:"size-3",[be.md]:"size-3.5",[be.lg]:"size-4"},tP=(e)=>{return},xi=Zh({activeValue:"",onSelect:tP,size:be.sm,disabled:!1}),dp=Ri(({className:e,value:t,defaultValue:r,onValueChange:o,size:n,disabled:i=!1,children:s,...l},d)=>{let m=f(n),[c,u]=eP(r??""),g=np(null),y=Ct(d,g),v=np(null),T=t!==void 0?t:c,M=jh((V)=>{if(i)return;if(t===void 0)u(V);o?.(V)},[i,o,t]);return _n(g,v,{activeSelector:"button[data-state='active']",activeKey:T}),_o(xi.Provider,{value:{activeValue:T,onSelect:M,size:m,disabled:i},children:pp("div",{ref:y,role:"radiogroup",className:a(ip({size:m}),i&&"pointer-events-none cursor-not-allowed border-transparent bg-muted/40 text-muted-foreground/70",e),...l,children:[_o("span",{ref:v,"aria-hidden":!0,"data-slot":"indicator",className:Un,style:{opacity:0}}),s]})})});dp.displayName="SegmentedControl";var up=Ri(({className:e,value:t,icon:r,disabled:o=!1,...n},i)=>{let{activeValue:s,onSelect:l,size:d,disabled:m}=ap(xi),c=s===t,u=o||m;return _o("button",{ref:i,type:"button",role:"radio","aria-checked":c,"aria-disabled":u||void 0,"data-state":c?"active":"inactive","data-value":t,disabled:u,onClick:()=>l(t),className:a(sp({size:d,active:c}),e),...n,children:_o("span",{className:a(mp[d??be.sm],"[&>svg]:size-full"),children:r})})});up.displayName="SegmentedControlItem";var cp=Ri(({className:e,value:t,icon:r,disabled:o=!1,children:n,...i},s)=>{let{activeValue:l,onSelect:d,size:m,disabled:c}=ap(xi),u=l===t,g=o||c;return pp("button",{ref:s,type:"button",role:"radio","aria-checked":u,"aria-disabled":g||void 0,"data-state":u?"active":"inactive","data-value":t,disabled:g,onClick:()=>d(t),className:a(lp({size:m,active:u}),e),...i,children:[r&&_o("span",{className:a(mp[m??be.sm],"[&>svg]:size-full"),children:r}),n]})});cp.displayName="SegmentedControlLabelItem";var rP=be;import*as Jt from"@radix-ui/react-popover";import{cva as gp}from"class-variance-authority";import{Check as oP,ChevronDown as nP,X as aP}from"lucide-react";import{Children as iP,createContext as sP,forwardRef as Yo,isValidElement as Hi,useCallback as Ko,useContext as bp,useEffect as Kn,useId as fp,useMemo as lP,useRef as vp,useState as Uo}from"react";import{jsx as ve,jsxs as wi,Fragment as bP}from"react/jsx-runtime";var ue={sm:"sm",md:"md",lg:"lg"},oo={default:"default",error:"error",success:"success"},$o={trigger:"trigger",auto:"auto"},mP={start:"start",center:"center",end:"end"},yp=gp(["group flex items-center gap-2 rounded-[var(--radius)] border border-input","bg-background text-sm text-foreground outline-none","placeholder:text-muted-foreground focus-visible:ring-2","data-[state=open]:ring-2","disabled:cursor-not-allowed disabled:border-border disabled:bg-muted/45 disabled:text-muted-foreground","data-[placeholder]:text-muted-foreground","[&_[data-slot=select-value]]:line-clamp-1"].join(" "),{variants:{size:{[ue.sm]:"h-8 px-2.5 text-xs",[ue.md]:"h-10 px-3.5",[ue.lg]:"h-11 px-4.5 text-sm"},status:{[oo.default]:"focus-visible:ring-primary data-[state=open]:ring-primary",[oo.error]:"border-destructive focus-visible:ring-destructive data-[state=open]:ring-destructive",[oo.success]:"border-success focus-visible:ring-success data-[state=open]:ring-success"}},defaultVariants:{size:ue.md,status:oo.default}}),Tp=gp(["max-h-96 overflow-y-auto overflow-x-hidden"].join(" "),{variants:{widthMode:{[$o.trigger]:"w-[var(--radix-popover-trigger-width)]",[$o.auto]:"w-max min-w-0"},size:{[ue.sm]:"text-xs",[ue.md]:"text-sm",[ue.lg]:"text-sm"}},defaultVariants:{widthMode:$o.auto,size:ue.md}}),dP={[ue.sm]:"min-h-7.5 py-1.5 px-2.5 pr-3 text-xs",[ue.md]:"min-h-9 py-2 px-3 pr-4.5 text-sm",[ue.lg]:"min-h-10 py-2.5 px-3.5 pr-5.5 text-sm"},uP={[ue.sm]:"px-2 py-1 text-xs",[ue.md]:"px-2 py-1.5 text-sm",[ue.lg]:"px-2.5 py-1.5 text-sm"},$n={[ue.sm]:"size-3.5",[ue.md]:"size-4",[ue.lg]:"size-4"};function cP(e){if(!Hi(e))return!1;let t=e.type;if(typeof t==="string"||typeof t!=="function"&&typeof t!=="object"||t===null)return!1;return Reflect.get(t,"displayName")==="SelectItem"}function Ci(e,t){if(e===null||e===void 0||typeof e==="boolean")return;if(Array.isArray(e)){for(let o of e)Ci(o,t);return}if(!Hi(e))return;if(cP(e)){let o=typeof e.props.value==="string"?e.props.value:"";if(o.length>0){let n=typeof e.props.label==="string"?e.props.label:Yn(e.props.children).trim();if(n.length>0)t.set(o,n)}}let r=e.props.children;if(r!==void 0)Ci(r,t)}function Yn(e){if(e===null||e===void 0||typeof e==="boolean")return"";if(typeof e==="string"||typeof e==="number")return String(e);if(Array.isArray(e))return e.map((t)=>Yn(t)).join("");if(Hi(e))return Yn(e.props.children);return""}var ki=sP(null);function Xn(){let e=bp(ki);if(!e)throw Error("Select components must be used within Select");return e}function Si(e){let t=bp(ki);if(e)return e;return t?.triggerSize??ue.md}var pP=({children:e,value:t,defaultValue:r="",onValueChange:o,open:n,defaultOpen:i=!1,onOpenChange:s,disabled:l=!1})=>{let[d,m]=Uo(ue.md),[c,u]=Uo(!1),[g,y]=Uo(r),[v,T]=Uo(i),[,M]=Uo(0),V=vp(new Map),p=lP(()=>{let _=new Map;return Ci(e,_),_},[e]),h=t!==void 0,N=n!==void 0,C=h?t:g,H=N?n:v,S=Ko((_)=>{if(!h)y(_);if(o?.(_),!N)T(!1);s?.(!1)},[h,N,o,s]),L=Ko((_)=>{if(l)return;if(!N)T(_);s?.(_)},[l,N,s]),U=Ko((_,re)=>{if(V.current.get(_)!==re)V.current.set(_,re),M((J)=>J+1)},[]),G=Ko((_)=>{return V.current.get(_)??p.get(_)},[p]),K=fp(),Z=fp(),ie={value:C,onValueChange:S,open:H,onOpenChange:L,triggerSize:d,setTriggerSize:m,triggerFullWidth:c,setTriggerFullWidth:u,disabled:l,triggerId:K,contentId:Z,registerItem:U,getLabel:G};return ve(ki.Provider,{value:ie,children:ve(Jt.Root,{open:H,onOpenChange:L,children:e})})},fP=({children:e,className:t})=>ve("div",{role:"group",className:t,children:e}),gP=({placeholder:e})=>{let{value:t,getLabel:r}=Xn();if(!t)return e?ve("span",{className:"text-muted-foreground",children:e}):null;let o=r(t);return ve(bP,{children:o??t})},hp=Yo(({className:e,children:t,size:r=ue.sm,status:o=oo.default,fullWidth:n=!1,clearable:i=!1,leadingIcon:s,indicatorIcon:l,renderValue:d,placeholder:m,onKeyDown:c,...u},g)=>{let y=Xn(),v=f(r)??r,T=y.setTriggerSize,M=y.setTriggerFullWidth;Kn(()=>{T(v)},[v,T]),Kn(()=>{M(n)},[n,M]);let V=y.value.length>0,p=i&&V&&!y.disabled,h=()=>{y.onValueChange("")},N;if(d)N=V?d(y.value):m?ve("span",{className:"text-muted-foreground",children:m}):null;else N=t;let C=(H)=>{if(c?.(H),H.defaultPrevented)return;if(H.key==="ArrowDown"||H.key==="ArrowUp"||H.key==="Enter"||H.key===" "){if(!y.open)H.preventDefault(),y.onOpenChange(!0)}};return ve(Jt.Trigger,{asChild:!0,children:wi("button",{ref:g,type:"button",role:"combobox","aria-expanded":y.open,"aria-haspopup":"listbox","aria-controls":y.contentId,id:y.triggerId,disabled:y.disabled,"data-state":y.open?"open":"closed","data-placeholder":V?void 0:"",className:a(yp({size:v,status:o}),n?"w-full":"w-auto",e),onKeyDown:C,...u,children:[s&&ve("i",{className:"inline-flex shrink-0 items-center text-muted-foreground not-italic",children:s}),ve("span",{"data-slot":"select-value",className:"min-w-0 flex-1 text-left",children:N}),wi("span",{className:"inline-flex shrink-0 items-center gap-1 text-muted-foreground",children:[p&&ve("span",{role:"button",tabIndex:-1,"aria-label":"Clear selection",onPointerDown:(H)=>{H.stopPropagation(),H.preventDefault(),h()},className:"inline-flex items-center justify-center rounded-[calc(var(--radius)-4px)] text-muted-foreground hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",children:ve(aP,{className:$n[v]})}),l??ve(nP,{className:a($n[v],"opacity-60 transition-transform duration-[var(--motion-duration-fast)] ease-[var(--motion-ease-productive)]",y.open&&"rotate-180")})]})]})})});hp.displayName="SelectTrigger";var Pp=Yo(({className:e,children:t,widthMode:r,size:o,align:n="start",side:i="bottom",sideOffset:s=4,portal:l=se,portalContainer:d,forceMount:m=!1,onKeyDown:c,...u},g)=>{let y=Xn(),v=Si(o),T=r??$o.auto,M=vp(null),V=Ct(g,M),p=Ko((C)=>{let H=M.current;if(!H)return;let S=Array.from(H.querySelectorAll('[role="option"]:not([data-disabled])'));if(S.length===0)return;let L=H.querySelector('[role="option"]:focus'),U=L?S.indexOf(L):-1,G;switch(C){case"first":G=S[0];break;case"last":G=S[S.length-1];break;case"next":G=S[U+1]??S[0];break;case"prev":G=S[U-1]??S[S.length-1];break}G?.focus()},[]),h=(C)=>{if(c?.(C),C.defaultPrevented)return;switch(C.key){case"ArrowDown":C.preventDefault(),p("next");break;case"ArrowUp":C.preventDefault(),p("prev");break;case"Home":C.preventDefault(),p("first");break;case"End":C.preventDefault(),p("last");break;case"Escape":C.preventDefault(),y.onOpenChange(!1);break}};Kn(()=>{if(y.open)requestAnimationFrame(()=>p("first"))},[y.open,p]);let N=ve(Jt.Content,{ref:V,id:y.contentId,role:"listbox","aria-labelledby":y.triggerId,side:i,align:n,sideOffset:s,forceMount:m?!0:void 0,onKeyDown:h,onOpenAutoFocus:(C)=>C.preventDefault(),className:a(Jr(),Tp({widthMode:T,size:v}),"p-1",e),...u,children:t});if(l)return ve(Jt.Portal,{container:d??void 0,children:N});return N});Pp.displayName="SelectContent";var Vp=Yo(({className:e,size:t,...r},o)=>{let n=Si(t);return ve("div",{ref:o,className:a("font-semibold text-foreground",uP[n],e),...r})});Vp.displayName="SelectLabel";var Mp=Yo(({className:e,children:t,value:r,label:o,size:n,disabled:i=!1,...s},l)=>{let d=Xn(),m=Si(n),c=d.value===r,u=d.registerItem,g=Yn(iP.toArray(t)).trim();Kn(()=>{let T=o??(g.length>0?g:r);u(r,T)},[g,r,o,u]);let y=()=>{if(!i)d.onValueChange(r)},v=(T)=>{if(T.key==="Enter"||T.key===" ")T.preventDefault(),y()};return wi("div",{ref:l,role:"option",tabIndex:i?void 0:-1,"aria-selected":c,"aria-disabled":i||void 0,"data-selected":c?"":void 0,"data-disabled":i?"":void 0,"data-value":r,className:a("relative flex w-full cursor-pointer select-none items-center gap-2","rounded-[calc(var(--radius)-3px)] outline-none","hover:bg-accent focus-visible:bg-accent focus-visible:text-accent-foreground","data-disabled:cursor-not-allowed data-disabled:border-transparent data-disabled:bg-muted/40 data-disabled:text-muted-foreground/70",dP[m],c&&"bg-accent/50",e),onClick:y,onKeyDown:v,...s,children:[ve("span",{className:a("flex shrink-0 items-center justify-center",$n[m]),children:c&&ve(oP,{className:$n[m]})}),ve("span",{className:"min-w-0 flex-1 truncate",children:t})]})});Mp.displayName="SelectItem";var zp=Yo(({className:e,...t},r)=>ve("div",{ref:r,className:a("-mx-1 my-1 h-px bg-border",e),...t}));zp.displayName="SelectSeparator";import{cva as vP}from"class-variance-authority";import{forwardRef as yP}from"react";import{jsx as TP}from"react/jsx-runtime";var Xo={horizontal:"horizontal",vertical:"vertical"},Np=vP("shrink-0 bg-border",{variants:{orientation:{[Xo.horizontal]:"h-px w-full",[Xo.vertical]:"h-full w-px"}},defaultVariants:{orientation:Xo.horizontal}}),Ep=yP(({className:e,orientation:t=Xo.horizontal,decorative:r=!0,...o},n)=>{let i=r?{role:"none"}:{role:"separator","aria-orientation":t};return TP("div",{ref:n,className:a(Np({orientation:t}),e),...i,...o})});Ep.displayName="Separator";import{cva as Jn}from"class-variance-authority";import{forwardRef as qn}from"react";import{jsx as Qn}from"react/jsx-runtime";var ye={sm:"sm",md:"md",lg:"lg"},Lp=Jn("animate-pulse rounded-[var(--radius)] bg-muted"),Rp=Jn("w-full",{variants:{size:{[ye.sm]:"h-3",[ye.md]:"h-4",[ye.lg]:"h-5"}},defaultVariants:{size:ye.md}}),xp=Jn("",{variants:{size:{[ye.sm]:"h-8 w-8",[ye.md]:"h-10 w-10",[ye.lg]:"h-12 w-12"}},defaultVariants:{size:ye.md}}),Cp=Jn("",{variants:{size:{[ye.sm]:"h-8 w-20",[ye.md]:"h-9 w-24",[ye.lg]:"h-10 w-28"}},defaultVariants:{size:ye.md}}),Jo=qn(({className:e,circle:t=!1,...r},o)=>Qn("div",{ref:o,className:a(Lp(),t&&"rounded-full",e),...r}));Jo.displayName="Skeleton";var wp=qn(({className:e,size:t=ye.sm,...r},o)=>{let n=f(t)??ye.md;return Qn(Jo,{ref:o,className:a(Rp({size:n}),e),...r})});wp.displayName="SkeletonText";var Hp=qn(({className:e,size:t=ye.sm,...r},o)=>{let n=f(t)??ye.md;return Qn(Jo,{ref:o,circle:!0,className:a(xp({size:n}),e),...r})});Hp.displayName="SkeletonAvatar";var kp=qn(({className:e,size:t=ye.sm,...r},o)=>{let n=f(t)??ye.md;return Qn(Jo,{ref:o,className:a(Cp({size:n}),e),...r})});kp.displayName="SkeletonButton";import*as qt from"@radix-ui/react-slider";import{cva as Zn}from"class-variance-authority";import{forwardRef as hP}from"react";import{jsx as Di,jsxs as MP}from"react/jsx-runtime";var no={sm:"sm",md:"md",lg:"lg"},Sp=Zn("relative flex w-full touch-none select-none items-center"),Dp=Zn("relative w-full grow overflow-hidden rounded-full bg-secondary"),Ap=Zn("absolute h-full bg-primary"),Bp=Zn("transition-[color,background-color,border-color,box-shadow,transform,opacity,filter] duration-[var(--motion-duration-medium)] ease-[var(--motion-ease-standard)] block cursor-grab rounded-full border-2 border-primary bg-background ring-offset-background active:cursor-grabbing focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:cursor-not-allowed disabled:border-border disabled:bg-muted/40 disabled:text-muted-foreground/70"),PP={[no.sm]:"h-2",[no.md]:"h-2.5",[no.lg]:"h-3"},VP={[no.sm]:"h-4 w-4",[no.md]:"h-5 w-5",[no.lg]:"h-6 w-6"},Ip=hP(({className:e,size:t,...r},o)=>{let n=f(t);return MP(qt.Root,{ref:o,className:a(Sp(),e),...r,children:[Di(qt.Track,{"data-slider-track":!0,className:a(Dp(),PP[n]),children:Di(qt.Range,{className:a(Ap())})}),(r.defaultValue??r.value??[0]).map((i,s)=>Di(qt.Thumb,{"data-slider-thumb":!0,className:a(Bp(),VP[n])},`thumb-${String(s)}`))]})});Ip.displayName="Slider";import{cva as Re}from"class-variance-authority";import{forwardRef as LP,useCallback as Ai,useEffect as Ii,useLayoutEffect as RP,useMemo as ao,useRef as yt,useState as Bi}from"react";import{useCallback as Fp,useSyncExternalStore as zP}from"react";var NP=()=>!1,EP=()=>{return};function Op(e){let t=Fp((o)=>{if(typeof window>"u")return EP;let n=window.matchMedia(e);return n.addEventListener("change",o),()=>n.removeEventListener("change",o)},[e]),r=Fp(()=>{if(typeof window>"u")return!1;return window.matchMedia(e).matches},[e]);return zP(t,r,NP)}import{jsx as te,jsxs as kt,Fragment as nf}from"react/jsx-runtime";var xP="(max-width: 639px)",x={sm:"sm",md:"md",lg:"lg"},Fi={sm:"sm",md:"sm",lg:"md"},jn={idle:"idle",loading:"loading",error:"error"},CP=160,Gp=Re("z-[120] bg-black/40"),Wp=Re(["gs-spotlight-content fixed inset-x-0 top-[15vh] z-[120] w-full mx-auto","rounded-[calc(var(--radius)+6px)] border border-border bg-popover shadow-2xl","overflow-hidden"],{variants:{size:{[x.sm]:"max-w-md",[x.md]:"max-w-xl",[x.lg]:"max-w-2xl"}},defaultVariants:{size:x.md}}),_p=Re(["gs-sheet-content gs-sheet-content-bottom","fixed inset-x-0 bottom-0 z-[120] w-full flex flex-col","rounded-t-2xl border-t border-x border-border bg-popover shadow-2xl","overflow-hidden"]),Up=Re("flex items-center border-b border-border",{variants:{size:{[x.sm]:"gap-2 px-3 py-2",[x.md]:"gap-3 px-4 py-3",[x.lg]:"gap-3 px-5 py-3.5"}},defaultVariants:{size:x.md}}),Kp=Re(["w-full flex-1 bg-transparent text-foreground","placeholder:text-muted-foreground","outline-none border-none"],{variants:{size:{[x.sm]:"text-sm",[x.md]:"text-base",[x.lg]:"text-lg"}},defaultVariants:{size:x.md}}),$p=Re("text-muted-foreground shrink-0",{variants:{size:{[x.sm]:"size-3.5",[x.md]:"size-4",[x.lg]:"size-5"}},defaultVariants:{size:x.md}}),Yp=Re("overflow-y-auto py-1",{variants:{size:{[x.sm]:"max-h-64",[x.md]:"max-h-80",[x.lg]:"max-h-96"}},defaultVariants:{size:x.md}}),Xp=Re("font-semibold text-muted-foreground uppercase tracking-wide",{variants:{size:{[x.sm]:"px-2.5 py-1.5 text-[11px]",[x.md]:"px-3 py-2 text-xs",[x.lg]:"px-3.5 py-2 text-xs"}},defaultVariants:{size:x.md}}),Jp=Re(["group flex items-center cursor-pointer rounded-lg","text-foreground","transition-[color,background-color,box-shadow] duration-100","active:scale-[0.98]"],{variants:{size:{[x.sm]:"gap-2 px-2.5 py-1.5 mx-1.5",[x.md]:"gap-3 px-3 py-2 mx-2",[x.lg]:"gap-3 px-3.5 py-2.5 mx-2"},selected:{true:"bg-primary/10",false:"hover:bg-muted"},disabled:{true:"text-muted-foreground cursor-not-allowed pointer-events-none bg-muted/40",false:""}},defaultVariants:{size:x.md,selected:!1,disabled:!1}}),qp=Re("shrink-0",{variants:{size:{[x.sm]:"size-3.5",[x.md]:"size-4",[x.lg]:"size-5"},selected:{true:"text-primary",false:"text-muted-foreground"}},defaultVariants:{size:x.md,selected:!1}}),Qp=Re("flex-1 min-w-0"),Zp=Re("font-medium truncate",{variants:{size:{[x.sm]:"text-xs",[x.md]:"text-sm",[x.lg]:"text-sm"}},defaultVariants:{size:x.md}}),jp=Re("text-muted-foreground truncate",{variants:{size:{[x.sm]:"text-[11px]",[x.md]:"text-xs",[x.lg]:"text-xs"}},defaultVariants:{size:x.md}}),ef=Re("flex items-center gap-1 text-muted-foreground shrink-0",{variants:{size:{[x.sm]:"text-[11px]",[x.md]:"text-[11px]",[x.lg]:"text-xs"}},defaultVariants:{size:x.md}}),ea=Re("flex flex-col items-center justify-center text-muted-foreground",{variants:{size:{[x.sm]:"py-6 min-h-20",[x.md]:"py-8 min-h-24",[x.lg]:"py-10 min-h-28"},state:{empty:"text-muted-foreground",loading:"text-muted-foreground",error:"text-destructive"}},defaultVariants:{size:x.md,state:"empty"}}),ta=Re("font-medium",{variants:{size:{[x.sm]:"text-xs",[x.md]:"text-sm",[x.lg]:"text-sm"}},defaultVariants:{size:x.md}}),tf=Re("mt-1",{variants:{size:{[x.sm]:"text-[11px]",[x.md]:"text-xs",[x.lg]:"text-xs"}},defaultVariants:{size:x.md}}),rf=(e,t)=>{if(!t)return!0;let r=t.toLowerCase();return e.title.toLowerCase().includes(r)||(e.description?.toLowerCase().includes(r)??!1)||(e.keywords?.some((o)=>o.toLowerCase().includes(r))??!1)};function wP(e,t){let r=yt(null),o=yt(null),n=yt(null),i=yt(!0),s=yt(t);return Ii(()=>{if(e)i.current=!0},[e]),RP(()=>{let l=r.current,d=o.current,m=n.current;if(!(l&&d&&m))return;let c=d.scrollHeight,u=s.current!==t;if(s.current=t,i.current)l.style.transition="none",l.style.height=`${c}px`,m.style.transition="none",m.style.opacity="1",requestAnimationFrame(()=>{l.style.transition="",m.style.transition="",i.current=!1});else if(u)m.style.transition="none",m.style.opacity="0",l.style.height=`${c}px`,requestAnimationFrame(()=>{m.style.transition="opacity 200ms var(--motion-ease-emphasized)",m.style.opacity="1"});else l.style.height=`${c}px`}),{wrapperRef:r,contentRef:o,viewRef:n}}function HP({action:e,size:t,isActive:r,isDisabled:o,isMac:n,onClick:i,renderItem:s,index:l}){let d=e.shortcut?ra(e.shortcut,n):[],m=new Map,c=d.map((u)=>{let g=(m.get(u)??0)+1;return m.set(u,g),{token:u,key:`${u}-${g}`}});return te("div",{role:"option","aria-selected":r,"aria-disabled":o,tabIndex:o?-1:0,onClick:i,onKeyDown:(u)=>{if(u.key==="Enter"||u.key===" ")u.preventDefault(),i()},className:a(Jp({size:t,selected:r,disabled:o})),children:s?s(e,{active:r,disabled:o,index:l}):kt(nf,{children:[e.icon&&te("span",{className:a(qp({size:t,selected:r})),children:e.icon}),kt("div",{className:a(Qp()),children:[te("div",{className:a(Zp({size:t})),children:e.title}),e.description&&te("div",{className:a(jp({size:t})),children:e.description})]}),c.length>0&&te("div",{className:a(ef({size:t})),children:c.map((u)=>te("kbd",{className:a($r({size:Fi[t]})),children:u.token},u.key))})]})})}var of=LP(({className:e,open:t,onOpenChange:r,actions:o,onActionSelect:n,value:i,defaultValue:s="",onValueChange:l,placeholder:d="Search commands, pages, or actions...",size:m=x.sm,status:c=jn.idle,statusMessage:u,emptyText:g="No command found for this query.",hotkey:y,portal:v=!0,filterFn:T,renderItem:M,footer:V,...p},h)=>{let N=yt(null),C=yt(null),[H,S]=Bi(s),[L,U]=Bi(0),[G,K]=Bi(t),{isMac:Z}=wo(),ie=Op(xP),_=ce(),re=ao(()=>y&&y.length>0?y.join("+"):null,[y]),w=ao(()=>y?ra(y,Z):[],[y,Z]),J=ao(()=>{let k=new Map;return w.map((me)=>{let he=(k.get(me)??0)+1;return k.set(me,he),{token:me,key:`${me}-${he}`}})},[w]);zo(re??"",()=>r(!t),{enabled:!!re});let E=i!==void 0?i:H,F=T??rf,b=ao(()=>o.filter((k)=>F(k,E)),[o,E,F]),P=ao(()=>b.flatMap((k,me)=>k.disabled?[]:[me]),[b]),R=ao(()=>{let k=new Map,me=new Map,he=0;for(let z of b){let q=z.group??"";if(!k.has(q))k.set(q,[]);k.get(q)?.push(z),me.set(z,he++)}return{groups:k,indexMap:me}},[b]),oe=yt(!1),O=yt(t);if(O.current!==t)oe.current=!t,O.current=t;let Ne=yt({query:E,status:c,statusMessage:u??null,filtered:b,grouped:R,activeIndex:L,emptyText:g});if(!oe.current)Ne.current={query:E,status:c,statusMessage:u??null,filtered:b,grouped:R,activeIndex:L,emptyText:g};let I=Ne.current,ae=I.status===jn.loading?"loading":I.status===jn.error?"error":I.filtered.length===0?"empty":"results",{wrapperRef:zt,contentRef:Qe,viewRef:W}=wP(t,ae);Ii(()=>{if(t)U(0)},[t]),Ii(()=>{if(t){K(!0);return}let k=setTimeout(()=>{K(!1)},_?0:CP);return()=>{clearTimeout(k)}},[t,_]);let le=t||G,Te=Ai((k)=>{S(k.target.value),l?.(k.target.value),U(0)},[l]),pe=Ai((k)=>{C.current?.querySelectorAll('[role="option"]')[k]?.scrollIntoView({block:"nearest"})},[]),Be=Ai((k)=>{if(k.key==="ArrowDown"||k.key==="ArrowUp"){if(k.preventDefault(),P.length===0)return;let me=P.indexOf(L),he=k.key==="ArrowDown"?P[(me+1)%P.length]:P[(me-1+P.length)%P.length];if(he!==void 0)U(he),pe(he);return}if(k.key==="Enter"){k.preventDefault();let me=b[L];if(me&&!me.disabled)n(me,L)}},[L,P,b,n,pe]),mt=kt(nf,{children:[te(Eo,{forceMount:!0,"data-testid":"spotlight-overlay",className:a(Gp()),onClick:()=>r(!1)}),kt(ei,{...p,ref:h,forceMount:!0,className:a(ie?_p():Wp({size:m}),e),"aria-label":"Spotlight search","aria-describedby":void 0,onOpenAutoFocus:(k)=>{k.preventDefault(),N.current?.focus()},onCloseAutoFocus:(k)=>k.preventDefault(),onKeyDown:Be,children:[te(Ln,{className:"sr-only",children:"Spotlight search"}),ie&&te("div",{className:"flex justify-center pt-2 pb-1",children:te("div",{className:"h-1 w-8 rounded-full bg-muted-foreground/30"})}),kt("div",{className:a(Up({size:m})),children:[te("svg",{className:a($p({size:m})),fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:te("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"})}),te("input",{ref:N,type:"text",value:I.query,onChange:Te,placeholder:d,"aria-label":"Search",className:a(Kp({size:m}))}),!ie&&(y?te("div",{className:"flex items-center gap-1",children:J.map((k)=>te("kbd",{className:a($r({size:Fi[m]})),children:k.token},k.key))}):te("kbd",{className:a($r({size:Fi[m]})),children:"ESC"}))]}),te("div",{ref:zt,className:"overflow-hidden transition-[height] duration-200 ease-[var(--motion-ease-emphasized)] motion-reduce:transition-none",children:te("div",{ref:Qe,children:kt("div",{ref:W,children:[ae==="loading"&&kt("div",{className:a(ea({size:m,state:"loading"})),children:[te(At,{size:"sm",className:"mb-2 text-muted-foreground"}),te("div",{className:a(ta({size:m})),children:"Searching commands..."})]}),ae==="error"&&kt("div",{className:a(ea({size:m,state:"error"})),children:[te("div",{className:a(ta({size:m})),children:"Search failed"}),I.statusMessage&&te("div",{className:a(tf({size:m})),children:I.statusMessage})]}),ae==="empty"&&te("div",{className:a(ea({size:m,state:"empty"})),children:te("div",{className:a(ta({size:m})),children:I.emptyText})}),ae==="results"&&te("div",{ref:C,role:"listbox","aria-label":"Search results",className:a(Yp({size:m}),ie&&"max-h-none min-h-0 flex-1"),children:Array.from(I.grouped.groups.entries()).map(([k,me])=>kt("div",{children:[k&&te("div",{className:a(Xp({size:m})),children:k}),me.map((he)=>{let z=I.grouped.indexMap.get(he)??0;return te(HP,{action:he,size:m,isActive:z===I.activeIndex,isDisabled:he.disabled??!1,isMac:Z,index:z,onClick:()=>{if(!he.disabled)n(he,z)},renderItem:M},he.id)})]},k||"__ungrouped__"))})]})})}),V&&te("div",{className:"border-border border-t px-3 py-2",children:V})]})]});return te(No,{open:t,onOpenChange:r,children:le?v?te(Nn,{forceMount:!0,children:mt}):mt:null})});of.displayName="Spotlight";import{cva as Vr}from"class-variance-authority";import{Check as kP}from"lucide-react";import{forwardRef as Mr}from"react";import{jsx as Qt}from"react/jsx-runtime";var af=Vr("flex w-full",{variants:{orientation:{horizontal:"flex-row items-start",vertical:"flex-col"}},defaultVariants:{orientation:"horizontal"}}),sf=Vr("flex",{variants:{orientation:{horizontal:"flex-1 flex-col items-center",vertical:"gap-4 flex-row"}},defaultVariants:{orientation:"horizontal"}}),lf=Vr(["relative z-10 flex shrink-0 items-center justify-center rounded-full border-2 font-semibold","transition-[color,background-color,border-color,box-shadow] duration-200 ease-out"],{variants:{status:{incomplete:["border-border bg-card text-muted-foreground","shadow-[var(--shadow-xs)]"],current:["border-primary bg-primary text-primary-foreground","shadow-[var(--glow-brand-sm)]"],complete:["border-success/60 bg-success text-success-foreground","shadow-[var(--shadow-sm)]","[&>svg]:gs-step-check-animated"]},size:{sm:"h-8 w-8 text-xs",md:"h-10 w-10 text-sm",lg:"h-12 w-12 text-base"},animated:{true:"gs-step-indicator-animated",false:""}},defaultVariants:{status:"incomplete",size:"sm",animated:!0}}),mf=Vr("rounded-full transition-[background-color,opacity] duration-300 ease-out",{variants:{orientation:{horizontal:"mx-2 mt-5 h-1 flex-1",vertical:"ml-5 min-h-10 w-1"},status:{incomplete:"bg-border/60",complete:"bg-gradient-to-r from-primary to-success"},size:{sm:"opacity-80",md:"",lg:"opacity-95"},animated:{true:"",false:""}},compoundVariants:[{status:"complete",orientation:"horizontal",animated:!0,className:"gs-connector-fill-animated"},{status:"complete",orientation:"vertical",animated:!0,className:"gs-connector-fill-vertical-animated"}],defaultVariants:{orientation:"horizontal",status:"incomplete",size:"sm",animated:!0}}),df=Vr("flex flex-col",{variants:{orientation:{horizontal:"mt-3 items-center text-center",vertical:"flex-1 pb-8 last:pb-0"}},defaultVariants:{orientation:"horizontal"}}),uf=Vr("font-medium transition-colors duration-200 ease-out",{variants:{status:{incomplete:"text-muted-foreground",current:"text-foreground",complete:"text-foreground"},size:{sm:"text-sm",md:"text-sm",lg:"text-base"}},defaultVariants:{status:"incomplete",size:"sm"}}),cf=Vr("text-muted-foreground transition-colors duration-200 ease-out",{variants:{size:{sm:"text-sm",md:"text-xs",lg:"text-sm"}},defaultVariants:{size:"sm"}});var pf=Mr(({className:e,orientation:t="horizontal",activeStep:r,...o},n)=>{return Qt("div",{ref:n,role:"group","aria-label":"Progress steps",className:a(af({orientation:t}),e),"data-orientation":t,"data-active-step":r,...o})});pf.displayName="Stepper";var ff=Mr(({className:e,orientation:t="horizontal",isLast:r,isCurrent:o,...n},i)=>{return Qt("div",{ref:i,className:a(sf({orientation:t}),e),"data-last":r,"aria-current":o?"step":void 0,...n})});ff.displayName="Step";var gf=Mr(({className:e,status:t="incomplete",size:r="sm",icon:o,step:n,children:i,animated:s=!0,...l},d)=>{let m=f(r);return Qt("div",{ref:d,className:a(lf({status:t,size:m,animated:s}),e),"data-status":t,"aria-hidden":"true",...l,children:t==="complete"?o||Qt(kP,{className:"size-4",strokeWidth:3}):i||n})});gf.displayName="StepIndicator";var bf=Mr(({className:e,orientation:t="horizontal",status:r="incomplete",size:o="sm",animated:n=!0,...i},s)=>{let l=f(o);return Qt("div",{ref:s,className:a(mf({orientation:t,status:r,size:l,animated:n}),e),"data-status":r,...i})});bf.displayName="StepConnector";var vf=Mr(({className:e,orientation:t="horizontal",...r},o)=>{return Qt("div",{ref:o,className:a(df({orientation:t}),e),...r})});vf.displayName="StepContent";var yf=Mr(({className:e,status:t="incomplete",size:r="sm",...o},n)=>{let i=f(r);return Qt("h4",{ref:n,className:a(uf({status:t,size:i}),e),...o})});yf.displayName="StepTitle";var Tf=Mr(({className:e,size:t="sm",...r},o)=>{let n=f(t);return Qt("p",{ref:o,className:a(cf({size:n}),e),...r})});Tf.displayName="StepDescription";import*as oa from"@radix-ui/react-switch";import{cva as SP}from"class-variance-authority";import{forwardRef as DP}from"react";import{jsx as hf}from"react/jsx-runtime";var Xe={sm:"sm",md:"md",lg:"lg"},zr={default:"default",error:"error",success:"success"},Pf=SP("transition-[color,background-color,border-color,box-shadow,transform,opacity,filter] duration-[var(--motion-duration-medium)] ease-[var(--motion-ease-standard)] relative inline-flex shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent bg-input enabled:active:scale-[0.96] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:bg-input/70",{variants:{size:{[Xe.sm]:"h-4.5 w-8",[Xe.md]:"h-5 w-9",[Xe.lg]:"h-6 w-11"},status:{[zr.default]:"disabled:data-[state=checked]:bg-muted-foreground/40 enabled:data-[state=unchecked]:hover:bg-input/80 data-[state=checked]:bg-primary data-[state=checked]:hover:bg-primary/90",[zr.error]:"bg-destructive/30 disabled:bg-destructive/25 disabled:data-[state=checked]:bg-destructive/50 enabled:data-[state=unchecked]:hover:bg-destructive/45 focus-visible:ring-destructive data-[state=checked]:bg-destructive data-[state=checked]:hover:bg-destructive/90",[zr.success]:"disabled:bg-success/20 disabled:data-[state=checked]:bg-success/45 focus-visible:ring-success enabled:data-[state=unchecked]:hover:bg-input/80 data-[state=checked]:bg-success data-[state=checked]:hover:bg-success/90"}},defaultVariants:{size:Xe.md,status:zr.default}}),AP={[Xe.sm]:"h-3.5 w-3.5",[Xe.md]:"h-4 w-4",[Xe.lg]:"h-5 w-5"},BP={[Xe.sm]:"data-[state=checked]:translate-x-3.5",[Xe.md]:"data-[state=checked]:translate-x-4",[Xe.lg]:"data-[state=checked]:translate-x-5"},Vf=DP(({className:e,size:t=Xe.sm,status:r=zr.default,error:o=!1,checked:n,disabled:i,...s},l)=>{let d=f(t),m=o?zr.error:r;return hf(oa.Root,{ref:l,checked:n,disabled:i,className:a(Pf({size:d,status:m}),e),...s,children:hf(oa.Thumb,{className:a("pointer-events-none block rounded-full bg-background shadow-sm transition-transform duration-150",AP[d],BP[d])})})});Vf.displayName="Switch";import{cva as St}from"class-variance-authority";import{createContext as IP,forwardRef as Zt,useContext as Mf}from"react";import{jsx as Tt}from"react/jsx-runtime";var ke={sm:"sm",md:"md",lg:"lg"},Oi=IP(ke.md),zf=St("relative w-full overflow-auto rounded-[var(--radius)] border border-border bg-card shadow-[var(--shadow-sm)]"),Nf=St("w-full caption-bottom",{variants:{size:{[ke.sm]:"text-xs",[ke.md]:"text-sm",[ke.lg]:"text-sm"}},defaultVariants:{size:ke.md}}),Ef=St("sticky top-0 z-[1] [&_tr]:border-b [&_tr]:border-border [&_th]:bg-muted"),Lf=St("[&_tr:last-child]:border-0"),Rf=St("border-t border-border bg-muted font-medium text-muted-foreground [&>tr]:last:border-b-0"),xf=St("transition-[color,background-color,border-color,box-shadow,transform,opacity,filter] duration-[var(--motion-duration-medium)] ease-[var(--motion-ease-standard)] border-b border-border hover:bg-muted/50 data-[state=selected]:bg-primary/10"),Cf=St("text-left align-middle font-semibold text-muted-foreground [&:has([role=checkbox])]:pr-0",{variants:{size:{[ke.sm]:"h-8 px-2",[ke.md]:"h-10 px-3",[ke.lg]:"h-12 px-4"}},defaultVariants:{size:ke.md}}),wf=St("align-middle text-foreground [&:has([role=checkbox])]:pr-0",{variants:{size:{[ke.sm]:"p-2",[ke.md]:"p-3",[ke.lg]:"p-4"}},defaultVariants:{size:ke.md}}),Hf=St("mt-4 text-sm text-muted-foreground"),kf=Zt(({className:e,containerClassName:t,size:r=ke.sm,...o},n)=>{let i=f(r)??ke.md;return Tt(Oi.Provider,{value:i,children:Tt("div",{className:a(zf(),t),children:Tt("table",{ref:n,className:a(Nf({size:i}),e),...o})})})});kf.displayName="Table";var Sf=Zt(({className:e,...t},r)=>Tt("thead",{ref:r,className:a(Ef(),e),...t}));Sf.displayName="TableHeader";var Df=Zt(({className:e,...t},r)=>Tt("tbody",{ref:r,className:a(Lf(),e),...t}));Df.displayName="TableBody";var Af=Zt(({className:e,...t},r)=>Tt("tfoot",{ref:r,className:a(Rf(),e),...t}));Af.displayName="TableFooter";var Bf=Zt(({className:e,...t},r)=>Tt("tr",{ref:r,className:a(xf(),e),...t}));Bf.displayName="TableRow";var If=Zt(({className:e,size:t,...r},o)=>{let n=Mf(Oi);return Tt("th",{ref:o,className:a(Cf({size:t??n}),e),...r})});If.displayName="TableHead";var Ff=Zt(({className:e,size:t,...r},o)=>{let n=Mf(Oi);return Tt("td",{ref:o,className:a(wf({size:t??n}),e),...r})});Ff.displayName="TableCell";var Of=Zt(({className:e,...t},r)=>Tt("caption",{ref:r,className:a(Hf(),e),...t}));Of.displayName="TableCaption";import*as st from"@radix-ui/react-tabs";import{cva as Gi}from"class-variance-authority";import{forwardRef as Wi,useRef as Gf}from"react";import{jsx as _i,jsxs as GP}from"react/jsx-runtime";var jt={sm:"sm",md:"md",lg:"lg"},Wf=Gi("relative inline-flex items-center justify-center rounded-[var(--radius)] border border-border bg-secondary p-1 text-muted-foreground",{variants:{size:{[jt.sm]:"gap-0.5",[jt.md]:"gap-1",[jt.lg]:"gap-1.5"}},defaultVariants:{size:jt.sm}}),_f=Gi("transition-[color,background-color,border-color,box-shadow,transform,opacity,filter] duration-[var(--motion-duration-medium)] ease-[var(--motion-ease-standard)] relative z-10 inline-flex items-center justify-center whitespace-nowrap rounded-[calc(var(--radius)-2px)] font-semibold leading-none text-muted-foreground outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:pointer-events-none disabled:cursor-not-allowed disabled:text-muted-foreground/50 data-[state=active]:text-foreground data-[state=inactive]:hover:text-foreground/80",{variants:{size:{[jt.sm]:"h-7 px-2.5 text-xs",[jt.md]:"h-9 px-3 text-sm",[jt.lg]:"h-10 px-4 text-sm"}},defaultVariants:{size:jt.sm}}),Uf=Gi("mt-3 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2"),FP=st.Root,OP=["data-state","aria-selected"],Kf=Wi(({className:e,size:t,children:r,...o},n)=>{let i=f(t),s=Gf(null),l=Ct(n,s),d=Gf(null);return _n(s,d,{activeSelector:"button[role='tab'][data-state='active']",observeAttributes:OP}),GP(st.List,{ref:l,className:a(Wf({size:i}),e),...o,children:[_i("span",{ref:d,"aria-hidden":!0,"data-slot":"indicator",className:Un,style:{opacity:0}}),r]})});Kf.displayName=st.List.displayName;var $f=Wi(({className:e,size:t,...r},o)=>{let n=f(t);return _i(st.Trigger,{ref:o,className:a(_f({size:n}),e),...r})});$f.displayName=st.Trigger.displayName;var Yf=Wi(({className:e,...t},r)=>_i(st.Content,{ref:r,className:a(Uf(),e),...t}));Yf.displayName=st.Content.displayName;import{cva as WP}from"class-variance-authority";import{forwardRef as _P}from"react";import{jsx as UP}from"react/jsx-runtime";var qo={default:"default",error:"error",success:"success"},Qo={sm:"sm",md:"md",lg:"lg"},Xf=WP("transition-[color,background-color,border-color,box-shadow,transform,opacity,filter] duration-[var(--motion-duration-medium)] ease-[var(--motion-ease-standard)] w-full resize-y rounded-[var(--radius)] border border-input bg-background text-sm text-foreground outline-none placeholder:text-muted-foreground focus-visible:ring-2 disabled:cursor-not-allowed disabled:border-border disabled:bg-muted/45 disabled:text-muted-foreground",{variants:{status:{[qo.default]:"focus-visible:ring-primary",[qo.error]:"border-destructive focus-visible:ring-destructive",[qo.success]:"border-success focus-visible:ring-success"},size:{[Qo.sm]:"min-h-[64px] px-2 py-1.5 text-xs",[Qo.md]:"min-h-[96px] px-3 py-2",[Qo.lg]:"min-h-[112px] px-4 py-2.5"}},defaultVariants:{status:qo.default,size:Qo.md}}),Jf=_P(({className:e,status:t=qo.default,size:r=Qo.sm,fullWidth:o=!1,noResize:n=!1,disabled:i,...s},l)=>{let d=f(r);return UP("textarea",{ref:l,className:a(Xf({status:t,size:d}),i&&"bg-muted",o&&"w-full",n&&"resize-none",e),disabled:i,...s})});Jf.displayName="Textarea";import{cva as er}from"class-variance-authority";import{forwardRef as tr}from"react";import{jsx as ht}from"react/jsx-runtime";var qf=er("relative flex flex-col"),Qf=er(["group relative flex pb-8 last:pb-0","transition-opacity duration-[var(--motion-duration-medium)] ease-[var(--motion-ease-standard)]"],{variants:{align:{left:"flex-row gap-4",right:"flex-row-reverse gap-4"},animated:{true:"gs-timeline-item-animated",false:""}},defaultVariants:{align:"left",animated:!0}}),Zf=er(["absolute bottom-0 w-0.5 rounded-full","transition-[background-color,opacity,height] duration-[var(--motion-duration-medium)] ease-[var(--motion-ease-standard)]"],{variants:{variant:{default:"bg-border",success:"bg-gradient-to-b from-success/50 to-success/30",warning:"bg-gradient-to-b from-warning/50 to-warning/30",error:"bg-gradient-to-b from-destructive/50 to-destructive/30",info:"bg-gradient-to-b from-info/50 to-info/30",primary:"bg-gradient-to-b from-primary/50 to-primary/30"},size:{sm:"left-[7px] top-5",md:"left-[15px] top-9",lg:"left-[21px] top-12"},animated:{true:"gs-timeline-connector-animated",false:""}},defaultVariants:{variant:"default",size:"sm",animated:!0}}),jf=er(["relative z-10 flex shrink-0 items-center justify-center rounded-full border-2","transition-[color,background-color,border-color,box-shadow] duration-[var(--motion-duration-fast)] ease-[var(--motion-ease-standard)]","[&>svg]:shrink-0"],{variants:{variant:{default:["border-border bg-card text-muted-foreground","shadow-[var(--shadow-sm)]","hover:border-border hover:shadow-[var(--shadow-md)]"],success:["border-success/60 bg-success/10 text-success","shadow-[var(--shadow-success-sm)]","hover:bg-success/15 hover:border-success/70 hover:shadow-[var(--shadow-success-md)]"],warning:["border-warning/60 bg-warning/10 text-warning","shadow-[var(--shadow-warning-sm)]","hover:bg-warning/15 hover:border-warning/70 hover:shadow-[var(--shadow-warning-md)]"],error:["border-destructive/60 bg-destructive/10 text-destructive","shadow-[var(--shadow-destructive-sm)]","hover:bg-destructive/15 hover:border-destructive/70 hover:shadow-[var(--shadow-destructive-md)]"],info:["border-info/60 bg-info/10 text-info","shadow-[var(--shadow-info-sm)]","hover:bg-info/15 hover:border-info/70 hover:shadow-[var(--shadow-info-md)]"],primary:["border-primary/60 bg-primary/10 text-primary","shadow-[var(--shadow-primary-sm)]","hover:bg-primary/15 hover:border-primary/70 hover:shadow-[var(--shadow-primary-md)]"]},size:{sm:"h-4 w-4 [&>svg]:size-2",md:"h-8 w-8 [&>svg]:size-4",lg:"h-11 w-11 [&>svg]:size-5"},pulse:{true:"gs-timeline-dot-pulse-enabled gs-timeline-dot-pulse",false:""},animated:{true:"gs-timeline-dot-animated",false:""}},defaultVariants:{variant:"default",size:"sm",pulse:!1,animated:!0}}),eg=er("flex min-w-0 flex-col gap-1 pt-0.5 transition-opacity duration-[var(--motion-duration-fast)] ease-[var(--motion-ease-standard)]"),tg=er("font-semibold leading-tight text-foreground transition-colors duration-[var(--motion-duration-fast)] ease-[var(--motion-ease-standard)]",{variants:{size:{sm:"text-[11px]",md:"text-base",lg:"text-lg"}},defaultVariants:{size:"sm"}}),rg=er("text-muted-foreground transition-colors duration-[var(--motion-duration-fast)] ease-[var(--motion-ease-standard)]",{variants:{size:{sm:"text-[11px]",md:"text-sm",lg:"text-base"}},defaultVariants:{size:"sm"}}),og=er("font-medium text-muted-foreground/70 transition-colors duration-[var(--motion-duration-fast)] ease-[var(--motion-ease-standard)]",{variants:{size:{sm:"text-[11px]",md:"text-sm",lg:"text-base"}},defaultVariants:{size:"sm"}});var ng=tr(({className:e,...t},r)=>{return ht("div",{ref:r,role:"list","aria-label":"Timeline events",className:a(qf(),e),...t})});ng.displayName="Timeline";var ag=tr(({className:e,align:t,isLast:r,animated:o=!0,...n},i)=>{return ht("div",{ref:i,role:"listitem",className:a(Qf({align:t,animated:o}),e),"data-last":r,...n})});ag.displayName="TimelineItem";var ig=tr(({className:e,variant:t,size:r,animated:o=!0,...n},i)=>{let s=f(r);return ht("div",{ref:i,className:a(Zf({variant:t,size:s,animated:o}),e),...n})});ig.displayName="TimelineConnector";var sg=tr(({className:e,variant:t,size:r,icon:o,children:n,pulse:i=!1,animated:s=!0,...l},d)=>{let m=f(r);return ht("div",{ref:d,className:a(jf({variant:t,size:m,pulse:i,animated:s}),e),"aria-hidden":"true",...l,children:o||n||ht(KP,{})})});sg.displayName="TimelineDot";var lg=tr(({className:e,...t},r)=>{return ht("div",{ref:r,className:a(eg(),e),...t})});lg.displayName="TimelineContent";var mg=tr(({className:e,size:t,...r},o)=>{let n=f(t);return ht("h4",{ref:o,className:a(tg({size:n}),e),...r})});mg.displayName="TimelineTitle";var dg=tr(({className:e,size:t,...r},o)=>{let n=f(t);return ht("p",{ref:o,className:a(rg({size:n}),e),...r})});dg.displayName="TimelineDescription";var ug=tr(({className:e,size:t,...r},o)=>{let n=f(t);return ht("time",{ref:o,className:a(og({size:n}),e),...r})});ug.displayName="TimelineTime";function KP(){return ht("span",{className:"size-2 rounded-full bg-current"})}import{cva as cg}from"class-variance-authority";var io={default:"default",success:"success",info:"info",warning:"warning",error:"error"},Je={sm:"sm",md:"md",lg:"lg"},Ui=cg("pointer-events-auto relative flex w-full items-center overflow-hidden rounded-[var(--radius)] border shadow-[var(--shadow-md)]",{variants:{variant:{[io.default]:"border-border bg-card text-card-foreground",[io.success]:"border-success/30 bg-card text-card-foreground",[io.info]:"border-info/30 bg-card text-card-foreground",[io.warning]:"border-warning/30 bg-card text-card-foreground",[io.error]:"border-destructive/30 bg-card text-card-foreground"},size:{[Je.sm]:"gap-2 p-3",[Je.md]:"gap-3 p-4",[Je.lg]:"gap-3.5 p-5"}},defaultVariants:{variant:io.default,size:Je.md}}),Ki=cg("transition-[color,background-color,border-color,box-shadow,transform,opacity,filter] duration-[var(--motion-duration-medium)] ease-[var(--motion-ease-standard)] inline-flex shrink-0 items-center justify-center rounded-[var(--radius)] border border-border bg-transparent font-medium text-foreground hover:bg-secondary focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:pointer-events-none disabled:cursor-not-allowed disabled:border-transparent disabled:bg-muted/40 disabled:text-muted-foreground/70",{variants:{size:{[Je.sm]:"h-6 px-2 text-xs",[Je.md]:"h-7 px-2.5 text-xs",[Je.lg]:"h-8 px-3 text-sm"}},defaultVariants:{size:Je.md}});import{AlertTriangle as eV,CheckCircle2 as tV,Info as yg,X as rV,XCircle as oV}from"lucide-react";import{forwardRef as nV,useCallback as ia,useEffect as so,useRef as qi,useState as Qi}from"react";import{useSyncExternalStore as $P}from"react";var YP=5,fg=5000,XP=500,$i=0;function JP(){return $i=($i+1)%Number.MAX_SAFE_INTEGER,`toast-${$i}-${Date.now()}`}var Yi=new Set,qe=[],Er=new Map,jo=new Map,en=!1,Nr=new Map;function na(){for(let e of Yi)e()}function pg(){return qe}function qP(e){return Yi.add(e),()=>{Yi.delete(e)}}function Xi(e,t){if(en){Nr.set(e,t);return}clearTimeout(Er.get(e));let r=Date.now(),o=setTimeout(()=>{Er.delete(e),Nr.delete(e),aa(e)},t);Er.set(e,o),Nr.set(e,t);let n=setInterval(()=>{let i=Date.now()-r,s=t-i;if(s<=0)clearInterval(n),Nr.delete(e);else Nr.set(e,s)},100)}function QP(e){clearTimeout(jo.get(e));let t=go()?0:XP,r=setTimeout(()=>{qe=qe.filter((o)=>o.id!==e),jo.delete(e),na()},t);jo.set(e,r)}function gg(e){clearTimeout(Er.get(e)),Er.delete(e),Nr.delete(e)}function Zo(e){let t=e.id??JP(),r=e.duration===void 0?fg:e.duration;if(qe.find((i)=>i.id===t)){if(qe=qe.map((i)=>i.id===t?{...i,...e,id:t,open:!0,createdAt:Date.now()}:i),clearTimeout(jo.get(t)),jo.delete(t),gg(t),typeof r==="number")Xi(t,r);return na(),t}if(qe=[{...e,id:t,variant:e.variant??"default",dismissible:e.dismissible??!0,open:!0,createdAt:Date.now()},...qe].slice(0,YP),typeof r==="number")Xi(t,r);return na(),t}function aa(e){gg(e),qe=qe.map((t)=>t.id===e?{...t,open:!1}:t),na(),QP(e)}function bg(){for(let e of qe)aa(e.id)}function ZP(){if(en)return;en=!0;for(let[e,t]of Er)clearTimeout(t),Er.delete(e)}function jP(){if(!en)return;en=!1;for(let e of qe)if(e.open){if(e.duration===null)continue;let t=e.duration??fg,r=Nr.get(e.id)??t;Xi(e.id,r)}}var vg=Object.assign((e)=>Zo(e),{success:(e,t)=>Zo({...t,variant:"success",title:e}),info:(e,t)=>Zo({...t,variant:"info",title:e}),warning:(e,t)=>Zo({...t,variant:"warning",title:e}),error:(e,t)=>Zo({...t,variant:"error",title:e}),dismiss:aa,dismissAll:bg});function Ji(){return{toasts:$P(qP,pg,pg),toast:vg,dismiss:aa,dismissAll:bg,pauseAll:ZP,resumeAll:jP}}import{jsx as Oe,jsxs as hg}from"react/jsx-runtime";var Pg=10,Tg=0.05,aV=200,iV={"top-right":"top-4 right-4","top-left":"top-4 left-4","bottom-right":"bottom-4 right-4","bottom-left":"bottom-4 left-4","top-center":"top-4 left-1/2 -translate-x-1/2","bottom-center":"bottom-4 left-1/2 -translate-x-1/2"},sV={success:(e)=>Oe(tV,{className:a("mt-0.5 shrink-0 text-success",e==="sm"?"size-4":"size-[18px]")}),info:(e)=>Oe(yg,{className:a("mt-0.5 shrink-0 text-info",e==="sm"?"size-4":"size-[18px]")}),warning:(e)=>Oe(eV,{className:a("mt-0.5 shrink-0 text-warning",e==="sm"?"size-4":"size-[18px]")}),error:(e)=>Oe(oV,{className:a("mt-0.5 shrink-0 text-destructive",e==="sm"?"size-4":"size-[18px]")}),default:(e)=>Oe(yg,{className:a("mt-0.5 shrink-0 text-muted-foreground",e==="sm"?"size-4":"size-[18px]")})};function lV(e,t,r,o,n){let i=e<o,s=r?n:e*Pg,l=r?1:i?1-e*Tg:1-o*Tg,d=i||r?1:0,m=t-e;return{offset:s,scale:l,opacity:d,zIndex:m}}var Vg=nV(({position:e="bottom-right",gap:t=12,visibleCount:r=3,size:o=Je.sm,className:n,...i},s)=>{let{toasts:l,dismiss:d,pauseAll:m,resumeAll:c}=Ji(),u=ce(),g=f(o)??Je.md,[y,v]=Qi(!1),[T,M]=Qi({}),V=qi(null),p=qi(void 0),h=e.startsWith("bottom"),N=ia((w)=>{if(V.current=w,typeof s==="function")s(w);else if(s)s.current=w},[s]),C=ia(()=>{clearTimeout(p.current),v(!0),m()},[m]),H=ia(()=>{clearTimeout(p.current),p.current=setTimeout(()=>{v(!1),c()},u?0:aV)},[u,c]);so(()=>{return()=>clearTimeout(p.current)},[]);let S=ia((w,J)=>{M((E)=>{if(E[w]===J)return E;return{...E,[w]:J}})},[]);so(()=>{let w=new Set(l.map((J)=>J.id));M((J)=>{let E=!1,F={};for(let[b,P]of Object.entries(J))if(w.has(b))F[b]=P;else E=!0;return E?F:J})},[l]);let L=l.filter((w)=>w.open),U=new Map,G=0;for(let[w,J]of L.entries()){let E=T[J.id]??0;U.set(J.id,lV(w,L.length,y,r,G)),G+=E+t}let K=L[0],ie=(K?T[K.id]??0:0)+Math.min(L.length-1,r-1)*Pg,_=G-(L.length>0?t:0),re=y?_:ie;if(so(()=>{let w=V.current;if(!w)return;w.style.setProperty("--gs-toast-stack-height",`${Math.max(re,0)}px`)},[re]),l.length===0)return null;return Oe("ol",{ref:N,role:"region","aria-label":"Notifications",tabIndex:-1,onMouseEnter:C,onMouseLeave:H,className:a("pointer-events-auto fixed z-[100] h-[var(--gs-toast-stack-height,0px)] w-full max-w-[400px] outline-none transition-[height] duration-[var(--motion-duration-spring)] ease-[var(--motion-ease-emphasized)]",iV[e],n),...i,children:l.map((w)=>{let J=!w.open,E=U.get(w.id);return Oe(mV,{toast:w,layout:E??{offset:0,scale:1,opacity:0,zIndex:0},isClosed:J,isBottom:h,size:g,onDismiss:d,onMeasure:S,reducedMotion:u},w.id)})})});Vg.displayName="Toaster";function mV({toast:e,layout:t,isClosed:r,isBottom:o,size:n,onDismiss:i,onMeasure:s,reducedMotion:l}){let d=qi(null),[m,c]=Qi(!1);so(()=>{if(l){c(!0);return}let T=requestAnimationFrame(()=>c(!0));return()=>cancelAnimationFrame(T)},[l]),so(()=>{let T=d.current;if(!T)return;let M=new ResizeObserver((V)=>{for(let p of V){let h=p.borderBoxSize?.[0];if(h)s(e.id,h.blockSize)}});return M.observe(T),()=>M.disconnect()},[e.id,s]);let u=o?"bottom-0 left-0 right-0 origin-bottom":"top-0 left-0 right-0 origin-top",g,y,v;if(!m)g=`translateY(${o?80:-80}px) scale(0.9)`,y=0,v="false";else if(r)g=`translateY(${o?80:-80}px) scale(0.95)`,y=0,v="false";else g=`translateY(${o?-t.offset:t.offset}px) scale(${t.scale})`,y=t.opacity,v="true";return so(()=>{let T=d.current;if(!T)return;T.style.setProperty("--gs-toast-transform",g),T.style.setProperty("--gs-toast-opacity",`${y}`),T.style.setProperty("--gs-toast-z-index",`${t.zIndex}`)},[t.zIndex,y,g]),Oe("li",{ref:d,"data-state":e.open?"open":"closed","data-variant":e.variant,"data-interactive":v,className:a("absolute list-none transition-[transform,opacity] duration-[var(--motion-duration-spring)] ease-[var(--motion-ease-emphasized)] [opacity:var(--gs-toast-opacity,0)] [transform:var(--gs-toast-transform)] [z-index:var(--gs-toast-z-index,0)]","data-[interactive=false]:pointer-events-none data-[interactive=true]:pointer-events-auto",u),children:hg("div",{className:a(Ui({variant:e.variant,size:n}),"w-full"),children:[sV[e.variant]?.(n),hg("div",{className:"flex-1 space-y-0.5",children:[e.title&&Oe("p",{className:a("font-semibold leading-tight",n==="sm"?"text-xs":"text-sm"),children:e.title}),e.description&&Oe("p",{className:a("text-muted-foreground leading-snug",n==="sm"?"text-xs":"text-sm"),children:e.description})]}),e.action&&Oe("button",{type:"button",className:a(Ki({size:n}),"mt-0.5"),onClick:e.action.onClick,"aria-label":e.action.altText,children:e.action.label}),e.dismissible!==!1&&Oe("button",{type:"button",className:a("mt-0.5 shrink-0 rounded-[var(--radius)] p-1 text-muted-foreground transition-[color,background-color,border-color,box-shadow,transform,opacity,filter] duration-[var(--motion-duration-medium)] ease-[var(--motion-ease-standard)] hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",n==="sm"?"[&>svg]:size-3.5":"[&>svg]:size-4"),onClick:()=>i(e.id),"aria-label":"Dismiss",children:Oe(rV,{})})]})})}import*as Mg from"@radix-ui/react-toggle";import{cva as dV}from"class-variance-authority";import{forwardRef as uV}from"react";import{jsx as cV}from"react/jsx-runtime";var Zi={default:"default",outline:"outline"},sa={sm:"sm",md:"md",lg:"lg"},la=dV("transition-[color,background-color,border-color,box-shadow,transform,opacity,filter] duration-[var(--motion-duration-medium)] ease-[var(--motion-ease-standard)] inline-flex items-center justify-center gap-2 rounded-[var(--radius)] border border-transparent text-sm font-medium outline-none transition-[color,background-color,border-color] duration-150 hover:bg-muted hover:text-muted-foreground focus-visible:border-primary disabled:cursor-not-allowed disabled:pointer-events-none data-[state=on]:bg-accent data-[state=on]:text-accent-foreground [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{[Zi.default]:"bg-transparent disabled:bg-transparent disabled:text-foreground/50",[Zi.outline]:"border-input bg-transparent hover:bg-accent hover:text-accent-foreground disabled:bg-transparent disabled:text-foreground/50 disabled:border-border/50"},size:{[sa.sm]:"h-7 px-1.5 min-w-7 text-xs",[sa.md]:"h-10 px-3 min-w-10",[sa.lg]:"h-11 px-5 min-w-11"}},defaultVariants:{variant:Zi.default,size:sa.sm}}),zg=uV(({className:e,variant:t,size:r,...o},n)=>{let i=f(r);return cV(Mg.Root,{ref:n,className:a(la({variant:t,size:i}),e),...o})});zg.displayName="Toggle";import*as ma from"@radix-ui/react-toggle-group";import{cva as pV}from"class-variance-authority";import{createContext as fV,forwardRef as Ng,useContext as gV}from"react";import{jsx as ji}from"react/jsx-runtime";var bV={default:"default",outline:"outline"},vV={sm:"sm",md:"md",lg:"lg"},Eg=pV("flex items-center justify-center gap-1"),Lg=fV({size:vV.sm,variant:bV.default}),Rg=Ng(({className:e,variant:t,size:r,children:o,...n},i)=>{let s=f(r);return ji(ma.Root,{ref:i,className:a(Eg(),e),...n,children:ji(Lg.Provider,{value:{variant:t,size:s},children:o})})});Rg.displayName="ToggleGroup";var xg=Ng(({className:e,children:t,variant:r,size:o,...n},i)=>{let s=gV(Lg),l=f(o);return ji(ma.Item,{ref:i,className:a(la({variant:r??s.variant,size:l??s.size}),e),...n,children:t})});xg.displayName="ToggleGroupItem";import{cva as Cg}from"class-variance-authority";import{forwardRef as da}from"react";import{jsx as ua}from"react/jsx-runtime";var lt={sm:"sm",md:"md",lg:"lg"},wg=Cg("flex items-center border-b border-border bg-secondary",{variants:{size:{[lt.sm]:"gap-1.5 px-3 py-1.5",[lt.md]:"gap-2 px-4 py-2",[lt.lg]:"gap-3 px-5 py-2.5"}},defaultVariants:{size:lt.sm}}),Hg=da(({className:e,size:t=lt.sm,...r},o)=>{let n=f(t);return ua("div",{ref:o,role:"toolbar",className:a(wg({size:n}),e),...r})});Hg.displayName="Toolbar";var kg=Cg("flex items-center",{variants:{size:{[lt.sm]:"gap-1",[lt.md]:"gap-1.5",[lt.lg]:"gap-2"}},defaultVariants:{size:lt.sm}}),Sg=da(({className:e,size:t=lt.sm,...r},o)=>{let n=f(t);return ua("div",{ref:o,role:"group",className:a(kg({size:n}),e),...r})});Sg.displayName="ToolbarGroup";var Dg=da(({className:e,...t},r)=>{return ua("div",{ref:r,role:"none",className:a("h-5 w-px shrink-0 bg-border",e),...t})});Dg.displayName="ToolbarSeparator";var Ag=da(({className:e,...t},r)=>{return ua("div",{ref:r,className:a("flex-1",e),...t})});Ag.displayName="ToolbarSpacer";import*as Pt from"@radix-ui/react-tooltip";import{cva as yV}from"class-variance-authority";import{createContext as TV,forwardRef as Bg,useContext as Ig}from"react";import{jsx as mo}from"react/jsx-runtime";var Fg=({delayDuration:e,skipDelayDuration:t,...r})=>{let o=ce();return mo(Pt.Provider,{delayDuration:o?0:e,skipDelayDuration:o?0:t,...r})};Fg.displayName="TooltipProvider";var es=TV(!1),Og=({persistOnClick:e=!1,children:t,delayDuration:r,...o})=>{let n=ce();return mo(es.Provider,{value:e,children:mo(Pt.Root,{delayDuration:n?0:r,...o,children:t})})};Og.displayName="Tooltip";var Gg=Bg(({onClick:e,onPointerDown:t,...r},o)=>{let n=Ig(es);return mo(Pt.Trigger,{ref:o,onClick:n?(i)=>{i.preventDefault(),e?.(i)}:e,onPointerDown:n?(i)=>{i.preventDefault(),t?.(i)}:t,...r})});Gg.displayName="TooltipTrigger";var lo={sm:A.sm,md:A.md,lg:A.lg},Wg=yV("z-50 overflow-hidden rounded-[var(--radius)] border border-primary/20 bg-primary text-primary-foreground shadow-[var(--shadow-md)] gs-float-content origin-[var(--radix-tooltip-content-transform-origin)]",{variants:{size:{[lo.sm]:"px-2 py-1 text-xs",[lo.md]:"px-3 py-1.5 text-xs",[lo.lg]:"px-4 py-2 text-sm"}},defaultVariants:{size:lo.md}}),_g=Bg(({className:e,sideOffset:t=Ze,onPointerDownOutside:r,size:o=lo.sm,portal:n=se,portalContainer:i,...s},l)=>{let d=Ig(es),m=f(o),c=mo(Pt.Content,{ref:l,sideOffset:t,className:a(Wg({size:m}),e),onPointerDownOutside:d?(u)=>{u.preventDefault(),r?.(u)}:r,...s});if(!n)return c;return mo(Pt.Portal,{container:i??void 0,children:c})});_g.displayName="TooltipContent";import{createContext as hV,useCallback as rr,useContext as PV,useEffect as tn,useInsertionEffect as VV,useLayoutEffect as MV,useMemo as ca,useRef as or,useState as Ug}from"react";import{jsx as EV}from"react/jsx-runtime";var zV=typeof window<"u"?MV:tn,NV=typeof window<"u"?VV:tn,rs=hV(null);function pa(e,t){return e.theme===t.theme&&e.colorScheme===t.colorScheme}var Lr=({children:e,value:t,initialState:r,onChange:o,onStateChange:n,transformState:i,readState:s,writeState:l,syncWithSystem:d=!0,enableTransition:m=!1,transitionDuration:c,defaultTheme:u,defaultColorScheme:g,themes:y,attribute:v,colorSchemeAttribute:T,darkClassName:M,storage:V})=>{let p=ca(()=>uo({defaultTheme:u,defaultColorScheme:g,themes:y,attribute:v,colorSchemeAttribute:T,darkClassName:M,storage:V}),[u,g,y,v,T,M,V]),[h,N]=Ug(()=>Vt(typeof window<"u"?fa(p)??r:r,p)),[C,H]=Ug(ya),L=ca(()=>t?Vt(t,p):null,[t,p])??h,U=ca(()=>({...L,resolvedColorScheme:ts(L.colorScheme,C)}),[L,C]),G=t!==void 0,K=or(L);K.current=L;let Z=or(!1),ie=or(!1),_=or(!1),re=or(L),w=or(null),J=or(m);J.current=m;let E=or(c);E.current=c;let F=rr((W)=>{return ba(W)},[]),b=rr((W)=>{return fa(W)},[]),P=rr((W,le)=>{va(W,le)},[]),R=s??F,oe=l??P;tn(()=>{if(!d||typeof window>"u"||typeof window.matchMedia!=="function")return;let W=window.matchMedia("(prefers-color-scheme: dark)"),le=()=>{H(W.matches?Mt.dark:Mt.light)};return le(),W.addEventListener("change",le),()=>W.removeEventListener("change",le)},[d]),tn(()=>{if(G)return;N((W)=>{let le=Vt(W,p);return pa(W,le)?W:le})},[p,G]),zV(()=>{if(G||Z.current)return;Z.current=!0;let W=R(p)??b(p);if(!W)return;let le=K.current,Te=Vt(W,p),pe={reason:"hydrate",previousState:le},Be=i?Vt(i(Te,pe),p):Te;if(pa(le,Be))return;w.current=pe,N(Be),o?.(Be,pe),n?.(Be,pe)},[p,G,o,n,b,R,i]),NV(()=>{if(typeof document>"u")return;let W=!_.current;if(_.current=!0,!W&&J.current&&!go()&&typeof document.startViewTransition==="function"){let Te=E.current??200,pe=document.createElement("style");return pe.setAttribute("data-gs-theme-transition",""),pe.textContent=`::view-transition-old(root), ::view-transition-new(root) { animation-duration: ${Te}ms; }`,document.head.appendChild(pe),document.startViewTransition(()=>{ga(document.documentElement,U,p)}).finished.then(()=>pe.remove(),()=>pe.remove()),()=>{pe.remove()}}ga(document.documentElement,U,p);return},[p,U]),tn(()=>{if(typeof window>"u")return;if(!ie.current){ie.current=!0,re.current=L;return}let W=re.current;if(pa(W,L))return;let le=w.current??{reason:"set-state",previousState:W};w.current=null,oe(L,p,le),re.current=L},[p,L,oe]);let O=rr((W,le)=>{let Te=K.current,pe=typeof W==="function"?W(Te):W,Be=Vt({theme:pe.theme??Te.theme,colorScheme:pe.colorScheme??Te.colorScheme},p),mt={reason:le,previousState:Te},k=i?Vt(i(Be,mt),p):Be;if(pa(Te,k))return;if(w.current=mt,!G)N(k);o?.(k,mt),n?.(k,mt)},[p,G,o,n,i]),Ne=rr((W)=>{O(W,"set-state")},[O]),I=rr((W)=>{O({theme:W},"set-theme")},[O]),ae=rr((W)=>{O({colorScheme:W},"set-color-scheme")},[O]),zt=rr(()=>{let W=U.resolvedColorScheme===Mt.dark?Mt.light:Mt.dark;O({colorScheme:W},"toggle-color-scheme")},[U.resolvedColorScheme,O]),Qe=ca(()=>({theme:L.theme,colorScheme:L.colorScheme,resolvedColorScheme:U.resolvedColorScheme,state:L,resolvedState:U,contract:p,themes:p.themes,setTheme:I,setColorScheme:ae,setState:Ne,toggleColorScheme:zt}),[L,U,p,I,ae,Ne,zt]);return EV(rs.Provider,{value:Qe,children:e})};Lr.displayName="ThemeProvider";var Ta=()=>{let e=PV(rs);if(!e)throw Error("useTheme must be used within a ThemeProvider");return e};import{jsx as ha}from"react/jsx-runtime";function Va(e){return typeof e==="object"&&e!==null}function Dt(e){return typeof e==="string"&&e.trim().length>0}function Kg(e){if(!Va(e))return!1;return Object.values(e).every(Dt)}function Yg(e){if(!Va(e))return!1;if(!Kg(e.light))return!1;if(e.dark===void 0)return!0;return Kg(e.dark)}function Xg(e){return Va(e)&&Dt(e.cssText)}function LV(e){return Va(e)&&Dt(e.theme)}function os(e){return Error(`Invalid theme registry definition: ${e}`)}function $g(e){let t=new Set,r=[];for(let o of e){if(!Dt(o)||t.has(o))continue;t.add(o),r.push(o)}return r}function RV(e){return e.filter(Dt).join(`
|
|
5
5
|
|
|
6
|
-
`)}function $P(e){let t=[],r=[],o=[];for(let[n,i]of Object.entries(e)){if(!It(n))continue;if(t.push(n),It(i)){o.push(i);continue}if(Mg(i)){o.push(i.cssText);continue}if(Pg(i)){r.push({theme:n,light:i.light,dark:i.dark});continue}throw $i(`record key "${n}" has unsupported value shape`)}return{themeNames:t,tokenDefinitions:r,cssBlocks:o}}function VP(e){let t=[],r=[],o=[];for(let n of e){if(It(n)){t.push(n);continue}if(!UP(n))throw $i("array entry must be a theme name or an object with `theme`");let i=n.theme;if(t.push(i),Mg(n)){o.push(n.cssText);continue}if(Pg(n)){r.push({theme:i,light:n.light,dark:n.dark});continue}throw $i(`array entry "${i}" has unsupported value shape`)}return{themeNames:t,tokenDefinitions:r,cssBlocks:o}}function YP(e){if(Array.isArray(e))return VP(e);return $P(e)}function zg(e){return e}function Vi(e){let{themes:t,cssText:r,...o}=e,n=YP(t),i=hg(n.themeNames),s=bo({...o,themes:i}),l=ha({themes:n.tokenDefinitions,attribute:s.attribute,darkClassName:s.darkClassName}),d=KP([l,...n.cssBlocks,r??""]),m=hg(s.themes);if(m.length===0)m.push(s.defaultTheme);return{defaultTheme:s.defaultTheme,themes:m,cssText:d,contract:s}}function Ma({registry:e,children:t,...r}){return Ta(Hr,{defaultTheme:e.defaultTheme,themes:e.themes,attribute:e.contract.attribute,colorSchemeAttribute:e.contract.colorSchemeAttribute,darkClassName:e.contract.darkClassName,storage:e.contract.storage,...r,children:t},void 0,!1,void 0,this)}Ma.displayName="ThemeRegistryProvider";function za({registry:e,id:t,nonce:r,media:o}){if(!It(e.cssText))return null;return Ta("style",{id:t,nonce:r,media:o,children:e.cssText},void 0,!1,void 0,this)}za.displayName="ThemeStyles";function Ng(e){let t=Vi(e),{themes:r,cssText:o,...n}=e;return{registry:t,provider:({children:d,...m})=>{return Ta(Ma,{registry:t,...n,...m,children:d},void 0,!1,void 0,this)},styles:(d={})=>{return Ta(za,{registry:t,...d},void 0,!1,void 0,this)},useTheme:()=>{let d=va(),m=(g)=>{return t.themes.some((v)=>v===g)},c=(g)=>{return m(g)?g:t.defaultTheme},u=(g)=>{if(typeof g==="function"){d.setState((v)=>{let y={...v,theme:c(v.theme)},T=g(y);return{theme:c(T.theme??y.theme),colorScheme:T.colorScheme??y.colorScheme}});return}d.setState({theme:c(g.theme??d.state.theme),colorScheme:g.colorScheme??d.state.colorScheme})};return{...d,theme:c(d.theme),state:{...d.state,theme:c(d.state.theme)},resolvedState:{...d.resolvedState,theme:c(d.resolvedState.theme)},themes:t.themes,setTheme:(g)=>{d.setTheme(g)},setState:u}}}}import{jsxDEV as XP}from"react/jsx-dev-runtime";var Og="ghostly-solutions",Gg=Nt.system;function Wg({children:e,defaultTheme:t=Og,defaultColorScheme:r=Gg,...o}){return XP(Hr,{defaultTheme:t,defaultColorScheme:r,...o,children:e},void 0,!1,void 0,this)}Wg.displayName="UIProvider";import*as ar from"react";var JP=()=>{};function qP({prop:e,defaultProp:t,onChange:r=JP}){let[o,n]=QP({defaultProp:t,onChange:r}),i=e!==void 0,s=i?e:o,l=ar.useCallback((d)=>{if(i){let c=typeof d==="function"?d(e):d;if(c!==e)r(c)}else n(d)},[i,e,n,r]);return[s,l]}function QP({defaultProp:e,onChange:t}){let r=ar.useState(e),[o]=r,n=ar.useRef(o),i=t;return ar.useEffect(()=>{if(n.current!==o)i?.(o),n.current=o},[o,i]),r}export{ba as writeThemeStateToBrowserStorage,Ii as useToast,va as useTheme,ge as useReducedMotion,Bo as usePlatform,qT as useOverlay,xo as useHotkey,So as useFormField,f as useDensitySize,Kg as useDensity,qP as useControllableState,kt as useComposedRefs,Cy as useCommandShortcut,Tn as useCommand,Eb as useBreadcrumbStore,bg as tooltipContentVariants,ag as toolbarVariants,sg as toolbarGroupVariants,sa as toggleVariants,eg as toggleGroupVariants,Hi as toastVariants,ki as toastActionVariants,Xf as toast,Lf as timelineVariants,Hf as timelineTitleVariants,Sf as timelineTimeVariants,Rf as timelineItemVariants,Cf as timelineDotVariants,kf as timelineDescriptionVariants,wf as timelineContentVariants,xf as timelineConnectorVariants,zf as textareaVariants,vf as tabsTriggerVariants,yf as tabsListVariants,Tf as tabsContentVariants,jp as tableVariants,of as tableRowVariants,ef as tableHeaderVariants,nf as tableHeadVariants,rf as tableFooterVariants,Dp as tableContainerVariants,af as tableCellVariants,sf as tableCaptionVariants,tf as tableBodyVariants,Qp as switchVariants,Bp as stepperVariants,Ip as stepVariants,Wp as stepTitleVariants,Fp as stepIndicatorVariants,_p as stepDescriptionVariants,Gp as stepContentVariants,Op as stepConnectorVariants,Dn as spotlightStatusVariants,jn as spotlightStatusTitleVariants,Hp as spotlightStatusDescriptionVariants,wp as spotlightShortcutVariants,Mp as spotlightResultsVariants,yp as spotlightPanelVariants,bp as spotlightOverlayVariants,Np as spotlightOptionVariants,xp as spotlightOptionTitleVariants,Lp as spotlightOptionIconVariants,Cp as spotlightOptionDescriptionVariants,Rp as spotlightOptionContentVariants,hp as spotlightInputVariants,Pp as spotlightIconVariants,Tp as spotlightHeaderVariants,zp as spotlightGroupLabelVariants,vp as spotlightDrawerPanelVariants,mp as sliderVariants,dp as sliderTrackVariants,cp as sliderThumbVariants,up as sliderRangeVariants,rp as skeletonVariants,op as skeletonTextVariants,ap as skeletonButtonVariants,np as skeletonAvatarVariants,Bu as sheetOverlayVariants,Iu as sheetContentVariants,db as setReducedMotion,Sg as serializeThemeState,Wa as serializeBreadcrumbItems,ep as separatorVariants,Jc as selectTriggerVariants,qc as selectContentVariants,Fc as segmentedControlVariants,Gc as segmentedControlLabelVariants,Oc as segmentedControlItemVariants,Hc as scrollBarVariants,kc as scrollBarThumbVariants,wc as scrollAreaVariants,Bg as resolveThemeState,hc as resizablePanelVariants,Tc as resizablePanelGroupVariants,Pc as resizableHandleVariants,Mc as resizableHandleIconVariants,ga as readThemeStateFromBrowserStorage,gs as readStoredReducedMotion,uc as radioItemVariants,dc as radioGroupVariants,ac as progressVariants,ic as progressIndicatorVariants,Dr as popoverContentVariants,Ag as parseThemeState,Va as parseHotkey,Ju as paginationVariants,Bn as paginationLinkVariants,Qu as paginationItemVariants,Zu as paginationEllipsisVariants,qu as paginationContentVariants,xu as otpSlotVariants,Hu as otpSeparatorVariants,wu as otpPlaceholderVariants,Cu as otpInputVariants,Ru as otpGroupVariants,Lu as otpContainerVariants,zt as normalizeThemeState,Ga as normalizeBreadcrumbItems,pu as navigationMenuViewportVariants,lu as navigationMenuVariants,du as navigationMenuTriggerVariants,mu as navigationMenuListVariants,cu as navigationMenuLinkVariants,fu as navigationMenuIndicatorVariants,uu as navigationMenuContentVariants,Yd as navbarVariants,Qd as navbarLinkVariants,qd as navbarItemVariants,Ed as navbarDividerVariants,Jd as navbarContentVariants,Xd as navbarBrandVariants,Zd as navbarActionsVariants,$d as multiselectTriggerVariants,kp as matchesQuery,Ya as matchHotkey,Od as labelVariants,Qr as kbdVariants,Wr as isSameDay,kd as inputVariants,ys as hydrateReducedMotion,xd as hoverCardContentVariants,i0 as hotkey,Ig as getThemeRootProps,ya as getSystemColorScheme,ea as formatHotkeyTokens,Cn as formatHotkey,hd as formFieldVariants,ld as fileUploadVariants,ri as fileUploadTextVariants,dd as fileUploadListVariants,ud as fileUploadItemVariants,pd as fileUploadItemSizeVariants,fd as fileUploadItemRemoveVariants,cd as fileUploadItemNameVariants,md as fileUploadIconVariants,ed as errorBoundaryVariants,rd as errorBoundaryTitleVariants,td as errorBoundaryIconVariants,ad as errorBoundaryDetailsVariants,od as errorBoundaryDescriptionVariants,nd as errorBoundaryActionsVariants,Jm as emptyStateVariants,Qm as emptyStateTitleVariants,qm as emptyStateIconVariants,Zm as emptyStateDescriptionVariants,Em as emptyStateActionsVariants,Fm as dropdownMenuShortcutVariants,Im as dropdownMenuSeparatorVariants,Am as dropdownMenuRadioItemVariants,Bm as dropdownMenuLabelVariants,ti as dropdownMenuItemVariants,ei as dropdownMenuContentVariants,Sm as dropdownMenuCheckboxItemVariants,Nm as drawerOverlayVariants,Ea as drawerHandleVariants,Lm as drawerContentVariants,vm as dialogContentVariants,ni as detectPlatform,zg as defineThemes,D1 as cva,ha as createThemesCss,Ng as createThemeSystem,Vi as createThemeRegistry,Fg as createThemeCss,bo as createThemeContract,m0 as createOptionalContext,l0 as createContext,nm as contextMenuShortcutVariants,om as contextMenuSeparatorVariants,tm as contextMenuRadioItemVariants,rm as contextMenuLabelVariants,Qa as contextMenuItemVariants,qa as contextMenuContentVariants,em as contextMenuCheckboxItemVariants,s0 as composeRefs,_l as commandShortcutVariants,Wl as commandSeparatorVariants,Sl as commandOverlayVariants,Ul as commandLoadingVariants,Bl as commandListVariants,Gl as commandItemVariants,Al as commandInputVariants,Fl as commandGroupVariants,Ol as commandGroupHeadingVariants,Il as commandEmptyVariants,kl as commandDialogVariants,xl as collapsibleContentVariants,_a as collapseBreadcrumbItems,vl as codeBlockVariants,zl as codeBlockPreVariants,Nl as codeBlockLineVariants,Ll as codeBlockLineNumberVariants,hl as codeBlockLanguageVariants,Tl as codeBlockHeaderVariants,Pl as codeBlockCopyVariants,Ml as codeBlockContentVariants,a as cn,gl as checkboxVariants,sl as cardVariants,nl as calendarWeekdayVariants,el as calendarVariants,rl as calendarTitleVariants,Ka as calendarNavButtonVariants,tl as calendarHeaderVariants,ol as calendarGridVariants,al as calendarDayVariants,To as buttonVariants,is as buttonIconVariants,Qs as buttonGroupVariants,ss as buttonBadgeVariants,Ys as breadcrumbSeparatorVariants,Vs as breadcrumbPageVariants,Us as breadcrumbListVariants,$s as breadcrumbLinkVariants,Ks as breadcrumbItemVariants,Xs as breadcrumbEllipsisVariants,Os as badgeVariants,As as avatarVariants,ks as aspectRatioVariants,ji as alertVariants,es as alertTitleVariants,hs as alertDialogOverlayVariants,Ps as alertDialogContentVariants,ts as alertDescriptionVariants,Ji as accordionTriggerVariants,Xi as accordionItemVariants,qi as accordionContentVariants,Qg as XCircleIcon,EP as Variant,Og as UI_DEFAULT_THEME,Gg as UI_DEFAULT_COLOR_SCHEME,Wg as UIProvider,gg as TooltipTrigger,fo as TooltipSize,pg as TooltipProvider,yg as TooltipContent,fg as Tooltip,dg as ToolbarSpacer,ut as ToolbarSize,mg as ToolbarSeparator,lg as ToolbarGroup,ig as Toolbar,og as ToggleGroupItem,rg as ToggleGroup,Df as Toggle,Zf as Toaster,tt as ToastSize,Gf as TimelineTitle,_f as TimelineTime,Bf as TimelineItem,Ff as TimelineDot,Wf as TimelineDescription,Of as TimelineContent,If as TimelineConnector,Af as Timeline,za as ThemeStyles,Ma as ThemeRegistryProvider,Hr as ThemeProvider,a0 as ThemeColorScheme,Nf as Textarea,Pf as TabsTrigger,hf as TabsList,Mf as TabsContent,eP as Tabs,Ie as TableSize,cf as TableRow,mf as TableHeader,pf as TableHead,uf as TableFooter,ff as TableCell,gf as TableCaption,df as TableBody,lf as Table,Rg as THEME_COLOR_SCHEME_ATTR,Lg as THEME_ATTR,xr as SwitchStatus,et as SwitchSize,Zp as Switch,t0 as SurfaceStyle,Up as Stepper,Xp as StepTitle,$p as StepIndicator,Jp as StepDescription,Yp as StepContent,Vp as StepConnector,Kp as Step,DP as Status,En as SpotlightStatus,w as SpotlightSize,Sp as Spotlight,vo as SpinnerSize,Ot as Spinner,pp as Slider,ip as SkeletonText,Me as SkeletonSize,lp as SkeletonButton,sp as SkeletonAvatar,qo as Skeleton,F as Size,oo as Side,WT as SheetTrigger,_u as SheetTitle,he as SheetSize,Ou as SheetPortal,di as SheetOverlay,Gu as SheetHeader,Wu as SheetFooter,Uu as SheetDescription,Sn as SheetContent,_T as SheetClose,mi as Sheet,Db as SetBreadcrumbs,Jo as SeparatorOrientation,tp as Separator,kh as SelectValue,Qc as SelectTrigger,lo as SelectStatus,fe as SelectSize,jc as SelectSeparator,Ec as SelectLabel,Dc as SelectItem,Hh as SelectGroup,Yo as SelectContentWidthMode,Lh as SelectContentAlign,Zc as SelectContent,wh as Select,vh as SegmentedControlSize,Kc as SegmentedControlLabelItem,Uc as SegmentedControlItem,_c as SegmentedControl,fi as ScrollBar,Sc as ScrollArea,Cg as STORAGE_VERSION,Hg as STORAGE_THEME_STATE_KEY,wg as STORAGE_PREFIX,kg as STORAGE_DENSITY_KEY,Lc as ResizablePanelGroup,Rc as ResizablePanel,xc as ResizableHandle,zr as RadioStatus,At as RadioSize,pc as RadioGroupItem,cc as RadioGroup,Sa as REDUCED_MOTION_STORAGE_KEY,ka as REDUCED_MOTION_QUERY,sr as REDUCED_MOTION_COMPAT_ATTRIBUTE,Ar as REDUCED_MOTION_ATTRIBUTE,sc as Progress,rT as PopoverTrigger,Er as PopoverSize,Ud as PopoverContent,nT as PopoverClose,oT as PopoverAnchor,tT as Popover,je as PaginationSize,tc as PaginationPrevious,rc as PaginationNext,ec as PaginationLink,ju as PaginationItem,oc as PaginationEllipsis,Du as PaginationContent,Eu as Pagination,Xu as OverlayProvider,o0 as Orientation,Yu as OVERLAY_REMOVE_DELAY_DEFAULT,ku as OTPInput,si as NavigationMenuViewport,vu as NavigationMenuTrigger,lt as NavigationMenuSize,bu as NavigationMenuList,hu as NavigationMenuLink,yu as NavigationMenuItem,Pu as NavigationMenuIndicator,Tu as NavigationMenuContent,gu as NavigationMenu,nu as NavbarLink,ou as NavbarItem,iu as NavbarDivider,ru as NavbarContent,tu as NavbarBrand,au as NavbarActions,eu as Navbar,te as MultiselectSize,Vd as Multiselect,e0 as MotionLevel,Wd as Loader,Zr as LabelSize,Gd as Label,_g as Key,qr as KbdSize,Id as Kbd,Sd as Input,qg as InfoIcon,Sr as IconSize,wv as HoverCardTrigger,Jr as HoverCardSize,wd as HoverCardContent,Cd as HoverCard,ZP as HotkeyModifierKey,_g as HotkeyKey,Ro as GroupOrientation,Ze as FormFieldSize,Md as FormFieldLabel,Ld as FormFieldError,Nd as FormFieldDescription,Rd as FormFieldControl,Pd as FormField,gd as FileUpload,id as ErrorBoundary,Dm as EmptyState,r0 as EmphasisLevel,mv as DropdownMenuTrigger,Gm as DropdownMenuSubTrigger,Wm as DropdownMenuSubContent,cv as DropdownMenuSub,Xm as DropdownMenuShortcut,Ym as DropdownMenuSeparator,$m as DropdownMenuRadioItem,pv as DropdownMenuRadioGroup,uv as DropdownMenuPortal,Vm as DropdownMenuLabel,Rn as DropdownMenuItemVariant,Um as DropdownMenuItem,dv as DropdownMenuGroup,_m as DropdownMenuContent,Km as DropdownMenuCheckboxItem,lv as DropdownMenu,ev as DrawerTrigger,Hm as DrawerTitle,bt as DrawerSize,Rm as DrawerPortal,ja as DrawerOverlay,Cm as DrawerHeader,wm as DrawerFooter,km as DrawerDescription,xm as DrawerContent,tv as DrawerClose,jy as Drawer,Jy as DialogTrigger,Nn as DialogTitle,pr as DialogSize,Mn as DialogPortal,wo as DialogOverlay,Tm as DialogHeader,hm as DialogFooter,Pm as DialogDescription,Za as DialogContentPrimitive,zn as DialogContent,qy as DialogClose,Co as Dialog,jP as Density,Ug as DENSITY_DEFAULT,ib as DEMO_REDUCED_MOTION_ATTRIBUTE,xg as DARK_CLASS,Iy as ContextMenuTrigger,sm as ContextMenuSubTrigger,lm as ContextMenuSubContent,Gy as ContextMenuSub,gm as ContextMenuShortcut,fm as ContextMenuSeparator,cm as ContextMenuRadioItem,Wy as ContextMenuRadioGroup,Oy as ContextMenuPortal,pm as ContextMenuLabel,hn as ContextMenuItemVariant,dm as ContextMenuItem,Fy as ContextMenuGroup,mm as ContextMenuContent,um as ContextMenuCheckboxItem,im as ContextMenu,Zl as CommandShortcut,Ql as CommandSeparator,El as CommandLoading,Yl as CommandList,vn as CommandItemVariant,ql as CommandItem,Vl as CommandInput,Jl as CommandGroup,Xl as CommandEmpty,$l as CommandDialog,Ja as Command,Nt as ColorScheme,Ty as CollapsibleTrigger,Cl as CollapsibleContent,vy as Collapsible,Rl as CodeBlock,$r as CheckboxStatus,wt as CheckboxSize,bl as Checkbox,Jg as CheckCircleIcon,cl as CardTitle,ml as CardHeader,ul as CardFooter,pl as CardDescription,dl as CardContent,ll as Card,il as Calendar,ms as ButtonLabel,ls as ButtonIcon,Zs as ButtonGroup,ds as ButtonBadge,us as Button,Zb as BreadcrumbStoreProvider,ye as BreadcrumbSize,Lo as BreadcrumbSeparator,un as BreadcrumbPage,dn as BreadcrumbList,No as BreadcrumbLink,zo as BreadcrumbItem,cn as BreadcrumbEllipsis,jb as BreadcrumbDisplay,mn as Breadcrumb,we as BadgeVariant,Gt as BadgeTone,_t as BadgeSize,_s as BadgeGroup,Po as Badge,ey as BREADCRUMB_DEFAULT_COLLAPSE_CONFIG,ft as AvatarSize,Bs as AvatarImage,Is as AvatarGroup,Fa as AvatarFallback,Ia as Avatar,Ss as AspectRatio,n0 as Align,Xg as AlertTriangleIcon,os as AlertTitle,Tb as AlertDialogTrigger,xs as AlertDialogTitle,lr as AlertDialogSize,zs as AlertDialogPortal,Aa as AlertDialogOverlay,Ls as AlertDialogHeader,Rs as AlertDialogFooter,Cs as AlertDialogDescription,Ns as AlertDialogContent,Hs as AlertDialogCancel,ws as AlertDialogAction,vb as AlertDialog,ns as AlertDescription,rs as Alert,Ei as AccordionTrigger,Fe as AccordionSize,Zi as AccordionItem,Di as AccordionContent,Qi as Accordion};
|
|
6
|
+
`)}function xV(e){let t=[],r=[],o=[];for(let[n,i]of Object.entries(e)){if(!Dt(n))continue;if(t.push(n),Dt(i)){o.push(i);continue}if(Xg(i)){o.push(i.cssText);continue}if(Yg(i)){r.push({theme:n,light:i.light,dark:i.dark});continue}throw os(`record key "${n}" has unsupported value shape`)}return{themeNames:t,tokenDefinitions:r,cssBlocks:o}}function CV(e){let t=[],r=[],o=[];for(let n of e){if(Dt(n)){t.push(n);continue}if(!LV(n))throw os("array entry must be a theme name or an object with `theme`");let i=n.theme;if(t.push(i),Xg(n)){o.push(n.cssText);continue}if(Yg(n)){r.push({theme:i,light:n.light,dark:n.dark});continue}throw os(`array entry "${i}" has unsupported value shape`)}return{themeNames:t,tokenDefinitions:r,cssBlocks:o}}function wV(e){if(Array.isArray(e))return CV(e);return xV(e)}function Jg(e){return e}function ns(e){let{themes:t,cssText:r,...o}=e,n=wV(t),i=$g(n.themeNames),s=uo({...o,themes:i}),l=Pa({themes:n.tokenDefinitions,attribute:s.attribute,darkClassName:s.darkClassName}),d=RV([l,...n.cssBlocks,r??""]),m=$g(s.themes);if(m.length===0)m.push(s.defaultTheme);return{defaultTheme:s.defaultTheme,themes:m,cssText:d,contract:s}}function Ma({registry:e,children:t,...r}){return ha(Lr,{defaultTheme:e.defaultTheme,themes:e.themes,attribute:e.contract.attribute,colorSchemeAttribute:e.contract.colorSchemeAttribute,darkClassName:e.contract.darkClassName,storage:e.contract.storage,...r,children:t})}Ma.displayName="ThemeRegistryProvider";function za({registry:e,id:t,nonce:r,media:o}){if(!Dt(e.cssText))return null;return ha("style",{id:t,nonce:r,media:o,children:e.cssText})}za.displayName="ThemeStyles";function qg(e){let t=ns(e),{themes:r,cssText:o,...n}=e;return{registry:t,provider:({children:d,...m})=>{return ha(Ma,{registry:t,...n,...m,children:d})},styles:(d={})=>{return ha(za,{registry:t,...d})},useTheme:()=>{let d=Ta(),m=(g)=>{return t.themes.some((y)=>y===g)},c=(g)=>{return m(g)?g:t.defaultTheme},u=(g)=>{if(typeof g==="function"){d.setState((y)=>{let v={...y,theme:c(y.theme)},T=g(v);return{theme:c(T.theme??v.theme),colorScheme:T.colorScheme??v.colorScheme}});return}d.setState({theme:c(g.theme??d.state.theme),colorScheme:g.colorScheme??d.state.colorScheme})};return{...d,theme:c(d.theme),state:{...d.state,theme:c(d.state.theme)},resolvedState:{...d.resolvedState,theme:c(d.resolvedState.theme)},themes:t.themes,setTheme:(g)=>{d.setTheme(g)},setState:u}}}}import{jsx as HV}from"react/jsx-runtime";var mb="ghostly-solutions",db=Mt.system;function ub({children:e,defaultTheme:t=mb,defaultColorScheme:r=db,...o}){return HV(Lr,{defaultTheme:t,defaultColorScheme:r,...o,children:e})}ub.displayName="UIProvider";import*as nr from"react";var kV=()=>{};function SV({prop:e,defaultProp:t,onChange:r=kV}){let[o,n]=DV({defaultProp:t,onChange:r}),i=e!==void 0,s=i?e:o,l=nr.useCallback((d)=>{if(i){let c=typeof d==="function"?d(e):d;if(c!==e)r(c)}else n(d)},[i,e,n,r]);return[s,l]}function DV({defaultProp:e,onChange:t}){let r=nr.useState(e),[o]=r,n=nr.useRef(o),i=t;return nr.useEffect(()=>{if(n.current!==o)i?.(o),n.current=o},[o,i]),r}export{va as writeThemeStateToBrowserStorage,Ji as useToast,Ta as useTheme,ce as useReducedMotion,wo as usePlatform,Ch as useOverlay,zo as useHotkey,Ro as useFormField,f as useDensitySize,fb as useDensity,SV as useControllableState,Ct as useComposedRefs,ny as useCommandShortcut,Vn as useCommand,Lv as useBreadcrumbStore,Wg as tooltipContentVariants,wg as toolbarVariants,kg as toolbarGroupVariants,la as toggleVariants,Eg as toggleGroupVariants,Ui as toastVariants,Ki as toastActionVariants,vg as toast,qf as timelineVariants,tg as timelineTitleVariants,og as timelineTimeVariants,Qf as timelineItemVariants,jf as timelineDotVariants,rg as timelineDescriptionVariants,eg as timelineContentVariants,Zf as timelineConnectorVariants,Xf as textareaVariants,_f as tabsTriggerVariants,Wf as tabsListVariants,Uf as tabsContentVariants,Nf as tableVariants,xf as tableRowVariants,Ef as tableHeaderVariants,Cf as tableHeadVariants,Rf as tableFooterVariants,zf as tableContainerVariants,wf as tableCellVariants,Hf as tableCaptionVariants,Lf as tableBodyVariants,Pf as switchVariants,af as stepperVariants,sf as stepVariants,uf as stepTitleVariants,lf as stepIndicatorVariants,cf as stepDescriptionVariants,df as stepContentVariants,mf as stepConnectorVariants,ea as spotlightStatusVariants,ta as spotlightStatusTitleVariants,tf as spotlightStatusDescriptionVariants,ef as spotlightShortcutVariants,Yp as spotlightResultsVariants,Wp as spotlightPanelVariants,Gp as spotlightOverlayVariants,Jp as spotlightOptionVariants,Zp as spotlightOptionTitleVariants,qp as spotlightOptionIconVariants,jp as spotlightOptionDescriptionVariants,Qp as spotlightOptionContentVariants,Kp as spotlightInputVariants,$p as spotlightIconVariants,Up as spotlightHeaderVariants,Xp as spotlightGroupLabelVariants,_p as spotlightDrawerPanelVariants,Sp as sliderVariants,Dp as sliderTrackVariants,Bp as sliderThumbVariants,Ap as sliderRangeVariants,Lp as skeletonVariants,Rp as skeletonTextVariants,Cp as skeletonButtonVariants,xp as skeletonAvatarVariants,rc as sheetOverlayVariants,oc as sheetContentVariants,Ib as setReducedMotion,nb as serializeThemeState,Oa as serializeBreadcrumbItems,Np as separatorVariants,yp as selectTriggerVariants,Tp as selectContentVariants,ip as segmentedControlVariants,lp as segmentedControlLabelVariants,sp as segmentedControlItemVariants,ep as scrollBarVariants,tp as scrollBarThumbVariants,jc as scrollAreaVariants,ib as resolveThemeState,Uc as resizablePanelVariants,_c as resizablePanelGroupVariants,Kc as resizableHandleVariants,$c as resizableHandleIconVariants,ba as readThemeStateFromBrowserStorage,ws as readStoredReducedMotion,Dc as radioItemVariants,Sc as radioGroupVariants,xc as progressVariants,Cc as progressIndicatorVariants,Jr as popoverContentVariants,ab as parseThemeState,Ka as parseHotkey,gc as paginationVariants,In as paginationLinkVariants,vc as paginationItemVariants,yc as paginationEllipsisVariants,bc as paginationContentVariants,Ju as otpSlotVariants,Zu as otpSeparatorVariants,Qu as otpPlaceholderVariants,qu as otpInputVariants,Xu as otpGroupVariants,Yu as otpContainerVariants,Vt as normalizeThemeState,Fa as normalizeBreadcrumbItems,ku as navigationMenuViewportVariants,Ru as navigationMenuVariants,Cu as navigationMenuTriggerVariants,xu as navigationMenuListVariants,Hu as navigationMenuLinkVariants,Su as navigationMenuIndicatorVariants,wu as navigationMenuContentVariants,uu as navbarVariants,gu as navbarLinkVariants,fu as navbarItemVariants,vu as navbarDividerVariants,pu as navbarContentVariants,cu as navbarBrandVariants,bu as navbarActionsVariants,lu as multiselectTriggerVariants,rf as matchesQuery,$a as matchHotkey,ru as labelVariants,$r as kbdVariants,Dr as isSameDay,Qd as inputVariants,ks as hydrateReducedMotion,$d as hoverCardContentVariants,$V as hotkey,sb as getThemeRootProps,ya as getSystemColorScheme,ra as formatHotkeyTokens,Hn as formatHotkey,Fd as formFieldVariants,Ld as fileUploadVariants,ui as fileUploadTextVariants,xd as fileUploadListVariants,Cd as fileUploadItemVariants,Hd as fileUploadItemSizeVariants,kd as fileUploadItemRemoveVariants,wd as fileUploadItemNameVariants,Rd as fileUploadIconVariants,Td as errorBoundaryVariants,Pd as errorBoundaryTitleVariants,hd as errorBoundaryIconVariants,zd as errorBoundaryDetailsVariants,Vd as errorBoundaryDescriptionVariants,Md as errorBoundaryActionsVariants,cd as emptyStateVariants,fd as emptyStateTitleVariants,pd as emptyStateIconVariants,gd as emptyStateDescriptionVariants,bd as emptyStateActionsVariants,td as dropdownMenuShortcutVariants,ed as dropdownMenuSeparatorVariants,Zm as dropdownMenuRadioItemVariants,jm as dropdownMenuLabelVariants,si as dropdownMenuItemVariants,ii as dropdownMenuContentVariants,Qm as dropdownMenuCheckboxItemVariants,_m as drawerOverlayVariants,ri as drawerHandleVariants,Um as drawerContentVariants,Bm as dialogContentVariants,pi as detectPlatform,Jg as defineThemes,IH as cva,Pa as createThemesCss,qg as createThemeSystem,ns as createThemeRegistry,lb as createThemeCss,uo as createThemeContract,JV as createOptionalContext,XV as createContext,Mm as contextMenuShortcutVariants,Vm as contextMenuSeparatorVariants,hm as contextMenuRadioItemVariants,Pm as contextMenuLabelVariants,Qa as contextMenuItemVariants,qa as contextMenuContentVariants,Tm as contextMenuCheckboxItemVariants,YV as composeRefs,am as commandShortcutVariants,nm as commandSeparatorVariants,Ql as commandOverlayVariants,im as commandLoadingVariants,jl as commandListVariants,om as commandItemVariants,Zl as commandInputVariants,tm as commandGroupVariants,rm as commandGroupHeadingVariants,em as commandEmptyVariants,ql as commandDialogVariants,$l as collapsibleContentVariants,Ga as collapseBreadcrumbItems,Bl as codeBlockVariants,Wl as codeBlockPreVariants,_l as codeBlockLineVariants,Ul as codeBlockLineNumberVariants,Fl as codeBlockLanguageVariants,Il as codeBlockHeaderVariants,Ol as codeBlockCopyVariants,Gl as codeBlockContentVariants,a as cn,Sl as checkboxVariants,El as cardVariants,Ml as calendarWeekdayVariants,Tl as calendarVariants,Pl as calendarTitleVariants,_a as calendarNavButtonVariants,hl as calendarHeaderVariants,Vl as calendarGridVariants,zl as calendarDayVariants,fo as buttonVariants,Vs as buttonIconVariants,fl as buttonGroupVariants,Ms as buttonBadgeVariants,ml as breadcrumbSeparatorVariants,ll as breadcrumbPageVariants,al as breadcrumbListVariants,sl as breadcrumbLinkVariants,il as breadcrumbItemVariants,dl as breadcrumbEllipsisVariants,tl as badgeVariants,qs as avatarVariants,Ys as aspectRatioVariants,ps as alertVariants,fs as alertTitleVariants,As as alertDialogOverlayVariants,Bs as alertDialogContentVariants,gs as alertDescriptionVariants,ss as accordionTriggerVariants,is as accordionItemVariants,ls as accordionContentVariants,Vb as XCircleIcon,BV as Variant,mb as UI_DEFAULT_THEME,db as UI_DEFAULT_COLOR_SCHEME,ub as UIProvider,Gg as TooltipTrigger,lo as TooltipSize,Fg as TooltipProvider,_g as TooltipContent,Og as Tooltip,Ag as ToolbarSpacer,lt as ToolbarSize,Dg as ToolbarSeparator,Sg as ToolbarGroup,Hg as Toolbar,xg as ToggleGroupItem,Rg as ToggleGroup,zg as Toggle,Vg as Toaster,Je as ToastSize,mg as TimelineTitle,ug as TimelineTime,ag as TimelineItem,sg as TimelineDot,dg as TimelineDescription,lg as TimelineContent,ig as TimelineConnector,ng as Timeline,za as ThemeStyles,Ma as ThemeRegistryProvider,Lr as ThemeProvider,KV as ThemeColorScheme,Jf as Textarea,$f as TabsTrigger,Kf as TabsList,Yf as TabsContent,FP as Tabs,ke as TableSize,Bf as TableRow,Sf as TableHeader,If as TableHead,Af as TableFooter,Ff as TableCell,Of as TableCaption,Df as TableBody,kf as Table,Zg as THEME_COLOR_SCHEME_ATTR,Qg as THEME_ATTR,zr as SwitchStatus,Xe as SwitchSize,Vf as Switch,GV as SurfaceStyle,pf as Stepper,yf as StepTitle,gf as StepIndicator,Tf as StepDescription,vf as StepContent,bf as StepConnector,ff as Step,IV as Status,jn as SpotlightStatus,x as SpotlightSize,of as Spotlight,po as SpinnerSize,At as Spinner,Ip as Slider,wp as SkeletonText,ye as SkeletonSize,kp as SkeletonButton,Hp as SkeletonAvatar,Jo as Skeleton,A as Size,eo as Side,Ph as SheetTrigger,lc as SheetTitle,ge as SheetSize,ac as SheetPortal,hi as SheetOverlay,ic as SheetHeader,sc as SheetFooter,mc as SheetDescription,An as SheetContent,Vh as SheetClose,Ti as Sheet,Rv as SetBreadcrumbs,Xo as SeparatorOrientation,Ep as Separator,gP as SelectValue,hp as SelectTrigger,oo as SelectStatus,ue as SelectSize,zp as SelectSeparator,Vp as SelectLabel,Mp as SelectItem,fP as SelectGroup,$o as SelectContentWidthMode,mP as SelectContentAlign,Pp as SelectContent,pP as Select,rP as SegmentedControlSize,cp as SegmentedControlLabelItem,up as SegmentedControlItem,dp as SegmentedControl,Ni as ScrollBar,rp as ScrollArea,eb as STORAGE_VERSION,rb as STORAGE_THEME_STATE_KEY,tb as STORAGE_PREFIX,ob as STORAGE_DENSITY_KEY,Jc as ResizablePanelGroup,qc as ResizablePanel,Qc as ResizableHandle,Pr as RadioStatus,Ht as RadioSize,Bc as RadioGroupItem,Ac as RadioGroup,ka as REDUCED_MOTION_STORAGE_KEY,Ha as REDUCED_MOTION_QUERY,lr as REDUCED_MOTION_COMPAT_ATTRIBUTE,Cr as REDUCED_MOTION_ATTRIBUTE,wc as Progress,IT as PopoverTrigger,Xr as PopoverSize,iu as PopoverContent,OT as PopoverClose,FT as PopoverAnchor,BT as Popover,Ye as PaginationSize,Mc as PaginationPrevious,zc as PaginationNext,Vc as PaginationLink,Pc as PaginationItem,Nc as PaginationEllipsis,hc as PaginationContent,Tc as Pagination,fc as OverlayProvider,_V as Orientation,pc as OVERLAY_REMOVE_DELAY_DEFAULT,ju as OTPInput,bi as NavigationMenuViewport,Iu as NavigationMenuTrigger,ot as NavigationMenuSize,Au as NavigationMenuList,Ou as NavigationMenuLink,Bu as NavigationMenuItem,Gu as NavigationMenuIndicator,Fu as NavigationMenuContent,Du as NavigationMenu,zu as NavbarLink,Mu as NavbarItem,Eu as NavbarDivider,Vu as NavbarContent,Pu as NavbarBrand,Nu as NavbarActions,hu as Navbar,ee as MultiselectSize,mu as Multiselect,OV as MotionLevel,nu as Loader,Yr as LabelSize,ou as Label,cb as Key,Kr as KbdSize,tu as Kbd,Zd as Input,Pb as InfoIcon,xr as IconSize,mT as HoverCardTrigger,Ur as HoverCardSize,Xd as HoverCardContent,Yd as HoverCard,AV as HotkeyModifierKey,cb as HotkeyKey,Vo as GroupOrientation,Ke as FormFieldSize,Gd as FormFieldLabel,Ud as FormFieldError,_d as FormFieldDescription,Kd as FormFieldControl,Od as FormField,Sd as FileUpload,Nd as ErrorBoundary,vd as EmptyState,WV as EmphasisLevel,Gy as DropdownMenuTrigger,od as DropdownMenuSubTrigger,nd as DropdownMenuSubContent,Uy as DropdownMenuSub,ud as DropdownMenuShortcut,dd as DropdownMenuSeparator,ld as DropdownMenuRadioItem,Ky as DropdownMenuRadioGroup,_y as DropdownMenuPortal,md as DropdownMenuLabel,xn as DropdownMenuItemVariant,id as DropdownMenuItem,Wy as DropdownMenuGroup,ad as DropdownMenuContent,sd as DropdownMenuCheckboxItem,Oy as DropdownMenu,Hy as DrawerTrigger,ai as DrawerTitle,gt as DrawerSize,Km as DrawerPortal,ni as DrawerOverlay,Xm as DrawerHeader,Jm as DrawerFooter,qm as DrawerDescription,Ym as DrawerContent,ky as DrawerClose,wy as Drawer,My as DialogTrigger,Ln as DialogTitle,pr as DialogSize,Nn as DialogPortal,Eo as DialogOverlay,Im as DialogHeader,Fm as DialogFooter,Om as DialogDescription,ei as DialogContentPrimitive,En as DialogContent,zy as DialogClose,No as Dialog,FV as Density,pb as DENSITY_DEFAULT,Sb as DEMO_REDUCED_MOTION_ATTRIBUTE,jg as DARK_CLASS,uy as ContextMenuTrigger,Em as ContextMenuSubTrigger,Lm as ContextMenuSubContent,fy as ContextMenuSub,Sm as ContextMenuShortcut,km as ContextMenuSeparator,wm as ContextMenuRadioItem,gy as ContextMenuRadioGroup,py as ContextMenuPortal,Hm as ContextMenuLabel,Mn as ContextMenuItemVariant,xm as ContextMenuItem,cy as ContextMenuGroup,Rm as ContextMenuContent,Cm as ContextMenuCheckboxItem,Nm as ContextMenu,gm as CommandShortcut,fm as CommandSeparator,bm as CommandLoading,dm as CommandList,Pn as CommandItemVariant,pm as CommandItem,mm as CommandInput,cm as CommandGroup,um as CommandEmpty,lm as CommandDialog,Xa as Command,Mt as ColorScheme,Jv as CollapsibleTrigger,Yl as CollapsibleContent,Xv as Collapsible,Kl as CodeBlock,Fr as CheckboxStatus,Rt as CheckboxSize,Dl as Checkbox,hb as CheckCircleIcon,wl as CardTitle,Rl as CardHeader,Cl as CardFooter,Hl as CardDescription,xl as CardContent,Ll as Card,Nl as Calendar,Ns as ButtonLabel,zs as ButtonIcon,gl as ButtonGroup,Es as ButtonBadge,Ls as Button,Ev as BreadcrumbStoreProvider,fe as BreadcrumbSize,Po as BreadcrumbSeparator,pn as BreadcrumbPage,cn as BreadcrumbList,ho as BreadcrumbLink,To as BreadcrumbItem,fn as BreadcrumbEllipsis,xv as BreadcrumbDisplay,un as Breadcrumb,Ee as BadgeVariant,Bt as BadgeTone,Ft as BadgeSize,nl as BadgeGroup,vo as Badge,Cv as BREADCRUMB_DEFAULT_COLLAPSE_CONFIG,ut as AvatarSize,Qs as AvatarImage,Zs as AvatarGroup,Ba as AvatarFallback,Aa as Avatar,Xs as AspectRatio,UV as Align,Tb as AlertTriangleIcon,vs as AlertTitle,Yb as AlertDialogTrigger,_s as AlertDialogTitle,mr as AlertDialogSize,Fs as AlertDialogPortal,Sa as AlertDialogOverlay,Gs as AlertDialogHeader,Ws as AlertDialogFooter,Us as AlertDialogDescription,Os as AlertDialogContent,$s as AlertDialogCancel,Ks as AlertDialogAction,$b as AlertDialog,ys as AlertDescription,bs as Alert,us as AccordionTrigger,Se as AccordionSize,ds as AccordionItem,cs as AccordionContent,ms as Accordion};
|