@sesamehr/react-design-system 3.10.0 → 3.10.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Button/ActionItem/ActionItem.js +36 -0
- package/dist/Button/ActionItem/ActionItem.module.css.js +8 -0
- package/dist/Button/Button.js +25 -0
- package/dist/Button/Button.module.css.js +20 -0
- package/dist/Button/ButtonGroup/ButtonGroup.js +21 -0
- package/dist/Button/ButtonGroup/ButtonGroup.module.css.js +6 -0
- package/dist/Button/Fab/Fab.js +34 -0
- package/dist/Button/Fab/Fab.module.css.js +8 -0
- package/dist/Button/Fab/index.js +15 -0
- package/dist/Button/IconButton/IconButton.js +28 -0
- package/dist/Button/IconButton/IconButton.module.css.js +11 -0
- package/dist/Button/IconButton/index.js +18 -0
- package/dist/Button/SplitButton/SplitButton.js +74 -0
- package/dist/Button/SplitButton/SplitButton.module.css.js +8 -0
- package/dist/Button/index.js +48 -0
- package/dist/Data/KpiCard/KpiCard.js +166 -0
- package/dist/Data/KpiCard/KpiCard.module.css.js +26 -0
- package/dist/Data/KpiCard/index.js +15 -0
- package/dist/Data/Table/Table.js +459 -0
- package/dist/Data/Table/Table.module.css.js +53 -0
- package/dist/Data/Table/TableBody/TableBody.js +75 -0
- package/dist/Data/Table/TableBody/TableBody.module.css.js +9 -0
- package/dist/Data/Table/TableBulkHeader/TableBulkHeader.js +39 -0
- package/dist/Data/Table/TableBulkHeader/TableBulkHeader.module.css.js +11 -0
- package/dist/Data/Table/TableCell/TableCell.js +47 -0
- package/dist/Data/Table/TableCell/TableCell.module.css.js +15 -0
- package/dist/Data/Table/TableColumnVisibility/TableColumnVisibility.js +44 -0
- package/dist/Data/Table/TableColumnVisibility/TableColumnVisibility.module.css.js +15 -0
- package/dist/Data/Table/TableDragCell/TableDragCell.js +48 -0
- package/dist/Data/Table/TableDragCell/TableDragCell.module.css.js +15 -0
- package/dist/Data/Table/TableEmpty/TableEmpty.js +24 -0
- package/dist/Data/Table/TableEmpty/TableEmpty.module.css.js +9 -0
- package/dist/Data/Table/TableExpandCell/TableExpandCell.js +45 -0
- package/dist/Data/Table/TableExpandCell/TableExpandCell.module.css.js +15 -0
- package/dist/Data/Table/TableHead/TableHead.js +79 -0
- package/dist/Data/Table/TableHead/TableHead.module.css.js +13 -0
- package/dist/Data/Table/TableHeaderCell/TableHeaderCell.js +145 -0
- package/dist/Data/Table/TableHeaderCell/TableHeaderCell.module.css.js +39 -0
- package/dist/Data/Table/TablePagination/TablePagination.js +135 -0
- package/dist/Data/Table/TablePagination/TablePagination.module.css.js +27 -0
- package/dist/Data/Table/TableRow/TableRow.js +89 -0
- package/dist/Data/Table/TableRow/TableRow.module.css.js +11 -0
- package/dist/Data/Table/TableRow/rowDrag.js +5 -0
- package/dist/Data/Table/TableRowExpanded/TableRowExpanded.js +18 -0
- package/dist/Data/Table/TableRowExpanded/TableRowExpanded.module.css.js +11 -0
- package/dist/Data/Table/TableScrollbar/TableScrollbar.js +50 -0
- package/dist/Data/Table/TableSelectCell/TableSelectCell.js +46 -0
- package/dist/Data/Table/TableSelectCell/TableSelectCell.module.css.js +13 -0
- package/dist/Data/Table/TableVirtualized/TableVirtualized.js +19 -0
- package/dist/Data/Table/hooks/useDragToScroll/useDragToScroll.js +64 -0
- package/dist/Data/Table/hooks/useFixedColumns.js +76 -0
- package/dist/Data/Table/hooks/useScrollShadow/useScrollShadow.js +34 -0
- package/dist/Data/Table/hooks/useTable/useTable.js +74 -0
- package/dist/Data/Table/hooks/useTableColumns/useTableColumns.js +69 -0
- package/dist/Data/Table/hooks/useTableDetailRow/useTableDetailRow.js +92 -0
- package/dist/Data/Table/hooks/useTablePagination/useTablePagination.js +66 -0
- package/dist/Data/Table/hooks/useTablePinning/useTablePinning.js +161 -0
- package/dist/Data/Table/hooks/useTableSelection/useTableSelection.js +75 -0
- package/dist/Data/Table/hooks/useTableSorting/useTableSorting.js +37 -0
- package/dist/Data/Table/hooks/useTableVirtual/context.js +9 -0
- package/dist/Data/Table/hooks/useTableVirtual/useTableVirtual.js +53 -0
- package/dist/Display/AiTag/AiTag.js +32 -0
- package/dist/Display/AiTag/AiTag.module.css.js +12 -0
- package/dist/Display/AiTag/index.js +25 -0
- package/dist/Display/Avatar/AvatarRounded/AvatarRounded.js +75 -0
- package/dist/Display/Avatar/AvatarRounded/AvatarRounded.module.css.js +20 -0
- package/dist/Display/Avatar/AvatarSkeleton/AvatarSkeleton.js +29 -0
- package/dist/Display/Avatar/AvatarSkeleton/AvatarSkeleton.module.css.js +7 -0
- package/dist/Display/Avatar/AvatarSquare/AvatarSquare.js +72 -0
- package/dist/Display/Avatar/AvatarSquare/AvatarSquare.module.css.js +20 -0
- package/dist/Display/Avatar/hooks/useAvatarBullet.js +13 -0
- package/dist/Display/Avatar/index.js +65 -0
- package/dist/Display/AvatarDetails/AvatarDetails.js +49 -0
- package/dist/Display/AvatarDetails/AvatarDetails.module.css.js +13 -0
- package/dist/Display/AvatarGroup/AvatarGroup.js +101 -0
- package/dist/Display/AvatarGroup/AvatarGroup.module.css.js +18 -0
- package/dist/Display/Badge/Badge.js +25 -0
- package/dist/Display/Badge/Badge.module.css.js +12 -0
- package/dist/Display/Badge/index.js +22 -0
- package/dist/Display/BrandLogo/BrandLogo.js +45 -0
- package/dist/Display/BrandLogo/BrandLogo.module.css.js +10 -0
- package/dist/Display/BrandLogo/brandLogoArt.js +48 -0
- package/dist/Display/BrandLogo/index.js +25 -0
- package/dist/Display/CalendarDate/CalendarDate.js +54 -0
- package/dist/Display/CalendarDate/CalendarDate.module.css.js +13 -0
- package/dist/Display/CalendarDate/index.js +15 -0
- package/dist/Display/ChatBubble/ChatBubble.js +50 -0
- package/dist/Display/ChatBubble/ChatBubble.module.css.js +11 -0
- package/dist/Display/ChatBubble/ChatBubbleStatus/ChatBubbleStatus.js +46 -0
- package/dist/Display/ChatBubble/ChatBubbleStatus/ChatBubbleStatus.module.css.js +10 -0
- package/dist/Display/ChatBubble/ChatBubbleStatus/index.js +17 -0
- package/dist/Display/ChatBubble/index.js +15 -0
- package/dist/Display/Chip/Chip.js +36 -0
- package/dist/Display/Chip/Chip.module.css.js +10 -0
- package/dist/Display/Chip/index.js +17 -0
- package/dist/Display/CommentItem/CommentItem.js +153 -0
- package/dist/Display/CommentItem/CommentItem.module.css.js +20 -0
- package/dist/Display/FileCard/FileCard.js +71 -0
- package/dist/Display/FileCard/FileCard.module.css.js +20 -0
- package/dist/Display/FileCard/index.js +30 -0
- package/dist/Display/FilePreviewCard/FilePreviewCard.js +51 -0
- package/dist/Display/FilePreviewCard/FilePreviewCard.module.css.js +15 -0
- package/dist/Display/ImageAttachment/ImageAttachment.js +57 -0
- package/dist/Display/ImageAttachment/ImageAttachment.module.css.js +9 -0
- package/dist/Display/LinkPreview/LinkPreview.js +91 -0
- package/dist/Display/LinkPreview/LinkPreview.module.css.js +12 -0
- package/dist/Display/LocationAttachment/LocationAttachment.js +73 -0
- package/dist/Display/LocationAttachment/LocationAttachment.module.css.js +11 -0
- package/dist/Display/Mention/Mention.js +27 -0
- package/dist/Display/Mention/Mention.module.css.js +8 -0
- package/dist/Display/Mention/index.js +15 -0
- package/dist/Display/NumberFlow/NumberFlow.js +31 -0
- package/dist/Display/NumberFlow/NumberFlow.module.css.js +7 -0
- package/dist/Display/NumberFlow/index.js +23 -0
- package/dist/Display/PaymentCard/PaymentCard.js +107 -0
- package/dist/Display/PaymentCard/PaymentCard.module.css.js +31 -0
- package/dist/Display/PaymentCard/index.js +20 -0
- package/dist/Display/PixelArt/PixelArt.js +53 -0
- package/dist/Display/PixelArt/PixelArt.module.css.js +11 -0
- package/dist/Display/PixelArt/index.js +30 -0
- package/dist/Display/PlayerPill/PlayerPill.js +31 -0
- package/dist/Display/PlayerPill/PlayerPill.module.css.js +9 -0
- package/dist/Display/PlayerPill/PlayerPillAction.js +62 -0
- package/dist/Display/PlayerPill/PlayerPillAction.module.css.js +8 -0
- package/dist/Display/PlayerPill/PlayerPillStatus.js +43 -0
- package/dist/Display/PlayerPill/PlayerPillStatus.module.css.js +9 -0
- package/dist/Display/PlayerPill/PlayerPillTime.js +32 -0
- package/dist/Display/PlayerPill/PlayerPillTime.module.css.js +6 -0
- package/dist/Display/PlayerPill/index.js +16 -0
- package/dist/Display/PlayerPill/playerPillContext.js +13 -0
- package/dist/Display/PlayerPill/useElapsedSeconds.js +36 -0
- package/dist/Display/PointMarker/PointMarker.js +30 -0
- package/dist/Display/PointMarker/PointMarker.module.css.js +27 -0
- package/dist/Display/PointMarker/index.js +32 -0
- package/dist/Display/ReactionBar/ReactionBar.js +115 -0
- package/dist/Display/ReactionBar/ReactionBar.module.css.js +9 -0
- package/dist/Display/ReactionBar/overflow.js +17 -0
- package/dist/Display/ReactionButton/ReactionButton.js +73 -0
- package/dist/Display/ReactionButton/ReactionButton.module.css.js +11 -0
- package/dist/Display/ReactionButton/index.js +17 -0
- package/dist/Display/ReactionPicker/ReactionPicker.js +119 -0
- package/dist/Display/ReactionPicker/ReactionPicker.module.css.js +10 -0
- package/dist/Display/ReactionPicker/index.js +11 -0
- package/dist/Display/RichText/RichText.js +49 -0
- package/dist/Display/RichText/RichText.module.css.js +7 -0
- package/dist/Display/RichText/index.js +19 -0
- package/dist/Display/RichText/sanitizeHtml.js +14 -0
- package/dist/Display/Tag/Tag.js +32 -0
- package/dist/Display/Tag/Tag.module.css.js +26 -0
- package/dist/Display/Tag/index.js +39 -0
- package/dist/Display/VideoAttachment/VideoAttachment.js +69 -0
- package/dist/Display/VideoAttachment/VideoAttachment.module.css.js +9 -0
- package/dist/Display/VoiceMessage/VoiceMessage.js +115 -0
- package/dist/Display/VoiceMessage/VoiceMessage.module.css.js +13 -0
- package/dist/Display/VoiceMessage/toWaveformPeaks.js +60 -0
- package/dist/Display/VoiceMessage/useVoiceWaveform.js +78 -0
- package/dist/Feedback/Alert/Alert.js +60 -0
- package/dist/Feedback/Alert/Alert.module.css.js +12 -0
- package/dist/Feedback/Alert/AlertClose.js +30 -0
- package/dist/Feedback/Alert/AlertClose.module.css.js +7 -0
- package/dist/Feedback/Alert/AlertDescription.js +31 -0
- package/dist/Feedback/Alert/AlertDescription.module.css.js +7 -0
- package/dist/Feedback/Alert/AlertIcon.js +37 -0
- package/dist/Feedback/Alert/AlertIcon.module.css.js +7 -0
- package/dist/Feedback/Alert/AlertLink.js +20 -0
- package/dist/Feedback/Alert/AlertLink.module.css.js +7 -0
- package/dist/Feedback/Alert/AlertTitle.js +20 -0
- package/dist/Feedback/Alert/AlertTitle.module.css.js +7 -0
- package/dist/Feedback/Alert/AlertToggle.js +29 -0
- package/dist/Feedback/Alert/AlertToggle.module.css.js +7 -0
- package/dist/Feedback/Alert/alert-context.js +16 -0
- package/dist/Feedback/Bullet/Bullet.js +25 -0
- package/dist/Feedback/Bullet/Bullet.module.css.js +15 -0
- package/dist/Feedback/Bullet/index.js +25 -0
- package/dist/Feedback/Dialog/Dialog.js +23 -0
- package/dist/Feedback/Dialog/DialogBody.js +17 -0
- package/dist/Feedback/Dialog/DialogContent.js +44 -0
- package/dist/Feedback/Dialog/DialogContent.module.css.js +13 -0
- package/dist/Feedback/Dialog/DialogDescription.js +18 -0
- package/dist/Feedback/Dialog/DialogDescription.module.css.js +7 -0
- package/dist/Feedback/Dialog/DialogFullScreenContent.js +106 -0
- package/dist/Feedback/Dialog/DialogFullScreenContent.module.css.js +29 -0
- package/dist/Feedback/Dialog/DialogOverlay.js +18 -0
- package/dist/Feedback/Dialog/DialogScrollbar.js +66 -0
- package/dist/Feedback/Dialog/DialogScrollbar.module.css.js +7 -0
- package/dist/Feedback/Dialog/DialogTitle.js +18 -0
- package/dist/Feedback/Dialog/DialogTitle.module.css.js +7 -0
- package/dist/Feedback/Dialog/DialogTwoPanelContent.js +50 -0
- package/dist/Feedback/Dialog/DialogTwoPanelContent.module.css.js +17 -0
- package/dist/Feedback/Drawer/Drawer.js +45 -0
- package/dist/Feedback/Drawer/DrawerBody.js +17 -0
- package/dist/Feedback/Drawer/DrawerContent.js +69 -0
- package/dist/Feedback/Drawer/DrawerContent.module.css.js +15 -0
- package/dist/Feedback/Drawer/DrawerDescription.js +18 -0
- package/dist/Feedback/Drawer/DrawerDescription.module.css.js +7 -0
- package/dist/Feedback/Drawer/DrawerExpand.js +41 -0
- package/dist/Feedback/Drawer/DrawerExpand.module.css.js +11 -0
- package/dist/Feedback/Drawer/DrawerTitle.js +18 -0
- package/dist/Feedback/Drawer/DrawerTitle.module.css.js +7 -0
- package/dist/Feedback/Drawer/useDrawer.js +11 -0
- package/dist/Feedback/EmptyState/EmptyState.js +68 -0
- package/dist/Feedback/EmptyState/EmptyState.module.css.js +23 -0
- package/dist/Feedback/EmptyState/EmptyStateOption/EmptyStateOption.js +56 -0
- package/dist/Feedback/EmptyState/EmptyStateOption/EmptyStateOption.module.css.js +15 -0
- package/dist/Feedback/EmptyState/index.js +15 -0
- package/dist/Feedback/Loader/Loader.js +87 -0
- package/dist/Feedback/Loader/Loader.module.css.js +13 -0
- package/dist/Feedback/Popover/Popover.js +26 -0
- package/dist/Feedback/Popover/PopoverContent.js +46 -0
- package/dist/Feedback/Popover/PopoverContent.module.css.js +9 -0
- package/dist/Feedback/Progress/Progress.js +34 -0
- package/dist/Feedback/Progress/Progress.module.css.js +11 -0
- package/dist/Feedback/Progress/index.js +17 -0
- package/dist/Feedback/Skeleton/Skeleton.js +21 -0
- package/dist/Feedback/Skeleton/Skeleton.module.css.js +6 -0
- package/dist/Feedback/StatusBadge/StatusBadge.js +35 -0
- package/dist/Feedback/StatusBadge/StatusBadge.module.css.js +12 -0
- package/dist/Feedback/StatusBadge/index.js +18 -0
- package/dist/Feedback/Toast/Toast.js +23 -0
- package/dist/Feedback/Toast/Toast.module.css.js +13 -0
- package/dist/Feedback/Toast/ToastAction.js +23 -0
- package/dist/Feedback/Toast/ToastAction.module.css.js +6 -0
- package/dist/Feedback/Toast/ToastActions.js +20 -0
- package/dist/Feedback/Toast/ToastActions.module.css.js +7 -0
- package/dist/Feedback/Toast/ToastClose.js +34 -0
- package/dist/Feedback/Toast/ToastClose.module.css.js +7 -0
- package/dist/Feedback/Toast/ToastDescription.js +20 -0
- package/dist/Feedback/Toast/ToastDescription.module.css.js +6 -0
- package/dist/Feedback/Toast/ToastIcon.js +37 -0
- package/dist/Feedback/Toast/ToastIcon.module.css.js +6 -0
- package/dist/Feedback/Toast/ToastTitle.js +20 -0
- package/dist/Feedback/Toast/ToastTitle.module.css.js +6 -0
- package/dist/Feedback/Toast/Toaster.js +89 -0
- package/dist/Feedback/Toast/Toaster.module.css.js +12 -0
- package/dist/Feedback/Toast/index.js +45 -0
- package/dist/Feedback/Toast/toast-context.js +6 -0
- package/dist/Feedback/Toast/useToast.js +61 -0
- package/dist/Feedback/Tooltip/Tooltip.js +35 -0
- package/dist/Feedback/Tooltip/TooltipContent.js +45 -0
- package/dist/Feedback/Tooltip/TooltipContent.module.css.js +9 -0
- package/dist/Forms/Field/Counter/Counter.js +33 -0
- package/dist/Forms/Field/Counter/Counter.module.css.js +8 -0
- package/dist/Forms/Field/Counter/index.js +15 -0
- package/dist/Forms/Field/FieldGroup/FieldGroup.js +29 -0
- package/dist/Forms/Field/FieldGroup/FieldGroup.module.css.js +13 -0
- package/dist/Forms/Field/FieldLabel/FieldLabel.js +25 -0
- package/dist/Forms/Field/FieldLabel/FieldLabel.module.css.js +7 -0
- package/dist/Forms/Field/FieldMessage/FieldMessage.js +31 -0
- package/dist/Forms/Field/FieldMessage/FieldMessage.module.css.js +13 -0
- package/dist/Forms/Field/useFieldGroup.js +111 -0
- package/dist/Forms/Inputs/AiSearch/AiSearch.js +109 -0
- package/dist/Forms/Inputs/AiSearch/AiSearch.module.css.js +19 -0
- package/dist/Forms/Inputs/AiSearch/AiSearchAsk.js +45 -0
- package/dist/Forms/Inputs/AiSearch/AiSearchAsk.module.css.js +19 -0
- package/dist/Forms/Inputs/AiSearch/AiSearchPanel.js +50 -0
- package/dist/Forms/Inputs/AiSearch/AiSearchPanel.module.css.js +13 -0
- package/dist/Forms/Inputs/AiSearch/AiSearchSend.js +42 -0
- package/dist/Forms/Inputs/AiSearch/AiSearchSend.module.css.js +9 -0
- package/dist/Forms/Inputs/AiSearch/AiSearchShortcut.js +21 -0
- package/dist/Forms/Inputs/AiSearch/AiSearchShortcut.module.css.js +7 -0
- package/dist/Forms/Inputs/AiSearch/AiSearchSuggestion.js +24 -0
- package/dist/Forms/Inputs/AiSearch/AiSearchSuggestion.module.css.js +7 -0
- package/dist/Forms/Inputs/AiSearch/useAiSearch.js +13 -0
- package/dist/Forms/Inputs/Calendar/Calendar.js +230 -0
- package/dist/Forms/Inputs/Calendar/Calendar.module.css.js +21 -0
- package/dist/Forms/Inputs/Calendar/CalendarDay.js +33 -0
- package/dist/Forms/Inputs/Calendar/CalendarDay.module.css.js +10 -0
- package/dist/Forms/Inputs/Calendar/CalendarRange.js +248 -0
- package/dist/Forms/Inputs/Calendar/CalendarRange.module.css.js +21 -0
- package/dist/Forms/Inputs/Calendar/date.js +7 -0
- package/dist/Forms/Inputs/Calendar/index.js +13 -0
- package/dist/Forms/Inputs/Calendar/testids.js +5 -0
- package/dist/Forms/Inputs/Calendar/useCalendarLocale.js +22 -0
- package/dist/Forms/Inputs/ChatInput/ChatInput.js +142 -0
- package/dist/Forms/Inputs/ChatInput/ChatInput.module.css.js +14 -0
- package/dist/Forms/Inputs/ColorPicker/ColorPicker.js +71 -0
- package/dist/Forms/Inputs/ColorPicker/ColorPicker.module.css.js +7 -0
- package/dist/Forms/Inputs/ColorPicker/ColorPickerContent.js +48 -0
- package/dist/Forms/Inputs/ColorPicker/ColorPickerContent.module.css.js +7 -0
- package/dist/Forms/Inputs/ColorPicker/ColorPickerSwatch.js +30 -0
- package/dist/Forms/Inputs/ColorPicker/ColorPickerSwatch.module.css.js +11 -0
- package/dist/Forms/Inputs/ColorPicker/ColorPickerTrigger.js +53 -0
- package/dist/Forms/Inputs/ColorPicker/ColorPickerTrigger.module.css.js +15 -0
- package/dist/Forms/Inputs/ColorPicker/useColorPicker.js +11 -0
- package/dist/Forms/Inputs/Combobox/Combobox.js +103 -0
- package/dist/Forms/Inputs/Combobox/Combobox.module.css.js +7 -0
- package/dist/Forms/Inputs/Combobox/ComboboxCancel.js +45 -0
- package/dist/Forms/Inputs/Combobox/ComboboxCancel.module.css.js +9 -0
- package/dist/Forms/Inputs/Combobox/ComboboxChipsInput.js +176 -0
- package/dist/Forms/Inputs/Combobox/ComboboxChipsInput.module.css.js +29 -0
- package/dist/Forms/Inputs/Combobox/ComboboxContent.js +78 -0
- package/dist/Forms/Inputs/Combobox/ComboboxEmpty.js +13 -0
- package/dist/Forms/Inputs/Combobox/ComboboxGroup.js +20 -0
- package/dist/Forms/Inputs/Combobox/ComboboxInput.js +101 -0
- package/dist/Forms/Inputs/Combobox/ComboboxInput.module.css.js +13 -0
- package/dist/Forms/Inputs/Combobox/ComboboxItem.js +44 -0
- package/dist/Forms/Inputs/Combobox/ComboboxItemEdit.js +98 -0
- package/dist/Forms/Inputs/Combobox/ComboboxItemEdit.module.css.js +7 -0
- package/dist/Forms/Inputs/Combobox/ComboboxSeparator.js +9 -0
- package/dist/Forms/Inputs/Combobox/context.js +12 -0
- package/dist/Forms/Inputs/Combobox/useChipOverflow.js +45 -0
- package/dist/Forms/Inputs/Combobox/useComboboxEditing.js +19 -0
- package/dist/Forms/Inputs/Combobox/useComboboxLabels.js +13 -0
- package/dist/Forms/Inputs/Combobox/useComboboxSearch.js +20 -0
- package/dist/Forms/Inputs/DatePicker/DatePicker.js +89 -0
- package/dist/Forms/Inputs/DatePicker/DatePicker.module.css.js +7 -0
- package/dist/Forms/Inputs/DatePicker/DatePickerHeader.js +67 -0
- package/dist/Forms/Inputs/DatePicker/DatePickerHeader.module.css.js +13 -0
- package/dist/Forms/Inputs/DatePicker/DatePickerMonthSelect.js +49 -0
- package/dist/Forms/Inputs/DatePicker/DatePickerMonthSelect.module.css.js +9 -0
- package/dist/Forms/Inputs/DatePicker/DatePickerTrigger.js +26 -0
- package/dist/Forms/Inputs/DatePicker/DatePickerTrigger.module.css.js +13 -0
- package/dist/Forms/Inputs/DatePicker/DatePickerYearSelect.js +41 -0
- package/dist/Forms/Inputs/DatePicker/DatePickerYearSelect.module.css.js +9 -0
- package/dist/Forms/Inputs/DatePicker/DateRangePicker.js +104 -0
- package/dist/Forms/Inputs/DatePicker/DateRangePicker.module.css.js +11 -0
- package/dist/Forms/Inputs/DatePicker/format.js +20 -0
- package/dist/Forms/Inputs/DatePicker/month.js +11 -0
- package/dist/Forms/Inputs/DatePicker/useDatePickerHeader.js +11 -0
- package/dist/Forms/Inputs/IconPicker/IconPicker.js +80 -0
- package/dist/Forms/Inputs/IconPicker/IconPicker.module.css.js +7 -0
- package/dist/Forms/Inputs/IconPicker/IconPickerContent.js +84 -0
- package/dist/Forms/Inputs/IconPicker/IconPickerContent.module.css.js +15 -0
- package/dist/Forms/Inputs/IconPicker/IconPickerItem.js +31 -0
- package/dist/Forms/Inputs/IconPicker/IconPickerItem.module.css.js +11 -0
- package/dist/Forms/Inputs/IconPicker/IconPickerTrigger.js +53 -0
- package/dist/Forms/Inputs/IconPicker/IconPickerTrigger.module.css.js +15 -0
- package/dist/Forms/Inputs/IconPicker/useIconPicker.js +24 -0
- package/dist/Forms/Inputs/Input.module.css.js +7 -0
- package/dist/Forms/Inputs/InputGroup/InputGroup.js +20 -0
- package/dist/Forms/Inputs/InputGroup/InputGroup.module.css.js +7 -0
- package/dist/Forms/Inputs/InputNumber/InputNumber.js +90 -0
- package/dist/Forms/Inputs/InputNumber/InputNumber.module.css.js +7 -0
- package/dist/Forms/Inputs/InputNumber/InputNumberContent.js +18 -0
- package/dist/Forms/Inputs/InputNumber/InputNumberContent.module.css.js +7 -0
- package/dist/Forms/Inputs/InputNumber/InputNumberContext.js +16 -0
- package/dist/Forms/Inputs/InputNumber/InputNumberDecrement.js +34 -0
- package/dist/Forms/Inputs/InputNumber/InputNumberDecrement.module.css.js +9 -0
- package/dist/Forms/Inputs/InputNumber/InputNumberIncrement.js +34 -0
- package/dist/Forms/Inputs/InputNumber/InputNumberIncrement.module.css.js +9 -0
- package/dist/Forms/Inputs/InputNumber/InputNumberInput.js +48 -0
- package/dist/Forms/Inputs/InputNumber/InputNumberInput.module.css.js +7 -0
- package/dist/Forms/Inputs/InputOtp/InputOtp.js +114 -0
- package/dist/Forms/Inputs/InputOtp/InputOtp.module.css.js +7 -0
- package/dist/Forms/Inputs/InputOtp/InputOtpGroup/InputOtpGroup.js +25 -0
- package/dist/Forms/Inputs/InputOtp/InputOtpGroup/InputOtpGroup.module.css.js +7 -0
- package/dist/Forms/Inputs/InputOtp/InputOtpSeparator/InputOtpSeparator.js +24 -0
- package/dist/Forms/Inputs/InputOtp/InputOtpSeparator/InputOtpSeparator.module.css.js +7 -0
- package/dist/Forms/Inputs/InputOtp/InputOtpSlot/InputOtpSlot.js +62 -0
- package/dist/Forms/Inputs/InputOtp/InputOtpSlot/InputOtpSlot.module.css.js +7 -0
- package/dist/Forms/Inputs/InputOtp/hooks/useInputOtp.js +16 -0
- package/dist/Forms/Inputs/InputPassword/InputPassword.js +53 -0
- package/dist/Forms/Inputs/InputPassword/InputPassword.module.css.js +7 -0
- package/dist/Forms/Inputs/InputPassword/InputPasswordInput.js +34 -0
- package/dist/Forms/Inputs/InputPassword/InputPasswordInput.module.css.js +7 -0
- package/dist/Forms/Inputs/InputPassword/InputPasswordToggle.js +34 -0
- package/dist/Forms/Inputs/InputPassword/InputPasswordToggle.module.css.js +9 -0
- package/dist/Forms/Inputs/InputPassword/useInputPassword.js +16 -0
- package/dist/Forms/Inputs/InputText/InputText.js +49 -0
- package/dist/Forms/Inputs/InputText/InputText.module.css.js +7 -0
- package/dist/Forms/Inputs/MonthPicker/MonthPicker.js +122 -0
- package/dist/Forms/Inputs/MonthPicker/MonthPicker.module.css.js +13 -0
- package/dist/Forms/Inputs/MonthPicker/MonthPickerPanel.js +183 -0
- package/dist/Forms/Inputs/MonthPicker/MonthPickerPanel.module.css.js +19 -0
- package/dist/Forms/Inputs/MonthPicker/monthGrid.js +53 -0
- package/dist/Forms/Inputs/RichTextEditor/RichTextEditor.js +60 -0
- package/dist/Forms/Inputs/RichTextEditor/RichTextEditor.module.css.js +10 -0
- package/dist/Forms/Inputs/RichTextEditor/RichTextToolbar/RichTextToolbar.js +20 -0
- package/dist/Forms/Inputs/RichTextEditor/RichTextToolbar/RichTextToolbar.module.css.js +6 -0
- package/dist/Forms/Inputs/RichTextEditor/RichTextToolbarButton/RichTextToolbarButton.js +38 -0
- package/dist/Forms/Inputs/RichTextEditor/RichTextToolbarButton/RichTextToolbarButton.module.css.js +6 -0
- package/dist/Forms/Inputs/RichTextEditor/commands.js +85 -0
- package/dist/Forms/Inputs/RichTextEditor/devChecks.js +4 -0
- package/dist/Forms/Inputs/RichTextEditor/extensions.js +34 -0
- package/dist/Forms/Inputs/RichTextEditor/useRichTextAdapter.js +67 -0
- package/dist/Forms/Inputs/RichTextEditor/useRichTextToolbar.js +10 -0
- package/dist/Forms/Inputs/SearchBar/SearchBar.js +105 -0
- package/dist/Forms/Inputs/SearchBar/SearchBar.module.css.js +14 -0
- package/dist/Forms/Inputs/SearchBar/index.js +20 -0
- package/dist/Forms/Inputs/SearchPanel/SearchPanel.js +34 -0
- package/dist/Forms/Inputs/SearchPanel/SearchPanel.module.css.js +7 -0
- package/dist/Forms/Inputs/SearchPanel/SearchPanelEmpty.js +17 -0
- package/dist/Forms/Inputs/SearchPanel/SearchPanelGroup.js +21 -0
- package/dist/Forms/Inputs/SearchPanel/SearchPanelInput.js +9 -0
- package/dist/Forms/Inputs/SearchPanel/SearchPanelInput.module.css.js +7 -0
- package/dist/Forms/Inputs/SearchPanel/SearchPanelItem.js +27 -0
- package/dist/Forms/Inputs/SearchPanel/SearchPanelItem.module.css.js +7 -0
- package/dist/Forms/Inputs/SearchPanel/SearchPanelList.js +34 -0
- package/dist/Forms/Inputs/SearchPanel/context.js +15 -0
- package/dist/Forms/Inputs/Select/Select.js +53 -0
- package/dist/Forms/Inputs/Select/Select.module.css.js +7 -0
- package/dist/Forms/Inputs/Select/SelectContent.js +34 -0
- package/dist/Forms/Inputs/Select/SelectGroup.js +22 -0
- package/dist/Forms/Inputs/Select/SelectItem.js +36 -0
- package/dist/Forms/Inputs/Select/SelectSeparator.js +18 -0
- package/dist/Forms/Inputs/Select/SelectTrigger.js +54 -0
- package/dist/Forms/Inputs/Select/SelectTrigger.module.css.js +13 -0
- package/dist/Forms/Inputs/Select/context.js +12 -0
- package/dist/Forms/Inputs/Textarea/Textarea.js +92 -0
- package/dist/Forms/Inputs/Textarea/Textarea.module.css.js +9 -0
- package/dist/Forms/Inputs/TimePicker/TimePicker.js +71 -0
- package/dist/Forms/Inputs/TimePicker/TimePicker.module.css.js +7 -0
- package/dist/Forms/Inputs/TimePicker/TimePickerField.js +82 -0
- package/dist/Forms/Inputs/TimePicker/TimePickerField.module.css.js +17 -0
- package/dist/Forms/Inputs/TimePicker/TimePickerList.js +64 -0
- package/dist/Forms/Inputs/TimePicker/TimePickerList.module.css.js +7 -0
- package/dist/Forms/Inputs/TimePicker/TimePickerWheel.js +39 -0
- package/dist/Forms/Inputs/TimePicker/TimePickerWheel.module.css.js +11 -0
- package/dist/Forms/Inputs/TimePicker/TimePickerWheelColumn.js +77 -0
- package/dist/Forms/Inputs/TimePicker/TimePickerWheelColumn.module.css.js +11 -0
- package/dist/Forms/Inputs/TimePicker/time.js +42 -0
- package/dist/Forms/Inputs/TimePicker/useTimeField.js +180 -0
- package/dist/Forms/Inputs/TimePicker/useTimeList.js +94 -0
- package/dist/Forms/Inputs/TimePicker/useTimePicker.js +16 -0
- package/dist/Forms/Inputs/TimePicker/useWheelColumn.js +126 -0
- package/dist/Forms/Inputs/Toggle/Checkbox/Checkbox.js +46 -0
- package/dist/Forms/Inputs/Toggle/Checkbox/Checkbox.module.css.js +19 -0
- package/dist/Forms/Inputs/Toggle/RadioButton/RadioButton.js +19 -0
- package/dist/Forms/Inputs/Toggle/RadioButton/RadioButton.module.css.js +11 -0
- package/dist/Forms/Inputs/Toggle/RadioButton/RadioGroup.js +28 -0
- package/dist/Forms/Inputs/Toggle/RadioButton/RadioGroup.module.css.js +11 -0
- package/dist/Forms/Inputs/Toggle/Switch/Switch.js +67 -0
- package/dist/Forms/Inputs/Toggle/Switch/Switch.module.css.js +23 -0
- package/dist/Forms/Inputs/Toggle/Switch/constants.js +4 -0
- package/dist/Forms/Inputs/Toggle/ToggleDescription/ToggleDescription.js +26 -0
- package/dist/Forms/Inputs/Toggle/ToggleDescription/ToggleDescription.module.css.js +13 -0
- package/dist/Forms/Inputs/Toggle/ToggleGroup/ToggleGroup.js +28 -0
- package/dist/Forms/Inputs/Toggle/ToggleGroup/ToggleGroup.module.css.js +17 -0
- package/dist/Forms/Inputs/Toggle/ToggleLabel/ToggleLabel.js +24 -0
- package/dist/Forms/Inputs/Toggle/ToggleLabel/ToggleLabel.module.css.js +7 -0
- package/dist/Forms/Inputs/inputSize.js +10 -0
- package/dist/Layout/Card/Card.js +35 -0
- package/dist/Layout/Card/Card.module.css.js +10 -0
- package/dist/Layout/Card/index.js +16 -0
- package/dist/Layout/CardStack/CardStack.js +82 -0
- package/dist/Layout/CardStack/CardStack.module.css.js +25 -0
- package/dist/Layout/CardStack/index.js +17 -0
- package/dist/Layout/Divider/Divider.js +31 -0
- package/dist/Layout/Divider/Divider.module.css.js +7 -0
- package/dist/Layout/Resizable/Resizable.js +30 -0
- package/dist/Layout/Resizable/Resizable.module.css.js +7 -0
- package/dist/Layout/Resizable/ResizableHandle.js +33 -0
- package/dist/Layout/Resizable/ResizableHandle.module.css.js +11 -0
- package/dist/Layout/Resizable/ResizablePanel.js +20 -0
- package/dist/Layout/Resizable/ResizablePanel.module.css.js +7 -0
- package/dist/Layout/Scrollbar/Scrollbar.js +46 -0
- package/dist/Layout/Scrollbar/Scrollbar.module.css.js +10 -0
- package/dist/Layout/Scrollbar/useScrollbar.js +62 -0
- package/dist/Locale/LocaleProvider/LocaleProvider.js +16 -0
- package/dist/Locale/messages.js +37 -0
- package/dist/Locale/useLocale.js +14 -0
- package/dist/Locale/useTranslate.js +19 -0
- package/dist/Navigation/Accordion/Accordion.js +18 -0
- package/dist/Navigation/Accordion/Accordion.module.css.js +7 -0
- package/dist/Navigation/Accordion/AccordionContent.js +19 -0
- package/dist/Navigation/Accordion/AccordionContent.module.css.js +9 -0
- package/dist/Navigation/Accordion/AccordionItem.js +18 -0
- package/dist/Navigation/Accordion/AccordionItem.module.css.js +7 -0
- package/dist/Navigation/Accordion/AccordionTrigger.js +24 -0
- package/dist/Navigation/Accordion/AccordionTrigger.module.css.js +11 -0
- package/dist/Navigation/Breadcrumb/Breadcrumb.js +24 -0
- package/dist/Navigation/Breadcrumb/Breadcrumb.module.css.js +7 -0
- package/dist/Navigation/Breadcrumb/BreadcrumbEllipsis.js +48 -0
- package/dist/Navigation/Breadcrumb/BreadcrumbEllipsis.module.css.js +11 -0
- package/dist/Navigation/Breadcrumb/BreadcrumbItem.js +19 -0
- package/dist/Navigation/Breadcrumb/BreadcrumbItem.module.css.js +7 -0
- package/dist/Navigation/Breadcrumb/BreadcrumbLink.js +23 -0
- package/dist/Navigation/Breadcrumb/BreadcrumbLink.module.css.js +9 -0
- package/dist/Navigation/Breadcrumb/BreadcrumbList.js +19 -0
- package/dist/Navigation/Breadcrumb/BreadcrumbList.module.css.js +7 -0
- package/dist/Navigation/Breadcrumb/BreadcrumbPage.js +22 -0
- package/dist/Navigation/Breadcrumb/BreadcrumbPage.module.css.js +7 -0
- package/dist/Navigation/Breadcrumb/BreadcrumbSeparator.js +37 -0
- package/dist/Navigation/Breadcrumb/BreadcrumbSeparator.module.css.js +9 -0
- package/dist/Navigation/DropdownMenu/DropdownMenu.js +22 -0
- package/dist/Navigation/DropdownMenu/DropdownMenuCheckboxItem.js +49 -0
- package/dist/Navigation/DropdownMenu/DropdownMenuCheckboxItem.module.css.js +7 -0
- package/dist/Navigation/DropdownMenu/DropdownMenuContent.js +35 -0
- package/dist/Navigation/DropdownMenu/DropdownMenuContent.module.css.js +7 -0
- package/dist/Navigation/DropdownMenu/DropdownMenuGroup.js +16 -0
- package/dist/Navigation/DropdownMenu/DropdownMenuItem.js +30 -0
- package/dist/Navigation/DropdownMenu/DropdownMenuLabel.js +23 -0
- package/dist/Navigation/DropdownMenu/DropdownMenuLabel.module.css.js +9 -0
- package/dist/Navigation/DropdownMenu/DropdownMenuRadioGroup.js +23 -0
- package/dist/Navigation/DropdownMenu/DropdownMenuRadioItem.js +31 -0
- package/dist/Navigation/DropdownMenu/DropdownMenuRadioItem.module.css.js +7 -0
- package/dist/Navigation/DropdownMenu/DropdownMenuSeparator.js +18 -0
- package/dist/Navigation/DropdownMenu/DropdownMenuShortcut.js +19 -0
- package/dist/Navigation/DropdownMenu/DropdownMenuShortcut.module.css.js +7 -0
- package/dist/Navigation/DropdownMenu/DropdownMenuSub.js +20 -0
- package/dist/Navigation/DropdownMenu/DropdownMenuSubContent.js +33 -0
- package/dist/Navigation/DropdownMenu/DropdownMenuSubContent.module.css.js +7 -0
- package/dist/Navigation/DropdownMenu/DropdownMenuSubTrigger.js +35 -0
- package/dist/Navigation/DropdownMenu/DropdownMenuSubTrigger.module.css.js +7 -0
- package/dist/Navigation/DropdownMenu/DropdownMenuTrigger.js +19 -0
- package/dist/Navigation/PageControl/PageControl.js +55 -0
- package/dist/Navigation/PageControl/PageControl.module.css.js +11 -0
- package/dist/Navigation/PageControl/index.js +21 -0
- package/dist/Navigation/Stepper/Stepper.js +79 -0
- package/dist/Navigation/Stepper/Stepper.module.css.js +17 -0
- package/dist/Navigation/Stepper/StepperItem.js +75 -0
- package/dist/Navigation/Stepper/StepperItem.module.css.js +25 -0
- package/dist/Navigation/Stepper/StepperSubsteps.js +39 -0
- package/dist/Navigation/Stepper/StepperSubsteps.module.css.js +9 -0
- package/dist/Navigation/Stepper/useStepper.js +13 -0
- package/dist/Navigation/Stepper/useStepperPill.js +46 -0
- package/dist/Navigation/Tabs/Tabs.js +39 -0
- package/dist/Navigation/Tabs/Tabs.module.css.js +7 -0
- package/dist/Navigation/Tabs/TabsContent.js +19 -0
- package/dist/Navigation/Tabs/TabsContent.module.css.js +7 -0
- package/dist/Navigation/Tabs/TabsList.js +20 -0
- package/dist/Navigation/Tabs/TabsList.module.css.js +7 -0
- package/dist/Navigation/Tabs/TabsTrigger.js +19 -0
- package/dist/Navigation/Tabs/TabsTrigger.module.css.js +7 -0
- package/dist/Navigation/ToggleTabs/ToggleTabs.js +20 -0
- package/dist/Navigation/ToggleTabs/ToggleTabs.module.css.js +7 -0
- package/dist/Navigation/ToggleTabs/ToggleTabsContent.js +18 -0
- package/dist/Navigation/ToggleTabs/ToggleTabsContent.module.css.js +7 -0
- package/dist/Navigation/ToggleTabs/ToggleTabsList.js +42 -0
- package/dist/Navigation/ToggleTabs/ToggleTabsList.module.css.js +9 -0
- package/dist/Navigation/ToggleTabs/ToggleTabsTrigger.js +18 -0
- package/dist/Navigation/ToggleTabs/ToggleTabsTrigger.module.css.js +7 -0
- package/dist/Navigation/ToggleTabs/useToggleTabsPill.js +46 -0
- package/dist/Transitions/TransitionBase.js +41 -0
- package/dist/Transitions/TransitionBounce/TransitionBounce.js +28 -0
- package/dist/Transitions/TransitionExpand/TransitionExpand.js +33 -0
- package/dist/Transitions/TransitionFade/TransitionFade.js +28 -0
- package/dist/Transitions/TransitionFlip/TransitionFlip.js +33 -0
- package/dist/Transitions/TransitionReveal/TransitionReveal.js +35 -0
- package/dist/Transitions/TransitionSlideX/TransitionSlideX.js +34 -0
- package/dist/Transitions/TransitionSlideY/TransitionSlideY.js +34 -0
- package/dist/assets/images/sesame-logo-white.svg.js +4 -0
- package/dist/hooks/useAutoGrow/useAutoGrow.js +34 -0
- package/dist/hooks/useSearchDebounce/useSearchDebounce.js +30 -0
- package/dist/internal/AttachmentMedia/AttachmentMedia.js +63 -0
- package/dist/internal/AttachmentMedia/AttachmentMedia.module.css.js +9 -0
- package/dist/internal/AttachmentMedia/index.js +18 -0
- package/dist/internal/Listbox/ListboxEmpty.js +11 -0
- package/dist/internal/Listbox/ListboxEmpty.module.css.js +7 -0
- package/dist/internal/Listbox/ListboxItem.js +26 -0
- package/dist/internal/Listbox/ListboxItem.module.css.js +11 -0
- package/dist/internal/Listbox/ListboxLabel.js +11 -0
- package/dist/internal/Listbox/ListboxLabel.module.css.js +7 -0
- package/dist/internal/Listbox/ListboxSeparator.js +16 -0
- package/dist/internal/Listbox/ListboxSeparator.module.css.js +7 -0
- package/dist/internal/Listbox/ListboxViewport.js +19 -0
- package/dist/internal/Listbox/ListboxViewport.module.css.js +7 -0
- package/dist/internal/Menu/MenuItem.js +27 -0
- package/dist/internal/Menu/MenuItem.module.css.js +13 -0
- package/dist/internal/Surface/Surface.js +24 -0
- package/dist/internal/Surface/Surface.module.css.js +11 -0
- package/dist/lib/cssModules.js +4 -0
- package/dist/lib/utils.js +8 -0
- package/dist/main.js +616 -0
- package/dist/react-design-system.css +1 -1
- package/dist/translations/ca.json.js +66 -0
- package/dist/translations/de.json.js +80 -0
- package/dist/translations/en.json.js +80 -0
- package/dist/translations/es-MX.json.js +79 -0
- package/dist/translations/es.json.js +80 -0
- package/dist/translations/fr.json.js +80 -0
- package/dist/translations/it.json.js +80 -0
- package/dist/translations/nl.json.js +38 -0
- package/dist/translations/pl.json.js +80 -0
- package/dist/translations/pt-BR.json.js +80 -0
- package/dist/translations/pt.json.js +80 -0
- package/package.json +7 -5
- package/dist/react-design-system.js +0 -40680
- package/dist/react-design-system.umd.cjs +0 -392
|
@@ -1,392 +0,0 @@
|
|
|
1
|
-
(function(I,h){typeof exports=="object"&&typeof module<"u"?h(exports,require("react"),require("react/jsx-runtime"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","react/jsx-runtime","react-dom"],h):(I=typeof globalThis<"u"?globalThis:I||self,h(I.SesameReactDesignSystem={},I.React,I.jsxRuntime,I.ReactDOM))})(this,(function(I,h,u,vt){"use strict";var mE=I=>{throw TypeError(I)};var xE=(I,h,u)=>h.has(I)||mE("Cannot "+u);var pe=(I,h,u)=>(xE(I,h,"read from private field"),u?u.call(I):h.get(I)),Cu=(I,h,u)=>h.has(I)?mE("Cannot add the same private member more than once"):h instanceof WeakSet?h.add(I):h.set(I,u),Sr=(I,h,u,vt)=>(xE(I,h,"write to private field"),vt?vt.call(I,u):h.set(I,u),u);var Qe,Wt,gE,et,Rt,Xe,Gt;function fm(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const o in e)if(o!=="default"){const n=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(t,o,n.get?n:{enumerable:!0,get:()=>e[o]})}}return t.default=e,Object.freeze(t)}const v=fm(h),no=fm(vt);function pm(e){var t,o,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var r=e.length;for(t=0;t<r;t++)e[t]&&(o=pm(e[t]))&&(n&&(n+=" "),n+=o)}else for(o in e)e[o]&&(n&&(n+=" "),n+=o);return n}function hm(){for(var e,t,o=0,n="",r=arguments.length;o<r;o++)(e=arguments[o])&&(t=pm(e))&&(n&&(n+=" "),n+=t);return n}const _u="-",bE=e=>{const t=yE(e),{conflictingClassGroups:o,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:s=>{const i=s.split(_u);return i[0]===""&&i.length!==1&&i.shift(),gm(i,t)||vE(s)},getConflictingClassGroupIds:(s,i)=>{const l=o[s]||[];return i&&n[s]?[...l,...n[s]]:l}}},gm=(e,t)=>{var s;if(e.length===0)return t.classGroupId;const o=e[0],n=t.nextPart.get(o),r=n?gm(e.slice(1),n):void 0;if(r)return r;if(t.validators.length===0)return;const a=e.join(_u);return(s=t.validators.find(({validator:i})=>i(a)))==null?void 0:s.classGroupId},mm=/^\[(.+)\]$/,vE=e=>{if(mm.test(e)){const t=mm.exec(e)[1],o=t==null?void 0:t.substring(0,t.indexOf(":"));if(o)return"arbitrary.."+o}},yE=e=>{const{theme:t,classGroups:o}=e,n={nextPart:new Map,validators:[]};for(const r in o)Su(o[r],n,r,t);return n},Su=(e,t,o,n)=>{e.forEach(r=>{if(typeof r=="string"){const a=r===""?t:xm(t,r);a.classGroupId=o;return}if(typeof r=="function"){if(wE(r)){Su(r(n),t,o,n);return}t.validators.push({validator:r,classGroupId:o});return}Object.entries(r).forEach(([a,s])=>{Su(s,xm(t,a),o,n)})})},xm=(e,t)=>{let o=e;return t.split(_u).forEach(n=>{o.nextPart.has(n)||o.nextPart.set(n,{nextPart:new Map,validators:[]}),o=o.nextPart.get(n)}),o},wE=e=>e.isThemeGetter,CE=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,o=new Map,n=new Map;const r=(a,s)=>{o.set(a,s),t++,t>e&&(t=0,n=o,o=new Map)};return{get(a){let s=o.get(a);if(s!==void 0)return s;if((s=n.get(a))!==void 0)return r(a,s),s},set(a,s){o.has(a)?o.set(a,s):r(a,s)}}},Pu="!",Tu=":",_E=Tu.length,SE=e=>{const{prefix:t,experimentalParseClassName:o}=e;let n=r=>{const a=[];let s=0,i=0,l=0,c;for(let x=0;x<r.length;x++){let m=r[x];if(s===0&&i===0){if(m===Tu){a.push(r.slice(l,x)),l=x+_E;continue}if(m==="/"){c=x;continue}}m==="["?s++:m==="]"?s--:m==="("?i++:m===")"&&i--}const d=a.length===0?r:r.substring(l),f=PE(d),p=f!==d,g=c&&c>l?c-l:void 0;return{modifiers:a,hasImportantModifier:p,baseClassName:f,maybePostfixModifierPosition:g}};if(t){const r=t+Tu,a=n;n=s=>s.startsWith(r)?a(s.substring(r.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:s,maybePostfixModifierPosition:void 0}}if(o){const r=n;n=a=>o({className:a,parseClassName:r})}return n},PE=e=>e.endsWith(Pu)?e.substring(0,e.length-1):e.startsWith(Pu)?e.substring(1):e,TE=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(n=>[n,!0]));return n=>{if(n.length<=1)return n;const r=[];let a=[];return n.forEach(s=>{s[0]==="["||t[s]?(r.push(...a.sort(),s),a=[]):a.push(s)}),r.push(...a.sort()),r}},kE=e=>({cache:CE(e.cacheSize),parseClassName:SE(e),sortModifiers:TE(e),...bE(e)}),EE=/\s+/,IE=(e,t)=>{const{parseClassName:o,getClassGroupId:n,getConflictingClassGroupIds:r,sortModifiers:a}=t,s=[],i=e.trim().split(EE);let l="";for(let c=i.length-1;c>=0;c-=1){const d=i[c],{isExternal:f,modifiers:p,hasImportantModifier:g,baseClassName:x,maybePostfixModifierPosition:m}=o(d);if(f){l=d+(l.length>0?" "+l:l);continue}let b=!!m,y=n(b?x.substring(0,m):x);if(!y){if(!b){l=d+(l.length>0?" "+l:l);continue}if(y=n(x),!y){l=d+(l.length>0?" "+l:l);continue}b=!1}const C=a(p).join(":"),w=g?C+Pu:C,P=w+y;if(s.includes(P))continue;s.push(P);const S=r(y,b);for(let _=0;_<S.length;++_){const T=S[_];s.push(w+T)}l=d+(l.length>0?" "+l:l)}return l};function DE(){let e=0,t,o,n="";for(;e<arguments.length;)(t=arguments[e++])&&(o=bm(t))&&(n&&(n+=" "),n+=o);return n}const bm=e=>{if(typeof e=="string")return e;let t,o="";for(let n=0;n<e.length;n++)e[n]&&(t=bm(e[n]))&&(o&&(o+=" "),o+=t);return o};function ME(e,...t){let o,n,r,a=s;function s(l){const c=t.reduce((d,f)=>f(d),e());return o=kE(c),n=o.cache.get,r=o.cache.set,a=i,i(l)}function i(l){const c=n(l);if(c)return c;const d=IE(l,o);return r(l,d),d}return function(){return a(DE.apply(null,arguments))}}const tt=e=>{const t=o=>o[e]||[];return t.isThemeGetter=!0,t},vm=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,ym=/^\((?:(\w[\w-]*):)?(.+)\)$/i,OE=/^\d+\/\d+$/,AE=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,NE=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,$E=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,FE=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,LE=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Pr=e=>OE.test(e),Se=e=>!!e&&!Number.isNaN(Number(e)),hn=e=>!!e&&Number.isInteger(Number(e)),ku=e=>e.endsWith("%")&&Se(e.slice(0,-1)),Bo=e=>AE.test(e),zE=()=>!0,BE=e=>NE.test(e)&&!$E.test(e),wm=()=>!1,HE=e=>FE.test(e),VE=e=>LE.test(e),WE=e=>!re(e)&&!ae(e),RE=e=>Tr(e,Tm,wm),re=e=>vm.test(e),Wn=e=>Tr(e,km,BE),Eu=e=>Tr(e,YE,Se),Cm=e=>Tr(e,Sm,wm),GE=e=>Tr(e,Pm,VE),_i=e=>Tr(e,Em,HE),ae=e=>ym.test(e),Va=e=>kr(e,km),jE=e=>kr(e,KE),_m=e=>kr(e,Sm),UE=e=>kr(e,Tm),qE=e=>kr(e,Pm),Si=e=>kr(e,Em,!0),Tr=(e,t,o)=>{const n=vm.exec(e);return n?n[1]?t(n[1]):o(n[2]):!1},kr=(e,t,o=!1)=>{const n=ym.exec(e);return n?n[1]?t(n[1]):o:!1},Sm=e=>e==="position"||e==="percentage",Pm=e=>e==="image"||e==="url",Tm=e=>e==="length"||e==="size"||e==="bg-size",km=e=>e==="length",YE=e=>e==="number",KE=e=>e==="family-name",Em=e=>e==="shadow",XE=ME(()=>{const e=tt("color"),t=tt("font"),o=tt("text"),n=tt("font-weight"),r=tt("tracking"),a=tt("leading"),s=tt("breakpoint"),i=tt("container"),l=tt("spacing"),c=tt("radius"),d=tt("shadow"),f=tt("inset-shadow"),p=tt("text-shadow"),g=tt("drop-shadow"),x=tt("blur"),m=tt("perspective"),b=tt("aspect"),y=tt("ease"),C=tt("animate"),w=()=>["auto","avoid","all","avoid-page","page","left","right","column"],P=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],S=()=>[...P(),ae,re],_=()=>["auto","hidden","clip","visible","scroll"],T=()=>["auto","contain","none"],k=()=>[ae,re,l],E=()=>[Pr,"full","auto",...k()],D=()=>[hn,"none","subgrid",ae,re],O=()=>["auto",{span:["full",hn,ae,re]},hn,ae,re],N=()=>[hn,"auto",ae,re],z=()=>["auto","min","max","fr",ae,re],B=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],G=()=>["start","end","center","stretch","center-safe","end-safe"],R=()=>["auto",...k()],A=()=>[Pr,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...k()],F=()=>[e,ae,re],V=()=>[...P(),_m,Cm,{position:[ae,re]}],M=()=>["no-repeat",{repeat:["","x","y","space","round"]}],Y=()=>["auto","cover","contain",UE,RE,{size:[ae,re]}],H=()=>[ku,Va,Wn],L=()=>["","none","full",c,ae,re],q=()=>["",Se,Va,Wn],j=()=>["solid","dashed","dotted","double"],W=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],U=()=>[Se,ku,_m,Cm],K=()=>["","none",x,ae,re],J=()=>["none",Se,ae,re],Z=()=>["none",Se,ae,re],te=()=>[Se,ae,re],X=()=>[Pr,"full",...k()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Bo],breakpoint:[Bo],color:[zE],container:[Bo],"drop-shadow":[Bo],ease:["in","out","in-out"],font:[WE],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Bo],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Bo],shadow:[Bo],spacing:["px",Se],text:[Bo],"text-shadow":[Bo],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Pr,re,ae,b]}],container:["container"],columns:[{columns:[Se,re,ae,i]}],"break-after":[{"break-after":w()}],"break-before":[{"break-before":w()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:S()}],overflow:[{overflow:_()}],"overflow-x":[{"overflow-x":_()}],"overflow-y":[{"overflow-y":_()}],overscroll:[{overscroll:T()}],"overscroll-x":[{"overscroll-x":T()}],"overscroll-y":[{"overscroll-y":T()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:E()}],"inset-x":[{"inset-x":E()}],"inset-y":[{"inset-y":E()}],start:[{start:E()}],end:[{end:E()}],top:[{top:E()}],right:[{right:E()}],bottom:[{bottom:E()}],left:[{left:E()}],visibility:["visible","invisible","collapse"],z:[{z:[hn,"auto",ae,re]}],basis:[{basis:[Pr,"full","auto",i,...k()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Se,Pr,"auto","initial","none",re]}],grow:[{grow:["",Se,ae,re]}],shrink:[{shrink:["",Se,ae,re]}],order:[{order:[hn,"first","last","none",ae,re]}],"grid-cols":[{"grid-cols":D()}],"col-start-end":[{col:O()}],"col-start":[{"col-start":N()}],"col-end":[{"col-end":N()}],"grid-rows":[{"grid-rows":D()}],"row-start-end":[{row:O()}],"row-start":[{"row-start":N()}],"row-end":[{"row-end":N()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":z()}],"auto-rows":[{"auto-rows":z()}],gap:[{gap:k()}],"gap-x":[{"gap-x":k()}],"gap-y":[{"gap-y":k()}],"justify-content":[{justify:[...B(),"normal"]}],"justify-items":[{"justify-items":[...G(),"normal"]}],"justify-self":[{"justify-self":["auto",...G()]}],"align-content":[{content:["normal",...B()]}],"align-items":[{items:[...G(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...G(),{baseline:["","last"]}]}],"place-content":[{"place-content":B()}],"place-items":[{"place-items":[...G(),"baseline"]}],"place-self":[{"place-self":["auto",...G()]}],p:[{p:k()}],px:[{px:k()}],py:[{py:k()}],ps:[{ps:k()}],pe:[{pe:k()}],pt:[{pt:k()}],pr:[{pr:k()}],pb:[{pb:k()}],pl:[{pl:k()}],m:[{m:R()}],mx:[{mx:R()}],my:[{my:R()}],ms:[{ms:R()}],me:[{me:R()}],mt:[{mt:R()}],mr:[{mr:R()}],mb:[{mb:R()}],ml:[{ml:R()}],"space-x":[{"space-x":k()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":k()}],"space-y-reverse":["space-y-reverse"],size:[{size:A()}],w:[{w:[i,"screen",...A()]}],"min-w":[{"min-w":[i,"screen","none",...A()]}],"max-w":[{"max-w":[i,"screen","none","prose",{screen:[s]},...A()]}],h:[{h:["screen","lh",...A()]}],"min-h":[{"min-h":["screen","lh","none",...A()]}],"max-h":[{"max-h":["screen","lh",...A()]}],"font-size":[{text:["base",o,Va,Wn]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,ae,Eu]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",ku,re]}],"font-family":[{font:[jE,re,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[r,ae,re]}],"line-clamp":[{"line-clamp":[Se,"none",ae,Eu]}],leading:[{leading:[a,...k()]}],"list-image":[{"list-image":["none",ae,re]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",ae,re]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:F()}],"text-color":[{text:F()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...j(),"wavy"]}],"text-decoration-thickness":[{decoration:[Se,"from-font","auto",ae,Wn]}],"text-decoration-color":[{decoration:F()}],"underline-offset":[{"underline-offset":[Se,"auto",ae,re]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:k()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ae,re]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",ae,re]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:V()}],"bg-repeat":[{bg:M()}],"bg-size":[{bg:Y()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},hn,ae,re],radial:["",ae,re],conic:[hn,ae,re]},qE,GE]}],"bg-color":[{bg:F()}],"gradient-from-pos":[{from:H()}],"gradient-via-pos":[{via:H()}],"gradient-to-pos":[{to:H()}],"gradient-from":[{from:F()}],"gradient-via":[{via:F()}],"gradient-to":[{to:F()}],rounded:[{rounded:L()}],"rounded-s":[{"rounded-s":L()}],"rounded-e":[{"rounded-e":L()}],"rounded-t":[{"rounded-t":L()}],"rounded-r":[{"rounded-r":L()}],"rounded-b":[{"rounded-b":L()}],"rounded-l":[{"rounded-l":L()}],"rounded-ss":[{"rounded-ss":L()}],"rounded-se":[{"rounded-se":L()}],"rounded-ee":[{"rounded-ee":L()}],"rounded-es":[{"rounded-es":L()}],"rounded-tl":[{"rounded-tl":L()}],"rounded-tr":[{"rounded-tr":L()}],"rounded-br":[{"rounded-br":L()}],"rounded-bl":[{"rounded-bl":L()}],"border-w":[{border:q()}],"border-w-x":[{"border-x":q()}],"border-w-y":[{"border-y":q()}],"border-w-s":[{"border-s":q()}],"border-w-e":[{"border-e":q()}],"border-w-t":[{"border-t":q()}],"border-w-r":[{"border-r":q()}],"border-w-b":[{"border-b":q()}],"border-w-l":[{"border-l":q()}],"divide-x":[{"divide-x":q()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":q()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...j(),"hidden","none"]}],"divide-style":[{divide:[...j(),"hidden","none"]}],"border-color":[{border:F()}],"border-color-x":[{"border-x":F()}],"border-color-y":[{"border-y":F()}],"border-color-s":[{"border-s":F()}],"border-color-e":[{"border-e":F()}],"border-color-t":[{"border-t":F()}],"border-color-r":[{"border-r":F()}],"border-color-b":[{"border-b":F()}],"border-color-l":[{"border-l":F()}],"divide-color":[{divide:F()}],"outline-style":[{outline:[...j(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Se,ae,re]}],"outline-w":[{outline:["",Se,Va,Wn]}],"outline-color":[{outline:F()}],shadow:[{shadow:["","none",d,Si,_i]}],"shadow-color":[{shadow:F()}],"inset-shadow":[{"inset-shadow":["none",f,Si,_i]}],"inset-shadow-color":[{"inset-shadow":F()}],"ring-w":[{ring:q()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:F()}],"ring-offset-w":[{"ring-offset":[Se,Wn]}],"ring-offset-color":[{"ring-offset":F()}],"inset-ring-w":[{"inset-ring":q()}],"inset-ring-color":[{"inset-ring":F()}],"text-shadow":[{"text-shadow":["none",p,Si,_i]}],"text-shadow-color":[{"text-shadow":F()}],opacity:[{opacity:[Se,ae,re]}],"mix-blend":[{"mix-blend":[...W(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":W()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[Se]}],"mask-image-linear-from-pos":[{"mask-linear-from":U()}],"mask-image-linear-to-pos":[{"mask-linear-to":U()}],"mask-image-linear-from-color":[{"mask-linear-from":F()}],"mask-image-linear-to-color":[{"mask-linear-to":F()}],"mask-image-t-from-pos":[{"mask-t-from":U()}],"mask-image-t-to-pos":[{"mask-t-to":U()}],"mask-image-t-from-color":[{"mask-t-from":F()}],"mask-image-t-to-color":[{"mask-t-to":F()}],"mask-image-r-from-pos":[{"mask-r-from":U()}],"mask-image-r-to-pos":[{"mask-r-to":U()}],"mask-image-r-from-color":[{"mask-r-from":F()}],"mask-image-r-to-color":[{"mask-r-to":F()}],"mask-image-b-from-pos":[{"mask-b-from":U()}],"mask-image-b-to-pos":[{"mask-b-to":U()}],"mask-image-b-from-color":[{"mask-b-from":F()}],"mask-image-b-to-color":[{"mask-b-to":F()}],"mask-image-l-from-pos":[{"mask-l-from":U()}],"mask-image-l-to-pos":[{"mask-l-to":U()}],"mask-image-l-from-color":[{"mask-l-from":F()}],"mask-image-l-to-color":[{"mask-l-to":F()}],"mask-image-x-from-pos":[{"mask-x-from":U()}],"mask-image-x-to-pos":[{"mask-x-to":U()}],"mask-image-x-from-color":[{"mask-x-from":F()}],"mask-image-x-to-color":[{"mask-x-to":F()}],"mask-image-y-from-pos":[{"mask-y-from":U()}],"mask-image-y-to-pos":[{"mask-y-to":U()}],"mask-image-y-from-color":[{"mask-y-from":F()}],"mask-image-y-to-color":[{"mask-y-to":F()}],"mask-image-radial":[{"mask-radial":[ae,re]}],"mask-image-radial-from-pos":[{"mask-radial-from":U()}],"mask-image-radial-to-pos":[{"mask-radial-to":U()}],"mask-image-radial-from-color":[{"mask-radial-from":F()}],"mask-image-radial-to-color":[{"mask-radial-to":F()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":P()}],"mask-image-conic-pos":[{"mask-conic":[Se]}],"mask-image-conic-from-pos":[{"mask-conic-from":U()}],"mask-image-conic-to-pos":[{"mask-conic-to":U()}],"mask-image-conic-from-color":[{"mask-conic-from":F()}],"mask-image-conic-to-color":[{"mask-conic-to":F()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:V()}],"mask-repeat":[{mask:M()}],"mask-size":[{mask:Y()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",ae,re]}],filter:[{filter:["","none",ae,re]}],blur:[{blur:K()}],brightness:[{brightness:[Se,ae,re]}],contrast:[{contrast:[Se,ae,re]}],"drop-shadow":[{"drop-shadow":["","none",g,Si,_i]}],"drop-shadow-color":[{"drop-shadow":F()}],grayscale:[{grayscale:["",Se,ae,re]}],"hue-rotate":[{"hue-rotate":[Se,ae,re]}],invert:[{invert:["",Se,ae,re]}],saturate:[{saturate:[Se,ae,re]}],sepia:[{sepia:["",Se,ae,re]}],"backdrop-filter":[{"backdrop-filter":["","none",ae,re]}],"backdrop-blur":[{"backdrop-blur":K()}],"backdrop-brightness":[{"backdrop-brightness":[Se,ae,re]}],"backdrop-contrast":[{"backdrop-contrast":[Se,ae,re]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Se,ae,re]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Se,ae,re]}],"backdrop-invert":[{"backdrop-invert":["",Se,ae,re]}],"backdrop-opacity":[{"backdrop-opacity":[Se,ae,re]}],"backdrop-saturate":[{"backdrop-saturate":[Se,ae,re]}],"backdrop-sepia":[{"backdrop-sepia":["",Se,ae,re]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":k()}],"border-spacing-x":[{"border-spacing-x":k()}],"border-spacing-y":[{"border-spacing-y":k()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",ae,re]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Se,"initial",ae,re]}],ease:[{ease:["linear","initial",y,ae,re]}],delay:[{delay:[Se,ae,re]}],animate:[{animate:["none",C,ae,re]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[m,ae,re]}],"perspective-origin":[{"perspective-origin":S()}],rotate:[{rotate:J()}],"rotate-x":[{"rotate-x":J()}],"rotate-y":[{"rotate-y":J()}],"rotate-z":[{"rotate-z":J()}],scale:[{scale:Z()}],"scale-x":[{"scale-x":Z()}],"scale-y":[{"scale-y":Z()}],"scale-z":[{"scale-z":Z()}],"scale-3d":["scale-3d"],skew:[{skew:te()}],"skew-x":[{"skew-x":te()}],"skew-y":[{"skew-y":te()}],transform:[{transform:[ae,re,"","none","gpu","cpu"]}],"transform-origin":[{origin:S()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:X()}],"translate-x":[{"translate-x":X()}],"translate-y":[{"translate-y":X()}],"translate-z":[{"translate-z":X()}],"translate-none":["translate-none"],accent:[{accent:F()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:F()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",ae,re]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":k()}],"scroll-mx":[{"scroll-mx":k()}],"scroll-my":[{"scroll-my":k()}],"scroll-ms":[{"scroll-ms":k()}],"scroll-me":[{"scroll-me":k()}],"scroll-mt":[{"scroll-mt":k()}],"scroll-mr":[{"scroll-mr":k()}],"scroll-mb":[{"scroll-mb":k()}],"scroll-ml":[{"scroll-ml":k()}],"scroll-p":[{"scroll-p":k()}],"scroll-px":[{"scroll-px":k()}],"scroll-py":[{"scroll-py":k()}],"scroll-ps":[{"scroll-ps":k()}],"scroll-pe":[{"scroll-pe":k()}],"scroll-pt":[{"scroll-pt":k()}],"scroll-pr":[{"scroll-pr":k()}],"scroll-pb":[{"scroll-pb":k()}],"scroll-pl":[{"scroll-pl":k()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",ae,re]}],fill:[{fill:["none",...F()]}],"stroke-w":[{stroke:[Se,Va,Wn,Eu]}],stroke:[{stroke:["none",...F()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}});function $(...e){return XE(hm(e))}const ZE=1.25,JE=e=>{const t=Number.parseFloat(e.lineHeight);if(Number.isFinite(t))return t;const o=Number.parseFloat(e.fontSize);return Number.isFinite(o)?o*ZE:Number.NaN},QE=e=>{const t=o=>{const n=Number.parseFloat(o);return Number.isFinite(n)?n:0};return t(e.paddingTop)+t(e.paddingBottom)},Iu=(e,t,o)=>{const n=h.useRef(null),r=h.useRef(!1),a=h.useCallback(()=>{const s=e.current;if(!s||r.current)return;s.style.height="auto";const i=globalThis.getComputedStyle(s),l=JE(i)*o+QE(i),c=Number.isFinite(l)&&s.scrollHeight>l;s.style.height=`${c?l:s.scrollHeight}px`,s.style.overflowY=c?"auto":"hidden",n.current=s.offsetHeight},[e,o]);return h.useLayoutEffect(()=>{a()},[a,t]),h.useEffect(()=>{const s=e.current;if(!s||typeof ResizeObserver>"u")return;const i=new ResizeObserver(()=>{r.current||n.current===null||Math.abs(s.offsetHeight-n.current)<=1||(r.current=!0,s.style.overflowY="auto")});return i.observe(s),()=>i.disconnect()},[e]),{resize:a}},Du=(e,t)=>{const o=h.useRef(void 0),n=h.useRef({debounce:e,emit:t});h.useEffect(()=>{n.current={debounce:e,emit:t}});const r=h.useCallback(()=>{o.current!==void 0&&(clearTimeout(o.current),o.current=void 0)},[]),a=h.useCallback(i=>{r(),n.current.emit(i)},[r]),s=h.useCallback(i=>{if(r(),n.current.debounce<=0){n.current.emit(i);return}o.current=setTimeout(()=>{o.current=void 0,n.current.emit(i)},n.current.debounce)},[r]);return h.useEffect(()=>r,[r]),{schedule:s,immediately:a,cancel:r}};function Wa(){return Wa=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)({}).hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},Wa.apply(null,arguments)}function Mu(e,t){if(e==null)return{};var o={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;o[n]=e[n]}return o}function Ou(e,t){return Ou=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(o,n){return o.__proto__=n,o},Ou(e,t)}function Au(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Ou(e,t)}function eI(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Pi={exports:{}},Ti={exports:{}},Ne={};/** @license React v16.13.1
|
|
2
|
-
* react-is.production.min.js
|
|
3
|
-
*
|
|
4
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
5
|
-
*
|
|
6
|
-
* This source code is licensed under the MIT license found in the
|
|
7
|
-
* LICENSE file in the root directory of this source tree.
|
|
8
|
-
*/var Im;function tI(){if(Im)return Ne;Im=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,o=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,r=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,i=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,g=e?Symbol.for("react.memo"):60115,x=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,b=e?Symbol.for("react.fundamental"):60117,y=e?Symbol.for("react.responder"):60118,C=e?Symbol.for("react.scope"):60119;function w(S){if(typeof S=="object"&&S!==null){var _=S.$$typeof;switch(_){case t:switch(S=S.type,S){case l:case c:case n:case a:case r:case f:return S;default:switch(S=S&&S.$$typeof,S){case i:case d:case x:case g:case s:return S;default:return _}}case o:return _}}}function P(S){return w(S)===c}return Ne.AsyncMode=l,Ne.ConcurrentMode=c,Ne.ContextConsumer=i,Ne.ContextProvider=s,Ne.Element=t,Ne.ForwardRef=d,Ne.Fragment=n,Ne.Lazy=x,Ne.Memo=g,Ne.Portal=o,Ne.Profiler=a,Ne.StrictMode=r,Ne.Suspense=f,Ne.isAsyncMode=function(S){return P(S)||w(S)===l},Ne.isConcurrentMode=P,Ne.isContextConsumer=function(S){return w(S)===i},Ne.isContextProvider=function(S){return w(S)===s},Ne.isElement=function(S){return typeof S=="object"&&S!==null&&S.$$typeof===t},Ne.isForwardRef=function(S){return w(S)===d},Ne.isFragment=function(S){return w(S)===n},Ne.isLazy=function(S){return w(S)===x},Ne.isMemo=function(S){return w(S)===g},Ne.isPortal=function(S){return w(S)===o},Ne.isProfiler=function(S){return w(S)===a},Ne.isStrictMode=function(S){return w(S)===r},Ne.isSuspense=function(S){return w(S)===f},Ne.isValidElementType=function(S){return typeof S=="string"||typeof S=="function"||S===n||S===c||S===a||S===r||S===f||S===p||typeof S=="object"&&S!==null&&(S.$$typeof===x||S.$$typeof===g||S.$$typeof===s||S.$$typeof===i||S.$$typeof===d||S.$$typeof===b||S.$$typeof===y||S.$$typeof===C||S.$$typeof===m)},Ne.typeOf=w,Ne}var $e={};/** @license React v16.13.1
|
|
9
|
-
* react-is.development.js
|
|
10
|
-
*
|
|
11
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
12
|
-
*
|
|
13
|
-
* This source code is licensed under the MIT license found in the
|
|
14
|
-
* LICENSE file in the root directory of this source tree.
|
|
15
|
-
*/var Dm;function oI(){return Dm||(Dm=1,process.env.NODE_ENV!=="production"&&(function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,o=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,r=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,i=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,g=e?Symbol.for("react.memo"):60115,x=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,b=e?Symbol.for("react.fundamental"):60117,y=e?Symbol.for("react.responder"):60118,C=e?Symbol.for("react.scope"):60119;function w(X){return typeof X=="string"||typeof X=="function"||X===n||X===c||X===a||X===r||X===f||X===p||typeof X=="object"&&X!==null&&(X.$$typeof===x||X.$$typeof===g||X.$$typeof===s||X.$$typeof===i||X.$$typeof===d||X.$$typeof===b||X.$$typeof===y||X.$$typeof===C||X.$$typeof===m)}function P(X){if(typeof X=="object"&&X!==null){var Q=X.$$typeof;switch(Q){case t:var be=X.type;switch(be){case l:case c:case n:case a:case r:case f:return be;default:var De=be&&be.$$typeof;switch(De){case i:case d:case x:case g:case s:return De;default:return Q}}case o:return Q}}}var S=l,_=c,T=i,k=s,E=t,D=d,O=n,N=x,z=g,B=o,G=a,R=r,A=f,F=!1;function V(X){return F||(F=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),M(X)||P(X)===l}function M(X){return P(X)===c}function Y(X){return P(X)===i}function H(X){return P(X)===s}function L(X){return typeof X=="object"&&X!==null&&X.$$typeof===t}function q(X){return P(X)===d}function j(X){return P(X)===n}function W(X){return P(X)===x}function U(X){return P(X)===g}function K(X){return P(X)===o}function J(X){return P(X)===a}function Z(X){return P(X)===r}function te(X){return P(X)===f}$e.AsyncMode=S,$e.ConcurrentMode=_,$e.ContextConsumer=T,$e.ContextProvider=k,$e.Element=E,$e.ForwardRef=D,$e.Fragment=O,$e.Lazy=N,$e.Memo=z,$e.Portal=B,$e.Profiler=G,$e.StrictMode=R,$e.Suspense=A,$e.isAsyncMode=V,$e.isConcurrentMode=M,$e.isContextConsumer=Y,$e.isContextProvider=H,$e.isElement=L,$e.isForwardRef=q,$e.isFragment=j,$e.isLazy=W,$e.isMemo=U,$e.isPortal=K,$e.isProfiler=J,$e.isStrictMode=Z,$e.isSuspense=te,$e.isValidElementType=w,$e.typeOf=P})()),$e}var Mm;function Om(){return Mm||(Mm=1,process.env.NODE_ENV==="production"?Ti.exports=tI():Ti.exports=oI()),Ti.exports}/*
|
|
16
|
-
object-assign
|
|
17
|
-
(c) Sindre Sorhus
|
|
18
|
-
@license MIT
|
|
19
|
-
*/var Nu,Am;function nI(){if(Am)return Nu;Am=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable;function n(a){if(a==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(a)}function r(){try{if(!Object.assign)return!1;var a=new String("abc");if(a[5]="de",Object.getOwnPropertyNames(a)[0]==="5")return!1;for(var s={},i=0;i<10;i++)s["_"+String.fromCharCode(i)]=i;var l=Object.getOwnPropertyNames(s).map(function(d){return s[d]});if(l.join("")!=="0123456789")return!1;var c={};return"abcdefghijklmnopqrst".split("").forEach(function(d){c[d]=d}),Object.keys(Object.assign({},c)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Nu=r()?Object.assign:function(a,s){for(var i,l=n(a),c,d=1;d<arguments.length;d++){i=Object(arguments[d]);for(var f in i)t.call(i,f)&&(l[f]=i[f]);if(e){c=e(i);for(var p=0;p<c.length;p++)o.call(i,c[p])&&(l[c[p]]=i[c[p]])}}return l},Nu}var $u,Nm;function Fu(){if(Nm)return $u;Nm=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return $u=e,$u}var Lu,$m;function Fm(){return $m||($m=1,Lu=Function.call.bind(Object.prototype.hasOwnProperty)),Lu}var zu,Lm;function rI(){if(Lm)return zu;Lm=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Fu(),o={},n=Fm();e=function(a){var s="Warning: "+a;typeof console<"u"&&console.error(s);try{throw new Error(s)}catch{}}}function r(a,s,i,l,c){if(process.env.NODE_ENV!=="production"){for(var d in a)if(n(a,d)){var f;try{if(typeof a[d]!="function"){var p=Error((l||"React class")+": "+i+" type `"+d+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof a[d]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw p.name="Invariant Violation",p}f=a[d](s,d,l,i,null,t)}catch(x){f=x}if(f&&!(f instanceof Error)&&e((l||"React class")+": type specification of "+i+" `"+d+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof f+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),f instanceof Error&&!(f.message in o)){o[f.message]=!0;var g=c?c():"";e("Failed "+i+" type: "+f.message+(g??""))}}}}return r.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(o={})},zu=r,zu}var Bu,zm;function aI(){if(zm)return Bu;zm=1;var e=Om(),t=nI(),o=Fu(),n=Fm(),r=rI(),a=function(){};process.env.NODE_ENV!=="production"&&(a=function(i){var l="Warning: "+i;typeof console<"u"&&console.error(l);try{throw new Error(l)}catch{}});function s(){return null}return Bu=function(i,l){var c=typeof Symbol=="function"&&Symbol.iterator,d="@@iterator";function f(M){var Y=M&&(c&&M[c]||M[d]);if(typeof Y=="function")return Y}var p="<<anonymous>>",g={array:y("array"),bigint:y("bigint"),bool:y("boolean"),func:y("function"),number:y("number"),object:y("object"),string:y("string"),symbol:y("symbol"),any:C(),arrayOf:w,element:P(),elementType:S(),instanceOf:_,node:D(),objectOf:k,oneOf:T,oneOfType:E,shape:N,exact:z};function x(M,Y){return M===Y?M!==0||1/M===1/Y:M!==M&&Y!==Y}function m(M,Y){this.message=M,this.data=Y&&typeof Y=="object"?Y:{},this.stack=""}m.prototype=Error.prototype;function b(M){if(process.env.NODE_ENV!=="production")var Y={},H=0;function L(j,W,U,K,J,Z,te){if(K=K||p,Z=Z||U,te!==o){if(l){var X=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw X.name="Invariant Violation",X}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var Q=K+":"+U;!Y[Q]&&H<3&&(a("You are manually calling a React.PropTypes validation function for the `"+Z+"` prop on `"+K+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),Y[Q]=!0,H++)}}return W[U]==null?j?W[U]===null?new m("The "+J+" `"+Z+"` is marked as required "+("in `"+K+"`, but its value is `null`.")):new m("The "+J+" `"+Z+"` is marked as required in "+("`"+K+"`, but its value is `undefined`.")):null:M(W,U,K,J,Z)}var q=L.bind(null,!1);return q.isRequired=L.bind(null,!0),q}function y(M){function Y(H,L,q,j,W,U){var K=H[L],J=R(K);if(J!==M){var Z=A(K);return new m("Invalid "+j+" `"+W+"` of type "+("`"+Z+"` supplied to `"+q+"`, expected ")+("`"+M+"`."),{expectedType:M})}return null}return b(Y)}function C(){return b(s)}function w(M){function Y(H,L,q,j,W){if(typeof M!="function")return new m("Property `"+W+"` of component `"+q+"` has invalid PropType notation inside arrayOf.");var U=H[L];if(!Array.isArray(U)){var K=R(U);return new m("Invalid "+j+" `"+W+"` of type "+("`"+K+"` supplied to `"+q+"`, expected an array."))}for(var J=0;J<U.length;J++){var Z=M(U,J,q,j,W+"["+J+"]",o);if(Z instanceof Error)return Z}return null}return b(Y)}function P(){function M(Y,H,L,q,j){var W=Y[H];if(!i(W)){var U=R(W);return new m("Invalid "+q+" `"+j+"` of type "+("`"+U+"` supplied to `"+L+"`, expected a single ReactElement."))}return null}return b(M)}function S(){function M(Y,H,L,q,j){var W=Y[H];if(!e.isValidElementType(W)){var U=R(W);return new m("Invalid "+q+" `"+j+"` of type "+("`"+U+"` supplied to `"+L+"`, expected a single ReactElement type."))}return null}return b(M)}function _(M){function Y(H,L,q,j,W){if(!(H[L]instanceof M)){var U=M.name||p,K=V(H[L]);return new m("Invalid "+j+" `"+W+"` of type "+("`"+K+"` supplied to `"+q+"`, expected ")+("instance of `"+U+"`."))}return null}return b(Y)}function T(M){if(!Array.isArray(M))return process.env.NODE_ENV!=="production"&&(arguments.length>1?a("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):a("Invalid argument supplied to oneOf, expected an array.")),s;function Y(H,L,q,j,W){for(var U=H[L],K=0;K<M.length;K++)if(x(U,M[K]))return null;var J=JSON.stringify(M,function(te,X){var Q=A(X);return Q==="symbol"?String(X):X});return new m("Invalid "+j+" `"+W+"` of value `"+String(U)+"` "+("supplied to `"+q+"`, expected one of "+J+"."))}return b(Y)}function k(M){function Y(H,L,q,j,W){if(typeof M!="function")return new m("Property `"+W+"` of component `"+q+"` has invalid PropType notation inside objectOf.");var U=H[L],K=R(U);if(K!=="object")return new m("Invalid "+j+" `"+W+"` of type "+("`"+K+"` supplied to `"+q+"`, expected an object."));for(var J in U)if(n(U,J)){var Z=M(U,J,q,j,W+"."+J,o);if(Z instanceof Error)return Z}return null}return b(Y)}function E(M){if(!Array.isArray(M))return process.env.NODE_ENV!=="production"&&a("Invalid argument supplied to oneOfType, expected an instance of array."),s;for(var Y=0;Y<M.length;Y++){var H=M[Y];if(typeof H!="function")return a("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+F(H)+" at index "+Y+"."),s}function L(q,j,W,U,K){for(var J=[],Z=0;Z<M.length;Z++){var te=M[Z],X=te(q,j,W,U,K,o);if(X==null)return null;X.data&&n(X.data,"expectedType")&&J.push(X.data.expectedType)}var Q=J.length>0?", expected one of type ["+J.join(", ")+"]":"";return new m("Invalid "+U+" `"+K+"` supplied to "+("`"+W+"`"+Q+"."))}return b(L)}function D(){function M(Y,H,L,q,j){return B(Y[H])?null:new m("Invalid "+q+" `"+j+"` supplied to "+("`"+L+"`, expected a ReactNode."))}return b(M)}function O(M,Y,H,L,q){return new m((M||"React class")+": "+Y+" type `"+H+"."+L+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+q+"`.")}function N(M){function Y(H,L,q,j,W){var U=H[L],K=R(U);if(K!=="object")return new m("Invalid "+j+" `"+W+"` of type `"+K+"` "+("supplied to `"+q+"`, expected `object`."));for(var J in M){var Z=M[J];if(typeof Z!="function")return O(q,j,W,J,A(Z));var te=Z(U,J,q,j,W+"."+J,o);if(te)return te}return null}return b(Y)}function z(M){function Y(H,L,q,j,W){var U=H[L],K=R(U);if(K!=="object")return new m("Invalid "+j+" `"+W+"` of type `"+K+"` "+("supplied to `"+q+"`, expected `object`."));var J=t({},H[L],M);for(var Z in J){var te=M[Z];if(n(M,Z)&&typeof te!="function")return O(q,j,W,Z,A(te));if(!te)return new m("Invalid "+j+" `"+W+"` key `"+Z+"` supplied to `"+q+"`.\nBad object: "+JSON.stringify(H[L],null," ")+`
|
|
20
|
-
Valid keys: `+JSON.stringify(Object.keys(M),null," "));var X=te(U,Z,q,j,W+"."+Z,o);if(X)return X}return null}return b(Y)}function B(M){switch(typeof M){case"number":case"string":case"undefined":return!0;case"boolean":return!M;case"object":if(Array.isArray(M))return M.every(B);if(M===null||i(M))return!0;var Y=f(M);if(Y){var H=Y.call(M),L;if(Y!==M.entries){for(;!(L=H.next()).done;)if(!B(L.value))return!1}else for(;!(L=H.next()).done;){var q=L.value;if(q&&!B(q[1]))return!1}}else return!1;return!0;default:return!1}}function G(M,Y){return M==="symbol"?!0:Y?Y["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&Y instanceof Symbol:!1}function R(M){var Y=typeof M;return Array.isArray(M)?"array":M instanceof RegExp?"object":G(Y,M)?"symbol":Y}function A(M){if(typeof M>"u"||M===null)return""+M;var Y=R(M);if(Y==="object"){if(M instanceof Date)return"date";if(M instanceof RegExp)return"regexp"}return Y}function F(M){var Y=A(M);switch(Y){case"array":case"object":return"an "+Y;case"boolean":case"date":case"regexp":return"a "+Y;default:return Y}}function V(M){return!M.constructor||!M.constructor.name?p:M.constructor.name}return g.checkPropTypes=r,g.resetWarningCache=r.resetWarningCache,g.PropTypes=g,g},Bu}var Hu,Bm;function sI(){if(Bm)return Hu;Bm=1;var e=Fu();function t(){}function o(){}return o.resetWarningCache=t,Hu=function(){function n(s,i,l,c,d,f){if(f!==e){var p=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw p.name="Invariant Violation",p}}n.isRequired=n;function r(){return n}var a={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:r,element:n,elementType:n,instanceOf:r,node:n,objectOf:r,oneOf:r,oneOfType:r,shape:r,exact:r,checkPropTypes:o,resetWarningCache:t};return a.PropTypes=a,a},Hu}var Hm;function iI(){if(Hm)return Pi.exports;if(Hm=1,process.env.NODE_ENV!=="production"){var e=Om(),t=!0;Pi.exports=aI()(e.isElement,t)}else Pi.exports=sI()();return Pi.exports}var lI=iI();const ue=eI(lI);function cI(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function uI(e,t){e.classList?e.classList.add(t):cI(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function Vm(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function dI(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=Vm(e.className,t):e.setAttribute("class",Vm(e.className&&e.className.baseVal||"",t))}const Wm={disabled:!1};var fI=process.env.NODE_ENV!=="production"?ue.oneOfType([ue.number,ue.shape({enter:ue.number,exit:ue.number,appear:ue.number}).isRequired]):null,pI=process.env.NODE_ENV!=="production"?ue.oneOfType([ue.string,ue.shape({enter:ue.string,exit:ue.string,active:ue.string}),ue.shape({enter:ue.string,enterDone:ue.string,enterActive:ue.string,exit:ue.string,exitDone:ue.string,exitActive:ue.string})]):null;const ki=h.createContext(null);var Rm=function(t){return t.scrollTop},Ra="unmounted",Rn="exited",Gn="entering",Er="entered",Vu="exiting",wo=(function(e){Au(t,e);function t(n,r){var a;a=e.call(this,n,r)||this;var s=r,i=s&&!s.isMounting?n.enter:n.appear,l;return a.appearStatus=null,n.in?i?(l=Rn,a.appearStatus=Gn):l=Er:n.unmountOnExit||n.mountOnEnter?l=Ra:l=Rn,a.state={status:l},a.nextCallback=null,a}t.getDerivedStateFromProps=function(r,a){var s=r.in;return s&&a.status===Ra?{status:Rn}:null};var o=t.prototype;return o.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},o.componentDidUpdate=function(r){var a=null;if(r!==this.props){var s=this.state.status;this.props.in?s!==Gn&&s!==Er&&(a=Gn):(s===Gn||s===Er)&&(a=Vu)}this.updateStatus(!1,a)},o.componentWillUnmount=function(){this.cancelNextCallback()},o.getTimeouts=function(){var r=this.props.timeout,a,s,i;return a=s=i=r,r!=null&&typeof r!="number"&&(a=r.exit,s=r.enter,i=r.appear!==void 0?r.appear:s),{exit:a,enter:s,appear:i}},o.updateStatus=function(r,a){if(r===void 0&&(r=!1),a!==null)if(this.cancelNextCallback(),a===Gn){if(this.props.unmountOnExit||this.props.mountOnEnter){var s=this.props.nodeRef?this.props.nodeRef.current:vt.findDOMNode(this);s&&Rm(s)}this.performEnter(r)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Rn&&this.setState({status:Ra})},o.performEnter=function(r){var a=this,s=this.props.enter,i=this.context?this.context.isMounting:r,l=this.props.nodeRef?[i]:[vt.findDOMNode(this),i],c=l[0],d=l[1],f=this.getTimeouts(),p=i?f.appear:f.enter;if(!r&&!s||Wm.disabled){this.safeSetState({status:Er},function(){a.props.onEntered(c)});return}this.props.onEnter(c,d),this.safeSetState({status:Gn},function(){a.props.onEntering(c,d),a.onTransitionEnd(p,function(){a.safeSetState({status:Er},function(){a.props.onEntered(c,d)})})})},o.performExit=function(){var r=this,a=this.props.exit,s=this.getTimeouts(),i=this.props.nodeRef?void 0:vt.findDOMNode(this);if(!a||Wm.disabled){this.safeSetState({status:Rn},function(){r.props.onExited(i)});return}this.props.onExit(i),this.safeSetState({status:Vu},function(){r.props.onExiting(i),r.onTransitionEnd(s.exit,function(){r.safeSetState({status:Rn},function(){r.props.onExited(i)})})})},o.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},o.safeSetState=function(r,a){a=this.setNextCallback(a),this.setState(r,a)},o.setNextCallback=function(r){var a=this,s=!0;return this.nextCallback=function(i){s&&(s=!1,a.nextCallback=null,r(i))},this.nextCallback.cancel=function(){s=!1},this.nextCallback},o.onTransitionEnd=function(r,a){this.setNextCallback(a);var s=this.props.nodeRef?this.props.nodeRef.current:vt.findDOMNode(this),i=r==null&&!this.props.addEndListener;if(!s||i){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[s,this.nextCallback],c=l[0],d=l[1];this.props.addEndListener(c,d)}r!=null&&setTimeout(this.nextCallback,r)},o.render=function(){var r=this.state.status;if(r===Ra)return null;var a=this.props,s=a.children;a.in,a.mountOnEnter,a.unmountOnExit,a.appear,a.enter,a.exit,a.timeout,a.addEndListener,a.onEnter,a.onEntering,a.onEntered,a.onExit,a.onExiting,a.onExited,a.nodeRef;var i=Mu(a,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return h.createElement(ki.Provider,{value:null},typeof s=="function"?s(r,i):h.cloneElement(h.Children.only(s),i))},t})(h.Component);wo.contextType=ki,wo.propTypes=process.env.NODE_ENV!=="production"?{nodeRef:ue.shape({current:typeof Element>"u"?ue.any:function(e,t,o,n,r,a){var s=e[t];return ue.instanceOf(s&&"ownerDocument"in s?s.ownerDocument.defaultView.Element:Element)(e,t,o,n,r,a)}}),children:ue.oneOfType([ue.func.isRequired,ue.element.isRequired]).isRequired,in:ue.bool,mountOnEnter:ue.bool,unmountOnExit:ue.bool,appear:ue.bool,enter:ue.bool,exit:ue.bool,timeout:function(t){var o=fI;t.addEndListener||(o=o.isRequired);for(var n=arguments.length,r=new Array(n>1?n-1:0),a=1;a<n;a++)r[a-1]=arguments[a];return o.apply(void 0,[t].concat(r))},addEndListener:ue.func,onEnter:ue.func,onEntering:ue.func,onEntered:ue.func,onExit:ue.func,onExiting:ue.func,onExited:ue.func}:{};function Ir(){}wo.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Ir,onEntering:Ir,onEntered:Ir,onExit:Ir,onExiting:Ir,onExited:Ir},wo.UNMOUNTED=Ra,wo.EXITED=Rn,wo.ENTERING=Gn,wo.ENTERED=Er,wo.EXITING=Vu;var hI=function(t,o){return t&&o&&o.split(" ").forEach(function(n){return uI(t,n)})},Wu=function(t,o){return t&&o&&o.split(" ").forEach(function(n){return dI(t,n)})},Ga=(function(e){Au(t,e);function t(){for(var n,r=arguments.length,a=new Array(r),s=0;s<r;s++)a[s]=arguments[s];return n=e.call.apply(e,[this].concat(a))||this,n.appliedClasses={appear:{},enter:{},exit:{}},n.onEnter=function(i,l){var c=n.resolveArguments(i,l),d=c[0],f=c[1];n.removeClasses(d,"exit"),n.addClass(d,f?"appear":"enter","base"),n.props.onEnter&&n.props.onEnter(i,l)},n.onEntering=function(i,l){var c=n.resolveArguments(i,l),d=c[0],f=c[1],p=f?"appear":"enter";n.addClass(d,p,"active"),n.props.onEntering&&n.props.onEntering(i,l)},n.onEntered=function(i,l){var c=n.resolveArguments(i,l),d=c[0],f=c[1],p=f?"appear":"enter";n.removeClasses(d,p),n.addClass(d,p,"done"),n.props.onEntered&&n.props.onEntered(i,l)},n.onExit=function(i){var l=n.resolveArguments(i),c=l[0];n.removeClasses(c,"appear"),n.removeClasses(c,"enter"),n.addClass(c,"exit","base"),n.props.onExit&&n.props.onExit(i)},n.onExiting=function(i){var l=n.resolveArguments(i),c=l[0];n.addClass(c,"exit","active"),n.props.onExiting&&n.props.onExiting(i)},n.onExited=function(i){var l=n.resolveArguments(i),c=l[0];n.removeClasses(c,"exit"),n.addClass(c,"exit","done"),n.props.onExited&&n.props.onExited(i)},n.resolveArguments=function(i,l){return n.props.nodeRef?[n.props.nodeRef.current,i]:[i,l]},n.getClassNames=function(i){var l=n.props.classNames,c=typeof l=="string",d=c&&l?l+"-":"",f=c?""+d+i:l[i],p=c?f+"-active":l[i+"Active"],g=c?f+"-done":l[i+"Done"];return{baseClassName:f,activeClassName:p,doneClassName:g}},n}var o=t.prototype;return o.addClass=function(r,a,s){var i=this.getClassNames(a)[s+"ClassName"],l=this.getClassNames("enter"),c=l.doneClassName;a==="appear"&&s==="done"&&c&&(i+=" "+c),s==="active"&&r&&Rm(r),i&&(this.appliedClasses[a][s]=i,hI(r,i))},o.removeClasses=function(r,a){var s=this.appliedClasses[a],i=s.base,l=s.active,c=s.done;this.appliedClasses[a]={},i&&Wu(r,i),l&&Wu(r,l),c&&Wu(r,c)},o.render=function(){var r=this.props;r.classNames;var a=Mu(r,["classNames"]);return h.createElement(wo,Wa({},a,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t})(h.Component);Ga.defaultProps={classNames:""},Ga.propTypes=process.env.NODE_ENV!=="production"?Wa({},wo.propTypes,{classNames:pI,onEnter:ue.func,onEntering:ue.func,onEntered:ue.func,onExit:ue.func,onExiting:ue.func,onExited:ue.func}):{};function gI(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ru(e,t){var o=function(a){return t&&h.isValidElement(a)?t(a):a},n=Object.create(null);return e&&h.Children.map(e,function(r){return r}).forEach(function(r){n[r.key]=o(r)}),n}function mI(e,t){e=e||{},t=t||{};function o(d){return d in t?t[d]:e[d]}var n=Object.create(null),r=[];for(var a in e)a in t?r.length&&(n[a]=r,r=[]):r.push(a);var s,i={};for(var l in t){if(n[l])for(s=0;s<n[l].length;s++){var c=n[l][s];i[n[l][s]]=o(c)}i[l]=o(l)}for(s=0;s<r.length;s++)i[r[s]]=o(r[s]);return i}function jn(e,t,o){return o[t]!=null?o[t]:e.props[t]}function xI(e,t){return Ru(e.children,function(o){return h.cloneElement(o,{onExited:t.bind(null,o),in:!0,appear:jn(o,"appear",e),enter:jn(o,"enter",e),exit:jn(o,"exit",e)})})}function bI(e,t,o){var n=Ru(e.children),r=mI(t,n);return Object.keys(r).forEach(function(a){var s=r[a];if(h.isValidElement(s)){var i=a in t,l=a in n,c=t[a],d=h.isValidElement(c)&&!c.props.in;l&&(!i||d)?r[a]=h.cloneElement(s,{onExited:o.bind(null,s),in:!0,exit:jn(s,"exit",e),enter:jn(s,"enter",e)}):!l&&i&&!d?r[a]=h.cloneElement(s,{in:!1}):l&&i&&h.isValidElement(c)&&(r[a]=h.cloneElement(s,{onExited:o.bind(null,s),in:c.props.in,exit:jn(s,"exit",e),enter:jn(s,"enter",e)}))}}),r}var vI=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},yI={component:"div",childFactory:function(t){return t}},Ei=(function(e){Au(t,e);function t(n,r){var a;a=e.call(this,n,r)||this;var s=a.handleExited.bind(gI(a));return a.state={contextValue:{isMounting:!0},handleExited:s,firstRender:!0},a}var o=t.prototype;return o.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},o.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(r,a){var s=a.children,i=a.handleExited,l=a.firstRender;return{children:l?xI(r,i):bI(r,s,i),firstRender:!1}},o.handleExited=function(r,a){var s=Ru(this.props.children);r.key in s||(r.props.onExited&&r.props.onExited(a),this.mounted&&this.setState(function(i){var l=Wa({},i.children);return delete l[r.key],{children:l}}))},o.render=function(){var r=this.props,a=r.component,s=r.childFactory,i=Mu(r,["component","childFactory"]),l=this.state.contextValue,c=vI(this.state.children).map(s);return delete i.appear,delete i.enter,delete i.exit,a===null?h.createElement(ki.Provider,{value:l},c):h.createElement(ki.Provider,{value:l},h.createElement(a,i,c))},t})(h.Component);Ei.propTypes=process.env.NODE_ENV!=="production"?{component:ue.any,children:ue.node,appear:ue.bool,enter:ue.bool,exit:ue.bool,childFactory:ue.func}:{},Ei.defaultProps=yI;function Dr({in:e=!1,appear:t=!1,unmountOnExit:o=!0,mountOnEnter:n=!0,classNames:r,timeout:a,styleVars:s,onEnterNode:i,onExitNode:l,children:c}){const d=h.useRef(null),f=h.Children.only(c),p=f.props.ref??f.ref,g=h.cloneElement(f,{ref:x=>{d.current=x,typeof p=="function"?p(x):p&&(p.current=x)},style:{...f.props.style??{},...s}});return u.jsx(Ga,{nodeRef:d,in:e,appear:t,timeout:a,classNames:r,mountOnEnter:n,unmountOnExit:o,onEnter:()=>d.current&&(i==null?void 0:i(d.current)),onExit:()=>d.current&&(l==null?void 0:l(d.current)),children:g})}function Gm({enterDuration:e=500,leaveDuration:t=300,...o}){return u.jsx(Dr,{classNames:"ox-bounce",timeout:{enter:e,exit:t,appear:e},styleVars:{"--ox-bounce-enter-duration":`${e}ms`,"--ox-bounce-leave-duration":`${t}ms`},...o})}Gm.displayName="OxTransitionBounce";function Gu({enterDuration:e=300,leaveDuration:t=300,distance:o="100%",direction:n="right",leaveDirection:r="left",...a}){return u.jsx(Dr,{classNames:"ox-slide-x",timeout:{enter:e,exit:t,appear:e},styleVars:{"--ox-slide-x-enter-duration":`${e}ms`,"--ox-slide-x-leave-duration":`${t}ms`,"--ox-slide-x-distance":o,"--ox-slide-x-enter-direction":n==="right"?"1":"-1","--ox-slide-x-leave-direction":r==="right"?"1":"-1"},...a})}Gu.displayName="OxTransitionSlideX";function ju({enterDuration:e=300,leaveDuration:t=300,...o}){return u.jsx(Dr,{classNames:"ox-fade",timeout:{enter:e,exit:t,appear:e},styleVars:{"--ox-fade-enter-duration":`${e}ms`,"--ox-fade-leave-duration":`${t}ms`},...o})}ju.displayName="OxTransitionFade";function jm({enterDuration:e=300,leaveDuration:t=300,distance:o="100%",direction:n="top",leaveDirection:r="bottom",...a}){return u.jsx(Dr,{classNames:"ox-slide-y",timeout:{enter:e,exit:t,appear:e},styleVars:{"--ox-slide-y-enter-duration":`${e}ms`,"--ox-slide-y-leave-duration":`${t}ms`,"--ox-slide-y-distance":o,"--ox-slide-y-enter-direction":n==="bottom"?"1":"-1","--ox-slide-y-leave-direction":r==="bottom"?"1":"-1"},...a})}jm.displayName="OxTransitionSlideY";const Um=e=>{e.style.setProperty("--ox-expand-height",`${e.scrollHeight}px`)};function Uu({enterDuration:e=300,leaveDuration:t=300,...o}){return u.jsx(Dr,{classNames:"ox-expand",timeout:{enter:e,exit:t,appear:e},styleVars:{"--ox-expand-enter-duration":`${e}ms`,"--ox-expand-leave-duration":`${t}ms`},onEnterNode:Um,onExitNode:Um,...o})}Uu.displayName="OxTransitionExpand";function qm({enterDuration:e=500,leaveDuration:t=500,axis:o="y",enterDegrees:n=90,...r}){const a=o==="x"?"rotateX":"rotateY";return u.jsx(Dr,{classNames:`ox-flip-${o}`,timeout:{enter:e,exit:t,appear:e},styleVars:{"--ox-flip-enter-duration":`${e}ms`,"--ox-flip-leave-duration":`${t}ms`,"--flip-enter-transform":`${a}(${n}deg)`,"--flip-leave-transform":`${a}(${-n}deg)`},...r})}qm.displayName="OxTransitionFlip";function Ym({show:e=!1,delay:t=0,distance:o="26px",direction:n="bottom",duration:r=650,className:a,style:s,children:i,...l}){return u.jsx("div",{className:$("ox-reveal",a),"data-state":e?"in":"out",style:{...s,"--ox-reveal-duration":`${r}ms`,"--ox-reveal-delay":`${t}ms`,"--ox-reveal-distance":o,"--ox-reveal-direction":n==="top"?"-1":"1"},...l,children:i})}Ym.displayName="OxTransitionReveal";const Km=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Xm=hm,Oe=(e,t)=>o=>{var n;if((t==null?void 0:t.variants)==null)return Xm(e,o==null?void 0:o.class,o==null?void 0:o.className);const{variants:r,defaultVariants:a}=t,s=Object.keys(r).map(c=>{const d=o==null?void 0:o[c],f=a==null?void 0:a[c];if(d===null)return null;const p=Km(d)||Km(f);return r[c][p]}),i=o&&Object.entries(o).reduce((c,d)=>{let[f,p]=d;return p===void 0||(c[f]=p),c},{}),l=t==null||(n=t.compoundVariants)===null||n===void 0?void 0:n.reduce((c,d)=>{let{class:f,className:p,...g}=d;return Object.entries(g).every(x=>{let[m,b]=x;return Array.isArray(b)?b.includes({...a,...i}[m]):{...a,...i}[m]===b})?[...c,f,p]:c},[]);return Xm(e,s,l,o==null?void 0:o.class,o==null?void 0:o.className)};function Zm(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Mr(...e){return t=>{let o=!1;const n=e.map(r=>{const a=Zm(r,t);return!o&&typeof a=="function"&&(o=!0),a});if(o)return()=>{for(let r=0;r<n.length;r++){const a=n[r];typeof a=="function"?a():Zm(e[r],null)}}}}function We(...e){return v.useCallback(Mr(...e),e)}function Or(e){const t=v.forwardRef((o,n)=>{let{children:r,...a}=o,s=null,i=!1;const l=[];Qm(r)&&typeof Ii=="function"&&(r=Ii(r._payload)),v.Children.forEach(r,p=>{var g;if(PI(p)){i=!0;const x=p;let m="child"in x.props?x.props.child:x.props.children;Qm(m)&&typeof Ii=="function"&&(m=Ii(m._payload)),s=CI(x,m),l.push((g=s==null?void 0:s.props)==null?void 0:g.children)}else l.push(p)}),s?s=v.cloneElement(s,void 0,l):!i&&v.Children.count(r)===1&&v.isValidElement(r)&&(s=r);const c=s?SI(s):void 0,d=We(n,c);if(!s){if(r||r===0)throw new Error(i?II(e):EI(e));return r}const f=_I(a,s.props??{});return s.type!==v.Fragment&&(f.ref=n?d:c),v.cloneElement(s,f)});return t.displayName=`${e}.Slot`,t}var Ho=Or("Slot"),Jm=Symbol.for("radix.slottable");function wI(e){const t=o=>"child"in o?o.children(o.child):o.children;return t.displayName=`${e}.Slottable`,t.__radixId=Jm,t}var CI=(e,t)=>{if("child"in e.props){const o=e.props.child;return v.isValidElement(o)?v.cloneElement(o,void 0,e.props.children(o.props.children)):null}return v.isValidElement(t)?t:null};function _I(e,t){const o={...t};for(const n in t){const r=e[n],a=t[n];/^on[A-Z]/.test(n)?r&&a?o[n]=(...i)=>{const l=a(...i);return r(...i),l}:r&&(o[n]=r):n==="style"?o[n]={...r,...a}:n==="className"&&(o[n]=[r,a].filter(Boolean).join(" "))}return{...e,...o}}function SI(e){var n,r;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,o=t&&"isReactWarning"in t&&t.isReactWarning;return o?e.ref:(t=(r=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:r.get,o=t&&"isReactWarning"in t&&t.isReactWarning,o?e.props.ref:e.props.ref||e.ref)}function PI(e){return v.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Jm}var TI=Symbol.for("react.lazy");function Qm(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===TI&&"_payload"in e&&kI(e._payload)}function kI(e){return typeof e=="object"&&e!==null&&"then"in e}var EI=e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,II=e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,Ii=v[" use ".trim().toString()];const me=(e,t)=>(t??"").split(/\s+/).filter(Boolean).map(o=>e[o]??o).join(" "),ex={"ox-button":"_ox-button_1fmx7_2","ox-button--default":"_ox-button--default_1fmx7_2","ox-button--destructive":"_ox-button--destructive_1fmx7_2","ox-button--success":"_ox-button--success_1fmx7_2","ox-button--outline":"_ox-button--outline_1fmx7_2","ox-button--secondary":"_ox-button--secondary_1fmx7_2","ox-button--ghost":"_ox-button--ghost_1fmx7_2","ox-button--link":"_ox-button--link_1fmx7_2","ox-button--ai":"_ox-button--ai_1fmx7_2","ox-button--2xs":"_ox-button--2xs_1fmx7_2","ox-button--xs":"_ox-button--xs_1fmx7_2","ox-button--sm":"_ox-button--sm_1fmx7_2","ox-button--md":"_ox-button--md_1fmx7_2","ox-button--lg":"_ox-button--lg_1fmx7_2","ox-button--icon":"_ox-button--icon_1fmx7_2"},ja=h.forwardRef(({className:e,variant:t="default",size:o="md",asChild:n=!1,...r},a)=>{const s=n?Ho:"button";return u.jsx(s,{ref:a,"data-slot":"button",className:$(me(ex,qu({variant:t,size:o})),e),...r})});ja.displayName="OxButton";const qu=Oe("ox-button",{variants:{variant:{default:"ox-button--default",destructive:"ox-button--destructive",success:"ox-button--success",outline:"ox-button--outline",secondary:"ox-button--secondary",ghost:"ox-button--ghost",link:"ox-button--link",ai:"ox-button--ai"},size:{"2xs":"ox-button--2xs",xs:"ox-button--xs",sm:"ox-button--sm",md:"ox-button--md",lg:"ox-button--lg",icon:"ox-button--icon"}},defaultVariants:{variant:"default",size:"md"}}),DI={"ox-icon-button":"_ox-icon-button_1ce93_2","ox-icon-button--2xs":"_ox-icon-button--2xs_1ce93_2","ox-icon-button--xs":"_ox-icon-button--xs_1ce93_2","ox-icon-button--sm":"_ox-icon-button--sm_1ce93_2","ox-icon-button--md":"_ox-icon-button--md_1ce93_2","ox-icon-button--lg":"_ox-icon-button--lg_1ce93_2"},jt=h.forwardRef(({className:e,variant:t="default",size:o="md",asChild:n=!1,...r},a)=>{const s=n?Ho:"button";return u.jsx(s,{ref:a,"data-slot":"icon-button",className:$(me(ex,qu({variant:t,size:null})),me(DI,tx({size:o})),e),...r})});jt.displayName="OxIconButton";const tx=Oe("ox-icon-button",{variants:{size:{"2xs":"ox-icon-button--2xs",xs:"ox-icon-button--xs",sm:"ox-icon-button--sm",md:"ox-icon-button--md",lg:"ox-icon-button--lg"}},defaultVariants:{size:"md"}}),Ar=`<svg width="1.2em" height="1.2em" stroke-color="currentColor" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24">
|
|
21
|
-
<g>
|
|
22
|
-
<path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="m9 6 6 6-6 6"/>
|
|
23
|
-
</g>
|
|
24
|
-
</svg>
|
|
25
|
-
`,ee=h.forwardRef(({icon:e,...t},o)=>{const n=e.replace(/ height="[^"]*"/g,"").replace(/ width="[^"]*"/g,"");return h.createElement("i",{...t,ref:o,dangerouslySetInnerHTML:{__html:n},style:{display:"inline-flex",alignItems:"center",justifyContent:"center"}})});ee.displayName="Icon";const Yu={"ox-action-item":"_ox-action-item_lke24_2","ox-action-item-label":"_ox-action-item-label_lke24_2","ox-action-item-chevron":"_ox-action-item-chevron_lke24_2"},ox=h.forwardRef(({className:e,showChevron:t=!0,dataTestid:o,children:n,...r},a)=>u.jsxs("button",{ref:a,type:"button","data-slot":"action-item","data-testid":o,className:$(Yu["ox-action-item"],e),...r,children:[u.jsx("span",{className:Yu["ox-action-item-label"],"data-slot":"label",children:n}),t&&u.jsx("span",{className:Yu["ox-action-item-chevron"],"data-slot":"icon","data-testid":`${o}-chevron`,"aria-hidden":"true",children:u.jsx(ee,{icon:Ar})})]}));ox.displayName="OxActionItem";const nx={"ox-fab":"_ox-fab_bthzm_2","ox-fab--extended":"_ox-fab--extended_bthzm_2","ox-fab-label":"_ox-fab-label_bthzm_2"},rx=h.forwardRef(({className:e,label:t,collapsed:o=!1,dataTestid:n,children:r,...a},s)=>u.jsxs("button",{ref:s,type:"button","data-slot":"fab","data-testid":n,"data-collapsed":o||void 0,className:$(me(nx,ax({extended:!!t&&!o})),e),...a,children:[r,t!=null&&u.jsx("span",{className:nx["ox-fab-label"],"data-slot":"label",children:t})]}));rx.displayName="OxFab";const ax=Oe("ox-fab",{variants:{extended:{true:"ox-fab--extended",false:""}},defaultVariants:{extended:!1}}),MI={"ox-button-group":"_ox-button-group_1t4eh_2"},Ku=h.forwardRef(({className:e,dataTestid:t,children:o,...n},r)=>u.jsx("div",{ref:r,role:"group",className:$(MI["ox-button-group"],e),"data-testid":t,...n,children:o}));Ku.displayName="OxButtonGroup";const Co=`<svg width="1.2em" height="1.2em" stroke-color="currentColor" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24">
|
|
26
|
-
<g>
|
|
27
|
-
<path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="m6 9 6 6 6-6"/>
|
|
28
|
-
</g>
|
|
29
|
-
</svg>
|
|
30
|
-
`,sx=e=>{if(e)try{return Intl.getCanonicalLocales(e.replace(/_/g,"-"))[0]}catch{return}},Xu=h.createContext(void 0),Di=()=>h.useContext(Xu),OI=Object.assign({"../../../../translations/ca.json":Object.freeze(Object.defineProperty({__proto__:null,default:{"orxata.aiSearch.hintAsk":"Preguntar","orxata.aiSearch.hintClose":"Tancar","orxata.aiSearch.stop":"Aturar","orxata.aiSearch.thinking":"Pensant...","orxata.alert.close":"Tancar alerta","orxata.breadcrumb.label":"ruta de navegació","orxata.breadcrumb.more":"Més","orxata.chatBubble.status.delivered":"Lliurat","orxata.chatBubble.status.pending":"Enviant","orxata.chatBubble.status.read":"Llegit","orxata.chatBubble.status.sent":"Enviat","orxata.colorPicker.label":"Colors","orxata.combobox.clear":"Netejar","orxata.combobox.empty":"No s'han trobat resultats.","orxata.combobox.moreSelected":"{count} més seleccionats: {labels}","orxata.combobox.removeChip":"Eliminar {label}","orxata.combobox.showPopup":"Mostrar finestra emergent","orxata.comment.actions":"Accions","orxata.comment.reply":"Respondre","orxata.dialog.close":"Tancar","orxata.drawer.close":"Tancar","orxata.drawer.collapse":"Contraure","orxata.drawer.expand":"Expandir","orxata.iconPicker.empty":"No s'han trobat icones","orxata.iconPicker.label":"Icones","orxata.iconPicker.search":"Cercar icona","orxata.inputOtp.slot":"camp PIN {index} de {total}","orxata.inputPassword.hide":"Amagar contrasenya","orxata.inputPassword.show":"Mostrar contrasenya","orxata.loader.label":"Carregant","orxata.paymentCard.cardholderName":"Nom de l'empleat","orxata.paymentCard.type.physical":"Física","orxata.paymentCard.type.subscription":"Subscripció","orxata.paymentCard.type.virtual":"Virtual","orxata.playerPill.action.pause":"Pausar fitxatge","orxata.playerPill.action.resume":"Reprendre fitxatge","orxata.playerPill.action.start":"Iniciar fitxatge","orxata.playerPill.action.stop":"Fitxar sortida","orxata.playerPill.idle":"Sense fitxar","orxata.playerPill.status.paused":"Pausat","orxata.playerPill.status.running":"En marxa","orxata.reaction.moreTitle":"Més reaccions","orxata.richText.blockquote":"Cita","orxata.richText.bold":"Negreta","orxata.richText.bulletList":"Llista amb vinyetes","orxata.richText.italic":"Cursiva","orxata.richText.orderedList":"Llista numerada","orxata.richText.strike":"Ratllat","orxata.richText.underline":"Subratllat","orxata.searchBar.clear":"Esborrar cerca","orxata.splitButton.more":"Més opcions","orxata.table.bulkHeader.selected":"Has seleccionat {count} de {total} elements","orxata.table.columns":"Columnes","orxata.table.empty":"No hi ha dades disponibles","orxata.table.pagination.next":"Pàgina següent","orxata.table.pagination.of":"de","orxata.table.pagination.previous":"Pàgina anterior","orxata.table.pagination.rowsPerPage":"Files per pàgina","orxata.timePicker.hour":"Hora","orxata.timePicker.minute":"Minut","orxata.toast.close":"Tancar"}},Symbol.toStringTag,{value:"Module"})),"../../../../translations/de.json":Object.freeze(Object.defineProperty({__proto__:null,default:{"orxata.aiSearch.ask":"Sesame AI fragen","orxata.aiSearch.hintAsk":"Fragen","orxata.aiSearch.hintClose":"Schließen","orxata.aiSearch.hintNavigate":"Navigieren","orxata.aiSearch.stop":"Stoppen","orxata.aiSearch.thinking":"Denkt nach...","orxata.alert.close":"Benachrichtigung schließen","orxata.breadcrumb.label":"Brotkrümelnavigation","orxata.breadcrumb.more":"Mehr","orxata.chatBubble.status.delivered":"Zugestellt","orxata.chatBubble.status.pending":"Wird versendet","orxata.chatBubble.status.read":"Gelesen","orxata.chatBubble.status.sent":"Gesendet","orxata.colorPicker.label":"Farben","orxata.combobox.clear":"Bereinigen","orxata.combobox.empty":"Keine Ergebnisse gefunden.","orxata.combobox.moreSelected":"{count} weitere ausgewählt: {labels}","orxata.combobox.removeChip":"{label} löschen","orxata.combobox.showPopup":"Pop-up anzeigen","orxata.comment.actions":"Aktionen","orxata.comment.reply":"Antworten","orxata.dialog.close":"Schließen","orxata.drawer.close":"Schließen","orxata.drawer.collapse":"Einklappen","orxata.drawer.expand":"Erweitern","orxata.iconPicker.empty":"Keine Symbole gefunden","orxata.iconPicker.label":"Symbole","orxata.iconPicker.search":"Symbol suchen","orxata.inputOtp.slot":"PIN-Eingabe {index} von {total}","orxata.inputPassword.hide":"Passwort ausblenden","orxata.inputPassword.show":"Passwort anzeigen","orxata.loader.label":"Wird geladen","orxata.paymentCard.cardholderName":"Name des Mitarbeiters","orxata.paymentCard.type.physical":"Physisch","orxata.paymentCard.type.subscription":"Abonnement","orxata.paymentCard.type.virtual":"Virtuell","orxata.playerPill.action.pause":"Zeiterfassung pausieren","orxata.playerPill.action.resume":"Zeiterfassung fortsetzen","orxata.playerPill.action.start":"Zeiterfassung starten","orxata.playerPill.action.stop":"Ausstempeln","orxata.playerPill.idle":"Ohne Zeiterfassungen","orxata.playerPill.status.paused":"In Pause","orxata.playerPill.status.running":"Läuft","orxata.reaction.moreTitle":"Weitere Reaktionen","orxata.reaction.react":"Reagieren","orxata.richText.blockquote":"Zitat","orxata.richText.bold":"Fett","orxata.richText.bulletList":"Aufzählungsliste","orxata.richText.code":"Inline-Code","orxata.richText.heading1":"Überschrift 1","orxata.richText.heading2":"Überschrift 2","orxata.richText.heading3":"Überschrift 3","orxata.richText.italic":"Kursiv","orxata.richText.orderedList":"Nummerierte Liste","orxata.richText.strike":"Durchgestrichen","orxata.richText.underline":"Unterstrichen","orxata.searchBar.clear":"Suche leeren","orxata.splitButton.more":"Weitere Optionen","orxata.table.bulkHeader.selected":"Sie haben {count} von {total} Elementen ausgewählt","orxata.table.columns":"Spalten","orxata.table.empty":"Keine Daten verfügbar","orxata.table.pagination.next":"Nächste Seite","orxata.table.pagination.of":"von","orxata.table.pagination.previous":"Vorherige Seite","orxata.table.pagination.rowsPerPage":"Zeilen pro Seite","orxata.timePicker.hour":"Uhrzeit","orxata.timePicker.minute":"Minute","orxata.timePicker.open":"Zeitauswahl öffnen","orxata.timePicker.second":"Sekunde","orxata.toast.close":"Schließen"}},Symbol.toStringTag,{value:"Module"})),"../../../../translations/en.json":Object.freeze(Object.defineProperty({__proto__:null,default:{"orxata.aiSearch.ask":"Ask Sesame AI","orxata.aiSearch.hintAsk":"Ask","orxata.aiSearch.hintClose":"Close","orxata.aiSearch.hintNavigate":"Navigate","orxata.aiSearch.stop":"Stop","orxata.aiSearch.thinking":"Thinking...","orxata.alert.close":"Close alert","orxata.breadcrumb.label":"breadcrumb","orxata.breadcrumb.more":"More","orxata.chatBubble.status.delivered":"Delivered","orxata.chatBubble.status.pending":"Sending","orxata.chatBubble.status.read":"Read","orxata.chatBubble.status.sent":"Sent","orxata.colorPicker.label":"Colors","orxata.combobox.clear":"Clear","orxata.combobox.empty":"No results found.","orxata.combobox.moreSelected":"{count} more selected: {labels}","orxata.combobox.removeChip":"Remove {label}","orxata.combobox.showPopup":"Show popup","orxata.comment.actions":"Actions","orxata.comment.like":"Like","orxata.comment.reply":"Reply","orxata.dialog.close":"Close","orxata.drawer.close":"Close","orxata.drawer.collapse":"Collapse","orxata.drawer.expand":"Expand","orxata.iconPicker.empty":"No icons found","orxata.iconPicker.label":"Icons","orxata.iconPicker.search":"Search icon","orxata.inputOtp.slot":"pin input {index} of {total}","orxata.inputPassword.hide":"Hide password","orxata.inputPassword.show":"Show password","orxata.loader.label":"Loading","orxata.paymentCard.cardholderName":"Employee Name","orxata.paymentCard.type.physical":"Physical","orxata.paymentCard.type.subscription":"Subscription","orxata.paymentCard.type.virtual":"Virtual","orxata.playerPill.action.pause":"Pause time tracking","orxata.playerPill.action.resume":"Resume time tracking","orxata.playerPill.action.start":"Clock in","orxata.playerPill.action.stop":"Clock out","orxata.playerPill.idle":"Not clocked in","orxata.playerPill.status.paused":"Paused","orxata.playerPill.status.running":"Running","orxata.reaction.add":"Add reaction","orxata.reaction.more":"Ver {count} reacciones más","orxata.reaction.moreTitle":"More reactions","orxata.reaction.react":"React","orxata.reaction.reacted":"{count} people reacted with {emoji} ","orxata.reaction.showMore":"More emoji","orxata.richText.blockquote":"Quote","orxata.richText.bold":"Bold","orxata.richText.bulletList":"Lista con viñetas","orxata.richText.code":"Inline code","orxata.richText.heading1":"Heading 1","orxata.richText.heading2":"Heading 2","orxata.richText.heading3":"Heading 3","orxata.richText.italic":"Italics","orxata.richText.orderedList":"Numbered list","orxata.richText.strike":"Strikethrough","orxata.richText.underline":"Underline","orxata.searchBar.clear":"Clear search","orxata.splitButton.more":"More options","orxata.table.bulkHeader.selected":"You have selected {count} of {total} items","orxata.table.columns":"Columns","orxata.table.empty":"No data available","orxata.table.pagination.next":"Next page","orxata.table.pagination.of":"of","orxata.table.pagination.previous":"Previous page","orxata.table.pagination.rowsPerPage":"Rows per page","orxata.timePicker.hour":"Hour","orxata.timePicker.minute":"Minute","orxata.timePicker.open":"Open time picker","orxata.timePicker.second":"Second","orxata.toast.close":"Close"}},Symbol.toStringTag,{value:"Module"})),"../../../../translations/es-MX.json":Object.freeze(Object.defineProperty({__proto__:null,default:{"orxata.aiSearch.ask":"Preguntar a Sesame IA","orxata.aiSearch.hintAsk":"Preguntar","orxata.aiSearch.hintClose":"Cerrar","orxata.aiSearch.hintNavigate":"Navegar","orxata.aiSearch.stop":"Detener","orxata.aiSearch.thinking":"Pensando...","orxata.alert.close":"Cerrar alerta","orxata.breadcrumb.label":"ruta de navegación","orxata.breadcrumb.more":"Más","orxata.chatBubble.status.delivered":"Entregado","orxata.chatBubble.status.pending":"Enviando","orxata.chatBubble.status.read":"Leído","orxata.chatBubble.status.sent":"Enviado","orxata.colorPicker.label":"Colores","orxata.combobox.clear":"Limpiar","orxata.combobox.empty":"No se encontraron resultados.","orxata.combobox.moreSelected":"{count} más seleccionados: {labels}","orxata.combobox.removeChip":"Eliminar {label}","orxata.combobox.showPopup":"Mostrar ventana emergente","orxata.comment.actions":"Acciones","orxata.comment.like":"Me gusta","orxata.comment.reply":"Responder","orxata.dialog.close":"Cerrar","orxata.drawer.close":"Cerrar","orxata.drawer.collapse":"Contraer","orxata.drawer.expand":"Expandir","orxata.iconPicker.empty":"No se encontraron íconos","orxata.iconPicker.label":"Iconos","orxata.iconPicker.search":"Buscar ícono","orxata.inputOtp.slot":"campo de PIN {index} de {total}","orxata.inputPassword.hide":"Ocultar contraseña","orxata.inputPassword.show":"Mostrar contraseña","orxata.loader.label":"Cargando","orxata.paymentCard.cardholderName":"Nombre del empleado","orxata.paymentCard.type.physical":"Física","orxata.paymentCard.type.subscription":"Suscripción","orxata.paymentCard.type.virtual":"Virtual","orxata.playerPill.action.pause":"Pausar registro","orxata.playerPill.action.resume":"Reanudar registro","orxata.playerPill.action.start":"Iniciar registro","orxata.playerPill.action.stop":"Registrar salida","orxata.playerPill.idle":"No trabajando","orxata.playerPill.status.paused":"Pausado","orxata.playerPill.status.running":"En marcha","orxata.reaction.add":"Agregar reacción","orxata.reaction.moreTitle":"Más reacciones","orxata.reaction.react":"Reaccionar","orxata.reaction.reacted":"Ver {count} reacciones más","orxata.reaction.showMore":"Más emojis","orxata.richText.blockquote":"Cita","orxata.richText.bold":"Negrita","orxata.richText.bulletList":"Lista con viñetas","orxata.richText.code":"Código en línea","orxata.richText.heading1":"Encabezado 1","orxata.richText.heading2":"Encabezado 2","orxata.richText.heading3":"Encabezado 3","orxata.richText.italic":"Cursiva","orxata.richText.orderedList":"Lista numerada","orxata.richText.strike":"Tachado","orxata.richText.underline":"Subrayado","orxata.searchBar.clear":"Limpiar búsqueda","orxata.splitButton.more":"Más opciones","orxata.table.bulkHeader.selected":"Seleccionaste {count} de {total} elementos","orxata.table.columns":"Columnas","orxata.table.empty":"No hay datos disponibles","orxata.table.pagination.next":"Página siguiente","orxata.table.pagination.of":"de","orxata.table.pagination.previous":"Página anterior","orxata.table.pagination.rowsPerPage":"Filas por página","orxata.timePicker.hour":"Hora","orxata.timePicker.minute":"Minuto","orxata.timePicker.open":"Abrir selector de hora","orxata.timePicker.second":"Segundo","orxata.toast.close":"Cerrar"}},Symbol.toStringTag,{value:"Module"})),"../../../../translations/es.json":Object.freeze(Object.defineProperty({__proto__:null,default:{"orxata.aiSearch.ask":"Preguntar a Sesame IA","orxata.aiSearch.hintAsk":"Preguntar","orxata.aiSearch.hintClose":"Cerrar","orxata.aiSearch.hintNavigate":"Navegar","orxata.aiSearch.stop":"Detener","orxata.aiSearch.thinking":"Pensando...","orxata.alert.close":"Cerrar alerta","orxata.breadcrumb.label":"miga de pan","orxata.breadcrumb.more":"Más","orxata.chatBubble.status.delivered":"Entregado","orxata.chatBubble.status.pending":"Enviando","orxata.chatBubble.status.read":"Leído","orxata.chatBubble.status.sent":"Enviado","orxata.colorPicker.label":"Colores","orxata.combobox.clear":"Limpiar","orxata.combobox.empty":"No se han encontrado resultados.","orxata.combobox.moreSelected":"{count} más seleccionados: {labels}","orxata.combobox.removeChip":"Eliminar {label}","orxata.combobox.showPopup":"Mostrar popup","orxata.comment.actions":"Acciones","orxata.comment.like":"Me gusta","orxata.comment.reply":"Responder","orxata.dialog.close":"Cerrar","orxata.drawer.close":"Cerrar","orxata.drawer.collapse":"Contraer","orxata.drawer.expand":"Expandir","orxata.iconPicker.empty":"No se encontraron iconos","orxata.iconPicker.label":"Iconos","orxata.iconPicker.search":"Buscar icono","orxata.inputOtp.slot":"pin input {index} de {total}","orxata.inputPassword.hide":"Ocultar contraseña","orxata.inputPassword.show":"Mostrar contraseña","orxata.loader.label":"Cargando","orxata.paymentCard.cardholderName":"Nombre del empleado","orxata.paymentCard.type.physical":"Física","orxata.paymentCard.type.subscription":"Subscripción","orxata.paymentCard.type.virtual":"Virtual","orxata.playerPill.action.pause":"Pausar fichaje","orxata.playerPill.action.resume":"Reanudar fichaje","orxata.playerPill.action.start":"Iniciar fichaje","orxata.playerPill.action.stop":"Fichar salida","orxata.playerPill.idle":"Sin fichar","orxata.playerPill.status.paused":"Pausado","orxata.playerPill.status.running":"En marcha","orxata.reaction.add":"Añadir reacción","orxata.reaction.more":"See {count} more reactions","orxata.reaction.moreTitle":"Más reacciones","orxata.reaction.react":"Reaccionar","orxata.reaction.reacted":"Ver {count} reacciones más","orxata.reaction.showMore":"Más emojis","orxata.richText.blockquote":"Cita","orxata.richText.bold":"Negrita","orxata.richText.bulletList":"Lista con viñetas","orxata.richText.code":"Código en línea","orxata.richText.heading1":"Cabecera 1","orxata.richText.heading2":"Cabecera 2","orxata.richText.heading3":"Cabecera 3","orxata.richText.italic":"Cursiva","orxata.richText.orderedList":"Lista numerada","orxata.richText.strike":"Tachado","orxata.richText.underline":"Subrayado","orxata.searchBar.clear":"Limpiar búsqueda","orxata.splitButton.more":"Más opciones","orxata.table.bulkHeader.selected":"Has seleccionado {count} de {total} elementos","orxata.table.columns":"Columnas","orxata.table.empty":"No hay datos disponibles","orxata.table.pagination.next":"Página siguiente","orxata.table.pagination.of":"de","orxata.table.pagination.previous":"Página anterior","orxata.table.pagination.rowsPerPage":"Filas por página","orxata.timePicker.hour":"Hora","orxata.timePicker.minute":"Minuto","orxata.timePicker.open":"Abrir selector de hora","orxata.timePicker.second":"Segundo","orxata.toast.close":"Cerrar"}},Symbol.toStringTag,{value:"Module"})),"../../../../translations/fr.json":Object.freeze(Object.defineProperty({__proto__:null,default:{"orxata.aiSearch.ask":"Demander à Sesame AI","orxata.aiSearch.hintAsk":"Demander","orxata.aiSearch.hintClose":"Fermer","orxata.aiSearch.hintNavigate":"Naviguer","orxata.aiSearch.stop":"Arrêter","orxata.aiSearch.thinking":"En train de réfléchir...","orxata.alert.close":"Fermer l'alerte","orxata.breadcrumb.label":"fil d'Ariane","orxata.breadcrumb.more":"Plus","orxata.chatBubble.status.delivered":"Livré","orxata.chatBubble.status.pending":"En cours d'envoi","orxata.chatBubble.status.read":"Lu","orxata.chatBubble.status.sent":"Non envoyé","orxata.colorPicker.label":"Couleurs","orxata.combobox.clear":"Nettoyer","orxata.combobox.empty":"Aucun résultat trouvé.","orxata.combobox.moreSelected":"{count} de plus sélectionnés : {labels}","orxata.combobox.removeChip":"Supprimer {label}","orxata.combobox.showPopup":"Afficher la fenêtre contextuelle","orxata.comment.actions":"Actions","orxata.comment.like":"J'aime","orxata.comment.reply":"Répondre","orxata.dialog.close":"Fermer","orxata.drawer.close":"Fermer","orxata.drawer.collapse":"Réduire","orxata.drawer.expand":"Développer","orxata.iconPicker.empty":"Aucune icône trouvée","orxata.iconPicker.label":"Icônes","orxata.iconPicker.search":"Chercher une icône","orxata.inputOtp.slot":"saisie du code PIN {index} sur {total}","orxata.inputPassword.hide":"Masquer le mot de passe","orxata.inputPassword.show":"Afficher le mot de passe","orxata.loader.label":"Chargement","orxata.paymentCard.cardholderName":"Nom du collaborateur","orxata.paymentCard.type.physical":"Physique","orxata.paymentCard.type.subscription":"Abonnement","orxata.paymentCard.type.virtual":"Virtuelle","orxata.playerPill.action.pause":"Mettre le pointage en pause","orxata.playerPill.action.resume":"Reprendre le pointage","orxata.playerPill.action.start":"Démarrer le pointage","orxata.playerPill.action.stop":"Pointer sortie","orxata.playerPill.idle":"Sans pointage","orxata.playerPill.status.paused":"En pause","orxata.playerPill.status.running":"En cours","orxata.reaction.add":"Ajouter une réaction","orxata.reaction.more":"Voir {count} réactions de plus","orxata.reaction.moreTitle":"Plus de réactions","orxata.reaction.react":"Réagir","orxata.reaction.reacted":"Voir {count} réactions de plus","orxata.reaction.showMore":"Plus d'emojis","orxata.richText.blockquote":"Citation","orxata.richText.bold":"Gras","orxata.richText.bulletList":"Liste avec vignettes","orxata.richText.code":"Code en ligne","orxata.richText.heading1":"En-tête 1","orxata.richText.heading2":"En-tête 2","orxata.richText.heading3":"En-tête 3","orxata.richText.italic":"Italique","orxata.richText.orderedList":"Liste numérotée","orxata.richText.strike":"Barré","orxata.richText.underline":"Souligné","orxata.searchBar.clear":"Effacer la recherche","orxata.splitButton.more":"Plus d'options","orxata.table.bulkHeader.selected":"Vous avez sélectionné {count} sur {total} éléments","orxata.table.columns":"Colonnes","orxata.table.empty":"Aucune donnée disponible","orxata.table.pagination.next":"Page suivante","orxata.table.pagination.of":"de","orxata.table.pagination.previous":"Page précédente","orxata.table.pagination.rowsPerPage":"Rangées par page","orxata.timePicker.hour":"Heure","orxata.timePicker.minute":"Minute","orxata.timePicker.open":"Ouvrir le sélecteur d'heure","orxata.timePicker.second":"Seconde","orxata.toast.close":"Fermer"}},Symbol.toStringTag,{value:"Module"})),"../../../../translations/it.json":Object.freeze(Object.defineProperty({__proto__:null,default:{"orxata.aiSearch.ask":"Chiedi a Sesame AI","orxata.aiSearch.hintAsk":"Chiedi","orxata.aiSearch.hintClose":"Chiudi","orxata.aiSearch.hintNavigate":"Naviga","orxata.aiSearch.stop":"Interrompi","orxata.aiSearch.thinking":"Sto pensando...","orxata.alert.close":"Chiudi avviso","orxata.breadcrumb.label":"breadcrumb","orxata.breadcrumb.more":"Altro","orxata.chatBubble.status.delivered":"Consegnato","orxata.chatBubble.status.pending":"Invio in corso","orxata.chatBubble.status.read":"Letto","orxata.chatBubble.status.sent":"Non inviato","orxata.colorPicker.label":"Colori","orxata.combobox.clear":"Cancella","orxata.combobox.empty":"Nessun risultato trovato.","orxata.combobox.moreSelected":"{count} altri selezionati: {labels}","orxata.combobox.removeChip":"Elimina {label}","orxata.combobox.showPopup":"Mostra popup","orxata.comment.actions":"Azioni","orxata.comment.like":"Mi piace","orxata.comment.reply":"Rispondi","orxata.dialog.close":"Chiudi","orxata.drawer.close":"Chiudi","orxata.drawer.collapse":"Comprimi","orxata.drawer.expand":"Espandi","orxata.iconPicker.empty":"Nessuna icona trovata","orxata.iconPicker.label":"Icone","orxata.iconPicker.search":"Cerca icona","orxata.inputOtp.slot":"pin input {index} di {total}","orxata.inputPassword.hide":"Nascondi password","orxata.inputPassword.show":"Mostra password","orxata.loader.label":"Caricamento in corso","orxata.paymentCard.cardholderName":"Nome del dipendente","orxata.paymentCard.type.physical":"Fisica","orxata.paymentCard.type.subscription":"Abbonamento","orxata.paymentCard.type.virtual":"Virtuale","orxata.playerPill.action.pause":"Metti in pausa la timbratura","orxata.playerPill.action.resume":"Riprendi la timbratura","orxata.playerPill.action.start":"Avvia timbratura","orxata.playerPill.action.stop":"Timbrare uscita","orxata.playerPill.idle":"Senza timbratura","orxata.playerPill.status.paused":"In pausa","orxata.playerPill.status.running":"In corso","orxata.reaction.add":"Aggiungi reazione","orxata.reaction.more":"Vedi altre {count} reazioni","orxata.reaction.moreTitle":"Più reazioni","orxata.reaction.react":"Reagisci","orxata.reaction.reacted":"Vedi altre {count} reazioni","orxata.reaction.showMore":"Altre emoji","orxata.richText.blockquote":"Citazione","orxata.richText.bold":"Grassetto","orxata.richText.bulletList":"Elenco puntato","orxata.richText.code":"Codice inline","orxata.richText.heading1":"Intestazione 1","orxata.richText.heading2":"Intestazione 2","orxata.richText.heading3":"Intestazione 3","orxata.richText.italic":"Corsivo","orxata.richText.orderedList":"Elenco numerato","orxata.richText.strike":"Barrato","orxata.richText.underline":"Sottolineato","orxata.searchBar.clear":"Pulisci ricerca","orxata.splitButton.more":"Più opzioni","orxata.table.bulkHeader.selected":"Hai selezionato {count} di {total} elementi","orxata.table.columns":"Colonne","orxata.table.empty":"Non ci sono dati disponibili","orxata.table.pagination.next":"Pagina successiva","orxata.table.pagination.of":"di","orxata.table.pagination.previous":"Pagina precedente","orxata.table.pagination.rowsPerPage":"File per pagina","orxata.timePicker.hour":"Ora","orxata.timePicker.minute":"Minuto","orxata.timePicker.open":"Apri selettore dell'ora","orxata.timePicker.second":"Secondo","orxata.toast.close":"Chiudi"}},Symbol.toStringTag,{value:"Module"})),"../../../../translations/nl.json":Object.freeze(Object.defineProperty({__proto__:null,default:{"orxata.aiSearch.hintAsk":"Vragen","orxata.aiSearch.hintClose":"Sluiten","orxata.aiSearch.stop":"Stoppen","orxata.aiSearch.thinking":"Aan het nadenken...","orxata.chatBubble.status.pending":"Verzenden","orxata.chatBubble.status.sent":"Verstuurd","orxata.colorPicker.label":"Kleuren","orxata.combobox.clear":"Wissen","orxata.comment.actions":"Acties","orxata.comment.reply":"Beantwoorden","orxata.dialog.close":"Sluiten","orxata.drawer.close":"Sluiten","orxata.drawer.expand":"Uitbreiden","orxata.loader.label":"Bezig met laden","orxata.paymentCard.cardholderName":"Naam werknemer","orxata.paymentCard.type.physical":"Fysiek","orxata.paymentCard.type.virtual":"Virtueel","orxata.playerPill.action.stop":"Uitklokken","orxata.playerPill.status.paused":"Gepauzeerd","orxata.reaction.moreTitle":"Meer reacties","orxata.reaction.react":"Reageren","orxata.richText.bold":"Vetgedrukt","orxata.richText.bulletList":"Lijst met opsommingstekens","orxata.richText.italic":"Schuingedrukt","orxata.richText.orderedList":"Genummerde lijst","orxata.searchBar.clear":"Zoekopdracht wissen","orxata.splitButton.more":"Meer opties","orxata.table.empty":"Er zijn geen gegevens beschikbaar","orxata.table.pagination.of":"van","orxata.table.pagination.rowsPerPage":"Rijen per pagina","orxata.timePicker.hour":"Tijd","orxata.timePicker.minute":"Minuut","orxata.toast.close":"Sluiten"}},Symbol.toStringTag,{value:"Module"})),"../../../../translations/pl.json":Object.freeze(Object.defineProperty({__proto__:null,default:{"orxata.aiSearch.ask":"Zapytaj Sesame AI","orxata.aiSearch.hintAsk":"Zapytaj","orxata.aiSearch.hintClose":"Zamknij","orxata.aiSearch.hintNavigate":"Nawiguj","orxata.aiSearch.stop":"Zatrzymaj","orxata.aiSearch.thinking":"Myślę...","orxata.alert.close":"Zamknij alert","orxata.breadcrumb.label":"ścieżka nawigacji","orxata.breadcrumb.more":"Więcej","orxata.chatBubble.status.delivered":"Dostarczono","orxata.chatBubble.status.pending":"Wysyłanie","orxata.chatBubble.status.read":"Przeczytano","orxata.chatBubble.status.sent":"Wysłano","orxata.colorPicker.label":"Kolory","orxata.combobox.clear":"Wyczyść","orxata.combobox.empty":"Nie znaleziono wyników.","orxata.combobox.moreSelected":"Wybrano jeszcze {count}: {labels}","orxata.combobox.removeChip":"Usuń {label}","orxata.combobox.showPopup":"Pokaż okno podręczne","orxata.dialog.close":"Zamknij","orxata.drawer.close":"Zamknij","orxata.drawer.collapse":"Zwiń","orxata.drawer.expand":"Rozwiń","orxata.iconPicker.empty":"Nie znaleziono ikon","orxata.iconPicker.label":"Ikony","orxata.iconPicker.search":"Szukaj ikony","orxata.inputOtp.slot":"pole PIN {index} z {total}","orxata.inputPassword.hide":"Ukryj hasło","orxata.inputPassword.show":"Pokaż hasło","orxata.loader.label":"Ładowanie","orxata.paymentCard.cardholderName":"Imię i nazwisko pracownika","orxata.paymentCard.type.physical":"Fizyczna","orxata.paymentCard.type.subscription":"Subskrypcja","orxata.paymentCard.type.virtual":"Wirtualna","orxata.playerPill.action.pause":"Wstrzymaj wpis pracy","orxata.playerPill.action.resume":"Wznów wpis pracy","orxata.playerPill.action.start":"Rozpocznij wpis pracy","orxata.playerPill.action.stop":"Zarejestruj wyjście","orxata.playerPill.idle":"Brak wpisu pracy","orxata.playerPill.status.paused":"Wstrzymany","orxata.playerPill.status.running":"W toku","orxata.richText.blockquote":"Cytat","orxata.richText.bold":"Pogrubienie","orxata.richText.bulletList":"Lista punktowana","orxata.richText.code":"Kod w linii","orxata.richText.heading1":"Nagłówek 1","orxata.richText.heading2":"Nagłówek 2","orxata.richText.heading3":"Nagłówek 3","orxata.richText.italic":"Kursywa","orxata.richText.orderedList":"Lista numerowana","orxata.richText.strike":"Przekreślenie","orxata.richText.underline":"Podkreślenie","orxata.searchBar.clear":"Wyczyść wyszukiwanie","orxata.splitButton.more":"Więcej opcji","orxata.table.bulkHeader.selected":"Wybrano {count} z {total} elementów","orxata.table.columns":"Kolumny","orxata.table.empty":"Brak dostępnych danych","orxata.table.pagination.next":"Następna strona","orxata.table.pagination.of":"z","orxata.table.pagination.previous":"Poprzednia strona","orxata.table.pagination.rowsPerPage":"Wierszy na stronę","orxata.timePicker.hour":"Godzina","orxata.timePicker.minute":"Minuta","orxata.timePicker.open":"Otwórz wybór godziny","orxata.timePicker.second":"Sekunda","orxata.toast.close":"Zamknij"}},Symbol.toStringTag,{value:"Module"})),"../../../../translations/pt-BR.json":Object.freeze(Object.defineProperty({__proto__:null,default:{"orxata.aiSearch.ask":"Perguntar à Sesame IA","orxata.aiSearch.hintAsk":"Perguntar","orxata.aiSearch.hintClose":"Fechar","orxata.aiSearch.hintNavigate":"Navegar","orxata.aiSearch.stop":"Parar","orxata.aiSearch.thinking":"Pensando...","orxata.alert.close":"Fechar alerta","orxata.breadcrumb.label":"trilha de navegação","orxata.breadcrumb.more":"Mais","orxata.chatBubble.status.delivered":"Entregue","orxata.chatBubble.status.pending":"Enviando","orxata.chatBubble.status.read":"Lido","orxata.chatBubble.status.sent":"Enviado","orxata.colorPicker.label":"Cores","orxata.combobox.clear":"Limpar","orxata.combobox.empty":"Nenhum resultado encontrado.","orxata.combobox.moreSelected":"{count} selecionados a mais: {labels}","orxata.combobox.removeChip":"Remover {label}","orxata.combobox.showPopup":"Exibir pop-up","orxata.comment.actions":"Ações","orxata.comment.like":"Curtir","orxata.comment.reply":"Responder","orxata.dialog.close":"Fechar","orxata.drawer.close":"Fechar","orxata.drawer.collapse":"Recolher","orxata.drawer.expand":"Expandir","orxata.iconPicker.empty":"Nenhum ícone encontrado","orxata.iconPicker.label":"Ícones","orxata.iconPicker.search":"Buscar ícone","orxata.inputOtp.slot":"campo de PIN {index} de {total}","orxata.inputPassword.hide":"Ocultar senha","orxata.inputPassword.show":"Mostrar senha","orxata.loader.label":"Carregando","orxata.paymentCard.cardholderName":"Nome do funcionário","orxata.paymentCard.type.physical":"Físico","orxata.paymentCard.type.subscription":"Assinatura","orxata.paymentCard.type.virtual":"Virtual","orxata.playerPill.action.pause":"Pausar registro de ponto","orxata.playerPill.action.resume":"Retomar registro de ponto","orxata.playerPill.action.start":"Iniciar registro de ponto","orxata.playerPill.action.stop":"Registrar saída","orxata.playerPill.idle":"Sem registro de ponto","orxata.playerPill.status.paused":"Pausado","orxata.playerPill.status.running":"Em andamento","orxata.reaction.add":"Adicionar reação","orxata.reaction.more":"Ver mais {count} reações","orxata.reaction.moreTitle":"Mais reações","orxata.reaction.react":"Reagir","orxata.reaction.reacted":"Ver mais {count} reações","orxata.reaction.showMore":"Mais emojis","orxata.richText.blockquote":"Citação","orxata.richText.bold":"Negrito","orxata.richText.bulletList":"Lista com marcadores","orxata.richText.code":"Código em linha","orxata.richText.heading1":"Título 1","orxata.richText.heading2":"Título 2","orxata.richText.heading3":"Título 3","orxata.richText.italic":"Itálico","orxata.richText.orderedList":"Lista numerada","orxata.richText.strike":"Tachado","orxata.richText.underline":"Sublinhado","orxata.searchBar.clear":"Limpar busca","orxata.splitButton.more":"Mais opções","orxata.table.bulkHeader.selected":"Você selecionou {count} de {total} itens","orxata.table.columns":"Colunas","orxata.table.empty":"Não há dados disponíveis","orxata.table.pagination.next":"Próxima página","orxata.table.pagination.of":"de","orxata.table.pagination.previous":"Página anterior","orxata.table.pagination.rowsPerPage":"Linhas por página","orxata.timePicker.hour":"Hora","orxata.timePicker.minute":"Minuto","orxata.timePicker.open":"Abrir seletor de hora","orxata.timePicker.second":"Segundo","orxata.toast.close":"Fechar"}},Symbol.toStringTag,{value:"Module"})),"../../../../translations/pt.json":Object.freeze(Object.defineProperty({__proto__:null,default:{"orxata.aiSearch.ask":"Perguntar à Sesame IA","orxata.aiSearch.hintAsk":"Perguntar","orxata.aiSearch.hintClose":"Fechar","orxata.aiSearch.hintNavigate":"Navegar","orxata.aiSearch.stop":"Parar","orxata.aiSearch.thinking":"A pensar...","orxata.alert.close":"Fechar alerta","orxata.breadcrumb.label":"Caminho de navegação","orxata.breadcrumb.more":"Mais","orxata.chatBubble.status.delivered":"Entregue","orxata.chatBubble.status.pending":"A enviar","orxata.chatBubble.status.read":"Lido","orxata.chatBubble.status.sent":"Enviado","orxata.colorPicker.label":"Cores","orxata.combobox.clear":"Limpar","orxata.combobox.empty":"Não foram encontrados resultados.","orxata.combobox.moreSelected":"Mais {count} selecionados: {labels}","orxata.combobox.removeChip":"Eliminar {label}","orxata.combobox.showPopup":"Mostrar popup","orxata.comment.actions":"Ações","orxata.comment.like":"Gosto","orxata.comment.reply":"Responder","orxata.dialog.close":"Fechar","orxata.drawer.close":"Fechar","orxata.drawer.collapse":"Contrair","orxata.drawer.expand":"Expandir","orxata.iconPicker.empty":"Não foram encontrados ícones","orxata.iconPicker.label":"Ícones","orxata.iconPicker.search":"Procurar ícone","orxata.inputOtp.slot":"Campo de PIN {index} de {total}","orxata.inputPassword.hide":"Ocultar palavra-passe","orxata.inputPassword.show":"Mostrar palavra-passe","orxata.loader.label":"A carregar","orxata.paymentCard.cardholderName":"Nome do colaborador","orxata.paymentCard.type.physical":"Física","orxata.paymentCard.type.subscription":"Subscrição","orxata.paymentCard.type.virtual":"Virtual","orxata.playerPill.action.pause":"Pausar registo de ponto","orxata.playerPill.action.resume":"Retomar registo de ponto","orxata.playerPill.action.start":"Iniciar registo de ponto","orxata.playerPill.action.stop":"Registar saída","orxata.playerPill.idle":"Sem registo","orxata.playerPill.status.paused":"Em pausa","orxata.playerPill.status.running":"Em curso","orxata.reaction.add":"Adicionar reação","orxata.reaction.more":"Ver mais {count} reações","orxata.reaction.moreTitle":"Mais reações","orxata.reaction.react":"Reagir","orxata.reaction.reacted":"Ver mais {count} reações","orxata.reaction.showMore":"Mais emojis","orxata.richText.blockquote":"Citação","orxata.richText.bold":"Negrito","orxata.richText.bulletList":"Lista com marcadores","orxata.richText.code":"Código em linha","orxata.richText.heading1":"Cabeçalho 1","orxata.richText.heading2":"Cabeçalho 2","orxata.richText.heading3":"Cabeçalho 3","orxata.richText.italic":"Itálico","orxata.richText.orderedList":"Lista numerada","orxata.richText.strike":"Rasurado","orxata.richText.underline":"Sublinhado","orxata.searchBar.clear":"Limpar pesquisa","orxata.splitButton.more":"Mais opções","orxata.table.bulkHeader.selected":"Selecionou {count} de {total} elementos","orxata.table.columns":"Colunas","orxata.table.empty":"Não há dados disponíveis","orxata.table.pagination.next":"Página seguinte","orxata.table.pagination.of":"de","orxata.table.pagination.previous":"Página anterior","orxata.table.pagination.rowsPerPage":"Linhas por página","orxata.timePicker.hour":"Hora","orxata.timePicker.minute":"Minuto","orxata.timePicker.open":"Abrir seletor de hora","orxata.timePicker.second":"Segundo","orxata.toast.close":"Fechar"}},Symbol.toStringTag,{value:"Module"}))}),AI=e=>e.slice(e.lastIndexOf("/")+1,-5),NI=e=>Object.fromEntries(Object.entries(e).map(([t,o])=>[t,(o==null?void 0:o.replace(/\{(\w+)\}/g,"{{$1}}"))??""])),ix=Object.fromEntries(Object.entries(OI).map(([e,t])=>[AI(e),t.default])),$I=Object.fromEntries(Object.entries(ix).map(([e,t])=>[e,NI(t)])),lx=ix.en??{},Zu=h.createContext(void 0),FI=(e,t)=>t?e.replace(/\{(\w+)\}/g,(o,n)=>n in t?String(t[n]):o):e,ve=()=>{const e=h.useContext(Zu);return h.useCallback((t,o)=>{const n=e==null?void 0:e(t,o);return n!==void 0&&n!==t?n:FI(lx[t]??t,o)},[e])},cx=({locale:e,t,children:o})=>{const n=h.useMemo(()=>sx(e),[e]);return u.jsx(Xu.Provider,{value:n,children:u.jsx(Zu.Provider,{value:t,children:o})})};cx.displayName="OxLocaleProvider";var LI=Object.defineProperty,Nr=(e,t)=>LI(e,"name",{value:t,configurable:!0}),ux=!!(typeof window<"u"&&window.document&&window.document.createElement);function ne(e,t,{checkForDefaultPrevented:o=!0}={}){return Nr(function(r){if(e==null||e(r),o===!1||!r||!r.defaultPrevented)return t==null?void 0:t(r)},"handleEvent")}Nr(ne,"composeEventHandlers");function zI(e){var t;if(!ux)throw new Error("Cannot access window outside of the DOM");return((t=e==null?void 0:e.ownerDocument)==null?void 0:t.defaultView)??window}Nr(zI,"getOwnerWindow");function Ju(e){if(!ux)throw new Error("Cannot access document outside of the DOM");return(e==null?void 0:e.ownerDocument)??document}Nr(Ju,"getOwnerDocument");function dx(e,t=!1){const{activeElement:o}=Ju(e);if(!(o!=null&&o.nodeName))return null;if(fx(o)&&o.contentDocument)return dx(o.contentDocument.body,t);if(t){const n=o.getAttribute("aria-activedescendant");if(n){const r=Ju(o).getElementById(n);if(r)return r}}return o}Nr(dx,"getActiveElement");function fx(e){return e.tagName==="IFRAME"}Nr(fx,"isFrame");var BI=Object.defineProperty,Qu=(e,t)=>BI(e,"name",{value:t,configurable:!0});function ed(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}Qu(ed,"setRef");function px(...e){return t=>{let o=!1;const n=e.map(r=>{const a=ed(r,t);return!o&&typeof a=="function"&&(o=!0),a});if(o)return()=>{for(let r=0;r<n.length;r++){const a=n[r];typeof a=="function"?a():ed(e[r],null)}}}}Qu(px,"composeRefs");function he(...e){return v.useCallback(px(...e),e)}Qu(he,"useComposedRefs");var HI=Object.defineProperty,Ut=(e,t)=>HI(e,"name",{value:t,configurable:!0});function VI(e,t){const o=v.createContext(t);o.displayName=e+"Context";const n=Ut(a=>{const{children:s,...i}=a,l=v.useMemo(()=>i,Object.values(i));return u.jsx(o.Provider,{value:l,children:s})},"Provider");n.displayName=e+"Provider";function r(a,s={}){const{optional:i=!1}=s,l=v.useContext(o);if(l)return l;if(t!==void 0)return t;if(!i)throw new Error(`\`${a}\` must be used within \`${e}\``)}return Ut(r,"useContext"),[n,r]}Ut(VI,"createContext");function qt(e,t=[]){let o=[];function n(a,s){const i=v.createContext(s);i.displayName=a+"Context";const l=o.length;o=[...o,s];const c=Ut(f=>{var y;const{scope:p,children:g,...x}=f,m=((y=p==null?void 0:p[e])==null?void 0:y[l])||i,b=v.useMemo(()=>x,Object.values(x));return u.jsx(m.Provider,{value:b,children:g})},"Provider");c.displayName=a+"Provider";function d(f,p,g={}){var y;const{optional:x=!1}=g,m=((y=p==null?void 0:p[e])==null?void 0:y[l])||i,b=v.useContext(m);if(b)return b;if(s!==void 0)return s;if(!x)throw new Error(`\`${f}\` must be used within \`${a}\``)}return Ut(d,"useContext"),[c,d]}Ut(n,"createContext");const r=Ut(()=>{const a=o.map(s=>v.createContext(s));return Ut(function(i){const l=(i==null?void 0:i[e])||a;return v.useMemo(()=>({[`__scope${e}`]:{...i,[e]:l}}),[i,l])},"useScope")},"createScope");return r.scopeName=e,[n,hx(r,...t)]}Ut(qt,"createContextScope");function hx(...e){const t=e[0];if(e.length===1)return t;const o=Ut(()=>{const n=e.map(r=>({useScope:r(),scopeName:r.scopeName}));return Ut(function(a){const s=n.reduce((i,{useScope:l,scopeName:c})=>{const f=l(a)[`__scope${c}`];return{...i,...f}},{});return v.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])},"useComposedScopes")},"createScope");return o.scopeName=t.scopeName,o}Ut(hx,"composeContextScopes");var He=globalThis!=null&&globalThis.document?v.useLayoutEffect:()=>{},WI=Object.defineProperty,RI=(e,t)=>WI(e,"name",{value:t,configurable:!0}),gx=v[" useEffectEvent ".trim().toString()],mx=v[" useInsertionEffect ".trim().toString()];function td(e){if(typeof gx=="function")return gx(e);const t=v.useRef(()=>{throw new Error("Cannot call an event handler while rendering.")});return typeof mx=="function"?mx(()=>{t.current=e}):He(()=>{t.current=e}),v.useMemo(()=>((...o)=>{var n;return(n=t.current)==null?void 0:n.call(t,...o)}),[])}RI(td,"useEffectEvent");var GI=Object.defineProperty,Ua=(e,t)=>GI(e,"name",{value:t,configurable:!0}),jI=v[" useInsertionEffect ".trim().toString()]||He;function Un({prop:e,defaultProp:t,onChange:o=Ua(()=>{},"onChange"),caller:n}){const[r,a,s]=xx({defaultProp:t,onChange:o}),i=e!==void 0,l=i?e:r,c=v.useCallback(d=>{var f;if(i){const p=bx(d)?d(e):d;p!==e&&((f=s.current)==null||f.call(s,p))}else a(d)},[i,e,a,s]);return[l,c]}Ua(Un,"useControllableState");function xx({defaultProp:e,onChange:t}){const[o,n]=v.useState(e),r=v.useRef(o),a=v.useRef(t);return jI(()=>{a.current=t},[t]),v.useEffect(()=>{var s;r.current!==o&&((s=a.current)==null||s.call(a,o),r.current=o)},[o,r]),[o,n,a]}Ua(xx,"useUncontrolledState");function bx(e){return typeof e=="function"}Ua(bx,"isFunction");var vx=Symbol("RADIX:SYNC_STATE");function UI(e,t,o,n){const{prop:r,defaultProp:a,onChange:s,caller:i}=t,l=r!==void 0,c=td(s),d=[{...o,state:a}];n&&d.push(n);const[f,p]=v.useReducer((b,y)=>{if(y.type===vx)return{...b,state:y.state};const C=e(b,y);return l&&!Object.is(C.state,b.state)&&c(C.state),C},...d),g=f.state,x=v.useRef(g);v.useEffect(()=>{x.current!==g&&(x.current=g,l||c(g))},[g,x,l]);const m=v.useMemo(()=>r!==void 0?{...f,state:r}:f,[f,r]);return v.useEffect(()=>{l&&!Object.is(r,f.state)&&p({type:vx,state:r})},[r,f.state,l]),[m,p]}Ua(UI,"useControllableStateReducer");var qI=Object.defineProperty,ro=(e,t)=>qI(e,"name",{value:t,configurable:!0});function gn(e){const t=v.forwardRef((o,n)=>{let{children:r,...a}=o,s=null,i=!1;const l=[];od(r)&&typeof Mi=="function"&&(r=Mi(r._payload)),v.Children.forEach(r,p=>{var g;if(_x(p)){i=!0;const x=p;let m="child"in x.props?x.props.child:x.props.children;od(m)&&typeof Mi=="function"&&(m=Mi(m._payload)),s=KI(x,m),l.push((g=s==null?void 0:s.props)==null?void 0:g.children)}else l.push(p)}),s?s=v.cloneElement(s,void 0,l):!i&&v.Children.count(r)===1&&v.isValidElement(r)&&(s=r);const c=s?Cx(s):void 0,d=he(n,c);if(!s){if(r||r===0)throw new Error(i?JI(e):ZI(e));return r}const f=wx(a,s.props??{});return s.type!==v.Fragment&&(f.ref=n?d:c),v.cloneElement(s,f)});return t.displayName=`${e}.Slot`,t}ro(gn,"createSlot");var yx=Symbol.for("radix.slottable");function YI(e){const t=ro(o=>"child"in o?o.children(o.child):o.children,"Slottable");return t.displayName=`${e}.Slottable`,t.__radixId=yx,t}ro(YI,"createSlottable");var KI=ro((e,t)=>{if("child"in e.props){const o=e.props.child;return v.isValidElement(o)?v.cloneElement(o,void 0,e.props.children(o.props.children)):null}return v.isValidElement(t)?t:null},"getSlottableElementFromSlottable");function wx(e,t){const o={...t};for(const n in t){const r=e[n],a=t[n];/^on[A-Z]/.test(n)?r&&a?o[n]=(...i)=>{const l=a(...i);return r(...i),l}:r&&(o[n]=r):n==="style"?o[n]={...r,...a}:n==="className"&&(o[n]=[r,a].filter(Boolean).join(" "))}return{...e,...o}}ro(wx,"mergeProps");function Cx(e){var n,r;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,o=t&&"isReactWarning"in t&&t.isReactWarning;return o?e.ref:(t=(r=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:r.get,o=t&&"isReactWarning"in t&&t.isReactWarning,o?e.props.ref:e.props.ref||e.ref)}ro(Cx,"getElementRef");function _x(e){return v.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===yx}ro(_x,"isSlottable");var XI=Symbol.for("react.lazy");function od(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===XI&&"_payload"in e&&Sx(e._payload)}ro(od,"isLazyComponent");function Sx(e){return typeof e=="object"&&e!==null&&"then"in e}ro(Sx,"isPromiseLike");var ZI=ro(e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,"createSlotError"),JI=ro(e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,"createSlottableError"),Mi=v[" use ".trim().toString()],QI=Object.defineProperty,eD=(e,t)=>QI(e,"name",{value:t,configurable:!0}),tD=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],ze=tD.reduce((e,t)=>{const o=gn(`Primitive.${t}`),n=v.forwardRef((r,a)=>{const{asChild:s,...i}=r,l=s?o:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),u.jsx(l,{...i,ref:a})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function nd(e,t){e&&no.flushSync(()=>e.dispatchEvent(t))}eD(nd,"dispatchDiscreteCustomEvent");var oD=Object.defineProperty,ct=(e,t)=>oD(e,"name",{value:t,configurable:!0});function Oi(e){const t=e+"CollectionProvider",[o,n]=qt(t),[r,a]=o(t,{collectionRef:{current:null},itemMap:new Map}),s=ct(m=>{const{scope:b,children:y}=m,C=v.useRef(null),w=v.useRef(new Map).current;return u.jsx(r,{scope:b,itemMap:w,collectionRef:C,children:y})},"CollectionProvider");s.displayName=t;const i=e+"CollectionSlot",l=gn(i),c=v.forwardRef((m,b)=>{const{scope:y,children:C}=m,w=a(i,y),P=he(b,w.collectionRef);return u.jsx(l,{ref:P,children:C})});c.displayName=i;const d=e+"CollectionItemSlot",f="data-radix-collection-item",p=gn(d),g=v.forwardRef((m,b)=>{const{scope:y,children:C,...w}=m,P=v.useRef(null),S=he(b,P),_=a(d,y);return v.useEffect(()=>(_.itemMap.set(P,{ref:P,...w}),()=>void _.itemMap.delete(P))),u.jsx(p,{[f]:"",ref:S,children:C})});g.displayName=d;function x(m){const b=a(e+"CollectionConsumer",m);return v.useCallback(()=>{const C=b.collectionRef.current;if(!C)return[];const w=Array.from(C.querySelectorAll(`[${f}]`));return Array.from(b.itemMap.values()).sort((_,T)=>w.indexOf(_.ref.current)-w.indexOf(T.ref.current))},[b.collectionRef,b.itemMap])}return ct(x,"useCollection"),[{Provider:s,Slot:c,ItemSlot:g},x,n]}ct(Oi,"createCollection");var Px=new WeakMap,rd=(Wt=class extends Map{constructor(o){super(o);Cu(this,Qe);Sr(this,Qe,[...super.keys()]),Px.set(this,!0)}set(o,n){return Px.get(this)&&(this.has(o)?pe(this,Qe)[pe(this,Qe).indexOf(o)]=o:pe(this,Qe).push(o)),super.set(o,n),this}insert(o,n,r){const a=this.has(n),s=pe(this,Qe).length,i=ad(o);let l=i>=0?i:s+i;const c=l<0||l>=s?-1:l;if(c===this.size||a&&c===this.size-1||c===-1)return this.set(n,r),this;const d=this.size+(a?0:1);i<0&&l++;const f=[...pe(this,Qe)];let p,g=!1;for(let x=l;x<d;x++)if(l===x){let m=f[x];f[x]===n&&(m=f[x+1]),a&&this.delete(n),p=this.get(m),this.set(n,r)}else{!g&&f[x-1]===n&&(g=!0);const m=f[g?x:x-1],b=p;p=this.get(m),this.delete(m),this.set(m,b)}return this}with(o,n,r){const a=new Wt(this);return a.insert(o,n,r),a}before(o){const n=pe(this,Qe).indexOf(o)-1;if(!(n<0))return this.entryAt(n)}setBefore(o,n,r){const a=pe(this,Qe).indexOf(o);return a===-1?this:this.insert(a,n,r)}after(o){let n=pe(this,Qe).indexOf(o);if(n=n===-1||n===this.size-1?-1:n+1,n!==-1)return this.entryAt(n)}setAfter(o,n,r){const a=pe(this,Qe).indexOf(o);return a===-1?this:this.insert(a+1,n,r)}first(){return this.entryAt(0)}last(){return this.entryAt(-1)}clear(){return Sr(this,Qe,[]),super.clear()}delete(o){const n=super.delete(o);return n&&pe(this,Qe).splice(pe(this,Qe).indexOf(o),1),n}deleteAt(o){const n=this.keyAt(o);return n!==void 0?this.delete(n):!1}at(o){const n=Ai(pe(this,Qe),o);if(n!==void 0)return this.get(n)}entryAt(o){const n=Ai(pe(this,Qe),o);if(n!==void 0)return[n,this.get(n)]}indexOf(o){return pe(this,Qe).indexOf(o)}keyAt(o){return Ai(pe(this,Qe),o)}from(o,n){const r=this.indexOf(o);if(r===-1)return;let a=r+n;return a<0&&(a=0),a>=this.size&&(a=this.size-1),this.at(a)}keyFrom(o,n){const r=this.indexOf(o);if(r===-1)return;let a=r+n;return a<0&&(a=0),a>=this.size&&(a=this.size-1),this.keyAt(a)}find(o,n){let r=0;for(const a of this){if(Reflect.apply(o,n,[a,r,this]))return a;r++}}findIndex(o,n){let r=0;for(const a of this){if(Reflect.apply(o,n,[a,r,this]))return r;r++}return-1}filter(o,n){const r=[];let a=0;for(const s of this)Reflect.apply(o,n,[s,a,this])&&r.push(s),a++;return new Wt(r)}map(o,n){const r=[];let a=0;for(const s of this)r.push([s[0],Reflect.apply(o,n,[s,a,this])]),a++;return new Wt(r)}reduce(...o){const[n,r]=o;let a=0,s=r??this.at(0);for(const i of this)a===0&&o.length===1?s=i:s=Reflect.apply(n,this,[s,i,a,this]),a++;return s}reduceRight(...o){const[n,r]=o;let a=r??this.at(-1);for(let s=this.size-1;s>=0;s--){const i=this.at(s);s===this.size-1&&o.length===1?a=i:a=Reflect.apply(n,this,[a,i,s,this])}return a}toSorted(o){const n=[...this.entries()].sort(o);return new Wt(n)}toReversed(){const o=new Wt;for(let n=this.size-1;n>=0;n--){const r=this.keyAt(n),a=this.get(r);o.set(r,a)}return o}toSpliced(...o){const n=[...this.entries()];return n.splice(...o),new Wt(n)}slice(o,n){const r=new Wt;let a=this.size-1;if(o===void 0)return r;o<0&&(o=o+this.size),n!==void 0&&n>0&&(a=n-1);for(let s=o;s<=a;s++){const i=this.keyAt(s),l=this.get(i);r.set(i,l)}return r}every(o,n){let r=0;for(const a of this){if(!Reflect.apply(o,n,[a,r,this]))return!1;r++}return!0}some(o,n){let r=0;for(const a of this){if(Reflect.apply(o,n,[a,r,this]))return!0;r++}return!1}},Qe=new WeakMap,ct(Wt,"OrderedDict"),Wt);function Ai(e,t){if("at"in Array.prototype)return Array.prototype.at.call(e,t);const o=Tx(e,t);return o===-1?void 0:e[o]}ct(Ai,"at");function Tx(e,t){const o=e.length,n=ad(t),r=n>=0?n:o+n;return r<0||r>=o?-1:r}ct(Tx,"toSafeIndex");function ad(e){return e!==e||e===0?0:Math.trunc(e)}ct(ad,"toSafeInteger");function nD(e){const t=e+"CollectionProvider",[o,n]=qt(t),[r,a]=o(t,{collectionElement:null,collectionRef:{current:null},collectionRefObject:{current:null},itemMap:new rd,setItemMap:ct(()=>{},"setItemMap")}),s=ct(({state:w,...P})=>w?u.jsx(l,{...P,state:w}):u.jsx(i,{...P}),"CollectionProvider");s.displayName=t;const i=ct(w=>{const P=b();return u.jsx(l,{...w,state:P})},"CollectionInit");i.displayName=t+"Init";const l=ct(w=>{const{scope:P,children:S,state:_}=w,T=v.useRef(null),[k,E]=v.useState(null),D=he(T,E),[O,N]=_;return v.useEffect(()=>{if(!k)return;const z=Ix(()=>{});return z.observe(k,{childList:!0,subtree:!0}),()=>{z.disconnect()}},[k]),u.jsx(r,{scope:P,itemMap:O,setItemMap:N,collectionRef:D,collectionRefObject:T,collectionElement:k,children:S})},"CollectionProviderImpl");l.displayName=t+"Impl";const c=e+"CollectionSlot",d=gn(c),f=v.forwardRef((w,P)=>{const{scope:S,children:_}=w,T=a(c,S),k=he(P,T.collectionRef);return u.jsx(d,{ref:k,children:_})});f.displayName=c;const p=e+"CollectionItemSlot",g="data-radix-collection-item",x=gn(p),m=v.forwardRef((w,P)=>{const{scope:S,children:_,...T}=w,k=v.useRef(null),[E,D]=v.useState(null),O=he(P,k,D),N=a(p,S),{setItemMap:z}=N,B=v.useRef(T);kx(B.current,T)||(B.current=T);const G=B.current;return v.useEffect(()=>{const R=G;return z(A=>E?A.has(E)?A.set(E,{...R,element:E}).toSorted(sd):(A.set(E,{...R,element:E}),A.toSorted(sd)):A),()=>{z(A=>!E||!A.has(E)?A:(A.delete(E),new rd(A)))}},[E,G,z]),u.jsx(x,{[g]:"",ref:O,children:_})});m.displayName=p;function b(){return v.useState(new rd)}ct(b,"useInitCollection");function y(w){const{itemMap:P}=a(e+"CollectionConsumer",w);return P}return ct(y,"useCollection"),[{Provider:s,Slot:f,ItemSlot:m},{createCollectionScope:n,useCollection:y,useInitCollection:b}]}ct(nD,"createCollection");function kx(e,t){if(e===t)return!0;if(typeof e!="object"||typeof t!="object"||e==null||t==null)return!1;const o=Object.keys(e),n=Object.keys(t);if(o.length!==n.length)return!1;for(const r of o)if(!Object.prototype.hasOwnProperty.call(t,r)||e[r]!==t[r])return!1;return!0}ct(kx,"shallowEqual");function Ex(e,t){return!!(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING)}ct(Ex,"isElementPreceding");function sd(e,t){return!e[1].element||!t[1].element?0:Ex(e[1].element,t[1].element)?-1:1}ct(sd,"sortByDocumentPosition");function Ix(e){return new MutationObserver(o=>{for(const n of o)if(n.type==="childList"){e();return}})}ct(Ix,"getChildListObserver");var rD=Object.defineProperty,aD=(e,t)=>rD(e,"name",{value:t,configurable:!0}),sD=v.createContext(void 0);function Ni(e){const t=v.useContext(sD);return e||t||"ltr"}aD(Ni,"useDirection");var iD=Object.defineProperty,lD=(e,t)=>iD(e,"name",{value:t,configurable:!0});function Ye(e){const t=v.useRef(e);return v.useEffect(()=>{t.current=e}),v.useMemo(()=>((...o)=>{var n;return(n=t.current)==null?void 0:n.call(t,...o)}),[])}lD(Ye,"useCallbackRef");var cD=Object.defineProperty,ut=(e,t)=>cD(e,"name",{value:t,configurable:!0}),id="dismissableLayer.update",uD="dismissableLayer.pointerDownOutside",dD="dismissableLayer.focusOutside",Dx,Mx=v.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set,dismissableSurfaces:new Set}),Ox=v.forwardRef(ut(function(t,o){const{disableOutsidePointerEvents:n=!1,deferPointerDownOutside:r=!1,onEscapeKeyDown:a,onPointerDownOutside:s,onFocusOutside:i,onInteractOutside:l,onDismiss:c,...d}=t,f=v.useContext(Mx),[p,g]=v.useState(null),x=(p==null?void 0:p.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,m]=v.useState({}),b=he(o,g),y=Array.from(f.layers),[C]=[...f.layersWithOutsidePointerEventsDisabled].slice(-1),w=C?y.indexOf(C):-1,P=p?y.indexOf(p):-1,S=f.layersWithOutsidePointerEventsDisabled.size>0,_=P>=w,T=v.useRef(!1),k=Ax(N=>{s==null||s(N),l==null||l(N),N.defaultPrevented||c==null||c()},{ownerDocument:x,deferPointerDownOutside:r,isDeferredPointerDownOutsideRef:T,dismissableSurfaces:f.dismissableSurfaces,shouldHandlePointerDownOutside:v.useCallback(N=>{if(!(N instanceof Node))return!1;const z=[...f.branches].some(B=>B.contains(N));return _&&!z},[f.branches,_])}),E=Nx(N=>{if(r&&T.current)return;const z=N.target;[...f.branches].some(G=>G.contains(z))||(i==null||i(N),l==null||l(N),N.defaultPrevented||c==null||c())},x),D=p?P===y.length-1:!1,O=Ye(N=>{N.key==="Escape"&&(a==null||a(N),!N.defaultPrevented&&c&&(N.preventDefault(),c()))});return v.useEffect(()=>{if(D)return x.addEventListener("keydown",O,{capture:!0}),()=>x.removeEventListener("keydown",O,{capture:!0})},[x,D,O]),v.useEffect(()=>{if(p)return n&&(f.layersWithOutsidePointerEventsDisabled.size===0&&(Dx=x.body.style.pointerEvents,x.body.style.pointerEvents="none"),f.layersWithOutsidePointerEventsDisabled.add(p)),f.layers.add(p),ld(),()=>{n&&(f.layersWithOutsidePointerEventsDisabled.delete(p),f.layersWithOutsidePointerEventsDisabled.size===0&&(x.body.style.pointerEvents=Dx))}},[p,x,n,f]),v.useEffect(()=>()=>{p&&(f.layers.delete(p),f.layersWithOutsidePointerEventsDisabled.delete(p),ld())},[p,f]),v.useEffect(()=>{const N=ut(()=>m({}),"handleUpdate");return document.addEventListener(id,N),()=>document.removeEventListener(id,N)},[]),u.jsx(ze.div,{...d,ref:b,style:{pointerEvents:S?_?"auto":"none":void 0,...t.style},onFocusCapture:ne(t.onFocusCapture,E.onFocusCapture),onBlurCapture:ne(t.onBlurCapture,E.onBlurCapture),onPointerDownCapture:ne(t.onPointerDownCapture,k.onPointerDownCapture)})},"DismissableLayer"));function fD(){const e=v.useContext(Mx),[t,o]=v.useState(null);return v.useEffect(()=>{if(t)return e.dismissableSurfaces.add(t),()=>{e.dismissableSurfaces.delete(t)}},[t,e.dismissableSurfaces]),o}ut(fD,"useDismissableLayerSurface");var pD=ut(()=>!0,"IS_TRUE");function Ax(e,t){const{ownerDocument:o=globalThis==null?void 0:globalThis.document,deferPointerDownOutside:n=!1,isDeferredPointerDownOutsideRef:r,dismissableSurfaces:a,shouldHandlePointerDownOutside:s=pD}=t,i=Ye(e),l=v.useRef(!1),c=v.useRef(!1),d=v.useRef(new Map),f=v.useRef(()=>{});return v.useEffect(()=>{function p(){c.current=!1,r.current=!1,d.current.clear()}ut(p,"resetOutsideInteraction");function g(){return Array.from(d.current.values()).some(Boolean)}ut(g,"isOutsideInteractionIntercepted");function x(w){if(!c.current)return;const P=w.target;P instanceof Node&&[...a].some(_=>_.contains(P))||d.current.set(w.type,!0),w.type==="click"&&window.setTimeout(()=>{c.current&&f.current()},0)}ut(x,"handleInteractionCapture");function m(w){c.current&&d.current.set(w.type,!1)}ut(m,"handleInteractionBubble");const b=ut(w=>{if(w.target&&!l.current){let P=function(){o.removeEventListener("click",f.current);const _=g();p(),_||cd(uD,i,S,{discrete:!0})};if(ut(P,"handleAndDispatchPointerDownOutsideEvent"),!s(w.target)){o.removeEventListener("click",f.current),p(),l.current=!1;return}const S={originalEvent:w};c.current=!0,r.current=n&&w.button===0,d.current.clear(),!n||w.button!==0?P():(o.removeEventListener("click",f.current),f.current=P,o.addEventListener("click",f.current,{once:!0}))}else o.removeEventListener("click",f.current),p();l.current=!1},"handlePointerDown"),y=["pointerup","mousedown","mouseup","touchstart","touchend","click"];for(const w of y)o.addEventListener(w,x,!0),o.addEventListener(w,m);const C=window.setTimeout(()=>{o.addEventListener("pointerdown",b)},0);return()=>{window.clearTimeout(C),o.removeEventListener("pointerdown",b),o.removeEventListener("click",f.current);for(const w of y)o.removeEventListener(w,x,!0),o.removeEventListener(w,m)}},[o,i,n,r,a,s]),{onPointerDownCapture:ut(()=>l.current=!0,"onPointerDownCapture")}}ut(Ax,"usePointerDownOutside");function Nx(e,t=globalThis==null?void 0:globalThis.document){const o=Ye(e),n=v.useRef(!1);return v.useEffect(()=>{const r=ut(a=>{a.target&&!n.current&&cd(dD,o,{originalEvent:a},{discrete:!1})},"handleFocus");return t.addEventListener("focusin",r),()=>t.removeEventListener("focusin",r)},[t,o]),{onFocusCapture:ut(()=>n.current=!0,"onFocusCapture"),onBlurCapture:ut(()=>n.current=!1,"onBlurCapture")}}ut(Nx,"useFocusOutside");function ld(){const e=new CustomEvent(id);document.dispatchEvent(e)}ut(ld,"dispatchUpdate");function cd(e,t,o,{discrete:n}){const r=o.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:o});t&&r.addEventListener(e,t,{once:!0}),n?nd(r,a):r.dispatchEvent(a)}ut(cd,"handleAndDispatchCustomEvent");var hD=Object.defineProperty,ud=(e,t)=>hD(e,"name",{value:t,configurable:!0}),$i=0,_o=null;function gD(e){return Fi(),e.children}ud(gD,"FocusGuards");function Fi(){v.useEffect(()=>{_o||(_o={start:dd(),end:dd()});const{start:e,end:t}=_o;return document.body.firstElementChild!==e&&document.body.insertAdjacentElement("afterbegin",e),document.body.lastElementChild!==t&&document.body.insertAdjacentElement("beforeend",t),$i++,()=>{$i===1&&(_o==null||_o.start.remove(),_o==null||_o.end.remove(),_o=null),$i=Math.max(0,$i-1)}},[])}ud(Fi,"useFocusGuards");function dd(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}ud(dd,"createFocusGuard");var mD=Object.defineProperty,yt=(e,t)=>mD(e,"name",{value:t,configurable:!0}),fd="focusScope.autoFocusOnMount",pd="focusScope.autoFocusOnUnmount",$x={bubbles:!1,cancelable:!0},Fx=v.forwardRef(yt(function(t,o){const{loop:n=!1,trapped:r=!1,onMountAutoFocus:a,onUnmountAutoFocus:s,...i}=t,[l,c]=v.useState(null),d=Ye(a),f=Ye(s),p=v.useRef(null),g=he(o,c),x=v.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;v.useEffect(()=>{if(r){let b=function(P){if(x.paused||!l)return;const S=P.target;l.contains(S)?p.current=S:Vo(p.current,{select:!0})},y=function(P){if(x.paused||!l)return;const S=P.relatedTarget;S!==null&&(l.contains(S)||Vo(p.current,{select:!0}))},C=function(P){if(document.activeElement===document.body)for(const _ of P)_.removedNodes.length>0&&Vo(l)};yt(b,"handleFocusIn"),yt(y,"handleFocusOut"),yt(C,"handleMutations"),document.addEventListener("focusin",b),document.addEventListener("focusout",y);const w=new MutationObserver(C);return l&&w.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",b),document.removeEventListener("focusout",y),w.disconnect()}}},[r,l,x.paused]),v.useEffect(()=>{if(l){Vx.add(x);const b=document.activeElement;if(!l.contains(b)){const C=new CustomEvent(fd,$x);l.addEventListener(fd,d),l.dispatchEvent(C),C.defaultPrevented||(Lx(Rx(hd(l)),{select:!0}),document.activeElement===b&&Vo(l))}return()=>{l.removeEventListener(fd,d),setTimeout(()=>{const C=new CustomEvent(pd,$x);l.addEventListener(pd,f),l.dispatchEvent(C),C.defaultPrevented||Vo(b??document.body,{select:!0}),l.removeEventListener(pd,f),Vx.remove(x)},0)}}},[l,d,f,x]);const m=v.useCallback(b=>{if(!n&&!r||x.paused)return;const y=b.key==="Tab"&&!b.altKey&&!b.ctrlKey&&!b.metaKey,C=document.activeElement;if(y&&C){const w=b.currentTarget,[P,S]=zx(w);P&&S?!b.shiftKey&&C===S?(b.preventDefault(),n&&Vo(P,{select:!0})):b.shiftKey&&C===P&&(b.preventDefault(),n&&Vo(S,{select:!0})):C===w&&b.preventDefault()}},[n,r,x.paused]);return u.jsx(ze.div,{tabIndex:-1,...i,ref:g,onKeyDown:m})},"FocusScope"));function Lx(e,{select:t=!1}={}){const o=document.activeElement;for(const n of e)if(Vo(n,{select:t}),document.activeElement!==o)return}yt(Lx,"focusFirst");function zx(e){const t=hd(e),o=gd(t,e),n=gd(t.reverse(),e);return[o,n]}yt(zx,"getTabbableEdges");function hd(e){const t=[],o=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:yt(n=>{const r=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||r?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP},"acceptNode")});for(;o.nextNode();)t.push(o.currentNode);return t}yt(hd,"getTabbableCandidates");function gd(e,t){const o=typeof t.checkVisibility=="function"&&t.checkVisibility({checkVisibilityCSS:!0});for(const n of e)if(!(o?!n.checkVisibility({checkVisibilityCSS:!0}):Bx(n,{upTo:t})))return n}yt(gd,"findVisible");function Bx(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}yt(Bx,"isHidden");function Hx(e){return e instanceof HTMLInputElement&&"select"in e}yt(Hx,"isSelectableInput");function Vo(e,{select:t=!1}={}){if(e&&e.focus){const o=document.activeElement;e.focus({preventScroll:!0}),e!==o&&Hx(e)&&t&&e.select()}}yt(Vo,"focus");var Vx=Wx();function Wx(){let e=[];return{add(t){const o=e[0];t!==o&&(o==null||o.pause()),e=md(e,t),e.unshift(t)},remove(t){var o;e=md(e,t),(o=e[0])==null||o.resume()}}}yt(Wx,"createFocusScopesStack");function md(e,t){const o=[...e],n=o.indexOf(t);return n!==-1&&o.splice(n,1),o}yt(md,"arrayRemove");function Rx(e){return e.filter(t=>t.tagName!=="A")}yt(Rx,"removeLinks");var xD=Object.defineProperty,bD=(e,t)=>xD(e,"name",{value:t,configurable:!0}),vD=v[" useId ".trim().toString()]||(()=>{}),yD=0;function So(e){const[t,o]=v.useState(vD());return He(()=>{e||o(n=>n??String(yD++))},[e]),e||(t?`radix-${t}`:"")}bD(So,"useId");const wD=["top","right","bottom","left"],mn=Math.min,Wo=Math.max,Li=Math.round,zi=Math.floor,Ro=e=>({x:e,y:e}),CD={left:"right",right:"left",bottom:"top",top:"bottom"};function Gx(e,t,o){return Wo(e,mn(t,o))}function Go(e,t){return typeof e=="function"?e(t):e}function xn(e){return e.split("-")[0]}function $r(e){return e.split("-")[1]}function xd(e){return e==="x"?"y":"x"}function bd(e){return e==="y"?"height":"width"}function Po(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function vd(e){return xd(Po(e))}function _D(e,t,o){o===void 0&&(o=!1);const n=$r(e),r=vd(e),a=bd(r);let s=r==="x"?n===(o?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(s=Bi(s)),[s,Bi(s)]}function SD(e){const t=Bi(e);return[yd(e),t,yd(t)]}function yd(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const jx=["left","right"],Ux=["right","left"],PD=["top","bottom"],TD=["bottom","top"];function kD(e,t,o){switch(e){case"top":case"bottom":return o?t?Ux:jx:t?jx:Ux;case"left":case"right":return t?PD:TD;default:return[]}}function ED(e,t,o,n){const r=$r(e);let a=kD(xn(e),o==="start",n);return r&&(a=a.map(s=>s+"-"+r),t&&(a=a.concat(a.map(yd)))),a}function Bi(e){const t=xn(e);return CD[t]+e.slice(t.length)}function ID(e){var t,o,n,r;return{top:(t=e.top)!=null?t:0,right:(o=e.right)!=null?o:0,bottom:(n=e.bottom)!=null?n:0,left:(r=e.left)!=null?r:0}}function qx(e){return typeof e!="number"?ID(e):{top:e,right:e,bottom:e,left:e}}function Hi(e){const{x:t,y:o,width:n,height:r}=e;return{width:n,height:r,top:o,left:t,right:t+n,bottom:o+r,x:t,y:o}}function Yx(e,t,o){let{reference:n,floating:r}=e;const a=Po(t),s=vd(t),i=bd(s),l=xn(t),c=a==="y",d=n.x+n.width/2-r.width/2,f=n.y+n.height/2-r.height/2,p=n[i]/2-r[i]/2;let g;switch(l){case"top":g={x:d,y:n.y-r.height};break;case"bottom":g={x:d,y:n.y+n.height};break;case"right":g={x:n.x+n.width,y:f};break;case"left":g={x:n.x-r.width,y:f};break;default:g={x:n.x,y:n.y}}const x=$r(t);return x&&(g[s]+=p*(x==="end"?1:-1)*(o&&c?-1:1)),g}async function DD(e,t){var o;t===void 0&&(t={});const{x:n,y:r,platform:a,rects:s,elements:i,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:d="viewport",elementContext:f="floating",altBoundary:p=!1,padding:g=0}=Go(t,e),x=qx(g),b=i[p?f==="floating"?"reference":"floating":f],y=Hi(await a.getClippingRect({element:(o=await(a.isElement==null?void 0:a.isElement(b)))==null||o?b:b.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(i.floating)),boundary:c,rootBoundary:d,strategy:l})),C=f==="floating"?{x:n,y:r,width:s.floating.width,height:s.floating.height}:s.reference,w=await(a.getOffsetParent==null?void 0:a.getOffsetParent(i.floating)),P=await(a.isElement==null?void 0:a.isElement(w))&&await(a.getScale==null?void 0:a.getScale(w))||{x:1,y:1},S=Hi(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:i,rect:C,offsetParent:w,strategy:l}):C);return{top:(y.top-S.top+x.top)/P.y,bottom:(S.bottom-y.bottom+x.bottom)/P.y,left:(y.left-S.left+x.left)/P.x,right:(S.right-y.right+x.right)/P.x}}const MD=50,OD=async(e,t,o)=>{const{placement:n="bottom",strategy:r="absolute",middleware:a=[],platform:s}=o,i=s.detectOverflow?s:{...s,detectOverflow:DD},l=await(s.isRTL==null?void 0:s.isRTL(t));let c=await s.getElementRects({reference:e,floating:t,strategy:r}),{x:d,y:f}=Yx(c,n,l),p=n,g=0;const x={};for(let m=0;m<a.length;m++){const b=a[m];if(!b)continue;const{name:y,fn:C}=b,{x:w,y:P,data:S,reset:_}=await C({x:d,y:f,initialPlacement:n,placement:p,strategy:r,middlewareData:x,rects:c,platform:i,elements:{reference:e,floating:t}});d=w??d,f=P??f,x[y]={...x[y],...S},_&&g<MD&&(g++,typeof _=="object"&&(_.placement&&(p=_.placement),_.rects&&(c=_.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:r}):_.rects),{x:d,y:f}=Yx(c,p,l)),m=-1)}return{x:d,y:f,placement:p,strategy:r,middlewareData:x}},AD=e=>({name:"arrow",options:e,async fn(t){const{x:o,y:n,placement:r,rects:a,platform:s,elements:i,middlewareData:l}=t,{element:c,padding:d=0}=Go(e,t)||{};if(c==null)return{};const f=qx(d),p={x:o,y:n},g=vd(r),x=bd(g),m=await s.getDimensions(c),b=g==="y",y=b?"top":"left",C=b?"bottom":"right",w=b?"clientHeight":"clientWidth",P=a.reference[x]+a.reference[g]-p[g]-a.floating[x],S=p[g]-a.reference[g],_=await(s.getOffsetParent==null?void 0:s.getOffsetParent(c));let T=_?_[w]:0;(!T||!await(s.isElement==null?void 0:s.isElement(_)))&&(T=i.floating[w]||a.floating[x]);const k=P/2-S/2,E=T/2-m[x]/2-1,D=mn(f[y],E),O=mn(f[C],E),N=T-m[x]-O,z=T/2-m[x]/2+k,B=Gx(D,z,N),G=!l.arrow&&$r(r)!=null&&z!==B&&a.reference[x]/2-(z<D?D:O)-m[x]/2<0,R=G?z<D?z-D:z-N:0;return{[g]:p[g]+R,data:{[g]:B,centerOffset:z-B-R,...G&&{alignmentOffset:R}},reset:G}}}),ND=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var o,n;const{placement:r,middlewareData:a,rects:s,initialPlacement:i,platform:l,elements:c}=t,{mainAxis:d=!0,crossAxis:f=!0,fallbackPlacements:p,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:x="none",flipAlignment:m=!0,...b}=Go(e,t);if((o=a.arrow)!=null&&o.alignmentOffset)return{};const y=xn(r),C=Po(i),w=xn(i)===i,P=await(l.isRTL==null?void 0:l.isRTL(c.floating)),S=p||(w||!m?[Bi(i)]:SD(i)),_=x!=="none";!p&&_&&S.push(...ED(i,m,x,P));const T=[i,...S],k=await l.detectOverflow(t,b),E=[];let D=((n=a.flip)==null?void 0:n.overflows)||[];if(d&&E.push(k[y]),f){const B=_D(r,s,P);E.push(k[B[0]],k[B[1]])}if(D=[...D,{placement:r,overflows:E}],!E.every(B=>B<=0)){var O,N;const B=(((O=a.flip)==null?void 0:O.index)||0)+1,G=T[B];if(G&&(!(f==="alignment"?C!==Po(G):!1)||D.every(F=>Po(F.placement)===C?F.overflows[0]>0:!0)))return{data:{index:B,overflows:D},reset:{placement:G}};let R=(N=D.filter(A=>A.overflows[0]<=0).sort((A,F)=>A.overflows[1]-F.overflows[1])[0])==null?void 0:N.placement;if(!R)switch(g){case"bestFit":{var z;const A=(z=D.filter(F=>{if(_){const V=Po(F.placement);return V===C||V==="y"}return!0}).map(F=>[F.placement,F.overflows.filter(V=>V>0).reduce((V,M)=>V+M,0)]).sort((F,V)=>F[1]-V[1])[0])==null?void 0:z[0];A&&(R=A);break}case"initialPlacement":R=i;break}if(r!==R)return{reset:{placement:R}}}return{}}}};function Kx(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Xx(e){return wD.some(t=>e[t]>=0)}const $D=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:o,platform:n}=t,{strategy:r="referenceHidden",...a}=Go(e,t);switch(r){case"referenceHidden":{const s=await n.detectOverflow(t,{...a,elementContext:"reference"}),i=Kx(s,o.reference);return{data:{referenceHiddenOffsets:i,referenceHidden:Xx(i)}}}case"escaped":{const s=await n.detectOverflow(t,{...a,altBoundary:!0}),i=Kx(s,o.floating);return{data:{escapedOffsets:i,escaped:Xx(i)}}}default:return{}}}}},Zx=new Set(["left","top"]);async function FD(e,t){const{placement:o,platform:n,elements:r}=e,a=await(n.isRTL==null?void 0:n.isRTL(r.floating)),s=xn(o),i=$r(o),l=Po(o)==="y",c=Zx.has(s)?-1:1,d=a&&l?-1:1,f=Go(t,e);let{mainAxis:p,crossAxis:g,alignmentAxis:x}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return i&&typeof x=="number"&&(g=i==="end"?x*-1:x),l?{x:g*d,y:p*c}:{x:p*c,y:g*d}}const LD=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var o,n;const{x:r,y:a,placement:s,middlewareData:i}=t,l=await FD(t,e);return s===((o=i.offset)==null?void 0:o.placement)&&(n=i.arrow)!=null&&n.alignmentOffset?{}:{x:r+l.x,y:a+l.y,data:{...l,placement:s}}}}},zD=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:o,y:n,placement:r,platform:a}=t,{mainAxis:s=!0,crossAxis:i=!1,limiter:l={fn:C=>{let{x:w,y:P}=C;return{x:w,y:P}}},...c}=Go(e,t),d={x:o,y:n},f=await a.detectOverflow(t,c),p=Po(r),g=xd(p);let x=d[g],m=d[p];const b=(C,w)=>Gx(w+f[C==="y"?"top":"left"],w,w-f[C==="y"?"bottom":"right"]);s&&(x=b(g,x)),i&&(m=b(p,m));const y=l.fn({...t,[g]:x,[p]:m});return{...y,data:{x:y.x-o,y:y.y-n,enabled:{[g]:s,[p]:i}}}}}},BD=function(e){return e===void 0&&(e={}),{options:e,fn(t){var o,n;const{x:r,y:a,placement:s,rects:i,middlewareData:l}=t,{offset:c=0,mainAxis:d=!0,crossAxis:f=!0}=Go(e,t),p={x:r,y:a},g=Po(s),x=xd(g);let m=p[x],b=p[g];const y=Go(c,t),C=typeof y=="number"?{mainAxis:y,crossAxis:0}:{mainAxis:(o=y.mainAxis)!=null?o:0,crossAxis:(n=y.crossAxis)!=null?n:0};if(d){const S=x==="y"?"height":"width",_=i.reference[x]-i.floating[S]+C.mainAxis,T=i.reference[x]+i.reference[S]-C.mainAxis;m<_?m=_:m>T&&(m=T)}if(f){var w,P;const S=x==="y"?"width":"height",_=Zx.has(xn(s)),T=i.reference[g]-i.floating[S]+(_&&((w=l.offset)==null?void 0:w[g])||0)+(_?0:C.crossAxis),k=i.reference[g]+i.reference[S]+(_?0:((P=l.offset)==null?void 0:P[g])||0)-(_?C.crossAxis:0);b<T?b=T:b>k&&(b=k)}return{[x]:m,[g]:b}}}},HD=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:o,rects:n,platform:r,elements:a}=t,{apply:s=()=>{},...i}=Go(e,t),l=await r.detectOverflow(t,i),c=xn(o),d=$r(o),f=Po(o)==="y",{width:p,height:g}=n.floating;let x,m;c==="top"||c==="bottom"?(x=c,m=d===(await(r.isRTL==null?void 0:r.isRTL(a.floating))?"start":"end")?"left":"right"):(m=c,x=d==="end"?"top":"bottom");const b=g-l.top-l.bottom,y=p-l.left-l.right,C=mn(g-l[x],b),w=mn(p-l[m],y),P=t.middlewareData.shift,S=!P;let _=C,T=w;P!=null&&P.enabled.x&&(T=y),P!=null&&P.enabled.y&&(_=b),S&&!d&&(f?T=p-2*Wo(l.left,l.right):_=g-2*Wo(l.top,l.bottom)),await s({...t,availableWidth:T,availableHeight:_});const k=await r.getDimensions(a.floating);return p!==k.width||g!==k.height?{reset:{rects:!0}}:{}}}};function Vi(){return typeof window<"u"}function Fr(e){return Jx(e)?(e.nodeName||"").toLowerCase():"#document"}function Et(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function jo(e){var t;return(t=(Jx(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Jx(e){return Vi()?e instanceof Node||e instanceof Et(e).Node:!1}function To(e){return Vi()?e instanceof Element||e instanceof Et(e).Element:!1}function bn(e){return Vi()?e instanceof HTMLElement||e instanceof Et(e).HTMLElement:!1}function Qx(e){return!Vi()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Et(e).ShadowRoot}function Wi(e){const{overflow:t,overflowX:o,overflowY:n,display:r}=ko(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+o)&&r!=="inline"&&r!=="contents"}function VD(e){return/^(table|td|th)$/.test(Fr(e))}function Ri(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const WD=/transform|translate|scale|rotate|perspective|filter/,RD=/paint|layout|strict|content/,qn=e=>!!e&&e!=="none";let wd;function Cd(e){const t=To(e)?ko(e):e;return qn(t.transform)||qn(t.translate)||qn(t.scale)||qn(t.rotate)||qn(t.perspective)||!_d()&&(qn(t.backdropFilter)||qn(t.filter))||WD.test(t.willChange||"")||RD.test(t.contain||"")}function GD(e){let t=Yn(e);for(;bn(t)&&!qa(t);){if(Cd(t))return t;if(Ri(t))return null;t=Yn(t)}return null}function _d(){return wd==null&&(wd=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),wd}function qa(e){return/^(html|body|#document)$/.test(Fr(e))}function ko(e){return Et(e).getComputedStyle(e)}function Gi(e){return To(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Yn(e){if(Fr(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Qx(e)&&e.host||jo(e);return Qx(t)?t.host:t}function e0(e){const t=Yn(e);return qa(t)?(e.ownerDocument||e).body:bn(t)&&Wi(t)?t:e0(t)}function Ya(e,t,o){var n;t===void 0&&(t=[]),o===void 0&&(o=!0);const r=e0(e),a=r===((n=e.ownerDocument)==null?void 0:n.body),s=Et(r);if(a){const i=Sd(s);return t.concat(s,s.visualViewport||[],Wi(r)?r:[],i&&o?Ya(i):[])}else return t.concat(r,Ya(r,[],o))}function Sd(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function t0(e){const t=ko(e);let o=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const r=bn(e),a=r?e.offsetWidth:o,s=r?e.offsetHeight:n,i=Li(o)!==a||Li(n)!==s;return i&&(o=a,n=s),{width:o,height:n,$:i}}function Pd(e){return To(e)?e:e.contextElement}function Lr(e){const t=Pd(e);if(!bn(t))return Ro(1);const o=t.getBoundingClientRect(),{width:n,height:r,$:a}=t0(t);let s=(a?Li(o.width):o.width)/n,i=(a?Li(o.height):o.height)/r;return(!s||!Number.isFinite(s))&&(s=1),(!i||!Number.isFinite(i))&&(i=1),{x:s,y:i}}const jD=Ro(0);function o0(e){const t=Et(e);return!_d()||!t.visualViewport?jD:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function UD(e,t,o){return t===void 0&&(t=!1),!!o&&t&&o===Et(e)}function Kn(e,t,o,n){t===void 0&&(t=!1),o===void 0&&(o=!1);const r=e.getBoundingClientRect(),a=Pd(e);let s=Ro(1);t&&(n?To(n)&&(s=Lr(n)):s=Lr(e));const i=UD(a,o,n)?o0(a):Ro(0);let l=(r.left+i.x)/s.x,c=(r.top+i.y)/s.y,d=r.width/s.x,f=r.height/s.y;if(a&&n){const p=Et(a),g=To(n)?Et(n):n;let x=p,m=Sd(x);for(;m&&g!==x;){const b=Lr(m),y=m.getBoundingClientRect(),C=ko(m),w=y.left+(m.clientLeft+parseFloat(C.paddingLeft))*b.x,P=y.top+(m.clientTop+parseFloat(C.paddingTop))*b.y;l*=b.x,c*=b.y,d*=b.x,f*=b.y,l+=w,c+=P,x=Et(m),m=Sd(x)}}return Hi({width:d,height:f,x:l,y:c})}function ji(e,t){const o=Gi(e).scrollLeft;return t?t.left+o:Kn(jo(e)).left+o}function n0(e,t){const o=e.getBoundingClientRect(),n=o.left+t.scrollLeft-ji(e,o),r=o.top+t.scrollTop;return{x:n,y:r}}function qD(e){let{elements:t,rect:o,offsetParent:n,strategy:r}=e;const a=r==="fixed",s=jo(n),i=t?Ri(t.floating):!1;if(n===s||i&&a)return o;let l={scrollLeft:0,scrollTop:0},c=Ro(1);const d=Ro(0),f=bn(n);if((f||!a)&&((Fr(n)!=="body"||Wi(s))&&(l=Gi(n)),f)){const g=Kn(n);c=Lr(n),d.x=g.x+n.clientLeft,d.y=g.y+n.clientTop}const p=s&&!f&&!a?n0(s,l):Ro(0);return{width:o.width*c.x,height:o.height*c.y,x:o.x*c.x-l.scrollLeft*c.x+d.x+p.x,y:o.y*c.y-l.scrollTop*c.y+d.y+p.y}}function YD(e){return e.getClientRects?Array.from(e.getClientRects()):[]}function KD(e){const t=Gi(e),o=e.ownerDocument.body,n=Wo(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),r=Wo(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight);let a=-t.scrollLeft+ji(e);const s=-t.scrollTop;return ko(o).direction==="rtl"&&(a+=Wo(e.clientWidth,o.clientWidth)-n),{width:n,height:r,x:a,y:s}}const XD=25;function ZD(e,t,o){o===void 0&&(o="viewport");const n=o==="layoutViewport",r=Et(e),a=jo(e),s=r.visualViewport;let i=a.clientWidth,l=a.clientHeight,c=0,d=0;if(s){const p=!_d()||t==="fixed";n?p||(c=-s.offsetLeft,d=-s.offsetTop):(i=s.width,l=s.height,p&&(c=s.offsetLeft,d=s.offsetTop))}if(ji(a)<=0){const p=a.ownerDocument,g=p.body,x=getComputedStyle(g),m=p.compatMode==="CSS1Compat"&&parseFloat(x.marginLeft)+parseFloat(x.marginRight)||0,b=Math.abs(a.clientWidth-g.clientWidth-m),y=getComputedStyle(a).scrollbarGutter==="stable both-edges"?b/2:b;y<=XD&&(i-=y)}return{width:i,height:l,x:c,y:d}}function JD(e,t){const o=Kn(e,!0,t==="fixed"),n=o.top+e.clientTop,r=o.left+e.clientLeft,a=Lr(e),s=e.clientWidth*a.x,i=e.clientHeight*a.y,l=r*a.x,c=n*a.y;return{width:s,height:i,x:l,y:c}}function r0(e,t,o){let n;if(t==="viewport"||t==="layoutViewport")n=ZD(e,o,t);else if(t==="document")n=KD(jo(e));else if(To(t))n=JD(t,o);else{const r=o0(e);n={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return Hi(n)}function QD(e,t){const o=t.get(e);if(o)return o;let n=Ya(e,[],!1).filter(i=>To(i)&&Fr(i)!=="body"),r=null;const a=ko(e).position==="fixed";let s=a?Yn(e):e;for(;To(s)&&!qa(s);){const i=ko(s),l=Cd(s),c=r?r.position:a?"fixed":"";!l&&(c==="fixed"||c==="absolute"&&i.position==="static")?n=n.filter(f=>f!==s):r=i,s=Yn(s)}return t.set(e,n),n}function eM(e){let{element:t,boundary:o,rootBoundary:n,strategy:r}=e;const s=[...o==="clippingAncestors"?Ri(t)?[]:QD(t,this._c):[].concat(o),n],i=r0(t,s[0],r);let l=i.top,c=i.right,d=i.bottom,f=i.left;for(let p=1;p<s.length;p++){const g=r0(t,s[p],r);l=Wo(g.top,l),c=mn(g.right,c),d=mn(g.bottom,d),f=Wo(g.left,f)}return{width:c-f,height:d-l,x:f,y:l}}function tM(e){const{width:t,height:o}=t0(e);return{width:t,height:o}}function oM(e,t,o){const n=bn(t),r=jo(t),a=o==="fixed",s=Kn(e,!0,a,t);let i={scrollLeft:0,scrollTop:0};const l=Ro(0);if((n||!a)&&((Fr(t)!=="body"||Wi(r))&&(i=Gi(t)),n)){const p=Kn(t,!0,a,t);l.x=p.x+t.clientLeft,l.y=p.y+t.clientTop}!n&&r&&(l.x=ji(r));const c=r&&!n&&!a?n0(r,i):Ro(0),d=s.left+i.scrollLeft-l.x-c.x,f=s.top+i.scrollTop-l.y-c.y;return{x:d,y:f,width:s.width,height:s.height}}function Td(e){return ko(e).position==="static"}function a0(e,t){if(!bn(e)||ko(e).position==="fixed")return null;if(t)return t(e);let o=e.offsetParent;return jo(e)===o&&(o=o.ownerDocument.body),o}function s0(e,t){const o=Et(e);if(Ri(e))return o;if(!bn(e)){let r=Yn(e);for(;r&&!qa(r);){if(To(r)&&!Td(r))return r;r=Yn(r)}return o}let n=a0(e,t);for(;n&&VD(n)&&Td(n);)n=a0(n,t);return n&&qa(n)&&Td(n)&&!Cd(n)?o:n||GD(e)||o}const nM=async function(e){const t=this.getOffsetParent||s0,o=this.getDimensions,n=await o(e.floating);return{reference:oM(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function rM(e){return ko(e).direction==="rtl"}const aM={convertOffsetParentRelativeRectToViewportRelativeRect:qD,getDocumentElement:jo,getClippingRect:eM,getOffsetParent:s0,getElementRects:nM,getClientRects:YD,getDimensions:tM,getScale:Lr,isElement:To,isRTL:rM};function i0(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function sM(e,t,o){let n=null,r;const a=jo(e);function s(){var d;clearTimeout(r),(d=n)==null||d.disconnect(),n=null}function i(d,f){d===void 0&&(d=!1),f===void 0&&(f=1),s();const p=e.getBoundingClientRect(),{left:g,top:x,width:m,height:b}=p;if(d||t(),!m||!b)return;const y=zi(x),C=zi(a.clientWidth-(g+m)),w=zi(a.clientHeight-(x+b)),P=zi(g),_={rootMargin:-y+"px "+-C+"px "+-w+"px "+-P+"px",threshold:Wo(0,mn(1,f))||1};let T=!0;function k(E){const D=E[0].intersectionRatio;if(!i0(p,e.getBoundingClientRect()))return i();if(D!==f){if(!T)return i();D?i(!1,D):r=setTimeout(()=>{i(!1,1e-7)},1e3)}T=!1}try{n=new IntersectionObserver(k,{..._,root:a.ownerDocument})}catch{n=new IntersectionObserver(k,_)}n.observe(e)}const l=Et(e),c=()=>i(o);return l.addEventListener("resize",c),i(!0),()=>{l.removeEventListener("resize",c),s()}}function l0(e,t,o,n){n===void 0&&(n={});const{ancestorScroll:r=!0,ancestorResize:a=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:i=typeof IntersectionObserver=="function",animationFrame:l=!1}=n,c=Pd(e),d=r||a?[...c?Ya(c):[],...t?Ya(t):[]]:[];d.forEach(y=>{r&&y.addEventListener("scroll",o),a&&y.addEventListener("resize",o)});const f=c&&i?sM(c,o,a):null;let p=-1,g=null;s&&(g=new ResizeObserver(y=>{let[C]=y;C&&C.target===c&&g&&t&&(g.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var w;(w=g)==null||w.observe(t)})),o()}),c&&!l&&g.observe(c),t&&g.observe(t));let x,m=l?Kn(e):null;l&&b();function b(){const y=Kn(e);m&&!i0(m,y)&&o(),m=y,x=requestAnimationFrame(b)}return o(),()=>{var y;d.forEach(C=>{r&&C.removeEventListener("scroll",o),a&&C.removeEventListener("resize",o)}),f==null||f(),(y=g)==null||y.disconnect(),g=null,l&&cancelAnimationFrame(x)}}const iM=LD,lM=zD,cM=ND,uM=HD,dM=$D,c0=AD,fM=BD,pM=(e,t,o)=>{const n=new Map,r=o??{},a={...aM,...r.platform,_c:n};return OD(e,t,{...r,platform:a})};var hM=typeof document<"u",gM=function(){},Ui=hM?h.useLayoutEffect:gM;function qi(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let o,n,r;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(o=e.length,o!==t.length)return!1;for(n=o;n--!==0;)if(!qi(e[n],t[n]))return!1;return!0}if(r=Object.keys(e),o=r.length,o!==Object.keys(t).length)return!1;for(n=o;n--!==0;)if(!{}.hasOwnProperty.call(t,r[n]))return!1;for(n=o;n--!==0;){const a=r[n];if(!(a==="_owner"&&e.$$typeof)&&!qi(e[a],t[a]))return!1}return!0}return e!==e&&t!==t}function u0(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function d0(e,t){const o=u0(e);return Math.round(t*o)/o}function kd(e){const t=v.useRef(e);return Ui(()=>{t.current=e}),t}function f0(e){e===void 0&&(e={});const{placement:t="bottom",strategy:o="absolute",middleware:n=[],platform:r,elements:{reference:a,floating:s}={},transform:i=!0,whileElementsMounted:l,open:c}=e,[d,f]=v.useState({x:0,y:0,strategy:o,placement:t,middlewareData:{},isPositioned:!1}),[p,g]=v.useState(n);qi(p,n)||g(n);const[x,m]=v.useState(null),[b,y]=v.useState(null),C=v.useCallback(F=>{F!==_.current&&(_.current=F,m(F))},[]),w=v.useCallback(F=>{F!==T.current&&(T.current=F,y(F))},[]),P=a||x,S=s||b,_=v.useRef(null),T=v.useRef(null),k=v.useRef(d),E=l!=null,D=kd(l),O=kd(r),N=kd(c),z=v.useCallback(()=>{if(!_.current||!T.current)return;const F={placement:t,strategy:o,middleware:p};O.current&&(F.platform=O.current),pM(_.current,T.current,F).then(V=>{const M={...V,isPositioned:N.current!==!1};B.current&&!qi(k.current,M)&&(k.current=M,no.flushSync(()=>{f(M)}))})},[p,t,o,O,N]);Ui(()=>{c===!1&&k.current.isPositioned&&(k.current.isPositioned=!1,f(F=>({...F,isPositioned:!1})))},[c]);const B=v.useRef(!1);Ui(()=>(B.current=!0,()=>{B.current=!1}),[]),Ui(()=>{if(P&&(_.current=P),S&&(T.current=S),P&&S){if(D.current)return D.current(P,S,z);z()}},[P,S,z,D,E]);const G=v.useMemo(()=>({reference:_,floating:T,setReference:C,setFloating:w}),[C,w]),R=v.useMemo(()=>({reference:P,floating:S}),[P,S]),A=v.useMemo(()=>{const F={position:o,left:0,top:0};if(!R.floating)return F;const V=d0(R.floating,d.x),M=d0(R.floating,d.y);return i?{...F,transform:"translate("+V+"px, "+M+"px)",...u0(R.floating)>=1.5&&{willChange:"transform"}}:{position:o,left:V,top:M}},[o,i,R.floating,d.x,d.y]);return v.useMemo(()=>({...d,update:z,refs:G,elements:R,floatingStyles:A}),[d,z,G,R,A])}const mM=e=>{function t(o){return{}.hasOwnProperty.call(o,"current")}return{name:"arrow",options:e,fn(o){const{element:n,padding:r}=typeof e=="function"?e(o):e;return n&&t(n)?n.current!=null?c0({element:n.current,padding:r}).fn(o):{}:n?c0({element:n,padding:r}).fn(o):{}}}},p0=(e,t)=>{const o=iM(e);return{name:o.name,fn:o.fn,options:[e,t]}},h0=(e,t)=>{const o=lM(e);return{name:o.name,fn:o.fn,options:[e,t]}},g0=(e,t)=>({fn:fM(e).fn,options:[e,t]}),m0=(e,t)=>{const o=cM(e);return{name:o.name,fn:o.fn,options:[e,t]}},x0=(e,t)=>{const o=uM(e);return{name:o.name,fn:o.fn,options:[e,t]}},b0=(e,t)=>{const o=dM(e);return{name:o.name,fn:o.fn,options:[e,t]}},v0=(e,t)=>{const o=mM(e);return{name:o.name,fn:o.fn,options:[e,t]}};var xM=Object.defineProperty,bM=(e,t)=>xM(e,"name",{value:t,configurable:!0});function y0(e){const[t,o]=v.useState(void 0);return He(()=>{if(e){o({width:e.offsetWidth,height:e.offsetHeight});const n=new ResizeObserver(r=>{if(!Array.isArray(r)||!r.length)return;const a=r[0];let s,i;if("borderBoxSize"in a){const l=a.borderBoxSize,c=Array.isArray(l)?l[0]:l;s=c.inlineSize,i=c.blockSize}else s=e.offsetWidth,i=e.offsetHeight;o({width:s,height:i})});return n.observe(e,{box:"border-box"}),()=>n.unobserve(e)}else o(void 0)},[e]),t}bM(y0,"useSize");var vM=Object.defineProperty,vn=(e,t)=>vM(e,"name",{value:t,configurable:!0}),w0="Popper",[C0,Yi]=qt(w0),[yM,_0]=C0(w0),wM=vn(e=>{const{__scopePopper:t,children:o}=e,[n,r]=v.useState(null),[a,s]=v.useState(void 0);return u.jsx(yM,{scope:t,anchor:n,onAnchorChange:r,placementState:a,setPlacementState:s,children:o})},"Popper"),CM="PopperAnchor",_M=v.forwardRef(vn(function(t,o){const{__scopePopper:n,virtualRef:r,...a}=t,s=_0(CM,n),i=v.useRef(null),l=s.onAnchorChange,c=v.useCallback(m=>{i.current=m,m&&l(m)},[l]),d=he(o,c),f=v.useRef(null);v.useEffect(()=>{if(!r)return;const m=f.current;f.current=r.current,m!==f.current&&l(f.current)});const p=s.placementState&&Ki(s.placementState),g=p==null?void 0:p[0],x=p==null?void 0:p[1];return r?null:u.jsx(ze.div,{"data-radix-popper-side":g,"data-radix-popper-align":x,...a,ref:d})},"PopperAnchor")),S0="PopperContent",[SM,xj]=C0(S0),PM=v.forwardRef(vn(function(t,o){var J,Z,te,X,Q,be,De;const{__scopePopper:n,side:r="bottom",sideOffset:a=0,align:s="center",alignOffset:i=0,arrowPadding:l=0,avoidCollisions:c=!0,collisionBoundary:d=[],collisionPadding:f=0,sticky:p="partial",hideWhenDetached:g=!1,updatePositionStrategy:x="optimized",onPlaced:m,...b}=t,y=_0(S0,n),[C,w]=v.useState(null),P=he(o,w),[S,_]=v.useState(null),T=y0(S),k=(T==null?void 0:T.width)??0,E=(T==null?void 0:T.height)??0,D=r+(s!=="center"?"-"+s:""),O=typeof f=="number"?f:{top:0,right:0,bottom:0,left:0,...f},N=Array.isArray(d)?d:[d],z=N.length>0,B={padding:O,boundary:N.filter(P0),altBoundary:z},{refs:G,floatingStyles:R,placement:A,isPositioned:F,middlewareData:V}=f0({strategy:"fixed",placement:D,whileElementsMounted:vn((...Fe)=>l0(...Fe,{animationFrame:x==="always"}),"whileElementsMounted"),elements:{reference:y.anchor},middleware:[p0({mainAxis:a+E,alignmentAxis:i}),c&&h0({mainAxis:!0,crossAxis:!1,limiter:p==="partial"?g0():void 0,...B}),c&&m0({...B}),x0({...B,apply:vn(({elements:Fe,rects:Ge,availableWidth:Me,availableHeight:kt})=>{const{width:st,height:it}=Ge.reference,qe=Fe.floating.style;qe.setProperty("--radix-popper-available-width",`${Me}px`),qe.setProperty("--radix-popper-available-height",`${kt}px`),qe.setProperty("--radix-popper-anchor-width",`${st}px`),qe.setProperty("--radix-popper-anchor-height",`${it}px`)},"apply")}),S&&v0({element:S,padding:l}),TM({arrowWidth:k,arrowHeight:E}),g&&b0({strategy:"referenceHidden",...B,boundary:z?B.boundary:void 0})]}),M=y.setPlacementState;He(()=>(M(A),()=>{M(void 0)}),[A,M]);const[Y,H]=Ki(A),L=Ye(m);He(()=>{F&&(L==null||L())},[F,L]);const q=(J=V.arrow)==null?void 0:J.x,j=(Z=V.arrow)==null?void 0:Z.y,W=((te=V.arrow)==null?void 0:te.centerOffset)!==0,[U,K]=v.useState();return He(()=>{C&&K(window.getComputedStyle(C).zIndex)},[C]),u.jsx("div",{ref:G.setFloating,"data-radix-popper-content-wrapper":"",style:{...R,transform:F?R.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:U,"--radix-popper-transform-origin":[(X=V.transformOrigin)==null?void 0:X.x,(Q=V.transformOrigin)==null?void 0:Q.y].join(" "),...((be=V.hide)==null?void 0:be.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:t.dir,children:u.jsx(SM,{scope:n,placedSide:Y,placedAlign:H,onArrowChange:_,arrowX:q,arrowY:j,shouldHideArrow:W,children:u.jsx(ze.div,{"data-side":Y,"data-align":H,...b,ref:P,style:{...b.style,animation:F?(De=b.style)==null?void 0:De.animation:"none"}})})})},"PopperContent"));function P0(e){return e!==null}vn(P0,"isNotNull");var TM=vn(e=>({name:"transformOrigin",options:e,fn(t){var b,y,C;const{placement:o,rects:n,middlewareData:r}=t,s=((b=r.arrow)==null?void 0:b.centerOffset)!==0,i=s?0:e.arrowWidth,l=s?0:e.arrowHeight,[c,d]=Ki(o),f={start:"0%",center:"50%",end:"100%"}[d],p=(((y=r.arrow)==null?void 0:y.x)??0)+i/2,g=(((C=r.arrow)==null?void 0:C.y)??0)+l/2;let x="",m="";return c==="bottom"?(x=s?f:`${p}px`,m=`${-l}px`):c==="top"?(x=s?f:`${p}px`,m=`${n.floating.height+l}px`):c==="right"?(x=`${-l}px`,m=s?f:`${g}px`):c==="left"&&(x=`${n.floating.width+l}px`,m=s?f:`${g}px`),{data:{x,y:m}}}}),"transformOrigin");function Ki(e){const[t,o="center"]=e.split("-");return[t,o]}vn(Ki,"getSideAndAlignFromPlacement");var Ed=wM,T0=_M,k0=PM,kM=Object.defineProperty,EM=(e,t)=>kM(e,"name",{value:t,configurable:!0}),E0=v.forwardRef(EM(function(t,o){var l;const{container:n,...r}=t,[a,s]=v.useState(!1);He(()=>s(!0),[]);const i=n||a&&((l=globalThis==null?void 0:globalThis.document)==null?void 0:l.body);return i?no.createPortal(u.jsx(ze.div,{...r,ref:o}),i):null},"Portal")),IM=Object.defineProperty,Uo=(e,t)=>IM(e,"name",{value:t,configurable:!0});function I0(e,t){return v.useReducer((o,n)=>t[o][n]??o,e)}Uo(I0,"useStateMachine");var Ka=Uo(e=>{const{present:t,children:o}=e,n=D0(t),r=typeof o=="function"?o({present:n.isPresent}):v.Children.only(o),a=M0(n.ref,O0(r));return typeof o=="function"||n.isPresent?v.cloneElement(r,{ref:a}):null},"Presence");function D0(e){const[t,o]=v.useState(),n=v.useRef(null),r=v.useRef(e),a=v.useRef("none"),s=v.useRef(void 0),i=e?"mounted":"unmounted",[l,c]=I0(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return v.useEffect(()=>{l==="mounted"?(a.current=s.current??zr(n.current),s.current=void 0):a.current="none"},[l]),He(()=>{const d=n.current,f=r.current;if(f!==e){const g=a.current,x=zr(d);e?(s.current=x,c("MOUNT")):x==="none"||(d==null?void 0:d.display)==="none"?c("UNMOUNT"):c(f&&g!==x?"ANIMATION_OUT":"UNMOUNT"),r.current=e}},[e,c]),He(()=>{if(t){let d;const f=t.ownerDocument.defaultView??window,p=Uo(x=>{const b=zr(n.current).includes(CSS.escape(x.animationName));if(x.target===t&&b&&(c("ANIMATION_END"),!r.current)){const y=t.style.animationFillMode;t.style.animationFillMode="forwards",d=f.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=y)})}},"handleAnimationEnd"),g=Uo(x=>{x.target===t&&(a.current=zr(n.current))},"handleAnimationStart");return t.addEventListener("animationstart",g),t.addEventListener("animationcancel",p),t.addEventListener("animationend",p),()=>{f.clearTimeout(d),t.removeEventListener("animationstart",g),t.removeEventListener("animationcancel",p),t.removeEventListener("animationend",p)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:v.useCallback(d=>{if(d){const f=getComputedStyle(d);n.current=f,s.current=zr(f)}else n.current=null;o(d)},[])}}Uo(D0,"usePresence");function Id(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}Uo(Id,"setRef");function M0(...e){const t=v.useRef(e);return t.current=e,v.useCallback(o=>{const n=t.current;let r=!1;const a=n.map(s=>{const i=Id(s,o);return!r&&typeof i=="function"&&(r=!0),i});if(r)return()=>{for(let s=0;s<a.length;s++){const i=a[s];typeof i=="function"?i():Id(n[s],null)}}},[])}Uo(M0,"useStableComposedRefs");function zr(e){return(e==null?void 0:e.animationName)||"none"}Uo(zr,"getAnimationName");function O0(e){var n,r;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,o=t&&"isReactWarning"in t&&t.isReactWarning;return o?e.ref:(t=(r=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:r.get,o=t&&"isReactWarning"in t&&t.isReactWarning,o?e.props.ref:e.props.ref||e.ref)}Uo(O0,"getElementRef");var DM=Object.defineProperty,Dd=(e,t)=>DM(e,"name",{value:t,configurable:!0}),Md=!1;function A0(){const[e,t]=v.useState(Md);return v.useEffect(()=>{Md||(Md=!0,t(!0))},[]),e}Dd(A0,"useIsHydrated");var N0=v[" useSyncExternalStore ".trim().toString()];function $0(){return()=>{}}Dd($0,"subscribe");function F0(){return N0($0,()=>!0,()=>!1)}Dd(F0,"useIsHydratedModern");var L0=typeof N0=="function"?F0:A0,MM=Object.defineProperty,Xn=(e,t)=>MM(e,"name",{value:t,configurable:!0}),Od="rovingFocusGroup.onEntryFocus",OM={bubbles:!1,cancelable:!0},Xi="RovingFocusGroup",[Ad,z0,AM]=Oi(Xi),[NM,B0]=qt(Xi,[AM]),[$M,FM]=NM(Xi),LM=v.forwardRef(Xn(function(t,o){return u.jsx(Ad.Provider,{scope:t.__scopeRovingFocusGroup,children:u.jsx(Ad.Slot,{scope:t.__scopeRovingFocusGroup,children:u.jsx(zM,{...t,ref:o})})})},"RovingFocusGroup")),zM=v.forwardRef(Xn(function(t,o){const{__scopeRovingFocusGroup:n,orientation:r,loop:a=!1,dir:s,currentTabStopId:i,defaultCurrentTabStopId:l,onCurrentTabStopIdChange:c,onEntryFocus:d,preventScrollOnEntryFocus:f=!1,...p}=t,g=v.useRef(null),x=he(o,g),m=Ni(s),[b,y]=Un({prop:i,defaultProp:l??null,onChange:c,caller:Xi}),[C,w]=v.useState(!1),P=Ye(d),S=z0(n),_=v.useRef(!1),[T,k]=v.useState(0);return v.useEffect(()=>{const E=g.current;if(E)return E.addEventListener(Od,P),()=>E.removeEventListener(Od,P)},[P]),u.jsx($M,{scope:n,orientation:r,dir:m,loop:a,currentTabStopId:b,onItemFocus:v.useCallback(E=>y(E),[y]),onItemShiftTab:v.useCallback(()=>w(!0),[]),onFocusableItemAdd:v.useCallback(()=>k(E=>E+1),[]),onFocusableItemRemove:v.useCallback(()=>k(E=>E-1),[]),children:u.jsx(ze.div,{tabIndex:C||T===0?-1:0,"data-orientation":r,...p,ref:x,style:{outline:"none",...t.style},onMouseDown:ne(t.onMouseDown,()=>{_.current=!0}),onFocus:ne(t.onFocus,E=>{const D=!_.current;if(E.target===E.currentTarget&&D&&!C){const O=new CustomEvent(Od,OM);if(E.currentTarget.dispatchEvent(O),!O.defaultPrevented){const N=S().filter(A=>A.focusable),z=N.find(A=>A.active),B=N.find(A=>A.id===b),R=[z,B,...N].filter(Boolean).map(A=>A.ref.current);Nd(R,f)}}_.current=!1}),onBlur:ne(t.onBlur,()=>w(!1))})})},"RovingFocusGroupImpl")),BM="RovingFocusGroupItem",HM=v.forwardRef(Xn(function(t,o){const{__scopeRovingFocusGroup:n,focusable:r=!0,active:a=!1,tabStopId:s,children:i,...l}=t,c=So(),d=s||c,f=FM(BM,n),p=f.currentTabStopId===d,g=z0(n),{onFocusableItemAdd:x,onFocusableItemRemove:m,currentTabStopId:b}=f,y=L0();return He(()=>{if(!(!y||!r))return x(),()=>m()},[y,r,x,m]),v.useEffect(()=>{if(!(y||!r))return x(),()=>m()},[y,r,x,m]),u.jsx(Ad.ItemSlot,{scope:n,id:d,focusable:r,active:a,children:u.jsx(ze.span,{tabIndex:p?0:-1,"data-orientation":f.orientation,...l,ref:o,onMouseDown:ne(t.onMouseDown,C=>{r?f.onItemFocus(d):C.preventDefault()}),onFocus:ne(t.onFocus,()=>f.onItemFocus(d)),onKeyDown:ne(t.onKeyDown,C=>{if(C.key==="Tab"&&C.shiftKey){f.onItemShiftTab();return}if(C.target!==C.currentTarget)return;const w=V0(C,f.orientation,f.dir);if(w!==void 0){if(C.metaKey||C.ctrlKey||C.altKey||C.shiftKey)return;C.preventDefault();let S=g().filter(_=>_.focusable).map(_=>_.ref.current);if(w==="last")S.reverse();else if(w==="prev"||w==="next"){w==="prev"&&S.reverse();const _=S.indexOf(C.currentTarget);S=f.loop?W0(S,_+1):S.slice(_+1)}setTimeout(()=>Nd(S))}}),children:typeof i=="function"?i({isCurrentTabStop:p,hasTabStop:b!=null}):i})})},"RovingFocusGroupItem")),VM={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function H0(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}Xn(H0,"getDirectionAwareKey");function V0(e,t,o){const n=H0(e.key,o);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(n))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(n)))return VM[n]}Xn(V0,"getFocusIntent");function Nd(e,t=!1){const o=document.activeElement;for(const n of e)if(n===o||(n.focus({preventScroll:t}),document.activeElement!==o))return}Xn(Nd,"focusFirst");function W0(e,t){return e.map((o,n)=>e[(t+n)%e.length])}Xn(W0,"wrapArray");var WM=LM,RM=HM,GM=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Br=new WeakMap,Zi=new WeakMap,Ji={},$d=0,R0=function(e){return e&&(e.host||R0(e.parentNode))},jM=function(e,t){return t.map(function(o){if(e.contains(o))return o;var n=R0(o);return n&&e.contains(n)?n:(console.error("aria-hidden",o,"in not contained inside",e,". Doing nothing"),null)}).filter(function(o){return!!o})},UM=function(e,t,o,n){var r=jM(t,Array.isArray(e)?e:[e]);Ji[o]||(Ji[o]=new WeakMap);var a=Ji[o],s=[],i=new Set,l=new Set(r),c=function(f){!f||i.has(f)||(i.add(f),c(f.parentNode))};r.forEach(c);var d=function(f){!f||l.has(f)||Array.prototype.forEach.call(f.children,function(p){if(i.has(p))d(p);else try{var g=p.getAttribute(n),x=g!==null&&g!=="false",m=(Br.get(p)||0)+1,b=(a.get(p)||0)+1;Br.set(p,m),a.set(p,b),s.push(p),m===1&&x&&Zi.set(p,!0),b===1&&p.setAttribute(o,"true"),x||p.setAttribute(n,"true")}catch(y){console.error("aria-hidden: cannot operate on ",p,y)}})};return d(t),i.clear(),$d++,function(){s.forEach(function(f){var p=Br.get(f)-1,g=a.get(f)-1;Br.set(f,p),a.set(f,g),p||(Zi.has(f)||f.removeAttribute(n),Zi.delete(f)),g||f.removeAttribute(o)}),$d--,$d||(Br=new WeakMap,Br=new WeakMap,Zi=new WeakMap,Ji={})}},Qi=function(e,t,o){o===void 0&&(o="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),r=GM(e);return r?(n.push.apply(n,Array.from(r.querySelectorAll("[aria-live], script"))),UM(n,r,o,"aria-hidden")):function(){return null}},Eo=function(){return Eo=Object.assign||function(t){for(var o,n=1,r=arguments.length;n<r;n++){o=arguments[n];for(var a in o)Object.prototype.hasOwnProperty.call(o,a)&&(t[a]=o[a])}return t},Eo.apply(this,arguments)};function G0(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,n=Object.getOwnPropertySymbols(e);r<n.length;r++)t.indexOf(n[r])<0&&Object.prototype.propertyIsEnumerable.call(e,n[r])&&(o[n[r]]=e[n[r]]);return o}function qM(e,t,o){if(o||arguments.length===2)for(var n=0,r=t.length,a;n<r;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;var el="right-scroll-bar-position",tl="width-before-scroll-bar",YM="with-scroll-bars-hidden",KM="--removed-body-scroll-bar-size";function Fd(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function XM(e,t){var o=h.useState(function(){return{value:e,callback:t,facade:{get current(){return o.value},set current(n){var r=o.value;r!==n&&(o.value=n,o.callback(n,r))}}}})[0];return o.callback=t,o.facade}var ZM=typeof window<"u"?v.useLayoutEffect:v.useEffect,j0=new WeakMap;function JM(e,t){var o=XM(null,function(n){return e.forEach(function(r){return Fd(r,n)})});return ZM(function(){var n=j0.get(o);if(n){var r=new Set(n),a=new Set(e),s=o.current;r.forEach(function(i){a.has(i)||Fd(i,null)}),a.forEach(function(i){r.has(i)||Fd(i,s)})}j0.set(o,e)},[e]),o}function QM(e){return e}function eO(e,t){t===void 0&&(t=QM);var o=[],n=!1,r={read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return o.length?o[o.length-1]:e},useMedium:function(a){var s=t(a,n);return o.push(s),function(){o=o.filter(function(i){return i!==s})}},assignSyncMedium:function(a){for(n=!0;o.length;){var s=o;o=[],s.forEach(a)}o={push:function(i){return a(i)},filter:function(){return o}}},assignMedium:function(a){n=!0;var s=[];if(o.length){var i=o;o=[],i.forEach(a),s=o}var l=function(){var d=s;s=[],d.forEach(a)},c=function(){return Promise.resolve().then(l)};c(),o={push:function(d){s.push(d),c()},filter:function(d){return s=s.filter(d),o}}}};return r}function tO(e){e===void 0&&(e={});var t=eO(null);return t.options=Eo({async:!0,ssr:!1},e),t}var U0=function(e){var t=e.sideCar,o=G0(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw new Error("Sidecar medium not found");return v.createElement(n,Eo({},o))};U0.isSideCarExport=!0;function oO(e,t){return e.useMedium(t),U0}var q0=tO(),Ld=function(){},ol=v.forwardRef(function(e,t){var o=v.useRef(null),n=v.useState({onScrollCapture:Ld,onWheelCapture:Ld,onTouchMoveCapture:Ld}),r=n[0],a=n[1],s=e.forwardProps,i=e.children,l=e.className,c=e.removeScrollBar,d=e.enabled,f=e.shards,p=e.sideCar,g=e.noRelative,x=e.noIsolation,m=e.inert,b=e.allowPinchZoom,y=e.as,C=y===void 0?"div":y,w=e.gapMode,P=G0(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),S=p,_=JM([o,t]),T=Eo(Eo({},P),r);return v.createElement(v.Fragment,null,d&&v.createElement(S,{sideCar:q0,removeScrollBar:c,shards:f,noRelative:g,noIsolation:x,inert:m,setCallbacks:a,allowPinchZoom:!!b,lockRef:o,gapMode:w}),s?v.cloneElement(v.Children.only(i),Eo(Eo({},T),{ref:_})):v.createElement(C,Eo({},T,{className:l,ref:_}),i))});ol.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},ol.classNames={fullWidth:tl,zeroRight:el};var nO=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function rO(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=nO();return t&&e.setAttribute("nonce",t),e}function aO(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function sO(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var iO=function(){var e=0,t=null;return{add:function(o){e==0&&(t=rO())&&(aO(t,o),sO(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},lO=function(){var e=iO();return function(t,o){v.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&o])}},Y0=function(){var e=lO(),t=function(o){var n=o.styles,r=o.dynamic;return e(n,r),null};return t},cO={left:0,top:0,right:0,gap:0},zd=function(e){return parseInt(e||"",10)||0},uO=function(e){var t=window.getComputedStyle(document.body),o=t[e==="padding"?"paddingLeft":"marginLeft"],n=t[e==="padding"?"paddingTop":"marginTop"],r=t[e==="padding"?"paddingRight":"marginRight"];return[zd(o),zd(n),zd(r)]},dO=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return cO;var t=uO(e),o=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-o+t[2]-t[0])}},fO=Y0(),Hr="data-scroll-locked",pO=function(e,t,o,n){var r=e.left,a=e.top,s=e.right,i=e.gap;return o===void 0&&(o="margin"),`
|
|
31
|
-
.`.concat(YM,` {
|
|
32
|
-
overflow: hidden `).concat(n,`;
|
|
33
|
-
padding-right: `).concat(i,"px ").concat(n,`;
|
|
34
|
-
}
|
|
35
|
-
body[`).concat(Hr,`] {
|
|
36
|
-
overflow: hidden `).concat(n,`;
|
|
37
|
-
overscroll-behavior: contain;
|
|
38
|
-
`).concat([t&&"position: relative ".concat(n,";"),o==="margin"&&`
|
|
39
|
-
padding-left: `.concat(r,`px;
|
|
40
|
-
padding-top: `).concat(a,`px;
|
|
41
|
-
padding-right: `).concat(s,`px;
|
|
42
|
-
margin-left:0;
|
|
43
|
-
margin-top:0;
|
|
44
|
-
margin-right: `).concat(i,"px ").concat(n,`;
|
|
45
|
-
`),o==="padding"&&"padding-right: ".concat(i,"px ").concat(n,";")].filter(Boolean).join(""),`
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
.`).concat(el,` {
|
|
49
|
-
right: `).concat(i,"px ").concat(n,`;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
.`).concat(tl,` {
|
|
53
|
-
margin-right: `).concat(i,"px ").concat(n,`;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
.`).concat(el," .").concat(el,` {
|
|
57
|
-
right: 0 `).concat(n,`;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
.`).concat(tl," .").concat(tl,` {
|
|
61
|
-
margin-right: 0 `).concat(n,`;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
body[`).concat(Hr,`] {
|
|
65
|
-
`).concat(KM,": ").concat(i,`px;
|
|
66
|
-
}
|
|
67
|
-
`)},K0=function(){var e=parseInt(document.body.getAttribute(Hr)||"0",10);return isFinite(e)?e:0},hO=function(){v.useEffect(function(){return document.body.setAttribute(Hr,(K0()+1).toString()),function(){var e=K0()-1;e<=0?document.body.removeAttribute(Hr):document.body.setAttribute(Hr,e.toString())}},[])},gO=function(e){var t=e.noRelative,o=e.noImportant,n=e.gapMode,r=n===void 0?"margin":n;hO();var a=v.useMemo(function(){return dO(r)},[r]);return v.createElement(fO,{styles:pO(a,!t,r,o?"":"!important")})},Bd=!1;if(typeof window<"u")try{var nl=Object.defineProperty({},"passive",{get:function(){return Bd=!0,!0}});window.addEventListener("test",nl,nl),window.removeEventListener("test",nl,nl)}catch{Bd=!1}var Vr=Bd?{passive:!1}:!1,mO=function(e){return e.tagName==="TEXTAREA"},X0=function(e,t){if(!(e instanceof Element))return!1;var o=window.getComputedStyle(e);return o[t]!=="hidden"&&!(o.overflowY===o.overflowX&&!mO(e)&&o[t]==="visible")},xO=function(e){return X0(e,"overflowY")},bO=function(e){return X0(e,"overflowX")},Z0=function(e,t){var o=t.ownerDocument,n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var r=J0(e,n);if(r){var a=Q0(e,n),s=a[1],i=a[2];if(s>i)return!0}n=n.parentNode}while(n&&n!==o.body);return!1},vO=function(e){var t=e.scrollTop,o=e.scrollHeight,n=e.clientHeight;return[t,o,n]},yO=function(e){var t=e.scrollLeft,o=e.scrollWidth,n=e.clientWidth;return[t,o,n]},J0=function(e,t){return e==="v"?xO(t):bO(t)},Q0=function(e,t){return e==="v"?vO(t):yO(t)},wO=function(e,t){return e==="h"&&t==="rtl"?-1:1},CO=function(e,t,o,n,r){var a=wO(e,window.getComputedStyle(t).direction),s=a*n,i=o.target,l=t.contains(i),c=!1,d=s>0,f=0,p=0;do{if(!i)break;var g=Q0(e,i),x=g[0],m=g[1],b=g[2],y=m-b-a*x;(x||y)&&J0(e,i)&&(f+=y,p+=x);var C=i.parentNode;i=C&&C.nodeType===Node.DOCUMENT_FRAGMENT_NODE?C.host:C}while(!l&&i!==document.body||l&&(t.contains(i)||t===i));return(d&&Math.abs(f)<1||!d&&Math.abs(p)<1)&&(c=!0),c},rl=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},eb=function(e){return[e.deltaX,e.deltaY]},tb=function(e){return e&&"current"in e?e.current:e},_O=function(e,t){return e[0]===t[0]&&e[1]===t[1]},SO=function(e){return`
|
|
68
|
-
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
|
69
|
-
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
|
70
|
-
`)},PO=0,Wr=[];function TO(e){var t=v.useRef([]),o=v.useRef([0,0]),n=v.useRef(),r=v.useState(PO++)[0],a=v.useState(Y0)[0],s=v.useRef(e);v.useEffect(function(){s.current=e},[e]),v.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(r));var m=qM([e.lockRef.current],(e.shards||[]).map(tb),!0).filter(Boolean);return m.forEach(function(b){return b.classList.add("allow-interactivity-".concat(r))}),function(){document.body.classList.remove("block-interactivity-".concat(r)),m.forEach(function(b){return b.classList.remove("allow-interactivity-".concat(r))})}}},[e.inert,e.lockRef.current,e.shards]);var i=v.useCallback(function(m,b){if("touches"in m&&m.touches.length===2||m.type==="wheel"&&m.ctrlKey)return!s.current.allowPinchZoom;var y=rl(m),C=o.current,w="deltaX"in m?m.deltaX:C[0]-y[0],P="deltaY"in m?m.deltaY:C[1]-y[1],S,_=m.target,T=Math.abs(w)>Math.abs(P)?"h":"v";if("touches"in m&&T==="h"&&_.type==="range")return!1;var k=window.getSelection(),E=k&&k.anchorNode,D=E?E===_||E.contains(_):!1;if(D)return!1;var O=Z0(T,_);if(!O)return!0;if(O?S=T:(S=T==="v"?"h":"v",O=Z0(T,_)),!O)return!1;if(!n.current&&"changedTouches"in m&&(w||P)&&(n.current=S),!S)return!0;var N=n.current||S;return CO(N,b,m,N==="h"?w:P)},[]),l=v.useCallback(function(m){var b=m;if(!(!Wr.length||Wr[Wr.length-1]!==a)){var y="deltaY"in b?eb(b):rl(b),C=t.current.filter(function(S){return S.name===b.type&&(S.target===b.target||b.target===S.shadowParent)&&_O(S.delta,y)})[0];if(C&&C.should){b.cancelable&&b.preventDefault();return}if(!C){var w=(s.current.shards||[]).map(tb).filter(Boolean).filter(function(S){return S.contains(b.target)}),P=w.length>0?i(b,w[0]):!s.current.noIsolation;P&&b.cancelable&&b.preventDefault()}}},[]),c=v.useCallback(function(m,b,y,C){var w={name:m,delta:b,target:y,should:C,shadowParent:kO(y)};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(P){return P!==w})},1)},[]),d=v.useCallback(function(m){o.current=rl(m),n.current=void 0},[]),f=v.useCallback(function(m){c(m.type,eb(m),m.target,i(m,e.lockRef.current))},[]),p=v.useCallback(function(m){c(m.type,rl(m),m.target,i(m,e.lockRef.current))},[]);v.useEffect(function(){return Wr.push(a),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:p}),document.addEventListener("wheel",l,Vr),document.addEventListener("touchmove",l,Vr),document.addEventListener("touchstart",d,Vr),function(){Wr=Wr.filter(function(m){return m!==a}),document.removeEventListener("wheel",l,Vr),document.removeEventListener("touchmove",l,Vr),document.removeEventListener("touchstart",d,Vr)}},[]);var g=e.removeScrollBar,x=e.inert;return v.createElement(v.Fragment,null,x?v.createElement(a,{styles:SO(r)}):null,g?v.createElement(gO,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function kO(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const EO=oO(q0,TO);var Xa=v.forwardRef(function(e,t){return v.createElement(ol,Eo({},e,{ref:t,sideCar:EO}))});Xa.classNames=ol.classNames;var IO=Object.defineProperty,Ie=(e,t)=>IO(e,"name",{value:t,configurable:!0}),Hd=["Enter"," "],DO=["ArrowDown","PageUp","Home"],ob=["ArrowUp","PageDown","End"],MO=[...DO,...ob],OO={ltr:[...Hd,"ArrowRight"],rtl:[...Hd,"ArrowLeft"]},AO={ltr:["ArrowLeft"],rtl:["ArrowRight"]},al="Menu",[Za,NO,$O]=Oi(al),[Zn,nb]=qt(al,[$O,Yi,B0]),sl=Yi(),rb=B0(),[ab,yn]=Zn(al),[FO,Ja]=Zn(al),LO=Ie(e=>{const{__scopeMenu:t,open:o=!1,children:n,dir:r,onOpenChange:a,modal:s=!0}=e,i=sl(t),[l,c]=v.useState(null),d=v.useRef(!1),f=Ye(a),p=Ni(r);return v.useEffect(()=>{const g=Ie(()=>{d.current=!0,document.addEventListener("pointerdown",x,{capture:!0,once:!0}),document.addEventListener("pointermove",x,{capture:!0,once:!0})},"handleKeyDown"),x=Ie(()=>d.current=!1,"handlePointer");return document.addEventListener("keydown",g,{capture:!0}),()=>{document.removeEventListener("keydown",g,{capture:!0}),document.removeEventListener("pointerdown",x,{capture:!0}),document.removeEventListener("pointermove",x,{capture:!0})}},[]),v.useEffect(()=>{if(!o)return;const g=Ie(()=>f(!1),"handleBlur");return window.addEventListener("blur",g),()=>window.removeEventListener("blur",g)},[o,f]),u.jsx(Ed,{...i,children:u.jsx(ab,{scope:t,open:o,onOpenChange:f,content:l,onContentChange:c,children:u.jsx(FO,{scope:t,onClose:v.useCallback(()=>f(!1),[f]),isUsingKeyboardRef:d,dir:p,modal:s,children:n})})})},"Menu"),sb=v.forwardRef(Ie(function(t,o){const{__scopeMenu:n,...r}=t,a=sl(n);return u.jsx(T0,{...a,...r,ref:o})},"MenuAnchor")),ib="MenuPortal",[zO,lb]=Zn(ib,{forceMount:void 0}),BO=Ie(e=>{const{__scopeMenu:t,forceMount:o,children:n,container:r}=e,a=yn(ib,t);return u.jsx(zO,{scope:t,forceMount:o,children:u.jsx(Ka,{present:o||a.open,children:u.jsx(E0,{asChild:!0,container:r,children:n})})})},"MenuPortal"),ao="MenuContent",[HO,Vd]=Zn(ao),VO=v.forwardRef(Ie(function(t,o){const n=lb(ao,t.__scopeMenu),{forceMount:r=n.forceMount,...a}=t,s=yn(ao,t.__scopeMenu),i=Ja(ao,t.__scopeMenu);return u.jsx(Za.Provider,{scope:t.__scopeMenu,children:u.jsx(Ka,{present:r||s.open,children:u.jsx(Za.Slot,{scope:t.__scopeMenu,children:i.modal?u.jsx(WO,{...a,ref:o}):u.jsx(RO,{...a,ref:o})})})})},"MenuContent")),WO=v.forwardRef(Ie(function(t,o){const n=yn(ao,t.__scopeMenu),r=v.useRef(null),a=he(o,r);return v.useEffect(()=>{const s=r.current;if(s)return Qi(s)},[]),u.jsx(Wd,{...t,ref:a,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:ne(t.onFocusOutside,s=>s.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})},"MenuRootContentModal")),RO=v.forwardRef(Ie(function(t,o){const n=yn(ao,t.__scopeMenu);return u.jsx(Wd,{...t,ref:o,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})},"MenuRootContentNonModal")),GO=gn("MenuContent.ScrollLock"),Wd=v.forwardRef(Ie(function(t,o){const{__scopeMenu:n,loop:r=!1,trapFocus:a,onOpenAutoFocus:s,onCloseAutoFocus:i,disableOutsidePointerEvents:l,onEntryFocus:c,onEscapeKeyDown:d,onPointerDownOutside:f,onFocusOutside:p,onInteractOutside:g,onDismiss:x,disableOutsideScroll:m,...b}=t,y=yn(ao,n),C=Ja(ao,n),w=sl(n),P=rb(n),S=NO(n),[_,T]=v.useState(null),k=v.useRef(null),E=he(o,k,y.onContentChange),D=v.useRef(0),O=v.useRef(""),N=v.useRef(0),z=v.useRef(null),B=v.useRef("right"),G=v.useRef(0),R=m?Xa:v.Fragment,A=m?{as:GO,allowPinchZoom:!0}:void 0,F=Ie(M=>{var K,J;const Y=O.current+M,H=S().filter(Z=>!Z.disabled),L=document.activeElement,q=(K=H.find(Z=>Z.ref.current===L))==null?void 0:K.textValue,j=H.map(Z=>Z.textValue),W=bb(j,Y,q),U=(J=H.find(Z=>Z.textValue===W))==null?void 0:J.ref.current;Ie((function Z(te){O.current=te,window.clearTimeout(D.current),te!==""&&(D.current=window.setTimeout(()=>Z(""),1e3))}),"updateSearch")(Y),U&&setTimeout(()=>U.focus())},"handleTypeaheadSearch");v.useEffect(()=>()=>window.clearTimeout(D.current),[]),Fi();const V=v.useCallback(M=>{var H,L;return B.current===((H=z.current)==null?void 0:H.side)&&yb(M,(L=z.current)==null?void 0:L.area)},[]);return u.jsx(HO,{scope:n,searchRef:O,onItemEnter:v.useCallback(M=>{V(M)&&M.preventDefault()},[V]),onItemLeave:v.useCallback(M=>{var Y;V(M)||((Y=k.current)==null||Y.focus(),T(null))},[V]),onTriggerLeave:v.useCallback(M=>{V(M)&&M.preventDefault()},[V]),pointerGraceTimerRef:N,onPointerGraceIntentChange:v.useCallback(M=>{z.current=M},[]),children:u.jsx(R,{...A,children:u.jsx(Fx,{asChild:!0,trapped:a,onMountAutoFocus:ne(s,M=>{var Y;M.preventDefault(),(Y=k.current)==null||Y.focus({preventScroll:!0})}),onUnmountAutoFocus:i,children:u.jsx(Ox,{asChild:!0,disableOutsidePointerEvents:l,onEscapeKeyDown:d,onPointerDownOutside:f,onFocusOutside:p,onInteractOutside:g,onDismiss:x,children:u.jsx(WM,{asChild:!0,...P,dir:C.dir,orientation:"vertical",loop:r,currentTabStopId:_,onCurrentTabStopIdChange:T,onEntryFocus:ne(c,M=>{C.isUsingKeyboardRef.current||M.preventDefault()}),preventScrollOnEntryFocus:!0,children:u.jsx(k0,{role:"menu","aria-orientation":"vertical","data-state":jd(y.open),"data-radix-menu-content":"",dir:C.dir,...w,...b,ref:E,style:{outline:"none",...b.style},onKeyDown:ne(b.onKeyDown,M=>{const H=M.target.closest("[data-radix-menu-content]")===M.currentTarget,L=M.ctrlKey||M.altKey||M.metaKey,q=M.key.length===1;H&&(M.key==="Tab"&&M.preventDefault(),!L&&q&&F(M.key));const j=k.current;if(M.target!==j||!MO.includes(M.key))return;M.preventDefault();const U=S().filter(K=>!K.disabled).map(K=>K.ref.current);ob.includes(M.key)&&U.reverse(),mb(U)}),onBlur:ne(t.onBlur,M=>{M.currentTarget.contains(M.target)||(window.clearTimeout(D.current),O.current="")}),onPointerMove:ne(t.onPointerMove,Rr(M=>{const Y=M.target,H=G.current!==M.clientX;if(M.currentTarget.contains(Y)&&H){const L=M.clientX>G.current?"right":"left";B.current=L,G.current=M.clientX}}))})})})})})})},"MenuContentImpl")),cb=v.forwardRef(Ie(function(t,o){const{__scopeMenu:n,...r}=t;return u.jsx(ze.div,{role:"group",...r,ref:o})},"MenuGroup")),jO=v.forwardRef(Ie(function(t,o){const{__scopeMenu:n,...r}=t;return u.jsx(ze.div,{...r,ref:o})},"MenuLabel")),Rd="MenuItem",ub="menu.itemSelect",Gd=v.forwardRef(Ie(function(t,o){const{disabled:n=!1,onSelect:r,...a}=t,s=v.useRef(null),i=Ja(Rd,t.__scopeMenu),l=Vd(Rd,t.__scopeMenu),c=he(o,s),d=v.useRef(!1),f=Ie(()=>{const p=s.current;if(!n&&p){const g=new CustomEvent(ub,{bubbles:!0,cancelable:!0});p.addEventListener(ub,x=>r==null?void 0:r(x),{once:!0}),nd(p,g),g.defaultPrevented?d.current=!1:i.onClose()}},"handleSelect");return u.jsx(db,{...a,ref:c,disabled:n,onClick:ne(t.onClick,f),onPointerDown:p=>{var g;(g=t.onPointerDown)==null||g.call(t,p),d.current=!0},onPointerUp:ne(t.onPointerUp,p=>{var g;d.current||(g=p.currentTarget)==null||g.click()}),onKeyDown:ne(t.onKeyDown,p=>{n||p.target!==p.currentTarget||l.searchRef.current!==""&&p.key===" "||Hd.includes(p.key)&&(p.currentTarget.click(),p.preventDefault())})})},"MenuItem")),db=v.forwardRef(Ie(function(t,o){const{__scopeMenu:n,disabled:r=!1,textValue:a,...s}=t,i=Vd(Rd,n),l=rb(n),c=v.useRef(null),d=he(o,c),[f,p]=v.useState(!1),[g,x]=v.useState("");return v.useEffect(()=>{const m=c.current;m&&x((m.textContent??"").trim())},[s.children]),u.jsx(Za.ItemSlot,{scope:n,disabled:r,textValue:a??g,children:u.jsx(RM,{asChild:!0,...l,focusable:!r,children:u.jsx(ze.div,{role:"menuitem","data-highlighted":f?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0,...s,ref:d,onPointerMove:ne(t.onPointerMove,Rr(m=>{r?i.onItemLeave(m):(i.onItemEnter(m),m.defaultPrevented||m.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:ne(t.onPointerLeave,Rr(m=>i.onItemLeave(m))),onFocus:ne(t.onFocus,()=>p(!0)),onBlur:ne(t.onBlur,()=>p(!1))})})})},"MenuItemImpl")),UO=v.forwardRef(Ie(function(t,o){const{checked:n=!1,onCheckedChange:r,...a}=t;return u.jsx(pb,{scope:t.__scopeMenu,checked:n,children:u.jsx(Gd,{role:"menuitemcheckbox","aria-checked":Qa(n)?"mixed":n,...a,ref:o,"data-state":ll(n),onSelect:ne(a.onSelect,()=>r==null?void 0:r(Qa(n)?!0:!n),{checkForDefaultPrevented:!1})})})},"MenuCheckboxItem")),qO="MenuRadioGroup",[YO,KO]=Zn(qO,{value:void 0,onValueChange:Ie(()=>{},"onValueChange")}),XO=v.forwardRef(Ie(function(t,o){const{value:n,onValueChange:r,...a}=t,s=Ye(r);return u.jsx(YO,{scope:t.__scopeMenu,value:n,onValueChange:s,children:u.jsx(cb,{...a,ref:o})})},"MenuRadioGroup")),ZO="MenuRadioItem",JO=v.forwardRef(Ie(function(t,o){const{value:n,...r}=t,a=KO(ZO,t.__scopeMenu),s=n===a.value;return u.jsx(pb,{scope:t.__scopeMenu,checked:s,children:u.jsx(Gd,{role:"menuitemradio","aria-checked":s,...r,ref:o,"data-state":ll(s),onSelect:ne(r.onSelect,()=>{var i;return(i=a.onValueChange)==null?void 0:i.call(a,n)},{checkForDefaultPrevented:!1})})})},"MenuRadioItem")),fb="MenuItemIndicator",[pb,QO]=Zn(fb,{checked:!1}),e3=v.forwardRef(Ie(function(t,o){const{__scopeMenu:n,forceMount:r,...a}=t,s=QO(fb,n);return u.jsx(Ka,{present:r||Qa(s.checked)||s.checked===!0,children:u.jsx(ze.span,{...a,ref:o,"data-state":ll(s.checked)})})},"MenuItemIndicator")),t3=v.forwardRef(Ie(function(t,o){const{__scopeMenu:n,...r}=t;return u.jsx(ze.div,{role:"separator","aria-orientation":"horizontal",...r,ref:o})},"MenuSeparator")),hb="MenuSub",[o3,gb]=Zn(hb),n3=Ie(e=>{const{__scopeMenu:t,children:o,open:n=!1,onOpenChange:r}=e,a=yn(hb,t),s=sl(t),[i,l]=v.useState(null),[c,d]=v.useState(null),f=Ye(r);return v.useEffect(()=>(a.open===!1&&f(!1),()=>f(!1)),[a.open,f]),u.jsx(Ed,{...s,children:u.jsx(ab,{scope:t,open:n,onOpenChange:f,content:c,onContentChange:d,children:u.jsx(o3,{scope:t,contentId:So(),triggerId:So(),trigger:i,onTriggerChange:l,children:o})})})},"MenuSub"),il="MenuSubTrigger",r3=v.forwardRef(Ie(function(t,o){const n=yn(il,t.__scopeMenu),r=Ja(il,t.__scopeMenu),a=gb(il,t.__scopeMenu),s=Vd(il,t.__scopeMenu),i=v.useRef(null),{pointerGraceTimerRef:l,onPointerGraceIntentChange:c}=s,d={__scopeMenu:t.__scopeMenu},f=v.useCallback(()=>{i.current&&window.clearTimeout(i.current),i.current=null},[]);v.useEffect(()=>f,[f]),v.useEffect(()=>{const g=l.current;return()=>{window.clearTimeout(g),c(null)}},[l,c]);const p=he(o,a.onTriggerChange);return u.jsx(sb,{asChild:!0,...d,children:u.jsx(db,{id:a.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":n.open?a.contentId:void 0,"data-state":jd(n.open),...t,ref:p,onClick:g=>{var x;(x=t.onClick)==null||x.call(t,g),!(t.disabled||g.defaultPrevented)&&(g.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:ne(t.onPointerMove,Rr(g=>{s.onItemEnter(g),!g.defaultPrevented&&!t.disabled&&!n.open&&!i.current&&(s.onPointerGraceIntentChange(null),i.current=window.setTimeout(()=>{n.onOpenChange(!0),f()},100))})),onPointerLeave:ne(t.onPointerLeave,Rr(g=>{var m,b;f();const x=(m=n.content)==null?void 0:m.getBoundingClientRect();if(x){const y=(b=n.content)==null?void 0:b.dataset.side,C=y==="right",w=C?-5:5,P=x[C?"left":"right"],S=x[C?"right":"left"];s.onPointerGraceIntentChange({area:[{x:g.clientX+w,y:g.clientY},{x:P,y:x.top},{x:S,y:x.top},{x:S,y:x.bottom},{x:P,y:x.bottom}],side:y}),window.clearTimeout(l.current),l.current=window.setTimeout(()=>s.onPointerGraceIntentChange(null),300)}else{if(s.onTriggerLeave(g),g.defaultPrevented)return;s.onPointerGraceIntentChange(null)}})),onKeyDown:ne(t.onKeyDown,g=>{var m;t.disabled||g.target!==g.currentTarget||s.searchRef.current!==""&&g.key===" "||OO[r.dir].includes(g.key)&&(n.onOpenChange(!0),(m=n.content)==null||m.focus(),g.preventDefault())})})})},"MenuSubTrigger")),a3="MenuSubContent",s3=v.forwardRef(Ie(function(t,o){const n=lb(ao,t.__scopeMenu),{forceMount:r=n.forceMount,align:a="start",...s}=t,i=yn(ao,t.__scopeMenu),l=Ja(ao,t.__scopeMenu),c=gb(a3,t.__scopeMenu),d=v.useRef(null),f=he(o,d);return u.jsx(Za.Provider,{scope:t.__scopeMenu,children:u.jsx(Ka,{present:r||i.open,children:u.jsx(Za.Slot,{scope:t.__scopeMenu,children:u.jsx(Wd,{id:c.contentId,"aria-labelledby":c.triggerId,...s,ref:f,align:a,side:l.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:p=>{var g;l.isUsingKeyboardRef.current&&((g=d.current)==null||g.focus()),p.preventDefault()},onCloseAutoFocus:p=>p.preventDefault(),onFocusOutside:ne(t.onFocusOutside,p=>{p.target!==c.trigger&&i.onOpenChange(!1)}),onEscapeKeyDown:ne(t.onEscapeKeyDown,p=>{l.onClose(),p.preventDefault()}),onKeyDown:ne(t.onKeyDown,p=>{var m;const g=p.currentTarget.contains(p.target),x=AO[l.dir].includes(p.key);g&&x&&(i.onOpenChange(!1),(m=c.trigger)==null||m.focus(),p.preventDefault())})})})})})},"MenuSubContent"));function jd(e){return e?"open":"closed"}Ie(jd,"getOpenState");function Qa(e){return e==="indeterminate"}Ie(Qa,"isIndeterminate");function ll(e){return Qa(e)?"indeterminate":e?"checked":"unchecked"}Ie(ll,"getCheckedState");function mb(e){const t=document.activeElement;for(const o of e)if(o===t||(o.focus(),document.activeElement!==t))return}Ie(mb,"focusFirst");function xb(e,t){return e.map((o,n)=>e[(t+n)%e.length])}Ie(xb,"wrapArray");function bb(e,t,o){const r=t.length>1&&Array.from(t).every(c=>c===t[0])?t[0]:t,a=o?e.indexOf(o):-1;let s=xb(e,Math.max(a,0));r.length===1&&(s=s.filter(c=>c!==o));const l=s.find(c=>c.toLowerCase().startsWith(r.toLowerCase()));return l!==o?l:void 0}Ie(bb,"getNextMatch");function vb(e,t){const{x:o,y:n}=e;let r=!1;for(let a=0,s=t.length-1;a<t.length;s=a++){const i=t[a],l=t[s],c=i.x,d=i.y,f=l.x,p=l.y;d>n!=p>n&&o<(f-c)*(n-d)/(p-d)+c&&(r=!r)}return r}Ie(vb,"isPointInPolygon");function yb(e,t){if(!t)return!1;const o={x:e.clientX,y:e.clientY};return vb(o,t)}Ie(yb,"isPointerInGraceArea");function Rr(e){return t=>t.pointerType==="mouse"?e(t):void 0}Ie(Rr,"whenMouse");var i3=LO,l3=sb,c3=BO,u3=VO,d3=cb,f3=jO,p3=Gd,h3=UO,g3=XO,m3=JO,x3=e3,b3=t3,v3=n3,y3=r3,w3=s3,C3=Object.defineProperty,wt=(e,t)=>C3(e,"name",{value:t,configurable:!0}),Ud="DropdownMenu",[_3,bj]=qt(Ud,[nb]),Ct=nb(),[S3,wb]=_3(Ud),P3=wt(e=>{const{__scopeDropdownMenu:t,children:o,dir:n,open:r,defaultOpen:a,onOpenChange:s,modal:i=!0}=e,l=Ct(t),c=v.useRef(null),[d,f]=Un({prop:r,defaultProp:a??!1,onChange:s,caller:Ud});return u.jsx(S3,{scope:t,triggerId:So(),triggerRef:c,contentId:So(),open:d,onOpenChange:f,onOpenToggle:v.useCallback(()=>f(p=>!p),[f]),modal:i,children:u.jsx(i3,{...l,open:d,onOpenChange:f,dir:n,modal:i,children:o})})},"DropdownMenu"),T3="DropdownMenuTrigger",k3=v.forwardRef(wt(function(t,o){const{__scopeDropdownMenu:n,disabled:r=!1,...a}=t,s=wb(T3,n),i=Ct(n),l=he(o,s.triggerRef);return u.jsx(l3,{asChild:!0,...i,children:u.jsx(ze.button,{type:"button",id:s.triggerId,"aria-haspopup":"menu","aria-expanded":s.open,"aria-controls":s.open?s.contentId:void 0,"data-state":s.open?"open":"closed","data-disabled":r?"":void 0,disabled:r,...a,ref:l,onPointerDown:ne(t.onPointerDown,c=>{!r&&c.button===0&&c.ctrlKey===!1&&(s.onOpenToggle(),s.open||c.preventDefault())}),onKeyDown:ne(t.onKeyDown,c=>{r||(["Enter"," "].includes(c.key)&&s.onOpenToggle(),c.key==="ArrowDown"&&s.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(c.key)&&c.preventDefault())})})})},"DropdownMenuTrigger")),E3=wt(e=>{const{__scopeDropdownMenu:t,...o}=e,n=Ct(t);return u.jsx(c3,{...n,...o})},"DropdownMenuPortal"),I3="DropdownMenuContent",D3=v.forwardRef(wt(function(t,o){const{__scopeDropdownMenu:n,...r}=t,a=wb(I3,n),s=Ct(n),i=v.useRef(!1);return u.jsx(u3,{id:a.contentId,"aria-labelledby":a.triggerId,...s,...r,ref:o,onCloseAutoFocus:ne(t.onCloseAutoFocus,l=>{var c;i.current||(c=a.triggerRef.current)==null||c.focus(),i.current=!1,l.preventDefault()}),onInteractOutside:ne(t.onInteractOutside,l=>{const c=l.detail.originalEvent,d=c.button===0&&c.ctrlKey===!0,f=c.button===2||d;(!a.modal||f)&&(i.current=!0)}),style:{...t.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})},"DropdownMenuContent")),M3=v.forwardRef(wt(function(t,o){const{__scopeDropdownMenu:n,...r}=t,a=Ct(n);return u.jsx(d3,{...a,...r,ref:o})},"DropdownMenuGroup")),O3=v.forwardRef(wt(function(t,o){const{__scopeDropdownMenu:n,...r}=t,a=Ct(n);return u.jsx(f3,{...a,...r,ref:o})},"DropdownMenuLabel")),A3=v.forwardRef(wt(function(t,o){const{__scopeDropdownMenu:n,...r}=t,a=Ct(n);return u.jsx(p3,{...a,...r,ref:o})},"DropdownMenuItem")),N3=v.forwardRef(wt(function(t,o){const{__scopeDropdownMenu:n,...r}=t,a=Ct(n);return u.jsx(h3,{...a,...r,ref:o})},"DropdownMenuCheckboxItem")),$3=v.forwardRef(wt(function(t,o){const{__scopeDropdownMenu:n,...r}=t,a=Ct(n);return u.jsx(g3,{...a,...r,ref:o})},"DropdownMenuRadioGroup")),F3=v.forwardRef(wt(function(t,o){const{__scopeDropdownMenu:n,...r}=t,a=Ct(n);return u.jsx(m3,{...a,...r,ref:o})},"DropdownMenuRadioItem")),L3=v.forwardRef(wt(function(t,o){const{__scopeDropdownMenu:n,...r}=t,a=Ct(n);return u.jsx(x3,{...a,...r,ref:o})},"DropdownMenuItemIndicator")),z3=v.forwardRef(wt(function(t,o){const{__scopeDropdownMenu:n,...r}=t,a=Ct(n);return u.jsx(b3,{...a,...r,ref:o})},"DropdownMenuSeparator")),B3=wt(e=>{const{__scopeDropdownMenu:t,children:o,open:n,onOpenChange:r,defaultOpen:a}=e,s=Ct(t),[i,l]=Un({prop:n,defaultProp:a??!1,onChange:r,caller:"DropdownMenuSub"});return u.jsx(v3,{...s,open:i,onOpenChange:l,children:o})},"DropdownMenuSub"),H3=v.forwardRef(wt(function(t,o){const{__scopeDropdownMenu:n,...r}=t,a=Ct(n);return u.jsx(y3,{...a,...r,ref:o})},"DropdownMenuSubTrigger")),V3=v.forwardRef(wt(function(t,o){const{__scopeDropdownMenu:n,...r}=t,a=Ct(n);return u.jsx(w3,{...a,...r,ref:o,style:{...t.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})},"DropdownMenuSubContent")),W3=P3,R3=k3,Cb=E3,G3=D3,j3=M3,U3=O3,q3=A3,Y3=N3,K3=$3,X3=F3,_b=L3,Z3=z3,J3=B3,Q3=H3,eA=V3;const cl=({children:e,defaultOpen:t=!1,open:o,onOpenChange:n,modal:r=!0})=>u.jsx(W3,{defaultOpen:t,open:o,onOpenChange:n,modal:r,children:e});cl.displayName="OxDropdownMenu";const ul=h.forwardRef(({disabled:e=!1,dataTestid:t,children:o,...n},r)=>u.jsx(R3,{ref:r,asChild:!0,"data-slot":"dropdown-menu-trigger","data-testid":t,disabled:e,...n,children:o}));ul.displayName="OxDropdownMenuTrigger";const Sb=`<svg width="1.2em" height="1.2em" stroke-color="currentColor" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24">
|
|
71
|
-
<g>
|
|
72
|
-
<path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M15 8h.01M17 4H7a3 3 0 0 0-3 3v10a3 3 0 0 0 3 3h10a3 3 0 0 0 3-3V7a3 3 0 0 0-3-3Z"/>
|
|
73
|
-
<path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="m4 15 4-4a2.015 2.015 0 0 1 3 0l5 5"/>
|
|
74
|
-
<path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="m14 14 1-1a2.015 2.015 0 0 1 3 0l2 2"/>
|
|
75
|
-
</g>
|
|
76
|
-
</svg>
|
|
77
|
-
`,qd={"ox-attachment-media":"_ox-attachment-media_z1tr6_2","ox-attachment-media--brand":"_ox-attachment-media--brand_z1tr6_2","ox-attachment-media-image":"_ox-attachment-media-image_z1tr6_2","ox-attachment-media-placeholder":"_ox-attachment-media-placeholder_z1tr6_2"},tA=Oe("ox-attachment-media",{variants:{surface:{default:"",brand:"ox-attachment-media--brand"}},defaultVariants:{surface:"default"}}),es=h.forwardRef(({className:e,image:t,surface:o="default",placeholder:n,children:r,dataTestid:a,...s},i)=>{const[l,c]=h.useState(!1),[d,f]=h.useState(t==null?void 0:t.src);(t==null?void 0:t.src)!==d&&(f(t==null?void 0:t.src),c(!1));const p=(t==null?void 0:t.alt)||void 0;return u.jsxs("span",{ref:i,"data-slot":"media","data-testid":a,className:$(me(qd,tA({surface:o})),e),...s,children:[t&&!l?u.jsx("img",{className:qd["ox-attachment-media-image"],src:t.src,alt:t.alt,"data-testid":`${a}-image`,onError:()=>c(!0)}):u.jsx("span",{className:qd["ox-attachment-media-placeholder"],role:p?"img":void 0,"aria-label":p,"aria-hidden":p?void 0:!0,"data-testid":`${a}-placeholder`,children:n??u.jsx(ee,{icon:Sb})}),r]})});es.displayName="AttachmentMedia";const Yd={oxSurface:"_oxSurface_1i17c_2",oxSurfaceFloating:"_oxSurfaceFloating_1i17c_2",oxSurfaceAttached:"_oxSurfaceAttached_1i17c_2"},so=h.forwardRef(({className:e,floating:t=!1,attached:o=!1,children:n,...r},a)=>u.jsx("div",{ref:a,className:$(Yd.oxSurface,t&&Yd.oxSurfaceFloating,o&&Yd.oxSurfaceAttached,e),...r,children:n}));so.displayName="Surface";const oA={oxListboxEmpty:"_oxListboxEmpty_rwz00_2"},Kd=h.forwardRef(({className:e,children:t,...o},n)=>u.jsx("div",{ref:n,className:$(oA.oxListboxEmpty,e),...o,children:t}));Kd.displayName="ListboxEmpty";const Xd={oxListboxItem:"_oxListboxItem_zcpwt_2",oxListboxItemIndicated:"_oxListboxItemIndicated_zcpwt_2",oxListboxItemIndicator:"_oxListboxItemIndicator_zcpwt_2"},ts=h.forwardRef(({className:e,indicator:t,children:o,...n},r)=>u.jsxs("div",{ref:r,className:$(Xd.oxListboxItem,t!==void 0&&Xd.oxListboxItemIndicated,e),...n,children:[o,t!==void 0?u.jsx("span",{className:Xd.oxListboxItemIndicator,children:t}):null]}));ts.displayName="ListboxItem";const nA={oxListboxLabel:"_oxListboxLabel_q1mu9_2"},dl=h.forwardRef(({className:e,children:t,...o},n)=>u.jsx("div",{ref:n,className:$(nA.oxListboxLabel,e),...o,children:t}));dl.displayName="ListboxLabel";const rA={oxListboxSeparator:"_oxListboxSeparator_y1jhx_2"},fl=h.forwardRef(({className:e,...t},o)=>u.jsx("div",{ref:o,className:$(rA.oxListboxSeparator,e),...t}));fl.displayName="ListboxSeparator";const aA={oxListboxViewport:"_oxListboxViewport_q0apf_2"},os=h.forwardRef(({className:e,children:t,...o},n)=>u.jsx("div",{ref:n,className:$(aA.oxListboxViewport,e),...o,children:t}));os.displayName="ListboxViewport";const pl={oxMenuItem:"_oxMenuItem_13akk_2",oxMenuItemIndicated:"_oxMenuItemIndicated_13akk_2",oxMenuItemIndicator:"_oxMenuItemIndicator_13akk_2",oxMenuItemDestructive:"_oxMenuItemDestructive_13akk_2"},ns=h.forwardRef(({className:e,indicator:t,variant:o="default",children:n,...r},a)=>u.jsxs("div",{ref:a,className:$(pl.oxMenuItem,t!==void 0&&pl.oxMenuItemIndicated,o==="destructive"&&pl.oxMenuItemDestructive,e),...r,children:[t!==void 0?u.jsx("span",{className:pl.oxMenuItemIndicator,children:t}):null,n]}));ns.displayName="MenuItem";const sA={oxDropdownMenuContent:"_oxDropdownMenuContent_3hmxs_2"},iA=16,hl=h.forwardRef(({className:e,children:t,side:o="bottom",sideOffset:n=4,align:r="start",dataTestid:a,...s},i)=>u.jsx(Cb,{children:u.jsx(G3,{ref:i,asChild:!0,"data-slot":"dropdown-menu-content","data-testid":a,side:o,sideOffset:n,align:r,collisionPadding:iA,...s,children:u.jsx(so,{className:$(sA.oxDropdownMenuContent,e),children:t})})}));hl.displayName="OxDropdownMenuContent";const Pb=h.forwardRef(({children:e,...t},o)=>u.jsx(j3,{ref:o,"data-slot":"dropdown-menu-group",...t,children:e}));Pb.displayName="OxDropdownMenuGroup";const Tb={oxDropdownMenuLabel:"_oxDropdownMenuLabel_1hzcp_2",oxDropdownMenuLabelInset:"_oxDropdownMenuLabelInset_1hzcp_2"},kb=h.forwardRef(({className:e,children:t,inset:o=!1,...n},r)=>u.jsx(U3,{ref:r,"data-slot":"label",className:$(Tb.oxDropdownMenuLabel,o&&Tb.oxDropdownMenuLabelInset,e),...n,children:t}));kb.displayName="OxDropdownMenuLabel";const Eb=h.forwardRef(({className:e,children:t,disabled:o=!1,variant:n="default",icon:r,dataTestid:a,...s},i)=>u.jsx(q3,{ref:i,asChild:!0,"data-slot":"dropdown-menu-item","data-testid":a,disabled:o,...s,children:u.jsx(ns,{className:e,variant:n,indicator:r,children:t})}));Eb.displayName="OxDropdownMenuItem";const wn=`<svg width="1.2em" height="1.2em" stroke-color="currentColor" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24">
|
|
78
|
-
<g>
|
|
79
|
-
<path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="m5 12 5 5L20 7"/>
|
|
80
|
-
</g>
|
|
81
|
-
</svg>
|
|
82
|
-
`,lA={oxDropdownMenuCheck:"_oxDropdownMenuCheck_sl62o_2"},Ib=h.forwardRef(({className:e,children:t,checked:o,onCheckedChange:n,disabled:r=!1,dataTestid:a,...s},i)=>{const[l,c]=h.useState(o??!1),[d,f]=h.useState(o),p=o!==void 0&&n!==void 0;!p&&o!==d&&(f(o),c(o??!1));const g=p?o:l;return u.jsx(Y3,{ref:i,asChild:!0,"data-slot":"dropdown-menu-checkbox-item","data-testid":a,checked:g,onCheckedChange:x=>{p||c(x),n==null||n(x)},disabled:r,...s,children:u.jsx(ns,{className:e,indicator:u.jsx(_b,{children:u.jsx(ee,{icon:wn,className:lA.oxDropdownMenuCheck})}),children:t})})});Ib.displayName="OxDropdownMenuCheckboxItem";const Db=h.forwardRef(({children:e,value:t,onValueChange:o,...n},r)=>{const[a,s]=h.useState(t),[i,l]=h.useState(t),c=t!==void 0&&o!==void 0;return!c&&t!==i&&(l(t),s(t)),u.jsx(K3,{ref:r,"data-slot":"dropdown-menu-radio-group",value:c?t:a,onValueChange:d=>{c||s(d),o==null||o(d)},...n,children:e})});Db.displayName="OxDropdownMenuRadioGroup";const cA={oxDropdownMenuRadioDot:"_oxDropdownMenuRadioDot_gq9c8_2"},Mb=h.forwardRef(({className:e,children:t,value:o,disabled:n=!1,dataTestid:r,...a},s)=>u.jsx(X3,{ref:s,asChild:!0,"data-slot":"dropdown-menu-radio-item","data-testid":r,value:o,disabled:n,...a,children:u.jsx(ns,{className:e,indicator:u.jsx(_b,{children:u.jsx("span",{className:cA.oxDropdownMenuRadioDot})}),children:t})}));Mb.displayName="OxDropdownMenuRadioItem";const Ob=h.forwardRef(({className:e,...t},o)=>u.jsx(Z3,{ref:o,asChild:!0,"data-slot":"dropdown-menu-separator",...t,children:u.jsx(fl,{className:e})}));Ob.displayName="OxDropdownMenuSeparator";const uA={oxDropdownMenuShortcut:"_oxDropdownMenuShortcut_6mqt6_2"},Ab=h.forwardRef(({className:e,children:t,...o},n)=>u.jsx("span",{ref:n,className:$(uA.oxDropdownMenuShortcut,e),"data-slot":"description","aria-hidden":"true",...o,children:t}));Ab.displayName="OxDropdownMenuShortcut";const Nb=({children:e,defaultOpen:t,open:o,onOpenChange:n})=>u.jsx(J3,{defaultOpen:t,open:o,onOpenChange:n,children:e});Nb.displayName="OxDropdownMenuSub";const dA={oxDropdownMenuSubChevron:"_oxDropdownMenuSubChevron_17jg2_2"},$b=h.forwardRef(({className:e,children:t,disabled:o=!1,icon:n,dataTestid:r,...a},s)=>u.jsx(Q3,{ref:s,asChild:!0,"data-slot":"dropdown-menu-sub-trigger","data-testid":r,disabled:o,...a,children:u.jsxs(ns,{className:e,indicator:n,children:[t,u.jsx(ee,{icon:Ar,className:dA.oxDropdownMenuSubChevron,"aria-hidden":"true"})]})}));$b.displayName="OxDropdownMenuSubTrigger";const fA={oxDropdownMenuSubContent:"_oxDropdownMenuSubContent_pbrnb_2"},pA=16,Fb=h.forwardRef(({className:e,children:t,sideOffset:o=4,alignOffset:n=-4,dataTestid:r,...a},s)=>u.jsx(Cb,{children:u.jsx(eA,{ref:s,asChild:!0,"data-slot":"dropdown-menu-sub-content","data-testid":r,sideOffset:o,alignOffset:n,collisionPadding:pA,...a,children:u.jsx(so,{className:$(fA.oxDropdownMenuSubContent,e),children:t})})}));Fb.displayName="OxDropdownMenuSubContent";const gl={"ox-split-button-menu":"_ox-split-button-menu_1orh6_2","ox-split-button-chevron":"_ox-split-button-chevron_1orh6_2","ox-split-button":"_ox-split-button_1orh6_2"},Lb=h.forwardRef(({className:e,variant:t="default",size:o="md",disabled:n=!1,menuLabel:r,menu:a,dataTestid:s,children:i,...l},c)=>{const d=ve(),[f,p]=h.useState(!1);return u.jsxs(Ku,{className:$(gl["ox-split-button"],e),dataTestid:s,"data-open":f||void 0,"data-disabled":n||void 0,children:[u.jsx(ja,{ref:c,className:gl["ox-split-button-action"],variant:t,size:o,disabled:n,...l,children:i}),u.jsxs(cl,{open:f,onOpenChange:p,children:[u.jsx(ul,{disabled:n,children:u.jsx(ja,{className:gl["ox-split-button-menu"],variant:t,size:o,disabled:n,"aria-label":r??d("orxata.splitButton.more"),children:u.jsx(ee,{icon:Co,className:gl["ox-split-button-chevron"]})})}),u.jsx(hl,{align:"end",children:a})]})]})});Lb.displayName="OxSplitButton";const zb={oxCard:"_oxCard_163r9_2","ox-card--default":"_ox-card--default_163r9_2","ox-card--muted":"_ox-card--muted_163r9_2","ox-card--highlighted":"_ox-card--highlighted_163r9_2"},ml=h.forwardRef(({className:e,asChild:t=!1,tone:o="default",flat:n=!1,dataTestid:r,...a},s)=>{const i=t?Ho:"div";return u.jsx(i,{ref:s,"data-slot":"card","data-testid":r,"data-flat":n,className:$(zb.oxCard,me(zb,Bb({tone:o})),e),...a})});ml.displayName="OxCard";const Bb=Oe("",{variants:{tone:{default:"ox-card--default",muted:"ox-card--muted",highlighted:"ox-card--highlighted"}},defaultVariants:{tone:"default"}}),Yt={oxCardStack:"_oxCardStack_6ml0j_2",oxCardStackInner:"_oxCardStackInner_6ml0j_2",oxCardStackSlot:"_oxCardStackSlot_6ml0j_2",oxCardStackCard:"_oxCardStackCard_6ml0j_2",oxNextEnter:"_oxNextEnter_6ml0j_2",oxNextExitActive:"_oxNextExitActive_6ml0j_2",oxPrevEnter:"_oxPrevEnter_6ml0j_2",oxPrevExitActive:"_oxPrevExitActive_6ml0j_2",oxEnterActive:"_oxEnterActive_6ml0j_2",oxExit:"_oxExit_6ml0j_2"},Hb=h.forwardRef(({className:e,index:t=0,dataTestid:o,children:n,...r},a)=>{const s=h.Children.toArray(n).filter(h.isValidElement).map((p,g)=>({key:p.key??String(g),node:p})),i=xA(s,t),l=h.useRef(t),c=h.useRef("next");l.current!==t&&(c.current=bA(l.current,t,s.length),l.current=t);const d=h.useRef(new Map),f=c.current==="next"?{enter:Yt.oxNextEnter,enterActive:Yt.oxEnterActive,exit:Yt.oxExit,exitActive:Yt.oxNextExitActive}:{enter:Yt.oxPrevEnter,enterActive:Yt.oxEnterActive,exit:Yt.oxExit,exitActive:Yt.oxPrevExitActive};return u.jsx("div",{ref:a,"data-slot":"card-stack","data-testid":o,className:$(Yt.oxCardStack,e),style:{"--ox-card-stack-behind":i.length-1},...r,children:u.jsx(Ei,{className:Yt.oxCardStackInner,children:i.map((p,g)=>{const x=String(p.key),m=b=>{d.current.set(x,b)};return u.jsx(Ga,{timeout:460,classNames:f,nodeRef:{get current(){return d.current.get(x)??null}},children:u.jsx("div",{ref:m,className:Yt.oxCardStackSlot,style:{zIndex:Zd-g},children:u.jsx("div",{className:Yt.oxCardStackCard,"data-slot":"card-stack-card","data-depth":g,"aria-hidden":g>0?"true":void 0,"data-testid":`${o}-card-${g}`,style:{transform:mA(g)},children:p.node})})},x)})})})});Hb.displayName="OxCardStack";const Zd=3,hA=10,gA=.055,mA=e=>`translateY(${e*hA}px) scale(${1-e*gA})`,xA=(e,t)=>{const o=e.length;if(o===0)return[];const n=Math.min(Zd,o),r=(Math.trunc(t)%o+o)%o;return Array.from({length:n},(a,s)=>e[(r+s)%o])},bA=(e,t,o)=>o<2?"next":(t-e+o)%o===o-1?"prev":"next",vA={oxDivider:"_oxDivider_1o9d7_2"},Vb=h.forwardRef(({className:e,orientation:t="horizontal",decorative:o=!1,asChild:n=!1,dataTestid:r,...a},s)=>{const i=n?Ho:"div";return u.jsx(i,{ref:s,"data-slot":"divider","data-testid":r,"data-orientation":t,role:o?"none":"separator","aria-orientation":o||t==="horizontal"?void 0:"vertical",className:$(vA.oxDivider,e),...a})});Vb.displayName="OxDivider";const xl=h.createContext(null);xl.displayName="PanelGroupContext";const Ue={group:"data-panel-group",groupDirection:"data-panel-group-direction",groupId:"data-panel-group-id",panel:"data-panel",panelCollapsible:"data-panel-collapsible",panelId:"data-panel-id",panelSize:"data-panel-size",resizeHandle:"data-resize-handle",resizeHandleActive:"data-resize-handle-active",resizeHandleEnabled:"data-panel-resize-handle-enabled",resizeHandleId:"data-panel-resize-handle-id",resizeHandleState:"data-resize-handle-state"},Jd=10,Jn=h.useLayoutEffect,Wb=v.useId,yA=typeof Wb=="function"?Wb:()=>null;let wA=0;function Qd(e=null){const t=yA(),o=h.useRef(e||t||null);return o.current===null&&(o.current=""+wA++),e??o.current}function Rb({children:e,className:t="",collapsedSize:o,collapsible:n,defaultSize:r,forwardedRef:a,id:s,maxSize:i,minSize:l,onCollapse:c,onExpand:d,onResize:f,order:p,style:g,tagName:x="div",...m}){const b=h.useContext(xl);if(b===null)throw Error("Panel components must be rendered within a PanelGroup container");const{collapsePanel:y,expandPanel:C,getPanelSize:w,getPanelStyle:P,groupId:S,isPanelCollapsed:_,reevaluatePanelConstraints:T,registerPanel:k,resizePanel:E,unregisterPanel:D}=b,O=Qd(s),N=h.useRef({callbacks:{onCollapse:c,onExpand:d,onResize:f},constraints:{collapsedSize:o,collapsible:n,defaultSize:r,maxSize:i,minSize:l},id:O,idIsFromProps:s!==void 0,order:p});h.useRef({didLogMissingDefaultSizeWarning:!1}),Jn(()=>{const{callbacks:B,constraints:G}=N.current,R={...G};N.current.id=O,N.current.idIsFromProps=s!==void 0,N.current.order=p,B.onCollapse=c,B.onExpand=d,B.onResize=f,G.collapsedSize=o,G.collapsible=n,G.defaultSize=r,G.maxSize=i,G.minSize=l,(R.collapsedSize!==G.collapsedSize||R.collapsible!==G.collapsible||R.maxSize!==G.maxSize||R.minSize!==G.minSize)&&T(N.current,R)}),Jn(()=>{const B=N.current;return k(B),()=>{D(B)}},[p,O,k,D]),h.useImperativeHandle(a,()=>({collapse:()=>{y(N.current)},expand:B=>{C(N.current,B)},getId(){return O},getSize(){return w(N.current)},isCollapsed(){return _(N.current)},isExpanded(){return!_(N.current)},resize:B=>{E(N.current,B)}}),[y,C,w,_,O,E]);const z=P(N.current,r);return h.createElement(x,{...m,children:e,className:t,id:O,style:{...z,...g},[Ue.groupId]:S,[Ue.panel]:"",[Ue.panelCollapsible]:n||void 0,[Ue.panelId]:O,[Ue.panelSize]:parseFloat(""+z.flexGrow).toFixed(1)})}const Gb=h.forwardRef((e,t)=>h.createElement(Rb,{...e,forwardedRef:t}));Rb.displayName="Panel",Gb.displayName="forwardRef(Panel)";let ef=null,bl=-1,Cn=null;function CA(e,t){if(t){const o=(t&Jb)!==0,n=(t&Qb)!==0,r=(t&ev)!==0,a=(t&tv)!==0;if(o)return r?"se-resize":a?"ne-resize":"e-resize";if(n)return r?"sw-resize":a?"nw-resize":"w-resize";if(r)return"s-resize";if(a)return"n-resize"}switch(e){case"horizontal":return"ew-resize";case"intersection":return"move";case"vertical":return"ns-resize"}}function _A(){Cn!==null&&(document.head.removeChild(Cn),ef=null,Cn=null,bl=-1)}function tf(e,t){var o,n;const r=CA(e,t);if(ef!==r){if(ef=r,Cn===null&&(Cn=document.createElement("style"),document.head.appendChild(Cn)),bl>=0){var a;(a=Cn.sheet)===null||a===void 0||a.removeRule(bl)}bl=(o=(n=Cn.sheet)===null||n===void 0?void 0:n.insertRule(`*{cursor: ${r} !important;}`))!==null&&o!==void 0?o:-1}}function jb(e){return e.type==="keydown"}function Ub(e){return e.type.startsWith("pointer")}function qb(e){return e.type.startsWith("mouse")}function vl(e){if(Ub(e)){if(e.isPrimary)return{x:e.clientX,y:e.clientY}}else if(qb(e))return{x:e.clientX,y:e.clientY};return{x:1/0,y:1/0}}function SA(){if(typeof matchMedia=="function")return matchMedia("(pointer:coarse)").matches?"coarse":"fine"}function PA(e,t,o){return e.x<t.x+t.width&&e.x+e.width>t.x&&e.y<t.y+t.height&&e.y+e.height>t.y}function TA(e,t){if(e===t)throw new Error("Cannot compare node with itself");const o={a:Xb(e),b:Xb(t)};let n;for(;o.a.at(-1)===o.b.at(-1);)e=o.a.pop(),t=o.b.pop(),n=e;we(n,"Stacking order can only be calculated for elements with a common ancestor");const r={a:Kb(Yb(o.a)),b:Kb(Yb(o.b))};if(r.a===r.b){const a=n.childNodes,s={a:o.a.at(-1),b:o.b.at(-1)};let i=a.length;for(;i--;){const l=a[i];if(l===s.a)return 1;if(l===s.b)return-1}}return Math.sign(r.a-r.b)}const kA=/\b(?:position|zIndex|opacity|transform|webkitTransform|mixBlendMode|filter|webkitFilter|isolation)\b/;function EA(e){var t;const o=getComputedStyle((t=Zb(e))!==null&&t!==void 0?t:e).display;return o==="flex"||o==="inline-flex"}function IA(e){const t=getComputedStyle(e);return!!(t.position==="fixed"||t.zIndex!=="auto"&&(t.position!=="static"||EA(e))||+t.opacity<1||"transform"in t&&t.transform!=="none"||"webkitTransform"in t&&t.webkitTransform!=="none"||"mixBlendMode"in t&&t.mixBlendMode!=="normal"||"filter"in t&&t.filter!=="none"||"webkitFilter"in t&&t.webkitFilter!=="none"||"isolation"in t&&t.isolation==="isolate"||kA.test(t.willChange)||t.webkitOverflowScrolling==="touch")}function Yb(e){let t=e.length;for(;t--;){const o=e[t];if(we(o,"Missing node"),IA(o))return o}return null}function Kb(e){return e&&Number(getComputedStyle(e).zIndex)||0}function Xb(e){const t=[];for(;e;)t.push(e),e=Zb(e);return t}function Zb(e){const{parentNode:t}=e;return t&&t instanceof ShadowRoot?t.host:t}const Jb=1,Qb=2,ev=4,tv=8,DA=SA()==="coarse";let io=[],Gr=!1,Qn=new Map,yl=new Map;const rs=new Set;function MA(e,t,o,n,r){var a;const{ownerDocument:s}=t,i={direction:o,element:t,hitAreaMargins:n,setResizeHandlerState:r},l=(a=Qn.get(s))!==null&&a!==void 0?a:0;return Qn.set(s,l+1),rs.add(i),wl(),function(){var d;yl.delete(e),rs.delete(i);const f=(d=Qn.get(s))!==null&&d!==void 0?d:1;if(Qn.set(s,f-1),wl(),f===1&&Qn.delete(s),io.includes(i)){const p=io.indexOf(i);p>=0&&io.splice(p,1),sf(),r("up",!0,null)}}}function OA(e){const{target:t}=e,{x:o,y:n}=vl(e);Gr=!0,rf({target:t,x:o,y:n}),wl(),io.length>0&&(Cl("down",e),e.preventDefault(),ov(t)||e.stopImmediatePropagation())}function of(e){const{x:t,y:o}=vl(e);if(Gr&&e.buttons===0&&(Gr=!1,Cl("up",e)),!Gr){const{target:n}=e;rf({target:n,x:t,y:o})}Cl("move",e),sf(),io.length>0&&e.preventDefault()}function nf(e){const{target:t}=e,{x:o,y:n}=vl(e);yl.clear(),Gr=!1,io.length>0&&(e.preventDefault(),ov(t)||e.stopImmediatePropagation()),Cl("up",e),rf({target:t,x:o,y:n}),sf(),wl()}function ov(e){let t=e;for(;t;){if(t.hasAttribute(Ue.resizeHandle))return!0;t=t.parentElement}return!1}function rf({target:e,x:t,y:o}){io.splice(0);let n=null;(e instanceof HTMLElement||e instanceof SVGElement)&&(n=e),rs.forEach(r=>{const{element:a,hitAreaMargins:s}=r,i=a.getBoundingClientRect(),{bottom:l,left:c,right:d,top:f}=i,p=DA?s.coarse:s.fine;if(t>=c-p&&t<=d+p&&o>=f-p&&o<=l+p){if(n!==null&&document.contains(n)&&a!==n&&!a.contains(n)&&!n.contains(a)&&TA(n,a)>0){let x=n,m=!1;for(;x&&!x.contains(a);){if(PA(x.getBoundingClientRect(),i)){m=!0;break}x=x.parentElement}if(m)return}io.push(r)}})}function af(e,t){yl.set(e,t)}function sf(){let e=!1,t=!1;io.forEach(n=>{const{direction:r}=n;r==="horizontal"?e=!0:t=!0});let o=0;yl.forEach(n=>{o|=n}),e&&t?tf("intersection",o):e?tf("horizontal",o):t?tf("vertical",o):_A()}let lf=new AbortController;function wl(){lf.abort(),lf=new AbortController;const e={capture:!0,signal:lf.signal};rs.size&&(Gr?(io.length>0&&Qn.forEach((t,o)=>{const{body:n}=o;t>0&&(n.addEventListener("contextmenu",nf,e),n.addEventListener("pointerleave",of,e),n.addEventListener("pointermove",of,e))}),window.addEventListener("pointerup",nf,e),window.addEventListener("pointercancel",nf,e)):Qn.forEach((t,o)=>{const{body:n}=o;t>0&&(n.addEventListener("pointerdown",OA,e),n.addEventListener("pointermove",of,e))}))}function Cl(e,t){rs.forEach(o=>{const{setResizeHandlerState:n}=o,r=io.includes(o);n(e,r,t)})}function AA(){const[e,t]=h.useState(0);return h.useCallback(()=>t(o=>o+1),[])}function we(e,t){if(!e)throw console.error(t),Error(t)}function er(e,t,o=Jd){return e.toFixed(o)===t.toFixed(o)?0:e>t?1:-1}function qo(e,t,o=Jd){return er(e,t,o)===0}function At(e,t,o){return er(e,t,o)===0}function NA(e,t,o){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++){const r=e[n],a=t[n];if(!At(r,a,o))return!1}return!0}function jr({panelConstraints:e,panelIndex:t,size:o}){const n=e[t];we(n!=null,`Panel constraints not found for index ${t}`);let{collapsedSize:r=0,collapsible:a,maxSize:s=100,minSize:i=0}=n;if(er(o,i)<0)if(a){const l=(r+i)/2;er(o,l)<0?o=r:o=i}else o=i;return o=Math.min(s,o),o=parseFloat(o.toFixed(Jd)),o}function as({delta:e,initialLayout:t,panelConstraints:o,pivotIndices:n,prevLayout:r,trigger:a}){if(At(e,0))return t;const s=[...t],[i,l]=n;we(i!=null,"Invalid first pivot index"),we(l!=null,"Invalid second pivot index");let c=0;if(a==="keyboard"){{const f=e<0?l:i,p=o[f];we(p,`Panel constraints not found for index ${f}`);const{collapsedSize:g=0,collapsible:x,minSize:m=0}=p;if(x){const b=t[f];if(we(b!=null,`Previous layout not found for panel index ${f}`),At(b,g)){const y=m-b;er(y,Math.abs(e))>0&&(e=e<0?0-y:y)}}}{const f=e<0?i:l,p=o[f];we(p,`No panel constraints found for index ${f}`);const{collapsedSize:g=0,collapsible:x,minSize:m=0}=p;if(x){const b=t[f];if(we(b!=null,`Previous layout not found for panel index ${f}`),At(b,m)){const y=b-g;er(y,Math.abs(e))>0&&(e=e<0?0-y:y)}}}}{const f=e<0?1:-1;let p=e<0?l:i,g=0;for(;;){const m=t[p];we(m!=null,`Previous layout not found for panel index ${p}`);const y=jr({panelConstraints:o,panelIndex:p,size:100})-m;if(g+=y,p+=f,p<0||p>=o.length)break}const x=Math.min(Math.abs(e),Math.abs(g));e=e<0?0-x:x}{let p=e<0?i:l;for(;p>=0&&p<o.length;){const g=Math.abs(e)-Math.abs(c),x=t[p];we(x!=null,`Previous layout not found for panel index ${p}`);const m=x-g,b=jr({panelConstraints:o,panelIndex:p,size:m});if(!At(x,b)&&(c+=x-b,s[p]=b,c.toPrecision(3).localeCompare(Math.abs(e).toPrecision(3),void 0,{numeric:!0})>=0))break;e<0?p--:p++}}if(NA(r,s))return r;{const f=e<0?l:i,p=t[f];we(p!=null,`Previous layout not found for panel index ${f}`);const g=p+c,x=jr({panelConstraints:o,panelIndex:f,size:g});if(s[f]=x,!At(x,g)){let m=g-x,y=e<0?l:i;for(;y>=0&&y<o.length;){const C=s[y];we(C!=null,`Previous layout not found for panel index ${y}`);const w=C+m,P=jr({panelConstraints:o,panelIndex:y,size:w});if(At(C,P)||(m-=P-C,s[y]=P),At(m,0))break;e>0?y--:y++}}}const d=s.reduce((f,p)=>p+f,0);return At(d,100)?s:r}function $A({layout:e,panelsArray:t,pivotIndices:o}){let n=0,r=100,a=0,s=0;const i=o[0];we(i!=null,"No pivot index found"),t.forEach((f,p)=>{const{constraints:g}=f,{maxSize:x=100,minSize:m=0}=g;p===i?(n=m,r=x):(a+=m,s+=x)});const l=Math.min(r,100-a),c=Math.max(n,100-s),d=e[i];return{valueMax:l,valueMin:c,valueNow:d}}function ss(e,t=document){return Array.from(t.querySelectorAll(`[${Ue.resizeHandleId}][data-panel-group-id="${e}"]`))}function nv(e,t,o=document){const r=ss(e,o).findIndex(a=>a.getAttribute(Ue.resizeHandleId)===t);return r??null}function rv(e,t,o){const n=nv(e,t,o);return n!=null?[n,n+1]:[-1,-1]}function av(e,t=document){var o;if(t instanceof HTMLElement&&(t==null||(o=t.dataset)===null||o===void 0?void 0:o.panelGroupId)==e)return t;const n=t.querySelector(`[data-panel-group][data-panel-group-id="${e}"]`);return n||null}function _l(e,t=document){const o=t.querySelector(`[${Ue.resizeHandleId}="${e}"]`);return o||null}function FA(e,t,o,n=document){var r,a,s,i;const l=_l(t,n),c=ss(e,n),d=l?c.indexOf(l):-1,f=(r=(a=o[d])===null||a===void 0?void 0:a.id)!==null&&r!==void 0?r:null,p=(s=(i=o[d+1])===null||i===void 0?void 0:i.id)!==null&&s!==void 0?s:null;return[f,p]}function LA({committedValuesRef:e,eagerValuesRef:t,groupId:o,layout:n,panelDataArray:r,panelGroupElement:a,setLayout:s}){h.useRef({didWarnAboutMissingResizeHandle:!1}),Jn(()=>{if(!a)return;const i=ss(o,a);for(let l=0;l<r.length-1;l++){const{valueMax:c,valueMin:d,valueNow:f}=$A({layout:n,panelsArray:r,pivotIndices:[l,l+1]}),p=i[l];if(p!=null){const g=r[l];we(g,`No panel data found for index "${l}"`),p.setAttribute("aria-controls",g.id),p.setAttribute("aria-valuemax",""+Math.round(c)),p.setAttribute("aria-valuemin",""+Math.round(d)),p.setAttribute("aria-valuenow",f!=null?""+Math.round(f):"")}}return()=>{i.forEach((l,c)=>{l.removeAttribute("aria-controls"),l.removeAttribute("aria-valuemax"),l.removeAttribute("aria-valuemin"),l.removeAttribute("aria-valuenow")})}},[o,n,r,a]),h.useEffect(()=>{if(!a)return;const i=t.current;we(i,"Eager values not found");const{panelDataArray:l}=i,c=av(o,a);we(c!=null,`No group found for id "${o}"`);const d=ss(o,a);we(d,`No resize handles found for group id "${o}"`);const f=d.map(p=>{const g=p.getAttribute(Ue.resizeHandleId);we(g,"Resize handle element has no handle id attribute");const[x,m]=FA(o,g,l,a);if(x==null||m==null)return()=>{};const b=y=>{if(!y.defaultPrevented)switch(y.key){case"Enter":{y.preventDefault();const C=l.findIndex(w=>w.id===x);if(C>=0){const w=l[C];we(w,`No panel data found for index ${C}`);const P=n[C],{collapsedSize:S=0,collapsible:_,minSize:T=0}=w.constraints;if(P!=null&&_){const k=as({delta:At(P,S)?T-S:S-P,initialLayout:n,panelConstraints:l.map(E=>E.constraints),pivotIndices:rv(o,g,a),prevLayout:n,trigger:"keyboard"});n!==k&&s(k)}}break}}};return p.addEventListener("keydown",b),()=>{p.removeEventListener("keydown",b)}});return()=>{f.forEach(p=>p())}},[a,e,t,o,n,r,s])}function sv(e,t){if(e.length!==t.length)return!1;for(let o=0;o<e.length;o++)if(e[o]!==t[o])return!1;return!0}function iv(e,t){const o=e==="horizontal",{x:n,y:r}=vl(t);return o?n:r}function zA(e,t,o,n,r){const a=o==="horizontal",s=_l(t,r);we(s,`No resize handle element found for id "${t}"`);const i=s.getAttribute(Ue.groupId);we(i,"Resize handle element has no group id attribute");let{initialCursorPosition:l}=n;const c=iv(o,e),d=av(i,r);we(d,`No group element found for id "${i}"`);const f=d.getBoundingClientRect(),p=a?f.width:f.height;return(c-l)/p*100}function BA(e,t,o,n,r,a){if(jb(e)){const s=o==="horizontal";let i=0;e.shiftKey?i=100:r!=null?i=r:i=10;let l=0;switch(e.key){case"ArrowDown":l=s?0:i;break;case"ArrowLeft":l=s?-i:0;break;case"ArrowRight":l=s?i:0;break;case"ArrowUp":l=s?0:-i;break;case"End":l=100;break;case"Home":l=-100;break}return l}else return n==null?0:zA(e,t,o,n,a)}function HA({panelDataArray:e}){const t=Array(e.length),o=e.map(a=>a.constraints);let n=0,r=100;for(let a=0;a<e.length;a++){const s=o[a];we(s,`Panel constraints not found for index ${a}`);const{defaultSize:i}=s;i!=null&&(n++,t[a]=i,r-=i)}for(let a=0;a<e.length;a++){const s=o[a];we(s,`Panel constraints not found for index ${a}`);const{defaultSize:i}=s;if(i!=null)continue;const l=e.length-n,c=r/l;n++,t[a]=c,r-=c}return t}function Ur(e,t,o){t.forEach((n,r)=>{const a=e[r];we(a,`Panel data not found for index ${r}`);const{callbacks:s,constraints:i,id:l}=a,{collapsedSize:c=0,collapsible:d}=i,f=o[l];if(f==null||n!==f){o[l]=n;const{onCollapse:p,onExpand:g,onResize:x}=s;x&&x(n,f),d&&(p||g)&&(g&&(f==null||qo(f,c))&&!qo(n,c)&&g(),p&&(f==null||!qo(f,c))&&qo(n,c)&&p())}})}function Sl(e,t){if(e.length!==t.length)return!1;for(let o=0;o<e.length;o++)if(e[o]!=t[o])return!1;return!0}function VA({defaultSize:e,dragState:t,layout:o,panelData:n,panelIndex:r,precision:a=3}){const s=o[r];let i;return s==null?i=e!=null?e.toPrecision(a):"1":n.length===1?i="1":i=s.toPrecision(a),{flexBasis:0,flexGrow:i,flexShrink:1,overflow:"hidden",pointerEvents:t!==null?"none":void 0}}function WA(e,t=10){let o=null;return(...r)=>{o!==null&&clearTimeout(o),o=setTimeout(()=>{e(...r)},t)}}function lv(e){try{if(typeof localStorage<"u")e.getItem=t=>localStorage.getItem(t),e.setItem=(t,o)=>{localStorage.setItem(t,o)};else throw new Error("localStorage not supported in this environment")}catch(t){console.error(t),e.getItem=()=>null,e.setItem=()=>{}}}function cv(e){return`react-resizable-panels:${e}`}function uv(e){return e.map(t=>{const{constraints:o,id:n,idIsFromProps:r,order:a}=t;return r?n:a?`${a}:${JSON.stringify(o)}`:JSON.stringify(o)}).sort((t,o)=>t.localeCompare(o)).join(",")}function dv(e,t){try{const o=cv(e),n=t.getItem(o);if(n){const r=JSON.parse(n);if(typeof r=="object"&&r!=null)return r}}catch{}return null}function RA(e,t,o){var n,r;const a=(n=dv(e,o))!==null&&n!==void 0?n:{},s=uv(t);return(r=a[s])!==null&&r!==void 0?r:null}function GA(e,t,o,n,r){var a;const s=cv(e),i=uv(t),l=(a=dv(e,r))!==null&&a!==void 0?a:{};l[i]={expandToSizes:Object.fromEntries(o.entries()),layout:n};try{r.setItem(s,JSON.stringify(l))}catch(c){console.error(c)}}function fv({layout:e,panelConstraints:t}){const o=[...e],n=o.reduce((a,s)=>a+s,0);if(o.length!==t.length)throw Error(`Invalid ${t.length} panel layout: ${o.map(a=>`${a}%`).join(", ")}`);if(!At(n,100)&&o.length>0)for(let a=0;a<t.length;a++){const s=o[a];we(s!=null,`No layout data found for index ${a}`);const i=100/n*s;o[a]=i}let r=0;for(let a=0;a<t.length;a++){const s=o[a];we(s!=null,`No layout data found for index ${a}`);const i=jr({panelConstraints:t,panelIndex:a,size:s});s!=i&&(r+=s-i,o[a]=i)}if(!At(r,0))for(let a=0;a<t.length;a++){const s=o[a];we(s!=null,`No layout data found for index ${a}`);const i=s+r,l=jr({panelConstraints:t,panelIndex:a,size:i});if(s!==l&&(r-=l-s,o[a]=l,At(r,0)))break}return o}const jA=100,is={getItem:e=>(lv(is),is.getItem(e)),setItem:(e,t)=>{lv(is),is.setItem(e,t)}},pv={};function hv({autoSaveId:e=null,children:t,className:o="",direction:n,forwardedRef:r,id:a=null,onLayout:s=null,keyboardResizeBy:i=null,storage:l=is,style:c,tagName:d="div",...f}){const p=Qd(a),g=h.useRef(null),[x,m]=h.useState(null),[b,y]=h.useState([]),C=AA(),w=h.useRef({}),P=h.useRef(new Map),S=h.useRef(0),_=h.useRef({autoSaveId:e,direction:n,dragState:x,id:p,keyboardResizeBy:i,onLayout:s,storage:l}),T=h.useRef({layout:b,panelDataArray:[],panelDataArrayChanged:!1});h.useRef({didLogIdAndOrderWarning:!1,didLogPanelConstraintsWarning:!1,prevPanelIds:[]}),h.useImperativeHandle(r,()=>({getId:()=>_.current.id,getLayout:()=>{const{layout:L}=T.current;return L},setLayout:L=>{const{onLayout:q}=_.current,{layout:j,panelDataArray:W}=T.current,U=fv({layout:L,panelConstraints:W.map(K=>K.constraints)});sv(j,U)||(y(U),T.current.layout=U,q&&q(U),Ur(W,U,w.current))}}),[]),Jn(()=>{_.current.autoSaveId=e,_.current.direction=n,_.current.dragState=x,_.current.id=p,_.current.onLayout=s,_.current.storage=l}),LA({committedValuesRef:_,eagerValuesRef:T,groupId:p,layout:b,panelDataArray:T.current.panelDataArray,setLayout:y,panelGroupElement:g.current}),h.useEffect(()=>{const{panelDataArray:L}=T.current;if(e){if(b.length===0||b.length!==L.length)return;let q=pv[e];q==null&&(q=WA(GA,jA),pv[e]=q);const j=[...L],W=new Map(P.current);q(e,j,W,b,l)}},[e,b,l]),h.useEffect(()=>{});const k=h.useCallback(L=>{const{onLayout:q}=_.current,{layout:j,panelDataArray:W}=T.current;if(L.constraints.collapsible){const U=W.map(te=>te.constraints),{collapsedSize:K=0,panelSize:J,pivotIndices:Z}=tr(W,L,j);if(we(J!=null,`Panel size not found for panel "${L.id}"`),!qo(J,K)){P.current.set(L.id,J);const X=qr(W,L)===W.length-1?J-K:K-J,Q=as({delta:X,initialLayout:j,panelConstraints:U,pivotIndices:Z,prevLayout:j,trigger:"imperative-api"});Sl(j,Q)||(y(Q),T.current.layout=Q,q&&q(Q),Ur(W,Q,w.current))}}},[]),E=h.useCallback((L,q)=>{const{onLayout:j}=_.current,{layout:W,panelDataArray:U}=T.current;if(L.constraints.collapsible){const K=U.map(be=>be.constraints),{collapsedSize:J=0,panelSize:Z=0,minSize:te=0,pivotIndices:X}=tr(U,L,W),Q=q??te;if(qo(Z,J)){const be=P.current.get(L.id),De=be!=null&&be>=Q?be:Q,Ge=qr(U,L)===U.length-1?Z-De:De-Z,Me=as({delta:Ge,initialLayout:W,panelConstraints:K,pivotIndices:X,prevLayout:W,trigger:"imperative-api"});Sl(W,Me)||(y(Me),T.current.layout=Me,j&&j(Me),Ur(U,Me,w.current))}}},[]),D=h.useCallback(L=>{const{layout:q,panelDataArray:j}=T.current,{panelSize:W}=tr(j,L,q);return we(W!=null,`Panel size not found for panel "${L.id}"`),W},[]),O=h.useCallback((L,q)=>{const{panelDataArray:j}=T.current,W=qr(j,L);return VA({defaultSize:q,dragState:x,layout:b,panelData:j,panelIndex:W})},[x,b]),N=h.useCallback(L=>{const{layout:q,panelDataArray:j}=T.current,{collapsedSize:W=0,collapsible:U,panelSize:K}=tr(j,L,q);return we(K!=null,`Panel size not found for panel "${L.id}"`),U===!0&&qo(K,W)},[]),z=h.useCallback(L=>{const{layout:q,panelDataArray:j}=T.current,{collapsedSize:W=0,collapsible:U,panelSize:K}=tr(j,L,q);return we(K!=null,`Panel size not found for panel "${L.id}"`),!U||er(K,W)>0},[]),B=h.useCallback(L=>{const{panelDataArray:q}=T.current;q.push(L),q.sort((j,W)=>{const U=j.order,K=W.order;return U==null&&K==null?0:U==null?-1:K==null?1:U-K}),T.current.panelDataArrayChanged=!0,C()},[C]);Jn(()=>{if(T.current.panelDataArrayChanged){T.current.panelDataArrayChanged=!1;const{autoSaveId:L,onLayout:q,storage:j}=_.current,{layout:W,panelDataArray:U}=T.current;let K=null;if(L){const Z=RA(L,U,j);Z&&(P.current=new Map(Object.entries(Z.expandToSizes)),K=Z.layout)}K==null&&(K=HA({panelDataArray:U}));const J=fv({layout:K,panelConstraints:U.map(Z=>Z.constraints)});sv(W,J)||(y(J),T.current.layout=J,q&&q(J),Ur(U,J,w.current))}}),Jn(()=>{const L=T.current;return()=>{L.layout=[]}},[]);const G=h.useCallback(L=>{let q=!1;const j=g.current;return j&&window.getComputedStyle(j,null).getPropertyValue("direction")==="rtl"&&(q=!0),function(U){U.preventDefault();const K=g.current;if(!K)return()=>null;const{direction:J,dragState:Z,id:te,keyboardResizeBy:X,onLayout:Q}=_.current,{layout:be,panelDataArray:De}=T.current,{initialLayout:Fe}=Z??{},Ge=rv(te,L,K);let Me=BA(U,L,J,Z,X,K);const kt=J==="horizontal";kt&&q&&(Me=-Me);const st=De.map(Lo=>Lo.constraints),it=as({delta:Me,initialLayout:Fe??be,panelConstraints:st,pivotIndices:Ge,prevLayout:be,trigger:jb(U)?"keyboard":"mouse-or-touch"}),qe=!Sl(be,it);(Ub(U)||qb(U))&&S.current!=Me&&(S.current=Me,!qe&&Me!==0?kt?af(L,Me<0?Jb:Qb):af(L,Me<0?ev:tv):af(L,0)),qe&&(y(it),T.current.layout=it,Q&&Q(it),Ur(De,it,w.current))}},[]),R=h.useCallback((L,q)=>{const{onLayout:j}=_.current,{layout:W,panelDataArray:U}=T.current,K=U.map(be=>be.constraints),{panelSize:J,pivotIndices:Z}=tr(U,L,W);we(J!=null,`Panel size not found for panel "${L.id}"`);const X=qr(U,L)===U.length-1?J-q:q-J,Q=as({delta:X,initialLayout:W,panelConstraints:K,pivotIndices:Z,prevLayout:W,trigger:"imperative-api"});Sl(W,Q)||(y(Q),T.current.layout=Q,j&&j(Q),Ur(U,Q,w.current))},[]),A=h.useCallback((L,q)=>{const{layout:j,panelDataArray:W}=T.current,{collapsedSize:U=0,collapsible:K}=q,{collapsedSize:J=0,collapsible:Z,maxSize:te=100,minSize:X=0}=L.constraints,{panelSize:Q}=tr(W,L,j);Q!=null&&(K&&Z&&qo(Q,U)?qo(U,J)||R(L,J):Q<X?R(L,X):Q>te&&R(L,te))},[R]),F=h.useCallback((L,q)=>{const{direction:j}=_.current,{layout:W}=T.current;if(!g.current)return;const U=_l(L,g.current);we(U,`Drag handle element not found for id "${L}"`);const K=iv(j,q);m({dragHandleId:L,dragHandleRect:U.getBoundingClientRect(),initialCursorPosition:K,initialLayout:W})},[]),V=h.useCallback(()=>{m(null)},[]),M=h.useCallback(L=>{const{panelDataArray:q}=T.current,j=qr(q,L);j>=0&&(q.splice(j,1),delete w.current[L.id],T.current.panelDataArrayChanged=!0,C())},[C]),Y=h.useMemo(()=>({collapsePanel:k,direction:n,dragState:x,expandPanel:E,getPanelSize:D,getPanelStyle:O,groupId:p,isPanelCollapsed:N,isPanelExpanded:z,reevaluatePanelConstraints:A,registerPanel:B,registerResizeHandle:G,resizePanel:R,startDragging:F,stopDragging:V,unregisterPanel:M,panelGroupElement:g.current}),[k,x,n,E,D,O,p,N,z,A,B,G,R,F,V,M]),H={display:"flex",flexDirection:n==="horizontal"?"row":"column",height:"100%",overflow:"hidden",width:"100%"};return h.createElement(xl.Provider,{value:Y},h.createElement(d,{...f,children:t,className:o,id:a,ref:g,style:{...H,...c},[Ue.group]:"",[Ue.groupDirection]:n,[Ue.groupId]:p}))}const gv=h.forwardRef((e,t)=>h.createElement(hv,{...e,forwardedRef:t}));hv.displayName="PanelGroup",gv.displayName="forwardRef(PanelGroup)";function qr(e,t){return e.findIndex(o=>o===t||o.id===t.id)}function tr(e,t,o){const n=qr(e,t),a=n===e.length-1?[n-1,n]:[n,n+1],s=o[n];return{...t.constraints,panelSize:s,pivotIndices:a}}function UA({disabled:e,handleId:t,resizeHandler:o,panelGroupElement:n}){h.useEffect(()=>{if(e||o==null||n==null)return;const r=_l(t,n);if(r==null)return;const a=s=>{if(!s.defaultPrevented)switch(s.key){case"ArrowDown":case"ArrowLeft":case"ArrowRight":case"ArrowUp":case"End":case"Home":{s.preventDefault(),o(s);break}case"F6":{s.preventDefault();const i=r.getAttribute(Ue.groupId);we(i,`No group element found for id "${i}"`);const l=ss(i,n),c=nv(i,t,n);we(c!==null,`No resize element found for id "${t}"`);const d=s.shiftKey?c>0?c-1:l.length-1:c+1<l.length?c+1:0;l[d].focus();break}}};return r.addEventListener("keydown",a),()=>{r.removeEventListener("keydown",a)}},[n,e,t,o])}function mv({children:e=null,className:t="",disabled:o=!1,hitAreaMargins:n,id:r,onBlur:a,onClick:s,onDragging:i,onFocus:l,onPointerDown:c,onPointerUp:d,style:f={},tabIndex:p=0,tagName:g="div",...x}){var m,b;const y=h.useRef(null),C=h.useRef({onClick:s,onDragging:i,onPointerDown:c,onPointerUp:d});h.useEffect(()=>{C.current.onClick=s,C.current.onDragging=i,C.current.onPointerDown=c,C.current.onPointerUp=d});const w=h.useContext(xl);if(w===null)throw Error("PanelResizeHandle components must be rendered within a PanelGroup container");const{direction:P,groupId:S,registerResizeHandle:_,startDragging:T,stopDragging:k,panelGroupElement:E}=w,D=Qd(r),[O,N]=h.useState("inactive"),[z,B]=h.useState(!1),[G,R]=h.useState(null),A=h.useRef({state:O});Jn(()=>{A.current.state=O}),h.useEffect(()=>{if(o)R(null);else{const Y=_(D);R(()=>Y)}},[o,D,_]);const F=(m=n==null?void 0:n.coarse)!==null&&m!==void 0?m:15,V=(b=n==null?void 0:n.fine)!==null&&b!==void 0?b:5;h.useEffect(()=>{if(o||G==null)return;const Y=y.current;we(Y,"Element ref not attached");let H=!1;return MA(D,Y,P,{coarse:F,fine:V},(q,j,W)=>{if(!j){N("inactive");return}switch(q){case"down":{N("drag"),H=!1,we(W,'Expected event to be defined for "down" action'),T(D,W);const{onDragging:U,onPointerDown:K}=C.current;U==null||U(!0),K==null||K();break}case"move":{const{state:U}=A.current;H=!0,U!=="drag"&&N("hover"),we(W,'Expected event to be defined for "move" action'),G(W);break}case"up":{N("hover"),k();const{onClick:U,onDragging:K,onPointerUp:J}=C.current;K==null||K(!1),J==null||J(),H||U==null||U();break}}})},[F,P,o,V,_,D,G,T,k]),UA({disabled:o,handleId:D,resizeHandler:G,panelGroupElement:E});const M={touchAction:"none",userSelect:"none"};return h.createElement(g,{...x,children:e,className:t,id:r,onBlur:()=>{B(!1),a==null||a()},onFocus:()=>{B(!0),l==null||l()},ref:y,role:"separator",style:{...M,...f},tabIndex:p,[Ue.groupDirection]:P,[Ue.groupId]:S,[Ue.resizeHandle]:"",[Ue.resizeHandleActive]:O==="drag"?"pointer":z?"keyboard":void 0,[Ue.resizeHandleEnabled]:!o,[Ue.resizeHandleId]:D,[Ue.resizeHandleState]:O})}mv.displayName="PanelResizeHandle";const qA={oxResizable:"_oxResizable_v00cx_2"},xv=h.forwardRef(({className:e,direction:t="horizontal",keyboardResizeBy:o=10,dataTestid:n,...r},a)=>u.jsx(gv,{ref:a,direction:t,keyboardResizeBy:o,"data-slot":"resizable","data-testid":n,"data-orientation":t,className:$(qA.oxResizable,e),...r}));xv.displayName="OxResizable";const YA={oxResizablePanel:"_oxResizablePanel_1xocv_2"},bv=h.forwardRef(({className:e,collapsible:t=!1,dataTestid:o,...n},r)=>u.jsx(Gb,{ref:r,collapsible:t,"data-slot":"resizable-panel","data-testid":o,className:$(YA.oxResizablePanel,e),...n}));bv.displayName="OxResizablePanel";const vv=`<svg width="1.2em" height="1.2em" stroke-color="currentColor" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24">
|
|
83
|
-
<g>
|
|
84
|
-
<g>
|
|
85
|
-
<g>
|
|
86
|
-
<path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M9 13a1 1 0 1 0 0-2 1 1 0 0 0 0 2Zm0 7a1 1 0 1 0 0-2 1 1 0 0 0 0 2ZM9 6a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z"/>
|
|
87
|
-
</g>
|
|
88
|
-
<g>
|
|
89
|
-
<path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M14 13a1 1 0 1 0 0-2 1 1 0 0 0 0 2Zm0 7a1 1 0 1 0 0-2 1 1 0 0 0 0 2Zm0-14a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z"/>
|
|
90
|
-
</g>
|
|
91
|
-
</g>
|
|
92
|
-
</g>
|
|
93
|
-
</svg>
|
|
94
|
-
`,cf={oxResizableHandle:"_oxResizableHandle_m3hkz_2",oxResizableHandleBar:"_oxResizableHandleBar_m3hkz_2",oxResizableHandleIcon:"_oxResizableHandleIcon_m3hkz_2"},yv=({className:e,orientation:t="horizontal",children:o,dataTestid:n,...r})=>u.jsx(mv,{"data-slot":"resizable-handle","data-testid":n,"data-orientation":t,className:$(cf.oxResizableHandle,e),...r,children:u.jsx("div",{className:cf.oxResizableHandleBar,children:o??u.jsx(ee,{icon:vv,className:cf.oxResizableHandleIcon})})});yv.displayName="OxResizableHandle";const ls={"ox-scrollbar":"_ox-scrollbar_khghb_2","ox-scrollbar--visible":"_ox-scrollbar--visible_khghb_2","ox-scrollbar-thumb":"_ox-scrollbar-thumb_khghb_2","ox-scrollbar--near":"_ox-scrollbar--near_khghb_2","ox-scrollbar-thumb--dragging":"_ox-scrollbar-thumb--dragging_khghb_2"},KA=900,XA=40,ZA=24,Pl=12,uf=e=>e?"current"in e?e.current:e:null,wv=(e,t)=>{e(o=>Object.keys(t).every(n=>o[n]===t[n])?o:t)},Cv=(e,t)=>{const o=h.useRef(0),[n,r]=h.useState(!1),[a,s]=h.useState(!1),[i,l]=h.useState(!1),[c,d]=h.useState({top:0,height:0}),f=h.useCallback(()=>{r(!0),window.clearTimeout(o.current),o.current=window.setTimeout(()=>{s(m=>(m||r(!1),m))},KA)},[]),p=h.useCallback(()=>{const m=uf(e),b=t.current;if(!m||!b)return;const y=b.clientHeight,C=m.scrollHeight-m.clientHeight;if(C<=0||y<=0){wv(d,{top:0,height:0});return}const w=Math.max(ZA,y*(m.clientHeight/m.scrollHeight));wv(d,{height:w,top:m.scrollTop/C*(y-w)})},[e,t]);return h.useEffect(()=>{const m=uf(e),b=t.current;if(!m)return;const y=()=>{p(),f()},C=S=>{const _=m.getBoundingClientRect(),T=_.left+m.clientLeft+m.clientWidth-Pl;l(S.clientX>=T),S.clientX>_.right-XA&&(p(),f())},w=()=>l(!1);m.addEventListener("scroll",y,{passive:!0}),m.addEventListener("mousemove",C,{passive:!0}),m.addEventListener("mouseleave",w,{passive:!0}),m.style.setProperty("scrollbar-width","none");let P=null;return typeof ResizeObserver<"u"&&(P=new ResizeObserver(p),P.observe(m),b&&P.observe(b)),p(),()=>{m.removeEventListener("scroll",y),m.removeEventListener("mousemove",C),m.removeEventListener("mouseleave",w),m.style.removeProperty("scrollbar-width"),P==null||P.disconnect()}}),h.useEffect(()=>()=>window.clearTimeout(o.current),[]),{visible:n,dragging:a,near:i,thumb:c,measure:p,startDrag:m=>{const b=uf(e),y=t.current;if(!b||!y)return;m.preventDefault();const C=m.clientY-y.getBoundingClientRect().top-c.top;s(!0),r(!0);const w=S=>{const _=y.clientHeight-c.height;if(_<=0)return;const T=S.clientY-y.getBoundingClientRect().top-C,k=Math.min(1,Math.max(0,T/_));b.scrollTop=k*(b.scrollHeight-b.clientHeight)},P=()=>{s(!1),window.removeEventListener("mousemove",w),window.removeEventListener("mouseup",P),f()};window.addEventListener("mousemove",w),window.addEventListener("mouseup",P)},approach:()=>l(!0)}},_n=h.forwardRef(({className:e,port:t,dataTestid:o,...n},r)=>{const a=h.useRef(null),{visible:s,dragging:i,near:l,thumb:c,startDrag:d,approach:f}=Cv(t,a),p=g=>{a.current=g,typeof r=="function"?r(g):r&&(r.current=g)};return u.jsx("div",{...n,ref:p,className:$(ls["ox-scrollbar"],(s||i)&&ls["ox-scrollbar--visible"],(l||i)&&ls["ox-scrollbar--near"],e),"data-slot":"scrollbar","data-testid":o,"aria-hidden":"true",children:c.height>0&&u.jsx("div",{className:$(ls["ox-scrollbar-thumb"],i&&ls["ox-scrollbar-thumb--dragging"]),style:{top:`${c.top}px`,height:`${c.height}px`},"data-slot":"thumb","data-testid":`${o}-thumb`,onMouseDown:d,onMouseEnter:f})})});_n.displayName="OxScrollbar";const JA={"ox-bullet":"_ox-bullet_1uaja_2","ox-bullet--24":"_ox-bullet--24_1uaja_2","ox-bullet--16":"_ox-bullet--16_1uaja_2","ox-bullet--12":"_ox-bullet--12_1uaja_2","ox-bullet--8":"_ox-bullet--8_1uaja_2","ox-bullet--active":"_ox-bullet--active_1uaja_2","ox-bullet--info":"_ox-bullet--info_1uaja_2","ox-bullet--warning":"_ox-bullet--warning_1uaja_2","ox-bullet--neutral":"_ox-bullet--neutral_1uaja_2","ox-bullet--error":"_ox-bullet--error_1uaja_2"},Tl=h.forwardRef(({className:e,size:t="24",color:o="active",dataTestid:n,...r},a)=>u.jsx("div",{ref:a,"data-slot":"bullet","data-testid":n,className:$(me(JA,_v({size:t,color:o})),e),...r}));Tl.displayName="OxBullet";const _v=Oe("ox-bullet",{variants:{size:{24:"ox-bullet--24",16:"ox-bullet--16",12:"ox-bullet--12",8:"ox-bullet--8"},color:{active:"ox-bullet--active",info:"ox-bullet--info",warning:"ox-bullet--warning",neutral:"ox-bullet--neutral",error:"ox-bullet--error"}},defaultVariants:{size:"24",color:"active"}});var QA=Object.defineProperty,Yr=(e,t)=>QA(e,"name",{value:t,configurable:!0}),Sv=!!(typeof window<"u"&&window.document&&window.document.createElement);function Te(e,t,{checkForDefaultPrevented:o=!0}={}){return Yr(function(r){if(e==null||e(r),o===!1||!r||!r.defaultPrevented)return t==null?void 0:t(r)},"handleEvent")}Yr(Te,"composeEventHandlers");function e4(e){var t;if(!Sv)throw new Error("Cannot access window outside of the DOM");return((t=e==null?void 0:e.ownerDocument)==null?void 0:t.defaultView)??window}Yr(e4,"getOwnerWindow");function df(e){if(!Sv)throw new Error("Cannot access document outside of the DOM");return(e==null?void 0:e.ownerDocument)??document}Yr(df,"getOwnerDocument");function Pv(e,t=!1){const{activeElement:o}=df(e);if(!(o!=null&&o.nodeName))return null;if(Tv(o)&&o.contentDocument)return Pv(o.contentDocument.body,t);if(t){const n=o.getAttribute("aria-activedescendant");if(n){const r=df(o).getElementById(n);if(r)return r}}return o}Yr(Pv,"getActiveElement");function Tv(e){return e.tagName==="IFRAME"}Yr(Tv,"isFrame");function Kt(e,t=[]){let o=[];function n(a,s){const i=v.createContext(s);i.displayName=a+"Context";const l=o.length;o=[...o,s];const c=f=>{var y;const{scope:p,children:g,...x}=f,m=((y=p==null?void 0:p[e])==null?void 0:y[l])||i,b=v.useMemo(()=>x,Object.values(x));return u.jsx(m.Provider,{value:b,children:g})};c.displayName=a+"Provider";function d(f,p,g={}){var y;const{optional:x=!1}=g,m=((y=p==null?void 0:p[e])==null?void 0:y[l])||i,b=v.useContext(m);if(b)return b;if(s!==void 0)return s;if(!x)throw new Error(`\`${f}\` must be used within \`${a}\``)}return[c,d]}const r=()=>{const a=o.map(s=>v.createContext(s));return function(i){const l=(i==null?void 0:i[e])||a;return v.useMemo(()=>({[`__scope${e}`]:{...i,[e]:l}}),[i,l])}};return r.scopeName=e,[n,t4(r,...t)]}function t4(...e){const t=e[0];if(e.length===1)return t;const o=()=>{const n=e.map(r=>({useScope:r(),scopeName:r.scopeName}));return function(a){const s=n.reduce((i,{useScope:l,scopeName:c})=>{const f=l(a)[`__scope${c}`];return{...i,...f}},{});return v.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return o.scopeName=t.scopeName,o}var o4=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],ye=o4.reduce((e,t)=>{const o=Or(`Primitive.${t}`),n=v.forwardRef((r,a)=>{const{asChild:s,...i}=r,l=s?o:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),u.jsx(l,{...i,ref:a})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function n4(e,t){e&&no.flushSync(()=>e.dispatchEvent(t))}function or(e){const t=v.useRef(e);return v.useEffect(()=>{t.current=e}),v.useMemo(()=>((...o)=>{var n;return(n=t.current)==null?void 0:n.call(t,...o)}),[])}var r4=Object.defineProperty,dt=(e,t)=>r4(e,"name",{value:t,configurable:!0}),ff="dismissableLayer.update",a4="dismissableLayer.pointerDownOutside",s4="dismissableLayer.focusOutside",kv,Ev=v.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set,dismissableSurfaces:new Set}),pf=v.forwardRef(dt(function(t,o){const{disableOutsidePointerEvents:n=!1,deferPointerDownOutside:r=!1,onEscapeKeyDown:a,onPointerDownOutside:s,onFocusOutside:i,onInteractOutside:l,onDismiss:c,...d}=t,f=v.useContext(Ev),[p,g]=v.useState(null),x=(p==null?void 0:p.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,m]=v.useState({}),b=We(o,g),y=Array.from(f.layers),[C]=[...f.layersWithOutsidePointerEventsDisabled].slice(-1),w=C?y.indexOf(C):-1,P=p?y.indexOf(p):-1,S=f.layersWithOutsidePointerEventsDisabled.size>0,_=P>=w,T=v.useRef(!1),k=Dv(N=>{s==null||s(N),l==null||l(N),N.defaultPrevented||c==null||c()},{ownerDocument:x,deferPointerDownOutside:r,isDeferredPointerDownOutsideRef:T,dismissableSurfaces:f.dismissableSurfaces,shouldHandlePointerDownOutside:v.useCallback(N=>{if(!(N instanceof Node))return!1;const z=[...f.branches].some(B=>B.contains(N));return _&&!z},[f.branches,_])}),E=Mv(N=>{if(r&&T.current)return;const z=N.target;[...f.branches].some(G=>G.contains(z))||(i==null||i(N),l==null||l(N),N.defaultPrevented||c==null||c())},x),D=p?P===y.length-1:!1,O=or(N=>{N.key==="Escape"&&(a==null||a(N),!N.defaultPrevented&&c&&(N.preventDefault(),c()))});return v.useEffect(()=>{if(D)return x.addEventListener("keydown",O,{capture:!0}),()=>x.removeEventListener("keydown",O,{capture:!0})},[x,D,O]),v.useEffect(()=>{if(p)return n&&(f.layersWithOutsidePointerEventsDisabled.size===0&&(kv=x.body.style.pointerEvents,x.body.style.pointerEvents="none"),f.layersWithOutsidePointerEventsDisabled.add(p)),f.layers.add(p),hf(),()=>{n&&(f.layersWithOutsidePointerEventsDisabled.delete(p),f.layersWithOutsidePointerEventsDisabled.size===0&&(x.body.style.pointerEvents=kv))}},[p,x,n,f]),v.useEffect(()=>()=>{p&&(f.layers.delete(p),f.layersWithOutsidePointerEventsDisabled.delete(p),hf())},[p,f]),v.useEffect(()=>{const N=dt(()=>m({}),"handleUpdate");return document.addEventListener(ff,N),()=>document.removeEventListener(ff,N)},[]),u.jsx(ye.div,{...d,ref:b,style:{pointerEvents:S?_?"auto":"none":void 0,...t.style},onFocusCapture:Te(t.onFocusCapture,E.onFocusCapture),onBlurCapture:Te(t.onBlurCapture,E.onBlurCapture),onPointerDownCapture:Te(t.onPointerDownCapture,k.onPointerDownCapture)})},"DismissableLayer"));function Iv(){const e=v.useContext(Ev),[t,o]=v.useState(null);return v.useEffect(()=>{if(t)return e.dismissableSurfaces.add(t),()=>{e.dismissableSurfaces.delete(t)}},[t,e.dismissableSurfaces]),o}dt(Iv,"useDismissableLayerSurface");var i4=dt(()=>!0,"IS_TRUE");function Dv(e,t){const{ownerDocument:o=globalThis==null?void 0:globalThis.document,deferPointerDownOutside:n=!1,isDeferredPointerDownOutsideRef:r,dismissableSurfaces:a,shouldHandlePointerDownOutside:s=i4}=t,i=or(e),l=v.useRef(!1),c=v.useRef(!1),d=v.useRef(new Map),f=v.useRef(()=>{});return v.useEffect(()=>{function p(){c.current=!1,r.current=!1,d.current.clear()}dt(p,"resetOutsideInteraction");function g(){return Array.from(d.current.values()).some(Boolean)}dt(g,"isOutsideInteractionIntercepted");function x(w){if(!c.current)return;const P=w.target;P instanceof Node&&[...a].some(_=>_.contains(P))||d.current.set(w.type,!0),w.type==="click"&&window.setTimeout(()=>{c.current&&f.current()},0)}dt(x,"handleInteractionCapture");function m(w){c.current&&d.current.set(w.type,!1)}dt(m,"handleInteractionBubble");const b=dt(w=>{if(w.target&&!l.current){let P=function(){o.removeEventListener("click",f.current);const _=g();p(),_||gf(a4,i,S,{discrete:!0})};if(dt(P,"handleAndDispatchPointerDownOutsideEvent"),!s(w.target)){o.removeEventListener("click",f.current),p(),l.current=!1;return}const S={originalEvent:w};c.current=!0,r.current=n&&w.button===0,d.current.clear(),!n||w.button!==0?P():(o.removeEventListener("click",f.current),f.current=P,o.addEventListener("click",f.current,{once:!0}))}else o.removeEventListener("click",f.current),p();l.current=!1},"handlePointerDown"),y=["pointerup","mousedown","mouseup","touchstart","touchend","click"];for(const w of y)o.addEventListener(w,x,!0),o.addEventListener(w,m);const C=window.setTimeout(()=>{o.addEventListener("pointerdown",b)},0);return()=>{window.clearTimeout(C),o.removeEventListener("pointerdown",b),o.removeEventListener("click",f.current);for(const w of y)o.removeEventListener(w,x,!0),o.removeEventListener(w,m)}},[o,i,n,r,a,s]),{onPointerDownCapture:dt(()=>l.current=!0,"onPointerDownCapture")}}dt(Dv,"usePointerDownOutside");function Mv(e,t=globalThis==null?void 0:globalThis.document){const o=or(e),n=v.useRef(!1);return v.useEffect(()=>{const r=dt(a=>{a.target&&!n.current&&gf(s4,o,{originalEvent:a},{discrete:!1})},"handleFocus");return t.addEventListener("focusin",r),()=>t.removeEventListener("focusin",r)},[t,o]),{onFocusCapture:dt(()=>n.current=!0,"onFocusCapture"),onBlurCapture:dt(()=>n.current=!1,"onBlurCapture")}}dt(Mv,"useFocusOutside");function hf(){const e=new CustomEvent(ff);document.dispatchEvent(e)}dt(hf,"dispatchUpdate");function gf(e,t,o,{discrete:n}){const r=o.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:o});t&&r.addEventListener(e,t,{once:!0}),n?n4(r,a):r.dispatchEvent(a)}dt(gf,"handleAndDispatchCustomEvent");var _t=globalThis!=null&&globalThis.document?v.useLayoutEffect:()=>{},l4=v[" useId ".trim().toString()]||(()=>{}),c4=0;function St(e){const[t,o]=v.useState(l4());return _t(()=>{o(n=>n??String(c4++))},[e]),t?`radix-${t}`:""}var u4=Object.defineProperty,d4=(e,t)=>u4(e,"name",{value:t,configurable:!0}),f4=v.forwardRef(d4(function(t,o){const{children:n,width:r=10,height:a=5,...s}=t;return u.jsx(ye.svg,{...s,ref:o,width:r,height:a,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:t.asChild?n:u.jsx("polygon",{points:"0,0 30,0 15,10"})})},"Arrow")),p4=f4;function mf(e){const[t,o]=v.useState(void 0);return _t(()=>{if(e){o({width:e.offsetWidth,height:e.offsetHeight});const n=new ResizeObserver(r=>{if(!Array.isArray(r)||!r.length)return;const a=r[0];let s,i;if("borderBoxSize"in a){const l=a.borderBoxSize,c=Array.isArray(l)?l[0]:l;s=c.inlineSize,i=c.blockSize}else s=e.offsetWidth,i=e.offsetHeight;o({width:s,height:i})});return n.observe(e,{box:"border-box"}),()=>n.unobserve(e)}else o(void 0)},[e]),t}var h4=Object.defineProperty,Yo=(e,t)=>h4(e,"name",{value:t,configurable:!0}),Ov="Popper",[Av,kl]=Kt(Ov),[g4,Nv]=Av(Ov),m4=Yo(e=>{const{__scopePopper:t,children:o}=e,[n,r]=v.useState(null),[a,s]=v.useState(void 0);return u.jsx(g4,{scope:t,anchor:n,onAnchorChange:r,placementState:a,setPlacementState:s,children:o})},"Popper"),x4="PopperAnchor",b4=v.forwardRef(Yo(function(t,o){const{__scopePopper:n,virtualRef:r,...a}=t,s=Nv(x4,n),i=v.useRef(null),l=s.onAnchorChange,c=v.useCallback(m=>{i.current=m,m&&l(m)},[l]),d=We(o,c),f=v.useRef(null);v.useEffect(()=>{if(!r)return;const m=f.current;f.current=r.current,m!==f.current&&l(f.current)});const p=s.placementState&&El(s.placementState),g=p==null?void 0:p[0],x=p==null?void 0:p[1];return r?null:u.jsx(ye.div,{"data-radix-popper-side":g,"data-radix-popper-align":x,...a,ref:d})},"PopperAnchor")),$v="PopperContent",[v4,y4]=Av($v),w4=v.forwardRef(Yo(function(t,o){var J,Z,te,X,Q,be,De;const{__scopePopper:n,side:r="bottom",sideOffset:a=0,align:s="center",alignOffset:i=0,arrowPadding:l=0,avoidCollisions:c=!0,collisionBoundary:d=[],collisionPadding:f=0,sticky:p="partial",hideWhenDetached:g=!1,updatePositionStrategy:x="optimized",onPlaced:m,...b}=t,y=Nv($v,n),[C,w]=v.useState(null),P=We(o,w),[S,_]=v.useState(null),T=mf(S),k=(T==null?void 0:T.width)??0,E=(T==null?void 0:T.height)??0,D=r+(s!=="center"?"-"+s:""),O=typeof f=="number"?f:{top:0,right:0,bottom:0,left:0,...f},N=Array.isArray(d)?d:[d],z=N.length>0,B={padding:O,boundary:N.filter(Fv),altBoundary:z},{refs:G,floatingStyles:R,placement:A,isPositioned:F,middlewareData:V}=f0({strategy:"fixed",placement:D,whileElementsMounted:Yo((...Fe)=>l0(...Fe,{animationFrame:x==="always"}),"whileElementsMounted"),elements:{reference:y.anchor},middleware:[p0({mainAxis:a+E,alignmentAxis:i}),c&&h0({mainAxis:!0,crossAxis:!1,limiter:p==="partial"?g0():void 0,...B}),c&&m0({...B}),x0({...B,apply:Yo(({elements:Fe,rects:Ge,availableWidth:Me,availableHeight:kt})=>{const{width:st,height:it}=Ge.reference,qe=Fe.floating.style;qe.setProperty("--radix-popper-available-width",`${Me}px`),qe.setProperty("--radix-popper-available-height",`${kt}px`),qe.setProperty("--radix-popper-anchor-width",`${st}px`),qe.setProperty("--radix-popper-anchor-height",`${it}px`)},"apply")}),S&&v0({element:S,padding:l}),P4({arrowWidth:k,arrowHeight:E}),g&&b0({strategy:"referenceHidden",...B,boundary:z?B.boundary:void 0})]}),M=y.setPlacementState;_t(()=>(M(A),()=>{M(void 0)}),[A,M]);const[Y,H]=El(A),L=or(m);_t(()=>{F&&(L==null||L())},[F,L]);const q=(J=V.arrow)==null?void 0:J.x,j=(Z=V.arrow)==null?void 0:Z.y,W=((te=V.arrow)==null?void 0:te.centerOffset)!==0,[U,K]=v.useState();return _t(()=>{C&&K(window.getComputedStyle(C).zIndex)},[C]),u.jsx("div",{ref:G.setFloating,"data-radix-popper-content-wrapper":"",style:{...R,transform:F?R.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:U,"--radix-popper-transform-origin":[(X=V.transformOrigin)==null?void 0:X.x,(Q=V.transformOrigin)==null?void 0:Q.y].join(" "),...((be=V.hide)==null?void 0:be.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:t.dir,children:u.jsx(v4,{scope:n,placedSide:Y,placedAlign:H,onArrowChange:_,arrowX:q,arrowY:j,shouldHideArrow:W,children:u.jsx(ye.div,{"data-side":Y,"data-align":H,...b,ref:P,style:{...b.style,animation:F?(De=b.style)==null?void 0:De.animation:"none"}})})})},"PopperContent")),C4="PopperArrow",_4={top:"bottom",right:"left",bottom:"top",left:"right"},S4=v.forwardRef(Yo(function(t,o){const{__scopePopper:n,...r}=t,a=y4(C4,n),s=_4[a.placedSide];return u.jsx("span",{ref:a.onArrowChange,style:{position:"absolute",left:a.arrowX,top:a.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[a.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[a.placedSide],visibility:a.shouldHideArrow?"hidden":void 0},children:u.jsx(p4,{...r,ref:o,style:{...r.style,display:"block"}})})},"PopperArrow"));function Fv(e){return e!==null}Yo(Fv,"isNotNull");var P4=Yo(e=>({name:"transformOrigin",options:e,fn(t){var b,y,C;const{placement:o,rects:n,middlewareData:r}=t,s=((b=r.arrow)==null?void 0:b.centerOffset)!==0,i=s?0:e.arrowWidth,l=s?0:e.arrowHeight,[c,d]=El(o),f={start:"0%",center:"50%",end:"100%"}[d],p=(((y=r.arrow)==null?void 0:y.x)??0)+i/2,g=(((C=r.arrow)==null?void 0:C.y)??0)+l/2;let x="",m="";return c==="bottom"?(x=s?f:`${p}px`,m=`${-l}px`):c==="top"?(x=s?f:`${p}px`,m=`${n.floating.height+l}px`):c==="right"?(x=`${-l}px`,m=s?f:`${g}px`):c==="left"&&(x=`${n.floating.width+l}px`,m=s?f:`${g}px`),{data:{x,y:m}}}}),"transformOrigin");function El(e){const[t,o="center"]=e.split("-");return[t,o]}Yo(El,"getSideAndAlignFromPlacement");var Lv=m4,xf=b4,zv=w4,Bv=S4,T4=Object.defineProperty,k4=(e,t)=>T4(e,"name",{value:t,configurable:!0}),bf=v.forwardRef(k4(function(t,o){var l;const{container:n,...r}=t,[a,s]=v.useState(!1);_t(()=>s(!0),[]);const i=n||a&&((l=globalThis==null?void 0:globalThis.document)==null?void 0:l.body);return i?no.createPortal(u.jsx(ye.div,{...r,ref:o}),i):null},"Portal")),E4=Object.defineProperty,Ko=(e,t)=>E4(e,"name",{value:t,configurable:!0});function Hv(e,t){return v.useReducer((o,n)=>t[o][n]??o,e)}Ko(Hv,"useStateMachine");var lo=Ko(e=>{const{present:t,children:o}=e,n=Vv(t),r=typeof o=="function"?o({present:n.isPresent}):v.Children.only(o),a=Wv(n.ref,Rv(r));return typeof o=="function"||n.isPresent?v.cloneElement(r,{ref:a}):null},"Presence");function Vv(e){const[t,o]=v.useState(),n=v.useRef(null),r=v.useRef(e),a=v.useRef("none"),s=v.useRef(void 0),i=e?"mounted":"unmounted",[l,c]=Hv(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return v.useEffect(()=>{l==="mounted"?(a.current=s.current??Kr(n.current),s.current=void 0):a.current="none"},[l]),_t(()=>{const d=n.current,f=r.current;if(f!==e){const g=a.current,x=Kr(d);e?(s.current=x,c("MOUNT")):x==="none"||(d==null?void 0:d.display)==="none"?c("UNMOUNT"):c(f&&g!==x?"ANIMATION_OUT":"UNMOUNT"),r.current=e}},[e,c]),_t(()=>{if(t){let d;const f=t.ownerDocument.defaultView??window,p=Ko(x=>{const b=Kr(n.current).includes(CSS.escape(x.animationName));if(x.target===t&&b&&(c("ANIMATION_END"),!r.current)){const y=t.style.animationFillMode;t.style.animationFillMode="forwards",d=f.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=y)})}},"handleAnimationEnd"),g=Ko(x=>{x.target===t&&(a.current=Kr(n.current))},"handleAnimationStart");return t.addEventListener("animationstart",g),t.addEventListener("animationcancel",p),t.addEventListener("animationend",p),()=>{f.clearTimeout(d),t.removeEventListener("animationstart",g),t.removeEventListener("animationcancel",p),t.removeEventListener("animationend",p)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:v.useCallback(d=>{if(d){const f=getComputedStyle(d);n.current=f,s.current=Kr(f)}else n.current=null;o(d)},[])}}Ko(Vv,"usePresence");function vf(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}Ko(vf,"setRef");function Wv(...e){const t=v.useRef(e);return t.current=e,v.useCallback(o=>{const n=t.current;let r=!1;const a=n.map(s=>{const i=vf(s,o);return!r&&typeof i=="function"&&(r=!0),i});if(r)return()=>{for(let s=0;s<a.length;s++){const i=a[s];typeof i=="function"?i():vf(n[s],null)}}},[])}Ko(Wv,"useStableComposedRefs");function Kr(e){return(e==null?void 0:e.animationName)||"none"}Ko(Kr,"getAnimationName");function Rv(e){var n,r;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,o=t&&"isReactWarning"in t&&t.isReactWarning;return o?e.ref:(t=(r=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:r.get,o=t&&"isReactWarning"in t&&t.isReactWarning,o?e.props.ref:e.props.ref||e.ref)}Ko(Rv,"getElementRef");var Gv=v[" useEffectEvent ".trim().toString()],jv=v[" useInsertionEffect ".trim().toString()];function I4(e){if(typeof Gv=="function")return Gv(e);const t=v.useRef(()=>{throw new Error("Cannot call an event handler while rendering.")});return typeof jv=="function"?jv(()=>{t.current=e}):_t(()=>{t.current=e}),v.useMemo(()=>((...o)=>{var n;return(n=t.current)==null?void 0:n.call(t,...o)}),[])}var D4=Object.defineProperty,cs=(e,t)=>D4(e,"name",{value:t,configurable:!0}),M4=v[" useInsertionEffect ".trim().toString()]||_t;function co({prop:e,defaultProp:t,onChange:o=cs(()=>{},"onChange"),caller:n}){const[r,a,s]=Uv({defaultProp:t,onChange:o}),i=e!==void 0,l=i?e:r,c=v.useCallback(d=>{var f;if(i){const p=qv(d)?d(e):d;p!==e&&((f=s.current)==null||f.call(s,p))}else a(d)},[i,e,a,s]);return[l,c]}cs(co,"useControllableState");function Uv({defaultProp:e,onChange:t}){const[o,n]=v.useState(e),r=v.useRef(o),a=v.useRef(t);return M4(()=>{a.current=t},[t]),v.useEffect(()=>{var s;r.current!==o&&((s=a.current)==null||s.call(a,o),r.current=o)},[o,r]),[o,n,a]}cs(Uv,"useUncontrolledState");function qv(e){return typeof e=="function"}cs(qv,"isFunction");var Yv=Symbol("RADIX:SYNC_STATE");function O4(e,t,o,n){const{prop:r,defaultProp:a,onChange:s,caller:i}=t,l=r!==void 0,c=I4(s),d=[{...o,state:a}];n&&d.push(n);const[f,p]=v.useReducer((b,y)=>{if(y.type===Yv)return{...b,state:y.state};const C=e(b,y);return l&&!Object.is(C.state,b.state)&&c(C.state),C},...d),g=f.state,x=v.useRef(g);v.useEffect(()=>{x.current!==g&&(x.current=g,l||c(g))},[g,x,l]);const m=v.useMemo(()=>r!==void 0?{...f,state:r}:f,[f,r]);return v.useEffect(()=>{l&&!Object.is(r,f.state)&&p({type:Yv,state:r})},[r,f.state,l]),[m,p]}cs(O4,"useControllableStateReducer");var A4=Object.defineProperty,N4=(e,t)=>A4(e,"name",{value:t,configurable:!0}),$4=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),F4=v.forwardRef(N4(function(t,o){return u.jsx(ye.span,{...t,ref:o,style:{...$4,...t.style}})},"VisuallyHidden")),L4=F4,z4=Object.defineProperty,ot=(e,t)=>z4(e,"name",{value:t,configurable:!0}),[yf]=Kt("Tooltip",[kl]),Il=kl(),B4="TooltipProvider",H4=700,wf="tooltip.open",[V4,Cf]=yf(B4),W4=ot(e=>{const{__scopeTooltip:t,delayDuration:o=H4,skipDelayDuration:n=300,disableHoverableContent:r=!1,children:a}=e,s=v.useRef(!0),i=v.useRef(!1),l=v.useRef(0);return v.useEffect(()=>{const c=l.current;return()=>window.clearTimeout(c)},[]),u.jsx(V4,{scope:t,isOpenDelayedRef:s,delayDuration:o,onOpen:v.useCallback(()=>{n<=0||(window.clearTimeout(l.current),s.current=!1)},[n]),onClose:v.useCallback(()=>{n<=0||(window.clearTimeout(l.current),l.current=window.setTimeout(()=>s.current=!0,n))},[n]),isPointerInTransitRef:i,onPointerInTransitChange:v.useCallback(c=>{i.current=c},[]),disableHoverableContent:r,children:a})},"TooltipProvider"),_f="Tooltip",[R4,us]=yf(_f),G4=ot(e=>{const{__scopeTooltip:t,children:o,open:n,defaultOpen:r,onOpenChange:a,disableHoverableContent:s,delayDuration:i}=e,l=Cf(_f,e.__scopeTooltip),c=Il(t),[d,f]=v.useState(null),[p,g]=v.useState(void 0),x=St(),m=v.useRef(0),b=s??l.disableHoverableContent,y=i??l.delayDuration,C=v.useRef(!1),[w,P]=co({prop:n,defaultProp:r??!1,onChange:ot(D=>{D?(l.onOpen(),document.dispatchEvent(new CustomEvent(wf))):l.onClose(),a==null||a(D)},"onChange"),caller:_f}),S=v.useMemo(()=>w?C.current?"delayed-open":"instant-open":"closed",[w]),_=v.useCallback(()=>{window.clearTimeout(m.current),m.current=0,C.current=!1,P(!0)},[P]),T=v.useCallback(()=>{window.clearTimeout(m.current),m.current=0,P(!1)},[P]),k=v.useCallback(()=>{window.clearTimeout(m.current),m.current=window.setTimeout(()=>{C.current=!0,P(!0),m.current=0},y)},[y,P]);v.useEffect(()=>()=>{m.current&&(window.clearTimeout(m.current),m.current=0)},[]);const E=p??x;return u.jsx(Lv,{...c,children:u.jsx(R4,{scope:t,contentId:E,setContentId:g,open:w,stateAttribute:S,trigger:d,onTriggerChange:f,onTriggerEnter:v.useCallback(()=>{l.isOpenDelayedRef.current?k():_()},[l.isOpenDelayedRef,k,_]),onTriggerLeave:v.useCallback(()=>{b?T():(window.clearTimeout(m.current),m.current=0)},[T,b]),onOpen:_,onClose:T,disableHoverableContent:b,children:o})})},"Tooltip"),Kv="TooltipTrigger",j4=v.forwardRef(ot(function(t,o){const{__scopeTooltip:n,...r}=t,a=us(Kv,n),s=Cf(Kv,n),i=Il(n),l=v.useRef(null),c=We(o,l,a.onTriggerChange),d=v.useRef(!1),f=v.useRef(!1),p=v.useCallback(()=>d.current=!1,[]);return v.useEffect(()=>()=>document.removeEventListener("pointerup",p),[p]),u.jsx(xf,{asChild:!0,...i,children:u.jsx(ye.button,{"aria-describedby":a.open?a.contentId:void 0,"data-state":a.stateAttribute,...r,ref:c,onPointerMove:Te(t.onPointerMove,g=>{g.pointerType!=="touch"&&!f.current&&!s.isPointerInTransitRef.current&&(a.onTriggerEnter(),f.current=!0)}),onPointerLeave:Te(t.onPointerLeave,()=>{a.onTriggerLeave(),f.current=!1}),onPointerDown:Te(t.onPointerDown,()=>{a.open&&a.onClose(),d.current=!0,document.addEventListener("pointerup",p,{once:!0})}),onFocus:Te(t.onFocus,()=>{d.current||a.onOpen()}),onBlur:Te(t.onBlur,a.onClose),onClick:Te(t.onClick,a.onClose)})})},"TooltipTrigger")),Xv="TooltipPortal",[U4,q4]=yf(Xv,{forceMount:void 0}),Y4=ot(e=>{const{__scopeTooltip:t,forceMount:o,children:n,container:r}=e,a=us(Xv,t);return u.jsx(U4,{scope:t,forceMount:o,children:u.jsx(lo,{present:o||a.open,children:u.jsx(bf,{asChild:!0,container:r,children:n})})})},"TooltipPortal"),ds="TooltipContent",K4=v.forwardRef(ot(function(t,o){const n=q4(ds,t.__scopeTooltip),{forceMount:r=n.forceMount,side:a="top",...s}=t,i=us(ds,t.__scopeTooltip);return u.jsx(lo,{present:r||i.open,children:i.disableHoverableContent?u.jsx(Zv,{side:a,...s,ref:o}):u.jsx(X4,{side:a,...s,ref:o})})},"TooltipContent")),X4=v.forwardRef(ot(function(t,o){const n=us(ds,t.__scopeTooltip),r=Cf(ds,t.__scopeTooltip),a=v.useRef(null),s=We(o,a),[i,l]=v.useState(null),{trigger:c,onClose:d}=n,f=a.current,{onPointerInTransitChange:p}=r,g=v.useCallback(()=>{l(null),p(!1)},[p]),x=v.useCallback((m,b)=>{const y=m.currentTarget,C={x:m.clientX,y:m.clientY},w=Jv(C,y.getBoundingClientRect()),P=Qv(C,w),S=e1(b.getBoundingClientRect()),_=o1([...P,...S]);l(_),p(!0)},[p]);return v.useEffect(()=>()=>g(),[g]),v.useEffect(()=>{if(c&&f){const m=ot(y=>x(y,f),"handleTriggerLeave"),b=ot(y=>x(y,c),"handleContentLeave");return c.addEventListener("pointerleave",m),f.addEventListener("pointerleave",b),()=>{c.removeEventListener("pointerleave",m),f.removeEventListener("pointerleave",b)}}},[c,f,x,g]),v.useEffect(()=>{if(i){const m=ot(b=>{const y=b.target,C={x:b.clientX,y:b.clientY},w=(c==null?void 0:c.contains(y))||(f==null?void 0:f.contains(y)),P=!t1(C,i);w?g():P&&(g(),d())},"handleTrackPointerGrace");return document.addEventListener("pointermove",m),()=>document.removeEventListener("pointermove",m)}},[c,f,i,d,g]),u.jsx(Zv,{...t,ref:s})},"TooltipContentHoverable")),Z4=wI("TooltipContent"),Zv=v.forwardRef(ot(function(t,o){const{__scopeTooltip:n,children:r,"aria-label":a,id:s,onEscapeKeyDown:i,onPointerDownOutside:l,...c}=t,d=us(ds,n),f=Il(n),{onClose:p}=d;v.useEffect(()=>(document.addEventListener(wf,p),()=>document.removeEventListener(wf,p)),[p]),v.useEffect(()=>{if(d.trigger){const x=ot(m=>{m.target instanceof Node&&m.target.contains(d.trigger)&&p()},"handleScroll");return window.addEventListener("scroll",x,{capture:!0}),()=>window.removeEventListener("scroll",x,{capture:!0})}},[d.trigger,p]);const{setContentId:g}=d;return _t(()=>(g(s),()=>{g(void 0)}),[s,g]),u.jsx(pf,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:i,onPointerDownOutside:l,onFocusOutside:x=>x.preventDefault(),onDismiss:p,children:u.jsxs(zv,{"data-state":d.stateAttribute,role:a?void 0:"tooltip",id:a?void 0:d.contentId,...f,...c,ref:o,style:{...c.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[u.jsx(Z4,{children:r}),a?u.jsx(L4,{id:d.contentId,role:"tooltip",children:a}):null]})})},"TooltipContentImpl")),J4=v.forwardRef(ot(function(t,o){const{__scopeTooltip:n,...r}=t,a=Il(n);return u.jsx(Bv,{...a,...r,ref:o})},"TooltipArrow"));function Jv(e,t){const o=Math.abs(t.top-e.y),n=Math.abs(t.bottom-e.y),r=Math.abs(t.right-e.x),a=Math.abs(t.left-e.x);switch(Math.min(o,n,r,a)){case a:return"left";case r:return"right";case o:return"top";case n:return"bottom";default:throw new Error("unreachable")}}ot(Jv,"getExitSideFromRect");function Qv(e,t,o=5){const n=[];switch(t){case"top":n.push({x:e.x-o,y:e.y+o},{x:e.x+o,y:e.y+o});break;case"bottom":n.push({x:e.x-o,y:e.y-o},{x:e.x+o,y:e.y-o});break;case"left":n.push({x:e.x+o,y:e.y-o},{x:e.x+o,y:e.y+o});break;case"right":n.push({x:e.x-o,y:e.y-o},{x:e.x-o,y:e.y+o});break}return n}ot(Qv,"getPaddedExitPoints");function e1(e){const{top:t,right:o,bottom:n,left:r}=e;return[{x:r,y:t},{x:o,y:t},{x:o,y:n},{x:r,y:n}]}ot(e1,"getPointsFromRect");function t1(e,t){const{x:o,y:n}=e;let r=!1;for(let a=0,s=t.length-1;a<t.length;s=a++){const i=t[a],l=t[s],c=i.x,d=i.y,f=l.x,p=l.y;d>n!=p>n&&o<(f-c)*(n-d)/(p-d)+c&&(r=!r)}return r}ot(t1,"isPointInPolygon");function o1(e){const t=e.slice();return t.sort((o,n)=>o.x<n.x?-1:o.x>n.x?1:o.y<n.y?-1:o.y>n.y?1:0),n1(t)}ot(o1,"getHull");function n1(e){if(e.length<=1)return e.slice();const t=[];for(let n=0;n<e.length;n++){const r=e[n];for(;t.length>=2;){const a=t[t.length-1],s=t[t.length-2];if((a.x-s.x)*(r.y-s.y)>=(a.y-s.y)*(r.x-s.x))t.pop();else break}t.push(r)}t.pop();const o=[];for(let n=e.length-1;n>=0;n--){const r=e[n];for(;o.length>=2;){const a=o[o.length-1],s=o[o.length-2];if((a.x-s.x)*(r.y-s.y)>=(a.y-s.y)*(r.x-s.x))o.pop();else break}o.push(r)}return o.pop(),t.length===1&&o.length===1&&t[0].x===o[0].x&&t[0].y===o[0].y?t:t.concat(o)}ot(n1,"getHullPresorted");var r1=W4,a1=G4,s1=j4,Q4=Y4,eN=K4,tN=J4;const Dl=({trigger:e,children:t,defaultOpen:o=!1,open:n,onOpenChange:r,delayDuration:a=300,skipDelayDuration:s=300,disableHoverableContent:i=!1})=>u.jsx(r1,{delayDuration:a,skipDelayDuration:s,disableHoverableContent:i,children:u.jsxs(a1,{defaultOpen:o,open:n,onOpenChange:r,children:[u.jsx(s1,{asChild:!0,children:e}),t]})});Dl.displayName="OxTooltip";const i1={oxTooltipContent:"_oxTooltipContent_qgh8c_2",oxTooltipArrow:"_oxTooltipArrow_qgh8c_2"},oN=16,fs=h.forwardRef(({className:e,children:t,side:o="top",sideOffset:n=6,align:r="center",showArrow:a=!0,dataTestid:s,...i},l)=>u.jsx(Q4,{children:u.jsxs(eN,{ref:l,"data-slot":"tooltip-content","data-testid":s,className:$(i1.oxTooltipContent,e),side:o,sideOffset:n,collisionPadding:oN,align:r,...i,children:[t,a&&u.jsx(tN,{className:i1.oxTooltipArrow,width:10,height:5})]})}));fs.displayName="OxTooltipContent";const nN={xs:"8",sm:"8",md:"12",lg:"16",xl:"16"};function l1(e){return{bulletSize:nN[e]}}const nr={oxAvatarRoundedImage:"_oxAvatarRoundedImage_mxm4c_2",oxAvatarRoundedContent:"_oxAvatarRoundedContent_mxm4c_2",oxAvatarRounded:"_oxAvatarRounded_mxm4c_2",oxAvatarRoundedBullet:"_oxAvatarRoundedBullet_mxm4c_2",oxAvatarRoundedAction:"_oxAvatarRoundedAction_mxm4c_2",oxAvatarRoundedLabel:"_oxAvatarRoundedLabel_mxm4c_2","ox-avatar-rounded--brand":"_ox-avatar-rounded--brand_mxm4c_2","ox-avatar-rounded--neutral":"_ox-avatar-rounded--neutral_mxm4c_2","ox-avatar-rounded--disabled":"_ox-avatar-rounded--disabled_mxm4c_2"},Ml=h.forwardRef(({className:e,src:t,size:o="md",tone:n="brand",disabled:r=!1,status:a,alt:s="",action:i,label:l,tooltip:c,tabIndex:d,children:f,dataTestid:p,...g},x)=>{const{bulletSize:m}=l1(o??"md"),b=c?d??0:d,y=u.jsxs("span",{ref:x,"data-slot":"avatar","data-testid":p,className:$(nr.oxAvatarRounded,me(nr,Tf({size:o,tone:n,disabled:r})),e),tabIndex:b,...g,children:[t?u.jsx("img",{className:nr.oxAvatarRoundedImage,"data-testid":`${p}-image`,src:t,alt:s}):u.jsx("span",{className:nr.oxAvatarRoundedContent,children:f}),a&&u.jsx(Tl,{className:nr.oxAvatarRoundedBullet,dataTestid:`${p}-bullet`,color:a,size:m}),i&&u.jsx("span",{className:nr.oxAvatarRoundedAction,children:i}),l&&u.jsx("span",{className:nr.oxAvatarRoundedLabel,children:l})]});return c?u.jsx(Dl,{trigger:y,children:u.jsx(fs,{dataTestid:`${p}-tooltip`,children:c})}):y});Ml.displayName="OxAvatarRounded";const rN={"ox-skeleton":"_ox-skeleton_sjmpm_2"},Xo=h.forwardRef(({className:e,dataTestid:t,...o},n)=>u.jsx("div",{ref:n,"aria-hidden":"true","data-slot":"skeleton","data-testid":t,className:$(rN["ox-skeleton"],e),...o}));Xo.displayName="OxSkeleton";const c1={"ox-avatar-skeleton":"_ox-avatar-skeleton_1c9kd_2","ox-avatar-skeleton--rounded":"_ox-avatar-skeleton--rounded_1c9kd_2"},u1=h.forwardRef(({className:e,size:t="md",shape:o="rounded",dataTestid:n,...r},a)=>{const s=o==="square"?Pf({size:t,tone:null,disabled:null}):$(c1["ox-avatar-skeleton--rounded"],Tf({size:t,tone:null,disabled:null}));return u.jsx(Xo,{ref:a,"data-slot":"avatar-skeleton",dataTestid:n,className:$(c1["ox-avatar-skeleton"],s,e),...r})});u1.displayName="OxAvatarSkeleton";const rr={oxAvatarSquareImage:"_oxAvatarSquareImage_1il3w_2",oxAvatarSquareContent:"_oxAvatarSquareContent_1il3w_2",oxAvatarSquare:"_oxAvatarSquare_1il3w_2",oxAvatarSquareBullet:"_oxAvatarSquareBullet_1il3w_2",oxAvatarSquareAction:"_oxAvatarSquareAction_1il3w_2",oxAvatarSquareLabel:"_oxAvatarSquareLabel_1il3w_2","ox-avatar-square--brand":"_ox-avatar-square--brand_1il3w_2","ox-avatar-square--neutral":"_ox-avatar-square--neutral_1il3w_2","ox-avatar-square--disabled":"_ox-avatar-square--disabled_1il3w_2"},Sf=h.forwardRef(({className:e,src:t,size:o="md",tone:n="brand",disabled:r=!1,status:a,alt:s="",action:i,label:l,tooltip:c,tabIndex:d,children:f,dataTestid:p,...g},x)=>{const{bulletSize:m}=l1(o??"md"),b=c?d??0:d,y=u.jsxs("span",{ref:x,"data-slot":"avatar","data-testid":p,className:$(rr.oxAvatarSquare,me(rr,Pf({size:o,tone:n,disabled:r})),e),tabIndex:b,...g,children:[t?u.jsx("img",{className:rr.oxAvatarSquareImage,"data-testid":`${p}-image`,src:t,alt:s}):u.jsx("span",{className:rr.oxAvatarSquareContent,children:f}),a&&u.jsx(Tl,{className:rr.oxAvatarSquareBullet,dataTestid:`${p}-bullet`,color:a,size:m}),i&&u.jsx("span",{className:rr.oxAvatarSquareAction,children:i}),l&&u.jsx("span",{className:rr.oxAvatarSquareLabel,children:l})]});return c?u.jsx(Dl,{trigger:y,children:u.jsx(fs,{dataTestid:`${p}-tooltip`,children:c})}):y});Sf.displayName="OxAvatarSquare";const Pf=Oe("",{variants:{size:{xs:"ox-avatar-square--xs",sm:"ox-avatar-square--sm",md:"ox-avatar-square--md",lg:"ox-avatar-square--lg",xl:"ox-avatar-square--xl"},tone:{brand:"ox-avatar-square--brand",neutral:"ox-avatar-square--neutral"},disabled:{true:"ox-avatar-square--disabled",false:""}},defaultVariants:{size:"md",tone:"brand",disabled:!1}}),Tf=Oe("",{variants:{size:{xs:"ox-avatar-rounded--xs",sm:"ox-avatar-rounded--sm",md:"ox-avatar-rounded--md",lg:"ox-avatar-rounded--lg",xl:"ox-avatar-rounded--xl"},tone:{brand:"ox-avatar-rounded--brand",neutral:"ox-avatar-rounded--neutral"},disabled:{true:"ox-avatar-rounded--disabled",false:""}},defaultVariants:{size:"md",tone:"brand",disabled:!1}}),Ol={oxAvatarDetails:"_oxAvatarDetails_1pqua_2",oxAvatarDetailsInfo:"_oxAvatarDetailsInfo_1pqua_2",oxAvatarDetailsName:"_oxAvatarDetailsName_1pqua_2",oxAvatarDetailsSubtitle:"_oxAvatarDetailsSubtitle_1pqua_2"},d1=h.forwardRef(({className:e,avatar:t,name:o,subtitle:n,disabled:r=!1,dataTestid:a,...s},i)=>{const l=(t==null?void 0:t.size)??"md";return u.jsxs("div",{ref:i,className:$(Ol.oxAvatarDetails,e),"data-slot":"avatar-details","data-size":l,"data-testid":a,...s,children:[u.jsx(Sf,{dataTestid:`${a}-avatar`,src:t==null?void 0:t.src,size:l,disabled:r,children:t==null?void 0:t.initials}),u.jsxs("div",{className:Ol.oxAvatarDetailsInfo,children:[u.jsx("span",{className:Ol.oxAvatarDetailsName,children:o}),n&&u.jsx("span",{className:Ol.oxAvatarDetailsSubtitle,children:n})]})]})});d1.displayName="OxAvatarDetails";const Xr={oxAvatarGroup:"_oxAvatarGroup_11xgt_2","oxAvatarGroup--xs":"_oxAvatarGroup--xs_11xgt_2","oxAvatarGroup--sm":"_oxAvatarGroup--sm_11xgt_2","oxAvatarGroup--md":"_oxAvatarGroup--md_11xgt_2","oxAvatarGroup--lg":"_oxAvatarGroup--lg_11xgt_2","oxAvatarGroup--xl":"_oxAvatarGroup--xl_11xgt_2",oxAvatarGroupInteractive:"_oxAvatarGroupInteractive_11xgt_2",oxAvatarGroupStack:"_oxAvatarGroupStack_11xgt_2",oxAvatarGroupItem:"_oxAvatarGroupItem_11xgt_2"},aN=300,f1=h.forwardRef(({className:e,avatars:t,max:o=3,total:n,interactive:r=!0,size:a="xs",onClick:s,dataTestid:i,...l},c)=>{const d=h.useMemo(()=>t.slice(0,o),[t,o]),f=h.useMemo(()=>{const p=n??t.length;return Math.max(0,Math.trunc(p)-d.length)||0},[n,t.length,d.length]);return u.jsx("button",{ref:c,type:"button","data-slot":"avatar-group","data-testid":i,className:$(Xr.oxAvatarGroup,Xr[`oxAvatarGroup--${a}`],r&&Xr.oxAvatarGroupInteractive,e),onClick:p=>{r&&(s==null||s(p))},...l,children:u.jsx(r1,{delayDuration:aN,children:u.jsxs("div",{className:Xr.oxAvatarGroupStack,children:[d.map((p,g)=>{const x=u.jsx(Ml,{role:p.name?"img":void 0,"aria-label":p.name,dataTestid:`${i}-avatar-${g}`,src:p.src,size:a,disabled:p.disabled,children:p.initials});return u.jsx("div",{className:Xr.oxAvatarGroupItem,style:{zIndex:g},children:p.name?u.jsxs(a1,{children:[u.jsx(s1,{asChild:!0,children:x}),u.jsx(fs,{dataTestid:`${i}-tooltip-${g}`,children:p.name})]}):x},g)}),f>0&&u.jsx("div",{className:Xr.oxAvatarGroupItem,style:{zIndex:d.length},children:u.jsxs(Ml,{dataTestid:`${i}-count`,size:a,tone:"neutral",children:["+",f]})})]})})})});f1.displayName="OxAvatarGroup";const sN={"ox-badge":"_ox-badge_186jw_2","ox-badge--sm":"_ox-badge--sm_186jw_2","ox-badge--md":"_ox-badge--md_186jw_2","ox-badge--lg":"_ox-badge--lg_186jw_2","ox-badge--error":"_ox-badge--error_186jw_2","ox-badge--brand":"_ox-badge--brand_186jw_2","ox-badge--neutral":"_ox-badge--neutral_186jw_2"},p1=h.forwardRef(({className:e,size:t="md",color:o="error",dataTestid:n,...r},a)=>u.jsx("span",{ref:a,"data-slot":"badge","data-testid":n,className:$(me(sN,h1({size:t,color:o})),e),...r}));p1.displayName="OxBadge";const h1=Oe("ox-badge",{variants:{size:{sm:"ox-badge--sm",md:"ox-badge--md",lg:"ox-badge--lg"},color:{error:"ox-badge--error",brand:"ox-badge--brand",neutral:"ox-badge--neutral"}},defaultVariants:{size:"md",color:"error"}}),Al={oxCalendarDate:"_oxCalendarDate_37sr0_2",oxCalendarDateDay:"_oxCalendarDateDay_37sr0_2",oxCalendarDateMonth:"_oxCalendarDateMonth_37sr0_2","ox-calendar-date--active":"_ox-calendar-date--active_37sr0_2","ox-calendar-date--idle":"_ox-calendar-date--idle_37sr0_2"},iN=e=>{const t=e.getFullYear(),o=String(e.getMonth()+1).padStart(2,"0"),n=String(e.getDate()).padStart(2,"0");return`${t}-${o}-${n}`},lN=(e,t)=>new Intl.DateTimeFormat(t,{month:"short"}).format(e),g1=h.forwardRef(({className:e,date:t,active:o=!1,month:n,dataTestid:r,...a},s)=>{const i=Di();return u.jsxs("time",{ref:s,dateTime:iN(t),"data-slot":"calendar-date","data-testid":r,className:$(Al.oxCalendarDate,me(Al,m1({active:o})),e),...a,children:[u.jsx("span",{className:Al.oxCalendarDateDay,"data-slot":"calendar-date-day","data-testid":`${r}-day`,children:t.getDate()}),u.jsx("span",{className:Al.oxCalendarDateMonth,"data-slot":"calendar-date-month","data-testid":`${r}-month`,children:n??lN(t,i)})]})});g1.displayName="OxCalendarDate";const m1=Oe("",{variants:{active:{true:"ox-calendar-date--active",false:"ox-calendar-date--idle"}},defaultVariants:{active:!1}}),cN=String.raw,uN=(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0})(),dN=typeof CSS<"u"&&CSS.supports&&CSS.supports("line-height","mod(1,1)"),x1=typeof matchMedia<"u"?matchMedia("(prefers-reduced-motion: reduce)"):null,Nl="--_number-flow-d-opacity",kf="--_number-flow-d-width",$l="--_number-flow-dx",Ef="--_number-flow-d",fN=(()=>{try{return CSS.registerProperty({name:Nl,syntax:"<number>",inherits:!1,initialValue:"0"}),CSS.registerProperty({name:$l,syntax:"<length>",inherits:!0,initialValue:"0px"}),CSS.registerProperty({name:kf,syntax:"<number>",inherits:!1,initialValue:"0"}),CSS.registerProperty({name:Ef,syntax:"<number>",inherits:!0,initialValue:"0"}),!0}catch{return!1}})(),If="round(nearest, calc(var(--number-flow-mask-height, 0.25em) / 2), 1px)",ar=`calc(${If} * 2)`,Df="var(--number-flow-mask-width, 0.5em)",sr=`calc(${Df} / var(--scale-x))`,Fl="#000 0, transparent 71%",pN=cN`:host{display:inline-block;direction:ltr;white-space:nowrap;isolation:isolate;line-height:1}.number,.number__inner{display:inline-block;transform-origin:left top}:host([data-will-change]) :is(.number,.number__inner,.section,.digit,.digit__num,.symbol){will-change:transform}.number{--scale-x:calc(1 + var(${kf}) / var(--width));transform:translateX(var(${$l})) scaleX(var(--scale-x));margin:0 calc(-1 * ${Df});position:relative;-webkit-mask-image:linear-gradient(to right,transparent 0,#000 ${sr},#000 calc(100% - ${sr}),transparent ),linear-gradient(to bottom,transparent 0,#000 ${ar},#000 calc(100% - ${ar}),transparent 100% ),radial-gradient(at bottom right,${Fl}),radial-gradient(at bottom left,${Fl}),radial-gradient(at top left,${Fl}),radial-gradient(at top right,${Fl});-webkit-mask-size:100% calc(100% - ${ar} * 2),calc(100% - ${sr} * 2) 100%,${sr} ${ar},${sr} ${ar},${sr} ${ar},${sr} ${ar};-webkit-mask-position:center,center,top left,top right,bottom right,bottom left;-webkit-mask-repeat:no-repeat}.number__inner{padding:${If} ${Df};transform:scaleX(calc(1 / var(--scale-x))) translateX(calc(-1 * var(${$l})))}:host > :not(.number){z-index:5}.section,.symbol{display:inline-block;position:relative;isolation:isolate}.section::after{content:'\200b';display:inline-block}.section--justify-left{transform-origin:center left}.section--justify-right{transform-origin:center right}.section > [inert],.symbol > [inert]{margin:0 !important;position:absolute !important;z-index:-1}.digit{display:inline-block;position:relative;--c:var(--current) + var(${Ef})}.digit__num,.number .section::after{padding:${If} 0}.digit__num{display:inline-block;--offset-raw:mod(var(--length) + var(--n) - mod(var(--c),var(--length)),var(--length));--offset:calc( var(--offset-raw) - var(--length) * round(down,var(--offset-raw) / (var(--length) / 2),1) );--y:clamp(-100%,var(--offset) * 100%,100%);transform:translateY(var(--y))}.digit__num[inert]{position:absolute;top:0;left:50%;transform:translateX(-50%) translateY(var(--y))}.digit:not(.is-spinning) .digit__num[inert]{display:none}.symbol__value{display:inline-block;mix-blend-mode:plus-lighter;white-space:pre}.section--justify-left .symbol > [inert]{left:0}.section--justify-right .symbol > [inert]{right:0}.animate-presence{opacity:calc(1 + var(${Nl}))}`,hN=typeof HTMLElement<"u"?HTMLElement:class{},Sn=(e,t,o)=>{const n=document.createElement(e),[r,a]=Array.isArray(t)?[void 0,t]:[t,o];return r&&Object.assign(n,r),a==null||a.forEach(s=>n.appendChild(s)),n},gN=(e,t)=>{var o;return t==="left"?e.offsetLeft:(((o=e.offsetParent instanceof HTMLElement?e.offsetParent:null)==null?void 0:o.offsetWidth)??0)-e.offsetWidth-e.offsetLeft},mN=e=>e.offsetWidth>0&&e.offsetHeight>0,xN=(e,t)=>{typeof HTMLElement<"u"&&typeof customElements<"u"&&!customElements.get(e)&&customElements.define(e,t)};function bN(e,t,{reverse:o=!1}={}){const n=e.length;for(let r=o?n-1:0;o?r>=0:r<n;o?r--:r++)t(e[r],r)}function vN(e,t,o,n){const r=t.formatToParts(e);o&&r.unshift({type:"prefix",value:o}),n&&r.push({type:"suffix",value:n});const a=[],s=[],i=[],l=[],c={},d=m=>`${m}:${c[m]=(c[m]??-1)+1}`;let f="",p=!1,g=!1;for(const m of r){f+=m.value;const b=m.type==="minusSign"||m.type==="plusSign"?"sign":m.type;b==="integer"?(p=!0,s.push(...m.value.split("").map(y=>({type:b,value:parseInt(y)})))):b==="group"?s.push({type:b,value:m.value}):b==="decimal"?(g=!0,i.push({type:b,value:m.value,key:d(b)})):b==="fraction"?i.push(...m.value.split("").map(y=>({type:b,value:parseInt(y),key:d(b),pos:-1-c[b]}))):(p||g?l:a).push({type:b,value:m.value,key:d(b)})}const x=[];for(let m=s.length-1;m>=0;m--){const b=s[m];x.unshift(b.type==="integer"?{...b,key:d(b.type),pos:c[b.type]}:{...b,key:d(b.type)})}return{pre:a,integer:x,fraction:i,post:l,valueAsString:f,value:typeof e=="string"?parseFloat(e):e}}const b1=dN&&uN&&fN;let v1=class extends hN{constructor(){super(),this.created=!1,this.batched=!1,this._preUpdated=!1;const{animated:t,...o}=this.constructor.defaultProps;this._animated=this.computedAnimated=t,Object.assign(this,o)}get animated(){return this._animated}set animated(t){var o;this.animated!==t&&(this._animated=t,(o=this.shadowRoot)==null||o.getAnimations().forEach(n=>n.finish()))}set data(t){var o,n;if(t==null||t===this._data)return;const{pre:r,integer:a,fraction:s,post:i,value:l}=t;if(this.created){const c=this._data;this._data=t,this.computedTrend=typeof this.trend=="function"?this.trend(c.value,l):this.trend,this.computedAnimated=b1&&this._animated&&(!this.respectMotionPreference||!((o=x1)!=null&&o.matches))&&mN(this)&&this.ownerDocument.visibilityState==="visible",(n=this.plugins)==null||n.forEach(d=>{var f;return(f=d.onUpdate)==null?void 0:f.call(d,t,c,this)}),this.batched||this.willUpdate(),this._pre.update(r),this._num.update({integer:a,fraction:s}),this._post.update(i),this.batched||this.didUpdate()}else{this._data=t,this.attachShadow({mode:"open"});try{this._internals??(this._internals=this.attachInternals()),this._internals.role="img"}catch{}const c=document.createElement("style");this.nonce&&(c.nonce=this.nonce),c.textContent=pN,this.shadowRoot.appendChild(c),this._pre=new C1(this,r,{justify:"right",part:"left"}),this.shadowRoot.appendChild(this._pre.el),this._num=new yN(this,a,s),this.shadowRoot.appendChild(this._num.el),this._post=new C1(this,i,{justify:"left",part:"right"}),this.shadowRoot.appendChild(this._post.el),this.created=!0}try{this._internals.ariaLabel=t.valueAsString}catch{}}willUpdate(){var t;this._preUpdated=b1&&this._animated&&(!this.respectMotionPreference||!((t=x1)!=null&&t.matches))&&this.ownerDocument.visibilityState==="visible",this._preUpdated&&(this._pre.willUpdate(),this._num.willUpdate(),this._post.willUpdate())}didUpdate(){if(!this.computedAnimated||!this._preUpdated)return;this._abortAnimationsFinish?this._abortAnimationsFinish.abort():this.dispatchEvent(new Event("animationsstart")),this._pre.didUpdate(),this._num.didUpdate(),this._post.didUpdate();const t=new AbortController;Promise.all(this.shadowRoot.getAnimations().map(o=>o.finished)).then(()=>{t.signal.aborted||(this.dispatchEvent(new Event("animationsfinish")),this._abortAnimationsFinish=void 0)}),this._abortAnimationsFinish=t}};v1.defaultProps={transformTiming:{duration:900,easing:"linear(0,.005,.019,.039,.066,.096,.129,.165,.202,.24,.278,.316,.354,.39,.426,.461,.494,.526,.557,.586,.614,.64,.665,.689,.711,.731,.751,.769,.786,.802,.817,.831,.844,.856,.867,.877,.887,.896,.904,.912,.919,.925,.931,.937,.942,.947,.951,.955,.959,.962,.965,.968,.971,.973,.976,.978,.98,.981,.983,.984,.986,.987,.988,.989,.99,.991,.992,.992,.993,.994,.994,.995,.995,.996,.996,.9963,.9967,.9969,.9972,.9975,.9977,.9979,.9981,.9982,.9984,.9985,.9987,.9988,.9989,1)"},spinTiming:void 0,opacityTiming:{duration:450,easing:"ease-out"},animated:!0,trend:(e,t)=>Math.sign(t-e),respectMotionPreference:!0,plugins:void 0,digits:void 0};class yN{constructor(t,o,n,{className:r,...a}={}){this.flow=t,this._integer=new w1(t,o,{justify:"right",part:"integer"}),this._fraction=new w1(t,n,{justify:"left",part:"fraction"}),this._inner=Sn("span",{className:"number__inner"},[this._integer.el,this._fraction.el]),this.el=Sn("span",{...a,part:"number",className:`number ${r??""}`},[this._inner])}willUpdate(){this._prevWidth=this.el.offsetWidth,this._prevLeft=this.el.getBoundingClientRect().left,this._integer.willUpdate(),this._fraction.willUpdate()}update({integer:t,fraction:o}){this._integer.update(t),this._fraction.update(o)}didUpdate(){const t=this.el.getBoundingClientRect();this._integer.didUpdate(),this._fraction.didUpdate();const o=this._prevLeft-t.left,n=this.el.offsetWidth,r=this._prevWidth-n;this.el.style.setProperty("--width",String(n)),this.el.animate({[$l]:[`${o}px`,"0px"],[kf]:[r,0]},{...this.flow.transformTiming,composite:"accumulate"})}}class y1{constructor(t,o,{justify:n,className:r,...a},s){this.flow=t,this.children=new Map,this.onCharRemove=l=>()=>{this.children.delete(l)},this.justify=n;const i=o.map(l=>this.addChar(l).el);this.el=Sn("span",{...a,className:`section section--justify-${n} ${r??""}`},s?s(i):i)}addChar(t,{startDigitsAtZero:o=!1,...n}={}){const r=t.type==="integer"||t.type==="fraction"?new S1(this,t.type,o?0:t.value,t.pos,{...n,onRemove:this.onCharRemove(t.key)}):new wN(this,t.type,t.value,{...n,onRemove:this.onCharRemove(t.key)});return this.children.set(t.key,r),r}unpop(t){t.el.removeAttribute("inert"),t.el.style.top="",t.el.style[this.justify]=""}pop(t){t.forEach(o=>{o.el.style.top=`${o.el.offsetTop}px`,o.el.style[this.justify]=`${gN(o.el,this.justify)}px`}),t.forEach(o=>{o.el.setAttribute("inert",""),o.present=!1})}addNewAndUpdateExisting(t){const o=new Map,n=new Map,r=this.justify==="left",a=r?"prepend":"append";if(bN(t,s=>{let i;this.children.has(s.key)?(i=this.children.get(s.key),n.set(s,i),this.unpop(i),i.present=!0):(i=this.addChar(s,{startDigitsAtZero:!0,animateIn:!0}),o.set(s,i)),this.el[a](i.el)},{reverse:r}),this.flow.computedAnimated){const s=this.el.getBoundingClientRect();o.forEach(i=>{i.willUpdate(s)})}o.forEach((s,i)=>{s.update(i.value)}),n.forEach((s,i)=>{s.update(i.value)})}willUpdate(){const t=this.el.getBoundingClientRect();this._prevOffset=t[this.justify],this.children.forEach(o=>o.willUpdate(t))}didUpdate(){const t=this.el.getBoundingClientRect();this.children.forEach(r=>r.didUpdate(t));const o=t[this.justify],n=this._prevOffset-o;n&&this.children.size&&this.el.animate({transform:[`translateX(${n}px)`,"none"]},{...this.flow.transformTiming,composite:"accumulate"})}}class w1 extends y1{update(t){const o=new Map;this.children.forEach((n,r)=>{t.find(a=>a.key===r)||o.set(r,n),this.unpop(n)}),this.addNewAndUpdateExisting(t),o.forEach(n=>{n instanceof S1&&n.update(0)}),this.pop(o)}}let C1=class extends y1{update(t){const o=new Map;this.children.forEach((n,r)=>{t.find(a=>a.key===r)||o.set(r,n)}),this.pop(o),this.addNewAndUpdateExisting(t)}};class Mf{constructor(t,o,{onRemove:n,animateIn:r=!1}={}){this.flow=t,this.el=o,this._present=!0,this._remove=()=>{var a;this.el.remove(),(a=this._onRemove)==null||a.call(this)},this.el.classList.add("animate-presence"),this.flow.computedAnimated&&r&&this.el.animate({[Nl]:[-.9999,0]},{...this.flow.opacityTiming,composite:"accumulate"}),this._onRemove=n}get present(){return this._present}set present(t){if(this._present!==t){if(this._present=t,t?this.el.removeAttribute("inert"):this.el.setAttribute("inert",""),!this.flow.computedAnimated){t||this._remove();return}this.el.style.setProperty("--_number-flow-d-opacity",t?"0":"-.999"),this.el.animate({[Nl]:t?[-.9999,0]:[.999,0]},{...this.flow.opacityTiming,composite:"accumulate"}),t?this.flow.removeEventListener("animationsfinish",this._remove):this.flow.addEventListener("animationsfinish",this._remove,{once:!0})}}}class _1 extends Mf{constructor(t,o,n,r){super(t.flow,n,r),this.section=t,this.value=o,this.el=n}}class S1 extends _1{constructor(t,o,n,r,a){var s,i;const l=(((i=(s=t.flow.digits)==null?void 0:s[r])==null?void 0:i.max)??9)+1,c=Array.from({length:l}).map((f,p)=>{const g=Sn("span",{className:"digit__num"},[document.createTextNode(String(p))]);return p!==n&&g.setAttribute("inert",""),g.style.setProperty("--n",String(p)),g}),d=Sn("span",{part:`digit ${o}-digit`,className:"digit"},c);d.style.setProperty("--current",String(n)),d.style.setProperty("--length",String(l)),super(t,n,d,a),this.pos=r,this._onAnimationsFinish=()=>{this.el.classList.remove("is-spinning")},this._numbers=c,this.length=l}willUpdate(t){const o=this.el.getBoundingClientRect();this._prevValue=this.value;const n=o[this.section.justify]-t[this.section.justify],r=o.width/2;this._prevCenter=this.section.justify==="left"?n+r:n-r}update(t){this.el.style.setProperty("--current",String(t)),this._numbers.forEach((o,n)=>n===t?o.removeAttribute("inert"):o.setAttribute("inert","")),this.value=t}didUpdate(t){const o=this.el.getBoundingClientRect(),n=o[this.section.justify]-t[this.section.justify],r=o.width/2,a=this.section.justify==="left"?n+r:n-r,s=this._prevCenter-a;s&&this.el.animate({transform:[`translateX(${s}px)`,"none"]},{...this.flow.transformTiming,composite:"accumulate"});const i=this.getDelta();i&&(this.el.classList.add("is-spinning"),this.el.animate({[Ef]:[-i,0]},{...this.flow.spinTiming??this.flow.transformTiming,composite:"accumulate"}),this.flow.addEventListener("animationsfinish",this._onAnimationsFinish,{once:!0}))}getDelta(){var t;if(this.flow.plugins)for(const r of this.flow.plugins){const a=(t=r.getDelta)==null?void 0:t.call(r,this.value,this._prevValue,this);if(a!=null)return a}const o=this.value-this._prevValue,n=this.flow.computedTrend||Math.sign(o);return n<0&&this.value>this._prevValue?this.value-this.length-this._prevValue:n>0&&this.value<this._prevValue?this.length-this._prevValue+this.value:o}}class wN extends _1{constructor(t,o,n,r){const a=Sn("span",{className:"symbol__value",textContent:n});super(t,n,Sn("span",{part:`symbol ${o}`,className:"symbol"},[a]),r),this.type=o,this._children=new Map,this._onChildRemove=s=>()=>{this._children.delete(s)},this._children.set(n,new Mf(this.flow,a,{onRemove:this._onChildRemove(n)}))}willUpdate(t){if(this.type==="decimal")return;const o=this.el.getBoundingClientRect();this._prevOffset=o[this.section.justify]-t[this.section.justify]}update(t){if(this.value!==t){const o=this._children.get(this.value);o&&(o.present=!1);const n=this._children.get(t);if(n)n.present=!0;else{const r=Sn("span",{className:"symbol__value",textContent:t});this.el.appendChild(r),this._children.set(t,new Mf(this.flow,r,{animateIn:!0,onRemove:this._onChildRemove(t)}))}}this.value=t}didUpdate(t){if(this.type==="decimal")return;const o=this.el.getBoundingClientRect()[this.section.justify]-t[this.section.justify],n=this._prevOffset-o;n&&this.el.animate({transform:[`translateX(${n}px)`,"none"]},{...this.flow.transformTiming,composite:"accumulate"})}}const Of=parseInt((gE=v.version.match(/^(\d+)\./))==null?void 0:gE[1])>=19,CN=["data","digits"];class Af extends v1{attributeChangedCallback(t,o,n){this[t]=JSON.parse(n)}}Af.observedAttributes=Of?[]:CN,xN("number-flow-react",Af);const Nf={};function _N(e){return e}const P1=Of?_N:JSON.stringify;function T1(e){const{transformTiming:t,spinTiming:o,opacityTiming:n,animated:r,respectMotionPreference:a,trend:s,plugins:i,...l}=e;return[{transformTiming:t,spinTiming:o,opacityTiming:n,animated:r,respectMotionPreference:a,trend:s,plugins:i},l]}class SN extends v.Component{updateProperties(t){if(!this.el)return;this.el.batched=!this.props.isolate;const[o]=T1(this.props);Object.entries(o).forEach(([n,r])=>{this.el[n]=r??Af.defaultProps[n]}),t!=null&&t.onAnimationsStart&&this.el.removeEventListener("animationsstart",t.onAnimationsStart),this.props.onAnimationsStart&&this.el.addEventListener("animationsstart",this.props.onAnimationsStart),t!=null&&t.onAnimationsFinish&&this.el.removeEventListener("animationsfinish",t.onAnimationsFinish),this.props.onAnimationsFinish&&this.el.addEventListener("animationsfinish",this.props.onAnimationsFinish)}componentDidMount(){this.updateProperties(),Of&&this.el&&(this.el.digits=this.props.digits,this.el.data=this.props.data)}getSnapshotBeforeUpdate(t){var o;if(this.updateProperties(t),t.data!==this.props.data){if(this.props.group)return this.props.group.willUpdate(),()=>{var n;return(n=this.props.group)==null?void 0:n.didUpdate()};if(!this.props.isolate)return(o=this.el)==null||o.willUpdate(),()=>{var n;return(n=this.el)==null?void 0:n.didUpdate()}}return null}componentDidUpdate(t,o,n){n==null||n()}handleRef(t){this.props.innerRef&&(this.props.innerRef.current=t),this.el=t}render(){const[t,{innerRef:o,className:n,data:r,nonce:a,willChange:s,isolate:i,group:l,digits:c,onAnimationsStart:d,onAnimationsFinish:f,...p}]=T1(this.props);return v.createElement("number-flow-react",{ref:this.handleRef,"data-will-change":s?"":void 0,class:n,nonce:a,...p,dangerouslySetInnerHTML:{__html:""},suppressHydrationWarning:!0,digits:P1(c),data:P1(r)})}constructor(t){super(t),this.handleRef=this.handleRef.bind(this)}}const PN=v.forwardRef(function({value:t,locales:o,format:n,prefix:r,suffix:a,...s},i){v.useImperativeHandle(i,()=>l.current,[]);const l=v.useRef(void 0),c=v.useContext(TN);c==null||c.useRegister(l);const d=v.useMemo(()=>o?JSON.stringify(o):"",[o]),f=v.useMemo(()=>n?JSON.stringify(n):"",[n]),p=v.useMemo(()=>{var x;const g=Nf[x=`${d}:${f}`]??(Nf[x]=new Intl.NumberFormat(o,n));return vN(t,g,r,a)},[t,d,f,r,a]);return v.createElement(SN,{...s,group:c,data:p,innerRef:l})}),TN=v.createContext(void 0),kN={oxNumberFlow:"_oxNumberFlow_1gbln_2"},k1=h.forwardRef(({className:e,preset:t="number",value:o,dataTestid:n,...r},a)=>{const s=I1(t),i=Di(),l=s.locales??i;return u.jsx(PN,{ref:a,value:o,format:s.format,locales:l,trend:s.trend,digits:s.digits,"data-slot":"number-flow","data-testid":n,className:$(kN.oxNumberFlow,e),...r})});k1.displayName="OxNumberFlow";const E1={number:{},currency:{format:{style:"currency",currency:"EUR"}},percent:{format:{style:"percent",maximumFractionDigits:1}},compact:{format:{notation:"compact",compactDisplay:"short"}},time:{format:{minimumIntegerDigits:2},digits:{1:{max:5}}}},I1=(e="number")=>typeof e=="string"?E1[e]:e,EN=Object.keys(E1),$f={oxPixelArt:"_oxPixelArt_1euxk_2",oxPixelArtBlank:"_oxPixelArtBlank_1euxk_2",oxPixelArtPixel:"_oxPixelArtPixel_1euxk_2"},D1=h.forwardRef(({className:e,style:t,rows:o,order:n="random",dataTestid:r,...a},s)=>{const i=o??MN,l=h.useMemo(()=>AN(i,n),[i,n]),c=$N(i),d=NN(l),f=d-M1,[p,g]=h.useState(!1),x=h.useRef(d);x.current=d,h.useEffect(()=>{let b=0,y=!1;const C=()=>{y||(g(P=>!P),b=window.setTimeout(C,x.current+DN))},w=requestAnimationFrame(C);return()=>{y=!0,cancelAnimationFrame(w),window.clearTimeout(b)}},[]);const m=b=>!p&&n==="bottom-up"?f-b.delay:b.delay;return u.jsx("div",{ref:s,"aria-hidden":"true","data-slot":"pixel-art","data-state":p?"drawn":"erased","data-testid":r,className:$($f.oxPixelArt,e),style:{...t,"--ox-pixel-art-columns":c},...a,children:l.map(b=>b.on?u.jsx("span",{className:$f.oxPixelArtPixel,style:{"--ox-pixel-art-delay":`${m(b)}ms`},"data-testid":`${r}-pixel-${b.key}`},b.key):u.jsx("span",{className:$f.oxPixelArtBlank},b.key))})});D1.displayName="OxPixelArt";const IN=55,M1=500,DN=1200,MN=Array.from({length:15},()=>"#".repeat(15)),ON=(e,t)=>{const o=Array.from({length:e},(n,r)=>r);for(let n=o.length-1;n>0;n--){const r=Math.floor(t()*(n+1));[o[n],o[r]]=[o[r],o[n]]}return o},AN=(e,t="random",o=Math.random)=>{const n=e.flatMap((i,l)=>[...i].map((c,d)=>({key:`${d}-${l}`,x:d,y:l,on:c==="#"}))),r=n.filter(i=>i.on),a=ON(r.length,o);t==="bottom-up"&&r.map((i,l)=>({index:l,sort:-i.y+o()*.9})).sort((i,l)=>i.sort-l.sort).forEach(({index:i},l)=>a[i]=l);let s=0;return n.map(i=>({...i,delay:i.on?a[s++]*IN:0}))},NN=e=>Math.max(0,...e.map(t=>t.delay))+M1,$N=e=>Math.max(1,...e.map(t=>t.length)),FN="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='320'%20height='84'%20fill='none'%20viewBox='0%200%2018%204'%3e%3cpath%20fill='%23fff'%20d='m5.64156%201.68819.00197.0005c.27061.06058.62132.17466.61437.55514.00268.07837-.01394.15618-.04836.22643-.03443.07025-.08557.13072-.14884.17596-.14298.10083-.31439.15203-.48853.14593-.3364%200-.58748-.14629-.70544-.39069-.00331-.00706-.00386-.01513-.00155-.02259s.00731-.01377.01401-.01765l.27191-.15982c.00343-.00207.00723-.00344.01117-.00403.00395-.00059.00798-.00039.01185.0006.00388.00098.00751.00273.01072.00514.0032.00241.0059.00544.00795.00891.00045.00095.00103.0019.00148.0029.03139.07314.0849.1343.15283.17467.06792.04037.14674.05788.22512.04999.20052%200%20.29886-.06766.29886-.19966%200-.11412-.14791-.1815-.33413-.22783-.26371-.06766-.6189-.17447-.61187-.54828-.00255-.07581.0127-.15115.04448-.21984.03179-.06869.07922-.12877.13839-.1753.16643-.122199.374-.172472.57704-.139762.20304.032709.38493.145722.50568.314192.00446.00623.00882.01251.01309.01883.00202.00352.00335.00741.00389.01144.00053.00403.00028.00814-.00075.01207-.00103.00394-.00281.00763-.00525.01087s-.00549.00596-.00896.008l-.0005.00027-.26406.14975c-.00713.00418-.0156.00533-.02357.0032-.00796-.00214-.01477-.00738-.01892-.01459-.03064-.05692-.07683-.10368-.13304-.13471-.05621-.03102-.12007-.04499-.18392-.04022-.14418%200-.25672.06412-.25672.18868%200%20.11729.14723.17778.32969.23114M6.94987%202.01967c-.00408.00003-.00812.00087-.01188.00249-.00375.00161-.00716.00396-.01002.00691-.00286.00296-.00511.00645-.00663.01029-.00152.00383-.00226.00794-.00221.01207-.00001.00292.00039.00582.00121.00862.06834.24503.27576.38003.55288.38003.08323.00454.16633-.0111.24239-.04563s.14289-.08695.1949-.15289c.00451-.00607.01106-.01025.01841-.01178.00734-.00152.01499-.00027.02149.00352l.26053.15428c.00703.00421.01212.01108.01416.0191.00203.00801.00084.01652-.00332.02364-.00043.00079-.00093.00155-.00147.00227-.08538.11889-.19888.21417-.33008.27709-.13121.06293-.27592.09149-.42087.08306-.12702.00523-.25378-.01539-.37279-.06064s-.22784-.11422-.32006-.20281c-.16874-.18077-.26304-.41989-.26368-.66861s.09243-.48833.26024-.66999c.08652-.08985.19067-.16034.30574-.206955.11507-.046611.23851-.0683.36237-.063672.1188-.003205.23688.019637.34615.066959.10927.047318.20715.118008.28691.207208.1652.18088.25469.41958.24964.66589-.00041.04456-.00381.08904-.01017.13314-.00105.00742-.0047.01422-.01029.01914-.00559.00493-.01274.00765-.02014.00767zm.95307-.31333c.00408-.00004.00811-.00089.01186-.00251.00376-.00162.00716-.00397.01002-.00692.00285-.00295.0051-.00644.00663-.01027.00152-.00383.00228-.00793.00224-.01206%200-.00254-.00033-.00508-.00099-.00753-.02174-.11535-.08359-.21899-.17432-.29215-.09074-.07315-.20435-.11098-.32026-.10662-.11943-.00646-.23728.02997-.33279.10286s-.16254.17757-.1893.29559c-.00106.00398-.00134.00813-.00082.01222.00053.00408.00183.00803.00386.0116.00202.00357.00473.00671.00795.00922.00322.00252.00691.00437.01084.00544.00256.00069.0052.00105.00785.00109zM9.34382%201.68819l.00197.0005c.27066.06058.62141.17465.61438.55513.00266.07837-.01397.15618-.04839.22642-.03443.07025-.08556.13072-.14881.17598-.14298.10083-.31439.15203-.48853.14593-.3365%200-.58753-.14629-.70553-.39069-.00332-.00707-.00388-.01515-.00156-.02261.00232-.00747.00734-.01377.01406-.01764l.27183-.15981c.00341-.00208.0072-.00344.01113-.00403.00394-.00059.00796-.00038.01182.0006.00386.00099.00749.00274.01068.00515s.00588.00543.00791.00889c.00058.00093.0011.0019.00153.00291.03141.07316.08494.13434.1529.17472s.14682.05786.22523.04993c.20034%200%20.29886-.06765.29886-.19965%200-.11412-.14768-.18151-.33413-.22783-.26371-.06766-.61886-.17448-.61187-.54829-.00254-.0758.0127-.15114.04448-.21982.03178-.06869.07919-.12877.13834-.17531.16643-.122242.374-.172547.57706-.139853.20307.032693.38499.145703.50576.314183.00445.00627.00882.01259.01313.01897.00201.00354.00333.00744.00386.01149s.00026.00816-.00079.01211c-.00104.00394-.00285.00764-.0053.01088-.00246.00324-.00553.00595-.00902.00799h-.00041l-.26397.14974c-.00353.00208-.00743.00344-.01148.00399-.00405.00056-.00817.0003-.01212-.00076s-.00765-.00289-.0109-.0054-.00598-.00564-.00803-.00922c-.03064-.0569-.07682-.10367-.13303-.13469-.0562-.03103-.12005-.04499-.18389-.04023-.14418%200-.25672.06412-.25672.18867%200%20.1173.14718.17779.3296.23115M11.7375.965888h.3182c.0081%200%20.0159.003275.0217.009104.0057.005829.009.013735.009.021979V2.71505c0%20.00409-.0008.00813-.0024.01191-.0015.00378-.0038.00721-.0066.0101-.0029.00289-.0062.00518-.01.00675-.0037.00156-.0077.00237-.0117.00237h-.3182c-.0041%200-.0081-.00081-.0118-.00237-.0037-.00157-.0071-.00386-.01-.00675-.0028-.00289-.0051-.00632-.0066-.0101-.0016-.00378-.0024-.00782-.0023-.01191v-.13703c0-.00625-.0019-.01236-.0053-.01752-.0035-.00517-.0084-.00915-.0142-.01144-.0057-.00228-.012-.00276-.018-.00136-.006.00139-.0115.00459-.0157.00917-.0708.07869-.158.1406-.2551.18132-.0972.04071-.2021.05923-.3071.05423-.1162.00171-.2314-.02152-.3381-.06815-.1066-.04663-.2024-.1156-.2808-.20238-.1651-.18146-.2568-.41917-.2568-.6659s.0917-.48444.2568-.6659c.0784-.08681.1741-.15581.2808-.202452.1067-.046646.2219-.069879.3381-.06817.1049-.004871.2095.013483.3067.053782.0971.0403.1844.10157.2557.17954.0042.00456.0097.00773.0157.0091s.0123.00088.018-.00142c.0058-.0023.0107-.00629.0141-.01145.0035-.00517.0053-.01127.0053-.01751V.996608c0-.008243.0032-.016149.009-.021979.0057-.005829.0136-.009104.0217-.009104zm-.586%201.459622c.0735.00204.1467-.01112.215-.03867.0684-.02756.1304-.06893.1824-.1216.0521-.054.0929-.11802.1201-.18827.0272-.07026.0402-.14533.0382-.22075.0023-.07501-.0105-.14971-.0377-.21952s-.0682-.13324-.1206-.18642c-.1063-.10498-.2489-.16374-.3974-.16374s-.2911.05876-.3974.16374c-.0523.05317-.0933.11661-.1205.18642-.0272.0698-.0401.14451-.0377.21952-.002.07542.011.15049.0381.22075.0272.07025.068.13428.1201.18827.052.05266.1141.09404.1824.1216.0683.02755.1414.04071.215.03867M15.1489%201.64227v1.07261c0%20.00824-.0033.01615-.009.02199-.0058.00584-.0136.00912-.0217.00913H14.8c-.0082%200-.016-.00327-.0217-.0091-.0058-.00583-.009-.01373-.009-.02198V1.66673c0-.24571-.13-.38801-.3411-.38801-.2357%200-.3834.15668-.3834.47v.96588c0%20.00825-.0032.01615-.009.02198-.0057.00583-.0135.00911-.0217.00911h-.3182c-.0081%200-.016-.00328-.0217-.00911-.0058-.00583-.009-.01373-.009-.02198V1.66682c0-.24571-.1195-.38801-.3305-.38801-.2286%200-.3903.16018-.3903.47001v.96587c0%20.00826-.0033.01616-.009.02199-.0058.00582-.0136.0091-.0218.0091h-.3182c-.004%200-.008-.0008-.0117-.00235-.0038-.00156-.0072-.00385-.01-.00674-.0029-.00288-.0052-.00631-.0067-.01009-.0016-.00377-.0024-.00782-.0024-.01191V.99684c0-.004088.0008-.008134.0024-.011909.0015-.003774.0038-.007202.0067-.010089.0028-.002886.0062-.005174.01-.006733.0037-.001559.0077-.002358.0117-.002352h.3182c.0082%200%20.016.003272.0218.009099.0057.005826.009.013732.009.021984v.09075c0%20.00629.0019.01243.0054.01761.0035.00517.0085.00914.0143.01137s.0122.00261.0182.0011.0114-.00485.0156-.00957c.0564-.06312.126-.112769.2037-.145372s.1616-.047345.2456-.043164c.0933-.005037.1864.01476.2698.057422.0835.042664.1545.106704.2059.185754.0022.00325.005.00603.0082.00819.0033.00215.0069.00364.0107.00436.0039.00073.0078.00069.0116-.00012.0038-.0008.0074-.00236.0106-.00458.0028-.00189.0052-.00425.0072-.00699.0585-.08101.1362-.14582.2259-.188465s.1886-.061755.2875-.055571c.3973%200%20.6646.281336.6646.722976M15.9423%202.01966c-.0048.00002-.0095.00117-.0138.00336s-.008.00536-.0108.00925c-.0029.0039-.0048.00842-.0057.0132-.0008.00478-.0005.0097.0008.01435.0684.24503.2758.38003.5529.38003.0833.00453.1664-.01112.2424-.04564.0761-.03453.1429-.08695.1949-.15288.0045-.00606.0111-.01025.0184-.01177s.015-.00027.0215.00351l.2605.15428c.0035.00208.0066.00484.009.00811.0024.00328.0042.00701.0052.01098s.0013.0081.0007.01216-.002.00796-.004.01149c-.0004.00077-.001.00154-.0014.00227-.0854.1189-.1989.21418-.3302.2771-.1312.06293-.2759.09149-.4209.08305-.127.00523-.2537-.01539-.3727-.06065-.119-.04525-.2278-.11421-.32-.2028-.1688-.18075-.2631-.41986-.2638-.66858-.0006-.24873.0924-.48835.2602-.67002.0865-.08985.1907-.16034.3058-.206955.115-.04661.2385-.0683.3623-.063672.1188-.003201.2369.019642.3462.066964.1092.047323.2071.118003.2869.207203.1652.18089.2546.41958.2496.66589-.0004.04456-.0038.08905-.0102.13314-.001.00742-.0047.01422-.0103.01914-.0056.00493-.0127.00765-.0201.00767zm.9531-.31332c.004-.00004.0081-.0009.0118-.00252.0038-.00162.0072-.00397.01-.00692.0029-.00295.0051-.00644.0066-.01027s.0023-.00793.0023-.01205c-.0001-.00259-.0004-.00517-.001-.00767-.0218-.11535-.0837-.21899-.1744-.29215-.0908-.07315-.2044-.11097-.3203-.10662-.1194-.00646-.2373.02995-.3328.10284-.0955.07288-.1625.17755-.1892.29556-.0011.00399-.0014.00814-.0009.01223.0006.00409.0019.00803.0039.01161.002.00357.0048.00671.008.00922s.0069.00436.0108.00542c.0026.00069.0053.00105.0079.00109zM2.48199%203.62801c-.05187%200-.10258-.01558-.14572-.04476-.04313-.02918-.07675-.07065-.09661-.11917-.01985-.04853-.02505-.10192-.01494-.15344.01012-.05151.03509-.09883.07177-.13598l.83896-.84944c.02436-.02466.05328-.04423.08511-.05757.03183-.01335.06593-.02021.10038-.02021s.06857.00687.1004.02022c.03182.01335.06073.03292.08509.05758s.04369.05394.05687.08617c.01318.03222.01996.06676.01996.10163-.00001.03488-.00679.06942-.01997.10164-.01319.03222-.03252.0615-.05688.08616l-.839.8494c-.02432.02469-.05322.04427-.08504.05762s-.06593.0202-.10038.02015'/%3e%3cpath%20fill='%23fff'%20d='M1.83927%203.68436c-.02319.00001-.04629-.00304-.06868-.00907l-.92854-.24957C.720375%203.3928.60944%203.32844.520333%203.23906c-.089108-.08938-.153269-.20065-.186075-.32269L.0243037%201.75605c-.0324748-.12215-.03240286-.25072.0002043-.37284.0326071-.12212.096609-.23352.185606-.32305L1.05695.210719c.08926-.089227.2003-.1534007.32202-.186111.12173-.03271037.24989-.03281201.37167-.000295l1.15687.310873c.12167.032929.2326.097296.32172.186674.08911.089378.15329.200639.18612.322674l.24883.931306c.009.03368.0113.06882.00676.10339-.00454.03458-.01582.06792-.0332.09812-.01739.03021-.04053.05668-.06812.07791-.02758.02123-.05907.03681-.09266.04583-.03358.00903-.06861.01134-.10308.00679-.03448-.00456-.06772-.01587-.09783-.03331-.03012-.01743-.0565-.04065-.07767-.06831-.02117-.02767-.03671-.05925-.04571-.09293L2.90385.982024c-.00864-.03205-.02551-.06127-.04892-.084742s-.05255-.040376-.0845-.049027L1.6136.537382c-.03197-.008541-.06562-.008518-.09759.000065-.03196.008584-.06111.025428-.08455.048851l-.846882.849442c-.023361.02351-.040166.05275-.048732.08481-.008566.03205-.008593.0658-.000083.09788l.309993%201.16031c.008613.03204.025462.06126.048859.08472.023396.02347.052522.04037.084469.04901l.928546.24957c.06198.01672.1158.05546.15145.109.03564.05355.05069.11826.04233.18209-.00836.06384-.03955.12246-.08777.16496-.04822.04249-.11018.06616-.17437.06627'/%3e%3c/svg%3e",It={oxPaymentCardLogo:"_oxPaymentCardLogo_hff9o_2",oxPaymentCardLogoDefault:"_oxPaymentCardLogoDefault_hff9o_2",oxPaymentCardLogoCompact:"_oxPaymentCardLogoCompact_hff9o_2",oxPaymentCardBadge:"_oxPaymentCardBadge_hff9o_2",oxPaymentCardInfo:"_oxPaymentCardInfo_hff9o_2",oxPaymentCardNumber:"_oxPaymentCardNumber_hff9o_2",oxPaymentCardDetail:"_oxPaymentCardDetail_hff9o_2",oxPaymentCardDigits:"_oxPaymentCardDigits_hff9o_2",oxPaymentCardSchemeCompact:"_oxPaymentCardSchemeCompact_hff9o_2",oxPaymentCardFooter:"_oxPaymentCardFooter_hff9o_2",oxPaymentCardScheme:"_oxPaymentCardScheme_hff9o_2","ox-payment-card":"_ox-payment-card_hff9o_2","ox-payment-card--default":"_ox-payment-card--default_hff9o_2","ox-payment-card--compact":"_ox-payment-card--compact_hff9o_2","ox-payment-card--disabled":"_ox-payment-card--disabled_hff9o_2"},LN=e=>({cardNumber:"0000 00** **** 0000",cardholderName:e,expiryDate:"00/00",cvc:"CVC ***",lastFourDigits:"7661"}),zN={background:"linear-gradient(59.34deg, rgb(26, 26, 18) 0%, rgb(51, 65, 85) 100%)"},BN={virtual:"orxata.paymentCard.type.virtual",physical:"orxata.paymentCard.type.physical",subscription:"orxata.paymentCard.type.subscription"},O1=h.forwardRef(({className:e,size:t="default",disabled:o=!1,badgeType:n,cardData:r,dataTestid:a,...s},i)=>{const l=ve(),c=r??LN(l("orxata.paymentCard.cardholderName"));return u.jsxs("div",{ref:i,"data-slot":"payment-card","data-testid":a,className:$(me(It,A1({size:t,disabled:o})),e),style:zN,...s,children:[u.jsx("img",{src:FN,alt:"Sesame",className:$(It.oxPaymentCardLogo,t==="default"?It.oxPaymentCardLogoDefault:It.oxPaymentCardLogoCompact)}),t==="default"&&n&&u.jsx("span",{"data-testid":`${a}-badge`,className:It.oxPaymentCardBadge,children:l(BN[n])}),t==="default"&&u.jsxs("div",{className:It.oxPaymentCardInfo,children:[u.jsx("span",{className:It.oxPaymentCardNumber,children:c.cardNumber}),u.jsx("span",{className:It.oxPaymentCardDetail,children:c.cardholderName})]}),t==="compact"&&u.jsxs(u.Fragment,{children:[u.jsx("span",{className:It.oxPaymentCardDigits,children:c.lastFourDigits}),u.jsxs("svg",{className:It.oxPaymentCardSchemeCompact,viewBox:"0 0 40 24",fill:"none",children:[u.jsx("circle",{cx:"14",cy:"12",r:"10",fill:"#E33A24",fillOpacity:"0.6"}),u.jsx("circle",{cx:"26",cy:"12",r:"10",fill:"#F8CB2E",fillOpacity:"0.6"})]})]}),t==="default"&&u.jsxs("div",{className:It.oxPaymentCardFooter,children:[u.jsx("span",{className:It.oxPaymentCardDetail,children:c.expiryDate}),u.jsx("span",{className:It.oxPaymentCardDetail,children:c.cvc}),u.jsxs("svg",{className:It.oxPaymentCardScheme,viewBox:"0 0 40 24",fill:"none",children:[u.jsx("circle",{cx:"14",cy:"12",r:"10",fill:"#E33A24"}),u.jsx("circle",{cx:"26",cy:"12",r:"10",fill:"#F8CB2E",fillOpacity:"0.6"})]})]})]})});O1.displayName="OxPaymentCard";const A1=Oe("ox-payment-card",{variants:{size:{default:"ox-payment-card--default",compact:"ox-payment-card--compact"},disabled:{true:"ox-payment-card--disabled",false:""}},defaultVariants:{size:"default",disabled:!1}}),HN=`<svg width="1.2em" height="1.2em" stroke-color="currentColor" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24">
|
|
95
|
-
<g class="icon-file">
|
|
96
|
-
<path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M14 3v4a1 1 0 0 0 1 1h4m-5-5H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V8m-5-5 5 5" class="Vector"/>
|
|
97
|
-
</g>
|
|
98
|
-
</svg>
|
|
99
|
-
`,Pn={"ox-file-card":"_ox-file-card_1uum8_2","ox-file-card--brand":"_ox-file-card--brand_1uum8_2","ox-file-card-icon":"_ox-file-card-icon_1uum8_2","ox-file-card--pdf":"_ox-file-card--pdf_1uum8_2","ox-file-card--word":"_ox-file-card--word_1uum8_2","ox-file-card--excel":"_ox-file-card--excel_1uum8_2","ox-file-card--powerpoint":"_ox-file-card--powerpoint_1uum8_2","ox-file-card--file":"_ox-file-card--file_1uum8_2","ox-file-card-text":"_ox-file-card-text_1uum8_2","ox-file-card-name":"_ox-file-card-name_1uum8_2","ox-file-card-meta":"_ox-file-card-meta_1uum8_2","ox-file-card-action":"_ox-file-card-action_1uum8_2","ox-file-card-progress":"_ox-file-card-progress_1uum8_2","ox-file-card-progress-value":"_ox-file-card-progress-value_1uum8_2","ox-file-card--error":"_ox-file-card--error_1uum8_2"},N1=h.forwardRef(({className:e,children:t,type:o="file",surface:n="default",state:r="default",progress:a,meta:s,icon:i,action:l,dataTestid:c,...d},f)=>{const p=`${h.useId()}-name`,g=Math.min(100,Math.max(0,a??0));return u.jsxs(ml,{ref:f,flat:!0,"data-slot":"file-card",dataTestid:c,className:$(me(Pn,$1({type:o,surface:n,state:r})),e),...d,children:[u.jsx("span",{className:Pn["ox-file-card-icon"],"data-slot":"icon",children:i??u.jsx(ee,{icon:HN,"data-testid":`${c}-icon`})}),u.jsxs("span",{className:Pn["ox-file-card-text"],children:[u.jsx("span",{id:p,className:Pn["ox-file-card-name"],children:t}),s&&u.jsx("span",{className:Pn["ox-file-card-meta"],children:s})]}),l&&u.jsx("span",{className:Pn["ox-file-card-action"],children:l}),a!==void 0&&u.jsx("span",{className:Pn["ox-file-card-progress"],role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":g,"aria-labelledby":p,"data-testid":`${c}-progress`,children:u.jsx("span",{className:Pn["ox-file-card-progress-value"],style:{inlineSize:`${g}%`}})})]})});N1.displayName="OxFileCard";const $1=Oe("ox-file-card",{variants:{type:{pdf:"ox-file-card--pdf",word:"ox-file-card--word",excel:"ox-file-card--excel",powerpoint:"ox-file-card--powerpoint",file:"ox-file-card--file"},surface:{default:"",brand:"ox-file-card--brand"},state:{default:"",error:"ox-file-card--error"}},defaultVariants:{type:"file",surface:"default",state:"default"}}),Ll={"ox-image-attachment":"_ox-image-attachment_18sj9_2","ox-image-attachment--gallery":"_ox-image-attachment--gallery_18sj9_2","ox-image-attachment-tile":"_ox-image-attachment-tile_18sj9_2","ox-image-attachment-more":"_ox-image-attachment-more_18sj9_2"},F1=4,L1=h.forwardRef(({className:e,images:t,surface:o="default",onOpen:n,dataTestid:r,...a},s)=>{const i=t.slice(0,F1),l=Math.max(t.length-F1,0),c=t.length>1;return u.jsx("div",{ref:s,"data-slot":"image-attachment","data-testid":r,className:$(Ll["ox-image-attachment"],c&&Ll["ox-image-attachment--gallery"],e),...a,children:i.map((d,f)=>u.jsx("button",{type:"button",className:Ll["ox-image-attachment-tile"],"data-testid":`${r}-tile-${f}`,onClick:()=>n==null?void 0:n(f),children:u.jsx(es,{image:d,surface:o,dataTestid:`${r}-media-${f}`,children:l>0&&f===i.length-1?u.jsxs("span",{className:Ll["ox-image-attachment-more"],"aria-hidden":"true",children:["+",l]}):null})},`${f}-${d.src}`))})});L1.displayName="OxImageAttachment";const zl=`<svg width="1.2em" height="1.2em" stroke-color="currentColor" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24">
|
|
100
|
-
<g>
|
|
101
|
-
<path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M7.8 4v16l13-8L7.8 4Z"/>
|
|
102
|
-
</g>
|
|
103
|
-
</svg>
|
|
104
|
-
`,Bl={"ox-video-attachment":"_ox-video-attachment_2vv9g_2","ox-video-attachment-play":"_ox-video-attachment-play_2vv9g_2","ox-video-attachment-play-glyph":"_ox-video-attachment-play-glyph_2vv9g_2","ox-video-attachment-duration":"_ox-video-attachment-duration_2vv9g_2"},z1=h.forwardRef(({className:e,image:t,surface:o="default",duration:n,onPlay:r,onClick:a,dataTestid:s,...i},l)=>u.jsx("button",{ref:l,type:"button","data-slot":"video-attachment","data-testid":s,className:$(Bl["ox-video-attachment"],e),onClick:c=>{a==null||a(c),r==null||r()},...i,children:u.jsxs(es,{image:t,surface:o,dataTestid:`${s}-media`,children:[u.jsx("span",{className:Bl["ox-video-attachment-play"],"aria-hidden":"true","data-testid":`${s}-play`,children:u.jsx(ee,{icon:zl,className:Bl["ox-video-attachment-play-glyph"]})}),n?u.jsx("span",{className:Bl["ox-video-attachment-duration"],"data-testid":`${s}-duration`,children:n}):null]})}));z1.displayName="OxVideoAttachment";const VN=`<svg width="1.2em" height="1.2em" stroke-color="currentColor" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24">
|
|
105
|
-
<g class="Size=24px, Disable=false">
|
|
106
|
-
<g class="Group 4">
|
|
107
|
-
<path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M12 21a9 9 0 1 0 0-18 9 9 0 0 0 0 18ZM3.6 9h16.8M3.6 15h16.8" class="Vector"/>
|
|
108
|
-
<path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M11.5 3a17 17 0 0 0 0 18m1-18a17 17 0 0 1 0 18" class="Vector"/>
|
|
109
|
-
</g>
|
|
110
|
-
</g>
|
|
111
|
-
</svg>
|
|
112
|
-
`,ir={"ox-link-preview":"_ox-link-preview_1ybch_2","ox-link-preview--brand":"_ox-link-preview--brand_1ybch_2","ox-link-preview-text":"_ox-link-preview-text_1ybch_2","ox-link-preview-domain":"_ox-link-preview-domain_1ybch_2","ox-link-preview-domain-glyph":"_ox-link-preview-domain-glyph_1ybch_2","ox-link-preview-title":"_ox-link-preview-title_1ybch_2","ox-link-preview-description":"_ox-link-preview-description_1ybch_2"},B1=h.forwardRef(({className:e,href:t,image:o,surface:n="default",domain:r,description:a,children:s,dataTestid:i,...l},c)=>{const d=`${h.useId()}-title`;return u.jsxs("a",{ref:c,href:t,target:"_blank",rel:"noopener noreferrer","aria-labelledby":d,"data-slot":"link-preview","data-testid":i,className:$(ir["ox-link-preview"],n==="brand"&&ir["ox-link-preview--brand"],e),...l,children:[o?u.jsx(es,{image:o,surface:n,dataTestid:`${i}-media`}):null,u.jsxs("span",{className:ir["ox-link-preview-text"],children:[r?u.jsxs("span",{className:ir["ox-link-preview-domain"],"data-testid":`${i}-domain`,children:[u.jsx(ee,{icon:VN,className:ir["ox-link-preview-domain-glyph"],"data-slot":"icon"}),r]}):null,u.jsx("span",{id:d,className:ir["ox-link-preview-title"],"data-testid":`${i}-title`,children:s}),a?u.jsx("span",{className:ir["ox-link-preview-description"],"data-testid":`${i}-description`,children:a}):null]})]})});B1.displayName="OxLinkPreview";const WN=`<svg width="1.2em" height="1.2em" stroke-color="currentColor" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24">
|
|
113
|
-
<g>
|
|
114
|
-
<path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M12 14a3 3 0 1 0 0-6 3 3 0 0 0 0 6Z"/>
|
|
115
|
-
<path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M17.657 16.657 13.414 20.9a2 2 0 0 1-2.827 0l-4.244-4.243a8 8 0 1 1 11.314 0Z"/>
|
|
116
|
-
</g>
|
|
117
|
-
</svg>
|
|
118
|
-
`,Zr={"ox-location-attachment":"_ox-location-attachment_e3cts_2","ox-location-attachment--brand":"_ox-location-attachment--brand_e3cts_2","ox-location-attachment-pin":"_ox-location-attachment-pin_e3cts_2","ox-location-attachment-text":"_ox-location-attachment-text_e3cts_2","ox-location-attachment-place":"_ox-location-attachment-place_e3cts_2","ox-location-attachment-address":"_ox-location-attachment-address_e3cts_2"},H1=h.forwardRef(({className:e,href:t,image:o,surface:n="default",address:r,children:a,dataTestid:s,...i},l)=>u.jsxs("a",{ref:l,href:t,"data-slot":"location-attachment","data-testid":s,className:$(Zr["ox-location-attachment"],n==="brand"&&Zr["ox-location-attachment--brand"],e),...i,children:[u.jsx(es,{image:o,surface:n,dataTestid:`${s}-map`,placeholder:u.jsx(ee,{icon:WN,className:Zr["ox-location-attachment-pin"],"data-slot":"icon"})}),u.jsxs("span",{className:Zr["ox-location-attachment-text"],children:[u.jsx("span",{className:Zr["ox-location-attachment-place"],"data-testid":`${s}-place`,children:a}),r?u.jsx("span",{className:Zr["ox-location-attachment-address"],"data-testid":`${s}-address`,children:r}):null]})]}));H1.displayName="OxLocationAttachment";const V1=`<svg width="1.2em" height="1.2em" stroke-color="currentColor" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24">
|
|
119
|
-
<g class="icon-player-pause">
|
|
120
|
-
<path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M9 5H7a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h2a1 1 0 0 0 1-1V6a1 1 0 0 0-1-1Zm8 0h-2a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h2a1 1 0 0 0 1-1V6a1 1 0 0 0-1-1Z" class="Vector"/>
|
|
121
|
-
</g>
|
|
122
|
-
</svg>
|
|
123
|
-
`,Tn={"ox-voice-message":"_ox-voice-message_1s19w_2","ox-voice-message--brand":"_ox-voice-message--brand_1s19w_2","ox-voice-message-toggle":"_ox-voice-message-toggle_1s19w_2","ox-voice-message-toggle-glyph":"_ox-voice-message-toggle-glyph_1s19w_2","ox-voice-message-label":"_ox-voice-message-label_1s19w_2","ox-voice-message-waveform":"_ox-voice-message-waveform_1s19w_2","ox-voice-message-bar":"_ox-voice-message-bar_1s19w_2","ox-voice-message-duration":"_ox-voice-message-duration_1s19w_2"},RN=3,W1=2,GN=32,Hl=.05,ps=e=>Number.isFinite(e)?e>1?1:e<0?0:e:0,jN=(e,t)=>{if(t<1||e.length===0)return[];if(e.length<=t)return e.map(ps);const o=[];for(let n=0;n<t;n+=1){const r=Math.floor(n*e.length/t),a=Math.max(r+1,Math.floor((n+1)*e.length/t));let s=0;for(let i=r;i<a;i+=1){const l=ps(e[i]);l>s&&(s=l)}o.push(s)}return o},UN=e=>{const t=h.useRef(null),[o,n]=h.useState(0),r=h.useRef(null);h.useEffect(()=>{const b=t.current,y=()=>n((b==null?void 0:b.clientWidth)??0);if(y(),typeof ResizeObserver>"u"||!b)return;const C=new ResizeObserver(y);return C.observe(b),()=>C.disconnect()},[]);const a=o>0?Math.max(1,Math.floor((o+W1)/(RN+W1))):GN,s=ps(e.progress),i=Math.round(s*100),l=jN(e.peaks,a),c=s*l.length,d=l.map((b,y)=>({key:y,peak:b,played:y<c})),f=b=>{const y=t.current;if(!y)return s;const C=y.getBoundingClientRect();return C.width===0?s:ps((b-C.left)/C.width)};return{track:t,bars:d,percent:i,onPointerDown:b=>{var C;if(b.button!==0)return;const y=t.current;y&&((C=y.setPointerCapture)==null||C.call(y,b.pointerId),y.focus(),r.current=b.pointerId,b.preventDefault(),e.seek(f(b.clientX)))},onPointerMove:b=>{r.current===b.pointerId&&e.seek(f(b.clientX))},onPointerUp:b=>{var y,C;r.current===b.pointerId&&(r.current=null,(C=(y=t.current)==null?void 0:y.releasePointerCapture)==null||C.call(y,b.pointerId))},onKeyDown:b=>{const y={ArrowLeft:()=>s-Hl,ArrowDown:()=>s-Hl,ArrowRight:()=>s+Hl,ArrowUp:()=>s+Hl,Home:()=>0,End:()=>1}[b.key];y&&(b.preventDefault(),e.seek(ps(y())))}}},R1=h.forwardRef(({className:e,peaks:t,playing:o=!1,progress:n=0,surface:r="default",label:a,duration:s,onPlayingChange:i,onProgressChange:l,dataTestid:c,...d},f)=>{const p=h.useId(),g=`${p}-label`,x=`${p}-duration`,m=a?g:x,{track:b,bars:y,percent:C,onPointerDown:w,onPointerMove:P,onPointerUp:S,onKeyDown:_}=UN({peaks:t,progress:n,seek:T=>l==null?void 0:l(T)});return u.jsxs("div",{ref:f,"data-slot":"voice-message","data-testid":c,className:$(Tn["ox-voice-message"],r==="brand"&&Tn["ox-voice-message--brand"],e),...d,children:[u.jsx("button",{type:"button",className:Tn["ox-voice-message-toggle"],"aria-pressed":o,"aria-labelledby":m,"data-testid":`${c}-toggle`,onClick:()=>i==null?void 0:i(!o),children:u.jsx(ee,{icon:o?V1:zl,className:Tn["ox-voice-message-toggle-glyph"],"data-testid":`${c}-glyph`})}),a?u.jsx("span",{id:g,className:Tn["ox-voice-message-label"],children:a}):null,u.jsx("div",{ref:b,role:"slider",tabIndex:0,className:Tn["ox-voice-message-waveform"],"aria-labelledby":m,"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":C,"data-testid":`${c}-waveform`,onPointerDown:w,onPointerMove:P,onPointerUp:S,onPointerCancel:S,onKeyDown:_,children:y.map(T=>u.jsx("span",{className:Tn["ox-voice-message-bar"],"data-played":T.played?!0:void 0,"data-testid":`${c}-bar-${T.key}`,style:{"--ox-voice-message-peak":T.peak}},T.key))}),u.jsx("span",{id:x,className:Tn["ox-voice-message-duration"],"data-testid":`${c}-duration`,children:s})]})});R1.displayName="OxVoiceMessage";const qN={8:128,16:32768},YN="Expected either a `number[]` of magnitudes or BBC audiowaveform JSON (an object with a numeric `data` array and `bits` of 8 or 16).",KN=e=>{if(e===null)return"received `null`";if(Array.isArray(e))return"received an array";if(typeof e!="object")return`received a ${typeof e}`;const t=Object.keys(e);return t.length===0?"received an object with no keys":`received an object with keys ${t.slice(0,8).join(", ")}${t.length>8?", …":""}`},XN=e=>e>1?1:e<0?0:e,ZN=e=>{const t=[];let o=0;for(let n=0;n<e.length;n+=1){const r=e[n];if(typeof r!="number"||!Number.isFinite(r))throw new TypeError(`toWaveformPeaks: sample ${n} is \`${String(r)}\`. Every sample has to be a finite number.`);const a=Math.abs(r);t.push(a),a>o&&(o=a)}return o<=1?t:t.map(n=>n/o)},JN=e=>{const t=qN[e.bits];if(t===void 0)throw new TypeError(`toWaveformPeaks: \`bits\` is \`${String(e.bits)}\`. audiowaveform writes 8 or 16.`);const o=e.channels??1;if(!Number.isInteger(o)||o<1)throw new TypeError(`toWaveformPeaks: \`channels\` is \`${String(e.channels)}\`. Omit it for mono, or give a whole number above zero.`);const n=2*o,r=e.length,a=Number.isInteger(r)&&r>0?r:Math.floor(e.data.length/n);if(e.data.length<a*n)throw new TypeError(`toWaveformPeaks: \`data\` holds ${e.data.length} values, short of the ${a*n} that ${a} pairs across ${o} channel(s) need.`);const s=[];for(let i=0;i<a;i+=1){let l=0;for(let c=0;c<o;c+=1){const d=i*n+c*2,f=e.data[d],p=e.data[d+1];if(!Number.isFinite(f)||!Number.isFinite(p))throw new TypeError(`toWaveformPeaks: \`data\` holds \`${String(f)}\`/\`${String(p)}\` at pair ${i}. Every value has to be a finite number.`);l=Math.max(l,Math.abs(f),Math.abs(p))}s.push(XN(l/t))}return s},QN=e=>{if(Array.isArray(e))return ZN(e);if(typeof e=="object"&&e!==null&&Array.isArray(e.data))return JN(e);throw new TypeError(`toWaveformPeaks: unrecognised waveform source — ${KN(e)}. ${YN}`)},hs={oxFilePreviewCard:"_oxFilePreviewCard_f28bd_2",oxFilePreviewCardMedia:"_oxFilePreviewCardMedia_f28bd_2",oxFilePreviewCardImage:"_oxFilePreviewCardImage_f28bd_2",oxFilePreviewCardFallback:"_oxFilePreviewCardFallback_f28bd_2",oxFilePreviewCardMeta:"_oxFilePreviewCardMeta_f28bd_2"},G1=h.forwardRef(({className:e,src:t,alt:o,meta:n,dataTestid:r,...a},s)=>{const[i,l]=h.useState(!1);return h.useEffect(()=>{l(!1)},[t]),u.jsxs(ml,{ref:s,flat:!0,"data-slot":"file-preview-card",dataTestid:r,className:$(hs.oxFilePreviewCard,e),...a,children:[u.jsx("span",{className:hs.oxFilePreviewCardMedia,children:i?u.jsx("span",{className:hs.oxFilePreviewCardFallback,role:"img","aria-label":o,"data-testid":`${r}-fallback`,children:u.jsx(ee,{icon:Sb})}):u.jsx("img",{className:hs.oxFilePreviewCardImage,src:t,alt:o,"data-testid":`${r}-image`,onError:()=>l(!0)})}),u.jsx("span",{className:hs.oxFilePreviewCardMeta,children:n})]})});G1.displayName="OxFilePreviewCard";const Vl={"ox-chat-bubble":"_ox-chat-bubble_gjzdu_2","ox-chat-bubble-body":"_ox-chat-bubble-body_gjzdu_2","ox-chat-bubble-footer":"_ox-chat-bubble-footer_gjzdu_2","ox-chat-bubble-time":"_ox-chat-bubble-time_gjzdu_2","ox-chat-bubble--user":"_ox-chat-bubble--user_gjzdu_2","ox-chat-bubble--other":"_ox-chat-bubble--other_gjzdu_2"},j1=`<svg width="1.2em" height="1.2em" stroke-color="currentColor" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24">
|
|
124
|
-
<g class="icon-checks">
|
|
125
|
-
<path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="m7 12 5 5L22 7M2 12l5 5m5-5 5-5" class="Vector"/>
|
|
126
|
-
</g>
|
|
127
|
-
</svg>
|
|
128
|
-
`,Ff=`<svg width="1.2em" height="1.2em" stroke-color="currentColor" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24">
|
|
129
|
-
<g>
|
|
130
|
-
<path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M12 21a9 9 0 1 0 0-18 9 9 0 0 0 0 18Z"/>
|
|
131
|
-
<path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M12 7v5l3 3"/>
|
|
132
|
-
</g>
|
|
133
|
-
</svg>
|
|
134
|
-
`,e6={"ox-chat-bubble-status":"_ox-chat-bubble-status_18ze1_2","ox-chat-bubble-status--pending":"_ox-chat-bubble-status--pending_18ze1_2","ox-chat-bubble-status--sent":"_ox-chat-bubble-status--sent_18ze1_2","ox-chat-bubble-status--delivered":"_ox-chat-bubble-status--delivered_18ze1_2","ox-chat-bubble-status--read":"_ox-chat-bubble-status--read_18ze1_2"},t6={pending:Ff,sent:wn,delivered:j1,read:j1},o6={pending:"orxata.chatBubble.status.pending",sent:"orxata.chatBubble.status.sent",delivered:"orxata.chatBubble.status.delivered",read:"orxata.chatBubble.status.read"},Lf=h.forwardRef(({className:e,status:t="sent",dataTestid:o,...n},r)=>{const a=ve();return u.jsx(ee,{ref:r,icon:t6[t],className:$(me(e6,U1({status:t})),e),"data-slot":"icon","data-testid":o,"aria-label":a(o6[t]),role:"img",...n})});Lf.displayName="OxChatBubbleStatus";const U1=Oe("ox-chat-bubble-status",{variants:{status:{pending:"ox-chat-bubble-status--pending",sent:"ox-chat-bubble-status--sent",delivered:"ox-chat-bubble-status--delivered",read:"ox-chat-bubble-status--read"}},defaultVariants:{status:"sent"}}),q1=h.forwardRef(({className:e,author:t="other",delivery:o,footer:n,children:r,dataTestid:a,...s},i)=>{const l=!!(o!=null&&o.time)||!!(o!=null&&o.status);return u.jsxs("div",{ref:i,className:$(me(Vl,Y1({author:t})),e),"data-slot":"chat-bubble","data-testid":a,...s,children:[u.jsx("div",{className:Vl["ox-chat-bubble-body"],"data-slot":"description",children:r}),n||l?u.jsx("div",{className:Vl["ox-chat-bubble-footer"],children:n??u.jsxs(u.Fragment,{children:[o!=null&&o.time?u.jsx("span",{className:Vl["ox-chat-bubble-time"],children:o.time}):null,o!=null&&o.status?u.jsx(Lf,{status:o.status,dataTestid:`${a}-status`}):null]})}):null]})});q1.displayName="OxChatBubble";const Y1=Oe("ox-chat-bubble",{variants:{author:{user:"ox-chat-bubble--user",other:"ox-chat-bubble--other"}},defaultVariants:{author:"other"}}),n6=`<svg width="1.2em" height="1.2em" stroke-color="currentColor" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24">
|
|
135
|
-
<g>
|
|
136
|
-
<path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M12 13a1 1 0 1 0 0-2 1 1 0 0 0 0 2Zm0 7a1 1 0 1 0 0-2 1 1 0 0 0 0 2Zm0-14a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z"/>
|
|
137
|
-
</g>
|
|
138
|
-
</svg>
|
|
139
|
-
`,r6=`<svg width="1.2em" height="1.2em" stroke-color="currentColor" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16">
|
|
140
|
-
<g class="icon-heart">
|
|
141
|
-
<path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M2.84 8.22a3.358 3.358 0 0 1-1.007-2.48c.014-.46.12-.913.314-1.326a3.37 3.37 0 0 1 .82-1.094c.346-.3.753-.533 1.193-.673.44-.14.9-.187 1.36-.133A3.315 3.315 0 0 1 7.84 3.84a3.327 3.327 0 0 1 2.327-1.313c.453-.047.92 0 1.353.14.44.14.84.367 1.187.667.346.3.626.673.82 1.086a3.367 3.367 0 0 1 .073 2.667c-.173.427-.753 1.133-.753 1.133l-5 4.947L2.84 8.22Z" class="Vector"/>
|
|
142
|
-
</g>
|
|
143
|
-
</svg>
|
|
144
|
-
`,gt={"ox-comment-item":"_ox-comment-item_10cs5_2","ox-comment-item-main":"_ox-comment-item-main_10cs5_2","ox-comment-item-avatar":"_ox-comment-item-avatar_10cs5_2","ox-comment-item-body":"_ox-comment-item-body_10cs5_2","ox-comment-item-header":"_ox-comment-item-header_10cs5_2","ox-comment-item-author":"_ox-comment-item-author_10cs5_2","ox-comment-item-time":"_ox-comment-item-time_10cs5_2","ox-comment-item-text":"_ox-comment-item-text_10cs5_2","ox-comment-item-actions":"_ox-comment-item-actions_10cs5_2","ox-comment-item-like":"_ox-comment-item-like_10cs5_2","ox-comment-item-reply":"_ox-comment-item-reply_10cs5_2","ox-comment-item-menu":"_ox-comment-item-menu_10cs5_2","ox-comment-item-like-icon":"_ox-comment-item-like-icon_10cs5_2","ox-comment-item-menu-icon":"_ox-comment-item-menu-icon_10cs5_2","ox-comment-item-replies":"_ox-comment-item-replies_10cs5_2"},K1=h.forwardRef(({className:e,author:t,time:o,timeTitle:n,liked:r=!1,likes:a,avatar:s,actions:i,actionsTrigger:l,replies:c,onLike:d,onReply:f,dataTestid:p,children:g,...x},m)=>{const b=ve();return u.jsxs("article",{ref:m,className:$(gt["ox-comment-item"],e),"data-slot":"comment-item","data-testid":p,...x,children:[u.jsxs("div",{className:gt["ox-comment-item-main"],"data-slot":"comment",children:[u.jsx("span",{className:gt["ox-comment-item-avatar"],"data-slot":"avatar",children:s}),u.jsxs("div",{className:gt["ox-comment-item-body"],"data-slot":"body",children:[u.jsxs("div",{className:gt["ox-comment-item-header"],"data-slot":"header",children:[u.jsx("span",{className:gt["ox-comment-item-author"],"data-slot":"author",children:t}),u.jsx("span",{className:gt["ox-comment-item-time"],"data-slot":"time",title:n,children:o})]}),u.jsx("div",{className:gt["ox-comment-item-text"],"data-slot":"text",children:g}),u.jsxs("div",{className:gt["ox-comment-item-actions"],"data-slot":"actions",children:[u.jsxs("button",{type:"button",className:gt["ox-comment-item-like"],"data-slot":"like","aria-pressed":r,onClick:d,children:[u.jsx(ee,{icon:r6,className:gt["ox-comment-item-like-icon"]}),u.jsx("span",{className:gt["ox-comment-item-like-label"],children:b("orxata.comment.like")}),a!==void 0&&u.jsx("span",{className:gt["ox-comment-item-like-count"],"data-slot":"count",children:a})]}),u.jsx("button",{type:"button",className:gt["ox-comment-item-reply"],"data-slot":"reply",onClick:f,children:b("orxata.comment.reply")})]})]}),(i||l)&&u.jsxs(cl,{children:[u.jsx(ul,{children:l??u.jsx("button",{type:"button",className:gt["ox-comment-item-menu"],"aria-label":b("orxata.comment.actions"),children:u.jsx(ee,{icon:n6,className:gt["ox-comment-item-menu-icon"]})})}),u.jsx(hl,{align:"end",children:i})]})]}),c&&u.jsx("div",{className:gt["ox-comment-item-replies"],"data-slot":"replies",children:c})]})});K1.displayName="OxCommentItem";const X1={"ox-rich-text":"_ox-rich-text_qn8x2_2","ox-rich-text-content":"_ox-rich-text-content_qn8x2_2"},a6=e=>"setHTML"in e;let Z1;const s6="[OxRichText] The HTML sanitiser could not be loaded, so nothing was rendered — markup is never written unsanitised. This browser has no native `setHTML`, so `dompurify` is what it needs, and that request failed.",i6=async e=>{const t=document.createElement("div");if(a6(t))return t.setHTML(e),t.innerHTML;Z1??(Z1=import("dompurify"));const{default:o}=await Z1;return o.sanitize(e)},zf=h.forwardRef(({className:e,html:t,children:o,...n},r)=>{const[a,s]=h.useState("");h.useEffect(()=>{if(t===void 0){s("");return}let l=!0;return i6(t).then(c=>{l&&s(c)},()=>{l&&s(""),console.error(s6)}),()=>{l=!1}},[t]);const i=me(X1,"ox-rich-text-content");return u.jsx("div",{ref:r,"data-slot":"rich-text",className:$(me(X1,"ox-rich-text"),e),...n,children:t===void 0?u.jsx("div",{className:i,children:o}):u.jsx("div",{className:i,dangerouslySetInnerHTML:{__html:a}})})});zf.displayName="OxRichText";const l6={nodes:["doc","text","paragraph","heading","bulletList","orderedList","listItem","blockquote","codeBlock","horizontalRule","hardBreak"],marks:["bold","italic","strike","underline","code","link"]},c6={"ox-mention":"_ox-mention_10cwt_2","ox-mention--other":"_ox-mention--other_10cwt_2","ox-mention--personal":"_ox-mention--personal_10cwt_2"},J1=h.forwardRef(({className:e,personal:t=!1,asChild:o=!1,children:n,...r},a)=>{const s=o?Ho:"button";return u.jsx(s,{ref:a,type:o?void 0:"button","data-slot":"mention",className:$(me(c6,Q1({personal:t})),e),...r,children:n})});J1.displayName="OxMention";const Q1=Oe("ox-mention",{variants:{personal:{false:"ox-mention--other",true:"ox-mention--personal"}},defaultVariants:{personal:!1}}),u6={"ox-chip":"_ox-chip_11a8l_2","ox-chip--sm":"_ox-chip--sm_11a8l_2","ox-chip--lg":"_ox-chip--lg_11a8l_2","ox-chip--icon-sm":"_ox-chip--icon-sm_11a8l_2","ox-chip--icon-lg":"_ox-chip--icon-lg_11a8l_2"},Bf=h.forwardRef(({className:e,size:t="sm",selected:o=!1,dragged:n=!1,asChild:r=!1,dataTestid:a,children:s,...i},l)=>{const c=r?Ho:"button";return u.jsx(c,{ref:l,type:r?void 0:"button","data-slot":"chip","data-selected":o||void 0,"data-dragged":n||void 0,"data-testid":a,className:$(me(u6,ey({size:t})),e),...i,children:s})});Bf.displayName="OxChip";const ey=Oe("ox-chip",{variants:{size:{sm:"ox-chip--sm",lg:"ox-chip--lg","icon-sm":"ox-chip--icon-sm","icon-lg":"ox-chip--icon-lg"}},defaultVariants:{size:"sm"}});var Wl=0,Io=null;function ty(){v.useEffect(()=>{Io||(Io={start:oy(),end:oy()});const{start:e,end:t}=Io;return document.body.firstElementChild!==e&&document.body.insertAdjacentElement("afterbegin",e),document.body.lastElementChild!==t&&document.body.insertAdjacentElement("beforeend",t),Wl++,()=>{Wl===1&&(Io==null||Io.start.remove(),Io==null||Io.end.remove(),Io=null),Wl=Math.max(0,Wl-1)}},[])}function oy(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var d6=Object.defineProperty,Pt=(e,t)=>d6(e,"name",{value:t,configurable:!0}),Hf="focusScope.autoFocusOnMount",Vf="focusScope.autoFocusOnUnmount",ny={bubbles:!1,cancelable:!0},ry=v.forwardRef(Pt(function(t,o){const{loop:n=!1,trapped:r=!1,onMountAutoFocus:a,onUnmountAutoFocus:s,...i}=t,[l,c]=v.useState(null),d=or(a),f=or(s),p=v.useRef(null),g=We(o,c),x=v.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;v.useEffect(()=>{if(r){let b=function(P){if(x.paused||!l)return;const S=P.target;l.contains(S)?p.current=S:Zo(p.current,{select:!0})},y=function(P){if(x.paused||!l)return;const S=P.relatedTarget;S!==null&&(l.contains(S)||Zo(p.current,{select:!0}))},C=function(P){if(document.activeElement===document.body)for(const _ of P)_.removedNodes.length>0&&Zo(l)};Pt(b,"handleFocusIn"),Pt(y,"handleFocusOut"),Pt(C,"handleMutations"),document.addEventListener("focusin",b),document.addEventListener("focusout",y);const w=new MutationObserver(C);return l&&w.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",b),document.removeEventListener("focusout",y),w.disconnect()}}},[r,l,x.paused]),v.useEffect(()=>{if(l){cy.add(x);const b=document.activeElement;if(!l.contains(b)){const C=new CustomEvent(Hf,ny);l.addEventListener(Hf,d),l.dispatchEvent(C),C.defaultPrevented||(ay(dy(Wf(l)),{select:!0}),document.activeElement===b&&Zo(l))}return()=>{l.removeEventListener(Hf,d),setTimeout(()=>{const C=new CustomEvent(Vf,ny);l.addEventListener(Vf,f),l.dispatchEvent(C),C.defaultPrevented||Zo(b??document.body,{select:!0}),l.removeEventListener(Vf,f),cy.remove(x)},0)}}},[l,d,f,x]);const m=v.useCallback(b=>{if(!n&&!r||x.paused)return;const y=b.key==="Tab"&&!b.altKey&&!b.ctrlKey&&!b.metaKey,C=document.activeElement;if(y&&C){const w=b.currentTarget,[P,S]=sy(w);P&&S?!b.shiftKey&&C===S?(b.preventDefault(),n&&Zo(P,{select:!0})):b.shiftKey&&C===P&&(b.preventDefault(),n&&Zo(S,{select:!0})):C===w&&b.preventDefault()}},[n,r,x.paused]);return u.jsx(ye.div,{tabIndex:-1,...i,ref:g,onKeyDown:m})},"FocusScope"));function ay(e,{select:t=!1}={}){const o=document.activeElement;for(const n of e)if(Zo(n,{select:t}),document.activeElement!==o)return}Pt(ay,"focusFirst");function sy(e){const t=Wf(e),o=Rf(t,e),n=Rf(t.reverse(),e);return[o,n]}Pt(sy,"getTabbableEdges");function Wf(e){const t=[],o=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:Pt(n=>{const r=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||r?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP},"acceptNode")});for(;o.nextNode();)t.push(o.currentNode);return t}Pt(Wf,"getTabbableCandidates");function Rf(e,t){const o=typeof t.checkVisibility=="function"&&t.checkVisibility({checkVisibilityCSS:!0});for(const n of e)if(!(o?!n.checkVisibility({checkVisibilityCSS:!0}):iy(n,{upTo:t})))return n}Pt(Rf,"findVisible");function iy(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}Pt(iy,"isHidden");function ly(e){return e instanceof HTMLInputElement&&"select"in e}Pt(ly,"isSelectableInput");function Zo(e,{select:t=!1}={}){if(e&&e.focus){const o=document.activeElement;e.focus({preventScroll:!0}),e!==o&&ly(e)&&t&&e.select()}}Pt(Zo,"focus");var cy=uy();function uy(){let e=[];return{add(t){const o=e[0];t!==o&&(o==null||o.pause()),e=Gf(e,t),e.unshift(t)},remove(t){var o;e=Gf(e,t),(o=e[0])==null||o.resume()}}}Pt(uy,"createFocusScopesStack");function Gf(e,t){const o=[...e],n=o.indexOf(t);return n!==-1&&o.splice(n,1),o}Pt(Gf,"arrayRemove");function dy(e){return e.filter(t=>t.tagName!=="A")}Pt(dy,"removeLinks");var f6=Object.defineProperty,uo=(e,t)=>f6(e,"name",{value:t,configurable:!0}),jf="Popover",[fy]=Kt(jf,[kl]),gs=kl(),[p6,kn]=fy(jf),h6=uo(e=>{const{__scopePopover:t,children:o,open:n,defaultOpen:r,onOpenChange:a,modal:s=!1}=e,i=gs(t),l=v.useRef(null),[c,d]=v.useState(!1),[f,p]=co({prop:n,defaultProp:r??!1,onChange:a,caller:jf});return u.jsx(Lv,{...i,children:u.jsx(p6,{scope:t,contentId:St(),triggerRef:l,open:f,onOpenChange:p,onOpenToggle:v.useCallback(()=>p(g=>!g),[p]),hasCustomAnchor:c,onCustomAnchorAdd:v.useCallback(()=>d(!0),[]),onCustomAnchorRemove:v.useCallback(()=>d(!1),[]),modal:s,children:o})})},"Popover"),g6="PopoverAnchor",m6=v.forwardRef(uo(function(t,o){const{__scopePopover:n,...r}=t,a=kn(g6,n),s=gs(n),{onCustomAnchorAdd:i,onCustomAnchorRemove:l}=a;return v.useEffect(()=>(i(),()=>l()),[i,l]),u.jsx(xf,{...s,...r,ref:o})},"PopoverAnchor")),x6="PopoverTrigger",b6=v.forwardRef(uo(function(t,o){const{__scopePopover:n,...r}=t,a=kn(x6,n),s=gs(n),i=We(o,a.triggerRef),l=u.jsx(ye.button,{type:"button","aria-haspopup":"dialog","aria-expanded":a.open,"aria-controls":a.open?a.contentId:void 0,"data-state":Uf(a.open),...r,ref:i,onClick:Te(t.onClick,a.onOpenToggle)});return a.hasCustomAnchor?l:u.jsx(xf,{asChild:!0,...s,children:l})},"PopoverTrigger")),py="PopoverPortal",[v6,y6]=fy(py,{forceMount:void 0}),w6=uo(e=>{const{__scopePopover:t,forceMount:o,children:n,container:r}=e,a=kn(py,t);return u.jsx(v6,{scope:t,forceMount:o,children:u.jsx(lo,{present:o||a.open,children:u.jsx(bf,{asChild:!0,container:r,children:n})})})},"PopoverPortal"),ms="PopoverContent",C6=v.forwardRef(uo(function(t,o){const n=y6(ms,t.__scopePopover),{forceMount:r=n.forceMount,...a}=t,s=kn(ms,t.__scopePopover);return u.jsx(lo,{present:r||s.open,children:s.modal?u.jsx(S6,{...a,ref:o}):u.jsx(P6,{...a,ref:o})})},"PopoverContent")),_6=Or("PopoverContent.RemoveScroll"),S6=v.forwardRef(uo(function(t,o){const n=kn(ms,t.__scopePopover),r=v.useRef(null),a=We(o,r),s=v.useRef(!1);return v.useEffect(()=>{const i=r.current;if(i)return Qi(i)},[]),u.jsx(Xa,{as:_6,allowPinchZoom:!0,children:u.jsx(hy,{...t,ref:a,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Te(t.onCloseAutoFocus,i=>{var l;i.preventDefault(),s.current||(l=n.triggerRef.current)==null||l.focus()}),onPointerDownOutside:Te(t.onPointerDownOutside,i=>{const l=i.detail.originalEvent,c=l.button===0&&l.ctrlKey===!0,d=l.button===2||c;s.current=d},{checkForDefaultPrevented:!1}),onFocusOutside:Te(t.onFocusOutside,i=>i.preventDefault(),{checkForDefaultPrevented:!1})})})},"PopoverContentModal")),P6=v.forwardRef(uo(function(t,o){const n=kn(ms,t.__scopePopover),r=v.useRef(!1),a=v.useRef(!1);return u.jsx(hy,{...t,ref:o,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{var i,l;(i=t.onCloseAutoFocus)==null||i.call(t,s),s.defaultPrevented||(r.current||(l=n.triggerRef.current)==null||l.focus(),s.preventDefault()),r.current=!1,a.current=!1},onInteractOutside:s=>{var c,d;(c=t.onInteractOutside)==null||c.call(t,s),s.defaultPrevented||(r.current=!0,s.detail.originalEvent.type==="pointerdown"&&(a.current=!0));const i=s.target;((d=n.triggerRef.current)==null?void 0:d.contains(i))&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&a.current&&s.preventDefault()}})},"PopoverContentNonModal")),hy=v.forwardRef(uo(function(t,o){const{__scopePopover:n,trapFocus:r,onOpenAutoFocus:a,onCloseAutoFocus:s,disableOutsidePointerEvents:i,onEscapeKeyDown:l,onPointerDownOutside:c,onFocusOutside:d,onInteractOutside:f,...p}=t,g=kn(ms,n),x=gs(n);return ty(),u.jsx(ry,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:a,onUnmountAutoFocus:s,children:u.jsx(pf,{asChild:!0,disableOutsidePointerEvents:i,onInteractOutside:f,onEscapeKeyDown:l,onPointerDownOutside:c,onFocusOutside:d,onDismiss:()=>g.onOpenChange(!1),deferPointerDownOutside:!0,children:u.jsx(zv,{"data-state":Uf(g.open),role:"dialog",id:g.contentId,...x,...p,ref:o,style:{...p.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})},"PopoverContentImpl")),T6="PopoverClose",k6=v.forwardRef(uo(function(t,o){const{__scopePopover:n,...r}=t,a=kn(T6,n);return u.jsx(ye.button,{type:"button",...r,ref:o,onClick:Te(t.onClick,()=>a.onOpenChange(!1))})},"PopoverClose")),E6=v.forwardRef(uo(function(t,o){const{__scopePopover:n,...r}=t,a=gs(n);return u.jsx(Bv,{...a,...r,ref:o})},"PopoverArrow"));function Uf(e){return e?"open":"closed"}uo(Uf,"getState");var Jr=h6,Rl=m6,Qr=b6,ea=w6,lr=C6,I6=E6;const cr=({trigger:e,children:t,defaultOpen:o=!1,open:n,onOpenChange:r,modal:a=!1})=>u.jsxs(Jr,{defaultOpen:o,open:n,onOpenChange:r,modal:a,children:[u.jsx(Qr,{asChild:!0,children:e}),t]});cr.displayName="OxPopover";const gy={oxPopoverContent:"_oxPopoverContent_m7c2d_2",oxPopoverArrow:"_oxPopoverArrow_m7c2d_2"},D6=16,ta=h.forwardRef(({className:e,children:t,side:o="bottom",sideOffset:n=6,align:r="center",showArrow:a=!1,dataTestid:s,...i},l)=>u.jsx(ea,{children:u.jsx(lr,{ref:l,asChild:!0,"data-slot":"popover-content","data-testid":s,side:o,sideOffset:n,collisionPadding:D6,align:r,...i,children:u.jsxs(so,{className:$(gy.oxPopoverContent,e),children:[t,a&&u.jsx(I6,{className:gy.oxPopoverArrow,width:12,height:6})]})})}));ta.displayName="OxPopoverContent";const my=`<svg width="1.2em" height="1.2em" stroke-color="currentColor" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24">
|
|
145
|
-
<g class="icon-add-reaction">
|
|
146
|
-
<path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M20.985 12.528a9 9 0 1 0-8.45 8.456M16 19h6m-3-3v6M9 10h.01M15 10h.01M9.5 15c.658.64 1.56 1 2.5 1s1.842-.36 2.5-1" class="Vector"/>
|
|
147
|
-
</g>
|
|
148
|
-
</svg>
|
|
149
|
-
`,Gl={"ox-reaction-button":"_ox-reaction-button_fyj7i_2","ox-reaction-button--add":"_ox-reaction-button--add_fyj7i_2","ox-reaction-button-icon":"_ox-reaction-button-icon_fyj7i_2","ox-reaction-button-emoji":"_ox-reaction-button-emoji_fyj7i_2","ox-reaction-button-count":"_ox-reaction-button-count_fyj7i_2","ox-reaction-button--more":"_ox-reaction-button--more_fyj7i_2"},oa=h.forwardRef(({className:e,variant:t="reaction",emoji:o,count:n,reacted:r=!1,dataTestid:a,...s},i)=>{const l=ve(),c=n===void 0?"":n>99?"99+":String(n),d=t==="more"?`+${c}`:c,f=t==="add"?l("orxata.reaction.add"):t==="more"?l("orxata.reaction.more",{count:n??0}):l("orxata.reaction.reacted",{count:n??0,emoji:o??""});return u.jsxs("button",{ref:i,type:"button","data-slot":"reaction-button","data-testid":a,"data-reacted":r||void 0,"aria-pressed":t==="reaction"?r:void 0,"aria-label":f,className:$(me(Gl,xy({variant:t})),e),...s,children:[t==="add"?u.jsx(ee,{icon:my,className:Gl["ox-reaction-button-icon"],"data-slot":"icon","data-testid":`${a}-icon`}):null,t==="reaction"&&o?u.jsx("span",{className:Gl["ox-reaction-button-emoji"],"data-slot":"emoji",children:o}):null,t!=="add"&&n!==void 0?u.jsx("span",{className:Gl["ox-reaction-button-count"],"data-slot":"count",children:d}):null]})});oa.displayName="OxReactionButton";const xy=Oe("ox-reaction-button",{variants:{variant:{reaction:"",add:"ox-reaction-button--add",more:"ox-reaction-button--more"}},defaultVariants:{variant:"reaction"}}),xs={"ox-reaction-picker":"_ox-reaction-picker_mtnd1_2","ox-reaction-picker-emoji":"_ox-reaction-picker-emoji_mtnd1_2","ox-reaction-picker-more":"_ox-reaction-picker-more_mtnd1_2","ox-reaction-picker-separator":"_ox-reaction-picker-separator_mtnd1_2","ox-reaction-picker-more-icon":"_ox-reaction-picker-more-icon_mtnd1_2"},qf=h.forwardRef(({className:e,emojis:t=M6,showMore:o=!0,onReact:n,onShowMore:r,dataTestid:a,...s},i)=>{const l=ve(),c=t.map(w=>typeof w=="string"?{emoji:w,label:void 0}:w),d=h.useRef(null),f=h.useRef([]),[p,g]=h.useState(0),x=h.useRef(!1),m=w=>{var _;const P=f.current.filter(T=>!!T);if(P.length===0)return;const S=(w%P.length+P.length)%P.length;g(S),(_=P[S])==null||_.focus()},b=w=>{const P=f.current.filter(Boolean).length-1,S={ArrowRight:x.current?p+1:0,ArrowLeft:x.current?p-1:P,Home:0,End:P}[w.key];S!==void 0&&(w.preventDefault(),m(S))},y=w=>{g(w),x.current=!0},C=w=>{var S;const P=w.relatedTarget;P instanceof Node&&((S=d.current)!=null&&S.contains(P))||(x.current=!1)};return u.jsxs("div",{ref:w=>{d.current=w,typeof i=="function"?i(w):i&&(i.current=w)},role:"toolbar","aria-label":l("orxata.reaction.react"),"data-slot":"reaction-picker","data-testid":a,className:$(xs["ox-reaction-picker"],e),onKeyDown:b,onBlur:C,...s,children:[c.map((w,P)=>u.jsx("button",{ref:S=>{f.current[P]=S},type:"button",className:xs["ox-reaction-picker-emoji"],"data-slot":"emoji","data-testid":`${a}-emoji-${P}`,"aria-label":w.label||void 0,tabIndex:P===p?0:-1,onClick:()=>n==null?void 0:n(w.emoji),onFocus:()=>y(P),children:w.emoji},w.emoji)),o?u.jsxs(u.Fragment,{children:[u.jsx("span",{className:xs["ox-reaction-picker-separator"],role:"separator","aria-orientation":"vertical"}),u.jsx("button",{ref:w=>{f.current[c.length]=w},type:"button",className:xs["ox-reaction-picker-more"],"data-slot":"more","data-testid":`${a}-more`,"aria-label":l("orxata.reaction.showMore"),tabIndex:c.length===p?0:-1,onClick:()=>r==null?void 0:r(),onFocus:()=>y(c.length),children:u.jsx(ee,{icon:my,className:xs["ox-reaction-picker-more-icon"],"data-slot":"icon"})})]}):null]})});qf.displayName="OxReactionPicker";const M6=["👍","❤️","😂","🎉","😮","🙏"],jl={"ox-reaction-bar":"_ox-reaction-bar_dsp0r_2","ox-reaction-bar-overflow":"_ox-reaction-bar-overflow_dsp0r_2","ox-reaction-bar-overflow-title":"_ox-reaction-bar-overflow-title_dsp0r_2","ox-reaction-bar-overflow-list":"_ox-reaction-bar-overflow-list_dsp0r_2"},by=(e,t)=>t.total-e.total||e.reactionType.localeCompare(t.reactionType),O6=(e,t)=>{const o=[...e].sort(by),n=Math.max(0,Math.trunc(t));if(o.length<=n)return{visible:o,hidden:[]};const r=o.slice(0,n),a=o.slice(n),s=r.some(l=>l.iReact)?void 0:a.find(l=>l.iReact);if(!s||n===0)return{visible:r,hidden:a};const i=r[n-1];return{visible:[...r.slice(0,n-1),s],hidden:[...a.filter(l=>l!==s),i].sort(by)}},A6=6,N6=16,vy=h.forwardRef(({className:e,reactions:t,max:o=3,emojis:n,onReact:r,onShowMore:a,dataTestid:s,...i},l)=>{const c=ve(),[d,f]=h.useState(!1),p=O6(t,o),g=x=>{f(!1),r==null||r(x)};return u.jsxs("div",{ref:l,"data-slot":"reaction-bar","data-testid":s,className:$(jl["ox-reaction-bar"],e),...i,children:[p.visible.map(x=>u.jsx(oa,{emoji:x.reactionType,count:x.total,reacted:x.iReact,dataTestid:`${s}-reaction-${x.reactionType}`,onClick:()=>r==null?void 0:r(x.reactionType)},x.reactionType)),p.hidden.length>0?u.jsx(cr,{trigger:u.jsx(oa,{variant:"more",count:p.hidden.length,dataTestid:`${s}-more`}),children:u.jsx(ta,{showArrow:!0,dataTestid:`${s}-overflow`,children:u.jsxs("div",{className:jl["ox-reaction-bar-overflow"],"data-slot":"reaction-overflow","data-testid":`${s}-overflow-panel`,children:[u.jsx("p",{className:jl["ox-reaction-bar-overflow-title"],children:c("orxata.reaction.moreTitle")}),u.jsx("div",{className:jl["ox-reaction-bar-overflow-list"],children:p.hidden.map(x=>u.jsx(oa,{emoji:x.reactionType,count:x.total,reacted:x.iReact,dataTestid:`${s}-hidden-${x.reactionType}`,onClick:()=>r==null?void 0:r(x.reactionType)},x.reactionType))})]})})}):null,u.jsx(cr,{open:d,onOpenChange:f,trigger:u.jsx(oa,{variant:"add",dataTestid:`${s}-add`}),children:u.jsx(ea,{children:u.jsx(lr,{sideOffset:A6,collisionPadding:N6,children:u.jsx(qf,{emojis:n,dataTestid:`${s}-picker`,onReact:g,onShowMore:()=>{f(!1),a==null||a()}})})})})]})});vy.displayName="OxReactionBar";const $6={"ox-player-pill":"_ox-player-pill_wzduq_2","ox-player-pill--running":"_ox-player-pill--running_wzduq_2","ox-player-pill--paused":"_ox-player-pill--paused_wzduq_2","ox-player-pill--stopped":"_ox-player-pill--stopped_wzduq_2"},yy=h.createContext(null),F6="A PlayerPill part has to be rendered inside OxPlayerPill.",Yf=()=>{const e=h.useContext(yy);if(e===null)throw new Error(F6);return e},wy=h.forwardRef(({className:e,state:t="stopped",children:o,dataTestid:n,...r},a)=>{const s=h.useMemo(()=>({state:t,dataTestid:n}),[t,n]);return u.jsx(yy.Provider,{value:s,children:u.jsx("div",{ref:a,className:$(me($6,Ty({state:t})),e),"data-slot":"player-pill","data-testid":n,"data-state":t,...r,children:o})})});wy.displayName="OxPlayerPill";const Cy=`<svg width="1.2em" height="1.2em" stroke-color="currentColor" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24">
|
|
150
|
-
<g>
|
|
151
|
-
<path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M17 5H7a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V7a2 2 0 0 0-2-2Z"/>
|
|
152
|
-
</g>
|
|
153
|
-
</svg>
|
|
154
|
-
`,Kf={"ox-player-pill-action":"_ox-player-pill-action_x1ub7_2","ox-player-pill-action-icon":"_ox-player-pill-action-icon_x1ub7_2","ox-player-pill-action--pause":"_ox-player-pill-action--pause_x1ub7_2"},L6={start:["stopped"],pause:["running"],resume:["paused"],stop:["running","paused"]},z6={start:zl,pause:V1,resume:zl,stop:Cy},B6={start:"default",pause:null,resume:"success",stop:"destructive"},H6={start:"orxata.playerPill.action.start",pause:"orxata.playerPill.action.pause",resume:"orxata.playerPill.action.resume",stop:"orxata.playerPill.action.stop"},_y=h.forwardRef(({className:e,action:t,...o},n)=>{const r=ve(),{state:a,dataTestid:s}=Yf();return L6[t].includes(a)?u.jsx(jt,{ref:n,variant:B6[t],size:null,"aria-label":r(H6[t]),className:$(Kf["ox-player-pill-action"],t==="pause"&&Kf["ox-player-pill-action--pause"],e),"data-testid":`${s}-${t}`,"data-action":t,...o,children:u.jsx(ee,{icon:z6[t],className:Kf["ox-player-pill-action-icon"]})}):null});_y.displayName="OxPlayerPillAction";const Ul={"ox-player-pill-status-dot":"_ox-player-pill-status-dot_14jme_2","ox-player-pill-status-dot--running":"_ox-player-pill-status-dot--running_14jme_2","ox-player-pill-status-dot--paused":"_ox-player-pill-status-dot--paused_14jme_2","ox-player-pill-status-icon":"_ox-player-pill-status-icon_14jme_2"},Sy=h.forwardRef(({className:e,...t},o)=>{const n=ve(),{state:r,dataTestid:a}=Yf();if(r==="stopped")return u.jsx(ee,{icon:Ff,className:$(Ul["ox-player-pill-status-icon"],e),"data-slot":"icon","data-testid":`${a}-status`,"aria-hidden":"true"});const s=r==="running";return u.jsx("span",{ref:o,className:$(Ul["ox-player-pill-status-dot"],s?Ul["ox-player-pill-status-dot--running"]:Ul["ox-player-pill-status-dot--paused"],e),"data-slot":"icon","data-testid":`${a}-status`,role:"img","aria-label":n(s?"orxata.playerPill.status.running":"orxata.playerPill.status.paused"),...t})});Sy.displayName="OxPlayerPillStatus";const V6={"ox-player-pill-time":"_ox-player-pill-time_u54ur_2"},W6=e=>{const t=Math.max(0,Math.floor(e)),o=n=>String(n).padStart(2,"0");return[o(Math.floor(t/3600)),o(Math.floor(t/60)%60),o(t%60)].join(":")},R6=e=>{if(e!==void 0)return e instanceof Date?e.getTime():e},G6=({seconds:e,startedAt:t,running:o})=>{const n=R6(t),r=o&&n!==void 0,[a,s]=h.useState(()=>Date.now());return h.useEffect(()=>{if(!r||n===void 0)return;s(Date.now());let i;const l=()=>{i=setTimeout(()=>{s(Date.now()),l()},1e3-(Date.now()-n)%1e3)};return l(),()=>clearTimeout(i)},[r,n]),!r||n===void 0?e:e+Math.max(0,Math.floor((a-n)/1e3))},Py=h.forwardRef(({className:e,seconds:t=0,startedAt:o,children:n,...r},a)=>{const s=ve(),{state:i,dataTestid:l}=Yf(),c=G6({seconds:t,startedAt:o,running:i==="running"}),d=i==="stopped"?s("orxata.playerPill.idle"):W6(c);return u.jsx("span",{ref:a,className:$(V6["ox-player-pill-time"],e),"data-slot":"label","data-testid":`${l}-time`,"aria-live":"off",...r,children:n??d})});Py.displayName="OxPlayerPillTime";const Ty=Oe("ox-player-pill",{variants:{state:{running:"ox-player-pill--running",paused:"ox-player-pill--paused",stopped:"ox-player-pill--stopped"}},defaultVariants:{state:"stopped"}}),ky={oxPointMarker:"_oxPointMarker_1u39i_2","ox-point-marker-dot":"_ox-point-marker-dot_1u39i_2","ox-point-marker-dot--category-1":"_ox-point-marker-dot--category-1_1u39i_2","ox-point-marker-dot--category-2":"_ox-point-marker-dot--category-2_1u39i_2","ox-point-marker-dot--category-3":"_ox-point-marker-dot--category-3_1u39i_2","ox-point-marker-dot--category-4":"_ox-point-marker-dot--category-4_1u39i_2","ox-point-marker-dot--category-5":"_ox-point-marker-dot--category-5_1u39i_2","ox-point-marker-dot--category-6":"_ox-point-marker-dot--category-6_1u39i_2","ox-point-marker-dot--category-7":"_ox-point-marker-dot--category-7_1u39i_2","ox-point-marker-dot--category-8":"_ox-point-marker-dot--category-8_1u39i_2","ox-point-marker-dot--category-9":"_ox-point-marker-dot--category-9_1u39i_2","ox-point-marker-dot--category-10":"_ox-point-marker-dot--category-10_1u39i_2","ox-point-marker-dot--category-11":"_ox-point-marker-dot--category-11_1u39i_2","ox-point-marker-dot--category-12":"_ox-point-marker-dot--category-12_1u39i_2","ox-point-marker-dot--category-13":"_ox-point-marker-dot--category-13_1u39i_2","ox-point-marker-dot--category-14":"_ox-point-marker-dot--category-14_1u39i_2","ox-point-marker-dot--category-15":"_ox-point-marker-dot--category-15_1u39i_2","ox-point-marker-dot--category-16":"_ox-point-marker-dot--category-16_1u39i_2","ox-point-marker-dot--category-17":"_ox-point-marker-dot--category-17_1u39i_2","ox-point-marker-dot--category-18":"_ox-point-marker-dot--category-18_1u39i_2","ox-point-marker-dot--category-19":"_ox-point-marker-dot--category-19_1u39i_2"},Ey=h.forwardRef(({className:e,color:t="category-1",dataTestid:o,...n},r)=>u.jsx("span",{ref:r,"data-slot":"point-marker","data-testid":o,className:$(ky.oxPointMarker,e),...n,children:u.jsx("span",{"data-slot":"point-marker-center","data-testid":`${o}-center`,className:me(ky,Iy({color:t}))})}));Ey.displayName="OxPointMarker";const Iy=Oe("ox-point-marker-dot",{variants:{color:{"category-1":"ox-point-marker-dot--category-1","category-2":"ox-point-marker-dot--category-2","category-3":"ox-point-marker-dot--category-3","category-4":"ox-point-marker-dot--category-4","category-5":"ox-point-marker-dot--category-5","category-6":"ox-point-marker-dot--category-6","category-7":"ox-point-marker-dot--category-7","category-8":"ox-point-marker-dot--category-8","category-9":"ox-point-marker-dot--category-9","category-10":"ox-point-marker-dot--category-10","category-11":"ox-point-marker-dot--category-11","category-12":"ox-point-marker-dot--category-12","category-13":"ox-point-marker-dot--category-13","category-14":"ox-point-marker-dot--category-14","category-15":"ox-point-marker-dot--category-15","category-16":"ox-point-marker-dot--category-16","category-17":"ox-point-marker-dot--category-17","category-18":"ox-point-marker-dot--category-18","category-19":"ox-point-marker-dot--category-19"}},defaultVariants:{color:"category-1"}}),j6={"ox-tag":"_ox-tag_1q4yb_2","ox-tag--sm":"_ox-tag--sm_1q4yb_2","ox-tag--md":"_ox-tag--md_1q4yb_2","ox-tag--brand":"_ox-tag--brand_1q4yb_2","ox-tag--zinc":"_ox-tag--zinc_1q4yb_2","ox-tag--red":"_ox-tag--red_1q4yb_2","ox-tag--orange":"_ox-tag--orange_1q4yb_2","ox-tag--amber":"_ox-tag--amber_1q4yb_2","ox-tag--yellow":"_ox-tag--yellow_1q4yb_2","ox-tag--lime":"_ox-tag--lime_1q4yb_2","ox-tag--green":"_ox-tag--green_1q4yb_2","ox-tag--teal":"_ox-tag--teal_1q4yb_2","ox-tag--sky":"_ox-tag--sky_1q4yb_2","ox-tag--blue":"_ox-tag--blue_1q4yb_2","ox-tag--indigo":"_ox-tag--indigo_1q4yb_2","ox-tag--violet":"_ox-tag--violet_1q4yb_2","ox-tag--purple":"_ox-tag--purple_1q4yb_2","ox-tag--fuchsia":"_ox-tag--fuchsia_1q4yb_2","ox-tag--pink":"_ox-tag--pink_1q4yb_2","ox-tag--soft":"_ox-tag--soft_1q4yb_2","ox-tag--solid":"_ox-tag--solid_1q4yb_2"},Dy=h.forwardRef(({className:e,color:t="brand",variant:o="soft",size:n="sm",dataTestid:r,...a},s)=>u.jsx("span",{ref:s,"data-slot":"tag","data-testid":r,className:$(me(j6,My({color:t,variant:o,size:n})),e),...a}));Dy.displayName="OxTag";const My=Oe("ox-tag",{variants:{color:{brand:"ox-tag--brand",zinc:"ox-tag--zinc",red:"ox-tag--red",orange:"ox-tag--orange",amber:"ox-tag--amber",yellow:"ox-tag--yellow",lime:"ox-tag--lime",green:"ox-tag--green",teal:"ox-tag--teal",sky:"ox-tag--sky",blue:"ox-tag--blue",indigo:"ox-tag--indigo",violet:"ox-tag--violet",purple:"ox-tag--purple",fuchsia:"ox-tag--fuchsia",pink:"ox-tag--pink"},variant:{soft:"ox-tag--soft",solid:"ox-tag--solid"},size:{sm:"ox-tag--sm",md:"ox-tag--md"}},defaultVariants:{color:"brand",variant:"soft",size:"sm"}}),U6={"ox-ai-tag":"_ox-ai-tag_1c51r_2","ox-ai-tag--sm":"_ox-ai-tag--sm_1c51r_2","ox-ai-tag--md":"_ox-ai-tag--md_1c51r_2","ox-ai-tag--ai":"_ox-ai-tag--ai_1c51r_2","ox-ai-tag--muted":"_ox-ai-tag--muted_1c51r_2","ox-ai-tag--outline":"_ox-ai-tag--outline_1c51r_2","ox-ai-tag--filled":"_ox-ai-tag--filled_1c51r_2"},Oy=h.forwardRef(({className:e,color:t="ai",variant:o="outline",size:n="sm",dataTestid:r,...a},s)=>u.jsx("span",{ref:s,"data-slot":"ai-tag","data-testid":r,className:$(me(U6,Ay({color:t,variant:o,size:n})),e),...a}));Oy.displayName="OxAiTag";const Ay=Oe("ox-ai-tag",{variants:{color:{ai:"ox-ai-tag--ai",muted:"ox-ai-tag--muted"},variant:{outline:"ox-ai-tag--outline",filled:"ox-ai-tag--filled"},size:{sm:"ox-ai-tag--sm",md:"ox-ai-tag--md"}},defaultVariants:{color:"ai",variant:"outline",size:"sm"}}),q6={"ox-brand-logo":"_ox-brand-logo_51b7b_2","ox-brand-logo--md":"_ox-brand-logo--md_51b7b_2","ox-brand-logo--lg":"_ox-brand-logo--lg_51b7b_2","ox-brand-logo--dark":"_ox-brand-logo--dark_51b7b_2","ox-brand-logo--light":"_ox-brand-logo--light_51b7b_2"},Y6={viewBox:"0 0 113.6 32",groups:[{transform:"translate(8.738 5.8249)",paths:["M10.2097 20.3904C10.0809 20.3905 9.95274 20.3736 9.82842 20.3402L4.67417 18.959C3.99876 18.7769 3.38297 18.4207 2.88834 17.926C2.3937 17.4313 2.03755 16.8155 1.85544 16.1401L0.134908 9.71856C-0.0453573 9.04251 -0.0449579 8.33098 0.136042 7.65512C0.317043 6.97926 0.672315 6.36277 1.16633 5.86728L5.86706 1.16619C6.36253 0.672377 6.9789 0.317218 7.65461 0.136188C8.33031 -0.0448411 9.0417 -0.0454036 9.71769 0.134556L16.1394 1.85503C16.8148 2.03727 17.4306 2.39349 17.9252 2.88814C18.4199 3.38279 18.7762 3.99854 18.9584 4.67393L20.3397 9.82805C20.3896 10.0145 20.4024 10.2089 20.3772 10.4003C20.352 10.5916 20.2894 10.7762 20.1929 10.9433C20.0964 11.1105 19.9679 11.257 19.8148 11.3745C19.6616 11.492 19.4868 11.5782 19.3004 11.6281C19.114 11.6781 18.9196 11.6908 18.7282 11.6657C18.5368 11.6405 18.3523 11.5779 18.1851 11.4814C18.018 11.3849 17.8715 11.2564 17.754 11.1033C17.6365 10.9502 17.5503 10.7754 17.5003 10.589L16.1191 5.43484C16.0712 5.25746 15.9775 5.09575 15.8476 4.96585C15.7176 4.83595 15.5559 4.74239 15.3785 4.69452L8.95699 2.97405C8.77951 2.92678 8.59272 2.9269 8.4153 2.97441C8.23788 3.02191 8.07604 3.11513 7.94593 3.24476L3.24496 7.94586C3.11528 8.07594 3.022 8.23778 2.97445 8.41519C2.9269 8.59261 2.92675 8.7794 2.97399 8.95689L4.69474 15.3785C4.74255 15.5558 4.83608 15.7175 4.96595 15.8473C5.09583 15.9772 5.2575 16.0707 5.43484 16.1185L10.5891 17.4997C10.9332 17.5923 11.232 17.8067 11.4298 18.103C11.6277 18.3993 11.7112 18.7575 11.6648 19.1107C11.6184 19.464 11.4453 19.7884 11.1776 20.0237C10.91 20.2589 10.566 20.3888 10.2097 20.3894V20.3904Z"]},{transform:"translate(21.0603 18.2629)",paths:["M1.45604 7.64056C1.16807 7.64054 0.886589 7.55433 0.647153 7.39284C0.407717 7.23134 0.221075 7.00181 0.110861 6.73326C0.000646557 6.46472 -0.0281965 6.16922 0.0279525 5.88412C0.0841015 5.59902 0.222717 5.33712 0.426307 5.13155L5.08336 0.430452C5.21858 0.29397 5.37911 0.18571 5.55578 0.111853C5.73246 0.0379961 5.92177 -1.16436e-05 6.113 2.67568e-09C6.30422 1.1649e-05 6.49361 0.0380435 6.67028 0.111922C6.84694 0.1858 7.00743 0.29408 7.14264 0.430578C7.27785 0.567076 7.38513 0.729117 7.4583 0.907453C7.53147 1.08579 7.5691 1.27693 7.56909 1.46995C7.56908 1.66298 7.53143 1.85411 7.45824 2.03244C7.38505 2.21077 7.27774 2.3728 7.14252 2.50928L2.48526 7.21012C2.35026 7.34678 2.18986 7.45516 2.01323 7.52903C1.8366 7.60289 1.64723 7.6408 1.45604 7.64056V7.64056Z"]},{transform:"translate(35.7373 10.9077)",paths:["M4.31746 4.26042L4.32839 4.26318C5.83056 4.59844 7.77731 5.22977 7.73875 7.33547C7.75363 7.7692 7.66138 8.19985 7.47028 8.58862C7.27919 8.97739 6.99528 9.31206 6.64412 9.56246C5.85044 10.1205 4.89896 10.4038 3.93231 10.3701C2.06493 10.3701 0.671232 9.56045 0.0164275 8.20788C-0.00196488 8.16879 -0.00502033 8.12412 0.00780259 8.08283C0.0206255 8.04153 0.0484006 8.00664 0.0856089 7.98513L1.59497 7.10066C1.61398 7.08918 1.63506 7.0816 1.65698 7.07834C1.6789 7.07508 1.70127 7.07621 1.72276 7.08167C1.74425 7.08712 1.76444 7.0968 1.78222 7.11014C1.8 7.12348 1.81501 7.14023 1.82638 7.15943C1.82887 7.1647 1.83209 7.16997 1.83458 7.1755C2.00885 7.58025 2.30588 7.91872 2.68292 8.14216C3.05995 8.3656 3.49749 8.46247 3.93256 8.41883C5.04562 8.41883 5.59151 8.0444 5.59151 7.31387C5.59151 6.68229 4.7705 6.30936 3.7368 6.05296C2.27294 5.67853 0.301288 5.08738 0.340347 3.0186C0.326172 2.59904 0.410799 2.18207 0.58725 1.80192C0.763701 1.42178 1.02696 1.0893 1.35541 0.831783C2.27929 0.155482 3.43146 -0.122747 4.55853 0.0582792C5.6856 0.239305 6.69527 0.864763 7.36557 1.79711C7.39028 1.8316 7.4145 1.86634 7.43821 1.90133C7.44944 1.92081 7.45679 1.94232 7.45978 1.96465C7.46276 1.98697 7.46135 2.00968 7.45565 2.03146C7.44994 2.05324 7.44002 2.07367 7.42649 2.09159C7.41296 2.10951 7.39604 2.12456 7.37675 2.13588L7.37401 2.13739L5.9082 2.96611C5.86864 2.98928 5.82159 2.99566 5.77737 2.98384C5.73315 2.97202 5.69538 2.94298 5.67236 2.90308V2.90308C5.50227 2.5881 5.24587 2.32928 4.93383 2.15758C4.6218 1.98589 4.26736 1.90861 3.91294 1.93498C3.11259 1.93498 2.48789 2.28983 2.48789 2.97917C2.48789 3.62833 3.30514 3.96308 4.31794 4.25841","M11.5799 6.09462C11.5572 6.09478 11.5348 6.09947 11.514 6.1084C11.4931 6.11734 11.4742 6.13035 11.4584 6.14669C11.4425 6.16302 11.43 6.18236 11.4215 6.2036C11.4131 6.22483 11.409 6.24754 11.4093 6.27041C11.4092 6.28656 11.4114 6.30263 11.416 6.31812C11.7954 7.67421 12.9467 8.42131 14.485 8.42131C14.947 8.44645 15.4083 8.35987 15.8305 8.16877C16.2527 7.97768 16.6236 7.68759 16.9124 7.32263C16.9374 7.28907 16.9738 7.2659 17.0145 7.25748C17.0553 7.24906 17.0978 7.25598 17.1338 7.27692L18.58 8.13076C18.6191 8.15408 18.6473 8.1921 18.6586 8.23646C18.6699 8.28082 18.6633 8.32788 18.6402 8.36732C18.6378 8.37171 18.6351 8.37591 18.632 8.37987C18.1581 9.03784 17.5281 9.56514 16.7998 9.91339C16.0715 10.2616 15.2682 10.4197 14.4636 10.3731C13.7585 10.402 13.0548 10.2879 12.3942 10.0375C11.7336 9.78701 11.1295 9.40534 10.6176 8.91502C9.68094 7.91459 9.15748 6.59125 9.15392 5.21473C9.15036 3.83822 9.66699 2.51214 10.5985 1.50678C11.0788 1.00956 11.6569 0.619399 12.2956 0.361441C12.9344 0.103483 13.6196 -0.0165552 14.3071 0.0090602C14.9666 -0.00867607 15.622 0.117736 16.2286 0.379631C16.8351 0.641526 17.3784 1.03271 17.8212 1.52637C18.7382 2.52746 19.235 3.84849 19.207 5.21166C19.2047 5.45827 19.1858 5.70443 19.1505 5.94846C19.1447 5.98956 19.1244 6.02718 19.0934 6.05443C19.0624 6.08168 19.0227 6.09675 18.9816 6.09688L11.5799 6.09462ZM16.8704 4.36059C16.893 4.36036 16.9154 4.35563 16.9362 4.34667C16.957 4.33771 16.9759 4.3247 16.9918 4.30837C17.0076 4.29205 17.0201 4.27274 17.0286 4.25153C17.037 4.23033 17.0413 4.20765 17.041 4.1848C17.0411 4.17072 17.0392 4.1567 17.0356 4.14311C16.9148 3.50474 16.5715 2.93114 16.0679 2.52628C15.5642 2.12141 14.9336 1.91208 14.2902 1.93621C13.6272 1.90048 12.973 2.10207 12.4429 2.50547C11.9127 2.90886 11.5406 3.48818 11.3921 4.14135C11.3862 4.16337 11.3846 4.18634 11.3875 4.20896C11.3904 4.23158 11.3977 4.25341 11.4089 4.27318C11.4202 4.29296 11.4352 4.31031 11.4531 4.32423C11.471 4.33815 11.4914 4.34837 11.5133 4.35431C11.5275 4.35812 11.5421 4.36015 11.5568 4.36034L16.8704 4.36059Z","M24.8688 4.26012L24.8797 4.26289C26.3821 4.59814 28.3291 5.22947 28.29 7.33517C28.3048 7.76889 28.2125 8.19951 28.0215 8.58827C27.8304 8.97702 27.5465 9.3117 27.1954 9.56217C26.4017 10.1202 25.4503 10.4035 24.4836 10.3698C22.6157 10.3698 21.2223 9.56016 20.5672 8.20759C20.5488 8.16847 20.5457 8.12377 20.5586 8.08245C20.5715 8.04113 20.5994 8.00626 20.6367 7.98484L22.1455 7.10037C22.1645 7.08891 22.1855 7.08133 22.2074 7.07808C22.2292 7.07483 22.2515 7.07597 22.273 7.08143C22.2944 7.08689 22.3145 7.09656 22.3322 7.1099C22.35 7.12323 22.3649 7.13996 22.3762 7.15913C22.3794 7.16427 22.3822 7.16964 22.3847 7.1752C22.559 7.58013 22.8561 7.91873 23.2334 8.14218C23.6106 8.36563 24.0484 8.4624 24.4836 8.41853C25.5957 8.41853 26.1426 8.0441 26.1426 7.31358C26.1426 6.68199 25.3228 6.30907 24.2878 6.05267C22.824 5.67824 20.8526 5.08708 20.8914 3.0183C20.8773 2.59877 20.9619 2.18184 21.1383 1.8017C21.3147 1.42157 21.5779 1.08907 21.9062 0.831488C22.8301 0.154976 23.9823 -0.123428 25.1095 0.0575072C26.2366 0.238443 27.2465 0.863901 27.9169 1.79632C27.9416 1.83097 27.9659 1.86596 27.9897 1.90129C28.0009 1.92086 28.0083 1.94246 28.0112 1.96487C28.0141 1.98728 28.0126 2.01005 28.0068 2.03188C28.001 2.0537 27.991 2.07417 27.9774 2.09209C27.9637 2.11002 27.9467 2.12505 27.9273 2.13634H27.9251L26.4597 2.96506C26.4401 2.97658 26.4185 2.98408 26.396 2.98714C26.3736 2.9902 26.3507 2.98877 26.3287 2.98292C26.3068 2.97706 26.2863 2.9669 26.2682 2.95303C26.2502 2.93915 26.235 2.92182 26.2237 2.90203V2.90203C26.0536 2.58708 25.7972 2.32826 25.4853 2.15657C25.1733 1.98487 24.8189 1.90758 24.4645 1.93393C23.6641 1.93393 23.0394 2.28878 23.0394 2.97812C23.0394 3.62728 23.8564 3.96203 24.869 4.25736","M38.155 0.262678H39.9214C39.9666 0.262678 40.0099 0.280801 40.0419 0.313062C40.0739 0.345322 40.0918 0.389076 40.0918 0.434699V9.94312C40.0919 9.96573 40.0874 9.98812 40.0789 10.009C40.0703 10.0299 40.0578 10.0489 40.042 10.0649C40.0261 10.0809 40.0073 10.0936 39.9866 10.1023C39.9659 10.1109 39.9438 10.1154 39.9214 10.1154H38.155C38.1326 10.1154 38.1104 10.1109 38.0898 10.1023C38.0691 10.0936 38.0502 10.0809 38.0344 10.0649C38.0186 10.0489 38.006 10.0299 37.9975 10.009C37.9889 9.98812 37.9845 9.96573 37.9846 9.94312V9.18471C37.9846 9.15014 37.9744 9.11636 37.9552 9.08777C37.9359 9.05918 37.9085 9.03713 37.8766 9.02449C37.8447 9.01184 37.8098 9.00921 37.7765 9.01691C37.7431 9.02462 37.7128 9.04232 37.6895 9.06769C37.2963 9.5032 36.8127 9.84582 36.2733 10.0711C35.7339 10.2965 35.1519 10.399 34.5687 10.3713C33.9238 10.3808 33.2843 10.2522 32.6921 9.99415C32.1 9.73609 31.5687 9.35435 31.1333 8.87407C30.2167 7.86982 29.7078 6.55428 29.7078 5.18878C29.7078 3.82329 30.2167 2.50775 31.1333 1.5035C31.5686 1.02307 32.0999 0.641201 32.692 0.383047C33.2842 0.124894 33.9238 -0.00368763 34.5687 0.00577459C35.1508 -0.0211836 35.7318 0.0803945 36.2711 0.303421C36.8103 0.526447 37.2948 0.865551 37.6908 1.29707C37.7141 1.32231 37.7444 1.33986 37.7778 1.34744C37.8112 1.35502 37.846 1.35227 37.8778 1.33955C37.9096 1.32684 37.9369 1.30475 37.9561 1.27616C37.9752 1.24757 37.9855 1.21382 37.9853 1.17929V0.432691C37.9853 0.387068 38.0033 0.343314 38.0353 0.311054C38.0672 0.278793 38.1106 0.260668 38.1558 0.260668L38.155 0.262678ZM34.9021 8.34068C35.3103 8.352 35.7165 8.27918 36.0959 8.12668C36.4753 7.97417 36.8198 7.74518 37.1086 7.4537C37.3976 7.15488 37.6242 6.80057 37.7751 6.41174C37.9259 6.02291 37.9979 5.60747 37.9868 5.19004C37.9998 4.77492 37.9286 4.36151 37.7776 3.97517C37.6266 3.58884 37.3989 3.23775 37.1086 2.94346C36.5185 2.36248 35.7268 2.03729 34.9025 2.03729C34.0782 2.03729 33.2865 2.36248 32.6964 2.94346C32.406 3.23772 32.1783 3.58881 32.0273 3.97515C31.8763 4.36149 31.8051 4.77492 31.8182 5.19004C31.8071 5.60747 31.8791 6.02291 32.0299 6.41174C32.1808 6.80058 32.4074 7.15489 32.6964 7.4537C32.9851 7.74517 33.3296 7.97416 33.709 8.12667C34.0883 8.27917 34.4944 8.35199 34.9026 8.34068","M57.0919 4.006V9.94214C57.0919 9.98779 57.0739 10.0316 57.042 10.0639C57.01 10.0962 56.9667 10.1143 56.9215 10.1144H55.1551C55.1099 10.1144 55.0665 10.0963 55.0346 10.064C55.0026 10.0318 54.9846 9.98802 54.9846 9.94239V4.14136C54.9846 2.78151 54.2632 1.99398 53.0912 1.99398C51.7831 1.99398 50.9633 2.86112 50.9633 4.59515V9.94063C50.9633 9.98626 50.9453 10.03 50.9134 10.0623C50.8814 10.0945 50.8381 10.1127 50.7929 10.1127H49.0265C48.9813 10.1127 48.9379 10.0945 48.906 10.0623C48.874 10.03 48.856 9.98626 48.856 9.94063V9.94063V4.14186C48.856 2.78201 48.1928 1.99448 47.0212 1.99448C45.7524 1.99448 44.8551 2.88096 44.8551 4.59565V9.94114C44.855 9.98681 44.8369 10.0306 44.8048 10.0628C44.7728 10.095 44.7294 10.1132 44.6842 10.1132H42.9178C42.8954 10.1132 42.8732 10.1088 42.8524 10.1001C42.8317 10.0915 42.8129 10.0789 42.797 10.0629C42.7812 10.0469 42.7686 10.0279 42.76 10.007C42.7514 9.98615 42.7469 9.96376 42.7469 9.94114V9.94114V0.433976C42.7469 0.411352 42.7514 0.388957 42.76 0.368069C42.7686 0.34718 42.7812 0.328208 42.797 0.312234C42.8129 0.296261 42.8317 0.283598 42.8524 0.274971C42.8732 0.266344 42.8954 0.261921 42.9178 0.261954H44.6842C44.7294 0.261954 44.7728 0.280061 44.8048 0.312307C44.8369 0.344553 44.855 0.388306 44.8551 0.433976V0.433976V0.936229C44.855 0.971014 44.8654 1.005 44.8849 1.03366C44.9045 1.06231 44.9322 1.08427 44.9644 1.0966C44.9967 1.10893 45.0318 1.11106 45.0653 1.10268C45.0987 1.09431 45.1289 1.07584 45.1516 1.04974C45.465 0.700414 45.8513 0.425625 46.2825 0.24519C46.7138 0.064754 47.1794 -0.0168348 47.6457 0.00630573C48.164 -0.0215683 48.6805 0.0879946 49.1438 0.324096C49.6071 0.560197 50.001 0.914611 50.2866 1.35209C50.2987 1.37009 50.3143 1.38549 50.3323 1.39742C50.3503 1.40935 50.3705 1.41756 50.3917 1.4216C50.4129 1.42564 50.4347 1.42541 50.4558 1.42094C50.4769 1.41647 50.4969 1.40784 50.5147 1.39554C50.5301 1.38511 50.5436 1.37202 50.5545 1.35687C50.8792 0.908542 51.3104 0.549864 51.8084 0.313853C52.3064 0.0778424 52.8553 -0.027919 53.4044 0.00630573C55.6099 0.00630573 57.0936 1.56329 57.0936 4.00751","M61.4961 6.09465C61.4694 6.09475 61.4432 6.10111 61.4194 6.11322C61.3956 6.12534 61.375 6.14287 61.3591 6.16444C61.3432 6.18601 61.3325 6.21101 61.3279 6.23748C61.3232 6.26394 61.3247 6.29113 61.3323 6.3169C61.7117 7.67298 62.8631 8.42009 64.4014 8.42009C64.8634 8.44518 65.3246 8.35859 65.7468 8.16749C66.169 7.9764 66.5399 7.68633 66.8287 7.32141C66.8537 7.28786 66.89 7.2647 66.9308 7.25628C66.9715 7.24787 67.0139 7.25477 67.0499 7.2757L68.4964 8.12953C68.5157 8.14106 68.5326 8.15632 68.5461 8.17446C68.5596 8.19259 68.5695 8.21323 68.5751 8.23521C68.5807 8.25718 68.5819 8.28005 68.5787 8.30251C68.5755 8.32497 68.568 8.34658 68.5566 8.36609C68.5543 8.37036 68.5511 8.37463 68.5486 8.37865C68.0746 9.03665 67.4445 9.56397 66.7161 9.91223C65.9877 10.2605 65.1843 10.4185 64.3797 10.3718C63.6747 10.4008 62.9712 10.2866 62.3107 10.0362C61.6502 9.78576 61.0462 9.40409 60.5345 8.9138C59.5977 7.91349 59.074 6.5902 59.0703 5.21366C59.0666 3.83713 59.5831 2.51098 60.5146 1.50556C60.9949 1.00834 61.573 0.618178 62.2117 0.36022C62.8505 0.102262 63.5357 -0.0177759 64.2232 0.00783949C64.8827 -0.00987698 65.5381 0.116545 66.1446 0.378439C66.7511 0.640333 67.2943 1.03151 67.7371 1.52515C68.6541 2.52626 69.1508 3.84727 69.1228 5.21043C69.1207 5.45705 69.1018 5.70323 69.0663 5.94724C69.0605 5.98834 69.0403 6.02595 69.0092 6.05321C68.9782 6.08046 68.9385 6.09553 68.8974 6.09566L61.4961 6.09465ZM66.7862 4.36062C66.8088 4.36039 66.8312 4.35566 66.852 4.3467C66.8728 4.33774 66.8917 4.32472 66.9075 4.30839C66.9233 4.29207 66.9358 4.27275 66.9442 4.25155C66.9527 4.23034 66.9569 4.20767 66.9566 4.18483C66.9565 4.17051 66.9547 4.15627 66.9512 4.14239C66.8303 3.504 66.4869 2.93042 65.9832 2.52558C65.4795 2.12073 64.8487 1.91139 64.2053 1.93549C63.5424 1.89971 62.8882 2.10125 62.3581 2.50461C61.828 2.90797 61.4559 3.48725 61.3075 4.14038C61.3015 4.16241 61.3 4.1854 61.3029 4.20804C61.3058 4.23067 61.3131 4.2525 61.3244 4.27228C61.3357 4.29207 61.3507 4.30941 61.3686 4.32332C61.3865 4.33722 61.407 4.34743 61.4289 4.35334C61.4432 4.35711 61.4579 4.35914 61.4727 4.35937L66.7862 4.36062Z"]}]},K6={viewBox:"0 0 32 32",groups:[{transform:"translate(5.8174 5.818)",paths:["M10.1962 20.3636C10.0677 20.3637 9.93965 20.3468 9.8155 20.3135L4.66802 18.9341C3.9935 18.7522 3.37852 18.3964 2.88454 17.9024C2.39056 17.4084 2.03487 16.7934 1.853 16.1189L0.134731 9.70578C-0.0452977 9.03062 -0.0448988 8.32002 0.135864 7.64505C0.316626 6.97009 0.671431 6.3544 1.1648 5.85957L5.85934 1.16465C6.35416 0.671493 6.96972 0.316801 7.64454 0.136009C8.31936 -0.0447822 9.02981 -0.0453439 9.70491 0.134379L16.1182 1.85259C16.7927 2.03459 17.4077 2.39035 17.9017 2.88434C18.3957 3.37834 18.7515 3.99329 18.9335 4.66778L20.3129 9.81513C20.3628 10.0013 20.3755 10.1955 20.3504 10.3866C20.3252 10.5777 20.2627 10.762 20.1663 10.9289C20.0699 11.0959 19.9416 11.2422 19.7887 11.3595C19.6358 11.4769 19.4612 11.5629 19.275 11.6128C19.0888 11.6627 18.8947 11.6755 18.7036 11.6503C18.5125 11.6252 18.3282 11.5626 18.1612 11.4663C17.9943 11.3699 17.848 11.2416 17.7307 11.0887C17.6133 10.9358 17.5272 10.7612 17.4773 10.575L16.0979 5.42769C16.05 5.25055 15.9565 5.08905 15.8267 4.95932C15.697 4.82959 15.5354 4.73616 15.3583 4.68835L8.94522 2.97014C8.76797 2.92293 8.58142 2.92305 8.40424 2.9705C8.22705 3.01794 8.06543 3.11104 7.93548 3.2405L3.24069 7.93541C3.11119 8.06533 3.01803 8.22694 2.97054 8.40413C2.92305 8.58131 2.9229 8.76785 2.97008 8.94512L4.68857 15.3582C4.73632 15.5353 4.82972 15.6968 4.95942 15.8265C5.08913 15.9562 5.25059 16.0496 5.42769 16.0973L10.5752 17.4767C10.9188 17.5692 11.2172 17.7833 11.4148 18.0792C11.6124 18.3752 11.6958 18.7328 11.6495 19.0856C11.6031 19.4384 11.4302 19.7624 11.1629 19.9973C10.8956 20.2322 10.5521 20.362 10.1962 20.3626V20.3636Z"]},{transform:"translate(18.1211 18.2397)",paths:["M1.45413 7.63051C1.16654 7.63049 0.885423 7.5444 0.646302 7.38312C0.407181 7.22183 0.220784 6.9926 0.110715 6.72441C0.000645707 6.45622 -0.0281594 6.1611 0.0279158 5.87638C0.083991 5.59165 0.222424 5.33011 0.425747 5.1248L5.07667 0.429886C5.21172 0.293584 5.37203 0.185466 5.54848 0.111706C5.72492 0.0379461 5.91399 -1.16283e-05 6.10496 2.67216e-09C6.29593 1.16337e-05 6.48507 0.0379935 6.6615 0.111775C6.83794 0.185556 6.99822 0.293694 7.13325 0.430012C7.26828 0.56633 7.37542 0.728158 7.44849 0.90626C7.52156 1.08436 7.55915 1.27525 7.55913 1.46802C7.55912 1.66079 7.52153 1.85167 7.44843 2.02977C7.37534 2.20786 7.26817 2.36968 7.13313 2.50598L2.48199 7.20064C2.34717 7.33712 2.18698 7.44535 2.01058 7.51913C1.83418 7.5929 1.64506 7.63075 1.45413 7.63051V7.63051Z"]}]},Ny=h.forwardRef(({className:e,type:t="full",color:o="dark",size:n="md",dataTestid:r,children:a,...s},i)=>{const l=t==="mark"?K6:Y6;return u.jsxs("svg",{ref:i,className:$(me(q6,$y({type:t,color:o,size:n})),e),"data-slot":"brand-logo","data-testid":r,viewBox:l.viewBox,xmlns:"http://www.w3.org/2000/svg",fill:"none",role:"img",...s,children:[a?u.jsx("title",{children:a}):null,l.groups.map(c=>u.jsx("g",{transform:c.transform,children:c.paths.map(d=>u.jsx("path",{d,fill:"currentColor"},d))},c.transform))]})});Ny.displayName="OxBrandLogo";const $y=Oe("ox-brand-logo",{variants:{type:{full:"ox-brand-logo--full",mark:"ox-brand-logo--mark"},color:{dark:"ox-brand-logo--dark",light:"ox-brand-logo--light"},size:{md:"ox-brand-logo--md",lg:"ox-brand-logo--lg"}},defaultVariants:{type:"full",color:"dark",size:"md"}}),Fy={"ox-status-badge":"_ox-status-badge_1kneh_2","ox-status-badge-dot":"_ox-status-badge-dot_1kneh_2","ox-status-badge--neutral":"_ox-status-badge--neutral_1kneh_2","ox-status-badge--info":"_ox-status-badge--info_1kneh_2","ox-status-badge--success":"_ox-status-badge--success_1kneh_2","ox-status-badge--warning":"_ox-status-badge--warning_1kneh_2","ox-status-badge--error":"_ox-status-badge--error_1kneh_2"},Ly=h.forwardRef(({className:e,status:t="neutral",children:o,dataTestid:n,...r},a)=>u.jsxs("span",{ref:a,"data-slot":"status-badge","data-testid":n,className:$(me(Fy,zy({status:t})),e),...r,children:[u.jsx("span",{"data-testid":`${n}-indicator`,className:me(Fy,"ox-status-badge-dot")}),o]}));Ly.displayName="OxStatusBadge";const zy=Oe("ox-status-badge",{variants:{status:{neutral:"ox-status-badge--neutral",info:"ox-status-badge--info",success:"ox-status-badge--success",warning:"ox-status-badge--warning",error:"ox-status-badge--error"}},defaultVariants:{status:"neutral"}}),X6=`<svg width="1.2em" height="1.2em" stroke-color="currentColor" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24">
|
|
155
|
-
<g>
|
|
156
|
-
<path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M18 4H6a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2Z"/>
|
|
157
|
-
<path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M4 13h3l3 3h4l3-3h3"/>
|
|
158
|
-
</g>
|
|
159
|
-
</svg>
|
|
160
|
-
`,Jo={oxEmptyState:"_oxEmptyState_psyj0_2","ox-empty-state--page":"_ox-empty-state--page_psyj0_2","ox-empty-state--inline":"_ox-empty-state--inline_psyj0_2",oxEmptyStateIcon:"_oxEmptyStateIcon_psyj0_2",oxEmptyStateText:"_oxEmptyStateText_psyj0_2",oxEmptyStateTitle:"_oxEmptyStateTitle_psyj0_2",oxEmptyStateDescription:"_oxEmptyStateDescription_psyj0_2",oxEmptyStateActions:"_oxEmptyStateActions_psyj0_2",oxEmptyStateOptions:"_oxEmptyStateOptions_psyj0_2",oxEmptyStateLink:"_oxEmptyStateLink_psyj0_2"},By=h.forwardRef(({className:e,variant:t="page",icon:o,title:n,description:r,actions:a,options:s,link:i,dataTestid:l,...c},d)=>{const f=o===void 0?u.jsx(ee,{icon:X6,"data-testid":`${l}-glyph`}):o;return u.jsxs("div",{ref:d,"data-slot":"empty-state","data-testid":l,className:$(Jo.oxEmptyState,me(Jo,Hy({variant:t})),e),...c,children:[f&&u.jsx("div",{className:Jo.oxEmptyStateIcon,"data-slot":"icon","aria-hidden":"true","data-testid":`${l}-icon`,children:f}),(n||r)&&u.jsxs("div",{className:Jo.oxEmptyStateText,children:[n&&u.jsx("div",{className:Jo.oxEmptyStateTitle,"data-slot":"label",children:n}),r&&u.jsx("div",{className:Jo.oxEmptyStateDescription,"data-slot":"description",children:r})]}),a&&u.jsx("div",{className:Jo.oxEmptyStateActions,children:a}),s&&u.jsx("div",{className:Jo.oxEmptyStateOptions,children:s}),i&&u.jsx("div",{className:Jo.oxEmptyStateLink,children:i})]})});By.displayName="OxEmptyState";const Hy=Oe("",{variants:{variant:{page:"ox-empty-state--page",inline:"ox-empty-state--inline"}},defaultVariants:{variant:"page"}}),Z6=`<svg width="1.2em" height="1.2em" stroke-color="currentColor" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24">
|
|
161
|
-
<g class="icon-folder-plus">
|
|
162
|
-
<path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M12 19H5a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h4l3 3h7a2 2 0 0 1 2 2v3.5M16 19h6m-3-3v6" class="Vector"/>
|
|
163
|
-
</g>
|
|
164
|
-
</svg>
|
|
165
|
-
`,bs={oxEmptyStateOption:"_oxEmptyStateOption_1f817_2",oxEmptyStateOptionIcon:"_oxEmptyStateOptionIcon_1f817_2",oxEmptyStateOptionText:"_oxEmptyStateOptionText_1f817_2",oxEmptyStateOptionTitle:"_oxEmptyStateOptionTitle_1f817_2",oxEmptyStateOptionDescription:"_oxEmptyStateOptionDescription_1f817_2"},Vy=h.forwardRef(({className:e,selected:t=!1,icon:o,title:n,description:r,dataTestid:a,...s},i)=>u.jsxs("button",{ref:i,type:"button","data-slot":"empty-state-option","data-selected":t,"aria-pressed":t,"data-testid":a,className:$(bs.oxEmptyStateOption,e),...s,children:[u.jsx("span",{className:bs.oxEmptyStateOptionIcon,"data-slot":"icon","aria-hidden":"true","data-testid":`${a}-icon`,children:o===void 0?u.jsx(ee,{icon:Z6,"data-testid":`${a}-glyph`}):o}),u.jsxs("span",{className:bs.oxEmptyStateOptionText,children:[u.jsx("span",{className:bs.oxEmptyStateOptionTitle,"data-slot":"label",children:n}),r&&u.jsx("span",{className:bs.oxEmptyStateOptionDescription,"data-slot":"description",children:r})]})]}));Vy.displayName="OxEmptyStateOption";const fo={"ox-loader":"_ox-loader_aemw9_2","ox-loader__mark":"_ox-loader__mark_aemw9_2","ox-loader__label":"_ox-loader__label_aemw9_2","ox-loader__path":"_ox-loader__path_aemw9_2","ox-loader__ring-track":"_ox-loader__ring-track_aemw9_2","ox-loader__arm-track":"_ox-loader__arm-track_aemw9_2","ox-loader__ring-comet":"_ox-loader__ring-comet_aemw9_2","ox-loader__arm-comet":"_ox-loader__arm-comet_aemw9_2"},Wy="M25.56 47.19 L13.06 43.25 C10.85 42.56 9.18 40.74 8.68 38.47 L5.3 23.24 C4.8 20.98 5.54 18.62 7.25 17.05 L18.76 6.51 C20.46 4.95 22.88 4.41 25.09 5.11 L39.97 9.8 C42.18 10.5 43.85 12.32 44.35 14.58 L46.85 25.88",Ry="M35.03 46.78 L46.7 33.88",Xf=h.forwardRef(({className:e,children:t,dataTestid:o,...n},r)=>{const a=ve();return u.jsxs("span",{ref:r,role:"status","data-slot":"loader","data-testid":o,className:$(fo["ox-loader"],e),...n,children:[u.jsxs("svg",{className:fo["ox-loader__mark"],"data-testid":`${o}-mark`,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 52 52",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[u.jsx("path",{className:$(fo["ox-loader__path"],fo["ox-loader__ring-track"]),d:Wy,strokeWidth:"7.68"}),u.jsx("path",{className:$(fo["ox-loader__path"],fo["ox-loader__arm-track"]),d:Ry,strokeWidth:"7.2"}),u.jsx("path",{className:$(fo["ox-loader__path"],fo["ox-loader__ring-comet"]),d:Wy,strokeWidth:"7.68"}),u.jsx("path",{className:$(fo["ox-loader__path"],fo["ox-loader__arm-comet"]),d:Ry,strokeWidth:"7.2"})]}),u.jsx("span",{className:fo["ox-loader__label"],"data-slot":"label",children:t??a("orxata.loader.label")})]})});Xf.displayName="OxLoader";var J6=Object.defineProperty,Qo=(e,t)=>J6(e,"name",{value:t,configurable:!0}),Gy="Progress",Zf=100,[Q6,fq]=qt(Gy),[e5,t5]=Q6(Gy),o5=v.forwardRef(Qo(function(t,o){const{__scopeProgress:n,value:r=null,max:a,getValueLabel:s=jy,...i}=t;(a||a===0)&&!Qf(a)&&console.error(Uy(`${a}`,"Progress"));const l=Qf(a)?a:Zf;r!==null&&!ep(r,l)&&console.error(qy(`${r}`,"Progress"));const c=ep(r,l)?r:null,d=vs(c)?s(c,l):void 0;return u.jsx(e5,{scope:n,value:c,max:l,children:u.jsx(ze.div,{"aria-valuemax":l,"aria-valuemin":0,"aria-valuenow":vs(c)?c:void 0,"aria-valuetext":d,role:"progressbar","data-state":Jf(c,l),"data-value":c??void 0,"data-max":l,...i,ref:o})})},"Progress")),n5="ProgressIndicator",r5=v.forwardRef(Qo(function(t,o){const{__scopeProgress:n,...r}=t,a=t5(n5,n);return u.jsx(ze.div,{"data-state":Jf(a.value,a.max),"data-value":a.value??void 0,"data-max":a.max,...r,ref:o})},"ProgressIndicator"));function jy(e,t){return`${Math.round(e/t*100)}%`}Qo(jy,"defaultGetValueLabel");function Jf(e,t){return e==null?"indeterminate":e===t?"complete":"loading"}Qo(Jf,"getProgressState");function vs(e){return typeof e=="number"}Qo(vs,"isNumber");function Qf(e){return vs(e)&&!isNaN(e)&&e>0}Qo(Qf,"isValidMaxNumber");function ep(e,t){return vs(e)&&!isNaN(e)&&e<=t&&e>=0}Qo(ep,"isValidValueNumber");function Uy(e,t){return`Invalid prop \`max\` of value \`${e}\` supplied to \`${t}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${Zf}\`.`}Qo(Uy,"getInvalidMaxError");function qy(e,t){return`Invalid prop \`value\` of value \`${e}\` supplied to \`${t}\`. The \`value\` prop must be:
|
|
166
|
-
- a positive number
|
|
167
|
-
- less than the value passed to \`max\` (or ${Zf} if no \`max\` prop is set)
|
|
168
|
-
- \`null\` or \`undefined\` if the progress is indeterminate.
|
|
169
|
-
|
|
170
|
-
Defaulting to \`null\`.`}Qo(qy,"getInvalidValueError");var a5=o5,s5=r5;const Yy={"ox-progress":"_ox-progress_847ip_2","ox-progress-indicator":"_ox-progress-indicator_847ip_2","ox-progress--brand":"_ox-progress--brand_847ip_2","ox-progress--success":"_ox-progress--success_847ip_2","ox-progress--warning":"_ox-progress--warning_847ip_2","ox-progress--error":"_ox-progress--error_847ip_2"},Ky=e=>Math.min(100,Math.max(0,e)),Xy=h.forwardRef(({className:e,value:t=0,variant:o="brand",dataTestid:n,...r},a)=>u.jsx(a5,{ref:a,value:Ky(t),"data-slot":"progress","data-testid":n,className:$(me(Yy,i5({variant:o})),e),...r,children:u.jsx(s5,{"data-slot":"progress-indicator","data-testid":`${n}-indicator`,className:Yy["ox-progress-indicator"],style:{transform:`translateX(-${100-Ky(t)}%)`}})}));Xy.displayName="OxProgress";const i5=Oe("ox-progress",{variants:{variant:{brand:"ox-progress--brand",success:"ox-progress--success",warning:"ox-progress--warning",error:"ox-progress--error"}},defaultVariants:{variant:"brand"}}),Zy={oxAlert:"_oxAlert_gm4hh_2","oxAlert-warning":"_oxAlert-warning_gm4hh_2","oxAlert-error":"_oxAlert-error_gm4hh_2","oxAlert-info":"_oxAlert-info_gm4hh_2","oxAlert-success":"_oxAlert-success_gm4hh_2","oxAlert-muted":"_oxAlert-muted_gm4hh_2"},Jy=h.createContext({variant:"info",isDismissed:!1,isOpen:!0,dismissible:!1,collapsible:!1,handleDismiss:()=>{},handleToggle:()=>{}}),ql=()=>h.useContext(Jy),l5=200,Qy=h.forwardRef(({className:e,variant:t="info",dismissible:o=!1,collapsible:n=!1,isOpen:r=!0,onDismissed:a,onOpenChange:s,onToggled:i,children:l,...c},d)=>{const[f,p]=h.useState(!1),g=()=>{p(!0),a==null||a()},x=()=>{s==null||s(!r),i==null||i(!r)};return u.jsx(Jy.Provider,{value:{variant:t,isDismissed:f,isOpen:r,dismissible:o,collapsible:n,handleDismiss:g,handleToggle:x},children:u.jsx(ju,{in:!f,leaveDuration:l5,children:u.jsx("div",{ref:d,className:$(Zy.oxAlert,Zy[`oxAlert-${t}`],e),role:"alert","aria-live":t==="error"?"assertive":"polite","aria-atomic":"true",...c,children:l})})})});Qy.displayName="OxAlert";const c5={oxAlertCloseBtn:"_oxAlertCloseBtn_1s7qs_2"},ew=h.forwardRef(({className:e,onClick:t,children:o,...n},r)=>{const{handleDismiss:a}=ql(),s=ve();return u.jsx("button",{ref:r,type:"button",className:$(c5.oxAlertCloseBtn,e),"data-slot":"controller","aria-label":s("orxata.alert.close"),onClick:i=>{a(),t==null||t(i)},...n,children:o})});ew.displayName="OxAlertClose";const u5={oxAlertDescription:"_oxAlertDescription_tbt8n_2"},tw=300,ow=h.forwardRef(({className:e,children:t,...o},n)=>{const{collapsible:r,isOpen:a}=ql(),s=!r||a;return u.jsx(Uu,{in:s,enterDuration:tw,leaveDuration:tw,children:u.jsx("div",{ref:n,className:$(u5.oxAlertDescription,e),"data-slot":"description",...o,children:t})})});ow.displayName="OxAlertDescription";const nw=`<svg width="1.2em" height="1.2em" stroke-color="currentColor" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24">
|
|
171
|
-
<g>
|
|
172
|
-
<path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M12 21a9 9 0 1 0 0-18 9 9 0 0 0 0 18Zm0-13v4m0 4h.01"/>
|
|
173
|
-
</g>
|
|
174
|
-
</svg>
|
|
175
|
-
`,rw=`<svg width="1.2em" height="1.2em" stroke-color="currentColor" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24">
|
|
176
|
-
<g>
|
|
177
|
-
<path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M12.007 16.032v.01m0-6.01v2-2Zm-7 10h14a2 2 0 0 0 1.84-2.75l-7.1-12.25a2 2 0 0 0-3.5 0l-7.1 12.25a2 2 0 0 0 1.75 2.75"/>
|
|
178
|
-
</g>
|
|
179
|
-
</svg>
|
|
180
|
-
`,aw=`<svg width="1.2em" height="1.2em" stroke-color="currentColor" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24">
|
|
181
|
-
<g>
|
|
182
|
-
<path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M12 21a9 9 0 1 0 0-18 9 9 0 0 0 0 18Z"/>
|
|
183
|
-
<path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="m9 12 2 2 4-4"/>
|
|
184
|
-
</g>
|
|
185
|
-
</svg>
|
|
186
|
-
`,tp=`<svg width="1.2em" height="1.2em" stroke-color="currentColor" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24">
|
|
187
|
-
<g>
|
|
188
|
-
<path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M12 21a9 9 0 1 0 0-18 9 9 0 0 0 0 18Zm0-13h.01"/>
|
|
189
|
-
<path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M11 12h1v4h1"/>
|
|
190
|
-
</g>
|
|
191
|
-
</svg>
|
|
192
|
-
`,d5=`<svg width="1.2em" height="1.2em" stroke-color="currentColor" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24">
|
|
193
|
-
<g class="icon-star">
|
|
194
|
-
<path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M12.006 17.096 6.444 20l1.062-6.151L3 9.493l6.219-.895L12 3l2.781 5.596L21 9.491l-4.506 4.356 1.062 6.151-5.55-2.902Z" class="vector"/>
|
|
195
|
-
</g>
|
|
196
|
-
</svg>
|
|
197
|
-
`,f5={oxAlertIcon:"_oxAlertIcon_17uuk_2"},p5={info:tp,warning:rw,error:nw,success:aw,muted:d5},sw=h.forwardRef(({className:e,children:t,dataTestid:o,...n},r)=>{const{variant:a}=ql(),s=p5[a];return u.jsx("div",{ref:r,className:$(f5.oxAlertIcon,e),"data-slot":"icon","data-testid":o,...n,children:t??u.jsx(ee,{icon:s,"data-testid":`${o}-default`})})});sw.displayName="OxAlertIcon";const h5={oxAlertLink:"_oxAlertLink_1kej5_2"},iw=h.forwardRef(({className:e,children:t,...o},n)=>u.jsx("a",{ref:n,className:$(h5.oxAlertLink,e),"data-slot":"link",...o,children:t}));iw.displayName="OxAlertLink";const g5={oxAlertTitle:"_oxAlertTitle_q989d_2"},lw=h.forwardRef(({className:e,children:t,...o},n)=>u.jsx("h3",{ref:n,className:$(g5.oxAlertTitle,e),"data-slot":"label",...o,children:t}));lw.displayName="OxAlertTitle";const m5={oxAlertToggleBtn:"_oxAlertToggleBtn_gp8or_2"},cw=h.forwardRef(({className:e,onClick:t,children:o,...n},r)=>{const{isOpen:a,handleToggle:s}=ql();return u.jsx("button",{ref:r,type:"button",className:$(m5.oxAlertToggleBtn,e),"data-slot":"controller","aria-expanded":a,onClick:i=>{s(),t==null||t(i)},...n,children:o})});cw.displayName="OxAlertToggle";var x5=Object.defineProperty,Nt=(e,t)=>x5(e,"name",{value:t,configurable:!0}),op="Dialog",[uw]=Kt(op),[b5,po]=uw(op),np=Nt(e=>{const{__scopeDialog:t,children:o,open:n,defaultOpen:r,onOpenChange:a,modal:s=!0}=e,i=v.useRef(null),l=v.useRef(null),[c,d]=co({prop:n,defaultProp:r??!1,onChange:a,caller:op}),[f,p]=v.useState(0),[g,x]=v.useState(0);return u.jsx(b5,{scope:t,triggerRef:i,contentRef:l,contentId:St(),titleId:St(),descriptionId:St(),titlePresent:f>0,descriptionPresent:g>0,setTitleCount:p,setDescriptionCount:x,open:c,onOpenChange:d,onOpenToggle:v.useCallback(()=>d(m=>!m),[d]),modal:s,children:o})},"Dialog"),v5="DialogTrigger",dw=v.forwardRef(Nt(function(t,o){const{__scopeDialog:n,...r}=t,a=po(v5,n),s=We(o,a.triggerRef);return u.jsx(ye.button,{type:"button","aria-haspopup":"dialog","aria-expanded":a.open,"aria-controls":a.open?a.contentId:void 0,"data-state":Yl(a.open),...r,ref:s,onClick:Te(t.onClick,a.onOpenToggle)})},"DialogTrigger")),fw="DialogPortal",[y5,pw]=uw(fw,{forceMount:void 0}),na=Nt(e=>{const{__scopeDialog:t,forceMount:o,children:n,container:r}=e,a=po(fw,t);return u.jsx(y5,{scope:t,forceMount:o,children:v.Children.map(n,s=>u.jsx(lo,{present:o||a.open,children:u.jsx(bf,{asChild:!0,container:r,children:s})}))})},"DialogPortal"),rp="DialogOverlay",ap=v.forwardRef(Nt(function(t,o){const n=pw(rp,t.__scopeDialog),{forceMount:r=n.forceMount,...a}=t,s=po(rp,t.__scopeDialog);return s.modal?u.jsx(lo,{present:r||s.open,children:u.jsx(C5,{...a,ref:o})}):null},"DialogOverlay")),w5=Or("DialogOverlay.RemoveScroll"),C5=v.forwardRef(Nt(function(t,o){const{__scopeDialog:n,...r}=t,a=po(rp,n),s=Iv(),i=We(o,s);return u.jsx(Xa,{as:w5,allowPinchZoom:!0,shards:[a.contentRef],children:u.jsx(ye.div,{"data-state":Yl(a.open),...r,ref:i,style:{pointerEvents:"auto",...r.style}})})},"DialogOverlayImpl")),ys="DialogContent",ws=v.forwardRef(Nt(function(t,o){const n=pw(ys,t.__scopeDialog),{forceMount:r=n.forceMount,...a}=t,s=po(ys,t.__scopeDialog);return u.jsx(lo,{present:r||s.open,children:s.modal?u.jsx(_5,{...a,ref:o}):u.jsx(S5,{...a,ref:o})})},"DialogContent")),_5=v.forwardRef(Nt(function(t,o){const n=po(ys,t.__scopeDialog),r=v.useRef(null),a=We(o,n.contentRef,r);return v.useEffect(()=>{const s=r.current;if(s)return Qi(s)},[]),u.jsx(hw,{...t,ref:a,trapFocus:n.open,disableOutsidePointerEvents:n.open,onCloseAutoFocus:Te(t.onCloseAutoFocus,s=>{var i;s.preventDefault(),(i=n.triggerRef.current)==null||i.focus()}),onPointerDownOutside:Te(t.onPointerDownOutside,s=>{const i=s.detail.originalEvent,l=i.button===0&&i.ctrlKey===!0;(i.button===2||l)&&s.preventDefault()}),onFocusOutside:Te(t.onFocusOutside,s=>s.preventDefault())})},"DialogContentModal")),S5=v.forwardRef(Nt(function(t,o){const n=po(ys,t.__scopeDialog),r=v.useRef(!1),a=v.useRef(!1);return u.jsx(hw,{...t,ref:o,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{var i,l;(i=t.onCloseAutoFocus)==null||i.call(t,s),s.defaultPrevented||(r.current||(l=n.triggerRef.current)==null||l.focus(),s.preventDefault()),r.current=!1,a.current=!1},onInteractOutside:s=>{var c,d;(c=t.onInteractOutside)==null||c.call(t,s),s.defaultPrevented||(r.current=!0,s.detail.originalEvent.type==="pointerdown"&&(a.current=!0));const i=s.target;((d=n.triggerRef.current)==null?void 0:d.contains(i))&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&a.current&&s.preventDefault()}})},"DialogContentNonModal")),hw=v.forwardRef(Nt(function(t,o){const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:a,onCloseAutoFocus:s,...i}=t,l=po(ys,n);return ty(),u.jsx(u.Fragment,{children:u.jsx(ry,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:a,onUnmountAutoFocus:s,children:u.jsx(pf,{role:"dialog",id:l.contentId,"aria-describedby":l.descriptionPresent?l.descriptionId:void 0,"aria-labelledby":l.titlePresent?l.titleId:void 0,"data-state":Yl(l.open),...i,ref:o,deferPointerDownOutside:!0,onDismiss:()=>l.onOpenChange(!1)})})})},"DialogContentImpl")),P5="DialogTitle",gw=v.forwardRef(Nt(function(t,o){const{__scopeDialog:n,...r}=t,a=po(P5,n),{setTitleCount:s}=a;return _t(()=>(s(i=>i+1),()=>s(i=>i-1)),[s]),u.jsx(ye.h2,{id:a.titleId,...r,ref:o})},"DialogTitle")),T5="DialogDescription",mw=v.forwardRef(Nt(function(t,o){const{__scopeDialog:n,...r}=t,a=po(T5,n),{setDescriptionCount:s}=a;return _t(()=>(s(i=>i+1),()=>s(i=>i-1)),[s]),u.jsx(ye.p,{id:a.descriptionId,...r,ref:o})},"DialogDescription")),k5="DialogClose",ra=v.forwardRef(Nt(function(t,o){const{__scopeDialog:n,...r}=t,a=po(k5,n);return u.jsx(ye.button,{type:"button",...r,ref:o,onClick:Te(t.onClick,()=>a.onOpenChange(!1))})},"DialogClose"));function Yl(e){return e?"open":"closed"}Nt(Yl,"getState");const xw=({children:e,defaultOpen:t=!1,open:o,onOpenChange:n,modal:r=!0})=>u.jsx(np,{"data-slot":"dialog",defaultOpen:t,open:o,onOpenChange:n,modal:r,children:e});xw.displayName="OxDialog";const ur=`<svg width="1.2em" height="1.2em" stroke-color="currentColor" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24">
|
|
198
|
-
<g>
|
|
199
|
-
<path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M18 6 6 18M6 6l12 12"/>
|
|
200
|
-
</g>
|
|
201
|
-
</svg>
|
|
202
|
-
`,Kl={oxDialogContent:"_oxDialogContent_1enrr_2",oxDialogCloseButton:"_oxDialogCloseButton_1enrr_2",oxDialogCloseIcon:"_oxDialogCloseIcon_1enrr_2",oxDialogCloseLabel:"_oxDialogCloseLabel_1enrr_2"},Cs=h.forwardRef(({className:e,...t},o)=>u.jsx(ap,{ref:o,"data-slot":"dialog-overlay",className:$("ox-overlay",e),...t}));Cs.displayName="OxDialogOverlay";const E5={oxDialogScrollbarRail:"_oxDialogScrollbarRail_eq0ge_2"},sp=4;function I5(e,t){e(o=>Object.keys(t).every(n=>o[n]===t[n])?o:t)}function Xl({dataTestid:e}){const t=h.useRef(null),[o,n]=h.useState(null),[r,a]=h.useState({top:0,left:0,height:0}),s=h.useCallback(l=>{const c=t.current,d=(c==null?void 0:c.parentElement)??null;if(!c||!d)return;const f=c.getBoundingClientRect(),p=l.getBoundingClientRect(),g=d.getBoundingClientRect();I5(a,{top:p.top+l.clientTop+sp-f.top,left:g.left+d.clientLeft+d.clientWidth-Pl-sp-f.left,height:Math.max(0,l.clientHeight-sp*2)})},[]),i=h.useCallback(()=>{var d;const l=((d=t.current)==null?void 0:d.parentElement)??null;if(!l)return;const c=l.querySelector('[data-slot="dialog-body"]')??l;n(c),s(c)},[s]);return h.useEffect(()=>{const l=t.current,c=(l==null?void 0:l.parentElement)??null;if(!l||!c)return;const d=c.querySelector('[data-slot="dialog-body"]')??c;n(d);const f=()=>s(d);d.addEventListener("scroll",f,{passive:!0}),d.addEventListener("mouseenter",i,{passive:!0});let p=null;return typeof ResizeObserver<"u"&&(p=new ResizeObserver(i),p.observe(d),c!==d&&p.observe(c),p.observe(l)),s(d),()=>{d.removeEventListener("scroll",f),d.removeEventListener("mouseenter",i),p==null||p.disconnect()}}),u.jsx("div",{ref:t,className:E5.oxDialogScrollbarRail,"data-slot":"dialog-scrollbar","data-testid":`${e}-rail`,children:u.jsx(_n,{port:o,style:{"--ox-scrollbar-top":`${r.top}px`,"--ox-scrollbar-left":`${r.left}px`,"--ox-scrollbar-right":"auto","--ox-scrollbar-height":`${r.height}px`},dataTestid:e})})}Xl.displayName="OxDialogScrollbar";const bw=h.forwardRef(({className:e,children:t,showCloseButton:o=!0,...n},r)=>{const a=ve();return u.jsxs(na,{children:[u.jsx(Cs,{}),u.jsxs(ws,{ref:r,"data-slot":"dialog-content",className:$(Kl.oxDialogContent,e),...n,children:[u.jsx(Xl,{dataTestid:"ox-dialog-scrollbar"}),t,o&&u.jsxs(ra,{"data-slot":"dialog-close",className:Kl.oxDialogCloseButton,children:[u.jsx(ee,{icon:ur,className:Kl.oxDialogCloseIcon}),u.jsx("span",{className:Kl.oxDialogCloseLabel,children:a("orxata.dialog.close")})]})]})]})});bw.displayName="OxDialogContent";const vw=h.forwardRef(({dataTestid:e,...t},o)=>u.jsx("div",{ref:o,"data-slot":"dialog-body","data-testid":e,...t}));vw.displayName="OxDialogBody";const D5={oxDialogTitle:"_oxDialogTitle_jedhv_2"},yw=h.forwardRef(({className:e,...t},o)=>u.jsx(gw,{ref:o,"data-slot":"dialog-title",className:$(D5.oxDialogTitle,e),...t}));yw.displayName="OxDialogTitle";const M5={oxDialogDescription:"_oxDialogDescription_13b4m_2"},ww=h.forwardRef(({className:e,...t},o)=>u.jsx(mw,{ref:o,"data-slot":"dialog-description",className:$(M5.oxDialogDescription,e),...t}));ww.displayName="OxDialogDescription";const aa={oxDialogTwoPanelContent:"_oxDialogTwoPanelContent_z0ux4_2",oxDialogTwoPanelMain:"_oxDialogTwoPanelMain_z0ux4_2",oxDialogTwoPanelAside:"_oxDialogTwoPanelAside_z0ux4_2",oxDialogCloseButton:"_oxDialogCloseButton_z0ux4_2",oxDialogCloseIcon:"_oxDialogCloseIcon_z0ux4_2",oxDialogCloseLabel:"_oxDialogCloseLabel_z0ux4_2"},Cw=h.forwardRef(({className:e,children:t,aside:o,showCloseButton:n=!0,...r},a)=>{const s=ve();return u.jsxs(na,{children:[u.jsx(Cs,{}),u.jsxs(ws,{ref:a,"data-slot":"dialog-content",className:$(aa.oxDialogTwoPanelContent,e),...r,children:[u.jsxs("div",{className:aa.oxDialogTwoPanelMain,children:[u.jsx(Xl,{dataTestid:"ox-dialog-two-panel-scrollbar"}),t]}),u.jsxs("div",{className:aa.oxDialogTwoPanelAside,children:[u.jsx(Xl,{dataTestid:"ox-dialog-two-panel-aside-scrollbar"}),o]}),n&&u.jsxs(ra,{"data-slot":"dialog-close",className:aa.oxDialogCloseButton,children:[u.jsx(ee,{icon:ur,className:aa.oxDialogCloseIcon}),u.jsx("span",{className:aa.oxDialogCloseLabel,children:s("orxata.dialog.close")})]})]})]})});Cw.displayName="OxDialogTwoPanelContent";const $t={oxDialogFullScreenContent:"_oxDialogFullScreenContent_how6a_2",oxDialogFullScreenTopBar:"_oxDialogFullScreenTopBar_how6a_2",oxDialogFullScreenHeading:"_oxDialogFullScreenHeading_how6a_2",oxDialogFullScreenBody:"_oxDialogFullScreenBody_how6a_2",oxDialogFullScreenMain:"_oxDialogFullScreenMain_how6a_2",oxDialogFullScreenSidebar:"_oxDialogFullScreenSidebar_how6a_2",oxDialogFullScreenSidebarLeft:"_oxDialogFullScreenSidebarLeft_how6a_2",oxDialogFullScreenSidebarRight:"_oxDialogFullScreenSidebarRight_how6a_2",oxDialogFullScreenFooter:"_oxDialogFullScreenFooter_how6a_2",oxDialogFullScreenClose:"_oxDialogFullScreenClose_how6a_2",oxDialogFullScreenCloseIcon:"_oxDialogFullScreenCloseIcon_how6a_2",oxDialogFullScreenCloseLabel:"_oxDialogFullScreenCloseLabel_how6a_2"},_w=h.forwardRef(({className:e,children:t,header:o,sidebarLeft:n,sidebarRight:r,footer:a,showCloseButton:s=!0,...i},l)=>{const c=ve();return u.jsxs(na,{children:[u.jsx(Cs,{}),u.jsxs(ws,{ref:l,"data-slot":"dialog-content",className:$($t.oxDialogFullScreenContent,e),...i,children:[u.jsxs("div",{className:$t.oxDialogFullScreenTopBar,children:[u.jsx("div",{"data-slot":"dialog-header",className:$t.oxDialogFullScreenHeading,children:o}),s&&u.jsxs(ra,{"data-slot":"dialog-close",className:$t.oxDialogFullScreenClose,children:[u.jsx(ee,{icon:ur,className:$t.oxDialogFullScreenCloseIcon}),u.jsx("span",{className:$t.oxDialogFullScreenCloseLabel,children:c("orxata.dialog.close")})]})]}),u.jsxs("div",{className:$t.oxDialogFullScreenBody,children:[n&&u.jsx("aside",{className:$($t.oxDialogFullScreenSidebar,$t.oxDialogFullScreenSidebarLeft),children:n}),u.jsx("div",{"data-slot":"dialog-body",className:$t.oxDialogFullScreenMain,children:t}),r&&u.jsx("aside",{className:$($t.oxDialogFullScreenSidebar,$t.oxDialogFullScreenSidebarRight),children:r})]}),a&&u.jsx("div",{"data-slot":"dialog-footer",className:$t.oxDialogFullScreenFooter,children:a})]})]})});_w.displayName="OxDialogFullScreenContent";const Sw=h.createContext(null),O5=Sw.Provider,ip=()=>{const e=h.useContext(Sw);if(!e)throw new Error("OxDrawer parts must be used inside an <OxDrawer>.");return e},Pw=({children:e,open:t,defaultOpen:o=!1,modal:n=!0,side:r="right",onOpenChange:a})=>{const[s,i]=h.useState(o),l=t??s,[c,d]=h.useState(!1),f=h.useCallback(g=>{i(g),a==null||a(g)},[a]);h.useEffect(()=>{l&&d(!1)},[l]);const p=h.useMemo(()=>({open:l,side:r,expanded:c,toggleExpanded:()=>d(g=>!g)}),[l,r,c]);return u.jsx(O5,{value:p,children:u.jsx(np,{"data-slot":"drawer",open:l,onOpenChange:f,modal:n,children:e})})};Pw.displayName="OxDrawer";const _s={oxDrawerPanel:"_oxDrawerPanel_98ken_2",oxDrawerOverlay:"_oxDrawerOverlay_98ken_2",oxDrawerClose:"_oxDrawerClose_98ken_2",oxDrawerCloseIcon:"_oxDrawerCloseIcon_98ken_2",oxDrawerCloseLabel:"_oxDrawerCloseLabel_98ken_2"},A5=500,N5=300,Tw=h.forwardRef(({className:e,children:t,showCloseButton:o=!0,...n},r)=>{const a=ve(),{side:s,expanded:i}=ip();return u.jsx(na,{forceMount:!0,children:u.jsxs(ws,{ref:r,forceMount:!0,"data-slot":"drawer-content",className:$(_s.oxDrawerPanel,e),"data-side":s,"data-expanded":i,...n,children:[t,o&&u.jsxs(ra,{"data-slot":"drawer-close",className:_s.oxDrawerClose,children:[u.jsx(ee,{icon:ur,className:_s.oxDrawerCloseIcon}),u.jsx("span",{className:_s.oxDrawerCloseLabel,children:a("orxata.drawer.close")})]})]})})});Tw.displayName="OxDrawerPanel";const kw=h.forwardRef((e,t)=>{const{open:o,side:n}=ip();return u.jsxs(u.Fragment,{children:[u.jsx(na,{children:u.jsx(ap,{"data-slot":"drawer-overlay",className:$("ox-overlay",_s.oxDrawerOverlay),"data-side":n})}),u.jsx(Gu,{in:o,direction:n,leaveDirection:n,enterDuration:A5,leaveDuration:N5,children:u.jsx(Tw,{ref:t,...e})})]})});kw.displayName="OxDrawerContent";const Ew=h.forwardRef(({dataTestid:e,...t},o)=>u.jsx("div",{ref:o,"data-slot":"drawer-body","data-testid":e,...t}));Ew.displayName="OxDrawerBody";const $5={oxDrawerTitle:"_oxDrawerTitle_1wtzo_2"},Iw=h.forwardRef(({className:e,...t},o)=>u.jsx(gw,{ref:o,"data-slot":"drawer-title",className:$($5.oxDrawerTitle,e),...t}));Iw.displayName="OxDrawerTitle";const F5={oxDrawerDescription:"_oxDrawerDescription_1qz89_2"},Dw=h.forwardRef(({className:e,...t},o)=>u.jsx(mw,{ref:o,"data-slot":"drawer-description",className:$(F5.oxDrawerDescription,e),...t}));Dw.displayName="OxDrawerDescription";const L5=`<svg width="1.2em" height="1.2em" stroke-color="currentColor" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24">
|
|
203
|
-
<g>
|
|
204
|
-
<path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M16 4h4v4m-6 2 6-6M8 20H4v-4m0 4 6-6"/>
|
|
205
|
-
</g>
|
|
206
|
-
</svg>
|
|
207
|
-
`,z5=`<svg width="1.2em" height="1.2em" stroke-color="currentColor" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24">
|
|
208
|
-
<g>
|
|
209
|
-
<path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M18 10h-4V6m6-2-6 6m-8 4h4v4m0-4-6 6"/>
|
|
210
|
-
</g>
|
|
211
|
-
</svg>
|
|
212
|
-
`,lp={oxDrawerExpand:"_oxDrawerExpand_52yu5_2",oxDrawerExpandIcon:"_oxDrawerExpandIcon_52yu5_2",oxDrawerExpandLabel:"_oxDrawerExpandLabel_52yu5_2"},Mw=h.forwardRef(({className:e,...t},o)=>{const n=ve(),{side:r,expanded:a,toggleExpanded:s}=ip();return u.jsxs("button",{ref:o,type:"button","data-slot":"drawer-expand",className:$(lp.oxDrawerExpand,e),"data-side":r,"aria-pressed":a,onClick:s,...t,children:[u.jsx(ee,{icon:a?z5:L5,className:lp.oxDrawerExpandIcon}),u.jsx("span",{className:lp.oxDrawerExpandLabel,children:n(a?"orxata.drawer.collapse":"orxata.drawer.expand")})]})});Mw.displayName="OxDrawerExpand";var B5=Object.defineProperty,Xt=(e,t)=>B5(e,"name",{value:t,configurable:!0});function sa(e){const t=v.forwardRef((o,n)=>{let{children:r,...a}=o,s=null,i=!1;const l=[];cp(r)&&typeof Zl=="function"&&(r=Zl(r._payload)),v.Children.forEach(r,p=>{var g;if($w(p)){i=!0;const x=p;let m="child"in x.props?x.props.child:x.props.children;cp(m)&&typeof Zl=="function"&&(m=Zl(m._payload)),s=V5(x,m),l.push((g=s==null?void 0:s.props)==null?void 0:g.children)}else l.push(p)}),s?s=v.cloneElement(s,void 0,l):!i&&v.Children.count(r)===1&&v.isValidElement(r)&&(s=r);const c=s?Nw(s):void 0,d=he(n,c);if(!s){if(r||r===0)throw new Error(i?G5(e):R5(e));return r}const f=Aw(a,s.props??{});return s.type!==v.Fragment&&(f.ref=n?d:c),v.cloneElement(s,f)});return t.displayName=`${e}.Slot`,t}Xt(sa,"createSlot");var Ow=Symbol.for("radix.slottable");function H5(e){const t=Xt(o=>"child"in o?o.children(o.child):o.children,"Slottable");return t.displayName=`${e}.Slottable`,t.__radixId=Ow,t}Xt(H5,"createSlottable");var V5=Xt((e,t)=>{if("child"in e.props){const o=e.props.child;return v.isValidElement(o)?v.cloneElement(o,void 0,e.props.children(o.props.children)):null}return v.isValidElement(t)?t:null},"getSlottableElementFromSlottable");function Aw(e,t){const o={...t};for(const n in t){const r=e[n],a=t[n];/^on[A-Z]/.test(n)?r&&a?o[n]=(...i)=>{const l=a(...i);return r(...i),l}:r&&(o[n]=r):n==="style"?o[n]={...r,...a}:n==="className"?o[n]=[r,a].filter(Boolean).join(" "):n==="aria-describedby"&&(o[n]=Lw(a,r))}return{...e,...o}}Xt(Aw,"mergeProps");function Nw(e){var n,r;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,o=t&&"isReactWarning"in t&&t.isReactWarning;return o?e.ref:(t=(r=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:r.get,o=t&&"isReactWarning"in t&&t.isReactWarning,o?e.props.ref:e.props.ref||e.ref)}Xt(Nw,"getElementRef");function $w(e){return v.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Ow}Xt($w,"isSlottable");var W5=Symbol.for("react.lazy");function cp(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===W5&&"_payload"in e&&Fw(e._payload)}Xt(cp,"isLazyComponent");function Fw(e){return typeof e=="object"&&e!==null&&"then"in e}Xt(Fw,"isPromiseLike");function Lw(...e){const t=new Set;for(const o of e)if(typeof o=="string")for(const n of String(o).trim().split(/\s+/))n&&t.add(n);return t.size>0?Array.from(t).join(" "):void 0}Xt(Lw,"concatAriaDescribedby");var R5=Xt(e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,"createSlotError"),G5=Xt(e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,"createSlottableError"),Zl=v[" use ".trim().toString()],j5=Object.defineProperty,ft=(e,t)=>j5(e,"name",{value:t,configurable:!0});function zw(e){const t=e+"CollectionProvider",[o,n]=qt(t),[r,a]=o(t,{collectionRef:{current:null},itemMap:new Map}),s=ft(m=>{const{scope:b,children:y}=m,C=v.useRef(null),w=v.useRef(new Map).current;return u.jsx(r,{scope:b,itemMap:w,collectionRef:C,children:y})},"CollectionProvider");s.displayName=t;const i=e+"CollectionSlot",l=sa(i),c=v.forwardRef((m,b)=>{const{scope:y,children:C}=m,w=a(i,y),P=he(b,w.collectionRef);return u.jsx(l,{ref:P,children:C})});c.displayName=i;const d=e+"CollectionItemSlot",f="data-radix-collection-item",p=sa(d),g=v.forwardRef((m,b)=>{const{scope:y,children:C,...w}=m,P=v.useRef(null),S=he(b,P),_=a(d,y);return v.useEffect(()=>(_.itemMap.set(P,{ref:P,...w}),()=>void _.itemMap.delete(P))),u.jsx(p,{[f]:"",ref:S,children:C})});g.displayName=d;function x(m){const b=a(e+"CollectionConsumer",m);return v.useCallback(()=>{const C=b.collectionRef.current;if(!C)return[];const w=Array.from(C.querySelectorAll(`[${f}]`));return Array.from(b.itemMap.values()).sort((_,T)=>w.indexOf(_.ref.current)-w.indexOf(T.ref.current))},[b.collectionRef,b.itemMap])}return ft(x,"useCollection"),[{Provider:s,Slot:c,ItemSlot:g},x,n]}ft(zw,"createCollection");var Bw=new WeakMap,up=(Rt=class extends Map{constructor(o){super(o);Cu(this,et);Sr(this,et,[...super.keys()]),Bw.set(this,!0)}set(o,n){return Bw.get(this)&&(this.has(o)?pe(this,et)[pe(this,et).indexOf(o)]=o:pe(this,et).push(o)),super.set(o,n),this}insert(o,n,r){const a=this.has(n),s=pe(this,et).length,i=dp(o);let l=i>=0?i:s+i;const c=l<0||l>=s?-1:l;if(c===this.size||a&&c===this.size-1||c===-1)return this.set(n,r),this;const d=this.size+(a?0:1);i<0&&l++;const f=[...pe(this,et)];let p,g=!1;for(let x=l;x<d;x++)if(l===x){let m=f[x];f[x]===n&&(m=f[x+1]),a&&this.delete(n),p=this.get(m),this.set(n,r)}else{!g&&f[x-1]===n&&(g=!0);const m=f[g?x:x-1],b=p;p=this.get(m),this.delete(m),this.set(m,b)}return this}with(o,n,r){const a=new Rt(this);return a.insert(o,n,r),a}before(o){const n=pe(this,et).indexOf(o)-1;if(!(n<0))return this.entryAt(n)}setBefore(o,n,r){const a=pe(this,et).indexOf(o);return a===-1?this:this.insert(a,n,r)}after(o){let n=pe(this,et).indexOf(o);if(n=n===-1||n===this.size-1?-1:n+1,n!==-1)return this.entryAt(n)}setAfter(o,n,r){const a=pe(this,et).indexOf(o);return a===-1?this:this.insert(a+1,n,r)}first(){return this.entryAt(0)}last(){return this.entryAt(-1)}clear(){return Sr(this,et,[]),super.clear()}delete(o){const n=super.delete(o);return n&&pe(this,et).splice(pe(this,et).indexOf(o),1),n}deleteAt(o){const n=this.keyAt(o);return n!==void 0?this.delete(n):!1}at(o){const n=Jl(pe(this,et),o);if(n!==void 0)return this.get(n)}entryAt(o){const n=Jl(pe(this,et),o);if(n!==void 0)return[n,this.get(n)]}indexOf(o){return pe(this,et).indexOf(o)}keyAt(o){return Jl(pe(this,et),o)}from(o,n){const r=this.indexOf(o);if(r===-1)return;let a=r+n;return a<0&&(a=0),a>=this.size&&(a=this.size-1),this.at(a)}keyFrom(o,n){const r=this.indexOf(o);if(r===-1)return;let a=r+n;return a<0&&(a=0),a>=this.size&&(a=this.size-1),this.keyAt(a)}find(o,n){let r=0;for(const a of this){if(Reflect.apply(o,n,[a,r,this]))return a;r++}}findIndex(o,n){let r=0;for(const a of this){if(Reflect.apply(o,n,[a,r,this]))return r;r++}return-1}filter(o,n){const r=[];let a=0;for(const s of this)Reflect.apply(o,n,[s,a,this])&&r.push(s),a++;return new Rt(r)}map(o,n){const r=[];let a=0;for(const s of this)r.push([s[0],Reflect.apply(o,n,[s,a,this])]),a++;return new Rt(r)}reduce(...o){const[n,r]=o;let a=0,s=r??this.at(0);for(const i of this)a===0&&o.length===1?s=i:s=Reflect.apply(n,this,[s,i,a,this]),a++;return s}reduceRight(...o){const[n,r]=o;let a=r??this.at(-1);for(let s=this.size-1;s>=0;s--){const i=this.at(s);s===this.size-1&&o.length===1?a=i:a=Reflect.apply(n,this,[a,i,s,this])}return a}toSorted(o){const n=[...this.entries()].sort(o);return new Rt(n)}toReversed(){const o=new Rt;for(let n=this.size-1;n>=0;n--){const r=this.keyAt(n),a=this.get(r);o.set(r,a)}return o}toSpliced(...o){const n=[...this.entries()];return n.splice(...o),new Rt(n)}slice(o,n){const r=new Rt;let a=this.size-1;if(o===void 0)return r;o<0&&(o=o+this.size),n!==void 0&&n>0&&(a=n-1);for(let s=o;s<=a;s++){const i=this.keyAt(s),l=this.get(i);r.set(i,l)}return r}every(o,n){let r=0;for(const a of this){if(!Reflect.apply(o,n,[a,r,this]))return!1;r++}return!0}some(o,n){let r=0;for(const a of this){if(Reflect.apply(o,n,[a,r,this]))return!0;r++}return!1}},et=new WeakMap,ft(Rt,"OrderedDict"),Rt);function Jl(e,t){if("at"in Array.prototype)return Array.prototype.at.call(e,t);const o=Hw(e,t);return o===-1?void 0:e[o]}ft(Jl,"at");function Hw(e,t){const o=e.length,n=dp(t),r=n>=0?n:o+n;return r<0||r>=o?-1:r}ft(Hw,"toSafeIndex");function dp(e){return e!==e||e===0?0:Math.trunc(e)}ft(dp,"toSafeInteger");function U5(e){const t=e+"CollectionProvider",[o,n]=qt(t),[r,a]=o(t,{collectionElement:null,collectionRef:{current:null},collectionRefObject:{current:null},itemMap:new up,setItemMap:ft(()=>{},"setItemMap")}),s=ft(({state:w,...P})=>w?u.jsx(l,{...P,state:w}):u.jsx(i,{...P}),"CollectionProvider");s.displayName=t;const i=ft(w=>{const P=b();return u.jsx(l,{...w,state:P})},"CollectionInit");i.displayName=t+"Init";const l=ft(w=>{const{scope:P,children:S,state:_}=w,T=v.useRef(null),[k,E]=v.useState(null),D=he(T,E),[O,N]=_;return v.useEffect(()=>{if(!k)return;const z=Rw(()=>{});return z.observe(k,{childList:!0,subtree:!0}),()=>{z.disconnect()}},[k]),u.jsx(r,{scope:P,itemMap:O,setItemMap:N,collectionRef:D,collectionRefObject:T,collectionElement:k,children:S})},"CollectionProviderImpl");l.displayName=t+"Impl";const c=e+"CollectionSlot",d=sa(c),f=v.forwardRef((w,P)=>{const{scope:S,children:_}=w,T=a(c,S),k=he(P,T.collectionRef);return u.jsx(d,{ref:k,children:_})});f.displayName=c;const p=e+"CollectionItemSlot",g="data-radix-collection-item",x=sa(p),m=v.forwardRef((w,P)=>{const{scope:S,children:_,...T}=w,k=v.useRef(null),[E,D]=v.useState(null),O=he(P,k,D),N=a(p,S),{setItemMap:z}=N,B=v.useRef(T);Vw(B.current,T)||(B.current=T);const G=B.current;return v.useEffect(()=>{const R=G;return z(A=>E?A.has(E)?A.set(E,{...R,element:E}).toSorted(fp):(A.set(E,{...R,element:E}),A.toSorted(fp)):A),()=>{z(A=>!E||!A.has(E)?A:(A.delete(E),new up(A)))}},[E,G,z]),u.jsx(x,{[g]:"",ref:O,children:_})});m.displayName=p;function b(){return v.useState(new up)}ft(b,"useInitCollection");function y(w){const{itemMap:P}=a(e+"CollectionConsumer",w);return P}return ft(y,"useCollection"),[{Provider:s,Slot:f,ItemSlot:m},{createCollectionScope:n,useCollection:y,useInitCollection:b}]}ft(U5,"createCollection");function Vw(e,t){if(e===t)return!0;if(typeof e!="object"||typeof t!="object"||e==null||t==null)return!1;const o=Object.keys(e),n=Object.keys(t);if(o.length!==n.length)return!1;for(const r of o)if(!Object.prototype.hasOwnProperty.call(t,r)||e[r]!==t[r])return!1;return!0}ft(Vw,"shallowEqual");function Ww(e,t){return!!(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING)}ft(Ww,"isElementPreceding");function fp(e,t){return!e[1].element||!t[1].element?0:Ww(e[1].element,t[1].element)?-1:1}ft(fp,"sortByDocumentPosition");function Rw(e){return new MutationObserver(o=>{for(const n of o)if(n.type==="childList"){e();return}})}ft(Rw,"getChildListObserver");var q5=Object.defineProperty,Y5=(e,t)=>q5(e,"name",{value:t,configurable:!0}),K5=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Do=K5.reduce((e,t)=>{const o=sa(`Primitive.${t}`),n=v.forwardRef((r,a)=>{const{asChild:s,...i}=r,l=s?o:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),u.jsx(l,{...i,ref:a})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function pp(e,t){e&&no.flushSync(()=>e.dispatchEvent(t))}Y5(pp,"dispatchDiscreteCustomEvent");var X5=Object.defineProperty,nt=(e,t)=>X5(e,"name",{value:t,configurable:!0}),hp="dismissableLayer.update",Z5="dismissableLayer.pointerDownOutside",J5="dismissableLayer.focusOutside",Gw,gp=v.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set,dismissableSurfaces:new Set}),Q5=v.forwardRef(nt(function(t,o){const{disableOutsidePointerEvents:n=!1,deferPointerDownOutside:r=!1,onEscapeKeyDown:a,onPointerDownOutside:s,onFocusOutside:i,onInteractOutside:l,onDismiss:c,...d}=t,f=v.useContext(gp),[p,g]=v.useState(null),x=(p==null?void 0:p.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,m]=v.useState({}),b=he(o,g),y=Array.from(f.layers),[C]=[...f.layersWithOutsidePointerEventsDisabled].slice(-1),w=C?y.indexOf(C):-1,P=p?y.indexOf(p):-1,S=f.layersWithOutsidePointerEventsDisabled.size>0,_=P>=w,T=v.useRef(!1),k=jw(N=>{s==null||s(N),l==null||l(N),N.defaultPrevented||c==null||c()},{ownerDocument:x,deferPointerDownOutside:r,isDeferredPointerDownOutsideRef:T,dismissableSurfaces:f.dismissableSurfaces,shouldHandlePointerDownOutside:v.useCallback(N=>{if(!(N instanceof Node))return!1;const z=[...f.branches].some(B=>B.contains(N));return _&&!z},[f.branches,_])}),E=Uw(N=>{if(r&&T.current)return;const z=N.target;[...f.branches].some(G=>G.contains(z))||(i==null||i(N),l==null||l(N),N.defaultPrevented||c==null||c())},x),D=p?P===y.length-1:!1,O=Ye(N=>{N.key==="Escape"&&(a==null||a(N),!N.defaultPrevented&&c&&(N.preventDefault(),c()))});return v.useEffect(()=>{if(D)return x.addEventListener("keydown",O,{capture:!0}),()=>x.removeEventListener("keydown",O,{capture:!0})},[x,D,O]),v.useEffect(()=>{if(p)return n&&(f.layersWithOutsidePointerEventsDisabled.size===0&&(Gw=x.body.style.pointerEvents,x.body.style.pointerEvents="none"),f.layersWithOutsidePointerEventsDisabled.add(p)),f.layers.add(p),mp(),()=>{n&&(f.layersWithOutsidePointerEventsDisabled.delete(p),f.layersWithOutsidePointerEventsDisabled.size===0&&(x.body.style.pointerEvents=Gw))}},[p,x,n,f]),v.useEffect(()=>()=>{p&&(f.layers.delete(p),f.layersWithOutsidePointerEventsDisabled.delete(p),mp())},[p,f]),v.useEffect(()=>{const N=nt(()=>m({}),"handleUpdate");return document.addEventListener(hp,N),()=>document.removeEventListener(hp,N)},[]),u.jsx(Do.div,{...d,ref:b,style:{pointerEvents:S?_?"auto":"none":void 0,...t.style},onFocusCapture:ne(t.onFocusCapture,E.onFocusCapture),onBlurCapture:ne(t.onBlurCapture,E.onBlurCapture),onPointerDownCapture:ne(t.onPointerDownCapture,k.onPointerDownCapture)})},"DismissableLayer")),e8=v.forwardRef(nt(function(t,o){const n=v.useContext(gp),r=v.useRef(null),a=he(o,r);return v.useEffect(()=>{const s=r.current;if(s)return n.branches.add(s),()=>{n.branches.delete(s)}},[n.branches]),u.jsx(Do.div,{...t,ref:a})},"DismissableLayerBranch"));function t8(){const e=v.useContext(gp),[t,o]=v.useState(null);return v.useEffect(()=>{if(t)return e.dismissableSurfaces.add(t),()=>{e.dismissableSurfaces.delete(t)}},[t,e.dismissableSurfaces]),o}nt(t8,"useDismissableLayerSurface");var o8=nt(()=>!0,"IS_TRUE");function jw(e,t){const{ownerDocument:o=globalThis==null?void 0:globalThis.document,deferPointerDownOutside:n=!1,isDeferredPointerDownOutsideRef:r,dismissableSurfaces:a,shouldHandlePointerDownOutside:s=o8}=t,i=Ye(e),l=v.useRef(!1),c=v.useRef(!1),d=v.useRef(new Map),f=v.useRef(()=>{});return v.useEffect(()=>{function p(){c.current=!1,r.current=!1,d.current.clear()}nt(p,"resetOutsideInteraction");function g(){return Array.from(d.current.values()).some(Boolean)}nt(g,"isOutsideInteractionIntercepted");function x(w){if(!c.current)return;const P=w.target;P instanceof Node&&[...a].some(_=>_.contains(P))||d.current.set(w.type,!0),w.type==="click"&&window.setTimeout(()=>{c.current&&f.current()},0)}nt(x,"handleInteractionCapture");function m(w){c.current&&d.current.set(w.type,!1)}nt(m,"handleInteractionBubble");const b=nt(w=>{if(w.target&&!l.current){let P=function(){o.removeEventListener("click",f.current);const _=g();p(),_||xp(Z5,i,S,{discrete:!0})};if(nt(P,"handleAndDispatchPointerDownOutsideEvent"),!s(w.target)){o.removeEventListener("click",f.current),p(),l.current=!1;return}const S={originalEvent:w};c.current=!0,r.current=n&&w.button===0,d.current.clear(),!n||w.button!==0?P():(o.removeEventListener("click",f.current),f.current=P,o.addEventListener("click",f.current,{once:!0}))}else o.removeEventListener("click",f.current),p();l.current=!1},"handlePointerDown"),y=["pointerup","mousedown","mouseup","touchstart","touchend","click"];for(const w of y)o.addEventListener(w,x,!0),o.addEventListener(w,m);const C=window.setTimeout(()=>{o.addEventListener("pointerdown",b)},0);return()=>{window.clearTimeout(C),o.removeEventListener("pointerdown",b),o.removeEventListener("click",f.current);for(const w of y)o.removeEventListener(w,x,!0),o.removeEventListener(w,m)}},[o,i,n,r,a,s]),{onPointerDownCapture:nt(()=>l.current=!0,"onPointerDownCapture")}}nt(jw,"usePointerDownOutside");function Uw(e,t=globalThis==null?void 0:globalThis.document){const o=Ye(e),n=v.useRef(!1);return v.useEffect(()=>{const r=nt(a=>{a.target&&!n.current&&xp(J5,o,{originalEvent:a},{discrete:!1})},"handleFocus");return t.addEventListener("focusin",r),()=>t.removeEventListener("focusin",r)},[t,o]),{onFocusCapture:nt(()=>n.current=!0,"onFocusCapture"),onBlurCapture:nt(()=>n.current=!1,"onBlurCapture")}}nt(Uw,"useFocusOutside");function mp(){const e=new CustomEvent(hp);document.dispatchEvent(e)}nt(mp,"dispatchUpdate");function xp(e,t,o,{discrete:n}){const r=o.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:o});t&&r.addEventListener(e,t,{once:!0}),n?pp(r,a):r.dispatchEvent(a)}nt(xp,"handleAndDispatchCustomEvent");var n8=Object.defineProperty,r8=(e,t)=>n8(e,"name",{value:t,configurable:!0}),a8=v.forwardRef(r8(function(t,o){var l;const{container:n,...r}=t,[a,s]=v.useState(!1);He(()=>s(!0),[]);const i=n||a&&((l=globalThis==null?void 0:globalThis.document)==null?void 0:l.body);return i?no.createPortal(u.jsx(Do.div,{...r,ref:o}),i):null},"Portal")),s8=Object.defineProperty,en=(e,t)=>s8(e,"name",{value:t,configurable:!0});function qw(e,t){return v.useReducer((o,n)=>t[o][n]??o,e)}en(qw,"useStateMachine");var i8=en(e=>{const{present:t,children:o}=e,n=Yw(t),r=typeof o=="function"?o({present:n.isPresent}):v.Children.only(o),a=Kw(n.ref,Xw(r));return typeof o=="function"||n.isPresent?v.cloneElement(r,{ref:a}):null},"Presence");function Yw(e){const[t,o]=v.useState(),n=v.useRef(null),r=v.useRef(e),a=v.useRef("none"),s=v.useRef(void 0),i=e?"mounted":"unmounted",[l,c]=qw(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return v.useEffect(()=>{l==="mounted"?(a.current=s.current??ia(n.current),s.current=void 0):a.current="none"},[l]),He(()=>{const d=n.current,f=r.current;if(f!==e){const g=a.current,x=ia(d);e?(s.current=x,c("MOUNT")):x==="none"||(d==null?void 0:d.display)==="none"?c("UNMOUNT"):c(f&&g!==x?"ANIMATION_OUT":"UNMOUNT"),r.current=e}},[e,c]),He(()=>{if(t){let d;const f=t.ownerDocument.defaultView??window,p=en(x=>{const b=ia(n.current).includes(CSS.escape(x.animationName));if(x.target===t&&b&&(c("ANIMATION_END"),!r.current)){const y=t.style.animationFillMode;t.style.animationFillMode="forwards",d=f.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=y)})}},"handleAnimationEnd"),g=en(x=>{x.target===t&&(a.current=ia(n.current))},"handleAnimationStart");return t.addEventListener("animationstart",g),t.addEventListener("animationcancel",p),t.addEventListener("animationend",p),()=>{f.clearTimeout(d),t.removeEventListener("animationstart",g),t.removeEventListener("animationcancel",p),t.removeEventListener("animationend",p)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:v.useCallback(d=>{if(d){const f=getComputedStyle(d);n.current=f,s.current=ia(f)}else n.current=null;o(d)},[])}}en(Yw,"usePresence");function bp(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}en(bp,"setRef");function Kw(...e){const t=v.useRef(e);return t.current=e,v.useCallback(o=>{const n=t.current;let r=!1;const a=n.map(s=>{const i=bp(s,o);return!r&&typeof i=="function"&&(r=!0),i});if(r)return()=>{for(let s=0;s<a.length;s++){const i=a[s];typeof i=="function"?i():bp(n[s],null)}}},[])}en(Kw,"useStableComposedRefs");function ia(e){return(e==null?void 0:e.animationName)||"none"}en(ia,"getAnimationName");function Xw(e){var n,r;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,o=t&&"isReactWarning"in t&&t.isReactWarning;return o?e.ref:(t=(r=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:r.get,o=t&&"isReactWarning"in t&&t.isReactWarning,o?e.props.ref:e.props.ref||e.ref)}en(Xw,"getElementRef");var l8=Object.defineProperty,c8=(e,t)=>l8(e,"name",{value:t,configurable:!0}),u8=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),Zw=v.forwardRef(c8(function(t,o){return u.jsx(Do.span,{...t,ref:o,style:{...u8,...t.style}})},"VisuallyHidden")),d8=Object.defineProperty,Ve=(e,t)=>d8(e,"name",{value:t,configurable:!0}),Jw="ToastProvider",[vp,Qw,f8]=zw("Toast"),yp={Left:"left",Right:"right"},eC={Foreground:"foreground"},[tC,tY]=qt("Toast",[f8]),[p8,Ql]=tC(Jw),h8=Ve(e=>{const{__scopeToast:t,label:o="Notification",duration:n=5e3,swipeDirection:r=yp.Right,swipeThreshold:a=50,announcerContainer:s,children:i}=e,[l,c]=v.useState(null),[d,f]=v.useState(0),p=v.useRef(!1);return o.trim()||console.error(`Invalid prop \`label\` supplied to \`${Jw}\`. Expected non-empty \`string\`.`),u.jsx(vp.Provider,{scope:t,children:u.jsx(p8,{scope:t,label:o,duration:n,swipeDirection:r,swipeThreshold:a,toastCount:d,viewport:l,onViewportChange:c,onToastAdd:v.useCallback(()=>f(g=>g+1),[]),onToastRemove:v.useCallback(()=>f(g=>g-1),[]),isClosePausedRef:p,announcerContainer:s,children:i})})},"ToastProvider"),g8="ToastViewport",m8=["F8"],wp="toast.viewportPause",Cp="toast.viewportResume",x8=v.forwardRef(Ve(function(t,o){const{__scopeToast:n,hotkey:r=m8,label:a="Notifications ({hotkey})",...s}=t,i=Ql(g8,n),l=Qw(n),c=v.useRef(null),d=v.useRef(null),f=v.useRef(null),p=v.useRef(null),g=he(o,p,i.onViewportChange),x=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),m=i.toastCount>0;v.useEffect(()=>{const y=Ve(C=>{var P;r.length!==0&&r.every(S=>C[S]||C.code===S)&&((P=p.current)==null||P.focus())},"handleKeyDown");return document.addEventListener("keydown",y),()=>document.removeEventListener("keydown",y)},[r]),v.useEffect(()=>{const y=c.current,C=p.current;if(m&&y&&C){const w=Ve(()=>{if(!i.isClosePausedRef.current){const T=new CustomEvent(wp);C.dispatchEvent(T),i.isClosePausedRef.current=!0}},"handlePause"),P=Ve(()=>{if(i.isClosePausedRef.current){const T=new CustomEvent(Cp);C.dispatchEvent(T),i.isClosePausedRef.current=!1}},"handleResume"),S=Ve(T=>{!y.contains(T.relatedTarget)&&P()},"handleFocusOutResume"),_=Ve(()=>{y.contains(document.activeElement)||P()},"handlePointerLeaveResume");return y.addEventListener("focusin",w),y.addEventListener("focusout",S),y.addEventListener("pointermove",w),y.addEventListener("pointerleave",_),window.addEventListener("blur",w),window.addEventListener("focus",P),()=>{y.removeEventListener("focusin",w),y.removeEventListener("focusout",S),y.removeEventListener("pointermove",w),y.removeEventListener("pointerleave",_),window.removeEventListener("blur",w),window.removeEventListener("focus",P)}}},[m,i.isClosePausedRef]);const b=v.useCallback(({tabbingDirection:y})=>{const w=l().map(P=>{const S=P.ref.current,_=[S,...lC(S)];return y==="forwards"?_:_.reverse()});return(y==="forwards"?w.reverse():w).flat()},[l]);return v.useEffect(()=>{const y=p.current;if(y){const C=Ve(w=>{var _,T,k;const P=w.altKey||w.ctrlKey||w.metaKey;if(w.key==="Tab"&&!P){const E=document.activeElement,D=w.shiftKey;if(w.target===y&&D){(_=d.current)==null||_.focus();return}const z=b({tabbingDirection:D?"backwards":"forwards"}),B=z.findIndex(G=>G===E);tc(z.slice(B+1))?w.preventDefault():D?(T=d.current)==null||T.focus():(k=f.current)==null||k.focus()}},"handleKeyDown");return y.addEventListener("keydown",C),()=>y.removeEventListener("keydown",C)}},[l,b]),u.jsxs(e8,{ref:c,role:"region","aria-label":a.replace("{hotkey}",x),tabIndex:-1,style:{pointerEvents:m?void 0:"none"},children:[m&&u.jsx(oC,{ref:d,onFocusFromOutsideViewport:()=>{const y=b({tabbingDirection:"forwards"});tc(y)}}),u.jsx(vp.Slot,{scope:n,children:u.jsx(Do.ol,{tabIndex:-1,...s,ref:g})}),m&&u.jsx(oC,{ref:f,onFocusFromOutsideViewport:()=>{const y=b({tabbingDirection:"backwards"});tc(y)}})]})},"ToastViewport")),b8="ToastFocusProxy",oC=v.forwardRef(Ve(function(t,o){const{__scopeToast:n,onFocusFromOutsideViewport:r,...a}=t,s=Ql(b8,n);return u.jsx(Zw,{tabIndex:0,...a,ref:o,style:{position:"fixed"},onFocus:i=>{var d;const l=i.relatedTarget;!((d=s.viewport)!=null&&d.contains(l))&&r()}})},"ToastFocusProxy")),ec="Toast",v8="toast.swipeStart",y8="toast.swipeMove",w8="toast.swipeCancel",C8="toast.swipeEnd",_8=v.forwardRef(Ve(function(t,o){const{forceMount:n,open:r,defaultOpen:a,onOpenChange:s,...i}=t,[l,c]=Un({prop:r,defaultProp:a??!0,onChange:s,caller:ec});return u.jsx(i8,{present:n||l,children:u.jsx(T8,{open:l,...i,ref:o,onClose:()=>c(!1),onPause:Ye(t.onPause),onResume:Ye(t.onResume),onSwipeStart:ne(t.onSwipeStart,d=>{d.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:ne(t.onSwipeMove,d=>{const{x:f,y:p}=d.detail.delta;d.currentTarget.setAttribute("data-swipe","move"),d.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${f}px`),d.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${p}px`)}),onSwipeCancel:ne(t.onSwipeCancel,d=>{d.currentTarget.setAttribute("data-swipe","cancel"),d.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),d.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),d.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),d.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:ne(t.onSwipeEnd,d=>{const{x:f,y:p}=d.detail.delta;d.currentTarget.setAttribute("data-swipe","end"),d.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),d.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),d.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${f}px`),d.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${p}px`),c(!1)})})})},"Toast")),[S8,P8]=tC(ec,{onClose(){}}),T8=v.forwardRef(Ve(function(t,o){const{__scopeToast:n,type:r=eC.Foreground,duration:a,open:s,onClose:i,onEscapeKeyDown:l,onPause:c,onResume:d,onSwipeStart:f,onSwipeMove:p,onSwipeCancel:g,onSwipeEnd:x,...m}=t,b=Ql(ec,n),y=Qw(n),[C,w]=v.useState(null),P=he(o,w),S=v.useRef(null),_=v.useRef(null),T=a||b.duration,k=v.useRef(0),E=v.useRef(T),D=v.useRef(0),{onToastAdd:O,onToastRemove:N}=b,z=Ye(()=>{var A;(C==null?void 0:C.contains(document.activeElement))&&((A=b.viewport)==null||A.focus()),i()}),B=v.useCallback(R=>{!R||R===1/0||(window.clearTimeout(D.current),k.current=new Date().getTime(),D.current=window.setTimeout(z,R))},[z]);v.useEffect(()=>{const R=b.viewport;if(R){const A=Ve(()=>{B(E.current),d==null||d()},"handleResume"),F=Ve(()=>{const V=new Date().getTime()-k.current;E.current=E.current-V,window.clearTimeout(D.current),c==null||c()},"handlePause");return R.addEventListener(wp,F),R.addEventListener(Cp,A),()=>{R.removeEventListener(wp,F),R.removeEventListener(Cp,A)}}},[b.viewport,T,c,d,B]),v.useEffect(()=>{E.current=T,s&&!b.isClosePausedRef.current&&B(T)},[s,T,b.isClosePausedRef,B]),v.useEffect(()=>()=>{window.clearTimeout(D.current)},[]),v.useEffect(()=>(O(),()=>N()),[O,N]);const G=v.useMemo(()=>C?_p(C):null,[C]);return b.viewport?u.jsxs(u.Fragment,{children:[G&&u.jsx(k8,{__scopeToast:n,role:"status","aria-live":r===eC.Foreground?"assertive":"polite",children:G}),u.jsx(S8,{scope:n,onClose:z,children:no.createPortal(u.jsx(vp.ItemSlot,{scope:n,children:u.jsx(Q5,{asChild:!0,onEscapeKeyDown:ne(l,R=>{y().some(F=>{var V;return(V=F.ref.current)==null?void 0:V.contains(R.target)})||z()}),children:u.jsx(Do.li,{tabIndex:0,"data-state":s?"open":"closed","data-swipe-direction":b.swipeDirection,...m,ref:P,style:{userSelect:"none",touchAction:"none",...t.style},onKeyDown:ne(t.onKeyDown,R=>{R.key==="Escape"&&(l==null||l(R.nativeEvent),R.nativeEvent.defaultPrevented||z())}),onPointerDown:ne(t.onPointerDown,R=>{R.button===0&&(S.current={x:R.clientX,y:R.clientY})}),onPointerMove:ne(t.onPointerMove,R=>{if(!S.current)return;const A=R.clientX-S.current.x,F=R.clientY-S.current.y,V=!!_.current,M=["left","right"].includes(b.swipeDirection),Y=["left","up"].includes(b.swipeDirection)?Math.min:Math.max,H=M?Y(0,A):0,L=M?0:Y(0,F),q=R.pointerType==="touch"?10:2,j={x:H,y:L},W={originalEvent:R,delta:j};V?(_.current=j,Ss(y8,p,W,{discrete:!1})):aC(j,b.swipeDirection,q)?(_.current=j,Ss(v8,f,W,{discrete:!1}),R.target.setPointerCapture(R.pointerId)):(Math.abs(A)>q||Math.abs(F)>q)&&(S.current=null)}),onPointerUp:ne(t.onPointerUp,R=>{const A=_.current,F=R.target;if(F.hasPointerCapture(R.pointerId)&&F.releasePointerCapture(R.pointerId),_.current=null,S.current=null,A){const V=R.currentTarget,M={originalEvent:R,delta:A};aC(A,b.swipeDirection,b.swipeThreshold)?Ss(C8,x,M,{discrete:!0}):Ss(w8,g,M,{discrete:!0}),V.addEventListener("click",Y=>Y.preventDefault(),{once:!0})}})})})}),b.viewport)})]}):null},"ToastImpl")),k8=Ve(e=>{const{__scopeToast:t,children:o,...n}=e,r=Ql(ec,t),[a,s]=v.useState(!1),[i,l]=v.useState(!1);return sC(()=>s(!0)),v.useEffect(()=>{const c=window.setTimeout(()=>l(!0),1e3);return()=>window.clearTimeout(c)},[]),i?null:u.jsx(a8,{asChild:!0,container:r.announcerContainer||void 0,children:u.jsx(Zw,{...n,children:a&&u.jsxs(u.Fragment,{children:[r.label," ",o]})})})},"ToastAnnounce"),E8=v.forwardRef(Ve(function(t,o){const{__scopeToast:n,...r}=t;return u.jsx(Do.div,{...r,ref:o})},"ToastTitle")),I8=v.forwardRef(Ve(function(t,o){const{__scopeToast:n,...r}=t;return u.jsx(Do.div,{...r,ref:o})},"ToastDescription")),D8="ToastAction",M8=v.forwardRef(Ve(function(t,o){const{altText:n,...r}=t;return n.trim()?u.jsx(rC,{altText:n,asChild:!0,children:u.jsx(nC,{...r,ref:o})}):(console.error(`Invalid prop \`altText\` supplied to \`${D8}\`. Expected non-empty \`string\`.`),null)},"ToastAction")),O8="ToastClose",nC=v.forwardRef(Ve(function(t,o){const{__scopeToast:n,...r}=t,a=P8(O8,n);return u.jsx(rC,{asChild:!0,children:u.jsx(Do.button,{type:"button",...r,ref:o,onClick:ne(t.onClick,a.onClose)})})},"ToastClose")),rC=v.forwardRef(Ve(function(t,o){const{__scopeToast:n,altText:r,...a}=t;return u.jsx(Do.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0,...a,ref:o})},"ToastAnnounceExclude"));function _p(e){const t=[];return Array.from(e.childNodes).forEach(n=>{if(n.nodeType===n.TEXT_NODE&&n.textContent&&t.push(n.textContent),iC(n)){const r=n.ariaHidden||n.hidden||n.style.display==="none",a=n.dataset.radixToastAnnounceExclude==="";if(!r)if(a){const s=n.dataset.radixToastAnnounceAlt;s&&t.push(s)}else t.push(..._p(n))}}),t}Ve(_p,"getAnnounceTextContent");function Ss(e,t,o,{discrete:n}){const r=o.originalEvent.currentTarget,a=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:o});t&&r.addEventListener(e,t,{once:!0}),n?pp(r,a):r.dispatchEvent(a)}Ve(Ss,"handleAndDispatchCustomEvent");var aC=Ve((e,t,o=0)=>{const n=Math.abs(e.x),r=Math.abs(e.y),a=n>r;return t===yp.Left||t===yp.Right?a&&n>o:!a&&r>o},"isDeltaInDirection");function sC(e=()=>{}){const t=Ye(e);He(()=>{let o=0,n=0;return o=window.requestAnimationFrame(()=>n=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(o),window.cancelAnimationFrame(n)}},[t])}Ve(sC,"useNextFrame");function iC(e){return e.nodeType===e.ELEMENT_NODE}Ve(iC,"isHTMLElement");function lC(e){const t=[],o=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:Ve(n=>{const r=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||r?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP},"acceptNode")});for(;o.nextNode();)t.push(o.currentNode);return t}Ve(lC,"getTabbableCandidates");function tc(e){const t=document.activeElement;return e.some(o=>o===t?!0:(o.focus(),document.activeElement!==t))}Ve(tc,"focusFirst");const A8={"ox-toast":"_ox-toast_1p1xi_2","ox-toast--info":"_ox-toast--info_1p1xi_2","ox-toast--success":"_ox-toast--success_1p1xi_2","ox-toast--warning":"_ox-toast--warning_1p1xi_2","ox-toast--error":"_ox-toast--error_1p1xi_2","ox-toast--neutral":"_ox-toast--neutral_1p1xi_2","ox-toast-in":"_ox-toast-in_1p1xi_1","ox-toast-out":"_ox-toast-out_1p1xi_1"},cC=h.createContext({type:"info"}),N8=()=>h.useContext(cC),Sp=h.forwardRef(({className:e,type:t="info",dataTestid:o,children:n,...r},a)=>u.jsx(cC.Provider,{value:{type:t},children:u.jsx(_8,{ref:a,className:$(me(A8,yC({type:t})),e),type:t==="error"?"foreground":"background","data-testid":o,...r,children:n})}));Sp.displayName="OxToast";const $8={"ox-toast-action":"_ox-toast-action_14qns_2"},Pp=h.forwardRef(({className:e,children:t,variant:o="secondary",dataTestid:n,...r},a)=>u.jsx(M8,{ref:a,asChild:!0,...r,children:u.jsx(ja,{className:$(me($8,"ox-toast-action"),e),variant:o==="primary"?"default":"outline",size:"2xs","data-testid":n,children:t})}));Pp.displayName="OxToastAction";const F8={oxToastActions:"_oxToastActions_z3tbt_2"},Tp=h.forwardRef(({className:e,children:t,dataTestid:o,...n},r)=>u.jsx("div",{ref:r,className:$(F8.oxToastActions,e),"data-testid":o,...n,children:t}));Tp.displayName="OxToastActions";const uC={"ox-toast-close":"_ox-toast-close_1fhrv_2","ox-toast-close-icon":"_ox-toast-close-icon_1fhrv_2"},kp=h.forwardRef(({className:e,dataTestid:t,...o},n)=>{const r=ve();return u.jsx(nC,{ref:n,asChild:!0,...o,children:u.jsx(jt,{className:$(me(uC,"ox-toast-close"),e),variant:"ghost",size:"2xs","aria-label":r("orxata.dialog.close"),"data-testid":t,children:u.jsx(ee,{icon:ur,className:me(uC,"ox-toast-close-icon")})})})});kp.displayName="OxToastClose";const L8={"ox-toast-description":"_ox-toast-description_16hqy_2"},Ep=h.forwardRef(({className:e,children:t,...o},n)=>u.jsx(I8,{ref:n,className:$(me(L8,"ox-toast-description"),e),"data-slot":"description",...o,children:t}));Ep.displayName="OxToastDescription";const z8={"ox-toast-icon":"_ox-toast-icon_znzrs_2"},B8={info:tp,success:aw,warning:rw,error:nw,neutral:tp},Ip=h.forwardRef(({className:e,children:t,dataTestid:o,...n},r)=>{const{type:a}=N8();return u.jsx("div",{ref:r,className:$(me(z8,"ox-toast-icon"),e),"data-slot":"icon","data-testid":o,...n,children:t??u.jsx(ee,{icon:B8[a]})})});Ip.displayName="OxToastIcon";const H8={"ox-toast-title":"_ox-toast-title_huiks_2"},Dp=h.forwardRef(({className:e,children:t,...o},n)=>u.jsx(E8,{ref:n,className:$(me(H8,"ox-toast-title"),e),"data-slot":"label",...o,children:t}));Dp.displayName="OxToastTitle";const V8={"ox-toast-viewport":"_ox-toast-viewport_1cmfc_2","ox-toast-viewport--top-left":"_ox-toast-viewport--top-left_1cmfc_2","ox-toast-viewport--top-center":"_ox-toast-viewport--top-center_1cmfc_2","ox-toast-viewport--top-right":"_ox-toast-viewport--top-right_1cmfc_2","ox-toast-viewport--bottom-left":"_ox-toast-viewport--bottom-left_1cmfc_2","ox-toast-viewport--bottom-center":"_ox-toast-viewport--bottom-center_1cmfc_2","ox-toast-viewport--bottom-right":"_ox-toast-viewport--bottom-right_1cmfc_2"};function Mp(e){var n;const{primary:t}=e.actions??{},o=((n=e.actions)==null?void 0:n.secondary)??e.action;return[...t?[{...t,variant:"primary"}]:[],...o?[{...o,variant:"secondary"}]:[]]}let Mo=[];const W8=200,Op=new Map,Ap=new Set;let dC=3,fC=0;const Np=()=>{for(const e of Ap)e()},R8=e=>(Ap.add(e),()=>{Ap.delete(e)}),pC=()=>Mo;function G8(e){dC=Math.max(1,e),hC()}function hC(){const e=Mo.filter(t=>t.open);for(const t of e.slice(0,Math.max(0,e.length-dC)))Ps(t.id)}function gC(e){fC+=1;const t=`ox-toast-${fC}`;return Mo=[...Mo,{...e,id:t,type:e.type??"info",open:!0}],Np(),hC(),t}function Ps(e){const t=Mo.find(o=>o.id===e);!t||!t.open||(Mo=Mo.map(o=>o.id===e?{...o,open:!1}:o),Op.set(e,setTimeout(()=>j8(e),W8)),Np())}function mC(){for(const e of[...Mo])Ps(e.id)}function j8(e){const t=Op.get(e);t&&clearTimeout(t),Op.delete(e),Mo=Mo.filter(o=>o.id!==e),Np()}function xC(){return{toasts:h.useSyncExternalStore(R8,pC,pC),toast:gC,dismiss:Ps,dismissAll:mC}}const U8="ox-toast",q8="ox-toast-actions",bC=h.forwardRef(({className:e,position:t="bottom-right",duration:o=5e3,max:n=3,to:r="body",children:a,...s},i)=>{const{toasts:l}=xC(),[c,d]=h.useState(null);h.useEffect(()=>{G8(n)},[n]),h.useEffect(()=>{d(typeof r=="string"?document.querySelector(r):r)},[r]);const f=u.jsxs(x8,{ref:i,className:$(me(V8,vC({position:t})),e),...s,children:[l.map(p=>u.jsxs(Sp,{type:p.type,duration:p.duration,open:p.open,dataTestid:U8,onOpenChange:g=>{g||Ps(p.id)},children:[u.jsx(Ip,{}),u.jsx(Dp,{children:p.title}),p.description?u.jsx(Ep,{children:p.description}):null,Mp(p).length>0?u.jsx(Tp,{dataTestid:q8,children:Mp(p).map(g=>u.jsx(Pp,{variant:g.variant,altText:g.altText??g.label,onClick:()=>g.onClick(),children:g.label},g.variant))}):null,u.jsx(kp,{})]},p.id)),a]});return u.jsx(h8,{duration:o,swipeDirection:wC(t),children:c?vt.createPortal(f,c):null})});bC.displayName="OxToaster";const Y8=["top-left","top-center","top-right","bottom-left","bottom-center","bottom-right"],vC=Oe("ox-toast-viewport",{variants:{position:{"top-left":"ox-toast-viewport--top-left","top-center":"ox-toast-viewport--top-center","top-right":"ox-toast-viewport--top-right","bottom-left":"ox-toast-viewport--bottom-left","bottom-center":"ox-toast-viewport--bottom-center","bottom-right":"ox-toast-viewport--bottom-right"}},defaultVariants:{position:"bottom-right"}}),yC=Oe("ox-toast",{variants:{type:{info:"ox-toast--info",success:"ox-toast--success",warning:"ox-toast--warning",error:"ox-toast--error",neutral:"ox-toast--neutral"}},defaultVariants:{type:"info"}});function wC(e){return e.endsWith("-left")?"left":e.endsWith("-right")?"right":e.startsWith("top-")?"up":"down"}function CC(e){const t=e+"CollectionProvider",[o,n]=Kt(t),[r,a]=o(t,{collectionRef:{current:null},itemMap:new Map}),s=m=>{const{scope:b,children:y}=m,C=v.useRef(null),w=v.useRef(new Map).current;return u.jsx(r,{scope:b,itemMap:w,collectionRef:C,children:y})};s.displayName=t;const i=e+"CollectionSlot",l=Or(i),c=v.forwardRef((m,b)=>{const{scope:y,children:C}=m,w=a(i,y),P=We(b,w.collectionRef);return u.jsx(l,{ref:P,children:C})});c.displayName=i;const d=e+"CollectionItemSlot",f="data-radix-collection-item",p=Or(d),g=v.forwardRef((m,b)=>{const{scope:y,children:C,...w}=m,P=v.useRef(null),S=We(b,P),_=a(d,y);return v.useEffect(()=>(_.itemMap.set(P,{ref:P,...w}),()=>void _.itemMap.delete(P))),u.jsx(p,{[f]:"",ref:S,children:C})});g.displayName=d;function x(m){const b=a(e+"CollectionConsumer",m);return v.useCallback(()=>{const C=b.collectionRef.current;if(!C)return[];const w=Array.from(C.querySelectorAll(`[${f}]`));return Array.from(b.itemMap.values()).sort((_,T)=>w.indexOf(_.ref.current)-w.indexOf(T.ref.current))},[b.collectionRef,b.itemMap])}return[{Provider:s,Slot:c,ItemSlot:g},x,n]}var K8=Object.defineProperty,Ts=(e,t)=>K8(e,"name",{value:t,configurable:!0}),$p="Collapsible",[X8,_C]=Kt($p),[Z8,Fp]=X8($p),J8=v.forwardRef(Ts(function(t,o){const{__scopeCollapsible:n,open:r,defaultOpen:a,disabled:s,onOpenChange:i,...l}=t,[c,d]=co({prop:r,defaultProp:a??!1,onChange:i,caller:$p});return u.jsx(Z8,{scope:n,disabled:s,contentId:St(),open:c,onOpenToggle:v.useCallback(()=>d(f=>!f),[d]),children:u.jsx(ye.div,{"data-state":oc(c),"data-disabled":s?"":void 0,...l,ref:o})})},"Collapsible")),Q8="CollapsibleTrigger",e9=v.forwardRef(Ts(function(t,o){const{__scopeCollapsible:n,...r}=t,a=Fp(Q8,n);return u.jsx(ye.button,{type:"button","aria-controls":a.open?a.contentId:void 0,"aria-expanded":a.open||!1,"data-state":oc(a.open),"data-disabled":a.disabled?"":void 0,disabled:a.disabled,...r,ref:o,onClick:Te(t.onClick,a.onOpenToggle)})},"CollapsibleTrigger")),SC="CollapsibleContent",t9=v.forwardRef(Ts(function(t,o){const{forceMount:n,...r}=t,a=Fp(SC,t.__scopeCollapsible);return u.jsx(lo,{present:n||a.open,children:({present:s})=>u.jsx(o9,{...r,ref:o,present:s})})},"CollapsibleContent")),o9=v.forwardRef(Ts(function(t,o){const{__scopeCollapsible:n,present:r,children:a,...s}=t,i=Fp(SC,n),[l,c]=v.useState(r),d=v.useRef(null),f=We(o,d),p=v.useRef(0),g=p.current,x=v.useRef(0),m=x.current,b=i.open||l,y=v.useRef(b),C=v.useRef(void 0);return v.useEffect(()=>{const w=requestAnimationFrame(()=>y.current=!1);return()=>cancelAnimationFrame(w)},[]),_t(()=>{const w=d.current;if(w){C.current=C.current||{transitionDuration:w.style.transitionDuration,animationName:w.style.animationName},w.style.transitionDuration="0s",w.style.animationName="none";const P=w.getBoundingClientRect();p.current=P.height,x.current=P.width,y.current||(w.style.transitionDuration=C.current.transitionDuration,w.style.animationName=C.current.animationName),c(r)}},[i.open,r]),u.jsx(ye.div,{"data-state":oc(i.open),"data-disabled":i.disabled?"":void 0,id:i.contentId,hidden:!b,...s,ref:f,style:{"--radix-collapsible-content-height":g?`${g}px`:void 0,"--radix-collapsible-content-width":m?`${m}px`:void 0,...t.style},children:b&&a})},"CollapsibleContentImpl"));function oc(e){return e?"open":"closed"}Ts(oc,"getState");var n9=J8,r9=e9,a9=t9,s9=v.createContext(void 0);function nc(e){const t=v.useContext(s9);return e||t||"ltr"}var i9=Object.defineProperty,Ft=(e,t)=>i9(e,"name",{value:t,configurable:!0}),Oo="Accordion",l9=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[Lp,c9,u9]=CC(Oo),[rc]=Kt(Oo,[u9,_C]),zp=_C(),d9=v.forwardRef(Ft(function(t,o){const{type:n,...r}=t,a=r,s=r;return u.jsx(Lp.Provider,{scope:t.__scopeAccordion,children:n==="multiple"?u.jsx(g9,{...s,ref:o}):u.jsx(h9,{...a,ref:o})})},"Accordion")),[PC,f9]=rc(Oo),[TC,p9]=rc(Oo,{collapsible:!1}),h9=v.forwardRef(Ft(function(t,o){const{value:n,defaultValue:r,onValueChange:a=Ft(()=>{},"onValueChange"),collapsible:s=!1,...i}=t,[l,c]=co({prop:n,defaultProp:r??"",onChange:a,caller:Oo});return u.jsx(PC,{scope:t.__scopeAccordion,value:v.useMemo(()=>l?[l]:[],[l]),onItemOpen:c,onItemClose:v.useCallback(()=>s&&c(""),[s,c]),children:u.jsx(TC,{scope:t.__scopeAccordion,collapsible:s,children:u.jsx(kC,{...i,ref:o})})})},"AccordionImplSingle")),g9=v.forwardRef(Ft(function(t,o){const{value:n,defaultValue:r,onValueChange:a=Ft(()=>{},"onValueChange"),...s}=t,[i,l]=co({prop:n,defaultProp:r??[],onChange:a,caller:Oo}),c=v.useCallback(f=>l((p=[])=>[...p,f]),[l]),d=v.useCallback(f=>l((p=[])=>p.filter(g=>g!==f)),[l]);return u.jsx(PC,{scope:t.__scopeAccordion,value:i,onItemOpen:c,onItemClose:d,children:u.jsx(TC,{scope:t.__scopeAccordion,collapsible:!0,children:u.jsx(kC,{...s,ref:o})})})},"AccordionImplMultiple")),[m9,ac]=rc(Oo),kC=v.forwardRef(Ft(function(t,o){const{__scopeAccordion:n,disabled:r,dir:a,orientation:s="vertical",...i}=t,l=v.useRef(null),c=We(l,o),d=c9(n),p=nc(a)==="ltr",g=Te(t.onKeyDown,x=>{var E;if(!l9.includes(x.key))return;const m=x.target,b=d().filter(D=>{var O;return!((O=D.ref.current)!=null&&O.disabled)}),y=b.findIndex(D=>D.ref.current===m),C=b.length;if(y===-1)return;x.preventDefault();let w=y;const P=0,S=C-1,_=Ft(()=>{w=y+1,w>S&&(w=P)},"moveNext"),T=Ft(()=>{w=y-1,w<P&&(w=S)},"movePrev");switch(x.key){case"Home":w=P;break;case"End":w=S;break;case"ArrowRight":s==="horizontal"&&(p?_():T());break;case"ArrowDown":s==="vertical"&&_();break;case"ArrowLeft":s==="horizontal"&&(p?T():_());break;case"ArrowUp":s==="vertical"&&T();break}const k=w%C;(E=b[k].ref.current)==null||E.focus()});return u.jsx(m9,{scope:n,disabled:r,direction:a,orientation:s,children:u.jsx(Lp.Slot,{scope:n,children:u.jsx(ye.div,{...i,"data-orientation":s,ref:c,onKeyDown:r?void 0:g})})})},"AccordionImpl")),Bp="AccordionItem",[x9,Hp]=rc(Bp),b9=v.forwardRef(Ft(function(t,o){const{__scopeAccordion:n,value:r,...a}=t,s=ac(Bp,n),i=f9(Bp,n),l=zp(n),c=St(),d=r&&i.value.includes(r)||!1,f=s.disabled||t.disabled;return u.jsx(x9,{scope:n,open:d,disabled:f,triggerId:c,children:u.jsx(n9,{"data-orientation":s.orientation,"data-state":Vp(d),...l,...a,ref:o,disabled:f,open:d,onOpenChange:p=>{p?i.onItemOpen(r):i.onItemClose(r)}})})},"AccordionItem")),v9="AccordionHeader",y9=v.forwardRef(Ft(function(t,o){const{__scopeAccordion:n,...r}=t,a=ac(Oo,n),s=Hp(v9,n);return u.jsx(ye.h3,{"data-orientation":a.orientation,"data-state":Vp(s.open),"data-disabled":s.disabled?"":void 0,...r,ref:o})},"AccordionHeader")),EC="AccordionTrigger",w9=v.forwardRef(Ft(function(t,o){const{__scopeAccordion:n,...r}=t,a=ac(Oo,n),s=Hp(EC,n),i=p9(EC,n),l=zp(n);return u.jsx(Lp.ItemSlot,{scope:n,children:u.jsx(r9,{"aria-disabled":s.open&&!i.collapsible||void 0,"data-orientation":a.orientation,id:s.triggerId,...l,...r,ref:o})})},"AccordionTrigger")),C9="AccordionContent",_9=v.forwardRef(Ft(function(t,o){const{__scopeAccordion:n,...r}=t,a=ac(Oo,n),s=Hp(C9,n),i=zp(n);return u.jsx(a9,{role:"region","aria-labelledby":s.triggerId,"data-orientation":a.orientation,...i,...r,ref:o,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...t.style}})},"AccordionContent"));function Vp(e){return e?"open":"closed"}Ft(Vp,"getState");var S9=d9,P9=b9,T9=y9,k9=w9,E9=_9;const I9={oxAccordion:"_oxAccordion_irqe1_2"},IC=h.forwardRef(({className:e,...t},o)=>u.jsx(S9,{ref:o,"data-slot":"accordion",className:$(I9.oxAccordion,e),...t}));IC.displayName="OxAccordion";const D9={oxAccordionItem:"_oxAccordionItem_flqek_2"},DC=h.forwardRef(({className:e,...t},o)=>u.jsx(P9,{ref:o,"data-slot":"accordion-item",className:$(D9.oxAccordionItem,e),...t}));DC.displayName="OxAccordionItem";const Wp={oxAccordionHeader:"_oxAccordionHeader_h83ur_2",oxAccordionTrigger:"_oxAccordionTrigger_h83ur_2",oxAccordionChevron:"_oxAccordionChevron_h83ur_2"},MC=h.forwardRef(({className:e,children:t,...o},n)=>u.jsx(T9,{className:Wp.oxAccordionHeader,children:u.jsxs(k9,{ref:n,"data-slot":"accordion-trigger",className:$(Wp.oxAccordionTrigger,e),...o,children:[t,u.jsx(ee,{icon:Co,className:Wp.oxAccordionChevron})]})}));MC.displayName="OxAccordionTrigger";const OC={oxAccordionContent:"_oxAccordionContent_e3t2z_2",oxAccordionContentInner:"_oxAccordionContentInner_e3t2z_2"},AC=h.forwardRef(({className:e,children:t,...o},n)=>u.jsx(E9,{ref:n,"data-slot":"accordion-content",className:$(OC.oxAccordionContent,e),...o,children:u.jsx("div",{className:OC.oxAccordionContentInner,children:t})}));AC.displayName="OxAccordionContent";var Rp=!1;function M9(){const[e,t]=v.useState(Rp);return v.useEffect(()=>{Rp||(Rp=!0,t(!0))},[]),e}var NC=v[" useSyncExternalStore ".trim().toString()];function O9(){return()=>{}}function A9(){return NC(O9,()=>!0,()=>!1)}var N9=typeof NC=="function"?A9:M9,$9=Object.defineProperty,dr=(e,t)=>$9(e,"name",{value:t,configurable:!0}),Gp="rovingFocusGroup.onEntryFocus",F9={bubbles:!1,cancelable:!0},sc="RovingFocusGroup",[jp,$C,L9]=CC(sc),[z9,ic]=Kt(sc,[L9]),[B9,H9]=z9(sc),V9=v.forwardRef(dr(function(t,o){return u.jsx(jp.Provider,{scope:t.__scopeRovingFocusGroup,children:u.jsx(jp.Slot,{scope:t.__scopeRovingFocusGroup,children:u.jsx(W9,{...t,ref:o})})})},"RovingFocusGroup")),W9=v.forwardRef(dr(function(t,o){const{__scopeRovingFocusGroup:n,orientation:r,loop:a=!1,dir:s,currentTabStopId:i,defaultCurrentTabStopId:l,onCurrentTabStopIdChange:c,onEntryFocus:d,preventScrollOnEntryFocus:f=!1,...p}=t,g=v.useRef(null),x=We(o,g),m=nc(s),[b,y]=co({prop:i,defaultProp:l??null,onChange:c,caller:sc}),[C,w]=v.useState(!1),P=or(d),S=$C(n),_=v.useRef(!1),[T,k]=v.useState(0);return v.useEffect(()=>{const E=g.current;if(E)return E.addEventListener(Gp,P),()=>E.removeEventListener(Gp,P)},[P]),u.jsx(B9,{scope:n,orientation:r,dir:m,loop:a,currentTabStopId:b,onItemFocus:v.useCallback(E=>y(E),[y]),onItemShiftTab:v.useCallback(()=>w(!0),[]),onFocusableItemAdd:v.useCallback(()=>k(E=>E+1),[]),onFocusableItemRemove:v.useCallback(()=>k(E=>E-1),[]),children:u.jsx(ye.div,{tabIndex:C||T===0?-1:0,"data-orientation":r,...p,ref:x,style:{outline:"none",...t.style},onMouseDown:Te(t.onMouseDown,()=>{_.current=!0}),onFocus:Te(t.onFocus,E=>{const D=!_.current;if(E.target===E.currentTarget&&D&&!C){const O=new CustomEvent(Gp,F9);if(E.currentTarget.dispatchEvent(O),!O.defaultPrevented){const N=S().filter(A=>A.focusable),z=N.find(A=>A.active),B=N.find(A=>A.id===b),R=[z,B,...N].filter(Boolean).map(A=>A.ref.current);Up(R,f)}}_.current=!1}),onBlur:Te(t.onBlur,()=>w(!1))})})},"RovingFocusGroupImpl")),R9="RovingFocusGroupItem",G9=v.forwardRef(dr(function(t,o){const{__scopeRovingFocusGroup:n,focusable:r=!0,active:a=!1,tabStopId:s,children:i,...l}=t,c=St(),d=s||c,f=H9(R9,n),p=f.currentTabStopId===d,g=$C(n),{onFocusableItemAdd:x,onFocusableItemRemove:m,currentTabStopId:b}=f,y=N9();return _t(()=>{if(!(!y||!r))return x(),()=>m()},[y,r,x,m]),v.useEffect(()=>{if(!(y||!r))return x(),()=>m()},[y,r,x,m]),u.jsx(jp.ItemSlot,{scope:n,id:d,focusable:r,active:a,children:u.jsx(ye.span,{tabIndex:p?0:-1,"data-orientation":f.orientation,...l,ref:o,onMouseDown:Te(t.onMouseDown,C=>{r?f.onItemFocus(d):C.preventDefault()}),onFocus:Te(t.onFocus,()=>f.onItemFocus(d)),onKeyDown:Te(t.onKeyDown,C=>{if(C.key==="Tab"&&C.shiftKey){f.onItemShiftTab();return}if(C.target!==C.currentTarget)return;const w=LC(C,f.orientation,f.dir);if(w!==void 0){if(C.metaKey||C.ctrlKey||C.altKey||C.shiftKey)return;C.preventDefault();let S=g().filter(_=>_.focusable).map(_=>_.ref.current);if(w==="last")S.reverse();else if(w==="prev"||w==="next"){w==="prev"&&S.reverse();const _=S.indexOf(C.currentTarget);S=f.loop?zC(S,_+1):S.slice(_+1)}setTimeout(()=>Up(S))}}),children:typeof i=="function"?i({isCurrentTabStop:p,hasTabStop:b!=null}):i})})},"RovingFocusGroupItem")),j9={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function FC(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}dr(FC,"getDirectionAwareKey");function LC(e,t,o){const n=FC(e.key,o);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(n))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(n)))return j9[n]}dr(LC,"getFocusIntent");function Up(e,t=!1){const o=document.activeElement;for(const n of e)if(n===o||(n.focus({preventScroll:t}),document.activeElement!==o))return}dr(Up,"focusFirst");function zC(e,t){return e.map((o,n)=>e[(t+n)%e.length])}dr(zC,"wrapArray");var BC=V9,HC=G9,U9=Object.defineProperty,la=(e,t)=>U9(e,"name",{value:t,configurable:!0}),qp="Tabs",[q9]=Kt(qp,[ic]),VC=ic(),[Y9,Yp]=q9(qp),K9=v.forwardRef(la(function(t,o){const{__scopeTabs:n,value:r,onValueChange:a,defaultValue:s,orientation:i="horizontal",dir:l,activationMode:c="automatic",...d}=t,f=nc(l),[p,g]=co({prop:r,onChange:a,defaultProp:s??"",caller:qp});return u.jsx(Y9,{scope:n,baseId:St(),value:p,onValueChange:g,orientation:i,dir:f,activationMode:c,children:u.jsx(ye.div,{dir:f,"data-orientation":i,...d,ref:o})})},"Tabs")),X9="TabsList",Z9=v.forwardRef(la(function(t,o){const{__scopeTabs:n,loop:r=!0,...a}=t,s=Yp(X9,n),i=VC(n);return u.jsx(BC,{asChild:!0,...i,orientation:s.orientation,dir:s.dir,loop:r,children:u.jsx(ye.div,{role:"tablist","aria-orientation":s.orientation,...a,ref:o})})},"TabsList")),J9="TabsTrigger",Q9=v.forwardRef(la(function(t,o){const{__scopeTabs:n,value:r,disabled:a=!1,...s}=t,i=Yp(J9,n),l=VC(n),c=Kp(i.baseId,r),d=Xp(i.baseId,r),f=r===i.value;return u.jsx(HC,{asChild:!0,...l,focusable:!a,active:f,children:u.jsx(ye.button,{type:"button",role:"tab","aria-selected":f,"aria-controls":d,"data-state":f?"active":"inactive","data-disabled":a?"":void 0,disabled:a,id:c,...s,ref:o,onMouseDown:Te(t.onMouseDown,p=>{!a&&p.button===0&&p.ctrlKey===!1?i.onValueChange(r):p.preventDefault()}),onKeyDown:Te(t.onKeyDown,p=>{a||p.target!==p.currentTarget||[" ","Enter"].includes(p.key)&&i.onValueChange(r)}),onFocus:Te(t.onFocus,()=>{const p=i.activationMode!=="manual";!f&&!a&&p&&i.onValueChange(r)})})})},"TabsTrigger")),e7="TabsContent",t7=v.forwardRef(la(function(t,o){const{__scopeTabs:n,value:r,forceMount:a,children:s,...i}=t,l=Yp(e7,n),c=Kp(l.baseId,r),d=Xp(l.baseId,r),f=r===l.value,p=v.useRef(f);return v.useEffect(()=>{const g=requestAnimationFrame(()=>p.current=!1);return()=>cancelAnimationFrame(g)},[]),u.jsx(lo,{present:a||f,children:({present:g})=>u.jsx(ye.div,{"data-state":f?"active":"inactive","data-orientation":l.orientation,role:"tabpanel","aria-labelledby":c,hidden:!g,id:d,tabIndex:0,...i,ref:o,style:{...t.style,animationDuration:p.current?"0s":void 0},children:g&&s})})},"TabsContent"));function Kp(e,t){return`${e}-trigger-${t}`}la(Kp,"makeTriggerId");function Xp(e,t){return`${e}-content-${t}`}la(Xp,"makeContentId");var WC=K9,RC=Z9,GC=Q9,jC=t7;const o7={oxTabs:"_oxTabs_puvp3_2"},UC=h.forwardRef(({className:e,value:t,defaultValue:o,onValueChange:n,activationMode:r="automatic",dataTestid:a,children:s,...i},l)=>{const[c,d]=h.useState(t??o),[f,p]=h.useState(t),g=t!==void 0&&n!==void 0;return!g&&t!==void 0&&t!==f&&(p(t),d(t)),u.jsx(WC,{ref:l,"data-slot":"tabs","data-testid":a,className:$(o7.oxTabs,e),value:g?t:c,onValueChange:x=>{g||d(x),n==null||n(x)},activationMode:r,...i,children:s})});UC.displayName="OxTabs";const n7={oxTabsList:"_oxTabsList_8bq29_2"},qC=h.forwardRef(({className:e,loop:t=!0,children:o,...n},r)=>u.jsx(RC,{ref:r,"data-slot":"tabs-list",loop:t,className:$(n7.oxTabsList,e),...n,children:o}));qC.displayName="OxTabsList";const r7={oxTabsTrigger:"_oxTabsTrigger_pud1y_2"},YC=h.forwardRef(({className:e,children:t,...o},n)=>u.jsx(GC,{ref:n,"data-slot":"tabs-trigger",className:$(r7.oxTabsTrigger,e),...o,children:t}));YC.displayName="OxTabsTrigger";const a7={oxTabsContent:"_oxTabsContent_1u67l_2"},KC=h.forwardRef(({className:e,children:t,...o},n)=>u.jsx(jC,{ref:n,"data-slot":"tabs-content",className:$(a7.oxTabsContent,e),...o,children:t}));KC.displayName="OxTabsContent";const s7={oxToggleTabs:"_oxToggleTabs_1grj2_2"},XC=h.forwardRef(({className:e,orientation:t="horizontal",dataTestid:o,...n},r)=>u.jsx(WC,{ref:r,"data-slot":"toggle-tabs","data-testid":o,orientation:t,className:$(s7.oxToggleTabs,e),...n}));XC.displayName="OxToggleTabs";const ZC={oxToggleTabsList:"_oxToggleTabsList_8dtvs_2",oxToggleTabsPill:"_oxToggleTabsPill_8dtvs_2"},JC='[data-slot="toggle-tabs-trigger"]',i7=`${JC}[data-state="active"]`,l7='[data-slot="toggle-tabs-pill"]';function c7(e){h.useEffect(()=>{const t=e.current;if(!t)return;let o=null,n=null,r=0;const a=l=>{l.dataset.ready==="true"||r!==0||(r=requestAnimationFrame(()=>{r=0,l.dataset.ready="true"}))},s=()=>{const l=t.querySelector(l7);if(!l)return;const c=t.querySelector(i7);if(!c){l.removeAttribute("data-ready");return}const d=c.getBoundingClientRect();if(d.width===0&&d.height===0)return;const f=t.getBoundingClientRect(),p=d.left-f.left-t.clientLeft,g=d.top-f.top-t.clientTop;t.style.setProperty("--ox-toggle-tabs-pill-x",`${p}px`),t.style.setProperty("--ox-toggle-tabs-pill-y",`${g}px`),t.style.setProperty("--ox-toggle-tabs-pill-width",`${d.width}px`),t.style.setProperty("--ox-toggle-tabs-pill-height",`${d.height}px`),a(l)},i=()=>{if(o){o.disconnect(),o.observe(t);for(const l of t.querySelectorAll(JC))o.observe(l)}};return s(),typeof ResizeObserver<"u"&&(o=new ResizeObserver(s),i()),typeof MutationObserver<"u"&&(n=new MutationObserver(()=>{i(),s()}),n.observe(t,{subtree:!0,childList:!0,characterData:!0,attributes:!0,attributeFilter:["data-state"]})),()=>{o==null||o.disconnect(),o=null,n==null||n.disconnect(),n=null,r!==0&&cancelAnimationFrame(r),r=0}},[e])}const QC=h.forwardRef(({className:e,loop:t=!0,size:o="sm",children:n,...r},a)=>{const s=h.useRef(null);c7(s);const i=h.useCallback(l=>{s.current=l,typeof a=="function"?a(l):a&&(a.current=l)},[a]);return u.jsxs(RC,{ref:i,"data-slot":"toggle-tabs-list","data-size":o,loop:t,className:$(ZC.oxToggleTabsList,e),...r,children:[u.jsx("span",{className:ZC.oxToggleTabsPill,"data-slot":"toggle-tabs-pill","aria-hidden":"true"}),n]})});QC.displayName="OxToggleTabsList";const u7={oxToggleTabsTrigger:"_oxToggleTabsTrigger_13b54_2"},e_=h.forwardRef(({className:e,...t},o)=>u.jsx(GC,{ref:o,"data-slot":"toggle-tabs-trigger",className:$(u7.oxToggleTabsTrigger,e),...t}));e_.displayName="OxToggleTabsTrigger";const d7={oxToggleTabsContent:"_oxToggleTabsContent_1uvag_2"},t_=h.forwardRef(({className:e,...t},o)=>u.jsx(jC,{ref:o,"data-slot":"toggle-tabs-content",className:$(d7.oxToggleTabsContent,e),...t}));t_.displayName="OxToggleTabsContent";const ca={oxStepper:"_oxStepper_5m3ky_2",oxStepperHeader:"_oxStepperHeader_5m3ky_2",oxStepperHeaderTitle:"_oxStepperHeaderTitle_5m3ky_2",oxStepperHeaderDescription:"_oxStepperHeaderDescription_5m3ky_2",oxStepperList:"_oxStepperList_5m3ky_2",oxStepperPill:"_oxStepperPill_5m3ky_2"},o_=h.createContext(null),n_=()=>{const e=h.useContext(o_);if(!e)throw new Error("OxStepperItem must be used inside an OxStepper.");return e},r_=(e,t,o=!1)=>o?"error":e<t?"completed":e===t?"current":"upcoming",a_=(e,t,o,n=!1)=>e!==t&&(n||e<=o),s_='[data-slot="step-control"]',f7=`[data-slot="step"][data-state="current"] ${s_}`,p7='[data-slot="stepper-pill"]';function h7(e){h.useEffect(()=>{const t=e.current;if(!t)return;let o=null,n=null,r=0;const a=l=>{l.dataset.ready==="true"||r!==0||(r=requestAnimationFrame(()=>{r=0,l.dataset.ready="true"}))},s=()=>{const l=t.querySelector(p7);if(!l)return;const c=t.querySelector(f7);if(!c){l.removeAttribute("data-ready");return}const d=c.getBoundingClientRect();if(d.width===0&&d.height===0)return;const f=t.getBoundingClientRect(),p=d.left-f.left-t.clientLeft,g=d.top-f.top-t.clientTop;t.style.setProperty("--ox-stepper-pill-x",`${p}px`),t.style.setProperty("--ox-stepper-pill-y",`${g}px`),t.style.setProperty("--ox-stepper-pill-width",`${d.width}px`),t.style.setProperty("--ox-stepper-pill-height",`${d.height}px`),a(l)},i=()=>{if(o){o.disconnect(),o.observe(t);for(const l of t.querySelectorAll(s_))o.observe(l)}};return s(),typeof ResizeObserver<"u"&&(o=new ResizeObserver(s),i()),typeof MutationObserver<"u"&&(n=new MutationObserver(()=>{i(),s()}),n.observe(t,{subtree:!0,childList:!0,characterData:!0,attributes:!0,attributeFilter:["data-state"]})),()=>{o==null||o.disconnect(),o=null,n==null||n.disconnect(),n=null,r!==0&&cancelAnimationFrame(r),r=0}},[e])}const i_=h.forwardRef(({className:e,orientation:t="horizontal",current:o,defaultCurrent:n=1,onCurrentChange:r,header:a,headerDescription:s,dataTestid:i,children:l,...c},d)=>{const[f,p]=h.useState(o??n),[g,x]=h.useState(o),m=o!==void 0&&r!==void 0;!m&&o!==void 0&&o!==g&&(x(o),p(o));const b=m?o:f,[y,C]=h.useState(b);b>y&&C(b);const w=h.useRef(null);h7(w);const P=h.useCallback(S=>{m||p(S),r==null||r(S)},[m,r]);return u.jsxs("div",{ref:d,"data-slot":"stepper","data-orientation":t,"data-testid":i,className:$(ca.oxStepper,e),...c,children:[a!=null?u.jsxs("div",{className:ca.oxStepperHeader,"data-slot":"stepper-header",children:[u.jsx("p",{className:ca.oxStepperHeaderTitle,children:a}),s!=null?u.jsx("p",{className:ca.oxStepperHeaderDescription,children:s}):null]}):null,u.jsx(o_.Provider,{value:{current:b,furthest:y,orientation:t,dataTestid:i,goTo:P},children:u.jsxs("ol",{ref:w,className:ca.oxStepperList,"data-testid":`${i}-list`,children:[u.jsx("li",{className:ca.oxStepperPill,"data-slot":"stepper-pill","aria-hidden":"true"}),l]})})]})});i_.displayName="OxStepper";const ho={oxStepperItem:"_oxStepperItem_2wnb8_2",oxStepperItemControl:"_oxStepperItemControl_2wnb8_2",oxStepperItemRail:"_oxStepperItemRail_2wnb8_2",oxStepperItemIndicator:"_oxStepperItemIndicator_2wnb8_2",oxStepperItemNumber:"_oxStepperItemNumber_2wnb8_2",oxStepperItemCheck:"_oxStepperItemCheck_2wnb8_2",oxStepperItemConnector:"_oxStepperItemConnector_2wnb8_2",oxStepperItemContent:"_oxStepperItemContent_2wnb8_2",oxStepperItemLabel:"_oxStepperItemLabel_2wnb8_2",oxStepperItemDescription:"_oxStepperItemDescription_2wnb8_2"},l_=h.forwardRef(({className:e,step:t,error:o=!1,description:n,children:r,...a},s)=>{const i=n_(),l=r_(t,i.current,o),c=t===i.current,d=a_(t,i.current,i.furthest,o),f=u.jsxs(u.Fragment,{children:[u.jsxs("span",{className:ho.oxStepperItemRail,children:[u.jsx("span",{className:ho.oxStepperItemIndicator,"data-slot":"step-indicator","aria-hidden":"true",children:l==="completed"?u.jsx(ee,{icon:wn,className:ho.oxStepperItemCheck}):u.jsx("span",{className:ho.oxStepperItemNumber,children:l==="error"?"!":t})}),u.jsx("span",{className:ho.oxStepperItemConnector,"data-slot":"step-connector","aria-hidden":"true"})]}),u.jsxs("span",{className:ho.oxStepperItemContent,children:[u.jsx("span",{className:ho.oxStepperItemLabel,"data-slot":"step-label",children:r}),n!=null?u.jsx("span",{className:ho.oxStepperItemDescription,"data-slot":"step-description",children:n}):null]})]});return u.jsx("li",{ref:s,"data-slot":"step","data-state":l,"data-orientation":i.orientation,"data-testid":`${i.dataTestid}-step-${t}`,"aria-current":c?"step":void 0,className:$(ho.oxStepperItem,e),...a,children:d?u.jsx("button",{type:"button","data-slot":"step-control",className:ho.oxStepperItemControl,onClick:()=>i.goTo(t),children:f}):u.jsx("div",{"data-slot":"step-control",className:ho.oxStepperItemControl,children:f})})});l_.displayName="OxStepperItem";const c_={oxStepperSubsteps:"_oxStepperSubsteps_186p8_2",oxStepperSubstep:"_oxStepperSubstep_186p8_2"},u_=h.forwardRef(({className:e,count:t,current:o=1,dataTestid:n,...r},a)=>{const s=Array.from({length:Math.max(0,Math.trunc(t))},(l,c)=>c+1),i=Math.min(Math.max(1,Math.trunc(o)),Math.max(1,t));return u.jsx("div",{ref:a,"data-slot":"substeps","data-testid":n,"aria-hidden":"true",className:$(c_.oxStepperSubsteps,e),...r,children:s.map(l=>u.jsx("span",{className:c_.oxStepperSubstep,"data-state":l<=i?"reached":"upcoming","data-testid":`${n}-dot-${l}`},l))})});u_.displayName="OxStepperSubsteps";const Zp={oxPageControl:"_oxPageControl_1086x_2",oxPageControlDot:"_oxPageControlDot_1086x_2",oxPageControlLabel:"_oxPageControlLabel_1086x_2"},d_=h.forwardRef(({className:e,count:t,index:o=0,interactive:n=!1,onIndexChange:r,dataTestid:a,...s},i)=>{const l=Math.min(Math.max(0,Math.trunc(o)),Math.max(0,t-1));return u.jsx("div",{ref:i,"data-slot":"page-control","data-testid":a,className:$(Zp.oxPageControl,e),...s,children:f_(t,l).map(c=>{const d={className:Zp.oxPageControlDot,"data-size":c.size,"data-active":c.index===l,"data-testid":`${a}-dot-${c.index}`};return n?u.jsx("button",{type:"button","data-slot":"page-control-dot","aria-current":c.index===l?"page":void 0,onClick:()=>r==null?void 0:r(c.index),...d,children:u.jsx("span",{className:Zp.oxPageControlLabel,children:c.index+1})},c.index):u.jsx("span",{"data-slot":"page-control-dot",...d},c.index)})})});d_.displayName="OxPageControl";const fr=7,f_=(e,t)=>{const o=Math.max(0,Math.trunc(e));if(o===0)return[];if(o<=fr)return Array.from({length:o},(l,c)=>({index:c,size:"full"}));const n=Math.min(Math.max(0,Math.trunc(t)),o-1),r=Math.min(Math.max(0,n-Math.floor(fr/2)),o-fr),a=r>0,s=r+fr<o,i=fr-1;return Array.from({length:fr},(l,c)=>{let d="full";return a&&c===0?d="small":a&&c===1&&(d="medium"),s&&c===i?d="small":s&&c===i-1&&(d="medium"),{index:r+c,size:d}})},g7={oxBreadcrumb:"_oxBreadcrumb_1baee_2"},p_=h.forwardRef(({className:e,...t},o)=>{const n=ve();return u.jsx("nav",{ref:o,"data-slot":"breadcrumb","aria-label":n("orxata.breadcrumb.label"),className:$(g7.oxBreadcrumb,e),...t})});p_.displayName="OxBreadcrumb";const m7={oxBreadcrumbList:"_oxBreadcrumbList_1tsca_2"},h_=h.forwardRef(({className:e,...t},o)=>u.jsx("ol",{ref:o,"data-slot":"breadcrumb-list",className:$(m7.oxBreadcrumbList,e),...t}));h_.displayName="OxBreadcrumbList";const x7={oxBreadcrumbItem:"_oxBreadcrumbItem_67rk1_2"},g_=h.forwardRef(({className:e,...t},o)=>u.jsx("li",{ref:o,"data-slot":"breadcrumb-item",className:$(x7.oxBreadcrumbItem,e),...t}));g_.displayName="OxBreadcrumbItem";const m_={oxBreadcrumbLink:"_oxBreadcrumbLink_sjo2m_2",oxBreadcrumbLinkCurrent:"_oxBreadcrumbLinkCurrent_sjo2m_2"},x_=h.forwardRef(({className:e,asChild:t=!1,current:o=!1,href:n,...r},a)=>{const s=t?Ho:"a";return u.jsx(s,{ref:a,href:t?void 0:n,"data-slot":"breadcrumb-link",className:$(m_.oxBreadcrumbLink,o&&m_.oxBreadcrumbLinkCurrent,e),...r})});x_.displayName="OxBreadcrumbLink";const b7={oxBreadcrumbPage:"_oxBreadcrumbPage_13kk4_2"},b_=h.forwardRef(({className:e,...t},o)=>u.jsx("span",{ref:o,role:"link","aria-disabled":"true","aria-current":"page","data-slot":"breadcrumb-page",className:$(b7.oxBreadcrumbPage,e),...t}));b_.displayName="OxBreadcrumbPage";const v_={oxBreadcrumbSeparator:"_oxBreadcrumbSeparator_10ov8_2",oxBreadcrumbSeparatorIcon:"_oxBreadcrumbSeparatorIcon_10ov8_2"},y_=h.forwardRef(({className:e,children:t,dataTestid:o,...n},r)=>u.jsx("li",{ref:r,role:"presentation","aria-hidden":"true","data-slot":"breadcrumb-separator","data-testid":o,className:$(v_.oxBreadcrumbSeparator,e),...n,children:t??u.jsx("svg",{"data-testid":`${o}-icon`,className:v_.oxBreadcrumbSeparatorIcon,xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:u.jsx("path",{d:"m9 18 6-6-6-6"})})}));y_.displayName="OxBreadcrumbSeparator";const Jp={oxBreadcrumbEllipsis:"_oxBreadcrumbEllipsis_cg9sx_2",oxBreadcrumbEllipsisIcon:"_oxBreadcrumbEllipsisIcon_cg9sx_2",oxSrOnly:"_oxSrOnly_cg9sx_2"},w_=h.forwardRef(({className:e,children:t,dataTestid:o,...n},r)=>{const a=ve();return u.jsxs("span",{ref:r,role:"presentation","aria-hidden":"true","data-slot":"breadcrumb-ellipsis","data-testid":o,className:$(Jp.oxBreadcrumbEllipsis,e),...n,children:[t??u.jsxs("svg",{"data-testid":`${o}-icon`,className:Jp.oxBreadcrumbEllipsisIcon,xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[u.jsx("circle",{cx:"12",cy:"12",r:"1"}),u.jsx("circle",{cx:"19",cy:"12",r:"1"}),u.jsx("circle",{cx:"5",cy:"12",r:"1"})]}),u.jsx("span",{className:Jp.oxSrOnly,children:a("orxata.breadcrumb.more")})]})});w_.displayName="OxBreadcrumbEllipsis";const C_={"ox-counter":"_ox-counter_uflku_2","ox-counter--over":"_ox-counter--over_uflku_2","ox-counter-value":"_ox-counter-value_uflku_2"},Qp=h.forwardRef(({className:e,value:t,max:o,dataTestid:n,...r},a)=>{const s=t>o?"over":"within";return u.jsxs("span",{ref:a,className:$(me(C_,__({state:s})),e),"data-slot":"counter","data-testid":n,...r,children:[u.jsx("span",{className:C_["ox-counter-value"],children:t}),"/",o]})});Qp.displayName="OxCounter";const __=Oe("ox-counter",{variants:{state:{within:"ox-counter--within",over:"ox-counter--over"}},defaultVariants:{state:"within"}}),eh=h.createContext(null);function ks(){return h.useContext(eh)??void 0}function S_(e){return e.variant==="error"?!0:void 0}function P_(e){const t=[e.hasDescription?e.descriptionId:void 0,e.hasMessage?e.messageId:void 0].filter(Boolean);return t.length>0?t.join(" "):void 0}function th(e){const t=ks(),o=t==null?void 0:t.register;return h.useEffect(()=>o==null?void 0:o(e),[o,e]),t}function Tt(e){const t=ks(),o=h.useId(),n=t?e??o:e,r=t==null?void 0:t.claimControl;return h.useEffect(()=>{if(!(!r||n===void 0))return r(n)},[r,n]),t?{id:n,"aria-invalid":S_(t),"aria-describedby":P_(t)}:{id:e}}function Es(){const e=ks();return e?{"aria-labelledby":e.hasLabel?e.labelId:void 0,"aria-invalid":S_(e),"aria-describedby":P_(e)}:{}}function v7(){const e=th("label");return e?{id:e.labelId,htmlFor:e.controlId}:{}}function y7(){const e=th("description");return e?{id:e.descriptionId}:{}}function w7(){const e=th("message");return{id:e==null?void 0:e.messageId,variant:e==null?void 0:e.variant}}function T_(e){const t=h.useId(),[o,n]=h.useState(0),[r,a]=h.useState(0),[s,i]=h.useState(0),[l,c]=h.useState(void 0),d=h.useRef(!1),f=h.useCallback(g=>{const x=g==="label"?n:g==="description"?a:i;return x(m=>m+1),()=>x(m=>m-1)},[]),p=h.useCallback(g=>d.current?()=>{}:(d.current=!0,c(g),()=>{d.current=!1,c(void 0)}),[]);return h.useMemo(()=>({labelId:`${t}-label`,descriptionId:`${t}-description`,messageId:`${t}-message`,controlId:l,variant:e,hasLabel:o>0,hasDescription:r>0,hasMessage:s>0,register:f,claimControl:p}),[t,l,e,o,r,s,f,p])}function C7(){const e=ks(),t=T_((e==null?void 0:e.variant)??"default"),o=e==null?void 0:e.messageId,n=e==null?void 0:e.hasMessage,r=e==null?void 0:e.register,a=t.register,s=h.useCallback(i=>i==="message"&&r?r(i):a(i),[r,a]);return h.useMemo(()=>o===void 0?t:{...t,messageId:o,hasMessage:n??!1,register:s},[t,o,n,s])}const Is={oxFieldGroup:"_oxFieldGroup_1sicd_2",oxFieldGroupError:"_oxFieldGroupError_1sicd_2",oxFieldGroupWarning:"_oxFieldGroupWarning_1sicd_2",oxFieldGroupSuccess:"_oxFieldGroupSuccess_1sicd_2"},_7={default:Is.fieldGroupDefault,error:Is.oxFieldGroupError,success:Is.oxFieldGroupSuccess,warning:Is.oxFieldGroupWarning},k_=h.forwardRef(({className:e,variant:t="default",children:o,...n},r)=>{const a=T_(t);return u.jsx(eh.Provider,{value:a,children:u.jsx("div",{ref:r,"data-slot":"field-group",className:$(Is.oxFieldGroup,_7[t],e),...n,children:o})})});k_.displayName="OxFieldGroup";const S7={oxFieldLabel:"_oxFieldLabel_nllu8_2"},E_=h.forwardRef(({className:e,children:t,...o},n)=>{const r=v7();return u.jsx("label",{ref:n,...r,"data-slot":"label",className:$(S7.oxFieldLabel,e),...o,children:t})});E_.displayName="OxFieldLabel";const lc={oxFieldMessage:"_oxFieldMessage_1wvmt_2",oxFieldMessageError:"_oxFieldMessageError_1wvmt_2",oxFieldMessageSuccess:"_oxFieldMessageSuccess_1wvmt_2",oxFieldMessageWarning:"_oxFieldMessageWarning_1wvmt_2"},P7={default:void 0,error:lc.oxFieldMessageError,success:lc.oxFieldMessageSuccess,warning:lc.oxFieldMessageWarning},I_=h.forwardRef(({className:e,variant:t,children:o,...n},r)=>{const a=w7(),s=t??a.variant??"default";return u.jsx("div",{ref:r,id:a.id,"data-slot":"message",role:s==="error"?"alert":void 0,className:$(lc.oxFieldMessage,P7[s],e),...n,children:o})});I_.displayName="OxFieldMessage";const D_=`<svg width="1.2em" height="1.2em" stroke-color="currentColor" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24">
|
|
213
|
-
<g class="icon-sesame-ia">
|
|
214
|
-
<path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="m20 12-.524-2.003-.819-3.21a2 2 0 0 0-1.443-1.444l-3.21-.819-3.19-.896a2 2 0 0 0-1.973.528L6.527 6.527l-2.37 2.315a2 2 0 0 0-.53 1.972l.897 3.19.819 3.21a2 2 0 0 0 1.443 1.444l3.21.819L12 20m1-3a4 4 0 0 1 4 4 4 4 0 0 1 4-4 4 4 0 0 1-4-4 4 4 0 0 1-4 4Z" class="Star 5"/>
|
|
215
|
-
</g>
|
|
216
|
-
</svg>
|
|
217
|
-
`;var M_=1,T7=.9,k7=.8,E7=.17,oh=.1,nh=.999,I7=.9999,D7=.99,M7=/[\\\/_+.#"@\[\(\{&]/,O7=/[\\\/_+.#"@\[\(\{&]/g,A7=/[\s-]/,O_=/[\s-]/g;function rh(e,t,o,n,r,a,s){if(a===t.length)return r===e.length?M_:D7;var i=`${r},${a}`;if(s[i]!==void 0)return s[i];for(var l=n.charAt(a),c=o.indexOf(l,r),d=0,f,p,g,x;c>=0;)f=rh(e,t,o,n,c+1,a+1,s),f>d&&(c===r?f*=M_:M7.test(e.charAt(c-1))?(f*=k7,g=e.slice(r,c-1).match(O7),g&&r>0&&(f*=Math.pow(nh,g.length))):A7.test(e.charAt(c-1))?(f*=T7,x=e.slice(r,c-1).match(O_),x&&r>0&&(f*=Math.pow(nh,x.length))):(f*=E7,r>0&&(f*=Math.pow(nh,c-r))),e.charAt(c)!==t.charAt(a)&&(f*=I7)),(f<oh&&o.charAt(c-1)===n.charAt(a+1)||n.charAt(a+1)===n.charAt(a)&&o.charAt(c-1)!==n.charAt(a))&&(p=rh(e,t,o,n,c+1,a+2,s),p*oh>f&&(f=p*oh)),f>d&&(d=f),c=o.indexOf(l,c+1);return s[i]=d,d}function A_(e){return e.toLowerCase().replace(O_," ")}function N7(e,t,o){return e=o&&o.length>0?`${e+" "+o.join(" ")}`:e,rh(e,t,A_(e),A_(t),0,0,{})}var Ds='[cmdk-group=""]',ah='[cmdk-group-items=""]',$7='[cmdk-group-heading=""]',N_='[cmdk-item=""]',$_=`${N_}:not([aria-disabled="true"])`,sh="cmdk-item-select",ua="data-value",F7=(e,t,o)=>N7(e,t,o),F_=v.createContext(void 0),Ms=()=>v.useContext(F_),L_=v.createContext(void 0),ih=()=>v.useContext(L_),z_=v.createContext(void 0),B_=v.forwardRef((e,t)=>{let o=da(()=>{var H,L;return{search:"",value:(L=(H=e.value)!=null?H:e.defaultValue)!=null?L:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),n=da(()=>new Set),r=da(()=>new Map),a=da(()=>new Map),s=da(()=>new Set),i=W_(e),{label:l,children:c,value:d,onValueChange:f,filter:p,shouldFilter:g,loop:x,disablePointerSelection:m=!1,vimBindings:b=!0,...y}=e,C=St(),w=St(),P=St(),S=v.useRef(null),_=V7();pr(()=>{if(d!==void 0){let H=d.trim();o.current.value=H,T.emit()}},[d]),pr(()=>{_(6,z)},[]);let T=v.useMemo(()=>({subscribe:H=>(s.current.add(H),()=>s.current.delete(H)),snapshot:()=>o.current,setState:(H,L,q)=>{var j,W,U,K;if(!Object.is(o.current[H],L)){if(o.current[H]=L,H==="search")N(),D(),_(1,O);else if(H==="value"){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let J=document.getElementById(P);J?J.focus():(j=document.getElementById(C))==null||j.focus()}if(_(7,()=>{var J;o.current.selectedItemId=(J=B())==null?void 0:J.id,T.emit()}),q||_(5,z),((W=i.current)==null?void 0:W.value)!==void 0){let J=L??"";(K=(U=i.current).onValueChange)==null||K.call(U,J);return}}T.emit()}},emit:()=>{s.current.forEach(H=>H())}}),[]),k=v.useMemo(()=>({value:(H,L,q)=>{var j;L!==((j=a.current.get(H))==null?void 0:j.value)&&(a.current.set(H,{value:L,keywords:q}),o.current.filtered.items.set(H,E(L,q)),_(2,()=>{D(),T.emit()}))},item:(H,L)=>(n.current.add(H),L&&(r.current.has(L)?r.current.get(L).add(H):r.current.set(L,new Set([H]))),_(3,()=>{N(),D(),o.current.value||O(),T.emit()}),()=>{a.current.delete(H),n.current.delete(H),o.current.filtered.items.delete(H);let q=B();_(4,()=>{N(),(q==null?void 0:q.getAttribute("id"))===H&&O(),T.emit()})}),group:H=>(r.current.has(H)||r.current.set(H,new Set),()=>{a.current.delete(H),r.current.delete(H)}),filter:()=>i.current.shouldFilter,label:l||e["aria-label"],getDisablePointerSelection:()=>i.current.disablePointerSelection,listId:C,inputId:P,labelId:w,listInnerRef:S}),[]);function E(H,L){var q,j;let W=(j=(q=i.current)==null?void 0:q.filter)!=null?j:F7;return H?W(H,o.current.search,L):0}function D(){if(!o.current.search||i.current.shouldFilter===!1)return;let H=o.current.filtered.items,L=[];o.current.filtered.groups.forEach(j=>{let W=r.current.get(j),U=0;W.forEach(K=>{let J=H.get(K);U=Math.max(J,U)}),L.push([j,U])});let q=S.current;G().sort((j,W)=>{var U,K;let J=j.getAttribute("id"),Z=W.getAttribute("id");return((U=H.get(Z))!=null?U:0)-((K=H.get(J))!=null?K:0)}).forEach(j=>{let W=j.closest(ah);W?W.appendChild(j.parentElement===W?j:j.closest(`${ah} > *`)):q.appendChild(j.parentElement===q?j:j.closest(`${ah} > *`))}),L.sort((j,W)=>W[1]-j[1]).forEach(j=>{var W;let U=(W=S.current)==null?void 0:W.querySelector(`${Ds}[${ua}="${encodeURIComponent(j[0])}"]`);U==null||U.parentElement.appendChild(U)})}function O(){let H=G().find(q=>q.getAttribute("aria-disabled")!=="true"),L=H==null?void 0:H.getAttribute(ua);T.setState("value",L||void 0)}function N(){var H,L,q,j;if(!o.current.search||i.current.shouldFilter===!1){o.current.filtered.count=n.current.size;return}o.current.filtered.groups=new Set;let W=0;for(let U of n.current){let K=(L=(H=a.current.get(U))==null?void 0:H.value)!=null?L:"",J=(j=(q=a.current.get(U))==null?void 0:q.keywords)!=null?j:[],Z=E(K,J);o.current.filtered.items.set(U,Z),Z>0&&W++}for(let[U,K]of r.current)for(let J of K)if(o.current.filtered.items.get(J)>0){o.current.filtered.groups.add(U);break}o.current.filtered.count=W}function z(){var H,L,q;let j=B();j&&(((H=j.parentElement)==null?void 0:H.firstChild)===j&&((q=(L=j.closest(Ds))==null?void 0:L.querySelector($7))==null||q.scrollIntoView({block:"nearest"})),j.scrollIntoView({block:"nearest"}))}function B(){var H;return(H=S.current)==null?void 0:H.querySelector(`${N_}[aria-selected="true"]`)}function G(){var H;return Array.from(((H=S.current)==null?void 0:H.querySelectorAll($_))||[])}function R(H){let L=G()[H];L&&T.setState("value",L.getAttribute(ua))}function A(H){var L;let q=B(),j=G(),W=j.findIndex(K=>K===q),U=j[W+H];(L=i.current)!=null&&L.loop&&(U=W+H<0?j[j.length-1]:W+H===j.length?j[0]:j[W+H]),U&&T.setState("value",U.getAttribute(ua))}function F(H){let L=B(),q=L==null?void 0:L.closest(Ds),j;for(;q&&!j;)q=H>0?B7(q,Ds):H7(q,Ds),j=q==null?void 0:q.querySelector($_);j?T.setState("value",j.getAttribute(ua)):A(H)}let V=()=>R(G().length-1),M=H=>{H.preventDefault(),H.metaKey?V():H.altKey?F(1):A(1)},Y=H=>{H.preventDefault(),H.metaKey?R(0):H.altKey?F(-1):A(-1)};return v.createElement(ye.div,{ref:t,tabIndex:-1,...y,"cmdk-root":"",onKeyDown:H=>{var L;(L=y.onKeyDown)==null||L.call(y,H);let q=H.nativeEvent.isComposing||H.keyCode===229;if(!(H.defaultPrevented||q))switch(H.key){case"n":case"j":{b&&H.ctrlKey&&M(H);break}case"ArrowDown":{M(H);break}case"p":case"k":{b&&H.ctrlKey&&Y(H);break}case"ArrowUp":{Y(H);break}case"Home":{H.preventDefault(),R(0);break}case"End":{H.preventDefault(),V();break}case"Enter":{H.preventDefault();let j=B();if(j){let W=new Event(sh);j.dispatchEvent(W)}}}}},v.createElement("label",{"cmdk-label":"",htmlFor:k.inputId,id:k.labelId,style:R7},l),dc(e,H=>v.createElement(L_.Provider,{value:T},v.createElement(F_.Provider,{value:k},H))))}),Os=v.forwardRef((e,t)=>{var o,n;let r=St(),a=v.useRef(null),s=v.useContext(z_),i=Ms(),l=W_(e),c=(n=(o=l.current)==null?void 0:o.forceMount)!=null?n:s==null?void 0:s.forceMount;pr(()=>{if(!c)return i.item(r,s==null?void 0:s.id)},[c]);let d=R_(r,a,[e.value,e.children,a],e.keywords),f=ih(),p=En(_=>_.value&&_.value===d.current),g=En(_=>c||i.filter()===!1?!0:_.search?_.filtered.items.get(r)>0:!0);v.useEffect(()=>{let _=a.current;if(!(!_||e.disabled))return _.addEventListener(sh,x),()=>_.removeEventListener(sh,x)},[g,e.onSelect,e.disabled]);function x(){var _,T;m(),(T=(_=l.current).onSelect)==null||T.call(_,d.current)}function m(){f.setState("value",d.current,!0)}if(!g)return null;let{disabled:b,value:y,onSelect:C,forceMount:w,keywords:P,...S}=e;return v.createElement(ye.div,{ref:Mr(a,t),...S,id:r,"cmdk-item":"",role:"option","aria-disabled":!!b,"aria-selected":!!p,"data-disabled":!!b,"data-selected":!!p,onPointerMove:b||i.getDisablePointerSelection()?void 0:m,onClick:b?void 0:x},e.children)}),lh=v.forwardRef((e,t)=>{let{heading:o,children:n,forceMount:r,...a}=e,s=St(),i=v.useRef(null),l=v.useRef(null),c=St(),d=Ms(),f=En(g=>r||d.filter()===!1?!0:g.search?g.filtered.groups.has(s):!0);pr(()=>d.group(s),[]),R_(s,i,[e.value,e.heading,l]);let p=v.useMemo(()=>({id:s,forceMount:r}),[r]);return v.createElement(ye.div,{ref:Mr(i,t),...a,"cmdk-group":"",role:"presentation",hidden:f?void 0:!0},o&&v.createElement("div",{ref:l,"cmdk-group-heading":"","aria-hidden":!0,id:c},o),dc(e,g=>v.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":o?c:void 0},v.createElement(z_.Provider,{value:p},g))))}),H_=v.forwardRef((e,t)=>{let{alwaysRender:o,...n}=e,r=v.useRef(null),a=En(s=>!s.search);return!o&&!a?null:v.createElement(ye.div,{ref:Mr(r,t),...n,"cmdk-separator":"",role:"separator"})}),cc=v.forwardRef((e,t)=>{let{onValueChange:o,...n}=e,r=e.value!=null,a=ih(),s=En(c=>c.search),i=En(c=>c.selectedItemId),l=Ms();return v.useEffect(()=>{e.value!=null&&a.setState("search",e.value)},[e.value]),v.createElement(ye.input,{ref:t,...n,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":l.listId,"aria-labelledby":l.labelId,"aria-activedescendant":i,id:l.inputId,type:"text",value:r?e.value:s,onChange:c=>{r||a.setState("search",c.target.value),o==null||o(c.target.value)}})}),uc=v.forwardRef((e,t)=>{let{children:o,label:n="Suggestions",...r}=e,a=v.useRef(null),s=v.useRef(null),i=En(c=>c.selectedItemId),l=Ms();return v.useEffect(()=>{if(s.current&&a.current){let c=s.current,d=a.current,f,p=new ResizeObserver(()=>{f=requestAnimationFrame(()=>{let g=c.offsetHeight;d.style.setProperty("--cmdk-list-height",g.toFixed(1)+"px")})});return p.observe(c),()=>{cancelAnimationFrame(f),p.unobserve(c)}}},[]),v.createElement(ye.div,{ref:Mr(a,t),...r,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":i,"aria-label":n,id:l.listId},dc(e,c=>v.createElement("div",{ref:Mr(s,l.listInnerRef),"cmdk-list-sizer":""},c)))}),L7=v.forwardRef((e,t)=>{let{open:o,onOpenChange:n,overlayClassName:r,contentClassName:a,container:s,...i}=e;return v.createElement(np,{open:o,onOpenChange:n},v.createElement(na,{container:s},v.createElement(ap,{"cmdk-overlay":"",className:r}),v.createElement(ws,{"aria-label":e.label,"cmdk-dialog":"",className:a},v.createElement(B_,{ref:t,...i}))))}),V_=v.forwardRef((e,t)=>En(o=>o.filtered.count===0)?v.createElement(ye.div,{ref:t,...e,"cmdk-empty":"",role:"presentation"}):null),z7=v.forwardRef((e,t)=>{let{progress:o,children:n,label:r="Loading...",...a}=e;return v.createElement(ye.div,{ref:t,...a,"cmdk-loading":"",role:"progressbar","aria-valuenow":o,"aria-valuemin":0,"aria-valuemax":100,"aria-label":r},dc(e,s=>v.createElement("div",{"aria-hidden":!0},s)))}),ch=Object.assign(B_,{List:uc,Item:Os,Input:cc,Group:lh,Separator:H_,Dialog:L7,Empty:V_,Loading:z7});function B7(e,t){let o=e.nextElementSibling;for(;o;){if(o.matches(t))return o;o=o.nextElementSibling}}function H7(e,t){let o=e.previousElementSibling;for(;o;){if(o.matches(t))return o;o=o.previousElementSibling}}function W_(e){let t=v.useRef(e);return pr(()=>{t.current=e}),t}var pr=typeof window>"u"?v.useEffect:v.useLayoutEffect;function da(e){let t=v.useRef();return t.current===void 0&&(t.current=e()),t}function En(e){let t=ih(),o=()=>e(t.snapshot());return v.useSyncExternalStore(t.subscribe,o,o)}function R_(e,t,o,n=[]){let r=v.useRef(),a=Ms();return pr(()=>{var s;let i=(()=>{var c;for(let d of o){if(typeof d=="string")return d.trim();if(typeof d=="object"&&"current"in d)return d.current?(c=d.current.textContent)==null?void 0:c.trim():r.current}})(),l=n.map(c=>c.trim());a.value(e,i,l),(s=t.current)==null||s.setAttribute(ua,i),r.current=i}),r}var V7=()=>{let[e,t]=v.useState(),o=da(()=>new Map);return pr(()=>{o.current.forEach(n=>n()),o.current=new Map},[e]),(n,r)=>{o.current.set(n,r),t({})}};function W7(e){let t=e.type;return typeof t=="function"?t(e.props):"render"in t?t.render(e.props):e}function dc({asChild:e,children:t},o){return e&&v.isValidElement(t)?v.cloneElement(W7(t),{ref:t.ref},o(t.props.children)):o(t)}var R7={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};const hr={oxAiSearch:"_oxAiSearch_1049e_2",oxAiSearchField:"_oxAiSearchField_1049e_2",oxAiSearchInput:"_oxAiSearchInput_1049e_2",oxAiSearchGlyph:"_oxAiSearchGlyph_1049e_2",oxAiSearchThinking:"_oxAiSearchThinking_1049e_2",oxAiSearchThinkingMark:"_oxAiSearchThinkingMark_1049e_2",oxAiSearchThinkingLabel:"_oxAiSearchThinkingLabel_1049e_2"},G_=h.createContext(null),As=()=>{const e=h.useContext(G_);if(!e)throw new Error("[orxata] This part must be used inside <OxAiSearch>. It reads the query and the thinking state from it.");return e},j_=h.forwardRef(({thinking:e=!1,value:t,onValueChange:o,onSelect:n,onClose:r,trailing:a,className:s,children:i,id:l,dataTestid:c,...d},f)=>{const p=ve(),g=Tt(l),x=t!==void 0&&o!==void 0,[m,b]=h.useState(t??""),y=x?t:m;h.useEffect(()=>{!x&&t!==void 0&&b(t)},[x,t]);const C=S=>{x||b(S),o==null||o(S)},w=y.length>0,P=h.useMemo(()=>({query:y,thinking:e,open:w,select:S=>n==null?void 0:n(S)}),[n,w,y,e]);return u.jsx(G_.Provider,{value:P,children:u.jsx(ch,{shouldFilter:!1,onKeyDown:S=>{S.key==="Escape"&&(r==null||r())},children:u.jsxs("div",{"data-slot":"ai-search","data-testid":c,"data-open":w||void 0,className:$(hr.oxAiSearch,s),children:[u.jsxs("div",{className:hr.oxAiSearchField,children:[u.jsx(ee,{icon:D_,className:hr.oxAiSearchGlyph,"data-slot":"icon"}),u.jsx(cc,{asChild:!0,value:y,onValueChange:C,children:u.jsx("input",{ref:f,...g,...d,className:hr.oxAiSearchInput,"data-slot":"controller","data-testid":`${c}-input`,"aria-expanded":w,"cmdk-input":void 0})}),e?u.jsxs("span",{className:hr.oxAiSearchThinking,children:[u.jsx(Xf,{className:hr.oxAiSearchThinkingMark,dataTestid:`${c}-thinking`,children:p("orxata.aiSearch.thinking")}),u.jsx("span",{className:hr.oxAiSearchThinkingLabel,"aria-hidden":"true",children:p("orxata.aiSearch.thinking")})]}):null,a]}),i]})})})});j_.displayName="OxAiSearch";const G7=`<svg width="1.2em" height="1.2em" stroke-color="currentColor" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24">
|
|
218
|
-
<g class="icon-corner-down-left">
|
|
219
|
-
<path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M18 6v6a3 3 0 0 1-3 3H5m0 0 4-4m-4 4 4 4" class="Vector"/>
|
|
220
|
-
</g>
|
|
221
|
-
</svg>
|
|
222
|
-
`,gr={oxAiSearchAsk:"_oxAiSearchAsk_sxxdk_2",oxAiSearchAskGlyph:"_oxAiSearchAskGlyph_sxxdk_2",oxAiSearchAskText:"_oxAiSearchAskText_sxxdk_2",oxAiSearchAskTitle:"_oxAiSearchAskTitle_sxxdk_2",oxAiSearchAskQuery:"_oxAiSearchAskQuery_sxxdk_2",oxAiSearchAskEnter:"_oxAiSearchAskEnter_sxxdk_2",oxAiSearchAskEnterIcon:"_oxAiSearchAskEnterIcon_sxxdk_2"},U_=h.forwardRef(({className:e,value:t="ask",dataTestid:o,...n},r)=>{const a=ve(),{query:s,select:i}=As();return u.jsx(Os,{ref:r,asChild:!0,value:t,onSelect:i,...n,children:u.jsxs("div",{"data-slot":"ai-search-ask","data-testid":o,className:$(gr.oxAiSearchAsk,e),children:[u.jsx(ee,{icon:D_,className:gr.oxAiSearchAskGlyph}),u.jsxs("span",{className:gr.oxAiSearchAskText,children:[u.jsx("span",{className:gr.oxAiSearchAskTitle,children:a("orxata.aiSearch.ask")}),u.jsxs("span",{className:gr.oxAiSearchAskQuery,children:["«",s,"»"]})]}),u.jsx("kbd",{className:gr.oxAiSearchAskEnter,"aria-hidden":"true",children:u.jsx(ee,{icon:G7,className:gr.oxAiSearchAskEnterIcon})})]})})});U_.displayName="OxAiSearchAsk";const fa={oxAiSearchPanel:"_oxAiSearchPanel_1mjfl_2",oxAiSearchRows:"_oxAiSearchRows_1mjfl_2",oxAiSearchPanelHints:"_oxAiSearchPanelHints_1mjfl_2",oxAiSearchPanelHint:"_oxAiSearchPanelHint_1mjfl_2"},q_=h.forwardRef(({className:e,children:t,dataTestid:o,...n},r)=>{const a=ve();return As().open?u.jsxs("div",{ref:r,"data-slot":"ai-search-panel","data-testid":o,className:$(fa.oxAiSearchPanel,e),...n,children:[u.jsx(uc,{"data-slot":"ai-search-rows",className:fa.oxAiSearchRows,children:t}),u.jsxs("div",{className:fa.oxAiSearchPanelHints,children:[u.jsxs("span",{className:fa.oxAiSearchPanelHint,children:[u.jsx("span",{"aria-hidden":"true",children:"↑↓"}),a("orxata.aiSearch.hintNavigate")]}),u.jsxs("span",{className:fa.oxAiSearchPanelHint,children:[u.jsx("span",{"aria-hidden":"true",children:"↵"}),a("orxata.aiSearch.hintAsk")]}),u.jsxs("span",{className:fa.oxAiSearchPanelHint,children:[u.jsx("span",{"aria-hidden":"true",children:"Esc"}),a("orxata.aiSearch.hintClose")]})]})]}):null});q_.displayName="OxAiSearchPanel";const Y_=`<svg width="1.2em" height="1.2em" stroke-color="currentColor" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24">
|
|
223
|
-
<g>
|
|
224
|
-
<path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M12 5v14m4-10-4-4M8 9l4-4"/>
|
|
225
|
-
</g>
|
|
226
|
-
</svg>
|
|
227
|
-
`,K_={oxAiSearchSend:"_oxAiSearchSend_17ewd_2",oxAiSearchSendIcon:"_oxAiSearchSendIcon_17ewd_2"},X_=h.forwardRef(({className:e,onSend:t,onStop:o,onClick:n,dataTestid:r,...a},s)=>{const i=ve(),l=As(),c=l.thinking?"thinking":l.query?"ready":"empty";return u.jsx("button",{ref:s,type:"button",className:$(K_.oxAiSearchSend,e),"data-slot":"send","data-testid":r,"data-state":c,disabled:c==="empty","aria-label":i(c==="thinking"?"orxata.aiSearch.stop":"orxata.aiSearch.ask"),onClick:d=>{c==="thinking"?o==null||o():t==null||t(l.query),n==null||n(d)},...a,children:u.jsx(ee,{icon:c==="thinking"?Cy:Y_,className:K_.oxAiSearchSendIcon})})});X_.displayName="OxAiSearchSend";const j7={oxAiSearchShortcut:"_oxAiSearchShortcut_10jvd_2"},Z_=h.forwardRef(({className:e,children:t,dataTestid:o,...n},r)=>As().query?null:u.jsx("kbd",{ref:r,className:$(j7.oxAiSearchShortcut,e),"data-testid":o,...n,children:t??"⌘K"}));Z_.displayName="OxAiSearchShortcut";const U7={oxAiSearchSuggestion:"_oxAiSearchSuggestion_hbgkb_2"},J_=h.forwardRef(({className:e,value:t,children:o,dataTestid:n,...r},a)=>{const{select:s}=As();return u.jsx(Os,{asChild:!0,value:t,onSelect:s,...r,children:u.jsx("button",{ref:a,type:"button","data-slot":"ai-search-suggestion","data-testid":n,className:$(U7.oxAiSearchSuggestion,e),children:o})})});J_.displayName="OxAiSearchSuggestion";const q7={oxInputGroup:"_oxInputGroup_h37nn_2"},Q_=h.forwardRef(({className:e,children:t,...o},n)=>u.jsx("span",{ref:n,"data-slot":"controller",className:$(q7.oxInputGroup,e),...o,children:t}));Q_.displayName="OxInputGroup";const Ns={oxInput:"_oxInput_1b30t_2"},pa={xs:"ox-input-xs",sm:"ox-input-sm",md:"ox-input-md",lg:"ox-input-lg"},Y7={oxInputTextGhost:"_oxInputTextGhost_y29bi_2"},eS=h.forwardRef(({className:e,size:t="md",variant:o="default",field:n,onFieldChange:r,value:a,onChange:s,type:i="text",id:l,...c},d)=>{const f=Tt(l),[p,g]=h.useState(n??""),[x,m]=h.useState(n),b=n!==void 0&&r!==void 0;!b&&n!==x&&(m(n),g(n??""));const y=b?n:a??p;return u.jsx("input",{ref:d,...f,type:i,"data-slot":"controller",className:$(Ns.oxInput,pa[t],o==="ghost"&&Y7.oxInputTextGhost,e),value:y,onChange:C=>{b||g(C.target.value),r==null||r(C.target.value),s==null||s(C)},...c})});eS.displayName="OxInputText";const K7={oxInputNumber:"_oxInputNumber_1j8f7_2"},tS=h.createContext(null);function uh(){const e=h.useContext(tS);if(!e)throw new Error("InputNumber components must be used within <InputNumber>.");return e}function dh(e,t,o){let n=e;return t!==void 0&&(n=Math.max(n,t)),o!==void 0&&(n=Math.min(n,o)),n}const oS=h.forwardRef(({className:e,children:t,size:o="md",value:n,defaultValue:r=null,onValueChange:a,min:s,max:i,step:l=1,disabled:c=!1,...d},f)=>{const[p,g]=h.useState(r),x=n!==void 0,m=x?n:p,b=h.useCallback(E=>{x||g(E),a==null||a(E)},[x,a]),y=m??s??0,C=h.useCallback(()=>{c||b(dh(y+l,s,i))},[c,b,y,l,s,i]),w=h.useCallback(()=>{c||b(dh(y-l,s,i))},[c,b,y,l,s,i]),P=h.useCallback(E=>{if(E.trim()===""){b(null);return}const D=Number(E);Number.isNaN(D)||b(dh(D,s,i))},[b,s,i]),S=!c&&(i===void 0||(m??s??0)<i),_=!c&&(s===void 0||(m??s??0)>s),T=m==null?"":String(m),k=h.useMemo(()=>({value:m??null,setInputValue:P,increment:C,decrement:w,canIncrement:S,canDecrement:_,disabled:c,min:s,max:i,step:l,displayValue:T}),[m,P,C,w,S,_,c,s,i,l,T]);return u.jsx(tS.Provider,{value:k,children:u.jsx("div",{ref:f,role:"group","data-slot":"input-number",className:$(K7.oxInputNumber,pa[o],e),...d,children:t})})});oS.displayName="OxInputNumber";const X7={oxInputNumberContent:"_oxInputNumberContent_1g6fq_2"},nS=h.forwardRef(({className:e,children:t,...o},n)=>u.jsx("div",{ref:n,"data-slot":"controller",className:$(X7.oxInputNumberContent,e),...o,children:t}));nS.displayName="OxInputNumberContent";const rS={oxNumberFieldStep:"_oxNumberFieldStep_n8w50_2",oxStepIcon:"_oxStepIcon_n8w50_2"},aS=h.forwardRef(({className:e,children:t,onClick:o,disabled:n,...r},a)=>{const{decrement:s,canDecrement:i,disabled:l}=uh(),c=n??(l||!i);return u.jsx("button",{ref:a,type:"button",tabIndex:-1,"data-slot":"decrement",disabled:c,className:$(rS.oxNumberFieldStep,e),onClick:d=>{s(),o==null||o(d)},...r,children:t??u.jsx(ee,{icon:Co,className:rS.oxStepIcon})})});aS.displayName="OxInputNumberDecrement";const sS=`<svg width="1.2em" height="1.2em" stroke-color="currentColor" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24">
|
|
228
|
-
<g>
|
|
229
|
-
<path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="m18 15-6-6-6 6"/>
|
|
230
|
-
</g>
|
|
231
|
-
</svg>
|
|
232
|
-
`,iS={oxNumberFieldStep:"_oxNumberFieldStep_1k7el_2",oxStepIcon:"_oxStepIcon_1k7el_2"},lS=h.forwardRef(({className:e,children:t,onClick:o,disabled:n,...r},a)=>{const{increment:s,canIncrement:i,disabled:l}=uh(),c=n??(l||!i);return u.jsx("button",{ref:a,type:"button",tabIndex:-1,"data-slot":"increment",disabled:c,className:$(iS.oxNumberFieldStep,e),onClick:d=>{s(),o==null||o(d)},...r,children:t??u.jsx(ee,{icon:sS,className:iS.oxStepIcon})})});lS.displayName="OxInputNumberIncrement";const Z7={oxNumberFieldInput:"_oxNumberFieldInput_1grlt_2"},cS=h.forwardRef(({className:e,onChange:t,onKeyDown:o,id:n,...r},a)=>{const{displayValue:s,setInputValue:i,increment:l,decrement:c,disabled:d,value:f,min:p,max:g}=uh(),x=Tt(n);return u.jsx("input",{ref:a,...x,type:"text",inputMode:"decimal",role:"spinbutton",autoComplete:"off","data-slot":"controller",disabled:d,"aria-valuenow":f??void 0,"aria-valuemin":p,"aria-valuemax":g,value:s,className:$(Ns.oxInput,Z7.oxNumberFieldInput,e),onChange:m=>{i(m.target.value),t==null||t(m)},onKeyDown:m=>{m.key==="ArrowUp"?(m.preventDefault(),l()):m.key==="ArrowDown"&&(m.preventDefault(),c()),o==null||o(m)},...r})});cS.displayName="OxInputNumberInput";const J7={oxInputPassword:"_oxInputPassword_1rxp2_2"},uS=h.createContext(null);function fh(){const e=h.useContext(uS);if(!e)throw new Error("InputPassword subcomponents must be used inside an <InputPassword> root.");return e}const dS=h.forwardRef(({className:e,children:t,size:o="md",field:n,onFieldChange:r,visible:a,onVisibleChange:s,dataTestid:i,...l},c)=>{const d=n!==void 0&&r!==void 0,f=a!==void 0&&s!==void 0,[p,g]=h.useState(n??""),[x,m]=h.useState(a??!1),b=d?n:p,y=f?a:x,C=h.useCallback(S=>{d||g(S),r==null||r(S)},[d,r]),w=h.useCallback(()=>{const S=!y;f||m(S),s==null||s(S)},[y,f,s]),P=h.useMemo(()=>({field:b,setField:C,visible:y,toggle:w}),[b,C,y,w]);return u.jsx(uS.Provider,{value:P,children:u.jsx("div",{ref:c,"data-slot":"controller","data-testid":i,className:$(J7.oxInputPassword,pa[o],e),...l,children:t})})});dS.displayName="OxInputPassword";const Q7={oxInputPasswordInput:"_oxInputPasswordInput_1lf41_2"},fS=h.forwardRef(({className:e,onChange:t,id:o,...n},r)=>{const{field:a,setField:s,visible:i}=fh(),l=Tt(o);return u.jsx("input",{ref:r,...l,type:i?"text":"password",value:a,autoComplete:"current-password","data-slot":"controller",className:$(Ns.oxInput,Q7.oxInputPasswordInput,e),onChange:c=>{s(c.target.value),t==null||t(c)},...n})});fS.displayName="OxInputPasswordInput";const e$=`<svg width="1.2em" height="1.2em" stroke-color="currentColor" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24">
|
|
233
|
-
<g>
|
|
234
|
-
<path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M12 14a2 2 0 1 0 0-4 2 2 0 0 0 0 4Z"/>
|
|
235
|
-
<path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M22 12c-2.667 4.667-6 7-10 7s-7.333-2.333-10-7c2.667-4.667 6-7 10-7s7.333 2.333 10 7Z"/>
|
|
236
|
-
</g>
|
|
237
|
-
</svg>
|
|
238
|
-
`,t$=`<svg width="1.2em" height="1.2em" stroke-color="currentColor" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24">
|
|
239
|
-
<g>
|
|
240
|
-
<path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="m3 3 18 18M10.584 10.587a2 2 0 1 0 2.828 2.83"/>
|
|
241
|
-
<path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M17.36 17.35A9.38 9.38 0 0 1 12 19c-4 0-7.333-2.333-10-7a15.693 15.693 0 0 1 4.632-5.34m2.731-1.295A9.466 9.466 0 0 1 12 5c4 0 7.333 2.333 10 7a19.027 19.027 0 0 1-2.5 3.488L9.363 5.365Z"/>
|
|
242
|
-
</g>
|
|
243
|
-
</svg>
|
|
244
|
-
`,ph={oxInputPasswordToggle:"_oxInputPasswordToggle_y5ewv_2",oxToggleIcon:"_oxToggleIcon_y5ewv_2"},pS=h.forwardRef(({className:e,children:t,onClick:o,...n},r)=>{const{visible:a,toggle:s}=fh(),i=ve();return u.jsx("button",{ref:r,type:"button","data-slot":"toggle","aria-pressed":a,"aria-label":i(a?"orxata.inputPassword.hide":"orxata.inputPassword.show"),className:$(ph.oxInputPasswordToggle,e),onClick:l=>{s(),o==null||o(l)},...n,children:typeof t=="function"?t({visible:a}):t??(a?u.jsx(ee,{icon:t$,className:ph.oxToggleIcon}):u.jsx(ee,{icon:e$,className:ph.oxToggleIcon}))})});pS.displayName="OxInputPasswordToggle";const o$={oxInputOtp:"_oxInputOtp_6et8o_2"},hS=h.createContext(null);function fc(){const e=h.useContext(hS);if(!e)throw new Error("InputOtp subcomponents must be used inside an <InputOtp> root.");return e}const n$=(e,t)=>t==="number"?/^\d$/.test(e):e.length===1,gS=h.forwardRef(({className:e,children:t,dataTestid:o,size:n="md",type:r="number",otp:a=!0,mask:s=!1,disabled:i=!1,value:l,defaultValue:c="",onValueChange:d,onComplete:f,...p},g)=>{const x=Es(),[m,b]=h.useState(c),y=l??m,C=h.useRef(new Map),[w,P]=h.useState(0),S=h.useRef(0),_=h.useRef(0);S.current=0,_.current=0;const[T,k]=h.useState(()=>[...y]),[E,D]=h.useState(y),O=h.useMemo(()=>Array.from({length:w},(F,V)=>T[V]??""),[T,w]);y!==E&&(D(y),y!==O.join("")&&k([...y]));const N=h.useCallback(F=>{k(F);const V=F.join("");l===void 0&&b(V),V!==y&&(d==null||d(V)),F.length>0&&F.every(Boolean)&&(f==null||f(V))},[l,y,d,f]),z=h.useCallback((F,V)=>{V?C.current.set(F,V):C.current.delete(F),P(C.current.size)},[]),B=h.useCallback(F=>{var V;(V=C.current.get(F))==null||V.focus()},[]),G=h.useCallback((F,V)=>{if(i)return;const M=[...V].filter(H=>n$(H,r));if(M.length===0)return;const Y=[...O];M.forEach((H,L)=>{const q=F+L;q<Y.length&&(Y[q]=H)}),N(Y),B(Math.min(F+M.length,Y.length-1))},[i,r,O,N,B]),R=h.useCallback(F=>{if(i)return;const V=[...O];V[F]="",N(V)},[i,O,N]),A=h.useMemo(()=>({dataTestid:o,nextGroupIndex:()=>S.current++,nextSeparatorIndex:()=>_.current++,chars:O,slotCount:w,type:r,otp:a,mask:s,disabled:i,registerSlot:z,fillFrom:G,clearSlot:R,focusSlot:B}),[o,O,w,r,a,s,i,z,G,R,B]);return u.jsx(hS.Provider,{value:A,children:u.jsx("div",{ref:g,...x,role:"group","data-slot":"controller","data-testid":o,"data-disabled":i?"":void 0,className:$(o$.oxInputOtp,pa[n],e),...p,children:t})})});gS.displayName="OxInputOtp";const r$={oxInputOtpGroup:"_oxInputOtpGroup_7i8su_2"},mS=h.forwardRef(({className:e,children:t,...o},n)=>{const{dataTestid:r,nextGroupIndex:a}=fc(),s=a();return u.jsx("div",{ref:n,"data-slot":"group","data-testid":`${r}-group-${s}`,className:$(r$.oxInputOtpGroup,e),...o,children:t})});mS.displayName="OxInputOtpGroup";const a$={oxInputOtpSlot:"_oxInputOtpSlot_qaz7w_2"},xS=h.forwardRef(({className:e,index:t,onKeyDown:o,onPaste:n,...r},a)=>{const{dataTestid:s,chars:i,slotCount:l,type:c,otp:d,mask:f,disabled:p,registerSlot:g,fillFrom:x,clearSlot:m,focusSlot:b}=fc(),y=ve(),C=h.useRef(null),w=h.useCallback(P=>{C.current=P,typeof a=="function"?a(P):a&&(a.current=P)},[a]);return h.useEffect(()=>(g(t,C.current),()=>g(t,null)),[t,g]),u.jsx("input",{ref:w,type:f?"password":"text",inputMode:c==="number"?"numeric":"text",autoComplete:d?"one-time-code":"off",maxLength:1,disabled:p,"aria-label":y("orxata.inputOtp.slot",{index:t+1,total:l}),"data-slot":"controller","data-testid":`${s}-slot-${t}`,value:i[t]??"",className:$(Ns.oxInput,a$.oxInputOtpSlot,e),onChange:P=>{x(t,P.target.value)},onKeyDown:P=>{P.key==="Backspace"?(P.preventDefault(),i[t]?m(t):t>0&&(m(t-1),b(t-1))):P.key==="ArrowLeft"&&t>0?(P.preventDefault(),b(t-1)):P.key==="ArrowRight"&&t<l-1&&(P.preventDefault(),b(t+1)),o==null||o(P)},onPaste:P=>{P.preventDefault(),x(t,P.clipboardData.getData("text")),n==null||n(P)},...r})});xS.displayName="OxInputOtpSlot";const s$={oxInputOtpSeparator:"_oxInputOtpSeparator_krc60_2"},bS=h.forwardRef(({className:e,children:t,...o},n)=>{const{dataTestid:r,nextSeparatorIndex:a}=fc(),s=a();return u.jsx("div",{ref:n,"aria-hidden":"true","data-slot":"separator","data-testid":`${r}-separator-${s}`,className:$(s$.oxInputOtpSeparator,e),...o,children:t??"–"})});bS.displayName="OxInputOtpSeparator";function i$(e,t,o="long"){return new Intl.DateTimeFormat("en-US",{hour:"numeric",timeZone:e,timeZoneName:o}).format(t).split(/\s/g).slice(2).join(" ")}const hh={},$s={};function tn(e,t){try{const n=(hh[e]||(hh[e]=new Intl.DateTimeFormat("en-US",{timeZone:e,timeZoneName:"longOffset"}).format))(t).split("GMT")[1];return n in $s?$s[n]:vS(n,n.split(":"))}catch{if(e in $s)return $s[e];const o=e==null?void 0:e.match(l$);return o?vS(e,o.slice(1)):NaN}}const l$=/([+-]\d\d):?(\d\d)?/;function vS(e,t){const o=+(t[0]||0),n=+(t[1]||0),r=+(t[2]||0)/60;return $s[e]=o*60+n>0?o*60+n+r:o*60-n-r}class Ao extends Date{constructor(...t){super(),t.length>1&&typeof t[t.length-1]=="string"&&(this.timeZone=t.pop()),this.internal=new Date,isNaN(tn(this.timeZone,this))?this.setTime(NaN):t.length?typeof t[0]=="number"&&(t.length===1||t.length===2&&typeof t[1]!="number")?this.setTime(t[0]):typeof t[0]=="string"?this.setTime(+new Date(t[0])):t[0]instanceof Date?this.setTime(+t[0]):(this.setTime(+new Date(...t)),wS(this,t)):this.setTime(Date.now())}static tz(t,...o){return o.length?new Ao(...o,t):new Ao(Date.now(),t)}withTimeZone(t){return new Ao(+this,t)}getTimezoneOffset(){const t=-tn(this.timeZone,this);return t>0?Math.floor(t):Math.ceil(t)}setTime(t){return Date.prototype.setTime.apply(this,arguments),pc(this),+this}[Symbol.for("constructDateFrom")](t){return new Ao(+new Date(t),this.timeZone)}}const yS=/^(get|set)(?!UTC)/;Object.getOwnPropertyNames(Date.prototype).forEach(e=>{if(!yS.test(e))return;const t=e.replace(yS,"$1UTC");Ao.prototype[t]&&(e.startsWith("get")?Ao.prototype[e]=function(){return this.internal[t]()}:(Ao.prototype[e]=function(){return Date.prototype[t].apply(this.internal,arguments),c$(this),+this},Ao.prototype[t]=function(){return Date.prototype[t].apply(this,arguments),pc(this),+this}))});function pc(e){e.internal.setTime(+e),e.internal.setUTCSeconds(e.internal.getUTCSeconds()-Math.round(-tn(e.timeZone,e)*60))}function c$(e){Date.prototype.setFullYear.call(e,e.internal.getUTCFullYear(),e.internal.getUTCMonth(),e.internal.getUTCDate()),Date.prototype.setHours.call(e,e.internal.getUTCHours(),e.internal.getUTCMinutes(),e.internal.getUTCSeconds(),e.internal.getUTCMilliseconds()),wS(e)}function wS(e,t){const o=Array.isArray(t)?u$(t):+e.internal,n=tn(e.timeZone,e),r=n>0?Math.floor(n):Math.ceil(n),a=new Date(+e);a.setUTCHours(a.getUTCHours()-1);const s=-new Date(+e).getTimezoneOffset(),i=-new Date(+a).getTimezoneOffset(),l=s-i;let c=s;if(l&&s!==r){const E=Date.prototype.getHours.apply(e),D=Array.isArray(t)?t[3]||0:e.internal.getUTCHours();if(E!==D){const O=new Date(+e),N=s-r;N&&O.setUTCMinutes(O.getUTCMinutes()+N);const z=tn(e.timeZone,O);(z>0?Math.floor(z):Math.ceil(z))===r&&(c=i)}}const d=c-r;d&&Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+d);const f=new Date(+e);f.setUTCSeconds(0);const p=s>0?f.getSeconds():(f.getSeconds()-60)%60,g=Math.round(-(tn(e.timeZone,e)*60))%60;(g||p)&&Date.prototype.setUTCSeconds.call(e,Date.prototype.getUTCSeconds.call(e)+g+p);const x=tn(e.timeZone,e),m=x>0?Math.floor(x):Math.ceil(x),y=-new Date(+e).getTimezoneOffset()-m,C=m!==r,w=y-d,P=m-r,S=o-m*60*1e3,_=P>0&&CS(e)-o===P*60*1e3&&CS(e,S)!==o;if(C&&w&&!_){Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+w);const E=tn(e.timeZone,e),D=E>0?Math.floor(E):Math.ceil(E),O=m-D;O&&w<0&&Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+O)}pc(e);const k=(t?o:o+g*1e3)-+e.internal;k&&Math.abs(k)<1800*1e3&&(Date.prototype.setTime.call(e,+e+k),pc(e))}function u$(e){return Date.UTC(e[0],e.length>1?e[1]:0,e.length>2?e[2]:1,...e.slice(3))}function CS(e,t){const o=new Date(t??+e);return o.setUTCSeconds(o.getUTCSeconds()-Math.round(-tn(e.timeZone,o)*60)),+o}class mt extends Ao{static tz(t,...o){return o.length?new mt(...o,t):new mt(Date.now(),t)}toISOString(){const[t,o,n]=this.tzComponents(),r=`${t}${o}:${n}`;return this.internal.toISOString().slice(0,-1)+r}toString(){return`${this.toDateString()} ${this.toTimeString()}`}toDateString(){const[t,o,n,r]=this.internal.toUTCString().split(" ");return`${t==null?void 0:t.slice(0,-1)} ${n} ${o} ${r}`}toTimeString(){const t=this.internal.toUTCString().split(" ")[4],[o,n,r]=this.tzComponents();return`${t} GMT${o}${n}${r} (${i$(this.timeZone,this)})`}toLocaleString(t,o){return Date.prototype.toLocaleString.call(this,t,{...o,timeZone:(o==null?void 0:o.timeZone)||this.timeZone})}toLocaleDateString(t,o){return Date.prototype.toLocaleDateString.call(this,t,{...o,timeZone:(o==null?void 0:o.timeZone)||this.timeZone})}toLocaleTimeString(t,o){return Date.prototype.toLocaleTimeString.call(this,t,{...o,timeZone:(o==null?void 0:o.timeZone)||this.timeZone})}tzComponents(){const t=this.getTimezoneOffset(),o=t>0?"-":"+",n=String(Math.floor(Math.abs(t)/60)).padStart(2,"0"),r=String(Math.abs(t)%60).padStart(2,"0");return[o,n,r]}withTimeZone(t){return new mt(+this,t)}[Symbol.for("constructDateFrom")](t){return new mt(+new Date(t),this.timeZone)}}const _S=6048e5,d$=864e5,SS=Symbol.for("constructDateFrom");function Ze(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&SS in e?e[SS](t):e instanceof Date?new e.constructor(t):new Date(t)}function Be(e,t){return Ze(t||e,e)}function PS(e,t,o){const n=Be(e,o==null?void 0:o.in);return isNaN(t)?Ze(e,NaN):(t&&n.setDate(n.getDate()+t),n)}function TS(e,t,o){const n=Be(e,o==null?void 0:o.in);if(isNaN(t))return Ze(e,NaN);if(!t)return n;const r=n.getDate(),a=Ze(e,n.getTime());a.setMonth(n.getMonth()+t+1,0);const s=a.getDate();return r>=s?a:(n.setFullYear(a.getFullYear(),a.getMonth(),r),n)}let f$={};function Fs(){return f$}function ha(e,t){var i,l,c,d;const o=Fs(),n=(t==null?void 0:t.weekStartsOn)??((l=(i=t==null?void 0:t.locale)==null?void 0:i.options)==null?void 0:l.weekStartsOn)??o.weekStartsOn??((d=(c=o.locale)==null?void 0:c.options)==null?void 0:d.weekStartsOn)??0,r=Be(e,t==null?void 0:t.in),a=r.getDay(),s=(a<n?7:0)+a-n;return r.setDate(r.getDate()-s),r.setHours(0,0,0,0),r}function Ls(e,t){return ha(e,{...t,weekStartsOn:1})}function kS(e,t){const o=Be(e,t==null?void 0:t.in),n=o.getFullYear(),r=Ze(o,0);r.setFullYear(n+1,0,4),r.setHours(0,0,0,0);const a=Ls(r),s=Ze(o,0);s.setFullYear(n,0,4),s.setHours(0,0,0,0);const i=Ls(s);return o.getTime()>=a.getTime()?n+1:o.getTime()>=i.getTime()?n:n-1}function ES(e){const t=Be(e),o=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return o.setUTCFullYear(t.getFullYear()),+e-+o}function ga(e,...t){const o=Ze.bind(null,t.find(n=>typeof n=="object"));return t.map(o)}function zs(e,t){const o=Be(e,t==null?void 0:t.in);return o.setHours(0,0,0,0),o}function gh(e,t,o){const[n,r]=ga(o==null?void 0:o.in,e,t),a=zs(n),s=zs(r),i=+a-ES(a),l=+s-ES(s);return Math.round((i-l)/d$)}function p$(e,t){const o=kS(e,t),n=Ze(e,0);return n.setFullYear(o,0,4),n.setHours(0,0,0,0),Ls(n)}function h$(e,t,o){return PS(e,t*7,o)}function g$(e,t,o){return TS(e,t*12,o)}function m$(e,t){let o,n=t==null?void 0:t.in;return e.forEach(r=>{!n&&typeof r=="object"&&(n=Ze.bind(null,r));const a=Be(r,n);(!o||o<a||isNaN(+a))&&(o=a)}),Ze(n,o||NaN)}function x$(e,t){let o,n=t==null?void 0:t.in;return e.forEach(r=>{!n&&typeof r=="object"&&(n=Ze.bind(null,r));const a=Be(r,n);(!o||o>a||isNaN(+a))&&(o=a)}),Ze(n,o||NaN)}function b$(e,t,o){const[n,r]=ga(o==null?void 0:o.in,e,t);return+zs(n)==+zs(r)}function IS(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function v$(e){return!(!IS(e)&&typeof e!="number"||isNaN(+Be(e)))}function DS(e,t,o){const[n,r]=ga(o==null?void 0:o.in,e,t),a=n.getFullYear()-r.getFullYear(),s=n.getMonth()-r.getMonth();return a*12+s}function y$(e,t){const o=Be(e,t==null?void 0:t.in),n=o.getMonth();return o.setFullYear(o.getFullYear(),n+1,0),o.setHours(23,59,59,999),o}function MS(e,t){const[o,n]=ga(e,t.start,t.end);return{start:o,end:n}}function w$(e,t){const{start:o,end:n}=MS(t==null?void 0:t.in,e);let r=+o>+n;const a=r?+o:+n,s=r?n:o;s.setHours(0,0,0,0),s.setDate(1);let i=1;const l=[];for(;+s<=a;)l.push(Ze(o,s)),s.setMonth(s.getMonth()+i);return r?l.reverse():l}function C$(e,t){const o=Be(e,t==null?void 0:t.in);return o.setDate(1),o.setHours(0,0,0,0),o}function _$(e,t){const o=Be(e,t==null?void 0:t.in),n=o.getFullYear();return o.setFullYear(n+1,0,0),o.setHours(23,59,59,999),o}function OS(e,t){const o=Be(e,t==null?void 0:t.in);return o.setFullYear(o.getFullYear(),0,1),o.setHours(0,0,0,0),o}function S$(e,t){const{start:o,end:n}=MS(t==null?void 0:t.in,e);let r=+o>+n;const a=r?+o:+n,s=r?n:o;s.setHours(0,0,0,0),s.setMonth(0,1);let i=1;const l=[];for(;+s<=a;)l.push(Ze(o,s)),s.setFullYear(s.getFullYear()+i);return r?l.reverse():l}function AS(e,t){var i,l,c,d;const o=Fs(),n=(t==null?void 0:t.weekStartsOn)??((l=(i=t==null?void 0:t.locale)==null?void 0:i.options)==null?void 0:l.weekStartsOn)??o.weekStartsOn??((d=(c=o.locale)==null?void 0:c.options)==null?void 0:d.weekStartsOn)??0,r=Be(e,t==null?void 0:t.in),a=r.getDay(),s=(a<n?-7:0)+6-(a-n);return r.setDate(r.getDate()+s),r.setHours(23,59,59,999),r}function P$(e,t){return AS(e,{...t,weekStartsOn:1})}const T$={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},k$=(e,t,o)=>{let n;const r=T$[e];return typeof r=="string"?n=r:t===1?n=r.one:n=r.other.replace("{{count}}",t.toString()),o!=null&&o.addSuffix?o.comparison&&o.comparison>0?"in "+n:n+" ago":n};function mh(e){return(t={})=>{const o=t.width?String(t.width):e.defaultWidth;return e.formats[o]||e.formats[e.defaultWidth]}}const E$={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},I$={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},D$={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},M$={date:mh({formats:E$,defaultWidth:"full"}),time:mh({formats:I$,defaultWidth:"full"}),dateTime:mh({formats:D$,defaultWidth:"full"})},O$={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},A$=(e,t,o,n)=>O$[e];function Bs(e){return(t,o)=>{const n=o!=null&&o.context?String(o.context):"standalone";let r;if(n==="formatting"&&e.formattingValues){const s=e.defaultFormattingWidth||e.defaultWidth,i=o!=null&&o.width?String(o.width):s;r=e.formattingValues[i]||e.formattingValues[s]}else{const s=e.defaultWidth,i=o!=null&&o.width?String(o.width):e.defaultWidth;r=e.values[i]||e.values[s]}const a=e.argumentCallback?e.argumentCallback(t):t;return r[a]}}const N$={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},$$={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},F$={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},L$={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},z$={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},B$={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},H$={ordinalNumber:(e,t)=>{const o=Number(e),n=o%100;if(n>20||n<10)switch(n%10){case 1:return o+"st";case 2:return o+"nd";case 3:return o+"rd"}return o+"th"},era:Bs({values:N$,defaultWidth:"wide"}),quarter:Bs({values:$$,defaultWidth:"wide",argumentCallback:e=>e-1}),month:Bs({values:F$,defaultWidth:"wide"}),day:Bs({values:L$,defaultWidth:"wide"}),dayPeriod:Bs({values:z$,defaultWidth:"wide",formattingValues:B$,defaultFormattingWidth:"wide"})};function Hs(e){return(t,o={})=>{const n=o.width,r=n&&e.matchPatterns[n]||e.matchPatterns[e.defaultMatchWidth],a=t.match(r);if(!a)return null;const s=a[0],i=n&&e.parsePatterns[n]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(i)?W$(i,f=>f.test(s)):V$(i,f=>f.test(s));let c;c=e.valueCallback?e.valueCallback(l):l,c=o.valueCallback?o.valueCallback(c):c;const d=t.slice(s.length);return{value:c,rest:d}}}function V$(e,t){for(const o in e)if(Object.prototype.hasOwnProperty.call(e,o)&&t(e[o]))return o}function W$(e,t){for(let o=0;o<e.length;o++)if(t(e[o]))return o}function R$(e){return(t,o={})=>{const n=t.match(e.matchPattern);if(!n)return null;const r=n[0],a=t.match(e.parsePattern);if(!a)return null;let s=e.valueCallback?e.valueCallback(a[0]):a[0];s=o.valueCallback?o.valueCallback(s):s;const i=t.slice(r.length);return{value:s,rest:i}}}const G$=/^(\d+)(th|st|nd|rd)?/i,j$=/\d+/i,U$={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},q$={any:[/^b/i,/^(a|c)/i]},Y$={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},K$={any:[/1/i,/2/i,/3/i,/4/i]},X$={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},Z$={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},J$={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},Q$={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},eF={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},tF={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},oF={ordinalNumber:R$({matchPattern:G$,parsePattern:j$,valueCallback:e=>parseInt(e,10)}),era:Hs({matchPatterns:U$,defaultMatchWidth:"wide",parsePatterns:q$,defaultParseWidth:"any"}),quarter:Hs({matchPatterns:Y$,defaultMatchWidth:"wide",parsePatterns:K$,defaultParseWidth:"any",valueCallback:e=>e+1}),month:Hs({matchPatterns:X$,defaultMatchWidth:"wide",parsePatterns:Z$,defaultParseWidth:"any"}),day:Hs({matchPatterns:J$,defaultMatchWidth:"wide",parsePatterns:Q$,defaultParseWidth:"any"}),dayPeriod:Hs({matchPatterns:eF,defaultMatchWidth:"any",parsePatterns:tF,defaultParseWidth:"any"})},ma={code:"en-US",formatDistance:k$,formatLong:M$,formatRelative:A$,localize:H$,match:oF,options:{weekStartsOn:0,firstWeekContainsDate:1}};function nF(e,t){const o=Be(e,t==null?void 0:t.in);return gh(o,OS(o))+1}function xh(e,t){const o=Be(e,t==null?void 0:t.in),n=+Ls(o)-+p$(o);return Math.round(n/_S)+1}function NS(e,t){var d,f,p,g;const o=Be(e,t==null?void 0:t.in),n=o.getFullYear(),r=Fs(),a=(t==null?void 0:t.firstWeekContainsDate)??((f=(d=t==null?void 0:t.locale)==null?void 0:d.options)==null?void 0:f.firstWeekContainsDate)??r.firstWeekContainsDate??((g=(p=r.locale)==null?void 0:p.options)==null?void 0:g.firstWeekContainsDate)??1,s=Ze((t==null?void 0:t.in)||e,0);s.setFullYear(n+1,0,a),s.setHours(0,0,0,0);const i=ha(s,t),l=Ze((t==null?void 0:t.in)||e,0);l.setFullYear(n,0,a),l.setHours(0,0,0,0);const c=ha(l,t);return+o>=+i?n+1:+o>=+c?n:n-1}function rF(e,t){var i,l,c,d;const o=Fs(),n=(t==null?void 0:t.firstWeekContainsDate)??((l=(i=t==null?void 0:t.locale)==null?void 0:i.options)==null?void 0:l.firstWeekContainsDate)??o.firstWeekContainsDate??((d=(c=o.locale)==null?void 0:c.options)==null?void 0:d.firstWeekContainsDate)??1,r=NS(e,t),a=Ze((t==null?void 0:t.in)||e,0);return a.setFullYear(r,0,n),a.setHours(0,0,0,0),ha(a,t)}function bh(e,t){const o=Be(e,t==null?void 0:t.in),n=+ha(o,t)-+rF(o,t);return Math.round(n/_S)+1}function Le(e,t){const o=e<0?"-":"",n=Math.abs(e).toString().padStart(t,"0");return o+n}const In={y(e,t){const o=e.getFullYear(),n=o>0?o:1-o;return Le(t==="yy"?n%100:n,t.length)},M(e,t){const o=e.getMonth();return t==="M"?String(o+1):Le(o+1,2)},d(e,t){return Le(e.getDate(),t.length)},a(e,t){const o=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return o.toUpperCase();case"aaa":return o;case"aaaaa":return o[0];case"aaaa":default:return o==="am"?"a.m.":"p.m."}},h(e,t){return Le(e.getHours()%12||12,t.length)},H(e,t){return Le(e.getHours(),t.length)},m(e,t){return Le(e.getMinutes(),t.length)},s(e,t){return Le(e.getSeconds(),t.length)},S(e,t){const o=t.length,n=e.getMilliseconds(),r=Math.trunc(n*Math.pow(10,o-3));return Le(r,t.length)}},xa={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},$S={G:function(e,t,o){const n=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return o.era(n,{width:"abbreviated"});case"GGGGG":return o.era(n,{width:"narrow"});case"GGGG":default:return o.era(n,{width:"wide"})}},y:function(e,t,o){if(t==="yo"){const n=e.getFullYear(),r=n>0?n:1-n;return o.ordinalNumber(r,{unit:"year"})}return In.y(e,t)},Y:function(e,t,o,n){const r=NS(e,n),a=r>0?r:1-r;if(t==="YY"){const s=a%100;return Le(s,2)}return t==="Yo"?o.ordinalNumber(a,{unit:"year"}):Le(a,t.length)},R:function(e,t){const o=kS(e);return Le(o,t.length)},u:function(e,t){const o=e.getFullYear();return Le(o,t.length)},Q:function(e,t,o){const n=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(n);case"QQ":return Le(n,2);case"Qo":return o.ordinalNumber(n,{unit:"quarter"});case"QQQ":return o.quarter(n,{width:"abbreviated",context:"formatting"});case"QQQQQ":return o.quarter(n,{width:"narrow",context:"formatting"});case"QQQQ":default:return o.quarter(n,{width:"wide",context:"formatting"})}},q:function(e,t,o){const n=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(n);case"qq":return Le(n,2);case"qo":return o.ordinalNumber(n,{unit:"quarter"});case"qqq":return o.quarter(n,{width:"abbreviated",context:"standalone"});case"qqqqq":return o.quarter(n,{width:"narrow",context:"standalone"});case"qqqq":default:return o.quarter(n,{width:"wide",context:"standalone"})}},M:function(e,t,o){const n=e.getMonth();switch(t){case"M":case"MM":return In.M(e,t);case"Mo":return o.ordinalNumber(n+1,{unit:"month"});case"MMM":return o.month(n,{width:"abbreviated",context:"formatting"});case"MMMMM":return o.month(n,{width:"narrow",context:"formatting"});case"MMMM":default:return o.month(n,{width:"wide",context:"formatting"})}},L:function(e,t,o){const n=e.getMonth();switch(t){case"L":return String(n+1);case"LL":return Le(n+1,2);case"Lo":return o.ordinalNumber(n+1,{unit:"month"});case"LLL":return o.month(n,{width:"abbreviated",context:"standalone"});case"LLLLL":return o.month(n,{width:"narrow",context:"standalone"});case"LLLL":default:return o.month(n,{width:"wide",context:"standalone"})}},w:function(e,t,o,n){const r=bh(e,n);return t==="wo"?o.ordinalNumber(r,{unit:"week"}):Le(r,t.length)},I:function(e,t,o){const n=xh(e);return t==="Io"?o.ordinalNumber(n,{unit:"week"}):Le(n,t.length)},d:function(e,t,o){return t==="do"?o.ordinalNumber(e.getDate(),{unit:"date"}):In.d(e,t)},D:function(e,t,o){const n=nF(e);return t==="Do"?o.ordinalNumber(n,{unit:"dayOfYear"}):Le(n,t.length)},E:function(e,t,o){const n=e.getDay();switch(t){case"E":case"EE":case"EEE":return o.day(n,{width:"abbreviated",context:"formatting"});case"EEEEE":return o.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return o.day(n,{width:"short",context:"formatting"});case"EEEE":default:return o.day(n,{width:"wide",context:"formatting"})}},e:function(e,t,o,n){const r=e.getDay(),a=(r-n.weekStartsOn+8)%7||7;switch(t){case"e":return String(a);case"ee":return Le(a,2);case"eo":return o.ordinalNumber(a,{unit:"day"});case"eee":return o.day(r,{width:"abbreviated",context:"formatting"});case"eeeee":return o.day(r,{width:"narrow",context:"formatting"});case"eeeeee":return o.day(r,{width:"short",context:"formatting"});case"eeee":default:return o.day(r,{width:"wide",context:"formatting"})}},c:function(e,t,o,n){const r=e.getDay(),a=(r-n.weekStartsOn+8)%7||7;switch(t){case"c":return String(a);case"cc":return Le(a,t.length);case"co":return o.ordinalNumber(a,{unit:"day"});case"ccc":return o.day(r,{width:"abbreviated",context:"standalone"});case"ccccc":return o.day(r,{width:"narrow",context:"standalone"});case"cccccc":return o.day(r,{width:"short",context:"standalone"});case"cccc":default:return o.day(r,{width:"wide",context:"standalone"})}},i:function(e,t,o){const n=e.getDay(),r=n===0?7:n;switch(t){case"i":return String(r);case"ii":return Le(r,t.length);case"io":return o.ordinalNumber(r,{unit:"day"});case"iii":return o.day(n,{width:"abbreviated",context:"formatting"});case"iiiii":return o.day(n,{width:"narrow",context:"formatting"});case"iiiiii":return o.day(n,{width:"short",context:"formatting"});case"iiii":default:return o.day(n,{width:"wide",context:"formatting"})}},a:function(e,t,o){const r=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return o.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return o.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return o.dayPeriod(r,{width:"narrow",context:"formatting"});case"aaaa":default:return o.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(e,t,o){const n=e.getHours();let r;switch(n===12?r=xa.noon:n===0?r=xa.midnight:r=n/12>=1?"pm":"am",t){case"b":case"bb":return o.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbb":return o.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return o.dayPeriod(r,{width:"narrow",context:"formatting"});case"bbbb":default:return o.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(e,t,o){const n=e.getHours();let r;switch(n>=17?r=xa.evening:n>=12?r=xa.afternoon:n>=4?r=xa.morning:r=xa.night,t){case"B":case"BB":case"BBB":return o.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return o.dayPeriod(r,{width:"narrow",context:"formatting"});case"BBBB":default:return o.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(e,t,o){if(t==="ho"){let n=e.getHours()%12;return n===0&&(n=12),o.ordinalNumber(n,{unit:"hour"})}return In.h(e,t)},H:function(e,t,o){return t==="Ho"?o.ordinalNumber(e.getHours(),{unit:"hour"}):In.H(e,t)},K:function(e,t,o){const n=e.getHours()%12;return t==="Ko"?o.ordinalNumber(n,{unit:"hour"}):Le(n,t.length)},k:function(e,t,o){let n=e.getHours();return n===0&&(n=24),t==="ko"?o.ordinalNumber(n,{unit:"hour"}):Le(n,t.length)},m:function(e,t,o){return t==="mo"?o.ordinalNumber(e.getMinutes(),{unit:"minute"}):In.m(e,t)},s:function(e,t,o){return t==="so"?o.ordinalNumber(e.getSeconds(),{unit:"second"}):In.s(e,t)},S:function(e,t){return In.S(e,t)},X:function(e,t,o){const n=e.getTimezoneOffset();if(n===0)return"Z";switch(t){case"X":return LS(n);case"XXXX":case"XX":return mr(n);case"XXXXX":case"XXX":default:return mr(n,":")}},x:function(e,t,o){const n=e.getTimezoneOffset();switch(t){case"x":return LS(n);case"xxxx":case"xx":return mr(n);case"xxxxx":case"xxx":default:return mr(n,":")}},O:function(e,t,o){const n=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+FS(n,":");case"OOOO":default:return"GMT"+mr(n,":")}},z:function(e,t,o){const n=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+FS(n,":");case"zzzz":default:return"GMT"+mr(n,":")}},t:function(e,t,o){const n=Math.trunc(+e/1e3);return Le(n,t.length)},T:function(e,t,o){return Le(+e,t.length)}};function FS(e,t=""){const o=e>0?"-":"+",n=Math.abs(e),r=Math.trunc(n/60),a=n%60;return a===0?o+String(r):o+String(r)+t+Le(a,2)}function LS(e,t){return e%60===0?(e>0?"-":"+")+Le(Math.abs(e)/60,2):mr(e,t)}function mr(e,t=""){const o=e>0?"-":"+",n=Math.abs(e),r=Le(Math.trunc(n/60),2),a=Le(n%60,2);return o+r+t+a}const zS=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},BS=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},aF={p:BS,P:(e,t)=>{const o=e.match(/(P+)(p+)?/)||[],n=o[1],r=o[2];if(!r)return zS(e,t);let a;switch(n){case"P":a=t.dateTime({width:"short"});break;case"PP":a=t.dateTime({width:"medium"});break;case"PPP":a=t.dateTime({width:"long"});break;case"PPPP":default:a=t.dateTime({width:"full"});break}return a.replace("{{date}}",zS(n,t)).replace("{{time}}",BS(r,t))}},sF=/^D+$/,iF=/^Y+$/,lF=["D","DD","YY","YYYY"];function cF(e){return sF.test(e)}function uF(e){return iF.test(e)}function dF(e,t,o){const n=fF(e,t,o);if(console.warn(n),lF.includes(e))throw new RangeError(n)}function fF(e,t,o){const n=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${n} to the input \`${o}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const pF=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,hF=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,gF=/^'([^]*?)'?$/,mF=/''/g,xF=/[a-zA-Z]/;function Vs(e,t,o){var d,f,p,g,x,m,b,y;const n=Fs(),r=(o==null?void 0:o.locale)??n.locale??ma,a=(o==null?void 0:o.firstWeekContainsDate)??((f=(d=o==null?void 0:o.locale)==null?void 0:d.options)==null?void 0:f.firstWeekContainsDate)??n.firstWeekContainsDate??((g=(p=n.locale)==null?void 0:p.options)==null?void 0:g.firstWeekContainsDate)??1,s=(o==null?void 0:o.weekStartsOn)??((m=(x=o==null?void 0:o.locale)==null?void 0:x.options)==null?void 0:m.weekStartsOn)??n.weekStartsOn??((y=(b=n.locale)==null?void 0:b.options)==null?void 0:y.weekStartsOn)??0,i=Be(e,o==null?void 0:o.in);if(!v$(i))throw new RangeError("Invalid time value");let l=t.match(hF).map(C=>{const w=C[0];if(w==="p"||w==="P"){const P=aF[w];return P(C,r.formatLong)}return C}).join("").match(pF).map(C=>{if(C==="''")return{isToken:!1,value:"'"};const w=C[0];if(w==="'")return{isToken:!1,value:bF(C)};if($S[w])return{isToken:!0,value:C};if(w.match(xF))throw new RangeError("Format string contains an unescaped latin alphabet character `"+w+"`");return{isToken:!1,value:C}});r.localize.preprocessor&&(l=r.localize.preprocessor(i,l));const c={firstWeekContainsDate:a,weekStartsOn:s,locale:r};return l.map(C=>{if(!C.isToken)return C.value;const w=C.value;(!(o!=null&&o.useAdditionalWeekYearTokens)&&uF(w)||!(o!=null&&o.useAdditionalDayOfYearTokens)&&cF(w))&&dF(w,t,String(e));const P=$S[w[0]];return P(i,w,r.localize,c)}).join("")}function bF(e){const t=e.match(gF);return t?t[1].replace(mF,"'"):e}function vF(e,t){const o=Be(e,t==null?void 0:t.in),n=o.getFullYear(),r=o.getMonth(),a=Ze(o,0);return a.setFullYear(n,r+1,0),a.setHours(0,0,0,0),a.getDate()}function yF(e,t){return Be(e,t==null?void 0:t.in).getMonth()}function wF(e,t){return Be(e,t==null?void 0:t.in).getFullYear()}function CF(e,t){return+Be(e)>+Be(t)}function _F(e,t){return+Be(e)<+Be(t)}function SF(e,t,o){const[n,r]=ga(o==null?void 0:o.in,e,t);return n.getFullYear()===r.getFullYear()&&n.getMonth()===r.getMonth()}function PF(e,t,o){const[n,r]=ga(o==null?void 0:o.in,e,t);return n.getFullYear()===r.getFullYear()}function TF(e,t,o){const n=Be(e,o==null?void 0:o.in),r=n.getFullYear(),a=n.getDate(),s=Ze(e,0);s.setFullYear(r,t,15),s.setHours(0,0,0,0);const i=vF(s);return n.setMonth(t,Math.min(a,i)),n}function kF(e,t,o){const n=Be(e,o==null?void 0:o.in);return isNaN(+n)?Ze(e,NaN):(n.setFullYear(t),n)}const HS=5,EF=4;function IF(e,t){const o=t.startOfMonth(e),n=o.getDay()>0?o.getDay():7,r=t.addDays(e,-n+1),a=t.addDays(r,HS*7-1);return t.getMonth(e)===t.getMonth(a)?HS:EF}function VS(e,t){const o=t.startOfMonth(e),n=o.getDay();return n===1?o:n===0?t.addDays(o,-6):t.addDays(o,-1*(n-1))}function DF(e,t){const o=VS(e,t),n=IF(e,t);return t.addDays(o,n*7-1)}const WS={...ma,labels:{labelDayButton:(e,t,o,n)=>{let r;n&&typeof n.format=="function"?r=n.format.bind(n):r=(s,i)=>Vs(s,i,{locale:ma,...o});let a=r(e,"PPPP");return t.today&&(a=`Today, ${a}`),t.selected&&(a=`${a}, selected`),a},labelMonthDropdown:"Choose the Month",labelNext:"Go to the Next Month",labelPrevious:"Go to the Previous Month",labelWeekNumber:e=>`Week ${e}`,labelYearDropdown:"Choose the Year",labelGrid:(e,t,o)=>{let n;return o&&typeof o.format=="function"?n=o.format.bind(o):n=(r,a)=>Vs(r,a,{locale:ma,...t}),n(e,"LLLL yyyy")},labelGridcell:(e,t,o,n)=>{let r;n&&typeof n.format=="function"?r=n.format.bind(n):r=(s,i)=>Vs(s,i,{locale:ma,...o});let a=r(e,"PPPP");return t!=null&&t.today&&(a=`Today, ${a}`),a},labelNav:"Navigation bar",labelWeekNumberHeader:"Week Number",labelWeekday:(e,t,o)=>{let n;return o&&typeof o.format=="function"?n=o.format.bind(o):n=(r,a)=>Vs(r,a,{locale:ma,...t}),n(e,"cccc")}}};class Lt{constructor(t,o){this.today=()=>{var r;if((r=this.overrides)!=null&&r.today)return this.overrides.today();if(this.options.timeZone)return mt.tz(this.options.timeZone);const n=this.options.Date??Date;return new n},this.newDate=(n,r,a)=>{var s;return(s=this.overrides)!=null&&s.newDate?this.overrides.newDate(n,r,a):this.options.timeZone?new mt(n,r,a,this.options.timeZone):new Date(n,r,a)},this.addDays=(n,r)=>{var a;return(a=this.overrides)!=null&&a.addDays?this.overrides.addDays(n,r):PS(n,r)},this.addMonths=(n,r)=>{var a;return(a=this.overrides)!=null&&a.addMonths?this.overrides.addMonths(n,r):TS(n,r)},this.addWeeks=(n,r)=>{var a;return(a=this.overrides)!=null&&a.addWeeks?this.overrides.addWeeks(n,r):h$(n,r)},this.addYears=(n,r)=>{var a;return(a=this.overrides)!=null&&a.addYears?this.overrides.addYears(n,r):g$(n,r)},this.differenceInCalendarDays=(n,r)=>{var a;return(a=this.overrides)!=null&&a.differenceInCalendarDays?this.overrides.differenceInCalendarDays(n,r):gh(n,r)},this.differenceInCalendarMonths=(n,r)=>{var a;return(a=this.overrides)!=null&&a.differenceInCalendarMonths?this.overrides.differenceInCalendarMonths(n,r):DS(n,r)},this.eachMonthOfInterval=n=>{var r;return(r=this.overrides)!=null&&r.eachMonthOfInterval?this.overrides.eachMonthOfInterval(n):w$(n)},this.eachYearOfInterval=n=>{var i;const r=(i=this.overrides)!=null&&i.eachYearOfInterval?this.overrides.eachYearOfInterval(n):S$(n),a=new Set(r.map(l=>this.getYear(l)));if(a.size===r.length)return r;const s=[];return a.forEach(l=>{s.push(new Date(l,0,1))}),s},this.endOfBroadcastWeek=n=>{var r;return(r=this.overrides)!=null&&r.endOfBroadcastWeek?this.overrides.endOfBroadcastWeek(n):DF(n,this)},this.endOfISOWeek=n=>{var r;return(r=this.overrides)!=null&&r.endOfISOWeek?this.overrides.endOfISOWeek(n):P$(n)},this.endOfMonth=n=>{var r;return(r=this.overrides)!=null&&r.endOfMonth?this.overrides.endOfMonth(n):y$(n)},this.endOfWeek=(n,r)=>{var a;return(a=this.overrides)!=null&&a.endOfWeek?this.overrides.endOfWeek(n,r):AS(n,this.options)},this.endOfYear=n=>{var r;return(r=this.overrides)!=null&&r.endOfYear?this.overrides.endOfYear(n):_$(n)},this.format=(n,r,a)=>{var i;const s=(i=this.overrides)!=null&&i.format?this.overrides.format(n,r,this.options):Vs(n,r,this.options);return this.options.numerals&&this.options.numerals!=="latn"?this.replaceDigits(s):s},this.getISOWeek=n=>{var r;return(r=this.overrides)!=null&&r.getISOWeek?this.overrides.getISOWeek(n):xh(n)},this.getMonth=(n,r)=>{var a;return(a=this.overrides)!=null&&a.getMonth?this.overrides.getMonth(n,this.options):yF(n,this.options)},this.getYear=(n,r)=>{var a;return(a=this.overrides)!=null&&a.getYear?this.overrides.getYear(n,this.options):wF(n,this.options)},this.getWeek=(n,r)=>{var a;return(a=this.overrides)!=null&&a.getWeek?this.overrides.getWeek(n,this.options):bh(n,this.options)},this.isAfter=(n,r)=>{var a;return(a=this.overrides)!=null&&a.isAfter?this.overrides.isAfter(n,r):CF(n,r)},this.isBefore=(n,r)=>{var a;return(a=this.overrides)!=null&&a.isBefore?this.overrides.isBefore(n,r):_F(n,r)},this.isDate=n=>{var r;return(r=this.overrides)!=null&&r.isDate?this.overrides.isDate(n):IS(n)},this.isSameDay=(n,r)=>{var a;return(a=this.overrides)!=null&&a.isSameDay?this.overrides.isSameDay(n,r):b$(n,r)},this.isSameMonth=(n,r)=>{var a;return(a=this.overrides)!=null&&a.isSameMonth?this.overrides.isSameMonth(n,r):SF(n,r)},this.isSameYear=(n,r)=>{var a;return(a=this.overrides)!=null&&a.isSameYear?this.overrides.isSameYear(n,r):PF(n,r)},this.max=n=>{var r;return(r=this.overrides)!=null&&r.max?this.overrides.max(n):m$(n)},this.min=n=>{var r;return(r=this.overrides)!=null&&r.min?this.overrides.min(n):x$(n)},this.setMonth=(n,r)=>{var a;return(a=this.overrides)!=null&&a.setMonth?this.overrides.setMonth(n,r):TF(n,r)},this.setYear=(n,r)=>{var a;return(a=this.overrides)!=null&&a.setYear?this.overrides.setYear(n,r):kF(n,r)},this.startOfBroadcastWeek=(n,r)=>{var a;return(a=this.overrides)!=null&&a.startOfBroadcastWeek?this.overrides.startOfBroadcastWeek(n,this):VS(n,this)},this.startOfDay=n=>{var r;return(r=this.overrides)!=null&&r.startOfDay?this.overrides.startOfDay(n):zs(n)},this.startOfISOWeek=n=>{var r;return(r=this.overrides)!=null&&r.startOfISOWeek?this.overrides.startOfISOWeek(n):Ls(n)},this.startOfMonth=n=>{var r;return(r=this.overrides)!=null&&r.startOfMonth?this.overrides.startOfMonth(n):C$(n)},this.startOfWeek=(n,r)=>{var a;return(a=this.overrides)!=null&&a.startOfWeek?this.overrides.startOfWeek(n,this.options):ha(n,this.options)},this.startOfYear=n=>{var r;return(r=this.overrides)!=null&&r.startOfYear?this.overrides.startOfYear(n):OS(n)},this.options={locale:WS,...t},this.overrides=o}getDigitMap(){const{numerals:t="latn"}=this.options,o=new Intl.NumberFormat("en-US",{numberingSystem:t}),n={};for(let r=0;r<10;r++)n[r.toString()]=o.format(r);return n}replaceDigits(t){const o=this.getDigitMap();return t.replace(/\d/g,n=>o[n]||n)}formatNumber(t){return this.replaceDigits(t.toString())}getMonthYearOrder(){var o;const t=(o=this.options.locale)==null?void 0:o.code;return t&&Lt.yearFirstLocales.has(t)?"year-first":"month-first"}formatMonthYear(t){const{locale:o,timeZone:n,numerals:r}=this.options,a=o==null?void 0:o.code;if(a&&Lt.yearFirstLocales.has(a))try{return new Intl.DateTimeFormat(a,{month:"long",year:"numeric",timeZone:n,numberingSystem:r}).format(t)}catch{}const s=this.getMonthYearOrder()==="year-first"?"y LLLL":"LLLL y";return this.format(t,s)}}Lt.yearFirstLocales=new Set(["eu","hu","ja","ja-Hira","ja-JP","ko","ko-KR","lt","lt-LT","lv","lv-LV","mn","mn-MN","zh","zh-CN","zh-HK","zh-TW"]);const No=new Lt;let RS=class{constructor(t,o,n=No){this.date=t,this.displayMonth=o,this.outside=!!(o&&!n.isSameMonth(t,o)),this.dateLib=n,this.isoDate=n.format(t,"yyyy-MM-dd"),this.displayMonthId=n.format(o,"yyyy-MM"),this.dateMonthId=n.format(t,"yyyy-MM")}isEqualTo(t){return this.dateLib.isSameDay(t.date,this.date)&&this.dateLib.isSameMonth(t.displayMonth,this.displayMonth)}};class MF{constructor(t,o){this.date=t,this.weeks=o}}class OF{constructor(t,o){this.days=o,this.weekNumber=t}}function AF(e){return h.createElement("span",{...e})}function NF(e){const{size:t=24,orientation:o="left",className:n,style:r}=e;return h.createElement("svg",{className:n,style:r,width:t,height:t,viewBox:"0 0 24 24"},o==="up"&&h.createElement("polygon",{points:"6.77 17 12.5 11.43 18.24 17 20 15.28 12.5 8 5 15.28"}),o==="down"&&h.createElement("polygon",{points:"6.77 8 12.5 13.57 18.24 8 20 9.72 12.5 17 5 9.72"}),o==="left"&&h.createElement("polygon",{points:"16 18.112 9.81111111 12 16 5.87733333 14.0888889 4 6 12 14.0888889 20"}),o==="right"&&h.createElement("polygon",{points:"8 18.112 14.18888889 12 8 5.87733333 9.91111111 4 18 12 9.91111111 20"}))}function $F(e){const{day:t,modifiers:o,...n}=e;return h.createElement("td",{...n})}function FF(e){const{day:t,modifiers:o,...n}=e,r=h.useRef(null);return h.useEffect(()=>{var a;o.focused&&((a=r.current)==null||a.focus())},[o.focused]),h.createElement("button",{ref:r,...n})}var oe;(function(e){e.Root="root",e.Chevron="chevron",e.Day="day",e.DayButton="day_button",e.CaptionLabel="caption_label",e.Dropdowns="dropdowns",e.Dropdown="dropdown",e.DropdownRoot="dropdown_root",e.Footer="footer",e.MonthGrid="month_grid",e.MonthCaption="month_caption",e.MonthsDropdown="months_dropdown",e.Month="month",e.Months="months",e.Nav="nav",e.NextMonthButton="button_next",e.PreviousMonthButton="button_previous",e.Week="week",e.Weeks="weeks",e.Weekday="weekday",e.Weekdays="weekdays",e.WeekNumber="week_number",e.WeekNumberHeader="week_number_header",e.YearsDropdown="years_dropdown"})(oe||(oe={}));var Re;(function(e){e.disabled="disabled",e.hidden="hidden",e.outside="outside",e.focused="focused",e.today="today"})(Re||(Re={}));var go;(function(e){e.range_end="range_end",e.range_middle="range_middle",e.range_start="range_start",e.selected="selected"})(go||(go={}));var zt;(function(e){e.weeks_before_enter="weeks_before_enter",e.weeks_before_exit="weeks_before_exit",e.weeks_after_enter="weeks_after_enter",e.weeks_after_exit="weeks_after_exit",e.caption_after_enter="caption_after_enter",e.caption_after_exit="caption_after_exit",e.caption_before_enter="caption_before_enter",e.caption_before_exit="caption_before_exit"})(zt||(zt={}));const GS=h.createContext(void 0);function ba(){const e=h.useContext(GS);if(e===void 0)throw new Error("useDayPicker() must be used within a custom component.");return e}function LF(e){const{options:t,className:o,...n}=e,{classNames:r,components:a,styles:s}=ba(),i=[r[oe.Dropdown],o].join(" "),l=t==null?void 0:t.find(({value:c})=>c===n.value);return h.createElement("span",{"data-disabled":n.disabled,className:r[oe.DropdownRoot],style:s==null?void 0:s[oe.DropdownRoot]},h.createElement(a.Select,{className:i,...n},t==null?void 0:t.map(({value:c,label:d,disabled:f})=>h.createElement(a.Option,{key:c,value:c,disabled:f},d))),h.createElement("span",{className:r[oe.CaptionLabel],style:s==null?void 0:s[oe.CaptionLabel],"aria-hidden":!0},l==null?void 0:l.label,h.createElement(a.Chevron,{orientation:"down",size:18,className:r[oe.Chevron],style:s==null?void 0:s[oe.Chevron]})))}function zF(e){return h.createElement("div",{...e})}function BF(e){return h.createElement("div",{...e})}function HF(e){const{calendarMonth:t,displayIndex:o,...n}=e;return h.createElement("div",{...n},e.children)}function VF(e){const{calendarMonth:t,displayIndex:o,...n}=e;return h.createElement("div",{...n})}function WF(e){return h.createElement("table",{...e})}function RF(e){return h.createElement("div",{...e})}function GF(e){const{components:t}=ba();return h.createElement(t.Dropdown,{...e})}function jF(e){const{onPreviousClick:t,onNextClick:o,previousMonth:n,nextMonth:r,...a}=e,{components:s,classNames:i,styles:l,labels:{labelPrevious:c,labelNext:d}}=ba(),f=h.useCallback(g=>{r&&(o==null||o(g))},[r,o]),p=h.useCallback(g=>{n&&(t==null||t(g))},[n,t]);return h.createElement("nav",{...a},h.createElement(s.PreviousMonthButton,{type:"button",className:i[oe.PreviousMonthButton],style:l==null?void 0:l[oe.PreviousMonthButton],tabIndex:n?void 0:-1,"aria-disabled":n?void 0:!0,"aria-label":c(n),onClick:p},h.createElement(s.Chevron,{disabled:n?void 0:!0,className:i[oe.Chevron],style:l==null?void 0:l[oe.Chevron],orientation:"left"})),h.createElement(s.NextMonthButton,{type:"button",className:i[oe.NextMonthButton],style:l==null?void 0:l[oe.NextMonthButton],tabIndex:r?void 0:-1,"aria-disabled":r?void 0:!0,"aria-label":d(r),onClick:f},h.createElement(s.Chevron,{disabled:r?void 0:!0,orientation:"right",className:i[oe.Chevron],style:l==null?void 0:l[oe.Chevron]})))}function UF(e){return h.createElement("button",{...e})}function qF(e){return h.createElement("option",{...e})}function YF(e){return h.createElement("button",{...e})}function KF(e){const{rootRef:t,...o}=e;return h.createElement("div",{...o,ref:t})}function XF(e){return h.createElement("select",{...e})}function ZF(e){const{week:t,...o}=e;return h.createElement("tr",{...o})}function JF(e){return h.createElement("th",{...e})}function QF(e){return h.createElement("thead",{"aria-hidden":!0},h.createElement("tr",{...e}))}function eL(e){const{week:t,...o}=e;return h.createElement("th",{...o})}function tL(e){return h.createElement("th",{...e})}function oL(e){return h.createElement("tbody",{...e})}function nL(e){const{components:t}=ba();return h.createElement(t.Dropdown,{...e})}const rL=Object.freeze(Object.defineProperty({__proto__:null,CaptionLabel:AF,Chevron:NF,Day:$F,DayButton:FF,Dropdown:LF,DropdownNav:zF,Footer:BF,Month:HF,MonthCaption:VF,MonthGrid:WF,Months:RF,MonthsDropdown:GF,Nav:jF,NextMonthButton:UF,Option:qF,PreviousMonthButton:YF,Root:KF,Select:XF,Week:ZF,WeekNumber:eL,WeekNumberHeader:tL,Weekday:JF,Weekdays:QF,Weeks:oL,YearsDropdown:nL},Symbol.toStringTag,{value:"Module"}));function on(e,t,o=!1,n=No){let{from:r,to:a}=e;const{differenceInCalendarDays:s,isSameDay:i}=n;return r&&a?(s(a,r)<0&&([r,a]=[a,r]),s(t,r)>=(o?1:0)&&s(a,t)>=(o?1:0)):!o&&a?i(a,t):!o&&r?i(r,t):!1}function vh(e){return!!(e&&typeof e=="object"&&"before"in e&&"after"in e)}function hc(e){return!!(e&&typeof e=="object"&&"from"in e)}function yh(e){return!!(e&&typeof e=="object"&&"after"in e)}function wh(e){return!!(e&&typeof e=="object"&&"before"in e)}function jS(e){return!!(e&&typeof e=="object"&&"dayOfWeek"in e)}function US(e,t){return Array.isArray(e)&&e.every(t.isDate)}function nn(e,t,o=No){const n=Array.isArray(t)?t:[t],{isSameDay:r,differenceInCalendarDays:a,isAfter:s}=o;return n.some(i=>{if(typeof i=="boolean")return i;if(o.isDate(i))return r(e,i);if(US(i,o))return i.some(l=>r(e,l));if(hc(i))return on(i,e,!1,o);if(jS(i))return Array.isArray(i.dayOfWeek)?i.dayOfWeek.includes(e.getDay()):i.dayOfWeek===e.getDay();if(vh(i)){const l=a(i.before,e),c=a(i.after,e),d=l>0,f=c<0;return s(i.before,i.after)?f&&d:d||f}return yh(i)?a(e,i.after)>0:wh(i)?a(i.before,e)>0:typeof i=="function"?i(e):!1})}function aL(e,t,o,n,r){const{disabled:a,hidden:s,modifiers:i,showOutsideDays:l,broadcastCalendar:c,today:d=r.today()}=t,{isSameDay:f,isSameMonth:p,startOfMonth:g,isBefore:x,endOfMonth:m,isAfter:b}=r,y=o&&g(o),C=n&&m(n),w={[Re.focused]:[],[Re.outside]:[],[Re.disabled]:[],[Re.hidden]:[],[Re.today]:[]},P={};for(const S of e){const{date:_,displayMonth:T}=S,k=!!(T&&!p(_,T)),E=!!(y&&x(_,y)),D=!!(C&&b(_,C)),O=!!(a&&nn(_,a,r)),N=!!(s&&nn(_,s,r))||E||D||!c&&!l&&k||c&&l===!1&&k,z=f(_,d);k&&w.outside.push(S),O&&w.disabled.push(S),N&&w.hidden.push(S),z&&w.today.push(S),i&&Object.keys(i).forEach(B=>{const G=i==null?void 0:i[B];G&&nn(_,G,r)&&(P[B]?P[B].push(S):P[B]=[S])})}return S=>{const _={[Re.focused]:!1,[Re.disabled]:!1,[Re.hidden]:!1,[Re.outside]:!1,[Re.today]:!1},T={};for(const k in w){const E=w[k];_[k]=E.some(D=>D===S)}for(const k in P)T[k]=P[k].some(E=>E===S);return{..._,...T}}}function sL(e,t,o={}){return Object.entries(e).filter(([,r])=>r===!0).reduce((r,[a])=>(o[a]?r.push(o[a]):t[Re[a]]?r.push(t[Re[a]]):t[go[a]]&&r.push(t[go[a]]),r),[t[oe.Day]])}function iL(e){return{...rL,...e}}function lL(e){const t={"data-mode":e.mode??void 0,"data-required":"required"in e?e.required:void 0,"data-multiple-months":e.numberOfMonths&&e.numberOfMonths>1||void 0,"data-week-numbers":e.showWeekNumber||void 0,"data-broadcast-calendar":e.broadcastCalendar||void 0,"data-nav-layout":e.navLayout||void 0};return Object.entries(e).forEach(([o,n])=>{o.startsWith("data-")&&(t[o]=n)}),t}function cL(){const e={};for(const t in oe)e[oe[t]]=`rdp-${oe[t]}`;for(const t in Re)e[Re[t]]=`rdp-${Re[t]}`;for(const t in go)e[go[t]]=`rdp-${go[t]}`;for(const t in zt)e[zt[t]]=`rdp-${zt[t]}`;return e}function uL(e,t,o){return(o??new Lt(t)).formatMonthYear(e)}function dL(e,t,o){return(o??new Lt(t)).format(e,"d")}function fL(e,t=No){return t.format(e,"LLLL")}function pL(e,t,o){return(o??new Lt(t)).format(e,"cccccc")}function hL(e,t=No){return e<10?t.formatNumber(`0${e.toLocaleString()}`):t.formatNumber(`${e.toLocaleString()}`)}function gL(){return""}function mL(e,t=No){return t.format(e,"yyyy")}const xL=Object.freeze(Object.defineProperty({__proto__:null,formatCaption:uL,formatDay:dL,formatMonthDropdown:fL,formatWeekNumber:hL,formatWeekNumberHeader:gL,formatWeekdayName:pL,formatYearDropdown:mL},Symbol.toStringTag,{value:"Module"}));function bL(e){return{...xL,...e}}function qS(e,t,o,n){let r=(n??new Lt(o)).format(e,"PPPP");return t.today&&(r=`Today, ${r}`),t.selected&&(r=`${r}, selected`),r}function YS(e,t,o){return(o??new Lt(t)).formatMonthYear(e)}function KS(e,t,o,n){let r=(n??new Lt(o)).format(e,"PPPP");return t!=null&&t.today&&(r=`Today, ${r}`),r}function XS(e){return"Choose the Month"}function ZS(){return""}const vL="Go to the Next Month";function JS(e,t){return vL}function QS(e){return"Go to the Previous Month"}function e2(e,t,o){return(o??new Lt(t)).format(e,"cccc")}function t2(e,t){return`Week ${e}`}function o2(e){return"Week Number"}function n2(e){return"Choose the Year"}const yL=Object.freeze(Object.defineProperty({__proto__:null,labelDayButton:qS,labelGrid:YS,labelGridcell:KS,labelMonthDropdown:XS,labelNav:ZS,labelNext:JS,labelPrevious:QS,labelWeekNumber:t2,labelWeekNumberHeader:o2,labelWeekday:e2,labelYearDropdown:n2},Symbol.toStringTag,{value:"Module"})),mo=(e,t,o)=>t||(o?typeof o=="function"?o:(...n)=>o:e);function wL(e,t){var n;const o=((n=t.locale)==null?void 0:n.labels)??{};return{...yL,...e??{},labelDayButton:mo(qS,e==null?void 0:e.labelDayButton,o.labelDayButton),labelMonthDropdown:mo(XS,e==null?void 0:e.labelMonthDropdown,o.labelMonthDropdown),labelNext:mo(JS,e==null?void 0:e.labelNext,o.labelNext),labelPrevious:mo(QS,e==null?void 0:e.labelPrevious,o.labelPrevious),labelWeekNumber:mo(t2,e==null?void 0:e.labelWeekNumber,o.labelWeekNumber),labelYearDropdown:mo(n2,e==null?void 0:e.labelYearDropdown,o.labelYearDropdown),labelGrid:mo(YS,e==null?void 0:e.labelGrid,o.labelGrid),labelGridcell:mo(KS,e==null?void 0:e.labelGridcell,o.labelGridcell),labelNav:mo(ZS,e==null?void 0:e.labelNav,o.labelNav),labelWeekNumberHeader:mo(o2,e==null?void 0:e.labelWeekNumberHeader,o.labelWeekNumberHeader),labelWeekday:mo(e2,e==null?void 0:e.labelWeekday,o.labelWeekday)}}function CL(e,t,o,n,r){const{startOfMonth:a,startOfYear:s,endOfYear:i,eachMonthOfInterval:l,getMonth:c}=r;return l({start:s(e),end:i(e)}).map(p=>{const g=n.formatMonthDropdown(p,r),x=c(p),m=t&&p<a(t)||o&&p>a(o)||!1;return{value:x,label:g,disabled:m}})}function _L(e,t={},o={}){let n={...t==null?void 0:t[oe.Day]};return Object.entries(e).filter(([,r])=>r===!0).forEach(([r])=>{n={...n,...o==null?void 0:o[r]}}),n}function SL(e,t,o,n){const r=n??e.today(),a=o?e.startOfBroadcastWeek(r,e):t?e.startOfISOWeek(r):e.startOfWeek(r),s=[];for(let i=0;i<7;i++){const l=e.addDays(a,i);s.push(l)}return s}function PL(e,t,o,n,r=!1){if(!e||!t)return;const{startOfYear:a,endOfYear:s,eachYearOfInterval:i,getYear:l}=n,c=a(e),d=s(t),f=i({start:c,end:d});return r&&f.reverse(),f.map(p=>{const g=o.formatYearDropdown(p,n);return{value:l(p),label:g,disabled:!1}})}function TL(e,t={}){var i;const{weekStartsOn:o,locale:n}=t,r=o??((i=n==null?void 0:n.options)==null?void 0:i.weekStartsOn)??0,a=l=>{const c=typeof l=="number"||typeof l=="string"?new Date(l):l;return new mt(c.getFullYear(),c.getMonth(),c.getDate(),12,0,0,e)},s=l=>{const c=a(l);return new Date(c.getFullYear(),c.getMonth(),c.getDate(),0,0,0,0)};return{today:()=>a(mt.tz(e)),newDate:(l,c,d)=>new mt(l,c,d,12,0,0,e),startOfDay:l=>a(l),startOfWeek:(l,c)=>{const d=a(l),f=(c==null?void 0:c.weekStartsOn)??r,p=(d.getDay()-f+7)%7;return d.setDate(d.getDate()-p),d},startOfISOWeek:l=>{const c=a(l),d=(c.getDay()-1+7)%7;return c.setDate(c.getDate()-d),c},startOfMonth:l=>{const c=a(l);return c.setDate(1),c},startOfYear:l=>{const c=a(l);return c.setMonth(0,1),c},endOfWeek:(l,c)=>{const d=a(l),g=((((c==null?void 0:c.weekStartsOn)??r)+6)%7-d.getDay()+7)%7;return d.setDate(d.getDate()+g),d},endOfISOWeek:l=>{const c=a(l),d=(7-c.getDay())%7;return c.setDate(c.getDate()+d),c},endOfMonth:l=>{const c=a(l);return c.setMonth(c.getMonth()+1,0),c},endOfYear:l=>{const c=a(l);return c.setMonth(11,31),c},eachMonthOfInterval:l=>{const c=a(l.start),d=a(l.end),f=[],p=new mt(c.getFullYear(),c.getMonth(),1,12,0,0,e),g=d.getFullYear()*12+d.getMonth();for(;p.getFullYear()*12+p.getMonth()<=g;)f.push(new mt(p,e)),p.setMonth(p.getMonth()+1,1);return f},addDays:(l,c)=>{const d=a(l);return d.setDate(d.getDate()+c),d},addWeeks:(l,c)=>{const d=a(l);return d.setDate(d.getDate()+c*7),d},addMonths:(l,c)=>{const d=a(l);return d.setMonth(d.getMonth()+c),d},addYears:(l,c)=>{const d=a(l);return d.setFullYear(d.getFullYear()+c),d},eachYearOfInterval:l=>{const c=a(l.start),d=a(l.end),f=[],p=new mt(c.getFullYear(),0,1,12,0,0,e);for(;p.getFullYear()<=d.getFullYear();)f.push(new mt(p,e)),p.setFullYear(p.getFullYear()+1,0,1);return f},getWeek:(l,c)=>{var f;const d=s(l);return bh(d,{weekStartsOn:(c==null?void 0:c.weekStartsOn)??r,firstWeekContainsDate:(c==null?void 0:c.firstWeekContainsDate)??((f=n==null?void 0:n.options)==null?void 0:f.firstWeekContainsDate)??1})},getISOWeek:l=>{const c=s(l);return xh(c)},differenceInCalendarDays:(l,c)=>{const d=s(l),f=s(c);return gh(d,f)},differenceInCalendarMonths:(l,c)=>{const d=s(l),f=s(c);return DS(d,f)}}}const Ws=e=>e instanceof HTMLElement?e:null,Ch=e=>[...e.querySelectorAll("[data-animated-month]")??[]],kL=e=>Ws(e.querySelector("[data-animated-month]")),_h=e=>Ws(e.querySelector("[data-animated-caption]")),Sh=e=>Ws(e.querySelector("[data-animated-weeks]")),EL=e=>Ws(e.querySelector("[data-animated-nav]")),IL=e=>Ws(e.querySelector("[data-animated-weekdays]"));function DL(e,t,{classNames:o,months:n,focused:r,dateLib:a}){const s=h.useRef(null),i=h.useRef(n),l=h.useRef(!1);h.useLayoutEffect(()=>{const c=i.current;if(i.current=n,!t||!e.current||!(e.current instanceof HTMLElement)||n.length===0||c.length===0||n.length!==c.length)return;const d=a.isSameMonth(n[0].date,c[0].date),f=a.isAfter(n[0].date,c[0].date),p=f?o[zt.caption_after_enter]:o[zt.caption_before_enter],g=f?o[zt.weeks_after_enter]:o[zt.weeks_before_enter],x=s.current,m=e.current.cloneNode(!0);if(m instanceof HTMLElement?(Ch(m).forEach(w=>{if(!(w instanceof HTMLElement))return;const P=kL(w);P&&w.contains(P)&&w.removeChild(P);const S=_h(w);S&&S.classList.remove(p);const _=Sh(w);_&&_.classList.remove(g)}),s.current=m):s.current=null,l.current||d||r)return;const b=x instanceof HTMLElement?Ch(x):[],y=Ch(e.current);if(y!=null&&y.every(C=>C instanceof HTMLElement)&&(b!=null&&b.every(C=>C instanceof HTMLElement))){l.current=!0,e.current.style.isolation="isolate";const C=EL(e.current);C&&(C.style.zIndex="1"),y.forEach((w,P)=>{const S=b[P];if(!S)return;w.style.position="relative",w.style.overflow="hidden";const _=_h(w);_&&_.classList.add(p);const T=Sh(w);T&&T.classList.add(g);const k=()=>{l.current=!1,e.current&&(e.current.style.isolation=""),C&&(C.style.zIndex=""),_&&_.classList.remove(p),T&&T.classList.remove(g),w.style.position="",w.style.overflow="",w.contains(S)&&w.removeChild(S)};S.style.pointerEvents="none",S.style.position="absolute",S.style.overflow="hidden",S.setAttribute("aria-hidden","true");const E=IL(S);E&&(E.style.opacity="0");const D=_h(S);D&&(D.classList.add(f?o[zt.caption_before_exit]:o[zt.caption_after_exit]),D.addEventListener("animationend",k));const O=Sh(S);O&&O.classList.add(f?o[zt.weeks_before_exit]:o[zt.weeks_after_exit]),w.insertBefore(S,w.firstChild)})}})}function ML(e,t,o,n){const r=e[0],a=e[e.length-1],{ISOWeek:s,fixedWeeks:i,broadcastCalendar:l}=o??{},{addDays:c,differenceInCalendarDays:d,differenceInCalendarMonths:f,endOfBroadcastWeek:p,endOfISOWeek:g,endOfMonth:x,endOfWeek:m,isAfter:b,startOfBroadcastWeek:y,startOfISOWeek:C,startOfWeek:w}=n,P=l?y(r,n):s?C(r):w(r),S=l?p(a):s?g(x(a)):m(x(a)),_=t&&(l?p(t):s?g(t):m(t)),T=_&&b(S,_)?_:S,k=d(T,P),E=f(a,r)+1,D=[];for(let z=0;z<=k;z++){const B=c(P,z);D.push(B)}const N=(l?35:42)*E;if(i&&D.length<N){const z=N-D.length;for(let B=0;B<z;B++){const G=c(D[D.length-1],1);D.push(G)}}return D}function OL(e){const t=[];return e.reduce((o,n)=>{const r=n.weeks.reduce((a,s)=>a.concat(s.days.slice()),t.slice());return o.concat(r.slice())},t.slice())}function AL(e,t,o,n){const{numberOfMonths:r=1}=o,a=[];for(let s=0;s<r;s++){const i=n.addMonths(e,s);if(t&&i>t)break;a.push(i)}return a}function r2(e,t,o,n){const{month:r,defaultMonth:a,today:s=n.today(),numberOfMonths:i=1}=e;let l=r||a||s;const{differenceInCalendarMonths:c,addMonths:d,startOfMonth:f}=n;if(o&&c(o,l)<i-1){const p=-1*(i-1);l=d(o,p)}return t&&c(l,t)<0&&(l=t),f(l)}function NL(e,t,o,n){const{addDays:r,endOfBroadcastWeek:a,endOfISOWeek:s,endOfMonth:i,endOfWeek:l,getISOWeek:c,getWeek:d,startOfBroadcastWeek:f,startOfISOWeek:p,startOfWeek:g}=n,x=e.reduce((m,b)=>{const y=o.broadcastCalendar?f(b,n):o.ISOWeek?p(b):g(b),C=o.broadcastCalendar?a(b):o.ISOWeek?s(i(b)):l(i(b)),w=t.filter(T=>T>=y&&T<=C),P=o.broadcastCalendar?35:42;if(o.fixedWeeks&&w.length<P){const T=t.filter(k=>{const E=P-w.length;return k>C&&k<=r(C,E)});w.push(...T)}const S=w.reduce((T,k)=>{const E=o.ISOWeek?c(k):d(k),D=T.find(N=>N.weekNumber===E),O=new RS(k,b,n);return D?D.days.push(O):T.push(new OF(E,[O])),T},[]),_=new MF(b,S);return m.push(_),m},[]);return o.reverseMonths?x.reverse():x}function $L(e,t){let{startMonth:o,endMonth:n}=e;const{startOfYear:r,startOfDay:a,startOfMonth:s,endOfMonth:i,addYears:l,endOfYear:c,today:d}=t,f=e.captionLayout==="dropdown"||e.captionLayout==="dropdown-years";return o?o=s(o):!o&&f&&(o=r(l(e.today??d(),-100))),n?n=i(n):!n&&f&&(n=c(e.today??d())),[o&&a(o),n&&a(n)]}function FL(e,t,o,n){if(o.disableNavigation)return;const{pagedNavigation:r,numberOfMonths:a=1}=o,{startOfMonth:s,addMonths:i,differenceInCalendarMonths:l}=n,c=r?a:1,d=s(e);if(!t)return i(d,c);if(!(l(t,e)<a))return i(d,c)}function LL(e,t,o,n){if(o.disableNavigation)return;const{pagedNavigation:r,numberOfMonths:a}=o,{startOfMonth:s,addMonths:i,differenceInCalendarMonths:l}=n,c=r?a??1:1,d=s(e);if(!t)return i(d,-c);if(!(l(d,t)<=0))return i(d,-c)}function zL(e){const t=[];return e.reduce((o,n)=>o.concat(n.weeks.slice()),t.slice())}function gc(e,t){const[o,n]=h.useState(e);return[t===void 0?o:t,n]}function BL(e,t){var P;const[o,n]=$L(e,t),{startOfMonth:r,endOfMonth:a}=t,s=r2(e,o,n,t),[i,l]=gc(s,e.month?s:void 0);h.useEffect(()=>{const S=r2(e,o,n,t);l(S)},[e.timeZone]);const{months:c,weeks:d,days:f,previousMonth:p,nextMonth:g}=h.useMemo(()=>{const S=AL(i,n,{numberOfMonths:e.numberOfMonths},t),_=ML(S,e.endMonth?a(e.endMonth):void 0,{ISOWeek:e.ISOWeek,fixedWeeks:e.fixedWeeks,broadcastCalendar:e.broadcastCalendar},t),T=NL(S,_,{broadcastCalendar:e.broadcastCalendar,fixedWeeks:e.fixedWeeks,ISOWeek:e.ISOWeek,reverseMonths:e.reverseMonths},t),k=zL(T),E=OL(T),D=LL(i,o,e,t),O=FL(i,n,e,t);return{months:T,weeks:k,days:E,previousMonth:D,nextMonth:O}},[t,i.getTime(),n==null?void 0:n.getTime(),o==null?void 0:o.getTime(),e.disableNavigation,e.broadcastCalendar,(P=e.endMonth)==null?void 0:P.getTime(),e.fixedWeeks,e.ISOWeek,e.numberOfMonths,e.pagedNavigation,e.reverseMonths]),{disableNavigation:x,onMonthChange:m}=e,b=S=>d.some(_=>_.days.some(T=>T.isEqualTo(S))),y=S=>{if(x)return;let _=r(S);o&&_<r(o)&&(_=r(o)),n&&_>r(n)&&(_=r(n)),l(_),m==null||m(_)};return{months:c,weeks:d,days:f,navStart:o,navEnd:n,previousMonth:p,nextMonth:g,goToMonth:y,goToDay:S=>{b(S)||y(S.date)}}}var $o;(function(e){e[e.Today=0]="Today",e[e.Selected=1]="Selected",e[e.LastFocused=2]="LastFocused",e[e.FocusedModifier=3]="FocusedModifier"})($o||($o={}));function a2(e){return!e[Re.disabled]&&!e[Re.hidden]&&!e[Re.outside]}function HL(e,t,o,n){let r,a=-1;for(const s of e){const i=t(s);a2(i)&&(i[Re.focused]&&a<$o.FocusedModifier?(r=s,a=$o.FocusedModifier):n!=null&&n.isEqualTo(s)&&a<$o.LastFocused?(r=s,a=$o.LastFocused):o(s.date)&&a<$o.Selected?(r=s,a=$o.Selected):i[Re.today]&&a<$o.Today&&(r=s,a=$o.Today))}return r||(r=e.find(s=>a2(t(s)))),r}function VL(e,t,o,n,r,a,s){const{ISOWeek:i,broadcastCalendar:l}=a,{addDays:c,addMonths:d,addWeeks:f,addYears:p,endOfBroadcastWeek:g,endOfISOWeek:x,endOfWeek:m,max:b,min:y,startOfBroadcastWeek:C,startOfISOWeek:w,startOfWeek:P}=s;let _={day:c,week:f,month:d,year:p,startOfWeek:T=>l?C(T,s):i?w(T):P(T),endOfWeek:T=>l?g(T):i?x(T):m(T)}[e](o,t==="after"?1:-1);return t==="before"&&n?_=b([n,_]):t==="after"&&r&&(_=y([r,_])),_}function s2(e,t,o,n,r,a,s,i=0){if(i>365)return;const l=VL(e,t,o.date,n,r,a,s),c=!!(a.disabled&&nn(l,a.disabled,s)),d=!!(a.hidden&&nn(l,a.hidden,s)),f=l,p=new RS(l,f,s);return!c&&!d?p:s2(e,t,p,n,r,a,s,i+1)}function WL(e,t,o,n,r){const{autoFocus:a}=e,[s,i]=h.useState(),l=HL(t.days,o,n||(()=>!1),s),[c,d]=h.useState(a?l:void 0);return{isFocusTarget:m=>!!(l!=null&&l.isEqualTo(m)),setFocused:d,focused:c,blur:()=>{i(c),d(void 0)},moveFocus:(m,b)=>{if(!c)return;const y=s2(m,b,c,t.navStart,t.navEnd,e,r);y&&(e.disableNavigation&&!t.days.some(w=>w.isEqualTo(y))||(t.goToDay(y),d(y)))}}}function RL(e,t){const{selected:o,required:n,onSelect:r}=e,[a,s]=gc(o,r?o:void 0),i=r?o:a,{isSameDay:l}=t,c=g=>(i==null?void 0:i.some(x=>l(x,g)))??!1,{min:d,max:f}=e;return{selected:i,select:(g,x,m)=>{let b=[...i??[]];if(c(g)){if((i==null?void 0:i.length)===d||n&&(i==null?void 0:i.length)===1)return;b=i==null?void 0:i.filter(y=>!l(y,g))}else(i==null?void 0:i.length)===f?b=[g]:b=[...b,g];return r||s(b),r==null||r(b,g,x,m),b},isSelected:c}}function GL(e,t,o=0,n=0,r=!1,a=No){const{from:s,to:i}=t||{},{isSameDay:l,isAfter:c,isBefore:d}=a;let f;if(!s&&!i)f={from:e,to:o>0?void 0:e};else if(s&&!i)l(s,e)?o===0?f={from:s,to:e}:r?f={from:s,to:void 0}:f=void 0:d(e,s)?f={from:e,to:s}:f={from:s,to:e};else if(s&&i)if(l(s,e)&&l(i,e))r?f={from:s,to:i}:f=void 0;else if(l(s,e))f={from:s,to:o>0?void 0:e};else if(l(i,e))f={from:e,to:o>0?void 0:e};else if(d(e,s))f={from:e,to:i};else if(c(e,s))f={from:s,to:e};else if(c(e,i))f={from:s,to:e};else throw new Error("Invalid range");if(f!=null&&f.from&&(f!=null&&f.to)){const p=a.differenceInCalendarDays(f.to,f.from);n>0&&p>n?f={from:e,to:void 0}:o>1&&p<o&&(f={from:e,to:void 0})}return f}function jL(e,t,o=No){const n=Array.isArray(t)?t:[t];let r=e.from;const a=o.differenceInCalendarDays(e.to,e.from),s=Math.min(a,6);for(let i=0;i<=s;i++){if(n.includes(r.getDay()))return!0;r=o.addDays(r,1)}return!1}function i2(e,t,o=No){return on(e,t.from,!1,o)||on(e,t.to,!1,o)||on(t,e.from,!1,o)||on(t,e.to,!1,o)}function UL(e,t,o=No){const n=Array.isArray(t)?t:[t];if(n.filter(i=>typeof i!="function").some(i=>typeof i=="boolean"?i:o.isDate(i)?on(e,i,!1,o):US(i,o)?i.some(l=>on(e,l,!1,o)):hc(i)?i.from&&i.to?i2(e,{from:i.from,to:i.to},o):!1:jS(i)?jL(e,i.dayOfWeek,o):vh(i)?o.isAfter(i.before,i.after)?i2(e,{from:o.addDays(i.after,1),to:o.addDays(i.before,-1)},o):nn(e.from,i,o)||nn(e.to,i,o):yh(i)||wh(i)?nn(e.from,i,o)||nn(e.to,i,o):!1))return!0;const s=n.filter(i=>typeof i=="function");if(s.length){let i=e.from;const l=o.differenceInCalendarDays(e.to,e.from);for(let c=0;c<=l;c++){if(s.some(d=>d(i)))return!0;i=o.addDays(i,1)}}return!1}function qL(e,t){const{disabled:o,excludeDisabled:n,resetOnSelect:r,selected:a,required:s,onSelect:i}=e,[l,c]=gc(a,i?a:void 0),d=i?a:l;return{selected:d,select:(g,x,m)=>{const{min:b,max:y}=e;let C;if(g){const w=d==null?void 0:d.from,P=d==null?void 0:d.to,S=!!w&&!!P,_=!!w&&!!P&&t.isSameDay(w,P)&&t.isSameDay(g,w);r&&(S||!(d!=null&&d.from))?!s&&_?C=void 0:C={from:g,to:void 0}:C=GL(g,d,b,y,s,t)}return n&&o&&(C!=null&&C.from)&&C.to&&UL({from:C.from,to:C.to},o,t)&&(C.from=g,C.to=void 0),i||c(C),i==null||i(C,g,x,m),C},isSelected:g=>d&&on(d,g,!1,t)}}function YL(e,t){const{selected:o,required:n,onSelect:r}=e,[a,s]=gc(o,r?o:void 0),i=r?o:a,{isSameDay:l}=t;return{selected:i,select:(f,p,g)=>{let x=f;return!n&&i&&i&&l(f,i)&&(x=void 0),r||s(x),r==null||r(x,f,p,g),x},isSelected:f=>i?l(i,f):!1}}function KL(e,t){const o=YL(e,t),n=RL(e,t),r=qL(e,t);switch(e.mode){case"single":return o;case"multiple":return n;case"range":return r;default:return}}function Zt(e,t){return e instanceof mt&&e.timeZone===t?e:new mt(e,t)}function va(e,t,o){return Zt(e,t)}function l2(e,t,o){return typeof e=="boolean"||typeof e=="function"?e:e instanceof Date?va(e,t):Array.isArray(e)?e.map(n=>n instanceof Date?va(n,t):n):hc(e)?{...e,from:e.from?Zt(e.from,t):e.from,to:e.to?Zt(e.to,t):e.to}:vh(e)?{before:va(e.before,t),after:va(e.after,t)}:yh(e)?{after:va(e.after,t)}:wh(e)?{before:va(e.before,t)}:e}function Ph(e,t,o){return e&&(Array.isArray(e)?e.map(n=>l2(n,t)):l2(e,t))}function c2(e){var wu;let t=e;const o=t.timeZone;if(o&&(t={...e,timeZone:o},t.today&&(t.today=Zt(t.today,o)),t.month&&(t.month=Zt(t.month,o)),t.defaultMonth&&(t.defaultMonth=Zt(t.defaultMonth,o)),t.startMonth&&(t.startMonth=Zt(t.startMonth,o)),t.endMonth&&(t.endMonth=Zt(t.endMonth,o)),t.mode==="single"&&t.selected?t.selected=Zt(t.selected,o):t.mode==="multiple"&&t.selected?t.selected=(wu=t.selected)==null?void 0:wu.map(xe=>Zt(xe,o)):t.mode==="range"&&t.selected&&(t.selected={from:t.selected.from?Zt(t.selected.from,o):t.selected.from,to:t.selected.to?Zt(t.selected.to,o):t.selected.to}),t.disabled!==void 0&&(t.disabled=Ph(t.disabled,o)),t.hidden!==void 0&&(t.hidden=Ph(t.hidden,o)),t.modifiers)){const xe={};Object.keys(t.modifiers).forEach(le=>{var ie;xe[le]=Ph((ie=t.modifiers)==null?void 0:ie[le],o)}),t.modifiers=xe}const{components:n,formatters:r,labels:a,dateLib:s,locale:i,classNames:l}=h.useMemo(()=>{const xe={...WS,...t.locale},le=t.broadcastCalendar?1:t.weekStartsOn,ie=t.noonSafe&&t.timeZone?TL(t.timeZone,{weekStartsOn:le,locale:xe}):void 0,Ee=t.dateLib&&ie?{...ie,...t.dateLib}:t.dateLib??ie,_e=new Lt({locale:xe,weekStartsOn:le,firstWeekContainsDate:t.firstWeekContainsDate,useAdditionalWeekYearTokens:t.useAdditionalWeekYearTokens,useAdditionalDayOfYearTokens:t.useAdditionalDayOfYearTokens,timeZone:t.timeZone,numerals:t.numerals},Ee);return{dateLib:_e,components:iL(t.components),formatters:bL(t.formatters),labels:wL(t.labels,_e.options),locale:xe,classNames:{...cL(),...t.classNames}}},[t.locale,t.broadcastCalendar,t.weekStartsOn,t.firstWeekContainsDate,t.useAdditionalWeekYearTokens,t.useAdditionalDayOfYearTokens,t.timeZone,t.numerals,t.dateLib,t.noonSafe,t.components,t.formatters,t.labels,t.classNames]);t.today||(t={...t,today:s.today()});const{captionLayout:c,mode:d,navLayout:f,numberOfMonths:p=1,onDayBlur:g,onDayClick:x,onDayFocus:m,onDayKeyDown:b,onDayMouseEnter:y,onDayMouseLeave:C,onNextClick:w,onPrevClick:P,showWeekNumber:S,styles:_}=t,{formatCaption:T,formatDay:k,formatMonthDropdown:E,formatWeekNumber:D,formatWeekNumberHeader:O,formatWeekdayName:N,formatYearDropdown:z}=r,B=BL(t,s),{days:G,months:R,navStart:A,navEnd:F,previousMonth:V,nextMonth:M,goToMonth:Y}=B,H=aL(G,t,A,F,s),{isSelected:L,select:q,selected:j}=KL(t,s)??{},{blur:W,focused:U,isFocusTarget:K,moveFocus:J,setFocused:Z}=WL(t,B,H,L??(()=>!1),s),{labelDayButton:te,labelGridcell:X,labelGrid:Q,labelMonthDropdown:be,labelNav:De,labelPrevious:Fe,labelNext:Ge,labelWeekday:Me,labelWeekNumber:kt,labelWeekNumberHeader:st,labelYearDropdown:it}=a,qe=h.useMemo(()=>SL(s,t.ISOWeek,t.broadcastCalendar,t.today),[s,t.ISOWeek,t.broadcastCalendar,t.today]),Lo=d!==void 0||x!==void 0,se=h.useCallback(()=>{V&&(Y(V),P==null||P(V))},[V,Y,P]),Ce=h.useCallback(()=>{M&&(Y(M),w==null||w(M))},[Y,M,w]),Pe=h.useCallback((xe,le)=>ie=>{ie.preventDefault(),ie.stopPropagation(),Z(xe),!le.disabled&&(q==null||q(xe.date,le,ie),x==null||x(xe.date,le,ie))},[q,x,Z]),ht=h.useCallback((xe,le)=>ie=>{Z(xe),m==null||m(xe.date,le,ie)},[m,Z]),yo=h.useCallback((xe,le)=>ie=>{W(),g==null||g(xe.date,le,ie)},[W,g]),_r=h.useCallback((xe,le)=>ie=>{const Ee={ArrowLeft:[ie.shiftKey?"month":"day",t.dir==="rtl"?"after":"before"],ArrowRight:[ie.shiftKey?"month":"day",t.dir==="rtl"?"before":"after"],ArrowDown:[ie.shiftKey?"year":"week","after"],ArrowUp:[ie.shiftKey?"year":"week","before"],PageUp:[ie.shiftKey?"year":"month","before"],PageDown:[ie.shiftKey?"year":"month","after"],Home:["startOfWeek","before"],End:["endOfWeek","after"]};if(Ee[ie.key]){ie.preventDefault(),ie.stopPropagation();const[_e,je]=Ee[ie.key];J(_e,je)}b==null||b(xe.date,le,ie)},[J,b,t.dir]),xu=h.useCallback((xe,le)=>ie=>{y==null||y(xe.date,le,ie)},[y]),zo=h.useCallback((xe,le)=>ie=>{C==null||C(xe.date,le,ie)},[C]),bu=h.useCallback((xe,le)=>ie=>{const Ee=Number(ie.target.value),_e=s.setMonth(s.startOfMonth(xe),Ee);Y(s.addMonths(_e,-le))},[s,Y]),lm=h.useCallback((xe,le)=>ie=>{const Ee=Number(ie.target.value),_e=s.setYear(s.startOfMonth(xe),Ee);Y(s.addMonths(_e,-le))},[s,Y]),{className:cm,style:bi}=h.useMemo(()=>({className:[l[oe.Root],t.className].filter(Boolean).join(" "),style:{..._==null?void 0:_[oe.Root],...t.style}}),[l,t.className,t.style,_]),vu=lL(t),yu=xe=>{const le=_==null?void 0:_[oe.Dropdown],ie=_==null?void 0:_[xe];if(!(!le&&!ie))return{...le,...ie}},vi=h.useRef(null);DL(vi,!!t.animate,{classNames:l,months:R,focused:U,dateLib:s});const um={dayPickerProps:t,selected:j,select:q,isSelected:L,months:R,nextMonth:M,previousMonth:V,goToMonth:Y,getModifiers:H,components:n,classNames:l,styles:_,labels:a,formatters:r};return h.createElement(GS.Provider,{value:um},h.createElement(n.Root,{rootRef:t.animate?vi:void 0,className:cm,style:bi,dir:t.dir,id:t.id,lang:t.lang??i.code,nonce:t.nonce,title:t.title,role:t.role,"aria-label":t["aria-label"],"aria-labelledby":t["aria-labelledby"],...vu},h.createElement(n.Months,{className:l[oe.Months],style:_==null?void 0:_[oe.Months]},!t.hideNavigation&&!f&&h.createElement(n.Nav,{"data-animated-nav":t.animate?"true":void 0,className:l[oe.Nav],style:_==null?void 0:_[oe.Nav],"aria-label":De(),onPreviousClick:se,onNextClick:Ce,previousMonth:V,nextMonth:M}),R.map((xe,le)=>{const ie=t.reverseMonths?R.length-1-le:le;return h.createElement(n.Month,{"data-animated-month":t.animate?"true":void 0,className:l[oe.Month],style:_==null?void 0:_[oe.Month],key:le,displayIndex:le,calendarMonth:xe},f==="around"&&!t.hideNavigation&&le===0&&h.createElement(n.PreviousMonthButton,{type:"button",className:l[oe.PreviousMonthButton],style:_==null?void 0:_[oe.PreviousMonthButton],tabIndex:V?void 0:-1,"aria-disabled":V?void 0:!0,"aria-label":Fe(V),onClick:se,"data-animated-button":t.animate?"true":void 0},h.createElement(n.Chevron,{disabled:V?void 0:!0,className:l[oe.Chevron],style:_==null?void 0:_[oe.Chevron],orientation:t.dir==="rtl"?"right":"left"})),h.createElement(n.MonthCaption,{"data-animated-caption":t.animate?"true":void 0,className:l[oe.MonthCaption],style:_==null?void 0:_[oe.MonthCaption],calendarMonth:xe,displayIndex:le},c!=null&&c.startsWith("dropdown")?h.createElement(n.DropdownNav,{className:l[oe.Dropdowns],style:_==null?void 0:_[oe.Dropdowns]},(()=>{const Ee=c==="dropdown"||c==="dropdown-months"?h.createElement(n.MonthsDropdown,{key:"month",className:l[oe.MonthsDropdown],"aria-label":be(),disabled:!!t.disableNavigation,onChange:bu(xe.date,ie),options:CL(xe.date,A,F,r,s),style:yu(oe.MonthsDropdown),value:s.getMonth(xe.date)}):h.createElement("span",{key:"month"},E(xe.date,s)),_e=c==="dropdown"||c==="dropdown-years"?h.createElement(n.YearsDropdown,{key:"year",className:l[oe.YearsDropdown],"aria-label":it(s.options),disabled:!!t.disableNavigation,onChange:lm(xe.date,ie),options:PL(A,F,r,s,!!t.reverseYears),style:yu(oe.YearsDropdown),value:s.getYear(xe.date)}):h.createElement("span",{key:"year"},z(xe.date,s));return s.getMonthYearOrder()==="year-first"?[_e,Ee]:[Ee,_e]})(),h.createElement("span",{role:"status","aria-live":"polite",style:{border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap",wordWrap:"normal"}},T(xe.date,s.options,s))):h.createElement(n.CaptionLabel,{className:l[oe.CaptionLabel],style:_==null?void 0:_[oe.CaptionLabel],role:"status","aria-live":"polite"},T(xe.date,s.options,s))),f==="around"&&!t.hideNavigation&&le===p-1&&h.createElement(n.NextMonthButton,{type:"button",className:l[oe.NextMonthButton],style:_==null?void 0:_[oe.NextMonthButton],tabIndex:M?void 0:-1,"aria-disabled":M?void 0:!0,"aria-label":Ge(M),onClick:Ce,"data-animated-button":t.animate?"true":void 0},h.createElement(n.Chevron,{disabled:M?void 0:!0,className:l[oe.Chevron],style:_==null?void 0:_[oe.Chevron],orientation:t.dir==="rtl"?"left":"right"})),le===p-1&&f==="after"&&!t.hideNavigation&&h.createElement(n.Nav,{"data-animated-nav":t.animate?"true":void 0,className:l[oe.Nav],style:_==null?void 0:_[oe.Nav],"aria-label":De(),onPreviousClick:se,onNextClick:Ce,previousMonth:V,nextMonth:M}),h.createElement(n.MonthGrid,{role:"grid","aria-multiselectable":d==="multiple"||d==="range","aria-label":Q(xe.date,s.options,s)||void 0,className:l[oe.MonthGrid],style:_==null?void 0:_[oe.MonthGrid]},!t.hideWeekdays&&h.createElement(n.Weekdays,{"data-animated-weekdays":t.animate?"true":void 0,className:l[oe.Weekdays],style:_==null?void 0:_[oe.Weekdays]},S&&h.createElement(n.WeekNumberHeader,{"aria-label":st(s.options),className:l[oe.WeekNumberHeader],style:_==null?void 0:_[oe.WeekNumberHeader],scope:"col"},O()),qe.map(Ee=>h.createElement(n.Weekday,{"aria-label":Me(Ee,s.options,s),className:l[oe.Weekday],key:String(Ee),style:_==null?void 0:_[oe.Weekday],scope:"col"},N(Ee,s.options,s)))),h.createElement(n.Weeks,{"data-animated-weeks":t.animate?"true":void 0,className:l[oe.Weeks],style:_==null?void 0:_[oe.Weeks]},xe.weeks.map(Ee=>h.createElement(n.Week,{className:l[oe.Week],key:Ee.weekNumber,style:_==null?void 0:_[oe.Week],week:Ee},S&&h.createElement(n.WeekNumber,{week:Ee,style:_==null?void 0:_[oe.WeekNumber],"aria-label":kt(Ee.weekNumber,{locale:i}),className:l[oe.WeekNumber],scope:"row",role:"rowheader"},D(Ee.weekNumber,s)),Ee.days.map(_e=>{const{date:je}=_e,ge=H(_e);if(ge[Re.focused]=!ge.hidden&&!!(U!=null&&U.isEqualTo(_e)),ge[go.selected]=(L==null?void 0:L(je))||ge.selected,hc(j)){const{from:oo,to:Ot}=j;ge[go.range_start]=!!(oo&&Ot&&s.isSameDay(je,oo)),ge[go.range_end]=!!(oo&&Ot&&s.isSameDay(je,Ot)),ge[go.range_middle]=on(j,je,!0,s)}const to=_L(ge,_,t.modifiersStyles),Hn=sL(ge,l,t.modifiersClassNames),lt=!Lo&&!ge.hidden?X(je,ge,s.options,s):void 0;return h.createElement(n.Day,{key:`${_e.isoDate}_${_e.displayMonthId}`,day:_e,modifiers:ge,className:Hn.join(" "),style:to,role:"gridcell","aria-selected":ge.selected||void 0,"aria-label":lt,"data-day":_e.isoDate,"data-month":_e.outside?_e.dateMonthId:void 0,"data-selected":ge.selected||void 0,"data-disabled":ge.disabled||void 0,"data-hidden":ge.hidden||void 0,"data-outside":_e.outside||void 0,"data-focused":ge.focused||void 0,"data-today":ge.today||void 0},!ge.hidden&&Lo?h.createElement(n.DayButton,{className:l[oe.DayButton],style:_==null?void 0:_[oe.DayButton],type:"button",day:_e,modifiers:ge,disabled:!ge.focused&&ge.disabled||void 0,"aria-disabled":ge.focused&&ge.disabled||void 0,tabIndex:K(_e)?0:-1,"aria-label":te(je,ge,s.options,s),onClick:Pe(_e,ge),onBlur:yo(_e,ge),onFocus:ht(_e,ge),onKeyDown:_r(_e,ge),onMouseEnter:xu(_e,ge),onMouseLeave:zo(_e,ge)},k(je,s.options,s)):!ge.hidden&&k(_e.date,s.options,s))}))))))})),t.footer&&h.createElement(n.Footer,{className:l[oe.Footer],style:_==null?void 0:_[oe.Footer],role:"status","aria-live":"polite"},t.footer)))}const rn={oxCalendar:"_oxCalendar_javzi_2",oxCalendarRoot:"_oxCalendarRoot_javzi_2",oxCalendarMonths:"_oxCalendarMonths_javzi_2",oxCalendarMonthWrapper:"_oxCalendarMonthWrapper_javzi_2",oxCalendarMonthName:"_oxCalendarMonthName_javzi_2",oxCalendarMonth:"_oxCalendarMonth_javzi_2",oxCalendarWeekday:"_oxCalendarWeekday_javzi_2",oxCalendarCell:"_oxCalendarCell_javzi_2"},u2={oxCalendarDay:"_oxCalendarDay_agnf8_2","ox-calendar-day--range-start":"_ox-calendar-day--range-start_agnf8_2","ox-calendar-day--range-end":"_ox-calendar-day--range-end_agnf8_2","ox-calendar-day--range-middle":"_ox-calendar-day--range-middle_agnf8_2"},mc=h.forwardRef(({className:e,state:t={},children:o,...n},r)=>u.jsx("button",{ref:r,type:"button","data-slot":"calendar-day",disabled:t.disabled||void 0,"data-selected":t.selected||void 0,"data-today":t.today||void 0,"data-disabled":t.disabled||void 0,"data-focused":t.focused||void 0,"data-outside":t.outside||void 0,className:$(u2.oxCalendarDay,me(u2,I2({range:t.range})),e),...n,children:o}));mc.displayName="OxCalendarDay";const d2=(e,t)=>e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth();function f2(e,t,o){return!d2(e,t)&&o.some(n=>d2(e,n))}const p2=(e,t)=>`${e}-month-${t.getFullYear()}-${String(t.getMonth()+1).padStart(2,"0")}`,h2=(e,t,o)=>o?void 0:`${e}-day-${t.getDate()}`,g2=1,XL=e=>{var t;try{const o=new Intl.Locale(e),n=((t=o.getWeekInfo)==null?void 0:t.call(o))??o.weekInfo;return n?n.firstDay%7:g2}catch{return g2}},m2="short",an=()=>{const t=Di()??new Intl.DateTimeFormat().resolvedOptions().locale;return{locale:t,weekStartsOn:h.useMemo(()=>XL(t),[t])}},x2=h.createContext(""),Th=h.createContext(""),b2=h.createContext(void 0),v2=h.createContext(void 0),y2=h.createContext(void 0),w2=600,C2=h.createContext(w2),ZL={MonthCaption:()=>u.jsx(u.Fragment,{}),Months:e=>u.jsx("div",{...e,className:rn.oxCalendarMonths}),Month:({calendarMonth:e,displayIndex:t,...o})=>{const n=h.useContext(x2);return u.jsx(Th.Provider,{value:p2(n,e.date),children:u.jsx(y2.Provider,{value:e.date,children:u.jsx("div",{...o,className:rn.oxCalendarMonthWrapper})})})},MonthGrid:({children:e,style:t,...o})=>{const n=h.useContext(v2),r=h.useContext(y2),a=h.useContext(Th),s=h.useContext(C2),i=(r==null?void 0:r.getTime())??0,l=h.useMemo(()=>({month:i,ref:h.createRef()}),[i]),c=h.useRef(!1);h.useEffect(()=>{c.current=!0},[]);const d={"--ox-slide-y-distance":"4px","--ox-slide-y-enter-direction":"1","--ox-slide-y-enter-duration":`${s}ms`,"--ox-slide-y-leave-duration":"0ms"};return u.jsx(Ei,{component:null,children:u.jsx(Ga,{nodeRef:l.ref,appear:c.current,classNames:"ox-slide-y",timeout:{enter:s,appear:s,exit:0},children:u.jsxs("table",{ref:l.ref,"data-slot":"calendar-month","data-testid":a,...o,className:rn.oxCalendarMonth,style:{...t,...d},children:[r&&(n==null?void 0:n(r)),e]})},l.month)})},Weekday:e=>u.jsx("th",{"data-slot":"calendar-weekday",...e,className:rn.oxCalendarWeekday}),Day:({day:e,modifiers:t,...o})=>{const n=h2(h.useContext(Th),e.date,e.outside),{months:r}=ba();return f2(e.date,e.displayMonth,r.map(({date:a})=>a))?u.jsx("td",{"data-slot":"calendar-cell",role:"gridcell",className:rn.oxCalendarCell}):u.jsx("td",{"data-slot":"calendar-cell","data-testid":n,...o,className:rn.oxCalendarCell})},DayButton:({day:e,modifiers:t,children:o,...n})=>{const r=h.useRef(null),a=h.useContext(b2);h.useEffect(()=>{var i;t.focused&&((i=r.current)==null||i.focus())},[t.focused]);const s={selected:!!t.selected,today:!!t.today,disabled:!!t.disabled,outside:e.outside,focused:!!t.focused};return a?u.jsx(Ho,{ref:r,...n,className:void 0,children:a({date:e.date,state:s})}):u.jsx(mc,{ref:r,state:s,...n,className:void 0,children:o})}},_2=e=>new Date(e.getFullYear(),e.getMonth(),e.getDate()),Rs=e=>new Date(e.getFullYear(),e.getMonth(),1),Dn=e=>e.getFullYear()*12+e.getMonth(),kh=({className:e,value:t,defaultValue:o,onValueChange:n,visibleMonth:r,onVisibleMonthChange:a,onFocusDay:s,months:i=1,month:l,constraints:c,header:d,day:f,animationDuration:p=w2,dataTestid:g})=>{const{locale:x,weekStartsOn:m}=an(),b=h.useMemo(()=>i>1?F=>u.jsx("caption",{className:rn.oxCalendarMonthName,children:l?l({month:F}):new Intl.DateTimeFormat(x,{month:"long",year:"numeric"}).format(F)}):void 0,[i,x,l]),[y,C]=h.useState(o),w=t??y,[P,S]=h.useState(()=>Rs(r??w??new Date)),_=F=>{Dn(P)!==Dn(F)&&(S(F),a==null||a(F))},T=r==null?void 0:r.getTime();h.useEffect(()=>{if(T===void 0)return;const F=Rs(new Date(T));S(V=>Dn(V)===Dn(F)?V:F)},[T]);const k=F=>{t===void 0&&C(F),n==null||n(F)},{from:E,to:D,isDisabled:O}=c??{},N=E==null?void 0:E.getTime(),z=D==null?void 0:D.getTime(),B=h.useMemo(()=>{const F=[];return N!==void 0&&F.push({before:_2(new Date(N))}),z!==void 0&&F.push({after:_2(new Date(z))}),O&&F.push(V=>O(V)),F},[N,z,O]),G=h.useMemo(()=>({formatDay:F=>F.getDate().toLocaleString(x),formatWeekdayName:F=>new Intl.DateTimeFormat(x,{weekday:m2}).format(F),formatCaption:F=>new Intl.DateTimeFormat(x,{month:"long",year:"numeric"}).format(F)}),[x]),R=h.useMemo(()=>({labelDayButton:F=>new Intl.DateTimeFormat(x,{weekday:"long",month:"long",day:"numeric",year:"numeric"}).format(F)}),[x]),A=F=>new Date(P.getFullYear(),P.getMonth()+F,1);return u.jsxs("div",{"data-slot":"calendar","data-testid":g,className:$(rn.oxCalendar,e),children:[d==null?void 0:d({month:P,months:i,goToPrev:()=>_(A(-i)),goToNext:()=>_(A(i)),goTo:F=>_(Rs(F)),canGoPrev:!E||Dn(A(-i))>=Dn(E),canGoNext:!D||Dn(A(i))<=Dn(D)}),u.jsx(x2.Provider,{value:g,children:u.jsx(v2.Provider,{value:b,children:u.jsx(C2.Provider,{value:p,children:u.jsx(b2.Provider,{value:f,children:u.jsx(c2,{mode:"single",selected:w,onSelect:k,month:P,onMonthChange:_,onDayFocus:F=>s==null?void 0:s(F),numberOfMonths:i,startMonth:E?Rs(E):void 0,endMonth:D?Rs(D):void 0,disabled:B,weekStartsOn:m,showOutsideDays:!0,hideNavigation:!0,components:ZL,formatters:G,labels:R,className:rn.oxCalendarRoot})})})})})]})};kh.displayName="OxCalendar";const sn={oxCalendarRange:"_oxCalendarRange_5oh6z_2",oxCalendarRangeRoot:"_oxCalendarRangeRoot_5oh6z_2",oxCalendarRangeMonths:"_oxCalendarRangeMonths_5oh6z_2",oxCalendarRangeMonthWrapper:"_oxCalendarRangeMonthWrapper_5oh6z_2",oxCalendarRangeMonth:"_oxCalendarRangeMonth_5oh6z_2",oxCalendarRangeMonthName:"_oxCalendarRangeMonthName_5oh6z_2",oxCalendarRangeWeekday:"_oxCalendarRangeWeekday_5oh6z_2",oxCalendarRangeCell:"_oxCalendarRangeCell_5oh6z_2"},S2=h.createContext(""),Eh=h.createContext(""),P2=h.createContext(void 0),T2=h.createContext(void 0),k2=h.createContext(void 0),ya=e=>new Date(e.getFullYear(),e.getMonth(),e.getDate()),E2=h.createContext(void 0),JL=(e,t,o)=>{if(e.range_start)return"start";if(e.range_end)return"end";if(o&&t===o.anchor)return"start";if(e.range_middle||o&&t>=o.from&&t<=o.to)return"middle"},QL={MonthCaption:()=>u.jsx(u.Fragment,{}),Months:e=>u.jsx("div",{...e,className:sn.oxCalendarRangeMonths}),Month:({calendarMonth:e,displayIndex:t,...o})=>{const n=h.useContext(S2);return u.jsx(Eh.Provider,{value:p2(n,e.date),children:u.jsx(k2.Provider,{value:e.date,children:u.jsx("div",{...o,className:sn.oxCalendarRangeMonthWrapper})})})},MonthGrid:({children:e,...t})=>{const o=h.useContext(T2),n=h.useContext(k2);return u.jsxs("table",{"data-slot":"calendar-month","data-testid":h.useContext(Eh),...t,className:sn.oxCalendarRangeMonth,children:[n&&(o==null?void 0:o(n)),e]})},Weekday:e=>u.jsx("th",{"data-slot":"calendar-weekday",...e,className:sn.oxCalendarRangeWeekday}),Day:({day:e,modifiers:t,...o})=>{const n=h2(h.useContext(Eh),e.date,e.outside),{months:r}=ba();return f2(e.date,e.displayMonth,r.map(({date:a})=>a))?u.jsx("td",{"data-slot":"calendar-cell",role:"gridcell",className:sn.oxCalendarRangeCell}):u.jsx("td",{"data-slot":"calendar-cell","data-testid":n,...o,className:sn.oxCalendarRangeCell})},DayButton:({day:e,modifiers:t,children:o,...n})=>{const r=h.useRef(null),a=h.useContext(P2),s=h.useContext(E2);h.useEffect(()=>{var d;t.focused&&((d=r.current)==null||d.focus())},[t.focused]);const i=ya(e.date).getTime(),l={selected:!!t.selected,today:!!t.today,disabled:!!t.disabled,outside:e.outside,focused:!!t.focused,range:JL(t,i,s)},c={"data-highlighted-start":s!==void 0&&i===s.from?!0:void 0,"data-highlighted-end":s!==void 0&&i===s.to?!0:void 0};return a?u.jsx(Ho,{ref:r,...n,...c,className:void 0,children:a({date:e.date,state:l})}):u.jsx(mc,{ref:r,state:l,...n,...c,className:void 0,children:o})}},Gs=e=>new Date(e.getFullYear(),e.getMonth(),1),Mn=e=>e.getFullYear()*12+e.getMonth(),Ih=({className:e,value:t,defaultValue:o,onValueChange:n,visibleMonth:r,onVisibleMonthChange:a,onFocusDay:s,months:i=1,month:l,constraints:c,header:d,day:f,dataTestid:p})=>{const{locale:g,weekStartsOn:x}=an(),[m,b]=h.useState(o),y=t??m,[C,w]=h.useState(()=>Gs(r??(y==null?void 0:y.start)??new Date)),P=W=>{Mn(C)!==Mn(W)&&(w(W),a==null||a(W))},S=r==null?void 0:r.getTime();h.useEffect(()=>{if(S===void 0)return;const W=Gs(new Date(S));w(U=>Mn(U)===Mn(W)?U:W)},[S]);const[_,T]=h.useState(),k=y!=null&&y.start?ya(y.start).getTime():void 0,E=k!==void 0&&!(y!=null&&y.end),D=W=>{const U={start:W==null?void 0:W.from,end:W==null?void 0:W.to};T(U.start&&!U.end?ya(U.start).getTime():void 0),t===void 0&&b(U),n==null||n(U)},O=W=>{E&&T(ya(W).getTime())},N=W=>{W.currentTarget.contains(document.activeElement)||T(void 0)},z=W=>{W.key==="Escape"&&T(void 0)},B=y!=null&&y.start?{from:y.start,to:y.end}:void 0,{from:G,to:R,isDisabled:A}=c??{},F=G==null?void 0:G.getTime(),V=R==null?void 0:R.getTime(),M=h.useMemo(()=>{const W=[];return F!==void 0&&W.push({before:ya(new Date(F))}),V!==void 0&&W.push({after:ya(new Date(V))}),A&&W.push(U=>A(U)),W},[F,V,A]),Y=h.useMemo(()=>{if(!E||k===void 0||_===void 0)return;const W=Math.min(k,_),U=Math.max(k,_);if(A){const K=new Date(W);for(K.setDate(K.getDate()+1);K.getTime()<U;){if(A(new Date(K)))return;K.setDate(K.getDate()+1)}}return{from:W,to:U,anchor:k}},[E,k,_,A]),H=h.useMemo(()=>({formatDay:W=>W.getDate().toLocaleString(g),formatWeekdayName:W=>new Intl.DateTimeFormat(g,{weekday:m2}).format(W),formatCaption:W=>new Intl.DateTimeFormat(g,{month:"long",year:"numeric"}).format(W)}),[g]),L=h.useMemo(()=>({labelDayButton:W=>new Intl.DateTimeFormat(g,{weekday:"long",month:"long",day:"numeric",year:"numeric"}).format(W)}),[g]),q=h.useMemo(()=>i>1?W=>u.jsx("caption",{className:sn.oxCalendarRangeMonthName,children:l?l({month:W}):new Intl.DateTimeFormat(g,{month:"long",year:"numeric"}).format(W)}):void 0,[i,g,l]),j=W=>new Date(C.getFullYear(),C.getMonth()+W,1);return u.jsxs("div",{"data-slot":"calendar","data-testid":p,className:$(sn.oxCalendarRange,e),onMouseLeave:N,onKeyDown:z,children:[d==null?void 0:d({month:C,months:i,goToPrev:()=>P(j(-i)),goToNext:()=>P(j(i)),goTo:W=>P(Gs(W)),canGoPrev:!G||Mn(j(-i))>=Mn(G),canGoNext:!R||Mn(j(i))<=Mn(R)}),u.jsx(S2.Provider,{value:p,children:u.jsx(T2.Provider,{value:q,children:u.jsx(P2.Provider,{value:f,children:u.jsx(E2.Provider,{value:Y,children:u.jsx(c2,{mode:"range",min:1,selected:B,onSelect:D,onDayMouseEnter:O,onDayFocus:W=>{O(W),s==null||s(W)},month:C,onMonthChange:P,numberOfMonths:i,startMonth:G?Gs(G):void 0,endMonth:R?Gs(R):void 0,disabled:M,weekStartsOn:x,showOutsideDays:!0,hideNavigation:!0,components:QL,formatters:H,labels:L,className:sn.oxCalendarRangeRoot})})})})})]})};Ih.displayName="OxCalendarRange";const I2=Oe("",{variants:{range:{start:"ox-calendar-day--range-start",middle:"ox-calendar-day--range-middle",end:"ox-calendar-day--range-end"}}}),ez={oxCombobox:"_oxCombobox_ziqeo_2"},D2=h.createContext(null);function wa(){const e=h.useContext(D2);if(!e)throw new Error("Combobox sub-components must be used within <Combobox>.");return e}function tz(){const e=h.useRef(null),t=h.useCallback(r=>{var a;(a=e.current)==null||a.call(e),e.current=r},[]),o=h.useCallback(r=>{e.current===r&&(e.current=null)},[]),n=h.useCallback(()=>{const r=e.current;return r?(r(),!0):!1},[]);return h.useMemo(()=>({openEdit:t,closeEdit:o,cancelOpenEdit:n}),[t,o,n])}const oz=new Map;function nz(){const[e,t]=h.useState(oz),o=h.useCallback((r,a)=>{t(s=>s.get(r)===a?s:new Map(s).set(r,a))},[]),n=h.useCallback(r=>e.get(r),[e]);return h.useMemo(()=>({register:o,labelFor:n}),[o,n])}function rz(e,t){const{schedule:o,immediately:n}=Du(e,r=>t==null?void 0:t(r));return h.useMemo(()=>({schedule:t?o:()=>{},immediately:t?n:()=>{}}),[t,o,n])}const M2=h.forwardRef(({className:e,value:t,defaultValue:o,onValueChange:n,multiple:r=!1,disabled:a=!1,open:s,defaultOpen:i,onOpenChange:l,children:c,onSearch:d,debounce:f=500,ignoreFilter:p,dataTestid:g,...x},m)=>{const[b,y]=h.useState(o??(r?[]:void 0)),[C,w]=h.useState(i??!1),[P,S]=h.useState(""),_=t??b,T=s??C,k=h.useCallback(M=>{t===void 0&&y(M),n==null||n(M)},[t,n]),E=h.useCallback(M=>{s===void 0&&w(M),l==null||l(M)},[s,l]),D=h.useCallback(M=>{if(r){const Y=Array.isArray(_)?_:[],H=Y.includes(M)?Y.filter(L=>L!==M):[...Y,M];k(H)}else k(M),E(!1);S("")},[r,_,k,E]),O=rz(f,d),N=p??d!==void 0,{register:z,labelFor:B}=nz(),{openEdit:G,closeEdit:R,cancelOpenEdit:A}=tz(),F=h.useRef(null),V=h.useMemo(()=>({value:_,select:D,multiple:r,disabled:a,open:T,setOpen:E,search:P,setSearch:S,scheduleSearch:O.schedule,searchImmediately:O.immediately,skipFilter:N,registerLabel:z,labelFor:B,openEdit:G,closeEdit:R,cancelOpenEdit:A,inputRef:F}),[_,D,r,a,T,E,P,O,N,z,B,G,R,A]);return u.jsx(D2.Provider,{value:V,children:u.jsx(Jr,{open:T,onOpenChange:E,children:u.jsx("div",{ref:m,"data-slot":"combobox","data-testid":g,className:$(ez.oxCombobox,e),...x,children:c})})})});M2.displayName="OxCombobox";const O2=`<svg width="1.2em" height="1.2em" stroke-color="currentColor" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24">
|
|
245
|
-
<g>
|
|
246
|
-
<path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M12 21a9 9 0 1 0 0-18 9 9 0 0 0 0 18Zm2-11-4 4m0-4 4 4-4-4Z"/>
|
|
247
|
-
</g>
|
|
248
|
-
</svg>
|
|
249
|
-
`,A2={oxComboboxCancel:"_oxComboboxCancel_f38qn_2",oxComboboxCancelIcon:"_oxComboboxCancelIcon_f38qn_2"},N2=h.forwardRef(({className:e,children:t,dataTestid:o,"aria-label":n,onClick:r,onMouseDown:a,...s},i)=>{const{setSearch:l,searchImmediately:c}=wa(),d=ve();return u.jsx("button",{ref:i,type:"button",tabIndex:-1,"data-slot":"controller","data-testid":o,"aria-label":n??d("orxata.combobox.clear"),className:$(A2.oxComboboxCancel,e),onMouseDown:f=>{f.preventDefault(),a==null||a(f)},onClick:f=>{l(""),c(""),r==null||r(f)},...s,children:t??u.jsx(ee,{icon:O2,className:A2.oxComboboxCancelIcon})})});N2.displayName="OxComboboxCancel";const xc={oxComboboxAnchor:"_oxComboboxAnchor_1dcgj_2",oxComboboxInput:"_oxComboboxInput_1dcgj_2",oxComboboxTrigger:"_oxComboboxTrigger_1dcgj_2",oxComboboxTriggerIcon:"_oxComboboxTriggerIcon_1dcgj_2"},$2=h.forwardRef(({className:e,placeholder:t="",disabled:o,size:n="md",displayValue:r,trigger:a,id:s,onFocus:i,onClick:l,...c},d)=>{const{value:f,disabled:p,open:g,setOpen:x,search:m,setSearch:b,scheduleSearch:y,labelFor:C,inputRef:w}=wa(),P=ve(),S=o??p,_=Tt(s),T=h.useCallback(D=>{w.current=D,typeof d=="function"?d(D):d&&(d.current=D)},[d,w]),E=g?m:(r??(D=>{if(D==null||Array.isArray(D))return"";const O=String(D);return C(O)??O}))(f);return u.jsxs(Rl,{className:xc.oxComboboxAnchor,children:[u.jsx("input",{ref:T,..._,role:"combobox","aria-expanded":g,"aria-autocomplete":"list","data-slot":"controller",className:$(Ns.oxInput,pa[n],xc.oxComboboxInput,e),placeholder:t,disabled:S,value:E,onChange:D=>{b(D.target.value),y(D.target.value),g||x(!0)},onFocus:D=>{S||x(!0),i==null||i(D)},onClick:D=>{S||x(!0),l==null||l(D)},...c}),u.jsx(Qr,{type:"button","aria-label":P("orxata.combobox.showPopup"),"aria-haspopup":"listbox",disabled:S,"data-disabled":S?"":void 0,className:xc.oxComboboxTrigger,children:a??u.jsx(ee,{icon:Co,className:xc.oxComboboxTriggerIcon})})]})});$2.displayName="OxComboboxInput";const Bt={oxComboboxTagsInput:"_oxComboboxTagsInput_1s7k6_2",oxComboboxChips:"_oxComboboxChips_1s7k6_2",oxComboboxChip:"_oxComboboxChip_1s7k6_2",oxComboboxChipLabel:"_oxComboboxChipLabel_1s7k6_2",oxComboboxChipCollapsed:"_oxComboboxChipCollapsed_1s7k6_2",oxComboboxChipRemove:"_oxComboboxChipRemove_1s7k6_2",oxComboboxChipCount:"_oxComboboxChipCount_1s7k6_2",oxComboboxChipCountLabel:"_oxComboboxChipCountLabel_1s7k6_2",oxComboboxChipSizer:"_oxComboboxChipSizer_1s7k6_2",oxComboboxTagsField:"_oxComboboxTagsField_1s7k6_2",oxComboboxTagsTrigger:"_oxComboboxTagsTrigger_1s7k6_2",oxComboboxTagsTriggerIcon:"_oxComboboxTagsTriggerIcon_1s7k6_2"},F2='[data-slot="chip"]',az="input";function L2(e){const t=Number.parseFloat(e);return Number.isFinite(t)?t:0}function sz({row:e,sizer:t},o){const[n,r]=h.useState(o),a=h.useCallback(()=>{var y;const s=e.current;if(!s)return;if(o===0){r(0);return}const i=[...s.querySelectorAll(F2)];if(i.length!==o)return;const l=L2(getComputedStyle(s).columnGap),c=s.querySelector(az),d=c?L2(getComputedStyle(c).minWidth):0,f=s.clientWidth-d-l,p=i.map(C=>C.offsetWidth);if(p.reduce((C,w)=>C+w,0)+l*(o-1)<=f){r(o);return}const x=(((y=t.current)==null?void 0:y.offsetWidth)??0)+l;let m=0,b=0;for(let C=0;C<o;C+=1){const w=p[C]+(C>0?l:0);if(m+w+x>f)break;m+=w,b=C+1}r(Math.max(b,1))},[e,t,o]);return h.useEffect(()=>{if(a(),typeof ResizeObserver>"u")return;const s=new ResizeObserver(a),i=e.current;if(i){s.observe(i);for(const l of i.querySelectorAll(F2))s.observe(l)}return t.current&&s.observe(t.current),()=>s.disconnect()},[a,e,t]),n}const z2=h.forwardRef(({className:e,placeholder:t="",disabled:o,size:n="md",chipLabel:r,trigger:a,id:s,...i},l)=>{const c=Tt(s),{value:d,multiple:f,select:p,disabled:g,open:x,setOpen:m,search:b,setSearch:y,scheduleSearch:C,labelFor:w,inputRef:P}=wa(),S=ve(),_=o??g,T=f&&Array.isArray(d)?d:[],k=h.useCallback(G=>{P.current=G,typeof l=="function"?l(G):l&&(l.current=G)},[l,P]),E=G=>(r==null?void 0:r(G))??w(G)??G,D=n==="xs"||n==="sm"?"sm":"lg",O=h.useRef(null),N=h.useRef(null),z=sz({row:O,sizer:N},T.length),B=T.slice(z);return u.jsxs(Rl,{"data-slot":"controller",className:$(Bt.oxComboboxTagsInput,pa[n],e),children:[u.jsxs("div",{ref:O,className:Bt.oxComboboxChips,children:[T.map((G,R)=>u.jsx(Bf,{asChild:!0,size:D,className:$(Bt.oxComboboxChip,R>=z&&Bt.oxComboboxChipCollapsed),dataTestid:`combobox-chip-${G}`,children:u.jsxs("span",{"aria-hidden":R>=z?!0:void 0,onClick:A=>{A.stopPropagation(),p(G)},children:[u.jsx("span",{className:Bt.oxComboboxChipLabel,children:E(G)}),u.jsx("button",{type:"button",className:Bt.oxComboboxChipRemove,"aria-label":S("orxata.combobox.removeChip",{label:E(G)}),disabled:_,tabIndex:R>=z?-1:void 0,onClick:A=>{A.stopPropagation(),p(G)},children:u.jsx(ee,{icon:ur})})]})},G)),B.length>0&&u.jsxs("span",{"data-slot":"combobox-chip-count",className:Bt.oxComboboxChipCount,children:[u.jsxs("span",{"aria-hidden":"true",children:["+",B.length]}),u.jsx("span",{className:Bt.oxComboboxChipCountLabel,children:S("orxata.combobox.moreSelected",{count:B.length,labels:B.map(G=>E(G)).join(", ")})})]}),u.jsx("input",{ref:k,...c,role:"combobox","aria-expanded":x,"aria-autocomplete":"list",className:Bt.oxComboboxTagsField,placeholder:T.length?"":t,disabled:_,value:b,onChange:G=>{y(G.target.value),C(G.target.value),x||m(!0)},onFocus:()=>{_||m(!0)},...i}),T.length>0&&u.jsxs("span",{ref:N,"aria-hidden":"true",className:$(Bt.oxComboboxChipCount,Bt.oxComboboxChipSizer),children:["+","0".repeat(String(T.length).length)]})]}),u.jsx(Qr,{type:"button","aria-label":S("orxata.combobox.showPopup"),"aria-haspopup":"listbox",disabled:_,"data-disabled":_?"":void 0,className:Bt.oxComboboxTagsTrigger,children:a??u.jsx(ee,{icon:Co,className:Bt.oxComboboxTagsTriggerIcon})})]})});z2.displayName="OxComboboxChipsInput";const iz=16,B2=h.forwardRef(({children:e,side:t="bottom",sideOffset:o=4,align:n="start",onInteractOutside:r,onEscapeKeyDown:a,...s},i)=>{const{search:l,cancelOpenEdit:c,skipFilter:d}=wa(),f=h.useRef(null);return u.jsx(ea,{children:u.jsx(lr,{ref:i,asChild:!0,"data-slot":"combobox-content",side:t,sideOffset:o,collisionPadding:iz,align:n,onOpenAutoFocus:p=>p.preventDefault(),onInteractOutside:p=>{var x;const g=p.target;(x=g==null?void 0:g.closest)!=null&&x.call(g,'[data-slot="combobox"]')&&p.preventDefault(),r==null||r(p)},onEscapeKeyDown:p=>{c()&&p.preventDefault(),a==null||a(p)},...s,children:u.jsxs(so,{children:[u.jsxs(ch,{shouldFilter:!d,value:l,className:"ox-combobox-command",children:[u.jsx(cc,{value:l,"aria-hidden":!0,tabIndex:-1,className:"ox-combobox-hidden-input"}),u.jsx(uc,{asChild:!0,children:u.jsx(os,{ref:f,className:"ox-combobox-viewport",children:e})})]}),u.jsx(_n,{port:f,dataTestid:"combobox-scrollbar"})]})})})});B2.displayName="OxComboboxContent";const H2=h.forwardRef(({className:e,value:t,disabled:o=!1,children:n,...r},a)=>{const{value:s,select:i,registerLabel:l}=wa(),c=Array.isArray(s)?s.includes(t):s===t,d=h.useRef(null),f=h.useCallback(p=>{d.current=p,typeof a=="function"?a(p):a&&(a.current=p)},[a]);return h.useEffect(()=>{var g,x;const p=(x=(g=d.current)==null?void 0:g.textContent)==null?void 0:x.trim();p&&l(t,p)}),u.jsx(Os,{ref:f,asChild:!0,"data-slot":"combobox-item","data-state":c?"checked":"unchecked",value:t,disabled:o,onSelect:i,...r,children:u.jsx(ts,{className:e,indicator:c?u.jsx(ee,{icon:wn}):null,children:n})})});H2.displayName="OxComboboxItem";const lz={oxComboboxItemEdit:"_oxComboboxItemEdit_120vp_2"},cz=new Set(["Enter"," ","ArrowUp","ArrowDown","Home","End"]),uz='input, textarea, select, [contenteditable="true"]',V2=h.forwardRef(({className:e,value:t,defaultValue:o,onValueChange:n,onCommit:r,onCancel:a,field:s,children:i,onClick:l,onClickCapture:c,onPointerMove:d,onKeyDown:f,...p},g)=>{const{openEdit:x,closeEdit:m,inputRef:b}=wa(),[y,C]=h.useState(!1),w=h.useRef(null),P=t!==void 0&&n!==void 0,[S,_]=h.useState(o??t),T=h.useRef(t);!P&&t!==T.current&&(T.current=t,_(t));const k=P?t:S,E=h.useRef({currentValue:k,controlled:P,onValueChange:n,onCancel:a});E.current={currentValue:k,controlled:P,onValueChange:n,onCancel:a};const D=h.useCallback(V=>{const{controlled:M,onValueChange:Y}=E.current;M||_(V),Y==null||Y(V)},[]),O=h.useRef(void 0),N=h.useRef(!1),z=h.useRef(()=>{}),B=h.useCallback(()=>{var V;C(!1),m(z.current),(V=b.current)==null||V.focus()},[m,b]),G=h.useCallback(()=>{var V,M;D(O.current),B(),(M=(V=E.current).onCancel)==null||M.call(V)},[D,B]);z.current=G;const R=()=>{B(),r==null||r(k)},A=V=>{V==null||V.stopPropagation(),O.current=k,x(G),C(!0)};h.useEffect(()=>{var V,M;y&&((M=(V=w.current)==null?void 0:V.querySelector(uz))==null||M.focus())},[y]),h.useEffect(()=>()=>m(G),[m,G]);const F=h.useCallback(V=>{w.current=V,typeof g=="function"?g(V):g&&(g.current=V)},[g]);return u.jsx("div",{ref:F,"data-slot":"combobox-item-edit","data-editing":y?"":void 0,className:$(lz.oxComboboxItemEdit,e),...p,onClickCapture:V=>{N.current=y,c==null||c(V)},onClick:V=>{N.current&&V.stopPropagation(),N.current=!1,l==null||l(V)},onPointerMove:V=>{y&&V.stopPropagation(),d==null||d(V)},onKeyDown:V=>{if(f==null||f(V),!y||!cz.has(V.key))return;V.stopPropagation();const M=V.target,Y=M instanceof HTMLInputElement||M instanceof HTMLTextAreaElement;V.key==="Enter"&&Y&&(V.preventDefault(),R())},children:y?s==null?void 0:s({value:k,setValue:D,commit:R,cancel:G}):i==null?void 0:i({edit:A})})});V2.displayName="OxComboboxItemEdit";const W2=h.forwardRef(({className:e,children:t,...o},n)=>{const r=ve();return u.jsx(V_,{ref:n,asChild:!0,"data-slot":"combobox-empty",...o,children:u.jsx(Kd,{className:e,children:t??r("orxata.combobox.empty")})})});W2.displayName="OxComboboxEmpty";const R2=h.forwardRef(({className:e,label:t,children:o,...n},r)=>u.jsx(lh,{ref:r,"data-slot":"combobox-group",heading:t!=null?u.jsx(dl,{children:t}):void 0,className:$(e),...n,children:o}));R2.displayName="OxComboboxGroup";const G2=h.forwardRef(({className:e,...t},o)=>u.jsx(H_,{ref:o,asChild:!0,"data-slot":"combobox-separator",...t,children:u.jsx(fl,{className:e})}));G2.displayName="OxComboboxSeparator";const dz=`<svg width="1.2em" height="1.2em" stroke-color="currentColor" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24">
|
|
250
|
-
<g class="icon-microphone">
|
|
251
|
-
<path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M5 10a7 7 0 0 0 7 7m0 0a7 7 0 0 0 7-7m-7 7v4m-4 0h8M9 5a3 3 0 1 1 6 0v5a3 3 0 0 1-6 0V5Z" class="Vector"/>
|
|
252
|
-
</g>
|
|
253
|
-
</svg>
|
|
254
|
-
`,fz=`<svg width="1.2em" height="1.2em" stroke-color="currentColor" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24">
|
|
255
|
-
<g>
|
|
256
|
-
<path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M12 5v14m-7-7h14"/>
|
|
257
|
-
</g>
|
|
258
|
-
</svg>
|
|
259
|
-
`,Jt={"ox-chat-input":"_ox-chat-input_1kpir_2","ox-chat-input-toolbar":"_ox-chat-input-toolbar_1kpir_2","ox-chat-input-surface-box":"_ox-chat-input-surface-box_1kpir_2","ox-chat-input-surface":"_ox-chat-input-surface_1kpir_2","ox-chat-input-actions":"_ox-chat-input-actions_1kpir_2","ox-chat-input-actions-start":"_ox-chat-input-actions-start_1kpir_2","ox-chat-input-actions-end":"_ox-chat-input-actions-end_1kpir_2","ox-chat-input-action":"_ox-chat-input-action_1kpir_2","ox-chat-input-action--subtle":"_ox-chat-input-action--subtle_1kpir_2"},bc=(e,t)=>typeof e=="function"?e(t):e,j2=h.forwardRef(({className:e,actionLabels:t,maxRows:o=6,value:n,defaultValue:r="",onValueChange:a,onSubmit:s,onAttach:i,onRecord:l,onChange:c,onKeyDown:d,children:f,toolbar:p,actionsStart:g,actionsEnd:x,dataTestid:m,id:b,...y},C)=>{const w=Tt(b),[P,S]=h.useState(r),_=n??P,T=h.useRef(null),k=_.trim().length===0,E=y.disabled===!0,D=()=>{k||E||s==null||s(_)},O={empty:k,disabled:E,submit:D};Iu(T,_,o);const N=z=>{var G;const B=z.target;B!=null&&B.closest('button, a, input, textarea, select, [tabindex], [data-slot="scrollbar"]')||(z.preventDefault(),(G=T.current)==null||G.focus())};return u.jsxs("div",{ref:C,className:$(Jt["ox-chat-input"],e),"data-slot":"chat-input","data-testid":m,"data-empty":k,onMouseDown:N,children:[p==null?null:u.jsx("div",{className:Jt["ox-chat-input-toolbar"],"data-slot":"toolbar","data-testid":`${m}-toolbar`,children:bc(p,O)}),u.jsxs("div",{className:Jt["ox-chat-input-surface-box"],children:[f===void 0?u.jsx("textarea",{ref:T,...w,rows:1,className:Jt["ox-chat-input-surface"],"data-slot":"controller","data-testid":`${m}-surface`,value:_,onChange:z=>{n===void 0&&S(z.target.value),a==null||a(z.target.value),c==null||c(z)},onKeyDown:z=>{d==null||d(z),!(z.key!=="Enter"||z.shiftKey)&&(z.nativeEvent.isComposing||(z.preventDefault(),D()))},...y}):bc(f,O),u.jsx(_n,{port:T,dataTestid:`${m}-scrollbar`})]}),u.jsxs("div",{className:Jt["ox-chat-input-actions"],"data-slot":"actions",children:[u.jsx("div",{className:Jt["ox-chat-input-actions-start"],children:g===void 0?u.jsx(jt,{className:$(Jt["ox-chat-input-action"],Jt["ox-chat-input-action--subtle"]),variant:"ghost",size:"2xs","aria-label":t.attach,disabled:E,"data-testid":`${m}-attach`,onClick:()=>i==null?void 0:i(),children:u.jsx(ee,{icon:fz})}):bc(g,O)}),u.jsx("div",{className:Jt["ox-chat-input-actions-end"],children:x===void 0?u.jsxs(u.Fragment,{children:[u.jsx(jt,{className:$(Jt["ox-chat-input-action"],Jt["ox-chat-input-action--subtle"]),variant:"ghost",size:"2xs","aria-label":t.record,disabled:E,"data-testid":`${m}-record`,onClick:()=>l==null?void 0:l(),children:u.jsx(ee,{icon:dz})}),u.jsx(jt,{className:Jt["ox-chat-input-action"],size:"2xs","aria-label":t.send,"data-testid":`${m}-send`,disabled:k||E,onClick:D,children:u.jsx(ee,{icon:Y_})})]}):bc(x,O)})]})]})});j2.displayName="OxChatInput";const pz={oxColorPicker:"_oxColorPicker_zgsr0_2"},hz="[OxColorPicker] A color picker part was used outside `<OxColorPicker>`. The trigger, the panel and every swatch read the chosen value from the root.",U2=h.createContext(null);function vc(){const e=h.useContext(U2);if(!e)throw new Error(hz);return e}const q2=h.forwardRef(({className:e,children:t,disabled:o=!1,value:n,defaultValue:r,onValueChange:a,open:s,defaultOpen:i=!1,onOpenChange:l,dataTestid:c},d)=>{const f=n!==void 0&&a!==void 0,p=s!==void 0&&l!==void 0,[g,x]=h.useState(n??r),[m,b]=h.useState(n),[y,C]=h.useState(s??i),[w,P]=h.useState(s);!f&&n!==m&&(b(n),x(n)),!p&&s!==w&&(P(s),s!==void 0&&C(s));const S=f?n:g,_=p?s:y,T=h.useCallback(z=>{p||C(z),l==null||l(z)},[p,l]),k=h.useCallback(z=>{f||x(z),a==null||a(z),T(!1)},[f,a,T]);h.useEffect(()=>{o&&_&&T(!1)},[o,_,T]);const[E,D]=h.useState({}),O=h.useCallback((z,B)=>{D(G=>{var R,A;return((R=G[z])==null?void 0:R.color)===B.color&&((A=G[z])==null?void 0:A.name)===B.name?G:{...G,[z]:B}})},[]),N=h.useMemo(()=>({value:S,disabled:o,select:k,chosen:S===void 0?void 0:E[S],remember:O}),[S,o,k,E,O]);return u.jsx(U2.Provider,{value:N,children:u.jsx(Jr,{open:_,onOpenChange:T,children:u.jsx("div",{ref:d,"data-slot":"color-picker","data-testid":c,className:$(pz.oxColorPicker,e),children:t})})})});q2.displayName="OxColorPicker";const js={oxColorPickerTrigger:"_oxColorPickerTrigger_oyao4_2",oxColorPickerTriggerDot:"_oxColorPickerTriggerDot_oyao4_2",oxColorPickerTriggerValue:"_oxColorPickerTriggerValue_oyao4_2",oxColorPickerTriggerIcon:"_oxColorPickerTriggerIcon_oyao4_2",oxColorPickerTriggerGlyph:"_oxColorPickerTriggerGlyph_oyao4_2"},Y2=h.forwardRef(({className:e,color:t,placeholder:o="",children:n,id:r,...a},s)=>{var p,g;const i=vc(),l=Tt(r),c=i.value===void 0||i.value==="",d=t??((p=i.chosen)==null?void 0:p.color),f=n??((g=i.chosen)==null?void 0:g.name)??i.value;return u.jsx(Qr,{asChild:!0,children:u.jsxs("button",{ref:s,type:"button",...l,"data-slot":"controller",className:$(js.oxColorPickerTrigger,e),...a,disabled:i.disabled,children:[!c&&d!==void 0&&u.jsx("span",{className:js.oxColorPickerTriggerDot,style:{"--ox-swatch-color":d}}),u.jsx("span",{className:js.oxColorPickerTriggerValue,"data-placeholder":c?"":void 0,children:c?o:f}),u.jsx("span",{"data-slot":"icon",className:js.oxColorPickerTriggerIcon,children:u.jsx(ee,{icon:Co,className:js.oxColorPickerTriggerGlyph})})]})})});Y2.displayName="OxColorPickerTrigger";var gz=Object.defineProperty,xt=(e,t)=>gz(e,"name",{value:t,configurable:!0}),K2="Radio",[mz,X2]=Kt(K2),[xz,yc]=mz(K2);function Z2(e){const{__scopeRadio:t,checked:o=!1,children:n,disabled:r,form:a,name:s,onCheck:i,required:l,value:c="on",internal_do_not_use_render:d}=e,[f,p]=v.useState(null),[g,x]=v.useState(null),m=v.useRef(!1),[b,y]=v.useReducer(P=>P+1,0),C=f?!!a||!!f.closest("form"):!0,w={checked:o,disabled:r,required:l,name:s,form:a,value:c,control:f,setControl:p,hasConsumerStoppedPropagationRef:m,userInteractionCount:b,onUserInteraction:y,isFormControl:C,bubbleInput:g,setBubbleInput:x,onCheck:xt(()=>i==null?void 0:i(),"onCheck")};return u.jsx(xz,{scope:t,...w,children:J2(d)?d(w):n})}xt(Z2,"RadioProvider");var bz="RadioTrigger",vz=v.forwardRef(xt(function({__scopeRadio:t,onClick:o,...n},r){const{checked:a,disabled:s,value:i,setControl:l,onCheck:c,hasConsumerStoppedPropagationRef:d,onUserInteraction:f,isFormControl:p,bubbleInput:g}=yc(bz,t),x=We(r,l);return u.jsx(ye.button,{type:"button",role:"radio","aria-checked":a,"data-state":Dh(a),"data-disabled":s?"":void 0,disabled:s,value:i,...n,ref:x,onClick:Te(o,m=>{a||(f(),c()),g&&p&&(d.current=m.isPropagationStopped(),d.current||m.stopPropagation())})})},"RadioTrigger")),yz="RadioIndicator",wz=v.forwardRef(xt(function(t,o){const{__scopeRadio:n,forceMount:r,...a}=t,s=yc(yz,n);return u.jsx(lo,{present:r||s.checked,children:u.jsx(ye.span,{"data-state":Dh(s.checked),"data-disabled":s.disabled?"":void 0,...a,ref:o})})},"RadioIndicator")),Cz="RadioBubbleInput",_z=v.forwardRef(xt(function({__scopeRadio:t,onClick:o,...n},r){const{control:a,checked:s,required:i,disabled:l,name:c,value:d,form:f,bubbleInput:p,setBubbleInput:g,hasConsumerStoppedPropagationRef:x,userInteractionCount:m}=yc(Cz,t),b=We(r,g),y=mf(a),C=v.useRef(!1),w=v.useRef(s),P=v.useRef(m);v.useEffect(()=>{const _=p;if(!_)return;const T=window.HTMLInputElement.prototype,E=Object.getOwnPropertyDescriptor(T,"checked").set,D=m!==P.current;P.current=m;const O=w.current!==s;w.current=s;const N=!(D&&x.current);if(O&&E){C.current=!D;const z=new Event("click",{bubbles:N});E.call(_,s),_.dispatchEvent(z),C.current=!1}},[p,s,x,m]);const S=v.useRef(s);return u.jsx(ye.input,{type:"radio","aria-hidden":!0,defaultChecked:S.current,required:i,disabled:l,name:c,value:d,form:f,...n,tabIndex:-1,ref:b,onClick:Te(o,_=>{C.current&&_.stopPropagation()}),style:{...n.style,...y,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})},"RadioBubbleInput"));function J2(e){return typeof e=="function"}xt(J2,"isFunction");function Dh(e){return e?"checked":"unchecked"}xt(Dh,"getState");var Sz=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],Mh="RadioGroup",[Pz]=Kt(Mh,[ic,X2]),Q2=ic(),wc=X2(),[Tz,kz]=Pz(Mh),Oh=v.forwardRef(xt(function(t,o){const{__scopeRadioGroup:n,name:r,form:a,defaultValue:s,value:i,required:l=!1,disabled:c=!1,orientation:d,dir:f,loop:p=!0,onValueChange:g,...x}=t,m=Q2(n),b=nc(f),[y,C]=co({prop:i,defaultProp:s??null,onChange:g,caller:Mh}),[w,P]=v.useState(null),S=We(o,P),_=v.useRef(y);return v.useEffect(()=>{const T=a?w==null?void 0:w.ownerDocument.getElementById(a):w==null?void 0:w.closest("form");if(T instanceof HTMLFormElement){const k=xt(()=>C(_.current),"reset");return T.addEventListener("reset",k),()=>T.removeEventListener("reset",k)}},[w,a,C]),u.jsx(Tz,{scope:n,name:r,form:a,required:l,disabled:c,value:y,onValueChange:C,children:u.jsx(BC,{asChild:!0,...m,orientation:d,dir:b,loop:p,children:u.jsx(ye.div,{role:"radiogroup","aria-required":l,"aria-orientation":d,"data-disabled":c?"":void 0,dir:b,...x,ref:S})})})},"RadioGroup")),Ez="RadioGroupItemProvider",Iz="RadioGroupItemTrigger";function eP(e){const{__scopeRadioGroup:t,value:o,disabled:n,children:r,internal_do_not_use_render:a}=e,s=kz(Ez,t),i=wc(t),l=s.disabled||n;return u.jsx(Z2,{...i,checked:s.value===o,disabled:l,required:s.required,name:s.name,form:s.form,value:o,onCheck:()=>s.onValueChange(o),internal_do_not_use_render:a,children:r})}xt(eP,"RadioGroupItemProvider");var Dz=v.forwardRef(xt(function(t,o){const{__scopeRadioGroup:n,...r}=t,a=Q2(n),s=wc(n),{checked:i,disabled:l}=yc(Iz,s.__scopeRadio),c=v.useRef(null),d=We(o,c),f=v.useRef(!1);return v.useEffect(()=>{const p=xt(x=>{Sz.includes(x.key)&&(f.current=!0)},"handleKeyDown"),g=xt(()=>f.current=!1,"handleKeyUp");return document.addEventListener("keydown",p),document.addEventListener("keyup",g),()=>{document.removeEventListener("keydown",p),document.removeEventListener("keyup",g)}},[]),u.jsx(HC,{asChild:!0,...a,focusable:!l,active:i,children:u.jsx(vz,{...s,...r,ref:d,onKeyDown:Te(r.onKeyDown,p=>{p.key==="Enter"&&p.preventDefault()}),onFocus:Te(r.onFocus,()=>{var p;f.current&&((p=c.current)==null||p.click())})})})},"RadioGroupItemTrigger")),Ah=v.forwardRef(xt(function(t,o){const{__scopeRadioGroup:n,value:r,disabled:a,...s}=t;return u.jsx(eP,{__scopeRadioGroup:n,value:r,disabled:a,internal_do_not_use_render:({isFormControl:i})=>u.jsxs(u.Fragment,{children:[u.jsx(Dz,{...s,ref:o,__scopeRadioGroup:n}),i&&u.jsx(Mz,{__scopeRadioGroup:n})]})})},"RadioGroupItem")),Mz=v.forwardRef(xt(function(t,o){const{__scopeRadioGroup:n,...r}=t,a=wc(n);return u.jsx(_z,{...a,...r,ref:o})},"RadioGroupItemBubbleInput")),Oz=v.forwardRef(xt(function(t,o){const{__scopeRadioGroup:n,...r}=t,a=wc(n);return u.jsx(wz,{...a,...r,ref:o})},"RadioGroupIndicator"));const Az={oxColorPickerGrid:"_oxColorPickerGrid_1794j_2"},Nz=16,tP=h.forwardRef(({children:e,side:t="bottom",sideOffset:o=4,align:n="start",dataTestid:r,...a},s)=>{const i=ve(),l=vc(),c=d=>l.select(d);return u.jsx(ea,{children:u.jsx(lr,{ref:s,asChild:!0,"data-slot":"color-picker-content","data-testid":r,side:t,sideOffset:o,collisionPadding:Nz,align:n,...a,children:u.jsx(so,{children:u.jsx(Oh,{value:l.value??"","aria-label":i("orxata.colorPicker.label"),className:Az.oxColorPickerGrid,onValueChange:c,children:e})})})})});tP.displayName="OxColorPickerContent";const Nh={oxColorPickerSwatch:"_oxColorPickerSwatch_2nv2z_2",oxColorPickerSwatchDot:"_oxColorPickerSwatchDot_2nv2z_2",oxColorPickerSwatchName:"_oxColorPickerSwatchName_2nv2z_2"},oP=h.forwardRef(({className:e,value:t,color:o,children:n,...r},a)=>{const{remember:s}=vc();return h.useEffect(()=>{s(t,{color:o,name:n})},[s,t,o,n]),u.jsxs(Ah,{ref:a,value:t,"data-slot":"color-picker-swatch",className:$(Nh.oxColorPickerSwatch,e),style:{"--ox-swatch-color":o},...r,children:[u.jsx("span",{className:Nh.oxColorPickerSwatchDot}),u.jsx("span",{className:Nh.oxColorPickerSwatchName,children:n})]})});oP.displayName="OxColorPickerSwatch";const $z={oxIconPicker:"_oxIconPicker_42unp_2"},Fz="[OxIconPicker] An icon picker part was used outside `<OxIconPicker>`. The trigger, the panel and every item read the chosen value and the search term from the root.",nP=h.createContext(null);function Cc(){const e=h.useContext(nP);if(!e)throw new Error(Fz);return e}function rP(e){return e.normalize("NFD").replace(/[̀-ͯ]/g,"").toLowerCase()}function Lz(e,t){const o=rP(e).split(/\s+/).filter(Boolean);if(o.length===0)return!0;const n=t.map(rP).join(" ");return o.every(r=>n.includes(r))}const aP=h.forwardRef(({className:e,children:t,disabled:o=!1,value:n,defaultValue:r,onValueChange:a,open:s,defaultOpen:i=!1,onOpenChange:l,dataTestid:c},d)=>{const f=n!==void 0&&a!==void 0,p=s!==void 0&&l!==void 0,[g,x]=h.useState(n??r),[m,b]=h.useState(n),[y,C]=h.useState(s??i),[w,P]=h.useState(s),[S,_]=h.useState(""),[T,k]=h.useState(()=>new Map);!f&&n!==m&&(b(n),x(n)),!p&&s!==w&&(P(s),s!==void 0&&C(s));const E=f?n:g,D=p?s:y,O=h.useCallback(A=>{p||C(A),l==null||l(A),A||_("")},[p,l]),N=h.useCallback(A=>{f||x(A),a==null||a(A),O(!1)},[f,a,O]);h.useEffect(()=>{o&&D&&O(!1)},[o,D,O]);const z=h.useCallback((A,F)=>(k(V=>{const M=new Map(V);return M.set(A,F),M}),()=>k(V=>{const M=new Map(V);return M.delete(A),M})),[]),B=h.useCallback((A,F)=>Lz(S,[A,...F??[]]),[S]),G=h.useMemo(()=>[...T].some(([A,F])=>B(A,F)),[T,B]),R=h.useMemo(()=>({value:E,disabled:o,select:N,term:S,setTerm:_,matches:B,register:z,hasMatches:G}),[E,o,N,S,B,z,G]);return u.jsx(nP.Provider,{value:R,children:u.jsx(Jr,{open:D,onOpenChange:O,children:u.jsx("div",{ref:d,"data-slot":"icon-picker","data-testid":c,className:$($z.oxIconPicker,e),children:t})})})});aP.displayName="OxIconPicker";const Us={oxIconPickerTrigger:"_oxIconPickerTrigger_151al_2",oxIconPickerTriggerIcon:"_oxIconPickerTriggerIcon_151al_2",oxIconPickerTriggerValue:"_oxIconPickerTriggerValue_151al_2",oxIconPickerTriggerChevron:"_oxIconPickerTriggerChevron_151al_2",oxIconPickerTriggerGlyph:"_oxIconPickerTriggerGlyph_151al_2"},sP=h.forwardRef(({className:e,icon:t,placeholder:o="",children:n,id:r,...a},s)=>{const i=Cc(),l=Tt(r),c=i.value===void 0||i.value==="";return u.jsx(Qr,{asChild:!0,children:u.jsxs("button",{ref:s,type:"button",...l,"data-slot":"controller",className:$(Us.oxIconPickerTrigger,e),...a,disabled:i.disabled,children:[t&&u.jsx(ee,{icon:t,"data-slot":"icon",className:Us.oxIconPickerTriggerIcon}),u.jsx("span",{className:Us.oxIconPickerTriggerValue,"data-placeholder":c?"":void 0,children:c?o:n}),u.jsx("span",{"data-slot":"icon",className:Us.oxIconPickerTriggerChevron,children:u.jsx(ee,{icon:Co,className:Us.oxIconPickerTriggerGlyph})})]})})});sP.displayName="OxIconPickerTrigger";const iP=`<svg width="1.2em" height="1.2em" stroke-color="currentColor" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24">
|
|
260
|
-
<g class="icon-search">
|
|
261
|
-
<path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="m21 21-6-6M3 10a7 7 0 1 0 14 0 7 7 0 0 0-14 0Z" class="Vector" vector-effect="non-scaling-stroke"/>
|
|
262
|
-
</g>
|
|
263
|
-
</svg>
|
|
264
|
-
`,qs={oxIconPickerSearch:"_oxIconPickerSearch_38wfq_2",oxIconPickerSearchIcon:"_oxIconPickerSearchIcon_38wfq_2",oxIconPickerSearchInput:"_oxIconPickerSearchInput_38wfq_2",oxIconPickerGrid:"_oxIconPickerGrid_38wfq_2",oxIconPickerEmpty:"_oxIconPickerEmpty_38wfq_2"},zz=16,lP=h.forwardRef(({children:e,side:t="bottom",sideOffset:o=4,align:n="start",dataTestid:r,...a},s)=>{const i=ve(),l=Cc(),c=h.useRef(null),d=h.useRef(null),f=x=>l.select(x),p=x=>{var m;x.preventDefault(),(m=c.current)==null||m.focus()},g=x=>{var m,b;x.key==="ArrowDown"&&(x.preventDefault(),(b=(m=d.current)==null?void 0:m.querySelector('[role="radio"]:not([disabled])'))==null||b.focus())};return u.jsx(ea,{children:u.jsx(lr,{ref:s,asChild:!0,"data-slot":"icon-picker-content","data-testid":r,side:t,sideOffset:o,collisionPadding:zz,align:n,onOpenAutoFocus:p,...a,children:u.jsxs(so,{children:[u.jsxs("div",{className:qs.oxIconPickerSearch,"data-slot":"search",children:[u.jsx(ee,{icon:iP,className:qs.oxIconPickerSearchIcon}),u.jsx("input",{ref:c,type:"search",className:qs.oxIconPickerSearchInput,"data-testid":`${r}-search`,placeholder:i("orxata.iconPicker.search"),"aria-label":i("orxata.iconPicker.search"),value:l.term,onChange:x=>l.setTerm(x.target.value),onKeyDown:g})]}),u.jsx(Oh,{ref:d,value:l.value??"","aria-label":i("orxata.iconPicker.label"),className:qs.oxIconPickerGrid,onValueChange:f,children:e}),!l.hasMatches&&u.jsx("p",{className:qs.oxIconPickerEmpty,children:i("orxata.iconPicker.empty")})]})})})});lP.displayName="OxIconPickerContent";const $h={oxIconPickerItem:"_oxIconPickerItem_1ysu8_2",oxIconPickerItemIcon:"_oxIconPickerItemIcon_1ysu8_2",oxIconPickerItemName:"_oxIconPickerItemName_1ysu8_2"},cP=h.forwardRef(({className:e,value:t,icon:o,keywords:n,children:r,...a},s)=>{const i=Cc(),{register:l}=i,c=n==null?void 0:n.join("\0");return h.useEffect(()=>l(t,c?c.split("\0"):void 0),[l,t,c]),i.matches(t,n)?u.jsxs(Ah,{ref:s,value:t,"data-slot":"icon-picker-item",className:$($h.oxIconPickerItem,e),...a,children:[u.jsx(ee,{icon:o,className:$h.oxIconPickerItemIcon}),u.jsx("span",{className:$h.oxIconPickerItemName,children:r})]}):null});cP.displayName="OxIconPickerItem";const Bz={oxDatePickerPanel:"_oxDatePickerPanel_vunr9_2"},_c=`<svg width="1.2em" height="1.2em" stroke-color="currentColor" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24">
|
|
265
|
-
<g>
|
|
266
|
-
<path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="m15 6-6 6 6 6"/>
|
|
267
|
-
</g>
|
|
268
|
-
</svg>
|
|
269
|
-
`,Sc={oxDatePickerHeader:"_oxDatePickerHeader_1o3rk_2",oxDatePickerHeaderPrev:"_oxDatePickerHeaderPrev_1o3rk_2",oxDatePickerHeaderNext:"_oxDatePickerHeaderNext_1o3rk_2",oxDatePickerHeaderTitle:"_oxDatePickerHeaderTitle_1o3rk_2"},Hz=" – ",Fh=(e,t,o)=>{const n=e;return n.formatRange?n.formatRange(t,o):`${e.format(t)}${Hz}${e.format(o)}`},uP=e=>new Intl.DateTimeFormat(e,{dateStyle:"medium"}),dP=e=>new Intl.DateTimeFormat(e,{month:"long",year:"numeric"}),Lh=(e,t)=>uP(e).format(t),Vz=(e,t,o)=>t?o?Fh(uP(e),t,o):Lh(e,t):o?Lh(e,o):"",zh=(e,t)=>dP(e).format(t),Wz=(e,t,o)=>Fh(dP(e),t,o),Ys=(e,t)=>new Intl.DateTimeFormat(e,{year:"numeric"}).format(t),Bh=(e,t)=>new Intl.DateTimeFormat(e,{month:"short"}).format(t),Hh=(e,t)=>new Intl.DateTimeFormat(e,{month:"short",year:"numeric"}).format(t),Rz=(e,t,o)=>Fh(new Intl.DateTimeFormat(e,{year:"numeric"}),t,o),On=e=>e.getFullYear()*12+e.getMonth(),Pc=(e,t=0)=>new Date(e.getFullYear(),e.getMonth()+t,1),Gz=100,jz=10,Uz=(e,t,o)=>({first:t?t.getFullYear():e.getFullYear()-Gz,last:o?o.getFullYear():e.getFullYear()+jz}),fP=h.createContext(null),qz="OxDatePickerMonthSelect and OxDatePickerYearSelect must be rendered inside OxDatePickerHeader.",pP=()=>{const e=h.useContext(fP);if(!e)throw new Error(qz);return e},Tc=({nav:e,constraints:t,children:o,dataTestid:n})=>{const{locale:r}=an(),a=e.months>1?Wz(r,e.month,Pc(e.month,e.months-1)):zh(r,e.month),s=h.useMemo(()=>({nav:e,constraints:t}),[e,t]);return u.jsx(fP.Provider,{value:s,children:u.jsxs("div",{className:Sc.oxDatePickerHeader,"data-slot":"date-picker-header","data-testid":n,children:[e.canGoPrev&&u.jsx(jt,{className:Sc.oxDatePickerHeaderPrev,type:"button",variant:"ghost",size:"2xs","aria-label":zh(r,Pc(e.month,-e.months)),"data-testid":`${n}-prev-month`,onClick:()=>e.goToPrev(),children:u.jsx(ee,{icon:_c})}),o??u.jsx("span",{className:Sc.oxDatePickerHeaderTitle,children:a}),e.canGoNext&&u.jsx(jt,{className:Sc.oxDatePickerHeaderNext,type:"button",variant:"ghost",size:"2xs","aria-label":zh(r,Pc(e.month,e.months)),"data-testid":`${n}-next-month`,onClick:()=>e.goToNext(),children:u.jsx(ee,{icon:Ar})})]})})};Tc.displayName="OxDatePickerHeader";const Yz=`<svg width="1.2em" height="1.2em" stroke-color="currentColor" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24">
|
|
270
|
-
<g>
|
|
271
|
-
<path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M18 5H6a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7a2 2 0 0 0-2-2Zm-2-2v4M8 3v4m-4 4h16"/>
|
|
272
|
-
</g>
|
|
273
|
-
</svg>
|
|
274
|
-
`,kc={oxDatePickerTrigger:"_oxDatePickerTrigger_1teyt_2",oxDatePickerTriggerValue:"_oxDatePickerTriggerValue_1teyt_2",oxDatePickerTriggerIcon:"_oxDatePickerTriggerIcon_1teyt_2",oxDatePickerTriggerGlyph:"_oxDatePickerTriggerGlyph_1teyt_2"},Ks=h.forwardRef(({className:e,empty:t=!1,icon:o,children:n,dataTestid:r,...a},s)=>u.jsxs("button",{ref:s,type:"button","data-slot":"controller","data-testid":r,"data-placeholder":t||void 0,className:$(kc.oxDatePickerTrigger,e),...a,children:[u.jsx("span",{className:kc.oxDatePickerTriggerValue,children:n}),u.jsx("span",{"data-slot":"icon",className:kc.oxDatePickerTriggerIcon,children:o??u.jsx(ee,{icon:Yz,className:kc.oxDatePickerTriggerGlyph})})]}));Ks.displayName="OxDatePickerTrigger";const hP=({className:e,value:t,defaultValue:o,onValueChange:n,visibleMonth:r,onVisibleMonthChange:a,onFocusDay:s,months:i=1,constraints:l,disabled:c=!1,children:d,icon:f,day:p,dataTestid:g})=>{const{locale:x}=an(),[m,b]=h.useState(o),y=t??m,[C,w]=h.useState(!1),P=S=>{t===void 0&&b(S),n==null||n(S),S&&w(!1)};return u.jsx(cr,{open:C,onOpenChange:w,trigger:u.jsx(Ks,{className:e,empty:!y,disabled:c,icon:f,dataTestid:g,children:d?d({value:y}):y&&Lh(x,y)}),children:u.jsx(ta,{align:"start",sideOffset:4,dataTestid:`${g}-popover`,children:u.jsx("div",{className:Bz.oxDatePickerPanel,style:{"--ox-date-picker-months":i},children:u.jsx(kh,{value:y,onValueChange:P,visibleMonth:r,onVisibleMonthChange:a,onFocusDay:s,months:i,constraints:l,day:p,header:S=>u.jsx(Tc,{nav:S,constraints:l,dataTestid:`${g}-header`}),dataTestid:`${g}-calendar`})})})})};hP.displayName="OxDatePicker";const Vh={oxDateRangePickerPanel:"_oxDateRangePickerPanel_i62hi_2",oxDateRangePickerAside:"_oxDateRangePickerAside_i62hi_2",oxDateRangePickerMonths:"_oxDateRangePickerMonths_i62hi_2"},gP=({className:e,value:t,defaultValue:o,onValueChange:n,visibleMonth:r,onVisibleMonthChange:a,onFocusDay:s,months:i=2,constraints:l,disabled:c=!1,children:d,icon:f,aside:p,day:g,dataTestid:x})=>{const{locale:m}=an(),[b,y]=h.useState(o),C=t??b,[w,P]=h.useState(!1),S=k=>{t===void 0&&y(k),n==null||n(k)},_=k=>{S(k),k.start&&k.end&&P(!1)},T=k=>{S(k),P(!1)};return u.jsx(cr,{open:w,onOpenChange:P,trigger:u.jsx(Ks,{className:e,empty:!(C!=null&&C.start)&&!(C!=null&&C.end),disabled:c,icon:f,dataTestid:x,children:d?d({value:C}):Vz(m,C==null?void 0:C.start,C==null?void 0:C.end)}),children:u.jsx(ta,{align:"start",sideOffset:4,dataTestid:`${x}-popover`,children:u.jsxs("div",{className:Vh.oxDateRangePickerPanel,children:[p&&u.jsx("aside",{className:Vh.oxDateRangePickerAside,"data-testid":`${x}-aside`,children:p({select:T})}),u.jsx("div",{className:Vh.oxDateRangePickerMonths,style:{"--ox-date-picker-months":i},children:u.jsx(Ih,{value:C,onValueChange:_,visibleMonth:r,onVisibleMonthChange:a,onFocusDay:s,months:i,constraints:l,day:g,header:k=>u.jsx(Tc,{nav:k,constraints:l,dataTestid:`${x}-header`}),dataTestid:`${x}-calendar`})})]})})})};gP.displayName="OxDateRangePicker";var Kz=Object.defineProperty,Xz=(e,t)=>Kz(e,"name",{value:t,configurable:!0});function Wh(e,[t,o]){return Math.min(o,Math.max(t,e))}Xz(Wh,"clamp");var Zz=Object.defineProperty,Jz=(e,t)=>Zz(e,"name",{value:t,configurable:!0});function mP(e){const t=v.useRef({value:e,previous:e});return v.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}Jz(mP,"usePrevious");var Qz=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),eB=Object.defineProperty,ke=(e,t)=>eB(e,"name",{value:t,configurable:!0}),tB=[" ","Enter","ArrowUp","ArrowDown"],oB=[" ","Enter"],Ca="Select",[Ec,Ic,nB]=Oi(Ca),[xr,kZ]=qt(Ca,[nB,Yi]),Rh=Yi(),[rB,An]=xr(Ca),[aB,sB]=xr(Ca);function xP(e){const{__scopeSelect:t,children:o,open:n,defaultOpen:r,onOpenChange:a,value:s,defaultValue:i,onValueChange:l,dir:c,name:d,autoComplete:f,disabled:p,required:g,form:x,internal_do_not_use_render:m}=e,b=Rh(t),[y,C]=v.useState(null),[w,P]=v.useState(null),[S,_]=v.useState(!1),T=Ni(c),[k,E]=Un({prop:n,defaultProp:r??!1,onChange:a,caller:Ca}),[D,O]=Un({prop:s,defaultProp:i,onChange:l,caller:Ca}),N=v.useRef(null),z=v.useRef(D);v.useEffect(()=>{const H=x?y==null?void 0:y.ownerDocument.getElementById(x):y==null?void 0:y.form;if(H instanceof HTMLFormElement){const L=ke(()=>O(z.current),"reset");return H.addEventListener("reset",L),()=>H.removeEventListener("reset",L)}},[x,y,O]);const B=y?!!x||!!y.closest("form"):!0,[G,R]=v.useState(new Set),A=So(),F=Array.from(G).map(H=>H.props.value).join(";"),V=v.useCallback(H=>{R(L=>new Set(L).add(H))},[]),M=v.useCallback(H=>{R(L=>{const q=new Set(L);return q.delete(H),q})},[]),Y={required:g,trigger:y,onTriggerChange:C,valueNode:w,onValueNodeChange:P,valueNodeHasChildren:S,onValueNodeHasChildrenChange:_,contentId:A,value:D,onValueChange:O,open:k,onOpenChange:E,dir:T,triggerPointerDownPosRef:N,disabled:p,name:d,autoComplete:f,form:x,nativeOptions:G,nativeSelectKey:F,isFormControl:B};return u.jsx(Ed,{...b,children:u.jsx(rB,{scope:t,...Y,children:u.jsx(Ec.Provider,{scope:t,children:u.jsx(aB,{scope:t,onNativeOptionAdd:V,onNativeOptionRemove:M,children:PP(m)?m(Y):o})})})})}ke(xP,"SelectProvider");var iB=ke(e=>{const{__scopeSelect:t,children:o,...n}=e;return u.jsx(xP,{__scopeSelect:t,...n,internal_do_not_use_render:({isFormControl:r})=>u.jsxs(u.Fragment,{children:[o,r?u.jsx(BB,{__scopeSelect:t}):null]})})},"Select"),lB="SelectTrigger",cB=v.forwardRef(ke(function(t,o){const{__scopeSelect:n,disabled:r=!1,...a}=t,s=Rh(n),i=An(lB,n),l=i.disabled||r,c=he(o,i.onTriggerChange),d=Ic(n),f=v.useRef("touch"),[p,g,x]=Uh(b=>{const y=d().filter(P=>!P.disabled),C=y.find(P=>P.value===i.value),w=qh(y,b,C);w!==void 0&&i.onValueChange(w.value)}),m=ke(b=>{l||(i.onOpenChange(!0),x()),b&&(i.triggerPointerDownPosRef.current={x:Math.round(b.pageX),y:Math.round(b.pageY)})},"handleOpen");return u.jsx(T0,{asChild:!0,...s,children:u.jsx(ze.button,{type:"button",role:"combobox","aria-controls":i.open?i.contentId:void 0,"aria-expanded":i.open,"aria-required":i.required,"aria-autocomplete":"none",dir:i.dir,"data-state":i.open?"open":"closed",disabled:l,"data-disabled":l?"":void 0,"data-placeholder":Xs(i.value)?"":void 0,...a,ref:c,onClick:ne(a.onClick,b=>{b.currentTarget.focus(),f.current!=="mouse"&&m(b)}),onPointerDown:ne(a.onPointerDown,b=>{f.current=b.pointerType;const y=b.target;y.hasPointerCapture(b.pointerId)&&y.releasePointerCapture(b.pointerId),b.button===0&&b.ctrlKey===!1&&b.pointerType==="mouse"&&(m(b),b.preventDefault())}),onKeyDown:ne(a.onKeyDown,b=>{const y=p.current!=="";!(b.ctrlKey||b.altKey||b.metaKey)&&b.key.length===1&&g(b.key),!(y&&b.key===" ")&&tB.includes(b.key)&&(m(),b.preventDefault())})})})},"SelectTrigger")),uB="SelectValue",dB=v.forwardRef(ke(function(t,o){const{__scopeSelect:n,className:r,style:a,children:s,placeholder:i="",...l}=t,c=An(uB,n),{onValueNodeHasChildrenChange:d}=c,f=s!==void 0,p=he(o,c.onValueNodeChange);He(()=>{d(f)},[d,f]);const g=Xs(c.value);return u.jsx(ze.span,{...l,asChild:g?!1:l.asChild,ref:p,style:{pointerEvents:"none"},children:u.jsx(v.Fragment,{children:g?i:s},g?"placeholder":"value")})},"SelectValue")),fB=v.forwardRef(ke(function(t,o){const{__scopeSelect:n,children:r,...a}=t;return u.jsx(ze.span,{"aria-hidden":!0,...a,ref:o,children:r||"▼"})},"SelectIcon")),pB="SelectPortal",[hB,gB]=xr(pB,{forceMount:void 0}),mB=ke(e=>{const{__scopeSelect:t,forceMount:o,...n}=e;return u.jsx(hB,{scope:e.__scopeSelect,forceMount:o,children:u.jsx(E0,{asChild:!0,...n})})},"SelectPortal"),br="SelectContent",xB=v.forwardRef(ke(function(t,o){const n=gB(br,t.__scopeSelect),{forceMount:r=n.forceMount,...a}=t,s=An(br,t.__scopeSelect),[i,l]=v.useState();return He(()=>{l(new DocumentFragment)},[]),u.jsx(Ka,{present:r||s.open,children:({present:c})=>c?u.jsx(yB,{...a,ref:o}):u.jsx(bB,{...a,fragment:i})})},"SelectContent")),bB=v.forwardRef(ke(function(t,o){const{__scopeSelect:n,children:r,fragment:a}=t;return a?no.createPortal(u.jsx(bP,{scope:n,children:u.jsx(Ec.Slot,{scope:n,children:u.jsx("div",{ref:o,children:r})})}),a):null},"SelectContentFragment")),xo=10,[bP,vr]=xr(br),vB=gn("SelectContent.RemoveScroll"),yB=v.forwardRef(ke(function(t,o){const{__scopeSelect:n}=t,{position:r="item-aligned",onCloseAutoFocus:a,onEscapeKeyDown:s,onPointerDownOutside:i,side:l,sideOffset:c,align:d,alignOffset:f,arrowPadding:p,collisionBoundary:g,collisionPadding:x,sticky:m,hideWhenDetached:b,avoidCollisions:y,...C}=t,w=An(br,n),[P,S]=v.useState(null),[_,T]=v.useState(null),k=he(o,S),[E,D]=v.useState(null),[O,N]=v.useState(null),z=Ic(n),[B,G]=v.useState(!1),R=v.useRef(!1);v.useEffect(()=>{if(P)return Qi(P)},[P]),Fi();const A=v.useCallback(K=>{const[J,...Z]=z().map(Q=>Q.ref.current),[te]=Z.slice(-1),X=document.activeElement;for(const Q of K)if(Q===X||(Q==null||Q.scrollIntoView({block:"nearest"}),Q===J&&_&&(_.scrollTop=0),Q===te&&_&&(_.scrollTop=_.scrollHeight),Q==null||Q.focus(),document.activeElement!==X))return},[z,_]),F=v.useCallback(()=>A([E,P]),[A,E,P]);v.useEffect(()=>{B&&F()},[B,F]);const{onOpenChange:V,triggerPointerDownPosRef:M}=w;v.useEffect(()=>{if(P){let K={x:0,y:0};const J=ke(te=>{var X,Q;K={x:Math.abs(Math.round(te.pageX)-(((X=M.current)==null?void 0:X.x)??0)),y:Math.abs(Math.round(te.pageY)-(((Q=M.current)==null?void 0:Q.y)??0))}},"handlePointerMove"),Z=ke(te=>{K.x<=10&&K.y<=10?te.preventDefault():te.composedPath().includes(P)||V(!1),document.removeEventListener("pointermove",J),M.current=null},"handlePointerUp");return M.current!==null&&(document.addEventListener("pointermove",J),document.addEventListener("pointerup",Z,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",J),document.removeEventListener("pointerup",Z,{capture:!0})}}},[P,V,M]),v.useEffect(()=>{const K=ke(()=>V(!1),"close");return window.addEventListener("blur",K),window.addEventListener("resize",K),()=>{window.removeEventListener("blur",K),window.removeEventListener("resize",K)}},[V]);const[Y,H]=Uh(K=>{const J=z().filter(X=>!X.disabled),Z=J.find(X=>X.ref.current===document.activeElement),te=qh(J,K,Z);te&&setTimeout(()=>{var X;return(X=te.ref.current)==null?void 0:X.focus()})}),L=v.useCallback((K,J,Z)=>{const te=!R.current&&!Z;(w.value!==void 0&&w.value===J||te)&&(D(K),te&&(R.current=!0))},[w.value]),q=v.useCallback(()=>P==null?void 0:P.focus(),[P]),j=v.useCallback((K,J,Z)=>{const te=!R.current&&!Z;(w.value!==void 0&&w.value===J||te)&&N(K)},[w.value]),W=r==="popper"?vP:wB,U=W===vP?{side:l,sideOffset:c,align:d,alignOffset:f,arrowPadding:p,collisionBoundary:g,collisionPadding:x,sticky:m,hideWhenDetached:b,avoidCollisions:y}:{};return u.jsx(bP,{scope:n,content:P,viewport:_,onViewportChange:T,itemRefCallback:L,selectedItem:E,onItemLeave:q,itemTextRefCallback:j,focusSelectedItem:F,selectedItemText:O,position:r,isPositioned:B,searchRef:Y,children:u.jsx(Xa,{as:vB,allowPinchZoom:!0,children:u.jsx(Fx,{asChild:!0,trapped:w.open,onMountAutoFocus:K=>{K.preventDefault()},onUnmountAutoFocus:ne(a,K=>{var J;(J=w.trigger)==null||J.focus({preventScroll:!0}),K.preventDefault()}),children:u.jsx(Ox,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:s,onPointerDownOutside:i,onFocusOutside:K=>K.preventDefault(),onDismiss:()=>w.onOpenChange(!1),children:u.jsx(W,{role:"listbox",id:w.contentId,"data-state":w.open?"open":"closed",dir:w.dir,onContextMenu:K=>K.preventDefault(),...C,...U,onPlaced:()=>G(!0),ref:k,style:{display:"flex",flexDirection:"column",outline:"none",...C.style},onKeyDown:ne(C.onKeyDown,K=>{const J=K.ctrlKey||K.altKey||K.metaKey;if(K.key==="Tab"&&K.preventDefault(),!J&&K.key.length===1&&H(K.key),["ArrowUp","ArrowDown","Home","End"].includes(K.key)){let te=z().filter(X=>!X.disabled).map(X=>X.ref.current);if(["ArrowUp","End"].includes(K.key)&&(te=te.slice().reverse()),["ArrowUp","ArrowDown"].includes(K.key)){const X=K.target,Q=te.indexOf(X);te=te.slice(Q+1)}setTimeout(()=>A(te)),K.preventDefault()}})})})})})})},"SelectContentImpl")),wB=v.forwardRef(ke(function(t,o){const{__scopeSelect:n,onPlaced:r,...a}=t,s=An(br,n),i=vr(br,n),[l,c]=v.useState(null),[d,f]=v.useState(null),p=he(o,f),g=Ic(n),x=v.useRef(!1),m=v.useRef(!0),{viewport:b,selectedItem:y,selectedItemText:C,focusSelectedItem:w}=i,P=v.useCallback(()=>{if(s.trigger&&s.valueNode&&l&&d&&b&&y&&C){const k=s.trigger.getBoundingClientRect(),E=d.getBoundingClientRect(),D=s.valueNode.getBoundingClientRect(),O=C.getBoundingClientRect();if(s.dir!=="rtl"){const X=O.left-E.left,Q=D.left-X,be=k.left-Q,De=k.width+be,Fe=Math.max(De,E.width),Ge=window.innerWidth-xo,Me=Wh(Q,[xo,Math.max(xo,Ge-Fe)]);l.style.minWidth=De+"px",l.style.left=Me+"px"}else{const X=E.right-O.right,Q=window.innerWidth-D.right-X,be=window.innerWidth-k.right-Q,De=k.width+be,Fe=Math.max(De,E.width),Ge=window.innerWidth-xo,Me=Wh(Q,[xo,Math.max(xo,Ge-Fe)]);l.style.minWidth=De+"px",l.style.right=Me+"px"}const N=g(),z=window.innerHeight-xo*2,B=b.scrollHeight,G=window.getComputedStyle(d),R=parseInt(G.borderTopWidth,10),A=parseInt(G.paddingTop,10),F=parseInt(G.borderBottomWidth,10),V=parseInt(G.paddingBottom,10),M=R+A+B+V+F,Y=Math.min(y.offsetHeight*5,M),H=window.getComputedStyle(b),L=parseInt(H.paddingTop,10),q=parseInt(H.paddingBottom,10),j=k.top+k.height/2-xo,W=z-j,U=y.offsetHeight/2,K=y.offsetTop+U,J=R+A+K,Z=M-J;if(J<=j){const X=N.length>0&&y===N[N.length-1].ref.current;l.style.bottom="0px";const Q=d.clientHeight-b.offsetTop-b.offsetHeight,be=Math.max(W,U+(X?q:0)+Q+F),De=J+be;l.style.height=De+"px"}else{const X=N.length>0&&y===N[0].ref.current;l.style.top="0px";const be=Math.max(j,R+b.offsetTop+(X?L:0)+U)+Z;l.style.height=be+"px",b.scrollTop=J-j+b.offsetTop}l.style.margin=`${xo}px 0`,l.style.minHeight=Y+"px",l.style.maxHeight=z+"px",r==null||r(),requestAnimationFrame(()=>x.current=!0)}},[g,s.trigger,s.valueNode,l,d,b,y,C,s.dir,r]);He(()=>P(),[P]);const[S,_]=v.useState();He(()=>{d&&_(window.getComputedStyle(d).zIndex)},[d]);const T=v.useCallback(k=>{k&&m.current===!0&&(P(),w==null||w(),m.current=!1)},[P,w]);return u.jsx(CB,{scope:n,contentWrapper:l,shouldExpandOnScrollRef:x,onScrollButtonChange:T,children:u.jsx("div",{ref:c,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:S},children:u.jsx(ze.div,{...a,ref:p,style:{boxSizing:"border-box",maxHeight:"100%",...a.style}})})})},"SelectItemAlignedPosition")),vP=v.forwardRef(ke(function(t,o){const{__scopeSelect:n,align:r="start",collisionPadding:a=xo,...s}=t,i=Rh(n);return u.jsx(k0,{...i,...s,ref:o,align:r,collisionPadding:a,style:{boxSizing:"border-box",...s.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})},"SelectPopperPosition")),[CB,Gh]=xr(br,{}),yP="SelectViewport",_B=v.forwardRef(ke(function(t,o){const{__scopeSelect:n,nonce:r,...a}=t,s=vr(yP,n),i=Gh(yP,n),l=he(o,s.onViewportChange),c=v.useRef(0);return u.jsxs(u.Fragment,{children:[u.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:r}),u.jsx(Ec.Slot,{scope:n,children:u.jsx(ze.div,{"data-radix-select-viewport":"",role:"presentation",...a,ref:l,style:{position:"relative",flex:1,overflow:"hidden auto",...a.style},onScroll:ne(a.onScroll,d=>{const f=d.currentTarget,{contentWrapper:p,shouldExpandOnScrollRef:g}=i;if(g!=null&&g.current&&p){const x=Math.abs(c.current-f.scrollTop);if(x>0){const m=window.innerHeight-xo*2,b=parseFloat(p.style.minHeight),y=parseFloat(p.style.height),C=Math.max(b,y);if(C<m){const w=C+x,P=Math.min(m,w),S=w-P;p.style.height=P+"px",p.style.bottom==="0px"&&(f.scrollTop=S>0?S:0,p.style.justifyContent="flex-end")}}}c.current=f.scrollTop})})})]})},"SelectViewport")),SB="SelectGroup",[PB,TB]=xr(SB),kB=v.forwardRef(ke(function(t,o){const{__scopeSelect:n,...r}=t,a=So();return u.jsx(PB,{scope:n,id:a,children:u.jsx(ze.div,{role:"group","aria-labelledby":a,...r,ref:o})})},"SelectGroup")),EB="SelectLabel",IB=v.forwardRef(ke(function(t,o){const{__scopeSelect:n,...r}=t,a=TB(EB,n);return u.jsx(ze.div,{id:a.id,...r,ref:o})},"SelectLabel")),jh="SelectItem",[DB,wP]=xr(jh),MB=v.forwardRef(ke(function(t,o){const{__scopeSelect:n,value:r,disabled:a=!1,textValue:s,...i}=t,l=An(jh,n),c=vr(jh,n),d=l.value===r,[f,p]=v.useState(s??""),[g,x]=v.useState(!1),m=Ye(P=>{var S;return(S=c.itemRefCallback)==null?void 0:S.call(c,P,r,a)}),b=he(o,m),y=So(),C=v.useRef("touch"),w=ke(()=>{a||(l.onValueChange(r),l.onOpenChange(!1))},"handleSelect");return u.jsx(DB,{scope:n,value:r,disabled:a,textId:y,isSelected:d,onItemTextChange:v.useCallback(P=>{p(S=>S||((P==null?void 0:P.textContent)??"").trim())},[]),children:u.jsx(Ec.ItemSlot,{scope:n,value:r,disabled:a,textValue:f,children:u.jsx(ze.div,{role:"option","aria-labelledby":y,"data-highlighted":g?"":void 0,"aria-selected":d&&g,"data-state":d?"checked":"unchecked","aria-disabled":a||void 0,"data-disabled":a?"":void 0,tabIndex:a?void 0:-1,...i,ref:b,onFocus:ne(i.onFocus,()=>x(!0)),onBlur:ne(i.onBlur,()=>x(!1)),onClick:ne(i.onClick,()=>{C.current!=="mouse"&&w()}),onPointerUp:ne(i.onPointerUp,()=>{C.current==="mouse"&&w()}),onPointerDown:ne(i.onPointerDown,P=>{C.current=P.pointerType}),onPointerMove:ne(i.onPointerMove,P=>{var S;C.current=P.pointerType,a?(S=c.onItemLeave)==null||S.call(c):C.current==="mouse"&&P.currentTarget.focus({preventScroll:!0})}),onPointerLeave:ne(i.onPointerLeave,P=>{var S;P.currentTarget===document.activeElement&&((S=c.onItemLeave)==null||S.call(c))}),onKeyDown:ne(i.onKeyDown,P=>{var _;a||P.target!==P.currentTarget||((_=c.searchRef)==null?void 0:_.current)!==""&&P.key===" "||(oB.includes(P.key)&&w(),P.key===" "&&P.preventDefault())})})})})},"SelectItem")),Dc="SelectItemText",OB=v.forwardRef(ke(function(t,o){const{__scopeSelect:n,className:r,style:a,...s}=t,i=An(Dc,n),l=vr(Dc,n),c=wP(Dc,n),d=sB(Dc,n),[f,p]=v.useState(null),g=Ye(w=>{var P;return(P=l.itemTextRefCallback)==null?void 0:P.call(l,w,c.value,c.disabled)}),x=he(o,p,c.onItemTextChange,g),m=f==null?void 0:f.textContent,b=v.useMemo(()=>u.jsx("option",{value:c.value,disabled:c.disabled,children:m},c.value),[c.disabled,c.value,m]),{onNativeOptionAdd:y,onNativeOptionRemove:C}=d;return He(()=>(y(b),()=>C(b)),[y,C,b]),u.jsxs(u.Fragment,{children:[u.jsx(ze.span,{id:c.textId,...s,ref:x}),c.isSelected&&i.valueNode&&!i.valueNodeHasChildren&&!Xs(i.value)?no.createPortal(s.children,i.valueNode):null]})},"SelectItemText")),AB="SelectItemIndicator",NB=v.forwardRef(ke(function(t,o){const{__scopeSelect:n,...r}=t;return wP(AB,n).isSelected?u.jsx(ze.span,{"aria-hidden":!0,...r,ref:o}):null},"SelectItemIndicator")),CP="SelectScrollUpButton",$B=v.forwardRef(ke(function(t,o){const n=vr(CP,t.__scopeSelect),r=Gh(CP,t.__scopeSelect),[a,s]=v.useState(!1),i=he(o,r.onScrollButtonChange);return He(()=>{if(n.viewport&&n.isPositioned){let l=function(){const d=c.scrollTop>0;s(d)};ke(l,"handleScroll");const c=n.viewport;return l(),c.addEventListener("scroll",l),()=>c.removeEventListener("scroll",l)}},[n.viewport,n.isPositioned]),a?u.jsx(SP,{...t,ref:i,onAutoScroll:()=>{const{viewport:l,selectedItem:c}=n;l&&c&&(l.scrollTop=l.scrollTop-c.offsetHeight)}}):null},"SelectScrollUpButton")),_P="SelectScrollDownButton",FB=v.forwardRef(ke(function(t,o){const n=vr(_P,t.__scopeSelect),r=Gh(_P,t.__scopeSelect),[a,s]=v.useState(!1),i=he(o,r.onScrollButtonChange);return He(()=>{if(n.viewport&&n.isPositioned){let l=function(){const d=c.scrollHeight-c.clientHeight,f=Math.ceil(c.scrollTop)<d;s(f)};ke(l,"handleScroll");const c=n.viewport;return l(),c.addEventListener("scroll",l),()=>c.removeEventListener("scroll",l)}},[n.viewport,n.isPositioned]),a?u.jsx(SP,{...t,ref:i,onAutoScroll:()=>{const{viewport:l,selectedItem:c}=n;l&&c&&(l.scrollTop=l.scrollTop+c.offsetHeight)}}):null},"SelectScrollDownButton")),SP=v.forwardRef(ke(function(t,o){const{__scopeSelect:n,onAutoScroll:r,...a}=t,s=vr("SelectScrollButton",n),i=v.useRef(null),l=Ic(n),c=v.useCallback(()=>{i.current!==null&&(window.clearInterval(i.current),i.current=null)},[]);return v.useEffect(()=>()=>c(),[c]),He(()=>{var f;const d=l().find(p=>p.ref.current===document.activeElement);(f=d==null?void 0:d.ref.current)==null||f.scrollIntoView({block:"nearest"})},[l]),u.jsx(ze.div,{"aria-hidden":!0,...a,ref:o,style:{flexShrink:0,...a.style},onPointerDown:ne(a.onPointerDown,()=>{i.current===null&&(i.current=window.setInterval(r,50))}),onPointerMove:ne(a.onPointerMove,()=>{var d;(d=s.onItemLeave)==null||d.call(s),i.current===null&&(i.current=window.setInterval(r,50))}),onPointerLeave:ne(a.onPointerLeave,()=>{c()})})},"SelectScrollButtonImpl")),LB=v.forwardRef(ke(function(t,o){const{__scopeSelect:n,...r}=t;return u.jsx(ze.div,{"aria-hidden":!0,...r,ref:o})},"SelectSeparator")),zB="SelectBubbleInput",BB=v.forwardRef(ke(function({__scopeSelect:t,...o},n){const r=An(zB,t),{value:a,onValueChange:s,required:i,disabled:l,name:c,autoComplete:d,form:f}=r,{nativeOptions:p,nativeSelectKey:g}=r,x=v.useRef(null),m=he(n,x),b=a??"",y=mP(b),C=Array.from(p).some(w=>(w.props.value??"")==="");return v.useEffect(()=>{const w=x.current;if(!w)return;const P=window.HTMLSelectElement.prototype,_=Object.getOwnPropertyDescriptor(P,"value").set;if(y!==b&&_){const T=new Event("change",{bubbles:!0});_.call(w,b),w.dispatchEvent(T)}},[y,b]),u.jsxs(ze.select,{"aria-hidden":!0,required:i,tabIndex:-1,name:c,autoComplete:d,disabled:l,form:f,onChange:w=>s(w.target.value),...o,style:{...Qz,...o.style},ref:m,defaultValue:b,children:[Xs(a)&&!C?u.jsx("option",{value:""}):null,Array.from(p)]},g)},"SelectBubbleInput"));function PP(e){return typeof e=="function"}ke(PP,"isFunction");function Xs(e){return e===""||e===void 0}ke(Xs,"shouldShowPlaceholder");function Uh(e){const t=Ye(e),o=v.useRef(""),n=v.useRef(0),r=v.useCallback(s=>{const i=o.current+s;t(i),ke((function l(c){o.current=c,window.clearTimeout(n.current),c!==""&&(n.current=window.setTimeout(()=>l(""),1e3))}),"updateSearch")(i)},[t]),a=v.useCallback(()=>{o.current="",window.clearTimeout(n.current)},[]);return v.useEffect(()=>()=>window.clearTimeout(n.current),[]),[o,r,a]}ke(Uh,"useTypeaheadSearch");function qh(e,t,o){const r=t.length>1&&Array.from(t).every(c=>c===t[0])?t[0]:t,a=o?e.indexOf(o):-1;let s=TP(e,Math.max(a,0));r.length===1&&(s=s.filter(c=>c!==o));const l=s.find(c=>c.textValue.toLowerCase().startsWith(r.toLowerCase()));return l!==o?l:void 0}ke(qh,"findNextItem");function TP(e,t){return e.map((o,n)=>e[(t+n)%e.length])}ke(TP,"wrapArray");const HB={oxSelect:"_oxSelect_usfm0_2"},kP=h.createContext(null);function EP(){const e=h.useContext(kP);if(!e)throw new Error("Select sub-components must be used within <Select>.");return e}const Mc=h.forwardRef(({className:e,value:t,defaultValue:o,onValueChange:n,children:r,dataTestid:a,...s},i)=>{const[l,c]=h.useState(o),[d,f]=h.useState({}),p=t??l,g=h.useCallback((b,y)=>{f(C=>C[b]===y?C:{...C,[b]:y})},[]),x=h.useCallback(b=>{t===void 0&&c(b),n==null||n(b)},[t,n]),m=h.useMemo(()=>({value:p,labels:d,registerLabel:g}),[p,d,g]);return u.jsx(kP.Provider,{value:m,children:u.jsx(iB,{value:p??"",onValueChange:x,...s,children:u.jsx("div",{ref:i,"data-slot":"select","data-testid":a,className:$(HB.oxSelect,e),children:r})})})});Mc.displayName="OxSelect";const VB=16,Oc=h.forwardRef(({children:e,side:t="bottom",sideOffset:o=4,align:n="start",...r},a)=>u.jsx(mB,{children:u.jsx(xB,{ref:a,asChild:!0,"data-slot":"select-content",side:t,sideOffset:o,collisionPadding:VB,align:n,position:"popper",...r,children:u.jsxs(so,{children:[u.jsx($B,{className:"ox-select-scroll-button",children:u.jsx(ee,{icon:sS,className:"ox-select-scroll-icon"})}),u.jsx(_B,{asChild:!0,children:u.jsx(os,{children:e})}),u.jsx(FB,{className:"ox-select-scroll-button",children:u.jsx(ee,{icon:Co,className:"ox-select-scroll-icon"})})]})})}));Oc.displayName="OxSelectContent";const Ac=h.forwardRef(({className:e,value:t,disabled:o=!1,children:n,...r},a)=>{const{registerLabel:s}=EP(),i=h.useRef(null);return h.useEffect(()=>{var l;s(t,((l=i.current)==null?void 0:l.textContent)??"")},[t,n,s]),u.jsx(MB,{ref:a,asChild:!0,"data-slot":"select-item",value:t,disabled:o,...r,children:u.jsx(ts,{className:e,indicator:u.jsx(NB,{children:u.jsx(ee,{icon:wn})}),children:u.jsx(OB,{ref:i,children:n})})})});Ac.displayName="OxSelectItem";const Nc={oxSelectTrigger:"_oxSelectTrigger_msdyc_2",oxSelectTriggerValue:"_oxSelectTriggerValue_msdyc_2",oxSelectTriggerIcon:"_oxSelectTriggerIcon_msdyc_2",oxSelectTriggerGlyph:"_oxSelectTriggerGlyph_msdyc_2"},$c=h.forwardRef(({className:e,placeholder:t="",disabled:o=!1,icon:n,children:r,id:a,...s},i)=>{const{value:l,labels:c}=EP(),d=l===void 0?"":c[l]??"",f=Tt(a);return u.jsxs(cB,{ref:i,...f,"data-slot":"controller",className:$(Nc.oxSelectTrigger,e),disabled:o,...s,children:[u.jsx(dB,{className:Nc.oxSelectTriggerValue,placeholder:t,children:r?r({selectedLabel:d,value:l}):void 0}),u.jsx(fB,{asChild:!0,children:u.jsx("span",{"data-slot":"icon",className:Nc.oxSelectTriggerIcon,children:n??u.jsx(ee,{icon:Co,className:Nc.oxSelectTriggerGlyph})})})]})});$c.displayName="OxSelectTrigger";const IP={oxDatePickerMonthSelect:"_oxDatePickerMonthSelect_5o40a_2",oxDatePickerMonthOptions:"_oxDatePickerMonthOptions_5o40a_2"},DP=({dataTestid:e})=>{const{nav:t,constraints:o}=pP(),{locale:n}=an(),{from:r,to:a}=o??{},s=t.month.getFullYear(),i=Array.from({length:12},(c,d)=>{const f=new Date(s,d,1);return{value:String(d),label:Bh(n,f),disabled:r!==void 0&&On(f)<On(r)||a!==void 0&&On(f)>On(a)}}),l=c=>t.goTo(new Date(t.month.getFullYear(),Number(c),1));return u.jsxs(Mc,{className:IP.oxDatePickerMonthSelect,value:String(t.month.getMonth()),onValueChange:l,dataTestid:e,children:[u.jsx($c,{children:()=>Bh(n,t.month)}),u.jsx(Oc,{className:IP.oxDatePickerMonthOptions,children:i.map(c=>u.jsx(Ac,{value:c.value,disabled:c.disabled,children:c.label},c.value))})]})};DP.displayName="OxDatePickerMonthSelect";const MP={oxDatePickerYearSelect:"_oxDatePickerYearSelect_5f5ah_2",oxDatePickerYearOptions:"_oxDatePickerYearOptions_5f5ah_2"},OP=({dataTestid:e})=>{const{nav:t,constraints:o}=pP(),{locale:n}=an(),{from:r,to:a}=o??{},{first:s,last:i}=Uz(t.month,r,a),l=t.month.getFullYear(),c=Math.min(s,l),d=Math.max(i,l),f=Array.from({length:d-c+1},(g,x)=>{const m=c+x;return{value:String(m),label:Ys(n,new Date(m,0,1))}}),p=g=>t.goTo(new Date(Number(g),t.month.getMonth(),1));return u.jsxs(Mc,{className:MP.oxDatePickerYearSelect,value:String(l),onValueChange:p,dataTestid:e,children:[u.jsx($c,{children:()=>Ys(n,t.month)}),u.jsx(Oc,{className:MP.oxDatePickerYearOptions,children:f.map(g=>u.jsx(Ac,{value:g.value,children:g.label},g.value))})]})};OP.displayName="OxDatePickerYearSelect";const _a={oxMonthPicker:"_oxMonthPicker_1fs9r_2",oxMonthPickerTrigger:"_oxMonthPickerTrigger_1fs9r_2",oxMonthPickerStep:"_oxMonthPickerStep_1fs9r_2",oxMonthPickerStepGlyph:"_oxMonthPickerStepGlyph_1fs9r_2"},ln={oxMonthPickerPanel:"_oxMonthPickerPanel_jfd6x_2",oxMonthPickerHeader:"_oxMonthPickerHeader_jfd6x_2",oxMonthPickerNav:"_oxMonthPickerNav_jfd6x_2",oxMonthPickerNavGlyph:"_oxMonthPickerNavGlyph_jfd6x_2",oxMonthPickerTitle:"_oxMonthPickerTitle_jfd6x_2",oxMonthPickerGrid:"_oxMonthPickerGrid_jfd6x_2",oxMonthPickerCell:"_oxMonthPickerCell_jfd6x_2"},AP=3,Yh=12,NP=12,Zs=10,Kh=e=>e-(e%Zs+Zs)%Zs,Xh=e=>Array.from({length:Yh},(t,o)=>new Date(e,o,1)),Zh=e=>{const t=Kh(e);return Array.from({length:NP},(o,n)=>new Date(t+n,0,1))},Fc=(e,t)=>{if(!t)return!1;const{from:o,to:n,isDisabled:r}=t;return o&&On(e)<On(o)||n&&On(e)>On(n)?!0:(r==null?void 0:r(e))??!1},$P=(e,t)=>Xh(e.getFullYear()).every(o=>Fc(o,t)),WB=(e,t,{cells:o,pageStep:n})=>{switch(e){case"ArrowLeft":return t-1;case"ArrowRight":return t+1;case"ArrowUp":return t-AP;case"ArrowDown":return t+AP;case"Home":return 0;case"End":return o-1;case"PageUp":return t-n;case"PageDown":return t+n;default:return null}},Jh=({className:e,visibleYear:t,onVisibleYearChange:o,value:n,defaultValue:r,onValueChange:a,constraints:s,dataTestid:i})=>{const{locale:l}=an(),c=n!==void 0&&a!==void 0,[d,f]=h.useState(r??n),p=c?n:d;h.useEffect(()=>{!c&&n!==void 0&&f(n)},[c,n]);const[g,x]=h.useState("months"),[m,b]=h.useState(()=>p&&p.getFullYear()===t?new Date(t,p.getMonth(),1):new Date(t,0,1)),y=h.useRef(null),C=h.useRef(!1),w=new Date,P=g==="years"?Zh(t).map(A=>({value:A,label:Ys(l,A),testid:`year-${A.getFullYear()}`,selected:(p==null?void 0:p.getFullYear())===A.getFullYear(),current:w.getFullYear()===A.getFullYear(),disabled:$P(A,s)})):Xh(t).map(A=>({value:A,label:Bh(l,A),testid:`month-${String(A.getMonth()+1).padStart(2,"0")}`,selected:(p==null?void 0:p.getFullYear())===A.getFullYear()&&(p==null?void 0:p.getMonth())===A.getMonth(),current:w.getFullYear()===A.getFullYear()&&w.getMonth()===A.getMonth(),disabled:Fc(A,s)})),S=g==="years"?P.findIndex(A=>A.value.getFullYear()===m.getFullYear()):P.findIndex(A=>A.value.getTime()===m.getTime()),_=S===-1?0:S,T=A=>{const F=Zh(A),V=F[0],M=F[F.length-1];return V&&M?Rz(l,V,M):""},k=g==="months"?Ys(l,new Date(t,0,1)):T(t),E=A=>t+A*(g==="months"?1:Zs),D=A=>g==="months"?Ys(l,new Date(E(A),0,1)):T(E(A)),O=A=>{const F=E(A);return g==="months"?!Xh(F).every(V=>Fc(V,s)):!Zh(F).every(V=>$P(V,s))},N=(A,F)=>{const V=new Date(A,F,1);b(V),V.getFullYear()!==t&&(o==null||o(V.getFullYear()))},z=A=>{const F=g==="months"?E(A):Kh(E(A));o==null||o(F),b(V=>new Date(F,V.getMonth(),1))},B=A=>{if(g==="years"){x("months"),o==null||o(A.getFullYear()),b(F=>new Date(A.getFullYear(),F.getMonth(),1));return}c||f(A),a==null||a(A)},G=A=>{const F=g==="years",V=WB(A.key,_,{cells:F?NP:Yh,pageStep:F?Zs:Yh});if(V!==null){if(A.preventDefault(),C.current=!0,F){N(Kh(t)+V,m.getMonth());return}N(t,V)}},R=h.useCallback(()=>{var A,F;(F=(A=y.current)==null?void 0:A.querySelector('[tabindex="0"]'))==null||F.focus()},[]);return h.useEffect(()=>{C.current=!1,R()},[R,g]),h.useEffect(()=>{C.current&&(C.current=!1,R())},[m,R]),h.useEffect(()=>{b(A=>A.getFullYear()===t?A:new Date(t,A.getMonth(),1))},[t]),u.jsxs("div",{className:$(ln.oxMonthPickerPanel,e),"data-slot":"month-picker-panel","data-view":g,"data-testid":i,children:[u.jsxs("div",{className:ln.oxMonthPickerHeader,children:[u.jsx(jt,{className:ln.oxMonthPickerNav,type:"button",variant:"ghost",size:"xs","aria-label":D(-1),disabled:!O(-1),"data-testid":`${i}-prev`,onClick:()=>z(-1),children:u.jsx(ee,{icon:_c,className:ln.oxMonthPickerNavGlyph})}),u.jsx("button",{type:"button",className:ln.oxMonthPickerTitle,"aria-pressed":g==="years","data-testid":`${i}-title`,onClick:()=>x(A=>A==="months"?"years":"months"),children:k}),u.jsx(jt,{className:ln.oxMonthPickerNav,type:"button",variant:"ghost",size:"xs","aria-label":D(1),disabled:!O(1),"data-testid":`${i}-next`,onClick:()=>z(1),children:u.jsx(ee,{icon:Ar,className:ln.oxMonthPickerNavGlyph})})]}),u.jsx("div",{ref:y,className:ln.oxMonthPickerGrid,onKeyDown:G,children:P.map((A,F)=>u.jsx("button",{type:"button",className:ln.oxMonthPickerCell,tabIndex:F===_?0:-1,disabled:A.disabled,"aria-pressed":A.selected,"aria-current":A.current?"date":void 0,"data-selected":A.selected||void 0,"data-current":A.current||void 0,"data-testid":`${i}-${A.testid}`,onClick:()=>B(A.value),children:A.label},A.value.getTime()))})]})};Jh.displayName="OxMonthPickerPanel";const FP=({className:e,value:t,defaultValue:o,onValueChange:n,visibleYear:r,onVisibleYearChange:a,constraints:s,showArrows:i=!1,disabled:l=!1,children:c,icon:d,dataTestid:f})=>{const{locale:p}=an(),g=t!==void 0&&n!==void 0,[x,m]=h.useState(o??t),b=g?t:x;h.useEffect(()=>{!g&&t!==void 0&&m(t)},[g,t]);const[y,C]=h.useState(!1),w=()=>(b??new Date).getFullYear(),[P,S]=h.useState(w),_=r??P,T=z=>{z&&r===void 0&&S(w()),C(z)},k=z=>{S(z),a==null||a(z)},E=z=>{g||m(z),n==null||n(z)},D=z=>{E(z),C(!1)},O=z=>Pc(b??new Date,z),N=z=>!Fc(O(z),s);return u.jsxs("div",{className:$(_a.oxMonthPicker,e),children:[i&&u.jsx("button",{type:"button",className:_a.oxMonthPickerStep,"aria-label":Hh(p,O(-1)),disabled:l||!N(-1),"data-testid":`${f}-prev-month`,onClick:()=>E(O(-1)),children:u.jsx(ee,{icon:_c,className:_a.oxMonthPickerStepGlyph})}),u.jsx(cr,{open:y,onOpenChange:T,trigger:u.jsx(Ks,{className:_a.oxMonthPickerTrigger,empty:!b,disabled:l,icon:d,dataTestid:f,children:c?c({value:b}):b&&Hh(p,b)}),children:u.jsx(ta,{align:"start",sideOffset:8,dataTestid:`${f}-popover`,children:u.jsx(Jh,{value:b,onValueChange:D,visibleYear:_,onVisibleYearChange:k,constraints:s,dataTestid:`${f}-panel`})})}),i&&u.jsx("button",{type:"button",className:_a.oxMonthPickerStep,"aria-label":Hh(p,O(1)),disabled:l||!N(1),"data-testid":`${f}-next-month`,onClick:()=>E(O(1)),children:u.jsx(ee,{icon:Ar,className:_a.oxMonthPickerStepGlyph})})]})};FP.displayName="OxMonthPicker";const LP={"ox-rich-text-editor":"_ox-rich-text-editor_nmtuq_2","ox-rich-text-editor-surface":"_ox-rich-text-editor-surface_nmtuq_2",ProseMirror:"_ProseMirror_nmtuq_2","is-editor-empty":"_is-editor-empty_nmtuq_2"},RB=e=>`[OxRichTextEditor] Could not load \`${e}\`. TipTap is an optional peer dependency, so installing this package does not install it — add it and \`@tiptap/starter-kit\` to use the editor. Everything else here works without it, \`OxRichText\` included.`,Js={bold:{icon:`<svg width="1.2em" height="1.2em" stroke-color="currentColor" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24">
|
|
275
|
-
<g class="icon-bold" clip-path="url(#a)">
|
|
276
|
-
<path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M7 5h6a3.5 3.5 0 1 1 0 7H7V5Zm6 7h1a3.5 3.5 0 1 1 0 7H7v-7" class="Vector"/>
|
|
277
|
-
</g>
|
|
278
|
-
<defs>
|
|
279
|
-
<clipPath id="a" class="a">
|
|
280
|
-
<path fill="#fff" d="M0 0h24v24H0z"/>
|
|
281
|
-
</clipPath>
|
|
282
|
-
</defs>
|
|
283
|
-
</svg>
|
|
284
|
-
`,label:"orxata.richText.bold",schema:{name:"bold"},apply:e=>e.toggleBold()},italic:{icon:`<svg width="1.2em" height="1.2em" stroke-color="currentColor" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24">
|
|
285
|
-
<g class="icon-italic" clip-path="url(#a)">
|
|
286
|
-
<path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M11 5h6M7 19h6m1-14-4 14" class="Vector"/>
|
|
287
|
-
</g>
|
|
288
|
-
<defs>
|
|
289
|
-
<clipPath id="a" class="a">
|
|
290
|
-
<path fill="#fff" d="M0 0h24v24H0z"/>
|
|
291
|
-
</clipPath>
|
|
292
|
-
</defs>
|
|
293
|
-
</svg>
|
|
294
|
-
`,label:"orxata.richText.italic",schema:{name:"italic"},apply:e=>e.toggleItalic()},underline:{icon:`<svg width="1.2em" height="1.2em" stroke-color="currentColor" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24">
|
|
295
|
-
<g class="icon-underline">
|
|
296
|
-
<path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M7 5v5a5 5 0 1 0 10 0V5M5 19h14" class="Vector"/>
|
|
297
|
-
</g>
|
|
298
|
-
</svg>
|
|
299
|
-
`,label:"orxata.richText.underline",schema:{name:"underline"},apply:e=>e.toggleUnderline()},strike:{icon:`<svg width="1.2em" height="1.2em" stroke-color="currentColor" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24">
|
|
300
|
-
<g class="icon-strikethrough" clip-path="url(#a)">
|
|
301
|
-
<path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M5 12h14m-3-5.5c-.227-.441-.746-.83-1.473-1.102-.728-.273-1.619-.413-2.527-.399h-1a3.5 3.5 0 1 0 0 7h2a3.5 3.5 0 0 1 0 7h-1.5c-.908.014-1.8-.126-2.527-.399-.727-.273-1.246-.66-1.473-1.101" class="Vector"/>
|
|
302
|
-
</g>
|
|
303
|
-
<defs>
|
|
304
|
-
<clipPath id="a" class="a">
|
|
305
|
-
<path fill="#fff" d="M0 0h24v24H0z"/>
|
|
306
|
-
</clipPath>
|
|
307
|
-
</defs>
|
|
308
|
-
</svg>
|
|
309
|
-
`,label:"orxata.richText.strike",schema:{name:"strike"},apply:e=>e.toggleStrike()},code:{icon:`<svg width="1.2em" height="1.2em" stroke-color="currentColor" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24">
|
|
310
|
-
<g class="icon-code">
|
|
311
|
-
<path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="m7 8-4 4 4 4m10-8 4 4-4 4M14 4l-4 16" class="Vector"/>
|
|
312
|
-
</g>
|
|
313
|
-
</svg>
|
|
314
|
-
`,label:"orxata.richText.code",schema:{name:"code"},apply:e=>e.toggleCode()},heading1:{icon:`<svg width="1.2em" height="1.2em" stroke-color="currentColor" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24">
|
|
315
|
-
<g class="icon-h1" clip-path="url(#a)">
|
|
316
|
-
<path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M19 18v-8l-2 2M4 6v12m8-12v12m-1 0h2M3 18h2m-1-6h8M3 6h2m6 0h2" class="Vector"/>
|
|
317
|
-
</g>
|
|
318
|
-
<defs>
|
|
319
|
-
<clipPath id="a" class="a">
|
|
320
|
-
<path fill="#fff" d="M0 0h24v24H0z"/>
|
|
321
|
-
</clipPath>
|
|
322
|
-
</defs>
|
|
323
|
-
</svg>
|
|
324
|
-
`,label:"orxata.richText.heading1",schema:{name:"heading",attrs:{level:1}},apply:e=>e.toggleHeading({level:1})},heading2:{icon:`<svg width="1.2em" height="1.2em" stroke-color="currentColor" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24">
|
|
325
|
-
<g class="icon-h2" clip-path="url(#a)">
|
|
326
|
-
<path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M17 12a2 2 0 0 1 4 0c0 .591-.417 1.318-.816 1.858L17 18.001h4M4 6v12m8-12v12m-1 0h2M3 18h2m-1-6h8M3 6h2m6 0h2" class="Vector"/>
|
|
327
|
-
</g>
|
|
328
|
-
<defs>
|
|
329
|
-
<clipPath id="a" class="a">
|
|
330
|
-
<path fill="#fff" d="M0 0h24v24H0z"/>
|
|
331
|
-
</clipPath>
|
|
332
|
-
</defs>
|
|
333
|
-
</svg>
|
|
334
|
-
`,label:"orxata.richText.heading2",schema:{name:"heading",attrs:{level:2}},apply:e=>e.toggleHeading({level:2})},heading3:{icon:`<svg width="1.2em" height="1.2em" stroke-color="currentColor" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24">
|
|
335
|
-
<g class="icon-h3" clip-path="url(#a)">
|
|
336
|
-
<path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M19 14a2 2 0 1 0-2-2m0 4a2 2 0 1 0 2-2M4 6v12m8-12v12m-1 0h2M3 18h2m-1-6h8M3 6h2m6 0h2" class="Vector"/>
|
|
337
|
-
</g>
|
|
338
|
-
<defs>
|
|
339
|
-
<clipPath id="a" class="a">
|
|
340
|
-
<path fill="#fff" d="M0 0h24v24H0z"/>
|
|
341
|
-
</clipPath>
|
|
342
|
-
</defs>
|
|
343
|
-
</svg>
|
|
344
|
-
`,label:"orxata.richText.heading3",schema:{name:"heading",attrs:{level:3}},apply:e=>e.toggleHeading({level:3})},bulletList:{icon:`<svg width="1.2em" height="1.2em" stroke-color="currentColor" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24">
|
|
345
|
-
<g class="icon-list">
|
|
346
|
-
<path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M9 6h11M9 12h11M9 18h11M5 6v.01M5 12v.01M5 18v.01" class="Vector"/>
|
|
347
|
-
</g>
|
|
348
|
-
</svg>
|
|
349
|
-
`,label:"orxata.richText.bulletList",schema:{name:"bulletList"},apply:e=>e.toggleBulletList()},orderedList:{icon:`<svg width="1.2em" height="1.2em" stroke-color="currentColor" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24">
|
|
350
|
-
<g class="icon-list-numbers">
|
|
351
|
-
<path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M11 6h9m-9 6h9m-8 6h8M4 16a2 2 0 0 1 4 0c0 .591-.5 1-1 1.5L4 20h4M6 10V4L4 6" class="Vector"/>
|
|
352
|
-
</g>
|
|
353
|
-
</svg>
|
|
354
|
-
`,label:"orxata.richText.orderedList",schema:{name:"orderedList"},apply:e=>e.toggleOrderedList()},blockquote:{icon:`<svg width="1.2em" height="1.2em" stroke-color="currentColor" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24">
|
|
355
|
-
<g class="icon-quotes">
|
|
356
|
-
<path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 12c-1.333-1.854-1.333-4.146 0-6m4 6c-1.333-1.854-1.333-4.146 0-6m8 12c1.333-1.854 1.333-4.146 0-6m4 6c1.333-1.854 1.333-4.146 0-6" class="Vector"/>
|
|
357
|
-
</g>
|
|
358
|
-
</svg>
|
|
359
|
-
`,label:"orxata.richText.blockquote",schema:{name:"blockquote"},apply:e=>e.toggleBlockquote()}},Lc=Object.keys(Js),Sa=e=>typeof e.toggle=="function",GB=()=>Object.fromEntries(Lc.map(e=>[e,{active:!1,enabled:!1,supported:!0}])),jB=e=>Object.fromEntries(Lc.map(t=>{var o;return[t,{active:e.isActive(t),enabled:e.can(t),supported:((o=e.supports)==null?void 0:o.call(e,t))??!0}]})),UB=(e,t)=>t in e.schema.nodes||t in e.schema.marks,qB=e=>Object.fromEntries(Lc.map(t=>{const o=Js[t];return UB(e,o.schema.name)?[t,{active:e.isActive(o.schema.name,o.schema.attrs),enabled:o.apply(e.can().chain().focus()).run(),supported:!0}]:[t,{active:!1,enabled:!1,supported:!1}]})),YB=(e,t)=>e?Sa(e)?jB(e):qB(e):GB(),zP=e=>{const[t,o]=h.useState(0);h.useEffect(()=>{if(!e||Sa(e))return;const r=()=>o(a=>a+1);return e.on("transaction",r),()=>{e.off("transaction",r)}},[e]);const n=h.useMemo(()=>YB(e),[e,t]);return h.useMemo(()=>({toggle:r=>{if(e&&n[r].supported){if(Sa(e)){e.toggle(r);return}Js[r].apply(e.chain().focus()).run()}},isActive:r=>n[r].active,can:r=>n[r].enabled,supports:r=>n[r].supported}),[e,n])},BP=h.createContext(void 0),KB="[OxRichTextToolbar] No editor found. A toolbar and its buttons read the editor from the surrounding <OxRichTextEditor>, so they have to be inside one — a toolbar rendered beside it has nothing to drive.",Qh=()=>{const e=h.useContext(BP);if(!e)throw new Error(KB);return e},HP=h.forwardRef(({className:e,editor:t,children:o,...n},r)=>{const a=Es(),s=t??void 0,i=zP(s),l=h.useMemo(()=>!s||Sa(s)?void 0:s,[s]),c=!s||!Sa(s),[d,f]=h.useState(null),[p,g]=h.useState({});return h.useEffect(()=>{let x=!0;return import("@tiptap/react").then(m=>{x&&f(()=>m.EditorContent)},()=>{x&&console.error(RB("@tiptap/react"))}),()=>{x=!1}},[]),h.useEffect(()=>{},[]),h.useEffect(()=>{},[l,p]),u.jsx(BP.Provider,{value:i,children:u.jsxs("div",{ref:r,role:"group","data-slot":"controller",className:$(me(LP,"ox-rich-text-editor"),e),...a,...n,children:[o,c&&u.jsx(zf,{className:me(LP,"ox-rich-text-editor-surface"),children:d&&l&&u.jsx(d,{editor:l})})]})})});HP.displayName="OxRichTextEditor";var XB=Object.defineProperty,Pa=(e,t)=>XB(e,"name",{value:t,configurable:!0}),VP=!!(typeof window<"u"&&window.document&&window.document.createElement);function yr(e,t,{checkForDefaultPrevented:o=!0}={}){return Pa(function(r){if(e==null||e(r),o===!1||!r||!r.defaultPrevented)return t==null?void 0:t(r)},"handleEvent")}Pa(yr,"composeEventHandlers");function ZB(e){var t;if(!VP)throw new Error("Cannot access window outside of the DOM");return((t=e==null?void 0:e.ownerDocument)==null?void 0:t.defaultView)??window}Pa(ZB,"getOwnerWindow");function eg(e){if(!VP)throw new Error("Cannot access document outside of the DOM");return(e==null?void 0:e.ownerDocument)??document}Pa(eg,"getOwnerDocument");function WP(e,t=!1){const{activeElement:o}=eg(e);if(!(o!=null&&o.nodeName))return null;if(RP(o)&&o.contentDocument)return WP(o.contentDocument.body,t);if(t){const n=o.getAttribute("aria-activedescendant");if(n){const r=eg(o).getElementById(n);if(r)return r}}return o}Pa(WP,"getActiveElement");function RP(e){return e.tagName==="IFRAME"}Pa(RP,"isFrame");var JB=Object.defineProperty,Qt=(e,t)=>JB(e,"name",{value:t,configurable:!0});function QB(e,t){const o=v.createContext(t);o.displayName=e+"Context";const n=Qt(a=>{const{children:s,...i}=a,l=v.useMemo(()=>i,Object.values(i));return u.jsx(o.Provider,{value:l,children:s})},"Provider");n.displayName=e+"Provider";function r(a,s={}){const{optional:i=!1}=s,l=v.useContext(o);if(l)return l;if(t!==void 0)return t;if(!i)throw new Error(`\`${a}\` must be used within \`${e}\``)}return Qt(r,"useContext"),[n,r]}Qt(QB,"createContext");function Ta(e,t=[]){let o=[];function n(a,s){const i=v.createContext(s);i.displayName=a+"Context";const l=o.length;o=[...o,s];const c=Qt(f=>{var y;const{scope:p,children:g,...x}=f,m=((y=p==null?void 0:p[e])==null?void 0:y[l])||i,b=v.useMemo(()=>x,Object.values(x));return u.jsx(m.Provider,{value:b,children:g})},"Provider");c.displayName=a+"Provider";function d(f,p,g={}){var y;const{optional:x=!1}=g,m=((y=p==null?void 0:p[e])==null?void 0:y[l])||i,b=v.useContext(m);if(b)return b;if(s!==void 0)return s;if(!x)throw new Error(`\`${f}\` must be used within \`${a}\``)}return Qt(d,"useContext"),[c,d]}Qt(n,"createContext");const r=Qt(()=>{const a=o.map(s=>v.createContext(s));return Qt(function(i){const l=(i==null?void 0:i[e])||a;return v.useMemo(()=>({[`__scope${e}`]:{...i,[e]:l}}),[i,l])},"useScope")},"createScope");return r.scopeName=e,[n,GP(r,...t)]}Qt(Ta,"createContextScope");function GP(...e){const t=e[0];if(e.length===1)return t;const o=Qt(()=>{const n=e.map(r=>({useScope:r(),scopeName:r.scopeName}));return Qt(function(a){const s=n.reduce((i,{useScope:l,scopeName:c})=>{const f=l(a)[`__scope${c}`];return{...i,...f}},{});return v.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])},"useComposedScopes")},"createScope");return o.scopeName=t.scopeName,o}Qt(GP,"composeContextScopes");var eH=Object.defineProperty,Ht=(e,t)=>eH(e,"name",{value:t,configurable:!0});function ka(e){const t=v.forwardRef((o,n)=>{let{children:r,...a}=o,s=null,i=!1;const l=[];r=XP(r),v.Children.forEach(r,p=>{var g;if(YP(p)){i=!0;const x=p;let m="child"in x.props?x.props.child:x.props.children;for(;tg(m)&&typeof zc=="function";)m=zc(m._payload);s=oH(x,m),l.push((g=s==null?void 0:s.props)==null?void 0:g.children)}else l.push(p)}),s?s=v.cloneElement(s,void 0,l):!i&&v.Children.count(r)===1&&v.isValidElement(r)&&(s=r);const c=s?qP(s):void 0,d=he(n,c);if(!s){if(r||r===0)throw new Error(i?aH(e):rH(e));return r}const f=UP(a,s.props??{});return s.type!==v.Fragment&&(f.ref=n?d:c),v.cloneElement(s,f)});return t.displayName=`${e}.Slot`,t}Ht(ka,"createSlot");var jP=Symbol.for("radix.slottable");function tH(e){const t=Ht(o=>"child"in o?o.children(o.child):o.children,"Slottable");return t.displayName=`${e}.Slottable`,t.__radixId=jP,t}Ht(tH,"createSlottable");var oH=Ht((e,t)=>"child"in e.props?v.isValidElement(t)?v.cloneElement(t,void 0,e.props.children(t.props.children)):null:v.isValidElement(t)?t:null,"getSlottableElementFromSlottable");function UP(e,t){const o={...t};for(const n in t){const r=e[n],a=t[n];/^on[A-Z]/.test(n)?r&&a?o[n]=(...i)=>{const l=a(...i);return r(...i),l}:r&&(o[n]=r):n==="style"?o[n]={...r,...a}:n==="className"?o[n]=[r,a].filter(Boolean).join(" "):n==="aria-describedby"&&(o[n]=ZP(a,r))}return{...e,...o}}Ht(UP,"mergeProps");function qP(e){var n,r;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,o=t&&"isReactWarning"in t&&t.isReactWarning;return o?e.ref:(t=(r=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:r.get,o=t&&"isReactWarning"in t&&t.isReactWarning,o?e.props.ref:e.props.ref||e.ref)}Ht(qP,"getElementRef");function YP(e){return v.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===jP}Ht(YP,"isSlottable");var nH=Symbol.for("react.lazy");function tg(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===nH&&"_payload"in e&&KP(e._payload)}Ht(tg,"isLazyComponent");function KP(e){return typeof e=="object"&&e!==null&&"then"in e}Ht(KP,"isPromiseLike");function XP(e){let t=e;for(;tg(t)&&typeof zc=="function";)t=zc(t._payload);return t}Ht(XP,"useUnwrappedLazy");function ZP(...e){const t=new Set;for(const o of e)if(typeof o=="string")for(const n of String(o).trim().split(/\s+/))n&&t.add(n);return t.size>0?Array.from(t).join(" "):void 0}Ht(ZP,"concatAriaDescribedby");var rH=Ht(e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,"createSlotError"),aH=Ht(e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,"createSlottableError"),zc=v[" use ".trim().toString()],sH=Object.defineProperty,rt=(e,t)=>sH(e,"name",{value:t,configurable:!0});function JP(e){const t=e+"CollectionProvider",[o,n]=Ta(t),[r,a]=o(t,{collectionRef:{current:null},itemMap:new Map}),s=rt(m=>{const{scope:b,children:y}=m,C=v.useRef(null),w=v.useRef(new Map).current;return u.jsx(r,{scope:b,itemMap:w,collectionRef:C,children:y})},"CollectionProvider");s.displayName=t;const i=e+"CollectionSlot",l=ka(i),c=v.forwardRef((m,b)=>{const{scope:y,children:C}=m,w=a(i,y),P=he(b,w.collectionRef);return u.jsx(l,{ref:P,children:C})});c.displayName=i;const d=e+"CollectionItemSlot",f="data-radix-collection-item",p=ka(d),g=v.forwardRef((m,b)=>{const{scope:y,children:C,...w}=m,P=v.useRef(null),S=he(b,P),_=a(d,y);return v.useEffect(()=>(_.itemMap.set(P,{ref:P,...w}),()=>void _.itemMap.delete(P))),u.jsx(p,{[f]:"",ref:S,children:C})});g.displayName=d;function x(m){const b=a(e+"CollectionConsumer",m);return v.useCallback(()=>{const C=b.collectionRef.current;if(!C)return[];const w=Array.from(C.querySelectorAll(`[${f}]`));return Array.from(b.itemMap.values()).sort((_,T)=>w.indexOf(_.ref.current)-w.indexOf(T.ref.current))},[b.collectionRef,b.itemMap])}return rt(x,"useCollection"),[{Provider:s,Slot:c,ItemSlot:g},x,n]}rt(JP,"createCollection");var QP=new WeakMap,Bc=(Gt=class extends Map{constructor(o){super(o);Cu(this,Xe);Sr(this,Xe,[...super.keys()]),QP.set(this,!0)}set(o,n){return QP.get(this)&&!this.has(o)&&pe(this,Xe).push(o),super.set(o,n),this}insert(o,n,r){const a=this.has(n),s=a?this.size:this.size+1,i=og(o),l=i>=0?Math.min(i,s-1):Math.max(s+i,0);if(a?pe(this,Xe).indexOf(n)===l:l===this.size)return this.set(n,r),this;const c=pe(this,Xe).filter(f=>f!==n);c.splice(l,0,n);const d=c.map(f=>[f,f===n?r:this.get(f)]);this.clear();for(const[f,p]of d)this.set(f,p);return this}with(o,n,r){const a=new Gt(this);return a.insert(o,n,r),a}before(o){const n=pe(this,Xe).indexOf(o)-1;if(!(n<0))return this.entryAt(n)}setBefore(o,n,r){const a=pe(this,Xe).indexOf(o);if(a===-1)return this;const s=pe(this,Xe).indexOf(n),i=s!==-1&&s<a?a-1:a;return this.insert(i,n,r)}after(o){let n=pe(this,Xe).indexOf(o);if(n=n===-1||n===this.size-1?-1:n+1,n!==-1)return this.entryAt(n)}setAfter(o,n,r){const a=pe(this,Xe).indexOf(o);if(a===-1)return this;const s=pe(this,Xe).indexOf(n),i=s!==-1&&s<=a?a:a+1;return this.insert(i,n,r)}first(){return this.entryAt(0)}last(){return this.entryAt(-1)}clear(){return Sr(this,Xe,[]),super.clear()}delete(o){const n=super.delete(o);return n&&pe(this,Xe).splice(pe(this,Xe).indexOf(o),1),n}deleteAt(o){const n=this.keyAt(o);return n!==void 0?this.delete(n):!1}at(o){const n=Hc(pe(this,Xe),o);if(n!==void 0)return this.get(n)}entryAt(o){const n=Hc(pe(this,Xe),o);if(n!==void 0)return[n,this.get(n)]}indexOf(o){return pe(this,Xe).indexOf(o)}keyAt(o){return Hc(pe(this,Xe),o)}from(o,n){const r=this.indexOf(o);if(r===-1)return;let a=r+n;return a<0&&(a=0),a>=this.size&&(a=this.size-1),this.at(a)}keyFrom(o,n){const r=this.indexOf(o);if(r===-1)return;let a=r+n;return a<0&&(a=0),a>=this.size&&(a=this.size-1),this.keyAt(a)}find(o,n){let r=0;for(const a of this){if(Reflect.apply(o,n,[a,r,this]))return a;r++}}findIndex(o,n){let r=0;for(const a of this){if(Reflect.apply(o,n,[a,r,this]))return r;r++}return-1}filter(o,n){const r=[];let a=0;for(const s of this)Reflect.apply(o,n,[s,a,this])&&r.push(s),a++;return new Gt(r)}map(o,n){const r=[];let a=0;for(const s of this)r.push([s[0],Reflect.apply(o,n,[s,a,this])]),a++;return new Gt(r)}reduce(...o){const[n,r]=o,a=o.length>1;if(!a&&this.size===0)throw new TypeError("Reduce of empty OrderedDict with no initial value");let s=0,i=r;for(const l of this)s===0&&!a?i=l:i=Reflect.apply(n,this,[i,l,s,this]),s++;return i}reduceRight(...o){const[n,r]=o,a=o.length>1;if(!a&&this.size===0)throw new TypeError("Reduce of empty OrderedDict with no initial value");let s=r;for(let i=this.size-1;i>=0;i--){const l=this.entryAt(i);i===this.size-1&&!a?s=l:s=Reflect.apply(n,this,[s,l,i,this])}return s}sort(o){if(typeof o!="function")throw new TypeError("OrderedDict.sort requires a compare function");const n=[...this.entries()].sort(o);this.clear();for(const[r,a]of n)this.set(r,a);return this}toSorted(o){if(typeof o!="function")throw new TypeError("OrderedDict.toSorted requires a compare function");const n=[...this.entries()].sort(o);return new Gt(n)}toReversed(){const o=new Gt;for(let n=this.size-1;n>=0;n--){const r=this.keyAt(n),a=this.get(r);o.set(r,a)}return o}toSpliced(...o){const n=[...this.entries()];return n.splice(...o),new Gt(n)}slice(o,n){const r=new Gt;for(const a of pe(this,Xe).slice(o,n))r.set(a,this.get(a));return r}every(o,n){let r=0;for(const a of this){if(!Reflect.apply(o,n,[a,r,this]))return!1;r++}return!0}some(o,n){let r=0;for(const a of this){if(Reflect.apply(o,n,[a,r,this]))return!0;r++}return!1}},Xe=new WeakMap,rt(Gt,"OrderedDict"),Gt);function Hc(e,t){if("at"in Array.prototype)return Array.prototype.at.call(e,t);const o=eT(e,t);return o===-1?void 0:e[o]}rt(Hc,"at");function eT(e,t){const o=e.length,n=og(t),r=n>=0?n:o+n;return r<0||r>=o?-1:r}rt(eT,"toSafeIndex");function og(e){return e!==e||e===0?0:Math.trunc(e)}rt(og,"toSafeInteger");function iH(e){const t=e+"CollectionProvider",[o,n]=Ta(t),[r,a]=o(t);r.displayName=e+"CollectionStableContextProvider";const[s,i]=o(t);s.displayName=e+"CollectionStatefulContextProvider";const l=rt(({state:_,...T})=>_?u.jsx(d,{...T,state:_}):u.jsx(c,{...T}),"CollectionProvider");l.displayName=t;const c=rt(_=>{const T=C();return u.jsx(d,{..._,state:T})},"CollectionInit");c.displayName=e+"CollectionInit";const d=rt(_=>{const{scope:T,children:k,state:E}=_,D=v.useRef(null),[O,N]=v.useState(null),z=he(D,N),[B,G]=E,R=v.useRef(new Bc),A=v.useCallback(()=>{const F=R.current;return nT(F)||F.sort(Vc),F},[]);return v.useEffect(()=>{if(!O)return;const F=rT(()=>{G(V=>{const M=V.toSorted(Vc);return M.some(([H],L)=>V.keyAt(L)!==H)?M:V})});return F.observe(O,{childList:!0,subtree:!0}),()=>{F.disconnect()}},[O,G]),u.jsx(r,{scope:T,collectionElementRef:z,collectionElementRefObject:D,getCollection:A,setCollection:G,registryRef:R,children:u.jsx(s,{scope:T,collectionElement:O,collection:B,children:k})})},"CollectionProviderImpl");d.displayName=e+"CollectionProviderImpl";const f=e+"CollectionSlot",p=ka(f),g=v.forwardRef((_,T)=>{const{scope:k,children:E}=_,D=a(f,k),O=he(T,D.collectionElementRef);return u.jsx(p,{ref:O,children:E})});g.displayName=f;const x=e+"CollectionItemSlot",m="data-radix-collection-item",b=ka(x),y=v.forwardRef((_,T)=>{const{scope:k,children:E,...D}=_,O=v.useRef(null),N=a(x,k),{setCollection:z,registryRef:B}=N,G=v.useRef(D);tT(G.current,D)||(G.current=D);const R=G.current,A=v.useCallback(M=>{const Y=B.current;M?Y.set(M,{...G.current,element:M}):O.current&&Y.delete(O.current)},[B]),F=he(T,A,O);He(()=>{const M=O.current,Y=B.current;M&&Y.has(M)&&Y.set(M,{...R,element:M})},[R,B]);const V=v.useRef(null);return v.useEffect(()=>{const M=O.current,Y=V.current;((Y==null?void 0:Y.element)??null)===M&&(!M||(Y==null?void 0:Y.itemData)===R)||(V.current=M?{element:M,itemData:R}:null,z(H=>{const L=new Bc(H);return Y&&Y.element!==M&&L.delete(Y.element),M&&L.set(M,{...R,element:M}),L.sort(Vc)}))}),v.useEffect(()=>()=>{const M=V.current;V.current=null,M&&z(Y=>{if(!Y.has(M.element))return Y;const H=new Bc(Y);return H.delete(M.element),H})},[z]),u.jsx(b,{[m]:"",ref:F,children:E})});y.displayName=x;function C(){return v.useState(new Bc)}rt(C,"useInitCollection");function w(_){const{collection:T}=i(e+"CollectionConsumer",_);return T}rt(w,"useCollection");function P(_){const{getCollection:T}=a(e+"CollectionConsumer",_);return T}return rt(P,"useGetCollection"),[{Provider:l,Slot:g,ItemSlot:y},{createCollectionScope:n,useCollection:w,useGetCollection:P,useInitCollection:C}]}rt(iH,"createCollection");function tT(e,t){if(e===t)return!0;if(typeof e!="object"||typeof t!="object"||e==null||t==null)return!1;const o=Object.keys(e),n=Object.keys(t);if(o.length!==n.length)return!1;for(const r of o)if(!Object.prototype.hasOwnProperty.call(t,r)||e[r]!==t[r])return!1;return!0}rt(tT,"shallowEqual");function oT(e,t){return!!(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING)}rt(oT,"isElementPreceding");function nT(e){let t;for(const o of e.keys()){if(t){const n=t.compareDocumentPosition(o);if(!(n&Node.DOCUMENT_POSITION_DISCONNECTED)&&n&Node.DOCUMENT_POSITION_PRECEDING)return!1}t=o}return!0}rt(nT,"isInDocumentOrder");function Vc(e,t){return!e[1].element||!t[1].element?0:oT(e[1].element,t[1].element)?-1:1}rt(Vc,"sortByDocumentPosition");function rT(e){return new MutationObserver(o=>{for(const n of o)if(n.type==="childList"){e();return}})}rt(rT,"getChildListObserver");var lH=Object.defineProperty,cH=(e,t)=>lH(e,"name",{value:t,configurable:!0}),uH=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Wc=uH.reduce((e,t)=>{const o=ka(`Primitive.${t}`),n=v.forwardRef((r,a)=>{const{asChild:s,...i}=r,l=s?o:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),u.jsx(l,{...i,ref:a})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function dH(e,t){e&&no.flushSync(()=>e.dispatchEvent(t))}cH(dH,"dispatchDiscreteCustomEvent");var fH=Object.defineProperty,pH=(e,t)=>fH(e,"name",{value:t,configurable:!0}),aT=v[" useInsertionEffect ".trim().toString()];function sT(e){const t=v.useRef(e);return typeof aT=="function"?aT(()=>{t.current=e}):He(()=>{t.current=e}),v.useMemo(()=>((...o)=>{var n;return(n=t.current)==null?void 0:n.call(t,...o)}),[])}pH(sT,"useCallbackRef");var hH=Object.defineProperty,Qs=(e,t)=>hH(e,"name",{value:t,configurable:!0}),gH=v[" useInsertionEffect ".trim().toString()]||He;function iT({prop:e,defaultProp:t,onChange:o=Qs(()=>{},"onChange"),caller:n}){const[r,a,s]=lT({defaultProp:t,onChange:o}),i=e!==void 0,l=i?e:r,c=v.useCallback(d=>{var f;if(i){const p=cT(d)?d(e):d;p!==e&&((f=s.current)==null||f.call(s,p))}else a(d)},[i,e,a,s]);return[l,c]}Qs(iT,"useControllableState");function lT({defaultProp:e,onChange:t}){const[o,n]=v.useState(e),r=v.useRef(o),a=v.useRef(t);return gH(()=>{a.current=t},[t]),v.useEffect(()=>{var s;r.current!==o&&((s=a.current)==null||s.call(a,o),r.current=o)},[o,r]),[o,n,a]}Qs(lT,"useUncontrolledState");function cT(e){return typeof e=="function"}Qs(cT,"isFunction");var uT=Symbol("RADIX:SYNC_STATE");function mH(e,t,o,n){const{prop:r,defaultProp:a,onChange:s,caller:i}=t,l=r!==void 0,c=td(s),d=[{...o,state:a}];n&&d.push(n);const[f,p]=v.useReducer((b,y)=>{if(y.type===uT)return{...b,state:y.state};const C=e(b,y);return l&&!Object.is(C.state,b.state)&&c(C.state),C},...d),g=f.state,x=v.useRef(g);v.useEffect(()=>{x.current!==g&&(x.current=g,l||c(g))},[g,x,l]);const m=v.useMemo(()=>r!==void 0?{...f,state:r}:f,[f,r]);return v.useEffect(()=>{l&&!Object.is(r,f.state)&&p({type:uT,state:r})},[r,f.state,l]),[m,p]}Qs(mH,"useControllableStateReducer");var xH=Object.defineProperty,bH=(e,t)=>xH(e,"name",{value:t,configurable:!0}),vH={LTR:"ltr"},yH=v.createContext(void 0);function ng(e){const t=v.useContext(yH);return e||t||vH.LTR}bH(ng,"useDirection");var wH=Object.defineProperty,wr=(e,t)=>wH(e,"name",{value:t,configurable:!0}),rg="rovingFocusGroup.onEntryFocus",CH={bubbles:!1,cancelable:!0},Rc="RovingFocusGroup",[ag,dT,_H]=JP(Rc),[SH,Gc]=Ta(Rc,[_H]),fT={Vertical:"vertical",Horizontal:"horizontal"},PH={RTL:"rtl"},[TH,kH]=SH(Rc),EH=v.forwardRef(wr(function(t,o){return u.jsx(ag.Provider,{scope:t.__scopeRovingFocusGroup,children:u.jsx(ag.Slot,{scope:t.__scopeRovingFocusGroup,children:u.jsx(IH,{...t,ref:o})})})},"RovingFocusGroup")),IH=v.forwardRef(wr(function(t,o){const{__scopeRovingFocusGroup:n,orientation:r,loop:a=!1,dir:s,currentTabStopId:i,defaultCurrentTabStopId:l,onCurrentTabStopIdChange:c,onEntryFocus:d,preventScrollOnEntryFocus:f=!1,...p}=t,g=v.useRef(null),x=he(o,g),m=ng(s),[b,y]=iT({prop:i,defaultProp:l??null,onChange:c,caller:Rc}),[C,w]=v.useState(!1),P=sT(d),S=dT(n),_=v.useRef(!1),[T,k]=v.useState(0);return v.useEffect(()=>{const E=g.current;if(E)return E.addEventListener(rg,P),()=>E.removeEventListener(rg,P)},[P]),u.jsx(TH,{scope:n,orientation:r,dir:m,loop:a,currentTabStopId:b,onItemFocus:v.useCallback(E=>y(E),[y]),onItemShiftTab:v.useCallback(()=>w(!0),[]),onFocusableItemAdd:v.useCallback(()=>k(E=>E+1),[]),onFocusableItemRemove:v.useCallback(()=>k(E=>E-1),[]),children:u.jsx(Wc.div,{tabIndex:C||T===0?-1:0,"data-orientation":r,...p,ref:x,style:{outline:"none",...t.style},onMouseDown:yr(t.onMouseDown,()=>{_.current=!0}),onFocus:yr(t.onFocus,E=>{const D=!_.current;if(E.target===E.currentTarget&&D&&!C){const O=new CustomEvent(rg,CH);if(E.currentTarget.dispatchEvent(O),!O.defaultPrevented){const N=S().filter(A=>A.focusable),z=N.find(A=>A.active),B=N.find(A=>A.id===b),R=[z,B,...N].filter(Boolean).map(A=>A.ref.current);sg(R,f)}}_.current=!1}),onBlur:yr(t.onBlur,()=>w(!1))})})},"RovingFocusGroupImpl")),DH="RovingFocusGroupItem",MH=v.forwardRef(wr(function(t,o){const{__scopeRovingFocusGroup:n,focusable:r=!0,active:a=!1,tabStopId:s,children:i,...l}=t,c=So(),d=s||c,f=kH(DH,n),p=f.currentTabStopId===d,g=dT(n),{onFocusableItemAdd:x,onFocusableItemRemove:m,currentTabStopId:b}=f,y=L0();return He(()=>{if(!(!y||!r))return x(),()=>m()},[y,r,x,m]),v.useEffect(()=>{if(!(y||!r))return x(),()=>m()},[y,r,x,m]),u.jsx(ag.ItemSlot,{scope:n,id:d,focusable:r,active:a,children:u.jsx(Wc.span,{tabIndex:p?0:-1,"data-orientation":f.orientation,...l,ref:o,onMouseDown:yr(t.onMouseDown,C=>{r?f.onItemFocus(d):C.preventDefault()}),onFocus:yr(t.onFocus,()=>f.onItemFocus(d)),onKeyDown:yr(t.onKeyDown,C=>{if(C.key==="Tab"&&C.shiftKey){f.onItemShiftTab();return}if(C.target!==C.currentTarget)return;const w=hT(C,f.orientation,f.dir);if(w!==void 0){if(C.metaKey||C.ctrlKey||C.altKey||C.shiftKey)return;C.preventDefault();let S=g().filter(_=>_.focusable).map(_=>_.ref.current);if(w==="last")S.reverse();else if(w==="prev"||w==="next"){w==="prev"&&S.reverse();const _=S.indexOf(C.currentTarget);S=f.loop?gT(S,_+1):S.slice(_+1)}setTimeout(()=>sg(S))}}),children:typeof i=="function"?i({isCurrentTabStop:p,hasTabStop:b!=null}):i})})},"RovingFocusGroupItem")),OH={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function pT(e,t){return t!==PH.RTL?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}wr(pT,"getDirectionAwareKey");function hT(e,t,o){const n=pT(e.key,o);if(!(t===fT.Vertical&&["ArrowLeft","ArrowRight"].includes(n))&&!(t===fT.Horizontal&&["ArrowUp","ArrowDown"].includes(n)))return OH[n]}wr(hT,"getFocusIntent");function sg(e,t=!1){const o=document.activeElement;for(const n of e)if(n===o||(n.focus({preventScroll:t}),document.activeElement!==o))return}wr(sg,"focusFirst");function gT(e,t){return e.map((o,n)=>e[(t+n)%e.length])}wr(gT,"wrapArray");var ig="ToggleGroup",[mT,xT]=Ta(ig,[Gc]);Gc();var[sJ,iJ]=mT(ig),[lJ,cJ]=mT(ig),AH=Object.defineProperty,bT=(e,t)=>AH(e,"name",{value:t,configurable:!0}),vT="Toolbar",[NH,uJ]=Ta(vT,[Gc,xT]),yT=Gc();xT();var[$H,dJ]=NH(vT),FH=v.forwardRef(bT(function(t,o){const{__scopeToolbar:n,orientation:r="horizontal",dir:a,loop:s=!0,...i}=t,l=yT(n),c=ng(a);return u.jsx($H,{scope:n,orientation:r,dir:c,children:u.jsx(EH,{asChild:!0,...l,orientation:r,dir:c,loop:s,children:u.jsx(Wc.div,{role:"toolbar","aria-orientation":r,dir:c,...i,ref:o})})})},"Toolbar")),LH=v.forwardRef(bT(function(t,o){const{__scopeToolbar:n,...r}=t,a=yT(n);return u.jsx(MH,{asChild:!0,...a,focusable:!t.disabled,children:u.jsx(Wc.button,{type:"button",...r,ref:o})})},"ToolbarButton"));const zH={"ox-rich-text-toolbar":"_ox-rich-text-toolbar_3q9el_2"},wT=h.forwardRef(({className:e,children:t,...o},n)=>(Qh(),u.jsx(FH,{ref:n,className:$(me(zH,"ox-rich-text-toolbar"),e),...o,children:t})));wT.displayName="OxRichTextToolbar";const BH={"ox-rich-text-toolbar-button":"_ox-rich-text-toolbar-button_nvm64_2"},CT=h.forwardRef(({className:e,command:t,...o},n)=>{var d;const r=Qh(),a=ve(),s=Js[t],i=a(s.label),l=r.isActive(t),c=r.can(t);return((d=r.supports)==null?void 0:d.call(r,t))??!0?u.jsx(LH,{asChild:!0,disabled:!c,children:u.jsx(jt,{ref:n,type:"button",variant:"ghost",size:"xs","aria-label":i,"aria-pressed":l,"data-command":t,className:$(me(BH,"ox-rich-text-toolbar-button"),e),onClick:()=>r.toggle(t),...o,children:u.jsx(ee,{icon:s.icon})})}):null});CT.displayName="OxRichTextToolbarButton";const HH=(e,t={})=>[e.configure({heading:{levels:[1,2,3]}}),...t.Underline?[t.Underline]:[],...t.Link?[t.Link.configure({openOnClick:!1,autolink:!0})]:[]],ei={"ox-search-bar":"_ox-search-bar_1blyv_2","ox-search-bar--md":"_ox-search-bar--md_1blyv_2","ox-search-bar--sm":"_ox-search-bar--sm_1blyv_2","ox-search-bar--default":"_ox-search-bar--default_1blyv_2","ox-search-bar--ghost":"_ox-search-bar--ghost_1blyv_2","ox-search-bar-input":"_ox-search-bar-input_1blyv_2","ox-search-bar-leading":"_ox-search-bar-leading_1blyv_2","ox-search-bar-clear":"_ox-search-bar-clear_1blyv_2","ox-search-bar-clear-icon":"_ox-search-bar-clear-icon_1blyv_2"},_T=h.forwardRef(({className:e,variant:t="default",size:o="md",debounce:n=500,value:r,defaultValue:a="",onValueChange:s,onSearch:i,onChange:l,onKeyDown:c,dataTestid:d,id:f,...p},g)=>{const x=Tt(f),m=ve(),[b,y]=h.useState(a),C=r??b,w=C.length>0,P=h.useRef(null),{schedule:S,immediately:_}=Du(n,k=>i==null?void 0:i(k)),T=k=>{r===void 0&&y(k),s==null||s(k)};return u.jsxs("div",{ref:g,className:$(me(ei,ST({variant:t,size:o})),e),"data-slot":"search-bar","data-testid":d,"data-filled":w,children:[u.jsx(ee,{icon:iP,className:ei["ox-search-bar-leading"],"data-slot":"icon"}),u.jsx("input",{ref:P,...x,type:"search",className:ei["ox-search-bar-input"],"data-slot":"controller","data-testid":`${d}-input`,value:C,onChange:k=>{T(k.target.value),S(k.target.value),l==null||l(k)},onKeyDown:k=>{k.key==="Enter"&&_(C),c==null||c(k)},...p}),w?u.jsx("button",{type:"button",className:ei["ox-search-bar-clear"],"data-slot":"clear","data-testid":`${d}-clear`,"aria-label":m("orxata.searchBar.clear"),onClick:()=>{var k;T(""),_(""),(k=P.current)==null||k.focus()},children:u.jsx(ee,{icon:O2,className:ei["ox-search-bar-clear-icon"]})}):null]})});_T.displayName="OxSearchBar";const ST=Oe("ox-search-bar",{variants:{variant:{default:"ox-search-bar--default",ghost:"ox-search-bar--ghost"},size:{sm:"ox-search-bar--sm",md:"ox-search-bar--md"}},defaultVariants:{variant:"default",size:"md"}}),VH={oxSearchPanel:"_oxSearchPanel_1o373_2"},PT=h.createContext(null),WH=()=>{const e=h.useContext(PT);if(!e)throw new Error("SearchPanel parts must be used within an <OxSearchPanel>.");return e},TT=h.forwardRef(({className:e,children:t,onSelect:o,onClose:n,onKeyDown:r,dataTestid:a,...s},i)=>{const l=h.useMemo(()=>({select:c=>o==null?void 0:o(c)}),[o]);return u.jsx(PT.Provider,{value:l,children:u.jsx(Jr,{open:!0,children:u.jsx(ch,{ref:i,shouldFilter:!1,"data-slot":"search-panel","data-testid":a,onKeyDown:c=>{r==null||r(c),c.key==="Escape"&&(n==null||n())},...s,children:u.jsx(Rl,{asChild:!0,children:u.jsx(so,{floating:!0,className:$(VH.oxSearchPanel,e),children:t})})})})})});TT.displayName="OxSearchPanel";const kT=h.forwardRef(({className:e,children:t,...o},n)=>u.jsx(Kd,{ref:n,"data-slot":"search-panel-empty",className:e,...o,children:t}));kT.displayName="OxSearchPanelEmpty";const ET=h.forwardRef(({className:e,label:t,children:o,...n},r)=>u.jsx(lh,{ref:r,"data-slot":"search-panel-group",heading:t!=null?u.jsx(dl,{children:t}):void 0,className:$(e),...n,children:o}));ET.displayName="OxSearchPanelGroup";const RH={oxSearchPanelInput:"_oxSearchPanelInput_gbh6x_2"},IT=h.forwardRef(({children:e,...t},o)=>u.jsx("div",{className:RH.oxSearchPanelInput,children:u.jsx(cc,{ref:o,asChild:!0,...t,children:e})}));IT.displayName="OxSearchPanelInput";const GH={oxSearchPanelItem:"_oxSearchPanelItem_10h6p_2"},DT=h.forwardRef(({className:e,value:t,disabled:o=!1,children:n,...r},a)=>{const{select:s}=WH();return u.jsx(Os,{ref:a,asChild:!0,"data-slot":"search-panel-item",value:t,disabled:o,onSelect:s,...r,children:u.jsx(ts,{className:$(GH.oxSearchPanelItem,e),children:n})})});DT.displayName="OxSearchPanelItem";const jH=16,MT=h.forwardRef(({className:e,children:t,...o},n)=>{const r=h.useRef(null);return u.jsx(lr,{asChild:!0,"data-slot":"search-panel-list-card",side:"bottom",align:"start",sideOffset:0,collisionPadding:jH,role:"presentation","aria-labelledby":void 0,onOpenAutoFocus:a=>a.preventDefault(),onCloseAutoFocus:a=>a.preventDefault(),children:u.jsxs(so,{floating:!0,attached:!0,children:[u.jsx(uc,{ref:n,asChild:!0,"data-slot":"search-panel-list",...o,children:u.jsx(os,{ref:r,className:e,children:t})}),u.jsx(_n,{port:r,dataTestid:"search-panel-scrollbar"})]})})});MT.displayName="OxSearchPanelList";const OT=h.forwardRef(({className:e,label:t,children:o,...n},r)=>u.jsxs(kB,{ref:r,"data-slot":"select-group",className:$(e),...n,children:[t!=null?u.jsx(IB,{asChild:!0,children:u.jsx(dl,{children:t})}):null,o]}));OT.displayName="OxSelectGroup";const AT=h.forwardRef(({className:e,...t},o)=>u.jsx(LB,{ref:o,asChild:!0,"data-slot":"select-separator",...t,children:u.jsx(fl,{className:e})}));AT.displayName="OxSelectSeparator";const UH={oxTimePickerPanel:"_oxTimePickerPanel_13hbt_2"},Ea={oxTimePickerField:"_oxTimePickerField_18jbr_2",oxTimePickerSegments:"_oxTimePickerSegments_18jbr_2",oxTimePickerSegment:"_oxTimePickerSegment_18jbr_2",oxTimePickerSeparator:"_oxTimePickerSeparator_18jbr_2",oxTimePickerToggle:"_oxTimePickerToggle_18jbr_2",oxTimePickerGlyph:"_oxTimePickerGlyph_18jbr_2"};function qH(e,t){return NT(e)-NT(t)}function NT(e){return e.hour*36e5+e.minute*6e4+e.second*1e3+e.millisecond}function YH(e){let t={};for(let o in e)typeof e[o]=="number"&&(t[o]=-e[o]);return t}function KH(e,t){let o=e.copy();return t.hour!=null&&(o.hour=t.hour),t.minute!=null&&(o.minute=t.minute),t.second!=null&&(o.second=t.second),t.millisecond!=null&&(o.millisecond=t.millisecond),$T(o),o}function XH(e){e.second+=Math.floor(e.millisecond/1e3),e.millisecond=jc(e.millisecond,1e3),e.minute+=Math.floor(e.second/60),e.second=jc(e.second,60),e.hour+=Math.floor(e.minute/60),e.minute=jc(e.minute,60);let t=Math.floor(e.hour/24);return e.hour=jc(e.hour,24),t}function $T(e){e.millisecond=Math.max(0,Math.min(e.millisecond,1e3)),e.second=Math.max(0,Math.min(e.second,59)),e.minute=Math.max(0,Math.min(e.minute,59)),e.hour=Math.max(0,Math.min(e.hour,23))}function jc(e,t){let o=e%t;return o<0&&(o+=t),o}function ZH(e,t){return e.hour+=t.hours||0,e.minute+=t.minutes||0,e.second+=t.seconds||0,e.millisecond+=t.milliseconds||0,XH(e)}function FT(e,t){let o=e.copy();return ZH(o,t),o}function JH(e,t){return FT(e,YH(t))}function QH(e,t,o,n){let r=e.copy();switch(t){case"hour":{let a=e.hour,s=0,i=23;if((n==null?void 0:n.hourCycle)===12){let l=a>=12;s=l?12:0,i=l?23:11}r.hour=Uc(a,o,s,i,n==null?void 0:n.round);break}case"minute":r.minute=Uc(e.minute,o,0,59,n==null?void 0:n.round);break;case"second":r.second=Uc(e.second,o,0,59,n==null?void 0:n.round);break;case"millisecond":r.millisecond=Uc(e.millisecond,o,0,999,n==null?void 0:n.round);break;default:throw new Error("Unsupported field "+t)}return r}function Uc(e,t,o,n,r=!1){if(r){e+=Math.sign(t),e<o&&(e=n);let a=Math.abs(t);t>0?e=Math.ceil(e/a)*a:e=Math.floor(e/a)*a,e>n&&(e=o)}else e+=t,e<o?e=n-(o-e-1):e>n&&(e=o+(e-n-1));return e}function eV(e){return`${String(e.hour).padStart(2,"0")}:${String(e.minute).padStart(2,"0")}:${String(e.second).padStart(2,"0")}${e.millisecond?String(e.millisecond/1e3).slice(1):""}`}function tV(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function oV(e,t,o){tV(e,t),t.set(e,o)}var nV=new WeakMap;class ti{copy(){return new ti(this.hour,this.minute,this.second,this.millisecond)}add(t){return FT(this,t)}subtract(t){return JH(this,t)}set(t){return KH(this,t)}cycle(t,o,n){return QH(this,t,o,n)}toString(){return eV(this)}compare(t){return qH(this,t)}constructor(t=0,o=0,n=0,r=0){oV(this,nV,{writable:!0,value:void 0}),this.hour=t,this.minute=o,this.second=n,this.millisecond=r,$T(this)}}const Nn={hour:23,minute:59,second:59};function LT(e){return e==="HH:MM:SS"?["hour","minute","second"]:["hour","minute"]}function $n(e){return String(e).padStart(2,"0")}function zT(e){if(!e)return;const t=/^(\d{1,2}):(\d{1,2})(?::(\d{1,2}))?$/.exec(e.trim());if(!t)return;const[o,n,r]=[t[1],t[2],t[3]??"0"].map(Number);if(!(o>Nn.hour||n>Nn.minute||r>Nn.second))return new ti(o,n,r)}function BT(e,t){if(!e)return;const o=`${$n(e.hour)}:${$n(e.minute)}`;return t==="HH:MM:SS"?`${o}:${$n(e.second)}`:o}function rV(e,t,o){return(e??new ti(0,0,0)).set({[t]:o})}function aV(e,t=1){return Array.from({length:Math.floor(e/t)+1},(o,n)=>n*t)}const sV="--",iV=":",lV=new Set(["Enter","ArrowUp","ArrowDown","ArrowLeft","ArrowRight","Backspace"," ","a","A","p","P"]),HT=e=>!Number.isNaN(Number.parseInt(e,10)),cV=e=>lV.has(e)||HT(e),VT=e=>e==="ArrowLeft"||e==="ArrowRight",uV={hour:24,minute:59,second:59},dV={hour:"hour, ",minute:"minute, ",second:"second, "},WT=e=>Object.fromEntries(e.map(t=>[t,null])),RT=(e,t)=>Object.fromEntries(t.map(o=>[o,e[o]])),fV=(e,t)=>e===t||e!==void 0&&t!==void 0&&e.compare(t)===0;function pV(e,t,o,n){const r=Math.floor(e/10);let a=o,s=!1;if(n.hasLeftFocus&&(n.hasLeftFocus=!1,a=null),a===null)return t===0?(n.lastKeyZero=!0,{value:0,moveToNext:s}):((n.lastKeyZero||t>r)&&(s=!0),n.lastKeyZero=!1,{value:t,moveToNext:s});const i=a.toString().length,l=Number.parseInt(a.toString()+t.toString(),10);return i===2||l>e?(t>r&&(s=!0),{value:t,moveToNext:s}):{value:l,moveToNext:!0}}function hV({format:e,time:t,setTime:o,disabled:n}){const r=h.useMemo(()=>LT(e),[e]),[a,s]=h.useState(()=>t?RT(t,r):WT(r)),i=h.useRef({}),l=h.useRef({}),c=h.useRef({}),d=S=>{var _;return(_=c.current)[S]??(_[S]={hasLeftFocus:!0,lastKeyZero:!1})},f=h.useCallback(S=>{var _;return(_=l.current)[S]??(_[S]=T=>{i.current[S]=T})},[]),p=h.useMemo(()=>t??new ti(0,0,0),[t]),g=h.useRef(t);h.useEffect(()=>{const S=!fV(g.current,t);if(g.current=t,t){s(RT(t,r));return}s(_=>S&&r.every(T=>_[T]!==null)?WT(r):Object.fromEntries(r.map(T=>[T,_[T]??null])))},[t,r]);const x=h.useMemo(()=>r.flatMap((S,_)=>{const T=a[S],k={part:S,key:S,value:T==null?sV:$n(T)};return _===0?[k]:[{part:"literal",key:`literal-${S}`,value:iV},k]}),[r,a]),m=h.useCallback(S=>{var T;const _=r[r.indexOf(S)+1];_&&((T=i.current[_])==null||T.focus())},[r]),b=h.useCallback((S,_,T)=>{const k={...a,[S]:_};if(s(k),r.every(E=>k[E]!==null)){let E=p;for(const D of r)E=E.set({[D]:k[D]});o(E)}else T&&o(void 0)},[r,p,o,a]),y=h.useCallback((S,_)=>{const T=a[S]??null;return T===null?S==="hour"?p.hour:_?0:Nn[S]:p.set({[S]:T}).cycle(S,_?1:-1,S==="hour"?{hourCycle:24}:void 0)[S]},[p,a]),C=h.useCallback((S,_)=>{if(_.key!=="Tab"&&_.preventDefault(),n||!cV(_.key)||VT(_.key))return;const T=a[S]??null;if(_.key==="ArrowUp"||_.key==="ArrowDown"){b(S,y(S,_.key==="ArrowUp"),!1);return}if(HT(_.key)){const{value:k,moveToNext:E}=pV(uV[S],Number.parseInt(_.key,10),T,d(S));b(S,k,!1),E&&m(S);return}if(_.key==="Backspace"){if(d(S).hasLeftFocus=!1,T===null)return;const k=T.toString();k.length===1?b(S,null,!0):b(S,Number.parseInt(k.slice(0,-1),10),!1)}},[b,n,m,y,a]),w=h.useCallback(S=>{var k;if(!VT(S.key))return;const _=r.find(E=>i.current[E]===S.target);if(_===void 0)return;const T=S.key==="ArrowRight"?1:-1;(k=i.current[r[r.indexOf(_)+T]])==null||k.focus()},[r]),P=h.useCallback(S=>{const _=a[S]??null,T=_===null,k=T?p[S]:_;return{ref:f(S),role:"spinbutton",contentEditable:!n,suppressContentEditableWarning:!0,tabIndex:n?void 0:0,spellCheck:!1,inputMode:"numeric",autoCorrect:"off",enterKeyHint:"next",style:{caretColor:"transparent"},"aria-label":dV[S],"aria-valuemin":0,"aria-valuemax":Nn[S],"aria-valuenow":k,"aria-valuetext":T?"Empty":`${k}`,"aria-disabled":n?!0:void 0,"data-placeholder":T?"":void 0,"data-part":S,onKeyDown:E=>C(S,E),onMouseDown:E=>{n&&E.preventDefault()},onBlur:()=>{d(S).hasLeftFocus=!0}}},[n,C,p,f,a]);return{segments:x,segmentProps:P,onKeyDown:w}}const GT=h.createContext(null);function qc(){const e=h.useContext(GT);if(!e)throw new Error("[OxTimePicker] This part must be used inside <OxTimePicker>.");return e}const lg=h.forwardRef(({className:e,onKeyDown:t,...o},n)=>{const r=ve(),a=qc(),s=Es(),{segments:i,segmentProps:l,onKeyDown:c}=hV({format:a.format,time:a.time,setTime:a.setTime,disabled:a.disabled});return u.jsxs("div",{ref:n,...s,"data-slot":"controller",role:"group","aria-disabled":a.disabled?!0:void 0,"data-disabled":a.disabled?"":void 0,"data-testid":`${a.dataTestid}-field`,"data-placeholder":a.time?void 0:"",className:$(Ea.oxTimePickerField,e),onKeyDown:d=>{c(d),t==null||t(d)},...o,children:[u.jsx("span",{className:Ea.oxTimePickerSegments,children:i.map(d=>d.part==="literal"?u.jsx("span",{className:Ea.oxTimePickerSeparator,"aria-hidden":"true",children:d.value},d.key):u.jsx("span",{className:Ea.oxTimePickerSegment,...l(d.part),children:d.value},d.key))}),u.jsx(Qr,{className:Ea.oxTimePickerToggle,disabled:a.disabled||void 0,"aria-label":r("orxata.timePicker.open"),"data-testid":`${a.dataTestid}-toggle`,children:u.jsx(ee,{"data-slot":"icon",icon:Ff,className:Ea.oxTimePickerGlyph,"aria-hidden":"true"})})]})});lg.displayName="OxTimePickerField";const cg={oxTimePickerWheel:"_oxTimePickerWheel_160kp_2",oxTimePickerWheelBand:"_oxTimePickerWheelBand_160kp_2",oxTimePickerWheelSeparator:"_oxTimePickerWheelSeparator_160kp_2"},ug={oxTimePickerWheelColumn:"_oxTimePickerWheelColumn_9bc7l_2",oxTimePickerWheelRows:"_oxTimePickerWheelRows_9bc7l_2",oxTimePickerWheelRow:"_oxTimePickerWheelRow_9bc7l_2"},Yc=40,jT=1,gV=140,mV=3;function xV(e){const t=h.useRef(null),o=h.useRef(0),[n,r]=h.useState(0),a=h.useRef(void 0),s=h.useRef(!1),i=h.useRef(!1),l=h.useRef(e);l.current=e;const c=h.useMemo(()=>{const E=[];for(let D=0;D<jT*2+1;D++)E.push(...e.values);return E},[e.values]),d=h.useRef(c);d.current=c;const f=h.useCallback(()=>jT*l.current.values.length,[]),p=h.useCallback(()=>Math.round(o.current/Yc),[]),g=h.useCallback(E=>Math.abs(E-n/Yc),[n]),x=h.useCallback(E=>Math.max(0,Math.min(d.current.length-1,E)),[]),m=h.useCallback((E,D)=>{const O=t.current,N=E*Yc;o.current=N,r(N),O&&(D&&O.setAttribute("data-instant",""),O.scrollTop=N,D&&requestAnimationFrame(()=>O.removeAttribute("data-instant")))},[]),b=h.useCallback(()=>{const E=l.current.values.length,D=f(),O=p();if(O>=D&&O<D+E)return;const N=O<D?E:-E;m(O+N,!0)},[p,f,m]),y=h.useCallback(E=>{const D=d.current[x(E)];D!==void 0&&D!==l.current.value&&l.current.onPick(D)},[x]),C=h.useCallback(()=>{if(s.current)return;const E=x(p());m(E,!1),y(E),b()},[p,x,y,b,m]),w=h.useCallback(E=>{a.current&&clearTimeout(a.current),a.current=setTimeout(E,gV)},[]),P=h.useCallback(E=>{l.current.disabled||i.current||(m(x(E),!1),y(E),b())},[x,y,b,m]),S=h.useCallback(()=>{const{value:E,values:D}=l.current;if(d.current[x(p())]===E)return;const O=E===void 0?0:D.indexOf(E);m(f()+Math.max(0,O),!0)},[p,x,f,m]),_=h.useCallback(()=>{t.current&&(o.current=t.current.scrollTop,r(o.current),!(s.current||o.current%Yc===0)&&w(C))},[w,C]);h.useEffect(()=>{const E=t.current;if(!E)return;const D=O=>{if(l.current.disabled)return;O.preventDefault();const N=O.deltaY>0?1:-1;m(x(p()+N),!1),w(C)};return E.addEventListener("wheel",D,{passive:!1}),()=>E.removeEventListener("wheel",D)},[p,x,w,m,C]);const T=h.useCallback(E=>{var G;if(l.current.disabled||E.button!==0)return;const D=t.current;if(!D)return;s.current=!0,i.current=!1;const O=E.clientY,N=o.current;a.current&&clearTimeout(a.current),D.setAttribute("data-instant",""),(G=D.setPointerCapture)==null||G.call(D,E.pointerId);const z=R=>{const A=O-R.clientY;Math.abs(A)>mV&&(i.current=!0),o.current=N+A,r(o.current),D.scrollTop=o.current},B=()=>{D.removeEventListener("pointermove",z),D.removeEventListener("pointerup",B),D.removeEventListener("pointercancel",B),D.removeAttribute("data-instant"),s.current=!1,i.current&&C(),requestAnimationFrame(()=>{i.current=!1})};D.addEventListener("pointermove",z),D.addEventListener("pointerup",B),D.addEventListener("pointercancel",B)},[C]),k=h.useCallback(E=>{var M;const{disabled:D,values:O,value:N,onPick:z}=l.current;if(D)return;const B=O.length;if(!B)return;const G=O.indexOf(N??O[0]),R=G<0?0:G,A=Y=>((R+Y)%B+B)%B,F={ArrowUp:()=>A(1),ArrowDown:()=>A(-1),PageUp:()=>A(5),PageDown:()=>A(-5),Home:()=>0,End:()=>B-1},V=(M=F[E.key])==null?void 0:M.call(F);V!==void 0&&(E.preventDefault(),z(O[V]))},[]);return h.useEffect(()=>()=>{a.current&&clearTimeout(a.current)},[]),{viewport:t,rows:c,distanceOf:g,pick:P,recentre:S,onScroll:_,onPointerDown:T,onKeyDown:k}}const bV=2,vV="--",dg=({className:e,part:t,onScroll:o,onPointerDown:n,onKeyDown:r,...a})=>{var w;const s=ve(),i=qc(),l=h.useMemo(()=>aV(Nn[t]),[t]),c=(w=i.time)==null?void 0:w[t],d=c??0,{viewport:f,rows:p,distanceOf:g,pick:x,recentre:m,onScroll:b,onPointerDown:y,onKeyDown:C}=xV({values:l,value:c,onPick:P=>i.setPart(t,P),disabled:i.disabled});return h.useEffect(()=>{m();const P=requestAnimationFrame(m);return()=>cancelAnimationFrame(P)},[c,m]),u.jsx("div",{ref:f,role:"spinbutton",className:$(ug.oxTimePickerWheelColumn,e),tabIndex:i.disabled?-1:0,"aria-label":s(`orxata.timePicker.${t}`),"aria-valuemin":0,"aria-valuemax":Nn[t],"aria-valuenow":d,"aria-valuetext":c===void 0?vV:$n(d),"aria-disabled":i.disabled||void 0,"data-testid":`${i.dataTestid}-wheel-${t}`,onScroll:P=>{b(),o==null||o(P)},onPointerDown:P=>{y(P),n==null||n(P)},onKeyDown:P=>{C(P),r==null||r(P)},...a,children:u.jsx("div",{className:ug.oxTimePickerWheelRows,children:p.map((P,S)=>u.jsx("span",{className:ug.oxTimePickerWheelRow,"data-distance":Math.min(bV,Math.round(g(S))),onClick:()=>x(S),children:$n(P)},`${S}-${P}`))})})};dg.displayName="OxTimePickerWheelColumn";const fg=h.forwardRef(({className:e,...t},o)=>{const n=qc(),r=LT(n.format);return u.jsxs("div",{ref:o,className:$(cg.oxTimePickerWheel,e),"data-testid":`${n.dataTestid}-wheel`,...t,children:[u.jsx("span",{className:cg.oxTimePickerWheelBand,"aria-hidden":"true"}),r.map((a,s)=>u.jsxs(h.Fragment,{children:[s?u.jsx("span",{className:cg.oxTimePickerWheelSeparator,"aria-hidden":"true",children:":"}):null,u.jsx(dg,{part:a})]},a))]})});fg.displayName="OxTimePickerWheel";const yV=16,UT=({format:e="HH:MM",disabled:t=!1,value:o,onValueChange:n,open:r,onOpenChange:a,className:s,children:i,dataTestid:l})=>{const c=o!==void 0&&n!==void 0,[d,f]=h.useState(o),p=c?o:d;h.useEffect(()=>{c||f(o)},[c,o]);const g=r!==void 0&&a!==void 0,[x,m]=h.useState(r??!1),b=g?r:x;h.useEffect(()=>{!g&&r!==void 0&&m(r)},[g,r]);const y=h.useCallback(S=>{g||m(S),a==null||a(S)},[a,g]),C=h.useMemo(()=>zT(p),[p]),w=h.useCallback(S=>{const _=BT(S,e);_!==p&&(c||f(_),n==null||n(_))},[c,p,e,n]),P=h.useMemo(()=>({format:e,time:C,setTime:w,setPart:(S,_)=>w(rV(C,S,_)),disabled:t,dataTestid:l,close:()=>y(!1)}),[l,t,e,y,w,C]);return u.jsx(GT.Provider,{value:P,children:u.jsxs(Jr,{open:b,onOpenChange:y,children:[u.jsx(Rl,{asChild:!0,children:u.jsx(lg,{className:s})}),u.jsx(ea,{children:u.jsx(lr,{asChild:!0,align:"start",sideOffset:4,collisionPadding:yV,"data-slot":"time-picker-panel","data-testid":`${l}-panel`,children:u.jsx(so,{className:UH.oxTimePickerPanel,children:i??u.jsx(fg,{})})})})]})})};UT.displayName="OxTimePicker";const wV={oxTimePickerList:"_oxTimePickerList_2akyt_2"},CV=1e3;function _V({options:e,selected:t,onSelect:o,disabled:n}){const r=h.useId(),a=h.useCallback(b=>`${r}-${b.replace(/:/g,"-")}`,[r]),[s,i]=h.useState(t),l=h.useRef(new Map),c=h.useRef(new Map),d=h.useRef(""),f=h.useRef(void 0);h.useEffect(()=>i(t),[t]),h.useEffect(()=>{if(s===void 0)return;const b=requestAnimationFrame(()=>{var y;return(y=l.current.get(s))==null?void 0:y.scrollIntoView({block:"nearest"})});return()=>cancelAnimationFrame(b)},[s]),h.useEffect(()=>()=>{f.current&&clearTimeout(f.current)},[]);const p=h.useCallback(b=>{const y=e[Math.max(0,Math.min(e.length-1,b))];y!==void 0&&i(y)},[e]),g=h.useCallback(b=>{if(n)return;const y=s===void 0?-1:e.indexOf(s),w={ArrowDown:()=>p(y+1),ArrowUp:()=>p(y<0?0:y-1),Home:()=>p(0),End:()=>p(e.length-1),Enter:()=>s!==void 0&&o(s)," ":()=>s!==void 0&&o(s)}[b.key];if(w){b.preventDefault(),w();return}if(b.key.length!==1||!/[\d:]/.test(b.key))return;b.preventDefault(),d.current+=b.key,f.current&&clearTimeout(f.current),f.current=setTimeout(()=>{d.current=""},CV);const P=e.find(S=>S.startsWith(d.current));P!==void 0&&i(P)},[n,s,p,o,e]),x=h.useCallback(b=>{let y=c.current.get(b);return y||(y=C=>l.current.set(b,C),c.current.set(b,y)),y},[]),m=h.useCallback(b=>({id:a(b),role:"option","aria-selected":b===t,"aria-disabled":n?!0:void 0,"data-highlighted":b===s?"":void 0,ref:x(b),onClick:()=>{n||o(b)},onMouseMove:()=>{n||i(b)}}),[n,s,a,o,x,t]);return{listProps:{tabIndex:n?-1:0,"aria-activedescendant":s===void 0?void 0:a(s),onKeyDown:g},optionProps:m}}const SV=15,qT=h.forwardRef(({className:e,onKeyDown:t,...o},n)=>{const r=qc(),a=h.useMemo(()=>{const d=[];for(let f=0;f<=Nn.hour;f++)for(let p=0;p<60;p+=SV)d.push(`${$n(f)}:${$n(p)}`);return d},[]),s=h.useMemo(()=>{const d=BT(r.time,"HH:MM");return d&&a.includes(d)?d:void 0},[a,r.time]),i=d=>{r.setTime(zT(d)),r.close()},{listProps:l,optionProps:c}=_V({options:a,selected:s,onSelect:i,disabled:r.disabled});return h.useEffect(()=>{},[r.format]),u.jsx(os,{ref:n,role:"listbox",className:$(wV.oxTimePickerList,e),"data-testid":`${r.dataTestid}-list`,...l,...o,onKeyDown:d=>{l.onKeyDown(d),t==null||t(d)},children:a.map(d=>{const{ref:f,...p}=c(d);return u.jsx(ts,{ref:f,...p,indicator:d===s?u.jsx(ee,{icon:wn,"aria-hidden":"true"}):null,children:d},d)})})});qT.displayName="OxTimePickerList";const Kc={"ox-textarea":"_ox-textarea_1l77n_2","ox-textarea-surface":"_ox-textarea-surface_1l77n_2","ox-textarea-surface-box":"_ox-textarea-surface-box_1l77n_2","ox-textarea-footer":"_ox-textarea-footer_1l77n_2"},YT=h.forwardRef(({className:e,maxRows:t=4,counterMax:o,resizable:n=!1,field:r,onFieldChange:a,counter:s,value:i,onChange:l,dataTestid:c,id:d,...f},p)=>{const g=Tt(d),[x,m]=h.useState(r??""),[b,y]=h.useState(r),C=r!==void 0&&a!==void 0;!C&&r!==b&&(y(r),m(r??""));const w=C?r:i??x,P=h.useRef(null);Iu(P,w,t);const S={value:w,length:w.length},_=o===void 0?null:u.jsx(Qp,{value:S.length,max:o,dataTestid:`${c}-counter`}),T=s==null?_:typeof s=="function"?s(S):s,k=E=>{var O;const D=E.target;D!=null&&D.closest('button, a, input, textarea, select, [tabindex], [data-slot="scrollbar"]')||(E.preventDefault(),(O=P.current)==null||O.focus())};return u.jsxs("div",{className:$(Kc["ox-textarea"],e),"data-slot":"controller","data-testid":c,onMouseDown:k,children:[u.jsxs("div",{className:Kc["ox-textarea-surface-box"],children:[u.jsx("textarea",{ref:E=>{P.current=E,typeof p=="function"?p(E):p&&(p.current=E)},...g,rows:1,className:Kc["ox-textarea-surface"],"data-resizable":n||void 0,"data-slot":"controller","data-testid":`${c}-surface`,value:w,onChange:E=>{C||m(E.target.value),a==null||a(E.target.value),l==null||l(E)},...f}),u.jsx(_n,{port:P,dataTestid:`${c}-scrollbar`})]}),T===null?null:u.jsx("div",{className:Kc["ox-textarea-footer"],"data-slot":"footer","data-testid":`${c}-footer`,children:T})]})});YT.displayName="OxTextarea";const cn={oxPsnSwitch:"_oxPsnSwitch_s4nop_2",oxPsnHandler:"_oxPsnHandler_s4nop_2",oxPsnRegular:"_oxPsnRegular_s4nop_2",oxPsnGlyph:"_oxPsnGlyph_s4nop_2",oxPsnSmall:"_oxPsnSmall_s4nop_2",oxPsnOn:"_oxPsnOn_s4nop_2",oxPsnOff:"_oxPsnOff_s4nop_2",oxPsnEnabled:"_oxPsnEnabled_s4nop_2",oxPsnDisabled:"_oxPsnDisabled_s4nop_2"},KT=h.forwardRef(({className:e,checked:t=!1,size:o="regular",disabled:n=!1,icon:r=!1,onCheckedChange:a,children:s,id:i,...l},c)=>{const d=Tt(i);function f(){n||a==null||a(!t)}return u.jsxs("div",{ref:c,"data-slot":"controller",className:$(cn.oxPsnSwitch,t?cn.oxPsnOn:cn.oxPsnOff,n?cn.oxPsnDisabled:cn.oxPsnEnabled,o==="small"?cn.oxPsnSmall:cn.oxPsnRegular,e),...l,children:[u.jsx("div",{className:cn.oxPsnHandler,children:s??(r?u.jsx(ee,{icon:t?wn:ur,className:cn.oxPsnGlyph,"data-slot":"icon"}):null)}),u.jsx("input",{...d,type:"checkbox",checked:t,disabled:n,onChange:p=>{p.stopPropagation(),f()}})]})});KT.displayName="OxSwitch";const PV=["regular","small"];var TV=Object.defineProperty,un=(e,t)=>TV(e,"name",{value:t,configurable:!0}),pg="Checkbox",[kV]=Kt(pg),[EV,hg]=kV(pg);function XT(e){const{__scopeCheckbox:t,checked:o,children:n,defaultChecked:r,disabled:a,form:s,name:i,onCheckedChange:l,required:c,value:d="on",internal_do_not_use_render:f}=e,[p,g]=co({prop:o,defaultProp:r??!1,onChange:l,caller:pg}),[x,m]=v.useState(null),[b,y]=v.useState(null),C=v.useRef(!1),[w,P]=v.useReducer(T=>T+1,0),S=x?!!s||!!x.closest("form"):!0,_={checked:p,disabled:a,setChecked:g,control:x,setControl:m,name:i,form:s,value:d,hasConsumerStoppedPropagationRef:C,userInteractionCount:w,onUserInteraction:P,required:c,defaultChecked:dn(r)?!1:r,isFormControl:S,bubbleInput:b,setBubbleInput:y};return u.jsx(EV,{scope:t,..._,children:ZT(f)?f(_):n})}un(XT,"CheckboxProvider");var IV="CheckboxTrigger",DV=v.forwardRef(un(function({__scopeCheckbox:t,onKeyDown:o,onClick:n,...r},a){const{control:s,value:i,disabled:l,checked:c,required:d,setControl:f,setChecked:p,hasConsumerStoppedPropagationRef:g,onUserInteraction:x,isFormControl:m,bubbleInput:b}=hg(IV,t),y=We(a,f),C=v.useRef(c);return v.useEffect(()=>{const w=s==null?void 0:s.form;if(w){const P=un(()=>p(C.current),"reset");return w.addEventListener("reset",P),()=>w.removeEventListener("reset",P)}},[s,p]),u.jsx(ye.button,{type:"button",role:"checkbox","aria-checked":dn(c)?"mixed":c,"aria-required":d,"data-state":gg(c),"data-disabled":l?"":void 0,disabled:l,value:i,...r,ref:y,onKeyDown:Te(o,w=>{w.key==="Enter"&&w.preventDefault()}),onClick:Te(n,w=>{x(),p(P=>dn(P)?!0:!P),b&&m&&(g.current=w.isPropagationStopped(),g.current||w.stopPropagation())})})},"CheckboxTrigger")),MV=v.forwardRef(un(function(t,o){const{__scopeCheckbox:n,name:r,checked:a,defaultChecked:s,required:i,disabled:l,value:c,onCheckedChange:d,form:f,...p}=t;return u.jsx(XT,{__scopeCheckbox:n,checked:a,defaultChecked:s,disabled:l,required:i,onCheckedChange:d,name:r,form:f,value:c,internal_do_not_use_render:({isFormControl:g})=>u.jsxs(u.Fragment,{children:[u.jsx(DV,{...p,ref:o,__scopeCheckbox:n}),g&&u.jsx($V,{__scopeCheckbox:n})]})})},"Checkbox")),OV="CheckboxIndicator",AV=v.forwardRef(un(function(t,o){const{__scopeCheckbox:n,forceMount:r,...a}=t,s=hg(OV,n);return u.jsx(lo,{present:r||dn(s.checked)||s.checked===!0,children:u.jsx(ye.span,{"data-state":gg(s.checked),"data-disabled":s.disabled?"":void 0,...a,ref:o,style:{pointerEvents:"none",...t.style}})})},"CheckboxIndicator")),NV="CheckboxBubbleInput",$V=v.forwardRef(un(function({__scopeCheckbox:t,onClick:o,...n},r){const{control:a,hasConsumerStoppedPropagationRef:s,userInteractionCount:i,checked:l,defaultChecked:c,required:d,disabled:f,name:p,value:g,form:x,bubbleInput:m,setBubbleInput:b}=hg(NV,t),y=We(r,b),C=mf(a),w=v.useRef(!1),P=v.useRef(l),S=v.useRef(i);v.useEffect(()=>{const T=m;if(!T)return;const k=window.HTMLInputElement.prototype,D=Object.getOwnPropertyDescriptor(k,"checked").set,O=i!==S.current;S.current=i;const N=P.current!==l;P.current=l;const z=!(O&&s.current);if(N&&D){w.current=!O;const B=new Event("click",{bubbles:z});T.indeterminate=dn(l),D.call(T,dn(l)?!1:l),T.dispatchEvent(B),w.current=!1}},[m,l,s,i]);const _=v.useRef(dn(l)?!1:l);return u.jsx(ye.input,{type:"checkbox","aria-hidden":!0,defaultChecked:c??_.current,required:d,disabled:f,name:p,value:g,form:x,...n,tabIndex:-1,ref:y,onClick:Te(o,T=>{w.current&&T.stopPropagation()}),style:{...n.style,...C,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})},"CheckboxBubbleInput"));function ZT(e){return typeof e=="function"}un(ZT,"isFunction");function dn(e){return e==="indeterminate"}un(dn,"isIndeterminate");function gg(e){return dn(e)?"indeterminate":e?"checked":"unchecked"}un(gg,"getState");const FV=`<svg width="1.2em" height="1.2em" stroke-color="currentColor" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24">
|
|
360
|
-
<g class="Size=24px, Disable=false">
|
|
361
|
-
<path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M5 12h14" class="Vector"/>
|
|
362
|
-
</g>
|
|
363
|
-
</svg>
|
|
364
|
-
`,Fn={oxCheckboxRoot:"_oxCheckboxRoot_18i3x_2",oxCheckboxIcon:"_oxCheckboxIcon_18i3x_2",oxCheckboxIndicator:"_oxCheckboxIndicator_18i3x_2",oxCheckboxRounded:"_oxCheckboxRounded_18i3x_2",oxCheckboxSm:"_oxCheckboxSm_18i3x_2",oxCheckboxMd:"_oxCheckboxMd_18i3x_2",oxCheckboxLg:"_oxCheckboxLg_18i3x_2"},LV={sm:Fn.oxCheckboxSm,md:Fn.oxCheckboxMd,lg:Fn.oxCheckboxLg},Xc=h.forwardRef(({className:e,variant:t="default",size:o="md",checked:n,id:r,...a},s)=>{const i=n==="indeterminate",l=Tt(r);return u.jsx(MV,{ref:s,...l,"data-slot":"controller",checked:n,className:$(Fn.oxCheckboxRoot,LV[o],t==="rounded"&&Fn.oxCheckboxRounded,e),...a,children:u.jsx(AV,{forceMount:i?!0:void 0,className:Fn.oxCheckboxIndicator,children:i?u.jsx(ee,{icon:FV,className:Fn.oxCheckboxIcon}):u.jsx(ee,{icon:wn,className:Fn.oxCheckboxIcon})})})});Xc.displayName="OxCheckbox";const mg={oxRadioRoot:"_oxRadioRoot_1hxb4_2",oxRadioDot:"_oxRadioDot_1hxb4_2",oxRadioIndicator:"_oxRadioIndicator_1hxb4_2"},JT=h.forwardRef(({className:e,...t},o)=>u.jsx(Ah,{ref:o,"data-slot":"controller",className:$(mg.oxRadioRoot,e),...t,children:u.jsx(Oz,{className:mg.oxRadioIndicator,children:u.jsx("span",{className:mg.oxRadioDot})})}));JT.displayName="OxRadioButton";const xg={oxRadioGroup:"_oxRadioGroup_1tk27_2",oxRadioGroupVertical:"_oxRadioGroupVertical_1tk27_2",oxRadioGroupHorizontal:"_oxRadioGroupHorizontal_1tk27_2"},QT=h.forwardRef(({className:e,orientation:t="vertical",...o},n)=>{const r=Es();return u.jsx(Oh,{ref:n,...r,"data-slot":"controller",orientation:t,className:$(xg.oxRadioGroup,t==="horizontal"?xg.oxRadioGroupHorizontal:xg.oxRadioGroupVertical,e),...o})});QT.displayName="OxRadioGroup";const bg={oxToggleGroup:"_oxToggleGroup_g360l_2",oxToggleGroupGapSm:"_oxToggleGroupGapSm_g360l_2",oxToggleGroupGapMd:"_oxToggleGroupGapMd_g360l_2",oxToggleGroupGapLg:"_oxToggleGroupGapLg_g360l_2",oxToggleGroupAlignStart:"_oxToggleGroupAlignStart_g360l_2",oxToggleGroupAlignCenter:"_oxToggleGroupAlignCenter_g360l_2"},ek=h.forwardRef(({className:e,align:t="start",gap:o="md",children:n,...r},a)=>{const s=C7();return u.jsx(eh.Provider,{value:s,children:u.jsx("div",{ref:a,className:$(bg.oxToggleGroup,bg[`oxToggleGroupAlign${t==="center"?"Center":"Start"}`],bg[`oxToggleGroupGap${o==="sm"?"Sm":o==="lg"?"Lg":"Md"}`],e),...r,children:n})})});ek.displayName="OxToggleGroup";const zV={oxToggleLabel:"_oxToggleLabel_1gxww_2"},tk=h.forwardRef(({className:e,htmlFor:t,...o},n)=>{const r=ks();return u.jsx("label",{ref:n,htmlFor:t??(r==null?void 0:r.controlId),"data-slot":"label",className:$(zV.oxToggleLabel,e),...o})});tk.displayName="OxToggleLabel";const ok={oxToggleDescription:"_oxToggleDescription_18dfq_2",oxToggleDescriptionXs:"_oxToggleDescriptionXs_18dfq_2",oxToggleDescriptionSm:"_oxToggleDescriptionSm_18dfq_2",oxToggleDescriptionBase:"_oxToggleDescriptionBase_18dfq_2"},nk=h.forwardRef(({className:e,size:t="sm",...o},n)=>{const r=y7();return u.jsx("span",{ref:n,...r,"data-slot":"description",className:$(ok.oxToggleDescription,ok[`oxToggleDescription${t==="xs"?"Xs":t==="base"?"Base":"Sm"}`],e),...o})});nk.displayName="OxToggleDescription";const Je={"ox-kpi-card":"_ox-kpi-card_13kmn_2","ox-kpi-card--md":"_ox-kpi-card--md_13kmn_2","ox-kpi-card--sm":"_ox-kpi-card--sm_13kmn_2","ox-kpi-card-header":"_ox-kpi-card-header_13kmn_2","ox-kpi-card-identity":"_ox-kpi-card-identity_13kmn_2","ox-kpi-card-icon-box":"_ox-kpi-card-icon-box_13kmn_2","ox-kpi-card-title":"_ox-kpi-card-title_13kmn_2","ox-kpi-card-chart":"_ox-kpi-card-chart_13kmn_2","ox-kpi-card-body":"_ox-kpi-card-body_13kmn_2","ox-kpi-card-value-row":"_ox-kpi-card-value-row_13kmn_2","ox-kpi-card-value":"_ox-kpi-card-value_13kmn_2","ox-kpi-card-trend":"_ox-kpi-card-trend_13kmn_2","ox-kpi-card-description":"_ox-kpi-card-description_13kmn_2","ox-kpi-card-divider":"_ox-kpi-card-divider_13kmn_2","ox-kpi-card-footer":"_ox-kpi-card-footer_13kmn_2","ox-kpi-card-loading-icon":"_ox-kpi-card-loading-icon_13kmn_2","ox-kpi-card-loading-title":"_ox-kpi-card-loading-title_13kmn_2","ox-kpi-card-loading-value":"_ox-kpi-card-loading-value_13kmn_2","ox-kpi-card-loading-description":"_ox-kpi-card-loading-description_13kmn_2","ox-kpi-card-loading-chart":"_ox-kpi-card-loading-chart_13kmn_2","ox-kpi-card-loading-footer":"_ox-kpi-card-loading-footer_13kmn_2"},rk=h.forwardRef(({className:e,size:t="md",selected:o=!1,loading:n=!1,icon:r,title:a,chart:s,trend:i,description:l,footer:c,children:d,dataTestid:f,...p},g)=>{const x=t==="md"&&!!s,m=t==="md"&&!!l,b=t==="md"&&!!c;return u.jsxs("div",{ref:g,"data-slot":"kpi-card","data-testid":f,"data-selected":o,"aria-busy":n||void 0,className:$(Je["ox-kpi-card"],me(Je,ak({size:t})),e),...p,children:[u.jsxs("div",{className:Je["ox-kpi-card-header"],children:[u.jsxs("div",{className:Je["ox-kpi-card-identity"],children:[n&&r?u.jsx(Xo,{className:Je["ox-kpi-card-loading-icon"],dataTestid:`${f}-loading-icon`}):r&&u.jsx("span",{className:Je["ox-kpi-card-icon-box"],"data-slot":"icon","aria-hidden":"true","data-testid":`${f}-icon`,children:r}),n&&a?u.jsx(Xo,{className:Je["ox-kpi-card-loading-title"],dataTestid:`${f}-loading-title`}):a&&u.jsx("span",{className:Je["ox-kpi-card-title"],"data-slot":"label","data-testid":`${f}-title`,children:a})]}),n&&x?u.jsx(Xo,{className:Je["ox-kpi-card-loading-chart"],dataTestid:`${f}-loading-chart`}):x&&u.jsx("div",{className:Je["ox-kpi-card-chart"],"data-slot":"chart","data-testid":`${f}-chart`,children:s})]}),u.jsxs("div",{className:Je["ox-kpi-card-body"],children:[u.jsx("div",{className:Je["ox-kpi-card-value-row"],children:n?u.jsx(Xo,{className:Je["ox-kpi-card-loading-value"],dataTestid:`${f}-loading-value`}):u.jsxs(u.Fragment,{children:[u.jsx("span",{className:Je["ox-kpi-card-value"],"data-slot":"value","data-testid":`${f}-value`,children:d}),i&&u.jsx("span",{className:Je["ox-kpi-card-trend"],"data-slot":"trend","data-testid":`${f}-trend`,children:i})]})}),n&&m?u.jsx(Xo,{className:Je["ox-kpi-card-loading-description"],dataTestid:`${f}-loading-description`}):m&&u.jsx("p",{className:Je["ox-kpi-card-description"],"data-slot":"description","data-testid":`${f}-description`,children:l})]}),b&&u.jsxs(u.Fragment,{children:[u.jsx("div",{className:Je["ox-kpi-card-divider"],"aria-hidden":"true","data-testid":`${f}-divider`}),n?u.jsx(Xo,{className:Je["ox-kpi-card-loading-footer"],dataTestid:`${f}-loading-footer`}):u.jsx("div",{className:Je["ox-kpi-card-footer"],"data-slot":"footer","data-testid":`${f}-footer`,children:c})]})]})});rk.displayName="OxKpiCard";const ak=Oe("",{variants:{size:{md:"ox-kpi-card--md",sm:"ox-kpi-card--sm"}},defaultVariants:{size:"md"}}),ce={oxTableRoot:"_oxTableRoot_1boxg_2",oxTableBulkCount:"_oxTableBulkCount_1boxg_2",oxTableBulkActions:"_oxTableBulkActions_1boxg_2",oxTableScrollWrapper:"_oxTableScrollWrapper_1boxg_2",oxTableScrollContainer:"_oxTableScrollContainer_1boxg_2",oxTableScrollContainerVirtual:"_oxTableScrollContainerVirtual_1boxg_2",oxTableScrollContainerDraggable:"_oxTableScrollContainerDraggable_1boxg_2",oxTableScrollContainerDragging:"_oxTableScrollContainerDragging_1boxg_2",oxTableScrollWrapperShadowLeft:"_oxTableScrollWrapperShadowLeft_1boxg_2",oxTableScrollWrapperShadowRight:"_oxTableScrollWrapperShadowRight_1boxg_2",oxTableFixedLayout:"_oxTableFixedLayout_1boxg_2",oxTableFixedLayoutVirtual:"_oxTableFixedLayoutVirtual_1boxg_2",oxTableFixedFrame:"_oxTableFixedFrame_1boxg_2",oxTableFixedFrameShadowLeft:"_oxTableFixedFrameShadowLeft_1boxg_2",oxTableFixedFrameShadowRight:"_oxTableFixedFrameShadowRight_1boxg_2",oxTableFixedSection:"_oxTableFixedSection_1boxg_2",oxTableFixedLeft:"_oxTableFixedLeft_1boxg_2",oxTableFixedRight:"_oxTableFixedRight_1boxg_2",oxTableFixedLeftShadow:"_oxTableFixedLeftShadow_1boxg_2",oxTableFixedRightShadow:"_oxTableFixedRightShadow_1boxg_2",oxTableFixedScroll:"_oxTableFixedScroll_1boxg_2",oxTableFixedScrollDraggable:"_oxTableFixedScrollDraggable_1boxg_2",oxTableFixedScrollDragging:"_oxTableFixedScrollDragging_1boxg_2",oxTable:"_oxTable_1boxg_2"};function BV(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return h.useMemo(()=>n=>{t.forEach(r=>r(n))},t)}const Zc=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Ia(e){const t=Object.prototype.toString.call(e);return t==="[object Window]"||t==="[object global]"}function vg(e){return"nodeType"in e}function Dt(e){var t,o;return e?Ia(e)?e:vg(e)&&(t=(o=e.ownerDocument)==null?void 0:o.defaultView)!=null?t:window:window}function yg(e){const{Document:t}=Dt(e);return e instanceof t}function oi(e){return Ia(e)?!1:e instanceof Dt(e).HTMLElement}function sk(e){return e instanceof Dt(e).SVGElement}function Da(e){return e?Ia(e)?e.document:vg(e)?yg(e)?e:oi(e)||sk(e)?e.ownerDocument:document:document:document}const Fo=Zc?h.useLayoutEffect:h.useEffect;function wg(e){const t=h.useRef(e);return Fo(()=>{t.current=e}),h.useCallback(function(){for(var o=arguments.length,n=new Array(o),r=0;r<o;r++)n[r]=arguments[r];return t.current==null?void 0:t.current(...n)},[])}function HV(){const e=h.useRef(null),t=h.useCallback((n,r)=>{e.current=setInterval(n,r)},[]),o=h.useCallback(()=>{e.current!==null&&(clearInterval(e.current),e.current=null)},[]);return[t,o]}function ni(e,t){t===void 0&&(t=[e]);const o=h.useRef(e);return Fo(()=>{o.current!==e&&(o.current=e)},t),o}function ri(e,t){const o=h.useRef();return h.useMemo(()=>{const n=e(o.current);return o.current=n,n},[...t])}function Jc(e){const t=wg(e),o=h.useRef(null),n=h.useCallback(r=>{r!==o.current&&(t==null||t(r,o.current)),o.current=r},[]);return[o,n]}function Cg(e){const t=h.useRef();return h.useEffect(()=>{t.current=e},[e]),t.current}let _g={};function ai(e,t){return h.useMemo(()=>{if(t)return t;const o=_g[e]==null?0:_g[e]+1;return _g[e]=o,e+"-"+o},[e,t])}function ik(e){return function(t){for(var o=arguments.length,n=new Array(o>1?o-1:0),r=1;r<o;r++)n[r-1]=arguments[r];return n.reduce((a,s)=>{const i=Object.entries(s);for(const[l,c]of i){const d=a[l];d!=null&&(a[l]=d+e*c)}return a},{...t})}}const Ma=ik(1),Qc=ik(-1);function VV(e){return"clientX"in e&&"clientY"in e}function Sg(e){if(!e)return!1;const{KeyboardEvent:t}=Dt(e.target);return t&&e instanceof t}function WV(e){if(!e)return!1;const{TouchEvent:t}=Dt(e.target);return t&&e instanceof t}function Pg(e){if(WV(e)){if(e.touches&&e.touches.length){const{clientX:t,clientY:o}=e.touches[0];return{x:t,y:o}}else if(e.changedTouches&&e.changedTouches.length){const{clientX:t,clientY:o}=e.changedTouches[0];return{x:t,y:o}}}return VV(e)?{x:e.clientX,y:e.clientY}:null}const si=Object.freeze({Translate:{toString(e){if(!e)return;const{x:t,y:o}=e;return"translate3d("+(t?Math.round(t):0)+"px, "+(o?Math.round(o):0)+"px, 0)"}},Scale:{toString(e){if(!e)return;const{scaleX:t,scaleY:o}=e;return"scaleX("+t+") scaleY("+o+")"}},Transform:{toString(e){if(e)return[si.Translate.toString(e),si.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:t,duration:o,easing:n}=e;return t+" "+o+"ms "+n}}}),lk="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function RV(e){return e.matches(lk)?e:e.querySelector(lk)}const GV={display:"none"};function jV(e){let{id:t,value:o}=e;return h.createElement("div",{id:t,style:GV},o)}function UV(e){let{id:t,announcement:o,ariaLiveType:n="assertive"}=e;const r={position:"fixed",top:0,left:0,width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"};return h.createElement("div",{id:t,style:r,role:"status","aria-live":n,"aria-atomic":!0},o)}function qV(){const[e,t]=h.useState("");return{announce:h.useCallback(n=>{n!=null&&t(n)},[]),announcement:e}}const ck=h.createContext(null);function YV(e){const t=h.useContext(ck);h.useEffect(()=>{if(!t)throw new Error("useDndMonitor must be used within a children of <DndContext>");return t(e)},[e,t])}function KV(){const[e]=h.useState(()=>new Set),t=h.useCallback(n=>(e.add(n),()=>e.delete(n)),[e]);return[h.useCallback(n=>{let{type:r,event:a}=n;e.forEach(s=>{var i;return(i=s[r])==null?void 0:i.call(s,a)})},[e]),t]}const XV={draggable:`
|
|
365
|
-
To pick up a draggable item, press the space bar.
|
|
366
|
-
While dragging, use the arrow keys to move the item.
|
|
367
|
-
Press space again to drop the item in its new position, or press escape to cancel.
|
|
368
|
-
`},ZV={onDragStart(e){let{active:t}=e;return"Picked up draggable item "+t.id+"."},onDragOver(e){let{active:t,over:o}=e;return o?"Draggable item "+t.id+" was moved over droppable area "+o.id+".":"Draggable item "+t.id+" is no longer over a droppable area."},onDragEnd(e){let{active:t,over:o}=e;return o?"Draggable item "+t.id+" was dropped over droppable area "+o.id:"Draggable item "+t.id+" was dropped."},onDragCancel(e){let{active:t}=e;return"Dragging was cancelled. Draggable item "+t.id+" was dropped."}};function JV(e){let{announcements:t=ZV,container:o,hiddenTextDescribedById:n,screenReaderInstructions:r=XV}=e;const{announce:a,announcement:s}=qV(),i=ai("DndLiveRegion"),[l,c]=h.useState(!1);if(h.useEffect(()=>{c(!0)},[]),YV(h.useMemo(()=>({onDragStart(f){let{active:p}=f;a(t.onDragStart({active:p}))},onDragMove(f){let{active:p,over:g}=f;t.onDragMove&&a(t.onDragMove({active:p,over:g}))},onDragOver(f){let{active:p,over:g}=f;a(t.onDragOver({active:p,over:g}))},onDragEnd(f){let{active:p,over:g}=f;a(t.onDragEnd({active:p,over:g}))},onDragCancel(f){let{active:p,over:g}=f;a(t.onDragCancel({active:p,over:g}))}}),[a,t])),!l)return null;const d=h.createElement(h.Fragment,null,h.createElement(jV,{id:n,value:r.draggable}),h.createElement(UV,{id:i,announcement:s}));return o?vt.createPortal(d,o):d}var at;(function(e){e.DragStart="dragStart",e.DragMove="dragMove",e.DragEnd="dragEnd",e.DragCancel="dragCancel",e.DragOver="dragOver",e.RegisterDroppable="registerDroppable",e.SetDroppableDisabled="setDroppableDisabled",e.UnregisterDroppable="unregisterDroppable"})(at||(at={}));function eu(){}function QV(e,t){return h.useMemo(()=>({sensor:e,options:{}}),[e,t])}function eW(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return h.useMemo(()=>[...t].filter(n=>n!=null),[...t])}const bo=Object.freeze({x:0,y:0});function tW(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function oW(e,t){let{data:{value:o}}=e,{data:{value:n}}=t;return o-n}function nW(e,t){let{data:{value:o}}=e,{data:{value:n}}=t;return n-o}function rW(e,t){if(!e||e.length===0)return null;const[o]=e;return o[t]}function uk(e,t,o){return t===void 0&&(t=e.left),o===void 0&&(o=e.top),{x:t+e.width*.5,y:o+e.height*.5}}const aW=e=>{let{collisionRect:t,droppableRects:o,droppableContainers:n}=e;const r=uk(t,t.left,t.top),a=[];for(const s of n){const{id:i}=s,l=o.get(i);if(l){const c=tW(uk(l),r);a.push({id:i,data:{droppableContainer:s,value:c}})}}return a.sort(oW)};function sW(e,t){const o=Math.max(t.top,e.top),n=Math.max(t.left,e.left),r=Math.min(t.left+t.width,e.left+e.width),a=Math.min(t.top+t.height,e.top+e.height),s=r-n,i=a-o;if(n<r&&o<a){const l=t.width*t.height,c=e.width*e.height,d=s*i,f=d/(l+c-d);return Number(f.toFixed(4))}return 0}const iW=e=>{let{collisionRect:t,droppableRects:o,droppableContainers:n}=e;const r=[];for(const a of n){const{id:s}=a,i=o.get(s);if(i){const l=sW(i,t);l>0&&r.push({id:s,data:{droppableContainer:a,value:l}})}}return r.sort(nW)};function lW(e,t,o){return{...e,scaleX:t&&o?t.width/o.width:1,scaleY:t&&o?t.height/o.height:1}}function dk(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:bo}function cW(e){return function(o){for(var n=arguments.length,r=new Array(n>1?n-1:0),a=1;a<n;a++)r[a-1]=arguments[a];return r.reduce((s,i)=>({...s,top:s.top+e*i.y,bottom:s.bottom+e*i.y,left:s.left+e*i.x,right:s.right+e*i.x}),{...o})}}const uW=cW(1);function dW(e){if(e.startsWith("matrix3d(")){const t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}else if(e.startsWith("matrix(")){const t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}function fW(e,t,o){const n=dW(t);if(!n)return e;const{scaleX:r,scaleY:a,x:s,y:i}=n,l=e.left-s-(1-r)*parseFloat(o),c=e.top-i-(1-a)*parseFloat(o.slice(o.indexOf(" ")+1)),d=r?e.width/r:e.width,f=a?e.height/a:e.height;return{width:d,height:f,top:c,right:l+d,bottom:c+f,left:l}}const pW={ignoreTransform:!1};function Oa(e,t){t===void 0&&(t=pW);let o=e.getBoundingClientRect();if(t.ignoreTransform){const{transform:c,transformOrigin:d}=Dt(e).getComputedStyle(e);c&&(o=fW(o,c,d))}const{top:n,left:r,width:a,height:s,bottom:i,right:l}=o;return{top:n,left:r,width:a,height:s,bottom:i,right:l}}function fk(e){return Oa(e,{ignoreTransform:!0})}function hW(e){const t=e.innerWidth,o=e.innerHeight;return{top:0,left:0,right:t,bottom:o,width:t,height:o}}function gW(e,t){return t===void 0&&(t=Dt(e).getComputedStyle(e)),t.position==="fixed"}function mW(e,t){t===void 0&&(t=Dt(e).getComputedStyle(e));const o=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(r=>{const a=t[r];return typeof a=="string"?o.test(a):!1})}function Tg(e,t){const o=[];function n(r){if(t!=null&&o.length>=t||!r)return o;if(yg(r)&&r.scrollingElement!=null&&!o.includes(r.scrollingElement))return o.push(r.scrollingElement),o;if(!oi(r)||sk(r)||o.includes(r))return o;const a=Dt(e).getComputedStyle(r);return r!==e&&mW(r,a)&&o.push(r),gW(r,a)?o:n(r.parentNode)}return e?n(e):o}function pk(e){const[t]=Tg(e,1);return t??null}function kg(e){return!Zc||!e?null:Ia(e)?e:vg(e)?yg(e)||e===Da(e).scrollingElement?window:oi(e)?e:null:null}function hk(e){return Ia(e)?e.scrollX:e.scrollLeft}function gk(e){return Ia(e)?e.scrollY:e.scrollTop}function Eg(e){return{x:hk(e),y:gk(e)}}var pt;(function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"})(pt||(pt={}));function mk(e){return!Zc||!e?!1:e===document.scrollingElement}function xk(e){const t={x:0,y:0},o=mk(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},n={x:e.scrollWidth-o.width,y:e.scrollHeight-o.height},r=e.scrollTop<=t.y,a=e.scrollLeft<=t.x,s=e.scrollTop>=n.y,i=e.scrollLeft>=n.x;return{isTop:r,isLeft:a,isBottom:s,isRight:i,maxScroll:n,minScroll:t}}const xW={x:.2,y:.2};function bW(e,t,o,n,r){let{top:a,left:s,right:i,bottom:l}=o;n===void 0&&(n=10),r===void 0&&(r=xW);const{isTop:c,isBottom:d,isLeft:f,isRight:p}=xk(e),g={x:0,y:0},x={x:0,y:0},m={height:t.height*r.y,width:t.width*r.x};return!c&&a<=t.top+m.height?(g.y=pt.Backward,x.y=n*Math.abs((t.top+m.height-a)/m.height)):!d&&l>=t.bottom-m.height&&(g.y=pt.Forward,x.y=n*Math.abs((t.bottom-m.height-l)/m.height)),!p&&i>=t.right-m.width?(g.x=pt.Forward,x.x=n*Math.abs((t.right-m.width-i)/m.width)):!f&&s<=t.left+m.width&&(g.x=pt.Backward,x.x=n*Math.abs((t.left+m.width-s)/m.width)),{direction:g,speed:x}}function vW(e){if(e===document.scrollingElement){const{innerWidth:a,innerHeight:s}=window;return{top:0,left:0,right:a,bottom:s,width:a,height:s}}const{top:t,left:o,right:n,bottom:r}=e.getBoundingClientRect();return{top:t,left:o,right:n,bottom:r,width:e.clientWidth,height:e.clientHeight}}function bk(e){return e.reduce((t,o)=>Ma(t,Eg(o)),bo)}function yW(e){return e.reduce((t,o)=>t+hk(o),0)}function wW(e){return e.reduce((t,o)=>t+gk(o),0)}function CW(e,t){if(t===void 0&&(t=Oa),!e)return;const{top:o,left:n,bottom:r,right:a}=t(e);pk(e)&&(r<=0||a<=0||o>=window.innerHeight||n>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}const _W=[["x",["left","right"],yW],["y",["top","bottom"],wW]];class Ig{constructor(t,o){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;const n=Tg(o),r=bk(n);this.rect={...t},this.width=t.width,this.height=t.height;for(const[a,s,i]of _W)for(const l of s)Object.defineProperty(this,l,{get:()=>{const c=i(n),d=r[a]-c;return this.rect[l]+d},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class ii{constructor(t){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(o=>{var n;return(n=this.target)==null?void 0:n.removeEventListener(...o)})},this.target=t}add(t,o,n){var r;(r=this.target)==null||r.addEventListener(t,o,n),this.listeners.push([t,o,n])}}function SW(e){const{EventTarget:t}=Dt(e);return e instanceof t?e:Da(e)}function Dg(e,t){const o=Math.abs(e.x),n=Math.abs(e.y);return typeof t=="number"?Math.sqrt(o**2+n**2)>t:"x"in t&&"y"in t?o>t.x&&n>t.y:"x"in t?o>t.x:"y"in t?n>t.y:!1}var eo;(function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"})(eo||(eo={}));function vk(e){e.preventDefault()}function PW(e){e.stopPropagation()}var Ae;(function(e){e.Space="Space",e.Down="ArrowDown",e.Right="ArrowRight",e.Left="ArrowLeft",e.Up="ArrowUp",e.Esc="Escape",e.Enter="Enter",e.Tab="Tab"})(Ae||(Ae={}));const yk={start:[Ae.Space,Ae.Enter],cancel:[Ae.Esc],end:[Ae.Space,Ae.Enter,Ae.Tab]},TW=(e,t)=>{let{currentCoordinates:o}=t;switch(e.code){case Ae.Right:return{...o,x:o.x+25};case Ae.Left:return{...o,x:o.x-25};case Ae.Down:return{...o,y:o.y+25};case Ae.Up:return{...o,y:o.y-25}}};class wk{constructor(t){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=t;const{event:{target:o}}=t;this.props=t,this.listeners=new ii(Da(o)),this.windowListeners=new ii(Dt(o)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(eo.Resize,this.handleCancel),this.windowListeners.add(eo.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(eo.Keydown,this.handleKeyDown))}handleStart(){const{activeNode:t,onStart:o}=this.props,n=t.node.current;n&&CW(n),o(bo)}handleKeyDown(t){if(Sg(t)){const{active:o,context:n,options:r}=this.props,{keyboardCodes:a=yk,coordinateGetter:s=TW,scrollBehavior:i="smooth"}=r,{code:l}=t;if(a.end.includes(l)){this.handleEnd(t);return}if(a.cancel.includes(l)){this.handleCancel(t);return}const{collisionRect:c}=n.current,d=c?{x:c.left,y:c.top}:bo;this.referenceCoordinates||(this.referenceCoordinates=d);const f=s(t,{active:o,context:n.current,currentCoordinates:d});if(f){const p=Qc(f,d),g={x:0,y:0},{scrollableAncestors:x}=n.current;for(const m of x){const b=t.code,{isTop:y,isRight:C,isLeft:w,isBottom:P,maxScroll:S,minScroll:_}=xk(m),T=vW(m),k={x:Math.min(b===Ae.Right?T.right-T.width/2:T.right,Math.max(b===Ae.Right?T.left:T.left+T.width/2,f.x)),y:Math.min(b===Ae.Down?T.bottom-T.height/2:T.bottom,Math.max(b===Ae.Down?T.top:T.top+T.height/2,f.y))},E=b===Ae.Right&&!C||b===Ae.Left&&!w,D=b===Ae.Down&&!P||b===Ae.Up&&!y;if(E&&k.x!==f.x){const O=m.scrollLeft+p.x,N=b===Ae.Right&&O<=S.x||b===Ae.Left&&O>=_.x;if(N&&!p.y){m.scrollTo({left:O,behavior:i});return}N?g.x=m.scrollLeft-O:g.x=b===Ae.Right?m.scrollLeft-S.x:m.scrollLeft-_.x,g.x&&m.scrollBy({left:-g.x,behavior:i});break}else if(D&&k.y!==f.y){const O=m.scrollTop+p.y,N=b===Ae.Down&&O<=S.y||b===Ae.Up&&O>=_.y;if(N&&!p.x){m.scrollTo({top:O,behavior:i});return}N?g.y=m.scrollTop-O:g.y=b===Ae.Down?m.scrollTop-S.y:m.scrollTop-_.y,g.y&&m.scrollBy({top:-g.y,behavior:i});break}}this.handleMove(t,Ma(Qc(f,this.referenceCoordinates),g))}}}handleMove(t,o){const{onMove:n}=this.props;t.preventDefault(),n(o)}handleEnd(t){const{onEnd:o}=this.props;t.preventDefault(),this.detach(),o()}handleCancel(t){const{onCancel:o}=this.props;t.preventDefault(),this.detach(),o()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}wk.activators=[{eventName:"onKeyDown",handler:(e,t,o)=>{let{keyboardCodes:n=yk,onActivation:r}=t,{active:a}=o;const{code:s}=e.nativeEvent;if(n.start.includes(s)){const i=a.activatorNode.current;return i&&e.target!==i?!1:(e.preventDefault(),r==null||r({event:e.nativeEvent}),!0)}return!1}}];function Ck(e){return!!(e&&"distance"in e)}function _k(e){return!!(e&&"delay"in e)}class Mg{constructor(t,o,n){var r;n===void 0&&(n=SW(t.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=t,this.events=o;const{event:a}=t,{target:s}=a;this.props=t,this.events=o,this.document=Da(s),this.documentListeners=new ii(this.document),this.listeners=new ii(n),this.windowListeners=new ii(Dt(s)),this.initialCoordinates=(r=Pg(a))!=null?r:bo,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){const{events:t,props:{options:{activationConstraint:o,bypassActivationConstraint:n}}}=this;if(this.listeners.add(t.move.name,this.handleMove,{passive:!1}),this.listeners.add(t.end.name,this.handleEnd),t.cancel&&this.listeners.add(t.cancel.name,this.handleCancel),this.windowListeners.add(eo.Resize,this.handleCancel),this.windowListeners.add(eo.DragStart,vk),this.windowListeners.add(eo.VisibilityChange,this.handleCancel),this.windowListeners.add(eo.ContextMenu,vk),this.documentListeners.add(eo.Keydown,this.handleKeydown),o){if(n!=null&&n({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(_k(o)){this.timeoutId=setTimeout(this.handleStart,o.delay),this.handlePending(o);return}if(Ck(o)){this.handlePending(o);return}}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),this.timeoutId!==null&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handlePending(t,o){const{active:n,onPending:r}=this.props;r(n,t,this.initialCoordinates,o)}handleStart(){const{initialCoordinates:t}=this,{onStart:o}=this.props;t&&(this.activated=!0,this.documentListeners.add(eo.Click,PW,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(eo.SelectionChange,this.removeTextSelection),o(t))}handleMove(t){var o;const{activated:n,initialCoordinates:r,props:a}=this,{onMove:s,options:{activationConstraint:i}}=a;if(!r)return;const l=(o=Pg(t))!=null?o:bo,c=Qc(r,l);if(!n&&i){if(Ck(i)){if(i.tolerance!=null&&Dg(c,i.tolerance))return this.handleCancel();if(Dg(c,i.distance))return this.handleStart()}if(_k(i)&&Dg(c,i.tolerance))return this.handleCancel();this.handlePending(i,c);return}t.cancelable&&t.preventDefault(),s(l)}handleEnd(){const{onAbort:t,onEnd:o}=this.props;this.detach(),this.activated||t(this.props.active),o()}handleCancel(){const{onAbort:t,onCancel:o}=this.props;this.detach(),this.activated||t(this.props.active),o()}handleKeydown(t){t.code===Ae.Esc&&this.handleCancel()}removeTextSelection(){var t;(t=this.document.getSelection())==null||t.removeAllRanges()}}const kW={cancel:{name:"pointercancel"},move:{name:"pointermove"},end:{name:"pointerup"}};class Og extends Mg{constructor(t){const{event:o}=t,n=Da(o.target);super(t,kW,n)}}Og.activators=[{eventName:"onPointerDown",handler:(e,t)=>{let{nativeEvent:o}=e,{onActivation:n}=t;return!o.isPrimary||o.button!==0?!1:(n==null||n({event:o}),!0)}}];const EW={move:{name:"mousemove"},end:{name:"mouseup"}};var Ag;(function(e){e[e.RightClick=2]="RightClick"})(Ag||(Ag={}));class IW extends Mg{constructor(t){super(t,EW,Da(t.event.target))}}IW.activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:o}=e,{onActivation:n}=t;return o.button===Ag.RightClick?!1:(n==null||n({event:o}),!0)}}];const Ng={cancel:{name:"touchcancel"},move:{name:"touchmove"},end:{name:"touchend"}};class DW extends Mg{constructor(t){super(t,Ng)}static setup(){return window.addEventListener(Ng.move.name,t,{capture:!1,passive:!1}),function(){window.removeEventListener(Ng.move.name,t)};function t(){}}}DW.activators=[{eventName:"onTouchStart",handler:(e,t)=>{let{nativeEvent:o}=e,{onActivation:n}=t;const{touches:r}=o;return r.length>1?!1:(n==null||n({event:o}),!0)}}];var li;(function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"})(li||(li={}));var tu;(function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"})(tu||(tu={}));function MW(e){let{acceleration:t,activator:o=li.Pointer,canScroll:n,draggingRect:r,enabled:a,interval:s=5,order:i=tu.TreeOrder,pointerCoordinates:l,scrollableAncestors:c,scrollableAncestorRects:d,delta:f,threshold:p}=e;const g=AW({delta:f,disabled:!a}),[x,m]=HV(),b=h.useRef({x:0,y:0}),y=h.useRef({x:0,y:0}),C=h.useMemo(()=>{switch(o){case li.Pointer:return l?{top:l.y,bottom:l.y,left:l.x,right:l.x}:null;case li.DraggableRect:return r}},[o,r,l]),w=h.useRef(null),P=h.useCallback(()=>{const _=w.current;if(!_)return;const T=b.current.x*y.current.x,k=b.current.y*y.current.y;_.scrollBy(T,k)},[]),S=h.useMemo(()=>i===tu.TreeOrder?[...c].reverse():c,[i,c]);h.useEffect(()=>{if(!a||!c.length||!C){m();return}for(const _ of S){if((n==null?void 0:n(_))===!1)continue;const T=c.indexOf(_),k=d[T];if(!k)continue;const{direction:E,speed:D}=bW(_,k,C,t,p);for(const O of["x","y"])g[O][E[O]]||(D[O]=0,E[O]=0);if(D.x>0||D.y>0){m(),w.current=_,x(P,s),b.current=D,y.current=E;return}}b.current={x:0,y:0},y.current={x:0,y:0},m()},[t,P,n,m,a,s,JSON.stringify(C),JSON.stringify(g),x,c,S,d,JSON.stringify(p)])}const OW={x:{[pt.Backward]:!1,[pt.Forward]:!1},y:{[pt.Backward]:!1,[pt.Forward]:!1}};function AW(e){let{delta:t,disabled:o}=e;const n=Cg(t);return ri(r=>{if(o||!n||!r)return OW;const a={x:Math.sign(t.x-n.x),y:Math.sign(t.y-n.y)};return{x:{[pt.Backward]:r.x[pt.Backward]||a.x===-1,[pt.Forward]:r.x[pt.Forward]||a.x===1},y:{[pt.Backward]:r.y[pt.Backward]||a.y===-1,[pt.Forward]:r.y[pt.Forward]||a.y===1}}},[o,t,n])}function NW(e,t){const o=t!=null?e.get(t):void 0,n=o?o.node.current:null;return ri(r=>{var a;return t==null?null:(a=n??r)!=null?a:null},[n,t])}function $W(e,t){return h.useMemo(()=>e.reduce((o,n)=>{const{sensor:r}=n,a=r.activators.map(s=>({eventName:s.eventName,handler:t(s.handler,n)}));return[...o,...a]},[]),[e,t])}var ci;(function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"})(ci||(ci={}));var $g;(function(e){e.Optimized="optimized"})($g||($g={}));const Sk=new Map;function FW(e,t){let{dragging:o,dependencies:n,config:r}=t;const[a,s]=h.useState(null),{frequency:i,measure:l,strategy:c}=r,d=h.useRef(e),f=b(),p=ni(f),g=h.useCallback(function(y){y===void 0&&(y=[]),!p.current&&s(C=>C===null?y:C.concat(y.filter(w=>!C.includes(w))))},[p]),x=h.useRef(null),m=ri(y=>{if(f&&!o)return Sk;if(!y||y===Sk||d.current!==e||a!=null){const C=new Map;for(let w of e){if(!w)continue;if(a&&a.length>0&&!a.includes(w.id)&&w.rect.current){C.set(w.id,w.rect.current);continue}const P=w.node.current,S=P?new Ig(l(P),P):null;w.rect.current=S,S&&C.set(w.id,S)}return C}return y},[e,a,o,f,l]);return h.useEffect(()=>{d.current=e},[e]),h.useEffect(()=>{f||g()},[o,f]),h.useEffect(()=>{a&&a.length>0&&s(null)},[JSON.stringify(a)]),h.useEffect(()=>{f||typeof i!="number"||x.current!==null||(x.current=setTimeout(()=>{g(),x.current=null},i))},[i,f,g,...n]),{droppableRects:m,measureDroppableContainers:g,measuringScheduled:a!=null};function b(){switch(c){case ci.Always:return!1;case ci.BeforeDragging:return o;default:return!o}}}function Pk(e,t){return ri(o=>e?o||(typeof t=="function"?t(e):e):null,[t,e])}function LW(e,t){return Pk(e,t)}function zW(e){let{callback:t,disabled:o}=e;const n=wg(t),r=h.useMemo(()=>{if(o||typeof window>"u"||typeof window.MutationObserver>"u")return;const{MutationObserver:a}=window;return new a(n)},[n,o]);return h.useEffect(()=>()=>r==null?void 0:r.disconnect(),[r]),r}function ou(e){let{callback:t,disabled:o}=e;const n=wg(t),r=h.useMemo(()=>{if(o||typeof window>"u"||typeof window.ResizeObserver>"u")return;const{ResizeObserver:a}=window;return new a(n)},[o]);return h.useEffect(()=>()=>r==null?void 0:r.disconnect(),[r]),r}function BW(e){return new Ig(Oa(e),e)}function Tk(e,t,o){t===void 0&&(t=BW);const[n,r]=h.useState(null);function a(){r(l=>{if(!e)return null;if(e.isConnected===!1){var c;return(c=l??o)!=null?c:null}const d=t(e);return JSON.stringify(l)===JSON.stringify(d)?l:d})}const s=zW({callback(l){if(e)for(const c of l){const{type:d,target:f}=c;if(d==="childList"&&f instanceof HTMLElement&&f.contains(e)){a();break}}}}),i=ou({callback:a});return Fo(()=>{a(),e?(i==null||i.observe(e),s==null||s.observe(document.body,{childList:!0,subtree:!0})):(i==null||i.disconnect(),s==null||s.disconnect())},[e]),n}function HW(e){const t=Pk(e);return dk(e,t)}const kk=[];function VW(e){const t=h.useRef(e),o=ri(n=>e?n&&n!==kk&&e&&t.current&&e.parentNode===t.current.parentNode?n:Tg(e):kk,[e]);return h.useEffect(()=>{t.current=e},[e]),o}function WW(e){const[t,o]=h.useState(null),n=h.useRef(e),r=h.useCallback(a=>{const s=kg(a.target);s&&o(i=>i?(i.set(s,Eg(s)),new Map(i)):null)},[]);return h.useEffect(()=>{const a=n.current;if(e!==a){s(a);const i=e.map(l=>{const c=kg(l);return c?(c.addEventListener("scroll",r,{passive:!0}),[c,Eg(c)]):null}).filter(l=>l!=null);o(i.length?new Map(i):null),n.current=e}return()=>{s(e),s(a)};function s(i){i.forEach(l=>{const c=kg(l);c==null||c.removeEventListener("scroll",r)})}},[r,e]),h.useMemo(()=>e.length?t?Array.from(t.values()).reduce((a,s)=>Ma(a,s),bo):bk(e):bo,[e,t])}function Ek(e,t){t===void 0&&(t=[]);const o=h.useRef(null);return h.useEffect(()=>{o.current=null},t),h.useEffect(()=>{const n=e!==bo;n&&!o.current&&(o.current=e),!n&&o.current&&(o.current=null)},[e]),o.current?Qc(e,o.current):bo}function RW(e){h.useEffect(()=>{if(!Zc)return;const t=e.map(o=>{let{sensor:n}=o;return n.setup==null?void 0:n.setup()});return()=>{for(const o of t)o==null||o()}},e.map(t=>{let{sensor:o}=t;return o}))}function GW(e,t){return h.useMemo(()=>e.reduce((o,n)=>{let{eventName:r,handler:a}=n;return o[r]=s=>{a(s,t)},o},{}),[e,t])}function Ik(e){return h.useMemo(()=>e?hW(e):null,[e])}const Dk=[];function jW(e,t){t===void 0&&(t=Oa);const[o]=e,n=Ik(o?Dt(o):null),[r,a]=h.useState(Dk);function s(){a(()=>e.length?e.map(l=>mk(l)?n:new Ig(t(l),l)):Dk)}const i=ou({callback:s});return Fo(()=>{i==null||i.disconnect(),s(),e.forEach(l=>i==null?void 0:i.observe(l))},[e]),r}function UW(e){if(!e)return null;if(e.children.length>1)return e;const t=e.children[0];return oi(t)?t:e}function qW(e){let{measure:t}=e;const[o,n]=h.useState(null),r=h.useCallback(c=>{for(const{target:d}of c)if(oi(d)){n(f=>{const p=t(d);return f?{...f,width:p.width,height:p.height}:p});break}},[t]),a=ou({callback:r}),s=h.useCallback(c=>{const d=UW(c);a==null||a.disconnect(),d&&(a==null||a.observe(d)),n(d?t(d):null)},[t,a]),[i,l]=Jc(s);return h.useMemo(()=>({nodeRef:i,rect:o,setRef:l}),[o,i,l])}const YW=[{sensor:Og,options:{}},{sensor:wk,options:{}}],KW={current:{}},nu={draggable:{measure:fk},droppable:{measure:fk,strategy:ci.WhileDragging,frequency:$g.Optimized},dragOverlay:{measure:Oa}};class ui extends Map{get(t){var o;return t!=null&&(o=super.get(t))!=null?o:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(t=>{let{disabled:o}=t;return!o})}getNodeFor(t){var o,n;return(o=(n=this.get(t))==null?void 0:n.node.current)!=null?o:void 0}}const XW={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new ui,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:eu},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:nu,measureDroppableContainers:eu,windowRect:null,measuringScheduled:!1},ZW={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:eu,draggableNodes:new Map,over:null,measureDroppableContainers:eu},ru=h.createContext(ZW),Mk=h.createContext(XW);function JW(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new ui}}}function QW(e,t){switch(t.type){case at.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case at.DragMove:return e.draggable.active==null?e:{...e,draggable:{...e.draggable,translate:{x:t.coordinates.x-e.draggable.initialCoordinates.x,y:t.coordinates.y-e.draggable.initialCoordinates.y}}};case at.DragEnd:case at.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case at.RegisterDroppable:{const{element:o}=t,{id:n}=o,r=new ui(e.droppable.containers);return r.set(n,o),{...e,droppable:{...e.droppable,containers:r}}}case at.SetDroppableDisabled:{const{id:o,key:n,disabled:r}=t,a=e.droppable.containers.get(o);if(!a||n!==a.key)return e;const s=new ui(e.droppable.containers);return s.set(o,{...a,disabled:r}),{...e,droppable:{...e.droppable,containers:s}}}case at.UnregisterDroppable:{const{id:o,key:n}=t,r=e.droppable.containers.get(o);if(!r||n!==r.key)return e;const a=new ui(e.droppable.containers);return a.delete(o),{...e,droppable:{...e.droppable,containers:a}}}default:return e}}function eR(e){let{disabled:t}=e;const{active:o,activatorEvent:n,draggableNodes:r}=h.useContext(ru),a=Cg(n),s=Cg(o==null?void 0:o.id);return h.useEffect(()=>{if(!t&&!n&&a&&s!=null){if(!Sg(a)||document.activeElement===a.target)return;const i=r.get(s);if(!i)return;const{activatorNode:l,node:c}=i;if(!l.current&&!c.current)return;requestAnimationFrame(()=>{for(const d of[l.current,c.current]){if(!d)continue;const f=RV(d);if(f){f.focus();break}}})}},[n,t,r,s,a]),null}function tR(e,t){let{transform:o,...n}=t;return e!=null&&e.length?e.reduce((r,a)=>a({transform:r,...n}),o):o}function oR(e){return h.useMemo(()=>({draggable:{...nu.draggable,...e==null?void 0:e.draggable},droppable:{...nu.droppable,...e==null?void 0:e.droppable},dragOverlay:{...nu.dragOverlay,...e==null?void 0:e.dragOverlay}}),[e==null?void 0:e.draggable,e==null?void 0:e.droppable,e==null?void 0:e.dragOverlay])}function nR(e){let{activeNode:t,measure:o,initialRect:n,config:r=!0}=e;const a=h.useRef(!1),{x:s,y:i}=typeof r=="boolean"?{x:r,y:r}:r;Fo(()=>{if(!s&&!i||!t){a.current=!1;return}if(a.current||!n)return;const c=t==null?void 0:t.node.current;if(!c||c.isConnected===!1)return;const d=o(c),f=dk(d,n);if(s||(f.x=0),i||(f.y=0),a.current=!0,Math.abs(f.x)>0||Math.abs(f.y)>0){const p=pk(c);p&&p.scrollBy({top:f.y,left:f.x})}},[t,s,i,n,o])}const Ok=h.createContext({...bo,scaleX:1,scaleY:1});var Ln;(function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"})(Ln||(Ln={}));const rR=h.memo(function(t){var o,n,r,a;let{id:s,accessibility:i,autoScroll:l=!0,children:c,sensors:d=YW,collisionDetection:f=iW,measuring:p,modifiers:g,...x}=t;const m=h.useReducer(QW,void 0,JW),[b,y]=m,[C,w]=KV(),[P,S]=h.useState(Ln.Uninitialized),_=P===Ln.Initialized,{draggable:{active:T,nodes:k,translate:E},droppable:{containers:D}}=b,O=T!=null?k.get(T):null,N=h.useRef({initial:null,translated:null}),z=h.useMemo(()=>{var le;return T!=null?{id:T,data:(le=O==null?void 0:O.data)!=null?le:KW,rect:N}:null},[T,O]),B=h.useRef(null),[G,R]=h.useState(null),[A,F]=h.useState(null),V=ni(x,Object.values(x)),M=ai("DndDescribedBy",s),Y=h.useMemo(()=>D.getEnabled(),[D]),H=oR(p),{droppableRects:L,measureDroppableContainers:q,measuringScheduled:j}=FW(Y,{dragging:_,dependencies:[E.x,E.y],config:H.droppable}),W=NW(k,T),U=h.useMemo(()=>A?Pg(A):null,[A]),K=xe(),J=LW(W,H.draggable.measure);nR({activeNode:T!=null?k.get(T):null,config:K.layoutShiftCompensation,initialRect:J,measure:H.draggable.measure});const Z=Tk(W,H.draggable.measure,J),te=Tk(W?W.parentElement:null),X=h.useRef({activatorEvent:null,active:null,activeNode:W,collisionRect:null,collisions:null,droppableRects:L,draggableNodes:k,draggingNode:null,draggingNodeRect:null,droppableContainers:D,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),Q=D.getNodeFor((o=X.current.over)==null?void 0:o.id),be=qW({measure:H.dragOverlay.measure}),De=(n=be.nodeRef.current)!=null?n:W,Fe=_?(r=be.rect)!=null?r:Z:null,Ge=!!(be.nodeRef.current&&be.rect),Me=HW(Ge?null:Z),kt=Ik(De?Dt(De):null),st=VW(_?Q??W:null),it=jW(st),qe=tR(g,{transform:{x:E.x-Me.x,y:E.y-Me.y,scaleX:1,scaleY:1},activatorEvent:A,active:z,activeNodeRect:Z,containerNodeRect:te,draggingNodeRect:Fe,over:X.current.over,overlayNodeRect:be.rect,scrollableAncestors:st,scrollableAncestorRects:it,windowRect:kt}),Lo=U?Ma(U,E):null,se=WW(st),Ce=Ek(se),Pe=Ek(se,[Z]),ht=Ma(qe,Ce),yo=Fe?uW(Fe,qe):null,_r=z&&yo?f({active:z,collisionRect:yo,droppableRects:L,droppableContainers:Y,pointerCoordinates:Lo}):null,xu=rW(_r,"id"),[zo,bu]=h.useState(null),lm=Ge?qe:Ma(qe,Pe),cm=lW(lm,(a=zo==null?void 0:zo.rect)!=null?a:null,Z),bi=h.useRef(null),vu=h.useCallback((le,ie)=>{let{sensor:Ee,options:_e}=ie;if(B.current==null)return;const je=k.get(B.current);if(!je)return;const ge=le.nativeEvent,to=new Ee({active:B.current,activeNode:je,event:ge,options:_e,context:X,onAbort(lt){if(!k.get(lt))return;const{onDragAbort:Ot}=V.current,pn={id:lt};Ot==null||Ot(pn),C({type:"onDragAbort",event:pn})},onPending(lt,oo,Ot,pn){if(!k.get(lt))return;const{onDragPending:wi}=V.current,Vn={id:lt,constraint:oo,initialCoordinates:Ot,offset:pn};wi==null||wi(Vn),C({type:"onDragPending",event:Vn})},onStart(lt){const oo=B.current;if(oo==null)return;const Ot=k.get(oo);if(!Ot)return;const{onDragStart:pn}=V.current,yi={activatorEvent:ge,active:{id:oo,data:Ot.data,rect:N}};vt.unstable_batchedUpdates(()=>{pn==null||pn(yi),S(Ln.Initializing),y({type:at.DragStart,initialCoordinates:lt,active:oo}),C({type:"onDragStart",event:yi}),R(bi.current),F(ge)})},onMove(lt){y({type:at.DragMove,coordinates:lt})},onEnd:Hn(at.DragEnd),onCancel:Hn(at.DragCancel)});bi.current=to;function Hn(lt){return async function(){const{active:Ot,collisions:pn,over:yi,scrollAdjustedTranslate:wi}=X.current;let Vn=null;if(Ot&&wi){const{cancelDrop:Ci}=V.current;Vn={activatorEvent:ge,active:Ot,collisions:pn,delta:wi,over:yi},lt===at.DragEnd&&typeof Ci=="function"&&await Promise.resolve(Ci(Vn))&&(lt=at.DragCancel)}B.current=null,vt.unstable_batchedUpdates(()=>{y({type:lt}),S(Ln.Uninitialized),bu(null),R(null),F(null),bi.current=null;const Ci=lt===at.DragEnd?"onDragEnd":"onDragCancel";if(Vn){const dm=V.current[Ci];dm==null||dm(Vn),C({type:Ci,event:Vn})}})}}},[k]),yu=h.useCallback((le,ie)=>(Ee,_e)=>{const je=Ee.nativeEvent,ge=k.get(_e);if(B.current!==null||!ge||je.dndKit||je.defaultPrevented)return;const to={active:ge};le(Ee,ie.options,to)===!0&&(je.dndKit={capturedBy:ie.sensor},B.current=_e,vu(Ee,ie))},[k,vu]),vi=$W(d,yu);RW(d),Fo(()=>{Z&&P===Ln.Initializing&&S(Ln.Initialized)},[Z,P]),h.useEffect(()=>{const{onDragMove:le}=V.current,{active:ie,activatorEvent:Ee,collisions:_e,over:je}=X.current;if(!ie||!Ee)return;const ge={active:ie,activatorEvent:Ee,collisions:_e,delta:{x:ht.x,y:ht.y},over:je};vt.unstable_batchedUpdates(()=>{le==null||le(ge),C({type:"onDragMove",event:ge})})},[ht.x,ht.y]),h.useEffect(()=>{const{active:le,activatorEvent:ie,collisions:Ee,droppableContainers:_e,scrollAdjustedTranslate:je}=X.current;if(!le||B.current==null||!ie||!je)return;const{onDragOver:ge}=V.current,to=_e.get(xu),Hn=to&&to.rect.current?{id:to.id,rect:to.rect.current,data:to.data,disabled:to.disabled}:null,lt={active:le,activatorEvent:ie,collisions:Ee,delta:{x:je.x,y:je.y},over:Hn};vt.unstable_batchedUpdates(()=>{bu(Hn),ge==null||ge(lt),C({type:"onDragOver",event:lt})})},[xu]),Fo(()=>{X.current={activatorEvent:A,active:z,activeNode:W,collisionRect:yo,collisions:_r,droppableRects:L,draggableNodes:k,draggingNode:De,draggingNodeRect:Fe,droppableContainers:D,over:zo,scrollableAncestors:st,scrollAdjustedTranslate:ht},N.current={initial:Fe,translated:yo}},[z,W,_r,yo,k,De,Fe,L,D,zo,st,ht]),MW({...K,delta:E,draggingRect:yo,pointerCoordinates:Lo,scrollableAncestors:st,scrollableAncestorRects:it});const um=h.useMemo(()=>({active:z,activeNode:W,activeNodeRect:Z,activatorEvent:A,collisions:_r,containerNodeRect:te,dragOverlay:be,draggableNodes:k,droppableContainers:D,droppableRects:L,over:zo,measureDroppableContainers:q,scrollableAncestors:st,scrollableAncestorRects:it,measuringConfiguration:H,measuringScheduled:j,windowRect:kt}),[z,W,Z,A,_r,te,be,k,D,L,zo,q,st,it,H,j,kt]),wu=h.useMemo(()=>({activatorEvent:A,activators:vi,active:z,activeNodeRect:Z,ariaDescribedById:{draggable:M},dispatch:y,draggableNodes:k,over:zo,measureDroppableContainers:q}),[A,vi,z,Z,y,M,k,zo,q]);return h.createElement(ck.Provider,{value:w},h.createElement(ru.Provider,{value:wu},h.createElement(Mk.Provider,{value:um},h.createElement(Ok.Provider,{value:cm},c)),h.createElement(eR,{disabled:(i==null?void 0:i.restoreFocus)===!1})),h.createElement(JV,{...i,hiddenTextDescribedById:M}));function xe(){const le=(G==null?void 0:G.autoScrollEnabled)===!1,ie=typeof l=="object"?l.enabled===!1:l===!1,Ee=_&&!le&&!ie;return typeof l=="object"?{...l,enabled:Ee}:{enabled:Ee}}}),aR=h.createContext(null),Ak="button",sR="Draggable";function iR(e){let{id:t,data:o,disabled:n=!1,attributes:r}=e;const a=ai(sR),{activators:s,activatorEvent:i,active:l,activeNodeRect:c,ariaDescribedById:d,draggableNodes:f,over:p}=h.useContext(ru),{role:g=Ak,roleDescription:x="draggable",tabIndex:m=0}=r??{},b=(l==null?void 0:l.id)===t,y=h.useContext(b?Ok:aR),[C,w]=Jc(),[P,S]=Jc(),_=GW(s,t),T=ni(o);Fo(()=>(f.set(t,{id:t,key:a,node:C,activatorNode:P,data:T}),()=>{const E=f.get(t);E&&E.key===a&&f.delete(t)}),[f,t]);const k=h.useMemo(()=>({role:g,tabIndex:m,"aria-disabled":n,"aria-pressed":b&&g===Ak?!0:void 0,"aria-roledescription":x,"aria-describedby":d.draggable}),[n,g,m,b,x,d.draggable]);return{active:l,activatorEvent:i,activeNodeRect:c,attributes:k,isDragging:b,listeners:n?void 0:_,node:C,over:p,setNodeRef:w,setActivatorNodeRef:S,transform:y}}function lR(){return h.useContext(Mk)}const cR="Droppable",uR={timeout:25};function dR(e){let{data:t,disabled:o=!1,id:n,resizeObserverConfig:r}=e;const a=ai(cR),{active:s,dispatch:i,over:l,measureDroppableContainers:c}=h.useContext(ru),d=h.useRef({disabled:o}),f=h.useRef(!1),p=h.useRef(null),g=h.useRef(null),{disabled:x,updateMeasurementsFor:m,timeout:b}={...uR,...r},y=ni(m??n),C=h.useCallback(()=>{if(!f.current){f.current=!0;return}g.current!=null&&clearTimeout(g.current),g.current=setTimeout(()=>{c(Array.isArray(y.current)?y.current:[y.current]),g.current=null},b)},[b]),w=ou({callback:C,disabled:x||!s}),P=h.useCallback((k,E)=>{w&&(E&&(w.unobserve(E),f.current=!1),k&&w.observe(k))},[w]),[S,_]=Jc(P),T=ni(t);return h.useEffect(()=>{!w||!S.current||(w.disconnect(),f.current=!1,w.observe(S.current))},[S,w]),h.useEffect(()=>(i({type:at.RegisterDroppable,element:{id:n,key:a,disabled:o,node:S,rect:p,data:T}}),()=>i({type:at.UnregisterDroppable,key:a,id:n})),[n]),h.useEffect(()=>{o!==d.current.disabled&&(i({type:at.SetDroppableDisabled,id:n,key:a,disabled:o}),d.current.disabled=o)},[n,a,o,i]),{active:s,rect:p,isOver:(l==null?void 0:l.id)===n,node:S,over:l,setNodeRef:_}}function Fg(e,t,o){const n=e.slice();return n.splice(o<0?n.length+o:o,0,n.splice(t,1)[0]),n}function fR(e,t){return e.reduce((o,n,r)=>{const a=t.get(n);return a&&(o[r]=a),o},Array(e.length))}function au(e){return e!==null&&e>=0}function pR(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let o=0;o<e.length;o++)if(e[o]!==t[o])return!1;return!0}function hR(e){return typeof e=="boolean"?{draggable:e,droppable:e}:e}const Nk=e=>{let{rects:t,activeIndex:o,overIndex:n,index:r}=e;const a=Fg(t,n,o),s=t[r],i=a[r];return!i||!s?null:{x:i.left-s.left,y:i.top-s.top,scaleX:i.width/s.width,scaleY:i.height/s.height}},su={scaleX:1,scaleY:1},gR=e=>{var t;let{activeIndex:o,activeNodeRect:n,index:r,rects:a,overIndex:s}=e;const i=(t=a[o])!=null?t:n;if(!i)return null;if(r===o){const c=a[s];return c?{x:0,y:o<s?c.top+c.height-(i.top+i.height):c.top-i.top,...su}:null}const l=mR(a,r,o);return r>o&&r<=s?{x:0,y:-i.height-l,...su}:r<o&&r>=s?{x:0,y:i.height+l,...su}:{x:0,y:0,...su}};function mR(e,t,o){const n=e[t],r=e[t-1],a=e[t+1];return n?o<t?r?n.top-(r.top+r.height):a?a.top-(n.top+n.height):0:a?a.top-(n.top+n.height):r?n.top-(r.top+r.height):0:0}const $k="Sortable",Fk=h.createContext({activeIndex:-1,containerId:$k,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:Nk,disabled:{draggable:!1,droppable:!1}});function xR(e){let{children:t,id:o,items:n,strategy:r=Nk,disabled:a=!1}=e;const{active:s,dragOverlay:i,droppableRects:l,over:c,measureDroppableContainers:d}=lR(),f=ai($k,o),p=i.rect!==null,g=h.useMemo(()=>n.map(_=>typeof _=="object"&&"id"in _?_.id:_),[n]),x=s!=null,m=s?g.indexOf(s.id):-1,b=c?g.indexOf(c.id):-1,y=h.useRef(g),C=!pR(g,y.current),w=b!==-1&&m===-1||C,P=hR(a);Fo(()=>{C&&x&&d(g)},[C,g,x,d]),h.useEffect(()=>{y.current=g},[g]);const S=h.useMemo(()=>({activeIndex:m,containerId:f,disabled:P,disableTransforms:w,items:g,overIndex:b,useDragOverlay:p,sortedRects:fR(g,l),strategy:r}),[m,f,P.draggable,P.droppable,w,g,b,l,p,r]);return h.createElement(Fk.Provider,{value:S},t)}const bR=e=>{let{id:t,items:o,activeIndex:n,overIndex:r}=e;return Fg(o,n,r).indexOf(t)},vR=e=>{let{containerId:t,isSorting:o,wasDragging:n,index:r,items:a,newIndex:s,previousItems:i,previousContainerId:l,transition:c}=e;return!c||!n||i!==a&&r===s?!1:o?!0:s!==r&&t===l},yR={duration:200,easing:"ease"},Lk="transform",wR=si.Transition.toString({property:Lk,duration:0,easing:"linear"}),CR={roleDescription:"sortable"};function _R(e){let{disabled:t,index:o,node:n,rect:r}=e;const[a,s]=h.useState(null),i=h.useRef(o);return Fo(()=>{if(!t&&o!==i.current&&n.current){const l=r.current;if(l){const c=Oa(n.current,{ignoreTransform:!0}),d={x:l.left-c.left,y:l.top-c.top,scaleX:l.width/c.width,scaleY:l.height/c.height};(d.x||d.y)&&s(d)}}o!==i.current&&(i.current=o)},[t,o,n,r]),h.useEffect(()=>{a&&s(null)},[a]),a}function SR(e){let{animateLayoutChanges:t=vR,attributes:o,disabled:n,data:r,getNewIndex:a=bR,id:s,strategy:i,resizeObserverConfig:l,transition:c=yR}=e;const{items:d,containerId:f,activeIndex:p,disabled:g,disableTransforms:x,sortedRects:m,overIndex:b,useDragOverlay:y,strategy:C}=h.useContext(Fk),w=PR(n,g),P=d.indexOf(s),S=h.useMemo(()=>({sortable:{containerId:f,index:P,items:d},...r}),[f,r,P,d]),_=h.useMemo(()=>d.slice(d.indexOf(s)),[d,s]),{rect:T,node:k,isOver:E,setNodeRef:D}=dR({id:s,data:S,disabled:w.droppable,resizeObserverConfig:{updateMeasurementsFor:_,...l}}),{active:O,activatorEvent:N,activeNodeRect:z,attributes:B,setNodeRef:G,listeners:R,isDragging:A,over:F,setActivatorNodeRef:V,transform:M}=iR({id:s,data:S,attributes:{...CR,...o},disabled:w.draggable}),Y=BV(D,G),H=!!O,L=H&&!x&&au(p)&&au(b),q=!y&&A,j=q&&L?M:null,U=L?j??(i??C)({rects:m,activeNodeRect:z,activeIndex:p,overIndex:b,index:P}):null,K=au(p)&&au(b)?a({id:s,items:d,activeIndex:p,overIndex:b}):P,J=O==null?void 0:O.id,Z=h.useRef({activeId:J,items:d,newIndex:K,containerId:f}),te=d!==Z.current.items,X=t({active:O,containerId:f,isDragging:A,isSorting:H,id:s,index:P,items:d,newIndex:Z.current.newIndex,previousItems:Z.current.items,previousContainerId:Z.current.containerId,transition:c,wasDragging:Z.current.activeId!=null}),Q=_R({disabled:!X,index:P,node:k,rect:T});return h.useEffect(()=>{H&&Z.current.newIndex!==K&&(Z.current.newIndex=K),f!==Z.current.containerId&&(Z.current.containerId=f),d!==Z.current.items&&(Z.current.items=d)},[H,K,f,d]),h.useEffect(()=>{if(J===Z.current.activeId)return;if(J!=null&&Z.current.activeId==null){Z.current.activeId=J;return}const De=setTimeout(()=>{Z.current.activeId=J},50);return()=>clearTimeout(De)},[J]),{active:O,activeIndex:p,attributes:B,data:S,rect:T,index:P,newIndex:K,items:d,isOver:E,isSorting:H,isDragging:A,listeners:R,node:k,overIndex:b,over:F,setNodeRef:Y,setActivatorNodeRef:V,setDroppableNodeRef:D,setDraggableNodeRef:G,transform:Q??U,transition:be()};function be(){if(Q||te&&Z.current.newIndex===P)return wR;if(!(q&&!Sg(N)||!c)&&(H||X))return si.Transition.toString({...c,property:Lk})}}function PR(e,t){var o,n;return typeof e=="boolean"?{draggable:e,droppable:!1}:{draggable:(o=e==null?void 0:e.draggable)!=null?o:t.draggable,droppable:(n=e==null?void 0:e.droppable)!=null?n:t.droppable}}Ae.Down,Ae.Right,Ae.Up,Ae.Left;const zk=h.createContext(null);function iu(){return h.useContext(zk)}function TR(e){return typeof e=="object"?e.key:e}function kR(e,t){const o=e.length;return new Proxy(e,{get(n,r,a){if(typeof r=="string"){const s=r.charCodeAt(0);if(s>=48&&s<=57){const i=+r;if(Number.isInteger(i)&&i>=0&&i<o){let l=n[i];if(typeof l!="object"){const c=t[i*2];l=n[i]={index:i,key:l,start:c,size:t[i*2+1],end:c+t[i*2+1],lane:0}}return l}}if(r==="length")return o}return Reflect.get(n,r,a)}})}function Aa(e,t,o){let n=o.initialDeps??[],r,a=!0;function s(){var i;const l=process.env.NODE_ENV!=="production"&&!!o.key&&!!((i=o.debug)!=null&&i.call(o));let c=0;l&&(c=Date.now());const d=e();if(!(d.length!==n.length||d.some((g,x)=>n[x]!==g)))return r;n=d;let p=0;if(l&&(p=Date.now()),r=t(...d),l){const g=Math.round((Date.now()-c)*100)/100,x=Math.round((Date.now()-p)*100)/100,m=x/16,b=(y,C)=>{for(y=String(y);y.length<C;)y=" "+y;return y};console.info(`%c⏱ ${b(x,5)} /${b(g,5)} ms`,`
|
|
369
|
-
font-size: .6rem;
|
|
370
|
-
font-weight: bold;
|
|
371
|
-
color: hsl(${Math.max(0,Math.min(120-120*m,120))}deg 100% 31%);`,o==null?void 0:o.key)}return o!=null&&o.onChange&&!(a&&o.skipInitialOnChange)&&o.onChange(r),a=!1,r}return s.updateDeps=i=>{n=i},s}function Bk(e,t){if(e===void 0)throw new Error("Unexpected undefined");return e}const Hk=(e,t)=>Math.abs(e-t)<1.01,ER=(e,t,o)=>{let n;return Object.assign(function(...r){e.clearTimeout(n),n=e.setTimeout(()=>t.apply(this,r),o)},{cancel:()=>{e.clearTimeout(n)}})};let di;const Lg=()=>{if(di!==void 0)return di;if(typeof navigator>"u")return di=!1;if(/iP(hone|od|ad)/.test(navigator.userAgent))return di=!0;const e=navigator.maxTouchPoints;return di=navigator.platform==="MacIntel"&&e!==void 0&&e>0},Vk=e=>{const{offsetWidth:t,offsetHeight:o}=e;return{width:t,height:o}},IR=e=>e,DR=e=>{const t=Math.max(e.startIndex-e.overscan,0),n=Math.min(e.endIndex+e.overscan,e.count-1)-t+1,r=new Array(n);for(let a=0;a<n;a++)r[a]=t+a;return r},MR=(e,t)=>{const o=e.scrollElement;if(!o)return;const n=e.targetWindow;if(!n)return;const r=s=>{const{width:i,height:l}=s;t({width:Math.round(i),height:Math.round(l)})};if(r(Vk(o)),!n.ResizeObserver)return()=>{};const a=new n.ResizeObserver(s=>{const i=()=>{const l=s[0];if(l!=null&&l.borderBoxSize){const c=l.borderBoxSize[0];if(c){r({width:c.inlineSize,height:c.blockSize});return}}r(Vk(o))};e.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(i):i()});return a.observe(o,{box:"border-box"}),()=>{a.unobserve(o)}},lu={passive:!0},OR=typeof window>"u"?!0:"onscrollend"in window,AR=(e,t,o)=>{const n=e.scrollElement;if(!n)return;const r=e.targetWindow;if(!r)return;const a=e.options.useScrollendEvent&&OR;let s=0;const i=a?null:ER(r,()=>t(o(n),!1),e.options.isScrollingResetDelay),l=f=>()=>{s=o(n),i==null||i(),t(s,f)},c=l(!0),d=l(!1);return n.addEventListener("scroll",c,lu),a&&n.addEventListener("scrollend",d,lu),()=>{n.removeEventListener("scroll",c),a&&n.removeEventListener("scrollend",d),i==null||i.cancel()}},NR=(e,t)=>AR(e,t,o=>{const{horizontal:n,isRtl:r}=e.options;return n?o.scrollLeft*(r&&-1||1):o.scrollTop}),$R=(e,t,o)=>{if(o.options.useCachedMeasurements){const n=o.indexFromElement(e),r=o.options.getItemKey(n);return o.itemSizeCache.get(r)??o.options.estimateSize(n)}if(t!=null&&t.borderBoxSize){const n=t.borderBoxSize[0];if(n)return Math.round(n[o.options.horizontal?"inlineSize":"blockSize"])}if(!t){const n=o.indexFromElement(e),r=o.options.getItemKey(n),a=o.itemSizeCache.get(r);if(a!==void 0)return a}return e[o.options.horizontal?"offsetWidth":"offsetHeight"]},FR=(e,{adjustments:t=0,behavior:o},n)=>{var r,a;(a=(r=n.scrollElement)==null?void 0:r.scrollTo)==null||a.call(r,{[n.options.horizontal?"left":"top"]:e+t,behavior:o})};function LR(e,t,o,n){if(t===0)return!1;const r=n(0),a=new Set;let s=0;for(;s<e;){const l=o(s);if(l===r)break;a.add(l),s++}const i=e-s;if(i===0||i>=t)return!1;for(let l=0;l<i;l++)if(n(l)!==o(s+l))return!1;for(let l=i;l<t;l++)if(a.has(n(l)))return!1;return!0}class zR{constructor(t){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.scrollState=null,this.measurementsCache=[],this._singleLaneMeasurements=null,this.itemSizeCache=new Map,this.itemSizeCacheVersion=0,this.laneAssignments=new Map,this.pendingMin=null,this.prevLanes=void 0,this.lanesChangedFlag=!1,this.lanesSettling=!1,this.pendingScrollAnchor=null,this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this._iosDeferredAdjustment=0,this._iosTouching=!1,this._iosJustTouchEnded=!1,this._iosTouchEndTimerId=null,this._intendedScrollOffset=null,this._clampedAdjustment=null,this.elementsCache=new Map,this.now=()=>{var o,n,r;return((r=(n=(o=this.targetWindow)==null?void 0:o.performance)==null?void 0:n.now)==null?void 0:r.call(n))??Date.now()},this.observer=(()=>{let o=null;const n=()=>o||(!this.targetWindow||!this.targetWindow.ResizeObserver?null:o=new this.targetWindow.ResizeObserver(r=>{r.forEach(a=>{const s=()=>{const i=a.target,l=this.indexFromElement(i);if(!i.isConnected){this.observer.unobserve(i);for(const[c,d]of this.elementsCache)if(d===i){this.elementsCache.delete(c);break}return}this.isIndexInRange(l)&&this.shouldMeasureDuringScroll(l)&&this.resizeItem(l,this.options.measureElement(i,a,this))};this.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(s):s()})}));return{disconnect:()=>{var r;(r=n())==null||r.disconnect(),o=null},observe:r=>{var a;return(a=n())==null?void 0:a.observe(r,{box:"border-box"})},unobserve:r=>{var a;return(a=n())==null?void 0:a.unobserve(r)}}})(),this.range=null,this.setOptions=o=>{var n;const r={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:IR,rangeExtractor:DR,onChange:()=>{},measureElement:$R,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,anchorTo:"start",followOnAppend:!1,scrollEndThreshold:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!1,useAnimationFrameWithResizeObserver:!1,laneAssignmentMode:"estimate",useCachedMeasurements:!1};for(const f in o){const p=o[f];p!==void 0&&(r[f]=p)}const a=this.options;let s=null,i=null,l=!1;if(a!==void 0&&a.enabled&&r.enabled&&r.anchorTo==="end"&&this.scrollElement!==null){const f=a.count,p=r.count,g=this.getMeasurements(),x=((n=this._singleLaneMeasurements)==null?void 0:n.items)??g,m=P=>TR(x[P]),b=f>0?m(0):null,y=f>0?m(f-1):null;if(p!==f||f>0&&p>0&&(r.getItemKey(0)!==b||r.getItemKey(p-1)!==y)){l=!0;const P=f>0?this.getVirtualItemForOffset(this.getScrollOffset())??g[0]:null;P&&(s=[P.key,this.getScrollOffset()-P.start]);const S=r.followOnAppend===!0?"auto":r.followOnAppend||null;S&&p>0&&this.isAtEnd(a.scrollEndThreshold)&&(f===0||r.getItemKey(p-1)!==y)&&(p>f||LR(f,p,m,r.getItemKey))&&(i=S)}}this.options=r,l&&(this.pendingMin=0,this.itemSizeCacheVersion++);let c=!1,d=0;if(s&&this.scrollOffset!==null){const[f,p]=s,g=this.getMeasurements(),{count:x,getItemKey:m}=this.options;let b=0;for(;b<x&&m(b)!==f;)b++;if(b<x){const y=g[b];if(y){const C=Math.max(0,y.start+p);!i&&C!==this.scrollOffset&&(d=C-this.scrollOffset,this.scrollOffset=C,c=!0)}}}(c||i)&&(this.pendingScrollAnchor=[c?s[0]:null,c?s[1]:0,i,d])},this.notify=o=>{var n,r;(r=(n=this.options).onChange)==null||r.call(n,this,o)},this.maybeNotify=Aa(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),o=>{this.notify(o)},{key:process.env.NODE_ENV!=="production"&&"maybeNotify",debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(o=>o()),this.unsubs=[],this.observer.disconnect(),this.rafId!=null&&this.targetWindow&&(this.targetWindow.cancelAnimationFrame(this.rafId),this.rafId=null),this.scrollState=null,this.isScrolling=!1,this.scrollDirection=null,this._iosDeferredAdjustment=0,this._iosTouching=!1,this._iosJustTouchEnded=!1,this._clampedAdjustment=null,this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var o,n;const r=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==r){if(this.cleanup(),!r){this.maybeNotify();return}if(this.scrollElement=r,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=((o=this.scrollElement)==null?void 0:o.window)??null,this.elementsCache.forEach(s=>{this.observer.observe(s)}),this.unsubs.push(this.options.observeElementRect(this,s=>{this.scrollRect=s,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(s,i)=>{if(i&&this._intendedScrollOffset===null&&s===this.scrollOffset)return;this._intendedScrollOffset!==null&&Math.abs(s-this._intendedScrollOffset)<1.5&&(s=this._intendedScrollOffset),this._intendedScrollOffset=null,this._clampedAdjustment!==null&&Math.abs(s-this._clampedAdjustment.maxAtWrite)>=1.5&&(this._clampedAdjustment=null),this.scrollAdjustments=0;const l=this.getScrollOffset();this.scrollDirection=i?l===s?this.scrollDirection:l<s?"forward":"backward":null,this.scrollOffset=s,this.isScrolling=i,this._flushIosDeferredIfReady(),this.scrollState&&this.scheduleScrollReconcile(),this.maybeNotify()})),"addEventListener"in this.scrollElement){const s=this.scrollElement,i=()=>{this._iosTouching=!0,this._iosJustTouchEnded=!1,this._iosTouchEndTimerId!==null&&this.targetWindow!=null&&(this.targetWindow.clearTimeout(this._iosTouchEndTimerId),this._iosTouchEndTimerId=null)},l=()=>{this._iosTouching=!1,!(!Lg()||this.targetWindow==null)&&(this._iosJustTouchEnded=!0,this._iosTouchEndTimerId=this.targetWindow.setTimeout(()=>{this._iosJustTouchEnded=!1,this._iosTouchEndTimerId=null,this._flushIosDeferredIfReady()},150))};s.addEventListener("touchstart",i,lu),s.addEventListener("touchend",l,lu),this.unsubs.push(()=>{s.removeEventListener("touchstart",i),s.removeEventListener("touchend",l),this._iosTouchEndTimerId!==null&&this.targetWindow!=null&&(this.targetWindow.clearTimeout(this._iosTouchEndTimerId),this._iosTouchEndTimerId=null)})}this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0})}const a=this.pendingScrollAnchor;if(this.pendingScrollAnchor=null,a&&this.scrollElement&&this.options.enabled){const[s,i,l,c]=a;s!==null&&!l&&(Lg()&&(this.isScrolling||this._iosTouching||this._iosJustTouchEnded)?c!==0&&(this._iosDeferredAdjustment+=c):((n=this.scrollState)==null?void 0:n.behavior)==="smooth"&&!Hk(this.getScrollOffset()-c,this.scrollState.lastTargetOffset)||this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0})),l&&this.scrollToEnd({behavior:l})}this._retryClampedAdjustment()},this._retryClampedAdjustment=()=>{if(this._clampedAdjustment===null||!this.scrollElement||!this.options.enabled)return;const{target:o,maxAtWrite:n}=this._clampedAdjustment,r=this.getMaxScrollOffset();r>n+.5&&(this._clampedAdjustment=o>r+.5?{target:o,maxAtWrite:r}:null,this._scrollToOffset(o,{adjustments:void 0,behavior:void 0}))},this._flushIosDeferredIfReady=()=>{if(this._iosDeferredAdjustment===0||this.isScrolling||this._iosTouching||this._iosJustTouchEnded)return;const o=this.getScrollOffset(),n=this.getMaxScrollOffset();if(o<0||o>n)return;if(this._iosDeferredAdjustment<0&&o>=n-1){this._iosDeferredAdjustment=0;return}const r=this._iosDeferredAdjustment;this._iosDeferredAdjustment=0,this._scrollToOffset(o,{adjustments:this.scrollAdjustments+=r,behavior:void 0})},this.rafId=null,this.getSize=()=>this.options.enabled?(this.scrollRect=this.scrollRect??this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0),this.getScrollOffset=()=>this.options.enabled?(this.scrollOffset=this.scrollOffset??(typeof this.options.initialOffset=="function"?this.options.initialOffset():this.options.initialOffset),this.scrollOffset):(this.scrollOffset=null,0),this.getMeasurementOptions=Aa(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled,this.options.lanes,this.options.laneAssignmentMode,this.options.gap],(o,n,r,a,s,i,l,c)=>(this.prevLanes!==void 0&&this.prevLanes!==i&&(this.lanesChangedFlag=!0),this.prevLanes=i,this.pendingMin=null,{count:o,paddingStart:n,scrollMargin:r,getItemKey:a,enabled:s,lanes:i,laneAssignmentMode:l,gap:c}),{key:!1}),this.isIndexInRange=o=>o>=0&&o<this.options.count,this.getMeasurements=Aa(()=>[this.getMeasurementOptions(),this.itemSizeCacheVersion],({count:o,paddingStart:n,scrollMargin:r,getItemKey:a,enabled:s,lanes:i,laneAssignmentMode:l,gap:c},d)=>{var f;const p=this.itemSizeCache;if(!s)return this.measurementsCache=[],this._singleLaneMeasurements=null,this.itemSizeCache.clear(),this.laneAssignments.clear(),[];if(this.laneAssignments.size>o)for(const C of this.laneAssignments.keys())C>=o&&this.laneAssignments.delete(C);this.lanesChangedFlag&&(this.lanesChangedFlag=!1,this.lanesSettling=!0,this.measurementsCache=[],this._singleLaneMeasurements=null,this.itemSizeCache.clear(),this.laneAssignments.clear(),this.pendingMin=null),this.measurementsCache.length===0&&!this.lanesSettling&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(C=>{this.itemSizeCache.set(C.key,C.size)}));const g=this.lanesSettling?0:this.pendingMin??0;if(this.pendingMin=null,this.lanesSettling&&this.measurementsCache.length===o&&(this.lanesSettling=!1),i===1){const C=o*2;let w=(f=this._singleLaneMeasurements)==null?void 0:f.flat;if(!w||w.length<C){const T=new Float64Array(C);w&&g>0&&T.set(w.subarray(0,g*2)),w=T}const P=g===0?new Array(o):this._singleLaneMeasurements.items.slice();let S;if(g===0)S=n+r;else{const T=g-1;S=w[T*2]+w[T*2+1]+c}for(let T=g;T<o;T++){const k=a(T);P[T]=k;const E=p.get(k),D=typeof E=="number"?E:this.options.estimateSize(T);w[T*2]=S,w[T*2+1]=D,S+=D+c}this._singleLaneMeasurements={flat:w,items:P};const _=kR(P,w);return this.measurementsCache=_,_}const x=this.measurementsCache.slice(0,g),m=new Array(i).fill(void 0),b=new Float64Array(i);let y=0;for(let C=0;C<g;C++){const w=x[C];w&&(m[w.lane]===void 0&&y++,m[w.lane]=C,b[w.lane]=w.end)}for(let C=g;C<o;C++){const w=a(C),P=this.laneAssignments.get(C);let S,_;const T=l==="estimate"||p.has(w);if(P!==void 0&&this.options.lanes>1){S=P;const O=m[S],N=O!==void 0?x[O]:void 0;_=N?N.end+c:n+r}else if(y===i){let O=0,N=b[0],z=m[0];for(let B=1;B<i;B++){const G=b[B];(G<N||G===N&&m[B]<z)&&(O=B,N=G,z=m[B])}S=O,_=N+c,T&&this.laneAssignments.set(C,S)}else S=C%this.options.lanes,_=n+r,T&&this.laneAssignments.set(C,S);const k=p.get(w),E=typeof k=="number"?k:this.options.estimateSize(C),D=_+E;x[C]={index:C,start:_,size:E,end:D,key:w,lane:S},m[S]===void 0&&y++,m[S]=C,b[S]=D}return this.measurementsCache=x,x},{key:process.env.NODE_ENV!=="production"&&"getMeasurements",debug:()=>this.options.debug}),this.calculateRange=Aa(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset(),this.options.lanes],(o,n,r,a)=>o.length===0||n===0?(this.range=null,null):(this.range=HR(o,n,r,a,a===1&&this._singleLaneMeasurements!==null?this._singleLaneMeasurements.flat:null),this.range),{key:process.env.NODE_ENV!=="production"&&"calculateRange",debug:()=>this.options.debug}),this.getVirtualIndexes=Aa(()=>{let o=null,n=null;const r=this.calculateRange();return r&&(o=r.startIndex,n=r.endIndex),this.maybeNotify.updateDeps([this.isScrolling,o,n]),[this.options.rangeExtractor,this.options.overscan,this.options.count,o,n]},(o,n,r,a,s)=>a===null||s===null?[]:o({startIndex:a,endIndex:s,overscan:n,count:r}),{key:process.env.NODE_ENV!=="production"&&"getVirtualIndexes",debug:()=>this.options.debug}),this.indexFromElement=o=>{const n=this.options.indexAttribute,r=o.getAttribute(n);return r?parseInt(r,10):(console.warn(`Missing attribute name '${n}={index}' on measured element.`),-1)},this.shouldMeasureDuringScroll=o=>{var n;if(!this.scrollState||this.scrollState.behavior!=="smooth")return!0;const r=this.scrollState.index??((n=this.getVirtualItemForOffset(this.scrollState.lastTargetOffset))==null?void 0:n.index);if(r!==void 0&&this.range){const a=Math.max(this.options.overscan,Math.ceil((this.range.endIndex-this.range.startIndex)/2)),s=Math.max(0,r-a),i=Math.min(this.options.count-1,r+a);return o>=s&&o<=i}return!0},this.measureElement=o=>{if(!o){this.elementsCache.forEach((s,i)=>{s.isConnected||(this.observer.unobserve(s),this.elementsCache.delete(i))});return}const n=this.indexFromElement(o);if(!this.isIndexInRange(n))return;const r=this.options.getItemKey(n),a=this.elementsCache.get(r);a!==o&&(a&&this.observer.unobserve(a),this.observer.observe(o),this.elementsCache.set(r,o)),(!this.isScrolling||this.scrollState)&&this.shouldMeasureDuringScroll(n)&&this.resizeItem(n,this.options.measureElement(o,void 0,this))},this.resizeItem=(o,n)=>{var r,a,s;if(!this.isIndexInRange(o))return;let i,l,c;const d=(r=this._singleLaneMeasurements)==null?void 0:r.flat;if(this.options.lanes===1&&d!=null)c=this.options.getItemKey(o),l=d[o*2],i=d[o*2+1];else{const g=this.measurementsCache[o];if(!g)return;c=g.key,l=g.start,i=g.size}const f=this.itemSizeCache.get(c)??i,p=n-f;if(p!==0){const g=this.options.anchorTo==="end"&&((a=this.scrollState)==null?void 0:a.behavior)!=="smooth"&&this.getVirtualDistanceFromEnd()<=this.options.scrollEndThreshold,x=g?this.getTotalSize():0,m=this.getScrollOffset()+this.scrollAdjustments,y=!this.itemSizeCache.has(c)?l<m:l+f<=m&&this.scrollDirection!=="backward",C=((s=this.scrollState)==null?void 0:s.behavior)!=="smooth"&&(this.shouldAdjustScrollPositionOnItemSizeChange!==void 0?this.shouldAdjustScrollPositionOnItemSizeChange(this.measurementsCache[o]??{index:o,key:c,start:l,size:i,end:l+i,lane:0},p,this):y);(this.pendingMin===null||o<this.pendingMin)&&(this.pendingMin=o),this.itemSizeCache.set(c,n),this.itemSizeCacheVersion++;let w=!1;g?w=this.applyScrollAdjustment(this.getTotalSize()-x):C&&(w=this.applyScrollAdjustment(p)),this.notify(w),this._retryClampedAdjustment()}},this.getVirtualItems=Aa(()=>[this.getVirtualIndexes(),this.getMeasurements()],(o,n)=>{const r=[];for(let a=0,s=o.length;a<s;a++){const i=o[a],l=n[i];r.push(l)}return r},{key:process.env.NODE_ENV!=="production"&&"getVirtualItems",debug:()=>this.options.debug}),this.getVirtualItemForOffset=o=>{var n;const r=this.getMeasurements();if(r.length===0)return;const a=(n=this._singleLaneMeasurements)==null?void 0:n.flat,s=this.options.lanes===1&&a!=null,i=Wk(0,r.length-1,s?l=>a[l*2]:l=>Bk(r[l]).start,o);return Bk(r[i])},this.getMaxScrollOffset=()=>{if(!this.scrollElement)return 0;if("scrollHeight"in this.scrollElement)return this.options.horizontal?this.scrollElement.scrollWidth-this.scrollElement.clientWidth:this.scrollElement.scrollHeight-this.scrollElement.clientHeight;{const o=this.scrollElement.document.documentElement;return this.options.horizontal?o.scrollWidth-this.scrollElement.innerWidth:o.scrollHeight-this.scrollElement.innerHeight}},this.getVirtualDistanceFromEnd=()=>Math.max(this.getTotalSize()-this.getSize()-this.getScrollOffset(),0),this.getDistanceFromEnd=()=>Math.max(this.getMaxScrollOffset()-this.getScrollOffset(),0),this.isAtEnd=(o=this.options.scrollEndThreshold)=>this.getDistanceFromEnd()<=o,this.getOffsetForAlignment=(o,n,r=0)=>{if(!this.scrollElement)return 0;const a=this.getSize(),s=this.getScrollOffset();n==="auto"&&(n=o>=s+a?"end":"start"),n==="center"?o+=(r-a)/2:n==="end"&&(o-=a);const i=this.getMaxScrollOffset();return Math.max(Math.min(i,o),0)},this.getOffsetForIndex=(o,n="auto")=>{o=Math.max(0,Math.min(o,this.options.count-1));const r=this.getSize(),a=this.getScrollOffset(),s=this.measurementsCache[o];if(!s)return;if(n==="auto")if(s.end>=a+r-this.options.scrollPaddingEnd)n="end";else if(s.start<=a+this.options.scrollPaddingStart)n="start";else return[a,n];if(n==="end"&&o===this.options.count-1)return[this.getMaxScrollOffset(),n];const i=n==="end"?s.end+this.options.scrollPaddingEnd:s.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(i,n,s.size),n]},this.scrollToOffset=(o,{align:n="start",behavior:r="auto"}={})=>{this._iosDeferredAdjustment=0;const a=this.getOffsetForAlignment(o,n),s=this.now();this.scrollState={index:null,align:n,behavior:r,startedAt:s,lastTargetOffset:a,stableFrames:0},this._scrollToOffset(a,{adjustments:void 0,behavior:r}),this.scheduleScrollReconcile()},this.scrollToIndex=(o,{align:n="auto",behavior:r="auto"}={})=>{this._iosDeferredAdjustment=0,o=Math.max(0,Math.min(o,this.options.count-1));const a=this.getOffsetForIndex(o,n);if(!a)return;const[s,i]=a,l=this.now();this.scrollState={index:o,align:i,behavior:r,startedAt:l,lastTargetOffset:s,stableFrames:0},this._scrollToOffset(s,{adjustments:void 0,behavior:r}),this.scheduleScrollReconcile()},this.scrollBy=(o,{behavior:n="auto"}={})=>{const r=this.getScrollOffset()+o,a=this.now();this.scrollState={index:null,align:"start",behavior:n,startedAt:a,lastTargetOffset:r,stableFrames:0},this._scrollToOffset(r,{adjustments:void 0,behavior:n}),this.scheduleScrollReconcile()},this.scrollToEnd=({behavior:o="auto"}={})=>{if(this.options.count>0){this.scrollToIndex(this.options.count-1,{align:"end",behavior:o});return}this.scrollToOffset(Math.max(this.getTotalSize()-this.getSize(),0),{behavior:o})},this.getTotalSize=()=>{var o,n;const r=this.getMeasurements();let a;if(r.length===0)a=this.options.paddingStart;else if(this.options.lanes===1){const s=r.length-1,i=(o=this._singleLaneMeasurements)==null?void 0:o.flat;i!=null?a=i[s*2]+i[s*2+1]:a=((n=r[s])==null?void 0:n.end)??0}else{const s=Array(this.options.lanes).fill(null);let i=r.length-1;for(;i>=0&&s.some(l=>l===null);){const l=r[i];s[l.lane]===null&&(s[l.lane]=l.end),i--}a=Math.max(...s.filter(l=>l!==null))}return Math.max(a-this.options.scrollMargin+this.options.paddingEnd,0)},this.takeSnapshot=()=>{const o=[];if(this.itemSizeCache.size===0)return o;const n=this.getMeasurements();for(const r of n)r&&this.itemSizeCache.has(r.key)&&o.push({index:r.index,key:r.key,start:r.start,size:r.size,end:r.end,lane:r.lane});return o},this._scrollToOffset=(o,{adjustments:n,behavior:r})=>{this._intendedScrollOffset=o+(n??0),this.options.scrollToFn(o,{behavior:r,adjustments:n},this)},this.measure=()=>{this.pendingMin=null,this.itemSizeCache.clear(),this.laneAssignments.clear(),this.itemSizeCacheVersion++,this.notify(!1)},this.setOptions(t)}applyScrollAdjustment(t,o){if(t===0)return!1;if(process.env.NODE_ENV!=="production"&&this.options.debug&&console.info("correction",t),Lg()&&(this.isScrolling||this._iosTouching||this._iosJustTouchEnded))return this._iosDeferredAdjustment+=t,!1;{const n=this.getScrollOffset()+this.scrollAdjustments+t,r=this.scrollElement,a=r!==null&&("scrollHeight"in r||"document"in r)?this.getMaxScrollOffset():null;return this._clampedAdjustment=a!==null&&n>a+.5?{target:n,maxAtWrite:a}:null,this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=t,behavior:o}),this.scrollOffset!==null&&(this.scrollOffset+=this.scrollAdjustments,this.scrollOffset<0&&(this.scrollOffset=0),this.scrollAdjustments=0),!0}}scheduleScrollReconcile(){if(!this.targetWindow){this.scrollState=null;return}this.rafId==null&&(this.rafId=this.targetWindow.requestAnimationFrame(()=>{this.rafId=null,this.reconcileScroll()}))}reconcileScroll(){if(!this.scrollState||!this.scrollElement)return;if(this.now()-this.scrollState.startedAt>5e3){this.scrollState=null;return}const n=this.scrollState.index!=null?this.getOffsetForIndex(this.scrollState.index,this.scrollState.align):void 0,r=n?n[0]:this.scrollState.lastTargetOffset,a=1,s=r!==this.scrollState.lastTargetOffset;if(!s&&Hk(r,this.getScrollOffset())){if(this.scrollState.stableFrames++,this.scrollState.stableFrames>=a){this.getScrollOffset()!==r&&this._scrollToOffset(r,{adjustments:void 0,behavior:"auto"}),this.scrollState=null;return}}else if(this.scrollState.stableFrames=0,s){const i=this.getSize()||600,l=Math.abs(r-this.getScrollOffset()),c=this.scrollState.behavior==="smooth"&&l>i;this.scrollState.lastTargetOffset=r,c||(this.scrollState.behavior="auto"),this._scrollToOffset(r,{adjustments:void 0,behavior:c?"smooth":"auto"})}this.scheduleScrollReconcile()}}const Wk=(e,t,o,n)=>{for(;e<=t;){const r=(e+t)/2|0,a=o(r);if(a<n)e=r+1;else if(a>n)t=r-1;else return r}return e>0?e-1:0};function BR(e,t,o){let n=0;for(;n<=t;){const r=(n+t)/2|0,a=e[r*2];if(a<o)n=r+1;else if(a>o)t=r-1;else return r}return n>0?n-1:0}function HR(e,t,o,n,r){const a=e.length-1;if(e.length<=n)return{startIndex:0,endIndex:a};if(n===1&&r!==null){const c=BR(r,a,o);let d=c;const f=o+t;for(;d<a&&r[d*2]+r[d*2+1]<f;)d++;return{startIndex:c,endIndex:d}}let i=Wk(0,a,c=>e[c].start,o),l=i;if(n===1)for(;l<a&&e[l].end<o+t;)l++;else if(n>1){const c=Array(n).fill(0);for(;l<a&&c.some(f=>f<o+t);){const f=e[l];c[f.lane]=f.end,l++}const d=Array(n).fill(o+t);for(;i>=0&&d.some(f=>f>=o);){const f=e[i];d[f.lane]=f.start,i--}i=Math.max(0,i-i%n),l=Math.min(a,l+(n-1-l%n))}return{startIndex:i,endIndex:l}}const zg=typeof document<"u"?v.useLayoutEffect:v.useEffect;function VR({useFlushSync:e=!0,directDomUpdates:t=!1,directDomUpdatesMode:o="transform",...n}){const r=v.useReducer(f=>f+1,0)[1],a=v.useRef({enabled:t,mode:o,container:null,lastSize:null,lastPositions:new WeakMap,prevRange:null});a.current.enabled=t,a.current.mode=o;const s=v.useRef(!1),i=f=>{const p=a.current;if(!p.enabled||!p.container)return;const g=f.getTotalSize();if(g!==p.lastSize){p.lastSize=g;const x=f.options.horizontal?"width":"height";p.container.style[x]=`${g}px`}},l=f=>{const p=a.current;if(!p.enabled||!p.container)return;i(f);const g=!!f.options.horizontal,x=p.mode==="transform",m=g?"left":"top",b=f.options.scrollMargin,y=f.getVirtualItems();for(const C of y){const w=C.start-b,P=f.elementsCache.get(C.key);P&&p.lastPositions.get(P)!==w&&(p.lastPositions.set(P,w),x?P.style.transform=g?`translate3d(${w}px, 0, 0)`:`translate3d(0, ${w}px, 0)`:P.style[m]=`${w}px`)}},c={...n,onChange:(f,p)=>{var g;const x=a.current;let m=!0;if(x.enabled){l(f);const b=f.range,y=x.prevRange;m=!y||y.isScrolling!==f.isScrolling||y.startIndex!==(b==null?void 0:b.startIndex)||y.endIndex!==(b==null?void 0:b.endIndex),m&&(x.prevRange=b?{startIndex:b.startIndex,endIndex:b.endIndex,isScrolling:f.isScrolling}:null)}m&&(e&&p&&!s.current?vt.flushSync(r):r()),(g=n.onChange)==null||g.call(n,f,p)}},[d]=v.useState(()=>{const f=new zR(c),p=f.measureElement;return f.measureElement=g=>{s.current=!0;try{p(g)}finally{s.current=!1}},Object.assign(f,{containerRef:g=>{const x=a.current;if(x.container=g,x.lastSize=null,g&&x.enabled){const m=f.getTotalSize();x.lastSize=m;const b=f.options.horizontal?"width":"height";g.style[b]=`${m}px`}}})});return d.setOptions(c),zg(()=>d._didMount(),[]),zg(()=>(i(d),d._willUpdate())),zg(()=>{l(d)}),d}function WR(e){return VR({observeElementRect:MR,observeElementOffset:NR,scrollToFn:FR,...e})}const RR=52;function GR(e,t={}){const{maxHeight:o,estimateSize:n=RR,overscan:r=8}=t,[a,s]=h.useState(null),i=h.useRef(null),l=h.useCallback(m=>{const b=i.current;if(m&&b&&b!==m&&b.isConnected)throw new Error("This useTableVirtual() is already driving another table. Two tables sharing one virtualiser would fight over the scrollport and the first would stop virtualising, silently. Give each table its own useTableVirtual() and its own TableVirtualized.");i.current=m,s(y=>y===m?y:m)},[]),c=WR({count:e.length,getScrollElement:()=>a,estimateSize:()=>n,overscan:r}),d=c.getVirtualItems(),f=c.getTotalSize(),p=h.useCallback(m=>{m&&c.measureElement(m)},[c]),g=h.useCallback(m=>{var b;return((b=d[m])==null?void 0:b.index)??-1},[d]),x=d[d.length-1];return h.useMemo(()=>{var m;return{rows:d.map(b=>e[b.index]),total:e.length,indexOf:g,containerRef:i,claim:l,maxHeight:o,padStart:((m=d[0])==null?void 0:m.start)??0,padEnd:x?f-x.end:f,measure:p}},[d,e,g,l,o,x,f,p])}const Bg={oxTableBody:"_oxTableBody_8465s_2",oxTableSpacer:"_oxTableSpacer_8465s_2"},jR=1e3,Na=h.forwardRef(({className:e,children:t,draggable:o=!1,items:n=[],onReorder:r,getItemId:a,...s},i)=>{const l=eW(QV(Og)),c=iu();if(o&&c)throw new Error("A table cannot be both reorderable and virtualised. A row's position in the DOM is not its position in the list once only part of it is rendered, so dropping a row would reorder the wrong ones. Use pagination for a table whose rows can be dragged.");if(!o)return u.jsxs("tbody",{ref:i,className:$(Bg.oxTableBody,e),"data-slot":"body",...s,children:[u.jsx(Rk,{height:(c==null?void 0:c.padStart)??0}),t,u.jsx(Rk,{height:(c==null?void 0:c.padEnd)??0})]});const d=n.map((p,g)=>a?a(p,g):g),f=p=>{const{active:g,over:x}=p;if(!x||g.id===x.id)return;const m=d.indexOf(g.id),b=d.indexOf(x.id);m===-1||b===-1||r==null||r(Fg(n,m,b))};return u.jsx(rR,{sensors:l,collisionDetection:aW,onDragEnd:f,accessibility:{container:typeof document<"u"?document.body:void 0},children:u.jsx(xR,{items:d,strategy:gR,children:u.jsx("tbody",{ref:i,className:$(Bg.oxTableBody,e),"data-slot":"body",...s,children:t})})})});Na.displayName="OxTableBody";function Rk({height:e}){return e<=0?null:u.jsx("tr",{"aria-hidden":"true",className:Bg.oxTableSpacer,"data-spacer":!0,children:u.jsx("td",{colSpan:jR,children:u.jsx("div",{style:{height:`${e}px`}})})})}const Hg={oxTableBulkHeader:"_oxTableBulkHeader_1fufp_2",oxTableBulkHeaderBar:"_oxTableBulkHeaderBar_1fufp_2",oxTableBulkHeaderText:"_oxTableBulkHeaderText_1fufp_2"},Vg=h.forwardRef(({className:e,style:t,selectedCount:o=0,total:n=0,children:r,...a},s)=>{const l=ve()("orxata.table.bulkHeader.selected",{count:o,total:n}),[c,d]=h.useState(null),[f,p]=h.useState(0);if(h.useEffect(()=>{if(!c)return;const x=new ResizeObserver(()=>{p(c.offsetHeight/2)});return x.observe(c),()=>x.disconnect()},[c]),o<=0)return null;const g=r===void 0?u.jsx("span",{className:Hg.oxTableBulkHeaderText,children:l}):typeof r=="function"?r({selectedCount:o,total:n,message:l}):r;return u.jsx("div",{ref:s,className:$(Hg.oxTableBulkHeader,e),style:{...t,"--ox-bulk-header-overhang":`${f}px`},"data-slot":"table-bulk-header",...a,children:u.jsx("div",{ref:d,className:Hg.oxTableBulkHeaderBar,children:g})})});Vg.displayName="OxTableBulkHeader";const Cr={oxTableCell:"_oxTableCell_2knzy_2",oxTableCellAlignLeft:"_oxTableCellAlignLeft_2knzy_2",oxTableCellAlignCenter:"_oxTableCellAlignCenter_2knzy_2",oxTableCellAlignRight:"_oxTableCellAlignRight_2knzy_2",oxTableCellFixed:"_oxTableCellFixed_2knzy_2"},UR={left:Cr.oxTableCellAlignLeft,center:Cr.oxTableCellAlignCenter,right:Cr.oxTableCellAlignRight},Wg=h.forwardRef(({className:e,align:t="left",fixed:o,fixedOffset:n="0px",style:r,children:a,...s},i)=>u.jsx("td",{ref:i,className:$(Cr.oxTableCell,UR[t],o&&["table-cell-fixed",Cr.oxTableCellFixed],o==="left"&&["table-cell-fixed-left",Cr.oxTableCellFixedLeft],o==="right"&&["table-cell-fixed-right",Cr.oxTableCellFixedRight],e),style:o?{[o]:n,...r}:r,"data-slot":"cell",...s,children:a}));Wg.displayName="OxTableCell";const fi={oxTableExpandCell:"_oxTableExpandCell_643ul_2",oxTableExpandCellHeader:"_oxTableExpandCellHeader_643ul_2",oxTableExpandButton:"_oxTableExpandButton_643ul_2",oxTableExpandButtonExpanded:"_oxTableExpandButtonExpanded_643ul_2",oxTableExpandIcon:"_oxTableExpandIcon_643ul_2"},$a=h.forwardRef(({className:e,expanded:t=!1,header:o=!1,onToggle:n,...r},a)=>{const s=o?"th":"td";return u.jsx(s,{ref:a,className:$(fi.oxTableExpandCell,o&&fi.oxTableExpandCellHeader,e),"data-slot":"expand",...r,children:!o&&u.jsx("button",{type:"button",className:$(fi.oxTableExpandButton,t&&fi.oxTableExpandButtonExpanded),onClick:()=>n==null?void 0:n(),children:u.jsx("svg",{className:fi.oxTableExpandIcon,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:u.jsx("path",{d:"M9 18l6-6-6-6"})})})})});$a.displayName="OxTableExpandCell";const cu={oxTableHead:"_oxTableHead_1en5v_2",oxTableHeadVirtual:"_oxTableHeadVirtual_1en5v_2",oxTableHeadFloat:"_oxTableHeadFloat_1en5v_2",oxTableHeadFloatRow:"_oxTableHeadFloatRow_1en5v_2"};function Gk(e){let t=e.parentElement;for(;t;){const o=getComputedStyle(t);if(o.overflowX!=="visible"||o.overflowY!=="visible")return t;t=t.parentElement}return null}function qR(e){const t=[e,e.parentElement].find(o=>o&&parseFloat(getComputedStyle(o).borderTopLeftRadius)>0);return t?getComputedStyle(t).borderTopLeftRadius:"0px"}const Fa=h.forwardRef(({className:e,children:t,...o},n)=>{const r=iu(),a=h.useRef(null),s=h.useRef(null),i=h.useRef(null),l=h.useCallback(()=>{const c=a.current,d=s.current,f=i.current,p=r==null?void 0:r.containerRef.current;if(!c||!d||!f||!p)return;const g=c.closest("table"),x=Gk(c),m=d.offsetParent??document.body;if(!g||!x)return;const b=g.getBoundingClientRect(),y=x.getBoundingClientRect(),C=p.getBoundingClientRect(),w=m.getBoundingClientRect(),P=w.left+m.clientLeft,S=w.top+m.clientTop,_=c.querySelector(":scope > tr"),T=c.querySelectorAll(":scope > tr > *");d.style.left=`${y.left-P}px`,d.style.top=`${C.top+p.clientTop-S}px`,d.style.width=`${y.width}px`,d.style.height=`${(_==null?void 0:_.getBoundingClientRect().height)??0}px`;const k=qR(p);d.style.borderTopLeftRadius=Math.abs(y.left-C.left)<2?k:"0px",d.style.borderTopRightRadius=Math.abs(y.right-C.right)<2?k:"0px",f.style.width=`${b.width}px`,f.style.transform=`translateX(${b.left-y.left}px)`,T.forEach((E,D)=>{const O=f.children[D];O&&(O.style.width=`${E.getBoundingClientRect().width}px`)})},[r]);return h.useEffect(()=>{var m;const c=a.current,d=r==null?void 0:r.containerRef.current;if(!c||!d)return;const f=Gk(c),p=c.closest("table"),g=[d,f].filter((b,y,C)=>!!b&&C.indexOf(b)===y);g.forEach(b=>b.addEventListener("scroll",l,{passive:!0}));const x=new ResizeObserver(l);return[d,f,p,(m=s.current)==null?void 0:m.offsetParent].forEach(b=>{b instanceof HTMLElement&&x.observe(b)}),c.querySelectorAll(":scope > tr, :scope > tr > *").forEach(b=>x.observe(b)),window.addEventListener("resize",l,{passive:!0}),l(),()=>{g.forEach(b=>b.removeEventListener("scroll",l)),window.removeEventListener("resize",l),x.disconnect()}}),u.jsxs(u.Fragment,{children:[u.jsx("thead",{ref:c=>{a.current=c,typeof n=="function"?n(c):n&&(n.current=c)},className:$(cu.oxTableHead,r&&cu.oxTableHeadVirtual,e),"data-slot":"head",...o,children:u.jsx("tr",{"aria-hidden":r?"true":void 0,children:t})}),r&&u.jsx("div",{ref:s,className:cu.oxTableHeadFloat,children:u.jsx("div",{ref:i,className:cu.oxTableHeadFloatRow,children:t})})]})});Fa.displayName="OxTableHead";const Ke={oxTableHeaderCell:"_oxTableHeaderCell_o9ey6_2",oxTableHeaderCellAlignLeft:"_oxTableHeaderCellAlignLeft_o9ey6_2",oxTableHeaderCellAlignCenter:"_oxTableHeaderCellAlignCenter_o9ey6_2",oxTableHeaderCellAlignRight:"_oxTableHeaderCellAlignRight_o9ey6_2",oxTableHeaderCellSortable:"_oxTableHeaderCellSortable_o9ey6_2",oxTableHeaderCellSorted:"_oxTableHeaderCellSorted_o9ey6_2",oxTableHeaderCellResizing:"_oxTableHeaderCellResizing_o9ey6_2",oxTableHeaderCellContent:"_oxTableHeaderCellContent_o9ey6_2",oxTableHeaderCellIndicator:"_oxTableHeaderCellIndicator_o9ey6_2",oxTableHeaderCellIcon:"_oxTableHeaderCellIcon_o9ey6_2",oxTableHeaderCellIconUnsorted:"_oxTableHeaderCellIconUnsorted_o9ey6_2",oxTableHeaderCellResizer:"_oxTableHeaderCellResizer_o9ey6_2",oxTableHeaderCellResizerActive:"_oxTableHeaderCellResizerActive_o9ey6_2",oxTableHeaderCellDraggable:"_oxTableHeaderCellDraggable_o9ey6_2",oxTableHeaderCellDragging:"_oxTableHeaderCellDragging_o9ey6_2",oxTableHeaderCellDragOver:"_oxTableHeaderCellDragOver_o9ey6_2",oxTableHeaderCellFixed:"_oxTableHeaderCellFixed_o9ey6_2"},YR={left:Ke.oxTableHeaderCellAlignLeft,center:Ke.oxTableHeaderCellAlignCenter,right:Ke.oxTableHeaderCellAlignRight},Rg=h.forwardRef(({className:e,sortable:t=!1,sorted:o=!1,sortDirection:n=null,resizable:r=!1,resizing:a=!1,draggable:s=!1,align:i="left",width:l,fixed:c,fixedOffset:d="0px",onSort:f,onResizeStart:p,onColumnDrop:g,style:x,children:m,...b},y)=>{const[C,w]=h.useState(!1),[P,S]=h.useState(!1),_=()=>{t&&(f==null||f())},T=B=>{B.preventDefault(),B.stopPropagation(),p==null||p(B)},k=B=>{var A;if(!s)return;w(!0);const R=B.currentTarget.dataset.field;R&&((A=B.dataTransfer)==null||A.setData("text/plain",R),B.dataTransfer.effectAllowed="move")},E=()=>{w(!1)},D=B=>{s&&(B.preventDefault(),B.dataTransfer.dropEffect="move",S(!0))},O=()=>{S(!1)},N=B=>{var R;if(!s)return;B.preventDefault(),S(!1);const G=(R=B.dataTransfer)==null?void 0:R.getData("text/plain");G&&(g==null||g(G))},z={...x};return l&&(z.width=l,z.minWidth=l),c&&(z[c]=d),u.jsxs("th",{ref:y,className:$(Ke.oxTableHeaderCell,YR[i],t&&Ke.oxTableHeaderCellSortable,o&&Ke.oxTableHeaderCellSorted,a&&Ke.oxTableHeaderCellResizing,s&&Ke.oxTableHeaderCellDraggable,C&&Ke.oxTableHeaderCellDragging,P&&Ke.oxTableHeaderCellDragOver,c&&["table-header-cell-fixed",Ke.oxTableHeaderCellFixed],c==="left"&&["table-header-cell-fixed-left",Ke.oxTableHeaderCellFixedLeft],c==="right"&&["table-header-cell-fixed-right",Ke.oxTableHeaderCellFixedRight],e),style:z,draggable:s,"data-slot":"header-cell","aria-sort":o?n==="asc"?"ascending":"descending":void 0,onClick:_,onDragStart:k,onDragEnd:E,onDragOver:D,onDragLeave:O,onDrop:N,...b,children:[u.jsxs("div",{className:Ke.oxTableHeaderCellContent,children:[m,t&&u.jsx("span",{className:Ke.oxTableHeaderCellIndicator,children:o?n==="asc"?u.jsx("svg",{className:Ke.oxTableHeaderCellIcon,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:u.jsx("path",{d:"M7 14l5-5 5 5"})}):u.jsx("svg",{className:Ke.oxTableHeaderCellIcon,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:u.jsx("path",{d:"M7 10l5 5 5-5"})}):u.jsx("svg",{className:$(Ke.oxTableHeaderCellIcon,Ke.oxTableHeaderCellIconUnsorted),viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:u.jsx("path",{d:"M7 15l5 5 5-5M7 9l5-5 5 5"})})})]}),r&&u.jsx("div",{className:$(Ke.oxTableHeaderCellResizer,a&&Ke.oxTableHeaderCellResizerActive),onMouseDown:T,onTouchStart:T})]})});Rg.displayName="OxTableHeaderCell";const La={oxTableRow:"_oxTableRow_fa9ic_2",oxTableRowSelected:"_oxTableRowSelected_fa9ic_2",oxTableRowExpanded:"_oxTableRowExpanded_fa9ic_2"},jk=h.createContext(null),za=h.forwardRef((e,t)=>{if(e.dragId!==void 0)return u.jsx(KR,{...e});const{className:o,selected:n=!1,expanded:r=!1,children:a,dragId:s,...i}=e;return u.jsx("tr",{ref:t,className:$(La.oxTableRow,n&&La.oxTableRowSelected,r&&La.oxTableRowExpanded,o),"data-slot":"row",...i,children:a})});za.displayName="OxTableRow";function KR({className:e,selected:t=!1,expanded:o=!1,children:n,dragId:r,...a}){const{setNodeRef:s,setActivatorNodeRef:i,transform:l,transition:c,isDragging:d,attributes:f,listeners:p}=SR({id:r}),g={transform:si.Transform.toString(l),transition:c,...d?{position:"relative",zIndex:2,opacity:.85}:null};return u.jsx(jk.Provider,{value:{attributes:f,listeners:p,setActivatorNodeRef:i},children:u.jsx("tr",{ref:s,style:g,className:$(La.oxTableRow,t&&La.oxTableRowSelected,o&&La.oxTableRowExpanded,e),"data-slot":"row","data-dragging":d||void 0,...a,children:n})})}const Gg={oxTableRowExpanded:"_oxTableRowExpanded_y3m5z_2",oxTableRowExpandedCell:"_oxTableRowExpandedCell_y3m5z_2",oxTableRowExpandedContent:"_oxTableRowExpandedContent_y3m5z_2"},Ba=h.forwardRef(({className:e,expanded:t=!1,colspan:o=1,children:n,...r},a)=>t?u.jsx("tr",{ref:a,className:$(Gg.oxTableRowExpanded,e),"data-slot":"row-expanded",...r,children:u.jsx("td",{colSpan:o,className:Gg.oxTableRowExpandedCell,children:u.jsx("div",{className:Gg.oxTableRowExpandedContent,children:n})})}):null);Ba.displayName="OxTableRowExpanded";const Uk=4;function XR(e,t){e(o=>Object.keys(t).every(n=>o[n]===t[n])?o:t)}function uu(){const e=iu(),t=h.useRef(null),[o,n]=h.useState({top:0,left:0,height:0}),r=h.useCallback(()=>{var f;const a=e==null?void 0:e.containerRef.current,s=t.current;if(!a||!s)return;const i=s.offsetParent??document.body,l=a.getBoundingClientRect(),c=i.getBoundingClientRect(),d=((f=a.querySelector("thead"))==null?void 0:f.getBoundingClientRect().height)??0;XR(n,{top:l.top+a.clientTop+d+Uk-(c.top+i.clientTop),left:l.left+a.clientLeft+a.clientWidth-Pl-(c.left+i.clientLeft),height:Math.max(0,a.clientHeight-d-Uk*2)})},[e]);return h.useEffect(()=>{const a=e==null?void 0:e.containerRef.current;if(!a)return;a.addEventListener("scroll",r,{passive:!0}),a.addEventListener("mouseenter",r,{passive:!0});let s=null;return typeof ResizeObserver<"u"&&(s=new ResizeObserver(r),s.observe(a)),r(),()=>{a.removeEventListener("scroll",r),a.removeEventListener("mouseenter",r),s==null||s.disconnect()}}),e?u.jsx(_n,{ref:t,port:e.containerRef,style:{"--ox-scrollbar-top":`${o.top}px`,"--ox-scrollbar-left":`${o.left}px`,"--ox-scrollbar-right":"auto","--ox-scrollbar-height":`${o.height}px`},dataTestid:"ox-table-scrollbar"}):null}uu.displayName="OxTableScrollbar";const du={oxTableSelectCell:"_oxTableSelectCell_1s1yr_2",oxTableSelectCellHeader:"_oxTableSelectCellHeader_1s1yr_2",oxTableSelectCellContent:"_oxTableSelectCellContent_1s1yr_2",oxTableSelectCellFixed:"_oxTableSelectCellFixed_1s1yr_2"},Ha=h.forwardRef(({className:e,checked:t=!1,header:o=!1,fixed:n=!1,fixedOffset:r="0px",disabled:a=!1,onChange:s,style:i,...l},c)=>{const d=o?"th":"td";return u.jsx(d,{ref:c,className:$(du.oxTableSelectCell,o&&du.oxTableSelectCellHeader,n&&["table-select-cell-fixed",du.oxTableSelectCellFixed],e),style:n?{left:r,...i}:i,"data-disabled":a||void 0,"data-slot":"select",...l,children:u.jsx("div",{className:du.oxTableSelectCellContent,children:u.jsx(Xc,{disabled:a,checked:t,onCheckedChange:f=>s==null?void 0:s(f===!0)})})})});Ha.displayName="OxTableSelectCell";/**
|
|
372
|
-
* table-core
|
|
373
|
-
*
|
|
374
|
-
* Copyright (c) TanStack
|
|
375
|
-
*
|
|
376
|
-
* This source code is licensed under the MIT license found in the
|
|
377
|
-
* LICENSE.md file in the root directory of this source tree.
|
|
378
|
-
*
|
|
379
|
-
* @license MIT
|
|
380
|
-
*/function zn(e,t){return typeof e=="function"?e(t):e}function Vt(e,t){return o=>{t.setState(n=>({...n,[e]:zn(o,n[e])}))}}function fu(e){return e instanceof Function}function ZR(e){return Array.isArray(e)&&e.every(t=>typeof t=="number")}function JR(e,t){const o=[],n=r=>{r.forEach(a=>{o.push(a);const s=t(a);s!=null&&s.length&&n(s)})};return n(e),o}function de(e,t,o){let n=[],r;return a=>{let s;o.key&&o.debug&&(s=Date.now());const i=e(a);if(!(i.length!==n.length||i.some((d,f)=>n[f]!==d)))return r;n=i;let c;if(o.key&&o.debug&&(c=Date.now()),r=t(...i),o==null||o.onChange==null||o.onChange(r),o.key&&o.debug&&o!=null&&o.debug()){const d=Math.round((Date.now()-s)*100)/100,f=Math.round((Date.now()-c)*100)/100,p=f/16,g=(x,m)=>{for(x=String(x);x.length<m;)x=" "+x;return x};console.info(`%c⏱ ${g(f,5)} /${g(d,5)} ms`,`
|
|
381
|
-
font-size: .6rem;
|
|
382
|
-
font-weight: bold;
|
|
383
|
-
color: hsl(${Math.max(0,Math.min(120-120*p,120))}deg 100% 31%);`,o==null?void 0:o.key)}return r}}function fe(e,t,o,n){return{debug:()=>{var r;return(r=e==null?void 0:e.debugAll)!=null?r:e[t]},key:process.env.NODE_ENV==="development"&&o,onChange:n}}function QR(e,t,o,n){const r=()=>{var s;return(s=a.getValue())!=null?s:e.options.renderFallbackValue},a={id:`${t.id}_${o.id}`,row:t,column:o,getValue:()=>t.getValue(n),renderValue:r,getContext:de(()=>[e,o,t,a],(s,i,l,c)=>({table:s,column:i,row:l,cell:c,getValue:c.getValue,renderValue:c.renderValue}),fe(e.options,"debugCells","cell.getContext"))};return e._features.forEach(s=>{s.createCell==null||s.createCell(a,o,t,e)},{}),a}function eG(e,t,o,n){var r,a;const i={...e._getDefaultColumnDef(),...t},l=i.accessorKey;let c=(r=(a=i.id)!=null?a:l?typeof String.prototype.replaceAll=="function"?l.replaceAll(".","_"):l.replace(/\./g,"_"):void 0)!=null?r:typeof i.header=="string"?i.header:void 0,d;if(i.accessorFn?d=i.accessorFn:l&&(l.includes(".")?d=p=>{let g=p;for(const m of l.split(".")){var x;g=(x=g)==null?void 0:x[m],process.env.NODE_ENV!=="production"&&g===void 0&&console.warn(`"${m}" in deeply nested key "${l}" returned undefined.`)}return g}:d=p=>p[i.accessorKey]),!c)throw process.env.NODE_ENV!=="production"?new Error(i.accessorFn?"Columns require an id when using an accessorFn":"Columns require an id when using a non-string header"):new Error;let f={id:`${String(c)}`,accessorFn:d,parent:n,depth:o,columnDef:i,columns:[],getFlatColumns:de(()=>[!0],()=>{var p;return[f,...(p=f.columns)==null?void 0:p.flatMap(g=>g.getFlatColumns())]},fe(e.options,"debugColumns","column.getFlatColumns")),getLeafColumns:de(()=>[e._getOrderColumnsFn()],p=>{var g;if((g=f.columns)!=null&&g.length){let x=f.columns.flatMap(m=>m.getLeafColumns());return p(x)}return[f]},fe(e.options,"debugColumns","column.getLeafColumns"))};for(const p of e._features)p.createColumn==null||p.createColumn(f,e);return f}const bt="debugHeaders";function qk(e,t,o){var n;let a={id:(n=o.id)!=null?n:t.id,column:t,index:o.index,isPlaceholder:!!o.isPlaceholder,placeholderId:o.placeholderId,depth:o.depth,subHeaders:[],colSpan:0,rowSpan:0,headerGroup:null,getLeafHeaders:()=>{const s=[],i=l=>{l.subHeaders&&l.subHeaders.length&&l.subHeaders.map(i),s.push(l)};return i(a),s},getContext:()=>({table:e,header:a,column:t})};return e._features.forEach(s=>{s.createHeader==null||s.createHeader(a,e)}),a}const tG={createTable:e=>{e.getHeaderGroups=de(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,o,n,r)=>{var a,s;const i=(a=n==null?void 0:n.map(f=>o.find(p=>p.id===f)).filter(Boolean))!=null?a:[],l=(s=r==null?void 0:r.map(f=>o.find(p=>p.id===f)).filter(Boolean))!=null?s:[],c=o.filter(f=>!(n!=null&&n.includes(f.id))&&!(r!=null&&r.includes(f.id)));return pu(t,[...i,...c,...l],e)},fe(e.options,bt,"getHeaderGroups")),e.getCenterHeaderGroups=de(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,o,n,r)=>(o=o.filter(a=>!(n!=null&&n.includes(a.id))&&!(r!=null&&r.includes(a.id))),pu(t,o,e,"center")),fe(e.options,bt,"getCenterHeaderGroups")),e.getLeftHeaderGroups=de(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left],(t,o,n)=>{var r;const a=(r=n==null?void 0:n.map(s=>o.find(i=>i.id===s)).filter(Boolean))!=null?r:[];return pu(t,a,e,"left")},fe(e.options,bt,"getLeftHeaderGroups")),e.getRightHeaderGroups=de(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.right],(t,o,n)=>{var r;const a=(r=n==null?void 0:n.map(s=>o.find(i=>i.id===s)).filter(Boolean))!=null?r:[];return pu(t,a,e,"right")},fe(e.options,bt,"getRightHeaderGroups")),e.getFooterGroups=de(()=>[e.getHeaderGroups()],t=>[...t].reverse(),fe(e.options,bt,"getFooterGroups")),e.getLeftFooterGroups=de(()=>[e.getLeftHeaderGroups()],t=>[...t].reverse(),fe(e.options,bt,"getLeftFooterGroups")),e.getCenterFooterGroups=de(()=>[e.getCenterHeaderGroups()],t=>[...t].reverse(),fe(e.options,bt,"getCenterFooterGroups")),e.getRightFooterGroups=de(()=>[e.getRightHeaderGroups()],t=>[...t].reverse(),fe(e.options,bt,"getRightFooterGroups")),e.getFlatHeaders=de(()=>[e.getHeaderGroups()],t=>t.map(o=>o.headers).flat(),fe(e.options,bt,"getFlatHeaders")),e.getLeftFlatHeaders=de(()=>[e.getLeftHeaderGroups()],t=>t.map(o=>o.headers).flat(),fe(e.options,bt,"getLeftFlatHeaders")),e.getCenterFlatHeaders=de(()=>[e.getCenterHeaderGroups()],t=>t.map(o=>o.headers).flat(),fe(e.options,bt,"getCenterFlatHeaders")),e.getRightFlatHeaders=de(()=>[e.getRightHeaderGroups()],t=>t.map(o=>o.headers).flat(),fe(e.options,bt,"getRightFlatHeaders")),e.getCenterLeafHeaders=de(()=>[e.getCenterFlatHeaders()],t=>t.filter(o=>{var n;return!((n=o.subHeaders)!=null&&n.length)}),fe(e.options,bt,"getCenterLeafHeaders")),e.getLeftLeafHeaders=de(()=>[e.getLeftFlatHeaders()],t=>t.filter(o=>{var n;return!((n=o.subHeaders)!=null&&n.length)}),fe(e.options,bt,"getLeftLeafHeaders")),e.getRightLeafHeaders=de(()=>[e.getRightFlatHeaders()],t=>t.filter(o=>{var n;return!((n=o.subHeaders)!=null&&n.length)}),fe(e.options,bt,"getRightLeafHeaders")),e.getLeafHeaders=de(()=>[e.getLeftHeaderGroups(),e.getCenterHeaderGroups(),e.getRightHeaderGroups()],(t,o,n)=>{var r,a,s,i,l,c;return[...(r=(a=t[0])==null?void 0:a.headers)!=null?r:[],...(s=(i=o[0])==null?void 0:i.headers)!=null?s:[],...(l=(c=n[0])==null?void 0:c.headers)!=null?l:[]].map(d=>d.getLeafHeaders()).flat()},fe(e.options,bt,"getLeafHeaders"))}};function pu(e,t,o,n){var r,a;let s=0;const i=function(p,g){g===void 0&&(g=1),s=Math.max(s,g),p.filter(x=>x.getIsVisible()).forEach(x=>{var m;(m=x.columns)!=null&&m.length&&i(x.columns,g+1)},0)};i(e);let l=[];const c=(p,g)=>{const x={depth:g,id:[n,`${g}`].filter(Boolean).join("_"),headers:[]},m=[];p.forEach(b=>{const y=[...m].reverse()[0],C=b.column.depth===x.depth;let w,P=!1;if(C&&b.column.parent?w=b.column.parent:(w=b.column,P=!0),y&&(y==null?void 0:y.column)===w)y.subHeaders.push(b);else{const S=qk(o,w,{id:[n,g,w.id,b==null?void 0:b.id].filter(Boolean).join("_"),isPlaceholder:P,placeholderId:P?`${m.filter(_=>_.column===w).length}`:void 0,depth:g,index:m.length});S.subHeaders.push(b),m.push(S)}x.headers.push(b),b.headerGroup=x}),l.push(x),g>0&&c(m,g-1)},d=t.map((p,g)=>qk(o,p,{depth:s,index:g}));c(d,s-1),l.reverse();const f=p=>p.filter(x=>x.column.getIsVisible()).map(x=>{let m=0,b=0,y=[0];x.subHeaders&&x.subHeaders.length?(y=[],f(x.subHeaders).forEach(w=>{let{colSpan:P,rowSpan:S}=w;m+=P,y.push(S)})):m=1;const C=Math.min(...y);return b=b+C,x.colSpan=m,x.rowSpan=b,{colSpan:m,rowSpan:b}});return f((r=(a=l[0])==null?void 0:a.headers)!=null?r:[]),l}const oG=(e,t,o,n,r,a,s)=>{let i={id:t,index:n,original:o,depth:r,parentId:s,_valuesCache:{},_uniqueValuesCache:{},getValue:l=>{if(i._valuesCache.hasOwnProperty(l))return i._valuesCache[l];const c=e.getColumn(l);if(c!=null&&c.accessorFn)return i._valuesCache[l]=c.accessorFn(i.original,n),i._valuesCache[l]},getUniqueValues:l=>{if(i._uniqueValuesCache.hasOwnProperty(l))return i._uniqueValuesCache[l];const c=e.getColumn(l);if(c!=null&&c.accessorFn)return c.columnDef.getUniqueValues?(i._uniqueValuesCache[l]=c.columnDef.getUniqueValues(i.original,n),i._uniqueValuesCache[l]):(i._uniqueValuesCache[l]=[i.getValue(l)],i._uniqueValuesCache[l])},renderValue:l=>{var c;return(c=i.getValue(l))!=null?c:e.options.renderFallbackValue},subRows:[],getLeafRows:()=>JR(i.subRows,l=>l.subRows),getParentRow:()=>i.parentId?e.getRow(i.parentId,!0):void 0,getParentRows:()=>{let l=[],c=i;for(;;){const d=c.getParentRow();if(!d)break;l.push(d),c=d}return l.reverse()},getAllCells:de(()=>[e.getAllLeafColumns()],l=>l.map(c=>QR(e,i,c,c.id)),fe(e.options,"debugRows","getAllCells")),_getAllCellsByColumnId:de(()=>[i.getAllCells()],l=>l.reduce((c,d)=>(c[d.column.id]=d,c),{}),fe(e.options,"debugRows","getAllCellsByColumnId"))};for(let l=0;l<e._features.length;l++){const c=e._features[l];c==null||c.createRow==null||c.createRow(i,e)}return i},nG={createColumn:(e,t)=>{e._getFacetedRowModel=t.options.getFacetedRowModel&&t.options.getFacetedRowModel(t,e.id),e.getFacetedRowModel=()=>e._getFacetedRowModel?e._getFacetedRowModel():t.getPreFilteredRowModel(),e._getFacetedUniqueValues=t.options.getFacetedUniqueValues&&t.options.getFacetedUniqueValues(t,e.id),e.getFacetedUniqueValues=()=>e._getFacetedUniqueValues?e._getFacetedUniqueValues():new Map,e._getFacetedMinMaxValues=t.options.getFacetedMinMaxValues&&t.options.getFacetedMinMaxValues(t,e.id),e.getFacetedMinMaxValues=()=>{if(e._getFacetedMinMaxValues)return e._getFacetedMinMaxValues()}}},Yk=(e,t,o)=>{var n,r;const a=o==null||(n=o.toString())==null?void 0:n.toLowerCase();return!!(!((r=e.getValue(t))==null||(r=r.toString())==null||(r=r.toLowerCase())==null)&&r.includes(a))};Yk.autoRemove=e=>vo(e);const Kk=(e,t,o)=>{var n;return!!(!((n=e.getValue(t))==null||(n=n.toString())==null)&&n.includes(o))};Kk.autoRemove=e=>vo(e);const Xk=(e,t,o)=>{var n;return((n=e.getValue(t))==null||(n=n.toString())==null?void 0:n.toLowerCase())===(o==null?void 0:o.toLowerCase())};Xk.autoRemove=e=>vo(e);const Zk=(e,t,o)=>{var n;return(n=e.getValue(t))==null?void 0:n.includes(o)};Zk.autoRemove=e=>vo(e);const Jk=(e,t,o)=>!o.some(n=>{var r;return!((r=e.getValue(t))!=null&&r.includes(n))});Jk.autoRemove=e=>vo(e)||!(e!=null&&e.length);const Qk=(e,t,o)=>o.some(n=>{var r;return(r=e.getValue(t))==null?void 0:r.includes(n)});Qk.autoRemove=e=>vo(e)||!(e!=null&&e.length);const eE=(e,t,o)=>e.getValue(t)===o;eE.autoRemove=e=>vo(e);const tE=(e,t,o)=>e.getValue(t)==o;tE.autoRemove=e=>vo(e);const jg=(e,t,o)=>{let[n,r]=o;const a=e.getValue(t);return a>=n&&a<=r};jg.resolveFilterValue=e=>{let[t,o]=e,n=typeof t!="number"?parseFloat(t):t,r=typeof o!="number"?parseFloat(o):o,a=t===null||Number.isNaN(n)?-1/0:n,s=o===null||Number.isNaN(r)?1/0:r;if(a>s){const i=a;a=s,s=i}return[a,s]},jg.autoRemove=e=>vo(e)||vo(e[0])&&vo(e[1]);const fn={includesString:Yk,includesStringSensitive:Kk,equalsString:Xk,arrIncludes:Zk,arrIncludesAll:Jk,arrIncludesSome:Qk,equals:eE,weakEquals:tE,inNumberRange:jg};function vo(e){return e==null||e===""}const rG={getDefaultColumnDef:()=>({filterFn:"auto"}),getInitialState:e=>({columnFilters:[],...e}),getDefaultOptions:e=>({onColumnFiltersChange:Vt("columnFilters",e),filterFromLeafRows:!1,maxLeafRowFilterDepth:100}),createColumn:(e,t)=>{e.getAutoFilterFn=()=>{const o=t.getCoreRowModel().flatRows[0],n=o==null?void 0:o.getValue(e.id);return typeof n=="string"?fn.includesString:typeof n=="number"?fn.inNumberRange:typeof n=="boolean"||n!==null&&typeof n=="object"?fn.equals:Array.isArray(n)?fn.arrIncludes:fn.weakEquals},e.getFilterFn=()=>{var o,n;return fu(e.columnDef.filterFn)?e.columnDef.filterFn:e.columnDef.filterFn==="auto"?e.getAutoFilterFn():(o=(n=t.options.filterFns)==null?void 0:n[e.columnDef.filterFn])!=null?o:fn[e.columnDef.filterFn]},e.getCanFilter=()=>{var o,n,r;return((o=e.columnDef.enableColumnFilter)!=null?o:!0)&&((n=t.options.enableColumnFilters)!=null?n:!0)&&((r=t.options.enableFilters)!=null?r:!0)&&!!e.accessorFn},e.getIsFiltered=()=>e.getFilterIndex()>-1,e.getFilterValue=()=>{var o;return(o=t.getState().columnFilters)==null||(o=o.find(n=>n.id===e.id))==null?void 0:o.value},e.getFilterIndex=()=>{var o,n;return(o=(n=t.getState().columnFilters)==null?void 0:n.findIndex(r=>r.id===e.id))!=null?o:-1},e.setFilterValue=o=>{t.setColumnFilters(n=>{const r=e.getFilterFn(),a=n==null?void 0:n.find(d=>d.id===e.id),s=zn(o,a?a.value:void 0);if(oE(r,s,e)){var i;return(i=n==null?void 0:n.filter(d=>d.id!==e.id))!=null?i:[]}const l={id:e.id,value:s};if(a){var c;return(c=n==null?void 0:n.map(d=>d.id===e.id?l:d))!=null?c:[]}return n!=null&&n.length?[...n,l]:[l]})}},createRow:(e,t)=>{e.columnFilters={},e.columnFiltersMeta={}},createTable:e=>{e.setColumnFilters=t=>{const o=e.getAllLeafColumns(),n=r=>{var a;return(a=zn(t,r))==null?void 0:a.filter(s=>{const i=o.find(l=>l.id===s.id);if(i){const l=i.getFilterFn();if(oE(l,s.value,i))return!1}return!0})};e.options.onColumnFiltersChange==null||e.options.onColumnFiltersChange(n)},e.resetColumnFilters=t=>{var o,n;e.setColumnFilters(t?[]:(o=(n=e.initialState)==null?void 0:n.columnFilters)!=null?o:[])},e.getPreFilteredRowModel=()=>e.getCoreRowModel(),e.getFilteredRowModel=()=>(!e._getFilteredRowModel&&e.options.getFilteredRowModel&&(e._getFilteredRowModel=e.options.getFilteredRowModel(e)),e.options.manualFiltering||!e._getFilteredRowModel?e.getPreFilteredRowModel():e._getFilteredRowModel())}};function oE(e,t,o){return(e&&e.autoRemove?e.autoRemove(t,o):!1)||typeof t>"u"||typeof t=="string"&&!t}const Ug={sum:(e,t,o)=>o.reduce((n,r)=>{const a=r.getValue(e);return n+(typeof a=="number"?a:0)},0),min:(e,t,o)=>{let n;return o.forEach(r=>{const a=r.getValue(e);a!=null&&(n>a||n===void 0&&a>=a)&&(n=a)}),n},max:(e,t,o)=>{let n;return o.forEach(r=>{const a=r.getValue(e);a!=null&&(n<a||n===void 0&&a>=a)&&(n=a)}),n},extent:(e,t,o)=>{let n,r;return o.forEach(a=>{const s=a.getValue(e);s!=null&&(n===void 0?s>=s&&(n=r=s):(n>s&&(n=s),r<s&&(r=s)))}),[n,r]},mean:(e,t)=>{let o=0,n=0;if(t.forEach(r=>{let a=r.getValue(e);a!=null&&(a=+a)>=a&&(++o,n+=a)}),o)return n/o},median:(e,t)=>{if(!t.length)return;const o=t.map(a=>a.getValue(e));if(!ZR(o))return;if(o.length===1)return o[0];const n=Math.floor(o.length/2),r=o.sort((a,s)=>a-s);return o.length%2!==0?r[n]:(r[n-1]+r[n])/2},unique:(e,t)=>Array.from(new Set(t.map(o=>o.getValue(e))).values()),uniqueCount:(e,t)=>new Set(t.map(o=>o.getValue(e))).size,count:(e,t)=>t.length},aG={getDefaultColumnDef:()=>({aggregatedCell:e=>{var t,o;return(t=(o=e.getValue())==null||o.toString==null?void 0:o.toString())!=null?t:null},aggregationFn:"auto"}),getInitialState:e=>({grouping:[],...e}),getDefaultOptions:e=>({onGroupingChange:Vt("grouping",e),groupedColumnMode:"reorder"}),createColumn:(e,t)=>{e.toggleGrouping=()=>{t.setGrouping(o=>o!=null&&o.includes(e.id)?o.filter(n=>n!==e.id):[...o??[],e.id])},e.getCanGroup=()=>{var o,n;return((o=e.columnDef.enableGrouping)!=null?o:!0)&&((n=t.options.enableGrouping)!=null?n:!0)&&(!!e.accessorFn||!!e.columnDef.getGroupingValue)},e.getIsGrouped=()=>{var o;return(o=t.getState().grouping)==null?void 0:o.includes(e.id)},e.getGroupedIndex=()=>{var o;return(o=t.getState().grouping)==null?void 0:o.indexOf(e.id)},e.getToggleGroupingHandler=()=>{const o=e.getCanGroup();return()=>{o&&e.toggleGrouping()}},e.getAutoAggregationFn=()=>{const o=t.getCoreRowModel().flatRows[0],n=o==null?void 0:o.getValue(e.id);if(typeof n=="number")return Ug.sum;if(Object.prototype.toString.call(n)==="[object Date]")return Ug.extent},e.getAggregationFn=()=>{var o,n;if(!e)throw new Error;return fu(e.columnDef.aggregationFn)?e.columnDef.aggregationFn:e.columnDef.aggregationFn==="auto"?e.getAutoAggregationFn():(o=(n=t.options.aggregationFns)==null?void 0:n[e.columnDef.aggregationFn])!=null?o:Ug[e.columnDef.aggregationFn]}},createTable:e=>{e.setGrouping=t=>e.options.onGroupingChange==null?void 0:e.options.onGroupingChange(t),e.resetGrouping=t=>{var o,n;e.setGrouping(t?[]:(o=(n=e.initialState)==null?void 0:n.grouping)!=null?o:[])},e.getPreGroupedRowModel=()=>e.getFilteredRowModel(),e.getGroupedRowModel=()=>(!e._getGroupedRowModel&&e.options.getGroupedRowModel&&(e._getGroupedRowModel=e.options.getGroupedRowModel(e)),e.options.manualGrouping||!e._getGroupedRowModel?e.getPreGroupedRowModel():e._getGroupedRowModel())},createRow:(e,t)=>{e.getIsGrouped=()=>!!e.groupingColumnId,e.getGroupingValue=o=>{if(e._groupingValuesCache.hasOwnProperty(o))return e._groupingValuesCache[o];const n=t.getColumn(o);return n!=null&&n.columnDef.getGroupingValue?(e._groupingValuesCache[o]=n.columnDef.getGroupingValue(e.original),e._groupingValuesCache[o]):e.getValue(o)},e._groupingValuesCache={}},createCell:(e,t,o,n)=>{e.getIsGrouped=()=>t.getIsGrouped()&&t.id===o.groupingColumnId,e.getIsPlaceholder=()=>!e.getIsGrouped()&&t.getIsGrouped(),e.getIsAggregated=()=>{var r;return!e.getIsGrouped()&&!e.getIsPlaceholder()&&!!((r=o.subRows)!=null&&r.length)}}};function sG(e,t,o){if(!(t!=null&&t.length)||!o)return e;const n=e.filter(a=>!t.includes(a.id));return o==="remove"?n:[...t.map(a=>e.find(s=>s.id===a)).filter(Boolean),...n]}const iG={getInitialState:e=>({columnOrder:[],...e}),getDefaultOptions:e=>({onColumnOrderChange:Vt("columnOrder",e)}),createColumn:(e,t)=>{e.getIndex=de(o=>[pi(t,o)],o=>o.findIndex(n=>n.id===e.id),fe(t.options,"debugColumns","getIndex")),e.getIsFirstColumn=o=>{var n;return((n=pi(t,o)[0])==null?void 0:n.id)===e.id},e.getIsLastColumn=o=>{var n;const r=pi(t,o);return((n=r[r.length-1])==null?void 0:n.id)===e.id}},createTable:e=>{e.setColumnOrder=t=>e.options.onColumnOrderChange==null?void 0:e.options.onColumnOrderChange(t),e.resetColumnOrder=t=>{var o;e.setColumnOrder(t?[]:(o=e.initialState.columnOrder)!=null?o:[])},e._getOrderColumnsFn=de(()=>[e.getState().columnOrder,e.getState().grouping,e.options.groupedColumnMode],(t,o,n)=>r=>{let a=[];if(!(t!=null&&t.length))a=r;else{const s=[...t],i=[...r];for(;i.length&&s.length;){const l=s.shift(),c=i.findIndex(d=>d.id===l);c>-1&&a.push(i.splice(c,1)[0])}a=[...a,...i]}return sG(a,o,n)},fe(e.options,"debugTable","_getOrderColumnsFn"))}},qg=()=>({left:[],right:[]}),lG={getInitialState:e=>({columnPinning:qg(),...e}),getDefaultOptions:e=>({onColumnPinningChange:Vt("columnPinning",e)}),createColumn:(e,t)=>{e.pin=o=>{const n=e.getLeafColumns().map(r=>r.id).filter(Boolean);t.setColumnPinning(r=>{var a,s;if(o==="right"){var i,l;return{left:((i=r==null?void 0:r.left)!=null?i:[]).filter(f=>!(n!=null&&n.includes(f))),right:[...((l=r==null?void 0:r.right)!=null?l:[]).filter(f=>!(n!=null&&n.includes(f))),...n]}}if(o==="left"){var c,d;return{left:[...((c=r==null?void 0:r.left)!=null?c:[]).filter(f=>!(n!=null&&n.includes(f))),...n],right:((d=r==null?void 0:r.right)!=null?d:[]).filter(f=>!(n!=null&&n.includes(f)))}}return{left:((a=r==null?void 0:r.left)!=null?a:[]).filter(f=>!(n!=null&&n.includes(f))),right:((s=r==null?void 0:r.right)!=null?s:[]).filter(f=>!(n!=null&&n.includes(f)))}})},e.getCanPin=()=>e.getLeafColumns().some(n=>{var r,a,s;return((r=n.columnDef.enablePinning)!=null?r:!0)&&((a=(s=t.options.enableColumnPinning)!=null?s:t.options.enablePinning)!=null?a:!0)}),e.getIsPinned=()=>{const o=e.getLeafColumns().map(i=>i.id),{left:n,right:r}=t.getState().columnPinning,a=o.some(i=>n==null?void 0:n.includes(i)),s=o.some(i=>r==null?void 0:r.includes(i));return a?"left":s?"right":!1},e.getPinnedIndex=()=>{var o,n;const r=e.getIsPinned();return r?(o=(n=t.getState().columnPinning)==null||(n=n[r])==null?void 0:n.indexOf(e.id))!=null?o:-1:0}},createRow:(e,t)=>{e.getCenterVisibleCells=de(()=>[e._getAllVisibleCells(),t.getState().columnPinning.left,t.getState().columnPinning.right],(o,n,r)=>{const a=[...n??[],...r??[]];return o.filter(s=>!a.includes(s.column.id))},fe(t.options,"debugRows","getCenterVisibleCells")),e.getLeftVisibleCells=de(()=>[e._getAllVisibleCells(),t.getState().columnPinning.left],(o,n)=>(n??[]).map(a=>o.find(s=>s.column.id===a)).filter(Boolean).map(a=>({...a,position:"left"})),fe(t.options,"debugRows","getLeftVisibleCells")),e.getRightVisibleCells=de(()=>[e._getAllVisibleCells(),t.getState().columnPinning.right],(o,n)=>(n??[]).map(a=>o.find(s=>s.column.id===a)).filter(Boolean).map(a=>({...a,position:"right"})),fe(t.options,"debugRows","getRightVisibleCells"))},createTable:e=>{e.setColumnPinning=t=>e.options.onColumnPinningChange==null?void 0:e.options.onColumnPinningChange(t),e.resetColumnPinning=t=>{var o,n;return e.setColumnPinning(t?qg():(o=(n=e.initialState)==null?void 0:n.columnPinning)!=null?o:qg())},e.getIsSomeColumnsPinned=t=>{var o;const n=e.getState().columnPinning;if(!t){var r,a;return!!((r=n.left)!=null&&r.length||(a=n.right)!=null&&a.length)}return!!((o=n[t])!=null&&o.length)},e.getLeftLeafColumns=de(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left],(t,o)=>(o??[]).map(n=>t.find(r=>r.id===n)).filter(Boolean),fe(e.options,"debugColumns","getLeftLeafColumns")),e.getRightLeafColumns=de(()=>[e.getAllLeafColumns(),e.getState().columnPinning.right],(t,o)=>(o??[]).map(n=>t.find(r=>r.id===n)).filter(Boolean),fe(e.options,"debugColumns","getRightLeafColumns")),e.getCenterLeafColumns=de(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,o,n)=>{const r=[...o??[],...n??[]];return t.filter(a=>!r.includes(a.id))},fe(e.options,"debugColumns","getCenterLeafColumns"))}};function cG(e){return e||(typeof document<"u"?document:null)}const hu={size:150,minSize:20,maxSize:Number.MAX_SAFE_INTEGER},Yg=()=>({startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]}),uG={getDefaultColumnDef:()=>hu,getInitialState:e=>({columnSizing:{},columnSizingInfo:Yg(),...e}),getDefaultOptions:e=>({columnResizeMode:"onEnd",columnResizeDirection:"ltr",onColumnSizingChange:Vt("columnSizing",e),onColumnSizingInfoChange:Vt("columnSizingInfo",e)}),createColumn:(e,t)=>{e.getSize=()=>{var o,n,r;const a=t.getState().columnSizing[e.id];return Math.min(Math.max((o=e.columnDef.minSize)!=null?o:hu.minSize,(n=a??e.columnDef.size)!=null?n:hu.size),(r=e.columnDef.maxSize)!=null?r:hu.maxSize)},e.getStart=de(o=>[o,pi(t,o),t.getState().columnSizing],(o,n)=>n.slice(0,e.getIndex(o)).reduce((r,a)=>r+a.getSize(),0),fe(t.options,"debugColumns","getStart")),e.getAfter=de(o=>[o,pi(t,o),t.getState().columnSizing],(o,n)=>n.slice(e.getIndex(o)+1).reduce((r,a)=>r+a.getSize(),0),fe(t.options,"debugColumns","getAfter")),e.resetSize=()=>{t.setColumnSizing(o=>{let{[e.id]:n,...r}=o;return r})},e.getCanResize=()=>{var o,n;return((o=e.columnDef.enableResizing)!=null?o:!0)&&((n=t.options.enableColumnResizing)!=null?n:!0)},e.getIsResizing=()=>t.getState().columnSizingInfo.isResizingColumn===e.id},createHeader:(e,t)=>{e.getSize=()=>{let o=0;const n=r=>{if(r.subHeaders.length)r.subHeaders.forEach(n);else{var a;o+=(a=r.column.getSize())!=null?a:0}};return n(e),o},e.getStart=()=>{if(e.index>0){const o=e.headerGroup.headers[e.index-1];return o.getStart()+o.getSize()}return 0},e.getResizeHandler=o=>{const n=t.getColumn(e.column.id),r=n==null?void 0:n.getCanResize();return a=>{if(!n||!r||(a.persist==null||a.persist(),Kg(a)&&a.touches&&a.touches.length>1))return;const s=e.getSize(),i=e?e.getLeafHeaders().map(y=>[y.column.id,y.column.getSize()]):[[n.id,n.getSize()]],l=Kg(a)?Math.round(a.touches[0].clientX):a.clientX,c={},d=(y,C)=>{typeof C=="number"&&(t.setColumnSizingInfo(w=>{var P,S;const _=t.options.columnResizeDirection==="rtl"?-1:1,T=(C-((P=w==null?void 0:w.startOffset)!=null?P:0))*_,k=Math.max(T/((S=w==null?void 0:w.startSize)!=null?S:0),-.999999);return w.columnSizingStart.forEach(E=>{let[D,O]=E;c[D]=Math.round(Math.max(O+O*k,0)*100)/100}),{...w,deltaOffset:T,deltaPercentage:k}}),(t.options.columnResizeMode==="onChange"||y==="end")&&t.setColumnSizing(w=>({...w,...c})))},f=y=>d("move",y),p=y=>{d("end",y),t.setColumnSizingInfo(C=>({...C,isResizingColumn:!1,startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,columnSizingStart:[]}))},g=cG(o),x={moveHandler:y=>f(y.clientX),upHandler:y=>{g==null||g.removeEventListener("mousemove",x.moveHandler),g==null||g.removeEventListener("mouseup",x.upHandler),p(y.clientX)}},m={moveHandler:y=>(y.cancelable&&(y.preventDefault(),y.stopPropagation()),f(y.touches[0].clientX),!1),upHandler:y=>{var C;g==null||g.removeEventListener("touchmove",m.moveHandler),g==null||g.removeEventListener("touchend",m.upHandler),y.cancelable&&(y.preventDefault(),y.stopPropagation()),p((C=y.touches[0])==null?void 0:C.clientX)}},b=dG()?{passive:!1}:!1;Kg(a)?(g==null||g.addEventListener("touchmove",m.moveHandler,b),g==null||g.addEventListener("touchend",m.upHandler,b)):(g==null||g.addEventListener("mousemove",x.moveHandler,b),g==null||g.addEventListener("mouseup",x.upHandler,b)),t.setColumnSizingInfo(y=>({...y,startOffset:l,startSize:s,deltaOffset:0,deltaPercentage:0,columnSizingStart:i,isResizingColumn:n.id}))}}},createTable:e=>{e.setColumnSizing=t=>e.options.onColumnSizingChange==null?void 0:e.options.onColumnSizingChange(t),e.setColumnSizingInfo=t=>e.options.onColumnSizingInfoChange==null?void 0:e.options.onColumnSizingInfoChange(t),e.resetColumnSizing=t=>{var o;e.setColumnSizing(t?{}:(o=e.initialState.columnSizing)!=null?o:{})},e.resetHeaderSizeInfo=t=>{var o;e.setColumnSizingInfo(t?Yg():(o=e.initialState.columnSizingInfo)!=null?o:Yg())},e.getTotalSize=()=>{var t,o;return(t=(o=e.getHeaderGroups()[0])==null?void 0:o.headers.reduce((n,r)=>n+r.getSize(),0))!=null?t:0},e.getLeftTotalSize=()=>{var t,o;return(t=(o=e.getLeftHeaderGroups()[0])==null?void 0:o.headers.reduce((n,r)=>n+r.getSize(),0))!=null?t:0},e.getCenterTotalSize=()=>{var t,o;return(t=(o=e.getCenterHeaderGroups()[0])==null?void 0:o.headers.reduce((n,r)=>n+r.getSize(),0))!=null?t:0},e.getRightTotalSize=()=>{var t,o;return(t=(o=e.getRightHeaderGroups()[0])==null?void 0:o.headers.reduce((n,r)=>n+r.getSize(),0))!=null?t:0}}};let gu=null;function dG(){if(typeof gu=="boolean")return gu;let e=!1;try{const t={get passive(){return e=!0,!1}},o=()=>{};window.addEventListener("test",o,t),window.removeEventListener("test",o)}catch{e=!1}return gu=e,gu}function Kg(e){return e.type==="touchstart"}const fG={getInitialState:e=>({columnVisibility:{},...e}),getDefaultOptions:e=>({onColumnVisibilityChange:Vt("columnVisibility",e)}),createColumn:(e,t)=>{e.toggleVisibility=o=>{e.getCanHide()&&t.setColumnVisibility(n=>({...n,[e.id]:o??!e.getIsVisible()}))},e.getIsVisible=()=>{var o,n;const r=e.columns;return(o=r.length?r.some(a=>a.getIsVisible()):(n=t.getState().columnVisibility)==null?void 0:n[e.id])!=null?o:!0},e.getCanHide=()=>{var o,n;return((o=e.columnDef.enableHiding)!=null?o:!0)&&((n=t.options.enableHiding)!=null?n:!0)},e.getToggleVisibilityHandler=()=>o=>{e.toggleVisibility==null||e.toggleVisibility(o.target.checked)}},createRow:(e,t)=>{e._getAllVisibleCells=de(()=>[e.getAllCells(),t.getState().columnVisibility],o=>o.filter(n=>n.column.getIsVisible()),fe(t.options,"debugRows","_getAllVisibleCells")),e.getVisibleCells=de(()=>[e.getLeftVisibleCells(),e.getCenterVisibleCells(),e.getRightVisibleCells()],(o,n,r)=>[...o,...n,...r],fe(t.options,"debugRows","getVisibleCells"))},createTable:e=>{const t=(o,n)=>de(()=>[n(),n().filter(r=>r.getIsVisible()).map(r=>r.id).join("_")],r=>r.filter(a=>a.getIsVisible==null?void 0:a.getIsVisible()),fe(e.options,"debugColumns",o));e.getVisibleFlatColumns=t("getVisibleFlatColumns",()=>e.getAllFlatColumns()),e.getVisibleLeafColumns=t("getVisibleLeafColumns",()=>e.getAllLeafColumns()),e.getLeftVisibleLeafColumns=t("getLeftVisibleLeafColumns",()=>e.getLeftLeafColumns()),e.getRightVisibleLeafColumns=t("getRightVisibleLeafColumns",()=>e.getRightLeafColumns()),e.getCenterVisibleLeafColumns=t("getCenterVisibleLeafColumns",()=>e.getCenterLeafColumns()),e.setColumnVisibility=o=>e.options.onColumnVisibilityChange==null?void 0:e.options.onColumnVisibilityChange(o),e.resetColumnVisibility=o=>{var n;e.setColumnVisibility(o?{}:(n=e.initialState.columnVisibility)!=null?n:{})},e.toggleAllColumnsVisible=o=>{var n;o=(n=o)!=null?n:!e.getIsAllColumnsVisible(),e.setColumnVisibility(e.getAllLeafColumns().reduce((r,a)=>({...r,[a.id]:o||!(a.getCanHide!=null&&a.getCanHide())}),{}))},e.getIsAllColumnsVisible=()=>!e.getAllLeafColumns().some(o=>!(o.getIsVisible!=null&&o.getIsVisible())),e.getIsSomeColumnsVisible=()=>e.getAllLeafColumns().some(o=>o.getIsVisible==null?void 0:o.getIsVisible()),e.getToggleAllColumnsVisibilityHandler=()=>o=>{var n;e.toggleAllColumnsVisible((n=o.target)==null?void 0:n.checked)}}};function pi(e,t){return t?t==="center"?e.getCenterVisibleLeafColumns():t==="left"?e.getLeftVisibleLeafColumns():e.getRightVisibleLeafColumns():e.getVisibleLeafColumns()}const pG={createTable:e=>{e._getGlobalFacetedRowModel=e.options.getFacetedRowModel&&e.options.getFacetedRowModel(e,"__global__"),e.getGlobalFacetedRowModel=()=>e.options.manualFiltering||!e._getGlobalFacetedRowModel?e.getPreFilteredRowModel():e._getGlobalFacetedRowModel(),e._getGlobalFacetedUniqueValues=e.options.getFacetedUniqueValues&&e.options.getFacetedUniqueValues(e,"__global__"),e.getGlobalFacetedUniqueValues=()=>e._getGlobalFacetedUniqueValues?e._getGlobalFacetedUniqueValues():new Map,e._getGlobalFacetedMinMaxValues=e.options.getFacetedMinMaxValues&&e.options.getFacetedMinMaxValues(e,"__global__"),e.getGlobalFacetedMinMaxValues=()=>{if(e._getGlobalFacetedMinMaxValues)return e._getGlobalFacetedMinMaxValues()}}},hG={getInitialState:e=>({globalFilter:void 0,...e}),getDefaultOptions:e=>({onGlobalFilterChange:Vt("globalFilter",e),globalFilterFn:"auto",getColumnCanGlobalFilter:t=>{var o;const n=(o=e.getCoreRowModel().flatRows[0])==null||(o=o._getAllCellsByColumnId()[t.id])==null?void 0:o.getValue();return typeof n=="string"||typeof n=="number"}}),createColumn:(e,t)=>{e.getCanGlobalFilter=()=>{var o,n,r,a;return((o=e.columnDef.enableGlobalFilter)!=null?o:!0)&&((n=t.options.enableGlobalFilter)!=null?n:!0)&&((r=t.options.enableFilters)!=null?r:!0)&&((a=t.options.getColumnCanGlobalFilter==null?void 0:t.options.getColumnCanGlobalFilter(e))!=null?a:!0)&&!!e.accessorFn}},createTable:e=>{e.getGlobalAutoFilterFn=()=>fn.includesString,e.getGlobalFilterFn=()=>{var t,o;const{globalFilterFn:n}=e.options;return fu(n)?n:n==="auto"?e.getGlobalAutoFilterFn():(t=(o=e.options.filterFns)==null?void 0:o[n])!=null?t:fn[n]},e.setGlobalFilter=t=>{e.options.onGlobalFilterChange==null||e.options.onGlobalFilterChange(t)},e.resetGlobalFilter=t=>{e.setGlobalFilter(t?void 0:e.initialState.globalFilter)}}},gG={getInitialState:e=>({expanded:{},...e}),getDefaultOptions:e=>({onExpandedChange:Vt("expanded",e),paginateExpandedRows:!0}),createTable:e=>{let t=!1,o=!1;e._autoResetExpanded=()=>{var n,r;if(!t){e._queue(()=>{t=!0});return}if((n=(r=e.options.autoResetAll)!=null?r:e.options.autoResetExpanded)!=null?n:!e.options.manualExpanding){if(o)return;o=!0,e._queue(()=>{e.resetExpanded(),o=!1})}},e.setExpanded=n=>e.options.onExpandedChange==null?void 0:e.options.onExpandedChange(n),e.toggleAllRowsExpanded=n=>{n??!e.getIsAllRowsExpanded()?e.setExpanded(!0):e.setExpanded({})},e.resetExpanded=n=>{var r,a;e.setExpanded(n?{}:(r=(a=e.initialState)==null?void 0:a.expanded)!=null?r:{})},e.getCanSomeRowsExpand=()=>e.getPrePaginationRowModel().flatRows.some(n=>n.getCanExpand()),e.getToggleAllRowsExpandedHandler=()=>n=>{n.persist==null||n.persist(),e.toggleAllRowsExpanded()},e.getIsSomeRowsExpanded=()=>{const n=e.getState().expanded;return n===!0||Object.values(n).some(Boolean)},e.getIsAllRowsExpanded=()=>{const n=e.getState().expanded;return typeof n=="boolean"?n===!0:!(!Object.keys(n).length||e.getRowModel().flatRows.some(r=>!r.getIsExpanded()))},e.getExpandedDepth=()=>{let n=0;return(e.getState().expanded===!0?Object.keys(e.getRowModel().rowsById):Object.keys(e.getState().expanded)).forEach(a=>{const s=a.split(".");n=Math.max(n,s.length)}),n},e.getPreExpandedRowModel=()=>e.getSortedRowModel(),e.getExpandedRowModel=()=>(!e._getExpandedRowModel&&e.options.getExpandedRowModel&&(e._getExpandedRowModel=e.options.getExpandedRowModel(e)),e.options.manualExpanding||!e._getExpandedRowModel?e.getPreExpandedRowModel():e._getExpandedRowModel())},createRow:(e,t)=>{e.toggleExpanded=o=>{t.setExpanded(n=>{var r;const a=n===!0?!0:!!(n!=null&&n[e.id]);let s={};if(n===!0?Object.keys(t.getRowModel().rowsById).forEach(i=>{s[i]=!0}):s=n,o=(r=o)!=null?r:!a,!a&&o)return{...s,[e.id]:!0};if(a&&!o){const{[e.id]:i,...l}=s;return l}return n})},e.getIsExpanded=()=>{var o;const n=t.getState().expanded;return!!((o=t.options.getIsRowExpanded==null?void 0:t.options.getIsRowExpanded(e))!=null?o:n===!0||n!=null&&n[e.id])},e.getCanExpand=()=>{var o,n,r;return(o=t.options.getRowCanExpand==null?void 0:t.options.getRowCanExpand(e))!=null?o:((n=t.options.enableExpanding)!=null?n:!0)&&!!((r=e.subRows)!=null&&r.length)},e.getIsAllParentsExpanded=()=>{let o=!0,n=e;for(;o&&n.parentId;)n=t.getRow(n.parentId,!0),o=n.getIsExpanded();return o},e.getToggleExpandedHandler=()=>{const o=e.getCanExpand();return()=>{o&&e.toggleExpanded()}}}},Xg=0,Zg=10,Jg=()=>({pageIndex:Xg,pageSize:Zg}),mG={getInitialState:e=>({...e,pagination:{...Jg(),...e==null?void 0:e.pagination}}),getDefaultOptions:e=>({onPaginationChange:Vt("pagination",e)}),createTable:e=>{let t=!1,o=!1;e._autoResetPageIndex=()=>{var n,r;if(!t){e._queue(()=>{t=!0});return}if((n=(r=e.options.autoResetAll)!=null?r:e.options.autoResetPageIndex)!=null?n:!e.options.manualPagination){if(o)return;o=!0,e._queue(()=>{e.resetPageIndex(),o=!1})}},e.setPagination=n=>{const r=a=>zn(n,a);return e.options.onPaginationChange==null?void 0:e.options.onPaginationChange(r)},e.resetPagination=n=>{var r;e.setPagination(n?Jg():(r=e.initialState.pagination)!=null?r:Jg())},e.setPageIndex=n=>{e.setPagination(r=>{let a=zn(n,r.pageIndex);const s=typeof e.options.pageCount>"u"||e.options.pageCount===-1?Number.MAX_SAFE_INTEGER:e.options.pageCount-1;return a=Math.max(0,Math.min(a,s)),{...r,pageIndex:a}})},e.resetPageIndex=n=>{var r,a;e.setPageIndex(n?Xg:(r=(a=e.initialState)==null||(a=a.pagination)==null?void 0:a.pageIndex)!=null?r:Xg)},e.resetPageSize=n=>{var r,a;e.setPageSize(n?Zg:(r=(a=e.initialState)==null||(a=a.pagination)==null?void 0:a.pageSize)!=null?r:Zg)},e.setPageSize=n=>{e.setPagination(r=>{const a=Math.max(1,zn(n,r.pageSize)),s=r.pageSize*r.pageIndex,i=Math.floor(s/a);return{...r,pageIndex:i,pageSize:a}})},e.setPageCount=n=>e.setPagination(r=>{var a;let s=zn(n,(a=e.options.pageCount)!=null?a:-1);return typeof s=="number"&&(s=Math.max(-1,s)),{...r,pageCount:s}}),e.getPageOptions=de(()=>[e.getPageCount()],n=>{let r=[];return n&&n>0&&(r=[...new Array(n)].fill(null).map((a,s)=>s)),r},fe(e.options,"debugTable","getPageOptions")),e.getCanPreviousPage=()=>e.getState().pagination.pageIndex>0,e.getCanNextPage=()=>{const{pageIndex:n}=e.getState().pagination,r=e.getPageCount();return r===-1?!0:r===0?!1:n<r-1},e.previousPage=()=>e.setPageIndex(n=>n-1),e.nextPage=()=>e.setPageIndex(n=>n+1),e.firstPage=()=>e.setPageIndex(0),e.lastPage=()=>e.setPageIndex(e.getPageCount()-1),e.getPrePaginationRowModel=()=>e.getExpandedRowModel(),e.getPaginationRowModel=()=>(!e._getPaginationRowModel&&e.options.getPaginationRowModel&&(e._getPaginationRowModel=e.options.getPaginationRowModel(e)),e.options.manualPagination||!e._getPaginationRowModel?e.getPrePaginationRowModel():e._getPaginationRowModel()),e.getPageCount=()=>{var n;return(n=e.options.pageCount)!=null?n:Math.ceil(e.getRowCount()/e.getState().pagination.pageSize)},e.getRowCount=()=>{var n;return(n=e.options.rowCount)!=null?n:e.getPrePaginationRowModel().rows.length}}},Qg=()=>({top:[],bottom:[]}),xG={getInitialState:e=>({rowPinning:Qg(),...e}),getDefaultOptions:e=>({onRowPinningChange:Vt("rowPinning",e)}),createRow:(e,t)=>{e.pin=(o,n,r)=>{const a=n?e.getLeafRows().map(l=>{let{id:c}=l;return c}):[],s=r?e.getParentRows().map(l=>{let{id:c}=l;return c}):[],i=new Set([...s,e.id,...a]);t.setRowPinning(l=>{var c,d;if(o==="bottom"){var f,p;return{top:((f=l==null?void 0:l.top)!=null?f:[]).filter(m=>!(i!=null&&i.has(m))),bottom:[...((p=l==null?void 0:l.bottom)!=null?p:[]).filter(m=>!(i!=null&&i.has(m))),...Array.from(i)]}}if(o==="top"){var g,x;return{top:[...((g=l==null?void 0:l.top)!=null?g:[]).filter(m=>!(i!=null&&i.has(m))),...Array.from(i)],bottom:((x=l==null?void 0:l.bottom)!=null?x:[]).filter(m=>!(i!=null&&i.has(m)))}}return{top:((c=l==null?void 0:l.top)!=null?c:[]).filter(m=>!(i!=null&&i.has(m))),bottom:((d=l==null?void 0:l.bottom)!=null?d:[]).filter(m=>!(i!=null&&i.has(m)))}})},e.getCanPin=()=>{var o;const{enableRowPinning:n,enablePinning:r}=t.options;return typeof n=="function"?n(e):(o=n??r)!=null?o:!0},e.getIsPinned=()=>{const o=[e.id],{top:n,bottom:r}=t.getState().rowPinning,a=o.some(i=>n==null?void 0:n.includes(i)),s=o.some(i=>r==null?void 0:r.includes(i));return a?"top":s?"bottom":!1},e.getPinnedIndex=()=>{var o,n;const r=e.getIsPinned();if(!r)return-1;const a=(o=r==="top"?t.getTopRows():t.getBottomRows())==null?void 0:o.map(s=>{let{id:i}=s;return i});return(n=a==null?void 0:a.indexOf(e.id))!=null?n:-1}},createTable:e=>{e.setRowPinning=t=>e.options.onRowPinningChange==null?void 0:e.options.onRowPinningChange(t),e.resetRowPinning=t=>{var o,n;return e.setRowPinning(t?Qg():(o=(n=e.initialState)==null?void 0:n.rowPinning)!=null?o:Qg())},e.getIsSomeRowsPinned=t=>{var o;const n=e.getState().rowPinning;if(!t){var r,a;return!!((r=n.top)!=null&&r.length||(a=n.bottom)!=null&&a.length)}return!!((o=n[t])!=null&&o.length)},e._getPinnedRows=(t,o,n)=>{var r;return((r=e.options.keepPinnedRows)==null||r?(o??[]).map(s=>{const i=e.getRow(s,!0);return i.getIsAllParentsExpanded()?i:null}):(o??[]).map(s=>t.find(i=>i.id===s))).filter(Boolean).map(s=>({...s,position:n}))},e.getTopRows=de(()=>[e.getRowModel().rows,e.getState().rowPinning.top],(t,o)=>e._getPinnedRows(t,o,"top"),fe(e.options,"debugRows","getTopRows")),e.getBottomRows=de(()=>[e.getRowModel().rows,e.getState().rowPinning.bottom],(t,o)=>e._getPinnedRows(t,o,"bottom"),fe(e.options,"debugRows","getBottomRows")),e.getCenterRows=de(()=>[e.getRowModel().rows,e.getState().rowPinning.top,e.getState().rowPinning.bottom],(t,o,n)=>{const r=new Set([...o??[],...n??[]]);return t.filter(a=>!r.has(a.id))},fe(e.options,"debugRows","getCenterRows"))}},bG={getInitialState:e=>({rowSelection:{},...e}),getDefaultOptions:e=>({onRowSelectionChange:Vt("rowSelection",e),enableRowSelection:!0,enableMultiRowSelection:!0,enableSubRowSelection:!0}),createTable:e=>{e.setRowSelection=t=>e.options.onRowSelectionChange==null?void 0:e.options.onRowSelectionChange(t),e.resetRowSelection=t=>{var o;return e.setRowSelection(t?{}:(o=e.initialState.rowSelection)!=null?o:{})},e.toggleAllRowsSelected=t=>{e.setRowSelection(o=>{t=typeof t<"u"?t:!e.getIsAllRowsSelected();const n={...o},r=e.getPreGroupedRowModel().flatRows;return t?r.forEach(a=>{a.getCanSelect()&&(n[a.id]=!0)}):r.forEach(a=>{delete n[a.id]}),n})},e.toggleAllPageRowsSelected=t=>e.setRowSelection(o=>{const n=typeof t<"u"?t:!e.getIsAllPageRowsSelected(),r={...o};return e.getRowModel().rows.forEach(a=>{em(r,a.id,n,!0,e)}),r}),e.getPreSelectedRowModel=()=>e.getCoreRowModel(),e.getSelectedRowModel=de(()=>[e.getState().rowSelection,e.getCoreRowModel()],(t,o)=>Object.keys(t).length?tm(e,o):{rows:[],flatRows:[],rowsById:{}},fe(e.options,"debugTable","getSelectedRowModel")),e.getFilteredSelectedRowModel=de(()=>[e.getState().rowSelection,e.getFilteredRowModel()],(t,o)=>Object.keys(t).length?tm(e,o):{rows:[],flatRows:[],rowsById:{}},fe(e.options,"debugTable","getFilteredSelectedRowModel")),e.getGroupedSelectedRowModel=de(()=>[e.getState().rowSelection,e.getSortedRowModel()],(t,o)=>Object.keys(t).length?tm(e,o):{rows:[],flatRows:[],rowsById:{}},fe(e.options,"debugTable","getGroupedSelectedRowModel")),e.getIsAllRowsSelected=()=>{const t=e.getFilteredRowModel().flatRows,{rowSelection:o}=e.getState();let n=!!(t.length&&Object.keys(o).length);return n&&t.some(r=>r.getCanSelect()&&!o[r.id])&&(n=!1),n},e.getIsAllPageRowsSelected=()=>{const t=e.getPaginationRowModel().flatRows.filter(r=>r.getCanSelect()),{rowSelection:o}=e.getState();let n=!!t.length;return n&&t.some(r=>!o[r.id])&&(n=!1),n},e.getIsSomeRowsSelected=()=>{var t;const o=Object.keys((t=e.getState().rowSelection)!=null?t:{}).length;return o>0&&o<e.getFilteredRowModel().flatRows.length},e.getIsSomePageRowsSelected=()=>{const t=e.getPaginationRowModel().flatRows;return e.getIsAllPageRowsSelected()?!1:t.filter(o=>o.getCanSelect()).some(o=>o.getIsSelected()||o.getIsSomeSelected())},e.getToggleAllRowsSelectedHandler=()=>t=>{e.toggleAllRowsSelected(t.target.checked)},e.getToggleAllPageRowsSelectedHandler=()=>t=>{e.toggleAllPageRowsSelected(t.target.checked)}},createRow:(e,t)=>{e.toggleSelected=(o,n)=>{const r=e.getIsSelected();t.setRowSelection(a=>{var s;if(o=typeof o<"u"?o:!r,e.getCanSelect()&&r===o)return a;const i={...a};return em(i,e.id,o,(s=n==null?void 0:n.selectChildren)!=null?s:!0,t),i})},e.getIsSelected=()=>{const{rowSelection:o}=t.getState();return om(e,o)},e.getIsSomeSelected=()=>{const{rowSelection:o}=t.getState();return nm(e,o)==="some"},e.getIsAllSubRowsSelected=()=>{const{rowSelection:o}=t.getState();return nm(e,o)==="all"},e.getCanSelect=()=>{var o;return typeof t.options.enableRowSelection=="function"?t.options.enableRowSelection(e):(o=t.options.enableRowSelection)!=null?o:!0},e.getCanSelectSubRows=()=>{var o;return typeof t.options.enableSubRowSelection=="function"?t.options.enableSubRowSelection(e):(o=t.options.enableSubRowSelection)!=null?o:!0},e.getCanMultiSelect=()=>{var o;return typeof t.options.enableMultiRowSelection=="function"?t.options.enableMultiRowSelection(e):(o=t.options.enableMultiRowSelection)!=null?o:!0},e.getToggleSelectedHandler=()=>{const o=e.getCanSelect();return n=>{var r;o&&e.toggleSelected((r=n.target)==null?void 0:r.checked)}}}},em=(e,t,o,n,r)=>{var a;const s=r.getRow(t,!0);o?(s.getCanMultiSelect()||Object.keys(e).forEach(i=>delete e[i]),s.getCanSelect()&&(e[t]=!0)):delete e[t],n&&(a=s.subRows)!=null&&a.length&&s.getCanSelectSubRows()&&s.subRows.forEach(i=>em(e,i.id,o,n,r))};function tm(e,t){const o=e.getState().rowSelection,n=[],r={},a=function(s,i){return s.map(l=>{var c;const d=om(l,o);if(d&&(n.push(l),r[l.id]=l),(c=l.subRows)!=null&&c.length&&(l={...l,subRows:a(l.subRows)}),d)return l}).filter(Boolean)};return{rows:a(t.rows),flatRows:n,rowsById:r}}function om(e,t){var o;return(o=t[e.id])!=null?o:!1}function nm(e,t,o){var n;if(!((n=e.subRows)!=null&&n.length))return!1;let r=!0,a=!1;return e.subRows.forEach(s=>{if(!(a&&!r)&&(s.getCanSelect()&&(om(s,t)?a=!0:r=!1),s.subRows&&s.subRows.length)){const i=nm(s,t);i==="all"?a=!0:(i==="some"&&(a=!0),r=!1)}}),r?"all":a?"some":!1}const rm=/([0-9]+)/gm,vG=(e,t,o)=>nE(Bn(e.getValue(o)).toLowerCase(),Bn(t.getValue(o)).toLowerCase()),yG=(e,t,o)=>nE(Bn(e.getValue(o)),Bn(t.getValue(o))),wG=(e,t,o)=>am(Bn(e.getValue(o)).toLowerCase(),Bn(t.getValue(o)).toLowerCase()),CG=(e,t,o)=>am(Bn(e.getValue(o)),Bn(t.getValue(o))),_G=(e,t,o)=>{const n=e.getValue(o),r=t.getValue(o);return n>r?1:n<r?-1:0},SG=(e,t,o)=>am(e.getValue(o),t.getValue(o));function am(e,t){return e===t?0:e>t?1:-1}function Bn(e){return typeof e=="number"?isNaN(e)||e===1/0||e===-1/0?"":String(e):typeof e=="string"?e:""}function nE(e,t){const o=e.split(rm).filter(Boolean),n=t.split(rm).filter(Boolean);for(;o.length&&n.length;){const r=o.shift(),a=n.shift(),s=parseInt(r,10),i=parseInt(a,10),l=[s,i].sort();if(isNaN(l[0])){if(r>a)return 1;if(a>r)return-1;continue}if(isNaN(l[1]))return isNaN(s)?-1:1;if(s>i)return 1;if(i>s)return-1}return o.length-n.length}const hi={alphanumeric:vG,alphanumericCaseSensitive:yG,text:wG,textCaseSensitive:CG,datetime:_G,basic:SG},PG=[tG,fG,iG,lG,nG,rG,pG,hG,{getInitialState:e=>({sorting:[],...e}),getDefaultColumnDef:()=>({sortingFn:"auto",sortUndefined:1}),getDefaultOptions:e=>({onSortingChange:Vt("sorting",e),isMultiSortEvent:t=>t.shiftKey}),createColumn:(e,t)=>{e.getAutoSortingFn=()=>{const o=t.getFilteredRowModel().flatRows.slice(10);let n=!1;for(const r of o){const a=r==null?void 0:r.getValue(e.id);if(Object.prototype.toString.call(a)==="[object Date]")return hi.datetime;if(typeof a=="string"&&(n=!0,a.split(rm).length>1))return hi.alphanumeric}return n?hi.text:hi.basic},e.getAutoSortDir=()=>{const o=t.getFilteredRowModel().flatRows[0];return typeof(o==null?void 0:o.getValue(e.id))=="string"?"asc":"desc"},e.getSortingFn=()=>{var o,n;if(!e)throw new Error;return fu(e.columnDef.sortingFn)?e.columnDef.sortingFn:e.columnDef.sortingFn==="auto"?e.getAutoSortingFn():(o=(n=t.options.sortingFns)==null?void 0:n[e.columnDef.sortingFn])!=null?o:hi[e.columnDef.sortingFn]},e.toggleSorting=(o,n)=>{const r=e.getNextSortingOrder(),a=typeof o<"u"&&o!==null;t.setSorting(s=>{const i=s==null?void 0:s.find(g=>g.id===e.id),l=s==null?void 0:s.findIndex(g=>g.id===e.id);let c=[],d,f=a?o:r==="desc";if(s!=null&&s.length&&e.getCanMultiSort()&&n?i?d="toggle":d="add":s!=null&&s.length&&l!==s.length-1?d="replace":i?d="toggle":d="replace",d==="toggle"&&(a||r||(d="remove")),d==="add"){var p;c=[...s,{id:e.id,desc:f}],c.splice(0,c.length-((p=t.options.maxMultiSortColCount)!=null?p:Number.MAX_SAFE_INTEGER))}else d==="toggle"?c=s.map(g=>g.id===e.id?{...g,desc:f}:g):d==="remove"?c=s.filter(g=>g.id!==e.id):c=[{id:e.id,desc:f}];return c})},e.getFirstSortDir=()=>{var o,n;return((o=(n=e.columnDef.sortDescFirst)!=null?n:t.options.sortDescFirst)!=null?o:e.getAutoSortDir()==="desc")?"desc":"asc"},e.getNextSortingOrder=o=>{var n,r;const a=e.getFirstSortDir(),s=e.getIsSorted();return s?s!==a&&((n=t.options.enableSortingRemoval)==null||n)&&(!(o&&(r=t.options.enableMultiRemove)!=null)||r)?!1:s==="desc"?"asc":"desc":a},e.getCanSort=()=>{var o,n;return((o=e.columnDef.enableSorting)!=null?o:!0)&&((n=t.options.enableSorting)!=null?n:!0)&&!!e.accessorFn},e.getCanMultiSort=()=>{var o,n;return(o=(n=e.columnDef.enableMultiSort)!=null?n:t.options.enableMultiSort)!=null?o:!!e.accessorFn},e.getIsSorted=()=>{var o;const n=(o=t.getState().sorting)==null?void 0:o.find(r=>r.id===e.id);return n?n.desc?"desc":"asc":!1},e.getSortIndex=()=>{var o,n;return(o=(n=t.getState().sorting)==null?void 0:n.findIndex(r=>r.id===e.id))!=null?o:-1},e.clearSorting=()=>{t.setSorting(o=>o!=null&&o.length?o.filter(n=>n.id!==e.id):[])},e.getToggleSortingHandler=()=>{const o=e.getCanSort();return n=>{o&&(n.persist==null||n.persist(),e.toggleSorting==null||e.toggleSorting(void 0,e.getCanMultiSort()?t.options.isMultiSortEvent==null?void 0:t.options.isMultiSortEvent(n):!1))}}},createTable:e=>{e.setSorting=t=>e.options.onSortingChange==null?void 0:e.options.onSortingChange(t),e.resetSorting=t=>{var o,n;e.setSorting(t?[]:(o=(n=e.initialState)==null?void 0:n.sorting)!=null?o:[])},e.getPreSortedRowModel=()=>e.getGroupedRowModel(),e.getSortedRowModel=()=>(!e._getSortedRowModel&&e.options.getSortedRowModel&&(e._getSortedRowModel=e.options.getSortedRowModel(e)),e.options.manualSorting||!e._getSortedRowModel?e.getPreSortedRowModel():e._getSortedRowModel())}},aG,gG,mG,xG,bG,uG];function TG(e){var t,o;process.env.NODE_ENV!=="production"&&(e.debugAll||e.debugTable)&&console.info("Creating Table Instance...");const n=[...PG,...(t=e._features)!=null?t:[]];let r={_features:n};const a=r._features.reduce((p,g)=>Object.assign(p,g.getDefaultOptions==null?void 0:g.getDefaultOptions(r)),{}),s=p=>r.options.mergeOptions?r.options.mergeOptions(a,p):{...a,...p};let l={...{},...(o=e.initialState)!=null?o:{}};r._features.forEach(p=>{var g;l=(g=p.getInitialState==null?void 0:p.getInitialState(l))!=null?g:l});const c=[];let d=!1;const f={_features:n,options:{...a,...e},initialState:l,_queue:p=>{c.push(p),d||(d=!0,Promise.resolve().then(()=>{for(;c.length;)c.shift()();d=!1}).catch(g=>setTimeout(()=>{throw g})))},reset:()=>{r.setState(r.initialState)},setOptions:p=>{const g=zn(p,r.options);r.options=s(g)},getState:()=>r.options.state,setState:p=>{r.options.onStateChange==null||r.options.onStateChange(p)},_getRowId:(p,g,x)=>{var m;return(m=r.options.getRowId==null?void 0:r.options.getRowId(p,g,x))!=null?m:`${x?[x.id,g].join("."):g}`},getCoreRowModel:()=>(r._getCoreRowModel||(r._getCoreRowModel=r.options.getCoreRowModel(r)),r._getCoreRowModel()),getRowModel:()=>r.getPaginationRowModel(),getRow:(p,g)=>{let x=(g?r.getPrePaginationRowModel():r.getRowModel()).rowsById[p];if(!x&&(x=r.getCoreRowModel().rowsById[p],!x))throw process.env.NODE_ENV!=="production"?new Error(`getRow could not find row with ID: ${p}`):new Error;return x},_getDefaultColumnDef:de(()=>[r.options.defaultColumn],p=>{var g;return p=(g=p)!=null?g:{},{header:x=>{const m=x.header.column.columnDef;return m.accessorKey?m.accessorKey:m.accessorFn?m.id:null},cell:x=>{var m,b;return(m=(b=x.renderValue())==null||b.toString==null?void 0:b.toString())!=null?m:null},...r._features.reduce((x,m)=>Object.assign(x,m.getDefaultColumnDef==null?void 0:m.getDefaultColumnDef()),{}),...p}},fe(e,"debugColumns","_getDefaultColumnDef")),_getColumnDefs:()=>r.options.columns,getAllColumns:de(()=>[r._getColumnDefs()],p=>{const g=function(x,m,b){return b===void 0&&(b=0),x.map(y=>{const C=eG(r,y,b,m),w=y;return C.columns=w.columns?g(w.columns,C,b+1):[],C})};return g(p)},fe(e,"debugColumns","getAllColumns")),getAllFlatColumns:de(()=>[r.getAllColumns()],p=>p.flatMap(g=>g.getFlatColumns()),fe(e,"debugColumns","getAllFlatColumns")),_getAllFlatColumnsById:de(()=>[r.getAllFlatColumns()],p=>p.reduce((g,x)=>(g[x.id]=x,g),{}),fe(e,"debugColumns","getAllFlatColumnsById")),getAllLeafColumns:de(()=>[r.getAllColumns(),r._getOrderColumnsFn()],(p,g)=>{let x=p.flatMap(m=>m.getLeafColumns());return g(x)},fe(e,"debugColumns","getAllLeafColumns")),getColumn:p=>{const g=r._getAllFlatColumnsById()[p];return process.env.NODE_ENV!=="production"&&!g&&console.error(`[Table] Column with id '${p}' does not exist.`),g}};Object.assign(r,f);for(let p=0;p<r._features.length;p++){const g=r._features[p];g==null||g.createTable==null||g.createTable(r)}return r}function kG(){return e=>de(()=>[e.options.data],t=>{const o={rows:[],flatRows:[],rowsById:{}},n=function(r,a,s){a===void 0&&(a=0);const i=[];for(let c=0;c<r.length;c++){const d=oG(e,e._getRowId(r[c],c,s),r[c],c,a,void 0,s==null?void 0:s.id);if(o.flatRows.push(d),o.rowsById[d.id]=d,i.push(d),e.options.getSubRows){var l;d.originalSubRows=e.options.getSubRows(r[c],c),(l=d.originalSubRows)!=null&&l.length&&(d.subRows=n(d.originalSubRows,a+1,d))}}return i};return o.rows=n(t),o},fe(e.options,"debugTable","getRowModel",()=>e._autoResetPageIndex()))}function EG(e){const t=[],o=n=>{var r;t.push(n),(r=n.subRows)!=null&&r.length&&n.getIsExpanded()&&n.subRows.forEach(o)};return e.rows.forEach(o),{rows:t,flatRows:e.flatRows,rowsById:e.rowsById}}function IG(e){return t=>de(()=>[t.getState().pagination,t.getPrePaginationRowModel(),t.options.paginateExpandedRows?void 0:t.getState().expanded],(o,n)=>{if(!n.rows.length)return n;const{pageSize:r,pageIndex:a}=o;let{rows:s,flatRows:i,rowsById:l}=n;const c=r*a,d=c+r;s=s.slice(c,d);let f;t.options.paginateExpandedRows?f={rows:s,flatRows:i,rowsById:l}:f=EG({rows:s,flatRows:i,rowsById:l}),f.flatRows=[];const p=g=>{f.flatRows.push(g),g.subRows.length&&g.subRows.forEach(p)};return f.rows.forEach(p),f},fe(t.options,"debugTable","getPaginationRowModel"))}/**
|
|
384
|
-
* react-table
|
|
385
|
-
*
|
|
386
|
-
* Copyright (c) TanStack
|
|
387
|
-
*
|
|
388
|
-
* This source code is licensed under the MIT license found in the
|
|
389
|
-
* LICENSE.md file in the root directory of this source tree.
|
|
390
|
-
*
|
|
391
|
-
* @license MIT
|
|
392
|
-
*/function DG(e){const t={state:{},onStateChange:()=>{},renderFallbackValue:null,...e},[o]=v.useState(()=>({current:TG(t)})),[n,r]=v.useState(()=>o.current.initialState);return o.current.setOptions(a=>({...a,...e,state:{...n,...e.state},onStateChange:s=>{r(s),e.onStateChange==null||e.onStateChange(s)}})),o.current}function sm(e){return typeof e=="function"?e():e}function MG(e){return e.map(t=>({id:t.field,accessorKey:t.field,header:t.header??t.field,enableSorting:t.sortable??!1,enableResizing:t.resizable??!0,enableHiding:t.enableHiding??!0,size:typeof t.width=="number"?t.width:void 0,minSize:t.minWidth??50,maxSize:t.maxWidth??1e3}))}function OG(e){const{data:t,columns:o=[],mode:n="client",loading:r=!1,rowKey:a="id",selection:s,detailRow:i,sorting:l,columnManager:c,pinning:d}=e,f=h.useCallback((T,k)=>{if(typeof a=="function")return a(T);const E=T[a];return E!=null?String(E):k},[a]),p=sm(r),g=h.useMemo(()=>sm(o),[o]),x=h.useMemo(()=>sm(t),[t]),m=h.useMemo(()=>MG(g),[g]),b=DG({data:x,columns:m,getCoreRowModel:kG(),getRowId:(T,k)=>String(f(T,k)),manualSorting:n==="server",manualPagination:n==="server",manualFiltering:n==="server"});let y;try{y=b.getRowModel().rows.map(T=>T.original)}catch{y=[]}const C=s==null?void 0:s.create(y,f),w=i==null?void 0:i.create(y,f),P=l==null?void 0:l.create(),S=c==null?void 0:c.create(b,()=>g.map(T=>T.field)),_=d==null?void 0:d.create(b,y);return{instance:b,rows:y,columns:g,getRowKey:f,mode:n,loading:p,selection:C,detailRow:w,sorting:P,columnManager:S,pinning:_}}function AG(e={}){return{type:"selection",options:e,create:(t,o)=>NG(t,o,e)}}function NG(e,t,o){const[n,r]=h.useState(()=>{const x={};if(o.initial)for(const m of o.initial)x[String(m)]=!0;return x}),a=h.useMemo(()=>Object.keys(n).filter(x=>n[x]),[n]),s=h.useMemo(()=>e.length===0?!1:e.every((x,m)=>{const b=String(t(x,m));return n[b]===!0}),[e,t,n]),i=a.length>0&&!s,l=h.useCallback(x=>n[String(x)]===!0,[n]),c=h.useCallback(x=>{const m=String(x);r(b=>({...b,[m]:!b[m]}))},[]),d=h.useCallback(()=>{r(()=>{if(s)return{};const x={};for(let m=0;m<e.length;m++){const b=String(t(e[m],m));x[b]=!0}return x})},[s,e,t]),f=h.useCallback(x=>{r(m=>{const b={...m};for(const y of x)b[String(y)]=!0;return b})},[]),p=h.useCallback(x=>{r(m=>{const b={...m};for(const y of x)delete b[String(y)];return b})},[]),g=h.useCallback(()=>{r({})},[]);return{selection:n,isSelected:l,isAllSelected:s,isSomeSelected:i,toggle:c,toggleAll:d,select:f,deselect:p,clear:g,selectedKeys:a}}function $G(e={}){return{type:"sorting",create:()=>FG(e),options:e}}function FG(e){const[t,o]=h.useState(e.initial??null),n=h.useCallback(l=>{o(l)},[]),r=h.useCallback(l=>{o(c=>(c==null?void 0:c.field)!==l?{field:l,direction:"asc"}:c.direction==="asc"?{field:l,direction:"desc"}:null)},[]),a=h.useCallback(()=>{o(null)},[]),s=h.useCallback(l=>(t==null?void 0:t.field)===l,[t]),i=h.useCallback(l=>(t==null?void 0:t.field)===l?t.direction:null,[t]);return{sorting:t,set:n,toggle:r,clear:a,isSorted:s,getDirection:i}}function LG(e){return typeof e=="function"?e():e}function rE(e,t){try{return e()}catch{return t}}function zG(e,t={}){const{initialPageSize:o=10,totalCount:n}=t,{instance:r}=e;h.useEffect(()=>{e.mode==="client"&&r.setOptions(C=>({...C,getPaginationRowModel:C.getPaginationRowModel??IG()})),r.setPageSize(o)},[r,e.mode]);const{pageIndex:a,pageSize:s}=r.getState().pagination,i=a+1,l=n!==void 0?LG(n):rE(()=>r.getPrePaginationRowModel().rows.length,e.rows.length),c=n!==void 0?Math.max(1,Math.ceil(l/s)):rE(()=>{const C=r.getPageCount();return C>0?C:1},Math.max(1,Math.ceil(l/s))),d=i<c,f=i>1,p=h.useCallback(C=>{r.setPageIndex(Math.max(0,C-1))},[r]),g=h.useCallback(C=>{r.setPageSize(C)},[r]),x=h.useCallback(()=>{r.nextPage()},[r]),m=h.useCallback(()=>{r.previousPage()},[r]),b=h.useCallback(()=>{r.setPageIndex(0)},[r]),y=h.useCallback(()=>{r.setPageIndex(c-1)},[r,c]);return{page:i,pageSize:s,pageCount:c,total:l,setPage:p,setPageSize:g,nextPage:x,prevPage:m,firstPage:b,lastPage:y,canNextPage:d,canPrevPage:f}}function BG(e={}){return{type:"detailRow",options:e,create:(t,o)=>HG(t,o,e)}}function HG(e,t,o){const n=o.allowMultiple??!0,r=h.useRef(e);r.current=e;const a=h.useRef(t);a.current=t;const[s,i]=h.useState(()=>{const m={};if(o.initial)for(const b of o.initial)m[String(b)]=!0;return m}),l=h.useCallback(m=>s===!0?!0:s[String(m)]===!0,[s]),c=h.useMemo(()=>e.length===0?!1:s===!0?!0:e.every((m,b)=>{const y=String(t(m,b));return s[y]===!0}),[e,t,s]),d=h.useCallback(m=>{const b=String(m);i(y=>{const C=r.current,w=a.current,P=y===!0?!0:y[b]===!0;if(y===!0){const S={};for(let _=0;_<C.length;_++){const T=String(w(C[_],_));T!==b&&(S[T]=!0)}return S}return n?{...y,[b]:!P}:P?{}:{[b]:!0}})},[n]),f=h.useCallback(()=>{i(c?{}:!0)},[c]),p=h.useCallback(m=>{i(b=>{if(b===!0)return b;const y={...b};for(const C of m)y[String(C)]=!0;return y})},[]),g=h.useCallback(m=>{i(b=>{if(b===!0){const C=r.current,w=a.current,P=new Set(m.map(String)),S={};for(let _=0;_<C.length;_++){const T=String(w(C[_],_));P.has(T)||(S[T]=!0)}return S}const y={...b};for(const C of m)delete y[String(C)];return y})},[]),x=h.useCallback(()=>{i({})},[]);return{expanded:s,isExpanded:l,isAllExpanded:c,toggle:d,toggleAll:f,expand:p,collapse:g,collapseAll:x}}function VG(e){return{type:"pinning",options:e,create:(t,o)=>WG(t,o,e)}}function WG(e,t,o){const{columns:n,initial:r}=o,a=h.useRef(n);a.current=n;const[s,i]=h.useState(()=>{const _=r??{left:n.filter(T=>T.pin==="left").map(T=>T.field),right:n.filter(T=>T.pin==="right").map(T=>T.field)};return{left:_.left??[],right:_.right??[]}}),l=e,c=h.useCallback((S,_)=>{i(T=>{const k={...T};return k.left=(k.left??[]).filter(E=>E!==S),k.right=(k.right??[]).filter(E=>E!==S),_==="left"?k.left=[...k.left??[],S]:k.right=[...k.right??[],S],k})},[]),d=h.useCallback(S=>{i(_=>({left:(_.left??[]).filter(T=>T!==S),right:(_.right??[]).filter(T=>T!==S)}))},[]),f=h.useCallback(S=>{var _,T;return(_=s.left)!=null&&_.includes(S)?"left":(T=s.right)!=null&&T.includes(S)?"right":!1},[s]),p=(S,_)=>{if(typeof S=="number")return S;if(typeof S=="string"){const T=parseInt(S,10);return isNaN(T)?_:T}return _},g=h.useMemo(()=>{const S=n,_=s.left??[];return _.length===0?[]:_.map(T=>{const k=S.find(E=>E.field===T);return k?{columnId:k.field,header:k.header??k.field,width:p(k.width,48)}:null}).filter(T=>T!==null)},[n,s]),x=h.useMemo(()=>{const S=n,_=s.left??[],T=s.right??[],k=[..._,...T];return S.filter(E=>!k.includes(E.field)).map(E=>({columnId:E.field,header:E.header??E.field,width:p(E.width,100)}))},[n,s]),m=h.useMemo(()=>{const S=n,_=s.right??[];return _.length===0?[]:_.map(T=>{const k=S.find(E=>E.field===T);return k?{columnId:k.field,header:k.header??k.field,width:p(k.width,48)}:null}).filter(T=>T!==null)},[n,s]),b=h.useMemo(()=>g.reduce((S,_)=>S+(_.width??0),0),[g]),y=h.useMemo(()=>m.reduce((S,_)=>S+(_.width??0),0),[m]),C=h.useCallback(S=>{const _=s.left??[];if(_.length===0)return[];try{const T=l.getRowModel().rows[S];if(!T)return[];const k=T.getAllCells();return _.map(E=>{const D=k.find(O=>O.column.id===E);return D?{columnId:D.column.id,value:D.getValue(),row:T.original,rowIndex:S}:null}).filter(E=>E!==null)}catch{return[]}},[s,l]),w=h.useCallback(S=>{const _=s.left??[],T=s.right??[],k=[..._,...T];try{const E=l.getRowModel().rows[S];return E?E.getAllCells().filter(D=>!k.includes(D.column.id)).map(D=>({columnId:D.column.id,value:D.getValue(),row:E.original,rowIndex:S})):[]}catch{return[]}},[s,l]),P=h.useCallback(S=>{const _=s.right??[];if(_.length===0)return[];try{const T=l.getRowModel().rows[S];if(!T)return[];const k=T.getAllCells();return _.map(E=>{const D=k.find(O=>O.column.id===E);return D?{columnId:D.column.id,value:D.getValue(),row:T.original,rowIndex:S}:null}).filter(E=>E!==null)}catch{return[]}},[s,l]);return{pinningState:s,pinColumn:c,unpinColumn:d,isPinned:f,getLeftCells:C,getCenterCells:w,getRightCells:P,leftHeaders:g,centerHeaders:x,rightHeaders:m,leftWidth:b,rightWidth:y}}function RG(e={}){return{type:"columns",options:e,create:(t,o)=>GG(t,o,e)}}function GG(e,t,o){const n=h.useRef(t);n.current=t;const[r,a]=h.useState(o.initialVisibility??{}),[s,i]=h.useState(o.initialOrder??[]),[l,c]=h.useState({}),d=h.useCallback(P=>P in r?r[P]:!0,[r]),f=h.useCallback(P=>{a(S=>({...S,[P]:!(!(P in S)||S[P])}))},[]),p=h.useCallback(P=>{a(P)},[]),g=h.useCallback(P=>{a(S=>({...S,[P]:!0}))},[]),x=h.useCallback(P=>{a(S=>({...S,[P]:!1}))},[]),m=h.useCallback(P=>{i(P)},[]),b=h.useCallback(()=>{i([])},[]),y=h.useCallback((P,S)=>{i(_=>{const T=_.length>0?[..._]:n.current(),k=T.indexOf(P);return k===-1?_:(T.splice(k,1),T.splice(S,0,P),T)})},[]),C=h.useCallback(P=>l[P]??150,[l]),w=h.useCallback((P,S)=>{c(_=>({..._,[P]:S}))},[]);return{visibility:r,isVisible:d,toggleVisibility:f,setVisibility:p,showColumn:g,hideColumn:x,order:s,setOrder:m,resetOrder:b,moveColumn:y,sizing:l,getSize:C,setSize:w}}function aE(e,t={}){const{threshold:o=1}=t,[n,r]=h.useState(!1),[a,s]=h.useState(!1),i=h.useCallback(()=>{const c=e.current;if(!c){r(!1),s(!1);return}const{scrollLeft:d,scrollWidth:f,clientWidth:p}=c;r(d>o),s(d+p<f-o)},[e,o]),l=h.useRef(i);return l.current=i,h.useEffect(()=>{const c=e.current;if(!c)return;const d=()=>l.current();l.current(),c.addEventListener("scroll",d,{passive:!0});const f=new ResizeObserver(()=>{l.current()});f.observe(c);for(const g of c.children)f.observe(g);const p=requestAnimationFrame(()=>l.current());return()=>{c.removeEventListener("scroll",d),f.disconnect(),cancelAnimationFrame(p)}},[e]),{showLeftShadow:n,showRightShadow:a,updateShadows:i}}function jG(e){return typeof e=="function"?e():e}const UG=4;function sE(e,t={}){const{enabled:o=!0,cursor:n="grabbing",ignore:r='[data-slot="drag"]'}=t,[a,s]=h.useState(!1),i=h.useRef(o);i.current=o;const l=h.useRef(n);l.current=n;const c=h.useRef(r);return c.current=r,h.useEffect(()=>{const d=e.current;if(!d)return;let f=!1,p=!1,g=0,x=0,m;function b(S){var k;if(!jG(i.current))return;const _=e.current;if(!_||S.button!==0)return;const T=c.current;T&&((k=S.target)!=null&&k.closest(T))||_.scrollWidth<=_.clientWidth||(f=!0,g=S.pageX-_.offsetLeft,x=_.scrollLeft)}function y(S){if(!f)return;const _=e.current;if(!_)return;const T=S.pageX-_.offsetLeft-g;if(!p){if(Math.abs(T)<UG)return;p=!0,s(!0),_.style.cursor=l.current,_.style.userSelect="none"}S.preventDefault(),_.scrollLeft=x-T}function C(S){const _=T=>{T.stopPropagation(),T.preventDefault()};S.addEventListener("click",_,{capture:!0,once:!0}),clearTimeout(m),m=setTimeout(()=>{S.removeEventListener("click",_,{capture:!0}),m=void 0})}function w(){if(f=!1,!p)return;const S=e.current;S&&(S.style.cursor="",S.style.userSelect="",C(S)),p=!1,s(!1)}function P(){w()}return d.addEventListener("mousedown",b),d.addEventListener("mousemove",y),d.addEventListener("mouseup",w),d.addEventListener("mouseleave",P),()=>{clearTimeout(m),d.removeEventListener("mousedown",b),d.removeEventListener("mousemove",y),d.removeEventListener("mouseup",w),d.removeEventListener("mouseleave",P)}},[e]),{isDragging:a}}const gi="tr:not([data-spacer])",iE="data-hovered";function lE(e,t,o){const n=h.useRef(!1),r=h.useCallback(()=>{const s=e.current,i=t.current,l=o.current;if(!s)return;const c=s.querySelectorAll(gi),d=(i==null?void 0:i.querySelectorAll(gi))??[],f=(l==null?void 0:l.querySelectorAll(gi))??[];c.forEach((p,g)=>{p.style.height="",d[g]&&(d[g].style.height=""),f[g]&&(f[g].style.height="")}),c.forEach((p,g)=>{const x=[p.getBoundingClientRect().height];d[g]&&x.push(d[g].getBoundingClientRect().height),f[g]&&x.push(f[g].getBoundingClientRect().height);const b=`${Math.max(...x)}px`;p.style.height=b,d[g]&&(d[g].style.height=b),f[g]&&(f[g].style.height=b)})},[e,t,o]),a=h.useRef(r);return a.current=r,h.useEffect(()=>{const s=e.current,i=t.current,l=o.current;function c(C,w){n.current||(n.current=!0,w.forEach(P=>{P&&P!==C&&(P.scrollTop=C.scrollTop)}),requestAnimationFrame(()=>{n.current=!1}))}function d(){s&&c(s,[i,l])}function f(){i&&c(i,[s,l])}function p(){l&&c(l,[s,i])}let g=[];const x=()=>[i,s,l].filter(C=>!!C);function m(){g.forEach(C=>C.removeAttribute(iE)),g=[]}function b(C){var _;if(C.pointerType!=="mouse")return;const w=C.currentTarget,P=((_=C.target)==null?void 0:_.closest("tr"))??null;if(P&&g.includes(P)||(m(),!P))return;const S=Array.prototype.indexOf.call(w.querySelectorAll(gi),P);S<0||x().forEach(T=>{const k=T.querySelectorAll(gi)[S];k&&(k.setAttribute(iE,""),g.push(k))})}s==null||s.addEventListener("scroll",d),i==null||i.addEventListener("scroll",f),l==null||l.addEventListener("scroll",p),x().forEach(C=>{C.addEventListener("pointerover",b),C.addEventListener("pointerleave",m)}),a.current();const y=new ResizeObserver(()=>{a.current()});return x().forEach(C=>{y.observe(C);for(const w of C.children)y.observe(w)}),()=>{s==null||s.removeEventListener("scroll",d),i==null||i.removeEventListener("scroll",f),l==null||l.removeEventListener("scroll",p),x().forEach(C=>{C.removeEventListener("pointerover",b),C.removeEventListener("pointerleave",m)}),m(),y.disconnect()}},[e,t,o]),{syncRowHeights:r}}function qG(e){if(e!==void 0)return typeof e=="number"?`${e}px`:e}function im({loading:e=!1,enableDragToScroll:t=!0,table:o,renderCell:n,renderHeader:r,detailRow:a,bulkHeader:s,bulkActions:i,pagination:l,empty:c,fixedLeft:d,fixedRight:f,children:p}){var st,it,qe,Lo;const g=(o==null?void 0:o.columns)??[],x=o==null?void 0:o.selection,m=o==null?void 0:o.detailRow,b=o==null?void 0:o.pinning,y=e||((o==null?void 0:o.loading)??!1),C=!!o&&g.length>0,w=b==null?void 0:b.pinningState,P=(((st=w==null?void 0:w.left)==null?void 0:st.length)??0)>0||(((it=w==null?void 0:w.right)==null?void 0:it.length)??0)>0,S=(((qe=w==null?void 0:w.left)==null?void 0:qe.length)??0)>0,_=(((Lo=w==null?void 0:w.right)==null?void 0:Lo.length)??0)>0,T=b?g.filter(se=>b.isPinned(se.field)==="left"):[],k=b?g.filter(se=>!b.isPinned(se.field)):g,E=b?g.filter(se=>b.isPinned(se.field)==="right"):[],D=k.length;let O=T.length;x&&(O+=1),m&&(O+=1);const N=!!d,z=!!f,B=N||z,G=h.useRef(null),R=h.useRef(null),A=h.useRef(null),F=h.useRef(null),{showLeftShadow:V,showRightShadow:M}=aE(G),{isDragging:Y}=sE(G,{enabled:()=>t});lE(G,A,F);const H=V||M,q=$(V&&!(S||!!x||!!m)&&!N&&ce.oxTableFixedFrameShadowLeft,M&&!_&&!z&&ce.oxTableFixedFrameShadowRight),j=iu(),W=h.useRef(j);W.current=j;const U=h.useCallback(se=>{var Ce;G.current=se,(Ce=W.current)==null||Ce.claim(se)},[]),K=h.useCallback(se=>{var Ce;R.current=se,(Ce=W.current)==null||Ce.claim(se)},[]),J=j!=null&&j.maxHeight?{maxHeight:j.maxHeight}:void 0,Z=x?x.isAllSelected?!0:x.isSomeSelected?"indeterminate":!1:!1,te=x==null?void 0:x.toggleAll;let X=g.length;x&&(X+=1),m&&(X+=1);const Q=(se,Ce)=>o?o.getRowKey(se,Ce):Ce,be=(se,Ce,Pe)=>{const ht=Ce[se.field];if(n){const yo=n(se.field,{row:Ce,value:ht,rowIndex:Pe});if(yo!==void 0)return yo}return se.cellSlot?se.cellSlot({row:Ce,value:ht,rowIndex:Pe}):null},De=se=>{if(r){const Ce=r(se.field,se);if(Ce!==void 0)return Ce}return se.header??se.field},Fe=$(ce.oxTableRoot,"table-root",V&&"table-root--scroll-left",M&&"table-root--scroll-right"),Ge=se=>{var Ce,Pe;return u.jsx(Rg,{width:qG(se.width),align:se.align,sortable:se.sortable,sorted:((Ce=o==null?void 0:o.sorting)==null?void 0:Ce.isSorted(se.field))??!1,sortDirection:((Pe=o==null?void 0:o.sorting)==null?void 0:Pe.getDirection(se.field))??null,onSort:()=>{var ht;return(ht=o==null?void 0:o.sorting)==null?void 0:ht.toggle(se.field)},children:De(se)},se.field)},Me=(se,Ce,Pe)=>Pe.map(ht=>u.jsx(Wg,{align:ht.align,children:be(ht,se,Ce)},ht.field)),kt=s??(x&&x.selectedKeys.length>0&&o?u.jsx(Vg,{selectedCount:x.selectedKeys.length,total:o.rows.length,children:({message:se})=>u.jsxs(u.Fragment,{children:[u.jsx("span",{className:ce.oxTableBulkCount,children:se}),u.jsx("div",{className:ce.oxTableBulkActions,children:i})]})}):null);return C&&o&&P?u.jsxs("div",{className:Fe,"aria-busy":y,"data-loading":y,"data-slot":"table",children:[u.jsx("div",{className:$(ce.oxTableFixedFrame,q),children:u.jsxs("div",{ref:K,className:$(ce.oxTableFixedLayout,j&&ce.oxTableFixedLayoutVirtual),style:J,children:[(S||!!x||!!m)&&u.jsx("div",{ref:A,className:$(ce.oxTableFixedSection,ce.oxTableFixedLeft,V&&ce.oxTableFixedLeftShadow),children:u.jsxs("table",{className:ce.oxTable,children:[u.jsxs(Fa,{children:[m&&u.jsx($a,{header:!0}),x&&u.jsx(Ha,{header:!0,checked:Z,onChange:te}),T.map(Ge)]}),u.jsx(Na,{children:o.rows.map((se,Ce)=>{const Pe=Q(se,Ce);return u.jsxs(mu,{children:[u.jsxs(za,{selected:x==null?void 0:x.isSelected(Pe),expanded:m==null?void 0:m.isExpanded(Pe),children:[m&&u.jsx($a,{expanded:m.isExpanded(Pe),onToggle:()=>m.toggle(Pe)}),x&&u.jsx(Ha,{checked:x.isSelected(Pe),onChange:()=>x.toggle(Pe)}),Me(se,Ce,T)]}),m&&u.jsx(Ba,{expanded:m.isExpanded(Pe),colspan:O})]},Pe)})})]})}),u.jsx("div",{ref:G,className:$(ce.oxTableFixedScroll,t&&H&&ce.oxTableFixedScrollDraggable,Y&&ce.oxTableFixedScrollDragging),children:u.jsxs("table",{className:ce.oxTable,children:[u.jsx(Fa,{children:k.map(Ge)}),u.jsx(Na,{children:o.rows.map((se,Ce)=>{const Pe=Q(se,Ce);return u.jsxs(mu,{children:[u.jsx(za,{selected:x==null?void 0:x.isSelected(Pe),expanded:m==null?void 0:m.isExpanded(Pe),children:Me(se,Ce,k)}),m&&u.jsx(Ba,{expanded:m.isExpanded(Pe),colspan:D,children:a==null?void 0:a({row:se,rowIndex:Ce})})]},Pe)})})]})}),_&&u.jsx("div",{ref:F,className:$(ce.oxTableFixedSection,ce.oxTableFixedRight,M&&ce.oxTableFixedRightShadow),children:u.jsxs("table",{className:ce.oxTable,children:[u.jsx(Fa,{children:E.map(Ge)}),u.jsx(Na,{children:o.rows.map((se,Ce)=>{const Pe=Q(se,Ce);return u.jsxs(mu,{children:[u.jsx(za,{selected:x==null?void 0:x.isSelected(Pe),expanded:m==null?void 0:m.isExpanded(Pe),children:Me(se,Ce,E)}),m&&u.jsx(Ba,{expanded:m.isExpanded(Pe),colspan:E.length})]},Pe)})})]})})]})}),j&&u.jsx(uu,{}),l,kt,!y&&o.rows.length===0&&c]}):C&&o?u.jsxs("div",{className:Fe,"aria-busy":y,"data-loading":y,"data-slot":"table",children:[u.jsx("div",{className:$(ce.oxTableScrollWrapper,V&&ce.oxTableScrollWrapperShadowLeft,M&&ce.oxTableScrollWrapperShadowRight),children:u.jsx("div",{ref:U,className:$(ce.oxTableScrollContainer,t&&H&&ce.oxTableScrollContainerDraggable,Y&&ce.oxTableScrollContainerDragging,j&&ce.oxTableScrollContainerVirtual),style:J,children:u.jsxs("table",{className:ce.oxTable,children:[u.jsxs(Fa,{children:[m&&u.jsx($a,{header:!0}),x&&u.jsx(Ha,{header:!0,checked:Z,onChange:te}),g.map(Ge)]}),u.jsx(Na,{children:o.rows.map((se,Ce)=>{const Pe=Q(se,Ce);return u.jsxs(mu,{children:[u.jsxs(za,{selected:x==null?void 0:x.isSelected(Pe),expanded:m==null?void 0:m.isExpanded(Pe),children:[m&&u.jsx($a,{expanded:m.isExpanded(Pe),onToggle:()=>m.toggle(Pe)}),x&&u.jsx(Ha,{checked:x.isSelected(Pe),onChange:()=>x.toggle(Pe)}),Me(se,Ce,g)]}),m&&u.jsx(Ba,{expanded:m.isExpanded(Pe),colspan:X,children:a==null?void 0:a({row:se,rowIndex:Ce})})]},Pe)})})]})})}),j&&u.jsx(uu,{}),l,kt,!y&&o.rows.length===0&&c]}):B?u.jsxs("div",{className:Fe,"aria-busy":y,"data-loading":y,"data-slot":"table",children:[u.jsx("div",{className:$(ce.oxTableFixedFrame,q),children:u.jsxs("div",{ref:K,className:$(ce.oxTableFixedLayout,j&&ce.oxTableFixedLayoutVirtual),style:J,children:[N&&u.jsx("div",{ref:A,className:$(ce.oxTableFixedSection,ce.oxTableFixedLeft,V&&ce.oxTableFixedLeftShadow),children:u.jsx("table",{className:ce.oxTable,children:d})}),u.jsx("div",{ref:G,className:$(ce.oxTableFixedScroll,t&&H&&ce.oxTableFixedScrollDraggable,Y&&ce.oxTableFixedScrollDragging),children:u.jsx("table",{className:ce.oxTable,children:p})}),z&&u.jsx("div",{ref:F,className:$(ce.oxTableFixedSection,ce.oxTableFixedRight,M&&ce.oxTableFixedRightShadow),children:u.jsx("table",{className:ce.oxTable,children:f})})]})}),c,s]}):u.jsxs("div",{className:Fe,"aria-busy":y,"data-loading":y,"data-slot":"table",children:[u.jsx("div",{className:$(ce.oxTableScrollWrapper,V&&ce.oxTableScrollWrapperShadowLeft,M&&ce.oxTableScrollWrapperShadowRight),children:u.jsx("div",{ref:U,className:$(ce.oxTableScrollContainer,t&&H&&ce.oxTableScrollContainerDraggable,Y&&ce.oxTableScrollContainerDragging,j&&ce.oxTableScrollContainerVirtual),style:J,children:u.jsx("table",{className:ce.oxTable,children:p})})}),j&&u.jsx(uu,{}),l,c,s]})}function mu({children:e}){return u.jsx(u.Fragment,{children:e})}im.displayName="OxTable";function cE({virtualizer:e,...t}){return u.jsx(zk.Provider,{value:e,children:u.jsx(im,{...t})})}cE.displayName="OxTableVirtualized";const mi={oxTableDragCell:"_oxTableDragCell_232rp_2",oxTableDragCellHeader:"_oxTableDragCellHeader_232rp_2",oxTableDragCellContent:"_oxTableDragCellContent_232rp_2",oxTableDragIcon:"_oxTableDragIcon_232rp_2",oxTableDragCellFixed:"_oxTableDragCellFixed_232rp_2"},uE=h.forwardRef(({className:e,header:t=!1,fixed:o=!1,fixedOffset:n="0px",style:r,...a},s)=>{const i=t?"th":"td",l=h.useContext(jk),c=l?{...l.attributes,...l.listeners}:{};return u.jsx(i,{ref:s,className:$(mi.oxTableDragCell,t&&mi.oxTableDragCellHeader,o&&mi.oxTableDragCellFixed,e),style:o?{left:n,...r}:r,"data-slot":"drag",...a,children:!t&&u.jsx("div",{ref:l?l.setActivatorNodeRef:void 0,className:mi.oxTableDragCellContent,style:l?{cursor:"grab",touchAction:"none"}:void 0,...c,children:u.jsx(ee,{icon:vv,className:mi.oxTableDragIcon})})})});uE.displayName="OxTableDragCell";const Mt={oxTablePagination:"_oxTablePagination_1oxvk_2",oxTablePaginationInfo:"_oxTablePaginationInfo_1oxvk_2",oxTablePaginationPages:"_oxTablePaginationPages_1oxvk_2",oxTablePaginationBtn:"_oxTablePaginationBtn_1oxvk_2",oxTablePaginationBtnActive:"_oxTablePaginationBtnActive_1oxvk_2",oxTablePaginationIcon:"_oxTablePaginationIcon_1oxvk_2",oxTablePaginationSize:"_oxTablePaginationSize_1oxvk_2",oxTablePaginationSizeLabel:"_oxTablePaginationSizeLabel_1oxvk_2",oxTablePaginationSelectWrapper:"_oxTablePaginationSelectWrapper_1oxvk_2",oxTablePaginationSelect:"_oxTablePaginationSelect_1oxvk_2",oxTablePaginationSelectIcon:"_oxTablePaginationSelectIcon_1oxvk_2"},dE=h.forwardRef(({className:e,page:t=1,pageSize:o=10,pageCount:n,total:r=0,pageSizes:a=[10,20,50,100],onPageChange:s,onPageSizeChange:i,...l},c)=>{const d=n??(Math.ceil(r/o)||1),f=t,p=r===0?0:(t-1)*o+1,g=Math.min(p+o-1,r),x=t>1,m=t<d,b=h.useMemo(()=>{const _=[],T=f,k=d;if(k<=7)for(let E=1;E<=k;E++)_.push(E);else{_.push(1),T>3&&_.push("...");const E=Math.max(2,T-1),D=Math.min(k-1,T+1);for(let O=E;O<=D;O++)_.push(O);T<k-2&&_.push("..."),_.push(k)}return _},[f,d]),y=()=>{x&&(s==null||s(t-1))},C=()=>{m&&(s==null||s(t+1))},w=_=>{_!=="..."&&(s==null||s(_))},P=ve(),S=_=>{i==null||i(Number(_.target.value))};return u.jsxs("div",{ref:c,className:$(Mt.oxTablePagination,e),"data-slot":"pagination",...l,children:[u.jsxs("div",{className:Mt.oxTablePaginationInfo,children:[u.jsxs("span",{children:[p,"-",g]}),u.jsx("span",{children:P("orxata.table.pagination.of")}),u.jsx("span",{children:r})]}),u.jsxs("div",{className:Mt.oxTablePaginationPages,children:[u.jsx("button",{className:Mt.oxTablePaginationBtn,"aria-label":P("orxata.table.pagination.previous"),disabled:!x,onClick:y,children:u.jsx(ee,{icon:_c,className:Mt.oxTablePaginationIcon})}),b.map((_,T)=>u.jsx("button",{className:$(Mt.oxTablePaginationBtn,_===f&&Mt.oxTablePaginationBtnActive),disabled:_==="...",onClick:()=>w(_),children:_},T)),u.jsx("button",{className:Mt.oxTablePaginationBtn,"aria-label":P("orxata.table.pagination.next"),disabled:!m,onClick:C,children:u.jsx(ee,{icon:Ar,className:Mt.oxTablePaginationIcon})})]}),u.jsxs("div",{className:Mt.oxTablePaginationSize,children:[u.jsx("span",{className:Mt.oxTablePaginationSizeLabel,children:P("orxata.table.pagination.rowsPerPage")}),u.jsxs("div",{className:Mt.oxTablePaginationSelectWrapper,children:[u.jsx("select",{className:Mt.oxTablePaginationSelect,value:o,onChange:S,children:a.map(_=>u.jsx("option",{value:_,children:_},_))}),u.jsx(ee,{icon:Co,className:Mt.oxTablePaginationSelectIcon})]})]})]})});dE.displayName="OxTablePagination";const fE={oxTableEmpty:"_oxTableEmpty_1rhdb_2",oxTableEmptyText:"_oxTableEmptyText_1rhdb_2"},pE=h.forwardRef(({className:e,children:t,...o},n)=>{const r=ve();return u.jsx("div",{ref:n,className:$(fE.oxTableEmpty,e),"data-slot":"empty",...o,children:t??u.jsx("p",{className:fE.oxTableEmptyText,children:r("orxata.table.empty")})})});pE.displayName="OxTableEmpty";const xi={oxTableColumnVisibility:"_oxTableColumnVisibility_39rmt_2",oxTableColumnVisibilityHeader:"_oxTableColumnVisibilityHeader_39rmt_2",oxTableColumnVisibilityList:"_oxTableColumnVisibilityList_39rmt_2",oxTableColumnVisibilityItem:"_oxTableColumnVisibilityItem_39rmt_2",oxTableColumnVisibilityLabel:"_oxTableColumnVisibilityLabel_39rmt_2"},hE=h.forwardRef(({className:e,columns:t,visibility:o={},header:n,onToggle:r,...a},s)=>{const i=ve(),l=c=>o[c]!==!1;return u.jsxs("div",{ref:s,className:$(xi.oxTableColumnVisibility,e),"data-slot":"column-visibility",...a,children:[n??u.jsx("div",{className:xi.oxTableColumnVisibilityHeader,children:i("orxata.table.columns")}),u.jsx("div",{className:xi.oxTableColumnVisibilityList,children:t.map(c=>u.jsxs("label",{className:xi.oxTableColumnVisibilityItem,children:[u.jsx(Xc,{checked:l(c.field),onCheckedChange:()=>r==null?void 0:r(c.field)}),u.jsx("span",{className:xi.oxTableColumnVisibilityLabel,children:c.header??c.field})]},c.field))})]})});hE.displayName="OxTableColumnVisibility",I.CARD_STACK_DECK=Zd,I.LocaleContext=Xu,I.NUMBER_FLOW_PRESETS=EN,I.OxAccordion=IC,I.OxAccordionContent=AC,I.OxAccordionItem=DC,I.OxAccordionTrigger=MC,I.OxActionItem=ox,I.OxAiSearch=j_,I.OxAiSearchAsk=U_,I.OxAiSearchPanel=q_,I.OxAiSearchSend=X_,I.OxAiSearchShortcut=Z_,I.OxAiSearchSuggestion=J_,I.OxAiTag=Oy,I.OxAlert=Qy,I.OxAlertClose=ew,I.OxAlertDescription=ow,I.OxAlertIcon=sw,I.OxAlertLink=iw,I.OxAlertTitle=lw,I.OxAlertToggle=cw,I.OxAvatarDetails=d1,I.OxAvatarGroup=f1,I.OxAvatarRounded=Ml,I.OxAvatarSkeleton=u1,I.OxAvatarSquare=Sf,I.OxBadge=p1,I.OxBrandLogo=Ny,I.OxBreadcrumb=p_,I.OxBreadcrumbEllipsis=w_,I.OxBreadcrumbItem=g_,I.OxBreadcrumbLink=x_,I.OxBreadcrumbList=h_,I.OxBreadcrumbPage=b_,I.OxBreadcrumbSeparator=y_,I.OxBullet=Tl,I.OxButton=ja,I.OxButtonGroup=Ku,I.OxCalendar=kh,I.OxCalendarDate=g1,I.OxCalendarDay=mc,I.OxCalendarRange=Ih,I.OxCard=ml,I.OxCardStack=Hb,I.OxChatBubble=q1,I.OxChatBubbleStatus=Lf,I.OxChatInput=j2,I.OxCheckbox=Xc,I.OxChip=Bf,I.OxColorPicker=q2,I.OxColorPickerContent=tP,I.OxColorPickerSwatch=oP,I.OxColorPickerTrigger=Y2,I.OxCombobox=M2,I.OxComboboxCancel=N2,I.OxComboboxChipsInput=z2,I.OxComboboxContent=B2,I.OxComboboxEmpty=W2,I.OxComboboxGroup=R2,I.OxComboboxInput=$2,I.OxComboboxItem=H2,I.OxComboboxItemEdit=V2,I.OxComboboxSeparator=G2,I.OxCommentItem=K1,I.OxCounter=Qp,I.OxDatePicker=hP,I.OxDatePickerHeader=Tc,I.OxDatePickerMonthSelect=DP,I.OxDatePickerTrigger=Ks,I.OxDatePickerYearSelect=OP,I.OxDateRangePicker=gP,I.OxDialog=xw,I.OxDialogBody=vw,I.OxDialogClose=ra,I.OxDialogContent=bw,I.OxDialogDescription=ww,I.OxDialogFullScreenContent=_w,I.OxDialogOverlay=Cs,I.OxDialogTitle=yw,I.OxDialogTrigger=dw,I.OxDialogTwoPanelContent=Cw,I.OxDivider=Vb,I.OxDrawer=Pw,I.OxDrawerBody=Ew,I.OxDrawerClose=ra,I.OxDrawerContent=kw,I.OxDrawerDescription=Dw,I.OxDrawerExpand=Mw,I.OxDrawerTitle=Iw,I.OxDrawerTrigger=dw,I.OxDropdownMenu=cl,I.OxDropdownMenuCheckboxItem=Ib,I.OxDropdownMenuContent=hl,I.OxDropdownMenuGroup=Pb,I.OxDropdownMenuItem=Eb,I.OxDropdownMenuLabel=kb,I.OxDropdownMenuRadioGroup=Db,I.OxDropdownMenuRadioItem=Mb,I.OxDropdownMenuSeparator=Ob,I.OxDropdownMenuShortcut=Ab,I.OxDropdownMenuSub=Nb,I.OxDropdownMenuSubContent=Fb,I.OxDropdownMenuSubTrigger=$b,I.OxDropdownMenuTrigger=ul,I.OxEmptyState=By,I.OxEmptyStateOption=Vy,I.OxFab=rx,I.OxFieldGroup=k_,I.OxFieldLabel=E_,I.OxFieldMessage=I_,I.OxFileCard=N1,I.OxFilePreviewCard=G1,I.OxIconButton=jt,I.OxIconPicker=aP,I.OxIconPickerContent=lP,I.OxIconPickerItem=cP,I.OxIconPickerTrigger=sP,I.OxImageAttachment=L1,I.OxInputGroup=Q_,I.OxInputNumber=oS,I.OxInputNumberContent=nS,I.OxInputNumberDecrement=aS,I.OxInputNumberIncrement=lS,I.OxInputNumberInput=cS,I.OxInputOtp=gS,I.OxInputOtpGroup=mS,I.OxInputOtpSeparator=bS,I.OxInputOtpSlot=xS,I.OxInputPassword=dS,I.OxInputPasswordInput=fS,I.OxInputPasswordToggle=pS,I.OxInputText=eS,I.OxKpiCard=rk,I.OxLinkPreview=B1,I.OxLoader=Xf,I.OxLocaleProvider=cx,I.OxLocationAttachment=H1,I.OxMention=J1,I.OxMonthPicker=FP,I.OxMonthPickerPanel=Jh,I.OxNumberFlow=k1,I.OxPageControl=d_,I.OxPaymentCard=O1,I.OxPixelArt=D1,I.OxPlayerPill=wy,I.OxPlayerPillAction=_y,I.OxPlayerPillStatus=Sy,I.OxPlayerPillTime=Py,I.OxPointMarker=Ey,I.OxPopover=cr,I.OxPopoverClose=k6,I.OxPopoverContent=ta,I.OxProgress=Xy,I.OxRadioButton=JT,I.OxRadioGroup=QT,I.OxReactionBar=vy,I.OxReactionButton=oa,I.OxReactionPicker=qf,I.OxResizable=xv,I.OxResizableHandle=yv,I.OxResizablePanel=bv,I.OxRichText=zf,I.OxRichTextEditor=HP,I.OxRichTextToolbar=wT,I.OxRichTextToolbarButton=CT,I.OxScrollbar=_n,I.OxSearchBar=_T,I.OxSearchPanel=TT,I.OxSearchPanelEmpty=kT,I.OxSearchPanelGroup=ET,I.OxSearchPanelInput=IT,I.OxSearchPanelItem=DT,I.OxSearchPanelList=MT,I.OxSelect=Mc,I.OxSelectContent=Oc,I.OxSelectGroup=OT,I.OxSelectItem=Ac,I.OxSelectSeparator=AT,I.OxSelectTrigger=$c,I.OxSkeleton=Xo,I.OxSplitButton=Lb,I.OxStatusBadge=Ly,I.OxStepper=i_,I.OxStepperItem=l_,I.OxStepperSubsteps=u_,I.OxSwitch=KT,I.OxTable=im,I.OxTableBody=Na,I.OxTableBulkHeader=Vg,I.OxTableCell=Wg,I.OxTableColumnVisibility=hE,I.OxTableDragCell=uE,I.OxTableEmpty=pE,I.OxTableExpandCell=$a,I.OxTableHead=Fa,I.OxTableHeaderCell=Rg,I.OxTablePagination=dE,I.OxTableRow=za,I.OxTableRowExpanded=Ba,I.OxTableSelectCell=Ha,I.OxTableVirtualized=cE,I.OxTabs=UC,I.OxTabsContent=KC,I.OxTabsList=qC,I.OxTabsTrigger=YC,I.OxTag=Dy,I.OxTextarea=YT,I.OxTimePicker=UT,I.OxTimePickerField=lg,I.OxTimePickerList=qT,I.OxTimePickerWheel=fg,I.OxTimePickerWheelColumn=dg,I.OxToast=Sp,I.OxToastAction=Pp,I.OxToastActions=Tp,I.OxToastClose=kp,I.OxToastDescription=Ep,I.OxToastIcon=Ip,I.OxToastTitle=Dp,I.OxToaster=bC,I.OxToggleDescription=nk,I.OxToggleGroup=ek,I.OxToggleLabel=tk,I.OxToggleTabs=XC,I.OxToggleTabsContent=t_,I.OxToggleTabsList=QC,I.OxToggleTabsTrigger=e_,I.OxTooltip=Dl,I.OxTooltipContent=fs,I.OxTransitionBounce=Gm,I.OxTransitionExpand=Uu,I.OxTransitionFade=ju,I.OxTransitionFlip=qm,I.OxTransitionReveal=Ym,I.OxTransitionSlideX=Gu,I.OxTransitionSlideY=jm,I.OxVideoAttachment=z1,I.OxVoiceMessage=R1,I.PAGE_CONTROL_WINDOW=fr,I.RICH_TEXT_COMMANDS=Js,I.RICH_TEXT_COMMAND_NAMES=Lc,I.RICH_TEXT_SCHEMA=l6,I.SCROLLBAR_THICKNESS=Pl,I.SWITCH_SIZES=PV,I.TOAST_POSITIONS=Y8,I.TranslateContext=Zu,I.aiTagVariants=Ay,I.avatarRoundedVariants=Tf,I.avatarSquareVariants=Pf,I.badgeVariants=h1,I.brandLogoVariants=$y,I.bulletVariants=_v,I.buttonVariants=qu,I.calendarDateVariants=m1,I.calendarDayVariants=I2,I.cardVariants=Bb,I.chatBubbleStatusVariants=U1,I.chatBubbleVariants=Y1,I.chipVariants=ey,I.cn=$,I.counterVariants=__,I.dismissAllToasts=mC,I.dismissToast=Ps,I.emptyStateVariants=Hy,I.english=lx,I.fabVariants=ax,I.fileCardVariants=$1,I.iconButtonVariants=tx,I.isRichTextAdapter=Sa,I.isStepNavigable=a_,I.kpiCardVariants=ak,I.mentionVariants=Q1,I.normalizeLocale=sx,I.orxataMessages=$I,I.oxRichTextExtensions=HH,I.pageControlDots=f_,I.paymentCardVariants=A1,I.playerPillVariants=Ty,I.pointMarkerVariants=Iy,I.reactionButtonVariants=xy,I.resolveNumberFlowPreset=I1,I.resolveToastActions=Mp,I.searchBarVariants=ST,I.statusBadgeVariants=zy,I.stepperState=r_,I.tagVariants=My,I.toWaveformPeaks=QN,I.toast=gC,I.toastSwipeDirection=wC,I.toastVariants=yC,I.toastViewportVariants=vC,I.useAutoGrow=Iu,I.useColorPicker=vc,I.useDragToScroll=sE,I.useFieldControl=Tt,I.useFieldControlGroup=Es,I.useFixedColumns=lE,I.useIconPicker=Cc,I.useInputOtp=fc,I.useInputPassword=fh,I.useLocale=Di,I.useRichTextAdapter=zP,I.useRichTextToolbar=Qh,I.useScrollShadow=aE,I.useScrollbar=Cv,I.useSearchDebounce=Du,I.useStepper=n_,I.useTable=OG,I.useTableColumns=RG,I.useTableDetailRow=BG,I.useTablePagination=zG,I.useTablePinning=VG,I.useTableSelection=AG,I.useTableSorting=$G,I.useTableVirtual=GR,I.useToast=xC,I.useTranslate=ve,Object.defineProperty(I,Symbol.toStringTag,{value:"Module"})}));
|