@ghostly-solutions/ui 0.3.3 → 0.3.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,4 +1,6 @@
1
1
  "use client";
2
- import{A as My,B as Ny,C as Ly,D as Ry,E as Hy,F as ky,G as hi,H as Ay,I as Iy,J as Vy,K as By,L as Dy,M as Fy,a as o,b as ly,c as Kr,d as my,e as dy,f as Fa,g as ei,h as ti,i as Xr,j as py,k as Pi,l as cy,m as uy,n as fy,o as gy,p as vy,q as by,r as yy,s as Py,t as hy,u as Ty,v as xy,w as Cy,x as Sy,y as zy,z as wy}from"./chunk-rbysacxc.js";import{cva as iM}from"class-variance-authority";import*as je from"@radix-ui/react-accordion";import{cva as fa}from"class-variance-authority";import{ChevronDown as pu}from"lucide-react";import{createContext as cu,forwardRef as bo,useContext as Ci}from"react";import{createContext as lu,useContext as xi}from"react";import{jsxDEV as du}from"react/jsx-dev-runtime";var go="md",ua=lu(go),vo=({density:e,children:t})=>{return du(ua.Provider,{value:e,children:t},void 0,!1,void 0,this)};vo.displayName="DensityProvider";var mu=()=>{return xi(ua)};function d(e){let t=xi(ua);if(e!==void 0)return e;return t}import{jsxDEV as ut}from"react/jsx-dev-runtime";var Te={sm:"sm",md:"md",lg:"lg"},ga=cu(Te.md),Si=fa("border-b border-border"),zi=fa("gs-interactive flex flex-1 items-center justify-between font-medium hover:underline [&[data-state=open]>svg]:rotate-180",{variants:{size:{[Te.sm]:"py-3 text-xs [&>svg]:size-3.5",[Te.md]:"py-4 text-sm [&>svg]:size-4",[Te.lg]:"py-5 text-base [&>svg]:size-5"}},defaultVariants:{size:Te.md}}),wi=fa("gs-accordion-content overflow-hidden",{variants:{size:{[Te.sm]:"text-xs",[Te.md]:"text-sm",[Te.lg]:"text-base"}},defaultVariants:{size:Te.md}}),uu={[Te.sm]:"pt-0 pb-3",[Te.md]:"pt-0 pb-4",[Te.lg]:"pt-0 pb-5"},Mi=bo(({size:e=Te.md,...t},r)=>{let a=d(e)??Te.md;return ut(ga.Provider,{value:a,children:ut(je.Root,{ref:r,...t},void 0,!1,void 0,this)},void 0,!1,void 0,this)});Mi.displayName="Accordion";var Ni=bo(({className:e,...t},r)=>ut(je.Item,{ref:r,className:o(Si(),e),...t},void 0,!1,void 0,this));Ni.displayName="AccordionItem";var Li=bo(({className:e,children:t,...r},a)=>{let i=Ci(ga);return ut(je.Header,{className:"flex",children:ut(je.Trigger,{ref:a,className:o(zi({size:i}),e),...r,children:[t,ut(pu,{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 Ri=bo(({className:e,children:t,...r},a)=>{let i=Ci(ga);return ut(je.Content,{ref:a,className:o(wi({size:i}),e),...r,children:ut("div",{className:uu[i],children:t},void 0,!1,void 0,this)},void 0,!1,void 0,this)});Ri.displayName="AccordionContent";import{cva as va}from"class-variance-authority";import{TriangleAlert as fu,CircleCheck as gu,Info as vu,CircleAlert as bu}from"lucide-react";import{forwardRef as ba}from"react";import{jsxDEV as ya}from"react/jsx-dev-runtime";var jt={default:"default",success:"success",warning:"warning",error:"error",info:"info"},Vr={sm:"sm",md:"md",lg:"lg",xl:"xl"},Hi=va("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:{[jt.default]:"bg-background text-foreground",[jt.success]:"border-success/50 text-success [&>svg]:text-success bg-success/10",[jt.warning]:"border-warning/50 text-warning [&>svg]:text-warning bg-warning/10",[jt.error]:"border-destructive/50 text-destructive [&>svg]:text-destructive bg-destructive/10",[jt.info]:"border-info/50 text-info [&>svg]:text-info bg-info/10"},size:{[Vr.sm]:"p-3 text-xs [&>svg]:top-3 [&>svg]:left-3 [&>svg~*]:pl-6",[Vr.md]:"p-4 text-sm",[Vr.lg]:"p-5 text-sm",[Vr.xl]:"p-6 text-base [&>svg]:top-6 [&>svg]:left-6 [&>svg~*]:pl-8"}},defaultVariants:{variant:jt.default,size:Vr.md}}),ki=va("mb-1 font-medium leading-none tracking-tight"),Ai=va("text-sm [&_p]:leading-relaxed"),Ii=ba(({className:e,variant:t,size:r,...a},i)=>{let n=d(r);return ya("div",{ref:i,role:"alert",className:o(Hi({variant:t,size:n}),e),...a},void 0,!1,void 0,this)});Ii.displayName="Alert";var Vi=ba(({className:e,...t},r)=>ya("h5",{ref:r,className:o(ki(),e),...t},void 0,!1,void 0,this));Vi.displayName="AlertTitle";var Bi=ba(({className:e,...t},r)=>ya("div",{ref:r,className:o(Ai(),e),...t},void 0,!1,void 0,this));Bi.displayName="AlertDescription";import*as ue from"@radix-ui/react-alert-dialog";import{cva as $i}from"class-variance-authority";import{forwardRef as or}from"react";import{Slot as Di}from"@radix-ui/react-slot";import{cva as ha}from"class-variance-authority";import{forwardRef as yo}from"react";import{forwardRef as yu}from"react";import{jsxDEV as Pa}from"react/jsx-dev-runtime";var er={sm:"sm",md:"md",lg:"lg",xl:"xl"},Pu={[er.sm]:"h-4 w-4",[er.md]:"h-5 w-5",[er.lg]:"h-6 w-6",[er.xl]:"h-8 w-8"},tr=yu(({className:e,size:t=er.md,label:r="Loading",...a},i)=>{let n=d(t);return Pa("span",{ref:i,className:o("inline-flex items-center justify-center",e),role:"status","aria-label":r,...a,children:[Pa("span",{className:o("animate-spin rounded-full border-2 border-current border-r-transparent",Pu[n])},void 0,!1,void 0,this),Pa("span",{className:"sr-only",children:r},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});tr.displayName="Spinner";import{jsxDEV as lt}from"react/jsx-dev-runtime";var st={primary:"primary",secondary:"secondary",neutral:"neutral",outline:"outline",ghost:"ghost",danger:"danger"},Le={sm:"sm",md:"md",lg:"lg",xl:"xl",icon:"icon",iconSm:"icon-sm",iconLg:"icon-lg"},ft={default:"default",success:"success",warning:"warning",error:"error",info:"info"},rr={sm:"sm",md:"md",lg:"lg"},hu="Loading",Tu="button",Br=ha("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:{[st.primary]:"border-primary bg-primary text-primary-foreground enabled:hover:bg-primary/90",[st.secondary]:"border-secondary bg-secondary text-secondary-foreground enabled:hover:bg-secondary/90",[st.neutral]:"border-border bg-muted text-foreground enabled:hover:bg-muted/90",[st.outline]:"border-border bg-background text-foreground enabled:hover:border-primary enabled:hover:bg-muted/50",[st.ghost]:"border-transparent bg-transparent text-foreground enabled:hover:bg-muted/70",[st.danger]:"border-destructive bg-destructive text-destructive-foreground enabled:hover:bg-destructive/90"},size:{[Le.sm]:"h-8 px-2.5 text-xs",[Le.md]:"h-10 px-4 text-sm",[Le.lg]:"h-11 px-5 text-sm",[Le.xl]:"h-12 px-6 text-base",[Le.icon]:"h-10 w-10 p-0",[Le.iconSm]:"h-9 w-9 p-0",[Le.iconLg]:"h-11 w-11 p-0"}},defaultVariants:{variant:st.primary,size:Le.md}}),Fi=ha("shrink-0",{variants:{size:{[rr.sm]:"size-3",[rr.md]:"size-4",[rr.lg]:"size-4.5"}},defaultVariants:{size:rr.md}}),Oi=ha("inline-flex items-center rounded-full border px-1.5 py-0.5 font-semibold text-[10px] leading-none",{variants:{tone:{[ft.default]:"border-border/70 bg-background/75 text-muted-foreground",[ft.success]:"border-success/35 bg-success/12 text-success",[ft.warning]:"border-warning/35 bg-warning/12 text-warning",[ft.error]:"border-destructive/35 bg-destructive/12 text-destructive",[ft.info]:"border-info/35 bg-info/12 text-info"}},defaultVariants:{tone:ft.default}});function xu(e){return e===Le.icon||e===Le.iconSm||e===Le.iconLg}function Cu(e,t,r){return e&&t?-1:r}function Su(e){return e["aria-label"]??e["aria-labelledby"]??e.title}function zu(){if(typeof process>"u")return!0;return!0}var _i=yo(({className:e,size:t=rr.md,...r},a)=>lt(Di,{ref:a,className:o(Fi({size:t}),e),...r},void 0,!1,void 0,this));_i.displayName="ButtonIcon";var Gi=yo(({className:e,...t},r)=>lt("span",{ref:r,className:o("truncate",e),...t},void 0,!1,void 0,this));Gi.displayName="ButtonLabel";var Wi=yo(({className:e,tone:t=ft.default,...r},a)=>lt("span",{ref:a,className:o(Oi({tone:t}),e),...r},void 0,!1,void 0,this));Wi.displayName="ButtonBadge";var Ui=yo(({className:e,variant:t=st.primary,size:r=Le.md,asChild:a=!1,loading:i=!1,loadingText:n=hu,fullWidth:s=!1,leadingIcon:l,trailingIcon:m,disabled:p,children:f,type:u,tabIndex:P,onClick:c,...v},x)=>{let M=d(r),w=M??r,C=Su(v);if(zu()&&xu(w)&&!C)throw Error("Icon-size Button requires aria-label, aria-labelledby, or title.");let b=Boolean(p||i),T=o(Br({variant:t,size:M}),s&&"w-full",e);if(a)return lt(Di,{ref:x,className:T,"aria-disabled":b||void 0,"aria-busy":i||void 0,tabIndex:Cu(!0,b,P),onClick:b?(I)=>{I.preventDefault()}:c,...v,children:f},void 0,!1,void 0,this);return lt("button",{ref:x,className:T,disabled:b,"aria-disabled":b,"aria-busy":i,tabIndex:P,type:u??Tu,onClick:i?void 0:c,...v,children:[lt("span",{className:o("absolute inset-0 flex items-center justify-center transition-opacity duration-150",i?"opacity-100":"opacity-0"),"aria-hidden":"true",children:lt(tr,{size:"sm"},void 0,!1,void 0,this)},void 0,!1,void 0,this),i&&lt("span",{className:"sr-only",children:n},void 0,!1,void 0,this),lt("span",{className:o("inline-flex items-center justify-center gap-2 transition-opacity duration-150",i&&"opacity-0"),children:[l,f,m]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)});Ui.displayName="Button";import{jsxDEV as et}from"react/jsx-dev-runtime";var gt={sm:"sm",md:"md",lg:"lg",xl:"xl",full:"full"},Ki=$i("gs-dialog-overlay fixed inset-0 z-50 bg-black/50"),Yi=$i("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:{[gt.sm]:"max-w-sm",[gt.md]:"max-w-md",[gt.lg]:"max-w-lg",[gt.xl]:"max-w-xl",[gt.full]:"max-w-[calc(100vw-2rem)] max-h-[calc(100vh-2rem)]"}},defaultVariants:{size:gt.md}}),wu=ue.Root,Mu=ue.Trigger,Xi=ue.Portal,Ta=or(({className:e,...t},r)=>et(ue.Overlay,{ref:r,className:o(Ki(),e),...t},void 0,!1,void 0,this));Ta.displayName="AlertDialogOverlay";var qi=or(({className:e,size:t=gt.md,...r},a)=>{let i=d(t);return et(Xi,{children:[et(Ta,{},void 0,!1,void 0,this),et(ue.Content,{ref:a,className:o(Yi({size:i}),e),...r},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});qi.displayName="AlertDialogContent";var Zi=({className:e,...t})=>et("div",{className:o("flex flex-col space-y-2 text-center sm:text-left",e),...t},void 0,!1,void 0,this);Zi.displayName="AlertDialogHeader";var Ji=({className:e,...t})=>et("div",{className:o("flex flex-col-reverse sm:flex-row sm:justify-end sm:gap-2.5",e),...t},void 0,!1,void 0,this);Ji.displayName="AlertDialogFooter";var Qi=or(({className:e,...t},r)=>et(ue.Title,{ref:r,className:o("text-lg font-semibold",e),...t},void 0,!1,void 0,this));Qi.displayName="AlertDialogTitle";var Ei=or(({className:e,...t},r)=>et(ue.Description,{ref:r,className:o("text-sm text-muted-foreground",e),...t},void 0,!1,void 0,this));Ei.displayName="AlertDialogDescription";var ji=or(({className:e,...t},r)=>et(ue.Action,{ref:r,className:o(Br(),e),...t},void 0,!1,void 0,this));ji.displayName="AlertDialogAction";var en=or(({className:e,...t},r)=>et(ue.Cancel,{ref:r,className:o(Br({variant:"outline"}),"mt-2 sm:mt-0",e),...t},void 0,!1,void 0,this));en.displayName="AlertDialogCancel";import*as tn from"@radix-ui/react-aspect-ratio";var Nu=tn.Root;import*as ir from"@radix-ui/react-avatar";import{cva as Lu}from"class-variance-authority";import{forwardRef as Po}from"react";import{jsxDEV as ar}from"react/jsx-dev-runtime";var Ie={sm:"sm",md:"md",lg:"lg",xl:"xl"},rn=Lu("relative flex shrink-0 overflow-hidden rounded-full",{variants:{size:{[Ie.sm]:"h-6 w-6",[Ie.md]:"h-10 w-10",[Ie.lg]:"h-12 w-12",[Ie.xl]:"h-16 w-16"}},defaultVariants:{size:Ie.md}}),xa=Po(({className:e,size:t=Ie.md,...r},a)=>{let i=d(t);return ar(ir.Root,{ref:a,className:o(rn({size:i}),e),...r},void 0,!1,void 0,this)});xa.displayName="Avatar";var on=Po(({className:e,...t},r)=>ar(ir.Image,{ref:r,className:o("aspect-square h-full w-full object-cover",e),...t},void 0,!1,void 0,this));on.displayName="AvatarImage";var Ca=Po(({className:e,...t},r)=>ar(ir.Fallback,{ref:r,className:o("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));Ca.displayName="AvatarFallback";var Ru={[Ie.sm]:"-space-x-2",[Ie.md]:"-space-x-3",[Ie.lg]:"-space-x-4",[Ie.xl]:"-space-x-5"},an=Po(({className:e,children:t,max:r,size:a=Ie.md,...i},n)=>{let s=d(a),l=Array.isArray(t)?t:[t],m=r?l.slice(0,r):l,p=r?Math.max(0,l.length-r):0;return ar("div",{ref:n,className:o("flex items-center",Ru[s],e),...i,children:[m,p>0&&ar(xa,{size:s,className:"border-2 border-background",children:ar(Ca,{className:"text-xs",children:["+",p]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});an.displayName="AvatarGroup";import{Slot as Hu}from"@radix-ui/react-slot";import{cva as ku}from"class-variance-authority";import{X as Au}from"lucide-react";import{forwardRef as Iu}from"react";import{jsxDEV as Dr}from"react/jsx-dev-runtime";var ge={default:"default",primary:"primary",success:"success",warning:"warning",error:"error",info:"info",outline:"outline"},vt={sm:"sm",md:"md",lg:"lg",dot:"dot"},nn=ku("inline-flex items-center justify-center gap-1 whitespace-nowrap rounded-full border font-medium",{variants:{variant:{[ge.default]:"border-border bg-muted text-muted-foreground",[ge.primary]:"border-primary/30 bg-primary/10 text-primary",[ge.success]:"border-success/30 bg-success/10 text-success",[ge.warning]:"border-warning/30 bg-warning/10 text-warning",[ge.error]:"border-destructive/30 bg-destructive/10 text-destructive",[ge.info]:"border-info/30 bg-info/10 text-info",[ge.outline]:"border-border bg-transparent text-foreground"},solid:{true:"",false:""},size:{[vt.sm]:"h-5 px-2 text-[10px]",[vt.md]:"h-6 px-2.5 text-xs",[vt.lg]:"h-7 px-3 text-sm",[vt.dot]:"h-2 w-2 p-0"}},compoundVariants:[{solid:!0,variant:ge.default,className:"border-transparent bg-foreground text-background"},{solid:!0,variant:ge.primary,className:"border-primary bg-primary text-primary-foreground"},{solid:!0,variant:ge.success,className:"border-success bg-success text-background"},{solid:!0,variant:ge.warning,className:"border-warning bg-warning text-background"},{solid:!0,variant:ge.error,className:"border-destructive bg-destructive text-destructive-foreground"},{solid:!0,variant:ge.info,className:"border-info bg-info text-background"},{solid:!0,variant:ge.outline,className:"border-border bg-foreground text-background"}],defaultVariants:{variant:ge.default,solid:!1,size:vt.md}}),sn=Iu(({className:e,variant:t=ge.default,size:r=vt.md,solid:a=!1,pulse:i=!1,removable:n=!1,onRemove:s,onClick:l,children:m,asChild:p=!1,...f},u)=>{let P=d(r),c=Boolean(l),v=P===vt.dot,x=(C)=>{C.stopPropagation(),s?.(C)},M=o(nn({variant:t,solid:a,size:P}),c&&"cursor-pointer",i&&"animate-pulse",n&&!v&&"pr-1",e),w=n&&!v&&Dr("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:x,"aria-label":"Remove",tabIndex:-1,children:Dr(Au,{className:"size-3"},void 0,!1,void 0,this)},void 0,!1,void 0,this);if(p)return Dr(Hu,{ref:u,className:M,onClick:l,...f,children:m},void 0,!1,void 0,this);if(c)return Dr("button",{ref:u,className:M,onClick:l,type:"button",...f,children:[!v&&m,w]},void 0,!0,void 0,this);return Dr("span",{ref:u,className:M,...f,children:[!v&&m,w]},void 0,!0,void 0,this)});sn.displayName="Badge";import{Children as Vu,cloneElement as Bu,forwardRef as Du,isValidElement as Fu,useCallback as ln,useEffect as Ou,useLayoutEffect as _u,useRef as Gu,useState as Wu}from"react";import{jsxDEV as mn}from"react/jsx-dev-runtime";function Uu(e){let t=[];return Vu.forEach(e,(r,a)=>{if(!Fu(r))return;let i=r.key??a;t.push({key:i,element:r,isLeaving:!1})}),t}function $u(e,t){let r=new Set(t.map((n)=>n.key)),a=new Set(e.map((n)=>n.key)),i=[];for(let n of e)if(r.has(n.key)){let s=t.find((l)=>l.key===n.key);if(s)i.push({...s,isLeaving:!1})}else i.push({...n,isLeaving:!0});for(let n of t)if(!a.has(n.key))i.push(n);return i}function Ku(e,t,r){if(r.current)return r.current=!1,t;return $u(e,t)}var Yu=typeof window<"u"?_u:Ou,dn=Du(({children:e,className:t,onRemove:r,gap:a="sm"},i)=>{let[n,s]=Wu([]),l=Gu(!0);Yu(()=>{let u=Uu(e);s((P)=>Ku(P,u,l))},[e]);let m=ln((u)=>{s((P)=>P.filter((c)=>c.key!==u))},[]),p=ln((u)=>{r?.(u)},[r]),f={sm:"gap-1",md:"gap-2",lg:"gap-3"}[a];return mn("div",{ref:i,className:o("inline-flex flex-wrap items-center",f,t),children:n.map((u)=>{let P={};if(u.element.props.removable&&r)P.onRemove=()=>{p(u.key)};let c=o("inline-flex transition-all duration-200",u.isLeaving&&"pointer-events-none scale-95 opacity-0");return mn("span",{className:c,onTransitionEnd:u.isLeaving?()=>m(u.key):void 0,children:Bu(u.element,P)},u.key,!1,void 0,this)})},void 0,!1,void 0,this)});dn.displayName="BadgeGroup";import{Slot as Xu}from"@radix-ui/react-slot";import{cva as nr}from"class-variance-authority";import{ChevronRight as qu,MoreHorizontal as Zu}from"lucide-react";import{createContext as Ju,forwardRef as Fr,useContext as Sa}from"react";import{jsxDEV as Ue}from"react/jsx-dev-runtime";var le={sm:"sm",md:"md",lg:"lg"},ho=Ju(le.md),pn=nr("flex flex-wrap items-center break-words text-muted-foreground",{variants:{size:{[le.sm]:"gap-1 text-xs",[le.md]:"gap-1.5 text-sm sm:gap-2.5",[le.lg]:"gap-2 text-base sm:gap-3"}},defaultVariants:{size:le.md}}),cn=nr("inline-flex items-center gap-1.5"),un=nr("gs-interactive hover:text-foreground focus-visible:outline-none focus-visible:text-foreground"),fn=nr("font-normal text-foreground"),gn=nr("",{variants:{size:{[le.sm]:"[&>svg]:size-3",[le.md]:"[&>svg]:size-3.5",[le.lg]:"[&>svg]:size-4"}},defaultVariants:{size:le.md}}),vn=nr("flex items-center justify-center",{variants:{size:{[le.sm]:"h-7 w-7 [&>svg]:size-3.5",[le.md]:"h-9 w-9 [&>svg]:size-4",[le.lg]:"h-10 w-10 [&>svg]:size-5"}},defaultVariants:{size:le.md}}),bn=Fr(({size:e=le.md,...t},r)=>{let a=d(e)??le.md;return Ue(ho.Provider,{value:a,children:Ue("nav",{ref:r,"aria-label":"breadcrumb",...t},void 0,!1,void 0,this)},void 0,!1,void 0,this)});bn.displayName="Breadcrumb";var yn=Fr(({className:e,...t},r)=>{let a=Sa(ho);return Ue("ol",{ref:r,className:o(pn({size:a}),e),...t},void 0,!1,void 0,this)});yn.displayName="BreadcrumbList";var Pn=Fr(({className:e,...t},r)=>Ue("li",{ref:r,className:o(cn(),e),...t},void 0,!1,void 0,this));Pn.displayName="BreadcrumbItem";var hn=Fr(({asChild:e,className:t,...r},a)=>{return Ue(e?Xu:"a",{ref:a,className:o(un(),t),...r},void 0,!1,void 0,this)});hn.displayName="BreadcrumbLink";var Tn=Fr(({className:e,...t},r)=>Ue("span",{ref:r,role:"link",tabIndex:0,"aria-disabled":"true","aria-current":"page",className:o(fn(),e),...t},void 0,!1,void 0,this));Tn.displayName="BreadcrumbPage";var xn=({children:e,className:t,...r})=>{let a=Sa(ho),i={[le.sm]:"size-3",[le.md]:"size-3.5",[le.lg]:"size-4"};return Ue("li",{role:"presentation","aria-hidden":"true",className:o(gn({size:a}),t),...r,children:e??Ue(qu,{className:i[a]},void 0,!1,void 0,this)},void 0,!1,void 0,this)};xn.displayName="BreadcrumbSeparator";var Cn=({className:e,...t})=>{let r=Sa(ho);return Ue("span",{role:"presentation","aria-hidden":"true",className:o(vn({size:r}),e),...t,children:[Ue(Zu,{},void 0,!1,void 0,this),Ue("span",{className:"sr-only",children:"More"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)};Cn.displayName="BreadcrumbEllipsis";import{cva as Qu}from"class-variance-authority";import{forwardRef as Eu}from"react";import{jsxDEV as ju}from"react/jsx-dev-runtime";var Or={horizontal:"horizontal",vertical:"vertical"},Sn=Qu("inline-flex items-stretch",{variants:{orientation:{[Or.horizontal]:"flex-row",[Or.vertical]:"flex-col"},attached:{true:"gap-0 [&>*:not(:first-child)]:rounded-l-none [&>*:not(:last-child)]:rounded-r-none",false:"gap-2"}},defaultVariants:{orientation:Or.horizontal,attached:!1}}),zn=Eu(({className:e,orientation:t=Or.horizontal,attached:r=!1,fullWidth:a=!1,...i},n)=>ju("div",{ref:n,className:o(Sn({orientation:t,attached:r}),a&&"w-full",e),...i},void 0,!1,void 0,this));zn.displayName="ButtonGroup";import{cva as bt}from"class-variance-authority";import{forwardRef as ef,useCallback as sr,useEffect as tf,useMemo as wn,useState as Mn}from"react";import{jsxDEV as Re}from"react/jsx-dev-runtime";var B={sm:"sm",md:"md",lg:"lg",xl:"xl"},Ln=bt("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:{[B.sm]:"p-3 text-sm",[B.md]:"p-4 text-sm",[B.lg]:"p-5 text-base",[B.xl]:"p-6 text-base"}},defaultVariants:{size:B.md}}),Rn=bt("mb-3 flex items-center justify-between",{variants:{size:{[B.sm]:"gap-1",[B.md]:"gap-2",[B.lg]:"gap-3",[B.xl]:"gap-3"}},defaultVariants:{size:B.md}}),Hn=bt("font-semibold text-foreground",{variants:{size:{[B.sm]:"text-sm",[B.md]:"text-base",[B.lg]:"text-lg",[B.xl]:"text-xl"}},defaultVariants:{size:B.md}}),za=bt(["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:{[B.sm]:"size-7",[B.md]:"size-8",[B.lg]:"size-10",[B.xl]:"size-10"}},defaultVariants:{size:B.md}}),kn=bt("grid grid-cols-7",{variants:{size:{[B.sm]:"gap-0.5",[B.md]:"gap-1",[B.lg]:"gap-1.5",[B.xl]:"gap-2"}},defaultVariants:{size:B.md}}),An=bt("text-center font-semibold uppercase tracking-wide text-muted-foreground",{variants:{size:{[B.sm]:"py-1 text-[10px]",[B.md]:"py-1.5 text-xs",[B.lg]:"py-2 text-sm",[B.xl]:"py-2 text-sm"}},defaultVariants:{size:B.md}}),In=bt(["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:{[B.sm]:"size-7 text-xs",[B.md]:"size-9 text-sm",[B.lg]:"size-10 text-base",[B.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:B.md,state:"default"}}),rf=bt("rounded-md border border-transparent",{variants:{size:{[B.sm]:"size-7",[B.md]:"size-9",[B.lg]:"size-10",[B.xl]:"size-11"}},defaultVariants:{size:B.md}}),Nn=["Su","Mo","Tu","We","Th","Fr","Sa"],of=["January","February","March","April","May","June","July","August","September","October","November","December"],mt=(e)=>new Date(e.getFullYear(),e.getMonth(),e.getDate()),lr=(e,t)=>{return e.getDate()===t.getDate()&&e.getMonth()===t.getMonth()&&e.getFullYear()===t.getFullYear()},Vn=ef(({className:e,size:t="md",cellSize:r,mode:a="single",value:i,defaultValue:n,onChange:s,rangeValue:l,onRangeChange:m,viewMonth:p,onViewMonthChange:f,minDate:u,maxDate:P,disabledDates:c=[],weekStartsOn:v=1,highlightToday:x=!0,...M},w)=>{let C=d(t)??B.md,b=d(r??C)??C,[T,I]=Mn(i??n??null),[S,H]=Mn(i??n??new Date),k=p??S,_=sr((g)=>{if(f){let y=typeof g==="function"?g(p??S):g;f(y)}else H((y)=>{return typeof g==="function"?g(y):g})},[p,S,f]),X=i!==void 0?i:T,O=u?mt(u):null,U=P?mt(P):null;tf(()=>{if(i!==void 0){if(I(i??null),i&&!p)H(i)}},[i,p]);let z=sr((g,y)=>{return(new Date(g,y,1).getDay()-v+7)%7},[v]),A=wn(()=>{let g=k.getFullYear(),y=k.getMonth(),N=z(g,y),ce=new Date(g,y+1,0).getDate(),q=[];for(let E=0;E<N;E+=1)q.push({key:`leading-${g}-${y}-${E}`,date:null});for(let E=1;E<=ce;E+=1)q.push({key:`day-${g}-${y}-${E}`,date:new Date(g,y,E)});let Ae=(7-q.length%7)%7;for(let E=0;E<Ae;E+=1)q.push({key:`trailing-${g}-${y}-${E}`,date:null});return q},[k,z]),h=sr((g)=>{let y=mt(g);if(O&&y<O)return!0;if(U&&y>U)return!0;return c.some((N)=>lr(y,mt(N)))},[O,U,c]),V=sr((g)=>{if(h(g))return"disabled";if(a==="range"&&l){let{from:y,to:N}=l;if(y&&lr(g,y))return"rangeStart";if(N&&lr(g,N))return"rangeEnd";if(y&&N){let ce=mt(g),q=mt(y),Ae=mt(N);if(ce>q&&ce<Ae)return"range"}}if(a==="single"&&X&&lr(g,X))return"selected";if(x&&lr(g,new Date))return"today";return"default"},[X,x,h,a,l]),J=sr((g)=>{if(h(g))return;let y=new Date(g);if(a==="range"){if(!l?.from||l.from&&l.to)m?.({from:y,to:void 0});else{let N=mt(l.from);if(mt(y)<N)m?.({from:y,to:l.from});else m?.({from:l.from,to:y})}return}if(i===void 0)I(y);s?.(y)},[h,a,s,m,l,i]),L=sr((g)=>{_((y)=>{let N=new Date(y);return N.setMonth(N.getMonth()+g),N})},[_]),K=wn(()=>{return[...Nn.slice(v),...Nn.slice(0,v)]},[v]);return Re("div",{ref:w,className:o(Ln({size:C}),e),...M,children:[Re("div",{className:o(Rn({size:C})),children:[Re("button",{type:"button",onClick:()=>L(-1),className:o(za({size:C})),"aria-label":"Previous month",children:Re("svg",{className:"size-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:Re("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),Re("span",{className:o(Hn({size:C})),children:[of[k.getMonth()]," ",k.getFullYear()]},void 0,!0,void 0,this),Re("button",{type:"button",onClick:()=>L(1),className:o(za({size:C})),"aria-label":"Next month",children:Re("svg",{className:"size-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:Re("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),Re("div",{className:o(kn({size:C})),children:[K.map((g)=>Re("div",{className:o(An({size:b})),children:g},g,!1,void 0,this)),A.map((g)=>{if(!g.date)return Re("div",{"aria-hidden":"true",className:o(rf({size:b}))},g.key,!1,void 0,this);let y=g.date,N=V(y);return Re("button",{type:"button",onClick:()=>J(y),disabled:N==="disabled",className:o(In({size:b,state:N})),children:y.getDate()},g.key,!1,void 0,this)})]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)});Vn.displayName="Calendar";import{Slot as mr}from"@radix-ui/react-slot";import{cva as af}from"class-variance-authority";import{forwardRef as dr}from"react";import{jsxDEV as pr}from"react/jsx-dev-runtime";var To={default:"default",muted:"muted",danger:"danger"},Bn=af("gs-interactive relative overflow-hidden rounded-[var(--radius)] border bg-card text-card-foreground shadow-[var(--shadow-sm)]",{variants:{variant:{[To.default]:"border-border",[To.muted]:"border-border/70 bg-muted/40",[To.danger]:"border-destructive/30 bg-destructive/[0.06]"}},defaultVariants:{variant:To.default}}),Dn=dr(({asChild:e=!1,className:t,variant:r,...a},i)=>{return pr(e?mr:"div",{ref:i,className:o(Bn({variant:r}),t),...a},void 0,!1,void 0,this)});Dn.displayName="Card";var Fn=dr(({asChild:e=!1,className:t,...r},a)=>{return pr(e?mr:"div",{ref:a,className:o("flex flex-col gap-1.5 border-b border-border/50 p-4",t),...r},void 0,!1,void 0,this)});Fn.displayName="CardHeader";var On=dr(({asChild:e=!1,className:t,...r},a)=>{return pr(e?mr:"div",{ref:a,className:o("p-4",t),...r},void 0,!1,void 0,this)});On.displayName="CardContent";var _n=dr(({asChild:e=!1,className:t,...r},a)=>{return pr(e?mr:"div",{ref:a,className:o("flex items-center border-t border-border/50 p-4",t),...r},void 0,!1,void 0,this)});_n.displayName="CardFooter";var Gn=dr(({asChild:e=!1,className:t,...r},a)=>{return pr(e?mr:"h3",{ref:a,className:o("font-semibold text-base leading-none tracking-tight",t),...r},void 0,!1,void 0,this)});Gn.displayName="CardTitle";var Wn=dr(({asChild:e=!1,className:t,...r},a)=>{return pr(e?mr:"p",{ref:a,className:o("text-sm text-muted-foreground",t),...r},void 0,!1,void 0,this)});Wn.displayName="CardDescription";import*as Co from"@radix-ui/react-checkbox";import{cva as nf}from"class-variance-authority";import{Check as sf,Minus as lf}from"lucide-react";import{forwardRef as mf}from"react";import{jsxDEV as xo}from"react/jsx-dev-runtime";var $e={sm:"sm",md:"md",lg:"lg",xl:"xl"},cr={default:"default",error:"error",success:"success"},$n=nf("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:{[$e.sm]:"h-4 w-4",[$e.md]:"h-5 w-5",[$e.lg]:"h-6 w-6",[$e.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:$e.md,status:cr.default}}),Un={[$e.sm]:"size-3.5",[$e.md]:"size-3.5",[$e.lg]:"size-4",[$e.xl]:"size-5"},Kn=mf(({className:e,size:t=$e.md,status:r=cr.default,checked:a,disabled:i,...n},s)=>{let l=d(t);return xo(Co.Root,{ref:s,checked:a,disabled:i,className:o($n({size:l,status:r}),e),...n,children:xo(Co.Indicator,{className:"gs-checkbox-indicator flex items-center justify-center text-current",children:a==="indeterminate"?xo(lf,{className:Un[l]},void 0,!1,void 0,this):xo(sf,{className:Un[l]},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)});Kn.displayName="Checkbox";import{cva as yt}from"class-variance-authority";import{forwardRef as df,useCallback as pf,useState as cf}from"react";import{jsxDEV as xe,Fragment as Yn}from"react/jsx-dev-runtime";var $={sm:"sm",md:"md",lg:"lg"},wa={default:"default",ghost:"ghost"},Xn=yt("relative rounded-lg overflow-hidden font-mono",{variants:{size:{[$.sm]:"text-xs",[$.md]:"text-sm",[$.lg]:"text-base"},variant:{[wa.default]:"bg-muted border border-border",[wa.ghost]:"bg-transparent"}},defaultVariants:{size:$.md,variant:wa.default}}),qn=yt("flex items-center justify-between border-b border-border bg-muted",{variants:{size:{[$.sm]:"px-2.5 py-1.5 text-xs",[$.md]:"px-4 py-2 text-sm",[$.lg]:"px-5 py-2.5 text-base"}},defaultVariants:{size:$.md}}),Zn=yt("text-muted-foreground font-medium",{variants:{size:{[$.sm]:"text-[11px]",[$.md]:"text-xs",[$.lg]:"text-sm"}},defaultVariants:{size:$.md}}),Jn=yt(["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:{[$.sm]:"px-2 py-1 text-xs",[$.md]:"px-2.5 py-1 text-xs",[$.lg]:"px-3 py-1.5 text-sm"},copied:{true:"text-success",false:""}},defaultVariants:{size:$.md,copied:!1}}),Qn=yt("overflow-x-auto",{variants:{size:{[$.sm]:"p-2.5",[$.md]:"p-4",[$.lg]:"p-5"}},defaultVariants:{size:$.md}}),En=yt("text-foreground",{variants:{size:{[$.sm]:"",[$.md]:"",[$.lg]:""},showLineNumbers:{true:"",false:""}},defaultVariants:{size:$.md,showLineNumbers:!1}}),jn=yt("block",{variants:{size:{[$.sm]:"min-h-[1.25rem]",[$.md]:"min-h-[1.5rem]",[$.lg]:"min-h-[1.75rem]"},highlighted:{true:"bg-primary/10 -mx-4 px-4",false:""}},defaultVariants:{size:$.md,highlighted:!1}}),es=yt("inline-block text-right text-muted-foreground select-none",{variants:{size:{[$.sm]:"w-6 mr-2 text-[10px]",[$.md]:"w-8 mr-4 text-xs",[$.lg]:"w-10 mr-5 text-sm"}},defaultVariants:{size:$.md}}),ts=df(({className:e,code:t,language:r,showLineNumbers:a=!1,highlightedLines:i=[],showCopy:n=!0,size:s="md",variant:l="default",onCopy:m,...p},f)=>{let u=d(s),[P,c]=cf(!1),v=pf(async()=>{try{await navigator.clipboard.writeText(t),c(!0),m?.(t),setTimeout(()=>c(!1),2000)}catch(w){}},[t,m]),x=t.split(`
3
- `),M=new Set(i);return xe("div",{ref:f,className:o(Xn({size:u,variant:l}),e),...p,children:[(r||n)&&xe("div",{className:o(qn({size:u})),children:[xe("span",{className:o(Zn({size:u})),children:r},void 0,!1,void 0,this),n&&xe("button",{type:"button",onClick:v,className:o(Jn({size:u,copied:P})),children:P?xe(Yn,{children:[xe("svg",{className:"size-3.5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:xe("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):xe(Yn,{children:[xe("svg",{className:"size-3.5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:xe("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),xe("div",{className:o(Qn({size:u})),children:xe("pre",{className:o(En({size:u,showLineNumbers:a})),children:xe("code",{children:x.map((w,C)=>xe("span",{className:o(jn({size:u,highlighted:M.has(C+1)})),children:[a&&xe("span",{className:o(es({size:u})),children:C+1},void 0,!1,void 0,this),w,`
4
- `]},`line-${String(C)}`,!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)});ts.displayName="CodeBlock";import*as ur from"@radix-ui/react-collapsible";import{cva as uf}from"class-variance-authority";import{forwardRef as ff}from"react";import{jsxDEV as bf}from"react/jsx-dev-runtime";var rs=uf("gs-collapsible-content overflow-hidden"),gf=ur.Root,vf=ur.CollapsibleTrigger,os=ff(({className:e,...t},r)=>bf(ur.CollapsibleContent,{ref:r,className:o(rs(),e),...t},void 0,!1,void 0,this));os.displayName="CollapsibleContent";import*as Pt from"@radix-ui/react-dialog";import{cva as Ke}from"class-variance-authority";import{createContext as yf,forwardRef as tt,useContext as Pf,useEffect as hf,useState as as}from"react";import{jsxDEV as fe}from"react/jsx-dev-runtime";var is=Ke(["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"}}),ns=Ke(["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"]),ss=Ke(["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"]),ls=Ke(["max-h-[300px] overflow-y-auto overflow-x-hidden p-2"]),ms=Ke(["py-6 text-center text-sm text-muted-foreground"]),ds=Ke(["overflow-hidden"]),ps=Ke(["px-2 py-1.5 text-xs font-medium text-muted-foreground"]),So={default:"default",danger:"danger"},cs=Ke(["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:{[So.default]:"text-foreground",[So.danger]:"text-destructive hover:bg-destructive/10 focus:bg-destructive focus:text-destructive-foreground"}},defaultVariants:{selected:!1,variant:So.default}}),us=Ke(["-mx-1 my-1 h-px bg-border"]),fs=Ke(["ml-auto text-xs tracking-widest text-muted-foreground"]),gs=Ke(["flex items-center justify-center py-6"]),vs=yf(null),Ma=()=>{let e=Pf(vs);if(!e)throw Error("useCommand must be used within a Command");return e},Na=tt(({className:e,children:t,loop:r=!0,...a},i)=>{let[n,s]=as(""),[l,m]=as(0);return fe(vs.Provider,{value:{search:n,setSearch:s,selectedIndex:l,setSelectedIndex:m},children:fe("div",{ref:i,className:o("flex flex-col overflow-hidden rounded-xl bg-background",e),...a,children:t},void 0,!1,void 0,this)},void 0,!1,void 0,this)});Na.displayName="Command";var bs=tt(({children:e,size:t,...r},a)=>{return fe(Pt.Root,{...r,children:fe(Pt.Portal,{children:[fe(Pt.Overlay,{className:o(ns())},void 0,!1,void 0,this),fe(Pt.Content,{ref:a,className:o(is({size:t})),children:fe(Na,{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)});bs.displayName="CommandDialog";var ys=tt(({className:e,icon:t,...r},a)=>{let{search:i,setSearch:n,setSelectedIndex:s}=Ma();return fe("div",{className:"flex items-center border-border border-b px-3",children:[t&&fe("span",{className:"mr-2 shrink-0 text-muted-foreground",children:t},void 0,!1,void 0,this),fe("input",{ref:a,value:i,onChange:(l)=>{n(l.target.value),s(0)},className:o(ss(),e),...r},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});ys.displayName="CommandInput";var Ps=tt(({className:e,children:t,...r},a)=>{return fe("div",{ref:a,className:o(ls(),e),...r,children:t},void 0,!1,void 0,this)});Ps.displayName="CommandList";var hs=tt(({className:e,children:t="No results found.",...r},a)=>{return fe("div",{ref:a,className:o(ms(),e),...r,children:t},void 0,!1,void 0,this)});hs.displayName="CommandEmpty";var Ts=tt(({className:e,heading:t,children:r,...a},i)=>{return fe("div",{ref:i,className:o(ds(),e),...a,children:[t&&fe("div",{className:o(ps()),children:t},void 0,!1,void 0,this),r]},void 0,!0,void 0,this)});Ts.displayName="CommandGroup";var xs=tt(({className:e,disabled:t,onSelect:r,children:a,keywords:i,variant:n,...s},l)=>{let{search:m}=Ma();if(!(()=>{if(!m)return!0;let f=m.toLowerCase();if((typeof a==="string"?a.toLowerCase():"").includes(f))return!0;if(i?.some((P)=>P.toLowerCase().includes(f)))return!0;return!1})())return null;return fe("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:o(cs({selected:!1,variant:n}),e),...s,children:a},void 0,!1,void 0,this)});xs.displayName="CommandItem";var Cs=tt(({className:e,...t},r)=>{return fe("div",{ref:r,className:o(us(),e),...t},void 0,!1,void 0,this)});Cs.displayName="CommandSeparator";var Ss=tt(({className:e,children:t,...r},a)=>{return fe("span",{ref:a,className:o(fs(),e),...r,children:t},void 0,!1,void 0,this)});Ss.displayName="CommandShortcut";var zs=tt(({className:e,children:t,...r},a)=>{return fe("div",{ref:a,className:o(gs(),e),...r,children:t},void 0,!1,void 0,this)});zs.displayName="CommandLoading";var Tf=({key:e,modifier:t="meta",callback:r})=>{hf(()=>{let a=(i)=>{if({ctrl:i.ctrlKey,meta:i.metaKey,alt:i.altKey,shift:i.shiftKey}[t]&&i.key.toLowerCase()===e.toLowerCase())i.preventDefault(),r()};return document.addEventListener("keydown",a),()=>document.removeEventListener("keydown",a)},[e,t,r])};import*as D from"@radix-ui/react-context-menu";import{cva as It}from"class-variance-authority";import{Check as xf,ChevronRight as Cf,Circle as Sf}from"lucide-react";import{createContext as zf,forwardRef as ht,useContext as fr}from"react";import{jsxDEV as me}from"react/jsx-dev-runtime";var G={sm:"sm",md:"md",lg:"lg"},zo={default:"default",danger:"danger"},Vt=zf(G.md),La=It("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)]"),Ra=It("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:{[G.sm]:"h-6 gap-1.5 px-1.5 text-xs [&_svg]:size-3",[G.md]:"h-8 gap-2 px-2 text-sm [&_svg]:size-4",[G.lg]:"h-9 gap-2 px-2.5 text-sm [&_svg]:size-4"},variant:{[zo.default]:"hover:bg-accent/80 focus:bg-accent focus:text-accent-foreground",[zo.danger]:"text-destructive hover:bg-destructive/10 focus:bg-destructive focus:text-destructive-foreground"}},defaultVariants:{size:G.md,variant:zo.default}}),ws=It("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:{[G.sm]:"h-6 pl-6 pr-1.5 text-xs",[G.md]:"h-8 pl-8 pr-2 text-sm",[G.lg]:"h-9 pl-8 pr-2.5 text-sm"}},defaultVariants:{size:G.md}}),Ms=It("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:{[G.sm]:"h-6 pl-6 pr-1.5 text-xs",[G.md]:"h-8 pl-8 pr-2 text-sm",[G.lg]:"h-9 pl-8 pr-2.5 text-sm"}},defaultVariants:{size:G.md}}),Ns=It("font-semibold text-muted-foreground",{variants:{size:{[G.sm]:"px-1.5 py-0.5 text-[10px]",[G.md]:"px-2 py-1.5 text-xs",[G.lg]:"px-2.5 py-1.5 text-xs"}},defaultVariants:{size:G.md}}),Ls=It("-mx-1 my-1 h-px bg-border/50"),Rs=It("ml-auto tracking-widest text-muted-foreground/70",{variants:{size:{[G.sm]:"text-[10px]",[G.md]:"text-xs",[G.lg]:"text-xs"}},defaultVariants:{size:G.md}}),Hs={[G.sm]:"absolute left-1.5 flex size-3 items-center justify-center",[G.md]:"absolute left-2 flex size-3.5 items-center justify-center",[G.lg]:"absolute left-2.5 flex size-4 items-center justify-center"},wf={[G.sm]:"size-3",[G.md]:"size-3.5",[G.lg]:"size-4"},Mf={[G.sm]:"size-1.5 fill-current",[G.md]:"size-2 fill-current",[G.lg]:"size-2.5 fill-current"},Nf=D.Root,Lf=D.Trigger,Rf=D.Group,Hf=D.Portal,kf=D.Sub,Af=D.RadioGroup,ks=ht(({className:e,inset:t,children:r,...a},i)=>{let n=fr(Vt),s=d(n);return me(D.SubTrigger,{ref:i,className:o(Ra({size:s}),"data-[state=open]:bg-accent",t&&"pl-8",e),...a,children:[r,me(Cf,{className:"ml-auto"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});ks.displayName=D.SubTrigger.displayName;var As=ht(({className:e,...t},r)=>me(D.Portal,{children:me(D.SubContent,{ref:r,className:o(La(),e),...t},void 0,!1,void 0,this)},void 0,!1,void 0,this));As.displayName=D.SubContent.displayName;var Is=ht(({className:e,size:t,...r},a)=>{let i=d(t)??G.md;return me(Vt.Provider,{value:i,children:me(D.Portal,{children:me(D.Content,{ref:a,className:o(La(),e),...r},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)});Is.displayName=D.Content.displayName;var Vs=ht(({className:e,inset:t,variant:r,...a},i)=>{let n=fr(Vt),s=d(n);return me(D.Item,{ref:i,className:o(Ra({size:s,variant:r}),t&&"pl-8",e),...a},void 0,!1,void 0,this)});Vs.displayName=D.Item.displayName;var Bs=ht(({className:e,children:t,checked:r,...a},i)=>{let n=fr(Vt),s=d(n)??G.md;return me(D.CheckboxItem,{ref:i,className:o(ws({size:s}),e),checked:r,...a,children:[me("span",{className:Hs[s],children:me(D.ItemIndicator,{children:me(xf,{className:wf[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)});Bs.displayName=D.CheckboxItem.displayName;var Ds=ht(({className:e,children:t,...r},a)=>{let i=fr(Vt),n=d(i)??G.md;return me(D.RadioItem,{ref:a,className:o(Ms({size:n}),e),...r,children:[me("span",{className:Hs[n],children:me(D.ItemIndicator,{children:me(Sf,{className:Mf[n]},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)});Ds.displayName=D.RadioItem.displayName;var Fs=ht(({className:e,inset:t,...r},a)=>{let i=fr(Vt),n=d(i);return me(D.Label,{ref:a,className:o(Ns({size:n}),t&&"pl-8",e),...r},void 0,!1,void 0,this)});Fs.displayName=D.Label.displayName;var Os=ht(({className:e,...t},r)=>me(D.Separator,{ref:r,className:o(Ls(),e),...t},void 0,!1,void 0,this));Os.displayName=D.Separator.displayName;var _s=({className:e,...t})=>{let r=fr(Vt),a=d(r);return me("span",{className:o(Rs({size:a}),e),...t},void 0,!1,void 0,this)};_s.displayName="ContextMenuShortcut";import*as ve from"@radix-ui/react-dialog";import{cva as If}from"class-variance-authority";import{X as Vf}from"lucide-react";import{forwardRef as wo}from"react";import{jsxDEV as Ye}from"react/jsx-dev-runtime";var Tt={sm:"sm",md:"md",lg:"lg",xl:"xl",full:"full"},Ha=ve.Root,Bf=ve.Trigger,Gs=ve.Portal,Df=ve.Close,ka=wo(({className:e,...t},r)=>Ye(ve.Overlay,{ref:r,className:o("gs-dialog-overlay fixed inset-0 z-50 bg-black/50",e),...t},void 0,!1,void 0,this));ka.displayName="DialogOverlay";var Ws=If("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:{[Tt.sm]:"max-w-sm",[Tt.md]:"max-w-md",[Tt.lg]:"max-w-lg",[Tt.xl]:"max-w-xl",[Tt.full]:"max-w-[calc(100vw-2rem)] max-h-[calc(100vh-2rem)]"}},defaultVariants:{size:Tt.md}}),Mo=wo(({className:e,children:t,size:r=Tt.md,showClose:a=!0,...i},n)=>{let s=d(r);return Ye(Gs,{children:[Ye(ka,{},void 0,!1,void 0,this),Ye(ve.Content,{ref:n,className:o(Ws({size:s}),e),...i,children:[t,a&&Ye(ve.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:[Ye(Vf,{className:"size-4"},void 0,!1,void 0,this),Ye("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)});Mo.displayName="DialogContent";var Us=({className:e,...t})=>Ye("div",{className:o("flex flex-col space-y-1.5 text-center sm:text-left",e),...t},void 0,!1,void 0,this);Us.displayName="DialogHeader";var $s=({className:e,...t})=>Ye("div",{className:o("flex flex-col-reverse sm:flex-row sm:justify-end sm:gap-2.5",e),...t},void 0,!1,void 0,this);$s.displayName="DialogFooter";var Ks=wo(({className:e,...t},r)=>Ye(ve.Title,{ref:r,className:o("font-semibold text-lg leading-none tracking-tight",e),...t},void 0,!1,void 0,this));Ks.displayName="DialogTitle";var Ys=wo(({className:e,...t},r)=>Ye(ve.Description,{ref:r,className:o("text-muted-foreground text-sm",e),...t},void 0,!1,void 0,this));Ys.displayName="DialogDescription";import{cva as Aa}from"class-variance-authority";import{X as Ff}from"lucide-react";import{forwardRef as No}from"react";import{Drawer as dt}from"vaul";import{jsxDEV as Ve}from"react/jsx-dev-runtime";var Be={sm:"sm",md:"md",lg:"lg",xl:"xl",full:"full"},Of={[Be.sm]:"sm:max-w-sm",[Be.md]:"sm:max-w-md",[Be.lg]:"sm:max-w-lg",[Be.xl]:"sm:max-w-xl",[Be.full]:"sm:max-w-full"},_f={[Be.sm]:"sm:max-h-[30vh]",[Be.md]:"sm:max-h-[50vh]",[Be.lg]:"sm:max-h-[70vh]",[Be.xl]:"sm:max-h-[85vh]",[Be.full]:"sm:max-h-full"},Xs=Aa(["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"]),qs=Aa(["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"]),Zs=Aa("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"}}),Gf=dt.Root,Wf=dt.Trigger,Uf=dt.Close,Js=dt.Portal,Ia=No(({className:e,...t},r)=>Ve(dt.Overlay,{ref:r,className:o(Xs(),e),...t},void 0,!1,void 0,this));Ia.displayName="DrawerOverlay";var Qs=No(({size:e=Be.md,showClose:t=!1,direction:r="bottom",className:a,children:i,...n},s)=>{let m=r==="left"||r==="right"?Of[e]:_f[e];return Ve(Js,{children:[Ve(Ia,{},void 0,!1,void 0,this),Ve(dt.Content,{ref:s,className:o(qs(),m,a),...n,children:[(r==="top"||r==="bottom")&&Ve("div",{className:o(Zs({direction:r}))},void 0,!1,void 0,this),i,t&&Ve(dt.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:[Ve(Ff,{className:"size-4"},void 0,!1,void 0,this),Ve("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)});Qs.displayName="DrawerContent";var Es=({className:e,...t})=>Ve("div",{className:o("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);Es.displayName="DrawerHeader";var js=({className:e,...t})=>Ve("div",{className:o("mt-auto flex flex-col gap-2 p-4",e),...t},void 0,!1,void 0,this);js.displayName="DrawerFooter";var el=No(({className:e,...t},r)=>Ve(dt.Title,{ref:r,className:o("font-semibold text-foreground text-lg",e),...t},void 0,!1,void 0,this));el.displayName="DrawerTitle";var tl=No(({className:e,...t},r)=>Ve(dt.Description,{ref:r,className:o("text-muted-foreground text-sm",e),...t},void 0,!1,void 0,this));tl.displayName="DrawerDescription";import*as F from"@radix-ui/react-dropdown-menu";import{cva as Dt}from"class-variance-authority";import{Check as $f,ChevronRight as Kf,Circle as Yf}from"lucide-react";import{createContext as Xf,forwardRef as xt,useCallback as qf,useContext as gr,useEffect as Zf,useRef as rl,useState as Jf}from"react";import{jsxDEV as se}from"react/jsx-dev-runtime";var W={sm:"sm",md:"md",lg:"lg"},Lo={default:"default",danger:"danger"},Ft=Xf(W.md),Bt=null,_r=null,Qf=0,Va=Dt("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)]"),Ba=Dt("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:{[W.sm]:"h-6 gap-1.5 px-1.5 text-xs [&_svg]:size-3",[W.md]:"h-8 gap-2 px-2 text-sm [&_svg]:size-4",[W.lg]:"h-9 gap-2 px-2.5 text-sm [&_svg]:size-4"},variant:{[Lo.default]:"hover:bg-accent/80 focus:bg-accent focus:text-accent-foreground",[Lo.danger]:"text-destructive hover:bg-destructive/10 focus:bg-destructive focus:text-destructive-foreground"}},defaultVariants:{size:W.md,variant:Lo.default}}),ol=Dt("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:{[W.sm]:"h-6 pl-6 pr-1.5 text-xs",[W.md]:"h-8 pl-8 pr-2 text-sm",[W.lg]:"h-9 pl-8 pr-2.5 text-sm"}},defaultVariants:{size:W.md}}),al=Dt("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:{[W.sm]:"h-6 pl-6 pr-1.5 text-xs",[W.md]:"h-8 pl-8 pr-2 text-sm",[W.lg]:"h-9 pl-8 pr-2.5 text-sm"}},defaultVariants:{size:W.md}}),il=Dt("font-semibold text-muted-foreground",{variants:{size:{[W.sm]:"px-1.5 py-0.5 text-[10px]",[W.md]:"px-2 py-1.5 text-xs",[W.lg]:"px-2.5 py-1.5 text-xs"}},defaultVariants:{size:W.md}}),nl=Dt("-mx-1 my-1 h-px bg-border/50"),sl=Dt("ml-auto tracking-widest text-muted-foreground/70",{variants:{size:{[W.sm]:"text-[10px]",[W.md]:"text-xs",[W.lg]:"text-xs"}},defaultVariants:{size:W.md}}),ll={[W.sm]:"absolute left-1.5 flex size-3 items-center justify-center",[W.md]:"absolute left-2 flex size-3.5 items-center justify-center",[W.lg]:"absolute left-2.5 flex size-4 items-center justify-center"},Ef={[W.sm]:"size-3",[W.md]:"size-3.5",[W.lg]:"size-4"},jf={[W.sm]:"size-1.5 fill-current",[W.md]:"size-2 fill-current",[W.lg]:"size-2.5 fill-current"},ml=({children:e,open:t,defaultOpen:r,onOpenChange:a,...i})=>{let[n,s]=Jf(r??!1),l=t!==void 0,m=l?t:n,p=rl(++Qf),f=rl({onOpenChange:a,isControlled:l});f.current={onOpenChange:a,isControlled:l};let u=qf((P)=>{let{onOpenChange:c,isControlled:v}=f.current;if(P){if(Bt!==null&&Bt!==p.current&&_r)_r();Bt=p.current,_r=()=>{let{onOpenChange:x,isControlled:M}=f.current;if(!M)s(!1);x?.(!1)}}else if(Bt===p.current)Bt=null,_r=null;if(!v)s(P);c?.(P)},[]);return Zf(()=>{return()=>{if(Bt===p.current)Bt=null,_r=null}},[]),se(F.Root,{open:m,onOpenChange:u,...i,children:e},void 0,!1,void 0,this)};ml.displayName="DropdownMenu";var eg=F.Trigger,tg=F.Group,rg=F.Portal,og=F.Sub,ag=F.RadioGroup,dl=xt(({className:e,inset:t,children:r,...a},i)=>{let n=gr(Ft),s=d(n);return se(F.SubTrigger,{ref:i,className:o(Ba({size:s}),"data-[state=open]:bg-accent",t&&"pl-8",e),...a,children:[r,se(Kf,{className:"ml-auto"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});dl.displayName=F.SubTrigger.displayName;var pl=xt(({className:e,...t},r)=>se(F.Portal,{children:se(F.SubContent,{ref:r,className:o(Va(),e),...t},void 0,!1,void 0,this)},void 0,!1,void 0,this));pl.displayName=F.SubContent.displayName;var cl=xt(({className:e,sideOffset:t=4,size:r,...a},i)=>{let n=d(r)??W.md;return se(Ft.Provider,{value:n,children:se(F.Portal,{children:se(F.Content,{ref:i,sideOffset:t,className:o(Va(),e),...a},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)});cl.displayName=F.Content.displayName;var ul=xt(({className:e,inset:t,variant:r,...a},i)=>{let n=gr(Ft),s=d(n);return se(F.Item,{ref:i,className:o(Ba({size:s,variant:r}),t&&"pl-8",e),...a},void 0,!1,void 0,this)});ul.displayName=F.Item.displayName;var fl=xt(({className:e,children:t,checked:r,...a},i)=>{let n=gr(Ft),s=d(n)??W.md;return se(F.CheckboxItem,{ref:i,className:o(ol({size:s}),e),checked:r,...a,children:[se("span",{className:ll[s],children:se(F.ItemIndicator,{children:se($f,{className:Ef[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=F.CheckboxItem.displayName;var gl=xt(({className:e,children:t,...r},a)=>{let i=gr(Ft),n=d(i)??W.md;return se(F.RadioItem,{ref:a,className:o(al({size:n}),e),...r,children:[se("span",{className:ll[n],children:se(F.ItemIndicator,{children:se(Yf,{className:jf[n]},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=F.RadioItem.displayName;var vl=xt(({className:e,inset:t,...r},a)=>{let i=gr(Ft),n=d(i);return se(F.Label,{ref:a,className:o(il({size:n}),t&&"pl-8",e),...r},void 0,!1,void 0,this)});vl.displayName=F.Label.displayName;var bl=xt(({className:e,...t},r)=>se(F.Separator,{ref:r,className:o(nl(),e),...t},void 0,!1,void 0,this));bl.displayName=F.Separator.displayName;var yl=({className:e,...t})=>{let r=gr(Ft),a=d(r);return se("span",{className:o(sl({size:a}),e),...t},void 0,!1,void 0,this)};yl.displayName="DropdownMenuShortcut";import{cva as Wr}from"class-variance-authority";import{forwardRef as ig}from"react";import{jsxDEV as Gr}from"react/jsx-dev-runtime";var be={sm:"sm",md:"md",lg:"lg"},Pl=Wr("flex flex-col items-center justify-center text-center rounded-[var(--radius)] border border-dashed border-border/50 bg-muted/20",{variants:{size:{[be.sm]:"gap-2 p-4",[be.md]:"gap-4 p-8",[be.lg]:"gap-6 p-12"}},defaultVariants:{size:be.md}}),hl=Wr("flex items-center justify-center rounded-full bg-muted/50 text-muted-foreground",{variants:{size:{[be.sm]:"h-10 w-10 [&>svg]:h-4 [&>svg]:w-4",[be.md]:"h-16 w-16 [&>svg]:h-7 [&>svg]:w-7",[be.lg]:"h-20 w-20 [&>svg]:h-9 [&>svg]:w-9"}},defaultVariants:{size:be.md}}),Tl=Wr("font-semibold text-foreground",{variants:{size:{[be.sm]:"text-sm",[be.md]:"text-lg",[be.lg]:"text-xl"}},defaultVariants:{size:be.md}}),xl=Wr("text-muted-foreground max-w-sm",{variants:{size:{[be.sm]:"text-xs",[be.md]:"text-sm",[be.lg]:"text-base"}},defaultVariants:{size:be.md}}),Cl=Wr("flex items-center gap-2 mt-2"),Sl=ig(({className:e,icon:t,title:r,description:a,actions:i,size:n=be.md,children:s,...l},m)=>{let p=d(n);return Gr("div",{ref:m,className:o(Pl({size:p}),e),...l,children:[t&&Gr("div",{className:hl({size:p}),children:t},void 0,!1,void 0,this),r&&Gr("h3",{className:Tl({size:p}),children:r},void 0,!1,void 0,this),a&&Gr("p",{className:xl({size:p}),children:a},void 0,!1,void 0,this),i&&Gr("div",{className:Cl(),children:i},void 0,!1,void 0,this),s]},void 0,!0,void 0,this)});Sl.displayName="EmptyState";import{cva as vr}from"class-variance-authority";import{Component as ng,createElement as zl}from"react";import{jsxDEV as Ce,Fragment as lg}from"react/jsx-dev-runtime";var wl=vr(["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"}}),Ml=vr(["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"}}),Nl=vr("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"}}),Ll=vr("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"}}),Rl=vr("mt-2 flex flex-wrap items-center justify-center gap-2"),Hl=vr("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 kl extends ng{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:a="md",variant:i="destructive",className:n,title:s="Something went wrong",description:l="An unexpected error occurred. Please try again.",icon:m,actions:p,resetLabel:f="Try again",hideReset:u=!1,renderDetails:P}=this.props;if(this.state.hasError&&this.state.error){let c={error:this.state.error,reset:this.handleReset};if(t){if(typeof t==="function")return zl(t,c);return t}let v=null;if(p)v=typeof p==="function"?zl(p,c):p;else if(!u){let M={destructive:"border-destructive/30 bg-destructive text-destructive-foreground hover:bg-destructive/90",warning:"border-warning/30 bg-warning text-warning-foreground hover:bg-warning/90",info:"border-info/30 bg-info text-info-foreground hover:bg-info/90"};v=Ce("button",{type:"button",onClick:this.handleReset,className:o("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[i]),children:f},void 0,!1,void 0,this)}let x=P?P(this.state.error):Ce(lg,{children:[Ce("strong",{children:"Error:"},void 0,!1,void 0,this)," ",this.state.error.message,this.state.error.stack&&Ce("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 Ce("div",{className:o(wl({size:a,variant:i}),n),children:[Ce("div",{className:o(Ml({size:a,variant:i})),children:m??Ce(sg,{},void 0,!1,void 0,this)},void 0,!1,void 0,this),Ce("h3",{className:o(Nl({size:a,variant:i})),children:s},void 0,!1,void 0,this),Ce("p",{className:o(Ll({size:a})),children:l},void 0,!1,void 0,this),v&&Ce("div",{className:o(Rl()),children:v},void 0,!1,void 0,this),r&&Ce("div",{className:o(Hl()),children:x},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}return e}}function sg(){return Ce("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:[Ce("circle",{cx:"12",cy:"12",r:"10"},void 0,!1,void 0,this),Ce("line",{x1:"12",x2:"12",y1:"8",y2:"12"},void 0,!1,void 0,this),Ce("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 Ct}from"class-variance-authority";import{forwardRef as mg,useCallback as Xe,useRef as dg,useState as Al}from"react";import{jsxDEV as Pe}from"react/jsx-dev-runtime";var ee={sm:"sm",md:"md",lg:"lg",xl:"xl"},Il=Ct(["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:{[ee.sm]:"min-h-28 p-5",[ee.md]:"min-h-36 p-8",[ee.lg]:"min-h-44 p-10",[ee.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:ee.md,isDragging:!1,disabled:!1,hasError:!1}}),Vl=Ct("text-muted-foreground transition-colors duration-200",{variants:{size:{[ee.sm]:"mb-2 size-6",[ee.md]:"size-8 mb-3",[ee.lg]:"size-10 mb-4",[ee.xl]:"size-12 mb-5"},isDragging:{true:"text-primary",false:""}},defaultVariants:{size:ee.md,isDragging:!1}}),Da=Ct("text-center",{variants:{size:{[ee.sm]:"text-sm",[ee.md]:"text-sm",[ee.lg]:"text-base",[ee.xl]:"text-lg"}},defaultVariants:{size:ee.md}}),Bl=Ct("mt-4 w-full space-y-2"),Dl=Ct(["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"]),Fl=Ct("min-w-0 flex-1 truncate font-medium text-foreground",{variants:{size:{[ee.sm]:"text-sm",[ee.md]:"text-sm",[ee.lg]:"text-base",[ee.xl]:"text-base"}},defaultVariants:{size:"md"}}),Ol=Ct("text-muted-foreground",{variants:{size:{[ee.sm]:"text-xs",[ee.md]:"text-sm",[ee.lg]:"text-sm",[ee.xl]:"text-base"}},defaultVariants:{size:"md"}}),_l=Ct(["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"]),Gl=mg(({className:e,size:t="md",disabled:r=!1,accept:a,multiple:i=!1,maxSize:n,maxFiles:s,value:l=[],onChange:m,onError:p,icon:f,title:u="Drop files here or click to upload",description:P,showFileList:c=!0,...v},x)=>{let M=d(t),[w,C]=Al(!1),[b,T]=Al(!1),I=dg(null),S=Xe((L)=>{if(L===0)return"0 Bytes";let K=1024,g=["Bytes","KB","MB","GB"],y=Math.floor(Math.log(L)/Math.log(K));return`${parseFloat((L/K**y).toFixed(2))} ${g[y]}`},[]),H=Xe((L)=>{let K=[...L];if(T(!1),a){let g=a.split(",").map((y)=>y.trim());if(K=K.filter((y)=>{return g.some((N)=>{if(N.startsWith("."))return y.name.toLowerCase().endsWith(N.toLowerCase());if(N.endsWith("/*"))return y.type.startsWith(N.slice(0,-1));return y.type===N})}),K.length<L.length)p?.("Some files were rejected due to file type"),T(!0)}if(n){let g=K.length;if(K=K.filter((y)=>y.size<=n),K.length<g)p?.(`File size must be less than ${S(n)}`),T(!0)}if(s&&K.length+l.length>s)K=K.slice(0,s-l.length),p?.(`Maximum ${s} files allowed`),T(!0);return K},[a,n,s,l.length,p,S]),k=Xe((L)=>{if(!L||L.length===0)return;let K=Array.from(L),g=H(K);if(g.length>0)if(i)m?.([...l,...g]);else m?.(g.slice(0,1))},[i,l,m,H]),_=Xe((L)=>{L.preventDefault(),L.stopPropagation(),C(!0)},[]),X=Xe((L)=>{L.preventDefault(),L.stopPropagation(),C(!1)},[]),O=Xe((L)=>{L.preventDefault(),L.stopPropagation()},[]),U=Xe((L)=>{if(L.preventDefault(),L.stopPropagation(),C(!1),r)return;k(L.dataTransfer.files)},[r,k]),z=Xe((L)=>{if(k(L.target.files),I.current)I.current.value=""},[k]),A=Xe(()=>{if(!r)I.current?.click()},[r]),h=Xe((L)=>{if(L.key==="Enter"||L.key===" ")L.preventDefault(),A()},[A]),V=Xe((L)=>{let K=l.filter((g,y)=>y!==L);m?.(K)},[l,m]),J=Pe("svg",{className:o(Vl({size:M,isDragging:w})),fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1.5,children:Pe("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 Pe("div",{ref:x,className:o("w-full",e),...v,children:[Pe("div",{role:"button",tabIndex:r?-1:0,onClick:A,onKeyDown:h,onDragEnter:_,onDragLeave:X,onDragOver:O,onDrop:U,className:o(Il({size:M,isDragging:w,disabled:r,hasError:b})),children:[Pe("input",{ref:I,type:"file",accept:a,multiple:i,disabled:r,onChange:z,className:"sr-only"},void 0,!1,void 0,this),f||J,Pe("p",{className:o(Da({size:M}),"font-medium text-foreground"),children:u},void 0,!1,void 0,this),P&&Pe("p",{className:o(Da({size:M}),"mt-1 text-muted-foreground"),children:P},void 0,!1,void 0,this)]},void 0,!0,void 0,this),c&&l.length>0&&Pe("div",{className:o(Bl()),children:l.map((L,K)=>Pe("div",{className:o(Dl()),children:[Pe("svg",{className:"size-5 shrink-0 text-muted-foreground",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1.5,children:Pe("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),Pe("span",{className:o(Fl({size:M})),children:L.name},void 0,!1,void 0,this),Pe("span",{className:o(Ol({size:M})),children:S(L.size)},void 0,!1,void 0,this),Pe("button",{type:"button",onClick:(g)=>{g.stopPropagation(),V(K)},className:o(_l()),"aria-label":`Remove ${L.name}`,children:Pe("svg",{className:"size-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:Pe("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}-${K}`,!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});Gl.displayName="FileUpload";import{cva as pg}from"class-variance-authority";import{createContext as cg,forwardRef as Ro,useContext as ug,useId as fg}from"react";import{jsxDEV as Ot,Fragment as vg}from"react/jsx-dev-runtime";var De={sm:"sm",md:"md",lg:"lg"},Wl=cg(null),Ur=()=>{let e=ug(Wl);if(!e)throw Error("useFormField must be used within a FormField");return e},Ul=pg("flex flex-col",{variants:{size:{[De.sm]:"gap-1",[De.md]:"gap-1.5",[De.lg]:"gap-2"}},defaultVariants:{size:De.md}}),$l=Ro(({className:e,size:t=De.md,error:r,disabled:a=!1,required:i=!1,children:n,...s},l)=>{let m=fg(),p=d(t),f={id:m,size:p,error:r,disabled:a,required:i};return Ot(Wl.Provider,{value:f,children:Ot("div",{ref:l,className:o(Ul({size:p}),e),...s,children:n},void 0,!1,void 0,this)},void 0,!1,void 0,this)});$l.displayName="FormField";var gg={[De.sm]:"text-xs",[De.md]:"text-sm",[De.lg]:"text-base"},Kl=Ro(({className:e,htmlFor:t,children:r,...a},i)=>{let{id:n,size:s,disabled:l,required:m}=Ur();return Ot("label",{ref:i,htmlFor:t??n,className:o("inline-block font-medium text-foreground select-none",gg[s],l&&"cursor-not-allowed opacity-60",e),...a,children:[r,m&&Ot("span",{className:"ml-0.5 text-destructive","aria-hidden":"true",children:"*"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});Kl.displayName="FormFieldLabel";var Yl={[De.sm]:"text-[10px]",[De.md]:"text-xs",[De.lg]:"text-sm"},Xl=Ro(({className:e,...t},r)=>{let{id:a,size:i}=Ur();return Ot("p",{ref:r,id:`${a}-description`,className:o("text-muted-foreground",Yl[i],e),...t},void 0,!1,void 0,this)});Xl.displayName="FormFieldDescription";var ql=Ro(({className:e,children:t,...r},a)=>{let{id:i,size:n,error:s}=Ur(),l=t??s;if(!l)return null;return Ot("p",{ref:a,id:`${i}-error`,role:"alert",className:o("text-destructive",Yl[n],e),...r,children:l},void 0,!1,void 0,this)});ql.displayName="FormFieldError";var Zl=({children:e})=>{let{id:t,disabled:r,required:a,error:i}=Ur(),n=[i?`${t}-error`:void 0,`${t}-description`].filter(Boolean).join(" ");return Ot(vg,{children:e({id:t,disabled:r,required:a,status:i?"error":"default","aria-describedby":n||void 0,"aria-invalid":i?!0:void 0})},void 0,!1,void 0,this)};Zl.displayName="FormFieldControl";import*as _t from"@radix-ui/react-hover-card";import{cva as bg}from"class-variance-authority";import{forwardRef as yg}from"react";import{jsxDEV as Tg}from"react/jsx-dev-runtime";var br={sm:"sm",md:"md",lg:"lg"},Jl=bg("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:{[br.sm]:"w-52 p-3 text-xs",[br.md]:"w-64 p-4 text-sm",[br.lg]:"w-80 p-5 text-sm"}},defaultVariants:{size:br.md}}),Pg=_t.Root,hg=_t.Trigger,Ql=yg(({className:e,align:t="center",sideOffset:r=4,size:a=br.md,...i},n)=>{let s=d(a);return Tg(_t.Content,{ref:n,align:t,sideOffset:r,className:o(Jl({size:s}),e),...i},void 0,!1,void 0,this)});Ql.displayName=_t.Content.displayName;import{cva as xg}from"class-variance-authority";import{X as Cg}from"lucide-react";import{forwardRef as Sg,useRef as zg,useState as wg}from"react";import{jsxDEV as Gt}from"react/jsx-dev-runtime";var $r={default:"default",error:"error",success:"success"},Y={sm:"sm",md:"md",lg:"lg",xl:"xl"},Mg="Clear input",jl=xg("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:{[$r.default]:"focus-visible:ring-primary",[$r.error]:"border-destructive focus-visible:ring-destructive",[$r.success]:"border-success focus-visible:ring-success"},size:{[Y.sm]:"h-8 px-2 text-xs",[Y.md]:"h-10 px-3",[Y.lg]:"h-11 px-4",[Y.xl]:"h-12 px-4 text-base"}},defaultVariants:{status:$r.default,size:Y.md}}),Ng={[Y.sm]:"pl-7",[Y.md]:"pl-9",[Y.lg]:"pl-10",[Y.xl]:"pl-10"},Lg={[Y.sm]:"pr-7",[Y.md]:"pr-9",[Y.lg]:"pr-10",[Y.xl]:"pr-10"},Rg={[Y.sm]:"pr-12",[Y.md]:"pr-16",[Y.lg]:"pr-18",[Y.xl]:"pr-18"},Hg={[Y.sm]:"text-xs left-2",[Y.md]:"text-sm left-3",[Y.lg]:"text-sm left-3.5",[Y.xl]:"text-base left-3.5"},kg={[Y.sm]:"text-xs",[Y.md]:"text-sm",[Y.lg]:"text-sm",[Y.xl]:"text-base"},Ag={[Y.sm]:"size-4",[Y.md]:"size-5",[Y.lg]:"size-5",[Y.xl]:"size-6"};function El(e){if(e===void 0||e===null)return"";if(Array.isArray(e))return e.join("");return String(e)}var em=Sg(({className:e,status:t=$r.default,size:r=Y.md,fullWidth:a=!1,prefix:i,suffix:n,clearable:s=!1,clearAriaLabel:l=Mg,onClear:m,onValueChange:p,disabled:f,readOnly:u,onChange:P,value:c,defaultValue:v,...x},M)=>{let w=Boolean(i),C=Boolean(n),b=d(r),T=zg(null),I=Kr(M,T),[S,H]=wg(()=>El(v)),k=c!==void 0,_=k?El(c):S,X=s&&!f&&!u&&_.length>0,O=C||X,U=C&&X,z=(h)=>{let V=h.target.value;if(!k)H(V);p?.(V),P?.(h)},A=()=>{if(!k)H("");p?.("");let h=T.current;if(h)h.value="",h.dispatchEvent(new Event("input",{bubbles:!0})),h.focus();m?.()};return Gt("div",{className:o("relative flex items-center",a&&"w-full"),children:[w&&Gt("span",{className:o("absolute inset-y-0 flex items-center text-muted-foreground",Hg[b]),children:i},void 0,!1,void 0,this),Gt("input",{ref:I,className:o(jl({status:t,size:b}),w&&Ng[b],U&&Rg[b],!U&&O&&Lg[b],e),disabled:f,readOnly:u,onChange:z,value:_,...x},void 0,!1,void 0,this),O&&Gt("span",{className:o("absolute inset-y-0 right-2 flex items-center gap-1 text-muted-foreground",kg[b]),children:[C&&Gt("span",{className:"inline-flex items-center",children:n},void 0,!1,void 0,this),X&&Gt("button",{type:"button","aria-label":l,onMouseDown:(h)=>h.preventDefault(),onClick:A,className:o("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",Ag[b]),children:Gt(Cg,{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)});em.displayName="Input";import{cva as Ig}from"class-variance-authority";import{forwardRef as Vg}from"react";function Yr(){return Fa()}import{jsxDEV as Bg}from"react/jsx-dev-runtime";var yr={sm:"sm",md:"md",lg:"lg"},tm=Ig("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:{[yr.sm]:"min-w-5 h-5 px-1 text-[10px]",[yr.md]:"min-w-6 h-6 px-1.5 text-xs",[yr.lg]:"min-w-7 h-7 px-2 text-sm"}},defaultVariants:{size:yr.md}}),rm=Vg(({className:e,size:t=yr.md,keys:r,children:a,...i},n)=>{let s=d(t),{isMac:l}=Yr(),m=r?Xr(r,l):a;return Bg("kbd",{ref:n,className:o(tm({size:s}),e),...i,children:m},void 0,!1,void 0,this)});rm.displayName="Kbd";import{cva as Dg}from"class-variance-authority";import{forwardRef as Fg}from"react";import{jsxDEV as om}from"react/jsx-dev-runtime";var Pr={sm:"sm",md:"md",lg:"lg"},am=Dg("inline-block font-medium text-foreground select-none peer-disabled:cursor-not-allowed peer-disabled:opacity-60",{variants:{size:{[Pr.sm]:"text-xs",[Pr.md]:"text-sm",[Pr.lg]:"text-base"}},defaultVariants:{size:Pr.md}}),im=Fg(({className:e,size:t=Pr.md,required:r=!1,disabled:a=!1,children:i,...n},s)=>{let l=d(t);return om("label",{ref:s,className:o(am({size:l}),a&&"cursor-not-allowed opacity-60",e),"aria-disabled":a||void 0,...n,children:[i,r&&om("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 Og=tr;import*as St from"@radix-ui/react-popover";import{cva as Yg}from"class-variance-authority";import{Check as Xg,ChevronDown as qg,X as Zg,X as Jg}from"lucide-react";import{forwardRef as Qg,useCallback as qr,useEffect as Eg,useRef as jg,useState as lm}from"react";import*as Fe from"@radix-ui/react-popover";import{cva as _g}from"class-variance-authority";import{forwardRef as Gg}from"react";import{jsxDEV as nm}from"react/jsx-dev-runtime";var hr={sm:"sm",md:"md",lg:"lg"},Tr=_g("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:{[hr.sm]:"w-56 p-3 text-sm",[hr.md]:"w-72 p-4 text-sm",[hr.lg]:"w-96 p-5 text-sm"}},defaultVariants:{size:hr.md}}),Wg=Fe.Root,Ug=Fe.Trigger,$g=Fe.Anchor,Kg=Fe.Close,sm=Gg(({className:e,align:t="center",sideOffset:r=4,portal:a=!0,portalContainer:i,size:n=hr.md,...s},l)=>{let m=d(n),p=nm(Fe.Content,{ref:l,align:t,sideOffset:r,className:o(Tr({size:m}),e),...s},void 0,!1,void 0,this);if(a)return nm(Fe.Portal,{container:i??void 0,children:p},void 0,!1,void 0,this);return p});sm.displayName="PopoverContent";import{jsxDEV as re,Fragment as rv}from"react/jsx-dev-runtime";var de={sm:"sm",md:"md",lg:"lg",xl:"xl"},mm=Yg(["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:{[de.sm]:"min-h-8 px-2.5 py-1 text-xs",[de.md]:"min-h-10 px-3.5 py-1.5",[de.lg]:"min-h-11 px-4.5 py-2 text-sm",[de.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:de.md,status:"default"}}),ev={[de.sm]:"h-5 px-1.5 text-[10px]",[de.md]:"h-6 px-2 text-xs",[de.lg]:"h-6.5 px-2.5 text-xs",[de.xl]:"h-7 px-2.5 text-sm"},tv={[de.sm]:"min-h-7 py-1 px-2 text-xs",[de.md]:"min-h-9 py-2 px-3 text-sm",[de.lg]:"min-h-10 py-2.5 px-3.5 text-sm",[de.xl]:"min-h-11 py-3 px-4 text-base"},Ho={[de.sm]:"size-3.5",[de.md]:"size-4",[de.lg]:"size-4",[de.xl]:"size-4.5"},dm=Qg(({className:e,options:t,value:r,defaultValue:a=[],onValueChange:i,placeholder:n="Select options...",size:s=de.md,status:l="default",clearable:m=!1,maxDisplayItems:p=3,disabled:f,...u},P)=>{let c=d(s)??s,[v,x]=lm(!1),[M,w]=lm(a),C=jg(null),b=r!==void 0,T=b?r:M,I=qr((z)=>{let A=T.includes(z)?T.filter((h)=>h!==z):[...T,z];if(!b)w(A);i?.(A)},[T,b,i]),S=qr((z,A)=>{A.stopPropagation();let h=T.filter((V)=>V!==z);if(!b)w(h);i?.(h)},[T,b,i]),H=qr((z)=>{if(z.stopPropagation(),z.preventDefault(),!b)w([]);i?.([])},[b,i]),k=t.filter((z)=>T.includes(z.value)),_=k.length>0,X=m&&_&&!f,O=qr((z)=>{let A=C.current;if(!A)return;let h=Array.from(A.querySelectorAll('[role="option"]:not([data-disabled])'));if(h.length===0)return;let V=A.querySelector('[role="option"]:focus'),J=V?h.indexOf(V):-1,L;switch(z){case"first":L=h[0];break;case"last":L=h[h.length-1];break;case"next":L=h[J+1]??h[0];break;case"prev":L=h[J-1]??h[h.length-1];break}L?.focus()},[]),U=qr((z)=>{switch(z.key){case"ArrowDown":z.preventDefault(),O("next");break;case"ArrowUp":z.preventDefault(),O("prev");break;case"Home":z.preventDefault(),O("first");break;case"End":z.preventDefault(),O("last");break;case"Escape":z.preventDefault(),x(!1);break}},[O]);return Eg(()=>{if(v)requestAnimationFrame(()=>O("first"))},[v,O]),re(St.Root,{open:v,onOpenChange:x,children:[re(St.Trigger,{asChild:!0,children:re("button",{ref:P,type:"button",disabled:f,"data-state":v?"open":"closed","data-placeholder":_?void 0:"",className:o(mm({size:c,status:l}),e),...u,children:[re("span",{className:"flex min-w-0 flex-1 flex-wrap items-center gap-1 text-left",children:_?re(rv,{children:[k.slice(0,p).map((z)=>re("span",{className:o("inline-flex items-center gap-1 rounded-[calc(var(--radius)-4px)] border border-border/60 bg-muted/50 font-medium text-foreground",ev[c]),children:[re("span",{className:"truncate",children:z.label},void 0,!1,void 0,this),re("span",{"data-slot":"multiselect-remove","aria-label":`Remove ${z.label}`,onMouseDown:(A)=>A.preventDefault(),onClick:(A)=>S(z.value,A),className:"ml-0.5 inline-flex shrink-0 items-center justify-center rounded-full opacity-60 hover:opacity-100",children:re(Jg,{className:"h-3 w-3"},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},z.value,!0,void 0,this)),k.length>p&&re("span",{className:"text-muted-foreground text-xs",children:["+",k.length-p]},void 0,!0,void 0,this)]},void 0,!0,void 0,this):re("span",{className:"text-muted-foreground",children:n},void 0,!1,void 0,this)},void 0,!1,void 0,this),re("span",{className:"inline-flex shrink-0 items-center gap-1 text-muted-foreground",children:[X&&re("span",{role:"button",tabIndex:-1,"aria-label":"Clear all",onMouseDown:(z)=>z.preventDefault(),onClick:H,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:re(Zg,{className:Ho[c]},void 0,!1,void 0,this)},void 0,!1,void 0,this),re(qg,{className:o(Ho[c],"opacity-60 transition-transform duration-200 ease-[cubic-bezier(0.16,1,0.3,1)]",v&&"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),re(St.Portal,{children:re(St.Content,{ref:C,role:"listbox","aria-multiselectable":"true",align:"start",sideOffset:4,onKeyDown:U,onOpenAutoFocus:(z)=>z.preventDefault(),className:o(Tr(),"max-h-96 w-[var(--radix-popover-trigger-width)] overflow-y-auto overflow-x-hidden p-1"),children:[t.map((z)=>{let A=T.includes(z.value);return re("div",{role:"option",tabIndex:z.disabled?void 0:-1,"aria-selected":A,"aria-disabled":z.disabled||void 0,"data-disabled":z.disabled?"":void 0,className:o("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",tv[c]),onClick:()=>!z.disabled&&I(z.value),onKeyDown:(h)=>{if(h.key==="Enter"||h.key===" "){if(h.preventDefault(),!z.disabled)I(z.value)}},children:[re("span",{className:o("flex shrink-0 items-center justify-center",Ho[c]),children:A&&re(Xg,{className:Ho[c]},void 0,!1,void 0,this)},void 0,!1,void 0,this),re("span",{className:"min-w-0 flex-1 truncate",children:z.label},void 0,!1,void 0,this)]},z.value,!0,void 0,this)}),t.length===0&&re("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 oe from"@radix-ui/react-navigation-menu";import{cva as Wt}from"class-variance-authority";import{createContext as ov,forwardRef as xr,useContext as av}from"react";import{jsxDEV as He}from"react/jsx-dev-runtime";var qe={sm:"sm",md:"md",lg:"lg"},pm=ov(qe.md),cm=Wt("relative z-10 flex max-w-max flex-1 items-center justify-center"),um=Wt("group flex flex-1 list-none items-center justify-center space-x-1"),fm=Wt(["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:{[qe.sm]:"h-8 px-3 py-1.5 text-xs",[qe.md]:"h-10 px-4 py-2 text-sm",[qe.lg]:"h-12 px-5 py-2.5 text-sm"}},defaultVariants:{size:qe.md}}),gm=Wt(["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=Wt(["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:{[qe.sm]:"p-2 text-xs",[qe.md]:"p-3 text-sm",[qe.lg]:"p-4 text-sm"}},defaultVariants:{size:qe.md}}),vm=Wt(["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)]"]),bm=Wt(["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"]),nv=()=>He("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:He("path",{d:"m6 9 6 6 6-6"},void 0,!1,void 0,this)},void 0,!1,void 0,this),ym=xr(({className:e,children:t,size:r,...a},i)=>{let n=d(r??qe.md);return He(pm.Provider,{value:n,children:He(oe.Root,{ref:i,className:o(cm(),e),...a,children:[t,He(Oa,{},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)});ym.displayName=oe.Root.displayName;var Pm=xr(({className:e,...t},r)=>He(oe.List,{ref:r,className:o(um(),e),...t},void 0,!1,void 0,this));Pm.displayName=oe.List.displayName;var sv=oe.Item,hm=xr(({className:e,children:t,...r},a)=>{let i=av(pm);return He(oe.Trigger,{ref:a,className:o(fm({size:i}),"group",e),...r,children:[t,He(nv,{},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});hm.displayName=oe.Trigger.displayName;var Tm=xr(({className:e,...t},r)=>He(oe.Content,{ref:r,className:o(gm(),e),...t},void 0,!1,void 0,this));Tm.displayName=oe.Content.displayName;var lv=oe.Link,Oa=xr(({className:e,...t},r)=>He("div",{className:"absolute top-full left-0 flex justify-center",children:He(oe.Viewport,{className:o(vm(),e),ref:r,...t},void 0,!1,void 0,this)},void 0,!1,void 0,this));Oa.displayName=oe.Viewport.displayName;var xm=xr(({className:e,...t},r)=>He(oe.Indicator,{ref:r,className:o(bm(),e),...t,children:He("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));xm.displayName=oe.Indicator.displayName;import{cva as Cr}from"class-variance-authority";import{Fragment as mv,forwardRef as dv,useCallback as Ut,useEffect as Cm,useMemo as Sm,useRef as pv,useState as zm}from"react";import{jsxDEV as $t}from"react/jsx-dev-runtime";var Kt={sm:"sm",md:"md",lg:"lg",xl:"xl"},Jr={default:"default",error:"error",success:"success"},Zr={single:"single",first:"first",middle:"middle",last:"last"},wm=Cr("relative inline-flex items-center",{variants:{size:{sm:"gap-1",md:"gap-1.5",lg:"gap-2",xl:"gap-2.5"}},defaultVariants:{size:Kt.md}}),Mm=Cr("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:Kt.md,status:Jr.default}}),Nm=Cr(["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:Kt.md,filled:!1,focused:!1,status:Jr.default,disabled:!1,position:Zr.single}}),Lm=Cr(["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:Kt.md,status:Jr.default,filled:!1}}),Rm=Cr(["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:Kt.md,focused:!1}}),Hm=Cr("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:Kt.md}});function cv(e){if(!Number.isFinite(e))return 6;return Math.max(1,Math.floor(e))}function _a(e,t){let r=(e??"").split("").slice(0,t);if(r.length<t)return r.concat(Array(t-r.length).fill(""));return r}var km=dv(({className:e,length:t=6,value:r,onChange:a,onComplete:i,size:n=Kt.md,status:s=Jr.default,disabled:l=!1,autoFocus:m=!1,mask:p=!1,groupSize:f,separator:u,separatorChar:P="—",placeholder:c="•",inputMode:v="numeric",pattern:x="[0-9]*",...M},w)=>{let C=d(n),b=cv(t),T=pv([]),[I,S]=zm(null),[H,k]=zm(()=>_a(r,b));Cm(()=>{if(r!==void 0){k(_a(r,b));return}k((g)=>_a(g.join(""),b))},[r,b]),Cm(()=>{if(m)T.current[0]?.focus()},[m]);let _=Sm(()=>{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]),X=Sm(()=>{let g=[];for(let y=0;y<b;y+=_){let N=Math.min(y+_,b),ce=[];for(let q=y;q<N;q+=1)ce.push(q);g.push(ce)}return g},[_,b]),O=Ut((g)=>{let y=T.current[g];if(!y)return;y.focus(),y.select()},[]),U=Ut((g)=>{k(g);let y=g.join("");if(a?.(y),g.every((N)=>N!=="")&&y.length===b)i?.(y)},[a,i,b]),z=Ut((g,y)=>{if(l)return;let ce=(v==="numeric"?y.replace(/\D/g,""):y).slice(-1),q=[...H];if(q[g]=ce,U(q),ce&&g<b-1)O(g+1)},[H,l,U,O,v,b]),A=Ut((g,y)=>{if(l)return;if(y.key==="Backspace"){if(y.preventDefault(),H[g]){let N=[...H];N[g]="",U(N);return}if(g>0){let N=[...H];N[g-1]="",U(N),O(g-1)}return}if(y.key==="Delete"){if(y.preventDefault(),H[g]){let N=[...H];N[g]="",U(N)}return}if(y.key==="ArrowLeft"){if(y.preventDefault(),g>0)O(g-1);return}if(y.key==="ArrowRight"){if(y.preventDefault(),g<b-1)O(g+1);return}if(y.key==="Home"){y.preventDefault(),O(0);return}if(y.key==="End")y.preventDefault(),O(b-1)},[H,l,U,O,b]),h=Ut((g,y)=>{if(y.preventDefault(),l)return;let N=y.clipboardData.getData("text"),q=(v==="numeric"?N.replace(/\D/g,""):N.replace(/\s/g,"")).split("");if(q.length===0)return;let Ae=[...H];for(let R=0;R<q.length;R+=1){let j=g+R;if(j>=b)break;Ae[j]=q[R]??""}U(Ae);let E=Math.min(b-1,g+q.length-1);if(E<b-1){O(E+1);return}T.current[E]?.blur()},[H,l,U,O,v,b]),V=Ut((g,y)=>{S(g),y.target.select()},[]),J=Ut(()=>{S(null)},[]),L=u!==void 0,K=P.length>0&&u!==!1&&(L||X.length>1);return $t("div",{ref:w,className:o(wm({size:C}),e),role:"group","aria-label":"One-time password input",...M,children:X.map((g,y)=>$t(mv,{children:[$t("div",{"data-gs-otp-group":"true",className:o(Mm({size:C,status:s})),children:g.map((N,ce)=>{let q=H[N]??"",Ae=I===N,E=Zr.middle;if(g.length===1)E=Zr.single;else if(ce===0)E=Zr.first;else if(ce===g.length-1)E=Zr.last;return $t("div",{"data-gs-otp-slot":"true","data-disabled":l,className:o(Nm({size:C,filled:Boolean(q),focused:Ae,status:s,disabled:l,position:E})),children:[$t("input",{ref:(R)=>{T.current[N]=R},type:p?"password":"text",inputMode:v,pattern:x,maxLength:1,value:q,placeholder:"",disabled:l,"aria-invalid":s===Jr.error,"aria-label":`Digit ${N+1} of ${b}`,autoComplete:"one-time-code",onChange:(R)=>z(N,R.target.value),onKeyDown:(R)=>A(N,R),onPaste:(R)=>h(N,R),onFocus:(R)=>V(N,R),onBlur:J,className:o(Lm({size:C,status:s,filled:Boolean(q)}))},void 0,!1,void 0,this),!q&&$t("div",{"data-gs-otp-placeholder":"true","aria-hidden":"true",className:o(Rm({size:C,focused:Ae})),children:c},void 0,!1,void 0,this)]},`slot-${N}`,!0,void 0,this)})},void 0,!1,void 0,this),K&&y<X.length-1&&$t("span",{"data-gs-otp-separator":"true",className:o(Hm({size:C})),children:P},void 0,!1,void 0,this)]},`group-${g[0]}-${g[g.length-1]}`,!0,void 0,this))},void 0,!1,void 0,this)});km.displayName="OTPInput";import{createContext as yv,useCallback as Sr,useContext as Pv,useMemo as hv,useState as Tv}from"react";import*as ne from"@radix-ui/react-dialog";import{cva as Am}from"class-variance-authority";import{X as uv}from"lucide-react";import{forwardRef as ko}from"react";import{jsxDEV as Ze}from"react/jsx-dev-runtime";var ke={top:"top",right:"right",bottom:"bottom",left:"left"},te={sm:"sm",md:"md",lg:"lg",xl:"xl",full:"full"},fv={[ke.top]:"gs-sheet-content gs-sheet-content-top",[ke.right]:"gs-sheet-content gs-sheet-content-right",[ke.bottom]:"gs-sheet-content gs-sheet-content-bottom",[ke.left]:"gs-sheet-content gs-sheet-content-left"},gv={[ke.right]:{[te.sm]:"sm:max-w-sm",[te.md]:"sm:max-w-md",[te.lg]:"sm:max-w-lg",[te.xl]:"sm:max-w-xl",[te.full]:"sm:max-w-full"},[ke.left]:{[te.sm]:"sm:max-w-sm",[te.md]:"sm:max-w-md",[te.lg]:"sm:max-w-lg",[te.xl]:"sm:max-w-xl",[te.full]:"sm:max-w-full"},[ke.top]:{[te.sm]:"sm:max-h-[30vh]",[te.md]:"sm:max-h-[50vh]",[te.lg]:"sm:max-h-[70vh]",[te.xl]:"sm:max-h-[85vh]",[te.full]:"sm:max-h-full"},[ke.bottom]:{[te.sm]:"sm:max-h-[30vh]",[te.md]:"sm:max-h-[50vh]",[te.lg]:"sm:max-h-[70vh]",[te.xl]:"sm:max-h-[85vh]",[te.full]:"sm:max-h-full"}},Im=Am("gs-sheet-overlay fixed inset-0 z-50 bg-black/50"),Vm=Am("fixed z-50 flex flex-col gap-4 border border-border bg-background p-6 shadow-[var(--shadow-xl)]",{variants:{side:{[ke.top]:"inset-x-0 top-0 border-b",[ke.bottom]:"inset-x-0 bottom-0 border-t",[ke.left]:"inset-y-0 left-0 h-full w-3/4 border-r",[ke.right]:"inset-y-0 right-0 h-full w-3/4 border-l"}},defaultVariants:{side:ke.right}}),Ga=ne.Root,vv=ne.Trigger,bv=ne.Close,Bm=ne.Portal,Wa=ko(({className:e,...t},r)=>Ze(ne.Overlay,{className:o(Im(),e),...t,ref:r},void 0,!1,void 0,this));Wa.displayName=ne.Overlay.displayName;var Ao=ko(({side:e="right",size:t=te.md,showClose:r=!0,className:a,children:i,...n},s)=>{let l=d(t)??te.md,m=fv[e],p=gv[e][l];return Ze(Bm,{children:[Ze(Wa,{},void 0,!1,void 0,this),Ze(ne.Content,{ref:s,className:o(Vm({side:e}),m,p,a),...n,children:[i,r&&Ze(ne.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:[Ze(uv,{className:"size-4"},void 0,!1,void 0,this),Ze("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)});Ao.displayName=ne.Content.displayName;var Dm=({className:e,...t})=>Ze("div",{className:o("flex flex-col space-y-2 text-center sm:text-left",e),...t},void 0,!1,void 0,this);Dm.displayName="SheetHeader";var Fm=({className:e,...t})=>Ze("div",{className:o("flex flex-col-reverse sm:flex-row sm:justify-end sm:gap-2.5",e),...t},void 0,!1,void 0,this);Fm.displayName="SheetFooter";var Om=ko(({className:e,...t},r)=>Ze(ne.Title,{ref:r,className:o("font-semibold text-foreground text-lg",e),...t},void 0,!1,void 0,this));Om.displayName=ne.Title.displayName;var _m=ko(({className:e,...t},r)=>Ze(ne.Description,{ref:r,className:o("text-muted-foreground text-sm",e),...t},void 0,!1,void 0,this));_m.displayName=ne.Description.displayName;import{jsxDEV as pt}from"react/jsx-dev-runtime";var Ua=0;function xv(){return Ua=(Ua+1)%Number.MAX_SAFE_INTEGER,`overlay-${Ua}-${Date.now()}`}var Wm=yv(null),Gm=400;function Um({children:e}){let[t,r]=Tv([]),a=Sr((p)=>{r((f)=>f.map((u)=>u.id===p?{...u,open:!1}:u)),setTimeout(()=>{r((f)=>f.filter((u)=>u.id!==p))},Gm)},[]),i=Sr(()=>{r((p)=>p.map((f)=>({...f,open:!1}))),setTimeout(()=>{r([])},Gm)},[]),n=Sr((p,f,u,P={})=>{let c=xv(),v=(w)=>{return pt(f,{...u,close:w.close},void 0,!1,void 0,this)};v.displayName=`OverlayWrapper(${f.displayName??f.name??"Component"})`;let x={id:c,type:p,component:v,wrapperProps:P,open:!0};return r((w)=>[...w,x]),{id:c,close:()=>a(c)}},[a]),s=Sr((p,f,u)=>{return n("dialog",p,f,u)},[n]),l=Sr((p,f,u)=>{return n("sheet",p,f,u)},[n]),m=hv(()=>({dialog:s,sheet:l,close:a,closeAll:i}),[s,l,a,i]);return pt(Wm.Provider,{value:m,children:[e,t.map((p)=>pt(Cv,{entry:p,onClose:a},p.id,!1,void 0,this))]},void 0,!0,void 0,this)}Um.displayName="OverlayProvider";function Cv({entry:e,onClose:t}){let{id:r,type:a,component:i,wrapperProps:n,open:s}=e,l=Sr(()=>t(r),[r,t]);if(a==="dialog"){let{showClose:m,size:p,...f}=n;return pt(Ha,{open:s,onOpenChange:(u)=>!u&&l(),children:pt(Mo,{showClose:m,size:p,...f,children:pt(i,{close:l},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}if(a==="sheet"){let{side:m,showClose:p,...f}=n;return pt(Ga,{open:s,onOpenChange:(u)=>!u&&l(),children:pt(Ao,{side:m,showClose:p,...f,children:pt(i,{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=Pv(Wm);if(!e)throw Error("useOverlay must be used within an OverlayProvider");return e}import{cva as Qr}from"class-variance-authority";import{ChevronLeft as zv,ChevronRight as wv,MoreHorizontal as Mv}from"lucide-react";import{createContext as Nv,forwardRef as Er,useContext as Io}from"react";import{jsxDEV as we}from"react/jsx-dev-runtime";var Oe={sm:"sm",md:"md",lg:"lg"},jr=Nv(Oe.md),$m=Qr("mx-auto flex w-full justify-center"),Km=Qr("flex flex-row items-center gap-1"),Ym=Qr(""),Vo=Qr("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:{[Oe.sm]:"h-7 w-7 text-xs [&_svg]:size-3.5",[Oe.md]:"h-9 w-9 text-sm [&_svg]:size-4",[Oe.lg]:"h-10 w-10 text-sm [&_svg]:size-5"}},defaultVariants:{isActive:!1,size:Oe.md}}),Xm=Qr("flex items-center justify-center",{variants:{size:{[Oe.sm]:"h-7 w-7 [&_svg]:size-3.5",[Oe.md]:"h-9 w-9 [&_svg]:size-4",[Oe.lg]:"h-10 w-10 [&_svg]:size-5"}},defaultVariants:{size:Oe.md}}),qm=({className:e,size:t=Oe.md,...r})=>{let a=d(t)??Oe.md;return we(jr.Provider,{value:a,children:we("nav",{"aria-label":"pagination",className:o($m(),e),...r},void 0,!1,void 0,this)},void 0,!1,void 0,this)};qm.displayName="Pagination";var Zm=Er(({className:e,...t},r)=>we("ul",{ref:r,className:o(Km(),e),...t},void 0,!1,void 0,this));Zm.displayName="PaginationContent";var Jm=Er(({className:e,...t},r)=>we("li",{ref:r,className:o(Ym(),e),...t},void 0,!1,void 0,this));Jm.displayName="PaginationItem";var Qm=Er(({className:e,isActive:t,...r},a)=>{let i=Io(jr);return we("button",{ref:a,type:"button","aria-current":t?"page":void 0,className:o(Vo({isActive:t,size:i}),e),...r},void 0,!1,void 0,this)});Qm.displayName="PaginationLink";var Em=Er(({className:e,...t},r)=>{let a=Io(jr);return we("button",{ref:r,type:"button","aria-label":"Go to previous page",className:o(Vo({size:a}),"gap-1 pl-2.5 pr-3 w-auto",e),...t,children:[we(zv,{},void 0,!1,void 0,this),we("span",{children:"Previous"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});Em.displayName="PaginationPrevious";var jm=Er(({className:e,...t},r)=>{let a=Io(jr);return we("button",{ref:r,type:"button","aria-label":"Go to next page",className:o(Vo({size:a}),"gap-1 pl-3 pr-2.5 w-auto",e),...t,children:[we("span",{children:"Next"},void 0,!1,void 0,this),we(wv,{},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});jm.displayName="PaginationNext";var ed=({className:e,...t})=>{let r=Io(jr);return we("span",{"aria-hidden":!0,className:o(Xm({size:r}),e),...t,children:[we(Mv,{},void 0,!1,void 0,this),we("span",{className:"sr-only",children:"More pages"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)};ed.displayName="PaginationEllipsis";import*as ro from"@radix-ui/react-progress";import{cva as td}from"class-variance-authority";import{forwardRef as Lv}from"react";import{jsxDEV as Bo}from"react/jsx-dev-runtime";var eo={sm:"sm",md:"md",lg:"lg",xl:"xl"},to={default:"default",success:"success",warning:"warning",error:"error"},rd=td("relative w-full overflow-hidden rounded-full bg-muted",{variants:{size:{[eo.sm]:"h-1",[eo.md]:"h-2.5",[eo.lg]:"h-4",[eo.xl]:"h-5"}},defaultVariants:{size:eo.md}}),od=td("h-full w-full flex-1 rounded-full transition-transform duration-100 ease-out",{variants:{variant:{[to.default]:"bg-primary",[to.success]:"bg-success",[to.warning]:"bg-warning",[to.error]:"bg-destructive"}},defaultVariants:{variant:to.default}}),ad=Lv(({className:e,value:t,size:r,variant:a,showValue:i,...n},s)=>{let l=d(r);return Bo("div",{className:"flex w-full items-center gap-2",children:[Bo(ro.Root,{ref:s,className:o(rd({size:l}),e),...n,children:Bo(ro.Indicator,{className:o(od({variant:a})),style:{transform:`translateX(-${100-(t||0)}%)`}},void 0,!1,void 0,this)},void 0,!1,void 0,this),i&&Bo("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=ro.Root.displayName;import*as wr from"@radix-ui/react-radio-group";import{cva as id}from"class-variance-authority";import{forwardRef as nd}from"react";import{jsxDEV as Do}from"react/jsx-dev-runtime";var Je={sm:"sm",md:"md",lg:"lg",xl:"xl"},zr={default:"default",error:"error",success:"success"},sd=id("grid gap-2"),ld=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:{[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:{[zr.default]:"enabled:hover:border-primary/70",[zr.error]:"border-destructive enabled:hover:border-destructive/70 focus-visible:ring-destructive data-[state=checked]:border-destructive data-[state=checked]:text-destructive",[zr.success]:"border-success enabled:hover:border-success/70 focus-visible:ring-success data-[state=checked]:border-success data-[state=checked]:text-success"}},defaultVariants:{size:Je.md,status:zr.default}}),Rv={[Je.sm]:"h-2 w-2",[Je.md]:"h-2.5 w-2.5",[Je.lg]:"h-3 w-3",[Je.xl]:"h-3.5 w-3.5"},md=nd(({className:e,...t},r)=>Do(wr.Root,{ref:r,className:o(sd(),e),...t},void 0,!1,void 0,this));md.displayName="RadioGroup";var dd=nd(({className:e,size:t=Je.md,status:r=zr.default,...a},i)=>{let n=d(t);return Do(wr.Item,{ref:i,className:o(ld({size:n,status:r}),e),...a,children:Do(wr.Indicator,{className:"flex items-center justify-center",children:Do("span",{className:o("block rounded-full bg-current transition-transform duration-150",Rv[n])},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)});dd.displayName="RadioGroupItem";import{cva as _o}from"class-variance-authority";import{forwardRef as $a,useCallback as Fo,useRef as Hv,useState as kv}from"react";import{jsxDEV as Oo}from"react/jsx-dev-runtime";var pd=_o("flex h-full w-full",{variants:{direction:{horizontal:"flex-row",vertical:"flex-col"}},defaultVariants:{direction:"horizontal"}}),cd=_o("relative overflow-hidden"),ud=_o("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}}),fd=_o("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"}}),gd=$a(({className:e,direction:t="horizontal",children:r,...a},i)=>Oo("div",{ref:i,"data-panel-group":"","data-direction":t,className:o(pd({direction:t}),e),...a,children:r},void 0,!1,void 0,this));gd.displayName="ResizablePanelGroup";var vd=$a(({className:e,defaultSize:t=50,children:r,style:a,...i},n)=>Oo("div",{ref:n,"data-panel":"",className:o(cd(),e),style:{...a,flexGrow:0,flexShrink:0,flexBasis:`${t}%`},...i,children:r},void 0,!1,void 0,this));vd.displayName="ResizablePanel";var bd=$a(({className:e,withHandle:t=!1,disabled:r=!1,...a},i)=>{let[n,s]=kv(!1),l=Hv(null),m=Fo((c,v)=>{if(r)return;s(!0);let x=(w)=>{let C="touches"in w?w.touches[0]:null,b=C?C.clientX:w.clientX,T=C?C.clientY:w.clientY,I=l.current;if(!I)return;let S=I.closest("[data-panel-group]");if(!S)return;let H=S.dataset.direction,k=S.getBoundingClientRect(),_=Array.from(S.querySelectorAll(":scope > [data-panel]")),X=Array.from(S.children).indexOf(I),O,U;for(let z of _){let A=Array.from(S.children).indexOf(z);if(A<X)O=z;if(A>X&&!U)U=z}if(O&&U){let z=H==="horizontal"?k.width:k.height,h=(H==="horizontal"?b-k.left:T-k.top)/z*100,V=Math.max(10,Math.min(90,h)),J=100-V;O.style.flexBasis=`${V}%`,U.style.flexBasis=`${J}%`}},M=()=>{s(!1),document.removeEventListener("mousemove",x),document.removeEventListener("mouseup",M),document.removeEventListener("touchmove",x),document.removeEventListener("touchend",M)};document.addEventListener("mousemove",x),document.addEventListener("mouseup",M),document.addEventListener("touchmove",x),document.addEventListener("touchend",M)},[r]),p=Fo((c)=>{c.preventDefault(),m(c.clientX,c.clientY)},[m]),f=Fo((c)=>{let v=c.touches[0];if(v)m(v.clientX,v.clientY)},[m]),u=Fo((c)=>{if(r)return;let v=l.current??c.currentTarget,x=v.closest("[data-panel-group]");if(!x)return;let M=x.dataset.direction,w=c.shiftKey?10:1,C=Array.from(x.querySelectorAll(":scope > [data-panel]")),b=Array.from(x.children).indexOf(v),T,I;for(let k of C){let _=Array.from(x.children).indexOf(k);if(_<b)T=k;if(_>b&&!I)I=k}if(!(T&&I))return;let S=Number.parseFloat(T.style.flexBasis)||50,H=0;if(M==="horizontal"){if(c.key==="ArrowLeft")H=-w;if(c.key==="ArrowRight")H=w}else{if(c.key==="ArrowUp")H=-w;if(c.key==="ArrowDown")H=w}if(H!==0){c.preventDefault();let k=Math.max(10,Math.min(90,S+H));T.style.flexBasis=`${k}%`,I.style.flexBasis=`${100-k}%`}},[r]),P="horizontal";return Oo("div",{ref:(c)=>{if(l.current=c,typeof i==="function")i(c);else if(i)i.current=c},role:"separator","aria-orientation":"horizontal",tabIndex:r?-1:0,"data-panel-resize-handle":"","data-dragging":n,onMouseDown:p,onTouchStart:f,onKeyDown:u,className:o(ud({direction:"horizontal",withHandle:t}),n&&"bg-primary",r&&"pointer-events-none opacity-50",e),...a,children:t&&Oo("div",{className:o(fd({direction:"horizontal"}))},void 0,!1,void 0,this)},void 0,!1,void 0,this)});bd.displayName="ResizableHandle";import*as rt from"@radix-ui/react-scroll-area";import{cva as Ka}from"class-variance-authority";import{forwardRef as yd}from"react";import{jsxDEV as Mr}from"react/jsx-dev-runtime";var Pd=Ka("relative overflow-hidden"),Av={display:"flex",flexDirection:"column"},Iv={flex:"1 1 0%",minHeight:0},hd=Ka("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"}}),Td=Ka("relative flex-1 rounded-full bg-border"),xd=yd(({className:e,children:t,style:r,...a},i)=>Mr(rt.Root,{ref:i,className:o(Pd(),e),style:{...r,...Av},...a,children:[Mr(rt.Viewport,{className:"w-full rounded-[inherit]",style:Iv,children:t},void 0,!1,void 0,this),Mr(Ya,{},void 0,!1,void 0,this),Mr(rt.Corner,{},void 0,!1,void 0,this)]},void 0,!0,void 0,this));xd.displayName="ScrollArea";var Ya=yd(({className:e,orientation:t="vertical",...r},a)=>Mr(rt.ScrollAreaScrollbar,{ref:a,orientation:t,className:o(hd({orientation:t}),e),...r,children:Mr(rt.ScrollAreaThumb,{className:o(Td())},void 0,!1,void 0,this)},void 0,!1,void 0,this));Ya.displayName="ScrollBar";import{cva as qa}from"class-variance-authority";import{createContext as Vv,forwardRef as Za,useCallback as Cd,useContext as wd,useEffect as Xa,useLayoutEffect as Bv,useRef as Sd,useState as zd}from"react";import{jsxDEV as Yt}from"react/jsx-dev-runtime";var Me={sm:"sm",md:"md",lg:"lg"},Md=qa("relative inline-flex items-center rounded-[var(--radius)] border border-border bg-muted/50 p-1 text-muted-foreground",{variants:{size:{[Me.sm]:"h-9 gap-0.5",[Me.md]:"h-10 gap-0.5",[Me.lg]:"h-11 gap-1"}},defaultVariants:{size:Me.md}}),Nd=qa(["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:{[Me.sm]:"size-7",[Me.md]:"size-8",[Me.lg]:"size-9"},active:{true:"text-foreground",false:"text-muted-foreground hover:text-foreground/70"}},defaultVariants:{size:Me.md,active:!1}}),Ld=qa(["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:{[Me.sm]:"h-7 px-3 text-xs",[Me.md]:"h-8 px-3 text-sm",[Me.lg]:"h-9 px-4 text-sm"},active:{true:"text-foreground",false:"text-muted-foreground hover:text-foreground/70"}},defaultVariants:{size:Me.md,active:!1}}),Ja=Vv({activeValue:"",onSelect:()=>{},size:Me.md,disabled:!1}),Dv=typeof window<"u"?Bv:Xa,Rd=Za(({className:e,value:t,defaultValue:r,onValueChange:a,size:i,disabled:n=!1,children:s,...l},m)=>{let p=d(i),f=Sd(null),[u,P]=zd(r??""),[c,v]=zd(null),x=Sd(!0),M=t!==void 0?t:u,w=Cd((b)=>{if(n)return;if(t===void 0)P(b);a?.(b)},[n,t,a]),C=Cd(()=>{let b=f.current;if(!b)return;let T=b.querySelector('[data-state="active"]');if(!T){v(null);return}let I=b.getBoundingClientRect(),S=T.getBoundingClientRect();v({left:S.left-I.left,width:S.width})},[]);return Dv(()=>{C()},[C,M]),Xa(()=>{if(x.current)requestAnimationFrame(()=>{x.current=!1})},[]),Xa(()=>{let b=f.current;if(!b)return;let T=new MutationObserver(()=>{C()});return T.observe(b,{attributes:!0,attributeFilter:["data-state"],subtree:!0}),()=>T.disconnect()},[C]),Yt(Ja.Provider,{value:{activeValue:M,onSelect:w,size:p,disabled:n},children:Yt("div",{ref:(b)=>{if(f.current=b,typeof m==="function")m(b);else if(m)m.current=b},role:"radiogroup",className:o(Md({size:p}),n&&"opacity-50 pointer-events-none",e),...l,children:[c&&Yt("span",{"aria-hidden":"true",className:o("absolute rounded-[calc(var(--radius)-2px)] bg-background shadow-sm",!x.current&&"transition-[left,width] duration-[var(--motion-duration-medium)] ease-[var(--motion-ease-emphasized)]"),style:{left:c.left,width:c.width,top:"4px",bottom:"4px"}},void 0,!1,void 0,this),s]},void 0,!0,void 0,this)},void 0,!1,void 0,this)});Rd.displayName="SegmentedControl";var Hd=Za(({className:e,value:t,icon:r,disabled:a=!1,...i},n)=>{let{activeValue:s,onSelect:l,size:m,disabled:p}=wd(Ja),f=s===t,u=a||p;return Yt("button",{ref:n,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:o(Nd({size:m,active:f}),e),...i,children:Yt("span",{className:"size-4 [&>svg]:size-full",children:r},void 0,!1,void 0,this)},void 0,!1,void 0,this)});Hd.displayName="SegmentedControlItem";var kd=Za(({className:e,value:t,icon:r,disabled:a=!1,children:i,...n},s)=>{let{activeValue:l,onSelect:m,size:p,disabled:f}=wd(Ja),u=l===t,P=a||f;return Yt("button",{ref:s,type:"button",role:"radio","aria-checked":u,"aria-disabled":P||void 0,"data-state":u?"active":"inactive","data-value":t,disabled:P,onClick:()=>m(t),className:o(Ld({size:p,active:u}),e),...n,children:[r&&Yt("span",{className:"size-4 [&>svg]:size-full",children:r},void 0,!1,void 0,this),i]},void 0,!0,void 0,this)});kd.displayName="SegmentedControlLabelItem";import*as zt from"@radix-ui/react-popover";import{cva as Id}from"class-variance-authority";import{Check as Fv,ChevronDown as Ov,X as _v}from"lucide-react";import{Children as Gv,createContext as Wv,forwardRef as io,isValidElement as Uv,useCallback as Go,useContext as Vd,useEffect as Wo,useId as Ad,useMemo as $v,useRef as Bd,useState as oo}from"react";import{jsxDEV as ae,Fragment as Qv}from"react/jsx-dev-runtime";var Q={sm:"sm",md:"md",lg:"lg",xl:"xl"},Nr={default:"default",error:"error",success:"success"},ao={trigger:"trigger",auto:"auto"},Kv={start:"start",center:"center",end:"end"},Dd=Id(["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:{[Q.sm]:"h-8 px-2.5 text-xs",[Q.md]:"h-10 px-3.5",[Q.lg]:"h-11 px-4.5 text-sm",[Q.xl]:"h-12 px-4 text-base"},status:{[Nr.default]:"focus-visible:ring-primary data-[state=open]:ring-primary",[Nr.error]:"border-destructive focus-visible:ring-destructive data-[state=open]:ring-destructive",[Nr.success]:"border-success focus-visible:ring-success data-[state=open]:ring-success"}},defaultVariants:{size:Q.md,status:Nr.default}}),Fd=Id(["max-h-96 overflow-y-auto overflow-x-hidden"].join(" "),{variants:{widthMode:{[ao.trigger]:"w-[var(--radix-popover-trigger-width)]",[ao.auto]:"w-max min-w-0"},size:{[Q.sm]:"text-xs",[Q.md]:"text-sm",[Q.lg]:"text-sm",[Q.xl]:"text-base"}},defaultVariants:{widthMode:ao.auto,size:Q.md}}),Yv={[Q.sm]:"min-h-7 py-1 px-2 pr-3 text-xs",[Q.md]:"min-h-9 py-2 px-3 pr-4.5 text-sm",[Q.lg]:"min-h-10 py-2.5 px-3.5 pr-5.5 text-sm",[Q.xl]:"min-h-11 py-3 px-4 pr-6 text-base"},Xv={[Q.sm]:"px-2 py-1 text-xs",[Q.md]:"px-2 py-1.5 text-sm",[Q.lg]:"px-2.5 py-1.5 text-sm",[Q.xl]:"px-3 py-2 text-base"},Uo={[Q.sm]:"size-3.5",[Q.md]:"size-4",[Q.lg]:"size-4",[Q.xl]:"size-4.5"};function Qa(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)=>Qa(t)).join("");if(Uv(e))return Qa(e.props.children);return""}var Ea=Wv(null);function $o(){let e=Vd(Ea);if(!e)throw Error("Select components must be used within Select");return e}function ja(e){let t=Vd(Ea);if(e)return e;return t?.triggerSize??Q.md}var qv=({children:e,value:t,defaultValue:r="",onValueChange:a,open:i,defaultOpen:n=!1,onOpenChange:s,disabled:l=!1})=>{let[m,p]=oo(Q.md),[f,u]=oo(!1),[P,c]=oo(r),[v,x]=oo(n),[M,w]=oo(0),C=Bd(new Map),b=t!==void 0,T=i!==void 0,I=b?t:P,S=T?i:v,H=Go((A)=>{if(!b)c(A);if(a?.(A),!T)x(!1);s?.(!1)},[b,T,a,s]),k=Go((A)=>{if(l)return;if(!T)x(A);s?.(A)},[l,T,s]),_=Go((A,h)=>{if(C.current.get(A)!==h)C.current.set(A,h),w((J)=>J+1)},[]),X=Go((A)=>{return C.current.get(A)},[]),O=Ad(),U=Ad(),z=$v(()=>({value:I,onValueChange:H,open:S,onOpenChange:k,triggerSize:m,setTriggerSize:p,triggerFullWidth:f,setTriggerFullWidth:u,disabled:l,triggerId:O,contentId:U,registerItem:_,getLabel:X}),[I,H,S,k,m,f,l,O,U,_,X,M]);return ae(Ea.Provider,{value:z,children:ae(zt.Root,{open:S,onOpenChange:k,children:e},void 0,!1,void 0,this)},void 0,!1,void 0,this)},Zv=({children:e,className:t})=>ae("div",{role:"group",className:t,children:e},void 0,!1,void 0,this),Jv=({placeholder:e})=>{let{value:t,getLabel:r}=$o();if(!t)return e?ae("span",{className:"text-muted-foreground",children:e},void 0,!1,void 0,this):null;let a=r(t);return ae(Qv,{children:a??t},void 0,!1,void 0,this)},Od=io(({className:e,children:t,size:r=Q.md,status:a=Nr.default,fullWidth:i=!1,clearable:n=!1,leadingIcon:s,indicatorIcon:l,renderValue:m,placeholder:p,onKeyDown:f,...u},P)=>{let c=$o(),v=d(r)??r,x=c.setTriggerSize,M=c.setTriggerFullWidth;Wo(()=>{x(v)},[v,x]),Wo(()=>{M(i)},[i,M]);let w=c.value.length>0,C=n&&w&&!c.disabled,b=(S)=>{S.stopPropagation(),S.preventDefault(),c.onValueChange("")},T;if(m)T=w?m(c.value):p?ae("span",{className:"text-muted-foreground",children:p},void 0,!1,void 0,this):null;else T=t;let I=(S)=>{if(f?.(S),S.defaultPrevented)return;if(S.key==="ArrowDown"||S.key==="ArrowUp"||S.key==="Enter"||S.key===" "){if(!c.open)S.preventDefault(),c.onOpenChange(!0)}};return ae(zt.Trigger,{asChild:!0,children:ae("button",{ref:P,type:"button",role:"combobox","aria-expanded":c.open,"aria-haspopup":"listbox","aria-controls":c.contentId,id:c.triggerId,disabled:c.disabled,"data-state":c.open?"open":"closed","data-placeholder":w?void 0:"",className:o(Dd({size:v,status:a}),i?"w-full":"w-auto",e),onKeyDown:I,...u,children:[s&&ae("i",{className:"inline-flex shrink-0 items-center text-muted-foreground not-italic",children:s},void 0,!1,void 0,this),ae("span",{"data-slot":"select-value",className:"min-w-0 flex-1 text-left",children:T},void 0,!1,void 0,this),ae("span",{className:"inline-flex shrink-0 items-center gap-1 text-muted-foreground",children:[C&&ae("span",{role:"button",tabIndex:-1,"aria-label":"Clear selection",onMouseDown:(S)=>S.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:ae(_v,{className:Uo[v]},void 0,!1,void 0,this)},void 0,!1,void 0,this),l??ae(Ov,{className:o(Uo[v],"opacity-60 transition-transform duration-200 ease-[cubic-bezier(0.16,1,0.3,1)]",c.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)});Od.displayName="SelectTrigger";var _d=io(({className:e,children:t,widthMode:r,size:a,align:i="start",side:n="bottom",sideOffset:s=4,portal:l=!0,forceMount:m=!0,onKeyDown:p,...f},u)=>{let P=$o(),c=ja(a),v=r??ao.auto,x=Bd(null),M=Kr(u,x),w=(T)=>{let I=x.current;if(!I)return;let S=Array.from(I.querySelectorAll('[role="option"]:not([data-disabled])'));if(S.length===0)return;let H=I.querySelector('[role="option"]:focus'),k=H?S.indexOf(H):-1,_;switch(T){case"first":_=S[0];break;case"last":_=S[S.length-1];break;case"next":_=S[k+1]??S[0];break;case"prev":_=S[k-1]??S[S.length-1];break}_?.focus()},C=(T)=>{if(p?.(T),T.defaultPrevented)return;switch(T.key){case"ArrowDown":T.preventDefault(),w("next");break;case"ArrowUp":T.preventDefault(),w("prev");break;case"Home":T.preventDefault(),w("first");break;case"End":T.preventDefault(),w("last");break;case"Escape":T.preventDefault(),P.onOpenChange(!1);break}};Wo(()=>{if(P.open)requestAnimationFrame(()=>w("first"))},[P.open]);let b=ae(zt.Content,{ref:M,id:P.contentId,role:"listbox","aria-labelledby":P.triggerId,side:n,align:i,sideOffset:s,forceMount:m,onKeyDown:C,onOpenAutoFocus:(T)=>T.preventDefault(),className:o(Tr(),Fd({widthMode:v,size:c}),"p-1",e),...f,children:t},void 0,!1,void 0,this);if(l)return ae(zt.Portal,{children:b},void 0,!1,void 0,this);return b});_d.displayName="SelectContent";var Gd=io(({className:e,size:t,...r},a)=>{let i=ja(t);return ae("div",{ref:a,className:o("font-semibold text-foreground",Xv[i],e),...r},void 0,!1,void 0,this)});Gd.displayName="SelectLabel";var Wd=io(({className:e,children:t,value:r,label:a,size:i,disabled:n=!1,...s},l)=>{let m=$o(),p=ja(i),f=m.value===r,u=m.registerItem,P=Qa(Gv.toArray(t)).trim();Wo(()=>{let x=a??(P.length>0?P:r);u(r,x)},[P,r,a,u]);let c=()=>{if(!n)m.onValueChange(r)},v=(x)=>{if(x.key==="Enter"||x.key===" ")x.preventDefault(),c()};return ae("div",{ref:l,role:"option",tabIndex:n?void 0:-1,"aria-selected":f,"aria-disabled":n||void 0,"data-selected":f?"":void 0,"data-disabled":n?"":void 0,"data-value":r,className:o("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",Yv[p],f&&"bg-accent/50",e),onClick:c,onKeyDown:v,...s,children:[ae("span",{className:o("flex shrink-0 items-center justify-center",Uo[p]),children:f&&ae(Fv,{className:Uo[p]},void 0,!1,void 0,this)},void 0,!1,void 0,this),ae("span",{className:"min-w-0 flex-1 truncate",children:t},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});Wd.displayName="SelectItem";var Ud=io(({className:e,...t},r)=>ae("div",{ref:r,className:o("-mx-1 my-1 h-px bg-border",e),...t},void 0,!1,void 0,this));Ud.displayName="SelectSeparator";import{cva as Ev}from"class-variance-authority";import{forwardRef as jv}from"react";import{jsxDEV as eb}from"react/jsx-dev-runtime";var no={horizontal:"horizontal",vertical:"vertical"},$d=Ev("shrink-0 bg-border",{variants:{orientation:{[no.horizontal]:"h-px w-full",[no.vertical]:"h-full w-px"}},defaultVariants:{orientation:no.horizontal}}),Kd=jv(({className:e,orientation:t=no.horizontal,decorative:r=!0,...a},i)=>{let n=r?{role:"none"}:{role:"separator","aria-orientation":t};return eb("div",{ref:i,className:o($d({orientation:t}),e),...n,...a},void 0,!1,void 0,this)});Kd.displayName="Separator";import{cva as Ko}from"class-variance-authority";import{forwardRef as Yo}from"react";import{jsxDEV as Xo}from"react/jsx-dev-runtime";var pe={sm:"sm",md:"md",lg:"lg"},Yd=Ko("animate-pulse rounded-[var(--radius)] bg-muted"),Xd=Ko("w-full",{variants:{size:{[pe.sm]:"h-3",[pe.md]:"h-4",[pe.lg]:"h-5"}},defaultVariants:{size:pe.md}}),qd=Ko("",{variants:{size:{[pe.sm]:"h-8 w-8",[pe.md]:"h-10 w-10",[pe.lg]:"h-12 w-12"}},defaultVariants:{size:pe.md}}),Zd=Ko("",{variants:{size:{[pe.sm]:"h-8 w-20",[pe.md]:"h-9 w-24",[pe.lg]:"h-10 w-28"}},defaultVariants:{size:pe.md}}),so=Yo(({className:e,circle:t=!1,...r},a)=>Xo("div",{ref:a,className:o(Yd(),t&&"rounded-full",e),...r},void 0,!1,void 0,this));so.displayName="Skeleton";var Jd=Yo(({className:e,size:t=pe.md,...r},a)=>{let i=d(t)??pe.md;return Xo(so,{ref:a,className:o(Xd({size:i}),e),...r},void 0,!1,void 0,this)});Jd.displayName="SkeletonText";var Qd=Yo(({className:e,size:t=pe.md,...r},a)=>{let i=d(t)??pe.md;return Xo(so,{ref:a,circle:!0,className:o(qd({size:i}),e),...r},void 0,!1,void 0,this)});Qd.displayName="SkeletonAvatar";var Ed=Yo(({className:e,size:t=pe.md,...r},a)=>{let i=d(t)??pe.md;return Xo(so,{ref:a,className:o(Zd({size:i}),e),...r},void 0,!1,void 0,this)});Ed.displayName="SkeletonButton";import*as wt from"@radix-ui/react-slider";import{cva as Jo}from"class-variance-authority";import{forwardRef as tb}from"react";import{jsxDEV as Zo}from"react/jsx-dev-runtime";var qo={sm:"sm",md:"md",lg:"lg"},jd=Jo("relative flex w-full touch-none select-none items-center",{variants:{size:{[qo.sm]:"[&_[data-slider-track]]:h-0.5 [&_[data-slider-thumb]]:h-3 [&_[data-slider-thumb]]:w-3",[qo.md]:"[&_[data-slider-track]]:h-2 [&_[data-slider-thumb]]:h-5 [&_[data-slider-thumb]]:w-5",[qo.lg]:"[&_[data-slider-track]]:h-3 [&_[data-slider-thumb]]:h-6 [&_[data-slider-thumb]]:w-6"}},defaultVariants:{size:qo.md}}),ep=Jo("relative w-full grow overflow-hidden rounded-full bg-secondary"),tp=Jo("absolute h-full bg-primary"),rp=Jo("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"),op=tb(({className:e,size:t,...r},a)=>{let i=d(t);return Zo(wt.Root,{ref:a,className:o(jd({size:i}),e),...r,children:[Zo(wt.Track,{"data-slider-track":!0,className:o(ep()),children:Zo(wt.Range,{className:o(tp())},void 0,!1,void 0,this)},void 0,!1,void 0,this),(r.defaultValue??r.value??[0]).map((n,s)=>Zo(wt.Thumb,{"data-slider-thumb":!0,className:o(rp())},`thumb-${String(s)}`,!1,void 0,this))]},void 0,!0,void 0,this)});op.displayName="Slider";import{cva as ye}from"class-variance-authority";import{forwardRef as ab,useCallback as Lr,useEffect as oi,useMemo as Qo,useRef as ip,useState as Eo}from"react";import{createPortal as ib}from"react-dom";import{useCallback as rb,useEffect as ob,useRef as ap}from"react";function ri(e,t,r={}){let{enabled:a=!0,preventDefault:i=!0,stopPropagation:n=!1,target:s="global"}=r,l=ap(t);l.current=t;let m=ap([]),p=Array.isArray(e)?e:[e];m.current=p.map((u)=>({combo:u,def:ei(u)}));let f=rb((u)=>{if(!a)return;for(let{combo:P,def:c}of m.current)if(ti(u,c)){if(i)u.preventDefault();if(n)u.stopPropagation();l.current(u,P);return}},[a,i,n]);ob(()=>{if(!a)return;let u=s==="global"?document:s.current;if(!u)return;return u.addEventListener("keydown",f),()=>{u.removeEventListener("keydown",f)}},[a,f,s])}import{jsxDEV as Z}from"react/jsx-dev-runtime";var Xt={sm:"sm",md:"md",lg:"lg",xl:"xl"},Rr={idle:"idle",loading:"loading",error:"error"},np=ye("fixed inset-0 z-[120] bg-black/60 backdrop-blur-sm",{variants:{state:{open:"animate-in fade-in-0",closing:"animate-out fade-out-0"}},defaultVariants:{state:"open"}}),sp=ye(["fixed left-1/2 top-[15vh] z-[120] w-full -translate-x-1/2","rounded-[calc(var(--radius)+6px)] border border-border bg-popover shadow-2xl","overflow-hidden"],{variants:{size:{[Xt.sm]:"max-w-md",[Xt.md]:"max-w-xl",[Xt.lg]:"max-w-2xl",[Xt.xl]:"max-w-3xl"},state:{open:"animate-in fade-in-0 slide-in-from-top-4",closing:"animate-out fade-out-0 slide-out-to-top-4"}},defaultVariants:{size:Xt.md,state:"open"}}),lp=ye("flex items-center gap-3 border-b border-border px-4 py-3"),mp=ye(["w-full flex-1 bg-transparent text-foreground text-base","placeholder:text-muted-foreground","outline-none border-none"]),dp=ye("size-4 text-muted-foreground shrink-0"),jo=ye(["inline-flex items-center justify-center px-1.5 py-0.5 rounded","font-mono text-[10px] font-medium","bg-muted border border-border text-muted-foreground"]),pp=ye("overflow-y-auto max-h-80 py-1"),cp=ye("px-3 py-2 text-xs font-semibold text-muted-foreground uppercase tracking-wide"),up=ye(["group flex items-center gap-3 px-3 py-2 mx-2 rounded-lg cursor-pointer","text-foreground transition-colors duration-100"],{variants:{selected:{true:"bg-primary/10",false:"hover:bg-muted"},disabled:{true:"opacity-50 cursor-not-allowed pointer-events-none",false:""}},defaultVariants:{selected:!1,disabled:!1}}),fp=ye("size-4 shrink-0",{variants:{selected:{true:"text-primary",false:"text-muted-foreground"}},defaultVariants:{selected:!1}}),gp=ye("flex-1 min-w-0"),vp=ye("text-sm font-medium truncate"),bp=ye("text-xs text-muted-foreground truncate"),yp=ye("flex items-center gap-1 text-[11px] text-muted-foreground shrink-0"),ea=ye("flex flex-col items-center justify-center py-8 text-muted-foreground min-h-24",{variants:{state:{empty:"text-muted-foreground",loading:"text-muted-foreground",error:"text-destructive"}},defaultVariants:{state:"empty"}}),ta=ye("text-sm font-medium"),Pp=ye("text-xs mt-1"),nb=(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((a)=>a.toLowerCase().includes(r)))return!0;return!1},hp=ab(({className:e,open:t,onOpenChange:r,actions:a,onActionSelect:i,value:n,defaultValue:s="",onValueChange:l,placeholder:m="Search commands, pages, or actions...",size:p=Xt.md,status:f=Rr.idle,statusMessage:u,emptyText:P="No command found for this query.",hotkey:c,portal:v=!0,...x},M)=>{let w=ip(null),C=ip(null),[b,T]=Eo(s),[I,S]=Eo(0),[H,k]=Eo(!1),[_,X]=Eo(!1),{isMac:O}=Yr(),U=Lr((R)=>Xr(R,O),[O]),z=Qo(()=>c&&c.length>0?c.join("+"):null,[c]);ri(z??"",()=>r(!t),{enabled:!!z});let A=n!==void 0?n:b,h=Qo(()=>a.filter((R)=>nb(R,A)),[a,A]),V=Qo(()=>h.map((R,j)=>R.disabled?-1:j).filter((R)=>R>=0),[h]),J=Qo(()=>{let R=new Map,j=new Map,ie=0;for(let Ne of h){let At=Ne.group??"";if(!R.has(At))R.set(At,[]);R.get(At).push(Ne),j.set(Ne,ie),ie++}return{groups:R,indexMap:j}},[h]);oi(()=>{if(t){k(!0),X(!1),S(0);return}if(H)X(!0)},[t]);let L=Lr(()=>{if(_)k(!1),X(!1)},[_]);oi(()=>{if(t)document.body.style.overflow="hidden";else document.body.style.overflow="";return()=>{document.body.style.overflow=""}},[t]),oi(()=>{if(t&&H)requestAnimationFrame(()=>w.current?.focus())},[t,H]);let K=Lr((R)=>{let j=R.target.value;T(j),l?.(j),S(0)},[l]),g=Lr((R)=>{let j=C.current;if(!j)return;j.querySelectorAll('[role="option"]')[R]?.scrollIntoView({block:"nearest"})},[]),y=Lr((R)=>{if(R.key==="Escape"){R.preventDefault(),r(!1);return}if(R.key==="ArrowDown"){if(R.preventDefault(),V.length===0)return;let ie=(V.indexOf(I)+1)%V.length,Ne=V[ie];S(Ne),g(Ne);return}if(R.key==="ArrowUp"){if(R.preventDefault(),V.length===0)return;let ie=(V.indexOf(I)-1+V.length)%V.length,Ne=V[ie];S(Ne),g(Ne);return}if(R.key==="Enter"){R.preventDefault();let j=h[I];if(j&&!j.disabled)i(j,I)}},[I,V,h,i,r,g]),N=Lr((R,j)=>{if(R.disabled)return;i(R,j)},[i]);if(!H)return null;let ce=_?"closing":"open",q=f===Rr.idle,Ae=f!==Rr.idle,E=Z("div",{ref:M,role:"dialog","aria-modal":"true",onKeyDown:y,className:o(e),...x,children:[Z("div",{"data-testid":"spotlight-overlay",className:o(np({state:ce})),onClick:()=>r(!1),onKeyDown:(R)=>{if(R.key==="Escape")r(!1)}},void 0,!1,void 0,this),Z("div",{className:o(sp({size:p,state:ce})),onAnimationEnd:L,children:[Z("div",{className:o(lp()),children:[Z("svg",{className:o(dp()),fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:Z("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),Z("input",{ref:w,type:"text",value:A,onChange:K,placeholder:m,className:o(mp())},void 0,!1,void 0,this),c?Z("div",{className:"flex items-center gap-1",children:c.map((R)=>Z("kbd",{className:o(jo()),children:U(R)},R,!1,void 0,this))},void 0,!1,void 0,this):Z("kbd",{className:o(jo()),children:"ESC"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Ae&&f===Rr.loading&&Z("div",{className:o(ea({state:"loading"})),children:Z("div",{className:o(ta()),children:"Searching commands..."},void 0,!1,void 0,this)},void 0,!1,void 0,this),Ae&&f===Rr.error&&Z("div",{className:o(ea({state:"error"})),children:[Z("div",{className:o(ta()),children:"Search failed"},void 0,!1,void 0,this),u&&Z("div",{className:o(Pp()),children:u},void 0,!1,void 0,this)]},void 0,!0,void 0,this),q&&h.length===0&&Z("div",{className:o(ea({state:"empty"})),children:Z("div",{className:o(ta()),children:P},void 0,!1,void 0,this)},void 0,!1,void 0,this),q&&h.length>0&&Z("div",{ref:C,className:o(pp()),children:Array.from(J.groups.entries()).map(([R,j])=>Z("div",{children:[R&&Z("div",{className:o(cp()),children:R},void 0,!1,void 0,this),j.map((ie)=>{let Ne=J.indexMap.get(ie)??0,At=Ne===I;return Z("div",{role:"option","aria-selected":At,"aria-disabled":ie.disabled??!1,onClick:()=>N(ie,Ne),className:o(up({selected:At,disabled:ie.disabled??!1})),children:[ie.icon&&Z("span",{className:o(fp({selected:At})),children:ie.icon},void 0,!1,void 0,this),Z("div",{className:o(gp()),children:[Z("div",{className:o(vp()),children:ie.title},void 0,!1,void 0,this),ie.description&&Z("div",{className:o(bp()),children:ie.description},void 0,!1,void 0,this)]},void 0,!0,void 0,this),ie.shortcut&&ie.shortcut.length>0&&Z("div",{className:o(yp()),children:ie.shortcut.map((Ti)=>Z("kbd",{className:o(jo()),children:U(Ti)},Ti,!1,void 0,this))},void 0,!1,void 0,this)]},ie.id,!0,void 0,this)})]},R||"__ungrouped__",!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this);if(v)return ib(E,document.body);return E});hp.displayName="Spotlight";import{cva as sb}from"class-variance-authority";import{forwardRef as lb}from"react";import{jsxDEV as Mt}from"react/jsx-dev-runtime";var _e={sm:"sm",md:"md",lg:"lg"},qt={up:"up",down:"down",neutral:"neutral"},Tp=sb("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:{[_e.sm]:"gap-1 p-3",[_e.md]:"gap-1.5 p-4",[_e.lg]:"gap-2 p-5"}},defaultVariants:{size:_e.md}}),mb={[_e.sm]:"text-lg font-semibold",[_e.md]:"text-2xl font-bold",[_e.lg]:"text-3xl font-bold"},db={[_e.sm]:"text-xs",[_e.md]:"text-sm",[_e.lg]:"text-base"},pb={[qt.up]:"text-success",[qt.down]:"text-destructive",[qt.neutral]:"text-muted-foreground"},cb={[qt.up]:"↑",[qt.down]:"↓",[qt.neutral]:"→"},xp=lb(({className:e,size:t=_e.md,label:r,value:a,trend:i,trendValue:n,icon:s,...l},m)=>{let p=d(t);return Mt("div",{ref:m,className:o(Tp({size:p}),e),...l,children:[Mt("div",{className:"flex items-center justify-between",children:[Mt("span",{className:o("text-muted-foreground",db[p]),children:r},void 0,!1,void 0,this),s&&Mt("span",{className:"text-muted-foreground/70","aria-hidden":"true",children:s},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Mt("div",{className:"flex items-baseline gap-2",children:[Mt("span",{className:o("tracking-tight text-foreground",mb[p]),children:a},void 0,!1,void 0,this),i&&n&&Mt("span",{className:o("inline-flex items-center gap-0.5 text-xs font-medium",pb[i]),children:[Mt("span",{"aria-hidden":"true",children:cb[i]},void 0,!1,void 0,this),n]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)});xp.displayName="StatCard";import{cva as Zt}from"class-variance-authority";import{Check as ub}from"lucide-react";import{forwardRef as Jt}from"react";import{jsxDEV as Nt}from"react/jsx-dev-runtime";var Cp=Zt("flex w-full",{variants:{orientation:{horizontal:"flex-row items-start",vertical:"flex-col"}},defaultVariants:{orientation:"horizontal"}}),Sp=Zt("flex",{variants:{orientation:{horizontal:"flex-1 flex-col items-center",vertical:"gap-4 flex-row"}},defaultVariants:{orientation:"horizontal"}}),zp=Zt(["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}}),wp=Zt("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}}),Mp=Zt("flex flex-col",{variants:{orientation:{horizontal:"mt-3 items-center text-center",vertical:"flex-1 pb-8 last:pb-0"}},defaultVariants:{orientation:"horizontal"}}),Np=Zt("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"}}),Lp=Zt("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 Rp=Jt(({className:e,orientation:t="horizontal",activeStep:r,...a},i)=>{return Nt("div",{ref:i,role:"group","aria-label":"Progress steps",className:o(Cp({orientation:t}),e),"data-orientation":t,"data-active-step":r,...a},void 0,!1,void 0,this)});Rp.displayName="Stepper";var Hp=Jt(({className:e,orientation:t="horizontal",isLast:r,isCurrent:a,...i},n)=>{return Nt("div",{ref:n,className:o(Sp({orientation:t}),e),"data-last":r,"aria-current":a?"step":void 0,...i},void 0,!1,void 0,this)});Hp.displayName="Step";var kp=Jt(({className:e,status:t="incomplete",size:r="md",icon:a,step:i,children:n,animated:s=!0,...l},m)=>{let p=d(r);return Nt("div",{ref:m,className:o(zp({status:t,size:p,animated:s}),e),"data-status":t,"aria-hidden":"true",...l,children:t==="complete"?a||Nt(ub,{className:"size-4",strokeWidth:3},void 0,!1,void 0,this):n||i},void 0,!1,void 0,this)});kp.displayName="StepIndicator";var Ap=Jt(({className:e,orientation:t="horizontal",status:r="incomplete",size:a="md",animated:i=!0,...n},s)=>{let l=d(a);return Nt("div",{ref:s,className:o(wp({orientation:t,status:r,size:l,animated:i}),e),"data-status":r,...n},void 0,!1,void 0,this)});Ap.displayName="StepConnector";var Ip=Jt(({className:e,orientation:t="horizontal",...r},a)=>{return Nt("div",{ref:a,className:o(Mp({orientation:t}),e),...r},void 0,!1,void 0,this)});Ip.displayName="StepContent";var Vp=Jt(({className:e,status:t="incomplete",size:r="md",...a},i)=>{let n=d(r);return Nt("h4",{ref:i,className:o(Np({status:t,size:n}),e),...a},void 0,!1,void 0,this)});Vp.displayName="StepTitle";var Bp=Jt(({className:e,size:t="md",...r},a)=>{let i=d(t);return Nt("p",{ref:a,className:o(Lp({size:i}),e),...r},void 0,!1,void 0,this)});Bp.displayName="StepDescription";import*as ra from"@radix-ui/react-switch";import{cva as fb}from"class-variance-authority";import{forwardRef as gb}from"react";import{jsxDEV as Dp}from"react/jsx-dev-runtime";var Se={sm:"sm",md:"md",lg:"lg",xl:"xl"},Hr={default:"default",error:"error",success:"success"},Fp=fb("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:{[Se.sm]:"h-4.5 w-8",[Se.md]:"h-5 w-9",[Se.lg]:"h-6 w-11",[Se.xl]:"h-7 w-[3.25rem]"},status:{[Hr.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",[Hr.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",[Hr.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:Se.md,status:Hr.default}}),vb={[Se.sm]:"h-3.5 w-3.5",[Se.md]:"h-4 w-4",[Se.lg]:"h-5 w-5",[Se.xl]:"h-6 w-6"},bb={[Se.sm]:"data-[state=checked]:translate-x-3.5",[Se.md]:"data-[state=checked]:translate-x-4",[Se.lg]:"data-[state=checked]:translate-x-5",[Se.xl]:"data-[state=checked]:translate-x-6"},Op=gb(({className:e,size:t=Se.md,status:r=Hr.default,checked:a,disabled:i,...n},s)=>{let l=d(t);return Dp(ra.Root,{ref:s,checked:a,disabled:i,className:o(Fp({size:l,status:r}),e),...n,children:Dp(ra.Thumb,{className:o("pointer-events-none block rounded-full bg-background shadow-sm transition-transform duration-150",vb[l],bb[l])},void 0,!1,void 0,this)},void 0,!1,void 0,this)});Op.displayName="Switch";import{cva as ct}from"class-variance-authority";import{createContext as yb,forwardRef as Lt,useContext as _p}from"react";import{jsxDEV as ot}from"react/jsx-dev-runtime";var he={sm:"sm",md:"md",lg:"lg"},ai=yb(he.md),Gp=ct("relative w-full overflow-auto rounded-[var(--radius)] border border-border bg-card shadow-[var(--shadow-sm)]"),Wp=ct("w-full caption-bottom",{variants:{size:{[he.sm]:"text-xs",[he.md]:"text-sm",[he.lg]:"text-sm"}},defaultVariants:{size:he.md}}),Up=ct("sticky top-0 z-[1] [&_tr]:border-b [&_tr]:border-border [&_th]:bg-muted"),$p=ct("[&_tr:last-child]:border-0"),Kp=ct("border-t border-border bg-muted font-medium text-muted-foreground [&>tr]:last:border-b-0"),Yp=ct("gs-interactive border-b border-border hover:bg-muted/50 data-[state=selected]:bg-primary/10"),Xp=ct("text-left align-middle font-semibold text-muted-foreground [&:has([role=checkbox])]:pr-0",{variants:{size:{[he.sm]:"h-8 px-2",[he.md]:"h-10 px-3",[he.lg]:"h-12 px-4"}},defaultVariants:{size:he.md}}),qp=ct("align-middle text-foreground [&:has([role=checkbox])]:pr-0",{variants:{size:{[he.sm]:"p-2",[he.md]:"p-3",[he.lg]:"p-4"}},defaultVariants:{size:he.md}}),Zp=ct("mt-4 text-sm text-muted-foreground"),Jp=Lt(({className:e,containerClassName:t,size:r=he.md,...a},i)=>{let n=d(r)??he.md;return ot(ai.Provider,{value:n,children:ot("div",{className:o(Gp(),t),children:ot("table",{ref:i,className:o(Wp({size:n}),e),...a},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)});Jp.displayName="Table";var Qp=Lt(({className:e,...t},r)=>ot("thead",{ref:r,className:o(Up(),e),...t},void 0,!1,void 0,this));Qp.displayName="TableHeader";var Ep=Lt(({className:e,...t},r)=>ot("tbody",{ref:r,className:o($p(),e),...t},void 0,!1,void 0,this));Ep.displayName="TableBody";var jp=Lt(({className:e,...t},r)=>ot("tfoot",{ref:r,className:o(Kp(),e),...t},void 0,!1,void 0,this));jp.displayName="TableFooter";var ec=Lt(({className:e,...t},r)=>ot("tr",{ref:r,className:o(Yp(),e),...t},void 0,!1,void 0,this));ec.displayName="TableRow";var tc=Lt(({className:e,size:t,...r},a)=>{let i=_p(ai);return ot("th",{ref:a,className:o(Xp({size:t??i}),e),...r},void 0,!1,void 0,this)});tc.displayName="TableHead";var rc=Lt(({className:e,size:t,...r},a)=>{let i=_p(ai);return ot("td",{ref:a,className:o(qp({size:t??i}),e),...r},void 0,!1,void 0,this)});rc.displayName="TableCell";var oc=Lt(({className:e,...t},r)=>ot("caption",{ref:r,className:o(Zp(),e),...t},void 0,!1,void 0,this));oc.displayName="TableCaption";import*as Qe from"@radix-ui/react-tabs";import{cva as ii}from"class-variance-authority";import{createContext as Pb,forwardRef as ni,useCallback as ac,useContext as hb,useEffect as si,useLayoutEffect as Tb,useRef as oa,useState as xb}from"react";import{jsxDEV as lo}from"react/jsx-dev-runtime";var at={sm:"sm",md:"md",lg:"lg",xl:"xl"},ic=ii("relative inline-flex items-center justify-center rounded-[var(--radius)] border border-border bg-muted/50 p-1 text-muted-foreground",{variants:{size:{[at.sm]:"h-9 gap-0.5",[at.md]:"h-11 gap-1",[at.lg]:"h-12 gap-1",[at.xl]:"h-14 gap-1.5"}},defaultVariants:{size:at.md}}),nc=ii("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:{[at.sm]:"px-2.5 py-1 text-xs",[at.md]:"px-3 py-1.5 text-sm",[at.lg]:"px-4 py-2 text-sm",[at.xl]:"px-5 py-2.5 text-base"}},defaultVariants:{size:at.md}}),sc=ii("mt-3 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2"),lc=Pb({registerTrigger:()=>{}}),Cb=typeof window<"u"?Tb:si,Sb=Qe.Root,mc=ni(({className:e,size:t,children:r,...a},i)=>{let n=d(t),s=oa(null),l=oa(new Map),[m,p]=xb(null),f=oa(!0),u=ac((c,v)=>{if(v)l.current.set(c,v);else l.current.delete(c)},[]),P=ac(()=>{let c=s.current;if(!c)return;let v=c.querySelector('[data-state="active"]');if(!v){p(null);return}let x=c.getBoundingClientRect(),M=v.getBoundingClientRect();p({left:M.left-x.left,width:M.width})},[]);return Cb(()=>{P()},[P]),si(()=>{let c=s.current;if(!c)return;let v=new MutationObserver(()=>{f.current=!1,P()});return v.observe(c,{attributes:!0,attributeFilter:["data-state"],subtree:!0}),()=>v.disconnect()},[P]),lo(lc.Provider,{value:{registerTrigger:u},children:lo(Qe.List,{ref:(c)=>{if(s.current=c,typeof i==="function")i(c);else if(i)i.current=c},className:o(ic({size:n}),e),...a,children:[m&&lo("span",{"aria-hidden":"true",className:o("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:m.left,width:m.width,top:"4px",bottom:"4px"}},void 0,!1,void 0,this),r]},void 0,!0,void 0,this)},void 0,!1,void 0,this)});mc.displayName=Qe.List.displayName;var dc=ni(({className:e,size:t,value:r,...a},i)=>{let n=d(t),{registerTrigger:s}=hb(lc),l=oa(null);return si(()=>{return s(r,l.current),()=>s(r,null)},[r,s]),lo(Qe.Trigger,{ref:(m)=>{if(l.current=m,typeof i==="function")i(m);else if(i)i.current=m},value:r,className:o(nc({size:n}),e),...a},void 0,!1,void 0,this)});dc.displayName=Qe.Trigger.displayName;var pc=ni(({className:e,...t},r)=>lo(Qe.Content,{ref:r,className:o(sc(),e),...t},void 0,!1,void 0,this));pc.displayName=Qe.Content.displayName;import{cva as zb}from"class-variance-authority";import{forwardRef as wb}from"react";import{jsxDEV as Mb}from"react/jsx-dev-runtime";var mo={default:"default",error:"error",success:"success"},kr={sm:"sm",md:"md",lg:"lg",xl:"xl"},cc=zb("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:{[mo.default]:"focus-visible:ring-primary",[mo.error]:"border-destructive focus-visible:ring-destructive",[mo.success]:"border-success focus-visible:ring-success"},size:{[kr.sm]:"min-h-[64px] px-2 py-1.5 text-xs",[kr.md]:"min-h-[96px] px-3 py-2",[kr.lg]:"min-h-[112px] px-4 py-2.5",[kr.xl]:"min-h-[128px] px-4 py-3 text-base"}},defaultVariants:{status:mo.default,size:kr.md}}),uc=wb(({className:e,status:t=mo.default,size:r=kr.md,fullWidth:a=!1,noResize:i=!1,disabled:n,...s},l)=>{let m=d(r);return Mb("textarea",{ref:l,className:o(cc({status:t,size:m}),n&&"bg-muted",a&&"w-full",i&&"resize-none",e),disabled:n,...s},void 0,!1,void 0,this)});uc.displayName="Textarea";import{cva as Rt}from"class-variance-authority";import{forwardRef as Ht}from"react";import{jsxDEV as it}from"react/jsx-dev-runtime";var fc=Rt("relative flex flex-col"),gc=Rt(["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}}),vc=Rt(["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}}),bc=Rt(["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}}),yc=Rt("flex flex-col gap-1 pt-0.5 min-w-0 transition-opacity duration-200 ease-[cubic-bezier(0.22,1,0.36,1)]"),Pc=Rt("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"}}),hc=Rt("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"}}),Tc=Rt("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 xc=Ht(({className:e,...t},r)=>{return it("div",{ref:r,role:"list","aria-label":"Timeline events",className:o(fc(),e),...t},void 0,!1,void 0,this)});xc.displayName="Timeline";var Cc=Ht(({className:e,align:t,isLast:r,animated:a=!0,...i},n)=>{return it("div",{ref:n,role:"listitem",className:o(gc({align:t,animated:a}),e),"data-last":r,...i},void 0,!1,void 0,this)});Cc.displayName="TimelineItem";var Sc=Ht(({className:e,variant:t,size:r,animated:a=!0,...i},n)=>{let s=d(r);return it("div",{ref:n,className:o(vc({variant:t,size:s,animated:a}),e),...i},void 0,!1,void 0,this)});Sc.displayName="TimelineConnector";var zc=Ht(({className:e,variant:t,size:r,icon:a,children:i,pulse:n=!1,animated:s=!0,...l},m)=>{let p=d(r);return it("div",{ref:m,className:o(bc({variant:t,size:p,pulse:n,animated:s}),e),"aria-hidden":"true",...l,children:a||i||it(Nb,{},void 0,!1,void 0,this)},void 0,!1,void 0,this)});zc.displayName="TimelineDot";var wc=Ht(({className:e,...t},r)=>{return it("div",{ref:r,className:o(yc(),e),...t},void 0,!1,void 0,this)});wc.displayName="TimelineContent";var Mc=Ht(({className:e,size:t,...r},a)=>{let i=d(t);return it("h4",{ref:a,className:o(Pc({size:i}),e),...r},void 0,!1,void 0,this)});Mc.displayName="TimelineTitle";var Nc=Ht(({className:e,size:t,...r},a)=>{let i=d(t);return it("p",{ref:a,className:o(hc({size:i}),e),...r},void 0,!1,void 0,this)});Nc.displayName="TimelineDescription";var Lc=Ht(({className:e,size:t,...r},a)=>{let i=d(t);return it("time",{ref:a,className:o(Tc({size:i}),e),...r},void 0,!1,void 0,this)});Lc.displayName="TimelineTime";function Nb(){return it("span",{className:"size-2 rounded-full bg-current"},void 0,!1,void 0,this)}import{cva as Rc}from"class-variance-authority";var Ar={default:"default",success:"success",info:"info",warning:"warning",error:"error"},Ge={sm:"sm",md:"md",lg:"lg"},li=Rc("pointer-events-auto relative flex w-full items-center overflow-hidden rounded-[var(--radius)] border shadow-[var(--shadow-md)]",{variants:{variant:{[Ar.default]:"border-border bg-card text-card-foreground",[Ar.success]:"border-success/30 bg-card text-card-foreground",[Ar.info]:"border-info/30 bg-card text-card-foreground",[Ar.warning]:"border-warning/30 bg-card text-card-foreground",[Ar.error]:"border-destructive/30 bg-card text-card-foreground"},size:{[Ge.sm]:"gap-2 p-3",[Ge.md]:"gap-3 p-4",[Ge.lg]:"gap-3.5 p-5"}},defaultVariants:{variant:Ar.default,size:Ge.md}}),mi=Rc("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:{[Ge.sm]:"h-6 px-2 text-xs",[Ge.md]:"h-7 px-2.5 text-xs",[Ge.lg]:"h-8 px-3 text-sm"}},defaultVariants:{size:Ge.md}});import{AlertTriangle as Db,CheckCircle2 as Fb,Info as Vc,X as Ob,XCircle as _b}from"lucide-react";import{forwardRef as Gb,useCallback as na,useEffect as sa,useRef as fi,useState as gi}from"react";import{useSyncExternalStore as Lb}from"react";var Rb=5,kc=5000,Hb=500,di=0;function kb(){return di=(di+1)%Number.MAX_SAFE_INTEGER,`toast-${di}-${Date.now()}`}var pi=new Set,We=[],Et=new Map,co=new Map,uo=!1,Qt=new Map;function aa(){for(let e of pi)e()}function Hc(){return We}function Ab(e){return pi.add(e),()=>{pi.delete(e)}}function ci(e,t){if(uo){Qt.set(e,t);return}clearTimeout(Et.get(e));let r=Date.now(),a=setTimeout(()=>{Et.delete(e),Qt.delete(e),ia(e)},t);Et.set(e,a),Qt.set(e,t);let i=setInterval(()=>{let n=Date.now()-r,s=t-n;if(s<=0)clearInterval(i),Qt.delete(e);else Qt.set(e,s)},100)}function Ib(e){clearTimeout(co.get(e));let t=setTimeout(()=>{We=We.filter((r)=>r.id!==e),co.delete(e),aa()},Hb);co.set(e,t)}function po(e){let t=e.id??kb(),r=e.duration??kc;if(We.find((n)=>n.id===t))return We=We.map((n)=>n.id===t?{...n,...e,id:t,open:!0,createdAt:Date.now()}:n),clearTimeout(co.get(t)),co.delete(t),ci(t,r),aa(),t;return We=[{...e,id:t,variant:e.variant??"default",dismissible:e.dismissible??!0,open:!0,createdAt:Date.now()},...We].slice(0,Rb),ci(t,r),aa(),t}function ia(e){clearTimeout(Et.get(e)),Et.delete(e),Qt.delete(e),We=We.map((t)=>t.id===e?{...t,open:!1}:t),aa(),Ib(e)}function Ac(){for(let e of We)ia(e.id)}function Vb(){if(uo)return;uo=!0;for(let[e,t]of Et)clearTimeout(t),Et.delete(e)}function Bb(){if(!uo)return;uo=!1;for(let e of We)if(e.open){let t=Qt.get(e.id)??kc;ci(e.id,t)}}var Ic=Object.assign((e)=>po(e),{success:(e,t)=>po({...t,variant:"success",title:e}),info:(e,t)=>po({...t,variant:"info",title:e}),warning:(e,t)=>po({...t,variant:"warning",title:e}),error:(e,t)=>po({...t,variant:"error",title:e}),dismiss:ia,dismissAll:Ac});function ui(){return{toasts:Lb(Ab,Hc,Hc),toast:Ic,dismiss:ia,dismissAll:Ac,pauseAll:Vb,resumeAll:Bb}}import{jsxDEV as ze}from"react/jsx-dev-runtime";var Dc=10,Bc=0.05,Wb=200,Fc="cubic-bezier(0.2, 0.8, 0.2, 1)",Ub="cubic-bezier(0.22, 1, 0.36, 1)",$b={"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"},Kb={success:(e)=>ze(Fb,{className:o("mt-0.5 shrink-0 text-success",e==="sm"?"size-4":"size-[18px]")},void 0,!1,void 0,this),info:(e)=>ze(Vc,{className:o("mt-0.5 shrink-0 text-info",e==="sm"?"size-4":"size-[18px]")},void 0,!1,void 0,this),warning:(e)=>ze(Db,{className:o("mt-0.5 shrink-0 text-warning",e==="sm"?"size-4":"size-[18px]")},void 0,!1,void 0,this),error:(e)=>ze(_b,{className:o("mt-0.5 shrink-0 text-destructive",e==="sm"?"size-4":"size-[18px]")},void 0,!1,void 0,this),default:(e)=>ze(Vc,{className:o("mt-0.5 shrink-0 text-muted-foreground",e==="sm"?"size-4":"size-[18px]")},void 0,!1,void 0,this)};function Yb(e,t,r,a,i){let n=e<a,s=r?i:e*Dc,l=r?1:n?1-e*Bc:1-a*Bc,m=n||r?1:0,p=t-e;return{offset:s,scale:l,opacity:m,zIndex:p}}var Oc=Gb(({position:e="bottom-right",gap:t=12,visibleCount:r=3,size:a=Ge.md,className:i,...n},s)=>{let{toasts:l,dismiss:m,pauseAll:p,resumeAll:f}=ui(),u=d(a)??Ge.md,[P,c]=gi(!1),[v,x]=gi({}),M=fi(null),w=fi(void 0),C=e.startsWith("bottom"),b=na((h)=>{if(M.current=h,typeof s==="function")s(h);else if(s)s.current=h},[s]),T=na(()=>{clearTimeout(w.current),c(!0),p()},[p]),I=na(()=>{clearTimeout(w.current),w.current=setTimeout(()=>{c(!1),f()},Wb)},[f]);sa(()=>{return()=>clearTimeout(w.current)},[]);let S=na((h,V)=>{x((J)=>{if(J[h]===V)return J;return{...J,[h]:V}})},[]);if(sa(()=>{let h=new Set(l.map((V)=>V.id));x((V)=>{let J=!1,L={};for(let[K,g]of Object.entries(V))if(h.has(K))L[K]=g;else J=!0;return J?L:V})},[l]),l.length===0)return null;let H=l.filter((h)=>h.open),k=new Map,_=0;for(let[h,V]of H.entries()){let J=v[V.id]??0;k.set(V.id,Yb(h,H.length,P,r,_)),_+=J+t}let X=H[0],U=(X?v[X.id]??0:0)+Math.min(H.length-1,r-1)*Dc,z=_-(H.length>0?t:0),A=P?z:U;return ze("ol",{ref:b,role:"region","aria-label":"Notifications",tabIndex:-1,onMouseEnter:T,onMouseLeave:I,className:o("pointer-events-auto fixed z-[100] w-full max-w-[400px] outline-none",$b[e],i),style:{height:Math.max(A,0),transition:`height 400ms ${Fc}`},...n,children:l.map((h)=>{let V=!h.open,J=k.get(h.id);return ze(Xb,{toast:h,layout:J??{offset:0,scale:1,opacity:0,zIndex:0},isClosed:V,isBottom:C,size:u,onDismiss:m,onMeasure:S},h.id,!1,void 0,this)})},void 0,!1,void 0,this)});Oc.displayName="Toaster";function Xb({toast:e,layout:t,isClosed:r,isBottom:a,size:i,onDismiss:n,onMeasure:s}){let l=fi(null),[m,p]=gi(!1);sa(()=>{let v=requestAnimationFrame(()=>p(!0));return()=>cancelAnimationFrame(v)},[]),sa(()=>{let v=l.current;if(!v)return;let x=new ResizeObserver((M)=>{for(let w of M){let C=w.borderBoxSize?.[0];if(C)s(e.id,C.blockSize)}});return x.observe(v),()=>x.disconnect()},[e.id,s]);let f=a?{bottom:0,left:0,right:0}:{top:0,left:0,right:0},u,P,c;if(!m)u=`translateY(${a?80:-80}px) scale(0.9)`,P=0,c="none";else if(r)u=`translateY(${a?80:-80}px) scale(0.95)`,P=0,c="none";else u=`translateY(${a?-t.offset:t.offset}px) scale(${t.scale})`,P=t.opacity,c="auto";return ze("li",{ref:l,"data-state":e.open?"open":"closed","data-variant":e.variant,className:"absolute list-none",style:{...f,zIndex:t.zIndex,transformOrigin:a?"center bottom":"center top",transform:u,opacity:P,pointerEvents:c,transition:[`transform 400ms ${Fc}`,`opacity 250ms ${Ub}`].join(", ")},children:ze("div",{className:o(li({variant:e.variant,size:i}),"w-full"),children:[Kb[e.variant]?.(i),ze("div",{className:"flex-1 space-y-0.5",children:[e.title&&ze("p",{className:o("font-semibold leading-tight",i==="sm"?"text-xs":"text-sm"),children:e.title},void 0,!1,void 0,this),e.description&&ze("p",{className:o("leading-snug text-muted-foreground",i==="sm"?"text-xs":"text-sm"),children:e.description},void 0,!1,void 0,this)]},void 0,!0,void 0,this),e.action&&ze("button",{type:"button",className:o(mi({size:i}),"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&&ze("button",{type:"button",className:o("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",i==="sm"?"[&>svg]:size-3.5":"[&>svg]:size-4"),onClick:()=>n(e.id),"aria-label":"Dismiss",children:ze(Ob,{},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 _c from"@radix-ui/react-toggle";import{cva as qb}from"class-variance-authority";import{forwardRef as Zb}from"react";import{jsxDEV as Jb}from"react/jsx-dev-runtime";var vi={default:"default",outline:"outline"},la={sm:"sm",md:"md",lg:"lg"},ma=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:{[vi.default]:"bg-transparent disabled:bg-transparent disabled:text-foreground/50",[vi.outline]:"border-input bg-transparent hover:bg-accent hover:text-accent-foreground disabled:bg-transparent disabled:text-foreground/50 disabled:border-border/50"},size:{[la.sm]:"h-7 px-1.5 min-w-7 text-xs",[la.md]:"h-10 px-3 min-w-10",[la.lg]:"h-11 px-5 min-w-11"}},defaultVariants:{variant:vi.default,size:la.md}}),Gc=Zb(({className:e,variant:t,size:r,...a},i)=>{let n=d(r);return Jb(_c.Root,{ref:i,className:o(ma({variant:t,size:n}),e),...a},void 0,!1,void 0,this)});Gc.displayName="Toggle";import*as da from"@radix-ui/react-toggle-group";import{cva as Qb}from"class-variance-authority";import{createContext as Eb,forwardRef as Wc,useContext as jb}from"react";import{jsxDEV as bi}from"react/jsx-dev-runtime";var ey={default:"default",outline:"outline"},ty={sm:"sm",md:"md",lg:"lg"},Uc=Qb("flex items-center justify-center gap-1"),$c=Eb({size:ty.md,variant:ey.default}),Kc=Wc(({className:e,variant:t,size:r,children:a,...i},n)=>{let s=d(r);return bi(da.Root,{ref:n,className:o(Uc(),e),...i,children:bi($c.Provider,{value:{variant:t,size:s},children:a},void 0,!1,void 0,this)},void 0,!1,void 0,this)});Kc.displayName="ToggleGroup";var Yc=Wc(({className:e,children:t,variant:r,size:a,...i},n)=>{let s=jb($c),l=d(a);return bi(da.Item,{ref:n,className:o(ma({variant:r??s.variant,size:l??s.size}),e),...i,children:t},void 0,!1,void 0,this)});Yc.displayName="ToggleGroupItem";import{cva as Xc}from"class-variance-authority";import{forwardRef as pa}from"react";import{jsxDEV as ca}from"react/jsx-dev-runtime";var Ee={sm:"sm",md:"md",lg:"lg"},qc=Xc("flex items-center border-b border-border bg-background",{variants:{size:{[Ee.sm]:"gap-1.5 px-3 py-1.5",[Ee.md]:"gap-2 px-4 py-2",[Ee.lg]:"gap-3 px-5 py-2.5"}},defaultVariants:{size:Ee.md}}),Zc=pa(({className:e,size:t=Ee.md,...r},a)=>{let i=d(t);return ca("div",{ref:a,role:"toolbar",className:o(qc({size:i}),e),...r},void 0,!1,void 0,this)});Zc.displayName="Toolbar";var Jc=Xc("flex items-center",{variants:{size:{[Ee.sm]:"gap-1",[Ee.md]:"gap-1.5",[Ee.lg]:"gap-2"}},defaultVariants:{size:Ee.md}}),Qc=pa(({className:e,size:t=Ee.md,...r},a)=>{let i=d(t);return ca("div",{ref:a,role:"group",className:o(Jc({size:i}),e),...r},void 0,!1,void 0,this)});Qc.displayName="ToolbarGroup";var Ec=pa(({className:e,...t},r)=>{return ca("div",{ref:r,role:"none",className:o("h-5 w-px shrink-0 bg-border",e),...t},void 0,!1,void 0,this)});Ec.displayName="ToolbarSeparator";var jc=pa(({className:e,...t},r)=>{return ca("div",{ref:r,className:o("flex-1",e),...t},void 0,!1,void 0,this)});jc.displayName="ToolbarSpacer";import*as nt from"@radix-ui/react-tooltip";import{cva as ry}from"class-variance-authority";import{createContext as oy,forwardRef as eu,useContext as tu}from"react";import{jsxDEV as fo}from"react/jsx-dev-runtime";var ay=nt.Provider,yi=oy(!1),ru=({persistOnClick:e=!1,children:t,...r})=>fo(yi.Provider,{value:e,children:fo(nt.Root,{...r,children:t},void 0,!1,void 0,this)},void 0,!1,void 0,this);ru.displayName="Tooltip";var ou=eu(({onClick:e,onPointerDown:t,...r},a)=>{let i=tu(yi);return fo(nt.Trigger,{ref:a,onClick:i?(n)=>{n.preventDefault(),e?.(n)}:e,onPointerDown:i?(n)=>{n.preventDefault(),t?.(n)}:t,...r},void 0,!1,void 0,this)});ou.displayName="TooltipTrigger";var Ir={sm:"sm",md:"md",lg:"lg"},au=ry("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:{[Ir.sm]:"px-2 py-1 text-[10px]",[Ir.md]:"px-3 py-1.5 text-xs",[Ir.lg]:"px-4 py-2 text-sm"}},defaultVariants:{size:Ir.md}}),iu=eu(({className:e,sideOffset:t=4,onPointerDownOutside:r,size:a=Ir.md,...i},n)=>{let s=tu(yi),l=d(a);return fo(nt.Portal,{children:fo(nt.Content,{ref:n,sideOffset:t,className:o(au({size:l}),e),onPointerDownOutside:s?(m)=>{m.preventDefault(),r?.(m)}:r,...i},void 0,!1,void 0,this)},void 0,!1,void 0,this)});iu.displayName="TooltipContent";import{jsxDEV as nu}from"react/jsx-dev-runtime";function su({children:e,density:t=go,defaultTheme:r="ghostly-solutions",defaultColorScheme:a=Pi.system,...i}){return nu(hi,{defaultTheme:r,defaultColorScheme:a,...i,children:nu(vo,{density:t,children:e},void 0,!1,void 0,this)},void 0,!1,void 0,this)}su.displayName="UIProvider";import*as kt from"react";var iy=()=>{};function ny({prop:e,defaultProp:t,onChange:r=iy}){let[a,i]=sy({defaultProp:t,onChange:r}),n=e!==void 0,s=n?e:a,l=kt.useCallback((m)=>{if(n){let f=typeof m==="function"?m(e):m;if(f!==e)r(f)}else i(m)},[n,e,i,r]);return[s,l]}function sy({defaultProp:e,onChange:t}){let r=kt.useState(e),[a]=r,i=kt.useRef(a),n=t;return kt.useEffect(()=>{if(i.current!==a)n?.(a),i.current=a},[a,n]),r}export{My as writeThemeStateToBrowserStorage,ui as useToast,Ay as useTheme,Yr as usePlatform,Sv as useOverlay,ri as useHotkey,Ur as useFormField,d as useDensitySize,mu as useDensity,ny as useControllableState,Kr as useComposedRefs,Tf as useCommandShortcut,Ma as useCommand,au as tooltipContentVariants,qc as toolbarVariants,Jc as toolbarGroupVariants,ma as toggleVariants,Uc as toggleGroupVariants,li as toastVariants,mi as toastActionVariants,Ic as toast,fc as timelineVariants,Pc as timelineTitleVariants,Tc as timelineTimeVariants,gc as timelineItemVariants,bc as timelineDotVariants,hc as timelineDescriptionVariants,yc as timelineContentVariants,vc as timelineConnectorVariants,cc as textareaVariants,nc as tabsTriggerVariants,ic as tabsListVariants,sc as tabsContentVariants,Wp as tableVariants,Yp as tableRowVariants,Up as tableHeaderVariants,Xp as tableHeadVariants,Kp as tableFooterVariants,Gp as tableContainerVariants,qp as tableCellVariants,Zp as tableCaptionVariants,$p as tableBodyVariants,Fp as switchVariants,Cp as stepperVariants,Sp as stepVariants,Np as stepTitleVariants,zp as stepIndicatorVariants,Lp as stepDescriptionVariants,Mp as stepContentVariants,wp as stepConnectorVariants,Tp as statCardVariants,ea as spotlightStatusVariants,ta as spotlightStatusTitleVariants,Pp as spotlightStatusDescriptionVariants,yp as spotlightShortcutVariants,pp as spotlightResultsVariants,sp as spotlightPanelVariants,np as spotlightOverlayVariants,up as spotlightOptionVariants,vp as spotlightOptionTitleVariants,fp as spotlightOptionIconVariants,bp as spotlightOptionDescriptionVariants,gp as spotlightOptionContentVariants,jo as spotlightKbdVariants,mp as spotlightInputVariants,dp as spotlightIconVariants,lp as spotlightHeaderVariants,cp as spotlightGroupLabelVariants,jd as sliderVariants,ep as sliderTrackVariants,rp as sliderThumbVariants,tp as sliderRangeVariants,Yd as skeletonVariants,Xd as skeletonTextVariants,Zd as skeletonButtonVariants,qd as skeletonAvatarVariants,Im as sheetOverlayVariants,Vm as sheetContentVariants,xy as serializeThemeState,$d as separatorVariants,Dd as selectTriggerVariants,Fd as selectContentVariants,Md as segmentedControlVariants,Ld as segmentedControlLabelVariants,Nd as segmentedControlItemVariants,hd as scrollBarVariants,Td as scrollBarThumbVariants,Pd as scrollAreaVariants,Ly as resolveThemeState,cd as resizablePanelVariants,pd as resizablePanelGroupVariants,ud as resizableHandleVariants,fd as resizableHandleIconVariants,Sy as readThemeStateFromCookieHeader,wy as readThemeStateFromBrowserStorage,ld as radioItemVariants,sd as radioGroupVariants,rd as progressVariants,od as progressIndicatorVariants,Tr as popoverContentVariants,Cy as parseThemeState,ei as parseHotkey,$m as paginationVariants,Vo as paginationLinkVariants,Ym as paginationItemVariants,Xm as paginationEllipsisVariants,Km as paginationContentVariants,Nm as otpSlotVariants,Hm as otpSeparatorVariants,Rm as otpPlaceholderVariants,Lm as otpInputVariants,Mm as otpGroupVariants,wm as otpContainerVariants,Ty as normalizeThemeState,vm as navigationMenuViewportVariants,cm as navigationMenuVariants,fm as navigationMenuTriggerVariants,um as navigationMenuListVariants,iv as navigationMenuLinkVariants,bm as navigationMenuIndicatorVariants,gm as navigationMenuContentVariants,mm as multiselectTriggerVariants,ti as matchHotkey,am as labelVariants,tm as kbdVariants,lr as isSameDay,jl as inputVariants,Jl as hoverCardContentVariants,Ry as getThemeRootProps,Ny as getSystemColorScheme,py as formatHotkeyTokens,Xr as formatHotkey,Ul as formFieldVariants,Il as fileUploadVariants,Da as fileUploadTextVariants,Bl as fileUploadListVariants,Dl as fileUploadItemVariants,Ol as fileUploadItemSizeVariants,_l as fileUploadItemRemoveVariants,Fl as fileUploadItemNameVariants,Vl as fileUploadIconVariants,wl as errorBoundaryVariants,Nl as errorBoundaryTitleVariants,Ml as errorBoundaryIconVariants,Hl as errorBoundaryDetailsVariants,Ll as errorBoundaryDescriptionVariants,Rl as errorBoundaryActionsVariants,Pl as emptyStateVariants,Tl as emptyStateTitleVariants,hl as emptyStateIconVariants,xl as emptyStateDescriptionVariants,Cl as emptyStateActionsVariants,sl as dropdownMenuShortcutVariants,nl as dropdownMenuSeparatorVariants,al as dropdownMenuRadioItemVariants,il as dropdownMenuLabelVariants,Ba as dropdownMenuItemVariants,Va as dropdownMenuContentVariants,ol as dropdownMenuCheckboxItemVariants,Xs as drawerOverlayVariants,Zs as drawerHandleVariants,qs as drawerContentVariants,Ws as dialogContentVariants,Fa as detectPlatform,Iy as defineThemes,iM as cva,ky as createThemesCss,Fy as createThemeSystem,zy as createThemeSetCookieHeader,Vy as createThemeRegistry,Hy as createThemeCss,hy as createThemeContract,dy as createOptionalContext,my as createContext,Rs as contextMenuShortcutVariants,Ls as contextMenuSeparatorVariants,Ms as contextMenuRadioItemVariants,Ns as contextMenuLabelVariants,Ra as contextMenuItemVariants,La as contextMenuContentVariants,ws as contextMenuCheckboxItemVariants,ly as composeRefs,fs as commandShortcutVariants,us as commandSeparatorVariants,ns as commandOverlayVariants,gs as commandLoadingVariants,ls as commandListVariants,cs as commandItemVariants,ss as commandInputVariants,ds as commandGroupVariants,ps as commandGroupHeadingVariants,ms as commandEmptyVariants,is as commandDialogVariants,rs as collapsibleContentVariants,Xn as codeBlockVariants,En as codeBlockPreVariants,jn as codeBlockLineVariants,es as codeBlockLineNumberVariants,Zn as codeBlockLanguageVariants,qn as codeBlockHeaderVariants,Jn as codeBlockCopyVariants,Qn as codeBlockContentVariants,o as cn,$n as checkboxVariants,Bn as cardVariants,An as calendarWeekdayVariants,Ln as calendarVariants,Hn as calendarTitleVariants,za as calendarNavButtonVariants,Rn as calendarHeaderVariants,kn as calendarGridVariants,In as calendarDayVariants,Br as buttonVariants,Fi as buttonIconVariants,Sn as buttonGroupVariants,Oi as buttonBadgeVariants,gn as breadcrumbSeparatorVariants,fn as breadcrumbPageVariants,pn as breadcrumbListVariants,un as breadcrumbLinkVariants,cn as breadcrumbItemVariants,vn as breadcrumbEllipsisVariants,nn as badgeVariants,rn as avatarVariants,Hi as alertVariants,ki as alertTitleVariants,Ki as alertDialogOverlayVariants,Yi as alertDialogContentVariants,Ai as alertDescriptionVariants,zi as accordionTriggerVariants,Si as accordionItemVariants,wi as accordionContentVariants,bu as XCircleIcon,st as Variant,su as UIProvider,ou as TooltipTrigger,Ir as TooltipSize,ay as TooltipProvider,iu as TooltipContent,ru as Tooltip,jc as ToolbarSpacer,Ee as ToolbarSize,Ec as ToolbarSeparator,Qc as ToolbarGroup,Zc as Toolbar,Yc as ToggleGroupItem,Kc as ToggleGroup,Gc as Toggle,Oc as Toaster,Ge as ToastSize,Mc as TimelineTitle,Lc as TimelineTime,Cc as TimelineItem,zc as TimelineDot,Nc as TimelineDescription,wc as TimelineContent,Sc as TimelineConnector,xc as Timeline,Dy as ThemeStyles,By as ThemeRegistryProvider,hi as ThemeProvider,uc as Textarea,dc as TabsTrigger,mc as TabsList,pc as TabsContent,Sb as Tabs,he as TableSize,ec as TableRow,Qp as TableHeader,tc as TableHead,jp as TableFooter,rc as TableCell,oc as TableCaption,Ep as TableBody,Jp as Table,Py as THEME_COOKIE_NAME,uy as THEME_COLOR_SCHEME_ATTR,cy as THEME_ATTR,Hr as SwitchStatus,Se as SwitchSize,Op as Switch,Rp as Stepper,Vp as StepTitle,kp as StepIndicator,Bp as StepDescription,Ip as StepContent,Ap as StepConnector,Hp as Step,qt as StatCardTrend,_e as StatCardSize,xp as StatCard,Rr as SpotlightStatus,Xt as SpotlightSize,hp as Spotlight,er as SpinnerSize,tr as Spinner,op as Slider,Jd as SkeletonText,pe as SkeletonSize,Ed as SkeletonButton,Qd as SkeletonAvatar,so as Skeleton,Le as Size,vv as SheetTrigger,Om as SheetTitle,te as SheetSize,Bm as SheetPortal,Wa as SheetOverlay,Dm as SheetHeader,Fm as SheetFooter,_m as SheetDescription,Ao as SheetContent,bv as SheetClose,Ga as Sheet,no as SeparatorOrientation,Kd as Separator,Jv as SelectValue,Od as SelectTrigger,Nr as SelectStatus,Q as SelectSize,Ud as SelectSeparator,Gd as SelectLabel,Wd as SelectItem,Zv as SelectGroup,ao as SelectContentWidthMode,Kv as SelectContentAlign,_d as SelectContent,qv as Select,Me as SegmentedControlSize,kd as SegmentedControlLabelItem,Hd as SegmentedControlItem,Rd as SegmentedControl,Ya as ScrollBar,xd as ScrollArea,gy as STORAGE_VERSION,by as STORAGE_THEME_STATE_KEY,vy as STORAGE_PREFIX,yy as STORAGE_DENSITY_KEY,gd as ResizablePanelGroup,vd as ResizablePanel,bd as ResizableHandle,zr as RadioStatus,Je as RadioSize,dd as RadioGroupItem,md as RadioGroup,ad as Progress,Ug as PopoverTrigger,hr as PopoverSize,sm as PopoverContent,Kg as PopoverClose,$g as PopoverAnchor,Wg as Popover,Oe as PaginationSize,Em as PaginationPrevious,jm as PaginationNext,Qm as PaginationLink,Jm as PaginationItem,ed as PaginationEllipsis,Zm as PaginationContent,qm as Pagination,Um as OverlayProvider,km as OTPInput,Oa as NavigationMenuViewport,hm as NavigationMenuTrigger,qe as NavigationMenuSize,Pm as NavigationMenuList,lv as NavigationMenuLink,sv as NavigationMenuItem,xm as NavigationMenuIndicator,Tm as NavigationMenuContent,ym as NavigationMenu,de as MultiselectSize,dm as Multiselect,Og as Loader,Pr as LabelSize,im as Label,yr as KbdSize,rm as Kbd,em as Input,vu as InfoIcon,rr as IconSize,hg as HoverCardTrigger,br as HoverCardSize,Ql as HoverCardContent,Pg as HoverCard,Or as GroupOrientation,De as FormFieldSize,Kl as FormFieldLabel,ql as FormFieldError,Xl as FormFieldDescription,Zl as FormFieldControl,$l as FormField,Gl as FileUpload,kl as ErrorBoundary,Sl as EmptyState,eg as DropdownMenuTrigger,dl as DropdownMenuSubTrigger,pl as DropdownMenuSubContent,og as DropdownMenuSub,yl as DropdownMenuShortcut,bl as DropdownMenuSeparator,gl as DropdownMenuRadioItem,ag as DropdownMenuRadioGroup,rg as DropdownMenuPortal,vl as DropdownMenuLabel,Lo as DropdownMenuItemVariant,ul as DropdownMenuItem,tg as DropdownMenuGroup,cl as DropdownMenuContent,fl as DropdownMenuCheckboxItem,ml as DropdownMenu,Wf as DrawerTrigger,el as DrawerTitle,Be as DrawerSize,Js as DrawerPortal,Ia as DrawerOverlay,Es as DrawerHeader,js as DrawerFooter,tl as DrawerDescription,Qs as DrawerContent,Uf as DrawerClose,Gf as Drawer,Bf as DialogTrigger,Ks as DialogTitle,Tt as DialogSize,Gs as DialogPortal,ka as DialogOverlay,Us as DialogHeader,$s as DialogFooter,Ys as DialogDescription,Mo as DialogContent,Df as DialogClose,Ha as Dialog,vo as DensityProvider,go as DENSITY_DEFAULT,fy as DARK_CLASS,Lf as ContextMenuTrigger,ks as ContextMenuSubTrigger,As as ContextMenuSubContent,kf as ContextMenuSub,_s as ContextMenuShortcut,Os as ContextMenuSeparator,Ds as ContextMenuRadioItem,Af as ContextMenuRadioGroup,Hf as ContextMenuPortal,Fs as ContextMenuLabel,zo as ContextMenuItemVariant,Vs as ContextMenuItem,Rf as ContextMenuGroup,Is as ContextMenuContent,Bs as ContextMenuCheckboxItem,Nf as ContextMenu,Ss as CommandShortcut,Cs as CommandSeparator,zs as CommandLoading,Ps as CommandList,So as CommandItemVariant,xs as CommandItem,ys as CommandInput,Ts as CommandGroup,hs as CommandEmpty,bs as CommandDialog,Na as Command,Pi as ColorScheme,vf as CollapsibleTrigger,os as CollapsibleContent,gf as Collapsible,ts as CodeBlock,cr as CheckboxStatus,$e as CheckboxSize,Kn as Checkbox,gu as CheckCircleIcon,Gn as CardTitle,Fn as CardHeader,_n as CardFooter,Wn as CardDescription,On as CardContent,Dn as Card,Vn as Calendar,Gi as ButtonLabel,_i as ButtonIcon,zn as ButtonGroup,Wi as ButtonBadge,Ui as Button,le as BreadcrumbSize,xn as BreadcrumbSeparator,Tn as BreadcrumbPage,yn as BreadcrumbList,hn as BreadcrumbLink,Pn as BreadcrumbItem,Cn as BreadcrumbEllipsis,bn as Breadcrumb,ge as BadgeVariant,ft as BadgeTone,vt as BadgeSize,dn as BadgeGroup,sn as Badge,Ie as AvatarSize,on as AvatarImage,an as AvatarGroup,Ca as AvatarFallback,xa as Avatar,Nu as AspectRatio,fu as AlertTriangleIcon,Vi as AlertTitle,Mu as AlertDialogTrigger,Qi as AlertDialogTitle,gt as AlertDialogSize,Xi as AlertDialogPortal,Ta as AlertDialogOverlay,Zi as AlertDialogHeader,Ji as AlertDialogFooter,Ei as AlertDialogDescription,qi as AlertDialogContent,en as AlertDialogCancel,ji as AlertDialogAction,wu as AlertDialog,Bi as AlertDescription,Ii as Alert,Li as AccordionTrigger,Te as AccordionSize,Ni as AccordionItem,Ri as AccordionContent,Mi as Accordion};
2
+ import{A as zi,B as Ba,C as Si,D as Zu,E as qu,F as Oa,G as Ju,H as Ri,a as i,b as lT,c as Qr,d as mT,e as dT,f as oa,g as Ta,h as ha,i as jr,j as pT,k as lt,l as Du,m as Fu,n as Bu,o as Ou,p as _u,q as Gu,r as Wu,s as Uu,t as _r,u as st,v as $u,w as Ku,x as Yu,y as Xu,z as Ci}from"./chunk-gv8xjarq.js";import{cva as Yw}from"class-variance-authority";import*as je from"@radix-ui/react-accordion";import{cva as Ai}from"class-variance-authority";import{ChevronDown as rf}from"lucide-react";import{createContext as of,forwardRef as zo,useContext as Ka}from"react";import{createContext as ju,useContext as $a}from"react";import{jsxDEV as tf}from"react/jsx-dev-runtime";var xo="md",ki=ju(xo),Co=({density:e,children:t})=>{return tf(ki.Provider,{value:e,children:t},void 0,!1,void 0,this)};Co.displayName="DensityProvider";var ef=()=>{return $a(ki)};function c(e){let t=$a(ki);if(e!==void 0)return e;return t}import{jsxDEV as yt}from"react/jsx-dev-runtime";var Ce={sm:"sm",md:"md",lg:"lg"},Ii=of(Ce.md),Ya=Ai("border-b border-border"),Xa=Ai("gs-interactive flex flex-1 items-center justify-between font-medium hover:underline [&[data-state=open]>svg]:rotate-180",{variants:{size:{[Ce.sm]:"py-3 text-xs [&>svg]:size-3.5",[Ce.md]:"py-4 text-sm [&>svg]:size-4",[Ce.lg]:"py-5 text-base [&>svg]:size-5"}},defaultVariants:{size:Ce.md}}),Za=Ai("gs-accordion-content overflow-hidden",{variants:{size:{[Ce.sm]:"text-xs",[Ce.md]:"text-sm",[Ce.lg]:"text-base"}},defaultVariants:{size:Ce.md}}),af={[Ce.sm]:"pt-0 pb-3",[Ce.md]:"pt-0 pb-4",[Ce.lg]:"pt-0 pb-5"},qa=zo(({size:e=Ce.md,...t},r)=>{let o=c(e)??Ce.md;return yt(Ii.Provider,{value:o,children:yt(je.Root,{ref:r,...t},void 0,!1,void 0,this)},void 0,!1,void 0,this)});qa.displayName="Accordion";var Ja=zo(({className:e,...t},r)=>yt(je.Item,{ref:r,className:i(Ya(),e),...t},void 0,!1,void 0,this));Ja.displayName="AccordionItem";var Qa=zo(({className:e,children:t,...r},o)=>{let a=Ka(Ii);return yt(je.Header,{className:"flex",children:yt(je.Trigger,{ref:o,className:i(Xa({size:a}),e),...r,children:[t,yt(rf,{className:"shrink-0 transition-transform"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)});Qa.displayName="AccordionTrigger";var Ea=zo(({className:e,children:t,...r},o)=>{let a=Ka(Ii);return yt(je.Content,{ref:o,className:i(Za({size:a}),e),...r,children:yt("div",{className:af[a],children:t},void 0,!1,void 0,this)},void 0,!1,void 0,this)});Ea.displayName="AccordionContent";import{cva as Vi}from"class-variance-authority";import{TriangleAlert as nf,CircleCheck as sf,Info as lf,CircleAlert as mf}from"lucide-react";import{forwardRef as Di}from"react";import{jsxDEV as Fi}from"react/jsx-dev-runtime";var ir={default:"default",success:"success",warning:"warning",error:"error",info:"info"},Gr={sm:"sm",md:"md",lg:"lg",xl:"xl"},ja=Vi("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:{[ir.default]:"bg-background text-foreground",[ir.success]:"border-success/50 text-success [&>svg]:text-success bg-success/10",[ir.warning]:"border-warning/50 text-warning [&>svg]:text-warning bg-warning/10",[ir.error]:"border-destructive/50 text-destructive [&>svg]:text-destructive bg-destructive/10",[ir.info]:"border-info/50 text-info [&>svg]:text-info bg-info/10"},size:{[Gr.sm]:"p-3 text-xs [&>svg]:top-3 [&>svg]:left-3 [&>svg~*]:pl-6",[Gr.md]:"p-4 text-sm",[Gr.lg]:"p-5 text-sm",[Gr.xl]:"p-6 text-base [&>svg]:top-6 [&>svg]:left-6 [&>svg~*]:pl-8"}},defaultVariants:{variant:ir.default,size:Gr.md}}),en=Vi("mb-1 font-medium leading-none tracking-tight"),tn=Vi("text-sm [&_p]:leading-relaxed"),rn=Di(({className:e,variant:t,size:r,...o},a)=>{let n=c(r);return Fi("div",{ref:a,role:"alert",className:i(ja({variant:t,size:n}),e),...o},void 0,!1,void 0,this)});rn.displayName="Alert";var on=Di(({className:e,...t},r)=>Fi("h5",{ref:r,className:i(en(),e),...t},void 0,!1,void 0,this));on.displayName="AlertTitle";var an=Di(({className:e,...t},r)=>Fi("div",{ref:r,className:i(tn(),e),...t},void 0,!1,void 0,this));an.displayName="AlertDescription";import*as ge from"@radix-ui/react-alert-dialog";import{cva as un}from"class-variance-authority";import{forwardRef as lr}from"react";import{Slot as nn}from"@radix-ui/react-slot";import{cva as Oi}from"class-variance-authority";import{forwardRef as So}from"react";import{forwardRef as df}from"react";import{jsxDEV as Bi}from"react/jsx-dev-runtime";var ar={sm:"sm",md:"md",lg:"lg",xl:"xl"},pf={[ar.sm]:"h-4 w-4",[ar.md]:"h-5 w-5",[ar.lg]:"h-6 w-6",[ar.xl]:"h-8 w-8"},nr=df(({className:e,size:t=ar.md,label:r="Loading",...o},a)=>{let n=c(t);return Bi("span",{ref:a,className:i("inline-flex items-center justify-center",e),role:"status","aria-label":r,...o,children:[Bi("span",{className:i("animate-spin rounded-full border-2 border-current border-r-transparent",pf[n])},void 0,!1,void 0,this),Bi("span",{className:"sr-only",children:r},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});nr.displayName="Spinner";import{jsxDEV as dt}from"react/jsx-dev-runtime";var mt={primary:"primary",secondary:"secondary",neutral:"neutral",outline:"outline",ghost:"ghost",danger:"danger"},Le={sm:"sm",md:"md",lg:"lg",xl:"xl",icon:"icon",iconSm:"icon-sm",iconLg:"icon-lg"},vt={default:"default",success:"success",warning:"warning",error:"error",info:"info"},sr={sm:"sm",md:"md",lg:"lg"},cf="Loading",uf="button",Wr=Oi("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:{[mt.primary]:"border-primary bg-primary text-primary-foreground enabled:hover:bg-primary/90",[mt.secondary]:"border-secondary bg-secondary text-secondary-foreground enabled:hover:bg-secondary/90",[mt.neutral]:"border-border bg-muted text-foreground enabled:hover:bg-muted/90",[mt.outline]:"border-border bg-background text-foreground enabled:hover:border-primary enabled:hover:bg-muted/50",[mt.ghost]:"border-transparent bg-transparent text-foreground enabled:hover:bg-muted/70",[mt.danger]:"border-destructive bg-destructive text-destructive-foreground enabled:hover:bg-destructive/90"},size:{[Le.sm]:"h-8 px-2.5 text-xs",[Le.md]:"h-10 px-4 text-sm",[Le.lg]:"h-11 px-5 text-sm",[Le.xl]:"h-12 px-6 text-base",[Le.icon]:"h-10 w-10 p-0",[Le.iconSm]:"h-9 w-9 p-0",[Le.iconLg]:"h-11 w-11 p-0"}},defaultVariants:{variant:mt.primary,size:Le.md}}),sn=Oi("shrink-0",{variants:{size:{[sr.sm]:"size-3",[sr.md]:"size-4",[sr.lg]:"size-4.5"}},defaultVariants:{size:sr.md}}),ln=Oi("inline-flex items-center rounded-full border px-1.5 py-0.5 font-semibold text-[10px] leading-none",{variants:{tone:{[vt.default]:"border-border/70 bg-background/75 text-muted-foreground",[vt.success]:"border-success/35 bg-success/12 text-success",[vt.warning]:"border-warning/35 bg-warning/12 text-warning",[vt.error]:"border-destructive/35 bg-destructive/12 text-destructive",[vt.info]:"border-info/35 bg-info/12 text-info"}},defaultVariants:{tone:vt.default}});function ff(e){return e===Le.icon||e===Le.iconSm||e===Le.iconLg}function gf(e,t,r){return e&&t?-1:r}function yf(e){return e["aria-label"]??e["aria-labelledby"]??e.title}function vf(){if(typeof process>"u")return!0;return!0}var mn=So(({className:e,size:t=sr.md,...r},o)=>dt(nn,{ref:o,className:i(sn({size:t}),e),...r},void 0,!1,void 0,this));mn.displayName="ButtonIcon";var dn=So(({className:e,...t},r)=>dt("span",{ref:r,className:i("truncate",e),...t},void 0,!1,void 0,this));dn.displayName="ButtonLabel";var pn=So(({className:e,tone:t=vt.default,...r},o)=>dt("span",{ref:o,className:i(ln({tone:t}),e),...r},void 0,!1,void 0,this));pn.displayName="ButtonBadge";var cn=So(({className:e,variant:t=mt.primary,size:r=Le.md,asChild:o=!1,loading:a=!1,loadingText:n=cf,fullWidth:s=!1,leadingIcon:l,trailingIcon:m,disabled:d,children:f,type:u,tabIndex:T,onClick:p,...y},S)=>{let P=c(r),w=P??r,C=yf(y);if(vf()&&ff(w)&&!C)throw Error("Icon-size Button requires aria-label, aria-labelledby, or title.");let v=Boolean(d||a),z=i(Wr({variant:t,size:P}),s&&"w-full",e);if(o)return dt(nn,{ref:S,className:z,"aria-disabled":v||void 0,"aria-busy":a||void 0,tabIndex:gf(!0,v,T),onClick:v?(V)=>{V.preventDefault()}:p,...y,children:f},void 0,!1,void 0,this);return dt("button",{ref:S,className:z,disabled:v,"aria-disabled":v,"aria-busy":a,tabIndex:T,type:u??uf,onClick:a?void 0:p,...y,children:[dt("span",{className:i("absolute inset-0 flex items-center justify-center transition-opacity duration-150",a?"opacity-100":"opacity-0"),"aria-hidden":"true",children:dt(nr,{size:"sm"},void 0,!1,void 0,this)},void 0,!1,void 0,this),a&&dt("span",{className:"sr-only",children:n},void 0,!1,void 0,this),dt("span",{className:i("inline-flex items-center justify-center gap-2 transition-opacity duration-150",a&&"opacity-0"),children:[l,f,m]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)});cn.displayName="Button";import{jsxDEV as et}from"react/jsx-dev-runtime";var bt={sm:"sm",md:"md",lg:"lg",xl:"xl",full:"full"},fn=un("gs-dialog-overlay fixed inset-0 z-50 bg-black/50"),gn=un("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:{[bt.sm]:"max-w-sm",[bt.md]:"max-w-md",[bt.lg]:"max-w-lg",[bt.xl]:"max-w-xl",[bt.full]:"max-w-[calc(100vw-2rem)] max-h-[calc(100vh-2rem)]"}},defaultVariants:{size:bt.md}}),bf=ge.Root,Tf=ge.Trigger,yn=ge.Portal,_i=lr(({className:e,...t},r)=>et(ge.Overlay,{ref:r,className:i(fn(),e),...t},void 0,!1,void 0,this));_i.displayName="AlertDialogOverlay";var vn=lr(({className:e,size:t=bt.md,...r},o)=>{let a=c(t);return et(yn,{children:[et(_i,{},void 0,!1,void 0,this),et(ge.Content,{ref:o,className:i(gn({size:a}),e),...r},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});vn.displayName="AlertDialogContent";var bn=({className:e,...t})=>et("div",{className:i("flex flex-col space-y-2 text-center sm:text-left",e),...t},void 0,!1,void 0,this);bn.displayName="AlertDialogHeader";var Tn=({className:e,...t})=>et("div",{className:i("flex flex-col-reverse sm:flex-row sm:justify-end sm:gap-2.5",e),...t},void 0,!1,void 0,this);Tn.displayName="AlertDialogFooter";var hn=lr(({className:e,...t},r)=>et(ge.Title,{ref:r,className:i("text-lg font-semibold",e),...t},void 0,!1,void 0,this));hn.displayName="AlertDialogTitle";var Pn=lr(({className:e,...t},r)=>et(ge.Description,{ref:r,className:i("text-sm text-muted-foreground",e),...t},void 0,!1,void 0,this));Pn.displayName="AlertDialogDescription";var xn=lr(({className:e,...t},r)=>et(ge.Action,{ref:r,className:i(Wr(),e),...t},void 0,!1,void 0,this));xn.displayName="AlertDialogAction";var Cn=lr(({className:e,...t},r)=>et(ge.Cancel,{ref:r,className:i(Wr({variant:"outline"}),"mt-2 sm:mt-0",e),...t},void 0,!1,void 0,this));Cn.displayName="AlertDialogCancel";import*as zn from"@radix-ui/react-aspect-ratio";var hf=zn.Root;import*as dr from"@radix-ui/react-avatar";import{cva as Pf}from"class-variance-authority";import{forwardRef as No}from"react";import{jsxDEV as mr}from"react/jsx-dev-runtime";var Ie={sm:"sm",md:"md",lg:"lg",xl:"xl"},Sn=Pf("relative flex shrink-0 overflow-hidden rounded-full",{variants:{size:{[Ie.sm]:"h-7 w-7",[Ie.md]:"h-10 w-10",[Ie.lg]:"h-12 w-12",[Ie.xl]:"h-16 w-16"}},defaultVariants:{size:Ie.md}}),Gi=No(({className:e,size:t=Ie.md,...r},o)=>{let a=c(t);return mr(dr.Root,{ref:o,className:i(Sn({size:a}),e),...r},void 0,!1,void 0,this)});Gi.displayName="Avatar";var Nn=No(({className:e,...t},r)=>mr(dr.Image,{ref:r,className:i("aspect-square h-full w-full object-cover",e),...t},void 0,!1,void 0,this));Nn.displayName="AvatarImage";var Wi=No(({className:e,...t},r)=>mr(dr.Fallback,{ref:r,className:i("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));Wi.displayName="AvatarFallback";var xf={[Ie.sm]:"-space-x-2",[Ie.md]:"-space-x-3",[Ie.lg]:"-space-x-4",[Ie.xl]:"-space-x-5"},wn=No(({className:e,children:t,max:r,size:o=Ie.md,...a},n)=>{let s=c(o),l=Array.isArray(t)?t:[t],m=r?l.slice(0,r):l,d=r?Math.max(0,l.length-r):0;return mr("div",{ref:n,className:i("flex items-center",xf[s],e),...a,children:[m,d>0&&mr(Gi,{size:s,className:"border-2 border-background",children:mr(Wi,{className:"text-xs",children:["+",d]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});wn.displayName="AvatarGroup";import{Slot as Cf}from"@radix-ui/react-slot";import{cva as zf}from"class-variance-authority";import{X as Sf}from"lucide-react";import{forwardRef as Nf}from"react";import{jsxDEV as Ur}from"react/jsx-dev-runtime";var ve={default:"default",primary:"primary",success:"success",warning:"warning",error:"error",info:"info",outline:"outline"},Tt={sm:"sm",md:"md",lg:"lg",dot:"dot"},Rn=zf("inline-flex items-center justify-center gap-1 whitespace-nowrap rounded-full border font-medium",{variants:{variant:{[ve.default]:"border-border bg-muted text-muted-foreground",[ve.primary]:"border-primary/30 bg-primary/10 text-primary",[ve.success]:"border-success/30 bg-success/10 text-success",[ve.warning]:"border-warning/30 bg-warning/10 text-warning",[ve.error]:"border-destructive/30 bg-destructive/10 text-destructive",[ve.info]:"border-info/30 bg-info/10 text-info",[ve.outline]:"border-border bg-transparent text-foreground"},solid:{true:"",false:""},size:{[Tt.sm]:"h-5 px-2 text-[10px]",[Tt.md]:"h-6 px-2.5 text-xs",[Tt.lg]:"h-7 px-3 text-sm",[Tt.dot]:"h-2 w-2 p-0"}},compoundVariants:[{solid:!0,variant:ve.default,className:"border-transparent bg-foreground text-background"},{solid:!0,variant:ve.primary,className:"border-primary bg-primary text-primary-foreground"},{solid:!0,variant:ve.success,className:"border-success bg-success text-background"},{solid:!0,variant:ve.warning,className:"border-warning bg-warning text-background"},{solid:!0,variant:ve.error,className:"border-destructive bg-destructive text-destructive-foreground"},{solid:!0,variant:ve.info,className:"border-info bg-info text-background"},{solid:!0,variant:ve.outline,className:"border-border bg-foreground text-background"}],defaultVariants:{variant:ve.default,solid:!1,size:Tt.md}}),Mn=Nf(({className:e,variant:t=ve.default,size:r=Tt.md,solid:o=!1,pulse:a=!1,removable:n=!1,onRemove:s,onClick:l,children:m,asChild:d=!1,...f},u)=>{let T=c(r),p=Boolean(l),y=T===Tt.dot,S=(C)=>{C.stopPropagation(),s?.(C)},P=i(Rn({variant:t,solid:o,size:T}),p&&"cursor-pointer",a&&"animate-pulse",n&&!y&&"pr-1",e),w=n&&!y&&Ur("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:Ur(Sf,{className:"size-3"},void 0,!1,void 0,this)},void 0,!1,void 0,this);if(d)return Ur(Cf,{ref:u,className:P,onClick:l,...f,children:m},void 0,!1,void 0,this);if(p)return Ur("button",{ref:u,className:P,onClick:l,type:"button",...f,children:[!y&&m,w]},void 0,!0,void 0,this);return Ur("span",{ref:u,className:P,...f,children:[!y&&m,w]},void 0,!0,void 0,this)});Mn.displayName="Badge";import{Children as wf,cloneElement as Rf,forwardRef as Mf,isValidElement as Lf,useCallback as Ln,useEffect as Hf,useLayoutEffect as kf,useRef as Af,useState as If}from"react";import{jsxDEV as Hn}from"react/jsx-dev-runtime";function Vf(e){let t=[];return wf.forEach(e,(r,o)=>{if(!Lf(r))return;let a=r.key??o;t.push({key:a,element:r,isLeaving:!1})}),t}function Df(e,t){let r=new Set(t.map((n)=>n.key)),o=new Set(e.map((n)=>n.key)),a=[];for(let n of e)if(r.has(n.key)){let s=t.find((l)=>l.key===n.key);if(s)a.push({...s,isLeaving:!1})}else a.push({...n,isLeaving:!0});for(let n of t)if(!o.has(n.key))a.push(n);return a}function Ff(e,t,r){if(r.current)return r.current=!1,t;return Df(e,t)}var Bf=typeof window<"u"?kf:Hf,kn=Mf(({children:e,className:t,onRemove:r,gap:o="sm"},a)=>{let[n,s]=If([]),l=Af(!0);Bf(()=>{let u=Vf(e);s((T)=>Ff(T,u,l))},[e]);let m=Ln((u)=>{s((T)=>T.filter((p)=>p.key!==u))},[]),d=Ln((u)=>{r?.(u)},[r]),f={sm:"gap-1",md:"gap-2",lg:"gap-3"}[o];return Hn("div",{ref:a,className:i("inline-flex flex-wrap items-center",f,t),children:n.map((u)=>{let T={};if(u.element.props.removable&&r)T.onRemove=()=>{d(u.key)};let p=i("inline-flex transition-all duration-200",u.isLeaving&&"pointer-events-none scale-95 opacity-0");return Hn("span",{className:p,onTransitionEnd:u.isLeaving?()=>m(u.key):void 0,children:Rf(u.element,T)},u.key,!1,void 0,this)})},void 0,!1,void 0,this)});kn.displayName="BadgeGroup";import{Slot as Of}from"@radix-ui/react-slot";import{cva as pr}from"class-variance-authority";import{ChevronRight as _f,MoreHorizontal as Gf}from"lucide-react";import{createContext as Wf,forwardRef as $r,useContext as Ui}from"react";import{jsxDEV as Ue}from"react/jsx-dev-runtime";var de={sm:"sm",md:"md",lg:"lg"},wo=Wf(de.md),An=pr("flex flex-wrap items-center break-words text-muted-foreground",{variants:{size:{[de.sm]:"gap-1 text-xs",[de.md]:"gap-1.5 text-sm sm:gap-2.5",[de.lg]:"gap-2 text-base sm:gap-3"}},defaultVariants:{size:de.md}}),In=pr("inline-flex items-center gap-1.5"),Vn=pr("gs-interactive hover:text-foreground focus-visible:outline-none focus-visible:text-foreground"),Dn=pr("font-normal text-foreground"),Fn=pr("",{variants:{size:{[de.sm]:"[&>svg]:size-3",[de.md]:"[&>svg]:size-3.5",[de.lg]:"[&>svg]:size-4"}},defaultVariants:{size:de.md}}),Bn=pr("flex items-center justify-center",{variants:{size:{[de.sm]:"h-7 w-7 [&>svg]:size-3.5",[de.md]:"h-9 w-9 [&>svg]:size-4",[de.lg]:"h-10 w-10 [&>svg]:size-5"}},defaultVariants:{size:de.md}}),On=$r(({size:e=de.md,...t},r)=>{let o=c(e)??de.md;return Ue(wo.Provider,{value:o,children:Ue("nav",{ref:r,"aria-label":"breadcrumb",...t},void 0,!1,void 0,this)},void 0,!1,void 0,this)});On.displayName="Breadcrumb";var _n=$r(({className:e,...t},r)=>{let o=Ui(wo);return Ue("ol",{ref:r,className:i(An({size:o}),e),...t},void 0,!1,void 0,this)});_n.displayName="BreadcrumbList";var Gn=$r(({className:e,...t},r)=>Ue("li",{ref:r,className:i(In(),e),...t},void 0,!1,void 0,this));Gn.displayName="BreadcrumbItem";var Wn=$r(({asChild:e,className:t,...r},o)=>{return Ue(e?Of:"a",{ref:o,className:i(Vn(),t),...r},void 0,!1,void 0,this)});Wn.displayName="BreadcrumbLink";var Un=$r(({className:e,...t},r)=>Ue("span",{ref:r,role:"link",tabIndex:0,"aria-disabled":"true","aria-current":"page",className:i(Dn(),e),...t},void 0,!1,void 0,this));Un.displayName="BreadcrumbPage";var $n=({children:e,className:t,...r})=>{let o=Ui(wo),a={[de.sm]:"size-3",[de.md]:"size-3.5",[de.lg]:"size-4"};return Ue("li",{role:"presentation","aria-hidden":"true",className:i(Fn({size:o}),t),...r,children:e??Ue(_f,{className:a[o]},void 0,!1,void 0,this)},void 0,!1,void 0,this)};$n.displayName="BreadcrumbSeparator";var Kn=({className:e,...t})=>{let r=Ui(wo);return Ue("span",{role:"presentation","aria-hidden":"true",className:i(Bn({size:r}),e),...t,children:[Ue(Gf,{},void 0,!1,void 0,this),Ue("span",{className:"sr-only",children:"More"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)};Kn.displayName="BreadcrumbEllipsis";import{cva as Uf}from"class-variance-authority";import{forwardRef as $f}from"react";import{jsxDEV as Kf}from"react/jsx-dev-runtime";var Kr={horizontal:"horizontal",vertical:"vertical"},Yn=Uf("inline-flex items-stretch",{variants:{orientation:{[Kr.horizontal]:"flex-row",[Kr.vertical]:"flex-col"},attached:{true:"gap-0 [&>*:not(:first-child)]:rounded-l-none [&>*:not(:last-child)]:rounded-r-none",false:"gap-2"}},defaultVariants:{orientation:Kr.horizontal,attached:!1}}),Xn=$f(({className:e,orientation:t=Kr.horizontal,attached:r=!1,fullWidth:o=!1,...a},n)=>Kf("div",{ref:n,className:i(Yn({orientation:t,attached:r}),o&&"w-full",e),...a},void 0,!1,void 0,this));Xn.displayName="ButtonGroup";import{cva as ht}from"class-variance-authority";import{forwardRef as Yf,useCallback as cr,useEffect as Xf,useMemo as Zn,useState as qn}from"react";import{jsxDEV as He}from"react/jsx-dev-runtime";var O={sm:"sm",md:"md",lg:"lg",xl:"xl"},Qn=ht("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:{[O.sm]:"p-3 text-sm",[O.md]:"p-4 text-sm",[O.lg]:"p-5 text-base",[O.xl]:"p-6 text-base"}},defaultVariants:{size:O.md}}),En=ht("mb-3 flex items-center justify-between",{variants:{size:{[O.sm]:"gap-1",[O.md]:"gap-2",[O.lg]:"gap-3",[O.xl]:"gap-3"}},defaultVariants:{size:O.md}}),jn=ht("font-semibold text-foreground",{variants:{size:{[O.sm]:"text-sm",[O.md]:"text-base",[O.lg]:"text-lg",[O.xl]:"text-xl"}},defaultVariants:{size:O.md}}),$i=ht(["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:{[O.sm]:"size-7",[O.md]:"size-8",[O.lg]:"size-10",[O.xl]:"size-10"}},defaultVariants:{size:O.md}}),es=ht("grid grid-cols-7",{variants:{size:{[O.sm]:"gap-0.5",[O.md]:"gap-1",[O.lg]:"gap-1.5",[O.xl]:"gap-2"}},defaultVariants:{size:O.md}}),ts=ht("text-center font-semibold uppercase tracking-wide text-muted-foreground",{variants:{size:{[O.sm]:"py-1 text-[10px]",[O.md]:"py-1.5 text-xs",[O.lg]:"py-2 text-sm",[O.xl]:"py-2 text-sm"}},defaultVariants:{size:O.md}}),rs=ht(["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:{[O.sm]:"size-7 text-xs",[O.md]:"size-9 text-sm",[O.lg]:"size-10 text-base",[O.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:O.md,state:"default"}}),Zf=ht("rounded-md border border-transparent",{variants:{size:{[O.sm]:"size-7",[O.md]:"size-9",[O.lg]:"size-10",[O.xl]:"size-11"}},defaultVariants:{size:O.md}}),Jn=["Su","Mo","Tu","We","Th","Fr","Sa"],qf=["January","February","March","April","May","June","July","August","September","October","November","December"],pt=(e)=>new Date(e.getFullYear(),e.getMonth(),e.getDate()),ur=(e,t)=>{return e.getDate()===t.getDate()&&e.getMonth()===t.getMonth()&&e.getFullYear()===t.getFullYear()},os=Yf(({className:e,size:t="md",cellSize:r,mode:o="single",value:a,defaultValue:n,onChange:s,rangeValue:l,onRangeChange:m,viewMonth:d,onViewMonthChange:f,minDate:u,maxDate:T,disabledDates:p=[],weekStartsOn:y=1,highlightToday:S=!0,...P},w)=>{let C=c(t)??O.md,v=c(r??C)??C,[z,V]=qn(a??n??null),[h,L]=qn(a??n??new Date),A=d??h,F=cr((g)=>{if(f){let b=typeof g==="function"?g(d??h):g;f(b)}else L((b)=>{return typeof g==="function"?g(b):g})},[d,h,f]),Z=a!==void 0?a:z,B=u?pt(u):null,W=T?pt(T):null;Xf(()=>{if(a!==void 0){if(V(a??null),a&&!d)L(a)}},[a,d]);let N=cr((g,b)=>{return(new Date(g,b,1).getDay()-y+7)%7},[y]),I=Zn(()=>{let g=A.getFullYear(),b=A.getMonth(),k=N(g,b),le=new Date(g,b+1,0).getDate(),H=[];for(let $=0;$<k;$+=1)H.push({key:`leading-${g}-${b}-${$}`,date:null});for(let $=1;$<=le;$+=1)H.push({key:`day-${g}-${b}-${$}`,date:new Date(g,b,$)});let E=(7-H.length%7)%7;for(let $=0;$<E;$+=1)H.push({key:`trailing-${g}-${b}-${$}`,date:null});return H},[A,N]),x=cr((g)=>{let b=pt(g);if(B&&b<B)return!0;if(W&&b>W)return!0;return p.some((k)=>ur(b,pt(k)))},[B,W,p]),D=cr((g)=>{if(x(g))return"disabled";if(o==="range"&&l){let{from:b,to:k}=l;if(b&&ur(g,b))return"rangeStart";if(k&&ur(g,k))return"rangeEnd";if(b&&k){let le=pt(g),H=pt(b),E=pt(k);if(le>H&&le<E)return"range"}}if(o==="single"&&Z&&ur(g,Z))return"selected";if(S&&ur(g,new Date))return"today";return"default"},[Z,S,x,o,l]),Q=cr((g)=>{if(x(g))return;let b=new Date(g);if(o==="range"){if(!l?.from||l.from&&l.to)m?.({from:b,to:void 0});else{let k=pt(l.from);if(pt(b)<k)m?.({from:b,to:l.from});else m?.({from:l.from,to:b})}return}if(a===void 0)V(b);s?.(b)},[x,o,s,m,l,a]),R=cr((g)=>{F((b)=>{let k=new Date(b);return k.setMonth(k.getMonth()+g),k})},[F]),U=Zn(()=>{return[...Jn.slice(y),...Jn.slice(0,y)]},[y]);return He("div",{ref:w,className:i(Qn({size:C}),e),...P,children:[He("div",{className:i(En({size:C})),children:[He("button",{type:"button",onClick:()=>R(-1),className:i($i({size:C})),"aria-label":"Previous month",children:He("svg",{className:"size-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:He("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),He("span",{className:i(jn({size:C})),children:[qf[A.getMonth()]," ",A.getFullYear()]},void 0,!0,void 0,this),He("button",{type:"button",onClick:()=>R(1),className:i($i({size:C})),"aria-label":"Next month",children:He("svg",{className:"size-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:He("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),He("div",{className:i(es({size:C})),children:[U.map((g)=>He("div",{className:i(ts({size:v})),children:g},g,!1,void 0,this)),I.map((g)=>{if(!g.date)return He("div",{"aria-hidden":"true",className:i(Zf({size:v}))},g.key,!1,void 0,this);let b=g.date,k=D(b);return He("button",{type:"button",onClick:()=>Q(b),disabled:k==="disabled",className:i(rs({size:v,state:k})),children:b.getDate()},g.key,!1,void 0,this)})]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)});os.displayName="Calendar";import{Slot as fr}from"@radix-ui/react-slot";import{cva as Jf}from"class-variance-authority";import{forwardRef as gr}from"react";import{jsxDEV as yr}from"react/jsx-dev-runtime";var Ro={default:"default",muted:"muted",danger:"danger"},is=Jf("gs-interactive relative overflow-hidden rounded-[var(--radius)] border bg-card text-card-foreground shadow-[var(--shadow-sm)]",{variants:{variant:{[Ro.default]:"border-border",[Ro.muted]:"border-border/70 bg-muted/40",[Ro.danger]:"border-destructive/30 bg-destructive/[0.06]"}},defaultVariants:{variant:Ro.default}}),as=gr(({asChild:e=!1,className:t,variant:r,...o},a)=>{return yr(e?fr:"div",{ref:a,className:i(is({variant:r}),t),...o},void 0,!1,void 0,this)});as.displayName="Card";var ns=gr(({asChild:e=!1,className:t,...r},o)=>{return yr(e?fr:"div",{ref:o,className:i("flex flex-col gap-1.5 border-b border-border/50 p-4",t),...r},void 0,!1,void 0,this)});ns.displayName="CardHeader";var ss=gr(({asChild:e=!1,className:t,...r},o)=>{return yr(e?fr:"div",{ref:o,className:i("p-4",t),...r},void 0,!1,void 0,this)});ss.displayName="CardContent";var ls=gr(({asChild:e=!1,className:t,...r},o)=>{return yr(e?fr:"div",{ref:o,className:i("flex items-center border-t border-border/50 p-4",t),...r},void 0,!1,void 0,this)});ls.displayName="CardFooter";var ms=gr(({asChild:e=!1,className:t,...r},o)=>{return yr(e?fr:"h3",{ref:o,className:i("font-semibold text-base leading-none tracking-tight",t),...r},void 0,!1,void 0,this)});ms.displayName="CardTitle";var ds=gr(({asChild:e=!1,className:t,...r},o)=>{return yr(e?fr:"p",{ref:o,className:i("text-sm text-muted-foreground",t),...r},void 0,!1,void 0,this)});ds.displayName="CardDescription";import*as Lo from"@radix-ui/react-checkbox";import{cva as Qf}from"class-variance-authority";import{Check as Ef,Minus as jf}from"lucide-react";import{forwardRef as eg}from"react";import{jsxDEV as Mo}from"react/jsx-dev-runtime";var $e={sm:"sm",md:"md",lg:"lg",xl:"xl"},vr={default:"default",error:"error",success:"success"},cs=Qf("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:{[$e.sm]:"h-4 w-4",[$e.md]:"h-5 w-5",[$e.lg]:"h-6 w-6",[$e.xl]:"h-7 w-7"},status:{[vr.default]:"enabled:hover:border-primary/70",[vr.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",[vr.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:$e.md,status:vr.default}}),ps={[$e.sm]:"size-3.5",[$e.md]:"size-3.5",[$e.lg]:"size-4",[$e.xl]:"size-5"},us=eg(({className:e,size:t=$e.md,status:r=vr.default,checked:o,disabled:a,...n},s)=>{let l=c(t);return Mo(Lo.Root,{ref:s,checked:o,disabled:a,className:i(cs({size:l,status:r}),e),...n,children:Mo(Lo.Indicator,{className:"gs-checkbox-indicator flex items-center justify-center text-current",children:o==="indeterminate"?Mo(jf,{className:ps[l]},void 0,!1,void 0,this):Mo(Ef,{className:ps[l]},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)});us.displayName="Checkbox";import{cva as Pt}from"class-variance-authority";import{forwardRef as tg,useCallback as rg,useState as og}from"react";import{jsxDEV as ze,Fragment as fs}from"react/jsx-dev-runtime";var X={sm:"sm",md:"md",lg:"lg"},Ki={default:"default",ghost:"ghost"},gs=Pt("relative rounded-lg overflow-hidden font-mono",{variants:{size:{[X.sm]:"text-xs",[X.md]:"text-sm",[X.lg]:"text-base"},variant:{[Ki.default]:"bg-muted border border-border",[Ki.ghost]:"bg-transparent"}},defaultVariants:{size:X.md,variant:Ki.default}}),ys=Pt("flex items-center justify-between border-b border-border bg-muted",{variants:{size:{[X.sm]:"px-2.5 py-1.5 text-xs",[X.md]:"px-4 py-2 text-sm",[X.lg]:"px-5 py-2.5 text-base"}},defaultVariants:{size:X.md}}),vs=Pt("text-muted-foreground font-medium",{variants:{size:{[X.sm]:"text-[11px]",[X.md]:"text-xs",[X.lg]:"text-sm"}},defaultVariants:{size:X.md}}),bs=Pt(["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:{[X.sm]:"px-2 py-1 text-xs",[X.md]:"px-2.5 py-1 text-xs",[X.lg]:"px-3 py-1.5 text-sm"},copied:{true:"text-success",false:""}},defaultVariants:{size:X.md,copied:!1}}),Ts=Pt("overflow-x-auto",{variants:{size:{[X.sm]:"p-2.5",[X.md]:"p-4",[X.lg]:"p-5"}},defaultVariants:{size:X.md}}),hs=Pt("text-foreground",{variants:{size:{[X.sm]:"",[X.md]:"",[X.lg]:""},showLineNumbers:{true:"",false:""}},defaultVariants:{size:X.md,showLineNumbers:!1}}),Ps=Pt("block",{variants:{size:{[X.sm]:"min-h-[1.25rem]",[X.md]:"min-h-[1.5rem]",[X.lg]:"min-h-[1.75rem]"},highlighted:{true:"bg-primary/10 -mx-4 px-4",false:""}},defaultVariants:{size:X.md,highlighted:!1}}),xs=Pt("inline-block text-right text-muted-foreground select-none",{variants:{size:{[X.sm]:"w-6 mr-2 text-[10px]",[X.md]:"w-8 mr-4 text-xs",[X.lg]:"w-10 mr-5 text-sm"}},defaultVariants:{size:X.md}}),Cs=tg(({className:e,code:t,language:r,showLineNumbers:o=!1,highlightedLines:a=[],showCopy:n=!0,size:s="md",variant:l="default",onCopy:m,...d},f)=>{let u=c(s),[T,p]=og(!1),y=rg(async()=>{try{await navigator.clipboard.writeText(t),p(!0),m?.(t),setTimeout(()=>p(!1),2000)}catch(w){}},[t,m]),S=t.split(`
3
+ `),P=new Set(a);return ze("div",{ref:f,className:i(gs({size:u,variant:l}),e),...d,children:[(r||n)&&ze("div",{className:i(ys({size:u})),children:[ze("span",{className:i(vs({size:u})),children:r},void 0,!1,void 0,this),n&&ze("button",{type:"button",onClick:y,className:i(bs({size:u,copied:T})),children:T?ze(fs,{children:[ze("svg",{className:"size-3.5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:ze("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):ze(fs,{children:[ze("svg",{className:"size-3.5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:ze("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),ze("div",{className:i(Ts({size:u})),children:ze("pre",{className:i(hs({size:u,showLineNumbers:o})),children:ze("code",{children:S.map((w,C)=>ze("span",{className:i(Ps({size:u,highlighted:P.has(C+1)})),children:[o&&ze("span",{className:i(xs({size:u})),children:C+1},void 0,!1,void 0,this),w,`
4
+ `]},`line-${String(C)}`,!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)});Cs.displayName="CodeBlock";import*as br from"@radix-ui/react-collapsible";import{cva as ig}from"class-variance-authority";import{forwardRef as ag}from"react";import{jsxDEV as lg}from"react/jsx-dev-runtime";var zs=ig("gs-collapsible-content overflow-hidden"),ng=br.Root,sg=br.CollapsibleTrigger,Ss=ag(({className:e,...t},r)=>lg(br.CollapsibleContent,{ref:r,className:i(zs(),e),...t},void 0,!1,void 0,this));Ss.displayName="CollapsibleContent";import*as xt from"@radix-ui/react-dialog";import{cva as Ke}from"class-variance-authority";import{createContext as mg,forwardRef as tt,useContext as dg,useEffect as pg,useState as Ns}from"react";import{jsxDEV as ye}from"react/jsx-dev-runtime";var ws=Ke(["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"}}),Rs=Ke(["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"]),Ms=Ke(["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"]),Ls=Ke(["max-h-[300px] overflow-y-auto overflow-x-hidden p-2"]),Hs=Ke(["py-6 text-center text-sm text-muted-foreground"]),ks=Ke(["overflow-hidden"]),As=Ke(["px-2 py-1.5 text-xs font-medium text-muted-foreground"]),Ho={default:"default",danger:"danger"},Is=Ke(["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:{[Ho.default]:"text-foreground",[Ho.danger]:"text-destructive hover:bg-destructive/10 focus:bg-destructive focus:text-destructive-foreground"}},defaultVariants:{selected:!1,variant:Ho.default}}),Vs=Ke(["-mx-1 my-1 h-px bg-border"]),Ds=Ke(["ml-auto text-xs tracking-widest text-muted-foreground"]),Fs=Ke(["flex items-center justify-center py-6"]),Bs=mg(null),Yi=()=>{let e=dg(Bs);if(!e)throw Error("useCommand must be used within a Command");return e},Xi=tt(({className:e,children:t,loop:r=!0,...o},a)=>{let[n,s]=Ns(""),[l,m]=Ns(0);return ye(Bs.Provider,{value:{search:n,setSearch:s,selectedIndex:l,setSelectedIndex:m},children:ye("div",{ref:a,className:i("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)});Xi.displayName="Command";var Os=tt(({children:e,size:t,...r},o)=>{return ye(xt.Root,{...r,children:ye(xt.Portal,{children:[ye(xt.Overlay,{className:i(Rs())},void 0,!1,void 0,this),ye(xt.Content,{ref:o,className:i(ws({size:t})),children:ye(Xi,{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)});Os.displayName="CommandDialog";var _s=tt(({className:e,icon:t,...r},o)=>{let{search:a,setSearch:n,setSelectedIndex:s}=Yi();return ye("div",{className:"flex items-center border-border border-b px-3",children:[t&&ye("span",{className:"mr-2 shrink-0 text-muted-foreground",children:t},void 0,!1,void 0,this),ye("input",{ref:o,value:a,onChange:(l)=>{n(l.target.value),s(0)},className:i(Ms(),e),...r},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});_s.displayName="CommandInput";var Gs=tt(({className:e,children:t,...r},o)=>{return ye("div",{ref:o,className:i(Ls(),e),...r,children:t},void 0,!1,void 0,this)});Gs.displayName="CommandList";var Ws=tt(({className:e,children:t="No results found.",...r},o)=>{return ye("div",{ref:o,className:i(Hs(),e),...r,children:t},void 0,!1,void 0,this)});Ws.displayName="CommandEmpty";var Us=tt(({className:e,heading:t,children:r,...o},a)=>{return ye("div",{ref:a,className:i(ks(),e),...o,children:[t&&ye("div",{className:i(As()),children:t},void 0,!1,void 0,this),r]},void 0,!0,void 0,this)});Us.displayName="CommandGroup";var $s=tt(({className:e,disabled:t,onSelect:r,children:o,keywords:a,variant:n,...s},l)=>{let{search:m}=Yi();if(!(()=>{if(!m)return!0;let f=m.toLowerCase();if((typeof o==="string"?o.toLowerCase():"").includes(f))return!0;if(a?.some((T)=>T.toLowerCase().includes(f)))return!0;return!1})())return null;return ye("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:i(Is({selected:!1,variant:n}),e),...s,children:o},void 0,!1,void 0,this)});$s.displayName="CommandItem";var Ks=tt(({className:e,...t},r)=>{return ye("div",{ref:r,className:i(Vs(),e),...t},void 0,!1,void 0,this)});Ks.displayName="CommandSeparator";var Ys=tt(({className:e,children:t,...r},o)=>{return ye("span",{ref:o,className:i(Ds(),e),...r,children:t},void 0,!1,void 0,this)});Ys.displayName="CommandShortcut";var Xs=tt(({className:e,children:t,...r},o)=>{return ye("div",{ref:o,className:i(Fs(),e),...r,children:t},void 0,!1,void 0,this)});Xs.displayName="CommandLoading";var cg=({key:e,modifier:t="meta",callback:r})=>{pg(()=>{let o=(a)=>{if({ctrl:a.ctrlKey,meta:a.metaKey,alt:a.altKey,shift:a.shiftKey}[t]&&a.key.toLowerCase()===e.toLowerCase())a.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 Ft}from"class-variance-authority";import{Check as ug,ChevronRight as fg,Circle as gg}from"lucide-react";import{createContext as yg,forwardRef as Ct,useContext as Tr}from"react";import{jsxDEV as pe}from"react/jsx-dev-runtime";var K={sm:"sm",md:"md",lg:"lg"},ko={default:"default",danger:"danger"},Bt=yg(K.md),Zi=Ft("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)]"),qi=Ft("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:{[K.sm]:"h-6 gap-1.5 px-1.5 text-xs [&_svg]:size-3",[K.md]:"h-8 gap-2 px-2 text-sm [&_svg]:size-4",[K.lg]:"h-9 gap-2 px-2.5 text-sm [&_svg]:size-4"},variant:{[ko.default]:"hover:bg-accent/80 focus:bg-accent focus:text-accent-foreground",[ko.danger]:"text-destructive hover:bg-destructive/10 focus:bg-destructive focus:text-destructive-foreground"}},defaultVariants:{size:K.md,variant:ko.default}}),Zs=Ft("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:{[K.sm]:"h-6 pl-6 pr-1.5 text-xs",[K.md]:"h-8 pl-8 pr-2 text-sm",[K.lg]:"h-9 pl-8 pr-2.5 text-sm"}},defaultVariants:{size:K.md}}),qs=Ft("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:{[K.sm]:"h-6 pl-6 pr-1.5 text-xs",[K.md]:"h-8 pl-8 pr-2 text-sm",[K.lg]:"h-9 pl-8 pr-2.5 text-sm"}},defaultVariants:{size:K.md}}),Js=Ft("font-semibold text-muted-foreground",{variants:{size:{[K.sm]:"px-1.5 py-0.5 text-[10px]",[K.md]:"px-2 py-1.5 text-xs",[K.lg]:"px-2.5 py-1.5 text-xs"}},defaultVariants:{size:K.md}}),Qs=Ft("-mx-1 my-1 h-px bg-border/50"),Es=Ft("ml-auto tracking-widest text-muted-foreground/70",{variants:{size:{[K.sm]:"text-[10px]",[K.md]:"text-xs",[K.lg]:"text-xs"}},defaultVariants:{size:K.md}}),js={[K.sm]:"absolute left-1.5 flex size-3 items-center justify-center",[K.md]:"absolute left-2 flex size-3.5 items-center justify-center",[K.lg]:"absolute left-2.5 flex size-4 items-center justify-center"},vg={[K.sm]:"size-3",[K.md]:"size-3.5",[K.lg]:"size-4"},bg={[K.sm]:"size-1.5 fill-current",[K.md]:"size-2 fill-current",[K.lg]:"size-2.5 fill-current"},Tg=_.Root,hg=_.Trigger,Pg=_.Group,xg=_.Portal,Cg=_.Sub,zg=_.RadioGroup,el=Ct(({className:e,inset:t,children:r,...o},a)=>{let n=Tr(Bt),s=c(n);return pe(_.SubTrigger,{ref:a,className:i(qi({size:s}),"data-[state=open]:bg-accent",t&&"pl-8",e),...o,children:[r,pe(fg,{className:"ml-auto"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});el.displayName=_.SubTrigger.displayName;var tl=Ct(({className:e,...t},r)=>pe(_.Portal,{children:pe(_.SubContent,{ref:r,className:i(Zi(),e),...t},void 0,!1,void 0,this)},void 0,!1,void 0,this));tl.displayName=_.SubContent.displayName;var rl=Ct(({className:e,size:t,...r},o)=>{let a=c(t)??K.md;return pe(Bt.Provider,{value:a,children:pe(_.Portal,{children:pe(_.Content,{ref:o,className:i(Zi(),e),...r},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)});rl.displayName=_.Content.displayName;var ol=Ct(({className:e,inset:t,variant:r,...o},a)=>{let n=Tr(Bt),s=c(n);return pe(_.Item,{ref:a,className:i(qi({size:s,variant:r}),t&&"pl-8",e),...o},void 0,!1,void 0,this)});ol.displayName=_.Item.displayName;var il=Ct(({className:e,children:t,checked:r,...o},a)=>{let n=Tr(Bt),s=c(n)??K.md;return pe(_.CheckboxItem,{ref:a,className:i(Zs({size:s}),e),checked:r,...o,children:[pe("span",{className:js[s],children:pe(_.ItemIndicator,{children:pe(ug,{className:vg[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)});il.displayName=_.CheckboxItem.displayName;var al=Ct(({className:e,children:t,...r},o)=>{let a=Tr(Bt),n=c(a)??K.md;return pe(_.RadioItem,{ref:o,className:i(qs({size:n}),e),...r,children:[pe("span",{className:js[n],children:pe(_.ItemIndicator,{children:pe(gg,{className:bg[n]},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)});al.displayName=_.RadioItem.displayName;var nl=Ct(({className:e,inset:t,...r},o)=>{let a=Tr(Bt),n=c(a);return pe(_.Label,{ref:o,className:i(Js({size:n}),t&&"pl-8",e),...r},void 0,!1,void 0,this)});nl.displayName=_.Label.displayName;var sl=Ct(({className:e,...t},r)=>pe(_.Separator,{ref:r,className:i(Qs(),e),...t},void 0,!1,void 0,this));sl.displayName=_.Separator.displayName;var ll=({className:e,...t})=>{let r=Tr(Bt),o=c(r);return pe("span",{className:i(Es({size:o}),e),...t},void 0,!1,void 0,this)};ll.displayName="ContextMenuShortcut";import*as be from"@radix-ui/react-dialog";import{cva as Sg}from"class-variance-authority";import{X as Ng}from"lucide-react";import{forwardRef as Ao}from"react";import{jsxDEV as Ye}from"react/jsx-dev-runtime";var zt={sm:"sm",md:"md",lg:"lg",xl:"xl",full:"full"},Ji=be.Root,wg=be.Trigger,ml=be.Portal,Rg=be.Close,Qi=Ao(({className:e,...t},r)=>Ye(be.Overlay,{ref:r,className:i("gs-dialog-overlay fixed inset-0 z-50 bg-black/50",e),...t},void 0,!1,void 0,this));Qi.displayName="DialogOverlay";var dl=Sg("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}}),Io=Ao(({className:e,children:t,size:r=zt.md,showClose:o=!0,...a},n)=>{let s=c(r);return Ye(ml,{children:[Ye(Qi,{},void 0,!1,void 0,this),Ye(be.Content,{ref:n,className:i(dl({size:s}),e),...a,children:[t,o&&Ye(be.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:[Ye(Ng,{className:"size-4"},void 0,!1,void 0,this),Ye("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)});Io.displayName="DialogContent";var pl=({className:e,...t})=>Ye("div",{className:i("flex flex-col space-y-1.5 text-center sm:text-left",e),...t},void 0,!1,void 0,this);pl.displayName="DialogHeader";var cl=({className:e,...t})=>Ye("div",{className:i("flex flex-col-reverse sm:flex-row sm:justify-end sm:gap-2.5",e),...t},void 0,!1,void 0,this);cl.displayName="DialogFooter";var ul=Ao(({className:e,...t},r)=>Ye(be.Title,{ref:r,className:i("font-semibold text-lg leading-none tracking-tight",e),...t},void 0,!1,void 0,this));ul.displayName="DialogTitle";var fl=Ao(({className:e,...t},r)=>Ye(be.Description,{ref:r,className:i("text-muted-foreground text-sm",e),...t},void 0,!1,void 0,this));fl.displayName="DialogDescription";import{cva as Ei}from"class-variance-authority";import{X as Mg}from"lucide-react";import{forwardRef as Vo}from"react";import{Drawer as ct}from"vaul";import{jsxDEV as Ve}from"react/jsx-dev-runtime";var De={sm:"sm",md:"md",lg:"lg",xl:"xl",full:"full"},Lg={[De.sm]:"sm:max-w-sm",[De.md]:"sm:max-w-md",[De.lg]:"sm:max-w-lg",[De.xl]:"sm:max-w-xl",[De.full]:"sm:max-w-full"},Hg={[De.sm]:"sm:max-h-[30vh]",[De.md]:"sm:max-h-[50vh]",[De.lg]:"sm:max-h-[70vh]",[De.xl]:"sm:max-h-[85vh]",[De.full]:"sm:max-h-full"},gl=Ei(["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"]),yl=Ei(["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"]),vl=Ei("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"}}),kg=ct.Root,Ag=ct.Trigger,Ig=ct.Close,bl=ct.Portal,ji=Vo(({className:e,...t},r)=>Ve(ct.Overlay,{ref:r,className:i(gl(),e),...t},void 0,!1,void 0,this));ji.displayName="DrawerOverlay";var Tl=Vo(({size:e=De.md,showClose:t=!1,direction:r="bottom",className:o,children:a,...n},s)=>{let m=r==="left"||r==="right"?Lg[e]:Hg[e];return Ve(bl,{children:[Ve(ji,{},void 0,!1,void 0,this),Ve(ct.Content,{ref:s,className:i(yl(),m,o),...n,children:[(r==="top"||r==="bottom")&&Ve("div",{className:i(vl({direction:r}))},void 0,!1,void 0,this),a,t&&Ve(ct.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:[Ve(Mg,{className:"size-4"},void 0,!1,void 0,this),Ve("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)});Tl.displayName="DrawerContent";var hl=({className:e,...t})=>Ve("div",{className:i("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);hl.displayName="DrawerHeader";var Pl=({className:e,...t})=>Ve("div",{className:i("mt-auto flex flex-col gap-2 p-4",e),...t},void 0,!1,void 0,this);Pl.displayName="DrawerFooter";var xl=Vo(({className:e,...t},r)=>Ve(ct.Title,{ref:r,className:i("font-semibold text-foreground text-lg",e),...t},void 0,!1,void 0,this));xl.displayName="DrawerTitle";var Cl=Vo(({className:e,...t},r)=>Ve(ct.Description,{ref:r,className:i("text-muted-foreground text-sm",e),...t},void 0,!1,void 0,this));Cl.displayName="DrawerDescription";import*as G from"@radix-ui/react-dropdown-menu";import{cva as _t}from"class-variance-authority";import{Check as Vg,ChevronRight as Dg,Circle as Fg}from"lucide-react";import{createContext as Bg,forwardRef as St,useCallback as Og,useContext as hr,useEffect as _g,useRef as zl,useState as Gg}from"react";import{jsxDEV as me}from"react/jsx-dev-runtime";var Y={sm:"sm",md:"md",lg:"lg"},Do={default:"default",danger:"danger"},Gt=Bg(Y.md),Ot=null,Yr=null,Wg=0,ea=_t("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)]"),ta=_t("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:{[Y.sm]:"h-7 gap-1.5 px-2 text-xs [&_svg]:size-3.5",[Y.md]:"h-8 gap-2 px-2 text-sm [&_svg]:size-4",[Y.lg]:"h-9 gap-2 px-2.5 text-sm [&_svg]:size-4"},variant:{[Do.default]:"hover:bg-accent/80 focus:bg-accent focus:text-accent-foreground",[Do.danger]:"text-destructive hover:bg-destructive/10 focus:bg-destructive focus:text-destructive-foreground"}},defaultVariants:{size:Y.md,variant:Do.default}}),Sl=_t("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:{[Y.sm]:"h-7 pl-7 pr-2 text-xs",[Y.md]:"h-8 pl-8 pr-2 text-sm",[Y.lg]:"h-9 pl-8 pr-2.5 text-sm"}},defaultVariants:{size:Y.md}}),Nl=_t("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:{[Y.sm]:"h-7 pl-7 pr-2 text-xs",[Y.md]:"h-8 pl-8 pr-2 text-sm",[Y.lg]:"h-9 pl-8 pr-2.5 text-sm"}},defaultVariants:{size:Y.md}}),wl=_t("font-semibold text-muted-foreground",{variants:{size:{[Y.sm]:"px-2 py-1 text-[11px]",[Y.md]:"px-2 py-1.5 text-xs",[Y.lg]:"px-2.5 py-1.5 text-xs"}},defaultVariants:{size:Y.md}}),Rl=_t("-mx-1 my-1 h-px bg-border/50"),Ml=_t("ml-auto tracking-widest text-muted-foreground/70",{variants:{size:{[Y.sm]:"text-[11px]",[Y.md]:"text-xs",[Y.lg]:"text-xs"}},defaultVariants:{size:Y.md}}),Ll={[Y.sm]:"absolute left-2 flex size-3.5 items-center justify-center",[Y.md]:"absolute left-2 flex size-3.5 items-center justify-center",[Y.lg]:"absolute left-2.5 flex size-4 items-center justify-center"},Ug={[Y.sm]:"size-3",[Y.md]:"size-3.5",[Y.lg]:"size-4"},$g={[Y.sm]:"size-1.5 fill-current",[Y.md]:"size-2 fill-current",[Y.lg]:"size-2.5 fill-current"},Hl=({children:e,open:t,defaultOpen:r,onOpenChange:o,...a})=>{let[n,s]=Gg(r??!1),l=t!==void 0,m=l?t:n,d=zl(++Wg),f=zl({onOpenChange:o,isControlled:l});f.current={onOpenChange:o,isControlled:l};let u=Og((T)=>{let{onOpenChange:p,isControlled:y}=f.current;if(T){if(Ot!==null&&Ot!==d.current&&Yr)Yr();Ot=d.current,Yr=()=>{let{onOpenChange:S,isControlled:P}=f.current;if(!P)s(!1);S?.(!1)}}else if(Ot===d.current)Ot=null,Yr=null;if(!y)s(T);p?.(T)},[]);return _g(()=>{return()=>{if(Ot===d.current)Ot=null,Yr=null}},[]),me(G.Root,{open:m,onOpenChange:u,...a,children:e},void 0,!1,void 0,this)};Hl.displayName="DropdownMenu";var Kg=G.Trigger,Yg=G.Group,Xg=G.Portal,Zg=G.Sub,qg=G.RadioGroup,kl=St(({className:e,inset:t,children:r,...o},a)=>{let n=hr(Gt),s=c(n);return me(G.SubTrigger,{ref:a,className:i(ta({size:s}),"data-[state=open]:bg-accent",t&&"pl-8",e),...o,children:[r,me(Dg,{className:"ml-auto"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});kl.displayName=G.SubTrigger.displayName;var Al=St(({className:e,...t},r)=>me(G.Portal,{children:me(G.SubContent,{ref:r,className:i(ea(),e),...t},void 0,!1,void 0,this)},void 0,!1,void 0,this));Al.displayName=G.SubContent.displayName;var Il=St(({className:e,sideOffset:t=4,size:r,...o},a)=>{let n=c(r)??Y.md;return me(Gt.Provider,{value:n,children:me(G.Portal,{children:me(G.Content,{ref:a,sideOffset:t,className:i(ea(),e),...o},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)});Il.displayName=G.Content.displayName;var Vl=St(({className:e,inset:t,variant:r,...o},a)=>{let n=hr(Gt),s=c(n);return me(G.Item,{ref:a,className:i(ta({size:s,variant:r}),t&&"pl-8",e),...o},void 0,!1,void 0,this)});Vl.displayName=G.Item.displayName;var Dl=St(({className:e,children:t,checked:r,...o},a)=>{let n=hr(Gt),s=c(n)??Y.md;return me(G.CheckboxItem,{ref:a,className:i(Sl({size:s}),e),checked:r,...o,children:[me("span",{className:Ll[s],children:me(G.ItemIndicator,{children:me(Vg,{className:Ug[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)});Dl.displayName=G.CheckboxItem.displayName;var Fl=St(({className:e,children:t,...r},o)=>{let a=hr(Gt),n=c(a)??Y.md;return me(G.RadioItem,{ref:o,className:i(Nl({size:n}),e),...r,children:[me("span",{className:Ll[n],children:me(G.ItemIndicator,{children:me(Fg,{className:$g[n]},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=G.RadioItem.displayName;var Bl=St(({className:e,inset:t,...r},o)=>{let a=hr(Gt),n=c(a);return me(G.Label,{ref:o,className:i(wl({size:n}),t&&"pl-8",e),...r},void 0,!1,void 0,this)});Bl.displayName=G.Label.displayName;var Ol=St(({className:e,...t},r)=>me(G.Separator,{ref:r,className:i(Rl(),e),...t},void 0,!1,void 0,this));Ol.displayName=G.Separator.displayName;var _l=({className:e,...t})=>{let r=hr(Gt),o=c(r);return me("span",{className:i(Ml({size:o}),e),...t},void 0,!1,void 0,this)};_l.displayName="DropdownMenuShortcut";import{cva as Zr}from"class-variance-authority";import{forwardRef as Jg}from"react";import{jsxDEV as Xr}from"react/jsx-dev-runtime";var Te={sm:"sm",md:"md",lg:"lg"},Gl=Zr("flex flex-col items-center justify-center text-center rounded-[var(--radius)] border border-dashed border-border/50 bg-muted/20",{variants:{size:{[Te.sm]:"gap-2 p-4",[Te.md]:"gap-4 p-8",[Te.lg]:"gap-6 p-12"}},defaultVariants:{size:Te.md}}),Wl=Zr("flex items-center justify-center rounded-full bg-muted/50 text-muted-foreground",{variants:{size:{[Te.sm]:"h-10 w-10 [&>svg]:h-4 [&>svg]:w-4",[Te.md]:"h-16 w-16 [&>svg]:h-7 [&>svg]:w-7",[Te.lg]:"h-20 w-20 [&>svg]:h-9 [&>svg]:w-9"}},defaultVariants:{size:Te.md}}),Ul=Zr("font-semibold text-foreground",{variants:{size:{[Te.sm]:"text-sm",[Te.md]:"text-lg",[Te.lg]:"text-xl"}},defaultVariants:{size:Te.md}}),$l=Zr("text-muted-foreground max-w-sm",{variants:{size:{[Te.sm]:"text-xs",[Te.md]:"text-sm",[Te.lg]:"text-base"}},defaultVariants:{size:Te.md}}),Kl=Zr("flex items-center gap-2 mt-2"),Yl=Jg(({className:e,icon:t,title:r,description:o,actions:a,size:n=Te.md,children:s,...l},m)=>{let d=c(n);return Xr("div",{ref:m,className:i(Gl({size:d}),e),...l,children:[t&&Xr("div",{className:Wl({size:d}),children:t},void 0,!1,void 0,this),r&&Xr("h3",{className:Ul({size:d}),children:r},void 0,!1,void 0,this),o&&Xr("p",{className:$l({size:d}),children:o},void 0,!1,void 0,this),a&&Xr("div",{className:Kl(),children:a},void 0,!1,void 0,this),s]},void 0,!0,void 0,this)});Yl.displayName="EmptyState";import{cva as Pr}from"class-variance-authority";import{Component as Qg,createElement as Xl}from"react";import{jsxDEV as Se,Fragment as jg}from"react/jsx-dev-runtime";var Zl=Pr(["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"}}),ql=Pr(["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"}}),Jl=Pr("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"}}),Ql=Pr("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"}}),El=Pr("mt-2 flex flex-wrap items-center justify-center gap-2"),jl=Pr("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 em extends Qg{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:a="destructive",className:n,title:s="Something went wrong",description:l="An unexpected error occurred. Please try again.",icon:m,actions:d,resetLabel:f="Try again",hideReset:u=!1,renderDetails:T}=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 Xl(t,p);return t}let y=null;if(d)y=typeof d==="function"?Xl(d,p):d;else if(!u){let P={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=Se("button",{type:"button",onClick:this.handleReset,className:i("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",P[a]),children:f},void 0,!1,void 0,this)}let S=T?T(this.state.error):Se(jg,{children:[Se("strong",{children:"Error:"},void 0,!1,void 0,this)," ",this.state.error.message,this.state.error.stack&&Se("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 Se("div",{className:i(Zl({size:o,variant:a}),n),children:[Se("div",{className:i(ql({size:o,variant:a})),children:m??Se(Eg,{},void 0,!1,void 0,this)},void 0,!1,void 0,this),Se("h3",{className:i(Jl({size:o,variant:a})),children:s},void 0,!1,void 0,this),Se("p",{className:i(Ql({size:o})),children:l},void 0,!1,void 0,this),y&&Se("div",{className:i(El()),children:y},void 0,!1,void 0,this),r&&Se("div",{className:i(jl()),children:S},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}return e}}function Eg(){return Se("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:[Se("circle",{cx:"12",cy:"12",r:"10"},void 0,!1,void 0,this),Se("line",{x1:"12",x2:"12",y1:"8",y2:"12"},void 0,!1,void 0,this),Se("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 Nt}from"class-variance-authority";import{forwardRef as ey,useCallback as Xe,useRef as ty,useState as tm}from"react";import{jsxDEV as Pe}from"react/jsx-dev-runtime";var re={sm:"sm",md:"md",lg:"lg",xl:"xl"},rm=Nt(["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:{[re.sm]:"min-h-28 p-5",[re.md]:"min-h-36 p-8",[re.lg]:"min-h-44 p-10",[re.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:re.md,isDragging:!1,disabled:!1,hasError:!1}}),om=Nt("text-muted-foreground transition-colors duration-200",{variants:{size:{[re.sm]:"mb-2 size-6",[re.md]:"size-8 mb-3",[re.lg]:"size-10 mb-4",[re.xl]:"size-12 mb-5"},isDragging:{true:"text-primary",false:""}},defaultVariants:{size:re.md,isDragging:!1}}),ra=Nt("text-center",{variants:{size:{[re.sm]:"text-sm",[re.md]:"text-sm",[re.lg]:"text-base",[re.xl]:"text-lg"}},defaultVariants:{size:re.md}}),im=Nt("mt-4 w-full space-y-2"),am=Nt(["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"]),nm=Nt("min-w-0 flex-1 truncate font-medium text-foreground",{variants:{size:{[re.sm]:"text-sm",[re.md]:"text-sm",[re.lg]:"text-base",[re.xl]:"text-base"}},defaultVariants:{size:"md"}}),sm=Nt("text-muted-foreground",{variants:{size:{[re.sm]:"text-xs",[re.md]:"text-sm",[re.lg]:"text-sm",[re.xl]:"text-base"}},defaultVariants:{size:"md"}}),lm=Nt(["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"]),mm=ey(({className:e,size:t="md",disabled:r=!1,accept:o,multiple:a=!1,maxSize:n,maxFiles:s,value:l=[],onChange:m,onError:d,icon:f,title:u="Drop files here or click to upload",description:T,showFileList:p=!0,...y},S)=>{let P=c(t),[w,C]=tm(!1),[v,z]=tm(!1),V=ty(null),h=Xe((R)=>{if(R===0)return"0 Bytes";let U=1024,g=["Bytes","KB","MB","GB"],b=Math.floor(Math.log(R)/Math.log(U));return`${parseFloat((R/U**b).toFixed(2))} ${g[b]}`},[]),L=Xe((R)=>{let U=[...R];if(z(!1),o){let g=o.split(",").map((b)=>b.trim());if(U=U.filter((b)=>{return g.some((k)=>{if(k.startsWith("."))return b.name.toLowerCase().endsWith(k.toLowerCase());if(k.endsWith("/*"))return b.type.startsWith(k.slice(0,-1));return b.type===k})}),U.length<R.length)d?.("Some files were rejected due to file type"),z(!0)}if(n){let g=U.length;if(U=U.filter((b)=>b.size<=n),U.length<g)d?.(`File size must be less than ${h(n)}`),z(!0)}if(s&&U.length+l.length>s)U=U.slice(0,s-l.length),d?.(`Maximum ${s} files allowed`),z(!0);return U},[o,n,s,l.length,d,h]),A=Xe((R)=>{if(!R||R.length===0)return;let U=Array.from(R),g=L(U);if(g.length>0)if(a)m?.([...l,...g]);else m?.(g.slice(0,1))},[a,l,m,L]),F=Xe((R)=>{R.preventDefault(),R.stopPropagation(),C(!0)},[]),Z=Xe((R)=>{R.preventDefault(),R.stopPropagation(),C(!1)},[]),B=Xe((R)=>{R.preventDefault(),R.stopPropagation()},[]),W=Xe((R)=>{if(R.preventDefault(),R.stopPropagation(),C(!1),r)return;A(R.dataTransfer.files)},[r,A]),N=Xe((R)=>{if(A(R.target.files),V.current)V.current.value=""},[A]),I=Xe(()=>{if(!r)V.current?.click()},[r]),x=Xe((R)=>{if(R.key==="Enter"||R.key===" ")R.preventDefault(),I()},[I]),D=Xe((R)=>{let U=l.filter((g,b)=>b!==R);m?.(U)},[l,m]),Q=Pe("svg",{className:i(om({size:P,isDragging:w})),fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1.5,children:Pe("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 Pe("div",{ref:S,className:i("w-full",e),...y,children:[Pe("div",{role:"button",tabIndex:r?-1:0,onClick:I,onKeyDown:x,onDragEnter:F,onDragLeave:Z,onDragOver:B,onDrop:W,className:i(rm({size:P,isDragging:w,disabled:r,hasError:v})),children:[Pe("input",{ref:V,type:"file",accept:o,multiple:a,disabled:r,onChange:N,className:"sr-only"},void 0,!1,void 0,this),f||Q,Pe("p",{className:i(ra({size:P}),"font-medium text-foreground"),children:u},void 0,!1,void 0,this),T&&Pe("p",{className:i(ra({size:P}),"mt-1 text-muted-foreground"),children:T},void 0,!1,void 0,this)]},void 0,!0,void 0,this),p&&l.length>0&&Pe("div",{className:i(im()),children:l.map((R,U)=>Pe("div",{className:i(am()),children:[Pe("svg",{className:"size-5 shrink-0 text-muted-foreground",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1.5,children:Pe("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),Pe("span",{className:i(nm({size:P})),children:R.name},void 0,!1,void 0,this),Pe("span",{className:i(sm({size:P})),children:h(R.size)},void 0,!1,void 0,this),Pe("button",{type:"button",onClick:(g)=>{g.stopPropagation(),D(U)},className:i(lm()),"aria-label":`Remove ${R.name}`,children:Pe("svg",{className:"size-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:Pe("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},`${R.name}-${U}`,!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});mm.displayName="FileUpload";import{cva as ry}from"class-variance-authority";import{createContext as oy,forwardRef as Fo,useContext as iy,useId as ay}from"react";import{jsxDEV as Wt,Fragment as sy}from"react/jsx-dev-runtime";var Fe={sm:"sm",md:"md",lg:"lg"},dm=oy(null),qr=()=>{let e=iy(dm);if(!e)throw Error("useFormField must be used within a FormField");return e},pm=ry("flex flex-col",{variants:{size:{[Fe.sm]:"gap-1",[Fe.md]:"gap-1.5",[Fe.lg]:"gap-2"}},defaultVariants:{size:Fe.md}}),cm=Fo(({className:e,size:t=Fe.md,error:r,disabled:o=!1,required:a=!1,children:n,...s},l)=>{let m=ay(),d=c(t),f={id:m,size:d,error:r,disabled:o,required:a};return Wt(dm.Provider,{value:f,children:Wt("div",{ref:l,className:i(pm({size:d}),e),...s,children:n},void 0,!1,void 0,this)},void 0,!1,void 0,this)});cm.displayName="FormField";var ny={[Fe.sm]:"text-xs",[Fe.md]:"text-sm",[Fe.lg]:"text-base"},um=Fo(({className:e,htmlFor:t,children:r,...o},a)=>{let{id:n,size:s,disabled:l,required:m}=qr();return Wt("label",{ref:a,htmlFor:t??n,className:i("inline-block font-medium text-foreground select-none",ny[s],l&&"cursor-not-allowed opacity-60",e),...o,children:[r,m&&Wt("span",{className:"ml-0.5 text-destructive","aria-hidden":"true",children:"*"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});um.displayName="FormFieldLabel";var fm={[Fe.sm]:"text-[10px]",[Fe.md]:"text-xs",[Fe.lg]:"text-sm"},gm=Fo(({className:e,...t},r)=>{let{id:o,size:a}=qr();return Wt("p",{ref:r,id:`${o}-description`,className:i("text-muted-foreground",fm[a],e),...t},void 0,!1,void 0,this)});gm.displayName="FormFieldDescription";var ym=Fo(({className:e,children:t,...r},o)=>{let{id:a,size:n,error:s}=qr(),l=t??s;if(!l)return null;return Wt("p",{ref:o,id:`${a}-error`,role:"alert",className:i("text-destructive",fm[n],e),...r,children:l},void 0,!1,void 0,this)});ym.displayName="FormFieldError";var vm=({children:e})=>{let{id:t,disabled:r,required:o,error:a}=qr(),n=[a?`${t}-error`:void 0,`${t}-description`].filter(Boolean).join(" ");return Wt(sy,{children:e({id:t,disabled:r,required:o,status:a?"error":"default","aria-describedby":n||void 0,"aria-invalid":a?!0:void 0})},void 0,!1,void 0,this)};vm.displayName="FormFieldControl";import*as Ut from"@radix-ui/react-hover-card";import{cva as ly}from"class-variance-authority";import{forwardRef as my}from"react";import{jsxDEV as cy}from"react/jsx-dev-runtime";var xr={sm:"sm",md:"md",lg:"lg"},bm=ly("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:{[xr.sm]:"w-52 p-3 text-xs",[xr.md]:"w-64 p-4 text-sm",[xr.lg]:"w-80 p-5 text-sm"}},defaultVariants:{size:xr.md}}),dy=Ut.Root,py=Ut.Trigger,Tm=my(({className:e,align:t="center",sideOffset:r=4,size:o=xr.md,...a},n)=>{let s=c(o);return cy(Ut.Content,{ref:n,align:t,sideOffset:r,className:i(bm({size:s}),e),...a},void 0,!1,void 0,this)});Tm.displayName=Ut.Content.displayName;import{cva as uy}from"class-variance-authority";import{X as fy}from"lucide-react";import{forwardRef as gy,useRef as yy,useState as vy}from"react";import{jsxDEV as $t}from"react/jsx-dev-runtime";var Jr={default:"default",error:"error",success:"success"},J={sm:"sm",md:"md",lg:"lg",xl:"xl"},by="Clear input",Pm=uy("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:{[Jr.default]:"focus-visible:ring-primary",[Jr.error]:"border-destructive focus-visible:ring-destructive",[Jr.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:Jr.default,size:J.md}}),Ty={[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"},Py={[J.sm]:"pr-12",[J.md]:"pr-16",[J.lg]:"pr-18",[J.xl]:"pr-18"},xy={[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"},Cy={[J.sm]:"text-xs",[J.md]:"text-sm",[J.lg]:"text-sm",[J.xl]:"text-base"},zy={[J.sm]:"size-4",[J.md]:"size-5",[J.lg]:"size-5",[J.xl]:"size-6"};function hm(e){if(e===void 0||e===null)return"";if(Array.isArray(e))return e.join("");return String(e)}var xm=gy(({className:e,status:t=Jr.default,size:r=J.md,fullWidth:o=!1,prefix:a,suffix:n,clearable:s=!1,clearAriaLabel:l=by,onClear:m,onValueChange:d,disabled:f,readOnly:u,onChange:T,value:p,defaultValue:y,...S},P)=>{let w=Boolean(a),C=Boolean(n),v=c(r),z=yy(null),V=Qr(P,z),[h,L]=vy(()=>hm(y)),A=p!==void 0,F=A?hm(p):h,Z=s&&!f&&!u&&F.length>0,B=C||Z,W=C&&Z,N=(x)=>{let D=x.target.value;if(!A)L(D);d?.(D),T?.(x)},I=()=>{if(!A)L("");d?.("");let x=z.current;if(x)x.value="",x.dispatchEvent(new Event("input",{bubbles:!0})),x.focus();m?.()};return $t("div",{className:i("relative flex items-center",o&&"w-full"),children:[w&&$t("span",{className:i("absolute inset-y-0 flex items-center text-muted-foreground",xy[v]),children:a},void 0,!1,void 0,this),$t("input",{ref:V,className:i(Pm({status:t,size:v}),w&&Ty[v],W&&Py[v],!W&&B&&hy[v],e),disabled:f,readOnly:u,onChange:N,value:F,...S},void 0,!1,void 0,this),B&&$t("span",{className:i("absolute inset-y-0 right-2 flex items-center gap-1 text-muted-foreground",Cy[v]),children:[C&&$t("span",{className:"inline-flex items-center",children:n},void 0,!1,void 0,this),Z&&$t("button",{type:"button","aria-label":l,onMouseDown:(x)=>x.preventDefault(),onClick:I,className:i("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",zy[v]),children:$t(fy,{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)});xm.displayName="Input";import{cva as Sy}from"class-variance-authority";import{forwardRef as Ny}from"react";function Er(){return oa()}import{jsxDEV as wy}from"react/jsx-dev-runtime";var Cr={sm:"sm",md:"md",lg:"lg"},Cm=Sy("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:{[Cr.sm]:"min-w-5 h-5 px-1 text-[10px]",[Cr.md]:"min-w-6 h-6 px-1.5 text-xs",[Cr.lg]:"min-w-7 h-7 px-2 text-sm"}},defaultVariants:{size:Cr.md}}),zm=Ny(({className:e,size:t=Cr.md,keys:r,children:o,...a},n)=>{let s=c(t),{isMac:l}=Er(),m=r?jr(r,l):o;return wy("kbd",{ref:n,className:i(Cm({size:s}),e),...a,children:m},void 0,!1,void 0,this)});zm.displayName="Kbd";import{cva as Ry}from"class-variance-authority";import{forwardRef as My}from"react";import{jsxDEV as Sm}from"react/jsx-dev-runtime";var zr={sm:"sm",md:"md",lg:"lg"},Nm=Ry("inline-block font-medium text-foreground select-none peer-disabled:cursor-not-allowed peer-disabled:opacity-60",{variants:{size:{[zr.sm]:"text-xs",[zr.md]:"text-sm",[zr.lg]:"text-base"}},defaultVariants:{size:zr.md}}),wm=My(({className:e,size:t=zr.md,required:r=!1,disabled:o=!1,children:a,...n},s)=>{let l=c(t);return Sm("label",{ref:s,className:i(Nm({size:l}),o&&"cursor-not-allowed opacity-60",e),"aria-disabled":o||void 0,...n,children:[a,r&&Sm("span",{className:"ml-0.5 text-destructive","aria-hidden":"true",children:"*"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});wm.displayName="Label";var Ly=nr;import*as wt from"@radix-ui/react-popover";import{cva as Fy}from"class-variance-authority";import{Check as By,ChevronDown as Oy,X as _y,X as Gy}from"lucide-react";import{forwardRef as Wy,useCallback as eo,useEffect as Uy,useRef as $y,useState as Lm}from"react";import*as Be from"@radix-ui/react-popover";import{cva as Hy}from"class-variance-authority";import{forwardRef as ky}from"react";import{jsxDEV as Rm}from"react/jsx-dev-runtime";var Sr={sm:"sm",md:"md",lg:"lg"},Nr=Hy("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:{[Sr.sm]:"w-56 p-3 text-sm",[Sr.md]:"w-72 p-4 text-sm",[Sr.lg]:"w-96 p-5 text-sm"}},defaultVariants:{size:Sr.md}}),Ay=Be.Root,Iy=Be.Trigger,Vy=Be.Anchor,Dy=Be.Close,Mm=ky(({className:e,align:t="center",sideOffset:r=4,portal:o=!0,portalContainer:a,size:n=Sr.md,...s},l)=>{let m=c(n),d=Rm(Be.Content,{ref:l,align:t,sideOffset:r,className:i(Nr({size:m}),e),...s},void 0,!1,void 0,this);if(o)return Rm(Be.Portal,{container:a??void 0,children:d},void 0,!1,void 0,this);return d});Mm.displayName="PopoverContent";import{jsxDEV as ie,Fragment as Xy}from"react/jsx-dev-runtime";var ce={sm:"sm",md:"md",lg:"lg",xl:"xl"},Hm=Fy(["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:{[ce.sm]:"min-h-8 px-2.5 py-1 text-xs",[ce.md]:"min-h-10 px-3.5 py-1.5",[ce.lg]:"min-h-11 px-4.5 py-2 text-sm",[ce.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:ce.md,status:"default"}}),Ky={[ce.sm]:"h-5 px-1.5 text-[10px]",[ce.md]:"h-6 px-2 text-xs",[ce.lg]:"h-6.5 px-2.5 text-xs",[ce.xl]:"h-7 px-2.5 text-sm"},Yy={[ce.sm]:"min-h-7.5 py-1.5 px-2.5 text-xs",[ce.md]:"min-h-9 py-2 px-3 text-sm",[ce.lg]:"min-h-10 py-2.5 px-3.5 text-sm",[ce.xl]:"min-h-11 py-3 px-4 text-base"},Bo={[ce.sm]:"size-3.5",[ce.md]:"size-4",[ce.lg]:"size-4",[ce.xl]:"size-4.5"},km=Wy(({className:e,options:t,value:r,defaultValue:o=[],onValueChange:a,placeholder:n="Select options...",size:s=ce.md,status:l="default",clearable:m=!1,maxDisplayItems:d=3,disabled:f,...u},T)=>{let p=c(s)??s,[y,S]=Lm(!1),[P,w]=Lm(o),C=$y(null),v=r!==void 0,z=v?r:P,V=eo((N)=>{let I=z.includes(N)?z.filter((x)=>x!==N):[...z,N];if(!v)w(I);a?.(I)},[z,v,a]),h=eo((N,I)=>{I.stopPropagation();let x=z.filter((D)=>D!==N);if(!v)w(x);a?.(x)},[z,v,a]),L=eo((N)=>{if(N.stopPropagation(),N.preventDefault(),!v)w([]);a?.([])},[v,a]),A=t.filter((N)=>z.includes(N.value)),F=A.length>0,Z=m&&F&&!f,B=eo((N)=>{let I=C.current;if(!I)return;let x=Array.from(I.querySelectorAll('[role="option"]:not([data-disabled])'));if(x.length===0)return;let D=I.querySelector('[role="option"]:focus'),Q=D?x.indexOf(D):-1,R;switch(N){case"first":R=x[0];break;case"last":R=x[x.length-1];break;case"next":R=x[Q+1]??x[0];break;case"prev":R=x[Q-1]??x[x.length-1];break}R?.focus()},[]),W=eo((N)=>{switch(N.key){case"ArrowDown":N.preventDefault(),B("next");break;case"ArrowUp":N.preventDefault(),B("prev");break;case"Home":N.preventDefault(),B("first");break;case"End":N.preventDefault(),B("last");break;case"Escape":N.preventDefault(),S(!1);break}},[B]);return Uy(()=>{if(y)requestAnimationFrame(()=>B("first"))},[y,B]),ie(wt.Root,{open:y,onOpenChange:S,children:[ie(wt.Trigger,{asChild:!0,children:ie("button",{ref:T,type:"button",disabled:f,"data-state":y?"open":"closed","data-placeholder":F?void 0:"",className:i(Hm({size:p,status:l}),e),...u,children:[ie("span",{className:"flex min-w-0 flex-1 flex-wrap items-center gap-1 text-left",children:F?ie(Xy,{children:[A.slice(0,d).map((N)=>ie("span",{className:i("inline-flex items-center gap-1 rounded-[calc(var(--radius)-4px)] border border-border/60 bg-muted/50 font-medium text-foreground",Ky[p]),children:[ie("span",{className:"truncate",children:N.label},void 0,!1,void 0,this),ie("span",{"data-slot":"multiselect-remove","aria-label":`Remove ${N.label}`,onMouseDown:(I)=>I.preventDefault(),onClick:(I)=>h(N.value,I),className:"ml-0.5 inline-flex shrink-0 items-center justify-center rounded-full opacity-60 hover:opacity-100",children:ie(Gy,{className:"h-3 w-3"},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},N.value,!0,void 0,this)),A.length>d&&ie("span",{className:"text-muted-foreground text-xs",children:["+",A.length-d]},void 0,!0,void 0,this)]},void 0,!0,void 0,this):ie("span",{className:"text-muted-foreground",children:n},void 0,!1,void 0,this)},void 0,!1,void 0,this),ie("span",{className:"inline-flex shrink-0 items-center gap-1 text-muted-foreground",children:[Z&&ie("span",{role:"button",tabIndex:-1,"aria-label":"Clear all",onMouseDown:(N)=>N.preventDefault(),onClick:L,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:ie(_y,{className:Bo[p]},void 0,!1,void 0,this)},void 0,!1,void 0,this),ie(Oy,{className:i(Bo[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),ie(wt.Portal,{children:ie(wt.Content,{ref:C,role:"listbox","aria-multiselectable":"true",align:"start",sideOffset:4,onKeyDown:W,onOpenAutoFocus:(N)=>N.preventDefault(),className:i(Nr(),"max-h-96 w-[var(--radix-popover-trigger-width)] overflow-y-auto overflow-x-hidden p-1"),children:[t.map((N)=>{let I=z.includes(N.value);return ie("div",{role:"option",tabIndex:N.disabled?void 0:-1,"aria-selected":I,"aria-disabled":N.disabled||void 0,"data-disabled":N.disabled?"":void 0,className:i("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",Yy[p]),onClick:()=>!N.disabled&&V(N.value),onKeyDown:(x)=>{if(x.key==="Enter"||x.key===" "){if(x.preventDefault(),!N.disabled)V(N.value)}},children:[ie("span",{className:i("flex shrink-0 items-center justify-center",Bo[p]),children:I&&ie(By,{className:Bo[p]},void 0,!1,void 0,this)},void 0,!1,void 0,this),ie("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&&ie("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)});km.displayName="Multiselect";import*as ae from"@radix-ui/react-navigation-menu";import{cva as Kt}from"class-variance-authority";import{createContext as Zy,forwardRef as wr,useContext as qy}from"react";import{jsxDEV as ke}from"react/jsx-dev-runtime";var Ze={sm:"sm",md:"md",lg:"lg"},Am=Zy(Ze.md),Im=Kt("relative z-10 flex max-w-max flex-1 items-center justify-center"),Vm=Kt("group flex flex-1 list-none items-center justify-center space-x-1"),Dm=Kt(["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:{[Ze.sm]:"h-8 px-3 py-1.5 text-xs",[Ze.md]:"h-10 px-4 py-2 text-sm",[Ze.lg]:"h-12 px-5 py-2.5 text-sm"}},defaultVariants:{size:Ze.md}}),Fm=Kt(["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"]),Jy=Kt(["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:{[Ze.sm]:"p-2 text-xs",[Ze.md]:"p-3 text-sm",[Ze.lg]:"p-4 text-sm"}},defaultVariants:{size:Ze.md}}),Bm=Kt(["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)]"]),Om=Kt(["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"]),Qy=()=>ke("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:ke("path",{d:"m6 9 6 6 6-6"},void 0,!1,void 0,this)},void 0,!1,void 0,this),_m=wr(({className:e,children:t,size:r,...o},a)=>{let n=c(r??Ze.md);return ke(Am.Provider,{value:n,children:ke(ae.Root,{ref:a,className:i(Im(),e),...o,children:[t,ke(ia,{},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)});_m.displayName=ae.Root.displayName;var Gm=wr(({className:e,...t},r)=>ke(ae.List,{ref:r,className:i(Vm(),e),...t},void 0,!1,void 0,this));Gm.displayName=ae.List.displayName;var Ey=ae.Item,Wm=wr(({className:e,children:t,...r},o)=>{let a=qy(Am);return ke(ae.Trigger,{ref:o,className:i(Dm({size:a}),"group",e),...r,children:[t,ke(Qy,{},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});Wm.displayName=ae.Trigger.displayName;var Um=wr(({className:e,...t},r)=>ke(ae.Content,{ref:r,className:i(Fm(),e),...t},void 0,!1,void 0,this));Um.displayName=ae.Content.displayName;var jy=ae.Link,ia=wr(({className:e,...t},r)=>ke("div",{className:"absolute top-full left-0 flex justify-center",children:ke(ae.Viewport,{className:i(Bm(),e),ref:r,...t},void 0,!1,void 0,this)},void 0,!1,void 0,this));ia.displayName=ae.Viewport.displayName;var $m=wr(({className:e,...t},r)=>ke(ae.Indicator,{ref:r,className:i(Om(),e),...t,children:ke("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));$m.displayName=ae.Indicator.displayName;import{cva as Rr}from"class-variance-authority";import{Fragment as ev,forwardRef as tv,useCallback as Yt,useEffect as Km,useMemo as Ym,useRef as rv,useState as Xm}from"react";import{jsxDEV as Xt}from"react/jsx-dev-runtime";var Zt={sm:"sm",md:"md",lg:"lg",xl:"xl"},ro={default:"default",error:"error",success:"success"},to={single:"single",first:"first",middle:"middle",last:"last"},Zm=Rr("relative inline-flex items-center",{variants:{size:{sm:"gap-1",md:"gap-1.5",lg:"gap-2",xl:"gap-2.5"}},defaultVariants:{size:Zt.md}}),qm=Rr("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:Zt.md,status:ro.default}}),Jm=Rr(["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:Zt.md,filled:!1,focused:!1,status:ro.default,disabled:!1,position:to.single}}),Qm=Rr(["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:Zt.md,status:ro.default,filled:!1}}),Em=Rr(["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:Zt.md,focused:!1}}),jm=Rr("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:Zt.md}});function ov(e){if(!Number.isFinite(e))return 6;return Math.max(1,Math.floor(e))}function aa(e,t){let r=(e??"").split("").slice(0,t);if(r.length<t)return r.concat(Array(t-r.length).fill(""));return r}var ed=tv(({className:e,length:t=6,value:r,onChange:o,onComplete:a,size:n=Zt.md,status:s=ro.default,disabled:l=!1,autoFocus:m=!1,mask:d=!1,groupSize:f,separator:u,separatorChar:T="—",placeholder:p="•",inputMode:y="numeric",pattern:S="[0-9]*",...P},w)=>{let C=c(n),v=ov(t),z=rv([]),[V,h]=Xm(null),[L,A]=Xm(()=>aa(r,v));Km(()=>{if(r!==void 0){A(aa(r,v));return}A((g)=>aa(g.join(""),v))},[r,v]),Km(()=>{if(m)z.current[0]?.focus()},[m]);let F=Ym(()=>{if(typeof f==="number"&&Number.isFinite(f)){let g=Math.floor(f);if(g<=0)return v;return Math.min(v,Math.max(1,g))}if(typeof u==="number"&&Number.isFinite(u)){let g=Math.floor(u);if(g<=0)return v;return Math.min(v,Math.max(1,g))}if(u)return Math.max(1,Math.floor(v/2));return v},[f,v,u]),Z=Ym(()=>{let g=[];for(let b=0;b<v;b+=F){let k=Math.min(b+F,v),le=[];for(let H=b;H<k;H+=1)le.push(H);g.push(le)}return g},[F,v]),B=Yt((g)=>{let b=z.current[g];if(!b)return;b.focus(),b.select()},[]),W=Yt((g)=>{A(g);let b=g.join("");if(o?.(b),g.every((k)=>k!=="")&&b.length===v)a?.(b)},[o,a,v]),N=Yt((g,b)=>{if(l)return;let le=(y==="numeric"?b.replace(/\D/g,""):b).slice(-1),H=[...L];if(H[g]=le,W(H),le&&g<v-1)B(g+1)},[L,l,W,B,y,v]),I=Yt((g,b)=>{if(l)return;if(b.key==="Backspace"){if(b.preventDefault(),L[g]){let k=[...L];k[g]="",W(k);return}if(g>0){let k=[...L];k[g-1]="",W(k),B(g-1)}return}if(b.key==="Delete"){if(b.preventDefault(),L[g]){let k=[...L];k[g]="",W(k)}return}if(b.key==="ArrowLeft"){if(b.preventDefault(),g>0)B(g-1);return}if(b.key==="ArrowRight"){if(b.preventDefault(),g<v-1)B(g+1);return}if(b.key==="Home"){b.preventDefault(),B(0);return}if(b.key==="End")b.preventDefault(),B(v-1)},[L,l,W,B,v]),x=Yt((g,b)=>{if(b.preventDefault(),l)return;let k=b.clipboardData.getData("text"),H=(y==="numeric"?k.replace(/\D/g,""):k.replace(/\s/g,"")).split("");if(H.length===0)return;let E=[...L];for(let M=0;M<H.length;M+=1){let q=g+M;if(q>=v)break;E[q]=H[M]??""}W(E);let $=Math.min(v-1,g+H.length-1);if($<v-1){B($+1);return}z.current[$]?.blur()},[L,l,W,B,y,v]),D=Yt((g,b)=>{h(g),b.target.select()},[]),Q=Yt(()=>{h(null)},[]),R=u!==void 0,U=T.length>0&&u!==!1&&(R||Z.length>1);return Xt("div",{ref:w,className:i(Zm({size:C}),e),role:"group","aria-label":"One-time password input",...P,children:Z.map((g,b)=>Xt(ev,{children:[Xt("div",{"data-gs-otp-group":"true",className:i(qm({size:C,status:s})),children:g.map((k,le)=>{let H=L[k]??"",E=V===k,$=to.middle;if(g.length===1)$=to.single;else if(le===0)$=to.first;else if(le===g.length-1)$=to.last;return Xt("div",{"data-gs-otp-slot":"true","data-disabled":l,className:i(Jm({size:C,filled:Boolean(H),focused:E,status:s,disabled:l,position:$})),children:[Xt("input",{ref:(M)=>{z.current[k]=M},type:d?"password":"text",inputMode:y,pattern:S,maxLength:1,value:H,placeholder:"",disabled:l,"aria-invalid":s===ro.error,"aria-label":`Digit ${k+1} of ${v}`,autoComplete:"one-time-code",onChange:(M)=>N(k,M.target.value),onKeyDown:(M)=>I(k,M),onPaste:(M)=>x(k,M),onFocus:(M)=>D(k,M),onBlur:Q,className:i(Qm({size:C,status:s,filled:Boolean(H)}))},void 0,!1,void 0,this),!H&&Xt("div",{"data-gs-otp-placeholder":"true","aria-hidden":"true",className:i(Em({size:C,focused:E})),children:p},void 0,!1,void 0,this)]},`slot-${k}`,!0,void 0,this)})},void 0,!1,void 0,this),U&&b<Z.length-1&&Xt("span",{"data-gs-otp-separator":"true",className:i(jm({size:C})),children:T},void 0,!1,void 0,this)]},`group-${g[0]}-${g[g.length-1]}`,!0,void 0,this))},void 0,!1,void 0,this)});ed.displayName="OTPInput";import{createContext as mv,useCallback as Mr,useContext as dv,useMemo as pv,useState as cv}from"react";import*as se from"@radix-ui/react-dialog";import{cva as td}from"class-variance-authority";import{X as iv}from"lucide-react";import{forwardRef as Oo}from"react";import{jsxDEV as qe}from"react/jsx-dev-runtime";var Ae={top:"top",right:"right",bottom:"bottom",left:"left"},oe={sm:"sm",md:"md",lg:"lg",xl:"xl",full:"full"},av={[Ae.top]:"gs-sheet-content gs-sheet-content-top",[Ae.right]:"gs-sheet-content gs-sheet-content-right",[Ae.bottom]:"gs-sheet-content gs-sheet-content-bottom",[Ae.left]:"gs-sheet-content gs-sheet-content-left"},nv={[Ae.right]:{[oe.sm]:"sm:max-w-sm",[oe.md]:"sm:max-w-md",[oe.lg]:"sm:max-w-lg",[oe.xl]:"sm:max-w-xl",[oe.full]:"sm:max-w-full"},[Ae.left]:{[oe.sm]:"sm:max-w-sm",[oe.md]:"sm:max-w-md",[oe.lg]:"sm:max-w-lg",[oe.xl]:"sm:max-w-xl",[oe.full]:"sm:max-w-full"},[Ae.top]:{[oe.sm]:"sm:max-h-[30vh]",[oe.md]:"sm:max-h-[50vh]",[oe.lg]:"sm:max-h-[70vh]",[oe.xl]:"sm:max-h-[85vh]",[oe.full]:"sm:max-h-full"},[Ae.bottom]:{[oe.sm]:"sm:max-h-[30vh]",[oe.md]:"sm:max-h-[50vh]",[oe.lg]:"sm:max-h-[70vh]",[oe.xl]:"sm:max-h-[85vh]",[oe.full]:"sm:max-h-full"}},rd=td("gs-sheet-overlay fixed inset-0 z-50 bg-black/50"),od=td("fixed z-50 flex flex-col gap-4 border border-border bg-background p-6 shadow-[var(--shadow-xl)]",{variants:{side:{[Ae.top]:"inset-x-0 top-0 border-b",[Ae.bottom]:"inset-x-0 bottom-0 border-t",[Ae.left]:"inset-y-0 left-0 h-full w-3/4 border-r",[Ae.right]:"inset-y-0 right-0 h-full w-3/4 border-l"}},defaultVariants:{side:Ae.right}}),na=se.Root,sv=se.Trigger,lv=se.Close,id=se.Portal,sa=Oo(({className:e,...t},r)=>qe(se.Overlay,{className:i(rd(),e),...t,ref:r},void 0,!1,void 0,this));sa.displayName=se.Overlay.displayName;var _o=Oo(({side:e="right",size:t=oe.md,showClose:r=!0,className:o,children:a,...n},s)=>{let l=c(t)??oe.md,m=av[e],d=nv[e][l];return qe(id,{children:[qe(sa,{},void 0,!1,void 0,this),qe(se.Content,{ref:s,className:i(od({side:e}),m,d,o),...n,children:[a,r&&qe(se.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(iv,{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=se.Content.displayName;var ad=({className:e,...t})=>qe("div",{className:i("flex flex-col space-y-2 text-center sm:text-left",e),...t},void 0,!1,void 0,this);ad.displayName="SheetHeader";var nd=({className:e,...t})=>qe("div",{className:i("flex flex-col-reverse sm:flex-row sm:justify-end sm:gap-2.5",e),...t},void 0,!1,void 0,this);nd.displayName="SheetFooter";var sd=Oo(({className:e,...t},r)=>qe(se.Title,{ref:r,className:i("font-semibold text-foreground text-lg",e),...t},void 0,!1,void 0,this));sd.displayName=se.Title.displayName;var ld=Oo(({className:e,...t},r)=>qe(se.Description,{ref:r,className:i("text-muted-foreground text-sm",e),...t},void 0,!1,void 0,this));ld.displayName=se.Description.displayName;import{jsxDEV as ut}from"react/jsx-dev-runtime";var la=0;function uv(){return la=(la+1)%Number.MAX_SAFE_INTEGER,`overlay-${la}-${Date.now()}`}var dd=mv(null),md=400;function pd({children:e}){let[t,r]=cv([]),o=Mr((d)=>{r((f)=>f.map((u)=>u.id===d?{...u,open:!1}:u)),setTimeout(()=>{r((f)=>f.filter((u)=>u.id!==d))},md)},[]),a=Mr(()=>{r((d)=>d.map((f)=>({...f,open:!1}))),setTimeout(()=>{r([])},md)},[]),n=Mr((d,f,u,T={})=>{let p=uv(),y=(w)=>{return ut(f,{...u,close:w.close},void 0,!1,void 0,this)};y.displayName=`OverlayWrapper(${f.displayName??f.name??"Component"})`;let S={id:p,type:d,component:y,wrapperProps:T,open:!0};return r((w)=>[...w,S]),{id:p,close:()=>o(p)}},[o]),s=Mr((d,f,u)=>{return n("dialog",d,f,u)},[n]),l=Mr((d,f,u)=>{return n("sheet",d,f,u)},[n]),m=pv(()=>({dialog:s,sheet:l,close:o,closeAll:a}),[s,l,o,a]);return ut(dd.Provider,{value:m,children:[e,t.map((d)=>ut(fv,{entry:d,onClose:o},d.id,!1,void 0,this))]},void 0,!0,void 0,this)}pd.displayName="OverlayProvider";function fv({entry:e,onClose:t}){let{id:r,type:o,component:a,wrapperProps:n,open:s}=e,l=Mr(()=>t(r),[r,t]);if(o==="dialog"){let{showClose:m,size:d,...f}=n;return ut(Ji,{open:s,onOpenChange:(u)=>!u&&l(),children:ut(Io,{showClose:m,size:d,...f,children:ut(a,{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:m,showClose:d,...f}=n;return ut(na,{open:s,onOpenChange:(u)=>!u&&l(),children:ut(_o,{side:m,showClose:d,...f,children:ut(a,{close:l},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}return null}function gv(){let e=dv(dd);if(!e)throw Error("useOverlay must be used within an OverlayProvider");return e}import{cva as oo}from"class-variance-authority";import{ChevronLeft as yv,ChevronRight as vv,MoreHorizontal as bv}from"lucide-react";import{createContext as Tv,forwardRef as io,useContext as Go}from"react";import{jsxDEV as Re}from"react/jsx-dev-runtime";var Oe={sm:"sm",md:"md",lg:"lg"},ao=Tv(Oe.md),cd=oo("mx-auto flex w-full justify-center"),ud=oo("flex flex-row items-center gap-1"),fd=oo(""),Wo=oo("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:{[Oe.sm]:"h-7 w-7 text-xs [&_svg]:size-3.5",[Oe.md]:"h-9 w-9 text-sm [&_svg]:size-4",[Oe.lg]:"h-10 w-10 text-sm [&_svg]:size-5"}},defaultVariants:{isActive:!1,size:Oe.md}}),gd=oo("flex items-center justify-center",{variants:{size:{[Oe.sm]:"h-7 w-7 [&_svg]:size-3.5",[Oe.md]:"h-9 w-9 [&_svg]:size-4",[Oe.lg]:"h-10 w-10 [&_svg]:size-5"}},defaultVariants:{size:Oe.md}}),yd=({className:e,size:t=Oe.md,...r})=>{let o=c(t)??Oe.md;return Re(ao.Provider,{value:o,children:Re("nav",{"aria-label":"pagination",className:i(cd(),e),...r},void 0,!1,void 0,this)},void 0,!1,void 0,this)};yd.displayName="Pagination";var vd=io(({className:e,...t},r)=>Re("ul",{ref:r,className:i(ud(),e),...t},void 0,!1,void 0,this));vd.displayName="PaginationContent";var bd=io(({className:e,...t},r)=>Re("li",{ref:r,className:i(fd(),e),...t},void 0,!1,void 0,this));bd.displayName="PaginationItem";var Td=io(({className:e,isActive:t,...r},o)=>{let a=Go(ao);return Re("button",{ref:o,type:"button","aria-current":t?"page":void 0,className:i(Wo({isActive:t,size:a}),e),...r},void 0,!1,void 0,this)});Td.displayName="PaginationLink";var hd=io(({className:e,...t},r)=>{let o=Go(ao);return Re("button",{ref:r,type:"button","aria-label":"Go to previous page",className:i(Wo({size:o}),"gap-1 pl-2.5 pr-3 w-auto",e),...t,children:[Re(yv,{},void 0,!1,void 0,this),Re("span",{children:"Previous"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});hd.displayName="PaginationPrevious";var Pd=io(({className:e,...t},r)=>{let o=Go(ao);return Re("button",{ref:r,type:"button","aria-label":"Go to next page",className:i(Wo({size:o}),"gap-1 pl-3 pr-2.5 w-auto",e),...t,children:[Re("span",{children:"Next"},void 0,!1,void 0,this),Re(vv,{},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});Pd.displayName="PaginationNext";var xd=({className:e,...t})=>{let r=Go(ao);return Re("span",{"aria-hidden":!0,className:i(gd({size:r}),e),...t,children:[Re(bv,{},void 0,!1,void 0,this),Re("span",{className:"sr-only",children:"More pages"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)};xd.displayName="PaginationEllipsis";import*as lo from"@radix-ui/react-progress";import{cva as Cd}from"class-variance-authority";import{forwardRef as hv}from"react";import{jsxDEV as Uo}from"react/jsx-dev-runtime";var no={sm:"sm",md:"md",lg:"lg",xl:"xl"},so={default:"default",success:"success",warning:"warning",error:"error"},zd=Cd("relative w-full overflow-hidden rounded-full bg-muted",{variants:{size:{[no.sm]:"h-1",[no.md]:"h-2.5",[no.lg]:"h-4",[no.xl]:"h-5"}},defaultVariants:{size:no.md}}),Sd=Cd("h-full w-full flex-1 rounded-full transition-transform duration-100 ease-out",{variants:{variant:{[so.default]:"bg-primary",[so.success]:"bg-success",[so.warning]:"bg-warning",[so.error]:"bg-destructive"}},defaultVariants:{variant:so.default}}),Nd=hv(({className:e,value:t,size:r,variant:o,showValue:a,...n},s)=>{let l=c(r);return Uo("div",{className:"flex w-full items-center gap-2",children:[Uo(lo.Root,{ref:s,className:i(zd({size:l}),e),...n,children:Uo(lo.Indicator,{className:i(Sd({variant:o})),style:{transform:`translateX(-${100-(t||0)}%)`}},void 0,!1,void 0,this)},void 0,!1,void 0,this),a&&Uo("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)});Nd.displayName=lo.Root.displayName;import*as Hr from"@radix-ui/react-radio-group";import{cva as wd}from"class-variance-authority";import{forwardRef as Rd}from"react";import{jsxDEV as $o}from"react/jsx-dev-runtime";var Je={sm:"sm",md:"md",lg:"lg",xl:"xl"},Lr={default:"default",error:"error",success:"success"},Md=wd("grid gap-2"),Ld=wd("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:{[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:{[Lr.default]:"enabled:hover:border-primary/70",[Lr.error]:"border-destructive enabled:hover:border-destructive/70 focus-visible:ring-destructive data-[state=checked]:border-destructive data-[state=checked]:text-destructive",[Lr.success]:"border-success enabled:hover:border-success/70 focus-visible:ring-success data-[state=checked]:border-success data-[state=checked]:text-success"}},defaultVariants:{size:Je.md,status:Lr.default}}),Pv={[Je.sm]:"h-2 w-2",[Je.md]:"h-2.5 w-2.5",[Je.lg]:"h-3 w-3",[Je.xl]:"h-3.5 w-3.5"},Hd=Rd(({className:e,...t},r)=>$o(Hr.Root,{ref:r,className:i(Md(),e),...t},void 0,!1,void 0,this));Hd.displayName="RadioGroup";var kd=Rd(({className:e,size:t=Je.md,status:r=Lr.default,...o},a)=>{let n=c(t);return $o(Hr.Item,{ref:a,className:i(Ld({size:n,status:r}),e),...o,children:$o(Hr.Indicator,{className:"flex items-center justify-center",children:$o("span",{className:i("block rounded-full bg-current transition-transform duration-150",Pv[n])},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)});kd.displayName="RadioGroupItem";import{cva as Xo}from"class-variance-authority";import{forwardRef as ma,useCallback as Ko,useRef as xv,useState as Cv}from"react";import{jsxDEV as Yo}from"react/jsx-dev-runtime";var Ad=Xo("flex h-full w-full",{variants:{direction:{horizontal:"flex-row",vertical:"flex-col"}},defaultVariants:{direction:"horizontal"}}),Id=Xo("relative overflow-hidden"),Vd=Xo("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}}),Dd=Xo("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"}}),Fd=ma(({className:e,direction:t="horizontal",children:r,...o},a)=>Yo("div",{ref:a,"data-panel-group":"","data-direction":t,className:i(Ad({direction:t}),e),...o,children:r},void 0,!1,void 0,this));Fd.displayName="ResizablePanelGroup";var Bd=ma(({className:e,defaultSize:t=50,children:r,style:o,...a},n)=>Yo("div",{ref:n,"data-panel":"",className:i(Id(),e),style:{...o,flexGrow:0,flexShrink:0,flexBasis:`${t}%`},...a,children:r},void 0,!1,void 0,this));Bd.displayName="ResizablePanel";var Od=ma(({className:e,withHandle:t=!1,disabled:r=!1,...o},a)=>{let[n,s]=Cv(!1),l=xv(null),m=Ko((p,y)=>{if(r)return;s(!0);let S=(w)=>{let C="touches"in w?w.touches[0]:null,v=C?C.clientX:w.clientX,z=C?C.clientY:w.clientY,V=l.current;if(!V)return;let h=V.closest("[data-panel-group]");if(!h)return;let L=h.dataset.direction,A=h.getBoundingClientRect(),F=Array.from(h.querySelectorAll(":scope > [data-panel]")),Z=Array.from(h.children).indexOf(V),B,W;for(let N of F){let I=Array.from(h.children).indexOf(N);if(I<Z)B=N;if(I>Z&&!W)W=N}if(B&&W){let N=L==="horizontal"?A.width:A.height,x=(L==="horizontal"?v-A.left:z-A.top)/N*100,D=Math.max(10,Math.min(90,x)),Q=100-D;B.style.flexBasis=`${D}%`,W.style.flexBasis=`${Q}%`}},P=()=>{s(!1),document.removeEventListener("mousemove",S),document.removeEventListener("mouseup",P),document.removeEventListener("touchmove",S),document.removeEventListener("touchend",P)};document.addEventListener("mousemove",S),document.addEventListener("mouseup",P),document.addEventListener("touchmove",S),document.addEventListener("touchend",P)},[r]),d=Ko((p)=>{p.preventDefault(),m(p.clientX,p.clientY)},[m]),f=Ko((p)=>{let y=p.touches[0];if(y)m(y.clientX,y.clientY)},[m]),u=Ko((p)=>{if(r)return;let y=l.current??p.currentTarget,S=y.closest("[data-panel-group]");if(!S)return;let P=S.dataset.direction,w=p.shiftKey?10:1,C=Array.from(S.querySelectorAll(":scope > [data-panel]")),v=Array.from(S.children).indexOf(y),z,V;for(let A of C){let F=Array.from(S.children).indexOf(A);if(F<v)z=A;if(F>v&&!V)V=A}if(!(z&&V))return;let h=Number.parseFloat(z.style.flexBasis)||50,L=0;if(P==="horizontal"){if(p.key==="ArrowLeft")L=-w;if(p.key==="ArrowRight")L=w}else{if(p.key==="ArrowUp")L=-w;if(p.key==="ArrowDown")L=w}if(L!==0){p.preventDefault();let A=Math.max(10,Math.min(90,h+L));z.style.flexBasis=`${A}%`,V.style.flexBasis=`${100-A}%`}},[r]),T="horizontal";return Yo("div",{ref:(p)=>{if(l.current=p,typeof a==="function")a(p);else if(a)a.current=p},role:"separator","aria-orientation":"horizontal",tabIndex:r?-1:0,"data-panel-resize-handle":"","data-dragging":n,onMouseDown:d,onTouchStart:f,onKeyDown:u,className:i(Vd({direction:"horizontal",withHandle:t}),n&&"bg-primary",r&&"pointer-events-none opacity-50",e),...o,children:t&&Yo("div",{className:i(Dd({direction:"horizontal"}))},void 0,!1,void 0,this)},void 0,!1,void 0,this)});Od.displayName="ResizableHandle";import*as rt from"@radix-ui/react-scroll-area";import{cva as da}from"class-variance-authority";import{forwardRef as _d}from"react";import{jsxDEV as kr}from"react/jsx-dev-runtime";var Gd=da("relative overflow-hidden"),zv={display:"flex",flexDirection:"column"},Sv={flex:"1 1 0%",minHeight:0},Wd=da("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"}}),Ud=da("relative flex-1 rounded-full bg-border"),$d=_d(({className:e,children:t,style:r,...o},a)=>kr(rt.Root,{ref:a,className:i(Gd(),e),style:{...r,...zv},...o,children:[kr(rt.Viewport,{className:"w-full rounded-[inherit]",style:Sv,children:t},void 0,!1,void 0,this),kr(pa,{},void 0,!1,void 0,this),kr(rt.Corner,{},void 0,!1,void 0,this)]},void 0,!0,void 0,this));$d.displayName="ScrollArea";var pa=_d(({className:e,orientation:t="vertical",...r},o)=>kr(rt.ScrollAreaScrollbar,{ref:o,orientation:t,className:i(Wd({orientation:t}),e),...r,children:kr(rt.ScrollAreaThumb,{className:i(Ud())},void 0,!1,void 0,this)},void 0,!1,void 0,this));pa.displayName="ScrollBar";import{cva as ua}from"class-variance-authority";import{createContext as Nv,forwardRef as fa,useCallback as Kd,useContext as Zd,useEffect as ca,useLayoutEffect as wv,useRef as Yd,useState as Xd}from"react";import{jsxDEV as qt}from"react/jsx-dev-runtime";var Me={sm:"sm",md:"md",lg:"lg"},qd=ua("relative inline-flex items-center rounded-[var(--radius)] border border-border bg-muted/50 p-1 text-muted-foreground",{variants:{size:{[Me.sm]:"h-9 gap-0.5",[Me.md]:"h-10 gap-0.5",[Me.lg]:"h-11 gap-1"}},defaultVariants:{size:Me.md}}),Jd=ua(["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:{[Me.sm]:"size-7",[Me.md]:"size-8",[Me.lg]:"size-9"},active:{true:"text-foreground",false:"text-muted-foreground hover:text-foreground/70"}},defaultVariants:{size:Me.md,active:!1}}),Qd=ua(["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:{[Me.sm]:"h-7 px-3 text-xs",[Me.md]:"h-8 px-3 text-sm",[Me.lg]:"h-9 px-4 text-sm"},active:{true:"text-foreground",false:"text-muted-foreground hover:text-foreground/70"}},defaultVariants:{size:Me.md,active:!1}}),ga=Nv({activeValue:"",onSelect:()=>{},size:Me.md,disabled:!1}),Rv=typeof window<"u"?wv:ca,Ed=fa(({className:e,value:t,defaultValue:r,onValueChange:o,size:a,disabled:n=!1,children:s,...l},m)=>{let d=c(a),f=Yd(null),[u,T]=Xd(r??""),[p,y]=Xd(null),S=Yd(!0),P=t!==void 0?t:u,w=Kd((v)=>{if(n)return;if(t===void 0)T(v);o?.(v)},[n,t,o]),C=Kd(()=>{let v=f.current;if(!v)return;let z=v.querySelector('[data-state="active"]');if(!z){y(null);return}let V=v.getBoundingClientRect(),h=z.getBoundingClientRect();y({left:h.left-V.left,width:h.width})},[]);return Rv(()=>{C()},[C,P]),ca(()=>{if(S.current)requestAnimationFrame(()=>{S.current=!1})},[]),ca(()=>{let v=f.current;if(!v)return;let z=new MutationObserver(()=>{C()});return z.observe(v,{attributes:!0,attributeFilter:["data-state"],subtree:!0}),()=>z.disconnect()},[C]),qt(ga.Provider,{value:{activeValue:P,onSelect:w,size:d,disabled:n},children:qt("div",{ref:(v)=>{if(f.current=v,typeof m==="function")m(v);else if(m)m.current=v},role:"radiogroup",className:i(qd({size:d}),n&&"opacity-50 pointer-events-none",e),...l,children:[p&&qt("span",{"aria-hidden":"true",className:i("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)});Ed.displayName="SegmentedControl";var jd=fa(({className:e,value:t,icon:r,disabled:o=!1,...a},n)=>{let{activeValue:s,onSelect:l,size:m,disabled:d}=Zd(ga),f=s===t,u=o||d;return qt("button",{ref:n,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:i(Jd({size:m,active:f}),e),...a,children:qt("span",{className:"size-4 [&>svg]:size-full",children:r},void 0,!1,void 0,this)},void 0,!1,void 0,this)});jd.displayName="SegmentedControlItem";var ep=fa(({className:e,value:t,icon:r,disabled:o=!1,children:a,...n},s)=>{let{activeValue:l,onSelect:m,size:d,disabled:f}=Zd(ga),u=l===t,T=o||f;return qt("button",{ref:s,type:"button",role:"radio","aria-checked":u,"aria-disabled":T||void 0,"data-state":u?"active":"inactive","data-value":t,disabled:T,onClick:()=>m(t),className:i(Qd({size:d,active:u}),e),...n,children:[r&&qt("span",{className:"size-4 [&>svg]:size-full",children:r},void 0,!1,void 0,this),a]},void 0,!0,void 0,this)});ep.displayName="SegmentedControlLabelItem";import*as Rt from"@radix-ui/react-popover";import{cva as rp}from"class-variance-authority";import{Check as Mv,ChevronDown as Lv,X as Hv}from"lucide-react";import{Children as kv,createContext as Av,forwardRef as co,isValidElement as Iv,useCallback as Zo,useContext as op,useEffect as qo,useId as tp,useMemo as Vv,useRef as ip,useState as mo}from"react";import{jsxDEV as ne,Fragment as Wv}from"react/jsx-dev-runtime";var te={sm:"sm",md:"md",lg:"lg",xl:"xl"},Ar={default:"default",error:"error",success:"success"},po={trigger:"trigger",auto:"auto"},Dv={start:"start",center:"center",end:"end"},ap=rp(["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:{[te.sm]:"h-8 px-2.5 text-xs",[te.md]:"h-10 px-3.5",[te.lg]:"h-11 px-4.5 text-sm",[te.xl]:"h-12 px-4 text-base"},status:{[Ar.default]:"focus-visible:ring-primary data-[state=open]:ring-primary",[Ar.error]:"border-destructive focus-visible:ring-destructive data-[state=open]:ring-destructive",[Ar.success]:"border-success focus-visible:ring-success data-[state=open]:ring-success"}},defaultVariants:{size:te.md,status:Ar.default}}),np=rp(["max-h-96 overflow-y-auto overflow-x-hidden"].join(" "),{variants:{widthMode:{[po.trigger]:"w-[var(--radix-popover-trigger-width)]",[po.auto]:"w-max min-w-0"},size:{[te.sm]:"text-xs",[te.md]:"text-sm",[te.lg]:"text-sm",[te.xl]:"text-base"}},defaultVariants:{widthMode:po.auto,size:te.md}}),Fv={[te.sm]:"min-h-7.5 py-1.5 px-2.5 pr-3 text-xs",[te.md]:"min-h-9 py-2 px-3 pr-4.5 text-sm",[te.lg]:"min-h-10 py-2.5 px-3.5 pr-5.5 text-sm",[te.xl]:"min-h-11 py-3 px-4 pr-6 text-base"},Bv={[te.sm]:"px-2 py-1 text-xs",[te.md]:"px-2 py-1.5 text-sm",[te.lg]:"px-2.5 py-1.5 text-sm",[te.xl]:"px-3 py-2 text-base"},Jo={[te.sm]:"size-3.5",[te.md]:"size-4",[te.lg]:"size-4",[te.xl]:"size-4.5"};function ya(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)=>ya(t)).join("");if(Iv(e))return ya(e.props.children);return""}var va=Av(null);function Qo(){let e=op(va);if(!e)throw Error("Select components must be used within Select");return e}function ba(e){let t=op(va);if(e)return e;return t?.triggerSize??te.md}var Ov=({children:e,value:t,defaultValue:r="",onValueChange:o,open:a,defaultOpen:n=!1,onOpenChange:s,disabled:l=!1})=>{let[m,d]=mo(te.md),[f,u]=mo(!1),[T,p]=mo(r),[y,S]=mo(n),[P,w]=mo(0),C=ip(new Map),v=t!==void 0,z=a!==void 0,V=v?t:T,h=z?a:y,L=Zo((I)=>{if(!v)p(I);if(o?.(I),!z)S(!1);s?.(!1)},[v,z,o,s]),A=Zo((I)=>{if(l)return;if(!z)S(I);s?.(I)},[l,z,s]),F=Zo((I,x)=>{if(C.current.get(I)!==x)C.current.set(I,x),w((Q)=>Q+1)},[]),Z=Zo((I)=>{return C.current.get(I)},[]),B=tp(),W=tp(),N=Vv(()=>({value:V,onValueChange:L,open:h,onOpenChange:A,triggerSize:m,setTriggerSize:d,triggerFullWidth:f,setTriggerFullWidth:u,disabled:l,triggerId:B,contentId:W,registerItem:F,getLabel:Z}),[V,L,h,A,m,f,l,B,W,F,Z,P]);return ne(va.Provider,{value:N,children:ne(Rt.Root,{open:h,onOpenChange:A,children:e},void 0,!1,void 0,this)},void 0,!1,void 0,this)},_v=({children:e,className:t})=>ne("div",{role:"group",className:t,children:e},void 0,!1,void 0,this),Gv=({placeholder:e})=>{let{value:t,getLabel:r}=Qo();if(!t)return e?ne("span",{className:"text-muted-foreground",children:e},void 0,!1,void 0,this):null;let o=r(t);return ne(Wv,{children:o??t},void 0,!1,void 0,this)},sp=co(({className:e,children:t,size:r=te.md,status:o=Ar.default,fullWidth:a=!1,clearable:n=!1,leadingIcon:s,indicatorIcon:l,renderValue:m,placeholder:d,onKeyDown:f,...u},T)=>{let p=Qo(),y=c(r)??r,S=p.setTriggerSize,P=p.setTriggerFullWidth;qo(()=>{S(y)},[y,S]),qo(()=>{P(a)},[a,P]);let w=p.value.length>0,C=n&&w&&!p.disabled,v=(h)=>{h.stopPropagation(),h.preventDefault(),p.onValueChange("")},z;if(m)z=w?m(p.value):d?ne("span",{className:"text-muted-foreground",children:d},void 0,!1,void 0,this):null;else z=t;let V=(h)=>{if(f?.(h),h.defaultPrevented)return;if(h.key==="ArrowDown"||h.key==="ArrowUp"||h.key==="Enter"||h.key===" "){if(!p.open)h.preventDefault(),p.onOpenChange(!0)}};return ne(Rt.Trigger,{asChild:!0,children:ne("button",{ref:T,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:i(ap({size:y,status:o}),a?"w-full":"w-auto",e),onKeyDown:V,...u,children:[s&&ne("i",{className:"inline-flex shrink-0 items-center text-muted-foreground not-italic",children:s},void 0,!1,void 0,this),ne("span",{"data-slot":"select-value",className:"min-w-0 flex-1 text-left",children:z},void 0,!1,void 0,this),ne("span",{className:"inline-flex shrink-0 items-center gap-1 text-muted-foreground",children:[C&&ne("span",{role:"button",tabIndex:-1,"aria-label":"Clear selection",onMouseDown:(h)=>h.preventDefault(),onClick:v,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:ne(Hv,{className:Jo[y]},void 0,!1,void 0,this)},void 0,!1,void 0,this),l??ne(Lv,{className:i(Jo[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)});sp.displayName="SelectTrigger";var lp=co(({className:e,children:t,widthMode:r,size:o,align:a="start",side:n="bottom",sideOffset:s=4,portal:l=!0,forceMount:m=!0,onKeyDown:d,...f},u)=>{let T=Qo(),p=ba(o),y=r??po.auto,S=ip(null),P=Qr(u,S),w=(z)=>{let V=S.current;if(!V)return;let h=Array.from(V.querySelectorAll('[role="option"]:not([data-disabled])'));if(h.length===0)return;let L=V.querySelector('[role="option"]:focus'),A=L?h.indexOf(L):-1,F;switch(z){case"first":F=h[0];break;case"last":F=h[h.length-1];break;case"next":F=h[A+1]??h[0];break;case"prev":F=h[A-1]??h[h.length-1];break}F?.focus()},C=(z)=>{if(d?.(z),z.defaultPrevented)return;switch(z.key){case"ArrowDown":z.preventDefault(),w("next");break;case"ArrowUp":z.preventDefault(),w("prev");break;case"Home":z.preventDefault(),w("first");break;case"End":z.preventDefault(),w("last");break;case"Escape":z.preventDefault(),T.onOpenChange(!1);break}};qo(()=>{if(T.open)requestAnimationFrame(()=>w("first"))},[T.open]);let v=ne(Rt.Content,{ref:P,id:T.contentId,role:"listbox","aria-labelledby":T.triggerId,side:n,align:a,sideOffset:s,forceMount:m,onKeyDown:C,onOpenAutoFocus:(z)=>z.preventDefault(),className:i(Nr(),np({widthMode:y,size:p}),"p-1",e),...f,children:t},void 0,!1,void 0,this);if(l)return ne(Rt.Portal,{children:v},void 0,!1,void 0,this);return v});lp.displayName="SelectContent";var mp=co(({className:e,size:t,...r},o)=>{let a=ba(t);return ne("div",{ref:o,className:i("font-semibold text-foreground",Bv[a],e),...r},void 0,!1,void 0,this)});mp.displayName="SelectLabel";var dp=co(({className:e,children:t,value:r,label:o,size:a,disabled:n=!1,...s},l)=>{let m=Qo(),d=ba(a),f=m.value===r,u=m.registerItem,T=ya(kv.toArray(t)).trim();qo(()=>{let S=o??(T.length>0?T:r);u(r,S)},[T,r,o,u]);let p=()=>{if(!n)m.onValueChange(r)},y=(S)=>{if(S.key==="Enter"||S.key===" ")S.preventDefault(),p()};return ne("div",{ref:l,role:"option",tabIndex:n?void 0:-1,"aria-selected":f,"aria-disabled":n||void 0,"data-selected":f?"":void 0,"data-disabled":n?"":void 0,"data-value":r,className:i("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",Fv[d],f&&"bg-accent/50",e),onClick:p,onKeyDown:y,...s,children:[ne("span",{className:i("flex shrink-0 items-center justify-center",Jo[d]),children:f&&ne(Mv,{className:Jo[d]},void 0,!1,void 0,this)},void 0,!1,void 0,this),ne("span",{className:"min-w-0 flex-1 truncate",children:t},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});dp.displayName="SelectItem";var pp=co(({className:e,...t},r)=>ne("div",{ref:r,className:i("-mx-1 my-1 h-px bg-border",e),...t},void 0,!1,void 0,this));pp.displayName="SelectSeparator";import{cva as Uv}from"class-variance-authority";import{forwardRef as $v}from"react";import{jsxDEV as Kv}from"react/jsx-dev-runtime";var uo={horizontal:"horizontal",vertical:"vertical"},cp=Uv("shrink-0 bg-border",{variants:{orientation:{[uo.horizontal]:"h-px w-full",[uo.vertical]:"h-full w-px"}},defaultVariants:{orientation:uo.horizontal}}),up=$v(({className:e,orientation:t=uo.horizontal,decorative:r=!0,...o},a)=>{let n=r?{role:"none"}:{role:"separator","aria-orientation":t};return Kv("div",{ref:a,className:i(cp({orientation:t}),e),...n,...o},void 0,!1,void 0,this)});up.displayName="Separator";import{cva as Eo}from"class-variance-authority";import{forwardRef as jo}from"react";import{jsxDEV as ei}from"react/jsx-dev-runtime";var ue={sm:"sm",md:"md",lg:"lg"},fp=Eo("animate-pulse rounded-[var(--radius)] bg-muted"),gp=Eo("w-full",{variants:{size:{[ue.sm]:"h-3",[ue.md]:"h-4",[ue.lg]:"h-5"}},defaultVariants:{size:ue.md}}),yp=Eo("",{variants:{size:{[ue.sm]:"h-8 w-8",[ue.md]:"h-10 w-10",[ue.lg]:"h-12 w-12"}},defaultVariants:{size:ue.md}}),vp=Eo("",{variants:{size:{[ue.sm]:"h-8 w-20",[ue.md]:"h-9 w-24",[ue.lg]:"h-10 w-28"}},defaultVariants:{size:ue.md}}),fo=jo(({className:e,circle:t=!1,...r},o)=>ei("div",{ref:o,className:i(fp(),t&&"rounded-full",e),...r},void 0,!1,void 0,this));fo.displayName="Skeleton";var bp=jo(({className:e,size:t=ue.md,...r},o)=>{let a=c(t)??ue.md;return ei(fo,{ref:o,className:i(gp({size:a}),e),...r},void 0,!1,void 0,this)});bp.displayName="SkeletonText";var Tp=jo(({className:e,size:t=ue.md,...r},o)=>{let a=c(t)??ue.md;return ei(fo,{ref:o,circle:!0,className:i(yp({size:a}),e),...r},void 0,!1,void 0,this)});Tp.displayName="SkeletonAvatar";var hp=jo(({className:e,size:t=ue.md,...r},o)=>{let a=c(t)??ue.md;return ei(fo,{ref:o,className:i(vp({size:a}),e),...r},void 0,!1,void 0,this)});hp.displayName="SkeletonButton";import*as Mt from"@radix-ui/react-slider";import{cva as oi}from"class-variance-authority";import{forwardRef as Yv}from"react";import{jsxDEV as ri}from"react/jsx-dev-runtime";var ti={sm:"sm",md:"md",lg:"lg"},Pp=oi("relative flex w-full touch-none select-none items-center",{variants:{size:{[ti.sm]:"[&_[data-slider-track]]:h-0.5 [&_[data-slider-thumb]]:h-3 [&_[data-slider-thumb]]:w-3",[ti.md]:"[&_[data-slider-track]]:h-2 [&_[data-slider-thumb]]:h-5 [&_[data-slider-thumb]]:w-5",[ti.lg]:"[&_[data-slider-track]]:h-3 [&_[data-slider-thumb]]:h-6 [&_[data-slider-thumb]]:w-6"}},defaultVariants:{size:ti.md}}),xp=oi("relative w-full grow overflow-hidden rounded-full bg-secondary"),Cp=oi("absolute h-full bg-primary"),zp=oi("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"),Sp=Yv(({className:e,size:t,...r},o)=>{let a=c(t);return ri(Mt.Root,{ref:o,className:i(Pp({size:a}),e),...r,children:[ri(Mt.Track,{"data-slider-track":!0,className:i(xp()),children:ri(Mt.Range,{className:i(Cp())},void 0,!1,void 0,this)},void 0,!1,void 0,this),(r.defaultValue??r.value??[0]).map((n,s)=>ri(Mt.Thumb,{"data-slider-thumb":!0,className:i(zp())},`thumb-${String(s)}`,!1,void 0,this))]},void 0,!0,void 0,this)});Sp.displayName="Slider";import{cva as he}from"class-variance-authority";import{forwardRef as qv,useCallback as Ir,useEffect as xa,useMemo as ii,useRef as wp,useState as ai}from"react";import{createPortal as Jv}from"react-dom";import{useCallback as Xv,useEffect as Zv,useRef as Np}from"react";function Pa(e,t,r={}){let{enabled:o=!0,preventDefault:a=!0,stopPropagation:n=!1,target:s="global"}=r,l=Np(t);l.current=t;let m=Np([]),d=Array.isArray(e)?e:[e];m.current=d.map((u)=>({combo:u,def:Ta(u)}));let f=Xv((u)=>{if(!o)return;for(let{combo:T,def:p}of m.current)if(ha(u,p)){if(a)u.preventDefault();if(n)u.stopPropagation();l.current(u,T);return}},[o,a,n]);Zv(()=>{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 j}from"react/jsx-dev-runtime";var Jt={sm:"sm",md:"md",lg:"lg",xl:"xl"},Vr={idle:"idle",loading:"loading",error:"error"},Rp=he("fixed inset-0 z-[120] bg-black/60 backdrop-blur-sm",{variants:{state:{open:"animate-in fade-in-0",closing:"animate-out fade-out-0"}},defaultVariants:{state:"open"}}),Mp=he(["fixed left-1/2 top-[15vh] z-[120] w-full -translate-x-1/2","rounded-[calc(var(--radius)+6px)] border border-border bg-popover shadow-2xl","overflow-hidden"],{variants:{size:{[Jt.sm]:"max-w-md",[Jt.md]:"max-w-xl",[Jt.lg]:"max-w-2xl",[Jt.xl]:"max-w-3xl"},state:{open:"animate-in fade-in-0 slide-in-from-top-4",closing:"animate-out fade-out-0 slide-out-to-top-4"}},defaultVariants:{size:Jt.md,state:"open"}}),Lp=he("flex items-center gap-3 border-b border-border px-4 py-3"),Hp=he(["w-full flex-1 bg-transparent text-foreground text-base","placeholder:text-muted-foreground","outline-none border-none"]),kp=he("size-4 text-muted-foreground shrink-0"),ni=he(["inline-flex items-center justify-center px-1.5 py-0.5 rounded","font-mono text-[10px] font-medium","bg-muted border border-border text-muted-foreground"]),Ap=he("overflow-y-auto max-h-80 py-1"),Ip=he("px-3 py-2 text-xs font-semibold text-muted-foreground uppercase tracking-wide"),Vp=he(["group flex items-center gap-3 px-3 py-2 mx-2 rounded-lg cursor-pointer","text-foreground transition-colors duration-100"],{variants:{selected:{true:"bg-primary/10",false:"hover:bg-muted"},disabled:{true:"opacity-50 cursor-not-allowed pointer-events-none",false:""}},defaultVariants:{selected:!1,disabled:!1}}),Dp=he("size-4 shrink-0",{variants:{selected:{true:"text-primary",false:"text-muted-foreground"}},defaultVariants:{selected:!1}}),Fp=he("flex-1 min-w-0"),Bp=he("text-sm font-medium truncate"),Op=he("text-xs text-muted-foreground truncate"),_p=he("flex items-center gap-1 text-[11px] text-muted-foreground shrink-0"),si=he("flex flex-col items-center justify-center py-8 text-muted-foreground min-h-24",{variants:{state:{empty:"text-muted-foreground",loading:"text-muted-foreground",error:"text-destructive"}},defaultVariants:{state:"empty"}}),li=he("text-sm font-medium"),Gp=he("text-xs mt-1"),Qv=(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},Wp=qv(({className:e,open:t,onOpenChange:r,actions:o,onActionSelect:a,value:n,defaultValue:s="",onValueChange:l,placeholder:m="Search commands, pages, or actions...",size:d=Jt.md,status:f=Vr.idle,statusMessage:u,emptyText:T="No command found for this query.",hotkey:p,portal:y=!0,...S},P)=>{let w=wp(null),C=wp(null),[v,z]=ai(s),[V,h]=ai(0),[L,A]=ai(!1),[F,Z]=ai(!1),{isMac:B}=Er(),W=Ir((M)=>jr(M,B),[B]),N=ii(()=>p&&p.length>0?p.join("+"):null,[p]);Pa(N??"",()=>r(!t),{enabled:!!N});let I=n!==void 0?n:v,x=ii(()=>o.filter((M)=>Qv(M,I)),[o,I]),D=ii(()=>x.map((M,q)=>M.disabled?-1:q).filter((M)=>M>=0),[x]),Q=ii(()=>{let M=new Map,q=new Map,ee=0;for(let fe of x){let Dt=fe.group??"";if(!M.has(Dt))M.set(Dt,[]);M.get(Dt).push(fe),q.set(fe,ee),ee++}return{groups:M,indexMap:q}},[x]);xa(()=>{if(t){A(!0),Z(!1),h(0);return}if(L)Z(!0)},[t]);let R=Ir(()=>{if(F)A(!1),Z(!1)},[F]);xa(()=>{if(t)document.body.style.overflow="hidden";else document.body.style.overflow="";return()=>{document.body.style.overflow=""}},[t]),xa(()=>{if(t&&L)requestAnimationFrame(()=>w.current?.focus())},[t,L]);let U=Ir((M)=>{let q=M.target.value;z(q),l?.(q),h(0)},[l]),g=Ir((M)=>{let q=C.current;if(!q)return;q.querySelectorAll('[role="option"]')[M]?.scrollIntoView({block:"nearest"})},[]),b=Ir((M)=>{if(M.key==="Escape"){M.preventDefault(),r(!1);return}if(M.key==="ArrowDown"){if(M.preventDefault(),D.length===0)return;let ee=(D.indexOf(V)+1)%D.length,fe=D[ee];h(fe),g(fe);return}if(M.key==="ArrowUp"){if(M.preventDefault(),D.length===0)return;let ee=(D.indexOf(V)-1+D.length)%D.length,fe=D[ee];h(fe),g(fe);return}if(M.key==="Enter"){M.preventDefault();let q=x[V];if(q&&!q.disabled)a(q,V)}},[V,D,x,a,r,g]),k=Ir((M,q)=>{if(M.disabled)return;a(M,q)},[a]);if(!L)return null;let le=F?"closing":"open",H=f===Vr.idle,E=f!==Vr.idle,$=j("div",{ref:P,role:"dialog","aria-modal":"true",onKeyDown:b,className:i(e),...S,children:[j("div",{"data-testid":"spotlight-overlay",className:i(Rp({state:le})),onClick:()=>r(!1),onKeyDown:(M)=>{if(M.key==="Escape")r(!1)}},void 0,!1,void 0,this),j("div",{className:i(Mp({size:d,state:le})),onAnimationEnd:R,children:[j("div",{className:i(Lp()),children:[j("svg",{className:i(kp()),fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:j("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),j("input",{ref:w,type:"text",value:I,onChange:U,placeholder:m,className:i(Hp())},void 0,!1,void 0,this),p?j("div",{className:"flex items-center gap-1",children:p.map((M)=>j("kbd",{className:i(ni()),children:W(M)},M,!1,void 0,this))},void 0,!1,void 0,this):j("kbd",{className:i(ni()),children:"ESC"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),E&&f===Vr.loading&&j("div",{className:i(si({state:"loading"})),children:j("div",{className:i(li()),children:"Searching commands..."},void 0,!1,void 0,this)},void 0,!1,void 0,this),E&&f===Vr.error&&j("div",{className:i(si({state:"error"})),children:[j("div",{className:i(li()),children:"Search failed"},void 0,!1,void 0,this),u&&j("div",{className:i(Gp()),children:u},void 0,!1,void 0,this)]},void 0,!0,void 0,this),H&&x.length===0&&j("div",{className:i(si({state:"empty"})),children:j("div",{className:i(li()),children:T},void 0,!1,void 0,this)},void 0,!1,void 0,this),H&&x.length>0&&j("div",{ref:C,className:i(Ap()),children:Array.from(Q.groups.entries()).map(([M,q])=>j("div",{children:[M&&j("div",{className:i(Ip()),children:M},void 0,!1,void 0,this),q.map((ee)=>{let fe=Q.indexMap.get(ee)??0,Dt=fe===V;return j("div",{role:"option","aria-selected":Dt,"aria-disabled":ee.disabled??!1,onClick:()=>k(ee,fe),className:i(Vp({selected:Dt,disabled:ee.disabled??!1})),children:[ee.icon&&j("span",{className:i(Dp({selected:Dt})),children:ee.icon},void 0,!1,void 0,this),j("div",{className:i(Fp()),children:[j("div",{className:i(Bp()),children:ee.title},void 0,!1,void 0,this),ee.description&&j("div",{className:i(Op()),children:ee.description},void 0,!1,void 0,this)]},void 0,!0,void 0,this),ee.shortcut&&ee.shortcut.length>0&&j("div",{className:i(_p()),children:ee.shortcut.map((Ua)=>j("kbd",{className:i(ni()),children:W(Ua)},Ua,!1,void 0,this))},void 0,!1,void 0,this)]},ee.id,!0,void 0,this)})]},M||"__ungrouped__",!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this);if(y)return Jv($,document.body);return $});Wp.displayName="Spotlight";import{cva as Ev}from"class-variance-authority";import{forwardRef as jv}from"react";import{jsxDEV as Lt}from"react/jsx-dev-runtime";var _e={sm:"sm",md:"md",lg:"lg"},Qt={up:"up",down:"down",neutral:"neutral"},Up=Ev("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:{[_e.sm]:"gap-1 p-3",[_e.md]:"gap-1.5 p-4",[_e.lg]:"gap-2 p-5"}},defaultVariants:{size:_e.md}}),eb={[_e.sm]:"text-lg font-semibold",[_e.md]:"text-2xl font-bold",[_e.lg]:"text-3xl font-bold"},tb={[_e.sm]:"text-xs",[_e.md]:"text-sm",[_e.lg]:"text-base"},rb={[Qt.up]:"text-success",[Qt.down]:"text-destructive",[Qt.neutral]:"text-muted-foreground"},ob={[Qt.up]:"↑",[Qt.down]:"↓",[Qt.neutral]:"→"},$p=jv(({className:e,size:t=_e.md,label:r,value:o,trend:a,trendValue:n,icon:s,...l},m)=>{let d=c(t);return Lt("div",{ref:m,className:i(Up({size:d}),e),...l,children:[Lt("div",{className:"flex items-center justify-between",children:[Lt("span",{className:i("text-muted-foreground",tb[d]),children:r},void 0,!1,void 0,this),s&&Lt("span",{className:"text-muted-foreground/70","aria-hidden":"true",children:s},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Lt("div",{className:"flex items-baseline gap-2",children:[Lt("span",{className:i("tracking-tight text-foreground",eb[d]),children:o},void 0,!1,void 0,this),a&&n&&Lt("span",{className:i("inline-flex items-center gap-0.5 text-xs font-medium",rb[a]),children:[Lt("span",{"aria-hidden":"true",children:ob[a]},void 0,!1,void 0,this),n]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)});$p.displayName="StatCard";import{cva as Et}from"class-variance-authority";import{Check as ib}from"lucide-react";import{forwardRef as jt}from"react";import{jsxDEV as Ht}from"react/jsx-dev-runtime";var Kp=Et("flex w-full",{variants:{orientation:{horizontal:"flex-row items-start",vertical:"flex-col"}},defaultVariants:{orientation:"horizontal"}}),Yp=Et("flex",{variants:{orientation:{horizontal:"flex-1 flex-col items-center",vertical:"gap-4 flex-row"}},defaultVariants:{orientation:"horizontal"}}),Xp=Et(["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}}),Zp=Et("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}}),qp=Et("flex flex-col",{variants:{orientation:{horizontal:"mt-3 items-center text-center",vertical:"flex-1 pb-8 last:pb-0"}},defaultVariants:{orientation:"horizontal"}}),Jp=Et("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"}}),Qp=Et("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 Ep=jt(({className:e,orientation:t="horizontal",activeStep:r,...o},a)=>{return Ht("div",{ref:a,role:"group","aria-label":"Progress steps",className:i(Kp({orientation:t}),e),"data-orientation":t,"data-active-step":r,...o},void 0,!1,void 0,this)});Ep.displayName="Stepper";var jp=jt(({className:e,orientation:t="horizontal",isLast:r,isCurrent:o,...a},n)=>{return Ht("div",{ref:n,className:i(Yp({orientation:t}),e),"data-last":r,"aria-current":o?"step":void 0,...a},void 0,!1,void 0,this)});jp.displayName="Step";var ec=jt(({className:e,status:t="incomplete",size:r="md",icon:o,step:a,children:n,animated:s=!0,...l},m)=>{let d=c(r);return Ht("div",{ref:m,className:i(Xp({status:t,size:d,animated:s}),e),"data-status":t,"aria-hidden":"true",...l,children:t==="complete"?o||Ht(ib,{className:"size-4",strokeWidth:3},void 0,!1,void 0,this):n||a},void 0,!1,void 0,this)});ec.displayName="StepIndicator";var tc=jt(({className:e,orientation:t="horizontal",status:r="incomplete",size:o="md",animated:a=!0,...n},s)=>{let l=c(o);return Ht("div",{ref:s,className:i(Zp({orientation:t,status:r,size:l,animated:a}),e),"data-status":r,...n},void 0,!1,void 0,this)});tc.displayName="StepConnector";var rc=jt(({className:e,orientation:t="horizontal",...r},o)=>{return Ht("div",{ref:o,className:i(qp({orientation:t}),e),...r},void 0,!1,void 0,this)});rc.displayName="StepContent";var oc=jt(({className:e,status:t="incomplete",size:r="md",...o},a)=>{let n=c(r);return Ht("h4",{ref:a,className:i(Jp({status:t,size:n}),e),...o},void 0,!1,void 0,this)});oc.displayName="StepTitle";var ic=jt(({className:e,size:t="md",...r},o)=>{let a=c(t);return Ht("p",{ref:o,className:i(Qp({size:a}),e),...r},void 0,!1,void 0,this)});ic.displayName="StepDescription";import*as mi from"@radix-ui/react-switch";import{cva as ab}from"class-variance-authority";import{forwardRef as nb}from"react";import{jsxDEV as ac}from"react/jsx-dev-runtime";var Ne={sm:"sm",md:"md",lg:"lg",xl:"xl"},Dr={default:"default",error:"error",success:"success"},nc=ab("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:{[Ne.sm]:"h-4.5 w-8",[Ne.md]:"h-5 w-9",[Ne.lg]:"h-6 w-11",[Ne.xl]:"h-7 w-[3.25rem]"},status:{[Dr.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",[Dr.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",[Dr.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:Ne.md,status:Dr.default}}),sb={[Ne.sm]:"h-3.5 w-3.5",[Ne.md]:"h-4 w-4",[Ne.lg]:"h-5 w-5",[Ne.xl]:"h-6 w-6"},lb={[Ne.sm]:"data-[state=checked]:translate-x-3.5",[Ne.md]:"data-[state=checked]:translate-x-4",[Ne.lg]:"data-[state=checked]:translate-x-5",[Ne.xl]:"data-[state=checked]:translate-x-6"},sc=nb(({className:e,size:t=Ne.md,status:r=Dr.default,checked:o,disabled:a,...n},s)=>{let l=c(t);return ac(mi.Root,{ref:s,checked:o,disabled:a,className:i(nc({size:l,status:r}),e),...n,children:ac(mi.Thumb,{className:i("pointer-events-none block rounded-full bg-background shadow-sm transition-transform duration-150",sb[l],lb[l])},void 0,!1,void 0,this)},void 0,!1,void 0,this)});sc.displayName="Switch";import{cva as ft}from"class-variance-authority";import{createContext as mb,forwardRef as kt,useContext as lc}from"react";import{jsxDEV as ot}from"react/jsx-dev-runtime";var xe={sm:"sm",md:"md",lg:"lg"},Ca=mb(xe.md),mc=ft("relative w-full overflow-auto rounded-[var(--radius)] border border-border bg-card shadow-[var(--shadow-sm)]"),dc=ft("w-full caption-bottom",{variants:{size:{[xe.sm]:"text-xs",[xe.md]:"text-sm",[xe.lg]:"text-sm"}},defaultVariants:{size:xe.md}}),pc=ft("sticky top-0 z-[1] [&_tr]:border-b [&_tr]:border-border [&_th]:bg-muted"),cc=ft("[&_tr:last-child]:border-0"),uc=ft("border-t border-border bg-muted font-medium text-muted-foreground [&>tr]:last:border-b-0"),fc=ft("gs-interactive border-b border-border hover:bg-muted/50 data-[state=selected]:bg-primary/10"),gc=ft("text-left align-middle font-semibold text-muted-foreground [&:has([role=checkbox])]:pr-0",{variants:{size:{[xe.sm]:"h-8 px-2",[xe.md]:"h-10 px-3",[xe.lg]:"h-12 px-4"}},defaultVariants:{size:xe.md}}),yc=ft("align-middle text-foreground [&:has([role=checkbox])]:pr-0",{variants:{size:{[xe.sm]:"p-2",[xe.md]:"p-3",[xe.lg]:"p-4"}},defaultVariants:{size:xe.md}}),vc=ft("mt-4 text-sm text-muted-foreground"),bc=kt(({className:e,containerClassName:t,size:r=xe.md,...o},a)=>{let n=c(r)??xe.md;return ot(Ca.Provider,{value:n,children:ot("div",{className:i(mc(),t),children:ot("table",{ref:a,className:i(dc({size:n}),e),...o},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)});bc.displayName="Table";var Tc=kt(({className:e,...t},r)=>ot("thead",{ref:r,className:i(pc(),e),...t},void 0,!1,void 0,this));Tc.displayName="TableHeader";var hc=kt(({className:e,...t},r)=>ot("tbody",{ref:r,className:i(cc(),e),...t},void 0,!1,void 0,this));hc.displayName="TableBody";var Pc=kt(({className:e,...t},r)=>ot("tfoot",{ref:r,className:i(uc(),e),...t},void 0,!1,void 0,this));Pc.displayName="TableFooter";var xc=kt(({className:e,...t},r)=>ot("tr",{ref:r,className:i(fc(),e),...t},void 0,!1,void 0,this));xc.displayName="TableRow";var Cc=kt(({className:e,size:t,...r},o)=>{let a=lc(Ca);return ot("th",{ref:o,className:i(gc({size:t??a}),e),...r},void 0,!1,void 0,this)});Cc.displayName="TableHead";var zc=kt(({className:e,size:t,...r},o)=>{let a=lc(Ca);return ot("td",{ref:o,className:i(yc({size:t??a}),e),...r},void 0,!1,void 0,this)});zc.displayName="TableCell";var Sc=kt(({className:e,...t},r)=>ot("caption",{ref:r,className:i(vc(),e),...t},void 0,!1,void 0,this));Sc.displayName="TableCaption";import*as Qe from"@radix-ui/react-tabs";import{cva as za}from"class-variance-authority";import{createContext as db,forwardRef as Sa,useCallback as Nc,useContext as pb,useEffect as Na,useLayoutEffect as cb,useRef as di,useState as ub}from"react";import{jsxDEV as go}from"react/jsx-dev-runtime";var it={sm:"sm",md:"md",lg:"lg",xl:"xl"},wc=za("relative inline-flex items-center justify-center rounded-[var(--radius)] border border-border bg-muted/50 p-1 text-muted-foreground",{variants:{size:{[it.sm]:"h-9 gap-0.5",[it.md]:"h-11 gap-1",[it.lg]:"h-12 gap-1",[it.xl]:"h-14 gap-1.5"}},defaultVariants:{size:it.md}}),Rc=za("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:{[it.sm]:"px-2.5 py-1 text-xs",[it.md]:"px-3 py-1.5 text-sm",[it.lg]:"px-4 py-2 text-sm",[it.xl]:"px-5 py-2.5 text-base"}},defaultVariants:{size:it.md}}),Mc=za("mt-3 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2"),Lc=db({registerTrigger:()=>{}}),fb=typeof window<"u"?cb:Na,gb=Qe.Root,Hc=Sa(({className:e,size:t,children:r,...o},a)=>{let n=c(t),s=di(null),l=di(new Map),[m,d]=ub(null),f=di(!0),u=Nc((p,y)=>{if(y)l.current.set(p,y);else l.current.delete(p)},[]),T=Nc(()=>{let p=s.current;if(!p)return;let y=p.querySelector('[data-state="active"]');if(!y){d(null);return}let S=p.getBoundingClientRect(),P=y.getBoundingClientRect();d({left:P.left-S.left,width:P.width})},[]);return fb(()=>{T()},[T]),Na(()=>{let p=s.current;if(!p)return;let y=new MutationObserver(()=>{f.current=!1,T()});return y.observe(p,{attributes:!0,attributeFilter:["data-state"],subtree:!0}),()=>y.disconnect()},[T]),go(Lc.Provider,{value:{registerTrigger:u},children:go(Qe.List,{ref:(p)=>{if(s.current=p,typeof a==="function")a(p);else if(a)a.current=p},className:i(wc({size:n}),e),...o,children:[m&&go("span",{"aria-hidden":"true",className:i("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:m.left,width:m.width,top:"4px",bottom:"4px"}},void 0,!1,void 0,this),r]},void 0,!0,void 0,this)},void 0,!1,void 0,this)});Hc.displayName=Qe.List.displayName;var kc=Sa(({className:e,size:t,value:r,...o},a)=>{let n=c(t),{registerTrigger:s}=pb(Lc),l=di(null);return Na(()=>{return s(r,l.current),()=>s(r,null)},[r,s]),go(Qe.Trigger,{ref:(m)=>{if(l.current=m,typeof a==="function")a(m);else if(a)a.current=m},value:r,className:i(Rc({size:n}),e),...o},void 0,!1,void 0,this)});kc.displayName=Qe.Trigger.displayName;var Ac=Sa(({className:e,...t},r)=>go(Qe.Content,{ref:r,className:i(Mc(),e),...t},void 0,!1,void 0,this));Ac.displayName=Qe.Content.displayName;import{cva as yb}from"class-variance-authority";import{forwardRef as vb}from"react";import{jsxDEV as bb}from"react/jsx-dev-runtime";var yo={default:"default",error:"error",success:"success"},Fr={sm:"sm",md:"md",lg:"lg",xl:"xl"},Ic=yb("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:{[yo.default]:"focus-visible:ring-primary",[yo.error]:"border-destructive focus-visible:ring-destructive",[yo.success]:"border-success focus-visible:ring-success"},size:{[Fr.sm]:"min-h-[64px] px-2 py-1.5 text-xs",[Fr.md]:"min-h-[96px] px-3 py-2",[Fr.lg]:"min-h-[112px] px-4 py-2.5",[Fr.xl]:"min-h-[128px] px-4 py-3 text-base"}},defaultVariants:{status:yo.default,size:Fr.md}}),Vc=vb(({className:e,status:t=yo.default,size:r=Fr.md,fullWidth:o=!1,noResize:a=!1,disabled:n,...s},l)=>{let m=c(r);return bb("textarea",{ref:l,className:i(Ic({status:t,size:m}),n&&"bg-muted",o&&"w-full",a&&"resize-none",e),disabled:n,...s},void 0,!1,void 0,this)});Vc.displayName="Textarea";import{cva as At}from"class-variance-authority";import{forwardRef as It}from"react";import{jsxDEV as at}from"react/jsx-dev-runtime";var Dc=At("relative flex flex-col"),Fc=At(["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}}),Bc=At(["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}}),Oc=At(["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}}),_c=At("flex flex-col gap-1 pt-0.5 min-w-0 transition-opacity duration-200 ease-[cubic-bezier(0.22,1,0.36,1)]"),Gc=At("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"}}),Wc=At("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"}}),Uc=At("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 $c=It(({className:e,...t},r)=>{return at("div",{ref:r,role:"list","aria-label":"Timeline events",className:i(Dc(),e),...t},void 0,!1,void 0,this)});$c.displayName="Timeline";var Kc=It(({className:e,align:t,isLast:r,animated:o=!0,...a},n)=>{return at("div",{ref:n,role:"listitem",className:i(Fc({align:t,animated:o}),e),"data-last":r,...a},void 0,!1,void 0,this)});Kc.displayName="TimelineItem";var Yc=It(({className:e,variant:t,size:r,animated:o=!0,...a},n)=>{let s=c(r);return at("div",{ref:n,className:i(Bc({variant:t,size:s,animated:o}),e),...a},void 0,!1,void 0,this)});Yc.displayName="TimelineConnector";var Xc=It(({className:e,variant:t,size:r,icon:o,children:a,pulse:n=!1,animated:s=!0,...l},m)=>{let d=c(r);return at("div",{ref:m,className:i(Oc({variant:t,size:d,pulse:n,animated:s}),e),"aria-hidden":"true",...l,children:o||a||at(Tb,{},void 0,!1,void 0,this)},void 0,!1,void 0,this)});Xc.displayName="TimelineDot";var Zc=It(({className:e,...t},r)=>{return at("div",{ref:r,className:i(_c(),e),...t},void 0,!1,void 0,this)});Zc.displayName="TimelineContent";var qc=It(({className:e,size:t,...r},o)=>{let a=c(t);return at("h4",{ref:o,className:i(Gc({size:a}),e),...r},void 0,!1,void 0,this)});qc.displayName="TimelineTitle";var Jc=It(({className:e,size:t,...r},o)=>{let a=c(t);return at("p",{ref:o,className:i(Wc({size:a}),e),...r},void 0,!1,void 0,this)});Jc.displayName="TimelineDescription";var Qc=It(({className:e,size:t,...r},o)=>{let a=c(t);return at("time",{ref:o,className:i(Uc({size:a}),e),...r},void 0,!1,void 0,this)});Qc.displayName="TimelineTime";function Tb(){return at("span",{className:"size-2 rounded-full bg-current"},void 0,!1,void 0,this)}import{cva as Ec}from"class-variance-authority";var Br={default:"default",success:"success",info:"info",warning:"warning",error:"error"},Ge={sm:"sm",md:"md",lg:"lg"},wa=Ec("pointer-events-auto relative flex w-full items-center overflow-hidden rounded-[var(--radius)] border shadow-[var(--shadow-md)]",{variants:{variant:{[Br.default]:"border-border bg-card text-card-foreground",[Br.success]:"border-success/30 bg-card text-card-foreground",[Br.info]:"border-info/30 bg-card text-card-foreground",[Br.warning]:"border-warning/30 bg-card text-card-foreground",[Br.error]:"border-destructive/30 bg-card text-card-foreground"},size:{[Ge.sm]:"gap-2 p-3",[Ge.md]:"gap-3 p-4",[Ge.lg]:"gap-3.5 p-5"}},defaultVariants:{variant:Br.default,size:Ge.md}}),Ra=Ec("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:{[Ge.sm]:"h-6 px-2 text-xs",[Ge.md]:"h-7 px-2.5 text-xs",[Ge.lg]:"h-8 px-3 text-sm"}},defaultVariants:{size:Ge.md}});import{AlertTriangle as Rb,CheckCircle2 as Mb,Info as ou,X as Lb,XCircle as Hb}from"lucide-react";import{forwardRef as kb,useCallback as ui,useEffect as fi,useRef as Aa,useState as Ia}from"react";import{useSyncExternalStore as hb}from"react";var Pb=5,eu=5000,xb=500,Ma=0;function Cb(){return Ma=(Ma+1)%Number.MAX_SAFE_INTEGER,`toast-${Ma}-${Date.now()}`}var La=new Set,We=[],tr=new Map,bo=new Map,To=!1,er=new Map;function pi(){for(let e of La)e()}function jc(){return We}function zb(e){return La.add(e),()=>{La.delete(e)}}function Ha(e,t){if(To){er.set(e,t);return}clearTimeout(tr.get(e));let r=Date.now(),o=setTimeout(()=>{tr.delete(e),er.delete(e),ci(e)},t);tr.set(e,o),er.set(e,t);let a=setInterval(()=>{let n=Date.now()-r,s=t-n;if(s<=0)clearInterval(a),er.delete(e);else er.set(e,s)},100)}function Sb(e){clearTimeout(bo.get(e));let t=setTimeout(()=>{We=We.filter((r)=>r.id!==e),bo.delete(e),pi()},xb);bo.set(e,t)}function vo(e){let t=e.id??Cb(),r=e.duration??eu;if(We.find((n)=>n.id===t))return We=We.map((n)=>n.id===t?{...n,...e,id:t,open:!0,createdAt:Date.now()}:n),clearTimeout(bo.get(t)),bo.delete(t),Ha(t,r),pi(),t;return We=[{...e,id:t,variant:e.variant??"default",dismissible:e.dismissible??!0,open:!0,createdAt:Date.now()},...We].slice(0,Pb),Ha(t,r),pi(),t}function ci(e){clearTimeout(tr.get(e)),tr.delete(e),er.delete(e),We=We.map((t)=>t.id===e?{...t,open:!1}:t),pi(),Sb(e)}function tu(){for(let e of We)ci(e.id)}function Nb(){if(To)return;To=!0;for(let[e,t]of tr)clearTimeout(t),tr.delete(e)}function wb(){if(!To)return;To=!1;for(let e of We)if(e.open){let t=er.get(e.id)??eu;Ha(e.id,t)}}var ru=Object.assign((e)=>vo(e),{success:(e,t)=>vo({...t,variant:"success",title:e}),info:(e,t)=>vo({...t,variant:"info",title:e}),warning:(e,t)=>vo({...t,variant:"warning",title:e}),error:(e,t)=>vo({...t,variant:"error",title:e}),dismiss:ci,dismissAll:tu});function ka(){return{toasts:hb(zb,jc,jc),toast:ru,dismiss:ci,dismissAll:tu,pauseAll:Nb,resumeAll:wb}}import{jsxDEV as we}from"react/jsx-dev-runtime";var au=10,iu=0.05,Ab=200,nu="cubic-bezier(0.2, 0.8, 0.2, 1)",Ib="cubic-bezier(0.22, 1, 0.36, 1)",Vb={"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"},Db={success:(e)=>we(Mb,{className:i("mt-0.5 shrink-0 text-success",e==="sm"?"size-4":"size-[18px]")},void 0,!1,void 0,this),info:(e)=>we(ou,{className:i("mt-0.5 shrink-0 text-info",e==="sm"?"size-4":"size-[18px]")},void 0,!1,void 0,this),warning:(e)=>we(Rb,{className:i("mt-0.5 shrink-0 text-warning",e==="sm"?"size-4":"size-[18px]")},void 0,!1,void 0,this),error:(e)=>we(Hb,{className:i("mt-0.5 shrink-0 text-destructive",e==="sm"?"size-4":"size-[18px]")},void 0,!1,void 0,this),default:(e)=>we(ou,{className:i("mt-0.5 shrink-0 text-muted-foreground",e==="sm"?"size-4":"size-[18px]")},void 0,!1,void 0,this)};function Fb(e,t,r,o,a){let n=e<o,s=r?a:e*au,l=r?1:n?1-e*iu:1-o*iu,m=n||r?1:0,d=t-e;return{offset:s,scale:l,opacity:m,zIndex:d}}var su=kb(({position:e="bottom-right",gap:t=12,visibleCount:r=3,size:o=Ge.md,className:a,...n},s)=>{let{toasts:l,dismiss:m,pauseAll:d,resumeAll:f}=ka(),u=c(o)??Ge.md,[T,p]=Ia(!1),[y,S]=Ia({}),P=Aa(null),w=Aa(void 0),C=e.startsWith("bottom"),v=ui((x)=>{if(P.current=x,typeof s==="function")s(x);else if(s)s.current=x},[s]),z=ui(()=>{clearTimeout(w.current),p(!0),d()},[d]),V=ui(()=>{clearTimeout(w.current),w.current=setTimeout(()=>{p(!1),f()},Ab)},[f]);fi(()=>{return()=>clearTimeout(w.current)},[]);let h=ui((x,D)=>{S((Q)=>{if(Q[x]===D)return Q;return{...Q,[x]:D}})},[]);if(fi(()=>{let x=new Set(l.map((D)=>D.id));S((D)=>{let Q=!1,R={};for(let[U,g]of Object.entries(D))if(x.has(U))R[U]=g;else Q=!0;return Q?R:D})},[l]),l.length===0)return null;let L=l.filter((x)=>x.open),A=new Map,F=0;for(let[x,D]of L.entries()){let Q=y[D.id]??0;A.set(D.id,Fb(x,L.length,T,r,F)),F+=Q+t}let Z=L[0],W=(Z?y[Z.id]??0:0)+Math.min(L.length-1,r-1)*au,N=F-(L.length>0?t:0),I=T?N:W;return we("ol",{ref:v,role:"region","aria-label":"Notifications",tabIndex:-1,onMouseEnter:z,onMouseLeave:V,className:i("pointer-events-auto fixed z-[100] w-full max-w-[400px] outline-none",Vb[e],a),style:{height:Math.max(I,0),transition:`height 400ms ${nu}`},...n,children:l.map((x)=>{let D=!x.open,Q=A.get(x.id);return we(Bb,{toast:x,layout:Q??{offset:0,scale:1,opacity:0,zIndex:0},isClosed:D,isBottom:C,size:u,onDismiss:m,onMeasure:h},x.id,!1,void 0,this)})},void 0,!1,void 0,this)});su.displayName="Toaster";function Bb({toast:e,layout:t,isClosed:r,isBottom:o,size:a,onDismiss:n,onMeasure:s}){let l=Aa(null),[m,d]=Ia(!1);fi(()=>{let y=requestAnimationFrame(()=>d(!0));return()=>cancelAnimationFrame(y)},[]),fi(()=>{let y=l.current;if(!y)return;let S=new ResizeObserver((P)=>{for(let w of P){let C=w.borderBoxSize?.[0];if(C)s(e.id,C.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,T,p;if(!m)u=`translateY(${o?80:-80}px) scale(0.9)`,T=0,p="none";else if(r)u=`translateY(${o?80:-80}px) scale(0.95)`,T=0,p="none";else u=`translateY(${o?-t.offset:t.offset}px) scale(${t.scale})`,T=t.opacity,p="auto";return we("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:T,pointerEvents:p,transition:[`transform 400ms ${nu}`,`opacity 250ms ${Ib}`].join(", ")},children:we("div",{className:i(wa({variant:e.variant,size:a}),"w-full"),children:[Db[e.variant]?.(a),we("div",{className:"flex-1 space-y-0.5",children:[e.title&&we("p",{className:i("font-semibold leading-tight",a==="sm"?"text-xs":"text-sm"),children:e.title},void 0,!1,void 0,this),e.description&&we("p",{className:i("leading-snug text-muted-foreground",a==="sm"?"text-xs":"text-sm"),children:e.description},void 0,!1,void 0,this)]},void 0,!0,void 0,this),e.action&&we("button",{type:"button",className:i(Ra({size:a}),"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&&we("button",{type:"button",className:i("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",a==="sm"?"[&>svg]:size-3.5":"[&>svg]:size-4"),onClick:()=>n(e.id),"aria-label":"Dismiss",children:we(Lb,{},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 lu from"@radix-ui/react-toggle";import{cva as Ob}from"class-variance-authority";import{forwardRef as _b}from"react";import{jsxDEV as Gb}from"react/jsx-dev-runtime";var Va={default:"default",outline:"outline"},gi={sm:"sm",md:"md",lg:"lg"},yi=Ob("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:{[Va.default]:"bg-transparent disabled:bg-transparent disabled:text-foreground/50",[Va.outline]:"border-input bg-transparent hover:bg-accent hover:text-accent-foreground disabled:bg-transparent disabled:text-foreground/50 disabled:border-border/50"},size:{[gi.sm]:"h-7 px-1.5 min-w-7 text-xs",[gi.md]:"h-10 px-3 min-w-10",[gi.lg]:"h-11 px-5 min-w-11"}},defaultVariants:{variant:Va.default,size:gi.md}}),mu=_b(({className:e,variant:t,size:r,...o},a)=>{let n=c(r);return Gb(lu.Root,{ref:a,className:i(yi({variant:t,size:n}),e),...o},void 0,!1,void 0,this)});mu.displayName="Toggle";import*as vi from"@radix-ui/react-toggle-group";import{cva as Wb}from"class-variance-authority";import{createContext as Ub,forwardRef as du,useContext as $b}from"react";import{jsxDEV as Da}from"react/jsx-dev-runtime";var Kb={default:"default",outline:"outline"},Yb={sm:"sm",md:"md",lg:"lg"},pu=Wb("flex items-center justify-center gap-1"),cu=Ub({size:Yb.md,variant:Kb.default}),uu=du(({className:e,variant:t,size:r,children:o,...a},n)=>{let s=c(r);return Da(vi.Root,{ref:n,className:i(pu(),e),...a,children:Da(cu.Provider,{value:{variant:t,size:s},children:o},void 0,!1,void 0,this)},void 0,!1,void 0,this)});uu.displayName="ToggleGroup";var fu=du(({className:e,children:t,variant:r,size:o,...a},n)=>{let s=$b(cu),l=c(o);return Da(vi.Item,{ref:n,className:i(yi({variant:r??s.variant,size:l??s.size}),e),...a,children:t},void 0,!1,void 0,this)});fu.displayName="ToggleGroupItem";import{cva as gu}from"class-variance-authority";import{forwardRef as bi}from"react";import{jsxDEV as Ti}from"react/jsx-dev-runtime";var Ee={sm:"sm",md:"md",lg:"lg"},yu=gu("flex items-center border-b border-border bg-background",{variants:{size:{[Ee.sm]:"gap-1.5 px-3 py-1.5",[Ee.md]:"gap-2 px-4 py-2",[Ee.lg]:"gap-3 px-5 py-2.5"}},defaultVariants:{size:Ee.md}}),vu=bi(({className:e,size:t=Ee.md,...r},o)=>{let a=c(t);return Ti("div",{ref:o,role:"toolbar",className:i(yu({size:a}),e),...r},void 0,!1,void 0,this)});vu.displayName="Toolbar";var bu=gu("flex items-center",{variants:{size:{[Ee.sm]:"gap-1",[Ee.md]:"gap-1.5",[Ee.lg]:"gap-2"}},defaultVariants:{size:Ee.md}}),Tu=bi(({className:e,size:t=Ee.md,...r},o)=>{let a=c(t);return Ti("div",{ref:o,role:"group",className:i(bu({size:a}),e),...r},void 0,!1,void 0,this)});Tu.displayName="ToolbarGroup";var hu=bi(({className:e,...t},r)=>{return Ti("div",{ref:r,role:"none",className:i("h-5 w-px shrink-0 bg-border",e),...t},void 0,!1,void 0,this)});hu.displayName="ToolbarSeparator";var Pu=bi(({className:e,...t},r)=>{return Ti("div",{ref:r,className:i("flex-1",e),...t},void 0,!1,void 0,this)});Pu.displayName="ToolbarSpacer";import*as nt from"@radix-ui/react-tooltip";import{cva as Xb}from"class-variance-authority";import{createContext as Zb,forwardRef as xu,useContext as Cu}from"react";import{jsxDEV as ho}from"react/jsx-dev-runtime";var qb=nt.Provider,Fa=Zb(!1),zu=({persistOnClick:e=!1,children:t,...r})=>ho(Fa.Provider,{value:e,children:ho(nt.Root,{...r,children:t},void 0,!1,void 0,this)},void 0,!1,void 0,this);zu.displayName="Tooltip";var Su=xu(({onClick:e,onPointerDown:t,...r},o)=>{let a=Cu(Fa);return ho(nt.Trigger,{ref:o,onClick:a?(n)=>{n.preventDefault(),e?.(n)}:e,onPointerDown:a?(n)=>{n.preventDefault(),t?.(n)}:t,...r},void 0,!1,void 0,this)});Su.displayName="TooltipTrigger";var Or={sm:"sm",md:"md",lg:"lg"},Nu=Xb("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:{[Or.sm]:"px-2 py-1 text-[10px]",[Or.md]:"px-3 py-1.5 text-xs",[Or.lg]:"px-4 py-2 text-sm"}},defaultVariants:{size:Or.md}}),wu=xu(({className:e,sideOffset:t=4,onPointerDownOutside:r,size:o=Or.md,...a},n)=>{let s=Cu(Fa),l=c(o);return ho(nt.Portal,{children:ho(nt.Content,{ref:n,sideOffset:t,className:i(Nu({size:l}),e),onPointerDownOutside:s?(m)=>{m.preventDefault(),r?.(m)}:r,...a},void 0,!1,void 0,this)},void 0,!1,void 0,this)});wu.displayName="TooltipContent";import{createContext as Jb,useCallback as rr,useContext as Qb,useEffect as xi,useLayoutEffect as Eb,useMemo as hi,useRef as Po,useState as Ru}from"react";import{jsxDEV as jb}from"react/jsx-dev-runtime";var Mu=typeof window<"u"?Eb:xi,_a=Jb(null);function Pi(e,t){return e.theme===t.theme&&e.colorScheme===t.colorScheme}var or=({children:e,value:t,initialState:r,onChange:o,onStateChange:a,transformState:n,readState:s,writeState:l,syncWithSystem:m=!0,defaultTheme:d,defaultColorScheme:f,themes:u,attribute:T,colorSchemeAttribute:p,darkClassName:y,storage:S})=>{let P=hi(()=>_r({defaultTheme:d,defaultColorScheme:f,themes:u,attribute:T,colorSchemeAttribute:p,darkClassName:y,storage:S}),[d,f,u,T,p,y,S]),[w,C]=Ru(()=>st(r,P)),[v,z]=Ru(Si),h=hi(()=>t?st(t,P):null,[t,P])??w,L=hi(()=>({...h,resolvedColorScheme:Ba(h.colorScheme,v)}),[h,v]),A=t!==void 0,F=Po(h);F.current=h;let Z=Po(!1),B=Po(!1),W=Po(h),N=Po(null),I=rr((H)=>{return Ci(H)},[]),x=rr((H,E)=>{zi(H,E)},[]),D=s??I,Q=l??x;xi(()=>{if(!m||typeof window>"u"||typeof window.matchMedia!=="function")return;let H=window.matchMedia("(prefers-color-scheme: dark)"),E=()=>{z(H.matches?lt.dark:lt.light)};return E(),H.addEventListener("change",E),()=>H.removeEventListener("change",E)},[m]),xi(()=>{if(A)return;C((H)=>{let E=st(H,P);return Pi(H,E)?H:E})},[P,A]),Mu(()=>{if(A||Z.current)return;Z.current=!0;let H=D(P);if(!H)return;let E=F.current,$=st(H,P),M={reason:"hydrate",previousState:E},q=n?st(n($,M),P):$;if(Pi(E,q))return;N.current=M,C(q),o?.(q,M),a?.(q,M)},[P,A,o,a,D,n]),Mu(()=>{if(typeof document>"u")return;Oa(document.documentElement,L,P)},[P,L]),xi(()=>{if(typeof window>"u")return;if(!B.current){B.current=!0,W.current=h;return}let H=W.current;if(Pi(H,h))return;let E=N.current??{reason:"set-state",previousState:H};N.current=null,Q(h,P,E),W.current=h},[P,h,Q]);let R=rr((H,E)=>{let $=F.current,M=typeof H==="function"?H($):H,q=st({theme:M.theme??$.theme,colorScheme:M.colorScheme??$.colorScheme},P),ee={reason:E,previousState:$},fe=n?st(n(q,ee),P):q;if(Pi($,fe))return;if(N.current=ee,!A)C(fe);o?.(fe,ee),a?.(fe,ee)},[P,A,o,a,n]),U=rr((H)=>{R(H,"set-state")},[R]),g=rr((H)=>{R({theme:H},"set-theme")},[R]),b=rr((H)=>{R({colorScheme:H},"set-color-scheme")},[R]),k=rr(()=>{let H=L.resolvedColorScheme===lt.dark?lt.light:lt.dark;R({colorScheme:H},"toggle-color-scheme")},[L.resolvedColorScheme,R]),le=hi(()=>({theme:h.theme,colorScheme:h.colorScheme,resolvedColorScheme:L.resolvedColorScheme,state:h,resolvedState:L,contract:P,themes:P.themes,setTheme:g,setColorScheme:b,setState:U,toggleColorScheme:k}),[h,L,P,g,b,U,k]);return jb(_a.Provider,{value:le,children:e},void 0,!1,void 0,this)};or.displayName="ThemeProvider";var Ni=()=>{let e=Qb(_a);if(!e)throw Error("useTheme must be used within a ThemeProvider");return e};import{jsxDEV as wi}from"react/jsx-dev-runtime";function Mi(e){return typeof e==="object"&&e!==null}function gt(e){return typeof e==="string"&&e.trim().length>0}function Lu(e){if(!Mi(e))return!1;return Object.values(e).every(gt)}function ku(e){if(!Mi(e))return!1;if(!Lu(e.light))return!1;if(e.dark===void 0)return!0;return Lu(e.dark)}function Au(e){return Mi(e)&&gt(e.cssText)}function eT(e){return Mi(e)&&gt(e.theme)}function Ga(e){return Error(`Invalid theme registry definition: ${e}`)}function Hu(e){let t=new Set,r=[];for(let o of e){if(!gt(o)||t.has(o))continue;t.add(o),r.push(o)}return r}function tT(e){return e.filter(gt).join(`
5
+
6
+ `)}function rT(e){let t=[],r=[],o=[];for(let[a,n]of Object.entries(e)){if(!gt(a))continue;if(t.push(a),gt(n)){o.push(n);continue}if(Au(n)){o.push(n.cssText);continue}if(ku(n)){r.push({theme:a,light:n.light,dark:n.dark});continue}throw Ga(`record key "${a}" has unsupported value shape`)}return{themeNames:t,tokenDefinitions:r,cssBlocks:o}}function oT(e){let t=[],r=[],o=[];for(let a of e){if(gt(a)){t.push(a);continue}if(!eT(a))throw Ga("array entry must be a theme name or an object with `theme`");let n=a.theme;if(t.push(n),Au(a)){o.push(a.cssText);continue}if(ku(a)){r.push({theme:n,light:a.light,dark:a.dark});continue}throw Ga(`array entry "${n}" has unsupported value shape`)}return{themeNames:t,tokenDefinitions:r,cssBlocks:o}}function iT(e){if(Array.isArray(e))return oT(e);return rT(e)}function Iu(e){return e}function Wa(e){let{themes:t,cssText:r,...o}=e,a=iT(t),n=Hu(a.themeNames),s=_r({...o,themes:n}),l=Ri({themes:a.tokenDefinitions,attribute:s.attribute,darkClassName:s.darkClassName}),m=tT([l,...a.cssBlocks,r??""]),d=Hu(s.themes);if(d.length===0)d.push(s.defaultTheme);return{defaultTheme:s.defaultTheme,themes:d,cssText:m,contract:s}}function Li({registry:e,children:t,...r}){return wi(or,{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)}Li.displayName="ThemeRegistryProvider";function Hi({registry:e,id:t,nonce:r,media:o}){if(!gt(e.cssText))return null;return wi("style",{id:t,nonce:r,media:o,children:e.cssText},void 0,!1,void 0,this)}Hi.displayName="ThemeStyles";function Vu(e){let t=Wa(e),{themes:r,cssText:o,...a}=e;return{registry:t,provider:({children:m,...d})=>{return wi(Li,{registry:t,...a,...d,children:m},void 0,!1,void 0,this)},styles:(m={})=>{return wi(Hi,{registry:t,...m},void 0,!1,void 0,this)},useTheme:()=>{return Ni()}}}import{jsxDEV as Qu}from"react/jsx-dev-runtime";function Eu({children:e,density:t=xo,defaultTheme:r="ghostly-solutions",defaultColorScheme:o=lt.system,...a}){return Qu(or,{defaultTheme:r,defaultColorScheme:o,...a,children:Qu(Co,{density:t,children:e},void 0,!1,void 0,this)},void 0,!1,void 0,this)}Eu.displayName="UIProvider";import*as Vt from"react";var aT=()=>{};function nT({prop:e,defaultProp:t,onChange:r=aT}){let[o,a]=sT({defaultProp:t,onChange:r}),n=e!==void 0,s=n?e:o,l=Vt.useCallback((m)=>{if(n){let f=typeof m==="function"?m(e):m;if(f!==e)r(f)}else a(m)},[n,e,a,r]);return[s,l]}function sT({defaultProp:e,onChange:t}){let r=Vt.useState(e),[o]=r,a=Vt.useRef(o),n=t;return Vt.useEffect(()=>{if(a.current!==o)n?.(o),a.current=o},[o,n]),r}export{zi as writeThemeStateToBrowserStorage,ka as useToast,Ni as useTheme,Er as usePlatform,gv as useOverlay,Pa as useHotkey,qr as useFormField,c as useDensitySize,ef as useDensity,nT as useControllableState,Qr as useComposedRefs,cg as useCommandShortcut,Yi as useCommand,Nu as tooltipContentVariants,yu as toolbarVariants,bu as toolbarGroupVariants,yi as toggleVariants,pu as toggleGroupVariants,wa as toastVariants,Ra as toastActionVariants,ru as toast,Dc as timelineVariants,Gc as timelineTitleVariants,Uc as timelineTimeVariants,Fc as timelineItemVariants,Oc as timelineDotVariants,Wc as timelineDescriptionVariants,_c as timelineContentVariants,Bc as timelineConnectorVariants,Ic as textareaVariants,Rc as tabsTriggerVariants,wc as tabsListVariants,Mc as tabsContentVariants,dc as tableVariants,fc as tableRowVariants,pc as tableHeaderVariants,gc as tableHeadVariants,uc as tableFooterVariants,mc as tableContainerVariants,yc as tableCellVariants,vc as tableCaptionVariants,cc as tableBodyVariants,nc as switchVariants,Kp as stepperVariants,Yp as stepVariants,Jp as stepTitleVariants,Xp as stepIndicatorVariants,Qp as stepDescriptionVariants,qp as stepContentVariants,Zp as stepConnectorVariants,Up as statCardVariants,si as spotlightStatusVariants,li as spotlightStatusTitleVariants,Gp as spotlightStatusDescriptionVariants,_p as spotlightShortcutVariants,Ap as spotlightResultsVariants,Mp as spotlightPanelVariants,Rp as spotlightOverlayVariants,Vp as spotlightOptionVariants,Bp as spotlightOptionTitleVariants,Dp as spotlightOptionIconVariants,Op as spotlightOptionDescriptionVariants,Fp as spotlightOptionContentVariants,ni as spotlightKbdVariants,Hp as spotlightInputVariants,kp as spotlightIconVariants,Lp as spotlightHeaderVariants,Ip as spotlightGroupLabelVariants,Pp as sliderVariants,xp as sliderTrackVariants,zp as sliderThumbVariants,Cp as sliderRangeVariants,fp as skeletonVariants,gp as skeletonTextVariants,vp as skeletonButtonVariants,yp as skeletonAvatarVariants,rd as sheetOverlayVariants,od as sheetContentVariants,$u as serializeThemeState,cp as separatorVariants,ap as selectTriggerVariants,np as selectContentVariants,qd as segmentedControlVariants,Qd as segmentedControlLabelVariants,Jd as segmentedControlItemVariants,Wd as scrollBarVariants,Ud as scrollBarThumbVariants,Gd as scrollAreaVariants,Zu as resolveThemeState,Id as resizablePanelVariants,Ad as resizablePanelGroupVariants,Vd as resizableHandleVariants,Dd as resizableHandleIconVariants,Yu as readThemeStateFromCookieHeader,Ci as readThemeStateFromBrowserStorage,Ld as radioItemVariants,Md as radioGroupVariants,zd as progressVariants,Sd as progressIndicatorVariants,Nr as popoverContentVariants,Ku as parseThemeState,Ta as parseHotkey,cd as paginationVariants,Wo as paginationLinkVariants,fd as paginationItemVariants,gd as paginationEllipsisVariants,ud as paginationContentVariants,Jm as otpSlotVariants,jm as otpSeparatorVariants,Em as otpPlaceholderVariants,Qm as otpInputVariants,qm as otpGroupVariants,Zm as otpContainerVariants,st as normalizeThemeState,Bm as navigationMenuViewportVariants,Im as navigationMenuVariants,Dm as navigationMenuTriggerVariants,Vm as navigationMenuListVariants,Jy as navigationMenuLinkVariants,Om as navigationMenuIndicatorVariants,Fm as navigationMenuContentVariants,Hm as multiselectTriggerVariants,ha as matchHotkey,Nm as labelVariants,Cm as kbdVariants,ur as isSameDay,Pm as inputVariants,bm as hoverCardContentVariants,qu as getThemeRootProps,Si as getSystemColorScheme,pT as formatHotkeyTokens,jr as formatHotkey,pm as formFieldVariants,rm as fileUploadVariants,ra as fileUploadTextVariants,im as fileUploadListVariants,am as fileUploadItemVariants,sm as fileUploadItemSizeVariants,lm as fileUploadItemRemoveVariants,nm as fileUploadItemNameVariants,om as fileUploadIconVariants,Zl as errorBoundaryVariants,Jl as errorBoundaryTitleVariants,ql as errorBoundaryIconVariants,jl as errorBoundaryDetailsVariants,Ql as errorBoundaryDescriptionVariants,El as errorBoundaryActionsVariants,Gl as emptyStateVariants,Ul as emptyStateTitleVariants,Wl as emptyStateIconVariants,$l as emptyStateDescriptionVariants,Kl as emptyStateActionsVariants,Ml as dropdownMenuShortcutVariants,Rl as dropdownMenuSeparatorVariants,Nl as dropdownMenuRadioItemVariants,wl as dropdownMenuLabelVariants,ta as dropdownMenuItemVariants,ea as dropdownMenuContentVariants,Sl as dropdownMenuCheckboxItemVariants,gl as drawerOverlayVariants,vl as drawerHandleVariants,yl as drawerContentVariants,dl as dialogContentVariants,oa as detectPlatform,Iu as defineThemes,Yw as cva,Ri as createThemesCss,Vu as createThemeSystem,Xu as createThemeSetCookieHeader,Wa as createThemeRegistry,Ju as createThemeCss,_r as createThemeContract,dT as createOptionalContext,mT as createContext,Es as contextMenuShortcutVariants,Qs as contextMenuSeparatorVariants,qs as contextMenuRadioItemVariants,Js as contextMenuLabelVariants,qi as contextMenuItemVariants,Zi as contextMenuContentVariants,Zs as contextMenuCheckboxItemVariants,lT as composeRefs,Ds as commandShortcutVariants,Vs as commandSeparatorVariants,Rs as commandOverlayVariants,Fs as commandLoadingVariants,Ls as commandListVariants,Is as commandItemVariants,Ms as commandInputVariants,ks as commandGroupVariants,As as commandGroupHeadingVariants,Hs as commandEmptyVariants,ws as commandDialogVariants,zs as collapsibleContentVariants,gs as codeBlockVariants,hs as codeBlockPreVariants,Ps as codeBlockLineVariants,xs as codeBlockLineNumberVariants,vs as codeBlockLanguageVariants,ys as codeBlockHeaderVariants,bs as codeBlockCopyVariants,Ts as codeBlockContentVariants,i as cn,cs as checkboxVariants,is as cardVariants,ts as calendarWeekdayVariants,Qn as calendarVariants,jn as calendarTitleVariants,$i as calendarNavButtonVariants,En as calendarHeaderVariants,es as calendarGridVariants,rs as calendarDayVariants,Wr as buttonVariants,sn as buttonIconVariants,Yn as buttonGroupVariants,ln as buttonBadgeVariants,Fn as breadcrumbSeparatorVariants,Dn as breadcrumbPageVariants,An as breadcrumbListVariants,Vn as breadcrumbLinkVariants,In as breadcrumbItemVariants,Bn as breadcrumbEllipsisVariants,Rn as badgeVariants,Sn as avatarVariants,ja as alertVariants,en as alertTitleVariants,fn as alertDialogOverlayVariants,gn as alertDialogContentVariants,tn as alertDescriptionVariants,Xa as accordionTriggerVariants,Ya as accordionItemVariants,Za as accordionContentVariants,mf as XCircleIcon,mt as Variant,Eu as UIProvider,Su as TooltipTrigger,Or as TooltipSize,qb as TooltipProvider,wu as TooltipContent,zu as Tooltip,Pu as ToolbarSpacer,Ee as ToolbarSize,hu as ToolbarSeparator,Tu as ToolbarGroup,vu as Toolbar,fu as ToggleGroupItem,uu as ToggleGroup,mu as Toggle,su as Toaster,Ge as ToastSize,qc as TimelineTitle,Qc as TimelineTime,Kc as TimelineItem,Xc as TimelineDot,Jc as TimelineDescription,Zc as TimelineContent,Yc as TimelineConnector,$c as Timeline,Hi as ThemeStyles,Li as ThemeRegistryProvider,or as ThemeProvider,Vc as Textarea,kc as TabsTrigger,Hc as TabsList,Ac as TabsContent,gb as Tabs,xe as TableSize,xc as TableRow,Tc as TableHeader,Cc as TableHead,Pc as TableFooter,zc as TableCell,Sc as TableCaption,hc as TableBody,bc as Table,Uu as THEME_COOKIE_NAME,Fu as THEME_COLOR_SCHEME_ATTR,Du as THEME_ATTR,Dr as SwitchStatus,Ne as SwitchSize,sc as Switch,Ep as Stepper,oc as StepTitle,ec as StepIndicator,ic as StepDescription,rc as StepContent,tc as StepConnector,jp as Step,Qt as StatCardTrend,_e as StatCardSize,$p as StatCard,Vr as SpotlightStatus,Jt as SpotlightSize,Wp as Spotlight,ar as SpinnerSize,nr as Spinner,Sp as Slider,bp as SkeletonText,ue as SkeletonSize,hp as SkeletonButton,Tp as SkeletonAvatar,fo as Skeleton,Le as Size,sv as SheetTrigger,sd as SheetTitle,oe as SheetSize,id as SheetPortal,sa as SheetOverlay,ad as SheetHeader,nd as SheetFooter,ld as SheetDescription,_o as SheetContent,lv as SheetClose,na as Sheet,uo as SeparatorOrientation,up as Separator,Gv as SelectValue,sp as SelectTrigger,Ar as SelectStatus,te as SelectSize,pp as SelectSeparator,mp as SelectLabel,dp as SelectItem,_v as SelectGroup,po as SelectContentWidthMode,Dv as SelectContentAlign,lp as SelectContent,Ov as Select,Me as SegmentedControlSize,ep as SegmentedControlLabelItem,jd as SegmentedControlItem,Ed as SegmentedControl,pa as ScrollBar,$d as ScrollArea,Ou as STORAGE_VERSION,Gu as STORAGE_THEME_STATE_KEY,_u as STORAGE_PREFIX,Wu as STORAGE_DENSITY_KEY,Fd as ResizablePanelGroup,Bd as ResizablePanel,Od as ResizableHandle,Lr as RadioStatus,Je as RadioSize,kd as RadioGroupItem,Hd as RadioGroup,Nd as Progress,Iy as PopoverTrigger,Sr as PopoverSize,Mm as PopoverContent,Dy as PopoverClose,Vy as PopoverAnchor,Ay as Popover,Oe as PaginationSize,hd as PaginationPrevious,Pd as PaginationNext,Td as PaginationLink,bd as PaginationItem,xd as PaginationEllipsis,vd as PaginationContent,yd as Pagination,pd as OverlayProvider,ed as OTPInput,ia as NavigationMenuViewport,Wm as NavigationMenuTrigger,Ze as NavigationMenuSize,Gm as NavigationMenuList,jy as NavigationMenuLink,Ey as NavigationMenuItem,$m as NavigationMenuIndicator,Um as NavigationMenuContent,_m as NavigationMenu,ce as MultiselectSize,km as Multiselect,Ly as Loader,zr as LabelSize,wm as Label,Cr as KbdSize,zm as Kbd,xm as Input,lf as InfoIcon,sr as IconSize,py as HoverCardTrigger,xr as HoverCardSize,Tm as HoverCardContent,dy as HoverCard,Kr as GroupOrientation,Fe as FormFieldSize,um as FormFieldLabel,ym as FormFieldError,gm as FormFieldDescription,vm as FormFieldControl,cm as FormField,mm as FileUpload,em as ErrorBoundary,Yl as EmptyState,Kg as DropdownMenuTrigger,kl as DropdownMenuSubTrigger,Al as DropdownMenuSubContent,Zg as DropdownMenuSub,_l as DropdownMenuShortcut,Ol as DropdownMenuSeparator,Fl as DropdownMenuRadioItem,qg as DropdownMenuRadioGroup,Xg as DropdownMenuPortal,Bl as DropdownMenuLabel,Do as DropdownMenuItemVariant,Vl as DropdownMenuItem,Yg as DropdownMenuGroup,Il as DropdownMenuContent,Dl as DropdownMenuCheckboxItem,Hl as DropdownMenu,Ag as DrawerTrigger,xl as DrawerTitle,De as DrawerSize,bl as DrawerPortal,ji as DrawerOverlay,hl as DrawerHeader,Pl as DrawerFooter,Cl as DrawerDescription,Tl as DrawerContent,Ig as DrawerClose,kg as Drawer,wg as DialogTrigger,ul as DialogTitle,zt as DialogSize,ml as DialogPortal,Qi as DialogOverlay,pl as DialogHeader,cl as DialogFooter,fl as DialogDescription,Io as DialogContent,Rg as DialogClose,Ji as Dialog,Co as DensityProvider,xo as DENSITY_DEFAULT,Bu as DARK_CLASS,hg as ContextMenuTrigger,el as ContextMenuSubTrigger,tl as ContextMenuSubContent,Cg as ContextMenuSub,ll as ContextMenuShortcut,sl as ContextMenuSeparator,al as ContextMenuRadioItem,zg as ContextMenuRadioGroup,xg as ContextMenuPortal,nl as ContextMenuLabel,ko as ContextMenuItemVariant,ol as ContextMenuItem,Pg as ContextMenuGroup,rl as ContextMenuContent,il as ContextMenuCheckboxItem,Tg as ContextMenu,Ys as CommandShortcut,Ks as CommandSeparator,Xs as CommandLoading,Gs as CommandList,Ho as CommandItemVariant,$s as CommandItem,_s as CommandInput,Us as CommandGroup,Ws as CommandEmpty,Os as CommandDialog,Xi as Command,lt as ColorScheme,sg as CollapsibleTrigger,Ss as CollapsibleContent,ng as Collapsible,Cs as CodeBlock,vr as CheckboxStatus,$e as CheckboxSize,us as Checkbox,sf as CheckCircleIcon,ms as CardTitle,ns as CardHeader,ls as CardFooter,ds as CardDescription,ss as CardContent,as as Card,os as Calendar,dn as ButtonLabel,mn as ButtonIcon,Xn as ButtonGroup,pn as ButtonBadge,cn as Button,de as BreadcrumbSize,$n as BreadcrumbSeparator,Un as BreadcrumbPage,_n as BreadcrumbList,Wn as BreadcrumbLink,Gn as BreadcrumbItem,Kn as BreadcrumbEllipsis,On as Breadcrumb,ve as BadgeVariant,vt as BadgeTone,Tt as BadgeSize,kn as BadgeGroup,Mn as Badge,Ie as AvatarSize,Nn as AvatarImage,wn as AvatarGroup,Wi as AvatarFallback,Gi as Avatar,hf as AspectRatio,nf as AlertTriangleIcon,on as AlertTitle,Tf as AlertDialogTrigger,hn as AlertDialogTitle,bt as AlertDialogSize,yn as AlertDialogPortal,_i as AlertDialogOverlay,bn as AlertDialogHeader,Tn as AlertDialogFooter,Pn as AlertDialogDescription,vn as AlertDialogContent,Cn as AlertDialogCancel,xn as AlertDialogAction,bf as AlertDialog,an as AlertDescription,rn as Alert,Qa as AccordionTrigger,Ce as AccordionSize,Ja as AccordionItem,Ea as AccordionContent,qa as Accordion};