@ghostly-solutions/ui 0.2.0 → 0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
1
  "use client";
2
- import{cva as ZC}from"class-variance-authority";import*as Ze from"@radix-ui/react-accordion";import{cva as ei}from"class-variance-authority";import{ChevronDown as uc}from"lucide-react";import{createContext as fc,forwardRef as ao,useContext as ta}from"react";import{clsx as lc}from"clsx";import{twMerge as mc}from"tailwind-merge";function o(...e){return mc(lc(e))}import{createContext as dc,useContext as ji}from"react";import{jsxDEV as Ei}from"react/jsx-dev-runtime";var io={default:"default",compact:"compact"},pc={[io.default]:{},[io.compact]:{xl:"lg",lg:"md",md:"sm",sm:"sm"}},jo=dc(io.default),ea=({density:e,children:t})=>{return Ei(jo.Provider,{value:e,children:Ei("div",{"data-density":e,children:t},void 0,!1,void 0,this)},void 0,!1,void 0,this)};ea.displayName="DensityProvider";var cc=()=>{return ji(jo)};function m(e){let t=ji(jo);if(e===void 0)return;return pc[t][e]??e}import{jsxDEV as nt}from"react/jsx-dev-runtime";var he={sm:"sm",md:"md",lg:"lg"},ti=fc(he.md),ra=ei("border-b border-border"),oa=ei("gs-interactive flex flex-1 items-center justify-between font-medium hover:underline [&[data-state=open]>svg]:rotate-180",{variants:{size:{[he.sm]:"py-3 text-xs [&>svg]:size-3.5",[he.md]:"py-4 text-sm [&>svg]:size-4",[he.lg]:"py-5 text-base [&>svg]:size-5"}},defaultVariants:{size:he.md}}),ia=ei("gs-accordion-content overflow-hidden",{variants:{size:{[he.sm]:"text-xs",[he.md]:"text-sm",[he.lg]:"text-base"}},defaultVariants:{size:he.md}}),gc={[he.sm]:"pt-0 pb-3",[he.md]:"pt-0 pb-4",[he.lg]:"pt-0 pb-5"},aa=ao(({size:e=he.md,...t},r)=>{let i=m(e)??he.md;return nt(ti.Provider,{value:i,children:nt(Ze.Root,{ref:r,...t},void 0,!1,void 0,this)},void 0,!1,void 0,this)});aa.displayName="Accordion";var na=ao(({className:e,...t},r)=>nt(Ze.Item,{ref:r,className:o(ra(),e),...t},void 0,!1,void 0,this));na.displayName="AccordionItem";var sa=ao(({className:e,children:t,...r},i)=>{let a=ta(ti);return nt(Ze.Header,{className:"flex",children:nt(Ze.Trigger,{ref:i,className:o(oa({size:a}),e),...r,children:[t,nt(uc,{className:"shrink-0 transition-transform"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)});sa.displayName="AccordionTrigger";var la=ao(({className:e,children:t,...r},i)=>{let a=ta(ti);return nt(Ze.Content,{ref:i,className:o(ia({size:a}),e),...r,children:nt("div",{className:gc[a],children:t},void 0,!1,void 0,this)},void 0,!1,void 0,this)});la.displayName="AccordionContent";import{cva as ri}from"class-variance-authority";import{CircleAlert as bc,CircleCheck as vc,Info as yc,TriangleAlert as Pc}from"lucide-react";import{forwardRef as oi}from"react";import{jsxDEV as ii}from"react/jsx-dev-runtime";var Xt={default:"default",success:"success",warning:"warning",error:"error",info:"info"},wr={sm:"sm",md:"md",lg:"lg",xl:"xl"},ma=ri("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:{[Xt.default]:"bg-background text-foreground",[Xt.success]:"border-success/50 text-success [&>svg]:text-success bg-success/10",[Xt.warning]:"border-warning/50 text-warning [&>svg]:text-warning bg-warning/10",[Xt.error]:"border-destructive/50 text-destructive [&>svg]:text-destructive bg-destructive/10",[Xt.info]:"border-info/50 text-info [&>svg]:text-info bg-info/10"},size:{[wr.sm]:"p-3 text-xs [&>svg]:top-3 [&>svg]:left-3 [&>svg~*]:pl-6",[wr.md]:"p-4 text-sm",[wr.lg]:"p-5 text-sm",[wr.xl]:"p-6 text-base [&>svg]:top-6 [&>svg]:left-6 [&>svg~*]:pl-8"}},defaultVariants:{variant:Xt.default,size:wr.md}}),da=ri("mb-1 font-medium leading-none tracking-tight"),pa=ri("text-sm [&_p]:leading-relaxed"),ca=oi(({className:e,variant:t,size:r,...i},a)=>{let n=m(r);return ii("div",{ref:a,role:"alert",className:o(ma({variant:t,size:n}),e),...i},void 0,!1,void 0,this)});ca.displayName="Alert";var ua=oi(({className:e,...t},r)=>ii("h5",{ref:r,className:o(da(),e),...t},void 0,!1,void 0,this));ua.displayName="AlertTitle";var fa=oi(({className:e,...t},r)=>ii("div",{ref:r,className:o(pa(),e),...t},void 0,!1,void 0,this));fa.displayName="AlertDescription";import*as ce from"@radix-ui/react-alert-dialog";import{cva as xa}from"class-variance-authority";import{forwardRef as Zt}from"react";import{Slot as ga}from"@radix-ui/react-slot";import{cva as ni}from"class-variance-authority";import{forwardRef as so}from"react";import{forwardRef as hc}from"react";import{jsxDEV as ai}from"react/jsx-dev-runtime";var Mt={xs:"xs",sm:"sm",md:"md",lg:"lg",xl:"xl"},Tc={[Mt.xs]:"h-3 w-3",[Mt.sm]:"h-4 w-4",[Mt.md]:"h-5 w-5",[Mt.lg]:"h-6 w-6",[Mt.xl]:"h-8 w-8"},no=hc(({className:e,size:t=Mt.md,label:r="Loading",...i},a)=>{let n=m(t);return ai("span",{ref:a,className:o("inline-flex items-center justify-center",e),role:"status","aria-label":r,...i,children:[ai("span",{className:o("animate-spin rounded-full border-2 border-current border-r-transparent",Tc[n])},void 0,!1,void 0,this),ai("span",{className:"sr-only",children:r},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});no.displayName="Spinner";import{jsxDEV as lt}from"react/jsx-dev-runtime";var tt={primary:"primary",secondary:"secondary",neutral:"neutral",outline:"outline",ghost:"ghost",danger:"danger"},ve={xs:"xs",sm:"sm",md:"md",lg:"lg",xl:"xl",icon:"icon",iconXs:"icon-xs",iconSm:"icon-sm",iconLg:"icon-lg"},st={default:"default",success:"success",warning:"warning",error:"error",info:"info"},Nt={xs:"xs",sm:"sm",md:"md",lg:"lg"},xc="Loading",zc="button",Mr=ni("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:{[tt.primary]:"border-primary bg-primary text-primary-foreground enabled:hover:bg-primary/90",[tt.secondary]:"border-secondary bg-secondary text-secondary-foreground enabled:hover:bg-secondary/90",[tt.neutral]:"border-border bg-muted text-foreground enabled:hover:bg-muted/90",[tt.outline]:"border-border bg-background text-foreground enabled:hover:border-primary enabled:hover:bg-muted/50",[tt.ghost]:"border-transparent bg-transparent text-foreground enabled:hover:bg-muted/70",[tt.danger]:"border-destructive bg-destructive text-destructive-foreground enabled:hover:bg-destructive/90"},size:{[ve.xs]:"h-7 px-2 text-xs",[ve.sm]:"h-8 px-2.5 text-xs",[ve.md]:"h-10 px-4 text-sm",[ve.lg]:"h-11 px-5 text-sm",[ve.xl]:"h-12 px-6 text-base",[ve.icon]:"h-10 w-10 p-0",[ve.iconXs]:"h-8 w-8 p-0",[ve.iconSm]:"h-9 w-9 p-0",[ve.iconLg]:"h-11 w-11 p-0"}},defaultVariants:{variant:tt.primary,size:ve.md}}),ba=ni("shrink-0",{variants:{size:{[Nt.xs]:"size-2.5",[Nt.sm]:"size-3",[Nt.md]:"size-4",[Nt.lg]:"size-4.5"}},defaultVariants:{size:Nt.md}}),va=ni("inline-flex items-center rounded-full border px-1.5 py-0.5 font-semibold text-[10px] leading-none",{variants:{tone:{[st.default]:"border-border/70 bg-background/75 text-muted-foreground",[st.success]:"border-success/35 bg-success/12 text-success",[st.warning]:"border-warning/35 bg-warning/12 text-warning",[st.error]:"border-destructive/35 bg-destructive/12 text-destructive",[st.info]:"border-info/35 bg-info/12 text-info"}},defaultVariants:{tone:st.default}});function Sc(e){return e===ve.icon||e===ve.iconXs||e===ve.iconSm||e===ve.iconLg}function Cc(e,t){return e?t:t??zc}function wc(e,t,r){return e&&t?-1:r}function Mc(e){return e["aria-label"]??e["aria-labelledby"]??e.title}function Nc(){if(typeof process>"u")return!0;return!0}var ya=so(({className:e,size:t=Nt.md,...r},i)=>lt(ga,{ref:i,className:o(ba({size:t}),e),...r},void 0,!1,void 0,this));ya.displayName="ButtonIcon";var Pa=so(({className:e,...t},r)=>lt("span",{ref:r,className:o("truncate",e),...t},void 0,!1,void 0,this));Pa.displayName="ButtonLabel";var ha=so(({className:e,tone:t=st.default,...r},i)=>lt("span",{ref:i,className:o(va({tone:t}),e),...r},void 0,!1,void 0,this));ha.displayName="ButtonBadge";var Ta=so(({className:e,variant:t=tt.primary,size:r=ve.md,asChild:i=!1,loading:a=!1,loadingText:n=xc,fullWidth:s=!1,leadingIcon:l,trailingIcon:c,disabled:d,children:b,type:f,tabIndex:h,...p},v)=>{let z=i?ga:"button",R=m(r),w=R??r,S=Mc(p);if(Nc()&&Sc(w)&&!S)throw Error("Icon-size Button requires aria-label, aria-labelledby, or title.");let y=Boolean(d||a);return lt(z,{ref:v,className:o(Mr({variant:t,size:R}),s&&"w-full",e),disabled:i?void 0:y,"aria-disabled":y,"aria-busy":a,tabIndex:wc(i,y,h),type:Cc(i,f),...p,children:[lt("span",{className:o("absolute inset-0 flex items-center justify-center transition-opacity duration-150",a?"opacity-100":"opacity-0"),"aria-hidden":"true",children:lt(no,{size:"sm"},void 0,!1,void 0,this)},void 0,!1,void 0,this),a&&lt("span",{className:"sr-only",children:n},void 0,!1,void 0,this),lt("span",{className:o("inline-flex items-center justify-center gap-2 transition-opacity duration-150",a&&"opacity-0"),children:[l,b,c]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)});Ta.displayName="Button";import{jsxDEV as qe}from"react/jsx-dev-runtime";var mt={sm:"sm",md:"md",lg:"lg",xl:"xl",full:"full"},za=xa("gs-dialog-overlay fixed inset-0 z-50 bg-black/50"),Sa=xa("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:{[mt.sm]:"max-w-sm",[mt.md]:"max-w-md",[mt.lg]:"max-w-lg",[mt.xl]:"max-w-xl",[mt.full]:"max-w-[calc(100vw-2rem)] max-h-[calc(100vh-2rem)]"}},defaultVariants:{size:mt.md}}),Lc=ce.Root,Rc=ce.Trigger,Ca=ce.Portal,si=Zt(({className:e,...t},r)=>qe(ce.Overlay,{ref:r,className:o(za(),e),...t},void 0,!1,void 0,this));si.displayName="AlertDialogOverlay";var wa=Zt(({className:e,size:t=mt.md,...r},i)=>{let a=m(t);return qe(Ca,{children:[qe(si,{},void 0,!1,void 0,this),qe(ce.Content,{ref:i,className:o(Sa({size:a}),e),...r},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});wa.displayName="AlertDialogContent";var Ma=({className:e,...t})=>qe("div",{className:o("flex flex-col space-y-2 text-center sm:text-left",e),...t},void 0,!1,void 0,this);Ma.displayName="AlertDialogHeader";var Na=({className:e,...t})=>qe("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);Na.displayName="AlertDialogFooter";var La=Zt(({className:e,...t},r)=>qe(ce.Title,{ref:r,className:o("text-lg font-semibold",e),...t},void 0,!1,void 0,this));La.displayName="AlertDialogTitle";var Ra=Zt(({className:e,...t},r)=>qe(ce.Description,{ref:r,className:o("text-sm text-muted-foreground",e),...t},void 0,!1,void 0,this));Ra.displayName="AlertDialogDescription";var Ha=Zt(({className:e,...t},r)=>qe(ce.Action,{ref:r,className:o(Mr(),e),...t},void 0,!1,void 0,this));Ha.displayName="AlertDialogAction";var Aa=Zt(({className:e,...t},r)=>qe(ce.Cancel,{ref:r,className:o(Mr({variant:"outline"}),"mt-2 sm:mt-0",e),...t},void 0,!1,void 0,this));Aa.displayName="AlertDialogCancel";import*as ka from"@radix-ui/react-aspect-ratio";var Hc=ka.Root;import*as Jt from"@radix-ui/react-avatar";import{cva as Ac}from"class-variance-authority";import{forwardRef as lo}from"react";import{jsxDEV as qt}from"react/jsx-dev-runtime";var Le={sm:"sm",md:"md",lg:"lg",xl:"xl"},Ia=Ac("relative flex shrink-0 overflow-hidden rounded-full",{variants:{size:{[Le.sm]:"h-6 w-6",[Le.md]:"h-10 w-10",[Le.lg]:"h-12 w-12",[Le.xl]:"h-16 w-16"}},defaultVariants:{size:Le.md}}),li=lo(({className:e,size:t=Le.md,...r},i)=>{let a=m(t);return qt(Jt.Root,{ref:i,className:o(Ia({size:a}),e),...r},void 0,!1,void 0,this)});li.displayName="Avatar";var Ba=lo(({className:e,...t},r)=>qt(Jt.Image,{ref:r,className:o("aspect-square h-full w-full object-cover",e),...t},void 0,!1,void 0,this));Ba.displayName="AvatarImage";var mi=lo(({className:e,...t},r)=>qt(Jt.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));mi.displayName="AvatarFallback";var kc={[Le.sm]:"-space-x-2",[Le.md]:"-space-x-3",[Le.lg]:"-space-x-4",[Le.xl]:"-space-x-5"},Va=lo(({className:e,children:t,max:r,size:i=Le.md,...a},n)=>{let s=m(i),l=Array.isArray(t)?t:[t],c=r?l.slice(0,r):l,d=r?Math.max(0,l.length-r):0;return qt("div",{ref:n,className:o("flex items-center",kc[s],e),...a,children:[c,d>0&&qt(li,{size:s,className:"border-2 border-background",children:qt(mi,{className:"text-xs",children:["+",d]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});Va.displayName="AvatarGroup";import{Slot as Ic}from"@radix-ui/react-slot";import{cva as Bc}from"class-variance-authority";import{X as Vc}from"lucide-react";import{forwardRef as Fc}from"react";import{jsxDEV as Nr}from"react/jsx-dev-runtime";var ue={default:"default",primary:"primary",success:"success",warning:"warning",error:"error",info:"info",outline:"outline"},dt={sm:"sm",md:"md",lg:"lg",dot:"dot"},Fa=Bc("inline-flex items-center justify-center gap-1 whitespace-nowrap rounded-full border font-medium",{variants:{variant:{[ue.default]:"border-border bg-muted text-muted-foreground",[ue.primary]:"border-primary/30 bg-primary/10 text-primary",[ue.success]:"border-success/30 bg-success/10 text-success",[ue.warning]:"border-warning/30 bg-warning/10 text-warning",[ue.error]:"border-destructive/30 bg-destructive/10 text-destructive",[ue.info]:"border-info/30 bg-info/10 text-info",[ue.outline]:"border-border bg-transparent text-foreground"},solid:{true:"",false:""},size:{[dt.sm]:"h-5 px-2 text-[10px]",[dt.md]:"h-6 px-2.5 text-xs",[dt.lg]:"h-7 px-3 text-sm",[dt.dot]:"h-2 w-2 p-0"}},compoundVariants:[{solid:!0,variant:ue.default,className:"border-transparent bg-foreground text-background"},{solid:!0,variant:ue.primary,className:"border-primary bg-primary text-primary-foreground"},{solid:!0,variant:ue.success,className:"border-success bg-success text-background"},{solid:!0,variant:ue.warning,className:"border-warning bg-warning text-background"},{solid:!0,variant:ue.error,className:"border-destructive bg-destructive text-destructive-foreground"},{solid:!0,variant:ue.info,className:"border-info bg-info text-background"},{solid:!0,variant:ue.outline,className:"border-border bg-foreground text-background"}],defaultVariants:{variant:ue.default,solid:!1,size:dt.md}}),_a=Fc(({className:e,variant:t=ue.default,size:r=dt.md,solid:i=!1,pulse:a=!1,removable:n=!1,onRemove:s,onClick:l,children:c,asChild:d=!1,...b},f)=>{let h=m(r),p=Boolean(l),v=h===dt.dot,z=(S)=>{S.stopPropagation(),s?.(S)},R=o(Fa({variant:t,solid:i,size:h}),p&&"cursor-pointer",a&&"animate-pulse",n&&!v&&"pr-1",e),w=n&&!v&&Nr("button",{type:"button",className:"gs-interactive ml-0.5 inline-flex size-4 items-center justify-center rounded-full text-current opacity-60 hover:opacity-100",onClick:z,"aria-label":"Remove",tabIndex:-1,children:Nr(Vc,{className:"size-3"},void 0,!1,void 0,this)},void 0,!1,void 0,this);if(d)return Nr(Ic,{ref:f,className:R,onClick:l,...b,children:c},void 0,!1,void 0,this);if(p)return Nr("button",{ref:f,className:R,onClick:l,type:"button",...b,children:[!v&&c,w]},void 0,!0,void 0,this);return Nr("span",{ref:f,className:R,...b,children:[!v&&c,w]},void 0,!0,void 0,this)});_a.displayName="Badge";import{Children as _c,cloneElement as Dc,forwardRef as Oc,isValidElement as Gc,useCallback as Da,useLayoutEffect as Wc,useRef as $c,useState as Uc}from"react";import{jsxDEV as Oa}from"react/jsx-dev-runtime";function Kc(e){let t=[];return _c.forEach(e,(r,i)=>{if(!Gc(r))return;let a=r.key??i;t.push({key:a,element:r,isLeaving:!1})}),t}function Yc(e,t){let r=new Set(t.map((n)=>n.key)),i=new Set(e.map((n)=>n.key)),a=[];for(let n of e)if(r.has(n.key)){let s=t.find((l)=>l.key===n.key);if(s)a.push({...s,isLeaving:!1})}else a.push({...n,isLeaving:!0});for(let n of t)if(!i.has(n.key))a.push(n);return a}function Xc(e,t,r){if(r.current)return r.current=!1,t;return Yc(e,t)}var Ga=Oc(({children:e,className:t,onRemove:r,gap:i="sm"},a)=>{let[n,s]=Uc([]),l=$c(!0);Wc(()=>{let f=Kc(e);s((h)=>Xc(h,f,l))},[e]);let c=Da((f)=>{s((h)=>h.filter((p)=>p.key!==f))},[]),d=Da((f)=>{r?.(f)},[r]),b={sm:"gap-1",md:"gap-2",lg:"gap-3"}[i];return Oa("div",{ref:a,className:o("inline-flex flex-wrap items-center",b,t),children:n.map((f)=>{let h={};if(f.element.props.removable&&r)h.onRemove=()=>{d(f.key)};let p=o("inline-flex transition-all duration-200",f.isLeaving&&"pointer-events-none scale-95 opacity-0");return Oa("span",{className:p,onTransitionEnd:f.isLeaving?()=>c(f.key):void 0,children:Dc(f.element,h)},f.key,!1,void 0,this)})},void 0,!1,void 0,this)});Ga.displayName="BadgeGroup";import{Slot as Zc}from"@radix-ui/react-slot";import{cva as Qt}from"class-variance-authority";import{ChevronRight as qc,MoreHorizontal as Jc}from"lucide-react";import{createContext as Qc,forwardRef as Lr,useContext as di}from"react";import{jsxDEV as _e}from"react/jsx-dev-runtime";var se={sm:"sm",md:"md",lg:"lg"},mo=Qc(se.md),Wa=Qt("flex flex-wrap items-center break-words text-muted-foreground",{variants:{size:{[se.sm]:"gap-1 text-xs",[se.md]:"gap-1.5 text-sm sm:gap-2.5",[se.lg]:"gap-2 text-base sm:gap-3"}},defaultVariants:{size:se.md}}),$a=Qt("inline-flex items-center gap-1.5"),Ua=Qt("gs-interactive hover:text-foreground focus-visible:outline-none focus-visible:text-foreground"),Ka=Qt("font-normal text-foreground"),Ya=Qt("",{variants:{size:{[se.sm]:"[&>svg]:size-3",[se.md]:"[&>svg]:size-3.5",[se.lg]:"[&>svg]:size-4"}},defaultVariants:{size:se.md}}),Xa=Qt("flex items-center justify-center",{variants:{size:{[se.sm]:"h-7 w-7 [&>svg]:size-3.5",[se.md]:"h-9 w-9 [&>svg]:size-4",[se.lg]:"h-10 w-10 [&>svg]:size-5"}},defaultVariants:{size:se.md}}),Za=Lr(({size:e=se.md,...t},r)=>{let i=m(e)??se.md;return _e(mo.Provider,{value:i,children:_e("nav",{ref:r,"aria-label":"breadcrumb",...t},void 0,!1,void 0,this)},void 0,!1,void 0,this)});Za.displayName="Breadcrumb";var qa=Lr(({className:e,...t},r)=>{let i=di(mo);return _e("ol",{ref:r,className:o(Wa({size:i}),e),...t},void 0,!1,void 0,this)});qa.displayName="BreadcrumbList";var Ja=Lr(({className:e,...t},r)=>_e("li",{ref:r,className:o($a(),e),...t},void 0,!1,void 0,this));Ja.displayName="BreadcrumbItem";var Qa=Lr(({asChild:e,className:t,...r},i)=>{return _e(e?Zc:"a",{ref:i,className:o(Ua(),t),...r},void 0,!1,void 0,this)});Qa.displayName="BreadcrumbLink";var Ea=Lr(({className:e,...t},r)=>_e("span",{ref:r,role:"link",tabIndex:0,"aria-disabled":"true","aria-current":"page",className:o(Ka(),e),...t},void 0,!1,void 0,this));Ea.displayName="BreadcrumbPage";var ja=({children:e,className:t,...r})=>{let i=di(mo),a={[se.sm]:"size-3",[se.md]:"size-3.5",[se.lg]:"size-4"};return _e("li",{role:"presentation","aria-hidden":"true",className:o(Ya({size:i}),t),...r,children:e??_e(qc,{className:a[i]},void 0,!1,void 0,this)},void 0,!1,void 0,this)};ja.displayName="BreadcrumbSeparator";var en=({className:e,...t})=>{let r=di(mo);return _e("span",{role:"presentation","aria-hidden":"true",className:o(Xa({size:r}),e),...t,children:[_e(Jc,{},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)};en.displayName="BreadcrumbEllipsis";import{cva as Ec}from"class-variance-authority";import{forwardRef as jc}from"react";import{jsxDEV as eu}from"react/jsx-dev-runtime";var Rr={horizontal:"horizontal",vertical:"vertical"},tn=Ec("inline-flex items-stretch",{variants:{orientation:{[Rr.horizontal]:"flex-row",[Rr.vertical]:"flex-col"},attached:{true:"gap-0 [&>*:not(:first-child)]:rounded-l-none [&>*:not(:last-child)]:rounded-r-none",false:"gap-2"}},defaultVariants:{orientation:Rr.horizontal,attached:!1}}),rn=jc(({className:e,orientation:t=Rr.horizontal,attached:r=!1,fullWidth:i=!1,...a},n)=>eu("div",{ref:n,className:o(tn({orientation:t,attached:r}),i&&"w-full",e),...a},void 0,!1,void 0,this));rn.displayName="ButtonGroup";import{cva as pt}from"class-variance-authority";import{forwardRef as tu,useCallback as Et,useEffect as ru,useMemo as on,useState as an}from"react";import{jsxDEV as we}from"react/jsx-dev-runtime";var V={sm:"sm",md:"md",lg:"lg",xl:"xl"},sn=pt("inline-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:{[V.sm]:"p-3 text-sm",[V.md]:"p-4 text-sm",[V.lg]:"p-5 text-base",[V.xl]:"p-6 text-base"}},defaultVariants:{size:V.md}}),ln=pt("mb-3 flex items-center justify-between",{variants:{size:{[V.sm]:"gap-1",[V.md]:"gap-2",[V.lg]:"gap-3",[V.xl]:"gap-3"}},defaultVariants:{size:V.md}}),mn=pt("font-semibold text-foreground",{variants:{size:{[V.sm]:"text-sm",[V.md]:"text-base",[V.lg]:"text-lg",[V.xl]:"text-xl"}},defaultVariants:{size:V.md}}),pi=pt(["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:{[V.sm]:"size-7",[V.md]:"size-8",[V.lg]:"size-10",[V.xl]:"size-10"}},defaultVariants:{size:V.md}}),dn=pt("grid grid-cols-7",{variants:{size:{[V.sm]:"gap-0.5",[V.md]:"gap-1",[V.lg]:"gap-1.5",[V.xl]:"gap-2"}},defaultVariants:{size:V.md}}),pn=pt("text-center font-semibold uppercase tracking-wide text-muted-foreground",{variants:{size:{[V.sm]:"py-1 text-[10px]",[V.md]:"py-1.5 text-xs",[V.lg]:"py-2 text-sm",[V.xl]:"py-2 text-sm"}},defaultVariants:{size:V.md}}),cn=pt(["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:{[V.sm]:"size-7 text-xs",[V.md]:"size-9 text-sm",[V.lg]:"size-10 text-base",[V.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:V.md,state:"default"}}),ou=pt("rounded-md border border-transparent",{variants:{size:{[V.sm]:"size-7",[V.md]:"size-9",[V.lg]:"size-10",[V.xl]:"size-11"}},defaultVariants:{size:V.md}}),nn=["Su","Mo","Tu","We","Th","Fr","Sa"],iu=["January","February","March","April","May","June","July","August","September","October","November","December"],rt=(e)=>new Date(e.getFullYear(),e.getMonth(),e.getDate()),jt=(e,t)=>{return e.getDate()===t.getDate()&&e.getMonth()===t.getMonth()&&e.getFullYear()===t.getFullYear()},un=tu(({className:e,size:t="md",cellSize:r,mode:i="single",value:a,defaultValue:n,onChange:s,rangeValue:l,onRangeChange:c,viewMonth:d,onViewMonthChange:b,minDate:f,maxDate:h,disabledDates:p=[],weekStartsOn:v=1,highlightToday:z=!0,...R},w)=>{let S=m(t)??V.md,y=m(r??S)??S,[M,B]=an(a??n??null),[C,H]=an(a??n??new Date),A=d??C,G=Et((u)=>{let g=typeof u==="function"?u(d??C):u;if(b)b(g);else H(g)},[d,C,b]),q=a!==void 0?a:M,D=f?rt(f):null,O=h?rt(h):null;ru(()=>{if(a!==void 0){if(B(a??null),a&&!d)H(a)}},[a,d]);let P=Et((u,g)=>{return(new Date(u,g,1).getDay()-v+7)%7},[v]),k=on(()=>{let u=A.getFullYear(),g=A.getMonth(),N=P(u,g),pe=new Date(u,g+1,0).getDate(),x=[];for(let I=0;I<N;I+=1)x.push({key:`leading-${u}-${g}-${I}`,date:null});for(let I=1;I<=pe;I+=1)x.push({key:`day-${u}-${g}-${I}`,date:new Date(u,g,I)});let X=(7-x.length%7)%7;for(let I=0;I<X;I+=1)x.push({key:`trailing-${u}-${g}-${I}`,date:null});return x},[A,P]),T=Et((u)=>{let g=rt(u);if(D&&g<D)return!0;if(O&&g>O)return!0;return p.some((N)=>jt(g,rt(N)))},[D,O,p]),U=Et((u)=>{if(T(u))return"disabled";if(i==="range"&&l){let{from:g,to:N}=l;if(g&&jt(u,g))return"rangeStart";if(N&&jt(u,N))return"rangeEnd";if(g&&N){let pe=rt(u),x=rt(g),X=rt(N);if(pe>x&&pe<X)return"range"}}if(i==="single"&&q&&jt(u,q))return"selected";if(z&&jt(u,new Date))return"today";return"default"},[q,z,T,i,l]),Q=Et((u)=>{if(T(u))return;let g=new Date(u);if(i==="range"){if(!l?.from||l.from&&l.to)c?.({from:g,to:void 0});else{let N=rt(l.from);if(rt(g)<N)c?.({from:g,to:l.from});else c?.({from:l.from,to:g})}return}if(a===void 0)B(g);s?.(g)},[T,i,s,c,l,a]),L=Et((u)=>{G((g)=>{let N=new Date(g);return N.setMonth(N.getMonth()+u),N})},[]),Y=on(()=>{return[...nn.slice(v),...nn.slice(0,v)]},[v]);return we("div",{ref:w,className:o(sn({size:S}),e),...R,children:[we("div",{className:o(ln({size:S})),children:[we("button",{type:"button",onClick:()=>L(-1),className:o(pi({size:S})),"aria-label":"Previous month",children:we("svg",{className:"size-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:we("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),we("span",{className:o(mn({size:S})),children:[iu[A.getMonth()]," ",A.getFullYear()]},void 0,!0,void 0,this),we("button",{type:"button",onClick:()=>L(1),className:o(pi({size:S})),"aria-label":"Next month",children:we("svg",{className:"size-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:we("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),we("div",{className:o(dn({size:S})),children:[Y.map((u)=>we("div",{className:o(pn({size:y})),children:u},u,!1,void 0,this)),k.map((u)=>{if(!u.date)return we("div",{"aria-hidden":"true",className:o(ou({size:y}))},u.key,!1,void 0,this);let g=u.date,N=U(g);return we("button",{type:"button",onClick:()=>Q(g),disabled:N==="disabled",className:o(cn({size:y,state:N})),children:g.getDate()},u.key,!1,void 0,this)})]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)});un.displayName="Calendar";import{Slot as er}from"@radix-ui/react-slot";import{cva as au}from"class-variance-authority";import{forwardRef as tr}from"react";import{jsxDEV as rr}from"react/jsx-dev-runtime";var po={default:"default",muted:"muted",danger:"danger"},fn=au("gs-interactive relative overflow-hidden rounded-[var(--radius)] border bg-card text-card-foreground shadow-[var(--shadow-sm)]",{variants:{variant:{[po.default]:"border-border",[po.muted]:"border-border/70 bg-muted/40",[po.danger]:"border-destructive/30 bg-destructive/[0.06]"}},defaultVariants:{variant:po.default}}),gn=tr(({asChild:e=!1,className:t,variant:r,...i},a)=>{return rr(e?er:"div",{ref:a,className:o(fn({variant:r}),t),...i},void 0,!1,void 0,this)});gn.displayName="Card";var bn=tr(({asChild:e=!1,className:t,...r},i)=>{return rr(e?er:"div",{ref:i,className:o("flex flex-col gap-1.5 border-b border-border/50 p-4",t),...r},void 0,!1,void 0,this)});bn.displayName="CardHeader";var vn=tr(({asChild:e=!1,className:t,...r},i)=>{return rr(e?er:"div",{ref:i,className:o("p-4",t),...r},void 0,!1,void 0,this)});vn.displayName="CardContent";var yn=tr(({asChild:e=!1,className:t,...r},i)=>{return rr(e?er:"div",{ref:i,className:o("flex items-center border-t border-border/50 p-4",t),...r},void 0,!1,void 0,this)});yn.displayName="CardFooter";var Pn=tr(({asChild:e=!1,className:t,...r},i)=>{return rr(e?er:"h3",{ref:i,className:o("font-semibold text-base leading-none tracking-tight",t),...r},void 0,!1,void 0,this)});Pn.displayName="CardTitle";var hn=tr(({asChild:e=!1,className:t,...r},i)=>{return rr(e?er:"p",{ref:i,className:o("text-sm text-muted-foreground",t),...r},void 0,!1,void 0,this)});hn.displayName="CardDescription";import*as uo from"@radix-ui/react-checkbox";import{cva as nu}from"class-variance-authority";import{Check as su,Minus as lu}from"lucide-react";import{forwardRef as mu}from"react";import{jsxDEV as co}from"react/jsx-dev-runtime";var De={sm:"sm",md:"md",lg:"lg",xl:"xl"},or={default:"default",error:"error",success:"success"},xn=nu("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:{[De.sm]:"h-4 w-4",[De.md]:"h-5 w-5",[De.lg]:"h-6 w-6",[De.xl]:"h-7 w-7"},status:{[or.default]:"enabled:hover:border-primary/70",[or.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",[or.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:De.md,status:or.default}}),Tn={[De.sm]:"size-3.5",[De.md]:"size-3.5",[De.lg]:"size-4",[De.xl]:"size-5"},zn=mu(({className:e,size:t=De.md,status:r=or.default,checked:i,disabled:a,...n},s)=>{let l=m(t);return co(uo.Root,{ref:s,checked:i,disabled:a,className:o(xn({size:l,status:r}),e),...n,children:co(uo.Indicator,{className:"gs-checkbox-indicator flex items-center justify-center text-current",children:i==="indeterminate"?co(lu,{className:Tn[l]},void 0,!1,void 0,this):co(su,{className:Tn[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 ct}from"class-variance-authority";import{forwardRef as du,useCallback as pu,useState as cu}from"react";import{jsxDEV as Te,Fragment as Sn}from"react/jsx-dev-runtime";var K={sm:"sm",md:"md",lg:"lg"},ci={default:"default",ghost:"ghost"},Cn=ct("relative rounded-lg overflow-hidden font-mono",{variants:{size:{[K.sm]:"text-xs",[K.md]:"text-sm",[K.lg]:"text-base"},variant:{[ci.default]:"bg-muted border border-border",[ci.ghost]:"bg-transparent"}},defaultVariants:{size:K.md,variant:ci.default}}),wn=ct("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}}),Mn=ct("text-muted-foreground font-medium",{variants:{size:{[K.sm]:"text-[11px]",[K.md]:"text-xs",[K.lg]:"text-sm"}},defaultVariants:{size:K.md}}),Nn=ct(["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}}),Ln=ct("overflow-x-auto",{variants:{size:{[K.sm]:"p-2.5",[K.md]:"p-4",[K.lg]:"p-5"}},defaultVariants:{size:K.md}}),Rn=ct("text-foreground",{variants:{size:{[K.sm]:"",[K.md]:"",[K.lg]:""},showLineNumbers:{true:"",false:""}},defaultVariants:{size:K.md,showLineNumbers:!1}}),Hn=ct("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}}),An=ct("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}}),kn=du(({className:e,code:t,language:r,showLineNumbers:i=!1,highlightedLines:a=[],showCopy:n=!0,size:s="md",variant:l="default",onCopy:c,...d},b)=>{let f=m(s),[h,p]=cu(!1),v=pu(async()=>{try{await navigator.clipboard.writeText(t),p(!0),c?.(t),setTimeout(()=>p(!1),2000)}catch(w){}},[t,c]),z=t.split(`
3
- `),R=new Set(a);return Te("div",{ref:b,className:o(Cn({size:f,variant:l}),e),...d,children:[(r||n)&&Te("div",{className:o(wn({size:f})),children:[Te("span",{className:o(Mn({size:f})),children:r},void 0,!1,void 0,this),n&&Te("button",{type:"button",onClick:v,className:o(Nn({size:f,copied:h})),children:h?Te(Sn,{children:[Te("svg",{className:"size-3.5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:Te("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):Te(Sn,{children:[Te("svg",{className:"size-3.5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:Te("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),Te("div",{className:o(Ln({size:f})),children:Te("pre",{className:o(Rn({size:f,showLineNumbers:i})),children:Te("code",{children:z.map((w,S)=>Te("span",{className:o(Hn({size:f,highlighted:R.has(S+1)})),children:[i&&Te("span",{className:o(An({size:f})),children:S+1},void 0,!1,void 0,this),w,`
4
- `]},`line-${String(S)}`,!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)});kn.displayName="CodeBlock";import*as ir from"@radix-ui/react-collapsible";import{cva as uu}from"class-variance-authority";import{forwardRef as fu}from"react";import{jsxDEV as vu}from"react/jsx-dev-runtime";var In=uu("gs-collapsible-content overflow-hidden"),gu=ir.Root,bu=ir.CollapsibleTrigger,Bn=fu(({className:e,...t},r)=>vu(ir.CollapsibleContent,{ref:r,className:o(In(),e),...t},void 0,!1,void 0,this));Bn.displayName="CollapsibleContent";import*as F from"@radix-ui/react-context-menu";import{cva as Lt}from"class-variance-authority";import{Check as yu,ChevronRight as Pu,Circle as hu}from"lucide-react";import{createContext as Tu,forwardRef as ut,useContext as ar}from"react";import{jsxDEV as le}from"react/jsx-dev-runtime";var W={sm:"sm",md:"md",lg:"lg"},Rt=Tu(W.md),ui=Lt("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)]"),fi=Lt("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 [&_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"}},defaultVariants:{size:W.md}}),Vn=Lt("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}}),Fn=Lt("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}}),_n=Lt("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}}),Dn=Lt("-mx-1 my-1 h-px bg-border/50"),On=Lt("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}}),Gn={[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"},xu={[W.sm]:"size-3",[W.md]:"size-3.5",[W.lg]:"size-4"},zu={[W.sm]:"size-1.5 fill-current",[W.md]:"size-2 fill-current",[W.lg]:"size-2.5 fill-current"},Su=F.Root,Cu=F.Trigger,wu=F.Group,Mu=F.Portal,Nu=F.Sub,Lu=F.RadioGroup,Wn=ut(({className:e,inset:t,children:r,...i},a)=>{let n=ar(Rt),s=m(n);return le(F.SubTrigger,{ref:a,className:o(fi({size:s}),"data-[state=open]:bg-accent",t&&"pl-8",e),...i,children:[r,le(Pu,{className:"ml-auto"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});Wn.displayName=F.SubTrigger.displayName;var $n=ut(({className:e,...t},r)=>le(F.Portal,{children:le(F.SubContent,{ref:r,className:o(ui(),e),...t},void 0,!1,void 0,this)},void 0,!1,void 0,this));$n.displayName=F.SubContent.displayName;var Un=ut(({className:e,size:t,...r},i)=>{let a=m(t)??W.md;return le(Rt.Provider,{value:a,children:le(F.Portal,{children:le(F.Content,{ref:i,className:o(ui(),e),...r},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)});Un.displayName=F.Content.displayName;var Kn=ut(({className:e,inset:t,...r},i)=>{let a=ar(Rt),n=m(a);return le(F.Item,{ref:i,className:o(fi({size:n}),t&&"pl-8",e),...r},void 0,!1,void 0,this)});Kn.displayName=F.Item.displayName;var Yn=ut(({className:e,children:t,checked:r,...i},a)=>{let n=ar(Rt),s=m(n)??W.md;return le(F.CheckboxItem,{ref:a,className:o(Vn({size:s}),e),checked:r,...i,children:[le("span",{className:Gn[s],children:le(F.ItemIndicator,{children:le(yu,{className:xu[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)});Yn.displayName=F.CheckboxItem.displayName;var Xn=ut(({className:e,children:t,...r},i)=>{let a=ar(Rt),n=m(a)??W.md;return le(F.RadioItem,{ref:i,className:o(Fn({size:n}),e),...r,children:[le("span",{className:Gn[n],children:le(F.ItemIndicator,{children:le(hu,{className:zu[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)});Xn.displayName=F.RadioItem.displayName;var Zn=ut(({className:e,inset:t,...r},i)=>{let a=ar(Rt),n=m(a);return le(F.Label,{ref:i,className:o(_n({size:n}),t&&"pl-8",e),...r},void 0,!1,void 0,this)});Zn.displayName=F.Label.displayName;var qn=ut(({className:e,...t},r)=>le(F.Separator,{ref:r,className:o(Dn(),e),...t},void 0,!1,void 0,this));qn.displayName=F.Separator.displayName;var Jn=({className:e,...t})=>{let r=ar(Rt),i=m(r);return le("span",{className:o(On({size:i}),e),...t},void 0,!1,void 0,this)};Jn.displayName="ContextMenuShortcut";import*as fe from"@radix-ui/react-dialog";import{cva as Ru}from"class-variance-authority";import{X as Hu}from"lucide-react";import{forwardRef as fo}from"react";import{jsxDEV as Oe}from"react/jsx-dev-runtime";var ft={sm:"sm",md:"md",lg:"lg",xl:"xl",full:"full"},gi=fe.Root,Au=fe.Trigger,Qn=fe.Portal,ku=fe.Close,bi=fo(({className:e,...t},r)=>Oe(fe.Overlay,{ref:r,className:o("gs-dialog-overlay fixed inset-0 z-50 bg-black/50",e),...t},void 0,!1,void 0,this));bi.displayName="DialogOverlay";var En=Ru("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:{[ft.sm]:"max-w-sm",[ft.md]:"max-w-md",[ft.lg]:"max-w-lg",[ft.xl]:"max-w-xl",[ft.full]:"max-w-[calc(100vw-2rem)] max-h-[calc(100vh-2rem)]"}},defaultVariants:{size:ft.md}}),go=fo(({className:e,children:t,size:r=ft.md,showClose:i=!0,...a},n)=>{let s=m(r);return Oe(Qn,{children:[Oe(bi,{},void 0,!1,void 0,this),Oe(fe.Content,{ref:n,className:o(En({size:s}),e),...a,children:[t,i&&Oe(fe.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:[Oe(Hu,{className:"size-4"},void 0,!1,void 0,this),Oe("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)});go.displayName="DialogContent";var jn=({className:e,...t})=>Oe("div",{className:o("flex flex-col space-y-1.5 text-center sm:text-left",e),...t},void 0,!1,void 0,this);jn.displayName="DialogHeader";var es=({className:e,...t})=>Oe("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 ts=fo(({className:e,...t},r)=>Oe(fe.Title,{ref:r,className:o("font-semibold text-lg leading-none tracking-tight",e),...t},void 0,!1,void 0,this));ts.displayName="DialogTitle";var rs=fo(({className:e,...t},r)=>Oe(fe.Description,{ref:r,className:o("text-muted-foreground text-sm",e),...t},void 0,!1,void 0,this));rs.displayName="DialogDescription";import{cva as vi}from"class-variance-authority";import{X as Iu}from"lucide-react";import{forwardRef as bo}from"react";import{Drawer as ot}from"vaul";import{jsxDEV as Re}from"react/jsx-dev-runtime";var He={sm:"sm",md:"md",lg:"lg",xl:"xl",full:"full"},Bu={[He.sm]:"sm:max-w-sm",[He.md]:"sm:max-w-md",[He.lg]:"sm:max-w-lg",[He.xl]:"sm:max-w-xl",[He.full]:"sm:max-w-full"},Vu={[He.sm]:"sm:max-h-[30vh]",[He.md]:"sm:max-h-[50vh]",[He.lg]:"sm:max-h-[70vh]",[He.xl]:"sm:max-h-[85vh]",[He.full]:"sm:max-h-full"},os=vi(["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"]),is=vi(["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"]),as=vi("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"}}),Fu=ot.Root,_u=ot.Trigger,Du=ot.Close,ns=ot.Portal,yi=bo(({className:e,...t},r)=>Re(ot.Overlay,{ref:r,className:o(os(),e),...t},void 0,!1,void 0,this));yi.displayName="DrawerOverlay";var ss=bo(({size:e=He.md,showClose:t=!1,direction:r="bottom",className:i,children:a,...n},s)=>{let c=r==="left"||r==="right"?Bu[e]:Vu[e];return Re(ns,{children:[Re(yi,{},void 0,!1,void 0,this),Re(ot.Content,{ref:s,className:o(is(),c,i),...n,children:[(r==="top"||r==="bottom")&&Re("div",{className:o(as({direction:r}))},void 0,!1,void 0,this),a,t&&Re(ot.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:[Re(Iu,{className:"size-4"},void 0,!1,void 0,this),Re("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)});ss.displayName="DrawerContent";var ls=({className:e,...t})=>Re("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);ls.displayName="DrawerHeader";var ms=({className:e,...t})=>Re("div",{className:o("mt-auto flex flex-col gap-2 p-4",e),...t},void 0,!1,void 0,this);ms.displayName="DrawerFooter";var ds=bo(({className:e,...t},r)=>Re(ot.Title,{ref:r,className:o("font-semibold text-foreground text-lg",e),...t},void 0,!1,void 0,this));ds.displayName="DrawerTitle";var ps=bo(({className:e,...t},r)=>Re(ot.Description,{ref:r,className:o("text-muted-foreground text-sm",e),...t},void 0,!1,void 0,this));ps.displayName="DrawerDescription";import*as _ from"@radix-ui/react-dropdown-menu";import{cva as At}from"class-variance-authority";import{Check as Ou,ChevronRight as Gu,Circle as Wu}from"lucide-react";import{createContext as $u,forwardRef as gt,useCallback as Uu,useContext as nr,useEffect as Ku,useRef as cs,useState as Yu}from"react";import{jsxDEV as ne}from"react/jsx-dev-runtime";var $={sm:"sm",md:"md",lg:"lg"},kt=$u($.md),Ht=null,Hr=null,Xu=0,Pi=At("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)]"),hi=At("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 [&_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"}},defaultVariants:{size:$.md}}),us=At("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}}),fs=At("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}}),gs=At("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}}),bs=At("-mx-1 my-1 h-px bg-border/50"),vs=At("ml-auto tracking-widest text-muted-foreground/70",{variants:{size:{[$.sm]:"text-[10px]",[$.md]:"text-xs",[$.lg]:"text-xs"}},defaultVariants:{size:$.md}}),ys={[$.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"},Zu={[$.sm]:"size-3",[$.md]:"size-3.5",[$.lg]:"size-4"},qu={[$.sm]:"size-1.5 fill-current",[$.md]:"size-2 fill-current",[$.lg]:"size-2.5 fill-current"},Ps=({children:e,open:t,defaultOpen:r,onOpenChange:i,...a})=>{let[n,s]=Yu(r??!1),l=t!==void 0,c=l?t:n,d=cs(++Xu),b=cs({onOpenChange:i,isControlled:l});b.current={onOpenChange:i,isControlled:l};let f=Uu((h)=>{let{onOpenChange:p,isControlled:v}=b.current;if(h){if(Ht!==null&&Ht!==d.current&&Hr)Hr();Ht=d.current,Hr=()=>{let{onOpenChange:z,isControlled:R}=b.current;if(!R)s(!1);z?.(!1)}}else if(Ht===d.current)Ht=null,Hr=null;if(!v)s(h);p?.(h)},[]);return Ku(()=>{return()=>{if(Ht===d.current)Ht=null,Hr=null}},[]),ne(_.Root,{open:c,onOpenChange:f,...a,children:e},void 0,!1,void 0,this)};Ps.displayName="DropdownMenu";var Ju=_.Trigger,Qu=_.Group,Eu=_.Portal,ju=_.Sub,ef=_.RadioGroup,hs=gt(({className:e,inset:t,children:r,...i},a)=>{let n=nr(kt),s=m(n);return ne(_.SubTrigger,{ref:a,className:o(hi({size:s}),"data-[state=open]:bg-accent",t&&"pl-8",e),...i,children:[r,ne(Gu,{className:"ml-auto"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});hs.displayName=_.SubTrigger.displayName;var Ts=gt(({className:e,...t},r)=>ne(_.Portal,{children:ne(_.SubContent,{ref:r,className:o(Pi(),e),...t},void 0,!1,void 0,this)},void 0,!1,void 0,this));Ts.displayName=_.SubContent.displayName;var xs=gt(({className:e,sideOffset:t=4,size:r,...i},a)=>{let n=m(r)??$.md;return ne(kt.Provider,{value:n,children:ne(_.Portal,{children:ne(_.Content,{ref:a,sideOffset:t,className:o(Pi(),e),...i},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)});xs.displayName=_.Content.displayName;var zs=gt(({className:e,inset:t,...r},i)=>{let a=nr(kt),n=m(a);return ne(_.Item,{ref:i,className:o(hi({size:n}),t&&"pl-8",e),...r},void 0,!1,void 0,this)});zs.displayName=_.Item.displayName;var Ss=gt(({className:e,children:t,checked:r,...i},a)=>{let n=nr(kt),s=m(n)??$.md;return ne(_.CheckboxItem,{ref:a,className:o(us({size:s}),e),checked:r,...i,children:[ne("span",{className:ys[s],children:ne(_.ItemIndicator,{children:ne(Ou,{className:Zu[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)});Ss.displayName=_.CheckboxItem.displayName;var Cs=gt(({className:e,children:t,...r},i)=>{let a=nr(kt),n=m(a)??$.md;return ne(_.RadioItem,{ref:i,className:o(fs({size:n}),e),...r,children:[ne("span",{className:ys[n],children:ne(_.ItemIndicator,{children:ne(Wu,{className:qu[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)});Cs.displayName=_.RadioItem.displayName;var ws=gt(({className:e,inset:t,...r},i)=>{let a=nr(kt),n=m(a);return ne(_.Label,{ref:i,className:o(gs({size:n}),t&&"pl-8",e),...r},void 0,!1,void 0,this)});ws.displayName=_.Label.displayName;var Ms=gt(({className:e,...t},r)=>ne(_.Separator,{ref:r,className:o(bs(),e),...t},void 0,!1,void 0,this));Ms.displayName=_.Separator.displayName;var Ns=({className:e,...t})=>{let r=nr(kt),i=m(r);return ne("span",{className:o(vs({size:i}),e),...t},void 0,!1,void 0,this)};Ns.displayName="DropdownMenuShortcut";import{cva as kr}from"class-variance-authority";import{forwardRef as tf}from"react";import{jsxDEV as Ar}from"react/jsx-dev-runtime";var ge={sm:"sm",md:"md",lg:"lg"},Ls=kr("flex flex-col items-center justify-center text-center rounded-[var(--radius)] border border-dashed border-border/50 bg-muted/20",{variants:{size:{[ge.sm]:"gap-2 p-4",[ge.md]:"gap-4 p-8",[ge.lg]:"gap-6 p-12"}},defaultVariants:{size:ge.md}}),Rs=kr("flex items-center justify-center rounded-full bg-muted/50 text-muted-foreground",{variants:{size:{[ge.sm]:"h-10 w-10 [&>svg]:h-4 [&>svg]:w-4",[ge.md]:"h-16 w-16 [&>svg]:h-7 [&>svg]:w-7",[ge.lg]:"h-20 w-20 [&>svg]:h-9 [&>svg]:w-9"}},defaultVariants:{size:ge.md}}),Hs=kr("font-semibold text-foreground",{variants:{size:{[ge.sm]:"text-sm",[ge.md]:"text-lg",[ge.lg]:"text-xl"}},defaultVariants:{size:ge.md}}),As=kr("text-muted-foreground max-w-sm",{variants:{size:{[ge.sm]:"text-xs",[ge.md]:"text-sm",[ge.lg]:"text-base"}},defaultVariants:{size:ge.md}}),ks=kr("flex items-center gap-2 mt-2"),Is=tf(({className:e,icon:t,title:r,description:i,actions:a,size:n=ge.md,children:s,...l},c)=>{let d=m(n);return Ar("div",{ref:c,className:o(Ls({size:d}),e),...l,children:[t&&Ar("div",{className:Rs({size:d}),children:t},void 0,!1,void 0,this),r&&Ar("h3",{className:Hs({size:d}),children:r},void 0,!1,void 0,this),i&&Ar("p",{className:As({size:d}),children:i},void 0,!1,void 0,this),a&&Ar("div",{className:ks(),children:a},void 0,!1,void 0,this),s]},void 0,!0,void 0,this)});Is.displayName="EmptyState";import{cva as sr}from"class-variance-authority";import{Component as rf,createElement as Bs}from"react";import{jsxDEV as xe,Fragment as af}from"react/jsx-dev-runtime";var Vs=sr(["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"}}),Fs=sr(["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"}}),_s=sr("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"}}),Ds=sr("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"}}),Os=sr("mt-2 flex flex-wrap items-center justify-center gap-2"),Gs=sr("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 Ws extends rf{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:i="md",variant:a="destructive",className:n,title:s="Something went wrong",description:l="An unexpected error occurred. Please try again.",icon:c,actions:d,resetLabel:b="Try again",hideReset:f=!1,renderDetails:h}=this.props;if(this.state.hasError&&this.state.error){let p={error:this.state.error,reset:this.handleReset};if(t){if(typeof t==="function")return Bs(t,p);return t}let v=null;if(d)v=typeof d==="function"?Bs(d,p):d;else if(!f){let R={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=xe("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",R[a]),children:b},void 0,!1,void 0,this)}let z=h?h(this.state.error):xe(af,{children:[xe("strong",{children:"Error:"},void 0,!1,void 0,this)," ",this.state.error.message,this.state.error.stack&&xe("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 xe("div",{className:o(Vs({size:i,variant:a}),n),children:[xe("div",{className:o(Fs({size:i,variant:a})),children:c??xe(of,{},void 0,!1,void 0,this)},void 0,!1,void 0,this),xe("h3",{className:o(_s({size:i,variant:a})),children:s},void 0,!1,void 0,this),xe("p",{className:o(Ds({size:i})),children:l},void 0,!1,void 0,this),v&&xe("div",{className:o(Os()),children:v},void 0,!1,void 0,this),r&&xe("div",{className:o(Gs()),children:z},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}return e}}function of(){return xe("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:[xe("circle",{cx:"12",cy:"12",r:"10"},void 0,!1,void 0,this),xe("line",{x1:"12",x2:"12",y1:"8",y2:"12"},void 0,!1,void 0,this),xe("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 bt}from"class-variance-authority";import{forwardRef as nf,useCallback as Ge,useRef as sf,useState as $s}from"react";import{jsxDEV as ye}from"react/jsx-dev-runtime";var ee={sm:"sm",md:"md",lg:"lg",xl:"xl"},Us=bt(["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}}),Ks=bt("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}}),Ti=bt("text-center",{variants:{size:{[ee.sm]:"text-sm",[ee.md]:"text-sm",[ee.lg]:"text-base",[ee.xl]:"text-lg"}},defaultVariants:{size:ee.md}}),Ys=bt("mt-4 w-full space-y-2"),Xs=bt(["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"]),Zs=bt("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"}}),qs=bt("text-muted-foreground",{variants:{size:{[ee.sm]:"text-xs",[ee.md]:"text-sm",[ee.lg]:"text-sm",[ee.xl]:"text-base"}},defaultVariants:{size:"md"}}),Js=bt(["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"]),Qs=nf(({className:e,size:t="md",disabled:r=!1,accept:i,multiple:a=!1,maxSize:n,maxFiles:s,value:l=[],onChange:c,onError:d,icon:b,title:f="Drop files here or click to upload",description:h,showFileList:p=!0,...v},z)=>{let R=m(t),[w,S]=$s(!1),[y,M]=$s(!1),B=sf(null),C=Ge((L)=>{if(L===0)return"0 Bytes";let Y=1024,u=["Bytes","KB","MB","GB"],g=Math.floor(Math.log(L)/Math.log(Y));return`${parseFloat((L/Y**g).toFixed(2))} ${u[g]}`},[]),H=Ge((L)=>{let Y=[...L];if(M(!1),i){let u=i.split(",").map((g)=>g.trim());if(Y=Y.filter((g)=>{return u.some((N)=>{if(N.startsWith("."))return g.name.toLowerCase().endsWith(N.toLowerCase());if(N.endsWith("/*"))return g.type.startsWith(N.slice(0,-1));return g.type===N})}),Y.length<L.length)d?.("Some files were rejected due to file type"),M(!0)}if(n){let u=Y.length;if(Y=Y.filter((g)=>g.size<=n),Y.length<u)d?.(`File size must be less than ${C(n)}`),M(!0)}if(s&&Y.length+l.length>s)Y=Y.slice(0,s-l.length),d?.(`Maximum ${s} files allowed`),M(!0);return Y},[i,n,s,l.length,d,C]),A=Ge((L)=>{if(!L||L.length===0)return;let Y=Array.from(L),u=H(Y);if(u.length>0)if(a)c?.([...l,...u]);else c?.(u.slice(0,1))},[a,l,c,H]),G=Ge((L)=>{L.preventDefault(),L.stopPropagation(),S(!0)},[]),q=Ge((L)=>{L.preventDefault(),L.stopPropagation(),S(!1)},[]),D=Ge((L)=>{L.preventDefault(),L.stopPropagation()},[]),O=Ge((L)=>{if(L.preventDefault(),L.stopPropagation(),S(!1),r)return;A(L.dataTransfer.files)},[r,A]),P=Ge((L)=>{if(A(L.target.files),B.current)B.current.value=""},[A]),k=Ge(()=>{if(!r)B.current?.click()},[r]),T=Ge((L)=>{if(L.key==="Enter"||L.key===" ")L.preventDefault(),k()},[k]),U=Ge((L)=>{let Y=l.filter((u,g)=>g!==L);c?.(Y)},[l,c]),Q=ye("svg",{className:o(Ks({size:R,isDragging:w})),fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1.5,children:ye("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 ye("div",{ref:z,className:o("w-full",e),...v,children:[ye("div",{role:"button",tabIndex:r?-1:0,onClick:k,onKeyDown:T,onDragEnter:G,onDragLeave:q,onDragOver:D,onDrop:O,className:o(Us({size:R,isDragging:w,disabled:r,hasError:y})),children:[ye("input",{ref:B,type:"file",accept:i,multiple:a,disabled:r,onChange:P,className:"sr-only"},void 0,!1,void 0,this),b||Q,ye("p",{className:o(Ti({size:R}),"font-medium text-foreground"),children:f},void 0,!1,void 0,this),h&&ye("p",{className:o(Ti({size:R}),"mt-1 text-muted-foreground"),children:h},void 0,!1,void 0,this)]},void 0,!0,void 0,this),p&&l.length>0&&ye("div",{className:o(Ys()),children:l.map((L,Y)=>ye("div",{className:o(Xs()),children:[ye("svg",{className:"size-5 shrink-0 text-muted-foreground",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1.5,children:ye("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),ye("span",{className:o(Zs({size:R})),children:L.name},void 0,!1,void 0,this),ye("span",{className:o(qs({size:R})),children:C(L.size)},void 0,!1,void 0,this),ye("button",{type:"button",onClick:(u)=>{u.stopPropagation(),U(Y)},className:o(Js()),"aria-label":`Remove ${L.name}`,children:ye("svg",{className:"size-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:ye("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},`${L.name}-${Y}`,!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});Qs.displayName="FileUpload";import{cva as lf}from"class-variance-authority";import{createContext as mf,forwardRef as vo,useContext as df,useId as pf}from"react";import{jsxDEV as It,Fragment as uf}from"react/jsx-dev-runtime";var Ae={sm:"sm",md:"md",lg:"lg"},Es=mf(null),Ir=()=>{let e=df(Es);if(!e)throw Error("useFormField must be used within a FormField");return e},js=lf("flex flex-col",{variants:{size:{[Ae.sm]:"gap-1",[Ae.md]:"gap-1.5",[Ae.lg]:"gap-2"}},defaultVariants:{size:Ae.md}}),el=vo(({className:e,size:t=Ae.md,error:r,disabled:i=!1,required:a=!1,children:n,...s},l)=>{let c=pf(),d=m(t),b={id:c,size:d,error:r,disabled:i,required:a};return It(Es.Provider,{value:b,children:It("div",{ref:l,className:o(js({size:d}),e),...s,children:n},void 0,!1,void 0,this)},void 0,!1,void 0,this)});el.displayName="FormField";var cf={[Ae.sm]:"text-xs",[Ae.md]:"text-sm",[Ae.lg]:"text-base"},tl=vo(({className:e,htmlFor:t,children:r,...i},a)=>{let{id:n,size:s,disabled:l,required:c}=Ir();return It("label",{ref:a,htmlFor:t??n,className:o("inline-block font-medium text-foreground select-none",cf[s],l&&"cursor-not-allowed opacity-60",e),...i,children:[r,c&&It("span",{className:"ml-0.5 text-destructive","aria-hidden":"true",children:"*"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});tl.displayName="FormFieldLabel";var rl={[Ae.sm]:"text-[10px]",[Ae.md]:"text-xs",[Ae.lg]:"text-sm"},ol=vo(({className:e,...t},r)=>{let{id:i,size:a}=Ir();return It("p",{ref:r,id:`${i}-description`,className:o("text-muted-foreground",rl[a],e),...t},void 0,!1,void 0,this)});ol.displayName="FormFieldDescription";var il=vo(({className:e,children:t,...r},i)=>{let{id:a,size:n,error:s}=Ir(),l=t??s;if(!l)return null;return It("p",{ref:i,id:`${a}-error`,role:"alert",className:o("text-destructive",rl[n],e),...r,children:l},void 0,!1,void 0,this)});il.displayName="FormFieldError";var al=({children:e})=>{let{id:t,disabled:r,required:i,error:a}=Ir(),n=[a?`${t}-error`:void 0,`${t}-description`].filter(Boolean).join(" ");return It(uf,{children:e({id:t,disabled:r,required:i,status:a?"error":"default","aria-describedby":n||void 0,"aria-invalid":a?!0:void 0})},void 0,!1,void 0,this)};al.displayName="FormFieldControl";import*as Bt from"@radix-ui/react-hover-card";import{cva as ff}from"class-variance-authority";import{forwardRef as gf}from"react";import{jsxDEV as yf}from"react/jsx-dev-runtime";var lr={sm:"sm",md:"md",lg:"lg"},nl=ff("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:{[lr.sm]:"w-52 p-3 text-xs",[lr.md]:"w-64 p-4 text-sm",[lr.lg]:"w-80 p-5 text-sm"}},defaultVariants:{size:lr.md}}),bf=Bt.Root,vf=Bt.Trigger,sl=gf(({className:e,align:t="center",sideOffset:r=4,size:i=lr.md,...a},n)=>{let s=m(i);return yf(Bt.Content,{ref:n,align:t,sideOffset:r,className:o(nl({size:s}),e),...a},void 0,!1,void 0,this)});sl.displayName=Bt.Content.displayName;import{cva as Tf}from"class-variance-authority";import{X as xf}from"lucide-react";import{forwardRef as zf,useRef as Sf,useState as Cf}from"react";import*as vt from"react";function ll(...e){return(t)=>{for(let r of e)if(typeof r==="function")r(t);else if(r!=null)r.current=t}}function Br(...e){return vt.useCallback(ll(...e),e)}function Pf(e,t){let r=vt.createContext(t);r.displayName=e;function i(){let a=vt.useContext(r);if(a===void 0)throw Error(`use${e} must be used within a ${e}Provider`);return a}return[r.Provider,i,r]}function hf(e){let t=vt.createContext(void 0);t.displayName=e;function r(){return vt.useContext(t)}return[t.Provider,r,t]}import{jsxDEV as Vt}from"react/jsx-dev-runtime";var Vr={default:"default",error:"error",success:"success"},Z={sm:"sm",md:"md",lg:"lg",xl:"xl"},wf="Clear input",dl=Tf("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:{[Vr.default]:"focus-visible:ring-primary",[Vr.error]:"border-destructive focus-visible:ring-destructive",[Vr.success]:"border-success focus-visible:ring-success"},size:{[Z.sm]:"h-8 px-2 text-xs",[Z.md]:"h-10 px-3",[Z.lg]:"h-11 px-4",[Z.xl]:"h-12 px-4 text-base"}},defaultVariants:{status:Vr.default,size:Z.md}}),Mf={[Z.sm]:"pl-7",[Z.md]:"pl-9",[Z.lg]:"pl-10",[Z.xl]:"pl-10"},Nf={[Z.sm]:"pr-7",[Z.md]:"pr-9",[Z.lg]:"pr-10",[Z.xl]:"pr-10"},Lf={[Z.sm]:"pr-12",[Z.md]:"pr-16",[Z.lg]:"pr-18",[Z.xl]:"pr-18"},Rf={[Z.sm]:"text-xs left-2",[Z.md]:"text-sm left-3",[Z.lg]:"text-sm left-3.5",[Z.xl]:"text-base left-3.5"},Hf={[Z.sm]:"text-xs",[Z.md]:"text-sm",[Z.lg]:"text-sm",[Z.xl]:"text-base"},Af={[Z.sm]:"size-4",[Z.md]:"size-5",[Z.lg]:"size-5",[Z.xl]:"size-6"};function ml(e){if(e===void 0||e===null)return"";if(Array.isArray(e))return e.join("");return String(e)}var pl=zf(({className:e,status:t=Vr.default,size:r=Z.md,fullWidth:i=!1,prefix:a,suffix:n,clearable:s=!1,clearAriaLabel:l=wf,onClear:c,onValueChange:d,disabled:b,readOnly:f,onChange:h,value:p,defaultValue:v,...z},R)=>{let w=Boolean(a),S=Boolean(n),y=m(r),M=Sf(null),B=Br(R,M),[C,H]=Cf(()=>ml(v)),A=p!==void 0,G=A?ml(p):C,q=s&&!b&&!f&&G.length>0,D=S||q,O=S&&q,P=(T)=>{let U=T.target.value;if(!A)H(U);d?.(U),h?.(T)},k=()=>{if(!A)H("");d?.("");let T=M.current;if(T)T.value="",T.dispatchEvent(new Event("input",{bubbles:!0})),T.focus();c?.()};return Vt("div",{className:o("relative flex items-center",i&&"w-full"),children:[w&&Vt("span",{className:o("absolute inset-y-0 flex items-center text-muted-foreground",Rf[y]),children:a},void 0,!1,void 0,this),Vt("input",{ref:B,className:o(dl({status:t,size:y}),w&&Mf[y],O&&Lf[y],!O&&D&&Nf[y],e),disabled:b,readOnly:f,onChange:P,value:G,...z},void 0,!1,void 0,this),D&&Vt("span",{className:o("absolute inset-y-0 right-2 flex items-center gap-1 text-muted-foreground",Hf[y]),children:[S&&Vt("span",{className:"inline-flex items-center",children:n},void 0,!1,void 0,this),q&&Vt("button",{type:"button","aria-label":l,onMouseDown:(T)=>T.preventDefault(),onClick:k,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",Af[y]),children:Vt(xf,{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)});pl.displayName="Input";import{cva as kf}from"class-variance-authority";import{forwardRef as If}from"react";var mr=null;function cl(){if(mr)return mr;if(typeof navigator>"u")return mr={os:"linux",isMac:!1,isWindows:!1,isLinux:!0,isMobile:!1},mr;let e=navigator.userAgentData?.platform??navigator.platform??"",t=navigator.userAgent??"",r=/mac/i.test(e),i=/win/i.test(e),a=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(t)||"maxTouchPoints"in navigator&&navigator.maxTouchPoints>1&&r,n=/linux/i.test(e)&&!a;return mr={os:r?"mac":i?"windows":"linux",isMac:r,isWindows:i,isLinux:n,isMobile:a},mr}function xi(){return cl()}import{jsxDEV as Ff}from"react/jsx-dev-runtime";var dr={sm:"sm",md:"md",lg:"lg"},ul=kf("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:{[dr.sm]:"min-w-5 h-5 px-1 text-[10px]",[dr.md]:"min-w-6 h-6 px-1.5 text-xs",[dr.lg]:"min-w-7 h-7 px-2 text-sm"}},defaultVariants:{size:dr.md}}),Bf={ctrl:"⌘",control:"⌘",alt:"⌥",option:"⌥",shift:"⇧",meta:"⌘",cmd:"⌘",command:"⌘",mod:"⌘",enter:"⏎",return:"⏎",backspace:"⌫",delete:"⌦",tab:"⇥",escape:"Esc",esc:"Esc",space:"␣",up:"↑",down:"↓",left:"←",right:"→",arrowup:"↑",arrowdown:"↓",arrowleft:"←",arrowright:"→"},Vf={mod:"Ctrl",cmd:"Ctrl",command:"Ctrl",meta:"Win",enter:"Enter",return:"Enter",backspace:"Backspace",delete:"Del",tab:"Tab",escape:"Esc",esc:"Esc",space:"Space",up:"↑",down:"↓",left:"←",right:"→",arrowup:"↑",arrowdown:"↓",arrowleft:"←",arrowright:"→"};function fl(e,t){let r=t?Bf:Vf,i=e.split("+").map((a)=>{let n=a.trim().toLowerCase();return r[n]??a.trim()});if(t)return i.join("");return i.join("+")}var gl=If(({className:e,size:t=dr.md,keys:r,children:i,...a},n)=>{let s=m(t),{isMac:l}=xi(),c=r?fl(r,l):i;return Ff("kbd",{ref:n,className:o(ul({size:s}),e),...a,children:c},void 0,!1,void 0,this)});gl.displayName="Kbd";import{cva as _f}from"class-variance-authority";import{forwardRef as Df}from"react";import{jsxDEV as bl}from"react/jsx-dev-runtime";var pr={sm:"sm",md:"md",lg:"lg"},vl=_f("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}}),yl=Df(({className:e,size:t=pr.md,required:r=!1,disabled:i=!1,children:a,...n},s)=>{let l=m(t);return bl("label",{ref:s,className:o(vl({size:l}),i&&"cursor-not-allowed opacity-60",e),"aria-disabled":i||void 0,...n,children:[a,r&&bl("span",{className:"ml-0.5 text-destructive","aria-hidden":"true",children:"*"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});yl.displayName="Label";import*as yt from"@radix-ui/react-popover";import{cva as Yf}from"class-variance-authority";import{Check as Xf,ChevronDown as Zf,X as qf,X as Jf}from"lucide-react";import{forwardRef as Qf,useCallback as Fr,useEffect as Ef,useRef as jf,useState as Tl}from"react";import*as ke from"@radix-ui/react-popover";import{cva as Of}from"class-variance-authority";import{forwardRef as Gf}from"react";import{jsxDEV as Pl}from"react/jsx-dev-runtime";var cr={sm:"sm",md:"md",lg:"lg"},ur=Of("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:{[cr.sm]:"w-56 p-3 text-sm",[cr.md]:"w-72 p-4 text-sm",[cr.lg]:"w-96 p-5 text-sm"}},defaultVariants:{size:cr.md}}),Wf=ke.Root,$f=ke.Trigger,Uf=ke.Anchor,Kf=ke.Close,hl=Gf(({className:e,align:t="center",sideOffset:r=4,portal:i=!0,portalContainer:a,size:n=cr.md,...s},l)=>{let c=m(n),d=Pl(ke.Content,{ref:l,align:t,sideOffset:r,className:o(ur({size:c}),e),...s},void 0,!1,void 0,this);if(i)return Pl(ke.Portal,{container:a??void 0,children:d},void 0,!1,void 0,this);return d});hl.displayName="PopoverContent";import{jsxDEV as re,Fragment as rg}from"react/jsx-dev-runtime";var me={sm:"sm",md:"md",lg:"lg",xl:"xl"},xl=Yf(["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:{[me.sm]:"min-h-8 px-2.5 py-1 text-xs",[me.md]:"min-h-10 px-3.5 py-1.5",[me.lg]:"min-h-11 px-4.5 py-2 text-sm",[me.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:me.md,status:"default"}}),eg={[me.sm]:"h-5 px-1.5 text-[10px]",[me.md]:"h-6 px-2 text-xs",[me.lg]:"h-6.5 px-2.5 text-xs",[me.xl]:"h-7 px-2.5 text-sm"},tg={[me.sm]:"min-h-7 py-1 px-2 text-xs",[me.md]:"min-h-9 py-2 px-3 text-sm",[me.lg]:"min-h-10 py-2.5 px-3.5 text-sm",[me.xl]:"min-h-11 py-3 px-4 text-base"},yo={[me.sm]:"size-3.5",[me.md]:"size-4",[me.lg]:"size-4",[me.xl]:"size-4.5"},zl=Qf(({className:e,options:t,value:r,defaultValue:i=[],onValueChange:a,placeholder:n="Select options...",size:s=me.md,status:l="default",clearable:c=!1,maxDisplayItems:d=3,disabled:b,...f},h)=>{let p=m(s)??s,[v,z]=Tl(!1),[R,w]=Tl(i),S=jf(null),y=r!==void 0,M=y?r:R,B=Fr((P)=>{let k=M.includes(P)?M.filter((T)=>T!==P):[...M,P];if(!y)w(k);a?.(k)},[M,y,a]),C=Fr((P,k)=>{k.stopPropagation();let T=M.filter((U)=>U!==P);if(!y)w(T);a?.(T)},[M,y,a]),H=Fr((P)=>{if(P.stopPropagation(),P.preventDefault(),!y)w([]);a?.([])},[y,a]),A=t.filter((P)=>M.includes(P.value)),G=A.length>0,q=c&&G&&!b,D=Fr((P)=>{let k=S.current;if(!k)return;let T=Array.from(k.querySelectorAll('[role="option"]:not([data-disabled])'));if(T.length===0)return;let U=k.querySelector('[role="option"]:focus'),Q=U?T.indexOf(U):-1,L;switch(P){case"first":L=T[0];break;case"last":L=T[T.length-1];break;case"next":L=T[Q+1]??T[0];break;case"prev":L=T[Q-1]??T[T.length-1];break}L?.focus()},[]),O=Fr((P)=>{switch(P.key){case"ArrowDown":P.preventDefault(),D("next");break;case"ArrowUp":P.preventDefault(),D("prev");break;case"Home":P.preventDefault(),D("first");break;case"End":P.preventDefault(),D("last");break;case"Escape":P.preventDefault(),z(!1);break}},[D]);return Ef(()=>{if(v)requestAnimationFrame(()=>D("first"))},[v,D]),re(yt.Root,{open:v,onOpenChange:z,children:[re(yt.Trigger,{asChild:!0,children:re("button",{ref:h,type:"button",disabled:b,"data-state":v?"open":"closed","data-placeholder":!G?"":void 0,className:o(xl({size:p,status:l}),e),...f,children:[re("span",{className:"flex min-w-0 flex-1 flex-wrap items-center gap-1 text-left",children:G?re(rg,{children:[A.slice(0,d).map((P)=>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",eg[p]),children:[re("span",{className:"truncate",children:P.label},void 0,!1,void 0,this),re("span",{"data-slot":"multiselect-remove","aria-label":`Remove ${P.label}`,onMouseDown:(k)=>k.preventDefault(),onClick:(k)=>C(P.value,k),className:"ml-0.5 inline-flex shrink-0 items-center justify-center rounded-full opacity-60 hover:opacity-100",children:re(Jf,{className:"h-3 w-3"},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},P.value,!0,void 0,this)),A.length>d&&re("span",{className:"text-muted-foreground text-xs",children:["+",A.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:[q&&re("span",{role:"button",tabIndex:-1,"aria-label":"Clear all",onMouseDown:(P)=>P.preventDefault(),onClick:H,className:"gs-interactive inline-flex items-center justify-center rounded-[calc(var(--radius)-4px)] text-muted-foreground hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",children:re(qf,{className:yo[p]},void 0,!1,void 0,this)},void 0,!1,void 0,this),re(Zf,{className:o(yo[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(yt.Portal,{children:re(yt.Content,{ref:S,role:"listbox","aria-multiselectable":"true",align:"start",sideOffset:4,onKeyDown:O,onOpenAutoFocus:(P)=>P.preventDefault(),className:o(ur(),"max-h-96 w-[var(--radix-popover-trigger-width)] overflow-y-auto overflow-x-hidden p-1"),children:[t.map((P)=>{let k=M.includes(P.value);return re("div",{role:"option",tabIndex:P.disabled?void 0:-1,"aria-selected":k,"aria-disabled":P.disabled||void 0,"data-disabled":P.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",tg[p]),onClick:()=>!P.disabled&&B(P.value),onKeyDown:(T)=>{if(T.key==="Enter"||T.key===" "){if(T.preventDefault(),!P.disabled)B(P.value)}},children:[re("span",{className:o("flex shrink-0 items-center justify-center",yo[p]),children:k&&re(Xf,{className:yo[p]},void 0,!1,void 0,this)},void 0,!1,void 0,this),re("span",{className:"min-w-0 flex-1 truncate",children:P.label},void 0,!1,void 0,this)]},P.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)});zl.displayName="Multiselect";import*as oe from"@radix-ui/react-navigation-menu";import{cva as Ft}from"class-variance-authority";import{createContext as og,forwardRef as fr,useContext as ig}from"react";import{jsxDEV as Me}from"react/jsx-dev-runtime";var We={sm:"sm",md:"md",lg:"lg"},Sl=og(We.md),Cl=Ft("relative z-10 flex max-w-max flex-1 items-center justify-center"),wl=Ft("group flex flex-1 list-none items-center justify-center space-x-1"),Ml=Ft(["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:{[We.sm]:"h-8 px-3 py-1.5 text-xs",[We.md]:"h-10 px-4 py-2 text-sm",[We.lg]:"h-12 px-5 py-2.5 text-sm"}},defaultVariants:{size:We.md}}),Nl=Ft(["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"]),ag=Ft(["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:{[We.sm]:"p-2 text-xs",[We.md]:"p-3 text-sm",[We.lg]:"p-4 text-sm"}},defaultVariants:{size:We.md}}),Ll=Ft(["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)]"]),Rl=Ft(["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"]),ng=()=>Me("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:Me("path",{d:"m6 9 6 6 6-6"},void 0,!1,void 0,this)},void 0,!1,void 0,this),Hl=fr(({className:e,children:t,size:r,...i},a)=>{let n=m(r??We.md);return Me(Sl.Provider,{value:n,children:Me(oe.Root,{ref:a,className:o(Cl(),e),...i,children:[t,Me(zi,{},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)});Hl.displayName=oe.Root.displayName;var Al=fr(({className:e,...t},r)=>Me(oe.List,{ref:r,className:o(wl(),e),...t},void 0,!1,void 0,this));Al.displayName=oe.List.displayName;var sg=oe.Item,kl=fr(({className:e,children:t,...r},i)=>{let a=ig(Sl);return Me(oe.Trigger,{ref:i,className:o(Ml({size:a}),"group",e),...r,children:[t,Me(ng,{},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});kl.displayName=oe.Trigger.displayName;var Il=fr(({className:e,...t},r)=>Me(oe.Content,{ref:r,className:o(Nl(),e),...t},void 0,!1,void 0,this));Il.displayName=oe.Content.displayName;var lg=oe.Link,zi=fr(({className:e,...t},r)=>Me("div",{className:"absolute top-full left-0 flex justify-center",children:Me(oe.Viewport,{className:o(Ll(),e),ref:r,...t},void 0,!1,void 0,this)},void 0,!1,void 0,this));zi.displayName=oe.Viewport.displayName;var Bl=fr(({className:e,...t},r)=>Me(oe.Indicator,{ref:r,className:o(Rl(),e),...t,children:Me("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));Bl.displayName=oe.Indicator.displayName;import{cva as gr}from"class-variance-authority";import{Fragment as mg,forwardRef as dg,useCallback as _t,useEffect as Vl,useMemo as Fl,useRef as pg,useState as _l}from"react";import{jsxDEV as Dt}from"react/jsx-dev-runtime";var Ot={sm:"sm",md:"md",lg:"lg",xl:"xl"},Dr={default:"default",error:"error",success:"success"},_r={single:"single",first:"first",middle:"middle",last:"last"},Dl=gr("relative inline-flex items-center",{variants:{size:{sm:"gap-1",md:"gap-1.5",lg:"gap-2",xl:"gap-2.5"}},defaultVariants:{size:Ot.md}}),Ol=gr("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:Ot.md,status:Dr.default}}),Gl=gr(["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:Ot.md,filled:!1,focused:!1,status:Dr.default,disabled:!1,position:_r.single}}),Wl=gr(["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:Ot.md,status:Dr.default,filled:!1}}),$l=gr(["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:Ot.md,focused:!1}}),Ul=gr("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:Ot.md}});function cg(e){if(!Number.isFinite(e))return 6;return Math.max(1,Math.floor(e))}function Si(e,t){let r=(e??"").split("").slice(0,t);if(r.length<t)return r.concat(Array(t-r.length).fill(""));return r}var Kl=dg(({className:e,length:t=6,value:r,onChange:i,onComplete:a,size:n=Ot.md,status:s=Dr.default,disabled:l=!1,autoFocus:c=!1,mask:d=!1,groupSize:b,separator:f,separatorChar:h="—",placeholder:p="•",inputMode:v="numeric",pattern:z="[0-9]*",...R},w)=>{let S=m(n),y=cg(t),M=pg([]),[B,C]=_l(null),[H,A]=_l(()=>Si(r,y));Vl(()=>{if(r!==void 0){A(Si(r,y));return}A((u)=>Si(u.join(""),y))},[r,y]),Vl(()=>{if(c)M.current[0]?.focus()},[c]);let G=Fl(()=>{if(typeof b==="number"&&Number.isFinite(b)){let u=Math.floor(b);if(u<=0)return y;return Math.min(y,Math.max(1,u))}if(typeof f==="number"&&Number.isFinite(f)){let u=Math.floor(f);if(u<=0)return y;return Math.min(y,Math.max(1,u))}if(f)return Math.max(1,Math.floor(y/2));return y},[b,y,f]),q=Fl(()=>{let u=[];for(let g=0;g<y;g+=G){let N=Math.min(g+G,y),pe=[];for(let x=g;x<N;x+=1)pe.push(x);u.push(pe)}return u},[G,y]),D=_t((u)=>{let g=M.current[u];if(!g)return;g.focus(),g.select()},[]),O=_t((u)=>{A(u);let g=u.join("");if(i?.(g),u.every((N)=>N!=="")&&g.length===y)a?.(g)},[i,a,y]),P=_t((u,g)=>{if(l)return;let pe=(v==="numeric"?g.replace(/\D/g,""):g).slice(-1),x=[...H];if(x[u]=pe,O(x),pe&&u<y-1)D(u+1)},[H,l,O,D,v,y]),k=_t((u,g)=>{if(l)return;if(g.key==="Backspace"){if(g.preventDefault(),H[u]){let N=[...H];N[u]="",O(N);return}if(u>0){let N=[...H];N[u-1]="",O(N),D(u-1)}return}if(g.key==="Delete"){if(g.preventDefault(),H[u]){let N=[...H];N[u]="",O(N)}return}if(g.key==="ArrowLeft"){if(g.preventDefault(),u>0)D(u-1);return}if(g.key==="ArrowRight"){if(g.preventDefault(),u<y-1)D(u+1);return}if(g.key==="Home"){g.preventDefault(),D(0);return}if(g.key==="End")g.preventDefault(),D(y-1)},[H,l,O,D,y]),T=_t((u,g)=>{if(g.preventDefault(),l)return;let N=g.clipboardData.getData("text"),x=(v==="numeric"?N.replace(/\D/g,""):N.replace(/\s/g,"")).split("");if(x.length===0)return;let X=[...H];for(let J=0;J<x.length;J+=1){let Xe=u+J;if(Xe>=y)break;X[Xe]=x[J]??""}O(X);let I=Math.min(y-1,u+x.length-1);if(I<y-1){D(I+1);return}M.current[I]?.blur()},[H,l,O,D,v,y]),U=_t((u,g)=>{C(u),g.target.select()},[]),Q=_t(()=>{C(null)},[]),L=f!==void 0,Y=h.length>0&&f!==!1&&(L||q.length>1);return Dt("div",{ref:w,className:o(Dl({size:S}),e),role:"group","aria-label":"One-time password input",...R,children:q.map((u,g)=>Dt(mg,{children:[Dt("div",{"data-gs-otp-group":"true",className:o(Ol({size:S,status:s})),children:u.map((N,pe)=>{let x=H[N]??"",X=B===N,I=_r.middle;if(u.length===1)I=_r.single;else if(pe===0)I=_r.first;else if(pe===u.length-1)I=_r.last;return Dt("div",{"data-gs-otp-slot":"true","data-disabled":l,className:o(Gl({size:S,filled:Boolean(x),focused:X,status:s,disabled:l,position:I})),children:[Dt("input",{ref:(J)=>{M.current[N]=J},type:d?"password":"text",inputMode:v,pattern:z,maxLength:1,value:x,placeholder:"",disabled:l,"aria-invalid":s===Dr.error,"aria-label":`Digit ${N+1} of ${y}`,autoComplete:"one-time-code",onChange:(J)=>P(N,J.target.value),onKeyDown:(J)=>k(N,J),onPaste:(J)=>T(N,J),onFocus:(J)=>U(N,J),onBlur:Q,className:o(Wl({size:S,status:s,filled:Boolean(x)}))},void 0,!1,void 0,this),!x&&Dt("div",{"data-gs-otp-placeholder":"true","aria-hidden":"true",className:o($l({size:S,focused:X})),children:p},void 0,!1,void 0,this)]},`slot-${N}`,!0,void 0,this)})},void 0,!1,void 0,this),Y&&g<q.length-1&&Dt("span",{"data-gs-otp-separator":"true",className:o(Ul({size:S})),children:h},void 0,!1,void 0,this)]},`group-${u[0]}-${u[u.length-1]}`,!0,void 0,this))},void 0,!1,void 0,this)});Kl.displayName="OTPInput";import{createContext as yg,useCallback as br,useContext as Pg,useMemo as hg,useState as Tg}from"react";import*as ae from"@radix-ui/react-dialog";import{cva as Yl}from"class-variance-authority";import{X as ug}from"lucide-react";import{forwardRef as Po}from"react";import{jsxDEV as $e}from"react/jsx-dev-runtime";var Ne={top:"top",right:"right",bottom:"bottom",left:"left"},te={sm:"sm",md:"md",lg:"lg",xl:"xl",full:"full"},fg={[Ne.top]:"gs-sheet-content gs-sheet-content-top",[Ne.right]:"gs-sheet-content gs-sheet-content-right",[Ne.bottom]:"gs-sheet-content gs-sheet-content-bottom",[Ne.left]:"gs-sheet-content gs-sheet-content-left"},gg={[Ne.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"},[Ne.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"},[Ne.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"},[Ne.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"}},Xl=Yl("gs-sheet-overlay fixed inset-0 z-50 bg-black/50"),Zl=Yl("fixed z-50 flex flex-col gap-4 border border-border bg-background p-6 shadow-[var(--shadow-xl)]",{variants:{side:{[Ne.top]:"inset-x-0 top-0 border-b",[Ne.bottom]:"inset-x-0 bottom-0 border-t",[Ne.left]:"inset-y-0 left-0 h-full w-3/4 border-r",[Ne.right]:"inset-y-0 right-0 h-full w-3/4 border-l"}},defaultVariants:{side:Ne.right}}),Ci=ae.Root,bg=ae.Trigger,vg=ae.Close,ql=ae.Portal,wi=Po(({className:e,...t},r)=>$e(ae.Overlay,{className:o(Xl(),e),...t,ref:r},void 0,!1,void 0,this));wi.displayName=ae.Overlay.displayName;var ho=Po(({side:e="right",size:t=te.md,showClose:r=!0,className:i,children:a,...n},s)=>{let l=m(t)??te.md,c=fg[e],d=gg[e][l];return $e(ql,{children:[$e(wi,{},void 0,!1,void 0,this),$e(ae.Content,{ref:s,className:o(Zl({side:e}),c,d,i),...n,children:[a,r&&$e(ae.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:[$e(ug,{className:"size-4"},void 0,!1,void 0,this),$e("span",{className:"sr-only",children:"Close"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)});ho.displayName=ae.Content.displayName;var Jl=({className:e,...t})=>$e("div",{className:o("flex flex-col space-y-2 text-center sm:text-left",e),...t},void 0,!1,void 0,this);Jl.displayName="SheetHeader";var Ql=({className:e,...t})=>$e("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);Ql.displayName="SheetFooter";var El=Po(({className:e,...t},r)=>$e(ae.Title,{ref:r,className:o("font-semibold text-foreground text-lg",e),...t},void 0,!1,void 0,this));El.displayName=ae.Title.displayName;var jl=Po(({className:e,...t},r)=>$e(ae.Description,{ref:r,className:o("text-muted-foreground text-sm",e),...t},void 0,!1,void 0,this));jl.displayName=ae.Description.displayName;import{jsxDEV as it}from"react/jsx-dev-runtime";var Mi=0;function xg(){return Mi=(Mi+1)%Number.MAX_SAFE_INTEGER,`overlay-${Mi}-${Date.now()}`}var tm=yg(null),em=400;function rm({children:e}){let[t,r]=Tg([]),i=br((d)=>{r((b)=>b.map((f)=>f.id===d?{...f,open:!1}:f)),setTimeout(()=>{r((b)=>b.filter((f)=>f.id!==d))},em)},[]),a=br(()=>{r((d)=>d.map((b)=>({...b,open:!1}))),setTimeout(()=>{r([])},em)},[]),n=br((d,b,f,h={})=>{let p=xg(),v=(w)=>{return it(b,{...f,close:w.close},void 0,!1,void 0,this)};v.displayName=`OverlayWrapper(${b.displayName??b.name??"Component"})`;let z={id:p,type:d,component:v,wrapperProps:h,open:!0};return r((w)=>[...w,z]),{id:p,close:()=>i(p)}},[i]),s=br((d,b,f)=>{return n("dialog",d,b,f)},[n]),l=br((d,b,f)=>{return n("sheet",d,b,f)},[n]),c=hg(()=>({dialog:s,sheet:l,close:i,closeAll:a}),[s,l,i,a]);return it(tm.Provider,{value:c,children:[e,t.map((d)=>it(zg,{entry:d,onClose:i},d.id,!1,void 0,this))]},void 0,!0,void 0,this)}rm.displayName="OverlayProvider";function zg({entry:e,onClose:t}){let{id:r,type:i,component:a,wrapperProps:n,open:s}=e,l=br(()=>t(r),[r,t]);if(i==="dialog"){let{showClose:c,size:d,...b}=n;return it(gi,{open:s,onOpenChange:(f)=>!f&&l(),children:it(go,{showClose:c,size:d,...b,children:it(a,{close:l},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}if(i==="sheet"){let{side:c,showClose:d,...b}=n;return it(Ci,{open:s,onOpenChange:(f)=>!f&&l(),children:it(ho,{side:c,showClose:d,...b,children:it(a,{close:l},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}return null}function Sg(){let e=Pg(tm);if(!e)throw Error("useOverlay must be used within an OverlayProvider");return e}import{cva as Or}from"class-variance-authority";import{ChevronLeft as Cg,ChevronRight as wg,MoreHorizontal as Mg}from"lucide-react";import{createContext as Ng,forwardRef as Gr,useContext as To}from"react";import{jsxDEV as Ce}from"react/jsx-dev-runtime";var Ie={sm:"sm",md:"md",lg:"lg"},Wr=Ng(Ie.md),om=Or("mx-auto flex w-full justify-center"),im=Or("flex flex-row items-center gap-1"),am=Or(""),xo=Or("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:{[Ie.sm]:"h-7 w-7 text-xs [&_svg]:size-3.5",[Ie.md]:"h-9 w-9 text-sm [&_svg]:size-4",[Ie.lg]:"h-10 w-10 text-sm [&_svg]:size-5"}},defaultVariants:{isActive:!1,size:Ie.md}}),nm=Or("flex items-center justify-center",{variants:{size:{[Ie.sm]:"h-7 w-7 [&_svg]:size-3.5",[Ie.md]:"h-9 w-9 [&_svg]:size-4",[Ie.lg]:"h-10 w-10 [&_svg]:size-5"}},defaultVariants:{size:Ie.md}}),sm=({className:e,size:t=Ie.md,...r})=>{let i=m(t)??Ie.md;return Ce(Wr.Provider,{value:i,children:Ce("nav",{"aria-label":"pagination",className:o(om(),e),...r},void 0,!1,void 0,this)},void 0,!1,void 0,this)};sm.displayName="Pagination";var lm=Gr(({className:e,...t},r)=>Ce("ul",{ref:r,className:o(im(),e),...t},void 0,!1,void 0,this));lm.displayName="PaginationContent";var mm=Gr(({className:e,...t},r)=>Ce("li",{ref:r,className:o(am(),e),...t},void 0,!1,void 0,this));mm.displayName="PaginationItem";var dm=Gr(({className:e,isActive:t,...r},i)=>{let a=To(Wr);return Ce("button",{ref:i,type:"button","aria-current":t?"page":void 0,className:o(xo({isActive:t,size:a}),e),...r},void 0,!1,void 0,this)});dm.displayName="PaginationLink";var pm=Gr(({className:e,...t},r)=>{let i=To(Wr);return Ce("button",{ref:r,type:"button","aria-label":"Go to previous page",className:o(xo({size:i}),"gap-1 pl-2.5 pr-3 w-auto",e),...t,children:[Ce(Cg,{},void 0,!1,void 0,this),Ce("span",{children:"Previous"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});pm.displayName="PaginationPrevious";var cm=Gr(({className:e,...t},r)=>{let i=To(Wr);return Ce("button",{ref:r,type:"button","aria-label":"Go to next page",className:o(xo({size:i}),"gap-1 pl-3 pr-2.5 w-auto",e),...t,children:[Ce("span",{children:"Next"},void 0,!1,void 0,this),Ce(wg,{},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});cm.displayName="PaginationNext";var um=({className:e,...t})=>{let r=To(Wr);return Ce("span",{"aria-hidden":!0,className:o(nm({size:r}),e),...t,children:[Ce(Mg,{},void 0,!1,void 0,this),Ce("span",{className:"sr-only",children:"More pages"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)};um.displayName="PaginationEllipsis";import*as Kr from"@radix-ui/react-progress";import{cva as fm}from"class-variance-authority";import{forwardRef as Lg}from"react";import{jsxDEV as zo}from"react/jsx-dev-runtime";var $r={sm:"sm",md:"md",lg:"lg",xl:"xl"},Ur={default:"default",success:"success",warning:"warning",error:"error"},gm=fm("relative w-full overflow-hidden rounded-full bg-muted",{variants:{size:{[$r.sm]:"h-1",[$r.md]:"h-2.5",[$r.lg]:"h-4",[$r.xl]:"h-5"}},defaultVariants:{size:$r.md}}),bm=fm("h-full w-full flex-1 rounded-full transition-transform duration-100 ease-out",{variants:{variant:{[Ur.default]:"bg-primary",[Ur.success]:"bg-success",[Ur.warning]:"bg-warning",[Ur.error]:"bg-destructive"}},defaultVariants:{variant:Ur.default}}),vm=Lg(({className:e,value:t,size:r,variant:i,showValue:a,...n},s)=>{let l=m(r);return zo("div",{className:"flex w-full items-center gap-2",children:[zo(Kr.Root,{ref:s,className:o(gm({size:l}),e),...n,children:zo(Kr.Indicator,{className:o(bm({variant:i})),style:{transform:`translateX(-${100-(t||0)}%)`}},void 0,!1,void 0,this)},void 0,!1,void 0,this),a&&zo("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)});vm.displayName=Kr.Root.displayName;import*as yr from"@radix-ui/react-radio-group";import{cva as ym}from"class-variance-authority";import{forwardRef as Pm}from"react";import{jsxDEV as So}from"react/jsx-dev-runtime";var Ue={sm:"sm",md:"md",lg:"lg",xl:"xl"},vr={default:"default",error:"error",success:"success"},hm=ym("grid gap-2"),Tm=ym("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:{[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:{[vr.default]:"enabled:hover:border-primary/70",[vr.error]:"border-destructive enabled:hover:border-destructive/70 focus-visible:ring-destructive data-[state=checked]:border-destructive data-[state=checked]:text-destructive",[vr.success]:"border-success enabled:hover:border-success/70 focus-visible:ring-success data-[state=checked]:border-success data-[state=checked]:text-success"}},defaultVariants:{size:Ue.md,status:vr.default}}),Rg={[Ue.sm]:"h-2 w-2",[Ue.md]:"h-2.5 w-2.5",[Ue.lg]:"h-3 w-3",[Ue.xl]:"h-3.5 w-3.5"},xm=Pm(({className:e,...t},r)=>So(yr.Root,{ref:r,className:o(hm(),e),...t},void 0,!1,void 0,this));xm.displayName="RadioGroup";var zm=Pm(({className:e,size:t=Ue.md,status:r=vr.default,...i},a)=>{let n=m(t);return So(yr.Item,{ref:a,className:o(Tm({size:n,status:r}),e),...i,children:So(yr.Indicator,{className:"flex items-center justify-center",children:So("span",{className:o("block rounded-full bg-current transition-transform duration-150",Rg[n])},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)});zm.displayName="RadioGroupItem";import{cva as Mo}from"class-variance-authority";import{forwardRef as Ni,useCallback as Co,useRef as Hg,useState as Ag}from"react";import{jsxDEV as wo}from"react/jsx-dev-runtime";var Sm=Mo("flex h-full w-full",{variants:{direction:{horizontal:"flex-row",vertical:"flex-col"}},defaultVariants:{direction:"horizontal"}}),Cm=Mo("relative overflow-hidden"),wm=Mo("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}}),Mm=Mo("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"}}),Nm=Ni(({className:e,direction:t="horizontal",children:r,...i},a)=>wo("div",{ref:a,"data-panel-group":"","data-direction":t,className:o(Sm({direction:t}),e),...i,children:r},void 0,!1,void 0,this));Nm.displayName="ResizablePanelGroup";var Lm=Ni(({className:e,defaultSize:t=50,children:r,style:i,...a},n)=>wo("div",{ref:n,"data-panel":"",className:o(Cm(),e),style:{...i,flexGrow:0,flexShrink:0,flexBasis:`${t}%`},...a,children:r},void 0,!1,void 0,this));Lm.displayName="ResizablePanel";var Rm=Ni(({className:e,withHandle:t=!1,disabled:r=!1,...i},a)=>{let[n,s]=Ag(!1),l=Hg(null),c=Co((p,v)=>{if(r)return;s(!0);let z=(w)=>{let S="touches"in w?w.touches[0]:null,y=S?S.clientX:w.clientX,M=S?S.clientY:w.clientY,B=l.current;if(!B)return;let C=B.closest("[data-panel-group]");if(!C)return;let H=C.dataset.direction,A=C.getBoundingClientRect(),G=Array.from(C.querySelectorAll(":scope > [data-panel]")),q=Array.from(C.children).indexOf(B),D,O;for(let P of G){let k=Array.from(C.children).indexOf(P);if(k<q)D=P;if(k>q&&!O)O=P}if(D&&O){let P=H==="horizontal"?A.width:A.height,T=(H==="horizontal"?y-A.left:M-A.top)/P*100,U=Math.max(10,Math.min(90,T)),Q=100-U;D.style.flexBasis=`${U}%`,O.style.flexBasis=`${Q}%`}},R=()=>{s(!1),document.removeEventListener("mousemove",z),document.removeEventListener("mouseup",R),document.removeEventListener("touchmove",z),document.removeEventListener("touchend",R)};document.addEventListener("mousemove",z),document.addEventListener("mouseup",R),document.addEventListener("touchmove",z),document.addEventListener("touchend",R)},[r]),d=Co((p)=>{p.preventDefault(),c(p.clientX,p.clientY)},[c]),b=Co((p)=>{let v=p.touches[0];if(v)c(v.clientX,v.clientY)},[c]),f=Co((p)=>{if(r)return;let v=l.current??p.currentTarget,z=v.closest("[data-panel-group]");if(!z)return;let R=z.dataset.direction,w=p.shiftKey?10:1,S=Array.from(z.querySelectorAll(":scope > [data-panel]")),y=Array.from(z.children).indexOf(v),M,B;for(let A of S){let G=Array.from(z.children).indexOf(A);if(G<y)M=A;if(G>y&&!B)B=A}if(!(M&&B))return;let C=Number.parseFloat(M.style.flexBasis)||50,H=0;if(R==="horizontal"){if(p.key==="ArrowLeft")H=-w;if(p.key==="ArrowRight")H=w}else{if(p.key==="ArrowUp")H=-w;if(p.key==="ArrowDown")H=w}if(H!==0){p.preventDefault();let A=Math.max(10,Math.min(90,C+H));M.style.flexBasis=`${A}%`,B.style.flexBasis=`${100-A}%`}},[r]),h="horizontal";return wo("div",{ref:(p)=>{if(l.current=p,typeof a==="function")a(p);else if(a)a.current=p},role:"separator","aria-orientation":"horizontal",tabIndex:r?-1:0,"data-panel-resize-handle":"","data-dragging":n,onMouseDown:d,onTouchStart:b,onKeyDown:f,className:o(wm({direction:"horizontal",withHandle:t}),n&&"bg-primary",r&&"pointer-events-none opacity-50",e),...i,children:t&&wo("div",{className:o(Mm({direction:"horizontal"}))},void 0,!1,void 0,this)},void 0,!1,void 0,this)});Rm.displayName="ResizableHandle";import*as Je from"@radix-ui/react-scroll-area";import{cva as Li}from"class-variance-authority";import{forwardRef as Hm}from"react";import{jsxDEV as Pr}from"react/jsx-dev-runtime";var Am=Li("relative overflow-hidden"),kg={display:"flex",flexDirection:"column"},Ig={flex:"1 1 0%",minHeight:0},km=Li("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"}}),Im=Li("relative flex-1 rounded-full bg-border"),Bm=Hm(({className:e,children:t,style:r,...i},a)=>Pr(Je.Root,{ref:a,className:o(Am(),e),style:{...r,...kg},...i,children:[Pr(Je.Viewport,{className:"w-full rounded-[inherit]",style:Ig,children:t},void 0,!1,void 0,this),Pr(Ri,{},void 0,!1,void 0,this),Pr(Je.Corner,{},void 0,!1,void 0,this)]},void 0,!0,void 0,this));Bm.displayName="ScrollArea";var Ri=Hm(({className:e,orientation:t="vertical",...r},i)=>Pr(Je.ScrollAreaScrollbar,{ref:i,orientation:t,className:o(km({orientation:t}),e),...r,children:Pr(Je.ScrollAreaThumb,{className:o(Im())},void 0,!1,void 0,this)},void 0,!1,void 0,this));Ri.displayName="ScrollBar";import*as Pt from"@radix-ui/react-popover";import{cva as Fm}from"class-variance-authority";import{Check as Bg,ChevronDown as Vg,X as Fg}from"lucide-react";import{Children as _g,createContext as Dg,forwardRef as Zr,isValidElement as Og,useCallback as No,useContext as _m,useEffect as Lo,useId as Vm,useMemo as Gg,useRef as Dm,useState as Yr}from"react";import{jsxDEV as ie,Fragment as Zg}from"react/jsx-dev-runtime";var j={sm:"sm",md:"md",lg:"lg",xl:"xl"},hr={default:"default",error:"error",success:"success"},Xr={trigger:"trigger",auto:"auto"},Wg={start:"start",center:"center",end:"end"},Om=Fm(["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:{[j.sm]:"h-8 px-2.5 text-xs",[j.md]:"h-10 px-3.5",[j.lg]:"h-11 px-4.5 text-sm",[j.xl]:"h-12 px-4 text-base"},status:{[hr.default]:"focus-visible:ring-primary data-[state=open]:ring-primary",[hr.error]:"border-destructive focus-visible:ring-destructive data-[state=open]:ring-destructive",[hr.success]:"border-success focus-visible:ring-success data-[state=open]:ring-success"}},defaultVariants:{size:j.md,status:hr.default}}),Gm=Fm(["max-h-96 overflow-y-auto overflow-x-hidden"].join(" "),{variants:{widthMode:{[Xr.trigger]:"w-[var(--radix-popover-trigger-width)]",[Xr.auto]:"w-max min-w-0"},size:{[j.sm]:"text-xs",[j.md]:"text-sm",[j.lg]:"text-sm",[j.xl]:"text-base"}},defaultVariants:{widthMode:Xr.auto,size:j.md}}),$g={[j.sm]:"min-h-7 py-1 px-2 pr-3 text-xs",[j.md]:"min-h-9 py-2 px-3 pr-4.5 text-sm",[j.lg]:"min-h-10 py-2.5 px-3.5 pr-5.5 text-sm",[j.xl]:"min-h-11 py-3 px-4 pr-6 text-base"},Ug={[j.sm]:"px-2 py-1 text-xs",[j.md]:"px-2 py-1.5 text-sm",[j.lg]:"px-2.5 py-1.5 text-sm",[j.xl]:"px-3 py-2 text-base"},Ro={[j.sm]:"size-3.5",[j.md]:"size-4",[j.lg]:"size-4",[j.xl]:"size-4.5"};function Hi(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)=>Hi(t)).join("");if(Og(e))return Hi(e.props.children);return""}var Ai=Dg(null);function Ho(){let e=_m(Ai);if(!e)throw Error("Select components must be used within Select");return e}function ki(e){let t=_m(Ai);if(e)return e;return t?.triggerSize??j.md}var Kg=({children:e,value:t,defaultValue:r="",onValueChange:i,open:a,defaultOpen:n=!1,onOpenChange:s,disabled:l=!1})=>{let[c,d]=Yr(j.md),[b,f]=Yr(!1),[h,p]=Yr(r),[v,z]=Yr(n),[R,w]=Yr(0),S=Dm(new Map),y=t!==void 0,M=a!==void 0,B=y?t:h,C=M?a:v,H=No((k)=>{if(!y)p(k);if(i?.(k),!M)z(!1);s?.(!1)},[y,M,i,s]),A=No((k)=>{if(l)return;if(!M)z(k);s?.(k)},[l,M,s]),G=No((k,T)=>{if(S.current.get(k)!==T)S.current.set(k,T),w((Q)=>Q+1)},[]),q=No((k)=>{return S.current.get(k)},[]),D=Vm(),O=Vm(),P=Gg(()=>({value:B,onValueChange:H,open:C,onOpenChange:A,triggerSize:c,setTriggerSize:d,triggerFullWidth:b,setTriggerFullWidth:f,disabled:l,triggerId:D,contentId:O,registerItem:G,getLabel:q}),[B,H,C,A,c,b,l,D,O,G,q,R]);return ie(Ai.Provider,{value:P,children:ie(Pt.Root,{open:C,onOpenChange:A,children:e},void 0,!1,void 0,this)},void 0,!1,void 0,this)},Yg=({children:e,className:t})=>ie("div",{role:"group",className:t,children:e},void 0,!1,void 0,this),Xg=({placeholder:e})=>{let{value:t,getLabel:r}=Ho();if(!t)return e?ie("span",{className:"text-muted-foreground",children:e},void 0,!1,void 0,this):null;let i=r(t);return ie(Zg,{children:i??t},void 0,!1,void 0,this)},Wm=Zr(({className:e,children:t,size:r=j.md,status:i=hr.default,fullWidth:a=!1,clearable:n=!1,leadingIcon:s,indicatorIcon:l,renderValue:c,placeholder:d,onKeyDown:b,...f},h)=>{let p=Ho(),v=m(r)??r,z=p.setTriggerSize,R=p.setTriggerFullWidth;Lo(()=>{z(v)},[v,z]),Lo(()=>{R(a)},[a,R]);let w=p.value.length>0,S=n&&w&&!p.disabled,y=(C)=>{C.stopPropagation(),C.preventDefault(),p.onValueChange("")},M;if(c)M=w?c(p.value):d?ie("span",{className:"text-muted-foreground",children:d},void 0,!1,void 0,this):null;else M=t;let B=(C)=>{if(b?.(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 ie(Pt.Trigger,{asChild:!0,children:ie("button",{ref:h,type:"button",role:"combobox","aria-expanded":p.open,"aria-haspopup":"listbox","aria-controls":p.contentId,id:p.triggerId,disabled:p.disabled,"data-state":p.open?"open":"closed","data-placeholder":w?void 0:"",className:o(Om({size:v,status:i}),a?"w-full":"w-auto",e),onKeyDown:B,...f,children:[s&&ie("i",{className:"inline-flex shrink-0 items-center text-muted-foreground not-italic",children:s},void 0,!1,void 0,this),ie("span",{"data-slot":"select-value",className:"min-w-0 flex-1 text-left",children:M},void 0,!1,void 0,this),ie("span",{className:"inline-flex shrink-0 items-center gap-1 text-muted-foreground",children:[S&&ie("span",{role:"button",tabIndex:-1,"aria-label":"Clear selection",onMouseDown:(C)=>C.preventDefault(),onClick:y,className:"gs-interactive inline-flex items-center justify-center rounded-[calc(var(--radius)-4px)] text-muted-foreground hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",children:ie(Fg,{className:Ro[v]},void 0,!1,void 0,this)},void 0,!1,void 0,this),l??ie(Vg,{className:o(Ro[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)});Wm.displayName="SelectTrigger";var $m=Zr(({className:e,children:t,widthMode:r,size:i,align:a="start",side:n="bottom",sideOffset:s=4,portal:l=!0,forceMount:c=!0,onKeyDown:d,...b},f)=>{let h=Ho(),p=ki(i),v=r??Xr.auto,z=Dm(null),R=Br(f,z),w=(M)=>{let B=z.current;if(!B)return;let C=Array.from(B.querySelectorAll('[role="option"]:not([data-disabled])'));if(C.length===0)return;let H=B.querySelector('[role="option"]:focus'),A=H?C.indexOf(H):-1,G;switch(M){case"first":G=C[0];break;case"last":G=C[C.length-1];break;case"next":G=C[A+1]??C[0];break;case"prev":G=C[A-1]??C[C.length-1];break}G?.focus()},S=(M)=>{if(d?.(M),M.defaultPrevented)return;switch(M.key){case"ArrowDown":M.preventDefault(),w("next");break;case"ArrowUp":M.preventDefault(),w("prev");break;case"Home":M.preventDefault(),w("first");break;case"End":M.preventDefault(),w("last");break;case"Escape":M.preventDefault(),h.onOpenChange(!1);break}};Lo(()=>{if(h.open)requestAnimationFrame(()=>w("first"))},[h.open]);let y=ie(Pt.Content,{ref:R,id:h.contentId,role:"listbox","aria-labelledby":h.triggerId,side:n,align:a,sideOffset:s,forceMount:c,onKeyDown:S,onOpenAutoFocus:(M)=>M.preventDefault(),className:o(ur(),Gm({widthMode:v,size:p}),"p-1",e),...b,children:t},void 0,!1,void 0,this);if(l)return ie(Pt.Portal,{children:y},void 0,!1,void 0,this);return y});$m.displayName="SelectContent";var Um=Zr(({className:e,size:t,...r},i)=>{let a=ki(t);return ie("div",{ref:i,className:o("font-semibold text-foreground",Ug[a],e),...r},void 0,!1,void 0,this)});Um.displayName="SelectLabel";var Km=Zr(({className:e,children:t,value:r,label:i,size:a,disabled:n=!1,...s},l)=>{let c=Ho(),d=ki(a),b=c.value===r,f=c.registerItem,h=Hi(_g.toArray(t)).trim();Lo(()=>{let z=i??(h.length>0?h:r);f(r,z)},[h,r,i,f]);let p=()=>{if(!n)c.onValueChange(r)},v=(z)=>{if(z.key==="Enter"||z.key===" ")z.preventDefault(),p()};return ie("div",{ref:l,role:"option",tabIndex:n?void 0:-1,"aria-selected":b,"aria-disabled":n||void 0,"data-selected":b?"":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",$g[d],b&&"bg-accent/50",e),onClick:p,onKeyDown:v,...s,children:[ie("span",{className:o("flex shrink-0 items-center justify-center",Ro[d]),children:b&&ie(Bg,{className:Ro[d]},void 0,!1,void 0,this)},void 0,!1,void 0,this),ie("span",{className:"min-w-0 flex-1 truncate",children:t},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});Km.displayName="SelectItem";var Ym=Zr(({className:e,...t},r)=>ie("div",{ref:r,className:o("-mx-1 my-1 h-px bg-border",e),...t},void 0,!1,void 0,this));Ym.displayName="SelectSeparator";import{cva as qg}from"class-variance-authority";import{forwardRef as Jg}from"react";import{jsxDEV as Qg}from"react/jsx-dev-runtime";var qr={horizontal:"horizontal",vertical:"vertical"},Xm=qg("shrink-0 bg-border",{variants:{orientation:{[qr.horizontal]:"h-px w-full",[qr.vertical]:"h-full w-px"}},defaultVariants:{orientation:qr.horizontal}}),Zm=Jg(({className:e,orientation:t=qr.horizontal,decorative:r=!0,...i},a)=>{let n=r?{role:"none"}:{role:"separator","aria-orientation":t};return Qg("div",{ref:a,className:o(Xm({orientation:t}),e),...n,...i},void 0,!1,void 0,this)});Zm.displayName="Separator";import{cva as Ao}from"class-variance-authority";import{forwardRef as ko}from"react";import{jsxDEV as Io}from"react/jsx-dev-runtime";var de={sm:"sm",md:"md",lg:"lg"},qm=Ao("animate-pulse rounded-[var(--radius)] bg-muted"),Jm=Ao("w-full",{variants:{size:{[de.sm]:"h-3",[de.md]:"h-4",[de.lg]:"h-5"}},defaultVariants:{size:de.md}}),Qm=Ao("",{variants:{size:{[de.sm]:"h-8 w-8",[de.md]:"h-10 w-10",[de.lg]:"h-12 w-12"}},defaultVariants:{size:de.md}}),Em=Ao("",{variants:{size:{[de.sm]:"h-8 w-20",[de.md]:"h-9 w-24",[de.lg]:"h-10 w-28"}},defaultVariants:{size:de.md}}),Jr=ko(({className:e,circle:t=!1,...r},i)=>Io("div",{ref:i,className:o(qm(),t&&"rounded-full",e),...r},void 0,!1,void 0,this));Jr.displayName="Skeleton";var jm=ko(({className:e,size:t=de.md,...r},i)=>{let a=m(t)??de.md;return Io(Jr,{ref:i,className:o(Jm({size:a}),e),...r},void 0,!1,void 0,this)});jm.displayName="SkeletonText";var ed=ko(({className:e,size:t=de.md,...r},i)=>{let a=m(t)??de.md;return Io(Jr,{ref:i,circle:!0,className:o(Qm({size:a}),e),...r},void 0,!1,void 0,this)});ed.displayName="SkeletonAvatar";var td=ko(({className:e,size:t=de.md,...r},i)=>{let a=m(t)??de.md;return Io(Jr,{ref:i,className:o(Em({size:a}),e),...r},void 0,!1,void 0,this)});td.displayName="SkeletonButton";import*as ht from"@radix-ui/react-slider";import{cva as Fo}from"class-variance-authority";import{forwardRef as Eg}from"react";import{jsxDEV as Vo}from"react/jsx-dev-runtime";var Bo={sm:"sm",md:"md",lg:"lg"},rd=Fo("relative flex w-full touch-none select-none items-center",{variants:{size:{[Bo.sm]:"[&_[data-slider-track]]:h-0.5 [&_[data-slider-thumb]]:h-3 [&_[data-slider-thumb]]:w-3",[Bo.md]:"[&_[data-slider-track]]:h-2 [&_[data-slider-thumb]]:h-5 [&_[data-slider-thumb]]:w-5",[Bo.lg]:"[&_[data-slider-track]]:h-3 [&_[data-slider-thumb]]:h-6 [&_[data-slider-thumb]]:w-6"}},defaultVariants:{size:Bo.md}}),od=Fo("relative w-full grow overflow-hidden rounded-full bg-secondary"),id=Fo("absolute h-full bg-primary"),ad=Fo("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"),nd=Eg(({className:e,size:t,...r},i)=>{let a=m(t);return Vo(ht.Root,{ref:i,className:o(rd({size:a}),e),...r,children:[Vo(ht.Track,{"data-slider-track":!0,className:o(od()),children:Vo(ht.Range,{className:o(id())},void 0,!1,void 0,this)},void 0,!1,void 0,this),(r.defaultValue??r.value??[0]).map((n,s)=>Vo(ht.Thumb,{"data-slider-thumb":!0,className:o(ad())},`thumb-${String(s)}`,!1,void 0,this))]},void 0,!0,void 0,this)});nd.displayName="Slider";import{cva as be}from"class-variance-authority";import{forwardRef as jg,useCallback as Qr,useEffect as Ii,useMemo as Bi,useRef as sd,useState as _o}from"react";import{createPortal as eb}from"react-dom";import{jsxDEV as E}from"react/jsx-dev-runtime";var Gt={sm:"sm",md:"md",lg:"lg",xl:"xl"},Tr={idle:"idle",loading:"loading",error:"error"},ld=be("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"}}),md=be(["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:{[Gt.sm]:"max-w-md",[Gt.md]:"max-w-xl",[Gt.lg]:"max-w-2xl",[Gt.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:Gt.md,state:"open"}}),dd=be("flex items-center gap-3 border-b border-border px-4 py-3"),pd=be(["w-full flex-1 bg-transparent text-foreground text-base","placeholder:text-muted-foreground","outline-none border-none"]),cd=be("size-4 text-muted-foreground shrink-0"),Do=be(["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"]),ud=be("overflow-y-auto max-h-80 py-1"),fd=be("px-3 py-2 text-xs font-semibold text-muted-foreground uppercase tracking-wide"),gd=be(["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}}),bd=be("size-4 shrink-0",{variants:{selected:{true:"text-primary",false:"text-muted-foreground"}},defaultVariants:{selected:!1}}),vd=be("flex-1 min-w-0"),yd=be("text-sm font-medium truncate"),Pd=be("text-xs text-muted-foreground truncate"),hd=be("flex items-center gap-1 text-[11px] text-muted-foreground shrink-0"),Oo=be("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"}}),Go=be("text-sm font-medium"),Td=be("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((i)=>i.toLowerCase().includes(r)))return!0;return!1},xd=jg(({className:e,open:t,onOpenChange:r,actions:i,onActionSelect:a,value:n,defaultValue:s="",onValueChange:l,placeholder:c="Search commands, pages, or actions...",size:d=Gt.md,status:b=Tr.idle,statusMessage:f,emptyText:h="No command found for this query.",hotkey:p,portal:v=!0,...z},R)=>{let w=sd(null),S=sd(null),[y,M]=_o(s),[B,C]=_o(0),[H,A]=_o(!1),[G,q]=_o(!1),D=n!==void 0?n:y,O=Bi(()=>i.filter((x)=>tb(x,D)),[i,D]),P=Bi(()=>O.map((x,X)=>!x.disabled?X:-1).filter((x)=>x>=0),[O]),k=Bi(()=>{let x=new Map,X=new Map,I=0;for(let J of O){let Xe=J.group??"";if(!x.has(Xe))x.set(Xe,[]);x.get(Xe).push(J),X.set(J,I),I++}return{groups:x,indexMap:X}},[O]);Ii(()=>{if(t){A(!0),q(!1),C(0);return}if(H)q(!0)},[t]);let T=Qr(()=>{if(G)A(!1),q(!1)},[G]);Ii(()=>{if(t)document.body.style.overflow="hidden";else document.body.style.overflow="";return()=>{document.body.style.overflow=""}},[t]),Ii(()=>{if(t&&H)requestAnimationFrame(()=>w.current?.focus())},[t,H]);let U=Qr((x)=>{let X=x.target.value;M(X),l?.(X),C(0)},[l]),Q=Qr((x)=>{let X=S.current;if(!X)return;X.querySelectorAll('[role="option"]')[x]?.scrollIntoView({block:"nearest"})},[]),L=Qr((x)=>{if(x.key==="Escape"){x.preventDefault(),r(!1);return}if(x.key==="ArrowDown"){if(x.preventDefault(),P.length===0)return;let I=(P.indexOf(B)+1)%P.length,J=P[I];C(J),Q(J);return}if(x.key==="ArrowUp"){if(x.preventDefault(),P.length===0)return;let I=(P.indexOf(B)-1+P.length)%P.length,J=P[I];C(J),Q(J);return}if(x.key==="Enter"){x.preventDefault();let X=O[B];if(X&&!X.disabled)a(X,B)}},[B,P,O,a,r,Q]),Y=Qr((x,X)=>{if(x.disabled)return;a(x,X)},[a]);if(!H)return null;let u=G?"closing":"open",g=b===Tr.idle,N=b!==Tr.idle,pe=E("div",{ref:R,role:"dialog","aria-modal":"true",onKeyDown:L,className:o(e),...z,children:[E("div",{"data-testid":"spotlight-overlay",className:o(ld({state:u})),onClick:()=>r(!1),onKeyDown:(x)=>{if(x.key==="Escape")r(!1)}},void 0,!1,void 0,this),E("div",{className:o(md({size:d,state:u})),onAnimationEnd:T,children:[E("div",{className:o(dd()),children:[E("svg",{className:o(cd()),fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:E("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),E("input",{ref:w,type:"text",value:D,onChange:U,placeholder:c,className:o(pd())},void 0,!1,void 0,this),p?E("div",{className:"flex items-center gap-1",children:p.map((x)=>E("kbd",{className:o(Do()),children:x},x,!1,void 0,this))},void 0,!1,void 0,this):E("kbd",{className:o(Do()),children:"ESC"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),N&&b===Tr.loading&&E("div",{className:o(Oo({state:"loading"})),children:E("div",{className:o(Go()),children:"Searching commands..."},void 0,!1,void 0,this)},void 0,!1,void 0,this),N&&b===Tr.error&&E("div",{className:o(Oo({state:"error"})),children:[E("div",{className:o(Go()),children:"Search failed"},void 0,!1,void 0,this),f&&E("div",{className:o(Td()),children:f},void 0,!1,void 0,this)]},void 0,!0,void 0,this),g&&O.length===0&&E("div",{className:o(Oo({state:"empty"})),children:E("div",{className:o(Go()),children:h},void 0,!1,void 0,this)},void 0,!1,void 0,this),g&&O.length>0&&E("div",{ref:S,className:o(ud()),children:Array.from(k.groups.entries()).map(([x,X])=>E("div",{children:[x&&E("div",{className:o(fd()),children:x},void 0,!1,void 0,this),X.map((I)=>{let J=k.indexMap.get(I)??0,Xe=J===B;return E("div",{role:"option","aria-selected":Xe,"aria-disabled":I.disabled??!1,onClick:()=>Y(I,J),className:o(gd({selected:Xe,disabled:I.disabled??!1})),children:[I.icon&&E("span",{className:o(bd({selected:Xe})),children:I.icon},void 0,!1,void 0,this),E("div",{className:o(vd()),children:[E("div",{className:o(yd()),children:I.title},void 0,!1,void 0,this),I.description&&E("div",{className:o(Pd()),children:I.description},void 0,!1,void 0,this)]},void 0,!0,void 0,this),I.shortcut&&I.shortcut.length>0&&E("div",{className:o(hd()),children:I.shortcut.map((Qi)=>E("kbd",{className:o(Do()),children:Qi},Qi,!1,void 0,this))},void 0,!1,void 0,this)]},I.id,!0,void 0,this)})]},x||"__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 eb(pe,document.body);return pe});xd.displayName="Spotlight";import{cva as rb}from"class-variance-authority";import{forwardRef as ob}from"react";import{jsxDEV as Tt}from"react/jsx-dev-runtime";var Be={sm:"sm",md:"md",lg:"lg"},Wt={up:"up",down:"down",neutral:"neutral"},zd=rb("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:{[Be.sm]:"gap-1 p-3",[Be.md]:"gap-1.5 p-4",[Be.lg]:"gap-2 p-5"}},defaultVariants:{size:Be.md}}),ib={[Be.sm]:"text-lg font-semibold",[Be.md]:"text-2xl font-bold",[Be.lg]:"text-3xl font-bold"},ab={[Be.sm]:"text-xs",[Be.md]:"text-sm",[Be.lg]:"text-base"},nb={[Wt.up]:"text-success",[Wt.down]:"text-destructive",[Wt.neutral]:"text-muted-foreground"},sb={[Wt.up]:"↑",[Wt.down]:"↓",[Wt.neutral]:"→"},Sd=ob(({className:e,size:t=Be.md,label:r,value:i,trend:a,trendValue:n,icon:s,...l},c)=>{let d=m(t);return Tt("div",{ref:c,className:o(zd({size:d}),e),...l,children:[Tt("div",{className:"flex items-center justify-between",children:[Tt("span",{className:o("text-muted-foreground",ab[d]),children:r},void 0,!1,void 0,this),s&&Tt("span",{className:"text-muted-foreground/70","aria-hidden":"true",children:s},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Tt("div",{className:"flex items-baseline gap-2",children:[Tt("span",{className:o("tracking-tight text-foreground",ib[d]),children:i},void 0,!1,void 0,this),a&&n&&Tt("span",{className:o("inline-flex items-center gap-0.5 text-xs font-medium",nb[a]),children:[Tt("span",{"aria-hidden":"true",children:sb[a]},void 0,!1,void 0,this),n]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)});Sd.displayName="StatCard";import{cva as $t}from"class-variance-authority";import{Check as lb}from"lucide-react";import{forwardRef as Ut}from"react";import{jsxDEV as xt}from"react/jsx-dev-runtime";var Cd=$t("flex w-full",{variants:{orientation:{horizontal:"flex-row items-start",vertical:"flex-col"}},defaultVariants:{orientation:"horizontal"}}),wd=$t("flex",{variants:{orientation:{horizontal:"flex-1 flex-col items-center",vertical:"gap-4 flex-row"}},defaultVariants:{orientation:"horizontal"}}),Md=$t(["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}}),Nd=$t("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}}),Ld=$t("flex flex-col",{variants:{orientation:{horizontal:"mt-3 items-center text-center",vertical:"flex-1 pb-8 last:pb-0"}},defaultVariants:{orientation:"horizontal"}}),Rd=$t("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"}}),Hd=$t("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 Ad=Ut(({className:e,orientation:t="horizontal",activeStep:r,...i},a)=>{return xt("div",{ref:a,role:"group","aria-label":"Progress steps",className:o(Cd({orientation:t}),e),"data-orientation":t,"data-active-step":r,...i},void 0,!1,void 0,this)});Ad.displayName="Stepper";var kd=Ut(({className:e,orientation:t="horizontal",isLast:r,isCurrent:i,...a},n)=>{return xt("div",{ref:n,className:o(wd({orientation:t}),e),"data-last":r,"aria-current":i?"step":void 0,...a},void 0,!1,void 0,this)});kd.displayName="Step";var Id=Ut(({className:e,status:t="incomplete",size:r="md",icon:i,step:a,children:n,animated:s=!0,...l},c)=>{let d=m(r);return xt("div",{ref:c,className:o(Md({status:t,size:d,animated:s}),e),"data-status":t,"aria-hidden":"true",...l,children:t==="complete"?i||xt(lb,{className:"size-4",strokeWidth:3},void 0,!1,void 0,this):n||a},void 0,!1,void 0,this)});Id.displayName="StepIndicator";var Bd=Ut(({className:e,orientation:t="horizontal",status:r="incomplete",size:i="md",animated:a=!0,...n},s)=>{let l=m(i);return xt("div",{ref:s,className:o(Nd({orientation:t,status:r,size:l,animated:a}),e),"data-status":r,...n},void 0,!1,void 0,this)});Bd.displayName="StepConnector";var Vd=Ut(({className:e,orientation:t="horizontal",...r},i)=>{return xt("div",{ref:i,className:o(Ld({orientation:t}),e),...r},void 0,!1,void 0,this)});Vd.displayName="StepContent";var Fd=Ut(({className:e,status:t="incomplete",size:r="md",...i},a)=>{let n=m(r);return xt("h4",{ref:a,className:o(Rd({status:t,size:n}),e),...i},void 0,!1,void 0,this)});Fd.displayName="StepTitle";var _d=Ut(({className:e,size:t="md",...r},i)=>{let a=m(t);return xt("p",{ref:i,className:o(Hd({size:a}),e),...r},void 0,!1,void 0,this)});_d.displayName="StepDescription";import*as Wo from"@radix-ui/react-switch";import{cva as mb}from"class-variance-authority";import{forwardRef as db}from"react";import{jsxDEV as Dd}from"react/jsx-dev-runtime";var ze={sm:"sm",md:"md",lg:"lg",xl:"xl"},xr={default:"default",error:"error",success:"success"},Od=mb("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:{[ze.sm]:"h-4.5 w-8",[ze.md]:"h-5 w-9",[ze.lg]:"h-6 w-11",[ze.xl]:"h-7 w-[3.25rem]"},status:{[xr.default]:"disabled:data-[state=checked]:bg-muted-foreground/40 enabled:data-[state=unchecked]:hover:bg-input/80 data-[state=checked]:bg-primary data-[state=checked]:hover:bg-primary/90",[xr.error]:"bg-destructive/30 disabled:bg-destructive/25 disabled:data-[state=checked]:bg-destructive/50 enabled:data-[state=unchecked]:hover:bg-destructive/45 focus-visible:ring-destructive data-[state=checked]:bg-destructive data-[state=checked]:hover:bg-destructive/90",[xr.success]:"disabled:bg-success/20 disabled:data-[state=checked]:bg-success/45 focus-visible:ring-success enabled:data-[state=unchecked]:hover:bg-input/80 data-[state=checked]:bg-success data-[state=checked]:hover:bg-success/90"}},defaultVariants:{size:ze.md,status:xr.default}}),pb={[ze.sm]:"h-3.5 w-3.5",[ze.md]:"h-4 w-4",[ze.lg]:"h-5 w-5",[ze.xl]:"h-6 w-6"},cb={[ze.sm]:"data-[state=checked]:translate-x-3.5",[ze.md]:"data-[state=checked]:translate-x-4",[ze.lg]:"data-[state=checked]:translate-x-5",[ze.xl]:"data-[state=checked]:translate-x-6"},Gd=db(({className:e,size:t=ze.md,status:r=xr.default,checked:i,disabled:a,...n},s)=>{let l=m(t);return Dd(Wo.Root,{ref:s,checked:i,disabled:a,className:o(Od({size:l,status:r}),e),...n,children:Dd(Wo.Thumb,{className:o("pointer-events-none block rounded-full bg-background shadow-sm transition-transform duration-150",pb[l],cb[l])},void 0,!1,void 0,this)},void 0,!1,void 0,this)});Gd.displayName="Switch";import{cva as at}from"class-variance-authority";import{createContext as ub,forwardRef as zt,useContext as Wd}from"react";import{jsxDEV as Qe}from"react/jsx-dev-runtime";var Pe={sm:"sm",md:"md",lg:"lg"},Vi=ub(Pe.md),$d=at("relative w-full overflow-auto rounded-[var(--radius)] border border-border bg-card shadow-[var(--shadow-sm)]"),Ud=at("w-full caption-bottom",{variants:{size:{[Pe.sm]:"text-xs",[Pe.md]:"text-sm",[Pe.lg]:"text-sm"}},defaultVariants:{size:Pe.md}}),Kd=at("sticky top-0 z-[1] [&_tr]:border-b [&_tr]:border-border [&_th]:bg-muted"),Yd=at("[&_tr:last-child]:border-0"),Xd=at("border-t border-border bg-muted font-medium text-muted-foreground [&>tr]:last:border-b-0"),Zd=at("gs-interactive border-b border-border hover:bg-muted/50 data-[state=selected]:bg-primary/10"),qd=at("text-left align-middle font-semibold text-muted-foreground [&:has([role=checkbox])]:pr-0",{variants:{size:{[Pe.sm]:"h-8 px-2",[Pe.md]:"h-10 px-3",[Pe.lg]:"h-12 px-4"}},defaultVariants:{size:Pe.md}}),Jd=at("align-middle text-foreground [&:has([role=checkbox])]:pr-0",{variants:{size:{[Pe.sm]:"p-2",[Pe.md]:"p-3",[Pe.lg]:"p-4"}},defaultVariants:{size:Pe.md}}),Qd=at("mt-4 text-sm text-muted-foreground"),Ed=zt(({className:e,containerClassName:t,size:r=Pe.md,...i},a)=>{let n=m(r)??Pe.md;return Qe(Vi.Provider,{value:n,children:Qe("div",{className:o($d(),t),children:Qe("table",{ref:a,className:o(Ud({size:n}),e),...i},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)});Ed.displayName="Table";var jd=zt(({className:e,...t},r)=>Qe("thead",{ref:r,className:o(Kd(),e),...t},void 0,!1,void 0,this));jd.displayName="TableHeader";var ep=zt(({className:e,...t},r)=>Qe("tbody",{ref:r,className:o(Yd(),e),...t},void 0,!1,void 0,this));ep.displayName="TableBody";var tp=zt(({className:e,...t},r)=>Qe("tfoot",{ref:r,className:o(Xd(),e),...t},void 0,!1,void 0,this));tp.displayName="TableFooter";var rp=zt(({className:e,...t},r)=>Qe("tr",{ref:r,className:o(Zd(),e),...t},void 0,!1,void 0,this));rp.displayName="TableRow";var op=zt(({className:e,size:t,...r},i)=>{let a=Wd(Vi);return Qe("th",{ref:i,className:o(qd({size:t??a}),e),...r},void 0,!1,void 0,this)});op.displayName="TableHead";var ip=zt(({className:e,size:t,...r},i)=>{let a=Wd(Vi);return Qe("td",{ref:i,className:o(Jd({size:t??a}),e),...r},void 0,!1,void 0,this)});ip.displayName="TableCell";var ap=zt(({className:e,...t},r)=>Qe("caption",{ref:r,className:o(Qd(),e),...t},void 0,!1,void 0,this));ap.displayName="TableCaption";import*as Ke from"@radix-ui/react-tabs";import{cva as Fi}from"class-variance-authority";import{createContext as fb,forwardRef as _i,useCallback as np,useContext as gb,useEffect as Di,useLayoutEffect as bb,useRef as $o,useState as vb}from"react";import{jsxDEV as Er}from"react/jsx-dev-runtime";var Ee={sm:"sm",md:"md",lg:"lg",xl:"xl"},sp=Fi("relative inline-flex items-center justify-center rounded-[var(--radius)] border border-border bg-muted/50 p-1 text-muted-foreground",{variants:{size:{[Ee.sm]:"h-9 gap-0.5",[Ee.md]:"h-11 gap-1",[Ee.lg]:"h-12 gap-1",[Ee.xl]:"h-14 gap-1.5"}},defaultVariants:{size:Ee.md}}),lp=Fi("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:{[Ee.sm]:"px-2.5 py-1 text-xs",[Ee.md]:"px-3 py-1.5 text-sm",[Ee.lg]:"px-4 py-2 text-sm",[Ee.xl]:"px-5 py-2.5 text-base"}},defaultVariants:{size:Ee.md}}),mp=Fi("mt-3 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2"),dp=fb({registerTrigger:()=>{}}),yb=typeof window<"u"?bb:Di,Pb=Ke.Root,pp=_i(({className:e,size:t,children:r,...i},a)=>{let n=m(t),s=$o(null),l=$o(new Map),[c,d]=vb(null),b=$o(!0),f=np((p,v)=>{if(v)l.current.set(p,v);else l.current.delete(p)},[]),h=np(()=>{let p=s.current;if(!p)return;let v=p.querySelector('[data-state="active"]');if(!v){d(null);return}let z=p.getBoundingClientRect(),R=v.getBoundingClientRect();d({left:R.left-z.left,width:R.width})},[]);return yb(()=>{h()},[h]),Di(()=>{let p=s.current;if(!p)return;let v=new MutationObserver(()=>{b.current=!1,h()});return v.observe(p,{attributes:!0,attributeFilter:["data-state"],subtree:!0}),()=>v.disconnect()},[h]),Er(dp.Provider,{value:{registerTrigger:f},children:Er(Ke.List,{ref:(p)=>{if(s.current=p,typeof a==="function")a(p);else if(a)a.current=p},className:o(sp({size:n}),e),...i,children:[c&&Er("span",{"aria-hidden":"true",className:o("absolute rounded-[calc(var(--radius)-2px)] bg-background shadow-sm",!b.current&&"transition-[left,width] duration-[var(--motion-duration-medium)] ease-[var(--motion-ease-emphasized)]"),style:{left:c.left,width:c.width,top:"4px",bottom:"4px"}},void 0,!1,void 0,this),r]},void 0,!0,void 0,this)},void 0,!1,void 0,this)});pp.displayName=Ke.List.displayName;var cp=_i(({className:e,size:t,value:r,...i},a)=>{let n=m(t),{registerTrigger:s}=gb(dp),l=$o(null);return Di(()=>{return s(r,l.current),()=>s(r,null)},[r,s]),Er(Ke.Trigger,{ref:(c)=>{if(l.current=c,typeof a==="function")a(c);else if(a)a.current=c},value:r,className:o(lp({size:n}),e),...i},void 0,!1,void 0,this)});cp.displayName=Ke.Trigger.displayName;var up=_i(({className:e,...t},r)=>Er(Ke.Content,{ref:r,className:o(mp(),e),...t},void 0,!1,void 0,this));up.displayName=Ke.Content.displayName;import{cva as hb}from"class-variance-authority";import{forwardRef as Tb}from"react";import{jsxDEV as xb}from"react/jsx-dev-runtime";var jr={default:"default",error:"error",success:"success"},zr={sm:"sm",md:"md",lg:"lg",xl:"xl"},fp=hb("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:{[jr.default]:"focus-visible:ring-primary",[jr.error]:"border-destructive focus-visible:ring-destructive",[jr.success]:"border-success focus-visible:ring-success"},size:{[zr.sm]:"min-h-[64px] px-2 py-1.5 text-xs",[zr.md]:"min-h-[96px] px-3 py-2",[zr.lg]:"min-h-[112px] px-4 py-2.5",[zr.xl]:"min-h-[128px] px-4 py-3 text-base"}},defaultVariants:{status:jr.default,size:zr.md}}),gp=Tb(({className:e,status:t=jr.default,size:r=zr.md,fullWidth:i=!1,noResize:a=!1,disabled:n,...s},l)=>{let c=m(r);return xb("textarea",{ref:l,className:o(fp({status:t,size:c}),n&&"bg-muted",i&&"w-full",a&&"resize-none",e),disabled:n,...s},void 0,!1,void 0,this)});gp.displayName="Textarea";import{cva as St}from"class-variance-authority";import{forwardRef as Ct}from"react";import{jsxDEV as je}from"react/jsx-dev-runtime";var bp=St("relative flex flex-col"),vp=St(["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}}),yp=St(["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}}),Pp=St(["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}}),hp=St("flex flex-col gap-1 pt-0.5 min-w-0 transition-opacity duration-200 ease-[cubic-bezier(0.22,1,0.36,1)]"),Tp=St("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"}}),xp=St("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"}}),zp=St("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 Sp=Ct(({className:e,...t},r)=>{return je("div",{ref:r,role:"list","aria-label":"Timeline events",className:o(bp(),e),...t},void 0,!1,void 0,this)});Sp.displayName="Timeline";var Cp=Ct(({className:e,align:t,isLast:r,animated:i=!0,...a},n)=>{return je("div",{ref:n,role:"listitem",className:o(vp({align:t,animated:i}),e),"data-last":r,...a},void 0,!1,void 0,this)});Cp.displayName="TimelineItem";var wp=Ct(({className:e,variant:t,size:r,animated:i=!0,...a},n)=>{let s=m(r);return je("div",{ref:n,className:o(yp({variant:t,size:s,animated:i}),e),...a},void 0,!1,void 0,this)});wp.displayName="TimelineConnector";var Mp=Ct(({className:e,variant:t,size:r,icon:i,children:a,pulse:n=!1,animated:s=!0,...l},c)=>{let d=m(r);return je("div",{ref:c,className:o(Pp({variant:t,size:d,pulse:n,animated:s}),e),"aria-hidden":"true",...l,children:i||a||je(zb,{},void 0,!1,void 0,this)},void 0,!1,void 0,this)});Mp.displayName="TimelineDot";var Np=Ct(({className:e,...t},r)=>{return je("div",{ref:r,className:o(hp(),e),...t},void 0,!1,void 0,this)});Np.displayName="TimelineContent";var Lp=Ct(({className:e,size:t,...r},i)=>{let a=m(t);return je("h4",{ref:i,className:o(Tp({size:a}),e),...r},void 0,!1,void 0,this)});Lp.displayName="TimelineTitle";var Rp=Ct(({className:e,size:t,...r},i)=>{let a=m(t);return je("p",{ref:i,className:o(xp({size:a}),e),...r},void 0,!1,void 0,this)});Rp.displayName="TimelineDescription";var Hp=Ct(({className:e,size:t,...r},i)=>{let a=m(t);return je("time",{ref:i,className:o(zp({size:a}),e),...r},void 0,!1,void 0,this)});Hp.displayName="TimelineTime";function zb(){return je("span",{className:"size-2 rounded-full bg-current"},void 0,!1,void 0,this)}import{cva as Ap}from"class-variance-authority";var Sr={default:"default",success:"success",info:"info",warning:"warning",error:"error"},Ve={sm:"sm",md:"md",lg:"lg"},Oi=Ap("pointer-events-auto relative flex w-full items-center overflow-hidden rounded-[var(--radius)] border shadow-[var(--shadow-md)]",{variants:{variant:{[Sr.default]:"border-border bg-card text-card-foreground",[Sr.success]:"border-success/30 bg-card text-card-foreground",[Sr.info]:"border-info/30 bg-card text-card-foreground",[Sr.warning]:"border-warning/30 bg-card text-card-foreground",[Sr.error]:"border-destructive/30 bg-card text-card-foreground"},size:{[Ve.sm]:"gap-2 p-3",[Ve.md]:"gap-3 p-4",[Ve.lg]:"gap-3.5 p-5"}},defaultVariants:{variant:Sr.default,size:Ve.md}}),Gi=Ap("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:{[Ve.sm]:"h-6 px-2 text-xs",[Ve.md]:"h-7 px-2.5 text-xs",[Ve.lg]:"h-8 px-3 text-sm"}},defaultVariants:{size:Ve.md}});import{AlertTriangle as Ab,CheckCircle2 as kb,Info as Fp,X as Ib,XCircle as Bb}from"lucide-react";import{forwardRef as Vb,useCallback as Yo,useEffect as Xo,useRef as Yi,useState as Xi}from"react";import{useSyncExternalStore as Sb}from"react";var Cb=5,Ip=5000,wb=500,Wi=0;function Mb(){return Wi=(Wi+1)%Number.MAX_SAFE_INTEGER,`toast-${Wi}-${Date.now()}`}var $i=new Set,Fe=[],Yt=new Map,to=new Map,ro=!1,Kt=new Map;function Uo(){for(let e of $i)e()}function kp(){return Fe}function Nb(e){return $i.add(e),()=>{$i.delete(e)}}function Ui(e,t){if(ro){Kt.set(e,t);return}clearTimeout(Yt.get(e));let r=Date.now(),i=setTimeout(()=>{Yt.delete(e),Kt.delete(e),Ko(e)},t);Yt.set(e,i),Kt.set(e,t);let a=setInterval(()=>{let n=Date.now()-r,s=t-n;if(s<=0)clearInterval(a),Kt.delete(e);else Kt.set(e,s)},100)}function Lb(e){clearTimeout(to.get(e));let t=setTimeout(()=>{Fe=Fe.filter((r)=>r.id!==e),to.delete(e),Uo()},wb);to.set(e,t)}function eo(e){let t=e.id??Mb(),r=e.duration??Ip;if(Fe.find((n)=>n.id===t))return Fe=Fe.map((n)=>n.id===t?{...n,...e,id:t,open:!0,createdAt:Date.now()}:n),clearTimeout(to.get(t)),to.delete(t),Ui(t,r),Uo(),t;return Fe=[{...e,id:t,variant:e.variant??"default",dismissible:e.dismissible??!0,open:!0,createdAt:Date.now()},...Fe].slice(0,Cb),Ui(t,r),Uo(),t}function Ko(e){clearTimeout(Yt.get(e)),Yt.delete(e),Kt.delete(e),Fe=Fe.map((t)=>t.id===e?{...t,open:!1}:t),Uo(),Lb(e)}function Bp(){for(let e of Fe)Ko(e.id)}function Rb(){if(ro)return;ro=!0;for(let[e,t]of Yt)clearTimeout(t),Yt.delete(e)}function Hb(){if(!ro)return;ro=!1;for(let e of Fe)if(e.open){let t=Kt.get(e.id)??Ip;Ui(e.id,t)}}var Vp=Object.assign((e)=>eo(e),{success:(e,t)=>eo({...t,variant:"success",title:e}),info:(e,t)=>eo({...t,variant:"info",title:e}),warning:(e,t)=>eo({...t,variant:"warning",title:e}),error:(e,t)=>eo({...t,variant:"error",title:e}),dismiss:Ko,dismissAll:Bp});function Ki(){return{toasts:Sb(Nb,kp,kp),toast:Vp,dismiss:Ko,dismissAll:Bp,pauseAll:Rb,resumeAll:Hb}}import{jsxDEV as Se}from"react/jsx-dev-runtime";var Dp=10,_p=0.05,Fb=200,Op="cubic-bezier(0.2, 0.8, 0.2, 1)",_b="cubic-bezier(0.22, 1, 0.36, 1)",Db={"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"},Ob={success:(e)=>Se(kb,{className:o("mt-0.5 shrink-0 text-success",e==="sm"?"size-4":"size-[18px]")},void 0,!1,void 0,this),info:(e)=>Se(Fp,{className:o("mt-0.5 shrink-0 text-info",e==="sm"?"size-4":"size-[18px]")},void 0,!1,void 0,this),warning:(e)=>Se(Ab,{className:o("mt-0.5 shrink-0 text-warning",e==="sm"?"size-4":"size-[18px]")},void 0,!1,void 0,this),error:(e)=>Se(Bb,{className:o("mt-0.5 shrink-0 text-destructive",e==="sm"?"size-4":"size-[18px]")},void 0,!1,void 0,this),default:(e)=>Se(Fp,{className:o("mt-0.5 shrink-0 text-muted-foreground",e==="sm"?"size-4":"size-[18px]")},void 0,!1,void 0,this)};function Gb(e,t,r,i,a){let n=e<i,s=r?a:e*Dp,l=r?1:n?1-e*_p:1-i*_p,c=n||r?1:0,d=t-e;return{offset:s,scale:l,opacity:c,zIndex:d}}var Gp=Vb(({position:e="bottom-right",gap:t=12,visibleCount:r=3,size:i=Ve.md,className:a,...n},s)=>{let{toasts:l,dismiss:c,pauseAll:d,resumeAll:b}=Ki(),f=m(i)??Ve.md,[h,p]=Xi(!1),[v,z]=Xi({}),R=Yi(null),w=Yi(void 0),S=e.startsWith("bottom"),y=Yo((T)=>{if(R.current=T,typeof s==="function")s(T);else if(s)s.current=T},[s]),M=Yo(()=>{clearTimeout(w.current),p(!0),d()},[d]),B=Yo(()=>{clearTimeout(w.current),w.current=setTimeout(()=>{p(!1),b()},Fb)},[b]);Xo(()=>{return()=>clearTimeout(w.current)},[]);let C=Yo((T,U)=>{z((Q)=>{if(Q[T]===U)return Q;return{...Q,[T]:U}})},[]);if(Xo(()=>{let T=new Set(l.map((U)=>U.id));z((U)=>{let Q=!1,L={};for(let[Y,u]of Object.entries(U))if(T.has(Y))L[Y]=u;else Q=!0;return Q?L:U})},[l]),l.length===0)return null;let H=l.filter((T)=>T.open),A=new Map,G=0;for(let[T,U]of H.entries()){let Q=v[U.id]??0;A.set(U.id,Gb(T,H.length,h,r,G)),G+=Q+t}let q=H[0],O=(q?v[q.id]??0:0)+Math.min(H.length-1,r-1)*Dp,P=G-(H.length>0?t:0),k=h?P:O;return Se("ol",{ref:y,role:"region","aria-label":"Notifications",tabIndex:-1,onMouseEnter:M,onMouseLeave:B,className:o("pointer-events-auto fixed z-[100] w-full max-w-[400px] outline-none",Db[e],a),style:{height:Math.max(k,0),transition:`height 400ms ${Op}`},...n,children:l.map((T)=>{let U=!T.open,Q=A.get(T.id);return Se(Wb,{toast:T,layout:Q??{offset:0,scale:1,opacity:0,zIndex:0},isClosed:U,isBottom:S,size:f,onDismiss:c,onMeasure:C},T.id,!1,void 0,this)})},void 0,!1,void 0,this)});Gp.displayName="Toaster";function Wb({toast:e,layout:t,isClosed:r,isBottom:i,size:a,onDismiss:n,onMeasure:s}){let l=Yi(null),[c,d]=Xi(!1);Xo(()=>{let v=requestAnimationFrame(()=>d(!0));return()=>cancelAnimationFrame(v)},[]),Xo(()=>{let v=l.current;if(!v)return;let z=new ResizeObserver((R)=>{for(let w of R){let S=w.borderBoxSize?.[0];if(S)s(e.id,S.blockSize)}});return z.observe(v),()=>z.disconnect()},[e.id,s]);let b=i?{bottom:0,left:0,right:0}:{top:0,left:0,right:0},f,h,p;if(!c)f=`translateY(${i?80:-80}px) scale(0.9)`,h=0,p="none";else if(r)f=`translateY(${i?80:-80}px) scale(0.95)`,h=0,p="none";else f=`translateY(${i?-t.offset:t.offset}px) scale(${t.scale})`,h=t.opacity,p="auto";return Se("li",{ref:l,"data-state":e.open?"open":"closed","data-variant":e.variant,className:"absolute list-none",style:{...b,zIndex:t.zIndex,transformOrigin:i?"center bottom":"center top",transform:f,opacity:h,pointerEvents:p,transition:[`transform 400ms ${Op}`,`opacity 250ms ${_b}`].join(", ")},children:Se("div",{className:o(Oi({variant:e.variant,size:a}),"w-full"),children:[Ob[e.variant]?.(a),Se("div",{className:"flex-1 space-y-0.5",children:[e.title&&Se("p",{className:o("font-semibold leading-tight",a==="sm"?"text-xs":"text-sm"),children:e.title},void 0,!1,void 0,this),e.description&&Se("p",{className:o("leading-snug text-muted-foreground",a==="sm"?"text-xs":"text-sm"),children:e.description},void 0,!1,void 0,this)]},void 0,!0,void 0,this),e.action&&Se("button",{type:"button",className:o(Gi({size:a}),"mt-0.5"),onClick:e.action.onClick,"aria-label":e.action.altText,children:e.action.label},void 0,!1,void 0,this),e.dismissible!==!1&&Se("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",a==="sm"?"[&>svg]:size-3.5":"[&>svg]:size-4"),onClick:()=>n(e.id),"aria-label":"Dismiss",children:Se(Ib,{},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 Wp from"@radix-ui/react-toggle";import{cva as $b}from"class-variance-authority";import{forwardRef as Ub}from"react";import{jsxDEV as Kb}from"react/jsx-dev-runtime";var Zi={default:"default",outline:"outline"},Zo={sm:"sm",md:"md",lg:"lg"},qo=$b("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:{[Zi.default]:"bg-transparent disabled:bg-transparent disabled:text-foreground/50",[Zi.outline]:"border-input bg-transparent hover:bg-accent hover:text-accent-foreground disabled:bg-transparent disabled:text-foreground/50 disabled:border-border/50"},size:{[Zo.sm]:"h-7 px-1.5 min-w-7 text-xs",[Zo.md]:"h-10 px-3 min-w-10",[Zo.lg]:"h-11 px-5 min-w-11"}},defaultVariants:{variant:Zi.default,size:Zo.md}}),$p=Ub(({className:e,variant:t,size:r,...i},a)=>{let n=m(r);return Kb(Wp.Root,{ref:a,className:o(qo({variant:t,size:n}),e),...i},void 0,!1,void 0,this)});$p.displayName="Toggle";import*as Jo from"@radix-ui/react-toggle-group";import{cva as Yb}from"class-variance-authority";import{createContext as Xb,forwardRef as Up,useContext as Zb}from"react";import{jsxDEV as qi}from"react/jsx-dev-runtime";var qb={default:"default",outline:"outline"},Jb={sm:"sm",md:"md",lg:"lg"},Kp=Yb("flex items-center justify-center gap-1"),Yp=Xb({size:Jb.md,variant:qb.default}),Xp=Up(({className:e,variant:t,size:r,children:i,...a},n)=>{let s=m(r);return qi(Jo.Root,{ref:n,className:o(Kp(),e),...a,children:qi(Yp.Provider,{value:{variant:t,size:s},children:i},void 0,!1,void 0,this)},void 0,!1,void 0,this)});Xp.displayName="ToggleGroup";var Zp=Up(({className:e,children:t,variant:r,size:i,...a},n)=>{let s=Zb(Yp),l=m(i);return qi(Jo.Item,{ref:n,className:o(qo({variant:r??s.variant,size:l??s.size}),e),...a,children:t},void 0,!1,void 0,this)});Zp.displayName="ToggleGroupItem";import{cva as qp}from"class-variance-authority";import{forwardRef as Qo}from"react";import{jsxDEV as Eo}from"react/jsx-dev-runtime";var Ye={sm:"sm",md:"md",lg:"lg"},Jp=qp("flex items-center border-b border-border bg-background",{variants:{size:{[Ye.sm]:"gap-1.5 px-3 py-1.5",[Ye.md]:"gap-2 px-4 py-2",[Ye.lg]:"gap-3 px-5 py-2.5"}},defaultVariants:{size:Ye.md}}),Qp=Qo(({className:e,size:t=Ye.md,...r},i)=>{let a=m(t);return Eo("div",{ref:i,role:"toolbar",className:o(Jp({size:a}),e),...r},void 0,!1,void 0,this)});Qp.displayName="Toolbar";var Ep=qp("flex items-center",{variants:{size:{[Ye.sm]:"gap-1",[Ye.md]:"gap-1.5",[Ye.lg]:"gap-2"}},defaultVariants:{size:Ye.md}}),jp=Qo(({className:e,size:t=Ye.md,...r},i)=>{let a=m(t);return Eo("div",{ref:i,role:"group",className:o(Ep({size:a}),e),...r},void 0,!1,void 0,this)});jp.displayName="ToolbarGroup";var ec=Qo(({className:e,...t},r)=>{return Eo("div",{ref:r,role:"none",className:o("h-5 w-px shrink-0 bg-border",e),...t},void 0,!1,void 0,this)});ec.displayName="ToolbarSeparator";var tc=Qo(({className:e,...t},r)=>{return Eo("div",{ref:r,className:o("flex-1",e),...t},void 0,!1,void 0,this)});tc.displayName="ToolbarSpacer";import*as et from"@radix-ui/react-tooltip";import{cva as Qb}from"class-variance-authority";import{createContext as Eb,forwardRef as rc,useContext as oc}from"react";import{jsxDEV as oo}from"react/jsx-dev-runtime";var jb=et.Provider,Ji=Eb(!1),ic=({persistOnClick:e=!1,children:t,...r})=>oo(Ji.Provider,{value:e,children:oo(et.Root,{...r,children:t},void 0,!1,void 0,this)},void 0,!1,void 0,this);ic.displayName="Tooltip";var ac=rc(({onClick:e,onPointerDown:t,...r},i)=>{let a=oc(Ji);return oo(et.Trigger,{ref:i,onClick:a?(n)=>{n.preventDefault(),e?.(n)}:e,onPointerDown:a?(n)=>{n.preventDefault(),t?.(n)}:t,...r},void 0,!1,void 0,this)});ac.displayName="TooltipTrigger";var Cr={sm:"sm",md:"md",lg:"lg"},nc=Qb("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:{[Cr.sm]:"px-2 py-1 text-[10px]",[Cr.md]:"px-3 py-1.5 text-xs",[Cr.lg]:"px-4 py-2 text-sm"}},defaultVariants:{size:Cr.md}}),sc=rc(({className:e,sideOffset:t=4,onPointerDownOutside:r,size:i=Cr.md,...a},n)=>{let s=oc(Ji),l=m(i);return oo(et.Portal,{children:oo(et.Content,{ref:n,sideOffset:t,className:o(nc({size:l}),e),onPointerDownOutside:s?(c)=>{c.preventDefault(),r?.(c)}:r,...a},void 0,!1,void 0,this)},void 0,!1,void 0,this)});sc.displayName="TooltipContent";import*as wt from"react";var ev=()=>{};function tv({prop:e,defaultProp:t,onChange:r=ev}){let[i,a]=rv({defaultProp:t,onChange:r}),n=e!==void 0,s=n?e:i,l=wt.useCallback((c)=>{if(n){let b=typeof c==="function"?c(e):c;if(b!==e)r(b)}else a(c)},[n,e,a,r]);return[s,l]}function rv({defaultProp:e,onChange:t}){let r=wt.useState(e),[i]=r,a=wt.useRef(i),n=t;return wt.useEffect(()=>{if(a.current!==i)n?.(i),a.current=i},[i,n]),r}export{Ki as useToast,xi as usePlatform,Sg as useOverlay,Ir as useFormField,m as useDensitySize,cc as useDensity,tv as useControllableState,Br as useComposedRefs,nc as tooltipContentVariants,Jp as toolbarVariants,Ep as toolbarGroupVariants,qo as toggleVariants,Kp as toggleGroupVariants,Oi as toastVariants,Gi as toastActionVariants,Vp as toast,bp as timelineVariants,Tp as timelineTitleVariants,zp as timelineTimeVariants,vp as timelineItemVariants,Pp as timelineDotVariants,xp as timelineDescriptionVariants,hp as timelineContentVariants,yp as timelineConnectorVariants,fp as textareaVariants,lp as tabsTriggerVariants,sp as tabsListVariants,mp as tabsContentVariants,Ud as tableVariants,Zd as tableRowVariants,Kd as tableHeaderVariants,qd as tableHeadVariants,Xd as tableFooterVariants,$d as tableContainerVariants,Jd as tableCellVariants,Qd as tableCaptionVariants,Yd as tableBodyVariants,Od as switchVariants,Cd as stepperVariants,wd as stepVariants,Rd as stepTitleVariants,Md as stepIndicatorVariants,Hd as stepDescriptionVariants,Ld as stepContentVariants,Nd as stepConnectorVariants,zd as statCardVariants,Oo as spotlightStatusVariants,Go as spotlightStatusTitleVariants,Td as spotlightStatusDescriptionVariants,hd as spotlightShortcutVariants,ud as spotlightResultsVariants,md as spotlightPanelVariants,ld as spotlightOverlayVariants,gd as spotlightOptionVariants,yd as spotlightOptionTitleVariants,bd as spotlightOptionIconVariants,Pd as spotlightOptionDescriptionVariants,vd as spotlightOptionContentVariants,Do as spotlightKbdVariants,pd as spotlightInputVariants,cd as spotlightIconVariants,dd as spotlightHeaderVariants,fd as spotlightGroupLabelVariants,rd as sliderVariants,od as sliderTrackVariants,ad as sliderThumbVariants,id as sliderRangeVariants,qm as skeletonVariants,Jm as skeletonTextVariants,Em as skeletonButtonVariants,Qm as skeletonAvatarVariants,Xl as sheetOverlayVariants,Zl as sheetContentVariants,Xm as separatorVariants,Om as selectTriggerVariants,Gm as selectContentVariants,km as scrollBarVariants,Im as scrollBarThumbVariants,Am as scrollAreaVariants,Cm as resizablePanelVariants,Sm as resizablePanelGroupVariants,wm as resizableHandleVariants,Mm as resizableHandleIconVariants,Tm as radioItemVariants,hm as radioGroupVariants,gm as progressVariants,bm as progressIndicatorVariants,ur as popoverContentVariants,om as paginationVariants,xo as paginationLinkVariants,am as paginationItemVariants,nm as paginationEllipsisVariants,im as paginationContentVariants,Gl as otpSlotVariants,Ul as otpSeparatorVariants,$l as otpPlaceholderVariants,Wl as otpInputVariants,Ol as otpGroupVariants,Dl as otpContainerVariants,Ll as navigationMenuViewportVariants,Cl as navigationMenuVariants,Ml as navigationMenuTriggerVariants,wl as navigationMenuListVariants,ag as navigationMenuLinkVariants,Rl as navigationMenuIndicatorVariants,Nl as navigationMenuContentVariants,xl as multiselectTriggerVariants,vl as labelVariants,ul as kbdVariants,jt as isSameDay,dl as inputVariants,nl as hoverCardContentVariants,fl as formatKeys,js as formFieldVariants,Us as fileUploadVariants,Ti as fileUploadTextVariants,Ys as fileUploadListVariants,Xs as fileUploadItemVariants,qs as fileUploadItemSizeVariants,Js as fileUploadItemRemoveVariants,Zs as fileUploadItemNameVariants,Ks as fileUploadIconVariants,Vs as errorBoundaryVariants,_s as errorBoundaryTitleVariants,Fs as errorBoundaryIconVariants,Gs as errorBoundaryDetailsVariants,Ds as errorBoundaryDescriptionVariants,Os as errorBoundaryActionsVariants,Ls as emptyStateVariants,Hs as emptyStateTitleVariants,Rs as emptyStateIconVariants,As as emptyStateDescriptionVariants,ks as emptyStateActionsVariants,vs as dropdownMenuShortcutVariants,bs as dropdownMenuSeparatorVariants,fs as dropdownMenuRadioItemVariants,gs as dropdownMenuLabelVariants,hi as dropdownMenuItemVariants,Pi as dropdownMenuContentVariants,us as dropdownMenuCheckboxItemVariants,os as drawerOverlayVariants,as as drawerHandleVariants,is as drawerContentVariants,En as dialogContentVariants,cl as detectPlatform,ZC as cva,hf as createOptionalContext,Pf as createContext,On as contextMenuShortcutVariants,Dn as contextMenuSeparatorVariants,Fn as contextMenuRadioItemVariants,_n as contextMenuLabelVariants,fi as contextMenuItemVariants,ui as contextMenuContentVariants,Vn as contextMenuCheckboxItemVariants,ll as composeRefs,In as collapsibleContentVariants,Cn as codeBlockVariants,Rn as codeBlockPreVariants,Hn as codeBlockLineVariants,An as codeBlockLineNumberVariants,Mn as codeBlockLanguageVariants,wn as codeBlockHeaderVariants,Nn as codeBlockCopyVariants,Ln as codeBlockContentVariants,o as cn,xn as checkboxVariants,fn as cardVariants,pn as calendarWeekdayVariants,sn as calendarVariants,mn as calendarTitleVariants,pi as calendarNavButtonVariants,ln as calendarHeaderVariants,dn as calendarGridVariants,cn as calendarDayVariants,Mr as buttonVariants,ba as buttonIconVariants,tn as buttonGroupVariants,va as buttonBadgeVariants,Ya as breadcrumbSeparatorVariants,Ka as breadcrumbPageVariants,Wa as breadcrumbListVariants,Ua as breadcrumbLinkVariants,$a as breadcrumbItemVariants,Xa as breadcrumbEllipsisVariants,Fa as badgeVariants,Ia as avatarVariants,ma as alertVariants,da as alertTitleVariants,za as alertDialogOverlayVariants,Sa as alertDialogContentVariants,pa as alertDescriptionVariants,oa as accordionTriggerVariants,ra as accordionItemVariants,ia as accordionContentVariants,bc as XCircleIcon,tt as Variant,ac as TooltipTrigger,Cr as TooltipSize,jb as TooltipProvider,sc as TooltipContent,ic as Tooltip,tc as ToolbarSpacer,Ye as ToolbarSize,ec as ToolbarSeparator,jp as ToolbarGroup,Qp as Toolbar,Zp as ToggleGroupItem,Xp as ToggleGroup,$p as Toggle,Gp as Toaster,Ve as ToastSize,Lp as TimelineTitle,Hp as TimelineTime,Cp as TimelineItem,Mp as TimelineDot,Rp as TimelineDescription,Np as TimelineContent,wp as TimelineConnector,Sp as Timeline,gp as Textarea,cp as TabsTrigger,pp as TabsList,up as TabsContent,Pb as Tabs,Pe as TableSize,rp as TableRow,jd as TableHeader,op as TableHead,tp as TableFooter,ip as TableCell,ap as TableCaption,ep as TableBody,Ed as Table,xr as SwitchStatus,ze as SwitchSize,Gd as Switch,Ad as Stepper,Fd as StepTitle,Id as StepIndicator,_d as StepDescription,Vd as StepContent,Bd as StepConnector,kd as Step,Wt as StatCardTrend,Be as StatCardSize,Sd as StatCard,Tr as SpotlightStatus,Gt as SpotlightSize,xd as Spotlight,Mt as SpinnerSize,no as Spinner,nd as Slider,jm as SkeletonText,de as SkeletonSize,td as SkeletonButton,ed as SkeletonAvatar,Jr as Skeleton,ve as Size,bg as SheetTrigger,El as SheetTitle,te as SheetSize,ql as SheetPortal,wi as SheetOverlay,Jl as SheetHeader,Ql as SheetFooter,jl as SheetDescription,ho as SheetContent,vg as SheetClose,Ci as Sheet,qr as SeparatorOrientation,Zm as Separator,Xg as SelectValue,Wm as SelectTrigger,hr as SelectStatus,j as SelectSize,Ym as SelectSeparator,Um as SelectLabel,Km as SelectItem,Yg as SelectGroup,Xr as SelectContentWidthMode,Wg as SelectContentAlign,$m as SelectContent,Kg as Select,Ri as ScrollBar,Bm as ScrollArea,Nm as ResizablePanelGroup,Lm as ResizablePanel,Rm as ResizableHandle,vr as RadioStatus,Ue as RadioSize,zm as RadioGroupItem,xm as RadioGroup,vm as Progress,$f as PopoverTrigger,cr as PopoverSize,hl as PopoverContent,Kf as PopoverClose,Uf as PopoverAnchor,Wf as Popover,Ie as PaginationSize,pm as PaginationPrevious,cm as PaginationNext,dm as PaginationLink,mm as PaginationItem,um as PaginationEllipsis,lm as PaginationContent,sm as Pagination,rm as OverlayProvider,Kl as OTPInput,zi as NavigationMenuViewport,kl as NavigationMenuTrigger,We as NavigationMenuSize,Al as NavigationMenuList,lg as NavigationMenuLink,sg as NavigationMenuItem,Bl as NavigationMenuIndicator,Il as NavigationMenuContent,Hl as NavigationMenu,me as MultiselectSize,zl as Multiselect,pr as LabelSize,yl as Label,dr as KbdSize,gl as Kbd,pl as Input,yc as InfoIcon,Nt as IconSize,vf as HoverCardTrigger,lr as HoverCardSize,sl as HoverCardContent,bf as HoverCard,Rr as GroupOrientation,Ae as FormFieldSize,tl as FormFieldLabel,il as FormFieldError,ol as FormFieldDescription,al as FormFieldControl,el as FormField,Qs as FileUpload,Ws as ErrorBoundary,Is as EmptyState,Ju as DropdownMenuTrigger,hs as DropdownMenuSubTrigger,Ts as DropdownMenuSubContent,ju as DropdownMenuSub,Ns as DropdownMenuShortcut,Ms as DropdownMenuSeparator,Cs as DropdownMenuRadioItem,ef as DropdownMenuRadioGroup,Eu as DropdownMenuPortal,ws as DropdownMenuLabel,zs as DropdownMenuItem,Qu as DropdownMenuGroup,xs as DropdownMenuContent,Ss as DropdownMenuCheckboxItem,Ps as DropdownMenu,_u as DrawerTrigger,ds as DrawerTitle,He as DrawerSize,ns as DrawerPortal,yi as DrawerOverlay,ls as DrawerHeader,ms as DrawerFooter,ps as DrawerDescription,ss as DrawerContent,Du as DrawerClose,Fu as Drawer,Au as DialogTrigger,ts as DialogTitle,ft as DialogSize,Qn as DialogPortal,bi as DialogOverlay,jn as DialogHeader,es as DialogFooter,rs as DialogDescription,go as DialogContent,ku as DialogClose,gi as Dialog,ea as DensityProvider,io as Density,Cu as ContextMenuTrigger,Wn as ContextMenuSubTrigger,$n as ContextMenuSubContent,Nu as ContextMenuSub,Jn as ContextMenuShortcut,qn as ContextMenuSeparator,Xn as ContextMenuRadioItem,Lu as ContextMenuRadioGroup,Mu as ContextMenuPortal,Zn as ContextMenuLabel,Kn as ContextMenuItem,wu as ContextMenuGroup,Un as ContextMenuContent,Yn as ContextMenuCheckboxItem,Su as ContextMenu,bu as CollapsibleTrigger,Bn as CollapsibleContent,gu as Collapsible,kn as CodeBlock,or as CheckboxStatus,De as CheckboxSize,zn as Checkbox,vc as CheckCircleIcon,Pn as CardTitle,bn as CardHeader,yn as CardFooter,hn as CardDescription,vn as CardContent,gn as Card,un as Calendar,Pa as ButtonLabel,ya as ButtonIcon,rn as ButtonGroup,ha as ButtonBadge,Ta as Button,se as BreadcrumbSize,ja as BreadcrumbSeparator,Ea as BreadcrumbPage,qa as BreadcrumbList,Qa as BreadcrumbLink,Ja as BreadcrumbItem,en as BreadcrumbEllipsis,Za as Breadcrumb,ue as BadgeVariant,st as BadgeTone,dt as BadgeSize,Ga as BadgeGroup,_a as Badge,Le as AvatarSize,Ba as AvatarImage,Va as AvatarGroup,mi as AvatarFallback,li as Avatar,Hc as AspectRatio,Pc as AlertTriangleIcon,ua as AlertTitle,Rc as AlertDialogTrigger,La as AlertDialogTitle,mt as AlertDialogSize,Ca as AlertDialogPortal,si as AlertDialogOverlay,Ma as AlertDialogHeader,Na as AlertDialogFooter,Ra as AlertDialogDescription,wa as AlertDialogContent,Aa as AlertDialogCancel,Ha as AlertDialogAction,Lc as AlertDialog,fa as AlertDescription,ca as Alert,sa as AccordionTrigger,he as AccordionSize,na as AccordionItem,la as AccordionContent,aa as Accordion};
2
+ import{cva as W0}from"class-variance-authority";import*as Qe from"@radix-ui/react-accordion";import{cva as ma}from"class-variance-authority";import{ChevronDown as Fc}from"lucide-react";import{createContext as _c,forwardRef as fo,useContext as gi}from"react";import{clsx as Ac}from"clsx";import{twMerge as Ic}from"tailwind-merge";function a(...e){return Ic(Ac(e))}import{createContext as Vc,useContext as ui}from"react";import{jsxDEV as ci}from"react/jsx-dev-runtime";var uo={default:"default",compact:"compact"},Bc={[uo.default]:{},[uo.compact]:{xl:"lg",lg:"md",md:"sm",sm:"sm"}},la=Vc(uo.default),fi=({density:e,children:t})=>{return ci(la.Provider,{value:e,children:ci("div",{"data-density":e,children:t},void 0,!1,void 0,this)},void 0,!1,void 0,this)};fi.displayName="DensityProvider";var Dc=()=>{return ui(la)};function m(e){let t=ui(la);if(e===void 0)return;return Bc[t][e]??e}import{jsxDEV as dt}from"react/jsx-dev-runtime";var Te={sm:"sm",md:"md",lg:"lg"},da=_c(Te.md),bi=ma("border-b border-border"),vi=ma("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}}),yi=ma("gs-accordion-content overflow-hidden",{variants:{size:{[Te.sm]:"text-xs",[Te.md]:"text-sm",[Te.lg]:"text-base"}},defaultVariants:{size:Te.md}}),Oc={[Te.sm]:"pt-0 pb-3",[Te.md]:"pt-0 pb-4",[Te.lg]:"pt-0 pb-5"},Pi=fo(({size:e=Te.md,...t},r)=>{let o=m(e)??Te.md;return dt(da.Provider,{value:o,children:dt(Qe.Root,{ref:r,...t},void 0,!1,void 0,this)},void 0,!1,void 0,this)});Pi.displayName="Accordion";var hi=fo(({className:e,...t},r)=>dt(Qe.Item,{ref:r,className:a(bi(),e),...t},void 0,!1,void 0,this));hi.displayName="AccordionItem";var Ti=fo(({className:e,children:t,...r},o)=>{let i=gi(da);return dt(Qe.Header,{className:"flex",children:dt(Qe.Trigger,{ref:o,className:a(vi({size:i}),e),...r,children:[t,dt(Fc,{className:"shrink-0 transition-transform"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)});Ti.displayName="AccordionTrigger";var xi=fo(({className:e,children:t,...r},o)=>{let i=gi(da);return dt(Qe.Content,{ref:o,className:a(yi({size:i}),e),...r,children:dt("div",{className:Oc[i],children:t},void 0,!1,void 0,this)},void 0,!1,void 0,this)});xi.displayName="AccordionContent";import{cva as pa}from"class-variance-authority";import{CircleAlert as Gc,CircleCheck as Wc,Info as $c,TriangleAlert as Uc}from"lucide-react";import{forwardRef as ca}from"react";import{jsxDEV as ua}from"react/jsx-dev-runtime";var jt={default:"default",success:"success",warning:"warning",error:"error",info:"info"},Ar={sm:"sm",md:"md",lg:"lg",xl:"xl"},zi=pa("relative w-full rounded-[var(--radius)] border [&>svg~*]:pl-7 [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground",{variants:{variant:{[jt.default]:"bg-background text-foreground",[jt.success]:"border-success/50 text-success [&>svg]:text-success bg-success/10",[jt.warning]:"border-warning/50 text-warning [&>svg]:text-warning bg-warning/10",[jt.error]:"border-destructive/50 text-destructive [&>svg]:text-destructive bg-destructive/10",[jt.info]:"border-info/50 text-info [&>svg]:text-info bg-info/10"},size:{[Ar.sm]:"p-3 text-xs [&>svg]:top-3 [&>svg]:left-3 [&>svg~*]:pl-6",[Ar.md]:"p-4 text-sm",[Ar.lg]:"p-5 text-sm",[Ar.xl]:"p-6 text-base [&>svg]:top-6 [&>svg]:left-6 [&>svg~*]:pl-8"}},defaultVariants:{variant:jt.default,size:Ar.md}}),Si=pa("mb-1 font-medium leading-none tracking-tight"),Ci=pa("text-sm [&_p]:leading-relaxed"),wi=ca(({className:e,variant:t,size:r,...o},i)=>{let n=m(r);return ua("div",{ref:i,role:"alert",className:a(zi({variant:t,size:n}),e),...o},void 0,!1,void 0,this)});wi.displayName="Alert";var Mi=ca(({className:e,...t},r)=>ua("h5",{ref:r,className:a(Si(),e),...t},void 0,!1,void 0,this));Mi.displayName="AlertTitle";var Ni=ca(({className:e,...t},r)=>ua("div",{ref:r,className:a(Ci(),e),...t},void 0,!1,void 0,this));Ni.displayName="AlertDescription";import*as ue from"@radix-ui/react-alert-dialog";import{cva as Bi}from"class-variance-authority";import{forwardRef as er}from"react";import{Slot as Li}from"@radix-ui/react-slot";import{cva as ga}from"class-variance-authority";import{forwardRef as bo}from"react";import{forwardRef as Kc}from"react";import{jsxDEV as fa}from"react/jsx-dev-runtime";var Ht={xs:"xs",sm:"sm",md:"md",lg:"lg",xl:"xl"},Yc={[Ht.xs]:"h-3 w-3",[Ht.sm]:"h-4 w-4",[Ht.md]:"h-5 w-5",[Ht.lg]:"h-6 w-6",[Ht.xl]:"h-8 w-8"},go=Kc(({className:e,size:t=Ht.md,label:r="Loading",...o},i)=>{let n=m(t);return fa("span",{ref:i,className:a("inline-flex items-center justify-center",e),role:"status","aria-label":r,...o,children:[fa("span",{className:a("animate-spin rounded-full border-2 border-current border-r-transparent",Yc[n])},void 0,!1,void 0,this),fa("span",{className:"sr-only",children:r},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});go.displayName="Spinner";import{jsxDEV as it}from"react/jsx-dev-runtime";var at={primary:"primary",secondary:"secondary",neutral:"neutral",outline:"outline",ghost:"ghost",danger:"danger"},ye={xs:"xs",sm:"sm",md:"md",lg:"lg",xl:"xl",icon:"icon",iconXs:"icon-xs",iconSm:"icon-sm",iconLg:"icon-lg"},pt={default:"default",success:"success",warning:"warning",error:"error",info:"info"},kt={xs:"xs",sm:"sm",md:"md",lg:"lg"},Xc="Loading",Zc="button",Ir=ga("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:{[at.primary]:"border-primary bg-primary text-primary-foreground enabled:hover:bg-primary/90",[at.secondary]:"border-secondary bg-secondary text-secondary-foreground enabled:hover:bg-secondary/90",[at.neutral]:"border-border bg-muted text-foreground enabled:hover:bg-muted/90",[at.outline]:"border-border bg-background text-foreground enabled:hover:border-primary enabled:hover:bg-muted/50",[at.ghost]:"border-transparent bg-transparent text-foreground enabled:hover:bg-muted/70",[at.danger]:"border-destructive bg-destructive text-destructive-foreground enabled:hover:bg-destructive/90"},size:{[ye.xs]:"h-7 px-2 text-xs",[ye.sm]:"h-8 px-2.5 text-xs",[ye.md]:"h-10 px-4 text-sm",[ye.lg]:"h-11 px-5 text-sm",[ye.xl]:"h-12 px-6 text-base",[ye.icon]:"h-10 w-10 p-0",[ye.iconXs]:"h-8 w-8 p-0",[ye.iconSm]:"h-9 w-9 p-0",[ye.iconLg]:"h-11 w-11 p-0"}},defaultVariants:{variant:at.primary,size:ye.md}}),Ri=ga("shrink-0",{variants:{size:{[kt.xs]:"size-2.5",[kt.sm]:"size-3",[kt.md]:"size-4",[kt.lg]:"size-4.5"}},defaultVariants:{size:kt.md}}),Hi=ga("inline-flex items-center rounded-full border px-1.5 py-0.5 font-semibold text-[10px] leading-none",{variants:{tone:{[pt.default]:"border-border/70 bg-background/75 text-muted-foreground",[pt.success]:"border-success/35 bg-success/12 text-success",[pt.warning]:"border-warning/35 bg-warning/12 text-warning",[pt.error]:"border-destructive/35 bg-destructive/12 text-destructive",[pt.info]:"border-info/35 bg-info/12 text-info"}},defaultVariants:{tone:pt.default}});function qc(e){return e===ye.icon||e===ye.iconXs||e===ye.iconSm||e===ye.iconLg}function Jc(e,t,r){return e&&t?-1:r}function Qc(e){return e["aria-label"]??e["aria-labelledby"]??e.title}function Ec(){if(typeof process>"u")return!0;return!0}var ki=bo(({className:e,size:t=kt.md,...r},o)=>it(Li,{ref:o,className:a(Ri({size:t}),e),...r},void 0,!1,void 0,this));ki.displayName="ButtonIcon";var Ai=bo(({className:e,...t},r)=>it("span",{ref:r,className:a("truncate",e),...t},void 0,!1,void 0,this));Ai.displayName="ButtonLabel";var Ii=bo(({className:e,tone:t=pt.default,...r},o)=>it("span",{ref:o,className:a(Hi({tone:t}),e),...r},void 0,!1,void 0,this));Ii.displayName="ButtonBadge";var Vi=bo(({className:e,variant:t=at.primary,size:r=ye.md,asChild:o=!1,loading:i=!1,loadingText:n=Xc,fullWidth:s=!1,leadingIcon:l,trailingIcon:d,disabled:c,children:g,type:u,tabIndex:P,onClick:p,...b},x)=>{let M=m(r),w=M??r,z=Qc(b);if(Ec()&&qc(w)&&!z)throw Error("Icon-size Button requires aria-label, aria-labelledby, or title.");let v=Boolean(c||i),T=a(Ir({variant:t,size:M}),s&&"w-full",e);if(o)return it(Li,{ref:x,className:T,"aria-disabled":v||void 0,"aria-busy":i||void 0,tabIndex:Jc(!0,v,P),onClick:v?(I)=>{I.preventDefault()}:p,...b,children:g},void 0,!1,void 0,this);return it("button",{ref:x,className:T,disabled:v,"aria-disabled":v,"aria-busy":i,tabIndex:P,type:u??Zc,onClick:i?void 0:p,...b,children:[it("span",{className:a("absolute inset-0 flex items-center justify-center transition-opacity duration-150",i?"opacity-100":"opacity-0"),"aria-hidden":"true",children:it(go,{size:"sm"},void 0,!1,void 0,this)},void 0,!1,void 0,this),i&&it("span",{className:"sr-only",children:n},void 0,!1,void 0,this),it("span",{className:a("inline-flex items-center justify-center gap-2 transition-opacity duration-150",i&&"opacity-0"),children:[l,g,d]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)});Vi.displayName="Button";import{jsxDEV as Ee}from"react/jsx-dev-runtime";var ct={sm:"sm",md:"md",lg:"lg",xl:"xl",full:"full"},Di=Bi("gs-dialog-overlay fixed inset-0 z-50 bg-black/50"),Fi=Bi("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:{[ct.sm]:"max-w-sm",[ct.md]:"max-w-md",[ct.lg]:"max-w-lg",[ct.xl]:"max-w-xl",[ct.full]:"max-w-[calc(100vw-2rem)] max-h-[calc(100vh-2rem)]"}},defaultVariants:{size:ct.md}}),jc=ue.Root,eu=ue.Trigger,_i=ue.Portal,ba=er(({className:e,...t},r)=>Ee(ue.Overlay,{ref:r,className:a(Di(),e),...t},void 0,!1,void 0,this));ba.displayName="AlertDialogOverlay";var Oi=er(({className:e,size:t=ct.md,...r},o)=>{let i=m(t);return Ee(_i,{children:[Ee(ba,{},void 0,!1,void 0,this),Ee(ue.Content,{ref:o,className:a(Fi({size:i}),e),...r},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});Oi.displayName="AlertDialogContent";var Gi=({className:e,...t})=>Ee("div",{className:a("flex flex-col space-y-2 text-center sm:text-left",e),...t},void 0,!1,void 0,this);Gi.displayName="AlertDialogHeader";var Wi=({className:e,...t})=>Ee("div",{className:a("flex flex-col-reverse sm:flex-row sm:justify-end sm:gap-2.5",e),...t},void 0,!1,void 0,this);Wi.displayName="AlertDialogFooter";var $i=er(({className:e,...t},r)=>Ee(ue.Title,{ref:r,className:a("text-lg font-semibold",e),...t},void 0,!1,void 0,this));$i.displayName="AlertDialogTitle";var Ui=er(({className:e,...t},r)=>Ee(ue.Description,{ref:r,className:a("text-sm text-muted-foreground",e),...t},void 0,!1,void 0,this));Ui.displayName="AlertDialogDescription";var Ki=er(({className:e,...t},r)=>Ee(ue.Action,{ref:r,className:a(Ir(),e),...t},void 0,!1,void 0,this));Ki.displayName="AlertDialogAction";var Yi=er(({className:e,...t},r)=>Ee(ue.Cancel,{ref:r,className:a(Ir({variant:"outline"}),"mt-2 sm:mt-0",e),...t},void 0,!1,void 0,this));Yi.displayName="AlertDialogCancel";import*as Xi from"@radix-ui/react-aspect-ratio";var tu=Xi.Root;import*as rr from"@radix-ui/react-avatar";import{cva as ru}from"class-variance-authority";import{forwardRef as vo}from"react";import{jsxDEV as tr}from"react/jsx-dev-runtime";var Ae={sm:"sm",md:"md",lg:"lg",xl:"xl"},Zi=ru("relative flex shrink-0 overflow-hidden rounded-full",{variants:{size:{[Ae.sm]:"h-6 w-6",[Ae.md]:"h-10 w-10",[Ae.lg]:"h-12 w-12",[Ae.xl]:"h-16 w-16"}},defaultVariants:{size:Ae.md}}),va=vo(({className:e,size:t=Ae.md,...r},o)=>{let i=m(t);return tr(rr.Root,{ref:o,className:a(Zi({size:i}),e),...r},void 0,!1,void 0,this)});va.displayName="Avatar";var qi=vo(({className:e,...t},r)=>tr(rr.Image,{ref:r,className:a("aspect-square h-full w-full object-cover",e),...t},void 0,!1,void 0,this));qi.displayName="AvatarImage";var ya=vo(({className:e,...t},r)=>tr(rr.Fallback,{ref:r,className:a("flex h-full w-full items-center justify-center rounded-full bg-muted font-medium text-muted-foreground",e),...t},void 0,!1,void 0,this));ya.displayName="AvatarFallback";var ou={[Ae.sm]:"-space-x-2",[Ae.md]:"-space-x-3",[Ae.lg]:"-space-x-4",[Ae.xl]:"-space-x-5"},Ji=vo(({className:e,children:t,max:r,size:o=Ae.md,...i},n)=>{let s=m(o),l=Array.isArray(t)?t:[t],d=r?l.slice(0,r):l,c=r?Math.max(0,l.length-r):0;return tr("div",{ref:n,className:a("flex items-center",ou[s],e),...i,children:[d,c>0&&tr(va,{size:s,className:"border-2 border-background",children:tr(ya,{className:"text-xs",children:["+",c]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});Ji.displayName="AvatarGroup";import{Slot as au}from"@radix-ui/react-slot";import{cva as iu}from"class-variance-authority";import{X as nu}from"lucide-react";import{forwardRef as su}from"react";import{jsxDEV as Vr}from"react/jsx-dev-runtime";var fe={default:"default",primary:"primary",success:"success",warning:"warning",error:"error",info:"info",outline:"outline"},ut={sm:"sm",md:"md",lg:"lg",dot:"dot"},Qi=iu("inline-flex items-center justify-center gap-1 whitespace-nowrap rounded-full border font-medium",{variants:{variant:{[fe.default]:"border-border bg-muted text-muted-foreground",[fe.primary]:"border-primary/30 bg-primary/10 text-primary",[fe.success]:"border-success/30 bg-success/10 text-success",[fe.warning]:"border-warning/30 bg-warning/10 text-warning",[fe.error]:"border-destructive/30 bg-destructive/10 text-destructive",[fe.info]:"border-info/30 bg-info/10 text-info",[fe.outline]:"border-border bg-transparent text-foreground"},solid:{true:"",false:""},size:{[ut.sm]:"h-5 px-2 text-[10px]",[ut.md]:"h-6 px-2.5 text-xs",[ut.lg]:"h-7 px-3 text-sm",[ut.dot]:"h-2 w-2 p-0"}},compoundVariants:[{solid:!0,variant:fe.default,className:"border-transparent bg-foreground text-background"},{solid:!0,variant:fe.primary,className:"border-primary bg-primary text-primary-foreground"},{solid:!0,variant:fe.success,className:"border-success bg-success text-background"},{solid:!0,variant:fe.warning,className:"border-warning bg-warning text-background"},{solid:!0,variant:fe.error,className:"border-destructive bg-destructive text-destructive-foreground"},{solid:!0,variant:fe.info,className:"border-info bg-info text-background"},{solid:!0,variant:fe.outline,className:"border-border bg-foreground text-background"}],defaultVariants:{variant:fe.default,solid:!1,size:ut.md}}),Ei=su(({className:e,variant:t=fe.default,size:r=ut.md,solid:o=!1,pulse:i=!1,removable:n=!1,onRemove:s,onClick:l,children:d,asChild:c=!1,...g},u)=>{let P=m(r),p=Boolean(l),b=P===ut.dot,x=(z)=>{z.stopPropagation(),s?.(z)},M=a(Qi({variant:t,solid:o,size:P}),p&&"cursor-pointer",i&&"animate-pulse",n&&!b&&"pr-1",e),w=n&&!b&&Vr("button",{type:"button",className:"gs-interactive ml-0.5 inline-flex size-4 items-center justify-center rounded-full text-current opacity-60 hover:opacity-100",onClick:x,"aria-label":"Remove",tabIndex:-1,children:Vr(nu,{className:"size-3"},void 0,!1,void 0,this)},void 0,!1,void 0,this);if(c)return Vr(au,{ref:u,className:M,onClick:l,...g,children:d},void 0,!1,void 0,this);if(p)return Vr("button",{ref:u,className:M,onClick:l,type:"button",...g,children:[!b&&d,w]},void 0,!0,void 0,this);return Vr("span",{ref:u,className:M,...g,children:[!b&&d,w]},void 0,!0,void 0,this)});Ei.displayName="Badge";import{Children as lu,cloneElement as mu,forwardRef as du,isValidElement as pu,useCallback as ji,useLayoutEffect as cu,useRef as uu,useState as fu}from"react";import{jsxDEV as en}from"react/jsx-dev-runtime";function gu(e){let t=[];return lu.forEach(e,(r,o)=>{if(!pu(r))return;let i=r.key??o;t.push({key:i,element:r,isLeaving:!1})}),t}function bu(e,t){let r=new Set(t.map((n)=>n.key)),o=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(!o.has(n.key))i.push(n);return i}function vu(e,t,r){if(r.current)return r.current=!1,t;return bu(e,t)}var tn=du(({children:e,className:t,onRemove:r,gap:o="sm"},i)=>{let[n,s]=fu([]),l=uu(!0);cu(()=>{let u=gu(e);s((P)=>vu(P,u,l))},[e]);let d=ji((u)=>{s((P)=>P.filter((p)=>p.key!==u))},[]),c=ji((u)=>{r?.(u)},[r]),g={sm:"gap-1",md:"gap-2",lg:"gap-3"}[o];return en("div",{ref:i,className:a("inline-flex flex-wrap items-center",g,t),children:n.map((u)=>{let P={};if(u.element.props.removable&&r)P.onRemove=()=>{c(u.key)};let p=a("inline-flex transition-all duration-200",u.isLeaving&&"pointer-events-none scale-95 opacity-0");return en("span",{className:p,onTransitionEnd:u.isLeaving?()=>d(u.key):void 0,children:mu(u.element,P)},u.key,!1,void 0,this)})},void 0,!1,void 0,this)});tn.displayName="BadgeGroup";import{Slot as yu}from"@radix-ui/react-slot";import{cva as or}from"class-variance-authority";import{ChevronRight as Pu,MoreHorizontal as hu}from"lucide-react";import{createContext as Tu,forwardRef as Br,useContext as Pa}from"react";import{jsxDEV as We}from"react/jsx-dev-runtime";var le={sm:"sm",md:"md",lg:"lg"},yo=Tu(le.md),rn=or("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}}),on=or("inline-flex items-center gap-1.5"),an=or("gs-interactive hover:text-foreground focus-visible:outline-none focus-visible:text-foreground"),nn=or("font-normal text-foreground"),sn=or("",{variants:{size:{[le.sm]:"[&>svg]:size-3",[le.md]:"[&>svg]:size-3.5",[le.lg]:"[&>svg]:size-4"}},defaultVariants:{size:le.md}}),ln=or("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}}),mn=Br(({size:e=le.md,...t},r)=>{let o=m(e)??le.md;return We(yo.Provider,{value:o,children:We("nav",{ref:r,"aria-label":"breadcrumb",...t},void 0,!1,void 0,this)},void 0,!1,void 0,this)});mn.displayName="Breadcrumb";var dn=Br(({className:e,...t},r)=>{let o=Pa(yo);return We("ol",{ref:r,className:a(rn({size:o}),e),...t},void 0,!1,void 0,this)});dn.displayName="BreadcrumbList";var pn=Br(({className:e,...t},r)=>We("li",{ref:r,className:a(on(),e),...t},void 0,!1,void 0,this));pn.displayName="BreadcrumbItem";var cn=Br(({asChild:e,className:t,...r},o)=>{return We(e?yu:"a",{ref:o,className:a(an(),t),...r},void 0,!1,void 0,this)});cn.displayName="BreadcrumbLink";var un=Br(({className:e,...t},r)=>We("span",{ref:r,role:"link",tabIndex:0,"aria-disabled":"true","aria-current":"page",className:a(nn(),e),...t},void 0,!1,void 0,this));un.displayName="BreadcrumbPage";var fn=({children:e,className:t,...r})=>{let o=Pa(yo),i={[le.sm]:"size-3",[le.md]:"size-3.5",[le.lg]:"size-4"};return We("li",{role:"presentation","aria-hidden":"true",className:a(sn({size:o}),t),...r,children:e??We(Pu,{className:i[o]},void 0,!1,void 0,this)},void 0,!1,void 0,this)};fn.displayName="BreadcrumbSeparator";var gn=({className:e,...t})=>{let r=Pa(yo);return We("span",{role:"presentation","aria-hidden":"true",className:a(ln({size:r}),e),...t,children:[We(hu,{},void 0,!1,void 0,this),We("span",{className:"sr-only",children:"More"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)};gn.displayName="BreadcrumbEllipsis";import{cva as xu}from"class-variance-authority";import{forwardRef as zu}from"react";import{jsxDEV as Su}from"react/jsx-dev-runtime";var Dr={horizontal:"horizontal",vertical:"vertical"},bn=xu("inline-flex items-stretch",{variants:{orientation:{[Dr.horizontal]:"flex-row",[Dr.vertical]:"flex-col"},attached:{true:"gap-0 [&>*:not(:first-child)]:rounded-l-none [&>*:not(:last-child)]:rounded-r-none",false:"gap-2"}},defaultVariants:{orientation:Dr.horizontal,attached:!1}}),vn=zu(({className:e,orientation:t=Dr.horizontal,attached:r=!1,fullWidth:o=!1,...i},n)=>Su("div",{ref:n,className:a(bn({orientation:t,attached:r}),o&&"w-full",e),...i},void 0,!1,void 0,this));vn.displayName="ButtonGroup";import{cva as ft}from"class-variance-authority";import{forwardRef as Cu,useCallback as ar,useEffect as wu,useMemo as yn,useState as Pn}from"react";import{jsxDEV as Le}from"react/jsx-dev-runtime";var B={sm:"sm",md:"md",lg:"lg",xl:"xl"},Tn=ft("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}}),xn=ft("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}}),zn=ft("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}}),ha=ft(["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}}),Sn=ft("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}}),Cn=ft("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=ft(["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"}}),Mu=ft("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}}),hn=["Su","Mo","Tu","We","Th","Fr","Sa"],Nu=["January","February","March","April","May","June","July","August","September","October","November","December"],nt=(e)=>new Date(e.getFullYear(),e.getMonth(),e.getDate()),ir=(e,t)=>{return e.getDate()===t.getDate()&&e.getMonth()===t.getMonth()&&e.getFullYear()===t.getFullYear()},Mn=Cu(({className:e,size:t="md",cellSize:r,mode:o="single",value:i,defaultValue:n,onChange:s,rangeValue:l,onRangeChange:d,viewMonth:c,onViewMonthChange:g,minDate:u,maxDate:P,disabledDates:p=[],weekStartsOn:b=1,highlightToday:x=!0,...M},w)=>{let z=m(t)??B.md,v=m(r??z)??z,[T,I]=Pn(i??n??null),[S,H]=Pn(i??n??new Date),k=c??S,O=ar((f)=>{if(g){let y=typeof f==="function"?f(c??S):f;g(y)}else H((y)=>{return typeof f==="function"?f(y):f})},[c,S,g]),X=i!==void 0?i:T,_=u?nt(u):null,$=P?nt(P):null;wu(()=>{if(i!==void 0){if(I(i??null),i&&!c)H(i)}},[i,c]);let C=ar((f,y)=>{return(new Date(f,y,1).getDay()-b+7)%7},[b]),A=yn(()=>{let f=k.getFullYear(),y=k.getMonth(),N=C(f,y),ce=new Date(f,y+1,0).getDate(),Z=[];for(let E=0;E<N;E+=1)Z.push({key:`leading-${f}-${y}-${E}`,date:null});for(let E=1;E<=ce;E+=1)Z.push({key:`day-${f}-${y}-${E}`,date:new Date(f,y,E)});let ke=(7-Z.length%7)%7;for(let E=0;E<ke;E+=1)Z.push({key:`trailing-${f}-${y}-${E}`,date:null});return Z},[k,C]),h=ar((f)=>{let y=nt(f);if(_&&y<_)return!0;if($&&y>$)return!0;return p.some((N)=>ir(y,nt(N)))},[_,$,p]),V=ar((f)=>{if(h(f))return"disabled";if(o==="range"&&l){let{from:y,to:N}=l;if(y&&ir(f,y))return"rangeStart";if(N&&ir(f,N))return"rangeEnd";if(y&&N){let ce=nt(f),Z=nt(y),ke=nt(N);if(ce>Z&&ce<ke)return"range"}}if(o==="single"&&X&&ir(f,X))return"selected";if(x&&ir(f,new Date))return"today";return"default"},[X,x,h,o,l]),J=ar((f)=>{if(h(f))return;let y=new Date(f);if(o==="range"){if(!l?.from||l.from&&l.to)d?.({from:y,to:void 0});else{let N=nt(l.from);if(nt(y)<N)d?.({from:y,to:l.from});else d?.({from:l.from,to:y})}return}if(i===void 0)I(y);s?.(y)},[h,o,s,d,l,i]),L=ar((f)=>{O((y)=>{let N=new Date(y);return N.setMonth(N.getMonth()+f),N})},[O]),K=yn(()=>{return[...hn.slice(b),...hn.slice(0,b)]},[b]);return Le("div",{ref:w,className:a(Tn({size:z}),e),...M,children:[Le("div",{className:a(xn({size:z})),children:[Le("button",{type:"button",onClick:()=>L(-1),className:a(ha({size:z})),"aria-label":"Previous month",children:Le("svg",{className:"size-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:Le("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),Le("span",{className:a(zn({size:z})),children:[Nu[k.getMonth()]," ",k.getFullYear()]},void 0,!0,void 0,this),Le("button",{type:"button",onClick:()=>L(1),className:a(ha({size:z})),"aria-label":"Next month",children:Le("svg",{className:"size-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:Le("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),Le("div",{className:a(Sn({size:z})),children:[K.map((f)=>Le("div",{className:a(Cn({size:v})),children:f},f,!1,void 0,this)),A.map((f)=>{if(!f.date)return Le("div",{"aria-hidden":"true",className:a(Mu({size:v}))},f.key,!1,void 0,this);let y=f.date,N=V(y);return Le("button",{type:"button",onClick:()=>J(y),disabled:N==="disabled",className:a(wn({size:v,state:N})),children:y.getDate()},f.key,!1,void 0,this)})]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)});Mn.displayName="Calendar";import{Slot as nr}from"@radix-ui/react-slot";import{cva as Lu}from"class-variance-authority";import{forwardRef as sr}from"react";import{jsxDEV as lr}from"react/jsx-dev-runtime";var Po={default:"default",muted:"muted",danger:"danger"},Nn=Lu("gs-interactive relative overflow-hidden rounded-[var(--radius)] border bg-card text-card-foreground shadow-[var(--shadow-sm)]",{variants:{variant:{[Po.default]:"border-border",[Po.muted]:"border-border/70 bg-muted/40",[Po.danger]:"border-destructive/30 bg-destructive/[0.06]"}},defaultVariants:{variant:Po.default}}),Ln=sr(({asChild:e=!1,className:t,variant:r,...o},i)=>{return lr(e?nr:"div",{ref:i,className:a(Nn({variant:r}),t),...o},void 0,!1,void 0,this)});Ln.displayName="Card";var Rn=sr(({asChild:e=!1,className:t,...r},o)=>{return lr(e?nr:"div",{ref:o,className:a("flex flex-col gap-1.5 border-b border-border/50 p-4",t),...r},void 0,!1,void 0,this)});Rn.displayName="CardHeader";var Hn=sr(({asChild:e=!1,className:t,...r},o)=>{return lr(e?nr:"div",{ref:o,className:a("p-4",t),...r},void 0,!1,void 0,this)});Hn.displayName="CardContent";var kn=sr(({asChild:e=!1,className:t,...r},o)=>{return lr(e?nr:"div",{ref:o,className:a("flex items-center border-t border-border/50 p-4",t),...r},void 0,!1,void 0,this)});kn.displayName="CardFooter";var An=sr(({asChild:e=!1,className:t,...r},o)=>{return lr(e?nr:"h3",{ref:o,className:a("font-semibold text-base leading-none tracking-tight",t),...r},void 0,!1,void 0,this)});An.displayName="CardTitle";var In=sr(({asChild:e=!1,className:t,...r},o)=>{return lr(e?nr:"p",{ref:o,className:a("text-sm text-muted-foreground",t),...r},void 0,!1,void 0,this)});In.displayName="CardDescription";import*as To from"@radix-ui/react-checkbox";import{cva as Ru}from"class-variance-authority";import{Check as Hu,Minus as ku}from"lucide-react";import{forwardRef as Au}from"react";import{jsxDEV as ho}from"react/jsx-dev-runtime";var $e={sm:"sm",md:"md",lg:"lg",xl:"xl"},mr={default:"default",error:"error",success:"success"},Bn=Ru("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:{[mr.default]:"enabled:hover:border-primary/70",[mr.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",[mr.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:mr.default}}),Vn={[$e.sm]:"size-3.5",[$e.md]:"size-3.5",[$e.lg]:"size-4",[$e.xl]:"size-5"},Dn=Au(({className:e,size:t=$e.md,status:r=mr.default,checked:o,disabled:i,...n},s)=>{let l=m(t);return ho(To.Root,{ref:s,checked:o,disabled:i,className:a(Bn({size:l,status:r}),e),...n,children:ho(To.Indicator,{className:"gs-checkbox-indicator flex items-center justify-center text-current",children:o==="indeterminate"?ho(ku,{className:Vn[l]},void 0,!1,void 0,this):ho(Hu,{className:Vn[l]},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)});Dn.displayName="Checkbox";import{cva as gt}from"class-variance-authority";import{forwardRef as Iu,useCallback as Vu,useState as Bu}from"react";import{jsxDEV as xe,Fragment as Fn}from"react/jsx-dev-runtime";var U={sm:"sm",md:"md",lg:"lg"},Ta={default:"default",ghost:"ghost"},_n=gt("relative rounded-lg overflow-hidden font-mono",{variants:{size:{[U.sm]:"text-xs",[U.md]:"text-sm",[U.lg]:"text-base"},variant:{[Ta.default]:"bg-muted border border-border",[Ta.ghost]:"bg-transparent"}},defaultVariants:{size:U.md,variant:Ta.default}}),On=gt("flex items-center justify-between border-b border-border bg-muted",{variants:{size:{[U.sm]:"px-2.5 py-1.5 text-xs",[U.md]:"px-4 py-2 text-sm",[U.lg]:"px-5 py-2.5 text-base"}},defaultVariants:{size:U.md}}),Gn=gt("text-muted-foreground font-medium",{variants:{size:{[U.sm]:"text-[11px]",[U.md]:"text-xs",[U.lg]:"text-sm"}},defaultVariants:{size:U.md}}),Wn=gt(["inline-flex items-center gap-1.5 rounded-md font-medium","text-muted-foreground hover:text-foreground hover:bg-muted","transition-all duration-150","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary"],{variants:{size:{[U.sm]:"px-2 py-1 text-xs",[U.md]:"px-2.5 py-1 text-xs",[U.lg]:"px-3 py-1.5 text-sm"},copied:{true:"text-success",false:""}},defaultVariants:{size:U.md,copied:!1}}),$n=gt("overflow-x-auto",{variants:{size:{[U.sm]:"p-2.5",[U.md]:"p-4",[U.lg]:"p-5"}},defaultVariants:{size:U.md}}),Un=gt("text-foreground",{variants:{size:{[U.sm]:"",[U.md]:"",[U.lg]:""},showLineNumbers:{true:"",false:""}},defaultVariants:{size:U.md,showLineNumbers:!1}}),Kn=gt("block",{variants:{size:{[U.sm]:"min-h-[1.25rem]",[U.md]:"min-h-[1.5rem]",[U.lg]:"min-h-[1.75rem]"},highlighted:{true:"bg-primary/10 -mx-4 px-4",false:""}},defaultVariants:{size:U.md,highlighted:!1}}),Yn=gt("inline-block text-right text-muted-foreground select-none",{variants:{size:{[U.sm]:"w-6 mr-2 text-[10px]",[U.md]:"w-8 mr-4 text-xs",[U.lg]:"w-10 mr-5 text-sm"}},defaultVariants:{size:U.md}}),Xn=Iu(({className:e,code:t,language:r,showLineNumbers:o=!1,highlightedLines:i=[],showCopy:n=!0,size:s="md",variant:l="default",onCopy:d,...c},g)=>{let u=m(s),[P,p]=Bu(!1),b=Vu(async()=>{try{await navigator.clipboard.writeText(t),p(!0),d?.(t),setTimeout(()=>p(!1),2000)}catch(w){}},[t,d]),x=t.split(`
3
+ `),M=new Set(i);return xe("div",{ref:g,className:a(_n({size:u,variant:l}),e),...c,children:[(r||n)&&xe("div",{className:a(On({size:u})),children:[xe("span",{className:a(Gn({size:u})),children:r},void 0,!1,void 0,this),n&&xe("button",{type:"button",onClick:b,className:a(Wn({size:u,copied:P})),children:P?xe(Fn,{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(Fn,{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:a($n({size:u})),children:xe("pre",{className:a(Un({size:u,showLineNumbers:o})),children:xe("code",{children:x.map((w,z)=>xe("span",{className:a(Kn({size:u,highlighted:M.has(z+1)})),children:[o&&xe("span",{className:a(Yn({size:u})),children:z+1},void 0,!1,void 0,this),w,`
4
+ `]},`line-${String(z)}`,!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)});Xn.displayName="CodeBlock";import*as dr from"@radix-ui/react-collapsible";import{cva as Du}from"class-variance-authority";import{forwardRef as Fu}from"react";import{jsxDEV as Gu}from"react/jsx-dev-runtime";var Zn=Du("gs-collapsible-content overflow-hidden"),_u=dr.Root,Ou=dr.CollapsibleTrigger,qn=Fu(({className:e,...t},r)=>Gu(dr.CollapsibleContent,{ref:r,className:a(Zn(),e),...t},void 0,!1,void 0,this));qn.displayName="CollapsibleContent";import*as D from"@radix-ui/react-context-menu";import{cva as At}from"class-variance-authority";import{Check as Wu,ChevronRight as $u,Circle as Uu}from"lucide-react";import{createContext as Ku,forwardRef as bt,useContext as pr}from"react";import{jsxDEV as me}from"react/jsx-dev-runtime";var G={sm:"sm",md:"md",lg:"lg"},It=Ku(G.md),xa=At("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)]"),za=At("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 [&_svg]:pointer-events-none [&_svg]:shrink-0",{variants:{size:{[G.sm]:"h-6 gap-1.5 px-1.5 text-xs [&_svg]:size-3",[G.md]:"h-8 gap-2 px-2 text-sm [&_svg]:size-4",[G.lg]:"h-9 gap-2 px-2.5 text-sm [&_svg]:size-4"}},defaultVariants:{size:G.md}}),Jn=At("gs-interactive relative flex cursor-pointer select-none items-center rounded-md outline-none hover:bg-accent/80 focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:text-muted-foreground/50 data-[disabled]:cursor-not-allowed",{variants:{size:{[G.sm]:"h-6 pl-6 pr-1.5 text-xs",[G.md]:"h-8 pl-8 pr-2 text-sm",[G.lg]:"h-9 pl-8 pr-2.5 text-sm"}},defaultVariants:{size:G.md}}),Qn=At("gs-interactive relative flex cursor-pointer select-none items-center rounded-md outline-none hover:bg-accent/80 focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:text-muted-foreground/50 data-[disabled]:cursor-not-allowed",{variants:{size:{[G.sm]:"h-6 pl-6 pr-1.5 text-xs",[G.md]:"h-8 pl-8 pr-2 text-sm",[G.lg]:"h-9 pl-8 pr-2.5 text-sm"}},defaultVariants:{size:G.md}}),En=At("font-semibold text-muted-foreground",{variants:{size:{[G.sm]:"px-1.5 py-0.5 text-[10px]",[G.md]:"px-2 py-1.5 text-xs",[G.lg]:"px-2.5 py-1.5 text-xs"}},defaultVariants:{size:G.md}}),jn=At("-mx-1 my-1 h-px bg-border/50"),es=At("ml-auto tracking-widest text-muted-foreground/70",{variants:{size:{[G.sm]:"text-[10px]",[G.md]:"text-xs",[G.lg]:"text-xs"}},defaultVariants:{size:G.md}}),ts={[G.sm]:"absolute left-1.5 flex size-3 items-center justify-center",[G.md]:"absolute left-2 flex size-3.5 items-center justify-center",[G.lg]:"absolute left-2.5 flex size-4 items-center justify-center"},Yu={[G.sm]:"size-3",[G.md]:"size-3.5",[G.lg]:"size-4"},Xu={[G.sm]:"size-1.5 fill-current",[G.md]:"size-2 fill-current",[G.lg]:"size-2.5 fill-current"},Zu=D.Root,qu=D.Trigger,Ju=D.Group,Qu=D.Portal,Eu=D.Sub,ju=D.RadioGroup,rs=bt(({className:e,inset:t,children:r,...o},i)=>{let n=pr(It),s=m(n);return me(D.SubTrigger,{ref:i,className:a(za({size:s}),"data-[state=open]:bg-accent",t&&"pl-8",e),...o,children:[r,me($u,{className:"ml-auto"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});rs.displayName=D.SubTrigger.displayName;var os=bt(({className:e,...t},r)=>me(D.Portal,{children:me(D.SubContent,{ref:r,className:a(xa(),e),...t},void 0,!1,void 0,this)},void 0,!1,void 0,this));os.displayName=D.SubContent.displayName;var as=bt(({className:e,size:t,...r},o)=>{let i=m(t)??G.md;return me(It.Provider,{value:i,children:me(D.Portal,{children:me(D.Content,{ref:o,className:a(xa(),e),...r},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)});as.displayName=D.Content.displayName;var is=bt(({className:e,inset:t,...r},o)=>{let i=pr(It),n=m(i);return me(D.Item,{ref:o,className:a(za({size:n}),t&&"pl-8",e),...r},void 0,!1,void 0,this)});is.displayName=D.Item.displayName;var ns=bt(({className:e,children:t,checked:r,...o},i)=>{let n=pr(It),s=m(n)??G.md;return me(D.CheckboxItem,{ref:i,className:a(Jn({size:s}),e),checked:r,...o,children:[me("span",{className:ts[s],children:me(D.ItemIndicator,{children:me(Wu,{className:Yu[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)});ns.displayName=D.CheckboxItem.displayName;var ss=bt(({className:e,children:t,...r},o)=>{let i=pr(It),n=m(i)??G.md;return me(D.RadioItem,{ref:o,className:a(Qn({size:n}),e),...r,children:[me("span",{className:ts[n],children:me(D.ItemIndicator,{children:me(Uu,{className:Xu[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)});ss.displayName=D.RadioItem.displayName;var ls=bt(({className:e,inset:t,...r},o)=>{let i=pr(It),n=m(i);return me(D.Label,{ref:o,className:a(En({size:n}),t&&"pl-8",e),...r},void 0,!1,void 0,this)});ls.displayName=D.Label.displayName;var ms=bt(({className:e,...t},r)=>me(D.Separator,{ref:r,className:a(jn(),e),...t},void 0,!1,void 0,this));ms.displayName=D.Separator.displayName;var ds=({className:e,...t})=>{let r=pr(It),o=m(r);return me("span",{className:a(es({size:o}),e),...t},void 0,!1,void 0,this)};ds.displayName="ContextMenuShortcut";import*as ge from"@radix-ui/react-dialog";import{cva as ef}from"class-variance-authority";import{X as tf}from"lucide-react";import{forwardRef as xo}from"react";import{jsxDEV as Ue}from"react/jsx-dev-runtime";var vt={sm:"sm",md:"md",lg:"lg",xl:"xl",full:"full"},Sa=ge.Root,rf=ge.Trigger,ps=ge.Portal,of=ge.Close,Ca=xo(({className:e,...t},r)=>Ue(ge.Overlay,{ref:r,className:a("gs-dialog-overlay fixed inset-0 z-50 bg-black/50",e),...t},void 0,!1,void 0,this));Ca.displayName="DialogOverlay";var cs=ef("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}}),zo=xo(({className:e,children:t,size:r=vt.md,showClose:o=!0,...i},n)=>{let s=m(r);return Ue(ps,{children:[Ue(Ca,{},void 0,!1,void 0,this),Ue(ge.Content,{ref:n,className:a(cs({size:s}),e),...i,children:[t,o&&Ue(ge.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:[Ue(tf,{className:"size-4"},void 0,!1,void 0,this),Ue("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)});zo.displayName="DialogContent";var us=({className:e,...t})=>Ue("div",{className:a("flex flex-col space-y-1.5 text-center sm:text-left",e),...t},void 0,!1,void 0,this);us.displayName="DialogHeader";var fs=({className:e,...t})=>Ue("div",{className:a("flex flex-col-reverse sm:flex-row sm:justify-end sm:gap-2.5",e),...t},void 0,!1,void 0,this);fs.displayName="DialogFooter";var gs=xo(({className:e,...t},r)=>Ue(ge.Title,{ref:r,className:a("font-semibold text-lg leading-none tracking-tight",e),...t},void 0,!1,void 0,this));gs.displayName="DialogTitle";var bs=xo(({className:e,...t},r)=>Ue(ge.Description,{ref:r,className:a("text-muted-foreground text-sm",e),...t},void 0,!1,void 0,this));bs.displayName="DialogDescription";import{cva as wa}from"class-variance-authority";import{X as af}from"lucide-react";import{forwardRef as So}from"react";import{Drawer as st}from"vaul";import{jsxDEV as Ie}from"react/jsx-dev-runtime";var Ve={sm:"sm",md:"md",lg:"lg",xl:"xl",full:"full"},nf={[Ve.sm]:"sm:max-w-sm",[Ve.md]:"sm:max-w-md",[Ve.lg]:"sm:max-w-lg",[Ve.xl]:"sm:max-w-xl",[Ve.full]:"sm:max-w-full"},sf={[Ve.sm]:"sm:max-h-[30vh]",[Ve.md]:"sm:max-h-[50vh]",[Ve.lg]:"sm:max-h-[70vh]",[Ve.xl]:"sm:max-h-[85vh]",[Ve.full]:"sm:max-h-full"},vs=wa(["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"]),ys=wa(["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"]),Ps=wa("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"}}),lf=st.Root,mf=st.Trigger,df=st.Close,hs=st.Portal,Ma=So(({className:e,...t},r)=>Ie(st.Overlay,{ref:r,className:a(vs(),e),...t},void 0,!1,void 0,this));Ma.displayName="DrawerOverlay";var Ts=So(({size:e=Ve.md,showClose:t=!1,direction:r="bottom",className:o,children:i,...n},s)=>{let d=r==="left"||r==="right"?nf[e]:sf[e];return Ie(hs,{children:[Ie(Ma,{},void 0,!1,void 0,this),Ie(st.Content,{ref:s,className:a(ys(),d,o),...n,children:[(r==="top"||r==="bottom")&&Ie("div",{className:a(Ps({direction:r}))},void 0,!1,void 0,this),i,t&&Ie(st.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:[Ie(af,{className:"size-4"},void 0,!1,void 0,this),Ie("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)});Ts.displayName="DrawerContent";var xs=({className:e,...t})=>Ie("div",{className:a("flex flex-col gap-1.5 p-4 group-data-[vaul-drawer-direction=bottom]/drawer-content:text-center group-data-[vaul-drawer-direction=top]/drawer-content:text-center sm:text-left",e),...t},void 0,!1,void 0,this);xs.displayName="DrawerHeader";var zs=({className:e,...t})=>Ie("div",{className:a("mt-auto flex flex-col gap-2 p-4",e),...t},void 0,!1,void 0,this);zs.displayName="DrawerFooter";var Ss=So(({className:e,...t},r)=>Ie(st.Title,{ref:r,className:a("font-semibold text-foreground text-lg",e),...t},void 0,!1,void 0,this));Ss.displayName="DrawerTitle";var Cs=So(({className:e,...t},r)=>Ie(st.Description,{ref:r,className:a("text-muted-foreground text-sm",e),...t},void 0,!1,void 0,this));Cs.displayName="DrawerDescription";import*as F from"@radix-ui/react-dropdown-menu";import{cva as Bt}from"class-variance-authority";import{Check as pf,ChevronRight as cf,Circle as uf}from"lucide-react";import{createContext as ff,forwardRef as yt,useCallback as gf,useContext as cr,useEffect as bf,useRef as ws,useState as vf}from"react";import{jsxDEV as se}from"react/jsx-dev-runtime";var W={sm:"sm",md:"md",lg:"lg"},Dt=ff(W.md),Vt=null,Fr=null,yf=0,Na=Bt("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)]"),La=Bt("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 [&_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"}},defaultVariants:{size:W.md}}),Ms=Bt("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}}),Ns=Bt("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}}),Ls=Bt("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}}),Rs=Bt("-mx-1 my-1 h-px bg-border/50"),Hs=Bt("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}}),ks={[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"},Pf={[W.sm]:"size-3",[W.md]:"size-3.5",[W.lg]:"size-4"},hf={[W.sm]:"size-1.5 fill-current",[W.md]:"size-2 fill-current",[W.lg]:"size-2.5 fill-current"},As=({children:e,open:t,defaultOpen:r,onOpenChange:o,...i})=>{let[n,s]=vf(r??!1),l=t!==void 0,d=l?t:n,c=ws(++yf),g=ws({onOpenChange:o,isControlled:l});g.current={onOpenChange:o,isControlled:l};let u=gf((P)=>{let{onOpenChange:p,isControlled:b}=g.current;if(P){if(Vt!==null&&Vt!==c.current&&Fr)Fr();Vt=c.current,Fr=()=>{let{onOpenChange:x,isControlled:M}=g.current;if(!M)s(!1);x?.(!1)}}else if(Vt===c.current)Vt=null,Fr=null;if(!b)s(P);p?.(P)},[]);return bf(()=>{return()=>{if(Vt===c.current)Vt=null,Fr=null}},[]),se(F.Root,{open:d,onOpenChange:u,...i,children:e},void 0,!1,void 0,this)};As.displayName="DropdownMenu";var Tf=F.Trigger,xf=F.Group,zf=F.Portal,Sf=F.Sub,Cf=F.RadioGroup,Is=yt(({className:e,inset:t,children:r,...o},i)=>{let n=cr(Dt),s=m(n);return se(F.SubTrigger,{ref:i,className:a(La({size:s}),"data-[state=open]:bg-accent",t&&"pl-8",e),...o,children:[r,se(cf,{className:"ml-auto"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});Is.displayName=F.SubTrigger.displayName;var Vs=yt(({className:e,...t},r)=>se(F.Portal,{children:se(F.SubContent,{ref:r,className:a(Na(),e),...t},void 0,!1,void 0,this)},void 0,!1,void 0,this));Vs.displayName=F.SubContent.displayName;var Bs=yt(({className:e,sideOffset:t=4,size:r,...o},i)=>{let n=m(r)??W.md;return se(Dt.Provider,{value:n,children:se(F.Portal,{children:se(F.Content,{ref:i,sideOffset:t,className:a(Na(),e),...o},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)});Bs.displayName=F.Content.displayName;var Ds=yt(({className:e,inset:t,...r},o)=>{let i=cr(Dt),n=m(i);return se(F.Item,{ref:o,className:a(La({size:n}),t&&"pl-8",e),...r},void 0,!1,void 0,this)});Ds.displayName=F.Item.displayName;var Fs=yt(({className:e,children:t,checked:r,...o},i)=>{let n=cr(Dt),s=m(n)??W.md;return se(F.CheckboxItem,{ref:i,className:a(Ms({size:s}),e),checked:r,...o,children:[se("span",{className:ks[s],children:se(F.ItemIndicator,{children:se(pf,{className:Pf[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)});Fs.displayName=F.CheckboxItem.displayName;var _s=yt(({className:e,children:t,...r},o)=>{let i=cr(Dt),n=m(i)??W.md;return se(F.RadioItem,{ref:o,className:a(Ns({size:n}),e),...r,children:[se("span",{className:ks[n],children:se(F.ItemIndicator,{children:se(uf,{className:hf[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)});_s.displayName=F.RadioItem.displayName;var Os=yt(({className:e,inset:t,...r},o)=>{let i=cr(Dt),n=m(i);return se(F.Label,{ref:o,className:a(Ls({size:n}),t&&"pl-8",e),...r},void 0,!1,void 0,this)});Os.displayName=F.Label.displayName;var Gs=yt(({className:e,...t},r)=>se(F.Separator,{ref:r,className:a(Rs(),e),...t},void 0,!1,void 0,this));Gs.displayName=F.Separator.displayName;var Ws=({className:e,...t})=>{let r=cr(Dt),o=m(r);return se("span",{className:a(Hs({size:o}),e),...t},void 0,!1,void 0,this)};Ws.displayName="DropdownMenuShortcut";import{cva as Or}from"class-variance-authority";import{forwardRef as wf}from"react";import{jsxDEV as _r}from"react/jsx-dev-runtime";var be={sm:"sm",md:"md",lg:"lg"},$s=Or("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}}),Us=Or("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}}),Ks=Or("font-semibold text-foreground",{variants:{size:{[be.sm]:"text-sm",[be.md]:"text-lg",[be.lg]:"text-xl"}},defaultVariants:{size:be.md}}),Ys=Or("text-muted-foreground max-w-sm",{variants:{size:{[be.sm]:"text-xs",[be.md]:"text-sm",[be.lg]:"text-base"}},defaultVariants:{size:be.md}}),Xs=Or("flex items-center gap-2 mt-2"),Zs=wf(({className:e,icon:t,title:r,description:o,actions:i,size:n=be.md,children:s,...l},d)=>{let c=m(n);return _r("div",{ref:d,className:a($s({size:c}),e),...l,children:[t&&_r("div",{className:Us({size:c}),children:t},void 0,!1,void 0,this),r&&_r("h3",{className:Ks({size:c}),children:r},void 0,!1,void 0,this),o&&_r("p",{className:Ys({size:c}),children:o},void 0,!1,void 0,this),i&&_r("div",{className:Xs(),children:i},void 0,!1,void 0,this),s]},void 0,!0,void 0,this)});Zs.displayName="EmptyState";import{cva as ur}from"class-variance-authority";import{Component as Mf,createElement as qs}from"react";import{jsxDEV as ze,Fragment as Lf}from"react/jsx-dev-runtime";var Js=ur(["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"}}),Qs=ur(["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"}}),Es=ur("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"}}),js=ur("max-w-xl text-muted-foreground transition-all duration-200",{variants:{size:{sm:"text-sm",md:"text-sm",lg:"text-base",xl:"text-lg"}},defaultVariants:{size:"md"}}),el=ur("mt-2 flex flex-wrap items-center justify-center gap-2"),tl=ur("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 rl extends Mf{static displayName="ErrorBoundary";constructor(e){super(e);this.state={hasError:!1,error:null}}static getDerivedStateFromError(e){return{hasError:!0,error:e}}componentDidCatch(e,t){this.props.onError?.(e,t)}handleReset=()=>{this.setState({hasError:!1,error:null}),this.props.onReset?.()};render(){let{children:e,fallback:t,showDetails:r=!1,size:o="md",variant:i="destructive",className:n,title:s="Something went wrong",description:l="An unexpected error occurred. Please try again.",icon:d,actions:c,resetLabel:g="Try again",hideReset:u=!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 qs(t,p);return t}let b=null;if(c)b=typeof c==="function"?qs(c,p):c;else if(!u){let M={destructive:"border-destructive/30 bg-destructive text-destructive-foreground hover:bg-destructive/90",warning:"border-warning/30 bg-warning text-warning-foreground hover:bg-warning/90",info:"border-info/30 bg-info text-info-foreground hover:bg-info/90"};b=ze("button",{type:"button",onClick:this.handleReset,className:a("inline-flex items-center justify-center rounded-md border px-4 py-2 font-medium text-sm","transition-colors duration-150 ease-out","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-1",M[i]),children:g},void 0,!1,void 0,this)}let x=P?P(this.state.error):ze(Lf,{children:[ze("strong",{children:"Error:"},void 0,!1,void 0,this)," ",this.state.error.message,this.state.error.stack&&ze("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 ze("div",{className:a(Js({size:o,variant:i}),n),children:[ze("div",{className:a(Qs({size:o,variant:i})),children:d??ze(Nf,{},void 0,!1,void 0,this)},void 0,!1,void 0,this),ze("h3",{className:a(Es({size:o,variant:i})),children:s},void 0,!1,void 0,this),ze("p",{className:a(js({size:o})),children:l},void 0,!1,void 0,this),b&&ze("div",{className:a(el()),children:b},void 0,!1,void 0,this),r&&ze("div",{className:a(tl()),children:x},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}return e}}function Nf(){return ze("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:[ze("circle",{cx:"12",cy:"12",r:"10"},void 0,!1,void 0,this),ze("line",{x1:"12",x2:"12",y1:"8",y2:"12"},void 0,!1,void 0,this),ze("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 Pt}from"class-variance-authority";import{forwardRef as Rf,useCallback as Ke,useRef as Hf,useState as ol}from"react";import{jsxDEV as Pe}from"react/jsx-dev-runtime";var ee={sm:"sm",md:"md",lg:"lg",xl:"xl"},al=Pt(["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}}),il=Pt("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}}),Ra=Pt("text-center",{variants:{size:{[ee.sm]:"text-sm",[ee.md]:"text-sm",[ee.lg]:"text-base",[ee.xl]:"text-lg"}},defaultVariants:{size:ee.md}}),nl=Pt("mt-4 w-full space-y-2"),sl=Pt(["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"]),ll=Pt("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"}}),ml=Pt("text-muted-foreground",{variants:{size:{[ee.sm]:"text-xs",[ee.md]:"text-sm",[ee.lg]:"text-sm",[ee.xl]:"text-base"}},defaultVariants:{size:"md"}}),dl=Pt(["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"]),pl=Rf(({className:e,size:t="md",disabled:r=!1,accept:o,multiple:i=!1,maxSize:n,maxFiles:s,value:l=[],onChange:d,onError:c,icon:g,title:u="Drop files here or click to upload",description:P,showFileList:p=!0,...b},x)=>{let M=m(t),[w,z]=ol(!1),[v,T]=ol(!1),I=Hf(null),S=Ke((L)=>{if(L===0)return"0 Bytes";let K=1024,f=["Bytes","KB","MB","GB"],y=Math.floor(Math.log(L)/Math.log(K));return`${parseFloat((L/K**y).toFixed(2))} ${f[y]}`},[]),H=Ke((L)=>{let K=[...L];if(T(!1),o){let f=o.split(",").map((y)=>y.trim());if(K=K.filter((y)=>{return f.some((N)=>{if(N.startsWith("."))return y.name.toLowerCase().endsWith(N.toLowerCase());if(N.endsWith("/*"))return y.type.startsWith(N.slice(0,-1));return y.type===N})}),K.length<L.length)c?.("Some files were rejected due to file type"),T(!0)}if(n){let f=K.length;if(K=K.filter((y)=>y.size<=n),K.length<f)c?.(`File size must be less than ${S(n)}`),T(!0)}if(s&&K.length+l.length>s)K=K.slice(0,s-l.length),c?.(`Maximum ${s} files allowed`),T(!0);return K},[o,n,s,l.length,c,S]),k=Ke((L)=>{if(!L||L.length===0)return;let K=Array.from(L),f=H(K);if(f.length>0)if(i)d?.([...l,...f]);else d?.(f.slice(0,1))},[i,l,d,H]),O=Ke((L)=>{L.preventDefault(),L.stopPropagation(),z(!0)},[]),X=Ke((L)=>{L.preventDefault(),L.stopPropagation(),z(!1)},[]),_=Ke((L)=>{L.preventDefault(),L.stopPropagation()},[]),$=Ke((L)=>{if(L.preventDefault(),L.stopPropagation(),z(!1),r)return;k(L.dataTransfer.files)},[r,k]),C=Ke((L)=>{if(k(L.target.files),I.current)I.current.value=""},[k]),A=Ke(()=>{if(!r)I.current?.click()},[r]),h=Ke((L)=>{if(L.key==="Enter"||L.key===" ")L.preventDefault(),A()},[A]),V=Ke((L)=>{let K=l.filter((f,y)=>y!==L);d?.(K)},[l,d]),J=Pe("svg",{className:a(il({size:M,isDragging:w})),fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1.5,children:Pe("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3 16.5v2.25A2.25 2.25 0 005.25 21h13.5A2.25 2.25 0 0021 18.75V16.5m-13.5-9L12 3m0 0l4.5 4.5M12 3v13.5"},void 0,!1,void 0,this)},void 0,!1,void 0,this);return Pe("div",{ref:x,className:a("w-full",e),...b,children:[Pe("div",{role:"button",tabIndex:r?-1:0,onClick:A,onKeyDown:h,onDragEnter:O,onDragLeave:X,onDragOver:_,onDrop:$,className:a(al({size:M,isDragging:w,disabled:r,hasError:v})),children:[Pe("input",{ref:I,type:"file",accept:o,multiple:i,disabled:r,onChange:C,className:"sr-only"},void 0,!1,void 0,this),g||J,Pe("p",{className:a(Ra({size:M}),"font-medium text-foreground"),children:u},void 0,!1,void 0,this),P&&Pe("p",{className:a(Ra({size:M}),"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:a(nl()),children:l.map((L,K)=>Pe("div",{className:a(sl()),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:a(ll({size:M})),children:L.name},void 0,!1,void 0,this),Pe("span",{className:a(ml({size:M})),children:S(L.size)},void 0,!1,void 0,this),Pe("button",{type:"button",onClick:(f)=>{f.stopPropagation(),V(K)},className:a(dl()),"aria-label":`Remove ${L.name}`,children:Pe("svg",{className:"size-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:Pe("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},`${L.name}-${K}`,!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});pl.displayName="FileUpload";import{cva as kf}from"class-variance-authority";import{createContext as Af,forwardRef as Co,useContext as If,useId as Vf}from"react";import{jsxDEV as Ft,Fragment as Df}from"react/jsx-dev-runtime";var Be={sm:"sm",md:"md",lg:"lg"},cl=Af(null),Gr=()=>{let e=If(cl);if(!e)throw Error("useFormField must be used within a FormField");return e},ul=kf("flex flex-col",{variants:{size:{[Be.sm]:"gap-1",[Be.md]:"gap-1.5",[Be.lg]:"gap-2"}},defaultVariants:{size:Be.md}}),fl=Co(({className:e,size:t=Be.md,error:r,disabled:o=!1,required:i=!1,children:n,...s},l)=>{let d=Vf(),c=m(t),g={id:d,size:c,error:r,disabled:o,required:i};return Ft(cl.Provider,{value:g,children:Ft("div",{ref:l,className:a(ul({size:c}),e),...s,children:n},void 0,!1,void 0,this)},void 0,!1,void 0,this)});fl.displayName="FormField";var Bf={[Be.sm]:"text-xs",[Be.md]:"text-sm",[Be.lg]:"text-base"},gl=Co(({className:e,htmlFor:t,children:r,...o},i)=>{let{id:n,size:s,disabled:l,required:d}=Gr();return Ft("label",{ref:i,htmlFor:t??n,className:a("inline-block font-medium text-foreground select-none",Bf[s],l&&"cursor-not-allowed opacity-60",e),...o,children:[r,d&&Ft("span",{className:"ml-0.5 text-destructive","aria-hidden":"true",children:"*"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});gl.displayName="FormFieldLabel";var bl={[Be.sm]:"text-[10px]",[Be.md]:"text-xs",[Be.lg]:"text-sm"},vl=Co(({className:e,...t},r)=>{let{id:o,size:i}=Gr();return Ft("p",{ref:r,id:`${o}-description`,className:a("text-muted-foreground",bl[i],e),...t},void 0,!1,void 0,this)});vl.displayName="FormFieldDescription";var yl=Co(({className:e,children:t,...r},o)=>{let{id:i,size:n,error:s}=Gr(),l=t??s;if(!l)return null;return Ft("p",{ref:o,id:`${i}-error`,role:"alert",className:a("text-destructive",bl[n],e),...r,children:l},void 0,!1,void 0,this)});yl.displayName="FormFieldError";var Pl=({children:e})=>{let{id:t,disabled:r,required:o,error:i}=Gr(),n=[i?`${t}-error`:void 0,`${t}-description`].filter(Boolean).join(" ");return Ft(Df,{children:e({id:t,disabled:r,required:o,status:i?"error":"default","aria-describedby":n||void 0,"aria-invalid":i?!0:void 0})},void 0,!1,void 0,this)};Pl.displayName="FormFieldControl";import*as _t from"@radix-ui/react-hover-card";import{cva as Ff}from"class-variance-authority";import{forwardRef as _f}from"react";import{jsxDEV as Wf}from"react/jsx-dev-runtime";var fr={sm:"sm",md:"md",lg:"lg"},hl=Ff("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:{[fr.sm]:"w-52 p-3 text-xs",[fr.md]:"w-64 p-4 text-sm",[fr.lg]:"w-80 p-5 text-sm"}},defaultVariants:{size:fr.md}}),Of=_t.Root,Gf=_t.Trigger,Tl=_f(({className:e,align:t="center",sideOffset:r=4,size:o=fr.md,...i},n)=>{let s=m(o);return Wf(_t.Content,{ref:n,align:t,sideOffset:r,className:a(hl({size:s}),e),...i},void 0,!1,void 0,this)});Tl.displayName=_t.Content.displayName;import{cva as Kf}from"class-variance-authority";import{X as Yf}from"lucide-react";import{forwardRef as Xf,useRef as Zf,useState as qf}from"react";import*as ht from"react";function xl(...e){return(t)=>{for(let r of e)if(typeof r==="function")r(t);else if(r!=null)r.current=t}}function Wr(...e){return ht.useCallback(xl(...e),e)}function $f(e,t){let r=ht.createContext(t);r.displayName=e;function o(){let i=ht.useContext(r);if(i===void 0)throw Error(`use${e} must be used within a ${e}Provider`);return i}return[r.Provider,o,r]}function Uf(e){let t=ht.createContext(void 0);t.displayName=e;function r(){return ht.useContext(t)}return[t.Provider,r,t]}import{jsxDEV as Ot}from"react/jsx-dev-runtime";var $r={default:"default",error:"error",success:"success"},Y={sm:"sm",md:"md",lg:"lg",xl:"xl"},Jf="Clear input",Sl=Kf("gs-interactive w-full rounded-[var(--radius)] border border-input bg-background text-sm text-foreground outline-none placeholder:text-muted-foreground focus-visible:ring-2 disabled:cursor-not-allowed disabled:border-border disabled:bg-muted/45 disabled:text-muted-foreground",{variants:{status:{[$r.default]:"focus-visible:ring-primary",[$r.error]:"border-destructive focus-visible:ring-destructive",[$r.success]:"border-success focus-visible:ring-success"},size:{[Y.sm]:"h-8 px-2 text-xs",[Y.md]:"h-10 px-3",[Y.lg]:"h-11 px-4",[Y.xl]:"h-12 px-4 text-base"}},defaultVariants:{status:$r.default,size:Y.md}}),Qf={[Y.sm]:"pl-7",[Y.md]:"pl-9",[Y.lg]:"pl-10",[Y.xl]:"pl-10"},Ef={[Y.sm]:"pr-7",[Y.md]:"pr-9",[Y.lg]:"pr-10",[Y.xl]:"pr-10"},jf={[Y.sm]:"pr-12",[Y.md]:"pr-16",[Y.lg]:"pr-18",[Y.xl]:"pr-18"},eg={[Y.sm]:"text-xs left-2",[Y.md]:"text-sm left-3",[Y.lg]:"text-sm left-3.5",[Y.xl]:"text-base left-3.5"},tg={[Y.sm]:"text-xs",[Y.md]:"text-sm",[Y.lg]:"text-sm",[Y.xl]:"text-base"},rg={[Y.sm]:"size-4",[Y.md]:"size-5",[Y.lg]:"size-5",[Y.xl]:"size-6"};function zl(e){if(e===void 0||e===null)return"";if(Array.isArray(e))return e.join("");return String(e)}var Cl=Xf(({className:e,status:t=$r.default,size:r=Y.md,fullWidth:o=!1,prefix:i,suffix:n,clearable:s=!1,clearAriaLabel:l=Jf,onClear:d,onValueChange:c,disabled:g,readOnly:u,onChange:P,value:p,defaultValue:b,...x},M)=>{let w=Boolean(i),z=Boolean(n),v=m(r),T=Zf(null),I=Wr(M,T),[S,H]=qf(()=>zl(b)),k=p!==void 0,O=k?zl(p):S,X=s&&!g&&!u&&O.length>0,_=z||X,$=z&&X,C=(h)=>{let V=h.target.value;if(!k)H(V);c?.(V),P?.(h)},A=()=>{if(!k)H("");c?.("");let h=T.current;if(h)h.value="",h.dispatchEvent(new Event("input",{bubbles:!0})),h.focus();d?.()};return Ot("div",{className:a("relative flex items-center",o&&"w-full"),children:[w&&Ot("span",{className:a("absolute inset-y-0 flex items-center text-muted-foreground",eg[v]),children:i},void 0,!1,void 0,this),Ot("input",{ref:I,className:a(Sl({status:t,size:v}),w&&Qf[v],$&&jf[v],!$&&_&&Ef[v],e),disabled:g,readOnly:u,onChange:C,value:O,...x},void 0,!1,void 0,this),_&&Ot("span",{className:a("absolute inset-y-0 right-2 flex items-center gap-1 text-muted-foreground",tg[v]),children:[z&&Ot("span",{className:"inline-flex items-center",children:n},void 0,!1,void 0,this),X&&Ot("button",{type:"button","aria-label":l,onMouseDown:(h)=>h.preventDefault(),onClick:A,className:a("gs-interactive inline-flex items-center justify-center rounded-[calc(var(--radius)-4px)] text-muted-foreground hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",rg[v]),children:Ot(Yf,{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)});Cl.displayName="Input";import{cva as ig}from"class-variance-authority";import{forwardRef as ng}from"react";var gr=null;function Gt(){if(gr)return gr;if(typeof navigator>"u")return gr={os:"linux",isMac:!1,isWindows:!1,isLinux:!0,isMobile:!1},gr;let e=navigator.userAgentData?.platform??navigator.platform??"",t=navigator.userAgent??"",r=/mac/i.test(e),o=/win/i.test(e),i=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(t)||"maxTouchPoints"in navigator&&navigator.maxTouchPoints>1&&r,n=/linux/i.test(e)&&!i;return gr={os:r?"mac":o?"windows":"linux",isMac:r,isWindows:o,isLinux:n,isMobile:i},gr}var og={esc:"escape",return:"enter",del:"delete",space:" ",spacebar:" ",up:"arrowup",down:"arrowdown",left:"arrowleft",right:"arrowright",plus:"+"},wl={mod:"⌘",ctrl:"⌃",control:"⌃",alt:"⌥",option:"⌥",shift:"⇧",meta:"⌘",cmd:"⌘",command:"⌘",enter:"⏎",return:"⏎",backspace:"⌫",delete:"⌦",tab:"⇥",escape:"Esc",esc:"Esc",space:"␣",up:"↑",down:"↓",left:"←",right:"→",arrowup:"↑",arrowdown:"↓",arrowleft:"←",arrowright:"→"},Ml={mod:"Ctrl",cmd:"Ctrl",command:"Ctrl",meta:"Super",ctrl:"Ctrl",control:"Ctrl",alt:"Alt",option:"Alt",shift:"Shift",enter:"Enter",return:"Enter",backspace:"Backspace",delete:"Del",tab:"Tab",escape:"Esc",esc:"Esc",space:"Space",up:"↑",down:"↓",left:"←",right:"→",arrowup:"↑",arrowdown:"↓",arrowleft:"←",arrowright:"→"};function Ha(e){let t=e.split("+").map((o)=>o.trim().toLowerCase()),r={key:"",mod:!1,ctrl:!1,alt:!1,shift:!1,meta:!1};for(let o of t)if(o==="mod")r.mod=!0;else if(o==="ctrl"||o==="control")r.ctrl=!0;else if(o==="alt"||o==="option")r.alt=!0;else if(o==="shift")r.shift=!0;else if(o==="meta"||o==="cmd"||o==="command")r.meta=!0;else r.key=og[o]??o;return r}function ka(e,t){let{isMac:r}=Gt(),o=e.key.toLowerCase(),i=t.key.toLowerCase();if(i&&o!==i&&e.code.toLowerCase()!==`key${i}`)return!1;let n=t.meta||t.mod&&r,s=t.ctrl||t.mod&&!r;if(e.metaKey!==n)return!1;if(e.ctrlKey!==s)return!1;if(e.altKey!==t.alt)return!1;if(e.shiftKey!==t.shift)return!1;return!0}function Ur(e,t){let r=t??Gt().isMac,o=r?wl:Ml,i=e.split("+").map((n)=>{let s=n.trim().toLowerCase();return o[s]??n.trim().toUpperCase()});return r?i.join(""):i.join("+")}function ag(e,t){let o=t??Gt().isMac?wl:Ml;return e.split("+").map((i)=>{let n=i.trim().toLowerCase();return o[n]??i.trim().toUpperCase()})}function Kr(){return Gt()}import{jsxDEV as sg}from"react/jsx-dev-runtime";var br={sm:"sm",md:"md",lg:"lg"},Nl=ig("inline-flex items-center justify-center rounded border border-border bg-muted font-mono font-medium text-muted-foreground shadow-[0_1px_0_1px] shadow-border/50",{variants:{size:{[br.sm]:"min-w-5 h-5 px-1 text-[10px]",[br.md]:"min-w-6 h-6 px-1.5 text-xs",[br.lg]:"min-w-7 h-7 px-2 text-sm"}},defaultVariants:{size:br.md}}),Ll=ng(({className:e,size:t=br.md,keys:r,children:o,...i},n)=>{let s=m(t),{isMac:l}=Kr(),d=r?Ur(r,l):o;return sg("kbd",{ref:n,className:a(Nl({size:s}),e),...i,children:d},void 0,!1,void 0,this)});Ll.displayName="Kbd";import{cva as lg}from"class-variance-authority";import{forwardRef as mg}from"react";import{jsxDEV as Rl}from"react/jsx-dev-runtime";var vr={sm:"sm",md:"md",lg:"lg"},Hl=lg("inline-block font-medium text-foreground select-none peer-disabled:cursor-not-allowed peer-disabled:opacity-60",{variants:{size:{[vr.sm]:"text-xs",[vr.md]:"text-sm",[vr.lg]:"text-base"}},defaultVariants:{size:vr.md}}),kl=mg(({className:e,size:t=vr.md,required:r=!1,disabled:o=!1,children:i,...n},s)=>{let l=m(t);return Rl("label",{ref:s,className:a(Hl({size:l}),o&&"cursor-not-allowed opacity-60",e),"aria-disabled":o||void 0,...n,children:[i,r&&Rl("span",{className:"ml-0.5 text-destructive","aria-hidden":"true",children:"*"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});kl.displayName="Label";import*as Tt from"@radix-ui/react-popover";import{cva as bg}from"class-variance-authority";import{Check as vg,ChevronDown as yg,X as Pg,X as hg}from"lucide-react";import{forwardRef as Tg,useCallback as Yr,useEffect as xg,useRef as zg,useState as Vl}from"react";import*as De from"@radix-ui/react-popover";import{cva as dg}from"class-variance-authority";import{forwardRef as pg}from"react";import{jsxDEV as Al}from"react/jsx-dev-runtime";var yr={sm:"sm",md:"md",lg:"lg"},Pr=dg("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:{[yr.sm]:"w-56 p-3 text-sm",[yr.md]:"w-72 p-4 text-sm",[yr.lg]:"w-96 p-5 text-sm"}},defaultVariants:{size:yr.md}}),cg=De.Root,ug=De.Trigger,fg=De.Anchor,gg=De.Close,Il=pg(({className:e,align:t="center",sideOffset:r=4,portal:o=!0,portalContainer:i,size:n=yr.md,...s},l)=>{let d=m(n),c=Al(De.Content,{ref:l,align:t,sideOffset:r,className:a(Pr({size:d}),e),...s},void 0,!1,void 0,this);if(o)return Al(De.Portal,{container:i??void 0,children:c},void 0,!1,void 0,this);return c});Il.displayName="PopoverContent";import{jsxDEV as re,Fragment as wg}from"react/jsx-dev-runtime";var de={sm:"sm",md:"md",lg:"lg",xl:"xl"},Bl=bg(["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"}}),Sg={[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"},Cg={[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"},wo={[de.sm]:"size-3.5",[de.md]:"size-4",[de.lg]:"size-4",[de.xl]:"size-4.5"},Dl=Tg(({className:e,options:t,value:r,defaultValue:o=[],onValueChange:i,placeholder:n="Select options...",size:s=de.md,status:l="default",clearable:d=!1,maxDisplayItems:c=3,disabled:g,...u},P)=>{let p=m(s)??s,[b,x]=Vl(!1),[M,w]=Vl(o),z=zg(null),v=r!==void 0,T=v?r:M,I=Yr((C)=>{let A=T.includes(C)?T.filter((h)=>h!==C):[...T,C];if(!v)w(A);i?.(A)},[T,v,i]),S=Yr((C,A)=>{A.stopPropagation();let h=T.filter((V)=>V!==C);if(!v)w(h);i?.(h)},[T,v,i]),H=Yr((C)=>{if(C.stopPropagation(),C.preventDefault(),!v)w([]);i?.([])},[v,i]),k=t.filter((C)=>T.includes(C.value)),O=k.length>0,X=d&&O&&!g,_=Yr((C)=>{let A=z.current;if(!A)return;let h=Array.from(A.querySelectorAll('[role="option"]:not([data-disabled])'));if(h.length===0)return;let V=A.querySelector('[role="option"]:focus'),J=V?h.indexOf(V):-1,L;switch(C){case"first":L=h[0];break;case"last":L=h[h.length-1];break;case"next":L=h[J+1]??h[0];break;case"prev":L=h[J-1]??h[h.length-1];break}L?.focus()},[]),$=Yr((C)=>{switch(C.key){case"ArrowDown":C.preventDefault(),_("next");break;case"ArrowUp":C.preventDefault(),_("prev");break;case"Home":C.preventDefault(),_("first");break;case"End":C.preventDefault(),_("last");break;case"Escape":C.preventDefault(),x(!1);break}},[_]);return xg(()=>{if(b)requestAnimationFrame(()=>_("first"))},[b,_]),re(Tt.Root,{open:b,onOpenChange:x,children:[re(Tt.Trigger,{asChild:!0,children:re("button",{ref:P,type:"button",disabled:g,"data-state":b?"open":"closed","data-placeholder":!O?"":void 0,className:a(Bl({size:p,status:l}),e),...u,children:[re("span",{className:"flex min-w-0 flex-1 flex-wrap items-center gap-1 text-left",children:O?re(wg,{children:[k.slice(0,c).map((C)=>re("span",{className:a("inline-flex items-center gap-1 rounded-[calc(var(--radius)-4px)] border border-border/60 bg-muted/50 font-medium text-foreground",Sg[p]),children:[re("span",{className:"truncate",children:C.label},void 0,!1,void 0,this),re("span",{"data-slot":"multiselect-remove","aria-label":`Remove ${C.label}`,onMouseDown:(A)=>A.preventDefault(),onClick:(A)=>S(C.value,A),className:"ml-0.5 inline-flex shrink-0 items-center justify-center rounded-full opacity-60 hover:opacity-100",children:re(hg,{className:"h-3 w-3"},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},C.value,!0,void 0,this)),k.length>c&&re("span",{className:"text-muted-foreground text-xs",children:["+",k.length-c]},void 0,!0,void 0,this)]},void 0,!0,void 0,this):re("span",{className:"text-muted-foreground",children:n},void 0,!1,void 0,this)},void 0,!1,void 0,this),re("span",{className:"inline-flex shrink-0 items-center gap-1 text-muted-foreground",children:[X&&re("span",{role:"button",tabIndex:-1,"aria-label":"Clear all",onMouseDown:(C)=>C.preventDefault(),onClick:H,className:"gs-interactive inline-flex items-center justify-center rounded-[calc(var(--radius)-4px)] text-muted-foreground hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",children:re(Pg,{className:wo[p]},void 0,!1,void 0,this)},void 0,!1,void 0,this),re(yg,{className:a(wo[p],"opacity-60 transition-transform duration-200 ease-[cubic-bezier(0.16,1,0.3,1)]",b&&"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(Tt.Portal,{children:re(Tt.Content,{ref:z,role:"listbox","aria-multiselectable":"true",align:"start",sideOffset:4,onKeyDown:$,onOpenAutoFocus:(C)=>C.preventDefault(),className:a(Pr(),"max-h-96 w-[var(--radix-popover-trigger-width)] overflow-y-auto overflow-x-hidden p-1"),children:[t.map((C)=>{let A=T.includes(C.value);return re("div",{role:"option",tabIndex:C.disabled?void 0:-1,"aria-selected":A,"aria-disabled":C.disabled||void 0,"data-disabled":C.disabled?"":void 0,className:a("gs-interactive relative flex w-full cursor-pointer select-none items-center gap-2","rounded-[calc(var(--radius)-3px)] outline-none","hover:bg-accent focus-visible:bg-accent focus-visible:text-accent-foreground","data-disabled:cursor-not-allowed data-disabled:opacity-50",Cg[p]),onClick:()=>!C.disabled&&I(C.value),onKeyDown:(h)=>{if(h.key==="Enter"||h.key===" "){if(h.preventDefault(),!C.disabled)I(C.value)}},children:[re("span",{className:a("flex shrink-0 items-center justify-center",wo[p]),children:A&&re(vg,{className:wo[p]},void 0,!1,void 0,this)},void 0,!1,void 0,this),re("span",{className:"min-w-0 flex-1 truncate",children:C.label},void 0,!1,void 0,this)]},C.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)});Dl.displayName="Multiselect";import*as oe from"@radix-ui/react-navigation-menu";import{cva as Wt}from"class-variance-authority";import{createContext as Mg,forwardRef as hr,useContext as Ng}from"react";import{jsxDEV as Re}from"react/jsx-dev-runtime";var Ye={sm:"sm",md:"md",lg:"lg"},Fl=Mg(Ye.md),_l=Wt("relative z-10 flex max-w-max flex-1 items-center justify-center"),Ol=Wt("group flex flex-1 list-none items-center justify-center space-x-1"),Gl=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:{[Ye.sm]:"h-8 px-3 py-1.5 text-xs",[Ye.md]:"h-10 px-4 py-2 text-sm",[Ye.lg]:"h-12 px-5 py-2.5 text-sm"}},defaultVariants:{size:Ye.md}}),Wl=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"]),Lg=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:{[Ye.sm]:"p-2 text-xs",[Ye.md]:"p-3 text-sm",[Ye.lg]:"p-4 text-sm"}},defaultVariants:{size:Ye.md}}),$l=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)]"]),Ul=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"]),Rg=()=>Re("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:Re("path",{d:"m6 9 6 6 6-6"},void 0,!1,void 0,this)},void 0,!1,void 0,this),Kl=hr(({className:e,children:t,size:r,...o},i)=>{let n=m(r??Ye.md);return Re(Fl.Provider,{value:n,children:Re(oe.Root,{ref:i,className:a(_l(),e),...o,children:[t,Re(Aa,{},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)});Kl.displayName=oe.Root.displayName;var Yl=hr(({className:e,...t},r)=>Re(oe.List,{ref:r,className:a(Ol(),e),...t},void 0,!1,void 0,this));Yl.displayName=oe.List.displayName;var Hg=oe.Item,Xl=hr(({className:e,children:t,...r},o)=>{let i=Ng(Fl);return Re(oe.Trigger,{ref:o,className:a(Gl({size:i}),"group",e),...r,children:[t,Re(Rg,{},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});Xl.displayName=oe.Trigger.displayName;var Zl=hr(({className:e,...t},r)=>Re(oe.Content,{ref:r,className:a(Wl(),e),...t},void 0,!1,void 0,this));Zl.displayName=oe.Content.displayName;var kg=oe.Link,Aa=hr(({className:e,...t},r)=>Re("div",{className:"absolute top-full left-0 flex justify-center",children:Re(oe.Viewport,{className:a($l(),e),ref:r,...t},void 0,!1,void 0,this)},void 0,!1,void 0,this));Aa.displayName=oe.Viewport.displayName;var ql=hr(({className:e,...t},r)=>Re(oe.Indicator,{ref:r,className:a(Ul(),e),...t,children:Re("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));ql.displayName=oe.Indicator.displayName;import{cva as Tr}from"class-variance-authority";import{Fragment as Ag,forwardRef as Ig,useCallback as $t,useEffect as Jl,useMemo as Ql,useRef as Vg,useState as El}from"react";import{jsxDEV as Ut}from"react/jsx-dev-runtime";var Kt={sm:"sm",md:"md",lg:"lg",xl:"xl"},Zr={default:"default",error:"error",success:"success"},Xr={single:"single",first:"first",middle:"middle",last:"last"},jl=Tr("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}}),em=Tr("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:Zr.default}}),tm=Tr(["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:Zr.default,disabled:!1,position:Xr.single}}),rm=Tr(["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:Zr.default,filled:!1}}),om=Tr(["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}}),am=Tr("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 Bg(e){if(!Number.isFinite(e))return 6;return Math.max(1,Math.floor(e))}function Ia(e,t){let r=(e??"").split("").slice(0,t);if(r.length<t)return r.concat(Array(t-r.length).fill(""));return r}var im=Ig(({className:e,length:t=6,value:r,onChange:o,onComplete:i,size:n=Kt.md,status:s=Zr.default,disabled:l=!1,autoFocus:d=!1,mask:c=!1,groupSize:g,separator:u,separatorChar:P="—",placeholder:p="•",inputMode:b="numeric",pattern:x="[0-9]*",...M},w)=>{let z=m(n),v=Bg(t),T=Vg([]),[I,S]=El(null),[H,k]=El(()=>Ia(r,v));Jl(()=>{if(r!==void 0){k(Ia(r,v));return}k((f)=>Ia(f.join(""),v))},[r,v]),Jl(()=>{if(d)T.current[0]?.focus()},[d]);let O=Ql(()=>{if(typeof g==="number"&&Number.isFinite(g)){let f=Math.floor(g);if(f<=0)return v;return Math.min(v,Math.max(1,f))}if(typeof u==="number"&&Number.isFinite(u)){let f=Math.floor(u);if(f<=0)return v;return Math.min(v,Math.max(1,f))}if(u)return Math.max(1,Math.floor(v/2));return v},[g,v,u]),X=Ql(()=>{let f=[];for(let y=0;y<v;y+=O){let N=Math.min(y+O,v),ce=[];for(let Z=y;Z<N;Z+=1)ce.push(Z);f.push(ce)}return f},[O,v]),_=$t((f)=>{let y=T.current[f];if(!y)return;y.focus(),y.select()},[]),$=$t((f)=>{k(f);let y=f.join("");if(o?.(y),f.every((N)=>N!=="")&&y.length===v)i?.(y)},[o,i,v]),C=$t((f,y)=>{if(l)return;let ce=(b==="numeric"?y.replace(/\D/g,""):y).slice(-1),Z=[...H];if(Z[f]=ce,$(Z),ce&&f<v-1)_(f+1)},[H,l,$,_,b,v]),A=$t((f,y)=>{if(l)return;if(y.key==="Backspace"){if(y.preventDefault(),H[f]){let N=[...H];N[f]="",$(N);return}if(f>0){let N=[...H];N[f-1]="",$(N),_(f-1)}return}if(y.key==="Delete"){if(y.preventDefault(),H[f]){let N=[...H];N[f]="",$(N)}return}if(y.key==="ArrowLeft"){if(y.preventDefault(),f>0)_(f-1);return}if(y.key==="ArrowRight"){if(y.preventDefault(),f<v-1)_(f+1);return}if(y.key==="Home"){y.preventDefault(),_(0);return}if(y.key==="End")y.preventDefault(),_(v-1)},[H,l,$,_,v]),h=$t((f,y)=>{if(y.preventDefault(),l)return;let N=y.clipboardData.getData("text"),Z=(b==="numeric"?N.replace(/\D/g,""):N.replace(/\s/g,"")).split("");if(Z.length===0)return;let ke=[...H];for(let R=0;R<Z.length;R+=1){let j=f+R;if(j>=v)break;ke[j]=Z[R]??""}$(ke);let E=Math.min(v-1,f+Z.length-1);if(E<v-1){_(E+1);return}T.current[E]?.blur()},[H,l,$,_,b,v]),V=$t((f,y)=>{S(f),y.target.select()},[]),J=$t(()=>{S(null)},[]),L=u!==void 0,K=P.length>0&&u!==!1&&(L||X.length>1);return Ut("div",{ref:w,className:a(jl({size:z}),e),role:"group","aria-label":"One-time password input",...M,children:X.map((f,y)=>Ut(Ag,{children:[Ut("div",{"data-gs-otp-group":"true",className:a(em({size:z,status:s})),children:f.map((N,ce)=>{let Z=H[N]??"",ke=I===N,E=Xr.middle;if(f.length===1)E=Xr.single;else if(ce===0)E=Xr.first;else if(ce===f.length-1)E=Xr.last;return Ut("div",{"data-gs-otp-slot":"true","data-disabled":l,className:a(tm({size:z,filled:Boolean(Z),focused:ke,status:s,disabled:l,position:E})),children:[Ut("input",{ref:(R)=>{T.current[N]=R},type:c?"password":"text",inputMode:b,pattern:x,maxLength:1,value:Z,placeholder:"",disabled:l,"aria-invalid":s===Zr.error,"aria-label":`Digit ${N+1} of ${v}`,autoComplete:"one-time-code",onChange:(R)=>C(N,R.target.value),onKeyDown:(R)=>A(N,R),onPaste:(R)=>h(N,R),onFocus:(R)=>V(N,R),onBlur:J,className:a(rm({size:z,status:s,filled:Boolean(Z)}))},void 0,!1,void 0,this),!Z&&Ut("div",{"data-gs-otp-placeholder":"true","aria-hidden":"true",className:a(om({size:z,focused:ke})),children:p},void 0,!1,void 0,this)]},`slot-${N}`,!0,void 0,this)})},void 0,!1,void 0,this),K&&y<X.length-1&&Ut("span",{"data-gs-otp-separator":"true",className:a(am({size:z})),children:P},void 0,!1,void 0,this)]},`group-${f[0]}-${f[f.length-1]}`,!0,void 0,this))},void 0,!1,void 0,this)});im.displayName="OTPInput";import{createContext as Wg,useCallback as xr,useContext as $g,useMemo as Ug,useState as Kg}from"react";import*as ne from"@radix-ui/react-dialog";import{cva as nm}from"class-variance-authority";import{X as Dg}from"lucide-react";import{forwardRef as Mo}from"react";import{jsxDEV as Xe}from"react/jsx-dev-runtime";var He={top:"top",right:"right",bottom:"bottom",left:"left"},te={sm:"sm",md:"md",lg:"lg",xl:"xl",full:"full"},Fg={[He.top]:"gs-sheet-content gs-sheet-content-top",[He.right]:"gs-sheet-content gs-sheet-content-right",[He.bottom]:"gs-sheet-content gs-sheet-content-bottom",[He.left]:"gs-sheet-content gs-sheet-content-left"},_g={[He.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"},[He.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"},[He.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"},[He.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"}},sm=nm("gs-sheet-overlay fixed inset-0 z-50 bg-black/50"),lm=nm("fixed z-50 flex flex-col gap-4 border border-border bg-background p-6 shadow-[var(--shadow-xl)]",{variants:{side:{[He.top]:"inset-x-0 top-0 border-b",[He.bottom]:"inset-x-0 bottom-0 border-t",[He.left]:"inset-y-0 left-0 h-full w-3/4 border-r",[He.right]:"inset-y-0 right-0 h-full w-3/4 border-l"}},defaultVariants:{side:He.right}}),Va=ne.Root,Og=ne.Trigger,Gg=ne.Close,mm=ne.Portal,Ba=Mo(({className:e,...t},r)=>Xe(ne.Overlay,{className:a(sm(),e),...t,ref:r},void 0,!1,void 0,this));Ba.displayName=ne.Overlay.displayName;var No=Mo(({side:e="right",size:t=te.md,showClose:r=!0,className:o,children:i,...n},s)=>{let l=m(t)??te.md,d=Fg[e],c=_g[e][l];return Xe(mm,{children:[Xe(Ba,{},void 0,!1,void 0,this),Xe(ne.Content,{ref:s,className:a(lm({side:e}),d,c,o),...n,children:[i,r&&Xe(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:[Xe(Dg,{className:"size-4"},void 0,!1,void 0,this),Xe("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=ne.Content.displayName;var dm=({className:e,...t})=>Xe("div",{className:a("flex flex-col space-y-2 text-center sm:text-left",e),...t},void 0,!1,void 0,this);dm.displayName="SheetHeader";var pm=({className:e,...t})=>Xe("div",{className:a("flex flex-col-reverse sm:flex-row sm:justify-end sm:gap-2.5",e),...t},void 0,!1,void 0,this);pm.displayName="SheetFooter";var cm=Mo(({className:e,...t},r)=>Xe(ne.Title,{ref:r,className:a("font-semibold text-foreground text-lg",e),...t},void 0,!1,void 0,this));cm.displayName=ne.Title.displayName;var um=Mo(({className:e,...t},r)=>Xe(ne.Description,{ref:r,className:a("text-muted-foreground text-sm",e),...t},void 0,!1,void 0,this));um.displayName=ne.Description.displayName;import{jsxDEV as lt}from"react/jsx-dev-runtime";var Da=0;function Yg(){return Da=(Da+1)%Number.MAX_SAFE_INTEGER,`overlay-${Da}-${Date.now()}`}var gm=Wg(null),fm=400;function bm({children:e}){let[t,r]=Kg([]),o=xr((c)=>{r((g)=>g.map((u)=>u.id===c?{...u,open:!1}:u)),setTimeout(()=>{r((g)=>g.filter((u)=>u.id!==c))},fm)},[]),i=xr(()=>{r((c)=>c.map((g)=>({...g,open:!1}))),setTimeout(()=>{r([])},fm)},[]),n=xr((c,g,u,P={})=>{let p=Yg(),b=(w)=>{return lt(g,{...u,close:w.close},void 0,!1,void 0,this)};b.displayName=`OverlayWrapper(${g.displayName??g.name??"Component"})`;let x={id:p,type:c,component:b,wrapperProps:P,open:!0};return r((w)=>[...w,x]),{id:p,close:()=>o(p)}},[o]),s=xr((c,g,u)=>{return n("dialog",c,g,u)},[n]),l=xr((c,g,u)=>{return n("sheet",c,g,u)},[n]),d=Ug(()=>({dialog:s,sheet:l,close:o,closeAll:i}),[s,l,o,i]);return lt(gm.Provider,{value:d,children:[e,t.map((c)=>lt(Xg,{entry:c,onClose:o},c.id,!1,void 0,this))]},void 0,!0,void 0,this)}bm.displayName="OverlayProvider";function Xg({entry:e,onClose:t}){let{id:r,type:o,component:i,wrapperProps:n,open:s}=e,l=xr(()=>t(r),[r,t]);if(o==="dialog"){let{showClose:d,size:c,...g}=n;return lt(Sa,{open:s,onOpenChange:(u)=>!u&&l(),children:lt(zo,{showClose:d,size:c,...g,children:lt(i,{close:l},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}if(o==="sheet"){let{side:d,showClose:c,...g}=n;return lt(Va,{open:s,onOpenChange:(u)=>!u&&l(),children:lt(No,{side:d,showClose:c,...g,children:lt(i,{close:l},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}return null}function Zg(){let e=$g(gm);if(!e)throw Error("useOverlay must be used within an OverlayProvider");return e}import{cva as qr}from"class-variance-authority";import{ChevronLeft as qg,ChevronRight as Jg,MoreHorizontal as Qg}from"lucide-react";import{createContext as Eg,forwardRef as Jr,useContext as Lo}from"react";import{jsxDEV as we}from"react/jsx-dev-runtime";var Fe={sm:"sm",md:"md",lg:"lg"},Qr=Eg(Fe.md),vm=qr("mx-auto flex w-full justify-center"),ym=qr("flex flex-row items-center gap-1"),Pm=qr(""),Ro=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:{[Fe.sm]:"h-7 w-7 text-xs [&_svg]:size-3.5",[Fe.md]:"h-9 w-9 text-sm [&_svg]:size-4",[Fe.lg]:"h-10 w-10 text-sm [&_svg]:size-5"}},defaultVariants:{isActive:!1,size:Fe.md}}),hm=qr("flex items-center justify-center",{variants:{size:{[Fe.sm]:"h-7 w-7 [&_svg]:size-3.5",[Fe.md]:"h-9 w-9 [&_svg]:size-4",[Fe.lg]:"h-10 w-10 [&_svg]:size-5"}},defaultVariants:{size:Fe.md}}),Tm=({className:e,size:t=Fe.md,...r})=>{let o=m(t)??Fe.md;return we(Qr.Provider,{value:o,children:we("nav",{"aria-label":"pagination",className:a(vm(),e),...r},void 0,!1,void 0,this)},void 0,!1,void 0,this)};Tm.displayName="Pagination";var xm=Jr(({className:e,...t},r)=>we("ul",{ref:r,className:a(ym(),e),...t},void 0,!1,void 0,this));xm.displayName="PaginationContent";var zm=Jr(({className:e,...t},r)=>we("li",{ref:r,className:a(Pm(),e),...t},void 0,!1,void 0,this));zm.displayName="PaginationItem";var Sm=Jr(({className:e,isActive:t,...r},o)=>{let i=Lo(Qr);return we("button",{ref:o,type:"button","aria-current":t?"page":void 0,className:a(Ro({isActive:t,size:i}),e),...r},void 0,!1,void 0,this)});Sm.displayName="PaginationLink";var Cm=Jr(({className:e,...t},r)=>{let o=Lo(Qr);return we("button",{ref:r,type:"button","aria-label":"Go to previous page",className:a(Ro({size:o}),"gap-1 pl-2.5 pr-3 w-auto",e),...t,children:[we(qg,{},void 0,!1,void 0,this),we("span",{children:"Previous"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});Cm.displayName="PaginationPrevious";var wm=Jr(({className:e,...t},r)=>{let o=Lo(Qr);return we("button",{ref:r,type:"button","aria-label":"Go to next page",className:a(Ro({size:o}),"gap-1 pl-3 pr-2.5 w-auto",e),...t,children:[we("span",{children:"Next"},void 0,!1,void 0,this),we(Jg,{},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});wm.displayName="PaginationNext";var Mm=({className:e,...t})=>{let r=Lo(Qr);return we("span",{"aria-hidden":!0,className:a(hm({size:r}),e),...t,children:[we(Qg,{},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)};Mm.displayName="PaginationEllipsis";import*as eo from"@radix-ui/react-progress";import{cva as Nm}from"class-variance-authority";import{forwardRef as jg}from"react";import{jsxDEV as Ho}from"react/jsx-dev-runtime";var Er={sm:"sm",md:"md",lg:"lg",xl:"xl"},jr={default:"default",success:"success",warning:"warning",error:"error"},Lm=Nm("relative w-full overflow-hidden rounded-full bg-muted",{variants:{size:{[Er.sm]:"h-1",[Er.md]:"h-2.5",[Er.lg]:"h-4",[Er.xl]:"h-5"}},defaultVariants:{size:Er.md}}),Rm=Nm("h-full w-full flex-1 rounded-full transition-transform duration-100 ease-out",{variants:{variant:{[jr.default]:"bg-primary",[jr.success]:"bg-success",[jr.warning]:"bg-warning",[jr.error]:"bg-destructive"}},defaultVariants:{variant:jr.default}}),Hm=jg(({className:e,value:t,size:r,variant:o,showValue:i,...n},s)=>{let l=m(r);return Ho("div",{className:"flex w-full items-center gap-2",children:[Ho(eo.Root,{ref:s,className:a(Lm({size:l}),e),...n,children:Ho(eo.Indicator,{className:a(Rm({variant:o})),style:{transform:`translateX(-${100-(t||0)}%)`}},void 0,!1,void 0,this)},void 0,!1,void 0,this),i&&Ho("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)});Hm.displayName=eo.Root.displayName;import*as Sr from"@radix-ui/react-radio-group";import{cva as km}from"class-variance-authority";import{forwardRef as Am}from"react";import{jsxDEV as ko}from"react/jsx-dev-runtime";var Ze={sm:"sm",md:"md",lg:"lg",xl:"xl"},zr={default:"default",error:"error",success:"success"},Im=km("grid gap-2"),Vm=km("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:{[Ze.sm]:"h-4 w-4",[Ze.md]:"h-5 w-5",[Ze.lg]:"h-6 w-6",[Ze.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:Ze.md,status:zr.default}}),eb={[Ze.sm]:"h-2 w-2",[Ze.md]:"h-2.5 w-2.5",[Ze.lg]:"h-3 w-3",[Ze.xl]:"h-3.5 w-3.5"},Bm=Am(({className:e,...t},r)=>ko(Sr.Root,{ref:r,className:a(Im(),e),...t},void 0,!1,void 0,this));Bm.displayName="RadioGroup";var Dm=Am(({className:e,size:t=Ze.md,status:r=zr.default,...o},i)=>{let n=m(t);return ko(Sr.Item,{ref:i,className:a(Vm({size:n,status:r}),e),...o,children:ko(Sr.Indicator,{className:"flex items-center justify-center",children:ko("span",{className:a("block rounded-full bg-current transition-transform duration-150",eb[n])},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)});Dm.displayName="RadioGroupItem";import{cva as Vo}from"class-variance-authority";import{forwardRef as Fa,useCallback as Ao,useRef as tb,useState as rb}from"react";import{jsxDEV as Io}from"react/jsx-dev-runtime";var Fm=Vo("flex h-full w-full",{variants:{direction:{horizontal:"flex-row",vertical:"flex-col"}},defaultVariants:{direction:"horizontal"}}),_m=Vo("relative overflow-hidden"),Om=Vo("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}}),Gm=Vo("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"}}),Wm=Fa(({className:e,direction:t="horizontal",children:r,...o},i)=>Io("div",{ref:i,"data-panel-group":"","data-direction":t,className:a(Fm({direction:t}),e),...o,children:r},void 0,!1,void 0,this));Wm.displayName="ResizablePanelGroup";var $m=Fa(({className:e,defaultSize:t=50,children:r,style:o,...i},n)=>Io("div",{ref:n,"data-panel":"",className:a(_m(),e),style:{...o,flexGrow:0,flexShrink:0,flexBasis:`${t}%`},...i,children:r},void 0,!1,void 0,this));$m.displayName="ResizablePanel";var Um=Fa(({className:e,withHandle:t=!1,disabled:r=!1,...o},i)=>{let[n,s]=rb(!1),l=tb(null),d=Ao((p,b)=>{if(r)return;s(!0);let x=(w)=>{let z="touches"in w?w.touches[0]:null,v=z?z.clientX:w.clientX,T=z?z.clientY:w.clientY,I=l.current;if(!I)return;let S=I.closest("[data-panel-group]");if(!S)return;let H=S.dataset.direction,k=S.getBoundingClientRect(),O=Array.from(S.querySelectorAll(":scope > [data-panel]")),X=Array.from(S.children).indexOf(I),_,$;for(let C of O){let A=Array.from(S.children).indexOf(C);if(A<X)_=C;if(A>X&&!$)$=C}if(_&&$){let C=H==="horizontal"?k.width:k.height,h=(H==="horizontal"?v-k.left:T-k.top)/C*100,V=Math.max(10,Math.min(90,h)),J=100-V;_.style.flexBasis=`${V}%`,$.style.flexBasis=`${J}%`}},M=()=>{s(!1),document.removeEventListener("mousemove",x),document.removeEventListener("mouseup",M),document.removeEventListener("touchmove",x),document.removeEventListener("touchend",M)};document.addEventListener("mousemove",x),document.addEventListener("mouseup",M),document.addEventListener("touchmove",x),document.addEventListener("touchend",M)},[r]),c=Ao((p)=>{p.preventDefault(),d(p.clientX,p.clientY)},[d]),g=Ao((p)=>{let b=p.touches[0];if(b)d(b.clientX,b.clientY)},[d]),u=Ao((p)=>{if(r)return;let b=l.current??p.currentTarget,x=b.closest("[data-panel-group]");if(!x)return;let M=x.dataset.direction,w=p.shiftKey?10:1,z=Array.from(x.querySelectorAll(":scope > [data-panel]")),v=Array.from(x.children).indexOf(b),T,I;for(let k of z){let O=Array.from(x.children).indexOf(k);if(O<v)T=k;if(O>v&&!I)I=k}if(!(T&&I))return;let S=Number.parseFloat(T.style.flexBasis)||50,H=0;if(M==="horizontal"){if(p.key==="ArrowLeft")H=-w;if(p.key==="ArrowRight")H=w}else{if(p.key==="ArrowUp")H=-w;if(p.key==="ArrowDown")H=w}if(H!==0){p.preventDefault();let k=Math.max(10,Math.min(90,S+H));T.style.flexBasis=`${k}%`,I.style.flexBasis=`${100-k}%`}},[r]),P="horizontal";return Io("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:c,onTouchStart:g,onKeyDown:u,className:a(Om({direction:"horizontal",withHandle:t}),n&&"bg-primary",r&&"pointer-events-none opacity-50",e),...o,children:t&&Io("div",{className:a(Gm({direction:"horizontal"}))},void 0,!1,void 0,this)},void 0,!1,void 0,this)});Um.displayName="ResizableHandle";import*as je from"@radix-ui/react-scroll-area";import{cva as _a}from"class-variance-authority";import{forwardRef as Km}from"react";import{jsxDEV as Cr}from"react/jsx-dev-runtime";var Ym=_a("relative overflow-hidden"),ob={display:"flex",flexDirection:"column"},ab={flex:"1 1 0%",minHeight:0},Xm=_a("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"}}),Zm=_a("relative flex-1 rounded-full bg-border"),qm=Km(({className:e,children:t,style:r,...o},i)=>Cr(je.Root,{ref:i,className:a(Ym(),e),style:{...r,...ob},...o,children:[Cr(je.Viewport,{className:"w-full rounded-[inherit]",style:ab,children:t},void 0,!1,void 0,this),Cr(Oa,{},void 0,!1,void 0,this),Cr(je.Corner,{},void 0,!1,void 0,this)]},void 0,!0,void 0,this));qm.displayName="ScrollArea";var Oa=Km(({className:e,orientation:t="vertical",...r},o)=>Cr(je.ScrollAreaScrollbar,{ref:o,orientation:t,className:a(Xm({orientation:t}),e),...r,children:Cr(je.ScrollAreaThumb,{className:a(Zm())},void 0,!1,void 0,this)},void 0,!1,void 0,this));Oa.displayName="ScrollBar";import*as xt from"@radix-ui/react-popover";import{cva as Qm}from"class-variance-authority";import{Check as ib,ChevronDown as nb,X as sb}from"lucide-react";import{Children as lb,createContext as mb,forwardRef as oo,isValidElement as db,useCallback as Bo,useContext as Em,useEffect as Do,useId as Jm,useMemo as pb,useRef as jm,useState as to}from"react";import{jsxDEV as ae,Fragment as yb}from"react/jsx-dev-runtime";var Q={sm:"sm",md:"md",lg:"lg",xl:"xl"},wr={default:"default",error:"error",success:"success"},ro={trigger:"trigger",auto:"auto"},cb={start:"start",center:"center",end:"end"},ed=Qm(["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:{[wr.default]:"focus-visible:ring-primary data-[state=open]:ring-primary",[wr.error]:"border-destructive focus-visible:ring-destructive data-[state=open]:ring-destructive",[wr.success]:"border-success focus-visible:ring-success data-[state=open]:ring-success"}},defaultVariants:{size:Q.md,status:wr.default}}),td=Qm(["max-h-96 overflow-y-auto overflow-x-hidden"].join(" "),{variants:{widthMode:{[ro.trigger]:"w-[var(--radix-popover-trigger-width)]",[ro.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:ro.auto,size:Q.md}}),ub={[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"},fb={[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"},Fo={[Q.sm]:"size-3.5",[Q.md]:"size-4",[Q.lg]:"size-4",[Q.xl]:"size-4.5"};function Ga(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)=>Ga(t)).join("");if(db(e))return Ga(e.props.children);return""}var Wa=mb(null);function _o(){let e=Em(Wa);if(!e)throw Error("Select components must be used within Select");return e}function $a(e){let t=Em(Wa);if(e)return e;return t?.triggerSize??Q.md}var gb=({children:e,value:t,defaultValue:r="",onValueChange:o,open:i,defaultOpen:n=!1,onOpenChange:s,disabled:l=!1})=>{let[d,c]=to(Q.md),[g,u]=to(!1),[P,p]=to(r),[b,x]=to(n),[M,w]=to(0),z=jm(new Map),v=t!==void 0,T=i!==void 0,I=v?t:P,S=T?i:b,H=Bo((A)=>{if(!v)p(A);if(o?.(A),!T)x(!1);s?.(!1)},[v,T,o,s]),k=Bo((A)=>{if(l)return;if(!T)x(A);s?.(A)},[l,T,s]),O=Bo((A,h)=>{if(z.current.get(A)!==h)z.current.set(A,h),w((J)=>J+1)},[]),X=Bo((A)=>{return z.current.get(A)},[]),_=Jm(),$=Jm(),C=pb(()=>({value:I,onValueChange:H,open:S,onOpenChange:k,triggerSize:d,setTriggerSize:c,triggerFullWidth:g,setTriggerFullWidth:u,disabled:l,triggerId:_,contentId:$,registerItem:O,getLabel:X}),[I,H,S,k,d,g,l,_,$,O,X,M]);return ae(Wa.Provider,{value:C,children:ae(xt.Root,{open:S,onOpenChange:k,children:e},void 0,!1,void 0,this)},void 0,!1,void 0,this)},bb=({children:e,className:t})=>ae("div",{role:"group",className:t,children:e},void 0,!1,void 0,this),vb=({placeholder:e})=>{let{value:t,getLabel:r}=_o();if(!t)return e?ae("span",{className:"text-muted-foreground",children:e},void 0,!1,void 0,this):null;let o=r(t);return ae(yb,{children:o??t},void 0,!1,void 0,this)},rd=oo(({className:e,children:t,size:r=Q.md,status:o=wr.default,fullWidth:i=!1,clearable:n=!1,leadingIcon:s,indicatorIcon:l,renderValue:d,placeholder:c,onKeyDown:g,...u},P)=>{let p=_o(),b=m(r)??r,x=p.setTriggerSize,M=p.setTriggerFullWidth;Do(()=>{x(b)},[b,x]),Do(()=>{M(i)},[i,M]);let w=p.value.length>0,z=n&&w&&!p.disabled,v=(S)=>{S.stopPropagation(),S.preventDefault(),p.onValueChange("")},T;if(d)T=w?d(p.value):c?ae("span",{className:"text-muted-foreground",children:c},void 0,!1,void 0,this):null;else T=t;let I=(S)=>{if(g?.(S),S.defaultPrevented)return;if(S.key==="ArrowDown"||S.key==="ArrowUp"||S.key==="Enter"||S.key===" "){if(!p.open)S.preventDefault(),p.onOpenChange(!0)}};return ae(xt.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":w?void 0:"",className:a(ed({size:b,status:o}),i?"w-full":"w-auto",e),onKeyDown:I,...u,children:[s&&ae("i",{className:"inline-flex shrink-0 items-center text-muted-foreground not-italic",children:s},void 0,!1,void 0,this),ae("span",{"data-slot":"select-value",className:"min-w-0 flex-1 text-left",children:T},void 0,!1,void 0,this),ae("span",{className:"inline-flex shrink-0 items-center gap-1 text-muted-foreground",children:[z&&ae("span",{role:"button",tabIndex:-1,"aria-label":"Clear selection",onMouseDown:(S)=>S.preventDefault(),onClick:v,className:"gs-interactive inline-flex items-center justify-center rounded-[calc(var(--radius)-4px)] text-muted-foreground hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",children:ae(sb,{className:Fo[b]},void 0,!1,void 0,this)},void 0,!1,void 0,this),l??ae(nb,{className:a(Fo[b],"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)});rd.displayName="SelectTrigger";var od=oo(({className:e,children:t,widthMode:r,size:o,align:i="start",side:n="bottom",sideOffset:s=4,portal:l=!0,forceMount:d=!0,onKeyDown:c,...g},u)=>{let P=_o(),p=$a(o),b=r??ro.auto,x=jm(null),M=Wr(u,x),w=(T)=>{let I=x.current;if(!I)return;let S=Array.from(I.querySelectorAll('[role="option"]:not([data-disabled])'));if(S.length===0)return;let H=I.querySelector('[role="option"]:focus'),k=H?S.indexOf(H):-1,O;switch(T){case"first":O=S[0];break;case"last":O=S[S.length-1];break;case"next":O=S[k+1]??S[0];break;case"prev":O=S[k-1]??S[S.length-1];break}O?.focus()},z=(T)=>{if(c?.(T),T.defaultPrevented)return;switch(T.key){case"ArrowDown":T.preventDefault(),w("next");break;case"ArrowUp":T.preventDefault(),w("prev");break;case"Home":T.preventDefault(),w("first");break;case"End":T.preventDefault(),w("last");break;case"Escape":T.preventDefault(),P.onOpenChange(!1);break}};Do(()=>{if(P.open)requestAnimationFrame(()=>w("first"))},[P.open]);let v=ae(xt.Content,{ref:M,id:P.contentId,role:"listbox","aria-labelledby":P.triggerId,side:n,align:i,sideOffset:s,forceMount:d,onKeyDown:z,onOpenAutoFocus:(T)=>T.preventDefault(),className:a(Pr(),td({widthMode:b,size:p}),"p-1",e),...g,children:t},void 0,!1,void 0,this);if(l)return ae(xt.Portal,{children:v},void 0,!1,void 0,this);return v});od.displayName="SelectContent";var ad=oo(({className:e,size:t,...r},o)=>{let i=$a(t);return ae("div",{ref:o,className:a("font-semibold text-foreground",fb[i],e),...r},void 0,!1,void 0,this)});ad.displayName="SelectLabel";var id=oo(({className:e,children:t,value:r,label:o,size:i,disabled:n=!1,...s},l)=>{let d=_o(),c=$a(i),g=d.value===r,u=d.registerItem,P=Ga(lb.toArray(t)).trim();Do(()=>{let x=o??(P.length>0?P:r);u(r,x)},[P,r,o,u]);let p=()=>{if(!n)d.onValueChange(r)},b=(x)=>{if(x.key==="Enter"||x.key===" ")x.preventDefault(),p()};return ae("div",{ref:l,role:"option",tabIndex:n?void 0:-1,"aria-selected":g,"aria-disabled":n||void 0,"data-selected":g?"":void 0,"data-disabled":n?"":void 0,"data-value":r,className:a("gs-interactive relative flex w-full cursor-pointer select-none items-center gap-2","rounded-[calc(var(--radius)-3px)] outline-none","hover:bg-accent focus-visible:bg-accent focus-visible:text-accent-foreground","data-disabled:cursor-not-allowed data-disabled:opacity-50",ub[c],g&&"bg-accent/50",e),onClick:p,onKeyDown:b,...s,children:[ae("span",{className:a("flex shrink-0 items-center justify-center",Fo[c]),children:g&&ae(ib,{className:Fo[c]},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)});id.displayName="SelectItem";var nd=oo(({className:e,...t},r)=>ae("div",{ref:r,className:a("-mx-1 my-1 h-px bg-border",e),...t},void 0,!1,void 0,this));nd.displayName="SelectSeparator";import{cva as Ka}from"class-variance-authority";import{createContext as Pb,forwardRef as Ya,useCallback as sd,useContext as dd,useEffect as Ua,useLayoutEffect as hb,useRef as ld,useState as md}from"react";import{jsxDEV as Yt}from"react/jsx-dev-runtime";var Me={sm:"sm",md:"md",lg:"lg"},pd=Ka("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}}),cd=Ka(["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}}),ud=Ka(["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}}),Xa=Pb({activeValue:"",onSelect:()=>{},size:Me.md,disabled:!1}),Tb=typeof window<"u"?hb:Ua,fd=Ya(({className:e,value:t,defaultValue:r,onValueChange:o,size:i,disabled:n=!1,children:s,...l},d)=>{let c=m(i),g=ld(null),[u,P]=md(r??""),[p,b]=md(null),x=ld(!0),M=t!==void 0?t:u,w=sd((v)=>{if(n)return;if(t===void 0)P(v);o?.(v)},[n,t,o]),z=sd(()=>{let v=g.current;if(!v)return;let T=v.querySelector('[data-state="active"]');if(!T){b(null);return}let I=v.getBoundingClientRect(),S=T.getBoundingClientRect();b({left:S.left-I.left,width:S.width})},[]);return Tb(()=>{z()},[z,M]),Ua(()=>{if(x.current)requestAnimationFrame(()=>{x.current=!1})},[]),Ua(()=>{let v=g.current;if(!v)return;let T=new MutationObserver(()=>{z()});return T.observe(v,{attributes:!0,attributeFilter:["data-state"],subtree:!0}),()=>T.disconnect()},[z]),Yt(Xa.Provider,{value:{activeValue:M,onSelect:w,size:c,disabled:n},children:Yt("div",{ref:(v)=>{if(g.current=v,typeof d==="function")d(v);else if(d)d.current=v},role:"radiogroup",className:a(pd({size:c}),n&&"opacity-50 pointer-events-none",e),...l,children:[p&&Yt("span",{"aria-hidden":"true",className:a("absolute rounded-[calc(var(--radius)-2px)] bg-background shadow-sm",!x.current&&"transition-[left,width] duration-[var(--motion-duration-medium)] ease-[var(--motion-ease-emphasized)]"),style:{left: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 gd=Ya(({className:e,value:t,icon:r,disabled:o=!1,...i},n)=>{let{activeValue:s,onSelect:l,size:d,disabled:c}=dd(Xa),g=s===t,u=o||c;return Yt("button",{ref:n,type:"button",role:"radio","aria-checked":g,"aria-disabled":u||void 0,"data-state":g?"active":"inactive","data-value":t,disabled:u,onClick:()=>l(t),className:a(cd({size:d,active:g}),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)});gd.displayName="SegmentedControlItem";var bd=Ya(({className:e,value:t,icon:r,disabled:o=!1,children:i,...n},s)=>{let{activeValue:l,onSelect:d,size:c,disabled:g}=dd(Xa),u=l===t,P=o||g;return Yt("button",{ref:s,type:"button",role:"radio","aria-checked":u,"aria-disabled":P||void 0,"data-state":u?"active":"inactive","data-value":t,disabled:P,onClick:()=>d(t),className:a(ud({size:c,active:u}),e),...n,children:[r&&Yt("span",{className:"size-4 [&>svg]:size-full",children:r},void 0,!1,void 0,this),i]},void 0,!0,void 0,this)});bd.displayName="SegmentedControlLabelItem";import{cva as xb}from"class-variance-authority";import{forwardRef as zb}from"react";import{jsxDEV as Sb}from"react/jsx-dev-runtime";var ao={horizontal:"horizontal",vertical:"vertical"},vd=xb("shrink-0 bg-border",{variants:{orientation:{[ao.horizontal]:"h-px w-full",[ao.vertical]:"h-full w-px"}},defaultVariants:{orientation:ao.horizontal}}),yd=zb(({className:e,orientation:t=ao.horizontal,decorative:r=!0,...o},i)=>{let n=r?{role:"none"}:{role:"separator","aria-orientation":t};return Sb("div",{ref:i,className:a(vd({orientation:t}),e),...n,...o},void 0,!1,void 0,this)});yd.displayName="Separator";import{cva as Oo}from"class-variance-authority";import{forwardRef as Go}from"react";import{jsxDEV as Wo}from"react/jsx-dev-runtime";var pe={sm:"sm",md:"md",lg:"lg"},Pd=Oo("animate-pulse rounded-[var(--radius)] bg-muted"),hd=Oo("w-full",{variants:{size:{[pe.sm]:"h-3",[pe.md]:"h-4",[pe.lg]:"h-5"}},defaultVariants:{size:pe.md}}),Td=Oo("",{variants:{size:{[pe.sm]:"h-8 w-8",[pe.md]:"h-10 w-10",[pe.lg]:"h-12 w-12"}},defaultVariants:{size:pe.md}}),xd=Oo("",{variants:{size:{[pe.sm]:"h-8 w-20",[pe.md]:"h-9 w-24",[pe.lg]:"h-10 w-28"}},defaultVariants:{size:pe.md}}),io=Go(({className:e,circle:t=!1,...r},o)=>Wo("div",{ref:o,className:a(Pd(),t&&"rounded-full",e),...r},void 0,!1,void 0,this));io.displayName="Skeleton";var zd=Go(({className:e,size:t=pe.md,...r},o)=>{let i=m(t)??pe.md;return Wo(io,{ref:o,className:a(hd({size:i}),e),...r},void 0,!1,void 0,this)});zd.displayName="SkeletonText";var Sd=Go(({className:e,size:t=pe.md,...r},o)=>{let i=m(t)??pe.md;return Wo(io,{ref:o,circle:!0,className:a(Td({size:i}),e),...r},void 0,!1,void 0,this)});Sd.displayName="SkeletonAvatar";var Cd=Go(({className:e,size:t=pe.md,...r},o)=>{let i=m(t)??pe.md;return Wo(io,{ref:o,className:a(xd({size:i}),e),...r},void 0,!1,void 0,this)});Cd.displayName="SkeletonButton";import*as zt from"@radix-ui/react-slider";import{cva as Ko}from"class-variance-authority";import{forwardRef as Cb}from"react";import{jsxDEV as Uo}from"react/jsx-dev-runtime";var $o={sm:"sm",md:"md",lg:"lg"},wd=Ko("relative flex w-full touch-none select-none items-center",{variants:{size:{[$o.sm]:"[&_[data-slider-track]]:h-0.5 [&_[data-slider-thumb]]:h-3 [&_[data-slider-thumb]]:w-3",[$o.md]:"[&_[data-slider-track]]:h-2 [&_[data-slider-thumb]]:h-5 [&_[data-slider-thumb]]:w-5",[$o.lg]:"[&_[data-slider-track]]:h-3 [&_[data-slider-thumb]]:h-6 [&_[data-slider-thumb]]:w-6"}},defaultVariants:{size:$o.md}}),Md=Ko("relative w-full grow overflow-hidden rounded-full bg-secondary"),Nd=Ko("absolute h-full bg-primary"),Ld=Ko("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"),Rd=Cb(({className:e,size:t,...r},o)=>{let i=m(t);return Uo(zt.Root,{ref:o,className:a(wd({size:i}),e),...r,children:[Uo(zt.Track,{"data-slider-track":!0,className:a(Md()),children:Uo(zt.Range,{className:a(Nd())},void 0,!1,void 0,this)},void 0,!1,void 0,this),(r.defaultValue??r.value??[0]).map((n,s)=>Uo(zt.Thumb,{"data-slider-thumb":!0,className:a(Ld())},`thumb-${String(s)}`,!1,void 0,this))]},void 0,!0,void 0,this)});Rd.displayName="Slider";import{cva as ve}from"class-variance-authority";import{forwardRef as Nb,useCallback as Mr,useEffect as qa,useMemo as Yo,useRef as kd,useState as Xo}from"react";import{createPortal as Lb}from"react-dom";import{useCallback as wb,useEffect as Mb,useRef as Hd}from"react";function Za(e,t,r={}){let{enabled:o=!0,preventDefault:i=!0,stopPropagation:n=!1,target:s="global"}=r,l=Hd(t);l.current=t;let d=Hd([]),c=Array.isArray(e)?e:[e];d.current=c.map((u)=>({combo:u,def:Ha(u)}));let g=wb((u)=>{if(!o)return;for(let{combo:P,def:p}of d.current)if(ka(u,p)){if(i)u.preventDefault();if(n)u.stopPropagation();l.current(u,P);return}},[o,i,n]);Mb(()=>{if(!o)return;let u=s==="global"?document:s.current;if(!u)return;return u.addEventListener("keydown",g),()=>{u.removeEventListener("keydown",g)}},[o,g,s])}import{jsxDEV as q}from"react/jsx-dev-runtime";var Xt={sm:"sm",md:"md",lg:"lg",xl:"xl"},Nr={idle:"idle",loading:"loading",error:"error"},Ad=ve("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"}}),Id=ve(["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"}}),Vd=ve("flex items-center gap-3 border-b border-border px-4 py-3"),Bd=ve(["w-full flex-1 bg-transparent text-foreground text-base","placeholder:text-muted-foreground","outline-none border-none"]),Dd=ve("size-4 text-muted-foreground shrink-0"),Zo=ve(["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"]),Fd=ve("overflow-y-auto max-h-80 py-1"),_d=ve("px-3 py-2 text-xs font-semibold text-muted-foreground uppercase tracking-wide"),Od=ve(["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}}),Gd=ve("size-4 shrink-0",{variants:{selected:{true:"text-primary",false:"text-muted-foreground"}},defaultVariants:{selected:!1}}),Wd=ve("flex-1 min-w-0"),$d=ve("text-sm font-medium truncate"),Ud=ve("text-xs text-muted-foreground truncate"),Kd=ve("flex items-center gap-1 text-[11px] text-muted-foreground shrink-0"),qo=ve("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"}}),Jo=ve("text-sm font-medium"),Yd=ve("text-xs mt-1"),Rb=(e,t)=>{if(!t)return!0;let r=t.toLowerCase();if(e.title.toLowerCase().includes(r))return!0;if(e.description?.toLowerCase().includes(r))return!0;if(e.keywords?.some((o)=>o.toLowerCase().includes(r)))return!0;return!1},Xd=Nb(({className:e,open:t,onOpenChange:r,actions:o,onActionSelect:i,value:n,defaultValue:s="",onValueChange:l,placeholder:d="Search commands, pages, or actions...",size:c=Xt.md,status:g=Nr.idle,statusMessage:u,emptyText:P="No command found for this query.",hotkey:p,portal:b=!0,...x},M)=>{let w=kd(null),z=kd(null),[v,T]=Xo(s),[I,S]=Xo(0),[H,k]=Xo(!1),[O,X]=Xo(!1),{isMac:_}=Kr(),$=Mr((R)=>Ur(R,_),[_]),C=Yo(()=>p&&p.length>0?p.join("+"):null,[p]);Za(C??"",()=>r(!t),{enabled:!!C});let A=n!==void 0?n:v,h=Yo(()=>o.filter((R)=>Rb(R,A)),[o,A]),V=Yo(()=>h.map((R,j)=>!R.disabled?j:-1).filter((R)=>R>=0),[h]),J=Yo(()=>{let R=new Map,j=new Map,ie=0;for(let Ne of h){let Rt=Ne.group??"";if(!R.has(Rt))R.set(Rt,[]);R.get(Rt).push(Ne),j.set(Ne,ie),ie++}return{groups:R,indexMap:j}},[h]);qa(()=>{if(t){k(!0),X(!1),S(0);return}if(H)X(!0)},[t]);let L=Mr(()=>{if(O)k(!1),X(!1)},[O]);qa(()=>{if(t)document.body.style.overflow="hidden";else document.body.style.overflow="";return()=>{document.body.style.overflow=""}},[t]),qa(()=>{if(t&&H)requestAnimationFrame(()=>w.current?.focus())},[t,H]);let K=Mr((R)=>{let j=R.target.value;T(j),l?.(j),S(0)},[l]),f=Mr((R)=>{let j=z.current;if(!j)return;j.querySelectorAll('[role="option"]')[R]?.scrollIntoView({block:"nearest"})},[]),y=Mr((R)=>{if(R.key==="Escape"){R.preventDefault(),r(!1);return}if(R.key==="ArrowDown"){if(R.preventDefault(),V.length===0)return;let ie=(V.indexOf(I)+1)%V.length,Ne=V[ie];S(Ne),f(Ne);return}if(R.key==="ArrowUp"){if(R.preventDefault(),V.length===0)return;let ie=(V.indexOf(I)-1+V.length)%V.length,Ne=V[ie];S(Ne),f(Ne);return}if(R.key==="Enter"){R.preventDefault();let j=h[I];if(j&&!j.disabled)i(j,I)}},[I,V,h,i,r,f]),N=Mr((R,j)=>{if(R.disabled)return;i(R,j)},[i]);if(!H)return null;let ce=O?"closing":"open",Z=g===Nr.idle,ke=g!==Nr.idle,E=q("div",{ref:M,role:"dialog","aria-modal":"true",onKeyDown:y,className:a(e),...x,children:[q("div",{"data-testid":"spotlight-overlay",className:a(Ad({state:ce})),onClick:()=>r(!1),onKeyDown:(R)=>{if(R.key==="Escape")r(!1)}},void 0,!1,void 0,this),q("div",{className:a(Id({size:c,state:ce})),onAnimationEnd:L,children:[q("div",{className:a(Vd()),children:[q("svg",{className:a(Dd()),fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:q("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),q("input",{ref:w,type:"text",value:A,onChange:K,placeholder:d,className:a(Bd())},void 0,!1,void 0,this),p?q("div",{className:"flex items-center gap-1",children:p.map((R)=>q("kbd",{className:a(Zo()),children:$(R)},R,!1,void 0,this))},void 0,!1,void 0,this):q("kbd",{className:a(Zo()),children:"ESC"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),ke&&g===Nr.loading&&q("div",{className:a(qo({state:"loading"})),children:q("div",{className:a(Jo()),children:"Searching commands..."},void 0,!1,void 0,this)},void 0,!1,void 0,this),ke&&g===Nr.error&&q("div",{className:a(qo({state:"error"})),children:[q("div",{className:a(Jo()),children:"Search failed"},void 0,!1,void 0,this),u&&q("div",{className:a(Yd()),children:u},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Z&&h.length===0&&q("div",{className:a(qo({state:"empty"})),children:q("div",{className:a(Jo()),children:P},void 0,!1,void 0,this)},void 0,!1,void 0,this),Z&&h.length>0&&q("div",{ref:z,className:a(Fd()),children:Array.from(J.groups.entries()).map(([R,j])=>q("div",{children:[R&&q("div",{className:a(_d()),children:R},void 0,!1,void 0,this),j.map((ie)=>{let Ne=J.indexMap.get(ie)??0,Rt=Ne===I;return q("div",{role:"option","aria-selected":Rt,"aria-disabled":ie.disabled??!1,onClick:()=>N(ie,Ne),className:a(Od({selected:Rt,disabled:ie.disabled??!1})),children:[ie.icon&&q("span",{className:a(Gd({selected:Rt})),children:ie.icon},void 0,!1,void 0,this),q("div",{className:a(Wd()),children:[q("div",{className:a($d()),children:ie.title},void 0,!1,void 0,this),ie.description&&q("div",{className:a(Ud()),children:ie.description},void 0,!1,void 0,this)]},void 0,!0,void 0,this),ie.shortcut&&ie.shortcut.length>0&&q("div",{className:a(Kd()),children:ie.shortcut.map((pi)=>q("kbd",{className:a(Zo()),children:$(pi)},pi,!1,void 0,this))},void 0,!1,void 0,this)]},ie.id,!0,void 0,this)})]},R||"__ungrouped__",!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this);if(b)return Lb(E,document.body);return E});Xd.displayName="Spotlight";import{cva as Hb}from"class-variance-authority";import{forwardRef as kb}from"react";import{jsxDEV as St}from"react/jsx-dev-runtime";var _e={sm:"sm",md:"md",lg:"lg"},Zt={up:"up",down:"down",neutral:"neutral"},Zd=Hb("gs-interactive relative flex flex-col rounded-lg border border-border bg-card text-card-foreground shadow-sm transition-[color,background-color,border-color,box-shadow] duration-150 hover:shadow-md",{variants:{size:{[_e.sm]:"gap-1 p-3",[_e.md]:"gap-1.5 p-4",[_e.lg]:"gap-2 p-5"}},defaultVariants:{size:_e.md}}),Ab={[_e.sm]:"text-lg font-semibold",[_e.md]:"text-2xl font-bold",[_e.lg]:"text-3xl font-bold"},Ib={[_e.sm]:"text-xs",[_e.md]:"text-sm",[_e.lg]:"text-base"},Vb={[Zt.up]:"text-success",[Zt.down]:"text-destructive",[Zt.neutral]:"text-muted-foreground"},Bb={[Zt.up]:"↑",[Zt.down]:"↓",[Zt.neutral]:"→"},qd=kb(({className:e,size:t=_e.md,label:r,value:o,trend:i,trendValue:n,icon:s,...l},d)=>{let c=m(t);return St("div",{ref:d,className:a(Zd({size:c}),e),...l,children:[St("div",{className:"flex items-center justify-between",children:[St("span",{className:a("text-muted-foreground",Ib[c]),children:r},void 0,!1,void 0,this),s&&St("span",{className:"text-muted-foreground/70","aria-hidden":"true",children:s},void 0,!1,void 0,this)]},void 0,!0,void 0,this),St("div",{className:"flex items-baseline gap-2",children:[St("span",{className:a("tracking-tight text-foreground",Ab[c]),children:o},void 0,!1,void 0,this),i&&n&&St("span",{className:a("inline-flex items-center gap-0.5 text-xs font-medium",Vb[i]),children:[St("span",{"aria-hidden":"true",children:Bb[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)});qd.displayName="StatCard";import{cva as qt}from"class-variance-authority";import{Check as Db}from"lucide-react";import{forwardRef as Jt}from"react";import{jsxDEV as Ct}from"react/jsx-dev-runtime";var Jd=qt("flex w-full",{variants:{orientation:{horizontal:"flex-row items-start",vertical:"flex-col"}},defaultVariants:{orientation:"horizontal"}}),Qd=qt("flex",{variants:{orientation:{horizontal:"flex-1 flex-col items-center",vertical:"gap-4 flex-row"}},defaultVariants:{orientation:"horizontal"}}),Ed=qt(["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}}),jd=qt("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}}),ep=qt("flex flex-col",{variants:{orientation:{horizontal:"mt-3 items-center text-center",vertical:"flex-1 pb-8 last:pb-0"}},defaultVariants:{orientation:"horizontal"}}),tp=qt("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"}}),rp=qt("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 op=Jt(({className:e,orientation:t="horizontal",activeStep:r,...o},i)=>{return Ct("div",{ref:i,role:"group","aria-label":"Progress steps",className:a(Jd({orientation:t}),e),"data-orientation":t,"data-active-step":r,...o},void 0,!1,void 0,this)});op.displayName="Stepper";var ap=Jt(({className:e,orientation:t="horizontal",isLast:r,isCurrent:o,...i},n)=>{return Ct("div",{ref:n,className:a(Qd({orientation:t}),e),"data-last":r,"aria-current":o?"step":void 0,...i},void 0,!1,void 0,this)});ap.displayName="Step";var ip=Jt(({className:e,status:t="incomplete",size:r="md",icon:o,step:i,children:n,animated:s=!0,...l},d)=>{let c=m(r);return Ct("div",{ref:d,className:a(Ed({status:t,size:c,animated:s}),e),"data-status":t,"aria-hidden":"true",...l,children:t==="complete"?o||Ct(Db,{className:"size-4",strokeWidth:3},void 0,!1,void 0,this):n||i},void 0,!1,void 0,this)});ip.displayName="StepIndicator";var np=Jt(({className:e,orientation:t="horizontal",status:r="incomplete",size:o="md",animated:i=!0,...n},s)=>{let l=m(o);return Ct("div",{ref:s,className:a(jd({orientation:t,status:r,size:l,animated:i}),e),"data-status":r,...n},void 0,!1,void 0,this)});np.displayName="StepConnector";var sp=Jt(({className:e,orientation:t="horizontal",...r},o)=>{return Ct("div",{ref:o,className:a(ep({orientation:t}),e),...r},void 0,!1,void 0,this)});sp.displayName="StepContent";var lp=Jt(({className:e,status:t="incomplete",size:r="md",...o},i)=>{let n=m(r);return Ct("h4",{ref:i,className:a(tp({status:t,size:n}),e),...o},void 0,!1,void 0,this)});lp.displayName="StepTitle";var mp=Jt(({className:e,size:t="md",...r},o)=>{let i=m(t);return Ct("p",{ref:o,className:a(rp({size:i}),e),...r},void 0,!1,void 0,this)});mp.displayName="StepDescription";import*as Qo from"@radix-ui/react-switch";import{cva as Fb}from"class-variance-authority";import{forwardRef as _b}from"react";import{jsxDEV as dp}from"react/jsx-dev-runtime";var Se={sm:"sm",md:"md",lg:"lg",xl:"xl"},Lr={default:"default",error:"error",success:"success"},pp=Fb("gs-interactive relative inline-flex shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent bg-input enabled:active:scale-[0.96] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:bg-input/70",{variants:{size:{[Se.sm]:"h-4.5 w-8",[Se.md]:"h-5 w-9",[Se.lg]:"h-6 w-11",[Se.xl]:"h-7 w-[3.25rem]"},status:{[Lr.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",[Lr.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",[Lr.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:Lr.default}}),Ob={[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"},Gb={[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"},cp=_b(({className:e,size:t=Se.md,status:r=Lr.default,checked:o,disabled:i,...n},s)=>{let l=m(t);return dp(Qo.Root,{ref:s,checked:o,disabled:i,className:a(pp({size:l,status:r}),e),...n,children:dp(Qo.Thumb,{className:a("pointer-events-none block rounded-full bg-background shadow-sm transition-transform duration-150",Ob[l],Gb[l])},void 0,!1,void 0,this)},void 0,!1,void 0,this)});cp.displayName="Switch";import{cva as mt}from"class-variance-authority";import{createContext as Wb,forwardRef as wt,useContext as up}from"react";import{jsxDEV as et}from"react/jsx-dev-runtime";var he={sm:"sm",md:"md",lg:"lg"},Ja=Wb(he.md),fp=mt("relative w-full overflow-auto rounded-[var(--radius)] border border-border bg-card shadow-[var(--shadow-sm)]"),gp=mt("w-full caption-bottom",{variants:{size:{[he.sm]:"text-xs",[he.md]:"text-sm",[he.lg]:"text-sm"}},defaultVariants:{size:he.md}}),bp=mt("sticky top-0 z-[1] [&_tr]:border-b [&_tr]:border-border [&_th]:bg-muted"),vp=mt("[&_tr:last-child]:border-0"),yp=mt("border-t border-border bg-muted font-medium text-muted-foreground [&>tr]:last:border-b-0"),Pp=mt("gs-interactive border-b border-border hover:bg-muted/50 data-[state=selected]:bg-primary/10"),hp=mt("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}}),Tp=mt("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}}),xp=mt("mt-4 text-sm text-muted-foreground"),zp=wt(({className:e,containerClassName:t,size:r=he.md,...o},i)=>{let n=m(r)??he.md;return et(Ja.Provider,{value:n,children:et("div",{className:a(fp(),t),children:et("table",{ref:i,className:a(gp({size:n}),e),...o},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)});zp.displayName="Table";var Sp=wt(({className:e,...t},r)=>et("thead",{ref:r,className:a(bp(),e),...t},void 0,!1,void 0,this));Sp.displayName="TableHeader";var Cp=wt(({className:e,...t},r)=>et("tbody",{ref:r,className:a(vp(),e),...t},void 0,!1,void 0,this));Cp.displayName="TableBody";var wp=wt(({className:e,...t},r)=>et("tfoot",{ref:r,className:a(yp(),e),...t},void 0,!1,void 0,this));wp.displayName="TableFooter";var Mp=wt(({className:e,...t},r)=>et("tr",{ref:r,className:a(Pp(),e),...t},void 0,!1,void 0,this));Mp.displayName="TableRow";var Np=wt(({className:e,size:t,...r},o)=>{let i=up(Ja);return et("th",{ref:o,className:a(hp({size:t??i}),e),...r},void 0,!1,void 0,this)});Np.displayName="TableHead";var Lp=wt(({className:e,size:t,...r},o)=>{let i=up(Ja);return et("td",{ref:o,className:a(Tp({size:t??i}),e),...r},void 0,!1,void 0,this)});Lp.displayName="TableCell";var Rp=wt(({className:e,...t},r)=>et("caption",{ref:r,className:a(xp(),e),...t},void 0,!1,void 0,this));Rp.displayName="TableCaption";import*as qe from"@radix-ui/react-tabs";import{cva as Qa}from"class-variance-authority";import{createContext as $b,forwardRef as Ea,useCallback as Hp,useContext as Ub,useEffect as ja,useLayoutEffect as Kb,useRef as Eo,useState as Yb}from"react";import{jsxDEV as no}from"react/jsx-dev-runtime";var tt={sm:"sm",md:"md",lg:"lg",xl:"xl"},kp=Qa("relative inline-flex items-center justify-center rounded-[var(--radius)] border border-border bg-muted/50 p-1 text-muted-foreground",{variants:{size:{[tt.sm]:"h-9 gap-0.5",[tt.md]:"h-11 gap-1",[tt.lg]:"h-12 gap-1",[tt.xl]:"h-14 gap-1.5"}},defaultVariants:{size:tt.md}}),Ap=Qa("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:{[tt.sm]:"px-2.5 py-1 text-xs",[tt.md]:"px-3 py-1.5 text-sm",[tt.lg]:"px-4 py-2 text-sm",[tt.xl]:"px-5 py-2.5 text-base"}},defaultVariants:{size:tt.md}}),Ip=Qa("mt-3 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2"),Vp=$b({registerTrigger:()=>{}}),Xb=typeof window<"u"?Kb:ja,Zb=qe.Root,Bp=Ea(({className:e,size:t,children:r,...o},i)=>{let n=m(t),s=Eo(null),l=Eo(new Map),[d,c]=Yb(null),g=Eo(!0),u=Hp((p,b)=>{if(b)l.current.set(p,b);else l.current.delete(p)},[]),P=Hp(()=>{let p=s.current;if(!p)return;let b=p.querySelector('[data-state="active"]');if(!b){c(null);return}let x=p.getBoundingClientRect(),M=b.getBoundingClientRect();c({left:M.left-x.left,width:M.width})},[]);return Xb(()=>{P()},[P]),ja(()=>{let p=s.current;if(!p)return;let b=new MutationObserver(()=>{g.current=!1,P()});return b.observe(p,{attributes:!0,attributeFilter:["data-state"],subtree:!0}),()=>b.disconnect()},[P]),no(Vp.Provider,{value:{registerTrigger:u},children:no(qe.List,{ref:(p)=>{if(s.current=p,typeof i==="function")i(p);else if(i)i.current=p},className:a(kp({size:n}),e),...o,children:[d&&no("span",{"aria-hidden":"true",className:a("absolute rounded-[calc(var(--radius)-2px)] bg-background shadow-sm",!g.current&&"transition-[left,width] duration-[var(--motion-duration-medium)] ease-[var(--motion-ease-emphasized)]"),style:{left:d.left,width:d.width,top:"4px",bottom:"4px"}},void 0,!1,void 0,this),r]},void 0,!0,void 0,this)},void 0,!1,void 0,this)});Bp.displayName=qe.List.displayName;var Dp=Ea(({className:e,size:t,value:r,...o},i)=>{let n=m(t),{registerTrigger:s}=Ub(Vp),l=Eo(null);return ja(()=>{return s(r,l.current),()=>s(r,null)},[r,s]),no(qe.Trigger,{ref:(d)=>{if(l.current=d,typeof i==="function")i(d);else if(i)i.current=d},value:r,className:a(Ap({size:n}),e),...o},void 0,!1,void 0,this)});Dp.displayName=qe.Trigger.displayName;var Fp=Ea(({className:e,...t},r)=>no(qe.Content,{ref:r,className:a(Ip(),e),...t},void 0,!1,void 0,this));Fp.displayName=qe.Content.displayName;import{cva as qb}from"class-variance-authority";import{forwardRef as Jb}from"react";import{jsxDEV as Qb}from"react/jsx-dev-runtime";var so={default:"default",error:"error",success:"success"},Rr={sm:"sm",md:"md",lg:"lg",xl:"xl"},_p=qb("gs-interactive w-full resize-y rounded-[var(--radius)] border border-input bg-background text-sm text-foreground outline-none placeholder:text-muted-foreground focus-visible:ring-2 disabled:cursor-not-allowed disabled:border-border disabled:bg-muted/45 disabled:text-muted-foreground",{variants:{status:{[so.default]:"focus-visible:ring-primary",[so.error]:"border-destructive focus-visible:ring-destructive",[so.success]:"border-success focus-visible:ring-success"},size:{[Rr.sm]:"min-h-[64px] px-2 py-1.5 text-xs",[Rr.md]:"min-h-[96px] px-3 py-2",[Rr.lg]:"min-h-[112px] px-4 py-2.5",[Rr.xl]:"min-h-[128px] px-4 py-3 text-base"}},defaultVariants:{status:so.default,size:Rr.md}}),Op=Jb(({className:e,status:t=so.default,size:r=Rr.md,fullWidth:o=!1,noResize:i=!1,disabled:n,...s},l)=>{let d=m(r);return Qb("textarea",{ref:l,className:a(_p({status:t,size:d}),n&&"bg-muted",o&&"w-full",i&&"resize-none",e),disabled:n,...s},void 0,!1,void 0,this)});Op.displayName="Textarea";import{cva as Mt}from"class-variance-authority";import{forwardRef as Nt}from"react";import{jsxDEV as rt}from"react/jsx-dev-runtime";var Gp=Mt("relative flex flex-col"),Wp=Mt(["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}}),$p=Mt(["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}}),Up=Mt(["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}}),Kp=Mt("flex flex-col gap-1 pt-0.5 min-w-0 transition-opacity duration-200 ease-[cubic-bezier(0.22,1,0.36,1)]"),Yp=Mt("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"}}),Xp=Mt("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"}}),Zp=Mt("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 qp=Nt(({className:e,...t},r)=>{return rt("div",{ref:r,role:"list","aria-label":"Timeline events",className:a(Gp(),e),...t},void 0,!1,void 0,this)});qp.displayName="Timeline";var Jp=Nt(({className:e,align:t,isLast:r,animated:o=!0,...i},n)=>{return rt("div",{ref:n,role:"listitem",className:a(Wp({align:t,animated:o}),e),"data-last":r,...i},void 0,!1,void 0,this)});Jp.displayName="TimelineItem";var Qp=Nt(({className:e,variant:t,size:r,animated:o=!0,...i},n)=>{let s=m(r);return rt("div",{ref:n,className:a($p({variant:t,size:s,animated:o}),e),...i},void 0,!1,void 0,this)});Qp.displayName="TimelineConnector";var Ep=Nt(({className:e,variant:t,size:r,icon:o,children:i,pulse:n=!1,animated:s=!0,...l},d)=>{let c=m(r);return rt("div",{ref:d,className:a(Up({variant:t,size:c,pulse:n,animated:s}),e),"aria-hidden":"true",...l,children:o||i||rt(Eb,{},void 0,!1,void 0,this)},void 0,!1,void 0,this)});Ep.displayName="TimelineDot";var jp=Nt(({className:e,...t},r)=>{return rt("div",{ref:r,className:a(Kp(),e),...t},void 0,!1,void 0,this)});jp.displayName="TimelineContent";var ec=Nt(({className:e,size:t,...r},o)=>{let i=m(t);return rt("h4",{ref:o,className:a(Yp({size:i}),e),...r},void 0,!1,void 0,this)});ec.displayName="TimelineTitle";var tc=Nt(({className:e,size:t,...r},o)=>{let i=m(t);return rt("p",{ref:o,className:a(Xp({size:i}),e),...r},void 0,!1,void 0,this)});tc.displayName="TimelineDescription";var rc=Nt(({className:e,size:t,...r},o)=>{let i=m(t);return rt("time",{ref:o,className:a(Zp({size:i}),e),...r},void 0,!1,void 0,this)});rc.displayName="TimelineTime";function Eb(){return rt("span",{className:"size-2 rounded-full bg-current"},void 0,!1,void 0,this)}import{cva as oc}from"class-variance-authority";var Hr={default:"default",success:"success",info:"info",warning:"warning",error:"error"},Oe={sm:"sm",md:"md",lg:"lg"},ei=oc("pointer-events-auto relative flex w-full items-center overflow-hidden rounded-[var(--radius)] border shadow-[var(--shadow-md)]",{variants:{variant:{[Hr.default]:"border-border bg-card text-card-foreground",[Hr.success]:"border-success/30 bg-card text-card-foreground",[Hr.info]:"border-info/30 bg-card text-card-foreground",[Hr.warning]:"border-warning/30 bg-card text-card-foreground",[Hr.error]:"border-destructive/30 bg-card text-card-foreground"},size:{[Oe.sm]:"gap-2 p-3",[Oe.md]:"gap-3 p-4",[Oe.lg]:"gap-3.5 p-5"}},defaultVariants:{variant:Hr.default,size:Oe.md}}),ti=oc("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:{[Oe.sm]:"h-6 px-2 text-xs",[Oe.md]:"h-7 px-2.5 text-xs",[Oe.lg]:"h-8 px-3 text-sm"}},defaultVariants:{size:Oe.md}});import{AlertTriangle as sv,CheckCircle2 as lv,Info as lc,X as mv,XCircle as dv}from"lucide-react";import{forwardRef as pv,useCallback as ta,useEffect as ra,useRef as ni,useState as si}from"react";import{useSyncExternalStore as jb}from"react";var ev=5,ic=5000,tv=500,ri=0;function rv(){return ri=(ri+1)%Number.MAX_SAFE_INTEGER,`toast-${ri}-${Date.now()}`}var oi=new Set,Ge=[],Et=new Map,mo=new Map,po=!1,Qt=new Map;function jo(){for(let e of oi)e()}function ac(){return Ge}function ov(e){return oi.add(e),()=>{oi.delete(e)}}function ai(e,t){if(po){Qt.set(e,t);return}clearTimeout(Et.get(e));let r=Date.now(),o=setTimeout(()=>{Et.delete(e),Qt.delete(e),ea(e)},t);Et.set(e,o),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 av(e){clearTimeout(mo.get(e));let t=setTimeout(()=>{Ge=Ge.filter((r)=>r.id!==e),mo.delete(e),jo()},tv);mo.set(e,t)}function lo(e){let t=e.id??rv(),r=e.duration??ic;if(Ge.find((n)=>n.id===t))return Ge=Ge.map((n)=>n.id===t?{...n,...e,id:t,open:!0,createdAt:Date.now()}:n),clearTimeout(mo.get(t)),mo.delete(t),ai(t,r),jo(),t;return Ge=[{...e,id:t,variant:e.variant??"default",dismissible:e.dismissible??!0,open:!0,createdAt:Date.now()},...Ge].slice(0,ev),ai(t,r),jo(),t}function ea(e){clearTimeout(Et.get(e)),Et.delete(e),Qt.delete(e),Ge=Ge.map((t)=>t.id===e?{...t,open:!1}:t),jo(),av(e)}function nc(){for(let e of Ge)ea(e.id)}function iv(){if(po)return;po=!0;for(let[e,t]of Et)clearTimeout(t),Et.delete(e)}function nv(){if(!po)return;po=!1;for(let e of Ge)if(e.open){let t=Qt.get(e.id)??ic;ai(e.id,t)}}var sc=Object.assign((e)=>lo(e),{success:(e,t)=>lo({...t,variant:"success",title:e}),info:(e,t)=>lo({...t,variant:"info",title:e}),warning:(e,t)=>lo({...t,variant:"warning",title:e}),error:(e,t)=>lo({...t,variant:"error",title:e}),dismiss:ea,dismissAll:nc});function ii(){return{toasts:jb(ov,ac,ac),toast:sc,dismiss:ea,dismissAll:nc,pauseAll:iv,resumeAll:nv}}import{jsxDEV as Ce}from"react/jsx-dev-runtime";var dc=10,mc=0.05,cv=200,pc="cubic-bezier(0.2, 0.8, 0.2, 1)",uv="cubic-bezier(0.22, 1, 0.36, 1)",fv={"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"},gv={success:(e)=>Ce(lv,{className:a("mt-0.5 shrink-0 text-success",e==="sm"?"size-4":"size-[18px]")},void 0,!1,void 0,this),info:(e)=>Ce(lc,{className:a("mt-0.5 shrink-0 text-info",e==="sm"?"size-4":"size-[18px]")},void 0,!1,void 0,this),warning:(e)=>Ce(sv,{className:a("mt-0.5 shrink-0 text-warning",e==="sm"?"size-4":"size-[18px]")},void 0,!1,void 0,this),error:(e)=>Ce(dv,{className:a("mt-0.5 shrink-0 text-destructive",e==="sm"?"size-4":"size-[18px]")},void 0,!1,void 0,this),default:(e)=>Ce(lc,{className:a("mt-0.5 shrink-0 text-muted-foreground",e==="sm"?"size-4":"size-[18px]")},void 0,!1,void 0,this)};function bv(e,t,r,o,i){let n=e<o,s=r?i:e*dc,l=r?1:n?1-e*mc:1-o*mc,d=n||r?1:0,c=t-e;return{offset:s,scale:l,opacity:d,zIndex:c}}var cc=pv(({position:e="bottom-right",gap:t=12,visibleCount:r=3,size:o=Oe.md,className:i,...n},s)=>{let{toasts:l,dismiss:d,pauseAll:c,resumeAll:g}=ii(),u=m(o)??Oe.md,[P,p]=si(!1),[b,x]=si({}),M=ni(null),w=ni(void 0),z=e.startsWith("bottom"),v=ta((h)=>{if(M.current=h,typeof s==="function")s(h);else if(s)s.current=h},[s]),T=ta(()=>{clearTimeout(w.current),p(!0),c()},[c]),I=ta(()=>{clearTimeout(w.current),w.current=setTimeout(()=>{p(!1),g()},cv)},[g]);ra(()=>{return()=>clearTimeout(w.current)},[]);let S=ta((h,V)=>{x((J)=>{if(J[h]===V)return J;return{...J,[h]:V}})},[]);if(ra(()=>{let h=new Set(l.map((V)=>V.id));x((V)=>{let J=!1,L={};for(let[K,f]of Object.entries(V))if(h.has(K))L[K]=f;else J=!0;return J?L:V})},[l]),l.length===0)return null;let H=l.filter((h)=>h.open),k=new Map,O=0;for(let[h,V]of H.entries()){let J=b[V.id]??0;k.set(V.id,bv(h,H.length,P,r,O)),O+=J+t}let X=H[0],$=(X?b[X.id]??0:0)+Math.min(H.length-1,r-1)*dc,C=O-(H.length>0?t:0),A=P?C:$;return Ce("ol",{ref:v,role:"region","aria-label":"Notifications",tabIndex:-1,onMouseEnter:T,onMouseLeave:I,className:a("pointer-events-auto fixed z-[100] w-full max-w-[400px] outline-none",fv[e],i),style:{height:Math.max(A,0),transition:`height 400ms ${pc}`},...n,children:l.map((h)=>{let V=!h.open,J=k.get(h.id);return Ce(vv,{toast:h,layout:J??{offset:0,scale:1,opacity:0,zIndex:0},isClosed:V,isBottom:z,size:u,onDismiss:d,onMeasure:S},h.id,!1,void 0,this)})},void 0,!1,void 0,this)});cc.displayName="Toaster";function vv({toast:e,layout:t,isClosed:r,isBottom:o,size:i,onDismiss:n,onMeasure:s}){let l=ni(null),[d,c]=si(!1);ra(()=>{let b=requestAnimationFrame(()=>c(!0));return()=>cancelAnimationFrame(b)},[]),ra(()=>{let b=l.current;if(!b)return;let x=new ResizeObserver((M)=>{for(let w of M){let z=w.borderBoxSize?.[0];if(z)s(e.id,z.blockSize)}});return x.observe(b),()=>x.disconnect()},[e.id,s]);let g=o?{bottom:0,left:0,right:0}:{top:0,left:0,right:0},u,P,p;if(!d)u=`translateY(${o?80:-80}px) scale(0.9)`,P=0,p="none";else if(r)u=`translateY(${o?80:-80}px) scale(0.95)`,P=0,p="none";else u=`translateY(${o?-t.offset:t.offset}px) scale(${t.scale})`,P=t.opacity,p="auto";return Ce("li",{ref:l,"data-state":e.open?"open":"closed","data-variant":e.variant,className:"absolute list-none",style:{...g,zIndex:t.zIndex,transformOrigin:o?"center bottom":"center top",transform:u,opacity:P,pointerEvents:p,transition:[`transform 400ms ${pc}`,`opacity 250ms ${uv}`].join(", ")},children:Ce("div",{className:a(ei({variant:e.variant,size:i}),"w-full"),children:[gv[e.variant]?.(i),Ce("div",{className:"flex-1 space-y-0.5",children:[e.title&&Ce("p",{className:a("font-semibold leading-tight",i==="sm"?"text-xs":"text-sm"),children:e.title},void 0,!1,void 0,this),e.description&&Ce("p",{className:a("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&&Ce("button",{type:"button",className:a(ti({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&&Ce("button",{type:"button",className:a("gs-interactive mt-0.5 shrink-0 rounded-[var(--radius)] p-1 text-muted-foreground hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",i==="sm"?"[&>svg]:size-3.5":"[&>svg]:size-4"),onClick:()=>n(e.id),"aria-label":"Dismiss",children:Ce(mv,{},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 yv}from"class-variance-authority";import{forwardRef as Pv}from"react";import{jsxDEV as hv}from"react/jsx-dev-runtime";var li={default:"default",outline:"outline"},oa={sm:"sm",md:"md",lg:"lg"},aa=yv("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:{[li.default]:"bg-transparent disabled:bg-transparent disabled:text-foreground/50",[li.outline]:"border-input bg-transparent hover:bg-accent hover:text-accent-foreground disabled:bg-transparent disabled:text-foreground/50 disabled:border-border/50"},size:{[oa.sm]:"h-7 px-1.5 min-w-7 text-xs",[oa.md]:"h-10 px-3 min-w-10",[oa.lg]:"h-11 px-5 min-w-11"}},defaultVariants:{variant:li.default,size:oa.md}}),fc=Pv(({className:e,variant:t,size:r,...o},i)=>{let n=m(r);return hv(uc.Root,{ref:i,className:a(aa({variant:t,size:n}),e),...o},void 0,!1,void 0,this)});fc.displayName="Toggle";import*as ia from"@radix-ui/react-toggle-group";import{cva as Tv}from"class-variance-authority";import{createContext as xv,forwardRef as gc,useContext as zv}from"react";import{jsxDEV as mi}from"react/jsx-dev-runtime";var Sv={default:"default",outline:"outline"},Cv={sm:"sm",md:"md",lg:"lg"},bc=Tv("flex items-center justify-center gap-1"),vc=xv({size:Cv.md,variant:Sv.default}),yc=gc(({className:e,variant:t,size:r,children:o,...i},n)=>{let s=m(r);return mi(ia.Root,{ref:n,className:a(bc(),e),...i,children:mi(vc.Provider,{value:{variant:t,size:s},children:o},void 0,!1,void 0,this)},void 0,!1,void 0,this)});yc.displayName="ToggleGroup";var Pc=gc(({className:e,children:t,variant:r,size:o,...i},n)=>{let s=zv(vc),l=m(o);return mi(ia.Item,{ref:n,className:a(aa({variant:r??s.variant,size:l??s.size}),e),...i,children:t},void 0,!1,void 0,this)});Pc.displayName="ToggleGroupItem";import{cva as hc}from"class-variance-authority";import{forwardRef as na}from"react";import{jsxDEV as sa}from"react/jsx-dev-runtime";var Je={sm:"sm",md:"md",lg:"lg"},Tc=hc("flex items-center border-b border-border bg-background",{variants:{size:{[Je.sm]:"gap-1.5 px-3 py-1.5",[Je.md]:"gap-2 px-4 py-2",[Je.lg]:"gap-3 px-5 py-2.5"}},defaultVariants:{size:Je.md}}),xc=na(({className:e,size:t=Je.md,...r},o)=>{let i=m(t);return sa("div",{ref:o,role:"toolbar",className:a(Tc({size:i}),e),...r},void 0,!1,void 0,this)});xc.displayName="Toolbar";var zc=hc("flex items-center",{variants:{size:{[Je.sm]:"gap-1",[Je.md]:"gap-1.5",[Je.lg]:"gap-2"}},defaultVariants:{size:Je.md}}),Sc=na(({className:e,size:t=Je.md,...r},o)=>{let i=m(t);return sa("div",{ref:o,role:"group",className:a(zc({size:i}),e),...r},void 0,!1,void 0,this)});Sc.displayName="ToolbarGroup";var Cc=na(({className:e,...t},r)=>{return sa("div",{ref:r,role:"none",className:a("h-5 w-px shrink-0 bg-border",e),...t},void 0,!1,void 0,this)});Cc.displayName="ToolbarSeparator";var wc=na(({className:e,...t},r)=>{return sa("div",{ref:r,className:a("flex-1",e),...t},void 0,!1,void 0,this)});wc.displayName="ToolbarSpacer";import*as ot from"@radix-ui/react-tooltip";import{cva as wv}from"class-variance-authority";import{createContext as Mv,forwardRef as Mc,useContext as Nc}from"react";import{jsxDEV as co}from"react/jsx-dev-runtime";var Nv=ot.Provider,di=Mv(!1),Lc=({persistOnClick:e=!1,children:t,...r})=>co(di.Provider,{value:e,children:co(ot.Root,{...r,children:t},void 0,!1,void 0,this)},void 0,!1,void 0,this);Lc.displayName="Tooltip";var Rc=Mc(({onClick:e,onPointerDown:t,...r},o)=>{let i=Nc(di);return co(ot.Trigger,{ref:o,onClick:i?(n)=>{n.preventDefault(),e?.(n)}:e,onPointerDown:i?(n)=>{n.preventDefault(),t?.(n)}:t,...r},void 0,!1,void 0,this)});Rc.displayName="TooltipTrigger";var kr={sm:"sm",md:"md",lg:"lg"},Hc=wv("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:{[kr.sm]:"px-2 py-1 text-[10px]",[kr.md]:"px-3 py-1.5 text-xs",[kr.lg]:"px-4 py-2 text-sm"}},defaultVariants:{size:kr.md}}),kc=Mc(({className:e,sideOffset:t=4,onPointerDownOutside:r,size:o=kr.md,...i},n)=>{let s=Nc(di),l=m(o);return co(ot.Portal,{children:co(ot.Content,{ref:n,sideOffset:t,className:a(Hc({size:l}),e),onPointerDownOutside:s?(d)=>{d.preventDefault(),r?.(d)}:r,...i},void 0,!1,void 0,this)},void 0,!1,void 0,this)});kc.displayName="TooltipContent";import*as Lt from"react";var Lv=()=>{};function Rv({prop:e,defaultProp:t,onChange:r=Lv}){let[o,i]=Hv({defaultProp:t,onChange:r}),n=e!==void 0,s=n?e:o,l=Lt.useCallback((d)=>{if(n){let g=typeof d==="function"?d(e):d;if(g!==e)r(g)}else i(d)},[n,e,i,r]);return[s,l]}function Hv({defaultProp:e,onChange:t}){let r=Lt.useState(e),[o]=r,i=Lt.useRef(o),n=t;return Lt.useEffect(()=>{if(i.current!==o)n?.(o),i.current=o},[o,n]),r}export{ii as useToast,Kr as usePlatform,Zg as useOverlay,Za as useHotkey,Gr as useFormField,m as useDensitySize,Dc as useDensity,Rv as useControllableState,Wr as useComposedRefs,Hc as tooltipContentVariants,Tc as toolbarVariants,zc as toolbarGroupVariants,aa as toggleVariants,bc as toggleGroupVariants,ei as toastVariants,ti as toastActionVariants,sc as toast,Gp as timelineVariants,Yp as timelineTitleVariants,Zp as timelineTimeVariants,Wp as timelineItemVariants,Up as timelineDotVariants,Xp as timelineDescriptionVariants,Kp as timelineContentVariants,$p as timelineConnectorVariants,_p as textareaVariants,Ap as tabsTriggerVariants,kp as tabsListVariants,Ip as tabsContentVariants,gp as tableVariants,Pp as tableRowVariants,bp as tableHeaderVariants,hp as tableHeadVariants,yp as tableFooterVariants,fp as tableContainerVariants,Tp as tableCellVariants,xp as tableCaptionVariants,vp as tableBodyVariants,pp as switchVariants,Jd as stepperVariants,Qd as stepVariants,tp as stepTitleVariants,Ed as stepIndicatorVariants,rp as stepDescriptionVariants,ep as stepContentVariants,jd as stepConnectorVariants,Zd as statCardVariants,qo as spotlightStatusVariants,Jo as spotlightStatusTitleVariants,Yd as spotlightStatusDescriptionVariants,Kd as spotlightShortcutVariants,Fd as spotlightResultsVariants,Id as spotlightPanelVariants,Ad as spotlightOverlayVariants,Od as spotlightOptionVariants,$d as spotlightOptionTitleVariants,Gd as spotlightOptionIconVariants,Ud as spotlightOptionDescriptionVariants,Wd as spotlightOptionContentVariants,Zo as spotlightKbdVariants,Bd as spotlightInputVariants,Dd as spotlightIconVariants,Vd as spotlightHeaderVariants,_d as spotlightGroupLabelVariants,wd as sliderVariants,Md as sliderTrackVariants,Ld as sliderThumbVariants,Nd as sliderRangeVariants,Pd as skeletonVariants,hd as skeletonTextVariants,xd as skeletonButtonVariants,Td as skeletonAvatarVariants,sm as sheetOverlayVariants,lm as sheetContentVariants,vd as separatorVariants,ed as selectTriggerVariants,td as selectContentVariants,pd as segmentedControlVariants,ud as segmentedControlLabelVariants,cd as segmentedControlItemVariants,Xm as scrollBarVariants,Zm as scrollBarThumbVariants,Ym as scrollAreaVariants,_m as resizablePanelVariants,Fm as resizablePanelGroupVariants,Om as resizableHandleVariants,Gm as resizableHandleIconVariants,Vm as radioItemVariants,Im as radioGroupVariants,Lm as progressVariants,Rm as progressIndicatorVariants,Pr as popoverContentVariants,Ha as parseHotkey,vm as paginationVariants,Ro as paginationLinkVariants,Pm as paginationItemVariants,hm as paginationEllipsisVariants,ym as paginationContentVariants,tm as otpSlotVariants,am as otpSeparatorVariants,om as otpPlaceholderVariants,rm as otpInputVariants,em as otpGroupVariants,jl as otpContainerVariants,$l as navigationMenuViewportVariants,_l as navigationMenuVariants,Gl as navigationMenuTriggerVariants,Ol as navigationMenuListVariants,Lg as navigationMenuLinkVariants,Ul as navigationMenuIndicatorVariants,Wl as navigationMenuContentVariants,Bl as multiselectTriggerVariants,ka as matchHotkey,Hl as labelVariants,Nl as kbdVariants,ir as isSameDay,Sl as inputVariants,hl as hoverCardContentVariants,ag as formatHotkeyTokens,Ur as formatHotkey,ul as formFieldVariants,al as fileUploadVariants,Ra as fileUploadTextVariants,nl as fileUploadListVariants,sl as fileUploadItemVariants,ml as fileUploadItemSizeVariants,dl as fileUploadItemRemoveVariants,ll as fileUploadItemNameVariants,il as fileUploadIconVariants,Js as errorBoundaryVariants,Es as errorBoundaryTitleVariants,Qs as errorBoundaryIconVariants,tl as errorBoundaryDetailsVariants,js as errorBoundaryDescriptionVariants,el as errorBoundaryActionsVariants,$s as emptyStateVariants,Ks as emptyStateTitleVariants,Us as emptyStateIconVariants,Ys as emptyStateDescriptionVariants,Xs as emptyStateActionsVariants,Hs as dropdownMenuShortcutVariants,Rs as dropdownMenuSeparatorVariants,Ns as dropdownMenuRadioItemVariants,Ls as dropdownMenuLabelVariants,La as dropdownMenuItemVariants,Na as dropdownMenuContentVariants,Ms as dropdownMenuCheckboxItemVariants,vs as drawerOverlayVariants,Ps as drawerHandleVariants,ys as drawerContentVariants,cs as dialogContentVariants,Gt as detectPlatform,W0 as cva,Uf as createOptionalContext,$f as createContext,es as contextMenuShortcutVariants,jn as contextMenuSeparatorVariants,Qn as contextMenuRadioItemVariants,En as contextMenuLabelVariants,za as contextMenuItemVariants,xa as contextMenuContentVariants,Jn as contextMenuCheckboxItemVariants,xl as composeRefs,Zn as collapsibleContentVariants,_n as codeBlockVariants,Un as codeBlockPreVariants,Kn as codeBlockLineVariants,Yn as codeBlockLineNumberVariants,Gn as codeBlockLanguageVariants,On as codeBlockHeaderVariants,Wn as codeBlockCopyVariants,$n as codeBlockContentVariants,a as cn,Bn as checkboxVariants,Nn as cardVariants,Cn as calendarWeekdayVariants,Tn as calendarVariants,zn as calendarTitleVariants,ha as calendarNavButtonVariants,xn as calendarHeaderVariants,Sn as calendarGridVariants,wn as calendarDayVariants,Ir as buttonVariants,Ri as buttonIconVariants,bn as buttonGroupVariants,Hi as buttonBadgeVariants,sn as breadcrumbSeparatorVariants,nn as breadcrumbPageVariants,rn as breadcrumbListVariants,an as breadcrumbLinkVariants,on as breadcrumbItemVariants,ln as breadcrumbEllipsisVariants,Qi as badgeVariants,Zi as avatarVariants,zi as alertVariants,Si as alertTitleVariants,Di as alertDialogOverlayVariants,Fi as alertDialogContentVariants,Ci as alertDescriptionVariants,vi as accordionTriggerVariants,bi as accordionItemVariants,yi as accordionContentVariants,Gc as XCircleIcon,at as Variant,Rc as TooltipTrigger,kr as TooltipSize,Nv as TooltipProvider,kc as TooltipContent,Lc as Tooltip,wc as ToolbarSpacer,Je as ToolbarSize,Cc as ToolbarSeparator,Sc as ToolbarGroup,xc as Toolbar,Pc as ToggleGroupItem,yc as ToggleGroup,fc as Toggle,cc as Toaster,Oe as ToastSize,ec as TimelineTitle,rc as TimelineTime,Jp as TimelineItem,Ep as TimelineDot,tc as TimelineDescription,jp as TimelineContent,Qp as TimelineConnector,qp as Timeline,Op as Textarea,Dp as TabsTrigger,Bp as TabsList,Fp as TabsContent,Zb as Tabs,he as TableSize,Mp as TableRow,Sp as TableHeader,Np as TableHead,wp as TableFooter,Lp as TableCell,Rp as TableCaption,Cp as TableBody,zp as Table,Lr as SwitchStatus,Se as SwitchSize,cp as Switch,op as Stepper,lp as StepTitle,ip as StepIndicator,mp as StepDescription,sp as StepContent,np as StepConnector,ap as Step,Zt as StatCardTrend,_e as StatCardSize,qd as StatCard,Nr as SpotlightStatus,Xt as SpotlightSize,Xd as Spotlight,Ht as SpinnerSize,go as Spinner,Rd as Slider,zd as SkeletonText,pe as SkeletonSize,Cd as SkeletonButton,Sd as SkeletonAvatar,io as Skeleton,ye as Size,Og as SheetTrigger,cm as SheetTitle,te as SheetSize,mm as SheetPortal,Ba as SheetOverlay,dm as SheetHeader,pm as SheetFooter,um as SheetDescription,No as SheetContent,Gg as SheetClose,Va as Sheet,ao as SeparatorOrientation,yd as Separator,vb as SelectValue,rd as SelectTrigger,wr as SelectStatus,Q as SelectSize,nd as SelectSeparator,ad as SelectLabel,id as SelectItem,bb as SelectGroup,ro as SelectContentWidthMode,cb as SelectContentAlign,od as SelectContent,gb as Select,Me as SegmentedControlSize,bd as SegmentedControlLabelItem,gd as SegmentedControlItem,fd as SegmentedControl,Oa as ScrollBar,qm as ScrollArea,Wm as ResizablePanelGroup,$m as ResizablePanel,Um as ResizableHandle,zr as RadioStatus,Ze as RadioSize,Dm as RadioGroupItem,Bm as RadioGroup,Hm as Progress,ug as PopoverTrigger,yr as PopoverSize,Il as PopoverContent,gg as PopoverClose,fg as PopoverAnchor,cg as Popover,Fe as PaginationSize,Cm as PaginationPrevious,wm as PaginationNext,Sm as PaginationLink,zm as PaginationItem,Mm as PaginationEllipsis,xm as PaginationContent,Tm as Pagination,bm as OverlayProvider,im as OTPInput,Aa as NavigationMenuViewport,Xl as NavigationMenuTrigger,Ye as NavigationMenuSize,Yl as NavigationMenuList,kg as NavigationMenuLink,Hg as NavigationMenuItem,ql as NavigationMenuIndicator,Zl as NavigationMenuContent,Kl as NavigationMenu,de as MultiselectSize,Dl as Multiselect,vr as LabelSize,kl as Label,br as KbdSize,Ll as Kbd,Cl as Input,$c as InfoIcon,kt as IconSize,Gf as HoverCardTrigger,fr as HoverCardSize,Tl as HoverCardContent,Of as HoverCard,Dr as GroupOrientation,Be as FormFieldSize,gl as FormFieldLabel,yl as FormFieldError,vl as FormFieldDescription,Pl as FormFieldControl,fl as FormField,pl as FileUpload,rl as ErrorBoundary,Zs as EmptyState,Tf as DropdownMenuTrigger,Is as DropdownMenuSubTrigger,Vs as DropdownMenuSubContent,Sf as DropdownMenuSub,Ws as DropdownMenuShortcut,Gs as DropdownMenuSeparator,_s as DropdownMenuRadioItem,Cf as DropdownMenuRadioGroup,zf as DropdownMenuPortal,Os as DropdownMenuLabel,Ds as DropdownMenuItem,xf as DropdownMenuGroup,Bs as DropdownMenuContent,Fs as DropdownMenuCheckboxItem,As as DropdownMenu,mf as DrawerTrigger,Ss as DrawerTitle,Ve as DrawerSize,hs as DrawerPortal,Ma as DrawerOverlay,xs as DrawerHeader,zs as DrawerFooter,Cs as DrawerDescription,Ts as DrawerContent,df as DrawerClose,lf as Drawer,rf as DialogTrigger,gs as DialogTitle,vt as DialogSize,ps as DialogPortal,Ca as DialogOverlay,us as DialogHeader,fs as DialogFooter,bs as DialogDescription,zo as DialogContent,of as DialogClose,Sa as Dialog,fi as DensityProvider,uo as Density,qu as ContextMenuTrigger,rs as ContextMenuSubTrigger,os as ContextMenuSubContent,Eu as ContextMenuSub,ds as ContextMenuShortcut,ms as ContextMenuSeparator,ss as ContextMenuRadioItem,ju as ContextMenuRadioGroup,Qu as ContextMenuPortal,ls as ContextMenuLabel,is as ContextMenuItem,Ju as ContextMenuGroup,as as ContextMenuContent,ns as ContextMenuCheckboxItem,Zu as ContextMenu,Ou as CollapsibleTrigger,qn as CollapsibleContent,_u as Collapsible,Xn as CodeBlock,mr as CheckboxStatus,$e as CheckboxSize,Dn as Checkbox,Wc as CheckCircleIcon,An as CardTitle,Rn as CardHeader,kn as CardFooter,In as CardDescription,Hn as CardContent,Ln as Card,Mn as Calendar,Ai as ButtonLabel,ki as ButtonIcon,vn as ButtonGroup,Ii as ButtonBadge,Vi as Button,le as BreadcrumbSize,fn as BreadcrumbSeparator,un as BreadcrumbPage,dn as BreadcrumbList,cn as BreadcrumbLink,pn as BreadcrumbItem,gn as BreadcrumbEllipsis,mn as Breadcrumb,fe as BadgeVariant,pt as BadgeTone,ut as BadgeSize,tn as BadgeGroup,Ei as Badge,Ae as AvatarSize,qi as AvatarImage,Ji as AvatarGroup,ya as AvatarFallback,va as Avatar,tu as AspectRatio,Uc as AlertTriangleIcon,Mi as AlertTitle,eu as AlertDialogTrigger,$i as AlertDialogTitle,ct as AlertDialogSize,_i as AlertDialogPortal,ba as AlertDialogOverlay,Gi as AlertDialogHeader,Wi as AlertDialogFooter,Ui as AlertDialogDescription,Oi as AlertDialogContent,Yi as AlertDialogCancel,Ki as AlertDialogAction,jc as AlertDialog,Ni as AlertDescription,wi as Alert,Ti as AccordionTrigger,Te as AccordionSize,hi as AccordionItem,xi as AccordionContent,Pi as Accordion};