@ghostly-solutions/ui 0.3.1 → 0.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-rd0k3j0c.js → chunk-5pcmmk0e.js} +2 -2
- package/dist/components/accordion/accordion.d.ts +2 -2
- package/dist/components/alert/alert.d.ts +1 -1
- package/dist/components/alert-dialog/alert-dialog.d.ts +1 -1
- package/dist/components/avatar/avatar.d.ts +1 -1
- package/dist/components/badge/badge.d.ts +2 -2
- package/dist/components/breadcrumb/breadcrumb.d.ts +3 -3
- package/dist/components/button/button.d.ts +3 -3
- package/dist/components/calendar/calendar.d.ts +8 -8
- package/dist/components/checkbox/checkbox.d.ts +1 -1
- package/dist/components/code-block/code-block.d.ts +8 -8
- package/dist/components/command/command.d.ts +1 -1
- package/dist/components/context-menu/context-menu.d.ts +5 -5
- package/dist/components/dialog/dialog.d.ts +1 -1
- package/dist/components/dropdown-menu/dropdown-menu.d.ts +5 -5
- package/dist/components/empty-state/empty-state.d.ts +4 -4
- package/dist/components/error-boundary/error-boundary.d.ts +7 -7
- package/dist/components/file-upload/file-upload.d.ts +5 -5
- package/dist/components/form-field/form-field.d.ts +1 -1
- package/dist/components/hover-card/hover-card.d.ts +1 -1
- package/dist/components/kbd/kbd.d.ts +1 -1
- package/dist/components/label/label.d.ts +1 -1
- package/dist/components/loader/index.d.ts +2 -0
- package/dist/components/loader/index.d.ts.map +1 -0
- package/dist/components/loader/loader.d.ts +5 -0
- package/dist/components/loader/loader.d.ts.map +1 -0
- package/dist/components/multiselect/multiselect.d.ts +1 -1
- package/dist/components/navbar/navbar.d.ts +10 -10
- package/dist/components/navigation-menu/navigation-menu.d.ts +2 -2
- package/dist/components/otp-input/otp-input.d.ts +6 -6
- package/dist/components/pagination/pagination.d.ts +2 -2
- package/dist/components/popover/popover.d.ts +1 -1
- package/dist/components/progress/progress.d.ts +1 -1
- package/dist/components/radio/radio.d.ts +1 -1
- package/dist/components/segmented-control/segmented-control.d.ts +3 -3
- package/dist/components/sidebar/sidebar.d.ts +12 -12
- package/dist/components/skeleton/skeleton.d.ts +3 -3
- package/dist/components/slider/slider.d.ts +1 -1
- package/dist/components/spotlight/spotlight.d.ts +1 -1
- package/dist/components/stat-card/stat-card.d.ts +1 -1
- package/dist/components/stepper/stepper.d.ts +4 -4
- package/dist/components/switch/switch.d.ts +1 -1
- package/dist/components/table/table.d.ts +3 -3
- package/dist/components/tabs/tabs.d.ts +2 -2
- package/dist/components/textarea/textarea.d.ts +1 -1
- package/dist/components/theme-script/index.d.ts +2 -0
- package/dist/components/theme-script/index.d.ts.map +1 -0
- package/dist/components/theme-script/theme-script.d.ts +17 -0
- package/dist/components/theme-script/theme-script.d.ts.map +1 -0
- package/dist/components/timeline/timeline.d.ts +7 -7
- package/dist/components/toast/toast.d.ts +2 -2
- package/dist/components/toggle/toggle.d.ts +1 -1
- package/dist/components/toolbar/toolbar.d.ts +2 -2
- package/dist/components/tooltip/tooltip.d.ts +1 -1
- package/dist/components/ui-provider/index.d.ts +2 -0
- package/dist/components/ui-provider/index.d.ts.map +1 -0
- package/dist/components/ui-provider/ui-provider.d.ts +18 -0
- package/dist/components/ui-provider/ui-provider.d.ts.map +1 -0
- package/dist/index.d.ts +4 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -3
- package/dist/lib/density.d.ts +6 -8
- package/dist/lib/density.d.ts.map +1 -1
- package/dist/lib/index.d.ts +1 -1
- package/dist/lib/index.d.ts.map +1 -1
- package/dist/lib/theme-constants.d.ts +4 -1
- package/dist/lib/theme-constants.d.ts.map +1 -1
- package/dist/server.d.ts +2 -1
- package/dist/server.d.ts.map +1 -1
- package/dist/server.js +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import{a as o,b as Ny,c as Kr,d as Ly,e as Ry,f as Oa,g as ri,h as oi,i as Xr,j as Hy,k as jt,l as gu,m as go,n as vu,o as bu}from"./chunk-rd0k3j0c.js";import{cva as Yw}from"class-variance-authority";import*as je from"@radix-ui/react-accordion";import{cva as va}from"class-variance-authority";import{ChevronDown as wu}from"lucide-react";import{createContext as Mu,forwardRef as bo,useContext as Mi}from"react";import{createContext as xu,useContext as zi}from"react";import{jsxDEV as zu}from"react/jsx-dev-runtime";var vo={default:"default",compact:"compact"},Cu={[vo.default]:{},[vo.compact]:{xl:"lg",lg:"md",md:"sm",sm:"sm"}},ga=xu(vo.default),wi=({density:e,children:t})=>{return zu(ga.Provider,{value:e,children:t},void 0,!1,void 0,this)};wi.displayName="DensityProvider";var Su=()=>{return zi(ga)};function u(e){let t=zi(ga);if(e===void 0)return;return Cu[t][e]??e}import{jsxDEV as ut}from"react/jsx-dev-runtime";var Te={sm:"sm",md:"md",lg:"lg"},ba=Mu(Te.md),Ni=va("border-b border-border"),Li=va("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}}),Ri=va("gs-accordion-content overflow-hidden",{variants:{size:{[Te.sm]:"text-xs",[Te.md]:"text-sm",[Te.lg]:"text-base"}},defaultVariants:{size:Te.md}}),Nu={[Te.sm]:"pt-0 pb-3",[Te.md]:"pt-0 pb-4",[Te.lg]:"pt-0 pb-5"},Hi=bo(({size:e=Te.md,...t},r)=>{let a=u(e)??Te.md;return ut(ba.Provider,{value:a,children:ut(je.Root,{ref:r,...t},void 0,!1,void 0,this)},void 0,!1,void 0,this)});Hi.displayName="Accordion";var ki=bo(({className:e,...t},r)=>ut(je.Item,{ref:r,className:o(Ni(),e),...t},void 0,!1,void 0,this));ki.displayName="AccordionItem";var Ai=bo(({className:e,children:t,...r},a)=>{let i=Mi(ba);return ut(je.Header,{className:"flex",children:ut(je.Trigger,{ref:a,className:o(Li({size:i}),e),...r,children:[t,ut(wu,{className:"shrink-0 transition-transform"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)});Ai.displayName="AccordionTrigger";var Ii=bo(({className:e,children:t,...r},a)=>{let i=Mi(ba);return ut(je.Content,{ref:a,className:o(Ri({size:i}),e),...r,children:ut("div",{className:Nu[i],children:t},void 0,!1,void 0,this)},void 0,!1,void 0,this)});Ii.displayName="AccordionContent";import{cva as ya}from"class-variance-authority";import{TriangleAlert as Lu,CircleCheck as Ru,Info as Hu,CircleAlert as ku}from"lucide-react";import{forwardRef as Pa}from"react";import{jsxDEV as ha}from"react/jsx-dev-runtime";var er={default:"default",success:"success",warning:"warning",error:"error",info:"info"},Vr={sm:"sm",md:"md",lg:"lg",xl:"xl"},Vi=ya("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:{[er.default]:"bg-background text-foreground",[er.success]:"border-success/50 text-success [&>svg]:text-success bg-success/10",[er.warning]:"border-warning/50 text-warning [&>svg]:text-warning bg-warning/10",[er.error]:"border-destructive/50 text-destructive [&>svg]:text-destructive bg-destructive/10",[er.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:er.default,size:Vr.md}}),Bi=ya("mb-1 font-medium leading-none tracking-tight"),Di=ya("text-sm [&_p]:leading-relaxed"),Fi=Pa(({className:e,variant:t,size:r,...a},i)=>{let n=u(r);return ha("div",{ref:i,role:"alert",className:o(Vi({variant:t,size:n}),e),...a},void 0,!1,void 0,this)});Fi.displayName="Alert";var _i=Pa(({className:e,...t},r)=>ha("h5",{ref:r,className:o(Bi(),e),...t},void 0,!1,void 0,this));_i.displayName="AlertTitle";var Oi=Pa(({className:e,...t},r)=>ha("div",{ref:r,className:o(Di(),e),...t},void 0,!1,void 0,this));Oi.displayName="AlertDescription";import*as ue from"@radix-ui/react-alert-dialog";import{cva as qi}from"class-variance-authority";import{forwardRef as or}from"react";import{Slot as Gi}from"@radix-ui/react-slot";import{cva as xa}from"class-variance-authority";import{forwardRef as Po}from"react";import{forwardRef as Au}from"react";import{jsxDEV as Ta}from"react/jsx-dev-runtime";var tr={sm:"sm",md:"md",lg:"lg",xl:"xl"},Iu={[tr.sm]:"h-4 w-4",[tr.md]:"h-5 w-5",[tr.lg]:"h-6 w-6",[tr.xl]:"h-8 w-8"},yo=Au(({className:e,size:t=tr.md,label:r="Loading",...a},i)=>{let n=u(t);return Ta("span",{ref:i,className:o("inline-flex items-center justify-center",e),role:"status","aria-label":r,...a,children:[Ta("span",{className:o("animate-spin rounded-full border-2 border-current border-r-transparent",Iu[n])},void 0,!1,void 0,this),Ta("span",{className:"sr-only",children:r},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});yo.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"},Vu="Loading",Bu="button",Br=xa("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}}),Wi=xa("shrink-0",{variants:{size:{[rr.sm]:"size-3",[rr.md]:"size-4",[rr.lg]:"size-4.5"}},defaultVariants:{size:rr.md}}),$i=xa("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 Du(e){return e===Le.icon||e===Le.iconSm||e===Le.iconLg}function Fu(e,t,r){return e&&t?-1:r}function _u(e){return e["aria-label"]??e["aria-labelledby"]??e.title}function Ou(){if(typeof process>"u")return!0;return!0}var Ui=Po(({className:e,size:t=rr.md,...r},a)=>lt(Gi,{ref:a,className:o(Wi({size:t}),e),...r},void 0,!1,void 0,this));Ui.displayName="ButtonIcon";var Ki=Po(({className:e,...t},r)=>lt("span",{ref:r,className:o("truncate",e),...t},void 0,!1,void 0,this));Ki.displayName="ButtonLabel";var Yi=Po(({className:e,tone:t=ft.default,...r},a)=>lt("span",{ref:a,className:o($i({tone:t}),e),...r},void 0,!1,void 0,this));Yi.displayName="ButtonBadge";var Xi=Po(({className:e,variant:t=st.primary,size:r=Le.md,asChild:a=!1,loading:i=!1,loadingText:n=Vu,fullWidth:s=!1,leadingIcon:l,trailingIcon:m,disabled:d,children:f,type:c,tabIndex:P,onClick:p,...v},S)=>{let N=u(r),z=N??r,T=_u(v);if(Ou()&&Du(z)&&!T)throw Error("Icon-size Button requires aria-label, aria-labelledby, or title.");let b=Boolean(d||i),x=o(Br({variant:t,size:N}),s&&"w-full",e);if(a)return lt(Gi,{ref:S,className:x,"aria-disabled":b||void 0,"aria-busy":i||void 0,tabIndex:Fu(!0,b,P),onClick:b?(M)=>{M.preventDefault()}:p,...v,children:f},void 0,!1,void 0,this);return lt("button",{ref:S,className:x,disabled:b,"aria-disabled":b,"aria-busy":i,tabIndex:P,type:c??Bu,onClick:i?void 0:p,...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(yo,{size:"sm"},void 0,!1,void 0,this)},void 0,!1,void 0,this),i&<("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)});Xi.displayName="Button";import{jsxDEV as et}from"react/jsx-dev-runtime";var gt={sm:"sm",md:"md",lg:"lg",xl:"xl",full:"full"},Zi=qi("gs-dialog-overlay fixed inset-0 z-50 bg-black/50"),Ji=qi("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}}),Gu=ue.Root,Wu=ue.Trigger,Qi=ue.Portal,Ca=or(({className:e,...t},r)=>et(ue.Overlay,{ref:r,className:o(Zi(),e),...t},void 0,!1,void 0,this));Ca.displayName="AlertDialogOverlay";var Ei=or(({className:e,size:t=gt.md,...r},a)=>{let i=u(t);return et(Qi,{children:[et(Ca,{},void 0,!1,void 0,this),et(ue.Content,{ref:a,className:o(Ji({size:i}),e),...r},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});Ei.displayName="AlertDialogContent";var ji=({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);ji.displayName="AlertDialogHeader";var en=({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);en.displayName="AlertDialogFooter";var tn=or(({className:e,...t},r)=>et(ue.Title,{ref:r,className:o("text-lg font-semibold",e),...t},void 0,!1,void 0,this));tn.displayName="AlertDialogTitle";var rn=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));rn.displayName="AlertDialogDescription";var on=or(({className:e,...t},r)=>et(ue.Action,{ref:r,className:o(Br(),e),...t},void 0,!1,void 0,this));on.displayName="AlertDialogAction";var an=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));an.displayName="AlertDialogCancel";import*as nn from"@radix-ui/react-aspect-ratio";var $u=nn.Root;import*as ir from"@radix-ui/react-avatar";import{cva as Uu}from"class-variance-authority";import{forwardRef as ho}from"react";import{jsxDEV as ar}from"react/jsx-dev-runtime";var Ie={sm:"sm",md:"md",lg:"lg",xl:"xl"},sn=Uu("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}}),Sa=ho(({className:e,size:t=Ie.md,...r},a)=>{let i=u(t);return ar(ir.Root,{ref:a,className:o(sn({size:i}),e),...r},void 0,!1,void 0,this)});Sa.displayName="Avatar";var ln=ho(({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));ln.displayName="AvatarImage";var za=ho(({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));za.displayName="AvatarFallback";var Ku={[Ie.sm]:"-space-x-2",[Ie.md]:"-space-x-3",[Ie.lg]:"-space-x-4",[Ie.xl]:"-space-x-5"},mn=ho(({className:e,children:t,max:r,size:a=Ie.md,...i},n)=>{let s=u(a),l=Array.isArray(t)?t:[t],m=r?l.slice(0,r):l,d=r?Math.max(0,l.length-r):0;return ar("div",{ref:n,className:o("flex items-center",Ku[s],e),...i,children:[m,d>0&&ar(Sa,{size:s,className:"border-2 border-background",children:ar(za,{className:"text-xs",children:["+",d]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});mn.displayName="AvatarGroup";import{Slot as Yu}from"@radix-ui/react-slot";import{cva as Xu}from"class-variance-authority";import{X as qu}from"lucide-react";import{forwardRef as Zu}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"},dn=Xu("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}}),pn=Zu(({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:d=!1,...f},c)=>{let P=u(r),p=Boolean(l),v=P===vt.dot,S=(T)=>{T.stopPropagation(),s?.(T)},N=o(dn({variant:t,solid:a,size:P}),p&&"cursor-pointer",i&&"animate-pulse",n&&!v&&"pr-1",e),z=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:S,"aria-label":"Remove",tabIndex:-1,children:Dr(qu,{className:"size-3"},void 0,!1,void 0,this)},void 0,!1,void 0,this);if(d)return Dr(Yu,{ref:c,className:N,onClick:l,...f,children:m},void 0,!1,void 0,this);if(p)return Dr("button",{ref:c,className:N,onClick:l,type:"button",...f,children:[!v&&m,z]},void 0,!0,void 0,this);return Dr("span",{ref:c,className:N,...f,children:[!v&&m,z]},void 0,!0,void 0,this)});pn.displayName="Badge";import{Children as Ju,cloneElement as Qu,forwardRef as Eu,isValidElement as ju,useCallback as cn,useEffect as ef,useLayoutEffect as tf,useRef as rf,useState as of}from"react";import{jsxDEV as un}from"react/jsx-dev-runtime";function af(e){let t=[];return Ju.forEach(e,(r,a)=>{if(!ju(r))return;let i=r.key??a;t.push({key:i,element:r,isLeaving:!1})}),t}function nf(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 sf(e,t,r){if(r.current)return r.current=!1,t;return nf(e,t)}var lf=typeof window<"u"?tf:ef,fn=Eu(({children:e,className:t,onRemove:r,gap:a="sm"},i)=>{let[n,s]=of([]),l=rf(!0);lf(()=>{let c=af(e);s((P)=>sf(P,c,l))},[e]);let m=cn((c)=>{s((P)=>P.filter((p)=>p.key!==c))},[]),d=cn((c)=>{r?.(c)},[r]),f={sm:"gap-1",md:"gap-2",lg:"gap-3"}[a];return un("div",{ref:i,className:o("inline-flex flex-wrap items-center",f,t),children:n.map((c)=>{let P={};if(c.element.props.removable&&r)P.onRemove=()=>{d(c.key)};let p=o("inline-flex transition-all duration-200",c.isLeaving&&"pointer-events-none scale-95 opacity-0");return un("span",{className:p,onTransitionEnd:c.isLeaving?()=>m(c.key):void 0,children:Qu(c.element,P)},c.key,!1,void 0,this)})},void 0,!1,void 0,this)});fn.displayName="BadgeGroup";import{Slot as mf}from"@radix-ui/react-slot";import{cva as nr}from"class-variance-authority";import{ChevronRight as df,MoreHorizontal as pf}from"lucide-react";import{createContext as cf,forwardRef as Fr,useContext as wa}from"react";import{jsxDEV as $e}from"react/jsx-dev-runtime";var le={sm:"sm",md:"md",lg:"lg"},To=cf(le.md),gn=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}}),vn=nr("inline-flex items-center gap-1.5"),bn=nr("gs-interactive hover:text-foreground focus-visible:outline-none focus-visible:text-foreground"),yn=nr("font-normal text-foreground"),Pn=nr("",{variants:{size:{[le.sm]:"[&>svg]:size-3",[le.md]:"[&>svg]:size-3.5",[le.lg]:"[&>svg]:size-4"}},defaultVariants:{size:le.md}}),hn=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}}),Tn=Fr(({size:e=le.md,...t},r)=>{let a=u(e)??le.md;return $e(To.Provider,{value:a,children:$e("nav",{ref:r,"aria-label":"breadcrumb",...t},void 0,!1,void 0,this)},void 0,!1,void 0,this)});Tn.displayName="Breadcrumb";var xn=Fr(({className:e,...t},r)=>{let a=wa(To);return $e("ol",{ref:r,className:o(gn({size:a}),e),...t},void 0,!1,void 0,this)});xn.displayName="BreadcrumbList";var Cn=Fr(({className:e,...t},r)=>$e("li",{ref:r,className:o(vn(),e),...t},void 0,!1,void 0,this));Cn.displayName="BreadcrumbItem";var Sn=Fr(({asChild:e,className:t,...r},a)=>{return $e(e?mf:"a",{ref:a,className:o(bn(),t),...r},void 0,!1,void 0,this)});Sn.displayName="BreadcrumbLink";var zn=Fr(({className:e,...t},r)=>$e("span",{ref:r,role:"link",tabIndex:0,"aria-disabled":"true","aria-current":"page",className:o(yn(),e),...t},void 0,!1,void 0,this));zn.displayName="BreadcrumbPage";var wn=({children:e,className:t,...r})=>{let a=wa(To),i={[le.sm]:"size-3",[le.md]:"size-3.5",[le.lg]:"size-4"};return $e("li",{role:"presentation","aria-hidden":"true",className:o(Pn({size:a}),t),...r,children:e??$e(df,{className:i[a]},void 0,!1,void 0,this)},void 0,!1,void 0,this)};wn.displayName="BreadcrumbSeparator";var Mn=({className:e,...t})=>{let r=wa(To);return $e("span",{role:"presentation","aria-hidden":"true",className:o(hn({size:r}),e),...t,children:[$e(pf,{},void 0,!1,void 0,this),$e("span",{className:"sr-only",children:"More"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)};Mn.displayName="BreadcrumbEllipsis";import{cva as uf}from"class-variance-authority";import{forwardRef as ff}from"react";import{jsxDEV as gf}from"react/jsx-dev-runtime";var _r={horizontal:"horizontal",vertical:"vertical"},Nn=uf("inline-flex items-stretch",{variants:{orientation:{[_r.horizontal]:"flex-row",[_r.vertical]:"flex-col"},attached:{true:"gap-0 [&>*:not(:first-child)]:rounded-l-none [&>*:not(:last-child)]:rounded-r-none",false:"gap-2"}},defaultVariants:{orientation:_r.horizontal,attached:!1}}),Ln=ff(({className:e,orientation:t=_r.horizontal,attached:r=!1,fullWidth:a=!1,...i},n)=>gf("div",{ref:n,className:o(Nn({orientation:t,attached:r}),a&&"w-full",e),...i},void 0,!1,void 0,this));Ln.displayName="ButtonGroup";import{cva as bt}from"class-variance-authority";import{forwardRef as vf,useCallback as sr,useEffect as bf,useMemo as Rn,useState as Hn}from"react";import{jsxDEV as Re}from"react/jsx-dev-runtime";var B={sm:"sm",md:"md",lg:"lg",xl:"xl"},An=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}}),In=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}}),Vn=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}}),Ma=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}}),Bn=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}}),Dn=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}}),Fn=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"}}),yf=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}}),kn=["Su","Mo","Tu","We","Th","Fr","Sa"],Pf=["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()},_n=vf(({className:e,size:t="md",cellSize:r,mode:a="single",value:i,defaultValue:n,onChange:s,rangeValue:l,onRangeChange:m,viewMonth:d,onViewMonthChange:f,minDate:c,maxDate:P,disabledDates:p=[],weekStartsOn:v=1,highlightToday:S=!0,...N},z)=>{let T=u(t)??B.md,b=u(r??T)??T,[x,M]=Hn(i??n??null),[C,L]=Hn(i??n??new Date),R=d??C,_=sr((g)=>{if(f){let y=typeof g==="function"?g(d??C):g;f(y)}else L((y)=>{return typeof g==="function"?g(y):g})},[d,C,f]),G=i!==void 0?i:x,O=c?mt(c):null,U=P?mt(P):null;bf(()=>{if(i!==void 0){if(M(i??null),i&&!d)L(i)}},[i,d]);let w=sr((g,y)=>{return(new Date(g,y,1).getDay()-v+7)%7},[v]),I=Rn(()=>{let g=R.getFullYear(),y=R.getMonth(),H=w(g,y),ce=new Date(g,y+1,0).getDate(),q=[];for(let E=0;E<H;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},[R,w]),h=sr((g)=>{let y=mt(g);if(O&&y<O)return!0;if(U&&y>U)return!0;return p.some((H)=>lr(y,mt(H)))},[O,U,p]),V=sr((g)=>{if(h(g))return"disabled";if(a==="range"&&l){let{from:y,to:H}=l;if(y&&lr(g,y))return"rangeStart";if(H&&lr(g,H))return"rangeEnd";if(y&&H){let ce=mt(g),q=mt(y),Ae=mt(H);if(ce>q&&ce<Ae)return"range"}}if(a==="single"&&G&&lr(g,G))return"selected";if(S&&lr(g,new Date))return"today";return"default"},[G,S,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 H=mt(l.from);if(mt(y)<H)m?.({from:y,to:l.from});else m?.({from:l.from,to:y})}return}if(i===void 0)M(y);s?.(y)},[h,a,s,m,l,i]),k=sr((g)=>{_((y)=>{let H=new Date(y);return H.setMonth(H.getMonth()+g),H})},[_]),Y=Rn(()=>{return[...kn.slice(v),...kn.slice(0,v)]},[v]);return Re("div",{ref:z,className:o(An({size:T}),e),...N,children:[Re("div",{className:o(In({size:T})),children:[Re("button",{type:"button",onClick:()=>k(-1),className:o(Ma({size:T})),"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(Vn({size:T})),children:[Pf[R.getMonth()]," ",R.getFullYear()]},void 0,!0,void 0,this),Re("button",{type:"button",onClick:()=>k(1),className:o(Ma({size:T})),"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(Bn({size:T})),children:[Y.map((g)=>Re("div",{className:o(Dn({size:b})),children:g},g,!1,void 0,this)),I.map((g)=>{if(!g.date)return Re("div",{"aria-hidden":"true",className:o(yf({size:b}))},g.key,!1,void 0,this);let y=g.date,H=V(y);return Re("button",{type:"button",onClick:()=>J(y),disabled:H==="disabled",className:o(Fn({size:b,state:H})),children:y.getDate()},g.key,!1,void 0,this)})]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)});_n.displayName="Calendar";import{Slot as mr}from"@radix-ui/react-slot";import{cva as hf}from"class-variance-authority";import{forwardRef as dr}from"react";import{jsxDEV as pr}from"react/jsx-dev-runtime";var xo={default:"default",muted:"muted",danger:"danger"},On=hf("gs-interactive relative overflow-hidden rounded-[var(--radius)] border bg-card text-card-foreground shadow-[var(--shadow-sm)]",{variants:{variant:{[xo.default]:"border-border",[xo.muted]:"border-border/70 bg-muted/40",[xo.danger]:"border-destructive/30 bg-destructive/[0.06]"}},defaultVariants:{variant:xo.default}}),Gn=dr(({asChild:e=!1,className:t,variant:r,...a},i)=>{return pr(e?mr:"div",{ref:i,className:o(On({variant:r}),t),...a},void 0,!1,void 0,this)});Gn.displayName="Card";var Wn=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)});Wn.displayName="CardHeader";var $n=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)});$n.displayName="CardContent";var Un=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)});Un.displayName="CardFooter";var Kn=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)});Kn.displayName="CardTitle";var Yn=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)});Yn.displayName="CardDescription";import*as So from"@radix-ui/react-checkbox";import{cva as Tf}from"class-variance-authority";import{Check as xf,Minus as Cf}from"lucide-react";import{forwardRef as Sf}from"react";import{jsxDEV as Co}from"react/jsx-dev-runtime";var Ue={sm:"sm",md:"md",lg:"lg",xl:"xl"},cr={default:"default",error:"error",success:"success"},qn=Tf("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:{[Ue.sm]:"h-4 w-4",[Ue.md]:"h-5 w-5",[Ue.lg]:"h-6 w-6",[Ue.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:Ue.md,status:cr.default}}),Xn={[Ue.sm]:"size-3.5",[Ue.md]:"size-3.5",[Ue.lg]:"size-4",[Ue.xl]:"size-5"},Zn=Sf(({className:e,size:t=Ue.md,status:r=cr.default,checked:a,disabled:i,...n},s)=>{let l=u(t);return Co(So.Root,{ref:s,checked:a,disabled:i,className:o(qn({size:l,status:r}),e),...n,children:Co(So.Indicator,{className:"gs-checkbox-indicator flex items-center justify-center text-current",children:a==="indeterminate"?Co(Cf,{className:Xn[l]},void 0,!1,void 0,this):Co(xf,{className:Xn[l]},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)});Zn.displayName="Checkbox";import{cva as yt}from"class-variance-authority";import{forwardRef as zf,useCallback as wf,useState as Mf}from"react";import{jsxDEV as xe,Fragment as Jn}from"react/jsx-dev-runtime";var K={sm:"sm",md:"md",lg:"lg"},Na={default:"default",ghost:"ghost"},Qn=yt("relative rounded-lg overflow-hidden font-mono",{variants:{size:{[K.sm]:"text-xs",[K.md]:"text-sm",[K.lg]:"text-base"},variant:{[Na.default]:"bg-muted border border-border",[Na.ghost]:"bg-transparent"}},defaultVariants:{size:K.md,variant:Na.default}}),En=yt("flex items-center justify-between border-b border-border bg-muted",{variants:{size:{[K.sm]:"px-2.5 py-1.5 text-xs",[K.md]:"px-4 py-2 text-sm",[K.lg]:"px-5 py-2.5 text-base"}},defaultVariants:{size:K.md}}),jn=yt("text-muted-foreground font-medium",{variants:{size:{[K.sm]:"text-[11px]",[K.md]:"text-xs",[K.lg]:"text-sm"}},defaultVariants:{size:K.md}}),es=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:{[K.sm]:"px-2 py-1 text-xs",[K.md]:"px-2.5 py-1 text-xs",[K.lg]:"px-3 py-1.5 text-sm"},copied:{true:"text-success",false:""}},defaultVariants:{size:K.md,copied:!1}}),ts=yt("overflow-x-auto",{variants:{size:{[K.sm]:"p-2.5",[K.md]:"p-4",[K.lg]:"p-5"}},defaultVariants:{size:K.md}}),rs=yt("text-foreground",{variants:{size:{[K.sm]:"",[K.md]:"",[K.lg]:""},showLineNumbers:{true:"",false:""}},defaultVariants:{size:K.md,showLineNumbers:!1}}),os=yt("block",{variants:{size:{[K.sm]:"min-h-[1.25rem]",[K.md]:"min-h-[1.5rem]",[K.lg]:"min-h-[1.75rem]"},highlighted:{true:"bg-primary/10 -mx-4 px-4",false:""}},defaultVariants:{size:K.md,highlighted:!1}}),as=yt("inline-block text-right text-muted-foreground select-none",{variants:{size:{[K.sm]:"w-6 mr-2 text-[10px]",[K.md]:"w-8 mr-4 text-xs",[K.lg]:"w-10 mr-5 text-sm"}},defaultVariants:{size:K.md}}),is=zf(({className:e,code:t,language:r,showLineNumbers:a=!1,highlightedLines:i=[],showCopy:n=!0,size:s="md",variant:l="default",onCopy:m,...d},f)=>{let c=u(s),[P,p]=Mf(!1),v=wf(async()=>{try{await navigator.clipboard.writeText(t),p(!0),m?.(t),setTimeout(()=>p(!1),2000)}catch(z){}},[t,m]),S=t.split(`
|
|
3
|
-
`),N=new Set(i);return xe("div",{ref:f,className:o(
|
|
4
|
-
`]},`line-${String(T)}`,!0,void 0,this))},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});is.displayName="CodeBlock";import*as ur from"@radix-ui/react-collapsible";import{cva as Nf}from"class-variance-authority";import{forwardRef as Lf}from"react";import{jsxDEV as kf}from"react/jsx-dev-runtime";var ns=Nf("gs-collapsible-content overflow-hidden"),Rf=ur.Root,Hf=ur.CollapsibleTrigger,ss=Lf(({className:e,...t},r)=>kf(ur.CollapsibleContent,{ref:r,className:o(ns(),e),...t},void 0,!1,void 0,this));ss.displayName="CollapsibleContent";import*as Pt from"@radix-ui/react-dialog";import{cva as Ke}from"class-variance-authority";import{createContext as Af,forwardRef as tt,useContext as If,useEffect as Vf,useState as ls}from"react";import{jsxDEV as fe}from"react/jsx-dev-runtime";var ms=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"}}),ds=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"]),ps=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"]),cs=Ke(["max-h-[300px] overflow-y-auto overflow-x-hidden p-2"]),us=Ke(["py-6 text-center text-sm text-muted-foreground"]),fs=Ke(["overflow-hidden"]),gs=Ke(["px-2 py-1.5 text-xs font-medium text-muted-foreground"]),zo={default:"default",danger:"danger"},vs=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:{[zo.default]:"text-foreground",[zo.danger]:"text-destructive hover:bg-destructive/10 focus:bg-destructive focus:text-destructive-foreground"}},defaultVariants:{selected:!1,variant:zo.default}}),bs=Ke(["-mx-1 my-1 h-px bg-border"]),ys=Ke(["ml-auto text-xs tracking-widest text-muted-foreground"]),Ps=Ke(["flex items-center justify-center py-6"]),hs=Af(null),La=()=>{let e=If(hs);if(!e)throw Error("useCommand must be used within a Command");return e},Ra=tt(({className:e,children:t,loop:r=!0,...a},i)=>{let[n,s]=ls(""),[l,m]=ls(0);return fe(hs.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)});Ra.displayName="Command";var Ts=tt(({children:e,size:t,...r},a)=>{return fe(Pt.Root,{...r,children:fe(Pt.Portal,{children:[fe(Pt.Overlay,{className:o(ds())},void 0,!1,void 0,this),fe(Pt.Content,{ref:a,className:o(ms({size:t})),children:fe(Ra,{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)});Ts.displayName="CommandDialog";var xs=tt(({className:e,icon:t,...r},a)=>{let{search:i,setSearch:n,setSelectedIndex:s}=La();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(ps(),e),...r},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});xs.displayName="CommandInput";var Cs=tt(({className:e,children:t,...r},a)=>{return fe("div",{ref:a,className:o(cs(),e),...r,children:t},void 0,!1,void 0,this)});Cs.displayName="CommandList";var Ss=tt(({className:e,children:t="No results found.",...r},a)=>{return fe("div",{ref:a,className:o(us(),e),...r,children:t},void 0,!1,void 0,this)});Ss.displayName="CommandEmpty";var zs=tt(({className:e,heading:t,children:r,...a},i)=>{return fe("div",{ref:i,className:o(fs(),e),...a,children:[t&&fe("div",{className:o(gs()),children:t},void 0,!1,void 0,this),r]},void 0,!0,void 0,this)});zs.displayName="CommandGroup";var ws=tt(({className:e,disabled:t,onSelect:r,children:a,keywords:i,variant:n,...s},l)=>{let{search:m}=La();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(vs({selected:!1,variant:n}),e),...s,children:a},void 0,!1,void 0,this)});ws.displayName="CommandItem";var Ms=tt(({className:e,...t},r)=>{return fe("div",{ref:r,className:o(bs(),e),...t},void 0,!1,void 0,this)});Ms.displayName="CommandSeparator";var Ns=tt(({className:e,children:t,...r},a)=>{return fe("span",{ref:a,className:o(ys(),e),...r,children:t},void 0,!1,void 0,this)});Ns.displayName="CommandShortcut";var Ls=tt(({className:e,children:t,...r},a)=>{return fe("div",{ref:a,className:o(Ps(),e),...r,children:t},void 0,!1,void 0,this)});Ls.displayName="CommandLoading";var Bf=({key:e,modifier:t="meta",callback:r})=>{Vf(()=>{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 Df,ChevronRight as Ff,Circle as _f}from"lucide-react";import{createContext as Of,forwardRef as ht,useContext as fr}from"react";import{jsxDEV as me}from"react/jsx-dev-runtime";var W={sm:"sm",md:"md",lg:"lg"},wo={default:"default",danger:"danger"},Vt=Of(W.md),Ha=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)]"),ka=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:{[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:{[wo.default]:"hover:bg-accent/80 focus:bg-accent focus:text-accent-foreground",[wo.danger]:"text-destructive hover:bg-destructive/10 focus:bg-destructive focus:text-destructive-foreground"}},defaultVariants:{size:W.md,variant:wo.default}}),Rs=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:{[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}}),Hs=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:{[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}}),ks=It("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}}),As=It("-mx-1 my-1 h-px bg-border/50"),Is=It("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}}),Vs={[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"},Gf={[W.sm]:"size-3",[W.md]:"size-3.5",[W.lg]:"size-4"},Wf={[W.sm]:"size-1.5 fill-current",[W.md]:"size-2 fill-current",[W.lg]:"size-2.5 fill-current"},$f=D.Root,Uf=D.Trigger,Kf=D.Group,Yf=D.Portal,Xf=D.Sub,qf=D.RadioGroup,Bs=ht(({className:e,inset:t,children:r,...a},i)=>{let n=fr(Vt),s=u(n);return me(D.SubTrigger,{ref:i,className:o(ka({size:s}),"data-[state=open]:bg-accent",t&&"pl-8",e),...a,children:[r,me(Ff,{className:"ml-auto"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});Bs.displayName=D.SubTrigger.displayName;var Ds=ht(({className:e,...t},r)=>me(D.Portal,{children:me(D.SubContent,{ref:r,className:o(Ha(),e),...t},void 0,!1,void 0,this)},void 0,!1,void 0,this));Ds.displayName=D.SubContent.displayName;var Fs=ht(({className:e,size:t,...r},a)=>{let i=u(t)??W.md;return me(Vt.Provider,{value:i,children:me(D.Portal,{children:me(D.Content,{ref:a,className:o(Ha(),e),...r},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)});Fs.displayName=D.Content.displayName;var _s=ht(({className:e,inset:t,variant:r,...a},i)=>{let n=fr(Vt),s=u(n);return me(D.Item,{ref:i,className:o(ka({size:s,variant:r}),t&&"pl-8",e),...a},void 0,!1,void 0,this)});_s.displayName=D.Item.displayName;var Os=ht(({className:e,children:t,checked:r,...a},i)=>{let n=fr(Vt),s=u(n)??W.md;return me(D.CheckboxItem,{ref:i,className:o(Rs({size:s}),e),checked:r,...a,children:[me("span",{className:Vs[s],children:me(D.ItemIndicator,{children:me(Df,{className:Gf[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)});Os.displayName=D.CheckboxItem.displayName;var Gs=ht(({className:e,children:t,...r},a)=>{let i=fr(Vt),n=u(i)??W.md;return me(D.RadioItem,{ref:a,className:o(Hs({size:n}),e),...r,children:[me("span",{className:Vs[n],children:me(D.ItemIndicator,{children:me(_f,{className:Wf[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)});Gs.displayName=D.RadioItem.displayName;var Ws=ht(({className:e,inset:t,...r},a)=>{let i=fr(Vt),n=u(i);return me(D.Label,{ref:a,className:o(ks({size:n}),t&&"pl-8",e),...r},void 0,!1,void 0,this)});Ws.displayName=D.Label.displayName;var $s=ht(({className:e,...t},r)=>me(D.Separator,{ref:r,className:o(As(),e),...t},void 0,!1,void 0,this));$s.displayName=D.Separator.displayName;var Us=({className:e,...t})=>{let r=fr(Vt),a=u(r);return me("span",{className:o(Is({size:a}),e),...t},void 0,!1,void 0,this)};Us.displayName="ContextMenuShortcut";import*as ve from"@radix-ui/react-dialog";import{cva as Zf}from"class-variance-authority";import{X as Jf}from"lucide-react";import{forwardRef as Mo}from"react";import{jsxDEV as Ye}from"react/jsx-dev-runtime";var Tt={sm:"sm",md:"md",lg:"lg",xl:"xl",full:"full"},Aa=ve.Root,Qf=ve.Trigger,Ks=ve.Portal,Ef=ve.Close,Ia=Mo(({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));Ia.displayName="DialogOverlay";var Ys=Zf("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}}),No=Mo(({className:e,children:t,size:r=Tt.md,showClose:a=!0,...i},n)=>{let s=u(r);return Ye(Ks,{children:[Ye(Ia,{},void 0,!1,void 0,this),Ye(ve.Content,{ref:n,className:o(Ys({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(Jf,{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)});No.displayName="DialogContent";var Xs=({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);Xs.displayName="DialogHeader";var qs=({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);qs.displayName="DialogFooter";var Zs=Mo(({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));Zs.displayName="DialogTitle";var Js=Mo(({className:e,...t},r)=>Ye(ve.Description,{ref:r,className:o("text-muted-foreground text-sm",e),...t},void 0,!1,void 0,this));Js.displayName="DialogDescription";import{cva as Va}from"class-variance-authority";import{X as jf}from"lucide-react";import{forwardRef as Lo}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"},eg={[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"},tg={[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"},Qs=Va(["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"]),Es=Va(["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"]),js=Va("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"}}),rg=dt.Root,og=dt.Trigger,ag=dt.Close,el=dt.Portal,Ba=Lo(({className:e,...t},r)=>Ve(dt.Overlay,{ref:r,className:o(Qs(),e),...t},void 0,!1,void 0,this));Ba.displayName="DrawerOverlay";var tl=Lo(({size:e=Be.md,showClose:t=!1,direction:r="bottom",className:a,children:i,...n},s)=>{let m=r==="left"||r==="right"?eg[e]:tg[e];return Ve(el,{children:[Ve(Ba,{},void 0,!1,void 0,this),Ve(dt.Content,{ref:s,className:o(Es(),m,a),...n,children:[(r==="top"||r==="bottom")&&Ve("div",{className:o(js({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(jf,{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 rl=({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);rl.displayName="DrawerHeader";var ol=({className:e,...t})=>Ve("div",{className:o("mt-auto flex flex-col gap-2 p-4",e),...t},void 0,!1,void 0,this);ol.displayName="DrawerFooter";var al=Lo(({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));al.displayName="DrawerTitle";var il=Lo(({className:e,...t},r)=>Ve(dt.Description,{ref:r,className:o("text-muted-foreground text-sm",e),...t},void 0,!1,void 0,this));il.displayName="DrawerDescription";import*as F from"@radix-ui/react-dropdown-menu";import{cva as Dt}from"class-variance-authority";import{Check as ig,ChevronRight as ng,Circle as sg}from"lucide-react";import{createContext as lg,forwardRef as xt,useCallback as mg,useContext as gr,useEffect as dg,useRef as nl,useState as pg}from"react";import{jsxDEV as se}from"react/jsx-dev-runtime";var $={sm:"sm",md:"md",lg:"lg"},Ro={default:"default",danger:"danger"},Ft=lg($.md),Bt=null,Or=null,cg=0,Da=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)]"),Fa=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:{[$.sm]:"h-6 gap-1.5 px-1.5 text-xs [&_svg]:size-3",[$.md]:"h-8 gap-2 px-2 text-sm [&_svg]:size-4",[$.lg]:"h-9 gap-2 px-2.5 text-sm [&_svg]:size-4"},variant:{[Ro.default]:"hover:bg-accent/80 focus:bg-accent focus:text-accent-foreground",[Ro.danger]:"text-destructive hover:bg-destructive/10 focus:bg-destructive focus:text-destructive-foreground"}},defaultVariants:{size:$.md,variant:Ro.default}}),sl=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:{[$.sm]:"h-6 pl-6 pr-1.5 text-xs",[$.md]:"h-8 pl-8 pr-2 text-sm",[$.lg]:"h-9 pl-8 pr-2.5 text-sm"}},defaultVariants:{size:$.md}}),ll=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:{[$.sm]:"h-6 pl-6 pr-1.5 text-xs",[$.md]:"h-8 pl-8 pr-2 text-sm",[$.lg]:"h-9 pl-8 pr-2.5 text-sm"}},defaultVariants:{size:$.md}}),ml=Dt("font-semibold text-muted-foreground",{variants:{size:{[$.sm]:"px-1.5 py-0.5 text-[10px]",[$.md]:"px-2 py-1.5 text-xs",[$.lg]:"px-2.5 py-1.5 text-xs"}},defaultVariants:{size:$.md}}),dl=Dt("-mx-1 my-1 h-px bg-border/50"),pl=Dt("ml-auto tracking-widest text-muted-foreground/70",{variants:{size:{[$.sm]:"text-[10px]",[$.md]:"text-xs",[$.lg]:"text-xs"}},defaultVariants:{size:$.md}}),cl={[$.sm]:"absolute left-1.5 flex size-3 items-center justify-center",[$.md]:"absolute left-2 flex size-3.5 items-center justify-center",[$.lg]:"absolute left-2.5 flex size-4 items-center justify-center"},ug={[$.sm]:"size-3",[$.md]:"size-3.5",[$.lg]:"size-4"},fg={[$.sm]:"size-1.5 fill-current",[$.md]:"size-2 fill-current",[$.lg]:"size-2.5 fill-current"},ul=({children:e,open:t,defaultOpen:r,onOpenChange:a,...i})=>{let[n,s]=pg(r??!1),l=t!==void 0,m=l?t:n,d=nl(++cg),f=nl({onOpenChange:a,isControlled:l});f.current={onOpenChange:a,isControlled:l};let c=mg((P)=>{let{onOpenChange:p,isControlled:v}=f.current;if(P){if(Bt!==null&&Bt!==d.current&&Or)Or();Bt=d.current,Or=()=>{let{onOpenChange:S,isControlled:N}=f.current;if(!N)s(!1);S?.(!1)}}else if(Bt===d.current)Bt=null,Or=null;if(!v)s(P);p?.(P)},[]);return dg(()=>{return()=>{if(Bt===d.current)Bt=null,Or=null}},[]),se(F.Root,{open:m,onOpenChange:c,...i,children:e},void 0,!1,void 0,this)};ul.displayName="DropdownMenu";var gg=F.Trigger,vg=F.Group,bg=F.Portal,yg=F.Sub,Pg=F.RadioGroup,fl=xt(({className:e,inset:t,children:r,...a},i)=>{let n=gr(Ft),s=u(n);return se(F.SubTrigger,{ref:i,className:o(Fa({size:s}),"data-[state=open]:bg-accent",t&&"pl-8",e),...a,children:[r,se(ng,{className:"ml-auto"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});fl.displayName=F.SubTrigger.displayName;var gl=xt(({className:e,...t},r)=>se(F.Portal,{children:se(F.SubContent,{ref:r,className:o(Da(),e),...t},void 0,!1,void 0,this)},void 0,!1,void 0,this));gl.displayName=F.SubContent.displayName;var vl=xt(({className:e,sideOffset:t=4,size:r,...a},i)=>{let n=u(r)??$.md;return se(Ft.Provider,{value:n,children:se(F.Portal,{children:se(F.Content,{ref:i,sideOffset:t,className:o(Da(),e),...a},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)});vl.displayName=F.Content.displayName;var bl=xt(({className:e,inset:t,variant:r,...a},i)=>{let n=gr(Ft),s=u(n);return se(F.Item,{ref:i,className:o(Fa({size:s,variant:r}),t&&"pl-8",e),...a},void 0,!1,void 0,this)});bl.displayName=F.Item.displayName;var yl=xt(({className:e,children:t,checked:r,...a},i)=>{let n=gr(Ft),s=u(n)??$.md;return se(F.CheckboxItem,{ref:i,className:o(sl({size:s}),e),checked:r,...a,children:[se("span",{className:cl[s],children:se(F.ItemIndicator,{children:se(ig,{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)});yl.displayName=F.CheckboxItem.displayName;var Pl=xt(({className:e,children:t,...r},a)=>{let i=gr(Ft),n=u(i)??$.md;return se(F.RadioItem,{ref:a,className:o(ll({size:n}),e),...r,children:[se("span",{className:cl[n],children:se(F.ItemIndicator,{children:se(sg,{className:fg[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)});Pl.displayName=F.RadioItem.displayName;var hl=xt(({className:e,inset:t,...r},a)=>{let i=gr(Ft),n=u(i);return se(F.Label,{ref:a,className:o(ml({size:n}),t&&"pl-8",e),...r},void 0,!1,void 0,this)});hl.displayName=F.Label.displayName;var Tl=xt(({className:e,...t},r)=>se(F.Separator,{ref:r,className:o(dl(),e),...t},void 0,!1,void 0,this));Tl.displayName=F.Separator.displayName;var xl=({className:e,...t})=>{let r=gr(Ft),a=u(r);return se("span",{className:o(pl({size:a}),e),...t},void 0,!1,void 0,this)};xl.displayName="DropdownMenuShortcut";import{cva as Wr}from"class-variance-authority";import{forwardRef as hg}from"react";import{jsxDEV as Gr}from"react/jsx-dev-runtime";var be={sm:"sm",md:"md",lg:"lg"},Cl=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}}),Sl=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}}),zl=Wr("font-semibold text-foreground",{variants:{size:{[be.sm]:"text-sm",[be.md]:"text-lg",[be.lg]:"text-xl"}},defaultVariants:{size:be.md}}),wl=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}}),Ml=Wr("flex items-center gap-2 mt-2"),Nl=hg(({className:e,icon:t,title:r,description:a,actions:i,size:n=be.md,children:s,...l},m)=>{let d=u(n);return Gr("div",{ref:m,className:o(Cl({size:d}),e),...l,children:[t&&Gr("div",{className:Sl({size:d}),children:t},void 0,!1,void 0,this),r&&Gr("h3",{className:zl({size:d}),children:r},void 0,!1,void 0,this),a&&Gr("p",{className:wl({size:d}),children:a},void 0,!1,void 0,this),i&&Gr("div",{className:Ml(),children:i},void 0,!1,void 0,this),s]},void 0,!0,void 0,this)});Nl.displayName="EmptyState";import{cva as vr}from"class-variance-authority";import{Component as Tg,createElement as Ll}from"react";import{jsxDEV as Ce,Fragment as Cg}from"react/jsx-dev-runtime";var Rl=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"}}),Hl=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"}}),kl=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"}}),Al=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"}}),Il=vr("mt-2 flex flex-wrap items-center justify-center gap-2"),Vl=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 Bl extends Tg{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:d,resetLabel:f="Try again",hideReset:c=!1,renderDetails:P}=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 Ll(t,p);return t}let v=null;if(d)v=typeof d==="function"?Ll(d,p):d;else if(!c){let N={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",N[i]),children:f},void 0,!1,void 0,this)}let S=P?P(this.state.error):Ce(Cg,{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(Rl({size:a,variant:i}),n),children:[Ce("div",{className:o(Hl({size:a,variant:i})),children:m??Ce(xg,{},void 0,!1,void 0,this)},void 0,!1,void 0,this),Ce("h3",{className:o(kl({size:a,variant:i})),children:s},void 0,!1,void 0,this),Ce("p",{className:o(Al({size:a})),children:l},void 0,!1,void 0,this),v&&Ce("div",{className:o(Il()),children:v},void 0,!1,void 0,this),r&&Ce("div",{className:o(Vl()),children:S},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}return e}}function xg(){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 Sg,useCallback as Xe,useRef as zg,useState as Dl}from"react";import{jsxDEV as Pe}from"react/jsx-dev-runtime";var ee={sm:"sm",md:"md",lg:"lg",xl:"xl"},Fl=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}}),_l=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}}),_a=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}}),Ol=Ct("mt-4 w-full space-y-2"),Gl=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"]),Wl=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"}}),$l=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"}}),Ul=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"]),Kl=Sg(({className:e,size:t="md",disabled:r=!1,accept:a,multiple:i=!1,maxSize:n,maxFiles:s,value:l=[],onChange:m,onError:d,icon:f,title:c="Drop files here or click to upload",description:P,showFileList:p=!0,...v},S)=>{let N=u(t),[z,T]=Dl(!1),[b,x]=Dl(!1),M=zg(null),C=Xe((k)=>{if(k===0)return"0 Bytes";let Y=1024,g=["Bytes","KB","MB","GB"],y=Math.floor(Math.log(k)/Math.log(Y));return`${parseFloat((k/Y**y).toFixed(2))} ${g[y]}`},[]),L=Xe((k)=>{let Y=[...k];if(x(!1),a){let g=a.split(",").map((y)=>y.trim());if(Y=Y.filter((y)=>{return g.some((H)=>{if(H.startsWith("."))return y.name.toLowerCase().endsWith(H.toLowerCase());if(H.endsWith("/*"))return y.type.startsWith(H.slice(0,-1));return y.type===H})}),Y.length<k.length)d?.("Some files were rejected due to file type"),x(!0)}if(n){let g=Y.length;if(Y=Y.filter((y)=>y.size<=n),Y.length<g)d?.(`File size must be less than ${C(n)}`),x(!0)}if(s&&Y.length+l.length>s)Y=Y.slice(0,s-l.length),d?.(`Maximum ${s} files allowed`),x(!0);return Y},[a,n,s,l.length,d,C]),R=Xe((k)=>{if(!k||k.length===0)return;let Y=Array.from(k),g=L(Y);if(g.length>0)if(i)m?.([...l,...g]);else m?.(g.slice(0,1))},[i,l,m,L]),_=Xe((k)=>{k.preventDefault(),k.stopPropagation(),T(!0)},[]),G=Xe((k)=>{k.preventDefault(),k.stopPropagation(),T(!1)},[]),O=Xe((k)=>{k.preventDefault(),k.stopPropagation()},[]),U=Xe((k)=>{if(k.preventDefault(),k.stopPropagation(),T(!1),r)return;R(k.dataTransfer.files)},[r,R]),w=Xe((k)=>{if(R(k.target.files),M.current)M.current.value=""},[R]),I=Xe(()=>{if(!r)M.current?.click()},[r]),h=Xe((k)=>{if(k.key==="Enter"||k.key===" ")k.preventDefault(),I()},[I]),V=Xe((k)=>{let Y=l.filter((g,y)=>y!==k);m?.(Y)},[l,m]),J=Pe("svg",{className:o(_l({size:N,isDragging:z})),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:o("w-full",e),...v,children:[Pe("div",{role:"button",tabIndex:r?-1:0,onClick:I,onKeyDown:h,onDragEnter:_,onDragLeave:G,onDragOver:O,onDrop:U,className:o(Fl({size:N,isDragging:z,disabled:r,hasError:b})),children:[Pe("input",{ref:M,type:"file",accept:a,multiple:i,disabled:r,onChange:w,className:"sr-only"},void 0,!1,void 0,this),f||J,Pe("p",{className:o(_a({size:N}),"font-medium text-foreground"),children:c},void 0,!1,void 0,this),P&&Pe("p",{className:o(_a({size:N}),"mt-1 text-muted-foreground"),children:P},void 0,!1,void 0,this)]},void 0,!0,void 0,this),p&&l.length>0&&Pe("div",{className:o(Ol()),children:l.map((k,Y)=>Pe("div",{className:o(Gl()),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(Wl({size:N})),children:k.name},void 0,!1,void 0,this),Pe("span",{className:o($l({size:N})),children:C(k.size)},void 0,!1,void 0,this),Pe("button",{type:"button",onClick:(g)=>{g.stopPropagation(),V(Y)},className:o(Ul()),"aria-label":`Remove ${k.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)]},`${k.name}-${Y}`,!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});Kl.displayName="FileUpload";import{cva as wg}from"class-variance-authority";import{createContext as Mg,forwardRef as Ho,useContext as Ng,useId as Lg}from"react";import{jsxDEV as _t,Fragment as Hg}from"react/jsx-dev-runtime";var De={sm:"sm",md:"md",lg:"lg"},Yl=Mg(null),$r=()=>{let e=Ng(Yl);if(!e)throw Error("useFormField must be used within a FormField");return e},Xl=wg("flex flex-col",{variants:{size:{[De.sm]:"gap-1",[De.md]:"gap-1.5",[De.lg]:"gap-2"}},defaultVariants:{size:De.md}}),ql=Ho(({className:e,size:t=De.md,error:r,disabled:a=!1,required:i=!1,children:n,...s},l)=>{let m=Lg(),d=u(t),f={id:m,size:d,error:r,disabled:a,required:i};return _t(Yl.Provider,{value:f,children:_t("div",{ref:l,className:o(Xl({size:d}),e),...s,children:n},void 0,!1,void 0,this)},void 0,!1,void 0,this)});ql.displayName="FormField";var Rg={[De.sm]:"text-xs",[De.md]:"text-sm",[De.lg]:"text-base"},Zl=Ho(({className:e,htmlFor:t,children:r,...a},i)=>{let{id:n,size:s,disabled:l,required:m}=$r();return _t("label",{ref:i,htmlFor:t??n,className:o("inline-block font-medium text-foreground select-none",Rg[s],l&&"cursor-not-allowed opacity-60",e),...a,children:[r,m&&_t("span",{className:"ml-0.5 text-destructive","aria-hidden":"true",children:"*"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});Zl.displayName="FormFieldLabel";var Jl={[De.sm]:"text-[10px]",[De.md]:"text-xs",[De.lg]:"text-sm"},Ql=Ho(({className:e,...t},r)=>{let{id:a,size:i}=$r();return _t("p",{ref:r,id:`${a}-description`,className:o("text-muted-foreground",Jl[i],e),...t},void 0,!1,void 0,this)});Ql.displayName="FormFieldDescription";var El=Ho(({className:e,children:t,...r},a)=>{let{id:i,size:n,error:s}=$r(),l=t??s;if(!l)return null;return _t("p",{ref:a,id:`${i}-error`,role:"alert",className:o("text-destructive",Jl[n],e),...r,children:l},void 0,!1,void 0,this)});El.displayName="FormFieldError";var jl=({children:e})=>{let{id:t,disabled:r,required:a,error:i}=$r(),n=[i?`${t}-error`:void 0,`${t}-description`].filter(Boolean).join(" ");return _t(Hg,{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)};jl.displayName="FormFieldControl";import*as Ot from"@radix-ui/react-hover-card";import{cva as kg}from"class-variance-authority";import{forwardRef as Ag}from"react";import{jsxDEV as Bg}from"react/jsx-dev-runtime";var br={sm:"sm",md:"md",lg:"lg"},em=kg("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}}),Ig=Ot.Root,Vg=Ot.Trigger,tm=Ag(({className:e,align:t="center",sideOffset:r=4,size:a=br.md,...i},n)=>{let s=u(a);return Bg(Ot.Content,{ref:n,align:t,sideOffset:r,className:o(em({size:s}),e),...i},void 0,!1,void 0,this)});tm.displayName=Ot.Content.displayName;import{cva as Dg}from"class-variance-authority";import{X as Fg}from"lucide-react";import{forwardRef as _g,useRef as Og,useState as Gg}from"react";import{jsxDEV as Gt}from"react/jsx-dev-runtime";var Ur={default:"default",error:"error",success:"success"},X={sm:"sm",md:"md",lg:"lg",xl:"xl"},Wg="Clear input",om=Dg("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:{[Ur.default]:"focus-visible:ring-primary",[Ur.error]:"border-destructive focus-visible:ring-destructive",[Ur.success]:"border-success focus-visible:ring-success"},size:{[X.sm]:"h-8 px-2 text-xs",[X.md]:"h-10 px-3",[X.lg]:"h-11 px-4",[X.xl]:"h-12 px-4 text-base"}},defaultVariants:{status:Ur.default,size:X.md}}),$g={[X.sm]:"pl-7",[X.md]:"pl-9",[X.lg]:"pl-10",[X.xl]:"pl-10"},Ug={[X.sm]:"pr-7",[X.md]:"pr-9",[X.lg]:"pr-10",[X.xl]:"pr-10"},Kg={[X.sm]:"pr-12",[X.md]:"pr-16",[X.lg]:"pr-18",[X.xl]:"pr-18"},Yg={[X.sm]:"text-xs left-2",[X.md]:"text-sm left-3",[X.lg]:"text-sm left-3.5",[X.xl]:"text-base left-3.5"},Xg={[X.sm]:"text-xs",[X.md]:"text-sm",[X.lg]:"text-sm",[X.xl]:"text-base"},qg={[X.sm]:"size-4",[X.md]:"size-5",[X.lg]:"size-5",[X.xl]:"size-6"};function rm(e){if(e===void 0||e===null)return"";if(Array.isArray(e))return e.join("");return String(e)}var am=_g(({className:e,status:t=Ur.default,size:r=X.md,fullWidth:a=!1,prefix:i,suffix:n,clearable:s=!1,clearAriaLabel:l=Wg,onClear:m,onValueChange:d,disabled:f,readOnly:c,onChange:P,value:p,defaultValue:v,...S},N)=>{let z=Boolean(i),T=Boolean(n),b=u(r),x=Og(null),M=Kr(N,x),[C,L]=Gg(()=>rm(v)),R=p!==void 0,_=R?rm(p):C,G=s&&!f&&!c&&_.length>0,O=T||G,U=T&&G,w=(h)=>{let V=h.target.value;if(!R)L(V);d?.(V),P?.(h)},I=()=>{if(!R)L("");d?.("");let h=x.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:[z&&Gt("span",{className:o("absolute inset-y-0 flex items-center text-muted-foreground",Yg[b]),children:i},void 0,!1,void 0,this),Gt("input",{ref:M,className:o(om({status:t,size:b}),z&&$g[b],U&&Kg[b],!U&&O&&Ug[b],e),disabled:f,readOnly:c,onChange:w,value:_,...S},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",Xg[b]),children:[T&&Gt("span",{className:"inline-flex items-center",children:n},void 0,!1,void 0,this),G&&Gt("button",{type:"button","aria-label":l,onMouseDown:(h)=>h.preventDefault(),onClick:I,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",qg[b]),children:Gt(Fg,{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)});am.displayName="Input";import{cva as Zg}from"class-variance-authority";import{forwardRef as Jg}from"react";function Yr(){return Oa()}import{jsxDEV as Qg}from"react/jsx-dev-runtime";var yr={sm:"sm",md:"md",lg:"lg"},im=Zg("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}}),nm=Jg(({className:e,size:t=yr.md,keys:r,children:a,...i},n)=>{let s=u(t),{isMac:l}=Yr(),m=r?Xr(r,l):a;return Qg("kbd",{ref:n,className:o(im({size:s}),e),...i,children:m},void 0,!1,void 0,this)});nm.displayName="Kbd";import{cva as Eg}from"class-variance-authority";import{forwardRef as jg}from"react";import{jsxDEV as sm}from"react/jsx-dev-runtime";var Pr={sm:"sm",md:"md",lg:"lg"},lm=Eg("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}}),mm=jg(({className:e,size:t=Pr.md,required:r=!1,disabled:a=!1,children:i,...n},s)=>{let l=u(t);return sm("label",{ref:s,className:o(lm({size:l}),a&&"cursor-not-allowed opacity-60",e),"aria-disabled":a||void 0,...n,children:[i,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)});mm.displayName="Label";import*as St from"@radix-ui/react-popover";import{cva as nv}from"class-variance-authority";import{Check as sv,ChevronDown as lv,X as mv,X as dv}from"lucide-react";import{forwardRef as pv,useCallback as qr,useEffect as cv,useRef as uv,useState as cm}from"react";import*as Fe from"@radix-ui/react-popover";import{cva as ev}from"class-variance-authority";import{forwardRef as tv}from"react";import{jsxDEV as dm}from"react/jsx-dev-runtime";var hr={sm:"sm",md:"md",lg:"lg"},Tr=ev("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}}),rv=Fe.Root,ov=Fe.Trigger,av=Fe.Anchor,iv=Fe.Close,pm=tv(({className:e,align:t="center",sideOffset:r=4,portal:a=!0,portalContainer:i,size:n=hr.md,...s},l)=>{let m=u(n),d=dm(Fe.Content,{ref:l,align:t,sideOffset:r,className:o(Tr({size:m}),e),...s},void 0,!1,void 0,this);if(a)return dm(Fe.Portal,{container:i??void 0,children:d},void 0,!1,void 0,this);return d});pm.displayName="PopoverContent";import{jsxDEV as re,Fragment as vv}from"react/jsx-dev-runtime";var de={sm:"sm",md:"md",lg:"lg",xl:"xl"},um=nv(["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"}}),fv={[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"},gv={[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"},ko={[de.sm]:"size-3.5",[de.md]:"size-4",[de.lg]:"size-4",[de.xl]:"size-4.5"},fm=pv(({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:d=3,disabled:f,...c},P)=>{let p=u(s)??s,[v,S]=cm(!1),[N,z]=cm(a),T=uv(null),b=r!==void 0,x=b?r:N,M=qr((w)=>{let I=x.includes(w)?x.filter((h)=>h!==w):[...x,w];if(!b)z(I);i?.(I)},[x,b,i]),C=qr((w,I)=>{I.stopPropagation();let h=x.filter((V)=>V!==w);if(!b)z(h);i?.(h)},[x,b,i]),L=qr((w)=>{if(w.stopPropagation(),w.preventDefault(),!b)z([]);i?.([])},[b,i]),R=t.filter((w)=>x.includes(w.value)),_=R.length>0,G=m&&_&&!f,O=qr((w)=>{let I=T.current;if(!I)return;let h=Array.from(I.querySelectorAll('[role="option"]:not([data-disabled])'));if(h.length===0)return;let V=I.querySelector('[role="option"]:focus'),J=V?h.indexOf(V):-1,k;switch(w){case"first":k=h[0];break;case"last":k=h[h.length-1];break;case"next":k=h[J+1]??h[0];break;case"prev":k=h[J-1]??h[h.length-1];break}k?.focus()},[]),U=qr((w)=>{switch(w.key){case"ArrowDown":w.preventDefault(),O("next");break;case"ArrowUp":w.preventDefault(),O("prev");break;case"Home":w.preventDefault(),O("first");break;case"End":w.preventDefault(),O("last");break;case"Escape":w.preventDefault(),S(!1);break}},[O]);return cv(()=>{if(v)requestAnimationFrame(()=>O("first"))},[v,O]),re(St.Root,{open:v,onOpenChange:S,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(um({size:p,status:l}),e),...c,children:[re("span",{className:"flex min-w-0 flex-1 flex-wrap items-center gap-1 text-left",children:_?re(vv,{children:[R.slice(0,d).map((w)=>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",fv[p]),children:[re("span",{className:"truncate",children:w.label},void 0,!1,void 0,this),re("span",{"data-slot":"multiselect-remove","aria-label":`Remove ${w.label}`,onMouseDown:(I)=>I.preventDefault(),onClick:(I)=>C(w.value,I),className:"ml-0.5 inline-flex shrink-0 items-center justify-center rounded-full opacity-60 hover:opacity-100",children:re(dv,{className:"h-3 w-3"},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},w.value,!0,void 0,this)),R.length>d&&re("span",{className:"text-muted-foreground text-xs",children:["+",R.length-d]},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:[G&&re("span",{role:"button",tabIndex:-1,"aria-label":"Clear all",onMouseDown:(w)=>w.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:re(mv,{className:ko[p]},void 0,!1,void 0,this)},void 0,!1,void 0,this),re(lv,{className:o(ko[p],"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:T,role:"listbox","aria-multiselectable":"true",align:"start",sideOffset:4,onKeyDown:U,onOpenAutoFocus:(w)=>w.preventDefault(),className:o(Tr(),"max-h-96 w-[var(--radix-popover-trigger-width)] overflow-y-auto overflow-x-hidden p-1"),children:[t.map((w)=>{let I=x.includes(w.value);return re("div",{role:"option",tabIndex:w.disabled?void 0:-1,"aria-selected":I,"aria-disabled":w.disabled||void 0,"data-disabled":w.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",gv[p]),onClick:()=>!w.disabled&&M(w.value),onKeyDown:(h)=>{if(h.key==="Enter"||h.key===" "){if(h.preventDefault(),!w.disabled)M(w.value)}},children:[re("span",{className:o("flex shrink-0 items-center justify-center",ko[p]),children:I&&re(sv,{className:ko[p]},void 0,!1,void 0,this)},void 0,!1,void 0,this),re("span",{className:"min-w-0 flex-1 truncate",children:w.label},void 0,!1,void 0,this)]},w.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)});fm.displayName="Multiselect";import*as oe from"@radix-ui/react-navigation-menu";import{cva as Wt}from"class-variance-authority";import{createContext as bv,forwardRef as xr,useContext as yv}from"react";import{jsxDEV as He}from"react/jsx-dev-runtime";var qe={sm:"sm",md:"md",lg:"lg"},gm=bv(qe.md),vm=Wt("relative z-10 flex max-w-max flex-1 items-center justify-center"),bm=Wt("group flex flex-1 list-none items-center justify-center space-x-1"),ym=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}}),Pm=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"]),Pv=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}}),hm=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)]"]),Tm=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"]),hv=()=>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),xm=xr(({className:e,children:t,size:r,...a},i)=>{let n=u(r??qe.md);return He(gm.Provider,{value:n,children:He(oe.Root,{ref:i,className:o(vm(),e),...a,children:[t,He(Ga,{},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)});xm.displayName=oe.Root.displayName;var Cm=xr(({className:e,...t},r)=>He(oe.List,{ref:r,className:o(bm(),e),...t},void 0,!1,void 0,this));Cm.displayName=oe.List.displayName;var Tv=oe.Item,Sm=xr(({className:e,children:t,...r},a)=>{let i=yv(gm);return He(oe.Trigger,{ref:a,className:o(ym({size:i}),"group",e),...r,children:[t,He(hv,{},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});Sm.displayName=oe.Trigger.displayName;var zm=xr(({className:e,...t},r)=>He(oe.Content,{ref:r,className:o(Pm(),e),...t},void 0,!1,void 0,this));zm.displayName=oe.Content.displayName;var xv=oe.Link,Ga=xr(({className:e,...t},r)=>He("div",{className:"absolute top-full left-0 flex justify-center",children:He(oe.Viewport,{className:o(hm(),e),ref:r,...t},void 0,!1,void 0,this)},void 0,!1,void 0,this));Ga.displayName=oe.Viewport.displayName;var wm=xr(({className:e,...t},r)=>He(oe.Indicator,{ref:r,className:o(Tm(),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));wm.displayName=oe.Indicator.displayName;import{cva as Cr}from"class-variance-authority";import{Fragment as Cv,forwardRef as Sv,useCallback as $t,useEffect as Mm,useMemo as Nm,useRef as zv,useState as Lm}from"react";import{jsxDEV as Ut}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"},Rm=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}}),Hm=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}}),km=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}}),Am=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}}),Im=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}}),Vm=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 wv(e){if(!Number.isFinite(e))return 6;return Math.max(1,Math.floor(e))}function Wa(e,t){let r=(e??"").split("").slice(0,t);if(r.length<t)return r.concat(Array(t-r.length).fill(""));return r}var Bm=Sv(({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:d=!1,groupSize:f,separator:c,separatorChar:P="—",placeholder:p="•",inputMode:v="numeric",pattern:S="[0-9]*",...N},z)=>{let T=u(n),b=wv(t),x=zv([]),[M,C]=Lm(null),[L,R]=Lm(()=>Wa(r,b));Mm(()=>{if(r!==void 0){R(Wa(r,b));return}R((g)=>Wa(g.join(""),b))},[r,b]),Mm(()=>{if(m)x.current[0]?.focus()},[m]);let _=Nm(()=>{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 c==="number"&&Number.isFinite(c)){let g=Math.floor(c);if(g<=0)return b;return Math.min(b,Math.max(1,g))}if(c)return Math.max(1,Math.floor(b/2));return b},[f,b,c]),G=Nm(()=>{let g=[];for(let y=0;y<b;y+=_){let H=Math.min(y+_,b),ce=[];for(let q=y;q<H;q+=1)ce.push(q);g.push(ce)}return g},[_,b]),O=$t((g)=>{let y=x.current[g];if(!y)return;y.focus(),y.select()},[]),U=$t((g)=>{R(g);let y=g.join("");if(a?.(y),g.every((H)=>H!=="")&&y.length===b)i?.(y)},[a,i,b]),w=$t((g,y)=>{if(l)return;let ce=(v==="numeric"?y.replace(/\D/g,""):y).slice(-1),q=[...L];if(q[g]=ce,U(q),ce&&g<b-1)O(g+1)},[L,l,U,O,v,b]),I=$t((g,y)=>{if(l)return;if(y.key==="Backspace"){if(y.preventDefault(),L[g]){let H=[...L];H[g]="",U(H);return}if(g>0){let H=[...L];H[g-1]="",U(H),O(g-1)}return}if(y.key==="Delete"){if(y.preventDefault(),L[g]){let H=[...L];H[g]="",U(H)}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)},[L,l,U,O,b]),h=$t((g,y)=>{if(y.preventDefault(),l)return;let H=y.clipboardData.getData("text"),q=(v==="numeric"?H.replace(/\D/g,""):H.replace(/\s/g,"")).split("");if(q.length===0)return;let Ae=[...L];for(let A=0;A<q.length;A+=1){let j=g+A;if(j>=b)break;Ae[j]=q[A]??""}U(Ae);let E=Math.min(b-1,g+q.length-1);if(E<b-1){O(E+1);return}x.current[E]?.blur()},[L,l,U,O,v,b]),V=$t((g,y)=>{C(g),y.target.select()},[]),J=$t(()=>{C(null)},[]),k=c!==void 0,Y=P.length>0&&c!==!1&&(k||G.length>1);return Ut("div",{ref:z,className:o(Rm({size:T}),e),role:"group","aria-label":"One-time password input",...N,children:G.map((g,y)=>Ut(Cv,{children:[Ut("div",{"data-gs-otp-group":"true",className:o(Hm({size:T,status:s})),children:g.map((H,ce)=>{let q=L[H]??"",Ae=M===H,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 Ut("div",{"data-gs-otp-slot":"true","data-disabled":l,className:o(km({size:T,filled:Boolean(q),focused:Ae,status:s,disabled:l,position:E})),children:[Ut("input",{ref:(A)=>{x.current[H]=A},type:d?"password":"text",inputMode:v,pattern:S,maxLength:1,value:q,placeholder:"",disabled:l,"aria-invalid":s===Jr.error,"aria-label":`Digit ${H+1} of ${b}`,autoComplete:"one-time-code",onChange:(A)=>w(H,A.target.value),onKeyDown:(A)=>I(H,A),onPaste:(A)=>h(H,A),onFocus:(A)=>V(H,A),onBlur:J,className:o(Am({size:T,status:s,filled:Boolean(q)}))},void 0,!1,void 0,this),!q&&Ut("div",{"data-gs-otp-placeholder":"true","aria-hidden":"true",className:o(Im({size:T,focused:Ae})),children:p},void 0,!1,void 0,this)]},`slot-${H}`,!0,void 0,this)})},void 0,!1,void 0,this),Y&&y<G.length-1&&Ut("span",{"data-gs-otp-separator":"true",className:o(Vm({size:T})),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)});Bm.displayName="OTPInput";import{createContext as kv,useCallback as Sr,useContext as Av,useMemo as Iv,useState as Vv}from"react";import*as ne from"@radix-ui/react-dialog";import{cva as Dm}from"class-variance-authority";import{X as Mv}from"lucide-react";import{forwardRef as Ao}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"},Nv={[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"},Lv={[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"}},Fm=Dm("gs-sheet-overlay fixed inset-0 z-50 bg-black/50"),_m=Dm("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}}),$a=ne.Root,Rv=ne.Trigger,Hv=ne.Close,Om=ne.Portal,Ua=Ao(({className:e,...t},r)=>Ze(ne.Overlay,{className:o(Fm(),e),...t,ref:r},void 0,!1,void 0,this));Ua.displayName=ne.Overlay.displayName;var Io=Ao(({side:e="right",size:t=te.md,showClose:r=!0,className:a,children:i,...n},s)=>{let l=u(t)??te.md,m=Nv[e],d=Lv[e][l];return Ze(Om,{children:[Ze(Ua,{},void 0,!1,void 0,this),Ze(ne.Content,{ref:s,className:o(_m({side:e}),m,d,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(Mv,{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)});Io.displayName=ne.Content.displayName;var Gm=({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);Gm.displayName="SheetHeader";var Wm=({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);Wm.displayName="SheetFooter";var $m=Ao(({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));$m.displayName=ne.Title.displayName;var Um=Ao(({className:e,...t},r)=>Ze(ne.Description,{ref:r,className:o("text-muted-foreground text-sm",e),...t},void 0,!1,void 0,this));Um.displayName=ne.Description.displayName;import{jsxDEV as pt}from"react/jsx-dev-runtime";var Ka=0;function Bv(){return Ka=(Ka+1)%Number.MAX_SAFE_INTEGER,`overlay-${Ka}-${Date.now()}`}var Ym=kv(null),Km=400;function Xm({children:e}){let[t,r]=Vv([]),a=Sr((d)=>{r((f)=>f.map((c)=>c.id===d?{...c,open:!1}:c)),setTimeout(()=>{r((f)=>f.filter((c)=>c.id!==d))},Km)},[]),i=Sr(()=>{r((d)=>d.map((f)=>({...f,open:!1}))),setTimeout(()=>{r([])},Km)},[]),n=Sr((d,f,c,P={})=>{let p=Bv(),v=(z)=>{return pt(f,{...c,close:z.close},void 0,!1,void 0,this)};v.displayName=`OverlayWrapper(${f.displayName??f.name??"Component"})`;let S={id:p,type:d,component:v,wrapperProps:P,open:!0};return r((z)=>[...z,S]),{id:p,close:()=>a(p)}},[a]),s=Sr((d,f,c)=>{return n("dialog",d,f,c)},[n]),l=Sr((d,f,c)=>{return n("sheet",d,f,c)},[n]),m=Iv(()=>({dialog:s,sheet:l,close:a,closeAll:i}),[s,l,a,i]);return pt(Ym.Provider,{value:m,children:[e,t.map((d)=>pt(Dv,{entry:d,onClose:a},d.id,!1,void 0,this))]},void 0,!0,void 0,this)}Xm.displayName="OverlayProvider";function Dv({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:d,...f}=n;return pt(Aa,{open:s,onOpenChange:(c)=>!c&&l(),children:pt(No,{showClose:m,size:d,...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:d,...f}=n;return pt($a,{open:s,onOpenChange:(c)=>!c&&l(),children:pt(Io,{side:m,showClose:d,...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 Fv(){let e=Av(Ym);if(!e)throw Error("useOverlay must be used within an OverlayProvider");return e}import{cva as Qr}from"class-variance-authority";import{ChevronLeft as _v,ChevronRight as Ov,MoreHorizontal as Gv}from"lucide-react";import{createContext as Wv,forwardRef as Er,useContext as Vo}from"react";import{jsxDEV as we}from"react/jsx-dev-runtime";var _e={sm:"sm",md:"md",lg:"lg"},jr=Wv(_e.md),qm=Qr("mx-auto flex w-full justify-center"),Zm=Qr("flex flex-row items-center gap-1"),Jm=Qr(""),Bo=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:{[_e.sm]:"h-7 w-7 text-xs [&_svg]:size-3.5",[_e.md]:"h-9 w-9 text-sm [&_svg]:size-4",[_e.lg]:"h-10 w-10 text-sm [&_svg]:size-5"}},defaultVariants:{isActive:!1,size:_e.md}}),Qm=Qr("flex items-center justify-center",{variants:{size:{[_e.sm]:"h-7 w-7 [&_svg]:size-3.5",[_e.md]:"h-9 w-9 [&_svg]:size-4",[_e.lg]:"h-10 w-10 [&_svg]:size-5"}},defaultVariants:{size:_e.md}}),Em=({className:e,size:t=_e.md,...r})=>{let a=u(t)??_e.md;return we(jr.Provider,{value:a,children:we("nav",{"aria-label":"pagination",className:o(qm(),e),...r},void 0,!1,void 0,this)},void 0,!1,void 0,this)};Em.displayName="Pagination";var jm=Er(({className:e,...t},r)=>we("ul",{ref:r,className:o(Zm(),e),...t},void 0,!1,void 0,this));jm.displayName="PaginationContent";var ed=Er(({className:e,...t},r)=>we("li",{ref:r,className:o(Jm(),e),...t},void 0,!1,void 0,this));ed.displayName="PaginationItem";var td=Er(({className:e,isActive:t,...r},a)=>{let i=Vo(jr);return we("button",{ref:a,type:"button","aria-current":t?"page":void 0,className:o(Bo({isActive:t,size:i}),e),...r},void 0,!1,void 0,this)});td.displayName="PaginationLink";var rd=Er(({className:e,...t},r)=>{let a=Vo(jr);return we("button",{ref:r,type:"button","aria-label":"Go to previous page",className:o(Bo({size:a}),"gap-1 pl-2.5 pr-3 w-auto",e),...t,children:[we(_v,{},void 0,!1,void 0,this),we("span",{children:"Previous"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});rd.displayName="PaginationPrevious";var od=Er(({className:e,...t},r)=>{let a=Vo(jr);return we("button",{ref:r,type:"button","aria-label":"Go to next page",className:o(Bo({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(Ov,{},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});od.displayName="PaginationNext";var ad=({className:e,...t})=>{let r=Vo(jr);return we("span",{"aria-hidden":!0,className:o(Qm({size:r}),e),...t,children:[we(Gv,{},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)};ad.displayName="PaginationEllipsis";import*as ro from"@radix-ui/react-progress";import{cva as id}from"class-variance-authority";import{forwardRef as $v}from"react";import{jsxDEV as Do}from"react/jsx-dev-runtime";var eo={sm:"sm",md:"md",lg:"lg",xl:"xl"},to={default:"default",success:"success",warning:"warning",error:"error"},nd=id("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}}),sd=id("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}}),ld=$v(({className:e,value:t,size:r,variant:a,showValue:i,...n},s)=>{let l=u(r);return Do("div",{className:"flex w-full items-center gap-2",children:[Do(ro.Root,{ref:s,className:o(nd({size:l}),e),...n,children:Do(ro.Indicator,{className:o(sd({variant:a})),style:{transform:`translateX(-${100-(t||0)}%)`}},void 0,!1,void 0,this)},void 0,!1,void 0,this),i&&Do("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)});ld.displayName=ro.Root.displayName;import*as wr from"@radix-ui/react-radio-group";import{cva as md}from"class-variance-authority";import{forwardRef as dd}from"react";import{jsxDEV as Fo}from"react/jsx-dev-runtime";var Je={sm:"sm",md:"md",lg:"lg",xl:"xl"},zr={default:"default",error:"error",success:"success"},pd=md("grid gap-2"),cd=md("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}}),Uv={[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"},ud=dd(({className:e,...t},r)=>Fo(wr.Root,{ref:r,className:o(pd(),e),...t},void 0,!1,void 0,this));ud.displayName="RadioGroup";var fd=dd(({className:e,size:t=Je.md,status:r=zr.default,...a},i)=>{let n=u(t);return Fo(wr.Item,{ref:i,className:o(cd({size:n,status:r}),e),...a,children:Fo(wr.Indicator,{className:"flex items-center justify-center",children:Fo("span",{className:o("block rounded-full bg-current transition-transform duration-150",Uv[n])},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)});fd.displayName="RadioGroupItem";import{cva as Go}from"class-variance-authority";import{forwardRef as Ya,useCallback as _o,useRef as Kv,useState as Yv}from"react";import{jsxDEV as Oo}from"react/jsx-dev-runtime";var gd=Go("flex h-full w-full",{variants:{direction:{horizontal:"flex-row",vertical:"flex-col"}},defaultVariants:{direction:"horizontal"}}),vd=Go("relative overflow-hidden"),bd=Go("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}}),yd=Go("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"}}),Pd=Ya(({className:e,direction:t="horizontal",children:r,...a},i)=>Oo("div",{ref:i,"data-panel-group":"","data-direction":t,className:o(gd({direction:t}),e),...a,children:r},void 0,!1,void 0,this));Pd.displayName="ResizablePanelGroup";var hd=Ya(({className:e,defaultSize:t=50,children:r,style:a,...i},n)=>Oo("div",{ref:n,"data-panel":"",className:o(vd(),e),style:{...a,flexGrow:0,flexShrink:0,flexBasis:`${t}%`},...i,children:r},void 0,!1,void 0,this));hd.displayName="ResizablePanel";var Td=Ya(({className:e,withHandle:t=!1,disabled:r=!1,...a},i)=>{let[n,s]=Yv(!1),l=Kv(null),m=_o((p,v)=>{if(r)return;s(!0);let S=(z)=>{let T="touches"in z?z.touches[0]:null,b=T?T.clientX:z.clientX,x=T?T.clientY:z.clientY,M=l.current;if(!M)return;let C=M.closest("[data-panel-group]");if(!C)return;let L=C.dataset.direction,R=C.getBoundingClientRect(),_=Array.from(C.querySelectorAll(":scope > [data-panel]")),G=Array.from(C.children).indexOf(M),O,U;for(let w of _){let I=Array.from(C.children).indexOf(w);if(I<G)O=w;if(I>G&&!U)U=w}if(O&&U){let w=L==="horizontal"?R.width:R.height,h=(L==="horizontal"?b-R.left:x-R.top)/w*100,V=Math.max(10,Math.min(90,h)),J=100-V;O.style.flexBasis=`${V}%`,U.style.flexBasis=`${J}%`}},N=()=>{s(!1),document.removeEventListener("mousemove",S),document.removeEventListener("mouseup",N),document.removeEventListener("touchmove",S),document.removeEventListener("touchend",N)};document.addEventListener("mousemove",S),document.addEventListener("mouseup",N),document.addEventListener("touchmove",S),document.addEventListener("touchend",N)},[r]),d=_o((p)=>{p.preventDefault(),m(p.clientX,p.clientY)},[m]),f=_o((p)=>{let v=p.touches[0];if(v)m(v.clientX,v.clientY)},[m]),c=_o((p)=>{if(r)return;let v=l.current??p.currentTarget,S=v.closest("[data-panel-group]");if(!S)return;let N=S.dataset.direction,z=p.shiftKey?10:1,T=Array.from(S.querySelectorAll(":scope > [data-panel]")),b=Array.from(S.children).indexOf(v),x,M;for(let R of T){let _=Array.from(S.children).indexOf(R);if(_<b)x=R;if(_>b&&!M)M=R}if(!(x&&M))return;let C=Number.parseFloat(x.style.flexBasis)||50,L=0;if(N==="horizontal"){if(p.key==="ArrowLeft")L=-z;if(p.key==="ArrowRight")L=z}else{if(p.key==="ArrowUp")L=-z;if(p.key==="ArrowDown")L=z}if(L!==0){p.preventDefault();let R=Math.max(10,Math.min(90,C+L));x.style.flexBasis=`${R}%`,M.style.flexBasis=`${100-R}%`}},[r]),P="horizontal";return Oo("div",{ref:(p)=>{if(l.current=p,typeof i==="function")i(p);else if(i)i.current=p},role:"separator","aria-orientation":"horizontal",tabIndex:r?-1:0,"data-panel-resize-handle":"","data-dragging":n,onMouseDown:d,onTouchStart:f,onKeyDown:c,className:o(bd({direction:"horizontal",withHandle:t}),n&&"bg-primary",r&&"pointer-events-none opacity-50",e),...a,children:t&&Oo("div",{className:o(yd({direction:"horizontal"}))},void 0,!1,void 0,this)},void 0,!1,void 0,this)});Td.displayName="ResizableHandle";import*as rt from"@radix-ui/react-scroll-area";import{cva as Xa}from"class-variance-authority";import{forwardRef as xd}from"react";import{jsxDEV as Mr}from"react/jsx-dev-runtime";var Cd=Xa("relative overflow-hidden"),Xv={display:"flex",flexDirection:"column"},qv={flex:"1 1 0%",minHeight:0},Sd=Xa("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"}}),zd=Xa("relative flex-1 rounded-full bg-border"),wd=xd(({className:e,children:t,style:r,...a},i)=>Mr(rt.Root,{ref:i,className:o(Cd(),e),style:{...r,...Xv},...a,children:[Mr(rt.Viewport,{className:"w-full rounded-[inherit]",style:qv,children:t},void 0,!1,void 0,this),Mr(qa,{},void 0,!1,void 0,this),Mr(rt.Corner,{},void 0,!1,void 0,this)]},void 0,!0,void 0,this));wd.displayName="ScrollArea";var qa=xd(({className:e,orientation:t="vertical",...r},a)=>Mr(rt.ScrollAreaScrollbar,{ref:a,orientation:t,className:o(Sd({orientation:t}),e),...r,children:Mr(rt.ScrollAreaThumb,{className:o(zd())},void 0,!1,void 0,this)},void 0,!1,void 0,this));qa.displayName="ScrollBar";import{cva as Ja}from"class-variance-authority";import{createContext as Zv,forwardRef as Qa,useCallback as Md,useContext as Rd,useEffect as Za,useLayoutEffect as Jv,useRef as Nd,useState as Ld}from"react";import{jsxDEV as Yt}from"react/jsx-dev-runtime";var Me={sm:"sm",md:"md",lg:"lg"},Hd=Ja("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}}),kd=Ja(["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}}),Ad=Ja(["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}}),Ea=Zv({activeValue:"",onSelect:()=>{},size:Me.md,disabled:!1}),Qv=typeof window<"u"?Jv:Za,Id=Qa(({className:e,value:t,defaultValue:r,onValueChange:a,size:i,disabled:n=!1,children:s,...l},m)=>{let d=u(i),f=Nd(null),[c,P]=Ld(r??""),[p,v]=Ld(null),S=Nd(!0),N=t!==void 0?t:c,z=Md((b)=>{if(n)return;if(t===void 0)P(b);a?.(b)},[n,t,a]),T=Md(()=>{let b=f.current;if(!b)return;let x=b.querySelector('[data-state="active"]');if(!x){v(null);return}let M=b.getBoundingClientRect(),C=x.getBoundingClientRect();v({left:C.left-M.left,width:C.width})},[]);return Qv(()=>{T()},[T,N]),Za(()=>{if(S.current)requestAnimationFrame(()=>{S.current=!1})},[]),Za(()=>{let b=f.current;if(!b)return;let x=new MutationObserver(()=>{T()});return x.observe(b,{attributes:!0,attributeFilter:["data-state"],subtree:!0}),()=>x.disconnect()},[T]),Yt(Ea.Provider,{value:{activeValue:N,onSelect:z,size:d,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(Hd({size:d}),n&&"opacity-50 pointer-events-none",e),...l,children:[p&&Yt("span",{"aria-hidden":"true",className:o("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)});Id.displayName="SegmentedControl";var Vd=Qa(({className:e,value:t,icon:r,disabled:a=!1,...i},n)=>{let{activeValue:s,onSelect:l,size:m,disabled:d}=Rd(Ea),f=s===t,c=a||d;return Yt("button",{ref:n,type:"button",role:"radio","aria-checked":f,"aria-disabled":c||void 0,"data-state":f?"active":"inactive","data-value":t,disabled:c,onClick:()=>l(t),className:o(kd({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)});Vd.displayName="SegmentedControlItem";var Bd=Qa(({className:e,value:t,icon:r,disabled:a=!1,children:i,...n},s)=>{let{activeValue:l,onSelect:m,size:d,disabled:f}=Rd(Ea),c=l===t,P=a||f;return Yt("button",{ref:s,type:"button",role:"radio","aria-checked":c,"aria-disabled":P||void 0,"data-state":c?"active":"inactive","data-value":t,disabled:P,onClick:()=>m(t),className:o(Ad({size:d,active:c}),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)});Bd.displayName="SegmentedControlLabelItem";import*as zt from"@radix-ui/react-popover";import{cva as Fd}from"class-variance-authority";import{Check as Ev,ChevronDown as jv,X as eb}from"lucide-react";import{Children as tb,createContext as rb,forwardRef as io,isValidElement as ob,useCallback as Wo,useContext as _d,useEffect as $o,useId as Dd,useMemo as ab,useRef as Od,useState as oo}from"react";import{jsxDEV as ae,Fragment as pb}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"},ib={start:"start",center:"center",end:"end"},Gd=Fd(["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}}),Wd=Fd(["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}}),nb={[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"},sb={[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 ja(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)=>ja(t)).join("");if(ob(e))return ja(e.props.children);return""}var ei=rb(null);function Ko(){let e=_d(ei);if(!e)throw Error("Select components must be used within Select");return e}function ti(e){let t=_d(ei);if(e)return e;return t?.triggerSize??Q.md}var lb=({children:e,value:t,defaultValue:r="",onValueChange:a,open:i,defaultOpen:n=!1,onOpenChange:s,disabled:l=!1})=>{let[m,d]=oo(Q.md),[f,c]=oo(!1),[P,p]=oo(r),[v,S]=oo(n),[N,z]=oo(0),T=Od(new Map),b=t!==void 0,x=i!==void 0,M=b?t:P,C=x?i:v,L=Wo((I)=>{if(!b)p(I);if(a?.(I),!x)S(!1);s?.(!1)},[b,x,a,s]),R=Wo((I)=>{if(l)return;if(!x)S(I);s?.(I)},[l,x,s]),_=Wo((I,h)=>{if(T.current.get(I)!==h)T.current.set(I,h),z((J)=>J+1)},[]),G=Wo((I)=>{return T.current.get(I)},[]),O=Dd(),U=Dd(),w=ab(()=>({value:M,onValueChange:L,open:C,onOpenChange:R,triggerSize:m,setTriggerSize:d,triggerFullWidth:f,setTriggerFullWidth:c,disabled:l,triggerId:O,contentId:U,registerItem:_,getLabel:G}),[M,L,C,R,m,f,l,O,U,_,G,N]);return ae(ei.Provider,{value:w,children:ae(zt.Root,{open:C,onOpenChange:R,children:e},void 0,!1,void 0,this)},void 0,!1,void 0,this)},mb=({children:e,className:t})=>ae("div",{role:"group",className:t,children:e},void 0,!1,void 0,this),db=({placeholder:e})=>{let{value:t,getLabel:r}=Ko();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(pb,{children:a??t},void 0,!1,void 0,this)},$d=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:d,onKeyDown:f,...c},P)=>{let p=Ko(),v=u(r)??r,S=p.setTriggerSize,N=p.setTriggerFullWidth;$o(()=>{S(v)},[v,S]),$o(()=>{N(i)},[i,N]);let z=p.value.length>0,T=n&&z&&!p.disabled,b=(C)=>{C.stopPropagation(),C.preventDefault(),p.onValueChange("")},x;if(m)x=z?m(p.value):d?ae("span",{className:"text-muted-foreground",children:d},void 0,!1,void 0,this):null;else x=t;let M=(C)=>{if(f?.(C),C.defaultPrevented)return;if(C.key==="ArrowDown"||C.key==="ArrowUp"||C.key==="Enter"||C.key===" "){if(!p.open)C.preventDefault(),p.onOpenChange(!0)}};return ae(zt.Trigger,{asChild:!0,children:ae("button",{ref:P,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":z?void 0:"",className:o(Gd({size:v,status:a}),i?"w-full":"w-auto",e),onKeyDown:M,...c,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:x},void 0,!1,void 0,this),ae("span",{className:"inline-flex shrink-0 items-center gap-1 text-muted-foreground",children:[T&&ae("span",{role:"button",tabIndex:-1,"aria-label":"Clear selection",onMouseDown:(C)=>C.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(eb,{className:Uo[v]},void 0,!1,void 0,this)},void 0,!1,void 0,this),l??ae(jv,{className:o(Uo[v],"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)});$d.displayName="SelectTrigger";var Ud=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:d,...f},c)=>{let P=Ko(),p=ti(a),v=r??ao.auto,S=Od(null),N=Kr(c,S),z=(x)=>{let M=S.current;if(!M)return;let C=Array.from(M.querySelectorAll('[role="option"]:not([data-disabled])'));if(C.length===0)return;let L=M.querySelector('[role="option"]:focus'),R=L?C.indexOf(L):-1,_;switch(x){case"first":_=C[0];break;case"last":_=C[C.length-1];break;case"next":_=C[R+1]??C[0];break;case"prev":_=C[R-1]??C[C.length-1];break}_?.focus()},T=(x)=>{if(d?.(x),x.defaultPrevented)return;switch(x.key){case"ArrowDown":x.preventDefault(),z("next");break;case"ArrowUp":x.preventDefault(),z("prev");break;case"Home":x.preventDefault(),z("first");break;case"End":x.preventDefault(),z("last");break;case"Escape":x.preventDefault(),P.onOpenChange(!1);break}};$o(()=>{if(P.open)requestAnimationFrame(()=>z("first"))},[P.open]);let b=ae(zt.Content,{ref:N,id:P.contentId,role:"listbox","aria-labelledby":P.triggerId,side:n,align:i,sideOffset:s,forceMount:m,onKeyDown:T,onOpenAutoFocus:(x)=>x.preventDefault(),className:o(Tr(),Wd({widthMode:v,size:p}),"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});Ud.displayName="SelectContent";var Kd=io(({className:e,size:t,...r},a)=>{let i=ti(t);return ae("div",{ref:a,className:o("font-semibold text-foreground",sb[i],e),...r},void 0,!1,void 0,this)});Kd.displayName="SelectLabel";var Yd=io(({className:e,children:t,value:r,label:a,size:i,disabled:n=!1,...s},l)=>{let m=Ko(),d=ti(i),f=m.value===r,c=m.registerItem,P=ja(tb.toArray(t)).trim();$o(()=>{let S=a??(P.length>0?P:r);c(r,S)},[P,r,a,c]);let p=()=>{if(!n)m.onValueChange(r)},v=(S)=>{if(S.key==="Enter"||S.key===" ")S.preventDefault(),p()};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",nb[d],f&&"bg-accent/50",e),onClick:p,onKeyDown:v,...s,children:[ae("span",{className:o("flex shrink-0 items-center justify-center",Uo[d]),children:f&&ae(Ev,{className:Uo[d]},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)});Yd.displayName="SelectItem";var Xd=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));Xd.displayName="SelectSeparator";import{cva as cb}from"class-variance-authority";import{forwardRef as ub}from"react";import{jsxDEV as fb}from"react/jsx-dev-runtime";var no={horizontal:"horizontal",vertical:"vertical"},qd=cb("shrink-0 bg-border",{variants:{orientation:{[no.horizontal]:"h-px w-full",[no.vertical]:"h-full w-px"}},defaultVariants:{orientation:no.horizontal}}),Zd=ub(({className:e,orientation:t=no.horizontal,decorative:r=!0,...a},i)=>{let n=r?{role:"none"}:{role:"separator","aria-orientation":t};return fb("div",{ref:i,className:o(qd({orientation:t}),e),...n,...a},void 0,!1,void 0,this)});Zd.displayName="Separator";import{cva as Yo}from"class-variance-authority";import{forwardRef as Xo}from"react";import{jsxDEV as qo}from"react/jsx-dev-runtime";var pe={sm:"sm",md:"md",lg:"lg"},Jd=Yo("animate-pulse rounded-[var(--radius)] bg-muted"),Qd=Yo("w-full",{variants:{size:{[pe.sm]:"h-3",[pe.md]:"h-4",[pe.lg]:"h-5"}},defaultVariants:{size:pe.md}}),Ed=Yo("",{variants:{size:{[pe.sm]:"h-8 w-8",[pe.md]:"h-10 w-10",[pe.lg]:"h-12 w-12"}},defaultVariants:{size:pe.md}}),jd=Yo("",{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=Xo(({className:e,circle:t=!1,...r},a)=>qo("div",{ref:a,className:o(Jd(),t&&"rounded-full",e),...r},void 0,!1,void 0,this));so.displayName="Skeleton";var ep=Xo(({className:e,size:t=pe.md,...r},a)=>{let i=u(t)??pe.md;return qo(so,{ref:a,className:o(Qd({size:i}),e),...r},void 0,!1,void 0,this)});ep.displayName="SkeletonText";var tp=Xo(({className:e,size:t=pe.md,...r},a)=>{let i=u(t)??pe.md;return qo(so,{ref:a,circle:!0,className:o(Ed({size:i}),e),...r},void 0,!1,void 0,this)});tp.displayName="SkeletonAvatar";var rp=Xo(({className:e,size:t=pe.md,...r},a)=>{let i=u(t)??pe.md;return qo(so,{ref:a,className:o(jd({size:i}),e),...r},void 0,!1,void 0,this)});rp.displayName="SkeletonButton";import*as wt from"@radix-ui/react-slider";import{cva as Qo}from"class-variance-authority";import{forwardRef as gb}from"react";import{jsxDEV as Jo}from"react/jsx-dev-runtime";var Zo={sm:"sm",md:"md",lg:"lg"},op=Qo("relative flex w-full touch-none select-none items-center",{variants:{size:{[Zo.sm]:"[&_[data-slider-track]]:h-0.5 [&_[data-slider-thumb]]:h-3 [&_[data-slider-thumb]]:w-3",[Zo.md]:"[&_[data-slider-track]]:h-2 [&_[data-slider-thumb]]:h-5 [&_[data-slider-thumb]]:w-5",[Zo.lg]:"[&_[data-slider-track]]:h-3 [&_[data-slider-thumb]]:h-6 [&_[data-slider-thumb]]:w-6"}},defaultVariants:{size:Zo.md}}),ap=Qo("relative w-full grow overflow-hidden rounded-full bg-secondary"),ip=Qo("absolute h-full bg-primary"),np=Qo("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=gb(({className:e,size:t,...r},a)=>{let i=u(t);return Jo(wt.Root,{ref:a,className:o(op({size:i}),e),...r,children:[Jo(wt.Track,{"data-slider-track":!0,className:o(ap()),children:Jo(wt.Range,{className:o(ip())},void 0,!1,void 0,this)},void 0,!1,void 0,this),(r.defaultValue??r.value??[0]).map((n,s)=>Jo(wt.Thumb,{"data-slider-thumb":!0,className:o(np())},`thumb-${String(s)}`,!1,void 0,this))]},void 0,!0,void 0,this)});sp.displayName="Slider";import{cva as ye}from"class-variance-authority";import{forwardRef as yb,useCallback as Lr,useEffect as ii,useMemo as Eo,useRef as mp,useState as jo}from"react";import{createPortal as Pb}from"react-dom";import{useCallback as vb,useEffect as bb,useRef as lp}from"react";function ai(e,t,r={}){let{enabled:a=!0,preventDefault:i=!0,stopPropagation:n=!1,target:s="global"}=r,l=lp(t);l.current=t;let m=lp([]),d=Array.isArray(e)?e:[e];m.current=d.map((c)=>({combo:c,def:ri(c)}));let f=vb((c)=>{if(!a)return;for(let{combo:P,def:p}of m.current)if(oi(c,p)){if(i)c.preventDefault();if(n)c.stopPropagation();l.current(c,P);return}},[a,i,n]);bb(()=>{if(!a)return;let c=s==="global"?document:s.current;if(!c)return;return c.addEventListener("keydown",f),()=>{c.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"},dp=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"}}),pp=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"}}),cp=ye("flex items-center gap-3 border-b border-border px-4 py-3"),up=ye(["w-full flex-1 bg-transparent text-foreground text-base","placeholder:text-muted-foreground","outline-none border-none"]),fp=ye("size-4 text-muted-foreground shrink-0"),ea=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"]),gp=ye("overflow-y-auto max-h-80 py-1"),vp=ye("px-3 py-2 text-xs font-semibold text-muted-foreground uppercase tracking-wide"),bp=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}}),yp=ye("size-4 shrink-0",{variants:{selected:{true:"text-primary",false:"text-muted-foreground"}},defaultVariants:{selected:!1}}),Pp=ye("flex-1 min-w-0"),hp=ye("text-sm font-medium truncate"),Tp=ye("text-xs text-muted-foreground truncate"),xp=ye("flex items-center gap-1 text-[11px] text-muted-foreground shrink-0"),ta=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"}}),ra=ye("text-sm font-medium"),Cp=ye("text-xs mt-1"),hb=(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},Sp=yb(({className:e,open:t,onOpenChange:r,actions:a,onActionSelect:i,value:n,defaultValue:s="",onValueChange:l,placeholder:m="Search commands, pages, or actions...",size:d=Xt.md,status:f=Rr.idle,statusMessage:c,emptyText:P="No command found for this query.",hotkey:p,portal:v=!0,...S},N)=>{let z=mp(null),T=mp(null),[b,x]=jo(s),[M,C]=jo(0),[L,R]=jo(!1),[_,G]=jo(!1),{isMac:O}=Yr(),U=Lr((A)=>Xr(A,O),[O]),w=Eo(()=>p&&p.length>0?p.join("+"):null,[p]);ai(w??"",()=>r(!t),{enabled:!!w});let I=n!==void 0?n:b,h=Eo(()=>a.filter((A)=>hb(A,I)),[a,I]),V=Eo(()=>h.map((A,j)=>A.disabled?-1:j).filter((A)=>A>=0),[h]),J=Eo(()=>{let A=new Map,j=new Map,ie=0;for(let Ne of h){let At=Ne.group??"";if(!A.has(At))A.set(At,[]);A.get(At).push(Ne),j.set(Ne,ie),ie++}return{groups:A,indexMap:j}},[h]);ii(()=>{if(t){R(!0),G(!1),C(0);return}if(L)G(!0)},[t]);let k=Lr(()=>{if(_)R(!1),G(!1)},[_]);ii(()=>{if(t)document.body.style.overflow="hidden";else document.body.style.overflow="";return()=>{document.body.style.overflow=""}},[t]),ii(()=>{if(t&&L)requestAnimationFrame(()=>z.current?.focus())},[t,L]);let Y=Lr((A)=>{let j=A.target.value;x(j),l?.(j),C(0)},[l]),g=Lr((A)=>{let j=T.current;if(!j)return;j.querySelectorAll('[role="option"]')[A]?.scrollIntoView({block:"nearest"})},[]),y=Lr((A)=>{if(A.key==="Escape"){A.preventDefault(),r(!1);return}if(A.key==="ArrowDown"){if(A.preventDefault(),V.length===0)return;let ie=(V.indexOf(M)+1)%V.length,Ne=V[ie];C(Ne),g(Ne);return}if(A.key==="ArrowUp"){if(A.preventDefault(),V.length===0)return;let ie=(V.indexOf(M)-1+V.length)%V.length,Ne=V[ie];C(Ne),g(Ne);return}if(A.key==="Enter"){A.preventDefault();let j=h[M];if(j&&!j.disabled)i(j,M)}},[M,V,h,i,r,g]),H=Lr((A,j)=>{if(A.disabled)return;i(A,j)},[i]);if(!L)return null;let ce=_?"closing":"open",q=f===Rr.idle,Ae=f!==Rr.idle,E=Z("div",{ref:N,role:"dialog","aria-modal":"true",onKeyDown:y,className:o(e),...S,children:[Z("div",{"data-testid":"spotlight-overlay",className:o(dp({state:ce})),onClick:()=>r(!1),onKeyDown:(A)=>{if(A.key==="Escape")r(!1)}},void 0,!1,void 0,this),Z("div",{className:o(pp({size:d,state:ce})),onAnimationEnd:k,children:[Z("div",{className:o(cp()),children:[Z("svg",{className:o(fp()),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:z,type:"text",value:I,onChange:Y,placeholder:m,className:o(up())},void 0,!1,void 0,this),p?Z("div",{className:"flex items-center gap-1",children:p.map((A)=>Z("kbd",{className:o(ea()),children:U(A)},A,!1,void 0,this))},void 0,!1,void 0,this):Z("kbd",{className:o(ea()),children:"ESC"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Ae&&f===Rr.loading&&Z("div",{className:o(ta({state:"loading"})),children:Z("div",{className:o(ra()),children:"Searching commands..."},void 0,!1,void 0,this)},void 0,!1,void 0,this),Ae&&f===Rr.error&&Z("div",{className:o(ta({state:"error"})),children:[Z("div",{className:o(ra()),children:"Search failed"},void 0,!1,void 0,this),c&&Z("div",{className:o(Cp()),children:c},void 0,!1,void 0,this)]},void 0,!0,void 0,this),q&&h.length===0&&Z("div",{className:o(ta({state:"empty"})),children:Z("div",{className:o(ra()),children:P},void 0,!1,void 0,this)},void 0,!1,void 0,this),q&&h.length>0&&Z("div",{ref:T,className:o(gp()),children:Array.from(J.groups.entries()).map(([A,j])=>Z("div",{children:[A&&Z("div",{className:o(vp()),children:A},void 0,!1,void 0,this),j.map((ie)=>{let Ne=J.indexMap.get(ie)??0,At=Ne===M;return Z("div",{role:"option","aria-selected":At,"aria-disabled":ie.disabled??!1,onClick:()=>H(ie,Ne),className:o(bp({selected:At,disabled:ie.disabled??!1})),children:[ie.icon&&Z("span",{className:o(yp({selected:At})),children:ie.icon},void 0,!1,void 0,this),Z("div",{className:o(Pp()),children:[Z("div",{className:o(hp()),children:ie.title},void 0,!1,void 0,this),ie.description&&Z("div",{className:o(Tp()),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(xp()),children:ie.shortcut.map((Si)=>Z("kbd",{className:o(ea()),children:U(Si)},Si,!1,void 0,this))},void 0,!1,void 0,this)]},ie.id,!0,void 0,this)})]},A||"__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 Pb(E,document.body);return E});Sp.displayName="Spotlight";import{cva as Tb}from"class-variance-authority";import{forwardRef as xb}from"react";import{jsxDEV as Mt}from"react/jsx-dev-runtime";var Oe={sm:"sm",md:"md",lg:"lg"},qt={up:"up",down:"down",neutral:"neutral"},zp=Tb("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:{[Oe.sm]:"gap-1 p-3",[Oe.md]:"gap-1.5 p-4",[Oe.lg]:"gap-2 p-5"}},defaultVariants:{size:Oe.md}}),Cb={[Oe.sm]:"text-lg font-semibold",[Oe.md]:"text-2xl font-bold",[Oe.lg]:"text-3xl font-bold"},Sb={[Oe.sm]:"text-xs",[Oe.md]:"text-sm",[Oe.lg]:"text-base"},zb={[qt.up]:"text-success",[qt.down]:"text-destructive",[qt.neutral]:"text-muted-foreground"},wb={[qt.up]:"↑",[qt.down]:"↓",[qt.neutral]:"→"},wp=xb(({className:e,size:t=Oe.md,label:r,value:a,trend:i,trendValue:n,icon:s,...l},m)=>{let d=u(t);return Mt("div",{ref:m,className:o(zp({size:d}),e),...l,children:[Mt("div",{className:"flex items-center justify-between",children:[Mt("span",{className:o("text-muted-foreground",Sb[d]),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",Cb[d]),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",zb[i]),children:[Mt("span",{"aria-hidden":"true",children:wb[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)});wp.displayName="StatCard";import{cva as Zt}from"class-variance-authority";import{Check as Mb}from"lucide-react";import{forwardRef as Jt}from"react";import{jsxDEV as Nt}from"react/jsx-dev-runtime";var Mp=Zt("flex w-full",{variants:{orientation:{horizontal:"flex-row items-start",vertical:"flex-col"}},defaultVariants:{orientation:"horizontal"}}),Np=Zt("flex",{variants:{orientation:{horizontal:"flex-1 flex-col items-center",vertical:"gap-4 flex-row"}},defaultVariants:{orientation:"horizontal"}}),Lp=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}}),Rp=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}}),Hp=Zt("flex flex-col",{variants:{orientation:{horizontal:"mt-3 items-center text-center",vertical:"flex-1 pb-8 last:pb-0"}},defaultVariants:{orientation:"horizontal"}}),kp=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"}}),Ap=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 Ip=Jt(({className:e,orientation:t="horizontal",activeStep:r,...a},i)=>{return Nt("div",{ref:i,role:"group","aria-label":"Progress steps",className:o(Mp({orientation:t}),e),"data-orientation":t,"data-active-step":r,...a},void 0,!1,void 0,this)});Ip.displayName="Stepper";var Vp=Jt(({className:e,orientation:t="horizontal",isLast:r,isCurrent:a,...i},n)=>{return Nt("div",{ref:n,className:o(Np({orientation:t}),e),"data-last":r,"aria-current":a?"step":void 0,...i},void 0,!1,void 0,this)});Vp.displayName="Step";var Bp=Jt(({className:e,status:t="incomplete",size:r="md",icon:a,step:i,children:n,animated:s=!0,...l},m)=>{let d=u(r);return Nt("div",{ref:m,className:o(Lp({status:t,size:d,animated:s}),e),"data-status":t,"aria-hidden":"true",...l,children:t==="complete"?a||Nt(Mb,{className:"size-4",strokeWidth:3},void 0,!1,void 0,this):n||i},void 0,!1,void 0,this)});Bp.displayName="StepIndicator";var Dp=Jt(({className:e,orientation:t="horizontal",status:r="incomplete",size:a="md",animated:i=!0,...n},s)=>{let l=u(a);return Nt("div",{ref:s,className:o(Rp({orientation:t,status:r,size:l,animated:i}),e),"data-status":r,...n},void 0,!1,void 0,this)});Dp.displayName="StepConnector";var Fp=Jt(({className:e,orientation:t="horizontal",...r},a)=>{return Nt("div",{ref:a,className:o(Hp({orientation:t}),e),...r},void 0,!1,void 0,this)});Fp.displayName="StepContent";var _p=Jt(({className:e,status:t="incomplete",size:r="md",...a},i)=>{let n=u(r);return Nt("h4",{ref:i,className:o(kp({status:t,size:n}),e),...a},void 0,!1,void 0,this)});_p.displayName="StepTitle";var Op=Jt(({className:e,size:t="md",...r},a)=>{let i=u(t);return Nt("p",{ref:a,className:o(Ap({size:i}),e),...r},void 0,!1,void 0,this)});Op.displayName="StepDescription";import*as oa from"@radix-ui/react-switch";import{cva as Nb}from"class-variance-authority";import{forwardRef as Lb}from"react";import{jsxDEV as Gp}from"react/jsx-dev-runtime";var Se={sm:"sm",md:"md",lg:"lg",xl:"xl"},Hr={default:"default",error:"error",success:"success"},Wp=Nb("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}}),Rb={[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"},Hb={[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"},$p=Lb(({className:e,size:t=Se.md,status:r=Hr.default,checked:a,disabled:i,...n},s)=>{let l=u(t);return Gp(oa.Root,{ref:s,checked:a,disabled:i,className:o(Wp({size:l,status:r}),e),...n,children:Gp(oa.Thumb,{className:o("pointer-events-none block rounded-full bg-background shadow-sm transition-transform duration-150",Rb[l],Hb[l])},void 0,!1,void 0,this)},void 0,!1,void 0,this)});$p.displayName="Switch";import{cva as ct}from"class-variance-authority";import{createContext as kb,forwardRef as Lt,useContext as Up}from"react";import{jsxDEV as ot}from"react/jsx-dev-runtime";var he={sm:"sm",md:"md",lg:"lg"},ni=kb(he.md),Kp=ct("relative w-full overflow-auto rounded-[var(--radius)] border border-border bg-card shadow-[var(--shadow-sm)]"),Yp=ct("w-full caption-bottom",{variants:{size:{[he.sm]:"text-xs",[he.md]:"text-sm",[he.lg]:"text-sm"}},defaultVariants:{size:he.md}}),Xp=ct("sticky top-0 z-[1] [&_tr]:border-b [&_tr]:border-border [&_th]:bg-muted"),qp=ct("[&_tr:last-child]:border-0"),Zp=ct("border-t border-border bg-muted font-medium text-muted-foreground [&>tr]:last:border-b-0"),Jp=ct("gs-interactive border-b border-border hover:bg-muted/50 data-[state=selected]:bg-primary/10"),Qp=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}}),Ep=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}}),jp=ct("mt-4 text-sm text-muted-foreground"),ec=Lt(({className:e,containerClassName:t,size:r=he.md,...a},i)=>{let n=u(r)??he.md;return ot(ni.Provider,{value:n,children:ot("div",{className:o(Kp(),t),children:ot("table",{ref:i,className:o(Yp({size:n}),e),...a},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)});ec.displayName="Table";var tc=Lt(({className:e,...t},r)=>ot("thead",{ref:r,className:o(Xp(),e),...t},void 0,!1,void 0,this));tc.displayName="TableHeader";var rc=Lt(({className:e,...t},r)=>ot("tbody",{ref:r,className:o(qp(),e),...t},void 0,!1,void 0,this));rc.displayName="TableBody";var oc=Lt(({className:e,...t},r)=>ot("tfoot",{ref:r,className:o(Zp(),e),...t},void 0,!1,void 0,this));oc.displayName="TableFooter";var ac=Lt(({className:e,...t},r)=>ot("tr",{ref:r,className:o(Jp(),e),...t},void 0,!1,void 0,this));ac.displayName="TableRow";var ic=Lt(({className:e,size:t,...r},a)=>{let i=Up(ni);return ot("th",{ref:a,className:o(Qp({size:t??i}),e),...r},void 0,!1,void 0,this)});ic.displayName="TableHead";var nc=Lt(({className:e,size:t,...r},a)=>{let i=Up(ni);return ot("td",{ref:a,className:o(Ep({size:t??i}),e),...r},void 0,!1,void 0,this)});nc.displayName="TableCell";var sc=Lt(({className:e,...t},r)=>ot("caption",{ref:r,className:o(jp(),e),...t},void 0,!1,void 0,this));sc.displayName="TableCaption";import*as Qe from"@radix-ui/react-tabs";import{cva as si}from"class-variance-authority";import{createContext as Ab,forwardRef as li,useCallback as lc,useContext as Ib,useEffect as mi,useLayoutEffect as Vb,useRef as aa,useState as Bb}from"react";import{jsxDEV as lo}from"react/jsx-dev-runtime";var at={sm:"sm",md:"md",lg:"lg",xl:"xl"},mc=si("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}}),dc=si("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}}),pc=si("mt-3 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2"),cc=Ab({registerTrigger:()=>{}}),Db=typeof window<"u"?Vb:mi,Fb=Qe.Root,uc=li(({className:e,size:t,children:r,...a},i)=>{let n=u(t),s=aa(null),l=aa(new Map),[m,d]=Bb(null),f=aa(!0),c=lc((p,v)=>{if(v)l.current.set(p,v);else l.current.delete(p)},[]),P=lc(()=>{let p=s.current;if(!p)return;let v=p.querySelector('[data-state="active"]');if(!v){d(null);return}let S=p.getBoundingClientRect(),N=v.getBoundingClientRect();d({left:N.left-S.left,width:N.width})},[]);return Db(()=>{P()},[P]),mi(()=>{let p=s.current;if(!p)return;let v=new MutationObserver(()=>{f.current=!1,P()});return v.observe(p,{attributes:!0,attributeFilter:["data-state"],subtree:!0}),()=>v.disconnect()},[P]),lo(cc.Provider,{value:{registerTrigger:c},children:lo(Qe.List,{ref:(p)=>{if(s.current=p,typeof i==="function")i(p);else if(i)i.current=p},className:o(mc({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)});uc.displayName=Qe.List.displayName;var fc=li(({className:e,size:t,value:r,...a},i)=>{let n=u(t),{registerTrigger:s}=Ib(cc),l=aa(null);return mi(()=>{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(dc({size:n}),e),...a},void 0,!1,void 0,this)});fc.displayName=Qe.Trigger.displayName;var gc=li(({className:e,...t},r)=>lo(Qe.Content,{ref:r,className:o(pc(),e),...t},void 0,!1,void 0,this));gc.displayName=Qe.Content.displayName;import{cva as _b}from"class-variance-authority";import{forwardRef as Ob}from"react";import{jsxDEV as Gb}from"react/jsx-dev-runtime";var mo={default:"default",error:"error",success:"success"},kr={sm:"sm",md:"md",lg:"lg",xl:"xl"},vc=_b("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}}),bc=Ob(({className:e,status:t=mo.default,size:r=kr.md,fullWidth:a=!1,noResize:i=!1,disabled:n,...s},l)=>{let m=u(r);return Gb("textarea",{ref:l,className:o(vc({status:t,size:m}),n&&"bg-muted",a&&"w-full",i&&"resize-none",e),disabled:n,...s},void 0,!1,void 0,this)});bc.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 yc=Rt("relative flex flex-col"),Pc=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}}),hc=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}}),Tc=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}}),xc=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)]"),Cc=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"}}),Sc=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"}}),zc=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 wc=Ht(({className:e,...t},r)=>{return it("div",{ref:r,role:"list","aria-label":"Timeline events",className:o(yc(),e),...t},void 0,!1,void 0,this)});wc.displayName="Timeline";var Mc=Ht(({className:e,align:t,isLast:r,animated:a=!0,...i},n)=>{return it("div",{ref:n,role:"listitem",className:o(Pc({align:t,animated:a}),e),"data-last":r,...i},void 0,!1,void 0,this)});Mc.displayName="TimelineItem";var Nc=Ht(({className:e,variant:t,size:r,animated:a=!0,...i},n)=>{let s=u(r);return it("div",{ref:n,className:o(hc({variant:t,size:s,animated:a}),e),...i},void 0,!1,void 0,this)});Nc.displayName="TimelineConnector";var Lc=Ht(({className:e,variant:t,size:r,icon:a,children:i,pulse:n=!1,animated:s=!0,...l},m)=>{let d=u(r);return it("div",{ref:m,className:o(Tc({variant:t,size:d,pulse:n,animated:s}),e),"aria-hidden":"true",...l,children:a||i||it(Wb,{},void 0,!1,void 0,this)},void 0,!1,void 0,this)});Lc.displayName="TimelineDot";var Rc=Ht(({className:e,...t},r)=>{return it("div",{ref:r,className:o(xc(),e),...t},void 0,!1,void 0,this)});Rc.displayName="TimelineContent";var Hc=Ht(({className:e,size:t,...r},a)=>{let i=u(t);return it("h4",{ref:a,className:o(Cc({size:i}),e),...r},void 0,!1,void 0,this)});Hc.displayName="TimelineTitle";var kc=Ht(({className:e,size:t,...r},a)=>{let i=u(t);return it("p",{ref:a,className:o(Sc({size:i}),e),...r},void 0,!1,void 0,this)});kc.displayName="TimelineDescription";var Ac=Ht(({className:e,size:t,...r},a)=>{let i=u(t);return it("time",{ref:a,className:o(zc({size:i}),e),...r},void 0,!1,void 0,this)});Ac.displayName="TimelineTime";function Wb(){return it("span",{className:"size-2 rounded-full bg-current"},void 0,!1,void 0,this)}import{cva as Ic}from"class-variance-authority";var Ar={default:"default",success:"success",info:"info",warning:"warning",error:"error"},Ge={sm:"sm",md:"md",lg:"lg"},di=Ic("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}}),pi=Ic("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 Qb,CheckCircle2 as Eb,Info as _c,X as jb,XCircle as ey}from"lucide-react";import{forwardRef as ty,useCallback as sa,useEffect as la,useRef as vi,useState as bi}from"react";import{useSyncExternalStore as $b}from"react";var Ub=5,Bc=5000,Kb=500,ci=0;function Yb(){return ci=(ci+1)%Number.MAX_SAFE_INTEGER,`toast-${ci}-${Date.now()}`}var ui=new Set,We=[],Et=new Map,co=new Map,uo=!1,Qt=new Map;function ia(){for(let e of ui)e()}function Vc(){return We}function Xb(e){return ui.add(e),()=>{ui.delete(e)}}function fi(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),na(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 qb(e){clearTimeout(co.get(e));let t=setTimeout(()=>{We=We.filter((r)=>r.id!==e),co.delete(e),ia()},Kb);co.set(e,t)}function po(e){let t=e.id??Yb(),r=e.duration??Bc;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),fi(t,r),ia(),t;return We=[{...e,id:t,variant:e.variant??"default",dismissible:e.dismissible??!0,open:!0,createdAt:Date.now()},...We].slice(0,Ub),fi(t,r),ia(),t}function na(e){clearTimeout(Et.get(e)),Et.delete(e),Qt.delete(e),We=We.map((t)=>t.id===e?{...t,open:!1}:t),ia(),qb(e)}function Dc(){for(let e of We)na(e.id)}function Zb(){if(uo)return;uo=!0;for(let[e,t]of Et)clearTimeout(t),Et.delete(e)}function Jb(){if(!uo)return;uo=!1;for(let e of We)if(e.open){let t=Qt.get(e.id)??Bc;fi(e.id,t)}}var Fc=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:na,dismissAll:Dc});function gi(){return{toasts:$b(Xb,Vc,Vc),toast:Fc,dismiss:na,dismissAll:Dc,pauseAll:Zb,resumeAll:Jb}}import{jsxDEV as ze}from"react/jsx-dev-runtime";var Gc=10,Oc=0.05,ry=200,Wc="cubic-bezier(0.2, 0.8, 0.2, 1)",oy="cubic-bezier(0.22, 1, 0.36, 1)",ay={"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"},iy={success:(e)=>ze(Eb,{className:o("mt-0.5 shrink-0 text-success",e==="sm"?"size-4":"size-[18px]")},void 0,!1,void 0,this),info:(e)=>ze(_c,{className:o("mt-0.5 shrink-0 text-info",e==="sm"?"size-4":"size-[18px]")},void 0,!1,void 0,this),warning:(e)=>ze(Qb,{className:o("mt-0.5 shrink-0 text-warning",e==="sm"?"size-4":"size-[18px]")},void 0,!1,void 0,this),error:(e)=>ze(ey,{className:o("mt-0.5 shrink-0 text-destructive",e==="sm"?"size-4":"size-[18px]")},void 0,!1,void 0,this),default:(e)=>ze(_c,{className:o("mt-0.5 shrink-0 text-muted-foreground",e==="sm"?"size-4":"size-[18px]")},void 0,!1,void 0,this)};function ny(e,t,r,a,i){let n=e<a,s=r?i:e*Gc,l=r?1:n?1-e*Oc:1-a*Oc,m=n||r?1:0,d=t-e;return{offset:s,scale:l,opacity:m,zIndex:d}}var $c=ty(({position:e="bottom-right",gap:t=12,visibleCount:r=3,size:a=Ge.md,className:i,...n},s)=>{let{toasts:l,dismiss:m,pauseAll:d,resumeAll:f}=gi(),c=u(a)??Ge.md,[P,p]=bi(!1),[v,S]=bi({}),N=vi(null),z=vi(void 0),T=e.startsWith("bottom"),b=sa((h)=>{if(N.current=h,typeof s==="function")s(h);else if(s)s.current=h},[s]),x=sa(()=>{clearTimeout(z.current),p(!0),d()},[d]),M=sa(()=>{clearTimeout(z.current),z.current=setTimeout(()=>{p(!1),f()},ry)},[f]);la(()=>{return()=>clearTimeout(z.current)},[]);let C=sa((h,V)=>{S((J)=>{if(J[h]===V)return J;return{...J,[h]:V}})},[]);if(la(()=>{let h=new Set(l.map((V)=>V.id));S((V)=>{let J=!1,k={};for(let[Y,g]of Object.entries(V))if(h.has(Y))k[Y]=g;else J=!0;return J?k:V})},[l]),l.length===0)return null;let L=l.filter((h)=>h.open),R=new Map,_=0;for(let[h,V]of L.entries()){let J=v[V.id]??0;R.set(V.id,ny(h,L.length,P,r,_)),_+=J+t}let G=L[0],U=(G?v[G.id]??0:0)+Math.min(L.length-1,r-1)*Gc,w=_-(L.length>0?t:0),I=P?w:U;return ze("ol",{ref:b,role:"region","aria-label":"Notifications",tabIndex:-1,onMouseEnter:x,onMouseLeave:M,className:o("pointer-events-auto fixed z-[100] w-full max-w-[400px] outline-none",ay[e],i),style:{height:Math.max(I,0),transition:`height 400ms ${Wc}`},...n,children:l.map((h)=>{let V=!h.open,J=R.get(h.id);return ze(sy,{toast:h,layout:J??{offset:0,scale:1,opacity:0,zIndex:0},isClosed:V,isBottom:T,size:c,onDismiss:m,onMeasure:C},h.id,!1,void 0,this)})},void 0,!1,void 0,this)});$c.displayName="Toaster";function sy({toast:e,layout:t,isClosed:r,isBottom:a,size:i,onDismiss:n,onMeasure:s}){let l=vi(null),[m,d]=bi(!1);la(()=>{let v=requestAnimationFrame(()=>d(!0));return()=>cancelAnimationFrame(v)},[]),la(()=>{let v=l.current;if(!v)return;let S=new ResizeObserver((N)=>{for(let z of N){let T=z.borderBoxSize?.[0];if(T)s(e.id,T.blockSize)}});return S.observe(v),()=>S.disconnect()},[e.id,s]);let f=a?{bottom:0,left:0,right:0}:{top:0,left:0,right:0},c,P,p;if(!m)c=`translateY(${a?80:-80}px) scale(0.9)`,P=0,p="none";else if(r)c=`translateY(${a?80:-80}px) scale(0.95)`,P=0,p="none";else c=`translateY(${a?-t.offset:t.offset}px) scale(${t.scale})`,P=t.opacity,p="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:c,opacity:P,pointerEvents:p,transition:[`transform 400ms ${Wc}`,`opacity 250ms ${oy}`].join(", ")},children:ze("div",{className:o(di({variant:e.variant,size:i}),"w-full"),children:[iy[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(pi({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(jb,{},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}import*as Uc from"@radix-ui/react-toggle";import{cva as ly}from"class-variance-authority";import{forwardRef as my}from"react";import{jsxDEV as dy}from"react/jsx-dev-runtime";var yi={default:"default",outline:"outline"},ma={sm:"sm",md:"md",lg:"lg"},da=ly("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:{[yi.default]:"bg-transparent disabled:bg-transparent disabled:text-foreground/50",[yi.outline]:"border-input bg-transparent hover:bg-accent hover:text-accent-foreground disabled:bg-transparent disabled:text-foreground/50 disabled:border-border/50"},size:{[ma.sm]:"h-7 px-1.5 min-w-7 text-xs",[ma.md]:"h-10 px-3 min-w-10",[ma.lg]:"h-11 px-5 min-w-11"}},defaultVariants:{variant:yi.default,size:ma.md}}),Kc=my(({className:e,variant:t,size:r,...a},i)=>{let n=u(r);return dy(Uc.Root,{ref:i,className:o(da({variant:t,size:n}),e),...a},void 0,!1,void 0,this)});Kc.displayName="Toggle";import*as pa from"@radix-ui/react-toggle-group";import{cva as py}from"class-variance-authority";import{createContext as cy,forwardRef as Yc,useContext as uy}from"react";import{jsxDEV as Pi}from"react/jsx-dev-runtime";var fy={default:"default",outline:"outline"},gy={sm:"sm",md:"md",lg:"lg"},Xc=py("flex items-center justify-center gap-1"),qc=cy({size:gy.md,variant:fy.default}),Zc=Yc(({className:e,variant:t,size:r,children:a,...i},n)=>{let s=u(r);return Pi(pa.Root,{ref:n,className:o(Xc(),e),...i,children:Pi(qc.Provider,{value:{variant:t,size:s},children:a},void 0,!1,void 0,this)},void 0,!1,void 0,this)});Zc.displayName="ToggleGroup";var Jc=Yc(({className:e,children:t,variant:r,size:a,...i},n)=>{let s=uy(qc),l=u(a);return Pi(pa.Item,{ref:n,className:o(da({variant:r??s.variant,size:l??s.size}),e),...i,children:t},void 0,!1,void 0,this)});Jc.displayName="ToggleGroupItem";import{cva as Qc}from"class-variance-authority";import{forwardRef as ca}from"react";import{jsxDEV as ua}from"react/jsx-dev-runtime";var Ee={sm:"sm",md:"md",lg:"lg"},Ec=Qc("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}}),jc=ca(({className:e,size:t=Ee.md,...r},a)=>{let i=u(t);return ua("div",{ref:a,role:"toolbar",className:o(Ec({size:i}),e),...r},void 0,!1,void 0,this)});jc.displayName="Toolbar";var eu=Qc("flex items-center",{variants:{size:{[Ee.sm]:"gap-1",[Ee.md]:"gap-1.5",[Ee.lg]:"gap-2"}},defaultVariants:{size:Ee.md}}),tu=ca(({className:e,size:t=Ee.md,...r},a)=>{let i=u(t);return ua("div",{ref:a,role:"group",className:o(eu({size:i}),e),...r},void 0,!1,void 0,this)});tu.displayName="ToolbarGroup";var ru=ca(({className:e,...t},r)=>{return ua("div",{ref:r,role:"none",className:o("h-5 w-px shrink-0 bg-border",e),...t},void 0,!1,void 0,this)});ru.displayName="ToolbarSeparator";var ou=ca(({className:e,...t},r)=>{return ua("div",{ref:r,className:o("flex-1",e),...t},void 0,!1,void 0,this)});ou.displayName="ToolbarSpacer";import*as nt from"@radix-ui/react-tooltip";import{cva as vy}from"class-variance-authority";import{createContext as by,forwardRef as au,useContext as iu}from"react";import{jsxDEV as fo}from"react/jsx-dev-runtime";var yy=nt.Provider,hi=by(!1),nu=({persistOnClick:e=!1,children:t,...r})=>fo(hi.Provider,{value:e,children:fo(nt.Root,{...r,children:t},void 0,!1,void 0,this)},void 0,!1,void 0,this);nu.displayName="Tooltip";var su=au(({onClick:e,onPointerDown:t,...r},a)=>{let i=iu(hi);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)});su.displayName="TooltipTrigger";var Ir={sm:"sm",md:"md",lg:"lg"},lu=vy("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}}),mu=au(({className:e,sideOffset:t=4,onPointerDownOutside:r,size:a=Ir.md,...i},n)=>{let s=iu(hi),l=u(a);return fo(nt.Portal,{children:fo(nt.Content,{ref:n,sideOffset:t,className:o(lu({size:l}),e),onPointerDownOutside:s?(m)=>{m.preventDefault(),r?.(m)}:r,...i},void 0,!1,void 0,this)},void 0,!1,void 0,this)});mu.displayName="TooltipContent";import*as kt from"react";var Py=()=>{};function hy({prop:e,defaultProp:t,onChange:r=Py}){let[a,i]=Ty({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 Ty({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}import{createContext as xy,useCallback as Ti,useContext as Cy,useEffect as yu,useLayoutEffect as Sy,useMemo as zy,useRef as du,useState as xi}from"react";import{jsxDEV as My}from"react/jsx-dev-runtime";var pu=typeof window<"u"?Sy:yu,cu="gs-theme-transitioning";function Pu(){if(typeof window>"u")return"light";return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function Ci(e){if(e===jt.system)return Pu();return e}function uu(e,t,r,a,i){let n=Ci(r);if(a)e.classList.add(cu);if(e.setAttribute(gu,t),n==="dark")e.classList.add(go);else e.classList.remove(go);if(a)setTimeout(()=>e.classList.remove(cu),i)}function fa(e){try{return localStorage.getItem(e)}catch{return null}}function fu(e,t){try{localStorage.setItem(e,t)}catch{}}var hu=xy(null),Tu=({children:e,defaultTheme:t="ghostly-solutions",defaultColorScheme:r=jt.system,enableTransition:a=!1,transitionDuration:i=300,storageKey:n})=>{let s=n!==!1,l=typeof n==="string"?n:vu,m=typeof n==="string"?`${n}-color-scheme`:bu,[d,f]=xi(t),[c,P]=xi(r),[p,v]=xi("light"),S=du(!0),N=du(!1);pu(()=>{if(N.current)return;if(N.current=!0,s){let _=fa(l),G=fa(m);if(_)f(_);if(G==="light"||G==="dark"||G==="system")P(G)}let M=document.documentElement,C=fa(l)||t,L=fa(m),R=L==="light"||L==="dark"||L==="system"?L:r;uu(M,C,R,!1,i),v(Ci(R))},[]),pu(()=>{if(!N.current)return;let M=document.documentElement,C=!S.current&&a;S.current=!1,uu(M,d,c,C,i),v(Ci(c))},[d,c,a,i]),yu(()=>{if(c!==jt.system)return;let M=window.matchMedia("(prefers-color-scheme: dark)"),C=()=>{let L=Pu();v(L);let R=document.documentElement;if(L==="dark")R.classList.add(go);else R.classList.remove(go)};return M.addEventListener("change",C),()=>M.removeEventListener("change",C)},[c]);let z=Ti((M)=>{if(f(M),s)fu(l,M)},[s,l]),T=Ti((M)=>{if(P(M),s)fu(m,M)},[s,m]),b=Ti(()=>{let M=p==="dark"?jt.light:jt.dark;T(M)},[p,T]),x=zy(()=>({theme:d,setTheme:z,colorScheme:c,setColorScheme:T,resolvedColorScheme:p,toggleColorScheme:b}),[d,z,c,T,p,b]);return My(hu.Provider,{value:x,children:e},void 0,!1,void 0,this)};Tu.displayName="ThemeProvider";var wy=()=>{let e=Cy(hu);if(!e)throw Error("useTheme must be used within a ThemeProvider");return e};export{gi as useToast,wy as useTheme,Yr as usePlatform,Fv as useOverlay,ai as useHotkey,$r as useFormField,u as useDensitySize,Su as useDensity,hy as useControllableState,Kr as useComposedRefs,Bf as useCommandShortcut,La as useCommand,lu as tooltipContentVariants,Ec as toolbarVariants,eu as toolbarGroupVariants,da as toggleVariants,Xc as toggleGroupVariants,di as toastVariants,pi as toastActionVariants,Fc as toast,yc as timelineVariants,Cc as timelineTitleVariants,zc as timelineTimeVariants,Pc as timelineItemVariants,Tc as timelineDotVariants,Sc as timelineDescriptionVariants,xc as timelineContentVariants,hc as timelineConnectorVariants,vc as textareaVariants,dc as tabsTriggerVariants,mc as tabsListVariants,pc as tabsContentVariants,Yp as tableVariants,Jp as tableRowVariants,Xp as tableHeaderVariants,Qp as tableHeadVariants,Zp as tableFooterVariants,Kp as tableContainerVariants,Ep as tableCellVariants,jp as tableCaptionVariants,qp as tableBodyVariants,Wp as switchVariants,Mp as stepperVariants,Np as stepVariants,kp as stepTitleVariants,Lp as stepIndicatorVariants,Ap as stepDescriptionVariants,Hp as stepContentVariants,Rp as stepConnectorVariants,zp as statCardVariants,ta as spotlightStatusVariants,ra as spotlightStatusTitleVariants,Cp as spotlightStatusDescriptionVariants,xp as spotlightShortcutVariants,gp as spotlightResultsVariants,pp as spotlightPanelVariants,dp as spotlightOverlayVariants,bp as spotlightOptionVariants,hp as spotlightOptionTitleVariants,yp as spotlightOptionIconVariants,Tp as spotlightOptionDescriptionVariants,Pp as spotlightOptionContentVariants,ea as spotlightKbdVariants,up as spotlightInputVariants,fp as spotlightIconVariants,cp as spotlightHeaderVariants,vp as spotlightGroupLabelVariants,op as sliderVariants,ap as sliderTrackVariants,np as sliderThumbVariants,ip as sliderRangeVariants,Jd as skeletonVariants,Qd as skeletonTextVariants,jd as skeletonButtonVariants,Ed as skeletonAvatarVariants,Fm as sheetOverlayVariants,_m as sheetContentVariants,qd as separatorVariants,Gd as selectTriggerVariants,Wd as selectContentVariants,Hd as segmentedControlVariants,Ad as segmentedControlLabelVariants,kd as segmentedControlItemVariants,Sd as scrollBarVariants,zd as scrollBarThumbVariants,Cd as scrollAreaVariants,vd as resizablePanelVariants,gd as resizablePanelGroupVariants,bd as resizableHandleVariants,yd as resizableHandleIconVariants,cd as radioItemVariants,pd as radioGroupVariants,nd as progressVariants,sd as progressIndicatorVariants,Tr as popoverContentVariants,ri as parseHotkey,qm as paginationVariants,Bo as paginationLinkVariants,Jm as paginationItemVariants,Qm as paginationEllipsisVariants,Zm as paginationContentVariants,km as otpSlotVariants,Vm as otpSeparatorVariants,Im as otpPlaceholderVariants,Am as otpInputVariants,Hm as otpGroupVariants,Rm as otpContainerVariants,hm as navigationMenuViewportVariants,vm as navigationMenuVariants,ym as navigationMenuTriggerVariants,bm as navigationMenuListVariants,Pv as navigationMenuLinkVariants,Tm as navigationMenuIndicatorVariants,Pm as navigationMenuContentVariants,um as multiselectTriggerVariants,oi as matchHotkey,lm as labelVariants,im as kbdVariants,lr as isSameDay,om as inputVariants,em as hoverCardContentVariants,Hy as formatHotkeyTokens,Xr as formatHotkey,Xl as formFieldVariants,Fl as fileUploadVariants,_a as fileUploadTextVariants,Ol as fileUploadListVariants,Gl as fileUploadItemVariants,$l as fileUploadItemSizeVariants,Ul as fileUploadItemRemoveVariants,Wl as fileUploadItemNameVariants,_l as fileUploadIconVariants,Rl as errorBoundaryVariants,kl as errorBoundaryTitleVariants,Hl as errorBoundaryIconVariants,Vl as errorBoundaryDetailsVariants,Al as errorBoundaryDescriptionVariants,Il as errorBoundaryActionsVariants,Cl as emptyStateVariants,zl as emptyStateTitleVariants,Sl as emptyStateIconVariants,wl as emptyStateDescriptionVariants,Ml as emptyStateActionsVariants,pl as dropdownMenuShortcutVariants,dl as dropdownMenuSeparatorVariants,ll as dropdownMenuRadioItemVariants,ml as dropdownMenuLabelVariants,Fa as dropdownMenuItemVariants,Da as dropdownMenuContentVariants,sl as dropdownMenuCheckboxItemVariants,Qs as drawerOverlayVariants,js as drawerHandleVariants,Es as drawerContentVariants,Ys as dialogContentVariants,Oa as detectPlatform,Yw as cva,Ry as createOptionalContext,Ly as createContext,Is as contextMenuShortcutVariants,As as contextMenuSeparatorVariants,Hs as contextMenuRadioItemVariants,ks as contextMenuLabelVariants,ka as contextMenuItemVariants,Ha as contextMenuContentVariants,Rs as contextMenuCheckboxItemVariants,Ny as composeRefs,ys as commandShortcutVariants,bs as commandSeparatorVariants,ds as commandOverlayVariants,Ps as commandLoadingVariants,cs as commandListVariants,vs as commandItemVariants,ps as commandInputVariants,fs as commandGroupVariants,gs as commandGroupHeadingVariants,us as commandEmptyVariants,ms as commandDialogVariants,ns as collapsibleContentVariants,Qn as codeBlockVariants,rs as codeBlockPreVariants,os as codeBlockLineVariants,as as codeBlockLineNumberVariants,jn as codeBlockLanguageVariants,En as codeBlockHeaderVariants,es as codeBlockCopyVariants,ts as codeBlockContentVariants,o as cn,qn as checkboxVariants,On as cardVariants,Dn as calendarWeekdayVariants,An as calendarVariants,Vn as calendarTitleVariants,Ma as calendarNavButtonVariants,In as calendarHeaderVariants,Bn as calendarGridVariants,Fn as calendarDayVariants,Br as buttonVariants,Wi as buttonIconVariants,Nn as buttonGroupVariants,$i as buttonBadgeVariants,Pn as breadcrumbSeparatorVariants,yn as breadcrumbPageVariants,gn as breadcrumbListVariants,bn as breadcrumbLinkVariants,vn as breadcrumbItemVariants,hn as breadcrumbEllipsisVariants,dn as badgeVariants,sn as avatarVariants,Vi as alertVariants,Bi as alertTitleVariants,Zi as alertDialogOverlayVariants,Ji as alertDialogContentVariants,Di as alertDescriptionVariants,Li as accordionTriggerVariants,Ni as accordionItemVariants,Ri as accordionContentVariants,ku as XCircleIcon,st as Variant,su as TooltipTrigger,Ir as TooltipSize,yy as TooltipProvider,mu as TooltipContent,nu as Tooltip,ou as ToolbarSpacer,Ee as ToolbarSize,ru as ToolbarSeparator,tu as ToolbarGroup,jc as Toolbar,Jc as ToggleGroupItem,Zc as ToggleGroup,Kc as Toggle,$c as Toaster,Ge as ToastSize,Hc as TimelineTitle,Ac as TimelineTime,Mc as TimelineItem,Lc as TimelineDot,kc as TimelineDescription,Rc as TimelineContent,Nc as TimelineConnector,wc as Timeline,Tu as ThemeProvider,bc as Textarea,fc as TabsTrigger,uc as TabsList,gc as TabsContent,Fb as Tabs,he as TableSize,ac as TableRow,tc as TableHeader,ic as TableHead,oc as TableFooter,nc as TableCell,sc as TableCaption,rc as TableBody,ec as Table,Hr as SwitchStatus,Se as SwitchSize,$p as Switch,Ip as Stepper,_p as StepTitle,Bp as StepIndicator,Op as StepDescription,Fp as StepContent,Dp as StepConnector,Vp as Step,qt as StatCardTrend,Oe as StatCardSize,wp as StatCard,Rr as SpotlightStatus,Xt as SpotlightSize,Sp as Spotlight,tr as SpinnerSize,yo as Spinner,sp as Slider,ep as SkeletonText,pe as SkeletonSize,rp as SkeletonButton,tp as SkeletonAvatar,so as Skeleton,Le as Size,Rv as SheetTrigger,$m as SheetTitle,te as SheetSize,Om as SheetPortal,Ua as SheetOverlay,Gm as SheetHeader,Wm as SheetFooter,Um as SheetDescription,Io as SheetContent,Hv as SheetClose,$a as Sheet,no as SeparatorOrientation,Zd as Separator,db as SelectValue,$d as SelectTrigger,Nr as SelectStatus,Q as SelectSize,Xd as SelectSeparator,Kd as SelectLabel,Yd as SelectItem,mb as SelectGroup,ao as SelectContentWidthMode,ib as SelectContentAlign,Ud as SelectContent,lb as Select,Me as SegmentedControlSize,Bd as SegmentedControlLabelItem,Vd as SegmentedControlItem,Id as SegmentedControl,qa as ScrollBar,wd as ScrollArea,Pd as ResizablePanelGroup,hd as ResizablePanel,Td as ResizableHandle,zr as RadioStatus,Je as RadioSize,fd as RadioGroupItem,ud as RadioGroup,ld as Progress,ov as PopoverTrigger,hr as PopoverSize,pm as PopoverContent,iv as PopoverClose,av as PopoverAnchor,rv as Popover,_e as PaginationSize,rd as PaginationPrevious,od as PaginationNext,td as PaginationLink,ed as PaginationItem,ad as PaginationEllipsis,jm as PaginationContent,Em as Pagination,Xm as OverlayProvider,Bm as OTPInput,Ga as NavigationMenuViewport,Sm as NavigationMenuTrigger,qe as NavigationMenuSize,Cm as NavigationMenuList,xv as NavigationMenuLink,Tv as NavigationMenuItem,wm as NavigationMenuIndicator,zm as NavigationMenuContent,xm as NavigationMenu,de as MultiselectSize,fm as Multiselect,Pr as LabelSize,mm as Label,yr as KbdSize,nm as Kbd,am as Input,Hu as InfoIcon,rr as IconSize,Vg as HoverCardTrigger,br as HoverCardSize,tm as HoverCardContent,Ig as HoverCard,_r as GroupOrientation,De as FormFieldSize,Zl as FormFieldLabel,El as FormFieldError,Ql as FormFieldDescription,jl as FormFieldControl,ql as FormField,Kl as FileUpload,Bl as ErrorBoundary,Nl as EmptyState,gg as DropdownMenuTrigger,fl as DropdownMenuSubTrigger,gl as DropdownMenuSubContent,yg as DropdownMenuSub,xl as DropdownMenuShortcut,Tl as DropdownMenuSeparator,Pl as DropdownMenuRadioItem,Pg as DropdownMenuRadioGroup,bg as DropdownMenuPortal,hl as DropdownMenuLabel,Ro as DropdownMenuItemVariant,bl as DropdownMenuItem,vg as DropdownMenuGroup,vl as DropdownMenuContent,yl as DropdownMenuCheckboxItem,ul as DropdownMenu,og as DrawerTrigger,al as DrawerTitle,Be as DrawerSize,el as DrawerPortal,Ba as DrawerOverlay,rl as DrawerHeader,ol as DrawerFooter,il as DrawerDescription,tl as DrawerContent,ag as DrawerClose,rg as Drawer,Qf as DialogTrigger,Zs as DialogTitle,Tt as DialogSize,Ks as DialogPortal,Ia as DialogOverlay,Xs as DialogHeader,qs as DialogFooter,Js as DialogDescription,No as DialogContent,Ef as DialogClose,Aa as Dialog,wi as DensityProvider,vo as Density,Uf as ContextMenuTrigger,Bs as ContextMenuSubTrigger,Ds as ContextMenuSubContent,Xf as ContextMenuSub,Us as ContextMenuShortcut,$s as ContextMenuSeparator,Gs as ContextMenuRadioItem,qf as ContextMenuRadioGroup,Yf as ContextMenuPortal,Ws as ContextMenuLabel,wo as ContextMenuItemVariant,_s as ContextMenuItem,Kf as ContextMenuGroup,Fs as ContextMenuContent,Os as ContextMenuCheckboxItem,$f as ContextMenu,Ns as CommandShortcut,Ms as CommandSeparator,Ls as CommandLoading,Cs as CommandList,zo as CommandItemVariant,ws as CommandItem,xs as CommandInput,zs as CommandGroup,Ss as CommandEmpty,Ts as CommandDialog,Ra as Command,jt as ColorScheme,Hf as CollapsibleTrigger,ss as CollapsibleContent,Rf as Collapsible,is as CodeBlock,cr as CheckboxStatus,Ue as CheckboxSize,Zn as Checkbox,Ru as CheckCircleIcon,Kn as CardTitle,Wn as CardHeader,Un as CardFooter,Yn as CardDescription,$n as CardContent,Gn as Card,_n as Calendar,Ki as ButtonLabel,Ui as ButtonIcon,Ln as ButtonGroup,Yi as ButtonBadge,Xi as Button,le as BreadcrumbSize,wn as BreadcrumbSeparator,zn as BreadcrumbPage,xn as BreadcrumbList,Sn as BreadcrumbLink,Cn as BreadcrumbItem,Mn as BreadcrumbEllipsis,Tn as Breadcrumb,ge as BadgeVariant,ft as BadgeTone,vt as BadgeSize,fn as BadgeGroup,pn as Badge,Ie as AvatarSize,ln as AvatarImage,mn as AvatarGroup,za as AvatarFallback,Sa as Avatar,$u as AspectRatio,Lu as AlertTriangleIcon,_i as AlertTitle,Wu as AlertDialogTrigger,tn as AlertDialogTitle,gt as AlertDialogSize,Qi as AlertDialogPortal,Ca as AlertDialogOverlay,ji as AlertDialogHeader,en as AlertDialogFooter,rn as AlertDialogDescription,Ei as AlertDialogContent,an as AlertDialogCancel,on as AlertDialogAction,Gu as AlertDialog,Oi as AlertDescription,Fi as Alert,Ai as AccordionTrigger,Te as AccordionSize,ki as AccordionItem,Ii as AccordionContent,Hi as Accordion};
|
|
2
|
+
import{a as o,b as Ry,c as Yr,d as Hy,e as ky,f as Wa,g as ai,h as ii,i as qr,j as Ay,k as ct,l as pi,m as mo,n as Iy,o as Vy,p as ci,q as ui,r as By}from"./chunk-5pcmmk0e.js";import{cva as sM}from"class-variance-authority";import*as je from"@radix-ui/react-accordion";import{cva as ya}from"class-variance-authority";import{ChevronDown as Mu}from"lucide-react";import{createContext as Nu,forwardRef as Po,useContext as Hi}from"react";import{createContext as Su,useContext as Ri}from"react";import{jsxDEV as wu}from"react/jsx-dev-runtime";var bo="md",ba=Su(bo),yo=({density:e,children:t})=>{return wu(ba.Provider,{value:e,children:t},void 0,!1,void 0,this)};yo.displayName="DensityProvider";var zu=()=>{return Ri(ba)};function u(e){let t=Ri(ba);if(e!==void 0)return e;return t}import{jsxDEV as ft}from"react/jsx-dev-runtime";var Te={sm:"sm",md:"md",lg:"lg"},Pa=Nu(Te.md),ki=ya("border-b border-border"),Ai=ya("gs-interactive flex flex-1 items-center justify-between font-medium hover:underline [&[data-state=open]>svg]:rotate-180",{variants:{size:{[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}}),Ii=ya("gs-accordion-content overflow-hidden",{variants:{size:{[Te.sm]:"text-xs",[Te.md]:"text-sm",[Te.lg]:"text-base"}},defaultVariants:{size:Te.md}}),Lu={[Te.sm]:"pt-0 pb-3",[Te.md]:"pt-0 pb-4",[Te.lg]:"pt-0 pb-5"},Vi=Po(({size:e=Te.md,...t},r)=>{let a=u(e)??Te.md;return ft(Pa.Provider,{value:a,children:ft(je.Root,{ref:r,...t},void 0,!1,void 0,this)},void 0,!1,void 0,this)});Vi.displayName="Accordion";var Bi=Po(({className:e,...t},r)=>ft(je.Item,{ref:r,className:o(ki(),e),...t},void 0,!1,void 0,this));Bi.displayName="AccordionItem";var Di=Po(({className:e,children:t,...r},a)=>{let i=Hi(Pa);return ft(je.Header,{className:"flex",children:ft(je.Trigger,{ref:a,className:o(Ai({size:i}),e),...r,children:[t,ft(Mu,{className:"shrink-0 transition-transform"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)});Di.displayName="AccordionTrigger";var Fi=Po(({className:e,children:t,...r},a)=>{let i=Hi(Pa);return ft(je.Content,{ref:a,className:o(Ii({size:i}),e),...r,children:ft("div",{className:Lu[i],children:t},void 0,!1,void 0,this)},void 0,!1,void 0,this)});Fi.displayName="AccordionContent";import{cva as ha}from"class-variance-authority";import{TriangleAlert as Ru,CircleCheck as Hu,Info as ku,CircleAlert as Au}from"lucide-react";import{forwardRef as Ta}from"react";import{jsxDEV as xa}from"react/jsx-dev-runtime";var er={default:"default",success:"success",warning:"warning",error:"error",info:"info"},Br={sm:"sm",md:"md",lg:"lg",xl:"xl"},_i=ha("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:{[er.default]:"bg-background text-foreground",[er.success]:"border-success/50 text-success [&>svg]:text-success bg-success/10",[er.warning]:"border-warning/50 text-warning [&>svg]:text-warning bg-warning/10",[er.error]:"border-destructive/50 text-destructive [&>svg]:text-destructive bg-destructive/10",[er.info]:"border-info/50 text-info [&>svg]:text-info bg-info/10"},size:{[Br.sm]:"p-3 text-xs [&>svg]:top-3 [&>svg]:left-3 [&>svg~*]:pl-6",[Br.md]:"p-4 text-sm",[Br.lg]:"p-5 text-sm",[Br.xl]:"p-6 text-base [&>svg]:top-6 [&>svg]:left-6 [&>svg~*]:pl-8"}},defaultVariants:{variant:er.default,size:Br.md}}),Oi=ha("mb-1 font-medium leading-none tracking-tight"),Gi=ha("text-sm [&_p]:leading-relaxed"),Wi=Ta(({className:e,variant:t,size:r,...a},i)=>{let n=u(r);return xa("div",{ref:i,role:"alert",className:o(_i({variant:t,size:n}),e),...a},void 0,!1,void 0,this)});Wi.displayName="Alert";var Ui=Ta(({className:e,...t},r)=>xa("h5",{ref:r,className:o(Oi(),e),...t},void 0,!1,void 0,this));Ui.displayName="AlertTitle";var $i=Ta(({className:e,...t},r)=>xa("div",{ref:r,className:o(Gi(),e),...t},void 0,!1,void 0,this));$i.displayName="AlertDescription";import*as ue from"@radix-ui/react-alert-dialog";import{cva as Ei}from"class-variance-authority";import{forwardRef as ar}from"react";import{Slot as Ki}from"@radix-ui/react-slot";import{cva as Sa}from"class-variance-authority";import{forwardRef as ho}from"react";import{forwardRef as Iu}from"react";import{jsxDEV as Ca}from"react/jsx-dev-runtime";var tr={sm:"sm",md:"md",lg:"lg",xl:"xl"},Vu={[tr.sm]:"h-4 w-4",[tr.md]:"h-5 w-5",[tr.lg]:"h-6 w-6",[tr.xl]:"h-8 w-8"},rr=Iu(({className:e,size:t=tr.md,label:r="Loading",...a},i)=>{let n=u(t);return Ca("span",{ref:i,className:o("inline-flex items-center justify-center",e),role:"status","aria-label":r,...a,children:[Ca("span",{className:o("animate-spin rounded-full border-2 border-current border-r-transparent",Vu[n])},void 0,!1,void 0,this),Ca("span",{className:"sr-only",children:r},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});rr.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"},gt={default:"default",success:"success",warning:"warning",error:"error",info:"info"},or={sm:"sm",md:"md",lg:"lg"},Bu="Loading",Du="button",Dr=Sa("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}}),Yi=Sa("shrink-0",{variants:{size:{[or.sm]:"size-3",[or.md]:"size-4",[or.lg]:"size-4.5"}},defaultVariants:{size:or.md}}),Xi=Sa("inline-flex items-center rounded-full border px-1.5 py-0.5 font-semibold text-[10px] leading-none",{variants:{tone:{[gt.default]:"border-border/70 bg-background/75 text-muted-foreground",[gt.success]:"border-success/35 bg-success/12 text-success",[gt.warning]:"border-warning/35 bg-warning/12 text-warning",[gt.error]:"border-destructive/35 bg-destructive/12 text-destructive",[gt.info]:"border-info/35 bg-info/12 text-info"}},defaultVariants:{tone:gt.default}});function Fu(e){return e===Le.icon||e===Le.iconSm||e===Le.iconLg}function _u(e,t,r){return e&&t?-1:r}function Ou(e){return e["aria-label"]??e["aria-labelledby"]??e.title}function Gu(){if(typeof process>"u")return!0;return!0}var qi=ho(({className:e,size:t=or.md,...r},a)=>lt(Ki,{ref:a,className:o(Yi({size:t}),e),...r},void 0,!1,void 0,this));qi.displayName="ButtonIcon";var Zi=ho(({className:e,...t},r)=>lt("span",{ref:r,className:o("truncate",e),...t},void 0,!1,void 0,this));Zi.displayName="ButtonLabel";var Ji=ho(({className:e,tone:t=gt.default,...r},a)=>lt("span",{ref:a,className:o(Xi({tone:t}),e),...r},void 0,!1,void 0,this));Ji.displayName="ButtonBadge";var Qi=ho(({className:e,variant:t=st.primary,size:r=Le.md,asChild:a=!1,loading:i=!1,loadingText:n=Bu,fullWidth:s=!1,leadingIcon:l,trailingIcon:m,disabled:d,children:f,type:c,tabIndex:P,onClick:p,...v},S)=>{let N=u(r),z=N??r,T=Ou(v);if(Gu()&&Fu(z)&&!T)throw Error("Icon-size Button requires aria-label, aria-labelledby, or title.");let b=Boolean(d||i),x=o(Dr({variant:t,size:N}),s&&"w-full",e);if(a)return lt(Ki,{ref:S,className:x,"aria-disabled":b||void 0,"aria-busy":i||void 0,tabIndex:_u(!0,b,P),onClick:b?(M)=>{M.preventDefault()}:p,...v,children:f},void 0,!1,void 0,this);return lt("button",{ref:S,className:x,disabled:b,"aria-disabled":b,"aria-busy":i,tabIndex:P,type:c??Du,onClick:i?void 0:p,...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(rr,{size:"sm"},void 0,!1,void 0,this)},void 0,!1,void 0,this),i&<("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)});Qi.displayName="Button";import{jsxDEV as et}from"react/jsx-dev-runtime";var vt={sm:"sm",md:"md",lg:"lg",xl:"xl",full:"full"},ji=Ei("gs-dialog-overlay fixed inset-0 z-50 bg-black/50"),en=Ei("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:{[vt.sm]:"max-w-sm",[vt.md]:"max-w-md",[vt.lg]:"max-w-lg",[vt.xl]:"max-w-xl",[vt.full]:"max-w-[calc(100vw-2rem)] max-h-[calc(100vh-2rem)]"}},defaultVariants:{size:vt.md}}),Wu=ue.Root,Uu=ue.Trigger,tn=ue.Portal,za=ar(({className:e,...t},r)=>et(ue.Overlay,{ref:r,className:o(ji(),e),...t},void 0,!1,void 0,this));za.displayName="AlertDialogOverlay";var rn=ar(({className:e,size:t=vt.md,...r},a)=>{let i=u(t);return et(tn,{children:[et(za,{},void 0,!1,void 0,this),et(ue.Content,{ref:a,className:o(en({size:i}),e),...r},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});rn.displayName="AlertDialogContent";var on=({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);on.displayName="AlertDialogHeader";var an=({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);an.displayName="AlertDialogFooter";var nn=ar(({className:e,...t},r)=>et(ue.Title,{ref:r,className:o("text-lg font-semibold",e),...t},void 0,!1,void 0,this));nn.displayName="AlertDialogTitle";var sn=ar(({className:e,...t},r)=>et(ue.Description,{ref:r,className:o("text-sm text-muted-foreground",e),...t},void 0,!1,void 0,this));sn.displayName="AlertDialogDescription";var ln=ar(({className:e,...t},r)=>et(ue.Action,{ref:r,className:o(Dr(),e),...t},void 0,!1,void 0,this));ln.displayName="AlertDialogAction";var mn=ar(({className:e,...t},r)=>et(ue.Cancel,{ref:r,className:o(Dr({variant:"outline"}),"mt-2 sm:mt-0",e),...t},void 0,!1,void 0,this));mn.displayName="AlertDialogCancel";import*as dn from"@radix-ui/react-aspect-ratio";var $u=dn.Root;import*as nr from"@radix-ui/react-avatar";import{cva as Ku}from"class-variance-authority";import{forwardRef as To}from"react";import{jsxDEV as ir}from"react/jsx-dev-runtime";var Ie={sm:"sm",md:"md",lg:"lg",xl:"xl"},pn=Ku("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}}),wa=To(({className:e,size:t=Ie.md,...r},a)=>{let i=u(t);return ir(nr.Root,{ref:a,className:o(pn({size:i}),e),...r},void 0,!1,void 0,this)});wa.displayName="Avatar";var cn=To(({className:e,...t},r)=>ir(nr.Image,{ref:r,className:o("aspect-square h-full w-full object-cover",e),...t},void 0,!1,void 0,this));cn.displayName="AvatarImage";var Ma=To(({className:e,...t},r)=>ir(nr.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));Ma.displayName="AvatarFallback";var Yu={[Ie.sm]:"-space-x-2",[Ie.md]:"-space-x-3",[Ie.lg]:"-space-x-4",[Ie.xl]:"-space-x-5"},un=To(({className:e,children:t,max:r,size:a=Ie.md,...i},n)=>{let s=u(a),l=Array.isArray(t)?t:[t],m=r?l.slice(0,r):l,d=r?Math.max(0,l.length-r):0;return ir("div",{ref:n,className:o("flex items-center",Yu[s],e),...i,children:[m,d>0&&ir(wa,{size:s,className:"border-2 border-background",children:ir(Ma,{className:"text-xs",children:["+",d]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});un.displayName="AvatarGroup";import{Slot as Xu}from"@radix-ui/react-slot";import{cva as qu}from"class-variance-authority";import{X as Zu}from"lucide-react";import{forwardRef as Ju}from"react";import{jsxDEV as Fr}from"react/jsx-dev-runtime";var ge={default:"default",primary:"primary",success:"success",warning:"warning",error:"error",info:"info",outline:"outline"},bt={sm:"sm",md:"md",lg:"lg",dot:"dot"},fn=qu("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:{[bt.sm]:"h-5 px-2 text-[10px]",[bt.md]:"h-6 px-2.5 text-xs",[bt.lg]:"h-7 px-3 text-sm",[bt.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:bt.md}}),gn=Ju(({className:e,variant:t=ge.default,size:r=bt.md,solid:a=!1,pulse:i=!1,removable:n=!1,onRemove:s,onClick:l,children:m,asChild:d=!1,...f},c)=>{let P=u(r),p=Boolean(l),v=P===bt.dot,S=(T)=>{T.stopPropagation(),s?.(T)},N=o(fn({variant:t,solid:a,size:P}),p&&"cursor-pointer",i&&"animate-pulse",n&&!v&&"pr-1",e),z=n&&!v&&Fr("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:Fr(Zu,{className:"size-3"},void 0,!1,void 0,this)},void 0,!1,void 0,this);if(d)return Fr(Xu,{ref:c,className:N,onClick:l,...f,children:m},void 0,!1,void 0,this);if(p)return Fr("button",{ref:c,className:N,onClick:l,type:"button",...f,children:[!v&&m,z]},void 0,!0,void 0,this);return Fr("span",{ref:c,className:N,...f,children:[!v&&m,z]},void 0,!0,void 0,this)});gn.displayName="Badge";import{Children as Qu,cloneElement as Eu,forwardRef as ju,isValidElement as ef,useCallback as vn,useEffect as tf,useLayoutEffect as rf,useRef as of,useState as af}from"react";import{jsxDEV as bn}from"react/jsx-dev-runtime";function nf(e){let t=[];return Qu.forEach(e,(r,a)=>{if(!ef(r))return;let i=r.key??a;t.push({key:i,element:r,isLeaving:!1})}),t}function sf(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 lf(e,t,r){if(r.current)return r.current=!1,t;return sf(e,t)}var mf=typeof window<"u"?rf:tf,yn=ju(({children:e,className:t,onRemove:r,gap:a="sm"},i)=>{let[n,s]=af([]),l=of(!0);mf(()=>{let c=nf(e);s((P)=>lf(P,c,l))},[e]);let m=vn((c)=>{s((P)=>P.filter((p)=>p.key!==c))},[]),d=vn((c)=>{r?.(c)},[r]),f={sm:"gap-1",md:"gap-2",lg:"gap-3"}[a];return bn("div",{ref:i,className:o("inline-flex flex-wrap items-center",f,t),children:n.map((c)=>{let P={};if(c.element.props.removable&&r)P.onRemove=()=>{d(c.key)};let p=o("inline-flex transition-all duration-200",c.isLeaving&&"pointer-events-none scale-95 opacity-0");return bn("span",{className:p,onTransitionEnd:c.isLeaving?()=>m(c.key):void 0,children:Eu(c.element,P)},c.key,!1,void 0,this)})},void 0,!1,void 0,this)});yn.displayName="BadgeGroup";import{Slot as df}from"@radix-ui/react-slot";import{cva as sr}from"class-variance-authority";import{ChevronRight as pf,MoreHorizontal as cf}from"lucide-react";import{createContext as uf,forwardRef as _r,useContext as Na}from"react";import{jsxDEV as Ue}from"react/jsx-dev-runtime";var le={sm:"sm",md:"md",lg:"lg"},xo=uf(le.md),Pn=sr("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}}),hn=sr("inline-flex items-center gap-1.5"),Tn=sr("gs-interactive hover:text-foreground focus-visible:outline-none focus-visible:text-foreground"),xn=sr("font-normal text-foreground"),Cn=sr("",{variants:{size:{[le.sm]:"[&>svg]:size-3",[le.md]:"[&>svg]:size-3.5",[le.lg]:"[&>svg]:size-4"}},defaultVariants:{size:le.md}}),Sn=sr("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}}),zn=_r(({size:e=le.md,...t},r)=>{let a=u(e)??le.md;return Ue(xo.Provider,{value:a,children:Ue("nav",{ref:r,"aria-label":"breadcrumb",...t},void 0,!1,void 0,this)},void 0,!1,void 0,this)});zn.displayName="Breadcrumb";var wn=_r(({className:e,...t},r)=>{let a=Na(xo);return Ue("ol",{ref:r,className:o(Pn({size:a}),e),...t},void 0,!1,void 0,this)});wn.displayName="BreadcrumbList";var Mn=_r(({className:e,...t},r)=>Ue("li",{ref:r,className:o(hn(),e),...t},void 0,!1,void 0,this));Mn.displayName="BreadcrumbItem";var Nn=_r(({asChild:e,className:t,...r},a)=>{return Ue(e?df:"a",{ref:a,className:o(Tn(),t),...r},void 0,!1,void 0,this)});Nn.displayName="BreadcrumbLink";var Ln=_r(({className:e,...t},r)=>Ue("span",{ref:r,role:"link",tabIndex:0,"aria-disabled":"true","aria-current":"page",className:o(xn(),e),...t},void 0,!1,void 0,this));Ln.displayName="BreadcrumbPage";var Rn=({children:e,className:t,...r})=>{let a=Na(xo),i={[le.sm]:"size-3",[le.md]:"size-3.5",[le.lg]:"size-4"};return Ue("li",{role:"presentation","aria-hidden":"true",className:o(Cn({size:a}),t),...r,children:e??Ue(pf,{className:i[a]},void 0,!1,void 0,this)},void 0,!1,void 0,this)};Rn.displayName="BreadcrumbSeparator";var Hn=({className:e,...t})=>{let r=Na(xo);return Ue("span",{role:"presentation","aria-hidden":"true",className:o(Sn({size:r}),e),...t,children:[Ue(cf,{},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)};Hn.displayName="BreadcrumbEllipsis";import{cva as ff}from"class-variance-authority";import{forwardRef as gf}from"react";import{jsxDEV as vf}from"react/jsx-dev-runtime";var Or={horizontal:"horizontal",vertical:"vertical"},kn=ff("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}}),An=gf(({className:e,orientation:t=Or.horizontal,attached:r=!1,fullWidth:a=!1,...i},n)=>vf("div",{ref:n,className:o(kn({orientation:t,attached:r}),a&&"w-full",e),...i},void 0,!1,void 0,this));An.displayName="ButtonGroup";import{cva as yt}from"class-variance-authority";import{forwardRef as bf,useCallback as lr,useEffect as yf,useMemo as In,useState as Vn}from"react";import{jsxDEV as Re}from"react/jsx-dev-runtime";var B={sm:"sm",md:"md",lg:"lg",xl:"xl"},Dn=yt("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}}),Fn=yt("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}}),_n=yt("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}}),La=yt(["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}}),On=yt("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}}),Gn=yt("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}}),Wn=yt(["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"}}),Pf=yt("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}}),Bn=["Su","Mo","Tu","We","Th","Fr","Sa"],hf=["January","February","March","April","May","June","July","August","September","October","November","December"],mt=(e)=>new Date(e.getFullYear(),e.getMonth(),e.getDate()),mr=(e,t)=>{return e.getDate()===t.getDate()&&e.getMonth()===t.getMonth()&&e.getFullYear()===t.getFullYear()},Un=bf(({className:e,size:t="md",cellSize:r,mode:a="single",value:i,defaultValue:n,onChange:s,rangeValue:l,onRangeChange:m,viewMonth:d,onViewMonthChange:f,minDate:c,maxDate:P,disabledDates:p=[],weekStartsOn:v=1,highlightToday:S=!0,...N},z)=>{let T=u(t)??B.md,b=u(r??T)??T,[x,M]=Vn(i??n??null),[C,L]=Vn(i??n??new Date),R=d??C,_=lr((g)=>{if(f){let y=typeof g==="function"?g(d??C):g;f(y)}else L((y)=>{return typeof g==="function"?g(y):g})},[d,C,f]),G=i!==void 0?i:x,O=c?mt(c):null,$=P?mt(P):null;yf(()=>{if(i!==void 0){if(M(i??null),i&&!d)L(i)}},[i,d]);let w=lr((g,y)=>{return(new Date(g,y,1).getDay()-v+7)%7},[v]),I=In(()=>{let g=R.getFullYear(),y=R.getMonth(),H=w(g,y),ce=new Date(g,y+1,0).getDate(),q=[];for(let E=0;E<H;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},[R,w]),h=lr((g)=>{let y=mt(g);if(O&&y<O)return!0;if($&&y>$)return!0;return p.some((H)=>mr(y,mt(H)))},[O,$,p]),V=lr((g)=>{if(h(g))return"disabled";if(a==="range"&&l){let{from:y,to:H}=l;if(y&&mr(g,y))return"rangeStart";if(H&&mr(g,H))return"rangeEnd";if(y&&H){let ce=mt(g),q=mt(y),Ae=mt(H);if(ce>q&&ce<Ae)return"range"}}if(a==="single"&&G&&mr(g,G))return"selected";if(S&&mr(g,new Date))return"today";return"default"},[G,S,h,a,l]),J=lr((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 H=mt(l.from);if(mt(y)<H)m?.({from:y,to:l.from});else m?.({from:l.from,to:y})}return}if(i===void 0)M(y);s?.(y)},[h,a,s,m,l,i]),k=lr((g)=>{_((y)=>{let H=new Date(y);return H.setMonth(H.getMonth()+g),H})},[_]),Y=In(()=>{return[...Bn.slice(v),...Bn.slice(0,v)]},[v]);return Re("div",{ref:z,className:o(Dn({size:T}),e),...N,children:[Re("div",{className:o(Fn({size:T})),children:[Re("button",{type:"button",onClick:()=>k(-1),className:o(La({size:T})),"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(_n({size:T})),children:[hf[R.getMonth()]," ",R.getFullYear()]},void 0,!0,void 0,this),Re("button",{type:"button",onClick:()=>k(1),className:o(La({size:T})),"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(On({size:T})),children:[Y.map((g)=>Re("div",{className:o(Gn({size:b})),children:g},g,!1,void 0,this)),I.map((g)=>{if(!g.date)return Re("div",{"aria-hidden":"true",className:o(Pf({size:b}))},g.key,!1,void 0,this);let y=g.date,H=V(y);return Re("button",{type:"button",onClick:()=>J(y),disabled:H==="disabled",className:o(Wn({size:b,state:H})),children:y.getDate()},g.key,!1,void 0,this)})]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)});Un.displayName="Calendar";import{Slot as dr}from"@radix-ui/react-slot";import{cva as Tf}from"class-variance-authority";import{forwardRef as pr}from"react";import{jsxDEV as cr}from"react/jsx-dev-runtime";var Co={default:"default",muted:"muted",danger:"danger"},$n=Tf("gs-interactive relative overflow-hidden rounded-[var(--radius)] border bg-card text-card-foreground shadow-[var(--shadow-sm)]",{variants:{variant:{[Co.default]:"border-border",[Co.muted]:"border-border/70 bg-muted/40",[Co.danger]:"border-destructive/30 bg-destructive/[0.06]"}},defaultVariants:{variant:Co.default}}),Kn=pr(({asChild:e=!1,className:t,variant:r,...a},i)=>{return cr(e?dr:"div",{ref:i,className:o($n({variant:r}),t),...a},void 0,!1,void 0,this)});Kn.displayName="Card";var Yn=pr(({asChild:e=!1,className:t,...r},a)=>{return cr(e?dr:"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)});Yn.displayName="CardHeader";var Xn=pr(({asChild:e=!1,className:t,...r},a)=>{return cr(e?dr:"div",{ref:a,className:o("p-4",t),...r},void 0,!1,void 0,this)});Xn.displayName="CardContent";var qn=pr(({asChild:e=!1,className:t,...r},a)=>{return cr(e?dr:"div",{ref:a,className:o("flex items-center border-t border-border/50 p-4",t),...r},void 0,!1,void 0,this)});qn.displayName="CardFooter";var Zn=pr(({asChild:e=!1,className:t,...r},a)=>{return cr(e?dr:"h3",{ref:a,className:o("font-semibold text-base leading-none tracking-tight",t),...r},void 0,!1,void 0,this)});Zn.displayName="CardTitle";var Jn=pr(({asChild:e=!1,className:t,...r},a)=>{return cr(e?dr:"p",{ref:a,className:o("text-sm text-muted-foreground",t),...r},void 0,!1,void 0,this)});Jn.displayName="CardDescription";import*as zo from"@radix-ui/react-checkbox";import{cva as xf}from"class-variance-authority";import{Check as Cf,Minus as Sf}from"lucide-react";import{forwardRef as zf}from"react";import{jsxDEV as So}from"react/jsx-dev-runtime";var $e={sm:"sm",md:"md",lg:"lg",xl:"xl"},ur={default:"default",error:"error",success:"success"},En=xf("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:{[ur.default]:"enabled:hover:border-primary/70",[ur.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",[ur.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:ur.default}}),Qn={[$e.sm]:"size-3.5",[$e.md]:"size-3.5",[$e.lg]:"size-4",[$e.xl]:"size-5"},jn=zf(({className:e,size:t=$e.md,status:r=ur.default,checked:a,disabled:i,...n},s)=>{let l=u(t);return So(zo.Root,{ref:s,checked:a,disabled:i,className:o(En({size:l,status:r}),e),...n,children:So(zo.Indicator,{className:"gs-checkbox-indicator flex items-center justify-center text-current",children:a==="indeterminate"?So(Sf,{className:Qn[l]},void 0,!1,void 0,this):So(Cf,{className:Qn[l]},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)});jn.displayName="Checkbox";import{cva as Pt}from"class-variance-authority";import{forwardRef as wf,useCallback as Mf,useState as Nf}from"react";import{jsxDEV as xe,Fragment as es}from"react/jsx-dev-runtime";var K={sm:"sm",md:"md",lg:"lg"},Ra={default:"default",ghost:"ghost"},ts=Pt("relative rounded-lg overflow-hidden font-mono",{variants:{size:{[K.sm]:"text-xs",[K.md]:"text-sm",[K.lg]:"text-base"},variant:{[Ra.default]:"bg-muted border border-border",[Ra.ghost]:"bg-transparent"}},defaultVariants:{size:K.md,variant:Ra.default}}),rs=Pt("flex items-center justify-between border-b border-border bg-muted",{variants:{size:{[K.sm]:"px-2.5 py-1.5 text-xs",[K.md]:"px-4 py-2 text-sm",[K.lg]:"px-5 py-2.5 text-base"}},defaultVariants:{size:K.md}}),os=Pt("text-muted-foreground font-medium",{variants:{size:{[K.sm]:"text-[11px]",[K.md]:"text-xs",[K.lg]:"text-sm"}},defaultVariants:{size:K.md}}),as=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:{[K.sm]:"px-2 py-1 text-xs",[K.md]:"px-2.5 py-1 text-xs",[K.lg]:"px-3 py-1.5 text-sm"},copied:{true:"text-success",false:""}},defaultVariants:{size:K.md,copied:!1}}),is=Pt("overflow-x-auto",{variants:{size:{[K.sm]:"p-2.5",[K.md]:"p-4",[K.lg]:"p-5"}},defaultVariants:{size:K.md}}),ns=Pt("text-foreground",{variants:{size:{[K.sm]:"",[K.md]:"",[K.lg]:""},showLineNumbers:{true:"",false:""}},defaultVariants:{size:K.md,showLineNumbers:!1}}),ss=Pt("block",{variants:{size:{[K.sm]:"min-h-[1.25rem]",[K.md]:"min-h-[1.5rem]",[K.lg]:"min-h-[1.75rem]"},highlighted:{true:"bg-primary/10 -mx-4 px-4",false:""}},defaultVariants:{size:K.md,highlighted:!1}}),ls=Pt("inline-block text-right text-muted-foreground select-none",{variants:{size:{[K.sm]:"w-6 mr-2 text-[10px]",[K.md]:"w-8 mr-4 text-xs",[K.lg]:"w-10 mr-5 text-sm"}},defaultVariants:{size:K.md}}),ms=wf(({className:e,code:t,language:r,showLineNumbers:a=!1,highlightedLines:i=[],showCopy:n=!0,size:s="md",variant:l="default",onCopy:m,...d},f)=>{let c=u(s),[P,p]=Nf(!1),v=Mf(async()=>{try{await navigator.clipboard.writeText(t),p(!0),m?.(t),setTimeout(()=>p(!1),2000)}catch(z){}},[t,m]),S=t.split(`
|
|
3
|
+
`),N=new Set(i);return xe("div",{ref:f,className:o(ts({size:c,variant:l}),e),...d,children:[(r||n)&&xe("div",{className:o(rs({size:c})),children:[xe("span",{className:o(os({size:c})),children:r},void 0,!1,void 0,this),n&&xe("button",{type:"button",onClick:v,className:o(as({size:c,copied:P})),children:P?xe(es,{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(es,{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(is({size:c})),children:xe("pre",{className:o(ns({size:c,showLineNumbers:a})),children:xe("code",{children:S.map((z,T)=>xe("span",{className:o(ss({size:c,highlighted:N.has(T+1)})),children:[a&&xe("span",{className:o(ls({size:c})),children:T+1},void 0,!1,void 0,this),z,`
|
|
4
|
+
`]},`line-${String(T)}`,!0,void 0,this))},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});ms.displayName="CodeBlock";import*as fr from"@radix-ui/react-collapsible";import{cva as Lf}from"class-variance-authority";import{forwardRef as Rf}from"react";import{jsxDEV as Af}from"react/jsx-dev-runtime";var ds=Lf("gs-collapsible-content overflow-hidden"),Hf=fr.Root,kf=fr.CollapsibleTrigger,ps=Rf(({className:e,...t},r)=>Af(fr.CollapsibleContent,{ref:r,className:o(ds(),e),...t},void 0,!1,void 0,this));ps.displayName="CollapsibleContent";import*as ht from"@radix-ui/react-dialog";import{cva as Ke}from"class-variance-authority";import{createContext as If,forwardRef as tt,useContext as Vf,useEffect as Bf,useState as cs}from"react";import{jsxDEV as fe}from"react/jsx-dev-runtime";var us=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"}}),fs=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"]),gs=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"]),vs=Ke(["max-h-[300px] overflow-y-auto overflow-x-hidden p-2"]),bs=Ke(["py-6 text-center text-sm text-muted-foreground"]),ys=Ke(["overflow-hidden"]),Ps=Ke(["px-2 py-1.5 text-xs font-medium text-muted-foreground"]),wo={default:"default",danger:"danger"},hs=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:{[wo.default]:"text-foreground",[wo.danger]:"text-destructive hover:bg-destructive/10 focus:bg-destructive focus:text-destructive-foreground"}},defaultVariants:{selected:!1,variant:wo.default}}),Ts=Ke(["-mx-1 my-1 h-px bg-border"]),xs=Ke(["ml-auto text-xs tracking-widest text-muted-foreground"]),Cs=Ke(["flex items-center justify-center py-6"]),Ss=If(null),Ha=()=>{let e=Vf(Ss);if(!e)throw Error("useCommand must be used within a Command");return e},ka=tt(({className:e,children:t,loop:r=!0,...a},i)=>{let[n,s]=cs(""),[l,m]=cs(0);return fe(Ss.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)});ka.displayName="Command";var zs=tt(({children:e,size:t,...r},a)=>{return fe(ht.Root,{...r,children:fe(ht.Portal,{children:[fe(ht.Overlay,{className:o(fs())},void 0,!1,void 0,this),fe(ht.Content,{ref:a,className:o(us({size:t})),children:fe(ka,{children:e},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)});zs.displayName="CommandDialog";var ws=tt(({className:e,icon:t,...r},a)=>{let{search:i,setSearch:n,setSelectedIndex:s}=Ha();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(gs(),e),...r},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});ws.displayName="CommandInput";var Ms=tt(({className:e,children:t,...r},a)=>{return fe("div",{ref:a,className:o(vs(),e),...r,children:t},void 0,!1,void 0,this)});Ms.displayName="CommandList";var Ns=tt(({className:e,children:t="No results found.",...r},a)=>{return fe("div",{ref:a,className:o(bs(),e),...r,children:t},void 0,!1,void 0,this)});Ns.displayName="CommandEmpty";var Ls=tt(({className:e,heading:t,children:r,...a},i)=>{return fe("div",{ref:i,className:o(ys(),e),...a,children:[t&&fe("div",{className:o(Ps()),children:t},void 0,!1,void 0,this),r]},void 0,!0,void 0,this)});Ls.displayName="CommandGroup";var Rs=tt(({className:e,disabled:t,onSelect:r,children:a,keywords:i,variant:n,...s},l)=>{let{search:m}=Ha();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(hs({selected:!1,variant:n}),e),...s,children:a},void 0,!1,void 0,this)});Rs.displayName="CommandItem";var Hs=tt(({className:e,...t},r)=>{return fe("div",{ref:r,className:o(Ts(),e),...t},void 0,!1,void 0,this)});Hs.displayName="CommandSeparator";var ks=tt(({className:e,children:t,...r},a)=>{return fe("span",{ref:a,className:o(xs(),e),...r,children:t},void 0,!1,void 0,this)});ks.displayName="CommandShortcut";var As=tt(({className:e,children:t,...r},a)=>{return fe("div",{ref:a,className:o(Cs(),e),...r,children:t},void 0,!1,void 0,this)});As.displayName="CommandLoading";var Df=({key:e,modifier:t="meta",callback:r})=>{Bf(()=>{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 Vt}from"class-variance-authority";import{Check as Ff,ChevronRight as _f,Circle as Of}from"lucide-react";import{createContext as Gf,forwardRef as Tt,useContext as gr}from"react";import{jsxDEV as me}from"react/jsx-dev-runtime";var W={sm:"sm",md:"md",lg:"lg"},Mo={default:"default",danger:"danger"},Bt=Gf(W.md),Aa=Vt("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)]"),Ia=Vt("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:{[Mo.default]:"hover:bg-accent/80 focus:bg-accent focus:text-accent-foreground",[Mo.danger]:"text-destructive hover:bg-destructive/10 focus:bg-destructive focus:text-destructive-foreground"}},defaultVariants:{size:W.md,variant:Mo.default}}),Is=Vt("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}}),Vs=Vt("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}}),Bs=Vt("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}}),Ds=Vt("-mx-1 my-1 h-px bg-border/50"),Fs=Vt("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}}),_s={[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"},Wf={[W.sm]:"size-3",[W.md]:"size-3.5",[W.lg]:"size-4"},Uf={[W.sm]:"size-1.5 fill-current",[W.md]:"size-2 fill-current",[W.lg]:"size-2.5 fill-current"},$f=D.Root,Kf=D.Trigger,Yf=D.Group,Xf=D.Portal,qf=D.Sub,Zf=D.RadioGroup,Os=Tt(({className:e,inset:t,children:r,...a},i)=>{let n=gr(Bt),s=u(n);return me(D.SubTrigger,{ref:i,className:o(Ia({size:s}),"data-[state=open]:bg-accent",t&&"pl-8",e),...a,children:[r,me(_f,{className:"ml-auto"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});Os.displayName=D.SubTrigger.displayName;var Gs=Tt(({className:e,...t},r)=>me(D.Portal,{children:me(D.SubContent,{ref:r,className:o(Aa(),e),...t},void 0,!1,void 0,this)},void 0,!1,void 0,this));Gs.displayName=D.SubContent.displayName;var Ws=Tt(({className:e,size:t,...r},a)=>{let i=u(t)??W.md;return me(Bt.Provider,{value:i,children:me(D.Portal,{children:me(D.Content,{ref:a,className:o(Aa(),e),...r},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)});Ws.displayName=D.Content.displayName;var Us=Tt(({className:e,inset:t,variant:r,...a},i)=>{let n=gr(Bt),s=u(n);return me(D.Item,{ref:i,className:o(Ia({size:s,variant:r}),t&&"pl-8",e),...a},void 0,!1,void 0,this)});Us.displayName=D.Item.displayName;var $s=Tt(({className:e,children:t,checked:r,...a},i)=>{let n=gr(Bt),s=u(n)??W.md;return me(D.CheckboxItem,{ref:i,className:o(Is({size:s}),e),checked:r,...a,children:[me("span",{className:_s[s],children:me(D.ItemIndicator,{children:me(Ff,{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)});$s.displayName=D.CheckboxItem.displayName;var Ks=Tt(({className:e,children:t,...r},a)=>{let i=gr(Bt),n=u(i)??W.md;return me(D.RadioItem,{ref:a,className:o(Vs({size:n}),e),...r,children:[me("span",{className:_s[n],children:me(D.ItemIndicator,{children:me(Of,{className:Uf[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)});Ks.displayName=D.RadioItem.displayName;var Ys=Tt(({className:e,inset:t,...r},a)=>{let i=gr(Bt),n=u(i);return me(D.Label,{ref:a,className:o(Bs({size:n}),t&&"pl-8",e),...r},void 0,!1,void 0,this)});Ys.displayName=D.Label.displayName;var Xs=Tt(({className:e,...t},r)=>me(D.Separator,{ref:r,className:o(Ds(),e),...t},void 0,!1,void 0,this));Xs.displayName=D.Separator.displayName;var qs=({className:e,...t})=>{let r=gr(Bt),a=u(r);return me("span",{className:o(Fs({size:a}),e),...t},void 0,!1,void 0,this)};qs.displayName="ContextMenuShortcut";import*as ve from"@radix-ui/react-dialog";import{cva as Jf}from"class-variance-authority";import{X as Qf}from"lucide-react";import{forwardRef as No}from"react";import{jsxDEV as Ye}from"react/jsx-dev-runtime";var xt={sm:"sm",md:"md",lg:"lg",xl:"xl",full:"full"},Va=ve.Root,Ef=ve.Trigger,Zs=ve.Portal,jf=ve.Close,Ba=No(({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));Ba.displayName="DialogOverlay";var Js=Jf("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:{[xt.sm]:"max-w-sm",[xt.md]:"max-w-md",[xt.lg]:"max-w-lg",[xt.xl]:"max-w-xl",[xt.full]:"max-w-[calc(100vw-2rem)] max-h-[calc(100vh-2rem)]"}},defaultVariants:{size:xt.md}}),Lo=No(({className:e,children:t,size:r=xt.md,showClose:a=!0,...i},n)=>{let s=u(r);return Ye(Zs,{children:[Ye(Ba,{},void 0,!1,void 0,this),Ye(ve.Content,{ref:n,className:o(Js({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(Qf,{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)});Lo.displayName="DialogContent";var Qs=({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);Qs.displayName="DialogHeader";var Es=({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);Es.displayName="DialogFooter";var js=No(({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));js.displayName="DialogTitle";var el=No(({className:e,...t},r)=>Ye(ve.Description,{ref:r,className:o("text-muted-foreground text-sm",e),...t},void 0,!1,void 0,this));el.displayName="DialogDescription";import{cva as Da}from"class-variance-authority";import{X as eg}from"lucide-react";import{forwardRef as Ro}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"},tg={[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"},rg={[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"},tl=Da(["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"]),rl=Da(["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"]),ol=Da("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"}}),og=dt.Root,ag=dt.Trigger,ig=dt.Close,al=dt.Portal,Fa=Ro(({className:e,...t},r)=>Ve(dt.Overlay,{ref:r,className:o(tl(),e),...t},void 0,!1,void 0,this));Fa.displayName="DrawerOverlay";var il=Ro(({size:e=Be.md,showClose:t=!1,direction:r="bottom",className:a,children:i,...n},s)=>{let m=r==="left"||r==="right"?tg[e]:rg[e];return Ve(al,{children:[Ve(Fa,{},void 0,!1,void 0,this),Ve(dt.Content,{ref:s,className:o(rl(),m,a),...n,children:[(r==="top"||r==="bottom")&&Ve("div",{className:o(ol({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(eg,{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)});il.displayName="DrawerContent";var nl=({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);nl.displayName="DrawerHeader";var sl=({className:e,...t})=>Ve("div",{className:o("mt-auto flex flex-col gap-2 p-4",e),...t},void 0,!1,void 0,this);sl.displayName="DrawerFooter";var ll=Ro(({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));ll.displayName="DrawerTitle";var ml=Ro(({className:e,...t},r)=>Ve(dt.Description,{ref:r,className:o("text-muted-foreground text-sm",e),...t},void 0,!1,void 0,this));ml.displayName="DrawerDescription";import*as F from"@radix-ui/react-dropdown-menu";import{cva as Ft}from"class-variance-authority";import{Check as ng,ChevronRight as sg,Circle as lg}from"lucide-react";import{createContext as mg,forwardRef as Ct,useCallback as dg,useContext as vr,useEffect as pg,useRef as dl,useState as cg}from"react";import{jsxDEV as se}from"react/jsx-dev-runtime";var U={sm:"sm",md:"md",lg:"lg"},Ho={default:"default",danger:"danger"},_t=mg(U.md),Dt=null,Gr=null,ug=0,_a=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-dropdown-menu-content-transform-origin)]"),Oa=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:{[U.sm]:"h-6 gap-1.5 px-1.5 text-xs [&_svg]:size-3",[U.md]:"h-8 gap-2 px-2 text-sm [&_svg]:size-4",[U.lg]:"h-9 gap-2 px-2.5 text-sm [&_svg]:size-4"},variant:{[Ho.default]:"hover:bg-accent/80 focus:bg-accent focus:text-accent-foreground",[Ho.danger]:"text-destructive hover:bg-destructive/10 focus:bg-destructive focus:text-destructive-foreground"}},defaultVariants:{size:U.md,variant:Ho.default}}),pl=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:{[U.sm]:"h-6 pl-6 pr-1.5 text-xs",[U.md]:"h-8 pl-8 pr-2 text-sm",[U.lg]:"h-9 pl-8 pr-2.5 text-sm"}},defaultVariants:{size:U.md}}),cl=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:{[U.sm]:"h-6 pl-6 pr-1.5 text-xs",[U.md]:"h-8 pl-8 pr-2 text-sm",[U.lg]:"h-9 pl-8 pr-2.5 text-sm"}},defaultVariants:{size:U.md}}),ul=Ft("font-semibold text-muted-foreground",{variants:{size:{[U.sm]:"px-1.5 py-0.5 text-[10px]",[U.md]:"px-2 py-1.5 text-xs",[U.lg]:"px-2.5 py-1.5 text-xs"}},defaultVariants:{size:U.md}}),fl=Ft("-mx-1 my-1 h-px bg-border/50"),gl=Ft("ml-auto tracking-widest text-muted-foreground/70",{variants:{size:{[U.sm]:"text-[10px]",[U.md]:"text-xs",[U.lg]:"text-xs"}},defaultVariants:{size:U.md}}),vl={[U.sm]:"absolute left-1.5 flex size-3 items-center justify-center",[U.md]:"absolute left-2 flex size-3.5 items-center justify-center",[U.lg]:"absolute left-2.5 flex size-4 items-center justify-center"},fg={[U.sm]:"size-3",[U.md]:"size-3.5",[U.lg]:"size-4"},gg={[U.sm]:"size-1.5 fill-current",[U.md]:"size-2 fill-current",[U.lg]:"size-2.5 fill-current"},bl=({children:e,open:t,defaultOpen:r,onOpenChange:a,...i})=>{let[n,s]=cg(r??!1),l=t!==void 0,m=l?t:n,d=dl(++ug),f=dl({onOpenChange:a,isControlled:l});f.current={onOpenChange:a,isControlled:l};let c=dg((P)=>{let{onOpenChange:p,isControlled:v}=f.current;if(P){if(Dt!==null&&Dt!==d.current&&Gr)Gr();Dt=d.current,Gr=()=>{let{onOpenChange:S,isControlled:N}=f.current;if(!N)s(!1);S?.(!1)}}else if(Dt===d.current)Dt=null,Gr=null;if(!v)s(P);p?.(P)},[]);return pg(()=>{return()=>{if(Dt===d.current)Dt=null,Gr=null}},[]),se(F.Root,{open:m,onOpenChange:c,...i,children:e},void 0,!1,void 0,this)};bl.displayName="DropdownMenu";var vg=F.Trigger,bg=F.Group,yg=F.Portal,Pg=F.Sub,hg=F.RadioGroup,yl=Ct(({className:e,inset:t,children:r,...a},i)=>{let n=vr(_t),s=u(n);return se(F.SubTrigger,{ref:i,className:o(Oa({size:s}),"data-[state=open]:bg-accent",t&&"pl-8",e),...a,children:[r,se(sg,{className:"ml-auto"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});yl.displayName=F.SubTrigger.displayName;var Pl=Ct(({className:e,...t},r)=>se(F.Portal,{children:se(F.SubContent,{ref:r,className:o(_a(),e),...t},void 0,!1,void 0,this)},void 0,!1,void 0,this));Pl.displayName=F.SubContent.displayName;var hl=Ct(({className:e,sideOffset:t=4,size:r,...a},i)=>{let n=u(r)??U.md;return se(_t.Provider,{value:n,children:se(F.Portal,{children:se(F.Content,{ref:i,sideOffset:t,className:o(_a(),e),...a},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)});hl.displayName=F.Content.displayName;var Tl=Ct(({className:e,inset:t,variant:r,...a},i)=>{let n=vr(_t),s=u(n);return se(F.Item,{ref:i,className:o(Oa({size:s,variant:r}),t&&"pl-8",e),...a},void 0,!1,void 0,this)});Tl.displayName=F.Item.displayName;var xl=Ct(({className:e,children:t,checked:r,...a},i)=>{let n=vr(_t),s=u(n)??U.md;return se(F.CheckboxItem,{ref:i,className:o(pl({size:s}),e),checked:r,...a,children:[se("span",{className:vl[s],children:se(F.ItemIndicator,{children:se(ng,{className:fg[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)});xl.displayName=F.CheckboxItem.displayName;var Cl=Ct(({className:e,children:t,...r},a)=>{let i=vr(_t),n=u(i)??U.md;return se(F.RadioItem,{ref:a,className:o(cl({size:n}),e),...r,children:[se("span",{className:vl[n],children:se(F.ItemIndicator,{children:se(lg,{className:gg[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)});Cl.displayName=F.RadioItem.displayName;var Sl=Ct(({className:e,inset:t,...r},a)=>{let i=vr(_t),n=u(i);return se(F.Label,{ref:a,className:o(ul({size:n}),t&&"pl-8",e),...r},void 0,!1,void 0,this)});Sl.displayName=F.Label.displayName;var zl=Ct(({className:e,...t},r)=>se(F.Separator,{ref:r,className:o(fl(),e),...t},void 0,!1,void 0,this));zl.displayName=F.Separator.displayName;var wl=({className:e,...t})=>{let r=vr(_t),a=u(r);return se("span",{className:o(gl({size:a}),e),...t},void 0,!1,void 0,this)};wl.displayName="DropdownMenuShortcut";import{cva as Ur}from"class-variance-authority";import{forwardRef as Tg}from"react";import{jsxDEV as Wr}from"react/jsx-dev-runtime";var be={sm:"sm",md:"md",lg:"lg"},Ml=Ur("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}}),Nl=Ur("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}}),Ll=Ur("font-semibold text-foreground",{variants:{size:{[be.sm]:"text-sm",[be.md]:"text-lg",[be.lg]:"text-xl"}},defaultVariants:{size:be.md}}),Rl=Ur("text-muted-foreground max-w-sm",{variants:{size:{[be.sm]:"text-xs",[be.md]:"text-sm",[be.lg]:"text-base"}},defaultVariants:{size:be.md}}),Hl=Ur("flex items-center gap-2 mt-2"),kl=Tg(({className:e,icon:t,title:r,description:a,actions:i,size:n=be.md,children:s,...l},m)=>{let d=u(n);return Wr("div",{ref:m,className:o(Ml({size:d}),e),...l,children:[t&&Wr("div",{className:Nl({size:d}),children:t},void 0,!1,void 0,this),r&&Wr("h3",{className:Ll({size:d}),children:r},void 0,!1,void 0,this),a&&Wr("p",{className:Rl({size:d}),children:a},void 0,!1,void 0,this),i&&Wr("div",{className:Hl(),children:i},void 0,!1,void 0,this),s]},void 0,!0,void 0,this)});kl.displayName="EmptyState";import{cva as br}from"class-variance-authority";import{Component as xg,createElement as Al}from"react";import{jsxDEV as Ce,Fragment as Sg}from"react/jsx-dev-runtime";var Il=br(["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"}}),Vl=br(["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"}}),Bl=br("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"}}),Dl=br("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"}}),Fl=br("mt-2 flex flex-wrap items-center justify-center gap-2"),_l=br("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 Ol extends xg{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:d,resetLabel:f="Try again",hideReset:c=!1,renderDetails:P}=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 Al(t,p);return t}let v=null;if(d)v=typeof d==="function"?Al(d,p):d;else if(!c){let N={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",N[i]),children:f},void 0,!1,void 0,this)}let S=P?P(this.state.error):Ce(Sg,{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(Il({size:a,variant:i}),n),children:[Ce("div",{className:o(Vl({size:a,variant:i})),children:m??Ce(Cg,{},void 0,!1,void 0,this)},void 0,!1,void 0,this),Ce("h3",{className:o(Bl({size:a,variant:i})),children:s},void 0,!1,void 0,this),Ce("p",{className:o(Dl({size:a})),children:l},void 0,!1,void 0,this),v&&Ce("div",{className:o(Fl()),children:v},void 0,!1,void 0,this),r&&Ce("div",{className:o(_l()),children:S},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}return e}}function Cg(){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 St}from"class-variance-authority";import{forwardRef as zg,useCallback as Xe,useRef as wg,useState as Gl}from"react";import{jsxDEV as Pe}from"react/jsx-dev-runtime";var ee={sm:"sm",md:"md",lg:"lg",xl:"xl"},Wl=St(["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}}),Ul=St("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}}),Ga=St("text-center",{variants:{size:{[ee.sm]:"text-sm",[ee.md]:"text-sm",[ee.lg]:"text-base",[ee.xl]:"text-lg"}},defaultVariants:{size:ee.md}}),$l=St("mt-4 w-full space-y-2"),Kl=St(["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"]),Yl=St("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"}}),Xl=St("text-muted-foreground",{variants:{size:{[ee.sm]:"text-xs",[ee.md]:"text-sm",[ee.lg]:"text-sm",[ee.xl]:"text-base"}},defaultVariants:{size:"md"}}),ql=St(["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"]),Zl=zg(({className:e,size:t="md",disabled:r=!1,accept:a,multiple:i=!1,maxSize:n,maxFiles:s,value:l=[],onChange:m,onError:d,icon:f,title:c="Drop files here or click to upload",description:P,showFileList:p=!0,...v},S)=>{let N=u(t),[z,T]=Gl(!1),[b,x]=Gl(!1),M=wg(null),C=Xe((k)=>{if(k===0)return"0 Bytes";let Y=1024,g=["Bytes","KB","MB","GB"],y=Math.floor(Math.log(k)/Math.log(Y));return`${parseFloat((k/Y**y).toFixed(2))} ${g[y]}`},[]),L=Xe((k)=>{let Y=[...k];if(x(!1),a){let g=a.split(",").map((y)=>y.trim());if(Y=Y.filter((y)=>{return g.some((H)=>{if(H.startsWith("."))return y.name.toLowerCase().endsWith(H.toLowerCase());if(H.endsWith("/*"))return y.type.startsWith(H.slice(0,-1));return y.type===H})}),Y.length<k.length)d?.("Some files were rejected due to file type"),x(!0)}if(n){let g=Y.length;if(Y=Y.filter((y)=>y.size<=n),Y.length<g)d?.(`File size must be less than ${C(n)}`),x(!0)}if(s&&Y.length+l.length>s)Y=Y.slice(0,s-l.length),d?.(`Maximum ${s} files allowed`),x(!0);return Y},[a,n,s,l.length,d,C]),R=Xe((k)=>{if(!k||k.length===0)return;let Y=Array.from(k),g=L(Y);if(g.length>0)if(i)m?.([...l,...g]);else m?.(g.slice(0,1))},[i,l,m,L]),_=Xe((k)=>{k.preventDefault(),k.stopPropagation(),T(!0)},[]),G=Xe((k)=>{k.preventDefault(),k.stopPropagation(),T(!1)},[]),O=Xe((k)=>{k.preventDefault(),k.stopPropagation()},[]),$=Xe((k)=>{if(k.preventDefault(),k.stopPropagation(),T(!1),r)return;R(k.dataTransfer.files)},[r,R]),w=Xe((k)=>{if(R(k.target.files),M.current)M.current.value=""},[R]),I=Xe(()=>{if(!r)M.current?.click()},[r]),h=Xe((k)=>{if(k.key==="Enter"||k.key===" ")k.preventDefault(),I()},[I]),V=Xe((k)=>{let Y=l.filter((g,y)=>y!==k);m?.(Y)},[l,m]),J=Pe("svg",{className:o(Ul({size:N,isDragging:z})),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:o("w-full",e),...v,children:[Pe("div",{role:"button",tabIndex:r?-1:0,onClick:I,onKeyDown:h,onDragEnter:_,onDragLeave:G,onDragOver:O,onDrop:$,className:o(Wl({size:N,isDragging:z,disabled:r,hasError:b})),children:[Pe("input",{ref:M,type:"file",accept:a,multiple:i,disabled:r,onChange:w,className:"sr-only"},void 0,!1,void 0,this),f||J,Pe("p",{className:o(Ga({size:N}),"font-medium text-foreground"),children:c},void 0,!1,void 0,this),P&&Pe("p",{className:o(Ga({size:N}),"mt-1 text-muted-foreground"),children:P},void 0,!1,void 0,this)]},void 0,!0,void 0,this),p&&l.length>0&&Pe("div",{className:o($l()),children:l.map((k,Y)=>Pe("div",{className:o(Kl()),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(Yl({size:N})),children:k.name},void 0,!1,void 0,this),Pe("span",{className:o(Xl({size:N})),children:C(k.size)},void 0,!1,void 0,this),Pe("button",{type:"button",onClick:(g)=>{g.stopPropagation(),V(Y)},className:o(ql()),"aria-label":`Remove ${k.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)]},`${k.name}-${Y}`,!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});Zl.displayName="FileUpload";import{cva as Mg}from"class-variance-authority";import{createContext as Ng,forwardRef as ko,useContext as Lg,useId as Rg}from"react";import{jsxDEV as Ot,Fragment as kg}from"react/jsx-dev-runtime";var De={sm:"sm",md:"md",lg:"lg"},Jl=Ng(null),$r=()=>{let e=Lg(Jl);if(!e)throw Error("useFormField must be used within a FormField");return e},Ql=Mg("flex flex-col",{variants:{size:{[De.sm]:"gap-1",[De.md]:"gap-1.5",[De.lg]:"gap-2"}},defaultVariants:{size:De.md}}),El=ko(({className:e,size:t=De.md,error:r,disabled:a=!1,required:i=!1,children:n,...s},l)=>{let m=Rg(),d=u(t),f={id:m,size:d,error:r,disabled:a,required:i};return Ot(Jl.Provider,{value:f,children:Ot("div",{ref:l,className:o(Ql({size:d}),e),...s,children:n},void 0,!1,void 0,this)},void 0,!1,void 0,this)});El.displayName="FormField";var Hg={[De.sm]:"text-xs",[De.md]:"text-sm",[De.lg]:"text-base"},jl=ko(({className:e,htmlFor:t,children:r,...a},i)=>{let{id:n,size:s,disabled:l,required:m}=$r();return Ot("label",{ref:i,htmlFor:t??n,className:o("inline-block font-medium text-foreground select-none",Hg[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)});jl.displayName="FormFieldLabel";var em={[De.sm]:"text-[10px]",[De.md]:"text-xs",[De.lg]:"text-sm"},tm=ko(({className:e,...t},r)=>{let{id:a,size:i}=$r();return Ot("p",{ref:r,id:`${a}-description`,className:o("text-muted-foreground",em[i],e),...t},void 0,!1,void 0,this)});tm.displayName="FormFieldDescription";var rm=ko(({className:e,children:t,...r},a)=>{let{id:i,size:n,error:s}=$r(),l=t??s;if(!l)return null;return Ot("p",{ref:a,id:`${i}-error`,role:"alert",className:o("text-destructive",em[n],e),...r,children:l},void 0,!1,void 0,this)});rm.displayName="FormFieldError";var om=({children:e})=>{let{id:t,disabled:r,required:a,error:i}=$r(),n=[i?`${t}-error`:void 0,`${t}-description`].filter(Boolean).join(" ");return Ot(kg,{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)};om.displayName="FormFieldControl";import*as Gt from"@radix-ui/react-hover-card";import{cva as Ag}from"class-variance-authority";import{forwardRef as Ig}from"react";import{jsxDEV as Dg}from"react/jsx-dev-runtime";var yr={sm:"sm",md:"md",lg:"lg"},am=Ag("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:{[yr.sm]:"w-52 p-3 text-xs",[yr.md]:"w-64 p-4 text-sm",[yr.lg]:"w-80 p-5 text-sm"}},defaultVariants:{size:yr.md}}),Vg=Gt.Root,Bg=Gt.Trigger,im=Ig(({className:e,align:t="center",sideOffset:r=4,size:a=yr.md,...i},n)=>{let s=u(a);return Dg(Gt.Content,{ref:n,align:t,sideOffset:r,className:o(am({size:s}),e),...i},void 0,!1,void 0,this)});im.displayName=Gt.Content.displayName;import{cva as Fg}from"class-variance-authority";import{X as _g}from"lucide-react";import{forwardRef as Og,useRef as Gg,useState as Wg}from"react";import{jsxDEV as Wt}from"react/jsx-dev-runtime";var Kr={default:"default",error:"error",success:"success"},X={sm:"sm",md:"md",lg:"lg",xl:"xl"},Ug="Clear input",sm=Fg("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:{[Kr.default]:"focus-visible:ring-primary",[Kr.error]:"border-destructive focus-visible:ring-destructive",[Kr.success]:"border-success focus-visible:ring-success"},size:{[X.sm]:"h-8 px-2 text-xs",[X.md]:"h-10 px-3",[X.lg]:"h-11 px-4",[X.xl]:"h-12 px-4 text-base"}},defaultVariants:{status:Kr.default,size:X.md}}),$g={[X.sm]:"pl-7",[X.md]:"pl-9",[X.lg]:"pl-10",[X.xl]:"pl-10"},Kg={[X.sm]:"pr-7",[X.md]:"pr-9",[X.lg]:"pr-10",[X.xl]:"pr-10"},Yg={[X.sm]:"pr-12",[X.md]:"pr-16",[X.lg]:"pr-18",[X.xl]:"pr-18"},Xg={[X.sm]:"text-xs left-2",[X.md]:"text-sm left-3",[X.lg]:"text-sm left-3.5",[X.xl]:"text-base left-3.5"},qg={[X.sm]:"text-xs",[X.md]:"text-sm",[X.lg]:"text-sm",[X.xl]:"text-base"},Zg={[X.sm]:"size-4",[X.md]:"size-5",[X.lg]:"size-5",[X.xl]:"size-6"};function nm(e){if(e===void 0||e===null)return"";if(Array.isArray(e))return e.join("");return String(e)}var lm=Og(({className:e,status:t=Kr.default,size:r=X.md,fullWidth:a=!1,prefix:i,suffix:n,clearable:s=!1,clearAriaLabel:l=Ug,onClear:m,onValueChange:d,disabled:f,readOnly:c,onChange:P,value:p,defaultValue:v,...S},N)=>{let z=Boolean(i),T=Boolean(n),b=u(r),x=Gg(null),M=Yr(N,x),[C,L]=Wg(()=>nm(v)),R=p!==void 0,_=R?nm(p):C,G=s&&!f&&!c&&_.length>0,O=T||G,$=T&&G,w=(h)=>{let V=h.target.value;if(!R)L(V);d?.(V),P?.(h)},I=()=>{if(!R)L("");d?.("");let h=x.current;if(h)h.value="",h.dispatchEvent(new Event("input",{bubbles:!0})),h.focus();m?.()};return Wt("div",{className:o("relative flex items-center",a&&"w-full"),children:[z&&Wt("span",{className:o("absolute inset-y-0 flex items-center text-muted-foreground",Xg[b]),children:i},void 0,!1,void 0,this),Wt("input",{ref:M,className:o(sm({status:t,size:b}),z&&$g[b],$&&Yg[b],!$&&O&&Kg[b],e),disabled:f,readOnly:c,onChange:w,value:_,...S},void 0,!1,void 0,this),O&&Wt("span",{className:o("absolute inset-y-0 right-2 flex items-center gap-1 text-muted-foreground",qg[b]),children:[T&&Wt("span",{className:"inline-flex items-center",children:n},void 0,!1,void 0,this),G&&Wt("button",{type:"button","aria-label":l,onMouseDown:(h)=>h.preventDefault(),onClick:I,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",Zg[b]),children:Wt(_g,{className:"size-3.5"},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)});lm.displayName="Input";import{cva as Jg}from"class-variance-authority";import{forwardRef as Qg}from"react";function Xr(){return Wa()}import{jsxDEV as Eg}from"react/jsx-dev-runtime";var Pr={sm:"sm",md:"md",lg:"lg"},mm=Jg("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:{[Pr.sm]:"min-w-5 h-5 px-1 text-[10px]",[Pr.md]:"min-w-6 h-6 px-1.5 text-xs",[Pr.lg]:"min-w-7 h-7 px-2 text-sm"}},defaultVariants:{size:Pr.md}}),dm=Qg(({className:e,size:t=Pr.md,keys:r,children:a,...i},n)=>{let s=u(t),{isMac:l}=Xr(),m=r?qr(r,l):a;return Eg("kbd",{ref:n,className:o(mm({size:s}),e),...i,children:m},void 0,!1,void 0,this)});dm.displayName="Kbd";import{cva as jg}from"class-variance-authority";import{forwardRef as ev}from"react";import{jsxDEV as pm}from"react/jsx-dev-runtime";var hr={sm:"sm",md:"md",lg:"lg"},cm=jg("inline-block font-medium text-foreground select-none peer-disabled:cursor-not-allowed peer-disabled:opacity-60",{variants:{size:{[hr.sm]:"text-xs",[hr.md]:"text-sm",[hr.lg]:"text-base"}},defaultVariants:{size:hr.md}}),um=ev(({className:e,size:t=hr.md,required:r=!1,disabled:a=!1,children:i,...n},s)=>{let l=u(t);return pm("label",{ref:s,className:o(cm({size:l}),a&&"cursor-not-allowed opacity-60",e),"aria-disabled":a||void 0,...n,children:[i,r&&pm("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="Label";import*as zt from"@radix-ui/react-popover";import{cva as sv}from"class-variance-authority";import{Check as lv,ChevronDown as mv,X as dv,X as pv}from"lucide-react";import{forwardRef as cv,useCallback as Zr,useEffect as uv,useRef as fv,useState as vm}from"react";import*as Fe from"@radix-ui/react-popover";import{cva as tv}from"class-variance-authority";import{forwardRef as rv}from"react";import{jsxDEV as fm}from"react/jsx-dev-runtime";var Tr={sm:"sm",md:"md",lg:"lg"},xr=tv("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:{[Tr.sm]:"w-56 p-3 text-sm",[Tr.md]:"w-72 p-4 text-sm",[Tr.lg]:"w-96 p-5 text-sm"}},defaultVariants:{size:Tr.md}}),ov=Fe.Root,av=Fe.Trigger,iv=Fe.Anchor,nv=Fe.Close,gm=rv(({className:e,align:t="center",sideOffset:r=4,portal:a=!0,portalContainer:i,size:n=Tr.md,...s},l)=>{let m=u(n),d=fm(Fe.Content,{ref:l,align:t,sideOffset:r,className:o(xr({size:m}),e),...s},void 0,!1,void 0,this);if(a)return fm(Fe.Portal,{container:i??void 0,children:d},void 0,!1,void 0,this);return d});gm.displayName="PopoverContent";import{jsxDEV as re,Fragment as bv}from"react/jsx-dev-runtime";var de={sm:"sm",md:"md",lg:"lg",xl:"xl"},bm=sv(["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"}}),gv={[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"},vv={[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"},Ao={[de.sm]:"size-3.5",[de.md]:"size-4",[de.lg]:"size-4",[de.xl]:"size-4.5"},ym=cv(({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:d=3,disabled:f,...c},P)=>{let p=u(s)??s,[v,S]=vm(!1),[N,z]=vm(a),T=fv(null),b=r!==void 0,x=b?r:N,M=Zr((w)=>{let I=x.includes(w)?x.filter((h)=>h!==w):[...x,w];if(!b)z(I);i?.(I)},[x,b,i]),C=Zr((w,I)=>{I.stopPropagation();let h=x.filter((V)=>V!==w);if(!b)z(h);i?.(h)},[x,b,i]),L=Zr((w)=>{if(w.stopPropagation(),w.preventDefault(),!b)z([]);i?.([])},[b,i]),R=t.filter((w)=>x.includes(w.value)),_=R.length>0,G=m&&_&&!f,O=Zr((w)=>{let I=T.current;if(!I)return;let h=Array.from(I.querySelectorAll('[role="option"]:not([data-disabled])'));if(h.length===0)return;let V=I.querySelector('[role="option"]:focus'),J=V?h.indexOf(V):-1,k;switch(w){case"first":k=h[0];break;case"last":k=h[h.length-1];break;case"next":k=h[J+1]??h[0];break;case"prev":k=h[J-1]??h[h.length-1];break}k?.focus()},[]),$=Zr((w)=>{switch(w.key){case"ArrowDown":w.preventDefault(),O("next");break;case"ArrowUp":w.preventDefault(),O("prev");break;case"Home":w.preventDefault(),O("first");break;case"End":w.preventDefault(),O("last");break;case"Escape":w.preventDefault(),S(!1);break}},[O]);return uv(()=>{if(v)requestAnimationFrame(()=>O("first"))},[v,O]),re(zt.Root,{open:v,onOpenChange:S,children:[re(zt.Trigger,{asChild:!0,children:re("button",{ref:P,type:"button",disabled:f,"data-state":v?"open":"closed","data-placeholder":_?void 0:"",className:o(bm({size:p,status:l}),e),...c,children:[re("span",{className:"flex min-w-0 flex-1 flex-wrap items-center gap-1 text-left",children:_?re(bv,{children:[R.slice(0,d).map((w)=>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",gv[p]),children:[re("span",{className:"truncate",children:w.label},void 0,!1,void 0,this),re("span",{"data-slot":"multiselect-remove","aria-label":`Remove ${w.label}`,onMouseDown:(I)=>I.preventDefault(),onClick:(I)=>C(w.value,I),className:"ml-0.5 inline-flex shrink-0 items-center justify-center rounded-full opacity-60 hover:opacity-100",children:re(pv,{className:"h-3 w-3"},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},w.value,!0,void 0,this)),R.length>d&&re("span",{className:"text-muted-foreground text-xs",children:["+",R.length-d]},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:[G&&re("span",{role:"button",tabIndex:-1,"aria-label":"Clear all",onMouseDown:(w)=>w.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:re(dv,{className:Ao[p]},void 0,!1,void 0,this)},void 0,!1,void 0,this),re(mv,{className:o(Ao[p],"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(zt.Portal,{children:re(zt.Content,{ref:T,role:"listbox","aria-multiselectable":"true",align:"start",sideOffset:4,onKeyDown:$,onOpenAutoFocus:(w)=>w.preventDefault(),className:o(xr(),"max-h-96 w-[var(--radix-popover-trigger-width)] overflow-y-auto overflow-x-hidden p-1"),children:[t.map((w)=>{let I=x.includes(w.value);return re("div",{role:"option",tabIndex:w.disabled?void 0:-1,"aria-selected":I,"aria-disabled":w.disabled||void 0,"data-disabled":w.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",vv[p]),onClick:()=>!w.disabled&&M(w.value),onKeyDown:(h)=>{if(h.key==="Enter"||h.key===" "){if(h.preventDefault(),!w.disabled)M(w.value)}},children:[re("span",{className:o("flex shrink-0 items-center justify-center",Ao[p]),children:I&&re(lv,{className:Ao[p]},void 0,!1,void 0,this)},void 0,!1,void 0,this),re("span",{className:"min-w-0 flex-1 truncate",children:w.label},void 0,!1,void 0,this)]},w.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)});ym.displayName="Multiselect";import*as oe from"@radix-ui/react-navigation-menu";import{cva as Ut}from"class-variance-authority";import{createContext as yv,forwardRef as Cr,useContext as Pv}from"react";import{jsxDEV as He}from"react/jsx-dev-runtime";var qe={sm:"sm",md:"md",lg:"lg"},Pm=yv(qe.md),hm=Ut("relative z-10 flex max-w-max flex-1 items-center justify-center"),Tm=Ut("group flex flex-1 list-none items-center justify-center space-x-1"),xm=Ut(["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}}),Cm=Ut(["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"]),hv=Ut(["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}}),Sm=Ut(["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)]"]),zm=Ut(["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"]),Tv=()=>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),wm=Cr(({className:e,children:t,size:r,...a},i)=>{let n=u(r??qe.md);return He(Pm.Provider,{value:n,children:He(oe.Root,{ref:i,className:o(hm(),e),...a,children:[t,He(Ua,{},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)});wm.displayName=oe.Root.displayName;var Mm=Cr(({className:e,...t},r)=>He(oe.List,{ref:r,className:o(Tm(),e),...t},void 0,!1,void 0,this));Mm.displayName=oe.List.displayName;var xv=oe.Item,Nm=Cr(({className:e,children:t,...r},a)=>{let i=Pv(Pm);return He(oe.Trigger,{ref:a,className:o(xm({size:i}),"group",e),...r,children:[t,He(Tv,{},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});Nm.displayName=oe.Trigger.displayName;var Lm=Cr(({className:e,...t},r)=>He(oe.Content,{ref:r,className:o(Cm(),e),...t},void 0,!1,void 0,this));Lm.displayName=oe.Content.displayName;var Cv=oe.Link,Ua=Cr(({className:e,...t},r)=>He("div",{className:"absolute top-full left-0 flex justify-center",children:He(oe.Viewport,{className:o(Sm(),e),ref:r,...t},void 0,!1,void 0,this)},void 0,!1,void 0,this));Ua.displayName=oe.Viewport.displayName;var Rm=Cr(({className:e,...t},r)=>He(oe.Indicator,{ref:r,className:o(zm(),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));Rm.displayName=oe.Indicator.displayName;import{cva as Sr}from"class-variance-authority";import{Fragment as Sv,forwardRef as zv,useCallback as $t,useEffect as Hm,useMemo as km,useRef as wv,useState as Am}from"react";import{jsxDEV as Kt}from"react/jsx-dev-runtime";var Yt={sm:"sm",md:"md",lg:"lg",xl:"xl"},Qr={default:"default",error:"error",success:"success"},Jr={single:"single",first:"first",middle:"middle",last:"last"},Im=Sr("relative inline-flex items-center",{variants:{size:{sm:"gap-1",md:"gap-1.5",lg:"gap-2",xl:"gap-2.5"}},defaultVariants:{size:Yt.md}}),Vm=Sr("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:Yt.md,status:Qr.default}}),Bm=Sr(["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:Yt.md,filled:!1,focused:!1,status:Qr.default,disabled:!1,position:Jr.single}}),Dm=Sr(["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:Yt.md,status:Qr.default,filled:!1}}),Fm=Sr(["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:Yt.md,focused:!1}}),_m=Sr("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:Yt.md}});function Mv(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 Om=zv(({className:e,length:t=6,value:r,onChange:a,onComplete:i,size:n=Yt.md,status:s=Qr.default,disabled:l=!1,autoFocus:m=!1,mask:d=!1,groupSize:f,separator:c,separatorChar:P="—",placeholder:p="•",inputMode:v="numeric",pattern:S="[0-9]*",...N},z)=>{let T=u(n),b=Mv(t),x=wv([]),[M,C]=Am(null),[L,R]=Am(()=>$a(r,b));Hm(()=>{if(r!==void 0){R($a(r,b));return}R((g)=>$a(g.join(""),b))},[r,b]),Hm(()=>{if(m)x.current[0]?.focus()},[m]);let _=km(()=>{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 c==="number"&&Number.isFinite(c)){let g=Math.floor(c);if(g<=0)return b;return Math.min(b,Math.max(1,g))}if(c)return Math.max(1,Math.floor(b/2));return b},[f,b,c]),G=km(()=>{let g=[];for(let y=0;y<b;y+=_){let H=Math.min(y+_,b),ce=[];for(let q=y;q<H;q+=1)ce.push(q);g.push(ce)}return g},[_,b]),O=$t((g)=>{let y=x.current[g];if(!y)return;y.focus(),y.select()},[]),$=$t((g)=>{R(g);let y=g.join("");if(a?.(y),g.every((H)=>H!=="")&&y.length===b)i?.(y)},[a,i,b]),w=$t((g,y)=>{if(l)return;let ce=(v==="numeric"?y.replace(/\D/g,""):y).slice(-1),q=[...L];if(q[g]=ce,$(q),ce&&g<b-1)O(g+1)},[L,l,$,O,v,b]),I=$t((g,y)=>{if(l)return;if(y.key==="Backspace"){if(y.preventDefault(),L[g]){let H=[...L];H[g]="",$(H);return}if(g>0){let H=[...L];H[g-1]="",$(H),O(g-1)}return}if(y.key==="Delete"){if(y.preventDefault(),L[g]){let H=[...L];H[g]="",$(H)}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)},[L,l,$,O,b]),h=$t((g,y)=>{if(y.preventDefault(),l)return;let H=y.clipboardData.getData("text"),q=(v==="numeric"?H.replace(/\D/g,""):H.replace(/\s/g,"")).split("");if(q.length===0)return;let Ae=[...L];for(let A=0;A<q.length;A+=1){let j=g+A;if(j>=b)break;Ae[j]=q[A]??""}$(Ae);let E=Math.min(b-1,g+q.length-1);if(E<b-1){O(E+1);return}x.current[E]?.blur()},[L,l,$,O,v,b]),V=$t((g,y)=>{C(g),y.target.select()},[]),J=$t(()=>{C(null)},[]),k=c!==void 0,Y=P.length>0&&c!==!1&&(k||G.length>1);return Kt("div",{ref:z,className:o(Im({size:T}),e),role:"group","aria-label":"One-time password input",...N,children:G.map((g,y)=>Kt(Sv,{children:[Kt("div",{"data-gs-otp-group":"true",className:o(Vm({size:T,status:s})),children:g.map((H,ce)=>{let q=L[H]??"",Ae=M===H,E=Jr.middle;if(g.length===1)E=Jr.single;else if(ce===0)E=Jr.first;else if(ce===g.length-1)E=Jr.last;return Kt("div",{"data-gs-otp-slot":"true","data-disabled":l,className:o(Bm({size:T,filled:Boolean(q),focused:Ae,status:s,disabled:l,position:E})),children:[Kt("input",{ref:(A)=>{x.current[H]=A},type:d?"password":"text",inputMode:v,pattern:S,maxLength:1,value:q,placeholder:"",disabled:l,"aria-invalid":s===Qr.error,"aria-label":`Digit ${H+1} of ${b}`,autoComplete:"one-time-code",onChange:(A)=>w(H,A.target.value),onKeyDown:(A)=>I(H,A),onPaste:(A)=>h(H,A),onFocus:(A)=>V(H,A),onBlur:J,className:o(Dm({size:T,status:s,filled:Boolean(q)}))},void 0,!1,void 0,this),!q&&Kt("div",{"data-gs-otp-placeholder":"true","aria-hidden":"true",className:o(Fm({size:T,focused:Ae})),children:p},void 0,!1,void 0,this)]},`slot-${H}`,!0,void 0,this)})},void 0,!1,void 0,this),Y&&y<G.length-1&&Kt("span",{"data-gs-otp-separator":"true",className:o(_m({size:T})),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)});Om.displayName="OTPInput";import{createContext as Av,useCallback as zr,useContext as Iv,useMemo as Vv,useState as Bv}from"react";import*as ne from"@radix-ui/react-dialog";import{cva as Gm}from"class-variance-authority";import{X as Nv}from"lucide-react";import{forwardRef as Io}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"},Lv={[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"},Rv={[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"}},Wm=Gm("gs-sheet-overlay fixed inset-0 z-50 bg-black/50"),Um=Gm("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}}),Ka=ne.Root,Hv=ne.Trigger,kv=ne.Close,$m=ne.Portal,Ya=Io(({className:e,...t},r)=>Ze(ne.Overlay,{className:o(Wm(),e),...t,ref:r},void 0,!1,void 0,this));Ya.displayName=ne.Overlay.displayName;var Vo=Io(({side:e="right",size:t=te.md,showClose:r=!0,className:a,children:i,...n},s)=>{let l=u(t)??te.md,m=Lv[e],d=Rv[e][l];return Ze($m,{children:[Ze(Ya,{},void 0,!1,void 0,this),Ze(ne.Content,{ref:s,className:o(Um({side:e}),m,d,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(Nv,{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)});Vo.displayName=ne.Content.displayName;var Km=({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);Km.displayName="SheetHeader";var Ym=({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);Ym.displayName="SheetFooter";var Xm=Io(({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));Xm.displayName=ne.Title.displayName;var qm=Io(({className:e,...t},r)=>Ze(ne.Description,{ref:r,className:o("text-muted-foreground text-sm",e),...t},void 0,!1,void 0,this));qm.displayName=ne.Description.displayName;import{jsxDEV as pt}from"react/jsx-dev-runtime";var Xa=0;function Dv(){return Xa=(Xa+1)%Number.MAX_SAFE_INTEGER,`overlay-${Xa}-${Date.now()}`}var Jm=Av(null),Zm=400;function Qm({children:e}){let[t,r]=Bv([]),a=zr((d)=>{r((f)=>f.map((c)=>c.id===d?{...c,open:!1}:c)),setTimeout(()=>{r((f)=>f.filter((c)=>c.id!==d))},Zm)},[]),i=zr(()=>{r((d)=>d.map((f)=>({...f,open:!1}))),setTimeout(()=>{r([])},Zm)},[]),n=zr((d,f,c,P={})=>{let p=Dv(),v=(z)=>{return pt(f,{...c,close:z.close},void 0,!1,void 0,this)};v.displayName=`OverlayWrapper(${f.displayName??f.name??"Component"})`;let S={id:p,type:d,component:v,wrapperProps:P,open:!0};return r((z)=>[...z,S]),{id:p,close:()=>a(p)}},[a]),s=zr((d,f,c)=>{return n("dialog",d,f,c)},[n]),l=zr((d,f,c)=>{return n("sheet",d,f,c)},[n]),m=Vv(()=>({dialog:s,sheet:l,close:a,closeAll:i}),[s,l,a,i]);return pt(Jm.Provider,{value:m,children:[e,t.map((d)=>pt(Fv,{entry:d,onClose:a},d.id,!1,void 0,this))]},void 0,!0,void 0,this)}Qm.displayName="OverlayProvider";function Fv({entry:e,onClose:t}){let{id:r,type:a,component:i,wrapperProps:n,open:s}=e,l=zr(()=>t(r),[r,t]);if(a==="dialog"){let{showClose:m,size:d,...f}=n;return pt(Va,{open:s,onOpenChange:(c)=>!c&&l(),children:pt(Lo,{showClose:m,size:d,...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:d,...f}=n;return pt(Ka,{open:s,onOpenChange:(c)=>!c&&l(),children:pt(Vo,{side:m,showClose:d,...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 _v(){let e=Iv(Jm);if(!e)throw Error("useOverlay must be used within an OverlayProvider");return e}import{cva as Er}from"class-variance-authority";import{ChevronLeft as Ov,ChevronRight as Gv,MoreHorizontal as Wv}from"lucide-react";import{createContext as Uv,forwardRef as jr,useContext as Bo}from"react";import{jsxDEV as we}from"react/jsx-dev-runtime";var _e={sm:"sm",md:"md",lg:"lg"},eo=Uv(_e.md),Em=Er("mx-auto flex w-full justify-center"),jm=Er("flex flex-row items-center gap-1"),ed=Er(""),Do=Er("gs-interactive inline-flex items-center justify-center whitespace-nowrap rounded-[var(--radius)] font-medium focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 hover:bg-accent hover:text-accent-foreground",{variants:{isActive:{true:"border border-border bg-background shadow-[var(--shadow-sm)]",false:""},size:{[_e.sm]:"h-7 w-7 text-xs [&_svg]:size-3.5",[_e.md]:"h-9 w-9 text-sm [&_svg]:size-4",[_e.lg]:"h-10 w-10 text-sm [&_svg]:size-5"}},defaultVariants:{isActive:!1,size:_e.md}}),td=Er("flex items-center justify-center",{variants:{size:{[_e.sm]:"h-7 w-7 [&_svg]:size-3.5",[_e.md]:"h-9 w-9 [&_svg]:size-4",[_e.lg]:"h-10 w-10 [&_svg]:size-5"}},defaultVariants:{size:_e.md}}),rd=({className:e,size:t=_e.md,...r})=>{let a=u(t)??_e.md;return we(eo.Provider,{value:a,children:we("nav",{"aria-label":"pagination",className:o(Em(),e),...r},void 0,!1,void 0,this)},void 0,!1,void 0,this)};rd.displayName="Pagination";var od=jr(({className:e,...t},r)=>we("ul",{ref:r,className:o(jm(),e),...t},void 0,!1,void 0,this));od.displayName="PaginationContent";var ad=jr(({className:e,...t},r)=>we("li",{ref:r,className:o(ed(),e),...t},void 0,!1,void 0,this));ad.displayName="PaginationItem";var id=jr(({className:e,isActive:t,...r},a)=>{let i=Bo(eo);return we("button",{ref:a,type:"button","aria-current":t?"page":void 0,className:o(Do({isActive:t,size:i}),e),...r},void 0,!1,void 0,this)});id.displayName="PaginationLink";var nd=jr(({className:e,...t},r)=>{let a=Bo(eo);return we("button",{ref:r,type:"button","aria-label":"Go to previous page",className:o(Do({size:a}),"gap-1 pl-2.5 pr-3 w-auto",e),...t,children:[we(Ov,{},void 0,!1,void 0,this),we("span",{children:"Previous"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});nd.displayName="PaginationPrevious";var sd=jr(({className:e,...t},r)=>{let a=Bo(eo);return we("button",{ref:r,type:"button","aria-label":"Go to next page",className:o(Do({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(Gv,{},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});sd.displayName="PaginationNext";var ld=({className:e,...t})=>{let r=Bo(eo);return we("span",{"aria-hidden":!0,className:o(td({size:r}),e),...t,children:[we(Wv,{},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)};ld.displayName="PaginationEllipsis";import*as oo from"@radix-ui/react-progress";import{cva as md}from"class-variance-authority";import{forwardRef as $v}from"react";import{jsxDEV as Fo}from"react/jsx-dev-runtime";var to={sm:"sm",md:"md",lg:"lg",xl:"xl"},ro={default:"default",success:"success",warning:"warning",error:"error"},dd=md("relative w-full overflow-hidden rounded-full bg-muted",{variants:{size:{[to.sm]:"h-1",[to.md]:"h-2.5",[to.lg]:"h-4",[to.xl]:"h-5"}},defaultVariants:{size:to.md}}),pd=md("h-full w-full flex-1 rounded-full transition-transform duration-100 ease-out",{variants:{variant:{[ro.default]:"bg-primary",[ro.success]:"bg-success",[ro.warning]:"bg-warning",[ro.error]:"bg-destructive"}},defaultVariants:{variant:ro.default}}),cd=$v(({className:e,value:t,size:r,variant:a,showValue:i,...n},s)=>{let l=u(r);return Fo("div",{className:"flex w-full items-center gap-2",children:[Fo(oo.Root,{ref:s,className:o(dd({size:l}),e),...n,children:Fo(oo.Indicator,{className:o(pd({variant:a})),style:{transform:`translateX(-${100-(t||0)}%)`}},void 0,!1,void 0,this)},void 0,!1,void 0,this),i&&Fo("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)});cd.displayName=oo.Root.displayName;import*as Mr from"@radix-ui/react-radio-group";import{cva as ud}from"class-variance-authority";import{forwardRef as fd}from"react";import{jsxDEV as _o}from"react/jsx-dev-runtime";var Je={sm:"sm",md:"md",lg:"lg",xl:"xl"},wr={default:"default",error:"error",success:"success"},gd=ud("grid gap-2"),vd=ud("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:{[wr.default]:"enabled:hover:border-primary/70",[wr.error]:"border-destructive enabled:hover:border-destructive/70 focus-visible:ring-destructive data-[state=checked]:border-destructive data-[state=checked]:text-destructive",[wr.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:wr.default}}),Kv={[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"},bd=fd(({className:e,...t},r)=>_o(Mr.Root,{ref:r,className:o(gd(),e),...t},void 0,!1,void 0,this));bd.displayName="RadioGroup";var yd=fd(({className:e,size:t=Je.md,status:r=wr.default,...a},i)=>{let n=u(t);return _o(Mr.Item,{ref:i,className:o(vd({size:n,status:r}),e),...a,children:_o(Mr.Indicator,{className:"flex items-center justify-center",children:_o("span",{className:o("block rounded-full bg-current transition-transform duration-150",Kv[n])},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)});yd.displayName="RadioGroupItem";import{cva as Wo}from"class-variance-authority";import{forwardRef as qa,useCallback as Oo,useRef as Yv,useState as Xv}from"react";import{jsxDEV as Go}from"react/jsx-dev-runtime";var Pd=Wo("flex h-full w-full",{variants:{direction:{horizontal:"flex-row",vertical:"flex-col"}},defaultVariants:{direction:"horizontal"}}),hd=Wo("relative overflow-hidden"),Td=Wo("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}}),xd=Wo("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"}}),Cd=qa(({className:e,direction:t="horizontal",children:r,...a},i)=>Go("div",{ref:i,"data-panel-group":"","data-direction":t,className:o(Pd({direction:t}),e),...a,children:r},void 0,!1,void 0,this));Cd.displayName="ResizablePanelGroup";var Sd=qa(({className:e,defaultSize:t=50,children:r,style:a,...i},n)=>Go("div",{ref:n,"data-panel":"",className:o(hd(),e),style:{...a,flexGrow:0,flexShrink:0,flexBasis:`${t}%`},...i,children:r},void 0,!1,void 0,this));Sd.displayName="ResizablePanel";var zd=qa(({className:e,withHandle:t=!1,disabled:r=!1,...a},i)=>{let[n,s]=Xv(!1),l=Yv(null),m=Oo((p,v)=>{if(r)return;s(!0);let S=(z)=>{let T="touches"in z?z.touches[0]:null,b=T?T.clientX:z.clientX,x=T?T.clientY:z.clientY,M=l.current;if(!M)return;let C=M.closest("[data-panel-group]");if(!C)return;let L=C.dataset.direction,R=C.getBoundingClientRect(),_=Array.from(C.querySelectorAll(":scope > [data-panel]")),G=Array.from(C.children).indexOf(M),O,$;for(let w of _){let I=Array.from(C.children).indexOf(w);if(I<G)O=w;if(I>G&&!$)$=w}if(O&&$){let w=L==="horizontal"?R.width:R.height,h=(L==="horizontal"?b-R.left:x-R.top)/w*100,V=Math.max(10,Math.min(90,h)),J=100-V;O.style.flexBasis=`${V}%`,$.style.flexBasis=`${J}%`}},N=()=>{s(!1),document.removeEventListener("mousemove",S),document.removeEventListener("mouseup",N),document.removeEventListener("touchmove",S),document.removeEventListener("touchend",N)};document.addEventListener("mousemove",S),document.addEventListener("mouseup",N),document.addEventListener("touchmove",S),document.addEventListener("touchend",N)},[r]),d=Oo((p)=>{p.preventDefault(),m(p.clientX,p.clientY)},[m]),f=Oo((p)=>{let v=p.touches[0];if(v)m(v.clientX,v.clientY)},[m]),c=Oo((p)=>{if(r)return;let v=l.current??p.currentTarget,S=v.closest("[data-panel-group]");if(!S)return;let N=S.dataset.direction,z=p.shiftKey?10:1,T=Array.from(S.querySelectorAll(":scope > [data-panel]")),b=Array.from(S.children).indexOf(v),x,M;for(let R of T){let _=Array.from(S.children).indexOf(R);if(_<b)x=R;if(_>b&&!M)M=R}if(!(x&&M))return;let C=Number.parseFloat(x.style.flexBasis)||50,L=0;if(N==="horizontal"){if(p.key==="ArrowLeft")L=-z;if(p.key==="ArrowRight")L=z}else{if(p.key==="ArrowUp")L=-z;if(p.key==="ArrowDown")L=z}if(L!==0){p.preventDefault();let R=Math.max(10,Math.min(90,C+L));x.style.flexBasis=`${R}%`,M.style.flexBasis=`${100-R}%`}},[r]),P="horizontal";return Go("div",{ref:(p)=>{if(l.current=p,typeof i==="function")i(p);else if(i)i.current=p},role:"separator","aria-orientation":"horizontal",tabIndex:r?-1:0,"data-panel-resize-handle":"","data-dragging":n,onMouseDown:d,onTouchStart:f,onKeyDown:c,className:o(Td({direction:"horizontal",withHandle:t}),n&&"bg-primary",r&&"pointer-events-none opacity-50",e),...a,children:t&&Go("div",{className:o(xd({direction:"horizontal"}))},void 0,!1,void 0,this)},void 0,!1,void 0,this)});zd.displayName="ResizableHandle";import*as rt from"@radix-ui/react-scroll-area";import{cva as Za}from"class-variance-authority";import{forwardRef as wd}from"react";import{jsxDEV as Nr}from"react/jsx-dev-runtime";var Md=Za("relative overflow-hidden"),qv={display:"flex",flexDirection:"column"},Zv={flex:"1 1 0%",minHeight:0},Nd=Za("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"}}),Ld=Za("relative flex-1 rounded-full bg-border"),Rd=wd(({className:e,children:t,style:r,...a},i)=>Nr(rt.Root,{ref:i,className:o(Md(),e),style:{...r,...qv},...a,children:[Nr(rt.Viewport,{className:"w-full rounded-[inherit]",style:Zv,children:t},void 0,!1,void 0,this),Nr(Ja,{},void 0,!1,void 0,this),Nr(rt.Corner,{},void 0,!1,void 0,this)]},void 0,!0,void 0,this));Rd.displayName="ScrollArea";var Ja=wd(({className:e,orientation:t="vertical",...r},a)=>Nr(rt.ScrollAreaScrollbar,{ref:a,orientation:t,className:o(Nd({orientation:t}),e),...r,children:Nr(rt.ScrollAreaThumb,{className:o(Ld())},void 0,!1,void 0,this)},void 0,!1,void 0,this));Ja.displayName="ScrollBar";import{cva as Ea}from"class-variance-authority";import{createContext as Jv,forwardRef as ja,useCallback as Hd,useContext as Id,useEffect as Qa,useLayoutEffect as Qv,useRef as kd,useState as Ad}from"react";import{jsxDEV as Xt}from"react/jsx-dev-runtime";var Me={sm:"sm",md:"md",lg:"lg"},Vd=Ea("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}}),Bd=Ea(["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}}),Dd=Ea(["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}}),ei=Jv({activeValue:"",onSelect:()=>{},size:Me.md,disabled:!1}),Ev=typeof window<"u"?Qv:Qa,Fd=ja(({className:e,value:t,defaultValue:r,onValueChange:a,size:i,disabled:n=!1,children:s,...l},m)=>{let d=u(i),f=kd(null),[c,P]=Ad(r??""),[p,v]=Ad(null),S=kd(!0),N=t!==void 0?t:c,z=Hd((b)=>{if(n)return;if(t===void 0)P(b);a?.(b)},[n,t,a]),T=Hd(()=>{let b=f.current;if(!b)return;let x=b.querySelector('[data-state="active"]');if(!x){v(null);return}let M=b.getBoundingClientRect(),C=x.getBoundingClientRect();v({left:C.left-M.left,width:C.width})},[]);return Ev(()=>{T()},[T,N]),Qa(()=>{if(S.current)requestAnimationFrame(()=>{S.current=!1})},[]),Qa(()=>{let b=f.current;if(!b)return;let x=new MutationObserver(()=>{T()});return x.observe(b,{attributes:!0,attributeFilter:["data-state"],subtree:!0}),()=>x.disconnect()},[T]),Xt(ei.Provider,{value:{activeValue:N,onSelect:z,size:d,disabled:n},children:Xt("div",{ref:(b)=>{if(f.current=b,typeof m==="function")m(b);else if(m)m.current=b},role:"radiogroup",className:o(Vd({size:d}),n&&"opacity-50 pointer-events-none",e),...l,children:[p&&Xt("span",{"aria-hidden":"true",className:o("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)});Fd.displayName="SegmentedControl";var _d=ja(({className:e,value:t,icon:r,disabled:a=!1,...i},n)=>{let{activeValue:s,onSelect:l,size:m,disabled:d}=Id(ei),f=s===t,c=a||d;return Xt("button",{ref:n,type:"button",role:"radio","aria-checked":f,"aria-disabled":c||void 0,"data-state":f?"active":"inactive","data-value":t,disabled:c,onClick:()=>l(t),className:o(Bd({size:m,active:f}),e),...i,children:Xt("span",{className:"size-4 [&>svg]:size-full",children:r},void 0,!1,void 0,this)},void 0,!1,void 0,this)});_d.displayName="SegmentedControlItem";var Od=ja(({className:e,value:t,icon:r,disabled:a=!1,children:i,...n},s)=>{let{activeValue:l,onSelect:m,size:d,disabled:f}=Id(ei),c=l===t,P=a||f;return Xt("button",{ref:s,type:"button",role:"radio","aria-checked":c,"aria-disabled":P||void 0,"data-state":c?"active":"inactive","data-value":t,disabled:P,onClick:()=>m(t),className:o(Dd({size:d,active:c}),e),...n,children:[r&&Xt("span",{className:"size-4 [&>svg]:size-full",children:r},void 0,!1,void 0,this),i]},void 0,!0,void 0,this)});Od.displayName="SegmentedControlLabelItem";import*as wt from"@radix-ui/react-popover";import{cva as Wd}from"class-variance-authority";import{Check as jv,ChevronDown as eb,X as tb}from"lucide-react";import{Children as rb,createContext as ob,forwardRef as no,isValidElement as ab,useCallback as Uo,useContext as Ud,useEffect as $o,useId as Gd,useMemo as ib,useRef as $d,useState as ao}from"react";import{jsxDEV as ae,Fragment as cb}from"react/jsx-dev-runtime";var Q={sm:"sm",md:"md",lg:"lg",xl:"xl"},Lr={default:"default",error:"error",success:"success"},io={trigger:"trigger",auto:"auto"},nb={start:"start",center:"center",end:"end"},Kd=Wd(["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:{[Lr.default]:"focus-visible:ring-primary data-[state=open]:ring-primary",[Lr.error]:"border-destructive focus-visible:ring-destructive data-[state=open]:ring-destructive",[Lr.success]:"border-success focus-visible:ring-success data-[state=open]:ring-success"}},defaultVariants:{size:Q.md,status:Lr.default}}),Yd=Wd(["max-h-96 overflow-y-auto overflow-x-hidden"].join(" "),{variants:{widthMode:{[io.trigger]:"w-[var(--radix-popover-trigger-width)]",[io.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:io.auto,size:Q.md}}),sb={[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"},lb={[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"},Ko={[Q.sm]:"size-3.5",[Q.md]:"size-4",[Q.lg]:"size-4",[Q.xl]:"size-4.5"};function ti(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)=>ti(t)).join("");if(ab(e))return ti(e.props.children);return""}var ri=ob(null);function Yo(){let e=Ud(ri);if(!e)throw Error("Select components must be used within Select");return e}function oi(e){let t=Ud(ri);if(e)return e;return t?.triggerSize??Q.md}var mb=({children:e,value:t,defaultValue:r="",onValueChange:a,open:i,defaultOpen:n=!1,onOpenChange:s,disabled:l=!1})=>{let[m,d]=ao(Q.md),[f,c]=ao(!1),[P,p]=ao(r),[v,S]=ao(n),[N,z]=ao(0),T=$d(new Map),b=t!==void 0,x=i!==void 0,M=b?t:P,C=x?i:v,L=Uo((I)=>{if(!b)p(I);if(a?.(I),!x)S(!1);s?.(!1)},[b,x,a,s]),R=Uo((I)=>{if(l)return;if(!x)S(I);s?.(I)},[l,x,s]),_=Uo((I,h)=>{if(T.current.get(I)!==h)T.current.set(I,h),z((J)=>J+1)},[]),G=Uo((I)=>{return T.current.get(I)},[]),O=Gd(),$=Gd(),w=ib(()=>({value:M,onValueChange:L,open:C,onOpenChange:R,triggerSize:m,setTriggerSize:d,triggerFullWidth:f,setTriggerFullWidth:c,disabled:l,triggerId:O,contentId:$,registerItem:_,getLabel:G}),[M,L,C,R,m,f,l,O,$,_,G,N]);return ae(ri.Provider,{value:w,children:ae(wt.Root,{open:C,onOpenChange:R,children:e},void 0,!1,void 0,this)},void 0,!1,void 0,this)},db=({children:e,className:t})=>ae("div",{role:"group",className:t,children:e},void 0,!1,void 0,this),pb=({placeholder:e})=>{let{value:t,getLabel:r}=Yo();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(cb,{children:a??t},void 0,!1,void 0,this)},Xd=no(({className:e,children:t,size:r=Q.md,status:a=Lr.default,fullWidth:i=!1,clearable:n=!1,leadingIcon:s,indicatorIcon:l,renderValue:m,placeholder:d,onKeyDown:f,...c},P)=>{let p=Yo(),v=u(r)??r,S=p.setTriggerSize,N=p.setTriggerFullWidth;$o(()=>{S(v)},[v,S]),$o(()=>{N(i)},[i,N]);let z=p.value.length>0,T=n&&z&&!p.disabled,b=(C)=>{C.stopPropagation(),C.preventDefault(),p.onValueChange("")},x;if(m)x=z?m(p.value):d?ae("span",{className:"text-muted-foreground",children:d},void 0,!1,void 0,this):null;else x=t;let M=(C)=>{if(f?.(C),C.defaultPrevented)return;if(C.key==="ArrowDown"||C.key==="ArrowUp"||C.key==="Enter"||C.key===" "){if(!p.open)C.preventDefault(),p.onOpenChange(!0)}};return ae(wt.Trigger,{asChild:!0,children:ae("button",{ref:P,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":z?void 0:"",className:o(Kd({size:v,status:a}),i?"w-full":"w-auto",e),onKeyDown:M,...c,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:x},void 0,!1,void 0,this),ae("span",{className:"inline-flex shrink-0 items-center gap-1 text-muted-foreground",children:[T&&ae("span",{role:"button",tabIndex:-1,"aria-label":"Clear selection",onMouseDown:(C)=>C.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(tb,{className:Ko[v]},void 0,!1,void 0,this)},void 0,!1,void 0,this),l??ae(eb,{className:o(Ko[v],"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)});Xd.displayName="SelectTrigger";var qd=no(({className:e,children:t,widthMode:r,size:a,align:i="start",side:n="bottom",sideOffset:s=4,portal:l=!0,forceMount:m=!0,onKeyDown:d,...f},c)=>{let P=Yo(),p=oi(a),v=r??io.auto,S=$d(null),N=Yr(c,S),z=(x)=>{let M=S.current;if(!M)return;let C=Array.from(M.querySelectorAll('[role="option"]:not([data-disabled])'));if(C.length===0)return;let L=M.querySelector('[role="option"]:focus'),R=L?C.indexOf(L):-1,_;switch(x){case"first":_=C[0];break;case"last":_=C[C.length-1];break;case"next":_=C[R+1]??C[0];break;case"prev":_=C[R-1]??C[C.length-1];break}_?.focus()},T=(x)=>{if(d?.(x),x.defaultPrevented)return;switch(x.key){case"ArrowDown":x.preventDefault(),z("next");break;case"ArrowUp":x.preventDefault(),z("prev");break;case"Home":x.preventDefault(),z("first");break;case"End":x.preventDefault(),z("last");break;case"Escape":x.preventDefault(),P.onOpenChange(!1);break}};$o(()=>{if(P.open)requestAnimationFrame(()=>z("first"))},[P.open]);let b=ae(wt.Content,{ref:N,id:P.contentId,role:"listbox","aria-labelledby":P.triggerId,side:n,align:i,sideOffset:s,forceMount:m,onKeyDown:T,onOpenAutoFocus:(x)=>x.preventDefault(),className:o(xr(),Yd({widthMode:v,size:p}),"p-1",e),...f,children:t},void 0,!1,void 0,this);if(l)return ae(wt.Portal,{children:b},void 0,!1,void 0,this);return b});qd.displayName="SelectContent";var Zd=no(({className:e,size:t,...r},a)=>{let i=oi(t);return ae("div",{ref:a,className:o("font-semibold text-foreground",lb[i],e),...r},void 0,!1,void 0,this)});Zd.displayName="SelectLabel";var Jd=no(({className:e,children:t,value:r,label:a,size:i,disabled:n=!1,...s},l)=>{let m=Yo(),d=oi(i),f=m.value===r,c=m.registerItem,P=ti(rb.toArray(t)).trim();$o(()=>{let S=a??(P.length>0?P:r);c(r,S)},[P,r,a,c]);let p=()=>{if(!n)m.onValueChange(r)},v=(S)=>{if(S.key==="Enter"||S.key===" ")S.preventDefault(),p()};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",sb[d],f&&"bg-accent/50",e),onClick:p,onKeyDown:v,...s,children:[ae("span",{className:o("flex shrink-0 items-center justify-center",Ko[d]),children:f&&ae(jv,{className:Ko[d]},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)});Jd.displayName="SelectItem";var Qd=no(({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));Qd.displayName="SelectSeparator";import{cva as ub}from"class-variance-authority";import{forwardRef as fb}from"react";import{jsxDEV as gb}from"react/jsx-dev-runtime";var so={horizontal:"horizontal",vertical:"vertical"},Ed=ub("shrink-0 bg-border",{variants:{orientation:{[so.horizontal]:"h-px w-full",[so.vertical]:"h-full w-px"}},defaultVariants:{orientation:so.horizontal}}),jd=fb(({className:e,orientation:t=so.horizontal,decorative:r=!0,...a},i)=>{let n=r?{role:"none"}:{role:"separator","aria-orientation":t};return gb("div",{ref:i,className:o(Ed({orientation:t}),e),...n,...a},void 0,!1,void 0,this)});jd.displayName="Separator";import{cva as Xo}from"class-variance-authority";import{forwardRef as qo}from"react";import{jsxDEV as Zo}from"react/jsx-dev-runtime";var pe={sm:"sm",md:"md",lg:"lg"},ep=Xo("animate-pulse rounded-[var(--radius)] bg-muted"),tp=Xo("w-full",{variants:{size:{[pe.sm]:"h-3",[pe.md]:"h-4",[pe.lg]:"h-5"}},defaultVariants:{size:pe.md}}),rp=Xo("",{variants:{size:{[pe.sm]:"h-8 w-8",[pe.md]:"h-10 w-10",[pe.lg]:"h-12 w-12"}},defaultVariants:{size:pe.md}}),op=Xo("",{variants:{size:{[pe.sm]:"h-8 w-20",[pe.md]:"h-9 w-24",[pe.lg]:"h-10 w-28"}},defaultVariants:{size:pe.md}}),lo=qo(({className:e,circle:t=!1,...r},a)=>Zo("div",{ref:a,className:o(ep(),t&&"rounded-full",e),...r},void 0,!1,void 0,this));lo.displayName="Skeleton";var ap=qo(({className:e,size:t=pe.md,...r},a)=>{let i=u(t)??pe.md;return Zo(lo,{ref:a,className:o(tp({size:i}),e),...r},void 0,!1,void 0,this)});ap.displayName="SkeletonText";var ip=qo(({className:e,size:t=pe.md,...r},a)=>{let i=u(t)??pe.md;return Zo(lo,{ref:a,circle:!0,className:o(rp({size:i}),e),...r},void 0,!1,void 0,this)});ip.displayName="SkeletonAvatar";var np=qo(({className:e,size:t=pe.md,...r},a)=>{let i=u(t)??pe.md;return Zo(lo,{ref:a,className:o(op({size:i}),e),...r},void 0,!1,void 0,this)});np.displayName="SkeletonButton";import*as Mt from"@radix-ui/react-slider";import{cva as Eo}from"class-variance-authority";import{forwardRef as vb}from"react";import{jsxDEV as Qo}from"react/jsx-dev-runtime";var Jo={sm:"sm",md:"md",lg:"lg"},sp=Eo("relative flex w-full touch-none select-none items-center",{variants:{size:{[Jo.sm]:"[&_[data-slider-track]]:h-0.5 [&_[data-slider-thumb]]:h-3 [&_[data-slider-thumb]]:w-3",[Jo.md]:"[&_[data-slider-track]]:h-2 [&_[data-slider-thumb]]:h-5 [&_[data-slider-thumb]]:w-5",[Jo.lg]:"[&_[data-slider-track]]:h-3 [&_[data-slider-thumb]]:h-6 [&_[data-slider-thumb]]:w-6"}},defaultVariants:{size:Jo.md}}),lp=Eo("relative w-full grow overflow-hidden rounded-full bg-secondary"),mp=Eo("absolute h-full bg-primary"),dp=Eo("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"),pp=vb(({className:e,size:t,...r},a)=>{let i=u(t);return Qo(Mt.Root,{ref:a,className:o(sp({size:i}),e),...r,children:[Qo(Mt.Track,{"data-slider-track":!0,className:o(lp()),children:Qo(Mt.Range,{className:o(mp())},void 0,!1,void 0,this)},void 0,!1,void 0,this),(r.defaultValue??r.value??[0]).map((n,s)=>Qo(Mt.Thumb,{"data-slider-thumb":!0,className:o(dp())},`thumb-${String(s)}`,!1,void 0,this))]},void 0,!0,void 0,this)});pp.displayName="Slider";import{cva as ye}from"class-variance-authority";import{forwardRef as Pb,useCallback as Rr,useEffect as si,useMemo as jo,useRef as up,useState as ea}from"react";import{createPortal as hb}from"react-dom";import{useCallback as bb,useEffect as yb,useRef as cp}from"react";function ni(e,t,r={}){let{enabled:a=!0,preventDefault:i=!0,stopPropagation:n=!1,target:s="global"}=r,l=cp(t);l.current=t;let m=cp([]),d=Array.isArray(e)?e:[e];m.current=d.map((c)=>({combo:c,def:ai(c)}));let f=bb((c)=>{if(!a)return;for(let{combo:P,def:p}of m.current)if(ii(c,p)){if(i)c.preventDefault();if(n)c.stopPropagation();l.current(c,P);return}},[a,i,n]);yb(()=>{if(!a)return;let c=s==="global"?document:s.current;if(!c)return;return c.addEventListener("keydown",f),()=>{c.removeEventListener("keydown",f)}},[a,f,s])}import{jsxDEV as Z}from"react/jsx-dev-runtime";var qt={sm:"sm",md:"md",lg:"lg",xl:"xl"},Hr={idle:"idle",loading:"loading",error:"error"},fp=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"}}),gp=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:{[qt.sm]:"max-w-md",[qt.md]:"max-w-xl",[qt.lg]:"max-w-2xl",[qt.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:qt.md,state:"open"}}),vp=ye("flex items-center gap-3 border-b border-border px-4 py-3"),bp=ye(["w-full flex-1 bg-transparent text-foreground text-base","placeholder:text-muted-foreground","outline-none border-none"]),yp=ye("size-4 text-muted-foreground shrink-0"),ta=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"),hp=ye("px-3 py-2 text-xs font-semibold text-muted-foreground uppercase tracking-wide"),Tp=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}}),xp=ye("size-4 shrink-0",{variants:{selected:{true:"text-primary",false:"text-muted-foreground"}},defaultVariants:{selected:!1}}),Cp=ye("flex-1 min-w-0"),Sp=ye("text-sm font-medium truncate"),zp=ye("text-xs text-muted-foreground truncate"),wp=ye("flex items-center gap-1 text-[11px] text-muted-foreground shrink-0"),ra=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"}}),oa=ye("text-sm font-medium"),Mp=ye("text-xs mt-1"),Tb=(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},Np=Pb(({className:e,open:t,onOpenChange:r,actions:a,onActionSelect:i,value:n,defaultValue:s="",onValueChange:l,placeholder:m="Search commands, pages, or actions...",size:d=qt.md,status:f=Hr.idle,statusMessage:c,emptyText:P="No command found for this query.",hotkey:p,portal:v=!0,...S},N)=>{let z=up(null),T=up(null),[b,x]=ea(s),[M,C]=ea(0),[L,R]=ea(!1),[_,G]=ea(!1),{isMac:O}=Xr(),$=Rr((A)=>qr(A,O),[O]),w=jo(()=>p&&p.length>0?p.join("+"):null,[p]);ni(w??"",()=>r(!t),{enabled:!!w});let I=n!==void 0?n:b,h=jo(()=>a.filter((A)=>Tb(A,I)),[a,I]),V=jo(()=>h.map((A,j)=>A.disabled?-1:j).filter((A)=>A>=0),[h]),J=jo(()=>{let A=new Map,j=new Map,ie=0;for(let Ne of h){let It=Ne.group??"";if(!A.has(It))A.set(It,[]);A.get(It).push(Ne),j.set(Ne,ie),ie++}return{groups:A,indexMap:j}},[h]);si(()=>{if(t){R(!0),G(!1),C(0);return}if(L)G(!0)},[t]);let k=Rr(()=>{if(_)R(!1),G(!1)},[_]);si(()=>{if(t)document.body.style.overflow="hidden";else document.body.style.overflow="";return()=>{document.body.style.overflow=""}},[t]),si(()=>{if(t&&L)requestAnimationFrame(()=>z.current?.focus())},[t,L]);let Y=Rr((A)=>{let j=A.target.value;x(j),l?.(j),C(0)},[l]),g=Rr((A)=>{let j=T.current;if(!j)return;j.querySelectorAll('[role="option"]')[A]?.scrollIntoView({block:"nearest"})},[]),y=Rr((A)=>{if(A.key==="Escape"){A.preventDefault(),r(!1);return}if(A.key==="ArrowDown"){if(A.preventDefault(),V.length===0)return;let ie=(V.indexOf(M)+1)%V.length,Ne=V[ie];C(Ne),g(Ne);return}if(A.key==="ArrowUp"){if(A.preventDefault(),V.length===0)return;let ie=(V.indexOf(M)-1+V.length)%V.length,Ne=V[ie];C(Ne),g(Ne);return}if(A.key==="Enter"){A.preventDefault();let j=h[M];if(j&&!j.disabled)i(j,M)}},[M,V,h,i,r,g]),H=Rr((A,j)=>{if(A.disabled)return;i(A,j)},[i]);if(!L)return null;let ce=_?"closing":"open",q=f===Hr.idle,Ae=f!==Hr.idle,E=Z("div",{ref:N,role:"dialog","aria-modal":"true",onKeyDown:y,className:o(e),...S,children:[Z("div",{"data-testid":"spotlight-overlay",className:o(fp({state:ce})),onClick:()=>r(!1),onKeyDown:(A)=>{if(A.key==="Escape")r(!1)}},void 0,!1,void 0,this),Z("div",{className:o(gp({size:d,state:ce})),onAnimationEnd:k,children:[Z("div",{className:o(vp()),children:[Z("svg",{className:o(yp()),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:z,type:"text",value:I,onChange:Y,placeholder:m,className:o(bp())},void 0,!1,void 0,this),p?Z("div",{className:"flex items-center gap-1",children:p.map((A)=>Z("kbd",{className:o(ta()),children:$(A)},A,!1,void 0,this))},void 0,!1,void 0,this):Z("kbd",{className:o(ta()),children:"ESC"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Ae&&f===Hr.loading&&Z("div",{className:o(ra({state:"loading"})),children:Z("div",{className:o(oa()),children:"Searching commands..."},void 0,!1,void 0,this)},void 0,!1,void 0,this),Ae&&f===Hr.error&&Z("div",{className:o(ra({state:"error"})),children:[Z("div",{className:o(oa()),children:"Search failed"},void 0,!1,void 0,this),c&&Z("div",{className:o(Mp()),children:c},void 0,!1,void 0,this)]},void 0,!0,void 0,this),q&&h.length===0&&Z("div",{className:o(ra({state:"empty"})),children:Z("div",{className:o(oa()),children:P},void 0,!1,void 0,this)},void 0,!1,void 0,this),q&&h.length>0&&Z("div",{ref:T,className:o(Pp()),children:Array.from(J.groups.entries()).map(([A,j])=>Z("div",{children:[A&&Z("div",{className:o(hp()),children:A},void 0,!1,void 0,this),j.map((ie)=>{let Ne=J.indexMap.get(ie)??0,It=Ne===M;return Z("div",{role:"option","aria-selected":It,"aria-disabled":ie.disabled??!1,onClick:()=>H(ie,Ne),className:o(Tp({selected:It,disabled:ie.disabled??!1})),children:[ie.icon&&Z("span",{className:o(xp({selected:It})),children:ie.icon},void 0,!1,void 0,this),Z("div",{className:o(Cp()),children:[Z("div",{className:o(Sp()),children:ie.title},void 0,!1,void 0,this),ie.description&&Z("div",{className:o(zp()),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(wp()),children:ie.shortcut.map((Li)=>Z("kbd",{className:o(ta()),children:$(Li)},Li,!1,void 0,this))},void 0,!1,void 0,this)]},ie.id,!0,void 0,this)})]},A||"__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 hb(E,document.body);return E});Np.displayName="Spotlight";var xb=rr;import{createContext as Cb,useCallback as li,useContext as Sb,useEffect as Ip,useLayoutEffect as zb,useMemo as wb,useRef as Lp,useState as mi}from"react";import{jsxDEV as Nb}from"react/jsx-dev-runtime";var Rp=typeof window<"u"?zb:Ip,Hp="gs-theme-transitioning";function Vp(){if(typeof window>"u")return"light";return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function di(e){if(e===ct.system)return Vp();return e}function kp(e,t,r,a,i){let n=di(r);if(a)e.classList.add(Hp);if(e.setAttribute(pi,t),n==="dark")e.classList.add(mo);else e.classList.remove(mo);if(a)setTimeout(()=>e.classList.remove(Hp),i)}function aa(e){try{return localStorage.getItem(e)}catch{return null}}function Ap(e,t){try{localStorage.setItem(e,t)}catch{}}var Bp=Cb(null),ia=({children:e,defaultTheme:t="ghostly-solutions",defaultColorScheme:r=ct.system,enableTransition:a=!1,transitionDuration:i=300,storageKey:n})=>{let s=n!==!1,l=typeof n==="string"?n:ci,m=typeof n==="string"?`${n}-color-scheme`:ui,[d,f]=mi(t),[c,P]=mi(r),[p,v]=mi("light"),S=Lp(!0),N=Lp(!1);Rp(()=>{if(N.current)return;if(N.current=!0,s){let _=aa(l),G=aa(m);if(_)f(_);if(G==="light"||G==="dark"||G==="system")P(G)}let M=document.documentElement,C=aa(l)||t,L=aa(m),R=L==="light"||L==="dark"||L==="system"?L:r;kp(M,C,R,!1,i),v(di(R))},[]),Rp(()=>{if(!N.current)return;let M=document.documentElement,C=!S.current&&a;S.current=!1,kp(M,d,c,C,i),v(di(c))},[d,c,a,i]),Ip(()=>{if(c!==ct.system)return;let M=window.matchMedia("(prefers-color-scheme: dark)"),C=()=>{let L=Vp();v(L);let R=document.documentElement;if(L==="dark")R.classList.add(mo);else R.classList.remove(mo)};return M.addEventListener("change",C),()=>M.removeEventListener("change",C)},[c]);let z=li((M)=>{if(f(M),s)Ap(l,M)},[s,l]),T=li((M)=>{if(P(M),s)Ap(m,M)},[s,m]),b=li(()=>{let M=p==="dark"?ct.light:ct.dark;T(M)},[p,T]),x=wb(()=>({theme:d,setTheme:z,colorScheme:c,setColorScheme:T,resolvedColorScheme:p,toggleColorScheme:b}),[d,z,c,T,p,b]);return Nb(Bp.Provider,{value:x,children:e},void 0,!1,void 0,this)};ia.displayName="ThemeProvider";var Mb=()=>{let e=Sb(Bp);if(!e)throw Error("useTheme must be used within a ThemeProvider");return e};import{jsxDEV as Dp}from"react/jsx-dev-runtime";function Fp({children:e,defaultTheme:t="ghostly-solutions",defaultColorScheme:r=ct.system,density:a=bo,enableTransition:i=!1,transitionDuration:n,storageKey:s}){return Dp(ia,{defaultTheme:t,defaultColorScheme:r,enableTransition:i,transitionDuration:n,storageKey:s,children:Dp(yo,{density:a,children:e},void 0,!1,void 0,this)},void 0,!1,void 0,this)}Fp.displayName="UIProvider";import{cva as Lb}from"class-variance-authority";import{forwardRef as Rb}from"react";import{jsxDEV as Nt}from"react/jsx-dev-runtime";var Oe={sm:"sm",md:"md",lg:"lg"},Zt={up:"up",down:"down",neutral:"neutral"},_p=Lb("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:{[Oe.sm]:"gap-1 p-3",[Oe.md]:"gap-1.5 p-4",[Oe.lg]:"gap-2 p-5"}},defaultVariants:{size:Oe.md}}),Hb={[Oe.sm]:"text-lg font-semibold",[Oe.md]:"text-2xl font-bold",[Oe.lg]:"text-3xl font-bold"},kb={[Oe.sm]:"text-xs",[Oe.md]:"text-sm",[Oe.lg]:"text-base"},Ab={[Zt.up]:"text-success",[Zt.down]:"text-destructive",[Zt.neutral]:"text-muted-foreground"},Ib={[Zt.up]:"↑",[Zt.down]:"↓",[Zt.neutral]:"→"},Op=Rb(({className:e,size:t=Oe.md,label:r,value:a,trend:i,trendValue:n,icon:s,...l},m)=>{let d=u(t);return Nt("div",{ref:m,className:o(_p({size:d}),e),...l,children:[Nt("div",{className:"flex items-center justify-between",children:[Nt("span",{className:o("text-muted-foreground",kb[d]),children:r},void 0,!1,void 0,this),s&&Nt("span",{className:"text-muted-foreground/70","aria-hidden":"true",children:s},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Nt("div",{className:"flex items-baseline gap-2",children:[Nt("span",{className:o("tracking-tight text-foreground",Hb[d]),children:a},void 0,!1,void 0,this),i&&n&&Nt("span",{className:o("inline-flex items-center gap-0.5 text-xs font-medium",Ab[i]),children:[Nt("span",{"aria-hidden":"true",children:Ib[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)});Op.displayName="StatCard";import{cva as Jt}from"class-variance-authority";import{Check as Vb}from"lucide-react";import{forwardRef as Qt}from"react";import{jsxDEV as Lt}from"react/jsx-dev-runtime";var Gp=Jt("flex w-full",{variants:{orientation:{horizontal:"flex-row items-start",vertical:"flex-col"}},defaultVariants:{orientation:"horizontal"}}),Wp=Jt("flex",{variants:{orientation:{horizontal:"flex-1 flex-col items-center",vertical:"gap-4 flex-row"}},defaultVariants:{orientation:"horizontal"}}),Up=Jt(["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}}),$p=Jt("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}}),Kp=Jt("flex flex-col",{variants:{orientation:{horizontal:"mt-3 items-center text-center",vertical:"flex-1 pb-8 last:pb-0"}},defaultVariants:{orientation:"horizontal"}}),Yp=Jt("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"}}),Xp=Jt("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 qp=Qt(({className:e,orientation:t="horizontal",activeStep:r,...a},i)=>{return Lt("div",{ref:i,role:"group","aria-label":"Progress steps",className:o(Gp({orientation:t}),e),"data-orientation":t,"data-active-step":r,...a},void 0,!1,void 0,this)});qp.displayName="Stepper";var Zp=Qt(({className:e,orientation:t="horizontal",isLast:r,isCurrent:a,...i},n)=>{return Lt("div",{ref:n,className:o(Wp({orientation:t}),e),"data-last":r,"aria-current":a?"step":void 0,...i},void 0,!1,void 0,this)});Zp.displayName="Step";var Jp=Qt(({className:e,status:t="incomplete",size:r="md",icon:a,step:i,children:n,animated:s=!0,...l},m)=>{let d=u(r);return Lt("div",{ref:m,className:o(Up({status:t,size:d,animated:s}),e),"data-status":t,"aria-hidden":"true",...l,children:t==="complete"?a||Lt(Vb,{className:"size-4",strokeWidth:3},void 0,!1,void 0,this):n||i},void 0,!1,void 0,this)});Jp.displayName="StepIndicator";var Qp=Qt(({className:e,orientation:t="horizontal",status:r="incomplete",size:a="md",animated:i=!0,...n},s)=>{let l=u(a);return Lt("div",{ref:s,className:o($p({orientation:t,status:r,size:l,animated:i}),e),"data-status":r,...n},void 0,!1,void 0,this)});Qp.displayName="StepConnector";var Ep=Qt(({className:e,orientation:t="horizontal",...r},a)=>{return Lt("div",{ref:a,className:o(Kp({orientation:t}),e),...r},void 0,!1,void 0,this)});Ep.displayName="StepContent";var jp=Qt(({className:e,status:t="incomplete",size:r="md",...a},i)=>{let n=u(r);return Lt("h4",{ref:i,className:o(Yp({status:t,size:n}),e),...a},void 0,!1,void 0,this)});jp.displayName="StepTitle";var ec=Qt(({className:e,size:t="md",...r},a)=>{let i=u(t);return Lt("p",{ref:a,className:o(Xp({size:i}),e),...r},void 0,!1,void 0,this)});ec.displayName="StepDescription";import*as na from"@radix-ui/react-switch";import{cva as Bb}from"class-variance-authority";import{forwardRef as Db}from"react";import{jsxDEV as tc}from"react/jsx-dev-runtime";var Se={sm:"sm",md:"md",lg:"lg",xl:"xl"},kr={default:"default",error:"error",success:"success"},rc=Bb("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:{[kr.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",[kr.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",[kr.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:kr.default}}),Fb={[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"},_b={[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"},oc=Db(({className:e,size:t=Se.md,status:r=kr.default,checked:a,disabled:i,...n},s)=>{let l=u(t);return tc(na.Root,{ref:s,checked:a,disabled:i,className:o(rc({size:l,status:r}),e),...n,children:tc(na.Thumb,{className:o("pointer-events-none block rounded-full bg-background shadow-sm transition-transform duration-150",Fb[l],_b[l])},void 0,!1,void 0,this)},void 0,!1,void 0,this)});oc.displayName="Switch";import{cva as ut}from"class-variance-authority";import{createContext as Ob,forwardRef as Rt,useContext as ac}from"react";import{jsxDEV as ot}from"react/jsx-dev-runtime";var he={sm:"sm",md:"md",lg:"lg"},fi=Ob(he.md),ic=ut("relative w-full overflow-auto rounded-[var(--radius)] border border-border bg-card shadow-[var(--shadow-sm)]"),nc=ut("w-full caption-bottom",{variants:{size:{[he.sm]:"text-xs",[he.md]:"text-sm",[he.lg]:"text-sm"}},defaultVariants:{size:he.md}}),sc=ut("sticky top-0 z-[1] [&_tr]:border-b [&_tr]:border-border [&_th]:bg-muted"),lc=ut("[&_tr:last-child]:border-0"),mc=ut("border-t border-border bg-muted font-medium text-muted-foreground [&>tr]:last:border-b-0"),dc=ut("gs-interactive border-b border-border hover:bg-muted/50 data-[state=selected]:bg-primary/10"),pc=ut("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}}),cc=ut("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}}),uc=ut("mt-4 text-sm text-muted-foreground"),fc=Rt(({className:e,containerClassName:t,size:r=he.md,...a},i)=>{let n=u(r)??he.md;return ot(fi.Provider,{value:n,children:ot("div",{className:o(ic(),t),children:ot("table",{ref:i,className:o(nc({size:n}),e),...a},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)});fc.displayName="Table";var gc=Rt(({className:e,...t},r)=>ot("thead",{ref:r,className:o(sc(),e),...t},void 0,!1,void 0,this));gc.displayName="TableHeader";var vc=Rt(({className:e,...t},r)=>ot("tbody",{ref:r,className:o(lc(),e),...t},void 0,!1,void 0,this));vc.displayName="TableBody";var bc=Rt(({className:e,...t},r)=>ot("tfoot",{ref:r,className:o(mc(),e),...t},void 0,!1,void 0,this));bc.displayName="TableFooter";var yc=Rt(({className:e,...t},r)=>ot("tr",{ref:r,className:o(dc(),e),...t},void 0,!1,void 0,this));yc.displayName="TableRow";var Pc=Rt(({className:e,size:t,...r},a)=>{let i=ac(fi);return ot("th",{ref:a,className:o(pc({size:t??i}),e),...r},void 0,!1,void 0,this)});Pc.displayName="TableHead";var hc=Rt(({className:e,size:t,...r},a)=>{let i=ac(fi);return ot("td",{ref:a,className:o(cc({size:t??i}),e),...r},void 0,!1,void 0,this)});hc.displayName="TableCell";var Tc=Rt(({className:e,...t},r)=>ot("caption",{ref:r,className:o(uc(),e),...t},void 0,!1,void 0,this));Tc.displayName="TableCaption";import*as Qe from"@radix-ui/react-tabs";import{cva as gi}from"class-variance-authority";import{createContext as Gb,forwardRef as vi,useCallback as xc,useContext as Wb,useEffect as bi,useLayoutEffect as Ub,useRef as sa,useState as $b}from"react";import{jsxDEV as po}from"react/jsx-dev-runtime";var at={sm:"sm",md:"md",lg:"lg",xl:"xl"},Cc=gi("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}}),Sc=gi("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}}),zc=gi("mt-3 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2"),wc=Gb({registerTrigger:()=>{}}),Kb=typeof window<"u"?Ub:bi,Yb=Qe.Root,Mc=vi(({className:e,size:t,children:r,...a},i)=>{let n=u(t),s=sa(null),l=sa(new Map),[m,d]=$b(null),f=sa(!0),c=xc((p,v)=>{if(v)l.current.set(p,v);else l.current.delete(p)},[]),P=xc(()=>{let p=s.current;if(!p)return;let v=p.querySelector('[data-state="active"]');if(!v){d(null);return}let S=p.getBoundingClientRect(),N=v.getBoundingClientRect();d({left:N.left-S.left,width:N.width})},[]);return Kb(()=>{P()},[P]),bi(()=>{let p=s.current;if(!p)return;let v=new MutationObserver(()=>{f.current=!1,P()});return v.observe(p,{attributes:!0,attributeFilter:["data-state"],subtree:!0}),()=>v.disconnect()},[P]),po(wc.Provider,{value:{registerTrigger:c},children:po(Qe.List,{ref:(p)=>{if(s.current=p,typeof i==="function")i(p);else if(i)i.current=p},className:o(Cc({size:n}),e),...a,children:[m&&po("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 Nc=vi(({className:e,size:t,value:r,...a},i)=>{let n=u(t),{registerTrigger:s}=Wb(wc),l=sa(null);return bi(()=>{return s(r,l.current),()=>s(r,null)},[r,s]),po(Qe.Trigger,{ref:(m)=>{if(l.current=m,typeof i==="function")i(m);else if(i)i.current=m},value:r,className:o(Sc({size:n}),e),...a},void 0,!1,void 0,this)});Nc.displayName=Qe.Trigger.displayName;var Lc=vi(({className:e,...t},r)=>po(Qe.Content,{ref:r,className:o(zc(),e),...t},void 0,!1,void 0,this));Lc.displayName=Qe.Content.displayName;import{cva as Xb}from"class-variance-authority";import{forwardRef as qb}from"react";import{jsxDEV as Zb}from"react/jsx-dev-runtime";var co={default:"default",error:"error",success:"success"},Ar={sm:"sm",md:"md",lg:"lg",xl:"xl"},Rc=Xb("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:{[co.default]:"focus-visible:ring-primary",[co.error]:"border-destructive focus-visible:ring-destructive",[co.success]:"border-success focus-visible:ring-success"},size:{[Ar.sm]:"min-h-[64px] px-2 py-1.5 text-xs",[Ar.md]:"min-h-[96px] px-3 py-2",[Ar.lg]:"min-h-[112px] px-4 py-2.5",[Ar.xl]:"min-h-[128px] px-4 py-3 text-base"}},defaultVariants:{status:co.default,size:Ar.md}}),Hc=qb(({className:e,status:t=co.default,size:r=Ar.md,fullWidth:a=!1,noResize:i=!1,disabled:n,...s},l)=>{let m=u(r);return Zb("textarea",{ref:l,className:o(Rc({status:t,size:m}),n&&"bg-muted",a&&"w-full",i&&"resize-none",e),disabled:n,...s},void 0,!1,void 0,this)});Hc.displayName="Textarea";import{cva as Ht}from"class-variance-authority";import{forwardRef as kt}from"react";import{jsxDEV as it}from"react/jsx-dev-runtime";var kc=Ht("relative flex flex-col"),Ac=Ht(["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}}),Ic=Ht(["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}}),Vc=Ht(["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}}),Bc=Ht("flex flex-col gap-1 pt-0.5 min-w-0 transition-opacity duration-200 ease-[cubic-bezier(0.22,1,0.36,1)]"),Dc=Ht("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"}}),Fc=Ht("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"}}),_c=Ht("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 Oc=kt(({className:e,...t},r)=>{return it("div",{ref:r,role:"list","aria-label":"Timeline events",className:o(kc(),e),...t},void 0,!1,void 0,this)});Oc.displayName="Timeline";var Gc=kt(({className:e,align:t,isLast:r,animated:a=!0,...i},n)=>{return it("div",{ref:n,role:"listitem",className:o(Ac({align:t,animated:a}),e),"data-last":r,...i},void 0,!1,void 0,this)});Gc.displayName="TimelineItem";var Wc=kt(({className:e,variant:t,size:r,animated:a=!0,...i},n)=>{let s=u(r);return it("div",{ref:n,className:o(Ic({variant:t,size:s,animated:a}),e),...i},void 0,!1,void 0,this)});Wc.displayName="TimelineConnector";var Uc=kt(({className:e,variant:t,size:r,icon:a,children:i,pulse:n=!1,animated:s=!0,...l},m)=>{let d=u(r);return it("div",{ref:m,className:o(Vc({variant:t,size:d,pulse:n,animated:s}),e),"aria-hidden":"true",...l,children:a||i||it(Jb,{},void 0,!1,void 0,this)},void 0,!1,void 0,this)});Uc.displayName="TimelineDot";var $c=kt(({className:e,...t},r)=>{return it("div",{ref:r,className:o(Bc(),e),...t},void 0,!1,void 0,this)});$c.displayName="TimelineContent";var Kc=kt(({className:e,size:t,...r},a)=>{let i=u(t);return it("h4",{ref:a,className:o(Dc({size:i}),e),...r},void 0,!1,void 0,this)});Kc.displayName="TimelineTitle";var Yc=kt(({className:e,size:t,...r},a)=>{let i=u(t);return it("p",{ref:a,className:o(Fc({size:i}),e),...r},void 0,!1,void 0,this)});Yc.displayName="TimelineDescription";var Xc=kt(({className:e,size:t,...r},a)=>{let i=u(t);return it("time",{ref:a,className:o(_c({size:i}),e),...r},void 0,!1,void 0,this)});Xc.displayName="TimelineTime";function Jb(){return it("span",{className:"size-2 rounded-full bg-current"},void 0,!1,void 0,this)}import{cva as qc}from"class-variance-authority";var Ir={default:"default",success:"success",info:"info",warning:"warning",error:"error"},Ge={sm:"sm",md:"md",lg:"lg"},yi=qc("pointer-events-auto relative flex w-full items-center overflow-hidden rounded-[var(--radius)] border shadow-[var(--shadow-md)]",{variants:{variant:{[Ir.default]:"border-border bg-card text-card-foreground",[Ir.success]:"border-success/30 bg-card text-card-foreground",[Ir.info]:"border-info/30 bg-card text-card-foreground",[Ir.warning]:"border-warning/30 bg-card text-card-foreground",[Ir.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:Ir.default,size:Ge.md}}),Pi=qc("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 iy,CheckCircle2 as ny,Info as jc,X as sy,XCircle as ly}from"lucide-react";import{forwardRef as my,useCallback as da,useEffect as pa,useRef as Si,useState as zi}from"react";import{useSyncExternalStore as Qb}from"react";var Eb=5,Jc=5000,jb=500,hi=0;function ey(){return hi=(hi+1)%Number.MAX_SAFE_INTEGER,`toast-${hi}-${Date.now()}`}var Ti=new Set,We=[],jt=new Map,fo=new Map,go=!1,Et=new Map;function la(){for(let e of Ti)e()}function Zc(){return We}function ty(e){return Ti.add(e),()=>{Ti.delete(e)}}function xi(e,t){if(go){Et.set(e,t);return}clearTimeout(jt.get(e));let r=Date.now(),a=setTimeout(()=>{jt.delete(e),Et.delete(e),ma(e)},t);jt.set(e,a),Et.set(e,t);let i=setInterval(()=>{let n=Date.now()-r,s=t-n;if(s<=0)clearInterval(i),Et.delete(e);else Et.set(e,s)},100)}function ry(e){clearTimeout(fo.get(e));let t=setTimeout(()=>{We=We.filter((r)=>r.id!==e),fo.delete(e),la()},jb);fo.set(e,t)}function uo(e){let t=e.id??ey(),r=e.duration??Jc;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(fo.get(t)),fo.delete(t),xi(t,r),la(),t;return We=[{...e,id:t,variant:e.variant??"default",dismissible:e.dismissible??!0,open:!0,createdAt:Date.now()},...We].slice(0,Eb),xi(t,r),la(),t}function ma(e){clearTimeout(jt.get(e)),jt.delete(e),Et.delete(e),We=We.map((t)=>t.id===e?{...t,open:!1}:t),la(),ry(e)}function Qc(){for(let e of We)ma(e.id)}function oy(){if(go)return;go=!0;for(let[e,t]of jt)clearTimeout(t),jt.delete(e)}function ay(){if(!go)return;go=!1;for(let e of We)if(e.open){let t=Et.get(e.id)??Jc;xi(e.id,t)}}var Ec=Object.assign((e)=>uo(e),{success:(e,t)=>uo({...t,variant:"success",title:e}),info:(e,t)=>uo({...t,variant:"info",title:e}),warning:(e,t)=>uo({...t,variant:"warning",title:e}),error:(e,t)=>uo({...t,variant:"error",title:e}),dismiss:ma,dismissAll:Qc});function Ci(){return{toasts:Qb(ty,Zc,Zc),toast:Ec,dismiss:ma,dismissAll:Qc,pauseAll:oy,resumeAll:ay}}import{jsxDEV as ze}from"react/jsx-dev-runtime";var tu=10,eu=0.05,dy=200,ru="cubic-bezier(0.2, 0.8, 0.2, 1)",py="cubic-bezier(0.22, 1, 0.36, 1)",cy={"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"},uy={success:(e)=>ze(ny,{className:o("mt-0.5 shrink-0 text-success",e==="sm"?"size-4":"size-[18px]")},void 0,!1,void 0,this),info:(e)=>ze(jc,{className:o("mt-0.5 shrink-0 text-info",e==="sm"?"size-4":"size-[18px]")},void 0,!1,void 0,this),warning:(e)=>ze(iy,{className:o("mt-0.5 shrink-0 text-warning",e==="sm"?"size-4":"size-[18px]")},void 0,!1,void 0,this),error:(e)=>ze(ly,{className:o("mt-0.5 shrink-0 text-destructive",e==="sm"?"size-4":"size-[18px]")},void 0,!1,void 0,this),default:(e)=>ze(jc,{className:o("mt-0.5 shrink-0 text-muted-foreground",e==="sm"?"size-4":"size-[18px]")},void 0,!1,void 0,this)};function fy(e,t,r,a,i){let n=e<a,s=r?i:e*tu,l=r?1:n?1-e*eu:1-a*eu,m=n||r?1:0,d=t-e;return{offset:s,scale:l,opacity:m,zIndex:d}}var ou=my(({position:e="bottom-right",gap:t=12,visibleCount:r=3,size:a=Ge.md,className:i,...n},s)=>{let{toasts:l,dismiss:m,pauseAll:d,resumeAll:f}=Ci(),c=u(a)??Ge.md,[P,p]=zi(!1),[v,S]=zi({}),N=Si(null),z=Si(void 0),T=e.startsWith("bottom"),b=da((h)=>{if(N.current=h,typeof s==="function")s(h);else if(s)s.current=h},[s]),x=da(()=>{clearTimeout(z.current),p(!0),d()},[d]),M=da(()=>{clearTimeout(z.current),z.current=setTimeout(()=>{p(!1),f()},dy)},[f]);pa(()=>{return()=>clearTimeout(z.current)},[]);let C=da((h,V)=>{S((J)=>{if(J[h]===V)return J;return{...J,[h]:V}})},[]);if(pa(()=>{let h=new Set(l.map((V)=>V.id));S((V)=>{let J=!1,k={};for(let[Y,g]of Object.entries(V))if(h.has(Y))k[Y]=g;else J=!0;return J?k:V})},[l]),l.length===0)return null;let L=l.filter((h)=>h.open),R=new Map,_=0;for(let[h,V]of L.entries()){let J=v[V.id]??0;R.set(V.id,fy(h,L.length,P,r,_)),_+=J+t}let G=L[0],$=(G?v[G.id]??0:0)+Math.min(L.length-1,r-1)*tu,w=_-(L.length>0?t:0),I=P?w:$;return ze("ol",{ref:b,role:"region","aria-label":"Notifications",tabIndex:-1,onMouseEnter:x,onMouseLeave:M,className:o("pointer-events-auto fixed z-[100] w-full max-w-[400px] outline-none",cy[e],i),style:{height:Math.max(I,0),transition:`height 400ms ${ru}`},...n,children:l.map((h)=>{let V=!h.open,J=R.get(h.id);return ze(gy,{toast:h,layout:J??{offset:0,scale:1,opacity:0,zIndex:0},isClosed:V,isBottom:T,size:c,onDismiss:m,onMeasure:C},h.id,!1,void 0,this)})},void 0,!1,void 0,this)});ou.displayName="Toaster";function gy({toast:e,layout:t,isClosed:r,isBottom:a,size:i,onDismiss:n,onMeasure:s}){let l=Si(null),[m,d]=zi(!1);pa(()=>{let v=requestAnimationFrame(()=>d(!0));return()=>cancelAnimationFrame(v)},[]),pa(()=>{let v=l.current;if(!v)return;let S=new ResizeObserver((N)=>{for(let z of N){let T=z.borderBoxSize?.[0];if(T)s(e.id,T.blockSize)}});return S.observe(v),()=>S.disconnect()},[e.id,s]);let f=a?{bottom:0,left:0,right:0}:{top:0,left:0,right:0},c,P,p;if(!m)c=`translateY(${a?80:-80}px) scale(0.9)`,P=0,p="none";else if(r)c=`translateY(${a?80:-80}px) scale(0.95)`,P=0,p="none";else c=`translateY(${a?-t.offset:t.offset}px) scale(${t.scale})`,P=t.opacity,p="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:c,opacity:P,pointerEvents:p,transition:[`transform 400ms ${ru}`,`opacity 250ms ${py}`].join(", ")},children:ze("div",{className:o(yi({variant:e.variant,size:i}),"w-full"),children:[uy[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(Pi({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(sy,{},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 au from"@radix-ui/react-toggle";import{cva as vy}from"class-variance-authority";import{forwardRef as by}from"react";import{jsxDEV as yy}from"react/jsx-dev-runtime";var wi={default:"default",outline:"outline"},ca={sm:"sm",md:"md",lg:"lg"},ua=vy("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:{[wi.default]:"bg-transparent disabled:bg-transparent disabled:text-foreground/50",[wi.outline]:"border-input bg-transparent hover:bg-accent hover:text-accent-foreground disabled:bg-transparent disabled:text-foreground/50 disabled:border-border/50"},size:{[ca.sm]:"h-7 px-1.5 min-w-7 text-xs",[ca.md]:"h-10 px-3 min-w-10",[ca.lg]:"h-11 px-5 min-w-11"}},defaultVariants:{variant:wi.default,size:ca.md}}),iu=by(({className:e,variant:t,size:r,...a},i)=>{let n=u(r);return yy(au.Root,{ref:i,className:o(ua({variant:t,size:n}),e),...a},void 0,!1,void 0,this)});iu.displayName="Toggle";import*as fa from"@radix-ui/react-toggle-group";import{cva as Py}from"class-variance-authority";import{createContext as hy,forwardRef as nu,useContext as Ty}from"react";import{jsxDEV as Mi}from"react/jsx-dev-runtime";var xy={default:"default",outline:"outline"},Cy={sm:"sm",md:"md",lg:"lg"},su=Py("flex items-center justify-center gap-1"),lu=hy({size:Cy.md,variant:xy.default}),mu=nu(({className:e,variant:t,size:r,children:a,...i},n)=>{let s=u(r);return Mi(fa.Root,{ref:n,className:o(su(),e),...i,children:Mi(lu.Provider,{value:{variant:t,size:s},children:a},void 0,!1,void 0,this)},void 0,!1,void 0,this)});mu.displayName="ToggleGroup";var du=nu(({className:e,children:t,variant:r,size:a,...i},n)=>{let s=Ty(lu),l=u(a);return Mi(fa.Item,{ref:n,className:o(ua({variant:r??s.variant,size:l??s.size}),e),...i,children:t},void 0,!1,void 0,this)});du.displayName="ToggleGroupItem";import{cva as pu}from"class-variance-authority";import{forwardRef as ga}from"react";import{jsxDEV as va}from"react/jsx-dev-runtime";var Ee={sm:"sm",md:"md",lg:"lg"},cu=pu("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}}),uu=ga(({className:e,size:t=Ee.md,...r},a)=>{let i=u(t);return va("div",{ref:a,role:"toolbar",className:o(cu({size:i}),e),...r},void 0,!1,void 0,this)});uu.displayName="Toolbar";var fu=pu("flex items-center",{variants:{size:{[Ee.sm]:"gap-1",[Ee.md]:"gap-1.5",[Ee.lg]:"gap-2"}},defaultVariants:{size:Ee.md}}),gu=ga(({className:e,size:t=Ee.md,...r},a)=>{let i=u(t);return va("div",{ref:a,role:"group",className:o(fu({size:i}),e),...r},void 0,!1,void 0,this)});gu.displayName="ToolbarGroup";var vu=ga(({className:e,...t},r)=>{return va("div",{ref:r,role:"none",className:o("h-5 w-px shrink-0 bg-border",e),...t},void 0,!1,void 0,this)});vu.displayName="ToolbarSeparator";var bu=ga(({className:e,...t},r)=>{return va("div",{ref:r,className:o("flex-1",e),...t},void 0,!1,void 0,this)});bu.displayName="ToolbarSpacer";import*as nt from"@radix-ui/react-tooltip";import{cva as Sy}from"class-variance-authority";import{createContext as zy,forwardRef as yu,useContext as Pu}from"react";import{jsxDEV as vo}from"react/jsx-dev-runtime";var wy=nt.Provider,Ni=zy(!1),hu=({persistOnClick:e=!1,children:t,...r})=>vo(Ni.Provider,{value:e,children:vo(nt.Root,{...r,children:t},void 0,!1,void 0,this)},void 0,!1,void 0,this);hu.displayName="Tooltip";var Tu=yu(({onClick:e,onPointerDown:t,...r},a)=>{let i=Pu(Ni);return vo(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)});Tu.displayName="TooltipTrigger";var Vr={sm:"sm",md:"md",lg:"lg"},xu=Sy("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:{[Vr.sm]:"px-2 py-1 text-[10px]",[Vr.md]:"px-3 py-1.5 text-xs",[Vr.lg]:"px-4 py-2 text-sm"}},defaultVariants:{size:Vr.md}}),Cu=yu(({className:e,sideOffset:t=4,onPointerDownOutside:r,size:a=Vr.md,...i},n)=>{let s=Pu(Ni),l=u(a);return vo(nt.Portal,{children:vo(nt.Content,{ref:n,sideOffset:t,className:o(xu({size:l}),e),onPointerDownOutside:s?(m)=>{m.preventDefault(),r?.(m)}:r,...i},void 0,!1,void 0,this)},void 0,!1,void 0,this)});Cu.displayName="TooltipContent";import*as At from"react";var My=()=>{};function Ny({prop:e,defaultProp:t,onChange:r=My}){let[a,i]=Ly({defaultProp:t,onChange:r}),n=e!==void 0,s=n?e:a,l=At.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 Ly({defaultProp:e,onChange:t}){let r=At.useState(e),[a]=r,i=At.useRef(a),n=t;return At.useEffect(()=>{if(i.current!==a)n?.(a),i.current=a},[a,n]),r}export{Ci as useToast,Mb as useTheme,Xr as usePlatform,_v as useOverlay,ni as useHotkey,$r as useFormField,u as useDensitySize,zu as useDensity,Ny as useControllableState,Yr as useComposedRefs,Df as useCommandShortcut,Ha as useCommand,xu as tooltipContentVariants,cu as toolbarVariants,fu as toolbarGroupVariants,ua as toggleVariants,su as toggleGroupVariants,yi as toastVariants,Pi as toastActionVariants,Ec as toast,kc as timelineVariants,Dc as timelineTitleVariants,_c as timelineTimeVariants,Ac as timelineItemVariants,Vc as timelineDotVariants,Fc as timelineDescriptionVariants,Bc as timelineContentVariants,Ic as timelineConnectorVariants,Rc as textareaVariants,Sc as tabsTriggerVariants,Cc as tabsListVariants,zc as tabsContentVariants,nc as tableVariants,dc as tableRowVariants,sc as tableHeaderVariants,pc as tableHeadVariants,mc as tableFooterVariants,ic as tableContainerVariants,cc as tableCellVariants,uc as tableCaptionVariants,lc as tableBodyVariants,rc as switchVariants,Gp as stepperVariants,Wp as stepVariants,Yp as stepTitleVariants,Up as stepIndicatorVariants,Xp as stepDescriptionVariants,Kp as stepContentVariants,$p as stepConnectorVariants,_p as statCardVariants,ra as spotlightStatusVariants,oa as spotlightStatusTitleVariants,Mp as spotlightStatusDescriptionVariants,wp as spotlightShortcutVariants,Pp as spotlightResultsVariants,gp as spotlightPanelVariants,fp as spotlightOverlayVariants,Tp as spotlightOptionVariants,Sp as spotlightOptionTitleVariants,xp as spotlightOptionIconVariants,zp as spotlightOptionDescriptionVariants,Cp as spotlightOptionContentVariants,ta as spotlightKbdVariants,bp as spotlightInputVariants,yp as spotlightIconVariants,vp as spotlightHeaderVariants,hp as spotlightGroupLabelVariants,sp as sliderVariants,lp as sliderTrackVariants,dp as sliderThumbVariants,mp as sliderRangeVariants,ep as skeletonVariants,tp as skeletonTextVariants,op as skeletonButtonVariants,rp as skeletonAvatarVariants,Wm as sheetOverlayVariants,Um as sheetContentVariants,Ed as separatorVariants,Kd as selectTriggerVariants,Yd as selectContentVariants,Vd as segmentedControlVariants,Dd as segmentedControlLabelVariants,Bd as segmentedControlItemVariants,Nd as scrollBarVariants,Ld as scrollBarThumbVariants,Md as scrollAreaVariants,hd as resizablePanelVariants,Pd as resizablePanelGroupVariants,Td as resizableHandleVariants,xd as resizableHandleIconVariants,vd as radioItemVariants,gd as radioGroupVariants,dd as progressVariants,pd as progressIndicatorVariants,xr as popoverContentVariants,ai as parseHotkey,Em as paginationVariants,Do as paginationLinkVariants,ed as paginationItemVariants,td as paginationEllipsisVariants,jm as paginationContentVariants,Bm as otpSlotVariants,_m as otpSeparatorVariants,Fm as otpPlaceholderVariants,Dm as otpInputVariants,Vm as otpGroupVariants,Im as otpContainerVariants,Sm as navigationMenuViewportVariants,hm as navigationMenuVariants,xm as navigationMenuTriggerVariants,Tm as navigationMenuListVariants,hv as navigationMenuLinkVariants,zm as navigationMenuIndicatorVariants,Cm as navigationMenuContentVariants,bm as multiselectTriggerVariants,ii as matchHotkey,cm as labelVariants,mm as kbdVariants,mr as isSameDay,sm as inputVariants,am as hoverCardContentVariants,Ay as formatHotkeyTokens,qr as formatHotkey,Ql as formFieldVariants,Wl as fileUploadVariants,Ga as fileUploadTextVariants,$l as fileUploadListVariants,Kl as fileUploadItemVariants,Xl as fileUploadItemSizeVariants,ql as fileUploadItemRemoveVariants,Yl as fileUploadItemNameVariants,Ul as fileUploadIconVariants,Il as errorBoundaryVariants,Bl as errorBoundaryTitleVariants,Vl as errorBoundaryIconVariants,_l as errorBoundaryDetailsVariants,Dl as errorBoundaryDescriptionVariants,Fl as errorBoundaryActionsVariants,Ml as emptyStateVariants,Ll as emptyStateTitleVariants,Nl as emptyStateIconVariants,Rl as emptyStateDescriptionVariants,Hl as emptyStateActionsVariants,gl as dropdownMenuShortcutVariants,fl as dropdownMenuSeparatorVariants,cl as dropdownMenuRadioItemVariants,ul as dropdownMenuLabelVariants,Oa as dropdownMenuItemVariants,_a as dropdownMenuContentVariants,pl as dropdownMenuCheckboxItemVariants,tl as drawerOverlayVariants,ol as drawerHandleVariants,rl as drawerContentVariants,Js as dialogContentVariants,Wa as detectPlatform,sM as cva,ky as createOptionalContext,Hy as createContext,Fs as contextMenuShortcutVariants,Ds as contextMenuSeparatorVariants,Vs as contextMenuRadioItemVariants,Bs as contextMenuLabelVariants,Ia as contextMenuItemVariants,Aa as contextMenuContentVariants,Is as contextMenuCheckboxItemVariants,Ry as composeRefs,xs as commandShortcutVariants,Ts as commandSeparatorVariants,fs as commandOverlayVariants,Cs as commandLoadingVariants,vs as commandListVariants,hs as commandItemVariants,gs as commandInputVariants,ys as commandGroupVariants,Ps as commandGroupHeadingVariants,bs as commandEmptyVariants,us as commandDialogVariants,ds as collapsibleContentVariants,ts as codeBlockVariants,ns as codeBlockPreVariants,ss as codeBlockLineVariants,ls as codeBlockLineNumberVariants,os as codeBlockLanguageVariants,rs as codeBlockHeaderVariants,as as codeBlockCopyVariants,is as codeBlockContentVariants,o as cn,En as checkboxVariants,$n as cardVariants,Gn as calendarWeekdayVariants,Dn as calendarVariants,_n as calendarTitleVariants,La as calendarNavButtonVariants,Fn as calendarHeaderVariants,On as calendarGridVariants,Wn as calendarDayVariants,Dr as buttonVariants,Yi as buttonIconVariants,kn as buttonGroupVariants,Xi as buttonBadgeVariants,Cn as breadcrumbSeparatorVariants,xn as breadcrumbPageVariants,Pn as breadcrumbListVariants,Tn as breadcrumbLinkVariants,hn as breadcrumbItemVariants,Sn as breadcrumbEllipsisVariants,fn as badgeVariants,pn as avatarVariants,_i as alertVariants,Oi as alertTitleVariants,ji as alertDialogOverlayVariants,en as alertDialogContentVariants,Gi as alertDescriptionVariants,Ai as accordionTriggerVariants,ki as accordionItemVariants,Ii as accordionContentVariants,Au as XCircleIcon,st as Variant,Fp as UIProvider,Tu as TooltipTrigger,Vr as TooltipSize,wy as TooltipProvider,Cu as TooltipContent,hu as Tooltip,bu as ToolbarSpacer,Ee as ToolbarSize,vu as ToolbarSeparator,gu as ToolbarGroup,uu as Toolbar,du as ToggleGroupItem,mu as ToggleGroup,iu as Toggle,ou as Toaster,Ge as ToastSize,Kc as TimelineTitle,Xc as TimelineTime,Gc as TimelineItem,Uc as TimelineDot,Yc as TimelineDescription,$c as TimelineContent,Wc as TimelineConnector,Oc as Timeline,ia as ThemeProvider,Hc as Textarea,Nc as TabsTrigger,Mc as TabsList,Lc as TabsContent,Yb as Tabs,he as TableSize,yc as TableRow,gc as TableHeader,Pc as TableHead,bc as TableFooter,hc as TableCell,Tc as TableCaption,vc as TableBody,fc as Table,pi as THEME_ATTR,kr as SwitchStatus,Se as SwitchSize,oc as Switch,qp as Stepper,jp as StepTitle,Jp as StepIndicator,ec as StepDescription,Ep as StepContent,Qp as StepConnector,Zp as Step,Zt as StatCardTrend,Oe as StatCardSize,Op as StatCard,Hr as SpotlightStatus,qt as SpotlightSize,Np as Spotlight,tr as SpinnerSize,rr as Spinner,pp as Slider,ap as SkeletonText,pe as SkeletonSize,np as SkeletonButton,ip as SkeletonAvatar,lo as Skeleton,Le as Size,Hv as SheetTrigger,Xm as SheetTitle,te as SheetSize,$m as SheetPortal,Ya as SheetOverlay,Km as SheetHeader,Ym as SheetFooter,qm as SheetDescription,Vo as SheetContent,kv as SheetClose,Ka as Sheet,so as SeparatorOrientation,jd as Separator,pb as SelectValue,Xd as SelectTrigger,Lr as SelectStatus,Q as SelectSize,Qd as SelectSeparator,Zd as SelectLabel,Jd as SelectItem,db as SelectGroup,io as SelectContentWidthMode,nb as SelectContentAlign,qd as SelectContent,mb as Select,Me as SegmentedControlSize,Od as SegmentedControlLabelItem,_d as SegmentedControlItem,Fd as SegmentedControl,Ja as ScrollBar,Rd as ScrollArea,Iy as STORAGE_VERSION,ci as STORAGE_THEME_KEY,Vy as STORAGE_PREFIX,By as STORAGE_DENSITY_KEY,ui as STORAGE_COLOR_SCHEME_KEY,Cd as ResizablePanelGroup,Sd as ResizablePanel,zd as ResizableHandle,wr as RadioStatus,Je as RadioSize,yd as RadioGroupItem,bd as RadioGroup,cd as Progress,av as PopoverTrigger,Tr as PopoverSize,gm as PopoverContent,nv as PopoverClose,iv as PopoverAnchor,ov as Popover,_e as PaginationSize,nd as PaginationPrevious,sd as PaginationNext,id as PaginationLink,ad as PaginationItem,ld as PaginationEllipsis,od as PaginationContent,rd as Pagination,Qm as OverlayProvider,Om as OTPInput,Ua as NavigationMenuViewport,Nm as NavigationMenuTrigger,qe as NavigationMenuSize,Mm as NavigationMenuList,Cv as NavigationMenuLink,xv as NavigationMenuItem,Rm as NavigationMenuIndicator,Lm as NavigationMenuContent,wm as NavigationMenu,de as MultiselectSize,ym as Multiselect,xb as Loader,hr as LabelSize,um as Label,Pr as KbdSize,dm as Kbd,lm as Input,ku as InfoIcon,or as IconSize,Bg as HoverCardTrigger,yr as HoverCardSize,im as HoverCardContent,Vg as HoverCard,Or as GroupOrientation,De as FormFieldSize,jl as FormFieldLabel,rm as FormFieldError,tm as FormFieldDescription,om as FormFieldControl,El as FormField,Zl as FileUpload,Ol as ErrorBoundary,kl as EmptyState,vg as DropdownMenuTrigger,yl as DropdownMenuSubTrigger,Pl as DropdownMenuSubContent,Pg as DropdownMenuSub,wl as DropdownMenuShortcut,zl as DropdownMenuSeparator,Cl as DropdownMenuRadioItem,hg as DropdownMenuRadioGroup,yg as DropdownMenuPortal,Sl as DropdownMenuLabel,Ho as DropdownMenuItemVariant,Tl as DropdownMenuItem,bg as DropdownMenuGroup,hl as DropdownMenuContent,xl as DropdownMenuCheckboxItem,bl as DropdownMenu,ag as DrawerTrigger,ll as DrawerTitle,Be as DrawerSize,al as DrawerPortal,Fa as DrawerOverlay,nl as DrawerHeader,sl as DrawerFooter,ml as DrawerDescription,il as DrawerContent,ig as DrawerClose,og as Drawer,Ef as DialogTrigger,js as DialogTitle,xt as DialogSize,Zs as DialogPortal,Ba as DialogOverlay,Qs as DialogHeader,Es as DialogFooter,el as DialogDescription,Lo as DialogContent,jf as DialogClose,Va as Dialog,yo as DensityProvider,bo as DENSITY_DEFAULT,Kf as ContextMenuTrigger,Os as ContextMenuSubTrigger,Gs as ContextMenuSubContent,qf as ContextMenuSub,qs as ContextMenuShortcut,Xs as ContextMenuSeparator,Ks as ContextMenuRadioItem,Zf as ContextMenuRadioGroup,Xf as ContextMenuPortal,Ys as ContextMenuLabel,Mo as ContextMenuItemVariant,Us as ContextMenuItem,Yf as ContextMenuGroup,Ws as ContextMenuContent,$s as ContextMenuCheckboxItem,$f as ContextMenu,ks as CommandShortcut,Hs as CommandSeparator,As as CommandLoading,Ms as CommandList,wo as CommandItemVariant,Rs as CommandItem,ws as CommandInput,Ls as CommandGroup,Ns as CommandEmpty,zs as CommandDialog,ka as Command,ct as ColorScheme,kf as CollapsibleTrigger,ps as CollapsibleContent,Hf as Collapsible,ms as CodeBlock,ur as CheckboxStatus,$e as CheckboxSize,jn as Checkbox,Hu as CheckCircleIcon,Zn as CardTitle,Yn as CardHeader,qn as CardFooter,Jn as CardDescription,Xn as CardContent,Kn as Card,Un as Calendar,Zi as ButtonLabel,qi as ButtonIcon,An as ButtonGroup,Ji as ButtonBadge,Qi as Button,le as BreadcrumbSize,Rn as BreadcrumbSeparator,Ln as BreadcrumbPage,wn as BreadcrumbList,Nn as BreadcrumbLink,Mn as BreadcrumbItem,Hn as BreadcrumbEllipsis,zn as Breadcrumb,ge as BadgeVariant,gt as BadgeTone,bt as BadgeSize,yn as BadgeGroup,gn as Badge,Ie as AvatarSize,cn as AvatarImage,un as AvatarGroup,Ma as AvatarFallback,wa as Avatar,$u as AspectRatio,Ru as AlertTriangleIcon,Ui as AlertTitle,Uu as AlertDialogTrigger,nn as AlertDialogTitle,vt as AlertDialogSize,tn as AlertDialogPortal,za as AlertDialogOverlay,on as AlertDialogHeader,an as AlertDialogFooter,sn as AlertDialogDescription,rn as AlertDialogContent,mn as AlertDialogCancel,ln as AlertDialogAction,Wu as AlertDialog,$i as AlertDescription,Wi as Alert,Di as AccordionTrigger,Te as AccordionSize,Bi as AccordionItem,Fi as AccordionContent,Vi as Accordion};
|