@inf-monkeys-tech/monkeys-design 2.0.317 → 2.0.318

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (34) hide show
  1. package/dist/components/assembly/catalog.d.mts +1 -1
  2. package/dist/components/assembly/catalog.d.ts +1 -1
  3. package/dist/components/assembly/index.d.mts +1 -1
  4. package/dist/components/assembly/index.d.ts +1 -1
  5. package/dist/components/assembly/runtime.d.mts +1 -1
  6. package/dist/components/assembly/runtime.d.ts +1 -1
  7. package/dist/components/capabilities/index.d.mts +2 -2
  8. package/dist/components/capabilities/index.d.ts +2 -2
  9. package/dist/components/capabilities/index.js +96 -96
  10. package/dist/components/capabilities/index.js.map +1 -1
  11. package/dist/components/capabilities/index.mjs +11 -11
  12. package/dist/components/capabilities/index.mjs.map +1 -1
  13. package/dist/components/data-explorer/index.js +1 -1
  14. package/dist/components/data-explorer/index.js.map +1 -1
  15. package/dist/components/data-explorer/index.mjs +1 -1
  16. package/dist/components/data-explorer/index.mjs.map +1 -1
  17. package/dist/components/workbench/index.d.mts +1 -1
  18. package/dist/components/workbench/index.d.ts +1 -1
  19. package/dist/{contracts.d-feecade4de71.d.ts → contracts.d-0186561cdb39.d.ts} +1 -0
  20. package/dist/{contracts.d-f5deb318e87d.d.mts → contracts.d-6d736c12ba67.d.mts} +1 -0
  21. package/dist/{contracts.d-f5deb318e87d.d.ts → contracts.d-6d736c12ba67.d.ts} +1 -0
  22. package/dist/{contracts.d-9ddd80b7166b.d.mts → contracts.d-fb3821943b55.d.mts} +1 -0
  23. package/dist/icons/runtime/index.d.mts +1 -1
  24. package/dist/icons/runtime/index.d.ts +1 -1
  25. package/dist/index.js +1 -1
  26. package/dist/index.js.map +1 -1
  27. package/dist/index.mjs +1 -1
  28. package/dist/index.mjs.map +1 -1
  29. package/dist/runtime-entry.d-b71225a810bf.d.ts +1 -1
  30. package/dist/runtime-entry.d-e722d45bd1d0.d.mts +1 -1
  31. package/dist/sources/{1c83227132c69991f17a6043f5657448aea8857d83a044e3db3581ab57bea170.tsx → 0d89dd36e559711654448399a6c530d72b8adfd85028b9c7a1f6143be9ed5d3f.tsx} +3 -2
  32. package/dist/sources/{4c15db9df8bb6d9c6cd6e7cf42534c7853a4e3b4b5e42146498a87106d514a26.tsx → 1936d47d78d7faf9e01eda58f03f56eb01ce4ef105971cc87935d97f6f1f6b6c.tsx} +7 -3
  33. package/dist/styles.css +1 -1
  34. package/package.json +1 -1
@@ -20,7 +20,7 @@ import { createPortal } from 'react-dom';
20
20
  import * as Bt from '@radix-ui/react-popover';
21
21
  import { I18nTextSchema } from '@inf-monkeys-tech/monkeys';
22
22
 
23
- var ea=Object.defineProperty;var r=(e,t)=>ea(e,"name",{value:t,configurable:true});var yr=createContext(void 0);function vr({appearance:e,children:t}){return jsx(yr.Provider,{value:e,children:t})}r(vr,"DataExplorerAppearanceProvider");function pe(e){let t=useContext(yr);return useMemo(()=>e?t?{...t,...e,slots:{...t.slots,...e.slots},styles:{...t.styles,...e.styles}}:e:t,[e,t])}r(pe,"useDataExplorerAppearance");function a(...e){return e.filter(Boolean).join(" ")}r(a,"cn");function fe(e,t){return typeof e=="function"?e(t):e}r(fe,"resolveDataExplorerValue");var aa={},Dr={surfaceRoot:"relative flex h-full min-h-0 w-full min-w-0 overflow-hidden rounded-md border border-border bg-background shadow-sm",toolbarRoot:"flex flex-wrap items-center gap-2 border-b border-border bg-background px-4 py-3",toolbarLeading:"flex items-center gap-2",toolbarSearch:"flex h-10 min-w-52 flex-1 items-center gap-2 rounded-md border border-border bg-background px-3 text-sm",toolbarSearchIcon:"inline-flex shrink-0 text-muted-foreground",toolbarSearchInput:"min-w-0 flex-1 bg-transparent text-sm outline-hidden placeholder:text-muted-foreground",toolbarViewSwitch:"flex items-center rounded-md border border-border bg-background p-0.5",toolbarViewButton:"inline-flex h-9 min-w-9 items-center justify-center gap-2 rounded-md px-2 text-sm text-muted-foreground transition-colors hover:bg-muted hover:text-foreground disabled:pointer-events-none disabled:opacity-50",toolbarViewButtonActive:"bg-muted text-foreground",toolbarActions:"flex items-center gap-2",actionBarRoot:"flex min-w-0 flex-wrap items-center gap-2",actionBarLeading:"flex shrink-0 items-center gap-2",actionBarActions:"flex min-w-0 flex-1 flex-wrap items-center gap-2",actionBarTrailing:"flex shrink-0 items-center gap-2",actionButtonBase:"inline-flex h-9 items-center justify-center gap-2 rounded-md border px-3 text-sm font-medium transition-colors focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",actionButtonDefault:"border-border bg-background text-foreground hover:bg-accent/60",actionButtonPrimary:"border-primary/20 bg-primary/10 text-primary hover:bg-primary/15",actionButtonDanger:"border-destructive/20 bg-destructive/10 text-destructive-text hover:bg-destructive/15",actionButtonMuted:"border-border/60 bg-muted/45 text-muted-foreground hover:bg-muted/70 hover:text-foreground",actionButtonActive:"ring-1 ring-primary/30",actionButtonDisabled:"cursor-not-allowed opacity-60",actionIconButton:"w-9 px-0",actionToggleActive:"border-primary/30 bg-primary/10 text-primary",controlButton:"inline-flex h-10 min-w-0 items-center justify-center gap-2 rounded-md border border-border bg-background px-3 text-sm font-medium text-foreground transition-colors hover:bg-accent/60 focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-60",controlButtonIcon:"inline-flex h-4 w-4 shrink-0 items-center justify-center text-[inherit] [&_*]:!text-[inherit] [&_svg]:!stroke-current [&_svg_*]:!stroke-current",controlButtonLabel:"min-w-0 truncate",controlSelectTrigger:"inline-flex h-10 min-w-28 items-center justify-between gap-3 rounded-md border border-border bg-background px-3 text-sm font-medium text-foreground transition-colors hover:bg-accent/60 focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-60",controlSelectValue:"flex min-w-0 items-center gap-1 truncate",controlCheckbox:"inline-flex h-9 items-center gap-2 rounded-md border border-border bg-background px-3 text-sm font-medium text-foreground transition-colors hover:bg-accent/60 focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-60",controlCheckboxIndicator:"flex h-4 w-4 shrink-0 items-center justify-center rounded border border-border bg-background text-primary",controlCheckboxLabel:"min-w-0 truncate",menuTrigger:"inline-flex h-8 w-8 items-center justify-center rounded-md text-foreground transition-colors hover:bg-accent hover:text-accent-foreground focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",menuContent:"z-50 min-w-36 rounded-md border border-border bg-popover p-1 text-popover-foreground shadow-md outline-hidden",menuLabel:"px-2 py-1.5 text-xs font-medium text-muted-foreground",menuSeparator:"-mx-1 my-1 h-px bg-border",menuItem:"relative flex cursor-pointer select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",menuItemPrimary:"text-primary focus:text-primary",menuItemDanger:"text-destructive-text focus:text-destructive-text",menuItemMuted:"text-muted-foreground",menuItemIcon:"inline-flex h-4 w-4 shrink-0 items-center justify-center",menuItemLabel:"truncate",cardRoot:"group relative flex min-w-0 flex-col overflow-hidden rounded-lg border border-border/70 bg-background transition-shadow",cardInteractive:"cursor-pointer hover:shadow-sm",cardSelected:"ring-2 ring-primary",cardDisabled:"opacity-60",cardHeader:"p-4",cardMedia:"shrink-0 overflow-hidden",cardFooter:"shrink-0 border-t border-border/60 px-4 py-3",recordCardRoot:"group relative border-border/70 transition-shadow hover:shadow-sm",recordCardActive:"z-10 ring-2 ring-monkeys-500",footerRoot:"flex items-center border-t border-border bg-background px-4 py-3",footerSummary:"flex items-center gap-1 whitespace-nowrap text-sm text-muted-foreground",footerJumpButton:"inline-flex items-center gap-1 text-muted-foreground underline-offset-4 hover:text-foreground hover:underline",footerPageSizeSelect:"h-8 rounded-md border border-border bg-background px-2 text-sm text-foreground",previewRoot:"relative h-full min-h-0 w-full flex-1 select-none self-stretch overflow-hidden bg-slate-950",previewPlaceholder:"flex h-full w-full items-center justify-center rounded-xl bg-white/5 px-6 text-center text-sm text-white/60",previewActions:"absolute right-4 top-4 z-20 flex flex-col gap-2",previewControls:"absolute bottom-4 right-4 z-20 flex flex-col gap-2",previewZoomLabel:"min-w-[3rem] rounded-full border border-white/15 bg-black/30 px-1 py-1 text-center text-xs font-medium text-white/70 shadow-lg backdrop-blur",previewControlButton:"inline-flex h-9 w-9 items-center justify-center rounded-full border border-white/15 bg-black/30 text-white/90 shadow-lg backdrop-blur transition hover:bg-black/45",previewNavigationButton:"absolute top-1/2 flex h-10 w-10 -translate-y-1/2 items-center justify-center rounded-full border border-white/15 bg-black/30 text-white/90 shadow-lg backdrop-blur transition-colors hover:bg-black/45 disabled:pointer-events-none disabled:opacity-40",detailRoot:"flex h-full flex-col overflow-hidden bg-background",detailHeader:"flex items-center justify-between gap-3 border-b border-border bg-background px-4 py-4 sm:px-5",detailLeading:"flex h-9 w-9 shrink-0 items-center justify-center rounded-lg bg-muted text-muted-foreground",detailNavigation:"hidden items-center gap-1 rounded-lg border border-border bg-background px-1 py-1 md:flex",detailNavigationButton:"flex h-8 w-8 items-center justify-center rounded-md text-muted-foreground transition-colors hover:bg-accent hover:text-foreground disabled:pointer-events-none disabled:opacity-50",detailCloseButton:"flex h-10 w-10 items-center justify-center rounded-full border border-border bg-background text-muted-foreground transition-colors hover:bg-accent hover:text-foreground",detailPreviewPanel:"min-h-0 overflow-hidden border-b border-border bg-background xl:border-b-0",detailPreviewFrame:"relative h-full min-h-0 w-full overflow-hidden bg-background",detailRightPanel:"min-h-0 min-w-0 border-t border-border bg-background xl:border-l xl:border-t-0",detailRightPanelBody:"h-full overflow-y-auto overscroll-contain bg-background p-5",treeShellRoot:"flex h-full min-h-0 flex-col overflow-hidden",treeShellHeader:"flex shrink-0 items-start justify-between gap-3 px-4 py-3",treeShellTitle:"truncate text-sm font-semibold",treeShellSubtitle:"mt-1 text-sm text-muted-foreground",treeShellToolbar:"flex shrink-0 items-center gap-2",treeShellBody:"min-h-0 flex-1 overflow-hidden",treeShellFooter:"shrink-0",treeRoot:"min-w-0 space-y-1 overflow-hidden text-sm",treeGroup:"min-w-0 space-y-1",treeGroupHeader:"group/tree-group flex min-w-0 items-center gap-1",treeGroupHeaderButton:"flex h-9 min-w-0 flex-1 items-center gap-2 rounded-md px-2 text-left font-medium text-muted-foreground transition-colors hover:bg-accent/55 hover:text-foreground",treeGroupContent:"min-w-0 space-y-0.5",treeGroupActions:"shrink-0 opacity-0 transition-opacity group-hover/tree-group:opacity-100 group-focus-within/tree-group:opacity-100 data-[state=open]:opacity-100",treeNode:"min-w-0",treeNodeButton:"group/tree-node flex min-h-9 w-full min-w-0 items-center gap-1 rounded-md pr-1 text-left text-sm text-foreground transition-colors hover:bg-accent/55 hover:text-foreground focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-1",treeNodeSelected:"bg-accent text-accent-foreground",treeNodeDisabled:"cursor-not-allowed opacity-55",treeNodeDragging:"opacity-50",treeNodeToggle:"inline-flex h-5 w-5 shrink-0 items-center justify-center rounded border-0 bg-transparent p-0 text-muted-foreground transition-colors hover:bg-accent hover:text-foreground",treeNodeIcon:"inline-flex h-4 w-4 shrink-0 items-center justify-center text-muted-foreground group-hover/tree-node:text-foreground",treeNodeLabel:"min-w-0 truncate",treeNodeDescription:"mt-0.5 truncate text-xs text-muted-foreground",treeNodeMeta:"ml-2 shrink-0 text-xs text-muted-foreground",treeNodeBadge:"ml-2 shrink-0 rounded-full border border-border bg-muted px-1.5 py-0.5 text-[11px] leading-none text-muted-foreground",treeNodeActions:"ml-1 shrink-0 opacity-0 transition-opacity group-hover/tree-node:opacity-100 group-focus-within/tree-node:opacity-100 data-[state=open]:opacity-100",treeNodeChildren:"mt-0.5 min-w-0 space-y-0.5",treeNodeDragHandle:"inline-flex h-5 w-5 shrink-0 cursor-grab items-center justify-center rounded text-muted-foreground opacity-0 transition-opacity hover:bg-accent hover:text-foreground active:cursor-grabbing group-hover/tree-node:opacity-100",treeEmpty:"px-3 py-2 text-xs text-muted-foreground",treeError:"px-3 py-2 text-xs text-destructive-text",treeLoading:"px-3 py-2 text-xs text-muted-foreground"},ia={flush:{surfaceRoot:"relative flex h-full min-h-0 w-full min-w-0 overflow-hidden"}},sa={compact:{treeShellHeader:"px-3 py-2",toolbarRoot:"px-3 py-2",toolbarSearch:"h-9 min-w-48",toolbarViewButton:"h-8 min-w-8 text-xs",actionButtonBase:"h-8 px-2.5 text-xs",actionIconButton:"h-8 w-8 px-0",controlButton:"h-9 px-2.5 text-xs",controlSelectTrigger:"h-9 min-w-24 px-2.5 text-xs",controlCheckbox:"h-8 px-2.5 text-xs",menuTrigger:"h-8 w-8",footerRoot:"px-3 py-2",footerPageSizeSelect:"h-8 text-xs",treeGroupHeaderButton:"h-8 text-xs",treeNodeButton:"min-h-8 text-xs",treeEmpty:"py-1.5 text-xs",treeError:"py-1.5 text-xs",treeLoading:"py-1.5 text-xs"},default:{},comfortable:{treeShellHeader:"px-5 py-4",toolbarRoot:"px-5 py-4",toolbarSearch:"h-11",toolbarViewButton:"h-10 min-w-10",actionButtonBase:"h-10 px-3.5",actionIconButton:"h-10 w-10 px-0",controlButton:"h-11 px-3.5",controlSelectTrigger:"h-11 min-w-32 px-3.5",controlCheckbox:"h-10 px-3.5",menuTrigger:"h-9 w-9",footerRoot:"px-5 py-3.5",treeGroupHeaderButton:"h-10",treeNodeButton:"min-h-10"}},la={none:{surfaceRoot:"rounded-none",toolbarSearch:"rounded-none",toolbarViewSwitch:"rounded-none",toolbarViewButton:"rounded-none",actionButtonBase:"rounded-none",controlButton:"rounded-none",controlSelectTrigger:"rounded-none",controlCheckbox:"rounded-none",controlCheckboxIndicator:"rounded-none",menuTrigger:"rounded-none",menuContent:"rounded-none",menuItem:"rounded-none",cardRoot:"rounded-none",footerPageSizeSelect:"rounded-none",detailLeading:"rounded-none",detailNavigation:"rounded-none",detailNavigationButton:"rounded-none",detailCloseButton:"rounded-none",treeGroupHeaderButton:"rounded-none",treeNodeButton:"rounded-none",treeNodeToggle:"rounded-none",treeNodeBadge:"rounded-none",treeNodeDragHandle:"rounded-none"},sm:{surfaceRoot:"rounded-sm",toolbarSearch:"rounded-sm",toolbarViewSwitch:"rounded-sm",toolbarViewButton:"rounded-sm",actionButtonBase:"rounded-sm",controlButton:"rounded-sm",controlSelectTrigger:"rounded-sm",controlCheckbox:"rounded-sm",controlCheckboxIndicator:"rounded-sm",menuTrigger:"rounded-sm",menuContent:"rounded-sm",menuItem:"rounded-sm",cardRoot:"rounded-sm",treeGroupHeaderButton:"rounded-sm",treeNodeButton:"rounded-sm",treeNodeToggle:"rounded-sm",treeNodeBadge:"rounded-sm",treeNodeDragHandle:"rounded-sm"},md:{},lg:{surfaceRoot:"rounded-xl",toolbarSearch:"rounded-lg",toolbarViewSwitch:"rounded-lg",toolbarViewButton:"rounded-lg",actionButtonBase:"rounded-lg",controlButton:"rounded-lg",controlSelectTrigger:"rounded-lg",controlCheckbox:"rounded-lg",controlCheckboxIndicator:"rounded-md",menuTrigger:"rounded-lg",menuContent:"rounded-lg",cardRoot:"rounded-xl",treeGroupHeaderButton:"rounded-lg",treeNodeButton:"rounded-lg",treeNodeToggle:"rounded-md",treeNodeBadge:"rounded-lg",treeNodeDragHandle:"rounded-md"},xl:{surfaceRoot:"rounded-2xl",toolbarSearch:"rounded-xl",toolbarViewSwitch:"rounded-xl",toolbarViewButton:"rounded-xl",actionButtonBase:"rounded-xl",controlButton:"rounded-xl",controlSelectTrigger:"rounded-xl",controlCheckbox:"rounded-xl",controlCheckboxIndicator:"rounded-lg",menuTrigger:"rounded-xl",menuContent:"rounded-xl",cardRoot:"rounded-2xl",treeGroupHeaderButton:"rounded-xl",treeNodeButton:"rounded-xl",treeNodeToggle:"rounded-lg",treeNodeBadge:"rounded-xl",treeNodeDragHandle:"rounded-lg"},full:{surfaceRoot:"rounded-2xl",toolbarSearch:"rounded-full",toolbarViewSwitch:"rounded-full",toolbarViewButton:"rounded-full",actionButtonBase:"rounded-full",controlButton:"rounded-full",controlSelectTrigger:"rounded-full",controlCheckbox:"rounded-full",controlCheckboxIndicator:"rounded-full",menuTrigger:"rounded-full",cardRoot:"rounded-2xl",treeGroupHeaderButton:"rounded-full",treeNodeButton:"rounded-full",treeNodeToggle:"rounded-full",treeNodeBadge:"rounded-full",treeNodeDragHandle:"rounded-full"}},da={none:{surfaceRoot:"border-transparent",toolbarRoot:"border-transparent",toolbarSearch:"border-transparent",toolbarViewSwitch:"border-transparent",actionButtonBase:"border-transparent",controlButton:"border-transparent",controlSelectTrigger:"border-transparent",controlCheckbox:"border-transparent",cardRoot:"border-transparent",footerRoot:"border-transparent",detailHeader:"border-transparent",detailPreviewPanel:"border-transparent",detailRightPanel:"border-transparent"},subtle:{surfaceRoot:"border-border/60",toolbarRoot:"border-border/60",toolbarSearch:"border-border/60",toolbarViewSwitch:"border-border/60",actionButtonDefault:"border-border/60",controlButton:"border-border/60",controlSelectTrigger:"border-border/60",controlCheckbox:"border-border/60",cardRoot:"border-border/60",footerRoot:"border-border/60"},solid:{},strong:{surfaceRoot:"border-foreground/20",toolbarRoot:"border-foreground/20",toolbarSearch:"border-foreground/20",toolbarViewSwitch:"border-foreground/20",actionButtonDefault:"border-foreground/20",controlButton:"border-foreground/20",controlSelectTrigger:"border-foreground/20",controlCheckbox:"border-foreground/20",cardRoot:"border-foreground/20",footerRoot:"border-foreground/20"}},ua={plain:{},muted:{surfaceRoot:"bg-card",toolbarRoot:"bg-muted/20",toolbarSearch:"bg-background",toolbarViewSwitch:"bg-background",controlButton:"bg-background",controlSelectTrigger:"bg-background",controlCheckbox:"bg-background",cardRoot:"bg-card",footerRoot:"bg-muted/20",detailHeader:"bg-muted/20"},soft:{surfaceRoot:"bg-background/95 shadow-sm",toolbarRoot:"bg-background/95",actionButtonDefault:"bg-muted/30 hover:bg-muted/55",controlButton:"bg-muted/30 hover:bg-muted/55",controlSelectTrigger:"bg-muted/30 hover:bg-muted/55",controlCheckbox:"bg-muted/30 hover:bg-muted/55",cardRoot:"bg-background/95 shadow-sm",footerRoot:"bg-background/95"},glass:{surfaceRoot:"border-white/10 bg-white/[0.06] shadow-none backdrop-blur-md",toolbarRoot:"border-white/10 bg-white/5 backdrop-blur-md",toolbarSearch:"border-white/10 bg-white/5",toolbarViewSwitch:"border-white/10 bg-white/5",actionButtonDefault:"border-white/10 bg-white/[0.08] text-foreground hover:bg-white/[0.14]",controlButton:"border-white/10 bg-white/[0.08] text-foreground hover:bg-white/[0.14]",controlSelectTrigger:"border-white/10 bg-white/[0.08] text-foreground hover:bg-white/[0.14]",controlCheckbox:"border-white/10 bg-white/[0.08] text-foreground hover:bg-white/[0.14]",controlCheckboxIndicator:"border-white/15 bg-white/10",cardRoot:"border-white/10 bg-white/[0.06] shadow-none",footerRoot:"border-white/10 bg-white/5 backdrop-blur-md"},"dark-stage":{previewRoot:"bg-slate-950",previewPlaceholder:"bg-white/5 text-white/60",actionButtonBase:"inline-flex h-9 items-center justify-center gap-2 rounded-full border px-3 text-sm font-medium transition-colors focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-white/45 focus-visible:ring-offset-0",actionButtonDefault:"border-white/15 bg-black/30 text-white/90 shadow-lg backdrop-blur hover:bg-black/[0.45]",controlButton:"border-white/15 bg-black/30 text-white/90 shadow-lg backdrop-blur hover:bg-black/[0.45]",controlSelectTrigger:"border-white/15 bg-black/30 text-white/90 shadow-lg backdrop-blur hover:bg-black/[0.45]",controlCheckbox:"border-white/15 bg-black/30 text-white/90 shadow-lg backdrop-blur hover:bg-black/[0.45]",actionButtonPrimary:"border-white/25 bg-white/20 text-white shadow-lg backdrop-blur hover:bg-white/28",actionButtonMuted:"border-white/10 bg-black/20 text-white/70 shadow-lg backdrop-blur hover:bg-black/[0.35] hover:text-white",actionIconButton:"h-9 w-9 px-0"}},kr={default:{density:"default",radius:"md",border:"solid",background:"plain"},soft:{density:"default",radius:"md",border:"subtle",background:"plain"},compact:{density:"compact",radius:"md",border:"subtle",background:"soft"},"tinted-glass":{density:"default",radius:"lg",border:"subtle",background:"glass"},flat:{density:"compact",radius:"none",border:"solid",background:"plain"},glass:{density:"default",radius:"lg",border:"subtle",background:"glass"},"hard-edge":{density:"compact",radius:"none",border:"solid",background:"plain"}},ca={soft:{actionButtonBase:"font-medium",controlButton:"font-medium",controlSelectTrigger:"font-medium",controlCheckbox:"font-medium",menuTrigger:"rounded-full",cardRoot:"border-border/70"},compact:{toolbarRoot:"gap-2",actionButtonBase:"text-xs",controlButton:"text-xs",controlSelectTrigger:"text-xs",controlCheckbox:"text-xs",footerRoot:"text-xs"},"tinted-glass":{actionButtonDefault:"border-border/60 bg-background/10 text-foreground hover:bg-accent/60",actionButtonPrimary:"border-primary/30 bg-primary/15 text-primary-foreground hover:bg-primary/20",actionButtonMuted:"border-border/50 bg-muted/20 text-muted-foreground hover:bg-muted/45 hover:text-foreground",controlButton:"border-border/60 bg-background/10 text-foreground hover:bg-accent/60",controlSelectTrigger:"border-border/60 bg-background/10 text-foreground hover:bg-accent/60",controlCheckbox:"border-border/60 bg-background/10 text-foreground hover:bg-accent/60",controlCheckboxIndicator:"border-border/60 bg-background/10 text-primary",menuContent:"border-border bg-popover text-popover-foreground shadow-2xl",menuSeparator:"bg-border",menuItem:"focus:bg-accent focus:text-accent-foreground",cardSelected:"ring-2 ring-primary",previewRoot:"bg-background",treeGroupHeaderButton:"text-muted-foreground hover:bg-accent/60 hover:text-foreground",treeNodeButton:"text-foreground hover:bg-accent/60 hover:text-accent-foreground focus-visible:ring-ring",treeNodeSelected:"bg-accent text-accent-foreground",treeNodeToggle:"text-muted-foreground hover:bg-accent hover:text-foreground",treeNodeIcon:"text-muted-foreground group-hover/tree-node:text-foreground",treeNodeMeta:"text-muted-foreground",treeNodeBadge:"border-border bg-muted text-muted-foreground",treeNodeActions:"text-muted-foreground",treeNodeDragHandle:"text-muted-foreground hover:bg-accent hover:text-foreground group-hover/tree-node:opacity-100",treeEmpty:"text-muted-foreground",treeError:"text-destructive-text",treeLoading:"text-muted-foreground"},flat:{toolbarRoot:"border-slate-200 bg-white",toolbarSearch:"rounded-none border-slate-200 bg-white shadow-none",toolbarViewSwitch:"rounded-none border-slate-200 bg-white shadow-none",actionButtonBase:"rounded-none shadow-none",controlButton:"rounded-none border-slate-200 bg-white text-slate-700 shadow-none hover:bg-slate-50",controlSelectTrigger:"rounded-none border-slate-200 bg-white text-slate-700 shadow-none hover:bg-slate-50",controlCheckbox:"rounded-none border-slate-200 bg-white text-slate-700 shadow-none hover:bg-slate-50",actionButtonDefault:"border-slate-200 bg-white text-slate-700 hover:bg-slate-50",menuTrigger:"rounded-none border border-slate-200 bg-white text-slate-700 shadow-none hover:bg-slate-50",menuContent:"rounded-none border-slate-200 bg-white shadow-none",cardRoot:"rounded-none border-slate-200 bg-white shadow-none",footerRoot:"border-slate-200 bg-white",treeRoot:"space-y-1 text-sm",treeGroupHeader:"group/tree-group flex min-w-0 items-center",treeGroupHeaderButton:"h-9 rounded-none px-3 text-slate-600 shadow-none hover:bg-slate-100 hover:text-slate-950",treeGroupContent:"space-y-1",treeNodeButton:"min-h-9 rounded-none text-slate-700 hover:bg-slate-100 hover:text-slate-950 focus-visible:ring-slate-300",treeNodeSelected:"bg-slate-100 text-slate-950",treeNodeToggle:"rounded-none text-slate-500 hover:bg-transparent hover:text-slate-950",treeNodeIcon:"text-slate-500 group-hover/tree-node:text-slate-950",treeNodeDragHandle:"rounded-none text-slate-400 hover:bg-transparent hover:text-slate-700",treeNodeActions:"text-slate-500"},glass:{menuContent:"border-white/10 bg-slate-950/90 text-white backdrop-blur-xl",menuSeparator:"bg-white/10",menuItem:"focus:bg-white/10 focus:text-white"},"hard-edge":{toolbarRoot:"border-slate-200 bg-white",actionButtonBase:"rounded-none shadow-none",controlButton:"rounded-none shadow-none",controlSelectTrigger:"rounded-none shadow-none",controlCheckbox:"rounded-none shadow-none",cardRoot:"rounded-none border-slate-200 bg-white shadow-none",footerRoot:"border-slate-200 bg-white",footerPageSizeSelect:"rounded-none border-slate-200 shadow-none"}},pa=Object.keys(Dr);function ma(...e){return pa.reduce((t,o)=>(t[o]=a(...e.map(n=>n?.[o])),t),{})}r(ma,"mergeSlots");function fa(...e){return e.reduce((t,o)=>({...t,...o}),{})}r(fa,"mergeStyles");function ga(e){let t=kr[e];if(!t)throw new TypeError(`Unknown Data Explorer theme preset "${String(e)}". Expected one of: ${Object.keys(kr).join(", ")}.`);return t}r(ga,"getPresetDefaults");function le(e){let t=e?.preset??"default",o=e?.surface??"card",n=ga(t),i=e?.density??n.density??"default",s=e?.radius??n.radius??"md",d=e?.border??n.border??"solid",l=e?.background??n.background??"plain",u=ma(Dr,ca[t],sa[i],la[s],da[d],ua[l],e?.slots);return o==="flush"&&(u.surfaceRoot=a(ia.flush.surfaceRoot,e?.slots?.surfaceRoot)),{surface:o,preset:t,density:i,radius:s,border:d,background:l,styles:fa(aa,e?.styles),slots:u}}r(le,"resolveDataExplorerAppearance");function wt(e,t,o){return a(t==="primary"?e.slots.actionButtonPrimary:t==="danger"?e.slots.actionButtonDanger:t==="muted"?e.slots.actionButtonMuted:e.slots.actionButtonDefault,o&&e.slots.actionButtonActive)}r(wt,"getDataExplorerActionToneClassName");function Et(e,t){if(t==="primary")return e.slots.menuItemPrimary;if(t==="danger")return e.slots.menuItemDanger;if(t==="muted")return e.slots.menuItemMuted}r(Et,"getDataExplorerMenuItemToneClassName");function xa(){return jsxs("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",className:"h-4 w-4 animate-spin",fill:"none",children:[jsx("circle",{cx:"12",cy:"12",r:"9",className:"opacity-25",stroke:"currentColor",strokeWidth:"3"}),jsx("path",{className:"opacity-75",fill:"currentColor",d:"M12 3a9 9 0 0 1 9 9h-3a6 6 0 0 0-6-6V3Z"})]})}r(xa,"LoadingIcon");var _t=forwardRef(r(function({children:t,label:o,icon:n,endIcon:i,type:s="button",title:d,ariaLabel:l,tone:u,active:m=false,iconOnly:g=false,disabled:c=false,loading:x=false,stopPropagation:P=false,appearance:h,className:I,classNames:b,style:y,onClick:S,"aria-label":D,...f},N){let v=le(pe(h)),E=t??o,T=c||x,w=r(L=>{P&&L.stopPropagation(),!T&&S?.(L);},"handleClick");return jsxs("button",{...f,ref:N,type:s,title:d,"aria-label":l??D,"aria-pressed":m||void 0,"aria-busy":x||void 0,disabled:T,className:a(v.slots.controlButton,g&&v.slots.actionIconButton,wt(v,u,m),T&&v.slots.actionButtonDisabled,b?.root,I),style:{...v.styles.control,...m?v.styles.controlActive:void 0,...T?v.styles.controlDisabled:void 0,...y},onClick:w,children:[x?jsx("span",{className:a(v.slots.controlButtonIcon,b?.icon),children:jsx(xa,{})}):n?jsx("span",{className:a(v.slots.controlButtonIcon,b?.icon),children:n}):null,g?jsx("span",{className:"sr-only",children:E}):E?jsx("span",{className:a(v.slots.controlButtonLabel,b?.label),children:E}):null,i?jsx("span",{className:a(v.slots.controlButtonIcon,b?.icon),children:i}):null]})},"DataExplorerButton"));function ha(){return jsx("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",className:"h-3.5 w-3.5",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2.5",children:jsx("path",{d:"m5 12 4 4L19 6"})})}r(ha,"CheckIcon");function _o({checked:e=false,icon:t,label:o,title:n,disabled:i=false,appearance:s,className:d,classNames:l,style:u,onCheckedChange:m}){let g=le(pe(s));return jsxs("button",{type:"button",title:n,"aria-pressed":e,disabled:i,className:a(g.slots.controlCheckbox,e&&g.slots.actionToggleActive,i&&g.slots.actionButtonDisabled,l?.root,d),style:{...g.styles.control,...e?g.styles.controlActive:void 0,...i?g.styles.controlDisabled:void 0,...u},onClick:c=>{c.stopPropagation(),!i&&m?.(!e);},children:[jsx("span",{className:a(g.slots.controlCheckboxIndicator,l?.indicator,t!=null&&!e&&l?.icon),children:e?jsx(ha,{}):t}),o?jsx("span",{className:a(g.slots.controlCheckboxLabel,l?.label),children:o}):null]})}r(_o,"DataExplorerCheckbox");function ya(){return jsx("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",className:"h-4 w-4",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",children:jsx("path",{d:"m6 9 6 6 6-6"})})}r(ya,"ChevronDownIcon");function va(){return jsx("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",className:"h-4 w-4",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",children:jsx("path",{d:"m5 12 4 4L19 6"})})}r(va,"CheckIcon");function Vo({value:e="",options:t=[],label:o,placeholder:n="Select",icon:i,title:s,triggerLabel:d,disabled:l=false,display:u="value",align:m="start",sideOffset:g=6,appearance:c,className:x,classNames:P,style:h,onValueChange:I}){let b=le(pe(c)),y=t.find(D=>D.value===e),S=u==="label-value"&&o?jsxs(Fragment,{children:[jsx("span",{children:o}),jsx("span",{className:"text-muted-foreground",children:y?.label??n})]}):y?.label??o??n;return jsxs(he.Root,{children:[jsx(he.Trigger,{asChild:true,children:jsxs("button",{type:"button",title:s,"aria-label":d,disabled:l||t.length===0,className:a(b.slots.controlSelectTrigger,P?.trigger,P?.root,x),style:{...b.styles.control,...h},onClick:D=>D.stopPropagation(),children:[i?jsx("span",{className:a(b.slots.controlButtonIcon,P?.icon),children:i}):null,jsx("span",{className:a(b.slots.controlSelectValue,P?.value),children:S}),jsx(ya,{})]})}),jsx(he.Portal,{children:jsx(he.Content,{align:m,sideOffset:g,className:a(b.slots.menuContent,P?.content),style:b.styles.menuContent,onClick:D=>D.stopPropagation(),children:jsx(he.RadioGroup,{value:e,onValueChange:D=>{l||I?.(D);},children:t.map(D=>jsxs(he.RadioItem,{value:D.value,title:D.title,disabled:D.disabled,className:a(b.slots.menuItem,P?.item),style:b.styles.menuItem,children:[jsx("span",{className:a(b.slots.menuItemIcon,P?.itemIcon),children:D.value===e?jsx(va,{}):D.icon}),jsx("span",{className:a(b.slots.menuItemLabel,P?.itemLabel),children:D.label})]},D.value))})})})]})}r(Vo,"DataExplorerSelect");function Da(){return jsx("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",className:"h-4 w-4",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",children:jsx("path",{d:"m6 9 6 6 6-6"})})}r(Da,"ChevronDownIcon");function Oo(e,t){return fe(e.disabled,t)??fe(e.loading,t)??false}r(Oo,"resolveActionDisabled");function Ca(e){return e.onAction??e.onClick}r(Ca,"getActionCallback");function Ta(e,t,o,n){let i=(fe(e.disabled,t)??false)||(fe(e.loading,t)??false),s=fe(e.active,t)??false;return jsxs("div",{children:[e.separatorBefore?jsx(he.Separator,{className:o.slots.menuSeparator}):null,jsxs(he.Item,{title:e.title,disabled:i,className:a(o.slots.menuItem,Et(o,e.tone),s&&"bg-accent text-accent-foreground",n),style:o.styles.menuItem,onSelect:()=>{!e.onAction||i||e.onAction(t);},children:[e.icon?jsx("span",{className:o.slots.menuItemIcon,children:e.icon}):null,jsx("span",{className:o.slots.menuItemLabel,children:e.label})]}),e.separatorAfter?jsx(he.Separator,{className:o.slots.menuSeparator}):null]},e.id)}r(Ta,"renderMenuItem");function Sa(e,t,o,n,i){let s=Oo(e,t),d=fe(e.active,t)??false,l=(e.items??[]).filter(u=>fe(u.visible,t)??true);return jsxs(he.Root,{children:[jsx(he.Trigger,{asChild:true,children:jsx(_t,{title:e.title,ariaLabel:e.triggerLabel,disabled:s||l.length===0,label:e.label,icon:e.icon,endIcon:jsx(Da,{}),tone:e.tone,active:d,stopPropagation:true,appearance:i,className:n?.action})}),jsx(he.Portal,{children:jsxs(he.Content,{align:e.align??"end",sideOffset:e.sideOffset??6,className:a(o.slots.menuContent,n?.menuContent),style:o.styles.menuContent,onClick:u=>u.stopPropagation(),children:[e.menuLabel?jsxs(Fragment,{children:[jsx(he.Label,{className:o.slots.menuLabel,children:e.menuLabel}),jsx(he.Separator,{className:o.slots.menuSeparator})]}):null,l.map(u=>Ta(u,t,o,n?.menuItem))]})})]},e.id)}r(Sa,"renderMenuAction");function Pa(e,t,o,n){let i=Oo(e,t),s=String(fe(e.value,t)??""),d=e.options??[];return jsx(Vo,{value:s,label:e.label,icon:e.icon,title:e.title,triggerLabel:e.triggerLabel,disabled:i,display:e.selectDisplay??"label-value",align:e.align??"end",sideOffset:e.sideOffset??6,options:d.map(l=>({value:l.value,label:l.label,icon:l.icon,title:l.title,disabled:fe(l.disabled,t)??false})),appearance:n,classNames:{trigger:o?.action,content:o?.menuContent,item:o?.menuItem},onValueChange:l=>{!e.onValueChange||i||e.onValueChange(l,t);}},e.id)}r(Pa,"renderSelectAction");function Ba(e,t,o,n){let i=e.kind??"button",s=i==="toggle"?fe(e.checked,t)??fe(e.active,t)??false:fe(e.active,t)??false,d=Oo(e,t),l=Ca(e);return i==="toggle"?jsx(_o,{checked:s,icon:e.icon,label:e.label,title:e.title,disabled:d,appearance:o,className:n,onCheckedChange:u=>{e.onCheckedChange&&e.onCheckedChange(u,t);}},e.id):jsx(_t,{label:e.label,icon:e.icon,title:e.title,ariaLabel:i==="icon-button"?e.triggerLabel||e.title:void 0,tone:e.tone,active:s,iconOnly:i==="icon-button",disabled:d,loading:fe(e.loading,t)??false,stopPropagation:true,appearance:o,className:n,onClick:()=>{l&&l(t);}},e.id)}r(Ba,"renderButtonAction");function vt({context:e,actions:t=[],layout:o="action-bar",appearance:n,empty:i,children:s,className:d,classNames:l}){let u=le(pe(n)),m=t.filter(c=>fe(c.visible,e)??true).map(c=>{if(c.render)return jsx("div",{children:c.render(e)},c.id);if(c.renderTrigger)return jsx("div",{children:c.renderTrigger(e)},c.id);let x=c.kind==="menu"?Sa(c,e,u,l,n):c.kind==="select"?Pa(c,e,l,n):Ba(c,e,n,l?.action);return c.wrapTrigger?jsx("div",{children:c.wrapTrigger(x,e)},c.id):x});if(m.length===0&&!s&&!i)return null;let g=o==="action-bar"?u.slots.actionBarActions:o==="toolbar"?u.slots.toolbarActions:"flex items-center gap-2";return jsxs("div",{className:a(g,l?.root,d),children:[m,s,m.length===0&&!s?i:null]})}r(vt,"DataExplorerToolbarActions");function Ea({context:e,actions:t=[],leading:o,trailing:n,children:i,empty:s,appearance:d,className:l,classNames:u}){let m=le(pe(d)),g=!!o||!!n||!!i||t.length>0;return g||!!s?jsxs("div",{className:a(m.slots.actionBarRoot,u?.root,l),children:[o?jsx("div",{className:a(m.slots.actionBarLeading,u?.leading),children:o}):null,jsx(vt,{context:e,actions:t,layout:"action-bar",appearance:d,empty:g?void 0:s,classNames:{root:u?.actions,action:u?.action},children:i}),n?jsx("div",{className:a(m.slots.actionBarTrailing,u?.trailing),children:n}):null]}):null}r(Ea,"DataExplorerActionBar");var zo={locale:"en-US",messages:{canvas:{replaceImage:"Replace image",cropImage:"Crop image",downloadImage:"Download image",useImageReference:"Use as reference",saturationValue:"Saturation and brightness",hue:"Hue",dots:"Dot grid",group:"Group",hexPlaceholder:"#F5F5F5",controls:"Canvas controls",background:"Canvas background",layers:"Layers",minimap:"Minimap",zoom:"Zoom",zoomIn:"Zoom in",zoomOut:"Zoom out",fit:"Show all elements",zoomTo:r(({percent:e})=>`Zoom to ${e}%`,"zoomTo"),color:r(({value:e})=>`Use ${e}`,"color"),hex:"Hex color",close:"Close",empty:"No layers",element:r(({type:e})=>e,"element")},pagination:{navigation:"Pagination",first:"First",previous:"Previous",next:"Next",last:"Last",page:r(({page:e,pageCount:t})=>`Page ${e} of ${t}`,"page"),currentPage:r(({page:e,pageCount:t})=>`Page ${e} of ${t}, current page`,"currentPage"),emptyResults:"0 results",range:r(({start:e,end:t,total:o})=>`${e}-${t} of ${o}`,"range"),selected:r(({count:e})=>`${e} selected`,"selected"),pageSize:"Items per page",loadBatchSize:"Items per load",perLoad:"Items per load",jumpToPage:"Jump to page",pages:"pages",clickToJump:"Click to jump to a page"},dialog:{close:"Close dialog"},dropdownMenu:{actions:"Actions"},loading:{spinner:"Loading"},layout:{resizePanels:"Resize panels",expandPanel:"Expand",collapsePanel:"Collapse",movePanel:"Move",moveBefore:"Move earlier",moveAfter:"Move later"},steps:{label:"Progress",current:"Current",completed:"Completed",error:"Error",disabled:"Disabled"},numberInput:{increment:"Increase value",decrement:"Decrease value"},passwordInput:{showPassword:"Show password",hidePassword:"Hide password"},multiSelect:{placeholder:"Select options",empty:"No options",removeOption:r(({value:e})=>`Remove ${e}`,"removeOption")},table:{dragColumn:r(({columnId:e})=>`Drag column ${e}`,"dragColumn"),resizeColumn:r(({columnId:e})=>`Resize column ${e}`,"resizeColumn"),sortColumn:r(({columnId:e})=>e?`Sort column ${e}`:"Sort column","sortColumn"),loadingRow:"Loading table row"},toolbar:{theme:{label:"Appearance",toggle:"Toggle theme",auto:"Auto",light:"Light",dark:"Dark"},language:{label:"Language",switch:"Switch language"}},toast:{errorTitle:"Error",warningTitle:"Warning",defaultErrorDescription:"Something went wrong.",defaultWarningDescription:"Please check and try again."},dataExplorer:{viewTree:{actions:"More actions",expand:"Expand",collapse:"Collapse",loading:"Loading...",empty:"No views",error:"Unable to load views"}},workbench:{relationshipGraph:{zoomOut:"Zoom out",zoomIn:"Zoom in",zoomToFit:"Fit graph",minimap:"Graph overview"},collection:{label:"Collection",loading:"Loading items",empty:"No items",loadError:"Unable to load items",refreshError:"Unable to refresh items",retry:"Retry",loadingMore:"Loading more items",permission:"You do not have permission to view this content",offline:"You appear to be offline",requestAccess:"Request access"},interactiveTable:{columnActions:"Column actions",freezeColumn:"Freeze to left",freezeEndColumn:"Freeze to right",unfreezeColumn:"Unfreeze from left",unfreezeEndColumn:"Unfreeze from right",unfreezeAllColumns:"Unfreeze all columns",resetColumnWidth:"Reset column width",frozenColumnTitle:"Frozen column"}},agentWorkbench:{label:"Session activity",reasoning:"Reasoning",plan:"Plan",taskNoDetail:"No additional details",modes:{chat:"Chat",work:"Work"},composer:{send:"Send message",stop:"Stop generating",queue:"Queue message",attach:"Add photos or files",voice:"Start voice input",webSearch:"Web search",chatMode:"Chat mode",model:"Model",reasoning:"Reasoning effort",permissions:"Permissions",removeAttachment:"Remove attachment",editQueued:"Edit queued message",deleteQueued:"Delete queued message",moveUp:"Move message up",moveDown:"Move message down",queued:"Queued messages",uploading:"Uploading",uploadFailed:"Upload failed",retryAttachment:"Retry attachment upload",noModels:"No models available",message:"Message",attachmentOnly:"Attachment",reasoningOptions:{low:"Low",medium:"Medium",high:"High",xhigh:"Extra high"},permissionOptions:{"approval-required":"Approval required","auto-approve":"Auto approve","full-access":"Full access"}},quickStart:{label:"Quick start",back:"Back",addFile:"Add file"},tool:{input:"Input",output:"Output",status:{pending:"Pending",running:"Running",completed:"Completed",failed:"Error",denied:"Denied"}},approval:{approve:"Approve",reject:"Reject",approved:"Approved",rejected:"Rejected"},artifact:{pending:"Preparing",ready:"Ready",failed:"Failed",open:r(({name:e})=>`Open ${e}`,"open")},run:{stopping:"Stopping...",stoppedAfter:r(({duration:e})=>`You stopped after ${e}`,"stoppedAfter")},process:{running:"Working",queued:"Queued",waitingApproval:"Waiting for approval",failed:"Failed",stopped:"Stopped",processed:"Processed",processedFor:r(({duration:e})=>`Worked for ${e}`,"processedFor"),completedCount:r(({completed:e,total:t})=>`${e}/${t} completed`,"completedCount")},artifactWorkspace:{outputs:"Outputs",sources:"Sources",viewAll:"View all",toggleSummary:"Toggle files",tabs:"Open files",closeTab:r(({name:e})=>`Close ${e}`,"closeTab"),closeWorkspace:"Close workspace",close:"Close",closeOthers:"Close other tabs",closeRight:"Close tabs to the right",closeAll:"Close all tabs",kinds:{audio:"Audio",canvas:"Canvas",file:"File",html:"HTML",image:"Image",markdown:"Markdown",pdf:"PDF",presentation:"Presentation",video:"Video",web:"Web page"},collapse:"Collapse",maximize:"Full screen",restore:"Exit full screen",download:r(({name:e})=>`Download ${e}`,"download"),openExternal:r(({name:e})=>`Open ${e} in a new window`,"openExternal"),loading:"Loading preview...",failed:"Preview unavailable",retry:"Try again"},usage:{label:"Context usage",context:r(({used:e,total:t})=>`${e} / ${t} tokens`,"context")},navigation:{search:"Search agents and sessions",searchSessions:"Search sessions",searchShortcut:"Focus search",clearSearch:"Clear search",tabsLabel:"Agent workbench navigation",agents:"Agents",sessions:"Sessions",newAgent:"New Agent",newSession:"New Session",capabilities:"Capabilities & Extensions",settings:"Agent Settings",allAgents:"All Agents",recentSessions:"Recent Sessions",chat:"Chat",work:"Work",chats:"Chats",builtIn:"Built-in",noDescription:"No description",loading:"Loading...",emptyAgents:"No agents yet",emptySessions:"No sessions yet",noResults:"No matching results",retry:"Retry",pin:"Pin",unpin:"Unpin",rename:"Rename",delete:"Delete",actions:"Actions",save:"Save",cancel:"Cancel",running:"Running",completed:"Completed",failed:"Failed",contextUsage:r(({percent:e})=>`${e}% context used`,"contextUsage")},details:{title:"Task details",description:"Summary and workspace activity",duration:"Duration",updated:"Updated",model:"Model",mode:"Mode",permissions:"Permissions",tokenUsage:"Token usage",summary:"Summary",summaryEmpty:"No summary is available yet.",summaryFailed:"The summary could not be generated.",highlights:"Highlights",pendingItems:"Pending items",tabs:{label:"Task detail views",summary:"Summary",workspace:"Workspace"},status:{queued:"Queued",running:"Running",waiting_approval:"Waiting for approval",stopping:"Stopping",stopped:"Stopped",completed:"Completed",failed:"Failed"},state:{loading:{title:"Loading task details",description:"Restoring the latest session activity."},empty:{title:"No task selected",description:"Select a task to inspect its details."},error:{title:"Unable to load task details",description:"Try again after the session is available."}},actions:{close:"Close task details",copySummary:"Copy summary",retry:"Retry",retrySummary:"Retry summary",resume:"Resume",continueInNewTask:"Continue in new task",editAndRerun:"Edit and rerun",export:"Export"},workspace:{diffs:"Code changes",files:"Files",terminals:"Terminals",tests:"Tests",artifacts:"Artifacts",exitCode:r(({code:e})=>`Exit code ${e}`,"exitCode"),diffStatus:{added:"Added",modified:"Modified",deleted:"Deleted",renamed:"Renamed"},fileOperation:{upsert:"Updated",delete:"Deleted"}}}}}};function Tr(e,t){return t?{canvas:{...e.canvas,...t.canvas},beautiful:{...e.beautiful,...t.beautiful},pagination:{...e.pagination,...t.pagination},dialog:{...e.dialog,...t.dialog},dropdownMenu:{...e.dropdownMenu,...t.dropdownMenu},loading:{...e.loading,...t.loading},layout:{...e.layout,...t.layout},steps:{...e.steps,...t.steps},numberInput:{...e.numberInput,...t.numberInput},passwordInput:{...e.passwordInput,...t.passwordInput},multiSelect:{...e.multiSelect,...t.multiSelect},table:{...e.table,...t.table},toolbar:{theme:{...e.toolbar.theme,...t.toolbar?.theme},language:{...e.toolbar.language,...t.toolbar?.language}},toast:{...e.toast,...t.toast},dataExplorer:{viewTree:{...e.dataExplorer.viewTree,...t.dataExplorer?.viewTree}},workbench:{relationshipGraph:{zoomOut:"Zoom out",zoomIn:"Zoom in",zoomToFit:"Fit graph",minimap:"Graph overview",...e.workbench.relationshipGraph,...t.workbench?.relationshipGraph},collection:{...e.workbench.collection,...t.workbench?.collection},interactiveTable:{...e.workbench.interactiveTable,...t.workbench?.interactiveTable}},agentWorkbench:{...e.agentWorkbench,...t.agentWorkbench,modes:{...e.agentWorkbench.modes,...t.agentWorkbench?.modes},composer:{...e.agentWorkbench.composer,...t.agentWorkbench?.composer},quickStart:{...e.agentWorkbench.quickStart,...t.agentWorkbench?.quickStart},tool:{...e.agentWorkbench.tool,...t.agentWorkbench?.tool,status:{...e.agentWorkbench.tool.status,...t.agentWorkbench?.tool?.status}},approval:{...e.agentWorkbench.approval,...t.agentWorkbench?.approval},artifact:{...e.agentWorkbench.artifact,...t.agentWorkbench?.artifact},run:{...e.agentWorkbench.run,...t.agentWorkbench?.run},process:{...e.agentWorkbench.process,...t.agentWorkbench?.process},artifactWorkspace:{...e.agentWorkbench.artifactWorkspace,...t.agentWorkbench?.artifactWorkspace},usage:{...e.agentWorkbench.usage,...t.agentWorkbench?.usage},navigation:{...e.agentWorkbench.navigation,...t.agentWorkbench?.navigation},details:{...e.agentWorkbench.details,...t.agentWorkbench?.details,tabs:{...e.agentWorkbench.details.tabs,...t.agentWorkbench?.details?.tabs},status:{...e.agentWorkbench.details.status,...t.agentWorkbench?.details?.status},state:{loading:{...e.agentWorkbench.details.state.loading,...t.agentWorkbench?.details?.state?.loading},empty:{...e.agentWorkbench.details.state.empty,...t.agentWorkbench?.details?.state?.empty},error:{...e.agentWorkbench.details.state.error,...t.agentWorkbench?.details?.state?.error}},actions:{...e.agentWorkbench.details.actions,...t.agentWorkbench?.details?.actions},workspace:{...e.agentWorkbench.details.workspace,...t.agentWorkbench?.details?.workspace,diffStatus:{...e.agentWorkbench.details.workspace.diffStatus,...t.agentWorkbench?.details?.workspace?.diffStatus},fileOperation:{...e.agentWorkbench.details.workspace.fileOperation,...t.agentWorkbench?.details?.workspace?.fileOperation}}}}}:e}r(Tr,"mergeMonkeysLocaleMessages");var qt={locale:zo.locale,messages:Tr(zo.messages)};var Ia=Object.freeze({}),Na=Object.freeze({}),Sr=Symbol.for("@inf-monkeys-tech/monkeys-design/provider-context@1");function La(){return Object.freeze({locale:createContext({...qt,provided:false}),theme:createContext({provided:false}),direction:createContext({provided:false}),environment:createContext({provided:false,environment:Ia,portal:Na})})}r(La,"createMonkeysProviderContexts");function Aa(){let e=globalThis,t=e[Sr];if(t)return t;let o=La();return Object.defineProperty(e,Sr,{value:o,enumerable:false,configurable:false,writable:false}),o}r(Aa,"getMonkeysProviderContexts");var co=Aa(),Wo=co.locale,jo=co.theme,Ha=co.direction,Br=co.environment;function _a(e,t){return t===void 0?e:e===void 0?t:{...e,...t,slots:e.slots||t.slots?{...e.slots,...t.slots}:void 0,styles:e.styles||t.styles?{...e.styles,...t.styles}:void 0}}r(_a,"mergeAppearance");function Rr(){try{return useContext(Wo)??{...qt,provided:!1}}catch{return {...qt,provided:false}}}r(Rr,"useMonkeysLocale");function lt(){return useContext(Wo).messages}r(lt,"useMonkeysLocaleMessages");function dt(e){let t=useContext(jo).baseAppearance;return useMemo(()=>_a(t,e),[e,t])}r(dt,"useMonkeysBaseAppearance");function Er(){return useContext(jo).listFooter??{}}r(Er,"useMonkeysListFooter");function Mr(){return useContext(Br).environment}r(Mr,"useMonkeysEnvironment");function Ir(){return useContext(Br).portal}r(Ir,"useMonkeysPortalOptions");function je(){let e=useContext(Wo),t=useContext(jo),o=useContext(Ha),n=e.provided||t.provided||o.provided;return useMemo(()=>n?{dir:o.direction,"data-monkeys-direction":o.direction,"data-monkeys-locale":e.locale,"data-monkeys-theme":t.themeId,"data-monkeys-theme-mode":t.resolvedTheme?.colorMode}:{},[o.direction,e.locale,n,t.resolvedTheme?.colorMode,t.themeId])}r(je,"useMonkeysComponentAttributes");function p(...e){return twMerge(e.filter(Boolean).join(" "))}r(p,"cn");function Ue(e){return e!=null&&typeof e!="boolean"}r(Ue,"hasRenderableNode");function Nr(e){return typeof e=="string"?e.trim().length>0:Ue(e)}r(Nr,"hasNonEmptyRenderableNode");function Lr(e,t){let o=new WeakMap,n=new Map,i=1;return (...s)=>{let d=s.slice(0,-1),l=s[s.length-1],u=d.map(c=>{if(!c)return 0;let x=o.get(c);return x===void 0&&(x=i++,o.set(c,x)),x}).join(":"),m=n.get(u);if(!m){let c={};for(let x of e)c[x]=t(...d.map(P=>P?.[x]));m=Object.freeze(c),n.size>=64&&n.delete(n.keys().next().value),n.set(u,m);}let g={...m};if(l)for(let c of e){let x=l[c];x&&(g[c]=t(...d.map(P=>P?.[c]),x));}return g}}r(Lr,"createStaticSlotMerger");var Oa={},Me="motion-safe:transition motion-safe:duration-300 motion-safe:ease-out",ot="motion-safe:transition-all motion-safe:duration-300 motion-safe:ease-out",po="motion-safe:transition-transform motion-safe:duration-300 motion-safe:ease-out",Ar=p("[scrollbar-width:thin]","[scrollbar-color:hsl(var(--muted-foreground)/0.45)_transparent]","[&::-webkit-scrollbar]:h-2 [&::-webkit-scrollbar]:w-2","[&::-webkit-scrollbar-button]:hidden [&::-webkit-scrollbar-button]:h-0 [&::-webkit-scrollbar-button]:w-0 [&::-webkit-scrollbar-button]:bg-transparent","[&::-webkit-scrollbar-button:single-button]:hidden [&::-webkit-scrollbar-button:single-button]:h-0 [&::-webkit-scrollbar-button:single-button]:w-0","[&::-webkit-scrollbar-button:double-button]:hidden [&::-webkit-scrollbar-button:double-button]:h-0 [&::-webkit-scrollbar-button:double-button]:w-0","[&::-webkit-scrollbar-corner]:bg-transparent","[&::-webkit-scrollbar-track]:bg-transparent","[&:has(thead.sticky)::-webkit-scrollbar-track]:mt-[var(--base-table-header-height)]","[&::-webkit-scrollbar-thumb]:rounded-full [&::-webkit-scrollbar-thumb]:bg-muted-foreground/40","hover:[&::-webkit-scrollbar-thumb]:bg-muted-foreground/55"),Fa=p("[&.sticky_th]:sticky [&.sticky_th]:top-0 [&.sticky_th]:z-[2]","[&.sticky_th]:bg-[var(--base-table-sticky-header-bg)]","[&.sticky_th]:shadow-[inset_0_-1px_0_var(--base-table-header-separator)]"),_r={buttonBase:p("group/button inline-flex min-w-0 items-center justify-center gap-2 rounded-md border px-3 text-sm font-medium focus-visible:outline-hidden","cursor-pointer disabled:!cursor-not-allowed",ot),buttonDefault:"border-border bg-background text-foreground hover:bg-accent/60",buttonPrimary:"border-primary/20 bg-primary/10 text-primary hover:bg-primary/15",buttonSuccess:"border-[hsl(var(--success,142_72%_29%)_/_0.30)] bg-[hsl(var(--success,142_72%_29%)_/_0.10)] text-[hsl(var(--success,142_72%_29%))] hover:bg-[hsl(var(--success,142_72%_29%)_/_0.15)]",buttonWarning:"border-[hsl(var(--warning,45_93%_47%)_/_0.30)] bg-[hsl(var(--warning,45_93%_47%)_/_0.10)] text-[hsl(var(--warning-foreground,28_73%_26%))] hover:bg-[hsl(var(--warning,45_93%_47%)_/_0.15)]",buttonDanger:"border-destructive/20 bg-destructive/10 text-destructive-text hover:bg-destructive/15",buttonMuted:"border-border/60 bg-muted/45 text-muted-foreground hover:bg-muted/70 hover:text-foreground",buttonActive:"border-primary/35 bg-primary/10 text-primary",buttonDisabled:"!cursor-not-allowed opacity-60",buttonIconOnly:"w-9 px-0",buttonIcon:"inline-flex h-4 w-4 shrink-0 items-center justify-center text-[inherit] [&_*]:!text-[inherit] [&_svg]:!stroke-current [&_svg_*]:!stroke-current",buttonLabel:"min-w-0 truncate",badgeBase:p("inline-flex max-w-full items-center gap-1.5 rounded-full border px-2 py-0.5 text-xs font-medium",Me),badgeDefault:"border-border/60 bg-background text-foreground",badgePrimary:"border-primary/30 bg-primary/10 text-primary",badgeSuccess:"border-[hsl(var(--success,142_72%_29%)_/_0.30)] bg-[hsl(var(--success,142_72%_29%)_/_0.10)] text-[hsl(var(--success,142_72%_29%))]",badgeWarning:"border-[hsl(var(--warning,45_93%_47%)_/_0.30)] bg-[hsl(var(--warning,45_93%_47%)_/_0.10)] text-[hsl(var(--warning-foreground,28_73%_26%))]",badgeDanger:"border-destructive/30 bg-destructive/10 text-destructive-text",badgeMuted:"border-border/60 bg-muted text-muted-foreground",badgeIcon:"inline-flex h-3.5 w-3.5 shrink-0 items-center justify-center",badgeLabel:"min-w-0 truncate",textRoot:"min-w-0 break-words leading-6",textSizeXs:"text-xs",textSizeSm:"text-sm",textSizeMd:"text-base",textSizeLg:"text-lg",textSizeXl:"text-xl",typographyToneDefault:"text-foreground",typographyToneMuted:"text-muted-foreground",typographyTonePrimary:"text-primary",typographyToneSuccess:"text-emerald-700 dark:text-emerald-400",typographyToneWarning:"text-amber-700 dark:text-amber-400",typographyToneDanger:"text-destructive-text",typographyToneInherit:"text-inherit",headingRoot:"min-w-0 break-words font-semibold tracking-tight",headingSizeXs:"text-sm leading-5",headingSizeSm:"text-base leading-6",headingSizeMd:"text-lg leading-7",headingSizeLg:"text-xl leading-7",headingSizeXl:"text-2xl leading-8",headingSize2xl:"text-3xl leading-9",linkRoot:"inline break-words underline decoration-current/40 underline-offset-4 hover:decoration-current focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-primary/30",codeInline:"rounded border border-border/70 bg-muted/60 px-1.5 py-0.5 font-mono text-[0.875em] leading-[1.45] text-foreground",codeBlock:"m-0 max-w-full overflow-x-auto rounded-md border border-border/70 bg-muted/60 p-4 text-foreground",codeContent:"font-mono text-sm leading-6",kbdRoot:"inline-flex min-h-5 items-center rounded border border-border bg-muted/70 px-1.5 font-mono text-[0.75em] font-medium leading-5 text-foreground shadow-[inset_0_-1px_0_hsl(var(--monkeys-color-border))]",listRoot:"m-0 min-w-0 list-outside break-words ps-5 text-foreground",listSpacingCompact:"[&>li+li]:mt-1",listSpacingDefault:"[&>li+li]:mt-2",listSpacingRelaxed:"[&>li+li]:mt-3",listMarkerNone:"list-none ps-0",listMarkerDisc:"list-disc",listMarkerCircle:"list-[circle]",listMarkerSquare:"list-[square]",listMarkerDecimal:"list-decimal",listMarkerLowerAlpha:"list-[lower-alpha]",listMarkerUpperAlpha:"list-[upper-alpha]",listItem:"min-w-0 ps-1 leading-6 marker:text-muted-foreground",stackRoot:"flex min-w-0 flex-col",inlineRoot:"flex min-w-0 flex-row",gridRoot:"grid min-w-0",containerRoot:"mx-auto w-full min-w-0",aspectRatioRoot:"relative min-w-0 overflow-hidden [&>*]:h-full [&>*]:w-full",spinnerRoot:"inline-flex shrink-0 items-center justify-center text-current align-middle",spinnerIndicator:"h-5 w-5 rounded-full border-2 border-current border-r-transparent motion-safe:animate-spin motion-reduce:animate-none",visuallyHiddenRoot:"sr-only",visuallyHiddenFocusable:"focus:not-sr-only focus:fixed focus:left-4 focus:top-4 focus:z-[1000] focus:rounded-md focus:bg-background focus:px-4 focus:py-2 focus:text-foreground focus:shadow-lg focus:outline-hidden focus:ring-2 focus:ring-ring focus-within:not-sr-only focus-within:fixed focus-within:left-4 focus-within:top-4 focus-within:z-[1000] focus-within:rounded-md focus-within:bg-background focus-within:px-4 focus-within:py-2 focus-within:text-foreground focus-within:shadow-lg focus-within:ring-2 focus-within:ring-ring",fieldsetRoot:"min-w-0 border-0 p-0 text-foreground",fieldsetLegend:"min-w-0 text-sm font-semibold leading-6 text-foreground",fieldsetDescription:"mt-1 text-sm leading-5 text-muted-foreground",fieldsetError:"mt-1 text-sm leading-5 text-destructive-text",fieldsetContent:"mt-3 grid min-w-0 gap-3",stepsRoot:"m-0 min-w-0 list-none p-0 text-foreground",stepsHorizontal:"flex w-full max-w-full items-start overflow-x-auto pb-2",stepsVertical:"grid",stepsItem:"relative min-w-0",stepsItemHorizontal:"flex min-w-52 flex-1 items-start",stepsItemVertical:"pb-6 last:pb-0",stepsTrigger:"flex min-w-0 flex-1 items-start gap-3 rounded-md border-0 bg-transparent p-1 text-start text-inherit",stepsTriggerInteractive:"cursor-pointer hover:bg-accent/50 focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 motion-safe:transition motion-safe:duration-300 motion-safe:ease-out",stepsTriggerDisabled:"!cursor-not-allowed opacity-60",stepsIndicator:"relative z-[1] inline-flex h-7 w-7 shrink-0 items-center justify-center rounded-full border text-xs font-semibold",stepsIndicatorPending:"border-border bg-background text-muted-foreground",stepsIndicatorCurrent:"border-primary/50 bg-primary/10 text-primary",stepsIndicatorCompleted:"border-primary bg-primary text-primary-foreground",stepsIndicatorError:"border-destructive bg-destructive text-destructive-foreground",stepsContent:"grid min-w-0 gap-1 pt-0.5",stepsLabel:"min-w-0 break-words text-sm font-medium leading-5",stepsDescription:"min-w-0 break-words text-sm leading-5 text-muted-foreground",stepsStatus:"sr-only",stepsConnector:"shrink-0 bg-border",stepsConnectorHorizontal:"mt-3.5 h-px w-8",stepsConnectorVertical:"absolute bottom-0 top-8 start-3.5 w-px -translate-x-1/2",stepsConnectorCompleted:"bg-primary/60",stepsConnectorError:"bg-destructive/60",scrollAreaViewport:"min-h-0 min-w-0",numberInputControl:"tabular-nums",numberInputStepControls:"me-1 flex shrink-0 self-stretch overflow-hidden border-s border-border",numberInputStepButton:"flex min-h-6 w-7 cursor-pointer items-center justify-center border-0 bg-transparent px-1 text-xs leading-none text-muted-foreground hover:bg-accent hover:text-foreground focus-visible:z-[1] focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-ring disabled:!cursor-not-allowed disabled:opacity-40",passwordInputControl:"pe-2",passwordInputToggle:"me-1 inline-flex min-h-7 shrink-0 cursor-pointer items-center justify-center rounded px-2 text-xs font-medium text-muted-foreground hover:bg-accent hover:text-foreground focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring disabled:!cursor-not-allowed disabled:opacity-40",inputGroupRoot:p("relative flex min-w-0 items-stretch overflow-hidden rounded-md border border-border bg-background text-foreground focus-within:border-primary/50 focus-within:ring-2 focus-within:ring-ring/30",Me),inputGroupInvalid:"border-destructive/55 focus-within:border-destructive/70 focus-within:ring-destructive/25",inputGroupDisabled:"!cursor-not-allowed bg-muted/35",inputGroupContent:"flex min-w-0 flex-1 items-stretch [&>*]:min-w-0",inputGroupStartElement:"inline-flex shrink-0 items-center justify-center ps-3 pe-1 text-foreground/75",inputGroupEndElement:"inline-flex shrink-0 items-center justify-center ps-1 pe-3 text-foreground/75",inputGroupStartAddon:"inline-flex max-w-[min(40%,16rem)] shrink-0 items-center overflow-hidden border-e border-border bg-muted/60 px-3 text-sm text-foreground/75 text-ellipsis whitespace-nowrap [&>*]:min-w-0",inputGroupEndAddon:"inline-flex max-w-[min(40%,16rem)] shrink-0 items-center overflow-hidden border-s border-border bg-muted/60 px-3 text-sm text-foreground/75 text-ellipsis whitespace-nowrap [&>*]:min-w-0",panelRoot:p("group relative flex min-w-0 flex-col overflow-hidden rounded-lg border border-border/70 bg-background",ot),panelInteractive:"cursor-pointer hover:shadow-md",panelSelected:"border-primary/45 bg-primary/5",panelDisabled:"!cursor-not-allowed opacity-60",panelMedia:"shrink-0 overflow-hidden",panelHeader:"min-w-0 p-token-lg",panelTitle:"min-w-0 truncate text-sm font-semibold leading-none text-foreground",panelDescription:"mt-1 text-sm leading-5 text-foreground/75",panelBody:"min-w-0 px-token-lg pb-token-lg text-sm text-foreground",panelBodyStandalone:"pt-token-lg",panelFooter:"shrink-0 border-t border-border/60 px-token-lg py-token-md",stateRoot:p("flex min-h-48 flex-col items-center justify-center rounded-lg border border-border/70 bg-background px-6 py-10 text-center",Me),stateIcon:"mb-token-lg flex h-12 w-12 items-center justify-center rounded-full bg-muted text-muted-foreground motion-safe:animate-in motion-safe:fade-in",stateTitle:"text-sm font-semibold text-foreground",stateDescription:"mt-2 max-w-md text-sm leading-6 text-muted-foreground",stateActions:"mt-token-xl flex flex-wrap items-center justify-center gap-token-sm",loadingSpinner:"h-5 w-5 motion-safe:animate-spin motion-reduce:animate-none",fieldRoot:"grid min-w-0 gap-token-md",fieldLabelRow:"flex min-w-0 items-center justify-between gap-token-md",fieldLabel:"min-w-0 text-sm font-medium leading-none text-foreground",fieldRequired:"text-destructive-text",fieldDescription:"text-sm leading-5 text-muted-foreground",fieldMessage:"text-sm leading-5 text-muted-foreground",fieldControl:"min-w-0",controlWrapper:p("relative flex min-w-0 items-center rounded-md border border-border bg-background text-foreground focus-within:border-primary/35",Me),controlBase:"min-w-0 flex-1 bg-transparent px-3 text-sm text-foreground outline-hidden placeholder:text-muted-foreground disabled:!cursor-not-allowed",controlInput:"h-9",controlTextarea:"min-h-24 resize-y py-2 leading-6",controlSelect:"h-9 cursor-pointer appearance-none pr-9 disabled:!cursor-not-allowed",controlIcon:"pointer-events-none ml-3 inline-flex h-4 w-4 shrink-0 items-center justify-center text-muted-foreground",controlTrailing:"mr-3 inline-flex shrink-0 items-center justify-center text-muted-foreground",controlInvalid:"border-destructive/45 focus-within:border-destructive/60",controlDisabled:"!cursor-not-allowed opacity-60",controlReadOnly:"bg-muted/35",selectChevron:p("pointer-events-none absolute right-3 top-1/2 h-2 w-2 -translate-y-1/2 rotate-45 border-b border-r border-current text-muted-foreground",po),selectMenu:"absolute left-0 right-0 top-[calc(100%+0.375rem)] z-50 max-h-60 overflow-auto rounded-md border border-border bg-background p-1 text-sm text-foreground shadow-lg outline-hidden",selectOption:p("flex min-h-8 w-full min-w-0 cursor-pointer items-center rounded-sm px-2.5 py-1.5 text-left text-sm text-foreground",ot),selectOptionActive:"bg-accent text-accent-foreground",selectOptionSelected:"bg-primary/10 text-primary",selectOptionDisabled:"!cursor-not-allowed opacity-50",selectPlaceholder:"text-muted-foreground",selectNative:"sr-only",switchRoot:"inline-flex min-w-0 cursor-pointer items-start gap-3",switchInput:"sr-only",switchTrack:p("relative mt-0.5 inline-flex h-6 w-10 shrink-0 items-center rounded-full border border-border bg-muted focus-within:border-primary/35",Me),switchThumb:p("h-4 w-4 translate-x-1 rounded-full bg-background shadow-sm",po),switchChecked:"border-primary/40 bg-primary/80 text-primary-foreground",switchDisabled:"!cursor-not-allowed opacity-60",switchContent:"grid min-w-0 gap-1",switchLabel:"text-sm font-medium leading-none text-foreground",switchDescription:"text-sm leading-5 text-muted-foreground",checkboxRoot:"inline-flex min-w-0 cursor-pointer items-start gap-3",checkboxInput:"sr-only",checkboxBox:p("mt-0.5 inline-flex h-4 w-4 shrink-0 items-center justify-center rounded border border-border bg-background text-primary focus-within:border-primary/40",Me),checkboxBoxChecked:"border-primary/45 bg-primary text-primary-foreground",checkboxBoxInvalid:"border-destructive/50",checkboxIndicator:"text-xs font-bold leading-none",checkboxDisabled:"!cursor-not-allowed opacity-60",checkboxContent:"grid min-w-0 gap-1",checkboxLabel:"text-sm font-medium leading-none text-foreground",checkboxDescription:"text-sm leading-5 text-muted-foreground",radioGroupRoot:"grid min-w-0 gap-2",radioOption:p("inline-flex min-w-0 cursor-pointer items-start gap-3 rounded-md border border-border/60 bg-background px-3 py-2 text-sm",ot,"hover:bg-muted/35"),radioInput:"sr-only",radioMarker:p("mt-0.5 inline-flex h-4 w-4 shrink-0 items-center justify-center rounded-full border border-border bg-background text-primary focus-within:border-primary/40",Me),radioMarkerChecked:"border-primary/50 bg-primary/10",radioIndicator:"h-2 w-2 rounded-full bg-primary",radioOptionDisabled:"!cursor-not-allowed opacity-60 hover:bg-background",radioContent:"grid min-w-0 gap-1",radioLabel:"text-sm font-medium leading-none text-foreground",radioDescription:"text-sm leading-5 text-muted-foreground",dialogRoot:"relative",dialogTrigger:"",dialogTriggerDisabled:"!cursor-not-allowed opacity-60",dialogOverlay:"fixed inset-0 z-50 bg-background/70 backdrop-blur-sm motion-safe:animate-in motion-safe:fade-in motion-safe:duration-300 motion-safe:ease-out",dialogContent:"pointer-events-none fixed inset-0 z-50 flex min-h-0 items-center justify-center p-4",dialogPanel:p("pointer-events-auto relative flex max-h-[min(85vh,720px)] w-full max-w-lg min-w-0 flex-col overflow-hidden rounded-lg border border-border/70 bg-background text-foreground shadow-xl","motion-safe:animate-in motion-safe:fade-in motion-safe:zoom-in-95 motion-safe:duration-300 motion-safe:ease-out"),dialogHeader:"grid min-w-0 gap-1 border-b border-border/60 px-5 py-4",dialogTitle:"min-w-0 pr-8 text-base font-semibold leading-6 text-foreground",dialogDescription:"text-sm leading-6 text-muted-foreground",dialogBody:"min-h-0 min-w-0 overflow-auto px-5 py-4 text-sm text-foreground",dialogFooter:"flex shrink-0 flex-wrap items-center justify-end gap-2 border-t border-border/60 px-5 py-4",dialogClose:p("absolute right-3 top-3 inline-flex h-8 w-8 cursor-pointer items-center justify-center rounded-md text-muted-foreground hover:bg-muted/60 hover:text-foreground focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-primary/30",ot),dropdownRoot:"relative inline-flex min-w-0",dropdownTrigger:"",dropdownTriggerDisabled:"!cursor-not-allowed opacity-60",dropdownMenu:"z-50 min-w-48 overflow-hidden rounded-md border border-border bg-background p-1 text-sm text-foreground shadow-lg motion-safe:animate-in motion-safe:fade-in motion-safe:duration-300 motion-safe:ease-out",dropdownMenuTop:"bottom-[calc(100%+0.375rem)] top-auto",dropdownMenuEnd:"left-auto right-0",dropdownLabel:"px-2.5 py-1.5 text-xs font-semibold uppercase tracking-[0.12em] text-muted-foreground",dropdownSeparator:"my-1 h-px bg-border/70",dropdownItem:p("flex min-w-0 cursor-pointer items-center gap-2 rounded-sm px-2.5 py-2 text-left text-sm text-foreground hover:bg-accent/60 focus:bg-accent/60 data-[highlighted]:bg-accent/60 focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-primary/30",ot),dropdownItemDanger:"text-destructive-text hover:bg-destructive/10 focus:bg-destructive/10 data-[highlighted]:bg-destructive/10",dropdownItemDisabled:"!cursor-not-allowed opacity-50 hover:bg-transparent focus:bg-transparent data-[highlighted]:bg-transparent",dropdownItemIcon:"inline-flex h-4 w-4 shrink-0 items-center justify-center",dropdownItemContent:"grid min-w-0 flex-1 gap-0.5",dropdownItemLabel:"min-w-0 truncate",dropdownItemDescription:"min-w-0 truncate text-xs leading-4 text-muted-foreground",dropdownItemShortcut:"ml-3 shrink-0 text-xs font-medium text-muted-foreground",tooltipRoot:"relative inline-flex min-w-0",tooltipTrigger:"inline-flex min-w-0",tooltipContent:"pointer-events-none z-50 max-w-xs rounded-md border border-border bg-popover px-2.5 py-1.5 text-xs leading-5 text-popover-foreground shadow-lg motion-safe:animate-in motion-safe:fade-in motion-safe:duration-300 motion-safe:ease-out",noticeBase:p("flex min-w-0 gap-3 rounded-lg border px-4 py-3 text-sm",Me,"motion-safe:animate-in motion-safe:fade-in"),noticeDefault:"border-border bg-background text-foreground",noticePrimary:"border-primary/25 bg-primary/10 text-primary",noticeSuccess:"border-[hsl(var(--success,142_72%_29%)_/_0.30)] bg-[hsl(var(--success,142_72%_29%)_/_0.10)] text-foreground",noticeWarning:"border-[hsl(var(--warning,45_93%_47%)_/_0.30)] bg-[hsl(var(--warning,45_93%_47%)_/_0.10)] text-[hsl(var(--warning-foreground,28_73%_26%))]",noticeDanger:"border-destructive/30 bg-destructive/10 text-destructive-text",noticeMuted:"border-border/60 bg-muted/35 text-muted-foreground",noticeIcon:"mt-0.5 inline-flex h-4 w-4 shrink-0 items-center justify-center motion-safe:animate-in motion-safe:fade-in",noticeTitle:"font-semibold leading-5",noticeDescription:"leading-6",noticeActions:"mt-3 flex flex-wrap items-center gap-2",dividerRoot:p("shrink-0 border-border/70",Me),dividerLabel:"mx-3 shrink-0 text-xs font-medium uppercase tracking-[0.12em] text-muted-foreground motion-safe:animate-in motion-safe:fade-in",sectionHeaderRoot:"flex min-w-0 flex-wrap items-start justify-between gap-token-md motion-safe:animate-in motion-safe:fade-in motion-safe:duration-300 motion-safe:ease-out",sectionHeaderContent:"grid min-w-0 gap-1",sectionHeaderEyebrow:"text-xs font-semibold uppercase tracking-[0.14em] text-muted-foreground",sectionHeaderTitle:"text-base font-semibold leading-6 text-foreground",sectionHeaderDescription:"max-w-2xl text-sm leading-6 text-muted-foreground",sectionHeaderActions:"flex shrink-0 flex-wrap items-center gap-2",tabsRoot:"grid min-w-0 gap-token-md",tabsList:p("inline-flex min-w-0 flex-wrap items-center gap-token-xs rounded-lg border border-border/70 bg-muted/30 p-token-xs",Me),tabsTrigger:p("inline-flex min-w-0 cursor-pointer items-center justify-center rounded-md px-3 py-1.5 text-sm font-medium text-muted-foreground hover:bg-background/70 hover:text-foreground focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-primary/30 focus-visible:ring-offset-1 motion-reduce:transition-none",ot),tabsTriggerActive:"bg-background text-foreground shadow-sm",tabsTriggerDisabled:"!cursor-not-allowed opacity-50 hover:bg-transparent",tabsPanel:"min-w-0 rounded-lg border border-border/70 bg-background p-4 text-sm text-foreground focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-primary/30 motion-safe:animate-in motion-safe:fade-in motion-safe:duration-300 motion-safe:ease-out motion-reduce:transition-none",segmentedRoot:p("inline-flex min-w-0 items-center gap-1 rounded-lg border border-border/70 bg-muted/30 p-1",Me),segmentedItem:p("inline-flex min-w-0 cursor-pointer items-center justify-center gap-1.5 rounded-md px-3 py-1.5 text-sm font-medium text-muted-foreground hover:bg-background/70 hover:text-foreground focus-visible:outline-hidden",ot),segmentedItemActive:"bg-background text-foreground shadow-sm",segmentedItemDisabled:"!cursor-not-allowed opacity-50 hover:bg-transparent",progressRoot:"grid min-w-0 gap-2",progressTrack:"h-2 w-full overflow-hidden rounded-full bg-muted",progressIndicator:"h-full rounded-full bg-primary motion-safe:transition-[width] motion-safe:duration-500 motion-safe:ease-out",progressLabelRow:"flex min-w-0 items-center justify-between gap-3",progressLabel:"min-w-0 truncate text-sm font-medium text-foreground",progressValue:"shrink-0 text-xs font-medium text-muted-foreground",skeletonRoot:"relative overflow-hidden rounded-md bg-muted/70",avatarRoot:"relative inline-flex shrink-0 items-center justify-center overflow-hidden rounded-full border border-border bg-muted text-sm font-semibold text-muted-foreground motion-safe:transition motion-safe:duration-300 motion-safe:ease-out",avatarImage:"h-full w-full object-cover",avatarFallback:"flex h-full w-full items-center justify-center bg-muted text-foreground",avatarStatus:"absolute bottom-0 right-0 h-2.5 w-2.5 rounded-full border-2 border-background bg-muted-foreground motion-safe:animate-pulse",avatarText:"min-w-0 truncate text-sm font-medium text-foreground",toolbarRoot:p("flex min-w-0 flex-wrap items-center justify-between gap-token-md rounded-lg border border-border/70 bg-background px-token-lg py-token-md",Me),toolbarLeading:"flex min-w-0 items-center gap-token-md",toolbarTitle:"min-w-0 truncate text-sm font-semibold text-foreground",toolbarDescription:"mt-0.5 text-sm leading-5 text-muted-foreground",toolbarContent:"min-w-0 flex-1",toolbarActions:"flex shrink-0 flex-wrap items-center gap-token-sm",breadcrumbRoot:"min-w-0 text-sm text-muted-foreground",breadcrumbList:"flex min-w-0 flex-wrap items-center gap-1.5",breadcrumbItem:"inline-flex min-w-0 items-center gap-1.5",breadcrumbLink:"min-w-0 cursor-pointer truncate text-muted-foreground hover:text-foreground disabled:!cursor-not-allowed disabled:opacity-50 aria-disabled:!cursor-not-allowed aria-disabled:opacity-50 aria-disabled:hover:text-muted-foreground motion-safe:transition motion-safe:duration-300 motion-safe:ease-out",breadcrumbCurrent:"min-w-0 truncate font-medium text-foreground",breadcrumbSeparator:"shrink-0 text-muted-foreground/70",paginationRoot:"flex min-w-0 flex-wrap items-center justify-between gap-3 text-sm",paginationInfo:"min-w-0 text-muted-foreground",paginationControls:"flex min-w-0 flex-wrap items-center justify-end gap-1.5",paginationButton:"inline-flex h-8 min-w-8 cursor-pointer items-center justify-center whitespace-nowrap rounded-md border border-border bg-background px-2.5 text-sm font-medium text-foreground hover:bg-accent/60 disabled:!cursor-not-allowed disabled:opacity-50 motion-safe:transition motion-safe:duration-300 motion-safe:ease-out",paginationButtonDisabled:"!cursor-not-allowed opacity-50",paginationPage:"inline-flex h-8 min-w-8 cursor-default items-center justify-center rounded-md bg-muted/50 px-2.5 text-sm font-medium text-foreground hover:bg-muted/50",paginationEllipsis:"inline-flex h-8 min-w-6 items-center justify-center px-1 text-sm text-muted-foreground",descriptionListRoot:"grid min-w-0 gap-3 text-sm",descriptionListItem:"grid min-w-0 gap-1 rounded-md border border-border/60 bg-background px-3 py-2 motion-safe:transition motion-safe:duration-300 motion-safe:ease-out hover:shadow-sm",descriptionListTerm:"min-w-0 truncate text-xs font-medium uppercase tracking-[0.08em] text-muted-foreground",descriptionListValue:"min-w-0 text-sm leading-6 text-foreground",accordionRoot:"grid min-w-0 gap-2",accordionItem:"overflow-hidden rounded-lg border border-border/70 bg-background motion-safe:transition motion-safe:duration-300 motion-safe:ease-out motion-reduce:transition-none",accordionTrigger:"flex w-full min-w-0 cursor-pointer items-center justify-between gap-3 px-4 py-3 text-start text-sm font-medium text-foreground hover:bg-muted/40 focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-ring disabled:!cursor-not-allowed disabled:opacity-50 motion-safe:transition motion-safe:duration-300 motion-safe:ease-out motion-reduce:transition-none",accordionTriggerIcon:p("h-2 w-2 shrink-0 rotate-45 border-b border-r border-current text-muted-foreground",po,"motion-reduce:transition-none"),accordionPanel:"border-t border-border/60 px-4 py-3 text-sm leading-6 text-muted-foreground motion-safe:animate-in motion-safe:fade-in motion-safe:duration-300 motion-safe:ease-out motion-reduce:animate-none",menuTrigger:"inline-flex min-w-0",menuContent:"z-50 min-w-44 overflow-hidden rounded-md border border-border bg-background p-1 text-sm text-foreground shadow-lg outline-hidden motion-safe:animate-in motion-safe:fade-in motion-safe:zoom-in-95 motion-safe:duration-300 motion-safe:ease-out",menuLabel:"px-2 py-1.5 text-xs font-medium text-muted-foreground",menuSeparator:"-mx-1 my-1 h-px bg-border",menuItem:p("relative flex min-h-8 min-w-0 cursor-pointer select-none items-center gap-2 rounded-sm px-2.5 py-1.5 text-sm text-foreground outline-hidden focus:bg-accent focus:text-accent-foreground data-[disabled]:!cursor-not-allowed data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground",ot),menuItemDefault:"text-foreground",menuItemPrimary:"text-primary focus:text-primary data-[highlighted]:text-primary",menuItemSuccess:"text-[hsl(var(--success,142_72%_29%))] focus:text-[hsl(var(--success,142_72%_29%))] data-[highlighted]:text-[hsl(var(--success,142_72%_29%))]",menuItemWarning:"text-[hsl(var(--warning-foreground,28_73%_26%))] focus:text-[hsl(var(--warning-foreground,28_73%_26%))] data-[highlighted]:text-[hsl(var(--warning-foreground,28_73%_26%))]",menuItemDanger:"text-destructive-text focus:text-destructive-text data-[highlighted]:text-destructive-text",menuItemMuted:"text-muted-foreground focus:text-foreground data-[highlighted]:text-foreground",menuItemDisabled:"!cursor-not-allowed opacity-50 data-[disabled]:pointer-events-none",menuItemIcon:"inline-flex h-4 w-4 shrink-0 items-center justify-center",menuItemLabel:"min-w-0 flex-1 truncate",menuItemShortcut:"ml-4 shrink-0 text-xs font-medium text-muted-foreground",menuCheckboxIndicator:"absolute left-2 inline-flex h-4 w-4 items-center justify-center text-current",menuRadioIndicator:"absolute left-2 inline-flex h-4 w-4 items-center justify-center text-current",menuSubTrigger:p("relative flex min-h-8 min-w-0 cursor-pointer select-none items-center gap-2 rounded-sm px-2.5 py-1.5 text-sm text-foreground outline-hidden focus:bg-accent focus:text-accent-foreground data-[disabled]:!cursor-not-allowed data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground",ot),menuSubTriggerIcon:"ml-auto inline-flex h-4 w-4 shrink-0 items-center justify-center text-muted-foreground",menuSubContent:"z-50 min-w-40 overflow-hidden rounded-md border border-border bg-background p-1 text-sm text-foreground shadow-lg outline-hidden motion-safe:animate-in motion-safe:fade-in motion-safe:zoom-in-95 motion-safe:duration-300 motion-safe:ease-out",tableContainer:p("relative isolate min-w-0 overflow-auto rounded-lg border border-border/70 bg-background/95 bg-clip-padding [scrollbar-gutter:stable]","[--base-table-header-height:2.75rem] [--base-table-split-scrollbar-gutter:0.75rem]","[--base-table-sticky-header-bg:hsl(var(--background))] [--base-table-header-separator:hsl(var(--border)_/_0.7)]",Ar,Me),tableContainerFooterAttached:"!rounded-b-none !shadow-none",tableRoot:"w-full caption-bottom border-separate border-spacing-0 text-sm text-foreground",tableCaption:"mt-3 text-sm text-muted-foreground",tableHeader:p("relative z-[2] bg-transparent [&_tr]:bg-transparent",Fa),tableBody:"[&_tr:last-child>*]:border-b-0",tableFooter:"bg-muted/30 font-medium [&_tr>*]:border-t [&_tr>*]:border-border/70",tableFooterBar:p("flex min-w-0 flex-wrap items-center justify-between gap-3 rounded-lg border border-border/70 bg-muted/20 px-4 py-3 text-sm text-foreground shadow-none",Me),tableFooterBarAttached:"-mt-px rounded-t-none border-t border-border/70 shadow-none",tableFooterBarLeading:"flex min-w-0 items-center gap-2",tableFooterBarContent:"min-w-0 flex-1",tableFooterBarActions:"ms-auto flex shrink-0 flex-wrap items-center gap-2",tableSplitRoot:"grid w-full min-w-0 grid-cols-[minmax(0,1fr)] grid-rows-[auto_minmax(0,1fr)_auto] caption-bottom border-separate border-spacing-0 text-sm text-foreground",tableSplitHeader:"block w-full min-w-0 shrink-0 overflow-x-hidden overflow-y-hidden bg-transparent",tableSplitBody:p("block min-h-0 w-full min-w-0 max-w-full justify-self-stretch overflow-auto [scrollbar-gutter:stable]",Ar),tableSplitFooter:"block w-full min-w-0 shrink-0 overflow-x-hidden overflow-y-hidden",tableSplitRow:"grid w-max min-w-full [grid-template-columns:var(--base-table-column-template)]",tableSplitHead:"flex min-w-0 overflow-hidden",tableSplitCell:"block min-w-0 overflow-hidden [overflow-wrap:anywhere]",tableRow:p("[&>*]:border-b [&>*]:border-border/60 data-[state=selected]:bg-primary/5 data-[state=selected]:[&>*]:bg-primary/5",Me),tableRowInteractive:"cursor-pointer [--base-table-row-hover-bg:hsl(var(--muted)_/_0.35)] hover:bg-[var(--base-table-row-hover-bg)] hover:[&>td]:bg-[var(--base-table-row-hover-bg)] hover:[&>th]:bg-[var(--base-table-row-hover-bg)]",tableRowSelected:"bg-primary/5 [&>*]:bg-primary/5",tableRowDisabled:"!cursor-not-allowed opacity-60",tableHead:"relative h-11 whitespace-nowrap px-3 py-2 text-left align-middle text-xs font-semibold text-muted-foreground shadow-[inset_0_-1px_0_var(--base-table-header-separator)]",tableHeadContent:"flex min-w-0 items-center justify-between gap-2",tableHeadMain:"flex min-w-0 items-center gap-2",tableHeadIcon:"inline-flex h-4 w-4 shrink-0 items-center justify-center text-muted-foreground",tableHeadText:"grid min-w-0 gap-0.5",tableHeadLabel:"min-w-0 truncate text-xs font-semibold leading-4 text-foreground",tableHeadDescription:"min-w-0 truncate text-xs font-normal leading-4 text-muted-foreground",tableHeadMeta:"shrink-0 text-xs font-medium text-muted-foreground",tableHeadActions:"flex shrink-0 items-center gap-1",tableHeadSortButton:p("inline-flex min-w-0 cursor-pointer items-center gap-1 rounded-sm text-left focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-primary/30 disabled:!cursor-not-allowed disabled:opacity-60",Me),tableHeadSortIcon:p("inline-flex h-3 w-3 shrink-0 items-center justify-center text-muted-foreground",po),tableHeadDragHandle:p("inline-flex h-5 w-4 shrink-0 cursor-grab items-center justify-center rounded-sm text-muted-foreground hover:bg-muted active:cursor-grabbing focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-primary/30 disabled:!cursor-not-allowed disabled:opacity-50",Me),tableHeadResizeHandle:p("absolute end-0 top-1/2 h-7 w-2 -translate-y-1/2 cursor-col-resize touch-none rounded-sm after:absolute after:start-1/2 after:top-1/2 after:h-5 after:w-px after:-translate-x-1/2 after:-translate-y-1/2 after:bg-border hover:after:bg-primary focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-primary/30 disabled:!cursor-not-allowed disabled:opacity-50",Me),tableCell:"min-w-0 px-3 py-2 align-middle text-sm text-foreground [overflow-wrap:anywhere]",tableCellAlignCenter:"text-center",tableCellAlignRight:"text-right",tableEmptyRow:"[&>*]:border-b [&>*]:border-border/60",tableEmptyCell:"px-4 py-10 text-center",tableEmptyContent:"mx-auto flex max-w-md flex-col items-center justify-center text-center",tableEmptyIcon:"mb-3 flex h-10 w-10 items-center justify-center rounded-full bg-muted text-muted-foreground",tableEmptyTitle:"text-sm font-semibold text-foreground",tableEmptyDescription:"mt-1 text-sm leading-6 text-muted-foreground",tableEmptyActions:"mt-4 flex flex-wrap items-center justify-center gap-2",tableLoadingRow:"[&>*]:border-b [&>*]:border-border/60",tableLoadingCell:"px-3 py-2",tableLoadingSkeleton:"h-4 w-full rounded-md bg-muted/70",layoutRoot:p("grid min-w-0 overflow-hidden grid-rows-[auto_minmax(0,1fr)_auto] gap-3 rounded-lg border border-border/70 bg-background p-3 text-foreground",Me),layoutRootFull:"h-full min-h-0",layoutHeader:"min-w-0",layoutBody:"grid min-h-0 min-w-0 overflow-hidden gap-token-md",layoutSidebar:"min-h-0 min-w-0 overflow-hidden",layoutMain:"min-h-0 min-w-0 overflow-hidden",layoutAside:"min-h-0 min-w-0 overflow-hidden",layoutFooter:"min-w-0",layoutPane:p("h-full max-h-full min-h-0 min-w-0 overflow-hidden rounded-lg bg-background text-foreground",Me),layoutPaneScrollable:"overflow-auto",layoutPaneBordered:"border border-border/70",layoutPaneMuted:"bg-muted/25",layoutPaneSoft:"bg-background/95 shadow-sm",layoutPaneTransparent:"bg-transparent shadow-none",layoutSplitRoot:"grid min-h-0 min-w-0 overflow-hidden",layoutSplitHorizontal:"grid-flow-col",layoutSplitVertical:"grid-flow-row",layoutSplitPane:"min-h-0 min-w-0 overflow-hidden",layoutSplitPrimary:"",layoutSplitSecondary:"",layoutResizeHandle:p("group/resize relative z-10 flex shrink-0 items-center justify-center bg-transparent text-muted-foreground hover:bg-border/60 active:bg-border/70 focus-visible:bg-border/60 focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-primary/30",ot),layoutResizeHandleHorizontal:"w-2 cursor-col-resize",layoutResizeHandleVertical:"h-2 cursor-row-resize",layoutResizeHandleDisabled:"cursor-default opacity-60",layoutResizeHandleIndicator:"rounded-full bg-muted-foreground/45 group-hover/resize:bg-primary/70"},za={compact:{buttonBase:"h-8 px-2.5 text-xs",buttonIconOnly:"h-8 w-8 px-0",badgeBase:"px-1.5 py-0 text-xs",panelHeader:"p-token-md",panelBody:"px-token-md pb-token-md text-xs",panelBodyStandalone:"pt-token-md",panelFooter:"px-token-md py-token-md",stateRoot:"min-h-36 px-4 py-7",stateIcon:"mb-3 h-10 w-10",fieldRoot:"gap-token-sm",fieldLabel:"text-xs",fieldDescription:"text-xs leading-5",fieldMessage:"text-xs leading-5",controlInput:"h-8 text-xs",controlTextarea:"min-h-20 text-xs",controlSelect:"h-8 text-xs",selectMenu:"text-xs",selectOption:"min-h-7 px-2 py-1 text-xs",switchTrack:"h-5 w-9",switchThumb:"h-3.5 w-3.5",checkboxBox:"h-3.5 w-3.5",checkboxLabel:"text-xs",checkboxDescription:"text-xs leading-5",radioOption:"px-2 py-1.5 text-xs",radioMarker:"h-3.5 w-3.5",radioIndicator:"h-1.5 w-1.5",radioLabel:"text-xs",radioDescription:"text-xs leading-5",dialogPanel:"max-w-md",dialogHeader:"px-4 py-3",dialogTitle:"text-sm leading-5",dialogDescription:"text-xs leading-5",dialogBody:"px-4 py-3 text-xs",dialogFooter:"px-4 py-3",dropdownMenu:"min-w-44 text-xs",dropdownItem:"px-2 py-1.5 text-xs",tooltipContent:"text-xs leading-4",noticeBase:"px-3 py-2 text-xs",dividerLabel:"text-xs",sectionHeaderRoot:"gap-token-sm",sectionHeaderTitle:"text-sm leading-5",sectionHeaderDescription:"text-xs leading-5",tabsList:"gap-token-xs p-token-xs",tabsTrigger:"px-2 py-1 text-xs",tabsPanel:"p-3 text-xs",segmentedRoot:"gap-token-xs p-token-xs",segmentedItem:"px-2 py-1 text-xs",progressTrack:"h-1.5",avatarRoot:"text-xs",toolbarRoot:"gap-token-sm px-token-md py-token-md",toolbarTitle:"text-xs",toolbarDescription:"text-xs leading-5",paginationButton:"h-7 min-w-7 px-2 text-xs",paginationPage:"h-7 min-w-7 px-2 text-xs",descriptionListRoot:"gap-2 text-xs",descriptionListItem:"px-2 py-1.5",descriptionListTerm:"text-xs",descriptionListValue:"text-xs leading-5",accordionTrigger:"px-3 py-2 text-xs",accordionPanel:"px-3 py-2 text-xs leading-5",menuContent:"min-w-40 p-0.5 text-xs",menuSubContent:"min-w-36 p-0.5 text-xs",menuLabel:"px-2 py-1 text-xs",menuItem:"min-h-7 px-2 py-1 text-xs",menuSubTrigger:"min-h-7 px-2 py-1 text-xs",menuItemShortcut:"text-xs",tableContainer:"[--base-table-header-height:2.25rem]",tableHead:"h-9 px-2 py-1.5 text-xs",tableCell:"px-2 py-1.5 text-xs",tableHeadLabel:"text-xs",tableHeadDescription:"text-xs leading-3",tableLoadingCell:"px-2 py-1.5",layoutRoot:"gap-token-md p-token-md",layoutBody:"gap-token-md",layoutPane:"rounded-md text-xs",layoutResizeHandleHorizontal:"w-1.5",layoutResizeHandleVertical:"h-1.5"},default:{buttonBase:"h-9"},comfortable:{buttonBase:"h-10 px-3.5",buttonIconOnly:"h-10 w-10 px-0",badgeBase:"px-2.5 py-1",panelHeader:"p-token-xl",panelBody:"px-token-xl pb-token-xl",panelBodyStandalone:"pt-token-xl",panelFooter:"px-token-xl py-token-lg",stateRoot:"min-h-56 px-8 py-12",stateIcon:"mb-5 h-14 w-14",fieldRoot:"gap-token-md",controlInput:"h-10",controlTextarea:"min-h-28",controlSelect:"h-10",selectMenu:"p-1.5",selectOption:"min-h-9 px-3 py-2",switchTrack:"h-7 w-12",switchThumb:"h-5 w-5",checkboxBox:"h-5 w-5",radioOption:"px-4 py-3",radioMarker:"h-5 w-5",radioIndicator:"h-2.5 w-2.5",dialogPanel:"max-w-xl",dialogHeader:"px-6 py-5",dialogBody:"px-6 py-5",dialogFooter:"px-6 py-5",dropdownMenu:"min-w-56",dropdownItem:"px-3 py-2.5",noticeBase:"px-5 py-4",sectionHeaderTitle:"text-lg leading-7",tabsTrigger:"px-3.5 py-2",tabsPanel:"p-5",segmentedItem:"px-3.5 py-2",progressTrack:"h-2.5",toolbarRoot:"px-token-xl py-token-lg",paginationButton:"h-9 min-w-9 px-3",paginationPage:"h-9 min-w-9 px-3",descriptionListItem:"px-4 py-3",accordionTrigger:"px-5 py-4",accordionPanel:"px-5 py-4",menuContent:"min-w-48 p-1.5",menuSubContent:"min-w-44 p-1.5",menuItem:"min-h-9 px-3 py-2",menuSubTrigger:"min-h-9 px-3 py-2",tableContainer:"[--base-table-header-height:3rem]",tableHead:"h-12 px-4 py-3",tableCell:"px-4 py-3",tableLoadingCell:"px-4 py-3",layoutRoot:"gap-token-lg p-token-lg",layoutBody:"gap-token-lg",layoutPane:"rounded-xl",layoutResizeHandleHorizontal:"w-2.5",layoutResizeHandleVertical:"h-2.5"}},Wa={none:{buttonBase:"rounded-none",badgeBase:"rounded-none",panelRoot:"rounded-none",stateRoot:"rounded-none",stateIcon:"rounded-none",controlWrapper:"rounded-none",selectMenu:"rounded-none",selectOption:"rounded-none",switchTrack:"rounded-none",switchThumb:"rounded-none",checkboxBox:"rounded-none",radioOption:"rounded-none",dialogPanel:"rounded-none",dialogClose:"rounded-none",dropdownMenu:"rounded-none",dropdownItem:"rounded-none",tooltipContent:"rounded-none",noticeBase:"rounded-none",tabsList:"rounded-none",tabsTrigger:"rounded-none",tabsPanel:"rounded-none",segmentedRoot:"rounded-none",segmentedItem:"rounded-none",progressTrack:"rounded-none",progressIndicator:"rounded-none",skeletonRoot:"rounded-none",avatarRoot:"rounded-none",avatarStatus:"rounded-none",toolbarRoot:"rounded-none",paginationButton:"rounded-none",paginationPage:"rounded-none",descriptionListItem:"rounded-none",accordionItem:"rounded-none",menuContent:"rounded-none",menuItem:"rounded-none",menuSubTrigger:"rounded-none",menuSubContent:"rounded-none",tableContainer:"rounded-none",tableEmptyIcon:"rounded-none",tableLoadingSkeleton:"rounded-none",layoutRoot:"rounded-none",layoutPane:"rounded-none"},sm:{buttonBase:"rounded-sm",badgeBase:"rounded-sm",panelRoot:"rounded-sm",stateRoot:"rounded-sm",stateIcon:"rounded-sm",controlWrapper:"rounded-sm",selectMenu:"rounded-sm",selectOption:"rounded-sm",switchTrack:"rounded-sm",switchThumb:"rounded-sm",checkboxBox:"rounded-sm",radioOption:"rounded-sm",dialogPanel:"rounded-sm",dialogClose:"rounded-sm",dropdownMenu:"rounded-sm",dropdownItem:"rounded-sm",tooltipContent:"rounded-sm",noticeBase:"rounded-sm",tabsList:"rounded-sm",tabsTrigger:"rounded-sm",tabsPanel:"rounded-sm",segmentedRoot:"rounded-sm",segmentedItem:"rounded-sm",progressTrack:"rounded-sm",progressIndicator:"rounded-sm",skeletonRoot:"rounded-sm",avatarRoot:"rounded-sm",avatarStatus:"rounded-sm",toolbarRoot:"rounded-sm",paginationButton:"rounded-sm",paginationPage:"rounded-sm",descriptionListItem:"rounded-sm",accordionItem:"rounded-sm",menuContent:"rounded-sm",menuItem:"rounded-sm",menuSubTrigger:"rounded-sm",menuSubContent:"rounded-sm",tableContainer:"rounded-sm",tableEmptyIcon:"rounded-sm",tableLoadingSkeleton:"rounded-sm",layoutRoot:"rounded-sm",layoutPane:"rounded-sm"},md:{},lg:{buttonBase:"rounded-lg",badgeBase:"rounded-lg",panelRoot:"rounded-xl",stateRoot:"rounded-xl",stateIcon:"rounded-xl",controlWrapper:"rounded-lg",selectMenu:"rounded-lg",selectOption:"rounded-md",switchTrack:"rounded-full",switchThumb:"rounded-full",checkboxBox:"rounded-md",radioOption:"rounded-xl",dialogPanel:"rounded-xl",dialogClose:"rounded-lg",dropdownMenu:"rounded-lg",dropdownItem:"rounded-md",tooltipContent:"rounded-md",noticeBase:"rounded-xl",tabsList:"rounded-xl",tabsTrigger:"rounded-lg",tabsPanel:"rounded-xl",segmentedRoot:"rounded-xl",segmentedItem:"rounded-lg",skeletonRoot:"rounded-lg",toolbarRoot:"rounded-xl",descriptionListItem:"rounded-lg",accordionItem:"rounded-xl",menuContent:"rounded-lg",menuItem:"rounded-md",menuSubTrigger:"rounded-md",menuSubContent:"rounded-lg",tableContainer:"rounded-xl",tableEmptyIcon:"rounded-xl",tableLoadingSkeleton:"rounded-lg",layoutRoot:"rounded-xl",layoutPane:"rounded-xl"},xl:{buttonBase:"rounded-xl",badgeBase:"rounded-xl",panelRoot:"rounded-2xl",stateRoot:"rounded-2xl",stateIcon:"rounded-2xl",controlWrapper:"rounded-xl",selectMenu:"rounded-xl",selectOption:"rounded-lg",switchTrack:"rounded-full",switchThumb:"rounded-full",checkboxBox:"rounded-lg",radioOption:"rounded-2xl",dialogPanel:"rounded-2xl",dialogClose:"rounded-xl",dropdownMenu:"rounded-xl",dropdownItem:"rounded-lg",tooltipContent:"rounded-lg",noticeBase:"rounded-2xl",tabsList:"rounded-2xl",tabsTrigger:"rounded-xl",tabsPanel:"rounded-2xl",segmentedRoot:"rounded-2xl",segmentedItem:"rounded-xl",skeletonRoot:"rounded-xl",toolbarRoot:"rounded-2xl",paginationButton:"rounded-xl",paginationPage:"rounded-xl",descriptionListItem:"rounded-xl",accordionItem:"rounded-2xl",menuContent:"rounded-xl",menuItem:"rounded-lg",menuSubTrigger:"rounded-lg",menuSubContent:"rounded-xl",tableContainer:"rounded-2xl",tableEmptyIcon:"rounded-2xl",tableLoadingSkeleton:"rounded-xl",layoutRoot:"rounded-2xl",layoutPane:"rounded-2xl"},full:{buttonBase:"rounded-full",badgeBase:"rounded-full",panelRoot:"rounded-2xl",stateRoot:"rounded-2xl",stateIcon:"rounded-full",controlWrapper:"rounded-full",selectMenu:"rounded-2xl",selectOption:"rounded-full",switchTrack:"rounded-full",switchThumb:"rounded-full",checkboxBox:"rounded-full",radioOption:"rounded-2xl",dialogPanel:"rounded-2xl",dialogClose:"rounded-full",dropdownMenu:"rounded-2xl",dropdownItem:"rounded-full",tooltipContent:"rounded-full",noticeBase:"rounded-2xl",tabsList:"rounded-full",tabsTrigger:"rounded-full",tabsPanel:"rounded-2xl",segmentedRoot:"rounded-full",segmentedItem:"rounded-full",progressTrack:"rounded-full",progressIndicator:"rounded-full",skeletonRoot:"rounded-full",avatarRoot:"rounded-full",avatarStatus:"rounded-full",toolbarRoot:"rounded-2xl",paginationButton:"rounded-full",paginationPage:"rounded-full",descriptionListItem:"rounded-2xl",accordionItem:"rounded-2xl",menuContent:"rounded-2xl",menuItem:"rounded-full",menuSubTrigger:"rounded-full",menuSubContent:"rounded-2xl",tableContainer:"rounded-2xl",tableEmptyIcon:"rounded-full",tableLoadingSkeleton:"rounded-full",layoutRoot:"rounded-2xl",layoutPane:"rounded-2xl"}},ja={none:{buttonBase:"border-transparent",badgeBase:"border-transparent",panelRoot:"border-transparent",panelFooter:"border-transparent",stateRoot:"border-transparent",controlWrapper:"border-transparent",selectMenu:"border-transparent",switchTrack:"border-transparent",checkboxBox:"border-transparent",radioOption:"border-transparent",radioMarker:"border-transparent",dialogPanel:"border-transparent",dialogHeader:"border-transparent",dialogFooter:"border-transparent",dropdownMenu:"border-transparent",tooltipContent:"border-transparent",noticeBase:"border-transparent",dividerRoot:"border-transparent",tabsList:"border-transparent",tabsPanel:"border-transparent",segmentedRoot:"border-transparent",avatarRoot:"border-transparent",toolbarRoot:"border-transparent",paginationButton:"border-transparent",descriptionListItem:"border-transparent",accordionItem:"border-transparent",accordionPanel:"border-transparent",menuContent:"border-transparent",menuSeparator:"bg-transparent",menuSubContent:"border-transparent",tableContainer:"border-transparent [--base-table-header-separator:transparent]",tableHeader:"border-transparent",tableFooter:"[&_tr>*]:border-transparent",tableFooterBar:"border-transparent",tableFooterBarAttached:"border-t border-transparent",tableRow:"[&>*]:border-transparent",tableEmptyRow:"[&>*]:border-transparent",tableLoadingRow:"[&>*]:border-transparent",layoutRoot:"border-transparent",layoutPaneBordered:"border-transparent",layoutResizeHandle:"bg-transparent hover:bg-transparent active:bg-transparent focus-visible:bg-transparent"},subtle:{buttonDefault:"border-border/60",badgeDefault:"border-border/60",panelRoot:"border-border/60",panelFooter:"border-border/60",stateRoot:"border-border/60",controlWrapper:"border-border/60",selectMenu:"border-border/60",switchTrack:"border-border/60",checkboxBox:"border-border/60",radioOption:"border-border/60",radioMarker:"border-border/60",dialogPanel:"border-border/60",dialogHeader:"border-border/60",dialogFooter:"border-border/60",dropdownMenu:"border-border/60",tooltipContent:"border-border/60",noticeDefault:"border-border/60",dividerRoot:"border-border/60",tabsList:"border-border/60",tabsPanel:"border-border/60",segmentedRoot:"border-border/60",avatarRoot:"border-border/60",toolbarRoot:"border-border/60",paginationButton:"border-border/60",descriptionListItem:"border-border/60",accordionItem:"border-border/60",accordionPanel:"border-border/60",menuContent:"border-border/60",menuSeparator:"bg-border/60",menuSubContent:"border-border/60",tableContainer:"border-border/60 [--base-table-header-separator:hsl(var(--border)_/_0.6)]",tableHeader:"border-border/60",tableFooter:"[&_tr>*]:border-border/60",tableFooterBar:"border-border/60",tableFooterBarAttached:"border-t border-border/60",tableRow:"[&>*]:border-border/50",tableEmptyRow:"[&>*]:border-border/50",tableLoadingRow:"[&>*]:border-border/50",layoutRoot:"border-border/60",layoutPaneBordered:"border-border/60"},solid:{},strong:{buttonDefault:"border-foreground/20",badgeDefault:"border-foreground/20",panelRoot:"border-foreground/20",panelFooter:"border-foreground/20",stateRoot:"border-foreground/20",controlWrapper:"border-foreground/20",selectMenu:"border-foreground/20",switchTrack:"border-foreground/20",checkboxBox:"border-foreground/20",radioOption:"border-foreground/20",radioMarker:"border-foreground/20",dialogPanel:"border-foreground/20",dialogHeader:"border-foreground/15",dialogFooter:"border-foreground/15",dropdownMenu:"border-foreground/20",tooltipContent:"border-foreground/20",noticeDefault:"border-foreground/20",dividerRoot:"border-foreground/20",tabsList:"border-foreground/20",tabsPanel:"border-foreground/20",segmentedRoot:"border-foreground/20",avatarRoot:"border-foreground/20",toolbarRoot:"border-foreground/20",paginationButton:"border-foreground/20",descriptionListItem:"border-foreground/20",accordionItem:"border-foreground/20",accordionPanel:"border-foreground/20",menuContent:"border-foreground/20",menuSeparator:"bg-foreground/15",menuSubContent:"border-foreground/20",tableContainer:"border-foreground/20 [--base-table-header-separator:hsl(var(--foreground)_/_0.15)]",tableHeader:"border-foreground/20",tableFooter:"[&_tr>*]:border-foreground/20",tableFooterBar:"border-foreground/20",tableFooterBarAttached:"border-t border-foreground/20",tableRow:"[&>*]:border-foreground/15",tableEmptyRow:"[&>*]:border-foreground/15",tableLoadingRow:"[&>*]:border-foreground/15",layoutRoot:"border-foreground/20",layoutPaneBordered:"border-foreground/20",layoutResizeHandle:"hover:bg-foreground/15 active:bg-foreground/20 focus-visible:bg-foreground/15"}},Ga={plain:{},muted:{buttonDefault:"bg-muted/20 hover:bg-muted/45",panelRoot:"bg-card",panelFooter:"bg-muted/20",stateRoot:"bg-muted/20",controlWrapper:"bg-background",selectMenu:"bg-background",selectOptionActive:"bg-muted/70 text-foreground",checkboxBox:"bg-background",radioOption:"bg-card hover:bg-muted/45",radioMarker:"bg-background",dialogPanel:"bg-card",dropdownMenu:"bg-background",dropdownItem:"hover:bg-muted/60",tooltipContent:"bg-popover",noticeDefault:"bg-muted/20",tabsList:"bg-muted/35",tabsTriggerActive:"bg-background",tabsPanel:"bg-card",segmentedRoot:"bg-muted/35",segmentedItemActive:"bg-background",progressTrack:"bg-muted/60",skeletonRoot:"bg-muted",toolbarRoot:"bg-card",paginationButton:"bg-background hover:bg-muted/60",paginationPage:"bg-muted/60",descriptionListItem:"bg-card",accordionItem:"bg-card",menuContent:"bg-background",menuItem:"focus:bg-muted/70 data-[highlighted]:bg-muted/70",menuSubTrigger:"focus:bg-muted/70 data-[highlighted]:bg-muted/70 data-[state=open]:bg-muted/70",menuSubContent:"bg-background",tableContainer:"bg-background/95 [scrollbar-gutter:stable]",tableFooter:"bg-muted/35",tableFooterBar:"bg-muted/30 shadow-none",tableRowInteractive:"cursor-pointer [--base-table-row-hover-bg:hsl(var(--muted)_/_0.45)]",tableLoadingSkeleton:"bg-muted",layoutRoot:"bg-card",layoutPane:"bg-card",layoutPaneMuted:"bg-muted/35",layoutResizeHandle:"hover:bg-border/70 active:bg-border/80 focus-visible:bg-border/70"},soft:{buttonDefault:"bg-muted/30 hover:bg-muted/55",panelRoot:"bg-background/95 shadow-sm",stateRoot:"bg-background/95 shadow-sm",controlWrapper:"bg-background/95",selectMenu:"bg-background/95 shadow-xl",selectOptionActive:"bg-muted/60 text-foreground",checkboxBox:"bg-background/95",radioOption:"bg-background/95 shadow-sm hover:bg-muted/35",radioMarker:"bg-background/95",dialogPanel:"bg-background/95 shadow-xl",dropdownMenu:"bg-background/95 shadow-xl",dropdownItem:"hover:bg-muted/55",tooltipContent:"bg-popover shadow-xl",noticeDefault:"bg-background/95 shadow-sm",tabsList:"bg-background/60 shadow-sm",tabsTriggerActive:"bg-background",tabsPanel:"bg-background/95 shadow-sm",segmentedRoot:"bg-background/60 shadow-sm",segmentedItemActive:"bg-background",skeletonRoot:"bg-background/80",toolbarRoot:"bg-background/95 shadow-sm",paginationButton:"bg-background/95 hover:bg-muted/55",descriptionListItem:"bg-background/95 shadow-sm",accordionItem:"bg-background/95 shadow-sm",menuContent:"bg-background/95 shadow-xl",menuItem:"focus:bg-muted/60 data-[highlighted]:bg-muted/60",menuSubTrigger:"focus:bg-muted/60 data-[highlighted]:bg-muted/60 data-[state=open]:bg-muted/60",menuSubContent:"bg-background/95 shadow-xl",tableContainer:"bg-background/95 shadow-sm [scrollbar-gutter:stable]",tableFooter:"bg-muted/25",tableFooterBar:"bg-muted/25 shadow-none",tableRowInteractive:"cursor-pointer [--base-table-row-hover-bg:hsl(var(--muted)_/_0.35)]",tableLoadingSkeleton:"bg-muted/65",layoutRoot:"bg-background/95 shadow-sm",layoutPane:"bg-background/95 shadow-sm",layoutPaneSoft:"bg-background/95 shadow-md"},glass:{buttonBase:"backdrop-blur-md",buttonDefault:"border-white/10 bg-white/[0.08] text-foreground hover:bg-white/[0.14]",badgeDefault:"border-white/10 bg-white/[0.08] text-foreground",panelRoot:"border-white/10 bg-white/[0.06] shadow-none backdrop-blur-md",panelFooter:"border-white/10 bg-white/[0.05]",stateRoot:"border-white/10 bg-white/[0.06] shadow-none backdrop-blur-md",stateIcon:"bg-white/10 text-foreground",controlWrapper:"border-white/10 bg-white/[0.08] text-foreground backdrop-blur-md",selectMenu:"border-foreground/10 bg-background/10 text-foreground shadow-[0_18px_60px_hsl(var(--foreground)/0.18)] backdrop-blur-md",selectOption:"text-foreground",selectOptionActive:"bg-white/[0.14] text-foreground",selectOptionSelected:"bg-white/[0.18] text-foreground",switchTrack:"border-white/10 bg-white/[0.12] backdrop-blur-md",checkboxBox:"border-white/10 bg-white/[0.08] backdrop-blur-md",checkboxBoxChecked:"border-white/20 bg-white/[0.22] text-foreground",radioOption:"border-white/10 bg-white/[0.06] backdrop-blur-md hover:bg-white/[0.10]",radioMarker:"border-white/10 bg-white/[0.08] backdrop-blur-md",radioMarkerChecked:"border-white/25 bg-white/[0.16]",dialogOverlay:"bg-background/45 backdrop-blur-md",dialogPanel:"border-white/10 bg-white/[0.08] shadow-2xl backdrop-blur-md",dialogHeader:"border-white/10",dialogFooter:"border-white/10",dropdownMenu:"border-foreground/10 bg-background/10 text-foreground shadow-[0_18px_60px_hsl(var(--foreground)/0.18)] backdrop-blur-md",dropdownItem:"text-foreground hover:bg-white/[0.14]",tooltipContent:"border-foreground/10 bg-background/15 text-foreground shadow-[0_18px_60px_hsl(var(--foreground)/0.18)] backdrop-blur-md",noticeDefault:"border-white/10 bg-white/[0.08] text-foreground backdrop-blur-md",dividerRoot:"border-white/15",tabsList:"border-white/10 bg-white/[0.08] backdrop-blur-md",tabsTrigger:"text-muted-foreground hover:bg-white/[0.12] hover:text-foreground",tabsTriggerActive:"bg-white/[0.16] text-foreground shadow-none",tabsPanel:"border-white/10 bg-white/[0.06] shadow-none backdrop-blur-md",segmentedRoot:"border-white/10 bg-white/[0.08] backdrop-blur-md",segmentedItem:"text-muted-foreground hover:bg-white/[0.12] hover:text-foreground",segmentedItemActive:"bg-white/[0.16] text-foreground shadow-none",progressTrack:"bg-white/[0.12]",skeletonRoot:"bg-white/[0.16]",avatarRoot:"border-white/10 bg-white/[0.12] text-foreground",avatarFallback:"bg-white/[0.12] text-foreground",avatarStatus:"border-background",toolbarRoot:"border-white/10 bg-white/[0.06] shadow-none backdrop-blur-md",paginationButton:"border-white/10 bg-white/[0.08] text-foreground hover:bg-white/[0.14]",paginationPage:"bg-white/[0.12] text-foreground",descriptionListItem:"border-white/10 bg-white/[0.06] shadow-none backdrop-blur-md",accordionItem:"border-white/10 bg-white/[0.06] shadow-none backdrop-blur-md",accordionPanel:"border-white/10",menuContent:"border-foreground/10 bg-background/10 text-foreground shadow-[0_18px_60px_hsl(var(--foreground)/0.18)] backdrop-blur-md",menuSeparator:"bg-white/10",menuItem:"text-foreground focus:bg-white/[0.14] focus:text-foreground data-[highlighted]:bg-white/[0.14] data-[highlighted]:text-foreground",menuSubTrigger:"text-foreground focus:bg-white/[0.14] focus:text-foreground data-[highlighted]:bg-white/[0.14] data-[highlighted]:text-foreground data-[state=open]:bg-white/[0.16]",menuSubContent:"border-foreground/10 bg-background/10 text-foreground shadow-[0_18px_60px_hsl(var(--foreground)/0.18)] backdrop-blur-md",tableContainer:"border-foreground/10 bg-background/[0.06] shadow-none backdrop-blur-md [scrollbar-gutter:stable] [--base-table-sticky-header-bg:hsl(var(--background)/0.94)] [--base-table-header-separator:hsl(var(--foreground)/0.24)]",tableHeader:"border-white/10",tableFooter:"bg-white/[0.05] [&_tr>*]:border-white/10",tableFooterBar:"border-white/10 bg-white/[0.05] shadow-none backdrop-blur-md",tableFooterBarAttached:"border-t border-white/10",tableRow:"[&>*]:border-white/10",tableRowInteractive:"cursor-pointer [--base-table-row-hover-bg:hsl(var(--foreground)/0.08)]",tableHeadLabel:"text-foreground",tableLoadingSkeleton:"bg-white/[0.16]",layoutRoot:"border-white/10 bg-white/[0.05] shadow-none backdrop-blur-md",layoutPane:"border-white/10 bg-white/[0.06] shadow-none backdrop-blur-md",layoutPaneMuted:"bg-white/[0.08]",layoutPaneSoft:"bg-white/[0.10] shadow-none backdrop-blur-md",layoutResizeHandle:"text-foreground/65 hover:bg-white/10 active:bg-white/15 focus-visible:bg-white/10",layoutResizeHandleIndicator:"bg-white/45 group-hover/resize:bg-white/75"},dark:{buttonBase:"border-white/15 text-white shadow-lg backdrop-blur",buttonDefault:"bg-black/30 hover:bg-black/[0.45]",buttonPrimary:"border-white/25 bg-white/20 text-white hover:bg-white/25",buttonMuted:"border-white/10 bg-black/20 text-white/70 hover:bg-black/[0.35] hover:text-white",badgeDefault:"border-white/10 bg-white/[0.08] text-white",badgeMuted:"border-white/10 bg-black/20 text-white/70",panelRoot:"border-white/10 bg-slate-950 text-white shadow-none",panelTitle:"text-white",panelDescription:"text-white/65",panelBody:"text-white/85",panelFooter:"border-white/10 bg-white/[0.04]",stateRoot:"border-white/10 bg-slate-950 text-white shadow-none",stateIcon:"bg-white/10 text-white/75",stateTitle:"text-white",stateDescription:"text-white/65",fieldLabel:"text-white",fieldDescription:"text-white/65",fieldMessage:"text-white/65",controlWrapper:"border-white/15 bg-black/30 text-white shadow-lg backdrop-blur focus-within:border-white/35",controlBase:"text-white placeholder:text-white/45",selectChevron:"text-white/65",selectMenu:"border-white/15 bg-slate-950 text-white shadow-2xl",selectOption:"text-white",selectOptionActive:"bg-white/[0.12] text-white",selectOptionSelected:"bg-white/[0.16] text-white",selectPlaceholder:"text-white/45",switchTrack:"border-white/15 bg-black/30 shadow-lg backdrop-blur",switchChecked:"border-white/25 bg-white/25 text-white",switchLabel:"text-white",switchDescription:"text-white/65",checkboxBox:"border-white/15 bg-black/30 text-white shadow-lg backdrop-blur",checkboxBoxChecked:"border-white/25 bg-white/25 text-white",checkboxLabel:"text-white",checkboxDescription:"text-white/65",radioOption:"border-white/10 bg-white/[0.06] text-white hover:bg-white/[0.08]",radioMarker:"border-white/15 bg-black/30 text-white shadow-lg backdrop-blur",radioMarkerChecked:"border-white/25 bg-white/25",radioIndicator:"bg-white",radioLabel:"text-white",radioDescription:"text-white/65",dialogOverlay:"bg-slate-950/75",dialogPanel:"border-white/10 bg-slate-950 text-white shadow-2xl",dialogHeader:"border-white/10",dialogTitle:"text-white",dialogDescription:"text-white/65",dialogBody:"text-white/85",dialogFooter:"border-white/10",dialogClose:"text-white/65 hover:bg-white/[0.08] hover:text-white",dropdownMenu:"border-white/15 bg-slate-950 text-white shadow-2xl",dropdownLabel:"text-white/55",dropdownSeparator:"bg-white/15",dropdownItem:"text-white hover:bg-white/[0.10]",dropdownItemDescription:"text-white/55",dropdownItemShortcut:"text-white/55",tooltipContent:"border-white/15 bg-slate-950 text-white shadow-2xl",noticeDefault:"border-white/10 bg-white/[0.08] text-white",noticeMuted:"border-white/10 bg-black/20 text-white/70",dividerRoot:"border-white/15",dividerLabel:"text-white/55",sectionHeaderEyebrow:"text-white/55",sectionHeaderTitle:"text-white",sectionHeaderDescription:"text-white/65",tabsList:"border-white/10 bg-white/[0.08]",tabsTrigger:"text-white/65 hover:bg-white/[0.12] hover:text-white",tabsTriggerActive:"bg-white/[0.16] text-white shadow-none",tabsPanel:"border-white/10 bg-white/[0.06] text-white",segmentedRoot:"border-white/10 bg-white/[0.08]",segmentedItem:"text-white/65 hover:bg-white/[0.12] hover:text-white",segmentedItemActive:"bg-white/[0.16] text-white shadow-none",progressTrack:"bg-white/[0.12]",progressLabel:"text-white",progressValue:"text-white/65",skeletonRoot:"bg-white/[0.14]",avatarRoot:"border-white/15 bg-white/[0.10] text-white",avatarFallback:"bg-white/[0.10] text-white/75",avatarText:"text-white",avatarStatus:"border-slate-950",toolbarRoot:"border-white/10 bg-white/[0.06] text-white",toolbarTitle:"text-white",toolbarDescription:"text-white/65",breadcrumbLink:"text-white/65 hover:text-white",breadcrumbCurrent:"text-white",breadcrumbSeparator:"text-white/45",paginationInfo:"text-white/65",paginationButton:"border-white/10 bg-white/[0.08] text-white hover:bg-white/[0.14]",paginationPage:"bg-white/[0.14] text-white",descriptionListItem:"border-white/10 bg-white/[0.06]",descriptionListTerm:"text-white/55",descriptionListValue:"text-white",accordionItem:"border-white/10 bg-white/[0.06]",accordionTrigger:"text-white hover:bg-white/[0.08]",accordionPanel:"border-white/10 text-white/70",tableContainer:"border-foreground/10 bg-background text-foreground shadow-none [scrollbar-gutter:stable] [--base-table-sticky-header-bg:hsl(var(--background)/0.98)] [--base-table-header-separator:hsl(var(--foreground)/0.16)]",tableRoot:"text-white",tableHeader:"border-white/10",tableFooter:"bg-white/[0.05] [&_tr>*]:border-white/10",tableFooterBar:"border-white/10 bg-white/[0.05] text-white/65",tableFooterBarAttached:"border-t border-white/10",tableRow:"[&>*]:border-white/10",tableRowInteractive:"cursor-pointer [--base-table-row-hover-bg:hsl(var(--foreground)/0.06)]",tableHead:"text-white/65",tableHeadLabel:"text-white",tableHeadDescription:"text-white/55",tableHeadMeta:"text-white/55",tableHeadIcon:"text-white/55",tableHeadSortIcon:"text-white/55",tableHeadDragHandle:"text-white/55 hover:bg-white/[0.08]",tableHeadResizeHandle:"after:bg-white/20 hover:after:bg-white/60",tableCell:"text-white/85",tableEmptyIcon:"bg-white/10 text-white/65",tableEmptyTitle:"text-white",tableEmptyDescription:"text-white/60",menuContent:"border-white/10 bg-slate-950 text-white shadow-2xl",menuLabel:"text-white/55",menuSeparator:"bg-white/10",menuItem:"text-white focus:bg-white/[0.10] focus:text-white data-[highlighted]:bg-white/[0.10] data-[highlighted]:text-white",menuItemDefault:"text-white",menuItemPrimary:"text-primary focus:text-primary data-[highlighted]:text-primary",menuItemSuccess:"text-[hsl(var(--success,142_69%_58%))] focus:text-[hsl(var(--success,142_69%_58%))] data-[highlighted]:text-[hsl(var(--success,142_69%_58%))]",menuItemWarning:"text-[hsl(var(--warning-foreground,53_98%_77%))] focus:text-[hsl(var(--warning-foreground,53_98%_77%))] data-[highlighted]:text-[hsl(var(--warning-foreground,53_98%_77%))]",menuItemDanger:"text-destructive-text focus:text-destructive-text data-[highlighted]:text-destructive-text",menuItemMuted:"text-white/65 focus:text-white data-[highlighted]:text-white",menuItemShortcut:"text-white/45",menuSubTrigger:"text-white focus:bg-white/[0.10] focus:text-white data-[highlighted]:bg-white/[0.10] data-[highlighted]:text-white data-[state=open]:bg-white/[0.12]",menuSubTriggerIcon:"text-white/55",menuSubContent:"border-white/10 bg-slate-950 text-white shadow-2xl",tableLoadingSkeleton:"bg-white/[0.14]",layoutRoot:"border-white/10 bg-slate-950 text-white shadow-none",layoutPane:"border-white/10 bg-slate-950 text-white shadow-none",layoutPaneMuted:"bg-white/[0.06]",layoutPaneSoft:"bg-white/[0.08] shadow-none",layoutResizeHandle:"text-white/65 hover:bg-white/10 active:bg-white/15 focus-visible:bg-white/10",layoutResizeHandleIndicator:"bg-white/45 group-hover/resize:bg-white/75"}},Hr={default:{density:"default",radius:"md",border:"solid",background:"plain"},soft:{density:"default",radius:"lg",border:"subtle",background:"soft"},compact:{density:"compact",radius:"md",border:"subtle",background:"muted"},"tinted-glass":{density:"default",radius:"lg",border:"subtle",background:"glass"},glass:{density:"default",radius:"xl",border:"subtle",background:"glass"},"hard-edge":{density:"compact",radius:"none",border:"strong",background:"plain"}},$a={soft:{buttonBase:"font-medium",panelRoot:"border-border/70",controlWrapper:"font-medium",tabsTrigger:"font-medium",segmentedItem:"font-medium",toolbarRoot:"border-border/70",tableContainer:"border-border/70",tableFooterBar:"border-border/70",tableHeadLabel:"font-semibold",menuItemLabel:"font-medium"},compact:{buttonBase:"text-xs",badgeBase:"text-xs",fieldLabel:"text-xs",controlBase:"text-xs",selectOption:"text-xs",menuItem:"text-xs",menuSubTrigger:"text-xs",noticeBase:"text-xs",sectionHeaderTitle:"text-sm",tabsTrigger:"text-xs",segmentedItem:"text-xs",toolbarTitle:"text-xs",paginationRoot:"text-xs"},"tinted-glass":{buttonPrimary:"border-primary/25 bg-primary/15 text-primary-foreground hover:bg-primary/20",badgePrimary:"border-primary/25 bg-primary/15 text-primary-foreground",noticePrimary:"border-primary/25 bg-primary/15 text-primary-foreground",progressIndicator:"bg-primary",avatarStatus:"border-background"},glass:{panelRoot:"shadow-[0_24px_80px_hsl(var(--foreground)/0.12)]",stateRoot:"shadow-[0_24px_80px_hsl(var(--foreground)/0.12)]",noticeBase:"shadow-[0_18px_60px_hsl(var(--foreground)/0.10)]",tabsPanel:"shadow-[0_18px_60px_hsl(var(--foreground)/0.10)]",toolbarRoot:"shadow-[0_18px_60px_hsl(var(--foreground)/0.10)]",descriptionListItem:"shadow-[0_12px_40px_hsl(var(--foreground)/0.08)]",accordionItem:"shadow-[0_12px_40px_hsl(var(--foreground)/0.08)]"},"hard-edge":{buttonBase:"shadow-none",panelRoot:"shadow-none",stateRoot:"shadow-none",controlWrapper:"shadow-none",selectMenu:"shadow-none",menuContent:"shadow-none",menuSubContent:"shadow-none",noticeBase:"shadow-none",tabsList:"shadow-none",tabsTriggerActive:"shadow-none",tabsPanel:"shadow-none",segmentedRoot:"shadow-none",segmentedItemActive:"shadow-none",toolbarRoot:"shadow-none",descriptionListItem:"shadow-none",accordionItem:"shadow-none"}};function Ua(e){return Hr[e]??Hr.default}r(Ua,"getPresetDefaults");var qa=Object.keys(_r),Ka=Lr(qa,p);function Xa(...e){return Object.assign({},...e.filter(Boolean))}r(Xa,"mergeStyles");function ut(e){let t=e?.preset??"default",o=e?.variant??"default",n=Ua(t),i=e?.density??n.density??"default",s=e?.state??"idle",d=e?.radius??n.radius??"md",l=e?.border??n.border??"solid",u=e?.background??n.background??"plain";return {preset:t,variant:o,density:i,state:s,radius:d,border:l,background:u,styles:Xa(Oa,e?.styles),slots:Ka(_r,$a[t],za[i],Wa[d],ja[l],Ga[u],e?.slots)}}r(ut,"resolveBaseAppearance");function Vr(e,t="default",o=false){return p(t==="default"&&e.slots.buttonDefault,t==="primary"&&e.slots.buttonPrimary,t==="success"&&e.slots.buttonSuccess,t==="warning"&&e.slots.buttonWarning,t==="danger"&&e.slots.buttonDanger,t==="muted"&&e.slots.buttonMuted,o&&e.slots.buttonActive)}r(Vr,"getBaseButtonToneClassName");var Ja=new Set(["compact","pages"]);function Or(e,t){return Math.min(Math.max(e,1),Math.max(t,1))}r(Or,"clampPage");function mo(e,t){if(!Number.isSafeInteger(e)||e<1)throw new RangeError(`BasePagination ${t} must be a positive safe integer.`)}r(mo,"assertPositiveInteger");function Go(e,t){if(!Number.isSafeInteger(e)||e<0)throw new RangeError(`BasePagination ${t} must be a non-negative safe integer.`)}r(Go,"assertNonNegativeInteger");function fo(e,t){if(typeof e=="string"&&!e.trim())throw new TypeError(`BasePagination ${t} must be a non-empty string when provided.`)}r(fo,"assertOptionalControlLabel");function Qa(e,t){if(e!==void 0&&(typeof e!="string"||!e.trim()))throw new TypeError("BasePagination aria-label must be a non-empty string when provided.");if(t!==void 0&&(typeof t!="string"||!t.trim()))throw new TypeError("BasePagination aria-labelledby must contain at least one valid ID token.");if(typeof t=="string"&&t.trim().split(/\s+/).some(n=>/[\u0000-\u001f\u007f]/u.test(n)))throw new TypeError("BasePagination aria-labelledby must contain only valid ID tokens.")}r(Qa,"assertAccessibleName");function Mt(e,t){if(typeof e!="string"||!e.trim())throw new TypeError(`BasePagination locale ${t} must resolve to a non-empty string.`);return e}r(Mt,"assertLocaleString");function go(e,t){return Ue(e)?e:t}r(go,"getControlContent");function bo(e,t){return typeof e=="string"&&e.trim()?e:t}r(bo,"getControlAriaLabel");function ei(e,t,o,n){let i=new Set,s=r(u=>{u>=1&&u<=t&&i.add(u);},"addPage");for(let u=0;u<o;u+=1)s(1+u),s(t-u);for(let u=-n;u<=n;u+=1)s(e+u);let d=[...i].sort((u,m)=>u-m),l=[];return d.forEach((u,m)=>{let g=d[m-1];if(g!==void 0){let c=u-g;c===2&&l.push(g+1),c>2&&l.push("ellipsis");}l.push(u);}),l}r(ei,"getPageItems");var Fr=forwardRef(r(function({page:t,defaultPage:o,pageSize:n=20,total:i=0,pageCount:s,hasNext:d,hasPrevious:l,mode:u="compact",siblingCount:m=1,boundaryCount:g=1,label:c,firstLabel:x,previousLabel:P,nextLabel:h,lastLabel:I,appearance:b,className:y,classNames:S,style:D,onPageChange:f,role:N="navigation","aria-label":v,"aria-labelledby":E,...T},w){let L=lt().pagination,O=dt(b),H=je(),B=ut(O),[X,Y]=useState(()=>o??1);if(t!==void 0&&mo(t,"page"),o!==void 0&&mo(o,"defaultPage"),mo(n,"pageSize"),Go(i,"total"),s!==void 0&&mo(s,"pageCount"),Go(m,"siblingCount"),Go(g,"boundaryCount"),!Ja.has(u))throw new TypeError('BasePagination mode must be "compact" or "pages".');if(f!==void 0&&typeof f!="function")throw new TypeError("BasePagination onPageChange must be a function.");fo(x,"firstLabel"),fo(P,"previousLabel"),fo(h,"nextLabel"),fo(I,"lastLabel"),Qa(v,E);let _=Mt(L.navigation,"navigation"),R=Mt(L.first,"first"),re=Mt(L.previous,"previous"),G=Mt(L.next,"next"),te=Mt(L.last,"last"),K=s??Math.max(Math.ceil(i/n),1),Q=t!==void 0,be=!Q&&o!==void 0,M=Or(Q?t:be?X:1,K),z=i>0?(M-1)*n+1:0,U=Math.min(M*n,i),J=l??M>1,ne=d??M<K,W=u==="pages"?ei(M,K,g,m):[],ee=r(se=>{let ie=Or(se,K);ie!==M&&(be&&Y(ie),f?.(ie));},"requestPage"),ae=r((se,ie,ce,F,q)=>jsx("button",{type:"button",disabled:!ce,"aria-label":q,"data-slot":se,className:p(B.slots.paginationButton,!ce&&B.slots.paginationButtonDisabled,S?.button),onClick:()=>ee(ie),children:F}),"renderControl");return jsxs("div",{...H,...T,ref:w,role:N,"aria-label":v??(E===void 0?_:void 0),"aria-labelledby":E,"data-monkeys-component":"pagination","data-slot":"root","data-mode":u,"data-controlled":Q||void 0,"data-uncontrolled":be||void 0,className:p(B.slots.paginationRoot,S?.root,y),style:{...B.styles.pagination,...D},children:[jsx("div",{"aria-live":"polite","data-slot":"info",className:p(B.slots.paginationInfo,S?.info),children:Ue(c)?c:i>0?L.range({start:z,end:U,total:i}):L.emptyResults}),jsxs("div",{"data-slot":"controls",className:p(B.slots.paginationControls,S?.controls),children:[u==="pages"?ae("first",1,J,go(x,R),bo(x,R)):null,ae("previous",M-1,J,go(P,re),bo(P,re)),u==="compact"?jsxs("span",{"aria-current":"page","aria-label":Mt(L.currentPage({page:M,pageCount:K}),"currentPage"),"data-slot":"page","data-page":M,className:p(B.slots.paginationPage,S?.page),children:[M," / ",K]}):W.map((se,ie)=>{if(se==="ellipsis")return jsx("span",{"aria-hidden":"true","data-slot":"ellipsis",className:p(B.slots.paginationEllipsis,S?.ellipsis),children:"\u2026"},`ellipsis-${ie}`);let ce=se===M;return jsx("button",{type:"button","aria-current":ce?"page":void 0,"aria-label":Mt(ce?L.currentPage({page:se,pageCount:K}):L.page({page:se,pageCount:K}),ce?"currentPage":"page"),"data-slot":"page","data-page":se,"data-current":ce||void 0,className:p(B.slots.paginationButton,ce&&B.slots.paginationPage,S?.button,ce&&S?.page),onClick:()=>ee(se),children:se},se)}),ae("next",M+1,ne,go(h,G),bo(h,G)),u==="pages"?ae("last",K,ne,go(I,te),bo(I,te)):null]})]})},"BasePagination"));function ti(){return jsxs("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",className:"ml-1 inline-block h-3 w-3 animate-spin",fill:"none",children:[jsx("circle",{cx:"12",cy:"12",r:"9",className:"opacity-25",stroke:"currentColor",strokeWidth:"3"}),jsx("path",{className:"opacity-75",fill:"currentColor",d:"M12 3a9 9 0 0 1 9 9h-3a6 6 0 0 0-6-6V3Z"})]})}r(ti,"LoadingIcon");function zr({total:e=0,loadedStart:t,loadedEnd:o,selectedCount:n,page:i=1,pageCount:s,pageSize:d=20,pageSizeOptions:l,showTotal:u,showPageSize:m,paginationMode:g,hasNext:c,hasPrevious:x,loading:P=false,totalLabel:h,selectedLabel:I,pageSizeLabel:b,appearance:y,className:S,classNames:D,onPageChange:f,onPageSizeChange:N,onSummaryClick:v,...E}){let T=Er(),w=lt().pagination,L=[...new Set(l??T.pageSizeOptions??[10,20,50,100])].filter(G=>Number.isSafeInteger(G)&&G>0),O=u??T.showTotal??true,H=m??T.showPageSize??true,B=g??T.paginationMode??"auto",X=B==="auto"?e>0?"pages":"compact":B,Y=t!==void 0&&t>0&&o!==void 0&&o>=t,_=O?h??(Y?w.range({start:t,end:o,total:e}):w.range({start:e>0?(i-1)*d+1:0,end:o??0,total:e})):void 0,R=!!f&&(c!==void 0||x!==void 0?!!(c||x||e>d):e>d),re=T.alignment==="end"?"justify-end":T.alignment==="start"?"justify-start":"justify-between";return jsx("div",{...E,className:p("flex min-w-0 flex-wrap items-center gap-3 py-2 text-sm",re,D?.root,S),"data-monkeys-component":"list-footer","data-density":T.density,children:jsxs("div",{className:"monkeys-list-footer-groups contents",children:[jsx("div",{className:p("min-w-0 text-muted-foreground",D?.summary),children:(()=>{let G=jsxs(Fragment,{children:[I??(n!==void 0?w.selected({count:n}):null),n!==void 0&&_?jsx("span",{className:"mx-2",children:"\xB7"}):null,_,P?jsx(ti,{}):null]});return v?jsx("button",{type:"button",className:"inline-flex items-center",onClick:v,children:G}):G})()}),R?jsx(Fr,{page:i,pageCount:s,pageSize:d,total:e,mode:X,hasNext:c,hasPrevious:x,onPageChange:f,appearance:y,className:D?.pagination,classNames:{info:"sr-only"}}):null,H&&N&&L.length>0?jsxs("label",{className:p("inline-flex items-center gap-2 whitespace-nowrap text-muted-foreground",D?.pageSize),children:[jsx("span",{className:"sr-only",children:b??w.pageSize}),jsx("select",{"aria-label":typeof b=="string"?b:w.pageSize,value:String(d),className:"h-8 rounded-md border border-border bg-background px-2 text-sm text-foreground",onChange:G=>N(Number(G.currentTarget.value)),children:L.map(G=>jsx("option",{value:G,children:G},G))})]}):null]})})}r(zr,"BaseListFooter");var Wr=Symbol.for("@inf-monkeys-tech/monkeys-design/bento-depth@1"),jr=globalThis,ai=jr[Wr]??(jr[Wr]=createContext(0));function wo(){return useContext(ai)}r(wo,"useBentoDepth");var ii={menu:"monkeys-overlay-surface--menu bg-menu-surface text-popover-foreground",dialog:"monkeys-overlay-surface--dialog bg-dialog-surface text-foreground"};function yo(e,t={}){return ["monkeys-overlay-surface",ii[e],t.rounded===false?void 0:"monkeys-overlay-surface--rounded"].filter(Boolean).join(" ")}r(yo,"getOverlaySurfaceClassName");var ci=_e.forwardRef(({className:e,style:t,...o},n)=>jsx(bt.Item,{ref:n,className:p("border-b",e),style:{borderColor:"var(--monkeys-component-accordion-item-border-color, hsl(var(--border)))",...t},...o}));ci.displayName="AccordionItem";var pi=_e.forwardRef(({className:e,children:t,...o},n)=>jsx(bt.Header,{className:"flex",children:jsxs(bt.Trigger,{ref:n,className:p("flex flex-1 items-center justify-between py-4 text-sm font-medium transition-all hover:underline [&[data-state=open]>svg]:rotate-180",e),...o,children:[t,jsx(ChevronDown,{"aria-hidden":"true",className:"h-4 w-4 shrink-0 transition-transform duration-200"})]})}));pi.displayName="AccordionTrigger";var mi=_e.forwardRef(({className:e,children:t,...o},n)=>jsx(bt.Content,{ref:n,className:"overflow-hidden text-sm transition-all data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",...o,children:jsx("div",{className:p("pb-4 pt-0",e),children:t})}));mi.displayName="AccordionContent";var fi=_e.forwardRef(({className:e,...t},o)=>jsx(vo.Root,{ref:o,className:p("peer h-4 w-4 shrink-0 rounded-sm border border-primary shadow focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",e),...t,children:jsx(vo.Indicator,{className:"flex items-center justify-center text-current",children:jsx(Check,{"aria-hidden":"true",className:"h-4 w-4"})})}));fi.displayName="Checkbox";var gi=cva("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_[data-slot=icon]]:text-[inherit] [&_[data-slot=icon]_*]:!text-[inherit] [&_[data-slot=icon]_svg]:!stroke-current [&_[data-slot=icon]_svg_*]:!stroke-current [&_[data-slot=end-icon]]:text-[inherit] [&_[data-slot=end-icon]_*]:!text-[inherit] [&_[data-slot=end-icon]_svg]:!stroke-current [&_[data-slot=end-icon]_svg_*]:!stroke-current [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow-sm hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-control-surface shadow-sm ring-offset-control-surface hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-sm px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),Uo=_e.forwardRef(({className:e,variant:t,size:o,asChild:n=false,unstyled:i=false,...s},d)=>jsx(n?Slot:"button",{ref:d,className:i?e:gi({variant:t,size:o,className:e}),...s}));Uo.displayName="Button";var bi=_e.forwardRef(({className:e,children:t,viewportClassName:o,viewportRef:n,onViewportScroll:i,scrollbar:s=true,scrollbarOrientation:d="vertical",scrollBarDisabled:l=false,type:u,...m},g)=>{let c=wo();return jsxs(ct.Root,{ref:g,type:u??(c>0?"auto":void 0),className:p("group relative overflow-hidden",l&&"no-scrollbar",e),...m,children:[jsx(ct.Viewport,{ref:n,onScroll:i,className:p("h-full w-full rounded-[inherit]",o),children:t}),s?jsx(Gr,{orientation:d,className:p(l&&"size-0 p-0")}):null,jsx(ct.Corner,{})]})});bi.displayName="ScrollArea";var Gr=_e.forwardRef(({className:e,orientation:t="vertical",...o},n)=>jsx(ct.ScrollAreaScrollbar,{ref:n,"data-monkeys-scrollbar":"",orientation:t,className:p("flex touch-none select-none opacity-0 transition-opacity group-hover:opacity-100 group-focus-within:opacity-100 data-[state=visible]:opacity-100",t==="vertical"&&"h-full w-2.5 border-l border-l-transparent p-px",t==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent p-px",e),...o,children:jsx(ct.ScrollAreaThumb,{className:"relative flex-1 rounded-full bg-border"})}));Gr.displayName="ScrollBar";var xi=_e.forwardRef(({className:e,...t},o)=>jsx(ko.Root,{ref:o,className:p("peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input",e),...t,children:jsx(ko.Thumb,{className:"pointer-events-none block h-5 w-5 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0"})}));xi.displayName="Switch";var hi=_e.forwardRef(({variant:e="default",...t},o)=>jsx(kt.Root,{ref:o,"data-variant":e,...t}));hi.displayName="Tabs";var wi=_e.forwardRef(({className:e,gap:t,style:o,...n},i)=>jsx(kt.List,{ref:i,className:p("inline-flex h-10 items-center justify-center rounded-lg bg-muted p-1 text-muted-foreground",e),style:{gap:t,...o},...n}));wi.displayName="TabsList";var yi=_e.forwardRef(({className:e,...t},o)=>jsx(kt.Trigger,{ref:o,className:p("inline-flex items-center justify-center whitespace-nowrap rounded-md px-3 py-1.5 text-sm font-medium ring-offset-background transition-all focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow-sm",e),...t}));yi.displayName="TabsTrigger";var vi=_e.forwardRef(({className:e,...t},o)=>{let n=wo();return jsx(kt.Content,{ref:o,className:p("mt-2 ring-offset-background focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",n>0&&"gap-[var(--monkeys-bento-gap)]",e),...t})});vi.displayName="TabsContent";var ki=_e.forwardRef(({className:e,sideOffset:t=4,...o},n)=>{let i=je();return jsx(mt.Portal,{children:jsx(mt.Content,{...i,...o,ref:n,sideOffset:t,"data-monkeys-component":"tooltip","data-slot":"content","data-surface":"menu",className:p("z-50 overflow-hidden border px-3 py-1.5 text-xs animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",yo("menu"),e)})})});ki.displayName="TooltipContent";var qo=_e.forwardRef(({className:e,appearance:t="standard",unstyled:o=false,type:n,...i},s)=>jsx("input",{ref:s,type:n,className:o?e:p("flex w-full border border-input bg-control-surface px-3 text-foreground ring-offset-control-surface transition-[border-color,background-color,color,box-shadow] file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",t==="compact"?"h-9 rounded-md py-1 text-sm shadow-sm":"h-10 rounded-md py-2 text-sm shadow-sm",t==="shadow"&&"rounded-lg shadow-sm shadow-black/[0.02] dark:border-white/10 dark:bg-white/[0.04] dark:shadow-none",e),...i}));qo.displayName="Input";var Di=_e.forwardRef(({className:e,appearance:t="standard",unstyled:o=false,...n},i)=>jsx("textarea",{ref:i,className:o?e:p("flex w-full border border-input bg-control-surface px-3 py-2 text-foreground ring-offset-control-surface placeholder:text-muted-foreground focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",t==="compact"?"min-h-[60px] rounded-md text-sm shadow-sm":"min-h-[80px] rounded-md text-sm",t==="shadow"&&"rounded-lg shadow-sm shadow-black/[0.02] dark:border-white/10 dark:bg-white/[0.04] dark:shadow-none",e),...n}));Di.displayName="Textarea";var Ci=_e.forwardRef((e,t)=>jsx("select",{ref:t,...e}));Ci.displayName="NativeSelect";var Ti=_e.forwardRef((e,t)=>jsx("option",{ref:t,...e}));Ti.displayName="NativeOption";var Xt="relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",Ko=`z-50 min-w-[8rem] overflow-hidden border p-1 ${yo("menu")} data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2`,Kr=he.Root,Xr=he.Trigger;var Yr=he.RadioGroup,Ri=_e.forwardRef(({className:e,inset:t,children:o,...n},i)=>jsxs(he.SubTrigger,{ref:i,className:p(Xt,"data-[state=open]:bg-accent",t&&"pl-8",e),...n,children:[o,jsx(ChevronRight,{"aria-hidden":"true",className:"ml-auto"})]}));Ri.displayName="DropdownMenuSubTrigger";var Ei=_e.forwardRef(({className:e,...t},o)=>{let n=je();return jsx(he.SubContent,{...n,...t,ref:o,"data-monkeys-component":"dropdown-menu","data-slot":"content","data-surface":"menu",className:p(Ko,e)})});Ei.displayName="DropdownMenuSubContent";var Xo=_e.forwardRef(({className:e,sideOffset:t=4,...o},n)=>{let i=je();return jsx(he.Portal,{children:jsx(he.Content,{...i,...o,ref:n,sideOffset:t,"data-monkeys-component":"dropdown-menu","data-slot":"content","data-surface":"menu",className:p(Ko,e)})})});Xo.displayName="DropdownMenuContent";var Mi=_e.forwardRef(({className:e,inset:t,...o},n)=>jsx(he.Item,{ref:n,className:p(Xt,t&&"pl-8",e),...o}));Mi.displayName="DropdownMenuItem";var Ii=_e.forwardRef(({className:e,children:t,checked:o,...n},i)=>jsxs(he.CheckboxItem,{ref:i,className:p(Xt,"pl-8",e),checked:o,...n,children:[jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:jsx(he.ItemIndicator,{children:jsx(Check,{"aria-hidden":"true",className:"h-4 w-4"})})}),t]}));Ii.displayName="DropdownMenuCheckboxItem";var Yo=_e.forwardRef(({className:e,children:t,...o},n)=>jsxs(he.RadioItem,{ref:n,className:p(Xt,"pl-8",e),...o,children:[jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:jsx(he.ItemIndicator,{children:jsx(Circle,{"aria-hidden":"true",className:"h-2 w-2 fill-current"})})}),t]}));Yo.displayName="DropdownMenuRadioItem";var Zo=_e.forwardRef(({className:e,inset:t,...o},n)=>jsx(he.Label,{ref:n,className:p("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...o}));Zo.displayName="DropdownMenuLabel";var Jo=_e.forwardRef(({className:e,...t},o)=>jsx(he.Separator,{ref:o,className:p("-mx-1 my-1 h-px bg-muted",e),...t}));Jo.displayName="DropdownMenuSeparator";var Ni=r(({className:e,...t})=>jsx("span",{className:p("ml-auto text-xs tracking-widest opacity-60",e),...t}),"DropdownMenuShortcut");Ni.displayName="DropdownMenuShortcut";var Li=_e.forwardRef(({className:e,children:t,iconClassName:o,size:n="default",...i},s)=>jsxs(we.Trigger,{ref:s,className:p("flex h-10 w-full items-center justify-between whitespace-nowrap rounded-md border border-input bg-control-surface px-3 py-2 text-left text-sm text-foreground shadow-sm ring-offset-control-surface data-[placeholder]:text-muted-foreground focus:outline-hidden focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1 [&>span]:min-w-0 [&>span]:flex-1 [&>span]:text-left",n==="sm"&&"h-8 px-2 py-1 text-xs",e),...i,children:[t,jsx(we.Icon,{asChild:true,children:jsx(ChevronDown,{"aria-hidden":"true",className:p("h-4 w-4 opacity-50",o)})})]}));Li.displayName="SelectTrigger";var Zr=_e.forwardRef(({className:e,...t},o)=>jsx(we.ScrollUpButton,{ref:o,className:p("flex cursor-default items-center justify-center py-1",e),...t,children:jsx(ChevronUp,{"aria-hidden":"true",className:"h-4 w-4"})}));Zr.displayName="SelectScrollUpButton";var Jr=_e.forwardRef(({className:e,...t},o)=>jsx(we.ScrollDownButton,{ref:o,className:p("flex cursor-default items-center justify-center py-1",e),...t,children:jsx(ChevronDown,{"aria-hidden":"true",className:"h-4 w-4"})}));Jr.displayName="SelectScrollDownButton";var Ai=_e.forwardRef(({className:e,children:t,position:o="popper",viewportClassName:n,disableTriggerViewportSizing:i=false,...s},d)=>{let l=je();return jsx(we.Portal,{children:jsxs(we.Content,{...l,...s,ref:d,position:o,"data-monkeys-component":"select","data-slot":"content","data-surface":"menu",className:p(Ko,"relative max-h-[var(--radix-select-content-available-height)] overflow-y-auto overflow-x-hidden",o==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),children:[jsx(Zr,{}),jsx(we.Viewport,{className:p("p-1",o==="popper"&&"w-full min-w-[var(--radix-select-trigger-width)]",o==="popper"&&!i&&"h-[var(--radix-select-trigger-height)]",n),children:t}),jsx(Jr,{})]})})});Ai.displayName="SelectContent";var Hi=_e.forwardRef(({className:e,...t},o)=>jsx(we.Label,{ref:o,className:p("px-2 py-1.5 text-sm font-semibold",e),...t}));Hi.displayName="SelectLabel";var _i=_e.forwardRef(({className:e,children:t,indicatorClassName:o,itemText:n,hideIndicator:i=false,...s},d)=>jsxs(we.Item,{ref:d,className:p(Xt,"w-full",i?"px-2":"pl-8 pr-2",e),...s,children:[i?null:jsx("span",{className:p("absolute left-2 flex h-3.5 w-3.5 items-center justify-center",o),children:jsx(we.ItemIndicator,{children:jsx(Check,{"aria-hidden":"true",className:"h-4 w-4"})})}),n?jsxs(Fragment,{children:[jsx(we.ItemText,{asChild:true,children:jsx("span",{className:"sr-only",children:n})}),t]}):jsx(we.ItemText,{children:t})]}));_i.displayName="SelectItem";var Vi=_e.forwardRef(({className:e,...t},o)=>jsx(we.Separator,{ref:o,className:p("-mx-1 my-1 h-px bg-muted",e),...t}));Vi.displayName="SelectSeparator";function Ot(e){if(!e)return;let t=/^data:image\/svg\+xml(?:[;,]|$)/i.test(e.trim());if(!t)try{t=/\.svgz?$/i.test(decodeURIComponent(new URL(e,"https://preview.invalid").pathname));}catch{return}return t?{backgroundColor:"var(--monkeys-media-svg-background)",objectFit:"contain"}:void 0}r(Ot,"svgPreviewSurface");var Fi=r(({aspectRatio:e="square",maxSquareHeight:t=true,className:o}={})=>p("w-full overflow-hidden bg-muted",(e==="square"||e==="1:1")&&"aspect-square",(e==="square"||e==="1:1")&&t&&"max-h-[300px]",e==="4:3"&&"aspect-[4/3]",e==="3:4"&&"aspect-[3/4]",(e==="video"||e==="16:9")&&"aspect-video",e==="9:16"&&"aspect-[9/16]",o),"mediaPreviewFrameClassName"),Yt=_e.forwardRef(({aspectRatio:e="square",maxSquareHeight:t=true,className:o,...n},i)=>jsx("div",{ref:i,className:Fi({aspectRatio:e,maxSquareHeight:t,className:o}),...n}));Yt.displayName="MediaPreviewFrame";var er=_e.forwardRef(({fit:e="contain",className:t,style:o,...n},i)=>{let s=Ot(n.src);return jsx("img",{ref:i,className:p("block size-full",e==="contain"?"object-contain":"object-cover",t),style:{...s,...s?{objectFit:e}:{},...o},...n})});er.displayName="MediaPreviewImage";function ji({selectedCount:e,loadedStart:t,loadedEnd:o,total:n,currentPage:i=1,pageSize:s=Math.max(1,o||1),pageSizeOptions:d=[],loading:l,selectedLabel:u,loadedLabel:m,pageSizeLabel:g,pageText:c,tone:x="default",className:P,classNames:h,onJump:I,onJumpToPage:b,onPageSizeChange:y}){let S=lt().pagination,D=typeof t=="number"&&t>0&&o>=t,f=m??(D?S.range({start:t,end:o,total:n}):S.range({start:0,end:o,total:n})),[N,v]=useState(false),[E,T]=useState(String(i)),w=useRef(null),L=n>0?Math.max(1,Math.ceil(n/Math.max(1,s))):1;if(useEffect(()=>{N||T(String(i));},[i,N]),useEffect(()=>{if(!N)return;let O=window.setTimeout(()=>{w.current?.focus(),w.current?.select();},0);return ()=>window.clearTimeout(O)},[N]),x==="hard-edge"){let O=r(()=>{let H=Math.floor(Number(E));if(!Number.isFinite(H)||Number.isNaN(H)){T(String(i)),v(false);return}let B=Math.min(L,Math.max(1,H));v(false),B!==i&&b?.(B);},"confirmJump");return jsxs("div",{className:p("flex items-center border-t bg-background px-4 py-3",h?.root,P),"data-monkeys-component":"collection-footer","data-tone":"hard-edge",children:[jsxs("div",{className:p("flex min-w-0 items-center gap-1 whitespace-nowrap text-sm text-muted-foreground",h?.summary),children:[e!==void 0?jsxs("span",{children:[u??S.selected({count:e})," \xB7"]}):null,b&&n>0?N?jsxs("div",{className:"flex items-center gap-2",children:[jsx("span",{className:"text-xs text-muted-foreground",children:S.jumpToPage}),jsx(qo,{ref:w,type:"number",inputMode:"numeric",min:1,max:L,value:E,onChange:H=>T(H.currentTarget.value),onKeyDown:H=>{H.key==="Enter"&&(H.preventDefault(),H.currentTarget.blur()),H.key==="Escape"&&(H.preventDefault(),v(false),T(String(i)));},onBlur:O,className:"h-7 w-20 px-2 text-xs","aria-label":S.jumpToPage}),jsxs("span",{className:"text-xs text-muted-foreground",children:["/ ",L," ",S.pages]})]}):jsxs("button",{type:"button",className:p("inline-flex items-center text-muted-foreground underline-offset-4 hover:text-foreground hover:underline",h?.jumpButton),onClick:()=>{T(String(i)),v(true),I?.();},title:S.clickToJump,children:[f,c?` (${c})`:null,l?jsx(Loader2,{"aria-hidden":"true",className:"ml-1 inline-block h-3 w-3 animate-spin"}):null]}):jsxs("span",{className:"inline-flex items-center",children:[f,c?` (${c})`:null,l?jsx(Loader2,{"aria-hidden":"true",className:"ml-1 h-3 w-3 animate-spin"}):null]})]}),y&&d.length>0?jsx("div",{className:p("ml-auto",h?.pageSizeControl),children:jsxs(Kr,{children:[jsx(Xr,{asChild:true,children:jsxs(Uo,{type:"button",variant:"outline",size:"sm",className:p("h-8 gap-1 px-2",h?.pageSizeButton),"aria-label":typeof g=="string"?g:S.perLoad,children:[s,jsx(ChevronDown,{"aria-hidden":"true",className:"h-4 w-4"})]})}),jsxs(Xo,{align:"end",className:"w-32",children:[jsx(Zo,{children:g??S.perLoad}),jsx(Jo,{}),jsx(Yr,{value:String(s),onValueChange:H=>{let B=Number(H);Number.isFinite(B)&&y(B);},children:d.map(H=>jsx(Yo,{value:String(H),children:H},H))})]})]})}):null]})}return jsx(zr,{total:n,loadedStart:t,loadedEnd:o,selectedCount:e,page:i,pageSize:s,pageSizeOptions:d,loading:l,totalLabel:jsxs(Fragment,{children:[f," ",c?`(${c})`:null]}),selectedLabel:u,pageSizeLabel:g,className:P,classNames:{root:h?.root,summary:h?.summary,pageSize:h?.pageSizeControl},onSummaryClick:I,onPageSizeChange:y})}r(ji,"DataExplorerCollectionFooter");function $i(e){return typeof e=="number"?`${e}px`:e}r($i,"toCssSize");function Ui({label:e,leading:t,children:o,actions:n,maxFieldsHeight:i=80,className:s,classNames:d,style:l,...u}){let m={maxHeight:$i(i)};return jsx("div",{className:a("border-b border-border/60 bg-background px-8 py-3",d?.root,s),style:l,...u,children:jsxs("div",{className:a("flex min-w-0 items-start gap-2 text-sm",d?.layout),children:[e?jsx("div",{className:a("flex h-9 shrink-0 items-center font-semibold text-foreground",d?.label),children:e}):null,jsx("div",{className:a("min-w-0 flex-1 overflow-y-auto overscroll-contain",d?.fieldsViewport),style:m,children:jsxs("div",{className:a("flex flex-wrap items-center gap-2",d?.fields),children:[t,o]})}),n?jsx("div",{className:a("flex shrink-0 items-center gap-2",d?.actions),children:n}):null]})})}r(Ui,"DataExplorerFilterBar");function Ki({open:e}){return jsx("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",className:a("h-4 w-4 transition-transform",e&&"rotate-180"),fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",children:jsx("path",{d:"m6 9 6 6 6-6"})})}r(Ki,"ChevronDownIcon");function Xi({label:e,icon:t,items:o=[],onPrimaryAction:n,onAction:i,menuLabel:s,triggerLabel:d="More actions",title:l,tone:u,active:m=false,disabled:g=false,appearance:c,className:x,classNames:P}){let[h,I]=useState(false),b=le(pe(c)),y=o.length>0,S=m||h,D=r(f=>{g||n?.(f);},"handlePrimaryClick");return jsxs(he.Root,{open:y&&h,onOpenChange:f=>I(y?f:false),children:[jsxs("div",{className:a("inline-flex min-w-0 shrink-0 overflow-hidden rounded-md",wt(b,u,S),P?.root,x),children:[jsx(_t,{label:e,icon:t,title:l,disabled:g,active:S,appearance:c,className:a("rounded-none border-r-0",P?.primary),onClick:D}),y?jsx(he.Trigger,{asChild:true,children:jsx("button",{type:"button","aria-label":d,title:d,disabled:g,className:a(b.slots.controlButton,"w-9 shrink-0 rounded-none border-l-0 px-0",S?wt(b,u,true):wt(b,u,false),P?.trigger),onClick:f=>f.stopPropagation(),children:jsx(Ki,{open:h})})}):null]}),y?jsx(he.Portal,{children:jsxs(he.Content,{align:"start",sideOffset:6,className:a(b.slots.menuContent,P?.content),style:b.styles.menuContent,children:[s?jsxs(Fragment,{children:[jsx(he.Label,{className:b.slots.menuLabel,children:s}),jsx(he.Separator,{className:b.slots.menuSeparator})]}):null,o.map(f=>jsxs(he.Item,{title:f.title,disabled:f.disabled,className:a(b.slots.menuItem,wt(b,f.tone,false),P?.item),style:b.styles.menuItem,onSelect:()=>{f.disabled||i?.(f.id);},children:[f.icon?jsx("span",{className:b.slots.menuItemIcon,children:f.icon}):null,jsx("span",{className:b.slots.menuItemLabel,children:f.label})]},f.id))]})}):null]})}r(Xi,"DataExplorerSplitButton");function nn(e){return e!=null&&e!==false&&e!==""}r(nn,"hasContent");function tr({field:e,label:t=e?.label,icon:o=e?.icon,value:n=e?.value,helperText:i=e?.helperText,error:s=e?.error,required:d=e?.required??false,disabled:l=e?.disabled??false,children:u,context:m,className:g,valueClassName:c=e?.valueClassName,classNames:x,dataAttributes:P=e?.dataAttributes,labelDataAttributes:h=e?.labelDataAttributes,valueDataAttributes:I=e?.valueDataAttributes,helperDataAttributes:b=e?.helperDataAttributes,errorDataAttributes:y=e?.errorDataAttributes}){let S={...e?.classNames,...x},D=u??(e?.render?e.render(m):n),f=nn(s);return jsxs("div",{...P,title:e?.title,"aria-disabled":l||void 0,"data-disabled":l||void 0,"data-invalid":f||void 0,"data-required":d||void 0,className:a("min-w-0 space-y-1",l&&"opacity-60",S.root,e?.className,g),children:[jsxs("div",{className:a("flex min-w-0 items-center gap-1.5 text-[13px] font-medium text-muted-foreground",S.label),children:[o?jsx("span",{className:a("inline-flex shrink-0 items-center justify-center",S.icon),children:o}):null,jsx("span",{...h,className:"min-w-0 truncate",children:t}),d?jsx("span",{"aria-hidden":"true",className:a("text-destructive-text",S.required),children:"*"}):null]}),jsx("div",{...I,className:a("min-w-0 max-w-full text-[15px] leading-6 text-foreground [overflow-wrap:anywhere]",S.value,c),children:D}),nn(i)?jsx("div",{...b,"data-slot":"helper",className:a("min-w-0 max-w-full text-xs leading-5 text-muted-foreground [overflow-wrap:anywhere]",S.helper),children:i}):null,f?jsx("div",{...y,role:"alert","data-slot":"error",className:a("min-w-0 max-w-full text-xs leading-5 text-destructive-text [overflow-wrap:anywhere]",S.error),children:s}):null]})}r(tr,"DataExplorerDetailField");function or({section:e,title:t=e?.title,fields:o=e?.fields,children:n,context:i,className:s,classNames:d,fieldClassNames:l}){let u={...e?.classNames,...d},m=(o||[]).filter(x=>!(fe(x.hidden,i)??false)),g=n??(typeof e?.children=="function"?e.children(i):e?.children);return !(!!g||m.length>0)||fe(e?.hidden,i)?null:jsxs("section",{className:a("border-b border-border pb-6 last:border-b-0 last:pb-0",u.root,e?.className,s),children:[t?jsx("div",{className:a("mb-4 text-[15px] font-semibold text-foreground",u.title),children:t}):null,jsxs("div",{className:a("space-y-4",u.body),children:[g,m.map((x,P)=>jsx(tr,{field:x,context:i,classNames:l},x.id||String(P)))]})]})}r(or,"DataExplorerDetailSection");function Zi(){return jsxs("svg",{viewBox:"0 0 24 24","aria-hidden":"true",className:"h-[18px] w-[18px]",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",children:[jsx("path",{d:"M18 6 6 18"}),jsx("path",{d:"m6 6 12 12"})]})}r(Zi,"DefaultCloseIcon");function dn(){return jsx("svg",{viewBox:"0 0 24 24","aria-hidden":"true",className:"h-4 w-4",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",children:jsx("path",{d:"m15 18-6-6 6-6"})})}r(dn,"DefaultChevronLeftIcon");function un(){return jsx("svg",{viewBox:"0 0 24 24","aria-hidden":"true",className:"h-4 w-4",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",children:jsx("path",{d:"m9 18 6-6-6-6"})})}r(un,"DefaultChevronRightIcon");function Ji({title:e,subtitle:t,leading:o,actions:n,preview:i,previewVisible:s=true,previewStyle:d,previewPadded:l=false,previewCentered:u=true,sections:m=[],rightPanel:g,context:c,navigation:x,closeLabel:P="Close",closeIcon:h,closeVisible:I=true,onClose:b,appearance:y,className:S,classNames:D}){let f=le(pe(y)),N=(x?.visible??true)&&typeof x?.count=="number"&&x.count>1,v=m.filter(E=>!(fe(E.hidden,c)??false));return jsxs("div",{className:a(f.slots.detailRoot,D?.root,S),style:f.styles.detailRoot,children:[jsxs("div",{className:a(f.slots.detailHeader,D?.header),children:[jsxs("div",{className:a("flex min-w-0 items-center gap-3",D?.headerMain),children:[o?jsx("div",{className:a(f.slots.detailLeading,D?.leading),children:o}):null,jsxs("div",{className:a("min-w-0",D?.titleGroup),children:[jsx("div",{className:a("truncate text-[20px] font-semibold leading-tight text-foreground",D?.title),children:e}),t?jsx("div",{className:a("mt-1 min-w-0 truncate text-sm text-muted-foreground",D?.subtitle),children:t}):null]})]}),jsxs("div",{className:a("flex items-center gap-2",D?.headerActions),children:[n,N?jsxs("div",{className:a(f.slots.detailNavigation,D?.navigation),children:[jsx("button",{type:"button","aria-label":x?.previousLabel||"Previous",className:a(f.slots.detailNavigationButton,D?.navigationButton),disabled:!x?.onPrevious,onClick:x?.onPrevious,children:jsx(dn,{})}),jsxs("div",{className:a("min-w-[74px] text-center text-xs font-medium text-muted-foreground",D?.navigationCount),children:[x.index+1," / ",x.count]}),jsx("button",{type:"button","aria-label":x?.nextLabel||"Next",className:a(f.slots.detailNavigationButton,D?.navigationButton),disabled:!x?.onNext,onClick:x?.onNext,children:jsx(un,{})})]}):null,I?jsx("button",{type:"button","aria-label":P,className:a(f.slots.detailCloseButton,D?.closeButton),onClick:b,children:h??jsx(Zi,{})}):null]})]}),jsxs("div",{className:a("grid min-h-0 flex-1",s?"xl:grid-cols-[minmax(0,1fr)_380px] 2xl:grid-cols-[minmax(0,1fr)_400px]":"grid-cols-1",D?.body),children:[s?jsx("div",{className:a(f.slots.detailPreviewPanel,D?.previewPanel),children:jsxs("div",{className:a("flex h-full min-h-0 flex-col",D?.previewStack),children:[N?jsx("div",{className:"flex justify-end",children:jsxs("div",{className:a("text-xs text-muted-foreground xl:hidden",D?.previewMobileCount),children:[x.index+1," / ",x.count]})}):null,jsx("div",{className:a("flex min-h-0 flex-1 justify-center",u&&"items-stretch",D?.previewWrapper),children:jsxs("div",{className:a(f.slots.detailPreviewFrame,D?.previewFrame),style:d,children:[jsx("div",{className:a("relative flex h-full w-full items-center justify-center",l&&"p-4",D?.previewContent),children:i}),N?jsxs(Fragment,{children:[jsx("button",{type:"button","aria-label":x?.previousLabel||"Previous",className:a(f.slots.previewNavigationButton,"left-4",D?.previewNavigationButton),disabled:!x?.onPrevious,onClick:x?.onPrevious,children:jsx(dn,{})}),jsx("button",{type:"button","aria-label":x?.nextLabel||"Next",className:a(f.slots.previewNavigationButton,"right-4",D?.previewNavigationButton),disabled:!x?.onNext,onClick:x?.onNext,children:jsx(un,{})})]}):null]})})]})}):null,jsx("div",{className:a(f.slots.detailRightPanel,D?.rightPanel),children:jsx("div",{className:a(f.slots.detailRightPanelBody,D?.rightPanelBody),style:{scrollbarGutter:"stable"},children:g??jsx("div",{className:a("space-y-6",D?.sections),children:v.map(E=>jsx(or,{section:E,context:c,className:D?.section,fieldClassNames:{root:D?.field}},E.id))})})})]})]})}r(Ji,"DataExplorerDetailShell");var ns=createContext(null);function pn(){let e=useContext(ns),t=useRef(null);t.current===null&&(t.current=Symbol("BaseFieldControl"));let o=e?.registerControl;useEffect(()=>{if(!(!o||t.current===null))return o(t.current)},[o]);let n=e?.notifyBlur,i=e?.notifyChange;return {invalid:e?.invalid??false,notifyBlur:useCallback(s=>n?.(s),[n]),notifyChange:useCallback(s=>i?.(s),[i])}}r(pn,"useBaseFieldControl");var ds={sm:"h-3.5 w-3.5",md:"h-4 w-4",lg:"h-5 w-5"},us={sm:"text-[10px]",md:"text-[11px]",lg:"text-xs"};function cs(e,...t){for(let o of t)if(o){if(typeof o=="function"){o(e);continue}o.current=e;}}r(cs,"setRefs");var fn=forwardRef(r(function({label:t,description:o,indeterminate:n=false,invalid:i=false,disabled:s=false,controlSize:d,appearance:l,className:u,classNames:m,style:g,checked:c,defaultChecked:x,onBlur:P,onChange:h,"aria-invalid":I,...b},y){for(let[G,te]of [["indeterminate",n],["invalid",i],["disabled",s]])if(typeof te!="boolean")throw new TypeError(`BaseCheckbox ${G} must be a boolean.`);if(d!==void 0&&d!=="sm"&&d!=="md"&&d!=="lg")throw new TypeError('BaseCheckbox controlSize must be "sm", "md", or "lg".');let S=dt(l),D=je(),f=ut(S),N=pn(),v=i||N.invalid,E=Ue(t),T=Nr(o),w=useRef(null),L=useRef(n);L.current=n;let[O,H]=useState(x??false),B=c!==void 0,X=!!(B?c:O),Y=n||X,_=n?"mixed":X?"checked":"unchecked",R=useCallback(G=>{w.current=G,G&&(G.indeterminate=L.current),cs(G,y);},[y]);useEffect(()=>{w.current&&(w.current.indeterminate=n);},[n]);let re=r(G=>{s||(B||H(G.currentTarget.checked),h?.(G),N.notifyChange(G.currentTarget.checked),w.current&&(w.current.indeterminate=n));},"handleChange");return jsxs("label",{...D,"data-monkeys-component":"checkbox","data-slot":"root","data-state":_,"data-size":d,"data-invalid":v||void 0,"data-disabled":s||void 0,className:p(f.slots.checkboxRoot,!T&&"items-center",s&&f.slots.checkboxDisabled,m?.root,u),style:{...f.styles.checkboxRoot,...g},children:[jsxs("span",{"data-slot":"box","data-state":_,"data-size":d,className:p(f.slots.checkboxBox,!T&&"mt-0",Y&&f.slots.checkboxBoxChecked,v&&f.slots.checkboxBoxInvalid,d&&ds[d],m?.box),style:{...f.styles.checkboxBox},children:[jsx("input",{...b,ref:R,type:"checkbox",disabled:s,checked:c,defaultChecked:x,"aria-invalid":I??(v||void 0),"aria-checked":n?"mixed":X,"data-slot":"input","data-state":_,"data-size":d,"data-invalid":v||void 0,"data-disabled":s||void 0,className:p(f.slots.checkboxInput,m?.input),onBlur:G=>{P?.(G),N.notifyBlur(G.currentTarget.checked);},onChange:re}),Y?jsx("span",{"aria-hidden":"true","data-slot":"indicator","data-state":_,"data-size":d,className:p(f.slots.checkboxIndicator,d&&us[d],m?.indicator),children:n?"\u2013":"\u2713"}):null]}),E||T?jsxs("span",{"data-slot":"content",className:p(f.slots.checkboxContent,m?.content),children:[E?jsx("span",{"data-slot":"label",className:p(f.slots.checkboxLabel,m?.label),children:t}):null,T?jsx("span",{"data-slot":"description",className:p(f.slots.checkboxDescription,m?.description),children:o}):null]}):null]})},"BaseCheckbox"));var Ss={duration:220,easing:"cubic-bezier(0.22, 1, 0.36, 1)"},Ps=r(e=>e.isSorting||e.wasDragging&&e.transition&&e.containerId===e.previousContainerId?true:defaultAnimateLayoutChanges(e),"treeItemAnimateLayoutChanges"),Bs={none:"0px",sm:"0.125rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem",full:"9999px"};function Rs(e,t){let o=e??t;if(typeof o=="number")return `${o}px`;if(o)return Bs[o]??o}r(Rs,"resolveTreeItemBorderRadius");function Es(e){if(!e)return;if("clientX"in e&&"clientY"in e)return {x:Number(e.clientX),y:Number(e.clientY)};let t=e,o=t.touches?.[0]??t.changedTouches?.[0];if(o)return {x:o.clientX,y:o.clientY}}r(Es,"getEventClientPoint");function Ms({expanded:e}){return jsx("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",className:a("h-4 w-4 transition-transform duration-200 ease-out",e?"rotate-90":"rotate-0"),fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",children:jsx("path",{d:"m9 18 6-6-6-6"})})}r(Ms,"ChevronIcon");function Is(){return jsxs("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",className:"h-3.5 w-3.5",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",children:[jsx("circle",{cx:"9",cy:"5",r:"1"}),jsx("circle",{cx:"9",cy:"12",r:"1"}),jsx("circle",{cx:"9",cy:"19",r:"1"}),jsx("circle",{cx:"15",cy:"5",r:"1"}),jsx("circle",{cx:"15",cy:"12",r:"1"}),jsx("circle",{cx:"15",cy:"19",r:"1"})]})}r(Is,"GripIcon");function hn(e,t){for(let o of e)o.defaultExpanded&&t.add(o.id),hn(o.children??[],t);}r(hn,"collectDefaultExpandedNodeIds");function xn(e,t){let o=new Set(t??[]);return hn(e,o),o}r(xn,"buildDefaultExpandedNodeIds");function wn(e,t,o,n,i){e.forEach((s,d)=>{i.push({node:s,parentId:o,index:d,depth:n});let l=Array.isArray(s.children)&&s.children.length>0,u=s.collapsible===false||t.has(s.id);l&&u&&wn(s.children??[],t,s.id,n+1,i);});}r(wn,"flattenTree");function Ns(e,t){let o=[];return wn(e,t,void 0,0,o),o}r(Ns,"buildFlattenedTree");function Ls(e,t,o){if(o<0)return;let n=t.parentId;for(;n;){let i=e.find(s=>s.node.id===n);if(!i)return;if(i.depth===o)return i;n=i.parentId;}}r(Ls,"findAncestorEntryAtDepth");function As(e,t,o,n,i){let s=t.node.id===o.node.id?t:o,d=0;for(let l of e){if(l.node.id===s.node.id)break;l.node.id!==t.node.id&&l.parentId===n&&l.depth===i&&(d+=1);}return d}r(As,"countSiblingsBeforeDrop");function Hs({flattenedNodes:e,activeEntry:t,overEntry:o,dragOffsetX:n,indentSize:i,dragScope:s="tree"}){if(s==="siblings")return {parentId:t.parentId,depth:t.depth,index:t.parentId===o.parentId?o.index:t.index};let d=Math.round(n/Math.max(1,i)),l=Math.max(0,t.depth+d),u=Math.min(l,o.depth),m=u===0?void 0:u===o.depth?o.parentId:Ls(e,o,u)?.parentId;return {parentId:m,index:As(e,t,o,m,u),depth:u}}r(Hs,"projectDataExplorerDraggableTreeDrop");function _s({entry:e,selected:t,multiple:o,expanded:n,active:i,over:s,indentSize:d,activationMode:l,dragHandleLabel:u,expandLabel:m,collapseLabel:g,themeSlots:c,classNames:x,itemStyle:P,context:h,renderNodeActions:I,renderNodeChildren:b,onSelect:y,onToggle:S,registerNodeElement:D}){let{node:f,depth:N}=e,v=f.collapsible===true||!!f.children?.length,E=!!f.disabled,T=f.selectable!==false&&!E,w=f.draggable!==false&&!E,{attributes:L,listeners:O,setNodeRef:H,setActivatorNodeRef:B,transform:X,transition:Y,isDragging:_}=useSortable({id:f.id,disabled:!w,animateLayoutChanges:Ps,transition:Ss}),{role:R,tabIndex:re,"aria-disabled":G,...te}=L,K=l==="row"?O:void 0,Q=l==="handle"?{...L,...O}:void 0,be={node:f,depth:N,expanded:n,selected:t,dragging:_||i,disabled:E,context:f.context??h},M={transform:CSS.Transform.toString(X),transition:Y},z=useCallback(U=>{H(U),D?.(f.id,U);},[f.id,D,H]);return jsxs("div",{style:M,className:a("min-w-0",x?.item,f.className,_&&"relative z-20",i&&"opacity-0"),children:[jsx(yn,{node:f,depth:N,indentSize:d,selected:t,multiple:o,expanded:n,active:_||i,over:s,hasChildren:v,disabled:E,selectable:T,draggable:w,activationMode:l,dragHandleLabel:u,expandLabel:m,collapseLabel:g,themeSlots:c,classNames:x,itemClassName:f.itemClassName,itemStyle:P,sortableAttributes:te,sortableListeners:K,handleListeners:Q,renderNodeActions:I,renderContext:be,rowRef:z,dragHandleRef:l==="handle"?B:void 0,onSelect:()=>y?.(f),onToggle:()=>S(f.id)}),b?jsx("div",{className:a("min-w-0",x?.children,f.childrenClassName),children:b(be)}):null]})}r(_s,"DraggableTreeItem");function yn({node:e,depth:t,indentSize:o,selected:n,multiple:i,expanded:s,active:d,over:l,hasChildren:u,disabled:m,selectable:g,draggable:c,activationMode:x,dragHandleLabel:P,expandLabel:h,collapseLabel:I,themeSlots:b,classNames:y,itemClassName:S,itemStyle:D,sortableAttributes:f,sortableListeners:N,handleListeners:v,renderNodeActions:E,renderContext:T,rowRef:w,dragHandleRef:L,onSelect:O,onToggle:H}){return jsxs("div",{ref:w,"data-data-explorer-draggable-tree-item":true,className:a(b.treeNodeButton,"min-h-8 touch-none border border-transparent bg-background/70 py-0 pl-1 pr-2 font-medium",g&&"cursor-pointer",c&&x==="row"&&"cursor-grab active:cursor-grabbing",n&&b.treeNodeSelected,m&&b.treeNodeDisabled,d&&b.treeNodeDragging,l&&"border-primary/30 bg-primary/[0.08] ring-1 ring-primary/15",n&&y?.itemSelected,m&&y?.itemDisabled,d&&y?.itemDragging,l&&y?.itemOver,y?.itemButton,S),style:{...D,paddingLeft:`${t*o+4}px`},role:"treeitem","aria-selected":n||void 0,"aria-checked":i?n:void 0,"aria-disabled":m||void 0,"aria-expanded":u?s:void 0,"aria-label":e.ariaLabel,tabIndex:g?0:-1,...f,...N,onClick:()=>{g&&O?.();},onKeyDown:B=>{B.target===B.currentTarget&&g&&(B.key!=="Enter"&&B.key!==" "||(B.preventDefault(),O?.()));},children:[c?jsx("span",{ref:L,className:a(b.treeNodeDragHandle,"opacity-100",y?.dragHandle),"aria-label":P,title:P,...v,onClick:B=>B.stopPropagation(),children:jsx(Is,{})}):jsx("span",{className:a("h-5 w-5 shrink-0",y?.dragHandle)}),u?jsx("button",{type:"button",className:a(b.treeNodeToggle,y?.toggle),"aria-label":s?I:h,onClick:B=>{B.stopPropagation(),H?.();},children:jsx(Ms,{expanded:s})}):jsx("span",{className:a(b.treeNodeToggle,y?.toggle)}),i?jsx("span",{onClick:B=>B.stopPropagation(),onKeyDown:B=>B.stopPropagation(),children:jsx(fn,{"aria-label":e.ariaLabel??(typeof e.label=="string"?e.label:e.id),checked:n,disabled:m||!g,onChange:()=>O?.()})}):null,e.icon?jsx("span",{className:a(b.treeNodeIcon,y?.icon),children:e.icon}):null,jsxs("span",{className:a("flex min-w-0 flex-1 flex-col",y?.itemContent),children:[jsx("span",{className:a(b.treeNodeLabel,y?.label),children:e.label}),e.description?jsx("span",{className:a(b.treeNodeDescription,y?.description),children:e.description}):null]}),e.meta?jsx("span",{className:a(b.treeNodeMeta,y?.meta),children:e.meta}):null,e.badge?jsx("span",{className:a(b.treeNodeBadge,y?.badge),children:e.badge}):null,E?jsx("span",{className:a("ml-1 shrink-0",y?.actions),children:E(T)}):null]})}r(yn,"TreeItemRow");function Vs({nodes:e,context:t,selectedNodeId:o,selectionMode:n="single",selectedNodeIds:i=[],onSelectedNodeIdsChange:s,dragScope:d="tree",expandedNodeIds:l,defaultExpandedNodeIds:u,resetExpansionKey:m,indentSize:g=16,activationMode:c="row",loading:x,empty:P,labels:h,appearance:I,itemRadius:b,className:y,classNames:S,renderNodeActions:D,renderNodeChildren:f,onSelectNode:N,onExpandedNodeIdsChange:v,onDragEnd:E}){let T=le(pe(I)),[w,L]=useState(()=>xn(e,u)),[O,H]=useState(),[B,X]=useState(),[Y,_]=useState(),R=useRef(new Map),re=Rs(b,T.radius),G=re?{borderRadius:re}:void 0,te={width:B?.width,height:B?.height,borderRadius:re},K=useSensors(useSensor(PointerSensor,{activationConstraint:{distance:4}}),useSensor(KeyboardSensor,{coordinateGetter:sortableKeyboardCoordinates}));useEffect(()=>{L(xn(e,u));},[u,m]);let Q=l!==void 0?new Set(l):w,be=useMemo(()=>Ns(e,Q),[e,Q]),M=useMemo(()=>{let F=new Map;for(let q of be)F.set(q.node.id,q);return F},[be]),z=O?M.get(O):void 0,U=r(F=>n==="multiple"?i.includes(F):o===F,"isSelected"),J=be.map(F=>F.node.id),ne=useCallback((F,q)=>{q?R.current.set(F,q):R.current.delete(F);},[]),W=useCallback(()=>{H(void 0),X(void 0),_(void 0);},[]),ee=r((F,q)=>{let ge=new Set(Q);q?ge.add(F):ge.delete(F),l===void 0&&L(ge),v?.([...ge]);},"setNodeExpanded"),ae=r(F=>{let q=String(F.active.id||"");H(q);let ge=q?R.current.get(q)?.getBoundingClientRect():void 0,ue=F.active.rect.current.initial,Ce=ge??ue,Pe=Es(F.activatorEvent),Oe=Ce?.width,st=Ce?.height,V=Ce?.left??(Pe?Pe.x-(Oe??0)/2:0),xe=Ce?.top??(Pe?Pe.y-(st??0)/2:0);X({initialLeft:V,initialTop:xe,left:V,top:xe,width:Oe,height:st});},"handleDragStart"),se=r(F=>{X(q=>q&&{...q,left:q.initialLeft+F.delta.x,top:q.initialTop+F.delta.y});},"handleDragMove"),ie=r(F=>{let q=String(F.active.id||""),ge=F.over?String(F.over.id||""):"";if(!q||!ge||!E){W();return}let ue=M.get(q),Ce=M.get(ge);if(!ue||!Ce){W();return}let Pe=Hs({flattenedNodes:be,activeEntry:ue,overEntry:Ce,dragOffsetX:F.delta.x,indentSize:g,dragScope:d});if(ue.parentId===Pe.parentId&&ue.index===Pe.index){W();return}let Oe={activeNode:ue.node,overNode:Ce.node,activeParentId:ue.parentId,overParentId:Ce.parentId,targetParentId:Pe.parentId,activeIndex:ue.index,overIndex:Ce.index,targetIndex:Pe.index,targetDepth:Pe.depth,sameParent:ue.parentId===Ce.parentId,targetSameParent:ue.parentId===Pe.parentId,context:t};E(Oe),W();},"handleDragEnd"),ce=z&&B?jsx("div",{"aria-hidden":"true",className:"pointer-events-none fixed z-[1000] min-w-0",style:{left:B.left,top:B.top,...te},children:jsx("div",{className:a("min-w-0 overflow-hidden shadow-lg",S?.overlay),style:te,children:jsx(yn,{node:z.node,depth:z.depth,indentSize:g,selected:U(z.node.id),multiple:n==="multiple",expanded:z.node.collapsible===false||Q.has(z.node.id),active:true,over:false,hasChildren:z.node.collapsible===true||!!z.node.children?.length,disabled:!!z.node.disabled,selectable:z.node.selectable!==false,draggable:z.node.draggable!==false,activationMode:c,dragHandleLabel:h?.dragHandle??"Drag",expandLabel:h?.expand??"Expand",collapseLabel:h?.collapse??"Collapse",themeSlots:T.slots,classNames:S,itemClassName:z.node.itemClassName,itemStyle:G,renderNodeActions:D,renderContext:{node:z.node,depth:z.depth,expanded:z.node.collapsible===false||Q.has(z.node.id),selected:U(z.node.id),dragging:true,disabled:!!z.node.disabled,context:z.node.context??t}})})}):null;return x?jsx("div",{className:a(T.slots.treeRoot,S?.root,y),children:jsx("div",{className:a(T.slots.treeLoading,S?.loading),children:h?.loading??"Loading..."})}):e.length===0?jsx("div",{className:a(T.slots.treeRoot,S?.root,y),children:jsx("div",{className:a(T.slots.treeEmpty,S?.empty),children:P??h?.empty??"No data"})}):jsxs(DndContext,{sensors:K,collisionDetection:F=>closestCenter(d==="siblings"&&z?{...F,droppableContainers:F.droppableContainers.filter(q=>M.get(String(q.id))?.parentId===z.parentId)}:F),onDragStart:ae,onDragMove:se,onDragOver:F=>{_(F.over?String(F.over.id||""):void 0);},onDragEnd:ie,onDragCancel:W,children:[jsx(SortableContext,{items:J,strategy:verticalListSortingStrategy,children:jsx("div",{className:a(T.slots.treeRoot,"space-y-1 overflow-visible",S?.root,y),role:"tree","aria-multiselectable":n==="multiple"||void 0,children:jsx("div",{className:a("min-w-0 space-y-1",S?.list),children:be.map(F=>{let q=F.node,ge=q.collapsible===false||Q.has(q.id);return jsx(_s,{entry:F,selected:U(q.id),multiple:n==="multiple",expanded:ge,active:O===q.id,over:Y===q.id&&O!==q.id,indentSize:g,activationMode:c,dragHandleLabel:h?.dragHandle??"Drag",expandLabel:h?.expand??"Expand",collapseLabel:h?.collapse??"Collapse",themeSlots:T.slots,classNames:S,itemStyle:G,context:t,renderNodeActions:D,renderNodeChildren:f,onSelect:ue=>{ue.disabled||ue.selectable===false||(n==="multiple"?s?.(U(ue.id)?i.filter(Ce=>Ce!==ue.id):[...i,ue.id]):N?.(ue,t));},onToggle:ue=>ee(ue,!ge),registerNodeElement:ne},q.id)})})})}),typeof document>"u"?ce:ce?createPortal(ce,document.body):null]})}r(Vs,"DataExplorerDraggableTree");function Fs(){return jsxs("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",className:"h-4 w-4",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",children:[jsx("circle",{cx:"12",cy:"12",r:"1"}),jsx("circle",{cx:"19",cy:"12",r:"1"}),jsx("circle",{cx:"5",cy:"12",r:"1"})]})}r(Fs,"MoreIcon");function ar({item:e,itemId:t=e?.id,source:o=e?.source,actions:n=[],label:i="Actions",triggerLabel:s="Open actions",triggerIcon:d,align:l="end",sideOffset:u=6,appearance:m,className:g,classNames:c}){let[x,P]=useState(false),h=le(pe(m)),I={itemId:t,item:e,source:o},b=n.filter(y=>fe(y.visible,I)??true);return b.length===0?null:jsx("span",{className:a("inline-flex",c?.root),children:jsxs(he.Root,{open:x,onOpenChange:P,children:[jsx(he.Trigger,{asChild:true,children:jsxs("button",{type:"button","aria-label":s,className:a(h.slots.menuTrigger,c?.trigger,g),onClick:y=>y.stopPropagation(),children:[d??jsx(Fs,{}),jsx("span",{className:"sr-only",children:s})]})}),jsx(he.Portal,{children:jsxs(he.Content,{align:l,sideOffset:u,className:a(h.slots.menuContent,c?.content),style:h.styles.menuContent,onClick:y=>y.stopPropagation(),children:[i?jsxs(Fragment,{children:[jsx(he.Label,{className:a(h.slots.menuLabel,c?.label),children:i}),jsx(he.Separator,{className:a(h.slots.menuSeparator,c?.separator)})]}):null,b.map(y=>{let S=(fe(y.disabled,I)??false)||(fe(y.loading,I)??false);return y.render?jsxs("div",{children:[y.separatorBefore?jsx(he.Separator,{className:a(h.slots.menuSeparator,c?.separator)}):null,y.render(I),y.separatorAfter?jsx(he.Separator,{className:a(h.slots.menuSeparator,c?.separator)}):null]},y.id):jsxs("div",{children:[y.separatorBefore?jsx(he.Separator,{className:a("-mx-1 my-1 h-px bg-border",c?.separator)}):null,jsxs(he.Item,{title:y.title,disabled:S,className:a(h.slots.menuItem,Et(h,y.tone),c?.item,y.className),style:h.styles.menuItem,onSelect:()=>{!y.onAction||S||y.onAction(I);},onContextMenu:D=>{!y.onContextAction||S||(D.preventDefault(),D.stopPropagation(),P(false),y.onContextAction(I));},children:[y.icon?jsx("span",{className:a(h.slots.menuItemIcon,c?.itemIcon),children:y.icon}):null,jsx("span",{className:a(h.slots.menuItemLabel,c?.itemLabel),children:y.label})]}),y.separatorAfter?jsx(he.Separator,{className:a(h.slots.menuSeparator,c?.separator)}):null]},y.id)})]})})]})})}r(ar,"DataExplorerDisplayActionMenu");function Ws(e){return e?Array.isArray(e)?e.filter(Boolean):[e]:[]}r(Ws,"normalizeMedia");function js(e){return String(e||"unknown").toLowerCase()}r(js,"resolveMediaKind");function Qt({media:e,fallbackTitle:t,empty:o,className:n,classNames:i,onOpen:s}){let l=Ws(e)[0];if(!l)return o?jsx("div",{className:a("flex min-h-24 items-center justify-center bg-muted/30 text-sm text-muted-foreground",i?.placeholder,n),children:o}):null;if(l.node)return jsx("div",{className:a("min-w-0 overflow-hidden",i?.root,n),children:l.node});let u=js(l.kind),m=String(l.src||l.thumbnail||"").trim(),g=l.title??t,c=l.alt||(typeof g=="string"?g:"preview"),x=typeof s=="function",P=m?u==="image"||u==="unknown"?jsx("img",{src:m,style:Ot(m),alt:c,className:a("h-auto w-full object-contain",i?.media),loading:"lazy",decoding:"async",draggable:false}):u==="video"?jsx("video",{src:m,className:a("h-auto w-full",i?.media),controls:true,preload:"metadata"}):u==="audio"?jsx("audio",{src:m,className:a("w-full",i?.media),controls:true,preload:"metadata"}):jsxs("div",{className:a("flex min-h-24 flex-col items-center justify-center gap-1 bg-muted/30 p-4 text-center text-sm text-muted-foreground",i?.placeholder),children:[g?jsx("span",{className:a("max-w-full truncate",i?.title),children:g}):null,jsx("span",{className:"max-w-full truncate",children:m})]}):jsx("div",{className:a("flex min-h-24 items-center justify-center bg-muted/30 text-sm text-muted-foreground",i?.placeholder),children:g||"No preview"});return x?jsx("button",{type:"button",className:a("block min-w-0 overflow-hidden text-left",i?.root,n),onClick:()=>s?.(l,0),children:P}):jsx("div",{className:a("min-w-0 overflow-hidden",i?.root,n),children:P})}r(Qt,"DataExplorerDisplayMedia");function $s(e){return e?Array.isArray(e)?e.every(t=>!!t&&typeof t=="object"&&("src"in t||"thumbnail"in t||"node"in t||"kind"in t)):typeof e=="object"&&("src"in e||"thumbnail"in e||"node"in e||"kind"in e):false}r($s,"isDisplayMedia");function Us(e){if(e?.length)return jsx(Fragment,{children:e.map((t,o)=>jsx("span",{title:t.title,className:a("inline-flex max-w-full items-center rounded-full border border-border/60 px-2 py-0.5 text-xs font-medium",t.tone==="primary"&&"border-primary/30 bg-primary/10 text-primary",t.tone==="success"&&"border-[hsl(var(--success,142_72%_29%)_/_0.30)] bg-[hsl(var(--success,142_72%_29%)_/_0.10)] text-[hsl(var(--success,142_72%_29%))]",t.tone==="warning"&&"border-[hsl(var(--warning,45_93%_47%)_/_0.30)] bg-[hsl(var(--warning,45_93%_47%)_/_0.10)] text-[hsl(var(--warning-foreground,28_73%_26%))]",t.tone==="danger"&&"border-destructive/30 bg-destructive/10 text-destructive-text",t.tone==="muted"&&"bg-muted text-muted-foreground"),children:jsx("span",{className:"truncate",children:t.label})},t.id??o))})}r(Us,"renderBadges");function qs(e){if(e?.length)return jsx("dl",{className:"grid min-w-0 grid-cols-1 gap-2 text-xs sm:grid-cols-2",children:e.map((t,o)=>jsxs("div",{className:"min-w-0",children:[t.label?jsx("dt",{className:"truncate text-muted-foreground",title:t.title,children:t.label}):null,jsx("dd",{className:"mt-0.5 min-w-0 truncate text-foreground",children:t.value})]},t.id??o))})}r(qs,"renderMetadata");function Ks(e){if(e?.length)return jsx("div",{className:"flex min-w-0 flex-wrap gap-1.5",children:e.map((t,o)=>jsx("span",{className:"max-w-full truncate rounded-full bg-muted px-2 py-0.5 text-xs text-muted-foreground",children:t},o))})}r(Ks,"renderKeywords");function Lt({item:e,title:t=e?.title,description:o=e?.description,badges:n=Us(e?.badges),meta:i=e?.status,actions:s,media:d=e?.media,header:l,headerLeading:u,headerContent:m,overlay:g,footer:c,children:x,selected:P=e?.selected,disabled:h=e?.disabled,interactive:I,role:b,tabIndex:y,appearance:S,className:D,classNames:f,onClick:N,onKeyDown:v}){let E=le(pe(S)),T=I??!!(N||v),L=l!==void 0?!!l:!!(u||m||t||o||n||i||s),O=$s(d)?jsx(Qt,{media:d,fallbackTitle:t}):d,H=qs(e?.metadata),B=Ks(e?.keywords),X=x!==void 0?x:H||B?jsxs(Fragment,{children:[H,B]}):void 0,Y=!!X;return jsxs("article",{className:a(E.slots.cardRoot,T&&!h&&E.slots.cardInteractive,P&&E.slots.cardSelected,h&&E.slots.cardDisabled,f?.root,D),"aria-disabled":h||void 0,role:b,tabIndex:y,style:E.styles.cardRoot,onClick:h?void 0:N,onKeyDown:h?void 0:v,children:[g?jsx("div",{className:a(f?.overlay),children:g}):null,L?jsx("div",{className:a(E.slots.cardHeader,f?.header),children:l!==void 0?l:jsxs("div",{className:a("flex min-w-0 items-start justify-between gap-3",f?.headerMain),children:[u?jsx("div",{className:a("flex shrink-0 items-center gap-2",f?.headerLeading),children:u}):null,jsx("div",{className:a("min-w-0 flex-1",f?.headerContent),children:m??jsxs(Fragment,{children:[t?jsx("div",{className:a("truncate text-sm font-semibold leading-none text-foreground",f?.title),children:t}):null,o?jsx("div",{className:a("mt-1 min-w-0 text-sm text-muted-foreground [overflow-wrap:anywhere]",f?.description),children:o}):null,n?jsx("div",{className:a("mt-2 flex flex-wrap items-center gap-2",f?.badges),children:n}):null]})}),i||s?jsxs("div",{className:"flex min-w-0 items-center gap-2",children:[i?jsx("div",{className:a("min-w-0 max-w-[12rem] truncate text-sm text-muted-foreground",f?.meta),children:i}):null,s?jsx("div",{className:a("flex shrink-0 items-center gap-2",f?.actions),children:s}):null]}):null]})}):null,O?jsx("div",{className:a(E.slots.cardMedia,f?.media),children:O}):null,Y?jsx("div",{className:a("min-w-0 px-4 pb-4",f?.body),children:X}):null,c?jsx("div",{className:a(E.slots.cardFooter,f?.footer),children:c}):null]})}r(Lt,"DataExplorerDisplayCard");function sr({media:e,title:t,description:o,meta:n,badges:i,actions:s,footer:d,children:l,className:u,classNames:m}){let g=!!t||!!o||!!n||!!i||!!s;return jsxs("article",{className:a("flex min-w-0 flex-col overflow-hidden rounded-lg border border-border/60 bg-background",m?.root,u),children:[e?jsx("div",{className:a("shrink-0 overflow-hidden",m?.media),children:e}):null,g?jsxs("div",{className:a("flex flex-col gap-3 p-4",m?.header),children:[jsxs("div",{className:"flex items-start justify-between gap-3",children:[jsxs("div",{className:"min-w-0 flex-1",children:[t?jsx("div",{className:a("truncate text-sm font-semibold text-foreground",m?.title),children:t}):null,o?jsx("div",{className:a("mt-1 text-sm text-muted-foreground",m?.description),children:o}):null]}),n||s?jsxs("div",{className:"flex shrink-0 items-center gap-2",children:[n?jsx("div",{className:a("text-sm text-muted-foreground",m?.meta),children:n}):null,s?jsx("div",{className:a("flex items-center gap-2",m?.actions),children:s}):null]}):null]}),i?jsx("div",{className:a("flex flex-wrap items-center gap-2",m?.badges),children:i}):null]}):null,l?jsx("div",{className:a("min-w-0 px-4 pb-4",m?.body),children:l}):null,d?jsx("div",{className:a("shrink-0 border-t border-border/60 px-4 py-3",m?.footer),children:d}):null]})}r(sr,"DataExplorerViewItemShell");function lr(e){let{item:t,index:o,itemId:n,context:i,capabilities:s,itemDefinition:d,className:l,selected:u,actions:m,onOpen:g,onSelectionChange:c}=e;if(d?.render)return jsx(Fragment,{children:d.render(e)});let x=typeof d?.shellProps=="function"?d.shellProps({item:t,index:o,itemId:n,context:i,capabilities:s,itemDefinition:d,className:l,selected:u,actions:m,onOpen:g,onSelectionChange:c}):d?.shellProps;return jsx(sr,{...x,className:l})}r(lr,"DataExplorerViewItem");function Qs(e){switch(e){case "list":return "flex min-h-0 flex-col gap-3";case "waterfall":return "columns-1 gap-4 sm:columns-2 lg:columns-3";default:return "grid min-h-0 gap-4"}}r(Qs,"getItemsClassName");function el(e){if(e==="waterfall")return "mb-4 break-inside-avoid"}r(el,"getDefaultItemClassName");function tl(e,t){return String(t)}r(tl,"defaultResolveItemId");function ol(e){return typeof e=="number"?`${dr(e,220)}px`:e}r(ol,"resolveMeasuredGridMinColumnWidth");function Dn(e,t,o){return Math.max(1,Math.ceil((e+o)/(t+o)))}r(Dn,"resolveMeasuredGridSpan");function dr(e,t){return typeof e=="number"&&Number.isFinite(e)&&e>0?e:t}r(dr,"resolvePositiveNumber");function rl(e,t){return typeof e=="number"&&Number.isFinite(e)&&e>=0?e:t}r(rl,"resolveNonNegativeNumber");function to({items:e,activeViewId:t,context:o,capabilities:n,className:i,classNames:s,empty:d,loading:l,loadingNode:u,footer:m,overlay:g,layout:c="grid",scrollable:x=true,wrapItems:P=true,measuredGrid:h,itemsStyle:I,itemStyle:b,selectedIds:y=[],getItemId:S,itemDefinition:D,renderItem:f,getItemClassName:N,onOpenItem:v,onSelectionChange:E}){let T=Array.isArray(e)?e:[],w=new Set(y),L=S??tl,O=h===true?{}:h&&typeof h=="object"?h:void 0,H=c==="grid"&&!!(O?.enabled??h),B=dr(O?.rowHeight,4),X=rl(O?.gap,8),Y=O?.minColumnWidth??"220px",_=useRef(new Map),R=useRef(new Map),re=useRef(new Map),G=useRef(null),[,te]=useState(0),K=typeof b=="function"?J=>b(J):()=>b;useEffect(()=>{if(!H||typeof ResizeObserver>"u")return;let J=new ResizeObserver(ne=>{let W=false;for(let ee of ne){let se=ee.target.dataset.dataExplorerItemId;if(!se)continue;let ie=Math.ceil(ee.contentRect.height),ce=Dn(ie,B,X);re.current.get(se)!==ce&&(re.current.set(se,ce),W=true);}W&&te(ee=>ee+1);});G.current=J;for(let ne of _.current.values())J.observe(ne);return ()=>{J.disconnect(),G.current===J&&(G.current=null);}},[H,X,B]),useEffect(()=>{if(!H){_.current.clear(),R.current.clear(),re.current.clear();return}let J=new Set(T.map((W,ee)=>L(W,ee))),ne=false;for(let W of re.current.keys())J.has(W)||(re.current.delete(W),ne=true);for(let[W,ee]of _.current.entries())J.has(W)||(G.current?.unobserve(ee),_.current.delete(W));for(let W of R.current.keys())J.has(W)||R.current.delete(W);ne&&te(W=>W+1);},[H,T,L]);let Q=useCallback(J=>{let ne=R.current.get(J);if(ne)return ne;let W=r(ee=>{let ae=_.current.get(J);ae&&ae!==ee&&(G.current?.unobserve(ae),_.current.delete(J)),ee&&(ee.dataset.dataExplorerItemId=J,_.current.set(J,ee),G.current?.observe(ee));},"callback");return R.current.set(J,W),W},[]),be=r(J=>{let ne=J.itemId;if(ne){let se=re.current.get(ne);if(se)return se}let W=O?.estimateItemHeight,ee=typeof W=="function"?W(J):typeof W=="number"?W:240,ae=dr(ee,240);return Dn(ae,B,X)},"getMeasuredGridSpan"),M=r(()=>H?{...I,gap:X,gridAutoFlow:"dense",gridAutoRows:B,gridTemplateColumns:`repeat(auto-fill, minmax(${ol(Y)}, 1fr))`}:I,"resolveMeasuredItemsStyle"),z=r(()=>l&&u?jsx("div",{className:a("flex items-center justify-center p-6 text-sm text-muted-foreground",s?.loading),children:u}):d?jsx("div",{className:a("flex items-center justify-center p-6 text-sm text-muted-foreground",s?.empty),children:d}):null,"renderStatus"),U=r((J,ne,W,ee)=>{if(!E)return;let ae=S?S(J,ne):W,se=ee?Array.from(new Set([...y,ae])):y.filter(ie=>ie!==ae);E(se);},"handleSelectionChange");return T.length===0&&!m&&!g?z():jsxs("div",{className:a("relative flex min-h-0 flex-1 flex-col overflow-hidden",s?.root,i),"data-view-id":t||void 0,children:[T.length>0?jsx("div",{className:a(Qs(c),x&&"overflow-auto",s?.items),style:M(),children:T.map((J,ne)=>{let W=L(J,ne),ee=w.has(W),se={item:J,index:ne,itemId:W,context:o,capabilities:n,itemDefinition:D,selected:ee,onOpen:v,onSelectionChange:r((ue,Ce)=>{U(ue,ne,W,Ce);},"selectionChange")},ie=a(el(c),s?.item,N?.({...se,className:s?.item})),ce={...se,className:ie},F=f?f(ce):jsx(lr,{...ce}),q=K(ce),ge=H?{...q,gridRowEnd:`span ${be(ce)}`}:q;return P?jsx("div",{className:ie,style:ge,children:H?jsx("div",{ref:Q(W),children:F}):F},W):H?jsx("div",{className:ie,style:ge,children:jsx("div",{ref:Q(W),children:F})},W):jsx(Fragment$1,{children:F},W)})}):z(),l&&u&&T.length>0?jsx("div",{className:a("shrink-0 p-3 text-sm text-muted-foreground",s?.loading),children:u}):null,m?jsx("div",{className:a("shrink-0",s?.footer),children:m}):null,g?jsx("div",{className:a("absolute inset-0 z-10",s?.overlay),children:g}):null]})}r(to,"DataExplorerViewCollection");function ur({className:e,classNames:t,...o}){return jsx(Lt,{...o,className:a("rounded-md",e),classNames:{...t,root:a("flex-row items-stretch",t?.root),media:a("w-28 shrink-0",t?.media),header:a("flex min-w-0 flex-1 items-center p-3",t?.header),body:a("px-3 pb-3",t?.body)}})}r(ur,"DataExplorerDisplayListItem");function Cn(e,t){if(e)return typeof e=="function"?e(t):e}r(Cn,"resolveDisplayItemProps");function il(e,t,o){let{item:n,layout:i}=e,s=!!t&&!n.disabled,d=o?.renderActions?o.renderActions(e):n.actions?.length?jsx(ar,{item:n,actions:n.actions,appearance:o?.appearance}):void 0,l={media:o?.renderMedia?o.renderMedia(e):void 0,actions:d,appearance:o?.appearance,interactive:s,onClick:s?()=>t?.(n):void 0};if(i==="list"){let m=Cn(o?.listItemProps,e);return jsx(ur,{...l,...m,item:n,className:a(l.className,m?.className)})}let u=Cn(o?.cardProps,e);return jsx(Lt,{...l,...u,item:n,className:a(l.className,u?.className)})}r(il,"renderDefaultItem");function sl({items:e,activeViewId:t="display",layout:o="grid",appearance:n,selectedIds:i,empty:s,loading:d,loadingNode:l,footer:u,overlay:m,className:g,classNames:c,scrollable:x,wrapItems:P,measuredGrid:h,itemsStyle:I,itemStyle:b,getItemClassName:y,cardProps:S,listItemProps:D,renderMedia:f,renderActions:N,renderItem:v,onOpenItem:E,onSelectionChange:T}){return jsx(to,{activeViewId:t,items:e,layout:o,selectedIds:i,className:g,classNames:c,empty:s,loading:d,loadingNode:l,footer:u,overlay:m,scrollable:x,wrapItems:P,measuredGrid:h,itemsStyle:I,itemStyle:typeof b=="function"?({item:w,index:L=0,itemId:O="",selected:H=false})=>b({item:w,index:L,itemId:O,selected:H,activeViewId:t,layout:o}):b,getItemId:w=>w.id,getItemClassName:y?({item:w,index:L=0,itemId:O="",selected:H=false})=>y({item:w,index:L,itemId:O,selected:H,activeViewId:t,layout:o}):void 0,renderItem:({item:w,index:L})=>(()=>{let O={item:w,index:L??0,itemId:w.id,selected:i?.includes(w.id)??false,activeViewId:t,layout:o};return v?v(w,O.index,O):il(O,E,{cardProps:S,listItemProps:D,appearance:n,renderMedia:f,renderActions:N})})(),onOpenItem:E,onSelectionChange:T})}r(sl,"DataExplorerDisplayCollectionView");function cr(e,t){let o=typeof e=="function"?e():e;if(o===null)return null;if(!o||typeof o!="object"||o.nodeType!==1)throw new TypeError(`${t} must resolve to an Element or null.`);return o}r(cr,"resolveContainerValue");function Tn({explicitProvided:e,explicitContainer:t,providerProvided:o,providerContainer:n,getDocument:i}){if(e)return cr(t,"BasePortal container");if(o)return cr(n,"MonkeysProvider portal.container");if(!i)return null;let s=i();if(s===null)return null;if(!s||typeof s!="object"||!("body"in s))throw new TypeError("MonkeysProvider environment.getDocument must resolve to a Document or null.");return cr(s.body,"MonkeysProvider environment.getDocument().body")}r(Tn,"resolveBasePortalContainer");function ul({mounted:e,explicitDisabled:t,explicitContainer:o,providerDisabled:n,providerContainer:i,getDocument:s}){let d=t??n??false;if(!e||d)return {mounted:e,disabled:d,shouldPortal:false,container:null,radixPortalProps:void 0};let l=Tn({explicitProvided:o!==void 0,explicitContainer:o,providerProvided:i!==void 0,providerContainer:i,getDocument:s});return l?{mounted:true,disabled:false,shouldPortal:true,container:l,radixPortalProps:Object.freeze({container:l})}:{mounted:true,disabled:false,shouldPortal:false,container:null,radixPortalProps:void 0}}r(ul,"resolveBaseOverlayPortalState");function cl(){return globalThis.document??null}r(cl,"getDefaultDocument");function Sn(e={}){let t=Mr(),o=Ir(),[n,i]=useState(false);return useEffect(()=>{i(true);},[]),ul({mounted:n,explicitDisabled:e.disabled,explicitContainer:e.container,providerDisabled:o.disabled,providerContainer:o.container,getDocument:t.getDocument??cl})}r(Sn,"useBaseOverlayPortal");function Ro(e,t){if(typeof e!="boolean")throw new TypeError(`BaseTooltip ${t} must be a boolean.`)}r(Ro,"validateBoolean");function bl(e){if(e!=="top"&&e!=="bottom"&&e!=="left"&&e!=="right")throw new TypeError('BaseTooltip placement must be "top", "bottom", "left", or "right".')}r(bl,"validatePlacement");function xl(e,t){return isValidElement(e)&&e.type!==Fragment$1?e:jsx("span",{tabIndex:!t&&Ue(e)?0:void 0,children:e})}r(xl,"normalizeTrigger");var Tt=forwardRef(r(function({content:t,children:o,open:n,defaultOpen:i=false,placement:s="top",disabled:d=false,portal:l=false,appearance:u,className:m,classNames:g,style:c,onOpenChange:x,...P},h){n!==void 0&&Ro(n,"open"),Ro(i,"defaultOpen"),Ro(d,"disabled"),Ro(l,"portal"),bl(s);let I=dt(u),b=je(),y=ut(I),S=Sn({disabled:!l}),[D,f]=useState(i),N=n!==void 0,v=!d&&Ue(t),T=v&&(N?n:D),w=l&&S.shouldPortal?"portaled":"inline",L=r(B=>{B&&!v||(N||f(B),x?.(B));},"handleOpenChange"),O=xl(o,d),H=v?jsx(mt.Content,{...b,side:s,sideOffset:8,collisionPadding:8,"data-monkeys-component":"tooltip","data-slot":"content","data-placement":s,"data-portal":w,"data-disabled":d||void 0,className:p(y.slots.tooltipContent,g?.content),style:y.styles.tooltip,children:t}):null;return jsx("span",{...b,...P,ref:h,"data-monkeys-component":"tooltip","data-slot":"root","data-state":T?"open":"closed","data-placement":s,"data-portal":w,"data-disabled":d||void 0,className:p(y.slots.tooltipRoot,g?.root,m),style:c,children:jsx(mt.Provider,{delayDuration:0,skipDelayDuration:0,disableHoverableContent:true,children:jsxs(mt.Root,{open:T,onOpenChange:L,delayDuration:0,disableHoverableContent:true,children:[jsx("span",{...b,"data-monkeys-component":"tooltip","data-slot":"trigger-wrapper","data-state":T?"open":"closed","data-placement":s,"data-portal":w,"data-disabled":d||void 0,className:p(y.slots.tooltipTrigger,g?.trigger),children:jsx(mt.Trigger,{asChild:true,...b,"data-monkeys-component":"tooltip","data-slot":"trigger","data-placement":s,"data-portal":w,"data-disabled":d||void 0,children:O})}),l&&S.shouldPortal?jsx(mt.Portal,{...S.radixPortalProps,children:H}):H]})})})},"BaseTooltip"));var Bn=1.18,Rn=16,En=1e6,mr=1e-6,Mn={topLeft:"left-4 top-4",top:"left-1/2 top-4 -translate-x-1/2",topRight:"right-4 top-4",left:"left-4 top-1/2 -translate-y-1/2",right:"right-4 top-1/2 -translate-y-1/2",bottomLeft:"bottom-4 left-4",bottom:"bottom-4 left-1/2 -translate-x-1/2",bottomRight:"bottom-4 right-4"},oo=r((e,t,o)=>Math.min(o,Math.max(t,e)),"clamp"),Mo=r(e=>e instanceof Element&&!!e.closest('[data-no-drag="true"],button,a,input,textarea,select,[contenteditable="true"],[role="button"]'),"isNoDragTarget");function kl(){return jsxs("svg",{viewBox:"0 0 24 24","aria-hidden":"true",className:"h-4 w-4",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",children:[jsx("path",{d:"M3 12a9 9 0 1 0 3-6.7"}),jsx("path",{d:"M3 4v6h6"})]})}r(kl,"ResetIcon");function Dl(){return jsxs("svg",{viewBox:"0 0 24 24","aria-hidden":"true",className:"h-4 w-4",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",children:[jsx("path",{d:"M12 5v14"}),jsx("path",{d:"M5 12h14"})]})}r(Dl,"PlusIcon");function Cl(){return jsx("svg",{viewBox:"0 0 24 24","aria-hidden":"true",className:"h-4 w-4",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",children:jsx("path",{d:"M5 12h14"})})}r(Cl,"MinusIcon");var Tl=forwardRef(r(function({src:t,rotation:o=0,flipX:n=false,flipY:i=false,alt:s="Preview image",empty:d="No image preview",actions:l,actionContext:u,toolbarActions:m,zoomStep:g=Bn,stagePadding:c=Rn,minScale:x=mr,maxScale:P=En,wheelZoom:h="plain",doubleClickAction:I="reset",panEnabled:b=true,keyboardEnabled:y=true,slots:S,overlay:D,imageOverlay:f,controlsPosition:N="bottomRight",renderControls:v,onScaleChange:E,controlsVisible:T=true,zoomLabelVisible:w=false,resetLabel:L="Reset image view",zoomInLabel:O="Zoom in",zoomOutLabel:H="Zoom out",originalSizeLabel:B="Original size",appearance:X,className:Y,classNames:_,onLoad:R,onError:re},G){let te=le(X??{background:"dark-stage"}),K=typeof t=="string"?t.trim():"",Q=useRef(null),be=useRef(null),M=useRef({scale:1,translateX:c,translateY:c}),z=useRef(void 0),[U,J]=useState(null),[ne,W]=useState(false),ee=useRef("page"),[{scale:ae,translateX:se,translateY:ie},ce]=useState(()=>({scale:1,translateX:c,translateY:c}));useLayoutEffect(()=>{M.current={scale:ae,translateX:se,translateY:ie};},[ae,se,ie]),useLayoutEffect(()=>{J(null),ee.current="page";let C=z.current?.pointerId;C!==void 0&&Q.current?.hasPointerCapture(C)&&Q.current.releasePointerCapture(C),z.current=void 0,W(false),ce({scale:1,translateX:0,translateY:0});},[K]);let F=useRef(E);F.current=E,useEffect(()=>{U&&F.current?.(ae);},[ae,U]);let q=Number.isFinite(x)?Math.max(mr,x):mr,ge=Number.isFinite(P)?Math.max(q,P):En,ue=Number.isFinite(g)&&g>1?g:Bn,Ce=Number.isFinite(c)&&c>=0?c:Rn,Pe=Number.isFinite(o)?o%360:0,Oe=useCallback(C=>{let A=Pe*Math.PI/180,j=Math.abs(Math.cos(A)),ye=Math.abs(Math.sin(A));return {width:Math.round((C.width*j+C.height*ye)*1e6)/1e6,height:Math.round((C.width*ye+C.height*j)*1e6)/1e6}},[Pe]),st=U?Oe(U):null,V=useCallback((C,A="page")=>{ee.current=A;let j=Q.current,ye=C??U;if(!j||!ye)return;let Te=Oe(ye),We=Math.max(0,j.clientWidth-Ce*2),Rt=Math.max(0,j.clientHeight-Ce*2);if(We<=0||Rt<=0||Te.width<=0||Te.height<=0)return;let Ht=A==="width"?We/Te.width:Math.min(We/Te.width,Rt/Te.height),ke=oo(Ht,q,ge),so=Te.width*ke,Qn=Te.height*ke;ce({scale:ke,translateX:(j.clientWidth-so)/2,translateY:(j.clientHeight-Qn)/2});},[U,ge,q,Ce,Oe]),xe=useCallback((C,A)=>{if(!Number.isFinite(C)||!Number.isFinite(A)||C<=0||A<=0)return;let j=be.current;if(be.current={width:C,height:A},!j||!K)return;if(ee.current&&U){V(U,ee.current);return}let ye=(C-j.width)/2,Te=(A-j.height)/2;ye===0&&Te===0||ce(We=>({scale:We.scale,translateX:We.translateX+ye,translateY:We.translateY+Te}));},[K,U,V]);useLayoutEffect(()=>{let C=Q.current;if(!C)return;if(xe(C.clientWidth,C.clientHeight),typeof ResizeObserver<"u"){let j=new ResizeObserver(ye=>{let Te=ye[0];Te&&xe(Te.contentRect.width,Te.contentRect.height);});return j.observe(C),()=>j.disconnect()}let A=r(()=>{xe(C.clientWidth,C.clientHeight);},"handleResize");return window.addEventListener("resize",A),()=>window.removeEventListener("resize",A)},[xe]);let tt=useCallback((C,A,j)=>{!Number.isFinite(C)||C===1||!Number.isFinite(A)||!Number.isFinite(j)||(ee.current=null,ce(ye=>{let Te=oo(ye.scale*C,q,ge);if(!Number.isFinite(Te)||Te===ye.scale)return ye;let We=Te/ye.scale;return {scale:Te,translateX:A-(A-ye.translateX)*We,translateY:j-(j-ye.translateY)*We}}));},[ge,q]);useEffect(()=>{let C=Q.current;if(!C||!K||!U)return;let A=r(j=>{if(Mo(j.target)||h==="disabled"||h==="modifier"&&!(j.ctrlKey||j.metaKey)||h==="plain"&&(j.ctrlKey||j.metaKey))return;j.preventDefault();let ye=C.getBoundingClientRect(),Te=j.clientX-ye.left,We=j.clientY-ye.top,Rt=j.deltaY*(j.deltaMode===1?16:j.deltaMode===2?C.clientHeight:1),Ht=Math.pow(ue,-oo(Rt,-1e3,1e3)/100);tt(Ht,Te,We);},"handleWheel");return C.addEventListener("wheel",A,{passive:false}),()=>C.removeEventListener("wheel",A)},[K,U,ue,tt,h]),useLayoutEffect(()=>{let C=Q.current;if(!C||!U)return;let A=M.current.scale,j=oo(A,q,ge);j!==A&&tt(j/A,C.clientWidth/2,C.clientHeight/2);},[U,q,ge,tt]);let Ho=useCallback(C=>{if(C.button!==0||!b||!K||!U||Mo(C.target))return;let A=Q.current;A&&(C.preventDefault(),A.setPointerCapture(C.pointerId),A.focus({preventScroll:true}),ee.current=null,z.current={pointerId:C.pointerId,startClientX:C.clientX,startClientY:C.clientY,startTranslateX:M.current.translateX,startTranslateY:M.current.translateY},W(true));},[K,U,b]),wr=useCallback(C=>{let A=z.current;!A||A.pointerId!==C.pointerId||(C.preventDefault(),ce({scale:M.current.scale,translateX:A.startTranslateX+C.clientX-A.startClientX,translateY:A.startTranslateY+C.clientY-A.startClientY}));},[]),k=useCallback(C=>{let A=z.current;if(!A||A.pointerId!==C.pointerId)return;z.current=void 0,W(false);let j=Q.current;j?.hasPointerCapture(C.pointerId)&&j.releasePointerCapture(C.pointerId);},[]),oe=useCallback(()=>{let C=Q.current;if(!C||!U)return;ee.current=null;let A=Oe(U),j=oo(1,q,ge);ce({scale:j,translateX:(C.clientWidth-A.width*j)/2,translateY:(C.clientHeight-A.height*j)/2});},[U,q,ge,Oe]),De=useCallback(C=>{!K||!U||Mo(C.target)||(I==="reset"&&V(),I==="original-size"&&oe());},[K,U,V,oe,I]),Re=useCallback(C=>{let A=Q.current;!A||!U||tt(C,A.clientWidth/2,A.clientHeight/2);},[U,tt]),$={scale:ae,ready:!!(K&&U),canZoomIn:!!(U&&ae<ge),canZoomOut:!!(U&&ae>q),zoomIn:r(()=>Re(ue),"zoomIn"),zoomOut:r(()=>Re(1/ue),"zoomOut"),reset:r(()=>V(),"reset"),fitWidth:r(()=>V(void 0,"width"),"fitWidth"),originalSize:oe};return useImperativeHandle(G,()=>$),jsxs("div",{ref:Q,"data-image-preview":true,tabIndex:y?0:void 0,onKeyDown:C=>{if(!y||!$.ready||Mo(C.target))return;let A=C.key==="+"||C.key==="="?$.zoomIn:C.key==="-"?$.zoomOut:C.key==="0"?$.reset:C.key==="1"?$.originalSize:void 0;A&&(C.preventDefault(),C.stopPropagation(),A());},className:twMerge(te.slots.previewRoot,K&&U&&b?ne?"cursor-grabbing":"cursor-grab":"cursor-default",_?.root,Y),onPointerDown:Ho,onPointerMove:wr,onPointerUp:k,onPointerCancel:k,onLostPointerCapture:k,onDoubleClick:De,style:{touchAction:b?"none":void 0,...te.styles.previewRoot},children:[K?jsx("div",{"data-image-transform":true,className:twMerge("absolute left-0 top-0 will-change-transform",_?.imageLayer),style:{visibility:U?"visible":"hidden",width:st?.width,height:st?.height,transform:`translate(${se}px, ${ie}px) scale(${ae})`,transformOrigin:"0 0"},children:jsxs("div",{"data-image-orientation":true,className:"absolute left-1/2 top-1/2",style:{width:U?.width,height:U?.height,transform:`translate(-50%, -50%) rotate(${Pe}deg) scaleX(${n?-1:1}) scaleY(${i?-1:1})`},children:[jsx("img",{src:K,style:Ot(K),alt:s,draggable:false,className:twMerge("pointer-events-none max-h-none max-w-none select-none",_?.image),onLoad:C=>{let A=C.currentTarget.naturalWidth,j=C.currentTarget.naturalHeight;if(!A||!j)return;let ye={width:A,height:j};J(ye),V(ye),R?.(ye);},onError:C=>{J(null),re?.(C);}},K),f?jsx("div",{className:"pointer-events-none absolute inset-0","data-image-coordinate-overlay":true,children:f}):null]})}):jsx("div",{className:twMerge(te.slots.previewPlaceholder,_?.placeholder),children:d}),D?jsx("div",{className:"pointer-events-none absolute inset-0","data-no-drag":"true",children:D}):null,Object.keys(Mn).map(C=>{let A=C==="topRight"&&(m?.length||l),j=C===N&&T;return !S?.[C]&&!A&&!j?null:jsxs("div",{"data-image-slot":C,"data-no-drag":"true",className:twMerge("absolute z-20 flex max-h-full max-w-full flex-col gap-2",Mn[C]),children:[S?.[C],A?jsxs("div",{"data-no-drag":"true",className:twMerge(te.slots.previewActions,"static",_?.actions),children:[m?.length?jsx(vt,{context:u,actions:m,layout:"inline",appearance:X??{background:"dark-stage"}}):null,l]}):null,j?v?v($):jsxs("div",{"data-no-drag":"true",className:twMerge(te.slots.previewControls,"static",_?.controls),children:[w?jsxs("span",{className:twMerge(te.slots.previewZoomLabel,_?.zoomLabel),children:[Math.round(ae*100),"%"]}):null,jsx(Tt,{content:H,portal:true,children:jsx("button",{type:"button","aria-label":H,disabled:!$.canZoomOut,className:twMerge(te.slots.previewControlButton,"disabled:cursor-not-allowed disabled:opacity-40",_?.controlButton),onClick:()=>Re(1/ue),children:jsx(Cl,{})})}),jsx(Tt,{content:O,portal:true,children:jsx("button",{type:"button","aria-label":O,disabled:!$.canZoomIn,className:twMerge(te.slots.previewControlButton,"disabled:cursor-not-allowed disabled:opacity-40",_?.controlButton),onClick:()=>Re(ue),children:jsx(Dl,{})})}),jsx(Tt,{content:L,portal:true,children:jsx("button",{type:"button","aria-label":L,disabled:!K||!U,className:twMerge(te.slots.previewControlButton,"disabled:cursor-not-allowed disabled:opacity-40",_?.controlButton),onClick:()=>V(),children:jsx(kl,{})})}),jsx(Tt,{content:B,portal:true,children:jsx("button",{type:"button","aria-label":B,disabled:!$.ready,className:twMerge(te.slots.previewControlButton,_?.controlButton),onClick:oe,children:jsx(Scan,{className:"h-4 w-4","aria-hidden":"true"})})})]}):null]},C)})]})},"DataExplorerImagePreview"));function Io(e,t){if(typeof e!="string")return;let o=e.trim();if(!o||/[\u0000-\u001f\u007f\\]/.test(o)||/^https?:/i.test(o)&&!/^https?:\/\//i.test(o))return;let n;try{n=new URL(o,"https://monkeys.invalid/");}catch{return}if(!(n.username||n.password)){if(n.protocol==="http:"||n.protocol==="https:"||t==="link"&&(n.protocol==="mailto:"||n.protocol==="tel:"))return o;if(n.protocol==="blob:"){if(n.pathname.startsWith("null/"))return o;try{let i=new URL(n.pathname);if(["https:","http:"].includes(i.protocol)&&!i.username&&!i.password)return o}catch{}}}}r(Io,"safeDisplayUrl");function In(e){if(typeof e!="string"||!e.trim())return;let t=e.split(",");for(let o of t){let n=o.trim().split(/\s+/);if(!Io(n[0],"media")||n.length>2||n.length===2&&!/^(?:[1-9]\d*w|(?:\d+(?:\.\d+)?|\.\d+)x)$/.test(n[1]))return}return e}r(In,"safeDisplaySrcSet");function Nn({kind:e}){return jsx(e==="image"?Image:e==="video"?Video:e==="audio"?Music2:FileText,{className:"h-6 w-6","aria-hidden":"true"})}r(Nn,"PreviewIcon");function Nl({src:e,kind:t="image",alt:o="Preview",title:n,aspectRatio:i="auto",fit:s="contain",controls:d=true,loading:l=false,empty:u="No preview available",error:m="Preview is unavailable right now.",className:g,style:c,classNames:x,mediaAttributes:P,onLoad:h,onError:I}){let[b,y]=useState(false),S=Io(e,"media")??"",D=Object.fromEntries(Object.entries(P??{}).flatMap(([E,T])=>{let w=E.toLowerCase();return w==="src"||w==="srcdoc"||w==="dangerouslysetinnerhtml"?[]:w==="srcset"?[["srcSet",In(T)]]:w==="poster"?[["poster",Io(T,"media")]]:[[E,T]]}));useEffect(()=>{y(false);},[S,t]);let f=r((E,T)=>jsx("div",{className:a("flex min-h-24 flex-col items-center justify-center gap-2 bg-muted/30 p-4 text-center text-sm text-muted-foreground",x?.placeholder,T),role:l?"status":"img","aria-label":typeof E=="string"?E:void 0,children:E}),"renderPlaceholder");if(l)return jsx("div",{className:a("min-w-0 overflow-hidden",x?.root,g),style:c,"aria-busy":"true",children:jsxs("div",{className:a("flex min-h-24 flex-col items-center justify-center gap-2 bg-muted/30 p-4 text-sm text-muted-foreground",x?.loading),children:[jsx(Loader2,{className:"h-5 w-5 animate-spin","aria-hidden":"true"}),n||"Loading preview..."]})});if(!S||b)return jsx("div",{className:a("min-w-0 overflow-hidden",x?.root,g),style:c,children:f(jsxs(Fragment,{children:[jsx(Nn,{kind:t}),jsx("span",{className:a("max-w-full truncate",b?x?.error:void 0),children:b?m:u}),n?jsx("span",{className:"max-w-full truncate text-xs",children:n}):null]}))});let N=r(()=>{y(true),I?.();},"handleError"),v=t==="image"?jsx(er,{...D,src:S,alt:o,fit:s,className:x?.media,loading:"lazy",decoding:"async",draggable:false,onLoad:h,onError:N}):t==="video"?jsx("video",{...D,src:S,className:a("block h-auto w-full",s==="cover"?"object-cover":"object-contain",x?.media),controls:d,preload:"metadata",onLoadedData:h,onError:N}):t==="audio"?jsx("audio",{...D,src:S,className:a("w-full",x?.media),controls:d,preload:"metadata",onCanPlay:h,onError:N}):f(jsxs(Fragment,{children:[jsx(Nn,{kind:"file"}),jsx("span",{className:"max-w-full truncate",children:n||S})]}));return t==="image"?jsx(Yt,{aspectRatio:i,className:a(x?.root,g),style:c,children:v}):jsx("div",{className:a("min-w-0 overflow-hidden",x?.root,g),style:c,children:v})}r(Nl,"DataExplorerMediaPreview");function Ll({sidebar:e,tree:t,toolbar:o,controls:n,notices:i,content:s,view:d,detail:l,appearance:u,className:m,classNames:g}){let c=pe(u),x=c?le(c):void 0,P=t??e,h=n??o,I=d??s;return jsx(vr,{appearance:c,children:jsxs("div",{className:a("flex h-full min-h-0 overflow-hidden",x?.slots.surfaceRoot,g?.root,m),style:x?.styles.surfaceRoot,children:[P?jsx("div",{className:a("min-h-0 shrink-0 overflow-hidden",g?.sidebar,g?.tree),children:P}):null,jsxs("div",{className:a("relative flex min-h-0 flex-1 flex-col overflow-hidden",g?.main),children:[h?jsx("div",{className:a("shrink-0",g?.toolbar,g?.controls),children:h}):null,i?jsx("div",{className:a("shrink-0",g?.notices),children:i}):null,jsx("div",{className:a("flex min-h-0 flex-1 flex-col overflow-hidden",g?.content,g?.view),children:I}),l?jsx("div",{className:a(g?.detail),children:l}):null]})]})})}r(Ll,"DataExplorerPage");function Al({item:e,selected:t,label:o,className:n,onToggleSelection:i}){return i?jsx("input",{type:"checkbox",checked:t,"aria-label":o,className:a("h-4 w-4 shrink-0 accent-primary",n),onChange:()=>i(e),onClick:s=>s.stopPropagation()}):null}r(Al,"DefaultCheckbox");function Hl({item:e,active:t,label:o,className:n,onToggleFavorite:i}){return i?jsxs("button",{type:"button","aria-pressed":t,title:o,className:a("inline-flex h-8 w-8 items-center justify-center rounded-md text-muted-foreground transition-colors hover:bg-muted hover:text-foreground",t&&"text-[hsl(var(--warning,45_93%_47%))]",n),onClick:s=>{s.stopPropagation(),i(e);},children:[jsx("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",className:"h-4 w-4",fill:t?"currentColor":"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",children:jsx("path",{d:"m12 2 3.1 6.3 6.9 1-5 4.9 1.2 6.8-6.2-3.3L5.8 21 7 14.2 2 9.3l6.9-1L12 2Z"})}),jsx("span",{className:"sr-only",children:o})]}):null}r(Hl,"DefaultFavorite");function _l({item:e,limit:t,classNames:o}){let n=e.keywords??[];if(n.length===0)return null;let i=n.slice(0,t),s=Math.max(0,n.length-i.length);return jsxs("div",{className:a("mt-2 flex flex-wrap gap-2",o?.keywords),children:[i.map((d,l)=>jsx("span",{className:a("max-w-full truncate rounded-full bg-muted px-2 py-0.5 text-xs text-muted-foreground",o?.keyword),title:typeof d=="string"?d:void 0,children:d},l)),s>0?jsxs("span",{className:a("rounded-full border border-border px-2 py-0.5 text-xs text-muted-foreground",o?.keywordOverflow),children:["+",s]}):null]})}r(_l,"renderKeywords");function Vl({item:e,selected:t=e.selected??false,active:o,disabled:n=e.disabled,hasMedia:i,showHeaderWithMedia:s=false,selectionVisible:d,favoriteVisible:l,overlayControlsAlwaysVisible:u,favoriteActive:m=false,favoriteLabel:g="Favorite",favoriteActiveLabel:c="Unfavorite",selectLabel:x="Select item",unselectLabel:P="Unselect item",actions:h,media:I,footer:b,checkbox:y,favorite:S,keywordLimit:D=3,appearance:f,className:N,classNames:v,onClick:E,onToggleSelection:T,onToggleFavorite:w}){let L=le(pe(f)),O=i??!!(I??e.media),H=!O||s,B=d??!!(t||T),X=l??!!(S||w),Y=m?c:g,R=y??(B?jsx(Al,{item:e,selected:t,label:t?P:x,className:v?.selectionControl,onToggleSelection:T}):null),re=S??(X?jsx(Hl,{item:e,active:m,label:Y,className:v?.favoriteControl,onToggleFavorite:w}):null),G=I??(e.media?jsx(Qt,{media:e.media,fallbackTitle:e.title}):void 0),te=H?jsxs("div",{className:a("flex flex-col",v?.header),children:[jsxs("div",{className:a("flex min-w-0 items-center justify-between gap-2",v?.headerMain),children:[jsxs("div",{className:"flex min-w-0 flex-1 items-center gap-2",children:[R,jsx("div",{className:"min-w-0 flex-1",children:e.title?jsx("h3",{className:a("truncate text-sm font-semibold leading-none",v?.title),children:e.title}):null})]}),re||h?jsxs("div",{className:"flex shrink-0 items-center gap-1",children:[re,h]}):null]}),_l({item:e,limit:D,classNames:v})]}):null,K=O&&(R||re||h)?jsx("div",{className:a("absolute inset-x-2 top-2 z-10",v?.overlay),children:jsxs("div",{className:a("flex items-start justify-between gap-1 transition-opacity",t||u?"opacity-100":"opacity-0 group-hover:opacity-100",v?.overlayControls),children:[R??jsx("span",{}),jsxs("div",{className:"flex items-center gap-1",children:[re,h?jsx("div",{className:a(v?.floatingActions),children:h}):null]})]})}):null;return jsx(Lt,{item:e,selected:t,disabled:n,appearance:f,className:a(L.slots.recordCardRoot,o&&L.slots.recordCardActive,v?.root,N),classNames:{overlay:v?.overlay,header:a(O?"p-3":"p-3 pb-2",v?.header),media:a("p-0 bg-muted/30",v?.media),footer:v?.footer},header:te,overlay:K,media:G?jsx("div",{className:a("relative overflow-hidden",v?.mediaFrame),children:G}):void 0,footer:b,children:null,onClick:E})}r(Vl,"DataExplorerRecordCard");var Fl={sm:"h-8 px-2.5 text-xs",md:"h-9 px-3 text-sm",lg:"h-10 px-3.5 text-base"},zl={sm:"h-8 w-8 px-0",md:"h-9 w-9 px-0",lg:"h-10 w-10 px-0"},gr={sm:"h-3.5 w-3.5",md:"h-4 w-4",lg:"h-5 w-5"};function No(e){return typeof e=="string"&&e.trim()?e:void 0}r(No,"nonEmptyText");function Wl(){return jsxs("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",className:"h-full w-full motion-safe:animate-spin motion-reduce:animate-none",fill:"none",children:[jsx("circle",{cx:"12",cy:"12",r:"9",className:"opacity-25",stroke:"currentColor",strokeWidth:"3"}),jsx("path",{className:"opacity-75",fill:"currentColor",d:"M12 3a9 9 0 0 1 9 9h-3a6 6 0 0 0-6-6V3Z"})]})}r(Wl,"LoadingIcon");var Gt=forwardRef(r(function({children:t,label:o,icon:n,endIcon:i,type:s="button",title:d,ariaLabel:l,tone:u,size:m,active:g=false,iconOnly:c=false,disabled:x=false,loading:P=false,stopPropagation:h=false,appearance:I,variant:b,density:y,state:S,className:D,classNames:f,style:N,onClick:v,"aria-label":E,"aria-pressed":T,...w},L){for(let[M,z]of [["active",g],["iconOnly",c],["disabled",x],["loading",P],["stopPropagation",h]])if(typeof z!="boolean")throw new TypeError(`BaseButton ${M} must be a boolean.`);if(m!==void 0&&m!=="sm"&&m!=="md"&&m!=="lg")throw new TypeError('BaseButton size must be "sm", "md", or "lg".');if(u!==void 0&&u!=="default"&&u!=="primary"&&u!=="success"&&u!=="warning"&&u!=="danger"&&u!=="muted")throw new TypeError('BaseButton tone must be "default", "primary", "success", "warning", "danger", or "muted".');let O=dt(I),H=je(),B=ut({...O,variant:b,density:y,state:S}),X=t??o,Y=Ue(X)&&(typeof X!="string"||!!X.trim()),_=No(l)??No(E),R=typeof X=="string"?No(X):void 0,re=No(d);if(c&&!Y&&!_&&!re)throw new TypeError("BaseButton iconOnly requires ariaLabel, aria-label, title, or a renderable label.");let G=_??R??re,te=x||P,K=u??"default",Q=S??(P?"loading":x?"disabled":g?"active":"idle"),be=r(M=>{h&&M.stopPropagation(),!te&&v?.(M);},"handleClick");return jsxs("button",{...H,...w,ref:L,type:s,title:d,"aria-label":G,"aria-pressed":T??(g||void 0),"aria-busy":P||void 0,"data-variant":B.variant,"data-density":B.density,disabled:te,"data-monkeys-component":"button","data-slot":"root","data-state":Q,"data-tone":K,"data-size":m,"data-active":g||void 0,"data-loading":P||void 0,"data-disabled":te||void 0,"data-icon-only":c||void 0,className:p(B.slots.buttonBase,c&&B.slots.buttonIconOnly,m&&Fl[m],c&&m&&zl[m],Vr(B,u,g),te&&B.slots.buttonDisabled,f?.root,D),style:{...B.styles.button,...g?B.styles.buttonActive:void 0,...te?B.styles.buttonDisabled:void 0,...N},onClick:be,children:[P?jsx("span",{"data-slot":"icon","data-state":Q,"data-tone":K,"data-size":m,className:p(B.slots.buttonIcon,m&&gr[m],f?.icon),children:jsx(Wl,{})}):n?jsx("span",{"data-slot":"icon","data-state":Q,"data-tone":K,"data-size":m,className:p(B.slots.buttonIcon,m&&gr[m],f?.icon),children:n}):null,c?Ue(X)?jsx("span",{"data-slot":"label","data-state":Q,"data-tone":K,"data-size":m,className:"sr-only",children:X}):null:Ue(X)?jsx("span",{"data-slot":"label","data-state":Q,"data-tone":K,"data-size":m,className:p(B.slots.buttonLabel,f?.label),children:X}):null,!P&&i?jsx("span",{"data-slot":"end-icon","data-state":Q,"data-tone":K,"data-size":m,className:p(B.slots.buttonIcon,m&&gr[m],f?.icon,f?.endIcon),children:i}):null]})},"BaseButton"));function Lo(e,t){let o=I18nTextSchema.safeParse(e);if(!o.success)throw new TypeError("Invalid I18n display text");let n;try{n=Intl.getCanonicalLocales(t)[0]??"";}catch{n="";}let i=n.split("-")[0]??"";return o.data.values[n]??o.data.values[i]??o.data.values[o.data.defaultLocale]}r(Lo,"resolveI18nDisplayText");var Kl=r((e,t)=>{let o=t?Array.isArray(e)?e:e?[e]:[]:typeof e=="string"?[e]:[];return Array.from(new Set(o.filter(n=>typeof n=="string"&&n.length>0)))},"normalizeValues"),br=r(e=>e.textValue??(typeof e.label=="string"?e.label:e.value),"getOptionText");function Xl({value:e,activeValue:t,options:o=[],createOption:n,multiple:i=false,selectedListPlacement:s="below",placeholder:d="Select a record",triggerLabel:l,triggerIcon:u,searchPlaceholder:m="Search records",emptyState:g="No records found",endState:c,loadingState:x,loadingMoreState:P,errorState:h,loading:I=false,loadingMore:b=false,disabled:y=false,open:S,defaultOpen:D=false,searchValue:f,defaultSearchValue:N="",appearance:v,className:E,classNames:T,triggerProps:w,dataAttributes:L,onOpenChange:O,onListScroll:H,onSearchValueChange:B,onValueChange:X$1}){let{locale:Y}=Rr(),_=lt(),R=useRef(new Map),re=h&&typeof h=="object"&&"defaultLocale"in h?Lo(h,Y):h,G=c&&typeof c=="object"&&"defaultLocale"in c?Lo(c,Y):c,te=r(V=>{if(!V.labelI18n)return V;let xe=Lo(V.labelI18n,Y);return {...V,label:xe,textValue:xe}},"localizeOption"),K=o.map(te),Q=n&&te(n),be=ut(dt()),M=le(pe(v)),[z,U]=useState(D),[J,ne]=useState(N),W=S!==void 0,ee=W?S:z,ae=f!==void 0,se=ae?f:J,ie=useMemo(()=>Kl(e,i),[i,e]),ce=useMemo(()=>new Set(ie),[ie]),F=ie.map(V=>K.find(xe=>xe.value===V)??te(R.current.get(V)??{value:V,label:V}));useEffect(()=>{R.current=new Map(F.map(V=>[V.value,V]));},[F]);let q=Q?[Q,...K]:K,ge=F.length?i&&F.length>2?`${F.slice(0,2).map(V=>br(V)).join(", ")} +${F.length-2}`:F.map(br).join(", "):d;useEffect(()=>{if(!ee)return;let V=r(xe=>{xe.key==="Escape"&&O?.(false);},"handleKeyDown");return window.addEventListener("keydown",V),()=>window.removeEventListener("keydown",V)},[ee,O]);let ue=r(V=>{y||(W||U(V),O?.(V));},"setOpen"),Ce=r(V=>{ae||ne(V),B?.(V);},"setQuery"),Pe=r(V=>{if(!(y||V.disabled)){if(i){let xe=ce.has(V.value)?ie.filter(tt=>tt!==V.value):[...ie,V.value];X$1?.(xe);return}X$1?.(V.value),ue(false);}},"handleOptionClick"),Oe=r(V=>{y||X$1?.(ie.filter(xe=>xe!==V));},"removeValue"),st=i&&F.length>0?jsx("div",{className:a("mt-2 flex max-h-32 flex-wrap gap-1.5 overflow-y-auto",T?.selectedList),children:F.map(V=>jsxs("span",{className:a("inline-flex max-w-full items-center gap-1 rounded-md border border-border bg-muted px-2 py-1 text-xs",T?.selectedItem),children:[jsx("span",{className:a("min-w-0 truncate",T?.selectedItemLabel),children:V.label}),jsx(Gt,{type:"button",disabled:y,ariaLabel:_.multiSelect.removeOption({value:br(V)}),variant:"ghost",iconOnly:true,onClick:()=>Oe(V.value),className:a("shrink-0 rounded-md text-muted-foreground",T?.selectedItemRemove),style:{width:"calc(var(--spacing, 0.25rem) * 4)",height:"calc(var(--spacing, 0.25rem) * 4)",minWidth:0,minHeight:0,padding:0,borderWidth:0,background:"transparent"},icon:jsx(X,{className:"h-3 w-3","aria-hidden":"true"})})]},V.value))}):null;return jsxs("div",{...L?.root,className:a("relative min-w-0 w-full",T?.root,E),children:[jsxs(Bt.Root,{open:ee,onOpenChange:ue,children:[jsx(Bt.Trigger,{asChild:true,children:jsxs("button",{...w,...L?.trigger,type:"button",disabled:y,"aria-label":l,"aria-expanded":ee,className:a(M.slots.controlSelectTrigger,"relative pr-9",T?.trigger),children:[u,jsx("span",{...L?.triggerValue,className:a(M.slots.controlSelectValue,!F.length&&"text-muted-foreground",T?.triggerValue),children:ge}),jsx("span",{className:a(be.slots.selectChevron,ee&&"rotate-[225deg]"),"aria-hidden":"true"})]})}),jsx(Bt.Portal,{children:jsxs(Bt.Content,{...L?.content,align:"start",sideOffset:6,className:a("z-50 w-[var(--radix-popover-trigger-width)] max-w-[calc(100vw-2rem)] rounded-md border border-border bg-popover p-2 text-popover-foreground shadow-md",T?.content),onOpenAutoFocus:V=>V.preventDefault(),children:[jsxs("label",{className:a("flex h-9 items-center gap-2 rounded-md border border-border bg-background px-2 text-sm",T?.search),children:[jsx(Search,{className:"h-4 w-4 shrink-0 text-muted-foreground","aria-hidden":"true"}),jsx("input",{autoFocus:true,value:se,onChange:V=>Ce(V.target.value),placeholder:m,"aria-label":m,className:"min-w-0 flex-1 bg-transparent outline-hidden placeholder:text-muted-foreground"})]}),s==="content"?st:null,jsx("div",{className:a("mt-2 max-h-72 overflow-y-auto",T?.list),...L?.list,role:"listbox","aria-multiselectable":i||void 0,onScroll:H,children:I?jsxs("div",{...L?.loading,className:a("flex min-h-16 items-center justify-center gap-2 px-3 py-4 text-sm text-muted-foreground",T?.status),children:[jsx(Loader2,{className:"h-4 w-4 animate-spin","aria-hidden":"true"}),x??"Loading records..."]}):re?jsx("div",{...L?.error,className:a("px-3 py-4 text-sm text-destructive-text",T?.status),children:re}):q.length===0?jsx("div",{...L?.empty,className:a("px-3 py-4 text-sm text-muted-foreground",T?.status),children:g}):jsxs(Fragment,{children:[q.map(V=>{let xe=ce.has(V.value);return jsxs("button",{...L?.option,type:"button",role:"option","aria-selected":xe,"aria-current":t!==void 0&&V.value===t?"true":void 0,disabled:V.disabled,onClick:()=>Pe(V),className:a("flex w-full items-start gap-2 rounded-sm px-2.5 py-2 text-left text-sm transition-colors hover:bg-accent hover:text-accent-foreground disabled:pointer-events-none disabled:opacity-50",xe&&"bg-accent/60",T?.option),children:[jsx("span",{className:a("mt-0.5 flex h-4 w-4 shrink-0 items-center justify-center",T?.optionIndicator),children:xe?jsx(Check,{className:"h-4 w-4","aria-hidden":"true"}):null}),jsxs("span",{className:"min-w-0 flex-1",children:[jsx("span",{className:a("block truncate",T?.optionLabel),children:V.label}),V.description?jsx("span",{className:a("mt-0.5 block truncate text-xs text-muted-foreground",T?.optionDescription),children:V.description}):null]})]},V.value)}),b?jsxs("div",{...L?.loadingMore,className:a("flex items-center justify-center gap-2 px-3 py-2 text-xs text-muted-foreground",T?.status),children:[jsx(Loader2,{className:"h-3.5 w-3.5 animate-spin","aria-hidden":"true"}),P??"Loading more records..."]}):null]})}),!I&&!b&&!re&&q.length>0&&G?jsx("div",{className:a("mt-2 border-t border-border px-3 pt-2 text-xs text-muted-foreground",T?.status),role:"status",children:G}):null]})})]}),s==="below"?st:null]})}r(Xl,"DataExplorerRecordPicker");function Gn(e){try{let t=new URL(e.trim());return ["http:","https:"].includes(t.protocol)?t.href:void 0}catch{return}}r(Gn,"imageLink");function ed({accept:e,multiple:t=false,disabled:o=false,busy:n=false,title:i="Upload files",description:s,hint:d,busyLabel:l="Uploading...",icon:u,inputProps:m,className:g,classNames:c,onFilesSelected:x,renderPreview:P,replaceLabel:h,clearLabel:I,pasteLabel:b,renderActions:y,onClear:S,onChoose:D,onPasteClick:f,onUrlSelected:N,onInputError:v}){let E=P?.(),T=y?.(),w=useRef(null),[L,O]=useState(false),[H,B]=useState(false),X=useRef(true),Y=useRef(0),_=o||n,R=useRef({blocked:_,onFilesSelected:x,onUrlSelected:N,onInputError:v});R.current={blocked:_,onFilesSelected:x,onUrlSelected:N,onInputError:v},useEffect(()=>(X.current=true,()=>{X.current=false,Y.current++;}),[]),useEffect(()=>{_&&(Y.current++,B(false),O(false));},[_]);let re=r(M=>{let z=Array.from(M);!R.current.blocked&&z.length&&R.current.onFilesSelected?.(t?z:z.slice(0,1));},"emitFiles"),G=r(()=>{_||(Y.current++,B(false),D?D():w.current?.click());},"choose"),te=r(M=>{if(_)return false;if(M.files.length&&x)return Y.current++,B(false),re(M.files),true;let z=Gn(M.getData("text/plain"));return z&&N?(Y.current++,B(false),N(z),true):false},"acceptTransfer"),K=r(async()=>{if(_||H)return;let M=++Y.current,z=r(()=>X.current&&!R.current.blocked&&M===Y.current,"active");B(true);try{if(!navigator.clipboard?.read)throw new Error("Clipboard reading is unavailable.");let U=await navigator.clipboard.read();for(let J of U){let ne=J.types.find(W=>W.startsWith("image/"));if(ne&&R.current.onFilesSelected){let W=await J.getType(ne);z()&&re([new File([W],`clipboard.${ne.split("/")[1]}`,{type:ne})]);return}}for(let J of U){if(!J.types.includes("text/plain"))continue;let ne=Gn(await(await J.getType("text/plain")).text());if(ne&&R.current.onUrlSelected){z()&&R.current.onUrlSelected(ne);return}}z()&&R.current.onInputError?.("empty-clipboard");}catch{z()&&R.current.onInputError?.("clipboard-unavailable");}finally{X.current&&M===Y.current&&B(false);}},"paste"),Q=r((M,z,U)=>M?jsx("span",{"data-slot":U,className:a("max-w-full [overflow-wrap:anywhere]",z),children:M}):null,"renderText"),be=r((M,z,U)=>M?jsx(Tt,{content:M,portal:true,children:jsx(Gt,{label:M,iconOnly:true,icon:z,disabled:_||H,onClick:U})}):null,"action");return jsxs("div",{"data-monkeys-component":"data-explorer-upload-surface","data-state":n?"busy":L?"dragging":"idle",className:a("grid min-w-0 gap-global rounded-[var(--radius)] border border-border bg-muted/20 p-global transition-colors",!E&&"border-dashed",L&&"border-primary bg-primary/5",_&&"opacity-60",c?.root,g),tabIndex:_?-1:0,onPaste:M=>{te(M.clipboardData)&&(M.preventDefault(),M.stopPropagation());},onDragEnter:M=>{M.preventDefault(),_||O(true);},onDragOver:M=>M.preventDefault(),onDragLeave:M=>{M.relatedTarget instanceof Node&&M.currentTarget.contains(M.relatedTarget)||O(false);},onDrop:M=>{M.preventDefault(),O(false),te(M.dataTransfer)&&M.stopPropagation();},children:[!D&&jsx("input",{...m,ref:w,className:"sr-only",type:"file",accept:e,multiple:t,disabled:_,onChange:M=>{Y.current++,B(false),re(M.target.files??[]),M.target.value="";}}),E?jsxs(Fragment,{children:[jsx(Yt,{aspectRatio:"video",className:"rounded-[var(--radius)] bg-background",children:E}),jsxs("div",{className:"flex flex-wrap items-center justify-end gap-token-sm",children:[be(h,jsx(RefreshCw,{className:"h-4 w-4"}),G),be(b,jsx(Clipboard,{className:"h-4 w-4"}),f??K),S&&be(I,jsx(Trash2,{className:"h-4 w-4"}),()=>{Y.current++,B(false),S();}),T]})]}):jsxs(Fragment,{children:[jsxs("button",{type:"button",className:a("flex min-w-0 flex-col items-center gap-token-sm rounded-[var(--radius)] py-global text-center focus-visible:outline focus-visible:outline-primary",c?.button),disabled:_,onClick:G,children:[jsx("span",{className:a("text-muted-foreground",c?.icon),children:u??jsx(UploadCloud,{className:"h-8 w-8","aria-hidden":true})}),Q(n?l:i,a("text-sm font-medium text-foreground",c?.title),"title"),Q(s,a("text-xs text-muted-foreground",c?.description),"description"),Q(d,a("text-xs text-muted-foreground",c?.hint),"hint")]}),b&&jsx(Gt,{label:b,icon:jsx(Clipboard,{className:"h-4 w-4"}),disabled:_||H,onClick:f??K,className:"w-full"}),T]})]})}r(ed,"DataExplorerUploadSurface");function td(){return jsxs("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",className:"h-4 w-4",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",children:[jsx("circle",{cx:"11",cy:"11",r:"7"}),jsx("path",{d:"m20 20-3.5-3.5"})]})}r(td,"DefaultSearchIcon");function od({rootRef:e,dataAttributes:t,context:o,leading:n,leadingActions:i,searchVisible:s=true,searchValue:d="",searchPlaceholder:l="Search data...",searchIcon:u,viewOptions:m=[],activeViewId:g,actions:c,toolbarActions:x,appearance:P,children:h,className:I,classNames:b,onSearchChange:y,onSearchSubmit:S,onViewChange:D}){let f=r(E=>{E.preventDefault(),S?.(d);},"handleSubmit"),N=pe(P),v=le(N);return jsxs("div",{ref:e,...t,className:a(v.slots.toolbarRoot,b?.root,I),style:v.styles.toolbarRoot,children:[n||i?.length?jsxs("div",{className:a(v.slots.toolbarLeading,b?.leading),children:[n,i?.length?jsx(vt,{context:o,actions:i,layout:"inline",appearance:N,classNames:{action:b?.action,menuContent:b?.menuContent,menuItem:b?.menuItem}}):null]}):null,s?jsxs("form",{className:a(v.slots.toolbarSearch,b?.search),style:v.styles.toolbarSearch,onSubmit:f,children:[jsx("span",{className:a(v.slots.toolbarSearchIcon,b?.searchIcon),children:u??jsx(td,{})}),jsx("input",{value:d,placeholder:l,className:a(v.slots.toolbarSearchInput,b?.searchInput),onChange:E=>y?.(E.currentTarget.value)})]}):null,m.length>0?jsx("div",{className:a(v.slots.toolbarViewSwitch,b?.viewSwitch),style:v.styles.toolbarViewSwitch,children:m.map(E=>{let T=E.id===g;return jsxs("button",{type:"button",disabled:E.disabled,className:a(v.slots.toolbarViewButton,T&&v.slots.toolbarViewButtonActive,b?.viewButton),onClick:()=>D?.(E.id),children:[E.icon,E.label?jsx("span",{children:E.label}):null]},E.id)})}):null,x?.length?jsx(vt,{context:o,actions:x,layout:"toolbar",appearance:P,classNames:{root:b?.actions,action:b?.action,menuContent:b?.menuContent,menuItem:b?.menuItem}}):c||h?jsxs("div",{className:a(v.slots.toolbarActions,b?.actions),children:[c,h]}):null]})}r(od,"DataExplorerToolbarShell");function rd(e){if(!e||typeof e!="object")return;let t=e.children;return Array.isArray(t)?t:void 0}r(rd,"defaultGetChildren");function nd({nodes:e=[],context:t,capabilities:o,className:n,classNames:i,empty:s,selectedNodeId:d,getNodeId:l,getChildren:u=rd,renderNode:m,onSelect:g}){let c=Array.isArray(e)?e:[],x=r((P,h)=>P.map((I,b)=>{let y=l?l(I,b):`${h}-${b}`,S=u(I,b,h)??[],D=S.length>0,f=String(d??"")===String(y),N=D?x(S,h+1):null;return m?jsx("div",{className:"min-w-0",children:m({node:I,index:b,depth:h,context:t,capabilities:o,childNodes:S,hasChildren:D,selected:f,onSelect:g,renderChildren:r(()=>N,"renderChildren")})},y):N}),"renderTreeNodes");return c.length===0?s?jsx("div",{className:a(i?.empty),children:s}):null:jsx("div",{className:a("min-w-0",i?.root,n),children:x(c,0)})}r(nd,"DataExplorerTree");function ad({title:e,subtitle:t,toolbar:o,footer:n,children:i,appearance:s,className:d,classNames:l}){let u=le(pe(s)),m=!!e||!!t||!!o;return jsxs("section",{className:a(u.slots.treeShellRoot,l?.root,d),children:[m?jsxs("div",{className:a(u.slots.treeShellHeader,l?.header),children:[jsxs("div",{className:"min-w-0 flex-1",children:[e?jsx("div",{className:a(u.slots.treeShellTitle,l?.title),children:e}):null,t?jsx("div",{className:a(u.slots.treeShellSubtitle,l?.subtitle),children:t}):null]}),o?jsx("div",{className:a(u.slots.treeShellToolbar,l?.toolbar),children:o}):null]}):null,jsx("div",{className:a(u.slots.treeShellBody,l?.body),children:i}),n?jsx("div",{className:a(u.slots.treeShellFooter,l?.footer),children:n}):null]})}r(ad,"DataExplorerTreeShell");function qn({expanded:e}){return jsx("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",className:"h-3.5 w-3.5",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",children:jsx("path",{d:e?"m6 9 6 6 6-6":"m9 18 6-6-6-6"})})}r(qn,"ChevronIcon");function sd(){return jsxs("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",className:"h-4 w-4",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",children:[jsx("circle",{cx:"12",cy:"12",r:"1"}),jsx("circle",{cx:"12",cy:"5",r:"1"}),jsx("circle",{cx:"12",cy:"19",r:"1"})]})}r(sd,"MoreIcon");function ld(){return jsxs("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",className:"h-3.5 w-3.5",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",children:[jsx("circle",{cx:"9",cy:"6",r:"1"}),jsx("circle",{cx:"9",cy:"12",r:"1"}),jsx("circle",{cx:"9",cy:"18",r:"1"}),jsx("circle",{cx:"15",cy:"6",r:"1"}),jsx("circle",{cx:"15",cy:"12",r:"1"}),jsx("circle",{cx:"15",cy:"18",r:"1"})]})}r(ld,"GripIcon");function Yn(e,t){for(let o of e??[])o.defaultExpanded&&t.add(o.id),Yn(o.children,t);}r(Yn,"collectDefaultExpandedNodeIds");function Kn(e,t){let o=new Set(t??[]);for(let n of e)Yn(n.nodes,o);return o}r(Kn,"buildDefaultNodeExpandedSet");function Xn(e,t){let o=new Set(t??[]);for(let n of e)(n.hideHeader||n.defaultExpanded!==false)&&o.add(n.id);return o}r(Xn,"buildDefaultGroupExpandedSet");function Zn(e,t,o,n){for(let[i,s]of (e??[]).entries())n.set(s.id,{node:s,group:t,parentId:o,index:i}),Zn(s.children,t,s.id,n);}r(Zn,"flattenNodes");function dd(e){let t=new Map;for(let o of e)Zn(o.nodes,o,void 0,t);return t}r(dd,"buildFlattenedNodeMap");function ud(e,t){return [...t??[],...e.actions??[]]}r(ud,"getNodeActions");function cd(e,t){return [...t??[],...e.actions??[]]}r(cd,"getGroupActions");function pd({groups:e,nodes:t,context:o,selectedNodeId:n,selectedGroupId:i,expandedNodeIds:s,defaultExpandedNodeIds:d,expandedGroupIds:l,defaultExpandedGroupIds:u,resetExpansionKey:m,nodeActions:g,groupActions:c,indentSize:x=16,indentOffset:P=8,expanderPosition:h="start",contextMenu:I=false,actionIcon:b,empty:y,loading:S=false,loadingNode:D,error:f,labels:N,reorderMode:v="none",appearance:E,className:T,classNames:w,onSelectNode:L,onSelectGroup:O,onExpandedNodeIdsChange:H,onExpandedGroupIdsChange:B,onAction:X,onReorderNodes:Y}){let _=lt().dataExplorer.viewTree,R=le(pe(E)),re=N?.actions??_.actions,G=N?.expand??_.expand,te=N?.collapse??_.collapse,K=D??N?.loading??_.loading,Q=y??N?.empty??_.empty,be=Array.isArray(e),M=useMemo(()=>be?e:[{id:"__root__",hideHeader:true,defaultExpanded:true,nodes:Array.isArray(t)?t:[]}],[e,be,t]),z=useMemo(()=>dd(M),[M]),[U,J]=useState(()=>Kn(M,d)),[ne,W]=useState(()=>Xn(M,u)),[ee,ae]=useState(),[se,ie]=useState(),[ce,F]=useState();useEffect(()=>{J(Kn(M,d)),W(Xn(M,u));},[u,d,m]);let q=s!==void 0?new Set(s):U,ge=l!==void 0?new Set(l):ne,ue=r((k,oe)=>{let De=new Set(q);oe?De.add(k):De.delete(k),s===void 0&&J(De),H?.([...De]);},"setNodeExpanded"),Ce=r((k,oe)=>{let De=new Set(ge);oe?De.add(k):De.delete(k),l===void 0&&W(De),B?.([...De]);},"setGroupExpanded"),Pe=r((k,oe)=>oe.type==="node"?{type:"node",action:k,node:oe.node,group:oe.group,context:o}:{type:"group",action:k,group:oe.group,context:o},"createActionContext"),Oe=r((k,oe)=>{let De=k.filter($=>{let C=Pe($,oe);return fe($.visible,C)??true});if(De.length===0)return null;let Re=JSON.stringify([oe.type,oe.type==="node"?oe.node.id:oe.group.id]);return jsxs(he.Root,{open:ce===Re,onOpenChange:$=>F($?Re:void 0),children:[jsx(he.Trigger,{asChild:true,children:jsx("button",{type:"button",title:re,"aria-label":re,className:p(R.slots.menuTrigger,oe.type==="group"?R.slots.treeGroupActions:R.slots.treeNodeActions,oe.type==="group"?w?.groupActions:p(w?.nodeActions,w?.itemActions)),onClick:$=>$.stopPropagation(),onKeyDown:$=>$.stopPropagation(),children:b??jsx(sd,{})})}),jsx(he.Portal,{children:jsx(he.Content,{align:"end",sideOffset:6,className:p(R.slots.menuContent,w?.menuContent),style:R.styles.menuContent,onClick:$=>$.stopPropagation(),children:De.map($=>{let C=Pe($,oe),A=(fe($.disabled,C)??false)||(fe($.loading,C)??false),j=fe($.active,C)??false;return $.render?jsx("div",{children:$.render(C)},$.id):jsxs("div",{children:[$.separatorBefore?jsx(he.Separator,{className:R.slots.menuSeparator}):null,jsxs(he.Item,{title:$.title,disabled:A,className:p(R.slots.menuItem,Et(R,$.tone),j&&"bg-accent text-accent-foreground",w?.menuItem),style:R.styles.menuItem,onSelect:()=>{A||($.onAction?.(C),X?.(C));},children:[$.icon?jsx("span",{className:R.slots.menuItemIcon,children:$.icon}):null,jsx("span",{className:R.slots.menuItemLabel,children:$.label})]}),$.separatorAfter?jsx(he.Separator,{className:R.slots.menuSeparator}):null]},$.id)})})})]})},"renderActions"),st=r((k,oe)=>{k.preventDefault();let De=ee||k.dataTransfer.getData("application/x-data-explorer-node");if(!De||De===oe.id||!Y){ae(void 0),ie(void 0);return}let Re=z.get(De),$=z.get(oe.id);if(!Re||!$){ae(void 0),ie(void 0);return}let C=Re.parentId===$.parentId&&Re.group?.id===$.group?.id;if(v==="same-parent"&&!C){ae(void 0),ie(void 0);return}let A={activeNode:Re.node,overNode:$.node,activeGroup:Re.group,overGroup:$.group,activeParentId:Re.parentId,overParentId:$.parentId,oldIndex:Re.index,newIndex:$.index,sameParent:C,context:o};Y(A),ae(void 0),ie(void 0);},"handleDrop"),V=r((k,oe,De)=>{let Re=Array.isArray(k.children)?k.children:[],$=Re.length>0,C=k.collapsible===false||q.has(k.id),A=n===k.id,j=k.selectable!==false&&!k.disabled,ye=v!=="none"&&!!Y&&k.reorderable!==false,Te=ee===k.id,We=se===k.id&&ee!==k.id,Rt=ud(k,g),Ht=r(()=>$?jsx("button",{type:"button",className:p(R.slots.treeNodeToggle,w?.nodeToggle,w?.expander),"aria-label":C?te:G,"aria-expanded":C,onClick:ke=>{ke.stopPropagation(),ue(k.id,!C);},children:jsx(qn,{expanded:C})}):h==="start"?jsx("span",{className:p(R.slots.treeNodeToggle,w?.nodeToggle)}):null,"renderExpander");return jsxs("div",{"data-data-explorer-entry":"node","data-data-explorer-node-id":k.id,"data-data-explorer-group-id":oe?.id,className:p(R.slots.treeNode,w?.node,w?.item,k.className),onDragOver:ke=>{!ee||!ye||(ke.preventDefault(),ie(k.id));},onDragLeave:()=>{se===k.id&&ie(void 0);},onDrop:ke=>st(ke,k),children:[jsxs("div",{className:p(R.slots.treeNodeButton,h==="end"&&"pr-2",A&&R.slots.treeNodeSelected,k.disabled&&R.slots.treeNodeDisabled,Te&&R.slots.treeNodeDragging,We&&"ring-1 ring-primary/30",A&&w?.itemSelected,A&&w?.nodeSelected,k.disabled&&w?.nodeDisabled,Te&&w?.nodeDragging,w?.nodeButton,w?.itemButton),style:{paddingLeft:`calc(${(k.indentLevel??De)*x+P}px + var(--data-explorer-tree-group-indent, 0px) + var(--data-explorer-tree-leading-extra, 0px))`},role:"treeitem","aria-selected":A||void 0,"aria-disabled":k.disabled||void 0,"aria-expanded":$?C:void 0,"aria-label":k.ariaLabel,tabIndex:j?0:-1,onContextMenu:ke=>{!I||k.disabled||!Rt.some(so=>fe(so.visible,Pe(so,{type:"node",node:k,group:oe}))!==false)||(ke.preventDefault(),ke.stopPropagation(),F(JSON.stringify(["node",k.id])));},onClick:()=>{j&&L?.(k,o);},onKeyDown:ke=>{ke.target===ke.currentTarget&&j&&(ke.key!=="Enter"&&ke.key!==" "||(ke.preventDefault(),L?.(k,o)));},children:[ye?jsx("span",{draggable:true,className:p(R.slots.treeNodeDragHandle,w?.nodeDragHandle),onClick:ke=>ke.stopPropagation(),onDragStart:ke=>{ke.stopPropagation(),ke.dataTransfer.effectAllowed="move",ke.dataTransfer.setData("application/x-data-explorer-node",k.id),ae(k.id);},onDragEnd:()=>{ae(void 0),ie(void 0);},children:jsx(ld,{})}):null,h==="start"?Ht():null,k.icon?jsx("span",{className:p(R.slots.treeNodeIcon,w?.nodeIcon,w?.itemIcon),children:k.icon}):null,jsxs("span",{className:"flex min-w-0 flex-1 flex-col",children:[jsx("span",{className:p(R.slots.treeNodeLabel,w?.nodeLabel,w?.itemLabel),children:k.label}),k.description?jsx("span",{className:p(R.slots.treeNodeDescription,w?.nodeDescription),children:k.description}):null]}),k.meta?jsx("span",{className:p(R.slots.treeNodeMeta,w?.nodeMeta),children:k.meta}):null,k.badge?jsx("span",{className:p(R.slots.treeNodeBadge,w?.nodeBadge),children:k.badge}):null,h==="end"?Ht():null,Oe(Rt,{type:"node",node:k,group:oe})]}),$&&C?jsx("div",{className:p(R.slots.treeNodeChildren,w?.nodeChildren,w?.list),children:Re.map(ke=>V(ke,oe,De+1))}):null]},k.id)},"renderNode"),xe=r((k,oe,De)=>k===false?null:jsx("div",{className:p(oe,De),children:k}),"renderPlaceholder");if(S)return jsx("div",{className:p(R.slots.treeRoot,w?.root,T),children:xe(K,R.slots.treeLoading,w?.loading)});if(f)return jsx("div",{className:p(R.slots.treeRoot,w?.root,T),children:xe(f??N?.error,R.slots.treeError,w?.error)});let tt=M.some(k=>(k.nodes??[]).length>0),Ho=M.some(k=>k.status==="loading"||k.error);return !tt&&!Ho&&(!be||M.length===0)?jsx("div",{className:p(R.slots.treeRoot,w?.root,T),children:xe(Q,R.slots.treeEmpty,w?.empty)}):jsx("div",{className:p(R.slots.treeRoot,w?.root,T),role:tt||M.some(k=>!k.hideHeader)?"tree":void 0,children:M.map(k=>{let oe=k.hideHeader||k.collapsible===false||ge.has(k.id),De=k.nodes?.length??0,Re=cd(k,c),$=i===k.id,C=k.collapsible!==false;return jsxs("section",{"data-data-explorer-entry":"group","data-data-explorer-group-id":k.id,className:p(R.slots.treeGroup,w?.group,k.className),children:[k.hideHeader?null:jsxs("div",{role:"treeitem","aria-label":typeof k.label=="string"?k.label:void 0,"aria-selected":k.selectable?$:void 0,"aria-expanded":C?oe:void 0,onContextMenu:A=>{!I||!Re.some(j=>fe(j.visible,Pe(j,{type:"group",group:k}))!==false)||(A.preventDefault(),A.stopPropagation(),F(JSON.stringify(["group",k.id])));},className:p(R.slots.treeGroupHeader,R.slots.treeGroupHeaderButton,$&&R.slots.treeNodeSelected,w?.groupHeader,w?.groupHeaderButton,$&&w?.itemSelected),children:[jsxs("button",{type:"button",className:p("flex min-w-0 flex-1 items-center gap-2 text-left outline-hidden focus-visible:ring-2 focus-visible:ring-ring",w?.groupLabel),"aria-pressed":k.selectable?$:void 0,"aria-expanded":!k.selectable&&C?oe:void 0,onClick:()=>{if(k.selectable){O?.(k,o);return}C&&Ce(k.id,!oe);},children:[k.icon?jsx("span",{className:p(R.slots.treeNodeIcon,w?.nodeIcon,w?.itemIcon),children:k.icon}):null,jsxs("span",{className:"flex min-w-0 flex-1 flex-col",children:[k.label?jsx("span",{className:p(R.slots.treeNodeLabel,w?.nodeLabel,w?.itemLabel),children:k.label}):null,k.description?jsx("span",{className:p(R.slots.treeNodeDescription,w?.nodeDescription),children:k.description}):null]}),k.meta?jsx("span",{className:p(R.slots.treeNodeMeta,w?.nodeMeta),children:k.meta}):null,k.badge?jsx("span",{className:p(R.slots.treeNodeBadge,w?.nodeBadge),children:k.badge}):null]}),C?jsx("button",{type:"button",className:p(R.slots.treeNodeToggle,w?.expander),"aria-label":oe?te:G,"aria-expanded":oe,onClick:()=>Ce(k.id,!oe),children:jsx(qn,{expanded:oe})}):jsx("span",{className:p(R.slots.treeNodeToggle,w?.expander)}),Oe(Re,{type:"group",group:k})]}),oe?jsx("div",{role:"group",className:p(R.slots.treeGroupContent,w?.groupContent,w?.list),children:k.loading||k.status==="loading"?xe(K,R.slots.treeLoading,w?.loading):k.error||k.status==="error"?xe(k.error??N?.error??_.error,R.slots.treeError,w?.error):De>0?k.nodes?.map(A=>V(A,k,0)):xe(k.empty??Q,R.slots.treeEmpty,w?.empty)}):null]},k.id)})})}r(pd,"DataExplorerViewTree");function md(e,t,o){let n=e.filter(i=>!i.hidden);if(n.length!==0){if(t){let i=n.find(s=>s.id===t);if(i)return i}if(o){let i=n.find(s=>s.id===o);if(i)return i}return n[0]}}r(md,"resolveActiveViewDefinition");function fd({items:e,views:t=[],activeViewId:o,fallbackViewId:n,context:i,capabilities:s,className:d,classNames:l,empty:u,loading:m,loadingNode:g,footer:c,overlay:x,layout:P,collection:h,selectedIds:I=[],getItemId:b,itemDefinition:y,renderItem:S,onOpenItem:D,onSelectionChange:f}){let N=Array.isArray(e)?e:[],v=md(t,o,n),E=v?.id??o??n??"",T=h||v?.collection?{...h,...v?.collection,classNames:{...h?.classNames,...v?.collection?.classNames}}:void 0,w=v?.layout??v?.collection?.layout??P??h?.layout,L=v?.collection?.loading??h?.loading??m,O=v?.collection?.loadingNode??h?.loadingNode??g,H=v?.collection?.footer??h?.footer??c,B=v?.collection?.overlay??h?.overlay??x,X=typeof v?.empty=="function"?v.empty({items:N,activeViewId:E,context:i,capabilities:s,className:d,empty:u,loading:m,loadingNode:g,footer:c,overlay:x,layout:P,collection:T,selectedIds:I,getItemId:b,itemDefinition:y,renderItem:S,onOpenItem:D,onSelectionChange:f}):v?.empty??u,Y={items:N,activeViewId:E,context:i,capabilities:s,className:d,empty:X,loading:L,loadingNode:O,footer:H,overlay:B,layout:w,collection:T,selectedIds:I,getItemId:b,itemDefinition:v?.itemDefinition??y,renderItem:v?.renderItem??S,onOpenItem:D,onSelectionChange:f};return v?.render?jsx(Fragment,{children:v.render(Y)}):jsx(to,{items:N,activeViewId:E,context:i,capabilities:s,className:T?.className??d,classNames:{...l,...T?.classNames},empty:X,loading:Y.loading,loadingNode:Y.loadingNode,footer:Y.footer,overlay:Y.overlay,layout:Y.layout,scrollable:T?.scrollable,wrapItems:T?.wrapItems,measuredGrid:T?.measuredGrid,itemsStyle:T?.itemsStyle,itemStyle:T?.itemStyle,selectedIds:I,getItemId:b,itemDefinition:Y.itemDefinition,renderItem:Y.renderItem,getItemClassName:v?.getItemClassName,onOpenItem:D,onSelectionChange:f})}r(fd,"DataExplorerView");function bd({header:e,footer:t,overlay:o,empty:n,isEmpty:i=false,children:s,className:d,classNames:l}){return jsxs("section",{className:a("relative flex min-h-0 flex-1 flex-col overflow-hidden",l?.root,d),children:[e?jsx("div",{className:a("shrink-0",l?.header),children:e}):null,jsx("div",{className:a("flex min-h-0 flex-1 flex-col overflow-hidden",l?.body),children:i&&n?jsx("div",{className:a("flex h-full items-center justify-center p-6 text-sm text-muted-foreground",l?.empty),children:n}):s}),t?jsx("div",{className:a("shrink-0",l?.footer),children:t}):null,o?jsx("div",{className:a("absolute inset-0",l?.overlay),children:o}):null]})}r(bd,"DataExplorerViewShell");
23
+ var ea=Object.defineProperty;var r=(e,t)=>ea(e,"name",{value:t,configurable:true});var yr=createContext(void 0);function vr({appearance:e,children:t}){return jsx(yr.Provider,{value:e,children:t})}r(vr,"DataExplorerAppearanceProvider");function pe(e){let t=useContext(yr);return useMemo(()=>e?t?{...t,...e,slots:{...t.slots,...e.slots},styles:{...t.styles,...e.styles}}:e:t,[e,t])}r(pe,"useDataExplorerAppearance");function a(...e){return e.filter(Boolean).join(" ")}r(a,"cn");function fe(e,t){return typeof e=="function"?e(t):e}r(fe,"resolveDataExplorerValue");var aa={},Dr={surfaceRoot:"relative flex h-full min-h-0 w-full min-w-0 overflow-hidden rounded-md border border-border bg-background shadow-sm",toolbarRoot:"flex flex-wrap items-center gap-2 border-b border-border bg-background px-4 py-3",toolbarLeading:"flex items-center gap-2",toolbarSearch:"flex h-10 min-w-52 flex-1 items-center gap-2 rounded-md border border-border bg-background px-3 text-sm",toolbarSearchIcon:"inline-flex shrink-0 text-muted-foreground",toolbarSearchInput:"min-w-0 flex-1 bg-transparent text-sm outline-hidden placeholder:text-muted-foreground",toolbarViewSwitch:"flex items-center rounded-md border border-border bg-background p-0.5",toolbarViewButton:"inline-flex h-9 min-w-9 items-center justify-center gap-2 rounded-md px-2 text-sm text-muted-foreground transition-colors hover:bg-muted hover:text-foreground disabled:pointer-events-none disabled:opacity-50",toolbarViewButtonActive:"bg-muted text-foreground",toolbarActions:"flex items-center gap-2",actionBarRoot:"flex min-w-0 flex-wrap items-center gap-2",actionBarLeading:"flex shrink-0 items-center gap-2",actionBarActions:"flex min-w-0 flex-1 flex-wrap items-center gap-2",actionBarTrailing:"flex shrink-0 items-center gap-2",actionButtonBase:"inline-flex h-9 items-center justify-center gap-2 rounded-md border px-3 text-sm font-medium transition-colors focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",actionButtonDefault:"border-border bg-background text-foreground hover:bg-accent/60",actionButtonPrimary:"border-primary/20 bg-primary/10 text-primary hover:bg-primary/15",actionButtonDanger:"border-destructive/20 bg-destructive/10 text-destructive-text hover:bg-destructive/15",actionButtonMuted:"border-border/60 bg-muted/45 text-muted-foreground hover:bg-muted/70 hover:text-foreground",actionButtonActive:"ring-1 ring-primary/30",actionButtonDisabled:"cursor-not-allowed opacity-60",actionIconButton:"w-9 px-0",actionToggleActive:"border-primary/30 bg-primary/10 text-primary",controlButton:"inline-flex h-10 min-w-0 items-center justify-center gap-2 rounded-md border border-border bg-background px-3 text-sm font-medium text-foreground transition-colors hover:bg-accent/60 focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-60",controlButtonIcon:"inline-flex h-4 w-4 shrink-0 items-center justify-center text-[inherit] [&_*]:!text-[inherit] [&_svg]:!stroke-current [&_svg_*]:!stroke-current",controlButtonLabel:"min-w-0 truncate",controlSelectTrigger:"inline-flex h-10 min-w-28 items-center justify-between gap-3 rounded-md border border-border bg-background px-3 text-sm font-medium text-foreground transition-colors hover:bg-accent/60 focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-60",controlSelectValue:"flex min-w-0 items-center gap-1 truncate",controlCheckbox:"inline-flex h-9 items-center gap-2 rounded-md border border-border bg-background px-3 text-sm font-medium text-foreground transition-colors hover:bg-accent/60 focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-60",controlCheckboxIndicator:"flex h-4 w-4 shrink-0 items-center justify-center rounded border border-border bg-background text-primary",controlCheckboxLabel:"min-w-0 truncate",menuTrigger:"inline-flex h-8 w-8 items-center justify-center rounded-md text-foreground transition-colors hover:bg-accent hover:text-accent-foreground focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",menuContent:"z-50 min-w-36 rounded-md border border-border bg-popover p-1 text-popover-foreground shadow-md outline-hidden",menuLabel:"px-2 py-1.5 text-xs font-medium text-muted-foreground",menuSeparator:"-mx-1 my-1 h-px bg-border",menuItem:"relative flex cursor-pointer select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",menuItemPrimary:"text-primary focus:text-primary",menuItemDanger:"text-destructive-text focus:text-destructive-text",menuItemMuted:"text-muted-foreground",menuItemIcon:"inline-flex h-4 w-4 shrink-0 items-center justify-center",menuItemLabel:"truncate",cardRoot:"group relative flex min-w-0 flex-col overflow-hidden rounded-lg border border-border/70 bg-background transition-shadow",cardInteractive:"cursor-pointer hover:shadow-sm",cardSelected:"ring-2 ring-primary",cardDisabled:"opacity-60",cardHeader:"p-4",cardMedia:"shrink-0 overflow-hidden",cardFooter:"shrink-0 border-t border-border/60 px-4 py-3",recordCardRoot:"group relative border-border/70 transition-shadow hover:shadow-sm",recordCardActive:"z-10 ring-2 ring-monkeys-500",footerRoot:"flex items-center border-t border-border bg-background px-4 py-3",footerSummary:"flex items-center gap-1 whitespace-nowrap text-sm text-muted-foreground",footerJumpButton:"inline-flex items-center gap-1 text-muted-foreground underline-offset-4 hover:text-foreground hover:underline",footerPageSizeSelect:"h-8 rounded-md border border-border bg-background px-2 text-sm text-foreground",previewRoot:"relative h-full min-h-0 w-full flex-1 select-none self-stretch overflow-hidden bg-slate-950",previewPlaceholder:"flex h-full w-full items-center justify-center rounded-xl bg-white/5 px-6 text-center text-sm text-white/60",previewActions:"absolute right-4 top-4 z-20 flex flex-col gap-2",previewControls:"absolute bottom-4 right-4 z-20 flex flex-col gap-2",previewZoomLabel:"min-w-[3rem] rounded-full border border-white/15 bg-black/30 px-1 py-1 text-center text-xs font-medium text-white/70 shadow-lg backdrop-blur",previewControlButton:"inline-flex h-9 w-9 items-center justify-center rounded-full border border-white/15 bg-black/30 text-white/90 shadow-lg backdrop-blur transition hover:bg-black/45",previewNavigationButton:"absolute top-1/2 flex h-10 w-10 -translate-y-1/2 items-center justify-center rounded-full border border-white/15 bg-black/30 text-white/90 shadow-lg backdrop-blur transition-colors hover:bg-black/45 disabled:pointer-events-none disabled:opacity-40",detailRoot:"flex h-full flex-col overflow-hidden bg-background",detailHeader:"flex items-center justify-between gap-3 border-b border-border bg-background px-4 py-4 sm:px-5",detailLeading:"flex h-9 w-9 shrink-0 items-center justify-center rounded-lg bg-muted text-muted-foreground",detailNavigation:"hidden items-center gap-1 rounded-lg border border-border bg-background px-1 py-1 md:flex",detailNavigationButton:"flex h-8 w-8 items-center justify-center rounded-md text-muted-foreground transition-colors hover:bg-accent hover:text-foreground disabled:pointer-events-none disabled:opacity-50",detailCloseButton:"flex h-10 w-10 items-center justify-center rounded-full border border-border bg-background text-muted-foreground transition-colors hover:bg-accent hover:text-foreground",detailPreviewPanel:"min-h-0 overflow-hidden border-b border-border bg-background xl:border-b-0",detailPreviewFrame:"relative h-full min-h-0 w-full overflow-hidden bg-background",detailRightPanel:"min-h-0 min-w-0 border-t border-border bg-background xl:border-l xl:border-t-0",detailRightPanelBody:"h-full overflow-y-auto overscroll-contain bg-background p-5",treeShellRoot:"flex h-full min-h-0 flex-col overflow-hidden",treeShellHeader:"flex shrink-0 items-start justify-between gap-3 px-4 py-3",treeShellTitle:"truncate text-sm font-semibold",treeShellSubtitle:"mt-1 text-sm text-muted-foreground",treeShellToolbar:"flex shrink-0 items-center gap-2",treeShellBody:"min-h-0 flex-1 overflow-hidden",treeShellFooter:"shrink-0",treeRoot:"min-w-0 space-y-1 overflow-hidden text-sm",treeGroup:"min-w-0 space-y-1",treeGroupHeader:"group/tree-group flex min-w-0 items-center gap-1",treeGroupHeaderButton:"flex h-9 min-w-0 flex-1 items-center gap-2 rounded-md px-2 text-left font-medium text-muted-foreground transition-colors hover:bg-accent/55 hover:text-foreground",treeGroupContent:"min-w-0 space-y-0.5",treeGroupActions:"shrink-0 opacity-0 transition-opacity group-hover/tree-group:opacity-100 group-focus-within/tree-group:opacity-100 data-[state=open]:opacity-100",treeNode:"min-w-0",treeNodeButton:"group/tree-node flex min-h-9 w-full min-w-0 items-center gap-1 rounded-md pr-1 text-left text-sm text-foreground transition-colors hover:bg-accent/55 hover:text-foreground focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-1",treeNodeSelected:"bg-accent text-accent-foreground",treeNodeDisabled:"cursor-not-allowed opacity-55",treeNodeDragging:"opacity-50",treeNodeToggle:"inline-flex h-5 w-5 shrink-0 items-center justify-center rounded border-0 bg-transparent p-0 text-muted-foreground transition-colors hover:bg-accent hover:text-foreground",treeNodeIcon:"inline-flex h-4 w-4 shrink-0 items-center justify-center text-muted-foreground group-hover/tree-node:text-foreground",treeNodeLabel:"min-w-0 truncate",treeNodeDescription:"mt-0.5 truncate text-xs text-muted-foreground",treeNodeMeta:"ml-2 shrink-0 text-xs text-muted-foreground",treeNodeBadge:"ml-2 shrink-0 rounded-full border border-border bg-muted px-1.5 py-0.5 text-[11px] leading-none text-muted-foreground",treeNodeActions:"ml-1 shrink-0 opacity-0 transition-opacity group-hover/tree-node:opacity-100 group-focus-within/tree-node:opacity-100 data-[state=open]:opacity-100",treeNodeChildren:"mt-0.5 min-w-0 space-y-0.5",treeNodeDragHandle:"inline-flex h-5 w-5 shrink-0 cursor-grab items-center justify-center rounded text-muted-foreground opacity-0 transition-opacity hover:bg-accent hover:text-foreground active:cursor-grabbing group-hover/tree-node:opacity-100",treeEmpty:"px-3 py-2 text-xs text-muted-foreground",treeError:"px-3 py-2 text-xs text-destructive-text",treeLoading:"px-3 py-2 text-xs text-muted-foreground"},ia={flush:{surfaceRoot:"relative flex h-full min-h-0 w-full min-w-0 overflow-hidden"}},sa={compact:{treeShellHeader:"px-3 py-2",toolbarRoot:"px-3 py-2",toolbarSearch:"h-9 min-w-48",toolbarViewButton:"h-8 min-w-8 text-xs",actionButtonBase:"h-8 px-2.5 text-xs",actionIconButton:"h-8 w-8 px-0",controlButton:"h-9 px-2.5 text-xs",controlSelectTrigger:"h-9 min-w-24 px-2.5 text-xs",controlCheckbox:"h-8 px-2.5 text-xs",menuTrigger:"h-8 w-8",footerRoot:"px-3 py-2",footerPageSizeSelect:"h-8 text-xs",treeGroupHeaderButton:"h-8 text-xs",treeNodeButton:"min-h-8 text-xs",treeEmpty:"py-1.5 text-xs",treeError:"py-1.5 text-xs",treeLoading:"py-1.5 text-xs"},default:{},comfortable:{treeShellHeader:"px-5 py-4",toolbarRoot:"px-5 py-4",toolbarSearch:"h-11",toolbarViewButton:"h-10 min-w-10",actionButtonBase:"h-10 px-3.5",actionIconButton:"h-10 w-10 px-0",controlButton:"h-11 px-3.5",controlSelectTrigger:"h-11 min-w-32 px-3.5",controlCheckbox:"h-10 px-3.5",menuTrigger:"h-9 w-9",footerRoot:"px-5 py-3.5",treeGroupHeaderButton:"h-10",treeNodeButton:"min-h-10"}},la={none:{surfaceRoot:"rounded-none",toolbarSearch:"rounded-none",toolbarViewSwitch:"rounded-none",toolbarViewButton:"rounded-none",actionButtonBase:"rounded-none",controlButton:"rounded-none",controlSelectTrigger:"rounded-none",controlCheckbox:"rounded-none",controlCheckboxIndicator:"rounded-none",menuTrigger:"rounded-none",menuContent:"rounded-none",menuItem:"rounded-none",cardRoot:"rounded-none",footerPageSizeSelect:"rounded-none",detailLeading:"rounded-none",detailNavigation:"rounded-none",detailNavigationButton:"rounded-none",detailCloseButton:"rounded-none",treeGroupHeaderButton:"rounded-none",treeNodeButton:"rounded-none",treeNodeToggle:"rounded-none",treeNodeBadge:"rounded-none",treeNodeDragHandle:"rounded-none"},sm:{surfaceRoot:"rounded-sm",toolbarSearch:"rounded-sm",toolbarViewSwitch:"rounded-sm",toolbarViewButton:"rounded-sm",actionButtonBase:"rounded-sm",controlButton:"rounded-sm",controlSelectTrigger:"rounded-sm",controlCheckbox:"rounded-sm",controlCheckboxIndicator:"rounded-sm",menuTrigger:"rounded-sm",menuContent:"rounded-sm",menuItem:"rounded-sm",cardRoot:"rounded-sm",treeGroupHeaderButton:"rounded-sm",treeNodeButton:"rounded-sm",treeNodeToggle:"rounded-sm",treeNodeBadge:"rounded-sm",treeNodeDragHandle:"rounded-sm"},md:{},lg:{surfaceRoot:"rounded-xl",toolbarSearch:"rounded-lg",toolbarViewSwitch:"rounded-lg",toolbarViewButton:"rounded-lg",actionButtonBase:"rounded-lg",controlButton:"rounded-lg",controlSelectTrigger:"rounded-lg",controlCheckbox:"rounded-lg",controlCheckboxIndicator:"rounded-md",menuTrigger:"rounded-lg",menuContent:"rounded-lg",cardRoot:"rounded-xl",treeGroupHeaderButton:"rounded-lg",treeNodeButton:"rounded-lg",treeNodeToggle:"rounded-md",treeNodeBadge:"rounded-lg",treeNodeDragHandle:"rounded-md"},xl:{surfaceRoot:"rounded-2xl",toolbarSearch:"rounded-xl",toolbarViewSwitch:"rounded-xl",toolbarViewButton:"rounded-xl",actionButtonBase:"rounded-xl",controlButton:"rounded-xl",controlSelectTrigger:"rounded-xl",controlCheckbox:"rounded-xl",controlCheckboxIndicator:"rounded-lg",menuTrigger:"rounded-xl",menuContent:"rounded-xl",cardRoot:"rounded-2xl",treeGroupHeaderButton:"rounded-xl",treeNodeButton:"rounded-xl",treeNodeToggle:"rounded-lg",treeNodeBadge:"rounded-xl",treeNodeDragHandle:"rounded-lg"},full:{surfaceRoot:"rounded-2xl",toolbarSearch:"rounded-full",toolbarViewSwitch:"rounded-full",toolbarViewButton:"rounded-full",actionButtonBase:"rounded-full",controlButton:"rounded-full",controlSelectTrigger:"rounded-full",controlCheckbox:"rounded-full",controlCheckboxIndicator:"rounded-full",menuTrigger:"rounded-full",cardRoot:"rounded-2xl",treeGroupHeaderButton:"rounded-full",treeNodeButton:"rounded-full",treeNodeToggle:"rounded-full",treeNodeBadge:"rounded-full",treeNodeDragHandle:"rounded-full"}},da={none:{surfaceRoot:"border-transparent",toolbarRoot:"border-transparent",toolbarSearch:"border-transparent",toolbarViewSwitch:"border-transparent",actionButtonBase:"border-transparent",controlButton:"border-transparent",controlSelectTrigger:"border-transparent",controlCheckbox:"border-transparent",cardRoot:"border-transparent",footerRoot:"border-transparent",detailHeader:"border-transparent",detailPreviewPanel:"border-transparent",detailRightPanel:"border-transparent"},subtle:{surfaceRoot:"border-border/60",toolbarRoot:"border-border/60",toolbarSearch:"border-border/60",toolbarViewSwitch:"border-border/60",actionButtonDefault:"border-border/60",controlButton:"border-border/60",controlSelectTrigger:"border-border/60",controlCheckbox:"border-border/60",cardRoot:"border-border/60",footerRoot:"border-border/60"},solid:{},strong:{surfaceRoot:"border-foreground/20",toolbarRoot:"border-foreground/20",toolbarSearch:"border-foreground/20",toolbarViewSwitch:"border-foreground/20",actionButtonDefault:"border-foreground/20",controlButton:"border-foreground/20",controlSelectTrigger:"border-foreground/20",controlCheckbox:"border-foreground/20",cardRoot:"border-foreground/20",footerRoot:"border-foreground/20"}},ua={plain:{},muted:{surfaceRoot:"bg-card",toolbarRoot:"bg-muted/20",toolbarSearch:"bg-background",toolbarViewSwitch:"bg-background",controlButton:"bg-background",controlSelectTrigger:"bg-background",controlCheckbox:"bg-background",cardRoot:"bg-card",footerRoot:"bg-muted/20",detailHeader:"bg-muted/20"},soft:{surfaceRoot:"bg-background/95 shadow-sm",toolbarRoot:"bg-background/95",actionButtonDefault:"bg-muted/30 hover:bg-muted/55",controlButton:"bg-muted/30 hover:bg-muted/55",controlSelectTrigger:"bg-muted/30 hover:bg-muted/55",controlCheckbox:"bg-muted/30 hover:bg-muted/55",cardRoot:"bg-background/95 shadow-sm",footerRoot:"bg-background/95"},glass:{surfaceRoot:"border-white/10 bg-white/[0.06] shadow-none backdrop-blur-md",toolbarRoot:"border-white/10 bg-white/5 backdrop-blur-md",toolbarSearch:"border-white/10 bg-white/5",toolbarViewSwitch:"border-white/10 bg-white/5",actionButtonDefault:"border-white/10 bg-white/[0.08] text-foreground hover:bg-white/[0.14]",controlButton:"border-white/10 bg-white/[0.08] text-foreground hover:bg-white/[0.14]",controlSelectTrigger:"border-white/10 bg-white/[0.08] text-foreground hover:bg-white/[0.14]",controlCheckbox:"border-white/10 bg-white/[0.08] text-foreground hover:bg-white/[0.14]",controlCheckboxIndicator:"border-white/15 bg-white/10",cardRoot:"border-white/10 bg-white/[0.06] shadow-none",footerRoot:"border-white/10 bg-white/5 backdrop-blur-md"},"dark-stage":{previewRoot:"bg-slate-950",previewPlaceholder:"bg-white/5 text-white/60",actionButtonBase:"inline-flex h-9 items-center justify-center gap-2 rounded-full border px-3 text-sm font-medium transition-colors focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-white/45 focus-visible:ring-offset-0",actionButtonDefault:"border-white/15 bg-black/30 text-white/90 shadow-lg backdrop-blur hover:bg-black/[0.45]",controlButton:"border-white/15 bg-black/30 text-white/90 shadow-lg backdrop-blur hover:bg-black/[0.45]",controlSelectTrigger:"border-white/15 bg-black/30 text-white/90 shadow-lg backdrop-blur hover:bg-black/[0.45]",controlCheckbox:"border-white/15 bg-black/30 text-white/90 shadow-lg backdrop-blur hover:bg-black/[0.45]",actionButtonPrimary:"border-white/25 bg-white/20 text-white shadow-lg backdrop-blur hover:bg-white/28",actionButtonMuted:"border-white/10 bg-black/20 text-white/70 shadow-lg backdrop-blur hover:bg-black/[0.35] hover:text-white",actionIconButton:"h-9 w-9 px-0"}},kr={default:{density:"default",radius:"md",border:"solid",background:"plain"},soft:{density:"default",radius:"md",border:"subtle",background:"plain"},compact:{density:"compact",radius:"md",border:"subtle",background:"soft"},"tinted-glass":{density:"default",radius:"lg",border:"subtle",background:"glass"},flat:{density:"compact",radius:"none",border:"solid",background:"plain"},glass:{density:"default",radius:"lg",border:"subtle",background:"glass"},"hard-edge":{density:"compact",radius:"none",border:"solid",background:"plain"}},ca={soft:{actionButtonBase:"font-medium",controlButton:"font-medium",controlSelectTrigger:"font-medium",controlCheckbox:"font-medium",menuTrigger:"rounded-full",cardRoot:"border-border/70"},compact:{toolbarRoot:"gap-2",actionButtonBase:"text-xs",controlButton:"text-xs",controlSelectTrigger:"text-xs",controlCheckbox:"text-xs",footerRoot:"text-xs"},"tinted-glass":{actionButtonDefault:"border-border/60 bg-background/10 text-foreground hover:bg-accent/60",actionButtonPrimary:"border-primary/30 bg-primary/15 text-primary-foreground hover:bg-primary/20",actionButtonMuted:"border-border/50 bg-muted/20 text-muted-foreground hover:bg-muted/45 hover:text-foreground",controlButton:"border-border/60 bg-background/10 text-foreground hover:bg-accent/60",controlSelectTrigger:"border-border/60 bg-background/10 text-foreground hover:bg-accent/60",controlCheckbox:"border-border/60 bg-background/10 text-foreground hover:bg-accent/60",controlCheckboxIndicator:"border-border/60 bg-background/10 text-primary",menuContent:"border-border bg-popover text-popover-foreground shadow-2xl",menuSeparator:"bg-border",menuItem:"focus:bg-accent focus:text-accent-foreground",cardSelected:"ring-2 ring-primary",previewRoot:"bg-background",treeGroupHeaderButton:"text-muted-foreground hover:bg-accent/60 hover:text-foreground",treeNodeButton:"text-foreground hover:bg-accent/60 hover:text-accent-foreground focus-visible:ring-ring",treeNodeSelected:"bg-accent text-accent-foreground",treeNodeToggle:"text-muted-foreground hover:bg-accent hover:text-foreground",treeNodeIcon:"text-muted-foreground group-hover/tree-node:text-foreground",treeNodeMeta:"text-muted-foreground",treeNodeBadge:"border-border bg-muted text-muted-foreground",treeNodeActions:"text-muted-foreground",treeNodeDragHandle:"text-muted-foreground hover:bg-accent hover:text-foreground group-hover/tree-node:opacity-100",treeEmpty:"text-muted-foreground",treeError:"text-destructive-text",treeLoading:"text-muted-foreground"},flat:{toolbarRoot:"border-slate-200 bg-white",toolbarSearch:"rounded-none border-slate-200 bg-white shadow-none",toolbarViewSwitch:"rounded-none border-slate-200 bg-white shadow-none",actionButtonBase:"rounded-none shadow-none",controlButton:"rounded-none border-slate-200 bg-white text-slate-700 shadow-none hover:bg-slate-50",controlSelectTrigger:"rounded-none border-slate-200 bg-white text-slate-700 shadow-none hover:bg-slate-50",controlCheckbox:"rounded-none border-slate-200 bg-white text-slate-700 shadow-none hover:bg-slate-50",actionButtonDefault:"border-slate-200 bg-white text-slate-700 hover:bg-slate-50",menuTrigger:"rounded-none border border-slate-200 bg-white text-slate-700 shadow-none hover:bg-slate-50",menuContent:"rounded-none border-slate-200 bg-white shadow-none",cardRoot:"rounded-none border-slate-200 bg-white shadow-none",footerRoot:"border-slate-200 bg-white",treeRoot:"space-y-1 text-sm",treeGroupHeader:"group/tree-group flex min-w-0 items-center",treeGroupHeaderButton:"h-9 rounded-none px-3 text-slate-600 shadow-none hover:bg-slate-100 hover:text-slate-950",treeGroupContent:"space-y-1",treeNodeButton:"min-h-9 rounded-none text-slate-700 hover:bg-slate-100 hover:text-slate-950 focus-visible:ring-slate-300",treeNodeSelected:"bg-slate-100 text-slate-950",treeNodeToggle:"rounded-none text-slate-500 hover:bg-transparent hover:text-slate-950",treeNodeIcon:"text-slate-500 group-hover/tree-node:text-slate-950",treeNodeDragHandle:"rounded-none text-slate-400 hover:bg-transparent hover:text-slate-700",treeNodeActions:"text-slate-500"},glass:{menuContent:"border-white/10 bg-slate-950/90 text-white backdrop-blur-xl",menuSeparator:"bg-white/10",menuItem:"focus:bg-white/10 focus:text-white"},"hard-edge":{toolbarRoot:"border-slate-200 bg-white",actionButtonBase:"rounded-none shadow-none",controlButton:"rounded-none shadow-none",controlSelectTrigger:"rounded-none shadow-none",controlCheckbox:"rounded-none shadow-none",cardRoot:"rounded-none border-slate-200 bg-white shadow-none",footerRoot:"border-slate-200 bg-white",footerPageSizeSelect:"rounded-none border-slate-200 shadow-none"}},pa=Object.keys(Dr);function ma(...e){return pa.reduce((t,o)=>(t[o]=a(...e.map(n=>n?.[o])),t),{})}r(ma,"mergeSlots");function fa(...e){return e.reduce((t,o)=>({...t,...o}),{})}r(fa,"mergeStyles");function ga(e){let t=kr[e];if(!t)throw new TypeError(`Unknown Data Explorer theme preset "${String(e)}". Expected one of: ${Object.keys(kr).join(", ")}.`);return t}r(ga,"getPresetDefaults");function le(e){let t=e?.preset??"default",o=e?.surface??"card",n=ga(t),i=e?.density??n.density??"default",s=e?.radius??n.radius??"md",d=e?.border??n.border??"solid",l=e?.background??n.background??"plain",u=ma(Dr,ca[t],sa[i],la[s],da[d],ua[l],e?.slots);return o==="flush"&&(u.surfaceRoot=a(ia.flush.surfaceRoot,e?.slots?.surfaceRoot)),{surface:o,preset:t,density:i,radius:s,border:d,background:l,styles:fa(aa,e?.styles),slots:u}}r(le,"resolveDataExplorerAppearance");function wt(e,t,o){return a(t==="primary"?e.slots.actionButtonPrimary:t==="danger"?e.slots.actionButtonDanger:t==="muted"?e.slots.actionButtonMuted:e.slots.actionButtonDefault,o&&e.slots.actionButtonActive)}r(wt,"getDataExplorerActionToneClassName");function Et(e,t){if(t==="primary")return e.slots.menuItemPrimary;if(t==="danger")return e.slots.menuItemDanger;if(t==="muted")return e.slots.menuItemMuted}r(Et,"getDataExplorerMenuItemToneClassName");function xa(){return jsxs("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",className:"h-4 w-4 animate-spin",fill:"none",children:[jsx("circle",{cx:"12",cy:"12",r:"9",className:"opacity-25",stroke:"currentColor",strokeWidth:"3"}),jsx("path",{className:"opacity-75",fill:"currentColor",d:"M12 3a9 9 0 0 1 9 9h-3a6 6 0 0 0-6-6V3Z"})]})}r(xa,"LoadingIcon");var _t=forwardRef(r(function({children:t,label:o,icon:n,endIcon:i,type:s="button",title:d,ariaLabel:l,tone:u,active:m=false,iconOnly:g=false,disabled:c=false,loading:x=false,stopPropagation:P=false,appearance:h,className:I,classNames:b,style:y,onClick:S,"aria-label":D,...f},N){let v=le(pe(h)),E=t??o,T=c||x,w=r(L=>{P&&L.stopPropagation(),!T&&S?.(L);},"handleClick");return jsxs("button",{...f,ref:N,type:s,title:d,"aria-label":l??D,"aria-pressed":m||void 0,"aria-busy":x||void 0,disabled:T,className:a(v.slots.controlButton,g&&v.slots.actionIconButton,wt(v,u,m),T&&v.slots.actionButtonDisabled,b?.root,I),style:{...v.styles.control,...m?v.styles.controlActive:void 0,...T?v.styles.controlDisabled:void 0,...y},onClick:w,children:[x?jsx("span",{className:a(v.slots.controlButtonIcon,b?.icon),children:jsx(xa,{})}):n?jsx("span",{className:a(v.slots.controlButtonIcon,b?.icon),children:n}):null,g?jsx("span",{className:"sr-only",children:E}):E?jsx("span",{className:a(v.slots.controlButtonLabel,b?.label),children:E}):null,i?jsx("span",{className:a(v.slots.controlButtonIcon,b?.icon),children:i}):null]})},"DataExplorerButton"));function ha(){return jsx("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",className:"h-3.5 w-3.5",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2.5",children:jsx("path",{d:"m5 12 4 4L19 6"})})}r(ha,"CheckIcon");function _o({checked:e=false,icon:t,label:o,title:n,disabled:i=false,appearance:s,className:d,classNames:l,style:u,onCheckedChange:m}){let g=le(pe(s));return jsxs("button",{type:"button",title:n,"aria-pressed":e,disabled:i,className:a(g.slots.controlCheckbox,e&&g.slots.actionToggleActive,i&&g.slots.actionButtonDisabled,l?.root,d),style:{...g.styles.control,...e?g.styles.controlActive:void 0,...i?g.styles.controlDisabled:void 0,...u},onClick:c=>{c.stopPropagation(),!i&&m?.(!e);},children:[jsx("span",{className:a(g.slots.controlCheckboxIndicator,l?.indicator,t!=null&&!e&&l?.icon),children:e?jsx(ha,{}):t}),o?jsx("span",{className:a(g.slots.controlCheckboxLabel,l?.label),children:o}):null]})}r(_o,"DataExplorerCheckbox");function ya(){return jsx("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",className:"h-4 w-4",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",children:jsx("path",{d:"m6 9 6 6 6-6"})})}r(ya,"ChevronDownIcon");function va(){return jsx("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",className:"h-4 w-4",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",children:jsx("path",{d:"m5 12 4 4L19 6"})})}r(va,"CheckIcon");function Vo({value:e="",options:t=[],label:o,placeholder:n="Select",icon:i,title:s,triggerLabel:d,disabled:l=false,display:u="value",align:m="start",sideOffset:g=6,appearance:c,className:x,classNames:P,style:h,onValueChange:I}){let b=le(pe(c)),y=t.find(D=>D.value===e),S=u==="label-value"&&o?jsxs(Fragment,{children:[jsx("span",{children:o}),jsx("span",{className:"text-muted-foreground",children:y?.label??n})]}):y?.label??o??n;return jsxs(he.Root,{children:[jsx(he.Trigger,{asChild:true,children:jsxs("button",{type:"button",title:s,"aria-label":d,disabled:l||t.length===0,className:a(b.slots.controlSelectTrigger,P?.trigger,P?.root,x),style:{...b.styles.control,...h},onClick:D=>D.stopPropagation(),children:[i?jsx("span",{className:a(b.slots.controlButtonIcon,P?.icon),children:i}):null,jsx("span",{className:a(b.slots.controlSelectValue,P?.value),children:S}),jsx(ya,{})]})}),jsx(he.Portal,{children:jsx(he.Content,{align:m,sideOffset:g,className:a(b.slots.menuContent,P?.content),style:b.styles.menuContent,onClick:D=>D.stopPropagation(),children:jsx(he.RadioGroup,{value:e,onValueChange:D=>{l||I?.(D);},children:t.map(D=>jsxs(he.RadioItem,{value:D.value,title:D.title,disabled:D.disabled,className:a(b.slots.menuItem,P?.item),style:b.styles.menuItem,children:[jsx("span",{className:a(b.slots.menuItemIcon,P?.itemIcon),children:D.value===e?jsx(va,{}):D.icon}),jsx("span",{className:a(b.slots.menuItemLabel,P?.itemLabel),children:D.label})]},D.value))})})})]})}r(Vo,"DataExplorerSelect");function Da(){return jsx("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",className:"h-4 w-4",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",children:jsx("path",{d:"m6 9 6 6 6-6"})})}r(Da,"ChevronDownIcon");function Oo(e,t){return fe(e.disabled,t)??fe(e.loading,t)??false}r(Oo,"resolveActionDisabled");function Ca(e){return e.onAction??e.onClick}r(Ca,"getActionCallback");function Ta(e,t,o,n){let i=(fe(e.disabled,t)??false)||(fe(e.loading,t)??false),s=fe(e.active,t)??false;return jsxs("div",{children:[e.separatorBefore?jsx(he.Separator,{className:o.slots.menuSeparator}):null,jsxs(he.Item,{title:e.title,disabled:i,className:a(o.slots.menuItem,Et(o,e.tone),s&&"bg-accent text-accent-foreground",n),style:o.styles.menuItem,onSelect:()=>{!e.onAction||i||e.onAction(t);},children:[e.icon?jsx("span",{className:o.slots.menuItemIcon,children:e.icon}):null,jsx("span",{className:o.slots.menuItemLabel,children:e.label})]}),e.separatorAfter?jsx(he.Separator,{className:o.slots.menuSeparator}):null]},e.id)}r(Ta,"renderMenuItem");function Sa(e,t,o,n,i){let s=Oo(e,t),d=fe(e.active,t)??false,l=(e.items??[]).filter(u=>fe(u.visible,t)??true);return jsxs(he.Root,{children:[jsx(he.Trigger,{asChild:true,children:jsx(_t,{title:e.title,ariaLabel:e.triggerLabel,disabled:s||l.length===0,label:e.label,icon:e.icon,endIcon:jsx(Da,{}),tone:e.tone,active:d,stopPropagation:true,appearance:i,className:n?.action})}),jsx(he.Portal,{children:jsxs(he.Content,{align:e.align??"end",sideOffset:e.sideOffset??6,className:a(o.slots.menuContent,n?.menuContent),style:o.styles.menuContent,onClick:u=>u.stopPropagation(),children:[e.menuLabel?jsxs(Fragment,{children:[jsx(he.Label,{className:o.slots.menuLabel,children:e.menuLabel}),jsx(he.Separator,{className:o.slots.menuSeparator})]}):null,l.map(u=>Ta(u,t,o,n?.menuItem))]})})]},e.id)}r(Sa,"renderMenuAction");function Pa(e,t,o,n){let i=Oo(e,t),s=String(fe(e.value,t)??""),d=e.options??[];return jsx(Vo,{value:s,label:e.label,icon:e.icon,title:e.title,triggerLabel:e.triggerLabel,disabled:i,display:e.selectDisplay??"label-value",align:e.align??"end",sideOffset:e.sideOffset??6,options:d.map(l=>({value:l.value,label:l.label,icon:l.icon,title:l.title,disabled:fe(l.disabled,t)??false})),appearance:n,classNames:{trigger:o?.action,content:o?.menuContent,item:o?.menuItem},onValueChange:l=>{!e.onValueChange||i||e.onValueChange(l,t);}},e.id)}r(Pa,"renderSelectAction");function Ba(e,t,o,n){let i=e.kind??"button",s=i==="toggle"?fe(e.checked,t)??fe(e.active,t)??false:fe(e.active,t)??false,d=Oo(e,t),l=Ca(e);return i==="toggle"?jsx(_o,{checked:s,icon:e.icon,label:e.label,title:e.title,disabled:d,appearance:o,className:n,onCheckedChange:u=>{e.onCheckedChange&&e.onCheckedChange(u,t);}},e.id):jsx(_t,{label:e.label,icon:e.icon,title:e.title,ariaLabel:i==="icon-button"?e.triggerLabel||e.title:void 0,tone:e.tone,active:s,iconOnly:i==="icon-button",disabled:d,loading:fe(e.loading,t)??false,stopPropagation:true,appearance:o,className:n,onClick:()=>{l&&l(t);}},e.id)}r(Ba,"renderButtonAction");function vt({context:e,actions:t=[],layout:o="action-bar",appearance:n,empty:i,children:s,className:d,classNames:l}){let u=le(pe(n)),m=t.filter(c=>fe(c.visible,e)??true).map(c=>{if(c.render)return jsx("div",{children:c.render(e)},c.id);if(c.renderTrigger)return jsx("div",{children:c.renderTrigger(e)},c.id);let x=c.kind==="menu"?Sa(c,e,u,l,n):c.kind==="select"?Pa(c,e,l,n):Ba(c,e,n,l?.action);return c.wrapTrigger?jsx("div",{children:c.wrapTrigger(x,e)},c.id):x});if(m.length===0&&!s&&!i)return null;let g=o==="action-bar"?u.slots.actionBarActions:o==="toolbar"?u.slots.toolbarActions:"flex items-center gap-2";return jsxs("div",{className:a(g,l?.root,d),children:[m,s,m.length===0&&!s?i:null]})}r(vt,"DataExplorerToolbarActions");function Ea({context:e,actions:t=[],leading:o,trailing:n,children:i,empty:s,appearance:d,className:l,classNames:u}){let m=le(pe(d)),g=!!o||!!n||!!i||t.length>0;return g||!!s?jsxs("div",{className:a(m.slots.actionBarRoot,u?.root,l),children:[o?jsx("div",{className:a(m.slots.actionBarLeading,u?.leading),children:o}):null,jsx(vt,{context:e,actions:t,layout:"action-bar",appearance:d,empty:g?void 0:s,classNames:{root:u?.actions,action:u?.action},children:i}),n?jsx("div",{className:a(m.slots.actionBarTrailing,u?.trailing),children:n}):null]}):null}r(Ea,"DataExplorerActionBar");var zo={locale:"en-US",messages:{canvas:{replaceImage:"Replace image",cropImage:"Crop image",downloadImage:"Download image",useImageReference:"Use as reference",saturationValue:"Saturation and brightness",hue:"Hue",dots:"Dot grid",group:"Group",hexPlaceholder:"#F5F5F5",controls:"Canvas controls",background:"Canvas background",layers:"Layers",minimap:"Minimap",zoom:"Zoom",zoomIn:"Zoom in",zoomOut:"Zoom out",fit:"Show all elements",zoomTo:r(({percent:e})=>`Zoom to ${e}%`,"zoomTo"),color:r(({value:e})=>`Use ${e}`,"color"),hex:"Hex color",close:"Close",empty:"No layers",element:r(({type:e})=>e,"element")},pagination:{navigation:"Pagination",first:"First",previous:"Previous",next:"Next",last:"Last",page:r(({page:e,pageCount:t})=>`Page ${e} of ${t}`,"page"),currentPage:r(({page:e,pageCount:t})=>`Page ${e} of ${t}, current page`,"currentPage"),emptyResults:"0 results",range:r(({start:e,end:t,total:o})=>`${e}-${t} of ${o}`,"range"),selected:r(({count:e})=>`${e} selected`,"selected"),pageSize:"Items per page",loadBatchSize:"Items per load",perLoad:"Items per load",jumpToPage:"Jump to page",pages:"pages",clickToJump:"Click to jump to a page"},dialog:{close:"Close dialog"},dropdownMenu:{actions:"Actions"},loading:{spinner:"Loading"},layout:{resizePanels:"Resize panels",expandPanel:"Expand",collapsePanel:"Collapse",movePanel:"Move",moveBefore:"Move earlier",moveAfter:"Move later"},steps:{label:"Progress",current:"Current",completed:"Completed",error:"Error",disabled:"Disabled"},numberInput:{increment:"Increase value",decrement:"Decrease value"},passwordInput:{showPassword:"Show password",hidePassword:"Hide password"},multiSelect:{placeholder:"Select options",empty:"No options",removeOption:r(({value:e})=>`Remove ${e}`,"removeOption")},table:{dragColumn:r(({columnId:e})=>`Drag column ${e}`,"dragColumn"),resizeColumn:r(({columnId:e})=>`Resize column ${e}`,"resizeColumn"),sortColumn:r(({columnId:e})=>e?`Sort column ${e}`:"Sort column","sortColumn"),loadingRow:"Loading table row"},toolbar:{theme:{label:"Appearance",toggle:"Toggle theme",auto:"Auto",light:"Light",dark:"Dark"},language:{label:"Language",switch:"Switch language"}},toast:{errorTitle:"Error",warningTitle:"Warning",defaultErrorDescription:"Something went wrong.",defaultWarningDescription:"Please check and try again."},dataExplorer:{viewTree:{actions:"More actions",expand:"Expand",collapse:"Collapse",loading:"Loading...",empty:"No views",error:"Unable to load views"}},workbench:{relationshipGraph:{zoomOut:"Zoom out",zoomIn:"Zoom in",zoomToFit:"Fit graph",minimap:"Graph overview"},collection:{label:"Collection",loading:"Loading items",empty:"No items",loadError:"Unable to load items",refreshError:"Unable to refresh items",retry:"Retry",loadingMore:"Loading more items",permission:"You do not have permission to view this content",offline:"You appear to be offline",requestAccess:"Request access"},interactiveTable:{columnActions:"Column actions",freezeColumn:"Freeze to left",freezeEndColumn:"Freeze to right",unfreezeColumn:"Unfreeze from left",unfreezeEndColumn:"Unfreeze from right",unfreezeAllColumns:"Unfreeze all columns",resetColumnWidth:"Reset column width",frozenColumnTitle:"Frozen column"}},agentWorkbench:{label:"Session activity",reasoning:"Reasoning",plan:"Plan",taskNoDetail:"No additional details",modes:{chat:"Chat",work:"Work"},composer:{send:"Send message",stop:"Stop generating",queue:"Queue message",attach:"Add photos or files",voice:"Start voice input",webSearch:"Web search",chatMode:"Chat mode",model:"Model",reasoning:"Reasoning effort",permissions:"Permissions",removeAttachment:"Remove attachment",editQueued:"Edit queued message",deleteQueued:"Delete queued message",moveUp:"Move message up",moveDown:"Move message down",queued:"Queued messages",uploading:"Uploading",uploadFailed:"Upload failed",retryAttachment:"Retry attachment upload",noModels:"No models available",message:"Message",attachmentOnly:"Attachment",reasoningOptions:{low:"Low",medium:"Medium",high:"High",xhigh:"Extra high"},permissionOptions:{"approval-required":"Approval required","auto-approve":"Auto approve","full-access":"Full access"}},quickStart:{label:"Quick start",back:"Back",addFile:"Add file"},tool:{input:"Input",output:"Output",status:{pending:"Pending",running:"Running",completed:"Completed",failed:"Error",denied:"Denied"}},approval:{approve:"Approve",reject:"Reject",approved:"Approved",rejected:"Rejected"},artifact:{pending:"Preparing",ready:"Ready",failed:"Failed",open:r(({name:e})=>`Open ${e}`,"open")},run:{stopping:"Stopping...",stoppedAfter:r(({duration:e})=>`You stopped after ${e}`,"stoppedAfter")},process:{running:"Working",queued:"Queued",waitingApproval:"Waiting for approval",failed:"Failed",stopped:"Stopped",processed:"Processed",processedFor:r(({duration:e})=>`Worked for ${e}`,"processedFor"),completedCount:r(({completed:e,total:t})=>`${e}/${t} completed`,"completedCount")},artifactWorkspace:{outputs:"Outputs",sources:"Sources",viewAll:"View all",toggleSummary:"Toggle files",tabs:"Open files",closeTab:r(({name:e})=>`Close ${e}`,"closeTab"),closeWorkspace:"Close workspace",close:"Close",closeOthers:"Close other tabs",closeRight:"Close tabs to the right",closeAll:"Close all tabs",kinds:{audio:"Audio",canvas:"Canvas",file:"File",html:"HTML",image:"Image",markdown:"Markdown",pdf:"PDF",presentation:"Presentation",video:"Video",web:"Web page"},collapse:"Collapse",maximize:"Full screen",restore:"Exit full screen",download:r(({name:e})=>`Download ${e}`,"download"),openExternal:r(({name:e})=>`Open ${e} in a new window`,"openExternal"),loading:"Loading preview...",failed:"Preview unavailable",retry:"Try again"},usage:{label:"Context usage",context:r(({used:e,total:t})=>`${e} / ${t} tokens`,"context")},navigation:{search:"Search agents and sessions",searchSessions:"Search sessions",searchShortcut:"Focus search",clearSearch:"Clear search",tabsLabel:"Agent workbench navigation",agents:"Agents",sessions:"Sessions",newAgent:"New Agent",newSession:"New Session",capabilities:"Capabilities & Extensions",settings:"Agent Settings",allAgents:"All Agents",recentSessions:"Recent Sessions",chat:"Chat",work:"Work",chats:"Chats",builtIn:"Built-in",noDescription:"No description",loading:"Loading...",emptyAgents:"No agents yet",emptySessions:"No sessions yet",noResults:"No matching results",retry:"Retry",pin:"Pin",unpin:"Unpin",rename:"Rename",delete:"Delete",actions:"Actions",save:"Save",cancel:"Cancel",running:"Running",completed:"Completed",failed:"Failed",contextUsage:r(({percent:e})=>`${e}% context used`,"contextUsage")},details:{title:"Task details",description:"Summary and workspace activity",duration:"Duration",updated:"Updated",model:"Model",mode:"Mode",permissions:"Permissions",tokenUsage:"Token usage",summary:"Summary",summaryEmpty:"No summary is available yet.",summaryFailed:"The summary could not be generated.",highlights:"Highlights",pendingItems:"Pending items",tabs:{label:"Task detail views",summary:"Summary",workspace:"Workspace"},status:{queued:"Queued",running:"Running",waiting_approval:"Waiting for approval",stopping:"Stopping",stopped:"Stopped",completed:"Completed",failed:"Failed"},state:{loading:{title:"Loading task details",description:"Restoring the latest session activity."},empty:{title:"No task selected",description:"Select a task to inspect its details."},error:{title:"Unable to load task details",description:"Try again after the session is available."}},actions:{close:"Close task details",copySummary:"Copy summary",retry:"Retry",retrySummary:"Retry summary",resume:"Resume",continueInNewTask:"Continue in new task",editAndRerun:"Edit and rerun",export:"Export"},workspace:{diffs:"Code changes",files:"Files",terminals:"Terminals",tests:"Tests",artifacts:"Artifacts",exitCode:r(({code:e})=>`Exit code ${e}`,"exitCode"),diffStatus:{added:"Added",modified:"Modified",deleted:"Deleted",renamed:"Renamed"},fileOperation:{upsert:"Updated",delete:"Deleted"}}}}}};function Tr(e,t){return t?{canvas:{...e.canvas,...t.canvas},beautiful:{...e.beautiful,...t.beautiful},pagination:{...e.pagination,...t.pagination},dialog:{...e.dialog,...t.dialog},dropdownMenu:{...e.dropdownMenu,...t.dropdownMenu},loading:{...e.loading,...t.loading},layout:{...e.layout,...t.layout},steps:{...e.steps,...t.steps},numberInput:{...e.numberInput,...t.numberInput},passwordInput:{...e.passwordInput,...t.passwordInput},multiSelect:{...e.multiSelect,...t.multiSelect},table:{...e.table,...t.table},toolbar:{theme:{...e.toolbar.theme,...t.toolbar?.theme},language:{...e.toolbar.language,...t.toolbar?.language}},toast:{...e.toast,...t.toast},dataExplorer:{viewTree:{...e.dataExplorer.viewTree,...t.dataExplorer?.viewTree}},workbench:{relationshipGraph:{zoomOut:"Zoom out",zoomIn:"Zoom in",zoomToFit:"Fit graph",minimap:"Graph overview",...e.workbench.relationshipGraph,...t.workbench?.relationshipGraph},collection:{...e.workbench.collection,...t.workbench?.collection},interactiveTable:{...e.workbench.interactiveTable,...t.workbench?.interactiveTable}},agentWorkbench:{...e.agentWorkbench,...t.agentWorkbench,modes:{...e.agentWorkbench.modes,...t.agentWorkbench?.modes},composer:{...e.agentWorkbench.composer,...t.agentWorkbench?.composer},quickStart:{...e.agentWorkbench.quickStart,...t.agentWorkbench?.quickStart},tool:{...e.agentWorkbench.tool,...t.agentWorkbench?.tool,status:{...e.agentWorkbench.tool.status,...t.agentWorkbench?.tool?.status}},approval:{...e.agentWorkbench.approval,...t.agentWorkbench?.approval},artifact:{...e.agentWorkbench.artifact,...t.agentWorkbench?.artifact},run:{...e.agentWorkbench.run,...t.agentWorkbench?.run},process:{...e.agentWorkbench.process,...t.agentWorkbench?.process},artifactWorkspace:{...e.agentWorkbench.artifactWorkspace,...t.agentWorkbench?.artifactWorkspace},usage:{...e.agentWorkbench.usage,...t.agentWorkbench?.usage},navigation:{...e.agentWorkbench.navigation,...t.agentWorkbench?.navigation},details:{...e.agentWorkbench.details,...t.agentWorkbench?.details,tabs:{...e.agentWorkbench.details.tabs,...t.agentWorkbench?.details?.tabs},status:{...e.agentWorkbench.details.status,...t.agentWorkbench?.details?.status},state:{loading:{...e.agentWorkbench.details.state.loading,...t.agentWorkbench?.details?.state?.loading},empty:{...e.agentWorkbench.details.state.empty,...t.agentWorkbench?.details?.state?.empty},error:{...e.agentWorkbench.details.state.error,...t.agentWorkbench?.details?.state?.error}},actions:{...e.agentWorkbench.details.actions,...t.agentWorkbench?.details?.actions},workspace:{...e.agentWorkbench.details.workspace,...t.agentWorkbench?.details?.workspace,diffStatus:{...e.agentWorkbench.details.workspace.diffStatus,...t.agentWorkbench?.details?.workspace?.diffStatus},fileOperation:{...e.agentWorkbench.details.workspace.fileOperation,...t.agentWorkbench?.details?.workspace?.fileOperation}}}}}:e}r(Tr,"mergeMonkeysLocaleMessages");var qt={locale:zo.locale,messages:Tr(zo.messages)};var Ia=Object.freeze({}),Na=Object.freeze({}),Sr=Symbol.for("@inf-monkeys-tech/monkeys-design/provider-context@1");function La(){return Object.freeze({locale:createContext({...qt,provided:false}),theme:createContext({provided:false}),direction:createContext({provided:false}),environment:createContext({provided:false,environment:Ia,portal:Na})})}r(La,"createMonkeysProviderContexts");function Aa(){let e=globalThis,t=e[Sr];if(t)return t;let o=La();return Object.defineProperty(e,Sr,{value:o,enumerable:false,configurable:false,writable:false}),o}r(Aa,"getMonkeysProviderContexts");var co=Aa(),Wo=co.locale,jo=co.theme,Ha=co.direction,Br=co.environment;function _a(e,t){return t===void 0?e:e===void 0?t:{...e,...t,slots:e.slots||t.slots?{...e.slots,...t.slots}:void 0,styles:e.styles||t.styles?{...e.styles,...t.styles}:void 0}}r(_a,"mergeAppearance");function Rr(){try{return useContext(Wo)??{...qt,provided:!1}}catch{return {...qt,provided:false}}}r(Rr,"useMonkeysLocale");function lt(){return useContext(Wo).messages}r(lt,"useMonkeysLocaleMessages");function dt(e){let t=useContext(jo).baseAppearance;return useMemo(()=>_a(t,e),[e,t])}r(dt,"useMonkeysBaseAppearance");function Er(){return useContext(jo).listFooter??{}}r(Er,"useMonkeysListFooter");function Mr(){return useContext(Br).environment}r(Mr,"useMonkeysEnvironment");function Ir(){return useContext(Br).portal}r(Ir,"useMonkeysPortalOptions");function je(){let e=useContext(Wo),t=useContext(jo),o=useContext(Ha),n=e.provided||t.provided||o.provided;return useMemo(()=>n?{dir:o.direction,"data-monkeys-direction":o.direction,"data-monkeys-locale":e.locale,"data-monkeys-theme":t.themeId,"data-monkeys-theme-mode":t.resolvedTheme?.colorMode}:{},[o.direction,e.locale,n,t.resolvedTheme?.colorMode,t.themeId])}r(je,"useMonkeysComponentAttributes");function p(...e){return twMerge(e.filter(Boolean).join(" "))}r(p,"cn");function Ue(e){return e!=null&&typeof e!="boolean"}r(Ue,"hasRenderableNode");function Nr(e){return typeof e=="string"?e.trim().length>0:Ue(e)}r(Nr,"hasNonEmptyRenderableNode");function Lr(e,t){let o=new WeakMap,n=new Map,i=1;return (...s)=>{let d=s.slice(0,-1),l=s[s.length-1],u=d.map(c=>{if(!c)return 0;let x=o.get(c);return x===void 0&&(x=i++,o.set(c,x)),x}).join(":"),m=n.get(u);if(!m){let c={};for(let x of e)c[x]=t(...d.map(P=>P?.[x]));m=Object.freeze(c),n.size>=64&&n.delete(n.keys().next().value),n.set(u,m);}let g={...m};if(l)for(let c of e){let x=l[c];x&&(g[c]=t(...d.map(P=>P?.[c]),x));}return g}}r(Lr,"createStaticSlotMerger");var Oa={},Me="motion-safe:transition motion-safe:duration-300 motion-safe:ease-out",ot="motion-safe:transition-all motion-safe:duration-300 motion-safe:ease-out",po="motion-safe:transition-transform motion-safe:duration-300 motion-safe:ease-out",Ar=p("[scrollbar-width:thin]","[scrollbar-color:hsl(var(--muted-foreground)/0.45)_transparent]","[&::-webkit-scrollbar]:h-2 [&::-webkit-scrollbar]:w-2","[&::-webkit-scrollbar-button]:hidden [&::-webkit-scrollbar-button]:h-0 [&::-webkit-scrollbar-button]:w-0 [&::-webkit-scrollbar-button]:bg-transparent","[&::-webkit-scrollbar-button:single-button]:hidden [&::-webkit-scrollbar-button:single-button]:h-0 [&::-webkit-scrollbar-button:single-button]:w-0","[&::-webkit-scrollbar-button:double-button]:hidden [&::-webkit-scrollbar-button:double-button]:h-0 [&::-webkit-scrollbar-button:double-button]:w-0","[&::-webkit-scrollbar-corner]:bg-transparent","[&::-webkit-scrollbar-track]:bg-transparent","[&:has(thead.sticky)::-webkit-scrollbar-track]:mt-[var(--base-table-header-height)]","[&::-webkit-scrollbar-thumb]:rounded-full [&::-webkit-scrollbar-thumb]:bg-muted-foreground/40","hover:[&::-webkit-scrollbar-thumb]:bg-muted-foreground/55"),Fa=p("[&.sticky_th]:sticky [&.sticky_th]:top-0 [&.sticky_th]:z-[2]","[&.sticky_th]:bg-[var(--base-table-sticky-header-bg)]","[&.sticky_th]:shadow-[inset_0_-1px_0_var(--base-table-header-separator)]"),_r={buttonBase:p("group/button inline-flex min-w-0 items-center justify-center gap-2 rounded-md border px-3 text-sm font-medium focus-visible:outline-hidden","cursor-pointer disabled:!cursor-not-allowed",ot),buttonDefault:"border-border bg-background text-foreground hover:bg-accent/60",buttonPrimary:"border-primary/20 bg-primary/10 text-primary hover:bg-primary/15",buttonSuccess:"border-[hsl(var(--success,142_72%_29%)_/_0.30)] bg-[hsl(var(--success,142_72%_29%)_/_0.10)] text-[hsl(var(--success,142_72%_29%))] hover:bg-[hsl(var(--success,142_72%_29%)_/_0.15)]",buttonWarning:"border-[hsl(var(--warning,45_93%_47%)_/_0.30)] bg-[hsl(var(--warning,45_93%_47%)_/_0.10)] text-[hsl(var(--warning-foreground,28_73%_26%))] hover:bg-[hsl(var(--warning,45_93%_47%)_/_0.15)]",buttonDanger:"border-destructive/20 bg-destructive/10 text-destructive-text hover:bg-destructive/15",buttonMuted:"border-border/60 bg-muted/45 text-muted-foreground hover:bg-muted/70 hover:text-foreground",buttonActive:"border-primary/35 bg-primary/10 text-primary",buttonDisabled:"!cursor-not-allowed opacity-60",buttonIconOnly:"w-9 px-0",buttonIcon:"inline-flex h-4 w-4 shrink-0 items-center justify-center text-[inherit] [&_*]:!text-[inherit] [&_svg]:!stroke-current [&_svg_*]:!stroke-current",buttonLabel:"min-w-0 truncate",badgeBase:p("inline-flex max-w-full items-center gap-1.5 rounded-full border px-2 py-0.5 text-xs font-medium",Me),badgeDefault:"border-border/60 bg-background text-foreground",badgePrimary:"border-primary/30 bg-primary/10 text-primary",badgeSuccess:"border-[hsl(var(--success,142_72%_29%)_/_0.30)] bg-[hsl(var(--success,142_72%_29%)_/_0.10)] text-[hsl(var(--success,142_72%_29%))]",badgeWarning:"border-[hsl(var(--warning,45_93%_47%)_/_0.30)] bg-[hsl(var(--warning,45_93%_47%)_/_0.10)] text-[hsl(var(--warning-foreground,28_73%_26%))]",badgeDanger:"border-destructive/30 bg-destructive/10 text-destructive-text",badgeMuted:"border-border/60 bg-muted text-muted-foreground",badgeIcon:"inline-flex h-3.5 w-3.5 shrink-0 items-center justify-center",badgeLabel:"min-w-0 truncate",textRoot:"min-w-0 break-words leading-6",textSizeXs:"text-xs",textSizeSm:"text-sm",textSizeMd:"text-base",textSizeLg:"text-lg",textSizeXl:"text-xl",typographyToneDefault:"text-foreground",typographyToneMuted:"text-muted-foreground",typographyTonePrimary:"text-primary",typographyToneSuccess:"text-emerald-700 dark:text-emerald-400",typographyToneWarning:"text-amber-700 dark:text-amber-400",typographyToneDanger:"text-destructive-text",typographyToneInherit:"text-inherit",headingRoot:"min-w-0 break-words font-semibold tracking-tight",headingSizeXs:"text-sm leading-5",headingSizeSm:"text-base leading-6",headingSizeMd:"text-lg leading-7",headingSizeLg:"text-xl leading-7",headingSizeXl:"text-2xl leading-8",headingSize2xl:"text-3xl leading-9",linkRoot:"inline break-words underline decoration-current/40 underline-offset-4 hover:decoration-current focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-primary/30",codeInline:"rounded border border-border/70 bg-muted/60 px-1.5 py-0.5 font-mono text-[0.875em] leading-[1.45] text-foreground",codeBlock:"m-0 max-w-full overflow-x-auto rounded-md border border-border/70 bg-muted/60 p-4 text-foreground",codeContent:"font-mono text-sm leading-6",kbdRoot:"inline-flex min-h-5 items-center rounded border border-border bg-muted/70 px-1.5 font-mono text-[0.75em] font-medium leading-5 text-foreground shadow-[inset_0_-1px_0_hsl(var(--monkeys-color-border))]",listRoot:"m-0 min-w-0 list-outside break-words ps-5 text-foreground",listSpacingCompact:"[&>li+li]:mt-1",listSpacingDefault:"[&>li+li]:mt-2",listSpacingRelaxed:"[&>li+li]:mt-3",listMarkerNone:"list-none ps-0",listMarkerDisc:"list-disc",listMarkerCircle:"list-[circle]",listMarkerSquare:"list-[square]",listMarkerDecimal:"list-decimal",listMarkerLowerAlpha:"list-[lower-alpha]",listMarkerUpperAlpha:"list-[upper-alpha]",listItem:"min-w-0 ps-1 leading-6 marker:text-muted-foreground",stackRoot:"flex min-w-0 flex-col",inlineRoot:"flex min-w-0 flex-row",gridRoot:"grid min-w-0",containerRoot:"mx-auto w-full min-w-0",aspectRatioRoot:"relative min-w-0 overflow-hidden [&>*]:h-full [&>*]:w-full",spinnerRoot:"inline-flex shrink-0 items-center justify-center text-current align-middle",spinnerIndicator:"h-5 w-5 rounded-full border-2 border-current border-r-transparent motion-safe:animate-spin motion-reduce:animate-none",visuallyHiddenRoot:"sr-only",visuallyHiddenFocusable:"focus:not-sr-only focus:fixed focus:left-4 focus:top-4 focus:z-[1000] focus:rounded-md focus:bg-background focus:px-4 focus:py-2 focus:text-foreground focus:shadow-lg focus:outline-hidden focus:ring-2 focus:ring-ring focus-within:not-sr-only focus-within:fixed focus-within:left-4 focus-within:top-4 focus-within:z-[1000] focus-within:rounded-md focus-within:bg-background focus-within:px-4 focus-within:py-2 focus-within:text-foreground focus-within:shadow-lg focus-within:ring-2 focus-within:ring-ring",fieldsetRoot:"min-w-0 border-0 p-0 text-foreground",fieldsetLegend:"min-w-0 text-sm font-semibold leading-6 text-foreground",fieldsetDescription:"mt-1 text-sm leading-5 text-muted-foreground",fieldsetError:"mt-1 text-sm leading-5 text-destructive-text",fieldsetContent:"mt-3 grid min-w-0 gap-3",stepsRoot:"m-0 min-w-0 list-none p-0 text-foreground",stepsHorizontal:"flex w-full max-w-full items-start overflow-x-auto pb-2",stepsVertical:"grid",stepsItem:"relative min-w-0",stepsItemHorizontal:"flex min-w-52 flex-1 items-start",stepsItemVertical:"pb-6 last:pb-0",stepsTrigger:"flex min-w-0 flex-1 items-start gap-3 rounded-md border-0 bg-transparent p-1 text-start text-inherit",stepsTriggerInteractive:"cursor-pointer hover:bg-accent/50 focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 motion-safe:transition motion-safe:duration-300 motion-safe:ease-out",stepsTriggerDisabled:"!cursor-not-allowed opacity-60",stepsIndicator:"relative z-[1] inline-flex h-7 w-7 shrink-0 items-center justify-center rounded-full border text-xs font-semibold",stepsIndicatorPending:"border-border bg-background text-muted-foreground",stepsIndicatorCurrent:"border-primary/50 bg-primary/10 text-primary",stepsIndicatorCompleted:"border-primary bg-primary text-primary-foreground",stepsIndicatorError:"border-destructive bg-destructive text-destructive-foreground",stepsContent:"grid min-w-0 gap-1 pt-0.5",stepsLabel:"min-w-0 break-words text-sm font-medium leading-5",stepsDescription:"min-w-0 break-words text-sm leading-5 text-muted-foreground",stepsStatus:"sr-only",stepsConnector:"shrink-0 bg-border",stepsConnectorHorizontal:"mt-3.5 h-px w-8",stepsConnectorVertical:"absolute bottom-0 top-8 start-3.5 w-px -translate-x-1/2",stepsConnectorCompleted:"bg-primary/60",stepsConnectorError:"bg-destructive/60",scrollAreaViewport:"min-h-0 min-w-0",numberInputControl:"tabular-nums",numberInputStepControls:"me-1 flex shrink-0 self-stretch overflow-hidden border-s border-border",numberInputStepButton:"flex min-h-6 w-7 cursor-pointer items-center justify-center border-0 bg-transparent px-1 text-xs leading-none text-muted-foreground hover:bg-accent hover:text-foreground focus-visible:z-[1] focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-ring disabled:!cursor-not-allowed disabled:opacity-40",passwordInputControl:"pe-2",passwordInputToggle:"me-1 inline-flex min-h-7 shrink-0 cursor-pointer items-center justify-center rounded px-2 text-xs font-medium text-muted-foreground hover:bg-accent hover:text-foreground focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring disabled:!cursor-not-allowed disabled:opacity-40",inputGroupRoot:p("relative flex min-w-0 items-stretch overflow-hidden rounded-md border border-border bg-background text-foreground focus-within:border-primary/50 focus-within:ring-2 focus-within:ring-ring/30",Me),inputGroupInvalid:"border-destructive/55 focus-within:border-destructive/70 focus-within:ring-destructive/25",inputGroupDisabled:"!cursor-not-allowed bg-muted/35",inputGroupContent:"flex min-w-0 flex-1 items-stretch [&>*]:min-w-0",inputGroupStartElement:"inline-flex shrink-0 items-center justify-center ps-3 pe-1 text-foreground/75",inputGroupEndElement:"inline-flex shrink-0 items-center justify-center ps-1 pe-3 text-foreground/75",inputGroupStartAddon:"inline-flex max-w-[min(40%,16rem)] shrink-0 items-center overflow-hidden border-e border-border bg-muted/60 px-3 text-sm text-foreground/75 text-ellipsis whitespace-nowrap [&>*]:min-w-0",inputGroupEndAddon:"inline-flex max-w-[min(40%,16rem)] shrink-0 items-center overflow-hidden border-s border-border bg-muted/60 px-3 text-sm text-foreground/75 text-ellipsis whitespace-nowrap [&>*]:min-w-0",panelRoot:p("group relative flex min-w-0 flex-col overflow-hidden rounded-lg border border-border/70 bg-background",ot),panelInteractive:"cursor-pointer hover:shadow-md",panelSelected:"border-primary/45 bg-primary/5",panelDisabled:"!cursor-not-allowed opacity-60",panelMedia:"shrink-0 overflow-hidden",panelHeader:"min-w-0 p-token-lg",panelTitle:"min-w-0 truncate text-sm font-semibold leading-none text-foreground",panelDescription:"mt-1 text-sm leading-5 text-foreground/75",panelBody:"min-w-0 px-token-lg pb-token-lg text-sm text-foreground",panelBodyStandalone:"pt-token-lg",panelFooter:"shrink-0 border-t border-border/60 px-token-lg py-token-md",stateRoot:p("flex min-h-48 flex-col items-center justify-center rounded-lg border border-border/70 bg-background px-6 py-10 text-center",Me),stateIcon:"mb-token-lg flex h-12 w-12 items-center justify-center rounded-full bg-muted text-muted-foreground motion-safe:animate-in motion-safe:fade-in",stateTitle:"text-sm font-semibold text-foreground",stateDescription:"mt-2 max-w-md text-sm leading-6 text-muted-foreground",stateActions:"mt-token-xl flex flex-wrap items-center justify-center gap-token-sm",loadingSpinner:"h-5 w-5 motion-safe:animate-spin motion-reduce:animate-none",fieldRoot:"grid min-w-0 gap-token-md",fieldLabelRow:"flex min-w-0 items-center justify-between gap-token-md",fieldLabel:"min-w-0 text-sm font-medium leading-none text-foreground",fieldRequired:"text-destructive-text",fieldDescription:"text-sm leading-5 text-muted-foreground",fieldMessage:"text-sm leading-5 text-muted-foreground",fieldControl:"min-w-0",controlWrapper:p("relative flex min-w-0 items-center rounded-md border border-border bg-background text-foreground focus-within:border-primary/35",Me),controlBase:"min-w-0 flex-1 bg-transparent px-3 text-sm text-foreground outline-hidden placeholder:text-muted-foreground disabled:!cursor-not-allowed",controlInput:"h-9",controlTextarea:"min-h-24 resize-y py-2 leading-6",controlSelect:"h-9 cursor-pointer appearance-none pr-9 disabled:!cursor-not-allowed",controlIcon:"pointer-events-none ml-3 inline-flex h-4 w-4 shrink-0 items-center justify-center text-muted-foreground",controlTrailing:"mr-3 inline-flex shrink-0 items-center justify-center text-muted-foreground",controlInvalid:"border-destructive/45 focus-within:border-destructive/60",controlDisabled:"!cursor-not-allowed opacity-60",controlReadOnly:"bg-muted/35",selectChevron:p("pointer-events-none absolute right-3 top-1/2 h-2 w-2 -translate-y-1/2 rotate-45 border-b border-r border-current text-muted-foreground",po),selectMenu:"absolute left-0 right-0 top-[calc(100%+0.375rem)] z-50 max-h-60 overflow-auto rounded-md border border-border bg-background p-1 text-sm text-foreground shadow-lg outline-hidden",selectOption:p("flex min-h-8 w-full min-w-0 cursor-pointer items-center rounded-sm px-2.5 py-1.5 text-left text-sm text-foreground",ot),selectOptionActive:"bg-accent text-accent-foreground",selectOptionSelected:"bg-primary/10 text-primary",selectOptionDisabled:"!cursor-not-allowed opacity-50",selectPlaceholder:"text-muted-foreground",selectNative:"sr-only",switchRoot:"inline-flex min-w-0 cursor-pointer items-start gap-3",switchInput:"sr-only",switchTrack:p("relative mt-0.5 inline-flex h-6 w-10 shrink-0 items-center rounded-full border border-border bg-muted focus-within:border-primary/35",Me),switchThumb:p("h-4 w-4 translate-x-1 rounded-full bg-background shadow-sm",po),switchChecked:"border-primary/40 bg-primary/80 text-primary-foreground",switchDisabled:"!cursor-not-allowed opacity-60",switchContent:"grid min-w-0 gap-1",switchLabel:"text-sm font-medium leading-none text-foreground",switchDescription:"text-sm leading-5 text-muted-foreground",checkboxRoot:"inline-flex min-w-0 cursor-pointer items-start gap-3",checkboxInput:"sr-only",checkboxBox:p("mt-0.5 inline-flex h-4 w-4 shrink-0 items-center justify-center rounded border border-border bg-background text-primary focus-within:border-primary/40",Me),checkboxBoxChecked:"border-primary/45 bg-primary text-primary-foreground",checkboxBoxInvalid:"border-destructive/50",checkboxIndicator:"text-xs font-bold leading-none",checkboxDisabled:"!cursor-not-allowed opacity-60",checkboxContent:"grid min-w-0 gap-1",checkboxLabel:"text-sm font-medium leading-none text-foreground",checkboxDescription:"text-sm leading-5 text-muted-foreground",radioGroupRoot:"grid min-w-0 gap-2",radioOption:p("inline-flex min-w-0 cursor-pointer items-start gap-3 rounded-md border border-border/60 bg-background px-3 py-2 text-sm",ot,"hover:bg-muted/35"),radioInput:"sr-only",radioMarker:p("mt-0.5 inline-flex h-4 w-4 shrink-0 items-center justify-center rounded-full border border-border bg-background text-primary focus-within:border-primary/40",Me),radioMarkerChecked:"border-primary/50 bg-primary/10",radioIndicator:"h-2 w-2 rounded-full bg-primary",radioOptionDisabled:"!cursor-not-allowed opacity-60 hover:bg-background",radioContent:"grid min-w-0 gap-1",radioLabel:"text-sm font-medium leading-none text-foreground",radioDescription:"text-sm leading-5 text-muted-foreground",dialogRoot:"relative",dialogTrigger:"",dialogTriggerDisabled:"!cursor-not-allowed opacity-60",dialogOverlay:"fixed inset-0 z-50 bg-background/70 backdrop-blur-sm motion-safe:animate-in motion-safe:fade-in motion-safe:duration-300 motion-safe:ease-out",dialogContent:"pointer-events-none fixed inset-0 z-50 flex min-h-0 items-center justify-center p-4",dialogPanel:p("pointer-events-auto relative flex max-h-[min(85vh,720px)] w-full max-w-lg min-w-0 flex-col overflow-hidden rounded-lg border border-border/70 bg-background text-foreground shadow-xl","motion-safe:animate-in motion-safe:fade-in motion-safe:zoom-in-95 motion-safe:duration-300 motion-safe:ease-out"),dialogHeader:"grid min-w-0 gap-1 border-b border-border/60 px-5 py-4",dialogTitle:"min-w-0 pr-8 text-base font-semibold leading-6 text-foreground",dialogDescription:"text-sm leading-6 text-muted-foreground",dialogBody:"min-h-0 min-w-0 overflow-auto px-5 py-4 text-sm text-foreground",dialogFooter:"flex shrink-0 flex-wrap items-center justify-end gap-2 border-t border-border/60 px-5 py-4",dialogClose:p("absolute right-3 top-3 inline-flex h-8 w-8 cursor-pointer items-center justify-center rounded-md text-muted-foreground hover:bg-muted/60 hover:text-foreground focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-primary/30",ot),dropdownRoot:"relative inline-flex min-w-0",dropdownTrigger:"",dropdownTriggerDisabled:"!cursor-not-allowed opacity-60",dropdownMenu:"z-50 min-w-48 overflow-hidden rounded-md border border-border bg-background p-1 text-sm text-foreground shadow-lg motion-safe:animate-in motion-safe:fade-in motion-safe:duration-300 motion-safe:ease-out",dropdownMenuTop:"bottom-[calc(100%+0.375rem)] top-auto",dropdownMenuEnd:"left-auto right-0",dropdownLabel:"px-2.5 py-1.5 text-xs font-semibold uppercase tracking-[0.12em] text-muted-foreground",dropdownSeparator:"my-1 h-px bg-border/70",dropdownItem:p("flex min-w-0 cursor-pointer items-center gap-2 rounded-sm px-2.5 py-2 text-left text-sm text-foreground hover:bg-accent/60 focus:bg-accent/60 data-[highlighted]:bg-accent/60 focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-primary/30",ot),dropdownItemDanger:"text-destructive-text hover:bg-destructive/10 focus:bg-destructive/10 data-[highlighted]:bg-destructive/10",dropdownItemDisabled:"!cursor-not-allowed opacity-50 hover:bg-transparent focus:bg-transparent data-[highlighted]:bg-transparent",dropdownItemIcon:"inline-flex h-4 w-4 shrink-0 items-center justify-center",dropdownItemContent:"grid min-w-0 flex-1 gap-0.5",dropdownItemLabel:"min-w-0 truncate",dropdownItemDescription:"min-w-0 truncate text-xs leading-4 text-muted-foreground",dropdownItemShortcut:"ml-3 shrink-0 text-xs font-medium text-muted-foreground",tooltipRoot:"relative inline-flex min-w-0",tooltipTrigger:"inline-flex min-w-0",tooltipContent:"pointer-events-none z-50 max-w-xs rounded-md border border-border bg-popover px-2.5 py-1.5 text-xs leading-5 text-popover-foreground shadow-lg motion-safe:animate-in motion-safe:fade-in motion-safe:duration-300 motion-safe:ease-out",noticeBase:p("flex min-w-0 gap-3 rounded-lg border px-4 py-3 text-sm",Me,"motion-safe:animate-in motion-safe:fade-in"),noticeDefault:"border-border bg-background text-foreground",noticePrimary:"border-primary/25 bg-primary/10 text-primary",noticeSuccess:"border-[hsl(var(--success,142_72%_29%)_/_0.30)] bg-[hsl(var(--success,142_72%_29%)_/_0.10)] text-foreground",noticeWarning:"border-[hsl(var(--warning,45_93%_47%)_/_0.30)] bg-[hsl(var(--warning,45_93%_47%)_/_0.10)] text-[hsl(var(--warning-foreground,28_73%_26%))]",noticeDanger:"border-destructive/30 bg-destructive/10 text-destructive-text",noticeMuted:"border-border/60 bg-muted/35 text-muted-foreground",noticeIcon:"mt-0.5 inline-flex h-4 w-4 shrink-0 items-center justify-center motion-safe:animate-in motion-safe:fade-in",noticeTitle:"font-semibold leading-5",noticeDescription:"leading-6",noticeActions:"mt-3 flex flex-wrap items-center gap-2",dividerRoot:p("shrink-0 border-border/70",Me),dividerLabel:"mx-3 shrink-0 text-xs font-medium uppercase tracking-[0.12em] text-muted-foreground motion-safe:animate-in motion-safe:fade-in",sectionHeaderRoot:"flex min-w-0 flex-wrap items-start justify-between gap-token-md motion-safe:animate-in motion-safe:fade-in motion-safe:duration-300 motion-safe:ease-out",sectionHeaderContent:"grid min-w-0 gap-1",sectionHeaderEyebrow:"text-xs font-semibold uppercase tracking-[0.14em] text-muted-foreground",sectionHeaderTitle:"text-base font-semibold leading-6 text-foreground",sectionHeaderDescription:"max-w-2xl text-sm leading-6 text-muted-foreground",sectionHeaderActions:"flex shrink-0 flex-wrap items-center gap-2",tabsRoot:"grid min-w-0 gap-token-md",tabsList:p("inline-flex min-w-0 flex-wrap items-center gap-token-xs rounded-lg border border-border/70 bg-muted/30 p-token-xs",Me),tabsTrigger:p("inline-flex min-w-0 cursor-pointer items-center justify-center rounded-md px-3 py-1.5 text-sm font-medium text-muted-foreground hover:bg-background/70 hover:text-foreground focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-primary/30 focus-visible:ring-offset-1 motion-reduce:transition-none",ot),tabsTriggerActive:"bg-background text-foreground shadow-sm",tabsTriggerDisabled:"!cursor-not-allowed opacity-50 hover:bg-transparent",tabsPanel:"min-w-0 rounded-lg border border-border/70 bg-background p-4 text-sm text-foreground focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-primary/30 motion-safe:animate-in motion-safe:fade-in motion-safe:duration-300 motion-safe:ease-out motion-reduce:transition-none",segmentedRoot:p("inline-flex min-w-0 items-center gap-1 rounded-lg border border-border/70 bg-muted/30 p-1",Me),segmentedItem:p("inline-flex min-w-0 cursor-pointer items-center justify-center gap-1.5 rounded-md px-3 py-1.5 text-sm font-medium text-muted-foreground hover:bg-background/70 hover:text-foreground focus-visible:outline-hidden",ot),segmentedItemActive:"bg-background text-foreground shadow-sm",segmentedItemDisabled:"!cursor-not-allowed opacity-50 hover:bg-transparent",progressRoot:"grid min-w-0 gap-2",progressTrack:"h-2 w-full overflow-hidden rounded-full bg-muted",progressIndicator:"h-full rounded-full bg-primary motion-safe:transition-[width] motion-safe:duration-500 motion-safe:ease-out",progressLabelRow:"flex min-w-0 items-center justify-between gap-3",progressLabel:"min-w-0 truncate text-sm font-medium text-foreground",progressValue:"shrink-0 text-xs font-medium text-muted-foreground",skeletonRoot:"relative overflow-hidden rounded-md bg-muted/70",avatarRoot:"relative inline-flex shrink-0 items-center justify-center overflow-hidden rounded-full border border-border bg-muted text-sm font-semibold text-muted-foreground motion-safe:transition motion-safe:duration-300 motion-safe:ease-out",avatarImage:"h-full w-full object-cover",avatarFallback:"flex h-full w-full items-center justify-center bg-muted text-foreground",avatarStatus:"absolute bottom-0 right-0 h-2.5 w-2.5 rounded-full border-2 border-background bg-muted-foreground motion-safe:animate-pulse",avatarText:"min-w-0 truncate text-sm font-medium text-foreground",toolbarRoot:p("flex min-w-0 flex-wrap items-center justify-between gap-token-md rounded-lg border border-border/70 bg-background px-token-lg py-token-md",Me),toolbarLeading:"flex min-w-0 items-center gap-token-md",toolbarTitle:"min-w-0 truncate text-sm font-semibold text-foreground",toolbarDescription:"mt-0.5 text-sm leading-5 text-muted-foreground",toolbarContent:"min-w-0 flex-1",toolbarActions:"flex shrink-0 flex-wrap items-center gap-token-sm",breadcrumbRoot:"min-w-0 text-sm text-muted-foreground",breadcrumbList:"flex min-w-0 flex-wrap items-center gap-1.5",breadcrumbItem:"inline-flex min-w-0 items-center gap-1.5",breadcrumbLink:"min-w-0 cursor-pointer truncate text-muted-foreground hover:text-foreground disabled:!cursor-not-allowed disabled:opacity-50 aria-disabled:!cursor-not-allowed aria-disabled:opacity-50 aria-disabled:hover:text-muted-foreground motion-safe:transition motion-safe:duration-300 motion-safe:ease-out",breadcrumbCurrent:"min-w-0 truncate font-medium text-foreground",breadcrumbSeparator:"shrink-0 text-muted-foreground/70",paginationRoot:"flex min-w-0 flex-wrap items-center justify-between gap-3 text-sm",paginationInfo:"min-w-0 text-muted-foreground",paginationControls:"flex min-w-0 flex-wrap items-center justify-end gap-1.5",paginationButton:"inline-flex h-8 min-w-8 cursor-pointer items-center justify-center whitespace-nowrap rounded-md border border-border bg-background px-2.5 text-sm font-medium text-foreground hover:bg-accent/60 disabled:!cursor-not-allowed disabled:opacity-50 motion-safe:transition motion-safe:duration-300 motion-safe:ease-out",paginationButtonDisabled:"!cursor-not-allowed opacity-50",paginationPage:"inline-flex h-8 min-w-8 cursor-default items-center justify-center rounded-md bg-muted/50 px-2.5 text-sm font-medium text-foreground hover:bg-muted/50",paginationEllipsis:"inline-flex h-8 min-w-6 items-center justify-center px-1 text-sm text-muted-foreground",descriptionListRoot:"grid min-w-0 gap-3 text-sm",descriptionListItem:"grid min-w-0 gap-1 rounded-md border border-border/60 bg-background px-3 py-2 motion-safe:transition motion-safe:duration-300 motion-safe:ease-out hover:shadow-sm",descriptionListTerm:"min-w-0 truncate text-xs font-medium uppercase tracking-[0.08em] text-muted-foreground",descriptionListValue:"min-w-0 text-sm leading-6 text-foreground",accordionRoot:"grid min-w-0 gap-2",accordionItem:"overflow-hidden rounded-lg border border-border/70 bg-background motion-safe:transition motion-safe:duration-300 motion-safe:ease-out motion-reduce:transition-none",accordionTrigger:"flex w-full min-w-0 cursor-pointer items-center justify-between gap-3 px-4 py-3 text-start text-sm font-medium text-foreground hover:bg-muted/40 focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-ring disabled:!cursor-not-allowed disabled:opacity-50 motion-safe:transition motion-safe:duration-300 motion-safe:ease-out motion-reduce:transition-none",accordionTriggerIcon:p("h-2 w-2 shrink-0 rotate-45 border-b border-r border-current text-muted-foreground",po,"motion-reduce:transition-none"),accordionPanel:"border-t border-border/60 px-4 py-3 text-sm leading-6 text-muted-foreground motion-safe:animate-in motion-safe:fade-in motion-safe:duration-300 motion-safe:ease-out motion-reduce:animate-none",menuTrigger:"inline-flex min-w-0",menuContent:"z-50 min-w-44 overflow-hidden rounded-md border border-border bg-background p-1 text-sm text-foreground shadow-lg outline-hidden motion-safe:animate-in motion-safe:fade-in motion-safe:zoom-in-95 motion-safe:duration-300 motion-safe:ease-out",menuLabel:"px-2 py-1.5 text-xs font-medium text-muted-foreground",menuSeparator:"-mx-1 my-1 h-px bg-border",menuItem:p("relative flex min-h-8 min-w-0 cursor-pointer select-none items-center gap-2 rounded-sm px-2.5 py-1.5 text-sm text-foreground outline-hidden focus:bg-accent focus:text-accent-foreground data-[disabled]:!cursor-not-allowed data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground",ot),menuItemDefault:"text-foreground",menuItemPrimary:"text-primary focus:text-primary data-[highlighted]:text-primary",menuItemSuccess:"text-[hsl(var(--success,142_72%_29%))] focus:text-[hsl(var(--success,142_72%_29%))] data-[highlighted]:text-[hsl(var(--success,142_72%_29%))]",menuItemWarning:"text-[hsl(var(--warning-foreground,28_73%_26%))] focus:text-[hsl(var(--warning-foreground,28_73%_26%))] data-[highlighted]:text-[hsl(var(--warning-foreground,28_73%_26%))]",menuItemDanger:"text-destructive-text focus:text-destructive-text data-[highlighted]:text-destructive-text",menuItemMuted:"text-muted-foreground focus:text-foreground data-[highlighted]:text-foreground",menuItemDisabled:"!cursor-not-allowed opacity-50 data-[disabled]:pointer-events-none",menuItemIcon:"inline-flex h-4 w-4 shrink-0 items-center justify-center",menuItemLabel:"min-w-0 flex-1 truncate",menuItemShortcut:"ml-4 shrink-0 text-xs font-medium text-muted-foreground",menuCheckboxIndicator:"absolute left-2 inline-flex h-4 w-4 items-center justify-center text-current",menuRadioIndicator:"absolute left-2 inline-flex h-4 w-4 items-center justify-center text-current",menuSubTrigger:p("relative flex min-h-8 min-w-0 cursor-pointer select-none items-center gap-2 rounded-sm px-2.5 py-1.5 text-sm text-foreground outline-hidden focus:bg-accent focus:text-accent-foreground data-[disabled]:!cursor-not-allowed data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground",ot),menuSubTriggerIcon:"ml-auto inline-flex h-4 w-4 shrink-0 items-center justify-center text-muted-foreground",menuSubContent:"z-50 min-w-40 overflow-hidden rounded-md border border-border bg-background p-1 text-sm text-foreground shadow-lg outline-hidden motion-safe:animate-in motion-safe:fade-in motion-safe:zoom-in-95 motion-safe:duration-300 motion-safe:ease-out",tableContainer:p("relative isolate min-w-0 overflow-auto rounded-lg border border-border/70 bg-background/95 bg-clip-padding [scrollbar-gutter:stable]","[--base-table-header-height:2.75rem] [--base-table-split-scrollbar-gutter:0.75rem]","[--base-table-sticky-header-bg:hsl(var(--background))] [--base-table-header-separator:hsl(var(--border)_/_0.7)]",Ar,Me),tableContainerFooterAttached:"!rounded-b-none !shadow-none",tableRoot:"w-full caption-bottom border-separate border-spacing-0 text-sm text-foreground",tableCaption:"mt-3 text-sm text-muted-foreground",tableHeader:p("relative z-[2] bg-transparent [&_tr]:bg-transparent",Fa),tableBody:"[&_tr:last-child>*]:border-b-0",tableFooter:"bg-muted/30 font-medium [&_tr>*]:border-t [&_tr>*]:border-border/70",tableFooterBar:p("flex min-w-0 flex-wrap items-center justify-between gap-3 rounded-lg border border-border/70 bg-muted/20 px-4 py-3 text-sm text-foreground shadow-none",Me),tableFooterBarAttached:"-mt-px rounded-t-none border-t border-border/70 shadow-none",tableFooterBarLeading:"flex min-w-0 items-center gap-2",tableFooterBarContent:"min-w-0 flex-1",tableFooterBarActions:"ms-auto flex shrink-0 flex-wrap items-center gap-2",tableSplitRoot:"grid w-full min-w-0 grid-cols-[minmax(0,1fr)] grid-rows-[auto_minmax(0,1fr)_auto] caption-bottom border-separate border-spacing-0 text-sm text-foreground",tableSplitHeader:"block w-full min-w-0 shrink-0 overflow-x-hidden overflow-y-hidden bg-transparent",tableSplitBody:p("block min-h-0 w-full min-w-0 max-w-full justify-self-stretch overflow-auto [scrollbar-gutter:stable]",Ar),tableSplitFooter:"block w-full min-w-0 shrink-0 overflow-x-hidden overflow-y-hidden",tableSplitRow:"grid w-max min-w-full [grid-template-columns:var(--base-table-column-template)]",tableSplitHead:"flex min-w-0 overflow-hidden",tableSplitCell:"block min-w-0 overflow-hidden [overflow-wrap:anywhere]",tableRow:p("[&>*]:border-b [&>*]:border-border/60 data-[state=selected]:bg-primary/5 data-[state=selected]:[&>*]:bg-primary/5",Me),tableRowInteractive:"cursor-pointer [--base-table-row-hover-bg:hsl(var(--muted)_/_0.35)] hover:bg-[var(--base-table-row-hover-bg)] hover:[&>td]:bg-[var(--base-table-row-hover-bg)] hover:[&>th]:bg-[var(--base-table-row-hover-bg)]",tableRowSelected:"bg-primary/5 [&>*]:bg-primary/5",tableRowDisabled:"!cursor-not-allowed opacity-60",tableHead:"relative h-11 whitespace-nowrap px-3 py-2 text-left align-middle text-xs font-semibold text-muted-foreground shadow-[inset_0_-1px_0_var(--base-table-header-separator)]",tableHeadContent:"flex min-w-0 items-center justify-between gap-2",tableHeadMain:"flex min-w-0 items-center gap-2",tableHeadIcon:"inline-flex h-4 w-4 shrink-0 items-center justify-center text-muted-foreground",tableHeadText:"grid min-w-0 gap-0.5",tableHeadLabel:"min-w-0 truncate text-xs font-semibold leading-4 text-foreground",tableHeadDescription:"min-w-0 truncate text-xs font-normal leading-4 text-muted-foreground",tableHeadMeta:"shrink-0 text-xs font-medium text-muted-foreground",tableHeadActions:"flex shrink-0 items-center gap-1",tableHeadSortButton:p("inline-flex min-w-0 cursor-pointer items-center gap-1 rounded-sm text-left focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-primary/30 disabled:!cursor-not-allowed disabled:opacity-60",Me),tableHeadSortIcon:p("inline-flex h-3 w-3 shrink-0 items-center justify-center text-muted-foreground",po),tableHeadDragHandle:p("inline-flex h-5 w-4 shrink-0 cursor-grab items-center justify-center rounded-sm text-muted-foreground hover:bg-muted active:cursor-grabbing focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-primary/30 disabled:!cursor-not-allowed disabled:opacity-50",Me),tableHeadResizeHandle:p("absolute end-0 top-1/2 h-7 w-2 -translate-y-1/2 cursor-col-resize touch-none rounded-sm after:absolute after:start-1/2 after:top-1/2 after:h-5 after:w-px after:-translate-x-1/2 after:-translate-y-1/2 after:bg-border hover:after:bg-primary focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-primary/30 disabled:!cursor-not-allowed disabled:opacity-50",Me),tableCell:"min-w-0 px-3 py-2 align-middle text-sm text-foreground [overflow-wrap:anywhere]",tableCellAlignCenter:"text-center",tableCellAlignRight:"text-right",tableEmptyRow:"[&>*]:border-b [&>*]:border-border/60",tableEmptyCell:"px-4 py-10 text-center",tableEmptyContent:"mx-auto flex max-w-md flex-col items-center justify-center text-center",tableEmptyIcon:"mb-3 flex h-10 w-10 items-center justify-center rounded-full bg-muted text-muted-foreground",tableEmptyTitle:"text-sm font-semibold text-foreground",tableEmptyDescription:"mt-1 text-sm leading-6 text-muted-foreground",tableEmptyActions:"mt-4 flex flex-wrap items-center justify-center gap-2",tableLoadingRow:"[&>*]:border-b [&>*]:border-border/60",tableLoadingCell:"px-3 py-2",tableLoadingSkeleton:"h-4 w-full rounded-md bg-muted/70",layoutRoot:p("grid min-w-0 overflow-hidden grid-rows-[auto_minmax(0,1fr)_auto] gap-3 rounded-lg border border-border/70 bg-background p-3 text-foreground",Me),layoutRootFull:"h-full min-h-0",layoutHeader:"min-w-0",layoutBody:"grid min-h-0 min-w-0 overflow-hidden gap-token-md",layoutSidebar:"min-h-0 min-w-0 overflow-hidden",layoutMain:"min-h-0 min-w-0 overflow-hidden",layoutAside:"min-h-0 min-w-0 overflow-hidden",layoutFooter:"min-w-0",layoutPane:p("h-full max-h-full min-h-0 min-w-0 overflow-hidden rounded-lg bg-background text-foreground",Me),layoutPaneScrollable:"overflow-auto",layoutPaneBordered:"border border-border/70",layoutPaneMuted:"bg-muted/25",layoutPaneSoft:"bg-background/95 shadow-sm",layoutPaneTransparent:"bg-transparent shadow-none",layoutSplitRoot:"grid min-h-0 min-w-0 overflow-hidden",layoutSplitHorizontal:"grid-flow-col",layoutSplitVertical:"grid-flow-row",layoutSplitPane:"min-h-0 min-w-0 overflow-hidden",layoutSplitPrimary:"",layoutSplitSecondary:"",layoutResizeHandle:p("group/resize relative z-10 flex shrink-0 items-center justify-center bg-transparent text-muted-foreground hover:bg-border/60 active:bg-border/70 focus-visible:bg-border/60 focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-primary/30",ot),layoutResizeHandleHorizontal:"w-2 cursor-col-resize",layoutResizeHandleVertical:"h-2 cursor-row-resize",layoutResizeHandleDisabled:"cursor-default opacity-60",layoutResizeHandleIndicator:"rounded-full bg-muted-foreground/45 group-hover/resize:bg-primary/70"},za={compact:{buttonBase:"h-8 px-2.5 text-xs",buttonIconOnly:"h-8 w-8 px-0",badgeBase:"px-1.5 py-0 text-xs",panelHeader:"p-token-md",panelBody:"px-token-md pb-token-md text-xs",panelBodyStandalone:"pt-token-md",panelFooter:"px-token-md py-token-md",stateRoot:"min-h-36 px-4 py-7",stateIcon:"mb-3 h-10 w-10",fieldRoot:"gap-token-sm",fieldLabel:"text-xs",fieldDescription:"text-xs leading-5",fieldMessage:"text-xs leading-5",controlInput:"h-8 text-xs",controlTextarea:"min-h-20 text-xs",controlSelect:"h-8 text-xs",selectMenu:"text-xs",selectOption:"min-h-7 px-2 py-1 text-xs",switchTrack:"h-5 w-9",switchThumb:"h-3.5 w-3.5",checkboxBox:"h-3.5 w-3.5",checkboxLabel:"text-xs",checkboxDescription:"text-xs leading-5",radioOption:"px-2 py-1.5 text-xs",radioMarker:"h-3.5 w-3.5",radioIndicator:"h-1.5 w-1.5",radioLabel:"text-xs",radioDescription:"text-xs leading-5",dialogPanel:"max-w-md",dialogHeader:"px-4 py-3",dialogTitle:"text-sm leading-5",dialogDescription:"text-xs leading-5",dialogBody:"px-4 py-3 text-xs",dialogFooter:"px-4 py-3",dropdownMenu:"min-w-44 text-xs",dropdownItem:"px-2 py-1.5 text-xs",tooltipContent:"text-xs leading-4",noticeBase:"px-3 py-2 text-xs",dividerLabel:"text-xs",sectionHeaderRoot:"gap-token-sm",sectionHeaderTitle:"text-sm leading-5",sectionHeaderDescription:"text-xs leading-5",tabsList:"gap-token-xs p-token-xs",tabsTrigger:"px-2 py-1 text-xs",tabsPanel:"p-3 text-xs",segmentedRoot:"gap-token-xs p-token-xs",segmentedItem:"px-2 py-1 text-xs",progressTrack:"h-1.5",avatarRoot:"text-xs",toolbarRoot:"gap-token-sm px-token-md py-token-md",toolbarTitle:"text-xs",toolbarDescription:"text-xs leading-5",paginationButton:"h-7 min-w-7 px-2 text-xs",paginationPage:"h-7 min-w-7 px-2 text-xs",descriptionListRoot:"gap-2 text-xs",descriptionListItem:"px-2 py-1.5",descriptionListTerm:"text-xs",descriptionListValue:"text-xs leading-5",accordionTrigger:"px-3 py-2 text-xs",accordionPanel:"px-3 py-2 text-xs leading-5",menuContent:"min-w-40 p-0.5 text-xs",menuSubContent:"min-w-36 p-0.5 text-xs",menuLabel:"px-2 py-1 text-xs",menuItem:"min-h-7 px-2 py-1 text-xs",menuSubTrigger:"min-h-7 px-2 py-1 text-xs",menuItemShortcut:"text-xs",tableContainer:"[--base-table-header-height:2.25rem]",tableHead:"h-9 px-2 py-1.5 text-xs",tableCell:"px-2 py-1.5 text-xs",tableHeadLabel:"text-xs",tableHeadDescription:"text-xs leading-3",tableLoadingCell:"px-2 py-1.5",layoutRoot:"gap-token-md p-token-md",layoutBody:"gap-token-md",layoutPane:"rounded-md text-xs",layoutResizeHandleHorizontal:"w-1.5",layoutResizeHandleVertical:"h-1.5"},default:{buttonBase:"h-9"},comfortable:{buttonBase:"h-10 px-3.5",buttonIconOnly:"h-10 w-10 px-0",badgeBase:"px-2.5 py-1",panelHeader:"p-token-xl",panelBody:"px-token-xl pb-token-xl",panelBodyStandalone:"pt-token-xl",panelFooter:"px-token-xl py-token-lg",stateRoot:"min-h-56 px-8 py-12",stateIcon:"mb-5 h-14 w-14",fieldRoot:"gap-token-md",controlInput:"h-10",controlTextarea:"min-h-28",controlSelect:"h-10",selectMenu:"p-1.5",selectOption:"min-h-9 px-3 py-2",switchTrack:"h-7 w-12",switchThumb:"h-5 w-5",checkboxBox:"h-5 w-5",radioOption:"px-4 py-3",radioMarker:"h-5 w-5",radioIndicator:"h-2.5 w-2.5",dialogPanel:"max-w-xl",dialogHeader:"px-6 py-5",dialogBody:"px-6 py-5",dialogFooter:"px-6 py-5",dropdownMenu:"min-w-56",dropdownItem:"px-3 py-2.5",noticeBase:"px-5 py-4",sectionHeaderTitle:"text-lg leading-7",tabsTrigger:"px-3.5 py-2",tabsPanel:"p-5",segmentedItem:"px-3.5 py-2",progressTrack:"h-2.5",toolbarRoot:"px-token-xl py-token-lg",paginationButton:"h-9 min-w-9 px-3",paginationPage:"h-9 min-w-9 px-3",descriptionListItem:"px-4 py-3",accordionTrigger:"px-5 py-4",accordionPanel:"px-5 py-4",menuContent:"min-w-48 p-1.5",menuSubContent:"min-w-44 p-1.5",menuItem:"min-h-9 px-3 py-2",menuSubTrigger:"min-h-9 px-3 py-2",tableContainer:"[--base-table-header-height:3rem]",tableHead:"h-12 px-4 py-3",tableCell:"px-4 py-3",tableLoadingCell:"px-4 py-3",layoutRoot:"gap-token-lg p-token-lg",layoutBody:"gap-token-lg",layoutPane:"rounded-xl",layoutResizeHandleHorizontal:"w-2.5",layoutResizeHandleVertical:"h-2.5"}},Wa={none:{buttonBase:"rounded-none",badgeBase:"rounded-none",panelRoot:"rounded-none",stateRoot:"rounded-none",stateIcon:"rounded-none",controlWrapper:"rounded-none",selectMenu:"rounded-none",selectOption:"rounded-none",switchTrack:"rounded-none",switchThumb:"rounded-none",checkboxBox:"rounded-none",radioOption:"rounded-none",dialogPanel:"rounded-none",dialogClose:"rounded-none",dropdownMenu:"rounded-none",dropdownItem:"rounded-none",tooltipContent:"rounded-none",noticeBase:"rounded-none",tabsList:"rounded-none",tabsTrigger:"rounded-none",tabsPanel:"rounded-none",segmentedRoot:"rounded-none",segmentedItem:"rounded-none",progressTrack:"rounded-none",progressIndicator:"rounded-none",skeletonRoot:"rounded-none",avatarRoot:"rounded-none",avatarStatus:"rounded-none",toolbarRoot:"rounded-none",paginationButton:"rounded-none",paginationPage:"rounded-none",descriptionListItem:"rounded-none",accordionItem:"rounded-none",menuContent:"rounded-none",menuItem:"rounded-none",menuSubTrigger:"rounded-none",menuSubContent:"rounded-none",tableContainer:"rounded-none",tableEmptyIcon:"rounded-none",tableLoadingSkeleton:"rounded-none",layoutRoot:"rounded-none",layoutPane:"rounded-none"},sm:{buttonBase:"rounded-sm",badgeBase:"rounded-sm",panelRoot:"rounded-sm",stateRoot:"rounded-sm",stateIcon:"rounded-sm",controlWrapper:"rounded-sm",selectMenu:"rounded-sm",selectOption:"rounded-sm",switchTrack:"rounded-sm",switchThumb:"rounded-sm",checkboxBox:"rounded-sm",radioOption:"rounded-sm",dialogPanel:"rounded-sm",dialogClose:"rounded-sm",dropdownMenu:"rounded-sm",dropdownItem:"rounded-sm",tooltipContent:"rounded-sm",noticeBase:"rounded-sm",tabsList:"rounded-sm",tabsTrigger:"rounded-sm",tabsPanel:"rounded-sm",segmentedRoot:"rounded-sm",segmentedItem:"rounded-sm",progressTrack:"rounded-sm",progressIndicator:"rounded-sm",skeletonRoot:"rounded-sm",avatarRoot:"rounded-sm",avatarStatus:"rounded-sm",toolbarRoot:"rounded-sm",paginationButton:"rounded-sm",paginationPage:"rounded-sm",descriptionListItem:"rounded-sm",accordionItem:"rounded-sm",menuContent:"rounded-sm",menuItem:"rounded-sm",menuSubTrigger:"rounded-sm",menuSubContent:"rounded-sm",tableContainer:"rounded-sm",tableEmptyIcon:"rounded-sm",tableLoadingSkeleton:"rounded-sm",layoutRoot:"rounded-sm",layoutPane:"rounded-sm"},md:{},lg:{buttonBase:"rounded-lg",badgeBase:"rounded-lg",panelRoot:"rounded-xl",stateRoot:"rounded-xl",stateIcon:"rounded-xl",controlWrapper:"rounded-lg",selectMenu:"rounded-lg",selectOption:"rounded-md",switchTrack:"rounded-full",switchThumb:"rounded-full",checkboxBox:"rounded-md",radioOption:"rounded-xl",dialogPanel:"rounded-xl",dialogClose:"rounded-lg",dropdownMenu:"rounded-lg",dropdownItem:"rounded-md",tooltipContent:"rounded-md",noticeBase:"rounded-xl",tabsList:"rounded-xl",tabsTrigger:"rounded-lg",tabsPanel:"rounded-xl",segmentedRoot:"rounded-xl",segmentedItem:"rounded-lg",skeletonRoot:"rounded-lg",toolbarRoot:"rounded-xl",descriptionListItem:"rounded-lg",accordionItem:"rounded-xl",menuContent:"rounded-lg",menuItem:"rounded-md",menuSubTrigger:"rounded-md",menuSubContent:"rounded-lg",tableContainer:"rounded-xl",tableEmptyIcon:"rounded-xl",tableLoadingSkeleton:"rounded-lg",layoutRoot:"rounded-xl",layoutPane:"rounded-xl"},xl:{buttonBase:"rounded-xl",badgeBase:"rounded-xl",panelRoot:"rounded-2xl",stateRoot:"rounded-2xl",stateIcon:"rounded-2xl",controlWrapper:"rounded-xl",selectMenu:"rounded-xl",selectOption:"rounded-lg",switchTrack:"rounded-full",switchThumb:"rounded-full",checkboxBox:"rounded-lg",radioOption:"rounded-2xl",dialogPanel:"rounded-2xl",dialogClose:"rounded-xl",dropdownMenu:"rounded-xl",dropdownItem:"rounded-lg",tooltipContent:"rounded-lg",noticeBase:"rounded-2xl",tabsList:"rounded-2xl",tabsTrigger:"rounded-xl",tabsPanel:"rounded-2xl",segmentedRoot:"rounded-2xl",segmentedItem:"rounded-xl",skeletonRoot:"rounded-xl",toolbarRoot:"rounded-2xl",paginationButton:"rounded-xl",paginationPage:"rounded-xl",descriptionListItem:"rounded-xl",accordionItem:"rounded-2xl",menuContent:"rounded-xl",menuItem:"rounded-lg",menuSubTrigger:"rounded-lg",menuSubContent:"rounded-xl",tableContainer:"rounded-2xl",tableEmptyIcon:"rounded-2xl",tableLoadingSkeleton:"rounded-xl",layoutRoot:"rounded-2xl",layoutPane:"rounded-2xl"},full:{buttonBase:"rounded-full",badgeBase:"rounded-full",panelRoot:"rounded-2xl",stateRoot:"rounded-2xl",stateIcon:"rounded-full",controlWrapper:"rounded-full",selectMenu:"rounded-2xl",selectOption:"rounded-full",switchTrack:"rounded-full",switchThumb:"rounded-full",checkboxBox:"rounded-full",radioOption:"rounded-2xl",dialogPanel:"rounded-2xl",dialogClose:"rounded-full",dropdownMenu:"rounded-2xl",dropdownItem:"rounded-full",tooltipContent:"rounded-full",noticeBase:"rounded-2xl",tabsList:"rounded-full",tabsTrigger:"rounded-full",tabsPanel:"rounded-2xl",segmentedRoot:"rounded-full",segmentedItem:"rounded-full",progressTrack:"rounded-full",progressIndicator:"rounded-full",skeletonRoot:"rounded-full",avatarRoot:"rounded-full",avatarStatus:"rounded-full",toolbarRoot:"rounded-2xl",paginationButton:"rounded-full",paginationPage:"rounded-full",descriptionListItem:"rounded-2xl",accordionItem:"rounded-2xl",menuContent:"rounded-2xl",menuItem:"rounded-full",menuSubTrigger:"rounded-full",menuSubContent:"rounded-2xl",tableContainer:"rounded-2xl",tableEmptyIcon:"rounded-full",tableLoadingSkeleton:"rounded-full",layoutRoot:"rounded-2xl",layoutPane:"rounded-2xl"}},ja={none:{buttonBase:"border-transparent",badgeBase:"border-transparent",panelRoot:"border-transparent",panelFooter:"border-transparent",stateRoot:"border-transparent",controlWrapper:"border-transparent",selectMenu:"border-transparent",switchTrack:"border-transparent",checkboxBox:"border-transparent",radioOption:"border-transparent",radioMarker:"border-transparent",dialogPanel:"border-transparent",dialogHeader:"border-transparent",dialogFooter:"border-transparent",dropdownMenu:"border-transparent",tooltipContent:"border-transparent",noticeBase:"border-transparent",dividerRoot:"border-transparent",tabsList:"border-transparent",tabsPanel:"border-transparent",segmentedRoot:"border-transparent",avatarRoot:"border-transparent",toolbarRoot:"border-transparent",paginationButton:"border-transparent",descriptionListItem:"border-transparent",accordionItem:"border-transparent",accordionPanel:"border-transparent",menuContent:"border-transparent",menuSeparator:"bg-transparent",menuSubContent:"border-transparent",tableContainer:"border-transparent [--base-table-header-separator:transparent]",tableHeader:"border-transparent",tableFooter:"[&_tr>*]:border-transparent",tableFooterBar:"border-transparent",tableFooterBarAttached:"border-t border-transparent",tableRow:"[&>*]:border-transparent",tableEmptyRow:"[&>*]:border-transparent",tableLoadingRow:"[&>*]:border-transparent",layoutRoot:"border-transparent",layoutPaneBordered:"border-transparent",layoutResizeHandle:"bg-transparent hover:bg-transparent active:bg-transparent focus-visible:bg-transparent"},subtle:{buttonDefault:"border-border/60",badgeDefault:"border-border/60",panelRoot:"border-border/60",panelFooter:"border-border/60",stateRoot:"border-border/60",controlWrapper:"border-border/60",selectMenu:"border-border/60",switchTrack:"border-border/60",checkboxBox:"border-border/60",radioOption:"border-border/60",radioMarker:"border-border/60",dialogPanel:"border-border/60",dialogHeader:"border-border/60",dialogFooter:"border-border/60",dropdownMenu:"border-border/60",tooltipContent:"border-border/60",noticeDefault:"border-border/60",dividerRoot:"border-border/60",tabsList:"border-border/60",tabsPanel:"border-border/60",segmentedRoot:"border-border/60",avatarRoot:"border-border/60",toolbarRoot:"border-border/60",paginationButton:"border-border/60",descriptionListItem:"border-border/60",accordionItem:"border-border/60",accordionPanel:"border-border/60",menuContent:"border-border/60",menuSeparator:"bg-border/60",menuSubContent:"border-border/60",tableContainer:"border-border/60 [--base-table-header-separator:hsl(var(--border)_/_0.6)]",tableHeader:"border-border/60",tableFooter:"[&_tr>*]:border-border/60",tableFooterBar:"border-border/60",tableFooterBarAttached:"border-t border-border/60",tableRow:"[&>*]:border-border/50",tableEmptyRow:"[&>*]:border-border/50",tableLoadingRow:"[&>*]:border-border/50",layoutRoot:"border-border/60",layoutPaneBordered:"border-border/60"},solid:{},strong:{buttonDefault:"border-foreground/20",badgeDefault:"border-foreground/20",panelRoot:"border-foreground/20",panelFooter:"border-foreground/20",stateRoot:"border-foreground/20",controlWrapper:"border-foreground/20",selectMenu:"border-foreground/20",switchTrack:"border-foreground/20",checkboxBox:"border-foreground/20",radioOption:"border-foreground/20",radioMarker:"border-foreground/20",dialogPanel:"border-foreground/20",dialogHeader:"border-foreground/15",dialogFooter:"border-foreground/15",dropdownMenu:"border-foreground/20",tooltipContent:"border-foreground/20",noticeDefault:"border-foreground/20",dividerRoot:"border-foreground/20",tabsList:"border-foreground/20",tabsPanel:"border-foreground/20",segmentedRoot:"border-foreground/20",avatarRoot:"border-foreground/20",toolbarRoot:"border-foreground/20",paginationButton:"border-foreground/20",descriptionListItem:"border-foreground/20",accordionItem:"border-foreground/20",accordionPanel:"border-foreground/20",menuContent:"border-foreground/20",menuSeparator:"bg-foreground/15",menuSubContent:"border-foreground/20",tableContainer:"border-foreground/20 [--base-table-header-separator:hsl(var(--foreground)_/_0.15)]",tableHeader:"border-foreground/20",tableFooter:"[&_tr>*]:border-foreground/20",tableFooterBar:"border-foreground/20",tableFooterBarAttached:"border-t border-foreground/20",tableRow:"[&>*]:border-foreground/15",tableEmptyRow:"[&>*]:border-foreground/15",tableLoadingRow:"[&>*]:border-foreground/15",layoutRoot:"border-foreground/20",layoutPaneBordered:"border-foreground/20",layoutResizeHandle:"hover:bg-foreground/15 active:bg-foreground/20 focus-visible:bg-foreground/15"}},Ga={plain:{},muted:{buttonDefault:"bg-muted/20 hover:bg-muted/45",panelRoot:"bg-card",panelFooter:"bg-muted/20",stateRoot:"bg-muted/20",controlWrapper:"bg-background",selectMenu:"bg-background",selectOptionActive:"bg-muted/70 text-foreground",checkboxBox:"bg-background",radioOption:"bg-card hover:bg-muted/45",radioMarker:"bg-background",dialogPanel:"bg-card",dropdownMenu:"bg-background",dropdownItem:"hover:bg-muted/60",tooltipContent:"bg-popover",noticeDefault:"bg-muted/20",tabsList:"bg-muted/35",tabsTriggerActive:"bg-background",tabsPanel:"bg-card",segmentedRoot:"bg-muted/35",segmentedItemActive:"bg-background",progressTrack:"bg-muted/60",skeletonRoot:"bg-muted",toolbarRoot:"bg-card",paginationButton:"bg-background hover:bg-muted/60",paginationPage:"bg-muted/60",descriptionListItem:"bg-card",accordionItem:"bg-card",menuContent:"bg-background",menuItem:"focus:bg-muted/70 data-[highlighted]:bg-muted/70",menuSubTrigger:"focus:bg-muted/70 data-[highlighted]:bg-muted/70 data-[state=open]:bg-muted/70",menuSubContent:"bg-background",tableContainer:"bg-background/95 [scrollbar-gutter:stable]",tableFooter:"bg-muted/35",tableFooterBar:"bg-muted/30 shadow-none",tableRowInteractive:"cursor-pointer [--base-table-row-hover-bg:hsl(var(--muted)_/_0.45)]",tableLoadingSkeleton:"bg-muted",layoutRoot:"bg-card",layoutPane:"bg-card",layoutPaneMuted:"bg-muted/35",layoutResizeHandle:"hover:bg-border/70 active:bg-border/80 focus-visible:bg-border/70"},soft:{buttonDefault:"bg-muted/30 hover:bg-muted/55",panelRoot:"bg-background/95 shadow-sm",stateRoot:"bg-background/95 shadow-sm",controlWrapper:"bg-background/95",selectMenu:"bg-background/95 shadow-xl",selectOptionActive:"bg-muted/60 text-foreground",checkboxBox:"bg-background/95",radioOption:"bg-background/95 shadow-sm hover:bg-muted/35",radioMarker:"bg-background/95",dialogPanel:"bg-background/95 shadow-xl",dropdownMenu:"bg-background/95 shadow-xl",dropdownItem:"hover:bg-muted/55",tooltipContent:"bg-popover shadow-xl",noticeDefault:"bg-background/95 shadow-sm",tabsList:"bg-background/60 shadow-sm",tabsTriggerActive:"bg-background",tabsPanel:"bg-background/95 shadow-sm",segmentedRoot:"bg-background/60 shadow-sm",segmentedItemActive:"bg-background",skeletonRoot:"bg-background/80",toolbarRoot:"bg-background/95 shadow-sm",paginationButton:"bg-background/95 hover:bg-muted/55",descriptionListItem:"bg-background/95 shadow-sm",accordionItem:"bg-background/95 shadow-sm",menuContent:"bg-background/95 shadow-xl",menuItem:"focus:bg-muted/60 data-[highlighted]:bg-muted/60",menuSubTrigger:"focus:bg-muted/60 data-[highlighted]:bg-muted/60 data-[state=open]:bg-muted/60",menuSubContent:"bg-background/95 shadow-xl",tableContainer:"bg-background/95 shadow-sm [scrollbar-gutter:stable]",tableFooter:"bg-muted/25",tableFooterBar:"bg-muted/25 shadow-none",tableRowInteractive:"cursor-pointer [--base-table-row-hover-bg:hsl(var(--muted)_/_0.35)]",tableLoadingSkeleton:"bg-muted/65",layoutRoot:"bg-background/95 shadow-sm",layoutPane:"bg-background/95 shadow-sm",layoutPaneSoft:"bg-background/95 shadow-md"},glass:{buttonBase:"backdrop-blur-md",buttonDefault:"border-white/10 bg-white/[0.08] text-foreground hover:bg-white/[0.14]",badgeDefault:"border-white/10 bg-white/[0.08] text-foreground",panelRoot:"border-white/10 bg-white/[0.06] shadow-none backdrop-blur-md",panelFooter:"border-white/10 bg-white/[0.05]",stateRoot:"border-white/10 bg-white/[0.06] shadow-none backdrop-blur-md",stateIcon:"bg-white/10 text-foreground",controlWrapper:"border-white/10 bg-white/[0.08] text-foreground backdrop-blur-md",selectMenu:"border-foreground/10 bg-background/10 text-foreground shadow-[0_18px_60px_hsl(var(--foreground)/0.18)] backdrop-blur-md",selectOption:"text-foreground",selectOptionActive:"bg-white/[0.14] text-foreground",selectOptionSelected:"bg-white/[0.18] text-foreground",switchTrack:"border-white/10 bg-white/[0.12] backdrop-blur-md",checkboxBox:"border-white/10 bg-white/[0.08] backdrop-blur-md",checkboxBoxChecked:"border-white/20 bg-white/[0.22] text-foreground",radioOption:"border-white/10 bg-white/[0.06] backdrop-blur-md hover:bg-white/[0.10]",radioMarker:"border-white/10 bg-white/[0.08] backdrop-blur-md",radioMarkerChecked:"border-white/25 bg-white/[0.16]",dialogOverlay:"bg-background/45 backdrop-blur-md",dialogPanel:"border-white/10 bg-white/[0.08] shadow-2xl backdrop-blur-md",dialogHeader:"border-white/10",dialogFooter:"border-white/10",dropdownMenu:"border-foreground/10 bg-background/10 text-foreground shadow-[0_18px_60px_hsl(var(--foreground)/0.18)] backdrop-blur-md",dropdownItem:"text-foreground hover:bg-white/[0.14]",tooltipContent:"border-foreground/10 bg-background/15 text-foreground shadow-[0_18px_60px_hsl(var(--foreground)/0.18)] backdrop-blur-md",noticeDefault:"border-white/10 bg-white/[0.08] text-foreground backdrop-blur-md",dividerRoot:"border-white/15",tabsList:"border-white/10 bg-white/[0.08] backdrop-blur-md",tabsTrigger:"text-muted-foreground hover:bg-white/[0.12] hover:text-foreground",tabsTriggerActive:"bg-white/[0.16] text-foreground shadow-none",tabsPanel:"border-white/10 bg-white/[0.06] shadow-none backdrop-blur-md",segmentedRoot:"border-white/10 bg-white/[0.08] backdrop-blur-md",segmentedItem:"text-muted-foreground hover:bg-white/[0.12] hover:text-foreground",segmentedItemActive:"bg-white/[0.16] text-foreground shadow-none",progressTrack:"bg-white/[0.12]",skeletonRoot:"bg-white/[0.16]",avatarRoot:"border-white/10 bg-white/[0.12] text-foreground",avatarFallback:"bg-white/[0.12] text-foreground",avatarStatus:"border-background",toolbarRoot:"border-white/10 bg-white/[0.06] shadow-none backdrop-blur-md",paginationButton:"border-white/10 bg-white/[0.08] text-foreground hover:bg-white/[0.14]",paginationPage:"bg-white/[0.12] text-foreground",descriptionListItem:"border-white/10 bg-white/[0.06] shadow-none backdrop-blur-md",accordionItem:"border-white/10 bg-white/[0.06] shadow-none backdrop-blur-md",accordionPanel:"border-white/10",menuContent:"border-foreground/10 bg-background/10 text-foreground shadow-[0_18px_60px_hsl(var(--foreground)/0.18)] backdrop-blur-md",menuSeparator:"bg-white/10",menuItem:"text-foreground focus:bg-white/[0.14] focus:text-foreground data-[highlighted]:bg-white/[0.14] data-[highlighted]:text-foreground",menuSubTrigger:"text-foreground focus:bg-white/[0.14] focus:text-foreground data-[highlighted]:bg-white/[0.14] data-[highlighted]:text-foreground data-[state=open]:bg-white/[0.16]",menuSubContent:"border-foreground/10 bg-background/10 text-foreground shadow-[0_18px_60px_hsl(var(--foreground)/0.18)] backdrop-blur-md",tableContainer:"border-foreground/10 bg-background/[0.06] shadow-none backdrop-blur-md [scrollbar-gutter:stable] [--base-table-sticky-header-bg:hsl(var(--background)/0.94)] [--base-table-header-separator:hsl(var(--foreground)/0.24)]",tableHeader:"border-white/10",tableFooter:"bg-white/[0.05] [&_tr>*]:border-white/10",tableFooterBar:"border-white/10 bg-white/[0.05] shadow-none backdrop-blur-md",tableFooterBarAttached:"border-t border-white/10",tableRow:"[&>*]:border-white/10",tableRowInteractive:"cursor-pointer [--base-table-row-hover-bg:hsl(var(--foreground)/0.08)]",tableHeadLabel:"text-foreground",tableLoadingSkeleton:"bg-white/[0.16]",layoutRoot:"border-white/10 bg-white/[0.05] shadow-none backdrop-blur-md",layoutPane:"border-white/10 bg-white/[0.06] shadow-none backdrop-blur-md",layoutPaneMuted:"bg-white/[0.08]",layoutPaneSoft:"bg-white/[0.10] shadow-none backdrop-blur-md",layoutResizeHandle:"text-foreground/65 hover:bg-white/10 active:bg-white/15 focus-visible:bg-white/10",layoutResizeHandleIndicator:"bg-white/45 group-hover/resize:bg-white/75"},dark:{buttonBase:"border-white/15 text-white shadow-lg backdrop-blur",buttonDefault:"bg-black/30 hover:bg-black/[0.45]",buttonPrimary:"border-white/25 bg-white/20 text-white hover:bg-white/25",buttonMuted:"border-white/10 bg-black/20 text-white/70 hover:bg-black/[0.35] hover:text-white",badgeDefault:"border-white/10 bg-white/[0.08] text-white",badgeMuted:"border-white/10 bg-black/20 text-white/70",panelRoot:"border-white/10 bg-slate-950 text-white shadow-none",panelTitle:"text-white",panelDescription:"text-white/65",panelBody:"text-white/85",panelFooter:"border-white/10 bg-white/[0.04]",stateRoot:"border-white/10 bg-slate-950 text-white shadow-none",stateIcon:"bg-white/10 text-white/75",stateTitle:"text-white",stateDescription:"text-white/65",fieldLabel:"text-white",fieldDescription:"text-white/65",fieldMessage:"text-white/65",controlWrapper:"border-white/15 bg-black/30 text-white shadow-lg backdrop-blur focus-within:border-white/35",controlBase:"text-white placeholder:text-white/45",selectChevron:"text-white/65",selectMenu:"border-white/15 bg-slate-950 text-white shadow-2xl",selectOption:"text-white",selectOptionActive:"bg-white/[0.12] text-white",selectOptionSelected:"bg-white/[0.16] text-white",selectPlaceholder:"text-white/45",switchTrack:"border-white/15 bg-black/30 shadow-lg backdrop-blur",switchChecked:"border-white/25 bg-white/25 text-white",switchLabel:"text-white",switchDescription:"text-white/65",checkboxBox:"border-white/15 bg-black/30 text-white shadow-lg backdrop-blur",checkboxBoxChecked:"border-white/25 bg-white/25 text-white",checkboxLabel:"text-white",checkboxDescription:"text-white/65",radioOption:"border-white/10 bg-white/[0.06] text-white hover:bg-white/[0.08]",radioMarker:"border-white/15 bg-black/30 text-white shadow-lg backdrop-blur",radioMarkerChecked:"border-white/25 bg-white/25",radioIndicator:"bg-white",radioLabel:"text-white",radioDescription:"text-white/65",dialogOverlay:"bg-slate-950/75",dialogPanel:"border-white/10 bg-slate-950 text-white shadow-2xl",dialogHeader:"border-white/10",dialogTitle:"text-white",dialogDescription:"text-white/65",dialogBody:"text-white/85",dialogFooter:"border-white/10",dialogClose:"text-white/65 hover:bg-white/[0.08] hover:text-white",dropdownMenu:"border-white/15 bg-slate-950 text-white shadow-2xl",dropdownLabel:"text-white/55",dropdownSeparator:"bg-white/15",dropdownItem:"text-white hover:bg-white/[0.10]",dropdownItemDescription:"text-white/55",dropdownItemShortcut:"text-white/55",tooltipContent:"border-white/15 bg-slate-950 text-white shadow-2xl",noticeDefault:"border-white/10 bg-white/[0.08] text-white",noticeMuted:"border-white/10 bg-black/20 text-white/70",dividerRoot:"border-white/15",dividerLabel:"text-white/55",sectionHeaderEyebrow:"text-white/55",sectionHeaderTitle:"text-white",sectionHeaderDescription:"text-white/65",tabsList:"border-white/10 bg-white/[0.08]",tabsTrigger:"text-white/65 hover:bg-white/[0.12] hover:text-white",tabsTriggerActive:"bg-white/[0.16] text-white shadow-none",tabsPanel:"border-white/10 bg-white/[0.06] text-white",segmentedRoot:"border-white/10 bg-white/[0.08]",segmentedItem:"text-white/65 hover:bg-white/[0.12] hover:text-white",segmentedItemActive:"bg-white/[0.16] text-white shadow-none",progressTrack:"bg-white/[0.12]",progressLabel:"text-white",progressValue:"text-white/65",skeletonRoot:"bg-white/[0.14]",avatarRoot:"border-white/15 bg-white/[0.10] text-white",avatarFallback:"bg-white/[0.10] text-white/75",avatarText:"text-white",avatarStatus:"border-slate-950",toolbarRoot:"border-white/10 bg-white/[0.06] text-white",toolbarTitle:"text-white",toolbarDescription:"text-white/65",breadcrumbLink:"text-white/65 hover:text-white",breadcrumbCurrent:"text-white",breadcrumbSeparator:"text-white/45",paginationInfo:"text-white/65",paginationButton:"border-white/10 bg-white/[0.08] text-white hover:bg-white/[0.14]",paginationPage:"bg-white/[0.14] text-white",descriptionListItem:"border-white/10 bg-white/[0.06]",descriptionListTerm:"text-white/55",descriptionListValue:"text-white",accordionItem:"border-white/10 bg-white/[0.06]",accordionTrigger:"text-white hover:bg-white/[0.08]",accordionPanel:"border-white/10 text-white/70",tableContainer:"border-foreground/10 bg-background text-foreground shadow-none [scrollbar-gutter:stable] [--base-table-sticky-header-bg:hsl(var(--background)/0.98)] [--base-table-header-separator:hsl(var(--foreground)/0.16)]",tableRoot:"text-white",tableHeader:"border-white/10",tableFooter:"bg-white/[0.05] [&_tr>*]:border-white/10",tableFooterBar:"border-white/10 bg-white/[0.05] text-white/65",tableFooterBarAttached:"border-t border-white/10",tableRow:"[&>*]:border-white/10",tableRowInteractive:"cursor-pointer [--base-table-row-hover-bg:hsl(var(--foreground)/0.06)]",tableHead:"text-white/65",tableHeadLabel:"text-white",tableHeadDescription:"text-white/55",tableHeadMeta:"text-white/55",tableHeadIcon:"text-white/55",tableHeadSortIcon:"text-white/55",tableHeadDragHandle:"text-white/55 hover:bg-white/[0.08]",tableHeadResizeHandle:"after:bg-white/20 hover:after:bg-white/60",tableCell:"text-white/85",tableEmptyIcon:"bg-white/10 text-white/65",tableEmptyTitle:"text-white",tableEmptyDescription:"text-white/60",menuContent:"border-white/10 bg-slate-950 text-white shadow-2xl",menuLabel:"text-white/55",menuSeparator:"bg-white/10",menuItem:"text-white focus:bg-white/[0.10] focus:text-white data-[highlighted]:bg-white/[0.10] data-[highlighted]:text-white",menuItemDefault:"text-white",menuItemPrimary:"text-primary focus:text-primary data-[highlighted]:text-primary",menuItemSuccess:"text-[hsl(var(--success,142_69%_58%))] focus:text-[hsl(var(--success,142_69%_58%))] data-[highlighted]:text-[hsl(var(--success,142_69%_58%))]",menuItemWarning:"text-[hsl(var(--warning-foreground,53_98%_77%))] focus:text-[hsl(var(--warning-foreground,53_98%_77%))] data-[highlighted]:text-[hsl(var(--warning-foreground,53_98%_77%))]",menuItemDanger:"text-destructive-text focus:text-destructive-text data-[highlighted]:text-destructive-text",menuItemMuted:"text-white/65 focus:text-white data-[highlighted]:text-white",menuItemShortcut:"text-white/45",menuSubTrigger:"text-white focus:bg-white/[0.10] focus:text-white data-[highlighted]:bg-white/[0.10] data-[highlighted]:text-white data-[state=open]:bg-white/[0.12]",menuSubTriggerIcon:"text-white/55",menuSubContent:"border-white/10 bg-slate-950 text-white shadow-2xl",tableLoadingSkeleton:"bg-white/[0.14]",layoutRoot:"border-white/10 bg-slate-950 text-white shadow-none",layoutPane:"border-white/10 bg-slate-950 text-white shadow-none",layoutPaneMuted:"bg-white/[0.06]",layoutPaneSoft:"bg-white/[0.08] shadow-none",layoutResizeHandle:"text-white/65 hover:bg-white/10 active:bg-white/15 focus-visible:bg-white/10",layoutResizeHandleIndicator:"bg-white/45 group-hover/resize:bg-white/75"}},Hr={default:{density:"default",radius:"md",border:"solid",background:"plain"},soft:{density:"default",radius:"lg",border:"subtle",background:"soft"},compact:{density:"compact",radius:"md",border:"subtle",background:"muted"},"tinted-glass":{density:"default",radius:"lg",border:"subtle",background:"glass"},glass:{density:"default",radius:"xl",border:"subtle",background:"glass"},"hard-edge":{density:"compact",radius:"none",border:"strong",background:"plain"}},$a={soft:{buttonBase:"font-medium",panelRoot:"border-border/70",controlWrapper:"font-medium",tabsTrigger:"font-medium",segmentedItem:"font-medium",toolbarRoot:"border-border/70",tableContainer:"border-border/70",tableFooterBar:"border-border/70",tableHeadLabel:"font-semibold",menuItemLabel:"font-medium"},compact:{buttonBase:"text-xs",badgeBase:"text-xs",fieldLabel:"text-xs",controlBase:"text-xs",selectOption:"text-xs",menuItem:"text-xs",menuSubTrigger:"text-xs",noticeBase:"text-xs",sectionHeaderTitle:"text-sm",tabsTrigger:"text-xs",segmentedItem:"text-xs",toolbarTitle:"text-xs",paginationRoot:"text-xs"},"tinted-glass":{buttonPrimary:"border-primary/25 bg-primary/15 text-primary-foreground hover:bg-primary/20",badgePrimary:"border-primary/25 bg-primary/15 text-primary-foreground",noticePrimary:"border-primary/25 bg-primary/15 text-primary-foreground",progressIndicator:"bg-primary",avatarStatus:"border-background"},glass:{panelRoot:"shadow-[0_24px_80px_hsl(var(--foreground)/0.12)]",stateRoot:"shadow-[0_24px_80px_hsl(var(--foreground)/0.12)]",noticeBase:"shadow-[0_18px_60px_hsl(var(--foreground)/0.10)]",tabsPanel:"shadow-[0_18px_60px_hsl(var(--foreground)/0.10)]",toolbarRoot:"shadow-[0_18px_60px_hsl(var(--foreground)/0.10)]",descriptionListItem:"shadow-[0_12px_40px_hsl(var(--foreground)/0.08)]",accordionItem:"shadow-[0_12px_40px_hsl(var(--foreground)/0.08)]"},"hard-edge":{buttonBase:"shadow-none",panelRoot:"shadow-none",stateRoot:"shadow-none",controlWrapper:"shadow-none",selectMenu:"shadow-none",menuContent:"shadow-none",menuSubContent:"shadow-none",noticeBase:"shadow-none",tabsList:"shadow-none",tabsTriggerActive:"shadow-none",tabsPanel:"shadow-none",segmentedRoot:"shadow-none",segmentedItemActive:"shadow-none",toolbarRoot:"shadow-none",descriptionListItem:"shadow-none",accordionItem:"shadow-none"}};function Ua(e){return Hr[e]??Hr.default}r(Ua,"getPresetDefaults");var qa=Object.keys(_r),Ka=Lr(qa,p);function Xa(...e){return Object.assign({},...e.filter(Boolean))}r(Xa,"mergeStyles");function ut(e){let t=e?.preset??"default",o=e?.variant??"default",n=Ua(t),i=e?.density??n.density??"default",s=e?.state??"idle",d=e?.radius??n.radius??"md",l=e?.border??n.border??"solid",u=e?.background??n.background??"plain";return {preset:t,variant:o,density:i,state:s,radius:d,border:l,background:u,styles:Xa(Oa,e?.styles),slots:Ka(_r,$a[t],za[i],Wa[d],ja[l],Ga[u],e?.slots)}}r(ut,"resolveBaseAppearance");function Vr(e,t="default",o=false){return p(t==="default"&&e.slots.buttonDefault,t==="primary"&&e.slots.buttonPrimary,t==="success"&&e.slots.buttonSuccess,t==="warning"&&e.slots.buttonWarning,t==="danger"&&e.slots.buttonDanger,t==="muted"&&e.slots.buttonMuted,o&&e.slots.buttonActive)}r(Vr,"getBaseButtonToneClassName");var Ja=new Set(["compact","pages"]);function Or(e,t){return Math.min(Math.max(e,1),Math.max(t,1))}r(Or,"clampPage");function mo(e,t){if(!Number.isSafeInteger(e)||e<1)throw new RangeError(`BasePagination ${t} must be a positive safe integer.`)}r(mo,"assertPositiveInteger");function Go(e,t){if(!Number.isSafeInteger(e)||e<0)throw new RangeError(`BasePagination ${t} must be a non-negative safe integer.`)}r(Go,"assertNonNegativeInteger");function fo(e,t){if(typeof e=="string"&&!e.trim())throw new TypeError(`BasePagination ${t} must be a non-empty string when provided.`)}r(fo,"assertOptionalControlLabel");function Qa(e,t){if(e!==void 0&&(typeof e!="string"||!e.trim()))throw new TypeError("BasePagination aria-label must be a non-empty string when provided.");if(t!==void 0&&(typeof t!="string"||!t.trim()))throw new TypeError("BasePagination aria-labelledby must contain at least one valid ID token.");if(typeof t=="string"&&t.trim().split(/\s+/).some(n=>/[\u0000-\u001f\u007f]/u.test(n)))throw new TypeError("BasePagination aria-labelledby must contain only valid ID tokens.")}r(Qa,"assertAccessibleName");function Mt(e,t){if(typeof e!="string"||!e.trim())throw new TypeError(`BasePagination locale ${t} must resolve to a non-empty string.`);return e}r(Mt,"assertLocaleString");function go(e,t){return Ue(e)?e:t}r(go,"getControlContent");function bo(e,t){return typeof e=="string"&&e.trim()?e:t}r(bo,"getControlAriaLabel");function ei(e,t,o,n){let i=new Set,s=r(u=>{u>=1&&u<=t&&i.add(u);},"addPage");for(let u=0;u<o;u+=1)s(1+u),s(t-u);for(let u=-n;u<=n;u+=1)s(e+u);let d=[...i].sort((u,m)=>u-m),l=[];return d.forEach((u,m)=>{let g=d[m-1];if(g!==void 0){let c=u-g;c===2&&l.push(g+1),c>2&&l.push("ellipsis");}l.push(u);}),l}r(ei,"getPageItems");var Fr=forwardRef(r(function({page:t,defaultPage:o,pageSize:n=20,total:i=0,pageCount:s,hasNext:d,hasPrevious:l,mode:u="compact",siblingCount:m=1,boundaryCount:g=1,label:c,firstLabel:x,previousLabel:P,nextLabel:h,lastLabel:I,appearance:b,className:y,classNames:S,style:D,onPageChange:f,role:N="navigation","aria-label":v,"aria-labelledby":E,...T},w){let L=lt().pagination,O=dt(b),H=je(),B=ut(O),[X,Y]=useState(()=>o??1);if(t!==void 0&&mo(t,"page"),o!==void 0&&mo(o,"defaultPage"),mo(n,"pageSize"),Go(i,"total"),s!==void 0&&mo(s,"pageCount"),Go(m,"siblingCount"),Go(g,"boundaryCount"),!Ja.has(u))throw new TypeError('BasePagination mode must be "compact" or "pages".');if(f!==void 0&&typeof f!="function")throw new TypeError("BasePagination onPageChange must be a function.");fo(x,"firstLabel"),fo(P,"previousLabel"),fo(h,"nextLabel"),fo(I,"lastLabel"),Qa(v,E);let _=Mt(L.navigation,"navigation"),R=Mt(L.first,"first"),re=Mt(L.previous,"previous"),G=Mt(L.next,"next"),te=Mt(L.last,"last"),K=s??Math.max(Math.ceil(i/n),1),Q=t!==void 0,be=!Q&&o!==void 0,M=Or(Q?t:be?X:1,K),z=i>0?(M-1)*n+1:0,U=Math.min(M*n,i),J=l??M>1,ne=d??M<K,W=u==="pages"?ei(M,K,g,m):[],ee=r(se=>{let ie=Or(se,K);ie!==M&&(be&&Y(ie),f?.(ie));},"requestPage"),ae=r((se,ie,ce,F,q)=>jsx("button",{type:"button",disabled:!ce,"aria-label":q,"data-slot":se,className:p(B.slots.paginationButton,!ce&&B.slots.paginationButtonDisabled,S?.button),onClick:()=>ee(ie),children:F}),"renderControl");return jsxs("div",{...H,...T,ref:w,role:N,"aria-label":v??(E===void 0?_:void 0),"aria-labelledby":E,"data-monkeys-component":"pagination","data-slot":"root","data-mode":u,"data-controlled":Q||void 0,"data-uncontrolled":be||void 0,className:p(B.slots.paginationRoot,S?.root,y),style:{...B.styles.pagination,...D},children:[jsx("div",{"aria-live":"polite","data-slot":"info",className:p(B.slots.paginationInfo,S?.info),children:Ue(c)?c:i>0?L.range({start:z,end:U,total:i}):L.emptyResults}),jsxs("div",{"data-slot":"controls",className:p(B.slots.paginationControls,S?.controls),children:[u==="pages"?ae("first",1,J,go(x,R),bo(x,R)):null,ae("previous",M-1,J,go(P,re),bo(P,re)),u==="compact"?jsxs("span",{"aria-current":"page","aria-label":Mt(L.currentPage({page:M,pageCount:K}),"currentPage"),"data-slot":"page","data-page":M,className:p(B.slots.paginationPage,S?.page),children:[M," / ",K]}):W.map((se,ie)=>{if(se==="ellipsis")return jsx("span",{"aria-hidden":"true","data-slot":"ellipsis",className:p(B.slots.paginationEllipsis,S?.ellipsis),children:"\u2026"},`ellipsis-${ie}`);let ce=se===M;return jsx("button",{type:"button","aria-current":ce?"page":void 0,"aria-label":Mt(ce?L.currentPage({page:se,pageCount:K}):L.page({page:se,pageCount:K}),ce?"currentPage":"page"),"data-slot":"page","data-page":se,"data-current":ce||void 0,className:p(B.slots.paginationButton,ce&&B.slots.paginationPage,S?.button,ce&&S?.page),onClick:()=>ee(se),children:se},se)}),ae("next",M+1,ne,go(h,G),bo(h,G)),u==="pages"?ae("last",K,ne,go(I,te),bo(I,te)):null]})]})},"BasePagination"));function ti(){return jsxs("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",className:"ml-1 inline-block h-3 w-3 animate-spin",fill:"none",children:[jsx("circle",{cx:"12",cy:"12",r:"9",className:"opacity-25",stroke:"currentColor",strokeWidth:"3"}),jsx("path",{className:"opacity-75",fill:"currentColor",d:"M12 3a9 9 0 0 1 9 9h-3a6 6 0 0 0-6-6V3Z"})]})}r(ti,"LoadingIcon");function zr({total:e=0,loadedStart:t,loadedEnd:o,selectedCount:n,page:i=1,pageCount:s,pageSize:d=20,pageSizeOptions:l,showTotal:u,showPageSize:m,paginationMode:g,hasNext:c,hasPrevious:x,loading:P=false,totalLabel:h,selectedLabel:I,pageSizeLabel:b,appearance:y,className:S,classNames:D,onPageChange:f,onPageSizeChange:N,onSummaryClick:v,...E}){let T=Er(),w=lt().pagination,L=[...new Set(l??T.pageSizeOptions??[10,20,50,100])].filter(G=>Number.isSafeInteger(G)&&G>0),O=u??T.showTotal??true,H=m??T.showPageSize??true,B=g??T.paginationMode??"auto",X=B==="auto"?e>0?"pages":"compact":B,Y=t!==void 0&&t>0&&o!==void 0&&o>=t,_=O?h??(Y?w.range({start:t,end:o,total:e}):w.range({start:e>0?(i-1)*d+1:0,end:o??0,total:e})):void 0,R=!!f&&(c!==void 0||x!==void 0?!!(c||x||e>d):e>d),re=T.alignment==="end"?"justify-end":T.alignment==="start"?"justify-start":"justify-between";return jsx("div",{...E,className:p("flex min-w-0 flex-wrap items-center gap-3 py-2 text-sm",re,D?.root,S),"data-monkeys-component":"list-footer","data-density":T.density,children:jsxs("div",{className:"monkeys-list-footer-groups contents",children:[jsx("div",{className:p("min-w-0 text-muted-foreground",D?.summary),children:(()=>{let G=jsxs(Fragment,{children:[I??(n!==void 0?w.selected({count:n}):null),n!==void 0&&_?jsx("span",{className:"mx-2",children:"\xB7"}):null,_,P?jsx(ti,{}):null]});return v?jsx("button",{type:"button",className:"inline-flex items-center",onClick:v,children:G}):G})()}),R?jsx(Fr,{page:i,pageCount:s,pageSize:d,total:e,mode:X,hasNext:c,hasPrevious:x,onPageChange:f,appearance:y,className:D?.pagination,classNames:{info:"sr-only"}}):null,H&&N&&L.length>0?jsxs("label",{className:p("inline-flex items-center gap-2 whitespace-nowrap text-muted-foreground",D?.pageSize),children:[jsx("span",{className:"sr-only",children:b??w.pageSize}),jsx("select",{"aria-label":typeof b=="string"?b:w.pageSize,value:String(d),className:"h-8 rounded-md border border-border bg-background px-2 text-sm text-foreground",onChange:G=>N(Number(G.currentTarget.value)),children:L.map(G=>jsx("option",{value:G,children:G},G))})]}):null]})})}r(zr,"BaseListFooter");var Wr=Symbol.for("@inf-monkeys-tech/monkeys-design/bento-depth@1"),jr=globalThis,ai=jr[Wr]??(jr[Wr]=createContext(0));function wo(){return useContext(ai)}r(wo,"useBentoDepth");var ii={menu:"monkeys-overlay-surface--menu bg-menu-surface text-popover-foreground",dialog:"monkeys-overlay-surface--dialog bg-dialog-surface text-foreground"};function yo(e,t={}){return ["monkeys-overlay-surface",ii[e],t.rounded===false?void 0:"monkeys-overlay-surface--rounded"].filter(Boolean).join(" ")}r(yo,"getOverlaySurfaceClassName");var ci=_e.forwardRef(({className:e,style:t,...o},n)=>jsx(bt.Item,{ref:n,className:p("border-b",e),style:{borderColor:"var(--monkeys-component-accordion-item-border-color, hsl(var(--border)))",...t},...o}));ci.displayName="AccordionItem";var pi=_e.forwardRef(({className:e,children:t,...o},n)=>jsx(bt.Header,{className:"flex",children:jsxs(bt.Trigger,{ref:n,className:p("flex flex-1 items-center justify-between py-4 text-sm font-medium transition-all hover:underline [&[data-state=open]>svg]:rotate-180",e),...o,children:[t,jsx(ChevronDown,{"aria-hidden":"true",className:"h-4 w-4 shrink-0 transition-transform duration-200"})]})}));pi.displayName="AccordionTrigger";var mi=_e.forwardRef(({className:e,children:t,...o},n)=>jsx(bt.Content,{ref:n,className:"overflow-hidden text-sm transition-all data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",...o,children:jsx("div",{className:p("pb-4 pt-0",e),children:t})}));mi.displayName="AccordionContent";var fi=_e.forwardRef(({className:e,...t},o)=>jsx(vo.Root,{ref:o,className:p("peer h-4 w-4 shrink-0 rounded-sm border border-primary shadow focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",e),...t,children:jsx(vo.Indicator,{className:"flex items-center justify-center text-current",children:jsx(Check,{"aria-hidden":"true",className:"h-4 w-4"})})}));fi.displayName="Checkbox";var gi=cva("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_[data-slot=icon]]:text-[inherit] [&_[data-slot=icon]_*]:!text-[inherit] [&_[data-slot=icon]_svg]:!stroke-current [&_[data-slot=icon]_svg_*]:!stroke-current [&_[data-slot=end-icon]]:text-[inherit] [&_[data-slot=end-icon]_*]:!text-[inherit] [&_[data-slot=end-icon]_svg]:!stroke-current [&_[data-slot=end-icon]_svg_*]:!stroke-current [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow-sm hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-control-surface shadow-sm ring-offset-control-surface hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-sm px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),Uo=_e.forwardRef(({className:e,variant:t,size:o,asChild:n=false,unstyled:i=false,...s},d)=>jsx(n?Slot:"button",{ref:d,className:i?e:gi({variant:t,size:o,className:e}),...s}));Uo.displayName="Button";var bi=_e.forwardRef(({className:e,children:t,viewportClassName:o,viewportRef:n,onViewportScroll:i,scrollbar:s=true,scrollbarOrientation:d="vertical",scrollBarDisabled:l=false,type:u,...m},g)=>{let c=wo();return jsxs(ct.Root,{ref:g,type:u??(c>0?"auto":void 0),className:p("group relative overflow-hidden",l&&"no-scrollbar",e),...m,children:[jsx(ct.Viewport,{ref:n,onScroll:i,className:p("h-full w-full rounded-[inherit]",o),children:t}),s?jsx(Gr,{orientation:d,className:p(l&&"size-0 p-0")}):null,jsx(ct.Corner,{})]})});bi.displayName="ScrollArea";var Gr=_e.forwardRef(({className:e,orientation:t="vertical",...o},n)=>jsx(ct.ScrollAreaScrollbar,{ref:n,"data-monkeys-scrollbar":"",orientation:t,className:p("flex touch-none select-none opacity-0 transition-opacity group-hover:opacity-100 group-focus-within:opacity-100 data-[state=visible]:opacity-100",t==="vertical"&&"h-full w-2.5 border-l border-l-transparent p-px",t==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent p-px",e),...o,children:jsx(ct.ScrollAreaThumb,{className:"relative flex-1 rounded-full bg-border"})}));Gr.displayName="ScrollBar";var xi=_e.forwardRef(({className:e,...t},o)=>jsx(ko.Root,{ref:o,className:p("peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input",e),...t,children:jsx(ko.Thumb,{className:"pointer-events-none block h-5 w-5 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0"})}));xi.displayName="Switch";var hi=_e.forwardRef(({variant:e="default",...t},o)=>jsx(kt.Root,{ref:o,"data-variant":e,...t}));hi.displayName="Tabs";var wi=_e.forwardRef(({className:e,gap:t,style:o,...n},i)=>jsx(kt.List,{ref:i,className:p("inline-flex h-10 items-center justify-center rounded-lg bg-muted p-1 text-muted-foreground",e),style:{gap:t,...o},...n}));wi.displayName="TabsList";var yi=_e.forwardRef(({className:e,...t},o)=>jsx(kt.Trigger,{ref:o,className:p("inline-flex items-center justify-center whitespace-nowrap rounded-md px-3 py-1.5 text-sm font-medium ring-offset-background transition-all focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow-sm",e),...t}));yi.displayName="TabsTrigger";var vi=_e.forwardRef(({className:e,...t},o)=>{let n=wo();return jsx(kt.Content,{ref:o,className:p("mt-2 ring-offset-background focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",n>0&&"gap-[var(--monkeys-bento-gap)]",e),...t})});vi.displayName="TabsContent";var ki=_e.forwardRef(({className:e,sideOffset:t=4,...o},n)=>{let i=je();return jsx(mt.Portal,{children:jsx(mt.Content,{...i,...o,ref:n,sideOffset:t,"data-monkeys-component":"tooltip","data-slot":"content","data-surface":"menu",className:p("z-50 overflow-hidden border px-3 py-1.5 text-xs animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",yo("menu"),e)})})});ki.displayName="TooltipContent";var qo=_e.forwardRef(({className:e,appearance:t="standard",unstyled:o=false,type:n,...i},s)=>jsx("input",{ref:s,type:n,className:o?e:p("flex w-full border border-input bg-control-surface px-3 text-foreground ring-offset-control-surface transition-[border-color,background-color,color,box-shadow] file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",t==="compact"?"h-9 rounded-md py-1 text-sm shadow-sm":"h-10 rounded-md py-2 text-sm shadow-sm",t==="shadow"&&"rounded-lg shadow-sm shadow-black/[0.02] dark:border-white/10 dark:bg-white/[0.04] dark:shadow-none",e),...i}));qo.displayName="Input";var Di=_e.forwardRef(({className:e,appearance:t="standard",unstyled:o=false,...n},i)=>jsx("textarea",{ref:i,className:o?e:p("flex w-full border border-input bg-control-surface px-3 py-2 text-foreground ring-offset-control-surface placeholder:text-muted-foreground focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",t==="compact"?"min-h-[60px] rounded-md text-sm shadow-sm":"min-h-[80px] rounded-md text-sm",t==="shadow"&&"rounded-lg shadow-sm shadow-black/[0.02] dark:border-white/10 dark:bg-white/[0.04] dark:shadow-none",e),...n}));Di.displayName="Textarea";var Ci=_e.forwardRef((e,t)=>jsx("select",{ref:t,...e}));Ci.displayName="NativeSelect";var Ti=_e.forwardRef((e,t)=>jsx("option",{ref:t,...e}));Ti.displayName="NativeOption";var Xt="relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",Ko=`z-50 min-w-[8rem] overflow-hidden border p-1 ${yo("menu")} data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2`,Kr=he.Root,Xr=he.Trigger;var Yr=he.RadioGroup,Ri=_e.forwardRef(({className:e,inset:t,children:o,...n},i)=>jsxs(he.SubTrigger,{ref:i,className:p(Xt,"data-[state=open]:bg-accent",t&&"pl-8",e),...n,children:[o,jsx(ChevronRight,{"aria-hidden":"true",className:"ml-auto"})]}));Ri.displayName="DropdownMenuSubTrigger";var Ei=_e.forwardRef(({className:e,...t},o)=>{let n=je();return jsx(he.SubContent,{...n,...t,ref:o,"data-monkeys-component":"dropdown-menu","data-slot":"content","data-surface":"menu",className:p(Ko,e)})});Ei.displayName="DropdownMenuSubContent";var Xo=_e.forwardRef(({className:e,sideOffset:t=4,...o},n)=>{let i=je();return jsx(he.Portal,{children:jsx(he.Content,{...i,...o,ref:n,sideOffset:t,"data-monkeys-component":"dropdown-menu","data-slot":"content","data-surface":"menu",className:p(Ko,e)})})});Xo.displayName="DropdownMenuContent";var Mi=_e.forwardRef(({className:e,inset:t,...o},n)=>jsx(he.Item,{ref:n,className:p(Xt,t&&"pl-8",e),...o}));Mi.displayName="DropdownMenuItem";var Ii=_e.forwardRef(({className:e,children:t,checked:o,...n},i)=>jsxs(he.CheckboxItem,{ref:i,className:p(Xt,"pl-8",e),checked:o,...n,children:[jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:jsx(he.ItemIndicator,{children:jsx(Check,{"aria-hidden":"true",className:"h-4 w-4"})})}),t]}));Ii.displayName="DropdownMenuCheckboxItem";var Yo=_e.forwardRef(({className:e,children:t,...o},n)=>jsxs(he.RadioItem,{ref:n,className:p(Xt,"pl-8",e),...o,children:[jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:jsx(he.ItemIndicator,{children:jsx(Circle,{"aria-hidden":"true",className:"h-2 w-2 fill-current"})})}),t]}));Yo.displayName="DropdownMenuRadioItem";var Zo=_e.forwardRef(({className:e,inset:t,...o},n)=>jsx(he.Label,{ref:n,className:p("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...o}));Zo.displayName="DropdownMenuLabel";var Jo=_e.forwardRef(({className:e,...t},o)=>jsx(he.Separator,{ref:o,className:p("-mx-1 my-1 h-px bg-muted",e),...t}));Jo.displayName="DropdownMenuSeparator";var Ni=r(({className:e,...t})=>jsx("span",{className:p("ml-auto text-xs tracking-widest opacity-60",e),...t}),"DropdownMenuShortcut");Ni.displayName="DropdownMenuShortcut";var Li=_e.forwardRef(({className:e,children:t,iconClassName:o,size:n="default",...i},s)=>jsxs(we.Trigger,{ref:s,className:p("flex h-10 w-full items-center justify-between whitespace-nowrap rounded-md border border-input bg-control-surface px-3 py-2 text-left text-sm text-foreground shadow-sm ring-offset-control-surface data-[placeholder]:text-muted-foreground focus:outline-hidden focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1 [&>span]:min-w-0 [&>span]:flex-1 [&>span]:text-left",n==="sm"&&"h-8 px-2 py-1 text-xs",e),...i,children:[t,jsx(we.Icon,{asChild:true,children:jsx(ChevronDown,{"aria-hidden":"true",className:p("h-4 w-4 opacity-50",o)})})]}));Li.displayName="SelectTrigger";var Zr=_e.forwardRef(({className:e,...t},o)=>jsx(we.ScrollUpButton,{ref:o,className:p("flex cursor-default items-center justify-center py-1",e),...t,children:jsx(ChevronUp,{"aria-hidden":"true",className:"h-4 w-4"})}));Zr.displayName="SelectScrollUpButton";var Jr=_e.forwardRef(({className:e,...t},o)=>jsx(we.ScrollDownButton,{ref:o,className:p("flex cursor-default items-center justify-center py-1",e),...t,children:jsx(ChevronDown,{"aria-hidden":"true",className:"h-4 w-4"})}));Jr.displayName="SelectScrollDownButton";var Ai=_e.forwardRef(({className:e,children:t,position:o="popper",viewportClassName:n,disableTriggerViewportSizing:i=false,...s},d)=>{let l=je();return jsx(we.Portal,{children:jsxs(we.Content,{...l,...s,ref:d,position:o,"data-monkeys-component":"select","data-slot":"content","data-surface":"menu",className:p(Ko,"relative max-h-[var(--radix-select-content-available-height)] overflow-y-auto overflow-x-hidden",o==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),children:[jsx(Zr,{}),jsx(we.Viewport,{className:p("p-1",o==="popper"&&"w-full min-w-[var(--radix-select-trigger-width)]",o==="popper"&&!i&&"h-[var(--radix-select-trigger-height)]",n),children:t}),jsx(Jr,{})]})})});Ai.displayName="SelectContent";var Hi=_e.forwardRef(({className:e,...t},o)=>jsx(we.Label,{ref:o,className:p("px-2 py-1.5 text-sm font-semibold",e),...t}));Hi.displayName="SelectLabel";var _i=_e.forwardRef(({className:e,children:t,indicatorClassName:o,itemText:n,hideIndicator:i=false,...s},d)=>jsxs(we.Item,{ref:d,className:p(Xt,"w-full",i?"px-2":"pl-8 pr-2",e),...s,children:[i?null:jsx("span",{className:p("absolute left-2 flex h-3.5 w-3.5 items-center justify-center",o),children:jsx(we.ItemIndicator,{children:jsx(Check,{"aria-hidden":"true",className:"h-4 w-4"})})}),n?jsxs(Fragment,{children:[jsx(we.ItemText,{asChild:true,children:jsx("span",{className:"sr-only",children:n})}),t]}):jsx(we.ItemText,{children:t})]}));_i.displayName="SelectItem";var Vi=_e.forwardRef(({className:e,...t},o)=>jsx(we.Separator,{ref:o,className:p("-mx-1 my-1 h-px bg-muted",e),...t}));Vi.displayName="SelectSeparator";function Ot(e){if(!e)return;let t=/^data:image\/svg\+xml(?:[;,]|$)/i.test(e.trim());if(!t)try{t=/\.svgz?$/i.test(decodeURIComponent(new URL(e,"https://preview.invalid").pathname));}catch{return}return t?{backgroundColor:"var(--monkeys-media-svg-background)",objectFit:"contain"}:void 0}r(Ot,"svgPreviewSurface");var Fi=r(({aspectRatio:e="square",maxSquareHeight:t=true,className:o}={})=>p("w-full overflow-hidden bg-muted",(e==="square"||e==="1:1")&&"aspect-square",(e==="square"||e==="1:1")&&t&&"max-h-[300px]",e==="4:3"&&"aspect-[4/3]",e==="3:4"&&"aspect-[3/4]",(e==="video"||e==="16:9")&&"aspect-video",e==="9:16"&&"aspect-[9/16]",o),"mediaPreviewFrameClassName"),Yt=_e.forwardRef(({aspectRatio:e="square",maxSquareHeight:t=true,className:o,...n},i)=>jsx("div",{ref:i,className:Fi({aspectRatio:e,maxSquareHeight:t,className:o}),...n}));Yt.displayName="MediaPreviewFrame";var er=_e.forwardRef(({fit:e="contain",className:t,style:o,...n},i)=>{let s=Ot(n.src);return jsx("img",{ref:i,className:p("block size-full",e==="contain"?"object-contain":"object-cover",t),style:{...s,...s?{objectFit:e}:{},...o},...n})});er.displayName="MediaPreviewImage";function ji({selectedCount:e,loadedStart:t,loadedEnd:o,total:n,currentPage:i=1,pageSize:s=Math.max(1,o||1),pageSizeOptions:d=[],loading:l,selectedLabel:u,loadedLabel:m,pageSizeLabel:g,pageText:c,tone:x="default",className:P,classNames:h,onJump:I,onJumpToPage:b,onPageSizeChange:y}){let S=lt().pagination,D=typeof t=="number"&&t>0&&o>=t,f=m??(D?S.range({start:t,end:o,total:n}):S.range({start:0,end:o,total:n})),[N,v]=useState(false),[E,T]=useState(String(i)),w=useRef(null),L=n>0?Math.max(1,Math.ceil(n/Math.max(1,s))):1;if(useEffect(()=>{N||T(String(i));},[i,N]),useEffect(()=>{if(!N)return;let O=window.setTimeout(()=>{w.current?.focus(),w.current?.select();},0);return ()=>window.clearTimeout(O)},[N]),x==="hard-edge"){let O=r(()=>{let H=Math.floor(Number(E));if(!Number.isFinite(H)||Number.isNaN(H)){T(String(i)),v(false);return}let B=Math.min(L,Math.max(1,H));v(false),B!==i&&b?.(B);},"confirmJump");return jsxs("div",{className:p("flex items-center border-t bg-background px-4 py-3",h?.root,P),"data-monkeys-component":"collection-footer","data-tone":"hard-edge",children:[jsxs("div",{className:p("flex min-w-0 items-center gap-1 whitespace-nowrap text-sm text-muted-foreground",h?.summary),children:[e!==void 0?jsxs("span",{children:[u??S.selected({count:e})," \xB7"]}):null,b&&n>0?N?jsxs("div",{className:"flex items-center gap-2",children:[jsx("span",{className:"text-xs text-muted-foreground",children:S.jumpToPage}),jsx(qo,{ref:w,type:"number",inputMode:"numeric",min:1,max:L,value:E,onChange:H=>T(H.currentTarget.value),onKeyDown:H=>{H.key==="Enter"&&(H.preventDefault(),H.currentTarget.blur()),H.key==="Escape"&&(H.preventDefault(),v(false),T(String(i)));},onBlur:O,className:"h-7 w-20 px-2 text-xs","aria-label":S.jumpToPage}),jsxs("span",{className:"text-xs text-muted-foreground",children:["/ ",L," ",S.pages]})]}):jsxs("button",{type:"button",className:p("inline-flex items-center text-muted-foreground underline-offset-4 hover:text-foreground hover:underline",h?.jumpButton),onClick:()=>{T(String(i)),v(true),I?.();},title:S.clickToJump,children:[f,c?` (${c})`:null,l?jsx(Loader2,{"aria-hidden":"true",className:"ml-1 inline-block h-3 w-3 animate-spin"}):null]}):jsxs("span",{className:"inline-flex items-center",children:[f,c?` (${c})`:null,l?jsx(Loader2,{"aria-hidden":"true",className:"ml-1 h-3 w-3 animate-spin"}):null]})]}),y&&d.length>0?jsx("div",{className:p("ml-auto",h?.pageSizeControl),children:jsxs(Kr,{children:[jsx(Xr,{asChild:true,children:jsxs(Uo,{type:"button",variant:"outline",size:"sm",className:p("h-8 gap-1 px-2",h?.pageSizeButton),"aria-label":typeof g=="string"?g:S.perLoad,children:[s,jsx(ChevronDown,{"aria-hidden":"true",className:"h-4 w-4"})]})}),jsxs(Xo,{align:"end",className:"w-32",children:[jsx(Zo,{children:g??S.perLoad}),jsx(Jo,{}),jsx(Yr,{value:String(s),onValueChange:H=>{let B=Number(H);Number.isFinite(B)&&y(B);},children:d.map(H=>jsx(Yo,{value:String(H),children:H},H))})]})]})}):null]})}return jsx(zr,{total:n,loadedStart:t,loadedEnd:o,selectedCount:e,page:i,pageSize:s,pageSizeOptions:d,loading:l,totalLabel:jsxs(Fragment,{children:[f," ",c?`(${c})`:null]}),selectedLabel:u,pageSizeLabel:g,className:P,classNames:{root:h?.root,summary:h?.summary,pageSize:h?.pageSizeControl},onSummaryClick:I,onPageSizeChange:y})}r(ji,"DataExplorerCollectionFooter");function $i(e){return typeof e=="number"?`${e}px`:e}r($i,"toCssSize");function Ui({label:e,leading:t,children:o,actions:n,maxFieldsHeight:i=80,className:s,classNames:d,style:l,...u}){let m={maxHeight:$i(i)};return jsx("div",{className:a("border-b border-border/60 bg-background px-8 py-3",d?.root,s),style:l,...u,children:jsxs("div",{className:a("flex min-w-0 items-start gap-2 text-sm",d?.layout),children:[e?jsx("div",{className:a("flex h-9 shrink-0 items-center font-semibold text-foreground",d?.label),children:e}):null,jsx("div",{className:a("min-w-0 flex-1 overflow-y-auto overscroll-contain",d?.fieldsViewport),style:m,children:jsxs("div",{className:a("flex flex-wrap items-center gap-2",d?.fields),children:[t,o]})}),n?jsx("div",{className:a("flex shrink-0 items-center gap-2",d?.actions),children:n}):null]})})}r(Ui,"DataExplorerFilterBar");function Ki({open:e}){return jsx("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",className:a("h-4 w-4 transition-transform",e&&"rotate-180"),fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",children:jsx("path",{d:"m6 9 6 6 6-6"})})}r(Ki,"ChevronDownIcon");function Xi({label:e,icon:t,items:o=[],onPrimaryAction:n,onAction:i,menuLabel:s,triggerLabel:d="More actions",title:l,tone:u,active:m=false,disabled:g=false,appearance:c,className:x,classNames:P}){let[h,I]=useState(false),b=le(pe(c)),y=o.length>0,S=m||h,D=r(f=>{g||n?.(f);},"handlePrimaryClick");return jsxs(he.Root,{open:y&&h,onOpenChange:f=>I(y?f:false),children:[jsxs("div",{className:a("inline-flex min-w-0 shrink-0 overflow-hidden rounded-md",wt(b,u,S),P?.root,x),children:[jsx(_t,{label:e,icon:t,title:l,disabled:g,active:S,appearance:c,className:a("rounded-none border-r-0",P?.primary),onClick:D}),y?jsx(he.Trigger,{asChild:true,children:jsx("button",{type:"button","aria-label":d,title:d,disabled:g,className:a(b.slots.controlButton,"w-9 shrink-0 rounded-none border-l-0 px-0",S?wt(b,u,true):wt(b,u,false),P?.trigger),onClick:f=>f.stopPropagation(),children:jsx(Ki,{open:h})})}):null]}),y?jsx(he.Portal,{children:jsxs(he.Content,{align:"start",sideOffset:6,className:a(b.slots.menuContent,P?.content),style:b.styles.menuContent,children:[s?jsxs(Fragment,{children:[jsx(he.Label,{className:b.slots.menuLabel,children:s}),jsx(he.Separator,{className:b.slots.menuSeparator})]}):null,o.map(f=>jsxs(he.Item,{title:f.title,disabled:f.disabled,className:a(b.slots.menuItem,wt(b,f.tone,false),P?.item),style:b.styles.menuItem,onSelect:()=>{f.disabled||i?.(f.id);},children:[f.icon?jsx("span",{className:b.slots.menuItemIcon,children:f.icon}):null,jsx("span",{className:b.slots.menuItemLabel,children:f.label})]},f.id))]})}):null]})}r(Xi,"DataExplorerSplitButton");function nn(e){return e!=null&&e!==false&&e!==""}r(nn,"hasContent");function tr({field:e,label:t=e?.label,icon:o=e?.icon,value:n=e?.value,helperText:i=e?.helperText,error:s=e?.error,required:d=e?.required??false,disabled:l=e?.disabled??false,children:u,context:m,className:g,valueClassName:c=e?.valueClassName,classNames:x,dataAttributes:P=e?.dataAttributes,labelDataAttributes:h=e?.labelDataAttributes,valueDataAttributes:I=e?.valueDataAttributes,helperDataAttributes:b=e?.helperDataAttributes,errorDataAttributes:y=e?.errorDataAttributes}){let S={...e?.classNames,...x},D=u??(e?.render?e.render(m):n),f=nn(s);return jsxs("div",{...P,title:e?.title,"aria-disabled":l||void 0,"data-disabled":l||void 0,"data-invalid":f||void 0,"data-required":d||void 0,className:a("min-w-0 space-y-1",l&&"opacity-60",S.root,e?.className,g),children:[jsxs("div",{className:a("flex min-w-0 items-center gap-1.5 text-[13px] font-medium text-muted-foreground",S.label),children:[o?jsx("span",{className:a("inline-flex shrink-0 items-center justify-center",S.icon),children:o}):null,jsx("span",{...h,className:"min-w-0 truncate",children:t}),d?jsx("span",{"aria-hidden":"true",className:a("text-destructive-text",S.required),children:"*"}):null]}),jsx("div",{...I,className:a("min-w-0 max-w-full text-[15px] leading-6 text-foreground [overflow-wrap:anywhere]",S.value,c),children:D}),nn(i)?jsx("div",{...b,"data-slot":"helper",className:a("min-w-0 max-w-full text-xs leading-5 text-muted-foreground [overflow-wrap:anywhere]",S.helper),children:i}):null,f?jsx("div",{...y,role:"alert","data-slot":"error",className:a("min-w-0 max-w-full text-xs leading-5 text-destructive-text [overflow-wrap:anywhere]",S.error),children:s}):null]})}r(tr,"DataExplorerDetailField");function or({section:e,title:t=e?.title,fields:o=e?.fields,children:n,context:i,className:s,classNames:d,fieldClassNames:l}){let u={...e?.classNames,...d},m=(o||[]).filter(x=>!(fe(x.hidden,i)??false)),g=n??(typeof e?.children=="function"?e.children(i):e?.children);return !(!!g||m.length>0)||fe(e?.hidden,i)?null:jsxs("section",{className:a("border-b border-border pb-6 last:border-b-0 last:pb-0",u.root,e?.className,s),children:[t?jsx("div",{className:a("mb-4 text-[15px] font-semibold text-foreground",u.title),children:t}):null,jsxs("div",{className:a("space-y-4",u.body),children:[g,m.map((x,P)=>jsx(tr,{field:x,context:i,classNames:l},x.id||String(P)))]})]})}r(or,"DataExplorerDetailSection");function Zi(){return jsxs("svg",{viewBox:"0 0 24 24","aria-hidden":"true",className:"h-[18px] w-[18px]",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",children:[jsx("path",{d:"M18 6 6 18"}),jsx("path",{d:"m6 6 12 12"})]})}r(Zi,"DefaultCloseIcon");function dn(){return jsx("svg",{viewBox:"0 0 24 24","aria-hidden":"true",className:"h-4 w-4",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",children:jsx("path",{d:"m15 18-6-6 6-6"})})}r(dn,"DefaultChevronLeftIcon");function un(){return jsx("svg",{viewBox:"0 0 24 24","aria-hidden":"true",className:"h-4 w-4",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",children:jsx("path",{d:"m9 18 6-6-6-6"})})}r(un,"DefaultChevronRightIcon");function Ji({title:e,subtitle:t,leading:o,actions:n,preview:i,previewVisible:s=true,previewStyle:d,previewPadded:l=false,previewCentered:u=true,sections:m=[],rightPanel:g,context:c,navigation:x,closeLabel:P="Close",closeIcon:h,closeVisible:I=true,onClose:b,appearance:y,className:S,classNames:D}){let f=le(pe(y)),N=(x?.visible??true)&&typeof x?.count=="number"&&x.count>1,v=m.filter(E=>!(fe(E.hidden,c)??false));return jsxs("div",{className:a(f.slots.detailRoot,D?.root,S),style:f.styles.detailRoot,children:[jsxs("div",{className:a(f.slots.detailHeader,D?.header),children:[jsxs("div",{className:a("flex min-w-0 items-center gap-3",D?.headerMain),children:[o?jsx("div",{className:a(f.slots.detailLeading,D?.leading),children:o}):null,jsxs("div",{className:a("min-w-0",D?.titleGroup),children:[jsx("div",{className:a("truncate text-[20px] font-semibold leading-tight text-foreground",D?.title),children:e}),t?jsx("div",{className:a("mt-1 min-w-0 truncate text-sm text-muted-foreground",D?.subtitle),children:t}):null]})]}),jsxs("div",{className:a("flex items-center gap-2",D?.headerActions),children:[n,N?jsxs("div",{className:a(f.slots.detailNavigation,D?.navigation),children:[jsx("button",{type:"button","aria-label":x?.previousLabel||"Previous",className:a(f.slots.detailNavigationButton,D?.navigationButton),disabled:!x?.onPrevious,onClick:x?.onPrevious,children:jsx(dn,{})}),jsxs("div",{className:a("min-w-[74px] text-center text-xs font-medium text-muted-foreground",D?.navigationCount),children:[x.index+1," / ",x.count]}),jsx("button",{type:"button","aria-label":x?.nextLabel||"Next",className:a(f.slots.detailNavigationButton,D?.navigationButton),disabled:!x?.onNext,onClick:x?.onNext,children:jsx(un,{})})]}):null,I?jsx("button",{type:"button","aria-label":P,className:a(f.slots.detailCloseButton,D?.closeButton),onClick:b,children:h??jsx(Zi,{})}):null]})]}),jsxs("div",{className:a("grid min-h-0 flex-1",s?"xl:grid-cols-[minmax(0,1fr)_380px] 2xl:grid-cols-[minmax(0,1fr)_400px]":"grid-cols-1",D?.body),children:[s?jsx("div",{className:a(f.slots.detailPreviewPanel,D?.previewPanel),children:jsxs("div",{className:a("flex h-full min-h-0 flex-col",D?.previewStack),children:[N?jsx("div",{className:"flex justify-end",children:jsxs("div",{className:a("text-xs text-muted-foreground xl:hidden",D?.previewMobileCount),children:[x.index+1," / ",x.count]})}):null,jsx("div",{className:a("flex min-h-0 flex-1 justify-center",u&&"items-stretch",D?.previewWrapper),children:jsxs("div",{className:a(f.slots.detailPreviewFrame,D?.previewFrame),style:d,children:[jsx("div",{className:a("relative flex h-full w-full items-center justify-center",l&&"p-4",D?.previewContent),children:i}),N?jsxs(Fragment,{children:[jsx("button",{type:"button","aria-label":x?.previousLabel||"Previous",className:a(f.slots.previewNavigationButton,"left-4",D?.previewNavigationButton),disabled:!x?.onPrevious,onClick:x?.onPrevious,children:jsx(dn,{})}),jsx("button",{type:"button","aria-label":x?.nextLabel||"Next",className:a(f.slots.previewNavigationButton,"right-4",D?.previewNavigationButton),disabled:!x?.onNext,onClick:x?.onNext,children:jsx(un,{})})]}):null]})})]})}):null,jsx("div",{className:a(f.slots.detailRightPanel,D?.rightPanel),children:jsx("div",{className:a(f.slots.detailRightPanelBody,D?.rightPanelBody),style:{scrollbarGutter:"stable"},children:g??jsx("div",{className:a("space-y-6",D?.sections),children:v.map(E=>jsx(or,{section:E,context:c,className:D?.section,fieldClassNames:{root:D?.field}},E.id))})})})]})]})}r(Ji,"DataExplorerDetailShell");var ns=createContext(null);function pn(){let e=useContext(ns),t=useRef(null);t.current===null&&(t.current=Symbol("BaseFieldControl"));let o=e?.registerControl;useEffect(()=>{if(!(!o||t.current===null))return o(t.current)},[o]);let n=e?.notifyBlur,i=e?.notifyChange;return {invalid:e?.invalid??false,notifyBlur:useCallback(s=>n?.(s),[n]),notifyChange:useCallback(s=>i?.(s),[i])}}r(pn,"useBaseFieldControl");var ds={sm:"h-3.5 w-3.5",md:"h-4 w-4",lg:"h-5 w-5"},us={sm:"text-[10px]",md:"text-[11px]",lg:"text-xs"};function cs(e,...t){for(let o of t)if(o){if(typeof o=="function"){o(e);continue}o.current=e;}}r(cs,"setRefs");var fn=forwardRef(r(function({label:t,description:o,indeterminate:n=false,invalid:i=false,disabled:s=false,controlSize:d,appearance:l,className:u,classNames:m,style:g,checked:c,defaultChecked:x,onBlur:P,onChange:h,"aria-invalid":I,...b},y){for(let[G,te]of [["indeterminate",n],["invalid",i],["disabled",s]])if(typeof te!="boolean")throw new TypeError(`BaseCheckbox ${G} must be a boolean.`);if(d!==void 0&&d!=="sm"&&d!=="md"&&d!=="lg")throw new TypeError('BaseCheckbox controlSize must be "sm", "md", or "lg".');let S=dt(l),D=je(),f=ut(S),N=pn(),v=i||N.invalid,E=Ue(t),T=Nr(o),w=useRef(null),L=useRef(n);L.current=n;let[O,H]=useState(x??false),B=c!==void 0,X=!!(B?c:O),Y=n||X,_=n?"mixed":X?"checked":"unchecked",R=useCallback(G=>{w.current=G,G&&(G.indeterminate=L.current),cs(G,y);},[y]);useEffect(()=>{w.current&&(w.current.indeterminate=n);},[n]);let re=r(G=>{s||(B||H(G.currentTarget.checked),h?.(G),N.notifyChange(G.currentTarget.checked),w.current&&(w.current.indeterminate=n));},"handleChange");return jsxs("label",{...D,"data-monkeys-component":"checkbox","data-slot":"root","data-state":_,"data-size":d,"data-invalid":v||void 0,"data-disabled":s||void 0,className:p(f.slots.checkboxRoot,!T&&"items-center",s&&f.slots.checkboxDisabled,m?.root,u),style:{...f.styles.checkboxRoot,...g},children:[jsxs("span",{"data-slot":"box","data-state":_,"data-size":d,className:p(f.slots.checkboxBox,!T&&"mt-0",Y&&f.slots.checkboxBoxChecked,v&&f.slots.checkboxBoxInvalid,d&&ds[d],m?.box),style:{...f.styles.checkboxBox},children:[jsx("input",{...b,ref:R,type:"checkbox",disabled:s,checked:c,defaultChecked:x,"aria-invalid":I??(v||void 0),"aria-checked":n?"mixed":X,"data-slot":"input","data-state":_,"data-size":d,"data-invalid":v||void 0,"data-disabled":s||void 0,className:p(f.slots.checkboxInput,m?.input),onBlur:G=>{P?.(G),N.notifyBlur(G.currentTarget.checked);},onChange:re}),Y?jsx("span",{"aria-hidden":"true","data-slot":"indicator","data-state":_,"data-size":d,className:p(f.slots.checkboxIndicator,d&&us[d],m?.indicator),children:n?"\u2013":"\u2713"}):null]}),E||T?jsxs("span",{"data-slot":"content",className:p(f.slots.checkboxContent,m?.content),children:[E?jsx("span",{"data-slot":"label",className:p(f.slots.checkboxLabel,m?.label),children:t}):null,T?jsx("span",{"data-slot":"description",className:p(f.slots.checkboxDescription,m?.description),children:o}):null]}):null]})},"BaseCheckbox"));var Ss={duration:220,easing:"cubic-bezier(0.22, 1, 0.36, 1)"},Ps=r(e=>e.isSorting||e.wasDragging&&e.transition&&e.containerId===e.previousContainerId?true:defaultAnimateLayoutChanges(e),"treeItemAnimateLayoutChanges"),Bs={none:"0px",sm:"0.125rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem",full:"9999px"};function Rs(e,t){let o=e??t;if(typeof o=="number")return `${o}px`;if(o)return Bs[o]??o}r(Rs,"resolveTreeItemBorderRadius");function Es(e){if(!e)return;if("clientX"in e&&"clientY"in e)return {x:Number(e.clientX),y:Number(e.clientY)};let t=e,o=t.touches?.[0]??t.changedTouches?.[0];if(o)return {x:o.clientX,y:o.clientY}}r(Es,"getEventClientPoint");function Ms({expanded:e}){return jsx("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",className:a("h-4 w-4 transition-transform duration-200 ease-out",e?"rotate-90":"rotate-0"),fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",children:jsx("path",{d:"m9 18 6-6-6-6"})})}r(Ms,"ChevronIcon");function Is(){return jsxs("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",className:"h-3.5 w-3.5",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",children:[jsx("circle",{cx:"9",cy:"5",r:"1"}),jsx("circle",{cx:"9",cy:"12",r:"1"}),jsx("circle",{cx:"9",cy:"19",r:"1"}),jsx("circle",{cx:"15",cy:"5",r:"1"}),jsx("circle",{cx:"15",cy:"12",r:"1"}),jsx("circle",{cx:"15",cy:"19",r:"1"})]})}r(Is,"GripIcon");function hn(e,t){for(let o of e)o.defaultExpanded&&t.add(o.id),hn(o.children??[],t);}r(hn,"collectDefaultExpandedNodeIds");function xn(e,t){let o=new Set(t??[]);return hn(e,o),o}r(xn,"buildDefaultExpandedNodeIds");function wn(e,t,o,n,i){e.forEach((s,d)=>{i.push({node:s,parentId:o,index:d,depth:n});let l=Array.isArray(s.children)&&s.children.length>0,u=s.collapsible===false||t.has(s.id);l&&u&&wn(s.children??[],t,s.id,n+1,i);});}r(wn,"flattenTree");function Ns(e,t){let o=[];return wn(e,t,void 0,0,o),o}r(Ns,"buildFlattenedTree");function Ls(e,t,o){if(o<0)return;let n=t.parentId;for(;n;){let i=e.find(s=>s.node.id===n);if(!i)return;if(i.depth===o)return i;n=i.parentId;}}r(Ls,"findAncestorEntryAtDepth");function As(e,t,o,n,i){let s=t.node.id===o.node.id?t:o,d=0;for(let l of e){if(l.node.id===s.node.id)break;l.node.id!==t.node.id&&l.parentId===n&&l.depth===i&&(d+=1);}return d}r(As,"countSiblingsBeforeDrop");function Hs({flattenedNodes:e,activeEntry:t,overEntry:o,dragOffsetX:n,indentSize:i,dragScope:s="tree"}){if(s==="siblings")return {parentId:t.parentId,depth:t.depth,index:t.parentId===o.parentId?o.index:t.index};let d=Math.round(n/Math.max(1,i)),l=Math.max(0,t.depth+d),u=Math.min(l,o.depth),m=u===0?void 0:u===o.depth?o.parentId:Ls(e,o,u)?.parentId;return {parentId:m,index:As(e,t,o,m,u),depth:u}}r(Hs,"projectDataExplorerDraggableTreeDrop");function _s({entry:e,selected:t,multiple:o,expanded:n,active:i,over:s,indentSize:d,activationMode:l,dragHandleLabel:u,expandLabel:m,collapseLabel:g,themeSlots:c,classNames:x,itemStyle:P,context:h,renderNodeActions:I,renderNodeChildren:b,onSelect:y,onToggle:S,registerNodeElement:D}){let{node:f,depth:N}=e,v=f.collapsible===true||!!f.children?.length,E=!!f.disabled,T=f.selectable!==false&&!E,w=f.draggable!==false&&!E,{attributes:L,listeners:O,setNodeRef:H,setActivatorNodeRef:B,transform:X,transition:Y,isDragging:_}=useSortable({id:f.id,disabled:!w,animateLayoutChanges:Ps,transition:Ss}),{role:R,tabIndex:re,"aria-disabled":G,...te}=L,K=l==="row"?O:void 0,Q=l==="handle"?{...L,...O}:void 0,be={node:f,depth:N,expanded:n,selected:t,dragging:_||i,disabled:E,context:f.context??h},M={transform:CSS.Transform.toString(X),transition:Y},z=useCallback(U=>{H(U),D?.(f.id,U);},[f.id,D,H]);return jsxs("div",{style:M,className:a("min-w-0",x?.item,f.className,_&&"relative z-20",i&&"opacity-0"),children:[jsx(yn,{node:f,depth:N,indentSize:d,selected:t,multiple:o,expanded:n,active:_||i,over:s,hasChildren:v,disabled:E,selectable:T,draggable:w,activationMode:l,dragHandleLabel:u,expandLabel:m,collapseLabel:g,themeSlots:c,classNames:x,itemClassName:f.itemClassName,itemStyle:P,sortableAttributes:te,sortableListeners:K,handleListeners:Q,renderNodeActions:I,renderContext:be,rowRef:z,dragHandleRef:l==="handle"?B:void 0,onSelect:()=>y?.(f),onToggle:()=>S(f.id)}),b?jsx("div",{className:a("min-w-0",x?.children,f.childrenClassName),children:b(be)}):null]})}r(_s,"DraggableTreeItem");function yn({node:e,depth:t,indentSize:o,selected:n,multiple:i,expanded:s,active:d,over:l,hasChildren:u,disabled:m,selectable:g,draggable:c,activationMode:x,dragHandleLabel:P,expandLabel:h,collapseLabel:I,themeSlots:b,classNames:y,itemClassName:S,itemStyle:D,sortableAttributes:f,sortableListeners:N,handleListeners:v,renderNodeActions:E,renderContext:T,rowRef:w,dragHandleRef:L,onSelect:O,onToggle:H}){return jsxs("div",{ref:w,"data-data-explorer-draggable-tree-item":true,className:a(b.treeNodeButton,"min-h-8 touch-none border border-transparent bg-background/70 py-0 pl-1 pr-2 font-medium",g&&"cursor-pointer",c&&x==="row"&&"cursor-grab active:cursor-grabbing",n&&b.treeNodeSelected,m&&b.treeNodeDisabled,d&&b.treeNodeDragging,l&&"border-primary/30 bg-primary/[0.08] ring-1 ring-primary/15",n&&y?.itemSelected,m&&y?.itemDisabled,d&&y?.itemDragging,l&&y?.itemOver,y?.itemButton,S),style:{...D,paddingLeft:`${t*o+4}px`},role:"treeitem","aria-selected":n||void 0,"aria-checked":i?n:void 0,"aria-disabled":m||void 0,"aria-expanded":u?s:void 0,"aria-label":e.ariaLabel,tabIndex:g?0:-1,...f,...N,onClick:()=>{g&&O?.();},onKeyDown:B=>{B.target===B.currentTarget&&g&&(B.key!=="Enter"&&B.key!==" "||(B.preventDefault(),O?.()));},children:[c?jsx("span",{ref:L,className:a(b.treeNodeDragHandle,"opacity-100",y?.dragHandle),"aria-label":P,title:P,...v,onClick:B=>B.stopPropagation(),children:jsx(Is,{})}):jsx("span",{className:a("h-5 w-5 shrink-0",y?.dragHandle)}),u?jsx("button",{type:"button",className:a(b.treeNodeToggle,y?.toggle),"aria-label":s?I:h,onClick:B=>{B.stopPropagation(),H?.();},children:jsx(Ms,{expanded:s})}):jsx("span",{className:a(b.treeNodeToggle,y?.toggle)}),i?jsx("span",{onClick:B=>B.stopPropagation(),onKeyDown:B=>B.stopPropagation(),children:jsx(fn,{"aria-label":e.ariaLabel??(typeof e.label=="string"?e.label:e.id),checked:n,disabled:m||!g,onChange:()=>O?.()})}):null,e.icon?jsx("span",{className:a(b.treeNodeIcon,y?.icon),children:e.icon}):null,jsxs("span",{className:a("flex min-w-0 flex-1 flex-col",y?.itemContent),children:[jsx("span",{className:a(b.treeNodeLabel,y?.label),children:e.label}),e.description?jsx("span",{className:a(b.treeNodeDescription,y?.description),children:e.description}):null]}),e.meta?jsx("span",{className:a(b.treeNodeMeta,y?.meta),children:e.meta}):null,e.badge?jsx("span",{className:a(b.treeNodeBadge,y?.badge),children:e.badge}):null,E?jsx("span",{className:a("ml-1 shrink-0",y?.actions),children:E(T)}):null]})}r(yn,"TreeItemRow");function Vs({nodes:e,context:t,selectedNodeId:o,selectionMode:n="single",selectedNodeIds:i=[],onSelectedNodeIdsChange:s,dragScope:d="tree",expandedNodeIds:l,defaultExpandedNodeIds:u,resetExpansionKey:m,indentSize:g=16,activationMode:c="row",loading:x,empty:P,labels:h,appearance:I,itemRadius:b,className:y,classNames:S,renderNodeActions:D,renderNodeChildren:f,onSelectNode:N,onExpandedNodeIdsChange:v,onDragEnd:E}){let T=le(pe(I)),[w,L]=useState(()=>xn(e,u)),[O,H]=useState(),[B,X]=useState(),[Y,_]=useState(),R=useRef(new Map),re=Rs(b,T.radius),G=re?{borderRadius:re}:void 0,te={width:B?.width,height:B?.height,borderRadius:re},K=useSensors(useSensor(PointerSensor,{activationConstraint:{distance:4}}),useSensor(KeyboardSensor,{coordinateGetter:sortableKeyboardCoordinates}));useEffect(()=>{L(xn(e,u));},[u,m]);let Q=l!==void 0?new Set(l):w,be=useMemo(()=>Ns(e,Q),[e,Q]),M=useMemo(()=>{let F=new Map;for(let q of be)F.set(q.node.id,q);return F},[be]),z=O?M.get(O):void 0,U=r(F=>n==="multiple"?i.includes(F):o===F,"isSelected"),J=be.map(F=>F.node.id),ne=useCallback((F,q)=>{q?R.current.set(F,q):R.current.delete(F);},[]),W=useCallback(()=>{H(void 0),X(void 0),_(void 0);},[]),ee=r((F,q)=>{let ge=new Set(Q);q?ge.add(F):ge.delete(F),l===void 0&&L(ge),v?.([...ge]);},"setNodeExpanded"),ae=r(F=>{let q=String(F.active.id||"");H(q);let ge=q?R.current.get(q)?.getBoundingClientRect():void 0,ue=F.active.rect.current.initial,Ce=ge??ue,Pe=Es(F.activatorEvent),Oe=Ce?.width,st=Ce?.height,V=Ce?.left??(Pe?Pe.x-(Oe??0)/2:0),xe=Ce?.top??(Pe?Pe.y-(st??0)/2:0);X({initialLeft:V,initialTop:xe,left:V,top:xe,width:Oe,height:st});},"handleDragStart"),se=r(F=>{X(q=>q&&{...q,left:q.initialLeft+F.delta.x,top:q.initialTop+F.delta.y});},"handleDragMove"),ie=r(F=>{let q=String(F.active.id||""),ge=F.over?String(F.over.id||""):"";if(!q||!ge||!E){W();return}let ue=M.get(q),Ce=M.get(ge);if(!ue||!Ce){W();return}let Pe=Hs({flattenedNodes:be,activeEntry:ue,overEntry:Ce,dragOffsetX:F.delta.x,indentSize:g,dragScope:d});if(ue.parentId===Pe.parentId&&ue.index===Pe.index){W();return}let Oe={activeNode:ue.node,overNode:Ce.node,activeParentId:ue.parentId,overParentId:Ce.parentId,targetParentId:Pe.parentId,activeIndex:ue.index,overIndex:Ce.index,targetIndex:Pe.index,targetDepth:Pe.depth,sameParent:ue.parentId===Ce.parentId,targetSameParent:ue.parentId===Pe.parentId,context:t};E(Oe),W();},"handleDragEnd"),ce=z&&B?jsx("div",{"aria-hidden":"true",className:"pointer-events-none fixed z-[1000] min-w-0",style:{left:B.left,top:B.top,...te},children:jsx("div",{className:a("min-w-0 overflow-hidden shadow-lg",S?.overlay),style:te,children:jsx(yn,{node:z.node,depth:z.depth,indentSize:g,selected:U(z.node.id),multiple:n==="multiple",expanded:z.node.collapsible===false||Q.has(z.node.id),active:true,over:false,hasChildren:z.node.collapsible===true||!!z.node.children?.length,disabled:!!z.node.disabled,selectable:z.node.selectable!==false,draggable:z.node.draggable!==false,activationMode:c,dragHandleLabel:h?.dragHandle??"Drag",expandLabel:h?.expand??"Expand",collapseLabel:h?.collapse??"Collapse",themeSlots:T.slots,classNames:S,itemClassName:z.node.itemClassName,itemStyle:G,renderNodeActions:D,renderContext:{node:z.node,depth:z.depth,expanded:z.node.collapsible===false||Q.has(z.node.id),selected:U(z.node.id),dragging:true,disabled:!!z.node.disabled,context:z.node.context??t}})})}):null;return x?jsx("div",{className:a(T.slots.treeRoot,S?.root,y),children:jsx("div",{className:a(T.slots.treeLoading,S?.loading),children:h?.loading??"Loading..."})}):e.length===0?jsx("div",{className:a(T.slots.treeRoot,S?.root,y),children:jsx("div",{className:a(T.slots.treeEmpty,S?.empty),children:P??h?.empty??"No data"})}):jsxs(DndContext,{sensors:K,collisionDetection:F=>closestCenter(d==="siblings"&&z?{...F,droppableContainers:F.droppableContainers.filter(q=>M.get(String(q.id))?.parentId===z.parentId)}:F),onDragStart:ae,onDragMove:se,onDragOver:F=>{_(F.over?String(F.over.id||""):void 0);},onDragEnd:ie,onDragCancel:W,children:[jsx(SortableContext,{items:J,strategy:verticalListSortingStrategy,children:jsx("div",{className:a(T.slots.treeRoot,"space-y-1 overflow-visible",S?.root,y),role:"tree","aria-multiselectable":n==="multiple"||void 0,children:jsx("div",{className:a("min-w-0 space-y-1",S?.list),children:be.map(F=>{let q=F.node,ge=q.collapsible===false||Q.has(q.id);return jsx(_s,{entry:F,selected:U(q.id),multiple:n==="multiple",expanded:ge,active:O===q.id,over:Y===q.id&&O!==q.id,indentSize:g,activationMode:c,dragHandleLabel:h?.dragHandle??"Drag",expandLabel:h?.expand??"Expand",collapseLabel:h?.collapse??"Collapse",themeSlots:T.slots,classNames:S,itemStyle:G,context:t,renderNodeActions:D,renderNodeChildren:f,onSelect:ue=>{ue.disabled||ue.selectable===false||(n==="multiple"?s?.(U(ue.id)?i.filter(Ce=>Ce!==ue.id):[...i,ue.id]):N?.(ue,t));},onToggle:ue=>ee(ue,!ge),registerNodeElement:ne},q.id)})})})}),typeof document>"u"?ce:ce?createPortal(ce,document.body):null]})}r(Vs,"DataExplorerDraggableTree");function Fs(){return jsxs("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",className:"h-4 w-4",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",children:[jsx("circle",{cx:"12",cy:"12",r:"1"}),jsx("circle",{cx:"19",cy:"12",r:"1"}),jsx("circle",{cx:"5",cy:"12",r:"1"})]})}r(Fs,"MoreIcon");function ar({item:e,itemId:t=e?.id,source:o=e?.source,actions:n=[],label:i="Actions",triggerLabel:s="Open actions",triggerIcon:d,align:l="end",sideOffset:u=6,appearance:m,className:g,classNames:c}){let[x,P]=useState(false),h=le(pe(m)),I={itemId:t,item:e,source:o},b=n.filter(y=>fe(y.visible,I)??true);return b.length===0?null:jsx("span",{className:a("inline-flex",c?.root),children:jsxs(he.Root,{open:x,onOpenChange:P,children:[jsx(he.Trigger,{asChild:true,children:jsxs("button",{type:"button","aria-label":s,className:a(h.slots.menuTrigger,c?.trigger,g),onClick:y=>y.stopPropagation(),children:[d??jsx(Fs,{}),jsx("span",{className:"sr-only",children:s})]})}),jsx(he.Portal,{children:jsxs(he.Content,{align:l,sideOffset:u,className:a(h.slots.menuContent,c?.content),style:h.styles.menuContent,onClick:y=>y.stopPropagation(),children:[i?jsxs(Fragment,{children:[jsx(he.Label,{className:a(h.slots.menuLabel,c?.label),children:i}),jsx(he.Separator,{className:a(h.slots.menuSeparator,c?.separator)})]}):null,b.map(y=>{let S=(fe(y.disabled,I)??false)||(fe(y.loading,I)??false);return y.render?jsxs("div",{children:[y.separatorBefore?jsx(he.Separator,{className:a(h.slots.menuSeparator,c?.separator)}):null,y.render(I),y.separatorAfter?jsx(he.Separator,{className:a(h.slots.menuSeparator,c?.separator)}):null]},y.id):jsxs("div",{children:[y.separatorBefore?jsx(he.Separator,{className:a("-mx-1 my-1 h-px bg-border",c?.separator)}):null,jsxs(he.Item,{title:y.title,disabled:S,className:a(h.slots.menuItem,Et(h,y.tone),c?.item,y.className),style:h.styles.menuItem,onSelect:()=>{!y.onAction||S||y.onAction(I);},onContextMenu:D=>{!y.onContextAction||S||(D.preventDefault(),D.stopPropagation(),P(false),y.onContextAction(I));},children:[y.icon?jsx("span",{className:a(h.slots.menuItemIcon,c?.itemIcon),children:y.icon}):null,jsx("span",{className:a(h.slots.menuItemLabel,c?.itemLabel),children:y.label})]}),y.separatorAfter?jsx(he.Separator,{className:a(h.slots.menuSeparator,c?.separator)}):null]},y.id)})]})})]})})}r(ar,"DataExplorerDisplayActionMenu");function Ws(e){return e?Array.isArray(e)?e.filter(Boolean):[e]:[]}r(Ws,"normalizeMedia");function js(e){return String(e||"unknown").toLowerCase()}r(js,"resolveMediaKind");function Qt({media:e,fallbackTitle:t,empty:o,className:n,classNames:i,onOpen:s}){let l=Ws(e)[0];if(!l)return o?jsx("div",{className:a("flex min-h-24 items-center justify-center bg-muted/30 text-sm text-muted-foreground",i?.placeholder,n),children:o}):null;if(l.node)return jsx("div",{className:a("min-w-0 overflow-hidden",i?.root,n),children:l.node});let u=js(l.kind),m=String(l.src||l.thumbnail||"").trim(),g=l.title??t,c=l.alt||(typeof g=="string"?g:"preview"),x=typeof s=="function",P=m?u==="image"||u==="unknown"?jsx("img",{src:m,style:Ot(m),alt:c,className:a("h-auto w-full object-contain",i?.media),loading:"lazy",decoding:"async",draggable:false}):u==="video"?jsx("video",{src:m,className:a("h-auto w-full",i?.media),controls:true,preload:"metadata"}):u==="audio"?jsx("audio",{src:m,className:a("w-full",i?.media),controls:true,preload:"metadata"}):jsxs("div",{className:a("flex min-h-24 flex-col items-center justify-center gap-1 bg-muted/30 p-4 text-center text-sm text-muted-foreground",i?.placeholder),children:[g?jsx("span",{className:a("max-w-full truncate",i?.title),children:g}):null,jsx("span",{className:"max-w-full truncate",children:m})]}):jsx("div",{className:a("flex min-h-24 items-center justify-center bg-muted/30 text-sm text-muted-foreground",i?.placeholder),children:g||"No preview"});return x?jsx("button",{type:"button",className:a("block min-w-0 overflow-hidden text-left",i?.root,n),onClick:()=>s?.(l,0),children:P}):jsx("div",{className:a("min-w-0 overflow-hidden",i?.root,n),children:P})}r(Qt,"DataExplorerDisplayMedia");function $s(e){return e?Array.isArray(e)?e.every(t=>!!t&&typeof t=="object"&&("src"in t||"thumbnail"in t||"node"in t||"kind"in t)):typeof e=="object"&&("src"in e||"thumbnail"in e||"node"in e||"kind"in e):false}r($s,"isDisplayMedia");function Us(e){if(e?.length)return jsx(Fragment,{children:e.map((t,o)=>jsx("span",{title:t.title,className:a("inline-flex max-w-full items-center rounded-full border border-border/60 px-2 py-0.5 text-xs font-medium",t.tone==="primary"&&"border-primary/30 bg-primary/10 text-primary",t.tone==="success"&&"border-[hsl(var(--success,142_72%_29%)_/_0.30)] bg-[hsl(var(--success,142_72%_29%)_/_0.10)] text-[hsl(var(--success,142_72%_29%))]",t.tone==="warning"&&"border-[hsl(var(--warning,45_93%_47%)_/_0.30)] bg-[hsl(var(--warning,45_93%_47%)_/_0.10)] text-[hsl(var(--warning-foreground,28_73%_26%))]",t.tone==="danger"&&"border-destructive/30 bg-destructive/10 text-destructive-text",t.tone==="muted"&&"bg-muted text-muted-foreground"),children:jsx("span",{className:"truncate",children:t.label})},t.id??o))})}r(Us,"renderBadges");function qs(e){if(e?.length)return jsx("dl",{className:"grid min-w-0 grid-cols-1 gap-2 text-xs sm:grid-cols-2",children:e.map((t,o)=>jsxs("div",{className:"min-w-0",children:[t.label?jsx("dt",{className:"truncate text-muted-foreground",title:t.title,children:t.label}):null,jsx("dd",{className:"mt-0.5 min-w-0 truncate text-foreground",children:t.value})]},t.id??o))})}r(qs,"renderMetadata");function Ks(e){if(e?.length)return jsx("div",{className:"flex min-w-0 flex-wrap gap-1.5",children:e.map((t,o)=>jsx("span",{className:"max-w-full truncate rounded-full bg-muted px-2 py-0.5 text-xs text-muted-foreground",children:t},o))})}r(Ks,"renderKeywords");function Lt({item:e,title:t=e?.title,description:o=e?.description,badges:n=Us(e?.badges),meta:i=e?.status,actions:s,media:d=e?.media,header:l,headerLeading:u,headerContent:m,overlay:g,footer:c,children:x,selected:P=e?.selected,disabled:h=e?.disabled,interactive:I,role:b,tabIndex:y,appearance:S,className:D,classNames:f,onClick:N,onKeyDown:v}){let E=le(pe(S)),T=I??!!(N||v),L=l!==void 0?!!l:!!(u||m||t||o||n||i||s),O=$s(d)?jsx(Qt,{media:d,fallbackTitle:t}):d,H=qs(e?.metadata),B=Ks(e?.keywords),X=x!==void 0?x:H||B?jsxs(Fragment,{children:[H,B]}):void 0,Y=!!X;return jsxs("article",{className:a(E.slots.cardRoot,T&&!h&&E.slots.cardInteractive,P&&E.slots.cardSelected,h&&E.slots.cardDisabled,f?.root,D),"aria-disabled":h||void 0,role:b,tabIndex:y,style:E.styles.cardRoot,onClick:h?void 0:N,onKeyDown:h?void 0:v,children:[g?jsx("div",{className:a(f?.overlay),children:g}):null,L?jsx("div",{className:a(E.slots.cardHeader,f?.header),children:l!==void 0?l:jsxs("div",{className:a("flex min-w-0 items-start justify-between gap-3",f?.headerMain),children:[u?jsx("div",{className:a("flex shrink-0 items-center gap-2",f?.headerLeading),children:u}):null,jsx("div",{className:a("min-w-0 flex-1",f?.headerContent),children:m??jsxs(Fragment,{children:[t?jsx("div",{className:a("truncate text-sm font-semibold leading-none text-foreground",f?.title),children:t}):null,o?jsx("div",{className:a("mt-1 min-w-0 text-sm text-muted-foreground [overflow-wrap:anywhere]",f?.description),children:o}):null,n?jsx("div",{className:a("mt-2 flex flex-wrap items-center gap-2",f?.badges),children:n}):null]})}),i||s?jsxs("div",{className:"flex min-w-0 items-center gap-2",children:[i?jsx("div",{className:a("min-w-0 max-w-[12rem] truncate text-sm text-muted-foreground",f?.meta),children:i}):null,s?jsx("div",{className:a("flex shrink-0 items-center gap-2",f?.actions),children:s}):null]}):null]})}):null,O?jsx("div",{className:a(E.slots.cardMedia,f?.media),children:O}):null,Y?jsx("div",{className:a("min-w-0 px-4 pb-4",f?.body),children:X}):null,c?jsx("div",{className:a(E.slots.cardFooter,f?.footer),children:c}):null]})}r(Lt,"DataExplorerDisplayCard");function sr({media:e,title:t,description:o,meta:n,badges:i,actions:s,footer:d,children:l,className:u,classNames:m}){let g=!!t||!!o||!!n||!!i||!!s;return jsxs("article",{className:a("flex min-w-0 flex-col overflow-hidden rounded-lg border border-border/60 bg-background",m?.root,u),children:[e?jsx("div",{className:a("shrink-0 overflow-hidden",m?.media),children:e}):null,g?jsxs("div",{className:a("flex flex-col gap-3 p-4",m?.header),children:[jsxs("div",{className:"flex items-start justify-between gap-3",children:[jsxs("div",{className:"min-w-0 flex-1",children:[t?jsx("div",{className:a("truncate text-sm font-semibold text-foreground",m?.title),children:t}):null,o?jsx("div",{className:a("mt-1 text-sm text-muted-foreground",m?.description),children:o}):null]}),n||s?jsxs("div",{className:"flex shrink-0 items-center gap-2",children:[n?jsx("div",{className:a("text-sm text-muted-foreground",m?.meta),children:n}):null,s?jsx("div",{className:a("flex items-center gap-2",m?.actions),children:s}):null]}):null]}),i?jsx("div",{className:a("flex flex-wrap items-center gap-2",m?.badges),children:i}):null]}):null,l?jsx("div",{className:a("min-w-0 px-4 pb-4",m?.body),children:l}):null,d?jsx("div",{className:a("shrink-0 border-t border-border/60 px-4 py-3",m?.footer),children:d}):null]})}r(sr,"DataExplorerViewItemShell");function lr(e){let{item:t,index:o,itemId:n,context:i,capabilities:s,itemDefinition:d,className:l,selected:u,actions:m,onOpen:g,onSelectionChange:c}=e;if(d?.render)return jsx(Fragment,{children:d.render(e)});let x=typeof d?.shellProps=="function"?d.shellProps({item:t,index:o,itemId:n,context:i,capabilities:s,itemDefinition:d,className:l,selected:u,actions:m,onOpen:g,onSelectionChange:c}):d?.shellProps;return jsx(sr,{...x,className:l})}r(lr,"DataExplorerViewItem");function Qs(e){switch(e){case "list":return "flex min-h-0 flex-col gap-3";case "waterfall":return "columns-1 gap-4 sm:columns-2 lg:columns-3";default:return "grid min-h-0 gap-4"}}r(Qs,"getItemsClassName");function el(e){if(e==="waterfall")return "mb-4 break-inside-avoid"}r(el,"getDefaultItemClassName");function tl(e,t){return String(t)}r(tl,"defaultResolveItemId");function ol(e){return typeof e=="number"?`${dr(e,220)}px`:e}r(ol,"resolveMeasuredGridMinColumnWidth");function Dn(e,t,o){return Math.max(1,Math.ceil((e+o)/(t+o)))}r(Dn,"resolveMeasuredGridSpan");function dr(e,t){return typeof e=="number"&&Number.isFinite(e)&&e>0?e:t}r(dr,"resolvePositiveNumber");function rl(e,t){return typeof e=="number"&&Number.isFinite(e)&&e>=0?e:t}r(rl,"resolveNonNegativeNumber");function to({items:e,activeViewId:t,context:o,capabilities:n,className:i,classNames:s,empty:d,loading:l,loadingNode:u,footer:m,overlay:g,layout:c="grid",scrollable:x=true,wrapItems:P=true,measuredGrid:h,itemsStyle:I,itemStyle:b,selectedIds:y=[],getItemId:S,itemDefinition:D,renderItem:f,getItemClassName:N,onOpenItem:v,onSelectionChange:E}){let T=Array.isArray(e)?e:[],w=new Set(y),L=S??tl,O=h===true?{}:h&&typeof h=="object"?h:void 0,H=c==="grid"&&!!(O?.enabled??h),B=dr(O?.rowHeight,4),X=rl(O?.gap,8),Y=O?.minColumnWidth??"220px",_=useRef(new Map),R=useRef(new Map),re=useRef(new Map),G=useRef(null),[,te]=useState(0),K=typeof b=="function"?J=>b(J):()=>b;useEffect(()=>{if(!H||typeof ResizeObserver>"u")return;let J=new ResizeObserver(ne=>{let W=false;for(let ee of ne){let se=ee.target.dataset.dataExplorerItemId;if(!se)continue;let ie=Math.ceil(ee.contentRect.height),ce=Dn(ie,B,X);re.current.get(se)!==ce&&(re.current.set(se,ce),W=true);}W&&te(ee=>ee+1);});G.current=J;for(let ne of _.current.values())J.observe(ne);return ()=>{J.disconnect(),G.current===J&&(G.current=null);}},[H,X,B]),useEffect(()=>{if(!H){_.current.clear(),R.current.clear(),re.current.clear();return}let J=new Set(T.map((W,ee)=>L(W,ee))),ne=false;for(let W of re.current.keys())J.has(W)||(re.current.delete(W),ne=true);for(let[W,ee]of _.current.entries())J.has(W)||(G.current?.unobserve(ee),_.current.delete(W));for(let W of R.current.keys())J.has(W)||R.current.delete(W);ne&&te(W=>W+1);},[H,T,L]);let Q=useCallback(J=>{let ne=R.current.get(J);if(ne)return ne;let W=r(ee=>{let ae=_.current.get(J);ae&&ae!==ee&&(G.current?.unobserve(ae),_.current.delete(J)),ee&&(ee.dataset.dataExplorerItemId=J,_.current.set(J,ee),G.current?.observe(ee));},"callback");return R.current.set(J,W),W},[]),be=r(J=>{let ne=J.itemId;if(ne){let se=re.current.get(ne);if(se)return se}let W=O?.estimateItemHeight,ee=typeof W=="function"?W(J):typeof W=="number"?W:240,ae=dr(ee,240);return Dn(ae,B,X)},"getMeasuredGridSpan"),M=r(()=>H?{...I,gap:X,gridAutoFlow:"dense",gridAutoRows:B,gridTemplateColumns:`repeat(auto-fill, minmax(${ol(Y)}, 1fr))`}:I,"resolveMeasuredItemsStyle"),z=r(()=>l&&u?jsx("div",{className:a("flex items-center justify-center p-6 text-sm text-muted-foreground",s?.loading),children:u}):d?jsx("div",{className:a("flex items-center justify-center p-6 text-sm text-muted-foreground",s?.empty),children:d}):null,"renderStatus"),U=r((J,ne,W,ee)=>{if(!E)return;let ae=S?S(J,ne):W,se=ee?Array.from(new Set([...y,ae])):y.filter(ie=>ie!==ae);E(se);},"handleSelectionChange");return T.length===0&&!m&&!g?z():jsxs("div",{className:a("relative flex min-h-0 flex-1 flex-col overflow-hidden",s?.root,i),"data-view-id":t||void 0,children:[T.length>0?jsx("div",{className:a(Qs(c),x&&"overflow-auto",s?.items),style:M(),children:T.map((J,ne)=>{let W=L(J,ne),ee=w.has(W),se={item:J,index:ne,itemId:W,context:o,capabilities:n,itemDefinition:D,selected:ee,onOpen:v,onSelectionChange:r((ue,Ce)=>{U(ue,ne,W,Ce);},"selectionChange")},ie=a(el(c),s?.item,N?.({...se,className:s?.item})),ce={...se,className:ie},F=f?f(ce):jsx(lr,{...ce}),q=K(ce),ge=H?{...q,gridRowEnd:`span ${be(ce)}`}:q;return P?jsx("div",{className:ie,style:ge,children:H?jsx("div",{ref:Q(W),children:F}):F},W):H?jsx("div",{className:ie,style:ge,children:jsx("div",{ref:Q(W),children:F})},W):jsx(Fragment$1,{children:F},W)})}):z(),l&&u&&T.length>0?jsx("div",{className:a("shrink-0 p-3 text-sm text-muted-foreground",s?.loading),children:u}):null,m?jsx("div",{className:a("shrink-0",s?.footer),children:m}):null,g?jsx("div",{className:a("absolute inset-0 z-10",s?.overlay),children:g}):null]})}r(to,"DataExplorerViewCollection");function ur({className:e,classNames:t,...o}){return jsx(Lt,{...o,className:a("rounded-md",e),classNames:{...t,root:a("flex-row items-stretch",t?.root),media:a("w-28 shrink-0",t?.media),header:a("flex min-w-0 flex-1 items-center p-3",t?.header),body:a("px-3 pb-3",t?.body)}})}r(ur,"DataExplorerDisplayListItem");function Cn(e,t){if(e)return typeof e=="function"?e(t):e}r(Cn,"resolveDisplayItemProps");function il(e,t,o){let{item:n,layout:i}=e,s=!!t&&!n.disabled,d=o?.renderActions?o.renderActions(e):n.actions?.length?jsx(ar,{item:n,actions:n.actions,appearance:o?.appearance}):void 0,l={media:o?.renderMedia?o.renderMedia(e):void 0,actions:d,appearance:o?.appearance,interactive:s,onClick:s?()=>t?.(n):void 0};if(i==="list"){let m=Cn(o?.listItemProps,e);return jsx(ur,{...l,...m,item:n,className:a(l.className,m?.className)})}let u=Cn(o?.cardProps,e);return jsx(Lt,{...l,...u,item:n,className:a(l.className,u?.className)})}r(il,"renderDefaultItem");function sl({items:e,activeViewId:t="display",layout:o="grid",appearance:n,selectedIds:i,empty:s,loading:d,loadingNode:l,footer:u,overlay:m,className:g,classNames:c,scrollable:x,wrapItems:P,measuredGrid:h,itemsStyle:I,itemStyle:b,getItemClassName:y,cardProps:S,listItemProps:D,renderMedia:f,renderActions:N,renderItem:v,onOpenItem:E,onSelectionChange:T}){return jsx(to,{activeViewId:t,items:e,layout:o,selectedIds:i,className:g,classNames:c,empty:s,loading:d,loadingNode:l,footer:u,overlay:m,scrollable:x,wrapItems:P,measuredGrid:h,itemsStyle:I,itemStyle:typeof b=="function"?({item:w,index:L=0,itemId:O="",selected:H=false})=>b({item:w,index:L,itemId:O,selected:H,activeViewId:t,layout:o}):b,getItemId:w=>w.id,getItemClassName:y?({item:w,index:L=0,itemId:O="",selected:H=false})=>y({item:w,index:L,itemId:O,selected:H,activeViewId:t,layout:o}):void 0,renderItem:({item:w,index:L})=>(()=>{let O={item:w,index:L??0,itemId:w.id,selected:i?.includes(w.id)??false,activeViewId:t,layout:o};return v?v(w,O.index,O):il(O,E,{cardProps:S,listItemProps:D,appearance:n,renderMedia:f,renderActions:N})})(),onOpenItem:E,onSelectionChange:T})}r(sl,"DataExplorerDisplayCollectionView");function cr(e,t){let o=typeof e=="function"?e():e;if(o===null)return null;if(!o||typeof o!="object"||o.nodeType!==1)throw new TypeError(`${t} must resolve to an Element or null.`);return o}r(cr,"resolveContainerValue");function Tn({explicitProvided:e,explicitContainer:t,providerProvided:o,providerContainer:n,getDocument:i}){if(e)return cr(t,"BasePortal container");if(o)return cr(n,"MonkeysProvider portal.container");if(!i)return null;let s=i();if(s===null)return null;if(!s||typeof s!="object"||!("body"in s))throw new TypeError("MonkeysProvider environment.getDocument must resolve to a Document or null.");return cr(s.body,"MonkeysProvider environment.getDocument().body")}r(Tn,"resolveBasePortalContainer");function ul({mounted:e,explicitDisabled:t,explicitContainer:o,providerDisabled:n,providerContainer:i,getDocument:s}){let d=t??n??false;if(!e||d)return {mounted:e,disabled:d,shouldPortal:false,container:null,radixPortalProps:void 0};let l=Tn({explicitProvided:o!==void 0,explicitContainer:o,providerProvided:i!==void 0,providerContainer:i,getDocument:s});return l?{mounted:true,disabled:false,shouldPortal:true,container:l,radixPortalProps:Object.freeze({container:l})}:{mounted:true,disabled:false,shouldPortal:false,container:null,radixPortalProps:void 0}}r(ul,"resolveBaseOverlayPortalState");function cl(){return globalThis.document??null}r(cl,"getDefaultDocument");function Sn(e={}){let t=Mr(),o=Ir(),[n,i]=useState(false);return useEffect(()=>{i(true);},[]),ul({mounted:n,explicitDisabled:e.disabled,explicitContainer:e.container,providerDisabled:o.disabled,providerContainer:o.container,getDocument:t.getDocument??cl})}r(Sn,"useBaseOverlayPortal");function Ro(e,t){if(typeof e!="boolean")throw new TypeError(`BaseTooltip ${t} must be a boolean.`)}r(Ro,"validateBoolean");function bl(e){if(e!=="top"&&e!=="bottom"&&e!=="left"&&e!=="right")throw new TypeError('BaseTooltip placement must be "top", "bottom", "left", or "right".')}r(bl,"validatePlacement");function xl(e,t){return isValidElement(e)&&e.type!==Fragment$1?e:jsx("span",{tabIndex:!t&&Ue(e)?0:void 0,children:e})}r(xl,"normalizeTrigger");var Tt=forwardRef(r(function({content:t,children:o,open:n,defaultOpen:i=false,placement:s="top",disabled:d=false,portal:l=false,appearance:u,className:m,classNames:g,style:c,onOpenChange:x,...P},h){n!==void 0&&Ro(n,"open"),Ro(i,"defaultOpen"),Ro(d,"disabled"),Ro(l,"portal"),bl(s);let I=dt(u),b=je(),y=ut(I),S=Sn({disabled:!l}),[D,f]=useState(i),N=n!==void 0,v=!d&&Ue(t),T=v&&(N?n:D),w=l&&S.shouldPortal?"portaled":"inline",L=r(B=>{B&&!v||(N||f(B),x?.(B));},"handleOpenChange"),O=xl(o,d),H=v?jsx(mt.Content,{...b,side:s,sideOffset:8,collisionPadding:8,"data-monkeys-component":"tooltip","data-slot":"content","data-placement":s,"data-portal":w,"data-disabled":d||void 0,className:p(y.slots.tooltipContent,g?.content),style:y.styles.tooltip,children:t}):null;return jsx("span",{...b,...P,ref:h,"data-monkeys-component":"tooltip","data-slot":"root","data-state":T?"open":"closed","data-placement":s,"data-portal":w,"data-disabled":d||void 0,className:p(y.slots.tooltipRoot,g?.root,m),style:c,children:jsx(mt.Provider,{delayDuration:0,skipDelayDuration:0,disableHoverableContent:true,children:jsxs(mt.Root,{open:T,onOpenChange:L,delayDuration:0,disableHoverableContent:true,children:[jsx("span",{...b,"data-monkeys-component":"tooltip","data-slot":"trigger-wrapper","data-state":T?"open":"closed","data-placement":s,"data-portal":w,"data-disabled":d||void 0,className:p(y.slots.tooltipTrigger,g?.trigger),children:jsx(mt.Trigger,{asChild:true,...b,"data-monkeys-component":"tooltip","data-slot":"trigger","data-placement":s,"data-portal":w,"data-disabled":d||void 0,children:O})}),l&&S.shouldPortal?jsx(mt.Portal,{...S.radixPortalProps,children:H}):H]})})})},"BaseTooltip"));var Bn=1.18,Rn=16,En=1e6,mr=1e-6,Mn={topLeft:"left-4 top-4",top:"left-1/2 top-4 -translate-x-1/2",topRight:"right-4 top-4",left:"left-4 top-1/2 -translate-y-1/2",right:"right-4 top-1/2 -translate-y-1/2",bottomLeft:"bottom-4 left-4",bottom:"bottom-4 left-1/2 -translate-x-1/2",bottomRight:"bottom-4 right-4"},oo=r((e,t,o)=>Math.min(o,Math.max(t,e)),"clamp"),Mo=r(e=>e instanceof Element&&!!e.closest('[data-no-drag="true"],button,a,input,textarea,select,[contenteditable="true"],[role="button"]'),"isNoDragTarget");function kl(){return jsxs("svg",{viewBox:"0 0 24 24","aria-hidden":"true",className:"h-4 w-4",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",children:[jsx("path",{d:"M3 12a9 9 0 1 0 3-6.7"}),jsx("path",{d:"M3 4v6h6"})]})}r(kl,"ResetIcon");function Dl(){return jsxs("svg",{viewBox:"0 0 24 24","aria-hidden":"true",className:"h-4 w-4",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",children:[jsx("path",{d:"M12 5v14"}),jsx("path",{d:"M5 12h14"})]})}r(Dl,"PlusIcon");function Cl(){return jsx("svg",{viewBox:"0 0 24 24","aria-hidden":"true",className:"h-4 w-4",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",children:jsx("path",{d:"M5 12h14"})})}r(Cl,"MinusIcon");var Tl=forwardRef(r(function({src:t,rotation:o=0,flipX:n=false,flipY:i=false,alt:s="Preview image",empty:d="No image preview",actions:l,actionContext:u,toolbarActions:m,zoomStep:g=Bn,stagePadding:c=Rn,minScale:x=mr,maxScale:P=En,wheelZoom:h="plain",doubleClickAction:I="reset",panEnabled:b=true,keyboardEnabled:y=true,slots:S,overlay:D,imageOverlay:f,controlsPosition:N="bottomRight",renderControls:v,onScaleChange:E,controlsVisible:T=true,zoomLabelVisible:w=false,resetLabel:L="Reset image view",zoomInLabel:O="Zoom in",zoomOutLabel:H="Zoom out",originalSizeLabel:B="Original size",appearance:X,className:Y,classNames:_,onLoad:R,onError:re},G){let te=le(X??{background:"dark-stage"}),K=typeof t=="string"?t.trim():"",Q=useRef(null),be=useRef(null),M=useRef({scale:1,translateX:c,translateY:c}),z=useRef(void 0),[U,J]=useState(null),[ne,W]=useState(false),ee=useRef("page"),[{scale:ae,translateX:se,translateY:ie},ce]=useState(()=>({scale:1,translateX:c,translateY:c}));useLayoutEffect(()=>{M.current={scale:ae,translateX:se,translateY:ie};},[ae,se,ie]),useLayoutEffect(()=>{J(null),ee.current="page";let C=z.current?.pointerId;C!==void 0&&Q.current?.hasPointerCapture(C)&&Q.current.releasePointerCapture(C),z.current=void 0,W(false),ce({scale:1,translateX:0,translateY:0});},[K]);let F=useRef(E);F.current=E,useEffect(()=>{U&&F.current?.(ae);},[ae,U]);let q=Number.isFinite(x)?Math.max(mr,x):mr,ge=Number.isFinite(P)?Math.max(q,P):En,ue=Number.isFinite(g)&&g>1?g:Bn,Ce=Number.isFinite(c)&&c>=0?c:Rn,Pe=Number.isFinite(o)?o%360:0,Oe=useCallback(C=>{let A=Pe*Math.PI/180,j=Math.abs(Math.cos(A)),ye=Math.abs(Math.sin(A));return {width:Math.round((C.width*j+C.height*ye)*1e6)/1e6,height:Math.round((C.width*ye+C.height*j)*1e6)/1e6}},[Pe]),st=U?Oe(U):null,V=useCallback((C,A="page")=>{ee.current=A;let j=Q.current,ye=C??U;if(!j||!ye)return;let Te=Oe(ye),We=Math.max(0,j.clientWidth-Ce*2),Rt=Math.max(0,j.clientHeight-Ce*2);if(We<=0||Rt<=0||Te.width<=0||Te.height<=0)return;let Ht=A==="width"?We/Te.width:Math.min(We/Te.width,Rt/Te.height),ke=oo(Ht,q,ge),so=Te.width*ke,Qn=Te.height*ke;ce({scale:ke,translateX:(j.clientWidth-so)/2,translateY:(j.clientHeight-Qn)/2});},[U,ge,q,Ce,Oe]),xe=useCallback((C,A)=>{if(!Number.isFinite(C)||!Number.isFinite(A)||C<=0||A<=0)return;let j=be.current;if(be.current={width:C,height:A},!j||!K)return;if(ee.current&&U){V(U,ee.current);return}let ye=(C-j.width)/2,Te=(A-j.height)/2;ye===0&&Te===0||ce(We=>({scale:We.scale,translateX:We.translateX+ye,translateY:We.translateY+Te}));},[K,U,V]);useLayoutEffect(()=>{let C=Q.current;if(!C)return;if(xe(C.clientWidth,C.clientHeight),typeof ResizeObserver<"u"){let j=new ResizeObserver(ye=>{let Te=ye[0];Te&&xe(Te.contentRect.width,Te.contentRect.height);});return j.observe(C),()=>j.disconnect()}let A=r(()=>{xe(C.clientWidth,C.clientHeight);},"handleResize");return window.addEventListener("resize",A),()=>window.removeEventListener("resize",A)},[xe]);let tt=useCallback((C,A,j)=>{!Number.isFinite(C)||C===1||!Number.isFinite(A)||!Number.isFinite(j)||(ee.current=null,ce(ye=>{let Te=oo(ye.scale*C,q,ge);if(!Number.isFinite(Te)||Te===ye.scale)return ye;let We=Te/ye.scale;return {scale:Te,translateX:A-(A-ye.translateX)*We,translateY:j-(j-ye.translateY)*We}}));},[ge,q]);useEffect(()=>{let C=Q.current;if(!C||!K||!U)return;let A=r(j=>{if(Mo(j.target)||h==="disabled"||h==="modifier"&&!(j.ctrlKey||j.metaKey)||h==="plain"&&(j.ctrlKey||j.metaKey))return;j.preventDefault();let ye=C.getBoundingClientRect(),Te=j.clientX-ye.left,We=j.clientY-ye.top,Rt=j.deltaY*(j.deltaMode===1?16:j.deltaMode===2?C.clientHeight:1),Ht=Math.pow(ue,-oo(Rt,-1e3,1e3)/100);tt(Ht,Te,We);},"handleWheel");return C.addEventListener("wheel",A,{passive:false}),()=>C.removeEventListener("wheel",A)},[K,U,ue,tt,h]),useLayoutEffect(()=>{let C=Q.current;if(!C||!U)return;let A=M.current.scale,j=oo(A,q,ge);j!==A&&tt(j/A,C.clientWidth/2,C.clientHeight/2);},[U,q,ge,tt]);let Ho=useCallback(C=>{if(C.button!==0||!b||!K||!U||Mo(C.target))return;let A=Q.current;A&&(C.preventDefault(),A.setPointerCapture(C.pointerId),A.focus({preventScroll:true}),ee.current=null,z.current={pointerId:C.pointerId,startClientX:C.clientX,startClientY:C.clientY,startTranslateX:M.current.translateX,startTranslateY:M.current.translateY},W(true));},[K,U,b]),wr=useCallback(C=>{let A=z.current;!A||A.pointerId!==C.pointerId||(C.preventDefault(),ce({scale:M.current.scale,translateX:A.startTranslateX+C.clientX-A.startClientX,translateY:A.startTranslateY+C.clientY-A.startClientY}));},[]),k=useCallback(C=>{let A=z.current;if(!A||A.pointerId!==C.pointerId)return;z.current=void 0,W(false);let j=Q.current;j?.hasPointerCapture(C.pointerId)&&j.releasePointerCapture(C.pointerId);},[]),oe=useCallback(()=>{let C=Q.current;if(!C||!U)return;ee.current=null;let A=Oe(U),j=oo(1,q,ge);ce({scale:j,translateX:(C.clientWidth-A.width*j)/2,translateY:(C.clientHeight-A.height*j)/2});},[U,q,ge,Oe]),De=useCallback(C=>{!K||!U||Mo(C.target)||(I==="reset"&&V(),I==="original-size"&&oe());},[K,U,V,oe,I]),Re=useCallback(C=>{let A=Q.current;!A||!U||tt(C,A.clientWidth/2,A.clientHeight/2);},[U,tt]),$={scale:ae,ready:!!(K&&U),canZoomIn:!!(U&&ae<ge),canZoomOut:!!(U&&ae>q),zoomIn:r(()=>Re(ue),"zoomIn"),zoomOut:r(()=>Re(1/ue),"zoomOut"),reset:r(()=>V(),"reset"),fitWidth:r(()=>V(void 0,"width"),"fitWidth"),originalSize:oe};return useImperativeHandle(G,()=>$),jsxs("div",{ref:Q,"data-image-preview":true,tabIndex:y?0:void 0,onKeyDown:C=>{if(!y||!$.ready||Mo(C.target))return;let A=C.key==="+"||C.key==="="?$.zoomIn:C.key==="-"?$.zoomOut:C.key==="0"?$.reset:C.key==="1"?$.originalSize:void 0;A&&(C.preventDefault(),C.stopPropagation(),A());},className:twMerge(te.slots.previewRoot,K&&U&&b?ne?"cursor-grabbing":"cursor-grab":"cursor-default",_?.root,Y),onPointerDown:Ho,onPointerMove:wr,onPointerUp:k,onPointerCancel:k,onLostPointerCapture:k,onDoubleClick:De,style:{touchAction:b?"none":void 0,...te.styles.previewRoot},children:[K?jsx("div",{"data-image-transform":true,className:twMerge("absolute left-0 top-0 will-change-transform",_?.imageLayer),style:{visibility:U?"visible":"hidden",width:st?.width,height:st?.height,transform:`translate(${se}px, ${ie}px) scale(${ae})`,transformOrigin:"0 0"},children:jsxs("div",{"data-image-orientation":true,className:"absolute left-1/2 top-1/2",style:{width:U?.width,height:U?.height,transform:`translate(-50%, -50%) rotate(${Pe}deg) scaleX(${n?-1:1}) scaleY(${i?-1:1})`},children:[jsx("img",{src:K,style:Ot(K),alt:s,draggable:false,className:twMerge("pointer-events-none max-h-none max-w-none select-none",_?.image),onLoad:C=>{let A=C.currentTarget.naturalWidth,j=C.currentTarget.naturalHeight;if(!A||!j)return;let ye={width:A,height:j};J(ye),V(ye),R?.(ye);},onError:C=>{J(null),re?.(C);}},K),f?jsx("div",{className:"pointer-events-none absolute inset-0","data-image-coordinate-overlay":true,children:f}):null]})}):jsx("div",{className:twMerge(te.slots.previewPlaceholder,_?.placeholder),children:d}),D?jsx("div",{className:"pointer-events-none absolute inset-0","data-no-drag":"true",children:D}):null,Object.keys(Mn).map(C=>{let A=C==="topRight"&&(m?.length||l),j=C===N&&T;return !S?.[C]&&!A&&!j?null:jsxs("div",{"data-image-slot":C,"data-no-drag":"true",className:twMerge("absolute z-20 flex max-h-full max-w-full flex-col gap-2",Mn[C]),children:[S?.[C],A?jsxs("div",{"data-no-drag":"true",className:twMerge(te.slots.previewActions,"static",_?.actions),children:[m?.length?jsx(vt,{context:u,actions:m,layout:"inline",appearance:X??{background:"dark-stage"}}):null,l]}):null,j?v?v($):jsxs("div",{"data-no-drag":"true",className:twMerge(te.slots.previewControls,"static",_?.controls),children:[w?jsxs("span",{className:twMerge(te.slots.previewZoomLabel,_?.zoomLabel),children:[Math.round(ae*100),"%"]}):null,jsx(Tt,{content:H,portal:true,children:jsx("button",{type:"button","aria-label":H,disabled:!$.canZoomOut,className:twMerge(te.slots.previewControlButton,"disabled:cursor-not-allowed disabled:opacity-40",_?.controlButton),onClick:()=>Re(1/ue),children:jsx(Cl,{})})}),jsx(Tt,{content:O,portal:true,children:jsx("button",{type:"button","aria-label":O,disabled:!$.canZoomIn,className:twMerge(te.slots.previewControlButton,"disabled:cursor-not-allowed disabled:opacity-40",_?.controlButton),onClick:()=>Re(ue),children:jsx(Dl,{})})}),jsx(Tt,{content:L,portal:true,children:jsx("button",{type:"button","aria-label":L,disabled:!K||!U,className:twMerge(te.slots.previewControlButton,"disabled:cursor-not-allowed disabled:opacity-40",_?.controlButton),onClick:()=>V(),children:jsx(kl,{})})}),jsx(Tt,{content:B,portal:true,children:jsx("button",{type:"button","aria-label":B,disabled:!$.ready,className:twMerge(te.slots.previewControlButton,_?.controlButton),onClick:oe,children:jsx(Scan,{className:"h-4 w-4","aria-hidden":"true"})})})]}):null]},C)})]})},"DataExplorerImagePreview"));function Io(e,t){if(typeof e!="string")return;let o=e.trim();if(!o||/[\u0000-\u001f\u007f\\]/.test(o)||/^https?:/i.test(o)&&!/^https?:\/\//i.test(o))return;let n;try{n=new URL(o,"https://monkeys.invalid/");}catch{return}if(!(n.username||n.password)){if(n.protocol==="http:"||n.protocol==="https:"||t==="link"&&(n.protocol==="mailto:"||n.protocol==="tel:"))return o;if(n.protocol==="blob:"){if(n.pathname.startsWith("null/"))return o;try{let i=new URL(n.pathname);if(["https:","http:"].includes(i.protocol)&&!i.username&&!i.password)return o}catch{}}}}r(Io,"safeDisplayUrl");function In(e){if(typeof e!="string"||!e.trim())return;let t=e.split(",");for(let o of t){let n=o.trim().split(/\s+/);if(!Io(n[0],"media")||n.length>2||n.length===2&&!/^(?:[1-9]\d*w|(?:\d+(?:\.\d+)?|\.\d+)x)$/.test(n[1]))return}return e}r(In,"safeDisplaySrcSet");function Nn({kind:e}){return jsx(e==="image"?Image:e==="video"?Video:e==="audio"?Music2:FileText,{className:"h-6 w-6","aria-hidden":"true"})}r(Nn,"PreviewIcon");function Nl({src:e,kind:t="image",alt:o="Preview",title:n,aspectRatio:i="auto",fit:s="contain",controls:d=true,loading:l=false,empty:u="No preview available",error:m="Preview is unavailable right now.",className:g,style:c,classNames:x,mediaAttributes:P,onLoad:h,onError:I}){let[b,y]=useState(false),S=Io(e,"media")??"",D=Object.fromEntries(Object.entries(P??{}).flatMap(([E,T])=>{let w=E.toLowerCase();return w==="src"||w==="srcdoc"||w==="dangerouslysetinnerhtml"?[]:w==="srcset"?[["srcSet",In(T)]]:w==="poster"?[["poster",Io(T,"media")]]:[[E,T]]}));useEffect(()=>{y(false);},[S,t]);let f=r((E,T)=>jsx("div",{className:a("flex min-h-24 flex-col items-center justify-center gap-2 bg-muted/30 p-4 text-center text-sm text-muted-foreground",x?.placeholder,T),role:l?"status":"img","aria-label":typeof E=="string"?E:void 0,children:E}),"renderPlaceholder");if(l)return jsx("div",{className:a("min-w-0 overflow-hidden",x?.root,g),style:c,"aria-busy":"true",children:jsxs("div",{className:a("flex min-h-24 flex-col items-center justify-center gap-2 bg-muted/30 p-4 text-sm text-muted-foreground",x?.loading),children:[jsx(Loader2,{className:"h-5 w-5 animate-spin","aria-hidden":"true"}),n||"Loading preview..."]})});if(!S||b)return jsx("div",{className:a("min-w-0 overflow-hidden",x?.root,g),style:c,children:f(jsxs(Fragment,{children:[jsx(Nn,{kind:t}),jsx("span",{className:a("max-w-full truncate",b?x?.error:void 0),children:b?m:u}),n?jsx("span",{className:"max-w-full truncate text-xs",children:n}):null]}))});let N=r(()=>{y(true),I?.();},"handleError"),v=t==="image"?jsx(er,{...D,src:S,alt:o,fit:s,className:x?.media,loading:"lazy",decoding:"async",draggable:false,onLoad:h,onError:N}):t==="video"?jsx("video",{...D,src:S,className:a("block h-auto w-full",s==="cover"?"object-cover":"object-contain",x?.media),controls:d,preload:"metadata",onLoadedData:h,onError:N}):t==="audio"?jsx("audio",{...D,src:S,className:a("w-full",x?.media),controls:d,preload:"metadata",onCanPlay:h,onError:N}):f(jsxs(Fragment,{children:[jsx(Nn,{kind:"file"}),jsx("span",{className:"max-w-full truncate",children:n||S})]}));return t==="image"?jsx(Yt,{aspectRatio:i,className:a(x?.root,g),style:c,children:v}):jsx("div",{className:a("min-w-0 overflow-hidden",x?.root,g),style:c,children:v})}r(Nl,"DataExplorerMediaPreview");function Ll({sidebar:e,tree:t,toolbar:o,controls:n,notices:i,content:s,view:d,detail:l,appearance:u,className:m,classNames:g}){let c=pe(u),x=c?le(c):void 0,P=t??e,h=n??o,I=d??s;return jsx(vr,{appearance:c,children:jsxs("div",{className:a("flex h-full min-h-0 overflow-hidden",x?.slots.surfaceRoot,g?.root,m),style:x?.styles.surfaceRoot,children:[P?jsx("div",{className:a("min-h-0 shrink-0 overflow-hidden",g?.sidebar,g?.tree),children:P}):null,jsxs("div",{className:a("relative flex min-h-0 flex-1 flex-col overflow-hidden",g?.main),children:[h?jsx("div",{className:a("shrink-0",g?.toolbar,g?.controls),children:h}):null,i?jsx("div",{className:a("shrink-0",g?.notices),children:i}):null,jsx("div",{className:a("flex min-h-0 flex-1 flex-col overflow-hidden",g?.content,g?.view),children:I}),l?jsx("div",{className:a(g?.detail),children:l}):null]})]})})}r(Ll,"DataExplorerPage");function Al({item:e,selected:t,label:o,className:n,onToggleSelection:i}){return i?jsx("input",{type:"checkbox",checked:t,"aria-label":o,className:a("h-4 w-4 shrink-0 accent-primary",n),onChange:()=>i(e),onClick:s=>s.stopPropagation()}):null}r(Al,"DefaultCheckbox");function Hl({item:e,active:t,label:o,className:n,onToggleFavorite:i}){return i?jsxs("button",{type:"button","aria-pressed":t,title:o,className:a("inline-flex h-8 w-8 items-center justify-center rounded-md text-muted-foreground transition-colors hover:bg-muted hover:text-foreground",t&&"text-[hsl(var(--warning,45_93%_47%))]",n),onClick:s=>{s.stopPropagation(),i(e);},children:[jsx("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",className:"h-4 w-4",fill:t?"currentColor":"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",children:jsx("path",{d:"m12 2 3.1 6.3 6.9 1-5 4.9 1.2 6.8-6.2-3.3L5.8 21 7 14.2 2 9.3l6.9-1L12 2Z"})}),jsx("span",{className:"sr-only",children:o})]}):null}r(Hl,"DefaultFavorite");function _l({item:e,limit:t,classNames:o}){let n=e.keywords??[];if(n.length===0)return null;let i=n.slice(0,t),s=Math.max(0,n.length-i.length);return jsxs("div",{className:a("mt-2 flex flex-wrap gap-2",o?.keywords),children:[i.map((d,l)=>jsx("span",{className:a("max-w-full truncate rounded-full bg-muted px-2 py-0.5 text-xs text-muted-foreground",o?.keyword),title:typeof d=="string"?d:void 0,children:d},l)),s>0?jsxs("span",{className:a("rounded-full border border-border px-2 py-0.5 text-xs text-muted-foreground",o?.keywordOverflow),children:["+",s]}):null]})}r(_l,"renderKeywords");function Vl({item:e,selected:t=e.selected??false,active:o,disabled:n=e.disabled,hasMedia:i,showHeaderWithMedia:s=false,selectionVisible:d,favoriteVisible:l,overlayControlsAlwaysVisible:u,favoriteActive:m=false,favoriteLabel:g="Favorite",favoriteActiveLabel:c="Unfavorite",selectLabel:x="Select item",unselectLabel:P="Unselect item",actions:h,media:I,footer:b,checkbox:y,favorite:S,keywordLimit:D=3,appearance:f,className:N,classNames:v,onClick:E,onToggleSelection:T,onToggleFavorite:w}){let L=le(pe(f)),O=i??!!(I??e.media),H=!O||s,B=d??!!(t||T),X=l??!!(S||w),Y=m?c:g,R=y??(B?jsx(Al,{item:e,selected:t,label:t?P:x,className:v?.selectionControl,onToggleSelection:T}):null),re=S??(X?jsx(Hl,{item:e,active:m,label:Y,className:v?.favoriteControl,onToggleFavorite:w}):null),G=I??(e.media?jsx(Qt,{media:e.media,fallbackTitle:e.title}):void 0),te=H?jsxs("div",{className:a("flex flex-col",v?.header),children:[jsxs("div",{className:a("flex min-w-0 items-center justify-between gap-2",v?.headerMain),children:[jsxs("div",{className:"flex min-w-0 flex-1 items-center gap-2",children:[R,jsx("div",{className:"min-w-0 flex-1",children:e.title?jsx("h3",{className:a("truncate text-sm font-semibold leading-none",v?.title),children:e.title}):null})]}),re||h?jsxs("div",{className:"flex shrink-0 items-center gap-1",children:[re,h]}):null]}),_l({item:e,limit:D,classNames:v})]}):null,K=O&&(R||re||h)?jsx("div",{className:a("absolute inset-x-2 top-2 z-10",v?.overlay),children:jsxs("div",{className:a("flex items-start justify-between gap-1 transition-opacity",t||u?"opacity-100":"opacity-0 group-hover:opacity-100",v?.overlayControls),children:[R??jsx("span",{}),jsxs("div",{className:"flex items-center gap-1",children:[re,h?jsx("div",{className:a(v?.floatingActions),children:h}):null]})]})}):null;return jsx(Lt,{item:e,selected:t,disabled:n,appearance:f,className:a(L.slots.recordCardRoot,o&&L.slots.recordCardActive,v?.root,N),classNames:{overlay:v?.overlay,header:a(O?"p-3":"p-3 pb-2",v?.header),media:a("p-0 bg-muted/30",v?.media),footer:v?.footer},header:te,overlay:K,media:G?jsx("div",{className:a("relative overflow-hidden",v?.mediaFrame),children:G}):void 0,footer:b,children:null,onClick:E})}r(Vl,"DataExplorerRecordCard");var Fl={sm:"h-8 px-2.5 text-xs",md:"h-9 px-3 text-sm",lg:"h-10 px-3.5 text-base"},zl={sm:"h-8 w-8 px-0",md:"h-9 w-9 px-0",lg:"h-10 w-10 px-0"},gr={sm:"h-3.5 w-3.5",md:"h-4 w-4",lg:"h-5 w-5"};function No(e){return typeof e=="string"&&e.trim()?e:void 0}r(No,"nonEmptyText");function Wl(){return jsxs("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",className:"h-full w-full motion-safe:animate-spin motion-reduce:animate-none",fill:"none",children:[jsx("circle",{cx:"12",cy:"12",r:"9",className:"opacity-25",stroke:"currentColor",strokeWidth:"3"}),jsx("path",{className:"opacity-75",fill:"currentColor",d:"M12 3a9 9 0 0 1 9 9h-3a6 6 0 0 0-6-6V3Z"})]})}r(Wl,"LoadingIcon");var Gt=forwardRef(r(function({children:t,label:o,icon:n,endIcon:i,type:s="button",title:d,ariaLabel:l,tone:u,size:m,active:g=false,iconOnly:c=false,disabled:x=false,loading:P=false,stopPropagation:h=false,appearance:I,variant:b,density:y,state:S,className:D,classNames:f,style:N,onClick:v,"aria-label":E,"aria-pressed":T,...w},L){for(let[M,z]of [["active",g],["iconOnly",c],["disabled",x],["loading",P],["stopPropagation",h]])if(typeof z!="boolean")throw new TypeError(`BaseButton ${M} must be a boolean.`);if(m!==void 0&&m!=="sm"&&m!=="md"&&m!=="lg")throw new TypeError('BaseButton size must be "sm", "md", or "lg".');if(u!==void 0&&u!=="default"&&u!=="primary"&&u!=="success"&&u!=="warning"&&u!=="danger"&&u!=="muted")throw new TypeError('BaseButton tone must be "default", "primary", "success", "warning", "danger", or "muted".');let O=dt(I),H=je(),B=ut({...O,variant:b,density:y,state:S}),X=t??o,Y=Ue(X)&&(typeof X!="string"||!!X.trim()),_=No(l)??No(E),R=typeof X=="string"?No(X):void 0,re=No(d);if(c&&!Y&&!_&&!re)throw new TypeError("BaseButton iconOnly requires ariaLabel, aria-label, title, or a renderable label.");let G=_??R??re,te=x||P,K=u??"default",Q=S??(P?"loading":x?"disabled":g?"active":"idle"),be=r(M=>{h&&M.stopPropagation(),!te&&v?.(M);},"handleClick");return jsxs("button",{...H,...w,ref:L,type:s,title:d,"aria-label":G,"aria-pressed":T??(g||void 0),"aria-busy":P||void 0,"data-variant":B.variant,"data-density":B.density,disabled:te,"data-monkeys-component":"button","data-slot":"root","data-state":Q,"data-tone":K,"data-size":m,"data-active":g||void 0,"data-loading":P||void 0,"data-disabled":te||void 0,"data-icon-only":c||void 0,className:p(B.slots.buttonBase,c&&B.slots.buttonIconOnly,m&&Fl[m],c&&m&&zl[m],Vr(B,u,g),te&&B.slots.buttonDisabled,f?.root,D),style:{...B.styles.button,...g?B.styles.buttonActive:void 0,...te?B.styles.buttonDisabled:void 0,...N},onClick:be,children:[P?jsx("span",{"data-slot":"icon","data-state":Q,"data-tone":K,"data-size":m,className:p(B.slots.buttonIcon,m&&gr[m],f?.icon),children:jsx(Wl,{})}):n?jsx("span",{"data-slot":"icon","data-state":Q,"data-tone":K,"data-size":m,className:p(B.slots.buttonIcon,m&&gr[m],f?.icon),children:n}):null,c?Ue(X)?jsx("span",{"data-slot":"label","data-state":Q,"data-tone":K,"data-size":m,className:"sr-only",children:X}):null:Ue(X)?jsx("span",{"data-slot":"label","data-state":Q,"data-tone":K,"data-size":m,className:p(B.slots.buttonLabel,f?.label),children:X}):null,!P&&i?jsx("span",{"data-slot":"end-icon","data-state":Q,"data-tone":K,"data-size":m,className:p(B.slots.buttonIcon,m&&gr[m],f?.icon,f?.endIcon),children:i}):null]})},"BaseButton"));function Lo(e,t){let o=I18nTextSchema.safeParse(e);if(!o.success)throw new TypeError("Invalid I18n display text");let n;try{n=Intl.getCanonicalLocales(t)[0]??"";}catch{n="";}let i=n.split("-")[0]??"";return o.data.values[n]??o.data.values[i]??o.data.values[o.data.defaultLocale]}r(Lo,"resolveI18nDisplayText");var Kl=r((e,t)=>{let o=t?Array.isArray(e)?e:e?[e]:[]:typeof e=="string"?[e]:[];return Array.from(new Set(o.filter(n=>typeof n=="string"&&n.length>0)))},"normalizeValues"),br=r(e=>e.textValue??(typeof e.label=="string"?e.label:e.value),"getOptionText");function Xl({value:e,activeValue:t,options:o=[],createOption:n,multiple:i=false,selectedListPlacement:s="below",placeholder:d="Select a record",triggerLabel:l,triggerIcon:u,searchPlaceholder:m="Search records",emptyState:g="No records found",endState:c,loadingState:x,loadingMoreState:P,errorState:h,loading:I=false,loadingMore:b=false,disabled:y=false,open:S,defaultOpen:D=false,searchValue:f,defaultSearchValue:N="",appearance:v,className:E,classNames:T,triggerProps:w,dataAttributes:L,onOpenChange:O,onListScroll:H,onSearchValueChange:B,onValueChange:X$1}){let{locale:Y}=Rr(),_=lt(),R=useRef(new Map),re=h&&typeof h=="object"&&"defaultLocale"in h?Lo(h,Y):h,G=c&&typeof c=="object"&&"defaultLocale"in c?Lo(c,Y):c,te=r(V=>{if(!V.labelI18n)return V;let xe=Lo(V.labelI18n,Y);return {...V,label:xe,textValue:xe}},"localizeOption"),K=o.map(te),Q=n&&te(n),be=ut(dt()),M=le(pe(v)),[z,U]=useState(D),[J,ne]=useState(N),W=S!==void 0,ee=W?S:z,ae=f!==void 0,se=ae?f:J,ie=useMemo(()=>Kl(e,i),[i,e]),ce=useMemo(()=>new Set(ie),[ie]),F=ie.map(V=>K.find(xe=>xe.value===V)??te(R.current.get(V)??{value:V,label:V}));useEffect(()=>{R.current=new Map(F.map(V=>[V.value,V]));},[F]);let q=Q?[Q,...K]:K,ge=F.length?i&&F.length>2?`${F.slice(0,2).map(V=>br(V)).join(", ")} +${F.length-2}`:F.map(br).join(", "):d;useEffect(()=>{if(!ee)return;let V=r(xe=>{xe.key==="Escape"&&O?.(false);},"handleKeyDown");return window.addEventListener("keydown",V),()=>window.removeEventListener("keydown",V)},[ee,O]);let ue=r(V=>{y||(W||U(V),O?.(V));},"setOpen"),Ce=r(V=>{ae||ne(V),B?.(V);},"setQuery"),Pe=r(V=>{if(!(y||V.disabled)){if(i){let xe=ce.has(V.value)?ie.filter(tt=>tt!==V.value):[...ie,V.value];X$1?.(xe);return}X$1?.(V.value),ue(false);}},"handleOptionClick"),Oe=r(V=>{y||X$1?.(ie.filter(xe=>xe!==V));},"removeValue"),st=i&&F.length>0?jsx("div",{className:a("mt-2 flex max-h-32 flex-wrap gap-1.5 overflow-y-auto",T?.selectedList),children:F.map(V=>jsxs("span",{className:a("inline-flex max-w-full items-center gap-1 rounded-md border border-border bg-muted px-2 py-1 text-xs",T?.selectedItem),children:[jsx("span",{className:a("min-w-0 truncate",T?.selectedItemLabel),children:V.label}),jsx(Gt,{type:"button",disabled:y,ariaLabel:_.multiSelect.removeOption({value:br(V)}),variant:"ghost",iconOnly:true,onClick:()=>Oe(V.value),className:a("shrink-0 rounded-md text-muted-foreground",T?.selectedItemRemove),style:{width:"calc(var(--spacing, 0.25rem) * 4)",height:"calc(var(--spacing, 0.25rem) * 4)",minWidth:0,minHeight:0,padding:0,borderWidth:0,background:"transparent"},icon:jsx(X,{className:"h-3 w-3","aria-hidden":"true"})})]},V.value))}):null;return jsxs("div",{...L?.root,className:a("relative min-w-0 w-full",T?.root,E),children:[jsxs(Bt.Root,{open:ee,onOpenChange:ue,children:[jsx(Bt.Trigger,{asChild:true,children:jsxs("button",{...w,...L?.trigger,type:"button",disabled:y,"aria-label":l,"aria-expanded":ee,className:a(M.slots.controlSelectTrigger,"relative pr-9",T?.trigger),children:[u,jsx("span",{...L?.triggerValue,className:a(M.slots.controlSelectValue,!F.length&&"text-muted-foreground",T?.triggerValue),children:ge}),jsx("span",{className:a(be.slots.selectChevron,ee&&"rotate-[225deg]"),"aria-hidden":"true"})]})}),jsx(Bt.Portal,{children:jsxs(Bt.Content,{...L?.content,align:"start",sideOffset:6,collisionPadding:16,className:a("z-50 box-border w-max min-w-[var(--radix-popover-trigger-width)] max-w-[min(40rem,calc(100vw-2rem))] rounded-md border border-border bg-popover p-2 text-popover-foreground shadow-md",T?.content),onOpenAutoFocus:V=>V.preventDefault(),children:[jsxs("label",{className:a("flex h-9 items-center gap-2 rounded-md border border-border bg-background px-2 text-sm",T?.search),children:[jsx(Search,{className:"h-4 w-4 shrink-0 text-muted-foreground","aria-hidden":"true"}),jsx("input",{autoFocus:true,value:se,onChange:V=>Ce(V.target.value),placeholder:m,"aria-label":m,className:"min-w-0 flex-1 bg-transparent outline-hidden placeholder:text-muted-foreground"})]}),s==="content"?st:null,jsx("div",{className:a("mt-2 max-h-72 overflow-y-auto",T?.list),...L?.list,role:"listbox","aria-multiselectable":i||void 0,onScroll:H,children:I?jsxs("div",{...L?.loading,className:a("flex min-h-16 items-center justify-center gap-2 px-3 py-4 text-sm text-muted-foreground",T?.status),children:[jsx(Loader2,{className:"h-4 w-4 animate-spin","aria-hidden":"true"}),x??"Loading records..."]}):re?jsx("div",{...L?.error,className:a("px-3 py-4 text-sm text-destructive-text",T?.status),children:re}):q.length===0?jsx("div",{...L?.empty,className:a("px-3 py-4 text-sm text-muted-foreground",T?.status),children:g}):jsxs(Fragment,{children:[q.map(V=>{let xe=ce.has(V.value);return jsxs("button",{...L?.option,type:"button",role:"option","aria-selected":xe,"aria-current":t!==void 0&&V.value===t?"true":void 0,disabled:V.disabled,onClick:()=>Pe(V),className:a("flex w-full items-start gap-2 rounded-sm px-2.5 py-2 text-left text-sm transition-colors hover:bg-accent hover:text-accent-foreground disabled:pointer-events-none disabled:opacity-50",xe&&"bg-accent/60",T?.option),children:[jsx("span",{className:a("mt-0.5 flex h-4 w-4 shrink-0 items-center justify-center",T?.optionIndicator),children:xe?jsx(Check,{className:"h-4 w-4","aria-hidden":"true"}):null}),jsxs("span",{className:"min-w-0 flex-1",children:[jsx("span",{className:a("block whitespace-normal [overflow-wrap:anywhere]",T?.optionLabel),children:V.label}),V.description?jsx("span",{className:a("mt-0.5 block truncate text-xs text-muted-foreground",T?.optionDescription),children:V.description}):null]})]},V.value)}),b?jsxs("div",{...L?.loadingMore,className:a("flex items-center justify-center gap-2 px-3 py-2 text-xs text-muted-foreground",T?.status),children:[jsx(Loader2,{className:"h-3.5 w-3.5 animate-spin","aria-hidden":"true"}),P??"Loading more records..."]}):null]})}),!I&&!b&&!re&&q.length>0&&G?jsx("div",{className:a("mt-2 border-t border-border px-3 pt-2 text-xs text-muted-foreground",T?.status),role:"status",children:G}):null]})})]}),s==="below"?st:null]})}r(Xl,"DataExplorerRecordPicker");function Gn(e){try{let t=new URL(e.trim());return ["http:","https:"].includes(t.protocol)?t.href:void 0}catch{return}}r(Gn,"imageLink");function ed({accept:e,multiple:t=false,disabled:o=false,busy:n=false,title:i="Upload files",description:s,hint:d,busyLabel:l="Uploading...",icon:u,inputProps:m,className:g,classNames:c,onFilesSelected:x,renderPreview:P,replaceLabel:h,clearLabel:I,pasteLabel:b,renderActions:y,onClear:S,onChoose:D,onPasteClick:f,onUrlSelected:N,onInputError:v}){let E=P?.(),T=y?.(),w=useRef(null),[L,O]=useState(false),[H,B]=useState(false),X=useRef(true),Y=useRef(0),_=o||n,R=useRef({blocked:_,onFilesSelected:x,onUrlSelected:N,onInputError:v});R.current={blocked:_,onFilesSelected:x,onUrlSelected:N,onInputError:v},useEffect(()=>(X.current=true,()=>{X.current=false,Y.current++;}),[]),useEffect(()=>{_&&(Y.current++,B(false),O(false));},[_]);let re=r(M=>{let z=Array.from(M);!R.current.blocked&&z.length&&R.current.onFilesSelected?.(t?z:z.slice(0,1));},"emitFiles"),G=r(()=>{_||(Y.current++,B(false),D?D():w.current?.click());},"choose"),te=r(M=>{if(_)return false;if(M.files.length&&x)return Y.current++,B(false),re(M.files),true;let z=Gn(M.getData("text/plain"));return z&&N?(Y.current++,B(false),N(z),true):false},"acceptTransfer"),K=r(async()=>{if(_||H)return;let M=++Y.current,z=r(()=>X.current&&!R.current.blocked&&M===Y.current,"active");B(true);try{if(!navigator.clipboard?.read)throw new Error("Clipboard reading is unavailable.");let U=await navigator.clipboard.read();for(let J of U){let ne=J.types.find(W=>W.startsWith("image/"));if(ne&&R.current.onFilesSelected){let W=await J.getType(ne);z()&&re([new File([W],`clipboard.${ne.split("/")[1]}`,{type:ne})]);return}}for(let J of U){if(!J.types.includes("text/plain"))continue;let ne=Gn(await(await J.getType("text/plain")).text());if(ne&&R.current.onUrlSelected){z()&&R.current.onUrlSelected(ne);return}}z()&&R.current.onInputError?.("empty-clipboard");}catch{z()&&R.current.onInputError?.("clipboard-unavailable");}finally{X.current&&M===Y.current&&B(false);}},"paste"),Q=r((M,z,U)=>M?jsx("span",{"data-slot":U,className:a("max-w-full [overflow-wrap:anywhere]",z),children:M}):null,"renderText"),be=r((M,z,U)=>M?jsx(Tt,{content:M,portal:true,children:jsx(Gt,{label:M,iconOnly:true,icon:z,disabled:_||H,onClick:U})}):null,"action");return jsxs("div",{"data-monkeys-component":"data-explorer-upload-surface","data-state":n?"busy":L?"dragging":"idle",className:a("grid min-w-0 gap-global rounded-[var(--radius)] border border-border bg-muted/20 p-global transition-colors",!E&&"border-dashed",L&&"border-primary bg-primary/5",_&&"opacity-60",c?.root,g),tabIndex:_?-1:0,onPaste:M=>{te(M.clipboardData)&&(M.preventDefault(),M.stopPropagation());},onDragEnter:M=>{M.preventDefault(),_||O(true);},onDragOver:M=>M.preventDefault(),onDragLeave:M=>{M.relatedTarget instanceof Node&&M.currentTarget.contains(M.relatedTarget)||O(false);},onDrop:M=>{M.preventDefault(),O(false),te(M.dataTransfer)&&M.stopPropagation();},children:[!D&&jsx("input",{...m,ref:w,className:"sr-only",type:"file",accept:e,multiple:t,disabled:_,onChange:M=>{Y.current++,B(false),re(M.target.files??[]),M.target.value="";}}),E?jsxs(Fragment,{children:[jsx(Yt,{aspectRatio:"video",className:"rounded-[var(--radius)] bg-background",children:E}),jsxs("div",{className:"flex flex-wrap items-center justify-end gap-token-sm",children:[be(h,jsx(RefreshCw,{className:"h-4 w-4"}),G),be(b,jsx(Clipboard,{className:"h-4 w-4"}),f??K),S&&be(I,jsx(Trash2,{className:"h-4 w-4"}),()=>{Y.current++,B(false),S();}),T]})]}):jsxs(Fragment,{children:[jsxs("button",{type:"button",className:a("flex min-w-0 flex-col items-center gap-token-sm rounded-[var(--radius)] py-global text-center focus-visible:outline focus-visible:outline-primary",c?.button),disabled:_,onClick:G,children:[jsx("span",{className:a("text-muted-foreground",c?.icon),children:u??jsx(UploadCloud,{className:"h-8 w-8","aria-hidden":true})}),Q(n?l:i,a("text-sm font-medium text-foreground",c?.title),"title"),Q(s,a("text-xs text-muted-foreground",c?.description),"description"),Q(d,a("text-xs text-muted-foreground",c?.hint),"hint")]}),b&&jsx(Gt,{label:b,icon:jsx(Clipboard,{className:"h-4 w-4"}),disabled:_||H,onClick:f??K,className:"w-full"}),T]})]})}r(ed,"DataExplorerUploadSurface");function td(){return jsxs("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",className:"h-4 w-4",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",children:[jsx("circle",{cx:"11",cy:"11",r:"7"}),jsx("path",{d:"m20 20-3.5-3.5"})]})}r(td,"DefaultSearchIcon");function od({rootRef:e,dataAttributes:t,context:o,leading:n,leadingActions:i,searchVisible:s=true,searchValue:d="",searchPlaceholder:l="Search data...",searchIcon:u,viewOptions:m=[],activeViewId:g,actions:c,toolbarActions:x,appearance:P,children:h,className:I,classNames:b,onSearchChange:y,onSearchSubmit:S,onViewChange:D}){let f=r(E=>{E.preventDefault(),S?.(d);},"handleSubmit"),N=pe(P),v=le(N);return jsxs("div",{ref:e,...t,className:a(v.slots.toolbarRoot,b?.root,I),style:v.styles.toolbarRoot,children:[n||i?.length?jsxs("div",{className:a(v.slots.toolbarLeading,b?.leading),children:[n,i?.length?jsx(vt,{context:o,actions:i,layout:"inline",appearance:N,classNames:{action:b?.action,menuContent:b?.menuContent,menuItem:b?.menuItem}}):null]}):null,s?jsxs("form",{className:a(v.slots.toolbarSearch,b?.search),style:v.styles.toolbarSearch,onSubmit:f,children:[jsx("span",{className:a(v.slots.toolbarSearchIcon,b?.searchIcon),children:u??jsx(td,{})}),jsx("input",{value:d,placeholder:l,className:a(v.slots.toolbarSearchInput,b?.searchInput),onChange:E=>y?.(E.currentTarget.value)})]}):null,m.length>0?jsx("div",{className:a(v.slots.toolbarViewSwitch,b?.viewSwitch),style:v.styles.toolbarViewSwitch,children:m.map(E=>{let T=E.id===g;return jsxs("button",{type:"button",disabled:E.disabled,className:a(v.slots.toolbarViewButton,T&&v.slots.toolbarViewButtonActive,b?.viewButton),onClick:()=>D?.(E.id),children:[E.icon,E.label?jsx("span",{children:E.label}):null]},E.id)})}):null,x?.length?jsx(vt,{context:o,actions:x,layout:"toolbar",appearance:P,classNames:{root:b?.actions,action:b?.action,menuContent:b?.menuContent,menuItem:b?.menuItem}}):c||h?jsxs("div",{className:a(v.slots.toolbarActions,b?.actions),children:[c,h]}):null]})}r(od,"DataExplorerToolbarShell");function rd(e){if(!e||typeof e!="object")return;let t=e.children;return Array.isArray(t)?t:void 0}r(rd,"defaultGetChildren");function nd({nodes:e=[],context:t,capabilities:o,className:n,classNames:i,empty:s,selectedNodeId:d,getNodeId:l,getChildren:u=rd,renderNode:m,onSelect:g}){let c=Array.isArray(e)?e:[],x=r((P,h)=>P.map((I,b)=>{let y=l?l(I,b):`${h}-${b}`,S=u(I,b,h)??[],D=S.length>0,f=String(d??"")===String(y),N=D?x(S,h+1):null;return m?jsx("div",{className:"min-w-0",children:m({node:I,index:b,depth:h,context:t,capabilities:o,childNodes:S,hasChildren:D,selected:f,onSelect:g,renderChildren:r(()=>N,"renderChildren")})},y):N}),"renderTreeNodes");return c.length===0?s?jsx("div",{className:a(i?.empty),children:s}):null:jsx("div",{className:a("min-w-0",i?.root,n),children:x(c,0)})}r(nd,"DataExplorerTree");function ad({title:e,subtitle:t,toolbar:o,footer:n,children:i,appearance:s,className:d,classNames:l}){let u=le(pe(s)),m=!!e||!!t||!!o;return jsxs("section",{className:a(u.slots.treeShellRoot,l?.root,d),children:[m?jsxs("div",{className:a(u.slots.treeShellHeader,l?.header),children:[jsxs("div",{className:"min-w-0 flex-1",children:[e?jsx("div",{className:a(u.slots.treeShellTitle,l?.title),children:e}):null,t?jsx("div",{className:a(u.slots.treeShellSubtitle,l?.subtitle),children:t}):null]}),o?jsx("div",{className:a(u.slots.treeShellToolbar,l?.toolbar),children:o}):null]}):null,jsx("div",{className:a(u.slots.treeShellBody,l?.body),children:i}),n?jsx("div",{className:a(u.slots.treeShellFooter,l?.footer),children:n}):null]})}r(ad,"DataExplorerTreeShell");function qn({expanded:e}){return jsx("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",className:"h-3.5 w-3.5",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",children:jsx("path",{d:e?"m6 9 6 6 6-6":"m9 18 6-6-6-6"})})}r(qn,"ChevronIcon");function sd(){return jsxs("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",className:"h-4 w-4",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",children:[jsx("circle",{cx:"12",cy:"12",r:"1"}),jsx("circle",{cx:"12",cy:"5",r:"1"}),jsx("circle",{cx:"12",cy:"19",r:"1"})]})}r(sd,"MoreIcon");function ld(){return jsxs("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",className:"h-3.5 w-3.5",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",children:[jsx("circle",{cx:"9",cy:"6",r:"1"}),jsx("circle",{cx:"9",cy:"12",r:"1"}),jsx("circle",{cx:"9",cy:"18",r:"1"}),jsx("circle",{cx:"15",cy:"6",r:"1"}),jsx("circle",{cx:"15",cy:"12",r:"1"}),jsx("circle",{cx:"15",cy:"18",r:"1"})]})}r(ld,"GripIcon");function Yn(e,t){for(let o of e??[])o.defaultExpanded&&t.add(o.id),Yn(o.children,t);}r(Yn,"collectDefaultExpandedNodeIds");function Kn(e,t){let o=new Set(t??[]);for(let n of e)Yn(n.nodes,o);return o}r(Kn,"buildDefaultNodeExpandedSet");function Xn(e,t){let o=new Set(t??[]);for(let n of e)(n.hideHeader||n.defaultExpanded!==false)&&o.add(n.id);return o}r(Xn,"buildDefaultGroupExpandedSet");function Zn(e,t,o,n){for(let[i,s]of (e??[]).entries())n.set(s.id,{node:s,group:t,parentId:o,index:i}),Zn(s.children,t,s.id,n);}r(Zn,"flattenNodes");function dd(e){let t=new Map;for(let o of e)Zn(o.nodes,o,void 0,t);return t}r(dd,"buildFlattenedNodeMap");function ud(e,t){return [...t??[],...e.actions??[]]}r(ud,"getNodeActions");function cd(e,t){return [...t??[],...e.actions??[]]}r(cd,"getGroupActions");function pd({groups:e,nodes:t,context:o,selectedNodeId:n,selectedGroupId:i,expandedNodeIds:s,defaultExpandedNodeIds:d,expandedGroupIds:l,defaultExpandedGroupIds:u,resetExpansionKey:m,nodeActions:g,groupActions:c,indentSize:x=16,indentOffset:P=8,expanderPosition:h="start",contextMenu:I=false,actionIcon:b,empty:y,loading:S=false,loadingNode:D,error:f,labels:N,reorderMode:v="none",appearance:E,className:T,classNames:w,onSelectNode:L,onSelectGroup:O,onExpandedNodeIdsChange:H,onExpandedGroupIdsChange:B,onAction:X,onReorderNodes:Y}){let _=lt().dataExplorer.viewTree,R=le(pe(E)),re=N?.actions??_.actions,G=N?.expand??_.expand,te=N?.collapse??_.collapse,K=D??N?.loading??_.loading,Q=y??N?.empty??_.empty,be=Array.isArray(e),M=useMemo(()=>be?e:[{id:"__root__",hideHeader:true,defaultExpanded:true,nodes:Array.isArray(t)?t:[]}],[e,be,t]),z=useMemo(()=>dd(M),[M]),[U,J]=useState(()=>Kn(M,d)),[ne,W]=useState(()=>Xn(M,u)),[ee,ae]=useState(),[se,ie]=useState(),[ce,F]=useState();useEffect(()=>{J(Kn(M,d)),W(Xn(M,u));},[u,d,m]);let q=s!==void 0?new Set(s):U,ge=l!==void 0?new Set(l):ne,ue=r((k,oe)=>{let De=new Set(q);oe?De.add(k):De.delete(k),s===void 0&&J(De),H?.([...De]);},"setNodeExpanded"),Ce=r((k,oe)=>{let De=new Set(ge);oe?De.add(k):De.delete(k),l===void 0&&W(De),B?.([...De]);},"setGroupExpanded"),Pe=r((k,oe)=>oe.type==="node"?{type:"node",action:k,node:oe.node,group:oe.group,context:o}:{type:"group",action:k,group:oe.group,context:o},"createActionContext"),Oe=r((k,oe)=>{let De=k.filter($=>{let C=Pe($,oe);return fe($.visible,C)??true});if(De.length===0)return null;let Re=JSON.stringify([oe.type,oe.type==="node"?oe.node.id:oe.group.id]);return jsxs(he.Root,{open:ce===Re,onOpenChange:$=>F($?Re:void 0),children:[jsx(he.Trigger,{asChild:true,children:jsx("button",{type:"button",title:re,"aria-label":re,className:p(R.slots.menuTrigger,oe.type==="group"?R.slots.treeGroupActions:R.slots.treeNodeActions,oe.type==="group"?w?.groupActions:p(w?.nodeActions,w?.itemActions)),onClick:$=>$.stopPropagation(),onKeyDown:$=>$.stopPropagation(),children:b??jsx(sd,{})})}),jsx(he.Portal,{children:jsx(he.Content,{align:"end",sideOffset:6,className:p(R.slots.menuContent,w?.menuContent),style:R.styles.menuContent,onClick:$=>$.stopPropagation(),children:De.map($=>{let C=Pe($,oe),A=(fe($.disabled,C)??false)||(fe($.loading,C)??false),j=fe($.active,C)??false;return $.render?jsx("div",{children:$.render(C)},$.id):jsxs("div",{children:[$.separatorBefore?jsx(he.Separator,{className:R.slots.menuSeparator}):null,jsxs(he.Item,{title:$.title,disabled:A,className:p(R.slots.menuItem,Et(R,$.tone),j&&"bg-accent text-accent-foreground",w?.menuItem),style:R.styles.menuItem,onSelect:()=>{A||($.onAction?.(C),X?.(C));},children:[$.icon?jsx("span",{className:R.slots.menuItemIcon,children:$.icon}):null,jsx("span",{className:R.slots.menuItemLabel,children:$.label})]}),$.separatorAfter?jsx(he.Separator,{className:R.slots.menuSeparator}):null]},$.id)})})})]})},"renderActions"),st=r((k,oe)=>{k.preventDefault();let De=ee||k.dataTransfer.getData("application/x-data-explorer-node");if(!De||De===oe.id||!Y){ae(void 0),ie(void 0);return}let Re=z.get(De),$=z.get(oe.id);if(!Re||!$){ae(void 0),ie(void 0);return}let C=Re.parentId===$.parentId&&Re.group?.id===$.group?.id;if(v==="same-parent"&&!C){ae(void 0),ie(void 0);return}let A={activeNode:Re.node,overNode:$.node,activeGroup:Re.group,overGroup:$.group,activeParentId:Re.parentId,overParentId:$.parentId,oldIndex:Re.index,newIndex:$.index,sameParent:C,context:o};Y(A),ae(void 0),ie(void 0);},"handleDrop"),V=r((k,oe,De)=>{let Re=Array.isArray(k.children)?k.children:[],$=Re.length>0,C=k.collapsible===false||q.has(k.id),A=n===k.id,j=k.selectable!==false&&!k.disabled,ye=v!=="none"&&!!Y&&k.reorderable!==false,Te=ee===k.id,We=se===k.id&&ee!==k.id,Rt=ud(k,g),Ht=r(()=>$?jsx("button",{type:"button",className:p(R.slots.treeNodeToggle,w?.nodeToggle,w?.expander),"aria-label":C?te:G,"aria-expanded":C,onClick:ke=>{ke.stopPropagation(),ue(k.id,!C);},children:jsx(qn,{expanded:C})}):h==="start"?jsx("span",{className:p(R.slots.treeNodeToggle,w?.nodeToggle)}):null,"renderExpander");return jsxs("div",{"data-data-explorer-entry":"node","data-data-explorer-node-id":k.id,"data-data-explorer-group-id":oe?.id,className:p(R.slots.treeNode,w?.node,w?.item,k.className),onDragOver:ke=>{!ee||!ye||(ke.preventDefault(),ie(k.id));},onDragLeave:()=>{se===k.id&&ie(void 0);},onDrop:ke=>st(ke,k),children:[jsxs("div",{className:p(R.slots.treeNodeButton,h==="end"&&"pr-2",A&&R.slots.treeNodeSelected,k.disabled&&R.slots.treeNodeDisabled,Te&&R.slots.treeNodeDragging,We&&"ring-1 ring-primary/30",A&&w?.itemSelected,A&&w?.nodeSelected,k.disabled&&w?.nodeDisabled,Te&&w?.nodeDragging,w?.nodeButton,w?.itemButton),style:{paddingLeft:`calc(${(k.indentLevel??De)*x+P}px + var(--data-explorer-tree-group-indent, 0px) + var(--data-explorer-tree-leading-extra, 0px))`},role:"treeitem","aria-selected":A||void 0,"aria-disabled":k.disabled||void 0,"aria-expanded":$?C:void 0,"aria-label":k.ariaLabel,tabIndex:j?0:-1,onContextMenu:ke=>{!I||k.disabled||!Rt.some(so=>fe(so.visible,Pe(so,{type:"node",node:k,group:oe}))!==false)||(ke.preventDefault(),ke.stopPropagation(),F(JSON.stringify(["node",k.id])));},onClick:()=>{j&&L?.(k,o);},onKeyDown:ke=>{ke.target===ke.currentTarget&&j&&(ke.key!=="Enter"&&ke.key!==" "||(ke.preventDefault(),L?.(k,o)));},children:[ye?jsx("span",{draggable:true,className:p(R.slots.treeNodeDragHandle,w?.nodeDragHandle),onClick:ke=>ke.stopPropagation(),onDragStart:ke=>{ke.stopPropagation(),ke.dataTransfer.effectAllowed="move",ke.dataTransfer.setData("application/x-data-explorer-node",k.id),ae(k.id);},onDragEnd:()=>{ae(void 0),ie(void 0);},children:jsx(ld,{})}):null,h==="start"?Ht():null,k.icon?jsx("span",{className:p(R.slots.treeNodeIcon,w?.nodeIcon,w?.itemIcon),children:k.icon}):null,jsxs("span",{className:"flex min-w-0 flex-1 flex-col",children:[jsx("span",{className:p(R.slots.treeNodeLabel,w?.nodeLabel,w?.itemLabel),children:k.label}),k.description?jsx("span",{className:p(R.slots.treeNodeDescription,w?.nodeDescription),children:k.description}):null]}),k.meta?jsx("span",{className:p(R.slots.treeNodeMeta,w?.nodeMeta),children:k.meta}):null,k.badge?jsx("span",{className:p(R.slots.treeNodeBadge,w?.nodeBadge),children:k.badge}):null,h==="end"?Ht():null,Oe(Rt,{type:"node",node:k,group:oe})]}),$&&C?jsx("div",{className:p(R.slots.treeNodeChildren,w?.nodeChildren,w?.list),children:Re.map(ke=>V(ke,oe,De+1))}):null]},k.id)},"renderNode"),xe=r((k,oe,De)=>k===false?null:jsx("div",{className:p(oe,De),children:k}),"renderPlaceholder");if(S)return jsx("div",{className:p(R.slots.treeRoot,w?.root,T),children:xe(K,R.slots.treeLoading,w?.loading)});if(f)return jsx("div",{className:p(R.slots.treeRoot,w?.root,T),children:xe(f??N?.error,R.slots.treeError,w?.error)});let tt=M.some(k=>(k.nodes??[]).length>0),Ho=M.some(k=>k.status==="loading"||k.error);return !tt&&!Ho&&(!be||M.length===0)?jsx("div",{className:p(R.slots.treeRoot,w?.root,T),children:xe(Q,R.slots.treeEmpty,w?.empty)}):jsx("div",{className:p(R.slots.treeRoot,w?.root,T),role:tt||M.some(k=>!k.hideHeader)?"tree":void 0,children:M.map(k=>{let oe=k.hideHeader||k.collapsible===false||ge.has(k.id),De=k.nodes?.length??0,Re=cd(k,c),$=i===k.id,C=k.collapsible!==false;return jsxs("section",{"data-data-explorer-entry":"group","data-data-explorer-group-id":k.id,className:p(R.slots.treeGroup,w?.group,k.className),children:[k.hideHeader?null:jsxs("div",{role:"treeitem","aria-label":typeof k.label=="string"?k.label:void 0,"aria-selected":k.selectable?$:void 0,"aria-expanded":C?oe:void 0,onContextMenu:A=>{!I||!Re.some(j=>fe(j.visible,Pe(j,{type:"group",group:k}))!==false)||(A.preventDefault(),A.stopPropagation(),F(JSON.stringify(["group",k.id])));},className:p(R.slots.treeGroupHeader,R.slots.treeGroupHeaderButton,$&&R.slots.treeNodeSelected,w?.groupHeader,w?.groupHeaderButton,$&&w?.itemSelected),children:[jsxs("button",{type:"button",className:p("flex min-w-0 flex-1 items-center gap-2 text-left outline-hidden focus-visible:ring-2 focus-visible:ring-ring",w?.groupLabel),"aria-pressed":k.selectable?$:void 0,"aria-expanded":!k.selectable&&C?oe:void 0,onClick:()=>{if(k.selectable){O?.(k,o);return}C&&Ce(k.id,!oe);},children:[k.icon?jsx("span",{className:p(R.slots.treeNodeIcon,w?.nodeIcon,w?.itemIcon),children:k.icon}):null,jsxs("span",{className:"flex min-w-0 flex-1 flex-col",children:[k.label?jsx("span",{className:p(R.slots.treeNodeLabel,w?.nodeLabel,w?.itemLabel),children:k.label}):null,k.description?jsx("span",{className:p(R.slots.treeNodeDescription,w?.nodeDescription),children:k.description}):null]}),k.meta?jsx("span",{className:p(R.slots.treeNodeMeta,w?.nodeMeta),children:k.meta}):null,k.badge?jsx("span",{className:p(R.slots.treeNodeBadge,w?.nodeBadge),children:k.badge}):null]}),C?jsx("button",{type:"button",className:p(R.slots.treeNodeToggle,w?.expander),"aria-label":oe?te:G,"aria-expanded":oe,onClick:()=>Ce(k.id,!oe),children:jsx(qn,{expanded:oe})}):jsx("span",{className:p(R.slots.treeNodeToggle,w?.expander)}),Oe(Re,{type:"group",group:k})]}),oe?jsx("div",{role:"group",className:p(R.slots.treeGroupContent,w?.groupContent,w?.list),children:k.loading||k.status==="loading"?xe(K,R.slots.treeLoading,w?.loading):k.error||k.status==="error"?xe(k.error??N?.error??_.error,R.slots.treeError,w?.error):De>0?k.nodes?.map(A=>V(A,k,0)):xe(k.empty??Q,R.slots.treeEmpty,w?.empty)}):null]},k.id)})})}r(pd,"DataExplorerViewTree");function md(e,t,o){let n=e.filter(i=>!i.hidden);if(n.length!==0){if(t){let i=n.find(s=>s.id===t);if(i)return i}if(o){let i=n.find(s=>s.id===o);if(i)return i}return n[0]}}r(md,"resolveActiveViewDefinition");function fd({items:e,views:t=[],activeViewId:o,fallbackViewId:n,context:i,capabilities:s,className:d,classNames:l,empty:u,loading:m,loadingNode:g,footer:c,overlay:x,layout:P,collection:h,selectedIds:I=[],getItemId:b,itemDefinition:y,renderItem:S,onOpenItem:D,onSelectionChange:f}){let N=Array.isArray(e)?e:[],v=md(t,o,n),E=v?.id??o??n??"",T=h||v?.collection?{...h,...v?.collection,classNames:{...h?.classNames,...v?.collection?.classNames}}:void 0,w=v?.layout??v?.collection?.layout??P??h?.layout,L=v?.collection?.loading??h?.loading??m,O=v?.collection?.loadingNode??h?.loadingNode??g,H=v?.collection?.footer??h?.footer??c,B=v?.collection?.overlay??h?.overlay??x,X=typeof v?.empty=="function"?v.empty({items:N,activeViewId:E,context:i,capabilities:s,className:d,empty:u,loading:m,loadingNode:g,footer:c,overlay:x,layout:P,collection:T,selectedIds:I,getItemId:b,itemDefinition:y,renderItem:S,onOpenItem:D,onSelectionChange:f}):v?.empty??u,Y={items:N,activeViewId:E,context:i,capabilities:s,className:d,empty:X,loading:L,loadingNode:O,footer:H,overlay:B,layout:w,collection:T,selectedIds:I,getItemId:b,itemDefinition:v?.itemDefinition??y,renderItem:v?.renderItem??S,onOpenItem:D,onSelectionChange:f};return v?.render?jsx(Fragment,{children:v.render(Y)}):jsx(to,{items:N,activeViewId:E,context:i,capabilities:s,className:T?.className??d,classNames:{...l,...T?.classNames},empty:X,loading:Y.loading,loadingNode:Y.loadingNode,footer:Y.footer,overlay:Y.overlay,layout:Y.layout,scrollable:T?.scrollable,wrapItems:T?.wrapItems,measuredGrid:T?.measuredGrid,itemsStyle:T?.itemsStyle,itemStyle:T?.itemStyle,selectedIds:I,getItemId:b,itemDefinition:Y.itemDefinition,renderItem:Y.renderItem,getItemClassName:v?.getItemClassName,onOpenItem:D,onSelectionChange:f})}r(fd,"DataExplorerView");function bd({header:e,footer:t,overlay:o,empty:n,isEmpty:i=false,children:s,className:d,classNames:l}){return jsxs("section",{className:a("relative flex min-h-0 flex-1 flex-col overflow-hidden",l?.root,d),children:[e?jsx("div",{className:a("shrink-0",l?.header),children:e}):null,jsx("div",{className:a("flex min-h-0 flex-1 flex-col overflow-hidden",l?.body),children:i&&n?jsx("div",{className:a("flex h-full items-center justify-center p-6 text-sm text-muted-foreground",l?.empty),children:n}):s}),t?jsx("div",{className:a("shrink-0",l?.footer),children:t}):null,o?jsx("div",{className:a("absolute inset-0",l?.overlay),children:o}):null]})}r(bd,"DataExplorerViewShell");
24
24
 
25
25
  export { Ea as DataExplorerActionBar, _t as DataExplorerButton, _o as DataExplorerCheckbox, ji as DataExplorerCollectionFooter, tr as DataExplorerDetailField, or as DataExplorerDetailSection, Ji as DataExplorerDetailShell, ar as DataExplorerDisplayActionMenu, Lt as DataExplorerDisplayCard, sl as DataExplorerDisplayCollectionView, ur as DataExplorerDisplayListItem, Qt as DataExplorerDisplayMedia, Vs as DataExplorerDraggableTree, Ui as DataExplorerFilterBar, Tl as DataExplorerImagePreview, Nl as DataExplorerMediaPreview, Ll as DataExplorerPage, Vl as DataExplorerRecordCard, Xl as DataExplorerRecordPicker, Vo as DataExplorerSelect, Xi as DataExplorerSplitButton, vt as DataExplorerToolbarActions, od as DataExplorerToolbarShell, nd as DataExplorerTree, ad as DataExplorerTreeShell, ed as DataExplorerUploadSurface, fd as DataExplorerView, to as DataExplorerViewCollection, lr as DataExplorerViewItem, sr as DataExplorerViewItemShell, bd as DataExplorerViewShell, pd as DataExplorerViewTree, wt as getDataExplorerActionToneClassName, Et as getDataExplorerMenuItemToneClassName, le as resolveDataExplorerAppearance };
26
26
  //# sourceMappingURL=index.mjs.map