@leonardaustin/ui 0.24.0 → 0.25.0

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 (328) hide show
  1. package/README.md +172 -2
  2. package/dist/components/app-shell/AppShell.d.ts +0 -1
  3. package/dist/components/app-shell/AuthLayout.d.ts +0 -1
  4. package/dist/components/app-shell/BackLink.d.ts +0 -1
  5. package/dist/components/app-shell/BottomNav.d.ts +0 -1
  6. package/dist/components/app-shell/Breadcrumbs.d.ts +0 -1
  7. package/dist/components/app-shell/CommandPalette.d.ts +0 -1
  8. package/dist/components/app-shell/MobileDrawer.d.ts +0 -1
  9. package/dist/components/app-shell/Sidebar.d.ts +0 -1
  10. package/dist/components/app-shell/ThemeMenu.d.ts +0 -1
  11. package/dist/components/app-shell/TopBar.d.ts +0 -1
  12. package/dist/components/app-shell/commandPaletteEvents.d.ts +0 -1
  13. package/dist/components/app-shell/navigation.d.ts +0 -1
  14. package/dist/components/app-shell/themeMenuEvents.d.ts +0 -1
  15. package/dist/components/app-shell/types.d.ts +0 -1
  16. package/dist/components/charts/AreaChart.d.ts +0 -1
  17. package/dist/components/charts/BarChart.d.ts +0 -1
  18. package/dist/components/charts/DonutChart.d.ts +0 -1
  19. package/dist/components/charts/RadarChart.d.ts +0 -1
  20. package/dist/components/charts/RadialBarChart.d.ts +0 -1
  21. package/dist/components/charts/SparkLine.d.ts +0 -1
  22. package/dist/components/charts/StackedBarChart.d.ts +0 -1
  23. package/dist/components/charts/VerticalBarChart.d.ts +0 -1
  24. package/dist/components/charts/chartUtils.d.ts +0 -1
  25. package/dist/components/tables/ColumnPicker.d.ts +1 -2
  26. package/dist/components/tables/Pagination.d.ts +1 -3
  27. package/dist/components/tables/ResourceTable.d.ts +0 -1
  28. package/dist/components/tables/Table.d.ts +0 -1
  29. package/dist/components/tables/sortRows.d.ts +0 -1
  30. package/dist/components/ui/Accordion.d.ts +7 -1
  31. package/dist/components/ui/Alert.d.ts +6 -5
  32. package/dist/components/ui/AttachmentList.d.ts +0 -1
  33. package/dist/components/ui/AudioPlayer.d.ts +2 -2
  34. package/dist/components/ui/AuthCard.d.ts +0 -1
  35. package/dist/components/ui/AuthorByline.d.ts +3 -4
  36. package/dist/components/ui/Avatar.d.ts +2 -2
  37. package/dist/components/ui/Badge.d.ts +0 -1
  38. package/dist/components/ui/Button.d.ts +6 -6
  39. package/dist/components/ui/Calendar.d.ts +0 -1
  40. package/dist/components/ui/CalendarGrid.d.ts +1 -3
  41. package/dist/components/ui/Card.d.ts +0 -1
  42. package/dist/components/ui/CharacterCount.d.ts +0 -1
  43. package/dist/components/ui/Checkbox.d.ts +0 -1
  44. package/dist/components/ui/CodeInput.d.ts +0 -1
  45. package/dist/components/ui/Combobox.d.ts +0 -1
  46. package/dist/components/ui/CopyButton.d.ts +5 -1
  47. package/dist/components/ui/DangerZone.d.ts +1 -3
  48. package/dist/components/ui/DatePartsInput.d.ts +0 -1
  49. package/dist/components/ui/DatePicker.d.ts +0 -1
  50. package/dist/components/ui/DateRangePicker.d.ts +1 -3
  51. package/dist/components/ui/DateTimePicker.d.ts +0 -1
  52. package/dist/components/ui/DetailPanel.d.ts +0 -1
  53. package/dist/components/ui/Dialog.d.ts +0 -1
  54. package/dist/components/ui/DialogActions.d.ts +0 -1
  55. package/dist/components/ui/Disclosure.d.ts +4 -1
  56. package/dist/components/ui/DividerLabel.d.ts +0 -1
  57. package/dist/components/ui/DropdownMenu.d.ts +1 -2
  58. package/dist/components/ui/EmptyState.d.ts +1 -3
  59. package/dist/components/ui/ErrorBoundary.d.ts +3 -3
  60. package/dist/components/ui/FieldContext.d.ts +0 -1
  61. package/dist/components/ui/Fieldset.d.ts +0 -1
  62. package/dist/components/ui/FilterButton.d.ts +1 -3
  63. package/dist/components/ui/FilterDropdown.d.ts +1 -3
  64. package/dist/components/ui/FormField.d.ts +0 -1
  65. package/dist/components/ui/Grid.d.ts +0 -1
  66. package/dist/components/ui/GridItem.d.ts +0 -1
  67. package/dist/components/ui/Inline.d.ts +0 -1
  68. package/dist/components/ui/Kbd.d.ts +1 -3
  69. package/dist/components/ui/ListItemLink.d.ts +0 -1
  70. package/dist/components/ui/LoadingSpinner.d.ts +3 -4
  71. package/dist/components/ui/MessageBubble.d.ts +3 -1
  72. package/dist/components/ui/MetadataGrid.d.ts +1 -2
  73. package/dist/components/ui/MetricCard.d.ts +0 -1
  74. package/dist/components/ui/NavTabs.d.ts +0 -1
  75. package/dist/components/ui/OAuthButton.d.ts +0 -1
  76. package/dist/components/ui/OverlineLabel.d.ts +0 -1
  77. package/dist/components/ui/PageHeader.d.ts +0 -1
  78. package/dist/components/ui/PageSection.d.ts +0 -1
  79. package/dist/components/ui/PaginationBar.d.ts +0 -1
  80. package/dist/components/ui/PasswordInput.d.ts +1 -3
  81. package/dist/components/ui/PasswordRequirements.d.ts +0 -1
  82. package/dist/components/ui/Popover.d.ts +2 -1
  83. package/dist/components/ui/ProfileHeader.d.ts +1 -2
  84. package/dist/components/ui/ProgressBar.d.ts +0 -1
  85. package/dist/components/ui/ProseContent.d.ts +0 -1
  86. package/dist/components/ui/QrCode.d.ts +0 -1
  87. package/dist/components/ui/Radio.d.ts +0 -1
  88. package/dist/components/ui/RadioPill.d.ts +4 -5
  89. package/dist/components/ui/ReorderList.d.ts +0 -1
  90. package/dist/components/ui/SearchInput.d.ts +0 -1
  91. package/dist/components/ui/SectionHeader.d.ts +1 -3
  92. package/dist/components/ui/Select.d.ts +1 -3
  93. package/dist/components/ui/SelectDropdown.d.ts +3 -4
  94. package/dist/components/ui/SettingRow.d.ts +1 -3
  95. package/dist/components/ui/SideSheet.d.ts +0 -1
  96. package/dist/components/ui/Skeleton.d.ts +0 -1
  97. package/dist/components/ui/Slider.d.ts +0 -1
  98. package/dist/components/ui/SplitPaneLayout.d.ts +4 -4
  99. package/dist/components/ui/Stack.d.ts +0 -1
  100. package/dist/components/ui/StatusDot.d.ts +1 -2
  101. package/dist/components/ui/StepProgress.d.ts +0 -1
  102. package/dist/components/ui/Tabs.d.ts +0 -1
  103. package/dist/components/ui/TextInput.d.ts +1 -3
  104. package/dist/components/ui/Textarea.d.ts +1 -3
  105. package/dist/components/ui/ThemePreview.d.ts +0 -1
  106. package/dist/components/ui/TimeInput.d.ts +0 -1
  107. package/dist/components/ui/Timeline.d.ts +1 -2
  108. package/dist/components/ui/Toast.d.ts +0 -1
  109. package/dist/components/ui/Toggle.d.ts +6 -3
  110. package/dist/components/ui/Toolbar.d.ts +0 -1
  111. package/dist/components/ui/Tooltip.d.ts +0 -1
  112. package/dist/components/ui/TranscriptLine.d.ts +2 -1
  113. package/dist/components/ui/UploadDropzone.d.ts +0 -1
  114. package/dist/components/ui/badgeColors.d.ts +0 -1
  115. package/dist/components/ui/calendar/AgendaView.d.ts +0 -1
  116. package/dist/components/ui/calendar/MonthView.d.ts +0 -1
  117. package/dist/components/ui/calendar/TimeGrid.d.ts +0 -1
  118. package/dist/components/ui/calendar/TimelineView.d.ts +0 -1
  119. package/dist/components/ui/calendar/context.d.ts +0 -1
  120. package/dist/components/ui/calendar/items.d.ts +0 -1
  121. package/dist/components/ui/calendar/types.d.ts +0 -1
  122. package/dist/components/ui/calendar/useGridInteraction.d.ts +0 -1
  123. package/dist/components/ui/useFieldControl.d.ts +0 -1
  124. package/dist/config/theme.d.ts +0 -1
  125. package/dist/hooks/useAnchoredPopup.d.ts +0 -1
  126. package/dist/hooks/useApplyTheme.d.ts +0 -1
  127. package/dist/hooks/useDismiss.d.ts +0 -1
  128. package/dist/hooks/useFocusTrap.d.ts +0 -1
  129. package/dist/hooks/useOverlayStack.d.ts +0 -1
  130. package/dist/hooks/usePopover.d.ts +0 -1
  131. package/dist/hooks/usePortalContainer.d.ts +0 -1
  132. package/dist/hooks/useSettings.d.ts +0 -1
  133. package/dist/hooks/useTheme.d.ts +0 -1
  134. package/dist/hooks/useTypeahead.d.ts +0 -1
  135. package/dist/index.d.ts +0 -1
  136. package/dist/index.js +792 -774
  137. package/dist/lib/anchorPlacement.d.ts +0 -1
  138. package/dist/lib/calendar.d.ts +0 -1
  139. package/dist/lib/cn.d.ts +0 -1
  140. package/dist/lib/codeInput.d.ts +0 -1
  141. package/dist/lib/dateParts.d.ts +0 -1
  142. package/dist/lib/dialogDrag.d.ts +0 -1
  143. package/dist/lib/dialogResize.d.ts +0 -1
  144. package/dist/lib/formatDate.d.ts +0 -1
  145. package/dist/lib/formatMediaTime.d.ts +0 -1
  146. package/dist/lib/keyboardStep.d.ts +0 -1
  147. package/dist/lib/layout.d.ts +0 -1
  148. package/dist/lib/math.d.ts +0 -1
  149. package/dist/lib/months.d.ts +0 -1
  150. package/dist/lib/overlayStack.d.ts +0 -1
  151. package/dist/lib/panelResize.d.ts +0 -1
  152. package/dist/lib/passwordRequirements.d.ts +0 -1
  153. package/dist/lib/qrCode.d.ts +0 -1
  154. package/dist/lib/rect.d.ts +0 -1
  155. package/dist/lib/tones.d.ts +0 -1
  156. package/dist/lib/typeahead.d.ts +0 -1
  157. package/dist/providers/ControlSizeContext.d.ts +0 -1
  158. package/dist/providers/ControlSizeProvider.d.ts +0 -1
  159. package/dist/providers/SettingsContext.d.ts +0 -1
  160. package/dist/providers/SettingsProvider.d.ts +0 -1
  161. package/dist/providers/ThemeContext.d.ts +0 -1
  162. package/dist/providers/ThemeProvider.d.ts +0 -1
  163. package/dist/providers/accentColors.d.ts +0 -1
  164. package/dist/providers/themeClasses.d.ts +0 -1
  165. package/dist/styles.css +35 -0
  166. package/package.json +1 -1
  167. package/dist/components/app-shell/AppShell.d.ts.map +0 -1
  168. package/dist/components/app-shell/AuthLayout.d.ts.map +0 -1
  169. package/dist/components/app-shell/BackLink.d.ts.map +0 -1
  170. package/dist/components/app-shell/BottomNav.d.ts.map +0 -1
  171. package/dist/components/app-shell/Breadcrumbs.d.ts.map +0 -1
  172. package/dist/components/app-shell/CommandPalette.d.ts.map +0 -1
  173. package/dist/components/app-shell/MobileDrawer.d.ts.map +0 -1
  174. package/dist/components/app-shell/Sidebar.d.ts.map +0 -1
  175. package/dist/components/app-shell/ThemeMenu.d.ts.map +0 -1
  176. package/dist/components/app-shell/TopBar.d.ts.map +0 -1
  177. package/dist/components/app-shell/commandPaletteEvents.d.ts.map +0 -1
  178. package/dist/components/app-shell/navigation.d.ts.map +0 -1
  179. package/dist/components/app-shell/themeMenuEvents.d.ts.map +0 -1
  180. package/dist/components/app-shell/types.d.ts.map +0 -1
  181. package/dist/components/charts/AreaChart.d.ts.map +0 -1
  182. package/dist/components/charts/BarChart.d.ts.map +0 -1
  183. package/dist/components/charts/DonutChart.d.ts.map +0 -1
  184. package/dist/components/charts/RadarChart.d.ts.map +0 -1
  185. package/dist/components/charts/RadialBarChart.d.ts.map +0 -1
  186. package/dist/components/charts/SparkLine.d.ts.map +0 -1
  187. package/dist/components/charts/StackedBarChart.d.ts.map +0 -1
  188. package/dist/components/charts/VerticalBarChart.d.ts.map +0 -1
  189. package/dist/components/charts/chartUtils.d.ts.map +0 -1
  190. package/dist/components/tables/ColumnPicker.d.ts.map +0 -1
  191. package/dist/components/tables/Pagination.d.ts.map +0 -1
  192. package/dist/components/tables/ResourceTable.d.ts.map +0 -1
  193. package/dist/components/tables/Table.d.ts.map +0 -1
  194. package/dist/components/tables/sortRows.d.ts.map +0 -1
  195. package/dist/components/ui/Accordion.d.ts.map +0 -1
  196. package/dist/components/ui/Alert.d.ts.map +0 -1
  197. package/dist/components/ui/AttachmentList.d.ts.map +0 -1
  198. package/dist/components/ui/AudioPlayer.d.ts.map +0 -1
  199. package/dist/components/ui/AuthCard.d.ts.map +0 -1
  200. package/dist/components/ui/AuthorByline.d.ts.map +0 -1
  201. package/dist/components/ui/Avatar.d.ts.map +0 -1
  202. package/dist/components/ui/Badge.d.ts.map +0 -1
  203. package/dist/components/ui/Button.d.ts.map +0 -1
  204. package/dist/components/ui/Calendar.d.ts.map +0 -1
  205. package/dist/components/ui/CalendarGrid.d.ts.map +0 -1
  206. package/dist/components/ui/Card.d.ts.map +0 -1
  207. package/dist/components/ui/CharacterCount.d.ts.map +0 -1
  208. package/dist/components/ui/Checkbox.d.ts.map +0 -1
  209. package/dist/components/ui/CodeInput.d.ts.map +0 -1
  210. package/dist/components/ui/Combobox.d.ts.map +0 -1
  211. package/dist/components/ui/CopyButton.d.ts.map +0 -1
  212. package/dist/components/ui/DangerZone.d.ts.map +0 -1
  213. package/dist/components/ui/DatePartsInput.d.ts.map +0 -1
  214. package/dist/components/ui/DatePicker.d.ts.map +0 -1
  215. package/dist/components/ui/DateRangePicker.d.ts.map +0 -1
  216. package/dist/components/ui/DateTimePicker.d.ts.map +0 -1
  217. package/dist/components/ui/DetailPanel.d.ts.map +0 -1
  218. package/dist/components/ui/Dialog.d.ts.map +0 -1
  219. package/dist/components/ui/DialogActions.d.ts.map +0 -1
  220. package/dist/components/ui/Disclosure.d.ts.map +0 -1
  221. package/dist/components/ui/DividerLabel.d.ts.map +0 -1
  222. package/dist/components/ui/DropdownMenu.d.ts.map +0 -1
  223. package/dist/components/ui/EmptyState.d.ts.map +0 -1
  224. package/dist/components/ui/ErrorBoundary.d.ts.map +0 -1
  225. package/dist/components/ui/FieldContext.d.ts.map +0 -1
  226. package/dist/components/ui/Fieldset.d.ts.map +0 -1
  227. package/dist/components/ui/FilterButton.d.ts.map +0 -1
  228. package/dist/components/ui/FilterDropdown.d.ts.map +0 -1
  229. package/dist/components/ui/FormField.d.ts.map +0 -1
  230. package/dist/components/ui/Grid.d.ts.map +0 -1
  231. package/dist/components/ui/GridItem.d.ts.map +0 -1
  232. package/dist/components/ui/Inline.d.ts.map +0 -1
  233. package/dist/components/ui/Kbd.d.ts.map +0 -1
  234. package/dist/components/ui/ListItemLink.d.ts.map +0 -1
  235. package/dist/components/ui/LoadingSpinner.d.ts.map +0 -1
  236. package/dist/components/ui/MessageBubble.d.ts.map +0 -1
  237. package/dist/components/ui/MetadataGrid.d.ts.map +0 -1
  238. package/dist/components/ui/MetricCard.d.ts.map +0 -1
  239. package/dist/components/ui/NavTabs.d.ts.map +0 -1
  240. package/dist/components/ui/OAuthButton.d.ts.map +0 -1
  241. package/dist/components/ui/OverlineLabel.d.ts.map +0 -1
  242. package/dist/components/ui/PageHeader.d.ts.map +0 -1
  243. package/dist/components/ui/PageSection.d.ts.map +0 -1
  244. package/dist/components/ui/PaginationBar.d.ts.map +0 -1
  245. package/dist/components/ui/PasswordInput.d.ts.map +0 -1
  246. package/dist/components/ui/PasswordRequirements.d.ts.map +0 -1
  247. package/dist/components/ui/Popover.d.ts.map +0 -1
  248. package/dist/components/ui/ProfileHeader.d.ts.map +0 -1
  249. package/dist/components/ui/ProgressBar.d.ts.map +0 -1
  250. package/dist/components/ui/ProseContent.d.ts.map +0 -1
  251. package/dist/components/ui/QrCode.d.ts.map +0 -1
  252. package/dist/components/ui/Radio.d.ts.map +0 -1
  253. package/dist/components/ui/RadioPill.d.ts.map +0 -1
  254. package/dist/components/ui/ReorderList.d.ts.map +0 -1
  255. package/dist/components/ui/SearchInput.d.ts.map +0 -1
  256. package/dist/components/ui/SectionHeader.d.ts.map +0 -1
  257. package/dist/components/ui/Select.d.ts.map +0 -1
  258. package/dist/components/ui/SelectDropdown.d.ts.map +0 -1
  259. package/dist/components/ui/SettingRow.d.ts.map +0 -1
  260. package/dist/components/ui/SideSheet.d.ts.map +0 -1
  261. package/dist/components/ui/Skeleton.d.ts.map +0 -1
  262. package/dist/components/ui/Slider.d.ts.map +0 -1
  263. package/dist/components/ui/SplitPaneLayout.d.ts.map +0 -1
  264. package/dist/components/ui/Stack.d.ts.map +0 -1
  265. package/dist/components/ui/StatusDot.d.ts.map +0 -1
  266. package/dist/components/ui/StepProgress.d.ts.map +0 -1
  267. package/dist/components/ui/Tabs.d.ts.map +0 -1
  268. package/dist/components/ui/TextInput.d.ts.map +0 -1
  269. package/dist/components/ui/Textarea.d.ts.map +0 -1
  270. package/dist/components/ui/ThemePreview.d.ts.map +0 -1
  271. package/dist/components/ui/TimeInput.d.ts.map +0 -1
  272. package/dist/components/ui/Timeline.d.ts.map +0 -1
  273. package/dist/components/ui/Toast.d.ts.map +0 -1
  274. package/dist/components/ui/Toggle.d.ts.map +0 -1
  275. package/dist/components/ui/Toolbar.d.ts.map +0 -1
  276. package/dist/components/ui/Tooltip.d.ts.map +0 -1
  277. package/dist/components/ui/TranscriptLine.d.ts.map +0 -1
  278. package/dist/components/ui/UploadDropzone.d.ts.map +0 -1
  279. package/dist/components/ui/badgeColors.d.ts.map +0 -1
  280. package/dist/components/ui/calendar/AgendaView.d.ts.map +0 -1
  281. package/dist/components/ui/calendar/MonthView.d.ts.map +0 -1
  282. package/dist/components/ui/calendar/TimeGrid.d.ts.map +0 -1
  283. package/dist/components/ui/calendar/TimelineView.d.ts.map +0 -1
  284. package/dist/components/ui/calendar/context.d.ts.map +0 -1
  285. package/dist/components/ui/calendar/items.d.ts.map +0 -1
  286. package/dist/components/ui/calendar/types.d.ts.map +0 -1
  287. package/dist/components/ui/calendar/useGridInteraction.d.ts.map +0 -1
  288. package/dist/components/ui/useFieldControl.d.ts.map +0 -1
  289. package/dist/config/theme.d.ts.map +0 -1
  290. package/dist/hooks/useAnchoredPopup.d.ts.map +0 -1
  291. package/dist/hooks/useApplyTheme.d.ts.map +0 -1
  292. package/dist/hooks/useDismiss.d.ts.map +0 -1
  293. package/dist/hooks/useFocusTrap.d.ts.map +0 -1
  294. package/dist/hooks/useOverlayStack.d.ts.map +0 -1
  295. package/dist/hooks/usePopover.d.ts.map +0 -1
  296. package/dist/hooks/usePortalContainer.d.ts.map +0 -1
  297. package/dist/hooks/useSettings.d.ts.map +0 -1
  298. package/dist/hooks/useTheme.d.ts.map +0 -1
  299. package/dist/hooks/useTypeahead.d.ts.map +0 -1
  300. package/dist/index.d.ts.map +0 -1
  301. package/dist/lib/anchorPlacement.d.ts.map +0 -1
  302. package/dist/lib/calendar.d.ts.map +0 -1
  303. package/dist/lib/cn.d.ts.map +0 -1
  304. package/dist/lib/codeInput.d.ts.map +0 -1
  305. package/dist/lib/dateParts.d.ts.map +0 -1
  306. package/dist/lib/dialogDrag.d.ts.map +0 -1
  307. package/dist/lib/dialogResize.d.ts.map +0 -1
  308. package/dist/lib/formatDate.d.ts.map +0 -1
  309. package/dist/lib/formatMediaTime.d.ts.map +0 -1
  310. package/dist/lib/keyboardStep.d.ts.map +0 -1
  311. package/dist/lib/layout.d.ts.map +0 -1
  312. package/dist/lib/math.d.ts.map +0 -1
  313. package/dist/lib/months.d.ts.map +0 -1
  314. package/dist/lib/overlayStack.d.ts.map +0 -1
  315. package/dist/lib/panelResize.d.ts.map +0 -1
  316. package/dist/lib/passwordRequirements.d.ts.map +0 -1
  317. package/dist/lib/qrCode.d.ts.map +0 -1
  318. package/dist/lib/rect.d.ts.map +0 -1
  319. package/dist/lib/tones.d.ts.map +0 -1
  320. package/dist/lib/typeahead.d.ts.map +0 -1
  321. package/dist/providers/ControlSizeContext.d.ts.map +0 -1
  322. package/dist/providers/ControlSizeProvider.d.ts.map +0 -1
  323. package/dist/providers/SettingsContext.d.ts.map +0 -1
  324. package/dist/providers/SettingsProvider.d.ts.map +0 -1
  325. package/dist/providers/ThemeContext.d.ts.map +0 -1
  326. package/dist/providers/ThemeProvider.d.ts.map +0 -1
  327. package/dist/providers/accentColors.d.ts.map +0 -1
  328. package/dist/providers/themeClasses.d.ts.map +0 -1
package/dist/index.js CHANGED
@@ -1724,6 +1724,9 @@ function zt({ items: e, eventName: t = Pt, shortcut: n = Ft, placeholder: r = "S
1724
1724
  onClick: () => d(!1)
1725
1725
  }), /* @__PURE__ */ y("div", {
1726
1726
  ref: x,
1727
+ role: "dialog",
1728
+ "aria-modal": "true",
1729
+ "aria-label": "Command palette",
1727
1730
  className: "ui-glass ui-glass-popover bg-bg-secondary border-border animate-scale-in relative z-50 mx-4 w-full max-w-[520px] overflow-hidden rounded-xl border shadow-lg",
1728
1731
  onKeyDown: D,
1729
1732
  children: [/* @__PURE__ */ y("div", {
@@ -1823,6 +1826,9 @@ function Wt({ open: e, onClose: t, items: n, topBarNavItems: r = [], topBarNavLa
1823
1826
  onClick: t
1824
1827
  }), /* @__PURE__ */ y("div", {
1825
1828
  ref: f,
1829
+ role: "dialog",
1830
+ "aria-modal": "true",
1831
+ "aria-label": "Navigation",
1826
1832
  className: Y("ui-glass ui-glass-chrome bg-bg-sidebar border-border animate-slide-in-left fixed inset-y-0 left-0 z-50 flex w-64 flex-col border-r", l),
1827
1833
  children: [
1828
1834
  /* @__PURE__ */ y("div", {
@@ -3496,32 +3502,23 @@ function Cr({ label: e, active: t, icon: n, preview: r, onClick: i, className: a
3496
3502
  }
3497
3503
  //#endregion
3498
3504
  //#region src/components/ui/Toggle.tsx
3499
- function wr({ checked: e, onChange: t, disabled: n, label: r, "aria-labelledby": i, "aria-describedby": a, className: o }) {
3505
+ function wr({ checked: e, onChange: t, disabled: n, label: r, controlSize: i, onClick: a, className: o, ...s }) {
3506
+ let c = $n(i);
3500
3507
  return /* @__PURE__ */ y("label", {
3501
3508
  className: Y("flex w-fit items-center", n ? "cursor-not-allowed opacity-40" : "cursor-pointer", o),
3502
3509
  style: { gap: 10 },
3503
3510
  children: [/* @__PURE__ */ v("button", {
3511
+ ...s,
3504
3512
  type: "button",
3505
3513
  role: "switch",
3506
3514
  "aria-checked": e,
3507
- "aria-labelledby": i,
3508
- "aria-describedby": a,
3515
+ "data-control-size": c,
3509
3516
  disabled: n,
3510
- onClick: () => t(!e),
3511
- className: Y("relative shrink-0 rounded-full border transition-colors duration-[100ms]", "focus-visible:outline-accent focus-visible:outline-2 focus-visible:outline-offset-2", e ? "bg-accent border-accent" : "bg-bg-tertiary ui-switch-off", !n && "cursor-pointer"),
3512
- style: {
3513
- width: 36,
3514
- height: 20
3517
+ onClick: (n) => {
3518
+ a?.(n), n.defaultPrevented || t(!e);
3515
3519
  },
3516
- children: /* @__PURE__ */ v("span", {
3517
- className: "ui-switch-knob absolute top-1/2 rounded-full transition-[left] duration-[100ms]",
3518
- style: {
3519
- width: 14,
3520
- height: 14,
3521
- marginTop: -7,
3522
- left: e ? 19 : 3
3523
- }
3524
- })
3520
+ className: Y("ui-switch relative shrink-0 rounded-full border transition-colors duration-[100ms]", "focus-visible:outline-accent focus-visible:outline-2 focus-visible:outline-offset-2", e ? "bg-accent border-accent" : "bg-bg-tertiary ui-switch-off", !n && "cursor-pointer"),
3521
+ children: /* @__PURE__ */ v("span", { className: "ui-switch-knob absolute top-1/2 rounded-full transition-[left] duration-[100ms]" })
3525
3522
  }), r && /* @__PURE__ */ v("span", {
3526
3523
  className: "text-text-secondary text-xs",
3527
3524
  children: r
@@ -4389,45 +4386,41 @@ function $r(e) {
4389
4386
  //#endregion
4390
4387
  //#region src/components/ui/Alert.tsx
4391
4388
  var ei = {
4392
- neutral: "neutral",
4393
- success: "success",
4394
- warning: "warning",
4395
- error: "danger",
4396
- info: "info"
4397
- }, ti = {
4398
4389
  neutral: V,
4399
4390
  success: k,
4400
4391
  warning: x,
4401
- error: fe,
4392
+ danger: fe,
4402
4393
  info: V
4403
4394
  };
4404
- function ni({ type: e, title: t, children: n, dismissible: r, className: i, actions: a, toneBody: o = !1, ...s }) {
4405
- let [c, l] = g(!1);
4406
- if (c) return null;
4407
- let u = Mn(ei[e]), d = ti[e], f = e === "neutral" ? "text-text-primary" : u.text;
4395
+ function ti({ type: e, title: t, children: n, dismissible: r, onDismiss: i, className: a, actions: o, toneBody: s = !1, ...c }) {
4396
+ let [l, u] = g(!1);
4397
+ if (l) return null;
4398
+ let d = e === "error" ? "danger" : e, f = Mn(d), p = ei[d], m = d === "neutral" ? "text-text-primary" : f.text;
4408
4399
  return /* @__PURE__ */ y("div", {
4409
- ...s,
4410
- className: Y("flex gap-2.5 rounded-md border p-3", u.fill, u.border, i),
4400
+ ...c,
4401
+ className: Y("flex gap-2.5 rounded-md border p-3", f.fill, f.border, a),
4411
4402
  children: [
4412
- /* @__PURE__ */ v(d, { className: Y("mt-0.5 h-4 w-4 shrink-0", u.text) }),
4403
+ /* @__PURE__ */ v(p, { className: Y("mt-0.5 h-4 w-4 shrink-0", f.text) }),
4413
4404
  /* @__PURE__ */ y("div", {
4414
4405
  className: "min-w-0 flex-1",
4415
4406
  children: [t && /* @__PURE__ */ v("p", {
4416
- className: Y(o ? f : "text-text-primary", "mb-0.5 text-xs font-semibold"),
4407
+ className: Y(s ? m : "text-text-primary", "mb-0.5 text-xs font-semibold"),
4417
4408
  children: t
4418
4409
  }), /* @__PURE__ */ v("div", {
4419
- className: Y(o ? f : "text-text-secondary", "text-xs"),
4410
+ className: Y(s ? m : "text-text-secondary", "text-xs"),
4420
4411
  children: n
4421
4412
  })]
4422
4413
  }),
4423
- a ? /* @__PURE__ */ v("div", {
4414
+ o ? /* @__PURE__ */ v("div", {
4424
4415
  className: "shrink-0 self-center",
4425
- children: a
4416
+ children: o
4426
4417
  }) : null,
4427
4418
  r && /* @__PURE__ */ v("button", {
4428
4419
  type: "button",
4429
- onClick: () => l(!0),
4430
- className: "text-text-tertiary hover:text-text-primary flex h-5 w-5 cursor-pointer items-center justify-center rounded",
4420
+ onClick: () => {
4421
+ i ? i() : u(!0);
4422
+ },
4423
+ className: "ui-alert-dismiss text-text-tertiary hover:text-text-primary flex shrink-0 cursor-pointer items-center justify-center self-start rounded-md transition-colors duration-[100ms]",
4431
4424
  "aria-label": "Dismiss",
4432
4425
  children: /* @__PURE__ */ v(de, { className: "h-3 w-3" })
4433
4426
  })
@@ -4436,12 +4429,12 @@ function ni({ type: e, title: t, children: n, dismissible: r, className: i, acti
4436
4429
  }
4437
4430
  //#endregion
4438
4431
  //#region src/components/ui/AudioPlayer.tsx
4439
- var ri = {
4432
+ var ni = {
4440
4433
  xmlns: "http://www.w3.org/2000/svg",
4441
4434
  "aria-hidden": !0,
4442
4435
  focusable: !1
4443
- }, ii = ({ forward: e, seconds: t, size: n }) => /* @__PURE__ */ y("svg", {
4444
- ...ri,
4436
+ }, ri = ({ forward: e, seconds: t, size: n }) => /* @__PURE__ */ y("svg", {
4437
+ ...ni,
4445
4438
  viewBox: "0 0 24 24",
4446
4439
  width: n,
4447
4440
  height: n,
@@ -4464,10 +4457,10 @@ var ri = {
4464
4457
  fontFamily: "inherit",
4465
4458
  children: t
4466
4459
  })]
4467
- }), ai = {
4460
+ }), ii = {
4468
4461
  pill: {
4469
4462
  play: /* @__PURE__ */ v("svg", {
4470
- ...ri,
4463
+ ...ni,
4471
4464
  viewBox: "0 0 24 24",
4472
4465
  width: 20,
4473
4466
  height: 20,
@@ -4475,7 +4468,7 @@ var ri = {
4475
4468
  children: /* @__PURE__ */ v("path", { d: "M8 5v14l11-7z" })
4476
4469
  }),
4477
4470
  pause: /* @__PURE__ */ v("svg", {
4478
- ...ri,
4471
+ ...ni,
4479
4472
  viewBox: "0 0 24 24",
4480
4473
  width: 20,
4481
4474
  height: 20,
@@ -4483,7 +4476,7 @@ var ri = {
4483
4476
  children: /* @__PURE__ */ v("path", { d: "M6 19h4V5H6v14zm8-14v14h4V5h-4z" })
4484
4477
  }),
4485
4478
  volume: /* @__PURE__ */ v("svg", {
4486
- ...ri,
4479
+ ...ni,
4487
4480
  viewBox: "0 0 24 24",
4488
4481
  width: 20,
4489
4482
  height: 20,
@@ -4491,7 +4484,7 @@ var ri = {
4491
4484
  children: /* @__PURE__ */ v("path", { d: "M3 9v6h4l5 5V4L7 9H3zm13.5 3c0-1.77-1.02-3.29-2.5-4.03v8.05c1.48-.73 2.5-2.25 2.5-4.02zM14 3.23v2.06c2.89.86 5 3.54 5 6.71s-2.11 5.85-5 6.71v2.06c4.01-.91 7-4.49 7-8.77s-2.99-7.86-7-8.77z" })
4492
4485
  }),
4493
4486
  muted: /* @__PURE__ */ v("svg", {
4494
- ...ri,
4487
+ ...ni,
4495
4488
  viewBox: "0 0 24 24",
4496
4489
  width: 20,
4497
4490
  height: 20,
@@ -4499,7 +4492,7 @@ var ri = {
4499
4492
  children: /* @__PURE__ */ v("path", { d: "M16.5 12c0-1.77-1.02-3.29-2.5-4.03v2.21l2.45 2.45c.03-.2.05-.41.05-.63zm2.5 0c0 .94-.2 1.82-.54 2.64l1.51 1.51C20.63 14.91 21 13.5 21 12c0-4.28-2.99-7.86-7-8.77v2.06c2.89.86 5 3.54 5 6.71zM4.27 3L3 4.27 7.73 9H3v6h4l5 5v-6.73l4.25 4.25c-.67.52-1.42.93-2.25 1.18v2.06c1.38-.31 2.63-.95 3.69-1.81L19.73 21 21 19.73l-9-9L4.27 3zM12 4L9.91 6.09 12 8.18V4z" })
4500
4493
  }),
4501
4494
  download: /* @__PURE__ */ v("svg", {
4502
- ...ri,
4495
+ ...ni,
4503
4496
  viewBox: "0 0 24 24",
4504
4497
  width: 20,
4505
4498
  height: 20,
@@ -4509,7 +4502,7 @@ var ri = {
4509
4502
  },
4510
4503
  glass: {
4511
4504
  play: /* @__PURE__ */ v("svg", {
4512
- ...ri,
4505
+ ...ni,
4513
4506
  viewBox: "0 0 16 16",
4514
4507
  width: 16,
4515
4508
  height: 16,
@@ -4520,7 +4513,7 @@ var ri = {
4520
4513
  children: /* @__PURE__ */ v("path", { d: "M2.6 1.4 13.2 8 2.6 14.6z" })
4521
4514
  }),
4522
4515
  pause: /* @__PURE__ */ y("svg", {
4523
- ...ri,
4516
+ ...ni,
4524
4517
  viewBox: "0 0 16 16",
4525
4518
  width: 16,
4526
4519
  height: 16,
@@ -4540,7 +4533,7 @@ var ri = {
4540
4533
  })]
4541
4534
  }),
4542
4535
  volume: /* @__PURE__ */ y("svg", {
4543
- ...ri,
4536
+ ...ni,
4544
4537
  viewBox: "0 0 22 16",
4545
4538
  width: 26,
4546
4539
  height: 18,
@@ -4560,7 +4553,7 @@ var ri = {
4560
4553
  ]
4561
4554
  }),
4562
4555
  muted: /* @__PURE__ */ y("svg", {
4563
- ...ri,
4556
+ ...ni,
4564
4557
  viewBox: "0 0 22 16",
4565
4558
  width: 26,
4566
4559
  height: 18,
@@ -4575,7 +4568,7 @@ var ri = {
4575
4568
  }), /* @__PURE__ */ v("path", { d: "m12 5.8 5 4.4M17 5.8l-5 4.4" })]
4576
4569
  }),
4577
4570
  download: /* @__PURE__ */ v("svg", {
4578
- ...ri,
4571
+ ...ni,
4579
4572
  viewBox: "0 0 16 16",
4580
4573
  width: 16,
4581
4574
  height: 16,
@@ -4588,23 +4581,23 @@ var ri = {
4588
4581
  })
4589
4582
  }
4590
4583
  };
4591
- function oi(e, t) {
4584
+ function ai(e, t) {
4592
4585
  let n = Number.isFinite(e) && e > 0 ? Math.floor(e) : 0, r = Math.floor(n / 3600), i = Math.floor(n % 3600 / 60), a = String(n % 60).padStart(2, "0");
4593
4586
  return r > 0 ? `${r}:${String(i).padStart(2, "0")}:${a}` : `${t ? String(i).padStart(2, "0") : i}:${a}`;
4594
4587
  }
4595
- var si = a(function(e, t) {
4596
- return /* @__PURE__ */ i(ci, {
4588
+ var oi = a(function(e, t) {
4589
+ return /* @__PURE__ */ i(si, {
4597
4590
  ...e,
4598
4591
  ref: t,
4599
4592
  key: e.src
4600
4593
  });
4601
- }), ci = a(function({ src: e, title: t = "Audio recording", preload: n = "metadata", onTimeUpdate: r, onError: i, downloadHref: a, downloadName: o, variant: s = "plain", skipSeconds: c = !1, showMute: l = !1, keyboardShortcuts: u = !0, playbackRates: f = [
4594
+ }), si = a(function({ src: e, title: t = "Audio recording", preload: n = "metadata", onTimeUpdate: r, onError: i, downloadHref: a, downloadName: o, variant: s = "plain", skipSeconds: c = !1, showMute: l = !1, keyboardShortcuts: u = !0, playbackRates: f = [
4602
4595
  1,
4603
4596
  1.25,
4604
4597
  1.5,
4605
4598
  2
4606
4599
  ], className: p, appearance: m = "pill", controls: _ }, b) {
4607
- let x = h(null), S = h(!1), C = h(null), [w, T] = g(!1), [E, D] = g(n !== "none"), [O, k] = g(), [A, j] = g(0), [M, N] = g(0), [P, F] = g(!1), [I, L] = g(1), [R, z] = g(1), B = [...new Set([1, ...f.filter((e) => Number.isFinite(e) && e > 0)])].sort((e, t) => e - t), V = A <= 0 || !!O, ee = A > 0 ? Math.min(100, Math.max(0, M / A * 100)) : 0, H = typeof c == "number" && Number.isFinite(c) && c > 0, U = H ? c : 10, te = m === "glass", W = ai[m], G = [...new Set(_ ?? [
4600
+ let x = h(null), S = h(!1), C = h(null), [w, T] = g(!1), [E, D] = g(n !== "none"), [O, k] = g(), [A, j] = g(0), [M, N] = g(0), [P, F] = g(!1), [I, L] = g(1), [R, z] = g(1), B = [...new Set([1, ...f.filter((e) => Number.isFinite(e) && e > 0)])].sort((e, t) => e - t), V = A <= 0 || !!O, ee = A > 0 ? Math.min(100, Math.max(0, M / A * 100)) : 0, H = typeof c == "number" && Number.isFinite(c) && c > 0, U = H ? c : 10, te = m === "glass", W = ii[m], G = [...new Set(_ ?? [
4608
4601
  ...H ? ["skipBack"] : [],
4609
4602
  "play",
4610
4603
  ...H ? ["skipForward"] : [],
@@ -4673,7 +4666,7 @@ var si = a(function(e, t) {
4673
4666
  }, n = e.key === "Home" ? 0 : e.key === "End" ? A : t[e.key] === void 0 ? void 0 : M + t[e.key];
4674
4667
  n !== void 0 && (e.preventDefault(), re(n));
4675
4668
  }
4676
- let oe = oi(M, te), q = oi(A, te);
4669
+ let oe = ai(M, te), q = ai(A, te);
4677
4670
  function se(t) {
4678
4671
  switch (t) {
4679
4672
  case "skipBack":
@@ -4685,7 +4678,7 @@ var si = a(function(e, t) {
4685
4678
  "aria-label": `${e ? "Forward" : "Back"} ${U} seconds`,
4686
4679
  disabled: V,
4687
4680
  onClick: () => re(M + (e ? U : -U)),
4688
- children: /* @__PURE__ */ v(ii, {
4681
+ children: /* @__PURE__ */ v(ri, {
4689
4682
  forward: e,
4690
4683
  seconds: U,
4691
4684
  size: m === "glass" ? 18 : 24
@@ -4878,7 +4871,7 @@ var si = a(function(e, t) {
4878
4871
  });
4879
4872
  //#endregion
4880
4873
  //#region src/components/ui/AuthCard.tsx
4881
- function li({ title: e, subtitle: t, icon: n, children: r, footer: i, className: a }) {
4874
+ function ci({ title: e, subtitle: t, icon: n, children: r, footer: i, className: a }) {
4882
4875
  return /* @__PURE__ */ v("div", {
4883
4876
  className: Y("relative z-10 w-full max-w-sm", a),
4884
4877
  children: /* @__PURE__ */ y("div", {
@@ -4912,7 +4905,7 @@ function li({ title: e, subtitle: t, icon: n, children: r, footer: i, className:
4912
4905
  }
4913
4906
  //#endregion
4914
4907
  //#region src/components/ui/AuthorByline.tsx
4915
- function ui({ name: e, meta: t, nameAppend: n, size: r = "sm", className: i }) {
4908
+ function li({ name: e, meta: t, nameAppend: n, size: r = "sm", className: i }) {
4916
4909
  return /* @__PURE__ */ y("div", {
4917
4910
  className: Y("flex items-center gap-2", i),
4918
4911
  children: [/* @__PURE__ */ v(Dn, {
@@ -4929,29 +4922,29 @@ function ui({ name: e, meta: t, nameAppend: n, size: r = "sm", className: i }) {
4929
4922
  }
4930
4923
  //#endregion
4931
4924
  //#region src/components/ui/Badge.tsx
4932
- var di = "font-label inline-flex items-center rounded-md font-medium", fi = {
4925
+ var ui = "font-label inline-flex items-center rounded-md font-medium", di = {
4933
4926
  xs: "text-2xs gap-1 px-1.5",
4934
4927
  sm: "text-2xs gap-1.5 px-2 py-0.5",
4935
4928
  md: "text-xs gap-1.5 px-2.5 py-1"
4936
- }, pi = {
4929
+ }, fi = {
4937
4930
  xs: "h-1.5 w-1.5",
4938
4931
  sm: "h-1.5 w-1.5",
4939
4932
  md: "h-2 w-2"
4940
- }, mi = "cursor-pointer transition-colors duration-[100ms] focus-visible:outline-accent focus-visible:outline-2 focus-visible:outline-offset-2 disabled:cursor-not-allowed disabled:opacity-40", hi = {
4933
+ }, pi = "cursor-pointer transition-colors duration-[100ms] focus-visible:outline-accent focus-visible:outline-2 focus-visible:outline-offset-2 disabled:cursor-not-allowed disabled:opacity-40", mi = {
4941
4934
  soft: "hover:text-text-primary",
4942
4935
  outline: "hover:border-border-strong hover:text-text-primary"
4943
- }, gi = !1;
4944
- function _i() {
4936
+ }, hi = !1;
4937
+ function gi() {
4945
4938
  let e = !1;
4946
4939
  try {
4947
4940
  e = process.env.NODE_ENV !== "production";
4948
4941
  } catch {}
4949
- !e || gi || (gi = !0, console.warn("[Badge] `selected` needs `onClick`; without it the badge renders as a static span and `selected` is ignored."));
4942
+ !e || hi || (hi = !0, console.warn("[Badge] `selected` needs `onClick`; without it the badge renders as a static span and `selected` is ignored."));
4950
4943
  }
4951
- var vi = a(function(e, t) {
4944
+ var _i = a(function(e, t) {
4952
4945
  let { color: n, variant: r = "soft", size: i = "sm", dot: a, selected: o, onClick: s, disabled: c, className: l, children: u, ...d } = e;
4953
- o !== void 0 && !s && _i();
4954
- let f = s ? o : void 0, p = f !== void 0, m = kn[p && !f ? "gray" : n ?? (p ? "accent" : "gray")], h = Y(di, fi[i], r === "outline" ? Y("border", m.outline) : m.soft, f && (r === "outline" ? m.fill : "ring"), s && mi, p && !f && hi[r], c && !s && "opacity-40", l), g = /* @__PURE__ */ y(_, { children: [a && /* @__PURE__ */ v("span", { className: Y(pi[i], "rounded-full", m.dot) }), u] });
4946
+ o !== void 0 && !s && gi();
4947
+ let f = s ? o : void 0, p = f !== void 0, m = kn[p && !f ? "gray" : n ?? (p ? "accent" : "gray")], h = Y(ui, di[i], r === "outline" ? Y("border", m.outline) : m.soft, f && (r === "outline" ? m.fill : "ring"), s && pi, p && !f && mi[r], c && !s && "opacity-40", l), g = /* @__PURE__ */ y(_, { children: [a && /* @__PURE__ */ v("span", { className: Y(fi[i], "rounded-full", m.dot) }), u] });
4955
4948
  return s ? /* @__PURE__ */ v("button", {
4956
4949
  ...d,
4957
4950
  ref: t,
@@ -4969,10 +4962,10 @@ var vi = a(function(e, t) {
4969
4962
  children: g
4970
4963
  });
4971
4964
  });
4972
- vi.displayName = "Badge";
4965
+ _i.displayName = "Badge";
4973
4966
  //#endregion
4974
4967
  //#region src/components/ui/badgeColors.ts
4975
- var yi = kn, bi = /* @__PURE__ */ new Map();
4968
+ var vi = kn, yi = /* @__PURE__ */ new Map();
4976
4969
  function $(e, t) {
4977
4970
  if (!t) return {
4978
4971
  year: e.getFullYear(),
@@ -4983,7 +4976,7 @@ function $(e, t) {
4983
4976
  second: e.getSeconds(),
4984
4977
  millisecond: e.getMilliseconds()
4985
4978
  };
4986
- let n = bi.get(t);
4979
+ let n = yi.get(t);
4987
4980
  n || (n = new Intl.DateTimeFormat("en-GB-u-ca-iso8601-nu-latn", {
4988
4981
  timeZone: t,
4989
4982
  year: "numeric",
@@ -4993,7 +4986,7 @@ function $(e, t) {
4993
4986
  minute: "2-digit",
4994
4987
  second: "2-digit",
4995
4988
  hourCycle: "h23"
4996
- }), bi.set(t, n));
4989
+ }), yi.set(t, n));
4997
4990
  let r = {};
4998
4991
  for (let t of n.formatToParts(e)) t.type !== "literal" && (r[t.type] = Number(t.value));
4999
4992
  return {
@@ -5006,12 +4999,12 @@ function $(e, t) {
5006
4999
  millisecond: e.getUTCMilliseconds()
5007
5000
  };
5008
5001
  }
5009
- function xi(e) {
5002
+ function bi(e) {
5010
5003
  let t = /* @__PURE__ */ new Date(0);
5011
5004
  return t.setUTCFullYear(e.year, e.month - 1, e.day), t.setUTCHours(e.hour, e.minute, e.second, e.millisecond), t.getTime();
5012
5005
  }
5013
- function Si(e, t, n = "compatible") {
5014
- let r = xi(e), i = new Date(r);
5006
+ function xi(e, t, n = "compatible") {
5007
+ let r = bi(e), i = new Date(r);
5015
5008
  if (!Object.values(e).every(Number.isInteger) || i.getUTCFullYear() !== e.year || i.getUTCMonth() + 1 !== e.month || i.getUTCDate() !== e.day || i.getUTCHours() !== e.hour || i.getUTCMinutes() !== e.minute || i.getUTCSeconds() !== e.second || i.getUTCMilliseconds() !== e.millisecond) throw RangeError("Invalid civil date and time");
5016
5009
  if (!t) {
5017
5010
  let t = /* @__PURE__ */ new Date(0);
@@ -5026,151 +5019,151 @@ function Si(e, t, n = "compatible") {
5026
5019
  48
5027
5020
  ]) {
5028
5021
  let n = r + e * 36e5;
5029
- a.add(xi($(new Date(n), t)) - n);
5022
+ a.add(bi($(new Date(n), t)) - n);
5030
5023
  }
5031
- let o = [...a].map((e) => r - e).sort((e, t) => e - t), s = o.filter((e) => xi($(new Date(e), t)) === r);
5024
+ let o = [...a].map((e) => r - e).sort((e, t) => e - t), s = o.filter((e) => bi($(new Date(e), t)) === r);
5032
5025
  if (s.length === 1) return new Date(s[0]);
5033
5026
  if (n === "reject") throw RangeError(s.length ? "This time occurs twice in the selected timezone" : "This time does not exist in the selected timezone");
5034
5027
  return s.length ? new Date(n === "later" ? s[s.length - 1] : s[0]) : new Date(n === "earlier" ? o[0] : o[o.length - 1]);
5035
5028
  }
5036
- var Ci = 1440, wi = 6e4, Ti = [
5029
+ var Si = 1440, Ci = 6e4, wi = [
5037
5030
  1,
5038
5031
  2,
5039
5032
  3,
5040
5033
  4,
5041
5034
  5
5042
5035
  ];
5043
- function Ei(e) {
5036
+ function Ti(e) {
5044
5037
  return new Date(e.getFullYear(), e.getMonth(), e.getDate());
5045
5038
  }
5046
- function Di(e, t) {
5039
+ function Ei(e, t) {
5047
5040
  return new Date(e.getFullYear(), e.getMonth(), e.getDate() + t, e.getHours(), e.getMinutes(), e.getSeconds(), e.getMilliseconds());
5048
5041
  }
5049
- function Oi(e, t) {
5042
+ function Di(e, t) {
5050
5043
  return new Date(e.getFullYear(), e.getMonth(), e.getDate(), e.getHours(), e.getMinutes() + t, e.getSeconds(), e.getMilliseconds());
5051
5044
  }
5052
- function ki(e, t) {
5045
+ function Oi(e, t) {
5053
5046
  let n = new Date(e.getFullYear(), e.getMonth() + t, 1), r = new Date(n.getFullYear(), n.getMonth() + 1, 0).getDate();
5054
5047
  return new Date(n.getFullYear(), n.getMonth(), Math.min(e.getDate(), r), e.getHours(), e.getMinutes());
5055
5048
  }
5056
- function Ai(e, t = 1) {
5057
- let n = Ei(e);
5058
- return Di(n, -((n.getDay() - t + 7) % 7));
5049
+ function ki(e, t = 1) {
5050
+ let n = Ti(e);
5051
+ return Ei(n, -((n.getDay() - t + 7) % 7));
5059
5052
  }
5060
- function ji(e) {
5053
+ function Ai(e) {
5061
5054
  return new Date(e.getFullYear(), e.getMonth(), 1);
5062
5055
  }
5063
- function Mi(e, t) {
5056
+ function ji(e, t) {
5064
5057
  return e.getFullYear() === t.getFullYear() && e.getMonth() === t.getMonth() && e.getDate() === t.getDate();
5065
5058
  }
5066
- function Ni(e, t) {
5059
+ function Mi(e, t) {
5067
5060
  let n = Date.UTC(e.getFullYear(), e.getMonth(), e.getDate()), r = Date.UTC(t.getFullYear(), t.getMonth(), t.getDate());
5068
5061
  return Math.round((n - r) / 864e5);
5069
5062
  }
5070
- function Pi(e) {
5071
- return e.getHours() * 60 + e.getMinutes() + e.getSeconds() / 60 + e.getMilliseconds() / wi;
5063
+ function Ni(e) {
5064
+ return e.getHours() * 60 + e.getMinutes() + e.getSeconds() / 60 + e.getMilliseconds() / Ci;
5072
5065
  }
5073
- function Fi(e, t) {
5074
- let n = Ii(e, t);
5075
- if (!Mi(n, e) || Pi(n) <= t) return n;
5066
+ function Pi(e, t) {
5067
+ let n = Fi(e, t);
5068
+ if (!ji(n, e) || Ni(n) <= t) return n;
5076
5069
  let r = Math.floor(t);
5077
- for (; r > 0 && Pi(Ii(e, r - 1)) !== r - 1;) r--;
5078
- return /* @__PURE__ */ new Date(n.getTime() - (t - r) * wi);
5070
+ for (; r > 0 && Ni(Fi(e, r - 1)) !== r - 1;) r--;
5071
+ return /* @__PURE__ */ new Date(n.getTime() - (t - r) * Ci);
5079
5072
  }
5080
- function Ii(e, t) {
5073
+ function Fi(e, t) {
5081
5074
  let n = Math.floor(t);
5082
5075
  return new Date(e.getFullYear(), e.getMonth(), e.getDate(), 0, n, Math.round((t - n) * 60));
5083
5076
  }
5084
- function Li(e) {
5077
+ function Ii(e) {
5085
5078
  let t = /^(\d{1,2}):(\d{2})$/.exec(e.trim());
5086
5079
  if (!t) throw RangeError(`Invalid time "${e}", expected HH:mm`);
5087
5080
  let n = Number(t[1]), r = Number(t[2]);
5088
5081
  if (r > 59 || n > 24 || n === 24 && r > 0) throw RangeError(`Invalid time "${e}"`);
5089
5082
  return n * 60 + r;
5090
5083
  }
5091
- function Ri(e) {
5084
+ function Li(e) {
5092
5085
  let t = Math.round(e), n = Math.floor(t / 60), r = t % 60;
5093
5086
  return `${String(n).padStart(2, "0")}:${String(r).padStart(2, "0")}`;
5094
5087
  }
5095
- function zi(e) {
5088
+ function Ri(e) {
5096
5089
  return `${e.getFullYear()}-${String(e.getMonth() + 1).padStart(2, "0")}-${String(e.getDate()).padStart(2, "0")}`;
5097
5090
  }
5098
- function Bi(e) {
5091
+ function zi(e) {
5099
5092
  let t = /^(\d{4})-(\d{2})-(\d{2})$/.exec(e);
5100
5093
  if (!t) throw RangeError(`Invalid date key "${e}"`);
5101
5094
  let n = new Date(Number(t[1]), Number(t[2]) - 1, Number(t[3]));
5102
- if (zi(n) !== e) throw RangeError(`Invalid date key "${e}"`);
5095
+ if (Ri(n) !== e) throw RangeError(`Invalid date key "${e}"`);
5103
5096
  return n;
5104
5097
  }
5105
- function Vi(e, t, n = "round") {
5098
+ function Bi(e, t, n = "round") {
5106
5099
  if (t <= 0) return e;
5107
5100
  let r = n === "floor" ? Math.floor : n === "ceil" ? Math.ceil : Math.round, i = e / t;
5108
5101
  return r(n === "floor" ? i + 1e-9 : n === "ceil" ? i - 1e-9 : i) * t;
5109
5102
  }
5110
- function Hi(e, t, n = "round") {
5111
- return Ii(Ei(e), Vi(Pi(e), t, n));
5103
+ function Vi(e, t, n = "round") {
5104
+ return Fi(Ti(e), Bi(Ni(e), t, n));
5112
5105
  }
5113
- function Ui(e) {
5106
+ function Hi(e) {
5114
5107
  return e === "day" || e === "threeDay" || e === "workWeek" || e === "week";
5115
5108
  }
5116
- function Wi(e, t, n = {}) {
5117
- let r = n.weekStartsOn ?? 1, i = Ei(t);
5109
+ function Ui(e, t, n = {}) {
5110
+ let r = n.weekStartsOn ?? 1, i = Ti(t);
5118
5111
  switch (e) {
5119
5112
  case "day":
5120
5113
  case "timeline": return [i];
5121
5114
  case "threeDay": return [
5122
5115
  i,
5123
- Di(i, 1),
5124
- Di(i, 2)
5116
+ Ei(i, 1),
5117
+ Ei(i, 2)
5125
5118
  ];
5126
5119
  case "week": {
5127
- let e = Ai(i, r);
5128
- return Array.from({ length: 7 }, (t, n) => Di(e, n));
5120
+ let e = ki(i, r);
5121
+ return Array.from({ length: 7 }, (t, n) => Ei(e, n));
5129
5122
  }
5130
5123
  case "workWeek": {
5131
- let e = new Set(n.workWeekDays ?? Ti), t = Ai(i, r), a = Array.from({ length: 7 }, (e, n) => Di(t, n)).filter((t) => e.has(t.getDay()));
5124
+ let e = new Set(n.workWeekDays ?? wi), t = ki(i, r), a = Array.from({ length: 7 }, (e, n) => Ei(t, n)).filter((t) => e.has(t.getDay()));
5132
5125
  return a.length ? a : [i];
5133
5126
  }
5134
5127
  case "agenda": {
5135
5128
  let e = Math.max(1, Math.floor(n.agendaDays ?? 7));
5136
- return Array.from({ length: e }, (e, t) => Di(i, t));
5129
+ return Array.from({ length: e }, (e, t) => Ei(i, t));
5137
5130
  }
5138
- case "month": return Gi(t, r).flat();
5131
+ case "month": return Wi(t, r).flat();
5139
5132
  }
5140
5133
  }
5141
- function Gi(e, t = 1) {
5142
- let n = ji(e), r = new Date(n.getFullYear(), n.getMonth() + 1, 0), i = Ai(n, t), a = [], o = i;
5134
+ function Wi(e, t = 1) {
5135
+ let n = Ai(e), r = new Date(n.getFullYear(), n.getMonth() + 1, 0), i = ki(n, t), a = [], o = i;
5143
5136
  for (; o <= r || a.length === 0;) {
5144
- let e = Array.from({ length: 7 }, (e, t) => Di(o, t));
5145
- a.push(e), o = Di(o, 7);
5137
+ let e = Array.from({ length: 7 }, (e, t) => Ei(o, t));
5138
+ a.push(e), o = Ei(o, 7);
5146
5139
  }
5147
5140
  return a;
5148
5141
  }
5149
- function Ki(e, t, n = {}) {
5150
- let r = Wi(e, t, n);
5142
+ function Gi(e, t, n = {}) {
5143
+ let r = Ui(e, t, n);
5151
5144
  return {
5152
5145
  start: r[0],
5153
- end: Di(r[r.length - 1], 1)
5146
+ end: Ei(r[r.length - 1], 1)
5154
5147
  };
5155
5148
  }
5156
- function qi(e, t, n, r = {}) {
5149
+ function Ki(e, t, n, r = {}) {
5157
5150
  switch (e) {
5158
5151
  case "day":
5159
- case "timeline": return Di(t, n);
5160
- case "threeDay": return Di(t, 3 * n);
5152
+ case "timeline": return Ei(t, n);
5153
+ case "threeDay": return Ei(t, 3 * n);
5161
5154
  case "week":
5162
- case "workWeek": return Di(t, 7 * n);
5163
- case "agenda": return Di(t, Math.max(1, r.agendaDays ?? 7) * n);
5164
- case "month": return ki(t, n);
5155
+ case "workWeek": return Ei(t, 7 * n);
5156
+ case "agenda": return Ei(t, Math.max(1, r.agendaDays ?? 7) * n);
5157
+ case "month": return Oi(t, n);
5165
5158
  }
5166
5159
  }
5167
- var Ji = /* @__PURE__ */ new Map();
5168
- function Yi(e, t) {
5169
- let n = `${e}|${JSON.stringify(t)}`, r = Ji.get(n);
5170
- return r || (r = new Intl.DateTimeFormat(e, t), Ji.set(n, r)), r;
5160
+ var qi = /* @__PURE__ */ new Map();
5161
+ function Ji(e, t) {
5162
+ let n = `${e}|${JSON.stringify(t)}`, r = qi.get(n);
5163
+ return r || (r = new Intl.DateTimeFormat(e, t), qi.set(n, r)), r;
5171
5164
  }
5172
- function Xi(e, t = {}) {
5173
- return Yi(t.locale ?? "en-GB", {
5165
+ function Yi(e, t = {}) {
5166
+ return Ji(t.locale ?? "en-GB", {
5174
5167
  timeZone: t.timeZone,
5175
5168
  timeZoneName: t.timeZone ? "short" : void 0,
5176
5169
  hour: t.hour12 ? "numeric" : "2-digit",
@@ -5178,71 +5171,71 @@ function Xi(e, t = {}) {
5178
5171
  hourCycle: t.hour12 ? "h12" : "h23"
5179
5172
  }).format(e);
5180
5173
  }
5181
- function Zi(e, t, n = {}) {
5182
- return `${Xi(e, n)}–${Xi(t, n)}`;
5174
+ function Xi(e, t, n = {}) {
5175
+ return `${Yi(e, n)}–${Yi(t, n)}`;
5183
5176
  }
5184
- function Qi(e, t = {}) {
5185
- if (!t.hour12) return Ri(e);
5186
- let n = Ii(new Date(2e3, 0, 1), e);
5187
- return Yi(t.locale ?? "en-GB", {
5177
+ function Zi(e, t = {}) {
5178
+ if (!t.hour12) return Li(e);
5179
+ let n = Fi(new Date(2e3, 0, 1), e);
5180
+ return Ji(t.locale ?? "en-GB", {
5188
5181
  hour: "numeric",
5189
5182
  minute: e % 60 ? "2-digit" : void 0,
5190
5183
  hour12: !0
5191
5184
  }).format(n);
5192
5185
  }
5193
- function $i(e, t = "en-GB") {
5194
- return Yi(t, {
5186
+ function Qi(e, t = "en-GB") {
5187
+ return Ji(t, {
5195
5188
  weekday: "long",
5196
5189
  day: "numeric",
5197
5190
  month: "long",
5198
5191
  year: "numeric"
5199
5192
  }).format(e);
5200
5193
  }
5201
- function ea(e, t, n = {}) {
5194
+ function $i(e, t, n = {}) {
5202
5195
  let r = n.locale ?? "en-GB";
5203
- if (e === "month") return Yi(r, {
5196
+ if (e === "month") return Ji(r, {
5204
5197
  month: "long",
5205
5198
  year: "numeric"
5206
5199
  }).format(t);
5207
- let i = Wi(e, t, n), a = i[0], o = i[i.length - 1];
5208
- if (i.length === 1) return $i(a, r);
5209
- let s = a.getFullYear() === o.getFullYear(), c = s && a.getMonth() === o.getMonth(), l = Yi(r, {
5200
+ let i = Ui(e, t, n), a = i[0], o = i[i.length - 1];
5201
+ if (i.length === 1) return Qi(a, r);
5202
+ let s = a.getFullYear() === o.getFullYear(), c = s && a.getMonth() === o.getMonth(), l = Ji(r, {
5210
5203
  day: "numeric",
5211
5204
  month: "long",
5212
5205
  year: "numeric"
5213
5206
  });
5214
5207
  if (c) return `${a.getDate()} – ${l.format(o)}`;
5215
- let u = Yi(r, s ? {
5208
+ let u = Ji(r, s ? {
5216
5209
  day: "numeric",
5217
5210
  month: "short"
5218
5211
  } : {
5219
5212
  day: "numeric",
5220
5213
  month: "short",
5221
5214
  year: "numeric"
5222
- }), d = Yi(r, {
5215
+ }), d = Ji(r, {
5223
5216
  day: "numeric",
5224
5217
  month: "short",
5225
5218
  year: "numeric"
5226
5219
  });
5227
5220
  return `${u.format(a)} – ${d.format(o)}`;
5228
5221
  }
5229
- function ta(e, t, n, r) {
5222
+ function ea(e, t, n, r) {
5230
5223
  return e < r && n < t;
5231
5224
  }
5232
- function na(e, t, n) {
5233
- let r = Ei(n), i = Di(r, 1), a = e.getTime(), o = Math.max(t.getTime(), a);
5225
+ function ta(e, t, n) {
5226
+ let r = Ti(n), i = Ei(r, 1), a = e.getTime(), o = Math.max(t.getTime(), a);
5234
5227
  if (o === a) {
5235
5228
  if (a < r.getTime() || a >= i.getTime()) return null;
5236
- } else if (!ta(a, o, r.getTime(), i.getTime())) return null;
5229
+ } else if (!ea(a, o, r.getTime(), i.getTime())) return null;
5237
5230
  let s = a < r.getTime(), c = o > i.getTime();
5238
5231
  return {
5239
- startMinute: s ? 0 : Pi(e),
5240
- endMinute: o >= i.getTime() ? Ci : Math.max(Pi(t), s ? 0 : Pi(e)),
5232
+ startMinute: s ? 0 : Ni(e),
5233
+ endMinute: o >= i.getTime() ? Si : Math.max(Ni(t), s ? 0 : Ni(e)),
5241
5234
  continuesBefore: s,
5242
5235
  continuesAfter: c
5243
5236
  };
5244
5237
  }
5245
- function ra(e) {
5238
+ function na(e) {
5246
5239
  let t = e.filter(([e, t]) => t > e).map(([e, t]) => [e, t]).sort((e, t) => e[0] - t[0]), n = [];
5247
5240
  for (let [e, r] of t) {
5248
5241
  let t = n[n.length - 1];
@@ -5250,12 +5243,12 @@ function ra(e) {
5250
5243
  }
5251
5244
  return n;
5252
5245
  }
5253
- function ia(e, t, n) {
5246
+ function ra(e, t, n) {
5254
5247
  let r = [], i = e;
5255
- for (let [e, a] of ra(n)) if (!(a <= i) && (e >= t || (e > i && r.push([i, Math.min(e, t)]), i = Math.max(i, a), i >= t))) break;
5248
+ for (let [e, a] of na(n)) if (!(a <= i) && (e >= t || (e > i && r.push([i, Math.min(e, t)]), i = Math.max(i, a), i >= t))) break;
5256
5249
  return i < t && r.push([i, t]), r;
5257
5250
  }
5258
- function aa(e, t = 0) {
5251
+ function ia(e, t = 0) {
5259
5252
  let n = e.map((e) => ({
5260
5253
  id: e.id,
5261
5254
  start: e.start,
@@ -5264,7 +5257,7 @@ function aa(e, t = 0) {
5264
5257
  let e = a.length;
5265
5258
  for (let t of i) {
5266
5259
  let n = 1;
5267
- for (let r = t.column + 1; r < e && !i.some((e) => e.column === r && ta(t.start, t.end, e.start, e.end)); r++) n++;
5260
+ for (let r = t.column + 1; r < e && !i.some((e) => e.column === r && ea(t.start, t.end, e.start, e.end)); r++) n++;
5268
5261
  r.set(t.id, {
5269
5262
  column: t.column,
5270
5263
  columns: e,
@@ -5283,7 +5276,7 @@ function aa(e, t = 0) {
5283
5276
  }
5284
5277
  return s(), r;
5285
5278
  }
5286
- function oa(e) {
5279
+ function aa(e) {
5287
5280
  let t = [...e].sort((e, t) => e.start - t.start || t.end - e.end || (e.id < t.id ? -1 : 1)), n = [], r = /* @__PURE__ */ new Map();
5288
5281
  for (let e of t) {
5289
5282
  let t = Math.max(e.end, e.start + 1e-6), i = n.findIndex((t) => t <= e.start);
@@ -5294,34 +5287,34 @@ function oa(e) {
5294
5287
  count: n.length
5295
5288
  };
5296
5289
  }
5297
- function sa(e) {
5290
+ function oa(e) {
5298
5291
  return e === void 0 ? [] : typeof e == "string" ? [e] : e;
5299
5292
  }
5300
- function ca(e, t, { emptyMatchesAll: n }) {
5293
+ function sa(e, t, { emptyMatchesAll: n }) {
5301
5294
  if (t === void 0) return !0;
5302
- let r = sa(e);
5295
+ let r = oa(e);
5303
5296
  return r.length === 0 ? n : r.includes(t);
5304
5297
  }
5305
- function la(e, t, n) {
5306
- let r = sa(e);
5298
+ function ca(e, t, n) {
5299
+ let r = oa(e);
5307
5300
  if (t === void 0 || n === void 0 || t === n) return r.length ? [...r] : void 0;
5308
5301
  if (r.length === 0) return;
5309
5302
  let i = r.map((e) => e === t ? n : e);
5310
5303
  return [...new Set(i)];
5311
5304
  }
5312
- function ua(e, t, n = []) {
5305
+ function la(e, t, n = []) {
5313
5306
  let r = /* @__PURE__ */ new Set(), i = e.start.getTime(), a = e.end.getTime();
5314
- for (let e of [...t, ...n]) if (ta(e.start.getTime(), e.end.getTime(), i, a) && !("kind" in e && e.kind === "unavailable")) for (let t of sa(e.resourceId)) r.add(t);
5307
+ for (let e of [...t, ...n]) if (ea(e.start.getTime(), e.end.getTime(), i, a) && !("kind" in e && e.kind === "unavailable")) for (let t of oa(e.resourceId)) r.add(t);
5315
5308
  return r;
5316
5309
  }
5317
- function da(e, t, n = {}) {
5318
- let { fromDateKey: r, wallDateAtMinutes: i, toDateKey: a, startOfWeek: o, startOfDay: s, addDays: c, differenceInDays: l, weekday: u } = va(n.timeZone), d = n.weekStartsOn ?? 1, f = [], p = t.start.getTime(), m = t.end.getTime();
5310
+ function ua(e, t, n = {}) {
5311
+ let { fromDateKey: r, wallDateAtMinutes: i, toDateKey: a, startOfWeek: o, startOfDay: s, addDays: c, differenceInDays: l, weekday: u } = _a(n.timeZone), d = n.weekStartsOn ?? 1, f = [], p = t.start.getTime(), m = t.end.getTime();
5319
5312
  for (let n of e) {
5320
- let e = Li(n.startTime), h = Li(n.endTime);
5321
- h <= e && (h += Ci);
5313
+ let e = Ii(n.startTime), h = Ii(n.endTime);
5314
+ h <= e && (h += Si);
5322
5315
  let g = r(n.startDate), _ = (t) => {
5323
5316
  let r = i(t, e), o = i(t, h);
5324
- if (o <= r || !ta(r.getTime(), o.getTime(), p, m)) return;
5317
+ if (o <= r || !ea(r.getTime(), o.getTime(), p, m)) return;
5325
5318
  let s = a(t);
5326
5319
  f.push({
5327
5320
  id: n.recurrence ? `${n.id}@${s}` : n.id,
@@ -5350,40 +5343,40 @@ function da(e, t, n = {}) {
5350
5343
  }
5351
5344
  return f.sort((e, t) => e.start.getTime() - t.start.getTime());
5352
5345
  }
5353
- function fa(e, t, n, r, i) {
5354
- let a = Vi(t, r, "floor"), o = Vi(n, r, "floor"), s = X(Math.min(a, o), i.min, i.max - r), c = X(Math.max(a, o) + r, s + r, i.max), l = Fi(e, s), u = Fi(e, c);
5355
- return u <= l && (u = new Date(l.getTime() + r * wi)), {
5346
+ function da(e, t, n, r, i) {
5347
+ let a = Bi(t, r, "floor"), o = Bi(n, r, "floor"), s = X(Math.min(a, o), i.min, i.max - r), c = X(Math.max(a, o) + r, s + r, i.max), l = Pi(e, s), u = Pi(e, c);
5348
+ return u <= l && (u = new Date(l.getTime() + r * Ci)), {
5356
5349
  start: l,
5357
5350
  end: u
5358
5351
  };
5359
5352
  }
5360
- function pa(e, t, n, r, i, a) {
5361
- let o = (e.end.getTime() - e.start.getTime()) / wi, s = Vi(n - r, i), c = Pi(e.start);
5353
+ function fa(e, t, n, r, i, a) {
5354
+ let o = (e.end.getTime() - e.start.getTime()) / Ci, s = Bi(n - r, i), c = Ni(e.start);
5362
5355
  c >= a.min && c + o <= a.max && (s = X(s, a.min, a.max - o));
5363
- let l = Ii(t, s);
5356
+ let l = Fi(t, s);
5364
5357
  return {
5365
5358
  start: l,
5366
- end: new Date(l.getTime() + o * wi)
5359
+ end: new Date(l.getTime() + o * Ci)
5367
5360
  };
5368
5361
  }
5369
- function ma(e, t, n, r, i) {
5370
- let a = Ei(t), o = e.start.getTime() >= a.getTime() ? Pi(e.start) + r : r;
5371
- return Fi(a, X(Vi(n, r), Math.min(o, Ci), Math.max(i.max, o)));
5362
+ function pa(e, t, n, r, i) {
5363
+ let a = Ti(t), o = e.start.getTime() >= a.getTime() ? Ni(e.start) + r : r;
5364
+ return Pi(a, X(Bi(n, r), Math.min(o, Si), Math.max(i.max, o)));
5372
5365
  }
5373
- function ha(e, t) {
5366
+ function ma(e, t) {
5374
5367
  return {
5375
- start: Di(e.start, t),
5376
- end: Di(e.end, t)
5368
+ start: Ei(e.start, t),
5369
+ end: Ei(e.end, t)
5377
5370
  };
5378
5371
  }
5379
- function ga(e, t) {
5372
+ function ha(e, t) {
5380
5373
  return e.start.getTime() === t.start.getTime() && e.end.getTime() === t.end.getTime();
5381
5374
  }
5382
- function _a(e) {
5383
- return e.allDay ? !0 : e.end.getTime() >= Di(e.start, 1).getTime();
5375
+ function ga(e) {
5376
+ return e.allDay ? !0 : e.end.getTime() >= Ei(e.start, 1).getTime();
5384
5377
  }
5385
- function va(e) {
5386
- let t = (t) => $(t, e), n = (t) => Si(t, e), r = (e) => {
5378
+ function _a(e) {
5379
+ let t = (t) => $(t, e), n = (t) => xi(t, e), r = (e) => {
5387
5380
  let n = t(e);
5388
5381
  return `${String(n.year).padStart(4, "0")}-${String(n.month).padStart(2, "0")}-${String(n.day).padStart(2, "0")}`;
5389
5382
  }, i = (e) => n({
@@ -5419,7 +5412,7 @@ function va(e) {
5419
5412
  let r = t(e), i = t(n);
5420
5413
  return Math.round((Date.UTC(r.year, r.month - 1, r.day) - Date.UTC(i.year, i.month - 1, i.day)) / 864e5);
5421
5414
  }, d = (e, r) => {
5422
- let i = t(e), a = new Date(Date.UTC(i.year, i.month - 1, i.day, 0, Math.floor(r), 0, Math.round((r - Math.floor(r)) * wi)));
5415
+ let i = t(e), a = new Date(Date.UTC(i.year, i.month - 1, i.day, 0, Math.floor(r), 0, Math.round((r - Math.floor(r)) * Ci)));
5423
5416
  return n({
5424
5417
  year: a.getUTCFullYear(),
5425
5418
  month: a.getUTCMonth() + 1,
@@ -5431,11 +5424,11 @@ function va(e) {
5431
5424
  });
5432
5425
  }, f = (e, n) => {
5433
5426
  let r = t(e);
5434
- return u(e, n) * Ci + r.hour * 60 + r.minute + r.second / 60 + r.millisecond / wi;
5427
+ return u(e, n) * Si + r.hour * 60 + r.minute + r.second / 60 + r.millisecond / Ci;
5435
5428
  }, p = (t, n) => {
5436
5429
  let r = d(t, n), i = f(r, t);
5437
5430
  if (!e || i <= n + 1e-8) return r;
5438
- let a = Math.floor(r.getTime() - (i - n) * wi), o = r.getTime();
5431
+ let a = Math.floor(r.getTime() - (i - n) * Ci), o = r.getTime();
5439
5432
  for (; a < o;) {
5440
5433
  let e = Math.floor((a + o) / 2);
5441
5434
  f(new Date(e), t) < n ? a = e + 1 : o = e;
@@ -5443,7 +5436,7 @@ function va(e) {
5443
5436
  return new Date(o);
5444
5437
  }, m = (e) => {
5445
5438
  if (!Number.isFinite(e.min) || !Number.isFinite(e.max) || e.max <= e.min) throw RangeError("Calendar time bounds must contain a positive interval of real instants");
5446
- }, h = e ? (e, t) => new Date(i(e).getTime() + t * wi) : Ii, g = e ? (e) => (e.getTime() - i(e).getTime()) / wi : Pi, _ = e ? (e, t) => new Date(e.getTime() + t * wi) : Oi, v = (e) => {
5439
+ }, h = e ? (e, t) => new Date(i(e).getTime() + t * Ci) : Fi, g = e ? (e) => (e.getTime() - i(e).getTime()) / Ci : Ni, _ = e ? (e, t) => new Date(e.getTime() + t * Ci) : Di, v = (e) => {
5447
5440
  let t = /^(\d{4})-(\d{2})-(\d{2})$/.exec(e);
5448
5441
  if (!t) throw RangeError(`Invalid date key "${e}"`);
5449
5442
  let i = n({
@@ -5467,21 +5460,21 @@ function va(e) {
5467
5460
  if (e === "week" || e === "workWeek") {
5468
5461
  let t = c(r, n.weekStartsOn), i = Array.from({ length: 7 }, (e, n) => a(t, n));
5469
5462
  if (e === "week") return i;
5470
- let o = new Set(n.workWeekDays ?? Ti), l = i.filter((e) => o.has(s(e)));
5463
+ let o = new Set(n.workWeekDays ?? wi), l = i.filter((e) => o.has(s(e)));
5471
5464
  return l.length ? l : [r];
5472
5465
  }
5473
5466
  let o = e === "threeDay" ? 3 : e === "agenda" ? Math.max(1, Math.floor(n.agendaDays ?? 7)) : 1;
5474
5467
  return Array.from({ length: o }, (e, t) => a(r, t));
5475
5468
  }, x = (t, n, r) => {
5476
- if (!e) return na(t, n, r);
5469
+ if (!e) return ta(t, n, r);
5477
5470
  let o = i(r).getTime(), s = a(i(r), 1).getTime(), c = t.getTime(), l = Math.max(c, n.getTime());
5478
- return (l === c ? c < o || c >= s : !ta(c, l, o, s)) ? null : {
5479
- startMinute: Math.max(0, (c - o) / wi),
5480
- endMinute: Math.min(s - o, l - o) / wi,
5471
+ return (l === c ? c < o || c >= s : !ea(c, l, o, s)) ? null : {
5472
+ startMinute: Math.max(0, (c - o) / Ci),
5473
+ endMinute: Math.min(s - o, l - o) / Ci,
5481
5474
  continuesBefore: c < o,
5482
5475
  continuesAfter: l > s
5483
5476
  };
5484
- }, S = (e) => !!e.allDay || e.end >= a(e.start, 1), C = (t, n) => Yi(t, {
5477
+ }, S = (e) => !!e.allDay || e.end >= a(e.start, 1), C = (t, n) => Ji(t, {
5485
5478
  ...n,
5486
5479
  ...e ? { timeZone: e } : {}
5487
5480
  }), w = (e, t = "en-GB") => C(t, {
@@ -5490,7 +5483,7 @@ function va(e) {
5490
5483
  month: "long",
5491
5484
  year: "numeric"
5492
5485
  }).format(e), T = (n, r, i = {}) => {
5493
- if (!e) return ea(n, r, i);
5486
+ if (!e) return $i(n, r, i);
5494
5487
  let a = i.locale ?? "en-GB";
5495
5488
  if (n === "month") return C(a, {
5496
5489
  month: "long",
@@ -5513,11 +5506,11 @@ function va(e) {
5513
5506
  year: "numeric"
5514
5507
  }).format(c)}`;
5515
5508
  }, E = (n, r, i, a, o, s) => {
5516
- if (!e) return pa(n, r, i, a, o, s);
5509
+ if (!e) return fa(n, r, i, a, o, s);
5517
5510
  m(s);
5518
- let c = (n.end.getTime() - n.start.getTime()) / wi, l = Vi(i - a, o), f = (e) => {
5511
+ let c = (n.end.getTime() - n.start.getTime()) / Ci, l = Bi(i - a, o), f = (e) => {
5519
5512
  let n = h(r, e), i = t(n);
5520
- return u(n, r) * Ci + i.hour * 60 + i.minute;
5513
+ return u(n, r) * Si + i.hour * 60 + i.minute;
5521
5514
  }, p = d(n.start, f(s.min)), g = d(n.start, f(s.max));
5522
5515
  n.start >= p && n.end <= g && c <= s.max - s.min && (l = X(l, s.min, s.max - c));
5523
5516
  let v = h(r, l);
@@ -5559,8 +5552,8 @@ function va(e) {
5559
5552
  isAllDayLike: S,
5560
5553
  eventsOnDay: (e, t) => e.filter((e) => x(e.start, e.end, t)).sort((e, t) => Number(S(t)) - Number(S(e)) || e.start.getTime() - t.start.getTime() || t.end.getTime() - e.end.getTime() || e.title.localeCompare(t.title)),
5561
5554
  computeCreateRange: (t, n, r, i, a) => {
5562
- if (!e) return fa(t, n, r, i, a);
5563
- let o = Vi(n, i, "floor"), s = Vi(r, i, "floor");
5555
+ if (!e) return da(t, n, r, i, a);
5556
+ let o = Bi(n, i, "floor"), s = Bi(r, i, "floor");
5564
5557
  m(a);
5565
5558
  let c = Math.min(i, a.max - a.min), l = X(Math.min(o, s), a.min, a.max - c);
5566
5559
  return {
@@ -5570,14 +5563,14 @@ function va(e) {
5570
5563
  },
5571
5564
  computeMoveRange: E,
5572
5565
  computeResizeEnd: (t, n, r, a, o) => {
5573
- if (!e) return ma(t, n, r, a, o);
5566
+ if (!e) return pa(t, n, r, a, o);
5574
5567
  m(o);
5575
- let s = Math.max(0, (t.start.getTime() - i(n).getTime()) / wi) + a;
5576
- return h(n, X(Vi(r, a), s, Math.max(o.max, s)));
5568
+ let s = Math.max(0, (t.start.getTime() - i(n).getTime()) / Ci) + a;
5569
+ return h(n, X(Bi(r, a), s, Math.max(o.max, s)));
5577
5570
  },
5578
5571
  computeNudgeRange: (e, t, n) => E(e, i(e.start), g(e.start) + t, 0, 1, n),
5579
5572
  shiftRangeDays: (t, n) => {
5580
- if (!e) return ha(t, n);
5573
+ if (!e) return ma(t, n);
5581
5574
  if (t.allDay) return {
5582
5575
  start: a(t.start, n),
5583
5576
  end: a(t.end, n)
@@ -5591,14 +5584,14 @@ function va(e) {
5591
5584
  dayBounds: (t, n) => {
5592
5585
  if (!e) return n;
5593
5586
  let r = i(t).getTime(), a = {
5594
- min: (p(t, n.min).getTime() - r) / wi,
5595
- max: (p(t, n.max).getTime() - r) / wi
5587
+ min: (p(t, n.min).getTime() - r) / Ci,
5588
+ max: (p(t, n.max).getTime() - r) / Ci
5596
5589
  };
5597
5590
  return m(a), a;
5598
5591
  }
5599
5592
  };
5600
5593
  }
5601
- function ya(e, t, n, r, i = !0) {
5594
+ function va(e, t, n, r, i = !0) {
5602
5595
  let a = Math.max(5, t), o = (e) => Array.from({ length: Math.ceil((e.max - e.min) / a) }, (t, n) => e.min + n * a);
5603
5596
  if (!i) return {
5604
5597
  reference: void 0,
@@ -5609,10 +5602,10 @@ function ya(e, t, n, r, i = !0) {
5609
5602
  matchesReference: !1
5610
5603
  }))
5611
5604
  };
5612
- let s = va(n.timeZone), c = /* @__PURE__ */ new Map(), l = e.map(({ day: e, bounds: t }) => {
5605
+ let s = _a(n.timeZone), c = /* @__PURE__ */ new Map(), l = e.map(({ day: e, bounds: t }) => {
5613
5606
  let i = s.toDateKey(e), a = c.get(i);
5614
5607
  if (a) return a;
5615
- let l = o(t), u = l.map((t) => s.dateAtMinutes(e, t)), d = u.map((e) => Xi(e, n)), f = Yi(n.locale ?? "en-GB", {
5608
+ let l = o(t), u = l.map((t) => s.dateAtMinutes(e, t)), d = u.map((e) => Yi(e, n)), f = Ji(n.locale ?? "en-GB", {
5616
5609
  timeZone: n.timeZone,
5617
5610
  timeZoneName: "short"
5618
5611
  }), p = new Set(u.map((e) => f.formatToParts(e).find((e) => e.type === "timeZoneName")?.value)), m = t.max - t.min === r.max - r.min && p.size === 1, h = {
@@ -5636,20 +5629,20 @@ function ya(e, t, n, r, i = !0) {
5636
5629
  }
5637
5630
  //#endregion
5638
5631
  //#region src/components/ui/calendar/context.ts
5639
- var ba = r(null);
5640
- function xa() {
5641
- let e = c(ba);
5632
+ var ya = r(null);
5633
+ function ba() {
5634
+ let e = c(ya);
5642
5635
  if (!e) throw Error("Calendar views must render inside <Calendar>");
5643
5636
  return e;
5644
5637
  }
5645
5638
  //#endregion
5646
5639
  //#region src/components/ui/calendar/AgendaView.tsx
5647
- function Sa({ days: e, events: t, availability: n, label: r }) {
5648
- let i = xa(), { daySegment: a, eventsOnDay: o, getFormatter: s, isAllDayLike: c, isSameDay: l, toDateKey: u } = i.dates, d = s(i.locale, {
5640
+ function xa({ days: e, events: t, availability: n, label: r }) {
5641
+ let i = ba(), { daySegment: a, eventsOnDay: o, getFormatter: s, isAllDayLike: c, isSameDay: l, toDateKey: u } = i.dates, d = s(i.locale, {
5649
5642
  weekday: "long",
5650
5643
  day: "numeric",
5651
5644
  month: "long"
5652
- }), f = (e) => sa(e).map((e) => i.resourceById.get(e)?.title).filter(Boolean).join(", ");
5645
+ }), f = (e) => oa(e).map((e) => i.resourceById.get(e)?.title).filter(Boolean).join(", ");
5653
5646
  return /* @__PURE__ */ v("div", {
5654
5647
  className: "ui-cal-scroll min-h-0 flex-1 overflow-y-auto",
5655
5648
  "aria-label": r,
@@ -5686,10 +5679,10 @@ function Sa({ days: e, events: t, availability: n, label: r }) {
5686
5679
  children: i.labels.noEvents
5687
5680
  }) : /* @__PURE__ */ v("ul", {
5688
5681
  className: "divide-border divide-y border-border border-b",
5689
- children: r.map((e) => /* @__PURE__ */ v("li", { children: e.type === "event" ? /* @__PURE__ */ v(Ca, {
5682
+ children: r.map((e) => /* @__PURE__ */ v("li", { children: e.type === "event" ? /* @__PURE__ */ v(Sa, {
5690
5683
  event: e.value,
5691
5684
  resources: f(e.value.resourceId)
5692
- }) : /* @__PURE__ */ v(wa, {
5685
+ }) : /* @__PURE__ */ v(Ca, {
5693
5686
  block: e.value,
5694
5687
  resources: f(e.value.resourceId)
5695
5688
  }) }, `${e.type}:${e.value.id}`))
@@ -5698,8 +5691,8 @@ function Sa({ days: e, events: t, availability: n, label: r }) {
5698
5691
  })
5699
5692
  });
5700
5693
  }
5701
- function Ca({ event: e, resources: t }) {
5702
- let n = xa(), { isAllDayLike: r } = n.dates, i = n.statusLabel(e), a = r(e) ? n.labels.allDay : Zi(e.start, e.end, n);
5694
+ function Sa({ event: e, resources: t }) {
5695
+ let n = ba(), { isAllDayLike: r } = n.dates, i = n.statusLabel(e), a = r(e) ? n.labels.allDay : Xi(e.start, e.end, n);
5703
5696
  return /* @__PURE__ */ y("div", {
5704
5697
  role: "button",
5705
5698
  tabIndex: 0,
@@ -5746,8 +5739,8 @@ function Ca({ event: e, resources: t }) {
5746
5739
  ]
5747
5740
  });
5748
5741
  }
5749
- function wa({ block: e, resources: t }) {
5750
- let n = xa(), r = e.kind ?? "available", i = r === "available" ? n.labels.available : n.labels.unavailable, a = n.hasBlockClick;
5742
+ function Ca({ block: e, resources: t }) {
5743
+ let n = ba(), r = e.kind ?? "available", i = r === "available" ? n.labels.available : n.labels.unavailable, a = n.hasBlockClick;
5751
5744
  return /* @__PURE__ */ y("div", {
5752
5745
  role: a ? "button" : void 0,
5753
5746
  tabIndex: a ? 0 : void 0,
@@ -5760,7 +5753,7 @@ function wa({ block: e, resources: t }) {
5760
5753
  children: [
5761
5754
  /* @__PURE__ */ v("span", {
5762
5755
  className: "font-mono w-24 shrink-0",
5763
- children: Zi(e.start, e.end, n)
5756
+ children: Xi(e.start, e.end, n)
5764
5757
  }),
5765
5758
  /* @__PURE__ */ v("span", {
5766
5759
  className: Y("ui-cal-agenda-swatch mt-0.5", r === "unavailable" && "ui-cal-agenda-swatch-off"),
@@ -5779,12 +5772,12 @@ function wa({ block: e, resources: t }) {
5779
5772
  }
5780
5773
  //#endregion
5781
5774
  //#region src/components/ui/calendar/MonthView.tsx
5782
- var Ta = 96, Ea = 224;
5783
- function Da(e) {
5775
+ var wa = 96, Ta = 224;
5776
+ function Ea(e) {
5784
5777
  return `${e.type}:${e.value.id}`;
5785
5778
  }
5786
- function Oa({ date: e, events: t, availability: n, label: r }) {
5787
- let i = xa(), { addDays: a, daySegment: o, differenceInDays: c, eventsOnDay: u, formatLongDate: d, fromDateKey: m, getFormatter: _, getMonthWeeks: b, isAllDayLike: x, isSameDay: S, shiftRangeDays: C, toDateKey: w } = i.dates, T = p(() => b(e, i.weekStartsOn), [
5779
+ function Da({ date: e, events: t, availability: n, label: r }) {
5780
+ let i = ba(), { addDays: a, daySegment: o, differenceInDays: c, eventsOnDay: u, formatLongDate: d, fromDateKey: m, getFormatter: _, getMonthWeeks: b, isAllDayLike: x, isSameDay: S, shiftRangeDays: C, toDateKey: w } = i.dates, T = p(() => b(e, i.weekStartsOn), [
5788
5781
  e,
5789
5782
  i.weekStartsOn,
5790
5783
  b
@@ -5808,7 +5801,7 @@ function Oa({ date: e, events: t, availability: n, label: r }) {
5808
5801
  }, []);
5809
5802
  let H = s(() => j(null), []);
5810
5803
  xn(A !== null, H, [D]), bn(A !== null, N, D, (e, t) => {
5811
- let n = Math.max(e.width, Ea);
5804
+ let n = Math.max(e.width, Ta);
5812
5805
  return {
5813
5806
  top: Math.max(8, e.top),
5814
5807
  left: Math.max(8, Math.min(e.left, t - n - 8)),
@@ -5841,7 +5834,7 @@ function Oa({ date: e, events: t, availability: n, label: r }) {
5841
5834
  u,
5842
5835
  o,
5843
5836
  w
5844
- ]), ie = _(i.locale, { weekday: "short" }), ae = i.monthMaxEvents ?? (V ? Math.max(1, Math.floor((Math.max(V / T.length, Ta) - 28) / 20)) : 3);
5837
+ ]), ie = _(i.locale, { weekday: "short" }), ae = i.monthMaxEvents ?? (V ? Math.max(1, Math.floor((Math.max(V / T.length, wa) - 28) / 20)) : 3);
5845
5838
  function oe(e) {
5846
5839
  let t = w(e);
5847
5840
  k(t), requestAnimationFrame(() => {
@@ -5873,7 +5866,7 @@ function Oa({ date: e, events: t, availability: n, label: r }) {
5873
5866
  let n = {
5874
5867
  action: "move",
5875
5868
  ...C(e.value, t),
5876
- resourceIds: la(e.value.resourceId, void 0, void 0)
5869
+ resourceIds: ca(e.value.resourceId, void 0, void 0)
5877
5870
  };
5878
5871
  return e.type === "event" ? {
5879
5872
  target: "event",
@@ -5895,7 +5888,7 @@ function Oa({ date: e, events: t, availability: n, label: r }) {
5895
5888
  if (!t || e.pointerId !== t.pointerId) return;
5896
5889
  if (!t.started) {
5897
5890
  if (Math.hypot(e.clientX - t.startX, e.clientY - t.startY) < 4) return;
5898
- t.started = !0, L(Da(t.item));
5891
+ t.started = !0, L(Ea(t.item));
5899
5892
  }
5900
5893
  let n = document.elementFromPoint(e.clientX, e.clientY)?.closest("[data-cal-date]"), r = n && E.current?.contains(n) ? n.dataset.calDate ?? null : null;
5901
5894
  t.overKey = r ?? void 0, F(r);
@@ -5948,7 +5941,7 @@ function Oa({ date: e, events: t, availability: n, label: r }) {
5948
5941
  }, "pointer");
5949
5942
  }
5950
5943
  let he = (e, t) => {
5951
- let n = Da(e), r = e.value.placeholder ? {
5944
+ let n = Ea(e), r = e.value.placeholder ? {
5952
5945
  "aria-hidden": !0,
5953
5946
  "data-placeholder": !0
5954
5947
  } : {
@@ -5968,7 +5961,7 @@ function Oa({ date: e, events: t, availability: n, label: r }) {
5968
5961
  ...r,
5969
5962
  children: [i.display.time && /* @__PURE__ */ v("span", {
5970
5963
  className: "ui-cal-meta font-mono shrink-0",
5971
- children: Zi(t.start, t.end, i)
5964
+ children: Xi(t.start, t.end, i)
5972
5965
  }), i.display.blockLabels && /* @__PURE__ */ v("span", {
5973
5966
  className: "ui-cal-title",
5974
5967
  children: t.label ?? ((t.kind ?? "available") === "available" ? i.labels.available : i.labels.unavailable)
@@ -5991,7 +5984,7 @@ function Oa({ date: e, events: t, availability: n, label: r }) {
5991
5984
  }),
5992
5985
  !o && i.display.time && /* @__PURE__ */ v("span", {
5993
5986
  className: "ui-cal-meta font-mono shrink-0",
5994
- children: Xi(a.start, i)
5987
+ children: Yi(a.start, i)
5995
5988
  }),
5996
5989
  /* @__PURE__ */ v("span", {
5997
5990
  className: "ui-cal-title font-medium",
@@ -6089,8 +6082,8 @@ function Oa({ date: e, events: t, availability: n, label: r }) {
6089
6082
  }
6090
6083
  //#endregion
6091
6084
  //#region src/components/ui/calendar/items.tsx
6092
- function ka({ event: e, style: t, resizeEdge: n, compact: r, dense: i, continuesBefore: a, continuesAfter: o, dragging: s, onKeyDown: c, onClick: l }) {
6093
- let u = xa(), d = u.canEditEvent(e), f = e.allDay ? u.labels.allDay : Zi(e.start, e.end, u), { display: p } = u, m = p.status ? u.statusLabel(e) : void 0, h = [p.time && f, m].filter(Boolean).join(" · "), g = !!e.placeholder, b = u.renderEvent?.(e, {
6085
+ function Oa({ event: e, style: t, resizeEdge: n, compact: r, dense: i, continuesBefore: a, continuesAfter: o, dragging: s, onKeyDown: c, onClick: l }) {
6086
+ let u = ba(), d = u.canEditEvent(e), f = e.allDay ? u.labels.allDay : Xi(e.start, e.end, u), { display: p } = u, m = p.status ? u.statusLabel(e) : void 0, h = [p.time && f, m].filter(Boolean).join(" · "), g = !!e.placeholder, b = u.renderEvent?.(e, {
6094
6087
  view: u.view,
6095
6088
  compact: r,
6096
6089
  timeLabel: f,
@@ -6121,7 +6114,7 @@ function ka({ event: e, style: t, resizeEdge: n, compact: r, dense: i, continues
6121
6114
  }), h && /* @__PURE__ */ v("span", {
6122
6115
  className: "ui-cal-meta font-mono",
6123
6116
  children: h
6124
- })] }) : /* @__PURE__ */ v(Aa, {
6117
+ })] }) : /* @__PURE__ */ v(ka, {
6125
6118
  event: e,
6126
6119
  compact: r,
6127
6120
  timeLabel: p.time ? f : void 0,
@@ -6136,7 +6129,7 @@ function ka({ event: e, style: t, resizeEdge: n, compact: r, dense: i, continues
6136
6129
  })]
6137
6130
  });
6138
6131
  }
6139
- function Aa({ event: e, compact: t, timeLabel: n, statusLabel: r, description: i, badge: a }) {
6132
+ function ka({ event: e, compact: t, timeLabel: n, statusLabel: r, description: i, badge: a }) {
6140
6133
  return t ? /* @__PURE__ */ y("div", {
6141
6134
  className: "flex min-w-0 items-center gap-1",
6142
6135
  children: [/* @__PURE__ */ y("span", {
@@ -6174,8 +6167,8 @@ function Aa({ event: e, compact: t, timeLabel: n, statusLabel: r, description: i
6174
6167
  })
6175
6168
  ] });
6176
6169
  }
6177
- function ja({ block: e, style: t, resizeEdge: n, continuesAfter: r, dragging: i, onKeyDown: a, onClick: o }) {
6178
- let s = xa(), c = s.editLayer === "availability", l = c && s.canEditBlock(e), u = e.kind ?? "available", d = e.label ?? (u === "available" ? s.labels.available : s.labels.unavailable), f = c && !e.placeholder && (l || s.hasBlockClick);
6170
+ function Aa({ block: e, style: t, resizeEdge: n, continuesAfter: r, dragging: i, onKeyDown: a, onClick: o }) {
6171
+ let s = ba(), c = s.editLayer === "availability", l = c && s.canEditBlock(e), u = e.kind ?? "available", d = e.label ?? (u === "available" ? s.labels.available : s.labels.unavailable), f = c && !e.placeholder && (l || s.hasBlockClick);
6179
6172
  return u === "available" && !c && !s.display.availableBlocks ? null : /* @__PURE__ */ y("div", {
6180
6173
  role: f ? "button" : void 0,
6181
6174
  tabIndex: f ? 0 : void 0,
@@ -6200,7 +6193,7 @@ function ja({ block: e, style: t, resizeEdge: n, continuesAfter: r, dragging: i,
6200
6193
  }),
6201
6194
  c && s.display.time && /* @__PURE__ */ v("span", {
6202
6195
  className: "ui-cal-meta font-mono block",
6203
- children: Zi(e.start, e.end, s)
6196
+ children: Xi(e.start, e.end, s)
6204
6197
  }),
6205
6198
  n && l && !r && /* @__PURE__ */ v("div", {
6206
6199
  "data-cal-resize": !0,
@@ -6211,8 +6204,8 @@ function ja({ block: e, style: t, resizeEdge: n, continuesAfter: r, dragging: i,
6211
6204
  ]
6212
6205
  });
6213
6206
  }
6214
- function Ma({ draft: e, invalid: t, style: n }) {
6215
- let r = xa(), i = e.target === "event" ? e.event.title : e.target === "availability" ? e.availability.label ?? r.labels.available : void 0;
6207
+ function ja({ draft: e, invalid: t, style: n }) {
6208
+ let r = ba(), i = e.target === "event" ? e.event.title : e.target === "availability" ? e.availability.label ?? r.labels.available : void 0;
6216
6209
  return /* @__PURE__ */ y("div", {
6217
6210
  className: "ui-cal-ghost",
6218
6211
  "data-invalid": t ? !0 : void 0,
@@ -6225,7 +6218,7 @@ function Ma({ draft: e, invalid: t, style: n }) {
6225
6218
  }),
6226
6219
  /* @__PURE__ */ v("div", {
6227
6220
  className: "font-mono",
6228
- children: Zi(e.start, e.end, r)
6221
+ children: Xi(e.start, e.end, r)
6229
6222
  }),
6230
6223
  t && /* @__PURE__ */ v("div", {
6231
6224
  className: "text-red font-medium",
@@ -6236,15 +6229,15 @@ function Ma({ draft: e, invalid: t, style: n }) {
6236
6229
  }
6237
6230
  //#endregion
6238
6231
  //#region src/components/ui/calendar/useGridInteraction.ts
6239
- var Na = 4, Pa = 10, Fa = 36;
6240
- function Ia(e, t, n, r, i) {
6241
- let a = sa(e.value.resourceId).length > 0, o = {
6232
+ var Ma = 4, Na = 10, Pa = 36;
6233
+ function Fa(e, t, n, r, i) {
6234
+ let a = oa(e.value.resourceId).length > 0, o = {
6242
6235
  action: t,
6243
6236
  start: n.start,
6244
6237
  end: n.end,
6245
6238
  resourceId: a ? i : void 0,
6246
6239
  previousResourceId: a ? r : void 0,
6247
- resourceIds: la(e.value.resourceId, r, i)
6240
+ resourceIds: ca(e.value.resourceId, r, i)
6248
6241
  };
6249
6242
  return e.type === "event" ? {
6250
6243
  target: "event",
@@ -6256,11 +6249,11 @@ function Ia(e, t, n, r, i) {
6256
6249
  ...o
6257
6250
  };
6258
6251
  }
6259
- function La(e, t) {
6260
- return t.target === "selection" ? !1 : ga(e.value, t) && (t.resourceId === void 0 || t.resourceId === t.previousResourceId);
6252
+ function Ia(e, t) {
6253
+ return t.target === "selection" ? !1 : ha(e.value, t) && (t.resourceId === void 0 || t.resourceId === t.previousResourceId);
6261
6254
  }
6262
- function Ra({ axis: e, columns: t, pxPerMinute: n, scrollRef: r, events: i, blocks: a, initialColumn: o }) {
6263
- let s = xa(), { addMinutes: c, computeNudgeRange: u, dateAtMinutes: d, differenceInDays: p, shiftRangeDays: m } = s.dates, [_, v] = g(null), [y, b] = g(null), x = h(null), S = h({
6255
+ function La({ axis: e, columns: t, pxPerMinute: n, scrollRef: r, events: i, blocks: a, initialColumn: o }) {
6256
+ let s = ba(), { addMinutes: c, computeNudgeRange: u, dateAtMinutes: d, differenceInDays: p, shiftRangeDays: m } = s.dates, [_, v] = g(null), [y, b] = g(null), x = h(null), S = h({
6264
6257
  ctx: s,
6265
6258
  columns: t,
6266
6259
  axis: e,
@@ -6326,12 +6319,12 @@ function Ra({ axis: e, columns: t, pxPerMinute: n, scrollRef: r, events: i, bloc
6326
6319
  if (!r) return;
6327
6320
  e.hover = r.index;
6328
6321
  let a = n[r.index], c = i(e.item.value, a.day, T(r.el, e.lastX, e.lastY), e.grabOffset, o, t.dayBounds(a.day));
6329
- l = Ia(e.item, "move", c, s.resourceId, a.resourceId);
6322
+ l = Fa(e.item, "move", c, s.resourceId, a.resourceId);
6330
6323
  } else if (e.kind === "resize" && e.item) {
6331
6324
  let t = w(e.origin);
6332
6325
  if (!t) return;
6333
6326
  let n = a(e.item.value, s.day, T(t, e.lastX, e.lastY), o, c);
6334
- l = Ia(e.item, "resize", {
6327
+ l = Fa(e.item, "resize", {
6335
6328
  start: e.item.value.start,
6336
6329
  end: n
6337
6330
  }, s.resourceId, s.resourceId);
@@ -6346,7 +6339,7 @@ function Ra({ axis: e, columns: t, pxPerMinute: n, scrollRef: r, events: i, bloc
6346
6339
  let t = r.current;
6347
6340
  if (!t || !e.started) return;
6348
6341
  let n = t.getBoundingClientRect(), i = 0, a = 0;
6349
- if (e.lastY < n.top + Fa ? a = -1 : e.lastY > n.bottom - Fa && (a = 1), e.lastX < n.left + Fa ? i = -1 : e.lastX > n.right - Fa && (i = 1), !i && !a) {
6342
+ if (e.lastY < n.top + Pa ? a = -1 : e.lastY > n.bottom - Pa && (a = 1), e.lastX < n.left + Pa ? i = -1 : e.lastX > n.right - Pa && (i = 1), !i && !a) {
6350
6343
  e.frame = void 0;
6351
6344
  return;
6352
6345
  }
@@ -6359,7 +6352,7 @@ function Ra({ axis: e, columns: t, pxPerMinute: n, scrollRef: r, events: i, bloc
6359
6352
  if (a && (x.current = null, a.cleanup(), a.frame && cancelAnimationFrame(a.frame), v(null), e)) {
6360
6353
  if (a.started) {
6361
6354
  let e = a.current;
6362
- if (!e || a.item && La(a.item, e.draft)) return;
6355
+ if (!e || a.item && Ia(a.item, e.draft)) return;
6363
6356
  t.commit(e.draft, "pointer");
6364
6357
  return;
6365
6358
  }
@@ -6371,7 +6364,7 @@ function Ra({ axis: e, columns: t, pxPerMinute: n, scrollRef: r, events: i, bloc
6371
6364
  if (a.kind === "create") {
6372
6365
  let e = n[a.origin];
6373
6366
  if (!e) return;
6374
- let o = t.dayBounds(e.day), s = Math.min(i, o.max - o.min), c = X(Vi(a.anchorMinute, i, "floor"), o.min, o.max - s), l = Math.min(c + Math.max(i, t.clickCreateDuration), o.max);
6367
+ let o = t.dayBounds(e.day), s = Math.min(i, o.max - o.min), c = X(Bi(a.anchorMinute, i, "floor"), o.min, o.max - s), l = Math.min(c + Math.max(i, t.clickCreateDuration), o.max);
6375
6368
  t.commit({
6376
6369
  target: "selection",
6377
6370
  action: "create",
@@ -6421,11 +6414,11 @@ function Ra({ axis: e, columns: t, pxPerMinute: n, scrollRef: r, events: i, bloc
6421
6414
  let n = Math.hypot(e.clientX - t.startX, e.clientY - t.startY);
6422
6415
  if (!t.started) {
6423
6416
  if (t.pointerType === "touch") {
6424
- n > Pa && (t.moved = !0);
6417
+ n > Na && (t.moved = !0);
6425
6418
  return;
6426
6419
  }
6427
- if (t.kind === "click" || n < Na) {
6428
- n >= Na && (t.moved = !0);
6420
+ if (t.kind === "click" || n < Ma) {
6421
+ n >= Ma && (t.moved = !0);
6429
6422
  return;
6430
6423
  }
6431
6424
  t.started = !0, r.current?.setPointerCapture?.(t.pointerId);
@@ -6484,17 +6477,17 @@ function Ra({ axis: e, columns: t, pxPerMinute: n, scrollRef: r, events: i, bloc
6484
6477
  if (n.shiftKey) {
6485
6478
  let t = c(d.end, e);
6486
6479
  if (t.getTime() - d.start.getTime() < C * 6e4) return;
6487
- v = Ia(f, "resize", {
6480
+ v = Fa(f, "resize", {
6488
6481
  start: d.start,
6489
6482
  end: t
6490
6483
  }, _.resourceId, _.resourceId);
6491
- } else v = Ia(f, "move", u(d, e, s.dayBounds(d.start)), _.resourceId, _.resourceId);
6484
+ } else v = Fa(f, "move", u(d, e, s.dayBounds(d.start)), _.resourceId, _.resourceId);
6492
6485
  } else if (g.includes(n.key) && !n.shiftKey) {
6493
6486
  let e = t[l + (n.key === g[0] ? -1 : 1)];
6494
6487
  if (!e) return;
6495
- v = Ia(f, "move", m(d, p(e.day, _.day)), _.resourceId, e.resourceId);
6488
+ v = Fa(f, "move", m(d, p(e.day, _.day)), _.resourceId, e.resourceId);
6496
6489
  }
6497
- v && (n.preventDefault(), !La(f, v) && s.commit(v, "keyboard") && j(o));
6490
+ v && (n.preventDefault(), !Ia(f, v) && s.commit(v, "keyboard") && j(o));
6498
6491
  }
6499
6492
  function N(e) {
6500
6493
  if (e.target !== e.currentTarget || y) return;
@@ -6505,7 +6498,7 @@ function Ra({ axis: e, columns: t, pxPerMinute: n, scrollRef: r, events: i, bloc
6505
6498
  t && b(P());
6506
6499
  }
6507
6500
  function P() {
6508
- let e = t[X(o, 0, Math.max(0, t.length - 1))], n = e ? s.dayBounds(e.day) : s.bounds, r = Math.min(C, n.max - n.min), i = X(Vi((e && s.timeZone && s.scrollToMinute !== void 0 ? s.dates.minutesOfDay(s.dates.wallDateAtMinutes(e.day, s.scrollToMinute)) : s.scrollToMinute) ?? n.min, C, "floor"), n.min, n.max - r);
6501
+ let e = t[X(o, 0, Math.max(0, t.length - 1))], n = e ? s.dayBounds(e.day) : s.bounds, r = Math.min(C, n.max - n.min), i = X(Bi((e && s.timeZone && s.scrollToMinute !== void 0 ? s.dates.minutesOfDay(s.dates.wallDateAtMinutes(e.day, s.scrollToMinute)) : s.scrollToMinute) ?? n.min, C, "floor"), n.min, n.max - r);
6509
6502
  return {
6510
6503
  column: X(o, 0, Math.max(0, t.length - 1)),
6511
6504
  start: i,
@@ -6624,12 +6617,12 @@ function Ra({ axis: e, columns: t, pxPerMinute: n, scrollRef: r, events: i, bloc
6624
6617
  }
6625
6618
  //#endregion
6626
6619
  //#region src/components/ui/calendar/TimeGrid.tsx
6627
- var za = 22, Ba = 3, Va = 18, Ha = 36;
6628
- function Ua(e) {
6620
+ var Ra = 22, za = 3, Ba = 18, Va = 36;
6621
+ function Ha(e) {
6629
6622
  let t = e.querySelector(".ui-cal-head")?.offsetHeight ?? 0;
6630
6623
  return (e.clientHeight - t) / 2;
6631
6624
  }
6632
- function Wa(e, t, n, r, i) {
6625
+ function Ua(e, t, n, r, i) {
6633
6626
  let a = i(e.start, e.end, t);
6634
6627
  return a ? a.endMinute <= n && a.startMinute < n ? "before" : a.startMinute >= r ? "after" : {
6635
6628
  item: e,
@@ -6639,8 +6632,8 @@ function Wa(e, t, n, r, i) {
6639
6632
  continuesAfter: a.continuesAfter || a.endMinute > r
6640
6633
  } : null;
6641
6634
  }
6642
- function Ga({ days: e, events: t, availability: n, label: r }) {
6643
- let i = xa(), { daySegment: a, formatLongDate: o, getFormatter: s, isAllDayLike: c, isSameDay: d, minutesOfDay: m, toDateKey: _ } = i.dates, { bounds: b, resources: x, hourHeight: S } = i, C = S / 60, w = h(null), T = u(), [E, D] = g(!1), O = p(() => e.flatMap((e) => x.length ? x.map((t) => ({
6635
+ function Wa({ days: e, events: t, availability: n, label: r }) {
6636
+ let i = ba(), { daySegment: a, formatLongDate: o, getFormatter: s, isAllDayLike: c, isSameDay: d, minutesOfDay: m, toDateKey: _ } = i.dates, { bounds: b, resources: x, hourHeight: S } = i, C = S / 60, w = h(null), T = u(), [E, D] = g(!1), O = p(() => e.flatMap((e) => x.length ? x.map((t) => ({
6644
6637
  key: `${_(e)}|${t.id}`,
6645
6638
  day: e,
6646
6639
  bounds: i.dates.dayBounds(e, i.bounds),
@@ -6655,7 +6648,7 @@ function Ga({ days: e, events: t, availability: n, label: r }) {
6655
6648
  _,
6656
6649
  i.dates,
6657
6650
  i.bounds
6658
- ]), k = p(() => new Map(t.map((e) => [e.id, e])), [t]), A = p(() => new Map(n.map((e) => [e.id, e])), [n]), j = O.findIndex((e) => d(e.day, i.now)), M = Ra({
6651
+ ]), k = p(() => new Map(t.map((e) => [e.id, e])), [t]), A = p(() => new Map(n.map((e) => [e.id, e])), [n]), j = O.findIndex((e) => d(e.day, i.now)), M = La({
6659
6652
  axis: "y",
6660
6653
  columns: O,
6661
6654
  pxPerMinute: C,
@@ -6664,30 +6657,30 @@ function Ga({ days: e, events: t, availability: n, label: r }) {
6664
6657
  blocks: A,
6665
6658
  initialColumn: Math.max(0, j)
6666
6659
  }), { drag: N, cursor: P } = M, F = i.editLayer === "availability", I = p(() => {
6667
- let e = t.filter((e) => !c(e)), r = Va / C;
6660
+ let e = t.filter((e) => !c(e)), r = Ba / C;
6668
6661
  return O.map((t) => {
6669
6662
  let o = t.bounds ?? i.bounds, s = 0, c = 0, l = [];
6670
6663
  for (let n of e) {
6671
- if (!ca(n.resourceId, t.resourceId, { emptyMatchesAll: !1 })) continue;
6672
- let e = Wa(n, t.day, o.min, o.max, a);
6664
+ if (!sa(n.resourceId, t.resourceId, { emptyMatchesAll: !1 })) continue;
6665
+ let e = Ua(n, t.day, o.min, o.max, a);
6673
6666
  e === "before" ? s++ : e === "after" ? c++ : e && l.push(e);
6674
6667
  }
6675
- let u = aa(l.map((e) => ({
6668
+ let u = ia(l.map((e) => ({
6676
6669
  id: e.item.id,
6677
6670
  start: e.start,
6678
6671
  end: e.end
6679
6672
  })), r), d = [];
6680
6673
  for (let e of n) {
6681
- if (!ca(e.resourceId, t.resourceId, { emptyMatchesAll: !0 })) continue;
6682
- let n = Wa(e, t.day, o.min, o.max, a);
6674
+ if (!sa(e.resourceId, t.resourceId, { emptyMatchesAll: !0 })) continue;
6675
+ let n = Ua(e, t.day, o.min, o.max, a);
6683
6676
  n && typeof n == "object" && d.push(n);
6684
6677
  }
6685
- let f = F ? aa(d.map((e) => ({
6678
+ let f = F ? ia(d.map((e) => ({
6686
6679
  id: e.item.id,
6687
6680
  start: e.start,
6688
6681
  end: e.end
6689
6682
  })), r) : null, p = [];
6690
- return i.hasAvailability && i.shadeOutsideAvailability && (p = ia(o.min, o.max, d.map((e) => [e.start, e.end]))), {
6683
+ return i.hasAvailability && i.shadeOutsideAvailability && (p = ra(o.min, o.max, d.map((e) => [e.start, e.end]))), {
6691
6684
  placed: l,
6692
6685
  layout: u,
6693
6686
  blocks: d,
@@ -6714,7 +6707,7 @@ function Ga({ days: e, events: t, availability: n, label: r }) {
6714
6707
  if (!c(n)) continue;
6715
6708
  let t = -1;
6716
6709
  O.forEach((r, i) => {
6717
- let o = a(n.start, n.end, r.day) !== null && ca(n.resourceId, r.resourceId, { emptyMatchesAll: !1 });
6710
+ let o = a(n.start, n.end, r.day) !== null && sa(n.resourceId, r.resourceId, { emptyMatchesAll: !1 });
6718
6711
  o && t === -1 && (t = i);
6719
6712
  let s = i === O.length - 1;
6720
6713
  if (t !== -1 && (!o || s)) {
@@ -6728,7 +6721,7 @@ function Ga({ days: e, events: t, availability: n, label: r }) {
6728
6721
  }
6729
6722
  });
6730
6723
  }
6731
- let { lanes: n, count: r } = oa(e);
6724
+ let { lanes: n, count: r } = aa(e);
6732
6725
  return {
6733
6726
  runs: e,
6734
6727
  lanes: n,
@@ -6739,12 +6732,12 @@ function Ga({ days: e, events: t, availability: n, label: r }) {
6739
6732
  O,
6740
6733
  a,
6741
6734
  c
6742
- ]), R = E ? L.count : Math.min(L.count, Ba), z = L.runs.filter((e) => (L.lanes.get(e.id) ?? 0) >= R).length, B = h(C), V = h(null);
6735
+ ]), R = E ? L.count : Math.min(L.count, za), z = L.runs.filter((e) => (L.lanes.get(e.id) ?? 0) >= R).length, B = h(C), V = h(null);
6743
6736
  l(() => {
6744
6737
  let e = w.current;
6745
6738
  if (!e) return;
6746
6739
  let t = () => {
6747
- V.current = (e.scrollTop + Ua(e)) / B.current;
6740
+ V.current = (e.scrollTop + Ha(e)) / B.current;
6748
6741
  };
6749
6742
  return e.addEventListener("scroll", t, { passive: !0 }), () => e.removeEventListener("scroll", t);
6750
6743
  }, []), f(() => {
@@ -6752,7 +6745,7 @@ function Ga({ days: e, events: t, availability: n, label: r }) {
6752
6745
  if (!e || B.current === C) return;
6753
6746
  B.current = C;
6754
6747
  let t = V.current;
6755
- t !== null && (e.scrollTop = Math.max(0, t * C - Ua(e)));
6748
+ t !== null && (e.scrollTop = Math.max(0, t * C - Ha(e)));
6756
6749
  }, [C]);
6757
6750
  let ee = h(null), H = i.scrollToMinute, { dates: U, timeZone: te, now: W } = i, G = i.scrollAlign;
6758
6751
  l(() => {
@@ -6760,7 +6753,7 @@ function Ga({ days: e, events: t, availability: n, label: r }) {
6760
6753
  if (!t || ee.current === i.view) return;
6761
6754
  ee.current = i.view;
6762
6755
  let n = e.find((e) => d(e, W)) ?? e[0], r = te ? U.minutesOfDay(U.wallDateAtMinutes(n, H ?? 480)) : H ?? 480, a = U.dayBounds(n, b), o = t.querySelector(".ui-cal-head"), s = () => {
6763
- let e = G === "center" ? Ua(t) : 8;
6756
+ let e = G === "center" ? Ha(t) : 8;
6764
6757
  t.scrollTop = Math.max(0, (r - a.min) * C - e);
6765
6758
  };
6766
6759
  if (s(), typeof ResizeObserver > "u") return;
@@ -6795,7 +6788,7 @@ function Ga({ days: e, events: t, availability: n, label: r }) {
6795
6788
  te,
6796
6789
  W
6797
6790
  ]);
6798
- let K = e.length > 1, ne = x.length > 0, re = !!i.timeZone && i.sharedTimeAxis, ie = p(() => ya(O.map((e) => ({
6791
+ let K = e.length > 1, ne = x.length > 0, re = !!i.timeZone && i.sharedTimeAxis, ie = p(() => va(O.map((e) => ({
6799
6792
  day: e.day,
6800
6793
  bounds: e.bounds ?? i.bounds
6801
6794
  })), i.slotLabelInterval, {
@@ -6821,7 +6814,7 @@ function Ga({ days: e, events: t, availability: n, label: r }) {
6821
6814
  let e = O[P.column];
6822
6815
  if (e) {
6823
6816
  let t = e.resourceId ? i.resourceById.get(e.resourceId) : void 0;
6824
- _e = `${o(e.day, i.locale)}, ${i.timeZone ? Xi(i.dates.dateAtMinutes(e.day, P.start), i) : Ri(P.start)} to ${i.timeZone ? Xi(i.dates.dateAtMinutes(e.day, P.end), i) : Ri(P.end)}${t ? `, ${t.title}` : ""}`;
6817
+ _e = `${o(e.day, i.locale)}, ${i.timeZone ? Yi(i.dates.dateAtMinutes(e.day, P.start), i) : Li(P.start)} to ${i.timeZone ? Yi(i.dates.dateAtMinutes(e.day, P.end), i) : Li(P.end)}${t ? `, ${t.title}` : ""}`;
6825
6818
  }
6826
6819
  }
6827
6820
  return /* @__PURE__ */ v("div", {
@@ -6842,7 +6835,7 @@ function Ga({ days: e, events: t, availability: n, label: r }) {
6842
6835
  title: q ? i.timeZone : void 0,
6843
6836
  "aria-label": q ? i.timeZone : void 0,
6844
6837
  children: q
6845
- }), e.map((e) => /* @__PURE__ */ v(Ka, {
6838
+ }), e.map((e) => /* @__PURE__ */ v(Ga, {
6846
6839
  day: e,
6847
6840
  weekday: fe.format(e),
6848
6841
  isToday: d(e, i.now),
@@ -6858,7 +6851,7 @@ function Ga({ days: e, events: t, availability: n, label: r }) {
6858
6851
  title: !K && q ? i.timeZone : void 0,
6859
6852
  "aria-label": !K && q ? i.timeZone : void 0,
6860
6853
  children: K ? void 0 : q
6861
- }), O.map((e, t) => /* @__PURE__ */ v(qa, {
6854
+ }), O.map((e, t) => /* @__PURE__ */ v(Ka, {
6862
6855
  resource: i.resourceById.get(e.resourceId ?? ""),
6863
6856
  sub: t % x.length !== 0
6864
6857
  }, e.key))]
@@ -6867,7 +6860,7 @@ function Ga({ days: e, events: t, availability: n, label: r }) {
6867
6860
  className: "border-border flex border-t",
6868
6861
  children: [/* @__PURE__ */ y("div", {
6869
6862
  className: "ui-cal-corner text-text-tertiary flex flex-col items-end justify-center gap-0.5 pr-2 text-2xs",
6870
- children: [/* @__PURE__ */ v("span", { children: i.labels.allDay }), L.count > Ba && /* @__PURE__ */ v("button", {
6863
+ children: [/* @__PURE__ */ v("span", { children: i.labels.allDay }), L.count > za && /* @__PURE__ */ v("button", {
6871
6864
  type: "button",
6872
6865
  className: "text-accent cursor-pointer hover:underline",
6873
6866
  "aria-expanded": E,
@@ -6876,19 +6869,19 @@ function Ga({ days: e, events: t, availability: n, label: r }) {
6876
6869
  })]
6877
6870
  }), /* @__PURE__ */ v("div", {
6878
6871
  className: "relative flex-1",
6879
- style: { height: R * za + 4 },
6872
+ style: { height: R * Ra + 4 },
6880
6873
  children: L.runs.map((e) => {
6881
6874
  let t = L.lanes.get(e.id) ?? 0;
6882
6875
  if (t >= R) return null;
6883
6876
  let n = O[e.start], r = O[e.end - 1];
6884
- return /* @__PURE__ */ v(ka, {
6877
+ return /* @__PURE__ */ v(Oa, {
6885
6878
  event: e.event,
6886
6879
  compact: !0,
6887
6880
  continuesBefore: !!n && a(e.event.start, e.event.end, n.day)?.continuesBefore,
6888
6881
  continuesAfter: !!r && a(e.event.start, e.event.end, r.day)?.continuesAfter,
6889
6882
  style: {
6890
- top: t * za + 2,
6891
- height: za - 3,
6883
+ top: t * Ra + 2,
6884
+ height: Ra - 3,
6892
6885
  left: `calc(${e.start / O.length * 100}% + 2px)`,
6893
6886
  width: `calc(${(e.end - e.start) / O.length * 100}% - 4px)`,
6894
6887
  justifyContent: "center"
@@ -6919,13 +6912,13 @@ function Ga({ days: e, events: t, availability: n, label: r }) {
6919
6912
  return /* @__PURE__ */ v("span", {
6920
6913
  className: "text-text-tertiary font-mono absolute right-2 -translate-y-1/2 text-2xs",
6921
6914
  style: { top: (e - ae.bounds.min) * C },
6922
- children: Qi(t.hour * 60 + t.minute, i)
6915
+ children: Zi(t.hour * 60 + t.minute, i)
6923
6916
  }, e);
6924
6917
  }),
6925
6918
  !i.timeZone && ue.map((e) => /* @__PURE__ */ v("span", {
6926
6919
  className: "text-text-tertiary font-mono absolute right-2 -translate-y-1/2 text-2xs",
6927
6920
  style: { top: (e - b.min) * C },
6928
- children: Qi(e, i)
6921
+ children: Zi(e, i)
6929
6922
  }, e))
6930
6923
  ]
6931
6924
  }), /* @__PURE__ */ y("div", {
@@ -6967,7 +6960,7 @@ function Ga({ days: e, events: t, availability: n, label: r }) {
6967
6960
  className: "ui-cal-zone-label",
6968
6961
  style: { top: (t - r.min) * C },
6969
6962
  "aria-hidden": "true",
6970
- children: Xi(i.dates.dateAtMinutes(e.day, t), i)
6963
+ children: Yi(i.dates.dateAtMinutes(e.day, t), i)
6971
6964
  }, `label-${t}`)),
6972
6965
  n.outside.map(([e, t]) => /* @__PURE__ */ v("div", {
6973
6966
  className: "ui-cal-outside",
@@ -6981,7 +6974,7 @@ function Ga({ days: e, events: t, availability: n, label: r }) {
6981
6974
  }, `o${e}`)),
6982
6975
  n.blocks.map((e) => {
6983
6976
  let a = n.blockLayout?.get(e.item.id);
6984
- return /* @__PURE__ */ v(ja, {
6977
+ return /* @__PURE__ */ v(Aa, {
6985
6978
  block: e.item,
6986
6979
  resizeEdge: "bottom",
6987
6980
  continuesAfter: e.continuesAfter,
@@ -7002,10 +6995,10 @@ function Ga({ days: e, events: t, availability: n, label: r }) {
7002
6995
  style: o ? { left: o } : void 0,
7003
6996
  className: Y("absolute inset-0", F && "ui-cal-muted-layer"),
7004
6997
  children: n.placed.map((e) => {
7005
- let a = n.layout.get(e.item.id), o = Math.max((e.end - e.start) * C, Va);
7006
- return /* @__PURE__ */ v(ka, {
6998
+ let a = n.layout.get(e.item.id), o = Math.max((e.end - e.start) * C, Ba);
6999
+ return /* @__PURE__ */ v(Oa, {
7007
7000
  event: e.item,
7008
- compact: o < Ha,
7001
+ compact: o < Va,
7009
7002
  resizeEdge: "bottom",
7010
7003
  continuesBefore: e.continuesBefore,
7011
7004
  continuesAfter: e.continuesAfter,
@@ -7041,14 +7034,14 @@ function Ga({ days: e, events: t, availability: n, label: r }) {
7041
7034
  "data-dot": !l || void 0,
7042
7035
  style: { top: (pe - r.min) * C }
7043
7036
  }),
7044
- he && ca(ge, e.resourceId, { emptyMatchesAll: !0 }) && (() => {
7045
- let t = Wa(he, e.day, r.min, r.max, a);
7046
- return !t || typeof t != "object" ? null : /* @__PURE__ */ v(Ma, {
7037
+ he && sa(ge, e.resourceId, { emptyMatchesAll: !0 }) && (() => {
7038
+ let t = Ua(he, e.day, r.min, r.max, a);
7039
+ return !t || typeof t != "object" ? null : /* @__PURE__ */ v(ja, {
7047
7040
  draft: he,
7048
7041
  invalid: N?.invalid,
7049
7042
  style: {
7050
7043
  top: (t.start - r.min) * C + 1,
7051
- height: Math.max((t.end - t.start) * C - 2, Va),
7044
+ height: Math.max((t.end - t.start) * C - 2, Ba),
7052
7045
  left: o + 1,
7053
7046
  right: 4
7054
7047
  }
@@ -7073,8 +7066,8 @@ function Ga({ days: e, events: t, availability: n, label: r }) {
7073
7066
  })
7074
7067
  });
7075
7068
  }
7076
- function Ka({ day: e, weekday: t, isToday: n, grow: r, bordered: i, onOpen: a }) {
7077
- let o = xa();
7069
+ function Ga({ day: e, weekday: t, isToday: n, grow: r, bordered: i, onOpen: a }) {
7070
+ let o = ba();
7078
7071
  return /* @__PURE__ */ v("div", {
7079
7072
  className: Y("flex min-w-0 items-center justify-center py-1.5", i && "border-border border-l"),
7080
7073
  style: { flex: `${r} 1 0` },
@@ -7094,8 +7087,8 @@ function Ka({ day: e, weekday: t, isToday: n, grow: r, bordered: i, onOpen: a })
7094
7087
  })
7095
7088
  });
7096
7089
  }
7097
- function qa({ resource: e, sub: t }) {
7098
- let n = xa();
7090
+ function Ka({ resource: e, sub: t }) {
7091
+ let n = ba();
7099
7092
  return /* @__PURE__ */ y("div", {
7100
7093
  className: Y("border-border flex min-w-0 flex-1 items-center gap-1.5 border-l px-2 py-1.5", t && "ui-cal-subhead"),
7101
7094
  style: { minWidth: n.resourceMinWidth },
@@ -7117,8 +7110,8 @@ function qa({ resource: e, sub: t }) {
7117
7110
  }
7118
7111
  //#endregion
7119
7112
  //#region src/components/ui/calendar/TimelineView.tsx
7120
- var Ja = 34, Ya = 4, Xa = 28;
7121
- function Za(e, t, n, r, i) {
7113
+ var qa = 34, Ja = 4, Ya = 28;
7114
+ function Xa(e, t, n, r, i) {
7122
7115
  let a = i(e.start, e.end, t);
7123
7116
  return !a || a.endMinute <= n || a.startMinute >= r ? null : {
7124
7117
  item: e,
@@ -7128,8 +7121,8 @@ function Za(e, t, n, r, i) {
7128
7121
  continuesAfter: a.continuesAfter || a.endMinute > r
7129
7122
  };
7130
7123
  }
7131
- function Qa({ day: e, events: t, availability: n, label: r }) {
7132
- let i = xa(), { daySegment: a, isSameDay: o, minutesOfDay: s } = i.dates, c = i.dayBounds(e), d = h(null), f = i.resources.length === 0 && t.length === 0 && n.length === 0, [m, _] = g(0);
7124
+ function Za({ day: e, events: t, availability: n, label: r }) {
7125
+ let i = ba(), { daySegment: a, isSameDay: o, minutesOfDay: s } = i.dates, c = i.dayBounds(e), d = h(null), f = i.resources.length === 0 && t.length === 0 && n.length === 0, [m, _] = g(0);
7133
7126
  l(() => {
7134
7127
  let e = d.current;
7135
7128
  if (!e || typeof ResizeObserver > "u") return;
@@ -7160,7 +7153,7 @@ function Qa({ day: e, events: t, availability: n, label: r }) {
7160
7153
  D,
7161
7154
  T,
7162
7155
  e
7163
- ]), k = Ra({
7156
+ ]), k = La({
7164
7157
  axis: "x",
7165
7158
  columns: O,
7166
7159
  pxPerMinute: S,
@@ -7169,13 +7162,13 @@ function Qa({ day: e, events: t, availability: n, label: r }) {
7169
7162
  blocks: p(() => new Map(n.map((e) => [e.id, e])), [n]),
7170
7163
  initialColumn: 0
7171
7164
  }), { drag: j, cursor: N } = k, P = i.editLayer === "availability", F = p(() => {
7172
- let r = Xa / S;
7165
+ let r = Ya / S;
7173
7166
  return O.map((o) => {
7174
- let s = t.filter((e) => ca(e.resourceId, o.resourceId, { emptyMatchesAll: !1 })).map((t) => Za(t, e, c.min, c.max, a)).filter((e) => e !== null), l = oa(s.map((e) => ({
7167
+ let s = t.filter((e) => sa(e.resourceId, o.resourceId, { emptyMatchesAll: !1 })).map((t) => Xa(t, e, c.min, c.max, a)).filter((e) => e !== null), l = aa(s.map((e) => ({
7175
7168
  id: e.item.id,
7176
7169
  start: e.start,
7177
7170
  end: Math.max(e.end, e.start + r)
7178
- }))), u = n.filter((e) => ca(e.resourceId, o.resourceId, { emptyMatchesAll: !0 })).map((t) => Za(t, e, c.min, c.max, a)).filter((e) => e !== null), d = P ? oa(u.map((e) => ({
7171
+ }))), u = n.filter((e) => sa(e.resourceId, o.resourceId, { emptyMatchesAll: !0 })).map((t) => Xa(t, e, c.min, c.max, a)).filter((e) => e !== null), d = P ? aa(u.map((e) => ({
7179
7172
  id: e.item.id,
7180
7173
  start: e.start,
7181
7174
  end: Math.max(e.end, e.start + r)
@@ -7185,7 +7178,7 @@ function Qa({ day: e, events: t, availability: n, label: r }) {
7185
7178
  lanes: l,
7186
7179
  blocks: u,
7187
7180
  blockLanes: d,
7188
- outside: i.hasAvailability && i.shadeOutsideAvailability ? ia(c.min, c.max, u.map((e) => [e.start, e.end])) : [],
7181
+ outside: i.hasAvailability && i.shadeOutsideAvailability ? ra(c.min, c.max, u.map((e) => [e.start, e.end])) : [],
7189
7182
  laneCount: f
7190
7183
  };
7191
7184
  });
@@ -7222,7 +7215,7 @@ function Qa({ day: e, events: t, availability: n, label: r }) {
7222
7215
  }, W = "";
7223
7216
  if (N) {
7224
7217
  let t = O[N.column], n = t?.resourceId ? i.resourceById.get(t.resourceId) : void 0;
7225
- W = `${n ? `${n.title}, ` : ""}${i.timeZone ? Xi(i.dates.dateAtMinutes(e, N.start), i) : Ri(N.start)} to ${i.timeZone ? Xi(i.dates.dateAtMinutes(e, N.end), i) : Ri(N.end)}`;
7218
+ W = `${n ? `${n.title}, ` : ""}${i.timeZone ? Yi(i.dates.dateAtMinutes(e, N.start), i) : Li(N.start)} to ${i.timeZone ? Yi(i.dates.dateAtMinutes(e, N.end), i) : Li(N.end)}`;
7226
7219
  }
7227
7220
  function G(e) {
7228
7221
  E((t) => {
@@ -7250,7 +7243,7 @@ function Qa({ day: e, events: t, availability: n, label: r }) {
7250
7243
  children: z.map((t) => /* @__PURE__ */ v("span", {
7251
7244
  className: "text-text-tertiary font-mono absolute top-1.5 text-2xs",
7252
7245
  style: { left: (t - c.min) * S + 4 },
7253
- children: i.timeZone ? Xi(i.dates.dateAtMinutes(e, t), i) : Qi(t, i)
7246
+ children: i.timeZone ? Yi(i.dates.dateAtMinutes(e, t), i) : Zi(t, i)
7254
7247
  }, t))
7255
7248
  })]
7256
7249
  }), /* @__PURE__ */ y("div", {
@@ -7296,7 +7289,7 @@ function Qa({ day: e, events: t, availability: n, label: r }) {
7296
7289
  }), !n && t.resources.map((t) => {
7297
7290
  let n = K++, r = F[n], o = O[n];
7298
7291
  if (!r || !o) return null;
7299
- let s = r.laneCount * Ja + Ya * 2;
7292
+ let s = r.laneCount * qa + Ja * 2;
7300
7293
  return /* @__PURE__ */ y("div", {
7301
7294
  className: "border-border flex border-b",
7302
7295
  children: [/* @__PURE__ */ y("div", {
@@ -7336,7 +7329,7 @@ function Qa({ day: e, events: t, availability: n, label: r }) {
7336
7329
  }, `o${e}`)),
7337
7330
  r.blocks.map((e) => {
7338
7331
  let t = r.blockLanes?.lanes.get(e.item.id);
7339
- return /* @__PURE__ */ v(ja, {
7332
+ return /* @__PURE__ */ v(Aa, {
7340
7333
  block: e.item,
7341
7334
  resizeEdge: "right",
7342
7335
  continuesAfter: e.continuesAfter,
@@ -7344,8 +7337,8 @@ function Qa({ day: e, events: t, availability: n, label: r }) {
7344
7337
  style: {
7345
7338
  left: (e.start - c.min) * S,
7346
7339
  width: Math.max((e.end - e.start) * S, 4),
7347
- top: t === void 0 ? 0 : Ya + t * Ja,
7348
- height: t === void 0 ? "100%" : Ja - 3
7340
+ top: t === void 0 ? 0 : Ja + t * qa,
7341
+ height: t === void 0 ? "100%" : qa - 3
7349
7342
  },
7350
7343
  onKeyDown: (t) => k.onItemKeyDown(t, "availability", e.item.id, n),
7351
7344
  onClick: (t) => {
@@ -7357,7 +7350,7 @@ function Qa({ day: e, events: t, availability: n, label: r }) {
7357
7350
  className: Y("absolute inset-0", P && "ui-cal-muted-layer"),
7358
7351
  children: r.placed.map((e) => {
7359
7352
  let t = r.lanes.lanes.get(e.item.id) ?? 0;
7360
- return /* @__PURE__ */ v(ka, {
7353
+ return /* @__PURE__ */ v(Oa, {
7361
7354
  event: e.item,
7362
7355
  compact: !1,
7363
7356
  dense: !0,
@@ -7367,9 +7360,9 @@ function Qa({ day: e, events: t, availability: n, label: r }) {
7367
7360
  dragging: j?.itemId === e.item.id,
7368
7361
  style: {
7369
7362
  left: (e.start - c.min) * S + 1,
7370
- width: Math.max((e.end - e.start) * S, Xa) - 2,
7371
- top: Ya + t * Ja,
7372
- height: Ja - 3,
7363
+ width: Math.max((e.end - e.start) * S, Ya) - 2,
7364
+ top: Ja + t * qa,
7365
+ height: qa - 3,
7373
7366
  justifyContent: "center"
7374
7367
  },
7375
7368
  onKeyDown: (t) => k.onItemKeyDown(t, "event", e.item.id, n),
@@ -7384,16 +7377,16 @@ function Qa({ day: e, events: t, availability: n, label: r }) {
7384
7377
  "data-axis": "x",
7385
7378
  style: { left: (V - c.min) * S }
7386
7379
  }),
7387
- H && ca(U, o.resourceId, { emptyMatchesAll: !0 }) && (() => {
7388
- let t = Za(H, e, c.min, c.max, a);
7389
- return t ? /* @__PURE__ */ v(Ma, {
7380
+ H && sa(U, o.resourceId, { emptyMatchesAll: !0 }) && (() => {
7381
+ let t = Xa(H, e, c.min, c.max, a);
7382
+ return t ? /* @__PURE__ */ v(ja, {
7390
7383
  draft: H,
7391
7384
  invalid: j?.invalid,
7392
7385
  style: {
7393
7386
  left: (t.start - c.min) * S + 1,
7394
- width: Math.max((t.end - t.start) * S - 2, Xa),
7395
- top: Ya,
7396
- bottom: Ya
7387
+ width: Math.max((t.end - t.start) * S - 2, Ya),
7388
+ top: Ja,
7389
+ bottom: Ja
7397
7390
  }
7398
7391
  }) : null;
7399
7392
  })(),
@@ -7419,7 +7412,7 @@ function Qa({ day: e, events: t, availability: n, label: r }) {
7419
7412
  }
7420
7413
  //#endregion
7421
7414
  //#region src/components/ui/calendar/types.ts
7422
- var $a = {
7415
+ var Qa = {
7423
7416
  today: "Today",
7424
7417
  previous: "Previous",
7425
7418
  next: "Next",
@@ -7456,7 +7449,30 @@ var $a = {
7456
7449
  };
7457
7450
  //#endregion
7458
7451
  //#region src/components/ui/RadioPill.tsx
7459
- function eo({ options: e, value: t, onChange: n, disabled: r, className: i, "aria-label": a }) {
7452
+ function $a({ options: e, value: t, onChange: n, disabled: r, className: i, "aria-label": a }) {
7453
+ let o = r ? [] : e.filter((e) => !e.disabled), s = o.find((e) => e.value === t) ?? o[0];
7454
+ function c(e, r) {
7455
+ if (e.altKey || e.ctrlKey || e.metaKey || e.shiftKey) return;
7456
+ let i;
7457
+ switch (e.key) {
7458
+ case "ArrowRight":
7459
+ case "ArrowDown":
7460
+ i = 1;
7461
+ break;
7462
+ case "ArrowLeft":
7463
+ case "ArrowUp":
7464
+ i = -1;
7465
+ break;
7466
+ default: return;
7467
+ }
7468
+ let a = o.findIndex((e) => e.value === r);
7469
+ if (a < 0) return;
7470
+ e.preventDefault();
7471
+ let s = (a + i + o.length) % o.length;
7472
+ (e.currentTarget.parentElement?.querySelectorAll("[role=\"radio\"]:enabled"))?.[s]?.focus();
7473
+ let c = o[s].value;
7474
+ c !== t && n(c);
7475
+ }
7460
7476
  return /* @__PURE__ */ v("div", {
7461
7477
  role: "radiogroup",
7462
7478
  "aria-label": a,
@@ -7465,34 +7481,36 @@ function eo({ options: e, value: t, onChange: n, disabled: r, className: i, "ari
7465
7481
  type: "button",
7466
7482
  role: "radio",
7467
7483
  "aria-checked": e.value === t,
7468
- disabled: r,
7484
+ tabIndex: e === s ? 0 : -1,
7485
+ disabled: r || e.disabled,
7486
+ onKeyDown: (t) => c(t, e.value),
7469
7487
  onClick: () => n(e.value),
7470
- className: Y("font-control px-3 py-1.5 text-xs font-medium transition-colors duration-[100ms]", "focus-visible:outline-accent focus-visible:outline-2 focus-visible:outline-offset-[-2px]", !r && "cursor-pointer", e.value === t ? "bg-accent text-text-on-accent" : "bg-bg-secondary text-text-secondary hover:bg-bg-hover hover:text-text-primary"),
7488
+ className: Y("font-control px-3 py-1.5 text-xs font-medium transition-colors duration-[100ms]", "focus-visible:outline-accent focus-visible:outline-2 focus-visible:outline-offset-[-2px]", e.disabled && !r && "cursor-not-allowed opacity-40", !r && !e.disabled && "cursor-pointer", e.value === t ? "bg-accent text-text-on-accent" : "bg-bg-secondary text-text-secondary hover:bg-bg-hover hover:text-text-primary"),
7471
7489
  children: e.label
7472
7490
  }, e.value))
7473
7491
  });
7474
7492
  }
7475
7493
  //#endregion
7476
7494
  //#region src/components/ui/Calendar.tsx
7477
- var to = [
7495
+ var eo = [
7478
7496
  "day",
7479
7497
  "threeDay",
7480
7498
  "week",
7481
7499
  "month",
7482
7500
  "agenda"
7483
7501
  ];
7484
- function no() {
7502
+ function to() {
7485
7503
  return /* @__PURE__ */ new Date();
7486
7504
  }
7487
- function ro(e) {
7488
- let [t, n] = g(no);
7505
+ function no(e) {
7506
+ let [t, n] = g(to);
7489
7507
  return l(() => {
7490
7508
  if (e) return;
7491
- let t = setInterval(() => n(no()), 3e4);
7509
+ let t = setInterval(() => n(to()), 3e4);
7492
7510
  return () => clearInterval(t);
7493
7511
  }, [e]), e ?? t;
7494
7512
  }
7495
- function io(e) {
7513
+ function ro(e) {
7496
7514
  let [t, n] = g(null);
7497
7515
  return l(() => {
7498
7516
  let t = e.current;
@@ -7503,35 +7521,35 @@ function io(e) {
7503
7521
  return r.observe(t), () => r.disconnect();
7504
7522
  }, [e]), t;
7505
7523
  }
7506
- var ao = /* @__PURE__ */ new Set();
7507
- function oo(e) {
7524
+ var io = /* @__PURE__ */ new Set();
7525
+ function ao(e) {
7508
7526
  let t = !1;
7509
7527
  try {
7510
7528
  t = process.env.NODE_ENV !== "production";
7511
7529
  } catch {}
7512
- !t || ao.has(e) || (ao.add(e), console.warn(`[Calendar] ${e}`));
7530
+ !t || io.has(e) || (io.add(e), console.warn(`[Calendar] ${e}`));
7513
7531
  }
7514
- function so(e, t, n) {
7532
+ function oo(e, t, n) {
7515
7533
  try {
7516
- return Li(t);
7534
+ return Ii(t);
7517
7535
  } catch {
7518
- return oo(`Invalid ${e} "${t}", expected HH:mm; using the default.`), n;
7536
+ return ao(`Invalid ${e} "${t}", expected HH:mm; using the default.`), n;
7519
7537
  }
7520
7538
  }
7521
- function co({ events: e = [], availability: t, resources: n = [], view: r, defaultView: i = "week", onViewChange: a, views: o = to, date: s, defaultDate: c, onDateChange: d, onRangeChange: m, weekStartsOn: _ = 1, workWeekDays: b, agendaDays: x = 7, slotMinTime: S = "07:00", slotMaxTime: C = "20:00", slotDuration: w = 15, slotLabelInterval: T = 60, sharedTimeAxis: E = !1, hourHeight: D = 48, timelineHourWidth: O = 96, resourceMinWidth: k = 120, scrollToTime: A, scrollAlign: N = "start", now: P, nowIndicator: F = !0, editLayer: I = "events", readOnly: L = !1, selectable: R, clickCreateDuration: z = 30, shadeOutsideAvailability: B = !0, onCreate: V, onEventClick: ee, onEventChange: U, onAvailabilityClick: te, onAvailabilityChange: W, validate: G, onInvalidChange: K, onDateClick: ne, renderEvent: re, monthMaxEvents: ie, agendaShowAvailability: ae = !0, display: oe, narrowView: q = "day", narrowWidth: se = 640, locale: ce = "en-GB", timeZone: J, hour12: le = !1, labels: ue, toolbar: de = !0, toolbarActions: fe, loading: pe = !1, className: me, "aria-label": he }) {
7522
- let ge = p(() => va(J), [J]), { addDays: _e, formatLongDate: ve, formatRangeTitle: ye, getVisibleDays: be, minutesOfDay: xe, shiftDate: Se } = ge, Ce = h(null), we = u(), Te = ro(P), Ee = io(Ce), [De, Oe] = g(i), [ke, Ae] = g(() => c ?? no()), je = r ?? De, Me = s ?? ke, Ne = (e) => {
7539
+ function so({ events: e = [], availability: t, resources: n = [], view: r, defaultView: i = "week", onViewChange: a, views: o = eo, date: s, defaultDate: c, onDateChange: d, onRangeChange: m, weekStartsOn: _ = 1, workWeekDays: b, agendaDays: x = 7, slotMinTime: S = "07:00", slotMaxTime: C = "20:00", slotDuration: w = 15, slotLabelInterval: T = 60, sharedTimeAxis: E = !1, hourHeight: D = 48, timelineHourWidth: O = 96, resourceMinWidth: k = 120, scrollToTime: A, scrollAlign: N = "start", now: P, nowIndicator: F = !0, editLayer: I = "events", readOnly: L = !1, selectable: R, clickCreateDuration: z = 30, shadeOutsideAvailability: B = !0, onCreate: V, onEventClick: ee, onEventChange: U, onAvailabilityClick: te, onAvailabilityChange: W, validate: G, onInvalidChange: K, onDateClick: ne, renderEvent: re, monthMaxEvents: ie, agendaShowAvailability: ae = !0, display: oe, narrowView: q = "day", narrowWidth: se = 640, locale: ce = "en-GB", timeZone: J, hour12: le = !1, labels: ue, toolbar: de = !0, toolbarActions: fe, loading: pe = !1, className: me, "aria-label": he }) {
7540
+ let ge = p(() => _a(J), [J]), { addDays: _e, formatLongDate: ve, formatRangeTitle: ye, getVisibleDays: be, minutesOfDay: xe, shiftDate: Se } = ge, Ce = h(null), we = u(), Te = no(P), Ee = ro(Ce), [De, Oe] = g(i), [ke, Ae] = g(() => c ?? to()), je = r ?? De, Me = s ?? ke, Ne = (e) => {
7523
7541
  r === void 0 && Oe(e), a?.(e);
7524
7542
  }, Pe = (e) => {
7525
7543
  s === void 0 && Ae(e), d?.(e);
7526
- }, Fe = Ee !== null && Ee < se && q !== !1 && Ui(je) && je !== "day" && q ? q : je, Ie = p(() => ({
7527
- ...$a,
7544
+ }, Fe = Ee !== null && Ee < se && q !== !1 && Hi(je) && je !== "day" && q ? q : je, Ie = p(() => ({
7545
+ ...Qa,
7528
7546
  ...ue,
7529
7547
  views: {
7530
- ...$a.views,
7548
+ ...Qa.views,
7531
7549
  ...ue?.views
7532
7550
  },
7533
7551
  status: {
7534
- ...$a.status,
7552
+ ...Qa.status,
7535
7553
  ...ue?.status
7536
7554
  }
7537
7555
  }), [ue]), Le = p(() => ({
@@ -7561,16 +7579,16 @@ function co({ events: e = [], availability: t, resources: n = [], view: r, defau
7561
7579
  He,
7562
7580
  Fe
7563
7581
  ]);
7564
- let We = p(() => e.filter((e) => ta(e.start.getTime(), Math.max(e.end.getTime(), e.start.getTime() + 1), Ve, He)), [
7582
+ let We = p(() => e.filter((e) => ea(e.start.getTime(), Math.max(e.end.getTime(), e.start.getTime() + 1), Ve, He)), [
7565
7583
  e,
7566
7584
  Ve,
7567
7585
  He
7568
- ]), Ge = p(() => (t ?? []).filter((e) => ta(e.start.getTime(), e.end.getTime(), Ve, He)), [
7586
+ ]), Ge = p(() => (t ?? []).filter((e) => ea(e.start.getTime(), e.end.getTime(), Ve, He)), [
7569
7587
  t,
7570
7588
  Ve,
7571
7589
  He
7572
- ]), Ke = so("slotMinTime", S, 0), qe = so("slotMaxTime", C, 1440);
7573
- qe <= Ke && oo(`slotMaxTime "${C}" must be after slotMinTime "${S}"; showing the whole day.`);
7590
+ ]), Ke = oo("slotMinTime", S, 0), qe = oo("slotMaxTime", C, 1440);
7591
+ qe <= Ke && ao(`slotMaxTime "${C}" must be after slotMinTime "${S}"; showing the whole day.`);
7574
7592
  let Je = p(() => qe > Ke ? {
7575
7593
  min: Ke,
7576
7594
  max: qe
@@ -7578,7 +7596,7 @@ function co({ events: e = [], availability: t, resources: n = [], view: r, defau
7578
7596
  min: 0,
7579
7597
  max: 1440
7580
7598
  }, [Ke, qe]), Ye = Math.max(1, Math.round(w)), Z;
7581
- if (A) Z = so("scrollToTime", A, Je.min);
7599
+ if (A) Z = oo("scrollToTime", A, Je.min);
7582
7600
  else {
7583
7601
  let e = Ge.filter((e) => (e.kind ?? "available") === "available").map((e) => J ? ge.parts(e.start).hour * 60 + ge.parts(e.start).minute : xe(e.start)).filter((e) => e >= Je.min && e < Je.max);
7584
7602
  e.length && (Z = Math.min(...e));
@@ -7590,8 +7608,8 @@ function co({ events: e = [], availability: t, resources: n = [], view: r, defau
7590
7608
  locale: ce,
7591
7609
  hour12: le,
7592
7610
  timeZone: J
7593
- }, $e = (e) => Xe.get(sa(e)[0] ?? ""), et = (e) => {
7594
- let t = sa(e).map((e) => Xe.get(e)?.title).filter(Boolean);
7611
+ }, $e = (e) => Xe.get(oa(e)[0] ?? ""), et = (e) => {
7612
+ let t = oa(e).map((e) => Xe.get(e)?.title).filter(Boolean);
7595
7613
  return t.length ? `, ${t.join(", ")}` : "";
7596
7614
  }, tt = (e) => e.status && e.status !== "confirmed" ? Ie.status[e.status] : void 0, nt = (e) => {
7597
7615
  let t = G?.(e);
@@ -7640,7 +7658,7 @@ function co({ events: e = [], availability: t, resources: n = [], view: r, defau
7640
7658
  blockColor: (e) => e.color ?? $e(e.resourceId)?.color ?? ((e.kind ?? "available") === "available" ? "green" : "gray"),
7641
7659
  statusLabel: tt,
7642
7660
  describeEvent: (e) => {
7643
- let t = e.allDay ? `${ve(e.start, ce)}, ${Ie.allDay}` : `${ve(e.start, ce)}, ${Zi(e.start, e.end, Qe)}`, n = tt(e);
7661
+ let t = e.allDay ? `${ve(e.start, ce)}, ${Ie.allDay}` : `${ve(e.start, ce)}, ${Xi(e.start, e.end, Qe)}`, n = tt(e);
7644
7662
  return [
7645
7663
  e.title,
7646
7664
  t,
@@ -7652,7 +7670,7 @@ function co({ events: e = [], availability: t, resources: n = [], view: r, defau
7652
7670
  describeBlock: (e) => [
7653
7671
  (e.kind ?? "available") === "available" ? Ie.available : Ie.unavailable,
7654
7672
  e.label,
7655
- `${ve(e.start, ce)}, ${Zi(e.start, e.end, Qe)}`
7673
+ `${ve(e.start, ce)}, ${Xi(e.start, e.end, Qe)}`
7656
7674
  ].filter(Boolean).join(", ").concat(et(e.resourceId)),
7657
7675
  renderEvent: re,
7658
7676
  hasEventClick: !!ee,
@@ -7697,27 +7715,27 @@ function co({ events: e = [], availability: t, resources: n = [], view: r, defau
7697
7715
  Ye,
7698
7716
  n.map((e) => e.id)
7699
7717
  ]), Q;
7700
- return Q = Fe === "month" ? /* @__PURE__ */ v(Oa, {
7718
+ return Q = Fe === "month" ? /* @__PURE__ */ v(Da, {
7701
7719
  date: Me,
7702
7720
  events: We,
7703
7721
  availability: Ge,
7704
7722
  label: at
7705
- }, J) : Fe === "agenda" ? /* @__PURE__ */ v(Sa, {
7723
+ }, J) : Fe === "agenda" ? /* @__PURE__ */ v(xa, {
7706
7724
  days: ze,
7707
7725
  events: We.filter((e) => !e.placeholder),
7708
7726
  availability: Ge.filter((e) => !e.placeholder),
7709
7727
  label: at
7710
- }, J) : Fe === "timeline" ? /* @__PURE__ */ v(Qa, {
7728
+ }, J) : Fe === "timeline" ? /* @__PURE__ */ v(Za, {
7711
7729
  day: ze[0],
7712
7730
  events: We,
7713
7731
  availability: Ge,
7714
7732
  label: at
7715
- }, ot) : /* @__PURE__ */ v(Ga, {
7733
+ }, ot) : /* @__PURE__ */ v(Wa, {
7716
7734
  days: ze,
7717
7735
  events: We,
7718
7736
  availability: Ge,
7719
7737
  label: at
7720
- }, ot), /* @__PURE__ */ v(ba.Provider, {
7738
+ }, ot), /* @__PURE__ */ v(ya.Provider, {
7721
7739
  value: rt,
7722
7740
  children: /* @__PURE__ */ y("div", {
7723
7741
  ref: Ce,
@@ -7772,7 +7790,7 @@ function co({ events: e = [], availability: t, resources: n = [], view: r, defau
7772
7790
  ]
7773
7791
  }), /* @__PURE__ */ y("div", {
7774
7792
  className: "flex items-center gap-1.5",
7775
- children: [fe, o.length > 1 && (Ee === null || Ee >= o.length * 80 + 420 ? /* @__PURE__ */ v(eo, {
7793
+ children: [fe, o.length > 1 && (Ee === null || Ee >= o.length * 80 + 420 ? /* @__PURE__ */ v($a, {
7776
7794
  "aria-label": Ie.view,
7777
7795
  options: it,
7778
7796
  value: je,
@@ -7801,7 +7819,7 @@ function co({ events: e = [], availability: t, resources: n = [], view: r, defau
7801
7819
  }
7802
7820
  //#endregion
7803
7821
  //#region src/lib/months.ts
7804
- var lo = [
7822
+ var co = [
7805
7823
  "Jan",
7806
7824
  "Feb",
7807
7825
  "Mar",
@@ -7814,7 +7832,7 @@ var lo = [
7814
7832
  "Oct",
7815
7833
  "Nov",
7816
7834
  "Dec"
7817
- ], uo = [
7835
+ ], lo = [
7818
7836
  "January",
7819
7837
  "February",
7820
7838
  "March",
@@ -7827,7 +7845,7 @@ var lo = [
7827
7845
  "October",
7828
7846
  "November",
7829
7847
  "December"
7830
- ], fo = [
7848
+ ], uo = [
7831
7849
  "Mo",
7832
7850
  "Tu",
7833
7851
  "We",
@@ -7836,24 +7854,24 @@ var lo = [
7836
7854
  "Sa",
7837
7855
  "Su"
7838
7856
  ];
7839
- function po(e, t, n) {
7857
+ function fo(e, t, n) {
7840
7858
  let r = $(e, n), i = $(t, n);
7841
7859
  return r.year === i.year && r.month === i.month && r.day === i.day;
7842
7860
  }
7843
- function mo(e, t, n) {
7861
+ function po(e, t, n) {
7844
7862
  if (!t || !n) return !1;
7845
7863
  let r = e.getTime(), i = Math.min(t.getTime(), n.getTime()), a = Math.max(t.getTime(), n.getTime());
7846
7864
  return r > i && r < a;
7847
7865
  }
7848
- function ho(e, t) {
7866
+ function mo(e, t) {
7849
7867
  return new Date(e, t + 1, 0).getDate();
7850
7868
  }
7851
- function go(e, t) {
7869
+ function ho(e, t) {
7852
7870
  let n = new Date(e, t, 1).getDay();
7853
7871
  return n === 0 ? 6 : n - 1;
7854
7872
  }
7855
- function _o({ year: e, month: t, timeZone: n, selected: r, rangeStart: i, rangeEnd: a, hoverDate: o, onSelect: s, onMonthChange: c, onHover: l, minDate: u, maxDate: d }) {
7856
- let f = ho(e, t), p = go(e, t), m = /* @__PURE__ */ new Date(), _ = h(null), [b, x] = g(null);
7873
+ function go({ year: e, month: t, timeZone: n, selected: r, rangeStart: i, rangeEnd: a, hoverDate: o, onSelect: s, onMonthChange: c, onHover: l, minDate: u, maxDate: d }) {
7874
+ let f = mo(e, t), p = ho(e, t), m = /* @__PURE__ */ new Date(), _ = h(null), [b, x] = g(null);
7857
7875
  function S() {
7858
7876
  return b !== null && b >= 1 && b <= f ? b : r && $(r, n).year === e && $(r, n).month - 1 === t ? $(r, n).day : i && $(i, n).year === e && $(i, n).month - 1 === t ? $(i, n).day : $(m, n).year === e && $(m, n).month - 1 === t ? $(m, n).day : 1;
7859
7877
  }
@@ -7905,7 +7923,7 @@ function _o({ year: e, month: t, timeZone: n, selected: r, rangeStart: i, rangeE
7905
7923
  className: "text-text-primary text-xs font-semibold",
7906
7924
  "aria-live": "polite",
7907
7925
  children: [
7908
- uo[t],
7926
+ lo[t],
7909
7927
  " ",
7910
7928
  e
7911
7929
  ]
@@ -7920,12 +7938,12 @@ function _o({ year: e, month: t, timeZone: n, selected: r, rangeStart: i, rangeE
7920
7938
  ]
7921
7939
  }), /* @__PURE__ */ y("div", {
7922
7940
  className: "grid grid-cols-7 gap-0",
7923
- children: [fo.map((e) => /* @__PURE__ */ v("div", {
7941
+ children: [uo.map((e) => /* @__PURE__ */ v("div", {
7924
7942
  className: "text-text-tertiary text-2xs flex h-8 items-center justify-center font-medium",
7925
7943
  children: e
7926
7944
  }, e)), D.map((c, f) => {
7927
7945
  if (c === null) return /* @__PURE__ */ v("div", { className: "h-8" }, `empty-${f}`);
7928
- let p = Si({
7946
+ let p = xi({
7929
7947
  year: e,
7930
7948
  month: t + 1,
7931
7949
  day: c,
@@ -7933,13 +7951,13 @@ function _o({ year: e, month: t, timeZone: n, selected: r, rangeStart: i, rangeE
7933
7951
  minute: 0,
7934
7952
  second: 0,
7935
7953
  millisecond: 0
7936
- }, n), h = po(p, m, n), g = r ? po(p, r, n) : !1, _ = i ? po(p, i, n) : !1, y = a ? po(p, a, n) : !1, b = mo(p, i ?? null, a ?? o ?? null), x = u && p < u || d && p > d;
7954
+ }, n), h = fo(p, m, n), g = r ? fo(p, r, n) : !1, _ = i ? fo(p, i, n) : !1, y = a ? fo(p, a, n) : !1, b = po(p, i ?? null, a ?? o ?? null), x = u && p < u || d && p > d;
7937
7955
  return /* @__PURE__ */ v("button", {
7938
7956
  type: "button",
7939
7957
  "data-day": c,
7940
7958
  disabled: !!x,
7941
7959
  tabIndex: c === C ? 0 : -1,
7942
- "aria-label": `${uo[t]} ${c}, ${e}`,
7960
+ "aria-label": `${lo[t]} ${c}, ${e}`,
7943
7961
  "aria-current": h ? "date" : void 0,
7944
7962
  onClick: () => s(p),
7945
7963
  onKeyDown: (e) => w(e, c),
@@ -7954,7 +7972,7 @@ function _o({ year: e, month: t, timeZone: n, selected: r, rangeStart: i, rangeE
7954
7972
  }
7955
7973
  //#endregion
7956
7974
  //#region src/components/ui/Card.tsx
7957
- function vo({ children: e, className: t, header: n, footer: r, cover: i, selected: a, flush: o = !1, bodyClassName: s, ...c }) {
7975
+ function _o({ children: e, className: t, header: n, footer: r, cover: i, selected: a, flush: o = !1, bodyClassName: s, ...c }) {
7958
7976
  let l = $n(), u = c.as === "button", d = c.as === "a", f = u && c.disabled, p = u ? "span" : "div", m = Y("ui-glass bg-bg-card border-border overflow-hidden rounded-md border", a && "border-accent", (u || d) && "focus-visible:outline-accent block w-full cursor-pointer appearance-none text-left transition-colors duration-[100ms] focus-visible:outline-2 focus-visible:outline-offset-2", (u || d) && !a && !f && "hover:border-border-strong", f && "cursor-not-allowed opacity-40", t), h = /* @__PURE__ */ y(_, { children: [
7959
7977
  i != null && typeof i != "boolean" && i !== "" && /* @__PURE__ */ v(p, {
7960
7978
  className: "block",
@@ -8003,16 +8021,16 @@ function vo({ children: e, className: t, header: n, footer: r, cover: i, selecte
8003
8021
  }
8004
8022
  //#endregion
8005
8023
  //#region src/lib/codeInput.ts
8006
- function yo(e, t) {
8024
+ function vo(e, t) {
8007
8025
  let n = e.replace(/\D/g, "").slice(0, t);
8008
8026
  return Array.from({ length: t }, (e, t) => n[t] ?? "");
8009
8027
  }
8010
- function bo(e, t, n) {
8028
+ function yo(e, t, n) {
8011
8029
  if (!t || e.length <= t.length) return e;
8012
8030
  let r = e.length - t.length, i = n ?? e.length;
8013
8031
  return i - r >= 0 ? e.slice(i - r, i) : e.slice(-r);
8014
8032
  }
8015
- function xo(e, t, n) {
8033
+ function bo(e, t, n) {
8016
8034
  let r = e.length, i = n.match(RegExp(`(?<!\\d)\\d{${r}}(?!\\d)`));
8017
8035
  if (i) return {
8018
8036
  slots: i[0].split(""),
@@ -8032,7 +8050,7 @@ function xo(e, t, n) {
8032
8050
  focus: Math.min(t + a.length, r - 1)
8033
8051
  };
8034
8052
  }
8035
- function So(e, t, n, r) {
8053
+ function xo(e, t, n, r) {
8036
8054
  if (n === "") {
8037
8055
  let n = [...e];
8038
8056
  return n[t] = "", {
@@ -8040,9 +8058,9 @@ function So(e, t, n, r) {
8040
8058
  focus: t
8041
8059
  };
8042
8060
  }
8043
- return xo(e, t, bo(n, e[t], r));
8061
+ return bo(e, t, yo(n, e[t], r));
8044
8062
  }
8045
- function Co(e, t) {
8063
+ function So(e, t) {
8046
8064
  let n = e[t] ? t : t - 1;
8047
8065
  if (n < 0) return null;
8048
8066
  let r = [...e];
@@ -8053,15 +8071,15 @@ function Co(e, t) {
8053
8071
  }
8054
8072
  //#endregion
8055
8073
  //#region src/components/ui/CodeInput.tsx
8056
- function wo({ value: e, onChange: t, onComplete: n, length: r = 6, error: i, invalid: a, disabled: o, autoFocus: s, name: c, "aria-label": l = "Verification code", className: d }) {
8057
- let f = h([]), p = u(), m = a || !!i, [_, b] = g(() => yo(e, r)), [x, S] = g({
8074
+ function Co({ value: e, onChange: t, onComplete: n, length: r = 6, error: i, invalid: a, disabled: o, autoFocus: s, name: c, "aria-label": l = "Verification code", className: d }) {
8075
+ let f = h([]), p = u(), m = a || !!i, [_, b] = g(() => vo(e, r)), [x, S] = g({
8058
8076
  value: e,
8059
8077
  length: r
8060
8078
  });
8061
8079
  (x.value !== e || x.length !== r) && (S({
8062
8080
  value: e,
8063
8081
  length: r
8064
- }), (_.length !== r || _.join("") !== e) && b(yo(e, r)));
8082
+ }), (_.length !== r || _.join("") !== e) && b(vo(e, r)));
8065
8083
  function C(e) {
8066
8084
  let t = f.current[Math.max(0, Math.min(e, r - 1))];
8067
8085
  t?.focus(), t?.select();
@@ -8073,7 +8091,7 @@ function wo({ value: e, onChange: t, onComplete: n, length: r = 6, error: i, inv
8073
8091
  t(r), e.slots.every(Boolean) && n?.(r), C(e.focus);
8074
8092
  }
8075
8093
  function T(e, t) {
8076
- t.key === "Backspace" ? (t.preventDefault(), w(Co(_, e))) : t.key === "ArrowLeft" ? (t.preventDefault(), C(e - 1)) : t.key === "ArrowRight" && (t.preventDefault(), C(e + 1));
8094
+ t.key === "Backspace" ? (t.preventDefault(), w(So(_, e))) : t.key === "ArrowLeft" ? (t.preventDefault(), C(e - 1)) : t.key === "ArrowRight" && (t.preventDefault(), C(e + 1));
8077
8095
  }
8078
8096
  return /* @__PURE__ */ y("div", {
8079
8097
  className: Y("flex flex-col gap-1.5", d),
@@ -8096,10 +8114,10 @@ function wo({ value: e, onChange: t, onComplete: n, length: r = 6, error: i, inv
8096
8114
  "aria-describedby": i ? p : void 0,
8097
8115
  value: e,
8098
8116
  onFocus: (e) => e.target.select(),
8099
- onChange: (e) => w(So(_, t, e.target.value, e.target.selectionStart)),
8117
+ onChange: (e) => w(xo(_, t, e.target.value, e.target.selectionStart)),
8100
8118
  onKeyDown: (e) => T(t, e),
8101
8119
  onPaste: (e) => {
8102
- e.preventDefault(), w(xo(_, t, e.clipboardData.getData("text")));
8120
+ e.preventDefault(), w(bo(_, t, e.clipboardData.getData("text")));
8103
8121
  },
8104
8122
  className: Y("bg-bg-secondary text-text-primary h-10 w-10 rounded-md border text-center font-mono text-sm", "transition-colors duration-[100ms]", "focus:border-accent focus:outline-none", "disabled:cursor-not-allowed disabled:opacity-40", m ? "border-red" : "border-border")
8105
8123
  }, t))
@@ -8121,7 +8139,7 @@ function wo({ value: e, onChange: t, onComplete: n, length: r = 6, error: i, inv
8121
8139
  }
8122
8140
  //#endregion
8123
8141
  //#region src/components/ui/Combobox.tsx
8124
- function To({ options: e, value: t, onChange: n, onOptionChange: r, placeholder: i = "Select...", label: a, className: o, controlSize: s, id: c, name: d, disabled: f, "aria-label": p, "aria-describedby": _, "aria-invalid": b, query: x, onQueryChange: S, filterOptions: C = !0, selectedOption: w, renderOption: T, loading: E = !1, loadingMessage: D = "Loading results…", error: k, onRetry: j, emptyMessage: M = "No results", footer: N, onOpenChange: P, flip: F = !0 }) {
8142
+ function wo({ options: e, value: t, onChange: n, onOptionChange: r, placeholder: i = "Select...", label: a, className: o, controlSize: s, id: c, name: d, disabled: f, "aria-label": p, "aria-describedby": _, "aria-invalid": b, query: x, onQueryChange: S, filterOptions: C = !0, selectedOption: w, renderOption: T, loading: E = !1, loadingMessage: D = "Loading results…", error: k, onRetry: j, emptyMessage: M = "No results", footer: N, onOpenChange: P, flip: F = !0 }) {
8125
8143
  let I = $n(s), { open: L, show: R, close: z, rootRef: B, anchorRef: V, triggerRef: ee, popupRef: H, labelId: U, triggerId: te, popupId: W } = lr({
8126
8144
  haspopup: "listbox",
8127
8145
  matchWidth: !0,
@@ -8318,7 +8336,7 @@ function To({ options: e, value: t, onChange: n, onOptionChange: r, placeholder:
8318
8336
  }
8319
8337
  //#endregion
8320
8338
  //#region src/components/ui/CopyButton.tsx
8321
- function Eo(e) {
8339
+ function To(e) {
8322
8340
  let t = document.activeElement, n = document.createElement("textarea");
8323
8341
  n.value = e, n.setAttribute("readonly", ""), n.style.position = "fixed", n.style.opacity = "0", document.body.appendChild(n);
8324
8342
  try {
@@ -8329,13 +8347,13 @@ function Eo(e) {
8329
8347
  n.remove(), t instanceof HTMLElement && t.focus();
8330
8348
  }
8331
8349
  }
8332
- async function Do(e) {
8350
+ async function Eo(e) {
8333
8351
  if (navigator.clipboard?.writeText) try {
8334
8352
  return await navigator.clipboard.writeText(e), !0;
8335
8353
  } catch {}
8336
- return Eo(e);
8354
+ return To(e);
8337
8355
  }
8338
- function Oo({ value: e, label: t = "Copy", copiedLabel: n = "Copied", iconOnly: r = !1, onCopy: i, variant: a, ...o }) {
8356
+ function Do({ value: e, label: t = "Copy", copiedLabel: n = "Copied", iconOnly: r = !1, onCopy: i, variant: a, ...o }) {
8339
8357
  let [s, c] = g(null), [u, d] = g(""), f = h(null), p = h(null);
8340
8358
  l(() => () => {
8341
8359
  p.current !== null && clearTimeout(p.current), f.current !== null && clearTimeout(f.current);
@@ -8343,7 +8361,7 @@ function Oo({ value: e, label: t = "Copy", copiedLabel: n = "Copied", iconOnly:
8343
8361
  async function m() {
8344
8362
  let t = !1;
8345
8363
  try {
8346
- t = await Do(typeof e == "function" ? e() : e);
8364
+ t = await Eo(typeof e == "function" ? e() : e);
8347
8365
  } catch {}
8348
8366
  p.current !== null && clearTimeout(p.current), c(t ? "copied" : "failed"), d(""), f.current !== null && clearTimeout(f.current), f.current = setTimeout(() => {
8349
8367
  d(t ? n : "Copy failed"), f.current = null;
@@ -8369,7 +8387,7 @@ function Oo({ value: e, label: t = "Copy", copiedLabel: n = "Copied", iconOnly:
8369
8387
  }
8370
8388
  //#endregion
8371
8389
  //#region src/components/ui/DangerZone.tsx
8372
- function ko({ title: e = "Danger Zone", description: t, children: n, className: r }) {
8390
+ function Oo({ title: e = "Danger Zone", description: t, children: n, className: r }) {
8373
8391
  return /* @__PURE__ */ y("div", {
8374
8392
  className: Y("border-border mt-8 border-t pt-6", r),
8375
8393
  children: [
@@ -8387,11 +8405,11 @@ function ko({ title: e = "Danger Zone", description: t, children: n, className:
8387
8405
  }
8388
8406
  //#endregion
8389
8407
  //#region src/components/ui/DatePicker.tsx
8390
- function Ao(e, t) {
8408
+ function ko(e, t) {
8391
8409
  let { year: n, month: r, day: i } = $(e, t);
8392
- return `${lo[r - 1]} ${i}, ${n}`;
8410
+ return `${co[r - 1]} ${i}, ${n}`;
8393
8411
  }
8394
- function jo({ controlSize: e, label: t, timeZone: n, value: r, onChange: i, placeholder: a = "Select date...", format: o }) {
8412
+ function Ao({ controlSize: e, label: t, timeZone: n, value: r, onChange: i, placeholder: a = "Select date...", format: o }) {
8395
8413
  let s = $n(e), { open: c, show: l, close: u, rootRef: d, anchorRef: f, triggerRef: p, popupRef: m, labelId: h, popupId: _, triggerAria: b } = lr({
8396
8414
  haspopup: "dialog",
8397
8415
  labelled: !!t
@@ -8424,7 +8442,7 @@ function jo({ controlSize: e, label: t, timeZone: n, value: r, onChange: i, plac
8424
8442
  onClick: O,
8425
8443
  "data-control-size": s,
8426
8444
  className: Y("ui-sized-control flex h-7 w-full cursor-pointer items-center rounded-md text-xs", "bg-bg-secondary border-border text-text-primary border", "hover:bg-bg-hover hover:border-border-strong", "transition-colors duration-[100ms]", "px-2 pr-7"),
8427
- children: r ? o ? o(r) : Ao(r, n) : /* @__PURE__ */ v("span", {
8445
+ children: r ? o ? o(r) : ko(r, n) : /* @__PURE__ */ v("span", {
8428
8446
  className: "text-text-disabled",
8429
8447
  children: a
8430
8448
  })
@@ -8436,7 +8454,7 @@ function jo({ controlSize: e, label: t, timeZone: n, value: r, onChange: i, plac
8436
8454
  role: "dialog",
8437
8455
  "aria-label": "Choose date",
8438
8456
  className: Y("ui-glass ui-glass-popover bg-bg-tertiary border-border-strong animate-scale-in fixed top-0 left-0 z-[100] rounded-md border shadow-lg", "p-3"),
8439
- children: /* @__PURE__ */ v(_o, {
8457
+ children: /* @__PURE__ */ v(go, {
8440
8458
  timeZone: n,
8441
8459
  year: S,
8442
8460
  month: w,
@@ -8453,13 +8471,13 @@ function jo({ controlSize: e, label: t, timeZone: n, value: r, onChange: i, plac
8453
8471
  }
8454
8472
  //#endregion
8455
8473
  //#region src/components/ui/DateRangePicker.tsx
8456
- function Mo(e) {
8457
- return `${lo[e.getMonth()]} ${e.getDate()}, ${e.getFullYear()}`;
8474
+ function jo(e) {
8475
+ return `${co[e.getMonth()]} ${e.getDate()}, ${e.getFullYear()}`;
8458
8476
  }
8459
- function No(e) {
8460
- return e.start && e.end ? `${Mo(e.start)} – ${Mo(e.end)}` : e.start ? Mo(e.start) : "";
8477
+ function Mo(e) {
8478
+ return e.start && e.end ? `${jo(e.start)} – ${jo(e.end)}` : e.start ? jo(e.start) : "";
8461
8479
  }
8462
- function Po({ controlSize: e, label: t, value: n, onChange: r, placeholder: i = "Select date range..." }) {
8480
+ function No({ controlSize: e, label: t, value: n, onChange: r, placeholder: i = "Select date range..." }) {
8463
8481
  let a = $n(e), { open: o, show: s, close: c, rootRef: l, anchorRef: u, triggerRef: d, popupRef: f, labelId: p, popupId: m, triggerAria: h } = lr({
8464
8482
  haspopup: "dialog",
8465
8483
  labelled: !!t
@@ -8483,7 +8501,7 @@ function Po({ controlSize: e, label: t, value: n, onChange: r, placeholder: i =
8483
8501
  function R() {
8484
8502
  S === 11 ? (x(b + 1), C(0)) : C(S + 1);
8485
8503
  }
8486
- let z = n.start || n.end ? No(n) : "";
8504
+ let z = n.start || n.end ? Mo(n) : "";
8487
8505
  return /* @__PURE__ */ y("div", {
8488
8506
  className: "flex flex-col gap-1.5",
8489
8507
  ref: l,
@@ -8545,7 +8563,7 @@ function Po({ controlSize: e, label: t, value: n, onChange: r, placeholder: i =
8545
8563
  ]
8546
8564
  }), /* @__PURE__ */ y("div", {
8547
8565
  className: "flex gap-4",
8548
- children: [/* @__PURE__ */ v(_o, {
8566
+ children: [/* @__PURE__ */ v(go, {
8549
8567
  year: b,
8550
8568
  month: S,
8551
8569
  rangeStart: k,
@@ -8556,7 +8574,7 @@ function Po({ controlSize: e, label: t, value: n, onChange: r, placeholder: i =
8556
8574
  x(e), C(t);
8557
8575
  },
8558
8576
  onHover: T
8559
- }), /* @__PURE__ */ v(_o, {
8577
+ }), /* @__PURE__ */ v(go, {
8560
8578
  year: N,
8561
8579
  month: P,
8562
8580
  rangeStart: k,
@@ -8576,7 +8594,7 @@ function Po({ controlSize: e, label: t, value: n, onChange: r, placeholder: i =
8576
8594
  }
8577
8595
  //#endregion
8578
8596
  //#region src/components/ui/DateTimePicker.tsx
8579
- function Fo(e) {
8597
+ function Po(e) {
8580
8598
  return e === 0 ? {
8581
8599
  hour12: 12,
8582
8600
  period: "AM"
@@ -8591,10 +8609,10 @@ function Fo(e) {
8591
8609
  period: "PM"
8592
8610
  };
8593
8611
  }
8594
- function Io(e, t) {
8612
+ function Fo(e, t) {
8595
8613
  return t === "AM" ? e === 12 ? 0 : e : e === 12 ? 12 : e + 12;
8596
8614
  }
8597
- function Lo(e, t) {
8615
+ function Io(e, t) {
8598
8616
  if (t) return new Intl.DateTimeFormat("en-GB", {
8599
8617
  timeZone: t,
8600
8618
  day: "numeric",
@@ -8605,23 +8623,23 @@ function Lo(e, t) {
8605
8623
  timeZoneName: "short",
8606
8624
  hourCycle: "h23"
8607
8625
  }).format(e);
8608
- let n = lo[e.getMonth()], r = e.getDate(), i = e.getFullYear(), { hour12: a, period: o } = Fo(e.getHours());
8626
+ let n = co[e.getMonth()], r = e.getDate(), i = e.getFullYear(), { hour12: a, period: o } = Po(e.getHours());
8609
8627
  return `${n} ${r}, ${i} ${a}:${String(e.getMinutes()).padStart(2, "0")} ${o}`;
8610
8628
  }
8611
- function Ro(e) {
8629
+ function Lo(e) {
8612
8630
  return String(e).padStart(2, "0");
8613
8631
  }
8614
- function zo(e) {
8615
- return /* @__PURE__ */ v(Bo, { ...e }, e.timeZone ?? "browser-local");
8632
+ function Ro(e) {
8633
+ return /* @__PURE__ */ v(zo, { ...e }, e.timeZone ?? "browser-local");
8616
8634
  }
8617
- function Bo({ controlSize: e, label: t, timeZone: n, value: r, onChange: i, placeholder: a = "Select date & time..." }) {
8635
+ function zo({ controlSize: e, label: t, timeZone: n, value: r, onChange: i, placeholder: a = "Select date & time..." }) {
8618
8636
  let o = $n(e), { open: s, show: c, close: l, rootRef: d, anchorRef: f, triggerRef: p, popupRef: m, labelId: h, popupId: _, triggerAria: b } = lr({
8619
8637
  haspopup: "dialog",
8620
8638
  labelled: !!t
8621
- }), [x, S] = g(null), [C, w] = g(!1), [T, E] = g("reject"), O = u(), k = $(r ?? /* @__PURE__ */ new Date(), n), A = r ? Fo($(r, n).hour) : {
8639
+ }), [x, S] = g(null), [C, w] = g(!1), [T, E] = g("reject"), O = u(), k = $(r ?? /* @__PURE__ */ new Date(), n), A = r ? Po($(r, n).hour) : {
8622
8640
  hour12: 12,
8623
8641
  period: "PM"
8624
- }, [j, M] = g(k.year), [N, P] = g(k.month - 1), [F, I] = g(String(A.hour12)), [L, R] = g(r ? Ro($(r, n).minute) : "00"), [z, B] = g(A.period), [V, ee] = g(r);
8642
+ }, [j, M] = g(k.year), [N, P] = g(k.month - 1), [F, I] = g(String(A.hour12)), [L, R] = g(r ? Lo($(r, n).minute) : "00"), [z, B] = g(A.period), [V, ee] = g(r);
8625
8643
  function H(e) {
8626
8644
  ee(e);
8627
8645
  }
@@ -8633,7 +8651,7 @@ function Bo({ controlSize: e, label: t, timeZone: n, value: r, onChange: i, plac
8633
8651
  }
8634
8652
  function te() {
8635
8653
  if (!V) return;
8636
- let e = X(parseInt(F, 10) || 12, 1, 12), t = X(parseInt(L, 10) || 0, 0, 59), a = Io(e, z), o = {
8654
+ let e = X(parseInt(F, 10) || 12, 1, 12), t = X(parseInt(L, 10) || 0, 0, 59), a = Fo(e, z), o = {
8637
8655
  ...$(V, n),
8638
8656
  hour: a,
8639
8657
  minute: t,
@@ -8647,7 +8665,7 @@ function Bo({ controlSize: e, label: t, timeZone: n, value: r, onChange: i, plac
8647
8665
  "day",
8648
8666
  "hour",
8649
8667
  "minute"
8650
- ].every((e) => s[e] === o[e]) ? new Date(r) : Si(o, n, T);
8668
+ ].every((e) => s[e] === o[e]) ? new Date(r) : xi(o, n, T);
8651
8669
  let e = $(c, n);
8652
8670
  if (e.hour !== a || e.minute !== t || e.day !== o.day) throw RangeError("This time does not exist in the selected timezone");
8653
8671
  } catch (e) {
@@ -8664,13 +8682,13 @@ function Bo({ controlSize: e, label: t, timeZone: n, value: r, onChange: i, plac
8664
8682
  }
8665
8683
  if (r) {
8666
8684
  M($(r, n).year), P($(r, n).month - 1), ee(r);
8667
- let e = Fo($(r, n).hour);
8668
- I(String(e.hour12)), B(e.period), R(Ro($(r, n).minute));
8685
+ let e = Po($(r, n).hour);
8686
+ I(String(e.hour12)), B(e.period), R(Lo($(r, n).minute));
8669
8687
  }
8670
8688
  S(null);
8671
8689
  let e = !1;
8672
8690
  if (r && n) try {
8673
- Si($(r, n), n, "reject");
8691
+ xi($(r, n), n, "reject");
8674
8692
  } catch (t) {
8675
8693
  e = t instanceof Error && t.message.includes("twice");
8676
8694
  }
@@ -8694,7 +8712,7 @@ function Bo({ controlSize: e, label: t, timeZone: n, value: r, onChange: i, plac
8694
8712
  onClick: W,
8695
8713
  "data-control-size": o,
8696
8714
  className: Y("ui-sized-control flex h-7 w-full cursor-pointer items-center rounded-md text-xs", "bg-bg-secondary border-border text-text-primary border", "hover:bg-bg-hover hover:border-border-strong", "transition-colors duration-[100ms]", "px-2 pr-7"),
8697
- children: r ? Lo(r, n) : /* @__PURE__ */ v("span", {
8715
+ children: r ? Io(r, n) : /* @__PURE__ */ v("span", {
8698
8716
  className: "text-text-disabled",
8699
8717
  children: a
8700
8718
  })
@@ -8707,7 +8725,7 @@ function Bo({ controlSize: e, label: t, timeZone: n, value: r, onChange: i, plac
8707
8725
  "aria-label": "Choose date and time",
8708
8726
  className: Y("ui-glass ui-glass-popover bg-bg-tertiary border-border-strong animate-scale-in fixed top-0 left-0 z-[100] rounded-md border shadow-lg", "p-3"),
8709
8727
  children: [
8710
- /* @__PURE__ */ v(_o, {
8728
+ /* @__PURE__ */ v(go, {
8711
8729
  timeZone: n,
8712
8730
  year: j,
8713
8731
  month: N,
@@ -8820,14 +8838,14 @@ function Bo({ controlSize: e, label: t, timeZone: n, value: r, onChange: i, plac
8820
8838
  }
8821
8839
  //#endregion
8822
8840
  //#region src/lib/panelResize.ts
8823
- function Vo(e, t, n, r = "right") {
8841
+ function Bo(e, t, n, r = "right") {
8824
8842
  if (e === "Home") return null;
8825
8843
  if (e === "End") return Infinity;
8826
8844
  if (!(e !== "ArrowLeft" && e !== "ArrowRight")) return t + (e === "ArrowLeft" == (r === "right") ? n : -n);
8827
8845
  }
8828
8846
  //#endregion
8829
8847
  //#region src/components/ui/DetailPanel.tsx
8830
- function Ho({ open: e, onClose: t, title: n, children: r, className: i, headerActions: a, sticky: o = !1, resizable: s = !0, defaultWidth: c = 360, minWidth: d = 260, maxWidth: p = 700, fraction: m, defaultFraction: b, minFraction: x, maxFraction: S, onFractionChange: C, collapsed: w = !1, onCollapsedChange: T, railIndicator: E, overlay: D = !1, autoFocus: O = !0 }) {
8848
+ function Vo({ open: e, onClose: t, title: n, children: r, className: i, headerActions: a, sticky: o = !1, resizable: s = !0, defaultWidth: c = 360, minWidth: d = 260, maxWidth: p = 700, fraction: m, defaultFraction: b, minFraction: x, maxFraction: S, onFractionChange: C, collapsed: w = !1, onCollapsedChange: T, railIndicator: E, overlay: D = !1, autoFocus: O = !0 }) {
8831
8849
  let k = h(null), A = h(null), j = h(null), M = h(null), N = h(null), P = h(!1), F = h(w), I = u(), L = u(), z = u(), [B, V] = g(c), [ee, H] = g(b ?? .5), [U, te] = g(!1), W = h(null), G = m !== void 0 || b !== void 0 || x !== void 0 || S !== void 0 || C !== void 0, K = G ? Math.max(0, Math.min(1, x ?? .3)) : d, ne = G ? Math.max(K, Math.min(1, S ?? .7)) : Math.max(K, p), re = (e) => Math.max(K, Math.min(ne, e)), ie = G ? re(m ?? ee) : B, q = G ? b ?? .5 : c, se = G ? `${ie * 100}%` : B, ce = Mt(e && !w, () => t(), k), J = h(!1);
8832
8850
  l(() => {
8833
8851
  let e = k.current;
@@ -8921,7 +8939,7 @@ function Ho({ open: e, onClose: t, title: n, children: r, className: i, headerAc
8921
8939
  onLostPointerCapture: ue,
8922
8940
  onDoubleClick: () => le(q),
8923
8941
  onKeyDown: (e) => {
8924
- let t = Vo(e.key, ie, G ? .02 : 16);
8942
+ let t = Bo(e.key, ie, G ? .02 : 16);
8925
8943
  t !== void 0 && (e.preventDefault(), le(t ?? q));
8926
8944
  },
8927
8945
  children: /* @__PURE__ */ v("span", {
@@ -8998,28 +9016,28 @@ function Ho({ open: e, onClose: t, title: n, children: r, className: i, headerAc
8998
9016
  })
8999
9017
  });
9000
9018
  }
9001
- function Uo(e, t) {
9019
+ function Ho(e, t) {
9002
9020
  let n = /^\s*(\d*\.?\d+)(px|rem)\s*$/.exec(e);
9003
9021
  if (!n) return 8;
9004
9022
  let r = Number(n[1]), i = n[2] === "rem" ? r * t : r;
9005
9023
  return Number.isFinite(i) && i >= 0 ? i * 2 : 8;
9006
9024
  }
9007
- function Wo(e, t, [n, r], [i, a], [o, s], c) {
9025
+ function Uo(e, t, [n, r], [i, a], [o, s], c) {
9008
9026
  let [l, u] = r - n <= s - o - c * 2 ? [n, r] : [i, a], d = t + (o + c - l), f = t + (s - c - u);
9009
9027
  return f < d && (f = d), d = Math.min(d, 0), f = Math.max(f, 0), X(e, d, f);
9010
9028
  }
9011
- function Go(e, t, n, r, i, a) {
9029
+ function Wo(e, t, n, r, i, a) {
9012
9030
  return {
9013
- x: Wo(e.x, t.x, [n.left, n.right], [r.left, r.right], [i.left, i.right], a),
9014
- y: Wo(e.y, t.y, [n.top, n.bottom], [r.top, r.bottom], [i.top, i.bottom], a)
9031
+ x: Uo(e.x, t.x, [n.left, n.right], [r.left, r.right], [i.left, i.right], a),
9032
+ y: Uo(e.y, t.y, [n.top, n.bottom], [r.top, r.bottom], [i.top, i.bottom], a)
9015
9033
  };
9016
9034
  }
9017
- function Ko({ x: e, y: t }) {
9035
+ function Go({ x: e, y: t }) {
9018
9036
  return e === 0 && t === 0 ? "" : `${e}px ${t}px`;
9019
9037
  }
9020
- var qo = 10, Jo = 50;
9021
- function Yo(e, t) {
9022
- let n = t ? Jo : qo;
9038
+ var Ko = 10, qo = 50;
9039
+ function Jo(e, t) {
9040
+ let n = t ? qo : Ko;
9023
9041
  switch (e) {
9024
9042
  case "ArrowLeft": return {
9025
9043
  x: -n,
@@ -9042,8 +9060,8 @@ function Yo(e, t) {
9042
9060
  }
9043
9061
  //#endregion
9044
9062
  //#region src/lib/dialogResize.ts
9045
- var Xo = 10, Zo = 50;
9046
- function Qo({ left: e, top: t }, n, r, i, a) {
9063
+ var Yo = 10, Xo = 50;
9064
+ function Zo({ left: e, top: t }, n, r, i, a) {
9047
9065
  let o = {
9048
9066
  width: Math.max(0, Math.min(r.width, n.width)),
9049
9067
  height: Math.max(0, Math.min(r.height, n.height))
@@ -9056,15 +9074,15 @@ function Qo({ left: e, top: t }, n, r, i, a) {
9056
9074
  }
9057
9075
  };
9058
9076
  }
9059
- function $o(e, { min: t, max: n }) {
9077
+ function Qo(e, { min: t, max: n }) {
9060
9078
  let r = (e, t, n) => Math.round(X(e, t, n));
9061
9079
  return {
9062
9080
  width: r(e.width, t.width, n.width),
9063
9081
  height: r(e.height, t.height, n.height)
9064
9082
  };
9065
9083
  }
9066
- function es(e, t) {
9067
- let n = t ? Zo : Xo;
9084
+ function $o(e, t) {
9085
+ let n = t ? Xo : Yo;
9068
9086
  switch (e) {
9069
9087
  case "ArrowLeft": return {
9070
9088
  width: -n,
@@ -9087,16 +9105,16 @@ function es(e, t) {
9087
9105
  }
9088
9106
  //#endregion
9089
9107
  //#region src/components/ui/Dialog.tsx
9090
- var ts = {
9108
+ var es = {
9091
9109
  sm: "max-w-[400px]",
9092
9110
  md: "max-w-[576px]",
9093
9111
  lg: "max-w-[768px]",
9094
9112
  xl: "max-w-[1024px]"
9095
- }, ns = "(min-width: 48rem)", rs = "a[href], button, input, select, textarea, label, summary, [contenteditable]:not([contenteditable=\"false\"]), [role=\"button\"], [role=\"link\"], [tabindex]:not([tabindex=\"-1\"])", is = {
9113
+ }, ts = "(min-width: 48rem)", ns = "a[href], button, input, select, textarea, label, summary, [contenteditable]:not([contenteditable=\"false\"]), [role=\"button\"], [role=\"link\"], [tabindex]:not([tabindex=\"-1\"])", rs = {
9096
9114
  x: 0,
9097
9115
  y: 0
9098
9116
  };
9099
- function as(e) {
9117
+ function is(e) {
9100
9118
  let t = e.getBoundingClientRect();
9101
9119
  return {
9102
9120
  left: t.left,
@@ -9105,19 +9123,19 @@ function as(e) {
9105
9123
  bottom: t.top + e.clientHeight
9106
9124
  };
9107
9125
  }
9108
- var os = {
9126
+ var as = {
9109
9127
  top: "bottom",
9110
9128
  bottom: "top",
9111
9129
  left: "right",
9112
9130
  right: "left"
9113
9131
  };
9114
- function ss(e, t) {
9132
+ function os(e, t) {
9115
9133
  return {
9116
9134
  x: e.x + t.x,
9117
9135
  y: e.y + t.y
9118
9136
  };
9119
9137
  }
9120
- function cs(e, t) {
9138
+ function ss(e, t) {
9121
9139
  let n = t.getBoundingClientRect();
9122
9140
  return {
9123
9141
  left: n.left + e.offsetLeft - t.scrollLeft,
@@ -9126,79 +9144,79 @@ function cs(e, t) {
9126
9144
  height: e.offsetHeight
9127
9145
  };
9128
9146
  }
9129
- function ls(e, t) {
9147
+ function cs(e, t) {
9130
9148
  if (!(e instanceof HTMLElement) || !e.isConnected) return null;
9131
9149
  let n = e.ownerDocument;
9132
9150
  return e === n.body || e === n.documentElement || t.contains(e) ? null : e.getClientRects().length > 0 ? e : null;
9133
9151
  }
9134
- function us(e) {
9135
- return e.ownerDocument.defaultView?.matchMedia(ns).matches ?? !1;
9152
+ function ls(e) {
9153
+ return e.ownerDocument.defaultView?.matchMedia(ts).matches ?? !1;
9136
9154
  }
9137
- function ds(e) {
9155
+ function us(e) {
9138
9156
  let t = e.ownerDocument.defaultView;
9139
- return t ? Uo(t.getComputedStyle(e).getPropertyValue("--spacing"), parseFloat(t.getComputedStyle(e.ownerDocument.documentElement).fontSize)) : 8;
9157
+ return t ? Ho(t.getComputedStyle(e).getPropertyValue("--spacing"), parseFloat(t.getComputedStyle(e.ownerDocument.documentElement).fontSize)) : 8;
9140
9158
  }
9141
- function fs(e, t, n) {
9159
+ function ds(e, t, n) {
9142
9160
  e.style.width = n ? `${n.width}px` : "", e.style.height = n ? `${n.height}px` : "", e.style.maxWidth = n ? "none" : "", t && (t.style.flex = n ? "1 1 0%" : "", t.style.minHeight = n ? "0" : "", t.style.overflowY = n ? "auto" : "");
9143
9161
  }
9144
- function ps(e, t) {
9162
+ function fs(e, t) {
9145
9163
  return {
9146
9164
  width: 280,
9147
9165
  height: e.offsetHeight - (t?.offsetHeight ?? 0) + 48
9148
9166
  };
9149
9167
  }
9150
- function ms({ open: e, draggable: t, resizable: n, remember: r, placement: i, anchorRef: a }, o, s, c) {
9151
- let l = h(is), u = h(is), d = h(8), p = h(null), m = h(null), g = h(null), _ = h(!1), v = h(null), y = e && t, b = e && n, x = r && (t || n);
9168
+ function ps({ open: e, draggable: t, resizable: n, remember: r, placement: i, anchorRef: a }, o, s, c) {
9169
+ let l = h(rs), u = h(rs), d = h(8), p = h(null), m = h(null), g = h(null), _ = h(!1), v = h(null), y = e && t, b = e && n, x = r && (t || n);
9152
9170
  f(() => {
9153
9171
  let t = o.current, r = y ? s.current : null, f = c.current, h = t?.parentElement, S = t?.ownerDocument.defaultView, C = i !== "center";
9154
9172
  if (x || (g.current = null), (!e && !x || !n) && (v.current = null), !e || !t || !h || !S || !r && !C && !b) return;
9155
- let w = C ? ls(t.ownerDocument.activeElement, t) : null, T = () => C ? ls(a?.current, t) ?? ls(w, t) : null, E = () => ss(u.current, l.current), D = () => {
9156
- t.style.translate = Ko(E());
9173
+ let w = C ? cs(t.ownerDocument.activeElement, t) : null, T = () => C ? cs(a?.current, t) ?? cs(w, t) : null, E = () => os(u.current, l.current), D = () => {
9174
+ t.style.translate = Go(E());
9157
9175
  }, O = () => {
9158
- let e = cs(t, h);
9176
+ let e = ss(t, h);
9159
9177
  if (_.current && g.current) {
9160
9178
  u.current = {
9161
9179
  x: g.current.left - e.left,
9162
9180
  y: g.current.top - e.top
9163
- }, l.current = is, t.dataset.placement = "remembered", t.style.transformOrigin = "";
9181
+ }, l.current = rs, t.dataset.placement = "remembered", t.style.transformOrigin = "";
9164
9182
  return;
9165
9183
  }
9166
- let n = us(t) ? T() : null, r = C && n ? dn(i, n.getBoundingClientRect(), {
9184
+ let n = ls(t) ? T() : null, r = C && n ? dn(i, n.getBoundingClientRect(), {
9167
9185
  size: {
9168
9186
  width: e.width,
9169
9187
  height: e.height
9170
9188
  },
9171
- bounds: as(h),
9189
+ bounds: is(h),
9172
9190
  margin: d.current,
9173
9191
  gap: d.current
9174
9192
  }) : null;
9175
9193
  u.current = r ? {
9176
9194
  x: r.left - e.left,
9177
9195
  y: r.top - e.top
9178
- } : is, t.dataset.placement = r?.side ?? "center", t.style.transformOrigin = r ? os[r.side] : "";
9196
+ } : rs, t.dataset.placement = r?.side ?? "center", t.style.transformOrigin = r ? as[r.side] : "";
9179
9197
  }, k = () => {
9180
9198
  let e = l.current;
9181
9199
  if (!r && !_.current || !_.current && e.x === 0 && e.y === 0) return;
9182
- let n = E(), i = Go(n, n, t.getBoundingClientRect(), (r ?? s.current ?? t).getBoundingClientRect(), as(h), d.current);
9200
+ let n = E(), i = Wo(n, n, t.getBoundingClientRect(), (r ?? s.current ?? t).getBoundingClientRect(), is(h), d.current);
9183
9201
  if (l.current = {
9184
9202
  x: i.x - u.current.x,
9185
9203
  y: i.y - u.current.y
9186
9204
  }, D(), _.current) {
9187
- let e = cs(t, h);
9205
+ let e = ss(t, h);
9188
9206
  g.current = {
9189
9207
  left: e.left + i.x,
9190
9208
  top: e.top + i.y
9191
9209
  };
9192
9210
  }
9193
9211
  }, A = () => {
9194
- d.current = ds(t), us(t) || (p.current = null, m.current = null, l.current = is, _.current = !1, g.current = null, v.current && fs(t, f, null), v.current = null);
9212
+ d.current = us(t), ls(t) || (p.current = null, m.current = null, l.current = rs, _.current = !1, g.current = null, v.current && ds(t, f, null), v.current = null);
9195
9213
  let e = v.current;
9196
9214
  if (e && !m.current) {
9197
- let n = as(h), r = d.current, i = _.current && g.current ? g.current : {
9215
+ let n = is(h), r = d.current, i = _.current && g.current ? g.current : {
9198
9216
  left: n.left + r,
9199
9217
  top: n.top + r
9200
- }, a = $o(e, Qo(i, e, ps(t, f), n, r)), o = Math.max(n.left + r, Math.min(i.left, n.right - r - a.width)), s = Math.max(n.top + r, Math.min(i.top, n.bottom - r - a.height));
9201
- (a.width !== e.width || a.height !== e.height) && (v.current = a, fs(t, f, a)), _.current && (o !== i.left || s !== i.top) && (g.current = {
9218
+ }, a = Qo(e, Zo(i, e, fs(t, f), n, r)), o = Math.max(n.left + r, Math.min(i.left, n.right - r - a.width)), s = Math.max(n.top + r, Math.min(i.top, n.bottom - r - a.height));
9219
+ (a.width !== e.width || a.height !== e.height) && (v.current = a, ds(t, f, a)), _.current && (o !== i.left || s !== i.top) && (g.current = {
9202
9220
  left: o,
9203
9221
  top: s
9204
9222
  });
@@ -9211,11 +9229,11 @@ function ms({ open: e, draggable: t, resizable: n, remember: r, placement: i, an
9211
9229
  }, N = (e) => {
9212
9230
  e.target === t && k();
9213
9231
  }, P = "ResizeObserver" in S ? new S.ResizeObserver(M) : null;
9214
- return _.current = x && g.current !== null, b && v.current && fs(t, f, v.current), A(), S.addEventListener("resize", M), S.addEventListener("scroll", M, {
9232
+ return _.current = x && g.current !== null, b && v.current && ds(t, f, v.current), A(), S.addEventListener("resize", M), S.addEventListener("scroll", M, {
9215
9233
  capture: !0,
9216
9234
  passive: !0
9217
9235
  }), t.addEventListener("animationend", N), P?.observe(t), () => {
9218
- S.cancelAnimationFrame(j), S.removeEventListener("resize", M), S.removeEventListener("scroll", M, { capture: !0 }), t.removeEventListener("animationend", N), P?.disconnect(), p.current = null, m.current = null, u.current = is, l.current = is, _.current = !1, t.style.translate = "", t.style.transformOrigin = "", b && (t.style.userSelect = "", fs(t, f, null)), delete t.dataset.placement;
9236
+ S.cancelAnimationFrame(j), S.removeEventListener("resize", M), S.removeEventListener("scroll", M, { capture: !0 }), t.removeEventListener("animationend", N), P?.disconnect(), p.current = null, m.current = null, u.current = rs, l.current = rs, _.current = !1, t.style.translate = "", t.style.transformOrigin = "", b && (t.style.userSelect = "", ds(t, f, null)), delete t.dataset.placement;
9219
9237
  };
9220
9238
  }, [
9221
9239
  e,
@@ -9230,37 +9248,37 @@ function ms({ open: e, draggable: t, resizable: n, remember: r, placement: i, an
9230
9248
  c
9231
9249
  ]);
9232
9250
  let S = (e, t) => {
9233
- let n = ss(u.current, l.current), r = cs(e, t);
9251
+ let n = os(u.current, l.current), r = ss(e, t);
9234
9252
  g.current = {
9235
9253
  left: r.left + n.x,
9236
9254
  top: r.top + n.y
9237
- }, u.current = n, l.current = is, _.current = !0, e.dataset.placement = "remembered", e.style.transformOrigin = "";
9255
+ }, u.current = n, l.current = rs, _.current = !0, e.dataset.placement = "remembered", e.style.transformOrigin = "";
9238
9256
  }, C = (e) => s.current ?? e, w = (e) => {
9239
9257
  let t = o.current, n = e.currentTarget, r = t?.parentElement;
9240
9258
  if (!t || !r || e.button !== 0 || !e.isPrimary || m.current) return;
9241
- let i = e.target.closest(rs);
9242
- i && i !== n && n.contains(i) || !us(t) || (e.preventDefault(), n.setPointerCapture(e.pointerId), n.style.cursor = "grabbing", p.current = {
9259
+ let i = e.target.closest(ns);
9260
+ i && i !== n && n.contains(i) || !ls(t) || (e.preventDefault(), n.setPointerCapture(e.pointerId), n.style.cursor = "grabbing", p.current = {
9243
9261
  pointerId: e.pointerId,
9244
9262
  startX: e.clientX,
9245
9263
  startY: e.clientY,
9246
- origin: ss(u.current, l.current),
9264
+ origin: os(u.current, l.current),
9247
9265
  dialog: t.getBoundingClientRect(),
9248
9266
  handle: C(n).getBoundingClientRect(),
9249
- bounds: as(r),
9267
+ bounds: is(r),
9250
9268
  margin: d.current,
9251
9269
  moved: !1
9252
9270
  });
9253
9271
  }, T = (e) => {
9254
9272
  let t = p.current, n = o.current;
9255
9273
  if (!t || t.pointerId !== e.pointerId || !n) return;
9256
- let r = Go({
9274
+ let r = Wo({
9257
9275
  x: t.origin.x + e.clientX - t.startX,
9258
9276
  y: t.origin.y + e.clientY - t.startY
9259
9277
  }, t.origin, t.dialog, t.handle, t.bounds, t.margin);
9260
9278
  t.moved ||= r.x !== t.origin.x || r.y !== t.origin.y, l.current = {
9261
9279
  x: r.x - u.current.x,
9262
9280
  y: r.y - u.current.y
9263
- }, n.style.translate = Ko(r);
9281
+ }, n.style.translate = Go(r);
9264
9282
  }, E = (e) => {
9265
9283
  let t = p.current, n = e.currentTarget;
9266
9284
  if ((!t || t.pointerId === e.pointerId) && n.style.cursor === "grabbing" && (n.style.cursor = ""), t?.pointerId !== e.pointerId) return;
@@ -9268,42 +9286,42 @@ function ms({ open: e, draggable: t, resizable: n, remember: r, placement: i, an
9268
9286
  let r = o.current, i = r?.parentElement;
9269
9287
  !(x || _.current) || !t.moved || !r || !i || S(r, i);
9270
9288
  }, D = (e) => {
9271
- let t = Yo(e.key, e.shiftKey), n = o.current, r = n?.parentElement;
9272
- if (!t || e.altKey || e.ctrlKey || e.metaKey || !n || !r || p.current || m.current || !us(n)) return;
9289
+ let t = Jo(e.key, e.shiftKey), n = o.current, r = n?.parentElement;
9290
+ if (!t || e.altKey || e.ctrlKey || e.metaKey || !n || !r || p.current || m.current || !ls(n)) return;
9273
9291
  e.preventDefault();
9274
- let i = ss(u.current, l.current), a = Go({
9292
+ let i = os(u.current, l.current), a = Wo({
9275
9293
  x: i.x + t.x,
9276
9294
  y: i.y + t.y
9277
- }, i, n.getBoundingClientRect(), C(e.currentTarget).getBoundingClientRect(), as(r), d.current);
9295
+ }, i, n.getBoundingClientRect(), C(e.currentTarget).getBoundingClientRect(), is(r), d.current);
9278
9296
  a.x === i.x && a.y === i.y || (l.current = {
9279
9297
  x: a.x - u.current.x,
9280
9298
  y: a.y - u.current.y
9281
- }, n.style.translate = Ko(a), (x || _.current) && S(n, r));
9299
+ }, n.style.translate = Go(a), (x || _.current) && S(n, r));
9282
9300
  }, O = (e, t, n) => {
9283
9301
  (!_.current || !g.current) && S(e, t);
9284
9302
  let r = g.current;
9285
9303
  if (!r) return;
9286
- v.current = n, fs(e, c.current, n);
9287
- let i = cs(e, t);
9304
+ v.current = n, ds(e, c.current, n);
9305
+ let i = ss(e, t);
9288
9306
  u.current = {
9289
9307
  x: r.left - i.left,
9290
9308
  y: r.top - i.top
9291
- }, l.current = is, e.style.translate = Ko(u.current);
9309
+ }, l.current = rs, e.style.translate = Go(u.current);
9292
9310
  }, k = (e, t) => {
9293
- let n = cs(e, t), r = ss(u.current, l.current), i = {
9311
+ let n = ss(e, t), r = os(u.current, l.current), i = {
9294
9312
  width: n.width,
9295
9313
  height: n.height
9296
9314
  };
9297
9315
  return {
9298
9316
  current: i,
9299
- limits: Qo({
9317
+ limits: Zo({
9300
9318
  left: n.left + r.x,
9301
9319
  top: n.top + r.y
9302
- }, i, ps(e, c.current), as(t), d.current)
9320
+ }, i, fs(e, c.current), is(t), d.current)
9303
9321
  };
9304
9322
  }, A = (e) => {
9305
9323
  let t = o.current, n = t?.parentElement;
9306
- if (!t || !n || e.button !== 0 || !e.isPrimary || p.current || !us(t)) return;
9324
+ if (!t || !n || e.button !== 0 || !e.isPrimary || p.current || !ls(t)) return;
9307
9325
  e.preventDefault(), e.currentTarget.setPointerCapture(e.pointerId), t.style.userSelect = "none";
9308
9326
  let { current: r, limits: i } = k(t, n);
9309
9327
  m.current = {
@@ -9317,7 +9335,7 @@ function ms({ open: e, draggable: t, resizable: n, remember: r, placement: i, an
9317
9335
  }, j = (e) => {
9318
9336
  let t = m.current, n = o.current, r = n?.parentElement;
9319
9337
  if (!t || t.pointerId !== e.pointerId || !n || !r) return;
9320
- let i = $o({
9338
+ let i = Qo({
9321
9339
  width: t.start.width + e.clientX - t.startX,
9322
9340
  height: t.start.height + e.clientY - t.startY
9323
9341
  }, t.limits), a = t.moved ? v.current : t.start;
@@ -9349,10 +9367,10 @@ function ms({ open: e, draggable: t, resizable: n, remember: r, placement: i, an
9349
9367
  onLostPointerCapture: M
9350
9368
  },
9351
9369
  onKeyDown: (e) => {
9352
- let t = es(e.key, e.shiftKey), n = o.current, r = n?.parentElement;
9353
- if (!t || e.altKey || e.ctrlKey || e.metaKey || !n || !r || p.current || m.current || !us(n)) return;
9370
+ let t = $o(e.key, e.shiftKey), n = o.current, r = n?.parentElement;
9371
+ if (!t || e.altKey || e.ctrlKey || e.metaKey || !n || !r || p.current || m.current || !ls(n)) return;
9354
9372
  e.preventDefault();
9355
- let { current: i, limits: a } = k(n, r), s = $o({
9373
+ let { current: i, limits: a } = k(n, r), s = Qo({
9356
9374
  width: i.width + t.width,
9357
9375
  height: i.height + t.height
9358
9376
  }, a);
@@ -9361,13 +9379,13 @@ function ms({ open: e, draggable: t, resizable: n, remember: r, placement: i, an
9361
9379
  } : void 0
9362
9380
  };
9363
9381
  }
9364
- function hs({ open: e, onClose: t, title: n, children: r, footer: i, className: a, size: o = "sm", draggable: s = !1, resizable: c = !1, rememberPosition: l = !1, placement: d = "center", anchorRef: f, role: p = "dialog", description: m, "aria-label": g, "aria-describedby": _, initialFocusRef: b, returnFocusRef: x, busy: S = !1, closeOnEscape: C = !0, closeOnOverlayClick: w = !0, hideCloseButton: T = !1 }) {
9382
+ function ms({ open: e, onClose: t, title: n, children: r, footer: i, className: a, size: o = "sm", draggable: s = !1, resizable: c = !1, rememberPosition: l = !1, placement: d = "center", anchorRef: f, role: p = "dialog", description: m, "aria-label": g, "aria-describedby": _, initialFocusRef: b, returnFocusRef: x, busy: S = !1, closeOnEscape: C = !0, closeOnOverlayClick: w = !0, hideCloseButton: T = !1 }) {
9365
9383
  let E = $n(), D = h(null), [O, k] = Ht(D), A = h(null), j = h(null), M = u(), N = u();
9366
9384
  Ct(D, e, {
9367
9385
  initialFocusRef: b,
9368
9386
  returnFocusRef: x
9369
9387
  });
9370
- let { drag: P, resize: F } = ms({
9388
+ let { drag: P, resize: F } = ps({
9371
9389
  open: e,
9372
9390
  draggable: s,
9373
9391
  resizable: c,
@@ -9417,7 +9435,7 @@ function hs({ open: e, onClose: t, title: n, children: r, footer: i, className:
9417
9435
  "aria-hidden": "true"
9418
9436
  }), /* @__PURE__ */ y("div", {
9419
9437
  ref: k,
9420
- className: Y(`relative z-50 mx-1 mb-8 flex w-full ${ts[o]} flex-col`, "ui-glass bg-bg-secondary border-border rounded-lg border", "animate-scale-in shadow-lg", a),
9438
+ className: Y(`relative z-50 mx-1 mb-8 flex w-full ${es[o]} flex-col`, "ui-glass bg-bg-secondary border-border rounded-lg border", "animate-scale-in shadow-lg", a),
9421
9439
  role: p,
9422
9440
  tabIndex: -1,
9423
9441
  "aria-busy": S || void 0,
@@ -9482,7 +9500,7 @@ function hs({ open: e, onClose: t, title: n, children: r, footer: i, className:
9482
9500
  }
9483
9501
  //#endregion
9484
9502
  //#region src/components/ui/DialogActions.tsx
9485
- function gs({ onCancel: e, onConfirm: t, cancelLabel: n = "Cancel", confirmLabel: r = "Confirm", confirmVariant: i = "primary", className: a, busy: o = !1, busyLabel: s = "Working…", cancelRef: c, confirmRef: l, confirmDisabled: u = !1 }) {
9503
+ function hs({ onCancel: e, onConfirm: t, cancelLabel: n = "Cancel", confirmLabel: r = "Confirm", confirmVariant: i = "primary", className: a, busy: o = !1, busyLabel: s = "Working…", cancelRef: c, confirmRef: l, confirmDisabled: u = !1 }) {
9486
9504
  return /* @__PURE__ */ y("div", {
9487
9505
  className: Y("flex justify-end gap-2", a),
9488
9506
  "aria-busy": o || void 0,
@@ -9511,7 +9529,7 @@ function gs({ onCancel: e, onConfirm: t, cancelLabel: n = "Cancel", confirmLabel
9511
9529
  }
9512
9530
  //#endregion
9513
9531
  //#region src/components/ui/DividerLabel.tsx
9514
- function _s({ children: e, className: t }) {
9532
+ function gs({ children: e, className: t }) {
9515
9533
  return /* @__PURE__ */ y("div", {
9516
9534
  className: Y("my-6 flex items-center gap-3", t),
9517
9535
  children: [
@@ -9526,11 +9544,11 @@ function _s({ children: e, className: t }) {
9526
9544
  }
9527
9545
  //#endregion
9528
9546
  //#region src/components/ui/DropdownMenu.tsx
9529
- var vs = (e) => !e.divider;
9530
- function ys(e) {
9547
+ var _s = (e) => !e.divider;
9548
+ function vs(e) {
9531
9549
  return e.checked === void 0 ? "menuitem" : e.type === "radio" ? "menuitemradio" : "menuitemcheckbox";
9532
9550
  }
9533
- function bs({ trigger: e, triggerIcon: r, triggerLabel: i, triggerSize: a = "xs", items: c, header: d, renderLink: f, align: p = "right" }) {
9551
+ function ys({ trigger: e, triggerIcon: r, triggerLabel: i, triggerSize: a = "xs", items: c, header: d, renderLink: f, align: p = "right" }) {
9534
9552
  let m = r ? /* @__PURE__ */ v(sr, {
9535
9553
  variant: "icon",
9536
9554
  size: a,
@@ -9540,7 +9558,7 @@ function bs({ trigger: e, triggerIcon: r, triggerLabel: i, triggerSize: a = "xs"
9540
9558
  title: i
9541
9559
  }) : e, [b, x] = g(!1), S = d != null && d !== !1, C = Vt(), [w, T] = g(0), [E, D] = g(""), [k, A] = g(-1), j = h(null), M = h(null), N = h(null), P = h(null), F = h([]), I = h(!1), L = u(), R = `${L}menu`, z = `${L}header`, B = o(m) && m.type !== t ? m : null, V = B?.props.id, ee = typeof V == "string" && V ? V : `${L}trigger`, H = [];
9542
9560
  c.forEach((e) => {
9543
- vs(e) && H.push({
9561
+ _s(e) && H.push({
9544
9562
  item: e,
9545
9563
  index: H.length
9546
9564
  });
@@ -9644,7 +9662,7 @@ function bs({ trigger: e, triggerIcon: r, triggerLabel: i, triggerSize: a = "xs"
9644
9662
  ref: (e) => {
9645
9663
  F.current[r.index] = e;
9646
9664
  },
9647
- role: ys(e),
9665
+ role: vs(e),
9648
9666
  "aria-checked": i ? e.checked : void 0,
9649
9667
  "aria-disabled": e.disabled || void 0,
9650
9668
  tabIndex: r.index === k ? 0 : -1,
@@ -9732,7 +9750,7 @@ function bs({ trigger: e, triggerIcon: r, triggerLabel: i, triggerSize: a = "xs"
9732
9750
  }
9733
9751
  //#endregion
9734
9752
  //#region src/components/ui/EmptyState.tsx
9735
- function xs({ icon: e, title: t, description: n, action: r, className: i }) {
9753
+ function bs({ icon: e, title: t, description: n, action: r, className: i }) {
9736
9754
  return /* @__PURE__ */ y("div", {
9737
9755
  className: Y("flex flex-col items-center justify-center px-4 py-12", i),
9738
9756
  children: [
@@ -9757,7 +9775,7 @@ function xs({ icon: e, title: t, description: n, action: r, className: i }) {
9757
9775
  }
9758
9776
  //#endregion
9759
9777
  //#region src/components/ui/ErrorBoundary.tsx
9760
- var Ss = class extends e {
9778
+ var xs = class extends e {
9761
9779
  state = {
9762
9780
  hasError: !1,
9763
9781
  error: null
@@ -9799,8 +9817,8 @@ var Ss = class extends e {
9799
9817
  };
9800
9818
  //#endregion
9801
9819
  //#region src/components/ui/FilterDropdown.tsx
9802
- function Cs({ icon: e, children: t, items: n, align: r, className: i }) {
9803
- return /* @__PURE__ */ v(bs, {
9820
+ function Ss({ icon: e, children: t, items: n, align: r, className: i }) {
9821
+ return /* @__PURE__ */ v(ys, {
9804
9822
  align: r,
9805
9823
  trigger: /* @__PURE__ */ v(Rr, {
9806
9824
  icon: e,
@@ -9812,7 +9830,7 @@ function Cs({ icon: e, children: t, items: n, align: r, className: i }) {
9812
9830
  }
9813
9831
  //#endregion
9814
9832
  //#region src/components/ui/Kbd.tsx
9815
- function ws({ children: e, className: t }) {
9833
+ function Cs({ children: e, className: t }) {
9816
9834
  return /* @__PURE__ */ v("kbd", {
9817
9835
  className: Y("text-2xs inline-flex items-center px-1.5 py-0.5 font-mono font-medium", "bg-bg-tertiary text-text-secondary border-border rounded border", t),
9818
9836
  children: e
@@ -9820,20 +9838,20 @@ function ws({ children: e, className: t }) {
9820
9838
  }
9821
9839
  //#endregion
9822
9840
  //#region src/components/ui/LoadingSpinner.tsx
9823
- var Ts = {
9841
+ var ws = {
9824
9842
  sm: "w-4 h-4",
9825
9843
  md: "w-6 h-6",
9826
9844
  lg: "w-8 h-8"
9827
9845
  };
9828
- function Es({ className: e, size: t = "md" }) {
9846
+ function Ts({ className: e, size: t = "md" }) {
9829
9847
  return /* @__PURE__ */ v("div", {
9830
9848
  className: Y("flex min-h-[200px] items-center justify-center", e),
9831
- children: /* @__PURE__ */ v(H, { className: Y("text-accent animate-spin", Ts[t]) })
9849
+ children: /* @__PURE__ */ v(H, { className: Y("text-accent animate-spin", ws[t]) })
9832
9850
  });
9833
9851
  }
9834
9852
  //#endregion
9835
9853
  //#region src/components/ui/ListItemLink.tsx
9836
- function Ds({ title: e, icon: t, meta: n, trailing: r, active: i, className: a, ...o }) {
9854
+ function Es({ title: e, icon: t, meta: n, trailing: r, active: i, className: a, ...o }) {
9837
9855
  let s = Y("group hover:bg-bg-hover flex min-w-0 items-center gap-2 rounded-md px-2 py-1.5 text-left text-xs transition-colors duration-[100ms] focus-visible:outline-accent focus-visible:outline-2 focus-visible:outline-offset-2", i && "bg-accent-muted", a), c = /* @__PURE__ */ y(_, { children: [
9838
9856
  t != null && /* @__PURE__ */ v("span", {
9839
9857
  className: "shrink-0",
@@ -9874,7 +9892,7 @@ function Ds({ title: e, icon: t, meta: n, trailing: r, active: i, className: a,
9874
9892
  }
9875
9893
  //#endregion
9876
9894
  //#region src/components/ui/MessageBubble.tsx
9877
- function Os({ direction: e, author: t, timestamp: n, status: r, actions: i, children: a, className: o, ...s }) {
9895
+ function Ds({ direction: e, author: t, timestamp: n, status: r, actions: i, children: a, className: o, ...s }) {
9878
9896
  let c = e === "outbound";
9879
9897
  return /* @__PURE__ */ v("div", {
9880
9898
  role: "group",
@@ -9912,7 +9930,7 @@ function Os({ direction: e, author: t, timestamp: n, status: r, actions: i, chil
9912
9930
  }
9913
9931
  //#endregion
9914
9932
  //#region src/lib/layout.ts
9915
- function ks(e, t, n, r) {
9933
+ function Os(e, t, n, r) {
9916
9934
  let i = typeof t == "object" ? t : { base: t }, a = { [`--ui-${e}-base`]: n(i.base ?? r) };
9917
9935
  for (let t of [
9918
9936
  "sm",
@@ -9922,38 +9940,38 @@ function ks(e, t, n, r) {
9922
9940
  ]) a[`--ui-${e}-${t}`] = i[t] === void 0 ? "initial" : n(i[t]);
9923
9941
  return a;
9924
9942
  }
9925
- function As(e) {
9943
+ function ks(e) {
9926
9944
  return typeof e == "number" ? `repeat(${e}, minmax(0, 1fr))` : e;
9927
9945
  }
9928
- function js(e = 0, t, n) {
9946
+ function As(e = 0, t, n) {
9929
9947
  return {
9930
9948
  "--ui-gap": `calc(var(--spacing) * ${e})`,
9931
9949
  "--ui-gap-x": t === void 0 ? "initial" : `calc(var(--spacing) * ${t})`,
9932
9950
  "--ui-gap-y": n === void 0 ? "initial" : `calc(var(--spacing) * ${n})`
9933
9951
  };
9934
9952
  }
9935
- function Ms(e) {
9953
+ function js(e) {
9936
9954
  return e === "start" || e === "end" ? `flex-${e}` : e;
9937
9955
  }
9938
- function Ns(e) {
9939
- return e === "between" || e === "around" || e === "evenly" ? `space-${e}` : Ms(e);
9956
+ function Ms(e) {
9957
+ return e === "between" || e === "around" || e === "evenly" ? `space-${e}` : js(e);
9940
9958
  }
9941
9959
  //#endregion
9942
9960
  //#region src/components/ui/MetadataGrid.tsx
9943
- var Ps = "ui-metadata-stripe rounded-md px-2 py-1.5";
9944
- function Fs(e, t) {
9945
- return ks("stripe", t, (t) => Math.floor(e / t) % 2 == 0 ? "var(--ui-metadata-stripe-color, var(--bg-tertiary))" : "transparent", 1);
9961
+ var Ns = "ui-metadata-stripe rounded-md px-2 py-1.5";
9962
+ function Ps(e, t) {
9963
+ return Os("stripe", t, (t) => Math.floor(e / t) % 2 == 0 ? "var(--ui-metadata-stripe-color, var(--bg-tertiary))" : "transparent", 1);
9946
9964
  }
9947
- function Is({ items: e, labelWidth: n = "100px", layout: r = "inline", columns: i = 1, gap: a = 3, striped: o = !1, className: s }) {
9965
+ function Fs({ items: e, labelWidth: n = "100px", layout: r = "inline", columns: i = 1, gap: a = 3, striped: o = !1, className: s }) {
9948
9966
  return r === "stacked" ? /* @__PURE__ */ v("dl", {
9949
9967
  className: Y("ui-grid text-xs", s),
9950
9968
  style: {
9951
- ...ks("columns", i, As, 1),
9952
- ...o ? js(a, void 0, 0) : js(a)
9969
+ ...Os("columns", i, ks, 1),
9970
+ ...o ? As(a, void 0, 0) : As(a)
9953
9971
  },
9954
9972
  children: e.map((e, t) => /* @__PURE__ */ y("div", {
9955
- className: o ? Ps : void 0,
9956
- style: o ? Fs(t, i) : void 0,
9973
+ className: o ? Ns : void 0,
9974
+ style: o ? Ps(t, i) : void 0,
9957
9975
  children: [/* @__PURE__ */ v("dt", {
9958
9976
  className: "text-text-tertiary font-label",
9959
9977
  children: e.label
@@ -9969,9 +9987,9 @@ function Is({ items: e, labelWidth: n = "100px", layout: r = "inline", columns:
9969
9987
  gridTemplateColumns: `${n} 1fr`
9970
9988
  },
9971
9989
  children: e.map((e, t) => /* @__PURE__ */ y("div", {
9972
- className: Ps,
9990
+ className: Ns,
9973
9991
  style: {
9974
- ...Fs(t, 1),
9992
+ ...Ps(t, 1),
9975
9993
  display: "grid",
9976
9994
  gridColumn: "1 / -1",
9977
9995
  gridTemplateColumns: "subgrid"
@@ -10001,13 +10019,13 @@ function Is({ items: e, labelWidth: n = "100px", layout: r = "inline", columns:
10001
10019
  }
10002
10020
  //#endregion
10003
10021
  //#region src/components/ui/MetricCard.tsx
10004
- var Ls = {
10022
+ var Is = {
10005
10023
  positive: "success",
10006
10024
  negative: "danger",
10007
10025
  neutral: "neutral"
10008
10026
  };
10009
- function Rs({ label: e, value: t, sub: n, trend: r, bar: i, icon: a, iconColor: o, className: s }) {
10010
- let c = r && Ls[r.tone], l = Mn(An(c) ? c : "neutral").text;
10027
+ function Ls({ label: e, value: t, sub: n, trend: r, bar: i, icon: a, iconColor: o, className: s }) {
10028
+ let c = r && Is[r.tone], l = Mn(An(c) ? c : "neutral").text;
10011
10029
  return /* @__PURE__ */ y("div", {
10012
10030
  className: Y("ui-glass bg-bg-card border-border relative overflow-hidden rounded-md border p-3", s),
10013
10031
  children: [
@@ -10046,7 +10064,7 @@ function Rs({ label: e, value: t, sub: n, trend: r, bar: i, icon: a, iconColor:
10046
10064
  }
10047
10065
  //#endregion
10048
10066
  //#region src/components/ui/OAuthButton.tsx
10049
- function zs() {
10067
+ function Rs() {
10050
10068
  return /* @__PURE__ */ y("svg", {
10051
10069
  className: "h-3.5 w-3.5",
10052
10070
  viewBox: "0 0 24 24",
@@ -10071,7 +10089,7 @@ function zs() {
10071
10089
  ]
10072
10090
  });
10073
10091
  }
10074
- function Bs() {
10092
+ function zs() {
10075
10093
  return /* @__PURE__ */ v("svg", {
10076
10094
  className: "h-3.5 w-3.5",
10077
10095
  viewBox: "0 0 24 24",
@@ -10080,25 +10098,25 @@ function Bs() {
10080
10098
  children: /* @__PURE__ */ v("path", { d: "M12 0C5.37 0 0 5.37 0 12c0 5.31 3.435 9.795 8.205 11.385.6.105.825-.255.825-.57 0-.285-.015-1.23-.015-2.235-3.015.555-3.795-.735-4.035-1.41-.135-.345-.72-1.41-1.23-1.695-.42-.225-1.02-.78-.015-.795.945-.015 1.62.87 1.845 1.23 1.08 1.815 2.805 1.305 3.495.99.105-.78.42-1.305.765-1.605-2.67-.3-5.46-1.335-5.46-5.925 0-1.305.465-2.385 1.23-3.225-.12-.3-.54-1.53.12-3.18 0 0 1.005-.315 3.3 1.23.96-.27 1.98-.405 3-.405s2.04.135 3 .405c2.295-1.56 3.3-1.23 3.3-1.23.66 1.65.24 2.88.12 3.18.765.84 1.23 1.905 1.23 3.225 0 4.605-2.805 5.625-5.475 5.925.435.375.81 1.095.81 2.22 0 1.605-.015 2.895-.015 3.3 0 .315.225.69.825.57A12.02 12.02 0 0024 12c0-6.63-5.37-12-12-12z" })
10081
10099
  });
10082
10100
  }
10083
- var Vs = {
10101
+ var Bs = {
10084
10102
  github: "GitHub",
10085
10103
  google: "Google"
10086
- }, Hs = {
10087
- github: Bs,
10088
- google: zs
10104
+ }, Vs = {
10105
+ github: zs,
10106
+ google: Rs
10089
10107
  };
10090
- function Us({ provider: e, children: t, ...n }) {
10091
- let r = Hs[e];
10108
+ function Hs({ provider: e, children: t, ...n }) {
10109
+ let r = Vs[e];
10092
10110
  return /* @__PURE__ */ y(sr, {
10093
10111
  variant: "secondary",
10094
10112
  size: "md",
10095
10113
  ...n,
10096
- children: [/* @__PURE__ */ v(r, {}), t ?? Vs[e]]
10114
+ children: [/* @__PURE__ */ v(r, {}), t ?? Bs[e]]
10097
10115
  });
10098
10116
  }
10099
10117
  //#endregion
10100
10118
  //#region src/components/ui/OverlineLabel.tsx
10101
- function Ws({ children: e, as: t = "span", className: n }) {
10119
+ function Us({ children: e, as: t = "span", className: n }) {
10102
10120
  return /* @__PURE__ */ v(t, {
10103
10121
  className: Y("text-2xs text-text-tertiary font-label font-medium tracking-wider uppercase", n),
10104
10122
  children: e
@@ -10106,7 +10124,7 @@ function Ws({ children: e, as: t = "span", className: n }) {
10106
10124
  }
10107
10125
  //#endregion
10108
10126
  //#region src/components/ui/PageHeader.tsx
10109
- function Gs({ title: e, subtitle: t, actions: n, className: r, eyebrow: i, headingLevel: a = 1, wrap: o = !1 }) {
10127
+ function Ws({ title: e, subtitle: t, actions: n, className: r, eyebrow: i, headingLevel: a = 1, wrap: o = !1 }) {
10110
10128
  let s = `h${a}`;
10111
10129
  return /* @__PURE__ */ y("div", {
10112
10130
  className: Y("flex items-center justify-between gap-3", o && "flex-wrap", r),
@@ -10134,7 +10152,7 @@ function Gs({ title: e, subtitle: t, actions: n, className: r, eyebrow: i, headi
10134
10152
  }
10135
10153
  //#endregion
10136
10154
  //#region src/components/ui/PageSection.tsx
10137
- function Ks({ title: e, description: t, actions: n, children: r, as: i = "h2", className: a, headerClassName: o, contentClassName: s }) {
10155
+ function Gs({ title: e, description: t, actions: n, children: r, as: i = "h2", className: a, headerClassName: o, contentClassName: s }) {
10138
10156
  return /* @__PURE__ */ y("section", {
10139
10157
  className: Y("space-y-4", a),
10140
10158
  children: [(e || t || n) && /* @__PURE__ */ y("div", {
@@ -10160,7 +10178,7 @@ function Ks({ title: e, description: t, actions: n, children: r, as: i = "h2", c
10160
10178
  }
10161
10179
  //#endregion
10162
10180
  //#region src/components/ui/PaginationBar.tsx
10163
- var qs = [
10181
+ var Ks = [
10164
10182
  {
10165
10183
  value: "10",
10166
10184
  label: "10 per page"
@@ -10174,7 +10192,7 @@ var qs = [
10174
10192
  label: "50 per page"
10175
10193
  }
10176
10194
  ];
10177
- function Js({ page: e, pageSize: t, total: n, summary: r, showTotal: i = !1, loading: a = !1, pageSizeOptions: o = qs, onPageChange: s, onPageSizeChange: c, className: l }) {
10195
+ function qs({ page: e, pageSize: t, total: n, summary: r, showTotal: i = !1, loading: a = !1, pageSizeOptions: o = Ks, onPageChange: s, onPageSizeChange: c, className: l }) {
10178
10196
  let u = Math.ceil(n / t), d = Math.min((e - 1) * t + 1, n), f = Math.min(e * t, n);
10179
10197
  return /* @__PURE__ */ y("div", {
10180
10198
  className: Y("flex items-center justify-between", l),
@@ -10215,7 +10233,7 @@ function Js({ page: e, pageSize: t, total: n, summary: r, showTotal: i = !1, loa
10215
10233
  }
10216
10234
  //#endregion
10217
10235
  //#region src/components/ui/useFieldControl.ts
10218
- function Ys({ id: e, error: t, hint: n, describedBy: r, invalid: i, required: a }) {
10236
+ function Js({ id: e, error: t, hint: n, describedBy: r, invalid: i, required: a }) {
10219
10237
  let o = u(), s = c(_r), l = e ?? s?.id ?? o, d = t ? `${l}-error` : void 0, f = n ? `${l}-hint` : void 0;
10220
10238
  return {
10221
10239
  inputId: l,
@@ -10229,8 +10247,8 @@ function Ys({ id: e, error: t, hint: n, describedBy: r, invalid: i, required: a
10229
10247
  }
10230
10248
  //#endregion
10231
10249
  //#region src/components/ui/PasswordInput.tsx
10232
- var Xs = a(({ label: e, error: t, className: n, id: r, hint: i, controlSize: a, required: o, "aria-describedby": s, "aria-invalid": c, ...l }, u) => {
10233
- let d = Ys({
10250
+ var Ys = a(({ label: e, error: t, className: n, id: r, hint: i, controlSize: a, required: o, "aria-describedby": s, "aria-invalid": c, ...l }, u) => {
10251
+ let d = Js({
10234
10252
  id: r,
10235
10253
  error: t,
10236
10254
  hint: i,
@@ -10282,8 +10300,8 @@ var Xs = a(({ label: e, error: t, className: n, id: r, hint: i, controlSize: a,
10282
10300
  ]
10283
10301
  });
10284
10302
  });
10285
- Xs.displayName = "PasswordInput";
10286
- var Zs = Object.freeze([
10303
+ Ys.displayName = "PasswordInput";
10304
+ var Xs = Object.freeze([
10287
10305
  {
10288
10306
  label: "At least 8 characters",
10289
10307
  test: (e) => e.length >= 8
@@ -10301,12 +10319,12 @@ var Zs = Object.freeze([
10301
10319
  test: (e) => /\d/.test(e)
10302
10320
  }
10303
10321
  ]);
10304
- function Qs(e, t = Zs) {
10322
+ function Zs(e, t = Xs) {
10305
10323
  return t.every((t) => t.test(e));
10306
10324
  }
10307
10325
  //#endregion
10308
10326
  //#region src/components/ui/PasswordRequirements.tsx
10309
- function $s({ password: e, requirements: t = Zs, showWhenEmpty: n = !1, className: r }) {
10327
+ function Qs({ password: e, requirements: t = Xs, showWhenEmpty: n = !1, className: r }) {
10310
10328
  return !n && e.length === 0 ? null : /* @__PURE__ */ v("ul", {
10311
10329
  "aria-label": "Password requirements",
10312
10330
  className: Y("space-y-1", r),
@@ -10333,7 +10351,7 @@ function $s({ password: e, requirements: t = Zs, showWhenEmpty: n = !1, classNam
10333
10351
  }
10334
10352
  //#endregion
10335
10353
  //#region src/components/ui/Popover.tsx
10336
- function ec({ trigger: e, open: t, onOpenChange: n, placement: r = "bottom", ariaLabel: i, children: a, className: o }) {
10354
+ function $s({ trigger: e, open: t, onOpenChange: n, placement: r = "bottom", ariaLabel: i, children: a, className: o }) {
10337
10355
  let c = h(null), l = h(null), [d, p] = Ht(l), m = u(), g = (e) => {
10338
10356
  n(!1), e === "escape" && c.current?.focus();
10339
10357
  }, b = xn(t, g, [l], [c]);
@@ -10373,7 +10391,7 @@ function ec({ trigger: e, open: t, onOpenChange: n, placement: r = "bottom", ari
10373
10391
  }
10374
10392
  //#endregion
10375
10393
  //#region src/components/ui/ProfileHeader.tsx
10376
- function tc({ name: e, subtitle: t, badge: n, meta: r, action: i, className: a }) {
10394
+ function ec({ name: e, subtitle: t, badge: n, meta: r, action: i, className: a }) {
10377
10395
  return /* @__PURE__ */ y("div", {
10378
10396
  className: Y("flex items-start gap-4", a),
10379
10397
  children: [
@@ -10421,7 +10439,7 @@ function tc({ name: e, subtitle: t, badge: n, meta: r, action: i, className: a }
10421
10439
  }
10422
10440
  //#endregion
10423
10441
  //#region src/components/ui/ProseContent.tsx
10424
- function nc({ children: e, className: t }) {
10442
+ function tc({ children: e, className: t }) {
10425
10443
  return /* @__PURE__ */ v("div", {
10426
10444
  className: Y("ui-prose", t),
10427
10445
  children: e
@@ -10429,21 +10447,21 @@ function nc({ children: e, className: t }) {
10429
10447
  }
10430
10448
  //#endregion
10431
10449
  //#region src/lib/qrCode.ts
10432
- var rc = class extends RangeError {
10450
+ var nc = class extends RangeError {
10433
10451
  constructor() {
10434
10452
  super("Text is too long to encode as a QR code"), this.name = "QrCapacityError";
10435
10453
  }
10436
- }, ic = {
10454
+ }, rc = {
10437
10455
  L: 0,
10438
10456
  M: 1,
10439
10457
  Q: 2,
10440
10458
  H: 3
10441
- }, ac = {
10459
+ }, ic = {
10442
10460
  L: 1,
10443
10461
  M: 0,
10444
10462
  Q: 3,
10445
10463
  H: 2
10446
- }, oc = [
10464
+ }, ac = [
10447
10465
  [
10448
10466
  -1,
10449
10467
  7,
@@ -10616,7 +10634,7 @@ var rc = class extends RangeError {
10616
10634
  30,
10617
10635
  30
10618
10636
  ]
10619
- ], sc = [
10637
+ ], oc = [
10620
10638
  [
10621
10639
  -1,
10622
10640
  1,
@@ -10790,7 +10808,7 @@ var rc = class extends RangeError {
10790
10808
  81
10791
10809
  ]
10792
10810
  ];
10793
- function cc(e) {
10811
+ function sc(e) {
10794
10812
  let t = (16 * e + 128) * e + 64;
10795
10813
  if (e >= 2) {
10796
10814
  let n = Math.floor(e / 7) + 2;
@@ -10798,43 +10816,43 @@ function cc(e) {
10798
10816
  }
10799
10817
  return t;
10800
10818
  }
10801
- function lc(e, t) {
10802
- let n = ic[t];
10803
- return Math.floor(cc(e) / 8) - oc[n][e] * sc[n][e];
10819
+ function cc(e, t) {
10820
+ let n = rc[t];
10821
+ return Math.floor(sc(e) / 8) - ac[n][e] * oc[n][e];
10804
10822
  }
10805
- function uc(e) {
10823
+ function lc(e) {
10806
10824
  if (e === 1) return [];
10807
10825
  let t = Math.floor(e / 7) + 2, n = Math.floor((e * 8 + t * 3 + 5) / (t * 4 - 4)) * 2, r = [6];
10808
10826
  for (let i = e * 4 + 17 - 7; r.length < t; i -= n) r.splice(1, 0, i);
10809
10827
  return r;
10810
10828
  }
10811
- function dc(e, t) {
10829
+ function uc(e, t) {
10812
10830
  let n = 0;
10813
10831
  for (let r = 7; r >= 0; r--) n = n << 1 ^ (n >>> 7) * 285, n ^= (t >>> r & 1) * e;
10814
10832
  return n;
10815
10833
  }
10816
- function fc(e) {
10834
+ function dc(e) {
10817
10835
  let t = Array(e).fill(0);
10818
10836
  t[e - 1] = 1;
10819
10837
  let n = 1;
10820
10838
  for (let r = 0; r < e; r++) {
10821
- for (let e = 0; e < t.length; e++) t[e] = dc(t[e], n), e + 1 < t.length && (t[e] ^= t[e + 1]);
10822
- n = dc(n, 2);
10839
+ for (let e = 0; e < t.length; e++) t[e] = uc(t[e], n), e + 1 < t.length && (t[e] ^= t[e + 1]);
10840
+ n = uc(n, 2);
10823
10841
  }
10824
10842
  return t;
10825
10843
  }
10826
- function pc(e, t) {
10844
+ function fc(e, t) {
10827
10845
  let n = Array(t.length).fill(0);
10828
10846
  for (let r of e) {
10829
10847
  let e = r ^ n.shift();
10830
10848
  n.push(0), t.forEach((t, r) => {
10831
- n[r] ^= dc(t, e);
10849
+ n[r] ^= uc(t, e);
10832
10850
  });
10833
10851
  }
10834
10852
  return n;
10835
10853
  }
10836
- function mc(e, t, n) {
10837
- let r = lc(t, n) * 8, i = [], a = (e, t) => {
10854
+ function pc(e, t, n) {
10855
+ let r = cc(t, n) * 8, i = [], a = (e, t) => {
10838
10856
  for (let n = t - 1; n >= 0; n--) i.push(e >>> n & 1);
10839
10857
  };
10840
10858
  a(4, 4), a(e.length, t <= 9 ? 8 : 16);
@@ -10845,12 +10863,12 @@ function mc(e, t, n) {
10845
10863
  for (let e = 0; e < i.length; e += 8) o.push(i.slice(e, e + 8).reduce((e, t) => e << 1 | t));
10846
10864
  return o;
10847
10865
  }
10848
- function hc(e, t, n) {
10849
- let r = ic[n], i = sc[r][t], a = oc[r][t], o = Math.floor(cc(t) / 8), s = i - o % i, c = Math.floor(o / i), l = fc(a), u = [];
10866
+ function mc(e, t, n) {
10867
+ let r = rc[n], i = oc[r][t], a = ac[r][t], o = Math.floor(sc(t) / 8), s = i - o % i, c = Math.floor(o / i), l = dc(a), u = [];
10850
10868
  for (let t = 0, n = 0; t < i; t++) {
10851
10869
  let r = c - a + (t < s ? 0 : 1), i = e.slice(n, n + r);
10852
10870
  n += r;
10853
- let o = pc(i, l);
10871
+ let o = fc(i, l);
10854
10872
  t < s && i.push(0), u.push(i.concat(o));
10855
10873
  }
10856
10874
  let d = [];
@@ -10859,7 +10877,7 @@ function hc(e, t, n) {
10859
10877
  });
10860
10878
  return d;
10861
10879
  }
10862
- var gc = class {
10880
+ var hc = class {
10863
10881
  size;
10864
10882
  modules;
10865
10883
  isFunction;
@@ -10870,7 +10888,7 @@ var gc = class {
10870
10888
  this.modules[t][e] = n, this.isFunction[t][e] = !0;
10871
10889
  }
10872
10890
  };
10873
- function _c(e, t) {
10891
+ function gc(e, t) {
10874
10892
  let { size: n } = e;
10875
10893
  for (let t = 0; t < n; t++) e.setFunction(6, t, t % 2 == 0), e.setFunction(t, 6, t % 2 == 0);
10876
10894
  for (let [t, r] of [
@@ -10883,15 +10901,15 @@ function _c(e, t) {
10883
10901
  let c = Math.max(Math.abs(a), Math.abs(i));
10884
10902
  e.setFunction(o, s, c !== 2 && c !== 4);
10885
10903
  }
10886
- let r = uc(t), i = r.length - 1;
10904
+ let r = lc(t), i = r.length - 1;
10887
10905
  r.forEach((t, n) => {
10888
10906
  r.forEach((r, a) => {
10889
10907
  if (!(n === 0 && a === 0 || n === 0 && a === i || n === i && a === 0)) for (let n = -2; n <= 2; n++) for (let i = -2; i <= 2; i++) e.setFunction(t + i, r + n, Math.max(Math.abs(i), Math.abs(n)) !== 1);
10890
10908
  });
10891
- }), vc(e, "M", 0), yc(e, t);
10909
+ }), _c(e, "M", 0), vc(e, t);
10892
10910
  }
10893
- function vc(e, t, n) {
10894
- let r = ac[t] << 3 | n, i = r;
10911
+ function _c(e, t, n) {
10912
+ let r = ic[t] << 3 | n, i = r;
10895
10913
  for (let e = 0; e < 10; e++) i = i << 1 ^ (i >>> 9) * 1335;
10896
10914
  let a = (r << 10 | i) ^ 21522, o = (e) => (a >>> e & 1) != 0, { size: s } = e;
10897
10915
  for (let t = 0; t <= 5; t++) e.setFunction(8, t, o(t));
@@ -10901,7 +10919,7 @@ function vc(e, t, n) {
10901
10919
  for (let t = 8; t < 15; t++) e.setFunction(8, s - 15 + t, o(t));
10902
10920
  e.setFunction(8, s - 8, !0);
10903
10921
  }
10904
- function yc(e, t) {
10922
+ function vc(e, t) {
10905
10923
  if (t < 7) return;
10906
10924
  let n = t;
10907
10925
  for (let e = 0; e < 12; e++) n = n << 1 ^ (n >>> 11) * 7973;
@@ -10911,7 +10929,7 @@ function yc(e, t) {
10911
10929
  e.setFunction(i, a, n), e.setFunction(a, i, n);
10912
10930
  }
10913
10931
  }
10914
- function bc(e, t) {
10932
+ function yc(e, t) {
10915
10933
  let { size: n } = e, r = 0;
10916
10934
  for (let i = n - 1; i >= 1; i -= 2) {
10917
10935
  i === 6 && (i = 5);
@@ -10925,7 +10943,7 @@ function bc(e, t) {
10925
10943
  }
10926
10944
  }
10927
10945
  }
10928
- var xc = [
10946
+ var bc = [
10929
10947
  (e, t) => (e + t) % 2 == 0,
10930
10948
  (e, t) => t % 2 == 0,
10931
10949
  (e) => e % 3 == 0,
@@ -10935,10 +10953,10 @@ var xc = [
10935
10953
  (e, t) => (e * t % 2 + e * t % 3) % 2 == 0,
10936
10954
  (e, t) => ((e + t) % 2 + e * t % 3) % 2 == 0
10937
10955
  ];
10938
- function Sc(e, t) {
10939
- for (let n = 0; n < e.size; n++) for (let r = 0; r < e.size; r++) !e.isFunction[n][r] && xc[t](r, n) && (e.modules[n][r] = !e.modules[n][r]);
10956
+ function xc(e, t) {
10957
+ for (let n = 0; n < e.size; n++) for (let r = 0; r < e.size; r++) !e.isFunction[n][r] && bc[t](r, n) && (e.modules[n][r] = !e.modules[n][r]);
10940
10958
  }
10941
- var Cc = [[
10959
+ var Sc = [[
10942
10960
  !0,
10943
10961
  !1,
10944
10962
  !0,
@@ -10963,12 +10981,12 @@ var Cc = [[
10963
10981
  !1,
10964
10982
  !0
10965
10983
  ]];
10966
- function wc(e) {
10984
+ function Cc(e) {
10967
10985
  let t = e.length, n = (t, n, r) => r ? e[t][n] : e[n][t], r = 0;
10968
10986
  for (let e of [!1, !0]) for (let i = 0; i < t; i++) {
10969
10987
  let a = 1;
10970
10988
  for (let o = 1; o <= t; o++) o < t && n(o, i, e) === n(o - 1, i, e) ? a++ : (a >= 5 && (r += 3 + (a - 5)), a = 1);
10971
- for (let a = 0; a + 11 <= t; a++) for (let t of Cc) t.every((t, r) => n(a + r, i, e) === t) && (r += 40);
10989
+ for (let a = 0; a + 11 <= t; a++) for (let t of Sc) t.every((t, r) => n(a + r, i, e) === t) && (r += 40);
10972
10990
  }
10973
10991
  for (let n = 0; n < t - 1; n++) for (let i = 0; i < t - 1; i++) {
10974
10992
  let t = e[n][i];
@@ -10977,20 +10995,20 @@ function wc(e) {
10977
10995
  let i = e.reduce((e, t) => e + t.filter(Boolean).length, 0) * 100 / (t * t);
10978
10996
  return r += Math.floor(Math.abs(i - 50) / 5) * 10, r;
10979
10997
  }
10980
- function Tc(e, t = "M") {
10981
- if (!Object.hasOwn(ic, t)) throw RangeError(`Invalid QR error correction level "${t}"; expected L, M, Q or H`);
10998
+ function wc(e, t = "M") {
10999
+ if (!Object.hasOwn(rc, t)) throw RangeError(`Invalid QR error correction level "${t}"; expected L, M, Q or H`);
10982
11000
  let n = new TextEncoder().encode(e), r = 1;
10983
- for (; r <= 40 && !(4 + (r <= 9 ? 8 : 16) + n.length * 8 <= lc(r, t) * 8); r++);
10984
- if (r > 40) throw new rc();
10985
- let i = hc(mc(n, r, t), r, t), a = new gc(r * 4 + 17);
10986
- _c(a, r), bc(a, i);
11001
+ for (; r <= 40 && !(4 + (r <= 9 ? 8 : 16) + n.length * 8 <= cc(r, t) * 8); r++);
11002
+ if (r > 40) throw new nc();
11003
+ let i = mc(pc(n, r, t), r, t), a = new hc(r * 4 + 17);
11004
+ gc(a, r), yc(a, i);
10987
11005
  let o = 0, s = Infinity;
10988
11006
  for (let e = 0; e < 8; e++) {
10989
- Sc(a, e), vc(a, t, e);
10990
- let n = wc(a.modules);
10991
- n < s && (s = n, o = e), Sc(a, e);
11007
+ xc(a, e), _c(a, t, e);
11008
+ let n = Cc(a.modules);
11009
+ n < s && (s = n, o = e), xc(a, e);
10992
11010
  }
10993
- return Sc(a, o), vc(a, t, o), {
11011
+ return xc(a, o), _c(a, t, o), {
10994
11012
  size: a.size,
10995
11013
  version: r,
10996
11014
  modules: a.modules
@@ -10998,13 +11016,13 @@ function Tc(e, t = "M") {
10998
11016
  }
10999
11017
  //#endregion
11000
11018
  //#region src/components/ui/QrCode.tsx
11001
- function Ec({ value: e, errorCorrection: t = "M", size: n = 160, margin: r = 4, "aria-label": i = "QR code", fallback: a = null, className: o }) {
11019
+ function Tc({ value: e, errorCorrection: t = "M", size: n = 160, margin: r = 4, "aria-label": i = "QR code", fallback: a = null, className: o }) {
11002
11020
  let s = p(() => {
11003
11021
  if (!e) return null;
11004
11022
  try {
11005
- return Tc(e, t);
11023
+ return wc(e, t);
11006
11024
  } catch (e) {
11007
- if (e instanceof rc) return "too-long";
11025
+ if (e instanceof nc) return "too-long";
11008
11026
  throw e;
11009
11027
  }
11010
11028
  }, [e, t]);
@@ -11038,7 +11056,7 @@ function Ec({ value: e, errorCorrection: t = "M", size: n = 160, margin: r = 4,
11038
11056
  }
11039
11057
  //#endregion
11040
11058
  //#region src/components/ui/ReorderList.tsx
11041
- function Dc({ items: e, getKey: t, renderItem: n, onReorder: r, onRemove: i, canRemove: a, getItemLabel: o, addButton: s, disabled: c = !1 }) {
11059
+ function Ec({ items: e, getKey: t, renderItem: n, onReorder: r, onRemove: i, canRemove: a, getItemLabel: o, addButton: s, disabled: c = !1 }) {
11042
11060
  let [l, u] = g(""), d = h(/* @__PURE__ */ new Map()), p = h(null), m = h(null);
11043
11061
  f(() => {
11044
11062
  let n = p.current;
@@ -11153,7 +11171,7 @@ function Dc({ items: e, getKey: t, renderItem: n, onReorder: r, onRemove: i, can
11153
11171
  }
11154
11172
  //#endregion
11155
11173
  //#region src/components/ui/SearchInput.tsx
11156
- function Oc({ value: e, onChange: t, placeholder: n = "Search...", className: r, inputClassName: i, icon: a = q, invalid: o = !1, errorMessage: s, "aria-invalid": c, "aria-describedby": l, ...d }) {
11174
+ function Dc({ value: e, onChange: t, placeholder: n = "Search...", className: r, inputClassName: i, icon: a = q, invalid: o = !1, errorMessage: s, "aria-invalid": c, "aria-describedby": l, ...d }) {
11157
11175
  let f = `${u()}-error`, p = o || c != null && c !== !1 && c !== "false", m = p && s != null && typeof s != "boolean" && s !== "";
11158
11176
  return /* @__PURE__ */ y("div", {
11159
11177
  className: Y("flex flex-col gap-1.5", r),
@@ -11188,8 +11206,8 @@ function Oc({ value: e, onChange: t, placeholder: n = "Search...", className: r,
11188
11206
  }
11189
11207
  //#endregion
11190
11208
  //#region src/components/ui/Select.tsx
11191
- var kc = a(({ label: e, labelPlacement: t = "above", error: n, options: r, className: i, id: a, hint: o, controlSize: c, required: u, "aria-describedby": d, "aria-invalid": f, ...p }, m) => {
11192
- let _ = Ys({
11209
+ var Oc = a(({ label: e, labelPlacement: t = "above", error: n, options: r, className: i, id: a, hint: o, controlSize: c, required: u, "aria-describedby": d, "aria-invalid": f, ...p }, m) => {
11210
+ let _ = Js({
11193
11211
  id: a,
11194
11212
  error: n,
11195
11213
  hint: o,
@@ -11296,10 +11314,10 @@ var kc = a(({ label: e, labelPlacement: t = "above", error: n, options: r, class
11296
11314
  ]
11297
11315
  });
11298
11316
  });
11299
- kc.displayName = "Select";
11317
+ Oc.displayName = "Select";
11300
11318
  //#endregion
11301
11319
  //#region src/components/ui/SettingRow.tsx
11302
- function Ac({ label: e, description: t, action: n, className: r }) {
11320
+ function kc({ label: e, description: t, action: n, className: r }) {
11303
11321
  return /* @__PURE__ */ y("div", {
11304
11322
  className: Y("border-border flex items-center justify-between border-b py-3", r),
11305
11323
  children: [/* @__PURE__ */ y("div", {
@@ -11319,7 +11337,7 @@ function Ac({ label: e, description: t, action: n, className: r }) {
11319
11337
  }
11320
11338
  //#endregion
11321
11339
  //#region src/components/ui/SideSheet.tsx
11322
- function jc({ open: e, onClose: t, title: n, children: r, footer: i, side: a = "right", widthClassName: o = "w-[360px]", resizable: s = !1, className: c, contentClassName: l }) {
11340
+ function Ac({ open: e, onClose: t, title: n, children: r, footer: i, side: a = "right", widthClassName: o = "w-[360px]", resizable: s = !1, className: c, contentClassName: l }) {
11323
11341
  let d = u(), f = $n(), p = h(null), [m, g] = Ht(p);
11324
11342
  Ct(p, e);
11325
11343
  let _ = Mt(e, () => t());
@@ -11366,7 +11384,7 @@ function jc({ open: e, onClose: t, title: n, children: r, footer: i, side: a = "
11366
11384
  className: "ui-bar border-border bg-bg-primary/50 flex shrink-0 items-center gap-2 border-t px-3 py-2.5",
11367
11385
  children: i
11368
11386
  }),
11369
- s && m && /* @__PURE__ */ v(Ic, {
11387
+ s && m && /* @__PURE__ */ v(Fc, {
11370
11388
  sheet: m,
11371
11389
  side: a
11372
11390
  })
@@ -11376,38 +11394,38 @@ function jc({ open: e, onClose: t, title: n, children: r, footer: i, side: a = "
11376
11394
  })
11377
11395
  }), document.body) : null;
11378
11396
  }
11379
- function Mc(e, t) {
11397
+ function jc(e, t) {
11380
11398
  e.style.width = t === null ? "" : `${t}px`;
11381
11399
  }
11382
- function Nc(e) {
11400
+ function Mc(e) {
11383
11401
  let t = e.ownerDocument.body, n = t.style.userSelect, r = t.style.cursor;
11384
11402
  return t.style.userSelect = "none", t.style.cursor = "col-resize", () => {
11385
11403
  t.style.userSelect = n, t.style.cursor = r;
11386
11404
  };
11387
11405
  }
11388
- function Pc(e) {
11406
+ function Nc(e) {
11389
11407
  let t = e.style.width;
11390
- Mc(e, null);
11408
+ jc(e, null);
11391
11409
  let n = e.getBoundingClientRect().width;
11392
11410
  return e.style.width = t, n;
11393
11411
  }
11394
- function Fc(e) {
11412
+ function Pc(e) {
11395
11413
  let t = e.ownerDocument.defaultView, n = parseFloat(t.getComputedStyle(e.ownerDocument.documentElement).fontSize);
11396
11414
  return Math.max(0, t.innerWidth - 2 * n);
11397
11415
  }
11398
- function Ic({ sheet: e, side: t }) {
11416
+ function Fc({ sheet: e, side: t }) {
11399
11417
  let n = e.ownerDocument.defaultView, [r, i] = g(() => ({
11400
11418
  width: e.getBoundingClientRect().width,
11401
11419
  min: e.getBoundingClientRect().width,
11402
- max: Fc(e),
11420
+ max: Pc(e),
11403
11421
  desktop: n.innerWidth >= 640
11404
11422
  })), a = h(null), o = h(null), c = h(null);
11405
11423
  function u() {
11406
11424
  o.current = null, c.current?.(), c.current = null;
11407
11425
  }
11408
11426
  let d = s((t) => {
11409
- let r = Fc(e), o = Math.min(Pc(e), r), s = n.innerWidth >= 640;
11410
- a.current = s && t !== null ? Math.min(r, Math.max(o, t)) : null, a.current !== null && a.current <= o && (a.current = null), Mc(e, a.current), i({
11427
+ let r = Pc(e), o = Math.min(Nc(e), r), s = n.innerWidth >= 640;
11428
+ a.current = s && t !== null ? Math.min(r, Math.max(o, t)) : null, a.current !== null && a.current <= o && (a.current = null), jc(e, a.current), i({
11411
11429
  width: e.getBoundingClientRect().width,
11412
11430
  min: o,
11413
11431
  max: r,
@@ -11419,7 +11437,7 @@ function Ic({ sheet: e, side: t }) {
11419
11437
  u(), d(a.current);
11420
11438
  }, r = new ResizeObserver(() => d(a.current));
11421
11439
  return r.observe(e), n.addEventListener("resize", t), () => {
11422
- r.disconnect(), n.removeEventListener("resize", t), u(), Mc(e, null);
11440
+ r.disconnect(), n.removeEventListener("resize", t), u(), jc(e, null);
11423
11441
  };
11424
11442
  }, [
11425
11443
  d,
@@ -11439,12 +11457,12 @@ function Ic({ sheet: e, side: t }) {
11439
11457
  onPointerDown: (t) => {
11440
11458
  if (!t.isPrimary || t.button !== 0 || o.current) return;
11441
11459
  t.preventDefault(), t.currentTarget.focus(), t.currentTarget.setPointerCapture(t.pointerId);
11442
- let n = Pc(e);
11460
+ let n = Nc(e);
11443
11461
  o.current = {
11444
11462
  pointerId: t.pointerId,
11445
11463
  x: t.clientX,
11446
11464
  width: a.current ?? n
11447
- }, c.current = Nc(e);
11465
+ }, c.current = Mc(e);
11448
11466
  },
11449
11467
  onPointerMove: (e) => {
11450
11468
  let n = o.current;
@@ -11459,33 +11477,33 @@ function Ic({ sheet: e, side: t }) {
11459
11477
  onLostPointerCapture: u,
11460
11478
  onDoubleClick: () => d(null),
11461
11479
  onKeyDown: (n) => {
11462
- let r = Vo(n.key, a.current ?? Pc(e), 16, t);
11480
+ let r = Bo(n.key, a.current ?? Nc(e), 16, t);
11463
11481
  r !== void 0 && (n.preventDefault(), d(r));
11464
11482
  }
11465
11483
  }) : null;
11466
11484
  }
11467
11485
  //#endregion
11468
11486
  //#region src/components/ui/SplitPaneLayout.tsx
11469
- function Lc({ children: e, direction: t = "row", className: n }) {
11487
+ function Ic({ children: e, direction: t = "row", className: n }) {
11470
11488
  return /* @__PURE__ */ v("div", {
11471
11489
  className: Y("-m-4 md:-m-6", "flex h-[calc(100vh-var(--topbar-height)-var(--bottomnav-height))] gap-0 md:h-[calc(100vh-var(--topbar-height))]", t === "column" && "flex-col", n),
11472
11490
  children: e
11473
11491
  });
11474
11492
  }
11475
- function Rc({ children: e, className: t }) {
11493
+ function Lc({ children: e, className: t }) {
11476
11494
  return /* @__PURE__ */ v("div", {
11477
11495
  className: Y("flex min-h-0 min-w-0 flex-1 flex-col overflow-hidden", t),
11478
11496
  children: e
11479
11497
  });
11480
11498
  }
11481
- var zc = Object.assign(Lc, { Main: Rc }), Bc = {
11499
+ var Rc = Object.assign(Ic, { Main: Lc }), zc = {
11482
11500
  active: "success",
11483
11501
  inactive: "neutral",
11484
11502
  pending: "warning",
11485
11503
  error: "danger"
11486
11504
  };
11487
- function Vc({ status: e, label: t, className: n, pulse: r = !1 }) {
11488
- let i = Mn(Bc[e]);
11505
+ function Bc({ status: e, label: t, className: n, pulse: r = !1 }) {
11506
+ let i = Mn(zc[e]);
11489
11507
  return /* @__PURE__ */ y("span", {
11490
11508
  className: Y("inline-flex items-center gap-1.5", n),
11491
11509
  children: [/* @__PURE__ */ v("span", { className: Y("h-2 w-2 rounded-full", i.dot, r ? Y("status-dot-pulse relative", i.text) : e === "pending" && "animate-pulse-subtle") }), t && /* @__PURE__ */ v("span", {
@@ -11496,7 +11514,7 @@ function Vc({ status: e, label: t, className: n, pulse: r = !1 }) {
11496
11514
  }
11497
11515
  //#endregion
11498
11516
  //#region src/components/ui/StepProgress.tsx
11499
- function Hc({ steps: e, currentStep: t, className: n }) {
11517
+ function Vc({ steps: e, currentStep: t, className: n }) {
11500
11518
  return /* @__PURE__ */ v("div", {
11501
11519
  className: Y("flex items-center justify-between", n),
11502
11520
  children: e.map((n, r) => /* @__PURE__ */ y("div", {
@@ -11523,7 +11541,7 @@ function Hc({ steps: e, currentStep: t, className: n }) {
11523
11541
  }
11524
11542
  //#endregion
11525
11543
  //#region src/components/ui/Tabs.tsx
11526
- function Uc({ tabs: e, defaultTab: t, value: n, onChange: r, className: i, panelClassName: a }) {
11544
+ function Hc({ tabs: e, defaultTab: t, value: n, onChange: r, className: i, panelClassName: a }) {
11527
11545
  let [o, s] = g(t || e[0]?.key), c = n ?? o, l = e.some((e) => e.key === c) ? c : e[0]?.key, d = e.find((e) => e.key === l);
11528
11546
  function f(e) {
11529
11547
  n === void 0 && s(e), r?.(e);
@@ -11531,7 +11549,7 @@ function Uc({ tabs: e, defaultTab: t, value: n, onChange: r, className: i, panel
11531
11549
  let p = u(), m = h(null);
11532
11550
  function _(t) {
11533
11551
  let n = e.map((e) => e.key), r = n.indexOf(l), i = null;
11534
- t.key === "ArrowRight" ? (t.preventDefault(), i = (r + 1) % e.length) : t.key === "ArrowLeft" && (t.preventDefault(), i = (r - 1 + e.length) % e.length), i !== null && (f(n[i]), (m.current?.querySelectorAll("[role=\"tab\"]"))?.[i]?.focus());
11552
+ t.key === "ArrowRight" ? i = (r + 1) % e.length : t.key === "ArrowLeft" ? i = (r - 1 + e.length) % e.length : t.altKey || t.ctrlKey || t.metaKey || t.shiftKey || (t.key === "Home" && (i = 0), t.key === "End" && (i = e.length - 1)), i !== null && (t.preventDefault(), f(n[i]), (m.current?.querySelectorAll("[role=\"tab\"]"))?.[i]?.focus());
11535
11553
  }
11536
11554
  return /* @__PURE__ */ y("div", {
11537
11555
  className: i,
@@ -11579,8 +11597,8 @@ function Uc({ tabs: e, defaultTab: t, value: n, onChange: r, className: i, panel
11579
11597
  }
11580
11598
  //#endregion
11581
11599
  //#region src/components/ui/Textarea.tsx
11582
- var Wc = a(({ label: e, error: t, showCount: n, maxLength: r, value: i, className: a, id: o, hint: s, controlSize: c, required: l, "aria-describedby": u, "aria-invalid": d, ...f }, p) => {
11583
- let m = Ys({
11600
+ var Uc = a(({ label: e, error: t, showCount: n, maxLength: r, value: i, className: a, id: o, hint: s, controlSize: c, required: l, "aria-describedby": u, "aria-invalid": d, ...f }, p) => {
11601
+ let m = Js({
11584
11602
  id: o,
11585
11603
  error: t,
11586
11604
  hint: s,
@@ -11631,11 +11649,11 @@ var Wc = a(({ label: e, error: t, showCount: n, maxLength: r, value: i, classNam
11631
11649
  ]
11632
11650
  });
11633
11651
  });
11634
- Wc.displayName = "Textarea";
11652
+ Uc.displayName = "Textarea";
11635
11653
  //#endregion
11636
11654
  //#region src/components/ui/TextInput.tsx
11637
- var Gc = a(({ label: e, error: t, icon: n, className: r, id: i, readOnly: a, hint: o, controlSize: s, required: c, "aria-describedby": l, "aria-invalid": u, ...d }, f) => {
11638
- let p = Ys({
11655
+ var Wc = a(({ label: e, error: t, icon: n, className: r, id: i, readOnly: a, hint: o, controlSize: s, required: c, "aria-describedby": l, "aria-invalid": u, ...d }, f) => {
11656
+ let p = Js({
11639
11657
  id: i,
11640
11658
  error: t,
11641
11659
  hint: o,
@@ -11684,20 +11702,20 @@ var Gc = a(({ label: e, error: t, icon: n, className: r, id: i, readOnly: a, hin
11684
11702
  ]
11685
11703
  });
11686
11704
  });
11687
- Gc.displayName = "TextInput";
11705
+ Wc.displayName = "TextInput";
11688
11706
  //#endregion
11689
11707
  //#region src/components/ui/TimeInput.tsx
11690
- var Kc = a(({ value: e, onChange: t, ...n }, r) => /* @__PURE__ */ v(Gc, {
11708
+ var Gc = a(({ value: e, onChange: t, ...n }, r) => /* @__PURE__ */ v(Wc, {
11691
11709
  ...n,
11692
11710
  ref: r,
11693
11711
  type: "time",
11694
11712
  value: e,
11695
11713
  onChange: (e) => t(e.currentTarget.value)
11696
11714
  }));
11697
- Kc.displayName = "TimeInput";
11715
+ Gc.displayName = "TimeInput";
11698
11716
  //#endregion
11699
11717
  //#region src/components/ui/Timeline.tsx
11700
- function qc({ items: e, className: t }) {
11718
+ function Kc({ items: e, className: t }) {
11701
11719
  return /* @__PURE__ */ v("div", {
11702
11720
  className: Y("space-y-0", t),
11703
11721
  children: e.map((t, n) => /* @__PURE__ */ y("div", {
@@ -11720,14 +11738,14 @@ function qc({ items: e, className: t }) {
11720
11738
  }
11721
11739
  //#endregion
11722
11740
  //#region src/lib/formatMediaTime.ts
11723
- function Jc(e) {
11741
+ function qc(e) {
11724
11742
  let t = Math.max(0, Math.floor(e)), n = Math.floor(t / 3600), r = Math.floor(t % 3600 / 60), i = String(t % 60).padStart(2, "0");
11725
11743
  return n > 0 ? `${n}:${String(r).padStart(2, "0")}:${i}` : `${r}:${i}`;
11726
11744
  }
11727
11745
  //#endregion
11728
11746
  //#region src/components/ui/TranscriptLine.tsx
11729
- function Yc({ speaker: e, role: t = "patient", time: n, onSeek: r, highlighted: i = !1, children: a, className: o, ...s }) {
11730
- let c = n != null && Number.isFinite(n) && n >= 0 ? n : null, l = c == null ? null : Jc(c);
11747
+ function Jc({ speaker: e, role: t = "patient", time: n, onSeek: r, highlighted: i = !1, children: a, className: o, ...s }) {
11748
+ let c = n != null && Number.isFinite(n) && n >= 0 ? n : null, l = c == null ? null : qc(c);
11731
11749
  return /* @__PURE__ */ y("div", {
11732
11750
  ...s,
11733
11751
  "data-role": t,
@@ -11761,13 +11779,13 @@ function Yc({ speaker: e, role: t = "patient", time: n, onSeek: r, highlighted:
11761
11779
  }
11762
11780
  //#endregion
11763
11781
  //#region src/components/ui/Tooltip.tsx
11764
- var Xc = {
11782
+ var Yc = {
11765
11783
  top: "bottom-full left-1/2 -translate-x-1/2 mb-2",
11766
11784
  bottom: "top-full left-1/2 -translate-x-1/2 mt-2",
11767
11785
  left: "right-full top-1/2 -translate-y-1/2 mr-2",
11768
11786
  right: "left-full top-1/2 -translate-y-1/2 ml-2"
11769
11787
  };
11770
- function Zc(e, t) {
11788
+ function Xc(e, t) {
11771
11789
  if (typeof e == "function") {
11772
11790
  let n = e(t);
11773
11791
  return typeof n == "function" ? n : () => e(null);
@@ -11776,7 +11794,7 @@ function Zc(e, t) {
11776
11794
  e && (e.current = null);
11777
11795
  };
11778
11796
  }
11779
- function Qc(e, t) {
11797
+ function Zc(e, t) {
11780
11798
  let n = { ...e };
11781
11799
  for (let [r, i] of Object.entries(t)) {
11782
11800
  if (i === void 0) continue;
@@ -11794,14 +11812,14 @@ function Qc(e, t) {
11794
11812
  }
11795
11813
  return n;
11796
11814
  }
11797
- function $c({ element: e, merged: t, ...r }) {
11815
+ function Qc({ element: e, merged: t, ...r }) {
11798
11816
  return n(e, {
11799
11817
  ...t,
11800
11818
  ...r
11801
11819
  });
11802
11820
  }
11803
- var el = (e, t) => t instanceof Node && e.contains(t);
11804
- function tl({ content: e, placement: n = "top", children: r, ref: i, ...a }) {
11821
+ var $c = (e, t) => t instanceof Node && e.contains(t);
11822
+ function el({ content: e, placement: n = "top", children: r, ref: i, ...a }) {
11805
11823
  let [c, d] = g(!1), f = u();
11806
11824
  l(() => {
11807
11825
  if (!c) return;
@@ -11812,35 +11830,35 @@ function tl({ content: e, placement: n = "top", children: r, ref: i, ...a }) {
11812
11830
  }, [c]);
11813
11831
  let p = o(r) && r.type !== t ? r : null, m = p?.props.ref, h = s((e) => {
11814
11832
  if (!e) return;
11815
- let t = [Zc(m, e), Zc(i, e)];
11833
+ let t = [Xc(m, e), Xc(i, e)];
11816
11834
  return () => t.forEach((e) => e());
11817
11835
  }, [m, i]), _ = {
11818
11836
  onMouseOver: (e) => {
11819
11837
  let { currentTarget: t, target: n, relatedTarget: r } = e;
11820
- el(t, n) && !el(t, r) && d(!0);
11838
+ $c(t, n) && !$c(t, r) && d(!0);
11821
11839
  },
11822
11840
  onMouseOut: (e) => {
11823
- el(e.currentTarget, e.relatedTarget) || d(!1);
11841
+ $c(e.currentTarget, e.relatedTarget) || d(!1);
11824
11842
  },
11825
11843
  onFocus: (e) => {
11826
- d(el(e.currentTarget, e.target));
11844
+ d($c(e.currentTarget, e.target));
11827
11845
  },
11828
11846
  onBlur: () => d(!1)
11829
- }, b = p ? /* @__PURE__ */ v($c, {
11847
+ }, b = p ? /* @__PURE__ */ v(Qc, {
11830
11848
  element: p,
11831
- merged: Qc(p.props, {
11849
+ merged: Zc(p.props, {
11832
11850
  ...a,
11833
11851
  "aria-describedby": [a["aria-describedby"], f].filter(Boolean).join(" ")
11834
11852
  }),
11835
11853
  ref: h
11836
11854
  }) : r;
11837
11855
  return /* @__PURE__ */ y("div", {
11838
- ...p ? _ : Qc(_, a),
11856
+ ...p ? _ : Zc(_, a),
11839
11857
  ref: p ? void 0 : h,
11840
11858
  className: Y("relative inline-flex", !p && a.className),
11841
11859
  children: [b, c && /* @__PURE__ */ v("div", {
11842
11860
  id: f,
11843
- className: Y("text-2xs absolute z-50 px-2 py-1 font-medium whitespace-nowrap", "ui-glass ui-glass-popover bg-bg-tertiary text-text-primary border-border rounded border shadow-md", "animate-fade-in pointer-events-none", Xc[n]),
11861
+ className: Y("text-2xs absolute z-50 px-2 py-1 font-medium whitespace-nowrap", "ui-glass ui-glass-popover bg-bg-tertiary text-text-primary border-border rounded border shadow-md", "animate-fade-in pointer-events-none", Yc[n]),
11844
11862
  role: "tooltip",
11845
11863
  children: e
11846
11864
  })]
@@ -11848,7 +11866,7 @@ function tl({ content: e, placement: n = "top", children: r, ref: i, ...a }) {
11848
11866
  }
11849
11867
  //#endregion
11850
11868
  //#region src/components/ui/Toolbar.tsx
11851
- function nl({ start: e, end: t, children: n, className: r, startClassName: i, endClassName: a, moreFilters: o, moreFiltersActiveCount: s = 0, moreFiltersOpen: c, defaultMoreFiltersOpen: l, onMoreFiltersOpenChange: d }) {
11869
+ function tl({ start: e, end: t, children: n, className: r, startClassName: i, endClassName: a, moreFilters: o, moreFiltersActiveCount: s = 0, moreFiltersOpen: c, defaultMoreFiltersOpen: l, onMoreFiltersOpenChange: d }) {
11852
11870
  let f = u(), p = h(null), m = h(null), [_, b] = g(!1), x = s > 0, [S, C] = g(l ?? x), [w, T] = g(x);
11853
11871
  w !== x && (T(x), c === void 0 && x && C(!0));
11854
11872
  let E = c ?? S, D = (e) => {
@@ -11874,7 +11892,7 @@ function nl({ start: e, end: t, children: n, className: r, startClassName: i, en
11874
11892
  "aria-controls": f,
11875
11893
  onClick: () => D(!E),
11876
11894
  children: "More filters"
11877
- }), s > 0 && /* @__PURE__ */ v(vi, {
11895
+ }), s > 0 && /* @__PURE__ */ v(_i, {
11878
11896
  size: "xs",
11879
11897
  color: "accent",
11880
11898
  "aria-hidden": "true",
@@ -11904,7 +11922,7 @@ function nl({ start: e, end: t, children: n, className: r, startClassName: i, en
11904
11922
  }
11905
11923
  //#endregion
11906
11924
  //#region src/components/ui/UploadDropzone.tsx
11907
- var rl = a(function({ title: e = "Drag and drop files here, or click to browse", description: t, icon: n, multiple: r, disabled: i, onChange: a, onFilesChange: o, className: s, id: c, "aria-describedby": l, ...f }, p) {
11925
+ var nl = a(function({ title: e = "Drag and drop files here, or click to browse", description: t, icon: n, multiple: r, disabled: i, onChange: a, onFilesChange: o, className: s, id: c, "aria-describedby": l, ...f }, p) {
11908
11926
  let m = h(null);
11909
11927
  d(p, () => m.current, []);
11910
11928
  let g = u(), _ = `${c ?? g}-description`;
@@ -11951,29 +11969,29 @@ var rl = a(function({ title: e = "Drag and drop files here, or click to browse",
11951
11969
  })
11952
11970
  ]
11953
11971
  });
11954
- }), il = r({ theme: "dark" });
11972
+ }), rl = r({ theme: "dark" });
11955
11973
  //#endregion
11956
11974
  //#region src/hooks/useTheme.ts
11957
- function al() {
11958
- return c(il);
11975
+ function il() {
11976
+ return c(rl);
11959
11977
  }
11960
11978
  //#endregion
11961
11979
  //#region src/lib/formatDate.ts
11962
- function ol(e) {
11980
+ function al(e) {
11963
11981
  return (/* @__PURE__ */ new Date(e + "T00:00:00")).toLocaleDateString("en-US", {
11964
11982
  month: "short",
11965
11983
  day: "numeric",
11966
11984
  year: "numeric"
11967
11985
  });
11968
11986
  }
11969
- function sl(e) {
11987
+ function ol(e) {
11970
11988
  return (/* @__PURE__ */ new Date(e + "T00:00:00")).toLocaleDateString("en-US", {
11971
11989
  month: "long",
11972
11990
  day: "numeric",
11973
11991
  year: "numeric"
11974
11992
  });
11975
11993
  }
11976
- function cl(e, t = /* @__PURE__ */ new Date()) {
11994
+ function sl(e, t = /* @__PURE__ */ new Date()) {
11977
11995
  let n = t.getTime() - e.getTime(), r = Math.floor(n / 1e3);
11978
11996
  if (r < 60) return "just now";
11979
11997
  let i = Math.floor(r / 60);
@@ -11981,12 +11999,12 @@ function cl(e, t = /* @__PURE__ */ new Date()) {
11981
11999
  let a = Math.floor(i / 60);
11982
12000
  if (a < 24) return `${a}h ago`;
11983
12001
  if (Math.floor(a / 24) === 1) return "yesterday";
11984
- let o = `${lo[e.getMonth()]} ${e.getDate()}`;
12002
+ let o = `${co[e.getMonth()]} ${e.getDate()}`;
11985
12003
  return e.getFullYear() === t.getFullYear() ? o : `${o}, ${e.getFullYear()}`;
11986
12004
  }
11987
12005
  //#endregion
11988
12006
  //#region src/providers/accentColors.ts
11989
- var ll = {
12007
+ var cl = {
11990
12008
  purple: {
11991
12009
  base: "#7C5CFC",
11992
12010
  hover: "#6B4AEB",
@@ -12043,56 +12061,56 @@ var ll = {
12043
12061
  muted: "rgba(99,102,241,0.15)",
12044
12062
  subtle: "rgba(99,102,241,0.08)"
12045
12063
  }
12046
- }, ul = new Set(Object.keys(ll));
12047
- function dl(e, t) {
12048
- let n = ll[t];
12064
+ }, ll = new Set(Object.keys(cl));
12065
+ function ul(e, t) {
12066
+ let n = cl[t];
12049
12067
  e.setProperty("--accent", n.base), e.setProperty("--accent-hover", `var(--glass-accent-hover, ${n.hover})`), e.setProperty("--accent-active", `var(--glass-accent-active, ${n.active})`), e.setProperty("--accent-muted", n.muted), e.setProperty("--accent-subtle", n.subtle);
12050
12068
  }
12051
12069
  //#endregion
12052
12070
  //#region src/providers/SettingsProvider.tsx
12053
- var fl = {
12071
+ var dl = {
12054
12072
  "archivo-expanded": "\"Archivo\", \"Arial Black\", \"Avenir Next Condensed\", \"HelveticaNeue-CondensedBold\", system-ui, sans-serif",
12055
12073
  inter: "\"Inter\", system-ui, -apple-system, BlinkMacSystemFont, sans-serif",
12056
12074
  "jetbrains-mono": "\"JetBrains Mono\", Menlo, Monaco, Consolas, monospace",
12057
12075
  "pt-serif": "\"PT Serif\", Georgia, ui-serif, Cambria, \"Times New Roman\", Times, serif",
12058
12076
  system: "system-ui, -apple-system, BlinkMacSystemFont, sans-serif"
12059
- }, pl = "leonardaustin-ui-settings", ml = new Set(Object.keys(en)), hl = new Set(Object.keys(fl)), gl = new Set([
12077
+ }, fl = "leonardaustin-ui-settings", pl = new Set(Object.keys(en)), ml = new Set(Object.keys(dl)), hl = new Set([
12060
12078
  "light",
12061
12079
  "dark",
12062
12080
  "system"
12063
12081
  ]);
12064
- function _l(e, t, n, r) {
12082
+ function gl(e, t, n, r) {
12065
12083
  return typeof e != "number" || !isFinite(e) ? r : X(e, t, n);
12066
12084
  }
12067
- function vl(e) {
12085
+ function _l(e) {
12068
12086
  let t = {};
12069
- if (ul.has(e.accentColor) && (t.accentColor = e.accentColor), gl.has(e.colorMode) && (t.colorMode = e.colorMode), ml.has(e.preferredDarkTheme) && !qt(e.preferredDarkTheme) && (t.preferredDarkTheme = e.preferredDarkTheme), ml.has(e.preferredLightTheme) && qt(e.preferredLightTheme) && (t.preferredLightTheme = e.preferredLightTheme), typeof e.sidebarCollapsed == "boolean" && (t.sidebarCollapsed = e.sidebarCollapsed), typeof e.reducedMotion == "boolean" && (t.reducedMotion = e.reducedMotion), typeof e.sidebarWidth == "number" && (t.sidebarWidth = _l(e.sidebarWidth, 160, 400, 220)), e.themeOverrides && typeof e.themeOverrides == "object") {
12087
+ if (ll.has(e.accentColor) && (t.accentColor = e.accentColor), hl.has(e.colorMode) && (t.colorMode = e.colorMode), pl.has(e.preferredDarkTheme) && !qt(e.preferredDarkTheme) && (t.preferredDarkTheme = e.preferredDarkTheme), pl.has(e.preferredLightTheme) && qt(e.preferredLightTheme) && (t.preferredLightTheme = e.preferredLightTheme), typeof e.sidebarCollapsed == "boolean" && (t.sidebarCollapsed = e.sidebarCollapsed), typeof e.reducedMotion == "boolean" && (t.reducedMotion = e.reducedMotion), typeof e.sidebarWidth == "number" && (t.sidebarWidth = gl(e.sidebarWidth, 160, 400, 220)), e.themeOverrides && typeof e.themeOverrides == "object") {
12070
12088
  let n = {};
12071
12089
  for (let [t, r] of Object.entries(e.themeOverrides)) {
12072
- if (!ml.has(t) || !r || typeof r != "object") continue;
12090
+ if (!pl.has(t) || !r || typeof r != "object") continue;
12073
12091
  let e = r, i = en[t];
12074
12092
  n[t] = {
12075
- uiFont: hl.has(e.uiFont) ? e.uiFont : i.uiFont,
12076
- headingFont: hl.has(e.headingFont) ? e.headingFont : i.headingFont,
12077
- proseFont: hl.has(e.proseFont) ? e.proseFont : i.proseFont,
12078
- controlFont: hl.has(e.controlFont) ? e.controlFont : i.controlFont,
12079
- labelFont: hl.has(e.labelFont) ? e.labelFont : i.labelFont,
12080
- navigationFont: hl.has(e.navigationFont) ? e.navigationFont : i.navigationFont,
12081
- dataFont: hl.has(e.dataFont) ? e.dataFont : i.dataFont,
12082
- codeFont: hl.has(e.codeFont) ? e.codeFont : i.codeFont,
12083
- fontSize: _l(e.fontSize, 11, 18, i.fontSize),
12084
- borderRadius: _l(e.borderRadius, 0, 16, i.borderRadius),
12085
- borderWidth: _l(e.borderWidth, 1, 3, i.borderWidth),
12086
- tracking: _l(e.tracking, 0, .3, i.tracking),
12087
- lineHeight: _l(e.lineHeight, 1.2, 2, i.lineHeight),
12088
- density: _l(e.density, .18, .32, i.density)
12093
+ uiFont: ml.has(e.uiFont) ? e.uiFont : i.uiFont,
12094
+ headingFont: ml.has(e.headingFont) ? e.headingFont : i.headingFont,
12095
+ proseFont: ml.has(e.proseFont) ? e.proseFont : i.proseFont,
12096
+ controlFont: ml.has(e.controlFont) ? e.controlFont : i.controlFont,
12097
+ labelFont: ml.has(e.labelFont) ? e.labelFont : i.labelFont,
12098
+ navigationFont: ml.has(e.navigationFont) ? e.navigationFont : i.navigationFont,
12099
+ dataFont: ml.has(e.dataFont) ? e.dataFont : i.dataFont,
12100
+ codeFont: ml.has(e.codeFont) ? e.codeFont : i.codeFont,
12101
+ fontSize: gl(e.fontSize, 11, 18, i.fontSize),
12102
+ borderRadius: gl(e.borderRadius, 0, 16, i.borderRadius),
12103
+ borderWidth: gl(e.borderWidth, 1, 3, i.borderWidth),
12104
+ tracking: gl(e.tracking, 0, .3, i.tracking),
12105
+ lineHeight: gl(e.lineHeight, 1.2, 2, i.lineHeight),
12106
+ density: gl(e.density, .18, .32, i.density)
12089
12107
  };
12090
12108
  }
12091
12109
  t.themeOverrides = n;
12092
12110
  }
12093
12111
  return t;
12094
12112
  }
12095
- var yl = {
12113
+ var vl = {
12096
12114
  accentColor: "purple",
12097
12115
  sidebarCollapsed: !1,
12098
12116
  sidebarWidth: 220,
@@ -12102,35 +12120,35 @@ var yl = {
12102
12120
  preferredLightTheme: "light",
12103
12121
  themeOverrides: {}
12104
12122
  };
12105
- function bl(e, t) {
12123
+ function yl(e, t) {
12106
12124
  let n = {
12107
- ...yl,
12108
- ...vl(t ?? {})
12125
+ ...vl,
12126
+ ..._l(t ?? {})
12109
12127
  };
12110
12128
  if (typeof localStorage > "u") return n;
12111
12129
  try {
12112
12130
  let t = localStorage.getItem(e);
12113
12131
  if (t) return {
12114
12132
  ...n,
12115
- ...vl(JSON.parse(t))
12133
+ ..._l(JSON.parse(t))
12116
12134
  };
12117
12135
  } catch (e) {
12118
12136
  console.warn("[SettingsProvider] Failed to load settings:", e);
12119
12137
  }
12120
12138
  return n;
12121
12139
  }
12122
- function xl(e, t) {
12140
+ function bl(e, t) {
12123
12141
  let n = en[e] ?? en.dark;
12124
12142
  return t[e] ? {
12125
12143
  ...n,
12126
12144
  ...t[e]
12127
12145
  } : n;
12128
12146
  }
12129
- function Sl(e, t) {
12147
+ function xl(e, t) {
12130
12148
  return e.uiFont === t.uiFont && e.headingFont === t.headingFont && e.proseFont === t.proseFont && e.controlFont === t.controlFont && e.labelFont === t.labelFont && e.navigationFont === t.navigationFont && e.dataFont === t.dataFont && e.codeFont === t.codeFont && e.fontSize === t.fontSize && e.borderRadius === t.borderRadius && e.borderWidth === t.borderWidth && e.tracking === t.tracking && e.lineHeight === t.lineHeight && e.density === t.density;
12131
12149
  }
12132
- function Cl({ children: e, storageKey: t = pl, initialSettings: n, forcedTheme: r }) {
12133
- let [i, a] = g(() => bl(t, n)), [o, c] = g(() => typeof window < "u" && window.matchMedia("(prefers-color-scheme: dark)").matches);
12150
+ function Sl({ children: e, storageKey: t = fl, initialSettings: n, forcedTheme: r }) {
12151
+ let [i, a] = g(() => yl(t, n)), [o, c] = g(() => typeof window < "u" && window.matchMedia("(prefers-color-scheme: dark)").matches);
12134
12152
  l(() => {
12135
12153
  if (typeof window > "u") return;
12136
12154
  let e = window.matchMedia("(prefers-color-scheme: dark)"), t = (e) => c(e.matches);
@@ -12142,9 +12160,9 @@ function Cl({ children: e, storageKey: t = pl, initialSettings: n, forcedTheme:
12142
12160
  i.preferredDarkTheme,
12143
12161
  i.preferredLightTheme,
12144
12162
  o
12145
- ]), [d, f] = g(() => xl(u, i.themeOverrides));
12163
+ ]), [d, f] = g(() => bl(u, i.themeOverrides));
12146
12164
  l(() => {
12147
- f(xl(u, i.themeOverrides));
12165
+ f(bl(u, i.themeOverrides));
12148
12166
  }, [u]);
12149
12167
  let m = s((e) => {
12150
12168
  a((n) => {
@@ -12161,14 +12179,14 @@ function Cl({ children: e, storageKey: t = pl, initialSettings: n, forcedTheme:
12161
12179
  });
12162
12180
  }, [t]);
12163
12181
  l(() => {
12164
- dl(document.documentElement.style, i.accentColor);
12182
+ ul(document.documentElement.style, i.accentColor);
12165
12183
  }, [i.accentColor]), l(() => {
12166
12184
  document.documentElement.classList.toggle("reduced-motion", i.reducedMotion);
12167
12185
  }, [i.reducedMotion]), l(() => {
12168
12186
  let e = document.documentElement, t = d.borderRadius;
12169
- e.style.fontSize = `${d.fontSize / 13 * 100}%`, e.style.setProperty("--font-ui", fl[d.uiFont]), e.style.setProperty("--font-heading", fl[d.headingFont]), e.style.setProperty("--font-prose", fl[d.proseFont]), e.style.setProperty("--font-control", fl[d.controlFont]), e.style.setProperty("--font-label", fl[d.labelFont]), e.style.setProperty("--font-navigation", fl[d.navigationFont]), e.style.setProperty("--font-data", fl[d.dataFont]), e.style.setProperty("--font-code", fl[d.codeFont]), e.style.setProperty("--ui-radius", t === 0 ? "0" : `${Math.round(t * 2 / 3)}px`), e.style.setProperty("--ui-radius-md", t === 0 ? "0" : `${t}px`), e.style.setProperty("--ui-radius-lg", t === 0 ? "0" : `${Math.round(t * 4 / 3)}px`), e.style.setProperty("--ui-radius-xl", t === 0 ? "0" : `${t * 2}px`), e.style.setProperty("--ui-border-width", `${d.borderWidth}px`), e.style.setProperty("--ui-tracking", `${d.tracking}em`), e.style.setProperty("--ui-line-height", String(d.lineHeight)), e.style.setProperty("--ui-density", `${d.density}rem`);
12187
+ e.style.fontSize = `${d.fontSize / 13 * 100}%`, e.style.setProperty("--font-ui", dl[d.uiFont]), e.style.setProperty("--font-heading", dl[d.headingFont]), e.style.setProperty("--font-prose", dl[d.proseFont]), e.style.setProperty("--font-control", dl[d.controlFont]), e.style.setProperty("--font-label", dl[d.labelFont]), e.style.setProperty("--font-navigation", dl[d.navigationFont]), e.style.setProperty("--font-data", dl[d.dataFont]), e.style.setProperty("--font-code", dl[d.codeFont]), e.style.setProperty("--ui-radius", t === 0 ? "0" : `${Math.round(t * 2 / 3)}px`), e.style.setProperty("--ui-radius-md", t === 0 ? "0" : `${t}px`), e.style.setProperty("--ui-radius-lg", t === 0 ? "0" : `${Math.round(t * 4 / 3)}px`), e.style.setProperty("--ui-radius-xl", t === 0 ? "0" : `${t * 2}px`), e.style.setProperty("--ui-border-width", `${d.borderWidth}px`), e.style.setProperty("--ui-tracking", `${d.tracking}em`), e.style.setProperty("--ui-line-height", String(d.lineHeight)), e.style.setProperty("--ui-density", `${d.density}rem`);
12170
12188
  }, [d]);
12171
- let h = p(() => xl(u, i.themeOverrides), [u, i.themeOverrides]), _ = u in i.themeOverrides, y = !Sl(d, h), b = s(() => {
12189
+ let h = p(() => bl(u, i.themeOverrides), [u, i.themeOverrides]), _ = u in i.themeOverrides, y = !xl(d, h), b = s(() => {
12172
12190
  m({ themeOverrides: {
12173
12191
  ...i.themeOverrides,
12174
12192
  [u]: { ...d }
@@ -12292,7 +12310,7 @@ function Cl({ children: e, storageKey: t = pl, initialSettings: n, forcedTheme:
12292
12310
  }
12293
12311
  //#endregion
12294
12312
  //#region src/providers/themeClasses.ts
12295
- var wl = {
12313
+ var Cl = {
12296
12314
  dark: [],
12297
12315
  light: ["theme-light"],
12298
12316
  lightInverted: ["theme-light-inverted"],
@@ -12303,26 +12321,26 @@ var wl = {
12303
12321
  hashiTheme: ["theme-hashi"],
12304
12322
  glassDark: ["theme-glass", "theme-glass-dark"],
12305
12323
  glassLight: ["theme-glass", "theme-glass-light"]
12306
- }, Tl = [...new Set(Object.values(wl).flat())];
12307
- function El(e, t) {
12308
- e.remove(...Tl);
12309
- let n = Object.hasOwn(wl, t) ? wl[t] : [];
12324
+ }, wl = [...new Set(Object.values(Cl).flat())];
12325
+ function Tl(e, t) {
12326
+ e.remove(...wl);
12327
+ let n = Object.hasOwn(Cl, t) ? Cl[t] : [];
12310
12328
  e.add(...n);
12311
12329
  }
12312
12330
  //#endregion
12313
12331
  //#region src/providers/ThemeProvider.tsx
12314
- function Dl({ children: e }) {
12332
+ function El({ children: e }) {
12315
12333
  let { resolvedTheme: t } = c(Sn);
12316
12334
  return l(() => {
12317
- El(document.documentElement.classList, t);
12318
- }, [t]), /* @__PURE__ */ v(il.Provider, {
12335
+ Tl(document.documentElement.classList, t);
12336
+ }, [t]), /* @__PURE__ */ v(rl.Provider, {
12319
12337
  value: { theme: t },
12320
12338
  children: e
12321
12339
  });
12322
12340
  }
12323
12341
  //#endregion
12324
12342
  //#region src/components/ui/FormField.tsx
12325
- function Ol({ id: e, label: t, hint: n, error: r, required: i, optionalLabel: a, labelPlacement: o = "above", children: c, className: l, ...d }) {
12343
+ function Dl({ id: e, label: t, hint: n, error: r, required: i, optionalLabel: a, labelPlacement: o = "above", children: c, className: l, ...d }) {
12326
12344
  let f = u(), p = e ?? f, m = n ? `${p}-hint` : void 0, h = r ? `${p}-error` : void 0, _ = `${p}-label`, [b, x] = g(0), S = s(() => (x((e) => e + 1), () => x((e) => e - 1)), []), C = o === "placeholder" && typeof t == "string" && t ? t : void 0, w = {
12327
12345
  id: p,
12328
12346
  "aria-describedby": vr(m, h),
@@ -12371,13 +12389,13 @@ function Ol({ id: e, label: t, hint: n, error: r, required: i, optionalLabel: a,
12371
12389
  })
12372
12390
  });
12373
12391
  }
12374
- function kl({ className: e, ...t }) {
12392
+ function Ol({ className: e, ...t }) {
12375
12393
  return /* @__PURE__ */ v("p", {
12376
12394
  ...t,
12377
12395
  className: Y("text-text-secondary text-xs", e)
12378
12396
  });
12379
12397
  }
12380
- function Al({ className: e, ...t }) {
12398
+ function kl({ className: e, ...t }) {
12381
12399
  return /* @__PURE__ */ v("p", {
12382
12400
  ...t,
12383
12401
  className: Y("text-red text-xs", e)
@@ -12385,7 +12403,7 @@ function Al({ className: e, ...t }) {
12385
12403
  }
12386
12404
  //#endregion
12387
12405
  //#region src/components/ui/Fieldset.tsx
12388
- function jl({ id: e, legend: t, hint: n, error: r, children: i, className: a, "aria-describedby": o, ...s }) {
12406
+ function Al({ id: e, legend: t, hint: n, error: r, children: i, className: a, "aria-describedby": o, ...s }) {
12389
12407
  let c = u(), l = e ?? c, d = n ? `${l}-hint` : void 0, f = r ? `${l}-error` : void 0, p = vr(o, d, f);
12390
12408
  return /* @__PURE__ */ y("fieldset", {
12391
12409
  ...s,
@@ -12419,7 +12437,7 @@ function jl({ id: e, legend: t, hint: n, error: r, children: i, className: a, "a
12419
12437
  }
12420
12438
  //#endregion
12421
12439
  //#region src/components/ui/Radio.tsx
12422
- var Ml = a(({ label: e, description: t, controlSize: n, className: r, id: i, "aria-describedby": a, "aria-invalid": o, ...s }, l) => {
12440
+ var jl = a(({ label: e, description: t, controlSize: n, className: r, id: i, "aria-describedby": a, "aria-invalid": o, ...s }, l) => {
12423
12441
  let d = u(), f = $n(n), p = c(_r), m = i ?? p?.id ?? d, h = t ? `${m}-description` : void 0;
12424
12442
  return /* @__PURE__ */ y("label", {
12425
12443
  className: Y("ui-choice flex items-start gap-2.5", r),
@@ -12442,14 +12460,14 @@ var Ml = a(({ label: e, description: t, controlSize: n, className: r, id: i, "ar
12442
12460
  })]
12443
12461
  });
12444
12462
  });
12445
- Ml.displayName = "Radio";
12446
- function Nl({ name: e, id: t, options: n, value: r, onChange: i, required: a, disabled: o, controlSize: s, ...c }) {
12463
+ jl.displayName = "Radio";
12464
+ function Ml({ name: e, id: t, options: n, value: r, onChange: i, required: a, disabled: o, controlSize: s, ...c }) {
12447
12465
  let l = u(), d = t ?? l;
12448
- return /* @__PURE__ */ v(jl, {
12466
+ return /* @__PURE__ */ v(Al, {
12449
12467
  ...c,
12450
12468
  id: d,
12451
12469
  disabled: o,
12452
- children: n.map((t, n) => /* @__PURE__ */ v(Ml, {
12470
+ children: n.map((t, n) => /* @__PURE__ */ v(jl, {
12453
12471
  id: `${d}-${n}`,
12454
12472
  name: e ?? d,
12455
12473
  value: t.value,
@@ -12463,17 +12481,17 @@ function Nl({ name: e, id: t, options: n, value: r, onChange: i, required: a, di
12463
12481
  }, t.value))
12464
12482
  });
12465
12483
  }
12466
- var Pl = Object.assign(Ml, { Group: Nl }), Fl = {
12484
+ var Nl = Object.assign(jl, { Group: Ml }), Pl = {
12467
12485
  pending: "Pending",
12468
12486
  uploading: "Uploading",
12469
12487
  processing: "Processing",
12470
12488
  ready: "Ready",
12471
12489
  error: "Upload failed"
12472
12490
  };
12473
- function Il(e) {
12491
+ function Fl(e) {
12474
12492
  return e < 1024 ? `${e} B` : e < 1024 * 1024 ? `${(e / 1024).toFixed(1)} KB` : `${(e / (1024 * 1024)).toFixed(1)} MB`;
12475
12493
  }
12476
- function Ll({ name: e, size: t, status: n = "ready", statusLabel: r, error: i, onRetry: a, onRemove: o, onDownload: s, downloadHref: c, actionsDisabled: l, className: u, ...d }) {
12494
+ function Il({ name: e, size: t, status: n = "ready", statusLabel: r, error: i, onRetry: a, onRemove: o, onDownload: s, downloadHref: c, actionsDisabled: l, className: u, ...d }) {
12477
12495
  return /* @__PURE__ */ y("li", {
12478
12496
  ...d,
12479
12497
  className: Y("ui-attachment-item border-border flex items-center justify-between gap-3 rounded-md border p-3", u),
@@ -12486,7 +12504,7 @@ function Ll({ name: e, size: t, status: n = "ready", statusLabel: r, error: i, o
12486
12504
  }),
12487
12505
  t !== void 0 && /* @__PURE__ */ v("p", {
12488
12506
  className: "text-text-tertiary text-2xs",
12489
- children: Il(t)
12507
+ children: Fl(t)
12490
12508
  }),
12491
12509
  /* @__PURE__ */ y("div", {
12492
12510
  role: "status",
@@ -12495,7 +12513,7 @@ function Ll({ name: e, size: t, status: n = "ready", statusLabel: r, error: i, o
12495
12513
  children: [
12496
12514
  e,
12497
12515
  ": ",
12498
- i ?? r ?? Fl[n]
12516
+ i ?? r ?? Pl[n]
12499
12517
  ]
12500
12518
  })
12501
12519
  ]
@@ -12537,7 +12555,7 @@ function Ll({ name: e, size: t, status: n = "ready", statusLabel: r, error: i, o
12537
12555
  })]
12538
12556
  });
12539
12557
  }
12540
- function Rl({ children: e, className: t, "aria-label": n = "Attachments", ...r }) {
12558
+ function Ll({ children: e, className: t, "aria-label": n = "Attachments", ...r }) {
12541
12559
  return /* @__PURE__ */ v("ul", {
12542
12560
  ...r,
12543
12561
  "aria-label": n,
@@ -12547,7 +12565,7 @@ function Rl({ children: e, className: t, "aria-label": n = "Attachments", ...r }
12547
12565
  }
12548
12566
  //#endregion
12549
12567
  //#region src/lib/dateParts.ts
12550
- function zl(e, { required: t = !1, minYear: n = 1900, maxYear: r = 2100 } = {}) {
12568
+ function Rl(e, { required: t = !1, minYear: n = 1900, maxYear: r = 2100 } = {}) {
12551
12569
  let i = [
12552
12570
  e.day,
12553
12571
  e.month,
@@ -12577,10 +12595,10 @@ function zl(e, { required: t = !1, minYear: n = 1900, maxYear: r = 2100 } = {})
12577
12595
  }
12578
12596
  //#endregion
12579
12597
  //#region src/components/ui/DatePartsInput.tsx
12580
- function Bl({ value: e, onChange: t, label: n, hint: r, error: i, id: a, name: o, disabled: s, required: c, className: d, inputProps: f, minYear: p = 1900, maxYear: m = 2100 }) {
12598
+ function zl({ value: e, onChange: t, label: n, hint: r, error: i, id: a, name: o, disabled: s, required: c, className: d, inputProps: f, minYear: p = 1900, maxYear: m = 2100 }) {
12581
12599
  let _ = u(), b = h({}), [x, S] = g(!1);
12582
12600
  if (!Number.isInteger(p) || !Number.isInteger(m) || p < 1 || m > 9999 || p > m) throw RangeError("DatePartsInput requires year bounds between 1 and 9999, with minYear <= maxYear");
12583
- let C = zl(e, {
12601
+ let C = Rl(e, {
12584
12602
  required: c,
12585
12603
  minYear: p,
12586
12604
  maxYear: m
@@ -12629,7 +12647,7 @@ function Bl({ value: e, onChange: t, label: n, hint: r, error: i, id: a, name: o
12629
12647
  "year"
12630
12648
  ].map((n) => /* @__PURE__ */ y("div", {
12631
12649
  className: "ui-date-part",
12632
- children: [/* @__PURE__ */ v(Gc, {
12650
+ children: [/* @__PURE__ */ v(Wc, {
12633
12651
  inputMode: "numeric",
12634
12652
  "data-1p-ignore": "true",
12635
12653
  ...f?.[n],
@@ -12696,7 +12714,7 @@ function Bl({ value: e, onChange: t, label: n, hint: r, error: i, id: a, name: o
12696
12714
  }
12697
12715
  //#endregion
12698
12716
  //#region src/components/ui/Skeleton.tsx
12699
- function Vl({ className: e, width: t, height: n, style: r, ...i }) {
12717
+ function Bl({ className: e, width: t, height: n, style: r, ...i }) {
12700
12718
  return /* @__PURE__ */ v("div", {
12701
12719
  ...i,
12702
12720
  "aria-hidden": "true",
@@ -12710,7 +12728,7 @@ function Vl({ className: e, width: t, height: n, style: r, ...i }) {
12710
12728
  }
12711
12729
  //#endregion
12712
12730
  //#region src/components/ui/NavTabs.tsx
12713
- function Hl({ items: e, activeKey: t, renderLink: n, className: r, "aria-label": i = "Sections", ...a }) {
12731
+ function Vl({ items: e, activeKey: t, renderLink: n, className: r, "aria-label": i = "Sections", ...a }) {
12714
12732
  return /* @__PURE__ */ v("nav", {
12715
12733
  ...a,
12716
12734
  "aria-label": i,
@@ -12722,7 +12740,7 @@ function Hl({ items: e, activeKey: t, renderLink: n, className: r, "aria-label":
12722
12740
  ...o,
12723
12741
  "aria-current": r === t ? "page" : void 0,
12724
12742
  className: Y("ui-nav-tab px-3 py-2 text-xs font-medium", r === t ? "text-accent" : "text-text-secondary", e.className),
12725
- children: /* @__PURE__ */ y(_, { children: [i, a !== void 0 && /* @__PURE__ */ v(vi, {
12743
+ children: /* @__PURE__ */ y(_, { children: [i, a !== void 0 && /* @__PURE__ */ v(_i, {
12726
12744
  size: "xs",
12727
12745
  className: "bg-bg-tertiary font-inherit text-inherit",
12728
12746
  children: a
@@ -12735,7 +12753,7 @@ function Hl({ items: e, activeKey: t, renderLink: n, className: r, "aria-label":
12735
12753
  }
12736
12754
  //#endregion
12737
12755
  //#region src/components/ui/CharacterCount.tsx
12738
- function Ul({ value: e, maxLength: t, announcementDelay: n = 1e3, className: r, ...i }) {
12756
+ function Hl({ value: e, maxLength: t, announcementDelay: n = 1e3, className: r, ...i }) {
12739
12757
  let a = t - e.length, o = Math.abs(a), s = `${o} ${o === 1 ? "character" : "characters"} ${a < 0 ? "over the limit" : "remaining"}`, [c, u] = g(s);
12740
12758
  return l(() => {
12741
12759
  let e = setTimeout(() => u(s), n);
@@ -12757,7 +12775,7 @@ function Ul({ value: e, maxLength: t, announcementDelay: n = 1e3, className: r,
12757
12775
  }
12758
12776
  //#endregion
12759
12777
  //#region src/providers/ControlSizeProvider.tsx
12760
- function Wl({ size: e, children: t }) {
12778
+ function Ul({ size: e, children: t }) {
12761
12779
  return /* @__PURE__ */ v(Qn.Provider, {
12762
12780
  value: e,
12763
12781
  children: t
@@ -12765,7 +12783,7 @@ function Wl({ size: e, children: t }) {
12765
12783
  }
12766
12784
  //#endregion
12767
12785
  //#region src/components/ui/ProgressBar.tsx
12768
- var Gl = a(function({ label: e, value: t, min: n = 0, max: r = 100, color: i = "accent", striped: a = !1, animated: o = !1, id: s, className: c, ...l }, d) {
12786
+ var Wl = a(function({ label: e, value: t, min: n = 0, max: r = 100, color: i = "accent", striped: a = !1, animated: o = !1, id: s, className: c, ...l }, d) {
12769
12787
  let f = u(), p = s ?? f;
12770
12788
  if (!Number.isFinite(n) || !Number.isFinite(r) || r <= n) throw RangeError("ProgressBar requires a finite max greater than min");
12771
12789
  if (t !== void 0 && !Number.isFinite(t)) throw RangeError("ProgressBar value must be finite");
@@ -12803,31 +12821,31 @@ var Gl = a(function({ label: e, value: t, min: n = 0, max: r = 100, color: i = "
12803
12821
  });
12804
12822
  //#endregion
12805
12823
  //#region src/components/ui/Stack.tsx
12806
- function Kl({ as: e, gap: t = 0, align: n = "stretch", justify: r = "start", className: a, style: o, ...s }) {
12824
+ function Gl({ as: e, gap: t = 0, align: n = "stretch", justify: r = "start", className: a, style: o, ...s }) {
12807
12825
  return i(e ?? "div", {
12808
12826
  ...s,
12809
12827
  className: Y("ui-stack", a),
12810
12828
  style: {
12811
- ...js(t),
12812
- "--ui-align": Ms(n),
12813
- "--ui-justify": Ns(r),
12829
+ ...As(t),
12830
+ "--ui-align": js(n),
12831
+ "--ui-justify": Ms(r),
12814
12832
  ...o
12815
12833
  }
12816
12834
  });
12817
12835
  }
12818
12836
  //#endregion
12819
12837
  //#region src/components/ui/Inline.tsx
12820
- function ql({ as: e, gap: t = 0, gapX: n, gapY: r, align: a = "stretch", justify: o = "start", wrap: s = !1, inline: c = !1, stackBelow: l, className: u, style: d, ...f }) {
12838
+ function Kl({ as: e, gap: t = 0, gapX: n, gapY: r, align: a = "stretch", justify: o = "start", wrap: s = !1, inline: c = !1, stackBelow: l, className: u, style: d, ...f }) {
12821
12839
  return i(e ?? "div", {
12822
12840
  ...f,
12823
12841
  className: Y("ui-inline", u),
12824
12842
  style: {
12825
- ...js(t, n, r),
12826
- "--ui-align": Ms(a),
12827
- "--ui-justify": Ns(o),
12843
+ ...As(t, n, r),
12844
+ "--ui-align": js(a),
12845
+ "--ui-justify": Ms(o),
12828
12846
  "--ui-wrap": s ? "wrap" : "nowrap",
12829
12847
  "--ui-display": c ? "inline-flex" : "flex",
12830
- ...ks("direction", l ? {
12848
+ ...Os("direction", l ? {
12831
12849
  base: "column",
12832
12850
  [l]: "row"
12833
12851
  } : "row", (e) => e, "row"),
@@ -12837,13 +12855,13 @@ function ql({ as: e, gap: t = 0, gapX: n, gapY: r, align: a = "stretch", justify
12837
12855
  }
12838
12856
  //#endregion
12839
12857
  //#region src/components/ui/Grid.tsx
12840
- function Jl({ as: e, columns: t = 1, gap: n = 0, gapX: r, gapY: a, align: o = "stretch", justify: s = "stretch", className: c, style: l, ...u }) {
12858
+ function ql({ as: e, columns: t = 1, gap: n = 0, gapX: r, gapY: a, align: o = "stretch", justify: s = "stretch", className: c, style: l, ...u }) {
12841
12859
  return i(e ?? "div", {
12842
12860
  ...u,
12843
12861
  className: Y("ui-grid", c),
12844
12862
  style: {
12845
- ...js(n, r, a),
12846
- ...ks("columns", t, As, 1),
12863
+ ...As(n, r, a),
12864
+ ...Os("columns", t, ks, 1),
12847
12865
  "--ui-align": o,
12848
12866
  "--ui-justify": s,
12849
12867
  ...l
@@ -12852,15 +12870,15 @@ function Jl({ as: e, columns: t = 1, gap: n = 0, gapX: r, gapY: a, align: o = "s
12852
12870
  }
12853
12871
  //#endregion
12854
12872
  //#region src/components/ui/GridItem.tsx
12855
- function Yl({ as: e, span: t = 1, className: n, style: r, ...a }) {
12873
+ function Jl({ as: e, span: t = 1, className: n, style: r, ...a }) {
12856
12874
  return i(e ?? "div", {
12857
12875
  ...a,
12858
12876
  className: Y("ui-grid-item", n),
12859
12877
  style: {
12860
- ...ks("span", t, (e) => `span ${e} / span ${e}`, 1),
12878
+ ...Os("span", t, (e) => `span ${e} / span ${e}`, 1),
12861
12879
  ...r
12862
12880
  }
12863
12881
  });
12864
12882
  }
12865
12883
  //#endregion
12866
- export { $r as Accordion, ni as Alert, Pr as AppShell, Qe as AreaChart, Ll as AttachmentItem, Rl as AttachmentList, si as AudioPlayer, li as AuthCard, Fr as AuthLayout, ui as AuthorByline, Dn as Avatar, Ir as BackLink, vi as Badge, tt as BarChart, xt as BottomNav, Xn as Breadcrumbs, sr as Button, Pt as COMMAND_PALETTE_EVENT, co as Calendar, _o as CalendarGrid, vo as Card, Ul as CharacterCount, Lr as Checkbox, wo as CodeInput, Br as ColumnPicker, To as Combobox, zt as CommandPalette, Wl as ControlSizeProvider, Oo as CopyButton, $a as DEFAULT_CALENDAR_LABELS, Ft as DEFAULT_COMMAND_PALETTE_SHORTCUT, ko as DangerZone, Bl as DatePartsInput, jo as DatePicker, Po as DateRangePicker, zo as DateTimePicker, Ho as DetailPanel, hs as Dialog, gs as DialogActions, Qr as Disclosure, _s as DividerLabel, rt as DonutChart, bs as DropdownMenu, xs as EmptyState, Ss as ErrorBoundary, Al as FieldError, kl as FieldHint, jl as Fieldset, Rr as FilterButton, Cs as FilterDropdown, Ol as FormField, Jl as Grid, Yl as GridItem, ql as Inline, ws as Kbd, Ds as ListItemLink, Es as LoadingSpinner, Os as MessageBubble, Is as MetadataGrid, Rs as MetricCard, Wt as MobileDrawer, Hl as NavTabs, Us as OAuthButton, Ws as OverlineLabel, Gs as PageHeader, Ks as PageSection, Vr as Pagination, Js as PaginationBar, Xs as PasswordInput, $s as PasswordRequirements, ec as Popover, Bt as PortalContainerContext, tc as ProfileHeader, Gl as ProgressBar, nc as ProseContent, rc as QrCapacityError, Ec as QrCode, it as RadarChart, at as RadialBarChart, Pl as Radio, eo as RadioPill, Dc as ReorderList, Zr as ResourceTable, Oc as SearchInput, cr as SectionHeader, kc as Select, br as SelectDropdown, Ac as SettingRow, Sn as SettingsContext, Cl as SettingsProvider, jc as SideSheet, Jn as Sidebar, Vl as Skeleton, Sr as Slider, ot as SparkLine, zc as SplitPaneLayout, Kl as Stack, pt as StackedBarChart, Vc as StatusDot, Hc as StepProgress, Tr as THEME_MENU_EVENT, Ur as Table, Gr as TableBody, Jr as TableCell, Yr as TableEmptyRow, Wr as TableHead, qr as TableHeaderCell, Kr as TableRow, Uc as Tabs, Gc as TextInput, Wc as Textarea, il as ThemeContext, Or as ThemeMenu, Cr as ThemePreview, Dl as ThemeProvider, Kc as TimeInput, qc as Timeline, Fn as ToastProvider, wr as Toggle, nl as Toolbar, tl as Tooltip, Mr as TopBar, Yc as TranscriptLine, rl as UploadDropzone, _t as VerticalBarChart, nn as accentItems, Di as addDays, Oi as addMinutes, ki as addMonths, yi as badgeColors, Si as calendarDateFromParts, $ as calendarDateParts, Y as cn, va as createCalendarDateMath, Yt as darkThemes, Ii as dateAtMinutes, Zs as defaultPasswordRequirements, Ni as differenceInDays, Tc as encodeQrCode, da as expandAvailabilityRules, tn as fontOptions, sl as formatDateLong, ol as formatDateShort, ea as formatRangeTitle, cl as formatRelative, Xi as formatTime, Ri as formatTimeOfDay, Zi as formatTimeRange, Bi as fromDateKey, ua as getActiveResourceIds, Ki as getViewRange, Wi as getVisibleDays, yt as handleAppShellNavigate, _a as isAllDayLike, vt as isAppShellPathActive, qt as isLightTheme, Mi as isSameDay, Ui as isTimeGridView, An as isTone, aa as layoutOverlaps, Jt as lightThemes, Lt as matchesCommandPaletteShortcut, Qs as meetsPasswordRequirements, Pi as minutesOfDay, bt as navigateToPath, It as openCommandPalette, Er as openThemeMenu, Li as parseTime, ta as rangesOverlap, On as semanticTones, qi as shiftDate, Hi as snapDate, Vi as snapMinutes, Hr as sortRows, Ei as startOfDay, ji as startOfMonth, Ai as startOfWeek, en as themeDefaults, Gt as themeItems, zi as toDateKey, Mn as toneClasses, jn as toneColor, kn as tones, yn as useAnchoredPopup, Zn as useApplyTheme, $n as useControlSize, xn as useDismiss, Ct as useFocusTrap, lr as usePopover, Vt as usePortalContainer, Cn as useSettings, al as useTheme, Pn as useToast };
12884
+ export { $r as Accordion, ti as Alert, Pr as AppShell, Qe as AreaChart, Il as AttachmentItem, Ll as AttachmentList, oi as AudioPlayer, ci as AuthCard, Fr as AuthLayout, li as AuthorByline, Dn as Avatar, Ir as BackLink, _i as Badge, tt as BarChart, xt as BottomNav, Xn as Breadcrumbs, sr as Button, Pt as COMMAND_PALETTE_EVENT, so as Calendar, go as CalendarGrid, _o as Card, Hl as CharacterCount, Lr as Checkbox, Co as CodeInput, Br as ColumnPicker, wo as Combobox, zt as CommandPalette, Ul as ControlSizeProvider, Do as CopyButton, Qa as DEFAULT_CALENDAR_LABELS, Ft as DEFAULT_COMMAND_PALETTE_SHORTCUT, Oo as DangerZone, zl as DatePartsInput, Ao as DatePicker, No as DateRangePicker, Ro as DateTimePicker, Vo as DetailPanel, ms as Dialog, hs as DialogActions, Qr as Disclosure, gs as DividerLabel, rt as DonutChart, ys as DropdownMenu, bs as EmptyState, xs as ErrorBoundary, kl as FieldError, Ol as FieldHint, Al as Fieldset, Rr as FilterButton, Ss as FilterDropdown, Dl as FormField, ql as Grid, Jl as GridItem, Kl as Inline, Cs as Kbd, Es as ListItemLink, Ts as LoadingSpinner, Ds as MessageBubble, Fs as MetadataGrid, Ls as MetricCard, Wt as MobileDrawer, Vl as NavTabs, Hs as OAuthButton, Us as OverlineLabel, Ws as PageHeader, Gs as PageSection, Vr as Pagination, qs as PaginationBar, Ys as PasswordInput, Qs as PasswordRequirements, $s as Popover, Bt as PortalContainerContext, ec as ProfileHeader, Wl as ProgressBar, tc as ProseContent, nc as QrCapacityError, Tc as QrCode, it as RadarChart, at as RadialBarChart, Nl as Radio, $a as RadioPill, Ec as ReorderList, Zr as ResourceTable, Dc as SearchInput, cr as SectionHeader, Oc as Select, br as SelectDropdown, kc as SettingRow, Sn as SettingsContext, Sl as SettingsProvider, Ac as SideSheet, Jn as Sidebar, Bl as Skeleton, Sr as Slider, ot as SparkLine, Rc as SplitPaneLayout, Gl as Stack, pt as StackedBarChart, Bc as StatusDot, Vc as StepProgress, Tr as THEME_MENU_EVENT, Ur as Table, Gr as TableBody, Jr as TableCell, Yr as TableEmptyRow, Wr as TableHead, qr as TableHeaderCell, Kr as TableRow, Hc as Tabs, Wc as TextInput, Uc as Textarea, rl as ThemeContext, Or as ThemeMenu, Cr as ThemePreview, El as ThemeProvider, Gc as TimeInput, Kc as Timeline, Fn as ToastProvider, wr as Toggle, tl as Toolbar, el as Tooltip, Mr as TopBar, Jc as TranscriptLine, nl as UploadDropzone, _t as VerticalBarChart, nn as accentItems, Ei as addDays, Di as addMinutes, Oi as addMonths, vi as badgeColors, xi as calendarDateFromParts, $ as calendarDateParts, Y as cn, _a as createCalendarDateMath, Yt as darkThemes, Fi as dateAtMinutes, Xs as defaultPasswordRequirements, Mi as differenceInDays, wc as encodeQrCode, ua as expandAvailabilityRules, tn as fontOptions, ol as formatDateLong, al as formatDateShort, $i as formatRangeTitle, sl as formatRelative, Yi as formatTime, Li as formatTimeOfDay, Xi as formatTimeRange, zi as fromDateKey, la as getActiveResourceIds, Gi as getViewRange, Ui as getVisibleDays, yt as handleAppShellNavigate, ga as isAllDayLike, vt as isAppShellPathActive, qt as isLightTheme, ji as isSameDay, Hi as isTimeGridView, An as isTone, ia as layoutOverlaps, Jt as lightThemes, Lt as matchesCommandPaletteShortcut, Zs as meetsPasswordRequirements, Ni as minutesOfDay, bt as navigateToPath, It as openCommandPalette, Er as openThemeMenu, Ii as parseTime, ea as rangesOverlap, On as semanticTones, Ki as shiftDate, Vi as snapDate, Bi as snapMinutes, Hr as sortRows, Ti as startOfDay, Ai as startOfMonth, ki as startOfWeek, en as themeDefaults, Gt as themeItems, Ri as toDateKey, Mn as toneClasses, jn as toneColor, kn as tones, yn as useAnchoredPopup, Zn as useApplyTheme, $n as useControlSize, xn as useDismiss, Ct as useFocusTrap, lr as usePopover, Vt as usePortalContainer, Cn as useSettings, il as useTheme, Pn as useToast };