@ghostly-solutions/ui 0.3.10 → 1.0.1

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.
Files changed (48) hide show
  1. package/dist/chunk-dweaczp3.js +11 -0
  2. package/dist/components/badge/badge.d.ts +1 -1
  3. package/dist/components/button/button.d.ts +1 -1
  4. package/dist/components/command/command.d.ts.map +1 -1
  5. package/dist/components/kbd/kbd.d.ts +2 -0
  6. package/dist/components/kbd/kbd.d.ts.map +1 -1
  7. package/dist/components/navbar/navbar.d.ts +1 -1
  8. package/dist/components/spotlight/index.d.ts +1 -1
  9. package/dist/components/spotlight/index.d.ts.map +1 -1
  10. package/dist/components/spotlight/spotlight.d.ts +4 -7
  11. package/dist/components/spotlight/spotlight.d.ts.map +1 -1
  12. package/dist/contracts/component-contracts.d.ts +75 -0
  13. package/dist/contracts/component-contracts.d.ts.map +1 -0
  14. package/dist/contracts/events.d.ts +14 -0
  15. package/dist/contracts/events.d.ts.map +1 -0
  16. package/dist/contracts/hotkeys.d.ts +108 -0
  17. package/dist/contracts/hotkeys.d.ts.map +1 -0
  18. package/dist/contracts/index.d.ts +6 -0
  19. package/dist/contracts/index.d.ts.map +1 -0
  20. package/dist/contracts/primitives.d.ts +72 -0
  21. package/dist/contracts/primitives.d.ts.map +1 -0
  22. package/dist/contracts/theme.d.ts +24 -0
  23. package/dist/contracts/theme.d.ts.map +1 -0
  24. package/dist/hooks/use-media-query.d.ts.map +1 -1
  25. package/dist/hooks/use-platform.d.ts.map +1 -1
  26. package/dist/index.d.ts +5 -3
  27. package/dist/index.d.ts.map +1 -1
  28. package/dist/index.js +4 -4
  29. package/dist/lib/density.d.ts +3 -3
  30. package/dist/lib/density.d.ts.map +1 -1
  31. package/dist/lib/hotkey.d.ts +6 -91
  32. package/dist/lib/hotkey.d.ts.map +1 -1
  33. package/dist/lib/platform.d.ts +2 -1
  34. package/dist/lib/platform.d.ts.map +1 -1
  35. package/dist/lib/theme/constants.d.ts +3 -2
  36. package/dist/lib/theme/constants.d.ts.map +1 -1
  37. package/dist/lib/theme/system.d.ts.map +1 -1
  38. package/dist/lib/types.d.ts +1 -36
  39. package/dist/lib/types.d.ts.map +1 -1
  40. package/dist/server.d.ts +4 -2
  41. package/dist/server.d.ts.map +1 -1
  42. package/dist/server.js +1 -1
  43. package/dist/styles/index.css +1 -1
  44. package/dist/styles/themes/base.css +1 -1
  45. package/dist/styles/themes/ghost-guard.css +1 -1
  46. package/dist/styles/themes/ghostly-solutions.css +1 -1
  47. package/package.json +1 -1
  48. package/dist/chunk-h6zev10f.js +0 -11
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use client";
2
- import{A as af,B as Ia,C as Va,D as Jn,E as Fa,F as nf,G as sf,H as Aa,I as lf,J as Da,a,b as hT,c as ao,d as PT,e as xT,f as gn,g as CT,h as zT,i as Hn,j as kn,k as io,l as ST,m as ut,n as Xu,o as Zu,p as qu,q as Ju,r as Qu,s as Eu,t as ju,u as ef,v as Kr,w as ct,x as tf,y as rf,z as of}from"./chunk-h6zev10f.js";import{cva as pR}from"class-variance-authority";import*as at from"@radix-ui/react-accordion";import{cva as Ka}from"class-variance-authority";import{ChevronDown as ff}from"lucide-react";import{createContext as gf,forwardRef as ko,useContext as ri}from"react";import{createContext as pf,useContext as ti}from"react";import{jsxDEV as uf}from"react/jsx-dev-runtime";var Lo="md",$a=pf(Lo),Ho=({density:e,children:t})=>{return uf($a.Provider,{value:e,children:t},void 0,!1,void 0,this)};Ho.displayName="DensityProvider";var cf=()=>{return ti($a)};function c(e){let t=ti($a);if(e!==void 0)return e;return t}import{jsxDEV as xt}from"react/jsx-dev-runtime";var Re={sm:"sm",md:"md",lg:"lg"},Ya=gf(Re.md),oi=Ka("border-b border-border"),ai=Ka("gs-interactive flex flex-1 items-center justify-between font-medium hover:underline [&[data-state=open]>svg]:rotate-180",{variants:{size:{[Re.sm]:"py-3 text-xs [&>svg]:size-3.5",[Re.md]:"py-4 text-sm [&>svg]:size-4",[Re.lg]:"py-5 text-base [&>svg]:size-5"}},defaultVariants:{size:Re.md}}),ni=Ka("gs-accordion-content overflow-hidden",{variants:{size:{[Re.sm]:"text-xs",[Re.md]:"text-sm",[Re.lg]:"text-base"}},defaultVariants:{size:Re.md}}),yf={[Re.sm]:"pt-0 pb-3",[Re.md]:"pt-0 pb-4",[Re.lg]:"pt-0 pb-5"},ii=ko(({size:e=Re.md,...t},r)=>{let o=c(e)??Re.md;return xt(Ya.Provider,{value:o,children:xt(at.Root,{ref:r,...t},void 0,!1,void 0,this)},void 0,!1,void 0,this)});ii.displayName="Accordion";var si=ko(({className:e,...t},r)=>xt(at.Item,{ref:r,className:a(oi(),e),...t},void 0,!1,void 0,this));si.displayName="AccordionItem";var li=ko(({className:e,children:t,...r},o)=>{let n=ri(Ya);return xt(at.Header,{className:"flex",children:xt(at.Trigger,{ref:o,className:a(ai({size:n}),e),...r,children:[t,xt(ff,{className:"shrink-0 transition-transform"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)});li.displayName="AccordionTrigger";var mi=ko(({className:e,children:t,...r},o)=>{let n=ri(Ya);return xt(at.Content,{ref:o,className:a(ni({size:n}),e),...r,children:xt("div",{className:yf[n],children:t},void 0,!1,void 0,this)},void 0,!1,void 0,this)});mi.displayName="AccordionContent";import{cva as Xa}from"class-variance-authority";import{TriangleAlert as vf,CircleCheck as bf,Info as Tf,CircleAlert as hf}from"lucide-react";import{forwardRef as Za}from"react";import{jsxDEV as qa}from"react/jsx-dev-runtime";var cr={default:"default",success:"success",warning:"warning",error:"error",info:"info"},Yr={sm:"sm",md:"md",lg:"lg",xl:"xl"},di=Xa("relative w-full rounded-[var(--radius)] border [&>svg~*]:pl-7 [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground",{variants:{variant:{[cr.default]:"bg-background text-foreground",[cr.success]:"border-success/50 text-success [&>svg]:text-success bg-success/10",[cr.warning]:"border-warning/50 text-warning [&>svg]:text-warning bg-warning/10",[cr.error]:"border-destructive/50 text-destructive [&>svg]:text-destructive bg-destructive/10",[cr.info]:"border-info/50 text-info [&>svg]:text-info bg-info/10"},size:{[Yr.sm]:"p-3 text-xs [&>svg]:top-3 [&>svg]:left-3 [&>svg~*]:pl-6",[Yr.md]:"p-4 text-sm",[Yr.lg]:"p-5 text-sm",[Yr.xl]:"p-6 text-base [&>svg]:top-6 [&>svg]:left-6 [&>svg~*]:pl-8"}},defaultVariants:{variant:cr.default,size:Yr.md}}),pi=Xa("mb-1 font-medium leading-none tracking-tight"),ci=Xa("text-sm [&_p]:leading-relaxed"),ui=Za(({className:e,variant:t,size:r,...o},n)=>{let i=c(r);return qa("div",{ref:n,role:"alert",className:a(di({variant:t,size:i}),e),...o},void 0,!1,void 0,this)});ui.displayName="Alert";var fi=Za(({className:e,...t},r)=>qa("h5",{ref:r,className:a(pi(),e),...t},void 0,!1,void 0,this));fi.displayName="AlertTitle";var gi=Za(({className:e,...t},r)=>qa("div",{ref:r,className:a(ci(),e),...t},void 0,!1,void 0,this));gi.displayName="AlertDescription";import*as he from"@radix-ui/react-alert-dialog";import{cva as Ci}from"class-variance-authority";import{forwardRef as gr}from"react";import{Slot as yi}from"@radix-ui/react-slot";import{cva as Qa}from"class-variance-authority";import{forwardRef as Ao}from"react";import{forwardRef as Pf}from"react";import{jsxDEV as Ja}from"react/jsx-dev-runtime";var ur={sm:"sm",md:"md",lg:"lg",xl:"xl"},xf={[ur.sm]:"h-4 w-4",[ur.md]:"h-5 w-5",[ur.lg]:"h-6 w-6",[ur.xl]:"h-8 w-8"},Ct=Pf(({className:e,size:t=ur.md,label:r="Loading",...o},n)=>{let i=c(t);return Ja("span",{ref:n,className:a("inline-flex items-center justify-center",e),role:"status","aria-label":r,...o,children:[Ja("span",{className:a("animate-spin rounded-full border-2 border-current border-r-transparent",xf[i])},void 0,!1,void 0,this),Ja("span",{className:"sr-only",children:r},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});Ct.displayName="Spinner";import{jsxDEV as gt}from"react/jsx-dev-runtime";var ft={primary:"primary",secondary:"secondary",neutral:"neutral",outline:"outline",ghost:"ghost",danger:"danger"},Ve={sm:"sm",md:"md",lg:"lg",xl:"xl",icon:"icon",iconSm:"icon-sm",iconLg:"icon-lg"},zt={default:"default",success:"success",warning:"warning",error:"error",info:"info"},fr={sm:"sm",md:"md",lg:"lg"},Cf="Loading",zf="button",Xr=Qa("gs-interactive 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:cursor-not-allowed disabled:border-border disabled:bg-muted/45 disabled:text-muted-foreground",{variants:{variant:{[ft.primary]:"border-primary bg-primary text-primary-foreground enabled:hover:bg-primary/90",[ft.secondary]:"border-secondary bg-secondary text-secondary-foreground enabled:hover:bg-secondary/90",[ft.neutral]:"border-border bg-muted text-foreground enabled:hover:bg-muted/90",[ft.outline]:"border-border bg-background text-foreground enabled:hover:border-primary enabled:hover:bg-muted/50",[ft.ghost]:"border-transparent bg-transparent text-foreground enabled:hover:bg-muted/70",[ft.danger]:"border-destructive bg-destructive text-destructive-foreground enabled:hover:bg-destructive/90"},size:{[Ve.sm]:"h-8 px-2.5 text-xs",[Ve.md]:"h-10 px-4 text-sm",[Ve.lg]:"h-11 px-5 text-sm",[Ve.xl]:"h-12 px-6 text-base",[Ve.icon]:"h-10 w-10 p-0",[Ve.iconSm]:"h-9 w-9 p-0",[Ve.iconLg]:"h-11 w-11 p-0"}},defaultVariants:{variant:ft.primary,size:Ve.md}}),vi=Qa("shrink-0",{variants:{size:{[fr.sm]:"size-3",[fr.md]:"size-4",[fr.lg]:"size-4.5"}},defaultVariants:{size:fr.md}}),bi=Qa("inline-flex items-center rounded-full border px-1.5 py-0.5 font-semibold text-[10px] leading-none",{variants:{tone:{[zt.default]:"border-border/70 bg-background/75 text-muted-foreground",[zt.success]:"border-success/35 bg-success/12 text-success",[zt.warning]:"border-warning/35 bg-warning/12 text-warning",[zt.error]:"border-destructive/35 bg-destructive/12 text-destructive",[zt.info]:"border-info/35 bg-info/12 text-info"}},defaultVariants:{tone:zt.default}});function Sf(e){return e===Ve.icon||e===Ve.iconSm||e===Ve.iconLg}function Nf(e,t,r){return e&&t?-1:r}function wf(e){return e["aria-label"]??e["aria-labelledby"]??e.title}function Rf(){if(typeof process>"u")return!0;return!0}var Ti=Ao(({className:e,size:t=fr.md,...r},o)=>gt(yi,{ref:o,className:a(vi({size:t}),e),...r},void 0,!1,void 0,this));Ti.displayName="ButtonIcon";var hi=Ao(({className:e,...t},r)=>gt("span",{ref:r,className:a("truncate",e),...t},void 0,!1,void 0,this));hi.displayName="ButtonLabel";var Pi=Ao(({className:e,tone:t=zt.default,...r},o)=>gt("span",{ref:o,className:a(bi({tone:t}),e),...r},void 0,!1,void 0,this));Pi.displayName="ButtonBadge";var xi=Ao(({className:e,variant:t=ft.primary,size:r=Ve.md,asChild:o=!1,loading:n=!1,loadingText:i=Cf,fullWidth:s=!1,leadingIcon:l,trailingIcon:d,disabled:m,children:f,type:u,tabIndex:h,onClick:p,...y},S)=>{let M=c(r),w=M??r,T=wf(y);if(Rf()&&Sf(w)&&!T)throw Error("Icon-size Button requires aria-label, aria-labelledby, or title.");let b=Boolean(m||n),x=a(Xr({variant:t,size:M}),s&&"w-full",e);if(o)return gt(yi,{ref:S,className:x,"aria-disabled":b||void 0,"aria-busy":n||void 0,tabIndex:Nf(!0,b,h),onClick:b?(O)=>{O.preventDefault()}:p,...y,children:f},void 0,!1,void 0,this);return gt("button",{ref:S,className:x,disabled:b,"aria-disabled":b,"aria-busy":n,tabIndex:h,type:u??zf,onClick:n?void 0:p,...y,children:[gt("span",{className:a("absolute inset-0 flex items-center justify-center transition-opacity duration-150",n?"opacity-100":"opacity-0"),"aria-hidden":"true",children:gt(Ct,{size:"sm"},void 0,!1,void 0,this)},void 0,!1,void 0,this),n&&gt("span",{className:"sr-only",children:i},void 0,!1,void 0,this),gt("span",{className:a("inline-flex items-center justify-center gap-2 transition-opacity duration-150",n&&"opacity-0"),children:[l,f,d]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)});xi.displayName="Button";import{jsxDEV as nt}from"react/jsx-dev-runtime";var St={sm:"sm",md:"md",lg:"lg",xl:"xl",full:"full"},zi=Ci("gs-dialog-overlay fixed inset-0 z-50 bg-black/50"),Si=Ci("gs-dialog-content fixed left-1/2 top-1/2 z-50 grid w-full gap-4 border border-border bg-background p-6 text-foreground shadow-[var(--shadow-xl)] rounded-[var(--radius)]",{variants:{size:{[St.sm]:"max-w-sm",[St.md]:"max-w-md",[St.lg]:"max-w-lg",[St.xl]:"max-w-xl",[St.full]:"max-w-[calc(100vw-2rem)] max-h-[calc(100vh-2rem)]"}},defaultVariants:{size:St.md}}),Mf=he.Root,Lf=he.Trigger,Ni=he.Portal,Ea=gr(({className:e,...t},r)=>nt(he.Overlay,{ref:r,className:a(zi(),e),...t},void 0,!1,void 0,this));Ea.displayName="AlertDialogOverlay";var wi=gr(({className:e,size:t=St.md,...r},o)=>{let n=c(t);return nt(Ni,{children:[nt(Ea,{},void 0,!1,void 0,this),nt(he.Content,{ref:o,className:a(Si({size:n}),e),...r},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});wi.displayName="AlertDialogContent";var Ri=({className:e,...t})=>nt("div",{className:a("flex flex-col space-y-2 text-center sm:text-left",e),...t},void 0,!1,void 0,this);Ri.displayName="AlertDialogHeader";var Mi=({className:e,...t})=>nt("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);Mi.displayName="AlertDialogFooter";var Li=gr(({className:e,...t},r)=>nt(he.Title,{ref:r,className:a("text-lg font-semibold",e),...t},void 0,!1,void 0,this));Li.displayName="AlertDialogTitle";var Hi=gr(({className:e,...t},r)=>nt(he.Description,{ref:r,className:a("text-sm text-muted-foreground",e),...t},void 0,!1,void 0,this));Hi.displayName="AlertDialogDescription";var ki=gr(({className:e,...t},r)=>nt(he.Action,{ref:r,className:a(Xr(),e),...t},void 0,!1,void 0,this));ki.displayName="AlertDialogAction";var Ai=gr(({className:e,...t},r)=>nt(he.Cancel,{ref:r,className:a(Xr({variant:"outline"}),"mt-2 sm:mt-0",e),...t},void 0,!1,void 0,this));Ai.displayName="AlertDialogCancel";import*as Ii from"@radix-ui/react-aspect-ratio";var Hf=Ii.Root;import*as vr from"@radix-ui/react-avatar";import{cva as kf}from"class-variance-authority";import{forwardRef as Io}from"react";import{jsxDEV as yr}from"react/jsx-dev-runtime";var De={sm:"sm",md:"md",lg:"lg",xl:"xl"},Vi=kf("relative flex shrink-0 overflow-hidden rounded-full",{variants:{size:{[De.sm]:"h-7 w-7 text-xs",[De.md]:"h-10 w-10 text-sm",[De.lg]:"h-12 w-12 text-base",[De.xl]:"h-16 w-16 text-lg"}},defaultVariants:{size:De.md}}),ja=Io(({className:e,size:t=De.md,...r},o)=>{let n=c(t);return yr(vr.Root,{ref:o,className:a(Vi({size:n}),e),...r},void 0,!1,void 0,this)});ja.displayName="Avatar";var Fi=Io(({className:e,...t},r)=>yr(vr.Image,{ref:r,className:a("aspect-square h-full w-full object-cover",e),...t},void 0,!1,void 0,this));Fi.displayName="AvatarImage";var en=Io(({className:e,...t},r)=>yr(vr.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));en.displayName="AvatarFallback";var Af={[De.sm]:"-space-x-2",[De.md]:"-space-x-3",[De.lg]:"-space-x-4",[De.xl]:"-space-x-5"},Oi=Io(({className:e,children:t,max:r,size:o=De.md,...n},i)=>{let s=c(o),l=Array.isArray(t)?t:[t],d=r?l.slice(0,r):l,m=r?Math.max(0,l.length-r):0;return yr("div",{ref:i,className:a("flex items-center",Af[s],e),...n,children:[d,m>0&&yr(ja,{size:s,className:"border-2 border-background",children:yr(en,{className:"text-xs",children:["+",m]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});Oi.displayName="AvatarGroup";import{Slot as If}from"@radix-ui/react-slot";import{cva as Vf}from"class-variance-authority";import{X as Ff}from"lucide-react";import{forwardRef as Of}from"react";import{jsxDEV as Zr}from"react/jsx-dev-runtime";var ze={default:"default",primary:"primary",success:"success",warning:"warning",error:"error",info:"info",outline:"outline"},Nt={sm:"sm",md:"md",lg:"lg",dot:"dot"},Bi=Vf("inline-flex items-center justify-center gap-1 whitespace-nowrap rounded-full border font-medium",{variants:{variant:{[ze.default]:"border-border bg-muted text-muted-foreground",[ze.primary]:"border-primary/30 bg-primary/10 text-primary",[ze.success]:"border-success/30 bg-success/10 text-success",[ze.warning]:"border-warning/30 bg-warning/10 text-warning",[ze.error]:"border-destructive/30 bg-destructive/10 text-destructive",[ze.info]:"border-info/30 bg-info/10 text-info",[ze.outline]:"border-border bg-transparent text-foreground"},solid:{true:"",false:""},size:{[Nt.sm]:"h-5 px-2 text-[10px]",[Nt.md]:"h-6 px-2.5 text-xs",[Nt.lg]:"h-7 px-3 text-sm",[Nt.dot]:"h-2 w-2 p-0"}},compoundVariants:[{solid:!0,variant:ze.default,className:"border-transparent bg-foreground text-background"},{solid:!0,variant:ze.primary,className:"border-primary bg-primary text-primary-foreground"},{solid:!0,variant:ze.success,className:"border-success bg-success text-background"},{solid:!0,variant:ze.warning,className:"border-warning bg-warning text-background"},{solid:!0,variant:ze.error,className:"border-destructive bg-destructive text-destructive-foreground"},{solid:!0,variant:ze.info,className:"border-info bg-info text-background"},{solid:!0,variant:ze.outline,className:"border-border bg-foreground text-background"}],defaultVariants:{variant:ze.default,solid:!1,size:Nt.md}}),Vo=Of(({className:e,variant:t=ze.default,size:r=Nt.md,solid:o=!1,pulse:n=!1,removable:i=!1,onRemove:s,onClick:l,children:d,asChild:m=!1,...f},u)=>{let h=c(r),p=Boolean(l),y=h===Nt.dot,S=(T)=>{T.stopPropagation(),s?.(T)},M=a(Bi({variant:t,solid:o,size:h}),p&&"cursor-pointer",n&&"animate-pulse",i&&!y&&"pr-1",e),w=i&&!y&&Zr("button",{type:"button",className:"gs-interactive ml-0.5 inline-flex size-4 items-center justify-center rounded-full text-current opacity-60 hover:opacity-100",onClick:S,"aria-label":"Remove",tabIndex:-1,children:Zr(Ff,{className:"size-3"},void 0,!1,void 0,this)},void 0,!1,void 0,this);if(m)return Zr(If,{ref:u,className:M,onClick:l,...f,children:d},void 0,!1,void 0,this);if(p)return Zr("button",{ref:u,className:M,onClick:l,type:"button",...f,children:[!y&&d,w]},void 0,!0,void 0,this);return Zr("span",{ref:u,className:M,...f,children:[!y&&d,w]},void 0,!0,void 0,this)});Vo.displayName="Badge";import{Children as Bf,cloneElement as Df,forwardRef as _f,isValidElement as Gf,useCallback as Di,useEffect as Wf,useLayoutEffect as Uf,useRef as $f,useState as Kf}from"react";import{jsxDEV as _i}from"react/jsx-dev-runtime";function Yf(e){let t=[];return Bf.forEach(e,(r,o)=>{if(!Gf(r))return;let n=r.key??o;t.push({key:n,element:r,isLeaving:!1})}),t}function Xf(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 Zf(e,t,r){if(r.current)return r.current=!1,t;return Xf(e,t)}var qf=typeof window<"u"?Uf:Wf,Gi=_f(({children:e,className:t,onRemove:r,gap:o="sm"},n)=>{let[i,s]=Kf([]),l=$f(!0);qf(()=>{let u=Yf(e);s((h)=>Zf(h,u,l))},[e]);let d=Di((u)=>{s((h)=>h.filter((p)=>p.key!==u))},[]),m=Di((u)=>{r?.(u)},[r]),f={sm:"gap-1",md:"gap-2",lg:"gap-3"}[o];return _i("div",{ref:n,className:a("inline-flex flex-wrap items-center",f,t),children:i.map((u)=>{let h={};if(u.element.props.removable&&r)h.onRemove=()=>{m(u.key)};let p=a("inline-flex transition-all duration-200",u.isLeaving&&"pointer-events-none scale-95 opacity-0");return _i("span",{className:p,onTransitionEnd:u.isLeaving?()=>d(u.key):void 0,children:Df(u.element,h)},u.key,!1,void 0,this)})},void 0,!1,void 0,this)});Gi.displayName="BadgeGroup";import{Slot as Jf}from"@radix-ui/react-slot";import{cva as br}from"class-variance-authority";import{ChevronRight as Qf,MoreHorizontal as Ef}from"lucide-react";import{createContext as jf,forwardRef as qr,useContext as tn}from"react";import{jsxDEV as Ze}from"react/jsx-dev-runtime";var ge={sm:"sm",md:"md",lg:"lg"},Fo=jf(ge.md),Wi=br("flex flex-wrap items-center break-words text-muted-foreground",{variants:{size:{[ge.sm]:"gap-1 text-xs",[ge.md]:"gap-1.5 text-sm sm:gap-2.5",[ge.lg]:"gap-2 text-base sm:gap-3"}},defaultVariants:{size:ge.md}}),Ui=br("inline-flex items-center gap-1.5"),$i=br("gs-interactive hover:text-foreground focus-visible:outline-none focus-visible:text-foreground"),Ki=br("font-normal text-foreground"),Yi=br("",{variants:{size:{[ge.sm]:"[&>svg]:size-3",[ge.md]:"[&>svg]:size-3.5",[ge.lg]:"[&>svg]:size-4"}},defaultVariants:{size:ge.md}}),Xi=br("flex items-center justify-center",{variants:{size:{[ge.sm]:"h-7 w-7 [&>svg]:size-3.5",[ge.md]:"h-9 w-9 [&>svg]:size-4",[ge.lg]:"h-10 w-10 [&>svg]:size-5"}},defaultVariants:{size:ge.md}}),Zi=qr(({size:e=ge.md,...t},r)=>{let o=c(e)??ge.md;return Ze(Fo.Provider,{value:o,children:Ze("nav",{ref:r,"aria-label":"breadcrumb",...t},void 0,!1,void 0,this)},void 0,!1,void 0,this)});Zi.displayName="Breadcrumb";var qi=qr(({className:e,...t},r)=>{let o=tn(Fo);return Ze("ol",{ref:r,className:a(Wi({size:o}),e),...t},void 0,!1,void 0,this)});qi.displayName="BreadcrumbList";var Ji=qr(({className:e,...t},r)=>Ze("li",{ref:r,className:a(Ui(),e),...t},void 0,!1,void 0,this));Ji.displayName="BreadcrumbItem";var Qi=qr(({asChild:e,className:t,...r},o)=>{return Ze(e?Jf:"a",{ref:o,className:a($i(),t),...r},void 0,!1,void 0,this)});Qi.displayName="BreadcrumbLink";var Ei=qr(({className:e,...t},r)=>Ze("span",{ref:r,role:"link",tabIndex:0,"aria-disabled":"true","aria-current":"page",className:a(Ki(),e),...t},void 0,!1,void 0,this));Ei.displayName="BreadcrumbPage";var ji=({children:e,className:t,...r})=>{let o=tn(Fo),n={[ge.sm]:"size-3",[ge.md]:"size-3.5",[ge.lg]:"size-4"};return Ze("li",{role:"presentation","aria-hidden":"true",className:a(Yi({size:o}),t),...r,children:e??Ze(Qf,{className:n[o]},void 0,!1,void 0,this)},void 0,!1,void 0,this)};ji.displayName="BreadcrumbSeparator";var es=({className:e,...t})=>{let r=tn(Fo);return Ze("span",{role:"presentation","aria-hidden":"true",className:a(Xi({size:r}),e),...t,children:[Ze(Ef,{},void 0,!1,void 0,this),Ze("span",{className:"sr-only",children:"More"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)};es.displayName="BreadcrumbEllipsis";import{cva as eg}from"class-variance-authority";import{forwardRef as tg}from"react";import{jsxDEV as rg}from"react/jsx-dev-runtime";var Jr={horizontal:"horizontal",vertical:"vertical"},ts=eg("inline-flex items-stretch",{variants:{orientation:{[Jr.horizontal]:"flex-row",[Jr.vertical]:"flex-col"},attached:{true:"gap-0 [&>*:not(:first-child)]:rounded-l-none [&>*:not(:last-child)]:rounded-r-none",false:"gap-2"}},defaultVariants:{orientation:Jr.horizontal,attached:!1}}),rs=tg(({className:e,orientation:t=Jr.horizontal,attached:r=!1,fullWidth:o=!1,...n},i)=>rg("div",{ref:i,className:a(ts({orientation:t,attached:r}),o&&"w-full",e),...n},void 0,!1,void 0,this));rs.displayName="ButtonGroup";import{cva as wt}from"class-variance-authority";import{forwardRef as og,useCallback as Tr,useEffect as ag,useMemo as os,useState as as}from"react";import{jsxDEV as Fe}from"react/jsx-dev-runtime";var D={sm:"sm",md:"md",lg:"lg",xl:"xl"},is=wt("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:{[D.sm]:"p-3 text-sm",[D.md]:"p-4 text-sm",[D.lg]:"p-5 text-base",[D.xl]:"p-6 text-base"}},defaultVariants:{size:D.md}}),ss=wt("mb-3 flex items-center justify-between",{variants:{size:{[D.sm]:"gap-1",[D.md]:"gap-2",[D.lg]:"gap-3",[D.xl]:"gap-3"}},defaultVariants:{size:D.md}}),ls=wt("font-semibold text-foreground",{variants:{size:{[D.sm]:"text-sm",[D.md]:"text-base",[D.lg]:"text-lg",[D.xl]:"text-xl"}},defaultVariants:{size:D.md}}),rn=wt(["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:opacity-50"],{variants:{size:{[D.sm]:"size-7",[D.md]:"size-8",[D.lg]:"size-10",[D.xl]:"size-10"}},defaultVariants:{size:D.md}}),ms=wt("grid grid-cols-7",{variants:{size:{[D.sm]:"gap-0.5",[D.md]:"gap-1",[D.lg]:"gap-1.5",[D.xl]:"gap-2"}},defaultVariants:{size:D.md}}),ds=wt("text-center font-semibold uppercase tracking-wide text-muted-foreground",{variants:{size:{[D.sm]:"py-1 text-[10px]",[D.md]:"py-1.5 text-xs",[D.lg]:"py-2 text-sm",[D.xl]:"py-2 text-sm"}},defaultVariants:{size:D.md}}),ps=wt(["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:{[D.sm]:"size-7 text-xs",[D.md]:"size-9 text-sm",[D.lg]:"size-10 text-base",[D.xl]:"size-11 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:D.md,state:"default"}}),ng=wt("rounded-md border border-transparent",{variants:{size:{[D.sm]:"size-7",[D.md]:"size-9",[D.lg]:"size-10",[D.xl]:"size-11"}},defaultVariants:{size:D.md}}),ns=["Su","Mo","Tu","We","Th","Fr","Sa"],ig=["January","February","March","April","May","June","July","August","September","October","November","December"],yt=(e)=>new Date(e.getFullYear(),e.getMonth(),e.getDate()),hr=(e,t)=>{return e.getDate()===t.getDate()&&e.getMonth()===t.getMonth()&&e.getFullYear()===t.getFullYear()},cs=og(({className:e,size:t="md",cellSize:r,mode:o="single",value:n,defaultValue:i,onChange:s,rangeValue:l,onRangeChange:d,viewMonth:m,onViewMonthChange:f,minDate:u,maxDate:h,disabledDates:p=[],weekStartsOn:y=1,highlightToday:S=!0,...M},w)=>{let T=c(t)??D.md,b=c(r??T)??T,[x,O]=as(n??i??null),[R,I]=as(n??i??new Date),C=m??R,V=Tr((g)=>{if(f){let v=typeof g==="function"?g(m??R):g;f(v)}else I((v)=>{return typeof g==="function"?g(v):g})},[m,R,f]),Y=n!==void 0?n:x,F=u?yt(u):null,K=h?yt(h):null;ag(()=>{if(n!==void 0){if(O(n??null),n&&!m)I(n)}},[n,m]);let N=Tr((g,v)=>{return(new Date(g,v,1).getDay()-y+7)%7},[y]),A=os(()=>{let g=C.getFullYear(),v=C.getMonth(),H=N(g,v),te=new Date(g,v+1,0).getDate(),ee=[];for(let W=0;W<H;W+=1)ee.push({key:`leading-${g}-${v}-${W}`,date:null});for(let W=1;W<=te;W+=1)ee.push({key:`day-${g}-${v}-${W}`,date:new Date(g,v,W)});let Ae=(7-ee.length%7)%7;for(let W=0;W<Ae;W+=1)ee.push({key:`trailing-${g}-${v}-${W}`,date:null});return ee},[C,N]),z=Tr((g)=>{let v=yt(g);if(F&&v<F)return!0;if(K&&v>K)return!0;return p.some((H)=>hr(v,yt(H)))},[F,K,p]),B=Tr((g)=>{if(z(g))return"disabled";if(o==="range"&&l){let{from:v,to:H}=l;if(v&&hr(g,v))return"rangeStart";if(H&&hr(g,H))return"rangeEnd";if(v&&H){let te=yt(g),ee=yt(v),Ae=yt(H);if(te>ee&&te<Ae)return"range"}}if(o==="single"&&Y&&hr(g,Y))return"selected";if(S&&hr(g,new Date))return"today";return"default"},[Y,S,z,o,l]),U=Tr((g)=>{if(z(g))return;let v=new Date(g);if(o==="range"){if(!l?.from||l.from&&l.to)d?.({from:v,to:void 0});else{let H=yt(l.from);if(yt(v)<H)d?.({from:v,to:l.from});else d?.({from:l.from,to:v})}return}if(n===void 0)O(v);s?.(v)},[z,o,s,d,l,n]),L=Tr((g)=>{V((v)=>{let H=new Date(v);return H.setMonth(H.getMonth()+g),H})},[V]),X=os(()=>{return[...ns.slice(y),...ns.slice(0,y)]},[y]);return Fe("div",{ref:w,className:a(is({size:T}),e),...M,children:[Fe("div",{className:a(ss({size:T})),children:[Fe("button",{type:"button",onClick:()=>L(-1),className:a(rn({size:T})),"aria-label":"Previous month",children:Fe("svg",{className:"size-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:Fe("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),Fe("span",{className:a(ls({size:T})),children:[ig[C.getMonth()]," ",C.getFullYear()]},void 0,!0,void 0,this),Fe("button",{type:"button",onClick:()=>L(1),className:a(rn({size:T})),"aria-label":"Next month",children:Fe("svg",{className:"size-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:Fe("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),Fe("div",{className:a(ms({size:T})),children:[X.map((g)=>Fe("div",{className:a(ds({size:b})),children:g},g,!1,void 0,this)),A.map((g)=>{if(!g.date)return Fe("div",{"aria-hidden":"true",className:a(ng({size:b}))},g.key,!1,void 0,this);let v=g.date,H=B(v);return Fe("button",{type:"button",onClick:()=>U(v),disabled:H==="disabled",className:a(ps({size:b,state:H})),children:v.getDate()},g.key,!1,void 0,this)})]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)});cs.displayName="Calendar";import{Slot as Pr}from"@radix-ui/react-slot";import{cva as sg}from"class-variance-authority";import{forwardRef as xr}from"react";import{jsxDEV as Cr}from"react/jsx-dev-runtime";var Oo={default:"default",muted:"muted",danger:"danger"},us=sg("gs-interactive relative overflow-hidden rounded-[var(--radius)] border bg-card text-card-foreground shadow-[var(--shadow-sm)]",{variants:{variant:{[Oo.default]:"border-border",[Oo.muted]:"border-border/70 bg-muted/40",[Oo.danger]:"border-destructive/30 bg-destructive/[0.06]"}},defaultVariants:{variant:Oo.default}}),fs=xr(({asChild:e=!1,className:t,variant:r,...o},n)=>{return Cr(e?Pr:"div",{ref:n,className:a(us({variant:r}),t),...o},void 0,!1,void 0,this)});fs.displayName="Card";var gs=xr(({asChild:e=!1,className:t,...r},o)=>{return Cr(e?Pr:"div",{ref:o,className:a("flex flex-col gap-1.5 border-b border-border/50 p-4",t),...r},void 0,!1,void 0,this)});gs.displayName="CardHeader";var ys=xr(({asChild:e=!1,className:t,...r},o)=>{return Cr(e?Pr:"div",{ref:o,className:a("p-4",t),...r},void 0,!1,void 0,this)});ys.displayName="CardContent";var vs=xr(({asChild:e=!1,className:t,...r},o)=>{return Cr(e?Pr:"div",{ref:o,className:a("flex items-center border-t border-border/50 p-4",t),...r},void 0,!1,void 0,this)});vs.displayName="CardFooter";var bs=xr(({asChild:e=!1,className:t,...r},o)=>{return Cr(e?Pr:"h3",{ref:o,className:a("font-semibold text-base leading-none tracking-tight",t),...r},void 0,!1,void 0,this)});bs.displayName="CardTitle";var Ts=xr(({asChild:e=!1,className:t,...r},o)=>{return Cr(e?Pr:"p",{ref:o,className:a("text-sm text-muted-foreground",t),...r},void 0,!1,void 0,this)});Ts.displayName="CardDescription";import*as Do from"@radix-ui/react-checkbox";import{cva as lg}from"class-variance-authority";import{Check as mg,Minus as dg}from"lucide-react";import{forwardRef as pg}from"react";import{jsxDEV as Bo}from"react/jsx-dev-runtime";var qe={sm:"sm",md:"md",lg:"lg",xl:"xl"},zr={default:"default",error:"error",success:"success"},Ps=lg("gs-interactive 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:{[qe.sm]:"h-4 w-4",[qe.md]:"h-5 w-5",[qe.lg]:"h-6 w-6",[qe.xl]:"h-7 w-7"},status:{[zr.default]:"enabled:hover:border-primary/70",[zr.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",[zr.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:qe.md,status:zr.default}}),hs={[qe.sm]:"size-3.5",[qe.md]:"size-3.5",[qe.lg]:"size-4",[qe.xl]:"size-5"},xs=pg(({className:e,size:t=qe.md,status:r=zr.default,checked:o,disabled:n,...i},s)=>{let l=c(t);return Bo(Do.Root,{ref:s,checked:o,disabled:n,className:a(Ps({size:l,status:r}),e),...i,children:Bo(Do.Indicator,{className:"gs-checkbox-indicator flex items-center justify-center text-current",children:o==="indeterminate"?Bo(dg,{className:hs[l]},void 0,!1,void 0,this):Bo(mg,{className:hs[l]},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)});xs.displayName="Checkbox";import{cva as Rt}from"class-variance-authority";import{forwardRef as cg,useCallback as ug,useState as fg}from"react";import{jsxDEV as Me,Fragment as Cs}from"react/jsx-dev-runtime";var Q={sm:"sm",md:"md",lg:"lg"},on={default:"default",ghost:"ghost"},zs=Rt("relative rounded-lg overflow-hidden font-mono",{variants:{size:{[Q.sm]:"text-xs",[Q.md]:"text-sm",[Q.lg]:"text-base"},variant:{[on.default]:"bg-muted border border-border",[on.ghost]:"bg-transparent"}},defaultVariants:{size:Q.md,variant:on.default}}),Ss=Rt("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.md}}),Ns=Rt("text-muted-foreground font-medium",{variants:{size:{[Q.sm]:"text-[11px]",[Q.md]:"text-xs",[Q.lg]:"text-sm"}},defaultVariants:{size:Q.md}}),ws=Rt(["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.md,copied:!1}}),Rs=Rt("overflow-x-auto",{variants:{size:{[Q.sm]:"p-2.5",[Q.md]:"p-4",[Q.lg]:"p-5"}},defaultVariants:{size:Q.md}}),Ms=Rt("text-foreground",{variants:{size:{[Q.sm]:"",[Q.md]:"",[Q.lg]:""},showLineNumbers:{true:"",false:""}},defaultVariants:{size:Q.md,showLineNumbers:!1}}),Ls=Rt("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.md,highlighted:!1}}),Hs=Rt("inline-block text-right text-muted-foreground select-none",{variants:{size:{[Q.sm]:"w-6 mr-2 text-[10px]",[Q.md]:"w-8 mr-4 text-xs",[Q.lg]:"w-10 mr-5 text-sm"}},defaultVariants:{size:Q.md}}),ks=cg(({className:e,code:t,language:r,showLineNumbers:o=!1,highlightedLines:n=[],showCopy:i=!0,size:s="md",variant:l="default",onCopy:d,...m},f)=>{let u=c(s),[h,p]=fg(!1),y=ug(async()=>{try{await navigator.clipboard.writeText(t),p(!0),d?.(t),setTimeout(()=>p(!1),2000)}catch(w){}},[t,d]),S=t.split(`
3
- `),M=new Set(n);return Me("div",{ref:f,className:a(zs({size:u,variant:l}),e),...m,children:[(r||i)&&Me("div",{className:a(Ss({size:u})),children:[Me("span",{className:a(Ns({size:u})),children:r},void 0,!1,void 0,this),i&&Me("button",{type:"button",onClick:y,className:a(ws({size:u,copied:h})),children:h?Me(Cs,{children:[Me("svg",{className:"size-3.5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:Me("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M5 13l4 4L19 7"},void 0,!1,void 0,this)},void 0,!1,void 0,this),"Copied!"]},void 0,!0,void 0,this):Me(Cs,{children:[Me("svg",{className:"size-3.5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:Me("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"},void 0,!1,void 0,this)},void 0,!1,void 0,this),"Copy"]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Me("div",{className:a(Rs({size:u})),children:Me("pre",{className:a(Ms({size:u,showLineNumbers:o})),children:Me("code",{children:S.map((w,T)=>Me("span",{className:a(Ls({size:u,highlighted:M.has(T+1)})),children:[o&&Me("span",{className:a(Hs({size:u})),children:T+1},void 0,!1,void 0,this),w,`
4
- `]},`line-${String(T)}`,!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)});ks.displayName="CodeBlock";import*as Sr from"@radix-ui/react-collapsible";import{cva as gg}from"class-variance-authority";import{forwardRef as yg}from"react";import{jsxDEV as Tg}from"react/jsx-dev-runtime";var As=gg("gs-collapsible-content overflow-hidden"),vg=Sr.Root,bg=Sr.CollapsibleTrigger,Is=yg(({className:e,...t},r)=>Tg(Sr.CollapsibleContent,{ref:r,className:a(As(),e),...t},void 0,!1,void 0,this));Is.displayName="CollapsibleContent";import*as Mt from"@radix-ui/react-dialog";import{cva as Je}from"class-variance-authority";import{createContext as hg,forwardRef as it,useContext as Pg,useEffect as xg,useState as Vs}from"react";import{jsxDEV as Pe}from"react/jsx-dev-runtime";var Fs=Je(["fixed left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 z-50","w-full max-w-lg","bg-background border border-border rounded-xl shadow-2xl","overflow-hidden","animate-in fade-in-0 zoom-in-95 duration-200","data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95"],{variants:{size:{sm:"max-w-sm",md:"max-w-lg",lg:"max-w-2xl"}},defaultVariants:{size:"md"}}),Os=Je(["fixed inset-0 z-50 bg-black/50 backdrop-blur-sm","animate-in fade-in-0 duration-200","data-[state=closed]:animate-out data-[state=closed]:fade-out-0"]),Bs=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:opacity-50"]),Ds=Je(["max-h-[300px] overflow-y-auto overflow-x-hidden p-2"]),_s=Je(["py-6 text-center text-sm text-muted-foreground"]),Gs=Je(["overflow-hidden"]),Ws=Je(["px-2 py-1.5 text-xs font-medium text-muted-foreground"]),_o={default:"default",danger:"danger"},Us=Je(["relative flex items-center gap-2 rounded-lg px-2 py-2","text-sm cursor-pointer select-none","outline-none transition-colors duration-150","data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50"],{variants:{selected:{true:"bg-primary/10 text-primary",false:"hover:bg-background-subtle"},variant:{[_o.default]:"text-foreground",[_o.danger]:"text-destructive hover:bg-destructive/10 focus:bg-destructive/10 focus:text-destructive"}},defaultVariants:{selected:!1,variant:_o.default}}),$s=Je(["-mx-1 my-1 h-px bg-border"]),Ks=Je(["ml-auto text-xs tracking-widest text-muted-foreground"]),Ys=Je(["flex items-center justify-center py-6"]),Xs=hg(null),an=()=>{let e=Pg(Xs);if(!e)throw Error("useCommand must be used within a Command");return e},nn=it(({className:e,children:t,loop:r=!0,...o},n)=>{let[i,s]=Vs(""),[l,d]=Vs(0);return Pe(Xs.Provider,{value:{search:i,setSearch:s,selectedIndex:l,setSelectedIndex:d},children:Pe("div",{ref:n,className:a("flex flex-col overflow-hidden rounded-xl bg-background",e),...o,children:t},void 0,!1,void 0,this)},void 0,!1,void 0,this)});nn.displayName="Command";var Zs=it(({children:e,size:t,...r},o)=>{return Pe(Mt.Root,{...r,children:Pe(Mt.Portal,{children:[Pe(Mt.Overlay,{className:a(Os())},void 0,!1,void 0,this),Pe(Mt.Content,{ref:o,className:a(Fs({size:t})),children:Pe(nn,{children:e},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)});Zs.displayName="CommandDialog";var qs=it(({className:e,icon:t,...r},o)=>{let{search:n,setSearch:i,setSelectedIndex:s}=an();return Pe("div",{className:"flex items-center border-border border-b px-3",children:[t&&Pe("span",{className:"mr-2 shrink-0 text-muted-foreground",children:t},void 0,!1,void 0,this),Pe("input",{ref:o,value:n,onChange:(l)=>{i(l.target.value),s(0)},className:a(Bs(),e),...r},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});qs.displayName="CommandInput";var Js=it(({className:e,children:t,...r},o)=>{return Pe("div",{ref:o,className:a(Ds(),e),...r,children:t},void 0,!1,void 0,this)});Js.displayName="CommandList";var Qs=it(({className:e,children:t="No results found.",...r},o)=>{return Pe("div",{ref:o,className:a(_s(),e),...r,children:t},void 0,!1,void 0,this)});Qs.displayName="CommandEmpty";var Es=it(({className:e,heading:t,children:r,...o},n)=>{return Pe("div",{ref:n,className:a(Gs(),e),...o,children:[t&&Pe("div",{className:a(Ws()),children:t},void 0,!1,void 0,this),r]},void 0,!0,void 0,this)});Es.displayName="CommandGroup";var js=it(({className:e,disabled:t,onSelect:r,children:o,keywords:n,variant:i,...s},l)=>{let{search:d}=an();if(!(()=>{if(!d)return!0;let f=d.toLowerCase();if((typeof o==="string"?o.toLowerCase():"").includes(f))return!0;if(n?.some((h)=>h.toLowerCase().includes(f)))return!0;return!1})())return null;return Pe("div",{ref:l,role:"option","aria-selected":!1,"aria-disabled":t,"data-disabled":t,onClick:()=>!t&&r?.(),onKeyDown:(f)=>{if(f.key==="Enter"&&!t)f.preventDefault(),r?.()},tabIndex:t?-1:0,className:a(Us({selected:!1,variant:i}),e),...s,children:o},void 0,!1,void 0,this)});js.displayName="CommandItem";var el=it(({className:e,...t},r)=>{return Pe("div",{ref:r,className:a($s(),e),...t},void 0,!1,void 0,this)});el.displayName="CommandSeparator";var tl=it(({className:e,children:t,...r},o)=>{return Pe("span",{ref:o,className:a(Ks(),e),...r,children:t},void 0,!1,void 0,this)});tl.displayName="CommandShortcut";var rl=it(({className:e,children:t,...r},o)=>{return Pe("div",{ref:o,className:a(Ys(),e),...r,children:t},void 0,!1,void 0,this)});rl.displayName="CommandLoading";var Cg=({key:e,modifier:t="meta",callback:r})=>{xg(()=>{let o=(n)=>{if({ctrl:n.ctrlKey,meta:n.metaKey,alt:n.altKey,shift:n.shiftKey}[t]&&n.key.toLowerCase()===e.toLowerCase())n.preventDefault(),r()};return document.addEventListener("keydown",o),()=>document.removeEventListener("keydown",o)},[e,t,r])};import*as _ from"@radix-ui/react-context-menu";import{cva as Kt}from"class-variance-authority";import{Check as zg,ChevronRight as Sg,Circle as Ng}from"lucide-react";import{createContext as wg,forwardRef as Lt,useContext as Nr}from"react";import{jsxDEV as ye}from"react/jsx-dev-runtime";var q={sm:"sm",md:"md",lg:"lg"},Go={default:"default",danger:"danger"},Yt=wg(q.md),sn=Kt("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)]"),ln=Kt("gs-interactive 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-6 gap-1.5 px-1.5 text-xs [&_svg]:size-3",[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:{[Go.default]:"hover:bg-accent/80 focus:bg-accent focus:text-accent-foreground",[Go.danger]:"text-destructive hover:bg-destructive/10 focus:bg-destructive/10 focus:text-destructive"}},defaultVariants:{size:q.md,variant:Go.default}}),ol=Kt("gs-interactive 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-6 pl-6 pr-1.5 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.md}}),al=Kt("gs-interactive 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-6 pl-6 pr-1.5 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.md}}),nl=Kt("font-semibold text-muted-foreground",{variants:{size:{[q.sm]:"px-1.5 py-0.5 text-[10px]",[q.md]:"px-2 py-1.5 text-xs",[q.lg]:"px-2.5 py-1.5 text-xs"}},defaultVariants:{size:q.md}}),il=Kt("-mx-1 my-1 h-px bg-border/50"),sl=Kt("ml-auto tracking-widest text-muted-foreground/70",{variants:{size:{[q.sm]:"text-[10px]",[q.md]:"text-xs",[q.lg]:"text-xs"}},defaultVariants:{size:q.md}}),ll={[q.sm]:"absolute left-1.5 flex size-3 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"},Rg={[q.sm]:"size-3",[q.md]:"size-3.5",[q.lg]:"size-4"},Mg={[q.sm]:"size-1.5 fill-current",[q.md]:"size-2 fill-current",[q.lg]:"size-2.5 fill-current"},Lg=_.Root,Hg=_.Trigger,kg=_.Group,Ag=_.Portal,Ig=_.Sub,Vg=_.RadioGroup,ml=Lt(({className:e,inset:t,children:r,...o},n)=>{let i=Nr(Yt),s=c(i);return ye(_.SubTrigger,{ref:n,className:a(ln({size:s}),"data-[state=open]:bg-accent",t&&"pl-8",e),...o,children:[r,ye(Sg,{className:"ml-auto"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});ml.displayName=_.SubTrigger.displayName;var dl=Lt(({className:e,...t},r)=>ye(_.Portal,{children:ye(_.SubContent,{ref:r,className:a(sn(),e),...t},void 0,!1,void 0,this)},void 0,!1,void 0,this));dl.displayName=_.SubContent.displayName;var pl=Lt(({className:e,size:t,...r},o)=>{let n=c(t)??q.md;return ye(Yt.Provider,{value:n,children:ye(_.Portal,{children:ye(_.Content,{ref:o,className:a(sn(),e),...r},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)});pl.displayName=_.Content.displayName;var cl=Lt(({className:e,inset:t,variant:r,...o},n)=>{let i=Nr(Yt),s=c(i);return ye(_.Item,{ref:n,className:a(ln({size:s,variant:r}),t&&"pl-8",e),...o},void 0,!1,void 0,this)});cl.displayName=_.Item.displayName;var ul=Lt(({className:e,children:t,checked:r,...o},n)=>{let i=Nr(Yt),s=c(i)??q.md;return ye(_.CheckboxItem,{ref:n,className:a(ol({size:s}),e),checked:r,...o,children:[ye("span",{className:ll[s],children:ye(_.ItemIndicator,{children:ye(zg,{className:Rg[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)});ul.displayName=_.CheckboxItem.displayName;var fl=Lt(({className:e,children:t,...r},o)=>{let n=Nr(Yt),i=c(n)??q.md;return ye(_.RadioItem,{ref:o,className:a(al({size:i}),e),...r,children:[ye("span",{className:ll[i],children:ye(_.ItemIndicator,{children:ye(Ng,{className:Mg[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)});fl.displayName=_.RadioItem.displayName;var gl=Lt(({className:e,inset:t,...r},o)=>{let n=Nr(Yt),i=c(n);return ye(_.Label,{ref:o,className:a(nl({size:i}),t&&"pl-8",e),...r},void 0,!1,void 0,this)});gl.displayName=_.Label.displayName;var yl=Lt(({className:e,...t},r)=>ye(_.Separator,{ref:r,className:a(il(),e),...t},void 0,!1,void 0,this));yl.displayName=_.Separator.displayName;var vl=({className:e,...t})=>{let r=Nr(Yt),o=c(r);return ye("span",{className:a(sl({size:o}),e),...t},void 0,!1,void 0,this)};vl.displayName="ContextMenuShortcut";import*as xe from"@radix-ui/react-dialog";import{cva as Fg}from"class-variance-authority";import{X as Og}from"lucide-react";import{forwardRef as Wo}from"react";import{jsxDEV as Qe}from"react/jsx-dev-runtime";var Ht={sm:"sm",md:"md",lg:"lg",xl:"xl",full:"full"},Qr=xe.Root,Bg=xe.Trigger,Uo=xe.Portal,Dg=xe.Close,mn=xe.Content,Er=Wo(({className:e,...t},r)=>Qe(xe.Overlay,{ref:r,className:a("gs-dialog-overlay fixed inset-0 z-50 bg-black/50",e),...t},void 0,!1,void 0,this));Er.displayName="DialogOverlay";var bl=Fg("gs-dialog-content fixed left-1/2 top-1/2 z-50 grid w-full gap-4 border border-border bg-background p-6 text-foreground shadow-[var(--shadow-xl)] rounded-[var(--radius)]",{variants:{size:{[Ht.sm]:"max-w-sm",[Ht.md]:"max-w-md",[Ht.lg]:"max-w-lg",[Ht.xl]:"max-w-xl",[Ht.full]:"max-w-[calc(100vw-2rem)] max-h-[calc(100vh-2rem)]"}},defaultVariants:{size:Ht.md}}),$o=Wo(({className:e,children:t,size:r=Ht.md,showClose:o=!0,...n},i)=>{let s=c(r);return Qe(Uo,{children:[Qe(Er,{},void 0,!1,void 0,this),Qe(xe.Content,{ref:i,className:a(bl({size:s}),e),...n,children:[t,o&&Qe(xe.Close,{className:"gs-interactive 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",children:[Qe(Og,{className:"size-4"},void 0,!1,void 0,this),Qe("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)});$o.displayName="DialogContent";var Tl=({className:e,...t})=>Qe("div",{className:a("flex flex-col space-y-1.5 text-center sm:text-left",e),...t},void 0,!1,void 0,this);Tl.displayName="DialogHeader";var hl=({className:e,...t})=>Qe("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);hl.displayName="DialogFooter";var Ko=Wo(({className:e,...t},r)=>Qe(xe.Title,{ref:r,className:a("font-semibold text-lg leading-none tracking-tight",e),...t},void 0,!1,void 0,this));Ko.displayName="DialogTitle";var Pl=Wo(({className:e,...t},r)=>Qe(xe.Description,{ref:r,className:a("text-muted-foreground text-sm",e),...t},void 0,!1,void 0,this));Pl.displayName="DialogDescription";import{cva as dn}from"class-variance-authority";import{X as _g}from"lucide-react";import{forwardRef as Yo}from"react";import{Drawer as vt}from"vaul";import{jsxDEV as _e}from"react/jsx-dev-runtime";var Ge={sm:"sm",md:"md",lg:"lg",xl:"xl",full:"full"},Gg={[Ge.sm]:"sm:max-w-sm",[Ge.md]:"sm:max-w-md",[Ge.lg]:"sm:max-w-lg",[Ge.xl]:"sm:max-w-xl",[Ge.full]:"sm:max-w-full"},Wg={[Ge.sm]:"sm:max-h-[30vh]",[Ge.md]:"sm:max-h-[50vh]",[Ge.lg]:"sm:max-h-[70vh]",[Ge.xl]:"sm:max-h-[85vh]",[Ge.full]:"sm:max-h-full"},xl=dn(["fixed inset-0 z-50 bg-black/50","data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:duration-200","data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:duration-150"]),Cl=dn(["group/drawer-content fixed z-50 flex h-auto flex-col border border-border bg-background 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"]),zl=dn("mx-auto shrink-0 rounded-full bg-muted-foreground/25 transition-colors duration-150 hover:bg-muted-foreground/40",{variants:{direction:{top:"mb-4 mt-2 h-1.5 w-[60px]",bottom:"mb-2 mt-4 h-1.5 w-[60px]",left:"ml-auto mr-2 mt-auto mb-auto h-[60px] w-1.5",right:"ml-2 mr-auto mt-auto mb-auto h-[60px] w-1.5"}},defaultVariants:{direction:"bottom"}}),Ug=vt.Root,$g=vt.Trigger,Kg=vt.Close,Sl=vt.Portal,pn=Yo(({className:e,...t},r)=>_e(vt.Overlay,{ref:r,className:a(xl(),e),...t},void 0,!1,void 0,this));pn.displayName="DrawerOverlay";var Nl=Yo(({size:e=Ge.md,showClose:t=!1,direction:r="bottom",className:o,children:n,...i},s)=>{let d=r==="left"||r==="right"?Gg[e]:Wg[e];return _e(Sl,{children:[_e(pn,{},void 0,!1,void 0,this),_e(vt.Content,{ref:s,className:a(Cl(),d,o),...i,children:[(r==="top"||r==="bottom")&&_e("div",{className:a(zl({direction:r}))},void 0,!1,void 0,this),n,t&&_e(vt.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:[_e(_g,{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)});Nl.displayName="DrawerContent";var wl=({className:e,...t})=>_e("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);wl.displayName="DrawerHeader";var Rl=({className:e,...t})=>_e("div",{className:a("mt-auto flex flex-col gap-2 p-4",e),...t},void 0,!1,void 0,this);Rl.displayName="DrawerFooter";var Ml=Yo(({className:e,...t},r)=>_e(vt.Title,{ref:r,className:a("font-semibold text-foreground text-lg",e),...t},void 0,!1,void 0,this));Ml.displayName="DrawerTitle";var Ll=Yo(({className:e,...t},r)=>_e(vt.Description,{ref:r,className:a("text-muted-foreground text-sm",e),...t},void 0,!1,void 0,this));Ll.displayName="DrawerDescription";import*as G from"@radix-ui/react-dropdown-menu";import{cva as Zt}from"class-variance-authority";import{Check as Yg,ChevronRight as Xg,Circle as Zg}from"lucide-react";import{createContext as qg,forwardRef as kt,useCallback as Jg,useContext as wr,useEffect as Qg,useRef as Hl,useState as Eg}from"react";import{jsxDEV as de}from"react/jsx-dev-runtime";var J={sm:"sm",md:"md",lg:"lg"},Xo={default:"default",danger:"danger"},qt=qg(J.md),Xt=null,jr=null,jg=0,cn=Zt("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)]"),un=Zt("gs-interactive 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:{[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:{[Xo.default]:"hover:bg-accent/80 focus:bg-accent focus:text-accent-foreground",[Xo.danger]:"text-destructive hover:bg-destructive/10 focus:bg-destructive/10 focus:text-destructive"}},defaultVariants:{size:J.md,variant:Xo.default}}),kl=Zt("gs-interactive 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:{[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.md}}),Al=Zt("gs-interactive 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:{[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.md}}),Il=Zt("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.md}}),Vl=Zt("-mx-1 my-1 h-px bg-border/50"),Fl=Zt("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.md}}),Ol={[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"},ey={[J.sm]:"size-3",[J.md]:"size-3.5",[J.lg]:"size-4"},ty={[J.sm]:"size-1.5 fill-current",[J.md]:"size-2 fill-current",[J.lg]:"size-2.5 fill-current"},Bl=({children:e,open:t,defaultOpen:r,onOpenChange:o,...n})=>{let[i,s]=Eg(r??!1),l=t!==void 0,d=l?t:i,m=Hl(++jg),f=Hl({onOpenChange:o,isControlled:l});f.current={onOpenChange:o,isControlled:l};let u=Jg((h)=>{let{onOpenChange:p,isControlled:y}=f.current;if(h){if(Xt!==null&&Xt!==m.current&&jr)jr();Xt=m.current,jr=()=>{let{onOpenChange:S,isControlled:M}=f.current;if(!M)s(!1);S?.(!1)}}else if(Xt===m.current)Xt=null,jr=null;if(!y)s(h);p?.(h)},[]);return Qg(()=>{return()=>{if(Xt===m.current)Xt=null,jr=null}},[]),de(G.Root,{open:d,onOpenChange:u,...n,children:e},void 0,!1,void 0,this)};Bl.displayName="DropdownMenu";var ry=G.Trigger,oy=G.Group,ay=G.Portal,ny=G.Sub,iy=G.RadioGroup,Dl=kt(({className:e,inset:t,children:r,...o},n)=>{let i=wr(qt),s=c(i);return de(G.SubTrigger,{ref:n,className:a(un({size:s}),"data-[state=open]:bg-accent",t&&"pl-8",e),...o,children:[r,de(Xg,{className:"ml-auto"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});Dl.displayName=G.SubTrigger.displayName;var _l=kt(({className:e,...t},r)=>de(G.Portal,{children:de(G.SubContent,{ref:r,className:a(cn(),e),...t},void 0,!1,void 0,this)},void 0,!1,void 0,this));_l.displayName=G.SubContent.displayName;var Gl=kt(({className:e,sideOffset:t=4,size:r,...o},n)=>{let i=c(r)??J.md;return de(qt.Provider,{value:i,children:de(G.Portal,{children:de(G.Content,{ref:n,sideOffset:t,className:a(cn(),e),...o},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)});Gl.displayName=G.Content.displayName;var Wl=kt(({className:e,inset:t,variant:r,...o},n)=>{let i=wr(qt),s=c(i);return de(G.Item,{ref:n,className:a(un({size:s,variant:r}),t&&"pl-8",e),...o},void 0,!1,void 0,this)});Wl.displayName=G.Item.displayName;var Ul=kt(({className:e,children:t,checked:r,...o},n)=>{let i=wr(qt),s=c(i)??J.md;return de(G.CheckboxItem,{ref:n,className:a(kl({size:s}),e),checked:r,...o,children:[de("span",{className:Ol[s],children:de(G.ItemIndicator,{children:de(Yg,{className:ey[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)});Ul.displayName=G.CheckboxItem.displayName;var $l=kt(({className:e,children:t,...r},o)=>{let n=wr(qt),i=c(n)??J.md;return de(G.RadioItem,{ref:o,className:a(Al({size:i}),e),...r,children:[de("span",{className:Ol[i],children:de(G.ItemIndicator,{children:de(Zg,{className:ty[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)});$l.displayName=G.RadioItem.displayName;var Kl=kt(({className:e,inset:t,...r},o)=>{let n=wr(qt),i=c(n);return de(G.Label,{ref:o,className:a(Il({size:i}),t&&"pl-8",e),...r},void 0,!1,void 0,this)});Kl.displayName=G.Label.displayName;var Yl=kt(({className:e,...t},r)=>de(G.Separator,{ref:r,className:a(Vl(),e),...t},void 0,!1,void 0,this));Yl.displayName=G.Separator.displayName;var Xl=({className:e,...t})=>{let r=wr(qt),o=c(r);return de("span",{className:a(Fl({size:o}),e),...t},void 0,!1,void 0,this)};Xl.displayName="DropdownMenuShortcut";import{cva as to}from"class-variance-authority";import{forwardRef as sy}from"react";import{jsxDEV as eo}from"react/jsx-dev-runtime";var Se={sm:"sm",md:"md",lg:"lg"},Zl=to("flex flex-col items-center justify-center text-center rounded-[var(--radius)] border border-dashed border-border/50 bg-muted/20",{variants:{size:{[Se.sm]:"gap-2 p-4",[Se.md]:"gap-4 p-8",[Se.lg]:"gap-6 p-12"}},defaultVariants:{size:Se.md}}),ql=to("flex items-center justify-center rounded-full bg-muted/50 text-muted-foreground",{variants:{size:{[Se.sm]:"h-10 w-10 [&>svg]:h-4 [&>svg]:w-4",[Se.md]:"h-16 w-16 [&>svg]:h-7 [&>svg]:w-7",[Se.lg]:"h-20 w-20 [&>svg]:h-9 [&>svg]:w-9"}},defaultVariants:{size:Se.md}}),Jl=to("font-semibold text-foreground",{variants:{size:{[Se.sm]:"text-sm",[Se.md]:"text-lg",[Se.lg]:"text-xl"}},defaultVariants:{size:Se.md}}),Ql=to("text-muted-foreground max-w-sm",{variants:{size:{[Se.sm]:"text-xs",[Se.md]:"text-sm",[Se.lg]:"text-base"}},defaultVariants:{size:Se.md}}),El=to("flex items-center gap-2 mt-2"),jl=sy(({className:e,icon:t,title:r,description:o,actions:n,size:i=Se.md,children:s,...l},d)=>{let m=c(i);return eo("div",{ref:d,className:a(Zl({size:m}),e),...l,children:[t&&eo("div",{className:ql({size:m}),children:t},void 0,!1,void 0,this),r&&eo("h3",{className:Jl({size:m}),children:r},void 0,!1,void 0,this),o&&eo("p",{className:Ql({size:m}),children:o},void 0,!1,void 0,this),n&&eo("div",{className:El(),children:n},void 0,!1,void 0,this),s]},void 0,!0,void 0,this)});jl.displayName="EmptyState";import{cva as Rr}from"class-variance-authority";import{Component as ly,createElement as em}from"react";import{jsxDEV as Le,Fragment as dy}from"react/jsx-dev-runtime";var tm=Rr(["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",xl:"gap-7 p-14"},variant:{destructive:"border-destructive/30 bg-destructive/8",warning:"border-warning/30 bg-warning/8",info:"border-info/30 bg-info/8"}},defaultVariants:{size:"md",variant:"destructive"}}),rm=Rr(["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",xl:"h-24 w-24 [&>svg]:h-10 [&>svg]:w-10"},variant:{destructive:"bg-destructive/10 text-destructive",warning:"bg-warning/10 text-warning",info:"bg-info/10 text-info"}},defaultVariants:{size:"md",variant:"destructive"}}),om=Rr("font-semibold transition-colors duration-300",{variants:{size:{sm:"text-lg",md:"text-xl",lg:"text-2xl",xl:"text-3xl"},variant:{destructive:"text-destructive",warning:"text-warning",info:"text-info"}},defaultVariants:{size:"md",variant:"destructive"}}),am=Rr("max-w-xl text-muted-foreground transition-all duration-200",{variants:{size:{sm:"text-sm",md:"text-sm",lg:"text-base",xl:"text-lg"}},defaultVariants:{size:"md"}}),nm=Rr("mt-2 flex flex-wrap items-center justify-center gap-2"),im=Rr("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 sm extends ly{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="md",variant:n="destructive",className:i,title:s="Something went wrong",description:l="An unexpected error occurred. Please try again.",icon:d,actions:m,resetLabel:f="Try again",hideReset:u=!1,renderDetails:h}=this.props;if(this.state.hasError&&this.state.error){let p={error:this.state.error,reset:this.handleReset};if(t){if(typeof t==="function")return em(t,p);return t}let y=null;if(m)y=typeof m==="function"?em(m,p):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"};y=Le("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:f},void 0,!1,void 0,this)}let S=h?h(this.state.error):Le(dy,{children:[Le("strong",{children:"Error:"},void 0,!1,void 0,this)," ",this.state.error.message,this.state.error.stack&&Le("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 Le("div",{className:a(tm({size:o,variant:n}),i),children:[Le("div",{className:a(rm({size:o,variant:n})),children:d??Le(my,{},void 0,!1,void 0,this)},void 0,!1,void 0,this),Le("h3",{className:a(om({size:o,variant:n})),children:s},void 0,!1,void 0,this),Le("p",{className:a(am({size:o})),children:l},void 0,!1,void 0,this),y&&Le("div",{className:a(nm()),children:y},void 0,!1,void 0,this),r&&Le("div",{className:a(im()),children:S},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}return e}}function my(){return Le("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:[Le("circle",{cx:"12",cy:"12",r:"10"},void 0,!1,void 0,this),Le("line",{x1:"12",x2:"12",y1:"8",y2:"12"},void 0,!1,void 0,this),Le("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 At}from"class-variance-authority";import{forwardRef as py,useCallback as Ee,useRef as cy,useState as lm}from"react";import{jsxDEV as Ne}from"react/jsx-dev-runtime";var ae={sm:"sm",md:"md",lg:"lg",xl:"xl"},mm=At(["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:{[ae.sm]:"min-h-28 p-5",[ae.md]:"min-h-36 p-8",[ae.lg]:"min-h-44 p-10",[ae.xl]:"min-h-52 p-12"},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:ae.md,isDragging:!1,disabled:!1,hasError:!1}}),dm=At("text-muted-foreground transition-colors duration-200",{variants:{size:{[ae.sm]:"mb-2 size-6",[ae.md]:"size-8 mb-3",[ae.lg]:"size-10 mb-4",[ae.xl]:"size-12 mb-5"},isDragging:{true:"text-primary",false:""}},defaultVariants:{size:ae.md,isDragging:!1}}),fn=At("text-center",{variants:{size:{[ae.sm]:"text-sm",[ae.md]:"text-sm",[ae.lg]:"text-base",[ae.xl]:"text-lg"}},defaultVariants:{size:ae.md}}),pm=At("mt-4 w-full space-y-2"),cm=At(["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"]),um=At("min-w-0 flex-1 truncate font-medium text-foreground",{variants:{size:{[ae.sm]:"text-sm",[ae.md]:"text-sm",[ae.lg]:"text-base",[ae.xl]:"text-base"}},defaultVariants:{size:"md"}}),fm=At("text-muted-foreground",{variants:{size:{[ae.sm]:"text-xs",[ae.md]:"text-sm",[ae.lg]:"text-sm",[ae.xl]:"text-base"}},defaultVariants:{size:"md"}}),gm=At(["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"]),ym=py(({className:e,size:t="md",disabled:r=!1,accept:o,multiple:n=!1,maxSize:i,maxFiles:s,value:l=[],onChange:d,onError:m,icon:f,title:u="Drop files here or click to upload",description:h,showFileList:p=!0,...y},S)=>{let M=c(t),[w,T]=lm(!1),[b,x]=lm(!1),O=cy(null),R=Ee((L)=>{if(L===0)return"0 Bytes";let X=1024,g=["Bytes","KB","MB","GB"],v=Math.floor(Math.log(L)/Math.log(X));return`${parseFloat((L/X**v).toFixed(2))} ${g[v]}`},[]),I=Ee((L)=>{let X=[...L];if(x(!1),o){let g=o.split(",").map((v)=>v.trim());if(X=X.filter((v)=>{return g.some((H)=>{if(H.startsWith("."))return v.name.toLowerCase().endsWith(H.toLowerCase());if(H.endsWith("/*"))return v.type.startsWith(H.slice(0,-1));return v.type===H})}),X.length<L.length)m?.("Some files were rejected due to file type"),x(!0)}if(i){let g=X.length;if(X=X.filter((v)=>v.size<=i),X.length<g)m?.(`File size must be less than ${R(i)}`),x(!0)}if(s&&X.length+l.length>s)X=X.slice(0,s-l.length),m?.(`Maximum ${s} files allowed`),x(!0);return X},[o,i,s,l.length,m,R]),C=Ee((L)=>{if(!L||L.length===0)return;let X=Array.from(L),g=I(X);if(g.length>0)if(n)d?.([...l,...g]);else d?.(g.slice(0,1))},[n,l,d,I]),V=Ee((L)=>{L.preventDefault(),L.stopPropagation(),T(!0)},[]),Y=Ee((L)=>{L.preventDefault(),L.stopPropagation(),T(!1)},[]),F=Ee((L)=>{L.preventDefault(),L.stopPropagation()},[]),K=Ee((L)=>{if(L.preventDefault(),L.stopPropagation(),T(!1),r)return;C(L.dataTransfer.files)},[r,C]),N=Ee((L)=>{if(C(L.target.files),O.current)O.current.value=""},[C]),A=Ee(()=>{if(!r)O.current?.click()},[r]),z=Ee((L)=>{if(L.key==="Enter"||L.key===" ")L.preventDefault(),A()},[A]),B=Ee((L)=>{let X=l.filter((g,v)=>v!==L);d?.(X)},[l,d]),U=Ne("svg",{className:a(dm({size:M,isDragging:w})),fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1.5,children:Ne("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 Ne("div",{ref:S,className:a("w-full",e),...y,children:[Ne("div",{role:"button",tabIndex:r?-1:0,onClick:A,onKeyDown:z,onDragEnter:V,onDragLeave:Y,onDragOver:F,onDrop:K,className:a(mm({size:M,isDragging:w,disabled:r,hasError:b})),children:[Ne("input",{ref:O,type:"file",accept:o,multiple:n,disabled:r,onChange:N,className:"sr-only"},void 0,!1,void 0,this),f||U,Ne("p",{className:a(fn({size:M}),"font-medium text-foreground"),children:u},void 0,!1,void 0,this),h&&Ne("p",{className:a(fn({size:M}),"mt-1 text-muted-foreground"),children:h},void 0,!1,void 0,this)]},void 0,!0,void 0,this),p&&l.length>0&&Ne("div",{className:a(pm()),children:l.map((L,X)=>Ne("div",{className:a(cm()),children:[Ne("svg",{className:"size-5 shrink-0 text-muted-foreground",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1.5,children:Ne("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),Ne("span",{className:a(um({size:M})),children:L.name},void 0,!1,void 0,this),Ne("span",{className:a(fm({size:M})),children:R(L.size)},void 0,!1,void 0,this),Ne("button",{type:"button",onClick:(g)=>{g.stopPropagation(),B(X)},className:a(gm()),"aria-label":`Remove ${L.name}`,children:Ne("svg",{className:"size-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:Ne("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)]},`${L.name}-${X}`,!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});ym.displayName="FileUpload";import{cva as uy}from"class-variance-authority";import{createContext as fy,forwardRef as Zo,useContext as gy,useId as yy}from"react";import{jsxDEV as Jt,Fragment as by}from"react/jsx-dev-runtime";var We={sm:"sm",md:"md",lg:"lg"},vm=fy(null),ro=()=>{let e=gy(vm);if(!e)throw Error("useFormField must be used within a FormField");return e},bm=uy("flex flex-col",{variants:{size:{[We.sm]:"gap-1",[We.md]:"gap-1.5",[We.lg]:"gap-2"}},defaultVariants:{size:We.md}}),Tm=Zo(({className:e,size:t=We.md,error:r,disabled:o=!1,required:n=!1,children:i,...s},l)=>{let d=yy(),m=c(t),f={id:d,size:m,error:r,disabled:o,required:n};return Jt(vm.Provider,{value:f,children:Jt("div",{ref:l,className:a(bm({size:m}),e),...s,children:i},void 0,!1,void 0,this)},void 0,!1,void 0,this)});Tm.displayName="FormField";var vy={[We.sm]:"text-xs",[We.md]:"text-sm",[We.lg]:"text-base"},hm=Zo(({className:e,htmlFor:t,children:r,...o},n)=>{let{id:i,size:s,disabled:l,required:d}=ro();return Jt("label",{ref:n,htmlFor:t??i,className:a("inline-block font-medium text-foreground select-none",vy[s],l&&"cursor-not-allowed opacity-60",e),...o,children:[r,d&&Jt("span",{className:"ml-0.5 text-destructive","aria-hidden":"true",children:"*"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});hm.displayName="FormFieldLabel";var Pm={[We.sm]:"text-[10px]",[We.md]:"text-xs",[We.lg]:"text-sm"},xm=Zo(({className:e,...t},r)=>{let{id:o,size:n}=ro();return Jt("p",{ref:r,id:`${o}-description`,className:a("text-muted-foreground",Pm[n],e),...t},void 0,!1,void 0,this)});xm.displayName="FormFieldDescription";var Cm=Zo(({className:e,children:t,...r},o)=>{let{id:n,size:i,error:s}=ro(),l=t??s;if(!l)return null;return Jt("p",{ref:o,id:`${n}-error`,role:"alert",className:a("text-destructive",Pm[i],e),...r,children:l},void 0,!1,void 0,this)});Cm.displayName="FormFieldError";var zm=({children:e})=>{let{id:t,disabled:r,required:o,error:n}=ro(),i=[n?`${t}-error`:void 0,`${t}-description`].filter(Boolean).join(" ");return Jt(by,{children:e({id:t,disabled:r,required:o,status:n?"error":"default","aria-describedby":i||void 0,"aria-invalid":n?!0:void 0})},void 0,!1,void 0,this)};zm.displayName="FormFieldControl";import*as Qt from"@radix-ui/react-hover-card";import{cva as Ty}from"class-variance-authority";import{forwardRef as hy}from"react";import{jsxDEV as Cy}from"react/jsx-dev-runtime";var Mr={sm:"sm",md:"md",lg:"lg"},Sm=Ty("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:{[Mr.sm]:"w-52 p-3 text-xs",[Mr.md]:"w-64 p-4 text-sm",[Mr.lg]:"w-80 p-5 text-sm"}},defaultVariants:{size:Mr.md}}),Py=Qt.Root,xy=Qt.Trigger,Nm=hy(({className:e,align:t="center",sideOffset:r=4,size:o=Mr.md,...n},i)=>{let s=c(o);return Cy(Qt.Content,{ref:i,align:t,sideOffset:r,className:a(Sm({size:s}),e),...n},void 0,!1,void 0,this)});Nm.displayName=Qt.Content.displayName;import{cva as zy}from"class-variance-authority";import{X as Sy}from"lucide-react";import{forwardRef as Ny,useRef as wy,useState as Ry}from"react";import{jsxDEV as Et}from"react/jsx-dev-runtime";var oo={default:"default",error:"error",success:"success"},j={sm:"sm",md:"md",lg:"lg",xl:"xl"},My="Clear input",Rm=zy("gs-interactive 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:{[oo.default]:"focus-visible:ring-primary",[oo.error]:"border-destructive focus-visible:ring-destructive",[oo.success]:"border-success focus-visible:ring-success"},size:{[j.sm]:"h-8 px-2 text-xs",[j.md]:"h-10 px-3",[j.lg]:"h-11 px-4",[j.xl]:"h-12 px-4 text-base"}},defaultVariants:{status:oo.default,size:j.md}}),Ly={[j.sm]:"pl-7",[j.md]:"pl-9",[j.lg]:"pl-10",[j.xl]:"pl-10"},Hy={[j.sm]:"pr-7",[j.md]:"pr-9",[j.lg]:"pr-10",[j.xl]:"pr-10"},ky={[j.sm]:"pr-12",[j.md]:"pr-16",[j.lg]:"pr-18",[j.xl]:"pr-18"},Ay={[j.sm]:"text-xs left-2",[j.md]:"text-sm left-3",[j.lg]:"text-sm left-3.5",[j.xl]:"text-base left-3.5"},Iy={[j.sm]:"text-xs",[j.md]:"text-sm",[j.lg]:"text-sm",[j.xl]:"text-base"},Vy={[j.sm]:"size-4",[j.md]:"size-5",[j.lg]:"size-5",[j.xl]:"size-6"};function wm(e){if(e===void 0||e===null)return"";if(Array.isArray(e))return e.join("");return String(e)}var Mm=Ny(({className:e,status:t=oo.default,size:r=j.md,fullWidth:o=!1,prefix:n,suffix:i,clearable:s=!1,clearAriaLabel:l=My,onClear:d,onValueChange:m,disabled:f,readOnly:u,onChange:h,value:p,defaultValue:y,...S},M)=>{let w=Boolean(n),T=Boolean(i),b=c(r),x=wy(null),O=ao(M,x),[R,I]=Ry(()=>wm(y)),C=p!==void 0,V=C?wm(p):R,Y=s&&!f&&!u&&V.length>0,F=T||Y,K=T&&Y,N=(z)=>{let B=z.target.value;if(!C)I(B);m?.(B),h?.(z)},A=()=>{if(!C)I("");m?.("");let z=x.current;if(z)z.value="",z.dispatchEvent(new Event("input",{bubbles:!0})),z.focus();d?.()};return Et("div",{className:a("relative flex items-center",o&&"w-full"),children:[w&&Et("span",{className:a("absolute inset-y-0 flex items-center text-muted-foreground",Ay[b]),children:n},void 0,!1,void 0,this),Et("input",{ref:O,className:a(Rm({status:t,size:b}),w&&Ly[b],K&&ky[b],!K&&F&&Hy[b],e),disabled:f,readOnly:u,onChange:N,value:V,...S},void 0,!1,void 0,this),F&&Et("span",{className:a("absolute inset-y-0 right-2 flex items-center gap-1 text-muted-foreground",Iy[b]),children:[T&&Et("span",{className:"inline-flex items-center",children:i},void 0,!1,void 0,this),Y&&Et("button",{type:"button","aria-label":l,onMouseDown:(z)=>z.preventDefault(),onClick:A,className:a("gs-interactive 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",Vy[b]),children:Et(Sy,{className:"size-3.5"},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)});Mm.displayName="Input";import{cva as Fy}from"class-variance-authority";import{forwardRef as Oy}from"react";function no(){return gn()}import{jsxDEV as By}from"react/jsx-dev-runtime";var Lr={sm:"sm",md:"md",lg:"lg"},Lm=Fy("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:{[Lr.sm]:"min-w-5 h-5 px-1 text-[10px]",[Lr.md]:"min-w-6 h-6 px-1.5 text-xs",[Lr.lg]:"min-w-7 h-7 px-2 text-sm"}},defaultVariants:{size:Lr.md}}),Hm=Oy(({className:e,size:t=Lr.md,keys:r,children:o,...n},i)=>{let s=c(t),{isMac:l}=no(),d=r?io(r,l):o;return By("kbd",{ref:i,className:a(Lm({size:s}),e),...n,children:d},void 0,!1,void 0,this)});Hm.displayName="Kbd";import{cva as Dy}from"class-variance-authority";import{forwardRef as _y}from"react";import{jsxDEV as km}from"react/jsx-dev-runtime";var Hr={sm:"sm",md:"md",lg:"lg"},Am=Dy("inline-block font-medium text-foreground select-none peer-disabled:cursor-not-allowed peer-disabled:opacity-60",{variants:{size:{[Hr.sm]:"text-xs",[Hr.md]:"text-sm",[Hr.lg]:"text-base"}},defaultVariants:{size:Hr.md}}),Im=_y(({className:e,size:t=Hr.md,required:r=!1,disabled:o=!1,children:n,...i},s)=>{let l=c(t);return km("label",{ref:s,className:a(Am({size:l}),o&&"cursor-not-allowed opacity-60",e),"aria-disabled":o||void 0,...i,children:[n,r&&km("span",{className:"ml-0.5 text-destructive","aria-hidden":"true",children:"*"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});Im.displayName="Label";var Gy=Ct;import*as It from"@radix-ui/react-popover";import{cva as Zy}from"class-variance-authority";import{Check as qy,ChevronDown as Jy,X as Qy}from"lucide-react";import{forwardRef as Ey,useCallback as so,useEffect as jy,useRef as ev,useState as Om}from"react";import*as Ue from"@radix-ui/react-popover";import{cva as Wy}from"class-variance-authority";import{forwardRef as Uy}from"react";import{jsxDEV as Vm}from"react/jsx-dev-runtime";var kr={sm:"sm",md:"md",lg:"lg"},Ar=Wy("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:{[kr.sm]:"w-56 p-3 text-sm",[kr.md]:"w-72 p-4 text-sm",[kr.lg]:"w-96 p-5 text-sm"}},defaultVariants:{size:kr.md}}),$y=Ue.Root,Ky=Ue.Trigger,Yy=Ue.Anchor,Xy=Ue.Close,Fm=Uy(({className:e,align:t="center",sideOffset:r=4,portal:o=!0,portalContainer:n,size:i=kr.md,...s},l)=>{let d=c(i),m=Vm(Ue.Content,{ref:l,align:t,sideOffset:r,className:a(Ar({size:d}),e),...s},void 0,!1,void 0,this);if(o)return Vm(Ue.Portal,{container:n??void 0,children:m},void 0,!1,void 0,this);return m});Fm.displayName="PopoverContent";import{jsxDEV as pe,Fragment as ov}from"react/jsx-dev-runtime";var ve={sm:"sm",md:"md",lg:"lg",xl:"xl"},Bm=Zy(["gs-interactive 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:{[ve.sm]:"min-h-8 px-2.5 py-1 text-xs",[ve.md]:"min-h-10 px-3.5 py-1.5",[ve.lg]:"min-h-11 px-4.5 py-2 text-sm",[ve.xl]:"min-h-12 px-4 py-2 text-base"},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:ve.md,status:"default"}}),tv={[ve.sm]:"sm",[ve.md]:"md",[ve.lg]:"lg",[ve.xl]:"lg"},rv={[ve.sm]:"min-h-7.5 py-1.5 px-2.5 text-xs",[ve.md]:"min-h-9 py-2 px-3 text-sm",[ve.lg]:"min-h-10 py-2.5 px-3.5 text-sm",[ve.xl]:"min-h-11 py-3 px-4 text-base"},qo={[ve.sm]:"size-3.5",[ve.md]:"size-4",[ve.lg]:"size-4",[ve.xl]:"size-4.5"},Dm=Ey(({className:e,options:t,value:r,defaultValue:o=[],onValueChange:n,placeholder:i="Select options...",size:s=ve.md,status:l="default",clearable:d=!1,maxDisplayItems:m=3,disabled:f,...u},h)=>{let p=c(s)??s,[y,S]=Om(!1),[M,w]=Om(o),T=ev(null),b=r!==void 0,x=b?r:M,O=so((N)=>{let A=x.includes(N)?x.filter((z)=>z!==N):[...x,N];if(!b)w(A);n?.(A)},[x,b,n]),R=so((N,A)=>{A.stopPropagation();let z=x.filter((B)=>B!==N);if(!b)w(z);n?.(z)},[x,b,n]),I=so((N)=>{if(N.stopPropagation(),N.preventDefault(),!b)w([]);n?.([])},[b,n]),C=t.filter((N)=>x.includes(N.value)),V=C.length>0,Y=d&&V&&!f,F=so((N)=>{let A=T.current;if(!A)return;let z=Array.from(A.querySelectorAll('[role="option"]:not([data-disabled])'));if(z.length===0)return;let B=A.querySelector('[role="option"]:focus'),U=B?z.indexOf(B):-1,L;switch(N){case"first":L=z[0];break;case"last":L=z[z.length-1];break;case"next":L=z[U+1]??z[0];break;case"prev":L=z[U-1]??z[z.length-1];break}L?.focus()},[]),K=so((N)=>{switch(N.key){case"ArrowDown":N.preventDefault(),F("next");break;case"ArrowUp":N.preventDefault(),F("prev");break;case"Home":N.preventDefault(),F("first");break;case"End":N.preventDefault(),F("last");break;case"Escape":N.preventDefault(),S(!1);break}},[F]);return jy(()=>{if(y)requestAnimationFrame(()=>F("first"))},[y,F]),pe(It.Root,{open:y,onOpenChange:S,children:[pe(It.Trigger,{asChild:!0,children:pe("button",{ref:h,type:"button",disabled:f,"data-state":y?"open":"closed","data-placeholder":V?void 0:"",className:a(Bm({size:p,status:l}),e),...u,children:[pe("span",{className:"flex min-w-0 flex-1 flex-wrap items-center gap-1 text-left",children:V?pe(ov,{children:[C.slice(0,m).map((N)=>pe(Vo,{variant:"outline",size:tv[s],removable:!0,onRemove:(A)=>R(N.value,A),className:"max-w-[120px] rounded-[calc(var(--radius)-4px)]",children:pe("span",{className:"truncate",children:N.label},void 0,!1,void 0,this)},N.value,!1,void 0,this)),C.length>m&&pe("span",{className:"text-muted-foreground text-xs",children:["+",C.length-m]},void 0,!0,void 0,this)]},void 0,!0,void 0,this):pe("span",{className:"text-muted-foreground",children:i},void 0,!1,void 0,this)},void 0,!1,void 0,this),pe("span",{className:"inline-flex shrink-0 items-center gap-1 text-muted-foreground",children:[Y&&pe("span",{role:"button",tabIndex:-1,"aria-label":"Clear all",onMouseDown:(N)=>N.preventDefault(),onClick:I,className:"gs-interactive 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:pe(Qy,{className:qo[p]},void 0,!1,void 0,this)},void 0,!1,void 0,this),pe(Jy,{className:a(qo[p],"opacity-60 transition-transform duration-200 ease-[cubic-bezier(0.16,1,0.3,1)]",y&&"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),pe(It.Portal,{children:pe(It.Content,{ref:T,role:"listbox","aria-multiselectable":"true",align:"start",sideOffset:4,onKeyDown:K,onOpenAutoFocus:(N)=>N.preventDefault(),className:a(Ar(),"max-h-96 w-[var(--radix-popover-trigger-width)] overflow-y-auto overflow-x-hidden p-1"),children:[t.map((N)=>{let A=x.includes(N.value);return pe("div",{role:"option",tabIndex:N.disabled?void 0:-1,"aria-selected":A,"aria-disabled":N.disabled||void 0,"data-disabled":N.disabled?"":void 0,className:a("gs-interactive 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:opacity-50",rv[p]),onClick:()=>!N.disabled&&O(N.value),onKeyDown:(z)=>{if(z.key==="Enter"||z.key===" "){if(z.preventDefault(),!N.disabled)O(N.value)}},children:[pe("span",{className:a("flex shrink-0 items-center justify-center",qo[p]),children:A&&pe(qy,{className:qo[p]},void 0,!1,void 0,this)},void 0,!1,void 0,this),pe("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&&pe("div",{className:"px-3 py-6 text-center text-muted-foreground text-sm",children:"No options available"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});Dm.displayName="Multiselect";import*as ie from"@radix-ui/react-navigation-menu";import{cva as jt}from"class-variance-authority";import{createContext as av,forwardRef as Ir,useContext as nv}from"react";import{jsxDEV as Oe}from"react/jsx-dev-runtime";var je={sm:"sm",md:"md",lg:"lg"},_m=av(je.md),Gm=jt("relative z-10 flex max-w-max flex-1 items-center justify-center"),Wm=jt("group flex flex-1 list-none items-center justify-center space-x-1"),Um=jt(["group inline-flex w-max items-center justify-center rounded-md bg-background font-medium","gs-interactive","hover:bg-accent hover:text-accent-foreground","focus:bg-accent focus:text-accent-foreground focus:outline-none","disabled:pointer-events-none disabled:opacity-50","data-[active]:bg-accent/50 data-[state=open]:bg-accent/50"],{variants:{size:{[je.sm]:"h-8 px-3 py-1.5 text-xs",[je.md]:"h-10 px-4 py-2 text-sm",[je.lg]:"h-12 px-5 py-2.5 text-sm"}},defaultVariants:{size:je.md}}),$m=jt(["left-0 top-0 w-full","data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out","data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out","data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52","data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52","md:absolute md:w-auto"]),iv=jt(["block select-none space-y-1 rounded-md leading-none no-underline outline-none","gs-interactive","hover:bg-accent hover:text-accent-foreground","focus:bg-accent focus:text-accent-foreground"],{variants:{size:{[je.sm]:"p-2 text-xs",[je.md]:"p-3 text-sm",[je.lg]:"p-4 text-sm"}},defaultVariants:{size:je.md}}),Km=jt(["origin-top-center relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-lg","gs-float-content","transition-[width,height] duration-300 ease-[var(--motion-ease-emphasized)]","md:w-[var(--radix-navigation-menu-viewport-width)]"]),Ym=jt(["top-full z-[1] flex h-1.5 items-end justify-center overflow-hidden","data-[state=visible]:animate-in data-[state=hidden]:animate-out","data-[state=hidden]:fade-out data-[state=visible]:fade-in"]),sv=()=>Oe("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-[1px] ml-1 h-3 w-3 transition duration-200 group-data-[state=open]:rotate-180","aria-hidden":"true",children:Oe("path",{d:"m6 9 6 6 6-6"},void 0,!1,void 0,this)},void 0,!1,void 0,this),Xm=Ir(({className:e,children:t,size:r,...o},n)=>{let i=c(r??je.md);return Oe(_m.Provider,{value:i,children:Oe(ie.Root,{ref:n,className:a(Gm(),e),...o,children:[t,Oe(yn,{},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)});Xm.displayName=ie.Root.displayName;var Zm=Ir(({className:e,...t},r)=>Oe(ie.List,{ref:r,className:a(Wm(),e),...t},void 0,!1,void 0,this));Zm.displayName=ie.List.displayName;var lv=ie.Item,qm=Ir(({className:e,children:t,...r},o)=>{let n=nv(_m);return Oe(ie.Trigger,{ref:o,className:a(Um({size:n}),"group",e),...r,children:[t,Oe(sv,{},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});qm.displayName=ie.Trigger.displayName;var Jm=Ir(({className:e,...t},r)=>Oe(ie.Content,{ref:r,className:a($m(),e),...t},void 0,!1,void 0,this));Jm.displayName=ie.Content.displayName;var mv=ie.Link,yn=Ir(({className:e,...t},r)=>Oe("div",{className:"absolute top-full left-0 flex justify-center",children:Oe(ie.Viewport,{className:a(Km(),e),ref:r,...t},void 0,!1,void 0,this)},void 0,!1,void 0,this));yn.displayName=ie.Viewport.displayName;var Qm=Ir(({className:e,...t},r)=>Oe(ie.Indicator,{ref:r,className:a(Ym(),e),...t,children:Oe("div",{className:"relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md"},void 0,!1,void 0,this)},void 0,!1,void 0,this));Qm.displayName=ie.Indicator.displayName;import{cva as Vr}from"class-variance-authority";import{Fragment as dv,forwardRef as pv,useCallback as er,useEffect as Em,useMemo as jm,useRef as cv,useState as ed}from"react";import{jsxDEV as tr}from"react/jsx-dev-runtime";var rr={sm:"sm",md:"md",lg:"lg",xl:"xl"},mo={default:"default",error:"error",success:"success"},lo={single:"single",first:"first",middle:"middle",last:"last"},td=Vr("relative inline-flex items-center",{variants:{size:{sm:"gap-1",md:"gap-1.5",lg:"gap-2",xl:"gap-2.5"}},defaultVariants:{size:rr.md}}),rd=Vr("relative inline-flex items-center",{variants:{size:{sm:"gap-0",md:"gap-0",lg:"gap-0",xl:"gap-0"},status:{default:"",error:"text-destructive",success:"text-success"}},defaultVariants:{size:rr.md,status:mo.default}}),od=Vr(["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",xl:"h-12 w-12"},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:rr.md,filled:!1,focused:!1,status:mo.default,disabled:!1,position:lo.single}}),ad=Vr(["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",xl:"text-lg"},status:{default:"caret-primary",error:"caret-destructive",success:"caret-success"},filled:{true:"text-foreground",false:"text-muted-foreground"}},defaultVariants:{size:rr.md,status:mo.default,filled:!1}}),nd=Vr(["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",xl:"text-xl"},focused:{true:"opacity-0 scale-95",false:"opacity-100 scale-100"}},defaultVariants:{size:rr.md,focused:!1}}),id=Vr("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",xl:"px-1.5 text-xl"}},defaultVariants:{size:rr.md}});function uv(e){if(!Number.isFinite(e))return 6;return Math.max(1,Math.floor(e))}function vn(e,t){let r=(e??"").split("").slice(0,t);if(r.length<t)return r.concat(Array(t-r.length).fill(""));return r}var sd=pv(({className:e,length:t=6,value:r,onChange:o,onComplete:n,size:i=rr.md,status:s=mo.default,disabled:l=!1,autoFocus:d=!1,mask:m=!1,groupSize:f,separator:u,separatorChar:h="—",placeholder:p="•",inputMode:y="numeric",pattern:S="[0-9]*",...M},w)=>{let T=c(i),b=uv(t),x=cv([]),[O,R]=ed(null),[I,C]=ed(()=>vn(r,b));Em(()=>{if(r!==void 0){C(vn(r,b));return}C((g)=>vn(g.join(""),b))},[r,b]),Em(()=>{if(d)x.current[0]?.focus()},[d]);let V=jm(()=>{if(typeof f==="number"&&Number.isFinite(f)){let g=Math.floor(f);if(g<=0)return b;return Math.min(b,Math.max(1,g))}if(typeof u==="number"&&Number.isFinite(u)){let g=Math.floor(u);if(g<=0)return b;return Math.min(b,Math.max(1,g))}if(u)return Math.max(1,Math.floor(b/2));return b},[f,b,u]),Y=jm(()=>{let g=[];for(let v=0;v<b;v+=V){let H=Math.min(v+V,b),te=[];for(let ee=v;ee<H;ee+=1)te.push(ee);g.push(te)}return g},[V,b]),F=er((g)=>{let v=x.current[g];if(!v)return;v.focus(),v.select()},[]),K=er((g)=>{C(g);let v=g.join("");if(o?.(v),g.every((H)=>H!=="")&&v.length===b)n?.(v)},[o,n,b]),N=er((g,v)=>{if(l)return;let te=(y==="numeric"?v.replace(/\D/g,""):v).slice(-1),ee=[...I];if(ee[g]=te,K(ee),te&&g<b-1)F(g+1)},[I,l,K,F,y,b]),A=er((g,v)=>{if(l)return;if(v.key==="Backspace"){if(v.preventDefault(),I[g]){let H=[...I];H[g]="",K(H);return}if(g>0){let H=[...I];H[g-1]="",K(H),F(g-1)}return}if(v.key==="Delete"){if(v.preventDefault(),I[g]){let H=[...I];H[g]="",K(H)}return}if(v.key==="ArrowLeft"){if(v.preventDefault(),g>0)F(g-1);return}if(v.key==="ArrowRight"){if(v.preventDefault(),g<b-1)F(g+1);return}if(v.key==="Home"){v.preventDefault(),F(0);return}if(v.key==="End")v.preventDefault(),F(b-1)},[I,l,K,F,b]),z=er((g,v)=>{if(v.preventDefault(),l)return;let H=v.clipboardData.getData("text"),ee=(y==="numeric"?H.replace(/\D/g,""):H.replace(/\s/g,"")).split("");if(ee.length===0)return;let Ae=[...I];for(let me=0;me<ee.length;me+=1){let $t=g+me;if($t>=b)break;Ae[$t]=ee[me]??""}K(Ae);let W=Math.min(b-1,g+ee.length-1);if(W<b-1){F(W+1);return}x.current[W]?.blur()},[I,l,K,F,y,b]),B=er((g,v)=>{R(g),v.target.select()},[]),U=er(()=>{R(null)},[]),L=u!==void 0,X=h.length>0&&u!==!1&&(L||Y.length>1);return tr("div",{ref:w,className:a(td({size:T}),e),role:"group","aria-label":"One-time password input",...M,children:Y.map((g,v)=>tr(dv,{children:[tr("div",{"data-gs-otp-group":"true",className:a(rd({size:T,status:s})),children:g.map((H,te)=>{let ee=I[H]??"",Ae=O===H,W=lo.middle;if(g.length===1)W=lo.single;else if(te===0)W=lo.first;else if(te===g.length-1)W=lo.last;return tr("div",{"data-gs-otp-slot":"true","data-disabled":l,className:a(od({size:T,filled:Boolean(ee),focused:Ae,status:s,disabled:l,position:W})),children:[tr("input",{ref:(me)=>{x.current[H]=me},type:m?"password":"text",inputMode:y,pattern:S,maxLength:1,value:ee,placeholder:"",disabled:l,"aria-invalid":s===mo.error,"aria-label":`Digit ${H+1} of ${b}`,autoComplete:"one-time-code",onChange:(me)=>N(H,me.target.value),onKeyDown:(me)=>A(H,me),onPaste:(me)=>z(H,me),onFocus:(me)=>B(H,me),onBlur:U,className:a(ad({size:T,status:s,filled:Boolean(ee)}))},void 0,!1,void 0,this),!ee&&tr("div",{"data-gs-otp-placeholder":"true","aria-hidden":"true",className:a(nd({size:T,focused:Ae})),children:p},void 0,!1,void 0,this)]},`slot-${H}`,!0,void 0,this)})},void 0,!1,void 0,this),X&&v<Y.length-1&&tr("span",{"data-gs-otp-separator":"true",className:a(id({size:T})),children:h},void 0,!1,void 0,this)]},`group-${g[0]}-${g[g.length-1]}`,!0,void 0,this))},void 0,!1,void 0,this)});sd.displayName="OTPInput";import{createContext as Tv,useCallback as Fr,useContext as hv,useMemo as Pv,useState as xv}from"react";import*as le from"@radix-ui/react-dialog";import{cva as ld}from"class-variance-authority";import{X as fv}from"lucide-react";import{forwardRef as Jo}from"react";import{jsxDEV as et}from"react/jsx-dev-runtime";var Be={top:"top",right:"right",bottom:"bottom",left:"left"},ne={sm:"sm",md:"md",lg:"lg",xl:"xl",full:"full"},gv={[Be.top]:"gs-sheet-content gs-sheet-content-top",[Be.right]:"gs-sheet-content gs-sheet-content-right",[Be.bottom]:"gs-sheet-content gs-sheet-content-bottom",[Be.left]:"gs-sheet-content gs-sheet-content-left"},yv={[Be.right]:{[ne.sm]:"sm:max-w-sm",[ne.md]:"sm:max-w-md",[ne.lg]:"sm:max-w-lg",[ne.xl]:"sm:max-w-xl",[ne.full]:"sm:max-w-full"},[Be.left]:{[ne.sm]:"sm:max-w-sm",[ne.md]:"sm:max-w-md",[ne.lg]:"sm:max-w-lg",[ne.xl]:"sm:max-w-xl",[ne.full]:"sm:max-w-full"},[Be.top]:{[ne.sm]:"sm:max-h-[30vh]",[ne.md]:"sm:max-h-[50vh]",[ne.lg]:"sm:max-h-[70vh]",[ne.xl]:"sm:max-h-[85vh]",[ne.full]:"sm:max-h-full"},[Be.bottom]:{[ne.sm]:"sm:max-h-[30vh]",[ne.md]:"sm:max-h-[50vh]",[ne.lg]:"sm:max-h-[70vh]",[ne.xl]:"sm:max-h-[85vh]",[ne.full]:"sm:max-h-full"}},md=ld("gs-sheet-overlay fixed inset-0 z-50 bg-black/50"),dd=ld("fixed z-50 flex flex-col gap-4 border border-border bg-background p-6 shadow-[var(--shadow-xl)]",{variants:{side:{[Be.top]:"inset-x-0 top-0 border-b",[Be.bottom]:"inset-x-0 bottom-0 border-t",[Be.left]:"inset-y-0 left-0 h-full w-3/4 border-r",[Be.right]:"inset-y-0 right-0 h-full w-3/4 border-l"}},defaultVariants:{side:Be.right}}),bn=le.Root,vv=le.Trigger,bv=le.Close,pd=le.Portal,Tn=Jo(({className:e,...t},r)=>et(le.Overlay,{className:a(md(),e),...t,ref:r},void 0,!1,void 0,this));Tn.displayName=le.Overlay.displayName;var Qo=Jo(({side:e="right",size:t=ne.md,showClose:r=!0,className:o,children:n,...i},s)=>{let l=c(t)??ne.md,d=gv[e],m=yv[e][l];return et(pd,{children:[et(Tn,{},void 0,!1,void 0,this),et(le.Content,{ref:s,className:a(dd({side:e}),d,m,o),...i,children:[n,r&&et(le.Close,{className:"gs-interactive 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",children:[et(fv,{className:"size-4"},void 0,!1,void 0,this),et("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)});Qo.displayName=le.Content.displayName;var cd=({className:e,...t})=>et("div",{className:a("flex flex-col space-y-2 text-center sm:text-left",e),...t},void 0,!1,void 0,this);cd.displayName="SheetHeader";var ud=({className:e,...t})=>et("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);ud.displayName="SheetFooter";var fd=Jo(({className:e,...t},r)=>et(le.Title,{ref:r,className:a("font-semibold text-foreground text-lg",e),...t},void 0,!1,void 0,this));fd.displayName=le.Title.displayName;var gd=Jo(({className:e,...t},r)=>et(le.Description,{ref:r,className:a("text-muted-foreground text-sm",e),...t},void 0,!1,void 0,this));gd.displayName=le.Description.displayName;import{jsxDEV as bt}from"react/jsx-dev-runtime";var hn=0;function Cv(){return hn=(hn+1)%Number.MAX_SAFE_INTEGER,`overlay-${hn}-${Date.now()}`}var vd=Tv(null),yd=400;function bd({children:e}){let[t,r]=xv([]),o=Fr((m)=>{r((f)=>f.map((u)=>u.id===m?{...u,open:!1}:u)),setTimeout(()=>{r((f)=>f.filter((u)=>u.id!==m))},yd)},[]),n=Fr(()=>{r((m)=>m.map((f)=>({...f,open:!1}))),setTimeout(()=>{r([])},yd)},[]),i=Fr((m,f,u,h={})=>{let p=Cv(),y=(w)=>{return bt(f,{...u,close:w.close},void 0,!1,void 0,this)};y.displayName=`OverlayWrapper(${f.displayName??f.name??"Component"})`;let S={id:p,type:m,component:y,wrapperProps:h,open:!0};return r((w)=>[...w,S]),{id:p,close:()=>o(p)}},[o]),s=Fr((m,f,u)=>{return i("dialog",m,f,u)},[i]),l=Fr((m,f,u)=>{return i("sheet",m,f,u)},[i]),d=Pv(()=>({dialog:s,sheet:l,close:o,closeAll:n}),[s,l,o,n]);return bt(vd.Provider,{value:d,children:[e,t.map((m)=>bt(zv,{entry:m,onClose:o},m.id,!1,void 0,this))]},void 0,!0,void 0,this)}bd.displayName="OverlayProvider";function zv({entry:e,onClose:t}){let{id:r,type:o,component:n,wrapperProps:i,open:s}=e,l=Fr(()=>t(r),[r,t]);if(o==="dialog"){let{showClose:d,size:m,...f}=i;return bt(Qr,{open:s,onOpenChange:(u)=>!u&&l(),children:bt($o,{showClose:d,size:m,...f,children:bt(n,{close:l},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}if(o==="sheet"){let{side:d,showClose:m,...f}=i;return bt(bn,{open:s,onOpenChange:(u)=>!u&&l(),children:bt(Qo,{side:d,showClose:m,...f,children:bt(n,{close:l},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}return null}function Sv(){let e=hv(vd);if(!e)throw Error("useOverlay must be used within an OverlayProvider");return e}import{cva as po}from"class-variance-authority";import{ChevronLeft as Nv,ChevronRight as wv,MoreHorizontal as Rv}from"lucide-react";import{createContext as Mv,forwardRef as co,useContext as Eo}from"react";import{jsxDEV as Ie}from"react/jsx-dev-runtime";var $e={sm:"sm",md:"md",lg:"lg"},uo=Mv($e.md),Td=po("mx-auto flex w-full justify-center"),hd=po("flex flex-row items-center gap-1"),Pd=po(""),jo=po("gs-interactive 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:opacity-50 hover:bg-accent hover:text-accent-foreground",{variants:{isActive:{true:"border border-border bg-background shadow-[var(--shadow-sm)]",false:""},size:{[$e.sm]:"h-7 w-7 text-xs [&_svg]:size-3.5",[$e.md]:"h-9 w-9 text-sm [&_svg]:size-4",[$e.lg]:"h-10 w-10 text-sm [&_svg]:size-5"}},defaultVariants:{isActive:!1,size:$e.md}}),xd=po("flex items-center justify-center",{variants:{size:{[$e.sm]:"h-7 w-7 [&_svg]:size-3.5",[$e.md]:"h-9 w-9 [&_svg]:size-4",[$e.lg]:"h-10 w-10 [&_svg]:size-5"}},defaultVariants:{size:$e.md}}),Cd=({className:e,size:t=$e.md,...r})=>{let o=c(t)??$e.md;return Ie(uo.Provider,{value:o,children:Ie("nav",{"aria-label":"pagination",className:a(Td(),e),...r},void 0,!1,void 0,this)},void 0,!1,void 0,this)};Cd.displayName="Pagination";var zd=co(({className:e,...t},r)=>Ie("ul",{ref:r,className:a(hd(),e),...t},void 0,!1,void 0,this));zd.displayName="PaginationContent";var Sd=co(({className:e,...t},r)=>Ie("li",{ref:r,className:a(Pd(),e),...t},void 0,!1,void 0,this));Sd.displayName="PaginationItem";var Nd=co(({className:e,isActive:t,...r},o)=>{let n=Eo(uo);return Ie("button",{ref:o,type:"button","aria-current":t?"page":void 0,className:a(jo({isActive:t,size:n}),e),...r},void 0,!1,void 0,this)});Nd.displayName="PaginationLink";var wd=co(({className:e,...t},r)=>{let o=Eo(uo);return Ie("button",{ref:r,type:"button","aria-label":"Go to previous page",className:a(jo({size:o}),"gap-1 pl-2.5 pr-3 w-auto",e),...t,children:[Ie(Nv,{},void 0,!1,void 0,this),Ie("span",{children:"Previous"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});wd.displayName="PaginationPrevious";var Rd=co(({className:e,...t},r)=>{let o=Eo(uo);return Ie("button",{ref:r,type:"button","aria-label":"Go to next page",className:a(jo({size:o}),"gap-1 pl-3 pr-2.5 w-auto",e),...t,children:[Ie("span",{children:"Next"},void 0,!1,void 0,this),Ie(wv,{},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});Rd.displayName="PaginationNext";var Md=({className:e,...t})=>{let r=Eo(uo);return Ie("span",{"aria-hidden":!0,className:a(xd({size:r}),e),...t,children:[Ie(Rv,{},void 0,!1,void 0,this),Ie("span",{className:"sr-only",children:"More pages"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)};Md.displayName="PaginationEllipsis";import*as yo from"@radix-ui/react-progress";import{cva as Ld}from"class-variance-authority";import{forwardRef as Lv}from"react";import{jsxDEV as ea}from"react/jsx-dev-runtime";var fo={sm:"sm",md:"md",lg:"lg",xl:"xl"},go={default:"default",success:"success",warning:"warning",error:"error"},Hd=Ld("relative w-full overflow-hidden rounded-full bg-muted",{variants:{size:{[fo.sm]:"h-1",[fo.md]:"h-2.5",[fo.lg]:"h-4",[fo.xl]:"h-5"}},defaultVariants:{size:fo.md}}),kd=Ld("h-full w-full flex-1 rounded-full transition-transform duration-100 ease-out",{variants:{variant:{[go.default]:"bg-primary",[go.success]:"bg-success",[go.warning]:"bg-warning",[go.error]:"bg-destructive"}},defaultVariants:{variant:go.default}}),Ad=Lv(({className:e,value:t,size:r,variant:o,showValue:n,...i},s)=>{let l=c(r);return ea("div",{className:"flex w-full items-center gap-2",children:[ea(yo.Root,{ref:s,className:a(Hd({size:l}),e),...i,children:ea(yo.Indicator,{className:a(kd({variant:o})),style:{transform:`translateX(-${100-(t||0)}%)`}},void 0,!1,void 0,this)},void 0,!1,void 0,this),n&&ea("span",{className:"font-medium text-muted-foreground text-sm tabular-nums",children:[t,"%"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)});Ad.displayName=yo.Root.displayName;import*as Br from"@radix-ui/react-radio-group";import{cva as Id}from"class-variance-authority";import{forwardRef as Vd}from"react";import{jsxDEV as ta}from"react/jsx-dev-runtime";var tt={sm:"sm",md:"md",lg:"lg",xl:"xl"},Or={default:"default",error:"error",success:"success"},Fd=Id("grid gap-2"),Od=Id("gs-interactive 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:{[tt.sm]:"h-4 w-4",[tt.md]:"h-5 w-5",[tt.lg]:"h-6 w-6",[tt.xl]:"h-7 w-7"},status:{[Or.default]:"enabled:hover:border-primary/70",[Or.error]:"border-destructive enabled:hover:border-destructive/70 focus-visible:ring-destructive data-[state=checked]:border-destructive data-[state=checked]:text-destructive",[Or.success]:"border-success enabled:hover:border-success/70 focus-visible:ring-success data-[state=checked]:border-success data-[state=checked]:text-success"}},defaultVariants:{size:tt.md,status:Or.default}}),Hv={[tt.sm]:"h-2 w-2",[tt.md]:"h-2.5 w-2.5",[tt.lg]:"h-3 w-3",[tt.xl]:"h-3.5 w-3.5"},Bd=Vd(({className:e,...t},r)=>ta(Br.Root,{ref:r,className:a(Fd(),e),...t},void 0,!1,void 0,this));Bd.displayName="RadioGroup";var Dd=Vd(({className:e,size:t=tt.md,status:r=Or.default,...o},n)=>{let i=c(t);return ta(Br.Item,{ref:n,className:a(Od({size:i,status:r}),e),...o,children:ta(Br.Indicator,{className:"flex items-center justify-center",children:ta("span",{className:a("block rounded-full bg-current transition-transform duration-150",Hv[i])},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)});Dd.displayName="RadioGroupItem";import{cva as aa}from"class-variance-authority";import{forwardRef as Pn,useCallback as ra,useRef as kv,useState as Av}from"react";import{jsxDEV as oa}from"react/jsx-dev-runtime";var _d=aa("flex h-full w-full",{variants:{direction:{horizontal:"flex-row",vertical:"flex-col"}},defaultVariants:{direction:"horizontal"}}),Gd=aa("relative overflow-hidden"),Wd=aa("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}}),Ud=aa("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"}}),$d=Pn(({className:e,direction:t="horizontal",children:r,...o},n)=>oa("div",{ref:n,"data-panel-group":"","data-direction":t,className:a(_d({direction:t}),e),...o,children:r},void 0,!1,void 0,this));$d.displayName="ResizablePanelGroup";var Kd=Pn(({className:e,defaultSize:t=50,children:r,style:o,...n},i)=>oa("div",{ref:i,"data-panel":"",className:a(Gd(),e),style:{...o,flexGrow:0,flexShrink:0,flexBasis:`${t}%`},...n,children:r},void 0,!1,void 0,this));Kd.displayName="ResizablePanel";var Yd=Pn(({className:e,withHandle:t=!1,disabled:r=!1,...o},n)=>{let[i,s]=Av(!1),l=kv(null),d=ra((p,y)=>{if(r)return;s(!0);let S=(w)=>{let T="touches"in w?w.touches[0]:null,b=T?T.clientX:w.clientX,x=T?T.clientY:w.clientY,O=l.current;if(!O)return;let R=O.closest("[data-panel-group]");if(!R)return;let I=R.dataset.direction,C=R.getBoundingClientRect(),V=Array.from(R.querySelectorAll(":scope > [data-panel]")),Y=Array.from(R.children).indexOf(O),F,K;for(let N of V){let A=Array.from(R.children).indexOf(N);if(A<Y)F=N;if(A>Y&&!K)K=N}if(F&&K){let N=I==="horizontal"?C.width:C.height,z=(I==="horizontal"?b-C.left:x-C.top)/N*100,B=Math.max(10,Math.min(90,z)),U=100-B;F.style.flexBasis=`${B}%`,K.style.flexBasis=`${U}%`}},M=()=>{s(!1),document.removeEventListener("mousemove",S),document.removeEventListener("mouseup",M),document.removeEventListener("touchmove",S),document.removeEventListener("touchend",M)};document.addEventListener("mousemove",S),document.addEventListener("mouseup",M),document.addEventListener("touchmove",S),document.addEventListener("touchend",M)},[r]),m=ra((p)=>{p.preventDefault(),d(p.clientX,p.clientY)},[d]),f=ra((p)=>{let y=p.touches[0];if(y)d(y.clientX,y.clientY)},[d]),u=ra((p)=>{if(r)return;let y=l.current??p.currentTarget,S=y.closest("[data-panel-group]");if(!S)return;let M=S.dataset.direction,w=p.shiftKey?10:1,T=Array.from(S.querySelectorAll(":scope > [data-panel]")),b=Array.from(S.children).indexOf(y),x,O;for(let C of T){let V=Array.from(S.children).indexOf(C);if(V<b)x=C;if(V>b&&!O)O=C}if(!(x&&O))return;let R=Number.parseFloat(x.style.flexBasis)||50,I=0;if(M==="horizontal"){if(p.key==="ArrowLeft")I=-w;if(p.key==="ArrowRight")I=w}else{if(p.key==="ArrowUp")I=-w;if(p.key==="ArrowDown")I=w}if(I!==0){p.preventDefault();let C=Math.max(10,Math.min(90,R+I));x.style.flexBasis=`${C}%`,O.style.flexBasis=`${100-C}%`}},[r]),h="horizontal";return oa("div",{ref:(p)=>{if(l.current=p,typeof n==="function")n(p);else if(n)n.current=p},role:"separator","aria-orientation":"horizontal",tabIndex:r?-1:0,"data-panel-resize-handle":"","data-dragging":i,onMouseDown:m,onTouchStart:f,onKeyDown:u,className:a(Wd({direction:"horizontal",withHandle:t}),i&&"bg-primary",r&&"pointer-events-none opacity-50",e),...o,children:t&&oa("div",{className:a(Ud({direction:"horizontal"}))},void 0,!1,void 0,this)},void 0,!1,void 0,this)});Yd.displayName="ResizableHandle";import*as st from"@radix-ui/react-scroll-area";import{cva as xn}from"class-variance-authority";import{forwardRef as Xd}from"react";import{jsxDEV as Dr}from"react/jsx-dev-runtime";var Zd=xn("relative overflow-hidden"),Iv={display:"flex",flexDirection:"column"},Vv={flex:"1 1 0%",minHeight:0},qd=xn("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"}}),Jd=xn("relative flex-1 rounded-full bg-border"),Qd=Xd(({className:e,children:t,style:r,...o},n)=>Dr(st.Root,{ref:n,className:a(Zd(),e),style:{...r,...Iv},...o,children:[Dr(st.Viewport,{className:"w-full rounded-[inherit]",style:Vv,children:t},void 0,!1,void 0,this),Dr(Cn,{},void 0,!1,void 0,this),Dr(st.Corner,{},void 0,!1,void 0,this)]},void 0,!0,void 0,this));Qd.displayName="ScrollArea";var Cn=Xd(({className:e,orientation:t="vertical",...r},o)=>Dr(st.ScrollAreaScrollbar,{ref:o,orientation:t,className:a(qd({orientation:t}),e),...r,children:Dr(st.ScrollAreaThumb,{className:a(Jd())},void 0,!1,void 0,this)},void 0,!1,void 0,this));Cn.displayName="ScrollBar";import{cva as Sn}from"class-variance-authority";import{createContext as Fv,forwardRef as Nn,useCallback as Ed,useContext as tp,useEffect as zn,useLayoutEffect as Ov,useRef as jd,useState as ep}from"react";import{jsxDEV as or}from"react/jsx-dev-runtime";var be={sm:"sm",md:"md",lg:"lg"},rp=Sn("relative inline-flex items-center rounded-[var(--radius)] border border-border bg-muted/50 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.md}}),op=Sn(["relative z-10 inline-flex items-center justify-center rounded-[calc(var(--radius)-2px)]","cursor-pointer outline-none select-none","transition-[color] duration-150","focus-visible:ring-2 focus-visible:ring-ring","disabled:pointer-events-none disabled:text-muted-foreground/40"],{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.md,active:!1}}),ap=Sn(["relative z-10 inline-flex items-center justify-center gap-1.5 rounded-[calc(var(--radius)-2px)]","cursor-pointer outline-none select-none whitespace-nowrap font-medium","transition-[color] duration-150","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.md,active:!1}}),np={[be.sm]:"size-3",[be.md]:"size-3.5",[be.lg]:"size-4"},wn=Fv({activeValue:"",onSelect:()=>{},size:be.md,disabled:!1}),Bv=typeof window<"u"?Ov:zn,ip=Nn(({className:e,value:t,defaultValue:r,onValueChange:o,size:n,disabled:i=!1,children:s,...l},d)=>{let m=c(n),f=jd(null),[u,h]=ep(r??""),[p,y]=ep(null),S=jd(!0),M=t!==void 0?t:u,w=Ed((b)=>{if(i)return;if(t===void 0)h(b);o?.(b)},[i,t,o]),T=Ed(()=>{let b=f.current;if(!b)return;let x=b.querySelector('[data-state="active"]');if(!x){y(null);return}let O=b.getBoundingClientRect(),R=x.getBoundingClientRect();y({left:R.left-O.left,width:R.width})},[]);return Bv(()=>{T()},[T,M]),zn(()=>{if(S.current)requestAnimationFrame(()=>{S.current=!1})},[]),zn(()=>{let b=f.current;if(!b)return;let x=new MutationObserver(()=>{T()});return x.observe(b,{attributes:!0,attributeFilter:["data-state"],subtree:!0}),()=>x.disconnect()},[T]),or(wn.Provider,{value:{activeValue:M,onSelect:w,size:m,disabled:i},children:or("div",{ref:(b)=>{if(f.current=b,typeof d==="function")d(b);else if(d)d.current=b},role:"radiogroup",className:a(rp({size:m}),i&&"opacity-50 pointer-events-none",e),...l,children:[p&&or("span",{"aria-hidden":"true",className:a("absolute rounded-[calc(var(--radius)-2px)] bg-background shadow-sm",!S.current&&"transition-[left,width] duration-[var(--motion-duration-medium)] ease-[var(--motion-ease-emphasized)]"),style:{left:p.left,width:p.width,top:"4px",bottom:"4px"}},void 0,!1,void 0,this),s]},void 0,!0,void 0,this)},void 0,!1,void 0,this)});ip.displayName="SegmentedControl";var sp=Nn(({className:e,value:t,icon:r,disabled:o=!1,...n},i)=>{let{activeValue:s,onSelect:l,size:d,disabled:m}=tp(wn),f=s===t,u=o||m;return or("button",{ref:i,type:"button",role:"radio","aria-checked":f,"aria-disabled":u||void 0,"data-state":f?"active":"inactive","data-value":t,disabled:u,onClick:()=>l(t),className:a(op({size:d,active:f}),e),...n,children:or("span",{className:a(np[d??be.md],"[&>svg]:size-full"),children:r},void 0,!1,void 0,this)},void 0,!1,void 0,this)});sp.displayName="SegmentedControlItem";var lp=Nn(({className:e,value:t,icon:r,disabled:o=!1,children:n,...i},s)=>{let{activeValue:l,onSelect:d,size:m,disabled:f}=tp(wn),u=l===t,h=o||f;return or("button",{ref:s,type:"button",role:"radio","aria-checked":u,"aria-disabled":h||void 0,"data-state":u?"active":"inactive","data-value":t,disabled:h,onClick:()=>d(t),className:a(ap({size:m,active:u}),e),...i,children:[r&&or("span",{className:a(np[m??be.md],"[&>svg]:size-full"),children:r},void 0,!1,void 0,this),n]},void 0,!0,void 0,this)});lp.displayName="SegmentedControlLabelItem";import*as Vt from"@radix-ui/react-popover";import{cva as dp}from"class-variance-authority";import{Check as Dv,ChevronDown as _v,X as Gv}from"lucide-react";import{Children as Wv,createContext as Uv,forwardRef as To,isValidElement as $v,useCallback as na,useContext as pp,useEffect as ia,useId as mp,useMemo as Kv,useRef as cp,useState as vo}from"react";import{jsxDEV as se,Fragment as Ev}from"react/jsx-dev-runtime";var oe={sm:"sm",md:"md",lg:"lg",xl:"xl"},_r={default:"default",error:"error",success:"success"},bo={trigger:"trigger",auto:"auto"},Yv={start:"start",center:"center",end:"end"},up=dp(["gs-interactive 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:{[oe.sm]:"h-8 px-2.5 text-xs",[oe.md]:"h-10 px-3.5",[oe.lg]:"h-11 px-4.5 text-sm",[oe.xl]:"h-12 px-4 text-base"},status:{[_r.default]:"focus-visible:ring-primary data-[state=open]:ring-primary",[_r.error]:"border-destructive focus-visible:ring-destructive data-[state=open]:ring-destructive",[_r.success]:"border-success focus-visible:ring-success data-[state=open]:ring-success"}},defaultVariants:{size:oe.md,status:_r.default}}),fp=dp(["max-h-96 overflow-y-auto overflow-x-hidden"].join(" "),{variants:{widthMode:{[bo.trigger]:"w-[var(--radix-popover-trigger-width)]",[bo.auto]:"w-max min-w-0"},size:{[oe.sm]:"text-xs",[oe.md]:"text-sm",[oe.lg]:"text-sm",[oe.xl]:"text-base"}},defaultVariants:{widthMode:bo.auto,size:oe.md}}),Xv={[oe.sm]:"min-h-7.5 py-1.5 px-2.5 pr-3 text-xs",[oe.md]:"min-h-9 py-2 px-3 pr-4.5 text-sm",[oe.lg]:"min-h-10 py-2.5 px-3.5 pr-5.5 text-sm",[oe.xl]:"min-h-11 py-3 px-4 pr-6 text-base"},Zv={[oe.sm]:"px-2 py-1 text-xs",[oe.md]:"px-2 py-1.5 text-sm",[oe.lg]:"px-2.5 py-1.5 text-sm",[oe.xl]:"px-3 py-2 text-base"},sa={[oe.sm]:"size-3.5",[oe.md]:"size-4",[oe.lg]:"size-4",[oe.xl]:"size-4.5"};function Rn(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)=>Rn(t)).join("");if($v(e))return Rn(e.props.children);return""}var Mn=Uv(null);function la(){let e=pp(Mn);if(!e)throw Error("Select components must be used within Select");return e}function Ln(e){let t=pp(Mn);if(e)return e;return t?.triggerSize??oe.md}var qv=({children:e,value:t,defaultValue:r="",onValueChange:o,open:n,defaultOpen:i=!1,onOpenChange:s,disabled:l=!1})=>{let[d,m]=vo(oe.md),[f,u]=vo(!1),[h,p]=vo(r),[y,S]=vo(i),[M,w]=vo(0),T=cp(new Map),b=t!==void 0,x=n!==void 0,O=b?t:h,R=x?n:y,I=na((A)=>{if(!b)p(A);if(o?.(A),!x)S(!1);s?.(!1)},[b,x,o,s]),C=na((A)=>{if(l)return;if(!x)S(A);s?.(A)},[l,x,s]),V=na((A,z)=>{if(T.current.get(A)!==z)T.current.set(A,z),w((U)=>U+1)},[]),Y=na((A)=>{return T.current.get(A)},[]),F=mp(),K=mp(),N=Kv(()=>({value:O,onValueChange:I,open:R,onOpenChange:C,triggerSize:d,setTriggerSize:m,triggerFullWidth:f,setTriggerFullWidth:u,disabled:l,triggerId:F,contentId:K,registerItem:V,getLabel:Y}),[O,I,R,C,d,f,l,F,K,V,Y,M]);return se(Mn.Provider,{value:N,children:se(Vt.Root,{open:R,onOpenChange:C,children:e},void 0,!1,void 0,this)},void 0,!1,void 0,this)},Jv=({children:e,className:t})=>se("div",{role:"group",className:t,children:e},void 0,!1,void 0,this),Qv=({placeholder:e})=>{let{value:t,getLabel:r}=la();if(!t)return e?se("span",{className:"text-muted-foreground",children:e},void 0,!1,void 0,this):null;let o=r(t);return se(Ev,{children:o??t},void 0,!1,void 0,this)},gp=To(({className:e,children:t,size:r=oe.md,status:o=_r.default,fullWidth:n=!1,clearable:i=!1,leadingIcon:s,indicatorIcon:l,renderValue:d,placeholder:m,onKeyDown:f,...u},h)=>{let p=la(),y=c(r)??r,S=p.setTriggerSize,M=p.setTriggerFullWidth;ia(()=>{S(y)},[y,S]),ia(()=>{M(n)},[n,M]);let w=p.value.length>0,T=i&&w&&!p.disabled,b=(R)=>{R.stopPropagation(),R.preventDefault(),p.onValueChange("")},x;if(d)x=w?d(p.value):m?se("span",{className:"text-muted-foreground",children:m},void 0,!1,void 0,this):null;else x=t;let O=(R)=>{if(f?.(R),R.defaultPrevented)return;if(R.key==="ArrowDown"||R.key==="ArrowUp"||R.key==="Enter"||R.key===" "){if(!p.open)R.preventDefault(),p.onOpenChange(!0)}};return se(Vt.Trigger,{asChild:!0,children:se("button",{ref:h,type:"button",role:"combobox","aria-expanded":p.open,"aria-haspopup":"listbox","aria-controls":p.contentId,id:p.triggerId,disabled:p.disabled,"data-state":p.open?"open":"closed","data-placeholder":w?void 0:"",className:a(up({size:y,status:o}),n?"w-full":"w-auto",e),onKeyDown:O,...u,children:[s&&se("i",{className:"inline-flex shrink-0 items-center text-muted-foreground not-italic",children:s},void 0,!1,void 0,this),se("span",{"data-slot":"select-value",className:"min-w-0 flex-1 text-left",children:x},void 0,!1,void 0,this),se("span",{className:"inline-flex shrink-0 items-center gap-1 text-muted-foreground",children:[T&&se("span",{role:"button",tabIndex:-1,"aria-label":"Clear selection",onMouseDown:(R)=>R.preventDefault(),onClick:b,className:"gs-interactive 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:se(Gv,{className:sa[y]},void 0,!1,void 0,this)},void 0,!1,void 0,this),l??se(_v,{className:a(sa[y],"opacity-60 transition-transform duration-200 ease-[cubic-bezier(0.16,1,0.3,1)]",p.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)});gp.displayName="SelectTrigger";var yp=To(({className:e,children:t,widthMode:r,size:o,align:n="start",side:i="bottom",sideOffset:s=4,portal:l=!0,forceMount:d=!0,onKeyDown:m,...f},u)=>{let h=la(),p=Ln(o),y=r??bo.auto,S=cp(null),M=ao(u,S),w=(x)=>{let O=S.current;if(!O)return;let R=Array.from(O.querySelectorAll('[role="option"]:not([data-disabled])'));if(R.length===0)return;let I=O.querySelector('[role="option"]:focus'),C=I?R.indexOf(I):-1,V;switch(x){case"first":V=R[0];break;case"last":V=R[R.length-1];break;case"next":V=R[C+1]??R[0];break;case"prev":V=R[C-1]??R[R.length-1];break}V?.focus()},T=(x)=>{if(m?.(x),x.defaultPrevented)return;switch(x.key){case"ArrowDown":x.preventDefault(),w("next");break;case"ArrowUp":x.preventDefault(),w("prev");break;case"Home":x.preventDefault(),w("first");break;case"End":x.preventDefault(),w("last");break;case"Escape":x.preventDefault(),h.onOpenChange(!1);break}};ia(()=>{if(h.open)requestAnimationFrame(()=>w("first"))},[h.open]);let b=se(Vt.Content,{ref:M,id:h.contentId,role:"listbox","aria-labelledby":h.triggerId,side:i,align:n,sideOffset:s,forceMount:d,onKeyDown:T,onOpenAutoFocus:(x)=>x.preventDefault(),className:a(Ar(),fp({widthMode:y,size:p}),"p-1",e),...f,children:t},void 0,!1,void 0,this);if(l)return se(Vt.Portal,{children:b},void 0,!1,void 0,this);return b});yp.displayName="SelectContent";var vp=To(({className:e,size:t,...r},o)=>{let n=Ln(t);return se("div",{ref:o,className:a("font-semibold text-foreground",Zv[n],e),...r},void 0,!1,void 0,this)});vp.displayName="SelectLabel";var bp=To(({className:e,children:t,value:r,label:o,size:n,disabled:i=!1,...s},l)=>{let d=la(),m=Ln(n),f=d.value===r,u=d.registerItem,h=Rn(Wv.toArray(t)).trim();ia(()=>{let S=o??(h.length>0?h:r);u(r,S)},[h,r,o,u]);let p=()=>{if(!i)d.onValueChange(r)},y=(S)=>{if(S.key==="Enter"||S.key===" ")S.preventDefault(),p()};return se("div",{ref:l,role:"option",tabIndex:i?void 0:-1,"aria-selected":f,"aria-disabled":i||void 0,"data-selected":f?"":void 0,"data-disabled":i?"":void 0,"data-value":r,className:a("gs-interactive 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:opacity-50",Xv[m],f&&"bg-accent/50",e),onClick:p,onKeyDown:y,...s,children:[se("span",{className:a("flex shrink-0 items-center justify-center",sa[m]),children:f&&se(Dv,{className:sa[m]},void 0,!1,void 0,this)},void 0,!1,void 0,this),se("span",{className:"min-w-0 flex-1 truncate",children:t},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});bp.displayName="SelectItem";var Tp=To(({className:e,...t},r)=>se("div",{ref:r,className:a("-mx-1 my-1 h-px bg-border",e),...t},void 0,!1,void 0,this));Tp.displayName="SelectSeparator";import{cva as jv}from"class-variance-authority";import{forwardRef as eb}from"react";import{jsxDEV as tb}from"react/jsx-dev-runtime";var ho={horizontal:"horizontal",vertical:"vertical"},hp=jv("shrink-0 bg-border",{variants:{orientation:{[ho.horizontal]:"h-px w-full",[ho.vertical]:"h-full w-px"}},defaultVariants:{orientation:ho.horizontal}}),Pp=eb(({className:e,orientation:t=ho.horizontal,decorative:r=!0,...o},n)=>{let i=r?{role:"none"}:{role:"separator","aria-orientation":t};return tb("div",{ref:n,className:a(hp({orientation:t}),e),...i,...o},void 0,!1,void 0,this)});Pp.displayName="Separator";import{cva as ma}from"class-variance-authority";import{forwardRef as da}from"react";import{jsxDEV as pa}from"react/jsx-dev-runtime";var Te={sm:"sm",md:"md",lg:"lg"},xp=ma("animate-pulse rounded-[var(--radius)] bg-muted"),Cp=ma("w-full",{variants:{size:{[Te.sm]:"h-3",[Te.md]:"h-4",[Te.lg]:"h-5"}},defaultVariants:{size:Te.md}}),zp=ma("",{variants:{size:{[Te.sm]:"h-8 w-8",[Te.md]:"h-10 w-10",[Te.lg]:"h-12 w-12"}},defaultVariants:{size:Te.md}}),Sp=ma("",{variants:{size:{[Te.sm]:"h-8 w-20",[Te.md]:"h-9 w-24",[Te.lg]:"h-10 w-28"}},defaultVariants:{size:Te.md}}),Po=da(({className:e,circle:t=!1,...r},o)=>pa("div",{ref:o,className:a(xp(),t&&"rounded-full",e),...r},void 0,!1,void 0,this));Po.displayName="Skeleton";var Np=da(({className:e,size:t=Te.md,...r},o)=>{let n=c(t)??Te.md;return pa(Po,{ref:o,className:a(Cp({size:n}),e),...r},void 0,!1,void 0,this)});Np.displayName="SkeletonText";var wp=da(({className:e,size:t=Te.md,...r},o)=>{let n=c(t)??Te.md;return pa(Po,{ref:o,circle:!0,className:a(zp({size:n}),e),...r},void 0,!1,void 0,this)});wp.displayName="SkeletonAvatar";var Rp=da(({className:e,size:t=Te.md,...r},o)=>{let n=c(t)??Te.md;return pa(Po,{ref:o,className:a(Sp({size:n}),e),...r},void 0,!1,void 0,this)});Rp.displayName="SkeletonButton";import*as Ft from"@radix-ui/react-slider";import{cva as fa}from"class-variance-authority";import{forwardRef as rb}from"react";import{jsxDEV as ua}from"react/jsx-dev-runtime";var ca={sm:"sm",md:"md",lg:"lg"},Mp=fa("relative flex w-full touch-none select-none items-center",{variants:{size:{[ca.sm]:"[&_[data-slider-track]]:h-0.5 [&_[data-slider-thumb]]:h-3 [&_[data-slider-thumb]]:w-3",[ca.md]:"[&_[data-slider-track]]:h-2 [&_[data-slider-thumb]]:h-5 [&_[data-slider-thumb]]:w-5",[ca.lg]:"[&_[data-slider-track]]:h-3 [&_[data-slider-thumb]]:h-6 [&_[data-slider-thumb]]:w-6"}},defaultVariants:{size:ca.md}}),Lp=fa("relative w-full grow overflow-hidden rounded-full bg-secondary"),Hp=fa("absolute h-full bg-primary"),kp=fa("gs-interactive block rounded-full border-2 border-primary bg-background ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50"),Ap=rb(({className:e,size:t,...r},o)=>{let n=c(t);return ua(Ft.Root,{ref:o,className:a(Mp({size:n}),e),...r,children:[ua(Ft.Track,{"data-slider-track":!0,className:a(Lp()),children:ua(Ft.Range,{className:a(Hp())},void 0,!1,void 0,this)},void 0,!1,void 0,this),(r.defaultValue??r.value??[0]).map((i,s)=>ua(Ft.Thumb,{"data-slider-thumb":!0,className:a(kp())},`thumb-${String(s)}`,!1,void 0,this))]},void 0,!0,void 0,this)});Ap.displayName="Slider";import{cva as Ce}from"class-variance-authority";import{forwardRef as sb,useCallback as xo,useEffect as lb,useMemo as ga,useRef as Co,useState as Fp}from"react";import{useCallback as ob,useEffect as ab,useRef as Ip}from"react";function An(e,t,r={}){let{enabled:o=!0,preventDefault:n=!0,stopPropagation:i=!1,target:s="global"}=r,l=Ip(t);l.current=t;let d=Ip([]),m=Array.isArray(e)?e:[e];d.current=m.map((u)=>({combo:u,def:Hn(u)}));let f=ob((u)=>{if(!o)return;for(let{combo:h,def:p}of d.current)if(kn(u,p)){if(n)u.preventDefault();if(i)u.stopPropagation();l.current(u,h);return}},[o,n,i]);ab(()=>{if(!o)return;let u=s==="global"?document:s.current;if(!u)return;return u.addEventListener("keydown",f),()=>{u.removeEventListener("keydown",f)}},[o,f,s])}import{useEffect as nb,useState as ib}from"react";function Vp(e){let[t,r]=ib(!1);return nb(()=>{let o=window.matchMedia(e);r(o.matches);let n=(i)=>r(i.matches);return o.addEventListener("change",n),()=>o.removeEventListener("change",n)},[e]),t}import{jsxDEV as $,Fragment as In}from"react/jsx-dev-runtime";var mb="(max-width: 639px)",P={sm:"sm",md:"md",lg:"lg",xl:"xl"},Gr={idle:"idle",loading:"loading",error:"error"},Op=Ce("z-[120] bg-black/40"),Bp=Ce(["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:{[P.sm]:"max-w-md",[P.md]:"max-w-xl",[P.lg]:"max-w-2xl",[P.xl]:"max-w-3xl"}},defaultVariants:{size:P.md}}),Dp=Ce(["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"]),_p=Ce("flex items-center border-b border-border",{variants:{size:{[P.sm]:"gap-2 px-3 py-2",[P.md]:"gap-3 px-4 py-3",[P.lg]:"gap-3 px-5 py-3.5",[P.xl]:"gap-4 px-6 py-4"}},defaultVariants:{size:P.md}}),Gp=Ce(["w-full flex-1 bg-transparent text-foreground","placeholder:text-muted-foreground","outline-none border-none"],{variants:{size:{[P.sm]:"text-sm",[P.md]:"text-base",[P.lg]:"text-lg",[P.xl]:"text-xl"}},defaultVariants:{size:P.md}}),Wp=Ce("text-muted-foreground shrink-0",{variants:{size:{[P.sm]:"size-3.5",[P.md]:"size-4",[P.lg]:"size-5",[P.xl]:"size-5"}},defaultVariants:{size:P.md}}),ya=Ce("inline-flex items-center justify-center rounded font-mono font-medium bg-muted border border-border text-muted-foreground",{variants:{size:{[P.sm]:"px-1 py-0.5 text-[9px]",[P.md]:"px-1.5 py-0.5 text-[10px]",[P.lg]:"px-2 py-0.5 text-[11px]",[P.xl]:"px-2 py-1 text-xs"}},defaultVariants:{size:P.md}}),Up=Ce("overflow-y-auto py-1",{variants:{size:{[P.sm]:"max-h-64",[P.md]:"max-h-80",[P.lg]:"max-h-96",[P.xl]:"max-h-[28rem]"}},defaultVariants:{size:P.md}}),$p=Ce("font-semibold text-muted-foreground uppercase tracking-wide",{variants:{size:{[P.sm]:"px-2.5 py-1.5 text-[10px]",[P.md]:"px-3 py-2 text-xs",[P.lg]:"px-3.5 py-2 text-xs",[P.xl]:"px-4 py-2.5 text-xs"}},defaultVariants:{size:P.md}}),Kp=Ce(["group flex items-center cursor-pointer rounded-lg","text-foreground","transition-[color,background-color,transform,box-shadow] duration-100","active:scale-[0.98]"],{variants:{size:{[P.sm]:"gap-2 px-2.5 py-1.5 mx-1.5",[P.md]:"gap-3 px-3 py-2 mx-2",[P.lg]:"gap-3 px-3.5 py-2.5 mx-2",[P.xl]:"gap-4 px-4 py-3 mx-2.5"},selected:{true:"bg-primary/10",false:"hover:bg-muted hover:translate-x-0.5"},disabled:{true:"text-muted-foreground cursor-not-allowed pointer-events-none bg-muted/40",false:""}},defaultVariants:{size:P.md,selected:!1,disabled:!1}}),Yp=Ce("shrink-0",{variants:{size:{[P.sm]:"size-3.5",[P.md]:"size-4",[P.lg]:"size-5",[P.xl]:"size-5"},selected:{true:"text-primary",false:"text-muted-foreground"}},defaultVariants:{size:P.md,selected:!1}}),Xp=Ce("flex-1 min-w-0"),Zp=Ce("font-medium truncate",{variants:{size:{[P.sm]:"text-xs",[P.md]:"text-sm",[P.lg]:"text-sm",[P.xl]:"text-base"}},defaultVariants:{size:P.md}}),qp=Ce("text-muted-foreground truncate",{variants:{size:{[P.sm]:"text-[11px]",[P.md]:"text-xs",[P.lg]:"text-xs",[P.xl]:"text-sm"}},defaultVariants:{size:P.md}}),Jp=Ce("flex items-center gap-1 text-muted-foreground shrink-0",{variants:{size:{[P.sm]:"text-[10px]",[P.md]:"text-[11px]",[P.lg]:"text-xs",[P.xl]:"text-xs"}},defaultVariants:{size:P.md}}),va=Ce("flex flex-col items-center justify-center text-muted-foreground",{variants:{size:{[P.sm]:"py-6 min-h-20",[P.md]:"py-8 min-h-24",[P.lg]:"py-10 min-h-28",[P.xl]:"py-12 min-h-32"},state:{empty:"text-muted-foreground",loading:"text-muted-foreground",error:"text-destructive"}},defaultVariants:{size:P.md,state:"empty"}}),ba=Ce("font-medium",{variants:{size:{[P.sm]:"text-xs",[P.md]:"text-sm",[P.lg]:"text-sm",[P.xl]:"text-base"}},defaultVariants:{size:P.md}}),Qp=Ce("mt-1",{variants:{size:{[P.sm]:"text-[11px]",[P.md]:"text-xs",[P.lg]:"text-xs",[P.xl]:"text-sm"}},defaultVariants:{size:P.md}}),Ep=(e,t)=>{if(!t)return!0;let r=t.toLowerCase();if(e.title.toLowerCase().includes(r))return!0;if(e.description?.toLowerCase().includes(r))return!0;if(e.keywords?.some((o)=>o.toLowerCase().includes(r)))return!0;return!1},jp=sb(({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=P.md,status:f=Gr.idle,statusMessage:u,emptyText:h="No command found for this query.",hotkey:p,portal:y=!0,filterFn:S,renderItem:M,footer:w,...T},b)=>{let x=Co(null),O=Co(null),[R,I]=Fp(s),[C,V]=Fp(0),{isMac:Y}=no(),F=Vp(mb),K=xo((k)=>io(k,Y),[Y]),N=ga(()=>p&&p.length>0?p.join("+"):null,[p]);An(N??"",()=>r(!t),{enabled:!!N});let A=i!==void 0?i:R,z=S??Ep,B=ga(()=>o.filter((k)=>z(k,A)),[o,A,z]),U=ga(()=>B.map((k,E)=>k.disabled?-1:E).filter((k)=>k>=0),[B]),L=ga(()=>{let k=new Map,E=new Map,re=0;for(let fe of B){let Pt=fe.group??"";if(!k.has(Pt))k.set(Pt,[]);k.get(Pt).push(fe),E.set(fe,re),re++}return{groups:k,indexMap:E}},[B]),X=Co(!1),g=Co(t);if(g.current&&!t)X.current=!0;if(!g.current&&t)X.current=!1;g.current=t;let v=Co({query:A,status:f,statusMessage:u??null,filtered:B,grouped:L,activeIndex:C,emptyText:h});if(!X.current)v.current={query:A,status:f,statusMessage:u??null,filtered:B,grouped:L,activeIndex:C,emptyText:h};lb(()=>{if(t)V(0)},[t]);let H=xo((k)=>{let E=k.target.value;I(E),l?.(E),V(0)},[l]),te=xo((k)=>{let E=O.current;if(!E)return;E.querySelectorAll('[role="option"]')[k]?.scrollIntoView({block:"nearest"})},[]),ee=xo((k)=>{if(k.key==="ArrowDown"){if(k.preventDefault(),U.length===0)return;let re=(U.indexOf(C)+1)%U.length,fe=U[re];V(fe),te(fe);return}if(k.key==="ArrowUp"){if(k.preventDefault(),U.length===0)return;let re=(U.indexOf(C)-1+U.length)%U.length,fe=U[re];V(fe),te(fe);return}if(k.key==="Enter"){k.preventDefault();let E=B[C];if(E&&!E.disabled)n(E,C)}},[C,U,B,n,te]),Ae=xo((k,E)=>{if(k.disabled)return;n(k,E)},[n]),W=v.current,me=W.status===Gr.idle,$t=W.status!==Gr.idle,Z=$(In,{children:[$("div",{className:a(_p({size:m})),children:[$("svg",{className:a(Wp({size:m})),fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:$("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),$("input",{ref:x,type:"text",value:W.query,onChange:H,placeholder:d,"aria-label":"Search",className:a(Gp({size:m}))},void 0,!1,void 0,this),!F&&p?$("div",{className:"flex items-center gap-1",children:p.map((k)=>$("kbd",{className:a(ya({size:m})),children:K(k)},k,!1,void 0,this))},void 0,!1,void 0,this):!F?$("kbd",{className:a(ya({size:m})),children:"ESC"},void 0,!1,void 0,this):null]},void 0,!0,void 0,this),$t&&W.status===Gr.loading&&$("div",{className:a(va({size:m,state:"loading"}),"animate-in fade-in-0 slide-in-from-bottom-1 duration-150"),children:[$(Ct,{size:"sm",className:"mb-2 text-muted-foreground"},void 0,!1,void 0,this),$("div",{className:a(ba({size:m})),children:"Searching commands..."},void 0,!1,void 0,this)]},void 0,!0,void 0,this),$t&&W.status===Gr.error&&$("div",{className:a(va({size:m,state:"error"}),"animate-in fade-in-0 slide-in-from-bottom-1 duration-150"),children:[$("div",{className:a(ba({size:m})),children:"Search failed"},void 0,!1,void 0,this),W.statusMessage&&$("div",{className:a(Qp({size:m})),children:W.statusMessage},void 0,!1,void 0,this)]},void 0,!0,void 0,this),me&&W.filtered.length===0&&$("div",{className:a(va({size:m,state:"empty"}),"animate-in fade-in-0 slide-in-from-bottom-1 duration-150"),children:$("div",{className:a(ba({size:m})),children:W.emptyText},void 0,!1,void 0,this)},void 0,!1,void 0,this),me&&W.filtered.length>0&&$("div",{ref:O,role:"listbox","aria-label":"Search results",className:a(Up({size:m}),F&&"max-h-none flex-1 min-h-0"),children:Array.from(W.grouped.groups.entries()).map(([k,E])=>$("div",{children:[k&&$("div",{className:a($p({size:m})),children:k},void 0,!1,void 0,this),E.map((re)=>{let fe=W.grouped.indexMap.get(re)??0,Pt=fe===W.activeIndex,Ua=re.disabled??!1;return $("div",{role:"option","aria-selected":Pt,"aria-disabled":Ua,onClick:()=>Ae(re,fe),className:a(Kp({size:m,selected:Pt,disabled:Ua})),children:M?M(re,{active:Pt,disabled:Ua,index:fe}):$(In,{children:[re.icon&&$("span",{className:a(Yp({size:m,selected:Pt})),children:re.icon},void 0,!1,void 0,this),$("div",{className:a(Xp()),children:[$("div",{className:a(Zp({size:m})),children:re.title},void 0,!1,void 0,this),re.description&&$("div",{className:a(qp({size:m})),children:re.description},void 0,!1,void 0,this)]},void 0,!0,void 0,this),re.shortcut&&re.shortcut.length>0&&$("div",{className:a(Jp({size:m})),children:re.shortcut.map((ei)=>$("kbd",{className:a(ya({size:m})),children:K(ei)},ei,!1,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},re.id,!1,void 0,this)})]},k||"__ungrouped__",!0,void 0,this))},void 0,!1,void 0,this),w&&$("div",{className:"border-t border-border px-3 py-2",children:w},void 0,!1,void 0,this)]},void 0,!0,void 0,this),ce=$(Er,{"data-testid":"spotlight-overlay",className:a(Op()),onClick:()=>r(!1)},void 0,!1,void 0,this),ue=$(mn,{...T,ref:b,className:a(F?Dp():Bp({size:m}),e),"aria-label":"Spotlight search","aria-describedby":void 0,onOpenAutoFocus:(k)=>{k.preventDefault(),x.current?.focus()},onCloseAutoFocus:(k)=>k.preventDefault(),onKeyDown:ee,children:[$(Ko,{className:"sr-only",children:"Spotlight search"},void 0,!1,void 0,this),F&&$("div",{className:"flex justify-center pt-2 pb-1",children:$("div",{className:"h-1 w-8 rounded-full bg-muted-foreground/30"},void 0,!1,void 0,this)},void 0,!1,void 0,this),Z]},void 0,!0,void 0,this);return $(Qr,{open:t,onOpenChange:r,children:y?$(Uo,{children:[ce,ue]},void 0,!0,void 0,this):$(In,{children:[ce,ue]},void 0,!0,void 0,this)},void 0,!1,void 0,this)});jp.displayName="Spotlight";import{cva as db}from"class-variance-authority";import{forwardRef as pb}from"react";import{jsxDEV as Ot}from"react/jsx-dev-runtime";var Ke={sm:"sm",md:"md",lg:"lg"},ar={up:"up",down:"down",neutral:"neutral"},ec=db("gs-interactive relative flex flex-col rounded-lg border border-border bg-card text-card-foreground shadow-sm transition-[color,background-color,border-color,box-shadow] duration-150 hover:shadow-md",{variants:{size:{[Ke.sm]:"gap-1 p-3",[Ke.md]:"gap-1.5 p-4",[Ke.lg]:"gap-2 p-5"}},defaultVariants:{size:Ke.md}}),cb={[Ke.sm]:"text-lg font-semibold",[Ke.md]:"text-2xl font-bold",[Ke.lg]:"text-3xl font-bold"},ub={[Ke.sm]:"text-xs",[Ke.md]:"text-sm",[Ke.lg]:"text-base"},fb={[ar.up]:"text-success",[ar.down]:"text-destructive",[ar.neutral]:"text-muted-foreground"},gb={[ar.up]:"↑",[ar.down]:"↓",[ar.neutral]:"→"},tc=pb(({className:e,size:t=Ke.md,label:r,value:o,trend:n,trendValue:i,icon:s,...l},d)=>{let m=c(t);return Ot("div",{ref:d,className:a(ec({size:m}),e),...l,children:[Ot("div",{className:"flex items-center justify-between",children:[Ot("span",{className:a("text-muted-foreground",ub[m]),children:r},void 0,!1,void 0,this),s&&Ot("span",{className:"text-muted-foreground/70","aria-hidden":"true",children:s},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Ot("div",{className:"flex items-baseline gap-2",children:[Ot("span",{className:a("tracking-tight text-foreground",cb[m]),children:o},void 0,!1,void 0,this),n&&i&&Ot("span",{className:a("inline-flex items-center gap-0.5 text-xs font-medium",fb[n]),children:[Ot("span",{"aria-hidden":"true",children:gb[n]},void 0,!1,void 0,this),i]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)});tc.displayName="StatCard";import{cva as nr}from"class-variance-authority";import{Check as yb}from"lucide-react";import{forwardRef as ir}from"react";import{jsxDEV as Bt}from"react/jsx-dev-runtime";var rc=nr("flex w-full",{variants:{orientation:{horizontal:"flex-row items-start",vertical:"flex-col"}},defaultVariants:{orientation:"horizontal"}}),oc=nr("flex",{variants:{orientation:{horizontal:"flex-1 flex-col items-center",vertical:"gap-4 flex-row"}},defaultVariants:{orientation:"horizontal"}}),ac=nr(["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/80 bg-card text-muted-foreground","shadow-[0_1px_2px_rgba(0,0,0,0.05)]"],current:["border-primary bg-primary text-primary-foreground","shadow-[0_2px_4px_rgba(99,102,241,0.2)]"],complete:["border-success/60 bg-success text-success-foreground","shadow-[0_1px_3px_rgba(0,0,0,0.1)]","[&>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",xl:"h-14 w-14 text-lg"},animated:{true:"gs-step-indicator-animated",false:""}},defaultVariants:{status:"incomplete",size:"md",animated:!0}}),nc=nr("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",xl:"opacity-100"},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:"md",animated:!0}}),ic=nr("flex flex-col",{variants:{orientation:{horizontal:"mt-3 items-center text-center",vertical:"flex-1 pb-8 last:pb-0"}},defaultVariants:{orientation:"horizontal"}}),sc=nr("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",xl:"text-lg"}},defaultVariants:{status:"incomplete",size:"md"}}),lc=nr("text-muted-foreground transition-colors duration-200 ease-out",{variants:{size:{sm:"text-sm",md:"text-xs",lg:"text-sm",xl:"text-base"}},defaultVariants:{size:"md"}});var mc=ir(({className:e,orientation:t="horizontal",activeStep:r,...o},n)=>{return Bt("div",{ref:n,role:"group","aria-label":"Progress steps",className:a(rc({orientation:t}),e),"data-orientation":t,"data-active-step":r,...o},void 0,!1,void 0,this)});mc.displayName="Stepper";var dc=ir(({className:e,orientation:t="horizontal",isLast:r,isCurrent:o,...n},i)=>{return Bt("div",{ref:i,className:a(oc({orientation:t}),e),"data-last":r,"aria-current":o?"step":void 0,...n},void 0,!1,void 0,this)});dc.displayName="Step";var pc=ir(({className:e,status:t="incomplete",size:r="md",icon:o,step:n,children:i,animated:s=!0,...l},d)=>{let m=c(r);return Bt("div",{ref:d,className:a(ac({status:t,size:m,animated:s}),e),"data-status":t,"aria-hidden":"true",...l,children:t==="complete"?o||Bt(yb,{className:"size-4",strokeWidth:3},void 0,!1,void 0,this):i||n},void 0,!1,void 0,this)});pc.displayName="StepIndicator";var cc=ir(({className:e,orientation:t="horizontal",status:r="incomplete",size:o="md",animated:n=!0,...i},s)=>{let l=c(o);return Bt("div",{ref:s,className:a(nc({orientation:t,status:r,size:l,animated:n}),e),"data-status":r,...i},void 0,!1,void 0,this)});cc.displayName="StepConnector";var uc=ir(({className:e,orientation:t="horizontal",...r},o)=>{return Bt("div",{ref:o,className:a(ic({orientation:t}),e),...r},void 0,!1,void 0,this)});uc.displayName="StepContent";var fc=ir(({className:e,status:t="incomplete",size:r="md",...o},n)=>{let i=c(r);return Bt("h4",{ref:n,className:a(sc({status:t,size:i}),e),...o},void 0,!1,void 0,this)});fc.displayName="StepTitle";var gc=ir(({className:e,size:t="md",...r},o)=>{let n=c(t);return Bt("p",{ref:o,className:a(lc({size:n}),e),...r},void 0,!1,void 0,this)});gc.displayName="StepDescription";import*as Ta from"@radix-ui/react-switch";import{cva as vb}from"class-variance-authority";import{forwardRef as bb}from"react";import{jsxDEV as yc}from"react/jsx-dev-runtime";var He={sm:"sm",md:"md",lg:"lg",xl:"xl"},Wr={default:"default",error:"error",success:"success"},vc=vb("gs-interactive 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:{[He.sm]:"h-4.5 w-8",[He.md]:"h-5 w-9",[He.lg]:"h-6 w-11",[He.xl]:"h-7 w-[3.25rem]"},status:{[Wr.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",[Wr.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",[Wr.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:He.md,status:Wr.default}}),Tb={[He.sm]:"h-3.5 w-3.5",[He.md]:"h-4 w-4",[He.lg]:"h-5 w-5",[He.xl]:"h-6 w-6"},hb={[He.sm]:"data-[state=checked]:translate-x-3.5",[He.md]:"data-[state=checked]:translate-x-4",[He.lg]:"data-[state=checked]:translate-x-5",[He.xl]:"data-[state=checked]:translate-x-6"},bc=bb(({className:e,size:t=He.md,status:r=Wr.default,checked:o,disabled:n,...i},s)=>{let l=c(t);return yc(Ta.Root,{ref:s,checked:o,disabled:n,className:a(vc({size:l,status:r}),e),...i,children:yc(Ta.Thumb,{className:a("pointer-events-none block rounded-full bg-background shadow-sm transition-transform duration-150",Tb[l],hb[l])},void 0,!1,void 0,this)},void 0,!1,void 0,this)});bc.displayName="Switch";import{cva as Tt}from"class-variance-authority";import{createContext as Pb,forwardRef as Dt,useContext as Tc}from"react";import{jsxDEV as lt}from"react/jsx-dev-runtime";var we={sm:"sm",md:"md",lg:"lg"},Vn=Pb(we.md),hc=Tt("relative w-full overflow-auto rounded-[var(--radius)] border border-border bg-card shadow-[var(--shadow-sm)]"),Pc=Tt("w-full caption-bottom",{variants:{size:{[we.sm]:"text-xs",[we.md]:"text-sm",[we.lg]:"text-sm"}},defaultVariants:{size:we.md}}),xc=Tt("sticky top-0 z-[1] [&_tr]:border-b [&_tr]:border-border [&_th]:bg-muted"),Cc=Tt("[&_tr:last-child]:border-0"),zc=Tt("border-t border-border bg-muted font-medium text-muted-foreground [&>tr]:last:border-b-0"),Sc=Tt("gs-interactive border-b border-border hover:bg-muted/50 data-[state=selected]:bg-primary/10"),Nc=Tt("text-left align-middle font-semibold text-muted-foreground [&:has([role=checkbox])]:pr-0",{variants:{size:{[we.sm]:"h-8 px-2",[we.md]:"h-10 px-3",[we.lg]:"h-12 px-4"}},defaultVariants:{size:we.md}}),wc=Tt("align-middle text-foreground [&:has([role=checkbox])]:pr-0",{variants:{size:{[we.sm]:"p-2",[we.md]:"p-3",[we.lg]:"p-4"}},defaultVariants:{size:we.md}}),Rc=Tt("mt-4 text-sm text-muted-foreground"),Mc=Dt(({className:e,containerClassName:t,size:r=we.md,...o},n)=>{let i=c(r)??we.md;return lt(Vn.Provider,{value:i,children:lt("div",{className:a(hc(),t),children:lt("table",{ref:n,className:a(Pc({size:i}),e),...o},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)});Mc.displayName="Table";var Lc=Dt(({className:e,...t},r)=>lt("thead",{ref:r,className:a(xc(),e),...t},void 0,!1,void 0,this));Lc.displayName="TableHeader";var Hc=Dt(({className:e,...t},r)=>lt("tbody",{ref:r,className:a(Cc(),e),...t},void 0,!1,void 0,this));Hc.displayName="TableBody";var kc=Dt(({className:e,...t},r)=>lt("tfoot",{ref:r,className:a(zc(),e),...t},void 0,!1,void 0,this));kc.displayName="TableFooter";var Ac=Dt(({className:e,...t},r)=>lt("tr",{ref:r,className:a(Sc(),e),...t},void 0,!1,void 0,this));Ac.displayName="TableRow";var Ic=Dt(({className:e,size:t,...r},o)=>{let n=Tc(Vn);return lt("th",{ref:o,className:a(Nc({size:t??n}),e),...r},void 0,!1,void 0,this)});Ic.displayName="TableHead";var Vc=Dt(({className:e,size:t,...r},o)=>{let n=Tc(Vn);return lt("td",{ref:o,className:a(wc({size:t??n}),e),...r},void 0,!1,void 0,this)});Vc.displayName="TableCell";var Fc=Dt(({className:e,...t},r)=>lt("caption",{ref:r,className:a(Rc(),e),...t},void 0,!1,void 0,this));Fc.displayName="TableCaption";import*as rt from"@radix-ui/react-tabs";import{cva as Fn}from"class-variance-authority";import{createContext as xb,forwardRef as On,useCallback as Oc,useContext as Cb,useEffect as Bn,useLayoutEffect as zb,useRef as ha,useState as Sb}from"react";import{jsxDEV as zo}from"react/jsx-dev-runtime";var mt={sm:"sm",md:"md",lg:"lg",xl:"xl"},Bc=Fn("relative inline-flex items-center justify-center rounded-[var(--radius)] border border-border bg-muted/50 p-1 text-muted-foreground",{variants:{size:{[mt.sm]:"h-9 gap-0.5",[mt.md]:"h-11 gap-1",[mt.lg]:"h-12 gap-1",[mt.xl]:"h-14 gap-1.5"}},defaultVariants:{size:mt.md}}),Dc=Fn("gs-interactive relative z-10 inline-flex items-center justify-center whitespace-nowrap rounded-[calc(var(--radius)-2px)] font-semibold 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:{[mt.sm]:"px-2.5 py-1 text-xs",[mt.md]:"px-3 py-1.5 text-sm",[mt.lg]:"px-4 py-2 text-sm",[mt.xl]:"px-5 py-2.5 text-base"}},defaultVariants:{size:mt.md}}),_c=Fn("mt-3 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2"),Gc=xb({registerTrigger:()=>{}}),Nb=typeof window<"u"?zb:Bn,wb=rt.Root,Wc=On(({className:e,size:t,children:r,...o},n)=>{let i=c(t),s=ha(null),l=ha(new Map),[d,m]=Sb(null),f=ha(!0),u=Oc((p,y)=>{if(y)l.current.set(p,y);else l.current.delete(p)},[]),h=Oc(()=>{let p=s.current;if(!p)return;let y=p.querySelector('[data-state="active"]');if(!y){m(null);return}let S=p.getBoundingClientRect(),M=y.getBoundingClientRect();m({left:M.left-S.left,width:M.width})},[]);return Nb(()=>{h()},[h]),Bn(()=>{let p=s.current;if(!p)return;let y=new MutationObserver(()=>{f.current=!1,h()});return y.observe(p,{attributes:!0,attributeFilter:["data-state"],subtree:!0}),()=>y.disconnect()},[h]),zo(Gc.Provider,{value:{registerTrigger:u},children:zo(rt.List,{ref:(p)=>{if(s.current=p,typeof n==="function")n(p);else if(n)n.current=p},className:a(Bc({size:i}),e),...o,children:[d&&zo("span",{"aria-hidden":"true",className:a("absolute rounded-[calc(var(--radius)-2px)] bg-background shadow-sm",!f.current&&"transition-[left,width] duration-[var(--motion-duration-medium)] ease-[var(--motion-ease-emphasized)]"),style:{left:d.left,width:d.width,top:"4px",bottom:"4px"}},void 0,!1,void 0,this),r]},void 0,!0,void 0,this)},void 0,!1,void 0,this)});Wc.displayName=rt.List.displayName;var Uc=On(({className:e,size:t,value:r,...o},n)=>{let i=c(t),{registerTrigger:s}=Cb(Gc),l=ha(null);return Bn(()=>{return s(r,l.current),()=>s(r,null)},[r,s]),zo(rt.Trigger,{ref:(d)=>{if(l.current=d,typeof n==="function")n(d);else if(n)n.current=d},value:r,className:a(Dc({size:i}),e),...o},void 0,!1,void 0,this)});Uc.displayName=rt.Trigger.displayName;var $c=On(({className:e,...t},r)=>zo(rt.Content,{ref:r,className:a(_c(),e),...t},void 0,!1,void 0,this));$c.displayName=rt.Content.displayName;import{cva as Rb}from"class-variance-authority";import{forwardRef as Mb}from"react";import{jsxDEV as Lb}from"react/jsx-dev-runtime";var So={default:"default",error:"error",success:"success"},Ur={sm:"sm",md:"md",lg:"lg",xl:"xl"},Kc=Rb("gs-interactive 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:{[So.default]:"focus-visible:ring-primary",[So.error]:"border-destructive focus-visible:ring-destructive",[So.success]:"border-success focus-visible:ring-success"},size:{[Ur.sm]:"min-h-[64px] px-2 py-1.5 text-xs",[Ur.md]:"min-h-[96px] px-3 py-2",[Ur.lg]:"min-h-[112px] px-4 py-2.5",[Ur.xl]:"min-h-[128px] px-4 py-3 text-base"}},defaultVariants:{status:So.default,size:Ur.md}}),Yc=Mb(({className:e,status:t=So.default,size:r=Ur.md,fullWidth:o=!1,noResize:n=!1,disabled:i,...s},l)=>{let d=c(r);return Lb("textarea",{ref:l,className:a(Kc({status:t,size:d}),i&&"bg-muted",o&&"w-full",n&&"resize-none",e),disabled:i,...s},void 0,!1,void 0,this)});Yc.displayName="Textarea";import{cva as _t}from"class-variance-authority";import{forwardRef as Gt}from"react";import{jsxDEV as dt}from"react/jsx-dev-runtime";var Xc=_t("relative flex flex-col"),Zc=_t(["group relative flex pb-8 last:pb-0","transition-opacity duration-300 ease-[cubic-bezier(0.22,1,0.36,1)]"],{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}}),qc=_t(["absolute bottom-0 w-0.5 rounded-full","transition-[background-color,opacity,height] duration-300 ease-[cubic-bezier(0.22,1,0.36,1)]"],{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-[11px] top-7",md:"left-[15px] top-9",lg:"left-[21px] top-12",xl:"left-[25px] top-14"},animated:{true:"gs-timeline-connector-animated",false:""}},defaultVariants:{variant:"default",size:"md",animated:!0}}),Jc=_t(["relative z-10 flex shrink-0 items-center justify-center rounded-full border-2","transition-[color,background-color,border-color,box-shadow] duration-200 ease-[cubic-bezier(0.22,1,0.36,1)]","[&>svg]:shrink-0"],{variants:{variant:{default:["border-border/80 bg-card text-muted-foreground","shadow-[0_1px_3px_rgba(0,0,0,0.12),0_0_0_2px_rgba(0,0,0,0.04)]","hover:border-border hover:shadow-[0_2px_6px_rgba(0,0,0,0.16),0_0_0_2px_rgba(0,0,0,0.06)]"],success:["border-success/60 bg-success/10 text-success","shadow-[0_1px_4px_rgba(0,0,0,0.1),0_0_0_2px_rgba(var(--success-rgb,34,197,94),0.2)]","hover:bg-success/15 hover:border-success/70 hover:shadow-[0_2px_8px_rgba(0,0,0,0.12),0_0_0_3px_rgba(var(--success-rgb,34,197,94),0.25)]"],warning:["border-warning/60 bg-warning/10 text-warning","shadow-[0_1px_4px_rgba(0,0,0,0.1),0_0_0_2px_rgba(var(--warning-rgb,234,179,8),0.2)]","hover:bg-warning/15 hover:border-warning/70 hover:shadow-[0_2px_8px_rgba(0,0,0,0.12),0_0_0_3px_rgba(var(--warning-rgb,234,179,8),0.25)]"],error:["border-destructive/60 bg-destructive/10 text-destructive","shadow-[0_1px_4px_rgba(0,0,0,0.1),0_0_0_2px_rgba(var(--destructive-rgb,239,68,68),0.2)]","hover:bg-destructive/15 hover:border-destructive/70 hover:shadow-[0_2px_8px_rgba(0,0,0,0.12),0_0_0_3px_rgba(var(--destructive-rgb,239,68,68),0.25)]"],info:["border-info/60 bg-info/10 text-info","shadow-[0_1px_4px_rgba(0,0,0,0.1),0_0_0_2px_rgba(var(--info-rgb,59,130,246),0.2)]","hover:bg-info/15 hover:border-info/70 hover:shadow-[0_2px_8px_rgba(0,0,0,0.12),0_0_0_3px_rgba(var(--info-rgb,59,130,246),0.25)]"],primary:["border-primary/60 bg-primary/10 text-primary","shadow-[0_1px_4px_rgba(0,0,0,0.1),0_0_0_2px_rgba(var(--primary-rgb,99,102,241),0.2)]","hover:bg-primary/15 hover:border-primary/70 hover:shadow-[0_2px_8px_rgba(0,0,0,0.12),0_0_0_3px_rgba(var(--primary-rgb,99,102,241),0.25)]"]},size:{sm:"h-6 w-6 [&>svg]:size-3",md:"h-8 w-8 [&>svg]:size-4",lg:"h-11 w-11 [&>svg]:size-5",xl:"h-14 w-14 [&>svg]:size-6"},pulse:{true:"gs-timeline-dot-pulse-enabled gs-timeline-dot-pulse",false:""},animated:{true:"gs-timeline-dot-animated",false:""}},defaultVariants:{variant:"default",size:"md",pulse:!1,animated:!0}}),Qc=_t("flex flex-col gap-1 pt-0.5 min-w-0 transition-opacity duration-200 ease-[cubic-bezier(0.22,1,0.36,1)]"),Ec=_t("font-semibold text-foreground leading-tight transition-colors duration-200 ease-[cubic-bezier(0.22,1,0.36,1)]",{variants:{size:{sm:"text-sm",md:"text-base",lg:"text-lg",xl:"text-xl"}},defaultVariants:{size:"md"}}),jc=_t("text-muted-foreground transition-colors duration-200 ease-[cubic-bezier(0.22,1,0.36,1)]",{variants:{size:{sm:"text-sm",md:"text-sm",lg:"text-base",xl:"text-lg"}},defaultVariants:{size:"md"}}),eu=_t("font-medium text-muted-foreground/70 transition-colors duration-200 ease-[cubic-bezier(0.22,1,0.36,1)]",{variants:{size:{sm:"text-sm",md:"text-sm",lg:"text-base",xl:"text-base"}},defaultVariants:{size:"md"}});var tu=Gt(({className:e,...t},r)=>{return dt("div",{ref:r,role:"list","aria-label":"Timeline events",className:a(Xc(),e),...t},void 0,!1,void 0,this)});tu.displayName="Timeline";var ru=Gt(({className:e,align:t,isLast:r,animated:o=!0,...n},i)=>{return dt("div",{ref:i,role:"listitem",className:a(Zc({align:t,animated:o}),e),"data-last":r,...n},void 0,!1,void 0,this)});ru.displayName="TimelineItem";var ou=Gt(({className:e,variant:t,size:r,animated:o=!0,...n},i)=>{let s=c(r);return dt("div",{ref:i,className:a(qc({variant:t,size:s,animated:o}),e),...n},void 0,!1,void 0,this)});ou.displayName="TimelineConnector";var au=Gt(({className:e,variant:t,size:r,icon:o,children:n,pulse:i=!1,animated:s=!0,...l},d)=>{let m=c(r);return dt("div",{ref:d,className:a(Jc({variant:t,size:m,pulse:i,animated:s}),e),"aria-hidden":"true",...l,children:o||n||dt(Hb,{},void 0,!1,void 0,this)},void 0,!1,void 0,this)});au.displayName="TimelineDot";var nu=Gt(({className:e,...t},r)=>{return dt("div",{ref:r,className:a(Qc(),e),...t},void 0,!1,void 0,this)});nu.displayName="TimelineContent";var iu=Gt(({className:e,size:t,...r},o)=>{let n=c(t);return dt("h4",{ref:o,className:a(Ec({size:n}),e),...r},void 0,!1,void 0,this)});iu.displayName="TimelineTitle";var su=Gt(({className:e,size:t,...r},o)=>{let n=c(t);return dt("p",{ref:o,className:a(jc({size:n}),e),...r},void 0,!1,void 0,this)});su.displayName="TimelineDescription";var lu=Gt(({className:e,size:t,...r},o)=>{let n=c(t);return dt("time",{ref:o,className:a(eu({size:n}),e),...r},void 0,!1,void 0,this)});lu.displayName="TimelineTime";function Hb(){return dt("span",{className:"size-2 rounded-full bg-current"},void 0,!1,void 0,this)}import{cva as mu}from"class-variance-authority";var $r={default:"default",success:"success",info:"info",warning:"warning",error:"error"},Ye={sm:"sm",md:"md",lg:"lg"},Dn=mu("pointer-events-auto relative flex w-full items-center overflow-hidden rounded-[var(--radius)] border shadow-[var(--shadow-md)]",{variants:{variant:{[$r.default]:"border-border bg-card text-card-foreground",[$r.success]:"border-success/30 bg-card text-card-foreground",[$r.info]:"border-info/30 bg-card text-card-foreground",[$r.warning]:"border-warning/30 bg-card text-card-foreground",[$r.error]:"border-destructive/30 bg-card text-card-foreground"},size:{[Ye.sm]:"gap-2 p-3",[Ye.md]:"gap-3 p-4",[Ye.lg]:"gap-3.5 p-5"}},defaultVariants:{variant:$r.default,size:Ye.md}}),_n=mu("gs-interactive 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:opacity-50",{variants:{size:{[Ye.sm]:"h-6 px-2 text-xs",[Ye.md]:"h-7 px-2.5 text-xs",[Ye.lg]:"h-8 px-3 text-sm"}},defaultVariants:{size:Ye.md}});import{AlertTriangle as _b,CheckCircle2 as Gb,Info as fu,X as Wb,XCircle as Ub}from"lucide-react";import{forwardRef as $b,useCallback as Ca,useEffect as za,useRef as Kn,useState as Yn}from"react";import{useSyncExternalStore as kb}from"react";var Ab=5,pu=5000,Ib=500,Gn=0;function Vb(){return Gn=(Gn+1)%Number.MAX_SAFE_INTEGER,`toast-${Gn}-${Date.now()}`}var Wn=new Set,Xe=[],lr=new Map,wo=new Map,Ro=!1,sr=new Map;function Pa(){for(let e of Wn)e()}function du(){return Xe}function Fb(e){return Wn.add(e),()=>{Wn.delete(e)}}function Un(e,t){if(Ro){sr.set(e,t);return}clearTimeout(lr.get(e));let r=Date.now(),o=setTimeout(()=>{lr.delete(e),sr.delete(e),xa(e)},t);lr.set(e,o),sr.set(e,t);let n=setInterval(()=>{let i=Date.now()-r,s=t-i;if(s<=0)clearInterval(n),sr.delete(e);else sr.set(e,s)},100)}function Ob(e){clearTimeout(wo.get(e));let t=setTimeout(()=>{Xe=Xe.filter((r)=>r.id!==e),wo.delete(e),Pa()},Ib);wo.set(e,t)}function No(e){let t=e.id??Vb(),r=e.duration??pu;if(Xe.find((i)=>i.id===t))return Xe=Xe.map((i)=>i.id===t?{...i,...e,id:t,open:!0,createdAt:Date.now()}:i),clearTimeout(wo.get(t)),wo.delete(t),Un(t,r),Pa(),t;return Xe=[{...e,id:t,variant:e.variant??"default",dismissible:e.dismissible??!0,open:!0,createdAt:Date.now()},...Xe].slice(0,Ab),Un(t,r),Pa(),t}function xa(e){clearTimeout(lr.get(e)),lr.delete(e),sr.delete(e),Xe=Xe.map((t)=>t.id===e?{...t,open:!1}:t),Pa(),Ob(e)}function cu(){for(let e of Xe)xa(e.id)}function Bb(){if(Ro)return;Ro=!0;for(let[e,t]of lr)clearTimeout(t),lr.delete(e)}function Db(){if(!Ro)return;Ro=!1;for(let e of Xe)if(e.open){let t=sr.get(e.id)??pu;Un(e.id,t)}}var uu=Object.assign((e)=>No(e),{success:(e,t)=>No({...t,variant:"success",title:e}),info:(e,t)=>No({...t,variant:"info",title:e}),warning:(e,t)=>No({...t,variant:"warning",title:e}),error:(e,t)=>No({...t,variant:"error",title:e}),dismiss:xa,dismissAll:cu});function $n(){return{toasts:kb(Fb,du,du),toast:uu,dismiss:xa,dismissAll:cu,pauseAll:Bb,resumeAll:Db}}import{jsxDEV as ke}from"react/jsx-dev-runtime";var yu=10,gu=0.05,Kb=200,vu="cubic-bezier(0.2, 0.8, 0.2, 1)",Yb="cubic-bezier(0.22, 1, 0.36, 1)",Xb={"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"},Zb={success:(e)=>ke(Gb,{className:a("mt-0.5 shrink-0 text-success",e==="sm"?"size-4":"size-[18px]")},void 0,!1,void 0,this),info:(e)=>ke(fu,{className:a("mt-0.5 shrink-0 text-info",e==="sm"?"size-4":"size-[18px]")},void 0,!1,void 0,this),warning:(e)=>ke(_b,{className:a("mt-0.5 shrink-0 text-warning",e==="sm"?"size-4":"size-[18px]")},void 0,!1,void 0,this),error:(e)=>ke(Ub,{className:a("mt-0.5 shrink-0 text-destructive",e==="sm"?"size-4":"size-[18px]")},void 0,!1,void 0,this),default:(e)=>ke(fu,{className:a("mt-0.5 shrink-0 text-muted-foreground",e==="sm"?"size-4":"size-[18px]")},void 0,!1,void 0,this)};function qb(e,t,r,o,n){let i=e<o,s=r?n:e*yu,l=r?1:i?1-e*gu:1-o*gu,d=i||r?1:0,m=t-e;return{offset:s,scale:l,opacity:d,zIndex:m}}var bu=$b(({position:e="bottom-right",gap:t=12,visibleCount:r=3,size:o=Ye.md,className:n,...i},s)=>{let{toasts:l,dismiss:d,pauseAll:m,resumeAll:f}=$n(),u=c(o)??Ye.md,[h,p]=Yn(!1),[y,S]=Yn({}),M=Kn(null),w=Kn(void 0),T=e.startsWith("bottom"),b=Ca((z)=>{if(M.current=z,typeof s==="function")s(z);else if(s)s.current=z},[s]),x=Ca(()=>{clearTimeout(w.current),p(!0),m()},[m]),O=Ca(()=>{clearTimeout(w.current),w.current=setTimeout(()=>{p(!1),f()},Kb)},[f]);za(()=>{return()=>clearTimeout(w.current)},[]);let R=Ca((z,B)=>{S((U)=>{if(U[z]===B)return U;return{...U,[z]:B}})},[]);if(za(()=>{let z=new Set(l.map((B)=>B.id));S((B)=>{let U=!1,L={};for(let[X,g]of Object.entries(B))if(z.has(X))L[X]=g;else U=!0;return U?L:B})},[l]),l.length===0)return null;let I=l.filter((z)=>z.open),C=new Map,V=0;for(let[z,B]of I.entries()){let U=y[B.id]??0;C.set(B.id,qb(z,I.length,h,r,V)),V+=U+t}let Y=I[0],K=(Y?y[Y.id]??0:0)+Math.min(I.length-1,r-1)*yu,N=V-(I.length>0?t:0),A=h?N:K;return ke("ol",{ref:b,role:"region","aria-label":"Notifications",tabIndex:-1,onMouseEnter:x,onMouseLeave:O,className:a("pointer-events-auto fixed z-[100] w-full max-w-[400px] outline-none",Xb[e],n),style:{height:Math.max(A,0),transition:`height 400ms ${vu}`},...i,children:l.map((z)=>{let B=!z.open,U=C.get(z.id);return ke(Jb,{toast:z,layout:U??{offset:0,scale:1,opacity:0,zIndex:0},isClosed:B,isBottom:T,size:u,onDismiss:d,onMeasure:R},z.id,!1,void 0,this)})},void 0,!1,void 0,this)});bu.displayName="Toaster";function Jb({toast:e,layout:t,isClosed:r,isBottom:o,size:n,onDismiss:i,onMeasure:s}){let l=Kn(null),[d,m]=Yn(!1);za(()=>{let y=requestAnimationFrame(()=>m(!0));return()=>cancelAnimationFrame(y)},[]),za(()=>{let y=l.current;if(!y)return;let S=new ResizeObserver((M)=>{for(let w of M){let T=w.borderBoxSize?.[0];if(T)s(e.id,T.blockSize)}});return S.observe(y),()=>S.disconnect()},[e.id,s]);let f=o?{bottom:0,left:0,right:0}:{top:0,left:0,right:0},u,h,p;if(!d)u=`translateY(${o?80:-80}px) scale(0.9)`,h=0,p="none";else if(r)u=`translateY(${o?80:-80}px) scale(0.95)`,h=0,p="none";else u=`translateY(${o?-t.offset:t.offset}px) scale(${t.scale})`,h=t.opacity,p="auto";return ke("li",{ref:l,"data-state":e.open?"open":"closed","data-variant":e.variant,className:"absolute list-none",style:{...f,zIndex:t.zIndex,transformOrigin:o?"center bottom":"center top",transform:u,opacity:h,pointerEvents:p,transition:[`transform 400ms ${vu}`,`opacity 250ms ${Yb}`].join(", ")},children:ke("div",{className:a(Dn({variant:e.variant,size:n}),"w-full"),children:[Zb[e.variant]?.(n),ke("div",{className:"flex-1 space-y-0.5",children:[e.title&&ke("p",{className:a("font-semibold leading-tight",n==="sm"?"text-xs":"text-sm"),children:e.title},void 0,!1,void 0,this),e.description&&ke("p",{className:a("leading-snug text-muted-foreground",n==="sm"?"text-xs":"text-sm"),children:e.description},void 0,!1,void 0,this)]},void 0,!0,void 0,this),e.action&&ke("button",{type:"button",className:a(_n({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&&ke("button",{type:"button",className:a("gs-interactive mt-0.5 shrink-0 rounded-[var(--radius)] p-1 text-muted-foreground 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:ke(Wb,{},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 Tu from"@radix-ui/react-toggle";import{cva as Qb}from"class-variance-authority";import{forwardRef as Eb}from"react";import{jsxDEV as jb}from"react/jsx-dev-runtime";var Xn={default:"default",outline:"outline"},Sa={sm:"sm",md:"md",lg:"lg"},Na=Qb("gs-interactive 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:{[Xn.default]:"bg-transparent disabled:bg-transparent disabled:text-foreground/50",[Xn.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:Xn.default,size:Sa.md}}),hu=Eb(({className:e,variant:t,size:r,...o},n)=>{let i=c(r);return jb(Tu.Root,{ref:n,className:a(Na({variant:t,size:i}),e),...o},void 0,!1,void 0,this)});hu.displayName="Toggle";import*as wa from"@radix-ui/react-toggle-group";import{cva as eT}from"class-variance-authority";import{createContext as tT,forwardRef as Pu,useContext as rT}from"react";import{jsxDEV as Zn}from"react/jsx-dev-runtime";var oT={default:"default",outline:"outline"},aT={sm:"sm",md:"md",lg:"lg"},xu=eT("flex items-center justify-center gap-1"),Cu=tT({size:aT.md,variant:oT.default}),zu=Pu(({className:e,variant:t,size:r,children:o,...n},i)=>{let s=c(r);return Zn(wa.Root,{ref:i,className:a(xu(),e),...n,children:Zn(Cu.Provider,{value:{variant:t,size:s},children:o},void 0,!1,void 0,this)},void 0,!1,void 0,this)});zu.displayName="ToggleGroup";var Su=Pu(({className:e,children:t,variant:r,size:o,...n},i)=>{let s=rT(Cu),l=c(o);return Zn(wa.Item,{ref:i,className:a(Na({variant:r??s.variant,size:l??s.size}),e),...n,children:t},void 0,!1,void 0,this)});Su.displayName="ToggleGroupItem";import{cva as Nu}from"class-variance-authority";import{forwardRef as Ra}from"react";import{jsxDEV as Ma}from"react/jsx-dev-runtime";var ot={sm:"sm",md:"md",lg:"lg"},wu=Nu("flex items-center border-b border-border bg-background",{variants:{size:{[ot.sm]:"gap-1.5 px-3 py-1.5",[ot.md]:"gap-2 px-4 py-2",[ot.lg]:"gap-3 px-5 py-2.5"}},defaultVariants:{size:ot.md}}),Ru=Ra(({className:e,size:t=ot.md,...r},o)=>{let n=c(t);return Ma("div",{ref:o,role:"toolbar",className:a(wu({size:n}),e),...r},void 0,!1,void 0,this)});Ru.displayName="Toolbar";var Mu=Nu("flex items-center",{variants:{size:{[ot.sm]:"gap-1",[ot.md]:"gap-1.5",[ot.lg]:"gap-2"}},defaultVariants:{size:ot.md}}),Lu=Ra(({className:e,size:t=ot.md,...r},o)=>{let n=c(t);return Ma("div",{ref:o,role:"group",className:a(Mu({size:n}),e),...r},void 0,!1,void 0,this)});Lu.displayName="ToolbarGroup";var Hu=Ra(({className:e,...t},r)=>{return Ma("div",{ref:r,role:"none",className:a("h-5 w-px shrink-0 bg-border",e),...t},void 0,!1,void 0,this)});Hu.displayName="ToolbarSeparator";var ku=Ra(({className:e,...t},r)=>{return Ma("div",{ref:r,className:a("flex-1",e),...t},void 0,!1,void 0,this)});ku.displayName="ToolbarSpacer";import*as pt from"@radix-ui/react-tooltip";import{cva as nT}from"class-variance-authority";import{createContext as iT,forwardRef as Au,useContext as Iu}from"react";import{jsxDEV as Mo}from"react/jsx-dev-runtime";var sT=pt.Provider,qn=iT(!1),Vu=({persistOnClick:e=!1,children:t,...r})=>Mo(qn.Provider,{value:e,children:Mo(pt.Root,{...r,children:t},void 0,!1,void 0,this)},void 0,!1,void 0,this);Vu.displayName="Tooltip";var Fu=Au(({onClick:e,onPointerDown:t,...r},o)=>{let n=Iu(qn);return Mo(pt.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)});Fu.displayName="TooltipTrigger";var mr={sm:"sm",md:"md",lg:"lg",xl:"xl"},Ou=nT("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:{[mr.sm]:"px-2 py-1 text-xs",[mr.md]:"px-3 py-1.5 text-xs",[mr.lg]:"px-4 py-2 text-sm",[mr.xl]:"px-5 py-2.5 text-sm"}},defaultVariants:{size:mr.md}}),Bu=Au(({className:e,sideOffset:t=4,onPointerDownOutside:r,size:o=mr.md,...n},i)=>{let s=Iu(qn),l=c(o);return Mo(pt.Portal,{children:Mo(pt.Content,{ref:i,sideOffset:t,className:a(Ou({size:l}),e),onPointerDownOutside:s?(d)=>{d.preventDefault(),r?.(d)}:r,...n},void 0,!1,void 0,this)},void 0,!1,void 0,this)});Bu.displayName="TooltipContent";import{createContext as lT,useCallback as dr,useContext as mT,useEffect as ka,useLayoutEffect as dT,useMemo as La,useRef as Wt,useState as Du}from"react";import{jsxDEV as pT}from"react/jsx-dev-runtime";var _u=typeof window<"u"?dT:ka,Qn=lT(null);function Ha(e,t){return e.theme===t.theme&&e.colorScheme===t.colorScheme}var pr=({children:e,value:t,initialState:r,onChange:o,onStateChange:n,transformState:i,readState:s,writeState:l,syncWithSystem:d=!0,enableTransition:m=!1,transitionDuration:f,defaultTheme:u,defaultColorScheme:h,themes:p,attribute:y,colorSchemeAttribute:S,darkClassName:M,storage:w})=>{let T=La(()=>Kr({defaultTheme:u,defaultColorScheme:h,themes:p,attribute:y,colorSchemeAttribute:S,darkClassName:M,storage:w}),[u,h,p,y,S,M,w]),[b,x]=Du(()=>ct(r,T)),[O,R]=Du(Fa),C=La(()=>t?ct(t,T):null,[t,T])??b,V=La(()=>({...C,resolvedColorScheme:Jn(C.colorScheme,O)}),[C,O]),Y=t!==void 0,F=Wt(C);F.current=C;let K=Wt(!1),N=Wt(!1),A=Wt(!1),z=Wt(C),B=Wt(null),U=Wt(m);U.current=m;let L=Wt(f);L.current=f;let X=dr((Z)=>{return Ia(Z)},[]),g=dr((Z,ce)=>{Va(Z,ce)},[]),v=s??X,H=l??g;ka(()=>{if(!d||typeof window>"u"||typeof window.matchMedia!=="function")return;let Z=window.matchMedia("(prefers-color-scheme: dark)"),ce=()=>{R(Z.matches?ut.dark:ut.light)};return ce(),Z.addEventListener("change",ce),()=>Z.removeEventListener("change",ce)},[d]),ka(()=>{if(Y)return;x((Z)=>{let ce=ct(Z,T);return Ha(Z,ce)?Z:ce})},[T,Y]),_u(()=>{if(Y||K.current)return;K.current=!0;let Z=v(T);if(!Z)return;let ce=F.current,ue=ct(Z,T),k={reason:"hydrate",previousState:ce},E=i?ct(i(ue,k),T):ue;if(Ha(ce,E))return;B.current=k,x(E),o?.(E,k),n?.(E,k)},[T,Y,o,n,v,i]),_u(()=>{if(typeof document>"u")return;let Z=!A.current;if(A.current=!0,!Z&&U.current&&!window.matchMedia("(prefers-reduced-motion: reduce)").matches){let ue=L.current??200,k=document.createElement("style");k.setAttribute("data-gs-theme-transition",""),k.textContent=`*, *::before, *::after { transition: color ${ue}ms ease, background-color ${ue}ms ease, border-color ${ue}ms ease, box-shadow ${ue}ms ease, fill ${ue}ms ease, stroke ${ue}ms ease !important; }`,document.head.appendChild(k),Aa(document.documentElement,V,T);let E=requestAnimationFrame(()=>{setTimeout(()=>k.remove(),ue)});return()=>{cancelAnimationFrame(E),k.remove()}}Aa(document.documentElement,V,T);return},[T,V]),ka(()=>{if(typeof window>"u")return;if(!N.current){N.current=!0,z.current=C;return}let Z=z.current;if(Ha(Z,C))return;let ce=B.current??{reason:"set-state",previousState:Z};B.current=null,H(C,T,ce),z.current=C},[T,C,H]);let te=dr((Z,ce)=>{let ue=F.current,k=typeof Z==="function"?Z(ue):Z,E=ct({theme:k.theme??ue.theme,colorScheme:k.colorScheme??ue.colorScheme},T),re={reason:ce,previousState:ue},fe=i?ct(i(E,re),T):E;if(Ha(ue,fe))return;if(B.current=re,!Y)x(fe);o?.(fe,re),n?.(fe,re)},[T,Y,o,n,i]),ee=dr((Z)=>{te(Z,"set-state")},[te]),Ae=dr((Z)=>{te({theme:Z},"set-theme")},[te]),W=dr((Z)=>{te({colorScheme:Z},"set-color-scheme")},[te]),me=dr(()=>{let Z=V.resolvedColorScheme===ut.dark?ut.light:ut.dark;te({colorScheme:Z},"toggle-color-scheme")},[V.resolvedColorScheme,te]),$t=La(()=>({theme:C.theme,colorScheme:C.colorScheme,resolvedColorScheme:V.resolvedColorScheme,state:C,resolvedState:V,contract:T,themes:T.themes,setTheme:Ae,setColorScheme:W,setState:ee,toggleColorScheme:me}),[C,V,T,Ae,W,ee,me]);return pT(Qn.Provider,{value:$t,children:e},void 0,!1,void 0,this)};pr.displayName="ThemeProvider";var Oa=()=>{let e=mT(Qn);if(!e)throw Error("useTheme must be used within a ThemeProvider");return e};import{jsxDEV as Ba}from"react/jsx-dev-runtime";function _a(e){return typeof e==="object"&&e!==null}function ht(e){return typeof e==="string"&&e.trim().length>0}function Gu(e){if(!_a(e))return!1;return Object.values(e).every(ht)}function Uu(e){if(!_a(e))return!1;if(!Gu(e.light))return!1;if(e.dark===void 0)return!0;return Gu(e.dark)}function $u(e){return _a(e)&&ht(e.cssText)}function cT(e){return _a(e)&&ht(e.theme)}function En(e){return Error(`Invalid theme registry definition: ${e}`)}function Wu(e){let t=new Set,r=[];for(let o of e){if(!ht(o)||t.has(o))continue;t.add(o),r.push(o)}return r}function uT(e){return e.filter(ht).join(`
2
+ import{A as Zu,B as Ju,C as qu,D as Qu,E as Eu,F as ju,G as ef,H as tf,I as Kr,J as ct,K as rf,L as of,M as af,N as nf,O as Va,P as Fa,Q as Qn,R as Oa,S as sf,T as lf,U as Ia,V as mf,W as _a,a,b as cf,c as wT,d as RT,e as MT,f as LT,g as HT,h as kT,i as AT,j as IT,k as VT,l as FT,m as OT,n as BT,o as Hm,p as bn,q as DT,r as nn,s as sn,t as Zo,u as Ta,v as _T,w as no,x as GT,y as WT,z as ut}from"./chunk-dweaczp3.js";import{cva as HR}from"class-variance-authority";import*as at from"@radix-ui/react-accordion";import{cva as Ya}from"class-variance-authority";import{ChevronDown as bf}from"lucide-react";import{createContext as Tf,forwardRef as Ho,useContext as ri}from"react";import{createContext as gf,useContext as ti}from"react";import{jsxDEV as vf}from"react/jsx-dev-runtime";var Mo="md",Ka=gf(Mo),Lo=({density:e,children:t})=>{return vf(Ka.Provider,{value:e,children:t},void 0,!1,void 0,this)};Lo.displayName="DensityProvider";var yf=()=>{return ti(Ka)};function c(e){let t=ti(Ka);if(e!==void 0)return e;return t}import{jsxDEV as Pt}from"react/jsx-dev-runtime";var Re={sm:"sm",md:"md",lg:"lg"},Xa=Tf(Re.md),oi=Ya("border-b border-border"),ai=Ya("gs-interactive flex flex-1 items-center justify-between font-medium hover:underline [&[data-state=open]>svg]:rotate-180",{variants:{size:{[Re.sm]:"py-3 text-xs [&>svg]:size-3.5",[Re.md]:"py-4 text-sm [&>svg]:size-4",[Re.lg]:"py-5 text-base [&>svg]:size-5"}},defaultVariants:{size:Re.md}}),ni=Ya("gs-accordion-content overflow-hidden",{variants:{size:{[Re.sm]:"text-xs",[Re.md]:"text-sm",[Re.lg]:"text-base"}},defaultVariants:{size:Re.md}}),hf={[Re.sm]:"pt-0 pb-3",[Re.md]:"pt-0 pb-4",[Re.lg]:"pt-0 pb-5"},ii=Ho(({size:e=Re.md,...t},r)=>{let o=c(e)??Re.md;return Pt(Xa.Provider,{value:o,children:Pt(at.Root,{ref:r,...t},void 0,!1,void 0,this)},void 0,!1,void 0,this)});ii.displayName="Accordion";var si=Ho(({className:e,...t},r)=>Pt(at.Item,{ref:r,className:a(oi(),e),...t},void 0,!1,void 0,this));si.displayName="AccordionItem";var li=Ho(({className:e,children:t,...r},o)=>{let n=ri(Xa);return Pt(at.Header,{className:"flex",children:Pt(at.Trigger,{ref:o,className:a(ai({size:n}),e),...r,children:[t,Pt(bf,{className:"shrink-0 transition-transform"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)});li.displayName="AccordionTrigger";var mi=Ho(({className:e,children:t,...r},o)=>{let n=ri(Xa);return Pt(at.Content,{ref:o,className:a(ni({size:n}),e),...r,children:Pt("div",{className:hf[n],children:t},void 0,!1,void 0,this)},void 0,!1,void 0,this)});mi.displayName="AccordionContent";import{cva as Za}from"class-variance-authority";import{TriangleAlert as Pf,CircleCheck as xf,Info as Cf,CircleAlert as zf}from"lucide-react";import{forwardRef as Ja}from"react";import{jsxDEV as qa}from"react/jsx-dev-runtime";var pr={default:"default",success:"success",warning:"warning",error:"error",info:"info"},Yr={sm:"sm",md:"md",lg:"lg",xl:"xl"},di=Za("relative w-full rounded-[var(--radius)] border [&>svg~*]:pl-7 [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground",{variants:{variant:{[pr.default]:"bg-background text-foreground",[pr.success]:"border-success/50 text-success [&>svg]:text-success bg-success/10",[pr.warning]:"border-warning/50 text-warning [&>svg]:text-warning bg-warning/10",[pr.error]:"border-destructive/50 text-destructive [&>svg]:text-destructive bg-destructive/10",[pr.info]:"border-info/50 text-info [&>svg]:text-info bg-info/10"},size:{[Yr.sm]:"p-3 text-xs [&>svg]:top-3 [&>svg]:left-3 [&>svg~*]:pl-6",[Yr.md]:"p-4 text-sm",[Yr.lg]:"p-5 text-sm",[Yr.xl]:"p-6 text-base [&>svg]:top-6 [&>svg]:left-6 [&>svg~*]:pl-8"}},defaultVariants:{variant:pr.default,size:Yr.md}}),pi=Za("mb-1 font-medium leading-none tracking-tight"),ci=Za("text-sm [&_p]:leading-relaxed"),ui=Ja(({className:e,variant:t,size:r,...o},n)=>{let i=c(r);return qa("div",{ref:n,role:"alert",className:a(di({variant:t,size:i}),e),...o},void 0,!1,void 0,this)});ui.displayName="Alert";var fi=Ja(({className:e,...t},r)=>qa("h5",{ref:r,className:a(pi(),e),...t},void 0,!1,void 0,this));fi.displayName="AlertTitle";var gi=Ja(({className:e,...t},r)=>qa("div",{ref:r,className:a(ci(),e),...t},void 0,!1,void 0,this));gi.displayName="AlertDescription";import*as he from"@radix-ui/react-alert-dialog";import{cva as Ci}from"class-variance-authority";import{forwardRef as fr}from"react";import{Slot as yi}from"@radix-ui/react-slot";import{cva as Ea}from"class-variance-authority";import{forwardRef as ko}from"react";import{forwardRef as Sf}from"react";import{jsxDEV as Qa}from"react/jsx-dev-runtime";var cr={sm:"sm",md:"md",lg:"lg",xl:"xl"},Nf={[cr.sm]:"h-4 w-4",[cr.md]:"h-5 w-5",[cr.lg]:"h-6 w-6",[cr.xl]:"h-8 w-8"},xt=Sf(({className:e,size:t=cr.md,label:r="Loading",...o},n)=>{let i=c(t);return Qa("span",{ref:n,className:a("inline-flex items-center justify-center",e),role:"status","aria-label":r,...o,children:[Qa("span",{className:a("animate-spin rounded-full border-2 border-current border-r-transparent",Nf[i])},void 0,!1,void 0,this),Qa("span",{className:"sr-only",children:r},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});xt.displayName="Spinner";import{jsxDEV as gt}from"react/jsx-dev-runtime";var ft={primary:"primary",secondary:"secondary",neutral:"neutral",outline:"outline",ghost:"ghost",danger:"danger"},Ve={sm:"sm",md:"md",lg:"lg",xl:"xl",icon:"icon",iconSm:"icon-sm",iconLg:"icon-lg"},Ct={default:"default",success:"success",warning:"warning",error:"error",info:"info"},ur={sm:"sm",md:"md",lg:"lg"},wf="Loading",Rf="button",Xr=Ea("gs-interactive 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:cursor-not-allowed disabled:border-border disabled:bg-muted/45 disabled:text-muted-foreground",{variants:{variant:{[ft.primary]:"border-primary bg-primary text-primary-foreground enabled:hover:bg-primary/90",[ft.secondary]:"border-secondary bg-secondary text-secondary-foreground enabled:hover:bg-secondary/90",[ft.neutral]:"border-border bg-muted text-foreground enabled:hover:bg-muted/90",[ft.outline]:"border-border bg-background text-foreground enabled:hover:border-primary enabled:hover:bg-muted/50",[ft.ghost]:"border-transparent bg-transparent text-foreground enabled:hover:bg-muted/70",[ft.danger]:"border-destructive bg-destructive text-destructive-foreground enabled:hover:bg-destructive/90"},size:{[Ve.sm]:"h-8 px-2.5 text-xs",[Ve.md]:"h-10 px-4 text-sm",[Ve.lg]:"h-11 px-5 text-sm",[Ve.xl]:"h-12 px-6 text-base",[Ve.icon]:"h-10 w-10 p-0",[Ve.iconSm]:"h-9 w-9 p-0",[Ve.iconLg]:"h-11 w-11 p-0"}},defaultVariants:{variant:ft.primary,size:Ve.md}}),vi=Ea("shrink-0",{variants:{size:{[ur.sm]:"size-3",[ur.md]:"size-4",[ur.lg]:"size-4.5"}},defaultVariants:{size:ur.md}}),bi=Ea("inline-flex items-center rounded-full border px-1.5 py-0.5 font-semibold text-[10px] leading-none",{variants:{tone:{[Ct.default]:"border-border/70 bg-background/75 text-muted-foreground",[Ct.success]:"border-success/35 bg-success/12 text-success",[Ct.warning]:"border-warning/35 bg-warning/12 text-warning",[Ct.error]:"border-destructive/35 bg-destructive/12 text-destructive",[Ct.info]:"border-info/35 bg-info/12 text-info"}},defaultVariants:{tone:Ct.default}});function Mf(e){return e===Ve.icon||e===Ve.iconSm||e===Ve.iconLg}function Lf(e,t,r){return e&&t?-1:r}function Hf(e){return e["aria-label"]??e["aria-labelledby"]??e.title}function kf(){if(typeof process>"u")return!0;return!0}var Ti=ko(({className:e,size:t=ur.md,...r},o)=>gt(yi,{ref:o,className:a(vi({size:t}),e),...r},void 0,!1,void 0,this));Ti.displayName="ButtonIcon";var hi=ko(({className:e,...t},r)=>gt("span",{ref:r,className:a("truncate",e),...t},void 0,!1,void 0,this));hi.displayName="ButtonLabel";var Pi=ko(({className:e,tone:t=Ct.default,...r},o)=>gt("span",{ref:o,className:a(bi({tone:t}),e),...r},void 0,!1,void 0,this));Pi.displayName="ButtonBadge";var xi=ko(({className:e,variant:t=ft.primary,size:r=Ve.md,asChild:o=!1,loading:n=!1,loadingText:i=wf,fullWidth:s=!1,leadingIcon:l,trailingIcon:d,disabled:m,children:f,type:u,tabIndex:v,onClick:p,...y},z)=>{let M=c(r),w=M??r,h=Hf(y);if(kf()&&Mf(w)&&!h)throw Error("Icon-size Button requires aria-label, aria-labelledby, or title.");let b=Boolean(m||n),C=a(Xr({variant:t,size:M}),s&&"w-full",e);if(o)return gt(yi,{ref:z,className:C,"aria-disabled":b||void 0,"aria-busy":n||void 0,tabIndex:Lf(!0,b,v),onClick:b?(B)=>{B.preventDefault()}:p,...y,children:f},void 0,!1,void 0,this);return gt("button",{ref:z,className:C,disabled:b,"aria-disabled":b,"aria-busy":n,tabIndex:v,type:u??Rf,onClick:n?void 0:p,...y,children:[gt("span",{className:a("absolute inset-0 flex items-center justify-center transition-opacity duration-150",n?"opacity-100":"opacity-0"),"aria-hidden":"true",children:gt(xt,{size:"sm"},void 0,!1,void 0,this)},void 0,!1,void 0,this),n&&gt("span",{className:"sr-only",children:i},void 0,!1,void 0,this),gt("span",{className:a("inline-flex items-center justify-center gap-2 transition-opacity duration-150",n&&"opacity-0"),children:[l,f,d]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)});xi.displayName="Button";import{jsxDEV as nt}from"react/jsx-dev-runtime";var zt={sm:"sm",md:"md",lg:"lg",xl:"xl",full:"full"},zi=Ci("gs-dialog-overlay fixed inset-0 z-50 bg-black/50"),Si=Ci("gs-dialog-content fixed left-1/2 top-1/2 z-50 grid w-full gap-4 border border-border bg-background p-6 text-foreground shadow-[var(--shadow-xl)] rounded-[var(--radius)]",{variants:{size:{[zt.sm]:"max-w-sm",[zt.md]:"max-w-md",[zt.lg]:"max-w-lg",[zt.xl]:"max-w-xl",[zt.full]:"max-w-[calc(100vw-2rem)] max-h-[calc(100vh-2rem)]"}},defaultVariants:{size:zt.md}}),Af=he.Root,If=he.Trigger,Ni=he.Portal,ja=fr(({className:e,...t},r)=>nt(he.Overlay,{ref:r,className:a(zi(),e),...t},void 0,!1,void 0,this));ja.displayName="AlertDialogOverlay";var wi=fr(({className:e,size:t=zt.md,...r},o)=>{let n=c(t);return nt(Ni,{children:[nt(ja,{},void 0,!1,void 0,this),nt(he.Content,{ref:o,className:a(Si({size:n}),e),...r},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});wi.displayName="AlertDialogContent";var Ri=({className:e,...t})=>nt("div",{className:a("flex flex-col space-y-2 text-center sm:text-left",e),...t},void 0,!1,void 0,this);Ri.displayName="AlertDialogHeader";var Mi=({className:e,...t})=>nt("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);Mi.displayName="AlertDialogFooter";var Li=fr(({className:e,...t},r)=>nt(he.Title,{ref:r,className:a("text-lg font-semibold",e),...t},void 0,!1,void 0,this));Li.displayName="AlertDialogTitle";var Hi=fr(({className:e,...t},r)=>nt(he.Description,{ref:r,className:a("text-sm text-muted-foreground",e),...t},void 0,!1,void 0,this));Hi.displayName="AlertDialogDescription";var ki=fr(({className:e,...t},r)=>nt(he.Action,{ref:r,className:a(Xr(),e),...t},void 0,!1,void 0,this));ki.displayName="AlertDialogAction";var Ai=fr(({className:e,...t},r)=>nt(he.Cancel,{ref:r,className:a(Xr({variant:"outline"}),"mt-2 sm:mt-0",e),...t},void 0,!1,void 0,this));Ai.displayName="AlertDialogCancel";import*as Ii from"@radix-ui/react-aspect-ratio";var Vf=Ii.Root;import*as yr from"@radix-ui/react-avatar";import{cva as Ff}from"class-variance-authority";import{forwardRef as Ao}from"react";import{jsxDEV as gr}from"react/jsx-dev-runtime";var De={sm:"sm",md:"md",lg:"lg",xl:"xl"},Vi=Ff("relative flex shrink-0 overflow-hidden rounded-full",{variants:{size:{[De.sm]:"h-7 w-7 text-xs",[De.md]:"h-10 w-10 text-sm",[De.lg]:"h-12 w-12 text-base",[De.xl]:"h-16 w-16 text-lg"}},defaultVariants:{size:De.md}}),en=Ao(({className:e,size:t=De.md,...r},o)=>{let n=c(t);return gr(yr.Root,{ref:o,className:a(Vi({size:n}),e),...r},void 0,!1,void 0,this)});en.displayName="Avatar";var Fi=Ao(({className:e,...t},r)=>gr(yr.Image,{ref:r,className:a("aspect-square h-full w-full object-cover",e),...t},void 0,!1,void 0,this));Fi.displayName="AvatarImage";var tn=Ao(({className:e,...t},r)=>gr(yr.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));tn.displayName="AvatarFallback";var Of={[De.sm]:"-space-x-2",[De.md]:"-space-x-3",[De.lg]:"-space-x-4",[De.xl]:"-space-x-5"},Oi=Ao(({className:e,children:t,max:r,size:o=De.md,...n},i)=>{let s=c(o),l=Array.isArray(t)?t:[t],d=r?l.slice(0,r):l,m=r?Math.max(0,l.length-r):0;return gr("div",{ref:i,className:a("flex items-center",Of[s],e),...n,children:[d,m>0&&gr(en,{size:s,className:"border-2 border-background",children:gr(tn,{className:"text-xs",children:["+",m]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});Oi.displayName="AvatarGroup";import{Slot as Bf}from"@radix-ui/react-slot";import{cva as Df}from"class-variance-authority";import{X as _f}from"lucide-react";import{forwardRef as Gf}from"react";import{jsxDEV as Zr}from"react/jsx-dev-runtime";var Ce={default:"default",primary:"primary",success:"success",warning:"warning",error:"error",info:"info",outline:"outline"},St={sm:"sm",md:"md",lg:"lg",dot:"dot"},Bi=Df("inline-flex items-center justify-center gap-1 whitespace-nowrap rounded-full border font-medium",{variants:{variant:{[Ce.default]:"border-border bg-muted text-muted-foreground",[Ce.primary]:"border-primary/30 bg-primary/10 text-primary",[Ce.success]:"border-success/30 bg-success/10 text-success",[Ce.warning]:"border-warning/30 bg-warning/10 text-warning",[Ce.error]:"border-destructive/30 bg-destructive/10 text-destructive",[Ce.info]:"border-info/30 bg-info/10 text-info",[Ce.outline]:"border-border bg-transparent text-foreground"},solid:{true:"",false:""},size:{[St.sm]:"h-5 px-2 text-[10px]",[St.md]:"h-6 px-2.5 text-xs",[St.lg]:"h-7 px-3 text-sm",[St.dot]:"h-2 w-2 p-0"}},compoundVariants:[{solid:!0,variant:Ce.default,className:"border-transparent bg-foreground text-background"},{solid:!0,variant:Ce.primary,className:"border-primary bg-primary text-primary-foreground"},{solid:!0,variant:Ce.success,className:"border-success bg-success text-background"},{solid:!0,variant:Ce.warning,className:"border-warning bg-warning text-background"},{solid:!0,variant:Ce.error,className:"border-destructive bg-destructive text-destructive-foreground"},{solid:!0,variant:Ce.info,className:"border-info bg-info text-background"},{solid:!0,variant:Ce.outline,className:"border-border bg-foreground text-background"}],defaultVariants:{variant:Ce.default,solid:!1,size:St.md}}),Io=Gf(({className:e,variant:t=Ce.default,size:r=St.md,solid:o=!1,pulse:n=!1,removable:i=!1,onRemove:s,onClick:l,children:d,asChild:m=!1,...f},u)=>{let v=c(r),p=Boolean(l),y=v===St.dot,z=(h)=>{h.stopPropagation(),s?.(h)},M=a(Bi({variant:t,solid:o,size:v}),p&&"cursor-pointer",n&&"animate-pulse",i&&!y&&"pr-1",e),w=i&&!y&&Zr("button",{type:"button",className:"gs-interactive ml-0.5 inline-flex size-4 items-center justify-center rounded-full text-current opacity-60 hover:opacity-100",onClick:z,"aria-label":"Remove",tabIndex:-1,children:Zr(_f,{className:"size-3"},void 0,!1,void 0,this)},void 0,!1,void 0,this);if(m)return Zr(Bf,{ref:u,className:M,onClick:l,...f,children:d},void 0,!1,void 0,this);if(p)return Zr("button",{ref:u,className:M,onClick:l,type:"button",...f,children:[!y&&d,w]},void 0,!0,void 0,this);return Zr("span",{ref:u,className:M,...f,children:[!y&&d,w]},void 0,!0,void 0,this)});Io.displayName="Badge";import{Children as Wf,cloneElement as Uf,forwardRef as $f,isValidElement as Kf,useCallback as Di,useEffect as Yf,useLayoutEffect as Xf,useRef as Zf,useState as Jf}from"react";import{jsxDEV as _i}from"react/jsx-dev-runtime";function qf(e){let t=[];return Wf.forEach(e,(r,o)=>{if(!Kf(r))return;let n=r.key??o;t.push({key:n,element:r,isLeaving:!1})}),t}function Qf(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 Ef(e,t,r){if(r.current)return r.current=!1,t;return Qf(e,t)}var jf=typeof window<"u"?Xf:Yf,Gi=$f(({children:e,className:t,onRemove:r,gap:o="sm"},n)=>{let[i,s]=Jf([]),l=Zf(!0);jf(()=>{let u=qf(e);s((v)=>Ef(v,u,l))},[e]);let d=Di((u)=>{s((v)=>v.filter((p)=>p.key!==u))},[]),m=Di((u)=>{r?.(u)},[r]),f={sm:"gap-1",md:"gap-2",lg:"gap-3"}[o];return _i("div",{ref:n,className:a("inline-flex flex-wrap items-center",f,t),children:i.map((u)=>{let v={};if(u.element.props.removable&&r)v.onRemove=()=>{m(u.key)};let p=a("inline-flex transition-all duration-200",u.isLeaving&&"pointer-events-none scale-95 opacity-0");return _i("span",{className:p,onTransitionEnd:u.isLeaving?()=>d(u.key):void 0,children:Uf(u.element,v)},u.key,!1,void 0,this)})},void 0,!1,void 0,this)});Gi.displayName="BadgeGroup";import{Slot as eg}from"@radix-ui/react-slot";import{cva as vr}from"class-variance-authority";import{ChevronRight as tg,MoreHorizontal as rg}from"lucide-react";import{createContext as og,forwardRef as Jr,useContext as rn}from"react";import{jsxDEV as Ze}from"react/jsx-dev-runtime";var ge={sm:"sm",md:"md",lg:"lg"},Vo=og(ge.md),Wi=vr("flex flex-wrap items-center break-words text-muted-foreground",{variants:{size:{[ge.sm]:"gap-1 text-xs",[ge.md]:"gap-1.5 text-sm sm:gap-2.5",[ge.lg]:"gap-2 text-base sm:gap-3"}},defaultVariants:{size:ge.md}}),Ui=vr("inline-flex items-center gap-1.5"),$i=vr("gs-interactive hover:text-foreground focus-visible:outline-none focus-visible:text-foreground"),Ki=vr("font-normal text-foreground"),Yi=vr("",{variants:{size:{[ge.sm]:"[&>svg]:size-3",[ge.md]:"[&>svg]:size-3.5",[ge.lg]:"[&>svg]:size-4"}},defaultVariants:{size:ge.md}}),Xi=vr("flex items-center justify-center",{variants:{size:{[ge.sm]:"h-7 w-7 [&>svg]:size-3.5",[ge.md]:"h-9 w-9 [&>svg]:size-4",[ge.lg]:"h-10 w-10 [&>svg]:size-5"}},defaultVariants:{size:ge.md}}),Zi=Jr(({size:e=ge.md,...t},r)=>{let o=c(e)??ge.md;return Ze(Vo.Provider,{value:o,children:Ze("nav",{ref:r,"aria-label":"breadcrumb",...t},void 0,!1,void 0,this)},void 0,!1,void 0,this)});Zi.displayName="Breadcrumb";var Ji=Jr(({className:e,...t},r)=>{let o=rn(Vo);return Ze("ol",{ref:r,className:a(Wi({size:o}),e),...t},void 0,!1,void 0,this)});Ji.displayName="BreadcrumbList";var qi=Jr(({className:e,...t},r)=>Ze("li",{ref:r,className:a(Ui(),e),...t},void 0,!1,void 0,this));qi.displayName="BreadcrumbItem";var Qi=Jr(({asChild:e,className:t,...r},o)=>{return Ze(e?eg:"a",{ref:o,className:a($i(),t),...r},void 0,!1,void 0,this)});Qi.displayName="BreadcrumbLink";var Ei=Jr(({className:e,...t},r)=>Ze("span",{ref:r,role:"link",tabIndex:0,"aria-disabled":"true","aria-current":"page",className:a(Ki(),e),...t},void 0,!1,void 0,this));Ei.displayName="BreadcrumbPage";var ji=({children:e,className:t,...r})=>{let o=rn(Vo),n={[ge.sm]:"size-3",[ge.md]:"size-3.5",[ge.lg]:"size-4"};return Ze("li",{role:"presentation","aria-hidden":"true",className:a(Yi({size:o}),t),...r,children:e??Ze(tg,{className:n[o]},void 0,!1,void 0,this)},void 0,!1,void 0,this)};ji.displayName="BreadcrumbSeparator";var es=({className:e,...t})=>{let r=rn(Vo);return Ze("span",{role:"presentation","aria-hidden":"true",className:a(Xi({size:r}),e),...t,children:[Ze(rg,{},void 0,!1,void 0,this),Ze("span",{className:"sr-only",children:"More"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)};es.displayName="BreadcrumbEllipsis";import{cva as ag}from"class-variance-authority";import{forwardRef as ng}from"react";import{jsxDEV as ig}from"react/jsx-dev-runtime";var qr={horizontal:"horizontal",vertical:"vertical"},ts=ag("inline-flex items-stretch",{variants:{orientation:{[qr.horizontal]:"flex-row",[qr.vertical]:"flex-col"},attached:{true:"gap-0 [&>*:not(:first-child)]:rounded-l-none [&>*:not(:last-child)]:rounded-r-none",false:"gap-2"}},defaultVariants:{orientation:qr.horizontal,attached:!1}}),rs=ng(({className:e,orientation:t=qr.horizontal,attached:r=!1,fullWidth:o=!1,...n},i)=>ig("div",{ref:i,className:a(ts({orientation:t,attached:r}),o&&"w-full",e),...n},void 0,!1,void 0,this));rs.displayName="ButtonGroup";import{cva as Nt}from"class-variance-authority";import{forwardRef as sg,useCallback as br,useEffect as lg,useMemo as os,useState as as}from"react";import{jsxDEV as Fe}from"react/jsx-dev-runtime";var D={sm:"sm",md:"md",lg:"lg",xl:"xl"},is=Nt("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:{[D.sm]:"p-3 text-sm",[D.md]:"p-4 text-sm",[D.lg]:"p-5 text-base",[D.xl]:"p-6 text-base"}},defaultVariants:{size:D.md}}),ss=Nt("mb-3 flex items-center justify-between",{variants:{size:{[D.sm]:"gap-1",[D.md]:"gap-2",[D.lg]:"gap-3",[D.xl]:"gap-3"}},defaultVariants:{size:D.md}}),ls=Nt("font-semibold text-foreground",{variants:{size:{[D.sm]:"text-sm",[D.md]:"text-base",[D.lg]:"text-lg",[D.xl]:"text-xl"}},defaultVariants:{size:D.md}}),on=Nt(["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:opacity-50"],{variants:{size:{[D.sm]:"size-7",[D.md]:"size-8",[D.lg]:"size-10",[D.xl]:"size-10"}},defaultVariants:{size:D.md}}),ms=Nt("grid grid-cols-7",{variants:{size:{[D.sm]:"gap-0.5",[D.md]:"gap-1",[D.lg]:"gap-1.5",[D.xl]:"gap-2"}},defaultVariants:{size:D.md}}),ds=Nt("text-center font-semibold uppercase tracking-wide text-muted-foreground",{variants:{size:{[D.sm]:"py-1 text-[10px]",[D.md]:"py-1.5 text-xs",[D.lg]:"py-2 text-sm",[D.xl]:"py-2 text-sm"}},defaultVariants:{size:D.md}}),ps=Nt(["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:{[D.sm]:"size-7 text-xs",[D.md]:"size-9 text-sm",[D.lg]:"size-10 text-base",[D.xl]:"size-11 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:D.md,state:"default"}}),mg=Nt("rounded-md border border-transparent",{variants:{size:{[D.sm]:"size-7",[D.md]:"size-9",[D.lg]:"size-10",[D.xl]:"size-11"}},defaultVariants:{size:D.md}}),ns=["Su","Mo","Tu","We","Th","Fr","Sa"],dg=["January","February","March","April","May","June","July","August","September","October","November","December"],yt=(e)=>new Date(e.getFullYear(),e.getMonth(),e.getDate()),Tr=(e,t)=>{return e.getDate()===t.getDate()&&e.getMonth()===t.getMonth()&&e.getFullYear()===t.getFullYear()},cs=sg(({className:e,size:t="md",cellSize:r,mode:o="single",value:n,defaultValue:i,onChange:s,rangeValue:l,onRangeChange:d,viewMonth:m,onViewMonthChange:f,minDate:u,maxDate:v,disabledDates:p=[],weekStartsOn:y=1,highlightToday:z=!0,...M},w)=>{let h=c(t)??D.md,b=c(r??h)??h,[C,B]=as(n??i??null),[R,A]=as(n??i??new Date),S=m??R,I=br((g)=>{if(f){let T=typeof g==="function"?g(m??R):g;f(T)}else A((T)=>{return typeof g==="function"?g(T):g})},[m,R,f]),K=n!==void 0?n:C,O=u?yt(u):null,$=v?yt(v):null;lg(()=>{if(n!==void 0){if(B(n??null),n&&!m)A(n)}},[n,m]);let N=br((g,T)=>{return(new Date(g,T,1).getDay()-y+7)%7},[y]),V=os(()=>{let g=S.getFullYear(),T=S.getMonth(),L=N(g,T),re=new Date(g,T+1,0).getDate(),ee=[];for(let te=0;te<L;te+=1)ee.push({key:`leading-${g}-${T}-${te}`,date:null});for(let te=1;te<=re;te+=1)ee.push({key:`day-${g}-${T}-${te}`,date:new Date(g,T,te)});let oe=(7-ee.length%7)%7;for(let te=0;te<oe;te+=1)ee.push({key:`trailing-${g}-${T}-${te}`,date:null});return ee},[S,N]),P=br((g)=>{let T=yt(g);if(O&&T<O)return!0;if($&&T>$)return!0;return p.some((L)=>Tr(T,yt(L)))},[O,$,p]),F=br((g)=>{if(P(g))return"disabled";if(o==="range"&&l){let{from:T,to:L}=l;if(T&&Tr(g,T))return"rangeStart";if(L&&Tr(g,L))return"rangeEnd";if(T&&L){let re=yt(g),ee=yt(T),oe=yt(L);if(re>ee&&re<oe)return"range"}}if(o==="single"&&K&&Tr(g,K))return"selected";if(z&&Tr(g,new Date))return"today";return"default"},[K,z,P,o,l]),j=br((g)=>{if(P(g))return;let T=new Date(g);if(o==="range"){if(!l?.from||l.from&&l.to)d?.({from:T,to:void 0});else{let L=yt(l.from);if(yt(T)<L)d?.({from:T,to:l.from});else d?.({from:l.from,to:T})}return}if(n===void 0)B(T);s?.(T)},[P,o,s,d,l,n]),H=br((g)=>{I((T)=>{let L=new Date(T);return L.setMonth(L.getMonth()+g),L})},[I]),Y=os(()=>{return[...ns.slice(y),...ns.slice(0,y)]},[y]);return Fe("div",{ref:w,className:a(is({size:h}),e),...M,children:[Fe("div",{className:a(ss({size:h})),children:[Fe("button",{type:"button",onClick:()=>H(-1),className:a(on({size:h})),"aria-label":"Previous month",children:Fe("svg",{className:"size-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:Fe("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),Fe("span",{className:a(ls({size:h})),children:[dg[S.getMonth()]," ",S.getFullYear()]},void 0,!0,void 0,this),Fe("button",{type:"button",onClick:()=>H(1),className:a(on({size:h})),"aria-label":"Next month",children:Fe("svg",{className:"size-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:Fe("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),Fe("div",{className:a(ms({size:h})),children:[Y.map((g)=>Fe("div",{className:a(ds({size:b})),children:g},g,!1,void 0,this)),V.map((g)=>{if(!g.date)return Fe("div",{"aria-hidden":"true",className:a(mg({size:b}))},g.key,!1,void 0,this);let T=g.date,L=F(T);return Fe("button",{type:"button",onClick:()=>j(T),disabled:L==="disabled",className:a(ps({size:b,state:L})),children:T.getDate()},g.key,!1,void 0,this)})]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)});cs.displayName="Calendar";import{Slot as hr}from"@radix-ui/react-slot";import{cva as pg}from"class-variance-authority";import{forwardRef as Pr}from"react";import{jsxDEV as xr}from"react/jsx-dev-runtime";var Fo={default:"default",muted:"muted",danger:"danger"},us=pg("gs-interactive relative overflow-hidden rounded-[var(--radius)] border bg-card text-card-foreground shadow-[var(--shadow-sm)]",{variants:{variant:{[Fo.default]:"border-border",[Fo.muted]:"border-border/70 bg-muted/40",[Fo.danger]:"border-destructive/30 bg-destructive/[0.06]"}},defaultVariants:{variant:Fo.default}}),fs=Pr(({asChild:e=!1,className:t,variant:r,...o},n)=>{return xr(e?hr:"div",{ref:n,className:a(us({variant:r}),t),...o},void 0,!1,void 0,this)});fs.displayName="Card";var gs=Pr(({asChild:e=!1,className:t,...r},o)=>{return xr(e?hr:"div",{ref:o,className:a("flex flex-col gap-1.5 border-b border-border/50 p-4",t),...r},void 0,!1,void 0,this)});gs.displayName="CardHeader";var ys=Pr(({asChild:e=!1,className:t,...r},o)=>{return xr(e?hr:"div",{ref:o,className:a("p-4",t),...r},void 0,!1,void 0,this)});ys.displayName="CardContent";var vs=Pr(({asChild:e=!1,className:t,...r},o)=>{return xr(e?hr:"div",{ref:o,className:a("flex items-center border-t border-border/50 p-4",t),...r},void 0,!1,void 0,this)});vs.displayName="CardFooter";var bs=Pr(({asChild:e=!1,className:t,...r},o)=>{return xr(e?hr:"h3",{ref:o,className:a("font-semibold text-base leading-none tracking-tight",t),...r},void 0,!1,void 0,this)});bs.displayName="CardTitle";var Ts=Pr(({asChild:e=!1,className:t,...r},o)=>{return xr(e?hr:"p",{ref:o,className:a("text-sm text-muted-foreground",t),...r},void 0,!1,void 0,this)});Ts.displayName="CardDescription";import*as Bo from"@radix-ui/react-checkbox";import{cva as cg}from"class-variance-authority";import{Check as ug,Minus as fg}from"lucide-react";import{forwardRef as gg}from"react";import{jsxDEV as Oo}from"react/jsx-dev-runtime";var Je={sm:"sm",md:"md",lg:"lg",xl:"xl"},Cr={default:"default",error:"error",success:"success"},Ps=cg("gs-interactive 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:{[Je.sm]:"h-4 w-4",[Je.md]:"h-5 w-5",[Je.lg]:"h-6 w-6",[Je.xl]:"h-7 w-7"},status:{[Cr.default]:"enabled:hover:border-primary/70",[Cr.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",[Cr.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:Je.md,status:Cr.default}}),hs={[Je.sm]:"size-3.5",[Je.md]:"size-3.5",[Je.lg]:"size-4",[Je.xl]:"size-5"},xs=gg(({className:e,size:t=Je.md,status:r=Cr.default,checked:o,disabled:n,...i},s)=>{let l=c(t);return Oo(Bo.Root,{ref:s,checked:o,disabled:n,className:a(Ps({size:l,status:r}),e),...i,children:Oo(Bo.Indicator,{className:"gs-checkbox-indicator flex items-center justify-center text-current",children:o==="indeterminate"?Oo(fg,{className:hs[l]},void 0,!1,void 0,this):Oo(ug,{className:hs[l]},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)});xs.displayName="Checkbox";import{cva as wt}from"class-variance-authority";import{forwardRef as yg,useCallback as vg,useState as bg}from"react";import{jsxDEV as Me,Fragment as Cs}from"react/jsx-dev-runtime";var q={sm:"sm",md:"md",lg:"lg"},an={default:"default",ghost:"ghost"},zs=wt("relative rounded-lg overflow-hidden font-mono",{variants:{size:{[q.sm]:"text-xs",[q.md]:"text-sm",[q.lg]:"text-base"},variant:{[an.default]:"bg-muted border border-border",[an.ghost]:"bg-transparent"}},defaultVariants:{size:q.md,variant:an.default}}),Ss=wt("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.md}}),Ns=wt("text-muted-foreground font-medium",{variants:{size:{[q.sm]:"text-[11px]",[q.md]:"text-xs",[q.lg]:"text-sm"}},defaultVariants:{size:q.md}}),ws=wt(["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.md,copied:!1}}),Rs=wt("overflow-x-auto",{variants:{size:{[q.sm]:"p-2.5",[q.md]:"p-4",[q.lg]:"p-5"}},defaultVariants:{size:q.md}}),Ms=wt("text-foreground",{variants:{size:{[q.sm]:"",[q.md]:"",[q.lg]:""},showLineNumbers:{true:"",false:""}},defaultVariants:{size:q.md,showLineNumbers:!1}}),Ls=wt("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.md,highlighted:!1}}),Hs=wt("inline-block text-right text-muted-foreground select-none",{variants:{size:{[q.sm]:"w-6 mr-2 text-[10px]",[q.md]:"w-8 mr-4 text-xs",[q.lg]:"w-10 mr-5 text-sm"}},defaultVariants:{size:q.md}}),ks=yg(({className:e,code:t,language:r,showLineNumbers:o=!1,highlightedLines:n=[],showCopy:i=!0,size:s="md",variant:l="default",onCopy:d,...m},f)=>{let u=c(s),[v,p]=bg(!1),y=vg(async()=>{try{await navigator.clipboard.writeText(t),p(!0),d?.(t),setTimeout(()=>p(!1),2000)}catch(w){}},[t,d]),z=t.split(`
3
+ `),M=new Set(n);return Me("div",{ref:f,className:a(zs({size:u,variant:l}),e),...m,children:[(r||i)&&Me("div",{className:a(Ss({size:u})),children:[Me("span",{className:a(Ns({size:u})),children:r},void 0,!1,void 0,this),i&&Me("button",{type:"button",onClick:y,className:a(ws({size:u,copied:v})),children:v?Me(Cs,{children:[Me("svg",{className:"size-3.5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:Me("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M5 13l4 4L19 7"},void 0,!1,void 0,this)},void 0,!1,void 0,this),"Copied!"]},void 0,!0,void 0,this):Me(Cs,{children:[Me("svg",{className:"size-3.5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:Me("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"},void 0,!1,void 0,this)},void 0,!1,void 0,this),"Copy"]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Me("div",{className:a(Rs({size:u})),children:Me("pre",{className:a(Ms({size:u,showLineNumbers:o})),children:Me("code",{children:z.map((w,h)=>Me("span",{className:a(Ls({size:u,highlighted:M.has(h+1)})),children:[o&&Me("span",{className:a(Hs({size:u})),children:h+1},void 0,!1,void 0,this),w,`
4
+ `]},`line-${String(h)}`,!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)});ks.displayName="CodeBlock";import*as zr from"@radix-ui/react-collapsible";import{cva as Tg}from"class-variance-authority";import{forwardRef as hg}from"react";import{jsxDEV as Cg}from"react/jsx-dev-runtime";var As=Tg("gs-collapsible-content overflow-hidden"),Pg=zr.Root,xg=zr.CollapsibleTrigger,Is=hg(({className:e,...t},r)=>Cg(zr.CollapsibleContent,{ref:r,className:a(As(),e),...t},void 0,!1,void 0,this));Is.displayName="CollapsibleContent";import*as Rt from"@radix-ui/react-dialog";import{cva as qe}from"class-variance-authority";import{createContext as Ng,forwardRef as it,useContext as wg,useState as Fs}from"react";import{useCallback as zg,useEffect as Sg,useRef as Vs}from"react";function Qr(e,t,r={}){let{enabled:o=!0,preventDefault:n=!0,stopPropagation:i=!1,target:s="global"}=r,l=Vs(t);l.current=t;let d=Vs([]),m=Array.isArray(e)?e:[e];d.current=m.map((u)=>({combo:u,def:nn(u)}));let f=zg((u)=>{if(!o)return;for(let{combo:v,def:p}of d.current)if(sn(u,p)){if(n)u.preventDefault();if(i)u.stopPropagation();l.current(u,v);return}},[o,n,i]);Sg(()=>{if(!o)return;let u=s==="global"?document:s.current;if(!u)return;return u.addEventListener("keydown",f),()=>{u.removeEventListener("keydown",f)}},[o,f,s])}import{jsxDEV as Pe}from"react/jsx-dev-runtime";var Os=qe(["fixed left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 z-50","w-full max-w-lg","bg-background border border-border rounded-xl shadow-2xl","overflow-hidden","animate-in fade-in-0 zoom-in-95 duration-200","data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95"],{variants:{size:{sm:"max-w-sm",md:"max-w-lg",lg:"max-w-2xl"}},defaultVariants:{size:"md"}}),Bs=qe(["fixed inset-0 z-50 bg-black/50 backdrop-blur-sm","animate-in fade-in-0 duration-200","data-[state=closed]:animate-out data-[state=closed]:fade-out-0"]),Ds=qe(["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:opacity-50"]),_s=qe(["max-h-[300px] overflow-y-auto overflow-x-hidden p-2"]),Gs=qe(["py-6 text-center text-sm text-muted-foreground"]),Ws=qe(["overflow-hidden"]),Us=qe(["px-2 py-1.5 text-xs font-medium text-muted-foreground"]),Do={default:"default",danger:"danger"},$s=qe(["relative flex items-center gap-2 rounded-lg px-2 py-2","text-sm cursor-pointer select-none","outline-none transition-colors duration-150","data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50"],{variants:{selected:{true:"bg-primary/10 text-primary",false:"hover:bg-background-subtle"},variant:{[Do.default]:"text-foreground",[Do.danger]:"text-destructive hover:bg-destructive/10 focus:bg-destructive/10 focus:text-destructive"}},defaultVariants:{selected:!1,variant:Do.default}}),Ks=qe(["-mx-1 my-1 h-px bg-border"]),Ys=qe(["ml-auto text-xs tracking-widest text-muted-foreground"]),Xs=qe(["flex items-center justify-center py-6"]),Zs=Ng(null),ln=()=>{let e=wg(Zs);if(!e)throw Error("useCommand must be used within a Command");return e},mn=it(({className:e,children:t,loop:r=!0,...o},n)=>{let[i,s]=Fs(""),[l,d]=Fs(0);return Pe(Zs.Provider,{value:{search:i,setSearch:s,selectedIndex:l,setSelectedIndex:d},children:Pe("div",{ref:n,className:a("flex flex-col overflow-hidden rounded-xl bg-background",e),...o,children:t},void 0,!1,void 0,this)},void 0,!1,void 0,this)});mn.displayName="Command";var Js=it(({children:e,size:t,...r},o)=>{return Pe(Rt.Root,{...r,children:Pe(Rt.Portal,{children:[Pe(Rt.Overlay,{className:a(Bs())},void 0,!1,void 0,this),Pe(Rt.Content,{ref:o,className:a(Os({size:t})),children:Pe(mn,{children:e},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)});Js.displayName="CommandDialog";var qs=it(({className:e,icon:t,...r},o)=>{let{search:n,setSearch:i,setSelectedIndex:s}=ln();return Pe("div",{className:"flex items-center border-border border-b px-3",children:[t&&Pe("span",{className:"mr-2 shrink-0 text-muted-foreground",children:t},void 0,!1,void 0,this),Pe("input",{ref:o,value:n,onChange:(l)=>{i(l.target.value),s(0)},className:a(Ds(),e),...r},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});qs.displayName="CommandInput";var Qs=it(({className:e,children:t,...r},o)=>{return Pe("div",{ref:o,className:a(_s(),e),...r,children:t},void 0,!1,void 0,this)});Qs.displayName="CommandList";var Es=it(({className:e,children:t="No results found.",...r},o)=>{return Pe("div",{ref:o,className:a(Gs(),e),...r,children:t},void 0,!1,void 0,this)});Es.displayName="CommandEmpty";var js=it(({className:e,heading:t,children:r,...o},n)=>{return Pe("div",{ref:n,className:a(Ws(),e),...o,children:[t&&Pe("div",{className:a(Us()),children:t},void 0,!1,void 0,this),r]},void 0,!0,void 0,this)});js.displayName="CommandGroup";var el=it(({className:e,disabled:t,onSelect:r,children:o,keywords:n,variant:i,...s},l)=>{let{search:d}=ln();if(!(()=>{if(!d)return!0;let f=d.toLowerCase();if((typeof o==="string"?o.toLowerCase():"").includes(f))return!0;if(n?.some((v)=>v.toLowerCase().includes(f)))return!0;return!1})())return null;return Pe("div",{ref:l,role:"option","aria-selected":!1,"aria-disabled":t,"data-disabled":t,onClick:()=>!t&&r?.(),onKeyDown:(f)=>{if(f.key==="Enter"&&!t)f.preventDefault(),r?.()},tabIndex:t?-1:0,className:a($s({selected:!1,variant:i}),e),...s,children:o},void 0,!1,void 0,this)});el.displayName="CommandItem";var tl=it(({className:e,...t},r)=>{return Pe("div",{ref:r,className:a(Ks(),e),...t},void 0,!1,void 0,this)});tl.displayName="CommandSeparator";var rl=it(({className:e,children:t,...r},o)=>{return Pe("span",{ref:o,className:a(Ys(),e),...r,children:t},void 0,!1,void 0,this)});rl.displayName="CommandShortcut";var ol=it(({className:e,children:t,...r},o)=>{return Pe("div",{ref:o,className:a(Xs(),e),...r,children:t},void 0,!1,void 0,this)});ol.displayName="CommandLoading";var Rg=({key:e,modifier:t="meta",callback:r})=>{Qr(`${t}+${e}`,r)};import*as _ from"@radix-ui/react-context-menu";import{cva as Ut}from"class-variance-authority";import{Check as Mg,ChevronRight as Lg,Circle as Hg}from"lucide-react";import{createContext as kg,forwardRef as Mt,useContext as Sr}from"react";import{jsxDEV as ye}from"react/jsx-dev-runtime";var Z={sm:"sm",md:"md",lg:"lg"},_o={default:"default",danger:"danger"},$t=kg(Z.md),dn=Ut("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)]"),pn=Ut("gs-interactive 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:{[Z.sm]:"h-6 gap-1.5 px-1.5 text-xs [&_svg]:size-3",[Z.md]:"h-8 gap-2 px-2 text-sm [&_svg]:size-4",[Z.lg]:"h-9 gap-2 px-2.5 text-sm [&_svg]:size-4"},variant:{[_o.default]:"hover:bg-accent/80 focus:bg-accent focus:text-accent-foreground",[_o.danger]:"text-destructive hover:bg-destructive/10 focus:bg-destructive/10 focus:text-destructive"}},defaultVariants:{size:Z.md,variant:_o.default}}),al=Ut("gs-interactive 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:{[Z.sm]:"h-6 pl-6 pr-1.5 text-xs",[Z.md]:"h-8 pl-8 pr-2 text-sm",[Z.lg]:"h-9 pl-8 pr-2.5 text-sm"}},defaultVariants:{size:Z.md}}),nl=Ut("gs-interactive 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:{[Z.sm]:"h-6 pl-6 pr-1.5 text-xs",[Z.md]:"h-8 pl-8 pr-2 text-sm",[Z.lg]:"h-9 pl-8 pr-2.5 text-sm"}},defaultVariants:{size:Z.md}}),il=Ut("font-semibold text-muted-foreground",{variants:{size:{[Z.sm]:"px-1.5 py-0.5 text-[10px]",[Z.md]:"px-2 py-1.5 text-xs",[Z.lg]:"px-2.5 py-1.5 text-xs"}},defaultVariants:{size:Z.md}}),sl=Ut("-mx-1 my-1 h-px bg-border/50"),ll=Ut("ml-auto tracking-widest text-muted-foreground/70",{variants:{size:{[Z.sm]:"text-[10px]",[Z.md]:"text-xs",[Z.lg]:"text-xs"}},defaultVariants:{size:Z.md}}),ml={[Z.sm]:"absolute left-1.5 flex size-3 items-center justify-center",[Z.md]:"absolute left-2 flex size-3.5 items-center justify-center",[Z.lg]:"absolute left-2.5 flex size-4 items-center justify-center"},Ag={[Z.sm]:"size-3",[Z.md]:"size-3.5",[Z.lg]:"size-4"},Ig={[Z.sm]:"size-1.5 fill-current",[Z.md]:"size-2 fill-current",[Z.lg]:"size-2.5 fill-current"},Vg=_.Root,Fg=_.Trigger,Og=_.Group,Bg=_.Portal,Dg=_.Sub,_g=_.RadioGroup,dl=Mt(({className:e,inset:t,children:r,...o},n)=>{let i=Sr($t),s=c(i);return ye(_.SubTrigger,{ref:n,className:a(pn({size:s}),"data-[state=open]:bg-accent",t&&"pl-8",e),...o,children:[r,ye(Lg,{className:"ml-auto"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});dl.displayName=_.SubTrigger.displayName;var pl=Mt(({className:e,...t},r)=>ye(_.Portal,{children:ye(_.SubContent,{ref:r,className:a(dn(),e),...t},void 0,!1,void 0,this)},void 0,!1,void 0,this));pl.displayName=_.SubContent.displayName;var cl=Mt(({className:e,size:t,...r},o)=>{let n=c(t)??Z.md;return ye($t.Provider,{value:n,children:ye(_.Portal,{children:ye(_.Content,{ref:o,className:a(dn(),e),...r},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)});cl.displayName=_.Content.displayName;var ul=Mt(({className:e,inset:t,variant:r,...o},n)=>{let i=Sr($t),s=c(i);return ye(_.Item,{ref:n,className:a(pn({size:s,variant:r}),t&&"pl-8",e),...o},void 0,!1,void 0,this)});ul.displayName=_.Item.displayName;var fl=Mt(({className:e,children:t,checked:r,...o},n)=>{let i=Sr($t),s=c(i)??Z.md;return ye(_.CheckboxItem,{ref:n,className:a(al({size:s}),e),checked:r,...o,children:[ye("span",{className:ml[s],children:ye(_.ItemIndicator,{children:ye(Mg,{className:Ag[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)});fl.displayName=_.CheckboxItem.displayName;var gl=Mt(({className:e,children:t,...r},o)=>{let n=Sr($t),i=c(n)??Z.md;return ye(_.RadioItem,{ref:o,className:a(nl({size:i}),e),...r,children:[ye("span",{className:ml[i],children:ye(_.ItemIndicator,{children:ye(Hg,{className:Ig[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)});gl.displayName=_.RadioItem.displayName;var yl=Mt(({className:e,inset:t,...r},o)=>{let n=Sr($t),i=c(n);return ye(_.Label,{ref:o,className:a(il({size:i}),t&&"pl-8",e),...r},void 0,!1,void 0,this)});yl.displayName=_.Label.displayName;var vl=Mt(({className:e,...t},r)=>ye(_.Separator,{ref:r,className:a(sl(),e),...t},void 0,!1,void 0,this));vl.displayName=_.Separator.displayName;var bl=({className:e,...t})=>{let r=Sr($t),o=c(r);return ye("span",{className:a(ll({size:o}),e),...t},void 0,!1,void 0,this)};bl.displayName="ContextMenuShortcut";import*as xe from"@radix-ui/react-dialog";import{cva as Gg}from"class-variance-authority";import{X as Wg}from"lucide-react";import{forwardRef as Go}from"react";import{jsxDEV as Qe}from"react/jsx-dev-runtime";var Lt={sm:"sm",md:"md",lg:"lg",xl:"xl",full:"full"},Er=xe.Root,Ug=xe.Trigger,Wo=xe.Portal,$g=xe.Close,cn=xe.Content,jr=Go(({className:e,...t},r)=>Qe(xe.Overlay,{ref:r,className:a("gs-dialog-overlay fixed inset-0 z-50 bg-black/50",e),...t},void 0,!1,void 0,this));jr.displayName="DialogOverlay";var Tl=Gg("gs-dialog-content fixed left-1/2 top-1/2 z-50 grid w-full gap-4 border border-border bg-background p-6 text-foreground shadow-[var(--shadow-xl)] rounded-[var(--radius)]",{variants:{size:{[Lt.sm]:"max-w-sm",[Lt.md]:"max-w-md",[Lt.lg]:"max-w-lg",[Lt.xl]:"max-w-xl",[Lt.full]:"max-w-[calc(100vw-2rem)] max-h-[calc(100vh-2rem)]"}},defaultVariants:{size:Lt.md}}),Uo=Go(({className:e,children:t,size:r=Lt.md,showClose:o=!0,...n},i)=>{let s=c(r);return Qe(Wo,{children:[Qe(jr,{},void 0,!1,void 0,this),Qe(xe.Content,{ref:i,className:a(Tl({size:s}),e),...n,children:[t,o&&Qe(xe.Close,{className:"gs-interactive 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",children:[Qe(Wg,{className:"size-4"},void 0,!1,void 0,this),Qe("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)});Uo.displayName="DialogContent";var hl=({className:e,...t})=>Qe("div",{className:a("flex flex-col space-y-1.5 text-center sm:text-left",e),...t},void 0,!1,void 0,this);hl.displayName="DialogHeader";var Pl=({className:e,...t})=>Qe("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);Pl.displayName="DialogFooter";var $o=Go(({className:e,...t},r)=>Qe(xe.Title,{ref:r,className:a("font-semibold text-lg leading-none tracking-tight",e),...t},void 0,!1,void 0,this));$o.displayName="DialogTitle";var xl=Go(({className:e,...t},r)=>Qe(xe.Description,{ref:r,className:a("text-muted-foreground text-sm",e),...t},void 0,!1,void 0,this));xl.displayName="DialogDescription";import{cva as un}from"class-variance-authority";import{X as Kg}from"lucide-react";import{forwardRef as Ko}from"react";import{Drawer as vt}from"vaul";import{jsxDEV as _e}from"react/jsx-dev-runtime";var Ge={sm:"sm",md:"md",lg:"lg",xl:"xl",full:"full"},Yg={[Ge.sm]:"sm:max-w-sm",[Ge.md]:"sm:max-w-md",[Ge.lg]:"sm:max-w-lg",[Ge.xl]:"sm:max-w-xl",[Ge.full]:"sm:max-w-full"},Xg={[Ge.sm]:"sm:max-h-[30vh]",[Ge.md]:"sm:max-h-[50vh]",[Ge.lg]:"sm:max-h-[70vh]",[Ge.xl]:"sm:max-h-[85vh]",[Ge.full]:"sm:max-h-full"},Cl=un(["fixed inset-0 z-50 bg-black/50","data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:duration-200","data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:duration-150"]),zl=un(["group/drawer-content fixed z-50 flex h-auto flex-col border border-border bg-background 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"]),Sl=un("mx-auto shrink-0 rounded-full bg-muted-foreground/25 transition-colors duration-150 hover:bg-muted-foreground/40",{variants:{direction:{top:"mb-4 mt-2 h-1.5 w-[60px]",bottom:"mb-2 mt-4 h-1.5 w-[60px]",left:"ml-auto mr-2 mt-auto mb-auto h-[60px] w-1.5",right:"ml-2 mr-auto mt-auto mb-auto h-[60px] w-1.5"}},defaultVariants:{direction:"bottom"}}),Zg=vt.Root,Jg=vt.Trigger,qg=vt.Close,Nl=vt.Portal,fn=Ko(({className:e,...t},r)=>_e(vt.Overlay,{ref:r,className:a(Cl(),e),...t},void 0,!1,void 0,this));fn.displayName="DrawerOverlay";var wl=Ko(({size:e=Ge.md,showClose:t=!1,direction:r="bottom",className:o,children:n,...i},s)=>{let d=r==="left"||r==="right"?Yg[e]:Xg[e];return _e(Nl,{children:[_e(fn,{},void 0,!1,void 0,this),_e(vt.Content,{ref:s,className:a(zl(),d,o),...i,children:[(r==="top"||r==="bottom")&&_e("div",{className:a(Sl({direction:r}))},void 0,!1,void 0,this),n,t&&_e(vt.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:[_e(Kg,{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)});wl.displayName="DrawerContent";var Rl=({className:e,...t})=>_e("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);Rl.displayName="DrawerHeader";var Ml=({className:e,...t})=>_e("div",{className:a("mt-auto flex flex-col gap-2 p-4",e),...t},void 0,!1,void 0,this);Ml.displayName="DrawerFooter";var Ll=Ko(({className:e,...t},r)=>_e(vt.Title,{ref:r,className:a("font-semibold text-foreground text-lg",e),...t},void 0,!1,void 0,this));Ll.displayName="DrawerTitle";var Hl=Ko(({className:e,...t},r)=>_e(vt.Description,{ref:r,className:a("text-muted-foreground text-sm",e),...t},void 0,!1,void 0,this));Hl.displayName="DrawerDescription";import*as G from"@radix-ui/react-dropdown-menu";import{cva as Yt}from"class-variance-authority";import{Check as Qg,ChevronRight as Eg,Circle as jg}from"lucide-react";import{createContext as ey,forwardRef as Ht,useCallback as ty,useContext as Nr,useEffect as ry,useRef as kl,useState as oy}from"react";import{jsxDEV as pe}from"react/jsx-dev-runtime";var J={sm:"sm",md:"md",lg:"lg"},Yo={default:"default",danger:"danger"},Xt=ey(J.md),Kt=null,eo=null,ay=0,gn=Yt("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)]"),yn=Yt("gs-interactive 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:{[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:{[Yo.default]:"hover:bg-accent/80 focus:bg-accent focus:text-accent-foreground",[Yo.danger]:"text-destructive hover:bg-destructive/10 focus:bg-destructive/10 focus:text-destructive"}},defaultVariants:{size:J.md,variant:Yo.default}}),Al=Yt("gs-interactive 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:{[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.md}}),Il=Yt("gs-interactive 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:{[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.md}}),Vl=Yt("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.md}}),Fl=Yt("-mx-1 my-1 h-px bg-border/50"),Ol=Yt("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.md}}),Bl={[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"},ny={[J.sm]:"size-3",[J.md]:"size-3.5",[J.lg]:"size-4"},iy={[J.sm]:"size-1.5 fill-current",[J.md]:"size-2 fill-current",[J.lg]:"size-2.5 fill-current"},Dl=({children:e,open:t,defaultOpen:r,onOpenChange:o,...n})=>{let[i,s]=oy(r??!1),l=t!==void 0,d=l?t:i,m=kl(++ay),f=kl({onOpenChange:o,isControlled:l});f.current={onOpenChange:o,isControlled:l};let u=ty((v)=>{let{onOpenChange:p,isControlled:y}=f.current;if(v){if(Kt!==null&&Kt!==m.current&&eo)eo();Kt=m.current,eo=()=>{let{onOpenChange:z,isControlled:M}=f.current;if(!M)s(!1);z?.(!1)}}else if(Kt===m.current)Kt=null,eo=null;if(!y)s(v);p?.(v)},[]);return ry(()=>{return()=>{if(Kt===m.current)Kt=null,eo=null}},[]),pe(G.Root,{open:d,onOpenChange:u,...n,children:e},void 0,!1,void 0,this)};Dl.displayName="DropdownMenu";var sy=G.Trigger,ly=G.Group,my=G.Portal,dy=G.Sub,py=G.RadioGroup,_l=Ht(({className:e,inset:t,children:r,...o},n)=>{let i=Nr(Xt),s=c(i);return pe(G.SubTrigger,{ref:n,className:a(yn({size:s}),"data-[state=open]:bg-accent",t&&"pl-8",e),...o,children:[r,pe(Eg,{className:"ml-auto"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});_l.displayName=G.SubTrigger.displayName;var Gl=Ht(({className:e,...t},r)=>pe(G.Portal,{children:pe(G.SubContent,{ref:r,className:a(gn(),e),...t},void 0,!1,void 0,this)},void 0,!1,void 0,this));Gl.displayName=G.SubContent.displayName;var Wl=Ht(({className:e,sideOffset:t=4,size:r,...o},n)=>{let i=c(r)??J.md;return pe(Xt.Provider,{value:i,children:pe(G.Portal,{children:pe(G.Content,{ref:n,sideOffset:t,className:a(gn(),e),...o},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)});Wl.displayName=G.Content.displayName;var Ul=Ht(({className:e,inset:t,variant:r,...o},n)=>{let i=Nr(Xt),s=c(i);return pe(G.Item,{ref:n,className:a(yn({size:s,variant:r}),t&&"pl-8",e),...o},void 0,!1,void 0,this)});Ul.displayName=G.Item.displayName;var $l=Ht(({className:e,children:t,checked:r,...o},n)=>{let i=Nr(Xt),s=c(i)??J.md;return pe(G.CheckboxItem,{ref:n,className:a(Al({size:s}),e),checked:r,...o,children:[pe("span",{className:Bl[s],children:pe(G.ItemIndicator,{children:pe(Qg,{className:ny[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)});$l.displayName=G.CheckboxItem.displayName;var Kl=Ht(({className:e,children:t,...r},o)=>{let n=Nr(Xt),i=c(n)??J.md;return pe(G.RadioItem,{ref:o,className:a(Il({size:i}),e),...r,children:[pe("span",{className:Bl[i],children:pe(G.ItemIndicator,{children:pe(jg,{className:iy[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)});Kl.displayName=G.RadioItem.displayName;var Yl=Ht(({className:e,inset:t,...r},o)=>{let n=Nr(Xt),i=c(n);return pe(G.Label,{ref:o,className:a(Vl({size:i}),t&&"pl-8",e),...r},void 0,!1,void 0,this)});Yl.displayName=G.Label.displayName;var Xl=Ht(({className:e,...t},r)=>pe(G.Separator,{ref:r,className:a(Fl(),e),...t},void 0,!1,void 0,this));Xl.displayName=G.Separator.displayName;var Zl=({className:e,...t})=>{let r=Nr(Xt),o=c(r);return pe("span",{className:a(Ol({size:o}),e),...t},void 0,!1,void 0,this)};Zl.displayName="DropdownMenuShortcut";import{cva as ro}from"class-variance-authority";import{forwardRef as cy}from"react";import{jsxDEV as to}from"react/jsx-dev-runtime";var ze={sm:"sm",md:"md",lg:"lg"},Jl=ro("flex flex-col items-center justify-center text-center rounded-[var(--radius)] border border-dashed border-border/50 bg-muted/20",{variants:{size:{[ze.sm]:"gap-2 p-4",[ze.md]:"gap-4 p-8",[ze.lg]:"gap-6 p-12"}},defaultVariants:{size:ze.md}}),ql=ro("flex items-center justify-center rounded-full bg-muted/50 text-muted-foreground",{variants:{size:{[ze.sm]:"h-10 w-10 [&>svg]:h-4 [&>svg]:w-4",[ze.md]:"h-16 w-16 [&>svg]:h-7 [&>svg]:w-7",[ze.lg]:"h-20 w-20 [&>svg]:h-9 [&>svg]:w-9"}},defaultVariants:{size:ze.md}}),Ql=ro("font-semibold text-foreground",{variants:{size:{[ze.sm]:"text-sm",[ze.md]:"text-lg",[ze.lg]:"text-xl"}},defaultVariants:{size:ze.md}}),El=ro("text-muted-foreground max-w-sm",{variants:{size:{[ze.sm]:"text-xs",[ze.md]:"text-sm",[ze.lg]:"text-base"}},defaultVariants:{size:ze.md}}),jl=ro("flex items-center gap-2 mt-2"),em=cy(({className:e,icon:t,title:r,description:o,actions:n,size:i=ze.md,children:s,...l},d)=>{let m=c(i);return to("div",{ref:d,className:a(Jl({size:m}),e),...l,children:[t&&to("div",{className:ql({size:m}),children:t},void 0,!1,void 0,this),r&&to("h3",{className:Ql({size:m}),children:r},void 0,!1,void 0,this),o&&to("p",{className:El({size:m}),children:o},void 0,!1,void 0,this),n&&to("div",{className:jl(),children:n},void 0,!1,void 0,this),s]},void 0,!0,void 0,this)});em.displayName="EmptyState";import{cva as wr}from"class-variance-authority";import{Component as uy,createElement as tm}from"react";import{jsxDEV as Le,Fragment as gy}from"react/jsx-dev-runtime";var rm=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",xl:"gap-7 p-14"},variant:{destructive:"border-destructive/30 bg-destructive/8",warning:"border-warning/30 bg-warning/8",info:"border-info/30 bg-info/8"}},defaultVariants:{size:"md",variant:"destructive"}}),om=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",xl:"h-24 w-24 [&>svg]:h-10 [&>svg]:w-10"},variant:{destructive:"bg-destructive/10 text-destructive",warning:"bg-warning/10 text-warning",info:"bg-info/10 text-info"}},defaultVariants:{size:"md",variant:"destructive"}}),am=wr("font-semibold transition-colors duration-300",{variants:{size:{sm:"text-lg",md:"text-xl",lg:"text-2xl",xl:"text-3xl"},variant:{destructive:"text-destructive",warning:"text-warning",info:"text-info"}},defaultVariants:{size:"md",variant:"destructive"}}),nm=wr("max-w-xl text-muted-foreground transition-all duration-200",{variants:{size:{sm:"text-sm",md:"text-sm",lg:"text-base",xl:"text-lg"}},defaultVariants:{size:"md"}}),im=wr("mt-2 flex flex-wrap items-center justify-center gap-2"),sm=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 lm extends uy{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="md",variant:n="destructive",className:i,title:s="Something went wrong",description:l="An unexpected error occurred. Please try again.",icon:d,actions:m,resetLabel:f="Try again",hideReset:u=!1,renderDetails:v}=this.props;if(this.state.hasError&&this.state.error){let p={error:this.state.error,reset:this.handleReset};if(t){if(typeof t==="function")return tm(t,p);return t}let y=null;if(m)y=typeof m==="function"?tm(m,p):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"};y=Le("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:f},void 0,!1,void 0,this)}let z=v?v(this.state.error):Le(gy,{children:[Le("strong",{children:"Error:"},void 0,!1,void 0,this)," ",this.state.error.message,this.state.error.stack&&Le("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 Le("div",{className:a(rm({size:o,variant:n}),i),children:[Le("div",{className:a(om({size:o,variant:n})),children:d??Le(fy,{},void 0,!1,void 0,this)},void 0,!1,void 0,this),Le("h3",{className:a(am({size:o,variant:n})),children:s},void 0,!1,void 0,this),Le("p",{className:a(nm({size:o})),children:l},void 0,!1,void 0,this),y&&Le("div",{className:a(im()),children:y},void 0,!1,void 0,this),r&&Le("div",{className:a(sm()),children:z},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}return e}}function fy(){return Le("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:[Le("circle",{cx:"12",cy:"12",r:"10"},void 0,!1,void 0,this),Le("line",{x1:"12",x2:"12",y1:"8",y2:"12"},void 0,!1,void 0,this),Le("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 kt}from"class-variance-authority";import{forwardRef as yy,useCallback as Ee,useRef as vy,useState as mm}from"react";import{jsxDEV as Ne}from"react/jsx-dev-runtime";var ne={sm:"sm",md:"md",lg:"lg",xl:"xl"},dm=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:{[ne.sm]:"min-h-28 p-5",[ne.md]:"min-h-36 p-8",[ne.lg]:"min-h-44 p-10",[ne.xl]:"min-h-52 p-12"},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:ne.md,isDragging:!1,disabled:!1,hasError:!1}}),pm=kt("text-muted-foreground transition-colors duration-200",{variants:{size:{[ne.sm]:"mb-2 size-6",[ne.md]:"size-8 mb-3",[ne.lg]:"size-10 mb-4",[ne.xl]:"size-12 mb-5"},isDragging:{true:"text-primary",false:""}},defaultVariants:{size:ne.md,isDragging:!1}}),vn=kt("text-center",{variants:{size:{[ne.sm]:"text-sm",[ne.md]:"text-sm",[ne.lg]:"text-base",[ne.xl]:"text-lg"}},defaultVariants:{size:ne.md}}),cm=kt("mt-4 w-full space-y-2"),um=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"]),fm=kt("min-w-0 flex-1 truncate font-medium text-foreground",{variants:{size:{[ne.sm]:"text-sm",[ne.md]:"text-sm",[ne.lg]:"text-base",[ne.xl]:"text-base"}},defaultVariants:{size:"md"}}),gm=kt("text-muted-foreground",{variants:{size:{[ne.sm]:"text-xs",[ne.md]:"text-sm",[ne.lg]:"text-sm",[ne.xl]:"text-base"}},defaultVariants:{size:"md"}}),ym=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"]),vm=yy(({className:e,size:t="md",disabled:r=!1,accept:o,multiple:n=!1,maxSize:i,maxFiles:s,value:l=[],onChange:d,onError:m,icon:f,title:u="Drop files here or click to upload",description:v,showFileList:p=!0,...y},z)=>{let M=c(t),[w,h]=mm(!1),[b,C]=mm(!1),B=vy(null),R=Ee((H)=>{if(H===0)return"0 Bytes";let Y=1024,g=["Bytes","KB","MB","GB"],T=Math.floor(Math.log(H)/Math.log(Y));return`${parseFloat((H/Y**T).toFixed(2))} ${g[T]}`},[]),A=Ee((H)=>{let Y=[...H];if(C(!1),o){let g=o.split(",").map((T)=>T.trim());if(Y=Y.filter((T)=>{return g.some((L)=>{if(L.startsWith("."))return T.name.toLowerCase().endsWith(L.toLowerCase());if(L.endsWith("/*"))return T.type.startsWith(L.slice(0,-1));return T.type===L})}),Y.length<H.length)m?.("Some files were rejected due to file type"),C(!0)}if(i){let g=Y.length;if(Y=Y.filter((T)=>T.size<=i),Y.length<g)m?.(`File size must be less than ${R(i)}`),C(!0)}if(s&&Y.length+l.length>s)Y=Y.slice(0,s-l.length),m?.(`Maximum ${s} files allowed`),C(!0);return Y},[o,i,s,l.length,m,R]),S=Ee((H)=>{if(!H||H.length===0)return;let Y=Array.from(H),g=A(Y);if(g.length>0)if(n)d?.([...l,...g]);else d?.(g.slice(0,1))},[n,l,d,A]),I=Ee((H)=>{H.preventDefault(),H.stopPropagation(),h(!0)},[]),K=Ee((H)=>{H.preventDefault(),H.stopPropagation(),h(!1)},[]),O=Ee((H)=>{H.preventDefault(),H.stopPropagation()},[]),$=Ee((H)=>{if(H.preventDefault(),H.stopPropagation(),h(!1),r)return;S(H.dataTransfer.files)},[r,S]),N=Ee((H)=>{if(S(H.target.files),B.current)B.current.value=""},[S]),V=Ee(()=>{if(!r)B.current?.click()},[r]),P=Ee((H)=>{if(H.key==="Enter"||H.key===" ")H.preventDefault(),V()},[V]),F=Ee((H)=>{let Y=l.filter((g,T)=>T!==H);d?.(Y)},[l,d]),j=Ne("svg",{className:a(pm({size:M,isDragging:w})),fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1.5,children:Ne("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 Ne("div",{ref:z,className:a("w-full",e),...y,children:[Ne("div",{role:"button",tabIndex:r?-1:0,onClick:V,onKeyDown:P,onDragEnter:I,onDragLeave:K,onDragOver:O,onDrop:$,className:a(dm({size:M,isDragging:w,disabled:r,hasError:b})),children:[Ne("input",{ref:B,type:"file",accept:o,multiple:n,disabled:r,onChange:N,className:"sr-only"},void 0,!1,void 0,this),f||j,Ne("p",{className:a(vn({size:M}),"font-medium text-foreground"),children:u},void 0,!1,void 0,this),v&&Ne("p",{className:a(vn({size:M}),"mt-1 text-muted-foreground"),children:v},void 0,!1,void 0,this)]},void 0,!0,void 0,this),p&&l.length>0&&Ne("div",{className:a(cm()),children:l.map((H,Y)=>Ne("div",{className:a(um()),children:[Ne("svg",{className:"size-5 shrink-0 text-muted-foreground",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1.5,children:Ne("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),Ne("span",{className:a(fm({size:M})),children:H.name},void 0,!1,void 0,this),Ne("span",{className:a(gm({size:M})),children:R(H.size)},void 0,!1,void 0,this),Ne("button",{type:"button",onClick:(g)=>{g.stopPropagation(),F(Y)},className:a(ym()),"aria-label":`Remove ${H.name}`,children:Ne("svg",{className:"size-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:Ne("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)]},`${H.name}-${Y}`,!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});vm.displayName="FileUpload";import{cva as by}from"class-variance-authority";import{createContext as Ty,forwardRef as Xo,useContext as hy,useId as Py}from"react";import{jsxDEV as Zt,Fragment as Cy}from"react/jsx-dev-runtime";var We={sm:"sm",md:"md",lg:"lg"},bm=Ty(null),oo=()=>{let e=hy(bm);if(!e)throw Error("useFormField must be used within a FormField");return e},Tm=by("flex flex-col",{variants:{size:{[We.sm]:"gap-1",[We.md]:"gap-1.5",[We.lg]:"gap-2"}},defaultVariants:{size:We.md}}),hm=Xo(({className:e,size:t=We.md,error:r,disabled:o=!1,required:n=!1,children:i,...s},l)=>{let d=Py(),m=c(t),f={id:d,size:m,error:r,disabled:o,required:n};return Zt(bm.Provider,{value:f,children:Zt("div",{ref:l,className:a(Tm({size:m}),e),...s,children:i},void 0,!1,void 0,this)},void 0,!1,void 0,this)});hm.displayName="FormField";var xy={[We.sm]:"text-xs",[We.md]:"text-sm",[We.lg]:"text-base"},Pm=Xo(({className:e,htmlFor:t,children:r,...o},n)=>{let{id:i,size:s,disabled:l,required:d}=oo();return Zt("label",{ref:n,htmlFor:t??i,className:a("inline-block font-medium text-foreground select-none",xy[s],l&&"cursor-not-allowed opacity-60",e),...o,children:[r,d&&Zt("span",{className:"ml-0.5 text-destructive","aria-hidden":"true",children:"*"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});Pm.displayName="FormFieldLabel";var xm={[We.sm]:"text-[10px]",[We.md]:"text-xs",[We.lg]:"text-sm"},Cm=Xo(({className:e,...t},r)=>{let{id:o,size:n}=oo();return Zt("p",{ref:r,id:`${o}-description`,className:a("text-muted-foreground",xm[n],e),...t},void 0,!1,void 0,this)});Cm.displayName="FormFieldDescription";var zm=Xo(({className:e,children:t,...r},o)=>{let{id:n,size:i,error:s}=oo(),l=t??s;if(!l)return null;return Zt("p",{ref:o,id:`${n}-error`,role:"alert",className:a("text-destructive",xm[i],e),...r,children:l},void 0,!1,void 0,this)});zm.displayName="FormFieldError";var Sm=({children:e})=>{let{id:t,disabled:r,required:o,error:n}=oo(),i=[n?`${t}-error`:void 0,`${t}-description`].filter(Boolean).join(" ");return Zt(Cy,{children:e({id:t,disabled:r,required:o,status:n?"error":"default","aria-describedby":i||void 0,"aria-invalid":n?!0:void 0})},void 0,!1,void 0,this)};Sm.displayName="FormFieldControl";import*as Jt from"@radix-ui/react-hover-card";import{cva as zy}from"class-variance-authority";import{forwardRef as Sy}from"react";import{jsxDEV as Ry}from"react/jsx-dev-runtime";var Rr={sm:"sm",md:"md",lg:"lg"},Nm=zy("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:{[Rr.sm]:"w-52 p-3 text-xs",[Rr.md]:"w-64 p-4 text-sm",[Rr.lg]:"w-80 p-5 text-sm"}},defaultVariants:{size:Rr.md}}),Ny=Jt.Root,wy=Jt.Trigger,wm=Sy(({className:e,align:t="center",sideOffset:r=4,size:o=Rr.md,...n},i)=>{let s=c(o);return Ry(Jt.Content,{ref:i,align:t,sideOffset:r,className:a(Nm({size:s}),e),...n},void 0,!1,void 0,this)});wm.displayName=Jt.Content.displayName;import{cva as My}from"class-variance-authority";import{X as Ly}from"lucide-react";import{forwardRef as Hy,useRef as ky,useState as Ay}from"react";import{jsxDEV as qt}from"react/jsx-dev-runtime";var ao={default:"default",error:"error",success:"success"},E={sm:"sm",md:"md",lg:"lg",xl:"xl"},Iy="Clear input",Mm=My("gs-interactive 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:{[E.sm]:"h-8 px-2 text-xs",[E.md]:"h-10 px-3",[E.lg]:"h-11 px-4",[E.xl]:"h-12 px-4 text-base"}},defaultVariants:{status:ao.default,size:E.md}}),Vy={[E.sm]:"pl-7",[E.md]:"pl-9",[E.lg]:"pl-10",[E.xl]:"pl-10"},Fy={[E.sm]:"pr-7",[E.md]:"pr-9",[E.lg]:"pr-10",[E.xl]:"pr-10"},Oy={[E.sm]:"pr-12",[E.md]:"pr-16",[E.lg]:"pr-18",[E.xl]:"pr-18"},By={[E.sm]:"text-xs left-2",[E.md]:"text-sm left-3",[E.lg]:"text-sm left-3.5",[E.xl]:"text-base left-3.5"},Dy={[E.sm]:"text-xs",[E.md]:"text-sm",[E.lg]:"text-sm",[E.xl]:"text-base"},_y={[E.sm]:"size-4",[E.md]:"size-5",[E.lg]:"size-5",[E.xl]:"size-6"};function Rm(e){if(e===void 0||e===null)return"";if(Array.isArray(e))return e.join("");return String(e)}var Lm=Hy(({className:e,status:t=ao.default,size:r=E.md,fullWidth:o=!1,prefix:n,suffix:i,clearable:s=!1,clearAriaLabel:l=Iy,onClear:d,onValueChange:m,disabled:f,readOnly:u,onChange:v,value:p,defaultValue:y,...z},M)=>{let w=Boolean(n),h=Boolean(i),b=c(r),C=ky(null),B=no(M,C),[R,A]=Ay(()=>Rm(y)),S=p!==void 0,I=S?Rm(p):R,K=s&&!f&&!u&&I.length>0,O=h||K,$=h&&K,N=(P)=>{let F=P.target.value;if(!S)A(F);m?.(F),v?.(P)},V=()=>{if(!S)A("");m?.("");let P=C.current;if(P)P.value="",P.dispatchEvent(new Event("input",{bubbles:!0})),P.focus();d?.()};return qt("div",{className:a("relative flex items-center",o&&"w-full"),children:[w&&qt("span",{className:a("absolute inset-y-0 flex items-center text-muted-foreground",By[b]),children:n},void 0,!1,void 0,this),qt("input",{ref:B,className:a(Mm({status:t,size:b}),w&&Vy[b],$&&Oy[b],!$&&O&&Fy[b],e),disabled:f,readOnly:u,onChange:N,value:I,...z},void 0,!1,void 0,this),O&&qt("span",{className:a("absolute inset-y-0 right-2 flex items-center gap-1 text-muted-foreground",Dy[b]),children:[h&&qt("span",{className:"inline-flex items-center",children:i},void 0,!1,void 0,this),K&&qt("button",{type:"button","aria-label":l,onMouseDown:(P)=>P.preventDefault(),onClick:V,className:a("gs-interactive 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",_y[b]),children:qt(Ly,{className:"size-3.5"},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)});Lm.displayName="Input";import{cva as Ky}from"class-variance-authority";import{forwardRef as Yy}from"react";import{useSyncExternalStore as Gy}from"react";var Wy=()=>()=>{},Uy=()=>bn(),$y=()=>Hm;function io(){return Gy(Wy,Uy,$y)}import{jsxDEV as Xy}from"react/jsx-dev-runtime";var Mr={sm:"sm",md:"md",lg:"lg"},Lr=Ky("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:{[Mr.sm]:"min-w-5 h-5 px-1 text-[10px]",[Mr.md]:"min-w-6 h-6 px-1.5 text-xs",[Mr.lg]:"min-w-7 h-7 px-2 text-sm"}},defaultVariants:{size:Mr.md}}),km=Yy(({className:e,size:t=Mr.md,combo:r,keys:o,children:n,...i},s)=>{let l=c(t),{isMac:d}=io(),m=r?Zo(r,d):o?Zo(o,d):n;return Xy("kbd",{ref:s,className:a(Lr({size:l}),e),...i,children:m},void 0,!1,void 0,this)});km.displayName="Kbd";import{cva as Zy}from"class-variance-authority";import{forwardRef as Jy}from"react";import{jsxDEV as Am}from"react/jsx-dev-runtime";var Hr={sm:"sm",md:"md",lg:"lg"},Im=Zy("inline-block font-medium text-foreground select-none peer-disabled:cursor-not-allowed peer-disabled:opacity-60",{variants:{size:{[Hr.sm]:"text-xs",[Hr.md]:"text-sm",[Hr.lg]:"text-base"}},defaultVariants:{size:Hr.md}}),Vm=Jy(({className:e,size:t=Hr.md,required:r=!1,disabled:o=!1,children:n,...i},s)=>{let l=c(t);return Am("label",{ref:s,className:a(Im({size:l}),o&&"cursor-not-allowed opacity-60",e),"aria-disabled":o||void 0,...i,children:[n,r&&Am("span",{className:"ml-0.5 text-destructive","aria-hidden":"true",children:"*"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});Vm.displayName="Label";var qy=xt;import*as At from"@radix-ui/react-popover";import{cva as ov}from"class-variance-authority";import{Check as av,ChevronDown as nv,X as iv}from"lucide-react";import{forwardRef as sv,useCallback as so,useEffect as lv,useRef as mv,useState as Bm}from"react";import*as Ue from"@radix-ui/react-popover";import{cva as Qy}from"class-variance-authority";import{forwardRef as Ey}from"react";import{jsxDEV as Fm}from"react/jsx-dev-runtime";var kr={sm:"sm",md:"md",lg:"lg"},Ar=Qy("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:{[kr.sm]:"w-56 p-3 text-sm",[kr.md]:"w-72 p-4 text-sm",[kr.lg]:"w-96 p-5 text-sm"}},defaultVariants:{size:kr.md}}),jy=Ue.Root,ev=Ue.Trigger,tv=Ue.Anchor,rv=Ue.Close,Om=Ey(({className:e,align:t="center",sideOffset:r=4,portal:o=!0,portalContainer:n,size:i=kr.md,...s},l)=>{let d=c(i),m=Fm(Ue.Content,{ref:l,align:t,sideOffset:r,className:a(Ar({size:d}),e),...s},void 0,!1,void 0,this);if(o)return Fm(Ue.Portal,{container:n??void 0,children:m},void 0,!1,void 0,this);return m});Om.displayName="PopoverContent";import{jsxDEV as ce,Fragment as cv}from"react/jsx-dev-runtime";var ve={sm:"sm",md:"md",lg:"lg",xl:"xl"},Dm=ov(["gs-interactive 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:{[ve.sm]:"min-h-8 px-2.5 py-1 text-xs",[ve.md]:"min-h-10 px-3.5 py-1.5",[ve.lg]:"min-h-11 px-4.5 py-2 text-sm",[ve.xl]:"min-h-12 px-4 py-2 text-base"},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:ve.md,status:"default"}}),dv={[ve.sm]:"sm",[ve.md]:"md",[ve.lg]:"lg",[ve.xl]:"lg"},pv={[ve.sm]:"min-h-7.5 py-1.5 px-2.5 text-xs",[ve.md]:"min-h-9 py-2 px-3 text-sm",[ve.lg]:"min-h-10 py-2.5 px-3.5 text-sm",[ve.xl]:"min-h-11 py-3 px-4 text-base"},Jo={[ve.sm]:"size-3.5",[ve.md]:"size-4",[ve.lg]:"size-4",[ve.xl]:"size-4.5"},_m=sv(({className:e,options:t,value:r,defaultValue:o=[],onValueChange:n,placeholder:i="Select options...",size:s=ve.md,status:l="default",clearable:d=!1,maxDisplayItems:m=3,disabled:f,...u},v)=>{let p=c(s)??s,[y,z]=Bm(!1),[M,w]=Bm(o),h=mv(null),b=r!==void 0,C=b?r:M,B=so((N)=>{let V=C.includes(N)?C.filter((P)=>P!==N):[...C,N];if(!b)w(V);n?.(V)},[C,b,n]),R=so((N,V)=>{V.stopPropagation();let P=C.filter((F)=>F!==N);if(!b)w(P);n?.(P)},[C,b,n]),A=so((N)=>{if(N.stopPropagation(),N.preventDefault(),!b)w([]);n?.([])},[b,n]),S=t.filter((N)=>C.includes(N.value)),I=S.length>0,K=d&&I&&!f,O=so((N)=>{let V=h.current;if(!V)return;let P=Array.from(V.querySelectorAll('[role="option"]:not([data-disabled])'));if(P.length===0)return;let F=V.querySelector('[role="option"]:focus'),j=F?P.indexOf(F):-1,H;switch(N){case"first":H=P[0];break;case"last":H=P[P.length-1];break;case"next":H=P[j+1]??P[0];break;case"prev":H=P[j-1]??P[P.length-1];break}H?.focus()},[]),$=so((N)=>{switch(N.key){case"ArrowDown":N.preventDefault(),O("next");break;case"ArrowUp":N.preventDefault(),O("prev");break;case"Home":N.preventDefault(),O("first");break;case"End":N.preventDefault(),O("last");break;case"Escape":N.preventDefault(),z(!1);break}},[O]);return lv(()=>{if(y)requestAnimationFrame(()=>O("first"))},[y,O]),ce(At.Root,{open:y,onOpenChange:z,children:[ce(At.Trigger,{asChild:!0,children:ce("button",{ref:v,type:"button",disabled:f,"data-state":y?"open":"closed","data-placeholder":I?void 0:"",className:a(Dm({size:p,status:l}),e),...u,children:[ce("span",{className:"flex min-w-0 flex-1 flex-wrap items-center gap-1 text-left",children:I?ce(cv,{children:[S.slice(0,m).map((N)=>ce(Io,{variant:"outline",size:dv[s],removable:!0,onRemove:(V)=>R(N.value,V),className:"max-w-[120px] rounded-[calc(var(--radius)-4px)]",children:ce("span",{className:"truncate",children:N.label},void 0,!1,void 0,this)},N.value,!1,void 0,this)),S.length>m&&ce("span",{className:"text-muted-foreground text-xs",children:["+",S.length-m]},void 0,!0,void 0,this)]},void 0,!0,void 0,this):ce("span",{className:"text-muted-foreground",children:i},void 0,!1,void 0,this)},void 0,!1,void 0,this),ce("span",{className:"inline-flex shrink-0 items-center gap-1 text-muted-foreground",children:[K&&ce("span",{role:"button",tabIndex:-1,"aria-label":"Clear all",onMouseDown:(N)=>N.preventDefault(),onClick:A,className:"gs-interactive 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:ce(iv,{className:Jo[p]},void 0,!1,void 0,this)},void 0,!1,void 0,this),ce(nv,{className:a(Jo[p],"opacity-60 transition-transform duration-200 ease-[cubic-bezier(0.16,1,0.3,1)]",y&&"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),ce(At.Portal,{children:ce(At.Content,{ref:h,role:"listbox","aria-multiselectable":"true",align:"start",sideOffset:4,onKeyDown:$,onOpenAutoFocus:(N)=>N.preventDefault(),className:a(Ar(),"max-h-96 w-[var(--radix-popover-trigger-width)] overflow-y-auto overflow-x-hidden p-1"),children:[t.map((N)=>{let V=C.includes(N.value);return ce("div",{role:"option",tabIndex:N.disabled?void 0:-1,"aria-selected":V,"aria-disabled":N.disabled||void 0,"data-disabled":N.disabled?"":void 0,className:a("gs-interactive 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:opacity-50",pv[p]),onClick:()=>!N.disabled&&B(N.value),onKeyDown:(P)=>{if(P.key==="Enter"||P.key===" "){if(P.preventDefault(),!N.disabled)B(N.value)}},children:[ce("span",{className:a("flex shrink-0 items-center justify-center",Jo[p]),children:V&&ce(av,{className:Jo[p]},void 0,!1,void 0,this)},void 0,!1,void 0,this),ce("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&&ce("div",{className:"px-3 py-6 text-center text-muted-foreground text-sm",children:"No options available"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});_m.displayName="Multiselect";import*as se from"@radix-ui/react-navigation-menu";import{cva as Qt}from"class-variance-authority";import{createContext as uv,forwardRef as Ir,useContext as fv}from"react";import{jsxDEV as Oe}from"react/jsx-dev-runtime";var je={sm:"sm",md:"md",lg:"lg"},Gm=uv(je.md),Wm=Qt("relative z-10 flex max-w-max flex-1 items-center justify-center"),Um=Qt("group flex flex-1 list-none items-center justify-center space-x-1"),$m=Qt(["group inline-flex w-max items-center justify-center rounded-md bg-background font-medium","gs-interactive","hover:bg-accent hover:text-accent-foreground","focus:bg-accent focus:text-accent-foreground focus:outline-none","disabled:pointer-events-none disabled:opacity-50","data-[active]:bg-accent/50 data-[state=open]:bg-accent/50"],{variants:{size:{[je.sm]:"h-8 px-3 py-1.5 text-xs",[je.md]:"h-10 px-4 py-2 text-sm",[je.lg]:"h-12 px-5 py-2.5 text-sm"}},defaultVariants:{size:je.md}}),Km=Qt(["left-0 top-0 w-full","data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out","data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out","data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52","data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52","md:absolute md:w-auto"]),gv=Qt(["block select-none space-y-1 rounded-md leading-none no-underline outline-none","gs-interactive","hover:bg-accent hover:text-accent-foreground","focus:bg-accent focus:text-accent-foreground"],{variants:{size:{[je.sm]:"p-2 text-xs",[je.md]:"p-3 text-sm",[je.lg]:"p-4 text-sm"}},defaultVariants:{size:je.md}}),Ym=Qt(["origin-top-center relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-lg","gs-float-content","transition-[width,height] duration-300 ease-[var(--motion-ease-emphasized)]","md:w-[var(--radix-navigation-menu-viewport-width)]"]),Xm=Qt(["top-full z-[1] flex h-1.5 items-end justify-center overflow-hidden","data-[state=visible]:animate-in data-[state=hidden]:animate-out","data-[state=hidden]:fade-out data-[state=visible]:fade-in"]),yv=()=>Oe("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-[1px] ml-1 h-3 w-3 transition duration-200 group-data-[state=open]:rotate-180","aria-hidden":"true",children:Oe("path",{d:"m6 9 6 6 6-6"},void 0,!1,void 0,this)},void 0,!1,void 0,this),Zm=Ir(({className:e,children:t,size:r,...o},n)=>{let i=c(r??je.md);return Oe(Gm.Provider,{value:i,children:Oe(se.Root,{ref:n,className:a(Wm(),e),...o,children:[t,Oe(Tn,{},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)});Zm.displayName=se.Root.displayName;var Jm=Ir(({className:e,...t},r)=>Oe(se.List,{ref:r,className:a(Um(),e),...t},void 0,!1,void 0,this));Jm.displayName=se.List.displayName;var vv=se.Item,qm=Ir(({className:e,children:t,...r},o)=>{let n=fv(Gm);return Oe(se.Trigger,{ref:o,className:a($m({size:n}),"group",e),...r,children:[t,Oe(yv,{},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});qm.displayName=se.Trigger.displayName;var Qm=Ir(({className:e,...t},r)=>Oe(se.Content,{ref:r,className:a(Km(),e),...t},void 0,!1,void 0,this));Qm.displayName=se.Content.displayName;var bv=se.Link,Tn=Ir(({className:e,...t},r)=>Oe("div",{className:"absolute top-full left-0 flex justify-center",children:Oe(se.Viewport,{className:a(Ym(),e),ref:r,...t},void 0,!1,void 0,this)},void 0,!1,void 0,this));Tn.displayName=se.Viewport.displayName;var Em=Ir(({className:e,...t},r)=>Oe(se.Indicator,{ref:r,className:a(Xm(),e),...t,children:Oe("div",{className:"relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md"},void 0,!1,void 0,this)},void 0,!1,void 0,this));Em.displayName=se.Indicator.displayName;import{cva as Vr}from"class-variance-authority";import{Fragment as Tv,forwardRef as hv,useCallback as Et,useEffect as jm,useMemo as ed,useRef as Pv,useState as td}from"react";import{jsxDEV as jt}from"react/jsx-dev-runtime";var er={sm:"sm",md:"md",lg:"lg",xl:"xl"},mo={default:"default",error:"error",success:"success"},lo={single:"single",first:"first",middle:"middle",last:"last"},rd=Vr("relative inline-flex items-center",{variants:{size:{sm:"gap-1",md:"gap-1.5",lg:"gap-2",xl:"gap-2.5"}},defaultVariants:{size:er.md}}),od=Vr("relative inline-flex items-center",{variants:{size:{sm:"gap-0",md:"gap-0",lg:"gap-0",xl:"gap-0"},status:{default:"",error:"text-destructive",success:"text-success"}},defaultVariants:{size:er.md,status:mo.default}}),ad=Vr(["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",xl:"h-12 w-12"},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:er.md,filled:!1,focused:!1,status:mo.default,disabled:!1,position:lo.single}}),nd=Vr(["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",xl:"text-lg"},status:{default:"caret-primary",error:"caret-destructive",success:"caret-success"},filled:{true:"text-foreground",false:"text-muted-foreground"}},defaultVariants:{size:er.md,status:mo.default,filled:!1}}),id=Vr(["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",xl:"text-xl"},focused:{true:"opacity-0 scale-95",false:"opacity-100 scale-100"}},defaultVariants:{size:er.md,focused:!1}}),sd=Vr("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",xl:"px-1.5 text-xl"}},defaultVariants:{size:er.md}});function xv(e){if(!Number.isFinite(e))return 6;return Math.max(1,Math.floor(e))}function hn(e,t){let r=(e??"").split("").slice(0,t);if(r.length<t)return r.concat(Array(t-r.length).fill(""));return r}var ld=hv(({className:e,length:t=6,value:r,onChange:o,onComplete:n,size:i=er.md,status:s=mo.default,disabled:l=!1,autoFocus:d=!1,mask:m=!1,groupSize:f,separator:u,separatorChar:v="—",placeholder:p="•",inputMode:y="numeric",pattern:z="[0-9]*",...M},w)=>{let h=c(i),b=xv(t),C=Pv([]),[B,R]=td(null),[A,S]=td(()=>hn(r,b));jm(()=>{if(r!==void 0){S(hn(r,b));return}S((g)=>hn(g.join(""),b))},[r,b]),jm(()=>{if(d)C.current[0]?.focus()},[d]);let I=ed(()=>{if(typeof f==="number"&&Number.isFinite(f)){let g=Math.floor(f);if(g<=0)return b;return Math.min(b,Math.max(1,g))}if(typeof u==="number"&&Number.isFinite(u)){let g=Math.floor(u);if(g<=0)return b;return Math.min(b,Math.max(1,g))}if(u)return Math.max(1,Math.floor(b/2));return b},[f,b,u]),K=ed(()=>{let g=[];for(let T=0;T<b;T+=I){let L=Math.min(T+I,b),re=[];for(let ee=T;ee<L;ee+=1)re.push(ee);g.push(re)}return g},[I,b]),O=Et((g)=>{let T=C.current[g];if(!T)return;T.focus(),T.select()},[]),$=Et((g)=>{S(g);let T=g.join("");if(o?.(T),g.every((L)=>L!=="")&&T.length===b)n?.(T)},[o,n,b]),N=Et((g,T)=>{if(l)return;let re=(y==="numeric"?T.replace(/\D/g,""):T).slice(-1),ee=[...A];if(ee[g]=re,$(ee),re&&g<b-1)O(g+1)},[A,l,$,O,y,b]),V=Et((g,T)=>{if(l)return;if(T.key==="Backspace"){if(T.preventDefault(),A[g]){let L=[...A];L[g]="",$(L);return}if(g>0){let L=[...A];L[g-1]="",$(L),O(g-1)}return}if(T.key==="Delete"){if(T.preventDefault(),A[g]){let L=[...A];L[g]="",$(L)}return}if(T.key==="ArrowLeft"){if(T.preventDefault(),g>0)O(g-1);return}if(T.key==="ArrowRight"){if(T.preventDefault(),g<b-1)O(g+1);return}if(T.key==="Home"){T.preventDefault(),O(0);return}if(T.key==="End")T.preventDefault(),O(b-1)},[A,l,$,O,b]),P=Et((g,T)=>{if(T.preventDefault(),l)return;let L=T.clipboardData.getData("text"),ee=(y==="numeric"?L.replace(/\D/g,""):L.replace(/\s/g,"")).split("");if(ee.length===0)return;let oe=[...A];for(let de=0;de<ee.length;de+=1){let dr=g+de;if(dr>=b)break;oe[dr]=ee[de]??""}$(oe);let te=Math.min(b-1,g+ee.length-1);if(te<b-1){O(te+1);return}C.current[te]?.blur()},[A,l,$,O,y,b]),F=Et((g,T)=>{R(g),T.target.select()},[]),j=Et(()=>{R(null)},[]),H=u!==void 0,Y=v.length>0&&u!==!1&&(H||K.length>1);return jt("div",{ref:w,className:a(rd({size:h}),e),role:"group","aria-label":"One-time password input",...M,children:K.map((g,T)=>jt(Tv,{children:[jt("div",{"data-gs-otp-group":"true",className:a(od({size:h,status:s})),children:g.map((L,re)=>{let ee=A[L]??"",oe=B===L,te=lo.middle;if(g.length===1)te=lo.single;else if(re===0)te=lo.first;else if(re===g.length-1)te=lo.last;return jt("div",{"data-gs-otp-slot":"true","data-disabled":l,className:a(ad({size:h,filled:Boolean(ee),focused:oe,status:s,disabled:l,position:te})),children:[jt("input",{ref:(de)=>{C.current[L]=de},type:m?"password":"text",inputMode:y,pattern:z,maxLength:1,value:ee,placeholder:"",disabled:l,"aria-invalid":s===mo.error,"aria-label":`Digit ${L+1} of ${b}`,autoComplete:"one-time-code",onChange:(de)=>N(L,de.target.value),onKeyDown:(de)=>V(L,de),onPaste:(de)=>P(L,de),onFocus:(de)=>F(L,de),onBlur:j,className:a(nd({size:h,status:s,filled:Boolean(ee)}))},void 0,!1,void 0,this),!ee&&jt("div",{"data-gs-otp-placeholder":"true","aria-hidden":"true",className:a(id({size:h,focused:oe})),children:p},void 0,!1,void 0,this)]},`slot-${L}`,!0,void 0,this)})},void 0,!1,void 0,this),Y&&T<K.length-1&&jt("span",{"data-gs-otp-separator":"true",className:a(sd({size:h})),children:v},void 0,!1,void 0,this)]},`group-${g[0]}-${g[g.length-1]}`,!0,void 0,this))},void 0,!1,void 0,this)});ld.displayName="OTPInput";import{createContext as Rv,useCallback as Fr,useContext as Mv,useMemo as Lv,useState as Hv}from"react";import*as me from"@radix-ui/react-dialog";import{cva as md}from"class-variance-authority";import{X as Cv}from"lucide-react";import{forwardRef as qo}from"react";import{jsxDEV as et}from"react/jsx-dev-runtime";var Be={top:"top",right:"right",bottom:"bottom",left:"left"},ie={sm:"sm",md:"md",lg:"lg",xl:"xl",full:"full"},zv={[Be.top]:"gs-sheet-content gs-sheet-content-top",[Be.right]:"gs-sheet-content gs-sheet-content-right",[Be.bottom]:"gs-sheet-content gs-sheet-content-bottom",[Be.left]:"gs-sheet-content gs-sheet-content-left"},Sv={[Be.right]:{[ie.sm]:"sm:max-w-sm",[ie.md]:"sm:max-w-md",[ie.lg]:"sm:max-w-lg",[ie.xl]:"sm:max-w-xl",[ie.full]:"sm:max-w-full"},[Be.left]:{[ie.sm]:"sm:max-w-sm",[ie.md]:"sm:max-w-md",[ie.lg]:"sm:max-w-lg",[ie.xl]:"sm:max-w-xl",[ie.full]:"sm:max-w-full"},[Be.top]:{[ie.sm]:"sm:max-h-[30vh]",[ie.md]:"sm:max-h-[50vh]",[ie.lg]:"sm:max-h-[70vh]",[ie.xl]:"sm:max-h-[85vh]",[ie.full]:"sm:max-h-full"},[Be.bottom]:{[ie.sm]:"sm:max-h-[30vh]",[ie.md]:"sm:max-h-[50vh]",[ie.lg]:"sm:max-h-[70vh]",[ie.xl]:"sm:max-h-[85vh]",[ie.full]:"sm:max-h-full"}},dd=md("gs-sheet-overlay fixed inset-0 z-50 bg-black/50"),pd=md("fixed z-50 flex flex-col gap-4 border border-border bg-background p-6 shadow-[var(--shadow-xl)]",{variants:{side:{[Be.top]:"inset-x-0 top-0 border-b",[Be.bottom]:"inset-x-0 bottom-0 border-t",[Be.left]:"inset-y-0 left-0 h-full w-3/4 border-r",[Be.right]:"inset-y-0 right-0 h-full w-3/4 border-l"}},defaultVariants:{side:Be.right}}),Pn=me.Root,Nv=me.Trigger,wv=me.Close,cd=me.Portal,xn=qo(({className:e,...t},r)=>et(me.Overlay,{className:a(dd(),e),...t,ref:r},void 0,!1,void 0,this));xn.displayName=me.Overlay.displayName;var Qo=qo(({side:e="right",size:t=ie.md,showClose:r=!0,className:o,children:n,...i},s)=>{let l=c(t)??ie.md,d=zv[e],m=Sv[e][l];return et(cd,{children:[et(xn,{},void 0,!1,void 0,this),et(me.Content,{ref:s,className:a(pd({side:e}),d,m,o),...i,children:[n,r&&et(me.Close,{className:"gs-interactive 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",children:[et(Cv,{className:"size-4"},void 0,!1,void 0,this),et("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)});Qo.displayName=me.Content.displayName;var ud=({className:e,...t})=>et("div",{className:a("flex flex-col space-y-2 text-center sm:text-left",e),...t},void 0,!1,void 0,this);ud.displayName="SheetHeader";var fd=({className:e,...t})=>et("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);fd.displayName="SheetFooter";var gd=qo(({className:e,...t},r)=>et(me.Title,{ref:r,className:a("font-semibold text-foreground text-lg",e),...t},void 0,!1,void 0,this));gd.displayName=me.Title.displayName;var yd=qo(({className:e,...t},r)=>et(me.Description,{ref:r,className:a("text-muted-foreground text-sm",e),...t},void 0,!1,void 0,this));yd.displayName=me.Description.displayName;import{jsxDEV as bt}from"react/jsx-dev-runtime";var Cn=0;function kv(){return Cn=(Cn+1)%Number.MAX_SAFE_INTEGER,`overlay-${Cn}-${Date.now()}`}var bd=Rv(null),vd=400;function Td({children:e}){let[t,r]=Hv([]),o=Fr((m)=>{r((f)=>f.map((u)=>u.id===m?{...u,open:!1}:u)),setTimeout(()=>{r((f)=>f.filter((u)=>u.id!==m))},vd)},[]),n=Fr(()=>{r((m)=>m.map((f)=>({...f,open:!1}))),setTimeout(()=>{r([])},vd)},[]),i=Fr((m,f,u,v={})=>{let p=kv(),y=(w)=>{return bt(f,{...u,close:w.close},void 0,!1,void 0,this)};y.displayName=`OverlayWrapper(${f.displayName??f.name??"Component"})`;let z={id:p,type:m,component:y,wrapperProps:v,open:!0};return r((w)=>[...w,z]),{id:p,close:()=>o(p)}},[o]),s=Fr((m,f,u)=>{return i("dialog",m,f,u)},[i]),l=Fr((m,f,u)=>{return i("sheet",m,f,u)},[i]),d=Lv(()=>({dialog:s,sheet:l,close:o,closeAll:n}),[s,l,o,n]);return bt(bd.Provider,{value:d,children:[e,t.map((m)=>bt(Av,{entry:m,onClose:o},m.id,!1,void 0,this))]},void 0,!0,void 0,this)}Td.displayName="OverlayProvider";function Av({entry:e,onClose:t}){let{id:r,type:o,component:n,wrapperProps:i,open:s}=e,l=Fr(()=>t(r),[r,t]);if(o==="dialog"){let{showClose:d,size:m,...f}=i;return bt(Er,{open:s,onOpenChange:(u)=>!u&&l(),children:bt(Uo,{showClose:d,size:m,...f,children:bt(n,{close:l},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}if(o==="sheet"){let{side:d,showClose:m,...f}=i;return bt(Pn,{open:s,onOpenChange:(u)=>!u&&l(),children:bt(Qo,{side:d,showClose:m,...f,children:bt(n,{close:l},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}return null}function Iv(){let e=Mv(bd);if(!e)throw Error("useOverlay must be used within an OverlayProvider");return e}import{cva as po}from"class-variance-authority";import{ChevronLeft as Vv,ChevronRight as Fv,MoreHorizontal as Ov}from"lucide-react";import{createContext as Bv,forwardRef as co,useContext as Eo}from"react";import{jsxDEV as Ae}from"react/jsx-dev-runtime";var $e={sm:"sm",md:"md",lg:"lg"},uo=Bv($e.md),hd=po("mx-auto flex w-full justify-center"),Pd=po("flex flex-row items-center gap-1"),xd=po(""),jo=po("gs-interactive 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:opacity-50 hover:bg-accent hover:text-accent-foreground",{variants:{isActive:{true:"border border-border bg-background shadow-[var(--shadow-sm)]",false:""},size:{[$e.sm]:"h-7 w-7 text-xs [&_svg]:size-3.5",[$e.md]:"h-9 w-9 text-sm [&_svg]:size-4",[$e.lg]:"h-10 w-10 text-sm [&_svg]:size-5"}},defaultVariants:{isActive:!1,size:$e.md}}),Cd=po("flex items-center justify-center",{variants:{size:{[$e.sm]:"h-7 w-7 [&_svg]:size-3.5",[$e.md]:"h-9 w-9 [&_svg]:size-4",[$e.lg]:"h-10 w-10 [&_svg]:size-5"}},defaultVariants:{size:$e.md}}),zd=({className:e,size:t=$e.md,...r})=>{let o=c(t)??$e.md;return Ae(uo.Provider,{value:o,children:Ae("nav",{"aria-label":"pagination",className:a(hd(),e),...r},void 0,!1,void 0,this)},void 0,!1,void 0,this)};zd.displayName="Pagination";var Sd=co(({className:e,...t},r)=>Ae("ul",{ref:r,className:a(Pd(),e),...t},void 0,!1,void 0,this));Sd.displayName="PaginationContent";var Nd=co(({className:e,...t},r)=>Ae("li",{ref:r,className:a(xd(),e),...t},void 0,!1,void 0,this));Nd.displayName="PaginationItem";var wd=co(({className:e,isActive:t,...r},o)=>{let n=Eo(uo);return Ae("button",{ref:o,type:"button","aria-current":t?"page":void 0,className:a(jo({isActive:t,size:n}),e),...r},void 0,!1,void 0,this)});wd.displayName="PaginationLink";var Rd=co(({className:e,...t},r)=>{let o=Eo(uo);return Ae("button",{ref:r,type:"button","aria-label":"Go to previous page",className:a(jo({size:o}),"gap-1 pl-2.5 pr-3 w-auto",e),...t,children:[Ae(Vv,{},void 0,!1,void 0,this),Ae("span",{children:"Previous"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});Rd.displayName="PaginationPrevious";var Md=co(({className:e,...t},r)=>{let o=Eo(uo);return Ae("button",{ref:r,type:"button","aria-label":"Go to next page",className:a(jo({size:o}),"gap-1 pl-3 pr-2.5 w-auto",e),...t,children:[Ae("span",{children:"Next"},void 0,!1,void 0,this),Ae(Fv,{},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});Md.displayName="PaginationNext";var Ld=({className:e,...t})=>{let r=Eo(uo);return Ae("span",{"aria-hidden":!0,className:a(Cd({size:r}),e),...t,children:[Ae(Ov,{},void 0,!1,void 0,this),Ae("span",{className:"sr-only",children:"More pages"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)};Ld.displayName="PaginationEllipsis";import*as yo from"@radix-ui/react-progress";import{cva as Hd}from"class-variance-authority";import{forwardRef as Dv}from"react";import{jsxDEV as ea}from"react/jsx-dev-runtime";var fo={sm:"sm",md:"md",lg:"lg",xl:"xl"},go={default:"default",success:"success",warning:"warning",error:"error"},kd=Hd("relative w-full overflow-hidden rounded-full bg-muted",{variants:{size:{[fo.sm]:"h-1",[fo.md]:"h-2.5",[fo.lg]:"h-4",[fo.xl]:"h-5"}},defaultVariants:{size:fo.md}}),Ad=Hd("h-full w-full flex-1 rounded-full transition-transform duration-100 ease-out",{variants:{variant:{[go.default]:"bg-primary",[go.success]:"bg-success",[go.warning]:"bg-warning",[go.error]:"bg-destructive"}},defaultVariants:{variant:go.default}}),Id=Dv(({className:e,value:t,size:r,variant:o,showValue:n,...i},s)=>{let l=c(r);return ea("div",{className:"flex w-full items-center gap-2",children:[ea(yo.Root,{ref:s,className:a(kd({size:l}),e),...i,children:ea(yo.Indicator,{className:a(Ad({variant:o})),style:{transform:`translateX(-${100-(t||0)}%)`}},void 0,!1,void 0,this)},void 0,!1,void 0,this),n&&ea("span",{className:"font-medium text-muted-foreground text-sm tabular-nums",children:[t,"%"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)});Id.displayName=yo.Root.displayName;import*as Br from"@radix-ui/react-radio-group";import{cva as Vd}from"class-variance-authority";import{forwardRef as Fd}from"react";import{jsxDEV as ta}from"react/jsx-dev-runtime";var tt={sm:"sm",md:"md",lg:"lg",xl:"xl"},Or={default:"default",error:"error",success:"success"},Od=Vd("grid gap-2"),Bd=Vd("gs-interactive 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:{[tt.sm]:"h-4 w-4",[tt.md]:"h-5 w-5",[tt.lg]:"h-6 w-6",[tt.xl]:"h-7 w-7"},status:{[Or.default]:"enabled:hover:border-primary/70",[Or.error]:"border-destructive enabled:hover:border-destructive/70 focus-visible:ring-destructive data-[state=checked]:border-destructive data-[state=checked]:text-destructive",[Or.success]:"border-success enabled:hover:border-success/70 focus-visible:ring-success data-[state=checked]:border-success data-[state=checked]:text-success"}},defaultVariants:{size:tt.md,status:Or.default}}),_v={[tt.sm]:"h-2 w-2",[tt.md]:"h-2.5 w-2.5",[tt.lg]:"h-3 w-3",[tt.xl]:"h-3.5 w-3.5"},Dd=Fd(({className:e,...t},r)=>ta(Br.Root,{ref:r,className:a(Od(),e),...t},void 0,!1,void 0,this));Dd.displayName="RadioGroup";var _d=Fd(({className:e,size:t=tt.md,status:r=Or.default,...o},n)=>{let i=c(t);return ta(Br.Item,{ref:n,className:a(Bd({size:i,status:r}),e),...o,children:ta(Br.Indicator,{className:"flex items-center justify-center",children:ta("span",{className:a("block rounded-full bg-current transition-transform duration-150",_v[i])},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)});_d.displayName="RadioGroupItem";import{cva as aa}from"class-variance-authority";import{forwardRef as zn,useCallback as ra,useRef as Gv,useState as Wv}from"react";import{jsxDEV as oa}from"react/jsx-dev-runtime";var Gd=aa("flex h-full w-full",{variants:{direction:{horizontal:"flex-row",vertical:"flex-col"}},defaultVariants:{direction:"horizontal"}}),Wd=aa("relative overflow-hidden"),Ud=aa("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}}),$d=aa("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"}}),Kd=zn(({className:e,direction:t="horizontal",children:r,...o},n)=>oa("div",{ref:n,"data-panel-group":"","data-direction":t,className:a(Gd({direction:t}),e),...o,children:r},void 0,!1,void 0,this));Kd.displayName="ResizablePanelGroup";var Yd=zn(({className:e,defaultSize:t=50,children:r,style:o,...n},i)=>oa("div",{ref:i,"data-panel":"",className:a(Wd(),e),style:{...o,flexGrow:0,flexShrink:0,flexBasis:`${t}%`},...n,children:r},void 0,!1,void 0,this));Yd.displayName="ResizablePanel";var Xd=zn(({className:e,withHandle:t=!1,disabled:r=!1,...o},n)=>{let[i,s]=Wv(!1),l=Gv(null),d=ra((p,y)=>{if(r)return;s(!0);let z=(w)=>{let h="touches"in w?w.touches[0]:null,b=h?h.clientX:w.clientX,C=h?h.clientY:w.clientY,B=l.current;if(!B)return;let R=B.closest("[data-panel-group]");if(!R)return;let A=R.dataset.direction,S=R.getBoundingClientRect(),I=Array.from(R.querySelectorAll(":scope > [data-panel]")),K=Array.from(R.children).indexOf(B),O,$;for(let N of I){let V=Array.from(R.children).indexOf(N);if(V<K)O=N;if(V>K&&!$)$=N}if(O&&$){let N=A==="horizontal"?S.width:S.height,P=(A==="horizontal"?b-S.left:C-S.top)/N*100,F=Math.max(10,Math.min(90,P)),j=100-F;O.style.flexBasis=`${F}%`,$.style.flexBasis=`${j}%`}},M=()=>{s(!1),document.removeEventListener("mousemove",z),document.removeEventListener("mouseup",M),document.removeEventListener("touchmove",z),document.removeEventListener("touchend",M)};document.addEventListener("mousemove",z),document.addEventListener("mouseup",M),document.addEventListener("touchmove",z),document.addEventListener("touchend",M)},[r]),m=ra((p)=>{p.preventDefault(),d(p.clientX,p.clientY)},[d]),f=ra((p)=>{let y=p.touches[0];if(y)d(y.clientX,y.clientY)},[d]),u=ra((p)=>{if(r)return;let y=l.current??p.currentTarget,z=y.closest("[data-panel-group]");if(!z)return;let M=z.dataset.direction,w=p.shiftKey?10:1,h=Array.from(z.querySelectorAll(":scope > [data-panel]")),b=Array.from(z.children).indexOf(y),C,B;for(let S of h){let I=Array.from(z.children).indexOf(S);if(I<b)C=S;if(I>b&&!B)B=S}if(!(C&&B))return;let R=Number.parseFloat(C.style.flexBasis)||50,A=0;if(M==="horizontal"){if(p.key==="ArrowLeft")A=-w;if(p.key==="ArrowRight")A=w}else{if(p.key==="ArrowUp")A=-w;if(p.key==="ArrowDown")A=w}if(A!==0){p.preventDefault();let S=Math.max(10,Math.min(90,R+A));C.style.flexBasis=`${S}%`,B.style.flexBasis=`${100-S}%`}},[r]),v="horizontal";return oa("div",{ref:(p)=>{if(l.current=p,typeof n==="function")n(p);else if(n)n.current=p},role:"separator","aria-orientation":"horizontal",tabIndex:r?-1:0,"data-panel-resize-handle":"","data-dragging":i,onMouseDown:m,onTouchStart:f,onKeyDown:u,className:a(Ud({direction:"horizontal",withHandle:t}),i&&"bg-primary",r&&"pointer-events-none opacity-50",e),...o,children:t&&oa("div",{className:a($d({direction:"horizontal"}))},void 0,!1,void 0,this)},void 0,!1,void 0,this)});Xd.displayName="ResizableHandle";import*as st from"@radix-ui/react-scroll-area";import{cva as Sn}from"class-variance-authority";import{forwardRef as Zd}from"react";import{jsxDEV as Dr}from"react/jsx-dev-runtime";var Jd=Sn("relative overflow-hidden"),Uv={display:"flex",flexDirection:"column"},$v={flex:"1 1 0%",minHeight:0},qd=Sn("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"}}),Qd=Sn("relative flex-1 rounded-full bg-border"),Ed=Zd(({className:e,children:t,style:r,...o},n)=>Dr(st.Root,{ref:n,className:a(Jd(),e),style:{...r,...Uv},...o,children:[Dr(st.Viewport,{className:"w-full rounded-[inherit]",style:$v,children:t},void 0,!1,void 0,this),Dr(Nn,{},void 0,!1,void 0,this),Dr(st.Corner,{},void 0,!1,void 0,this)]},void 0,!0,void 0,this));Ed.displayName="ScrollArea";var Nn=Zd(({className:e,orientation:t="vertical",...r},o)=>Dr(st.ScrollAreaScrollbar,{ref:o,orientation:t,className:a(qd({orientation:t}),e),...r,children:Dr(st.ScrollAreaThumb,{className:a(Qd())},void 0,!1,void 0,this)},void 0,!1,void 0,this));Nn.displayName="ScrollBar";import{cva as Rn}from"class-variance-authority";import{createContext as Kv,forwardRef as Mn,useCallback as jd,useContext as rp,useEffect as wn,useLayoutEffect as Yv,useRef as ep,useState as tp}from"react";import{jsxDEV as tr}from"react/jsx-dev-runtime";var be={sm:"sm",md:"md",lg:"lg"},op=Rn("relative inline-flex items-center rounded-[var(--radius)] border border-border bg-muted/50 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.md}}),ap=Rn(["relative z-10 inline-flex items-center justify-center rounded-[calc(var(--radius)-2px)]","cursor-pointer outline-none select-none","transition-[color] duration-150","focus-visible:ring-2 focus-visible:ring-ring","disabled:pointer-events-none disabled:text-muted-foreground/40"],{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.md,active:!1}}),np=Rn(["relative z-10 inline-flex items-center justify-center gap-1.5 rounded-[calc(var(--radius)-2px)]","cursor-pointer outline-none select-none whitespace-nowrap font-medium","transition-[color] duration-150","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.md,active:!1}}),ip={[be.sm]:"size-3",[be.md]:"size-3.5",[be.lg]:"size-4"},Ln=Kv({activeValue:"",onSelect:()=>{},size:be.md,disabled:!1}),Xv=typeof window<"u"?Yv:wn,sp=Mn(({className:e,value:t,defaultValue:r,onValueChange:o,size:n,disabled:i=!1,children:s,...l},d)=>{let m=c(n),f=ep(null),[u,v]=tp(r??""),[p,y]=tp(null),z=ep(!0),M=t!==void 0?t:u,w=jd((b)=>{if(i)return;if(t===void 0)v(b);o?.(b)},[i,t,o]),h=jd(()=>{let b=f.current;if(!b)return;let C=b.querySelector('[data-state="active"]');if(!C){y(null);return}let B=b.getBoundingClientRect(),R=C.getBoundingClientRect();y({left:R.left-B.left,width:R.width})},[]);return Xv(()=>{h()},[h,M]),wn(()=>{if(z.current)requestAnimationFrame(()=>{z.current=!1})},[]),wn(()=>{let b=f.current;if(!b)return;let C=new MutationObserver(()=>{h()});return C.observe(b,{attributes:!0,attributeFilter:["data-state"],subtree:!0}),()=>C.disconnect()},[h]),tr(Ln.Provider,{value:{activeValue:M,onSelect:w,size:m,disabled:i},children:tr("div",{ref:(b)=>{if(f.current=b,typeof d==="function")d(b);else if(d)d.current=b},role:"radiogroup",className:a(op({size:m}),i&&"opacity-50 pointer-events-none",e),...l,children:[p&&tr("span",{"aria-hidden":"true",className:a("absolute rounded-[calc(var(--radius)-2px)] bg-background shadow-sm",!z.current&&"transition-[left,width] duration-[var(--motion-duration-medium)] ease-[var(--motion-ease-emphasized)]"),style:{left:p.left,width:p.width,top:"4px",bottom:"4px"}},void 0,!1,void 0,this),s]},void 0,!0,void 0,this)},void 0,!1,void 0,this)});sp.displayName="SegmentedControl";var lp=Mn(({className:e,value:t,icon:r,disabled:o=!1,...n},i)=>{let{activeValue:s,onSelect:l,size:d,disabled:m}=rp(Ln),f=s===t,u=o||m;return tr("button",{ref:i,type:"button",role:"radio","aria-checked":f,"aria-disabled":u||void 0,"data-state":f?"active":"inactive","data-value":t,disabled:u,onClick:()=>l(t),className:a(ap({size:d,active:f}),e),...n,children:tr("span",{className:a(ip[d??be.md],"[&>svg]:size-full"),children:r},void 0,!1,void 0,this)},void 0,!1,void 0,this)});lp.displayName="SegmentedControlItem";var mp=Mn(({className:e,value:t,icon:r,disabled:o=!1,children:n,...i},s)=>{let{activeValue:l,onSelect:d,size:m,disabled:f}=rp(Ln),u=l===t,v=o||f;return tr("button",{ref:s,type:"button",role:"radio","aria-checked":u,"aria-disabled":v||void 0,"data-state":u?"active":"inactive","data-value":t,disabled:v,onClick:()=>d(t),className:a(np({size:m,active:u}),e),...i,children:[r&&tr("span",{className:a(ip[m??be.md],"[&>svg]:size-full"),children:r},void 0,!1,void 0,this),n]},void 0,!0,void 0,this)});mp.displayName="SegmentedControlLabelItem";import*as It from"@radix-ui/react-popover";import{cva as pp}from"class-variance-authority";import{Check as Zv,ChevronDown as Jv,X as qv}from"lucide-react";import{Children as Qv,createContext as Ev,forwardRef as To,isValidElement as jv,useCallback as na,useContext as cp,useEffect as ia,useId as dp,useMemo as eb,useRef as up,useState as vo}from"react";import{jsxDEV as le,Fragment as sb}from"react/jsx-dev-runtime";var ae={sm:"sm",md:"md",lg:"lg",xl:"xl"},_r={default:"default",error:"error",success:"success"},bo={trigger:"trigger",auto:"auto"},tb={start:"start",center:"center",end:"end"},fp=pp(["gs-interactive 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:{[ae.sm]:"h-8 px-2.5 text-xs",[ae.md]:"h-10 px-3.5",[ae.lg]:"h-11 px-4.5 text-sm",[ae.xl]:"h-12 px-4 text-base"},status:{[_r.default]:"focus-visible:ring-primary data-[state=open]:ring-primary",[_r.error]:"border-destructive focus-visible:ring-destructive data-[state=open]:ring-destructive",[_r.success]:"border-success focus-visible:ring-success data-[state=open]:ring-success"}},defaultVariants:{size:ae.md,status:_r.default}}),gp=pp(["max-h-96 overflow-y-auto overflow-x-hidden"].join(" "),{variants:{widthMode:{[bo.trigger]:"w-[var(--radix-popover-trigger-width)]",[bo.auto]:"w-max min-w-0"},size:{[ae.sm]:"text-xs",[ae.md]:"text-sm",[ae.lg]:"text-sm",[ae.xl]:"text-base"}},defaultVariants:{widthMode:bo.auto,size:ae.md}}),rb={[ae.sm]:"min-h-7.5 py-1.5 px-2.5 pr-3 text-xs",[ae.md]:"min-h-9 py-2 px-3 pr-4.5 text-sm",[ae.lg]:"min-h-10 py-2.5 px-3.5 pr-5.5 text-sm",[ae.xl]:"min-h-11 py-3 px-4 pr-6 text-base"},ob={[ae.sm]:"px-2 py-1 text-xs",[ae.md]:"px-2 py-1.5 text-sm",[ae.lg]:"px-2.5 py-1.5 text-sm",[ae.xl]:"px-3 py-2 text-base"},sa={[ae.sm]:"size-3.5",[ae.md]:"size-4",[ae.lg]:"size-4",[ae.xl]:"size-4.5"};function Hn(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)=>Hn(t)).join("");if(jv(e))return Hn(e.props.children);return""}var kn=Ev(null);function la(){let e=cp(kn);if(!e)throw Error("Select components must be used within Select");return e}function An(e){let t=cp(kn);if(e)return e;return t?.triggerSize??ae.md}var ab=({children:e,value:t,defaultValue:r="",onValueChange:o,open:n,defaultOpen:i=!1,onOpenChange:s,disabled:l=!1})=>{let[d,m]=vo(ae.md),[f,u]=vo(!1),[v,p]=vo(r),[y,z]=vo(i),[M,w]=vo(0),h=up(new Map),b=t!==void 0,C=n!==void 0,B=b?t:v,R=C?n:y,A=na((V)=>{if(!b)p(V);if(o?.(V),!C)z(!1);s?.(!1)},[b,C,o,s]),S=na((V)=>{if(l)return;if(!C)z(V);s?.(V)},[l,C,s]),I=na((V,P)=>{if(h.current.get(V)!==P)h.current.set(V,P),w((j)=>j+1)},[]),K=na((V)=>{return h.current.get(V)},[]),O=dp(),$=dp(),N=eb(()=>({value:B,onValueChange:A,open:R,onOpenChange:S,triggerSize:d,setTriggerSize:m,triggerFullWidth:f,setTriggerFullWidth:u,disabled:l,triggerId:O,contentId:$,registerItem:I,getLabel:K}),[B,A,R,S,d,f,l,O,$,I,K,M]);return le(kn.Provider,{value:N,children:le(It.Root,{open:R,onOpenChange:S,children:e},void 0,!1,void 0,this)},void 0,!1,void 0,this)},nb=({children:e,className:t})=>le("div",{role:"group",className:t,children:e},void 0,!1,void 0,this),ib=({placeholder:e})=>{let{value:t,getLabel:r}=la();if(!t)return e?le("span",{className:"text-muted-foreground",children:e},void 0,!1,void 0,this):null;let o=r(t);return le(sb,{children:o??t},void 0,!1,void 0,this)},yp=To(({className:e,children:t,size:r=ae.md,status:o=_r.default,fullWidth:n=!1,clearable:i=!1,leadingIcon:s,indicatorIcon:l,renderValue:d,placeholder:m,onKeyDown:f,...u},v)=>{let p=la(),y=c(r)??r,z=p.setTriggerSize,M=p.setTriggerFullWidth;ia(()=>{z(y)},[y,z]),ia(()=>{M(n)},[n,M]);let w=p.value.length>0,h=i&&w&&!p.disabled,b=(R)=>{R.stopPropagation(),R.preventDefault(),p.onValueChange("")},C;if(d)C=w?d(p.value):m?le("span",{className:"text-muted-foreground",children:m},void 0,!1,void 0,this):null;else C=t;let B=(R)=>{if(f?.(R),R.defaultPrevented)return;if(R.key==="ArrowDown"||R.key==="ArrowUp"||R.key==="Enter"||R.key===" "){if(!p.open)R.preventDefault(),p.onOpenChange(!0)}};return le(It.Trigger,{asChild:!0,children:le("button",{ref:v,type:"button",role:"combobox","aria-expanded":p.open,"aria-haspopup":"listbox","aria-controls":p.contentId,id:p.triggerId,disabled:p.disabled,"data-state":p.open?"open":"closed","data-placeholder":w?void 0:"",className:a(fp({size:y,status:o}),n?"w-full":"w-auto",e),onKeyDown:B,...u,children:[s&&le("i",{className:"inline-flex shrink-0 items-center text-muted-foreground not-italic",children:s},void 0,!1,void 0,this),le("span",{"data-slot":"select-value",className:"min-w-0 flex-1 text-left",children:C},void 0,!1,void 0,this),le("span",{className:"inline-flex shrink-0 items-center gap-1 text-muted-foreground",children:[h&&le("span",{role:"button",tabIndex:-1,"aria-label":"Clear selection",onMouseDown:(R)=>R.preventDefault(),onClick:b,className:"gs-interactive 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(qv,{className:sa[y]},void 0,!1,void 0,this)},void 0,!1,void 0,this),l??le(Jv,{className:a(sa[y],"opacity-60 transition-transform duration-200 ease-[cubic-bezier(0.16,1,0.3,1)]",p.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)});yp.displayName="SelectTrigger";var vp=To(({className:e,children:t,widthMode:r,size:o,align:n="start",side:i="bottom",sideOffset:s=4,portal:l=!0,forceMount:d=!0,onKeyDown:m,...f},u)=>{let v=la(),p=An(o),y=r??bo.auto,z=up(null),M=no(u,z),w=(C)=>{let B=z.current;if(!B)return;let R=Array.from(B.querySelectorAll('[role="option"]:not([data-disabled])'));if(R.length===0)return;let A=B.querySelector('[role="option"]:focus'),S=A?R.indexOf(A):-1,I;switch(C){case"first":I=R[0];break;case"last":I=R[R.length-1];break;case"next":I=R[S+1]??R[0];break;case"prev":I=R[S-1]??R[R.length-1];break}I?.focus()},h=(C)=>{if(m?.(C),C.defaultPrevented)return;switch(C.key){case"ArrowDown":C.preventDefault(),w("next");break;case"ArrowUp":C.preventDefault(),w("prev");break;case"Home":C.preventDefault(),w("first");break;case"End":C.preventDefault(),w("last");break;case"Escape":C.preventDefault(),v.onOpenChange(!1);break}};ia(()=>{if(v.open)requestAnimationFrame(()=>w("first"))},[v.open]);let b=le(It.Content,{ref:M,id:v.contentId,role:"listbox","aria-labelledby":v.triggerId,side:i,align:n,sideOffset:s,forceMount:d,onKeyDown:h,onOpenAutoFocus:(C)=>C.preventDefault(),className:a(Ar(),gp({widthMode:y,size:p}),"p-1",e),...f,children:t},void 0,!1,void 0,this);if(l)return le(It.Portal,{children:b},void 0,!1,void 0,this);return b});vp.displayName="SelectContent";var bp=To(({className:e,size:t,...r},o)=>{let n=An(t);return le("div",{ref:o,className:a("font-semibold text-foreground",ob[n],e),...r},void 0,!1,void 0,this)});bp.displayName="SelectLabel";var Tp=To(({className:e,children:t,value:r,label:o,size:n,disabled:i=!1,...s},l)=>{let d=la(),m=An(n),f=d.value===r,u=d.registerItem,v=Hn(Qv.toArray(t)).trim();ia(()=>{let z=o??(v.length>0?v:r);u(r,z)},[v,r,o,u]);let p=()=>{if(!i)d.onValueChange(r)},y=(z)=>{if(z.key==="Enter"||z.key===" ")z.preventDefault(),p()};return le("div",{ref:l,role:"option",tabIndex:i?void 0:-1,"aria-selected":f,"aria-disabled":i||void 0,"data-selected":f?"":void 0,"data-disabled":i?"":void 0,"data-value":r,className:a("gs-interactive 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:opacity-50",rb[m],f&&"bg-accent/50",e),onClick:p,onKeyDown:y,...s,children:[le("span",{className:a("flex shrink-0 items-center justify-center",sa[m]),children:f&&le(Zv,{className:sa[m]},void 0,!1,void 0,this)},void 0,!1,void 0,this),le("span",{className:"min-w-0 flex-1 truncate",children:t},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});Tp.displayName="SelectItem";var hp=To(({className:e,...t},r)=>le("div",{ref:r,className:a("-mx-1 my-1 h-px bg-border",e),...t},void 0,!1,void 0,this));hp.displayName="SelectSeparator";import{cva as lb}from"class-variance-authority";import{forwardRef as mb}from"react";import{jsxDEV as db}from"react/jsx-dev-runtime";var ho={horizontal:"horizontal",vertical:"vertical"},Pp=lb("shrink-0 bg-border",{variants:{orientation:{[ho.horizontal]:"h-px w-full",[ho.vertical]:"h-full w-px"}},defaultVariants:{orientation:ho.horizontal}}),xp=mb(({className:e,orientation:t=ho.horizontal,decorative:r=!0,...o},n)=>{let i=r?{role:"none"}:{role:"separator","aria-orientation":t};return db("div",{ref:n,className:a(Pp({orientation:t}),e),...i,...o},void 0,!1,void 0,this)});xp.displayName="Separator";import{cva as ma}from"class-variance-authority";import{forwardRef as da}from"react";import{jsxDEV as pa}from"react/jsx-dev-runtime";var Te={sm:"sm",md:"md",lg:"lg"},Cp=ma("animate-pulse rounded-[var(--radius)] bg-muted"),zp=ma("w-full",{variants:{size:{[Te.sm]:"h-3",[Te.md]:"h-4",[Te.lg]:"h-5"}},defaultVariants:{size:Te.md}}),Sp=ma("",{variants:{size:{[Te.sm]:"h-8 w-8",[Te.md]:"h-10 w-10",[Te.lg]:"h-12 w-12"}},defaultVariants:{size:Te.md}}),Np=ma("",{variants:{size:{[Te.sm]:"h-8 w-20",[Te.md]:"h-9 w-24",[Te.lg]:"h-10 w-28"}},defaultVariants:{size:Te.md}}),Po=da(({className:e,circle:t=!1,...r},o)=>pa("div",{ref:o,className:a(Cp(),t&&"rounded-full",e),...r},void 0,!1,void 0,this));Po.displayName="Skeleton";var wp=da(({className:e,size:t=Te.md,...r},o)=>{let n=c(t)??Te.md;return pa(Po,{ref:o,className:a(zp({size:n}),e),...r},void 0,!1,void 0,this)});wp.displayName="SkeletonText";var Rp=da(({className:e,size:t=Te.md,...r},o)=>{let n=c(t)??Te.md;return pa(Po,{ref:o,circle:!0,className:a(Sp({size:n}),e),...r},void 0,!1,void 0,this)});Rp.displayName="SkeletonAvatar";var Mp=da(({className:e,size:t=Te.md,...r},o)=>{let n=c(t)??Te.md;return pa(Po,{ref:o,className:a(Np({size:n}),e),...r},void 0,!1,void 0,this)});Mp.displayName="SkeletonButton";import*as Vt from"@radix-ui/react-slider";import{cva as fa}from"class-variance-authority";import{forwardRef as pb}from"react";import{jsxDEV as ua}from"react/jsx-dev-runtime";var ca={sm:"sm",md:"md",lg:"lg"},Lp=fa("relative flex w-full touch-none select-none items-center",{variants:{size:{[ca.sm]:"[&_[data-slider-track]]:h-0.5 [&_[data-slider-thumb]]:h-3 [&_[data-slider-thumb]]:w-3",[ca.md]:"[&_[data-slider-track]]:h-2 [&_[data-slider-thumb]]:h-5 [&_[data-slider-thumb]]:w-5",[ca.lg]:"[&_[data-slider-track]]:h-3 [&_[data-slider-thumb]]:h-6 [&_[data-slider-thumb]]:w-6"}},defaultVariants:{size:ca.md}}),Hp=fa("relative w-full grow overflow-hidden rounded-full bg-secondary"),kp=fa("absolute h-full bg-primary"),Ap=fa("gs-interactive block rounded-full border-2 border-primary bg-background ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50"),Ip=pb(({className:e,size:t,...r},o)=>{let n=c(t);return ua(Vt.Root,{ref:o,className:a(Lp({size:n}),e),...r,children:[ua(Vt.Track,{"data-slider-track":!0,className:a(Hp()),children:ua(Vt.Range,{className:a(kp())},void 0,!1,void 0,this)},void 0,!1,void 0,this),(r.defaultValue??r.value??[0]).map((i,s)=>ua(Vt.Thumb,{"data-slider-thumb":!0,className:a(Ap())},`thumb-${String(s)}`,!1,void 0,this))]},void 0,!0,void 0,this)});Ip.displayName="Slider";import{cva as Se}from"class-variance-authority";import{forwardRef as fb,useCallback as ga,useEffect as gb,useMemo as ya,useRef as xo,useState as Op}from"react";import{useCallback as Vp,useSyncExternalStore as cb}from"react";var ub=()=>!1;function Fp(e){let t=Vp((o)=>{if(typeof window>"u")return()=>{};let n=window.matchMedia(e);return n.addEventListener("change",o),()=>n.removeEventListener("change",o)},[e]),r=Vp(()=>{if(typeof window>"u")return!1;return window.matchMedia(e).matches},[e]);return cb(t,r,ub)}import{jsxDEV as U,Fragment as Vn}from"react/jsx-dev-runtime";var yb="(max-width: 639px)",x={sm:"sm",md:"md",lg:"lg",xl:"xl"},In={sm:"sm",md:"sm",lg:"md",xl:"md"},Gr={idle:"idle",loading:"loading",error:"error"},Bp=Se("z-[120] bg-black/40"),Dp=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:{[x.sm]:"max-w-md",[x.md]:"max-w-xl",[x.lg]:"max-w-2xl",[x.xl]:"max-w-3xl"}},defaultVariants:{size:x.md}}),_p=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"]),Gp=Se("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",[x.xl]:"gap-4 px-6 py-4"}},defaultVariants:{size:x.md}}),Wp=Se(["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",[x.xl]:"text-xl"}},defaultVariants:{size:x.md}}),Up=Se("text-muted-foreground shrink-0",{variants:{size:{[x.sm]:"size-3.5",[x.md]:"size-4",[x.lg]:"size-5",[x.xl]:"size-5"}},defaultVariants:{size:x.md}}),$p=Se("overflow-y-auto py-1",{variants:{size:{[x.sm]:"max-h-64",[x.md]:"max-h-80",[x.lg]:"max-h-96",[x.xl]:"max-h-[28rem]"}},defaultVariants:{size:x.md}}),Kp=Se("font-semibold text-muted-foreground uppercase tracking-wide",{variants:{size:{[x.sm]:"px-2.5 py-1.5 text-[10px]",[x.md]:"px-3 py-2 text-xs",[x.lg]:"px-3.5 py-2 text-xs",[x.xl]:"px-4 py-2.5 text-xs"}},defaultVariants:{size:x.md}}),Yp=Se(["group flex items-center cursor-pointer rounded-lg","text-foreground","transition-[color,background-color,transform,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",[x.xl]:"gap-4 px-4 py-3 mx-2.5"},selected:{true:"bg-primary/10",false:"hover:bg-muted hover:translate-x-0.5"},disabled:{true:"text-muted-foreground cursor-not-allowed pointer-events-none bg-muted/40",false:""}},defaultVariants:{size:x.md,selected:!1,disabled:!1}}),Xp=Se("shrink-0",{variants:{size:{[x.sm]:"size-3.5",[x.md]:"size-4",[x.lg]:"size-5",[x.xl]:"size-5"},selected:{true:"text-primary",false:"text-muted-foreground"}},defaultVariants:{size:x.md,selected:!1}}),Zp=Se("flex-1 min-w-0"),Jp=Se("font-medium truncate",{variants:{size:{[x.sm]:"text-xs",[x.md]:"text-sm",[x.lg]:"text-sm",[x.xl]:"text-base"}},defaultVariants:{size:x.md}}),qp=Se("text-muted-foreground truncate",{variants:{size:{[x.sm]:"text-[11px]",[x.md]:"text-xs",[x.lg]:"text-xs",[x.xl]:"text-sm"}},defaultVariants:{size:x.md}}),Qp=Se("flex items-center gap-1 text-muted-foreground shrink-0",{variants:{size:{[x.sm]:"text-[10px]",[x.md]:"text-[11px]",[x.lg]:"text-xs",[x.xl]:"text-xs"}},defaultVariants:{size:x.md}}),va=Se("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",[x.xl]:"py-12 min-h-32"},state:{empty:"text-muted-foreground",loading:"text-muted-foreground",error:"text-destructive"}},defaultVariants:{size:x.md,state:"empty"}}),ba=Se("font-medium",{variants:{size:{[x.sm]:"text-xs",[x.md]:"text-sm",[x.lg]:"text-sm",[x.xl]:"text-base"}},defaultVariants:{size:x.md}}),Ep=Se("mt-1",{variants:{size:{[x.sm]:"text-[11px]",[x.md]:"text-xs",[x.lg]:"text-xs",[x.xl]:"text-sm"}},defaultVariants:{size:x.md}}),jp=(e,t)=>{if(!t)return!0;let r=t.toLowerCase();if(e.title.toLowerCase().includes(r))return!0;if(e.description?.toLowerCase().includes(r))return!0;if(e.keywords?.some((o)=>o.toLowerCase().includes(r)))return!0;return!1},ec=fb(({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.md,status:f=Gr.idle,statusMessage:u,emptyText:v="No command found for this query.",hotkey:p,portal:y=!0,filterFn:z,renderItem:M,footer:w,...h},b)=>{let C=xo(null),B=xo(null),[R,A]=Op(s),[S,I]=Op(0),{isMac:K}=io(),O=Fp(yb),$=ya(()=>p&&p.length>0?p.join("+"):null,[p]);Qr($??"",()=>r(!t),{enabled:!!$});let N=i!==void 0?i:R,V=z??jp,P=ya(()=>o.filter((k)=>V(k,N)),[o,N,V]),F=ya(()=>P.map((k,W)=>k.disabled?-1:W).filter((k)=>k>=0),[P]),j=ya(()=>{let k=new Map,W=new Map,Q=0;for(let fe of P){let Ie=fe.group??"";if(!k.has(Ie))k.set(Ie,[]);k.get(Ie).push(fe),W.set(fe,Q),Q++}return{groups:k,indexMap:W}},[P]),H=xo(!1),Y=xo(t);if(Y.current&&!t)H.current=!0;if(!Y.current&&t)H.current=!1;Y.current=t;let g=xo({query:N,status:f,statusMessage:u??null,filtered:P,grouped:j,activeIndex:S,emptyText:v});if(!H.current)g.current={query:N,status:f,statusMessage:u??null,filtered:P,grouped:j,activeIndex:S,emptyText:v};gb(()=>{if(t)I(0)},[t]);let T=ga((k)=>{let W=k.target.value;A(W),l?.(W),I(0)},[l]),L=ga((k)=>{let W=B.current;if(!W)return;W.querySelectorAll('[role="option"]')[k]?.scrollIntoView({block:"nearest"})},[]),re=ga((k)=>{if(k.key==="ArrowDown"){if(k.preventDefault(),F.length===0)return;let Q=(F.indexOf(S)+1)%F.length,fe=F[Q];I(fe),L(fe);return}if(k.key==="ArrowUp"){if(k.preventDefault(),F.length===0)return;let Q=(F.indexOf(S)-1+F.length)%F.length,fe=F[Q];I(fe),L(fe);return}if(k.key==="Enter"){k.preventDefault();let W=P[S];if(W&&!W.disabled)n(W,S)}},[S,F,P,n,L]),ee=ga((k,W)=>{if(k.disabled)return;n(k,W)},[n]),oe=g.current,te=oe.status===Gr.idle,de=oe.status!==Gr.idle,dr=U(Vn,{children:[U("div",{className:a(Gp({size:m})),children:[U("svg",{className:a(Up({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:C,type:"text",value:oe.query,onChange:T,placeholder:d,"aria-label":"Search",className:a(Wp({size:m}))},void 0,!1,void 0,this),!O&&p?U("div",{className:"flex items-center gap-1",children:Ta(p,K).map((k,W)=>U("kbd",{className:a(Lr({size:In[m]})),children:k},W,!1,void 0,this))},void 0,!1,void 0,this):!O?U("kbd",{className:a(Lr({size:In[m]})),children:"ESC"},void 0,!1,void 0,this):null]},void 0,!0,void 0,this),de&&oe.status===Gr.loading&&U("div",{className:a(va({size:m,state:"loading"}),"animate-in fade-in-0 slide-in-from-bottom-1 duration-150"),children:[U(xt,{size:"sm",className:"mb-2 text-muted-foreground"},void 0,!1,void 0,this),U("div",{className:a(ba({size:m})),children:"Searching commands..."},void 0,!1,void 0,this)]},void 0,!0,void 0,this),de&&oe.status===Gr.error&&U("div",{className:a(va({size:m,state:"error"}),"animate-in fade-in-0 slide-in-from-bottom-1 duration-150"),children:[U("div",{className:a(ba({size:m})),children:"Search failed"},void 0,!1,void 0,this),oe.statusMessage&&U("div",{className:a(Ep({size:m})),children:oe.statusMessage},void 0,!1,void 0,this)]},void 0,!0,void 0,this),te&&oe.filtered.length===0&&U("div",{className:a(va({size:m,state:"empty"}),"animate-in fade-in-0 slide-in-from-bottom-1 duration-150"),children:U("div",{className:a(ba({size:m})),children:oe.emptyText},void 0,!1,void 0,this)},void 0,!1,void 0,this),te&&oe.filtered.length>0&&U("div",{ref:B,role:"listbox","aria-label":"Search results",className:a($p({size:m}),O&&"max-h-none flex-1 min-h-0"),children:Array.from(oe.grouped.groups.entries()).map(([k,W])=>U("div",{children:[k&&U("div",{className:a(Kp({size:m})),children:k},void 0,!1,void 0,this),W.map((Q)=>{let fe=oe.grouped.indexMap.get(Q)??0,Ie=fe===oe.activeIndex,$a=Q.disabled??!1;return U("div",{role:"option","aria-selected":Ie,"aria-disabled":$a,onClick:()=>ee(Q,fe),className:a(Yp({size:m,selected:Ie,disabled:$a})),children:M?M(Q,{active:Ie,disabled:$a,index:fe}):U(Vn,{children:[Q.icon&&U("span",{className:a(Xp({size:m,selected:Ie})),children:Q.icon},void 0,!1,void 0,this),U("div",{className:a(Zp()),children:[U("div",{className:a(Jp({size:m})),children:Q.title},void 0,!1,void 0,this),Q.description&&U("div",{className:a(qp({size:m})),children:Q.description},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Q.shortcut&&Q.shortcut.length>0&&U("div",{className:a(Qp({size:m})),children:Ta(Q.shortcut,K).map((uf,ff)=>U("kbd",{className:a(Lr({size:In[m]})),children:uf},ff,!1,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},Q.id,!1,void 0,this)})]},k||"__ungrouped__",!0,void 0,this))},void 0,!1,void 0,this),w&&U("div",{className:"border-t border-border px-3 py-2",children:w},void 0,!1,void 0,this)]},void 0,!0,void 0,this),X=U(jr,{"data-testid":"spotlight-overlay",className:a(Bp()),onClick:()=>r(!1)},void 0,!1,void 0,this),ue=U(cn,{...h,ref:b,className:a(O?_p():Dp({size:m}),e),"aria-label":"Spotlight search","aria-describedby":void 0,onOpenAutoFocus:(k)=>{k.preventDefault(),C.current?.focus()},onCloseAutoFocus:(k)=>k.preventDefault(),onKeyDown:re,children:[U($o,{className:"sr-only",children:"Spotlight search"},void 0,!1,void 0,this),O&&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),dr]},void 0,!0,void 0,this);return U(Er,{open:t,onOpenChange:r,children:y?U(Wo,{children:[X,ue]},void 0,!0,void 0,this):U(Vn,{children:[X,ue]},void 0,!0,void 0,this)},void 0,!1,void 0,this)});ec.displayName="Spotlight";import{cva as vb}from"class-variance-authority";import{forwardRef as bb}from"react";import{jsxDEV as Ft}from"react/jsx-dev-runtime";var Ke={sm:"sm",md:"md",lg:"lg"},rr={up:"up",down:"down",neutral:"neutral"},tc=vb("gs-interactive relative flex flex-col rounded-lg border border-border bg-card text-card-foreground shadow-sm transition-[color,background-color,border-color,box-shadow] duration-150 hover:shadow-md",{variants:{size:{[Ke.sm]:"gap-1 p-3",[Ke.md]:"gap-1.5 p-4",[Ke.lg]:"gap-2 p-5"}},defaultVariants:{size:Ke.md}}),Tb={[Ke.sm]:"text-lg font-semibold",[Ke.md]:"text-2xl font-bold",[Ke.lg]:"text-3xl font-bold"},hb={[Ke.sm]:"text-xs",[Ke.md]:"text-sm",[Ke.lg]:"text-base"},Pb={[rr.up]:"text-success",[rr.down]:"text-destructive",[rr.neutral]:"text-muted-foreground"},xb={[rr.up]:"↑",[rr.down]:"↓",[rr.neutral]:"→"},rc=bb(({className:e,size:t=Ke.md,label:r,value:o,trend:n,trendValue:i,icon:s,...l},d)=>{let m=c(t);return Ft("div",{ref:d,className:a(tc({size:m}),e),...l,children:[Ft("div",{className:"flex items-center justify-between",children:[Ft("span",{className:a("text-muted-foreground",hb[m]),children:r},void 0,!1,void 0,this),s&&Ft("span",{className:"text-muted-foreground/70","aria-hidden":"true",children:s},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Ft("div",{className:"flex items-baseline gap-2",children:[Ft("span",{className:a("tracking-tight text-foreground",Tb[m]),children:o},void 0,!1,void 0,this),n&&i&&Ft("span",{className:a("inline-flex items-center gap-0.5 text-xs font-medium",Pb[n]),children:[Ft("span",{"aria-hidden":"true",children:xb[n]},void 0,!1,void 0,this),i]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)});rc.displayName="StatCard";import{cva as or}from"class-variance-authority";import{Check as Cb}from"lucide-react";import{forwardRef as ar}from"react";import{jsxDEV as Ot}from"react/jsx-dev-runtime";var oc=or("flex w-full",{variants:{orientation:{horizontal:"flex-row items-start",vertical:"flex-col"}},defaultVariants:{orientation:"horizontal"}}),ac=or("flex",{variants:{orientation:{horizontal:"flex-1 flex-col items-center",vertical:"gap-4 flex-row"}},defaultVariants:{orientation:"horizontal"}}),nc=or(["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/80 bg-card text-muted-foreground","shadow-[0_1px_2px_rgba(0,0,0,0.05)]"],current:["border-primary bg-primary text-primary-foreground","shadow-[0_2px_4px_rgba(99,102,241,0.2)]"],complete:["border-success/60 bg-success text-success-foreground","shadow-[0_1px_3px_rgba(0,0,0,0.1)]","[&>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",xl:"h-14 w-14 text-lg"},animated:{true:"gs-step-indicator-animated",false:""}},defaultVariants:{status:"incomplete",size:"md",animated:!0}}),ic=or("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",xl:"opacity-100"},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:"md",animated:!0}}),sc=or("flex flex-col",{variants:{orientation:{horizontal:"mt-3 items-center text-center",vertical:"flex-1 pb-8 last:pb-0"}},defaultVariants:{orientation:"horizontal"}}),lc=or("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",xl:"text-lg"}},defaultVariants:{status:"incomplete",size:"md"}}),mc=or("text-muted-foreground transition-colors duration-200 ease-out",{variants:{size:{sm:"text-sm",md:"text-xs",lg:"text-sm",xl:"text-base"}},defaultVariants:{size:"md"}});var dc=ar(({className:e,orientation:t="horizontal",activeStep:r,...o},n)=>{return Ot("div",{ref:n,role:"group","aria-label":"Progress steps",className:a(oc({orientation:t}),e),"data-orientation":t,"data-active-step":r,...o},void 0,!1,void 0,this)});dc.displayName="Stepper";var pc=ar(({className:e,orientation:t="horizontal",isLast:r,isCurrent:o,...n},i)=>{return Ot("div",{ref:i,className:a(ac({orientation:t}),e),"data-last":r,"aria-current":o?"step":void 0,...n},void 0,!1,void 0,this)});pc.displayName="Step";var cc=ar(({className:e,status:t="incomplete",size:r="md",icon:o,step:n,children:i,animated:s=!0,...l},d)=>{let m=c(r);return Ot("div",{ref:d,className:a(nc({status:t,size:m,animated:s}),e),"data-status":t,"aria-hidden":"true",...l,children:t==="complete"?o||Ot(Cb,{className:"size-4",strokeWidth:3},void 0,!1,void 0,this):i||n},void 0,!1,void 0,this)});cc.displayName="StepIndicator";var uc=ar(({className:e,orientation:t="horizontal",status:r="incomplete",size:o="md",animated:n=!0,...i},s)=>{let l=c(o);return Ot("div",{ref:s,className:a(ic({orientation:t,status:r,size:l,animated:n}),e),"data-status":r,...i},void 0,!1,void 0,this)});uc.displayName="StepConnector";var fc=ar(({className:e,orientation:t="horizontal",...r},o)=>{return Ot("div",{ref:o,className:a(sc({orientation:t}),e),...r},void 0,!1,void 0,this)});fc.displayName="StepContent";var gc=ar(({className:e,status:t="incomplete",size:r="md",...o},n)=>{let i=c(r);return Ot("h4",{ref:n,className:a(lc({status:t,size:i}),e),...o},void 0,!1,void 0,this)});gc.displayName="StepTitle";var yc=ar(({className:e,size:t="md",...r},o)=>{let n=c(t);return Ot("p",{ref:o,className:a(mc({size:n}),e),...r},void 0,!1,void 0,this)});yc.displayName="StepDescription";import*as ha from"@radix-ui/react-switch";import{cva as zb}from"class-variance-authority";import{forwardRef as Sb}from"react";import{jsxDEV as vc}from"react/jsx-dev-runtime";var He={sm:"sm",md:"md",lg:"lg",xl:"xl"},Wr={default:"default",error:"error",success:"success"},bc=zb("gs-interactive 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:{[He.sm]:"h-4.5 w-8",[He.md]:"h-5 w-9",[He.lg]:"h-6 w-11",[He.xl]:"h-7 w-[3.25rem]"},status:{[Wr.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",[Wr.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",[Wr.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:He.md,status:Wr.default}}),Nb={[He.sm]:"h-3.5 w-3.5",[He.md]:"h-4 w-4",[He.lg]:"h-5 w-5",[He.xl]:"h-6 w-6"},wb={[He.sm]:"data-[state=checked]:translate-x-3.5",[He.md]:"data-[state=checked]:translate-x-4",[He.lg]:"data-[state=checked]:translate-x-5",[He.xl]:"data-[state=checked]:translate-x-6"},Tc=Sb(({className:e,size:t=He.md,status:r=Wr.default,checked:o,disabled:n,...i},s)=>{let l=c(t);return vc(ha.Root,{ref:s,checked:o,disabled:n,className:a(bc({size:l,status:r}),e),...i,children:vc(ha.Thumb,{className:a("pointer-events-none block rounded-full bg-background shadow-sm transition-transform duration-150",Nb[l],wb[l])},void 0,!1,void 0,this)},void 0,!1,void 0,this)});Tc.displayName="Switch";import{cva as Tt}from"class-variance-authority";import{createContext as Rb,forwardRef as Bt,useContext as hc}from"react";import{jsxDEV as lt}from"react/jsx-dev-runtime";var we={sm:"sm",md:"md",lg:"lg"},Fn=Rb(we.md),Pc=Tt("relative w-full overflow-auto rounded-[var(--radius)] border border-border bg-card shadow-[var(--shadow-sm)]"),xc=Tt("w-full caption-bottom",{variants:{size:{[we.sm]:"text-xs",[we.md]:"text-sm",[we.lg]:"text-sm"}},defaultVariants:{size:we.md}}),Cc=Tt("sticky top-0 z-[1] [&_tr]:border-b [&_tr]:border-border [&_th]:bg-muted"),zc=Tt("[&_tr:last-child]:border-0"),Sc=Tt("border-t border-border bg-muted font-medium text-muted-foreground [&>tr]:last:border-b-0"),Nc=Tt("gs-interactive border-b border-border hover:bg-muted/50 data-[state=selected]:bg-primary/10"),wc=Tt("text-left align-middle font-semibold text-muted-foreground [&:has([role=checkbox])]:pr-0",{variants:{size:{[we.sm]:"h-8 px-2",[we.md]:"h-10 px-3",[we.lg]:"h-12 px-4"}},defaultVariants:{size:we.md}}),Rc=Tt("align-middle text-foreground [&:has([role=checkbox])]:pr-0",{variants:{size:{[we.sm]:"p-2",[we.md]:"p-3",[we.lg]:"p-4"}},defaultVariants:{size:we.md}}),Mc=Tt("mt-4 text-sm text-muted-foreground"),Lc=Bt(({className:e,containerClassName:t,size:r=we.md,...o},n)=>{let i=c(r)??we.md;return lt(Fn.Provider,{value:i,children:lt("div",{className:a(Pc(),t),children:lt("table",{ref:n,className:a(xc({size:i}),e),...o},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)});Lc.displayName="Table";var Hc=Bt(({className:e,...t},r)=>lt("thead",{ref:r,className:a(Cc(),e),...t},void 0,!1,void 0,this));Hc.displayName="TableHeader";var kc=Bt(({className:e,...t},r)=>lt("tbody",{ref:r,className:a(zc(),e),...t},void 0,!1,void 0,this));kc.displayName="TableBody";var Ac=Bt(({className:e,...t},r)=>lt("tfoot",{ref:r,className:a(Sc(),e),...t},void 0,!1,void 0,this));Ac.displayName="TableFooter";var Ic=Bt(({className:e,...t},r)=>lt("tr",{ref:r,className:a(Nc(),e),...t},void 0,!1,void 0,this));Ic.displayName="TableRow";var Vc=Bt(({className:e,size:t,...r},o)=>{let n=hc(Fn);return lt("th",{ref:o,className:a(wc({size:t??n}),e),...r},void 0,!1,void 0,this)});Vc.displayName="TableHead";var Fc=Bt(({className:e,size:t,...r},o)=>{let n=hc(Fn);return lt("td",{ref:o,className:a(Rc({size:t??n}),e),...r},void 0,!1,void 0,this)});Fc.displayName="TableCell";var Oc=Bt(({className:e,...t},r)=>lt("caption",{ref:r,className:a(Mc(),e),...t},void 0,!1,void 0,this));Oc.displayName="TableCaption";import*as rt from"@radix-ui/react-tabs";import{cva as On}from"class-variance-authority";import{createContext as Mb,forwardRef as Bn,useCallback as Bc,useContext as Lb,useEffect as Dn,useLayoutEffect as Hb,useRef as Pa,useState as kb}from"react";import{jsxDEV as Co}from"react/jsx-dev-runtime";var mt={sm:"sm",md:"md",lg:"lg",xl:"xl"},Dc=On("relative inline-flex items-center justify-center rounded-[var(--radius)] border border-border bg-muted/50 p-1 text-muted-foreground",{variants:{size:{[mt.sm]:"h-9 gap-0.5",[mt.md]:"h-11 gap-1",[mt.lg]:"h-12 gap-1",[mt.xl]:"h-14 gap-1.5"}},defaultVariants:{size:mt.md}}),_c=On("gs-interactive relative z-10 inline-flex items-center justify-center whitespace-nowrap rounded-[calc(var(--radius)-2px)] font-semibold 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:{[mt.sm]:"px-2.5 py-1 text-xs",[mt.md]:"px-3 py-1.5 text-sm",[mt.lg]:"px-4 py-2 text-sm",[mt.xl]:"px-5 py-2.5 text-base"}},defaultVariants:{size:mt.md}}),Gc=On("mt-3 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2"),Wc=Mb({registerTrigger:()=>{}}),Ab=typeof window<"u"?Hb:Dn,Ib=rt.Root,Uc=Bn(({className:e,size:t,children:r,...o},n)=>{let i=c(t),s=Pa(null),l=Pa(new Map),[d,m]=kb(null),f=Pa(!0),u=Bc((p,y)=>{if(y)l.current.set(p,y);else l.current.delete(p)},[]),v=Bc(()=>{let p=s.current;if(!p)return;let y=p.querySelector('[data-state="active"]');if(!y){m(null);return}let z=p.getBoundingClientRect(),M=y.getBoundingClientRect();m({left:M.left-z.left,width:M.width})},[]);return Ab(()=>{v()},[v]),Dn(()=>{let p=s.current;if(!p)return;let y=new MutationObserver(()=>{f.current=!1,v()});return y.observe(p,{attributes:!0,attributeFilter:["data-state"],subtree:!0}),()=>y.disconnect()},[v]),Co(Wc.Provider,{value:{registerTrigger:u},children:Co(rt.List,{ref:(p)=>{if(s.current=p,typeof n==="function")n(p);else if(n)n.current=p},className:a(Dc({size:i}),e),...o,children:[d&&Co("span",{"aria-hidden":"true",className:a("absolute rounded-[calc(var(--radius)-2px)] bg-background shadow-sm",!f.current&&"transition-[left,width] duration-[var(--motion-duration-medium)] ease-[var(--motion-ease-emphasized)]"),style:{left:d.left,width:d.width,top:"4px",bottom:"4px"}},void 0,!1,void 0,this),r]},void 0,!0,void 0,this)},void 0,!1,void 0,this)});Uc.displayName=rt.List.displayName;var $c=Bn(({className:e,size:t,value:r,...o},n)=>{let i=c(t),{registerTrigger:s}=Lb(Wc),l=Pa(null);return Dn(()=>{return s(r,l.current),()=>s(r,null)},[r,s]),Co(rt.Trigger,{ref:(d)=>{if(l.current=d,typeof n==="function")n(d);else if(n)n.current=d},value:r,className:a(_c({size:i}),e),...o},void 0,!1,void 0,this)});$c.displayName=rt.Trigger.displayName;var Kc=Bn(({className:e,...t},r)=>Co(rt.Content,{ref:r,className:a(Gc(),e),...t},void 0,!1,void 0,this));Kc.displayName=rt.Content.displayName;import{cva as Vb}from"class-variance-authority";import{forwardRef as Fb}from"react";import{jsxDEV as Ob}from"react/jsx-dev-runtime";var zo={default:"default",error:"error",success:"success"},Ur={sm:"sm",md:"md",lg:"lg",xl:"xl"},Yc=Vb("gs-interactive 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:{[zo.default]:"focus-visible:ring-primary",[zo.error]:"border-destructive focus-visible:ring-destructive",[zo.success]:"border-success focus-visible:ring-success"},size:{[Ur.sm]:"min-h-[64px] px-2 py-1.5 text-xs",[Ur.md]:"min-h-[96px] px-3 py-2",[Ur.lg]:"min-h-[112px] px-4 py-2.5",[Ur.xl]:"min-h-[128px] px-4 py-3 text-base"}},defaultVariants:{status:zo.default,size:Ur.md}}),Xc=Fb(({className:e,status:t=zo.default,size:r=Ur.md,fullWidth:o=!1,noResize:n=!1,disabled:i,...s},l)=>{let d=c(r);return Ob("textarea",{ref:l,className:a(Yc({status:t,size:d}),i&&"bg-muted",o&&"w-full",n&&"resize-none",e),disabled:i,...s},void 0,!1,void 0,this)});Xc.displayName="Textarea";import{cva as Dt}from"class-variance-authority";import{forwardRef as _t}from"react";import{jsxDEV as dt}from"react/jsx-dev-runtime";var Zc=Dt("relative flex flex-col"),Jc=Dt(["group relative flex pb-8 last:pb-0","transition-opacity duration-300 ease-[cubic-bezier(0.22,1,0.36,1)]"],{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}}),qc=Dt(["absolute bottom-0 w-0.5 rounded-full","transition-[background-color,opacity,height] duration-300 ease-[cubic-bezier(0.22,1,0.36,1)]"],{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-[11px] top-7",md:"left-[15px] top-9",lg:"left-[21px] top-12",xl:"left-[25px] top-14"},animated:{true:"gs-timeline-connector-animated",false:""}},defaultVariants:{variant:"default",size:"md",animated:!0}}),Qc=Dt(["relative z-10 flex shrink-0 items-center justify-center rounded-full border-2","transition-[color,background-color,border-color,box-shadow] duration-200 ease-[cubic-bezier(0.22,1,0.36,1)]","[&>svg]:shrink-0"],{variants:{variant:{default:["border-border/80 bg-card text-muted-foreground","shadow-[0_1px_3px_rgba(0,0,0,0.12),0_0_0_2px_rgba(0,0,0,0.04)]","hover:border-border hover:shadow-[0_2px_6px_rgba(0,0,0,0.16),0_0_0_2px_rgba(0,0,0,0.06)]"],success:["border-success/60 bg-success/10 text-success","shadow-[0_1px_4px_rgba(0,0,0,0.1),0_0_0_2px_rgba(var(--success-rgb,34,197,94),0.2)]","hover:bg-success/15 hover:border-success/70 hover:shadow-[0_2px_8px_rgba(0,0,0,0.12),0_0_0_3px_rgba(var(--success-rgb,34,197,94),0.25)]"],warning:["border-warning/60 bg-warning/10 text-warning","shadow-[0_1px_4px_rgba(0,0,0,0.1),0_0_0_2px_rgba(var(--warning-rgb,234,179,8),0.2)]","hover:bg-warning/15 hover:border-warning/70 hover:shadow-[0_2px_8px_rgba(0,0,0,0.12),0_0_0_3px_rgba(var(--warning-rgb,234,179,8),0.25)]"],error:["border-destructive/60 bg-destructive/10 text-destructive","shadow-[0_1px_4px_rgba(0,0,0,0.1),0_0_0_2px_rgba(var(--destructive-rgb,239,68,68),0.2)]","hover:bg-destructive/15 hover:border-destructive/70 hover:shadow-[0_2px_8px_rgba(0,0,0,0.12),0_0_0_3px_rgba(var(--destructive-rgb,239,68,68),0.25)]"],info:["border-info/60 bg-info/10 text-info","shadow-[0_1px_4px_rgba(0,0,0,0.1),0_0_0_2px_rgba(var(--info-rgb,59,130,246),0.2)]","hover:bg-info/15 hover:border-info/70 hover:shadow-[0_2px_8px_rgba(0,0,0,0.12),0_0_0_3px_rgba(var(--info-rgb,59,130,246),0.25)]"],primary:["border-primary/60 bg-primary/10 text-primary","shadow-[0_1px_4px_rgba(0,0,0,0.1),0_0_0_2px_rgba(var(--primary-rgb,99,102,241),0.2)]","hover:bg-primary/15 hover:border-primary/70 hover:shadow-[0_2px_8px_rgba(0,0,0,0.12),0_0_0_3px_rgba(var(--primary-rgb,99,102,241),0.25)]"]},size:{sm:"h-6 w-6 [&>svg]:size-3",md:"h-8 w-8 [&>svg]:size-4",lg:"h-11 w-11 [&>svg]:size-5",xl:"h-14 w-14 [&>svg]:size-6"},pulse:{true:"gs-timeline-dot-pulse-enabled gs-timeline-dot-pulse",false:""},animated:{true:"gs-timeline-dot-animated",false:""}},defaultVariants:{variant:"default",size:"md",pulse:!1,animated:!0}}),Ec=Dt("flex flex-col gap-1 pt-0.5 min-w-0 transition-opacity duration-200 ease-[cubic-bezier(0.22,1,0.36,1)]"),jc=Dt("font-semibold text-foreground leading-tight transition-colors duration-200 ease-[cubic-bezier(0.22,1,0.36,1)]",{variants:{size:{sm:"text-sm",md:"text-base",lg:"text-lg",xl:"text-xl"}},defaultVariants:{size:"md"}}),eu=Dt("text-muted-foreground transition-colors duration-200 ease-[cubic-bezier(0.22,1,0.36,1)]",{variants:{size:{sm:"text-sm",md:"text-sm",lg:"text-base",xl:"text-lg"}},defaultVariants:{size:"md"}}),tu=Dt("font-medium text-muted-foreground/70 transition-colors duration-200 ease-[cubic-bezier(0.22,1,0.36,1)]",{variants:{size:{sm:"text-sm",md:"text-sm",lg:"text-base",xl:"text-base"}},defaultVariants:{size:"md"}});var ru=_t(({className:e,...t},r)=>{return dt("div",{ref:r,role:"list","aria-label":"Timeline events",className:a(Zc(),e),...t},void 0,!1,void 0,this)});ru.displayName="Timeline";var ou=_t(({className:e,align:t,isLast:r,animated:o=!0,...n},i)=>{return dt("div",{ref:i,role:"listitem",className:a(Jc({align:t,animated:o}),e),"data-last":r,...n},void 0,!1,void 0,this)});ou.displayName="TimelineItem";var au=_t(({className:e,variant:t,size:r,animated:o=!0,...n},i)=>{let s=c(r);return dt("div",{ref:i,className:a(qc({variant:t,size:s,animated:o}),e),...n},void 0,!1,void 0,this)});au.displayName="TimelineConnector";var nu=_t(({className:e,variant:t,size:r,icon:o,children:n,pulse:i=!1,animated:s=!0,...l},d)=>{let m=c(r);return dt("div",{ref:d,className:a(Qc({variant:t,size:m,pulse:i,animated:s}),e),"aria-hidden":"true",...l,children:o||n||dt(Bb,{},void 0,!1,void 0,this)},void 0,!1,void 0,this)});nu.displayName="TimelineDot";var iu=_t(({className:e,...t},r)=>{return dt("div",{ref:r,className:a(Ec(),e),...t},void 0,!1,void 0,this)});iu.displayName="TimelineContent";var su=_t(({className:e,size:t,...r},o)=>{let n=c(t);return dt("h4",{ref:o,className:a(jc({size:n}),e),...r},void 0,!1,void 0,this)});su.displayName="TimelineTitle";var lu=_t(({className:e,size:t,...r},o)=>{let n=c(t);return dt("p",{ref:o,className:a(eu({size:n}),e),...r},void 0,!1,void 0,this)});lu.displayName="TimelineDescription";var mu=_t(({className:e,size:t,...r},o)=>{let n=c(t);return dt("time",{ref:o,className:a(tu({size:n}),e),...r},void 0,!1,void 0,this)});mu.displayName="TimelineTime";function Bb(){return dt("span",{className:"size-2 rounded-full bg-current"},void 0,!1,void 0,this)}import{cva as du}from"class-variance-authority";var $r={default:"default",success:"success",info:"info",warning:"warning",error:"error"},Ye={sm:"sm",md:"md",lg:"lg"},_n=du("pointer-events-auto relative flex w-full items-center overflow-hidden rounded-[var(--radius)] border shadow-[var(--shadow-md)]",{variants:{variant:{[$r.default]:"border-border bg-card text-card-foreground",[$r.success]:"border-success/30 bg-card text-card-foreground",[$r.info]:"border-info/30 bg-card text-card-foreground",[$r.warning]:"border-warning/30 bg-card text-card-foreground",[$r.error]:"border-destructive/30 bg-card text-card-foreground"},size:{[Ye.sm]:"gap-2 p-3",[Ye.md]:"gap-3 p-4",[Ye.lg]:"gap-3.5 p-5"}},defaultVariants:{variant:$r.default,size:Ye.md}}),Gn=du("gs-interactive 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:opacity-50",{variants:{size:{[Ye.sm]:"h-6 px-2 text-xs",[Ye.md]:"h-7 px-2.5 text-xs",[Ye.lg]:"h-8 px-3 text-sm"}},defaultVariants:{size:Ye.md}});import{AlertTriangle as Xb,CheckCircle2 as Zb,Info as gu,X as Jb,XCircle as qb}from"lucide-react";import{forwardRef as Qb,useCallback as za,useEffect as Sa,useRef as Yn,useState as Xn}from"react";import{useSyncExternalStore as Db}from"react";var _b=5,cu=5000,Gb=500,Wn=0;function Wb(){return Wn=(Wn+1)%Number.MAX_SAFE_INTEGER,`toast-${Wn}-${Date.now()}`}var Un=new Set,Xe=[],ir=new Map,No=new Map,wo=!1,nr=new Map;function xa(){for(let e of Un)e()}function pu(){return Xe}function Ub(e){return Un.add(e),()=>{Un.delete(e)}}function $n(e,t){if(wo){nr.set(e,t);return}clearTimeout(ir.get(e));let r=Date.now(),o=setTimeout(()=>{ir.delete(e),nr.delete(e),Ca(e)},t);ir.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 $b(e){clearTimeout(No.get(e));let t=setTimeout(()=>{Xe=Xe.filter((r)=>r.id!==e),No.delete(e),xa()},Gb);No.set(e,t)}function So(e){let t=e.id??Wb(),r=e.duration??cu;if(Xe.find((i)=>i.id===t))return Xe=Xe.map((i)=>i.id===t?{...i,...e,id:t,open:!0,createdAt:Date.now()}:i),clearTimeout(No.get(t)),No.delete(t),$n(t,r),xa(),t;return Xe=[{...e,id:t,variant:e.variant??"default",dismissible:e.dismissible??!0,open:!0,createdAt:Date.now()},...Xe].slice(0,_b),$n(t,r),xa(),t}function Ca(e){clearTimeout(ir.get(e)),ir.delete(e),nr.delete(e),Xe=Xe.map((t)=>t.id===e?{...t,open:!1}:t),xa(),$b(e)}function uu(){for(let e of Xe)Ca(e.id)}function Kb(){if(wo)return;wo=!0;for(let[e,t]of ir)clearTimeout(t),ir.delete(e)}function Yb(){if(!wo)return;wo=!1;for(let e of Xe)if(e.open){let t=nr.get(e.id)??cu;$n(e.id,t)}}var fu=Object.assign((e)=>So(e),{success:(e,t)=>So({...t,variant:"success",title:e}),info:(e,t)=>So({...t,variant:"info",title:e}),warning:(e,t)=>So({...t,variant:"warning",title:e}),error:(e,t)=>So({...t,variant:"error",title:e}),dismiss:Ca,dismissAll:uu});function Kn(){return{toasts:Db(Ub,pu,pu),toast:fu,dismiss:Ca,dismissAll:uu,pauseAll:Kb,resumeAll:Yb}}import{jsxDEV as ke}from"react/jsx-dev-runtime";var vu=10,yu=0.05,Eb=200,bu="cubic-bezier(0.2, 0.8, 0.2, 1)",jb="cubic-bezier(0.22, 1, 0.36, 1)",eT={"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"},tT={success:(e)=>ke(Zb,{className:a("mt-0.5 shrink-0 text-success",e==="sm"?"size-4":"size-[18px]")},void 0,!1,void 0,this),info:(e)=>ke(gu,{className:a("mt-0.5 shrink-0 text-info",e==="sm"?"size-4":"size-[18px]")},void 0,!1,void 0,this),warning:(e)=>ke(Xb,{className:a("mt-0.5 shrink-0 text-warning",e==="sm"?"size-4":"size-[18px]")},void 0,!1,void 0,this),error:(e)=>ke(qb,{className:a("mt-0.5 shrink-0 text-destructive",e==="sm"?"size-4":"size-[18px]")},void 0,!1,void 0,this),default:(e)=>ke(gu,{className:a("mt-0.5 shrink-0 text-muted-foreground",e==="sm"?"size-4":"size-[18px]")},void 0,!1,void 0,this)};function rT(e,t,r,o,n){let i=e<o,s=r?n:e*vu,l=r?1:i?1-e*yu:1-o*yu,d=i||r?1:0,m=t-e;return{offset:s,scale:l,opacity:d,zIndex:m}}var Tu=Qb(({position:e="bottom-right",gap:t=12,visibleCount:r=3,size:o=Ye.md,className:n,...i},s)=>{let{toasts:l,dismiss:d,pauseAll:m,resumeAll:f}=Kn(),u=c(o)??Ye.md,[v,p]=Xn(!1),[y,z]=Xn({}),M=Yn(null),w=Yn(void 0),h=e.startsWith("bottom"),b=za((P)=>{if(M.current=P,typeof s==="function")s(P);else if(s)s.current=P},[s]),C=za(()=>{clearTimeout(w.current),p(!0),m()},[m]),B=za(()=>{clearTimeout(w.current),w.current=setTimeout(()=>{p(!1),f()},Eb)},[f]);Sa(()=>{return()=>clearTimeout(w.current)},[]);let R=za((P,F)=>{z((j)=>{if(j[P]===F)return j;return{...j,[P]:F}})},[]);if(Sa(()=>{let P=new Set(l.map((F)=>F.id));z((F)=>{let j=!1,H={};for(let[Y,g]of Object.entries(F))if(P.has(Y))H[Y]=g;else j=!0;return j?H:F})},[l]),l.length===0)return null;let A=l.filter((P)=>P.open),S=new Map,I=0;for(let[P,F]of A.entries()){let j=y[F.id]??0;S.set(F.id,rT(P,A.length,v,r,I)),I+=j+t}let K=A[0],$=(K?y[K.id]??0:0)+Math.min(A.length-1,r-1)*vu,N=I-(A.length>0?t:0),V=v?N:$;return ke("ol",{ref:b,role:"region","aria-label":"Notifications",tabIndex:-1,onMouseEnter:C,onMouseLeave:B,className:a("pointer-events-auto fixed z-[100] w-full max-w-[400px] outline-none",eT[e],n),style:{height:Math.max(V,0),transition:`height 400ms ${bu}`},...i,children:l.map((P)=>{let F=!P.open,j=S.get(P.id);return ke(oT,{toast:P,layout:j??{offset:0,scale:1,opacity:0,zIndex:0},isClosed:F,isBottom:h,size:u,onDismiss:d,onMeasure:R},P.id,!1,void 0,this)})},void 0,!1,void 0,this)});Tu.displayName="Toaster";function oT({toast:e,layout:t,isClosed:r,isBottom:o,size:n,onDismiss:i,onMeasure:s}){let l=Yn(null),[d,m]=Xn(!1);Sa(()=>{let y=requestAnimationFrame(()=>m(!0));return()=>cancelAnimationFrame(y)},[]),Sa(()=>{let y=l.current;if(!y)return;let z=new ResizeObserver((M)=>{for(let w of M){let h=w.borderBoxSize?.[0];if(h)s(e.id,h.blockSize)}});return z.observe(y),()=>z.disconnect()},[e.id,s]);let f=o?{bottom:0,left:0,right:0}:{top:0,left:0,right:0},u,v,p;if(!d)u=`translateY(${o?80:-80}px) scale(0.9)`,v=0,p="none";else if(r)u=`translateY(${o?80:-80}px) scale(0.95)`,v=0,p="none";else u=`translateY(${o?-t.offset:t.offset}px) scale(${t.scale})`,v=t.opacity,p="auto";return ke("li",{ref:l,"data-state":e.open?"open":"closed","data-variant":e.variant,className:"absolute list-none",style:{...f,zIndex:t.zIndex,transformOrigin:o?"center bottom":"center top",transform:u,opacity:v,pointerEvents:p,transition:[`transform 400ms ${bu}`,`opacity 250ms ${jb}`].join(", ")},children:ke("div",{className:a(_n({variant:e.variant,size:n}),"w-full"),children:[tT[e.variant]?.(n),ke("div",{className:"flex-1 space-y-0.5",children:[e.title&&ke("p",{className:a("font-semibold leading-tight",n==="sm"?"text-xs":"text-sm"),children:e.title},void 0,!1,void 0,this),e.description&&ke("p",{className:a("leading-snug text-muted-foreground",n==="sm"?"text-xs":"text-sm"),children:e.description},void 0,!1,void 0,this)]},void 0,!0,void 0,this),e.action&&ke("button",{type:"button",className:a(Gn({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&&ke("button",{type:"button",className:a("gs-interactive mt-0.5 shrink-0 rounded-[var(--radius)] p-1 text-muted-foreground 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:ke(Jb,{},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 hu from"@radix-ui/react-toggle";import{cva as aT}from"class-variance-authority";import{forwardRef as nT}from"react";import{jsxDEV as iT}from"react/jsx-dev-runtime";var Zn={default:"default",outline:"outline"},Na={sm:"sm",md:"md",lg:"lg"},wa=aT("gs-interactive 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:{[Zn.default]:"bg-transparent disabled:bg-transparent disabled:text-foreground/50",[Zn.outline]:"border-input bg-transparent hover:bg-accent hover:text-accent-foreground disabled:bg-transparent disabled:text-foreground/50 disabled:border-border/50"},size:{[Na.sm]:"h-7 px-1.5 min-w-7 text-xs",[Na.md]:"h-10 px-3 min-w-10",[Na.lg]:"h-11 px-5 min-w-11"}},defaultVariants:{variant:Zn.default,size:Na.md}}),Pu=nT(({className:e,variant:t,size:r,...o},n)=>{let i=c(r);return iT(hu.Root,{ref:n,className:a(wa({variant:t,size:i}),e),...o},void 0,!1,void 0,this)});Pu.displayName="Toggle";import*as Ra from"@radix-ui/react-toggle-group";import{cva as sT}from"class-variance-authority";import{createContext as lT,forwardRef as xu,useContext as mT}from"react";import{jsxDEV as Jn}from"react/jsx-dev-runtime";var dT={default:"default",outline:"outline"},pT={sm:"sm",md:"md",lg:"lg"},Cu=sT("flex items-center justify-center gap-1"),zu=lT({size:pT.md,variant:dT.default}),Su=xu(({className:e,variant:t,size:r,children:o,...n},i)=>{let s=c(r);return Jn(Ra.Root,{ref:i,className:a(Cu(),e),...n,children:Jn(zu.Provider,{value:{variant:t,size:s},children:o},void 0,!1,void 0,this)},void 0,!1,void 0,this)});Su.displayName="ToggleGroup";var Nu=xu(({className:e,children:t,variant:r,size:o,...n},i)=>{let s=mT(zu),l=c(o);return Jn(Ra.Item,{ref:i,className:a(wa({variant:r??s.variant,size:l??s.size}),e),...n,children:t},void 0,!1,void 0,this)});Nu.displayName="ToggleGroupItem";import{cva as wu}from"class-variance-authority";import{forwardRef as Ma}from"react";import{jsxDEV as La}from"react/jsx-dev-runtime";var ot={sm:"sm",md:"md",lg:"lg"},Ru=wu("flex items-center border-b border-border bg-background",{variants:{size:{[ot.sm]:"gap-1.5 px-3 py-1.5",[ot.md]:"gap-2 px-4 py-2",[ot.lg]:"gap-3 px-5 py-2.5"}},defaultVariants:{size:ot.md}}),Mu=Ma(({className:e,size:t=ot.md,...r},o)=>{let n=c(t);return La("div",{ref:o,role:"toolbar",className:a(Ru({size:n}),e),...r},void 0,!1,void 0,this)});Mu.displayName="Toolbar";var Lu=wu("flex items-center",{variants:{size:{[ot.sm]:"gap-1",[ot.md]:"gap-1.5",[ot.lg]:"gap-2"}},defaultVariants:{size:ot.md}}),Hu=Ma(({className:e,size:t=ot.md,...r},o)=>{let n=c(t);return La("div",{ref:o,role:"group",className:a(Lu({size:n}),e),...r},void 0,!1,void 0,this)});Hu.displayName="ToolbarGroup";var ku=Ma(({className:e,...t},r)=>{return La("div",{ref:r,role:"none",className:a("h-5 w-px shrink-0 bg-border",e),...t},void 0,!1,void 0,this)});ku.displayName="ToolbarSeparator";var Au=Ma(({className:e,...t},r)=>{return La("div",{ref:r,className:a("flex-1",e),...t},void 0,!1,void 0,this)});Au.displayName="ToolbarSpacer";import*as pt from"@radix-ui/react-tooltip";import{cva as cT}from"class-variance-authority";import{createContext as uT,forwardRef as Iu,useContext as Vu}from"react";import{jsxDEV as Ro}from"react/jsx-dev-runtime";var fT=pt.Provider,qn=uT(!1),Fu=({persistOnClick:e=!1,children:t,...r})=>Ro(qn.Provider,{value:e,children:Ro(pt.Root,{...r,children:t},void 0,!1,void 0,this)},void 0,!1,void 0,this);Fu.displayName="Tooltip";var Ou=Iu(({onClick:e,onPointerDown:t,...r},o)=>{let n=Vu(qn);return Ro(pt.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)});Ou.displayName="TooltipTrigger";var sr={sm:"sm",md:"md",lg:"lg",xl:"xl"},Bu=cT("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:{[sr.sm]:"px-2 py-1 text-xs",[sr.md]:"px-3 py-1.5 text-xs",[sr.lg]:"px-4 py-2 text-sm",[sr.xl]:"px-5 py-2.5 text-sm"}},defaultVariants:{size:sr.md}}),Du=Iu(({className:e,sideOffset:t=4,onPointerDownOutside:r,size:o=sr.md,...n},i)=>{let s=Vu(qn),l=c(o);return Ro(pt.Portal,{children:Ro(pt.Content,{ref:i,sideOffset:t,className:a(Bu({size:l}),e),onPointerDownOutside:s?(d)=>{d.preventDefault(),r?.(d)}:r,...n},void 0,!1,void 0,this)},void 0,!1,void 0,this)});Du.displayName="TooltipContent";import{createContext as gT,useCallback as lr,useContext as yT,useEffect as Aa,useLayoutEffect as vT,useMemo as Ha,useRef as Gt,useState as _u}from"react";import{jsxDEV as bT}from"react/jsx-dev-runtime";var Gu=typeof window<"u"?vT:Aa,En=gT(null);function ka(e,t){return e.theme===t.theme&&e.colorScheme===t.colorScheme}var mr=({children:e,value:t,initialState:r,onChange:o,onStateChange:n,transformState:i,readState:s,writeState:l,syncWithSystem:d=!0,enableTransition:m=!1,transitionDuration:f,defaultTheme:u,defaultColorScheme:v,themes:p,attribute:y,colorSchemeAttribute:z,darkClassName:M,storage:w})=>{let h=Ha(()=>Kr({defaultTheme:u,defaultColorScheme:v,themes:p,attribute:y,colorSchemeAttribute:z,darkClassName:M,storage:w}),[u,v,p,y,z,M,w]),[b,C]=_u(()=>ct(r,h)),[B,R]=_u(Oa),S=Ha(()=>t?ct(t,h):null,[t,h])??b,I=Ha(()=>({...S,resolvedColorScheme:Qn(S.colorScheme,B)}),[S,B]),K=t!==void 0,O=Gt(S);O.current=S;let $=Gt(!1),N=Gt(!1),V=Gt(!1),P=Gt(S),F=Gt(null),j=Gt(m);j.current=m;let H=Gt(f);H.current=f;let Y=lr((X)=>{return Va(X)},[]),g=lr((X,ue)=>{Fa(X,ue)},[]),T=s??Y,L=l??g;Aa(()=>{if(!d||typeof window>"u"||typeof window.matchMedia!=="function")return;let X=window.matchMedia("(prefers-color-scheme: dark)"),ue=()=>{R(X.matches?ut.dark:ut.light)};return ue(),X.addEventListener("change",ue),()=>X.removeEventListener("change",ue)},[d]),Aa(()=>{if(K)return;C((X)=>{let ue=ct(X,h);return ka(X,ue)?X:ue})},[h,K]),Gu(()=>{if(K||$.current)return;$.current=!0;let X=T(h);if(!X)return;let ue=O.current,k=ct(X,h),W={reason:"hydrate",previousState:ue},Q=i?ct(i(k,W),h):k;if(ka(ue,Q))return;F.current=W,C(Q),o?.(Q,W),n?.(Q,W)},[h,K,o,n,T,i]),Gu(()=>{if(typeof document>"u")return;let X=!V.current;if(V.current=!0,!X&&j.current&&!window.matchMedia("(prefers-reduced-motion: reduce)").matches){let k=H.current??200,W=document.createElement("style");W.setAttribute("data-gs-theme-transition",""),W.textContent=`*, *::before, *::after { transition: color ${k}ms ease, background-color ${k}ms ease, border-color ${k}ms ease, box-shadow ${k}ms ease, fill ${k}ms ease, stroke ${k}ms ease !important; }`,document.head.appendChild(W),Ia(document.documentElement,I,h);let Q=requestAnimationFrame(()=>{setTimeout(()=>W.remove(),k)});return()=>{cancelAnimationFrame(Q),W.remove()}}Ia(document.documentElement,I,h);return},[h,I]),Aa(()=>{if(typeof window>"u")return;if(!N.current){N.current=!0,P.current=S;return}let X=P.current;if(ka(X,S))return;let ue=F.current??{reason:"set-state",previousState:X};F.current=null,L(S,h,ue),P.current=S},[h,S,L]);let re=lr((X,ue)=>{let k=O.current,W=typeof X==="function"?X(k):X,Q=ct({theme:W.theme??k.theme,colorScheme:W.colorScheme??k.colorScheme},h),fe={reason:ue,previousState:k},Ie=i?ct(i(Q,fe),h):Q;if(ka(k,Ie))return;if(F.current=fe,!K)C(Ie);o?.(Ie,fe),n?.(Ie,fe)},[h,K,o,n,i]),ee=lr((X)=>{re(X,"set-state")},[re]),oe=lr((X)=>{re({theme:X},"set-theme")},[re]),te=lr((X)=>{re({colorScheme:X},"set-color-scheme")},[re]),de=lr(()=>{let X=I.resolvedColorScheme===ut.dark?ut.light:ut.dark;re({colorScheme:X},"toggle-color-scheme")},[I.resolvedColorScheme,re]),dr=Ha(()=>({theme:S.theme,colorScheme:S.colorScheme,resolvedColorScheme:I.resolvedColorScheme,state:S,resolvedState:I,contract:h,themes:h.themes,setTheme:oe,setColorScheme:te,setState:ee,toggleColorScheme:de}),[S,I,h,oe,te,ee,de]);return bT(En.Provider,{value:dr,children:e},void 0,!1,void 0,this)};mr.displayName="ThemeProvider";var Ba=()=>{let e=yT(En);if(!e)throw Error("useTheme must be used within a ThemeProvider");return e};import{jsxDEV as Da}from"react/jsx-dev-runtime";function Ga(e){return typeof e==="object"&&e!==null}function ht(e){return typeof e==="string"&&e.trim().length>0}function Wu(e){if(!Ga(e))return!1;return Object.values(e).every(ht)}function $u(e){if(!Ga(e))return!1;if(!Wu(e.light))return!1;if(e.dark===void 0)return!0;return Wu(e.dark)}function Ku(e){return Ga(e)&&ht(e.cssText)}function TT(e){return Ga(e)&&ht(e.theme)}function jn(e){return Error(`Invalid theme registry definition: ${e}`)}function Uu(e){let t=new Set,r=[];for(let o of e){if(!ht(o)||t.has(o))continue;t.add(o),r.push(o)}return r}function hT(e){return e.filter(ht).join(`
5
5
 
6
- `)}function fT(e){let t=[],r=[],o=[];for(let[n,i]of Object.entries(e)){if(!ht(n))continue;if(t.push(n),ht(i)){o.push(i);continue}if($u(i)){o.push(i.cssText);continue}if(Uu(i)){r.push({theme:n,light:i.light,dark:i.dark});continue}throw En(`record key "${n}" has unsupported value shape`)}return{themeNames:t,tokenDefinitions:r,cssBlocks:o}}function gT(e){let t=[],r=[],o=[];for(let n of e){if(ht(n)){t.push(n);continue}if(!cT(n))throw En("array entry must be a theme name or an object with `theme`");let i=n.theme;if(t.push(i),$u(n)){o.push(n.cssText);continue}if(Uu(n)){r.push({theme:i,light:n.light,dark:n.dark});continue}throw En(`array entry "${i}" has unsupported value shape`)}return{themeNames:t,tokenDefinitions:r,cssBlocks:o}}function yT(e){if(Array.isArray(e))return gT(e);return fT(e)}function Ku(e){return e}function jn(e){let{themes:t,cssText:r,...o}=e,n=yT(t),i=Wu(n.themeNames),s=Kr({...o,themes:i}),l=Da({themes:n.tokenDefinitions,attribute:s.attribute,darkClassName:s.darkClassName}),d=uT([l,...n.cssBlocks,r??""]),m=Wu(s.themes);if(m.length===0)m.push(s.defaultTheme);return{defaultTheme:s.defaultTheme,themes:m,cssText:d,contract:s}}function Ga({registry:e,children:t,...r}){return Ba(pr,{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)}Ga.displayName="ThemeRegistryProvider";function Wa({registry:e,id:t,nonce:r,media:o}){if(!ht(e.cssText))return null;return Ba("style",{id:t,nonce:r,media:o,children:e.cssText},void 0,!1,void 0,this)}Wa.displayName="ThemeStyles";function Yu(e){let t=jn(e),{themes:r,cssText:o,...n}=e;return{registry:t,provider:({children:d,...m})=>{return Ba(Ga,{registry:t,...n,...m,children:d},void 0,!1,void 0,this)},styles:(d={})=>{return Ba(Wa,{registry:t,...d},void 0,!1,void 0,this)},useTheme:()=>{return Oa()}}}import{jsxDEV as mf}from"react/jsx-dev-runtime";function df({children:e,density:t=Lo,defaultTheme:r="ghostly-solutions",defaultColorScheme:o=ut.system,...n}){return mf(pr,{defaultTheme:r,defaultColorScheme:o,...n,children:mf(Ho,{density:t,children:e},void 0,!1,void 0,this)},void 0,!1,void 0,this)}df.displayName="UIProvider";import*as Ut from"react";var vT=()=>{};function bT({prop:e,defaultProp:t,onChange:r=vT}){let[o,n]=TT({defaultProp:t,onChange:r}),i=e!==void 0,s=i?e:o,l=Ut.useCallback((d)=>{if(i){let f=typeof d==="function"?d(e):d;if(f!==e)r(f)}else n(d)},[i,e,n,r]);return[s,l]}function TT({defaultProp:e,onChange:t}){let r=Ut.useState(e),[o]=r,n=Ut.useRef(o),i=t;return Ut.useEffect(()=>{if(n.current!==o)i?.(o),n.current=o},[o,i]),r}export{Va as writeThemeStateToBrowserStorage,$n as useToast,Oa as useTheme,no as usePlatform,Sv as useOverlay,An as useHotkey,ro as useFormField,c as useDensitySize,cf as useDensity,bT as useControllableState,ao as useComposedRefs,Cg as useCommandShortcut,an as useCommand,Ou as tooltipContentVariants,wu as toolbarVariants,Mu as toolbarGroupVariants,Na as toggleVariants,xu as toggleGroupVariants,Dn as toastVariants,_n as toastActionVariants,uu as toast,Xc as timelineVariants,Ec as timelineTitleVariants,eu as timelineTimeVariants,Zc as timelineItemVariants,Jc as timelineDotVariants,jc as timelineDescriptionVariants,Qc as timelineContentVariants,qc as timelineConnectorVariants,Kc as textareaVariants,Dc as tabsTriggerVariants,Bc as tabsListVariants,_c as tabsContentVariants,Pc as tableVariants,Sc as tableRowVariants,xc as tableHeaderVariants,Nc as tableHeadVariants,zc as tableFooterVariants,hc as tableContainerVariants,wc as tableCellVariants,Rc as tableCaptionVariants,Cc as tableBodyVariants,vc as switchVariants,rc as stepperVariants,oc as stepVariants,sc as stepTitleVariants,ac as stepIndicatorVariants,lc as stepDescriptionVariants,ic as stepContentVariants,nc as stepConnectorVariants,ec as statCardVariants,va as spotlightStatusVariants,ba as spotlightStatusTitleVariants,Qp as spotlightStatusDescriptionVariants,Jp as spotlightShortcutVariants,Up as spotlightResultsVariants,Bp as spotlightPanelVariants,Op as spotlightOverlayVariants,Kp as spotlightOptionVariants,Zp as spotlightOptionTitleVariants,Yp as spotlightOptionIconVariants,qp as spotlightOptionDescriptionVariants,Xp as spotlightOptionContentVariants,ya as spotlightKbdVariants,Gp as spotlightInputVariants,Wp as spotlightIconVariants,_p as spotlightHeaderVariants,$p as spotlightGroupLabelVariants,Dp as spotlightDrawerPanelVariants,Mp as sliderVariants,Lp as sliderTrackVariants,kp as sliderThumbVariants,Hp as sliderRangeVariants,xp as skeletonVariants,Cp as skeletonTextVariants,Sp as skeletonButtonVariants,zp as skeletonAvatarVariants,md as sheetOverlayVariants,dd as sheetContentVariants,tf as serializeThemeState,hp as separatorVariants,up as selectTriggerVariants,fp as selectContentVariants,rp as segmentedControlVariants,ap as segmentedControlLabelVariants,op as segmentedControlItemVariants,qd as scrollBarVariants,Jd as scrollBarThumbVariants,Zd as scrollAreaVariants,nf as resolveThemeState,Gd as resizablePanelVariants,_d as resizablePanelGroupVariants,Wd as resizableHandleVariants,Ud as resizableHandleIconVariants,of as readThemeStateFromCookieHeader,Ia as readThemeStateFromBrowserStorage,Od as radioItemVariants,Fd as radioGroupVariants,Hd as progressVariants,kd as progressIndicatorVariants,Ar as popoverContentVariants,rf as parseThemeState,Hn as parseHotkey,Td as paginationVariants,jo as paginationLinkVariants,Pd as paginationItemVariants,xd as paginationEllipsisVariants,hd as paginationContentVariants,od as otpSlotVariants,id as otpSeparatorVariants,nd as otpPlaceholderVariants,ad as otpInputVariants,rd as otpGroupVariants,td as otpContainerVariants,ct as normalizeThemeState,Km as navigationMenuViewportVariants,Gm as navigationMenuVariants,Um as navigationMenuTriggerVariants,Wm as navigationMenuListVariants,iv as navigationMenuLinkVariants,Ym as navigationMenuIndicatorVariants,$m as navigationMenuContentVariants,Bm as multiselectTriggerVariants,Ep as matchesQuery,kn as matchHotkey,Am as labelVariants,Lm as kbdVariants,hr as isSameDay,Rm as inputVariants,Sm as hoverCardContentVariants,zT as hotkey,sf as getThemeRootProps,Fa as getSystemColorScheme,ST as formatHotkeyTokens,io as formatHotkey,bm as formFieldVariants,mm as fileUploadVariants,fn as fileUploadTextVariants,pm as fileUploadListVariants,cm as fileUploadItemVariants,fm as fileUploadItemSizeVariants,gm as fileUploadItemRemoveVariants,um as fileUploadItemNameVariants,dm as fileUploadIconVariants,tm as errorBoundaryVariants,om as errorBoundaryTitleVariants,rm as errorBoundaryIconVariants,im as errorBoundaryDetailsVariants,am as errorBoundaryDescriptionVariants,nm as errorBoundaryActionsVariants,Zl as emptyStateVariants,Jl as emptyStateTitleVariants,ql as emptyStateIconVariants,Ql as emptyStateDescriptionVariants,El as emptyStateActionsVariants,Fl as dropdownMenuShortcutVariants,Vl as dropdownMenuSeparatorVariants,Al as dropdownMenuRadioItemVariants,Il as dropdownMenuLabelVariants,un as dropdownMenuItemVariants,cn as dropdownMenuContentVariants,kl as dropdownMenuCheckboxItemVariants,xl as drawerOverlayVariants,zl as drawerHandleVariants,Cl as drawerContentVariants,bl as dialogContentVariants,gn as detectPlatform,Ku as defineThemes,pR as cva,Da as createThemesCss,Yu as createThemeSystem,af as createThemeSetCookieHeader,jn as createThemeRegistry,lf as createThemeCss,Kr as createThemeContract,xT as createOptionalContext,PT as createContext,sl as contextMenuShortcutVariants,il as contextMenuSeparatorVariants,al as contextMenuRadioItemVariants,nl as contextMenuLabelVariants,ln as contextMenuItemVariants,sn as contextMenuContentVariants,ol as contextMenuCheckboxItemVariants,hT as composeRefs,Ks as commandShortcutVariants,$s as commandSeparatorVariants,Os as commandOverlayVariants,Ys as commandLoadingVariants,Ds as commandListVariants,Us as commandItemVariants,Bs as commandInputVariants,Gs as commandGroupVariants,Ws as commandGroupHeadingVariants,_s as commandEmptyVariants,Fs as commandDialogVariants,As as collapsibleContentVariants,zs as codeBlockVariants,Ms as codeBlockPreVariants,Ls as codeBlockLineVariants,Hs as codeBlockLineNumberVariants,Ns as codeBlockLanguageVariants,Ss as codeBlockHeaderVariants,ws as codeBlockCopyVariants,Rs as codeBlockContentVariants,a as cn,Ps as checkboxVariants,us as cardVariants,ds as calendarWeekdayVariants,is as calendarVariants,ls as calendarTitleVariants,rn as calendarNavButtonVariants,ss as calendarHeaderVariants,ms as calendarGridVariants,ps as calendarDayVariants,Xr as buttonVariants,vi as buttonIconVariants,ts as buttonGroupVariants,bi as buttonBadgeVariants,Yi as breadcrumbSeparatorVariants,Ki as breadcrumbPageVariants,Wi as breadcrumbListVariants,$i as breadcrumbLinkVariants,Ui as breadcrumbItemVariants,Xi as breadcrumbEllipsisVariants,Bi as badgeVariants,Vi as avatarVariants,di as alertVariants,pi as alertTitleVariants,zi as alertDialogOverlayVariants,Si as alertDialogContentVariants,ci as alertDescriptionVariants,ai as accordionTriggerVariants,oi as accordionItemVariants,ni as accordionContentVariants,hf as XCircleIcon,ft as Variant,df as UIProvider,Fu as TooltipTrigger,mr as TooltipSize,sT as TooltipProvider,Bu as TooltipContent,Vu as Tooltip,ku as ToolbarSpacer,ot as ToolbarSize,Hu as ToolbarSeparator,Lu as ToolbarGroup,Ru as Toolbar,Su as ToggleGroupItem,zu as ToggleGroup,hu as Toggle,bu as Toaster,Ye as ToastSize,iu as TimelineTitle,lu as TimelineTime,ru as TimelineItem,au as TimelineDot,su as TimelineDescription,nu as TimelineContent,ou as TimelineConnector,tu as Timeline,Wa as ThemeStyles,Ga as ThemeRegistryProvider,pr as ThemeProvider,Yc as Textarea,Uc as TabsTrigger,Wc as TabsList,$c as TabsContent,wb as Tabs,we as TableSize,Ac as TableRow,Lc as TableHeader,Ic as TableHead,kc as TableFooter,Vc as TableCell,Fc as TableCaption,Hc as TableBody,Mc as Table,ef as THEME_COOKIE_NAME,Zu as THEME_COLOR_SCHEME_ATTR,Xu as THEME_ATTR,Wr as SwitchStatus,He as SwitchSize,bc as Switch,mc as Stepper,fc as StepTitle,pc as StepIndicator,gc as StepDescription,uc as StepContent,cc as StepConnector,dc as Step,ar as StatCardTrend,Ke as StatCardSize,tc as StatCard,Gr as SpotlightStatus,P as SpotlightSize,jp as Spotlight,ur as SpinnerSize,Ct as Spinner,Ap as Slider,Np as SkeletonText,Te as SkeletonSize,Rp as SkeletonButton,wp as SkeletonAvatar,Po as Skeleton,Ve as Size,vv as SheetTrigger,fd as SheetTitle,ne as SheetSize,pd as SheetPortal,Tn as SheetOverlay,cd as SheetHeader,ud as SheetFooter,gd as SheetDescription,Qo as SheetContent,bv as SheetClose,bn as Sheet,ho as SeparatorOrientation,Pp as Separator,Qv as SelectValue,gp as SelectTrigger,_r as SelectStatus,oe as SelectSize,Tp as SelectSeparator,vp as SelectLabel,bp as SelectItem,Jv as SelectGroup,bo as SelectContentWidthMode,Yv as SelectContentAlign,yp as SelectContent,qv as Select,be as SegmentedControlSize,lp as SegmentedControlLabelItem,sp as SegmentedControlItem,ip as SegmentedControl,Cn as ScrollBar,Qd as ScrollArea,Ju as STORAGE_VERSION,Eu as STORAGE_THEME_STATE_KEY,Qu as STORAGE_PREFIX,ju as STORAGE_DENSITY_KEY,$d as ResizablePanelGroup,Kd as ResizablePanel,Yd as ResizableHandle,Or as RadioStatus,tt as RadioSize,Dd as RadioGroupItem,Bd as RadioGroup,Ad as Progress,Ky as PopoverTrigger,kr as PopoverSize,Fm as PopoverContent,Xy as PopoverClose,Yy as PopoverAnchor,$y as Popover,$e as PaginationSize,wd as PaginationPrevious,Rd as PaginationNext,Nd as PaginationLink,Sd as PaginationItem,Md as PaginationEllipsis,zd as PaginationContent,Cd as Pagination,bd as OverlayProvider,sd as OTPInput,yn as NavigationMenuViewport,qm as NavigationMenuTrigger,je as NavigationMenuSize,Zm as NavigationMenuList,mv as NavigationMenuLink,lv as NavigationMenuItem,Qm as NavigationMenuIndicator,Jm as NavigationMenuContent,Xm as NavigationMenu,ve as MultiselectSize,Dm as Multiselect,Gy as Loader,Hr as LabelSize,Im as Label,CT as Key,Lr as KbdSize,Hm as Kbd,Mm as Input,Tf as InfoIcon,fr as IconSize,xy as HoverCardTrigger,Mr as HoverCardSize,Nm as HoverCardContent,Py as HoverCard,Jr as GroupOrientation,We as FormFieldSize,hm as FormFieldLabel,Cm as FormFieldError,xm as FormFieldDescription,zm as FormFieldControl,Tm as FormField,ym as FileUpload,sm as ErrorBoundary,jl as EmptyState,ry as DropdownMenuTrigger,Dl as DropdownMenuSubTrigger,_l as DropdownMenuSubContent,ny as DropdownMenuSub,Xl as DropdownMenuShortcut,Yl as DropdownMenuSeparator,$l as DropdownMenuRadioItem,iy as DropdownMenuRadioGroup,ay as DropdownMenuPortal,Kl as DropdownMenuLabel,Xo as DropdownMenuItemVariant,Wl as DropdownMenuItem,oy as DropdownMenuGroup,Gl as DropdownMenuContent,Ul as DropdownMenuCheckboxItem,Bl as DropdownMenu,$g as DrawerTrigger,Ml as DrawerTitle,Ge as DrawerSize,Sl as DrawerPortal,pn as DrawerOverlay,wl as DrawerHeader,Rl as DrawerFooter,Ll as DrawerDescription,Nl as DrawerContent,Kg as DrawerClose,Ug as Drawer,Bg as DialogTrigger,Ko as DialogTitle,Ht as DialogSize,Uo as DialogPortal,Er as DialogOverlay,Tl as DialogHeader,hl as DialogFooter,Pl as DialogDescription,mn as DialogContentPrimitive,$o as DialogContent,Dg as DialogClose,Qr as Dialog,Ho as DensityProvider,Lo as DENSITY_DEFAULT,qu as DARK_CLASS,Hg as ContextMenuTrigger,ml as ContextMenuSubTrigger,dl as ContextMenuSubContent,Ig as ContextMenuSub,vl as ContextMenuShortcut,yl as ContextMenuSeparator,fl as ContextMenuRadioItem,Vg as ContextMenuRadioGroup,Ag as ContextMenuPortal,gl as ContextMenuLabel,Go as ContextMenuItemVariant,cl as ContextMenuItem,kg as ContextMenuGroup,pl as ContextMenuContent,ul as ContextMenuCheckboxItem,Lg as ContextMenu,tl as CommandShortcut,el as CommandSeparator,rl as CommandLoading,Js as CommandList,_o as CommandItemVariant,js as CommandItem,qs as CommandInput,Es as CommandGroup,Qs as CommandEmpty,Zs as CommandDialog,nn as Command,ut as ColorScheme,bg as CollapsibleTrigger,Is as CollapsibleContent,vg as Collapsible,ks as CodeBlock,zr as CheckboxStatus,qe as CheckboxSize,xs as Checkbox,bf as CheckCircleIcon,bs as CardTitle,gs as CardHeader,vs as CardFooter,Ts as CardDescription,ys as CardContent,fs as Card,cs as Calendar,hi as ButtonLabel,Ti as ButtonIcon,rs as ButtonGroup,Pi as ButtonBadge,xi as Button,ge as BreadcrumbSize,ji as BreadcrumbSeparator,Ei as BreadcrumbPage,qi as BreadcrumbList,Qi as BreadcrumbLink,Ji as BreadcrumbItem,es as BreadcrumbEllipsis,Zi as Breadcrumb,ze as BadgeVariant,zt as BadgeTone,Nt as BadgeSize,Gi as BadgeGroup,Vo as Badge,De as AvatarSize,Fi as AvatarImage,Oi as AvatarGroup,en as AvatarFallback,ja as Avatar,Hf as AspectRatio,vf as AlertTriangleIcon,fi as AlertTitle,Lf as AlertDialogTrigger,Li as AlertDialogTitle,St as AlertDialogSize,Ni as AlertDialogPortal,Ea as AlertDialogOverlay,Ri as AlertDialogHeader,Mi as AlertDialogFooter,Hi as AlertDialogDescription,wi as AlertDialogContent,Ai as AlertDialogCancel,ki as AlertDialogAction,Mf as AlertDialog,gi as AlertDescription,ui as Alert,li as AccordionTrigger,Re as AccordionSize,si as AccordionItem,mi as AccordionContent,ii as Accordion};
6
+ `)}function PT(e){let t=[],r=[],o=[];for(let[n,i]of Object.entries(e)){if(!ht(n))continue;if(t.push(n),ht(i)){o.push(i);continue}if(Ku(i)){o.push(i.cssText);continue}if($u(i)){r.push({theme:n,light:i.light,dark:i.dark});continue}throw jn(`record key "${n}" has unsupported value shape`)}return{themeNames:t,tokenDefinitions:r,cssBlocks:o}}function xT(e){let t=[],r=[],o=[];for(let n of e){if(ht(n)){t.push(n);continue}if(!TT(n))throw jn("array entry must be a theme name or an object with `theme`");let i=n.theme;if(t.push(i),Ku(n)){o.push(n.cssText);continue}if($u(n)){r.push({theme:i,light:n.light,dark:n.dark});continue}throw jn(`array entry "${i}" has unsupported value shape`)}return{themeNames:t,tokenDefinitions:r,cssBlocks:o}}function CT(e){if(Array.isArray(e))return xT(e);return PT(e)}function Yu(e){return e}function ei(e){let{themes:t,cssText:r,...o}=e,n=CT(t),i=Uu(n.themeNames),s=Kr({...o,themes:i}),l=_a({themes:n.tokenDefinitions,attribute:s.attribute,darkClassName:s.darkClassName}),d=hT([l,...n.cssBlocks,r??""]),m=Uu(s.themes);if(m.length===0)m.push(s.defaultTheme);return{defaultTheme:s.defaultTheme,themes:m,cssText:d,contract:s}}function Wa({registry:e,children:t,...r}){return Da(mr,{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)}Wa.displayName="ThemeRegistryProvider";function Ua({registry:e,id:t,nonce:r,media:o}){if(!ht(e.cssText))return null;return Da("style",{id:t,nonce:r,media:o,children:e.cssText},void 0,!1,void 0,this)}Ua.displayName="ThemeStyles";function Xu(e){let t=ei(e),{themes:r,cssText:o,...n}=e;return{registry:t,provider:({children:d,...m})=>{return Da(Wa,{registry:t,...n,...m,children:d},void 0,!1,void 0,this)},styles:(d={})=>{return Da(Ua,{registry:t,...d},void 0,!1,void 0,this)},useTheme:()=>{let d=Ba(),m=(v)=>{return t.themes.some((p)=>p===v)},f=(v)=>{return m(v)?v:t.defaultTheme},u=(v)=>{if(typeof v==="function"){d.setState((p)=>{let y={...p,theme:f(p.theme)},z=v(y);return{theme:f(z.theme??y.theme),colorScheme:z.colorScheme??y.colorScheme}});return}d.setState({theme:f(v.theme??d.state.theme),colorScheme:v.colorScheme??d.state.colorScheme})};return{...d,theme:f(d.theme),state:{...d.state,theme:f(d.state.theme)},resolvedState:{...d.resolvedState,theme:f(d.resolvedState.theme)},themes:t.themes,setTheme:(v)=>{d.setTheme(v)},setState:u}}}}import{jsxDEV as df}from"react/jsx-dev-runtime";function pf({children:e,density:t=Mo,defaultTheme:r="ghostly-solutions",defaultColorScheme:o=ut.system,...n}){return df(mr,{defaultTheme:r,defaultColorScheme:o,...n,children:df(Lo,{density:t,children:e},void 0,!1,void 0,this)},void 0,!1,void 0,this)}pf.displayName="UIProvider";import*as Wt from"react";var zT=()=>{};function ST({prop:e,defaultProp:t,onChange:r=zT}){let[o,n]=NT({defaultProp:t,onChange:r}),i=e!==void 0,s=i?e:o,l=Wt.useCallback((d)=>{if(i){let f=typeof d==="function"?d(e):d;if(f!==e)r(f)}else n(d)},[i,e,n,r]);return[s,l]}function NT({defaultProp:e,onChange:t}){let r=Wt.useState(e),[o]=r,n=Wt.useRef(o),i=t;return Wt.useEffect(()=>{if(n.current!==o)i?.(o),n.current=o},[o,i]),r}export{Fa as writeThemeStateToBrowserStorage,Kn as useToast,Ba as useTheme,io as usePlatform,Iv as useOverlay,Qr as useHotkey,oo as useFormField,c as useDensitySize,yf as useDensity,ST as useControllableState,no as useComposedRefs,Rg as useCommandShortcut,ln as useCommand,Bu as tooltipContentVariants,Ru as toolbarVariants,Lu as toolbarGroupVariants,wa as toggleVariants,Cu as toggleGroupVariants,_n as toastVariants,Gn as toastActionVariants,fu as toast,Zc as timelineVariants,jc as timelineTitleVariants,tu as timelineTimeVariants,Jc as timelineItemVariants,Qc as timelineDotVariants,eu as timelineDescriptionVariants,Ec as timelineContentVariants,qc as timelineConnectorVariants,Yc as textareaVariants,_c as tabsTriggerVariants,Dc as tabsListVariants,Gc as tabsContentVariants,xc as tableVariants,Nc as tableRowVariants,Cc as tableHeaderVariants,wc as tableHeadVariants,Sc as tableFooterVariants,Pc as tableContainerVariants,Rc as tableCellVariants,Mc as tableCaptionVariants,zc as tableBodyVariants,bc as switchVariants,oc as stepperVariants,ac as stepVariants,lc as stepTitleVariants,nc as stepIndicatorVariants,mc as stepDescriptionVariants,sc as stepContentVariants,ic as stepConnectorVariants,tc as statCardVariants,va as spotlightStatusVariants,ba as spotlightStatusTitleVariants,Ep as spotlightStatusDescriptionVariants,Qp as spotlightShortcutVariants,$p as spotlightResultsVariants,Dp as spotlightPanelVariants,Bp as spotlightOverlayVariants,Yp as spotlightOptionVariants,Jp as spotlightOptionTitleVariants,Xp as spotlightOptionIconVariants,qp as spotlightOptionDescriptionVariants,Zp as spotlightOptionContentVariants,Wp as spotlightInputVariants,Up as spotlightIconVariants,Gp as spotlightHeaderVariants,Kp as spotlightGroupLabelVariants,_p as spotlightDrawerPanelVariants,Lp as sliderVariants,Hp as sliderTrackVariants,Ap as sliderThumbVariants,kp as sliderRangeVariants,Cp as skeletonVariants,zp as skeletonTextVariants,Np as skeletonButtonVariants,Sp as skeletonAvatarVariants,dd as sheetOverlayVariants,pd as sheetContentVariants,rf as serializeThemeState,Pp as separatorVariants,fp as selectTriggerVariants,gp as selectContentVariants,op as segmentedControlVariants,np as segmentedControlLabelVariants,ap as segmentedControlItemVariants,qd as scrollBarVariants,Qd as scrollBarThumbVariants,Jd as scrollAreaVariants,sf as resolveThemeState,Wd as resizablePanelVariants,Gd as resizablePanelGroupVariants,Ud as resizableHandleVariants,$d as resizableHandleIconVariants,af as readThemeStateFromCookieHeader,Va as readThemeStateFromBrowserStorage,Bd as radioItemVariants,Od as radioGroupVariants,kd as progressVariants,Ad as progressIndicatorVariants,Ar as popoverContentVariants,of as parseThemeState,nn as parseHotkey,hd as paginationVariants,jo as paginationLinkVariants,xd as paginationItemVariants,Cd as paginationEllipsisVariants,Pd as paginationContentVariants,ad as otpSlotVariants,sd as otpSeparatorVariants,id as otpPlaceholderVariants,nd as otpInputVariants,od as otpGroupVariants,rd as otpContainerVariants,ct as normalizeThemeState,Ym as navigationMenuViewportVariants,Wm as navigationMenuVariants,$m as navigationMenuTriggerVariants,Um as navigationMenuListVariants,gv as navigationMenuLinkVariants,Xm as navigationMenuIndicatorVariants,Km as navigationMenuContentVariants,Dm as multiselectTriggerVariants,jp as matchesQuery,sn as matchHotkey,Im as labelVariants,Lr as kbdVariants,Tr as isSameDay,Mm as inputVariants,Nm as hoverCardContentVariants,DT as hotkey,lf as getThemeRootProps,Oa as getSystemColorScheme,Ta as formatHotkeyTokens,Zo as formatHotkey,Tm as formFieldVariants,dm as fileUploadVariants,vn as fileUploadTextVariants,cm as fileUploadListVariants,um as fileUploadItemVariants,gm as fileUploadItemSizeVariants,ym as fileUploadItemRemoveVariants,fm as fileUploadItemNameVariants,pm as fileUploadIconVariants,rm as errorBoundaryVariants,am as errorBoundaryTitleVariants,om as errorBoundaryIconVariants,sm as errorBoundaryDetailsVariants,nm as errorBoundaryDescriptionVariants,im as errorBoundaryActionsVariants,Jl as emptyStateVariants,Ql as emptyStateTitleVariants,ql as emptyStateIconVariants,El as emptyStateDescriptionVariants,jl as emptyStateActionsVariants,Ol as dropdownMenuShortcutVariants,Fl as dropdownMenuSeparatorVariants,Il as dropdownMenuRadioItemVariants,Vl as dropdownMenuLabelVariants,yn as dropdownMenuItemVariants,gn as dropdownMenuContentVariants,Al as dropdownMenuCheckboxItemVariants,Cl as drawerOverlayVariants,Sl as drawerHandleVariants,zl as drawerContentVariants,Tl as dialogContentVariants,bn as detectPlatform,Yu as defineThemes,HR as cva,_a as createThemesCss,Xu as createThemeSystem,nf as createThemeSetCookieHeader,ei as createThemeRegistry,mf as createThemeCss,Kr as createThemeContract,WT as createOptionalContext,GT as createContext,ll as contextMenuShortcutVariants,sl as contextMenuSeparatorVariants,nl as contextMenuRadioItemVariants,il as contextMenuLabelVariants,pn as contextMenuItemVariants,dn as contextMenuContentVariants,al as contextMenuCheckboxItemVariants,_T as composeRefs,Ys as commandShortcutVariants,Ks as commandSeparatorVariants,Bs as commandOverlayVariants,Xs as commandLoadingVariants,_s as commandListVariants,$s as commandItemVariants,Ds as commandInputVariants,Ws as commandGroupVariants,Us as commandGroupHeadingVariants,Gs as commandEmptyVariants,Os as commandDialogVariants,As as collapsibleContentVariants,zs as codeBlockVariants,Ms as codeBlockPreVariants,Ls as codeBlockLineVariants,Hs as codeBlockLineNumberVariants,Ns as codeBlockLanguageVariants,Ss as codeBlockHeaderVariants,ws as codeBlockCopyVariants,Rs as codeBlockContentVariants,a as cn,Ps as checkboxVariants,us as cardVariants,ds as calendarWeekdayVariants,is as calendarVariants,ls as calendarTitleVariants,on as calendarNavButtonVariants,ss as calendarHeaderVariants,ms as calendarGridVariants,ps as calendarDayVariants,Xr as buttonVariants,vi as buttonIconVariants,ts as buttonGroupVariants,bi as buttonBadgeVariants,Yi as breadcrumbSeparatorVariants,Ki as breadcrumbPageVariants,Wi as breadcrumbListVariants,$i as breadcrumbLinkVariants,Ui as breadcrumbItemVariants,Xi as breadcrumbEllipsisVariants,Bi as badgeVariants,Vi as avatarVariants,di as alertVariants,pi as alertTitleVariants,zi as alertDialogOverlayVariants,Si as alertDialogContentVariants,ci as alertDescriptionVariants,ai as accordionTriggerVariants,oi as accordionItemVariants,ni as accordionContentVariants,zf as XCircleIcon,MT as Variant,pf as UIProvider,Ou as TooltipTrigger,sr as TooltipSize,fT as TooltipProvider,Du as TooltipContent,Fu as Tooltip,Au as ToolbarSpacer,ot as ToolbarSize,ku as ToolbarSeparator,Hu as ToolbarGroup,Mu as Toolbar,Nu as ToggleGroupItem,Su as ToggleGroup,Pu as Toggle,Tu as Toaster,Ye as ToastSize,su as TimelineTitle,mu as TimelineTime,ou as TimelineItem,nu as TimelineDot,lu as TimelineDescription,iu as TimelineContent,au as TimelineConnector,ru as Timeline,Ua as ThemeStyles,Wa as ThemeRegistryProvider,mr as ThemeProvider,BT as ThemeColorScheme,Xc as Textarea,$c as TabsTrigger,Uc as TabsList,Kc as TabsContent,Ib as Tabs,we as TableSize,Ic as TableRow,Hc as TableHeader,Vc as TableHead,Ac as TableFooter,Fc as TableCell,Oc as TableCaption,kc as TableBody,Lc as Table,tf as THEME_COOKIE_NAME,Ju as THEME_COLOR_SCHEME_ATTR,Zu as THEME_ATTR,Wr as SwitchStatus,He as SwitchSize,Tc as Switch,AT as SurfaceStyle,dc as Stepper,gc as StepTitle,cc as StepIndicator,yc as StepDescription,fc as StepContent,uc as StepConnector,pc as Step,LT as Status,rr as StatCardTrend,Ke as StatCardSize,rc as StatCard,Gr as SpotlightStatus,x as SpotlightSize,ec as Spotlight,cr as SpinnerSize,xt as Spinner,Ip as Slider,wp as SkeletonText,Te as SkeletonSize,Mp as SkeletonButton,Rp as SkeletonAvatar,Po as Skeleton,RT as Size,FT as Side,Nv as SheetTrigger,gd as SheetTitle,ie as SheetSize,cd as SheetPortal,xn as SheetOverlay,ud as SheetHeader,fd as SheetFooter,yd as SheetDescription,Qo as SheetContent,wv as SheetClose,Pn as Sheet,ho as SeparatorOrientation,xp as Separator,ib as SelectValue,yp as SelectTrigger,_r as SelectStatus,ae as SelectSize,hp as SelectSeparator,bp as SelectLabel,Tp as SelectItem,nb as SelectGroup,bo as SelectContentWidthMode,tb as SelectContentAlign,vp as SelectContent,ab as Select,be as SegmentedControlSize,mp as SegmentedControlLabelItem,lp as SegmentedControlItem,sp as SegmentedControl,Nn as ScrollBar,Ed as ScrollArea,Qu as STORAGE_VERSION,ju as STORAGE_THEME_STATE_KEY,Eu as STORAGE_PREFIX,ef as STORAGE_DENSITY_KEY,Kd as ResizablePanelGroup,Yd as ResizablePanel,Xd as ResizableHandle,Or as RadioStatus,tt as RadioSize,_d as RadioGroupItem,Dd as RadioGroup,Id as Progress,ev as PopoverTrigger,kr as PopoverSize,Om as PopoverContent,rv as PopoverClose,tv as PopoverAnchor,jy as Popover,$e as PaginationSize,Rd as PaginationPrevious,Md as PaginationNext,wd as PaginationLink,Nd as PaginationItem,Ld as PaginationEllipsis,Sd as PaginationContent,zd as Pagination,Td as OverlayProvider,VT as Orientation,ld as OTPInput,Tn as NavigationMenuViewport,qm as NavigationMenuTrigger,je as NavigationMenuSize,Jm as NavigationMenuList,bv as NavigationMenuLink,vv as NavigationMenuItem,Em as NavigationMenuIndicator,Qm as NavigationMenuContent,Zm as NavigationMenu,ve as MultiselectSize,_m as Multiselect,kT as MotionLevel,qy as Loader,Hr as LabelSize,Vm as Label,cf as Key,Mr as KbdSize,km as Kbd,Lm as Input,Cf as InfoIcon,ur as IconSize,wy as HoverCardTrigger,Rr as HoverCardSize,wm as HoverCardContent,Ny as HoverCard,wT as HotkeyModifierKey,cf as HotkeyKey,qr as GroupOrientation,We as FormFieldSize,Pm as FormFieldLabel,zm as FormFieldError,Cm as FormFieldDescription,Sm as FormFieldControl,hm as FormField,vm as FileUpload,lm as ErrorBoundary,em as EmptyState,IT as EmphasisLevel,sy as DropdownMenuTrigger,_l as DropdownMenuSubTrigger,Gl as DropdownMenuSubContent,dy as DropdownMenuSub,Zl as DropdownMenuShortcut,Xl as DropdownMenuSeparator,Kl as DropdownMenuRadioItem,py as DropdownMenuRadioGroup,my as DropdownMenuPortal,Yl as DropdownMenuLabel,Yo as DropdownMenuItemVariant,Ul as DropdownMenuItem,ly as DropdownMenuGroup,Wl as DropdownMenuContent,$l as DropdownMenuCheckboxItem,Dl as DropdownMenu,Jg as DrawerTrigger,Ll as DrawerTitle,Ge as DrawerSize,Nl as DrawerPortal,fn as DrawerOverlay,Rl as DrawerHeader,Ml as DrawerFooter,Hl as DrawerDescription,wl as DrawerContent,qg as DrawerClose,Zg as Drawer,Ug as DialogTrigger,$o as DialogTitle,Lt as DialogSize,Wo as DialogPortal,jr as DialogOverlay,hl as DialogHeader,Pl as DialogFooter,xl as DialogDescription,cn as DialogContentPrimitive,Uo as DialogContent,$g as DialogClose,Er as Dialog,Lo as DensityProvider,HT as Density,Mo as DENSITY_DEFAULT,qu as DARK_CLASS,Fg as ContextMenuTrigger,dl as ContextMenuSubTrigger,pl as ContextMenuSubContent,Dg as ContextMenuSub,bl as ContextMenuShortcut,vl as ContextMenuSeparator,gl as ContextMenuRadioItem,_g as ContextMenuRadioGroup,Bg as ContextMenuPortal,yl as ContextMenuLabel,_o as ContextMenuItemVariant,ul as ContextMenuItem,Og as ContextMenuGroup,cl as ContextMenuContent,fl as ContextMenuCheckboxItem,Vg as ContextMenu,rl as CommandShortcut,tl as CommandSeparator,ol as CommandLoading,Qs as CommandList,Do as CommandItemVariant,el as CommandItem,qs as CommandInput,js as CommandGroup,Es as CommandEmpty,Js as CommandDialog,mn as Command,ut as ColorScheme,xg as CollapsibleTrigger,Is as CollapsibleContent,Pg as Collapsible,ks as CodeBlock,Cr as CheckboxStatus,Je as CheckboxSize,xs as Checkbox,xf as CheckCircleIcon,bs as CardTitle,gs as CardHeader,vs as CardFooter,Ts as CardDescription,ys as CardContent,fs as Card,cs as Calendar,hi as ButtonLabel,Ti as ButtonIcon,rs as ButtonGroup,Pi as ButtonBadge,xi as Button,ge as BreadcrumbSize,ji as BreadcrumbSeparator,Ei as BreadcrumbPage,Ji as BreadcrumbList,Qi as BreadcrumbLink,qi as BreadcrumbItem,es as BreadcrumbEllipsis,Zi as Breadcrumb,Ce as BadgeVariant,Ct as BadgeTone,St as BadgeSize,Gi as BadgeGroup,Io as Badge,De as AvatarSize,Fi as AvatarImage,Oi as AvatarGroup,tn as AvatarFallback,en as Avatar,Vf as AspectRatio,OT as Align,Pf as AlertTriangleIcon,fi as AlertTitle,If as AlertDialogTrigger,Li as AlertDialogTitle,zt as AlertDialogSize,Ni as AlertDialogPortal,ja as AlertDialogOverlay,Ri as AlertDialogHeader,Mi as AlertDialogFooter,Hi as AlertDialogDescription,wi as AlertDialogContent,Ai as AlertDialogCancel,ki as AlertDialogAction,Af as AlertDialog,gi as AlertDescription,ui as Alert,li as AccordionTrigger,Re as AccordionSize,si as AccordionItem,mi as AccordionContent,ii as Accordion};