@3mo/data-grid 0.0.1 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/FieldSelectDataGridPageSize.d.ts +3 -4
- package/dist/FieldSelectDataGridPageSize.d.ts.map +1 -1
- package/dist/FieldSelectDataGridPageSize.js +11 -10
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +3 -2
- package/dist/Checkbox/Checkbox.d.ts +0 -37
- package/dist/Checkbox/Checkbox.d.ts.map +0 -1
- package/dist/Checkbox/index.d.ts +0 -2
- package/dist/Checkbox/index.d.ts.map +0 -1
- package/dist/Color/Color.d.ts +0 -18
- package/dist/Color/Color.d.ts.map +0 -1
- package/dist/Color/index.d.ts +0 -2
- package/dist/Color/index.d.ts.map +0 -1
- package/dist/ContextMenu/ContextMenu.d.ts +0 -16
- package/dist/ContextMenu/ContextMenu.d.ts.map +0 -1
- package/dist/ContextMenu/ContextMenuDirective.d.ts +0 -13
- package/dist/ContextMenu/ContextMenuDirective.d.ts.map +0 -1
- package/dist/ContextMenu/ContextMenuItem.d.ts +0 -10
- package/dist/ContextMenu/ContextMenuItem.d.ts.map +0 -1
- package/dist/ContextMenu/index.d.ts +0 -4
- package/dist/ContextMenu/index.d.ts.map +0 -1
- package/dist/DataGrid/ColumnDefinition.d.ts +0 -16
- package/dist/DataGrid/ColumnDefinition.d.ts.map +0 -1
- package/dist/DataGrid/CsvGenerator.d.ts +0 -4
- package/dist/DataGrid/CsvGenerator.d.ts.map +0 -1
- package/dist/DataGrid/DataGrid.d.ts +0 -230
- package/dist/DataGrid/DataGrid.d.ts.map +0 -1
- package/dist/DataGrid/DataGridCell.d.ts +0 -27
- package/dist/DataGrid/DataGridCell.d.ts.map +0 -1
- package/dist/DataGrid/DataGridFooter.d.ts +0 -27
- package/dist/DataGrid/DataGridFooter.d.ts.map +0 -1
- package/dist/DataGrid/DataGridHeader.d.ts +0 -32
- package/dist/DataGrid/DataGridHeader.d.ts.map +0 -1
- package/dist/DataGrid/DataGridHeaderSeparator.d.ts +0 -25
- package/dist/DataGrid/DataGridHeaderSeparator.d.ts.map +0 -1
- package/dist/DataGrid/DataGridPrimaryContextMenuItem.d.ts +0 -10
- package/dist/DataGrid/DataGridPrimaryContextMenuItem.d.ts.map +0 -1
- package/dist/DataGrid/DataGridSidePanel.d.ts +0 -26
- package/dist/DataGrid/DataGridSidePanel.d.ts.map +0 -1
- package/dist/DataGrid/FieldSelectDataGridPageSize.d.ts +0 -14
- package/dist/DataGrid/FieldSelectDataGridPageSize.d.ts.map +0 -1
- package/dist/DataGrid/columns/DataGridColumn.d.ts +0 -31
- package/dist/DataGrid/columns/DataGridColumn.d.ts.map +0 -1
- package/dist/DataGrid/columns/DataGridColumnBoolean.d.ts +0 -24
- package/dist/DataGrid/columns/DataGridColumnBoolean.d.ts.map +0 -1
- package/dist/DataGrid/columns/DataGridColumnCurrency.d.ts +0 -13
- package/dist/DataGrid/columns/DataGridColumnCurrency.d.ts.map +0 -1
- package/dist/DataGrid/columns/DataGridColumnDate.d.ts +0 -16
- package/dist/DataGrid/columns/DataGridColumnDate.d.ts.map +0 -1
- package/dist/DataGrid/columns/DataGridColumnImage.d.ts +0 -12
- package/dist/DataGrid/columns/DataGridColumnImage.d.ts.map +0 -1
- package/dist/DataGrid/columns/DataGridColumnNumber.d.ts +0 -13
- package/dist/DataGrid/columns/DataGridColumnNumber.d.ts.map +0 -1
- package/dist/DataGrid/columns/DataGridColumnNumberBase.d.ts +0 -22
- package/dist/DataGrid/columns/DataGridColumnNumberBase.d.ts.map +0 -1
- package/dist/DataGrid/columns/DataGridColumnPercent.d.ts +0 -13
- package/dist/DataGrid/columns/DataGridColumnPercent.d.ts.map +0 -1
- package/dist/DataGrid/columns/DataGridColumnText.d.ts +0 -12
- package/dist/DataGrid/columns/DataGridColumnText.d.ts.map +0 -1
- package/dist/DataGrid/columns/DataGridFooterSum.d.ts +0 -17
- package/dist/DataGrid/columns/DataGridFooterSum.d.ts.map +0 -1
- package/dist/DataGrid/columns/index.d.ts +0 -11
- package/dist/DataGrid/columns/index.d.ts.map +0 -1
- package/dist/DataGrid/index.d.ts +0 -26
- package/dist/DataGrid/index.d.ts.map +0 -1
- package/dist/DataGrid/rows/DataGridDefaultRow.d.ts +0 -12
- package/dist/DataGrid/rows/DataGridDefaultRow.d.ts.map +0 -1
- package/dist/DataGrid/rows/DataGridRow.d.ts +0 -51
- package/dist/DataGrid/rows/DataGridRow.d.ts.map +0 -1
- package/dist/DataGrid/rows/index.d.ts +0 -3
- package/dist/DataGrid/rows/index.d.ts.map +0 -1
- package/dist/DateTime/DateTime.d.ts +0 -48
- package/dist/DateTime/DateTime.d.ts.map +0 -1
- package/dist/DateTime/DateTimeRange.d.ts +0 -23
- package/dist/DateTime/DateTimeRange.d.ts.map +0 -1
- package/dist/DateTime/TimeSpan.d.ts +0 -40
- package/dist/DateTime/TimeSpan.d.ts.map +0 -1
- package/dist/DateTime/index.d.ts +0 -4
- package/dist/DateTime/index.d.ts.map +0 -1
- package/dist/DateTimeFields/DateParser.d.ts +0 -9
- package/dist/DateTimeFields/DateParser.d.ts.map +0 -1
- package/dist/DateTimeFields/DateRangeParser.d.ts +0 -7
- package/dist/DateTimeFields/DateRangeParser.d.ts.map +0 -1
- package/dist/DateTimeFields/FieldDate.d.ts +0 -22
- package/dist/DateTimeFields/FieldDate.d.ts.map +0 -1
- package/dist/DateTimeFields/FieldDateBase.d.ts +0 -29
- package/dist/DateTimeFields/FieldDateBase.d.ts.map +0 -1
- package/dist/DateTimeFields/FieldDateRange.d.ts +0 -34
- package/dist/DateTimeFields/FieldDateRange.d.ts.map +0 -1
- package/dist/DateTimeFields/FieldTime.d.ts +0 -11
- package/dist/DateTimeFields/FieldTime.d.ts.map +0 -1
- package/dist/DateTimeFields/calendar/Calendar.d.ts +0 -30
- package/dist/DateTimeFields/calendar/Calendar.d.ts.map +0 -1
- package/dist/DateTimeFields/calendar/CalendarSelectionAdapter.d.ts +0 -11
- package/dist/DateTimeFields/calendar/CalendarSelectionAdapter.d.ts.map +0 -1
- package/dist/DateTimeFields/calendar/SelectableCalendar.d.ts +0 -16
- package/dist/DateTimeFields/calendar/SelectableCalendar.d.ts.map +0 -1
- package/dist/DateTimeFields/calendar/index.d.ts +0 -4
- package/dist/DateTimeFields/calendar/index.d.ts.map +0 -1
- package/dist/DateTimeFields/index.d.ts +0 -11
- package/dist/DateTimeFields/index.d.ts.map +0 -1
- package/dist/Downloader/Downloader.d.ts +0 -4
- package/dist/Downloader/Downloader.d.ts.map +0 -1
- package/dist/Downloader/index.d.ts +0 -2
- package/dist/Downloader/index.d.ts.map +0 -1
- package/dist/EmptyState/EmptyState.d.ts +0 -20
- package/dist/EmptyState/EmptyState.d.ts.map +0 -1
- package/dist/EmptyState/index.d.ts +0 -5
- package/dist/EmptyState/index.d.ts.map +0 -1
- package/dist/FetchableSelectField/FieldFetchableSelect.d.ts +0 -38
- package/dist/FetchableSelectField/FieldFetchableSelect.d.ts.map +0 -1
- package/dist/FetchableSelectField/index.d.ts +0 -2
- package/dist/FetchableSelectField/index.d.ts.map +0 -1
- package/dist/FetcherController/Enqueuer.d.ts +0 -10
- package/dist/FetcherController/Enqueuer.d.ts.map +0 -1
- package/dist/FetcherController/FetcherController.d.ts +0 -23
- package/dist/FetcherController/FetcherController.d.ts.map +0 -1
- package/dist/FetcherController/Throttler.d.ts +0 -8
- package/dist/FetcherController/Throttler.d.ts.map +0 -1
- package/dist/FetcherController/index.d.ts +0 -4
- package/dist/FetcherController/index.d.ts.map +0 -1
- package/dist/Field/Field.d.ts +0 -36
- package/dist/Field/Field.d.ts.map +0 -1
- package/dist/Field/FieldComponent.d.ts +0 -51
- package/dist/Field/FieldComponent.d.ts.map +0 -1
- package/dist/Field/InputFieldComponent.d.ts +0 -30
- package/dist/Field/InputFieldComponent.d.ts.map +0 -1
- package/dist/Field/InputFieldComponent.test.d.ts +0 -23
- package/dist/Field/InputFieldComponent.test.d.ts.map +0 -1
- package/dist/Field/index.d.ts +0 -5
- package/dist/Field/index.d.ts.map +0 -1
- package/dist/Flex/AsteriskSyntaxStyleHandler.d.ts +0 -9
- package/dist/Flex/AsteriskSyntaxStyleHandler.d.ts.map +0 -1
- package/dist/Flex/Flex.d.ts +0 -39
- package/dist/Flex/Flex.d.ts.map +0 -1
- package/dist/Flex/index.d.ts +0 -3
- package/dist/Flex/index.d.ts.map +0 -1
- package/dist/FocusController/FocusController.d.ts +0 -17
- package/dist/FocusController/FocusController.d.ts.map +0 -1
- package/dist/FocusController/index.d.ts +0 -2
- package/dist/FocusController/index.d.ts.map +0 -1
- package/dist/Grid/Grid.d.ts +0 -50
- package/dist/Grid/Grid.d.ts.map +0 -1
- package/dist/Grid/index.d.ts +0 -2
- package/dist/Grid/index.d.ts.map +0 -1
- package/dist/Heading/Heading.d.ts +0 -29
- package/dist/Heading/Heading.d.ts.map +0 -1
- package/dist/Heading/index.d.ts +0 -2
- package/dist/Heading/index.d.ts.map +0 -1
- package/dist/Icon/Icon.d.ts +0 -33
- package/dist/Icon/Icon.d.ts.map +0 -1
- package/dist/Icon/MaterialIcon.d.ts +0 -2
- package/dist/Icon/MaterialIcon.d.ts.map +0 -1
- package/dist/Icon/index.d.ts +0 -3
- package/dist/Icon/index.d.ts.map +0 -1
- package/dist/IconButton/IconButton.d.ts +0 -24
- package/dist/IconButton/IconButton.d.ts.map +0 -1
- package/dist/IconButton/index.d.ts +0 -3
- package/dist/IconButton/index.d.ts.map +0 -1
- package/dist/InstanceofAttributeController/InstanceofAttributeController.d.ts +0 -9
- package/dist/InstanceofAttributeController/InstanceofAttributeController.d.ts.map +0 -1
- package/dist/InstanceofAttributeController/index.d.ts +0 -2
- package/dist/InstanceofAttributeController/index.d.ts.map +0 -1
- package/dist/KeyPath/KeyPath.d.ts +0 -16
- package/dist/KeyPath/KeyPath.d.ts.map +0 -1
- package/dist/KeyPath/index.d.ts +0 -2
- package/dist/KeyPath/index.d.ts.map +0 -1
- package/dist/KeyboardController/KeyboardController.d.ts +0 -11
- package/dist/KeyboardController/KeyboardController.d.ts.map +0 -1
- package/dist/KeyboardController/index.d.ts +0 -2
- package/dist/KeyboardController/index.d.ts.map +0 -1
- package/dist/List/CheckboxListItem.d.ts +0 -31
- package/dist/List/CheckboxListItem.d.ts.map +0 -1
- package/dist/List/CollapsibleListItem.d.ts +0 -23
- package/dist/List/CollapsibleListItem.d.ts.map +0 -1
- package/dist/List/List.d.ts +0 -25
- package/dist/List/List.d.ts.map +0 -1
- package/dist/List/ListItem.d.ts +0 -25
- package/dist/List/ListItem.d.ts.map +0 -1
- package/dist/List/ListItemRipple.d.ts +0 -24
- package/dist/List/ListItemRipple.d.ts.map +0 -1
- package/dist/List/ListItemsKeyboardController.d.ts +0 -41
- package/dist/List/ListItemsKeyboardController.d.ts.map +0 -1
- package/dist/List/RadioListItem.d.ts +0 -29
- package/dist/List/RadioListItem.d.ts.map +0 -1
- package/dist/List/SelectableList.d.ts +0 -33
- package/dist/List/SelectableList.d.ts.map +0 -1
- package/dist/List/SelectableListItem.d.ts +0 -19
- package/dist/List/SelectableListItem.d.ts.map +0 -1
- package/dist/List/SelectionListItem.d.ts +0 -13
- package/dist/List/SelectionListItem.d.ts.map +0 -1
- package/dist/List/SelectionListItemWithControl.d.ts +0 -8
- package/dist/List/SelectionListItemWithControl.d.ts.map +0 -1
- package/dist/List/SwitchListItem.d.ts +0 -25
- package/dist/List/SwitchListItem.d.ts.map +0 -1
- package/dist/List/index.d.ts +0 -13
- package/dist/List/index.d.ts.map +0 -1
- package/dist/MediaQueryObserver/MediaQueryController.d.ts +0 -12
- package/dist/MediaQueryObserver/MediaQueryController.d.ts.map +0 -1
- package/dist/MediaQueryObserver/index.d.ts +0 -2
- package/dist/MediaQueryObserver/index.d.ts.map +0 -1
- package/dist/Menu/Menu.d.ts +0 -53
- package/dist/Menu/Menu.d.ts.map +0 -1
- package/dist/Menu/MenuController.d.ts +0 -13
- package/dist/Menu/MenuController.d.ts.map +0 -1
- package/dist/Menu/MenuItem.d.ts +0 -18
- package/dist/Menu/MenuItem.d.ts.map +0 -1
- package/dist/Menu/MenuPlacement.d.ts +0 -2
- package/dist/Menu/MenuPlacement.d.ts.map +0 -1
- package/dist/Menu/NestedMenuItem.d.ts +0 -27
- package/dist/Menu/NestedMenuItem.d.ts.map +0 -1
- package/dist/Menu/index.d.ts +0 -7
- package/dist/Menu/index.d.ts.map +0 -1
- package/dist/MutationObserver/MutationController.d.ts +0 -2
- package/dist/MutationObserver/MutationController.d.ts.map +0 -1
- package/dist/MutationObserver/index.d.ts +0 -3
- package/dist/MutationObserver/index.d.ts.map +0 -1
- package/dist/MutationObserver/observeMutation.d.ts +0 -12
- package/dist/MutationObserver/observeMutation.d.ts.map +0 -1
- package/dist/NumberFields/FieldCurrency.d.ts +0 -22
- package/dist/NumberFields/FieldCurrency.d.ts.map +0 -1
- package/dist/NumberFields/FieldNumber.d.ts +0 -28
- package/dist/NumberFields/FieldNumber.d.ts.map +0 -1
- package/dist/NumberFields/FieldPercent.d.ts +0 -19
- package/dist/NumberFields/FieldPercent.d.ts.map +0 -1
- package/dist/NumberFields/index.d.ts +0 -6
- package/dist/NumberFields/index.d.ts.map +0 -1
- package/dist/PointerController/PointerController.d.ts +0 -16
- package/dist/PointerController/PointerController.d.ts.map +0 -1
- package/dist/PointerController/index.d.ts +0 -2
- package/dist/PointerController/index.d.ts.map +0 -1
- package/dist/Popover/Popover.d.ts +0 -38
- package/dist/Popover/Popover.d.ts.map +0 -1
- package/dist/Popover/PopoverAlignment.d.ts +0 -6
- package/dist/Popover/PopoverAlignment.d.ts.map +0 -1
- package/dist/Popover/PopoverContainer.d.ts +0 -26
- package/dist/Popover/PopoverContainer.d.ts.map +0 -1
- package/dist/Popover/PopoverController.d.ts +0 -20
- package/dist/Popover/PopoverController.d.ts.map +0 -1
- package/dist/Popover/PopoverCoordinates.d.ts +0 -2
- package/dist/Popover/PopoverCoordinates.d.ts.map +0 -1
- package/dist/Popover/PopoverHost.d.ts +0 -11
- package/dist/Popover/PopoverHost.d.ts.map +0 -1
- package/dist/Popover/PopoverPlacement.d.ts +0 -7
- package/dist/Popover/PopoverPlacement.d.ts.map +0 -1
- package/dist/Popover/index.d.ts +0 -7
- package/dist/Popover/index.d.ts.map +0 -1
- package/dist/Radio/Radio.d.ts +0 -33
- package/dist/Radio/Radio.d.ts.map +0 -1
- package/dist/Radio/index.d.ts +0 -2
- package/dist/Radio/index.d.ts.map +0 -1
- package/dist/ResizeObserver/ResizeController.d.ts +0 -2
- package/dist/ResizeObserver/ResizeController.d.ts.map +0 -1
- package/dist/ResizeObserver/index.d.ts +0 -3
- package/dist/ResizeObserver/index.d.ts.map +0 -1
- package/dist/ResizeObserver/observeResize.d.ts +0 -12
- package/dist/ResizeObserver/observeResize.d.ts.map +0 -1
- package/dist/SelectField/FieldSelect.d.ts +0 -63
- package/dist/SelectField/FieldSelect.d.ts.map +0 -1
- package/dist/SelectField/Option.d.ts +0 -27
- package/dist/SelectField/Option.d.ts.map +0 -1
- package/dist/SelectField/SelectValueController.d.ts +0 -27
- package/dist/SelectField/SelectValueController.d.ts.map +0 -1
- package/dist/SelectField/index.d.ts +0 -6
- package/dist/SelectField/index.d.ts.map +0 -1
- package/dist/SlotController/SlotController.d.ts +0 -19
- package/dist/SlotController/SlotController.d.ts.map +0 -1
- package/dist/SlotController/index.d.ts +0 -2
- package/dist/SlotController/index.d.ts.map +0 -1
- package/dist/Splitter/Splitter.d.ts +0 -36
- package/dist/Splitter/Splitter.d.ts.map +0 -1
- package/dist/Splitter/SplitterItem.d.ts +0 -26
- package/dist/Splitter/SplitterItem.d.ts.map +0 -1
- package/dist/Splitter/SplitterResizerHost.d.ts +0 -35
- package/dist/Splitter/SplitterResizerHost.d.ts.map +0 -1
- package/dist/Splitter/index.d.ts +0 -5
- package/dist/Splitter/index.d.ts.map +0 -1
- package/dist/Splitter/resizers/SplitterResizer.d.ts +0 -8
- package/dist/Splitter/resizers/SplitterResizer.d.ts.map +0 -1
- package/dist/Splitter/resizers/SplitterResizerKnob.d.ts +0 -11
- package/dist/Splitter/resizers/SplitterResizerKnob.d.ts.map +0 -1
- package/dist/Splitter/resizers/SplitterResizerLine.d.ts +0 -11
- package/dist/Splitter/resizers/SplitterResizerLine.d.ts.map +0 -1
- package/dist/Splitter/resizers/index.d.ts +0 -4
- package/dist/Splitter/resizers/index.d.ts.map +0 -1
- package/dist/Switch/Switch.d.ts +0 -35
- package/dist/Switch/Switch.d.ts.map +0 -1
- package/dist/Switch/index.d.ts +0 -2
- package/dist/Switch/index.d.ts.map +0 -1
- package/dist/TextFields/FieldEmail.d.ts +0 -17
- package/dist/TextFields/FieldEmail.d.ts.map +0 -1
- package/dist/TextFields/FieldPassword.d.ts +0 -17
- package/dist/TextFields/FieldPassword.d.ts.map +0 -1
- package/dist/TextFields/FieldSearch.d.ts +0 -16
- package/dist/TextFields/FieldSearch.d.ts.map +0 -1
- package/dist/TextFields/FieldText.d.ts +0 -30
- package/dist/TextFields/FieldText.d.ts.map +0 -1
- package/dist/TextFields/FieldTextArea.d.ts +0 -28
- package/dist/TextFields/FieldTextArea.d.ts.map +0 -1
- package/dist/TextFields/index.d.ts +0 -8
- package/dist/TextFields/index.d.ts.map +0 -1
- package/dist/Theme/Accent.d.ts +0 -14
- package/dist/Theme/Accent.d.ts.map +0 -1
- package/dist/Theme/Background.d.ts +0 -12
- package/dist/Theme/Background.d.ts.map +0 -1
- package/dist/Theme/ColorSet.d.ts +0 -7
- package/dist/Theme/ColorSet.d.ts.map +0 -1
- package/dist/Theme/Theme.d.ts +0 -7
- package/dist/Theme/Theme.d.ts.map +0 -1
- package/dist/Theme/ThemeController.d.ts +0 -10
- package/dist/Theme/ThemeController.d.ts.map +0 -1
- package/dist/Theme/index.d.ts +0 -7
- package/dist/Theme/index.d.ts.map +0 -1
- package/dist/Theme/styles.css.d.ts +0 -2
- package/dist/Theme/styles.css.d.ts.map +0 -1
- package/dist/Tooltip/Tooltip.d.ts +0 -25
- package/dist/Tooltip/Tooltip.d.ts.map +0 -1
- package/dist/Tooltip/TooltipDirective.d.ts +0 -13
- package/dist/Tooltip/TooltipDirective.d.ts.map +0 -1
- package/dist/Tooltip/TooltipPlacement.d.ts +0 -2
- package/dist/Tooltip/TooltipPlacement.d.ts.map +0 -1
- package/dist/Tooltip/index.d.ts +0 -5
- package/dist/Tooltip/index.d.ts.map +0 -1
- package/dist/bundle.js +0 -310
- package/dist/disabledProperty/disabledProperty.d.ts +0 -6
- package/dist/disabledProperty/disabledProperty.d.ts.map +0 -1
- package/dist/disabledProperty/index.d.ts +0 -2
- package/dist/disabledProperty/index.d.ts.map +0 -1
- package/dist/localization/CardinalPluralizationRulesByLanguage.d.ts +0 -13
- package/dist/localization/CardinalPluralizationRulesByLanguage.d.ts.map +0 -1
- package/dist/localization/DirectionsByLanguage.d.ts +0 -11
- package/dist/localization/DirectionsByLanguage.d.ts.map +0 -1
- package/dist/localization/LanguageCode.d.ts +0 -187
- package/dist/localization/LanguageCode.d.ts.map +0 -1
- package/dist/localization/LanguageController.d.ts +0 -10
- package/dist/localization/LanguageController.d.ts.map +0 -1
- package/dist/localization/Localizer.d.ts +0 -41
- package/dist/localization/Localizer.d.ts.map +0 -1
- package/dist/localization/formatters/Currency.d.ts +0 -373
- package/dist/localization/formatters/Currency.d.ts.map +0 -1
- package/dist/localization/formatters/Date.format.d.ts +0 -31
- package/dist/localization/formatters/Date.format.d.ts.map +0 -1
- package/dist/localization/formatters/Date.formatAsDate.d.ts +0 -9
- package/dist/localization/formatters/Date.formatAsDate.d.ts.map +0 -1
- package/dist/localization/formatters/Date.formatAsTime.d.ts +0 -9
- package/dist/localization/formatters/Date.formatAsTime.d.ts.map +0 -1
- package/dist/localization/formatters/Number.format.d.ts +0 -9
- package/dist/localization/formatters/Number.format.d.ts.map +0 -1
- package/dist/localization/formatters/Number.formatAsCurrency.d.ts +0 -12
- package/dist/localization/formatters/Number.formatAsCurrency.d.ts.map +0 -1
- package/dist/localization/formatters/Number.formatAsPercent.d.ts +0 -9
- package/dist/localization/formatters/Number.formatAsPercent.d.ts.map +0 -1
- package/dist/localization/formatters/Number.formatAsUnit.d.ts +0 -11
- package/dist/localization/formatters/Number.formatAsUnit.d.ts.map +0 -1
- package/dist/localization/formatters/OptionsWithLanguage.d.ts +0 -5
- package/dist/localization/formatters/OptionsWithLanguage.d.ts.map +0 -1
- package/dist/localization/formatters/String.toNumber.d.ts +0 -7
- package/dist/localization/formatters/String.toNumber.d.ts.map +0 -1
- package/dist/localization/formatters/index.d.ts +0 -10
- package/dist/localization/formatters/index.d.ts.map +0 -1
- package/dist/localization/index.d.ts +0 -7
- package/dist/localization/index.d.ts.map +0 -1
- package/dist/queryConnectedInstances/index.d.ts +0 -2
- package/dist/queryConnectedInstances/index.d.ts.map +0 -1
- package/dist/queryConnectedInstances/queryConnectedInstances.d.ts +0 -3
- package/dist/queryConnectedInstances/queryConnectedInstances.d.ts.map +0 -1
package/dist/bundle.js
DELETED
|
@@ -1,310 +0,0 @@
|
|
|
1
|
-
(()=>{var e={777:e=>{"use strict";e.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},969:(e,t,o)=>{var i=o(777),r=o(119),n=Object.hasOwnProperty,a=Object.create(null);for(var s in i)n.call(i,s)&&(a[i[s]]=s);var c=e.exports={to:{},get:{}};function l(e,t,o){return Math.min(Math.max(t,e),o)}function d(e){var t=Math.round(e).toString(16).toUpperCase();return t.length<2?"0"+t:t}c.get=function(e){var t,o;switch(e.substring(0,3).toLowerCase()){case"hsl":t=c.get.hsl(e),o="hsl";break;case"hwb":t=c.get.hwb(e),o="hwb";break;default:t=c.get.rgb(e),o="rgb"}return t?{model:o,value:t}:null},c.get.rgb=function(e){if(!e)return null;var t,o,r,a=[0,0,0,1];if(t=e.match(/^#([a-f0-9]{6})([a-f0-9]{2})?$/i)){for(r=t[2],t=t[1],o=0;o<3;o++){var s=2*o;a[o]=parseInt(t.slice(s,s+2),16)}r&&(a[3]=parseInt(r,16)/255)}else if(t=e.match(/^#([a-f0-9]{3,4})$/i)){for(r=(t=t[1])[3],o=0;o<3;o++)a[o]=parseInt(t[o]+t[o],16);r&&(a[3]=parseInt(r+r,16)/255)}else if(t=e.match(/^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/)){for(o=0;o<3;o++)a[o]=parseInt(t[o+1],0);t[4]&&(t[5]?a[3]=.01*parseFloat(t[4]):a[3]=parseFloat(t[4]))}else{if(!(t=e.match(/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/)))return(t=e.match(/^(\w+)$/))?"transparent"===t[1]?[0,0,0,0]:n.call(i,t[1])?((a=i[t[1]])[3]=1,a):null:null;for(o=0;o<3;o++)a[o]=Math.round(2.55*parseFloat(t[o+1]));t[4]&&(t[5]?a[3]=.01*parseFloat(t[4]):a[3]=parseFloat(t[4]))}for(o=0;o<3;o++)a[o]=l(a[o],0,255);return a[3]=l(a[3],0,1),a},c.get.hsl=function(e){if(!e)return null;var t=e.match(/^hsla?\(\s*([+-]?(?:\d{0,3}\.)?\d+)(?:deg)?\s*,?\s*([+-]?[\d\.]+)%\s*,?\s*([+-]?[\d\.]+)%\s*(?:[,|\/]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/);if(t){var o=parseFloat(t[4]);return[(parseFloat(t[1])%360+360)%360,l(parseFloat(t[2]),0,100),l(parseFloat(t[3]),0,100),l(isNaN(o)?1:o,0,1)]}return null},c.get.hwb=function(e){if(!e)return null;var t=e.match(/^hwb\(\s*([+-]?\d{0,3}(?:\.\d+)?)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/);if(t){var o=parseFloat(t[4]);return[(parseFloat(t[1])%360+360)%360,l(parseFloat(t[2]),0,100),l(parseFloat(t[3]),0,100),l(isNaN(o)?1:o,0,1)]}return null},c.to.hex=function(){var e=r(arguments);return"#"+d(e[0])+d(e[1])+d(e[2])+(e[3]<1?d(Math.round(255*e[3])):"")},c.to.rgb=function(){var e=r(arguments);return e.length<4||1===e[3]?"rgb("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+")":"rgba("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+", "+e[3]+")"},c.to.rgb.percent=function(){var e=r(arguments),t=Math.round(e[0]/255*100),o=Math.round(e[1]/255*100),i=Math.round(e[2]/255*100);return e.length<4||1===e[3]?"rgb("+t+"%, "+o+"%, "+i+"%)":"rgba("+t+"%, "+o+"%, "+i+"%, "+e[3]+")"},c.to.hsl=function(){var e=r(arguments);return e.length<4||1===e[3]?"hsl("+e[0]+", "+e[1]+"%, "+e[2]+"%)":"hsla("+e[0]+", "+e[1]+"%, "+e[2]+"%, "+e[3]+")"},c.to.hwb=function(){var e=r(arguments),t="";return e.length>=4&&1!==e[3]&&(t=", "+e[3]),"hwb("+e[0]+", "+e[1]+"%, "+e[2]+"%"+t+")"},c.to.keyword=function(e){return a[e.slice(0,3)]}},119:(e,t,o)=>{"use strict";var i=o(774),r=Array.prototype.concat,n=Array.prototype.slice,a=e.exports=function(e){for(var t=[],o=0,a=e.length;o<a;o++){var s=e[o];i(s)?t=r.call(t,n.call(s)):t.push(s)}return t};a.wrap=function(e){return function(){return e(a(arguments))}}},774:e=>{e.exports=function(e){return!(!e||"string"==typeof e)&&(e instanceof Array||Array.isArray(e)||e.length>=0&&(e.splice instanceof Function||Object.getOwnPropertyDescriptor(e,e.length-1)&&"String"!==e.constructor.name))}},388:(e,t)=>{"use strict";(function(e){e.Unidentified="Unidentified",e.Alt="Alt",e.AltGraph="AltGraph",e.CapsLock="CapsLock",e.Control="Control",e.Fn="Fn",e.FnLock="FnLock",e.Hyper="Hyper",e.Meta="Meta",e.NumLock="NumLock",e.ScrollLock="ScrollLock",e.Shift="Shift",e.Super="Super",e.Symbol="Symbol",e.SymbolLock="SymbolLock",e.Enter="Enter",e.Tab="Tab",e.ArrowDown="ArrowDown",e.ArrowLeft="ArrowLeft",e.ArrowRight="ArrowRight",e.ArrowUp="ArrowUp",e.End="End",e.Home="Home",e.PageDown="PageDown",e.PageUp="PageUp",e.Backspace="Backspace",e.Clear="Clear",e.Copy="Copy",e.CrSel="CrSel",e.Cut="Cut",e.Delete="Delete",e.EraseEof="EraseEof",e.ExSel="ExSel",e.Insert="Insert",e.Paste="Paste",e.Redo="Redo",e.Undo="Undo",e.Accept="Accept",e.Again="Again",e.Attn="Attn",e.Cancel="Cancel",e.ContextMenu="ContextMenu",e.Escape="Escape",e.Execute="Execute",e.Find="Find",e.Finish="Finish",e.Help="Help",e.Pause="Pause",e.Play="Play",e.Props="Props",e.Select="Select",e.ZoomIn="ZoomIn",e.ZoomOut="ZoomOut",e.BrightnessDown="BrightnessDown",e.BrightnessUp="BrightnessUp",e.Eject="Eject",e.LogOff="LogOff",e.Power="Power",e.PowerOff="PowerOff",e.PrintScreen="PrintScreen",e.Hibernate="Hibernate",e.Standby="Standby",e.WakeUp="WakeUp",e.AllCandidates="AllCandidates",e.Alphanumeric="Alphanumeric",e.CodeInput="CodeInput",e.Compose="Compose",e.Convert="Convert",e.Dead="Dead",e.FinalMode="FinalMode",e.GroupFirst="GroupFirst",e.GroupLast="GroupLast",e.GroupNext="GroupNext",e.GroupPrevious="GroupPrevious",e.ModeChange="ModeChange",e.NextCandidate="NextCandidate",e.NonConvert="NonConvert",e.PreviousCandidate="PreviousCandidate",e.Process="Process",e.SingleCandidate="SingleCandidate",e.HangulMode="HangulMode",e.HanjaMode="HanjaMode",e.JunjaMode="JunjaMode",e.Eisu="Eisu",e.Hankaku="Hankaku",e.Hiragana="Hiragana",e.HiraganaKatakana="HiraganaKatakana",e.KanaMode="KanaMode",e.KanjiMode="KanjiMode",e.Katakana="Katakana",e.Romaji="Romaji",e.Zenkaku="Zenkaku",e.ZenkakuHanaku="ZenkakuHanaku",e.F1="F1",e.F2="F2",e.F3="F3",e.F4="F4",e.F5="F5",e.F6="F6",e.F7="F7",e.F8="F8",e.F9="F9",e.F10="F10",e.F11="F11",e.F12="F12",e.F13="F13",e.F14="F14",e.F15="F15",e.F16="F16",e.F17="F17",e.F18="F18",e.F19="F19",e.F20="F20",e.Soft1="Soft1",e.Soft2="Soft2",e.Soft3="Soft3",e.Soft4="Soft4",e.AppSwitch="AppSwitch",e.Call="Call",e.Camera="Camera",e.CameraFocus="CameraFocus",e.EndCall="EndCall",e.GoBack="GoBack",e.GoHome="GoHome",e.HeadsetHook="HeadsetHook",e.LastNumberRedial="LastNumberRedial",e.Notification="Notification",e.MannerMode="MannerMode",e.VoiceDial="VoiceDial",e.ChannelDown="ChannelDown",e.ChannelUp="ChannelUp",e.MediaFastForward="MediaFastForward",e.MediaPause="MediaPause",e.MediaPlay="MediaPlay",e.MediaPlayPause="MediaPlayPause",e.MediaRecord="MediaRecord",e.MediaRewind="MediaRewind",e.MediaStop="MediaStop",e.MediaTrackNext="MediaTrackNext",e.MediaTrackPrevious="MediaTrackPrevious",e.AudioBalanceLeft="AudioBalanceLeft",e.AudioBalanceRight="AudioBalanceRight",e.AudioBassDown="AudioBassDown",e.AudioBassBoostDown="AudioBassBoostDown",e.AudioBassBoostToggle="AudioBassBoostToggle",e.AudioBassBoostUp="AudioBassBoostUp",e.AudioBassUp="AudioBassUp",e.AudioFaderFront="AudioFaderFront",e.AudioFaderRear="AudioFaderRear",e.AudioSurroundModeNext="AudioSurroundModeNext",e.AudioTrebleDown="AudioTrebleDown",e.AudioTrebleUp="AudioTrebleUp",e.AudioVolumeDown="AudioVolumeDown",e.AudioVolumeMute="AudioVolumeMute",e.AudioVolumeUp="AudioVolumeUp",e.MicrophoneToggle="MicrophoneToggle",e.MicrophoneVolumeDown="MicrophoneVolumeDown",e.MicrophoneVolumeMute="MicrophoneVolumeMute",e.MicrophoneVolumeUp="MicrophoneVolumeUp",e.TV="TV",e.TV3DMode="TV3DMode",e.TVAntennaCable="TVAntennaCable",e.TVAudioDescription="TVAudioDescription",e.TVAudioDescriptionMixDown="TVAudioDescriptionMixDown",e.TVAudioDescriptionMixUp="TVAudioDescriptionMixUp",e.TVContentsMenu="TVContentsMenu",e.TVDataService="TVDataService",e.TVInput="TVInput",e.TVInputComponent1="TVInputComponent1",e.TVInputComponent2="TVInputComponent2",e.TVInputComposite1="TVInputComposite1",e.TVInputComposite2="TVInputComposite2",e.TVInputHDMI1="TVInputHDMI1",e.TVInputHDMI2="TVInputHDMI2",e.TVInputHDMI3="TVInputHDMI3",e.TVInputHDMI4="TVInputHDMI4",e.TVInputVGA1="TVInputVGA1",e.TVMediaContext="TVMediaContext",e.TVNetwork="TVNetwork",e.TVNumberEntry="TVNumberEntry",e.TVPower="TVPower",e.TVRadioService="TVRadioService",e.TVSatellite="TVSatellite",e.TVSatelliteBS="TVSatelliteBS",e.TVSatelliteCS="TVSatelliteCS",e.TVSatelliteToggle="TVSatelliteToggle",e.TVTerrestrialAnalog="TVTerrestrialAnalog",e.TVTerrestrialDigital="TVTerrestrialDigital",e.TVTimer="TVTimer",e.AVRInput="AVRInput",e.AVRPower="AVRPower",e.ColorF0Red="ColorF0Red",e.ColorF1Green="ColorF1Green",e.ColorF2Yellow="ColorF2Yellow",e.ColorF3Blue="ColorF3Blue",e.ColorF4Grey="ColorF4Grey",e.ColorF5Brown="ColorF5Brown",e.ClosedCaptionToggle="ClosedCaptionToggle",e.Dimmer="Dimmer",e.DisplaySwap="DisplaySwap",e.DVR="DVR",e.Exit="Exit",e.FavoriteClear0="FavoriteClear0",e.FavoriteClear1="FavoriteClear1",e.FavoriteClear2="FavoriteClear2",e.FavoriteClear3="FavoriteClear3",e.FavoriteRecall0="FavoriteRecall0",e.FavoriteRecall1="FavoriteRecall1",e.FavoriteRecall2="FavoriteRecall2",e.FavoriteRecall3="FavoriteRecall3",e.FavoriteStore0="FavoriteStore0",e.FavoriteStore1="FavoriteStore1",e.FavoriteStore2="FavoriteStore2",e.FavoriteStore3="FavoriteStore3",e.Guide="Guide",e.GuideNextDay="GuideNextDay",e.GuidePreviousDay="GuidePreviousDay",e.Info="Info",e.InstantReplay="InstantReplay",e.Link="Link",e.ListProgram="ListProgram",e.LiveContent="LiveContent",e.Lock="Lock",e.MediaApps="MediaApps",e.MediaAudioTrack="MediaAudioTrack",e.MediaLast="MediaLast",e.MediaSkipBackward="MediaSkipBackward",e.MediaSkipForward="MediaSkipForward",e.MediaStepBackward="MediaStepBackward",e.MediaStepForward="MediaStepForward",e.MediaTopMenu="MediaTopMenu",e.NavigateIn="NavigateIn",e.NavigateNext="NavigateNext",e.NavigateOut="NavigateOut",e.NavigatePrevious="NavigatePrevious",e.NextFavoriteChannel="NextFavoriteChannel",e.NextUserProfile="NextUserProfile",e.OnDemand="OnDemand",e.Pairing="Pairing",e.PinPDown="PinPDown",e.PinPMove="PinPMove",e.PinPToggle="PinPToggle",e.PinPUp="PinPUp",e.PlaySpeedDown="PlaySpeedDown",e.PlaySpeedReset="PlaySpeedReset",e.PlaySpeedUp="PlaySpeedUp",e.RandomToggle="RandomToggle",e.RcLowBattery="RcLowBattery",e.RecordSpeedNext="RecordSpeedNext",e.RfBypass="RfBypass",e.ScanChannelsToggle="ScanChannelsToggle",e.ScreenModeNext="ScreenModeNext",e.Settings="Settings",e.SplitScreenToggle="SplitScreenToggle",e.STBInput="STBInput",e.STBPower="STBPower",e.Subtitle="Subtitle",e.Teletext="Teletext",e.VideoModeNext="VideoModeNext",e.Wink="Wink",e.ZoomToggle="ZoomToggle",e.SpeechCorrectionList="SpeechCorrectionList",e.SpeechInputToggle="SpeechInputToggle",e.Close="Close",e.New="New",e.Open="Open",e.Print="Print",e.Save="Save",e.SpellCheck="SpellCheck",e.MailForward="MailForward",e.MailReply="MailReply",e.MailSend="MailSend",e.LaunchCalculator="LaunchCalculator",e.LaunchCalendar="LaunchCalendar",e.LaunchContacts="LaunchContacts",e.LaunchMail="LaunchMail",e.LaunchMediaPlayer="LaunchMediaPlayer",e.LaunchMusicPlayer="LaunchMusicPlayer",e.LaunchMyComputer="LaunchMyComputer",e.LaunchPhone="LaunchPhone",e.LaunchScreenSaver="LaunchScreenSaver",e.LaunchSpreadsheet="LaunchSpreadsheet",e.LaunchWebBrowser="LaunchWebBrowser",e.LaunchWebCam="LaunchWebCam",e.LaunchWordProcessor="LaunchWordProcessor",e.LaunchApplication1="LaunchApplication1",e.LaunchApplication2="LaunchApplication2",e.LaunchApplication3="LaunchApplication3",e.LaunchApplication4="LaunchApplication4",e.LaunchApplication5="LaunchApplication5",e.LaunchApplication6="LaunchApplication6",e.LaunchApplication7="LaunchApplication7",e.LaunchApplication8="LaunchApplication8",e.LaunchApplication9="LaunchApplication9",e.LaunchApplication10="LaunchApplication10",e.LaunchApplication11="LaunchApplication11",e.LaunchApplication12="LaunchApplication12",e.LaunchApplication13="LaunchApplication13",e.LaunchApplication14="LaunchApplication14",e.LaunchApplication15="LaunchApplication15",e.LaunchApplication16="LaunchApplication16",e.BrowserBack="BrowserBack",e.BrowserFavorites="BrowserFavorites",e.BrowserForward="BrowserForward",e.BrowserHome="BrowserHome",e.BrowserRefresh="BrowserRefresh",e.BrowserSearch="BrowserSearch",e.BrowserStop="BrowserStop",e.Decimal="Decimal",e.Key11="Key11",e.Key12="Key12",e.Multiply="Multiply",e.Add="Add",e.Divide="Divide",e.Subtract="Subtract",e.Separator="Separator"})(t.s||(t.s={}))}},o={};function i(t){var r=o[t];if(void 0!==r)return r.exports;var n=o[t]={exports:{}};return e[t](n,n.exports,i),n.exports}i.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return i.d(t,{a:t}),t},i.d=(e,t)=>{for(var o in t)i.o(t,o)&&!i.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var r={};(()=>{"use strict";i.d(r,{c6:()=>Fu,hN:()=>ru,iv:()=>Pu});var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},e(t,o)};function o(t,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}var n=function(){return n=Object.assign||function(e){for(var t,o=1,i=arguments.length;o<i;o++)for(var r in t=arguments[o])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},n.apply(this,arguments)};function a(e,t,o,i){var r,n=arguments.length,a=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,o,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(n<3?r(a):n>3?r(t,o,a):r(t,o))||a);return n>3&&a&&Object.defineProperty(t,o,a),a}function s(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}Object.create;function c(e){var t="function"==typeof Symbol&&Symbol.iterator,o=t&&e[t],i=0;if(o)return o.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function l(e,t){var o="function"==typeof Symbol&&e[Symbol.iterator];if(!o)return e;var i,r,n=o.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(i=n.next()).done;)a.push(i.value)}catch(e){r={error:e}}finally{try{i&&!i.done&&(o=n.return)&&o.call(n)}finally{if(r)throw r.error}}return a}Object.create;const d=window,h=d.ShadowRoot&&(void 0===d.ShadyCSS||d.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,u=Symbol(),p=new WeakMap;class m{constructor(e,t,o){if(this._$cssResult$=!0,o!==u)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o;const t=this.t;if(h&&void 0===e){const o=void 0!==t&&1===t.length;o&&(e=p.get(t)),void 0===e&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),o&&p.set(t,e))}return e}toString(){return this.cssText}}const g=e=>new m("string"==typeof e?e:e+"",void 0,u),f=(e,...t)=>{const o=1===e.length?e[0]:t.reduce(((t,o,i)=>t+(e=>{if(!0===e._$cssResult$)return e.cssText;if("number"==typeof e)return e;throw Error("Value passed to 'css' function must be a 'css' function result: "+e+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(o)+e[i+1]),e[0]);return new m(o,e,u)},v=h?e=>e:e=>e instanceof CSSStyleSheet?(e=>{let t="";for(const o of e.cssRules)t+=o.cssText;return g(t)})(e):e;var b;const y=window,w=y.trustedTypes,x=w?w.emptyScript:"",k=y.reactiveElementPolyfillSupport,C={toAttribute(e,t){switch(t){case Boolean:e=e?x:null;break;case Object:case Array:e=null==e?e:JSON.stringify(e)}return e},fromAttribute(e,t){let o=e;switch(t){case Boolean:o=null!==e;break;case Number:o=null===e?null:Number(e);break;case Object:case Array:try{o=JSON.parse(e)}catch(e){o=null}}return o}},_=(e,t)=>t!==e&&(t==t||e==e),S={attribute:!0,type:String,converter:C,reflect:!1,hasChanged:_};class $ extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this.u()}static addInitializer(e){var t;this.finalize(),(null!==(t=this.h)&&void 0!==t?t:this.h=[]).push(e)}static get observedAttributes(){this.finalize();const e=[];return this.elementProperties.forEach(((t,o)=>{const i=this._$Ep(o,t);void 0!==i&&(this._$Ev.set(i,o),e.push(i))})),e}static createProperty(e,t=S){if(t.state&&(t.attribute=!1),this.finalize(),this.elementProperties.set(e,t),!t.noAccessor&&!this.prototype.hasOwnProperty(e)){const o="symbol"==typeof e?Symbol():"__"+e,i=this.getPropertyDescriptor(e,o,t);void 0!==i&&Object.defineProperty(this.prototype,e,i)}}static getPropertyDescriptor(e,t,o){return{get(){return this[t]},set(i){const r=this[e];this[t]=i,this.requestUpdate(e,r,o)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)||S}static finalize(){if(this.hasOwnProperty("finalized"))return!1;this.finalized=!0;const e=Object.getPrototypeOf(this);if(e.finalize(),void 0!==e.h&&(this.h=[...e.h]),this.elementProperties=new Map(e.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const e=this.properties,t=[...Object.getOwnPropertyNames(e),...Object.getOwnPropertySymbols(e)];for(const o of t)this.createProperty(o,e[o])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(e){const t=[];if(Array.isArray(e)){const o=new Set(e.flat(1/0).reverse());for(const e of o)t.unshift(v(e))}else void 0!==e&&t.push(v(e));return t}static _$Ep(e,t){const o=t.attribute;return!1===o?void 0:"string"==typeof o?o:"string"==typeof e?e.toLowerCase():void 0}u(){var e;this._$E_=new Promise((e=>this.enableUpdating=e)),this._$AL=new Map,this._$Eg(),this.requestUpdate(),null===(e=this.constructor.h)||void 0===e||e.forEach((e=>e(this)))}addController(e){var t,o;(null!==(t=this._$ES)&&void 0!==t?t:this._$ES=[]).push(e),void 0!==this.renderRoot&&this.isConnected&&(null===(o=e.hostConnected)||void 0===o||o.call(e))}removeController(e){var t;null===(t=this._$ES)||void 0===t||t.splice(this._$ES.indexOf(e)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach(((e,t)=>{this.hasOwnProperty(t)&&(this._$Ei.set(t,this[t]),delete this[t])}))}createRenderRoot(){var e;const t=null!==(e=this.shadowRoot)&&void 0!==e?e:this.attachShadow(this.constructor.shadowRootOptions);return((e,t)=>{h?e.adoptedStyleSheets=t.map((e=>e instanceof CSSStyleSheet?e:e.styleSheet)):t.forEach((t=>{const o=document.createElement("style"),i=d.litNonce;void 0!==i&&o.setAttribute("nonce",i),o.textContent=t.cssText,e.appendChild(o)}))})(t,this.constructor.elementStyles),t}connectedCallback(){var e;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(e=this._$ES)||void 0===e||e.forEach((e=>{var t;return null===(t=e.hostConnected)||void 0===t?void 0:t.call(e)}))}enableUpdating(e){}disconnectedCallback(){var e;null===(e=this._$ES)||void 0===e||e.forEach((e=>{var t;return null===(t=e.hostDisconnected)||void 0===t?void 0:t.call(e)}))}attributeChangedCallback(e,t,o){this._$AK(e,o)}_$EO(e,t,o=S){var i;const r=this.constructor._$Ep(e,o);if(void 0!==r&&!0===o.reflect){const n=(void 0!==(null===(i=o.converter)||void 0===i?void 0:i.toAttribute)?o.converter:C).toAttribute(t,o.type);this._$El=e,null==n?this.removeAttribute(r):this.setAttribute(r,n),this._$El=null}}_$AK(e,t){var o;const i=this.constructor,r=i._$Ev.get(e);if(void 0!==r&&this._$El!==r){const e=i.getPropertyOptions(r),n="function"==typeof e.converter?{fromAttribute:e.converter}:void 0!==(null===(o=e.converter)||void 0===o?void 0:o.fromAttribute)?e.converter:C;this._$El=r,this[r]=n.fromAttribute(t,e.type),this._$El=null}}requestUpdate(e,t,o){let i=!0;void 0!==e&&(((o=o||this.constructor.getPropertyOptions(e)).hasChanged||_)(this[e],t)?(this._$AL.has(e)||this._$AL.set(e,t),!0===o.reflect&&this._$El!==e&&(void 0===this._$EC&&(this._$EC=new Map),this._$EC.set(e,o))):i=!1),!this.isUpdatePending&&i&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(e){Promise.reject(e)}const e=this.scheduleUpdate();return null!=e&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var e;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach(((e,t)=>this[t]=e)),this._$Ei=void 0);let t=!1;const o=this._$AL;try{t=this.shouldUpdate(o),t?(this.willUpdate(o),null===(e=this._$ES)||void 0===e||e.forEach((e=>{var t;return null===(t=e.hostUpdate)||void 0===t?void 0:t.call(e)})),this.update(o)):this._$Ek()}catch(e){throw t=!1,this._$Ek(),e}t&&this._$AE(o)}willUpdate(e){}_$AE(e){var t;null===(t=this._$ES)||void 0===t||t.forEach((e=>{var t;return null===(t=e.hostUpdated)||void 0===t?void 0:t.call(e)})),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(e){return!0}update(e){void 0!==this._$EC&&(this._$EC.forEach(((e,t)=>this._$EO(t,this[t],e))),this._$EC=void 0),this._$Ek()}updated(e){}firstUpdated(e){}}var T;$.finalized=!0,$.elementProperties=new Map,$.elementStyles=[],$.shadowRootOptions={mode:"open"},null==k||k({ReactiveElement:$}),(null!==(b=y.reactiveElementVersions)&&void 0!==b?b:y.reactiveElementVersions=[]).push("1.6.1");const E=window,A=E.trustedTypes,D=A?A.createPolicy("lit-html",{createHTML:e=>e}):void 0,M="$lit$",I=`lit$${(Math.random()+"").slice(9)}$`,P="?"+I,R=`<${P}>`,F=document,O=()=>F.createComment(""),N=e=>null===e||"object"!=typeof e&&"function"!=typeof e,z=Array.isArray,L=e=>z(e)||"function"==typeof(null==e?void 0:e[Symbol.iterator]),H="[ \t\n\f\r]",B=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,U=/-->/g,G=/>/g,j=RegExp(`>|${H}(?:([^\\s"'>=/]+)(${H}*=${H}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),V=/'/g,Y=/"/g,q=/^(?:script|style|textarea|title)$/i,W=e=>(t,...o)=>({_$litType$:e,strings:t,values:o}),Z=W(1),K=W(2),X=Symbol.for("lit-noChange"),J=Symbol.for("lit-nothing"),Q=new WeakMap,ee=F.createTreeWalker(F,129,null,!1),te=(e,t)=>{const o=e.length-1,i=[];let r,n=2===t?"<svg>":"",a=B;for(let t=0;t<o;t++){const o=e[t];let s,c,l=-1,d=0;for(;d<o.length&&(a.lastIndex=d,c=a.exec(o),null!==c);)d=a.lastIndex,a===B?"!--"===c[1]?a=U:void 0!==c[1]?a=G:void 0!==c[2]?(q.test(c[2])&&(r=RegExp("</"+c[2],"g")),a=j):void 0!==c[3]&&(a=j):a===j?">"===c[0]?(a=null!=r?r:B,l=-1):void 0===c[1]?l=-2:(l=a.lastIndex-c[2].length,s=c[1],a=void 0===c[3]?j:'"'===c[3]?Y:V):a===Y||a===V?a=j:a===U||a===G?a=B:(a=j,r=void 0);const h=a===j&&e[t+1].startsWith("/>")?" ":"";n+=a===B?o+R:l>=0?(i.push(s),o.slice(0,l)+M+o.slice(l)+I+h):o+I+(-2===l?(i.push(void 0),t):h)}const s=n+(e[o]||"<?>")+(2===t?"</svg>":"");if(!Array.isArray(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==D?D.createHTML(s):s,i]};class oe{constructor({strings:e,_$litType$:t},o){let i;this.parts=[];let r=0,n=0;const a=e.length-1,s=this.parts,[c,l]=te(e,t);if(this.el=oe.createElement(c,o),ee.currentNode=this.el.content,2===t){const e=this.el.content,t=e.firstChild;t.remove(),e.append(...t.childNodes)}for(;null!==(i=ee.nextNode())&&s.length<a;){if(1===i.nodeType){if(i.hasAttributes()){const e=[];for(const t of i.getAttributeNames())if(t.endsWith(M)||t.startsWith(I)){const o=l[n++];if(e.push(t),void 0!==o){const e=i.getAttribute(o.toLowerCase()+M).split(I),t=/([.?@])?(.*)/.exec(o);s.push({type:1,index:r,name:t[2],strings:e,ctor:"."===t[1]?se:"?"===t[1]?le:"@"===t[1]?de:ae})}else s.push({type:6,index:r})}for(const t of e)i.removeAttribute(t)}if(q.test(i.tagName)){const e=i.textContent.split(I),t=e.length-1;if(t>0){i.textContent=A?A.emptyScript:"";for(let o=0;o<t;o++)i.append(e[o],O()),ee.nextNode(),s.push({type:2,index:++r});i.append(e[t],O())}}}else if(8===i.nodeType)if(i.data===P)s.push({type:2,index:r});else{let e=-1;for(;-1!==(e=i.data.indexOf(I,e+1));)s.push({type:7,index:r}),e+=I.length-1}r++}}static createElement(e,t){const o=F.createElement("template");return o.innerHTML=e,o}}function ie(e,t,o=e,i){var r,n,a,s;if(t===X)return t;let c=void 0!==i?null===(r=o._$Co)||void 0===r?void 0:r[i]:o._$Cl;const l=N(t)?void 0:t._$litDirective$;return(null==c?void 0:c.constructor)!==l&&(null===(n=null==c?void 0:c._$AO)||void 0===n||n.call(c,!1),void 0===l?c=void 0:(c=new l(e),c._$AT(e,o,i)),void 0!==i?(null!==(a=(s=o)._$Co)&&void 0!==a?a:s._$Co=[])[i]=c:o._$Cl=c),void 0!==c&&(t=ie(e,c._$AS(e,t.values),c,i)),t}class re{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){var t;const{el:{content:o},parts:i}=this._$AD,r=(null!==(t=null==e?void 0:e.creationScope)&&void 0!==t?t:F).importNode(o,!0);ee.currentNode=r;let n=ee.nextNode(),a=0,s=0,c=i[0];for(;void 0!==c;){if(a===c.index){let t;2===c.type?t=new ne(n,n.nextSibling,this,e):1===c.type?t=new c.ctor(n,c.name,c.strings,this,e):6===c.type&&(t=new he(n,this,e)),this._$AV.push(t),c=i[++s]}a!==(null==c?void 0:c.index)&&(n=ee.nextNode(),a++)}return r}v(e){let t=0;for(const o of this._$AV)void 0!==o&&(void 0!==o.strings?(o._$AI(e,o,t),t+=o.strings.length-2):o._$AI(e[t])),t++}}class ne{constructor(e,t,o,i){var r;this.type=2,this._$AH=J,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=o,this.options=i,this._$Cp=null===(r=null==i?void 0:i.isConnected)||void 0===r||r}get _$AU(){var e,t;return null!==(t=null===(e=this._$AM)||void 0===e?void 0:e._$AU)&&void 0!==t?t:this._$Cp}get parentNode(){let e=this._$AA.parentNode;const t=this._$AM;return void 0!==t&&11===(null==e?void 0:e.nodeType)&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=ie(this,e,t),N(e)?e===J||null==e||""===e?(this._$AH!==J&&this._$AR(),this._$AH=J):e!==this._$AH&&e!==X&&this._(e):void 0!==e._$litType$?this.g(e):void 0!==e.nodeType?this.$(e):L(e)?this.T(e):this._(e)}k(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}$(e){this._$AH!==e&&(this._$AR(),this._$AH=this.k(e))}_(e){this._$AH!==J&&N(this._$AH)?this._$AA.nextSibling.data=e:this.$(F.createTextNode(e)),this._$AH=e}g(e){var t;const{values:o,_$litType$:i}=e,r="number"==typeof i?this._$AC(e):(void 0===i.el&&(i.el=oe.createElement(i.h,this.options)),i);if((null===(t=this._$AH)||void 0===t?void 0:t._$AD)===r)this._$AH.v(o);else{const e=new re(r,this),t=e.u(this.options);e.v(o),this.$(t),this._$AH=e}}_$AC(e){let t=Q.get(e.strings);return void 0===t&&Q.set(e.strings,t=new oe(e)),t}T(e){z(this._$AH)||(this._$AH=[],this._$AR());const t=this._$AH;let o,i=0;for(const r of e)i===t.length?t.push(o=new ne(this.k(O()),this.k(O()),this,this.options)):o=t[i],o._$AI(r),i++;i<t.length&&(this._$AR(o&&o._$AB.nextSibling,i),t.length=i)}_$AR(e=this._$AA.nextSibling,t){var o;for(null===(o=this._$AP)||void 0===o||o.call(this,!1,!0,t);e&&e!==this._$AB;){const t=e.nextSibling;e.remove(),e=t}}setConnected(e){var t;void 0===this._$AM&&(this._$Cp=e,null===(t=this._$AP)||void 0===t||t.call(this,e))}}class ae{constructor(e,t,o,i,r){this.type=1,this._$AH=J,this._$AN=void 0,this.element=e,this.name=t,this._$AM=i,this.options=r,o.length>2||""!==o[0]||""!==o[1]?(this._$AH=Array(o.length-1).fill(new String),this.strings=o):this._$AH=J}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(e,t=this,o,i){const r=this.strings;let n=!1;if(void 0===r)e=ie(this,e,t,0),n=!N(e)||e!==this._$AH&&e!==X,n&&(this._$AH=e);else{const i=e;let a,s;for(e=r[0],a=0;a<r.length-1;a++)s=ie(this,i[o+a],t,a),s===X&&(s=this._$AH[a]),n||(n=!N(s)||s!==this._$AH[a]),s===J?e=J:e!==J&&(e+=(null!=s?s:"")+r[a+1]),this._$AH[a]=s}n&&!i&&this.j(e)}j(e){e===J?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=e?e:"")}}class se extends ae{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===J?void 0:e}}const ce=A?A.emptyScript:"";class le extends ae{constructor(){super(...arguments),this.type=4}j(e){e&&e!==J?this.element.setAttribute(this.name,ce):this.element.removeAttribute(this.name)}}class de extends ae{constructor(e,t,o,i,r){super(e,t,o,i,r),this.type=5}_$AI(e,t=this){var o;if((e=null!==(o=ie(this,e,t,0))&&void 0!==o?o:J)===X)return;const i=this._$AH,r=e===J&&i!==J||e.capture!==i.capture||e.once!==i.once||e.passive!==i.passive,n=e!==J&&(i===J||r);r&&this.element.removeEventListener(this.name,this,i),n&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){var t,o;"function"==typeof this._$AH?this._$AH.call(null!==(o=null===(t=this.options)||void 0===t?void 0:t.host)&&void 0!==o?o:this.element,e):this._$AH.handleEvent(e)}}class he{constructor(e,t,o){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=o}get _$AU(){return this._$AM._$AU}_$AI(e){ie(this,e)}}const ue={O:M,P:I,A:P,C:1,M:te,L:re,D:L,R:ie,I:ne,V:ae,H:le,N:de,U:se,F:he},pe=E.litHtmlPolyfillSupport;null==pe||pe(oe,ne),(null!==(T=E.litHtmlVersions)&&void 0!==T?T:E.litHtmlVersions=[]).push("2.7.3");const me=(e,t,o)=>{var i,r;const n=null!==(i=null==o?void 0:o.renderBefore)&&void 0!==i?i:t;let a=n._$litPart$;if(void 0===a){const e=null!==(r=null==o?void 0:o.renderBefore)&&void 0!==r?r:null;n._$litPart$=a=new ne(t.insertBefore(O(),e),e,void 0,null!=o?o:{})}return a._$AI(e),a};var ge,fe;class ve extends ${constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var e,t;const o=super.createRenderRoot();return null!==(e=(t=this.renderOptions).renderBefore)&&void 0!==e||(t.renderBefore=o.firstChild),o}update(e){const t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=me(t,this.renderRoot,this.renderOptions)}connectedCallback(){var e;super.connectedCallback(),null===(e=this._$Do)||void 0===e||e.setConnected(!0)}disconnectedCallback(){var e;super.disconnectedCallback(),null===(e=this._$Do)||void 0===e||e.setConnected(!1)}render(){return X}}ve.finalized=!0,ve._$litElement$=!0,null===(ge=globalThis.litElementHydrateSupport)||void 0===ge||ge.call(globalThis,{LitElement:ve});const be=globalThis.litElementPolyfillSupport;null==be||be({LitElement:ve});(null!==(fe=globalThis.litElementVersions)&&void 0!==fe?fe:globalThis.litElementVersions=[]).push("3.3.2");const ye=e=>t=>"function"==typeof t?((e,t)=>(customElements.define(e,t),t))(e,t):((e,t)=>{const{kind:o,elements:i}=t;return{kind:o,elements:i,finisher(t){customElements.define(e,t)}}})(e,t),we=(e,t)=>"method"===t.kind&&t.descriptor&&!("value"in t.descriptor)?{...t,finisher(o){o.createProperty(t.key,e)}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:t.key,initializer(){"function"==typeof t.initializer&&(this[t.key]=t.initializer.call(this))},finisher(o){o.createProperty(t.key,e)}};function xe(e){return(t,o)=>void 0!==o?((e,t,o)=>{t.constructor.createProperty(o,e)})(e,t,o):we(e,t)}function ke(e){return xe({...e,state:!0})}const Ce=({finisher:e,descriptor:t})=>(o,i)=>{var r;if(void 0===i){const i=null!==(r=o.originalKey)&&void 0!==r?r:o.key,n=null!=t?{kind:"method",placement:"prototype",key:i,descriptor:t(o.key)}:{...o,key:i};return null!=e&&(n.finisher=function(t){e(t,i)}),n}{const r=o.constructor;void 0!==t&&Object.defineProperty(o,i,t(i)),null==e||e(r,i)}};function _e(e){return Ce({finisher:(t,o)=>{Object.assign(t.prototype[o],e)}})}function Se(e,t){return Ce({descriptor:o=>{const i={get(){var t,o;return null!==(o=null===(t=this.renderRoot)||void 0===t?void 0:t.querySelector(e))&&void 0!==o?o:null},enumerable:!0,configurable:!0};if(t){const t="symbol"==typeof o?Symbol():"__"+o;i.get=function(){var o,i;return void 0===this[t]&&(this[t]=null!==(i=null===(o=this.renderRoot)||void 0===o?void 0:o.querySelector(e))&&void 0!==i?i:null),this[t]}}return i}})}function $e(e){return Ce({descriptor:t=>({async get(){var t;return await this.updateComplete,null===(t=this.renderRoot)||void 0===t?void 0:t.querySelector(e)},enumerable:!0,configurable:!0})})}var Te;const Ee=null!=(null===(Te=window.HTMLSlotElement)||void 0===Te?void 0:Te.prototype.assignedElements)?(e,t)=>e.assignedElements(t):(e,t)=>e.assignedNodes(t).filter((e=>e.nodeType===Node.ELEMENT_NODE));const Ae=Symbol.for(""),De=e=>{if((null==e?void 0:e.r)===Ae)return null==e?void 0:e._$litStatic$},Me=(e,...t)=>({_$litStatic$:t.reduce(((t,o,i)=>t+(e=>{if(void 0!==e._$litStatic$)return e._$litStatic$;throw Error(`Value passed to 'literal' function must be a 'literal' result: ${e}. Use 'unsafeStatic' to pass non-literal values, but\n take care to ensure page security.`)})(o)+e[i+1]),e[0]),r:Ae}),Ie=new Map,Pe=e=>(t,...o)=>{const i=o.length;let r,n;const a=[],s=[];let c,l=0,d=!1;for(;l<i;){for(c=t[l];l<i&&void 0!==(n=o[l],r=De(n));)c+=r+t[++l],d=!0;l!==i&&s.push(n),a.push(c),l++}if(l===i&&a.push(t[i]),d){const e=a.join("$$lit$$");void 0===(t=Ie.get(e))&&(a.raw=a,Ie.set(e,t=a)),o=s}return e(t,...o)},Re=Pe(Z),{I:Fe}=(Pe(K),ue),Oe=(e,t)=>void 0===t?void 0!==(null==e?void 0:e._$litType$):(null==e?void 0:e._$litType$)===t,Ne=e=>void 0===e.strings,ze=()=>document.createComment(""),Le=(e,t,o)=>{var i;const r=e._$AA.parentNode,n=void 0===t?e._$AB:t._$AA;if(void 0===o){const t=r.insertBefore(ze(),n),i=r.insertBefore(ze(),n);o=new Fe(t,i,e,e.options)}else{const t=o._$AB.nextSibling,a=o._$AM,s=a!==e;if(s){let t;null===(i=o._$AQ)||void 0===i||i.call(o,e),o._$AM=e,void 0!==o._$AP&&(t=e._$AU)!==a._$AU&&o._$AP(t)}if(t!==n||s){let e=o._$AA;for(;e!==t;){const t=e.nextSibling;r.insertBefore(e,n),e=t}}}return o},He=(e,t,o=e)=>(e._$AI(t,o),e),Be={},Ue=(e,t=Be)=>e._$AH=t,Ge=e=>e._$AH,je=e=>{var t;null===(t=e._$AP)||void 0===t||t.call(e,!1,!0);let o=e._$AA;const i=e._$AB.nextSibling;for(;o!==i;){const e=o.nextSibling;o.remove(),o=e}},Ve=e=>{e._$AR()},Ye=1,qe=2,We=3,Ze=4,Ke=6,Xe=e=>(...t)=>({_$litDirective$:e,values:t});class Je{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,t,o){this._$Ct=e,this._$AM=t,this._$Ci=o}_$AS(e,t){return this.update(e,t)}update(e,t){return this.render(...t)}}const Qe=(e,t)=>{var o,i;const r=e._$AN;if(void 0===r)return!1;for(const e of r)null===(i=(o=e)._$AO)||void 0===i||i.call(o,t,!1),Qe(e,t);return!0},et=e=>{let t,o;do{if(void 0===(t=e._$AM))break;o=t._$AN,o.delete(e),e=t}while(0===(null==o?void 0:o.size))},tt=e=>{for(let t;t=e._$AM;e=t){let o=t._$AN;if(void 0===o)t._$AN=o=new Set;else if(o.has(e))break;o.add(e),rt(t)}};function ot(e){void 0!==this._$AN?(et(this),this._$AM=e,tt(this)):this._$AM=e}function it(e,t=!1,o=0){const i=this._$AH,r=this._$AN;if(void 0!==r&&0!==r.size)if(t)if(Array.isArray(i))for(let e=o;e<i.length;e++)Qe(i[e],!1),et(i[e]);else null!=i&&(Qe(i,!1),et(i));else Qe(this,e)}const rt=e=>{var t,o,i,r;e.type==qe&&(null!==(t=(i=e)._$AP)&&void 0!==t||(i._$AP=it),null!==(o=(r=e)._$AQ)&&void 0!==o||(r._$AQ=ot))};class nt extends Je{constructor(){super(...arguments),this._$AN=void 0}_$AT(e,t,o){super._$AT(e,t,o),tt(this),this.isConnected=e._$AU}_$AO(e,t=!0){var o,i;e!==this.isConnected&&(this.isConnected=e,e?null===(o=this.reconnected)||void 0===o||o.call(this):null===(i=this.disconnected)||void 0===i||i.call(this)),t&&(Qe(this,e),et(this))}setValue(e){if(Ne(this._$Ct))this._$Ct._$AI(e,this);else{const t=[...this._$Ct._$AH];t[this._$Ci]=e,this._$Ct._$AI(t,this,0)}}disconnected(){}reconnected(){}}class at{constructor(e){this.G=e}disconnect(){this.G=void 0}reconnect(e){this.G=e}deref(){return this.G}}class st{constructor(){this.Y=void 0,this.Z=void 0}get(){return this.Y}pause(){var e;null!==(e=this.Y)&&void 0!==e||(this.Y=new Promise((e=>this.Z=e)))}resume(){var e;null===(e=this.Z)||void 0===e||e.call(this),this.Y=this.Z=void 0}}class ct extends nt{constructor(){super(...arguments),this._$Cq=new at(this),this._$CK=new st}render(e,t){return X}update(e,[t,o]){if(this.isConnected||this.disconnected(),t===this._$CX)return;this._$CX=t;let i=0;const{_$Cq:r,_$CK:n}=this;return(async(e,t)=>{for await(const o of e)if(!1===await t(o))return})(t,(async e=>{for(;n.get();)await n.get();const a=r.deref();if(void 0!==a){if(a._$CX!==t)return!1;void 0!==o&&(e=o(e,i)),a.commitValue(e,i),i++}return!0})),X}commitValue(e,t){this.setValue(e)}disconnected(){this._$Cq.disconnect(),this._$CK.pause()}reconnected(){this._$Cq.reconnect(this),this._$CK.resume()}}Xe(ct),Xe(class extends ct{constructor(e){if(super(e),e.type!==qe)throw Error("asyncAppend can only be used in child expressions")}update(e,t){return this._$CJ=e,super.update(e,t)}commitValue(e,t){0===t&&Ve(this._$CJ);const o=Le(this._$CJ);He(o,e)}}),Xe(class extends Je{constructor(e){super(e),this.tt=new WeakMap}render(e){return[e]}update(e,[t]){if(Oe(this.et)&&(!Oe(t)||this.et.strings!==t.strings)){const t=Ge(e).pop();let o=this.tt.get(this.et.strings);if(void 0===o){const e=document.createDocumentFragment();o=me(J,e),o.setConnected(!1),this.tt.set(this.et.strings,o)}Ue(o,[t]),Le(o,void 0,t)}if(Oe(t)){if(!Oe(this.et)||this.et.strings!==t.strings){const o=this.tt.get(t.strings);if(void 0!==o){const t=Ge(o).pop();Ve(e),Le(e,void 0,t),Ue(e,[t])}}this.et=t}else this.et=void 0;return this.render(t)}});const lt=Xe(class extends Je{constructor(e){var t;if(super(e),e.type!==Ye||"class"!==e.name||(null===(t=e.strings)||void 0===t?void 0:t.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(e){return" "+Object.keys(e).filter((t=>e[t])).join(" ")+" "}update(e,[t]){var o,i;if(void 0===this.it){this.it=new Set,void 0!==e.strings&&(this.nt=new Set(e.strings.join(" ").split(/\s/).filter((e=>""!==e))));for(const e in t)t[e]&&!(null===(o=this.nt)||void 0===o?void 0:o.has(e))&&this.it.add(e);return this.render(t)}const r=e.element.classList;this.it.forEach((e=>{e in t||(r.remove(e),this.it.delete(e))}));for(const e in t){const o=!!t[e];o===this.it.has(e)||(null===(i=this.nt)||void 0===i?void 0:i.has(e))||(o?(r.add(e),this.it.add(e)):(r.remove(e),this.it.delete(e)))}return X}}),dt={},ht=(Xe(class extends Je{constructor(){super(...arguments),this.st=dt}render(e,t){return t()}update(e,[t,o]){if(Array.isArray(t)){if(Array.isArray(this.st)&&this.st.length===t.length&&t.every(((e,t)=>e===this.st[t])))return X}else if(this.st===t)return X;return this.st=Array.isArray(t)?Array.from(t):t,this.render(t,o)}}),e=>null!=e?e:J);Xe(class extends Je{constructor(){super(...arguments),this.key=J}render(e,t){return this.key=e,t}update(e,[t,o]){return t!==this.key&&(Ue(e),this.key=t),o}});const ut=Xe(class extends Je{constructor(e){if(super(e),e.type!==We&&e.type!==Ye&&e.type!==Ze)throw Error("The `live` directive is not allowed on child or event bindings");if(!Ne(e))throw Error("`live` bindings can only contain a single expression")}render(e){return e}update(e,[t]){if(t===X||t===J)return t;const o=e.element,i=e.name;if(e.type===We){if(t===o[i])return X}else if(e.type===Ze){if(!!t===o.hasAttribute(i))return X}else if(e.type===Ye&&o.getAttribute(i)===t+"")return X;return Ue(e),t}});const pt=new WeakMap,mt=(Xe(class extends nt{render(e){return J}update(e,[t]){var o;const i=t!==this.G;return i&&void 0!==this.G&&this.ot(void 0),(i||this.rt!==this.lt)&&(this.G=t,this.ct=null===(o=e.options)||void 0===o?void 0:o.host,this.ot(this.lt=e.element)),J}ot(e){var t;if("function"==typeof this.G){const o=null!==(t=this.ct)&&void 0!==t?t:globalThis;let i=pt.get(o);void 0===i&&(i=new WeakMap,pt.set(o,i)),void 0!==i.get(this.G)&&this.G.call(this.ct,void 0),i.set(this.G,e),void 0!==e&&this.G.call(this.ct,e)}else this.G.value=e}get rt(){var e,t,o;return"function"==typeof this.G?null===(t=pt.get(null!==(e=this.ct)&&void 0!==e?e:globalThis))||void 0===t?void 0:t.get(this.G):null===(o=this.G)||void 0===o?void 0:o.value}disconnected(){this.rt===this.lt&&this.ot(void 0)}reconnected(){this.ot(this.lt)}}),(e,t,o)=>{const i=new Map;for(let r=t;r<=o;r++)i.set(e[r],r);return i}),gt=(Xe(class extends Je{constructor(e){if(super(e),e.type!==qe)throw Error("repeat() can only be used in text expressions")}dt(e,t,o){let i;void 0===o?o=t:void 0!==t&&(i=t);const r=[],n=[];let a=0;for(const t of e)r[a]=i?i(t,a):a,n[a]=o(t,a),a++;return{values:n,keys:r}}render(e,t,o){return this.dt(e,t,o).values}update(e,[t,o,i]){var r;const n=Ge(e),{values:a,keys:s}=this.dt(t,o,i);if(!Array.isArray(n))return this.ht=s,a;const c=null!==(r=this.ht)&&void 0!==r?r:this.ht=[],l=[];let d,h,u=0,p=n.length-1,m=0,g=a.length-1;for(;u<=p&&m<=g;)if(null===n[u])u++;else if(null===n[p])p--;else if(c[u]===s[m])l[m]=He(n[u],a[m]),u++,m++;else if(c[p]===s[g])l[g]=He(n[p],a[g]),p--,g--;else if(c[u]===s[g])l[g]=He(n[u],a[g]),Le(e,l[g+1],n[u]),u++,g--;else if(c[p]===s[m])l[m]=He(n[p],a[m]),Le(e,n[u],n[p]),p--,m++;else if(void 0===d&&(d=mt(s,m,g),h=mt(c,u,p)),d.has(c[u]))if(d.has(c[p])){const t=h.get(s[m]),o=void 0!==t?n[t]:null;if(null===o){const t=Le(e,n[u]);He(t,a[m]),l[m]=t}else l[m]=He(o,a[m]),Le(e,n[u],o),n[t]=null;m++}else je(n[p]),p--;else je(n[u]),u++;for(;m<=g;){const t=Le(e,l[g+1]);He(t,a[m]),l[m++]=t}for(;u<=p;){const e=n[u++];null!==e&&je(e)}return this.ht=s,Ue(e,l),X}}),"important"),ft=" !"+gt,vt=Xe(class extends Je{constructor(e){var t;if(super(e),e.type!==Ye||"style"!==e.name||(null===(t=e.strings)||void 0===t?void 0:t.length)>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(e){return Object.keys(e).reduce(((t,o)=>{const i=e[o];return null==i?t:t+`${o=o.includes("-")?o:o.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${i};`}),"")}update(e,[t]){const{style:o}=e.element;if(void 0===this.ut){this.ut=new Set;for(const e in t)this.ut.add(e);return this.render(t)}this.ut.forEach((e=>{null==t[e]&&(this.ut.delete(e),e.includes("-")?o.removeProperty(e):o[e]="")}));for(const e in t){const i=t[e];if(null!=i){this.ut.add(e);const t="string"==typeof i&&i.endsWith(ft);e.includes("-")||t?o.setProperty(e,t?i.slice(0,-11):i,t?gt:""):o[e]=i}}return X}});Xe(class extends Je{constructor(e){if(super(e),e.type!==qe)throw Error("templateContent can only be used in child bindings")}render(e){return this.vt===e?X:(this.vt=e,document.importNode(e.content,!0))}});class bt extends Je{constructor(e){if(super(e),this.et=J,e.type!==qe)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===J||null==e)return this.ft=void 0,this.et=e;if(e===X)return e;if("string"!=typeof e)throw Error(this.constructor.directiveName+"() called with a non-string value");if(e===this.et)return this.ft;this.et=e;const t=[e];return t.raw=t,this.ft={_$litType$:this.constructor.resultType,strings:t,values:[]}}}bt.directiveName="unsafeHTML",bt.resultType=1;Xe(bt);class yt extends bt{}yt.directiveName="unsafeSVG",yt.resultType=2;Xe(yt);const wt=e=>!(e=>null===e||"object"!=typeof e&&"function"!=typeof e)(e)&&"function"==typeof e.then,xt=1073741823;Xe(class extends nt{constructor(){super(...arguments),this._$C_t=xt,this._$Cwt=[],this._$Cq=new at(this),this._$CK=new st}render(...e){var t;return null!==(t=e.find((e=>!wt(e))))&&void 0!==t?t:X}update(e,t){const o=this._$Cwt;let i=o.length;this._$Cwt=t;const r=this._$Cq,n=this._$CK;this.isConnected||this.disconnected();for(let e=0;e<t.length&&!(e>this._$C_t);e++){const a=t[e];if(!wt(a))return this._$C_t=e,a;e<i&&a===o[e]||(this._$C_t=xt,i=0,Promise.resolve(a).then((async e=>{for(;n.get();)await n.get();const t=r.deref();if(void 0!==t){const o=t._$Cwt.indexOf(a);o>-1&&o<t._$C_t&&(t._$C_t=o,t.setValue(e))}})))}return X}disconnected(){this._$Cq.disconnect(),this._$CK.pause()}reconnected(){this._$Cq.reconnect(this),this._$CK.resume()}});const kt=J,Ct=ye;class _t extends ve{initialized(){}connected(){}disconnected(){}get template(){return kt}render(){return this.template}firstUpdated(e){super.firstUpdated(e),this.initialized()}connectedCallback(){super.connectedCallback(),this.connected()}disconnectedCallback(){super.disconnectedCallback(),this.disconnected()}}class St{constructor(e){this.host=e,this.host.addController(this)}}const $t=e=>(t,o)=>{Object.defineProperty(t,o,{get(){return this.renderRoot?.querySelector(e)??void 0}})},Tt=e=>(t,o)=>{Object.defineProperty(t,o,{get(){return[...this.renderRoot?.querySelectorAll(e)??[]]}})},Et=()=>e=>{const t=new e;At.handlers.add(t)};class At extends Je{constructor(e){if(super(e),e.type!==Ke)throw new Error("style directive can only be used on an element");const t=e;this.element=t.element}render(e){for(const[t,o]of Object.entries(e)){([...At.handlers].find((e=>e.handles(this.element,[t,o])))??At.defaultHandler).apply(this.element,[t,o])}}}At.handlers=new Set,At.defaultHandler=new class{handles(){return!0}apply(e,[t,o]){e.style[t]=null==o?"":o}};const Dt=Xe(At);let Mt=class{handles(e,[t]){return t.startsWith("--")}apply(e,[t,o]){e.style.setProperty(t,o)}};Mt=a([Et()],Mt);const It=e=>(t,o)=>{t.constructor.addInitializer((t=>t.addController(new class extends St{constructor(){super(t),this.hasChanged=!1}get value(){return this.host[o]}hostUpdate(){this.value!==this.oldValue&&(this.hasChanged=!0)}hostUpdated(){this.hasChanged&&(this.hasChanged=!1,e.call(this.host,this.value,this.oldValue),this.oldValue=this.value)}})))},Pt=e=>(t,o)=>(e?.updated&&It(e.updated)(t,o),xe(e)(t,o)),Rt=e=>(t,o)=>(e?.updated&&It(e.updated)(t,o),ke(e)(t,o));async function Ft(e){const t=e=>e?Symbol.iterator in e?[...e]:[e]:e;if(void 0===e)return t(this);if("function"==typeof e){let o=e.call(this);if(o instanceof Promise&&(o=await o),o instanceof EventTarget)return t(o);if(Symbol.iterator in(o??{})&&[...o].every((e=>e instanceof EventTarget)))return t(o);throw new TypeError(`${this.constructor}.target is not an EventTarget`)}return t(e??this)}class Ot extends St{constructor(e,...t){super(e),this.host=e,this.options=function(e){const t="string"==typeof e[0];return{target:t?void 0:e[0].target,type:t?e[0]:e[0].type,listener:t?e[1]:e[0].listener,options:t?e[2]:e[0].options}}(t)}async subscribe(){const e=await Ft.call(this.host,this.options.target);for(const t of e)t.addEventListener(this.options.type,this.options.listener,this.options.options)}async unsubscribe(){const e=await Ft.call(this.host,this.options.target);for(const t of e)t?.removeEventListener(this.options.type,this.options.listener,this.options.options)}async hostConnected(){await this.subscribe()}async hostDisconnected(){await this.unsubscribe()}}const Nt=(...e)=>(t,o,i)=>{t.constructor.addInitializer((t=>{t.addController(new class extends Ot{constructor(){const{type:o,target:i,options:r}=function(e){const t=(e=>"string"==typeof e[0])(e);return{type:t?e[0]:e[0].type,target:t?void 0:e[0].target,options:t?e[1]:e[0].options}}(e);super(t,{type:o,target:i,options:r,listener:void 0})}hostConnected(){const e=i?"function"==typeof i.get?i.get:i.value:Object.getOwnPropertyDescriptor(t,o)?.value;return this.options.listener=e.bind(t),super.hostConnected()}})}))};class zt{constructor(){this.handlers=new Set}subscribe(e){this.handlers.add(e)}unsubscribe(e){this.handlers.delete(e)}dispatch(e){for(const t of this.handlers)t(e)}}class Lt{constructor(e,t,o){this.element=e,this.type=t,this.options=o,this.handlersMap=new Map}dispatch(e){this.element.dispatchEvent(e instanceof CustomEvent?e:new CustomEvent(this.type,{detail:e,...this.options}))}subscribe(e){if(!1===this.handlersMap.has(e)){const t=t=>e(t.detail);this.element.addEventListener(this.type,t),this.handlersMap.set(e,t)}}unsubscribe(e){const t=this.handlersMap.get(e);t&&this.element.removeEventListener(this.type,t),this.handlersMap.delete(e)}}function Ht(e){return(t,o)=>{if(void 0===o)return;const i=`$${o}Event$`;Object.defineProperty(t,o,{get(){return this[i]||(this[i]=this instanceof HTMLElement?new Lt(this,o,e):new zt),this[i]}})}}var Bt;let Ut=Bt=class{static getProportion(e){return Number(e.replace(Bt.regex,"$1")||1)}handles(e,[t,o]){return Bt.supportedKeys.has(t)&&Bt.regex.test(o)}apply(e,[,t]){const o=Bt.getProportion(t);e.style.flexGrow=String(o)}};var Gt;Ut.supportedKeys=new Set(["width","height"]),Ut.regex=/^\s*(0|[1-9][0-9]*)?\s*\*\s*$/,Ut=Bt=a([Et()],Ut);let jt=Gt=class extends _t{get direction(){var e;return(null===(e=[...Gt.flexDirectionByDirections].find((([,e])=>this.style.flexDirection===e)))||void 0===e?void 0:e[0])||"vertical"}set direction(e){this.style.flexDirection=Gt.flexDirectionByDirections.get(e)||"column"}get wrap(){return this.style.flexWrap}set wrap(e){this.style.flexWrap=e}get gap(){return this.style.gap}set gap(e){this.style.gap=e}get justifyItems(){return this.style.justifyItems}set justifyItems(e){this.style.justifyItems=e}get justifyContent(){return this.style.justifyContent}set justifyContent(e){this.style.justifyContent=e}get alignItems(){return this.style.alignItems}set alignItems(e){this.style.alignItems=e}get alignContent(){return this.style.alignContent}set alignContent(e){this.style.alignContent=e}static get styles(){return f`:host{display:flex;flex-direction:column;flex-wrap:nowrap}`}get template(){return Z`<slot></slot>`}};var Vt;jt.flexDirectionByDirections=new Map([["horizontal","row"],["horizontal-reversed","row-reverse"],["vertical","column"],["vertical-reversed","column-reverse"]]),a([Pt()],jt.prototype,"direction",null),a([Pt()],jt.prototype,"wrap",null),a([Pt()],jt.prototype,"gap",null),a([Pt()],jt.prototype,"justifyItems",null),a([Pt()],jt.prototype,"justifyContent",null),a([Pt()],jt.prototype,"alignItems",null),a([Pt()],jt.prototype,"alignContent",null),jt=Gt=a([Ct("mo-flex")],jt);let Yt=Vt=class extends _t{get rows(){return this.style.gridTemplateRows}set rows(e){this.style.gridTemplateRows=Vt.fromAsteriskSyntax(e)}get columns(){return this.style.gridTemplateColumns}set columns(e){this.style.gridTemplateColumns=Vt.fromAsteriskSyntax(e)}get autoRows(){return this.style.gridAutoRows}set autoRows(e){this.style.gridAutoRows=e}get autoColumns(){return this.style.gridAutoColumns}set autoColumns(e){this.style.gridAutoColumns=e}get rowGap(){return this.style.rowGap}set rowGap(e){this.style.rowGap=e}get columnGap(){return this.style.columnGap}set columnGap(e){this.style.columnGap=e}get gap(){return this.style.gap}set gap(e){this.style.gap=e}get justifyItems(){return this.style.justifyItems}set justifyItems(e){this.style.justifyItems=e}get justifyContent(){return this.style.justifyContent}set justifyContent(e){this.style.justifyContent=e}get alignItems(){return this.style.alignItems}set alignItems(e){this.style.alignItems=e}get alignContent(){return this.style.alignContent}set alignContent(e){this.style.alignContent=e}static get styles(){return f`:host{display:grid}`}get template(){return Z`<slot></slot>`}};function qt(e,t){return t?t.split(".").reduce(((e,t)=>null==e?e:e[t]),e):void 0}var Wt;Yt.fromAsteriskSyntax=e=>` ${e}`.split("*").join("fr").split(" fr").join(" 1fr").substring(1),a([Pt()],Yt.prototype,"rows",null),a([Pt()],Yt.prototype,"columns",null),a([Pt()],Yt.prototype,"autoRows",null),a([Pt()],Yt.prototype,"autoColumns",null),a([Pt()],Yt.prototype,"rowGap",null),a([Pt()],Yt.prototype,"columnGap",null),a([Pt()],Yt.prototype,"gap",null),a([Pt()],Yt.prototype,"justifyItems",null),a([Pt()],Yt.prototype,"justifyContent",null),a([Pt()],Yt.prototype,"alignItems",null),a([Pt()],Yt.prototype,"alignContent",null),Yt=Vt=a([Ct("mo-grid")],Yt),globalThis.getKeyPath=function(e){return e},globalThis.getValueByKeyPath=qt,globalThis.setValueByKeyPath=function(e,t,o){var i;const r=t.split("."),n=r[r.length-1],a=null!==(i=qt(e,r.slice(0,r.length-1).join(".")))&&void 0!==i?i:e;void 0===a&&null===a||(a[n]=o)};let Zt=Wt=class extends _t{constructor(){super(...arguments),this.variant=Wt.defaultVariant}static get(e){const t=Wt.fontsByVariant.get(e);if(!t)throw new Error(`No font found for variant ${e}`);return t}static ensureAvailable(e){const t=Wt.get(e);Wt.fontUrls.add(t.url);const o=[...Wt.fontUrls].map((e=>`@import '${e}';`));o.some((e=>!1===Wt.fontStyleElement.innerText.includes(e)))&&(Wt.fontStyleElement.innerHTML=o.join("\n"))}static get styles(){return f`:host{display:inline-grid;font-size:24px}span{font-weight:400;font-style:normal;line-height:1;letter-spacing:normal;text-transform:none;display:inline-block;white-space:nowrap;word-wrap:normal;direction:ltr;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale;font-feature-settings:"liga"}`}get template(){return Z`<span ${Dt({fontFamily:Wt.get(this.variant).name})}>${this.icon}</span>`}};Zt.defaultVariant="filled",Zt.fontsByVariant=new Map([["filled",{name:"Material Icons",url:"https://fonts.googleapis.com/icon?family=Material+Icons"}],["outlined",{name:"Material Icons Outlined",url:"https://fonts.googleapis.com/icon?family=Material+Icons+Outlined"}],["sharp",{name:"Material Icons Sharp",url:"https://fonts.googleapis.com/icon?family=Material+Icons+Sharp"}],["rounded",{name:"Material Icons Round",url:"https://fonts.googleapis.com/icon?family=Material+Icons+Round"}]]),Zt.fontStyleElement=document.createElement("style"),Zt.fontUrls=new Set,document.head.appendChild(Wt.fontStyleElement),Wt.ensureAvailable(Wt.defaultVariant),a([Pt({updated(){Wt.ensureAvailable(this.variant)}})],Zt.prototype,"variant",void 0),a([Pt()],Zt.prototype,"icon",void 0),Zt=Wt=a([Ct("mo-icon")],Zt);const Kt=Symbol(),Xt=e=>(t,o)=>{const i=t.constructor;Pt({type:Boolean,reflect:!0,updated(t,o){var i;if(null===(i=null==e?void 0:e.updated)||void 0===i||i.call(this,t,o),t?this.setAttribute("aria-disabled","true"):this.removeAttribute("aria-disabled"),null==e?void 0:e.blockFocus){const e=this;t&&-1!==this.tabIndex&&(e[Kt]=this.tabIndex,this.tabIndex=-1),t||void 0===e[Kt]||(this.tabIndex=e[Kt],e[Kt]=void 0)}}})(t,o),i.elementStyles.push(f`:host([disabled]){pointer-events:none}`)};function Jt(e,t){return(e.matches||e.webkitMatchesSelector||e.msMatchesSelector).call(e,t)}let Qt=!1;const eo=()=>{},to={get passive(){return Qt=!0,!1}};document.addEventListener("x",eo,to),document.removeEventListener("x",eo);class oo extends ve{click(){if(this.mdcRoot)return this.mdcRoot.focus(),void this.mdcRoot.click();super.click()}createFoundation(){void 0!==this.mdcFoundation&&this.mdcFoundation.destroy(),this.mdcFoundationClass&&(this.mdcFoundation=new this.mdcFoundationClass(this.createAdapter()),this.mdcFoundation.init())}firstUpdated(){this.createFoundation()}}var io=function(){function e(e){void 0===e&&(e={}),this.adapter=e}return Object.defineProperty(e,"cssClasses",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(e,"strings",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(e,"numbers",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(e,"defaultAdapter",{get:function(){return{}},enumerable:!1,configurable:!0}),e.prototype.init=function(){},e.prototype.destroy=function(){},e}();var ro={BG_FOCUSED:"mdc-ripple-upgraded--background-focused",FG_ACTIVATION:"mdc-ripple-upgraded--foreground-activation",FG_DEACTIVATION:"mdc-ripple-upgraded--foreground-deactivation",ROOT:"mdc-ripple-upgraded",UNBOUNDED:"mdc-ripple-upgraded--unbounded"},no={VAR_FG_SCALE:"--mdc-ripple-fg-scale",VAR_FG_SIZE:"--mdc-ripple-fg-size",VAR_FG_TRANSLATE_END:"--mdc-ripple-fg-translate-end",VAR_FG_TRANSLATE_START:"--mdc-ripple-fg-translate-start",VAR_LEFT:"--mdc-ripple-left",VAR_TOP:"--mdc-ripple-top"},ao={DEACTIVATION_TIMEOUT_MS:225,FG_DEACTIVATION_MS:150,INITIAL_ORIGIN_SCALE:.6,PADDING:10,TAP_DELAY_MS:300};var so=["touchstart","pointerdown","mousedown","keydown"],co=["touchend","pointerup","mouseup","contextmenu"],lo=[],ho=function(e){function t(o){var i=e.call(this,n(n({},t.defaultAdapter),o))||this;return i.activationAnimationHasEnded=!1,i.activationTimer=0,i.fgDeactivationRemovalTimer=0,i.fgScale="0",i.frame={width:0,height:0},i.initialSize=0,i.layoutFrame=0,i.maxRadius=0,i.unboundedCoords={left:0,top:0},i.activationState=i.defaultActivationState(),i.activationTimerCallback=function(){i.activationAnimationHasEnded=!0,i.runDeactivationUXLogicIfReady()},i.activateHandler=function(e){i.activateImpl(e)},i.deactivateHandler=function(){i.deactivateImpl()},i.focusHandler=function(){i.handleFocus()},i.blurHandler=function(){i.handleBlur()},i.resizeHandler=function(){i.layout()},i}return o(t,e),Object.defineProperty(t,"cssClasses",{get:function(){return ro},enumerable:!1,configurable:!0}),Object.defineProperty(t,"strings",{get:function(){return no},enumerable:!1,configurable:!0}),Object.defineProperty(t,"numbers",{get:function(){return ao},enumerable:!1,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function(){return{addClass:function(){},browserSupportsCssVars:function(){return!0},computeBoundingRect:function(){return{top:0,right:0,bottom:0,left:0,width:0,height:0}},containsEventTarget:function(){return!0},deregisterDocumentInteractionHandler:function(){},deregisterInteractionHandler:function(){},deregisterResizeHandler:function(){},getWindowPageOffset:function(){return{x:0,y:0}},isSurfaceActive:function(){return!0},isSurfaceDisabled:function(){return!0},isUnbounded:function(){return!0},registerDocumentInteractionHandler:function(){},registerInteractionHandler:function(){},registerResizeHandler:function(){},removeClass:function(){},updateCssVariable:function(){}}},enumerable:!1,configurable:!0}),t.prototype.init=function(){var e=this,o=this.supportsPressRipple();if(this.registerRootHandlers(o),o){var i=t.cssClasses,r=i.ROOT,n=i.UNBOUNDED;requestAnimationFrame((function(){e.adapter.addClass(r),e.adapter.isUnbounded()&&(e.adapter.addClass(n),e.layoutInternal())}))}},t.prototype.destroy=function(){var e=this;if(this.supportsPressRipple()){this.activationTimer&&(clearTimeout(this.activationTimer),this.activationTimer=0,this.adapter.removeClass(t.cssClasses.FG_ACTIVATION)),this.fgDeactivationRemovalTimer&&(clearTimeout(this.fgDeactivationRemovalTimer),this.fgDeactivationRemovalTimer=0,this.adapter.removeClass(t.cssClasses.FG_DEACTIVATION));var o=t.cssClasses,i=o.ROOT,r=o.UNBOUNDED;requestAnimationFrame((function(){e.adapter.removeClass(i),e.adapter.removeClass(r),e.removeCssVars()}))}this.deregisterRootHandlers(),this.deregisterDeactivationHandlers()},t.prototype.activate=function(e){this.activateImpl(e)},t.prototype.deactivate=function(){this.deactivateImpl()},t.prototype.layout=function(){var e=this;this.layoutFrame&&cancelAnimationFrame(this.layoutFrame),this.layoutFrame=requestAnimationFrame((function(){e.layoutInternal(),e.layoutFrame=0}))},t.prototype.setUnbounded=function(e){var o=t.cssClasses.UNBOUNDED;e?this.adapter.addClass(o):this.adapter.removeClass(o)},t.prototype.handleFocus=function(){var e=this;requestAnimationFrame((function(){return e.adapter.addClass(t.cssClasses.BG_FOCUSED)}))},t.prototype.handleBlur=function(){var e=this;requestAnimationFrame((function(){return e.adapter.removeClass(t.cssClasses.BG_FOCUSED)}))},t.prototype.supportsPressRipple=function(){return this.adapter.browserSupportsCssVars()},t.prototype.defaultActivationState=function(){return{activationEvent:void 0,hasDeactivationUXRun:!1,isActivated:!1,isProgrammatic:!1,wasActivatedByPointer:!1,wasElementMadeActive:!1}},t.prototype.registerRootHandlers=function(e){var t,o;if(e){try{for(var i=c(so),r=i.next();!r.done;r=i.next()){var n=r.value;this.adapter.registerInteractionHandler(n,this.activateHandler)}}catch(e){t={error:e}}finally{try{r&&!r.done&&(o=i.return)&&o.call(i)}finally{if(t)throw t.error}}this.adapter.isUnbounded()&&this.adapter.registerResizeHandler(this.resizeHandler)}this.adapter.registerInteractionHandler("focus",this.focusHandler),this.adapter.registerInteractionHandler("blur",this.blurHandler)},t.prototype.registerDeactivationHandlers=function(e){var t,o;if("keydown"===e.type)this.adapter.registerInteractionHandler("keyup",this.deactivateHandler);else try{for(var i=c(co),r=i.next();!r.done;r=i.next()){var n=r.value;this.adapter.registerDocumentInteractionHandler(n,this.deactivateHandler)}}catch(e){t={error:e}}finally{try{r&&!r.done&&(o=i.return)&&o.call(i)}finally{if(t)throw t.error}}},t.prototype.deregisterRootHandlers=function(){var e,t;try{for(var o=c(so),i=o.next();!i.done;i=o.next()){var r=i.value;this.adapter.deregisterInteractionHandler(r,this.activateHandler)}}catch(t){e={error:t}}finally{try{i&&!i.done&&(t=o.return)&&t.call(o)}finally{if(e)throw e.error}}this.adapter.deregisterInteractionHandler("focus",this.focusHandler),this.adapter.deregisterInteractionHandler("blur",this.blurHandler),this.adapter.isUnbounded()&&this.adapter.deregisterResizeHandler(this.resizeHandler)},t.prototype.deregisterDeactivationHandlers=function(){var e,t;this.adapter.deregisterInteractionHandler("keyup",this.deactivateHandler);try{for(var o=c(co),i=o.next();!i.done;i=o.next()){var r=i.value;this.adapter.deregisterDocumentInteractionHandler(r,this.deactivateHandler)}}catch(t){e={error:t}}finally{try{i&&!i.done&&(t=o.return)&&t.call(o)}finally{if(e)throw e.error}}},t.prototype.removeCssVars=function(){var e=this,o=t.strings;Object.keys(o).forEach((function(t){0===t.indexOf("VAR_")&&e.adapter.updateCssVariable(o[t],null)}))},t.prototype.activateImpl=function(e){var t=this;if(!this.adapter.isSurfaceDisabled()){var o=this.activationState;if(!o.isActivated){var i=this.previousActivationEvent;if(!(i&&void 0!==e&&i.type!==e.type))o.isActivated=!0,o.isProgrammatic=void 0===e,o.activationEvent=e,o.wasActivatedByPointer=!o.isProgrammatic&&(void 0!==e&&("mousedown"===e.type||"touchstart"===e.type||"pointerdown"===e.type)),void 0!==e&&lo.length>0&&lo.some((function(e){return t.adapter.containsEventTarget(e)}))?this.resetActivationState():(void 0!==e&&(lo.push(e.target),this.registerDeactivationHandlers(e)),o.wasElementMadeActive=this.checkElementMadeActive(e),o.wasElementMadeActive&&this.animateActivation(),requestAnimationFrame((function(){lo=[],o.wasElementMadeActive||void 0===e||" "!==e.key&&32!==e.keyCode||(o.wasElementMadeActive=t.checkElementMadeActive(e),o.wasElementMadeActive&&t.animateActivation()),o.wasElementMadeActive||(t.activationState=t.defaultActivationState())})))}}},t.prototype.checkElementMadeActive=function(e){return void 0===e||"keydown"!==e.type||this.adapter.isSurfaceActive()},t.prototype.animateActivation=function(){var e=this,o=t.strings,i=o.VAR_FG_TRANSLATE_START,r=o.VAR_FG_TRANSLATE_END,n=t.cssClasses,a=n.FG_DEACTIVATION,s=n.FG_ACTIVATION,c=t.numbers.DEACTIVATION_TIMEOUT_MS;this.layoutInternal();var l="",d="";if(!this.adapter.isUnbounded()){var h=this.getFgTranslationCoordinates(),u=h.startPoint,p=h.endPoint;l=u.x+"px, "+u.y+"px",d=p.x+"px, "+p.y+"px"}this.adapter.updateCssVariable(i,l),this.adapter.updateCssVariable(r,d),clearTimeout(this.activationTimer),clearTimeout(this.fgDeactivationRemovalTimer),this.rmBoundedActivationClasses(),this.adapter.removeClass(a),this.adapter.computeBoundingRect(),this.adapter.addClass(s),this.activationTimer=setTimeout((function(){e.activationTimerCallback()}),c)},t.prototype.getFgTranslationCoordinates=function(){var e,t=this.activationState,o=t.activationEvent;return e=t.wasActivatedByPointer?function(e,t,o){if(!e)return{x:0,y:0};var i,r,n=t.x,a=t.y,s=n+o.left,c=a+o.top;if("touchstart"===e.type){var l=e;i=l.changedTouches[0].pageX-s,r=l.changedTouches[0].pageY-c}else{var d=e;i=d.pageX-s,r=d.pageY-c}return{x:i,y:r}}(o,this.adapter.getWindowPageOffset(),this.adapter.computeBoundingRect()):{x:this.frame.width/2,y:this.frame.height/2},{startPoint:e={x:e.x-this.initialSize/2,y:e.y-this.initialSize/2},endPoint:{x:this.frame.width/2-this.initialSize/2,y:this.frame.height/2-this.initialSize/2}}},t.prototype.runDeactivationUXLogicIfReady=function(){var e=this,o=t.cssClasses.FG_DEACTIVATION,i=this.activationState,r=i.hasDeactivationUXRun,n=i.isActivated;(r||!n)&&this.activationAnimationHasEnded&&(this.rmBoundedActivationClasses(),this.adapter.addClass(o),this.fgDeactivationRemovalTimer=setTimeout((function(){e.adapter.removeClass(o)}),ao.FG_DEACTIVATION_MS))},t.prototype.rmBoundedActivationClasses=function(){var e=t.cssClasses.FG_ACTIVATION;this.adapter.removeClass(e),this.activationAnimationHasEnded=!1,this.adapter.computeBoundingRect()},t.prototype.resetActivationState=function(){var e=this;this.previousActivationEvent=this.activationState.activationEvent,this.activationState=this.defaultActivationState(),setTimeout((function(){return e.previousActivationEvent=void 0}),t.numbers.TAP_DELAY_MS)},t.prototype.deactivateImpl=function(){var e=this,t=this.activationState;if(t.isActivated){var o=n({},t);t.isProgrammatic?(requestAnimationFrame((function(){e.animateDeactivation(o)})),this.resetActivationState()):(this.deregisterDeactivationHandlers(),requestAnimationFrame((function(){e.activationState.hasDeactivationUXRun=!0,e.animateDeactivation(o),e.resetActivationState()})))}},t.prototype.animateDeactivation=function(e){var t=e.wasActivatedByPointer,o=e.wasElementMadeActive;(t||o)&&this.runDeactivationUXLogicIfReady()},t.prototype.layoutInternal=function(){var e=this;this.frame=this.adapter.computeBoundingRect();var o=Math.max(this.frame.height,this.frame.width);this.maxRadius=this.adapter.isUnbounded()?o:Math.sqrt(Math.pow(e.frame.width,2)+Math.pow(e.frame.height,2))+t.numbers.PADDING;var i=Math.floor(o*t.numbers.INITIAL_ORIGIN_SCALE);this.adapter.isUnbounded()&&i%2!=0?this.initialSize=i-1:this.initialSize=i,this.fgScale=""+this.maxRadius/this.initialSize,this.updateLayoutCssVars()},t.prototype.updateLayoutCssVars=function(){var e=t.strings,o=e.VAR_FG_SIZE,i=e.VAR_LEFT,r=e.VAR_TOP,n=e.VAR_FG_SCALE;this.adapter.updateCssVariable(o,this.initialSize+"px"),this.adapter.updateCssVariable(n,this.fgScale),this.adapter.isUnbounded()&&(this.unboundedCoords={left:Math.round(this.frame.width/2-this.initialSize/2),top:Math.round(this.frame.height/2-this.initialSize/2)},this.adapter.updateCssVariable(i,this.unboundedCoords.left+"px"),this.adapter.updateCssVariable(r,this.unboundedCoords.top+"px"))},t}(io);const uo=ho;class po extends oo{constructor(){super(...arguments),this.primary=!1,this.accent=!1,this.unbounded=!1,this.disabled=!1,this.activated=!1,this.selected=!1,this.internalUseStateLayerCustomProperties=!1,this.hovering=!1,this.bgFocused=!1,this.fgActivation=!1,this.fgDeactivation=!1,this.fgScale="",this.fgSize="",this.translateStart="",this.translateEnd="",this.leftPos="",this.topPos="",this.mdcFoundationClass=uo}get isActive(){return Jt(this.parentElement||this,":active")}createAdapter(){return{browserSupportsCssVars:()=>!0,isUnbounded:()=>this.unbounded,isSurfaceActive:()=>this.isActive,isSurfaceDisabled:()=>this.disabled,addClass:e=>{switch(e){case"mdc-ripple-upgraded--background-focused":this.bgFocused=!0;break;case"mdc-ripple-upgraded--foreground-activation":this.fgActivation=!0;break;case"mdc-ripple-upgraded--foreground-deactivation":this.fgDeactivation=!0}},removeClass:e=>{switch(e){case"mdc-ripple-upgraded--background-focused":this.bgFocused=!1;break;case"mdc-ripple-upgraded--foreground-activation":this.fgActivation=!1;break;case"mdc-ripple-upgraded--foreground-deactivation":this.fgDeactivation=!1}},containsEventTarget:()=>!0,registerInteractionHandler:()=>{},deregisterInteractionHandler:()=>{},registerDocumentInteractionHandler:()=>{},deregisterDocumentInteractionHandler:()=>{},registerResizeHandler:()=>{},deregisterResizeHandler:()=>{},updateCssVariable:(e,t)=>{switch(e){case"--mdc-ripple-fg-scale":this.fgScale=t;break;case"--mdc-ripple-fg-size":this.fgSize=t;break;case"--mdc-ripple-fg-translate-end":this.translateEnd=t;break;case"--mdc-ripple-fg-translate-start":this.translateStart=t;break;case"--mdc-ripple-left":this.leftPos=t;break;case"--mdc-ripple-top":this.topPos=t}},computeBoundingRect:()=>(this.parentElement||this).getBoundingClientRect(),getWindowPageOffset:()=>({x:window.pageXOffset,y:window.pageYOffset})}}startPress(e){this.waitForFoundation((()=>{this.mdcFoundation.activate(e)}))}endPress(){this.waitForFoundation((()=>{this.mdcFoundation.deactivate()}))}startFocus(){this.waitForFoundation((()=>{this.mdcFoundation.handleFocus()}))}endFocus(){this.waitForFoundation((()=>{this.mdcFoundation.handleBlur()}))}startHover(){this.hovering=!0}endHover(){this.hovering=!1}waitForFoundation(e){this.mdcFoundation?e():this.updateComplete.then(e)}update(e){e.has("disabled")&&this.disabled&&this.endHover(),super.update(e)}render(){const e=this.activated&&(this.primary||!this.accent),t=this.selected&&(this.primary||!this.accent),o={"mdc-ripple-surface--accent":this.accent,"mdc-ripple-surface--primary--activated":e,"mdc-ripple-surface--accent--activated":this.accent&&this.activated,"mdc-ripple-surface--primary--selected":t,"mdc-ripple-surface--accent--selected":this.accent&&this.selected,"mdc-ripple-surface--disabled":this.disabled,"mdc-ripple-surface--hover":this.hovering,"mdc-ripple-surface--primary":this.primary,"mdc-ripple-surface--selected":this.selected,"mdc-ripple-upgraded--background-focused":this.bgFocused,"mdc-ripple-upgraded--foreground-activation":this.fgActivation,"mdc-ripple-upgraded--foreground-deactivation":this.fgDeactivation,"mdc-ripple-upgraded--unbounded":this.unbounded,"mdc-ripple-surface--internal-use-state-layer-custom-properties":this.internalUseStateLayerCustomProperties};return Z`<div class="mdc-ripple-surface mdc-ripple-upgraded ${lt(o)}" style="${vt({"--mdc-ripple-fg-scale":this.fgScale,"--mdc-ripple-fg-size":this.fgSize,"--mdc-ripple-fg-translate-end":this.translateEnd,"--mdc-ripple-fg-translate-start":this.translateStart,"--mdc-ripple-left":this.leftPos,"--mdc-ripple-top":this.topPos})}"></div>`}}a([Se(".mdc-ripple-surface")],po.prototype,"mdcRoot",void 0),a([xe({type:Boolean})],po.prototype,"primary",void 0),a([xe({type:Boolean})],po.prototype,"accent",void 0),a([xe({type:Boolean})],po.prototype,"unbounded",void 0),a([xe({type:Boolean})],po.prototype,"disabled",void 0),a([xe({type:Boolean})],po.prototype,"activated",void 0),a([xe({type:Boolean})],po.prototype,"selected",void 0),a([xe({type:Boolean})],po.prototype,"internalUseStateLayerCustomProperties",void 0),a([ke()],po.prototype,"hovering",void 0),a([ke()],po.prototype,"bgFocused",void 0),a([ke()],po.prototype,"fgActivation",void 0),a([ke()],po.prototype,"fgDeactivation",void 0),a([ke()],po.prototype,"fgScale",void 0),a([ke()],po.prototype,"fgSize",void 0),a([ke()],po.prototype,"translateStart",void 0),a([ke()],po.prototype,"translateEnd",void 0),a([ke()],po.prototype,"leftPos",void 0),a([ke()],po.prototype,"topPos",void 0);const mo=f`.mdc-ripple-surface{--mdc-ripple-fg-size:0;--mdc-ripple-left:0;--mdc-ripple-top:0;--mdc-ripple-fg-scale:1;--mdc-ripple-fg-translate-end:0;--mdc-ripple-fg-translate-start:0;-webkit-tap-highlight-color:transparent;will-change:transform,opacity;position:relative;outline:0;overflow:hidden}.mdc-ripple-surface::after,.mdc-ripple-surface::before{position:absolute;border-radius:50%;opacity:0;pointer-events:none;content:""}.mdc-ripple-surface::before{transition:opacity 15ms linear,background-color 15ms linear;z-index:1;z-index:var(--mdc-ripple-z-index,1)}.mdc-ripple-surface::after{z-index:0;z-index:var(--mdc-ripple-z-index,0)}.mdc-ripple-surface.mdc-ripple-upgraded::before{transform:scale(var(--mdc-ripple-fg-scale,1))}.mdc-ripple-surface.mdc-ripple-upgraded::after{top:0;left:0;transform:scale(0);transform-origin:center center}.mdc-ripple-surface.mdc-ripple-upgraded--unbounded::after{top:var(--mdc-ripple-top,0);left:var(--mdc-ripple-left,0)}.mdc-ripple-surface.mdc-ripple-upgraded--foreground-activation::after{animation:mdc-ripple-fg-radius-in 225ms forwards,mdc-ripple-fg-opacity-in 75ms forwards}.mdc-ripple-surface.mdc-ripple-upgraded--foreground-deactivation::after{animation:mdc-ripple-fg-opacity-out 150ms;transform:translate(var(--mdc-ripple-fg-translate-end,0)) scale(var(--mdc-ripple-fg-scale,1))}.mdc-ripple-surface::after,.mdc-ripple-surface::before{top:calc(50% - 100%);left:calc(50% - 100%);width:200%;height:200%}.mdc-ripple-surface.mdc-ripple-upgraded::after{width:var(--mdc-ripple-fg-size,100%);height:var(--mdc-ripple-fg-size,100%)}.mdc-ripple-surface[data-mdc-ripple-is-unbounded],.mdc-ripple-upgraded--unbounded{overflow:visible}.mdc-ripple-surface[data-mdc-ripple-is-unbounded]::after,.mdc-ripple-surface[data-mdc-ripple-is-unbounded]::before,.mdc-ripple-upgraded--unbounded::after,.mdc-ripple-upgraded--unbounded::before{top:calc(50% - 50%);left:calc(50% - 50%);width:100%;height:100%}.mdc-ripple-surface[data-mdc-ripple-is-unbounded].mdc-ripple-upgraded::after,.mdc-ripple-surface[data-mdc-ripple-is-unbounded].mdc-ripple-upgraded::before,.mdc-ripple-upgraded--unbounded.mdc-ripple-upgraded::after,.mdc-ripple-upgraded--unbounded.mdc-ripple-upgraded::before{top:var(--mdc-ripple-top,calc(50% - 50%));left:var(--mdc-ripple-left,calc(50% - 50%));width:var(--mdc-ripple-fg-size,100%);height:var(--mdc-ripple-fg-size,100%)}.mdc-ripple-surface[data-mdc-ripple-is-unbounded].mdc-ripple-upgraded::after,.mdc-ripple-upgraded--unbounded.mdc-ripple-upgraded::after{width:var(--mdc-ripple-fg-size,100%);height:var(--mdc-ripple-fg-size,100%)}.mdc-ripple-surface::after,.mdc-ripple-surface::before{background-color:#000;background-color:var(--mdc-ripple-color,#000)}.mdc-ripple-surface.mdc-ripple-surface--hover::before,.mdc-ripple-surface:hover::before{opacity:.04;opacity:var(--mdc-ripple-hover-opacity,.04)}.mdc-ripple-surface.mdc-ripple-upgraded--background-focused::before,.mdc-ripple-surface:not(.mdc-ripple-upgraded):focus::before{transition-duration:75ms;opacity:.12;opacity:var(--mdc-ripple-focus-opacity,.12)}.mdc-ripple-surface:not(.mdc-ripple-upgraded)::after{transition:opacity 150ms linear}.mdc-ripple-surface:not(.mdc-ripple-upgraded):active::after{transition-duration:75ms;opacity:.12;opacity:var(--mdc-ripple-press-opacity,.12)}.mdc-ripple-surface.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.12)}@keyframes mdc-ripple-fg-radius-in{from{animation-timing-function:cubic-bezier(.4,0,.2,1);transform:translate(var(--mdc-ripple-fg-translate-start,0)) scale(1)}to{transform:translate(var(--mdc-ripple-fg-translate-end,0)) scale(var(--mdc-ripple-fg-scale,1))}}@keyframes mdc-ripple-fg-opacity-in{from{animation-timing-function:linear;opacity:0}to{opacity:var(--mdc-ripple-fg-opacity,0)}}@keyframes mdc-ripple-fg-opacity-out{from{animation-timing-function:linear;opacity:var(--mdc-ripple-fg-opacity,0)}to{opacity:0}}:host{position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none;display:block}:host .mdc-ripple-surface{position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none;will-change:unset}.mdc-ripple-surface--primary::after,.mdc-ripple-surface--primary::before{background-color:#6200ee;background-color:var(--mdc-ripple-color,var(--mdc-theme-primary,#6200ee))}.mdc-ripple-surface--primary.mdc-ripple-surface--hover::before,.mdc-ripple-surface--primary:hover::before{opacity:.04;opacity:var(--mdc-ripple-hover-opacity,.04)}.mdc-ripple-surface--primary.mdc-ripple-upgraded--background-focused::before,.mdc-ripple-surface--primary:not(.mdc-ripple-upgraded):focus::before{transition-duration:75ms;opacity:.12;opacity:var(--mdc-ripple-focus-opacity,.12)}.mdc-ripple-surface--primary:not(.mdc-ripple-upgraded)::after{transition:opacity 150ms linear}.mdc-ripple-surface--primary:not(.mdc-ripple-upgraded):active::after{transition-duration:75ms;opacity:.12;opacity:var(--mdc-ripple-press-opacity,.12)}.mdc-ripple-surface--primary.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.12)}.mdc-ripple-surface--primary--activated::before{opacity:.12;opacity:var(--mdc-ripple-activated-opacity,.12)}.mdc-ripple-surface--primary--activated::after,.mdc-ripple-surface--primary--activated::before{background-color:#6200ee;background-color:var(--mdc-ripple-color,var(--mdc-theme-primary,#6200ee))}.mdc-ripple-surface--primary--activated.mdc-ripple-surface--hover::before,.mdc-ripple-surface--primary--activated:hover::before{opacity:.16;opacity:var(--mdc-ripple-hover-opacity,.16)}.mdc-ripple-surface--primary--activated.mdc-ripple-upgraded--background-focused::before,.mdc-ripple-surface--primary--activated:not(.mdc-ripple-upgraded):focus::before{transition-duration:75ms;opacity:.24;opacity:var(--mdc-ripple-focus-opacity,.24)}.mdc-ripple-surface--primary--activated:not(.mdc-ripple-upgraded)::after{transition:opacity 150ms linear}.mdc-ripple-surface--primary--activated:not(.mdc-ripple-upgraded):active::after{transition-duration:75ms;opacity:.24;opacity:var(--mdc-ripple-press-opacity,.24)}.mdc-ripple-surface--primary--activated.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.24)}.mdc-ripple-surface--primary--selected::before{opacity:.08;opacity:var(--mdc-ripple-selected-opacity,.08)}.mdc-ripple-surface--primary--selected::after,.mdc-ripple-surface--primary--selected::before{background-color:#6200ee;background-color:var(--mdc-ripple-color,var(--mdc-theme-primary,#6200ee))}.mdc-ripple-surface--primary--selected.mdc-ripple-surface--hover::before,.mdc-ripple-surface--primary--selected:hover::before{opacity:.12;opacity:var(--mdc-ripple-hover-opacity,.12)}.mdc-ripple-surface--primary--selected.mdc-ripple-upgraded--background-focused::before,.mdc-ripple-surface--primary--selected:not(.mdc-ripple-upgraded):focus::before{transition-duration:75ms;opacity:.2;opacity:var(--mdc-ripple-focus-opacity,.2)}.mdc-ripple-surface--primary--selected:not(.mdc-ripple-upgraded)::after{transition:opacity 150ms linear}.mdc-ripple-surface--primary--selected:not(.mdc-ripple-upgraded):active::after{transition-duration:75ms;opacity:.2;opacity:var(--mdc-ripple-press-opacity,.2)}.mdc-ripple-surface--primary--selected.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.2)}.mdc-ripple-surface--accent::after,.mdc-ripple-surface--accent::before{background-color:#018786;background-color:var(--mdc-ripple-color,var(--mdc-theme-secondary,#018786))}.mdc-ripple-surface--accent.mdc-ripple-surface--hover::before,.mdc-ripple-surface--accent:hover::before{opacity:.04;opacity:var(--mdc-ripple-hover-opacity,.04)}.mdc-ripple-surface--accent.mdc-ripple-upgraded--background-focused::before,.mdc-ripple-surface--accent:not(.mdc-ripple-upgraded):focus::before{transition-duration:75ms;opacity:.12;opacity:var(--mdc-ripple-focus-opacity,.12)}.mdc-ripple-surface--accent:not(.mdc-ripple-upgraded)::after{transition:opacity 150ms linear}.mdc-ripple-surface--accent:not(.mdc-ripple-upgraded):active::after{transition-duration:75ms;opacity:.12;opacity:var(--mdc-ripple-press-opacity,.12)}.mdc-ripple-surface--accent.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.12)}.mdc-ripple-surface--accent--activated::before{opacity:.12;opacity:var(--mdc-ripple-activated-opacity,.12)}.mdc-ripple-surface--accent--activated::after,.mdc-ripple-surface--accent--activated::before{background-color:#018786;background-color:var(--mdc-ripple-color,var(--mdc-theme-secondary,#018786))}.mdc-ripple-surface--accent--activated.mdc-ripple-surface--hover::before,.mdc-ripple-surface--accent--activated:hover::before{opacity:.16;opacity:var(--mdc-ripple-hover-opacity,.16)}.mdc-ripple-surface--accent--activated.mdc-ripple-upgraded--background-focused::before,.mdc-ripple-surface--accent--activated:not(.mdc-ripple-upgraded):focus::before{transition-duration:75ms;opacity:.24;opacity:var(--mdc-ripple-focus-opacity,.24)}.mdc-ripple-surface--accent--activated:not(.mdc-ripple-upgraded)::after{transition:opacity 150ms linear}.mdc-ripple-surface--accent--activated:not(.mdc-ripple-upgraded):active::after{transition-duration:75ms;opacity:.24;opacity:var(--mdc-ripple-press-opacity,.24)}.mdc-ripple-surface--accent--activated.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.24)}.mdc-ripple-surface--accent--selected::before{opacity:.08;opacity:var(--mdc-ripple-selected-opacity,.08)}.mdc-ripple-surface--accent--selected::after,.mdc-ripple-surface--accent--selected::before{background-color:#018786;background-color:var(--mdc-ripple-color,var(--mdc-theme-secondary,#018786))}.mdc-ripple-surface--accent--selected.mdc-ripple-surface--hover::before,.mdc-ripple-surface--accent--selected:hover::before{opacity:.12;opacity:var(--mdc-ripple-hover-opacity,.12)}.mdc-ripple-surface--accent--selected.mdc-ripple-upgraded--background-focused::before,.mdc-ripple-surface--accent--selected:not(.mdc-ripple-upgraded):focus::before{transition-duration:75ms;opacity:.2;opacity:var(--mdc-ripple-focus-opacity,.2)}.mdc-ripple-surface--accent--selected:not(.mdc-ripple-upgraded)::after{transition:opacity 150ms linear}.mdc-ripple-surface--accent--selected:not(.mdc-ripple-upgraded):active::after{transition-duration:75ms;opacity:.2;opacity:var(--mdc-ripple-press-opacity,.2)}.mdc-ripple-surface--accent--selected.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.2)}.mdc-ripple-surface--disabled{opacity:0}.mdc-ripple-surface--internal-use-state-layer-custom-properties::after,.mdc-ripple-surface--internal-use-state-layer-custom-properties::before{background-color:#000;background-color:var(--mdc-ripple-hover-state-layer-color,#000)}.mdc-ripple-surface--internal-use-state-layer-custom-properties.mdc-ripple-surface--hover::before,.mdc-ripple-surface--internal-use-state-layer-custom-properties:hover::before{opacity:.04;opacity:var(--mdc-ripple-hover-state-layer-opacity,.04)}.mdc-ripple-surface--internal-use-state-layer-custom-properties.mdc-ripple-upgraded--background-focused::before,.mdc-ripple-surface--internal-use-state-layer-custom-properties:not(.mdc-ripple-upgraded):focus::before{transition-duration:75ms;opacity:.12;opacity:var(--mdc-ripple-focus-state-layer-opacity,.12)}.mdc-ripple-surface--internal-use-state-layer-custom-properties:not(.mdc-ripple-upgraded)::after{transition:opacity 150ms linear}.mdc-ripple-surface--internal-use-state-layer-custom-properties:not(.mdc-ripple-upgraded):active::after{transition-duration:75ms;opacity:.12;opacity:var(--mdc-ripple-pressed-state-layer-opacity,.12)}.mdc-ripple-surface--internal-use-state-layer-custom-properties.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-pressed-state-layer-opacity, 0.12)}`;let go=class extends po{};function fo(e,t,o){if(void 0!==t)return function(e,t,o){const i=e.constructor;if(!o){const e=`__${t}`;if(!(o=i.getPropertyDescriptor(t,e)))throw new Error("@ariaProperty must be used after a @property decorator")}const r=o;let n="";if(!r.set)throw new Error(`@ariaProperty requires a setter for ${t}`);if(e.dispatchWizEvent)return o;const a={configurable:!0,enumerable:!0,set(e){if(""===n){const e=i.getPropertyOptions(t);n="string"==typeof e.attribute?e.attribute:t}this.hasAttribute(n)&&this.removeAttribute(n),r.set.call(this,e)}};return r.get&&(a.get=function(){return r.get.call(this)}),a}(e,t,o);throw new Error("@ariaProperty only supports TypeScript Decorators")}go.styles=[mo],go=a([ye("mwc-ripple")],go);class vo{constructor(e){this.startPress=t=>{e().then((e=>{e&&e.startPress(t)}))},this.endPress=()=>{e().then((e=>{e&&e.endPress()}))},this.startFocus=()=>{e().then((e=>{e&&e.startFocus()}))},this.endFocus=()=>{e().then((e=>{e&&e.endFocus()}))},this.startHover=()=>{e().then((e=>{e&&e.startHover()}))},this.endHover=()=>{e().then((e=>{e&&e.endHover()}))}}}class bo extends ve{constructor(){super(...arguments),this.disabled=!1,this.icon="",this.shouldRenderRipple=!1,this.rippleHandlers=new vo((()=>(this.shouldRenderRipple=!0,this.ripple)))}renderRipple(){return this.shouldRenderRipple?Z`<mwc-ripple .disabled="${this.disabled}" unbounded></mwc-ripple>`:""}focus(){const e=this.buttonElement;e&&(this.rippleHandlers.startFocus(),e.focus())}blur(){const e=this.buttonElement;e&&(this.rippleHandlers.endFocus(),e.blur())}render(){return Z`<button class="mdc-icon-button mdc-icon-button--display-flex" aria-label="${this.ariaLabel||this.icon}" aria-haspopup="${ht(this.ariaHasPopup)}" ?disabled="${this.disabled}" @focus="${this.handleRippleFocus}" @blur="${this.handleRippleBlur}" @mousedown="${this.handleRippleMouseDown}" @mouseenter="${this.handleRippleMouseEnter}" @mouseleave="${this.handleRippleMouseLeave}" @touchstart="${this.handleRippleTouchStart}" @touchend="${this.handleRippleDeactivate}" @touchcancel="${this.handleRippleDeactivate}">${this.renderRipple()} ${this.icon?Z`<i class="material-icons">${this.icon}</i>`:""} <span><slot></slot></span></button>`}handleRippleMouseDown(e){const t=()=>{window.removeEventListener("mouseup",t),this.handleRippleDeactivate()};window.addEventListener("mouseup",t),this.rippleHandlers.startPress(e)}handleRippleTouchStart(e){this.rippleHandlers.startPress(e)}handleRippleDeactivate(){this.rippleHandlers.endPress()}handleRippleMouseEnter(){this.rippleHandlers.startHover()}handleRippleMouseLeave(){this.rippleHandlers.endHover()}handleRippleFocus(){this.rippleHandlers.startFocus()}handleRippleBlur(){this.rippleHandlers.endFocus()}}a([xe({type:Boolean,reflect:!0})],bo.prototype,"disabled",void 0),a([xe({type:String})],bo.prototype,"icon",void 0),a([fo,xe({type:String,attribute:"aria-label"})],bo.prototype,"ariaLabel",void 0),a([fo,xe({type:String,attribute:"aria-haspopup"})],bo.prototype,"ariaHasPopup",void 0),a([Se("button")],bo.prototype,"buttonElement",void 0),a([$e("mwc-ripple")],bo.prototype,"ripple",void 0),a([ke()],bo.prototype,"shouldRenderRipple",void 0),a([_e({passive:!0})],bo.prototype,"handleRippleMouseDown",null),a([_e({passive:!0})],bo.prototype,"handleRippleTouchStart",null);const yo=f`.material-icons{font-family:var(--mdc-icon-font, "Material Icons");font-weight:400;font-style:normal;font-size:var(--mdc-icon-size,24px);line-height:1;letter-spacing:normal;text-transform:none;display:inline-block;white-space:nowrap;word-wrap:normal;direction:ltr;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale;font-feature-settings:"liga"}.mdc-icon-button{font-size:24px;width:48px;height:48px;padding:12px}.mdc-icon-button .mdc-icon-button__focus-ring{display:none}.mdc-icon-button.mdc-ripple-upgraded--background-focused .mdc-icon-button__focus-ring,.mdc-icon-button:not(.mdc-ripple-upgraded):focus .mdc-icon-button__focus-ring{display:block;max-height:48px;max-width:48px}@media screen and (forced-colors:active){.mdc-icon-button.mdc-ripple-upgraded--background-focused .mdc-icon-button__focus-ring,.mdc-icon-button:not(.mdc-ripple-upgraded):focus .mdc-icon-button__focus-ring{pointer-events:none;border:2px solid transparent;border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);height:100%;width:100%}}@media screen and (forced-colors:active)and (forced-colors:active){.mdc-icon-button.mdc-ripple-upgraded--background-focused .mdc-icon-button__focus-ring,.mdc-icon-button:not(.mdc-ripple-upgraded):focus .mdc-icon-button__focus-ring{border-color:CanvasText}}@media screen and (forced-colors:active){.mdc-icon-button.mdc-ripple-upgraded--background-focused .mdc-icon-button__focus-ring::after,.mdc-icon-button:not(.mdc-ripple-upgraded):focus .mdc-icon-button__focus-ring::after{content:"";border:2px solid transparent;border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);height:calc(100% + 4px);width:calc(100% + 4px)}}@media screen and (forced-colors:active)and (forced-colors:active){.mdc-icon-button.mdc-ripple-upgraded--background-focused .mdc-icon-button__focus-ring::after,.mdc-icon-button:not(.mdc-ripple-upgraded):focus .mdc-icon-button__focus-ring::after{border-color:CanvasText}}.mdc-icon-button.mdc-icon-button--reduced-size .mdc-icon-button__ripple{width:40px;height:40px;margin-top:4px;margin-bottom:4px;margin-right:4px;margin-left:4px}.mdc-icon-button.mdc-icon-button--reduced-size.mdc-ripple-upgraded--background-focused .mdc-icon-button__focus-ring,.mdc-icon-button.mdc-icon-button--reduced-size:not(.mdc-ripple-upgraded):focus .mdc-icon-button__focus-ring{max-height:40px;max-width:40px}.mdc-icon-button .mdc-icon-button__touch{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%,-50%)}.mdc-icon-button:disabled{color:rgba(0,0,0,.38);color:var(--mdc-theme-text-disabled-on-light,rgba(0,0,0,.38))}.mdc-icon-button img,.mdc-icon-button svg{width:24px;height:24px}.mdc-icon-button{display:inline-block;position:relative;box-sizing:border-box;border:none;outline:0;background-color:transparent;fill:currentColor;color:inherit;text-decoration:none;cursor:pointer;user-select:none;z-index:0;overflow:visible}.mdc-icon-button .mdc-icon-button__touch{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%,-50%)}.mdc-icon-button:disabled{cursor:default;pointer-events:none}.mdc-icon-button--display-flex{align-items:center;display:inline-flex;justify-content:center}.mdc-icon-button__icon{display:inline-block}.mdc-icon-button__icon.mdc-icon-button__icon--on{display:none}.mdc-icon-button--on .mdc-icon-button__icon{display:none}.mdc-icon-button--on .mdc-icon-button__icon.mdc-icon-button__icon--on{display:inline-block}.mdc-icon-button__link{height:100%;left:0;outline:0;position:absolute;top:0;width:100%}.mdc-icon-button{display:inline-block;position:relative;box-sizing:border-box;border:none;outline:0;background-color:transparent;fill:currentColor;color:inherit;text-decoration:none;cursor:pointer;user-select:none;z-index:0;overflow:visible}.mdc-icon-button .mdc-icon-button__touch{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%,-50%)}.mdc-icon-button:disabled{cursor:default;pointer-events:none}.mdc-icon-button--display-flex{align-items:center;display:inline-flex;justify-content:center}.mdc-icon-button__icon{display:inline-block}.mdc-icon-button__icon.mdc-icon-button__icon--on{display:none}.mdc-icon-button--on .mdc-icon-button__icon{display:none}.mdc-icon-button--on .mdc-icon-button__icon.mdc-icon-button__icon--on{display:inline-block}.mdc-icon-button__link{height:100%;left:0;outline:0;position:absolute;top:0;width:100%}:host{display:inline-block;outline:0}:host([disabled]){pointer-events:none}.mdc-icon-button ::slotted(*),.mdc-icon-button i,.mdc-icon-button img,.mdc-icon-button svg{display:block}:host{--mdc-ripple-color:currentcolor;-webkit-tap-highlight-color:transparent}.mdc-icon-button,:host{vertical-align:top}.mdc-icon-button{width:var(--mdc-icon-button-size,48px);height:var(--mdc-icon-button-size,48px);padding:calc((var(--mdc-icon-button-size,48px) - var(--mdc-icon-size,24px))/ 2)}.mdc-icon-button ::slotted(*),.mdc-icon-button i,.mdc-icon-button img,.mdc-icon-button svg{display:block;width:var(--mdc-icon-size,24px);height:var(--mdc-icon-size,24px)}`;let wo=class extends bo{};wo.styles=[yo],wo=a([ye("mwc-icon-button")],wo);let xo=class extends _t{constructor(){super(...arguments),this.disabled=!1,this.dense=!1}static get styles(){return f`:host{font-size:20px}:host,mwc-icon-button{display:inline-block}mwc-icon-button::part(button){padding:.4em}:host([dense]) mwc-icon-button::part(button){padding:.2em}mo-icon{font-size:inherit}`}get template(){return Z`<mwc-icon-button exportparts="button" ?disabled="${this.disabled}"><slot name="icon"><mo-icon icon="${this.icon}"></mo-icon></slot></mwc-icon-button>`}};a([Pt()],xo.prototype,"icon",void 0),a([Xt()],xo.prototype,"disabled",void 0),a([Pt({type:Boolean,reflect:!0})],xo.prototype,"dense",void 0),xo=a([Ct("mo-icon-button")],xo),wo.elementStyles.push(f`span{display:inline-grid!important}i{display:none!important}button{width:unset!important;height:unset!important;font-size:inherit!important}::slotted(*){width:unset!important;height:unset!important}`),wo.addInitializer((e=>{e.updateComplete.then((()=>e.buttonElement.part.add("button")))}));var ko={ROOT:"mdc-form-field"},Co={LABEL_SELECTOR:".mdc-form-field > label"};const _o=function(e){function t(o){var i=e.call(this,n(n({},t.defaultAdapter),o))||this;return i.click=function(){i.handleClick()},i}return o(t,e),Object.defineProperty(t,"cssClasses",{get:function(){return ko},enumerable:!1,configurable:!0}),Object.defineProperty(t,"strings",{get:function(){return Co},enumerable:!1,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function(){return{activateInputRipple:function(){},deactivateInputRipple:function(){},deregisterInteractionHandler:function(){},registerInteractionHandler:function(){}}},enumerable:!1,configurable:!0}),t.prototype.init=function(){this.adapter.registerInteractionHandler("click",this.click)},t.prototype.destroy=function(){this.adapter.deregisterInteractionHandler("click",this.click)},t.prototype.handleClick=function(){var e=this;this.adapter.activateInputRipple(),requestAnimationFrame((function(){e.adapter.deactivateInputRipple()}))},t}(io);var So,$o;const To=null!==($o=null===(So=window.ShadyDOM)||void 0===So?void 0:So.inUse)&&void 0!==$o&&$o;class Eo extends oo{constructor(){super(...arguments),this.disabled=!1,this.containingForm=null,this.formDataListener=e=>{this.disabled||this.setFormData(e.formData)}}findFormElement(){if(!this.shadowRoot||To)return null;const e=this.getRootNode().querySelectorAll("form");for(const t of Array.from(e))if(t.contains(this))return t;return null}connectedCallback(){var e;super.connectedCallback(),this.containingForm=this.findFormElement(),null===(e=this.containingForm)||void 0===e||e.addEventListener("formdata",this.formDataListener)}disconnectedCallback(){var e;super.disconnectedCallback(),null===(e=this.containingForm)||void 0===e||e.removeEventListener("formdata",this.formDataListener),this.containingForm=null}click(){this.formElement&&!this.disabled&&(this.formElement.focus(),this.formElement.click())}firstUpdated(){super.firstUpdated(),this.shadowRoot&&this.mdcRoot.addEventListener("change",(e=>{this.dispatchEvent(new Event("change",e))}))}}Eo.shadowRootOptions={mode:"open",delegatesFocus:!0},a([xe({type:Boolean})],Eo.prototype,"disabled",void 0);const Ao=e=>(t,o)=>{if(t.constructor._observers){if(!t.constructor.hasOwnProperty("_observers")){const e=t.constructor._observers;t.constructor._observers=new Map,e.forEach(((e,o)=>t.constructor._observers.set(o,e)))}}else{t.constructor._observers=new Map;const e=t.updated;t.updated=function(t){e.call(this,t),t.forEach(((e,t)=>{const o=this.constructor._observers.get(t);void 0!==o&&o.call(this,this[t],e)}))}}t.constructor._observers.set(o,e)};class Do extends oo{constructor(){super(...arguments),this.alignEnd=!1,this.spaceBetween=!1,this.nowrap=!1,this.label="",this.mdcFoundationClass=_o}createAdapter(){return{registerInteractionHandler:(e,t)=>{this.labelEl.addEventListener(e,t)},deregisterInteractionHandler:(e,t)=>{this.labelEl.removeEventListener(e,t)},activateInputRipple:async()=>{const e=this.input;if(e instanceof Eo){const t=await e.ripple;t&&t.startPress()}},deactivateInputRipple:async()=>{const e=this.input;if(e instanceof Eo){const t=await e.ripple;t&&t.endPress()}}}}get input(){var e,t;return null!==(t=null===(e=this.slottedInputs)||void 0===e?void 0:e[0])&&void 0!==t?t:null}render(){const e={"mdc-form-field--align-end":this.alignEnd,"mdc-form-field--space-between":this.spaceBetween,"mdc-form-field--nowrap":this.nowrap};return Z`<div class="mdc-form-field ${lt(e)}"><slot></slot><label class="mdc-label" @click="${this._labelClick}">${this.label}</label></div>`}click(){this._labelClick()}_labelClick(){const e=this.input;e&&(e.focus(),e.click())}}a([xe({type:Boolean})],Do.prototype,"alignEnd",void 0),a([xe({type:Boolean})],Do.prototype,"spaceBetween",void 0),a([xe({type:Boolean})],Do.prototype,"nowrap",void 0),a([xe({type:String}),Ao((async function(e){var t;null===(t=this.input)||void 0===t||t.setAttribute("aria-label",e)}))],Do.prototype,"label",void 0),a([Se(".mdc-form-field")],Do.prototype,"mdcRoot",void 0),a([function(e,t,o){let i,r=e;return"object"==typeof e?(r=e.slot,i=e):i={flatten:t},o?function(e){const{slot:t,selector:o}=null!=e?e:{};return Ce({descriptor:i=>({get(){var i;const r="slot"+(t?`[name=${t}]`:":not([name])"),n=null===(i=this.renderRoot)||void 0===i?void 0:i.querySelector(r),a=null!=n?Ee(n,e):[];return o?a.filter((e=>e.matches(o))):a},enumerable:!0,configurable:!0})})}({slot:r,flatten:t,selector:o}):Ce({descriptor:e=>({get(){var e,t;const o="slot"+(r?`[name=${r}]`:":not([name])"),n=null===(e=this.renderRoot)||void 0===e?void 0:e.querySelector(o);return null!==(t=null==n?void 0:n.assignedNodes(i))&&void 0!==t?t:[]},enumerable:!0,configurable:!0})})}("",!0,"*")],Do.prototype,"slottedInputs",void 0),a([Se("label")],Do.prototype,"labelEl",void 0);const Mo=f`.mdc-form-field{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto,sans-serif;font-family:var(--mdc-typography-body2-font-family,var(--mdc-typography-font-family,Roboto,sans-serif));font-size:.875rem;font-size:var(--mdc-typography-body2-font-size,.875rem);line-height:1.25rem;line-height:var(--mdc-typography-body2-line-height,1.25rem);font-weight:400;font-weight:var(--mdc-typography-body2-font-weight,400);letter-spacing:.0178571429em;letter-spacing:var(--mdc-typography-body2-letter-spacing,.0178571429em);text-decoration:inherit;text-decoration:var(--mdc-typography-body2-text-decoration,inherit);text-transform:inherit;text-transform:var(--mdc-typography-body2-text-transform,inherit);color:rgba(0,0,0,.87);color:var(--mdc-theme-text-primary-on-background,rgba(0,0,0,.87));display:inline-flex;align-items:center;vertical-align:middle}.mdc-form-field>label{margin-left:0;margin-right:auto;padding-left:4px;padding-right:0;order:0}.mdc-form-field>label[dir=rtl],[dir=rtl] .mdc-form-field>label{margin-left:auto;margin-right:0}.mdc-form-field>label[dir=rtl],[dir=rtl] .mdc-form-field>label{padding-left:0;padding-right:4px}.mdc-form-field--nowrap>label{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.mdc-form-field--align-end>label{margin-left:auto;margin-right:0;padding-left:0;padding-right:4px;order:-1}.mdc-form-field--align-end>label[dir=rtl],[dir=rtl] .mdc-form-field--align-end>label{margin-left:0;margin-right:auto}.mdc-form-field--align-end>label[dir=rtl],[dir=rtl] .mdc-form-field--align-end>label{padding-left:4px;padding-right:0}.mdc-form-field--space-between{justify-content:space-between}.mdc-form-field--space-between>label{margin:0}.mdc-form-field--space-between>label[dir=rtl],[dir=rtl] .mdc-form-field--space-between>label{margin:0}:host{display:inline-flex}.mdc-form-field{width:100%}::slotted(*){-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto,sans-serif;font-family:var(--mdc-typography-body2-font-family,var(--mdc-typography-font-family,Roboto,sans-serif));font-size:.875rem;font-size:var(--mdc-typography-body2-font-size,.875rem);line-height:1.25rem;line-height:var(--mdc-typography-body2-line-height,1.25rem);font-weight:400;font-weight:var(--mdc-typography-body2-font-weight,400);letter-spacing:.0178571429em;letter-spacing:var(--mdc-typography-body2-letter-spacing,.0178571429em);text-decoration:inherit;text-decoration:var(--mdc-typography-body2-text-decoration,inherit);text-transform:inherit;text-transform:var(--mdc-typography-body2-text-transform,inherit);color:rgba(0,0,0,.87);color:var(--mdc-theme-text-primary-on-background,rgba(0,0,0,.87))}::slotted(mwc-switch){margin-right:10px}::slotted(mwc-switch[dir=rtl]),[dir=rtl] ::slotted(mwc-switch){margin-left:10px}`;let Io=class extends Do{};Io.styles=[Mo],Io=a([ye("mwc-formfield")],Io);class Po extends Eo{constructor(){super(...arguments),this.checked=!1,this.indeterminate=!1,this.disabled=!1,this.name="",this.value="on",this.reducedTouchTarget=!1,this.animationClass="",this.shouldRenderRipple=!1,this.focused=!1,this.mdcFoundationClass=void 0,this.mdcFoundation=void 0,this.rippleElement=null,this.rippleHandlers=new vo((()=>(this.shouldRenderRipple=!0,this.ripple.then((e=>this.rippleElement=e)),this.ripple)))}createAdapter(){return{}}update(e){const t=e.get("indeterminate"),o=e.get("checked"),i=e.get("disabled");if(void 0!==t||void 0!==o||void 0!==i){const e=this.calculateAnimationStateName(!!o,!!t,!!i),r=this.calculateAnimationStateName(this.checked,this.indeterminate,this.disabled);this.animationClass=`${e}-${r}`}super.update(e)}calculateAnimationStateName(e,t,o){return o?"disabled":t?"indeterminate":e?"checked":"unchecked"}renderRipple(){return this.shouldRenderRipple?this.renderRippleTemplate():""}renderRippleTemplate(){return Z`<mwc-ripple .disabled="${this.disabled}" unbounded></mwc-ripple>`}render(){const e=this.indeterminate||this.checked,t={"mdc-checkbox--disabled":this.disabled,"mdc-checkbox--selected":e,"mdc-checkbox--touch":!this.reducedTouchTarget,"mdc-ripple-upgraded--background-focused":this.focused,"mdc-checkbox--anim-checked-indeterminate":"checked-indeterminate"==this.animationClass,"mdc-checkbox--anim-checked-unchecked":"checked-unchecked"==this.animationClass,"mdc-checkbox--anim-indeterminate-checked":"indeterminate-checked"==this.animationClass,"mdc-checkbox--anim-indeterminate-unchecked":"indeterminate-unchecked"==this.animationClass,"mdc-checkbox--anim-unchecked-checked":"unchecked-checked"==this.animationClass,"mdc-checkbox--anim-unchecked-indeterminate":"unchecked-indeterminate"==this.animationClass},o=this.indeterminate?"mixed":void 0;return Z`<div class="mdc-checkbox mdc-checkbox--upgraded ${lt(t)}"><input type="checkbox" class="mdc-checkbox__native-control" name="${ht(this.name)}" aria-checked="${ht(o)}" aria-label="${ht(this.ariaLabel)}" aria-labelledby="${ht(this.ariaLabelledBy)}" aria-describedby="${ht(this.ariaDescribedBy)}" data-indeterminate="${this.indeterminate?"true":"false"}" ?disabled="${this.disabled}" .indeterminate="${this.indeterminate}" .checked="${this.checked}" .value="${this.value}" @change="${this.handleChange}" @focus="${this.handleFocus}" @blur="${this.handleBlur}" @mousedown="${this.handleRippleMouseDown}" @mouseenter="${this.handleRippleMouseEnter}" @mouseleave="${this.handleRippleMouseLeave}" @touchstart="${this.handleRippleTouchStart}" @touchend="${this.handleRippleDeactivate}" @touchcancel="${this.handleRippleDeactivate}"><div class="mdc-checkbox__background" @animationend="${this.resetAnimationClass}"><svg class="mdc-checkbox__checkmark" viewBox="0 0 24 24"><path class="mdc-checkbox__checkmark-path" fill="none" d="M1.73,12.91 8.1,19.28 22.79,4.59"></path></svg><div class="mdc-checkbox__mixedmark"></div></div>${this.renderRipple()}</div>`}setFormData(e){this.name&&this.checked&&e.append(this.name,this.value)}handleFocus(){this.focused=!0,this.handleRippleFocus()}handleBlur(){this.focused=!1,this.handleRippleBlur()}handleRippleMouseDown(e){const t=()=>{window.removeEventListener("mouseup",t),this.handleRippleDeactivate()};window.addEventListener("mouseup",t),this.rippleHandlers.startPress(e)}handleRippleTouchStart(e){this.rippleHandlers.startPress(e)}handleRippleDeactivate(){this.rippleHandlers.endPress()}handleRippleMouseEnter(){this.rippleHandlers.startHover()}handleRippleMouseLeave(){this.rippleHandlers.endHover()}handleRippleFocus(){this.rippleHandlers.startFocus()}handleRippleBlur(){this.rippleHandlers.endFocus()}handleChange(){this.checked=this.formElement.checked,this.indeterminate=this.formElement.indeterminate}resetAnimationClass(){this.animationClass=""}get isRippleActive(){var e;return(null===(e=this.rippleElement)||void 0===e?void 0:e.isActive)||!1}}a([Se(".mdc-checkbox")],Po.prototype,"mdcRoot",void 0),a([Se("input")],Po.prototype,"formElement",void 0),a([xe({type:Boolean,reflect:!0})],Po.prototype,"checked",void 0),a([xe({type:Boolean})],Po.prototype,"indeterminate",void 0),a([xe({type:Boolean,reflect:!0})],Po.prototype,"disabled",void 0),a([xe({type:String,reflect:!0})],Po.prototype,"name",void 0),a([xe({type:String})],Po.prototype,"value",void 0),a([fo,xe({type:String,attribute:"aria-label"})],Po.prototype,"ariaLabel",void 0),a([fo,xe({type:String,attribute:"aria-labelledby"})],Po.prototype,"ariaLabelledBy",void 0),a([fo,xe({type:String,attribute:"aria-describedby"})],Po.prototype,"ariaDescribedBy",void 0),a([xe({type:Boolean})],Po.prototype,"reducedTouchTarget",void 0),a([ke()],Po.prototype,"animationClass",void 0),a([ke()],Po.prototype,"shouldRenderRipple",void 0),a([ke()],Po.prototype,"focused",void 0),a([$e("mwc-ripple")],Po.prototype,"ripple",void 0),a([_e({passive:!0})],Po.prototype,"handleRippleTouchStart",null);const Ro=f`.mdc-checkbox{padding:calc((40px - 18px)/ 2);padding:calc((var(--mdc-checkbox-ripple-size,40px) - 18px)/ 2);margin:calc((40px - 40px)/ 2);margin:calc((var(--mdc-checkbox-touch-target-size,40px) - 40px)/ 2)}.mdc-checkbox .mdc-checkbox__ripple::after,.mdc-checkbox .mdc-checkbox__ripple::before{background-color:#000;background-color:var(--mdc-ripple-color,#000)}.mdc-checkbox.mdc-ripple-surface--hover .mdc-checkbox__ripple::before,.mdc-checkbox:hover .mdc-checkbox__ripple::before{opacity:.04;opacity:var(--mdc-ripple-hover-opacity,.04)}.mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__ripple::before,.mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__ripple::before{transition-duration:75ms;opacity:.12;opacity:var(--mdc-ripple-focus-opacity,.12)}.mdc-checkbox:not(.mdc-ripple-upgraded) .mdc-checkbox__ripple::after{transition:opacity 150ms linear}.mdc-checkbox:not(.mdc-ripple-upgraded):active .mdc-checkbox__ripple::after{transition-duration:75ms;opacity:.12;opacity:var(--mdc-ripple-press-opacity,.12)}.mdc-checkbox.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.12)}.mdc-checkbox.mdc-checkbox--selected .mdc-checkbox__ripple::after,.mdc-checkbox.mdc-checkbox--selected .mdc-checkbox__ripple::before{background-color:#018786;background-color:var(--mdc-ripple-color,var(--mdc-theme-secondary,#018786))}.mdc-checkbox.mdc-checkbox--selected.mdc-ripple-surface--hover .mdc-checkbox__ripple::before,.mdc-checkbox.mdc-checkbox--selected:hover .mdc-checkbox__ripple::before{opacity:.04;opacity:var(--mdc-ripple-hover-opacity,.04)}.mdc-checkbox.mdc-checkbox--selected.mdc-ripple-upgraded--background-focused .mdc-checkbox__ripple::before,.mdc-checkbox.mdc-checkbox--selected:not(.mdc-ripple-upgraded):focus .mdc-checkbox__ripple::before{transition-duration:75ms;opacity:.12;opacity:var(--mdc-ripple-focus-opacity,.12)}.mdc-checkbox.mdc-checkbox--selected:not(.mdc-ripple-upgraded) .mdc-checkbox__ripple::after{transition:opacity 150ms linear}.mdc-checkbox.mdc-checkbox--selected:not(.mdc-ripple-upgraded):active .mdc-checkbox__ripple::after{transition-duration:75ms;opacity:.12;opacity:var(--mdc-ripple-press-opacity,.12)}.mdc-checkbox.mdc-checkbox--selected.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.12)}.mdc-checkbox.mdc-ripple-upgraded--background-focused.mdc-checkbox--selected .mdc-checkbox__ripple::after,.mdc-checkbox.mdc-ripple-upgraded--background-focused.mdc-checkbox--selected .mdc-checkbox__ripple::before{background-color:#018786;background-color:var(--mdc-ripple-color,var(--mdc-theme-secondary,#018786))}.mdc-checkbox .mdc-checkbox__background{top:calc((40px - 18px)/ 2);top:calc((var(--mdc-checkbox-ripple-size,40px) - 18px)/ 2);left:calc((40px - 18px)/ 2);left:calc((var(--mdc-checkbox-ripple-size,40px) - 18px)/ 2)}.mdc-checkbox .mdc-checkbox__native-control{top:calc((40px - 40px)/ 2);top:calc((40px - var(--mdc-checkbox-touch-target-size,40px))/ 2);right:calc((40px - 40px)/ 2);right:calc((40px - var(--mdc-checkbox-touch-target-size,40px))/ 2);left:calc((40px - 40px)/ 2);left:calc((40px - var(--mdc-checkbox-touch-target-size,40px))/ 2);width:40px;width:var(--mdc-checkbox-touch-target-size,40px);height:40px;height:var(--mdc-checkbox-touch-target-size,40px)}.mdc-checkbox .mdc-checkbox__native-control:enabled:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background{border-color:rgba(0,0,0,.54);border-color:var(--mdc-checkbox-unchecked-color,rgba(0,0,0,.54));background-color:transparent}.mdc-checkbox .mdc-checkbox__native-control:enabled:checked~.mdc-checkbox__background,.mdc-checkbox .mdc-checkbox__native-control:enabled:indeterminate~.mdc-checkbox__background,.mdc-checkbox .mdc-checkbox__native-control[data-indeterminate=true]:enabled~.mdc-checkbox__background{border-color:#018786;border-color:var(--mdc-checkbox-checked-color,var(--mdc-theme-secondary,#018786));background-color:#018786;background-color:var(--mdc-checkbox-checked-color,var(--mdc-theme-secondary,#018786))}@keyframes mdc-checkbox-fade-in-background-8A000000FF01878600000000FF018786{0%{border-color:rgba(0,0,0,.54);border-color:var(--mdc-checkbox-unchecked-color,rgba(0,0,0,.54));background-color:transparent}50%{border-color:#018786;border-color:var(--mdc-checkbox-checked-color,var(--mdc-theme-secondary,#018786));background-color:#018786;background-color:var(--mdc-checkbox-checked-color,var(--mdc-theme-secondary,#018786))}}@keyframes mdc-checkbox-fade-out-background-8A000000FF01878600000000FF018786{0%,80%{border-color:#018786;border-color:var(--mdc-checkbox-checked-color,var(--mdc-theme-secondary,#018786));background-color:#018786;background-color:var(--mdc-checkbox-checked-color,var(--mdc-theme-secondary,#018786))}100%{border-color:rgba(0,0,0,.54);border-color:var(--mdc-checkbox-unchecked-color,rgba(0,0,0,.54));background-color:transparent}}.mdc-checkbox.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mdc-checkbox.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-in-background-8A000000FF01878600000000FF018786}.mdc-checkbox.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mdc-checkbox.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-out-background-8A000000FF01878600000000FF018786}.mdc-checkbox .mdc-checkbox__native-control[disabled]:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background{border-color:rgba(0,0,0,.38);border-color:var(--mdc-checkbox-disabled-color,rgba(0,0,0,.38));background-color:transparent}.mdc-checkbox .mdc-checkbox__native-control[data-indeterminate=true][disabled]~.mdc-checkbox__background,.mdc-checkbox .mdc-checkbox__native-control[disabled]:checked~.mdc-checkbox__background,.mdc-checkbox .mdc-checkbox__native-control[disabled]:indeterminate~.mdc-checkbox__background{border-color:transparent;background-color:rgba(0,0,0,.38);background-color:var(--mdc-checkbox-disabled-color,rgba(0,0,0,.38))}.mdc-checkbox .mdc-checkbox__native-control:enabled~.mdc-checkbox__background .mdc-checkbox__checkmark{color:#fff;color:var(--mdc-checkbox-ink-color,#fff)}.mdc-checkbox .mdc-checkbox__native-control:enabled~.mdc-checkbox__background .mdc-checkbox__mixedmark{border-color:#fff;border-color:var(--mdc-checkbox-ink-color,#fff)}.mdc-checkbox .mdc-checkbox__native-control:disabled~.mdc-checkbox__background .mdc-checkbox__checkmark{color:#fff;color:var(--mdc-checkbox-ink-color,#fff)}.mdc-checkbox .mdc-checkbox__native-control:disabled~.mdc-checkbox__background .mdc-checkbox__mixedmark{border-color:#fff;border-color:var(--mdc-checkbox-ink-color,#fff)}.mdc-touch-target-wrapper{display:inline}@keyframes mdc-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:29.7833385}50%{animation-timing-function:cubic-bezier(0,0,.2,1)}100%{stroke-dashoffset:0}}@keyframes mdc-checkbox-unchecked-indeterminate-mixedmark{0%,68.2%{transform:scaleX(0)}68.2%{animation-timing-function:cubic-bezier(0,0,0,1)}100%{transform:scaleX(1)}}@keyframes mdc-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(.4,0,1,1);opacity:1;stroke-dashoffset:0}to{opacity:0;stroke-dashoffset:-29.7833385}}@keyframes mdc-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0,0,.2,1);transform:rotate(0);opacity:1}to{transform:rotate(45deg);opacity:0}}@keyframes mdc-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(.14,0,0,1);transform:rotate(45deg);opacity:0}to{transform:rotate(360deg);opacity:1}}@keyframes mdc-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:mdc-animation-deceleration-curve-timing-function;transform:rotate(-45deg);opacity:0}to{transform:rotate(0);opacity:1}}@keyframes mdc-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(.14,0,0,1);transform:rotate(0);opacity:1}to{transform:rotate(315deg);opacity:0}}@keyframes mdc-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;transform:scaleX(1);opacity:1}100%,32.8%{transform:scaleX(0);opacity:0}}.mdc-checkbox{display:inline-block;position:relative;flex:0 0 18px;box-sizing:content-box;width:18px;height:18px;line-height:0;white-space:nowrap;cursor:pointer;vertical-align:bottom}.mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__focus-ring,.mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__focus-ring{pointer-events:none;border:2px solid transparent;border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);height:100%;width:100%}@media screen and (forced-colors:active){.mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__focus-ring,.mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__focus-ring{border-color:CanvasText}}.mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__focus-ring::after,.mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__focus-ring::after{content:"";border:2px solid transparent;border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors:active){.mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__focus-ring::after,.mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__focus-ring::after{border-color:CanvasText}}@media all and (-ms-high-contrast:none){.mdc-checkbox .mdc-checkbox__focus-ring{display:none}}@media screen and (forced-colors:active),(-ms-high-contrast:active){.mdc-checkbox__mixedmark{margin:0 1px}}.mdc-checkbox--disabled{cursor:default;pointer-events:none}.mdc-checkbox__background{display:inline-flex;position:absolute;align-items:center;justify-content:center;box-sizing:border-box;width:18px;height:18px;border:2px solid currentColor;border-radius:2px;background-color:transparent;pointer-events:none;will-change:background-color,border-color;transition:background-color 90ms 0s cubic-bezier(.4,0,.6,1),border-color 90ms 0s cubic-bezier(.4,0,.6,1)}.mdc-checkbox__checkmark{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;opacity:0;transition:opacity 180ms 0s cubic-bezier(.4,0,.6,1)}.mdc-checkbox--upgraded .mdc-checkbox__checkmark{opacity:1}.mdc-checkbox__checkmark-path{transition:stroke-dashoffset 180ms 0s cubic-bezier(.4,0,.6,1);stroke:currentColor;stroke-width:3.12px;stroke-dashoffset:29.7833385;stroke-dasharray:29.7833385}.mdc-checkbox__mixedmark{width:100%;height:0;transform:scaleX(0) rotate(0);border-width:1px;border-style:solid;opacity:0;transition:opacity 90ms 0s cubic-bezier(.4,0,.6,1),transform 90ms 0s cubic-bezier(.4,0,.6,1)}.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__background,.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__background,.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__background,.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__background{animation-duration:180ms;animation-timing-function:linear}.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__checkmark-path{animation:mdc-checkbox-unchecked-checked-checkmark-path 180ms linear 0s;transition:none}.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__mixedmark{animation:mdc-checkbox-unchecked-indeterminate-mixedmark 90ms linear 0s;transition:none}.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__checkmark-path{animation:mdc-checkbox-checked-unchecked-checkmark-path 90ms linear 0s;transition:none}.mdc-checkbox--anim-checked-indeterminate .mdc-checkbox__checkmark{animation:mdc-checkbox-checked-indeterminate-checkmark 90ms linear 0s;transition:none}.mdc-checkbox--anim-checked-indeterminate .mdc-checkbox__mixedmark{animation:mdc-checkbox-checked-indeterminate-mixedmark 90ms linear 0s;transition:none}.mdc-checkbox--anim-indeterminate-checked .mdc-checkbox__checkmark{animation:mdc-checkbox-indeterminate-checked-checkmark .5s linear 0s;transition:none}.mdc-checkbox--anim-indeterminate-checked .mdc-checkbox__mixedmark{animation:mdc-checkbox-indeterminate-checked-mixedmark .5s linear 0s;transition:none}.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__mixedmark{animation:mdc-checkbox-indeterminate-unchecked-mixedmark .3s linear 0s;transition:none}.mdc-checkbox__native-control:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background,.mdc-checkbox__native-control[data-indeterminate=true]~.mdc-checkbox__background{transition:border-color 90ms 0s cubic-bezier(0,0,.2,1),background-color 90ms 0s cubic-bezier(0,0,.2,1)}.mdc-checkbox__native-control:checked~.mdc-checkbox__background .mdc-checkbox__checkmark-path,.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background .mdc-checkbox__checkmark-path,.mdc-checkbox__native-control[data-indeterminate=true]~.mdc-checkbox__background .mdc-checkbox__checkmark-path{stroke-dashoffset:0}.mdc-checkbox__native-control{position:absolute;margin:0;padding:0;opacity:0;cursor:inherit}.mdc-checkbox__native-control:disabled{cursor:default;pointer-events:none}.mdc-checkbox--touch{margin:calc((48px - 40px)/ 2);margin:calc((var(--mdc-checkbox-state-layer-size,48px) - var(--mdc-checkbox-state-layer-size,40px))/ 2)}.mdc-checkbox--touch .mdc-checkbox__native-control{top:calc((40px - 48px)/ 2);top:calc((var(--mdc-checkbox-state-layer-size,40px) - var(--mdc-checkbox-state-layer-size,48px))/ 2);right:calc((40px - 48px)/ 2);right:calc((var(--mdc-checkbox-state-layer-size,40px) - var(--mdc-checkbox-state-layer-size,48px))/ 2);left:calc((40px - 48px)/ 2);left:calc((var(--mdc-checkbox-state-layer-size,40px) - var(--mdc-checkbox-state-layer-size,48px))/ 2);width:48px;width:var(--mdc-checkbox-state-layer-size,48px);height:48px;height:var(--mdc-checkbox-state-layer-size,48px)}.mdc-checkbox__native-control:checked~.mdc-checkbox__background .mdc-checkbox__checkmark{transition:opacity 180ms 0s cubic-bezier(0,0,.2,1),transform 180ms 0s cubic-bezier(0,0,.2,1);opacity:1}.mdc-checkbox__native-control:checked~.mdc-checkbox__background .mdc-checkbox__mixedmark{transform:scaleX(1) rotate(-45deg)}.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background .mdc-checkbox__checkmark,.mdc-checkbox__native-control[data-indeterminate=true]~.mdc-checkbox__background .mdc-checkbox__checkmark{transform:rotate(45deg);opacity:0;transition:opacity 90ms 0s cubic-bezier(.4,0,.6,1),transform 90ms 0s cubic-bezier(.4,0,.6,1)}.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background .mdc-checkbox__mixedmark,.mdc-checkbox__native-control[data-indeterminate=true]~.mdc-checkbox__background .mdc-checkbox__mixedmark{transform:scaleX(1) rotate(0);opacity:1}.mdc-checkbox.mdc-checkbox--upgraded .mdc-checkbox__background,.mdc-checkbox.mdc-checkbox--upgraded .mdc-checkbox__checkmark,.mdc-checkbox.mdc-checkbox--upgraded .mdc-checkbox__checkmark-path,.mdc-checkbox.mdc-checkbox--upgraded .mdc-checkbox__mixedmark{transition:none}:host{outline:0;display:inline-flex;-webkit-tap-highlight-color:transparent}:host([checked]),:host([indeterminate]){--mdc-ripple-color:var(--mdc-theme-secondary, #018786)}.mdc-checkbox .mdc-checkbox__background::before{content:none}`;let Fo=class extends Po{};Fo.styles=[Ro],Fo=a([ye("mwc-checkbox")],Fo);let Oo=class extends _t{constructor(){super(...arguments),this.label="",this.disabled=!1,this.checked=!1,this.indeterminate=!1}get value(){return this.indeterminate?"indeterminate":this.checked?"checked":"unchecked"}set value(e){"indeterminate"===e?this.indeterminate=!0:"checked"===e?(this.indeterminate=!1,this.checked=!0):(this.indeterminate=!1,this.checked=!1)}static get styles(){return f`:host{display:inline-flex}mwc-checkbox{--mdc-theme-secondary:var(--mo-checkbox-accent-color, var(--mo-color-accent, #0077c8));--mdc-checkbox-touch-target-size:36px;--mdc-checkbox-ripple-size:36px;--mdc-checkbox-disabled-color:var(--mo-checkbox-disabled-color, var(--mo-color-gray-transparent, rgba(128, 128, 128, 0.5)));--mdc-checkbox-unchecked-color:var(--mo-checkbox-unchecked-color, var(--mo-color-foreground-transparent, rgb(48, 48, 48)));--mdc-checkbox-ink-color:var(--mo-checkbox-ink-color, var(--mo-color-accessible))}mwc-formfield::part(label){padding-inline-start:0;text-align:start;color:var(--mo-color-foreground)}:host([disabled]) mwc-formfield::part(label){color:var(--mo-checkbox-disabled-color,var(--mo-color-gray-transparent,rgba(128,128,128,.5)))}`}get template(){return Z`<mwc-formfield label="${this.label}"><mwc-checkbox reducedTouchTarget ?disabled="${this.disabled}" ?indeterminate="${this.indeterminate}" ?checked="${this.checked}" @change="${this.handleChange.bind(this)}"></mwc-checkbox></mwc-formfield>`}handleChange(e){e.stopImmediatePropagation();const t=e.target;this.checked=t.checked,this.indeterminate=t.indeterminate,this.change.dispatch(this.value)}};a([Ht()],Oo.prototype,"change",void 0),a([Pt()],Oo.prototype,"label",void 0),a([Xt()],Oo.prototype,"disabled",void 0),a([Pt({type:Boolean})],Oo.prototype,"checked",void 0),a([Pt({type:Boolean})],Oo.prototype,"indeterminate",void 0),a([Pt()],Oo.prototype,"value",null),Oo=a([Ct("mo-checkbox")],Oo),Io.addInitializer((async e=>{var t;const o=e;await o.updateComplete,null===(t=o.renderRoot.querySelector("label"))||void 0===t||t.setAttribute("part","label")}));class No{constructor(e,t,o){this.name=e,this.defaultValue=t,this.reviver=o,this.changed=new zt,No.container.add(this)}get value(){const e=window.localStorage.getItem(this.name)??void 0;if(void 0===e)return this.defaultValue;try{return JSON.parse(e,this.reviver)}catch(t){return e}}set value(e){window.localStorage.setItem(this.name,JSON.stringify(e)),this.changed.dispatch(e),No.changed.dispatch(this)}}No.changed=new zt,No.container=new Set;class zo{static get(e){return zo.rules.get(e)}static add(e,...t){t.forEach((t=>zo.rules.set(t,e)))}}zo.rules=new Map,zo.add((()=>0),"ay","bo","cgg","dz","id","ja","ka","kk","km","ko","ky","lo","ms","my","su","th","tt","ug","vi","zh"),zo.add((e=>e>1?1:0),"ak","am","br","fil","fa","fr","gu","ln","mfe","mg","pt","tg","ti","tr","uz"),zo.add((e=>1!==e?1:0),"af","as","az","bg","bn","brx","ca","da","de","el","en","eo","es","et","eu","ff","fi","fo","gl","gu","ha","hi","hu","hy","it","kln","kn","ku","lb","ml","mn","mr","nb","ne","nl","nn","or","pa","ps","pt","rm","rw","sd","se","si","so","sq","sv","sw","ta","te","tk","ur","yo"),zo.add((e=>e%10!=1||e%100==11?1:0),"is"),zo.add((e=>0!==e?1:0),"jv"),zo.add((e=>1===e||e%10==1?0:1),"mk"),zo.add((e=>e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2),"be","bs","hr","lt"),zo.add((e=>1===e?0:e>=2&&e<=4?1:2),"cs"),zo.add((e=>1===e?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2),"pl"),zo.add((e=>e%10==1&&e%100!=11?0:0!==e?1:2),"lv"),zo.add((e=>1===e?0:0===e||e%100>0&&e%100<20?1:2),"ro"),zo.add((e=>1===e?0:2===e?1:8!==e&&11!==e?2:3),"cy"),zo.add((e=>1===e||11===e?0:2===e||12===e?1:e>2&&e<20?2:3),"gd"),zo.add((e=>1===e?0:2===e?1:3===e?2:3),"kw"),zo.add((e=>1===e?0:0===e||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3),"mt"),zo.add((e=>e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0),"sl"),zo.add((e=>e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2),"ru","sr","uk"),zo.add((e=>1===e?0:e>=2&&e<=4?1:2),"sk"),zo.add((e=>1===e?0:2===e?1:e>2&&e<7?2:e>6&&e<11?3:4),"ga"),zo.add((e=>0===e?0:1===e?1:2===e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5),"ar");class Lo{static get currentLanguage(){var e;return(null===(e=window.location.search.split("lang=")[1])||void 0===e?void 0:e.split("&")[0])||Lo.languageCodeStorage.value||navigator.language.split("-")[0]||"en"}static set currentLanguage(e){Lo.languageCodeStorage.value=e,Lo.languageChange.dispatch(e)}static register(e,t){const o="object"==typeof t?new Map(Object.entries(t)):t,i=Lo.dictionariesByLanguageCode.get(e),r=new Map([...null!=i?i:[],...o]);Lo.dictionariesByLanguageCode.set(e,r)}static get currentLanguageDictionary(){return Lo.dictionariesByLanguageCode.get(Lo.currentLanguage)}static localize(e,t){var o;return Lo.currentLanguage===Lo.defaultLanguage||(null===(o=Lo.currentLanguageDictionary)||void 0===o?void 0:o.has(e))||console.warn(`[Localizer] No "${Lo.currentLanguage}" localization found for "${e}".`),Lo.getLocalization(e,t)}static matchLocalizationParameters(e){return[...e.matchAll(Lo.regex)].map((([e,t,o])=>({group:e,key:t,type:o})))}static getLocalization(e,t){var o,i,r,n,a;const s=Lo.matchLocalizationParameters(e),c=e=>s.reduce(((e,o)=>((e,t,o)=>{const i=s.find((e=>e.key===t));return(null==i?void 0:i.group)?e.replace(i.group,o).replace(`\${${i.key}}`,"function"==typeof(null==o?void 0:o.format)?o.format():o):e})(e,o.key,t[o.key])),e),l=null!==(i=null===(o=Lo.currentLanguageDictionary)||void 0===o?void 0:o.get(e))&&void 0!==i?i:e;if(!Array.isArray(l))return c(l);const d=null===(r=s.find((e=>e.type===Lo.pluralityIdentityType)))||void 0===r?void 0:r.key,h=d&&t[d]||0;return c(l[null!==(a=null===(n=zo.get(Lo.currentLanguage))||void 0===n?void 0:n(h))&&void 0!==a?a:0])}static getLocalizationParameter(e,t){Lo.matchLocalizationParameters(e).find((e=>e.key===t))}}Lo.defaultLanguage="en",Lo.pluralityIdentityType="pluralityNumber",Lo.languageCodeStorage=new No("Localizer.Language",void 0),Lo.dictionariesByLanguageCode=new Map,Lo.regex=/\${(.+?)(?::(.+?))?}/g,a([Ht()],Lo,"languageChange",void 0),globalThis.t=Lo.localize;class Ho{static get(e){var t;return null!==(t=Ho.directions.get(e))&&void 0!==t?t:"ltr"}static updateAttributes(){window.document.body.setAttribute("lang",Lo.currentLanguage),window.document.body.setAttribute("dir",Ho.get(Lo.currentLanguage))}static add(e,...t){t.forEach((t=>Ho.directions.set(t,e)))}}Ho.directions=new Map,Ho.add("rtl","ar","hy","az","fa","he","ku","mdv","ur"),Ho.updateAttributes(),Lo.languageChange.subscribe((()=>Ho.updateAttributes()));class Bo extends St{static requestUpdate(){for(const e of Bo.connectedComponents)e.requestUpdate()}constructor(e){super(e),this.host=e}hostConnected(){Bo.connectedComponents.add(this.host)}hostDisconnected(){Bo.connectedComponents.delete(this.host)}}Bo.connectedComponents=new Set,Lo.languageChange.subscribe((()=>Bo.requestUpdate())),$.addInitializer((e=>new Bo(e))),Number.prototype.format=function(e){var t;return Intl.NumberFormat(null!==(t=null==e?void 0:e.language)&&void 0!==t?t:Lo.currentLanguage,Object.assign({maximumFractionDigits:16,minimumFractionDigits:0,useGrouping:!1},e)).format(this||0)};const Uo=["BTC","AFN","EUR","ALL","DZD","USD","AOA","XCD","ARS","AMD","AWG","AUD","AZN","BSD","BHD","BDT","BBD","BYN","BZD","XOF","BMD","INR","BTN","BOB","BOV","BAM","BWP","NOK","BRL","BND","BGN","BIF","CVE","KHR","XAF","CAD","KYD","CLP","CLF","CNY","COP","COU","KMF","CDF","NZD","CRC","CUP","CUC","ANG","CZK","DKK","DJF","DOP","EGP","SVC","ERN","SZL","ETB","FKP","FJD","XPF","GMD","GEL","GHS","GIP","GTQ","GBP","GNF","GYD","HTG","HNL","HKD","HUF","ISK","IDR","XDR","IRR","IQD","ILS","JMD","JPY","JOD","KZT","KES","KPW","KRW","KWD","KGS","LAK","LBP","LSL","ZAR","LRD","LYD","CHF","MOP","MKD","MGA","MWK","MYR","MVR","MRU","MUR","XUA","MXN","MXV","MDL","MNT","MAD","MZN","MMK","NAD","NPR","NIO","NGN","OMR","PKR","PAB","PGK","PYG","PEN","PHP","PLN","QAR","RON","RUB","RWF","SHP","WST","STN","SAR","RSD","SCR","SLL","SGD","XSU","SBD","SOS","SSP","LKR","SDG","SRD","SEK","CHE","CHW","SYP","SLE","TWD","TJS","TZS","THB","TOP","TTD","TND","TRY","TMT","UGX","UAH","AED","USN","UYU","UYI","UYW","UZS","VUV","VES","VED","VND","YER","ZMW","ZWL","XBA","XBB","XBC","XBD","XTS","XXX","XAU","XPD","XPT","XAG"];class Go{constructor(e){if(this.code=e,!Uo.includes(e))throw new Error(`Invalid currency code: ${e}`)}toString(){return this.code}valueOf(){return this.code}get symbol(){var e,t;try{return null!==(t=null===(e=Intl.NumberFormat("de-DE",{style:"currency",currency:this.code,maximumFractionDigits:0}).formatToParts(0).find((e=>"currency"===e.type)))||void 0===e?void 0:e.value)&&void 0!==t?t:this.code}catch(e){return this.code}}}function jo(e){const t=null!=e?e:{},{language:o}=t,i=function(e,t){var o={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(o[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(o[i[r]]=e[i[r]])}return o}(t,["language"]),r=0===Object.keys(i).length;return[null!=o?o:Lo.currentLanguage,r?void 0:i]}(()=>{for(const e of Uo)Object.defineProperty(Go,e,{get:()=>new Go(e)})})(),Number.prototype.formatAsCurrency=function(...e){var t;const o=e[0]instanceof Go||"string"==typeof e[0],[i,r]=[o?e[0]:void 0,o?e[1]:e[0]],n=i?i instanceof Go?i:new Go(i):void 0;return Intl.NumberFormat(null!==(t=null==r?void 0:r.language)&&void 0!==t?t:Lo.currentLanguage,Object.assign({style:n?"currency":"decimal",currency:null==n?void 0:n.code,useGrouping:!0,minimumFractionDigits:2,maximumFractionDigits:2},r)).format(this||0)},Number.prototype.formatAsUnit=function(e,t){var o;return Intl.NumberFormat(null!==(o=null==t?void 0:t.language)&&void 0!==o?o:Lo.currentLanguage,Object.assign({style:"unit",unit:e},t)).format(this||0)},Number.prototype.formatAsPercent=function(e){var t;return Intl.NumberFormat(null!==(t=null==e?void 0:e.language)&&void 0!==t?t:Lo.currentLanguage,Object.assign({style:"percent",useGrouping:!1,minimumFractionDigits:0,maximumFractionDigits:2},e)).format(this/100||0)},String.prototype.toNumber=function(e=Lo.currentLanguage){var t,o,i,r;const n=this.replace(/ /g,""),a=null!==(o=null===(t=Intl.NumberFormat(e).formatToParts(1e3).find((e=>"group"===e.type)))||void 0===t?void 0:t.value)&&void 0!==o?o:"",s=null!==(r=null===(i=Intl.NumberFormat(e).formatToParts(1.1).find((e=>"decimal"===e.type)))||void 0===i?void 0:i.value)&&void 0!==r?r:"",c=parseFloat(n.replace(new RegExp(`\\${a}`,"g"),"").replace(new RegExp(`\\${s}`),"."));return Number.isNaN(c)?void 0:c},Date.prototype.format=function(e){const[t,o]=jo(e);return Intl.DateTimeFormat(t,null!=o?o:{year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:"shortOffset"}).format(this)},Date.prototype.formatAsDate=function(e){const[t,o]=jo(e);return Intl.DateTimeFormat(t,null!=o?o:{year:"numeric",month:"2-digit",day:"2-digit"}).format(this)},Date.prototype.formatAsTime=function(e){const[t,o]=jo(e);return Intl.DateTimeFormat(t,null!=o?o:{hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:"shortOffset"}).format(this)};class Vo extends St{constructor(e,t){super(e),this.host=e,this.slotChangeCallback=t,this.mutationObserver=new MutationObserver(this.handleMutation.bind(this)).observe(this.host,{childList:!0,subtree:!0}),this.handleChange=()=>{var e;this.host.requestUpdate(),null===(e=this.slotChangeCallback)||void 0===e||e.call(this)}}getAssignedNodes(e){var t;const o=null===(t=this.host.shadowRoot)||void 0===t?void 0:t.querySelector(e?`slot[name="${e}"]`:"slot:not([name])");return o?this.extractNodesFromSlot(o):this.extractNodesFromChildren(e)}hasAssignedNodes(e){return this.getAssignedNodes(e).length>0}hasAssignedContent(e){return this.getAssignedNodes(e).some((e=>{var t;return e.nodeType===Node.TEXT_NODE&&(null===(t=e.textContent)||void 0===t?void 0:t.trim())||e.nodeType===Node.ELEMENT_NODE}))}getAssignedElements(e){return this.getAssignedNodes(e).filter((e=>e instanceof Element))}hasAssignedElements(e){return this.getAssignedElements(e).length>0}extractNodesFromSlot(e){return e.assignedNodes().flatMap((e=>e instanceof HTMLSlotElement?this.extractNodesFromSlot(e):[e]))}extractNodesFromChildren(e){return[...this.host.childNodes].filter((e=>{var t;return e instanceof Element||e instanceof Text&&!!(null===(t=e.textContent)||void 0===t?void 0:t.trim())})).filter((t=>t instanceof Element?t.slot===e:!e)).flatMap((e=>e instanceof HTMLSlotElement?e.assignedNodes():[e]))}hostConnected(){var e;null===(e=this.host.shadowRoot)||void 0===e||e.addEventListener("slotchange",this.handleChange)}hostDisconnected(){var e;null===(e=this.host.shadowRoot)||void 0===e||e.removeEventListener("slotchange",this.handleChange)}handleMutation(e){e.some((e=>"childList"===e.type))&&this.handleChange()}}class Yo extends St{constructor(e,t){var o,i,r,n;super(e),this.host=e,this.options=t,this.bubbled=!1,this._focused=!1,this.anchorFocusIn=new Ot(this.host,{type:"focusin",target:null!==(i=null===(o=this.options)||void 0===o?void 0:o.target)&&void 0!==i?i:this.host,listener:e=>{this.bubbled=e.target!==this.host,this.focused=!0}}),this.anchorFocusOut=new Ot(this.host,{type:"focusout",target:null!==(n=null===(r=this.options)||void 0===r?void 0:r.target)&&void 0!==n?n:this.host,listener:e=>{this.bubbled=e.target!==this.host,this.focused=!1}})}get focused(){return this._focused}set focused(e){var t,o;e!==this._focused&&(this._focused=e,null===(o=null===(t=this.options)||void 0===t?void 0:t.handleChange)||void 0===o||o.call(t,e,this.bubbled),this.host.requestUpdate())}}class qo extends _t{constructor(){super(...arguments),this.label="",this.readonly=!1,this.disabled=!1,this.required=!1,this.invalid=!1,this.focused=!1,this.slotController=new Vo(this),this.focusController=new Yo(this,{handleChange:e=>{this.focused=e,e?this.handleFocus():this.handleBlur()}})}firstUpdated(){this.validate()}handleFocus(){}handleBlur(){}handleInput(e,t){null==t||t.stopPropagation(),this.inputValue=e,this.input.dispatch(this.inputValue),this.validate()}handleChange(e,t){null==t||t.stopPropagation(),this.handleInput(e),this.value=e,this.change.dispatch(this.value)}get isPopulated(){return void 0!==this.inputValue}get isActive(){return this.focused}get isDense(){return!1}static get styles(){return f`:host{display:block}mo-field{width:100%}`}get template(){return Z`<mo-field label="${this.label}" ?populated="${this.isPopulated}" ?disabled="${this.disabled}" ?readonly="${this.readonly}" ?required="${this.required}" ?dense="${this.isDense}" ?invalid="${this.invalid}" ?active="${this.isActive}">${this.startSlotTemplate} ${this.inputTemplate} ${this.endSlotTemplate}</mo-field>`}get startSlotTemplate(){return this.slotController.hasAssignedElements("start")?Z`<slot slot="start" name="start"></slot>`:kt}get endSlotTemplate(){return this.slotController.hasAssignedElements("end")?Z`<slot slot="end" name="end"></slot>`:kt}async validate(){const e=await this.checkValidity();this.invalid=!e,this.validityChange.dispatch(e)}}a([Ht()],qo.prototype,"change",void 0),a([Ht()],qo.prototype,"input",void 0),a([Ht()],qo.prototype,"validityChange",void 0),a([Pt({type:Object})],qo.prototype,"value",void 0),a([Pt()],qo.prototype,"label",void 0),a([Pt({type:Boolean})],qo.prototype,"readonly",void 0),a([Pt({type:Boolean})],qo.prototype,"disabled",void 0),a([Pt({type:Boolean})],qo.prototype,"required",void 0),a([Pt({type:Boolean})],qo.prototype,"invalid",void 0),a([Rt()],qo.prototype,"focused",void 0),a([Rt()],qo.prototype,"inputValue",void 0);class Wo extends qo{constructor(){super(...arguments),this.selectOnFocus=!1,this.dense=!1}get isPopulated(){return!!this.inputStringValue}get isDense(){return this.dense}update(e){e.has("value")&&(this.inputStringValue=this.valueToInputValue(this.value)),super.update(e)}handleInput(e,t){this.inputStringValue=this.inputElement.value,super.handleInput(e,t)}handleChange(e,t){super.handleChange(e,t),this.inputStringValue=this.valueToInputValue(e)}handleFocus(){super.handleFocus(),this.selectOnFocus&&this.select()}blur(){this.inputElement.blur()}focus(){this.inputElement.focus()}select(){this.inputElement.select()}setSelectionRange(...e){this.inputElement.setSelectionRange(...e)}setRangeText(...e){this.inputElement.setRangeText(...e)}setCustomValidity(e){this.inputElement.setCustomValidity(e)}checkValidity(){return Promise.resolve(this.inputElement.checkValidity())}reportValidity(){this.inputElement.reportValidity()}}a([Pt({type:Boolean,reflect:!0})],Wo.prototype,"selectOnFocus",void 0),a([Pt({type:Boolean})],Wo.prototype,"dense",void 0),a([Rt()],Wo.prototype,"inputStringValue",void 0),a([$t("[part=input]")],Wo.prototype,"inputElement",void 0);var Zo=i(969),Ko=i.n(Zo);class Xo{constructor(e){var t;this.color=e instanceof Array?e:null===(t=Ko().get(e))||void 0===t?void 0:t.value}get r(){return this.color[0]}get g(){return this.color[1]}get b(){return this.color[2]}get a(){return this.color[3]}get hex(){return Ko().to.hex(this.color)}get rgb(){return Ko().to.rgb(this.color)}get rgbPercent(){return Ko().to.rgb.percent(this.color)}get hsl(){return Ko().to.hsl(this.color)}get hsv(){return Ko().to.hwb(this.color)}get keyword(){return Ko().to.keyword(this.color)}toString(){return this.hex}valueOf(){return this.hex}}class Jo{constructor(...e){this.colors=new Array,this.colors=e.map((e=>e instanceof Xo?e:new Xo(e)))}get medianColor(){const e=this.colors[Math.floor(this.colors.length/2)];if(!e)throw new Error("No colors found");return e}}class Qo{static inject(e,t=document.createElement("style")){return t.innerHTML=e.cssText,document.head.appendChild(t),t}}class ei{}ei.background=new class extends No{constructor(){super("Theme.Background","system"),window.matchMedia("(prefers-color-scheme: dark)").onchange=()=>this.updateAttributeValue(),window.matchMedia("(prefers-color-scheme: light)").onchange=()=>this.updateAttributeValue(),this.updateAttributeValue(),this.changed.subscribe((()=>this.updateAttributeValue()))}get calculatedValue(){return"system"!==this.value?this.value:window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}updateAttributeValue(){document.documentElement.setAttribute("data-theme",this.calculatedValue)}},ei.accent=new class extends No{constructor(){super("Theme.Accent",new Xo("rgb(0, 119, 200)")),this.parseColor=e=>{if("object"==typeof e&&null!==e&&"$type"in e&&"Color"===e.$type&&"color"in e)return new Xo(e.color)},this.parseColorSet=e=>{if("object"==typeof e&&null!==e&&"$type"in e&&"ColorSet"===e.$type&&"colors"in e)return new Jo(...e.colors.map((e=>e.color)))},this.injectCss()}get value(){let e=super.value;return e=this.parseColor(e)||this.parseColorSet(e),e||window.localStorage.removeItem(this.name),e||this.defaultValue}set value(e){e.$type=e instanceof Jo?"ColorSet":"Color",super.value=e,this.injectCss()}get medianColor(){return this.value instanceof Jo?this.value.medianColor:this.value}injectCss(){const e=this.value,t=this.medianColor,o=e instanceof Jo?e.colors[0]:e,i=e instanceof Jo?e.colors[1]:e,r=e instanceof Jo?e.colors[2]:e;this.styleElement=Qo.inject(f`:root{--mo-color-accent-base-r:${g(null==t?void 0:t.r)}--mo-color-accent-base-g:${g(null==t?void 0:t.g)}--mo-color-accent-base-b:${g(null==t?void 0:t.b)}--mo-color-accent-gradient-1:${g(null==o?void 0:o.rgb)}--mo-color-accent-gradient-2:${g(null==i?void 0:i.rgb)}--mo-color-accent-gradient-3:${g(null==r?void 0:r.rgb)}}`,this.styleElement)}},Qo.inject(f`@import url(https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap);*{font-weight:400;box-sizing:border-box}html{width:100%;height:100%;font-family:var(--mo-font-family);background-color:var(--mo-color-background);color:var(--mo-color-foreground)}body{height:100%;width:100%;overflow:auto}:root[data-theme=light]{color-scheme:light;--mo-color-background-base:255,255,255;--mo-color-foreground-base:0,0,0;--mo-color-background:rgb(220, 221, 225);--mo-color-foreground:black;--mo-color-foreground-transparent:rgb(48, 48, 48);--mo-color-surface-base:255,255,255;--mo-color-gray-base:121,121,121;--mo-shadow-base:95,81,78}:root[data-theme=dark]{color-scheme:dark;--mo-color-background-base:0,0,0;--mo-color-foreground-base:255,255,255;--mo-color-background:rgb(16, 17, 20);--mo-color-surface-base:42,43,47;--mo-color-foreground:white;--mo-color-foreground-transparent:rgb(220, 220, 220);--mo-color-gray-base:165,165,165;--mo-shadow-base:0,1,3}:root{--mo-font-family:Roboto,-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Oxygen,Ubuntu,Cantarell,'Open Sans','Helvetica Neue',sans-serif;--mo-border-radius:4px;--mo-shadow:rgba(var(--mo-shadow-base), .4) 0 1px 2px 0,rgba(var(--mo-shadow-base), .2) 0 1px 3px 1px;--mo-shadow-deep:0px 5px 5px -3px rgba(var(--mo-shadow-base), 0.2),0px 8px 10px 1px rgba(var(--mo-shadow-base), 0.14),0px 3px 14px 2px rgba(var(--mo-shadow-base), 0.12);--mo-color-on-surface:rgba(var(--mo-color-foreground-base), 0.87);--mo-color-gray:rgb(var(--mo-color-gray-base));--mo-color-gray-transparent:rgba(var(--mo-color-gray-base), 0.5);--mo-color-transparent-gray-alpha:.04;--mo-color-transparent-gray-1:rgba(var(--mo-color-foreground-base), calc(var(--mo-color-transparent-gray-alpha) * 1));--mo-color-transparent-gray-2:rgba(var(--mo-color-foreground-base), calc(var(--mo-color-transparent-gray-alpha) * 2));--mo-color-transparent-gray-3:rgba(var(--mo-color-foreground-base), calc(var(--mo-color-transparent-gray-alpha) * 3));--mo-color-transparent-gray:var(--mo-color-transparent-gray-1);--mo-color-green-base:93,170,96;--mo-color-green:rgb(var(--mo-color-green-base));--mo-color-yellow-base:232,152,35;--mo-color-yellow:rgb(var(--mo-color-yellow-base));--mo-color-red-base:221,61,49;--mo-color-red:rgb(var(--mo-color-red-base));--mo-color-blue-base:0,119,200;--mo-color-accessible-base-value:calc(((((var(--mo-color-accent-base-r) * 299) + (var(--mo-color-accent-base-g) * 587) + (var(--mo-color-accent-base-b) * 114)) / 1000) - 128) * -1000);--mo-color-accessible-base:var(--mo-color-accessible-base-value),var(--mo-color-accessible-base-value),var(--mo-color-accessible-base-value);--mo-color-accessible:rgb(var(--mo-color-accessible-base));--mo-color-accent-base:var(--mo-color-accent-base-r),var(--mo-color-accent-base-g),var(--mo-color-accent-base-b);--mo-color-accent:rgb(var(--mo-color-accent-base));--mo-color-accent-transparent:rgba(var(--mo-color-accent-base), 0.25);--mo-color-accent-gradient:linear-gradient(135deg, rgb(var(--mo-color-accent-gradient-1)), rgb(var(--mo-color-accent-gradient-2)), rgb(var(--mo-color-accent-gradient-3)));--mo-color-accent-gradient-transparent:linear-gradient(135deg, rgba(var(--mo-color-accent-gradient-1), 0.25), rgba(var(--mo-color-accent-gradient-2), 0.25), rgba(var(--mo-color-accent-gradient-3), 0.25));--mo-color-surface:rgb(var(--mo-color-surface-base))}`);class ti extends St{constructor(e){super(e),this.host=e,this.handleChange=()=>{this.setAttribute(),this.host.requestUpdate()}}hostConnected(){this.setAttribute(),ei.accent.changed.subscribe(this.handleChange),ei.background.changed.subscribe(this.handleChange)}hostDisconnected(){ei.accent.changed.unsubscribe(this.handleChange),ei.background.changed.unsubscribe(this.handleChange)}setAttribute(){this.host.setAttribute("data-theme",ei.background.calculatedValue)}}let oi=class extends _t{constructor(){super(...arguments),this.label="",this.readonly=!1,this.disabled=!1,this.required=!1,this.dense=!1,this.populated=!1,this.invalid=!1,this.active=!1,this.slotController=new Vo(this),this.themeController=new ti(this)}static get styles(){return f`:host{--mo-field-label-scale-value-on-focus:0.75;--mo-field-label-scale-on-focus:scale(var(--mo-field-label-scale-value-on-focus));--mo-field-label-translate-value-on-focus:-50%;--mo-field-label-translate-on-focus:translateY(var(--mo-field-label-translate-value-on-focus));--mo-field-label-transform-on-focus:var(--mo-field-label-translate-on-focus) var(--mo-field-label-scale-on-focus);position:relative;overflow:hidden;display:flex;gap:4px;min-width:0;border-start-start-radius:var(--mo-field-border-start-start-radius,var(--mo-border-radius,4px));border-start-end-radius:var(--mo-field-border-start-end-radius,var(--mo-border-radius,4px));box-sizing:border-box;background:var(--mo-field-background-default);gap:6px;height:40px;justify-content:center;align-items:center}:host([data-theme=light]){--mo-field-background-default:rgba(var(--mo-color-foreground-base), 0.09)}:host([data-theme=dark]){--mo-field-background-default:rgba(var(--mo-color-background-base), 0.5)}:host([active]){outline:0}:host([dense]){height:32px;--mo-field-label-scale-value-on-focus:1}:host([disabled]){pointer-events:none;opacity:.5}div{position:relative;flex:1 1 auto;height:100%}div:first-child{padding-inline-start:10px}slot[name=start]:first-child{padding-inline-start:8px}div:last-child{padding-inline-end:var(--mo-field-input-padding-inline-end,10px)}slot[name=end]:last-child{padding-inline-end:8px}slot:not([name])::slotted(*){border:0;width:100%;font-family:inherit;outline:0;padding:.8rem 0 0 0;height:calc(100% - .8rem);color:var(--mo-color-foreground);background-color:transparent;text-align:inherit}:host([dense]) slot:not([name])::slotted(*){padding:0;height:100%}${this.labelStyles}${this.caretStyles}${this.indicatorLineStyles}slot{color:var(--mo-color-gray);display:flex;height:100%;justify-content:center;align-items:center}`}static get labelStyles(){return f`span{position:absolute;top:min(50%,30px);transform:var(--mo-field-label-translate-on-focus);color:var(--mo-color-gray);transition:.1s ease-out;transform-origin:var(--mo-field-label-transform-origin);pointer-events:none;white-space:nowrap;overflow:hidden!important;text-overflow:ellipsis;max-width:100%}:host([dense][populated]) span{visibility:hidden}:host([active]) span,:host([populated]) span{top:14px;transform:var(--mo-field-label-transform-on-focus)}:host([active]) span{color:var(--mo-color-accent)}:host([invalid]) span{color:var(--mo-color-red)}`}static get indicatorLineStyles(){return f`:host{border-bottom:1px solid var(--mo-color-gray-transparent)}:host:after{--mo-field-initial-outline-width:10px;content:'';position:absolute;bottom:-1px;height:2px;inset-inline-start:calc(calc(100% - var(--mo-field-initial-outline-width))/ 2);width:var(--mo-field-initial-outline-width);visibility:hidden;background-color:var(--mo-color-accent);transition:.2s ease all}:host(:focus),:host([active]){border-bottom:1px solid var(--mo-color-accent)}:host([active]):after{visibility:visible;width:100%;inset-inline-start:0}:host([invalid]){border-bottom:1px solid var(--mo-color-red)}:host([invalid]):after{background-color:var(--mo-color-red)}`}static get caretStyles(){return f`::slotted(*){caret-color:var(--mo-color-accent)}:host([readonly]) ::slotted(*){caret-color:transparent}:host([invalid]) ::slotted(*){caret-color:var(--mo-color-red)}`}get template(){return this.style.setProperty("--mo-field-label-transform-origin","rtl"===getComputedStyle(this).direction?"right top":"left top"),Z`${this.slotController.hasAssignedContent("start")?Z`<slot name="start"></slot>`:kt}<div part="container"><span>${this.label} ${this.required?"*":""}</span><slot></slot></div>${this.slotController.hasAssignedContent("end")?Z`<slot name="end"></slot>`:kt}`}};a([Pt({reflect:!0})],oi.prototype,"label",void 0),a([Pt({type:Boolean,reflect:!0})],oi.prototype,"readonly",void 0),a([Pt({type:Boolean,reflect:!0})],oi.prototype,"disabled",void 0),a([Pt({type:Boolean,reflect:!0})],oi.prototype,"required",void 0),a([Pt({type:Boolean,reflect:!0})],oi.prototype,"dense",void 0),a([Pt({type:Boolean,reflect:!0})],oi.prototype,"populated",void 0),a([Pt({type:Boolean,reflect:!0})],oi.prototype,"invalid",void 0),a([Pt({type:Boolean,reflect:!0})],oi.prototype,"active",void 0),oi=a([Ct("mo-field")],oi);let ii=class extends Wo{constructor(){super(...arguments),this.selectOnFocus=!0,this.format=e=>e.format()}valueToInputValue(e){return void 0===e?"":this.format(e)}get inputTemplate(){return Z`<input part="input" type="text" autocomplete="off" inputmode="decimal" ?readonly="${this.readonly}" ?required="${this.required}" ?disabled="${this.disabled}" min="${ht(this.min)}" max="${ht(this.max)}" step="${ht(this.step)}" .value="${ut(this.inputStringValue||"")}" @input="${e=>this.handleInput(this.getValue(!1),e)}" @change="${e=>this.handleChange(this.getValue(!0),e)}">`}getValue(e=!1){const t=this.inputElement.value.toNumber();return void 0===t?void 0:e?this.inRange(t):t}inRange(e){var t,o;return Math.max(Math.min(e,null!==(t=this.max)&&void 0!==t?t:Number.POSITIVE_INFINITY),null!==(o=this.min)&&void 0!==o?o:Number.NEGATIVE_INFINITY)}};a([Pt({type:Number,reflect:!0})],ii.prototype,"value",void 0),a([Pt({type:Number,reflect:!0})],ii.prototype,"min",void 0),a([Pt({type:Number,reflect:!0})],ii.prototype,"max",void 0),a([Pt({type:Number,reflect:!0})],ii.prototype,"step",void 0),ii=a([Ct("mo-field-number")],ii);let ri=class extends ii{constructor(){super(...arguments),this.percentSign="%",this.min=0,this.max=100,this.format=e=>e.format({useGrouping:!1,minimumFractionDigits:0,maximumFractionDigits:2})}static get styles(){return f`${super.styles}span[slot=end]{font-size:20px;font-weight:600;color:var(--mo-color-gray);user-select:none}`}get endSlotTemplate(){return Z`<span slot="end" @click="${()=>this.focus()}">${this.percentSign}</span> ${super.endSlotTemplate}`}};a([Pt()],ri.prototype,"percentSign",void 0),ri=a([Ct("mo-field-percent")],ri);let ni=class extends ii{constructor(){super(...arguments),this.currency=Go.EUR,this.format=e=>e.formatAsCurrency()}get currencySymbolText(){var e;return null!==(e=this.currencySymbol)&&void 0!==e?e:this.currency.symbol}static get styles(){return f`${super.styles}span[slot=end]{font-size:x-large;color:var(--mo-color-gray);user-select:none}`}get endSlotTemplate(){return Z`<span slot="end" @click="${()=>this.focus()}">${this.currencySymbolText}</span> ${super.endSlotTemplate}`}};a([Pt({type:Object})],ni.prototype,"currency",void 0),a([Pt()],ni.prototype,"currencySymbol",void 0),ni=a([Ct("mo-field-currency")],ni);let ai=class extends Wo{constructor(){super(...arguments),this.type="text",this.inputType="text"}valueToInputValue(e){return null!=e?e:""}get inputTemplate(){return Z`<input part="input" inputmode="${this.inputType}" type="${this.type}" ?readonly="${this.readonly}" ?required="${this.required}" ?disabled="${this.disabled}" .value="${ut(this.inputStringValue||"")}" minlength="${ht(this.minLength)}" maxlength="${ht(this.maxLength)}" pattern="${ht(this.pattern)}" autocomplete="${ht(this.autoComplete)}" @input="${e=>this.handleInput(this.inputElement.value,e)}" @change="${e=>this.handleChange(this.inputElement.value,e)}">`}get endSlotTemplate(){return Z`${this.lengthTemplate} ${super.endSlotTemplate}`}get lengthTemplate(){var e,t;if(!this.maxLength)return kt;const o=this.maxLength-(null!==(t=null===(e=this.inputValue)||void 0===e?void 0:e.length)&&void 0!==t?t:0);return Z`<span slot="end" ${Dt({color:"var(--mo-color-gray-transparent)"})}>${o}</span>`}};a([Pt()],ai.prototype,"value",void 0),a([Pt({type:Number})],ai.prototype,"minLength",void 0),a([Pt({type:Number})],ai.prototype,"maxLength",void 0),a([Pt()],ai.prototype,"pattern",void 0),a([Pt()],ai.prototype,"autoComplete",void 0),ai=a([Ct("mo-field-text")],ai);let si=class extends ai{constructor(){super(...arguments),this.type="password",this.autoComplete="current-password"}get lengthTemplate(){return kt}};a([Pt()],si.prototype,"autoComplete",void 0),si=a([Ct("mo-field-password")],si);let ci=class extends ai{constructor(){super(...arguments),this.inputType="search"}get startSlotTemplate(){return Z`<mo-icon slot="start" icon="search" @click="${()=>this.focus()}" ${Dt({color:this.focusController.focused?"var(--mo-color-accent)":"var(--mo-color-gray)"})}></mo-icon>${super.startSlotTemplate}`}get endSlotTemplate(){return Z`<mo-icon-button slot="end" icon="cancel" dense ${Dt({color:"var(--mo-color-gray)",visibility:this.value?"visible":"hidden"})} @click="${()=>this.clear()}"></mo-icon-button>${super.endSlotTemplate}`}clear(){this.value&&(this.handleInput(""),this.handleChange(""))}};ci=a([Ct("mo-field-search")],ci);let li=class extends Wo{valueToInputValue(e){return null!=e?e:""}get inputTemplate(){return Z`<input part="input" type="email" inputmode="email" ?readonly="${this.readonly}" ?required="${this.required}" ?disabled="${this.disabled}" .value="${ut(this.inputStringValue||"")}" @input="${e=>this.handleInput(this.inputElement.value,e)}" @change="${e=>this.handleChange(this.inputElement.value,e)}">`}};a([Pt()],li.prototype,"value",void 0),li=a([Ct("mo-field-email")],li);let di=class extends Wo{valueToInputValue(e){return null!=e?e:""}static get styles(){return f`${super.styles}mo-field{height:auto;transition:none;--mo-field-input-padding-inline-end:0px;align-items:baseline}textarea{margin-top:1.15rem;line-height:1.5rem;font-size:.875rem;width:100%!important;padding:0}`}get inputTemplate(){return Z`<textarea part="input" inputmode="text" type="text" ?readonly="${this.readonly}" ?required="${this.required}" ?disabled="${this.disabled}" .value="${ut(this.inputStringValue||"")}" minlength="${ht(this.minLength)}" maxlength="${ht(this.maxLength)}" rows="${ht(this.rows)}" @input="${e=>this.handleInput(this.inputElement.value,e)}" @change="${e=>this.handleChange(this.inputElement.value,e)}"></textarea>`}get endSlotTemplate(){return Z`${this.lengthTemplate} ${super.endSlotTemplate}`}get lengthTemplate(){var e,t;if(!this.maxLength)return kt;const o=this.maxLength-(null!==(t=null===(e=this.inputValue)||void 0===e?void 0:e.length)&&void 0!==t?t:0);return Z`<span slot="end" ${Dt({color:"var(--mo-color-gray-transparent)"})}>${o}</span>`}};a([Pt()],di.prototype,"value",void 0),a([Pt({type:Number})],di.prototype,"minLength",void 0),a([Pt({type:Number})],di.prototype,"maxLength",void 0),a([Pt({type:Number})],di.prototype,"rows",void 0),di=a([Ct("mo-field-text-area")],di);const hi=36e11,ui=864e11,pi=[1,1e3,1e6,1e9,6e10,hi,ui],mi=[9,6,3];function gi(e){return e<=6}function fi(e){return e>=6}const vi=bi("overflow",{constrain:0,reject:1},0);function bi(e,t,o){const i=function(e,t,o){return(i,r)=>{if(void 0===i){const t=null!=r?r:o;if(void 0===t)throw new RangeError(`Must specify a ${e}`);return t}if(void 0===t[i])throw new RangeError(`Invalid ${e}: ${i}`);return t[i]}}(e,t,o);return(t,o)=>{const r=xi(t);return i(r[e],o)}}function yi(e,t,o,i){if(void 0===e)return t;if(!Number.isFinite(e))throw new RangeError("Number must be finite");e=Math.trunc(e);const r=Math.min(Math.max(e,t),o);if(r!==e&&1===i)throw new RangeError("Invalid overflowed value "+e);return r}function wi(e,t){const o={};for(const i in t)void 0!==e[i]&&(o[i]=t[i](e[i]));return o}function xi(e,t){if(void 0===e&&!t)return{};if(!Ci(e))throw TypeError("options must be an object or undefined");return e}const ki=/object|function/;function Ci(e){return null!==e&&ki.test(typeof e)}const _i=bi("roundingMode",{halfExpand:Math.round,ceil:Math.ceil,trunc:Math.trunc,floor:Math.floor});function Si(){const e=new WeakMap;return[e.get.bind(e),e.set.bind(e)]}function $i(e,t){Object.defineProperties(e.prototype,Ti(t,(e=>({get:e}))))}function Ti(e,t){const o={};for(const i in e)o[i]=t(e[i],i);return o}function Ei(e,t,o){const i={};for(const r of t)i[r]=o(e[r]);return i}function Ai(e,t){const o={};return e.forEach(((e,i)=>{o[e]=t(e,i)})),o}const Di=["nanosecond","microsecond","millisecond","second","minute","hour"],Mi=[...Di,"day","week","month","year"],Ii=Mi.map((e=>e+"s")),Pi=Ai(Mi,((e,t)=>t)),Ri=Ai(Ii,((e,t)=>t));function Fi(e,t,o,i){var r;let n;if(void 0===e){if(void 0===t)throw new RangeError("Unit is required");n=t}else if(n=null!=(r=Pi[e])?r:Ri[e],void 0===n||n<o||n>i)throw new RangeError("Invalid unit "+e);return n}function Oi(e,t,o,i,r,n){var a;const s=xi(e),c=null!=(a=s.roundingIncrement)?a:1,l=Fi(s.smallestUnit,o,i,r),d=_i(s,n?Math.round:Math.trunc);let h=s.largestUnit;"auto"===h&&(h=void 0);const u=Fi(h,t=Math.max(t,l),i,r);if(l>u)throw new RangeError("Bad smallestUnit/largestUnit");if(l<6){const e=pi[l+1],t=pi[l]*c;if(e===t)throw new RangeError("Must not equal larger unit");if(e%t)throw new RangeError("Must divide into larger unit")}return{smallestUnit:l,largestUnit:u,roundingFunc:d,roundingIncrement:c}}function Ni(e,t,o,i){var r;const n=xi("string"==typeof e?{smallestUnit:e}:e,!0),a=null!=(r=n.roundingIncrement)?r:1,s=Fi(n.smallestUnit,void 0,t,o),c=_i(n,Math.round),l=pi[s]*a;if(6===s){if(1!==a)throw new RangeError("When smallestUnit is days, roundingIncrement must be 1")}else{const e=i?ui:pi[s+1];if(!i&&e===l)throw new RangeError("Must not equal larger unit");if(e%l)throw new RangeError("Must divide into larger unit")}return{smallestUnit:s,roundingFunc:c,incNano:l}}const zi=Symbol();function Li(e,t,...o){return t instanceof e?t:e.from(t,...o)}class Hi{toJSON(){return this.toString()}}class Bi extends Hi{valueOf(){throw new Error("Cannot convert object using valueOf")}}const[Ui,Gi]=Si();class ji extends Bi{constructor(e){super(),Gi(this,Object.freeze(e))}getISOFields(){return Ui(this)}}function Vi(e,t){return e<t?-1:e>t?1:0}function Yi(e){return Vi(e,0)}function qi(e,t,o){return o(e/t)*t}function Wi(e){return qi(e,6e10,Zi)}function Zi(e){return Math.round(Math.abs(e))*Yi(e)}function Ki(e,t,o){const i=e.div(t).mult(t),r=e.sub(i).toNumber();return i.add(o(r/t)*t)}function Xi(e,t){return(e%t+t)%t}function Ji(e,t){return er(o=String(e),t,"0")+o;var o}function Qi(e,t,o){return e+er(e,t,o)}function er(e,t,o){return new Array(Math.max(0,t-e.length+1)).join(o)}function tr(e){return e<0?"-":"+"}const or=Math.pow(10,8);class ir{constructor(e,t){this.high=e,this.low=t}sign(){return Yi(this.high)||Yi(this.low)}neg(){return new ir(-this.high||0,-this.low||0)}abs(){return this.sign()<0?this.neg():this}add(e){const[t,o]=ar(e);return sr(this.high+t,this.low+o)}sub(e){const[t,o]=ar(e);return sr(this.high-t,this.low-o)}mult(e){return sr(this.high*e,this.low*e)}div(e){const t=this.high/e;let o=String(t);-1!==o.indexOf("e-")&&(o=t.toFixed(20));const i=o.indexOf(".");let r=0;if(-1!==i){let e=o.substr(i+1);e=Qi(e,8,"0"),e=e.substr(0,8),r=parseInt(e)*(Yi(t)||1)}return sr(Math.trunc(t)||0,Math.trunc(this.low/e)+r)}toNumber(){return this.high*or+this.low}toBigInt(){return BigInt(this.high)*BigInt(or)+BigInt(this.low)}}function rr(e,t){let o,i;if(e instanceof ir)o=e.high,i=e.low;else if("number"==typeof e){if(t)throw new TypeError("Must supply bigint, not number");o=Math.trunc(e/or),i=e%or||0}else if("bigint"==typeof e){const t=BigInt(or);o=Number(e/t),i=Number(e%t||0)}else{if("string"!=typeof e)throw new Error("Invalid type of BigNano");{if((e=e.trim()).match(/\D/))throw new SyntaxError(`Cannot parse ${e} to a BigInt`);const t=e.length-8;o=Number(e.substr(t)),i=Number(e.substr(0,t))}}return new ir(o,i)}function nr(e,t){return Vi(e.high,t.high)||Vi(e.low,t.low)}function ar(e){return"number"==typeof e?[0,e]:[e.high,e.low]}function sr(e,t){let o=t%or||0,i=e+Math.trunc(t/or);const r=Yi(i),n=Yi(o);return n&&r&&n!==r&&(i+=n,o-=or*n),new ir(i,o)}const cr=Ii.concat("sign");function lr(e){return Ei(e,cr,(e=>-e||0))}function dr(e,t){var o,i,r,n,a,s,c,l,d,h;return hr({years:null!=(o=t.years)?o:e.years,months:null!=(i=t.months)?i:e.months,weeks:null!=(r=t.weeks)?r:e.weeks,days:null!=(n=t.days)?n:e.days,hours:null!=(a=t.hours)?a:e.hours,minutes:null!=(s=t.minutes)?s:e.minutes,seconds:null!=(c=t.seconds)?c:e.seconds,milliseconds:null!=(l=t.milliseconds)?l:e.milliseconds,microseconds:null!=(d=t.microseconds)?d:e.microseconds,nanoseconds:null!=(h=t.nanoseconds)?h:e.nanoseconds})}function hr(e){return{...e,sign:ur(e)}}function ur(e){let t=0;for(const o of Ii)if(e[o]){t=Yi(e[o]);break}return t}function pr(e){let t=9;for(;t>0&&!e[Ii[t]];)t--;return t}const mr={isoHour:0,isoMinute:0,isoSecond:0,isoMillisecond:0,isoMicrosecond:0,isoNanosecond:0},gr={hours:0,minutes:0,seconds:0,milliseconds:0,microseconds:0,nanoseconds:0};function fr(e){return{isoHour:e.hour||0,isoMinute:e.minute||0,isoSecond:e.second||0,isoMillisecond:e.millisecond||0,isoMicrosecond:e.microsecond||0,isoNanosecond:e.nanosecond||0}}function vr(e){return rr(ui).mult(e.days).add(br(e))}function br(e){return rr(e.nanoseconds).add(rr(e.microseconds).mult(1e3)).add(rr(e.milliseconds).mult(1e6)).add(rr(e.seconds).mult(1e9)).add(rr(e.minutes).mult(6e10)).add(rr(e.hours).mult(hi))}function yr(e){return e.isoHour*hi+6e10*e.isoMinute+1e9*e.isoSecond+1e6*e.isoMillisecond+1e3*e.isoMicrosecond+e.isoNanosecond}function wr(e,t){let o,i=0,r=0,n=0,a=0,s=0,c=0;switch(t){case 6:o=e.div(ui),i=o.toNumber(),e=e.sub(o.mult(ui));case 5:o=e.div(hi),r=o.toNumber(),e=e.sub(o.mult(hi));case 4:o=e.div(6e10),n=o.toNumber(),e=e.sub(o.mult(6e10));case 3:o=e.div(1e9),a=o.toNumber(),e=e.sub(o.mult(1e9));case 2:o=e.div(1e6),s=o.toNumber(),e=e.sub(o.mult(1e6));case 1:o=e.div(1e3),c=o.toNumber(),e=e.sub(o.mult(1e3))}return hr({years:0,months:0,weeks:0,days:i,hours:r,minutes:n,seconds:a,milliseconds:s,microseconds:c,nanoseconds:e.toNumber()})}function xr(e){const t=Math.floor(e/ui);e-=t*ui;const o=Math.floor(e/hi);e-=o*hi;const i=Math.floor(e/6e10);e-=6e10*i;const r=Math.floor(e/1e9);e-=1e9*r;const n=Math.floor(e/1e6);e-=1e6*n;const a=Math.floor(e/1e3);return[{isoHour:o,isoMinute:i,isoSecond:r,isoMillisecond:n,isoMicrosecond:a,isoNanosecond:e-=1e3*a},t]}const kr={gregory:{bce:-1,ce:0},ethioaa:{era0:0},ethiopic:{era0:0,era1:5500},coptic:{era0:-1,era1:0},roc:{beforeroc:-1,minguo:0},buddhist:{be:0},islamic:{ah:0},indian:{saka:0},persian:{ap:0},japanese:{bce:-1,ce:0,meiji:1867,taisho:1911,showa:1925,heisei:1988,reiwa:2018}};class Cr{constructor(e){this.id=e}monthCode(e,t){return"M"+Ji(e,2)}convertMonthCode(e,t){const o=/L$/.test(e),i=parseInt(e.substr(1));if(o)throw new RangeError("Calendar system doesnt support leap months");return[i,!1]}}function _r(e,t,o,i){var r;let n=null==(r=kr[Sr(e)])?void 0:r[o];if(void 0===n){if(!i)throw new Error("Unkown era "+o);n=0}return(n+t)*(Yi(n)||1)}function Sr(e){return e.split("-")[0]}class $r extends Cr{computeFields(e){const t=Rr(e);return{era:void 0,eraYear:void 0,year:t.isoYear,month:t.isoMonth,day:t.isoDay}}epochMilliseconds(e,t,o){return Ir(e,t,o)}daysInMonth(e,t){return 2===t?this.inLeapYear(e)?29:28:4===t||6===t||9===t||11===t?30:31}monthsInYear(){return 12}inLeapYear(e){return e%4==0&&(e%100!=0||e%400==0)}guessYearForMonthDay(){return Er}normalizeISOYearForMonthDay(){return Er}}const Tr=new $r("iso8601"),Er=1972,Ar=Symbol();function Dr(e){return Mr(e.isoYear,e.isoMonth,e.isoDay,e.isoHour,e.isoMinute,e.isoSecond,e.isoMillisecond,e.isoMicrosecond,e.isoNanosecond)}function Mr(e,t,o,i,r,n,a,s,c){return rr(Ir(e,t,o,i,r,n,a)).mult(1e6).add(1e3*(null!=s?s:0)+(null!=c?c:0))}function Ir(e,t,o,i,r,n,a){const s=Yi(e);let c,l,d=0;const h=e>=0&&e<1e3,u=h?e+1200:e;for(;d<31;d++){c=o-s*d;const e=Date.UTC(u,t-1,c,null!=i?i:0,null!=r?r:0,null!=n?n:0,null!=a?a:0);if(!Hr(e)){l=e+s*d*864e5;break}}return(void 0===l||c<1||c>Tr.daysInMonth(e,t))&&Br(),h&&(l=new Date(l).setUTCFullYear(e)),l}function Pr(e){let t=e.div(1e6),o=e.sub(t.mult(1e6)).toNumber();o<0&&(o+=1e6,t=t.sub(1));const i=Math.floor(o/1e3);return o-=1e3*i,{...Rr(t.toNumber()),isoMicrosecond:i,isoNanosecond:o}}function Rr(e){const[t,o]=Lr(e);return{isoYear:t.getUTCFullYear(),isoMonth:t.getUTCMonth()+1,isoDay:t.getUTCDate()+o,isoHour:t.getUTCHours(),isoMinute:t.getUTCMinutes(),isoSecond:t.getUTCSeconds(),isoMillisecond:t.getUTCMilliseconds()}}function Fr(e){var t;return null!=(t=e[Ar])?t:Dr(e.getISOFields())}function Or(e){return Math.floor(Ir(e,1,1)/1e3)}function Nr(e){return Lr(e.div(1e6).toNumber())[0].getUTCFullYear()}function zr(e,t,o){const[i,r]=Lr(Ir(e,t,o));return Xi(i.getUTCDay()+r,7)||7}function Lr(e){const t=Yi(e);let o,i=0;for(;i<31;i++){const r=new Date(e-t*i*864e5);if(!Hr(r)){o=r;break}}return void 0===o&&Br(),[o,t*i]}function Hr(e){return isNaN(e.valueOf())}function Br(){throw new RangeError("Date outside of supported range")}function Ur(e,t){return Math.round((t-e)/864e5)}function Gr(e,t){return e+864e5*t}function jr(e,t){return!Vr(e,t)&&e.calendar.toString()===t.calendar.toString()}function Vr(e,t){return nr(Dr(e.getISOFields()),Dr(t.getISOFields()))}function Yr(e,t){return Vi(yr(e.getISOFields()),yr(t.getISOFields()))}function qr(e,t){return Vi(e.year,t.year)||Vi(e.month,t.month)||Vi(e.day,t.day)}function Wr(e,t){return nr(e[Ar],t[Ar])}function Zr(e,t,o,i,r){return[e=Number(e),t=yi(t,1,i.monthsInYear(e),r),o=yi(o,1,i.daysInMonth(e,t),r)]}function Kr(e,t){const[o,i,r]=Zr(e.isoYear,e.isoMonth,e.isoDay,Tr,t);return{isoYear:o,isoMonth:i,isoDay:r}}function Xr(e,t){return{...Kr(e,t),...Jr(e,t)}}function Jr({isoHour:e,isoMinute:t,isoSecond:o,isoMillisecond:i,isoMicrosecond:r,isoNanosecond:n},a){return{isoHour:e=yi(e,0,23,a),isoMinute:t=yi(t,0,59,a),isoSecond:o=yi(o,0,59,a),isoMillisecond:i=yi(i,0,999,a),isoMicrosecond:r=yi(r,0,999,a),isoNanosecond:n=yi(n,0,999,a)}}const Qr={era:String,eraYear:Number,year:Number,month:Number,monthCode:String},en={...Qr,day:Number},tn={hour:Number,minute:Number,second:Number,millisecond:Number,microsecond:Number,nanosecond:Number},on={era:String,eraYear:Number,year:Number,month:Number,monthCode:String,day:Number},rn=Ai(Ii,(()=>Number));class nn extends $r{computeFields(e){const t=super.computeFields(e),{year:o}=t;return{...t,era:o<1?"bce":"ce",eraYear:o<1?-(o-1):o}}}const an=bi("calendarName",{auto:0,never:1,always:2},0),sn=bi("disambiguation",{compatible:0,earlier:1,later:2,reject:3},0);function cn(e,t=4){const o=xi(e),i=o.smallestUnit,r=o.fractionalSecondDigits;let n,a=0,s=1;return void 0!==i?(a=Fi(i,void 0,0,t),s=pi[a],n=mi[a]||0):void 0!==r&&"auto"!==r&&(n=yi(r,0,9,1),s=Math.pow(10,9-n)),{smallestUnit:a,fractionalSecondDigits:n,roundingFunc:_i(e,Math.trunc),incNano:s}}const ln=bi("timeZoneName",{auto:0,never:1},0);function dn(e,t){return hn(e)+"T"+pn(e,t)}function hn(e){return un(e)+"-"+Ji(e.isoDay,2)}function un(e){const{isoYear:t}=e;return(t<1e3||t>9999?tr(t)+Ji(Math.abs(t),6):Ji(t,4))+"-"+Ji(e.isoMonth,2)}function pn(e,t){const o=[Ji(e.isoHour,2)];return t.smallestUnit<=4&&(o.push(Ji(e.isoMinute,2)),t.smallestUnit<=3&&o.push(Ji(e.isoSecond,2)+vn(e.isoMillisecond,e.isoMicrosecond,e.isoNanosecond,t.fractionalSecondDigits)[0])),o.join(":")}function mn(e){const[t,o]=xr(Math.abs(e)),i=vn(t.isoMillisecond,t.isoMicrosecond,t.isoNanosecond,void 0)[0];return tr(e)+Ji(t.isoHour+24*o,2)+":"+Ji(t.isoMinute,2)+(t.isoSecond||i?":"+Ji(t.isoSecond,2)+i:"")}function gn(e,t){return e&&(2===t||1!==t&&"iso8601"!==e)?`[u-ca=${e}]`:""}function fn(e){return e.map((([e,t,o])=>o||e?Math.abs(e).toLocaleString("fullwide",{useGrouping:!1})+t:"")).join("")}function vn(e,t,o,i,r,n){let a=rr(e).mult(1e6).add(rr(t).mult(1e3)).add(o);r&&(a=Ki(a,void 0===i?pi[n]:Math.pow(10,9-i),r));const s=a.abs(),c=s.div(1e9);let l=Ji(s.sub(c.mult(1e9)).toNumber(),9);return l=void 0===i?l.replace(/0+$/,""):l.substr(0,i),[l?"."+l:"",c.toNumber()*(a.sign()||1)]}function bn(e){$i(e,{epochNanoseconds(){return this[Ar].toBigInt()},epochMicroseconds(){return this[Ar].div(1e3).toBigInt()},epochMilliseconds(){return this[Ar].div(1e6).toNumber()},epochSeconds(){return this[Ar].div(1e9).toNumber()}})}const yn={calendar:"calendar"};for(const e of Mi)yn[e]="iso"+((wn=e).charAt(0).toUpperCase()+wn.slice(1));var wn;function xn(e,t=[]){$i(e,Ai(t.concat("calendar"),(e=>function(){return this.getISOFields()[yn[e]]})))}const kn=["era","eraYear","year","month","monthCode","daysInMonth","daysInYear","monthsInYear","inLeapYear"],Cn=[...kn,"day","dayOfWeek","dayOfYear","weekOfYear","daysInWeek"];function _n(e,t){$i(e,Ai(t,(e=>function(){const t=this.calendar[e](this);return Object.defineProperty(this,e,{value:t}),t})))}function Sn(e,t){(e.prototype||e)[Symbol.toStringTag]="Temporal."+t}const $n=bi("offset",{prefer:0,use:1,ignore:2,reject:3});function Tn(e,t,o=0){const i=e.getPossibleInstantsFor(t);if(1===i.length)return i[0];if(3===o)throw new RangeError("Ambiguous offset");if(i.length)return i[2===o?1:0];{const i=function(e,t){const o=Fr(t),i=e.getOffsetNanosecondsFor(new Oc(o.sub(ui)));return e.getOffsetNanosecondsFor(new Oc(o.add(ui)))-i}(e,t),r=e.getPossibleInstantsFor(t.add({nanoseconds:i*(1===o?-1:1)}));return r[1===o?0:r.length-1]}}function En({year:e,month:t,day:o},i,r,n){e+=i;const a=yi(t,1,r.monthsInYear(e),n);let s=t===a?o:1;return s=yi(s,1,r.daysInMonth(e,a),n),{year:e,month:a,day:s}}function An({year:e,month:t,day:o},i,r,n){if(i){if(t+=i,i<0)for(;t<1;)t+=r.monthsInYear(--e);else{let o;for(;t>(o=r.monthsInYear(e));)t-=o,e++}o=yi(o,1,r.daysInMonth(e,t),n)}return{year:e,month:t,day:o}}function Dn({isoYear:e,isoMonth:t,isoDay:o},i){if(i){let r=Ir(e,t,o);r=Gr(r,i),({isoYear:e,isoMonth:t,isoDay:o}=Rr(r))}return{isoYear:e,isoMonth:t,isoDay:o}}function Mn(e,t){if(pr(t)>=6)throw new RangeError("Duration cant have units >= days");return e.add(br(t))}function In(e,t,o=3,i){const{offsetNanoseconds:r,timeZone:n,Z:a}=e;if(void 0!==r&&2!==o){if(1===o||a)return Dr(e).sub(r);{const i=Pn(e,r,n,t);if(void 0!==i)return i;if(3===o)throw new RangeError("Mismatching offset/timezone")}}return Tn(n,qs(e),sn(i))[Ar]}function Pn(e,t,o,i){const r=o.getPossibleInstantsFor(qs(e)),n=Dr(e),a=i?Wi(t):t;for(const e of r){const t=e[Ar],o=n.sub(t).toNumber();if((i?Wi(o):o)===a)return t}}function Rn(e){const{timeZone:t}=e,o={...e,...mr,calendar:new xc("iso8601")},i={...Dn(o,1),...mr,calendar:new xc("iso8601")},r=Tn(t,qs(o))[Ar];return Tn(t,qs(i))[Ar].sub(r).toNumber()}const Fn="(\\d{2})(:?(\\d{2})(:?(\\d{2})([.,](\\d{1,9}))?)?)?",On="([+-])"+Fn,Nn="(Z|"+On+")?(\\[([^=\\]]+)\\])?(\\[u-ca=([^\\]]+)\\])?",zn=Vn("([+-]\\d{6}|\\d{4})-?(\\d{2})"+Nn),Ln=Vn("(--)?(\\d{2})-?(\\d{2})"+Nn),Hn=Vn("([+-]\\d{6}|\\d{4})-?(\\d{2})-?(\\d{2})([T ](\\d{2})(:?(\\d{2})(:?(\\d{2})([.,](\\d{1,9}))?)?)?)?"+Nn),Bn=Vn("T?"+Fn+Nn),Un=Vn(On),Gn=/^([-+])?P(\d+Y)?(\d+M)?(\d+W)?(\d+D)?(T((\d+)([.,](\d{1,9}))?H)?((\d+)([.,](\d{1,9}))?M)?((\d+)([.,](\d{1,9}))?S)?)?$/i,jn=/\u2212/g;function Vn(e){return new RegExp(`^${e}$`,"i")}function Yn(e){return e.replace(jn,"-")}function qn(e){const t=Xn(e);if(!t)throw la("dateTime",e);return t}function Wn(e){const t=Jn(e);if(!t)throw la("dateTime",e);return t}function Zn(e){const t=ta(e);if(void 0===t)throw la("timeZone",e);return t}const Kn=/^Z$/i;function Xn(e){const t=Hn.exec(Yn(e));if(t)return function(e){const t=e[11];let o,i=!1;return t&&(i=Kn.test(t),o=i?0:ra(e.slice(12))),{...oa(e),timeZone:e[21],offsetNanoseconds:o,Z:i}}(t.slice(1))}function Jn(e,t,o){const i=Hn.exec(Yn(e));if(i&&(o||!Kn.test(i[12]))&&(!t||i[4]))return oa(i.slice(1))}function Qn(e){const t=zn.exec(Yn(e));if(t)return{calendar:(o=t.slice(1))[14],isoYear:sa(o[0]),isoMonth:sa(o[1]),isoDay:1};var o}function ea(e){const t=Ln.exec(Yn(e));if(t)return{calendar:(o=t.slice(1))[15],isoYear:Er,isoMonth:sa(o[1]),isoDay:sa(o[2])};var o}function ta(e){const t=Un.exec(Yn(e));if(t)return ra(t.slice(1))}function oa(e){return{calendar:e[23],isoYear:sa(e[0]),isoMonth:sa(e[1]),isoDay:sa(e[2]),...ia(e.slice(4))}}function ia(e){const t=aa(e[4]);return{...xr(na(e[6]||""))[0],isoHour:aa(e[0]),isoMinute:aa(e[2]),isoSecond:60===t?59:t}}function ra(e){return("+"===e[0]?1:-1)*function(e){return aa(e[0])*hi+6e10*aa(e[2])+1e9*aa(e[4])+na(e[6]||"")}(e.slice(1))}function na(e){return parseInt(Qi(e,9,"0"))}function aa(e){return parseInt(e||"0")}function sa(e){return parseInt(e||"1")}function ca(e){return void 0===e?void 0:parseInt(e)}function la(e,t){throw new RangeError(`Cannot parse ${e} '${t}'`)}function da(e){return{...e,calendar:void 0===e.calendar?kc():new xc(e.calendar)}}function ha(e){return{...da(e),timeZone:new Ta(e.timeZone)}}class ua{constructor(e){this.id=e}}class pa extends ua{constructor(e,t){super(e),this.offsetNano=t}getPossibleOffsets(){return[this.offsetNano]}getOffset(){return this.offsetNano}getTransition(){}}function ma(e,t){const o={},i=e.formatToParts(t);for(const e of i)o[e.type]=e.value;return o}const ga={bc:"bce",ad:"ce"};function fa(e){return e=e.toLowerCase().normalize("NFD").replace(/[^a-z0-9]/g,""),ga[e]||e}const va=Intl.DateTimeFormat;function ba(e){return[].concat(e||[])}const ya={"Pacific/Apia":{2011:[[wa(13017528e5),-36e12,-396e11],[wa(13168728e5),-396e11,-36e12],[wa(13252392e5),-36e12,504e11]]}};function wa(e){return rr(e).mult(1e6)}const xa=(new Date).getUTCFullYear()+10,ka=[182,91,273];class Ca extends ua{constructor(e){const t=new va("en-GB",{era:"short",year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric",timeZone:e});super(t.resolvedOptions().timeZone),this.format=t,this.yearEndOffsets={},this.transitionsInYear=ya[e]||{}}getPossibleOffsets(e){let t;const o=[this.getTransition(e,-1),this.getTransition(e.sub(1),1)].filter(Boolean);for(const i of o){const[o,r,n]=i,a=e.sub(r),s=e.sub(n);if(nr(o,a)>0&&nr(o,s)>0)return[r];if(!(nr(o,a)<=0&&nr(o,s)<=0))return r<n?[]:[r,n];t=n}return void 0!==t?[t]:[1e9*this.getYearEndOffsetSec(Nr(e))]}getOffset(e){return 1e9*this.getOffsetForEpochSecs(e.div(1e9).toNumber())}getOffsetForEpochSecs(e){const t=ma(this.format,1e3*e);let o=parseInt(t.year);"bce"===fa(t.era)&&(o=-(o-1));const i=Ir(o,parseInt(t.month),parseInt(t.day),parseInt(t.hour),parseInt(t.minute),parseInt(t.second));return Math.floor(i/1e3)-e}getTransition(e,t){let o=Nr(e);if(o>xa){const i=this.getTransitionFrom(o,o+t,t,e);if(i||t>0)return i;o=xa}return this.getTransitionFrom(Math.max(o,1847),t<0?1846:xa,t,e)}getTransitionFrom(e,t,o,i){for(;e!==t;e+=o){let t=this.getTransitionsInYear(e);o<0&&(t=t.slice().reverse());for(const e of t)if(nr(e[0],i)===o)return e}}getYearEndOffsetSec(e){const{yearEndOffsets:t}=this;return t[e]||(t[e]=this.getOffsetForEpochSecs(Or(e+1)-1))}getTransitionsInYear(e){const{transitionsInYear:t}=this;return t[e]||(t[e]=this.computeTransitionsInYear(e))}computeTransitionsInYear(e){const t=this.getYearEndOffsetSec(e-1),o=this.getYearEndOffsetSec(e),i=Or(e)-1,r=Or(e+1)-1;if(t!==o)return[this.searchTransition(i,r,t,o)];const n=this.searchIsland(t,i);return void 0!==n?[this.searchTransition(i,n[0],t,n[1]),this.searchTransition(n[0],r,n[1],o)]:[]}searchTransition(e,t,o,i){for(;t-e>1;){const i=Math.floor(e+(t-e)/2);this.getOffsetForEpochSecs(i)===o?e=i:t=i}return[rr(t).mult(1e9),1e9*o,1e9*i]}searchIsland(e,t){for(const o of ka){const i=t+86400*o,r=this.getOffsetForEpochSecs(i);if(r!==e)return[i,r]}}}const _a={UTC:new pa("UTC",0)},[Sa,$a]=Si();class Ta extends Hi{constructor(e){if(!e)throw new RangeError("Invalid timezone ID");super(),$a(this,function(e){const t=(e=String(e)).toLocaleUpperCase();if(_a[t])return _a[t];const o=ta(e);if(void 0!==o){if(Math.abs(o)>ui)throw new RangeError("Offset out of bounds");return new pa(mn(o),o)}return _a[t]=new Ca(e)}(e))}static from(e){if(Ci(e))return function(e){const t=e.timeZone;return void 0===t?e:Ci(t)&&void 0===t.timeZone?t:new Ta(t)}(e);const t=Xn(String(e));if(t){if(t.timeZone){const e=ha(t);return function(e){const{offsetNanoseconds:t,timeZone:o,Z:i}=e;if(void 0!==t&&!i&&void 0===Pn(e,t,o,!0))throw new RangeError("Mismatching offset/timezone")}(e),e.timeZone}if(t.Z)return new Ta("UTC");if(void 0!==t.offsetNanoseconds)return new Ta(mn(t.offsetNanoseconds))}return new Ta(String(e))}get id(){return this.toString()}getOffsetStringFor(e){return mn(this.getOffsetNanosecondsFor(e))}getOffsetNanosecondsFor(e){const t=Li(Oc,e);return Sa(this).getOffset(t[Ar])}getPlainDateTimeFor(e,t=kc()){const o=Li(Oc,e);return qs({...Pr(o[Ar].add(this.getOffsetNanosecondsFor(o))),calendar:Li(xc,t)})}getInstantFor(e,t){return Tn(this,Li(Ys,e),sn(t))}getPossibleInstantsFor(e){const t=Dr(Li(Ys,e).getISOFields());return Sa(this).getPossibleOffsets(t).map((e=>new Oc(t.sub(e))))}getPreviousTransition(e){const t=Li(Oc,e),o=Sa(this).getTransition(t[Ar],-1);return o?new Oc(o[0]):null}getNextTransition(e){const t=Li(Oc,e),o=Sa(this).getTransition(t[Ar],1);return o?new Oc(o[0]):null}toString(){return Sa(this).id}}function Ea(e){if(void 0===e.timeZone)throw new TypeError("Must specify timeZone");return Li(Ta,e.timeZone)}Sn(Ta,"TimeZone");const Aa=Xa((function(e,t,o){const i=Ua(e,t,o);if(i)return{...i,timeZone:Ea(e),offsetNanoseconds:void 0!==e.offset?Zn(String(e.offset)):void 0}})),Da=Xa(Ua),Ma=Xa(Ga),Ia=Xa((function(e,t){const o=Sc(e),i=Wa(e,Qr,o);if(Ja(i))return o.yearMonthFromFields(i,t)})),Pa=Xa((function(e,t){const o=Sc(e),i=Wa(e,on,o);if(Ja(i))return void 0===e.year&&void 0===e.calendar&&(i.year=Er),o.monthDayFromFields(i,t)})),Ra=Xa(ja),Fa=Xa((function(e,t,o,i){const r=Va(e,t,o,i),n=void 0!==t.offset;if(r||n)return{...r||e.getISOFields(),timeZone:e.timeZone,offsetNanoseconds:n?Zn(String(t.offset)):e.offsetNanoseconds}}),!0),Oa=Xa(Va,!0),Na=Xa(Ya,!0),za=Xa((function(e,t,o){const i=e.calendar;if(Ja(Wa(t,Qr,i))){const r=Ka(e,t,Qr,i);return i.yearMonthFromFields(r,o)}}),!0),La=Xa((function(e,t,o){const i=e.calendar;if(Ja(Wa(t,on,i))){const r=Ka(e,t,on,i);return i.monthDayFromFields(r,o)}}),!0),Ha=Xa(qa,!0),Ba=Xa((function(e){const t=wi(e,rn);if(Ja(t))return t}));function Ua(e,t,o){const i=Ga(e,o),r=ja(e,t);if(i)return{...i.getISOFields(),...r||mr}}function Ga(e,t){const o=Sc(e),i=Wa(e,en,o);if(Ja(i))return o.dateFromFields(i,t)}function ja(e,t){const o=wi(e,tn);if(Ja(o))return Jr(fr(o),t)}function Va(e,t,o,i){const r=Ya(e,t,i),n=qa(e,t,o);if(r||n)return{...e.getISOFields(),...r?r.getISOFields():{},...n}}function Ya(e,t,o){const i=e.calendar,r=Wa(t,en,i);if(Ja(r)){const t=Ka(e,r,en,i);return i.dateFromFields(t,o)}}function qa(e,t,o){const i=wi(t,tn);if(Ja(i))return Jr(fr((r=e,n=i,Ti(tn,((e,t)=>{var o;return null!=(o=n[t])?o:r[t]})))),o);var r,n}function Wa(e,t,o){let i=Object.keys(t);return i=o.fields?Array.prototype.slice.call(o.fields(i)):Object.keys(Za(o,i)),Za(e,i)}function Za(e,t){const o={};for(const i of t)void 0!==e[i]&&(o[i]=e[i]);return o}function Ka(e,t,o,i){const r=Wa(e,o,i);return i.mergeFields?i.mergeFields(r,t):Cc(r,t)}function Xa(e,t){return(...o)=>{if(t){const e=o[1];if(!Ci(e))throw new TypeError("must be object-like");if(void 0!==e.calendar)throw new TypeError("calendar not allowed");if(void 0!==e.timeZone)throw new TypeError("timeZone not allowed")}const i=e(...o);if(!i)throw new TypeError("No valid fields");return i}}function Ja(e){return Object.keys(e).length>0}const Qa=rr(ui).mult(1e8),es=Qa.mult(-1),ts=Qa.add(86399999999999),os=es.sub(86399999999999);function is(e,t){const o=Dr(e);rs(o),gc(o,t)}function rs(e){-1!==nr(e,os)&&1!==nr(e,ts)||Br()}function ns(e,t){const o=ss(yr(e),t),[i,r]=xr(o);return{...Dn(e,r),...i}}function as(e,t){const o=ss(yr(e),t),[i]=xr(o);return i}function ss(e,t){return qi(e,t.incNano,t.roundingFunc)}function cs(e,t,o){return(i,r)=>{const n=ms(e,r)?{}:{...e,...t};return{buildKey:ps(i,r,!1),buildFormat:function(e,t){return new va(i,{calendar:e,timeZone:t||void 0,...n,...r,...o})},buildEpochMilli:ls}}}function ls(e){return e.epochMilliseconds}function ds(e,t,o){return(i,r)=>{const n=ms(e,r)?{}:e;return{buildKey:ps(i,r,o),buildFormat:function(e,o){return new va(i,{calendar:e,...n,...r,...t,timeZone:o,timeZoneName:void 0})},buildEpochMilli:void 0!==r.timeZone?hs.bind(null,new Ta(r.timeZone)):us}}}function hs(e,t){const o=qs({...mr,...t.getISOFields()});return e.getInstantFor(o).epochMilliseconds}function us(e){return Ir((t=e.getISOFields()).isoYear,t.isoMonth,t.isoDay,t.isoHour,t.isoMinute,t.isoSecond,t.isoMillisecond);var t}function ps(e,t,o){var i;const r=null!=(i=t.calendar)?i:function(e){for(const t of e){const e=t.match(/-u-ca-(.*)$/);if(e)return e[1]}}(e),n=t.timeZone;return function(e,t){var i,a,s,c;const l=null==(i=e.calendar)?void 0:i.id,d=null==(a=e.timeZone)?void 0:a.id;if(t){if((null==(s=t.calendar)?void 0:s.id)!==l)throw new RangeError("Mismatching calendar");if((null==(c=t.timeZone)?void 0:c.id)!==d)throw new RangeError("Mismatching timeZone")}if((o||"iso8601"!==l)&&void 0!==l&&void 0!==r&&r!==l)throw new RangeError("Non-iso calendar mismatch");if(void 0!==d&&void 0!==n&&n!==d)throw new RangeError("Given timeZone must agree");return[r||l||"iso8601",n||d||"UTC"]}}function ms(e,t){for(const o in e)if(void 0!==t[o])return!0;return!1}function gs(e,t){e.prototype.toLocaleString=function(e,o){const i=t(ba(e),o||{});return i.buildFormat(...i.buildKey(this)).format(i.buildEpochMilli(this))},e.prototype[zi]=t}function fs(e){return null==e?void 0:e[zi]}function vs(e,t,o,i){if(void 0!==e){if(void 0!==i)throw new RangeError("Partial units must be last unit");return[parseInt(e),void 0!==t?na(t)*(pi[o]/1e9):void 0]}if(void 0!==i){const e=Math.trunc(i/pi[o]);return[e,i-e*pi[o]]}return[void 0,void 0]}const bs=bi("offset",{auto:0,never:1},0);class ys extends ji{constructor(e=0,t=0,o=0,i=0,r=0,n=0){super({...Jr({isoHour:e,isoMinute:t,isoSecond:o,isoMillisecond:i,isoMicrosecond:r,isoNanosecond:n},1),calendar:kc()})}static from(e,t){const o=vi(t);return ws(e instanceof ys?e.getISOFields():"object"==typeof e?Ra(e,o):function(e){let t=function(e){const t=Bn.exec(Yn(e));if(t)return ia(t.slice(1))}(e);if(void 0!==t){if("T"!==e.charAt(0)){const o=Qn(e)||ea(e);o&&function(e){try{return Kr(e,1),!0}catch(e){return!1}}(o)&&(t=void 0)}}else t=Jn(e,!0);if(void 0===t)throw la("time",e);return t}(String(e)))}static compare(e,t){return Yr(Li(ys,e),Li(ys,t))}with(e,t){return ws(Ha(this,e,vi(t)))}add(e){return ks(this,Li(Gs,e))}subtract(e){return ks(this,lr(Li(Gs,e)))}until(e,t){return Cs(this,Li(ys,e),t)}since(e,t){return Cs(Li(ys,e),this,t)}round(e){const t=Ni(e,0,5);return ws(as(this.getISOFields(),t))}equals(e){return!Yr(this,Li(ys,e))}toString(e){const t=cn(e);return pn(as(this.getISOFields(),t),t)}toZonedDateTime(e){const t=Li(Ac,e.plainDate),o=Li(Ta,e.timeZone);return Ms({...t.getISOFields(),...this.getISOFields(),timeZone:o})}toPlainDateTime(e){return Li(Ac,e).toPlainDateTime(this)}}function ws(e){return new ys(e.isoHour,e.isoMinute,e.isoSecond,e.isoMillisecond,e.isoMicrosecond,e.isoNanosecond)}function xs(e){return Li(ys,null!=e?e:{hour:0})}function ks(e,t){return ws(function(e,t){const o=yr(e)+br(t).toNumber(),[i]=xr(o);return i}(e.getISOFields(),t))}function Cs(e,t,o){const i=Oi(o,5,0,0,5);return js(function(e,t,o){return wr(rr(qi(yr(t)-yr(e),pi[o.smallestUnit]*o.roundingIncrement,o.roundingFunc)),o.largestUnit)}(e.getISOFields(),t.getISOFields(),i))}Sn(ys,"PlainTime"),xn(ys,Di),gs(ys,(function(e,t){return{buildKey:()=>["",""],buildFormat:()=>new va(e,{hour:"numeric",minute:"2-digit",second:"2-digit",...t,timeZone:"UTC",timeZoneName:void 0,year:void 0,month:void 0,day:void 0,weekday:void 0}),buildEpochMilli:e=>Math.trunc(yr(e.getISOFields())/1e6)}}));const _s={day:1};class Ss extends ji{constructor(e,t,o=kc(),i=1){const r=Kr({isoYear:e,isoMonth:t,isoDay:i},1),n=Li(xc,o);var a,s;a=r,s=n.toString(),gc(Dr(a),s),super({...r,calendar:n})}static from(e,t){if(vi(t),e instanceof Ss)return $s(e.getISOFields());if("object"==typeof e)return Ia(e,t);const o=function(e){const t=Qn(e)||Jn(e);if(!t)throw la("yearMonth",e);return t}(String(e));return void 0===o.calendar&&(o.isoDay=1),$s(da(o))}static compare(e,t){return Vr(Li(Ss,e),Li(Ss,t))}with(e,t){return za(this,e,t)}add(e,t){return Ts(this,Li(Gs,e),t)}subtract(e,t){return Ts(this,lr(Li(Gs,e)),t)}until(e,t){return Es(this,Li(Ss,e),!1,t)}since(e,t){return Es(this,Li(Ss,e),!0,t)}equals(e){return!Vr(this,Li(Ss,e))}toString(e){const t=this.getISOFields(),o=t.calendar.toString(),i=an(e);return("iso8601"===o?un(t):hn(t))+gn(o,i)}toPlainDate(e){return this.calendar.dateFromFields({year:this.year,month:this.month,day:e.day})}}function $s(e){return new Ss(e.isoYear,e.isoMonth,e.calendar,e.isoDay)}function Ts(e,t,o){return e.toPlainDate({day:t.sign<0?e.daysInMonth:1}).add(t,o).toPlainYearMonth()}function Es(e,t,o,i){return js(Pc(e.toPlainDate(_s),t.toPlainDate(_s),$c(e,t),o,Oi(i,9,8,8,9)))}Sn(Ss,"PlainYearMonth"),xn(Ss),_n(Ss,kn),gs(Ss,ds({year:"numeric",month:"numeric"},{weekday:void 0,day:void 0,hour:void 0,minute:void 0,second:void 0},!0));const As=Symbol();class Ds extends ji{constructor(e,t,o=kc()){const i=Li(Ta,t),r=Li(xc,o),n=rr(e),[a,s]=Is(n,i);is(a,r.toString()),super({...a,calendar:r,timeZone:i,offset:mn(s)}),this[Ar]=n,this[As]=s}static from(e,t){const o=$n(t,3),i=vi(t);if(e instanceof Ds)return new Ds(e.epochNanoseconds,e.timeZone,e.calendar);const r="object"==typeof e;return Ms(r?Aa(e,i,t):ha(qn(String(e))),!r,o,t)}static compare(e,t){return Wr(Li(Ds,e),Li(Ds,t))}get timeZone(){return this.getISOFields().timeZone}get offsetNanoseconds(){return this[As]}get offset(){return this.getISOFields().offset}with(e,t){sn(t);const o=vi(t),i=$n(t,0);return Ms(Fa(this,e,o,t),!1,i,t)}withPlainDate(e){const t=Li(Ac,e),o=t.toPlainDateTime(this),{timeZone:i}=this,r=Tn(i,o);return new Ds(r.epochNanoseconds,i,Tc(this,t))}withPlainTime(e){return Ms({...this.getISOFields(),...void 0===e?mr:Li(ys,e).getISOFields()})}withCalendar(e){return new Ds(this.epochNanoseconds,this.timeZone,e)}withTimeZone(e){return new Ds(this.epochNanoseconds,e,this.calendar)}add(e,t){return Ps(this,Li(Gs,e),t)}subtract(e,t){return Ps(this,lr(Li(Gs,e)),t)}until(e,t){return Fs(this,Li(Ds,e),!1,t)}since(e,t){return Fs(this,Li(Ds,e),!0,t)}round(e){return Rs(this,Ni(e,0,6))}equals(e){return this,jr(this,t=Li(Ds,e))&&this.timeZone.toString()===t.timeZone.toString();var t}startOfDay(){return Ms({...this.getISOFields(),...mr,offsetNanoseconds:this.offsetNanoseconds},!1,0)}get hoursInDay(){return Rn(this.getISOFields())/hi}toString(e){const t=cn(e),o=bs(e),i=ln(e),r=an(e),n=Rs(this,t);return dn(n.getISOFields(),t)+(0===o?mn(Wi(n.offsetNanoseconds)):"")+(a=this.timeZone.toString(),1!==i?`[${a}]`:"")+gn(this.calendar.toString(),r);var a}toPlainYearMonth(){return $s(this.getISOFields())}toPlainMonthDay(){return this.calendar.monthDayFromFields(this)}toPlainDateTime(){return qs(this.getISOFields())}toPlainDate(){return Dc(this.getISOFields())}toPlainTime(){return ws(this.getISOFields())}toInstant(){return new Oc(this.epochNanoseconds)}}function Ms(e,t,o,i){const r=In(e,t,o,i);return new Ds(r,e.timeZone,e.calendar)}function Is(e,t){const o=new Oc(e),i=t.getOffsetNanosecondsFor(o);return[Pr(e.add(i)),i]}function Ps(e,t,o){const i=e.getISOFields(),r=function(e,t,o){const{calendar:i,timeZone:r}=e,n=i.dateAdd(Dc(e),dr(t,gr),o);return Tn(r,qs({...e,...n.getISOFields()}))[Ar].add(br(t))}(i,t,o);return new Ds(r,i.timeZone,i.calendar)}function Rs(e,t){const o=e.getISOFields(),i=function(e,t,o){const{calendar:i,timeZone:r}=e;let n,a,s=yr(e);return 6===o.smallestUnit?(n=mr,a=o.roundingFunc(s/Rn(e))):(s=ss(s,o),[n,a]=xr(s)),In({...Dn(e,a),...n,offsetNanoseconds:t,calendar:i,timeZone:r},!1,0)}(o,e.offsetNanoseconds,t);return new Ds(i,o.timeZone,o.calendar)}function Fs(e,t,o,i){const r=Oi(i,5,0,0,9),{largestUnit:n}=r;if(n>=6&&e.timeZone.id!==t.timeZone.id)throw new Error("Must be same timeZone");return js(Ic(e,t,$c(e,t),o,r))}function Os(e){if(void 0===e)return;if(Ci(e))return e instanceof Ds||e instanceof Ys?e:Li(void 0!==e.timeZone?Ds:Ys,e);if("symbol"==typeof e)throw new TypeError("Incorrect relativeTo type");const t=Xn(String(e));if(t)return void 0!==t.timeZone?Ms(ha(t),!0):qs(da(t));throw new RangeError("Invalid value of relativeTo")}function Ns(e,t,o,i){return(o instanceof Ac?function(e,t,o,i){const r=o.add(e);return[i.dateUntil(o,r,{largestUnit:Mi[t]}),r]}(e,Math.max(6,t),o,i):zs(e,t,o,i))[0]}function zs(e,t,o,i,r){const n=!0!==r&&t>7&&e.weeks;n&&(e=dr(e,{weeks:0}));let a=o.add(e),s=Rc(o,a,i,t);return n&&(s=dr(s,{weeks:n}),a=a.add({weeks:n})),[s,a]}function Ls(e,t,o,i){const r=Ii[t],{sign:n}=e;if(!n)return e;const a={};for(let o=9;o>=t;o--){const t=Ii[o];a[t]=e[t]}const s={[r]:n},c=o.add(a),l=c.add(s),d=Fr(c),h=Fr(l),u=Fr(i).sub(d).toNumber()/h.sub(d).toNumber()*n;return a[r]+=u,a}function Hs(e,t,o,i,r,n){const{largestUnit:a,smallestUnit:s,roundingIncrement:c,roundingFunc:l}=n;if(!fi(a))return wr(Ki(Fr(o).sub(Fr(t)).mult(r?-1:1),pi[s]*c,l),a);let d=Ls(e,s,t,o);const h=Ii[s];function u(){const e=d[h];d[h]=qi(e,c,l)}return l===Math.round&&u(),r&&(d=lr(d)),l!==Math.round&&u(),s>0&&(d=r?lr(Ns(lr(d),a,t,i)):Ns(d,a,t,i)),d}Sn(Ds,"ZonedDateTime"),xn(Ds,Di),_n(Ds,Cn),bn(Ds),gs(Ds,cs({year:"numeric",month:"numeric",day:"numeric",weekday:void 0,hour:"numeric",minute:"2-digit",second:"2-digit"},{timeZoneName:"short"},{}));const[Bs,Us]=Si();class Gs extends Bi{constructor(e=0,t=0,o=0,i=0,r=0,n=0,a=0,s=0,c=0,l=0){super();const d=Ba({years:e,months:t,weeks:o,days:i,hours:r,minutes:n,seconds:a,milliseconds:s,microseconds:c,nanoseconds:l});Us(this,function(e){const t=hr(e),{sign:o}=t;for(const e of Ii){const i=t[e],r=Yi(t[e]);if(r&&r!==o)throw new RangeError("All fields must be same sign");if(!Number.isInteger(i))throw new RangeError("Duration fields must be integers")}return t}(d))}static from(e){return js("object"==typeof e?Ba(e):function(e){const t=function(e){const t=Gn.exec(Yn(e));if(t){let e,o,i,r;[e,r]=vs(t[8],t[10],5,void 0),[o,r]=vs(t[12],t[14],4,r),[i,r]=vs(t[16],t[18],3,r);const n=function(e){const t={};for(const o in e)void 0!==e[o]&&(t[o]=e[o]);return t}({years:ca(t[2]),months:ca(t[3]),weeks:ca(t[4]),days:ca(t[5]),hours:e,minutes:o,seconds:i});if(!Object.keys(n).length)throw new RangeError("Duration string must have at least one field");const a=wr(rr(r||0),2);n.milliseconds=a.milliseconds,n.microseconds=a.microseconds,n.nanoseconds=a.nanoseconds;let s=hr(n);return"-"===t[1]&&(s=lr(s)),s}}(e);if(void 0===t)throw la("duration",e);return t}(e))}static compare(e,t,o){return function(e,t,o){if(void 0===o&&pr(e)<=6&&pr(t)<=6)return nr(vr(e),vr(t));if(!o)throw new RangeError("Need relativeTo");const i=o.add(e),r=o.add(t);return void 0!==o[Ar]?Wr(i,r):Vr(i,r)}(Li(Gs,e),Li(Gs,t),Os(xi(o).relativeTo))}get years(){return Bs(this).years}get months(){return Bs(this).months}get weeks(){return Bs(this).weeks}get days(){return Bs(this).days}get hours(){return Bs(this).hours}get minutes(){return Bs(this).minutes}get seconds(){return Bs(this).seconds}get milliseconds(){return Bs(this).milliseconds}get microseconds(){return Bs(this).microseconds}get nanoseconds(){return Bs(this).nanoseconds}get sign(){return Bs(this).sign}get blank(){return!this.sign}with(e){return js({...Bs(this),...Ba(e)})}negated(){return js(lr(Bs(this)))}abs(){return js(Ei(Bs(this),cr,(e=>Math.abs(e))))}add(e,t){return Vs(this,Li(Gs,e),t)}subtract(e,t){return Vs(this,lr(Li(Gs,e)),t)}round(e){const t="string"==typeof e?{smallestUnit:e}:e;if(!Ci(t))throw new TypeError("Must specify options");if(void 0===t.largestUnit&&void 0===t.smallestUnit)throw new RangeError("Must specify either largestUnit or smallestUnit");const o=Oi(t,pr(this),0,0,9,!0),i=Os(t.relativeTo);return js(function(e,t,o,i){const{largestUnit:r,smallestUnit:n,roundingIncrement:a,roundingFunc:s}=t;if(void 0===o&&pr(e)<=6&&gi(r)&&gi(n))return wr(Ki(vr(e),pi[n]*a,s),r);if(!o)throw new RangeError("Need relativeTo");const[c,l]=zs(e,r,o,i);return Hs(c,o,l,i,!1,t)}(this,o,i,i?i.calendar:void 0))}total(e){const t=function(e){let t,o;return"string"==typeof e?o=e:(o=xi(e).unit,t=e.relativeTo),{unit:Fi(o,void 0,0,9),relativeTo:t}}(e),o=Os(t.relativeTo);return function(e,t,o,i){if(void 0===o&&pr(e)<=6&&gi(t))return vr(e).toNumber()/pi[t];if(!o)throw new RangeError("Need relativeTo");const[r,n]=zs(e,t,o,i,!0);return Ls(r,t,o,n)[Ii[t]]}(this,t.unit,o,o?o.calendar:void 0)}toString(e){const t=cn(e,3);return function(e,t){const{smallestUnit:o,fractionalSecondDigits:i,roundingFunc:r}=t,{sign:n}=e,a=e.hours,s=e.minutes;let c=e.seconds,l="";if(o<=3){const t=vn(e.milliseconds,e.microseconds,e.nanoseconds,i,r,o);l=t[0],c+=t[1]}const d=void 0!==i||l||!n;return(n<0?"-":"")+"P"+fn([[e.years,"Y"],[e.months,"M"],[e.weeks,"W"],[e.days,"D"]])+(a||s||c||d?"T"+fn([[a,"H"],[s,"M"],[o<=3?c:0,l+"S",d]]):"")}(Bs(this),t)}toLocaleString(e,t){return this.toString()}}function js(e){return new Gs(e.years,e.months,e.weeks,e.days,e.hours,e.minutes,e.seconds,e.milliseconds,e.microseconds,e.nanoseconds)}function Vs(e,t,o){const i=Os(xi(o).relativeTo);return js(function(e,t,o,i){const r=Math.max(pr(e),pr(t));if(void 0===o&&r<=6)return wr(vr(e).add(vr(t)),r);if(!o)throw new RangeError("Need relativeTo");const n=o.add(e).add(t);return Rc(o,n,i,r)}(e,t,i,i?i.calendar:void 0))}Sn(Gs,"Duration");class Ys extends ji{constructor(e,t,o,i=0,r=0,n=0,a=0,s=0,c=0,l=kc()){const d=Xr({isoYear:e,isoMonth:t,isoDay:o,isoHour:i,isoMinute:r,isoSecond:n,isoMillisecond:a,isoMicrosecond:s,isoNanosecond:c},1),h=Li(xc,l);is(d,h.toString()),super({...d,calendar:h})}static from(e,t){const o=vi(t);return qs(e instanceof Ys?e.getISOFields():"object"==typeof e?Da(e,o,t):da(Wn(String(e))))}static compare(e,t){return Vr(Li(Ys,e),Li(Ys,t))}with(e,t){const o=vi(t);return qs(Oa(this,e,o,t))}withPlainDate(e){const t=Li(Ac,e);return qs({...this.getISOFields(),...t.getISOFields(),calendar:Tc(this,t)})}withPlainTime(e){return qs({...this.getISOFields(),...xs(e).getISOFields()})}withCalendar(e){return qs({...this.getISOFields(),calendar:Li(xc,e)})}add(e,t){return Ws(this,Li(Gs,e),t)}subtract(e,t){return Ws(this,lr(Li(Gs,e)),t)}until(e,t){return Zs(this,Li(Ys,e),!1,t)}since(e,t){return Zs(this,Li(Ys,e),!0,t)}round(e){const t=Ni(e,0,6);return qs({...ns(this.getISOFields(),t),calendar:this.calendar})}equals(e){return jr(this,Li(Ys,e))}toString(e){const t=cn(e),o=an(e);return dn(ns(this.getISOFields(),t),t)+gn(this.calendar.toString(),o)}toZonedDateTime(e,t){const o=Li(Ta,e),i=Tn(o,this,sn(t));return new Ds(i.epochNanoseconds,o,this.calendar)}toPlainYearMonth(){return $s(this.getISOFields())}toPlainMonthDay(){return this.calendar.monthDayFromFields(this)}toPlainDate(){return Dc(this.getISOFields())}toPlainTime(){return ws(this.getISOFields())}}function qs(e){return new Ys(e.isoYear,e.isoMonth,e.isoDay,e.isoHour,e.isoMinute,e.isoSecond,e.isoMillisecond,e.isoMicrosecond,e.isoNanosecond,e.calendar)}function Ws(e,t,o){const i=function(e,t,o){const{calendar:i}=e;return Pr(Dr(i.dateAdd(Dc(e),dr(t,gr),o).getISOFields()).add(yr(e)).add(br(t)))}(e.getISOFields(),t,o);return qs({...i,calendar:e.calendar})}function Zs(e,t,o,i){const r=Oi(i,6,0,0,9);return js(Ic(e,t,$c(e,t),o,r))}Sn(Ys,"PlainDateTime"),xn(Ys,Di),_n(Ys,Cn),gs(Ys,ds({year:"numeric",month:"numeric",day:"numeric",weekday:void 0,hour:"numeric",minute:"2-digit",second:"2-digit"},{}));class Ks extends ji{constructor(e,t,o=kc(),i=Er){super({...Kr({isoYear:i,isoMonth:e,isoDay:t},1),calendar:Li(xc,o)})}static from(e,t){if(vi(t),e instanceof Ks)return Xs(e.getISOFields());if("object"==typeof e)return Pa(e,t);const o=function(e){const t=ea(e)||Jn(e);if(!t)throw la("monthDay",e);return t}(String(e));return void 0===o.calendar&&(o.isoYear=Er),Xs(da(o))}with(e,t){return La(this,e,t)}equals(e){return!Vr(this,Li(Ks,e))}toString(e){const t=this.getISOFields(),o=t.calendar.toString(),i=an(e);return("iso8601"===o?function(e){return Ji(e.isoMonth,2)+"-"+Ji(e.isoDay,2)}(t):hn(t))+gn(o,i)}toPlainDate(e){return this.calendar.dateFromFields({year:e.year,monthCode:this.monthCode,day:this.day},{overflow:"reject"})}}function Xs(e){return new Ks(e.isoMonth,e.isoDay,e.calendar,e.isoYear)}function Js(e){return e instanceof Ac||e instanceof Ys||e instanceof Ds||e instanceof Ss||e instanceof Ks}function Qs(e,t,o){let i;if(e instanceof Ac)i=e;else if(Js(e)){if(o&&e instanceof Ks)throw new TypeError("PlainMonthDay not allowed");i=Dc(e.getISOFields())}else i=Ac.from(e);return Ec(i.calendar,t),i}function ec(e,t,o){if(Js(e))return e.getISOFields();let{era:i,eraYear:r,year:n,month:a,monthCode:s,day:c}=e;const l=void 0!==r&&void 0!==i?_r(t.id,r,i):void 0;if(void 0===n){if(void 0===l)throw new TypeError("Must specify either a year or an era & eraYear");n=l}else if(void 0!==l&&l!==n)throw new RangeError("year and era/eraYear must match");if(void 0===c)throw new TypeError("Must specify day");const d=vi(o);if(void 0!==s){const[e,o]=t.convertMonthCode(s,n);if(void 0!==a&&a!==e)throw new RangeError("Month doesnt match with monthCode");if(a=e,o){if(1===d)throw new RangeError("Month code out of range");c=t.daysInMonth(n,a)}}else if(void 0===a)throw new TypeError("Must specify either a month or monthCode");return[n,a,c]=Zr(n,a,c,t,d),Rr(t.epochMilliseconds(n,a,c))}function tc(e,t){if(Js(e)){if(t&&e instanceof Ks)throw new TypeError("PlainMonthDay not allowed");return e.getISOFields()}return Ac.from(e).getISOFields()}function oc(e,t){return Ur(e.epochMilliseconds(t,1,1),e.epochMilliseconds(t+1,1,1))}function ic(e,t,o,i){return Ur(e.epochMilliseconds(t,1,1),e.epochMilliseconds(t,o,i))+1}Sn(Ks,"PlainMonthDay"),xn(Ks),_n(Ks,["monthCode","day"]),gs(Ks,ds({month:"numeric",day:"numeric"},{weekday:void 0,year:void 0,hour:void 0,minute:void 0,second:void 0},!0));const rc={hebrew:6,chinese:0,dangi:0};class nc extends Cr{constructor(e){const t=ac(e);if(o=e,i=t.resolvedOptions().calendar,Sr(o)!==Sr(i))throw new RangeError("Invalid calendar: "+e);var o,i;super(e),this.format=t,this.yearCorrection=this.computeFieldsDumb(0).year-1970,this.monthCacheByYear={}}epochMilliseconds(e,t,o){return Gr(this.queryMonthCache(e)[0][t-1],o-1)}daysInMonth(e,t){const o=this.queryMonthCache(e)[0],i=o[t-1];return t>=o.length&&(e++,t=0),Ur(i,this.queryMonthCache(e)[0][t])}monthsInYear(e){return this.queryMonthCache(e)[0].length}monthCode(e,t){const o=this.queryLeapMonthByYear(t);return!o||e<o?super.monthCode(e,t):super.monthCode(e-1,t)+(e===o?"L":"")}convertMonthCode(e,t){const o=this.queryLeapMonthByYear(t);let i=/L$/.test(e),r=parseInt(e.substr(1)),n=!1;if(i){const e=rc[this.id];if(void 0===e)throw new RangeError("Calendar system doesnt support leap months");if(e){if(r!==e-1)throw new RangeError("Invalid leap-month month code")}else if(r<=1||r>=12)throw new RangeError("Invalid leap-month month code")}return!i||o&&r===o-1||(n=!0,i=!1),(i||o&&r>=o)&&r++,[r,n]}inLeapYear(e){const t=oc(this,e);return t>oc(this,e-1)&&t>oc(this,e+1)}guessYearForMonthDay(e,t){let o=1970+this.yearCorrection;const i=o+100;for(;o<i;o++){const[i,r]=this.convertMonthCode(e,o);if(!r&&i<=this.monthsInYear(o)&&t<=this.daysInMonth(o,i))return o}throw new Error("Could not guess year")}normalizeISOYearForMonthDay(e){return e}computeFields(e){const t=this.computeFieldsDumb(e),o=this.queryMonthCache(t.year)[2];return{...t,month:o[t.month]}}computeFieldsDumb(e){const t=ma(this.format,e);let o,i,r=parseInt(t.relatedYear||t.year);var n;return t.era&&(n=this.id,void 0!==kr[Sr(n)])&&(o=fa(t.era),i=r,r=_r(this.id,i,o,!0)),{era:o,eraYear:i,year:r,month:t.month,day:parseInt(t.day)}}queryLeapMonthByYear(e){const t=this.queryMonthCache(e),o=this.queryMonthCache(e-1),i=this.queryMonthCache(e+1);if(t[0].length>o[0].length&&t[0].length>i[0].length){const e=t[1],i=o[1];for(let t=0;t<i.length;t++)if(i[t]!==e[t])return t+1}}queryMonthCache(e){const{monthCacheByYear:t}=this;return t[e]||(t[e]=this.buildMonthCache(e))}buildMonthCache(e){const t=[],o=[],i={};let r=Ir(this.guessISOYear(e),1,1);for(r=Gr(r,400);;){const i=this.computeFieldsDumb(r);if(i.year<e)break;r=Gr(r,1-i.day),i.year===e&&(t.unshift(r),o.unshift(i.month)),r=Gr(r,-1)}for(let e=0;e<o.length;e++)i[o[e]]=e+1;return[t,o,i]}guessISOYear(e){return e-this.yearCorrection}}function ac(e){return new va("en-US",{calendar:e,era:"short",year:"numeric",month:"short",day:"numeric",timeZone:"UTC"})}const sc=Ir(1868,9,8),cc={gregory:nn,japanese:class extends nn{constructor(){super(...arguments),this.format=ac("japanese")}computeFields(e){const t=super.computeFields(e);if(e>=sc){const o=ma(this.format,e);t.era=fa(o.era),t.eraYear=parseInt(o.relatedYear||o.year)}return t}},islamic:class extends nc{guessISOYear(e){return Math.ceil(32*e/33+622)}}},lc={iso8601:Tr};function dc(e){const t=(e=String(e)).toLocaleLowerCase();return lc[t]||(lc[t]=new(cc[Sr(t)]||nc)(e))}const hc=Ir(1582,10,15),uc=Ir(622,7,18),pc={buddhist:hc,japanese:hc,roc:hc,islamic:uc,"islamic-rgsa":uc,indian:0},mc={};function gc(e,t){return fc(e.div(1e6).toNumber(),t)}function fc(e,t){if(function(e,t){return function(e){let t=mc[e];if(void 0===t){const o=pc[e];if(void 0===o)t=!1;else{let i=dc(e);i instanceof nc||(i=new nc(e));const r=o-864e5,n=i.computeFields(r);t=r!==i.epochMilliseconds(n.year,n.month,n.day)}mc[e]=t}return t}(t)&&e<pc[t]}(e,t))throw new RangeError("Invalid timestamp for calendar")}function vc(e,t,o){const i=7+t-o;return-Xi(zr(e,1,i)-t,7)+i-1}function bc(e,t,o){const i=vc(e,t,o),r=vc(e+1,t,o);return(oc(Tr,e)-i+r)/7}const[yc,wc]=Si();class xc extends Hi{constructor(e){super(),"islamicc"===e&&(e="islamic-civil"),wc(this,dc(e))}static from(e){if(Ci(e))return function(e){const t=e.calendar;return void 0===t?e:Ci(t)&&void 0===t.calendar?t:new xc(t)}(e);const t=Jn(String(e),!1,!0);return new xc(t?t.calendar||"iso8601":String(e))}get id(){return this.toString()}era(e){const t=tc(e,!0);return _c(yc(this),t.isoYear,t.isoMonth,t.isoDay).era}eraYear(e){const t=tc(e,!0);return _c(yc(this),t.isoYear,t.isoMonth,t.isoDay).eraYear}year(e){const t=tc(e,!0);return _c(yc(this),t.isoYear,t.isoMonth,t.isoDay).year}month(e){const t=tc(e,!0);return _c(yc(this),t.isoYear,t.isoMonth,t.isoDay).month}monthCode(e){const t=Qs(e,this);return yc(this).monthCode(t.month,t.year)}day(e){const t=tc(e);return _c(yc(this),t.isoYear,t.isoMonth,t.isoDay).day}dayOfWeek(e){const t=tc(e,!0);return zr(t.isoYear,t.isoMonth,t.isoDay)}dayOfYear(e){const t=Qs(e,this,!0);return ic(yc(this),t.year,t.month,t.day)}weekOfYear(e){const t=tc(e,!0);return function(e,t,o,i,r){const n=vc(e,1,4),a=Math.floor((ic(Tr,e,t,o)-n-1)/7)+1;if(a<1)return a+bc(e-1,1,4);const s=bc(e,1,4);return a>s?a-s:a}(t.isoYear,t.isoMonth,t.isoDay)}daysInWeek(e){return tc(e,!0),7}daysInMonth(e){const t=Qs(e,this,!0);return yc(this).daysInMonth(t.year,t.month)}daysInYear(e){const t=Qs(e,this,!0);return oc(yc(this),t.year)}monthsInYear(e){const t=Qs(e,this,!0);return yc(this).monthsInYear(t.year)}inLeapYear(e){return yc(this).inLeapYear(this.year(e))}dateFromFields(e,t){const o=ec(wi(e,en),yc(this),t);return new Ac(o.isoYear,o.isoMonth,o.isoDay,this)}yearMonthFromFields(e,t){const o=ec({...wi(e,Qr),day:1},yc(this),t);return new Ss(o.isoYear,o.isoMonth,this,o.isoDay)}monthDayFromFields(e,t){const o=yc(this);let{era:i,eraYear:r,year:n,month:a,monthCode:s,day:c}=wi(e,on);if(void 0===c)throw new TypeError("required property 'day' missing or undefined");if(void 0!==s?n=Er:void 0!==i&&void 0!==r&&(n=_r(o.id,r,i)),void 0===n){if(void 0===s)throw new TypeError("either year or monthCode required with month");n=o.guessYearForMonthDay(s,c)}const l=ec({year:n,month:a,monthCode:s,day:c},o,t);return new Ks(l.isoMonth,l.isoDay,this,o.normalizeISOYearForMonthDay(l.isoYear))}dateAdd(e,t,o){const i=yc(this),r=function(e,t,o,i){e=An(e=En(e,t.years,o,i),t.months,o,i);let r=o.epochMilliseconds(e.year,e.month,e.day);const n=Math.trunc(br(t).div(ui).toNumber());return r=Gr(r,7*t.weeks+t.days+n),Rr(r)}(Li(Ac,e,o),Li(Gs,t),i,vi(o));return new Ac(r.isoYear,r.isoMonth,r.isoDay,this)}dateUntil(e,t,o){const i=yc(this),r=Li(Ac,e),n=Li(Ac,t),a=xi(o).largestUnit,s="auto"===a?6:Fi(a,6,6,9);return Ec(this,$c(r,n)),js(function(e,t,o,i){let r=0,n=0,a=0,s=0;switch(i){case 9:r=function(e,t,o){const[,i,r]=Zr(t.year,e.month,e.day,o,0),n=qr(t,e),a=Vi(t.month,i)||Vi(t.day,r);return t.year-e.year-(a&&n&&a!==n?n:0)}(e,t,o),e=En(e,r,o,0);case 8:n=function(e,t,o){let i=0;const r=qr(t,e);if(r){let{year:n}=e;for(;n!==t.year;)i+=o.monthsInYear(n)*r,n+=r;const[,a,s]=Zr(t.year,e.month,e.day,o,0);i+=t.month-a;const c=Vi(t.day,s);c&&r&&c!==r&&(i-=r)}return i}(e,t,o),e=An(e,n,o,0)}return s=Ur(o.epochMilliseconds(e.year,e.month,e.day),o.epochMilliseconds(t.year,t.month,t.day)),7===i&&(a=Math.trunc(s/7),s%=7),hr({years:r,months:n,weeks:a,days:s,hours:0,minutes:0,seconds:0,milliseconds:0,microseconds:0,nanoseconds:0})}(r,n,i,s))}fields(e){return e.slice()}mergeFields(e,t){return Cc(e,t)}toString(){return yc(this).id}}function kc(){return new xc("iso8601")}function Cc(e,t){var o;const i={...e,...t};if(void 0!==e.year){delete i.era,delete i.eraYear,delete i.year;let o=!1;void 0===t.era&&void 0===t.eraYear||(i.era=t.era,i.eraYear=t.eraYear,o=!0),void 0!==t.year&&(i.year=t.year,o=!0),o||(i.year=e.year)}if(void 0!==e.monthCode){delete i.monthCode,delete i.month;let o=!1;void 0!==t.month&&(i.month=t.month,o=!0),void 0!==t.monthCode&&(i.monthCode=t.monthCode,o=!0),o||(i.monthCode=e.monthCode)}return void 0!==e.day&&(i.day=null!=(o=t.day)?o:e.day),i}function _c(e,t,o,i){const r=Ir(t,o,i);return fc(r,e.id),e.computeFields(r)}function Sc(e){return void 0===e.calendar?kc():Li(xc,e.calendar)}function $c(e,t){const{calendar:o}=e;return Ec(o,t.calendar),o}function Tc(e,t){const o=e.calendar,i=t.calendar;if("iso8601"===o.id)return i;if("iso8601"===i.id)return o;if(o.id!==i.id)throw new RangeError("Non-ISO calendars incompatible");return o}function Ec(e,t){if(e.toString()!==t.toString())throw new RangeError("Calendars must match")}Sn(xc,"Calendar");class Ac extends ji{constructor(e,t,o,i=kc()){const r=Kr({isoYear:e,isoMonth:t,isoDay:o},1),n=Li(xc,i);!function(e,t){const o=Dr(e);rs(o.add(o.sign()<0?86399999999999:0)),gc(o,t)}(r,n.toString()),super({...r,calendar:n})}static from(e,t){return vi(t),e instanceof Ac?Dc(e.getISOFields()):"object"==typeof e?Ma(e,t):Dc(da(Wn(String(e))))}static compare(e,t){return Vr(Li(Ac,e),Li(Ac,t))}with(e,t){return Na(this,e,t)}withCalendar(e){const t=this.getISOFields();return new Ac(t.isoYear,t.isoMonth,t.isoDay,e)}add(e,t){return this.calendar.dateAdd(this,e,t)}subtract(e,t){return this.calendar.dateAdd(this,Li(Gs,e).negated(),t)}until(e,t){return Mc(this,Li(Ac,e),!1,t)}since(e,t){return Mc(this,Li(Ac,e),!0,t)}equals(e){return!Vr(this,Li(Ac,e))}toString(e){const t=an(e),o=this.getISOFields();return hn(o)+gn(o.calendar.toString(),t)}toZonedDateTime(e){const t=function(e){let t,o;if("string"==typeof e)o=e;else{if("object"!=typeof e)throw new TypeError("Invalid options/timeZone argument");if(void 0!==e.id?o=e:(o=e.timeZone,t=e.plainTime),void 0===o)throw new TypeError("Invalid timeZone argument")}return{plainTime:t,timeZone:o}}(e),o=Li(Ta,t.timeZone),i=void 0===t.plainTime?void 0:Li(ys,t.plainTime);return Ms({...this.getISOFields(),...i?i.getISOFields():mr,timeZone:o})}toPlainDateTime(e){return qs({...this.getISOFields(),...xs(e).getISOFields()})}toPlainYearMonth(){return $s(this.getISOFields())}toPlainMonthDay(){return this.calendar.monthDayFromFields(this)}}function Dc(e){return new Ac(e.isoYear,e.isoMonth,e.isoDay,e.calendar)}function Mc(e,t,o,i){return js(Pc(e,t,$c(e,t),o,Oi(i,6,6,6,9)))}function Ic(e,t,o,i,r){return Hs(Rc(e,t,o,r.largestUnit),e,t,o,i,r)}function Pc(e,t,o,i,r){return Hs(o.dateUntil(e,t,{largestUnit:Mi[r.largestUnit]}),e,t,o,i,r)}function Rc(e,t,o,i){if(!fi(i))return Fc(e,t,i);const r=Dc({...e.getISOFields(),calendar:o});let n,a,s,c,l,d=Dc({...t.getISOFields(),calendar:o});do{a=o.dateUntil(r,d,{largestUnit:Mi[i]}),n=e.add(a),s=Fc(n,t,5),c=a.sign,l=s.sign}while(c&&l&&c!==l&&(d=d.add({days:l})));return u=s,{sign:(h=a).sign||u.sign,years:h.years+u.years,months:h.months+u.months,weeks:h.weeks+u.weeks,days:h.days+u.days,hours:h.hours+u.hours,minutes:h.minutes+u.minutes,seconds:h.seconds+u.seconds,milliseconds:h.milliseconds+u.milliseconds,microseconds:h.microseconds+u.microseconds,nanoseconds:h.nanoseconds+u.nanoseconds};var h,u}function Fc(e,t,o){return wr(Fr(t).sub(Fr(e)),o)}Sn(Ac,"PlainDate"),xn(Ac),_n(Ac,Cn),gs(Ac,ds({year:"numeric",month:"numeric",day:"numeric",weekday:void 0},{hour:void 0,minute:void 0,second:void 0}));class Oc extends Bi{constructor(e){super();const t=rr(e,!0);!function(e){-1!==nr(e,es)&&1!==nr(e,Qa)||Br()}(t),this[Ar]=t}static from(e){if(e instanceof Oc)return new Oc(e.epochNanoseconds);const t=qn(String(e)),o=t.offsetNanoseconds;if(void 0===o)throw new RangeError("Must specify an offset");return new Oc(Dr(Xr(t,1)).sub(o))}static fromEpochSeconds(e){return new Oc(rr(e).mult(1e9))}static fromEpochMilliseconds(e){return new Oc(rr(e).mult(1e6))}static fromEpochMicroseconds(e){return new Oc(e*BigInt(1e3))}static fromEpochNanoseconds(e){return new Oc(e)}static compare(e,t){return Wr(Li(Oc,e),Li(Oc,t))}add(e){return new Oc(Mn(this[Ar],Li(Gs,e)))}subtract(e){return new Oc(Mn(this[Ar],lr(Li(Gs,e))))}until(e,t){return Nc(this,Li(Oc,e),t)}since(e,t){return Nc(Li(Oc,e),this,t)}round(e){const t=Ni(e,0,5,!0);return new Oc(function(e,t){const[o,i]=function(e){const t=Pr(e);return[Mr(t.isoYear,t.isoMonth,t.isoDay),yr(t)]}(e),r=ss(i,t);return o.add(r)}(this[Ar],t))}equals(e){return!Wr(this,Li(Oc,e))}toString(e){const t=xi(e).timeZone;return this.toZonedDateTimeISO(null!=t?t:"UTC").toString({...e,offset:void 0===t?"never":"auto",timeZoneName:"never"})+(void 0===t?"Z":"")}toZonedDateTimeISO(e){return new Ds(this.epochNanoseconds,e)}toZonedDateTime(e){if(!Ci(e))throw new TypeError("Must specify options");if(void 0===e.calendar)throw new TypeError("Must specify a calendar");if(void 0===e.timeZone)throw new TypeError("Must specify a timeZone");return new Ds(this.epochNanoseconds,e.timeZone,e.calendar)}}function Nc(e,t,o){const i=Oi(o,3,0,0,5);return js(function(e,t,o){return wr(Ki(t.sub(e),pi[o.smallestUnit]*o.roundingIncrement,o.roundingFunc),o.largestUnit)}(e[Ar],t[Ar],i))}Sn(Oc,"Instant"),bn(Oc),gs(Oc,cs({year:"numeric",month:"numeric",day:"numeric",weekday:void 0,hour:"numeric",minute:"2-digit",second:"2-digit"},{timeZoneName:void 0},{}));const zc=Symbol(),Lc=Symbol(),Hc=Symbol();class Bc extends Intl.DateTimeFormat{constructor(e,t){const o=ba(e),i=function(e){const t={};for(const o in e){let i=e[o];Ci(i)&&(i=i.toString()),t[o]=i}return t}(t||{});super(o,i),this[zc]=o,this[Lc]=i,this[Hc]=new Map}format(e){const t=Gc(this,e);return t[0]===this?super.format(t[1]):t[0].format(t[1])}formatToParts(e){return super.formatToParts.call(...Gc(this,e))}formatRange(e,t){return super.formatRange.call(...jc(this,e,t))}formatRangeToParts(e,t){return super.formatRangeToParts.call(...jc(this,e,t))}}const Uc=Bc;function Gc(e,t){const o=fs(t);if(o){const i=Vc(e,o);return[i.buildFormat(t),i.buildEpochMilli(t)]}return[e,t]}function jc(e,t,o){const i=fs(t);if(i!==fs(o))throw new TypeError("Mismatch of types");if(i){const r=Vc(e,i);return[r.buildFormat(t,o),new Date(r.buildEpochMilli(t)),new Date(r.buildEpochMilli(o))]}return[e,t,o]}function Vc(e,t){const o=e[Hc];let i=o.get(t);return i||(i=function(e){const t={};return{buildFormat:function(o,i){const r=e.buildKey(o,i),n=r.join("|");return t[n]||(t[n]=e.buildFormat(...r))},buildEpochMilli:e.buildEpochMilli}}(t(e[zc],e[Lc])),o.set(t,i)),i}const Yc={zonedDateTimeISO:function(e){return Ms(Wc("iso8601",e))},zonedDateTime:function(e,t){return Ms(Wc(e,t))},plainDateTimeISO:function(e){return qs(Wc("iso8601",e))},plainDateTime:function(e,t){return qs(Wc(e,t))},plainDateISO:function(e){return Dc(Wc("iso8601",e))},plainDate:function(e,t){return Dc(Wc(e,t))},plainTimeISO:function(e){return ws(Wc("iso8601",e))},instant:function(){return new Oc(Zc())},timeZone:qc};function qc(){return new Ta((new va).resolvedOptions().timeZone)}function Wc(e,t=qc()){const o=Li(Ta,t);return{...Is(Zc(),o)[0],timeZone:o,calendar:Li(xc,e)}}function Zc(){return rr(Date.now()).mult(1e6)}Sn(Yc,"Now");const Kc={PlainYearMonth:Ss,PlainMonthDay:Ks,PlainDate:Ac,PlainTime:ys,PlainDateTime:Ys,ZonedDateTime:Ds,Instant:Oc,Calendar:xc,TimeZone:Ta,Duration:Gs,Now:Yc,[Symbol.toStringTag]:"Temporal"};("undefined"!=typeof globalThis?globalThis:window).Intl;class Xc{static get zero(){return new Xc(0)}static fromMilliseconds(e){return new Xc(e)}static fromSeconds(e){return new Xc(e*Xc.ticksPerSecond)}static fromMinutes(e){return new Xc(e*Xc.ticksPerMinute)}static fromHours(e){return new Xc(e*Xc.ticksPerHour)}static fromDays(e){return new Xc(e*Xc.ticksPerDay)}static fromWeeks(e){return new Xc(e*Xc.ticksPerWeek)}static fromMonths(e){return new Xc(e*Xc.ticksPerMonths)}static fromYears(e){return new Xc(e*Xc.ticksPerYear)}constructor(e){this.milliseconds=e}get seconds(){return this.milliseconds/Xc.ticksPerSecond}get minutes(){return this.milliseconds/Xc.ticksPerMinute}get hours(){return this.milliseconds/Xc.ticksPerHour}get days(){return this.milliseconds/Xc.ticksPerDay}get weeks(){return this.milliseconds/Xc.ticksPerWeek}get months(){return this.milliseconds/Xc.ticksPerMonths}get years(){return this.milliseconds/Xc.ticksPerYear}valueOf(){return this.milliseconds}toString(){return this.format()}format(e){const[t,o]=jo(e),i=new Intl.RelativeTimeFormat(t,null!=o?o:{style:"long",numeric:"auto"}),r=(e,t)=>i.format(Math.sign(e)*Math.floor(Math.abs(e)),t);switch(!0){case Math.abs(this.years)>=1:return r(this.years,"years");case Math.abs(this.months)>=1:return r(this.months,"months");case Math.abs(this.weeks)>=1:return r(this.weeks,"weeks");case Math.abs(this.days)>=1:return r(this.days,"days");case Math.abs(this.hours)>=1:return r(this.hours,"hours");case Math.abs(this.minutes)>=1:return r(this.minutes,"minutes");default:return r(this.seconds,"seconds")}}}Xc.ticksPerSecond=1e3,Xc.ticksPerMinute=60*Xc.ticksPerSecond,Xc.ticksPerHour=60*Xc.ticksPerMinute,Xc.ticksPerDay=24*Xc.ticksPerHour,Xc.ticksPerWeek=7*Xc.ticksPerDay,Xc.ticksPerMonths=30*Xc.ticksPerDay,Xc.ticksPerYear=365*Xc.ticksPerDay,globalThis.TimeSpan=Xc;class Jc extends Date{static getWeekDayNames(e=Lo.currentLanguage){return new Array(7).fill((new Jc).weekRange.start).map(((t,o)=>t.addDays(o).format({language:e,weekday:"long"})))}static fromEpochNanoseconds(e){return new Jc(Number(e/BigInt(1e6)))}get temporalInstant(){var e;return null!==(e=this._temporalInstant)&&void 0!==e?e:this._temporalInstant=new Kc.Instant(BigInt(1e6*this.valueOf()))}get zonedDateTime(){var e;return null!==(e=this._zonedDateTime)&&void 0!==e?e:this._zonedDateTime=this.temporalInstant.toZonedDateTime({calendar:Intl.DateTimeFormat().resolvedOptions().calendar,timeZone:Intl.DateTimeFormat().resolvedOptions().timeZone})}equals(e){const t=e instanceof Jc?e.temporalInstant:e;return this.temporalInstant.equals(t)}isBefore(e){return this.temporalInstant.epochNanoseconds<e.temporalInstant.epochNanoseconds}isAfter(e){return this.temporalInstant.epochNanoseconds>e.temporalInstant.epochNanoseconds}since(e=new Jc){const t=e instanceof Jc?e.temporalInstant:e,o=this.temporalInstant.since(t,{largestUnit:"milliseconds"}).milliseconds;return new Xc(o)}until(e=new Jc){const t=e instanceof Jc?e.temporalInstant:e,o=this.temporalInstant.until(t,{largestUnit:"milliseconds"}).milliseconds;return new Xc(o)}add(...e){return Jc.fromEpochNanoseconds(this.zonedDateTime.add(...e).epochNanoseconds)}subtract(...e){return Jc.fromEpochNanoseconds(this.zonedDateTime.subtract(...e).epochNanoseconds)}round(...e){return Jc.fromEpochNanoseconds(this.zonedDateTime.round(...e).epochNanoseconds)}get day(){return this.getDate()}addDays(e){return this.add({days:e})}get dayOfWeek(){return this.zonedDateTime.dayOfWeek}get weekOfYear(){return this.zonedDateTime.weekOfYear}get weekRange(){const e=this.addDays(1-this.zonedDateTime.dayOfWeek),t=e.addDays(this.zonedDateTime.daysInWeek-1);return new DateTimeRange(e,t)}get weekStart(){return this.weekRange.start}get weekEnd(){return this.weekRange.end}addWeeks(e){return this.add({weeks:e})}static get monthNames(){return new Array(12).fill((new Jc).yearStart).map(((e,t)=>e.addMonths(t).format({month:"long"})))}get month(){return this.getMonth()}get localMonth(){return Number(new Intl.DateTimeFormat(Lo.currentLanguage,{month:"numeric",numberingSystem:"latn"}).format(this))}get monthName(){return Jc.monthNames[this.month]}get monthRange(){const e=new Jc(this.year,this.month,1),t=Number(new Intl.DateTimeFormat(Lo.currentLanguage,{day:"numeric",numberingSystem:"latn"}).format(e))-1,o=e.addDays(-t),i=o.addMonths(1).addDays(-1);return new DateTimeRange(o,i)}get monthStart(){return this.monthRange.start}get monthEnd(){return this.monthRange.end}addMonths(e){return this.add({months:e})}addYears(e){return this.add({years:e})}get year(){return this.getFullYear()}get yearStart(){return new Jc(this.year,0,1)}get yearEnd(){return new Jc(this.year+1,0,1).addDays(-1)}get yearNames(){return new Array(12).fill(void 0).map(((e,t)=>new Date(Date.UTC(this.year,t,1,0,0,0)).format({year:"numeric",numberingSystem:"latn"})))}get yearName(){return this.yearNames[this.month]}}Jc.isoRegularExpression=/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2}(?:\.\d*))(?:Z|(\+|-)([\d|:]*))?$/,globalThis.DateTime=Jc;class Qc{static parse(e){const t=new Set(["–","–","~",Qc.getUntilDelimiter()]),[o,i]=e.split(new RegExp(`[${[...t].join("")}]+`));return new Qc(o?new Date(o):void 0,i?new Date(i):void 0)}static getUntilDelimiter(e=Lo.currentLanguage){var t;return null===(t=Intl.DateTimeFormat(e).formatRangeToParts(new Date("2010-01-01T00:00:00.000Z"),new Date("2020-01-01T00:00:00.000Z")).find((e=>"shared"===e.source)))||void 0===t?void 0:t.value}static sort(e,t){return e&&t&&e>t?{start:t,end:e}:{start:e,end:t}}constructor(e,t){const o=e?new DateTime(e):void 0,i=t?new DateTime(t):void 0,{start:r,end:n}=Qc.sort(o,i);this.start=r,this.end=n}get isInfinite(){return!this.start&&!this.end}includes(e){return(!this.start||e>=this.start)&&(!this.end||e<=this.end)}equals(e){var t,o;return e.start&&(null===(t=this.start)||void 0===t?void 0:t.equals(e.start))&&this.end&&(null===(o=e.end)||void 0===o?void 0:o.equals(this.end))}toString(){return this.format()}format(e){var t,o;if(!this.start&&!this.end)return"";const[i,r]=jo(e);if(!this.end){return this.start.formatAsDate(e)+(null===(t=Qc.getUntilDelimiter(i))||void 0===t?void 0:t.trimEnd())}if(!this.start){const t=this.end;return(null===(o=Qc.getUntilDelimiter(i))||void 0===o?void 0:o.trimStart())+t.formatAsDate(e)}return Intl.DateTimeFormat(i,null!=r?r:{year:"numeric",month:"2-digit",day:"2-digit"}).formatRange(this.start,this.end)}}globalThis.DateTimeRange=Qc;let el=class extends _t{constructor(){super(...arguments),this.placement="block-end",this.alignment="start",this.slotController=new Vo(this,this.assignSlottedPopovers.bind(this))}assignSlottedPopovers(){this.slotController.getAssignedElements("popover").forEach((e=>{const t=e;t.fixed=!1,t.anchor=this,t.placement=this.placement,t.alignment=this.alignment}))}static get styles(){return f`:host{display:inline-flex;position:relative}:host([placement=block-start]){flex-flow:column-reverse}:host([placement=block-end]){flex-flow:column}:host([placement=inline-start]){flex-flow:row-reverse}:host([placement=inline-end]){flex-flow:row}:host([alignment=start]){align-items:flex-start}:host([alignment=center]){align-items:center}:host([alignment=end]){align-items:flex-end}`}get template(){return Z`<slot></slot><slot name="popover"></slot>`}};a([Pt({reflect:!0,updated(){this.assignSlottedPopovers()}})],el.prototype,"placement",void 0),a([Pt({reflect:!0,updated(){this.assignSlottedPopovers()}})],el.prototype,"alignment",void 0),el=a([Ct("mo-popover-container")],el);class tl extends St{constructor(e,t){var o,i,r,n;super(e),this.host=e,this.options=t,this._hover=!1,this.anchorPointerIn=new Ot(this.host,{type:"pointerenter",target:null!==(i=null===(o=this.options)||void 0===o?void 0:o.target)&&void 0!==i?i:this.host,listener:()=>this.hover=!0}),this.anchorPointerOut=new Ot(this.host,{type:"pointerleave",target:null!==(n=null===(r=this.options)||void 0===r?void 0:r.target)&&void 0!==n?n:this.host,listener:()=>this.hover=!1})}get hover(){return this._hover}set hover(e){var t,o;e!==this._hover&&(this._hover=e,null===(o=null===(t=this.options)||void 0===t?void 0:t.handleHoverChange)||void 0===o||o.call(t,e),this.host.requestUpdate())}}class ol{constructor(e,{target:t,config:o,callback:i,skipInitial:r}){this.t=new Set,this.o=!1,this.i=!1,this.h=e,null!==t&&this.t.add(null!=t?t:e),this.l=o,this.o=null!=r?r:this.o,this.callback=i,window.ResizeObserver?(this.u=new ResizeObserver((e=>{this.handleChanges(e),this.h.requestUpdate()})),e.addController(this)):console.warn("ResizeController error: browser does not support ResizeObserver.")}handleChanges(e){var t;this.value=null===(t=this.callback)||void 0===t?void 0:t.call(this,e,this.u)}hostConnected(){for(const e of this.t)this.observe(e)}hostDisconnected(){this.disconnect()}async hostUpdated(){!this.o&&this.i&&this.handleChanges([]),this.i=!1}observe(e){this.t.add(e),this.u.observe(e,this.l),this.i=!0,this.h.requestUpdate()}unobserve(e){this.t.delete(e),this.u.unobserve(e)}disconnect(){this.u.disconnect()}}const il=Xe(class extends nt{constructor(e){if(super(e),this.observer=new ResizeObserver(((...e)=>{var t;return null===(t=this.callback)||void 0===t?void 0:t.call(this,...e)})),e.type!==Ke)throw new Error("observeResize can only be used on an element");const t=e;this.element=t.element}render(e,t){this.callback=e,this.observer.observe(this.element,t)}disconnected(){this.observer.disconnect()}});function rl(){return this.anchor}class nl extends St{constructor(e){super(e),this.host=e,this.anchorFocusController=new Yo(this.host,{target:rl,handleChange:()=>this.update()}),this.pointerController=new tl(this.host,{handleHoverChange:()=>this.update()}),this.anchorPointerController=new tl(this.host,{target:rl,handleHoverChange:()=>this.update()}),this.resizeController=new ol(this.host,{callback:()=>this.update()})}hostUpdated(){this.update()}update(){this.openIfApplicable(),this.updatePosition()}openIfApplicable(){var e,t,o,i;const r=null!==(t=null===(e=this.host)||void 0===e?void 0:e.openOnFocus)&&void 0!==t&&t,n=null!==(i=null===(o=this.host)||void 0===o?void 0:o.openOnHover)&&void 0!==i&&i;if(!r&&!n)return;const a=n&&(this.pointerController.hover||this.anchorPointerController.hover)||r&&this.anchorFocusController.focused;this.host.setOpen(a)}updatePosition(){this.host.open&&(this.host.fixed?this.positionFixed():this.positionAbsolute())}positionAbsolute(){this.host.style.position="absolute"}positionFixed(){const e=this.host.anchor.getBoundingClientRect(),t=this.host.getBoundingClientRect(),o="rtl"===getComputedStyle(this.host.anchor).direction;let i,r;switch(this.host.alignment){case"start":i=1,r=0;break;case"center":i=.5,r=.5;break;case"end":i=0,r=1}if(o&&(i=1-i,r=1-r),this.host.coordinates){const[e,o]=this.host.coordinates;return this.host.style.left=e-t.width*r+"px",void(this.host.style.top=o-t.height*r+"px")}let n=0,a=0;switch(this.host.placement){case"block-start":n=e.left*i+e.right*r-t.width*r,a=e.top-t.height;break;case"block-end":n=e.left*i+e.right*r-t.width*r,a=e.top+e.height;break;case"inline-start":n=e.left-t.width,a=e.top*i+e.bottom*r-t.height*r;break;case"inline-end":n=e.left+e.width,a=e.top*i+e.bottom*r-t.height*r}var s;this.host.style.insetInlineStart=`${s=n,Math.max(0,Math.min(s,window.innerWidth-t.width))}px`,this.host.style.insetBlockStart=`${(e=>Math.max(0,Math.min(e,window.innerHeight-t.height)))(a)}px`}}var al;let sl=al=class extends _t{constructor(){super(...arguments),this.fixed=!1,this.placement="block-end",this.alignment="start",this.open=!1,this.popoverController=new nl(this)}setOpen(e){this.open!==e&&(this.open=e,this.openChange.dispatch(e))}static get translationStyles(){return f`:host(:not([fixed])[placement=block-start]){--mo-popover-translate-y:-100%}:host(:not([fixed])[placement=inline-start]){--mo-popover-translate-x:-100%}:host(:not([fixed])[placement=block-end][alignment=start]),:host(:not([fixed])[placement=block-start][alignment=start]){--mo-popover-translate-x:0%}:host(:not([fixed])[placement=block-end][alignment=center]),:host(:not([fixed])[placement=block-start][alignment=center]){--mo-popover-translate-x:-50%}:host(:not([fixed])[placement=block-end][alignment=end]),:host(:not([fixed])[placement=block-start][alignment=end]){--mo-popover-translate-x:-100%}:host(:not([fixed])[placement=inline-end][alignment=start]),:host(:not([fixed])[placement=inline-start][alignment=start]){--mo-popover-translate-y:0%}:host(:not([fixed])[placement=inline-end][alignment=center]),:host(:not([fixed])[placement=inline-start][alignment=center]){--mo-popover-translate-y:-50%}:host(:not([fixed])[placement=inline-end][alignment=end]),:host(:not([fixed])[placement=inline-start][alignment=end]){--mo-popover-translate-y:-100%}`}static get styles(){return f`${al.translationStyles}:host{position:fixed;box-shadow:var(--mo-shadow,0 2px 4px rgba(0,0,0,.2));width:max-content;opacity:0;z-index:99;transform:translate(var(--mo-popover-translate-x,0),var(--mo-popover-translate-y,0)) var(--mo-popover-transform-extra)}:host(:not([open])){visibility:collapse;pointer-events:none}:host([open]){opacity:1}`}get template(){return Z`<slot></slot>`}};a([Ht()],sl.prototype,"openChange",void 0),a([Pt({type:Boolean,reflect:!0})],sl.prototype,"fixed",void 0),a([Pt({type:Array})],sl.prototype,"coordinates",void 0),a([Pt({type:Object})],sl.prototype,"anchor",void 0),a([Pt({reflect:!0})],sl.prototype,"placement",void 0),a([Pt({reflect:!0})],sl.prototype,"alignment",void 0),a([Pt({type:Boolean,reflect:!0})],sl.prototype,"open",void 0),a([Pt({type:Boolean})],sl.prototype,"openOnHover",void 0),a([Pt({type:Boolean})],sl.prototype,"openOnFocus",void 0),sl=al=a([Ct("mo-popover")],sl);let cl=class extends _t{static get instance(){var e;return null!==(e=document.querySelector("mo-popover-host"))&&void 0!==e?e:document.body}get template(){return Z`<slot></slot>`}};cl=a([Ct("mo-popover-host")],cl);let ll=class extends ai{constructor(){super(...arguments),this.inputType="time"}get startSlotTemplate(){return Z`<mo-icon slot="start" @click="${()=>this.focus()}" icon="schedule" ${Dt({color:"var(--mo-color-gray)"})}></mo-icon>${super.startSlotTemplate}`}};ll=a([Ct("mo-field-time")],ll);class dl{constructor(e){this.calendar=e}get styles(){return f``}select(e){this.calendar.value=e,this.calendar.change.dispatch(e)}}var hl;"group"in Array.prototype==!1&&(Array.prototype.group=function(e){return this.reduce(((t,o)=>{const i=e(o);return(t[i]||(t[i]=[])).push(o),t}),{})}),"groupToMap"in Array.prototype==!1&&(Array.prototype.groupToMap=function(e){return new Map(Object.entries(this.group(e)))});let ul=hl=class extends _t{constructor(){super(...arguments),this.includeWeekNumbers=!1,this.navigatingDate=new DateTime,this.yearSelection=!1,this.today=(new DateTime).round({smallestUnit:"day",roundingMode:"floor"}),this.years=new Array(200).fill(void 0).map(((e,t)=>hl.startingYearDate.addYears(t)))}static get styles(){return f`:host{--mo-calendar-max-width:325px;--mo-calendar-min-height:230px;--mo-calendar-day-size:36px;--mo-calendar-week-number-width:var(--mo-calendar-day-size)}.monthHeader,.week{color:var(--mo-color-gray)}.monthHeader{align-items:center}.navigatingMonth,.navigatingYear{font-size:var(--mo-font-size-l);transition:var(--mo-duration-quick)}.navigatingYear:hover{color:var(--mo-color-accent);cursor:pointer}.day,.year{text-align:center;border-radius:100px;cursor:pointer;transition:var(--mo-duration-quick);font-weight:500;user-select:none;font-size:var(--mo-font-size-m);width:var(--mo-calendar-day-size);-webkit-user-select:none;align-items:center;justify-content:center}.year{width:100%;justify-content:center;align-items:center}.selected{background:var(--mo-color-accent);color:var(--mo-color-accessible)!important}.day{height:var(--mo-calendar-day-size)}.day:hover,.year:hover{background:var(--mo-color-transparent-gray-3)}.day:not(.isInMonth){color:var(--mo-color-gray)}.day.today{color:var(--mo-color-accent)}`}get template(){return Z`<mo-flex alignItems="center" justifyContent="center" ${Dt({width:"var(--mo-calendar-max-width)",minHeight:"var(--mo-calendar-min-height)"})}><mo-flex direction="horizontal" justifyContent="space-between" alignItems="center" ${Dt({width:"100%"})}><mo-icon-button icon="${"rtl"===getComputedStyle(this).direction?"keyboard_arrow_right":"keyboard_arrow_left"}" @click="${()=>this.navigatingDate=this.navigatingDate.addMonths(-1)}"></mo-icon-button><div><a class="navigatingMonth">${this.navigatingDate.monthName}</a> <a class="navigatingYear" @click="${()=>this.toggleYearSelection()}">${this.navigatingDate.yearName}</a></div><mo-icon-button icon="${"rtl"===getComputedStyle(this).direction?"keyboard_arrow_left":"keyboard_arrow_right"}" @click="${()=>this.navigatingDate=this.navigatingDate.addMonths(1)}"></mo-icon-button></mo-flex>${this.yearSelection?this.yearSelectionTemplate:this.daySelectionTemplate}</mo-flex>`}get daySelectionTemplate(){var e,t;const o=null===(e=this.navigatingDate.monthStart)||void 0===e?void 0:e.weekStart,i=null===(t=this.navigatingDate.monthEnd)||void 0===t?void 0:t.weekEnd,r=[...this.rangeOf(o,i).groupToMap((e=>String(e.weekOfYear)))].sort((([,e],[,t])=>{var o;return(null===(o=e[0])||void 0===o?void 0:o.isBefore(t[0]))?-1:1}));return Z`<mo-grid class="month" rows="repeat(auto-fill, var(--mo-calendar-day-size))" columns="${this.includeWeekNumbers?"var(--mo-calendar-week-number-width) repeat(7, var(--mo-calendar-day-size))":"repeat(7, var(--mo-calendar-day-size))"}" ${Dt({alignItems:"center",justifyItems:"center"})}>${!1===this.includeWeekNumbers?kt:Z`<div></div>`} ${DateTime.getWeekDayNames().map((e=>Z`<div class="monthHeader">${e.charAt(0).toUpperCase()+e.charAt(1)}</div>`))} ${r.map((([e,t])=>Z`${!1===this.includeWeekNumbers?kt:Z`<div class="week">${e}</div>`} ${t.map((e=>this.getDayTemplate(e)))}`))}</mo-grid>`}getDayTemplate(e){return Z`<mo-flex class="${lt(this.getDefaultDayElementClasses(e))}">${e.format({day:"numeric"})}</mo-flex>`}getDefaultDayElementClasses(e){var t,o;const i=null===(t=[...this.rangeOf(e.monthStart,e.monthEnd).groupToMap((e=>String(e.month)))].sort((([,e],[,t])=>e.length>t.length?-1:1))[0])||void 0===t?void 0:t[1];return{day:!0,today:e.equals(this.today),isInMonth:e.localMonth===(null===(o=null==i?void 0:i[0])||void 0===o?void 0:o.localMonth)}}get yearSelectionTemplate(){return Z`<mo-scroller ${Dt({height:"*"})}><mo-grid rows="repeat(50, var(--mo-calendar-day-size))" columns="repeat(4, 1fr)">${this.years.map((e=>Z`<mo-flex class="${lt({year:!0,selected:this.navigatingDate.year===e.year})}" @click="${()=>this.selectYear(e.year)}">${e.yearName}</mo-flex>`))}</mo-grid></mo-scroller>`}selectYear(e){this.navigatingDate.setFullYear(e),this.yearSelection=!1}toggleYearSelection(){this.yearSelection=!this.yearSelection,this.yearSelection&&new Promise((()=>setTimeout((()=>{this.selectedYearElement.scrollIntoView({behavior:"smooth",block:"center",inline:"center"})}),1)))}rangeOf(e,t){return new Array(Math.abs(Math.round(t.until(e).days))+1).fill(void 0).map(((t,o)=>e.addDays(o)))}};var pl;ul.startingYearDate=new DateTime(1900,6,1),a([Pt({type:Boolean,reflect:!0})],ul.prototype,"includeWeekNumbers",void 0),a([Rt()],ul.prototype,"navigatingDate",void 0),a([Rt()],ul.prototype,"yearSelection",void 0),a([$t(".year.selected")],ul.prototype,"selectedYearElement",void 0),ul=hl=a([Ct("mo-calendar")],ul);let ml=pl=class extends ul{get selectionAdapter(){return this._selectionAdapter||(this._selectionAdapter=new this.selectionAdapterConstructor(this),pl.elementStyles.push(this._selectionAdapter.styles)),this._selectionAdapter}getDayTemplate(e){return this.selectionAdapter.getDayTemplate(e,this.getDefaultDayElementClasses(e))}};a([Ht()],ml.prototype,"change",void 0),a([Pt({type:Object})],ml.prototype,"selectionAdapterConstructor",void 0),a([Pt({type:Object,updated(){this.navigatingDate=this.selectionAdapter.getNavigatingDate(this.value)}})],ml.prototype,"value",void 0),ml=pl=a([Ct("mo-selectable-calendar")],ml);class gl{static getDateSeparator(e=Lo.currentLanguage){return Intl.DateTimeFormat(e).format(new Date).replace(/\p{Number}/gu,"")[0]}static parse(e,t=new DateTime){if(!(e=e.toLowerCase().trim()))return;if(e.startsWith("+")||e.startsWith("-"))return gl.parseDateFromOperation(e,t);if(e.includes(gl.getDateSeparator()))return gl.parseDateFromLocalDate(e,t);if((3===e.length||4===e.length||8===e.length)&&!isNaN(parseInt(e)))return gl.parseDateFromShortcut(e);const o=new DateTime(e||new DateTime);if("Invalid Date"!==String(o))return o;const i=gl.parseDateFromKeyword(e,t);return i||void 0}static parseDateFromLocalDate(e,t=new DateTime){const o=new DateTime(e);if("Invalid Date"===String(o))return;return 2===e.split(gl.getDateSeparator()).length&&o.setFullYear(t.getFullYear()),o}static parseDateFromOperation(e,t=new DateTime){const o=e.charAt(e.length-1).toLowerCase();let i;if(!isNaN(Number(o)))return i=parseInt(e.substring(0,e.length)),t.addDays(i);switch(i=parseInt(e.substring(0,e.length-1)),o){case"y":return t.addYears(i);case"m":return t.addMonths(i);default:return}}static parseDateFromShortcut(e){const t=e.substring(0,2),o=e.substring(2,e.length>=4?4:3),i=8!==length?void 0:e.substring(4,8);return new DateTime(i?parseInt(i):(new Date).getFullYear(),parseInt(o)-1,parseInt(t))}static parseDateFromKeyword(e,t=new DateTime){switch(e){case"h":return new DateTime(t);case"üm":return t.addDays(2);case"m":return t.addDays(1);case"üüm":return t.addDays(3);case"g":return t.addDays(-1);case"vg":return t.addDays(-2);case"vvg":return t.addDays(-3);case"adw":return t.weekStart;case"edw":return t.weekEnd;case"anw":return t.addWeeks(1).weekStart;case"enw":return t.addWeeks(1).weekEnd;case"alw":return t.addWeeks(-1).weekStart;case"elw":return t.addWeeks(-1).weekEnd;case"adm":return t.monthStart;case"edm":return t.monthEnd;case"anm":return t.addMonths(1).monthStart;case"enm":return t.addMonths(1).monthEnd;case"alm":return t.addMonths(-1).monthStart;case"elm":return t.addMonths(-1).monthEnd;case"adj":return t.yearStart;case"edj":return t.yearEnd;case"anj":return t.addYears(1).yearStart;case"enj":return t.addYears(1).yearEnd;case"alj":return t.addYears(-1).yearStart;case"elj":return t.addYears(-1).yearEnd;default:return}}}class fl extends Wo{constructor(){super(...arguments),this.open=!1,this.hideDatePicker=!1,this.shortcutReferenceDate=new DateTime,this.calendarIconButtonIcon="today"}handleChange(e,t){super.handleChange(e,t),this.inputStringValue=this.valueToInputValue(e)}get isActive(){return super.isActive||this.open}static get styles(){return f`${super.styles}mo-popover{background:var(--mo-color-background);box-shadow:var(--mo-shadow);border-radius:var(--mo-border-radius);color:var(--mo-color-foreground);padding:10px 4px}`}get template(){return Z`${super.template} ${this.popoverTemplate}`}get endSlotTemplate(){return Z`${super.endSlotTemplate} ${this.calendarIconButtonTemplate}`}get inputTemplate(){return Z`<input part="input" ?readonly="${this.readonly}" ?required="${this.required}" ?disabled="${this.disabled}" .value="${ut(this.inputStringValue||"")}" @input="${e=>this.handleInput(this.inputValueToValue(this.inputElement.value||""),e)}" @change="${e=>this.handleChange(this.inputValueToValue(this.inputElement.value||""),e)}">`}get calendarIconButtonTemplate(){return this.hideDatePicker?kt:Z`<mo-icon-button tabindex="-1" dense slot="end" icon="${this.calendarIconButtonIcon}" ${Dt({color:this.isActive?"var(--mo-color-accent)":"var(--mo-color-gray)"})} @click="${()=>this.open=!this.open}"></mo-icon-button>`}get popoverTemplate(){return this.hideDatePicker?kt:Z`<mo-popover tabindex="-1" openOnFocus .anchor="${this}" ?open="${this.open}" @openChange="${e=>this.open=e.detail}">${this.calendarTemplate}</mo-popover>`}get calendarTemplate(){return Z`<mo-selectable-calendar .selectionAdapterConstructor="${this.calendarSelectionAdapterConstructor}" .value="${this.value}" @change="${e=>this.handleCalendarChange(e.detail)}"></mo-selectable-calendar>`}handleCalendarChange(e){this.value=e,this.change.dispatch(e)}}a([Pt({type:Boolean,reflect:!0})],fl.prototype,"open",void 0),a([Pt({type:Boolean})],fl.prototype,"hideDatePicker",void 0),a([Pt({type:Object})],fl.prototype,"shortcutReferenceDate",void 0),a([$t("mo-selectable-calendar")],fl.prototype,"calendarElement",void 0);class vl extends dl{getDayTemplate(e,t){var o,i;return Z`<mo-flex class="${lt(Object.assign(Object.assign({},t),{selected:null!==(i=null===(o=this.calendar.value)||void 0===o?void 0:o.equals(e))&&void 0!==i&&i}))}" @click="${()=>this.select(e)}">${e.format({day:"numeric"})}</mo-flex>`}getNavigatingDate(e){const t=null!=e?e:new DateTime;return new DateTime(t.year,t.month)}}let bl=class extends fl{constructor(){super(...arguments),this.calendarSelectionAdapterConstructor=vl}handleCalendarChange(e){super.handleCalendarChange(e),this.open=!1}valueToInputValue(e){var t;return e&&null!==(t=e.formatAsDate())&&void 0!==t?t:""}inputValueToValue(e){return e?gl.parse(e,this.shortcutReferenceDate):void 0}};a([Pt({type:Object})],bl.prototype,"value",void 0),bl=a([Ct("mo-field-date")],bl);class yl{static parse(e,t=new DateTime){const o=yl.parseDateRangeFromKeyword(e,t);if(o)return o;let i=yl.userDateRangeSeparators.find((t=>e.includes(t)));i||(e+=yl.dateRangeSeparator,i=yl.dateRangeSeparator);const[r,n]=e.toLowerCase().split(i),a=gl.parse(r,t),s=gl.parse(n,t);return new DateTimeRange(a,s)}static parseDateRangeFromKeyword(e,t=new DateTime){switch(e){case"w":case"dw":return new DateTimeRange(t.weekStart,t.weekEnd);case"nw":return new DateTimeRange(t.addWeeks(1).weekStart,t.addWeeks(1).weekEnd);case"lw":return new DateTimeRange(t.addWeeks(-1).weekStart,t.addWeeks(-1).weekEnd);case"m":case"dm":return new DateTimeRange(t.monthStart,t.monthEnd);case"lm":return new DateTimeRange(t.addMonths(-1).monthStart,t.addMonths(-1).monthEnd);case"nm":return new DateTimeRange(t.addMonths(1).monthStart,t.addMonths(1).monthEnd);case"j":case"dj":return new DateTimeRange(t.yearStart,t.yearEnd);case"lj":return new DateTimeRange(t.addYears(-1).yearStart,t.addYears(-1).yearEnd);case"nj":return new DateTimeRange(t.addYears(1).yearStart,t.addYears(1).yearEnd);default:return}}}yl.dateRangeSeparator=" – ",yl.userDateRangeSeparators=[yl.dateRangeSeparator," ","-","~"];class wl extends dl{constructor(){super(...arguments),this.currentSelection=0}get styles(){return f`.day.inSelectionRange:not(.selected){background:var(--mo-color-accent-transparent)}.day.inSelectionRange{border-radius:0}.day.selected.first{border-radius:100px 0 0 100px}.day.selected.last{border-radius:0 100px 100px 0}.day.selected.first.last{border-radius:100px}`}getDayTemplate(e,t){const o=this.calendar.value,i=!!(null==o?void 0:o.start)&&e.equals(o.start),r=!!(null==o?void 0:o.end)&&e.equals(o.end),n=Object.assign(Object.assign({},t),{inSelectionRange:!!o&&o.includes(e),selected:i||r,first:i,last:r});return Z`<mo-flex class="${lt(n)}" @click="${()=>this.handleClick(e)}">${e.format({day:"numeric"})}</mo-flex>`}getNavigatingDate(e){var t;const o=null!==(t=null==e?void 0:e.start)&&void 0!==t?t:new DateTime;return new DateTime(o.year,o.month)}handleClick(e){const t=this.calendar.value,o=!!(null==t?void 0:t.start)&&!!t.end,i=0===this.currentSelection?new DateTimeRange(e,o||null==t?void 0:t.end):new DateTimeRange(o||null==t?void 0:t.start,e);this.currentSelection=i.start?1:0,this.select(i)}}let xl=class extends fl{constructor(){super(...arguments),this.calendarSelectionAdapterConstructor=wl,this.calendarIconButtonIcon="date_range"}get currentSelection(){var e,t,o;return null!==(o=null===(t=null===(e=this.calendarElement)||void 0===e?void 0:e.selectionAdapter)||void 0===t?void 0:t.currentSelection)&&void 0!==o?o:0}set currentSelection(e){var t;const o=null===(t=this.calendarElement)||void 0===t?void 0:t.selectionAdapter;o&&(o.currentSelection=e,this.requestUpdate())}handleCalendarChange(e){super.handleCalendarChange(e),(null==e?void 0:e.start)&&e.end&&(this.open=!1)}get calendarTemplate(){var e,t;return Z`<mo-flex><mo-flex direction="horizontal" alignItems="center" ${Dt({textAlign:"center",height:"30px"})}><div ${Dt({width:"*",fontWeight:"500",cursor:"pointer"})} ${Dt({color:0===this.currentSelection?"var(--mo-color-accent)":"unset"})} @click="${()=>this.currentSelection=0}">${(null===(e=this.value)||void 0===e?void 0:e.start)?this.value.start.formatAsDate():"Start"}</div><div ${Dt({color:"var(--mo-color-gray)"})}>bis</div><div ${Dt({width:"*",fontWeight:"500",cursor:"pointer"})} ${Dt({color:1===this.currentSelection?"var(--mo-color-accent)":"unset"})} @click="${()=>this.currentSelection=1}">${(null===(t=this.value)||void 0===t?void 0:t.end)?this.value.end.formatAsDate():"Ende"}</div></mo-flex>${super.calendarTemplate}</mo-flex>`}valueToInputValue(e){var t;return e&&null!==(t=e.format())&&void 0!==t?t:""}inputValueToValue(e){return e?yl.parse(e,this.shortcutReferenceDate):void 0}};a([Rt()],xl.prototype,"currentSelection",null),a([Pt({type:Object})],xl.prototype,"value",void 0),xl=a([Ct("mo-field-date-range")],xl);class kl extends St{constructor(e){super(e),this.host=e,this.documentClickEventController=new Ot(this.host,{type:"click",target:document,listener:e=>{""!==e.pointerType&&this.setOpen(e,!this.open)}}),this.anchorKeyDownEventController=new Ot(this.host,{type:"keydown",target:()=>this.host.anchor,listener:e=>{if(!e.ctrlKey&&!e.shiftKey)switch(e.key){case"Enter":this.setOpen(e,!0);break;case"Down":case"ArrowDown":case"Up":case"ArrowUp":case"Home":case"PageUp":case"End":case"PageDown":this.setOpen(e,!0,!0);break;case"Esc":case"Escape":this.setOpen(e,!1),e.stopPropagation();break;case"Tab":this.setOpen(e,!1)}}})}get open(){var e;return null!==(e=this.host.popover.open)&&void 0!==e&&e}set open(e){this.host.popover.setOpen(e)}getItem(e){var t,o,i;return null!==(i=null===(o=(t=this.host.list).getItem)||void 0===o?void 0:o.call(t,e))&&void 0!==i?i:this.host.list.items[e]}setOpen(e,t,o=!1){if(this.open===t)return;if(t&&this.host.manualOpen)return;const i=e.composedPath();if(t||i.includes(this.host)||(this.open=t),t&&i.includes(this.host.anchor)&&!i.includes(this.host)){(o||!this.host.opener||i.some((e=>e instanceof Element&&e.id===this.host.opener)))&&(this.open=t)}}}const Cl=Xe(class extends Je{constructor(e){if(super(e),this.rippleGetter=async()=>null,e.type!==Ke)throw new Error("The `ripple` directive must be used on an element")}render(e){return X}async handleEvent(e){const t=await this.rippleGetter();if(t)switch(e.type){case"click":t.handleClick();break;case"contextmenu":t.handleContextmenu();break;case"pointercancel":t.handlePointercancel(e);break;case"pointerdown":await t.handlePointerdown(e);break;case"pointerenter":t.handlePointerenter(e);break;case"pointerleave":t.handlePointerleave(e);break;case"pointerup":t.handlePointerup(e)}}update(e,[t]){return this.element||(this.element=e.element,this.element.addEventListener("click",this),this.element.addEventListener("contextmenu",this),this.element.addEventListener("pointercancel",this),this.element.addEventListener("pointerdown",this),this.element.addEventListener("pointerenter",this),this.element.addEventListener("pointerleave",this),this.element.addEventListener("pointerup",this)),this.rippleGetter="function"==typeof t?t:()=>t,X}}),_l="cubic-bezier(0.2, 0, 0, 1)";var Sl;!function(e){e[e.INACTIVE=0]="INACTIVE",e[e.TOUCH_DELAY=1]="TOUCH_DELAY",e[e.HOLDING=2]="HOLDING",e[e.WAITING_FOR_CLICK=3]="WAITING_FOR_CLICK"}(Sl||(Sl={}));class $l extends ve{constructor(){super(...arguments),this.unbounded=!1,this.disabled=!1,this.hovered=!1,this.focused=!1,this.pressed=!1,this.rippleSize="",this.rippleScale="",this.initialSize=0,this.state=Sl.INACTIVE,this.checkBoundsAfterContextMenu=!1}handlePointerenter(e){this.shouldReactToEvent(e)&&(this.hovered=!0)}handlePointerleave(e){this.shouldReactToEvent(e)&&(this.hovered=!1,this.state!==Sl.INACTIVE&&this.endPressAnimation())}handleFocusin(){this.focused=!0}handleFocusout(){this.focused=!1}handlePointerup(e){if(this.shouldReactToEvent(e)){if(this.state!==Sl.HOLDING)return this.state===Sl.TOUCH_DELAY?(this.state=Sl.WAITING_FOR_CLICK,void this.startPressAnimation(this.rippleStartEvent)):void 0;this.state=Sl.WAITING_FOR_CLICK}}async handlePointerdown(e){if(this.shouldReactToEvent(e)){if(this.rippleStartEvent=e,!this.isTouch(e))return this.state=Sl.WAITING_FOR_CLICK,void this.startPressAnimation(e);this.checkBoundsAfterContextMenu&&!this.inBounds(e)||(this.checkBoundsAfterContextMenu=!1,this.state=Sl.TOUCH_DELAY,await new Promise((e=>{setTimeout(e,150)})),this.state===Sl.TOUCH_DELAY&&(this.state=Sl.HOLDING,this.startPressAnimation(e)))}}handleClick(){this.disabled||(this.state!==Sl.WAITING_FOR_CLICK?this.state===Sl.INACTIVE&&(this.startPressAnimation(),this.endPressAnimation()):this.endPressAnimation())}handlePointercancel(e){this.shouldReactToEvent(e)&&this.endPressAnimation()}handleContextmenu(){this.disabled||(this.checkBoundsAfterContextMenu=!0,this.endPressAnimation())}render(){const e={hovered:this.hovered,focused:this.focused,pressed:this.pressed,unbounded:this.unbounded};return Z`<div class="surface ${lt(e)}"></div>`}update(e){e.has("disabled")&&this.disabled&&(this.hovered=!1,this.focused=!1,this.pressed=!1),super.update(e)}getDimensions(){return(this.parentElement??this).getBoundingClientRect()}determineRippleSize(){const{height:e,width:t}=this.getDimensions(),o=Math.max(e,t),i=Math.max(.35*o,75);let r=o,n=Math.floor(.2*o);r=Math.sqrt(t**2+e**2)+10,this.unbounded&&(n-=n%2),this.initialSize=n,this.rippleScale=""+(r+i)/n,this.rippleSize=`${this.initialSize}px`}getNormalizedPointerEventCoords(e){const{scrollX:t,scrollY:o}=window,{left:i,top:r}=this.getDimensions(),n=t+i,a=o+r,{pageX:s,pageY:c}=e;return{x:s-n,y:c-a}}getTranslationCoordinates(e){const{height:t,width:o}=this.getDimensions(),i={x:(o-this.initialSize)/2,y:(t-this.initialSize)/2};let r;return r=e instanceof PointerEvent?this.getNormalizedPointerEventCoords(e):{x:o/2,y:t/2},r={x:r.x-this.initialSize/2,y:r.y-this.initialSize/2},{startPoint:r,endPoint:i}}startPressAnimation(e){this.pressed=!0,this.growAnimation?.cancel(),this.determineRippleSize();const{startPoint:t,endPoint:o}=this.getTranslationCoordinates(e),i=`${t.x}px, ${t.y}px`,r=`${o.x}px, ${o.y}px`;this.growAnimation=this.mdRoot.animate({top:[0,0],left:[0,0],height:[this.rippleSize,this.rippleSize],width:[this.rippleSize,this.rippleSize],transform:[`translate(${i}) scale(1)`,`translate(${r}) scale(${this.rippleScale})`]},{pseudoElement:"::after",duration:450,easing:_l,fill:"forwards"})}async endPressAnimation(){const e=this.growAnimation,t=e?.currentTime??1/0;t>=225?this.pressed=!1:(await new Promise((e=>{setTimeout(e,225-t)})),this.growAnimation===e&&(this.pressed=!1))}shouldReactToEvent(e){if(this.disabled||!e.isPrimary)return!1;if(this.rippleStartEvent&&this.rippleStartEvent.pointerId!==e.pointerId)return!1;if("pointerenter"===e.type||"pointerleave"===e.type)return!this.isTouch(e);const t=1===e.buttons;return this.isTouch(e)||t}inBounds({x:e,y:t}){const{top:o,left:i,bottom:r,right:n}=this.getBoundingClientRect();return e>=i&&e<=n&&t>=o&&t<=r}isTouch({pointerType:e}){return"touch"===e}}a([xe({type:Boolean,reflect:!0}),s("design:type",Object)],$l.prototype,"unbounded",void 0),a([xe({type:Boolean,reflect:!0}),s("design:type",Object)],$l.prototype,"disabled",void 0),a([ke(),s("design:type",Object)],$l.prototype,"hovered",void 0),a([ke(),s("design:type",Object)],$l.prototype,"focused",void 0),a([ke(),s("design:type",Object)],$l.prototype,"pressed",void 0),a([Se(".surface"),s("design:type",HTMLElement)],$l.prototype,"mdRoot",void 0);const Tl=f`:host{--_focus-color:var(--md-ripple-focus-color, var(--md-sys-color-on-surface, #1c1b1f));--_focus-opacity:var(--md-ripple-focus-opacity, 0.12);--_hover-color:var(--md-ripple-hover-color, var(--md-sys-color-on-surface, #1c1b1f));--_hover-opacity:var(--md-ripple-hover-opacity, 0.08);--_pressed-color:var(--md-ripple-pressed-color, var(--md-sys-color-on-surface, #1c1b1f));--_pressed-opacity:var(--md-ripple-pressed-opacity, 0.12);--_shape:var(--md-ripple-shape, 0px)}:host{display:flex}:host([disabled]){opacity:0}.surface,:host{position:absolute;inset:0;pointer-events:none;overflow:hidden}.surface{will-change:transform;border-radius:var(--_shape);outline:0;-webkit-tap-highlight-color:transparent}.surface::after,.surface::before{position:absolute;opacity:0;pointer-events:none;content:""}.surface::before{background-color:var(--_hover-color);transition:opacity 15ms linear,background-color 15ms linear;inset:0}.surface::after{background:radial-gradient(closest-side,var(--_pressed-color) max(100% - 70px,65%),transparent 100%);transition:opacity 375ms linear;transform-origin:center center}.hovered::before{background-color:var(--_hover-color);opacity:var(--_hover-opacity)}.focused::before{background-color:var(--_focus-color);opacity:var(--_focus-opacity);transition-duration:75ms}.pressed::after{opacity:var(--_pressed-opacity);transition-duration:105ms}.unbounded{--_shape:var(--md-ripple-shape, 9999px)}@media screen and (forced-colors:active){:host{display:none}}`;let El=class extends $l{};El.styles=[Tl],El=a([ye("md-ripple")],El);let Al=class extends _t{constructor(){super(...arguments),this.disabled=!1,this.focused=!1}static get styles(){return f`:host{display:block;position:absolute;inset:0;width:100%;height:100%;--md-ripple-focus-color:var(--mo-color-gray, rgb(128, 128, 128));--md-ripple-hover-color:var(--mo-color-gray, rgb(128, 128, 128));--md-ripple-pressed-color:var(--mo-color-gray, rgb(128, 128, 128))}md-ripple{display:block;width:100%;height:100%;pointer-events:none}div{position:absolute;inset:0;width:100%;height:100%}`}get template(){return Z`<div ${Cl((()=>this.ripple))}></div><md-ripple ?disabled="${this.disabled}"></md-ripple>`}handleKeyDown(e){this.disabled||!this.focused||e.repeat||"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),this.ripple.startPressAnimation(e),this.dispatchEvent(new MouseEvent("click",{bubbles:!0,composed:!0})))}handleKeyUp(){this.ripple.endPressAnimation()}};a([Pt({type:Boolean})],Al.prototype,"disabled",void 0),a([Pt({type:Boolean,updated(){this.disabled||(this.focused?this.ripple.handleFocusin():this.ripple.handleFocusout())}})],Al.prototype,"focused",void 0),a([$t("md-ripple")],Al.prototype,"ripple",void 0),a([Nt({target:window,type:"keydown"})],Al.prototype,"handleKeyDown",null),a([Nt({target:window,type:"keyup"})],Al.prototype,"handleKeyUp",null),Al=a([Ct("mo-list-item-ripple")],Al);let Dl=class extends _t{constructor(){super(...arguments),this.disabled=!1,this.focused=!1,this.role="listitem",this.tabIndex=0}handleFocus(){this.focused=!0}handleBlur(){this.focused=!1}static get styles(){return f`:host{position:relative;width:100%;box-sizing:border-box;user-select:none;font-size:16px;padding-inline:16px}.container,:host{display:flex;gap:16px;align-items:center;height:48px}:host([disabled]){pointer-events:none;opacity:.5}:host(:focus){outline:0}slot:not([name]){display:inline-flex;gap:inherit;align-items:inherit;justify-content:inherit;flex:1}`}get template(){return Z`<mo-list-item-ripple ?focused="${this.focused}" ?disabled="${this.disabled}"></mo-list-item-ripple><slot></slot>`}};a([Xt({blockFocus:!0})],Dl.prototype,"disabled",void 0),a([Pt({type:Boolean,reflect:!0})],Dl.prototype,"focused",void 0),a([Nt("focus")],Dl.prototype,"handleFocus",null),a([Nt("blur")],Dl.prototype,"handleBlur",null),Dl=a([Ct("mo-list-item")],Dl);class Ml extends St{constructor(e){super(e),this.host=e,this.forceFocused=!1,this.focusController=new Yo(this.host,{handleChange:(e,t)=>{var o;t||(e?null!==(o=this.focusedItemIndex)&&void 0!==o||(this.focusedItemIndex=0):this.focusedItemIndex=void 0)}}),this.itemsPointerDownEventListener=new Ot(this.host,{target:()=>this.host,type:"pointerdown",listener:e=>{const t=e.composedPath().find((e=>Il(e)));this.focusedItemIndex=this.getRenderedItemIndex(t)}}),this.keyDownEventListener=new Ot(this.host,{type:"keydown",target:document,listener:e=>{if(!1===this.hasFocus)return;if(e.ctrlKey||e.shiftKey)return;let t=!1;switch(e.key){case"Down":case"ArrowDown":this.focusNextItem(),t=!0;break;case"Up":case"ArrowUp":this.focusPreviousItem(),t=!0;break;case"Home":case"PageUp":this.focusFirstItem(),t=!0;break;case"End":case"PageDown":this.focusLastItem(),t=!0}t&&(e.stopPropagation(),e.preventDefault())}})}get items(){return this.host.items}get itemsLength(){var e;return null!==(e=this.host.itemsLength)&&void 0!==e?e:this.items.length}getItem(e){var t,o,i;return null!==(i=null===(o=(t=this.host).getItem)||void 0===o?void 0:o.call(t,e))&&void 0!==i?i:this.items[e]}getRenderedItemIndex(e){var t,o,i;return null!==(i=null===(o=(t=this.host).getRenderedItemIndex)||void 0===o?void 0:o.call(t,e))&&void 0!==i?i:this.items.indexOf(e)}get focusedItemIndex(){return this._focusedItemIndex}set focusedItemIndex(e){if(void 0!==e&&(e%=this.itemsLength),this._focusedItemIndex=e,void 0!==e){const t=this.getItem(e);null==t||t.scrollIntoView({block:"nearest",inline:"nearest"})}for(const t of this.items)void 0!==e&&this.getRenderedItemIndex(t)===e&&this.isFocusable(t)?t.setAttribute("focused",""):t.removeAttribute("focused")}isFocusable(e){return!(e instanceof Element&&e.hasAttribute("disabled"))}hostConnected(){this.host.tabIndex=0,this.items.forEach((e=>e.tabIndex=-1))}hostDisconnected(){this.host.tabIndex=-1}focusFirstItem(){this.focusTraversal(0,"forward")}focusLastItem(){this.focusTraversal(this.itemsLength-1,"backward")}focusNextItem(){var e;this.focusTraversal((null!==(e=this.focusedItemIndex)&&void 0!==e?e:-1)+1,"forward")}focusPreviousItem(){var e;this.focusTraversal((null!==(e=this.focusedItemIndex)&&void 0!==e?e:0)-1,"backward")}focusTraversal(e,t){let o=0;for(;!(o>=this.itemsLength);){const i=this.getItem(e);if(i&&this.isFocusable(i)){this.focusedItemIndex=e;break}e=(e="forward"===t?e+1:e-1)<0?this.itemsLength-1:e%this.itemsLength,o++}}unfocus(){this.focusedItemIndex=void 0}get hasFocus(){return this.focusController.focused||this.forceFocused}}function Il(e){return e instanceof HTMLElement&&!!e.role&&Pl.itemRoles.includes(e.role)}let Pl=class extends _t{constructor(){super(...arguments),this.role="list",this.listItemsKeyboardController=new Ml(this),this.slotController=new Vo(this)}get items(){return this.slotController.getAssignedElements("").filter(Il)}static get styles(){return f`:host{display:block}:host(:focus){outline:0}`}get template(){return Z`<slot></slot>`}};Pl.itemRoles=["listitem","menuitem","menuitemcheckbox","menuitemradio","option"],Pl=a([Ct("mo-list")],Pl);class Rl extends CustomEvent{constructor(e,t){super(Rl.type,{bubbles:!0,detail:e}),this.selected=t}}Rl.type="change";let Fl=class extends Pl{constructor(){super(...arguments),this.value=new Array,this.selectionMode="single"}handleChange(e){if(e instanceof Rl){e.stopImmediatePropagation();const t=this.items.indexOf(e.target);if(-1===t)return;const o=new Set(this.value);if("single"===this.selectionMode){for(const[e,o]of this.items.entries())e!==t&&("selected"in o?o.selected=!1:o.removeAttribute("selected"));o.clear()}e.selected?o.add(t):o.delete(t),this.value=[...o],this.change.dispatch(this.value)}}};a([Ht()],Fl.prototype,"change",void 0),a([Pt({type:Array})],Fl.prototype,"value",void 0),a([Pt()],Fl.prototype,"selectionMode",void 0),a([$e("slot")],Fl.prototype,"slotElement",void 0),a([Nt({type:"change",target(){return this.slotElement}})],Fl.prototype,"handleChange",null),Fl=a([Ct("mo-selectable-list")],Fl);class Ol extends Lt{constructor(e){super(e,Rl.type),this.element=e}dispatch(e){var t;super.dispatch(new Rl(e,null===(t=this.element)||void 0===t?void 0:t.selected))}}class Nl extends Dl{constructor(){super(...arguments),this.change=new Ol(this)}}let zl=class extends Nl{constructor(){super(...arguments),this.selected=!1}static get styles(){return f`${super.styles}:host([selected]){background-color:var(--mo-selectable-list-item-selected-background,var(--mo-color-accent-transparent,rgba(0,119,200,.25)));color:var(--mo-selectable-list-item-selected-color,var(--mo-color-accent,#0077c8))}`}handleClick(){this.selected=!this.selected,this.change.dispatch(this.selected)}};a([Pt({type:Boolean,reflect:!0})],zl.prototype,"selected",void 0),a([Nt("click")],zl.prototype,"handleClick",null),zl=a([Ct("mo-selectable-list-item")],zl);class Ll extends Nl{constructor(){super(...arguments),this.selectionControlAlignment="end"}get template(){return Z`${"start"===this.selectionControlAlignment?this.selectionControlTemplate:kt} ${super.template} ${"end"===this.selectionControlAlignment?this.selectionControlTemplate:kt}`}}a([Pt()],Ll.prototype,"selectionControlAlignment",void 0);let Hl=class extends Ll{constructor(){super(...arguments),this.checked=!1,this.indeterminate=!1,this.role="menuitemcheckbox"}get selected(){return this.checked}set selected(e){this.checked=e}get selectionControlTemplate(){return Z`<mo-checkbox tabindex="-1" ?checked="${this.checked}" ?indeterminate="${this.indeterminate}" value="${ht(this.value)}" @click="${e=>e.stopImmediatePropagation()}" @change="${e=>this.handleChange(e.detail)}"></mo-checkbox>`}handleClick(){this.handleChange(this.checked?"unchecked":"checked")}handleChange(e){this.checked="checked"===e,this.indeterminate="indeterminate"===e,this.value=e,this.change.dispatch(e)}};a([Pt({type:Boolean,reflect:!0})],Hl.prototype,"checked",void 0),a([Pt({type:Boolean,reflect:!0})],Hl.prototype,"indeterminate",void 0),a([Pt()],Hl.prototype,"value",void 0),a([Nt("click")],Hl.prototype,"handleClick",null),Hl=a([Ct("mo-checkbox-list-item")],Hl);const Bl=Symbol("selection controller");class Ul{constructor(){this.selected=null,this.ordered=null,this.set=new Set}}class Gl{constructor(e){this.sets={},this.focusedSet=null,this.mouseIsDown=!1,this.updating=!1,e.addEventListener("keydown",(e=>{this.keyDownHandler(e)})),e.addEventListener("mousedown",(()=>{this.mousedownHandler()})),e.addEventListener("mouseup",(()=>{this.mouseupHandler()}))}static getController(e){const t=!("global"in e)||"global"in e&&e.global?document:e.getRootNode();let o=t[Bl];return void 0===o&&(o=new Gl(t),t[Bl]=o),o}keyDownHandler(e){const t=e.target;"checked"in t&&this.has(t)&&("ArrowRight"==e.key||"ArrowDown"==e.key?this.selectNext(t):"ArrowLeft"!=e.key&&"ArrowUp"!=e.key||this.selectPrevious(t))}mousedownHandler(){this.mouseIsDown=!0}mouseupHandler(){this.mouseIsDown=!1}has(e){return this.getSet(e.name).set.has(e)}selectPrevious(e){const t=this.getOrdered(e),o=t.indexOf(e),i=t[o-1]||t[t.length-1];return this.select(i),i}selectNext(e){const t=this.getOrdered(e),o=t.indexOf(e),i=t[o+1]||t[0];return this.select(i),i}select(e){e.click()}focus(e){if(this.mouseIsDown)return;const t=this.getSet(e.name),o=this.focusedSet;this.focusedSet=t,o!=t&&t.selected&&t.selected!=e&&t.selected.focus()}isAnySelected(e){const t=this.getSet(e.name);for(const e of t.set)if(e.checked)return!0;return!1}getOrdered(e){const t=this.getSet(e.name);return t.ordered||(t.ordered=Array.from(t.set),t.ordered.sort(((e,t)=>e.compareDocumentPosition(t)==Node.DOCUMENT_POSITION_PRECEDING?1:0))),t.ordered}getSet(e){return this.sets[e]||(this.sets[e]=new Ul),this.sets[e]}register(e){const t=e.name||e.getAttribute("name")||"",o=this.getSet(t);o.set.add(e),o.ordered=null}unregister(e){const t=this.getSet(e.name);t.set.delete(e),t.ordered=null,t.selected==e&&(t.selected=null)}update(e){if(this.updating)return;this.updating=!0;const t=this.getSet(e.name);if(e.checked){for(const o of t.set)o!=e&&(o.checked=!1);t.selected=e}if(this.isAnySelected(e))for(const e of t.set){if(void 0===e.formElementTabIndex)break;e.formElementTabIndex=e.checked?0:-1}this.updating=!1}}var jl={NATIVE_CONTROL_SELECTOR:".mdc-radio__native-control"},Vl={DISABLED:"mdc-radio--disabled",ROOT:"mdc-radio"};const Yl=function(e){function t(o){return e.call(this,n(n({},t.defaultAdapter),o))||this}return o(t,e),Object.defineProperty(t,"cssClasses",{get:function(){return Vl},enumerable:!1,configurable:!0}),Object.defineProperty(t,"strings",{get:function(){return jl},enumerable:!1,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function(){return{addClass:function(){},removeClass:function(){},setNativeControlDisabled:function(){}}},enumerable:!1,configurable:!0}),t.prototype.setDisabled=function(e){var o=t.cssClasses.DISABLED;this.adapter.setNativeControlDisabled(e),e?this.adapter.addClass(o):this.adapter.removeClass(o)},t}(io);class ql extends Eo{constructor(){super(...arguments),this._checked=!1,this.useStateLayerCustomProperties=!1,this.global=!1,this.disabled=!1,this.value="on",this.name="",this.reducedTouchTarget=!1,this.mdcFoundationClass=Yl,this.formElementTabIndex=0,this.focused=!1,this.shouldRenderRipple=!1,this.rippleElement=null,this.rippleHandlers=new vo((()=>(this.shouldRenderRipple=!0,this.ripple.then((e=>{this.rippleElement=e})),this.ripple)))}get checked(){return this._checked}set checked(e){var t,o;const i=this._checked;e!==i&&(this._checked=e,this.formElement&&(this.formElement.checked=e),null===(t=this._selectionController)||void 0===t||t.update(this),!1===e&&(null===(o=this.formElement)||void 0===o||o.blur()),this.requestUpdate("checked",i),this.dispatchEvent(new Event("checked",{bubbles:!0,composed:!0})))}_handleUpdatedValue(e){this.formElement.value=e}renderRipple(){return this.shouldRenderRipple?Z`<mwc-ripple unbounded accent .internalUseStateLayerCustomProperties="${this.useStateLayerCustomProperties}" .disabled="${this.disabled}"></mwc-ripple>`:""}get isRippleActive(){var e;return(null===(e=this.rippleElement)||void 0===e?void 0:e.isActive)||!1}connectedCallback(){super.connectedCallback(),this._selectionController=Gl.getController(this),this._selectionController.register(this),this._selectionController.update(this)}disconnectedCallback(){this._selectionController.unregister(this),this._selectionController=void 0}focus(){this.formElement.focus()}createAdapter(){return Object.assign(Object.assign({},(e=this.mdcRoot,{addClass:t=>{e.classList.add(t)},removeClass:t=>{e.classList.remove(t)},hasClass:t=>e.classList.contains(t)})),{setNativeControlDisabled:e=>{this.formElement.disabled=e}});var e}handleFocus(){this.focused=!0,this.handleRippleFocus()}handleClick(){this.formElement.focus()}handleBlur(){this.focused=!1,this.formElement.blur(),this.rippleHandlers.endFocus()}setFormData(e){this.name&&this.checked&&e.append(this.name,this.value)}render(){const e={"mdc-radio--touch":!this.reducedTouchTarget,"mdc-ripple-upgraded--background-focused":this.focused,"mdc-radio--disabled":this.disabled};return Z`<div class="mdc-radio ${lt(e)}"><input tabindex="${this.formElementTabIndex}" class="mdc-radio__native-control" type="radio" name="${this.name}" aria-label="${ht(this.ariaLabel)}" aria-labelledby="${ht(this.ariaLabelledBy)}" .checked="${this.checked}" .value="${this.value}" ?disabled="${this.disabled}" @change="${this.changeHandler}" @focus="${this.handleFocus}" @click="${this.handleClick}" @blur="${this.handleBlur}" @mousedown="${this.handleRippleMouseDown}" @mouseenter="${this.handleRippleMouseEnter}" @mouseleave="${this.handleRippleMouseLeave}" @touchstart="${this.handleRippleTouchStart}" @touchend="${this.handleRippleDeactivate}" @touchcancel="${this.handleRippleDeactivate}"><div class="mdc-radio__background"><div class="mdc-radio__outer-circle"></div><div class="mdc-radio__inner-circle"></div></div>${this.renderRipple()}</div>`}handleRippleMouseDown(e){const t=()=>{window.removeEventListener("mouseup",t),this.handleRippleDeactivate()};window.addEventListener("mouseup",t),this.rippleHandlers.startPress(e)}handleRippleTouchStart(e){this.rippleHandlers.startPress(e)}handleRippleDeactivate(){this.rippleHandlers.endPress()}handleRippleMouseEnter(){this.rippleHandlers.startHover()}handleRippleMouseLeave(){this.rippleHandlers.endHover()}handleRippleFocus(){this.rippleHandlers.startFocus()}changeHandler(){this.checked=this.formElement.checked}}a([Se(".mdc-radio")],ql.prototype,"mdcRoot",void 0),a([Se("input")],ql.prototype,"formElement",void 0),a([ke()],ql.prototype,"useStateLayerCustomProperties",void 0),a([xe({type:Boolean})],ql.prototype,"global",void 0),a([xe({type:Boolean,reflect:!0})],ql.prototype,"checked",null),a([xe({type:Boolean}),Ao((function(e){this.mdcFoundation.setDisabled(e)}))],ql.prototype,"disabled",void 0),a([xe({type:String}),Ao((function(e){this._handleUpdatedValue(e)}))],ql.prototype,"value",void 0),a([xe({type:String})],ql.prototype,"name",void 0),a([xe({type:Boolean})],ql.prototype,"reducedTouchTarget",void 0),a([xe({type:Number})],ql.prototype,"formElementTabIndex",void 0),a([ke()],ql.prototype,"focused",void 0),a([ke()],ql.prototype,"shouldRenderRipple",void 0),a([$e("mwc-ripple")],ql.prototype,"ripple",void 0),a([fo,xe({attribute:"aria-label"})],ql.prototype,"ariaLabel",void 0),a([fo,xe({attribute:"aria-labelledby"})],ql.prototype,"ariaLabelledBy",void 0),a([_e({passive:!0})],ql.prototype,"handleRippleTouchStart",null);const Wl=f`.mdc-touch-target-wrapper{display:inline}.mdc-radio{padding:calc((40px - 20px)/ 2)}.mdc-radio .mdc-radio__native-control:enabled:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle{border-color:rgba(0,0,0,.54)}.mdc-radio .mdc-radio__native-control:enabled:checked+.mdc-radio__background .mdc-radio__outer-circle{border-color:#018786;border-color:var(--mdc-theme-secondary,#018786)}.mdc-radio .mdc-radio__native-control:enabled+.mdc-radio__background .mdc-radio__inner-circle{border-color:#018786;border-color:var(--mdc-theme-secondary,#018786)}.mdc-radio .mdc-radio__native-control:disabled:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle,.mdc-radio [aria-disabled=true] .mdc-radio__native-control:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle{border-color:rgba(0,0,0,.38)}.mdc-radio .mdc-radio__native-control:disabled:checked+.mdc-radio__background .mdc-radio__outer-circle,.mdc-radio [aria-disabled=true] .mdc-radio__native-control:checked+.mdc-radio__background .mdc-radio__outer-circle{border-color:rgba(0,0,0,.38)}.mdc-radio .mdc-radio__native-control:disabled+.mdc-radio__background .mdc-radio__inner-circle,.mdc-radio [aria-disabled=true] .mdc-radio__native-control+.mdc-radio__background .mdc-radio__inner-circle{border-color:rgba(0,0,0,.38)}.mdc-radio .mdc-radio__background::before{background-color:#018786;background-color:var(--mdc-theme-secondary,#018786)}.mdc-radio .mdc-radio__background::before{top:calc(-1 * (40px - 20px)/ 2);left:calc(-1 * (40px - 20px)/ 2);width:40px;height:40px}.mdc-radio .mdc-radio__native-control{top:calc((40px - 40px)/ 2);right:calc((40px - 40px)/ 2);left:calc((40px - 40px)/ 2);width:40px;height:40px}@media screen and (forced-colors:active),(-ms-high-contrast:active){.mdc-radio.mdc-radio--disabled .mdc-radio__native-control:disabled:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle,.mdc-radio.mdc-radio--disabled [aria-disabled=true] .mdc-radio__native-control:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle{border-color:GrayText}.mdc-radio.mdc-radio--disabled .mdc-radio__native-control:disabled:checked+.mdc-radio__background .mdc-radio__outer-circle,.mdc-radio.mdc-radio--disabled [aria-disabled=true] .mdc-radio__native-control:checked+.mdc-radio__background .mdc-radio__outer-circle{border-color:GrayText}.mdc-radio.mdc-radio--disabled .mdc-radio__native-control:disabled+.mdc-radio__background .mdc-radio__inner-circle,.mdc-radio.mdc-radio--disabled [aria-disabled=true] .mdc-radio__native-control+.mdc-radio__background .mdc-radio__inner-circle{border-color:GrayText}}.mdc-radio{display:inline-block;position:relative;flex:0 0 auto;box-sizing:content-box;width:20px;height:20px;cursor:pointer;will-change:opacity,transform,border-color,color}.mdc-radio__background{display:inline-block;position:relative;box-sizing:border-box;width:20px;height:20px}.mdc-radio__background::before{position:absolute;transform:scale(0,0);border-radius:50%;opacity:0;pointer-events:none;content:"";transition:opacity 120ms 0s cubic-bezier(.4,0,.6,1),transform 120ms 0s cubic-bezier(.4,0,.6,1)}.mdc-radio__outer-circle{position:absolute;top:0;left:0;box-sizing:border-box;width:100%;height:100%;border-width:2px;border-style:solid;border-radius:50%;transition:border-color 120ms 0s cubic-bezier(.4,0,.6,1)}.mdc-radio__inner-circle{position:absolute;top:0;left:0;box-sizing:border-box;width:100%;height:100%;transform:scale(0,0);border-width:10px;border-style:solid;border-radius:50%;transition:transform 120ms 0s cubic-bezier(.4,0,.6,1),border-color 120ms 0s cubic-bezier(.4,0,.6,1)}.mdc-radio__native-control{position:absolute;margin:0;padding:0;opacity:0;cursor:inherit;z-index:1}.mdc-radio--touch{margin-top:4px;margin-bottom:4px;margin-right:4px;margin-left:4px}.mdc-radio--touch .mdc-radio__native-control{top:calc((40px - 48px)/ 2);right:calc((40px - 48px)/ 2);left:calc((40px - 48px)/ 2);width:48px;height:48px}.mdc-radio.mdc-ripple-upgraded--background-focused .mdc-radio__focus-ring,.mdc-radio:not(.mdc-ripple-upgraded):focus .mdc-radio__focus-ring{pointer-events:none;border:2px solid transparent;border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);height:100%;width:100%}@media screen and (forced-colors:active){.mdc-radio.mdc-ripple-upgraded--background-focused .mdc-radio__focus-ring,.mdc-radio:not(.mdc-ripple-upgraded):focus .mdc-radio__focus-ring{border-color:CanvasText}}.mdc-radio.mdc-ripple-upgraded--background-focused .mdc-radio__focus-ring::after,.mdc-radio:not(.mdc-ripple-upgraded):focus .mdc-radio__focus-ring::after{content:"";border:2px solid transparent;border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors:active){.mdc-radio.mdc-ripple-upgraded--background-focused .mdc-radio__focus-ring::after,.mdc-radio:not(.mdc-ripple-upgraded):focus .mdc-radio__focus-ring::after{border-color:CanvasText}}.mdc-radio__native-control:checked+.mdc-radio__background,.mdc-radio__native-control:disabled+.mdc-radio__background{transition:opacity 120ms 0s cubic-bezier(0,0,.2,1),transform 120ms 0s cubic-bezier(0,0,.2,1)}.mdc-radio__native-control:checked+.mdc-radio__background .mdc-radio__outer-circle,.mdc-radio__native-control:disabled+.mdc-radio__background .mdc-radio__outer-circle{transition:border-color 120ms 0s cubic-bezier(0,0,.2,1)}.mdc-radio__native-control:checked+.mdc-radio__background .mdc-radio__inner-circle,.mdc-radio__native-control:disabled+.mdc-radio__background .mdc-radio__inner-circle{transition:transform 120ms 0s cubic-bezier(0,0,.2,1),border-color 120ms 0s cubic-bezier(0,0,.2,1)}.mdc-radio--disabled{cursor:default;pointer-events:none}.mdc-radio__native-control:checked+.mdc-radio__background .mdc-radio__inner-circle{transform:scale(.5);transition:transform 120ms 0s cubic-bezier(0,0,.2,1),border-color 120ms 0s cubic-bezier(0,0,.2,1)}.mdc-radio__native-control:disabled+.mdc-radio__background,[aria-disabled=true] .mdc-radio__native-control+.mdc-radio__background{cursor:default}.mdc-radio__native-control:focus+.mdc-radio__background::before{transform:scale(1);opacity:.12;transition:opacity 120ms 0s cubic-bezier(0,0,.2,1),transform 120ms 0s cubic-bezier(0,0,.2,1)}:host{display:inline-block;outline:0}.mdc-radio{vertical-align:bottom}.mdc-radio .mdc-radio__native-control:enabled:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-unchecked-color,rgba(0,0,0,.54))}.mdc-radio .mdc-radio__native-control:disabled:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle,.mdc-radio [aria-disabled=true] .mdc-radio__native-control:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-disabled-color,rgba(0,0,0,.38))}.mdc-radio .mdc-radio__native-control:disabled:checked+.mdc-radio__background .mdc-radio__outer-circle,.mdc-radio [aria-disabled=true] .mdc-radio__native-control:checked+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-disabled-color,rgba(0,0,0,.38))}.mdc-radio .mdc-radio__native-control:disabled+.mdc-radio__background .mdc-radio__inner-circle,.mdc-radio [aria-disabled=true] .mdc-radio__native-control+.mdc-radio__background .mdc-radio__inner-circle{border-color:var(--mdc-radio-disabled-color,rgba(0,0,0,.38))}`;let Zl=class extends ql{};Zl.styles=[Wl],Zl=a([ye("mwc-radio")],Zl);let Kl=class extends _t{constructor(){super(...arguments),this.label="",this.name="",this.disabled=!1,this.checked=!1}static get styles(){return f`:host{display:inline-flex}mwc-radio{--mdc-theme-secondary:var(--mo-radio-accent-color, var(--mo-color-accent, #0077c8));--mdc-radio-touch-target-size:36px;--mdc-radio-ripple-size:36px;--mdc-radio-disabled-color:var(--mo-radio-disabled-color, var(--mo-color-gray-transparent, rgba(128, 128, 128, 0.5)));--mdc-radio-unchecked-color:var(--mo-radio-unchecked-color, var(--mo-color-foreground-transparent, rgb(48, 48, 48)));--mdc-radio-ink-color:var(--mo-radio-ink-color, var(--mo-color-accessible))}mwc-formfield::part(label){padding-inline-start:0;margin-inline-start:-2px;text-align:start}:host([disabled]) mwc-formfield::part(label){color:var(--mo-radio-disabled-color,var(--mo-color-gray-transparent,rgba(128,128,128,.5)))}`}get template(){return Z`<mwc-formfield label="${this.label}"><mwc-radio reducedTouchTarget global name="${this.name}" ?disabled="${this.disabled}" ?checked="${this.checked}" @checked="${this.handleChange.bind(this)}"></mwc-radio></mwc-formfield>`}handleChange(e){e.stopImmediatePropagation(),this.checked=e.target.checked,this.change.dispatch(this.checked)}};a([Ht()],Kl.prototype,"change",void 0),a([Pt()],Kl.prototype,"label",void 0),a([Pt()],Kl.prototype,"name",void 0),a([Xt()],Kl.prototype,"disabled",void 0),a([Pt({type:Boolean})],Kl.prototype,"checked",void 0),Kl=a([Ct("mo-radio")],Kl),Io.addInitializer((async e=>{var t;const o=e;await o.updateComplete,null===(t=o.renderRoot.querySelector("label"))||void 0===t||t.setAttribute("part","label")}));let Xl=class extends Ll{constructor(){super(...arguments),this.checked=!1,this.role="menuitemradio"}get selected(){return this.checked}set selected(e){this.checked=e}get selectionControlTemplate(){return Z`<mo-radio tabindex="-1" name="${ht(this.name)}" ?checked="${this.checked}" @click="${e=>e.stopImmediatePropagation()}" @change="${e=>this.handleChange(e.detail)}"></mo-radio>`}handleClick(){this.handleChange(!0)}handleChange(e){this.checked!==e&&(this.checked=e,this.change.dispatch(e))}};function Jl(e,t,o){var i=function(e,t){var o=new Map;Ql.has(e)||Ql.set(e,{isEnabled:!0,getObservers:function(e){var t=o.get(e)||[];return o.has(e)||o.set(e,t),t},installedProperties:new Set});var i=Ql.get(e);if(i.installedProperties.has(t))return i;var r=function(e,t){var o,i=e;for(;i&&!(o=Object.getOwnPropertyDescriptor(i,t));)i=Object.getPrototypeOf(i);return o}(e,t)||{configurable:!0,enumerable:!0,value:e[t],writable:!0},a=n({},r),s=r.get,l=r.set;if("value"in r){delete a.value,delete a.writable;var d=r.value;s=function(){return d},r.writable&&(l=function(e){d=e})}s&&(a.get=function(){return s.call(this)});l&&(a.set=function(e){var o,r,n=s?s.call(this):e;if(l.call(this,e),i.isEnabled&&(!s||e!==n))try{for(var a=c(i.getObservers(t)),d=a.next();!d.done;d=a.next()){(0,d.value)(e,n)}}catch(e){o={error:e}}finally{try{d&&!d.done&&(r=a.return)&&r.call(a)}finally{if(o)throw o.error}}});return i.installedProperties.add(t),Object.defineProperty(e,t,a),i}(e,t),r=i.getObservers(t);return r.push(o),function(){r.splice(r.indexOf(o),1)}}a([Pt()],Xl.prototype,"name",void 0),a([Pt({type:Boolean})],Xl.prototype,"checked",void 0),a([Nt("click")],Xl.prototype,"handleClick",null),Xl=a([Ct("mo-radio-list-item")],Xl);var Ql=new WeakMap;function ed(e,t){var o=Ql.get(e);o&&(o.isEnabled=t)}var td,od,id=function(e){function t(t){var o=e.call(this,t)||this;return o.unobserves=new Set,o}return o(t,e),t.prototype.destroy=function(){e.prototype.destroy.call(this),this.unobserve()},t.prototype.observe=function(e,t){var o,i,r=this,n=[];try{for(var a=c(Object.keys(t)),s=a.next();!s.done;s=a.next()){var l=s.value,d=t[l].bind(this);n.push(this.observeProperty(e,l,d))}}catch(e){o={error:e}}finally{try{s&&!s.done&&(i=a.return)&&i.call(a)}finally{if(o)throw o.error}}var h=function(){var e,t;try{for(var o=c(n),i=o.next();!i.done;i=o.next()){(0,i.value)()}}catch(t){e={error:t}}finally{try{i&&!i.done&&(t=o.return)&&t.call(o)}finally{if(e)throw e.error}}r.unobserves.delete(h)};return this.unobserves.add(h),h},t.prototype.observeProperty=function(e,t,o){return Jl(e,t,o)},t.prototype.setObserversEnabled=function(e,t){ed(e,t)},t.prototype.unobserve=function(){var e,t;try{for(var o=c(function(e,t,o){if(o||2===arguments.length)for(var i,r=0,n=t.length;r<n;r++)!i&&r in t||(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))}([],l(this.unobserves))),i=o.next();!i.done;i=o.next()){(0,i.value)()}}catch(t){e={error:t}}finally{try{i&&!i.done&&(t=o.return)&&t.call(o)}finally{if(e)throw e.error}}},t}(io);!function(e){e.PROCESSING="mdc-switch--processing",e.SELECTED="mdc-switch--selected",e.UNSELECTED="mdc-switch--unselected"}(td||(td={})),function(e){e.RIPPLE=".mdc-switch__ripple"}(od||(od={}));var rd=function(e){function t(t){var o=e.call(this,t)||this;return o.handleClick=o.handleClick.bind(o),o}return o(t,e),t.prototype.init=function(){this.observe(this.adapter.state,{disabled:this.stopProcessingIfDisabled,processing:this.stopProcessingIfDisabled})},t.prototype.handleClick=function(){this.adapter.state.disabled||(this.adapter.state.selected=!this.adapter.state.selected)},t.prototype.stopProcessingIfDisabled=function(){this.adapter.state.disabled&&(this.adapter.state.processing=!1)},t}(id);!function(e){function t(){return null!==e&&e.apply(this,arguments)||this}o(t,e),t.prototype.init=function(){e.prototype.init.call(this),this.observe(this.adapter.state,{disabled:this.onDisabledChange,processing:this.onProcessingChange,selected:this.onSelectedChange})},t.prototype.initFromDOM=function(){this.setObserversEnabled(this.adapter.state,!1),this.adapter.state.selected=this.adapter.hasClass(td.SELECTED),this.onSelectedChange(),this.adapter.state.disabled=this.adapter.isDisabled(),this.adapter.state.processing=this.adapter.hasClass(td.PROCESSING),this.setObserversEnabled(this.adapter.state,!0),this.stopProcessingIfDisabled()},t.prototype.onDisabledChange=function(){this.adapter.setDisabled(this.adapter.state.disabled)},t.prototype.onProcessingChange=function(){this.toggleClass(this.adapter.state.processing,td.PROCESSING)},t.prototype.onSelectedChange=function(){this.adapter.setAriaChecked(String(this.adapter.state.selected)),this.toggleClass(this.adapter.state.selected,td.SELECTED),this.toggleClass(!this.adapter.state.selected,td.UNSELECTED)},t.prototype.toggleClass=function(e,t){e?this.adapter.addClass(t):this.adapter.removeClass(t)}}(rd);class nd extends Eo{constructor(){super(...arguments),this.processing=!1,this.selected=!1,this.ariaLabel="",this.ariaLabelledBy="",this.shouldRenderRipple=!1,this.rippleHandlers=new vo((()=>(this.shouldRenderRipple=!0,this.ripple))),this.name="",this.value="on",this.mdcFoundationClass=rd}setFormData(e){this.name&&this.selected&&e.append(this.name,this.value)}click(){var e,t;this.disabled||(null===(e=this.mdcRoot)||void 0===e||e.focus(),null===(t=this.mdcRoot)||void 0===t||t.click())}render(){return Z`<button type="button" class="mdc-switch ${lt(this.getRenderClasses())}" role="switch" aria-checked="${this.selected}" aria-label="${ht(this.ariaLabel||void 0)}" aria-labelledby="${ht(this.ariaLabelledBy||void 0)}" .disabled="${this.disabled}" @click="${this.handleClick}" @focus="${this.handleFocus}" @blur="${this.handleBlur}" @pointerdown="${this.handlePointerDown}" @pointerup="${this.handlePointerUp}" @pointerenter="${this.handlePointerEnter}" @pointerleave="${this.handlePointerLeave}"><div class="mdc-switch__track"></div><div class="mdc-switch__handle-track">${this.renderHandle()}</div></button> <input type="checkbox" aria-hidden="true" name="${this.name}" .checked="${this.selected}" .value="${this.value}">`}getRenderClasses(){return{"mdc-switch--processing":this.processing,"mdc-switch--selected":this.selected,"mdc-switch--unselected":!this.selected}}renderHandle(){return Z`<div class="mdc-switch__handle">${this.renderShadow()} ${this.renderRipple()}<div class="mdc-switch__icons">${this.renderOnIcon()} ${this.renderOffIcon()}</div></div>`}renderShadow(){return Z`<div class="mdc-switch__shadow"><div class="mdc-elevation-overlay"></div></div>`}renderRipple(){return this.shouldRenderRipple?Z`<div class="mdc-switch__ripple"><mwc-ripple internalUseStateLayerCustomProperties .disabled="${this.disabled}" unbounded></mwc-ripple></div>`:Z``}renderOnIcon(){return Z`<svg class="mdc-switch__icon mdc-switch__icon--on" viewBox="0 0 24 24"><path d="M19.69,5.23L8.96,15.96l-4.23-4.23L2.96,13.5l6,6L21.46,7L19.69,5.23z"/></svg>`}renderOffIcon(){return Z`<svg class="mdc-switch__icon mdc-switch__icon--off" viewBox="0 0 24 24"><path d="M20 13H4v-2h16v2z"/></svg>`}handleClick(){var e;null===(e=this.mdcFoundation)||void 0===e||e.handleClick()}handleFocus(){this.rippleHandlers.startFocus()}handleBlur(){this.rippleHandlers.endFocus()}handlePointerDown(e){e.target.setPointerCapture(e.pointerId),this.rippleHandlers.startPress(e)}handlePointerUp(){this.rippleHandlers.endPress()}handlePointerEnter(){this.rippleHandlers.startHover()}handlePointerLeave(){this.rippleHandlers.endHover()}createAdapter(){return{state:this}}}a([xe({type:Boolean})],nd.prototype,"processing",void 0),a([xe({type:Boolean})],nd.prototype,"selected",void 0),a([fo,xe({type:String,attribute:"aria-label"})],nd.prototype,"ariaLabel",void 0),a([fo,xe({type:String,attribute:"aria-labelledby"})],nd.prototype,"ariaLabelledBy",void 0),a([$e("mwc-ripple")],nd.prototype,"ripple",void 0),a([ke()],nd.prototype,"shouldRenderRipple",void 0),a([xe({type:String,reflect:!0})],nd.prototype,"name",void 0),a([xe({type:String})],nd.prototype,"value",void 0),a([Se("input")],nd.prototype,"formElement",void 0),a([Se(".mdc-switch")],nd.prototype,"mdcRoot",void 0),a([_e({passive:!0})],nd.prototype,"handlePointerDown",null);const ad=f`.mdc-elevation-overlay{position:absolute;border-radius:inherit;pointer-events:none;opacity:0;opacity:var(--mdc-elevation-overlay-opacity,0);transition:opacity 280ms cubic-bezier(.4,0,.2,1);background-color:#fff;background-color:var(--mdc-elevation-overlay-color,#fff)}.mdc-switch{align-items:center;background:0 0;border:none;cursor:pointer;display:inline-flex;flex-shrink:0;margin:0;outline:0;overflow:visible;padding:0;position:relative}.mdc-switch:disabled{cursor:default;pointer-events:none}.mdc-switch__track{overflow:hidden;position:relative;width:100%}.mdc-switch__track::after,.mdc-switch__track::before{border:1px solid transparent;border-radius:inherit;box-sizing:border-box;content:"";height:100%;left:0;position:absolute;width:100%}@media screen and (forced-colors:active){.mdc-switch__track::after,.mdc-switch__track::before{border-color:currentColor}}.mdc-switch__track::before{transition:transform 75ms 0s cubic-bezier(0,0,.2,1);transform:translateX(0)}.mdc-switch__track::after{transition:transform 75ms 0s cubic-bezier(.4,0,.6,1);transform:translateX(-100%)}.mdc-switch__track[dir=rtl]::after,[dir=rtl] .mdc-switch__track::after{transform:translateX(100%)}.mdc-switch--selected .mdc-switch__track::before{transition:transform 75ms 0s cubic-bezier(.4,0,.6,1);transform:translateX(100%)}.mdc-switch--selected .mdc-switch__track[dir=rtl]::before,[dir=rtl] .mdc-switch--selected .mdc-switch__track::before{transform:translateX(-100%)}.mdc-switch--selected .mdc-switch__track::after{transition:transform 75ms 0s cubic-bezier(0,0,.2,1);transform:translateX(0)}.mdc-switch__handle-track{height:100%;pointer-events:none;position:absolute;top:0;transition:transform 75ms 0s cubic-bezier(.4,0,.2,1);left:0;right:auto;transform:translateX(0)}.mdc-switch__handle-track[dir=rtl],[dir=rtl] .mdc-switch__handle-track{left:auto;right:0}.mdc-switch--selected .mdc-switch__handle-track{transform:translateX(100%)}.mdc-switch--selected .mdc-switch__handle-track[dir=rtl],[dir=rtl] .mdc-switch--selected .mdc-switch__handle-track{transform:translateX(-100%)}.mdc-switch__handle{display:flex;pointer-events:auto;position:absolute;top:50%;transform:translateY(-50%);left:0;right:auto}.mdc-switch__handle[dir=rtl],[dir=rtl] .mdc-switch__handle{left:auto;right:0}.mdc-switch__handle::after,.mdc-switch__handle::before{border:1px solid transparent;border-radius:inherit;box-sizing:border-box;content:"";width:100%;height:100%;left:0;position:absolute;top:0;transition:background-color 75ms 0s cubic-bezier(.4,0,.2,1),border-color 75ms 0s cubic-bezier(.4,0,.2,1);z-index:-1}@media screen and (forced-colors:active){.mdc-switch__handle::after,.mdc-switch__handle::before{border-color:currentColor}}.mdc-switch__shadow{border-radius:inherit;bottom:0;left:0;position:absolute;right:0;top:0}.mdc-elevation-overlay{bottom:0;left:0;right:0;top:0}.mdc-switch__ripple{left:50%;position:absolute;top:50%;transform:translate(-50%,-50%);z-index:-1}.mdc-switch:disabled .mdc-switch__ripple{display:none}.mdc-switch__icons{height:100%;position:relative;width:100%;z-index:1}.mdc-switch__icon{bottom:0;left:0;margin:auto;position:absolute;right:0;top:0;opacity:0;transition:opacity 30ms 0s cubic-bezier(.4,0,1,1)}.mdc-switch--selected .mdc-switch__icon--on,.mdc-switch--unselected .mdc-switch__icon--off{opacity:1;transition:opacity 45ms 30ms cubic-bezier(0,0,.2,1)}:host{display:inline-flex;outline:0}input{display:none}.mdc-switch{width:36px;width:var(--mdc-switch-track-width,36px)}.mdc-switch.mdc-switch--selected:enabled .mdc-switch__handle::after{background:#6200ee;background:var(--mdc-switch-selected-handle-color,var(--mdc-theme-primary,#6200ee))}.mdc-switch.mdc-switch--selected:enabled:hover:not(:focus):not(:active) .mdc-switch__handle::after{background:#310077;background:var(--mdc-switch-selected-hover-handle-color,#310077)}.mdc-switch.mdc-switch--selected:enabled:focus:not(:active) .mdc-switch__handle::after{background:#310077;background:var(--mdc-switch-selected-focus-handle-color,#310077)}.mdc-switch.mdc-switch--selected:enabled:active .mdc-switch__handle::after{background:#310077;background:var(--mdc-switch-selected-pressed-handle-color,#310077)}.mdc-switch.mdc-switch--selected:disabled .mdc-switch__handle::after{background:#424242;background:var(--mdc-switch-disabled-selected-handle-color,#424242)}.mdc-switch.mdc-switch--unselected:enabled .mdc-switch__handle::after{background:#616161;background:var(--mdc-switch-unselected-handle-color,#616161)}.mdc-switch.mdc-switch--unselected:enabled:hover:not(:focus):not(:active) .mdc-switch__handle::after{background:#212121;background:var(--mdc-switch-unselected-hover-handle-color,#212121)}.mdc-switch.mdc-switch--unselected:enabled:focus:not(:active) .mdc-switch__handle::after{background:#212121;background:var(--mdc-switch-unselected-focus-handle-color,#212121)}.mdc-switch.mdc-switch--unselected:enabled:active .mdc-switch__handle::after{background:#212121;background:var(--mdc-switch-unselected-pressed-handle-color,#212121)}.mdc-switch.mdc-switch--unselected:disabled .mdc-switch__handle::after{background:#424242;background:var(--mdc-switch-disabled-unselected-handle-color,#424242)}.mdc-switch .mdc-switch__handle::before{background:#fff;background:var(--mdc-switch-handle-surface-color,var(--mdc-theme-surface,#fff))}.mdc-switch:enabled .mdc-switch__shadow{--mdc-elevation-box-shadow-for-gss:0px 2px 1px -1px rgba(0, 0, 0, 0.2),0px 1px 1px 0px rgba(0, 0, 0, 0.14),0px 1px 3px 0px rgba(0, 0, 0, 0.12);box-shadow:0 2px 1px -1px rgba(0,0,0,.2),0 1px 1px 0 rgba(0,0,0,.14),0 1px 3px 0 rgba(0,0,0,.12);box-shadow:var(--mdc-switch-handle-elevation,var(--mdc-elevation-box-shadow-for-gss))}.mdc-switch:disabled .mdc-switch__shadow{--mdc-elevation-box-shadow-for-gss:0px 0px 0px 0px rgba(0, 0, 0, 0.2),0px 0px 0px 0px rgba(0, 0, 0, 0.14),0px 0px 0px 0px rgba(0, 0, 0, 0.12);box-shadow:0 0 0 0 rgba(0,0,0,.2),0 0 0 0 rgba(0,0,0,.14),0 0 0 0 rgba(0,0,0,.12);box-shadow:var(--mdc-switch-disabled-handle-elevation,var(--mdc-elevation-box-shadow-for-gss))}.mdc-switch .mdc-switch__focus-ring-wrapper,.mdc-switch .mdc-switch__handle{height:20px;height:var(--mdc-switch-handle-height,20px)}.mdc-switch:disabled .mdc-switch__handle::after{opacity:.38;opacity:var(--mdc-switch-disabled-handle-opacity,.38)}.mdc-switch .mdc-switch__handle{border-radius:10px;border-radius:var(--mdc-switch-handle-shape,10px)}.mdc-switch .mdc-switch__handle{width:20px;width:var(--mdc-switch-handle-width,20px)}.mdc-switch .mdc-switch__handle-track{width:calc(100% - 20px);width:calc(100% - var(--mdc-switch-handle-width,20px))}.mdc-switch.mdc-switch--selected:enabled .mdc-switch__icon{fill:#fff;fill:var(--mdc-switch-selected-icon-color,var(--mdc-theme-on-primary,#fff))}.mdc-switch.mdc-switch--selected:disabled .mdc-switch__icon{fill:#fff;fill:var(--mdc-switch-disabled-selected-icon-color,var(--mdc-theme-on-primary,#fff))}.mdc-switch.mdc-switch--unselected:enabled .mdc-switch__icon{fill:#fff;fill:var(--mdc-switch-unselected-icon-color,var(--mdc-theme-on-primary,#fff))}.mdc-switch.mdc-switch--unselected:disabled .mdc-switch__icon{fill:#fff;fill:var(--mdc-switch-disabled-unselected-icon-color,var(--mdc-theme-on-primary,#fff))}.mdc-switch.mdc-switch--selected:disabled .mdc-switch__icons{opacity:.38;opacity:var(--mdc-switch-disabled-selected-icon-opacity,.38)}.mdc-switch.mdc-switch--unselected:disabled .mdc-switch__icons{opacity:.38;opacity:var(--mdc-switch-disabled-unselected-icon-opacity,.38)}.mdc-switch.mdc-switch--selected .mdc-switch__icon{width:18px;width:var(--mdc-switch-selected-icon-size,18px);height:18px;height:var(--mdc-switch-selected-icon-size,18px)}.mdc-switch.mdc-switch--unselected .mdc-switch__icon{width:18px;width:var(--mdc-switch-unselected-icon-size,18px);height:18px;height:var(--mdc-switch-unselected-icon-size,18px)}.mdc-switch .mdc-switch__ripple{height:48px;height:var(--mdc-switch-state-layer-size,48px);width:48px;width:var(--mdc-switch-state-layer-size,48px)}.mdc-switch .mdc-switch__track{height:14px;height:var(--mdc-switch-track-height,14px)}.mdc-switch:disabled .mdc-switch__track{opacity:.12;opacity:var(--mdc-switch-disabled-track-opacity,.12)}.mdc-switch:enabled .mdc-switch__track::after{background:#d7bbff;background:var(--mdc-switch-selected-track-color,#d7bbff)}.mdc-switch:enabled:hover:not(:focus):not(:active) .mdc-switch__track::after{background:#d7bbff;background:var(--mdc-switch-selected-hover-track-color,#d7bbff)}.mdc-switch:enabled:focus:not(:active) .mdc-switch__track::after{background:#d7bbff;background:var(--mdc-switch-selected-focus-track-color,#d7bbff)}.mdc-switch:enabled:active .mdc-switch__track::after{background:#d7bbff;background:var(--mdc-switch-selected-pressed-track-color,#d7bbff)}.mdc-switch:disabled .mdc-switch__track::after{background:#424242;background:var(--mdc-switch-disabled-selected-track-color,#424242)}.mdc-switch:enabled .mdc-switch__track::before{background:#e0e0e0;background:var(--mdc-switch-unselected-track-color,#e0e0e0)}.mdc-switch:enabled:hover:not(:focus):not(:active) .mdc-switch__track::before{background:#e0e0e0;background:var(--mdc-switch-unselected-hover-track-color,#e0e0e0)}.mdc-switch:enabled:focus:not(:active) .mdc-switch__track::before{background:#e0e0e0;background:var(--mdc-switch-unselected-focus-track-color,#e0e0e0)}.mdc-switch:enabled:active .mdc-switch__track::before{background:#e0e0e0;background:var(--mdc-switch-unselected-pressed-track-color,#e0e0e0)}.mdc-switch:disabled .mdc-switch__track::before{background:#424242;background:var(--mdc-switch-disabled-unselected-track-color,#424242)}.mdc-switch .mdc-switch__track{border-radius:7px;border-radius:var(--mdc-switch-track-shape,7px)}.mdc-switch.mdc-switch--selected{--mdc-ripple-focus-state-layer-color:var(--mdc-switch-selected-focus-state-layer-color, var(--mdc-theme-primary, #6200ee));--mdc-ripple-focus-state-layer-opacity:var(--mdc-switch-selected-focus-state-layer-opacity, 0.12);--mdc-ripple-hover-state-layer-color:var(--mdc-switch-selected-hover-state-layer-color, var(--mdc-theme-primary, #6200ee));--mdc-ripple-hover-state-layer-opacity:var(--mdc-switch-selected-hover-state-layer-opacity, 0.04);--mdc-ripple-pressed-state-layer-color:var(--mdc-switch-selected-pressed-state-layer-color, var(--mdc-theme-primary, #6200ee));--mdc-ripple-pressed-state-layer-opacity:var(--mdc-switch-selected-pressed-state-layer-opacity, 0.1)}.mdc-switch.mdc-switch--selected:enabled:focus:not(:active){--mdc-ripple-hover-state-layer-color:var(--mdc-switch-selected-focus-state-layer-color, var(--mdc-theme-primary, #6200ee))}.mdc-switch.mdc-switch--selected:enabled:active{--mdc-ripple-hover-state-layer-color:var(--mdc-switch-selected-pressed-state-layer-color, var(--mdc-theme-primary, #6200ee))}.mdc-switch.mdc-switch--unselected{--mdc-ripple-focus-state-layer-color:var(--mdc-switch-unselected-focus-state-layer-color, #424242);--mdc-ripple-focus-state-layer-opacity:var(--mdc-switch-unselected-focus-state-layer-opacity, 0.12);--mdc-ripple-hover-state-layer-color:var(--mdc-switch-unselected-hover-state-layer-color, #424242);--mdc-ripple-hover-state-layer-opacity:var(--mdc-switch-unselected-hover-state-layer-opacity, 0.04);--mdc-ripple-pressed-state-layer-color:var(--mdc-switch-unselected-pressed-state-layer-color, #424242);--mdc-ripple-pressed-state-layer-opacity:var(--mdc-switch-unselected-pressed-state-layer-opacity, 0.1)}.mdc-switch.mdc-switch--unselected:enabled:focus:not(:active){--mdc-ripple-hover-state-layer-color:var(--mdc-switch-unselected-focus-state-layer-color, #424242)}.mdc-switch.mdc-switch--unselected:enabled:active{--mdc-ripple-hover-state-layer-color:var(--mdc-switch-unselected-pressed-state-layer-color, #424242)}@media screen and (forced-colors:active),(-ms-high-contrast:active){.mdc-switch:disabled .mdc-switch__handle::after{opacity:1;opacity:var(--mdc-switch-disabled-handle-opacity,1)}.mdc-switch.mdc-switch--selected:enabled .mdc-switch__icon{fill:ButtonText;fill:var(--mdc-switch-selected-icon-color,ButtonText)}.mdc-switch.mdc-switch--selected:disabled .mdc-switch__icon{fill:GrayText;fill:var(--mdc-switch-disabled-selected-icon-color,GrayText)}.mdc-switch.mdc-switch--unselected:enabled .mdc-switch__icon{fill:ButtonText;fill:var(--mdc-switch-unselected-icon-color,ButtonText)}.mdc-switch.mdc-switch--unselected:disabled .mdc-switch__icon{fill:GrayText;fill:var(--mdc-switch-disabled-unselected-icon-color,GrayText)}.mdc-switch.mdc-switch--selected:disabled .mdc-switch__icons{opacity:1;opacity:var(--mdc-switch-disabled-selected-icon-opacity,1)}.mdc-switch.mdc-switch--unselected:disabled .mdc-switch__icons{opacity:1;opacity:var(--mdc-switch-disabled-unselected-icon-opacity,1)}.mdc-switch:disabled .mdc-switch__track{opacity:1;opacity:var(--mdc-switch-disabled-track-opacity,1)}}`;let sd=class extends nd{};sd.styles=[ad],sd=a([ye("mwc-switch")],sd);let cd=class extends _t{constructor(){super(...arguments),this.label="",this.disabled=!1,this.selected=!1}static get styles(){return f`:host{display:inline-flex}mwc-switch{--mdc-theme-primary:var(--mo-switch-accent-color, var(--mo-color-accent, #0077c8));--mdc-theme-secondary:var(--mdc-theme-primary);--mdc-switch-touch-target-size:36px;--mdc-switch-ripple-size:36px;--mdc-switch-selected-handle-color:var(--mdc-theme-primary);--mdc-switch-selected-focus-handle-color:var(--mdc-switch-selected-handle-color);--mdc-switch-selected-hover-handle-color:var(--mdc-switch-selected-handle-color);--mdc-switch-selected-pressed-handle-color:var(--mdc-switch-selected-handle-color);--mdc-switch-selected-track-color:var(--mo-switch-selected-track-color, rgba(var(--mo-color-accent-base, 0, 119, 200), 0.5));--mdc-switch-selected-focus-track-color:var(--mdc-switch-selected-track-color);--mdc-switch-selected-hover-track-color:var(--mdc-switch-selected-track-color);--mdc-switch-selected-pressed-track-color:var(--mdc-switch-selected-track-color);--mdc-switch-selected-focus-state-layer-color:var(--mdc-theme-primary);--mdc-switch-selected-hover-state-layer-color:var(--mdc-theme-primary);--mdc-switch-selected-pressed-state-layer-color:var(--mdc-theme-primary);--mdc-switch-selected-icon-color:var(--mo-switch-selected-icon-color, var(--mo-color-accessible, #ffffff));--mdc-switch-unselected-handle-color:var(--mo-switch-unselected-handle-color, var(--mo-color-foreground, #303030));--mdc-switch-unselected-focus-handle-color:var(--mdc-switch-unselected-handle-color);--mdc-switch-unselected-hover-handle-color:var(--mdc-switch-unselected-handle-color);--mdc-switch-unselected-pressed-handle-color:var(--mdc-switch-unselected-handle-color);--mdc-switch-unselected-track-color:var(--mo-switch-unselected-track-color, rgba(var(--mo-color-foreground-base, 0, 0, 0), 0.25));--mdc-switch-unselected-focus-track-color:var(--mdc-switch-unselected-track-color);--mdc-switch-unselected-hover-track-color:var(--mdc-switch-unselected-track-color);--mdc-switch-unselected-pressed-track-color:var(--mdc-switch-unselected-track-color);--mdc-switch-unselected-state-layer-color:var(--mo-switch-unselected-state-layer-color, var(--mo-color-foreground, #303030));--mdc-switch-unselected-focus-state-layer-color:var(--mdc-switch-unselected-state-layer-color);--mdc-switch-unselected-hover-state-layer-color:var(--mdc-switch-unselected-state-layer-color);--mdc-switch-unselected-pressed-state-layer-color:var(--mdc-switch-unselected-state-layer-color);--mdc-switch-unselected-icon-color:var(--mo-color-background)}mwc-formfield::part(label){padding-inline-start:0;text-align:start}:host([disabled]) mwc-formfield::part(label){color:var(--mo-switch-disabled-color,var(--mo-color-gray-transparent,rgba(128,128,128,.5)))}`}get template(){return Z`<mwc-formfield label="${this.label}"><mwc-switch ?disabled="${this.disabled}" ?selected="${this.selected}" @click="${this.handleClick.bind(this)}"></mwc-switch></mwc-formfield>`}handleClick(){this.selected=!this.selected,this.change.dispatch(this.selected)}};a([Ht()],cd.prototype,"change",void 0),a([Pt()],cd.prototype,"label",void 0),a([Xt()],cd.prototype,"disabled",void 0),a([Pt({type:Boolean})],cd.prototype,"selected",void 0),cd=a([Ct("mo-switch")],cd),Io.addInitializer((async e=>{var t;const o=e;await o.updateComplete,null===(t=o.renderRoot.querySelector("label"))||void 0===t||t.setAttribute("part","label")}));let ld=class extends Ll{constructor(){super(...arguments),this.selected=!1,this.role="menuitemradio"}get selectionControlTemplate(){return Z`<mo-switch tabindex="-1" ?selected="${this.selected}" @click="${e=>e.stopImmediatePropagation()}" @change="${e=>this.handleChange(e.detail)}"></mo-switch>`}handleClick(){this.handleChange(!this.selected)}handleChange(e){this.selected=e,this.change.dispatch(e)}};a([Pt({type:Boolean})],ld.prototype,"selected",void 0),a([Nt("click")],ld.prototype,"handleClick",null),ld=a([Ct("mo-switch-list-item")],ld);let dd=class extends Dl{constructor(){super(...arguments),this.open=!1,this.slotController=new Vo(this)}static get styles(){return f`${super.styles}:host{height:unset;min-height:48px;padding-inline-end:0}details{width:100%}summary{list-style:none}summary::-webkit-details-marker,summary::marker{display:none}slot[name=details]{display:block}mo-icon{margin-inline-end:16px}`}get hasDetails(){return this.slotController.hasAssignedElements("details")}get template(){return this.hasDetails?Z`<details ?open="${this.open}"><summary class="container" tabindex="-1">${super.template}<mo-icon icon="${this.open?"arrow_drop_up":"arrow_drop_down"}"></mo-icon></summary><slot name="details"></slot></details>`:super.template}handleItemKeyDown(e){this.focused&&("ArrowRight"===e.key&&(e.stopPropagation(),this.open=!0),"ArrowLeft"===e.key&&(e.stopPropagation(),this.open=!1))}async focusFirstChild(){await this.updateComplete;const e=this.slotController.getAssignedElements("details")[0];null==e||e.focus()}};a([Pt({type:Boolean,updated(){this.open&&this.focusFirstChild()}})],dd.prototype,"open",void 0),a([Nt({target:window,type:"keydown"})],dd.prototype,"handleItemKeyDown",null),dd=a([Ct("mo-collapsible-list-item")],dd);let hd=class extends Dl{constructor(){super(...arguments),this.role="menuitem"}get template(){return Z`${this.iconTemplate} ${super.template}`}get iconTemplate(){return this.icon?Z`<mo-icon style="opacity:.66" icon="${this.icon}"></mo-icon>`:kt}};a([Pt({reflect:!0})],hd.prototype,"icon",void 0),hd=a([Ct("mo-menu-item")],hd);let ud=class extends hd{constructor(){super(...arguments),this.open=!1,this.focusController=new Yo(this,{handleChange:(e,t)=>{t||e||this.hasCascadingFocus||(this.open=!1)}}),this.slotController=new Vo(this)}get hasCascadingFocus(){var e,t,o,i,r;return this.focusController.focused||null!==(o=null===(t=null===(e=this.subMenu)||void 0===e?void 0:e.list.listItemsKeyboardController)||void 0===t?void 0:t.hasFocus)&&void 0!==o&&o||null!==(r=null===(i=this.subMenu)||void 0===i?void 0:i.list.items.some((e=>e.hasCascadingFocus)))&&void 0!==r&&r}handleKeyDown(e){var t,o,i;if((this.focused||(null===(t=this.subMenu)||void 0===t?void 0:t.list.listItemsKeyboardController.hasFocus))&&!this.disabled){switch(e.key){case"Right":case"ArrowRight":this.open=!0;break;case"Left":case"ArrowLeft":if(null===(o=this.subMenu)||void 0===o?void 0:o.list.listItemsKeyboardController.hasFocus){this.open=!1;break}}return(null===(i=this.subMenu)||void 0===i?void 0:i.list.listItemsKeyboardController.hasFocus)?e.preventDefault():void 0}}static get styles(){return f`${super.styles}:host{position:relative}mo-icon[icon=chevron_right]{margin-inline-end:-4px}mo-menu{inset-inline-end:0;position:absolute;height:100%}`}get template(){return Z`${super.template} ${this.subMenuTemplate}`}get hasSubMenu(){return this.slotController.hasAssignedContent("submenu")}get subMenuTemplate(){return this.hasSubMenu?Z`<mo-icon icon="chevron_right"></mo-icon><mo-menu .anchor="${this}" ?open="${this.open}" @openChange="${e=>this.handleOpenChange(e.detail)}"><slot name="submenu"></slot></mo-menu>`:kt}handleOpenChange(e){var t,o;this.open=e,(null===(o=null===(t=this.subMenu)||void 0===t?void 0:t.list)||void 0===o?void 0:o.listItemsKeyboardController)&&(this.open?(this.subMenu.focus(),this.subMenu.list.focus(),this.subMenu.list.listItemsKeyboardController.unfocus()):(this.subMenu.list.listItemsKeyboardController.unfocus(),this.subMenu.list.blur(),this.subMenu.blur(),this.blur(),this.focus()))}};a([Pt({type:Boolean})],ud.prototype,"open",void 0),a([$t("mo-menu")],ud.prototype,"subMenu",void 0),a([Nt({target:document,type:"keydown"})],ud.prototype,"handleKeyDown",null),ud=a([Ct("mo-nested-menu-item")],ud);let pd=class extends _t{constructor(){super(...arguments),this.role="menu",this.tabIndex=-1,this.slotController=new Vo(this),this.menuKeyboardController=new kl(this),this.fixed=!1,this.manualOpen=!1}get items(){return this.list.items}openWith(e){e instanceof MouseEvent?(e.preventDefault(),e.stopImmediatePropagation(),this.coordinates=[e.clientX,e.clientY]):this.coordinates=e,this.setOpen(!0)}setOpen(e){this.open=e,this.openChange.dispatch(e),this.list&&(!1===this.open&&(this.list.listItemsKeyboardController.unfocus(),this.items.forEach((e=>{e instanceof ud&&(e.open=!1)}))),this.list.listItemsKeyboardController.forceFocused=this.open)}static get styles(){return f`:host{display:content;position:relative}mo-popover{border-radius:var(--mo-toolbar-border-radius,var(--mo-border-radius,4px));background:var(--mo-color-surface,#fff);border-radius:var(--mo-border-radius,4px);transition-duration:.1s;transition-property:opacity,transform}mo-popover[placement="${g("block-start")}"]{--mo-popover-transform-extra:scaleY(0.9);transform-origin:bottom}mo-popover[placement="${g("block-end")}"]{--mo-popover-transform-extra:scaleY(0.9);transform-origin:top}mo-popover[placement="${g("inline-start")}"]{--mo-popover-transform-extra:scaleY(0.9);transform-origin:right}mo-popover[placement="${g("inline-end")}"]{--mo-popover-transform-extra:scaleY(0.9);transform-origin:left}mo-popover[open]{--mo-popover-transform-extra:scaleY(1)}`}get template(){return Z`<mo-popover part="popover" .anchor="${this.anchor}" placement="${ht(this.placement)}" alignment="${ht(this.alignment)}" ?open="${this.open}" @openChange="${e=>this.setOpen(e.detail)}" ?fixed="${this.fixed}" .coordinates="${this.coordinates}"><mo-selectable-list selectionMode="${this.selectionMode}" .value="${this.value}" @change="${this.handleChange.bind(this)}"><slot></slot></mo-selectable-list></mo-popover>`}handleChange(e){this.value=e.detail,this.change.dispatch(e.detail)}};a([Ht()],pd.prototype,"change",void 0),a([Ht()],pd.prototype,"openChange",void 0),a([Pt({type:Object})],pd.prototype,"anchor",void 0),a([Pt()],pd.prototype,"placement",void 0),a([Pt()],pd.prototype,"alignment",void 0),a([Pt({type:Boolean,reflect:!0})],pd.prototype,"open",void 0),a([Pt({type:Boolean})],pd.prototype,"fixed",void 0),a([Pt({type:Boolean})],pd.prototype,"manualOpen",void 0),a([Pt()],pd.prototype,"opener",void 0),a([Pt()],pd.prototype,"selectionMode",void 0),a([Pt({type:Object})],pd.prototype,"value",void 0),a([Rt()],pd.prototype,"coordinates",void 0),a([$t("mo-popover")],pd.prototype,"popover",void 0),a([$t("mo-selectable-list")],pd.prototype,"list",void 0),pd=a([Ct("mo-menu")],pd);let md=class extends ud{};md=a([Ct("mo-context-menu-item")],md);const gd=Symbol("ConnectedInstances");var fd;let vd=fd=class extends pd{constructor(){super(...arguments),this.manualOpen=!0,this.fixed=!0}static get openInstance(){return[...fd.container].find((e=>e.open))}handleAnchorContextMenu(e){e.preventDefault(),this.openWith(e)}openWith(...e){this.open&&this.setOpen(!1);for(const e of[...fd.container].filter((e=>e!==this)))e.setOpen(!1);super.openWith(...e)}};vd.container=new Set,a([Nt({type:"contextmenu",target(){return this.anchor}})],vd.prototype,"handleAnchorContextMenu",null),a([(e,t)=>{Object.defineProperty(e,gd,{value:new Set}),e.addInitializer((e=>e.addController({hostConnected:()=>e.constructor[gd].add(e),hostDisconnected:()=>e.constructor[gd].delete(e)}))),Object.defineProperty(e,t,{configurable:!1,get(){return this[gd]}})}],vd,"container",void 0),vd=fd=a([Ct("mo-context-menu")],vd);const bd=Xe(class extends nt{constructor(e){if(super(e),e.type!==Ke)throw new Error("contextMenu can only be used on an element")}update(e,[t,o]){return this.isConnected&&(this.contextMenu||(this.contextMenu=new vd,null==o||o(this.contextMenu)),this.contextMenu.anchor=e.element,me(t,this.contextMenu),cl.instance.appendChild(this.contextMenu)),super.update(e,[t,o])}render(...e){return kt}disconnected(){var e;null===(e=this.contextMenu)||void 0===e||e.remove()}});let yd=class extends _t{static get styles(){return f`:host{display:inline-block}mo-popover{border-radius:var(--mo-toolbar-border-radius,var(--mo-border-radius,4px));transition-duration:175ms;transition-property:opacity,transform}mo-popover[placement="${g("block-start")}"]{transform:translateY(+10px)}mo-popover[placement="${g("block-end")}"]{transform:translateY(-10px)}mo-popover[placement="${g("inline-start")}"]{transform:translateX(+10px)}mo-popover[placement="${g("inline-end")}"]{transform:translateX(-10px)}mo-popover[open]{transform:translate(0)}:host(:not([rich])) mo-popover{background:var(--mo-tooltip-surface-color,var(--mo-color-surface,rgba(255,255,255,.75)));backdrop-filter:blur(40px);color:var(--mo-color-foreground);box-shadow:var(--mo-tooltip-shadow,var(--mo-shadow-deep,0 5px 5px -3px rgba(95,81,78,.2),0 8px 10px 1px rgba(95,81,78,.14),0 3px 14px 2px rgba(95,81,78,.12)));padding:8px}`}get template(){return Z`<mo-popover fixed .anchor="${this.anchor}" placement="${ht(this.placement)}" alignment="center" openOnFocus openOnHover><slot @slotChange="${()=>this.rich=this.childElementCount>0}"></slot></mo-popover>`}};a([Pt()],yd.prototype,"placement",void 0),a([Pt({type:Object})],yd.prototype,"anchor",void 0),a([Pt({type:Boolean,reflect:!0})],yd.prototype,"rich",void 0),a([$t("mo-popover")],yd.prototype,"popover",void 0),yd=a([Ct("mo-tooltip")],yd);const wd=Xe(class extends nt{constructor(e){if(super(e),e.type!==Ke)throw new Error("tooltip can only be used on an element")}update(e,[t,o]){var i;return this.isConnected&&(null!==(i=this.tooltip)&&void 0!==i||(this.tooltip=new yd),this.tooltip.anchor=e.element,o&&(this.tooltip.placement=o),"string"==typeof t&&(e.element.ariaLabel=t),me(t,this.tooltip),cl.instance.appendChild(this.tooltip)),super.update(e,[t,o])}render(...e){return kt}disconnected(){var e;null===(e=this.tooltip)||void 0===e||e.remove()}});class xd{constructor(e,{target:t,config:o,callback:i,skipInitial:r}){this.t=new Set,this.o=!1,this.i=!1,this.h=e,null!==t&&this.t.add(null!=t?t:e),this.l=o,this.o=null!=r?r:this.o,this.callback=i,window.MutationObserver?(this.u=new MutationObserver((e=>{this.handleChanges(e),this.h.requestUpdate()})),e.addController(this)):console.warn("MutationController error: browser does not support MutationObserver.")}handleChanges(e){var t;this.value=null===(t=this.callback)||void 0===t?void 0:t.call(this,e,this.u)}hostConnected(){for(const e of this.t)this.observe(e)}hostDisconnected(){this.disconnect()}async hostUpdated(){const e=this.u.takeRecords();(e.length||!this.o&&this.i)&&this.handleChanges(e),this.i=!1}observe(e){this.t.add(e),this.u.observe(e,this.l),this.i=!0,this.h.requestUpdate()}disconnect(){this.u.disconnect()}}const kd=Xe(class extends nt{constructor(e){if(super(e),this.observer=new MutationObserver(((...e)=>{var t;return null===(t=this.callback)||void 0===t?void 0:t.call(this,...e)})),e.type!==Ke)throw new Error("observeMutation can only be used on an element");const t=e;this.element=t.element,this.element instanceof HTMLSlotElement&&this.element.addEventListener("slotchange",(()=>{var e;return null===(e=this.callback)||void 0===e?void 0:e.call(this,[],this.observer)}))}render(e,t={childList:!0}){this.callback=e,this.observer.observe(this.element,t)}disconnected(){this.observer.disconnect()}});var Cd;let _d=Cd=class extends _t{constructor(){super(...arguments),this.direction="vertical",this.resizerTemplate=Z`<mo-splitter-resizer-knob></mo-splitter-resizer-knob>`,this.resizing=!1,this.mutationController=new xd(this,{config:{childList:!0},callback:()=>{this.items.forEach(((e,t)=>e.slot=`${Cd.itemSlotPrefix}${t}`)),this.requestUpdate()}})}get items(){return[...this.children].filter((e=>e instanceof Sd))}static get styles(){return f`:host{display:block}:host([resizing]){user-select:none}slot{display:block;position:relative}mo-splitter-resizer-host{z-index:1}`}handleMouseMove(e){const t=this.resizerElements.find((e=>e.resizing)),o=t?this.items[this.resizerElements.indexOf(t)]:void 0;if(o){const t=this.totalSize,{clientX:i,clientY:r}=e,{left:n,top:a,right:s,bottom:c}=o.getBoundingClientRect(),l=()=>{switch(this.direction){case"horizontal":return i-n;case"horizontal-reversed":return s-i;case"vertical":return r-a;case"vertical-reversed":return c-r;default:throw new Error(`Invalid direction: ${this.direction}`)}};o.size=l()/t*100+"%"}}get template(){return Z`<mo-flex wrap="nowrap" direction="${this.direction}" gap="${ht(this.gap)}" ${Dt({height:"100%",width:"100%"})}>${this.items.map(((e,t)=>this.getItemTemplate(e,t)))}</mo-flex>`}getItemTemplate(e,t){const o=Object.assign({flex:t===this.items.length-1||void 0===e.size?"1":void 0},"horizontal"===this.direction||"horizontal-reversed"===this.direction?{width:e.size,"min-width":e.min,"max-width":e.max}:{height:e.size,"min-height":e.min,"max-height":e.max});return Z`<slot name="${Cd.itemSlotPrefix}${t}" style="${vt(o)}"></slot>${this.getResizerHostTemplate(e,t)}`}getResizerHostTemplate(e,t){return t===this.items.length-1?kt:Z`<mo-splitter-resizer-host part="resizer-host" ?locked="${e.locked}" direction="${this.direction}" @resizeStart="${()=>this.resizing=!0}" @resizeStop="${()=>this.resizing=!1}">${this.resizerTemplate}</mo-splitter-resizer-host>`}get totalSize(){const e=this.getBoundingClientRect();return"horizontal"===this.direction||"horizontal-reversed"===this.direction?e.width:e.height}};_d.itemSlotPrefix="item-",a([Pt()],_d.prototype,"direction",void 0),a([Pt()],_d.prototype,"gap",void 0),a([Pt({type:Object})],_d.prototype,"resizerTemplate",void 0),a([Pt({type:Boolean,reflect:!0})],_d.prototype,"resizing",void 0),a([Tt("mo-splitter-resizer-host")],_d.prototype,"resizerElements",void 0),a([Nt({target:window,type:"mousemove"})],_d.prototype,"handleMouseMove",null),_d=Cd=a([Ct("mo-splitter")],_d);let Sd=class extends _t{constructor(){super(...arguments),this.min="100px",this.locked=!1}get splitter(){return this.parentElement}updated(...e){super.updated(...e),this.splitter.requestUpdate()}static get styles(){return f`:host{overflow:hidden;position:relative;display:block;height:100%;width:100%}::slotted(:first-child){height:100%;width:100%}`}get template(){return Z`<slot></slot>`}};a([Pt()],Sd.prototype,"size",void 0),a([Pt()],Sd.prototype,"min",void 0),a([Pt()],Sd.prototype,"max",void 0),a([Pt({type:Boolean})],Sd.prototype,"locked",void 0),Sd=a([Ct("mo-splitter-item")],Sd);let $d=class extends _t{constructor(){super(...arguments),this.resizing=!1,this.locked=!1,this.slotController=new Vo(this)}get resizerElement(){return this.slotController.getAssignedElements("").find((e=>e instanceof Td))}handleMouseDown(){this.resizing=!0,this.resizerElement&&(this.resizerElement.hostResizing=!0),this.resizeStart.dispatch()}handleWindowMouseUp(){this.resizing=!1,this.resizerElement&&(this.resizerElement.hostResizing=!1),this.resizeStop.dispatch()}handleMouseEnter(){this.resizerElement&&(this.resizerElement.hostHover=!0)}handleMouseLeave(){this.resizerElement&&(this.resizerElement.hostHover=!1)}static get styles(){return f`:host{display:flex;background-color:transparent;user-select:none;align-items:center;justify-content:center;-webkit-user-select:none;-moz-user-select:none;transition:var(--mo-duration-quick,250ms)}:host([locked]){pointer-events:none;visibility:collapse}:host([direction=horizontal-reversed]),:host([direction=horizontal]){cursor:col-resize}:host([direction=vertical-reversed]),:host([direction=vertical]){cursor:row-resize}`}get template(){return Z`<slot></slot>`}};a([Ht()],$d.prototype,"resizeStart",void 0),a([Ht()],$d.prototype,"resizeStop",void 0),a([Pt({reflect:!0,updated(){this.resizerElement&&(this.resizerElement.hostDirection=this.direction)}})],$d.prototype,"direction",void 0),a([Pt({type:Boolean,reflect:!0})],$d.prototype,"resizing",void 0),a([Pt({type:Boolean,reflect:!0})],$d.prototype,"locked",void 0),a([Nt("mousedown")],$d.prototype,"handleMouseDown",null),a([Nt({target:window,type:"mouseup"})],$d.prototype,"handleWindowMouseUp",null),a([Nt("mouseenter")],$d.prototype,"handleMouseEnter",null),a([Nt("mouseleave")],$d.prototype,"handleMouseLeave",null),$d=a([Ct("mo-splitter-resizer-host")],$d);class Td extends _t{constructor(){super(...arguments),this.hostResizing=!1,this.hostHover=!1}}a([Pt({type:String,reflect:!0})],Td.prototype,"hostDirection",void 0),a([Pt({type:Boolean,reflect:!0})],Td.prototype,"hostResizing",void 0),a([Pt({type:Boolean,reflect:!0})],Td.prototype,"hostHover",void 0);let Ed=class extends Td{static get styles(){return f`:host{transition:var(--mo-splitter-resizer-line-transition-quick,var(--mo-duration-quick,250ms));background:var(--mo-splitter-resizer-line-idle-background,var(--mo-color-gray-transparent,rgba(128,128,128,.5)))}:host([hostHover]),:host([hostResizing]){background:var(--mo-splitter-resizer-line-accent-color,var(--mo-color-accent,#0077c8))}:host([hostDirection=vertical-reversed]),:host([hostDirection=vertical]){width:100%;height:var(--mo-splitter-resizer-line-thickness,2px)}:host([hostDirection=horizontal-reversed]),:host([hostDirection=horizontal]){height:100%;width:var(--mo-splitter-resizer-line-thickness,2px)}:host([hostDirection=vertical-reversed][hostHover]),:host([hostDirection=vertical-reversed][hostResizing]),:host([hostDirection=vertical][hostHover]),:host([hostDirection=vertical][hostResizing]){transform:var(--mo-splitter-resizer-line-vertical-transform,scaleY(2))}:host([hostDirection=horizontal-reversed][hostHover]),:host([hostDirection=horizontal-reversed][hostResizing]),:host([hostDirection=horizontal][hostHover]),:host([hostDirection=horizontal][hostResizing]){transform:var(--mo-splitter-resizer-line-horizontal-transform,scaleX(2))}`}};Ed=a([Ct("mo-splitter-resizer-line")],Ed);let Ad=class extends Td{static get styles(){return f`:host{transition:.2s;background:var(--mo-splitter-resizer-knob-background,var(--mo-color-gray-transparent,rgba(128,128,128,.5)));border-radius:10px;align-self:center}:host([hostHover]),:host([hostResizing]){background:var(--mo-splitter-resizer-knob-active-background,var(--mo-color-accent,#0077c8))}:host([hostDirection=vertical-reversed]),:host([hostDirection=vertical]){width:32px;height:4px;margin:2px 0}:host([hostDirection=horizontal-reversed]),:host([hostDirection=horizontal]){height:32px;width:4px;margin:0 2px}:host([hostDirection=vertical-reversed][hostHover]),:host([hostDirection=vertical-reversed][hostResizing]),:host([hostDirection=vertical][hostHover]),:host([hostDirection=vertical][hostResizing]){transform:scaleY(1.5)}:host([hostDirection=horizontal-reversed][hostHover]),:host([hostDirection=horizontal-reversed][hostResizing]),:host([hostDirection=horizontal][hostHover]),:host([hostDirection=horizontal][hostResizing]){transform:scaleX(1.5)}`}};Ad=a([Ct("mo-splitter-resizer-knob")],Ad);let Dd=class extends _t{constructor(){super(...arguments),this.typography="heading3"}static get styles(){return f`:host{display:block}:host([typography=heading1]){font-size:min(2.5em,36px);letter-spacing:-.75px;font-weight:300}:host([typography=heading2]){font-size:min(2em,30px);letter-spacing:-.5px;font-weight:300}:host([typography=heading3]){font-size:min(1.8em,24px);letter-spacing:-.25px;font-weight:400}:host([typography=heading4]){font-size:min(1.5em,18px);font-weight:400}:host([typography=heading5]){font-size:min(1.17em,16px);font-weight:500}:host([typography=heading6]){font-size:min(1em,14px);letter-spacing:.15px;font-weight:500}:host([typography=subtitle1]){font-size:min(1.15em,18px);letter-spacing:.15px;font-weight:400}:host([typography=subtitle2]){font-size:min(1em,14px);letter-spacing:.1px;font-weight:400}`}get template(){return Z`<slot></slot>`}};a([Pt({reflect:!0})],Dd.prototype,"typography",void 0),Dd=a([Ct("mo-heading")],Dd);let Md=class extends _t{static get styles(){return f`:host{display:flex}:host,mo-flex{align-items:center;justify-content:center;text-align:center;color:var(--mo-color-gray)}mo-heading{font-weight:600}mo-icon{font-size:48px}`}get template(){return Z`<mo-flex gap="8px">${this.icon?Z`<mo-icon icon="${this.icon}"></mo-icon>`:kt}<mo-heading><slot></slot></mo-heading></mo-flex>`}};a([Pt()],Md.prototype,"icon",void 0),Md=a([Ct("mo-empty-state")],Md);class Id extends Set{async execute(e){await Promise.allSettled([...this].map((t=>t(e))))}}class Pd{static open(e=window.location.pathname,t=0){return new Promise(((o,i)=>{window.matchMedia("(display-mode: standalone)").matches&&0===t&&!manifest?.display_override?.includes("tabbed")&&(t=1);const r=window.open(e,void 0,0===t?"":"popup");if(!r)return i(new Error("Failed to open a window, probably because the permission is denied."));r.resizeTo(window.outerWidth*Pd.windowSizeReductionMultiplier,window.outerHeight*Pd.windowSizeReductionMultiplier),r.moveTo(window.screenX+(window.outerWidth-r.outerWidth)/2,window.screenY+(window.outerHeight-r.outerHeight)/2),r.addEventListener("Application.initialized",(()=>o(r)),{once:!0})}))}static async openAndFocus(...e){(await Pd.open(...e)).focus()}}Pd.windowSizeReductionMultiplier=.9;class Rd extends Error{constructor(e,t=Rd.defaultMessageByErrorCode.get(e)){super(t),this.statusCode=e}}function Fd(e){return(t,o)=>{Object.defineProperty(t,o,{get(){const t=[...this.renderRoot?.querySelectorAll("*")??[]].find((t=>e in t.constructor&&!0===t.constructor[e]));if(!t)throw new Error(`${this.constructor.name}'s ${o} cannot be found.`);return t}})}}function Od(){return(e,t)=>{Object.defineProperty(e,t,{get(){return[...window.document.querySelectorAll("*")].find((e=>e instanceof this))}})}}Rd.defaultMessageByErrorCode=new Map([[400,"Bad Request"],[401,"Unauthorized"],[402,"Payment Required"],[404,"Page Not Found"],[403,"Access Denied"],[405,"Method Not Allowed"],[406,"Not Accepted"],[407,"Proxy Authentication Required"],[408,"Request Timeout"],[409,"Conflict"],[410,"Gone"],[411,"Length Required"],[412,"Precondition Failed"],[413,"Request Entity Too Large"],[414,"Request Uri Too Long"],[415,"Unsupported Media Type"],[416,"Requested Range Not Satisfiable"],[417,"Expectation Failed"],[421,"Misdirected Request"],[422,"Unprocessable Entity"],[423,"Locked"],[424,"Failed Dependency"],[426,"Upgrade Required"],[428,"Precondition Required"],[429,"Too Many Requests"],[431,"Request Header Fields TooLarge"],[451,"Unavailable For Legal Reasons"],[500,"Internal Server Error"],[501,"Not Implemented"],[502,"Bad Gateway"],[503,"Service Unavailable"],[504,"Gateway Timeout"],[505,"Http Version Not Supported"],[506,"Variant Also Negotiates"],[507,"Insufficient Storage"],[508,"Loop Detected"],[510,"Not Extended"],[511,"Network Authentication Required"]]);const Nd=e=>{Object.defineProperty(e.prototype,"inert",{enumerable:!0,configurable:!1,get:()=>!1,set:e=>e})};var zd=i(388),Ld=class{constructor(e,t,o,i,r,n){this.type=3,this.name="",this.prefix="",this.value="",this.suffix="",this.modifier=3,this.type=e,this.name=t,this.prefix=o,this.value=i,this.suffix=r,this.modifier=n}hasCustomName(){return""!==this.name&&"number"!=typeof this.name}},Hd=/[$_\p{ID_Start}]/u,Bd=/[$_\u200C\u200D\p{ID_Continue}]/u,Ud=".*";function Gd(e,t){return(t?/^[\x00-\xFF]*$/:/^[\x00-\x7F]*$/).test(e)}function jd(e,t=!1){const o=[];let i=0;for(;i<e.length;){const r=e[i],n=function(r){if(!t)throw new TypeError(r);o.push({type:"INVALID_CHAR",index:i,value:e[i++]})};if("*"!==r)if("+"!==r&&"?"!==r)if("\\"!==r)if("{"!==r)if("}"!==r)if(":"!==r)if("("!==r)o.push({type:"CHAR",index:i,value:e[i++]});else{let t=1,r="",a=i+1,s=!1;if("?"===e[a]){n(`Pattern cannot start with "?" at ${a}`);continue}for(;a<e.length;){if(!Gd(e[a],!1)){n(`Invalid character '${e[a]}' at ${a}.`),s=!0;break}if("\\"!==e[a]){if(")"===e[a]){if(t--,0===t){a++;break}}else if("("===e[a]&&(t++,"?"!==e[a+1])){n(`Capturing groups are not allowed at ${a}`),s=!0;break}r+=e[a++]}else r+=e[a++]+e[a++]}if(s)continue;if(t){n(`Unbalanced pattern at ${i}`);continue}if(!r){n(`Missing pattern at ${i}`);continue}o.push({type:"REGEX",index:i,value:r}),i=a}else{let t="",r=i+1;for(;r<e.length;){const o=e.substr(r,1);if(!(r===i+1&&Hd.test(o)||r!==i+1&&Bd.test(o)))break;t+=e[r++]}if(!t){n(`Missing parameter name at ${i}`);continue}o.push({type:"NAME",index:i,value:t}),i=r}else o.push({type:"CLOSE",index:i,value:e[i++]});else o.push({type:"OPEN",index:i,value:e[i++]});else o.push({type:"ESCAPED_CHAR",index:i++,value:e[i++]});else o.push({type:"OTHER_MODIFIER",index:i,value:e[i++]});else o.push({type:"ASTERISK",index:i,value:e[i++]})}return o.push({type:"END",index:i,value:""}),o}function Vd(e,t={}){const o=jd(e);t.delimiter??(t.delimiter="/#?"),t.prefixes??(t.prefixes="./");const i=`[^${Yd(t.delimiter)}]+?`,r=[];let n=0,a=0,s=new Set;const c=e=>{if(a<o.length&&o[a].type===e)return o[a++].value},l=()=>c("OTHER_MODIFIER")??c("ASTERISK"),d=e=>{const t=c(e);if(void 0!==t)return t;const{type:i,index:r}=o[a];throw new TypeError(`Unexpected ${i} at ${r}, expected ${e}`)},h=()=>{let e,t="";for(;e=c("CHAR")??c("ESCAPED_CHAR");)t+=e;return t},u=t.encodePart||(e=>e);let p="";const m=e=>{p+=e},g=()=>{p.length&&(r.push(new Ld(3,"","",u(p),"",3)),p="")},f=(e,t,o,a,c)=>{let l,d=3;switch(c){case"?":d=1;break;case"*":d=0;break;case"+":d=2}if(!t&&!o&&3===d)return void m(e);if(g(),!t&&!o){if(!e)return;return void r.push(new Ld(3,"","",u(e),"",d))}l=o?"*"===o?Ud:o:i;let h,p=2;if(l===i?(p=1,l=""):l===Ud&&(p=0,l=""),t?h=t:o&&(h=n++),s.has(h))throw new TypeError(`Duplicate name '${h}'.`);s.add(h),r.push(new Ld(p,h,u(e),l,u(a),d))};for(;a<o.length;){const e=c("CHAR"),o=c("NAME");let i=c("REGEX");if(o||i||(i=c("ASTERISK")),o||i){let r=e??"";-1===t.prefixes.indexOf(r)&&(m(r),r=""),g(),f(r,o,i,"",l());continue}const r=e??c("ESCAPED_CHAR");if(r){m(r);continue}if(c("OPEN")){const e=h(),t=c("NAME");let o=c("REGEX");t||o||(o=c("ASTERISK"));const i=h();d("CLOSE");f(e,t,o,i,l())}else g(),d("END")}return r}function Yd(e){return e.replace(/([.+*?^${}()[\]|/\\])/g,"\\$1")}function qd(e){return e&&e.ignoreCase?"ui":"u"}function Wd(e){switch(e){case 0:return"*";case 1:return"?";case 2:return"+";case 3:return""}}function Zd(e,t,o={}){o.delimiter??(o.delimiter="/#?"),o.prefixes??(o.prefixes="./"),o.sensitive??(o.sensitive=!1),o.strict??(o.strict=!1),o.end??(o.end=!0),o.start??(o.start=!0),o.endsWith="";let i=o.start?"^":"";for(const r of e){if(3===r.type){3===r.modifier?i+=Yd(r.value):i+=`(?:${Yd(r.value)})${Wd(r.modifier)}`;continue}t&&t.push(r.name);const e=`[^${Yd(o.delimiter)}]+?`;let n=r.value;1===r.type?n=e:0===r.type&&(n=Ud),r.prefix.length||r.suffix.length?3!==r.modifier&&1!==r.modifier?(i+=`(?:${Yd(r.prefix)}`,i+=`((?:${n})(?:`,i+=Yd(r.suffix),i+=Yd(r.prefix),i+=`(?:${n}))*)${Yd(r.suffix)})`,0===r.modifier&&(i+="?")):(i+=`(?:${Yd(r.prefix)}(${n})${Yd(r.suffix)})`,i+=Wd(r.modifier)):3===r.modifier||1===r.modifier?i+=`(${n})${Wd(r.modifier)}`:i+=`((?:${n})${Wd(r.modifier)})`}const r=`[${Yd(o.endsWith)}]|$`,n=`[${Yd(o.delimiter)}]`;if(o.end)return o.strict||(i+=`${n}?`),o.endsWith.length?i+=`(?=${r})`:i+="$",new RegExp(i,qd(o));o.strict||(i+=`(?:${n}(?=${r}))?`);let a=!1;if(e.length){const t=e[e.length-1];3===t.type&&3===t.modifier&&(a=o.delimiter.indexOf(t)>-1)}return a||(i+=`(?=${n}|${r})`),new RegExp(i,qd(o))}var Kd={delimiter:"",prefixes:"",sensitive:!0,strict:!0},Xd={delimiter:".",prefixes:"",sensitive:!0,strict:!0},Jd={delimiter:"/",prefixes:"/",sensitive:!0,strict:!0};function Qd(e,t){return e.startsWith(t)?e.substring(t.length,e.length):e}function eh(e){return!(!e||e.length<2)&&("["===e[0]||("\\"===e[0]||"{"===e[0])&&"["===e[1])}var th=["ftp","file","http","https","ws","wss"];function oh(e){if(!e)return!0;for(const t of th)if(e.test(t))return!0;return!1}function ih(e){switch(e){case"ws":case"http":return"80";case"wws":case"https":return"443";case"ftp":return"21";default:return""}}function rh(e){if(""===e)return e;if(/^[-+.A-Za-z0-9]*$/.test(e))return e.toLowerCase();throw new TypeError(`Invalid protocol '${e}'.`)}function nh(e){if(""===e)return e;const t=new URL("https://example.com");return t.username=e,t.username}function ah(e){if(""===e)return e;const t=new URL("https://example.com");return t.password=e,t.password}function sh(e){if(""===e)return e;if(/[\t\n\r #%/:<>?@[\]^\\|]/g.test(e))throw new TypeError(`Invalid hostname '${e}'`);const t=new URL("https://example.com");return t.hostname=e,t.hostname}function ch(e){if(""===e)return e;if(/[^0-9a-fA-F[\]:]/g.test(e))throw new TypeError(`Invalid IPv6 hostname '${e}'`);return e.toLowerCase()}function lh(e){if(""===e)return e;if(/^[0-9]*$/.test(e)&&parseInt(e)<=65535)return e;throw new TypeError(`Invalid port '${e}'.`)}function dh(e){if(""===e)return e;const t=new URL("https://example.com");return t.pathname="/"!==e[0]?"/-"+e:e,"/"!==e[0]?t.pathname.substring(2,t.pathname.length):t.pathname}function hh(e){if(""===e)return e;return new URL(`data:${e}`).pathname}function uh(e){if(""===e)return e;const t=new URL("https://example.com");return t.search=e,t.search.substring(1,t.search.length)}function ph(e){if(""===e)return e;const t=new URL("https://example.com");return t.hash=e,t.hash.substring(1,t.hash.length)}var mh=["protocol","username","password","hostname","port","pathname","search","hash"],gh="*";function fh(e,t){if("string"!=typeof e)throw new TypeError("parameter 1 is not of type 'string'.");const o=new URL(e,t);return{protocol:o.protocol.substring(0,o.protocol.length-1),username:o.username,password:o.password,hostname:o.hostname,port:o.port,pathname:o.pathname,search:""!==o.search?o.search.substring(1,o.search.length):void 0,hash:""!==o.hash?o.hash.substring(1,o.hash.length):void 0}}function vh(e,t){return t?yh(e):e}function bh(e,t,o){let i;if("string"==typeof t.baseURL)try{i=new URL(t.baseURL),e.protocol=vh(i.protocol.substring(0,i.protocol.length-1),o),e.username=vh(i.username,o),e.password=vh(i.password,o),e.hostname=vh(i.hostname,o),e.port=vh(i.port,o),e.pathname=vh(i.pathname,o),e.search=vh(i.search.substring(1,i.search.length),o),e.hash=vh(i.hash.substring(1,i.hash.length),o)}catch{throw new TypeError(`invalid baseURL '${t.baseURL}'.`)}if("string"==typeof t.protocol&&(e.protocol=function(e,t){var o,i;return i=":",e=(o=e).endsWith(i)?o.substr(0,o.length-i.length):o,t||""===e?e:rh(e)}(t.protocol,o)),"string"==typeof t.username&&(e.username=function(e,t){if(t||""===e)return e;const o=new URL("https://example.com");return o.username=e,o.username}(t.username,o)),"string"==typeof t.password&&(e.password=function(e,t){if(t||""===e)return e;const o=new URL("https://example.com");return o.password=e,o.password}(t.password,o)),"string"==typeof t.hostname&&(e.hostname=function(e,t){return t||""===e?e:eh(e)?ch(e):sh(e)}(t.hostname,o)),"string"==typeof t.port&&(e.port=function(e,t,o){return ih(t)===e&&(e=""),o||""===e?e:lh(e)}(t.port,e.protocol,o)),"string"==typeof t.pathname){if(e.pathname=t.pathname,i&&!function(e,t){return!(!e.length||"/"!==e[0]&&(!t||e.length<2||"\\"!=e[0]&&"{"!=e[0]||"/"!=e[1]))}(e.pathname,o)){const t=i.pathname.lastIndexOf("/");t>=0&&(e.pathname=vh(i.pathname.substring(0,t+1),o)+e.pathname)}e.pathname=function(e,t,o){if(o||""===e)return e;if(t&&!th.includes(t))return new URL(`${t}:${e}`).pathname;const i="/"==e[0];return e=new URL(i?e:"/-"+e,"https://example.com").pathname,i||(e=e.substring(2,e.length)),e}(e.pathname,e.protocol,o)}return"string"==typeof t.search&&(e.search=function(e,t){if(e=Qd(e,"?"),t||""===e)return e;const o=new URL("https://example.com");return o.search=e,o.search?o.search.substring(1,o.search.length):""}(t.search,o)),"string"==typeof t.hash&&(e.hash=function(e,t){if(e=Qd(e,"#"),t||""===e)return e;const o=new URL("https://example.com");return o.hash=e,o.hash?o.hash.substring(1,o.hash.length):""}(t.hash,o)),e}function yh(e){return e.replace(/([+*?:{}()\\])/g,"\\$1")}function wh(e,t){t.delimiter??(t.delimiter="/#?"),t.prefixes??(t.prefixes="./"),t.sensitive??(t.sensitive=!1),t.strict??(t.strict=!1),t.end??(t.end=!0),t.start??(t.start=!0),t.endsWith="";const o=`[^${i=t.delimiter,i.replace(/([.+*?^${}()[\]|/\\])/g,"\\$1")}]+?`;var i;const r=/[$_\u200C\u200D\p{ID_Continue}]/u;let n="";for(let i=0;i<e.length;++i){const a=e[i];if(3===a.type){if(3===a.modifier){n+=yh(a.value);continue}n+=`{${yh(a.value)}}${Wd(a.modifier)}`;continue}const s=a.hasCustomName();let c=!!a.suffix.length||!!a.prefix.length&&(1!==a.prefix.length||!t.prefixes.includes(a.prefix));const l=i>0?e[i-1]:null,d=i<e.length-1?e[i+1]:null;if(!c&&s&&1===a.type&&3===a.modifier&&d&&!d.prefix.length&&!d.suffix.length)if(3===d.type){const e=d.value.length>0?d.value[0]:"";c=r.test(e)}else c=!d.hasCustomName();if(!c&&!a.prefix.length&&l&&3===l.type){const e=l.value[l.value.length-1];c=t.prefixes.includes(e)}c&&(n+="{"),n+=yh(a.prefix),s&&(n+=`:${a.name}`),2===a.type?n+=`(${a.value})`:1===a.type?s||(n+=`(${o})`):0===a.type&&(s||l&&3!==l.type&&3===l.modifier&&!c&&""===a.prefix?n+="(.*)":n+="*"),1===a.type&&s&&a.suffix.length&&r.test(a.suffix[0])&&(n+="\\"),n+=yh(a.suffix),c&&(n+="}"),3!==a.modifier&&(n+=Wd(a.modifier))}return n}function xh(e,t){void 0===t&&(t={});for(var o=function(e){for(var t=[],o=0;o<e.length;){var i=e[o];if("*"!==i&&"+"!==i&&"?"!==i)if("\\"!==i)if("{"!==i)if("}"!==i)if(":"!==i)if("("!==i)t.push({type:"CHAR",index:o,value:e[o++]});else{var r=1,n="";if("?"===e[s=o+1])throw new TypeError('Pattern cannot start with "?" at '.concat(s));for(;s<e.length;)if("\\"!==e[s]){if(")"===e[s]){if(0==--r){s++;break}}else if("("===e[s]&&(r++,"?"!==e[s+1]))throw new TypeError("Capturing groups are not allowed at ".concat(s));n+=e[s++]}else n+=e[s++]+e[s++];if(r)throw new TypeError("Unbalanced pattern at ".concat(o));if(!n)throw new TypeError("Missing pattern at ".concat(o));t.push({type:"PATTERN",index:o,value:n}),o=s}else{for(var a="",s=o+1;s<e.length;){var c=e.charCodeAt(s);if(!(c>=48&&c<=57||c>=65&&c<=90||c>=97&&c<=122||95===c))break;a+=e[s++]}if(!a)throw new TypeError("Missing parameter name at ".concat(o));t.push({type:"NAME",index:o,value:a}),o=s}else t.push({type:"CLOSE",index:o,value:e[o++]});else t.push({type:"OPEN",index:o,value:e[o++]});else t.push({type:"ESCAPED_CHAR",index:o++,value:e[o++]});else t.push({type:"MODIFIER",index:o,value:e[o++]})}return t.push({type:"END",index:o,value:""}),t}(e),i=t.prefixes,r=void 0===i?"./":i,n="[^".concat(_h(t.delimiter||"/#?"),"]+?"),a=[],s=0,c=0,l="",d=function(e){if(c<o.length&&o[c].type===e)return o[c++].value},h=function(e){var t=d(e);if(void 0!==t)return t;var i=o[c],r=i.type,n=i.index;throw new TypeError("Unexpected ".concat(r," at ").concat(n,", expected ").concat(e))},u=function(){for(var e,t="";e=d("CHAR")||d("ESCAPED_CHAR");)t+=e;return t};c<o.length;){var p=d("CHAR"),m=d("NAME"),g=d("PATTERN");if(m||g){var f=p||"";-1===r.indexOf(f)&&(l+=f,f=""),l&&(a.push(l),l=""),a.push({name:m||s++,prefix:f,suffix:"",pattern:g||n,modifier:d("MODIFIER")||""})}else{var v=p||d("ESCAPED_CHAR");if(v)l+=v;else if(l&&(a.push(l),l=""),d("OPEN")){f=u();var b=d("NAME")||"",y=d("PATTERN")||"",w=u();h("CLOSE"),a.push({name:b||(y?s++:""),pattern:b&&!y?n:y,prefix:f,suffix:w,modifier:d("MODIFIER")||""})}else h("END")}}return a}function kh(e,t){return function(e,t){void 0===t&&(t={});var o=Sh(t),i=t.encode,r=void 0===i?function(e){return e}:i,n=t.validate,a=void 0===n||n,s=e.map((function(e){if("object"==typeof e)return new RegExp("^(?:".concat(e.pattern,")$"),o)}));return function(t){for(var o="",i=0;i<e.length;i++){var n=e[i];if("string"!=typeof n){var c=t?t[n.name]:void 0,l="?"===n.modifier||"*"===n.modifier,d="*"===n.modifier||"+"===n.modifier;if(Array.isArray(c)){if(!d)throw new TypeError('Expected "'.concat(n.name,'" to not repeat, but got an array'));if(0===c.length){if(l)continue;throw new TypeError('Expected "'.concat(n.name,'" to not be empty'))}for(var h=0;h<c.length;h++){var u=r(c[h],n);if(a&&!s[i].test(u))throw new TypeError('Expected all "'.concat(n.name,'" to match "').concat(n.pattern,'", but got "').concat(u,'"'));o+=n.prefix+u+n.suffix}}else if("string"!=typeof c&&"number"!=typeof c){if(!l){var p=d?"an array":"a string";throw new TypeError('Expected "'.concat(n.name,'" to be ').concat(p))}}else{u=r(String(c),n);if(a&&!s[i].test(u))throw new TypeError('Expected "'.concat(n.name,'" to match "').concat(n.pattern,'", but got "').concat(u,'"'));o+=n.prefix+u+n.suffix}}else o+=n}return o}}(xh(e,t),t)}function Ch(e,t){var o=[];return function(e,t,o){void 0===o&&(o={});var i=o.decode,r=void 0===i?function(e){return e}:i;return function(o){var i=e.exec(o);if(!i)return!1;for(var n=i[0],a=i.index,s=Object.create(null),c=function(e){if(void 0===i[e])return"continue";var o=t[e-1];"*"===o.modifier||"+"===o.modifier?s[o.name]=i[e].split(o.prefix+o.suffix).map((function(e){return r(e,o)})):s[o.name]=r(i[e],o)},l=1;l<i.length;l++)c(l);return{path:n,index:a,params:s}}}(Th(e,o,t),o,t)}function _h(e){return e.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}function Sh(e){return e&&e.sensitive?"":"i"}function $h(e,t,o){return function(e,t,o){void 0===o&&(o={});for(var i=o.strict,r=void 0!==i&&i,n=o.start,a=void 0===n||n,s=o.end,c=void 0===s||s,l=o.encode,d=void 0===l?function(e){return e}:l,h=o.delimiter,u=void 0===h?"/#?":h,p=o.endsWith,m="[".concat(_h(void 0===p?"":p),"]|$"),g="[".concat(_h(u),"]"),f=a?"^":"",v=0,b=e;v<b.length;v++){var y=b[v];if("string"==typeof y)f+=_h(d(y));else{var w=_h(d(y.prefix)),x=_h(d(y.suffix));if(y.pattern)if(t&&t.push(y),w||x)if("+"===y.modifier||"*"===y.modifier){var k="*"===y.modifier?"?":"";f+="(?:".concat(w,"((?:").concat(y.pattern,")(?:").concat(x).concat(w,"(?:").concat(y.pattern,"))*)").concat(x,")").concat(k)}else f+="(?:".concat(w,"(").concat(y.pattern,")").concat(x,")").concat(y.modifier);else"+"===y.modifier||"*"===y.modifier?f+="((?:".concat(y.pattern,")").concat(y.modifier,")"):f+="(".concat(y.pattern,")").concat(y.modifier);else f+="(?:".concat(w).concat(x,")").concat(y.modifier)}}if(c)r||(f+="".concat(g,"?")),f+=o.endsWith?"(?=".concat(m,")"):"$";else{var C=e[e.length-1],_="string"==typeof C?g.indexOf(C[C.length-1])>-1:void 0===C;r||(f+="(?:".concat(g,"(?=").concat(m,"))?")),_||(f+="(?=".concat(g,"|").concat(m,")"))}return new RegExp(f,Sh(o))}(xh(e,o),t,o)}function Th(e,t,o){return e instanceof RegExp?function(e,t){if(!t)return e;for(var o=/\((?:\?<(.*?)>)?(?!\?)/g,i=0,r=o.exec(e.source);r;)t.push({name:r[1]||i++,prefix:"",suffix:"",modifier:"",pattern:""}),r=o.exec(e.source);return e}(e,t):Array.isArray(e)?function(e,t,o){var i=e.map((function(e){return Th(e,t,o).source}));return new RegExp("(?:".concat(i.join("|"),")"),Sh(o))}(e,t,o):$h(e,t,o)}globalThis.URLPattern||(globalThis.URLPattern=class{constructor(e={},t,o){this.regexp={},this.names={},this.component_pattern={},this.parts={};try{let i;if("string"==typeof t?i=t:o=t,"string"==typeof e){const t=new class{constructor(e){this.tokenList=[],this.internalResult={},this.tokenIndex=0,this.tokenIncrement=1,this.componentStart=0,this.state=0,this.groupDepth=0,this.hostnameIPv6BracketDepth=0,this.shouldTreatAsStandardURL=!1,this.input=e}get result(){return this.internalResult}parse(){for(this.tokenList=jd(this.input,!0);this.tokenIndex<this.tokenList.length;this.tokenIndex+=this.tokenIncrement){if(this.tokenIncrement=1,"END"===this.tokenList[this.tokenIndex].type){if(0===this.state){this.rewind(),this.isHashPrefix()?this.changeState(9,1):this.isSearchPrefix()?(this.changeState(8,1),this.internalResult.hash=""):(this.changeState(7,0),this.internalResult.search="",this.internalResult.hash="");continue}if(2===this.state){this.rewindAndSetState(5);continue}this.changeState(10,0);break}if(this.groupDepth>0){if(!this.isGroupClose())continue;this.groupDepth-=1}if(this.isGroupOpen())this.groupDepth+=1;else switch(this.state){case 0:this.isProtocolSuffix()&&(this.internalResult.username="",this.internalResult.password="",this.internalResult.hostname="",this.internalResult.port="",this.internalResult.pathname="",this.internalResult.search="",this.internalResult.hash="",this.rewindAndSetState(1));break;case 1:if(this.isProtocolSuffix()){this.computeShouldTreatAsStandardURL();let e=7,t=1;this.shouldTreatAsStandardURL&&(this.internalResult.pathname="/"),this.nextIsAuthoritySlashes()?(e=2,t=3):this.shouldTreatAsStandardURL&&(e=2),this.changeState(e,t)}break;case 2:this.isIdentityTerminator()?this.rewindAndSetState(3):(this.isPathnameStart()||this.isSearchPrefix()||this.isHashPrefix())&&this.rewindAndSetState(5);break;case 3:this.isPasswordPrefix()?this.changeState(4,1):this.isIdentityTerminator()&&this.changeState(5,1);break;case 4:this.isIdentityTerminator()&&this.changeState(5,1);break;case 5:this.isIPv6Open()?this.hostnameIPv6BracketDepth+=1:this.isIPv6Close()&&(this.hostnameIPv6BracketDepth-=1),this.isPortPrefix()&&!this.hostnameIPv6BracketDepth?this.changeState(6,1):this.isPathnameStart()?this.changeState(7,0):this.isSearchPrefix()?this.changeState(8,1):this.isHashPrefix()&&this.changeState(9,1);break;case 6:this.isPathnameStart()?this.changeState(7,0):this.isSearchPrefix()?this.changeState(8,1):this.isHashPrefix()&&this.changeState(9,1);break;case 7:this.isSearchPrefix()?this.changeState(8,1):this.isHashPrefix()&&this.changeState(9,1);break;case 8:this.isHashPrefix()&&this.changeState(9,1)}}}changeState(e,t){switch(this.state){case 0:case 2:case 10:break;case 1:this.internalResult.protocol=this.makeComponentString();break;case 3:this.internalResult.username=this.makeComponentString();break;case 4:this.internalResult.password=this.makeComponentString();break;case 5:this.internalResult.hostname=this.makeComponentString();break;case 6:this.internalResult.port=this.makeComponentString();break;case 7:this.internalResult.pathname=this.makeComponentString();break;case 8:this.internalResult.search=this.makeComponentString();break;case 9:this.internalResult.hash=this.makeComponentString()}this.changeStateWithoutSettingComponent(e,t)}changeStateWithoutSettingComponent(e,t){this.state=e,this.componentStart=this.tokenIndex+t,this.tokenIndex+=t,this.tokenIncrement=0}rewind(){this.tokenIndex=this.componentStart,this.tokenIncrement=0}rewindAndSetState(e){this.rewind(),this.state=e}safeToken(e){return e<0&&(e=this.tokenList.length-e),e<this.tokenList.length?this.tokenList[e]:this.tokenList[this.tokenList.length-1]}isNonSpecialPatternChar(e,t){const o=this.safeToken(e);return o.value===t&&("CHAR"===o.type||"ESCAPED_CHAR"===o.type||"INVALID_CHAR"===o.type)}isProtocolSuffix(){return this.isNonSpecialPatternChar(this.tokenIndex,":")}nextIsAuthoritySlashes(){return this.isNonSpecialPatternChar(this.tokenIndex+1,"/")&&this.isNonSpecialPatternChar(this.tokenIndex+2,"/")}isIdentityTerminator(){return this.isNonSpecialPatternChar(this.tokenIndex,"@")}isPasswordPrefix(){return this.isNonSpecialPatternChar(this.tokenIndex,":")}isPortPrefix(){return this.isNonSpecialPatternChar(this.tokenIndex,":")}isPathnameStart(){return this.isNonSpecialPatternChar(this.tokenIndex,"/")}isSearchPrefix(){if(this.isNonSpecialPatternChar(this.tokenIndex,"?"))return!0;if("?"!==this.tokenList[this.tokenIndex].value)return!1;const e=this.safeToken(this.tokenIndex-1);return"NAME"!==e.type&&"REGEX"!==e.type&&"CLOSE"!==e.type&&"ASTERISK"!==e.type}isHashPrefix(){return this.isNonSpecialPatternChar(this.tokenIndex,"#")}isGroupOpen(){return"OPEN"==this.tokenList[this.tokenIndex].type}isGroupClose(){return"CLOSE"==this.tokenList[this.tokenIndex].type}isIPv6Open(){return this.isNonSpecialPatternChar(this.tokenIndex,"[")}isIPv6Close(){return this.isNonSpecialPatternChar(this.tokenIndex,"]")}makeComponentString(){const e=this.tokenList[this.tokenIndex],t=this.safeToken(this.componentStart).index;return this.input.substring(t,e.index)}computeShouldTreatAsStandardURL(){const e={};Object.assign(e,Kd),e.encodePart=rh;const t=function(e,t,o){return Zd(Vd(e,o),t,o)}(this.makeComponentString(),void 0,e);this.shouldTreatAsStandardURL=oh(t)}}(e);if(t.parse(),e=t.result,void 0===i&&"string"!=typeof e.protocol)throw new TypeError("A base URL must be provided for a relative constructor string.");e.baseURL=i}else{if(!e||"object"!=typeof e)throw new TypeError("parameter 1 is not of type 'string' and cannot convert to dictionary.");if(i)throw new TypeError("parameter 1 is not of type 'string'.")}void 0===o&&(o={ignoreCase:!1});const r={ignoreCase:!0===o.ignoreCase},n={pathname:gh,protocol:gh,username:gh,password:gh,hostname:gh,port:gh,search:gh,hash:gh};let a;for(a of(this.pattern=bh(n,e,!0),ih(this.pattern.protocol)===this.pattern.port&&(this.pattern.port=""),mh)){if(!(a in this.pattern))continue;const e={},t=this.pattern[a];switch(this.names[a]=[],a){case"protocol":Object.assign(e,Kd),e.encodePart=rh;break;case"username":Object.assign(e,Kd),e.encodePart=nh;break;case"password":Object.assign(e,Kd),e.encodePart=ah;break;case"hostname":Object.assign(e,Xd),eh(t)?e.encodePart=ch:e.encodePart=sh;break;case"port":Object.assign(e,Kd),e.encodePart=lh;break;case"pathname":oh(this.regexp.protocol)?(Object.assign(e,Jd,r),e.encodePart=dh):(Object.assign(e,Kd,r),e.encodePart=hh);break;case"search":Object.assign(e,Kd,r),e.encodePart=uh;break;case"hash":Object.assign(e,Kd,r),e.encodePart=ph}try{this.parts[a]=Vd(t,e),this.regexp[a]=Zd(this.parts[a],this.names[a],e),this.component_pattern[a]=wh(this.parts[a],e)}catch(e){throw new TypeError(`invalid ${a} pattern '${this.pattern[a]}'.`)}}}catch(e){throw new TypeError(`Failed to construct 'URLPattern': ${e.message}`)}}test(e={},t){let o,i={pathname:"",protocol:"",username:"",password:"",hostname:"",port:"",search:"",hash:""};if("string"!=typeof e&&t)throw new TypeError("parameter 1 is not of type 'string'.");if(void 0===e)return!1;try{i=bh(i,"object"==typeof e?e:fh(e,t),!1)}catch(e){return!1}for(o of mh)if(!this.regexp[o].exec(i[o]))return!1;return!0}exec(e={},t){let o={pathname:"",protocol:"",username:"",password:"",hostname:"",port:"",search:"",hash:""};if("string"!=typeof e&&t)throw new TypeError("parameter 1 is not of type 'string'.");if(void 0===e)return;try{o=bh(o,"object"==typeof e?e:fh(e,t),!1)}catch(e){return null}let i,r={};for(i of(r.inputs=t?[e,t]:[e],mh)){let e=this.regexp[i].exec(o[i]);if(!e)return null;let t={};for(let[o,r]of this.names[i].entries())if("string"==typeof r||"number"==typeof r){let i=e[o+1];t[r]=i}r[i]={input:o[i]??"",groups:t}}return r}static compareComponent(e,t,o){const i=(e,t)=>{for(let o of["type","modifier","prefix","value","suffix"]){if(e[o]<t[o])return-1;if(e[o]!==t[o])return 1}return 0},r=new Ld(3,"","","","",3),n=new Ld(0,"","","","",3),a=(e,t)=>{let o=0;for(;o<Math.min(e.length,t.length);++o){let r=i(e[o],t[o]);if(r)return r}return e.length===t.length?0:i(e[o]??r,t[o]??r)};return t.component_pattern[e]||o.component_pattern[e]?t.component_pattern[e]&&!o.component_pattern[e]?a(t.parts[e],[n]):!t.component_pattern[e]&&o.component_pattern[e]?a([n],o.parts[e]):a(t.parts[e],o.parts[e]):0}get protocol(){return this.component_pattern.protocol}get username(){return this.component_pattern.username}get password(){return this.component_pattern.password}get hostname(){return this.component_pattern.hostname}get port(){return this.component_pattern.port}get pathname(){return this.component_pattern.pathname}get search(){return this.component_pattern.search}get hash(){return this.component_pattern.hash}});class Eh extends Map{constructor(){super(...arguments),this.basePath=""}set(e,t){return super.set(this.basePath+e,t)}}class Ah{get basePath(){return Ah.container.basePath}set basePath(e){Ah.container.basePath=e}static getPathOf(e){const t=this.getRouteOf(e);return void 0===t?void 0:kh(t)(e.parameters)}static setPathByPage(e){const t=Ah.getPathOf(e);t&&(Ah.path=t)}static match(e,t="all"){const o=Ah.getRouteOf(e),i=void 0!==o&&Ch(o)(Ah.path);if(!1===i)return!1;if("ignore-parameters"===t)return!0;const r=i.params;return Object.keys(r).every((t=>t in(e.parameters??{})&&r[t]===e.parameters[t]))}static getRouteOf(e){return[...Ah.container].find((([,{pageConstructor:t}])=>t.name===e.constructor.name))?.[0]}static get path(){return window.location.pathname+window.location.search}static set path(e){window.history.pushState(null,"",e),window.dispatchEvent(new PopStateEvent("popstate"))}}Ah.container=new Eh;const Dh=new WeakMap,Mh=e=>{if((e=>void 0!==e.pattern)(e))return e.pattern;let t=Dh.get(e);return void 0===t&&Dh.set(e,t=new URLPattern({pathname:e.path})),t};class Ih{constructor(e,t,o){this.routes=[],this.o=[],this.t={},this.i=e=>{if(e.routes===this)return;const t=e.routes;this.o.push(t),t.l=this,e.stopImmediatePropagation(),e.onDisconnect=()=>{var e;null===(e=this.o)||void 0===e||e.splice(this.o.indexOf(t)>>>0,1)};const o=Ph(this.t);void 0!==o&&t.goto(o)},(this.h=e).addController(this),this.routes=[...t],this.fallback=null==o?void 0:o.fallback}link(e){var t,o;if(null==e?void 0:e.startsWith("/"))return e;if(null==e?void 0:e.startsWith("."))throw Error("Not implemented");return null!=e||(e=this.u),(null!==(o=null===(t=this.l)||void 0===t?void 0:t.link())&&void 0!==o?o:"")+e}async goto(e){var t;let o;if(0===this.routes.length&&void 0===this.fallback)o=e,this.u="",this.t={0:o};else{const i=this.v(e);if(void 0===i)throw Error("No route found for "+e);const r=Mh(i).exec({pathname:e}),n=null!==(t=null==r?void 0:r.pathname.groups)&&void 0!==t?t:{};if(o=Ph(n),"function"==typeof i.enter&&!1===await i.enter(n))return;this.p=i,this.t=n,this.u=void 0===o?e:e.substring(0,e.length-o.length)}if(void 0!==o)for(const e of this.o)e.goto(o);this.h.requestUpdate()}outlet(){var e,t;return null===(t=null===(e=this.p)||void 0===e?void 0:e.render)||void 0===t?void 0:t.call(e,this.t)}get params(){return this.t}v(e){const t=this.routes.find((t=>Mh(t).test({pathname:e})));return t||void 0===this.fallback?t:this.fallback?{...this.fallback,path:"/*"}:void 0}hostConnected(){this.h.addEventListener(Rh.eventName,this.i);const e=new Rh(this);this.h.dispatchEvent(e),this._=e.onDisconnect}hostDisconnected(){var e;null===(e=this._)||void 0===e||e.call(this),this.l=void 0}}const Ph=e=>{let t;for(const o of Object.keys(e))/\d+/.test(o)&&(void 0===t||o>t)&&(t=o);return t&&e[t]};class Rh extends Event{constructor(e){super(Rh.eventName,{bubbles:!0,composed:!0,cancelable:!1}),this.routes=e}}Rh.eventName="lit-routes-connected";const Fh=location.origin||location.protocol+"//"+location.host;class Oh extends Ih{constructor(){super(...arguments),this.m=e=>{const t=0!==e.button||e.metaKey||e.ctrlKey||e.shiftKey;if(e.defaultPrevented||t)return;const o=e.composedPath().find((e=>"A"===e.tagName));if(void 0===o||""!==o.target||o.hasAttribute("download")||"external"===o.getAttribute("rel"))return;const i=o.href;if(""===i||i.startsWith("mailto:"))return;const r=window.location;o.origin===Fh&&(e.preventDefault(),i!==r.href&&(window.history.pushState({},"",i),this.goto(o.pathname)))},this.R=e=>{this.goto(window.location.pathname)}}hostConnected(){super.hostConnected(),window.addEventListener("click",this.m),window.addEventListener("popstate",this.R),this.goto(window.location.pathname)}hostDisconnected(){super.hostDisconnected(),window.removeEventListener("click",this.m),window.removeEventListener("popstate",this.R)}}class Nh extends Oh{hostConnected(){this.importDecoratorRoutesIfAvailable(),super.hostConnected()}constructor(...e){super(...e),this.host=e[0]}importDecoratorRoutesIfAvailable(){const e=[...Ah.container].filter((([,{routerHostConstructor:e}])=>this.host.constructor===e||this.host.constructor.prototype instanceof e)).map((([e,{pageConstructor:t}])=>({route:e,pageConstructor:t})));for(const{pageConstructor:t,route:o}of e)this.routes.push({path:o,render:e=>this.currentPage?.parameters===e&&this.currentPage?.constructor===t?this.currentPage:this.currentPage=new t(e)})}}class zh{constructor(e,t){this.rootStyle=t,this.styleElement=document.createElement("style"),e.addController(this)}hostConnected(){Qo.inject(this.rootStyle,this.styleElement)}hostDisconnected(){this.styleElement?.remove()}}class Lh extends _t{constructor(){super(...arguments),this.router=new Nh(this,[],{fallback:{render:()=>new Gh({error:404})}}),this.rootCssInjector=new zh(this,this.constructor.styles),this.shallRenderRouter=!1}static get styles(){return f`:root{color-scheme:light dark}[application],body,html{margin:0;padding:0;scrollbar-width:thin;display:block;min-height:100vh;min-height:100dvh}[application]{display:flex;flex-direction:column}::-webkit-scrollbar{width:5px;height:5px}::-webkit-scrollbar-thumb{background:rgba(128,128,128,.75)}lit-page-host{display:flex;flex:1;margin:auto;width:100%;max-width:var(--lit-application-page-host-max-width,2560px)}lit-page-host>*{padding:max(min(1rem,1vw),min(1rem,1vh))}`}createRenderRoot(){return this}async connectedCallback(){this.setAttribute("application",""),await Lh.connectingHooks.execute(),super.connectedCallback(),window.dispatchEvent(new Event("Application.connected"))}async initialized(){window.dispatchEvent(new Event("Application.initialized")),await Lh.beforeRouteHooks.execute(),this.shallRenderRouter=!0}get documentTitle(){return[this.pageHeading,manifest?.short_name].filter(Boolean).join(" | ")}get template(){return Z`${this.notificationHostTemplate} ${this.bodyTemplate} ${this.dialogHostTemplate}`}get notificationHostTemplate(){return Z`<lit-notification-host></lit-notification-host>`}get bodyTemplate(){return Z`${this.pageHostTemplate}`}get pageHostTemplate(){return Z`<lit-page-host @pageHeadingChange="${e=>this.pageHeading=e.detail}">${this.shallRenderRouter?this.router.outlet():kt}</lit-page-host>`}get dialogHostTemplate(){return Z`<lit-dialog-host></lit-dialog-host>`}}Lh.connectingHooks=new Id,Lh.beforeRouteHooks=new Id,a([Pt({updated(){document.title=this.documentTitle}})],Lh.prototype,"pageHeading",void 0),a([Rt()],Lh.prototype,"shallRenderRouter",void 0),a([Od()],Lh,"instance",void 0);const Hh=(...e)=>t=>{const{routerHostConstructor:o,routes:i}=function(...e){return"string"==typeof e[0]?{routerHostConstructor:Lh,routes:e}:{routerHostConstructor:e[0],routes:e.slice(1)}}(...e);for(const e of i)Ah.container.set(e,{routerHostConstructor:o,pageConstructor:t})};class Bh extends _t{static pageElement(){return e=>{e[Bh.pageElementConstructorSymbol]=!0}}async navigate(e=0,t=!1){if(!1!==t||!Ah.match(this,"all"))if(0===e)Ah.setPathByPage(this);else{const t=window.location.origin+Ah.getPathOf(this);await Pd.openAndFocus(t,2===e?1:0)}}constructor(e){super(),this.parameters=e}async connectedCallback(){await Bh.connectingHooks.execute(this),super.connectedCallback()}refresh(e=this.parameters){return new this.constructor(e).navigate(0,!0)}}var Uh;Bh.connectingHooks=new Id,Bh.pageElementConstructorSymbol=Symbol("PageComponent.PageElementConstructor"),Bh.defaultPageElementTag=Me`lit-page`,a([Fd(Bh.pageElementConstructorSymbol)],Bh.prototype,"pageElement",void 0);let Gh=Uh=class extends Bh{static get styles(){return f`
|
|
2
|
-
.code {
|
|
3
|
-
font-size: 60px;
|
|
4
|
-
font-weight: 400;
|
|
5
|
-
text-align: center;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
h1, h2 {
|
|
9
|
-
text-align: center;
|
|
10
|
-
margin: 0;
|
|
11
|
-
}
|
|
12
|
-
`}get template(){return Re`
|
|
13
|
-
<${Bh.defaultPageElementTag} heading=${`Error ${this.parameters.error}`} fullHeight>
|
|
14
|
-
<div ${Dt({display:"flex",gap:"8px",flexDirection:"column",alignItems:"center",justifyContent:"center"})}>
|
|
15
|
-
<div class='code'>${this.errorTemplate}</div>
|
|
16
|
-
<div ${Dt({display:"flex",gap:"4px",flexDirection:"column"})}>
|
|
17
|
-
<h1>${this.parameters.message??Rd.defaultMessageByErrorCode.get(this.parameters.error)??"Unknown Error"}</h1>
|
|
18
|
-
</div>
|
|
19
|
-
</div>
|
|
20
|
-
</${Bh.defaultPageElementTag}>
|
|
21
|
-
`}get errorTemplate(){const e=String(this.parameters.error),t=Uh.emojisByErrorCodes.get(this.parameters.error);return t?Z`
|
|
22
|
-
<span>${e.charAt(0)}</span>${t}<span>${e.charAt(2)}</span>
|
|
23
|
-
`:Z`
|
|
24
|
-
<span>${e}</span>
|
|
25
|
-
`}};Gh.emojisByErrorCodes=new Map([[400,"😟"],[401,"⛔"],[402,"🤑"],[404,"🧐"],[403,"🔒"],[405,"🚫"],[406,"😵"],[407,"🤐"],[408,"⏲"],[409,"😵"],[500,"😥"],[501,"😳"],[502,"🥴"],[503,"😴"],[504,"⌚"],[505,"🙄"],[506,"🤪"],[507,"💾"],[508,"➰"]]),Gh=Uh=a([Ct("lit-page-error"),Hh("/error/:error")],Gh);let jh=class extends _t{get template(){return Z`<div part="pageHolder" ${Dt({display:"grid",gridTemplateRows:"1fr",width:"100%"})}><slot></slot></div>`}};a([Od()],jh,"instance",void 0),jh=a([Ct("lit-page-host")],jh);class Vh extends Error{constructor(e){super(`Dialog "${e.tagName.toLowerCase()}" was cancelled.`)}}let Yh=class extends _t{createRenderRoot(){return this}};a([Od()],Yh,"instance",void 0),Yh=a([Ct("lit-dialog-host")],Yh);class qh extends _t{static dialogElement(){return e=>{e[qh.dialogElementConstructorSymbol]=!0}}static getHost(){return Promise.resolve(Yh.instance??Lh.instance??document.body)}get primaryActionElement(){return this.dialogElement.primaryActionElement}get secondaryActionElement(){return this.dialogElement.secondaryActionElement}get cancellationActionElement(){return this.dialogElement.cancellationActionElement}constructor(e){super(),this.parameters=e,this.handleAction=async e=>{const t=new Map([["primary",this.primaryAction],["secondary",this.secondaryAction],["cancellation",this.cancellationAction]]),o=t.get(e)?.bind(this);if(!o)throw new Error(`No action for key ${e}`);try{this.dialogElement.executingAction=e;const t=await o();this.dialogElement.manualClose&&"cancellation"!==e||this.close(t)}catch(e){throw notificationHost.notifyError(e.message),e}finally{this.dialogElement.executingAction=void 0}}}async handleBeforeUnload(){this.dialogElement.boundToWindow&&await this.handleAction("cancellation")}async handleKeyDown(e){[...(await qh.getHost()).children].filter((e=>e instanceof qh)).reverse()[0]===this&&(!0===this.dialogElement.primaryOnEnter&&e.key===zd.s.Enter&&await this.handleAction("primary"),this.dialogElement.preventCancellationOnEscape||e.key!==zd.s.Escape||await this.handleAction("cancellation"))}async connectedCallback(){await qh.connectingHooks.execute(this),super.connectedCallback()}confirm(e=0){return 0===e?this.confirmAsDialog():this.confirmAsPopup(e)}async confirmAsDialog(){return(await qh.getHost()).appendChild(this),new Promise(((e,t)=>{this._confirmationPromiseExecutor=[e,t]}))}async confirmAsPopup(e){this._popupWindow=await Pd.open(Zh.route,2===e?1:0);const t=new(this._popupWindow.customElements.get(this.tagName.toLowerCase()))(this.parameters);[...this.constructor.elementProperties.keys()].forEach((e=>t[e]=this[e]));const o=this._popupWindow.document.querySelector("[application]");await o.updateComplete;const i=this._popupWindow.document.querySelector("lit-page-dialog"),r=t.confirm();return await t.updateComplete,t.dialogElement.dialogHeadingChange.subscribe((e=>i.heading=e)),t.dialogElement.boundToWindow=!0,i.heading=t.dialogElement.heading,r}async pop(e=1){this.open=!1;try{const t=await this.confirm(e);this._confirmationPromiseExecutor?.[0](t)}catch(e){this._confirmationPromiseExecutor?.[1](e)}finally{this._popupWindow?.close(),this.remove()}}close(e){this.open=!1,e instanceof Error?this._confirmationPromiseExecutor?.[1](e):this._confirmationPromiseExecutor?.[0](e),this.remove()}get open(){return this.dialogElement.open??!1}set open(e){this.dialogElement&&(this.dialogElement.open=e)}firstUpdated(e){this.dialogElement.handleAction=this.handleAction,this.dialogElement.requestPopup?.subscribe((()=>this.pop())),this.dialogElement.poppable&&window.location.pathname!==Zh.route&&0!==qh.poppableConfirmationStrategy.value?this.pop(qh.poppableConfirmationStrategy.value):(this.open=!0,super.firstUpdated(e))}primaryAction(){throw new Error("Not implemented.")}secondaryAction(){return this.cancellationAction()}cancellationAction(){return new Vh(this)}}var Wh;qh.connectingHooks=new Id,qh.dialogElementConstructorSymbol=Symbol("DialogComponent.DialogElementConstructor"),qh.defaultDialogElementTag=Me`lit-dialog`,qh.poppableConfirmationStrategy=new No("DialogComponent.PoppableConfirmationStrategy",0),a([Fd(qh.dialogElementConstructorSymbol)],qh.prototype,"dialogElement",void 0),a([Nt({target:window,type:"beforeunload"})],qh.prototype,"handleBeforeUnload",null),a([Nt({target:window,type:"keydown"})],qh.prototype,"handleKeyDown",null);let Zh=Wh=class extends Bh{constructor(){super(...arguments),this.heading=""}get template(){return Re`<${Bh.defaultPageElementTag} heading=${this.heading}></${Bh.defaultPageElementTag}>`}};Zh.route="/dialog",a([Rt()],Zh.prototype,"heading",void 0),Zh=Wh=a([Hh(Wh.route),Ct("lit-page-dialog")],Zh);Xe(class extends nt{constructor(e){if(super(e),e.type!==Ke)throw new Error("routerLink can only be used on an element")}update(e,t){const o=!this.parameters;return this.element=e.element,this.parameters=function(...e){return e[0]instanceof Bh||e[0]instanceof qh?{component:e[0],matchMode:"all",selectionChangeHandler:void 0,invocationHandler:void 0}:e[0]}(...t),this.isConnected&&this.addEventListeners(),o&&this.executeSelectionChange(),super.update(e,t)}render(...e){return X}disconnected(){this.removeEventListeners()}handleEvent(e){switch(e.type){case"click":case"auxclick":e.preventDefault(),this.invoke(e);break;case"popstate":this.executeSelectionChange()}}addEventListeners(){window.addEventListener("popstate",this),this.element.addEventListener("click",this),this.element.addEventListener("auxclick",this)}removeEventListeners(){window.removeEventListener("popstate",this),this.element.removeEventListener("click",this),this.element.removeEventListener("auxclick",this)}invoke(e){const t=new(0,this.parameters.component.constructor)(this.parameters.component.parameters);t instanceof Bh?t.navigate((()=>{switch(!0){case e.ctrlKey||e.metaKey||"auxclick"===e.type:return 1;case e.shiftKey:return 2;default:return 0}})(),"auxclick"===e.type):t.confirm((()=>{switch(!0){case e.ctrlKey||e.metaKey||"auxclick"===e.type:return 1;case e.shiftKey:return 2;default:return 0}})()),this.parameters.invocationHandler?.()}executeSelectionChange(){const e=!(this.parameters.component instanceof qh)&&Ah.match(this.parameters.component,this.parameters.matchMode);e?this.element.setAttribute("data-router-selected",""):this.element.removeAttribute("data-router-selected"),this.parameters.selectionChangeHandler&&this.parameters.selectionChangeHandler.call(this.element,e)}});var Kh;function Xh(...e){return"string"!=typeof e[0]?e[0]:{message:e[0],actions:e.slice(1)}}let Jh=Kh=class extends _t{constructor(){super(...arguments),this.notifications=new Set}notifyInfo(...e){return this.notify({type:"info",...Xh(...e)})}notifySuccess(...e){return this.notify({type:"success",...Xh(...e)})}notifyWarning(...e){return this.notify({type:"warning",...Xh(...e)})}notifyError(...e){return this.notify({type:"error",...Xh(...e)})}notifyAndThrowError(e,...t){const o=Xh(...t);throw o.message??(o.message=e.message),this.notifyError(o),e}async notify(e){const t=new Kh.NotificationComponentConstructor;t.notification=e,t instanceof ve&&(this.notifications.add(t),this.requestUpdate()),await t.show(),t instanceof ve&&(this.notifications.delete(t),this.requestUpdate()),Kh.shownNotifications.add(e)}createRenderRoot(){return this}static get styles(){return f`:host{z-index:var(--lit-notification-host-z-index,8);position:fixed;inset-block-end:0;inset-inline:0;max-height:max(50vh,50%);display:grid;justify-items:center;justify-content:center;gap:.5vh;overflow:hidden}`}get template(){return Z`${this.notifications}`}};var Qh,eu;Jh.shownNotifications=new Set,Jh.notificationComponent=()=>e=>{Kh.NotificationComponentConstructor=e},a([Rt()],Jh.prototype,"notifications",void 0),a([Od()],Jh,"instance",void 0),Jh=Kh=a([Ct("lit-notification-host"),e=>{Nd(e)}],Jh),Object.defineProperty(globalThis,"notificationHost",{get:()=>Jh.instance,configurable:!1}),Lh.connectingHooks.add((async()=>{globalThis.manifest=void 0;const e=globalThis.document.head.querySelector("link[rel=manifest]");try{if(e){const t=await fetch(e.href),o=await t.text();globalThis.manifest=JSON.parse(o)}}catch{}}));Qh=class{static get serviceWorkerContainer(){return navigator.serviceWorker}static async registerServiceWorker(e){try{await(this.serviceWorkerContainer?.register(e,{scope:"/"})),await this.requestInstallation()}catch(e){console.error(e)}}static async unregisterServiceWorkers(){const e=await(this.serviceWorkerContainer?.getRegistrations())||[];for(const t of e)t.unregister()}static async requestInstallation(){if(!1===(void 0!==this.pwaPrompt))return;await(this.pwaPrompt?.prompt());const e=await(this.pwaPrompt?.userChoice);if("accepted"!==e?.outcome)throw new Error("PWA installation was not accepted")}},window.addEventListener("beforeinstallprompt",(e=>{Qh.pwaPrompt=e,e.preventDefault()}));class tu extends St{constructor(e){super(e),this.host=e}hostConnected(){this.host.setAttribute(tu.attribute,[...this.walkupPrototypeChainAndGetAttributeNames()].join(" "))}*walkupPrototypeChainAndGetAttributeNames(){let e=this.host.constructor.prototype;for(;e;)try{const t=(new e.constructor).tagName;t&&(yield t.toLowerCase())}catch(e){}finally{e=Object.getPrototypeOf(e)}}}tu.attribute="instanceof";class ou extends St{get matches(){return this.mediaQuery.matches}constructor(e,t){super(e),this.host=e,this.query=t,this.handleChange=()=>{this.host.requestUpdate()},this.mediaQuery=window.matchMedia(t)}hostConnected(){this.mediaQuery.onchange=this.handleChange}hostDisconnected(){this.mediaQuery.onchange=null}}Lo.register("en",{"${count:pluralityNumber} entries selected":["1 entry selected","${count} entries selected"]}),Lo.register("de",{"Exporting excel file":"Die Excel-Datei wird exportiert","No results":"Kein Ergebnis","${count:pluralityNumber} entries selected":["1 Eintrag ausgewählt","${count} Einträge ausgewählt"],Options:"Optionen","More Filters":"Weitere Filter","Deselect All":"Alle deselektieren"});let iu=eu=class extends _t{constructor(){super(...arguments),this.data=new Array,this.columns=new Array,this.headerHidden=!1,this.preventVerticalContentScroll=!1,this.page=1,this.selectionMode="none",this.selectedData=new Array,this.selectOnClick=!1,this.selectionBehaviorOnDataChange="reset",this.multipleDetails=!1,this.detailsOnClick=!1,this.primaryContextMenuItemOnDoubleClick=!1,this.editability="never",this.sidePanelHidden=!1,this.selectionToolbarDisabled=!1,this.hasAlternatingBackground=eu.hasAlternatingBackground.value,this.preventFabCollapse=!1,this.fabSlotCollapsed=!1,this.slotController=new Vo(this,(async()=>{var e;this.hasSums,this.hasFabs,await this.updateComplete,this.style.setProperty("--mo-data-grid-fab-slot-width",`${(null===(e=this.renderRoot.querySelector("slot[name=fab]"))||void 0===e?void 0:e.getBoundingClientRect().width)||75}px`)})),this.instanceofAttributeController=new tu(this),this.smallScreenObserverController=new ou(this,"(max-width: 768px)"),this.lastScrollElementTop=0,this.handleScroll=e=>{var t;if(!1===this.preventFabCollapse&&!e.composed&&(e.preventDefault(),null===(t=e.target)||void 0===t||t.dispatchEvent(new Event("scroll",{composed:!0,bubbles:!0})),this.hasFabs)){const t=e.composedPath()[0].scrollTop,o=t<=this.lastScrollElementTop;this.fabSlotCollapsed=!o,this.lastScrollElementTop=t<=0?0:t}}}setPage(e){this.page=e,this.pageChange.dispatch(e)}handlePageChange(e){this.setPage(e)}setPagination(e){this.pagination=e,this.paginationChange.dispatch(e)}handlePaginationChange(e){this.setPagination(e)}setData(e,t=this.selectionBehaviorOnDataChange){switch(this.data=e,t){case"reset":this.deselectAll();break;case"maintain":this.select(this.previouslySelectedData)}this.dataChange.dispatch(e)}selectAll(){"multiple"===this.selectionMode&&this.select([...this.data])}deselectAll(){this.select([])}select(e){if(this.hasSelection){const t=e.filter((e=>this.isSelectable(e)));this.selectedData=t,this.selectionChange.dispatch(t)}}isSelectable(e){var t,o;return null===(o=null===(t=this.isDataSelectable)||void 0===t?void 0:t.call(this,e))||void 0===o||o}hasDetail(e){var t,o;return(!this.subDataGridDataSelector||this.subDataGridDataSelector&&Array.isArray(getValueByKeyPath(e,this.subDataGridDataSelector)))&&(null===(o=null===(t=this.hasDataDetail)||void 0===t?void 0:t.call(this,e))||void 0===o||o)}async openRowDetails(){await Promise.all(this.detailedRows.map((e=>e.setDetails(!0))))}async closeRowDetails(){await Promise.all(this.detailedRows.map((e=>e.setDetails(!1))))}sort(e){this.sorting=e,this.sortingChange.dispatch(e)}unsort(){this.sort(void 0)}handleSortChange(e){this.sort(e)}setColumns(e){this.columns=e,this.columnsChange.dispatch(e),this.requestUpdate()}extractColumnsIfNotSetExplicitly(){0===this.columns.length&&this.extractColumns()}extractColumns(){const e=this.elementExtractedColumns.length>0?this.elementExtractedColumns:this.autoGeneratedColumns;this.setColumns(e)}handleEdit(e,t,o){const i=this.rows.find((t=>t.data===e)),r=null==i?void 0:i.cells.find((e=>e.dataSelector===t));i&&r&&void 0!==o&&r.value!==o&&(i.requestUpdate(),setValueByKeyPath(e,t,o),this.cellEdit.dispatch(r))}navigateToSidePanelTab(e){this.sidePanelTab=e,e?this.sidePanelOpen.dispatch(e):this.sidePanelClose.dispatch()}exportExcelFile(){var e,o;try{const o=this.visibleColumns.map((e=>e.dataSelector));Fu.generate(this.data,o),null===(e=Jh.instance)||void 0===e||e.notifyInfo(t("Exporting excel file"))}catch(e){throw null===(o=Jh.instance)||void 0===o||o.notifyError(e.message),e}}get detailedRows(){return this.rows.filter((e=>this.hasDetail(e.data)))}get hasDetails(){return!!this.getRowDetailsTemplate&&this.data.some((e=>this.hasDetail(e)))}get hasSelection(){return"none"!==this.selectionMode}get hasContextMenu(){return void 0!==this.getRowContextMenuTemplate}get toolbarElements(){return Array.from(this.children).filter((e=>"toolbar"===e.slot&&""!==e.getAttribute("hidden")))}get filterElements(){return Array.from(this.children).filter((e=>"filter"===e.slot&&""!==e.getAttribute("hidden")))}get hasToolbar(){return this.toolbarElements.length>0}get hasFilters(){return this.filterElements.length>0}get hasSums(){const e=!!this.columns.find((e=>e.sumHeading))||!!this.querySelector('* [slot="sum"]')||!!this.renderRoot.querySelector('slot[name="sum"] > *');return this.toggleAttribute("hasSums",e),e}get hasFabs(){const e=!!this.querySelector("* [slot=fab]")||!!this.renderRoot.querySelector("#flexFab *:not(slot[name=fab])");return this.toggleAttribute("hasFabs",e),e}get hasPagination(){return void 0!==this.pagination}get supportsDynamicPageSize(){return this.hasPagination}get pageSize(){var e;const t=e=>this.supportsDynamicPageSize?e:eu.pageSize.value;if(!this.pagination)return t(this.data.length);if("auto"===this.pagination){const o=null===(e=this.rowsContainer)||void 0===e?void 0:e.clientHeight,i=eu.rowHeight.value;return t(Math.floor((o||0)/i)||1)}return this.pagination}get hasFooter(){return this.hasPagination||this.hasSums}get dataLength(){return this.data.length}get maxPage(){return Math.ceil(this.dataLength/this.pageSize)}get hasNextPage(){return this.page!==this.maxPage}updated(...e){var t,o,i;return null===(t=this.header)||void 0===t||t.requestUpdate(),null===(o=this.sidePanel)||void 0===o||o.requestUpdate(),null===(i=this.footer)||void 0===i||i.requestUpdate(),this.rows.forEach((e=>e.requestUpdate())),super.updated(...e)}firstUpdated(e){super.firstUpdated(e),this.extractColumnsIfNotSetExplicitly(),this.rowEdit.subscribe((()=>this.requestUpdate())),this.cellEdit.subscribe((()=>this.requestUpdate())),this.setPage(1)}static get styles(){return f`
|
|
26
|
-
:host {
|
|
27
|
-
--mo-data-grid-column-details-width: 20px;
|
|
28
|
-
--mo-data-grid-column-selection-width: 40px;
|
|
29
|
-
--mo-data-grid-column-more-width: 20px;
|
|
30
|
-
|
|
31
|
-
--mo-data-grid-header-height: 32px;
|
|
32
|
-
--mo-data-grid-footer-min-height: 40px;
|
|
33
|
-
--mo-data-grid-toolbar-padding: 14px;
|
|
34
|
-
--mo-data-grid-border: 1px solid var(--mo-color-transparent-gray-3);
|
|
35
|
-
|
|
36
|
-
/* --mo-data-grid-columns Generated in JS */
|
|
37
|
-
--mo-data-grid-columns-gap: 6px;
|
|
38
|
-
|
|
39
|
-
--mo-data-grid-row-tree-line-width: 8px;
|
|
40
|
-
--mo-details-data-grid-start-margin: 26px;
|
|
41
|
-
--mo-data-grid-cell-padding: 3px;
|
|
42
|
-
|
|
43
|
-
--mo-data-grid-selection-background: rgba(var(--mo-color-accent-base), 0.5);
|
|
44
|
-
|
|
45
|
-
--mo-data-grid-row-height: ${eu.rowHeight.value}px;
|
|
46
|
-
display: flex;
|
|
47
|
-
flex-direction: column;
|
|
48
|
-
height: 100%;
|
|
49
|
-
overflow-x: hidden;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
/* Don't try to use ":nth-child(even)" as it won't work for virtualized data-grids */
|
|
53
|
-
[mo-data-grid-row][data-has-alternating-background] {
|
|
54
|
-
background: var(--mo-alternating-background);
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
:host([preventVerticalContentScroll]) mo-scroller {
|
|
58
|
-
overflow-y: hidden;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
:host([preventVerticalContentScroll]) mo-scroller::part(container) {
|
|
62
|
-
position: relative;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
:host(:not([selectionMode="none"])) {
|
|
66
|
-
--mo-data-grid-row-tree-line-width: 18px;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
:host([hasDetails]) {
|
|
70
|
-
--mo-data-grid-row-tree-line-width: 18px;
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
#flexToolbar {
|
|
74
|
-
position: relative;
|
|
75
|
-
padding: var(--mo-data-grid-toolbar-padding);
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
#flexToolbar mo-icon-button {
|
|
79
|
-
align-self: flex-start;
|
|
80
|
-
color: var(--mo-color-gray);
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
#flexSelectionToolbar {
|
|
84
|
-
background: var(--mo-color-surface);
|
|
85
|
-
position: absolute;
|
|
86
|
-
inset: 0px;
|
|
87
|
-
width: 100%;
|
|
88
|
-
height: 100%;
|
|
89
|
-
z-index: 1;
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
#flexSelectionToolbar > mo-flex {
|
|
93
|
-
background: var(--mo-data-grid-selection-background);
|
|
94
|
-
height: 100%;
|
|
95
|
-
align-items: center;
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
#flexSelectionToolbar mo-icon-button {
|
|
99
|
-
align-self: center;
|
|
100
|
-
color: var(--mo-color-foreground);
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
#flexActions {
|
|
104
|
-
align-items: center;
|
|
105
|
-
justify-content: center;
|
|
106
|
-
padding-inline: 14px 6px;
|
|
107
|
-
margin: 6px 0;
|
|
108
|
-
cursor: pointer;
|
|
109
|
-
background: var(--mo-color-accent-transparent);
|
|
110
|
-
height: calc(100% - calc(2 * 6px));
|
|
111
|
-
max-height: 45px;
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
#flexFab {
|
|
115
|
-
position: absolute;
|
|
116
|
-
top: -28px;
|
|
117
|
-
inset-inline-end: 16px;
|
|
118
|
-
transition: var(--mo-data-grid-fab-transition, var(--mo-duration-quick));
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
:host([fabSlotCollapsed][hasFabs]) #flexFab {
|
|
122
|
-
transform: scale(0);
|
|
123
|
-
opacity: 0;
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
mo-data-grid-footer {
|
|
127
|
-
transition: var(--mo-data-grid-fab-transition, var(--mo-duration-quick));
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
:host([hasSums][hasFabs]:not([fabSlotCollapsed])) mo-data-grid-footer {
|
|
131
|
-
--mo-data-grid-footer-trailing-padding: calc(var(--mo-data-grid-fab-slot-width, 56px) + 16px);
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
slot[name=fab] {
|
|
135
|
-
display: block;
|
|
136
|
-
z-index: 1;
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
mo-empty-state, ::slotted(mo-empty-state) {
|
|
140
|
-
height: 100%;
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
#overlayModeContainer {
|
|
144
|
-
position: relative;
|
|
145
|
-
height: 100%;
|
|
146
|
-
width: 100%;
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
#overlayModeContainer mo-data-grid-side-panel {
|
|
150
|
-
position: absolute;
|
|
151
|
-
inset: 0;
|
|
152
|
-
width: 100%;
|
|
153
|
-
height: 100%;
|
|
154
|
-
z-index: 1;
|
|
155
|
-
background-color: var(--mo-color-surface);
|
|
156
|
-
}
|
|
157
|
-
`}get template(){return Z`
|
|
158
|
-
<slot name='column' hidden ${kd((()=>this.requestUpdate()))}>${this.columnsTemplate}</slot>
|
|
159
|
-
${this.toolbarTemplate}
|
|
160
|
-
${this.smallScreenObserverController.matches?this.overlayModeTemplate:this.splitterModeTemplate}
|
|
161
|
-
`}get splitterModeTemplate(){return Z`
|
|
162
|
-
<mo-splitter direction='horizontal-reversed' ${Dt({height:"100%"})} .resizerTemplate=${Z`
|
|
163
|
-
<mo-splitter-resizer-line style='--mo-splitter-resizer-line-thickness: 1px; --mo-splitter-resizer-line-idle-background: var(--mo-color-transparent-gray-3); --mo-splitter-resizer-line-horizontal-transform: scaleX(5);'></mo-splitter-resizer-line>
|
|
164
|
-
`}>
|
|
165
|
-
${void 0===this.sidePanelTab?kt:Z`
|
|
166
|
-
<mo-splitter-item size='min(25%, 300px)' min='max(15%, 250px)' max='clamp(100px, 50%, 750px)'>
|
|
167
|
-
${this.sidePanelTemplate}
|
|
168
|
-
</mo-splitter-item>
|
|
169
|
-
`}
|
|
170
|
-
|
|
171
|
-
<mo-splitter-item min='0px' ${Dt({position:"relative"})}>
|
|
172
|
-
${this.dataGridTemplate}
|
|
173
|
-
</mo-splitter-item>
|
|
174
|
-
</mo-splitter>
|
|
175
|
-
`}get overlayModeTemplate(){return Z`
|
|
176
|
-
<mo-flex id='overlayModeContainer'>
|
|
177
|
-
${this.dataGridTemplate}
|
|
178
|
-
${void 0===this.sidePanelTab?kt:this.sidePanelTemplate}
|
|
179
|
-
</mo-flex>
|
|
180
|
-
`}get sidePanelTemplate(){return Z`
|
|
181
|
-
<mo-data-grid-side-panel
|
|
182
|
-
.dataGrid=${this}
|
|
183
|
-
tab=${ht(this.sidePanelTab)}
|
|
184
|
-
>
|
|
185
|
-
<slot slot='settings' name='settings'>${this.settingsDefaultTemplate}</slot>
|
|
186
|
-
<slot slot='filter' name='filter'>${this.filtersDefaultTemplate}</slot>
|
|
187
|
-
</mo-data-grid-side-panel>
|
|
188
|
-
`}get settingsDefaultTemplate(){return kt}get filtersDefaultTemplate(){return kt}get columnsTemplate(){return kt}get rowElementTag(){return Me`mo-data-grid-default-row`}get fabTemplate(){return this.hasSums,this.hasFabs,Z`
|
|
189
|
-
<slot name='fab' @slotchange=${()=>{this.hasSums,this.hasFabs}}></slot>
|
|
190
|
-
`}get contentTemplate(){return this.data.length?this.rowsTemplate:this.noContentTemplate}get noContentTemplate(){return Z`
|
|
191
|
-
<slot name='error-no-content'>
|
|
192
|
-
<mo-empty-state icon='youtube_searched_for'>${t("No results")}</mo-empty-state>
|
|
193
|
-
</slot>
|
|
194
|
-
`}get dataGridTemplate(){return this.provideCssColumnsProperties(),this.toggleAttribute("hasDetails",this.hasDetails),Z`
|
|
195
|
-
<mo-flex ${Dt({width:"*",position:"relative"})}>
|
|
196
|
-
<mo-grid ${Dt({height:"*"})} rows='* auto'>
|
|
197
|
-
<mo-scroller ${Dt({minHeight:"var(--mo-data-grid-content-min-height, calc(2.5 * var(--mo-data-grid-row-height) + var(--mo-data-grid-header-height)))",paddingBottom:"2px"})}>
|
|
198
|
-
<mo-grid ${Dt({height:"100%"})} rows='auto *'>
|
|
199
|
-
${this.headerTemplate}
|
|
200
|
-
${this.contentTemplate}
|
|
201
|
-
</mo-grid>
|
|
202
|
-
</mo-scroller>
|
|
203
|
-
${this.footerTemplate}
|
|
204
|
-
</mo-grid>
|
|
205
|
-
</mo-flex>
|
|
206
|
-
`}get headerTemplate(){return this.headerHidden?kt:Z`
|
|
207
|
-
<mo-data-grid-header .dataGrid=${this}></mo-data-grid-header>
|
|
208
|
-
`}get rowsTemplate(){const e=(e,t)=>this.getRowTemplate(e,t),t=!1===(!this.preventVerticalContentScroll&&this.renderData.length>eu.virtualizationThreshold)?this.renderData.map(e):Z`<mo-virtualized-scroller .items=${this.renderData} .getItemTemplate=${e}></mo-virtualized-scroller>`;return Z`
|
|
209
|
-
<mo-scroller id='rowsContainer'
|
|
210
|
-
${Dt({gridRow:"2",gridColumn:"1 / last-line"})}
|
|
211
|
-
${il((()=>this.requestUpdate()))}
|
|
212
|
-
@scroll=${this.handleScroll}
|
|
213
|
-
>
|
|
214
|
-
${t}
|
|
215
|
-
</mo-scroller>
|
|
216
|
-
`}getRowTemplate(e,t){return Re`
|
|
217
|
-
<${this.rowElementTag} part='row'
|
|
218
|
-
.dataGrid=${this}
|
|
219
|
-
.data=${e}
|
|
220
|
-
?selected=${ut(this.selectedData.includes(e))}
|
|
221
|
-
?data-has-alternating-background=${this.hasAlternatingBackground&&t%2==1}
|
|
222
|
-
></${this.rowElementTag}>
|
|
223
|
-
`}get footerTemplate(){return Z`
|
|
224
|
-
<mo-flex ${Dt({position:"relative"})}>
|
|
225
|
-
<mo-flex id='flexFab' direction='vertical-reversed' gap='8px'>
|
|
226
|
-
${this.fabTemplate}
|
|
227
|
-
</mo-flex>
|
|
228
|
-
${!1===this.hasFooter?kt:Z`
|
|
229
|
-
<mo-data-grid-footer
|
|
230
|
-
.dataGrid=${this}
|
|
231
|
-
page=${this.page}
|
|
232
|
-
>
|
|
233
|
-
<slot name='sum' slot='sum'>${this.sumDefaultTemplate}</slot>
|
|
234
|
-
</mo-data-grid-footer>
|
|
235
|
-
`}
|
|
236
|
-
</mo-flex>
|
|
237
|
-
`}get sumsTemplate(){return Z`${this.columns.map((e=>this.getSumTemplate(e)))}`}getSumTemplate(e){if(void 0===e.sumHeading||void 0===e.getSumTemplate)return;const t=this.renderData.map((t=>parseFloat(getValueByKeyPath(t,e.dataSelector)))).filter((e=>!1===isNaN(e))).reduce(((e,t)=>e+t),0)||0;return Z`
|
|
238
|
-
<mo-data-grid-footer-sum heading=${e.sumHeading}>
|
|
239
|
-
${e.getSumTemplate(t)}
|
|
240
|
-
</mo-data-grid-footer-sum>
|
|
241
|
-
`}get toolbarTemplate(){return!1===this.hasToolbar?kt:Z`
|
|
242
|
-
<mo-flex id='flexToolbar' direction='horizontal' gap='8px' wrap='wrap' justifyContent='end' alignItems='center'>
|
|
243
|
-
<mo-flex direction='horizontal' alignItems='inherit' gap='8px' wrap='wrap' ${Dt({width:"*"})}>
|
|
244
|
-
<slot name='toolbar'>${this.toolbarDefaultTemplate}</slot>
|
|
245
|
-
</mo-flex>
|
|
246
|
-
<mo-flex direction='horizontal' gap='8px'>
|
|
247
|
-
<slot name='toolbarAction'>${this.toolbarActionDefaultTemplate}</slot>
|
|
248
|
-
${this.toolbarActionsTemplate}
|
|
249
|
-
${this.selectionToolbarTemplate}
|
|
250
|
-
</mo-flex>
|
|
251
|
-
</mo-flex>
|
|
252
|
-
`}get toolbarDefaultTemplate(){return kt}get toolbarActionDefaultTemplate(){return kt}get sumDefaultTemplate(){return kt}get selectionToolbarTemplate(){return!0===this.selectionToolbarDisabled||0===this.selectedData.length?kt:Z`
|
|
253
|
-
<mo-flex id='flexSelectionToolbar'>
|
|
254
|
-
<mo-flex direction='horizontal' gap='30px' ${Dt({placeSelf:"stretch"})}>
|
|
255
|
-
<div ${Dt({fontWeight:"500",margin:"0 6px"})}>
|
|
256
|
-
${t("${count:pluralityNumber} entries selected",{count:this.selectedData.length})}
|
|
257
|
-
</div>
|
|
258
|
-
${this.getRowContextMenuTemplate?Z`
|
|
259
|
-
<mo-flex id='flexActions' direction='horizontal' ${this.getRowContextMenuTemplate?bd(this.getRowContextMenuTemplate(this.selectedData)):kt}>
|
|
260
|
-
<div ${Dt({width:"*"})}>${t("Options")}</div>
|
|
261
|
-
<mo-icon-button dense icon='arrow_drop_down' ${Dt({display:"flex",alignItems:"center",justifyContent:"center"})}></mo-icon-button>
|
|
262
|
-
</mo-flex>
|
|
263
|
-
`:kt}
|
|
264
|
-
<div ${Dt({width:"*"})}></div>
|
|
265
|
-
<mo-icon-button icon='close'
|
|
266
|
-
${wd(t("Deselect All"))}
|
|
267
|
-
@click=${()=>this.deselectAll()}
|
|
268
|
-
></mo-icon-button>
|
|
269
|
-
</mo-flex>
|
|
270
|
-
</mo-flex>
|
|
271
|
-
`}get toolbarActionsTemplate(){return Z`
|
|
272
|
-
${this.hasFilters?Z`
|
|
273
|
-
<mo-icon-button icon='filter_list'
|
|
274
|
-
${wd(t("More Filters"))}
|
|
275
|
-
${Dt({color:"filters"===this.sidePanelTab?"var(--mo-color-accent)":"var(--mo-color-gray)"})}
|
|
276
|
-
@click=${()=>this.navigateToSidePanelTab("filters"===this.sidePanelTab?void 0:"filters")}
|
|
277
|
-
></mo-icon-button>
|
|
278
|
-
`:kt}
|
|
279
|
-
|
|
280
|
-
<mo-icon-button icon='settings'
|
|
281
|
-
${wd(t("Settings"))}
|
|
282
|
-
${Dt({color:"settings"===this.sidePanelTab?"var(--mo-color-accent)":"var(--mo-color-gray)"})}
|
|
283
|
-
@click=${()=>this.navigateToSidePanelTab("settings"===this.sidePanelTab?void 0:"settings")}
|
|
284
|
-
></mo-icon-button>
|
|
285
|
-
`}provideCssColumnsProperties(){this.style.setProperty("--mo-data-grid-content-width",this.dataColumnsWidths.join(" ")),this.style.setProperty("--mo-data-grid-columns",this.columnsWidths.join(" "))}get columnsWidths(){return[this.detailsColumnWidth,this.selectionColumnWidth,...this.dataColumnsWidths,this.moreColumnWidth].filter((e=>void 0!==e))}get detailsColumnWidth(){return this.hasDetails?window.getComputedStyle(this).getPropertyValue("--mo-data-grid-column-details-width"):void 0}get selectionColumnWidth(){return this.hasSelection?window.getComputedStyle(this).getPropertyValue("--mo-data-grid-column-selection-width"):void 0}get dataColumnsWidths(){return this.visibleColumns.map((e=>e.width)).filter((e=>void 0!==e))}get moreColumnWidth(){return this.sidePanelHidden&&!this.hasContextMenu?void 0:window.getComputedStyle(this).getPropertyValue("--mo-data-grid-column-more-width")}get sortedData(){const e=this.sorting;if(!e)return this.data;const t=[...this.data],o=(t,o)=>{var i,r,n,a;const s=null!==(i=getValueByKeyPath(t,e.selector))&&void 0!==i?i:1/0,c=null!==(r=getValueByKeyPath(o,e.selector))&&void 0!==r?r:1/0;return null!==(a=null===(n=null==c?void 0:c.localeCompare)||void 0===n?void 0:n.call(c,s))&&void 0!==a?a:c-s};switch(e.strategy){case"ascending":return t.sort(((e,t)=>o(e,t)));case"descending":return t.sort(((e,t)=>o(t,e)))}}get renderData(){if(!1===this.hasPagination)return this.sortedData;const e=(this.page-1)*this.pageSize,t=this.page*this.pageSize;return this.sortedData.slice(e,t)}get elementExtractedColumns(){var e;if(!this.columnsSlot)return[];const t=this.columnsSlot.children.length>0?Array.from(this.columnsSlot.children):void 0,o=this.columnsSlot.assignedElements().length>0?Array.from(this.columnsSlot.assignedElements()):void 0;return Array.from(null!==(e=null!=o?o:t)&&void 0!==e?e:[]).filter((e=>{const t=e instanceof ru;return t&&(e.dataGrid=this),t})).map((e=>e.definition))}get autoGeneratedColumns(){if(!this.dataLength)return[];const e=this.data[0];return Object.keys(e||{}).filter((e=>!e.startsWith("_"))).map((t=>{const o=document.createElement((e=>{switch(typeof e){case"number":case"bigint":return"mo-data-grid-column-number";case"boolean":return"mo-data-grid-column-boolean";default:return"mo-data-grid-column-text"}})(getValueByKeyPath(e,t)));return o.remove(),{heading:t.replace(/([A-Z])/g," $1").charAt(0).toUpperCase()+t.replace(/([A-Z])/g," $1").slice(1),dataSelector:t,width:"1fr",hidden:!1,getContentTemplate:o.getContentTemplate.bind(o),getEditContentTemplate:o.getEditContentTemplate.bind(o)}}))}get visibleColumns(){return this.columns.filter((e=>!1===e.hidden))}get previouslySelectedData(){const e=this.selectedData.every((e=>Object.keys(e).includes("id")));if(e){const e=this.selectedData.map((e=>e.id));return this.data.filter((t=>e.includes(t.id)))}{const e=this.selectedData.map((e=>JSON.stringify(e)));return this.data.filter((t=>e.includes(JSON.stringify(t))))}}};iu.rowHeight=new No("MoDeL.Components.DataGrid.RowHeight",35),iu.pageSize=new No("MoDeL.Components.DataGrid.PageSize",25),iu.hasAlternatingBackground=new No("MoDeL.Components.DataGrid.HasAlternatingBackground",!0),iu.virtualizationThreshold=50,a([Ht()],iu.prototype,"dataChange",void 0),a([Ht()],iu.prototype,"selectionChange",void 0),a([Ht()],iu.prototype,"pageChange",void 0),a([Ht()],iu.prototype,"paginationChange",void 0),a([Ht()],iu.prototype,"columnsChange",void 0),a([Ht()],iu.prototype,"sidePanelOpen",void 0),a([Ht()],iu.prototype,"sidePanelClose",void 0),a([Ht()],iu.prototype,"sortingChange",void 0),a([Ht()],iu.prototype,"rowConnected",void 0),a([Ht()],iu.prototype,"rowDisconnected",void 0),a([Ht()],iu.prototype,"rowClick",void 0),a([Ht()],iu.prototype,"rowDoubleClick",void 0),a([Ht()],iu.prototype,"rowDetailsOpen",void 0),a([Ht()],iu.prototype,"rowDetailsClose",void 0),a([Ht()],iu.prototype,"rowEdit",void 0),a([Ht()],iu.prototype,"cellEdit",void 0),a([Pt({type:Array})],iu.prototype,"data",void 0),a([Pt({type:Array})],iu.prototype,"columns",void 0),a([Pt({type:Boolean,reflect:!0})],iu.prototype,"headerHidden",void 0),a([Pt({type:Boolean,reflect:!0})],iu.prototype,"preventVerticalContentScroll",void 0),a([Pt({type:Number})],iu.prototype,"page",void 0),a([Pt({reflect:!0,converter:e=>Number.isNaN(Number(e))?e:Number(e)})],iu.prototype,"pagination",void 0),a([Pt({type:Object})],iu.prototype,"sorting",void 0),a([Pt({reflect:!0})],iu.prototype,"selectionMode",void 0),a([Pt({type:Object})],iu.prototype,"isDataSelectable",void 0),a([Pt({type:Array})],iu.prototype,"selectedData",void 0),a([Pt({type:Boolean})],iu.prototype,"selectOnClick",void 0),a([Pt()],iu.prototype,"selectionBehaviorOnDataChange",void 0),a([Pt({type:Boolean})],iu.prototype,"multipleDetails",void 0),a([Pt({updated:function(){const e=this.subDataGridDataSelector;if(void 0===e||this.getRowDetailsTemplate)return;this.getRowDetailsTemplate=t=>Z`
|
|
286
|
-
<mo-data-grid ${Dt({padding:"0px"})}
|
|
287
|
-
.data=${getValueByKeyPath(t,e)}
|
|
288
|
-
headerHidden
|
|
289
|
-
sidePanelHidden
|
|
290
|
-
.columns=${this.columns}
|
|
291
|
-
.subDataGridDataSelector=${this.subDataGridDataSelector}
|
|
292
|
-
.hasDataDetail=${this.hasDataDetail}
|
|
293
|
-
.selectionMode=${this.selectionMode}
|
|
294
|
-
.isDataSelectable=${this.isDataSelectable}
|
|
295
|
-
?selectOnClick=${this.selectOnClick}
|
|
296
|
-
?primaryContextMenuItemOnDoubleClick=${this.primaryContextMenuItemOnDoubleClick}
|
|
297
|
-
?multipleDetails=${this.multipleDetails}
|
|
298
|
-
?detailsOnClick=${this.detailsOnClick}
|
|
299
|
-
.getRowContextMenuTemplate=${this.getRowContextMenuTemplate}
|
|
300
|
-
editability=${this.editability}
|
|
301
|
-
@rowConnected=${e=>this.rowConnected.dispatch(e.detail)}
|
|
302
|
-
@rowDisconnected=${e=>this.rowDisconnected.dispatch(e.detail)}
|
|
303
|
-
@rowClick=${e=>this.rowClick.dispatch(e.detail)}
|
|
304
|
-
@rowDoubleClick=${e=>this.rowDoubleClick.dispatch(e.detail)}
|
|
305
|
-
@rowDetailsOpen=${e=>this.rowDetailsOpen.dispatch(e.detail)}
|
|
306
|
-
@rowDetailsClose=${e=>this.rowDetailsClose.dispatch(e.detail)}
|
|
307
|
-
@rowEdit=${e=>this.rowEdit.dispatch(e.detail)}
|
|
308
|
-
@cellEdit=${e=>this.cellEdit.dispatch(e.detail)}
|
|
309
|
-
></mo-data-grid>
|
|
310
|
-
`}})],iu.prototype,"subDataGridDataSelector",void 0),a([Pt({type:Object})],iu.prototype,"hasDataDetail",void 0),a([Pt({type:Boolean})],iu.prototype,"detailsOnClick",void 0),a([Pt({type:Boolean})],iu.prototype,"primaryContextMenuItemOnDoubleClick",void 0),a([Pt({reflect:!0})],iu.prototype,"editability",void 0),a([Pt({type:Object})],iu.prototype,"getRowDetailsTemplate",void 0),a([Pt({type:Object})],iu.prototype,"getRowContextMenuTemplate",void 0),a([Pt()],iu.prototype,"sidePanelTab",void 0),a([Pt({type:Boolean})],iu.prototype,"sidePanelHidden",void 0),a([Pt({type:Boolean})],iu.prototype,"selectionToolbarDisabled",void 0),a([Pt({type:Boolean})],iu.prototype,"hasAlternatingBackground",void 0),a([Pt({type:Boolean})],iu.prototype,"preventFabCollapse",void 0),a([Pt({type:Boolean,reflect:!0})],iu.prototype,"fabSlotCollapsed",void 0),a([Tt("[mo-data-grid-row]")],iu.prototype,"rows",void 0),a([$t("mo-data-grid-header")],iu.prototype,"header",void 0),a([$t("#rowsContainer")],iu.prototype,"rowsContainer",void 0),a([$t("mo-data-grid-footer")],iu.prototype,"footer",void 0),a([$t("mo-data-grid-side-panel")],iu.prototype,"sidePanel",void 0),a([$t("slot[name=column]")],iu.prototype,"columnsSlot",void 0),iu=eu=a([Ct("mo-data-grid")],iu);class ru extends _t{constructor(){super(...arguments),this.width="minmax(100px, 1fr)",this.hidden=!1,this.heading="",this.textAlign="start",this.nonSortable=!1,this.nonEditable=!1}get definition(){return{dataSelector:this.dataSelector,heading:this.heading,title:this.title||void 0,alignment:this.textAlign,hidden:this.hidden,width:Ut.regex.test(this.width)?`${Ut.getProportion(this.width)}fr`:this.width,sortable:!this.nonSortable,editable:!this.nonEditable,getContentTemplate:this.getContentTemplate.bind(this),getEditContentTemplate:this.getEditContentTemplate.bind(this)}}handleEdit(e,t){var o;null===(o=this.dataGrid)||void 0===o||o.handleEdit(t,this.dataSelector,e)}connectedCallback(){this.parentElement instanceof iu&&(this.slot="column"),super.connectedCallback()}updated(){var e,t;null===(e=this.dataGrid)||void 0===e||e.extractColumns(),null===(t=this.dataGrid)||void 0===t||t.requestUpdate()}}a([Pt({type:Object})],ru.prototype,"dataGrid",void 0),a([Pt()],ru.prototype,"width",void 0),a([Pt({type:Boolean})],ru.prototype,"hidden",void 0),a([Pt({reflect:!0})],ru.prototype,"heading",void 0),a([Pt({reflect:!0})],ru.prototype,"textAlign",void 0),a([Pt({reflect:!0})],ru.prototype,"title",void 0),a([Pt({reflect:!0})],ru.prototype,"dataSelector",void 0),a([Pt({type:Boolean,reflect:!0})],ru.prototype,"nonSortable",void 0),a([Pt({type:Boolean,reflect:!0})],ru.prototype,"nonEditable",void 0);class nu extends ru{constructor(){super(...arguments),this.sumHeading=void 0,this.textAlign="end"}get definition(){return Object.assign(Object.assign({},super.definition),{sumHeading:this.sumHeading,getSumTemplate:this.getSumTemplate.bind(this)})}}a([Pt()],nu.prototype,"sumHeading",void 0),a([Pt()],nu.prototype,"textAlign",void 0);let au=class extends nu{getContentTemplate(e,t){return Z`${(null!=e?e:0).formatAsCurrency()}`}getEditContentTemplate(e,t){return Z`<mo-field-currency dense label="${this.heading}" value="${ht(e)}" @change="${e=>this.handleEdit(e.detail,t)}"></mo-field-currency>`}getSumTemplate(e){return Z`<span ${Dt({fontWeight:"500",color:"var(--mo-color-accent)"})}>${e.formatAsCurrency()}</span>`}};au=a([Ct("mo-data-grid-column-currency")],au);let su=class extends nu{getContentTemplate(e,t){var o;return Z`${Number.isFinite(e)&&null!==(o=null==e?void 0:e.formatAsPercent())&&void 0!==o?o:kt}`}getEditContentTemplate(e,t){return Z`<mo-field-percent dense label="${this.heading}" value="${ht(e)}" @change="${e=>this.handleEdit(e.detail,t)}"></mo-field-percent>`}getSumTemplate(e){return Z`${e.formatAsPercent()}`}};su=a([Ct("mo-data-grid-column-percent")],su);let cu=class extends ru{constructor(){super(...arguments),this.trueIcon="done",this.falseIcon="clear",this.trueIconColor="var(--mo-color-accent)",this.falseIconColor="var(--mo-color-gray)"}getContentTemplate(e,t){return Z`<mo-flex justifyContent="center" ${Dt({height:"100%"})}><mo-icon icon="${e?this.trueIcon:this.falseIcon}" ${Dt({color:e?this.trueIconColor:this.falseIconColor})}></mo-icon></mo-flex>`}getEditContentTemplate(e,t){return Z`<mo-checkbox label="${this.heading}" ?checked="${e}" @change="${e=>this.handleEdit("checked"===e.detail,t)}"></mo-checkbox>`}};a([Pt()],cu.prototype,"trueIcon",void 0),a([Pt()],cu.prototype,"falseIcon",void 0),a([Pt()],cu.prototype,"trueIconColor",void 0),a([Pt()],cu.prototype,"falseIconColor",void 0),cu=a([Ct("mo-data-grid-column-boolean")],cu);let lu=class extends ru{constructor(){super(...arguments),this.hideDatePicker=!1}getContentTemplate(e,t){var o;return Z`${e&&null!==(o=e.formatAsDate())&&void 0!==o?o:""}`}getEditContentTemplate(e,t){return Z`<mo-field-date dense ?hideDatePicker="${this.hideDatePicker}" label="${this.heading}" .value="${e}" @change="${e=>this.handleEdit(e.detail,t)}"></mo-field-date>`}};a([Pt({type:Boolean})],lu.prototype,"hideDatePicker",void 0),lu=a([Ct("mo-data-grid-column-date")],lu);let du=class extends ru{getContentTemplate(e,t){return e?Z`<img style="vertical-align:middle" src="${e}" onload="this.hidden=!1" onerror="this.hidden=!0">`:kt}getEditContentTemplate(e,t){return this.getContentTemplate(e,t)}};du=a([Ct("mo-data-grid-column-image")],du);let hu=class extends nu{getContentTemplate(e,t){var o;return Z`${Number.isFinite(e)&&null!==(o=null==e?void 0:e.format())&&void 0!==o?o:kt}`}getEditContentTemplate(e,t){return Z`<mo-field-number dense label="${this.heading}" value="${ht(e)}" @change="${e=>this.handleEdit(e.detail,t)}"></mo-field-number>`}getSumTemplate(e){return Z`<div ${Dt({color:"var(--mo-color-accent)",textAlign:"center",fontWeight:"500"})}>${e}</div>`}};hu=a([Ct("mo-data-grid-column-number")],hu);let uu=class extends ru{getContentTemplate(e,t){return Z`${null!=e?e:""}`}getEditContentTemplate(e,t){return Z`<mo-field-text dense label="${this.heading}" value="${ht(e)}" @change="${e=>this.handleEdit(e.detail,t)}"></mo-field-text>`}};uu=a([Ct("mo-data-grid-column-text")],uu);let pu=class extends _t{constructor(){super(...arguments),this.heading=""}static get styles(){return f`:host{display:flex;flex-direction:column;position:relative;max-height:100%;line-height:1em}div{color:var(--mo-color-foreground-transparent);font-size:var(--mo-font-size-xs);text-transform:uppercase;text-align:center}`}get template(){return Z`<div>${this.heading}</div><mo-flex direction="horizontal" justifyContent="center"><slot></slot></mo-flex>`}};a([Pt()],pu.prototype,"heading",void 0),pu=a([Ct("mo-data-grid-footer-sum")],pu);let mu=class extends _t{constructor(){super(...arguments),this.selection="unchecked",this.overlayOpen=!1,this.handleDataGridDataChange=()=>{this.requestUpdate()},this.handleDataGridSelectionChange=e=>{0===e.length?this.selection="unchecked":e.length===this.dataGrid.dataLength?this.selection="checked":this.selection="indeterminate"},this.handleSelectionChange=e=>{const t=e.target.value;"checked"===t?this.dataGrid.selectAll():"unchecked"===t&&this.dataGrid.deselectAll()}}connected(){this.dataGrid.dataChange.subscribe(this.handleDataGridDataChange),this.dataGrid.selectionChange.subscribe(this.handleDataGridSelectionChange)}disconnected(){this.dataGrid.dataChange.unsubscribe(this.handleDataGridDataChange),this.dataGrid.selectionChange.unsubscribe(this.handleDataGridSelectionChange)}static get styles(){return f`:host{--mo-data-grid-header-separator-height:15px;--mo-data-grid-header-separator-width:2px;display:inherit;font-size:var(--mo-font-size-s)}#grdHeader{border-top:var(--mo-data-grid-border);border-bottom:var(--mo-data-grid-border);position:relative;height:var(--mo-data-grid-header-height);background:var(--mo-data-grid-header-background)}.headerContent{padding:0 var(--mo-data-grid-cell-padding,3px);display:inline-block;overflow:hidden!important;color:var(--mo-color-foreground);font-weight:500;line-height:var(--mo-data-grid-header-height);white-space:nowrap;text-overflow:ellipsis}`}get skeletonColumns(){return[this.dataGrid.detailsColumnWidth,this.dataGrid.selectionColumnWidth,"1fr",this.dataGrid.moreColumnWidth].filter((e=>void 0!==e)).join(" ")}get separatorAdjustedColumns(){return this.dataGrid.dataColumnsWidths.join(" var(--mo-data-grid-columns-gap) ")}get template(){return Z`<mo-grid id="grdHeader" columns="${this.skeletonColumns}" columnGap="var(--mo-data-grid-columns-gap)">${this.detailsExpanderTemplate} ${this.selectionTemplate} ${this.contentTemplate} ${this.moreTemplate}</mo-grid>`}get detailsExpanderTemplate(){return!1===this.dataGrid.hasDetails?kt:Z`<mo-flex justifyContent="center" alignItems="center">${this.dataGrid.hasDetails&&this.dataGrid.multipleDetails?Z`<mo-icon-button dense ${Dt({padding:"-10px 0px 0 -10px"})} ${Dt({display:"inherit"})} icon="${this.areAllDetailsOpen?"unfold_less":"unfold_more"}" @click="${()=>this.toggleAllDetails()}"></mo-icon-button>`:kt}</mo-flex>`}get selectionTemplate(){return!1===this.dataGrid.hasSelection?kt:Z`<mo-flex justifyContent="center" alignItems="center">${"multiple"!==this.dataGrid.selectionMode?kt:Z`<mo-checkbox ${Dt({position:"absolute"})} value="${this.selection}" @change="${this.handleSelectionChange}"></mo-checkbox>`}</mo-flex>`}get contentTemplate(){return Z`<mo-grid columns="${this.separatorAdjustedColumns}">${function*(e,t){const o="function"==typeof t;if(void 0!==e){let i=-1;for(const r of e)i>-1&&(yield o?t(i):t),i++,yield r}}(this.dataGrid.visibleColumns.map((e=>this.getHeaderCellTemplate(e))),(e=>Z`<mo-data-grid-header-separator .dataGrid="${this.dataGrid}" .column="${this.dataGrid.visibleColumns[e]}" @columnUpdate="${()=>this.dataGrid.requestUpdate()}"></mo-data-grid-header-separator>`))}</mo-grid>`}getHeaderCellTemplate(e){const t=this.dataGrid.sorting&&e.dataSelector&&this.dataGrid.sorting.selector===e.dataSelector?"ascending"===this.dataGrid.sorting.strategy?"arrow_upward":"arrow_downward":void 0;return Z`<mo-flex direction="${"end"===e.alignment?"horizontal-reversed":"horizontal"}" alignItems="center" ${Dt({overflow:"hidden",position:"relative",cursor:"pointer",userSelect:"none"})} @click="${()=>this.sort(e)}"><div class="headerContent" ${Dt({width:"100%",textAlign:e.alignment})} title="${e.title||e.heading}">${e.heading}</div>${void 0===t?kt:Z`<mo-icon ${Dt({color:"var(--mo-color-accent)"})} icon="${ht(t)}"></mo-icon>`}</mo-flex>`}get moreTemplate(){return this.dataGrid.hasToolbar||this.dataGrid.sidePanelHidden?kt:Z`<mo-flex alignItems="center" justifyContent="center" ${Dt({marginInlineEnd:"8px",cursor:"pointer",position:"relative"})}><mo-icon-button dense icon="settings" ${Dt({color:"var(--mo-color-accent)",fontSize:"var(--mo-font-size-l)"})} @click="${()=>this.dataGrid.navigateToSidePanelTab(this.dataGrid.sidePanelTab?void 0:"settings")}"></mo-icon-button></mo-flex>`}sort(e){var t;if(!1===e.sortable)return;(null===(t=this.dataGrid.sorting)||void 0===t?void 0:t.selector)!==e.dataSelector?this.dataGrid.handleSortChange({selector:e.dataSelector,strategy:"descending"}):"descending"===this.dataGrid.sorting.strategy?this.dataGrid.handleSortChange({selector:e.dataSelector,strategy:"ascending"}):this.dataGrid.handleSortChange(void 0),this.requestUpdate()}get areAllDetailsOpen(){return 0!==this.dataGrid.detailedRows.length&&this.dataGrid.detailedRows.every((e=>e.detailsOpen))}async toggleAllDetails(){this.areAllDetailsOpen?await this.dataGrid.closeRowDetails():await this.dataGrid.openRowDetails(),this.requestUpdate()}};a([Ht()],mu.prototype,"pageChange",void 0),a([Ht()],mu.prototype,"modeSelectionChange",void 0),a([Pt({type:Object})],mu.prototype,"dataGrid",void 0),a([Pt()],mu.prototype,"selection",void 0),a([Pt({type:Boolean,reflect:!0})],mu.prototype,"overlayOpen",void 0),mu=a([Ct("mo-data-grid-header")],mu);let gu=class extends _t{constructor(){super(...arguments),this.isResizing=!1,this.delta=0,this.minimum=30,this.handleMouseDown=()=>{this.isResizing=!0,this.initialWidth=this.getColumnWidth(this.column)}}static get styles(){return f`div.separator{display:flex;align-items:center;justify-content:center;inset-inline-start:calc(var(--mo-data-grid-columns-gap) * -1);width:var(--mo-data-grid-columns-gap);height:100%;cursor:col-resize;user-select:none}.knob{height:var(--mo-data-grid-header-separator-height);width:var(--mo-data-grid-header-separator-width);border-radius:100px;background-color:var(--mo-color-gray);transition:.2s}.separator:hover .knob{--mo-data-grid-header-separator-height:30px;--mo-data-grid-header-separator-width:8px;background-color:var(--mo-color-accent);cursor:col-resize}.resizerOverlay{position:fixed;top:0;height:100%;background:var(--mo-color-gray);width:2px}`}get template(){return Z`<div class="separator" @mousedown="${this.handleMouseDown}"><div class="knob"></div></div>${!1===this.isResizing?kt:Z`<div class="resizerOverlay" ${Dt({marginInlineStart:`${this.delta}px`})}></div>`}`}handleMouseUp(){this.isResizing&&(this.isResizing=!1,this.delta=0,this.initialWidth=void 0,this.column.width=`${this.targetWidth}px`,this.dataGrid.setColumns(this.dataGrid.columns),this.columnUpdate.dispatch())}handleMouseMove(e){if(!1===this.isResizing||void 0===this.initialWidth)return;const t=e.clientX,o=this.offsetLeft;this.delta=t-o-this.dataGrid.offsetLeft,this.targetWidth=this.initialWidth+this.delta,this.targetWidth<this.minimum&&(this.delta=this.minimum-this.initialWidth,this.targetWidth=this.minimum)}getColumnWidth(e){var t;if(!0===e.hidden)return 0;e.width=null!==(t=e.width)&&void 0!==t?t:"1fr";const o=this.dataGrid.visibleColumns.findIndex((e=>e===this.column)),i=this.dataGrid.visibleColumns.findIndex((t=>t===e));let r=this.previousElementSibling;if(o!==i){let e=2*(i-o)-1;for(;e>=0;)r=r.nextElementSibling,e--}return r.clientWidth||0}};a([Ht()],gu.prototype,"columnUpdate",void 0),a([Pt({type:Object})],gu.prototype,"dataGrid",void 0),a([Pt({type:Object})],gu.prototype,"column",void 0),a([Rt()],gu.prototype,"isResizing",void 0),a([Rt()],gu.prototype,"delta",void 0),a([Nt({target:window,type:"mouseup"})],gu.prototype,"handleMouseUp",null),a([Nt({target:window,type:"mousemove"})],gu.prototype,"handleMouseMove",null),gu=a([Ct("mo-data-grid-header-separator")],gu);class fu{static get ctrl(){return this._ctrl}static get shift(){return this._shift}static get alt(){return this._alt}static get meta(){return this._meta}}fu._ctrl=!1,fu._shift=!1,fu._alt=!1,fu._meta=!1,window.addEventListener("keydown",(e=>{fu._ctrl=e.ctrlKey,fu._shift=e.shiftKey,fu._alt=e.altKey,fu._meta=e.metaKey})),window.addEventListener("keyup",(e=>{fu._ctrl=e.ctrlKey,fu._shift=e.shiftKey,fu._alt=e.altKey,fu._meta=e.metaKey})),window.addEventListener("blur",(()=>{fu._ctrl=!1,fu._shift=!1,fu._alt=!1,fu._meta=!1}));class vu extends _t{constructor(){super(...arguments),this.selected=!1,this.detailsOpen=!1,this.contextMenuOpen=!1,this.editing=!1,this.handleContextMenuOpenChange=async e=>{this.contextMenuOpen&&!1===this.dataGrid.selectedData.includes(this.data)&&this.dataGrid.select("none"!==this.dataGrid.selectionMode?[this.data]:[]),this.contextMenuOpen=e,await this.updateComplete}}setContextMenu(e){this.contextMenu=e,this.contextMenu.openChange.subscribe(this.handleContextMenuOpenChange)}get detailsElement(){var e;return null===(e=this.renderRoot.querySelector("#detailsContainer"))||void 0===e?void 0:e.firstElementChild}connected(){this.dataGrid.rowConnected.dispatch(this)}disconnected(){var e;this.dataGrid.rowDisconnected.dispatch(this),null===(e=this.contextMenu)||void 0===e||e.openChange.unsubscribe(this.handleContextMenuOpenChange),this.contextMenu=void 0}initialized(){this.toggleAttribute("mo-data-grid-row",!0),this.editing="always"===this.dataGrid.editability}updated(...e){this.cells.forEach((e=>e.requestUpdate())),this.detailsElement instanceof ve&&this.detailsElement.requestUpdate(),super.updated(...e)}get hasDetails(){return this.dataGrid.subDataGridDataSelector?Array.isArray(getValueByKeyPath(this.data,this.dataGrid.subDataGridDataSelector)):this.dataGrid.hasDetails}static get styles(){return f`:host{display:block;position:relative;height:auto;width:100%}:host(:hover){color:inherit;background:var(--mo-color-accent-transparent)!important}#detailsContainer::before,:host(:hover) #contentContainer::before{content:'';width:2px;height:100%;top:0;inset-inline-start:0;position:absolute;background-color:var(--mo-color-accent)}#contentContainer{cursor:pointer;transition:var(--mo-duration-quick)}:host([detailsOpen]) #contentContainer{background:var(--mo-data-grid-row-background-on-opened-detail-element,var(--mo-color-accent-transparent))}:host([contextMenuOpen]) #contentContainer,:host([selected]) #contentContainer{background:var(--mo-data-grid-selection-background)!important}:host([selected]:not(:last-of-type)) #contentContainer:after{content:'';position:absolute;bottom:0;inset-inline-start:0;width:100%;border-bottom:1px solid var(--mo-color-gray-transparent)}#contextMenuIconButton{transition:var(--mo-duration-quick);opacity:.5;color:var(--mo-color-gray)}:host([contextMenuOpen]) #contextMenuIconButton,:host([selected]) #contextMenuIconButton{color:var(--mo-color-foreground);opacity:1}#contentContainer:hover #contextMenuIconButton{color:var(--mo-color-accent);opacity:1}#detailsExpanderIconButton{transition:var(--mo-duration-quick)}#detailsExpanderIconButton:hover{color:var(--mo-color-accent)}:host([detailsOpen]) #detailsExpanderIconButton{transform:rotate(90deg)}#detailsContainer{display:inline-block;padding:0;width:100%}#detailsContainer:empty{display:none}#detailsContainer>:first-child{padding:8px 0}`}get template(){var e,t,o;const i="none"===this.dataGrid.selectionMode||0===this.dataGrid.selectedData.length?[this.data]:this.dataGrid.selectedData;return Z`<mo-grid id="contentContainer" ${bd(null!==(o=null===(t=(e=this.dataGrid).getRowContextMenuTemplate)||void 0===t?void 0:t.call(e,i))&&void 0!==o?o:kt,(e=>this.setContextMenu(e)))} @click="${()=>this.handleContentClick()}" @dblclick="${()=>this.handleContentDoubleClick()}">${this.rowTemplate}</mo-grid><slot id="detailsContainer">${this.detailsOpen?this.detailsTemplate:kt}</slot>`}get detailsExpanderTemplate(){var e,t;return!1===this.dataGrid.hasDetails?kt:Z`<mo-flex justifyContent="center" alignItems="center" ${Dt({width:"var(--mo-data-grid-column-details-width)"})} @click="${e=>e.stopPropagation()}" @dblclick="${e=>e.stopPropagation()}">${!1===this.hasDetails?kt:Z`<mo-icon-button id="detailsExpanderIconButton" icon="${"rtl"===getComputedStyle(this).direction?"keyboard_arrow_left":"keyboard_arrow_right"}" ${Dt({color:"var(--mo-color-foreground)"})} ?disabled="${!1===(null===(t=(e=this.dataGrid).hasDataDetail)||void 0===t?void 0:t.call(e,this.data))}" @click="${()=>this.toggleDetails()}"></mo-icon-button>`}</mo-flex>`}get selectionTemplate(){var e,t;return!1===this.dataGrid.hasSelection?kt:Z`<mo-flex id="selectionContainer" ${Dt({width:"var(--mo-data-grid-column-selection-width)"})} justifyContent="center" alignItems="center" @click="${e=>e.stopPropagation()}" @dblclick="${e=>e.stopPropagation()}"><mo-checkbox ?disabled="${!1===(null===(t=(e=this.dataGrid).isDataSelectable)||void 0===t?void 0:t.call(e,this.data))}" ?checked="${this.selected}" @change="${e=>this.setSelection("checked"===e.detail)}"></mo-checkbox></mo-flex>`}getCellTemplate(e){return e.hidden?kt:Z`<mo-data-grid-cell ?editing="${this.editing}" .row="${this}" .column="${e}" .value="${getValueByKeyPath(this.data,e.dataSelector)}"></mo-data-grid-cell>`}get contextMenuIconButtonTemplate(){return!1===this.dataGrid.hasContextMenu?kt:Z`<mo-flex justifyContent="center" alignItems="center" @click="${this.openContextMenu}" @dblclick="${e=>e.stopPropagation()}"><mo-icon-button id="contextMenuIconButton" icon="more_vert"></mo-icon-button></mo-flex>`}get detailsTemplate(){var e,t,o;return this.hasDetails&&null!==(o=null===(t=(e=this.dataGrid).getRowDetailsTemplate)||void 0===t?void 0:t.call(e,this.data))&&void 0!==o?o:kt}setSelection(e){if(this.dataGrid.hasSelection&&this.dataGrid.isSelectable(this.data)){this.selected=e;const t=this.dataGrid.lastActiveSelection;let o=this.dataGrid.selectedData;if("multiple"===this.dataGrid.selectionMode&&fu.shift&&t){const e=[this.dataGrid.data.findIndex((e=>e===t.data)),this.dataGrid.data.findIndex((e=>e===this.data))].sort(((e,t)=>e-t)),i=this.dataGrid.data.slice(e[0],e[1]+1);o=t.selected?[...o,...i]:o.filter((e=>!1===i.includes(e)))}else e?"multiple"===this.dataGrid.selectionMode?o=[...o,this.data]:"single"===this.dataGrid.selectionMode&&(o=[this.data]):o=o.filter((e=>e!==this.data));this.dataGrid.lastActiveSelection={data:this.data,selected:e},this.dataGrid.select(o.filter(((e,t,o)=>o.indexOf(e)===t)))}}handleContentClick(){this.dataGrid.selectOnClick&&"on-row-click"!==this.dataGrid.editability&&this.setSelection(!this.selected),!0===this.dataGrid.detailsOnClick&&"on-row-click"!==this.dataGrid.editability&&this.toggleDetails(),"on-row-click"===this.dataGrid.editability&&this.enableEditMode(),this.dataGrid.rowClick.dispatch(this)}enableEditMode(){this.dataBeforeEdit=JSON.stringify(this.data),this.editing=!0;const e=t=>{if(!1===t.composedPath().includes(this)){JSON.stringify(this.data)!==this.dataBeforeEdit&&this.dataGrid.rowEdit.dispatch(this),window.removeEventListener("click",e),this.editing=!1}};window.addEventListener("click",e)}async handleContentDoubleClick(){var e,t;!0===this.dataGrid.primaryContextMenuItemOnDoubleClick&&!0===this.dataGrid.hasContextMenu&&"none"===this.dataGrid.selectionMode&&(await this.openContextMenu(),null===(t=null===(e=vd.openInstance)||void 0===e?void 0:e.items.find((e=>e instanceof Pu)))||void 0===t||t.click(),this.contextMenuOpen=!1),this.dataGrid.rowDoubleClick.dispatch(this)}async openContextMenu(e){var t;null==e||e.stopPropagation(),null===(t=this.renderRoot.querySelector("#contentContainer"))||void 0===t||t.dispatchEvent(new PointerEvent("contextmenu",{bubbles:!0})),await this.handleContextMenuOpenChange(!0)}async closeContextMenu(){await this.handleContextMenuOpenChange(!1)}async setDetails(e){this.hasDetails&&(!0===e&&!1===this.dataGrid.multipleDetails&&await this.dataGrid.closeRowDetails(),this.detailsOpen=e,await this.updateComplete,(e?this.dataGrid.rowDetailsOpen:this.dataGrid.rowDetailsClose).dispatch(this))}async toggleDetails(){await this.setDetails(!this.detailsOpen)}}a([Tt("mo-data-grid-cell")],vu.prototype,"cells",void 0),a([Pt({type:Object})],vu.prototype,"dataGrid",void 0),a([Pt({type:Object})],vu.prototype,"data",void 0),a([Pt({type:Boolean,reflect:!0})],vu.prototype,"selected",void 0),a([Pt({type:Boolean,reflect:!0})],vu.prototype,"detailsOpen",void 0),a([Pt({type:Boolean,reflect:!0})],vu.prototype,"contextMenuOpen",void 0),a([Rt()],vu.prototype,"editing",void 0);let bu=class extends vu{static get styles(){return f`${super.styles}mo-grid{height:var(--mo-data-grid-row-height);grid-template-columns:var(--mo-data-grid-columns);column-gap:var(--mo-data-grid-columns-gap)}mo-flex{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}#selectionContainer{height:var(--mo-data-grid-row-height)}#detailsContainer [instanceof*=mo-data-grid]{--mo-data-grid-header-background:rgba(var(--mo-color-foreground-base), 0.04);--mo-alternating-background:transparent;--mo-data-grid-content-min-height:0px}#detailsContainer [instanceof*=mo-data-grid]:not([headerHidden]){background:var(--mo-color-transparent-gray-1)}:host-context(:not([hasDetails]):not([selectionMode=single]):not([selectionMode=multiple])) #detailsContainer>[instanceof*=mo-data-grid]:not([headerHidden]){margin:16px var(--mo-details-data-grid-start-margin);width:calc(100% - calc(var(--mo-details-data-grid-start-margin) * 2))}:host-context(:not([hasDetails]):not([selectionMode=single]):not([selectionMode=multiple])) #detailsContainer>[instanceof*=mo-data-grid]{padding:0!important}:host-context(:not([hasDetails]):not([selectionMode=single]):not([selectionMode=multiple])) #detailsContainer>[instanceof*=mo-data-grid][headerHidden]{margin-inline-start:var(--mo-details-data-grid-start-margin);width:calc(100% - var(--mo-details-data-grid-start-margin))}`}updated(...e){super.updated(...e);const t=this.renderRoot.querySelector("[instanceof*=mo-data-grid]");t&&(t.preventVerticalContentScroll=!0)}get rowTemplate(){return Z`${this.detailsExpanderTemplate} ${this.selectionTemplate} ${this.dataGrid.columns.map((e=>this.getCellTemplate(e)))} ${this.contextMenuIconButtonTemplate}`}};bu=a([Ct("mo-data-grid-default-row")],bu),Lo.register("de",{"Using the clipboard is not allowed in an insecure browser environment":"In einer unsicheren Browser-Umgebung darf kein Text in die Zwischenablage kopiert werden","Copied to clipboard":"In die Zwischenablage kopiert"});let yu=class extends _t{constructor(){super(...arguments),this.editing=!1}get data(){return this.row.data}get dataSelector(){return this.column.dataSelector}static get styles(){return f`:host{position:relative;padding:0 var(--mo-data-grid-cell-padding,3px);user-select:none;line-height:var(--mo-data-grid-row-height);white-space:nowrap;overflow:hidden!important;text-overflow:ellipsis;font-size:var(--mo-font-size-s)}:host([editing]){display:grid}:host([alignment=end]){text-align:end}:host([alignment=start]){text-align:start}:host([alignment=center]){text-align:center}:host>:first-child{line-height:var(--mo-data-grid-row-height)}:host([editing])>:first-child{align-self:center;justify-self:stretch}`}get tooltip(){return["string","number","bigint","boolean"].includes(typeof this.value)?String(this.value):""}get template(){var e,t,o,i,r;this.title=this.tooltip;const n=null!==(o=null===(t=(e=this.column).getContentTemplate)||void 0===t?void 0:t.call(e,this.value,this.data))&&void 0!==o?o:this.value,a=null===(r=(i=this.column).getEditContentTemplate)||void 0===r?void 0:r.call(i,this.value,this.data);return this.setAttribute("alignment",this.column.alignment||"start"),this.column.editable&&this.editing&&a?a:Z`${n}`}};a([Pt({type:Object})],yu.prototype,"value",void 0),a([Pt({type:Object})],yu.prototype,"column",void 0),a([Pt({type:Object})],yu.prototype,"row",void 0),a([Pt({type:Boolean,reflect:!0})],yu.prototype,"editing",void 0),yu=a([Ct("mo-data-grid-cell")],yu),Lo.register("de",{"${page:number} of ${maxPage:number}":"${page} von ${maxPage}"}),Lo.register("fa",{"${page:number} of ${maxPage:number}":"${page} از ${maxPage}"});let wu=class extends _t{constructor(){super(...arguments),this.page=1,this.manualPagination=!1,this.manualPageSize=!1}static get styles(){return f`:host{grid-column:1/last-line;grid-row:3;min-height:var(--mo-data-grid-footer-min-height)}:host(:not([hideTopBorder])){border-top:var(--mo-data-grid-border)}img{height:100%;transition:.25s;-webkit-filter:grayscale(100%);filter:grayscale(100%)}img:hover{-webkit-filter:grayscale(0);filter:grayscale(0)}`}get template(){return this.toggleAttribute("hideTopBorder",!1===this.dataGrid.hasFooter),!1===this.dataGrid.hasFooter?kt:Z`<mo-flex direction="horizontal" justifyContent="space-between" alignItems="center" wrap="wrap-reverse" gap="6px" ${Dt({flex:"1",padding:"6px"})}><mo-flex direction="horizontal" alignItems="center" gap="1vw" ${Dt({flexBasis:"auto"})}>${this.paginationTemplate}</mo-flex><mo-flex direction="horizontal" alignItems="center" gap="8px" wrap="wrap-reverse" ${Dt({textAlign:"right",paddingInlineEnd:"var(--mo-data-grid-footer-trailing-padding)"})}>${this.dataGrid.sumsTemplate}<slot name="sum"></slot></mo-flex></mo-flex>`}get paginationTemplate(){var e;const o="rtl"===getComputedStyle(this).direction,i=void 0===this.dataGrid.maxPage,r=i?this.page:t("${page:number} of ${maxPage:number}",{page:this.page,maxPage:null!==(e=this.dataGrid.maxPage)&&void 0!==e?e:0}),n=(this.page-1)*this.dataGrid.pageSize+1,a=n+this.dataGrid.renderData.length-1,s=[`${Math.min(n,a).format()}-${a.format()}`,i?void 0:this.dataGrid.dataLength.format()].filter(Boolean).join(" / ");return this.dataGrid.hasPagination?Z`<mo-flex direction="horizontal" gap="4px" alignItems="center" justifyContent="center"><mo-icon-button dense icon="${o?"last_page":"first_page"}" ?disabled="${1===this.page}" @click="${()=>this.setPage(1)}"></mo-icon-button><mo-icon-button dense icon="${o?"keyboard_arrow_right":"keyboard_arrow_left"}" ?disabled="${1===this.page}" @click="${()=>this.setPage(this.page-1)}"></mo-icon-button><div ${Dt({cursor:"pointer",width:i?"40px":"75px",textAlign:"center"})}>${this.manualPagination?Z`<mo-field-number dense value="${this.page}" @change="${e=>this.handleManualPageChange(e.detail)}"></mo-field-number>`:Z`<div ${Dt({fontSize:"var(--mo-font-size-s)"})} @click="${()=>this.manualPagination=!1===i}">${r}</div>`}</div><mo-icon-button dense icon="${o?"keyboard_arrow_left":"keyboard_arrow_right"}" ?disabled="${!this.dataGrid.hasNextPage}" @click="${()=>this.setPage(this.page+1)}"></mo-icon-button><mo-icon-button dense icon="${o?"first_page":"last_page"}" ?disabled="${i||this.page===this.dataGrid.maxPage}" @click="${()=>{var e;return this.setPage(null!==(e=this.dataGrid.maxPage)&&void 0!==e?e:1)}}"></mo-icon-button></mo-flex><div ${Dt({color:"var(--mo-color-gray)",marginInlineStart:"8px"})}>${this.manualPageSize?Z`<mo-field-select-data-grid-page-size dense ${Dt({width:"90px"})} .dataGrid="${this.dataGrid}" value="${ht(this.dataGrid.pagination)}" @change="${e=>this.handlePaginationChange(e.detail)}"></mo-field-select-data-grid-page-size>`:Z`<div ${Dt({fontSize:"var(--mo-font-size-s)"})} @click="${()=>this.manualPageSize=!0}">${s}</div>`}</div>`:kt}handlePaginationChange(e){this.dataGrid.maxPage&&this.dataGrid.page>this.dataGrid.maxPage&&(this.dataGrid.page=this.dataGrid.maxPage),this.dataGrid.handlePaginationChange(e),this.manualPageSize=!1}handleManualPageChange(e){this.page!==e&&(this.setPage(e),this.manualPagination=!1)}setPage(e){e<1&&(e=1),this.dataGrid.maxPage&&e>this.dataGrid.maxPage&&(e=this.dataGrid.maxPage),this.manualPagination=!1,this.manualPageSize=!1,this.page=e,this.dataGrid.handlePageChange(e)}};a([Pt({type:Object})],wu.prototype,"dataGrid",void 0),a([Pt({type:Number})],wu.prototype,"page",void 0),a([Rt({async updated(e){!0===e&&(await this.updateComplete,await new Promise((e=>setTimeout(e,10))),this.pageNumberField.focus(),this.pageNumberField.select())}})],wu.prototype,"manualPagination",void 0),a([Rt({async updated(e){!0===e&&(await this.updateComplete,await new Promise((e=>setTimeout(e,10))),this.pageSizeSelectField.focus(),this.pageSizeSelectField.open=!0)}})],wu.prototype,"manualPageSize",void 0),a([$t("mo-field-number")],wu.prototype,"pageNumberField",void 0),a([$t("mo-field-select-data-grid-page-size")],wu.prototype,"pageSizeSelectField",void 0),wu=a([Ct("mo-data-grid-footer")],wu),Lo.register("de",{Settings:"Einstellungen","Extended Filters":"Weitere Filter","Export as Excel file":"Als Excel-Datei Exportieren",Columns:"Spalten"});let xu=class extends _t{constructor(){super(...arguments),this.getColumnTemplate=e=>Z`<mo-checkbox ${Dt({height:"30px"})} label="${e.heading}" ?checked="${!1===e.hidden}" @change="${async t=>{var o;e.hidden=!1===(null===(o=t.target)||void 0===o?void 0:o.checked),this.dataGrid.setColumns(this.dataGrid.columns),this.dataGrid.requestUpdate(),await this.dataGrid.updateComplete}}"></mo-checkbox>`}static get styles(){return f`:host{display:inline-block!important;transition:var(--mo-duration-quick);width:100%;height:100%;transform-origin:right center}:host(:not([hidden])){border-inline-start:var(--mo-data-grid-border);background:var(--mo-color-transparent-gray-1);opacity:1}:host([hidden]){opacity:0;transform:scale(0,1);width:0}#flexHeading{border-top:var(--mo-data-grid-border);border-bottom:var(--mo-data-grid-border);height:var(--mo-data-grid-header-height);padding-inline-start:14px}mo-scroller{width:calc(100% - calc(2 * 14px));padding:0 14px;margin-top:14px;overflow-x:hidden}mo-scroller::part(container){width:calc(100% - calc(2 * 14px))}mo-section mo-checkbox{margin-inline-start:-6px}mo-section mo-icon-button{margin-inline-start:-10px}`}get template(){return Z`<mo-flex ${Dt({height:"100%"})}>${this.dataGrid.hasToolbar||!1===this.dataGrid.hasFilters?kt:Z`<mo-tab-bar value="${ht(this.dataGrid.sidePanelTab)}" @change="${e=>{var t;return this.dataGrid.navigateToSidePanelTab(null!==(t=e.detail)&&void 0!==t?t:"settings")}}"><mo-tab icon="filter_list" value="${"filters"}"></mo-tab><mo-tab icon="settings" value="${"settings"}"></mo-tab></mo-tab-bar>`} ${!1===this.dataGrid.hasToolbar&&!0===this.dataGrid.hasFilters?kt:Z`<mo-flex id="flexHeading" direction="horizontal" alignItems="center"><mo-heading typography="heading6" ${Dt({width:"*",color:"var(--mo-color-on-surface)"})}>${t("filters"===this.dataGrid.sidePanelTab?"Extended Filters":"Settings")}</mo-heading><mo-icon-button icon="close" dense ${wd(t("Close"))} ${Dt({cursor:"pointer",color:"var(--mo-color-gray)"})} @click="${()=>this.dataGrid.navigateToSidePanelTab(void 0)}"></mo-icon-button></mo-flex>`}<mo-scroller ${Dt({height:"*"})}>${"filters"===this.dataGrid.sidePanelTab?this.filtersTemplate:this.settingsTemplate}</mo-scroller></mo-flex>`}get filtersTemplate(){return Z`<mo-flex gap="14px"><slot name="filter"></slot></mo-flex>`}get settingsTemplate(){return Z`<mo-flex gap="14px"><slot name="settings"></slot><mo-section heading="${t("Columns")}">${this.dataGrid.columns.map(this.getColumnTemplate)}</mo-section><mo-section heading="Tools"><mo-icon-button icon="file_download" ${wd("Export as Excel file")} @click="${()=>this.dataGrid.exportExcelFile()}"></mo-icon-button></mo-section></mo-flex>`}};a([Pt({type:Object})],xu.prototype,"dataGrid",void 0),a([Pt()],xu.prototype,"tab",void 0),xu=a([Ct("mo-data-grid-side-panel")],xu);class ku{constructor(e){this.delayInMilliseconds=e,this.count=0}throttle(){return new Promise((e=>{const t=0===this.count;window.clearTimeout(this.timerId),this.timerId=window.setTimeout((()=>{t||(e(),this.count=0),this.timerId=void 0}),this.delayInMilliseconds),t&&e(),this.count++}))}}class Cu{enqueue(e){return new Promise(((t,o)=>{window.clearTimeout(this.timerId);const i=window.setTimeout((async()=>{const r=await e;this.timerId!==i?o(new _u(r)):(t(r),this.timerId=void 0)}));this.timerId=i}))}}class _u extends Error{constructor(e,t=_u.message){super(t),this.discardedResult=e}}_u.message="The result of a promise has been discarded in favor of another one which has started afterwards.";class Su extends St{constructor(e,t){var o,i;super(e),this.host=e,this.options=t,this.fetchEnqueuer=new Cu,this.throttler=new ku(null!==(i=null===(o=this.options)||void 0===o?void 0:o.throttle)&&void 0!==i?i:0),this._isFetching=!1}get isFetching(){return this._isFetching}set isFetching(e){this._isFetching=e,this.host.requestUpdate()}get data(){return this._data}set data(e){this._data=e,this.host.requestUpdate()}async fetch(){this.isFetching=!0,await this.throttler.throttle();const e=this.options.fetch();return this.data=e instanceof Promise?await this.fetchEnqueuer.enqueue(e):await e,this.isFetching=!1,this.fetched.dispatch(this.data),this.data}}a([Ht()],Su.prototype,"fetched",void 0);let $u=class extends Nl{constructor(){super(...arguments),this.role="option",this.selected=!1,this.multiple=!1}dataMatches(e){return JSON.stringify(this.data)===JSON.stringify(e)}get normalizedValue(){return this.normalizeValue(this.value)}valueMatches(e){return this.normalizedValue===this.normalizeValue(e)}normalizeValue(e){return"number"==typeof e||isNaN(Number(e))?e:Number(e)}get text(){var e,t,o;return null!==(o=null!==(e=this.inputText)&&void 0!==e?e:null===(t=this.textContent)||void 0===t?void 0:t.trim())&&void 0!==o?o:""}textMatches(e){return this.text.toLowerCase().includes(e.toLowerCase())}static get styles(){return f`${super.styles}:host{cursor:pointer}:host([focused]){background-color:var(--mo-color-transparent-gray)}:host([selected]){background-color:var(--mo-color-accent-transparent)}`}get template(){return Z`${super.template} ${this.checkboxTemplate}`}get checkboxTemplate(){return this.multiple?Z`<mo-checkbox tabindex="-1" ?checked="${this.selected}" @click="${e=>e.stopImmediatePropagation()}" @change="${e=>this.handleChange(e.detail)}"></mo-checkbox>`:kt}handleClick(){this.handleChange(this.selected?"unchecked":"checked")}handleChange(e){this.selected="checked"===e,this.change.dispatch(this.selected)}};a([Pt({type:Boolean,reflect:!0})],$u.prototype,"selected",void 0),a([Pt()],$u.prototype,"value",void 0),a([Pt({type:Object})],$u.prototype,"data",void 0),a([Pt({type:Boolean,reflect:!0})],$u.prototype,"multiple",void 0),a([Pt()],$u.prototype,"inputText",void 0),a([Pt({type:Number,reflect:!0})],$u.prototype,"index",void 0),a([Nt("click")],$u.prototype,"handleClick",null),$u=a([Ct("mo-option")],$u);class Tu{get menuValue(){return this._menuValue}set menuValue(e){this._menuValue=e,this.options.forEach((t=>t.selected=void 0!==t.index&&e.includes(t.index))),this.update()}constructor(e,t){this.select=e,this.update=t,this._menuValue=new Array}get options(){return this.select.options.forEach((e=>e.index=this.select.listItems.indexOf(e))),this.select.options}get selectedOptions(){return this.select.selectedOptions}get multiple(){return this.select.multiple}get index(){return this.getSelectValue(this.selectedOptions.map((e=>e.index)))}set index(e){this.setSelectValue(e,((e,t)=>void 0!==e.index&&t.includes(e.index)))}get data(){return this.getSelectValue(this.selectedOptions.map((e=>e.data)))}set data(e){this.setSelectValue(e,((e,t)=>!!e.data&&t.some((t=>e.dataMatches(t)))))}get value(){return this.getSelectValue(this.selectedOptions.map((e=>e.normalizedValue)))}set value(e){this.setSelectValue(e,((e,t)=>t.some((t=>e.valueMatches(t)))))}getSelectValue(e){const t=e instanceof Array?e:[e];return this.multiple?t:t[0]}setSelectValue(e,t){const o=e instanceof Array?e:[e],i=this.options.filter((e=>o.some((()=>t(e,o))))).map((e=>e.index)).filter((e=>void 0!==e)),r=i.length===this.menuValue.length&&i.every((e=>this.menuValue.includes(e)));!1===r&&(this.menuValue=i)}}let Eu=class extends Wo{constructor(){super(...arguments),this.reflectDefault=!1,this.multiple=!1,this.searchable=!1,this.open=!1,this.valueController=new Tu(this,(()=>{this.requestUpdate(),this.inputStringValue=this.valueToInputValue(this.value)}))}get value(){return this.valueController.value}set value(e){this.valueController.value=e}get index(){return this.valueController.index}set index(e){this.valueController.index=e}get data(){return this.valueController.data}set data(e){this.valueController.data=e}get listItems(){var e,t,o;return null!==(o=null===(t=null===(e=this.menu)||void 0===e?void 0:e.list)||void 0===t?void 0:t.items)&&void 0!==o?o:[]}get options(){return this.listItems.filter((e=>e instanceof $u))}get selectedOptions(){return this.options.filter((e=>e.selected))}updated(e){super.updated(e),this.options.forEach((e=>e.multiple=this.multiple))}get isActive(){return super.isActive||this.open}static get styles(){return f`${super.styles}:host{display:flex;flex-flow:column}input{cursor:pointer}mo-icon[part=dropDownIcon]{font-size:20px;color:var(--mo-color-gray);user-select:none;margin-inline-end:-4px;cursor:pointer}mo-field[active] mo-icon[part=dropDownIcon]{color:var(--mo-color-accent)}mo-menu::part(popover){background:var(--mo-color-background);max-height:300px;overflow-y:auto;scrollbar-width:thin;color:var(--mo-color-foreground)}slot:not([name]){display:flex;flex-direction:column;align-items:stretch}::slotted(mo-option),mo-option{transform:scaleY(1);transition:.2s ease-in-out;height:36px;opacity:1;min-width:var(--mo-field-width)}::slotted(mo-option[data-search-no-match]),mo-option[data-search-no-match]{transform:scaleY(0);opacity:0;height:0;pointer-events:none}`}get template(){return Z`${super.template} ${this.menuTemplate}`}get inputTemplate(){return Z`<input part="input" type="text" autocomplete="off" ?readonly="${!this.searchable}" ?disabled="${this.disabled}" .value="${ut(this.inputStringValue||"")}" @input="${e=>this.handleInput(e.target.value,e)}">`}get endSlotTemplate(){return this.style.setProperty("--mo-field-width",this.offsetWidth+"px"),Z`${super.endSlotTemplate}<mo-icon slot="end" part="dropDownIcon" icon="expand_more"></mo-icon>`}get menuTemplate(){return Z`<mo-menu selectionMode="${this.multiple?"multiple":"single"}" .anchor="${this}" ?open="${this.open}" @openChange="${e=>this.open=e.detail}" .value="${this.valueController.menuValue}" @change="${e=>this.handleSelection(e.detail)}">${this.optionsTemplate}</mo-menu>`}get optionsTemplate(){return Z`${this.default?Z`<mo-list-item value="" @click="${()=>this.handleSelection([])}">${this.default}</mo-list-item>`:kt}<slot></slot>`}valueToInputValue(e){var t;const o=e instanceof Array?e:void 0===e?void 0:[e];return o&&0!==o.length?this.options.filter((e=>o.some((t=>e.valueMatches(t))))).map((e=>e.text)).join(", "):this.reflectDefault&&null!==(t=this.default)&&void 0!==t?t:""}handleFocus(){super.handleFocus(),this.inputElement.setSelectionRange(0,0),this.searchable&&this.select()}handleInput(e,t){super.handleInput(e,t),this.searchable&&this.searchOptions()}handleSelection(e){this.valueController.menuValue=e,this.change.dispatch(this.value),this.dataChange.dispatch(this.data),this.indexChange.dispatch(this.index),this.multiple||(this.open=!1)}get searchKeyword(){return this.inputElement.value.toLowerCase().trim()}async searchOptions(){await this.search(),await this.updateComplete,this.open=this.options.length>0}search(){const e=this.options.filter((e=>e.textMatches(this.searchKeyword))).map((e=>e.normalizedValue));for(const t of this.options){const o=e.some((e=>t.valueMatches(e)));o?t.removeAttribute("data-search-no-match"):t.setAttribute("data-search-no-match",""),t.disabled=!o}return Promise.resolve()}};var Au;a([Ht()],Eu.prototype,"dataChange",void 0),a([Ht()],Eu.prototype,"indexChange",void 0),a([Pt()],Eu.prototype,"default",void 0),a([Pt({type:Boolean})],Eu.prototype,"reflectDefault",void 0),a([Pt({type:Boolean})],Eu.prototype,"multiple",void 0),a([Pt({type:Boolean})],Eu.prototype,"searchable",void 0),a([Pt({type:Boolean,reflect:!0})],Eu.prototype,"open",void 0),a([Pt({type:Object})],Eu.prototype,"value",null),a([Pt({type:Array})],Eu.prototype,"index",null),a([Pt({type:Array})],Eu.prototype,"data",null),a([$t("mo-menu")],Eu.prototype,"menu",void 0),Eu=a([Ct("mo-field-select")],Eu);let Du=Au=class extends Eu{constructor(){super(...arguments),this.optionsRenderLimit=Au.fetchedOptionsRenderLimit,this.fetcherController=new Su(this,{throttle:500,fetch:async()=>{var e,t,o;const i=null!==(t=null===(e=this.searchParameters)||void 0===e?void 0:e.call(this,this.searchKeyword))&&void 0!==t?t:{},r=Object.assign(Object.assign({},this.parameters),i),n=await(null===(o=this.fetch)||void 0===o?void 0:o.call(this,r))||[];return this.dataFetch.dispatch(n),n}})}static get styles(){return f`${super.styles}:host([fetching]) mo-field:after{visibility:visible;animation:fetching 1s linear infinite}@keyframes fetching{0%{inset-inline-start:-40%;width:0%}50%{inset-inline-start:20%;width:80%}100%{inset-inline-start:100%;width:100%}}`}get template(){return this.fetcherController.isFetching?this.setAttribute("fetching",""):this.removeAttribute("fetching"),super.template}firstUpdated(){super.firstUpdated(),this.parameters||this.requestFetch()}async search(){if(!this.searchParameters)return super.search();await this.requestFetch()}requestFetch(){return this.fetcherController.fetch()}get optionsTemplate(){var e,t;return Z`${super.optionsTemplate} ${null===(t=null===(e=this.fetcherController.data)||void 0===e?void 0:e.slice(0,this.optionsRenderLimit))||void 0===t?void 0:t.map(((e,t,o)=>{var i,r;return null!==(r=null===(i=this.optionTemplate)||void 0===i?void 0:i.call(this,e,t,o))&&void 0!==r?r:Z`<mo-option .data="${e}" value="${t}" fetched>${e}</mo-option>`}))}`}};var Mu;Du.fetchedOptionsRenderLimit=250,a([Ht()],Du.prototype,"dataFetch",void 0),a([Pt({type:Number})],Du.prototype,"optionsRenderLimit",void 0),a([Pt({type:Object})],Du.prototype,"optionTemplate",void 0),a([Pt({type:Object,updated(){this.requestFetch()}})],Du.prototype,"parameters",void 0),a([Pt({type:Object})],Du.prototype,"searchParameters",void 0),a([Pt({type:Object})],Du.prototype,"fetch",void 0),Du=Au=a([Ct("mo-field-fetchable-select")],Du);let Iu=Mu=class extends Du{constructor(){super(...arguments),this.fetch=()=>Promise.resolve(Mu.data),this.optionTemplate=e=>"auto"!==e||this.dataGrid&&!1!==this.dataGrid.supportsDynamicPageSize?Z`<mo-option value="${e}">${"auto"===e?"Auto":e.format()}</mo-option>`:kt}};Iu.data=new Array("auto",10,25,50,100,250,500),a([Pt({type:Object})],Iu.prototype,"dataGrid",void 0),Iu=Mu=a([Ct("mo-field-select-data-grid-page-size")],Iu);let Pu=class extends md{static get styles(){return f`${super.styles}:host{font-weight:700}`}};Pu=a([Ct("mo-data-grid-primary-context-menu-item")],Pu);class Ru{static download(e,t){const o=document.createElement("a");o.href=e,o.style.visibility="hidden",o.download=null!=t?t:"",o.target="_blank",document.body.appendChild(o),o.click(),document.body.removeChild(o)}}class Fu{static generate(e,t=Object.keys(e[0]),o="Export"){var i;const r=e.map((e=>(t.forEach((t=>{const o=getValueByKeyPath(e,t);setValueByKeyPath(e,t,o instanceof Date?isNaN(o.getTime())?"":o.toISOString():o)})),e))),n=`${t.join(",")}\n\t\t\t${r.map((e=>t.map((t=>`"${getValueByKeyPath(e,t)}"`)).join(","))).join("\r\n")}\n\t\t`,a=globalThis.manifest,s=(null!==(i=null==a?void 0:a.short_name)&&void 0!==i?i:"")+o.replace(/ /g,"_");Ru.download(`data:text/csv;charset=utf-8,${escape(n)}`,`${s}.csv`)}}})()})();
|