godown 3.9.0 → 3.10.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/alert.d.ts +1 -8
- package/alert.d.ts.map +1 -1
- package/alert.js +1 -1
- package/alert.js.map +1 -1
- package/avatar.d.ts +1 -8
- package/avatar.d.ts.map +1 -1
- package/avatar.js +1 -1
- package/avatar.js.map +1 -1
- package/badge.d.ts +1 -8
- package/badge.d.ts.map +1 -1
- package/badge.js +1 -1
- package/badge.js.map +1 -1
- package/breath.d.ts +1 -8
- package/breath.d.ts.map +1 -1
- package/breath.js +1 -1
- package/breath.js.map +1 -1
- package/build/godown+lit.iife.js +12 -12
- package/build/godown+lit.iife.js.map +1 -1
- package/build/godown+lit.js +12 -12
- package/build/godown+lit.js.map +1 -1
- package/build/godown+lit.umd.js +12 -12
- package/build/godown+lit.umd.js.map +1 -1
- package/build/godown.iife.js +11 -11
- package/build/godown.js +10 -10
- package/build/godown.js.map +1 -1
- package/build/godown.umd.js +11 -11
- package/build/godown.umd.js.map +1 -1
- package/button.d.ts +1 -8
- package/button.d.ts.map +1 -1
- package/button.js +1 -1
- package/button.js.map +1 -1
- package/card.d.ts +1 -8
- package/card.d.ts.map +1 -1
- package/card.js +1 -1
- package/card.js.map +1 -1
- package/carousel.d.ts +1 -8
- package/carousel.d.ts.map +1 -1
- package/carousel.js +1 -1
- package/carousel.js.map +1 -1
- package/custom-elements.json +1 -1
- package/details.d.ts +1 -8
- package/details.d.ts.map +1 -1
- package/details.js +1 -1
- package/details.js.map +1 -1
- package/dialog.d.ts +1 -8
- package/dialog.d.ts.map +1 -1
- package/dialog.js +1 -1
- package/dialog.js.map +1 -1
- package/divider.d.ts +1 -8
- package/divider.d.ts.map +1 -1
- package/divider.js +1 -1
- package/divider.js.map +1 -1
- package/dragbox.d.ts +1 -8
- package/dragbox.d.ts.map +1 -1
- package/dragbox.js +1 -1
- package/dragbox.js.map +1 -1
- package/flex.d.ts +1 -8
- package/flex.d.ts.map +1 -1
- package/flex.js +1 -1
- package/flex.js.map +1 -1
- package/form.d.ts +1 -8
- package/form.d.ts.map +1 -1
- package/form.js +1 -1
- package/form.js.map +1 -1
- package/grid.d.ts +1 -8
- package/grid.d.ts.map +1 -1
- package/grid.js +1 -1
- package/grid.js.map +1 -1
- package/heading.d.ts +1 -8
- package/heading.d.ts.map +1 -1
- package/heading.js +1 -1
- package/heading.js.map +1 -1
- package/index.js +1 -1
- package/input.d.ts +1 -8
- package/input.d.ts.map +1 -1
- package/input.js +1 -1
- package/input.js.map +1 -1
- package/internal/direction.d.ts.map +1 -0
- package/internal/direction.js.map +1 -0
- package/internal/global-style.d.ts.map +1 -0
- package/internal/global-style.js.map +1 -0
- package/internal/outline.d.ts.map +1 -0
- package/internal/outline.js.map +1 -0
- package/internal/super-anchor.d.ts.map +1 -0
- package/{core → internal}/super-anchor.js +1 -1
- package/internal/super-anchor.js.map +1 -0
- package/internal/super-input.d.ts.map +1 -0
- package/{core → internal}/super-input.js +1 -1
- package/internal/super-input.js.map +1 -0
- package/internal/super-openable.d.ts.map +1 -0
- package/internal/super-openable.js.map +1 -0
- package/layout.d.ts +1 -8
- package/layout.d.ts.map +1 -1
- package/layout.js +1 -1
- package/layout.js.map +1 -1
- package/link.d.ts +1 -8
- package/link.d.ts.map +1 -1
- package/link.js +1 -1
- package/link.js.map +1 -1
- package/package.json +3 -3
- package/progress.d.ts +1 -8
- package/progress.d.ts.map +1 -1
- package/progress.js +1 -1
- package/progress.js.map +1 -1
- package/range.d.ts +1 -8
- package/range.d.ts.map +1 -1
- package/range.js +1 -1
- package/range.js.map +1 -1
- package/rotate.d.ts +1 -8
- package/rotate.d.ts.map +1 -1
- package/rotate.js +1 -1
- package/rotate.js.map +1 -1
- package/router.d.ts +1 -8
- package/router.d.ts.map +1 -1
- package/router.js +1 -1
- package/router.js.map +1 -1
- package/select.d.ts +1 -8
- package/select.d.ts.map +1 -1
- package/select.js +1 -1
- package/select.js.map +1 -1
- package/skeleton.d.ts +1 -8
- package/skeleton.d.ts.map +1 -1
- package/skeleton.js +1 -1
- package/skeleton.js.map +1 -1
- package/split.d.ts +1 -8
- package/split.d.ts.map +1 -1
- package/split.js +1 -1
- package/split.js.map +1 -1
- package/src/alert.ts +1 -13
- package/src/avatar.ts +1 -13
- package/src/badge.ts +1 -13
- package/src/breath.ts +1 -13
- package/src/button.ts +1 -13
- package/src/card.ts +1 -13
- package/src/carousel.ts +1 -13
- package/src/details.ts +1 -13
- package/src/dialog.ts +1 -13
- package/src/divider.ts +1 -13
- package/src/dragbox.ts +1 -13
- package/src/flex.ts +1 -13
- package/src/form.ts +1 -13
- package/src/grid.ts +1 -13
- package/src/heading.ts +1 -13
- package/src/input.ts +1 -13
- package/src/layout.ts +1 -13
- package/src/link.ts +1 -13
- package/src/progress.ts +1 -13
- package/src/range.ts +1 -13
- package/src/rotate.ts +1 -13
- package/src/router.ts +1 -13
- package/src/select.ts +1 -13
- package/src/skeleton.ts +1 -13
- package/src/split.ts +1 -13
- package/src/switch.ts +1 -13
- package/src/tabs.ts +1 -13
- package/src/text.ts +1 -13
- package/src/time.ts +1 -13
- package/src/tooltip.ts +1 -13
- package/src/typewriter.ts +1 -13
- package/src/{components/alert.ts → web-components/alert/component.ts} +1 -1
- package/src/web-components/alert/definition.ts +11 -0
- package/src/{components/avatar.ts → web-components/avatar/component.ts} +1 -1
- package/src/web-components/avatar/definition.ts +11 -0
- package/src/{components/badge.ts → web-components/badge/component.ts} +2 -2
- package/src/web-components/badge/definition.ts +11 -0
- package/src/{components/breath.ts → web-components/breath/component.ts} +4 -2
- package/src/web-components/breath/definition.ts +11 -0
- package/src/{components/button.ts → web-components/button/component.ts} +1 -1
- package/src/web-components/button/definition.ts +11 -0
- package/src/{components/card.ts → web-components/card/component.ts} +2 -2
- package/src/web-components/card/definition.ts +11 -0
- package/src/{components/carousel.ts → web-components/carousel/component.ts} +1 -1
- package/src/web-components/carousel/definition.ts +11 -0
- package/src/{components/details.ts → web-components/details/component.ts} +2 -2
- package/src/web-components/details/definition.ts +11 -0
- package/src/{components/dialog.ts → web-components/dialog/component.ts} +5 -3
- package/src/web-components/dialog/definition.ts +11 -0
- package/src/{components/divider.ts → web-components/divider/component.ts} +1 -1
- package/src/web-components/divider/definition.ts +11 -0
- package/src/{components/dragbox.ts → web-components/dragbox/component.ts} +1 -1
- package/src/web-components/dragbox/definition.ts +11 -0
- package/src/{components/flex.ts → web-components/flex/component.ts} +1 -1
- package/src/web-components/flex/definition.ts +11 -0
- package/src/{components/form.ts → web-components/form/component.ts} +1 -1
- package/src/web-components/form/definition.ts +11 -0
- package/src/{components/grid.ts → web-components/grid/component.ts} +1 -1
- package/src/web-components/grid/definition.ts +11 -0
- package/src/{components/heading.ts → web-components/heading/component.ts} +1 -1
- package/src/web-components/heading/definition.ts +11 -0
- package/src/{components/input.ts → web-components/input/component.ts} +3 -3
- package/src/web-components/input/definition.ts +11 -0
- package/src/{components/layout.ts → web-components/layout/component.ts} +1 -1
- package/src/web-components/layout/definition.ts +11 -0
- package/src/{components/link.ts → web-components/link/component.ts} +2 -2
- package/src/web-components/link/definition.ts +11 -0
- package/src/{components/progress.ts → web-components/progress/component.ts} +1 -1
- package/src/web-components/progress/definition.ts +11 -0
- package/src/{components/range.ts → web-components/range/component.ts} +2 -2
- package/src/web-components/range/definition.ts +11 -0
- package/src/{components/rotate.ts → web-components/rotate/component.ts} +1 -1
- package/src/web-components/rotate/definition.ts +11 -0
- package/src/{components/router.ts → web-components/router/component.ts} +1 -1
- package/src/web-components/router/definition.ts +11 -0
- package/src/{components/select.ts → web-components/select/component.ts} +3 -3
- package/src/web-components/select/definition.ts +11 -0
- package/src/{components/skeleton.ts → web-components/skeleton/component.ts} +1 -1
- package/src/web-components/skeleton/definition.ts +11 -0
- package/src/{components/split.ts → web-components/split/component.ts} +3 -3
- package/src/web-components/split/definition.ts +11 -0
- package/src/{components/switch.ts → web-components/switch/component.ts} +2 -2
- package/src/web-components/switch/definition.ts +11 -0
- package/src/{components/tabs.ts → web-components/tabs/component.ts} +2 -2
- package/src/web-components/tabs/definition.ts +11 -0
- package/src/{components/text.ts → web-components/text/component.ts} +1 -1
- package/src/web-components/text/definition.ts +11 -0
- package/src/{components/time.ts → web-components/time/component.ts} +1 -1
- package/src/web-components/time/definition.ts +11 -0
- package/src/{components/tooltip.ts → web-components/tooltip/component.ts} +3 -3
- package/src/web-components/tooltip/definition.ts +11 -0
- package/src/{components/typewriter.ts → web-components/typewriter/component.ts} +1 -1
- package/src/web-components/typewriter/definition.ts +11 -0
- package/switch.d.ts +1 -8
- package/switch.d.ts.map +1 -1
- package/switch.js +1 -1
- package/switch.js.map +1 -1
- package/tabs.d.ts +1 -8
- package/tabs.d.ts.map +1 -1
- package/tabs.js +1 -1
- package/tabs.js.map +1 -1
- package/text.d.ts +1 -8
- package/text.d.ts.map +1 -1
- package/text.js +1 -1
- package/text.js.map +1 -1
- package/time.d.ts +1 -8
- package/time.d.ts.map +1 -1
- package/time.js +1 -1
- package/time.js.map +1 -1
- package/tooltip.d.ts +1 -8
- package/tooltip.d.ts.map +1 -1
- package/tooltip.js +1 -1
- package/tooltip.js.map +1 -1
- package/typewriter.d.ts +1 -8
- package/typewriter.d.ts.map +1 -1
- package/typewriter.js +1 -1
- package/typewriter.js.map +1 -1
- package/vscode.html-custom-data.json +1 -1
- package/{components/alert.d.ts → web-components/alert/component.d.ts} +2 -2
- package/web-components/alert/component.d.ts.map +1 -0
- package/web-components/alert/component.js +2 -0
- package/web-components/alert/component.js.map +1 -0
- package/web-components/alert/definition.d.ts +8 -0
- package/web-components/alert/definition.d.ts.map +1 -0
- package/web-components/alert/definition.js +2 -0
- package/web-components/alert/definition.js.map +1 -0
- package/{components/avatar.d.ts → web-components/avatar/component.d.ts} +2 -2
- package/web-components/avatar/component.d.ts.map +1 -0
- package/web-components/avatar/component.js +2 -0
- package/web-components/avatar/component.js.map +1 -0
- package/web-components/avatar/definition.d.ts +8 -0
- package/web-components/avatar/definition.d.ts.map +1 -0
- package/web-components/avatar/definition.js +2 -0
- package/web-components/avatar/definition.js.map +1 -0
- package/{components/badge.d.ts → web-components/badge/component.d.ts} +3 -3
- package/web-components/badge/component.d.ts.map +1 -0
- package/web-components/badge/component.js +2 -0
- package/web-components/badge/component.js.map +1 -0
- package/web-components/badge/definition.d.ts +8 -0
- package/web-components/badge/definition.d.ts.map +1 -0
- package/web-components/badge/definition.js +2 -0
- package/web-components/badge/definition.js.map +1 -0
- package/{components/breath.d.ts → web-components/breath/component.d.ts} +2 -2
- package/web-components/breath/component.d.ts.map +1 -0
- package/web-components/breath/component.js +2 -0
- package/web-components/breath/component.js.map +1 -0
- package/web-components/breath/definition.d.ts +8 -0
- package/web-components/breath/definition.d.ts.map +1 -0
- package/web-components/breath/definition.js +2 -0
- package/web-components/breath/definition.js.map +1 -0
- package/{components/button.d.ts → web-components/button/component.d.ts} +2 -2
- package/web-components/button/component.d.ts.map +1 -0
- package/web-components/button/component.js +2 -0
- package/web-components/button/component.js.map +1 -0
- package/web-components/button/definition.d.ts +8 -0
- package/web-components/button/definition.d.ts.map +1 -0
- package/web-components/button/definition.js +2 -0
- package/web-components/button/definition.js.map +1 -0
- package/{components/card.d.ts → web-components/card/component.d.ts} +2 -2
- package/web-components/card/component.d.ts.map +1 -0
- package/web-components/card/component.js +2 -0
- package/web-components/card/component.js.map +1 -0
- package/web-components/card/definition.d.ts +8 -0
- package/web-components/card/definition.d.ts.map +1 -0
- package/web-components/card/definition.js +2 -0
- package/web-components/card/definition.js.map +1 -0
- package/{components/carousel.d.ts → web-components/carousel/component.d.ts} +2 -2
- package/web-components/carousel/component.d.ts.map +1 -0
- package/web-components/carousel/component.js +2 -0
- package/web-components/carousel/component.js.map +1 -0
- package/web-components/carousel/definition.d.ts +8 -0
- package/web-components/carousel/definition.d.ts.map +1 -0
- package/web-components/carousel/definition.js +2 -0
- package/web-components/carousel/definition.js.map +1 -0
- package/{components/details.d.ts → web-components/details/component.d.ts} +2 -2
- package/web-components/details/component.d.ts.map +1 -0
- package/web-components/details/component.js +2 -0
- package/web-components/details/component.js.map +1 -0
- package/web-components/details/definition.d.ts +8 -0
- package/web-components/details/definition.d.ts.map +1 -0
- package/web-components/details/definition.js +2 -0
- package/web-components/details/definition.js.map +1 -0
- package/{components/dialog.d.ts → web-components/dialog/component.d.ts} +2 -2
- package/web-components/dialog/component.d.ts.map +1 -0
- package/web-components/dialog/component.js +2 -0
- package/web-components/dialog/component.js.map +1 -0
- package/web-components/dialog/definition.d.ts +8 -0
- package/web-components/dialog/definition.d.ts.map +1 -0
- package/web-components/dialog/definition.js +2 -0
- package/web-components/dialog/definition.js.map +1 -0
- package/{components/divider.d.ts → web-components/divider/component.d.ts} +2 -2
- package/web-components/divider/component.d.ts.map +1 -0
- package/web-components/divider/component.js +2 -0
- package/web-components/divider/component.js.map +1 -0
- package/web-components/divider/definition.d.ts +8 -0
- package/web-components/divider/definition.d.ts.map +1 -0
- package/web-components/divider/definition.js +2 -0
- package/web-components/divider/definition.js.map +1 -0
- package/{components/dragbox.d.ts → web-components/dragbox/component.d.ts} +2 -2
- package/web-components/dragbox/component.d.ts.map +1 -0
- package/web-components/dragbox/component.js +2 -0
- package/web-components/dragbox/component.js.map +1 -0
- package/web-components/dragbox/definition.d.ts +8 -0
- package/web-components/dragbox/definition.d.ts.map +1 -0
- package/web-components/dragbox/definition.js +2 -0
- package/web-components/dragbox/definition.js.map +1 -0
- package/{components/flex.d.ts → web-components/flex/component.d.ts} +2 -2
- package/web-components/flex/component.d.ts.map +1 -0
- package/web-components/flex/component.js +2 -0
- package/web-components/flex/component.js.map +1 -0
- package/web-components/flex/definition.d.ts +8 -0
- package/web-components/flex/definition.d.ts.map +1 -0
- package/web-components/flex/definition.js +2 -0
- package/web-components/flex/definition.js.map +1 -0
- package/{components/form.d.ts → web-components/form/component.d.ts} +2 -2
- package/web-components/form/component.d.ts.map +1 -0
- package/web-components/form/component.js +2 -0
- package/web-components/form/component.js.map +1 -0
- package/web-components/form/definition.d.ts +8 -0
- package/web-components/form/definition.d.ts.map +1 -0
- package/web-components/form/definition.js +2 -0
- package/web-components/form/definition.js.map +1 -0
- package/{components/grid.d.ts → web-components/grid/component.d.ts} +2 -2
- package/web-components/grid/component.d.ts.map +1 -0
- package/web-components/grid/component.js +2 -0
- package/web-components/grid/component.js.map +1 -0
- package/web-components/grid/definition.d.ts +8 -0
- package/web-components/grid/definition.d.ts.map +1 -0
- package/web-components/grid/definition.js +2 -0
- package/web-components/grid/definition.js.map +1 -0
- package/{components/heading.d.ts → web-components/heading/component.d.ts} +2 -2
- package/web-components/heading/component.d.ts.map +1 -0
- package/web-components/heading/component.js +2 -0
- package/web-components/heading/component.js.map +1 -0
- package/web-components/heading/definition.d.ts +8 -0
- package/web-components/heading/definition.d.ts.map +1 -0
- package/web-components/heading/definition.js +2 -0
- package/web-components/heading/definition.js.map +1 -0
- package/{components/input.d.ts → web-components/input/component.d.ts} +2 -2
- package/web-components/input/component.d.ts.map +1 -0
- package/web-components/input/component.js +2 -0
- package/web-components/input/component.js.map +1 -0
- package/web-components/input/definition.d.ts +8 -0
- package/web-components/input/definition.d.ts.map +1 -0
- package/web-components/input/definition.js +2 -0
- package/web-components/input/definition.js.map +1 -0
- package/{components/layout.d.ts → web-components/layout/component.d.ts} +2 -2
- package/web-components/layout/component.d.ts.map +1 -0
- package/web-components/layout/component.js +2 -0
- package/web-components/layout/component.js.map +1 -0
- package/web-components/layout/definition.d.ts +8 -0
- package/web-components/layout/definition.d.ts.map +1 -0
- package/web-components/layout/definition.js +2 -0
- package/web-components/layout/definition.js.map +1 -0
- package/{components/link.d.ts → web-components/link/component.d.ts} +2 -2
- package/web-components/link/component.d.ts.map +1 -0
- package/web-components/link/component.js +2 -0
- package/web-components/link/component.js.map +1 -0
- package/web-components/link/definition.d.ts +8 -0
- package/web-components/link/definition.d.ts.map +1 -0
- package/web-components/link/definition.js +2 -0
- package/web-components/link/definition.js.map +1 -0
- package/{components/progress.d.ts → web-components/progress/component.d.ts} +2 -2
- package/web-components/progress/component.d.ts.map +1 -0
- package/web-components/progress/component.js +2 -0
- package/web-components/progress/component.js.map +1 -0
- package/web-components/progress/definition.d.ts +8 -0
- package/web-components/progress/definition.d.ts.map +1 -0
- package/web-components/progress/definition.js +2 -0
- package/web-components/progress/definition.js.map +1 -0
- package/{components/range.d.ts → web-components/range/component.d.ts} +2 -2
- package/web-components/range/component.d.ts.map +1 -0
- package/web-components/range/component.js +2 -0
- package/web-components/range/component.js.map +1 -0
- package/web-components/range/definition.d.ts +8 -0
- package/web-components/range/definition.d.ts.map +1 -0
- package/web-components/range/definition.js +2 -0
- package/web-components/range/definition.js.map +1 -0
- package/{components/rotate.d.ts → web-components/rotate/component.d.ts} +2 -2
- package/web-components/rotate/component.d.ts.map +1 -0
- package/web-components/rotate/component.js +2 -0
- package/web-components/rotate/component.js.map +1 -0
- package/web-components/rotate/definition.d.ts +8 -0
- package/web-components/rotate/definition.d.ts.map +1 -0
- package/web-components/rotate/definition.js +2 -0
- package/web-components/rotate/definition.js.map +1 -0
- package/{components/router.d.ts → web-components/router/component.d.ts} +2 -2
- package/web-components/router/component.d.ts.map +1 -0
- package/web-components/router/component.js +2 -0
- package/web-components/router/component.js.map +1 -0
- package/web-components/router/definition.d.ts +8 -0
- package/web-components/router/definition.d.ts.map +1 -0
- package/web-components/router/definition.js +2 -0
- package/web-components/router/definition.js.map +1 -0
- package/{components/select.d.ts → web-components/select/component.d.ts} +3 -3
- package/web-components/select/component.d.ts.map +1 -0
- package/web-components/select/component.js +2 -0
- package/web-components/select/component.js.map +1 -0
- package/web-components/select/definition.d.ts +8 -0
- package/web-components/select/definition.d.ts.map +1 -0
- package/web-components/select/definition.js +2 -0
- package/web-components/select/definition.js.map +1 -0
- package/{components/skeleton.d.ts → web-components/skeleton/component.d.ts} +2 -2
- package/web-components/skeleton/component.d.ts.map +1 -0
- package/web-components/skeleton/component.js +2 -0
- package/web-components/skeleton/component.js.map +1 -0
- package/web-components/skeleton/definition.d.ts +8 -0
- package/web-components/skeleton/definition.d.ts.map +1 -0
- package/web-components/skeleton/definition.js +2 -0
- package/web-components/skeleton/definition.js.map +1 -0
- package/{components/split.d.ts → web-components/split/component.d.ts} +2 -2
- package/web-components/split/component.d.ts.map +1 -0
- package/web-components/split/component.js +2 -0
- package/web-components/split/component.js.map +1 -0
- package/web-components/split/definition.d.ts +8 -0
- package/web-components/split/definition.d.ts.map +1 -0
- package/web-components/split/definition.js +2 -0
- package/web-components/split/definition.js.map +1 -0
- package/{components/switch.d.ts → web-components/switch/component.d.ts} +2 -2
- package/web-components/switch/component.d.ts.map +1 -0
- package/web-components/switch/component.js +2 -0
- package/web-components/switch/component.js.map +1 -0
- package/web-components/switch/definition.d.ts +8 -0
- package/web-components/switch/definition.d.ts.map +1 -0
- package/web-components/switch/definition.js +2 -0
- package/web-components/switch/definition.js.map +1 -0
- package/{components/tabs.d.ts → web-components/tabs/component.d.ts} +3 -3
- package/web-components/tabs/component.d.ts.map +1 -0
- package/web-components/tabs/component.js +2 -0
- package/web-components/tabs/component.js.map +1 -0
- package/web-components/tabs/definition.d.ts +8 -0
- package/web-components/tabs/definition.d.ts.map +1 -0
- package/web-components/tabs/definition.js +2 -0
- package/web-components/tabs/definition.js.map +1 -0
- package/{components/text.d.ts → web-components/text/component.d.ts} +2 -2
- package/web-components/text/component.d.ts.map +1 -0
- package/web-components/text/component.js +2 -0
- package/web-components/text/component.js.map +1 -0
- package/web-components/text/definition.d.ts +8 -0
- package/web-components/text/definition.d.ts.map +1 -0
- package/web-components/text/definition.js +2 -0
- package/web-components/text/definition.js.map +1 -0
- package/{components/time.d.ts → web-components/time/component.d.ts} +2 -2
- package/web-components/time/component.d.ts.map +1 -0
- package/web-components/time/component.js +2 -0
- package/web-components/time/component.js.map +1 -0
- package/web-components/time/definition.d.ts +8 -0
- package/web-components/time/definition.d.ts.map +1 -0
- package/web-components/time/definition.js +2 -0
- package/web-components/time/definition.js.map +1 -0
- package/{components/tooltip.d.ts → web-components/tooltip/component.d.ts} +3 -3
- package/web-components/tooltip/component.d.ts.map +1 -0
- package/web-components/tooltip/component.js +2 -0
- package/web-components/tooltip/component.js.map +1 -0
- package/web-components/tooltip/definition.d.ts +8 -0
- package/web-components/tooltip/definition.d.ts.map +1 -0
- package/web-components/tooltip/definition.js +2 -0
- package/web-components/tooltip/definition.js.map +1 -0
- package/{components/typewriter.d.ts → web-components/typewriter/component.d.ts} +2 -2
- package/web-components/typewriter/component.d.ts.map +1 -0
- package/web-components/typewriter/component.js +2 -0
- package/web-components/typewriter/component.js.map +1 -0
- package/web-components/typewriter/definition.d.ts +8 -0
- package/web-components/typewriter/definition.d.ts.map +1 -0
- package/web-components/typewriter/definition.js +2 -0
- package/web-components/typewriter/definition.js.map +1 -0
- package/web-types.json +1 -1
- package/components/alert.d.ts.map +0 -1
- package/components/alert.js +0 -2
- package/components/alert.js.map +0 -1
- package/components/avatar.d.ts.map +0 -1
- package/components/avatar.js +0 -2
- package/components/avatar.js.map +0 -1
- package/components/badge.d.ts.map +0 -1
- package/components/badge.js +0 -2
- package/components/badge.js.map +0 -1
- package/components/breath.d.ts.map +0 -1
- package/components/breath.js +0 -2
- package/components/breath.js.map +0 -1
- package/components/button.d.ts.map +0 -1
- package/components/button.js +0 -2
- package/components/button.js.map +0 -1
- package/components/card.d.ts.map +0 -1
- package/components/card.js +0 -2
- package/components/card.js.map +0 -1
- package/components/carousel.d.ts.map +0 -1
- package/components/carousel.js +0 -2
- package/components/carousel.js.map +0 -1
- package/components/details.d.ts.map +0 -1
- package/components/details.js +0 -2
- package/components/details.js.map +0 -1
- package/components/dialog.d.ts.map +0 -1
- package/components/dialog.js +0 -2
- package/components/dialog.js.map +0 -1
- package/components/divider.d.ts.map +0 -1
- package/components/divider.js +0 -2
- package/components/divider.js.map +0 -1
- package/components/dragbox.d.ts.map +0 -1
- package/components/dragbox.js +0 -2
- package/components/dragbox.js.map +0 -1
- package/components/flex.d.ts.map +0 -1
- package/components/flex.js +0 -2
- package/components/flex.js.map +0 -1
- package/components/form.d.ts.map +0 -1
- package/components/form.js +0 -2
- package/components/form.js.map +0 -1
- package/components/grid.d.ts.map +0 -1
- package/components/grid.js +0 -2
- package/components/grid.js.map +0 -1
- package/components/heading.d.ts.map +0 -1
- package/components/heading.js +0 -2
- package/components/heading.js.map +0 -1
- package/components/input.d.ts.map +0 -1
- package/components/input.js +0 -2
- package/components/input.js.map +0 -1
- package/components/layout.d.ts.map +0 -1
- package/components/layout.js +0 -2
- package/components/layout.js.map +0 -1
- package/components/link.d.ts.map +0 -1
- package/components/link.js +0 -2
- package/components/link.js.map +0 -1
- package/components/progress.d.ts.map +0 -1
- package/components/progress.js +0 -2
- package/components/progress.js.map +0 -1
- package/components/range.d.ts.map +0 -1
- package/components/range.js +0 -2
- package/components/range.js.map +0 -1
- package/components/rotate.d.ts.map +0 -1
- package/components/rotate.js +0 -2
- package/components/rotate.js.map +0 -1
- package/components/router.d.ts.map +0 -1
- package/components/router.js +0 -2
- package/components/router.js.map +0 -1
- package/components/select.d.ts.map +0 -1
- package/components/select.js +0 -2
- package/components/select.js.map +0 -1
- package/components/skeleton.d.ts.map +0 -1
- package/components/skeleton.js +0 -2
- package/components/skeleton.js.map +0 -1
- package/components/split.d.ts.map +0 -1
- package/components/split.js +0 -2
- package/components/split.js.map +0 -1
- package/components/switch.d.ts.map +0 -1
- package/components/switch.js +0 -2
- package/components/switch.js.map +0 -1
- package/components/tabs.d.ts.map +0 -1
- package/components/tabs.js +0 -2
- package/components/tabs.js.map +0 -1
- package/components/text.d.ts.map +0 -1
- package/components/text.js +0 -2
- package/components/text.js.map +0 -1
- package/components/time.d.ts.map +0 -1
- package/components/time.js +0 -2
- package/components/time.js.map +0 -1
- package/components/tooltip.d.ts.map +0 -1
- package/components/tooltip.js +0 -2
- package/components/tooltip.js.map +0 -1
- package/components/typewriter.d.ts.map +0 -1
- package/components/typewriter.js +0 -2
- package/components/typewriter.js.map +0 -1
- package/core/direction.d.ts.map +0 -1
- package/core/direction.js.map +0 -1
- package/core/global-style.d.ts.map +0 -1
- package/core/global-style.js.map +0 -1
- package/core/outline.d.ts.map +0 -1
- package/core/outline.js.map +0 -1
- package/core/super-anchor.d.ts.map +0 -1
- package/core/super-anchor.js.map +0 -1
- package/core/super-input.d.ts.map +0 -1
- package/core/super-input.js.map +0 -1
- package/core/super-openable.d.ts.map +0 -1
- package/core/super-openable.js.map +0 -1
- /package/{core → internal}/direction.d.ts +0 -0
- /package/{core → internal}/direction.js +0 -0
- /package/{core → internal}/global-style.d.ts +0 -0
- /package/{core → internal}/global-style.js +0 -0
- /package/{core → internal}/outline.d.ts +0 -0
- /package/{core → internal}/outline.js +0 -0
- /package/{core → internal}/super-anchor.d.ts +0 -0
- /package/{core → internal}/super-input.d.ts +0 -0
- /package/{core → internal}/super-openable.d.ts +0 -0
- /package/{core → internal}/super-openable.js +0 -0
- /package/src/{core → internal}/direction.ts +0 -0
- /package/src/{core → internal}/global-style.ts +0 -0
- /package/src/{core → internal}/outline.ts +0 -0
- /package/src/{core → internal}/super-anchor.ts +0 -0
- /package/src/{core → internal}/super-input.ts +0 -0
- /package/src/{core → internal}/super-openable.ts +0 -0
package/build/godown.js
CHANGED
@@ -1,48 +1,48 @@
|
|
1
1
|
/**
|
2
2
|
* @license MIT
|
3
|
-
* @version 3.
|
3
|
+
* @version 3.10.1
|
4
4
|
* Require Lit Core (import from `"lit"`)
|
5
5
|
*/
|
6
|
-
import{noChange as t,nothing as e,html as o,svg as r,LitElement as s,unsafeCSS as a,css as l}from"lit";function h(t,e,o,r){var s,a=arguments.length,l=a<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(t,e,o,r);else for(var h=t.length-1;h>=0;h--)(s=t[h])&&(l=(a<3?s(l):a>3?s(e,o,l):s(e,o))||l);return a>3&&l&&Object.defineProperty(e,o,l),l}"function"==typeof SuppressedError&&SuppressedError;const c=t=>null==t,d=t=>"string"==typeof t,p=t=>null!==t&&"object"==typeof t,{isArray:u}=Array,v=(t,...e)=>{const o={};for(const r in t)e.includes(r)||(o[r]=t[r]);return o},f=(t,e,o)=>(t?t+(e?o+e:""):e)||"",m=(t,e,o)=>t.startsWith(e)&&t.endsWith(o),g=t=>(t=>{var e;return(null===(e=t.match(/[A-Z][^A-Z_-\s]*|[^A-Z_-\s]+/g))||void 0===e?void 0:e.map((t=>t.toLowerCase())))||[]})(t).join("-");function*y(t){for(const[e,o]of u(t)?t:Object.entries(t))yield[e,o]}const $=t=>{let e="";for(const[o,r]of y(t))if(r){const t=p(r)
|
6
|
+
import{noChange as t,nothing as e,html as o,svg as r,LitElement as s,unsafeCSS as a,css as l}from"lit";function h(t,e,o,r){var s,a=arguments.length,l=a<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(t,e,o,r);else for(var h=t.length-1;h>=0;h--)(s=t[h])&&(l=(a<3?s(l):a>3?s(e,o,l):s(e,o))||l);return a>3&&l&&Object.defineProperty(e,o,l),l}"function"==typeof SuppressedError&&SuppressedError;const c=t=>null==t,d=t=>"string"==typeof t,p=t=>null!==t&&"object"==typeof t,{isArray:u}=Array,v=(t,...e)=>{const o={};for(const r in t)e.includes(r)||(o[r]=t[r]);return o},f=(t,e,o)=>(t?t+(e?o+e:""):e)||"",m=(t,e,o)=>t.startsWith(e)&&t.endsWith(o),g=t=>(t=>{var e;return(null===(e=t.match(/[A-Z][^A-Z_-\s]*|[^A-Z_-\s]+/g))||void 0===e?void 0:e.map((t=>t.toLowerCase())))||[]})(t).join("-");function*y(t){for(const[e,o]of u(t)?t:Object.entries(t))yield[e,o]}const $=t=>p(t)&&"_$cssResult$"in t,_=t=>{let e="";for(const[o,r]of y(t))if(r){const t=p(r)&&!$(r)?w(r):r;t&&(e+=o?`${o}{${t}}`:t)}return e},w=t=>{let e="";for(const[o,r]of y(t))o&&!c(r)&&(e+=`${o}:${r};`);return e};class StyleController{constructor(t,e){(this.host=t).addController(this),this.computeStyle=e}hostUpdated(){const t=this.host.shadowRoot?.adoptedStyleSheets;if(!t)return;void 0!==this.styleID&&t.splice(this.styleID,1);const e=this.computeStyle();this.styleID=e?t.push((t=>{if(d(t)){const e=new CSSStyleSheet;return e.replaceSync(t),e}return $(t)?t.styleSheet:t})(e))-1:void 0}}const x=(...t)=>e=>{const o=[];for(let t=Object.getPrototypeOf(e);t.styles;t=Object.getPrototypeOf(t))o.push(t.styles);e.styles=[...o,...t]},k=(t,e)=>o=>{t||=g(o.name),o.protoName=t;(({tagName:t,styles:e,autoDefine:o=!1,registry:r=customElements})=>s=>{s.elementTagName=t,e&&x(e)(s),o&&!r.get(t)&&r.define(t,s)})({tagName:o.godownConfig.tag(t),...e})(o)}
|
7
7
|
/**
|
8
8
|
* @license
|
9
9
|
* Copyright 2019 Google LLC
|
10
10
|
* SPDX-License-Identifier: BSD-3-Clause
|
11
|
-
*/,
|
11
|
+
*/,C=globalThis,S=C.ShadowRoot&&(void 0===C.ShadyCSS||C.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,R=Symbol(),E=new WeakMap;let T=class n{constructor(t,e,o){if(this._$cssResult$=!0,o!==R)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(S&&void 0===t){const o=void 0!==e&&1===e.length;o&&(t=E.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),o&&E.set(e,t))}return t}toString(){return this.cssText}};const M=S?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const o of t.cssRules)e+=o.cssText;return(t=>new T("string"==typeof t?t:t+"",void 0,R))(e)})(t):t
|
12
12
|
/**
|
13
13
|
* @license
|
14
14
|
* Copyright 2017 Google LLC
|
15
15
|
* SPDX-License-Identifier: BSD-3-Clause
|
16
|
-
*/,{is:
|
16
|
+
*/,{is:A,defineProperty:P,getOwnPropertyDescriptor:z,getOwnPropertyNames:I,getOwnPropertySymbols:O,getPrototypeOf:B}=Object,D=globalThis,N=D.trustedTypes,U=N?N.emptyScript:"",L=D.reactiveElementPolyfillSupport,j=(t,e)=>t,V={toAttribute(t,e){switch(e){case Boolean:t=t?U:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let o=t;switch(e){case Boolean:o=null!==t;break;case Number:o=null===t?null:Number(t);break;case Object:case Array:try{o=JSON.parse(t)}catch(t){o=null}}return o}},G=(t,e)=>!A(t,e),H={attribute:!0,type:String,converter:V,reflect:!1,hasChanged:G};Symbol.metadata??=Symbol("metadata"),D.litPropertyMetadata??=new WeakMap;let q=class b extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=H){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(t,e),!e.noAccessor){const o=Symbol(),r=this.getPropertyDescriptor(t,o,e);void 0!==r&&P(this.prototype,t,r)}}static getPropertyDescriptor(t,e,o){const{get:r,set:s}=z(this.prototype,t)??{get(){return this[e]},set(t){this[e]=t}};return{get(){return r?.call(this)},set(e){const a=r?.call(this);s.call(this,e),this.requestUpdate(t,a,o)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??H}static _$Ei(){if(this.hasOwnProperty(j("elementProperties")))return;const t=B(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(j("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(j("properties"))){const t=this.properties,e=[...I(t),...O(t)];for(const o of e)this.createProperty(o,t[o])}const t=this[Symbol.metadata];if(null!==t){const e=litPropertyMetadata.get(t);if(void 0!==e)for(const[t,o]of e)this.elementProperties.set(t,o)}this._$Eh=new Map;for(const[t,e]of this.elementProperties){const o=this._$Eu(t,e);void 0!==o&&this._$Eh.set(o,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const o=new Set(t.flat(1/0).reverse());for(const t of o)e.unshift(M(t))}else void 0!==t&&e.push(M(t));return e}static _$Eu(t,e){const o=e.attribute;return!1===o?void 0:"string"==typeof o?o:"string"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach((t=>t(this)))}addController(t){(this._$EO??=new Set).add(t),void 0!==this.renderRoot&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$EO?.delete(t)}_$E_(){const t=new Map,e=this.constructor.elementProperties;for(const o of e.keys())this.hasOwnProperty(o)&&(t.set(o,this[o]),delete this[o]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return((t,e)=>{if(S)t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(const o of e){const e=document.createElement("style"),r=C.litNonce;void 0!==r&&e.setAttribute("nonce",r),e.textContent=o.cssText,t.appendChild(e)}})(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach((t=>t.hostConnected?.()))}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach((t=>t.hostDisconnected?.()))}attributeChangedCallback(t,e,o){this._$AK(t,o)}_$EC(t,e){const o=this.constructor.elementProperties.get(t),r=this.constructor._$Eu(t,o);if(void 0!==r&&!0===o.reflect){const s=(void 0!==o.converter?.toAttribute?o.converter:V).toAttribute(e,o.type);this._$Em=t,null==s?this.removeAttribute(r):this.setAttribute(r,s),this._$Em=null}}_$AK(t,e){const o=this.constructor,r=o._$Eh.get(t);if(void 0!==r&&this._$Em!==r){const t=o.getPropertyOptions(r),s="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:V;this._$Em=r,this[r]=s.fromAttribute(e,t.type),this._$Em=null}}requestUpdate(t,e,o){if(void 0!==t){if(o??=this.constructor.getPropertyOptions(t),!(o.hasChanged??G)(this[t],e))return;this.P(t,e,o)}!1===this.isUpdatePending&&(this._$ES=this._$ET())}P(t,e,o){this._$AL.has(t)||this._$AL.set(t,e),!0===o.reflect&&this._$Em!==t&&(this._$Ej??=new Set).add(t)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[t,e]of this._$Ep)this[t]=e;this._$Ep=void 0}const t=this.constructor.elementProperties;if(t.size>0)for(const[e,o]of t)!0!==o.wrapped||this._$AL.has(e)||void 0===this[e]||this.P(e,this[e],o)}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),this._$EO?.forEach((t=>t.hostUpdate?.())),this.update(e)):this._$EU()}catch(e){throw t=!1,this._$EU(),e}t&&this._$AE(e)}willUpdate(t){}_$AE(t){this._$EO?.forEach((t=>t.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Ej&&=this._$Ej.forEach((t=>this._$EC(t,this[t]))),this._$EU()}updated(t){}firstUpdated(t){}};q.elementStyles=[],q.shadowRootOptions={mode:"open"},q[j("elementProperties")]=new Map,q[j("finalized")]=new Map,L?.({ReactiveElement:q}),(D.reactiveElementVersions??=[]).push("2.0.4");
|
17
17
|
/**
|
18
18
|
* @license
|
19
19
|
* Copyright 2017 Google LLC
|
20
20
|
* SPDX-License-Identifier: BSD-3-Clause
|
21
21
|
*/
|
22
|
-
const
|
22
|
+
const F={attribute:!0,type:String,converter:V,reflect:!1,hasChanged:G},W=(t=F,e,o)=>{const{kind:r,metadata:s}=o;let a=globalThis.litPropertyMetadata.get(s);if(void 0===a&&globalThis.litPropertyMetadata.set(s,a=new Map),a.set(o.name,t),"accessor"===r){const{name:r}=o;return{set(o){const s=e.get.call(this);e.set.call(this,o),this.requestUpdate(r,s,t)},init(e){return void 0!==e&&this.P(r,void 0,t),e}}}if("setter"===r){const{name:r}=o;return function(o){const s=this[r];e.call(this,o),this.requestUpdate(r,s,t)}}throw Error("Unsupported decorator location: "+r)};function Y(t){return(e,o)=>"object"==typeof o?W(t,e,o):((t,e,o)=>{const r=e.hasOwnProperty(o);return e.constructor.createProperty(o,r?{...t,wrapped:!0}:t),r?Object.getOwnPropertyDescriptor(e,o):void 0})(t,e,o)
|
23
23
|
/**
|
24
24
|
* @license
|
25
25
|
* Copyright 2017 Google LLC
|
26
26
|
* SPDX-License-Identifier: BSD-3-Clause
|
27
|
-
*/}function
|
27
|
+
*/}function X(t){return Y({...t,state:!0,attribute:!1})}
|
28
28
|
/**
|
29
29
|
* @license
|
30
30
|
* Copyright 2017 Google LLC
|
31
31
|
* SPDX-License-Identifier: BSD-3-Clause
|
32
|
-
*/const
|
32
|
+
*/const Z=(t,e,o)=>(o.configurable=!0,o.enumerable=!0,Reflect.decorate&&"object"!=typeof e&&Object.defineProperty(t,e,o),o)
|
33
33
|
/**
|
34
34
|
* @license
|
35
35
|
* Copyright 2017 Google LLC
|
36
36
|
* SPDX-License-Identifier: BSD-3-Clause
|
37
|
-
*/;function
|
37
|
+
*/;function K(t,e){return(o,r,s)=>{const a=e=>e.renderRoot?.querySelector(t)??null;if(e){const{get:t,set:e}="object"==typeof r?o:s??(()=>{const t=Symbol();return{get(){return this[t]},set(e){this[t]=e}}})();return Z(o,r,{get(){let o=t.call(this);return void 0===o&&(o=a(this),(null!==o||this.hasUpdated)&&e.call(this,o)),o}})}return Z(o,r,{get(){return a(this)}})}}
|
38
38
|
/**
|
39
39
|
* @license
|
40
40
|
* Copyright 2017 Google LLC
|
41
41
|
* SPDX-License-Identifier: BSD-3-Clause
|
42
|
-
*/let
|
42
|
+
*/let Q;function J(t){return(e,o)=>Z(e,o,{get(){return(this.renderRoot??(Q??=document.createDocumentFragment())).querySelectorAll(t)}})}const tt=(t,e=!0)=>K(`[part~="${t}"]`,e)
|
43
43
|
/**
|
44
44
|
* @license
|
45
45
|
* Copyright 2017 Google LLC
|
46
46
|
* SPDX-License-Identifier: BSD-3-Clause
|
47
|
-
*/,tt=6;let et=class i{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,o){this._$Ct=t,this._$AM=e,this._$Ci=o}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}};function ot(t,e){(t=>c(t)||!1===t)(e)?this.removeAttribute(t):!0===e?this.setAttribute(t,""):d(e)||(t=>"number"==typeof t)(e)&&!Number.isNaN(e)?this.setAttribute(t,String(e)):this[t]=e}const it=(t=>(...e)=>({_$litDirective$:t,values:e}))(class AttrDirective extends et{render(t,e){}update(e,[o,r=ot]){if(o&&e.type===tt)for(const t in o)r.call(e.element,t,o[t]);return t}}),rt=((t,e)=>o=>t({...e,...o}))(it,{width:"1em",height:"1em",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"}),st=t=>o`<slot name="${t||e}"></slot>`,nt=(t,r)=>{if(!t)return e;const s=d(t)?t:$(t);return s?o`<style media="${e}">${s}</style>`:e},at=t=>(e,...s)=>{const a=r(e,s),l=d(t)?t:t.join(" "),h=t=>o`<svg viewBox="${l}" ${rt(t)}>${a}</svg>`;return h.body=a,h.viewBox=l,h};function*lt(t,e,o){for(let o=0;o<t;o++)yield e(o)}const ht=(...t)=>t.reduce(((t,e)=>{if(!e)return t;if(u(e))return f(t,ht(...e)," ");if(p(e)){for(const o in e)e[o]&&(t=f(t,o," "));return t}return f(t,e," ")}),"");function ct(t,e=this){if(!e||!t)return[];const o=new Set;e instanceof Element&&e.shadowRoot&&ct(t,e.shadowRoot).forEach((t=>o.add(t))),e.querySelectorAll(t).forEach((t=>o.add(t)));for(const r of e.children)ct(t,r).forEach((t=>o.add(t)));return Array.from(o)}function dt(t,e=this){if(!e||!t)return null;let o;if(e instanceof Element&&e.shadowRoot&&(o=dt(t,e.shadowRoot),o))return o;if(o=e.querySelector(t),o)return o;for(const r of e.children)if(o=dt(t,r),o)return o;return null}class Events{constructor(){this.inner=new Map}add(t,e,o,r){if(!t||!o)return;const s=this.inner.get(e)||new Map,a=s.get(t)||new Set;return a.add(o),s.set(t,a),this.inner.set(e,s),t.addEventListener(e,o,r),o}remove(t,e,o,r){if(!t||!o)return;const s=this.inner.get(e);if(s){const r=s.get(t);r&&(r.delete(o),r.size||(s.delete(t),s.size||this.inner.delete(e)))}t.removeEventListener(e,o,r)}removeAll(){this.inner.forEach(((t,e)=>{t.forEach(((t,o)=>{t.forEach((t=>{o.removeEventListener(e,t)}))})),t.clear()})),this.inner.clear()}}class Observers{constructor(){this.inner=new Map}add(t,e,o,r){const[s,a]=((t,e,o)=>{let r,s;switch(t){case MutationObserver:case ResizeObserver:r=new t(e),s=t=>r.observe(t,o);break;case IntersectionObserver:r=new t(e,o),s=t=>r.observe(t);break;case PerformanceObserver:r=new t(e),s=()=>r.observe(o)}return[r,s]})(e,o,r);if(s)return this.inner.set(s,(this.inner.get(s)||new Set).add(t)),a(t),s}remove(t,e){t.disconnect();const o=this.inner.get(t);"unobserve"in t?(e?(t.unobserve(e),o?.delete(e)):(o?.forEach((e=>{t.unobserve(e)})),o?.clear()),o&&!o.size&&this.inner.delete(t)):o&&this.inner.delete(t)}removeAll(){this.inner.forEach(((t,e)=>{this.remove(e)}))}}class Ranger{constructor(t,e,o){this.max=Math.max(t,e),this.min=Math.min(t,e),this.diff=this.max-this.min,this.step=o}random(){return this.normalize(Math.random()*this.diff+this.min)}present(t){return this.normalize(t*this.diff)}normalize(t){return t=this.restrict(t),this.step?this.min+Math.round((t-this.min)/this.step)*this.step:t}restrict(t){return this.max<=t?this.max:this.min>=t?this.min:t}}class RouteTree{constructor(){this.matchType=RouteTree.MatchTypes.strict,this.children=[]}insert(t,e,o=0){if(e||(e=RouteTree.split(t)),e.length===o)return void(this.pattern=t);const r=e[o];let s=this.findStrict(r);s||(s=new RouteTree,s.part=r,s.matchType=RouteTree.dynamic(r).matchType,this.children.push(s),this.sorted=!1),s.insert(t,e,o+1)}search(t,e=0){if(d(t)&&(t=RouteTree.split(t)),this.sorted||this.sort(),t.length===e||RouteTree.dynamic(this.part).matchType===RouteTree.MatchTypes.multi)return this.pattern?this:null;const o=t[e],r=this.filterWide(o);for(const o of r){const r=o.search(t,e+1);if(null!==r)return r}return null}findStrict(t){return this.children.find((e=>e.part===t))||null}filterWide(t){return this.children.filter((e=>e.part===t||e.matchType))}sort(){const{children:t}=this;if(t.length){t.sort(((t,e)=>t.matchType-e.matchType));for(const e of t)e.sort()}this.sorted=!0}static parseParams(t,e){const o=RouteTree.split(t),r=RouteTree.split(e),s={};for(let t=0;t<r.length;t++){const e=r[t],{key:a,matchType:l}=RouteTree.dynamic(e);if(l===RouteTree.MatchTypes.single)s[a]=o[t];else if(l===RouteTree.MatchTypes.multi){s[a]=o.slice(t).join("/");break}}return s}static dynamic(t){if(t){if(m(t,"{","}")||m(t,"[","]")){t=t.slice(1,-1);const e=RouteTree.dynamic(t);return e.matchType||=RouteTree.MatchTypes.single,e}if(t.startsWith(":"))return{key:t.slice(1),matchType:RouteTree.MatchTypes.single};if(t.startsWith("*"))return{key:t.slice(1),matchType:RouteTree.MatchTypes.multi};if(t.startsWith("..."))return{key:t.slice(3),matchType:RouteTree.MatchTypes.multi}}return{key:t,matchType:RouteTree.MatchTypes.strict}}static split(t){return t.split("/").filter((t=>t))}}RouteTree.MatchTypes={strict:0,single:1,multi:2};class Timeouts{constructor(){this.inner=new Set}add(t){if(void 0!==t)return t=+t,this.inner.has(t)&&clearTimeout(t),this.inner.add(t),t}remove(t){void 0!==t&&(t=+t,clearTimeout(t),this.inner.delete(t))}removeAll(){this.inner.forEach(clearTimeout),this.inner.clear()}}const pt=(t,{attribute:e})=>{if(!1!==e&&"symbol"!=typeof t)return!0===e||void 0===e?String(t).toLowerCase():e},ut=/^[\s\S]*{[\s\S]*}$/;class GodownElement extends s{static define(t=this.elementTagName,e){this.isDefined()||this.godownConfig.define(t,this,e)}static isDefined(){return!!this.getDefined()}static getDefined(){return this.godownConfig.get(this.elementTagName)}static finalize(){super.finalize(),this.elementAttributes=new Map;for(const[t,e]of this.elementProperties.entries()){const o=pt(t,e);o&&this.elementAttributes.set(o,t)}}get observedRecord(){const t={};for(const[e,o]of this.constructor.elementAttributes.entries())t[e]=this[o];return t}get _slot(){return this.shadowRoot?this.shadowRoot.querySelector("slot:not([name])"):null}get _slotAll(){return this.shadowRoot?[...this.shadowRoot.querySelectorAll("slot")]:[]}get _slottedAll(){return[...this.querySelectorAll("[slot]")]}get _slottedNames(){return this._slottedAll.map((t=>t.getAttribute("slot"))).filter((t=>t))}getBoundingClientRect(){let t;return this.contents&&(t=this.contentsRoot||this.shadowRoot?.firstElementChild)&&t!==this?t.getBoundingClientRect():super.getBoundingClientRect()}getClientRects(){let t;return this.contents&&(t=this.contentsRoot||this.shadowRoot?.firstElementChild)&&t!==this?t.getClientRects():super.getClientRects()}get stylex(){return this.__stylex.css}set stylex(t){t=t.trim(),ut.test(t)||(t=`:host{${t}}`),this.shadowRoot?(this.__stylex.index&&this.shadowRoot.adoptedStyleSheets.splice(this.__stylex.index,1),this.__stylex.css=t,this.__stylex.index=this.adoptStyles(t)):this.__stylex.lazy=t}constructor(t){super(),this.events=new Events,this.observers=new Observers,this.timeouts=new Timeouts,this.__stylex={},this.assign={...GodownElement.godownConfig?.assign||{},...t}}connectedCallback(){super.connectedCallback(),this.assign&&(Object.assign(this,this.assign),this.assign=null);const{lazy:t}=this.__stylex;t&&(this.adoptStyles(t),this.__stylex.lazy="")}disconnectedCallback(){this.events.removeAll(),this.observers.removeAll(),this.timeouts.removeAll()}mount(t){this.firstUpdated(t)}unmount(){this.disconnectedCallback()}remount(t){this.unmount(),this.connectedCallback(),this.mount(t)}deepQuerySelector(t){return dt.call(this,t)}deepQuerySelectorAll(t){return ct.call(this,t)}adoptStyles(...t){if(!this.shadowRoot||!t.length)return;const e=this.shadowRoot.adoptedStyleSheets,o=new CSSStyleSheet;return t.forEach((t=>o.insertRule(t.toString()))),e.push(o),e.length-1}dispatchCustomEvent(t,e,o){this.dispatchEvent(new CustomEvent(t,{detail:e,composed:!0,...o}))}}GodownElement.godownConfig=new class GodownConfig{constructor(t){this.assign=null,this.prefix="godown",this.suffix="",this.components=new Map,this.registry=customElements,t&&Object.assign(this,t)}tag(t){return g(this.prefix+"-"+t+"-"+this.suffix)}define(t,e,o){this.registry.define(t,e,o),this.components.set(t,e)}get(t){return this.registry.get(t)}getName(t){const{getName:e}=this.registry;return e?e(t):[...this.components.entries()].find((([,e])=>e===t))?.[0]||null}whenDefined(t){return this.registry.whenDefined(t)}upgrade(t){this.registry.upgrade(t)}},h([W({type:Boolean,reflect:!0})],GodownElement.prototype,"contents",void 0),h([W({reflect:!0})],GodownElement.prototype,"stylex",null);var vt=at("0 0 56 56")`<path fill="currentColor" d="M28 4c13.255 0 24 10.745 24 24S41.255 52 28 52S4 41.255 4 28S14.745 4 28 4m0 4C16.954 8 8 16.954 8 28s8.954 20 20 20s20-8.954 20-20S39.046 8 28 8m10.788 11.93c.67.67.67 1.756 0 2.425l-13.36 13.36a1.715 1.715 0 0 1-2.424 0l-5.645-5.646a1.714 1.714 0 0 1 2.425-2.424l3.22 3.22c.67.67 1.755.67 2.425 0l10.934-10.934c.67-.67 1.755-.67 2.425 0"/>`,ft=at("0 0 56 56")`<path fill="currentColor" d="M28 51.906c13.055 0 23.906-10.828 23.906-23.906c0-13.055-10.875-23.906-23.93-23.906C14.899 4.094 4.095 14.945 4.095 28c0 13.078 10.828 23.906 23.906 23.906m0-3.984C16.937 47.922 8.1 39.062 8.1 28c0-11.04 8.813-19.922 19.876-19.922c11.039 0 19.921 8.883 19.945 19.922c.023 11.063-8.883 19.922-19.922 19.922m-.023-15.68c1.124 0 1.757-.633 1.78-1.851l.352-12.375c.024-1.196-.914-2.086-2.156-2.086c-1.266 0-2.156.867-2.133 2.062l.305 12.399c.023 1.195.68 1.851 1.852 1.851m0 7.617c1.335 0 2.53-1.078 2.53-2.437c0-1.383-1.171-2.438-2.53-2.438c-1.383 0-2.532 1.078-2.532 2.438c0 1.336 1.172 2.437 2.532 2.437"/>`,mt=at("0 0 56 56")`<path fill="currentColor" d="M28 51.906c13.055 0 23.906-10.828 23.906-23.906c0-13.055-10.875-23.906-23.93-23.906C14.899 4.094 4.095 14.945 4.095 28c0 13.078 10.828 23.906 23.906 23.906m0-3.984C16.937 47.922 8.1 39.062 8.1 28c0-11.04 8.813-19.922 19.876-19.922c11.039 0 19.921 8.883 19.945 19.922c.023 11.063-8.883 19.922-19.922 19.922m-.211-28.266c1.71 0 3.047-1.36 3.047-3.047c0-1.71-1.336-3.07-3.047-3.07s-3.047 1.36-3.047 3.07a3.026 3.026 0 0 0 3.047 3.047m-3.914 21.235h9.562c.961 0 1.711-.68 1.711-1.641c0-.914-.75-1.64-1.71-1.64H30.53V25.68c0-1.266-.656-2.11-1.828-2.11h-4.43c-.937 0-1.687.727-1.687 1.64c0 .962.75 1.642 1.687 1.642h2.532v10.757h-2.93c-.938 0-1.688.727-1.688 1.641c0 .96.75 1.64 1.688 1.64"/>`,gt=at("0 0 56 56")`<path fill="currentColor" d="M19.504 43.152h16.969c.797 0 1.289-.492 1.289-1.289v-3.75c0-5.672 8.25-9.328 8.25-19.453C46.012 7.996 38.793.871 27.988.871s-18 7.125-18 17.79c0 10.124 8.227 13.78 8.227 19.452v3.75c0 .797.515 1.29 1.289 1.29m2.203-4.992c0-6.89-8.18-10.57-8.18-19.476c0-8.579 5.79-14.274 14.461-14.274c8.672 0 14.485 5.695 14.485 14.274c0 8.906-8.203 12.586-8.203 19.476v1.453H21.707Zm-1.336 11.32h15.235c1.195 0 2.156-.984 2.156-2.203s-.961-2.203-2.157-2.203H20.371c-1.195 0-2.156.985-2.156 2.203c0 1.22.96 2.203 2.156 2.203m7.617 5.649c3.235 0 5.508-1.477 5.742-3.75H22.246c.211 2.273 2.484 3.75 5.742 3.75"/>`,yt=at("0 0 56 56")`<path fill="currentColor" d="M28 51.906c13.055 0 23.906-10.828 23.906-23.906c0-13.055-10.875-23.906-23.93-23.906C14.899 4.094 4.095 14.945 4.095 28c0 13.078 10.828 23.906 23.906 23.906m0-3.984C16.937 47.922 8.1 39.062 8.1 28c0-11.04 8.813-19.922 19.876-19.922c11.039 0 19.921 8.883 19.945 19.922c.023 11.063-8.883 19.922-19.922 19.922m-.492-15.07c1.172 0 1.898-.727 1.898-1.664v-.282c0-1.312.75-2.133 2.39-3.21c2.274-1.5 3.891-2.884 3.891-5.673c0-3.914-3.468-6-7.453-6c-4.031 0-6.68 1.899-7.312 4.055c-.117.399-.211.774-.211 1.172c0 1.031.844 1.617 1.617 1.617c1.336 0 1.547-.726 2.297-1.594c.773-1.289 1.898-2.062 3.469-2.062c2.133 0 3.515 1.195 3.515 3c0 1.594-.984 2.367-3.023 3.773c-1.688 1.172-2.953 2.414-2.953 4.711V31c0 1.242.68 1.852 1.875 1.852m-.047 7.007c1.36 0 2.531-1.078 2.531-2.437c0-1.383-1.148-2.438-2.531-2.438s-2.531 1.078-2.531 2.438c0 1.336 1.171 2.437 2.53 2.437"/>`,bt=at("0 0 56 56")`<path fill="currentColor" d="M28 51.906c13.055 0 23.906-10.828 23.906-23.906c0-13.055-10.875-23.906-23.93-23.906C14.899 4.094 4.095 14.945 4.095 28c0 13.078 10.828 23.906 23.906 23.906m0-3.984C16.937 47.922 8.1 39.062 8.1 28c0-11.04 8.813-19.922 19.876-19.922c11.039 0 19.921 8.883 19.945 19.922c.023 11.063-8.883 19.922-19.922 19.922m-8.156-9.727c.656 0 1.148-.28 1.664-.797l15.75-15.984c.492-.492.797-1.078.797-1.617c0-1.078-.891-1.945-1.97-1.945c-.562 0-1.1.28-1.616.796L18.742 34.61c-.539.516-.797 1.102-.797 1.641c0 1.055.774 1.945 1.899 1.945"/>`,$t=at("0 0 56 56")`<path fill="currentColor" d="M28 51.906c13.055 0 23.906-10.828 23.906-23.906c0-13.055-10.875-23.906-23.93-23.906C14.899 4.094 4.095 14.945 4.095 28c0 13.078 10.828 23.906 23.906 23.906m0-3.984C16.937 47.922 8.1 39.062 8.1 28c0-11.04 8.813-19.922 19.876-19.922c11.039 0 19.921 8.883 19.945 19.922c.023 11.063-8.883 19.922-19.922 19.922m-8.016-9.984c.516 0 .985-.211 1.336-.586l6.657-6.68l6.656 6.68c.351.351.82.586 1.36.586c1.03 0 1.874-.868 1.874-1.899c0-.539-.21-.984-.562-1.336l-6.657-6.656l6.68-6.703c.375-.399.563-.797.563-1.313a1.865 1.865 0 0 0-1.875-1.875c-.493 0-.915.164-1.313.563l-6.727 6.703l-6.703-6.68c-.351-.375-.773-.539-1.289-.539c-1.054 0-1.875.797-1.875 1.852c0 .515.188.96.563 1.312l6.656 6.68l-6.656 6.68c-.375.328-.563.796-.563 1.312c0 1.031.82 1.898 1.875 1.898"/>`,_t=at("0 0 56 56")`<path fill="currentColor" d="M10.023 43.023c-.796.797-.82 2.157 0 2.954c.82.796 2.157.796 2.977 0l15-15l15 15c.797.796 2.156.82 2.977 0c.796-.82.796-2.157 0-2.954L30.953 28l15.024-15c.796-.797.82-2.156 0-2.953c-.844-.82-2.18-.82-2.977 0l-15 15l-15-15c-.82-.82-2.18-.844-2.977 0c-.796.82-.796 2.156 0 2.953l15 15Z"/>`;const wt=(t,e,o)=>({r:t,g:e,b:o,toString(){return`${this.r} ${this.g} ${this.b}`}}),xt={darkgray:[wt(121,121,121),wt(109,109,109),wt(97,97,97),wt(85,85,85),wt(73,73,73),wt(61,61,61),wt(48,48,48),wt(36,36,36),wt(24,24,24),wt(12,12,12)],lightgray:[wt(243,243,243),wt(231,231,231),wt(219,219,219),wt(206,206,206),wt(194,194,194),wt(182,182,182),wt(170,170,170),wt(158,158,158),wt(146,146,146),wt(133,133,133)],teal:[wt(213,249,248),wt(170,243,241),wt(128,237,234),wt(85,231,226),wt(43,225,219),wt(0,219,212),wt(0,175,170),wt(0,131,127),wt(0,88,85),wt(0,44,42)],blue:[wt(213,240,255),wt(170,224,255),wt(128,209,255),wt(85,193,255),wt(43,178,255),wt(0,162,255),wt(0,130,204),wt(0,97,153),wt(0,65,102),wt(0,32,51)],green:[wt(221,243,221),wt(186,231,186),wt(152,219,152),wt(117,206,117),wt(82,194,82),wt(48,182,48),wt(38,146,38),wt(29,109,29),wt(19,73,19),wt(10,36,10)],red:[wt(251,221,221),wt(247,186,187),wt(243,152,154),wt(239,118,120),wt(235,83,86),wt(231,49,52),wt(185,39,42),wt(139,29,31),wt(92,20,21),wt(46,10,10)],purple:[wt(242,228,253),wt(229,201,250),wt(217,174,248),wt(204,146,245),wt(191,119,243),wt(178,92,240),wt(142,74,192),wt(107,55,144),wt(71,37,96),wt(36,18,48)],orange:[wt(255,235,213),wt(255,216,170),wt(255,196,128),wt(255,176,85),wt(255,157,43),wt(255,137,0),wt(204,110,0),wt(153,82,0),wt(102,55,0),wt(51,27,0)],yellow:[wt(251,252,216),wt(247,248,177),wt(243,245,138),wt(239,242,98),wt(235,238,59),wt(231,235,20),wt(185,188,16),wt(139,141,12),wt(92,94,8),wt(46,47,4)],pink:[wt(254,222,233),wt(253,189,211),wt(252,156,190),wt(251,123,168),wt(250,90,146),wt(249,57,124),wt(199,46,99),wt(149,34,74),wt(100,23,50),wt(50,11,25)]};class GlobalStyle extends GodownElement{}const kt=((t,e)=>((t,e)=>((t,e)=>{if(!t||!e)return t;let o=0;for(;o<t.length&&e(t.slice(o,o+1));)o+=1;return t.slice(o)})(((t,e)=>{if(!t||!e)return t;let o=t.length;for(;o>0&&e(t.slice(o-1,o));)o-=1;return t.slice(0,o)})(t,e),e))(t,(t=>t===e)))(GlobalStyle.godownConfig.prefix,"-");function Ct(t,e=1){return function(t){return a(`--${t}`)}(kt+"-".repeat(e)+t)}const St={clipBackground:Ct("clip-background",2),active:Ct("active",2),passive:Ct("passive",2),_colors:{},input:Ct("input",2),white:Ct("color-white",2),black:Ct("color-black",2),color:Ct("color",2),radius:Ct("radius",2),outlineWidth:Ct("outline-width",2),outlineColor:Ct("outline-color",2)};var Rt,Et;GlobalStyle.styles=[a(`:host{${St.black}:rgb(0 0 0);${St.white}:rgb(255 255 255);`+(Rt=(t,e,o)=>{St._colors[t]||=[],St._colors[t].push(a(St.color+"-"+t+"-"+e));const r=`-${t}-${e}`;return`${St.color+r}:rgb(${o});`},Et=xt,Object.entries(Et).flatMap((([t,e])=>e.map(((e,o)=>Rt(t,o,e)))))).join("")+_([[St.active,`var(${St._colors.blue[5]})`],[St.passive,`var(${St._colors.darkgray[5]})`],[St.clipBackground,`linear-gradient(to bottom, var(${St._colors.lightgray[0]}), var(${St._colors.darkgray[0]}))`],[St.outlineColor,`var(${St._colors.darkgray[4]})`],[St.outlineWidth,".075em"]])+"}"),l`button,dialog,input{border:0;outline:0}*{box-sizing:border-box;font-size:100%;font-style:normal;margin:0;padding:0}:host{border-style:none;box-sizing:border-box;outline-style:none}a{text-decoration:none}span{white-space:nowrap}svg{-webkit-user-select:none;user-select:none}:host([contents]){display:contents}[part=root]{height:100%;width:100%}:host([contents]) [part=root]{height:inherit;width:inherit}:where(:host([contents]) [part=root]){all:inherit;display:revert}`,l`:host{${St.radius}:0.2em;border-radius:var(${St.radius})}`];const Tt="alert",Mt=Ct(Tt),At=t=>[St._colors[t][5],St._colors[t][9]],Pt={green:At("green"),blue:At("blue"),orange:At("orange"),red:At("red"),yellow:At("yellow"),purple:At("purple"),teal:At("teal"),pink:At("pink"),gray:[St._colors.lightgray[5],St._colors.darkgray[5]],white:[St._colors.lightgray[2],St._colors.darkgray[7]],black:[St._colors.darkgray[8],St._colors.lightgray[5]]},zt={tip:{color:"teal",icon:gt},success:{color:"green",icon:vt},info:{color:"blue",icon:mt},warning:{color:"orange",icon:ft},danger:{color:"red",icon:$t},error:{color:"red",icon:$t},help:{color:"purple",icon:yt},deprecated:{color:"gray",icon:bt}};let It=class Alert extends GlobalStyle{constructor(){super(...arguments),this.__colorSC=new StyleController(this,(()=>{const t=zt[this.call]?.color||this.color;if(t in Pt){const[e,o]=Pt[t];return $({":host":[[`${Mt}--color`,`var(${e})`],[`${Mt}--background`,`var(${o})`]]})}return null})),this.color="blue",this.autoclose=0,this.hideClose=!1,this.variant="dark"}render(){const t=this.call?zt[this.call].icon():st("icon");return o`<div part="root" ${it(this.observedRecord)}><div part="icon" class="start">${t}</div><div part="content"><strong part="title">${this.title||st("title")}</strong> ${this.content||st()}</div>${this.hideClose||"blockquote"===this.variant?"":o`<div part="icon close" class="end" tabindex="0" @click="${this.close}">${_t()}</div>`}</div>`}close(){this.remove(),this.dispatchCustomEvent("close",void 0,{bubbles:!0})}firstUpdated(){this.autoclose&&this.timeouts.add(setTimeout((()=>this.close()),this.autoclose))}static alert(t,e){const o=new this;return Object.assign(o,e),t.appendChild(o),o}};h([W()],It.prototype,"call",void 0),h([W()],It.prototype,"color",void 0),h([W({type:Number})],It.prototype,"autoclose",void 0),h([W()],It.prototype,"title",void 0),h([W()],It.prototype,"content",void 0),h([W({type:Boolean})],It.prototype,"hideClose",void 0),h([W()],It.prototype,"variant",void 0),It=h([x(Tt),w(l`:host{${Mt}--border-width:.075em;${Mt}--blockquote-width:.2em;${Mt}--blockquote-background:transparent;${Mt}--gap:.5em}:host,:where(:host([contents]) [part=root]){display:block}[part=root]{align-items:center;background:var(${Mt}--background);border-color:currentColor;border-radius:inherit;border-style:solid;border-width:var(${Mt}--border-width);color:var(${Mt}--color,currentColor);display:grid;grid-template-columns:auto 1fr auto;grid-template-rows:auto 1fr;padding:var(${Mt}--gap)}[variant=blockquote]{background:var(${Mt}--blockquote-background);border-radius:0;border-width:0;border-left-width:var(${Mt}--blockquote-width)}[part~=icon]{align-items:center;display:grid;height:2em}.start svg{margin-inline-end:var(${Mt}--gap)}.end svg{margin-inline-start:var(${Mt}--gap)}svg{height:1.25em;width:1.25em}[part=content]{grid-row:span 2/span 2}`)],It);var Ot=It;Ot.define();let Bt=class Avatar extends GlobalStyle{constructor(){super(...arguments),this.name="",this.round=!1}render(){return o`<div part="root" ${it(v(this.observedRecord,"src"))}>${this._renderAvatar()}</div>`}_renderAvatar(){return this.src?o`<img part="image" src="${this.src}" alt="${this.name}" @error="${this._handleError}">`:this.name?o`<span part="name">${this.formatName()}</span>`:st()}formatName(){return this.name}_handleError(){this.src=void 0}};h([W()],Bt.prototype,"src",void 0),h([W()],Bt.prototype,"name",void 0),h([W({type:Boolean})],Bt.prototype,"round",void 0),Bt=h([x("avatar"),w(l`:host{background:var(${St.passive});height:2em;overflow:hidden;vertical-align:bottom;width:2em}:host,[part=root]{display:inline-flex}:host([contents]) [part=root]{display:inline-flex;height:inherit;width:inherit}:host([round]){border-radius:50%}[part=image]{height:100%;object-fit:cover;width:100%}[part=root]{align-items:center;border-radius:inherit;justify-content:center;position:relative}`)],Bt);var Dt=Bt;Dt.define();const Nt="badge",Ut=Ct(Nt);let Lt=class Badge extends GlobalStyle{constructor(){super(...arguments),this.position="top-right",this.value=0,this.dot=!1,this.max=99}formatValue(t){return t>this.max?this.max+"+":t+""}render(){return o`<div part="root" ${it(this.observedRecord)}>${st()} ${this.value||this.dot?o`<div part="badge">${this.dot?"":this.formatValue(this.value)}</div>`:""}</div>`}};h([W()],Lt.prototype,"position",void 0),h([W({type:Number})],Lt.prototype,"value",void 0),h([W({type:Boolean})],Lt.prototype,"dot",void 0),h([W({type:Number})],Lt.prototype,"max",void 0),Lt=h([x(Nt),w(l`:host{${Ut}--background:var(${St.active});${Ut}--offset:0%;${Ut}--offset-x:var(${Ut}--offset);${Ut}--offset-y:var(${Ut}--offset)}:host,:host([contents]) [part=root]{display:inline-block}[part=root]{position:relative}[part=badge]{background:var(${Ut}--background);border-radius:calc(infinity*1px);font-size:75%;padding:0 .5em;position:absolute;transform:translate(-50%,-50%);-webkit-user-select:none;user-select:none}[part=badge]:empty{border-radius:50%;font-size:100%;height:.5em;padding:0;width:.5em}[position^=top] [part=badge]{top:calc(var(${Ut}--offset-y))}[position$=right] [part=badge]{left:calc(100% - var(${Ut}--offset-x))}[position^=bottom] [part=badge]{top:calc(100% - var(${Ut}--offset-y))}[position$=left] [part=badge]{left:calc(var(${Ut}--offset-x))}`)],Lt);var jt=Lt;jt.define();const Vt="breath",Gt=Ct(Vt);let Ht=class Breath extends GlobalStyle{render(){const t=this.getTexts();return o`<div part="root" ${it(this.observedRecord)}>${[t.map(this._renderText),nt(this._computeStyle(t.length))]}</div>`}_renderText(t){return o`<span class="rel"><span class="nocolor">${t}</span> <span class="colorful">${t}</span></span>`}getTexts(){return Array.isArray(this.content)?this.content:(this.content||this.textContent).split(/\s+/).filter((t=>t))}_computeStyle(t){const e=50/t,o=this.duration||1e3*(2*t+2);let r="";for(let e=1;e<=t;e++)r+=`.rel:nth-child(${e}) .colorful{animation-delay:${-o/t*(t-e+1)}ms;background:var(${Gt}--${e},var(${Gt}--${(e-1)%3+1}));}`;return`.colorful{animation-duration:${o}ms;}@keyframes colorfulN{0%,${3*e}%{opacity:0;}${e}%,${2*e}%{opacity:1;}}${r}`}};h([W()],Ht.prototype,"content",void 0),h([W({type:Number})],Ht.prototype,"duration",void 0),Ht=h([x(Vt),w(l`:host{${Gt}--deg:60deg;${Gt}--1-1:var(${St._colors.red[5]});${Gt}--1-2:var(${St._colors.yellow[5]});${Gt}--2-1:var(${St._colors.green[5]});${Gt}--2-2:var(${St._colors.purple[5]});${Gt}--3-1:var(${St._colors.blue[5]});${Gt}--3-2:var(${St._colors.pink[5]});${Gt}--1:linear-gradient(var(${Gt}--deg),var(${Gt}--1-1),var(${Gt}--1-2));${Gt}--2:linear-gradient(var(${Gt}--deg),var(${Gt}--2-1),var(${Gt}--2-2));${Gt}--3:linear-gradient(var(${Gt}--deg),var(${Gt}--3-1),var(${Gt}--3-2))}`,l`:host{align-items:center;direction:ltr;font-size:2em;margin:auto;width:-moz-fit-content;width:fit-content}:host,:host([contents]) [part=root]{display:flex}[part=root]{display:contents}::selection{background:none}.rel{font-size:inherit;font-weight:800;letter-spacing:-.05em;position:relative}`,l`.colorful,.nocolor{animation-iteration-count:infinite;-webkit-background-clip:text!important;background-clip:text!important;box-sizing:border-box;color:transparent;display:inline-block;padding:0 .05em}.colorful{animation-name:colorfulN;opacity:0}.nocolor{background:var(${St.clipBackground});position:absolute;top:0}`)],Ht);var qt=Ht;qt.define();const Ft="button",Wt=Ct(Ft),Yt=St.white,Xt=St.black,Zt={black:[Yt,St._colors.darkgray[7],St._colors.darkgray[5]],gray:[Yt,St._colors.darkgray[1],St._colors.lightgray[8]],white:[Xt,St._colors.lightgray[3],St._colors.lightgray[0]],blue:[Yt,St._colors.blue[6],St._colors.blue[4]],green:[Yt,St._colors.green[6],St._colors.green[4]],red:[Yt,St._colors.red[6],St._colors.red[4]],orange:[Yt,St._colors.orange[6],St._colors.orange[4]],pink:[Yt,St._colors.pink[6],St._colors.pink[4]],purple:[Yt,St._colors.purple[6],St._colors.purple[4]],yellow:[Xt,St._colors.yellow[6],St._colors.yellow[4]],teal:[Yt,St._colors.teal[6],St._colors.teal[4]]};let Kt=class Button extends GlobalStyle{constructor(){super(...arguments),this.__colorSC=new StyleController(this,(()=>{const t=this.nextColor();if(t in Zt){const[e,o,r]=Zt[t];return $({":host":[[`${Wt}--color`,`var(${e})`],[`${Wt}--background`,`var(${o})`],[`${Wt}--gradients`,`var(${r})`]]})}return null})),this.plain=!1,this.disabled=!1,this.ghost=!1,this.active=!1,this.round=!1,this.color="black"}render(){return o`<div part="root" ${it(this.observedRecord)}>${this.content||st()} <span part="modal-root"></span></div>`}focus(){this.disabled||(this.active=!0,super.focus())}blur(){this.active=!1,super.blur()}connectedCallback(){super.connectedCallback(),this.events.add(this,"click",this._handelClick,!0)}_handelClick(t){if(this.disabled)return t.stopPropagation(),void t.preventDefault();this.plain||this._handleModal(t)}_handleModal(t){const e=document.createElement("i"),{width:o,height:r}=this.getBoundingClientRect(),{x:s,y:a}=this._root.getBoundingClientRect(),l=2*Math.sqrt(r**2+o**2)+"px";e.style.height=l,e.style.width=l,e.style.left=t.x-s+"px",e.style.top=t.y-a+"px",e.style.animationName="kf",this._modalRoot.appendChild(e),e.addEventListener("animationend",(()=>e.remove()),{once:!0})}nextColor(){return this.color}};h([W({type:Boolean,reflect:!0})],Kt.prototype,"plain",void 0),h([W({type:Boolean,reflect:!0})],Kt.prototype,"disabled",void 0),h([W({type:Boolean,reflect:!0})],Kt.prototype,"ghost",void 0),h([W({type:Boolean,reflect:!0})],Kt.prototype,"active",void 0),h([W({type:Boolean,reflect:!0})],Kt.prototype,"round",void 0),h([W({reflect:!0})],Kt.prototype,"color",void 0),h([W()],Kt.prototype,"content",void 0),h([J("modal-root")],Kt.prototype,"_modalRoot",void 0),h([J("root")],Kt.prototype,"_root",void 0),Kt=h([x(Ft),w(l`:host(:not([disabled]):active){transform:scale(var(${Wt}--focus-scale))}:host([round]){border-radius:calc(infinity*1px)}:host([disabled]){cursor:not-allowed;filter:brightness(.85)}:host([ghost]){${Wt}--modal-background:var(${Wt}--ghost-color);background:transparent;box-shadow:inset 0 0 0 var(${Wt}--ghost-width) var(${Wt}--ghost-color);color:var(${Wt}--ghost-color)}:host([plain]){${Wt}--gradients:unset;${Wt}--focus-scale:unset}`,l`:host{${Wt}--padding-x:.8em;${Wt}--padding-y:calc(var(${Wt}--padding-x)/4);${Wt}--padding:var(${Wt}--padding-y) var(${Wt}--padding-x);${Wt}--modal-animation-duration:1s;${Wt}--ghost-width:.08em;${Wt}--focus-scale:.97;${Wt}--deg:45deg;${Wt}--ghost-color:var(${Wt}--background);background:linear-gradient(var(${Wt}--deg),var(${Wt}--background),var(${Wt}--gradients,var(${Wt}--background)));color:var(${Wt}--color,inherit);cursor:pointer;display:block;overflow:hidden;padding:var(${Wt}--padding);text-align:center;width:-moz-fit-content;width:fit-content}[part=root]:not([contents]){height:100%;width:100%}[part=root]{border-radius:inherit;position:relative;transition:none;transition-duration:inherit;-webkit-user-select:none;user-select:none}i{animation-duration:var(${Wt}--modal-animation-duration);background:var(${Wt}--modal-background,currentColor);border-radius:50%;height:100%;inset:0;opacity:0;pointer-events:none;position:absolute;transform-origin:0 0;visibility:visible;width:100%}@keyframes kf{0%{opacity:var(${Wt}--modal-opacity,.1);transform:scale(0) translate(-50%,-50%)}80%{transform:scale(1) translate(-50%,-50%)}to{opacity:0}}`)],Kt);var Qt=Kt;Qt.define();const Jt="card",te=Ct(Jt);let ee=class Card extends GlobalStyle{constructor(){super(...arguments),this.footer=!1,this.header=!1}render(){return o`<div part="root" ${it(this.observedRecord)}>${[this.header?st("header"):"",st(),this.footer?st("footer"):""]}</div>`}};h([W({type:Boolean})],ee.prototype,"footer",void 0),h([W({type:Boolean})],ee.prototype,"header",void 0),ee=h([x(Jt),w(l`:host{${te}--border-width:.075em;${te}--border-color:var(${St.passive});${te}--padding:.75em;display:block;flex-shrink:0}slot{display:block;padding:var(${te}--padding)}[part=root]{border-color:var(${te}--border-color);border-radius:inherit;border-style:solid;border-width:var(${te}--border-width)}[name=footer]{padding-top:0}[name=header]{padding-bottom:0}`)],ee);var oe=ee;oe.define();var ie=at("0 0 56 56")`<path fill="currentColor" d="M35.805 47.723c.398.398.914.633 1.523.633c1.219 0 2.133-.915 2.133-2.133c0-.586-.234-1.125-.61-1.524L21.79 28.012l17.063-16.688c.375-.398.609-.96.609-1.523c0-1.219-.914-2.157-2.133-2.157c-.61 0-1.125.235-1.523.633L17.242 26.441c-.445.375-.703.961-.703 1.57c0 .587.258 1.126.703 1.571Z"/>`,re=at("0 0 56 56")`<path fill="currentColor" d="M18.695 48.367c.586 0 1.102-.234 1.524-.633L38.78 29.57c.446-.445.68-.984.68-1.57c0-.61-.234-1.172-.68-1.57L20.22 8.289a2.07 2.07 0 0 0-1.524-.656a2.12 2.12 0 0 0-2.156 2.156c0 .563.258 1.125.633 1.524L34.21 28L17.17 44.688c-.374.398-.632.937-.632 1.523c0 1.219.938 2.156 2.156 2.156"/>`;function se(t){return t.getBoundingClientRect().width}let ne=class Carousel extends GlobalStyle{constructor(){super(...arguments),this.index=0,this.autoChange=0}render(){return o`<div part="root" ${it(this.observedRecord)}><i part="prev" @click="${this.prev}">${ie()}</i><div part="move-root">${st()}</div><i part="next" @click="${this.next}">${re()}</i></div>`}connectedCallback(){super.connectedCallback(),this.children.length&&(this.__cloneFirst?.remove(),this.__cloneLast?.remove(),this.__cloneLast=this.firstElementChild.cloneNode(!0),this.__cloneFirst=this.lastElementChild.cloneNode(!0),this.appendChild(this.__cloneLast),this.insertBefore(this.__cloneFirst,this.firstElementChild)),this.observers.add(this,ResizeObserver,(()=>{this._offset=this._computeOffset(),this._doTranslateX(`${this._offset}px`,!0)}))}async firstUpdated(){await this.updateComplete,this.show(this.index,!0)}attributeChangedCallback(t,e,o){super.attributeChangedCallback(t,e,o),"index"===t&&this.isConnected&&this.show(this.index)}show(t,e){t=this.normalizeIndex(t),this.index=t,this._offset=this._computeOffset(),this._doTranslateX(`${this._offset}px`,e),this.dispatchCustomEvent("change",t),this.timeouts.remove(this.intervalID),this.autoChange>0&&(this.intervalID=this.timeouts.add(setInterval((()=>{this.next()}),this.autoChange)))}next(){this.index===this.childElementCount-3?(this._doTranslateX("0",!0),this.show(0)):this.show(this.index+1)}prev(){0===this.index?(this._doTranslateX(`-${this.childElementCount-1}00%`,!0),this.show(this.children.length-3)):this.show(this.index-1)}_doTranslateX(t,e){this._moveRoot.style.transform=`translateX(${t})`,this._moveRoot.style.transition=e?"none":""}_computeOffset(){let t=0;for(let e=0;e<=this.index;e++)t-=se(this.children[e]);return t+=(se(this)-se(this.children[this.index+1]))/2,t}normalizeIndex(t){return t<0?0:t>this.children.length-3?this.children.length-3:t}};h([W({type:Number})],ne.prototype,"index",void 0),h([W({type:Number})],ne.prototype,"autoChange",void 0),h([J("move-root")],ne.prototype,"_moveRoot",void 0),ne=h([x("carousel"),w(l`:host{display:block;transition:.3s}[part=root]{direction:ltr;overflow:hidden}[part=move-root],[part=root]{display:flex;height:100%;position:relative;transition:inherit;width:100%}[part=next],[part=prev]{align-items:center;display:flex;height:100%;justify-content:center;position:absolute;-webkit-user-select:none;user-select:none;width:1.5em;z-index:1}[part=prev]{left:0}[part=next]{right:0}slot::slotted(*){flex-shrink:0!important}`)],ne);var ae=ne;ae.define();var le=at("0 0 56 56")`<path fill="currentColor" d="M28 39.46a2.1 2.1 0 0 0 1.57-.679l18.164-18.586a2.1 2.1 0 0 0 .633-1.5a2.12 2.12 0 0 0-2.156-2.156a2.27 2.27 0 0 0-1.523.61L28 34.21L11.313 17.148a2.23 2.23 0 0 0-1.524-.609a2.12 2.12 0 0 0-2.156 2.156c0 .586.234 1.102.633 1.524L26.43 38.78c.445.446.96.68 1.57.68"/>`;class SuperOpenable extends GlobalStyle{constructor(){super(...arguments),this.open=!1}toggle(t=!this.open){this.open=t}close(){this.open=!1}show(){this.open=!0}updated(t){void 0!==t.get("open")&&this.dispatchCustomEvent("change",this.open)}}h([W({type:Boolean,reflect:!0})],SuperOpenable.prototype,"open",void 0);const he="details",ce=Ct(he);let de=class Details extends SuperOpenable{constructor(){super(...arguments),this.float=!1,this.fill=!1,this.summary=""}render(){return o`<dl part="root" ${it(this.observedRecord)}><dt part="title" @click="${()=>this.toggle()}"><span part="summary">${this.summary||st("summary")}</span> <span part="icon">${le()}</span></dt><dd part="details" @click="${this.fill?()=>this.toggle():null}"><div style="min-height: 0;">${st()}</div></dd></dl>`}};h([W({type:Boolean})],de.prototype,"float",void 0),h([W({type:Boolean})],de.prototype,"fill",void 0),h([W()],de.prototype,"summary",void 0),de=h([x(he),w(l`:host{${ce}--icon-deg-open:0deg;${ce}--icon-deg-close:90deg;display:block;padding:.2em;transition:.3s}[part=root]{position:relative}[part=title]{align-items:center;direction:ltr;grid-template-columns:auto auto;height:100%;justify-content:space-between}[part=details],[part=title]{display:grid;overflow:hidden;transition:inherit}[part=details]{grid-template-rows:0fr}:host([open]) [part=details]{grid-template-rows:1fr}[float] [part=details]{position:absolute;top:100%;width:100%}[part]{transition:inherit;transition-property:transform,grid-template-rows}[part=icon]{-webkit-backface-visibility:hidden;backface-visibility:hidden;display:flex;transform:rotate(var(${ce}--icon-deg-close))}:host([open]) [part=icon]{transform:rotate(var(${ce}--icon-deg-open))}`)],de);var pe=de;pe.define();const ue="dialog",ve=Ct(ue);let fe=class Dialog extends SuperOpenable{constructor(){super(...arguments),this.key="Escape",this.__modalInvoke=!1}set modal(t){this.contents=t}get modal(){return this.contents}render(){return o`<dialog part="root" ${it(this.observedRecord)}>${st()}</dialog>`}showModal(){this.modal=!0,this.__modalInvoke=!0,this.show()}attributeChangedCallback(t,e,o){super.attributeChangedCallback(t,e,o),"open"===t&&(this.open?this.modal?this._dialog.showModal():this._dialog.show():this._dialog.close())}updated(t){t.has("open")&&(this.open?(this.__submitEvent=this.events.add(this,"submit",this._handelSubmit),this.key&&(this.__keydownEvent=this.events.add(document,"keydown",this._handleKeydown.bind(this)))):(this.events.remove(this,"submit",this.__submitEvent),this.events.remove(document,"keydown",this.__keydownEvent)))}_handleKeydown(t){const e=this.key.split(/[\s,]/);(e.includes(t.key)||e.includes(t.code))&&(t.preventDefault(),this.close())}_handelSubmit(t){"dialog"===t.target.method&&(t.preventDefault(),this.close())}close(){this.__modalInvoke&&(this.modal=!1,this.__modalInvoke=!1),this.open=!1}};h([W({type:Boolean,reflect:!0})],fe.prototype,"modal",null),h([W()],fe.prototype,"key",void 0),h([Z("dialog")],fe.prototype,"_dialog",void 0),fe=h([x(ue),w(l`:host{${ve}--background-modal:#000;${ve}--opacity-modal:0.2;background:none;display:block;left:50%;margin:auto;position:fixed;top:50%;transform:translate(-50%,-50%);width:-moz-fit-content;width:fit-content}:host(:not([open])){visibility:hidden}:host([contents]) dialog{position:fixed}dialog{background:inherit;position:relative}::backdrop{background:var(${ve}--background-modal);opacity:var(${ve}--opacity-modal)}`)],fe);var me=fe;me.define();let ge=class Divider extends GlobalStyle{constructor(){super(...arguments),this.vertical=!1}render(){return o`<div part="root" ${it(this.observedRecord)}></div>`}};h([W({type:Boolean,reflect:!0})],ge.prototype,"vertical",void 0),ge=h([x("divider"),w(l`:host{background:currentColor;color:var(${St.passive});display:block;height:.05em;width:100%}:host([vertical]){height:100%;width:.05em}:host([contents]) [part=root]{background:currentColor;display:block;height:.05em;margin:auto;width:100%}[part=root]{display:contents}`)],ge);var ye=ge;ye.define();let be=class Dragbox extends GlobalStyle{constructor(){super(...arguments),this.__drag=!1}get _offsetParent(){return this.offsetParent??document.body}render(){return o`<div part="root" ${it(this.observedRecord)} @mousedown="${this._handleDragStart}">${st()}</div>`}firstUpdated(){this.reset()}_handleDragStart(t){this.__x=t.x,this.__y=t.y;const e=this._offsetParent.getBoundingClientRect(),o=this.getBoundingClientRect();this.__t=o.top-e.top,this.__l=o.left-e.left,this.__drag=!0,this.__handleMouseMove=this.events.add(document,"mousemove",this._handleDrag.bind(this)),this.__handleMouseLeave=this.events.add(document,"mouseleave",this._handleDragEnd.bind(this)),this.__handleMouseUp=this.events.add(document,"mouseup",this._handleDragEnd.bind(this))}_handleDragEnd(){this.__drag=!1,this.events.remove(document,"mousemove",this.__handleMouseMove),this.events.remove(document,"mouseleave",this.__handleMouseLeave),this.events.remove(document,"mouseup",this.__handleMouseUp)}_handleDrag(t){if(!this.__drag)return;const{__x:e,__y:o,__l:r,__t:s,style:a}=this,{height:l,width:h}=this._offsetParent.getBoundingClientRect(),{width:c,height:d}=this.getBoundingClientRect(),p=t.x-(e-r),u=t.y-(o-s);a.left=p<0?"0":p<h-c?`${p}px`:h-c+"px",a.top=u<0?"0":u<l-d?`${u}px`:l-d+"px"}reset(){const{x:t,y:e,style:o,offsetWidth:r,offsetHeight:s,offsetLeft:a,offsetTop:l}=this,{height:h,width:c}=this._offsetParent.getBoundingClientRect();o.left=t||"0",o.top=e||"0",a>c-r&&(o.left=c-r+"px"),l>h-s&&(o.top=h-s+"px")}};h([W()],be.prototype,"x",void 0),h([W()],be.prototype,"y",void 0),be=h([x("dragbox"),w(l`:host{display:block;position:absolute}:host(:active){-webkit-user-select:none;user-select:none}`)],be);var $e=be;$e.define();let _e=class Flex extends GlobalStyle{constructor(){super(...arguments),this.vertical=!1}render(){return o`<div part="root" ${it(this.observedRecord)}>${[st(),nt($({":host":{gap:this.gap,"flex-flow":this.flexFlow,"flex-direction":this.vertical&&"column","align-items":this.items,"justify-content":this.content}}))]}</div>`}};h([W({attribute:"flex-flow"})],_e.prototype,"flexFlow",void 0),h([W()],_e.prototype,"gap",void 0),h([W()],_e.prototype,"content",void 0),h([W()],_e.prototype,"items",void 0),h([W({type:Boolean})],_e.prototype,"vertical",void 0),_e=h([x("flex"),w(l`:host,:host([contents]) [part=root]{display:flex}[part=root]{display:contents}`)],_e);var we,xe=_e;xe.define();let ke=we=class Form extends GlobalStyle{constructor(){super(...arguments),this.name="",this.nameValue=this.namevalue}get value(){return we.buildValue(this._slot.assignedElements())}render(){return st()}reset(){this.deepQuerySelectorAll("*").forEach((t=>{t.tagName!==this.tagName&&t.reset&&t.reset()}))}namevalue(){return[this.name,this.value]}static buildValue(t){const e={};for(const o of t)if("FORM"===o.tagName)Object.assign(e,Object.fromEntries(new FormData(o).entries()));else if(o.namevalue){const[t,r]=o.namevalue();t&&(e[t]=r)}else if(o.name&&void 0!==o.value)e[o.name]=o.value;else if(o.shadowRoot)for(const t of o.shadowRoot.querySelectorAll("slot"))Object.assign(e,this.buildValue(t.assignedElements()));return e}};h([W()],ke.prototype,"name",void 0),ke=we=h([x("form"),w(l`:host{display:block}`)],ke);var Ce=ke;Ce.define();const Se=t=>{return e=t,Number.isNaN(+e)?t:`repeat(${t},1fr)`;var e};let Re=class Grid extends GlobalStyle{render(){return o`<div part="root" ${it(this.observedRecord)}>${[st(),nt($({":host":{gap:this.gap,"grid-template-columns":Se(this.columns),"grid-template-rows":Se(this.rows),"place-content":this.content,"place-items":this.items}}))]}</div>`}};h([W()],Re.prototype,"gap",void 0),h([W()],Re.prototype,"columns",void 0),h([W()],Re.prototype,"rows",void 0),h([W()],Re.prototype,"content",void 0),h([W()],Re.prototype,"items",void 0),Re=h([x("grid"),w(l`:host,:host([contents]) [part=root]{display:grid}[part=root]{display:contents}`)],Re);var Ee=Re;Ee.define();let Te=class Heading extends GlobalStyle{constructor(){super(...arguments),this.as="h1",this.anchor="#",this.side="left"}render(){return o`<a part="root" href="${this.id?"#"+this.id:e}" ${it(this.observedRecord)}>${this.wrapHeading(st(),this.id?o`<i part="anchor">${this.anchor}</i>`:"")}</a>`}wrapHeading(...t){switch(this.as){case"h2":return o`<h2>${t}</h2>`;case"h3":return o`<h3>${t}</h3>`;case"h4":return o`<h4>${t}</h4>`;case"h5":return o`<h5>${t}</h5>`;case"h6":return o`<h6>${t}</h6>`;default:return o`<h1>${t}</h1>`}}};h([W()],Te.prototype,"as",void 0),h([W()],Te.prototype,"anchor",void 0),h([W()],Te.prototype,"side",void 0),Te=h([x("heading"),w(l`:host{display:block;text-align:start}[part=anchor]{min-width:1.25em;position:absolute;right:100%;text-align:center}[side=left] [part=anchor]{right:100%}[side=right] [part=anchor]{left:100%}a{color:inherit}h1,h2,h3,h4,h5,h6{direction:ltr;font-size:revert;position:relative;width:-moz-fit-content;width:fit-content}`)],Te);var Me=Te;Me.define();var Ae=at("0 0 56 56")`<path fill="currentColor" d="M43.95 47.323c.304.305.732.468 1.119.468c.814 0 1.567-.733 1.567-1.568c0-.407-.163-.814-.468-1.12L12.112 11.069a1.57 1.57 0 0 0-1.12-.448c-.814 0-1.567.733-1.567 1.547c0 .428.143.835.448 1.12Zm1.913-5.761C52.255 37.43 56 32.056 56 29.674c0-4.132-11.297-17.303-27.99-17.303c-3.46 0-6.697.59-9.669 1.567l5.313 5.293a11 11 0 0 1 4.356-.896c6.31 0 11.38 4.988 11.38 11.339c0 1.547-.326 3.033-.958 4.336ZM28.01 46.977c3.766 0 7.267-.672 10.402-1.771l-5.394-5.395a10.8 10.8 0 0 1-5.008 1.201c-6.35 0-11.379-5.15-11.4-11.338c0-1.832.428-3.562 1.202-5.09l-7.084-7.124C4.01 21.592 0 27.231 0 29.674c0 4.112 11.501 17.303 28.01 17.303m6.473-17.73a6.446 6.446 0 0 0-6.473-6.454c-.264 0-.53.02-.773.041l7.206 7.206c.02-.244.04-.529.04-.794m-12.966-.041c0 3.582 2.951 6.473 6.514 6.473c.285 0 .55-.02.834-.04l-7.308-7.309c-.02.285-.04.59-.04.876"/>`;const Pe=l`.input-field{align-items:center;border-radius:inherit;display:flex;height:inherit;position:relative}.input-field [part=input]{background:none;color:inherit;height:100%;padding:var(${St.input}-space);width:100%}.input-field [part=icon]{align-items:center;color:var(${St.input}-icon-color);display:flex;justify-content:center}.input-field [part=prefix],.input-field [part=suffix]{display:flex;height:100%}.input-field [part=suffix] [part=icon]{padding-inline-end:var(${St.input}-space)}.input-field [part=prefix] [part=icon]{padding-inline-start:var(${St.input}-space)}`,ze=l`:host{${St.input}-width:10em;${St.input}-height:1.6em;${St.input}-space:0.2em;${St.input}-control:currentColor;${St.input}-icon-color:var(${St._colors.darkgray[4]})}:host([disabled]){cursor:not-allowed;filter:brightness(.85)}:host(:focus-within){${St.input}-icon-color:currentColor}input:disabled{cursor:inherit}input::-ms-clear,input::-ms-reveal{display:none}`;let Ie=class SuperInput extends GlobalStyle{constructor(){super(...arguments),this.autofocus=!1,this.outlineType="border",this.disabled=!1,this.compositing=!1,this.makeId=Math.random().toString(36).slice(1),this.nameValue=this.namevalue}get observedRecord(){return v(super.observedRecord,"default","value")}set defaultValue(t){this.default=t}get defaultValue(){return this.default}namevalue(){return[this.name,this.value]}reset(){this.value=this.default,this._input.value=this.default}_handleInput(t){t.stopPropagation(),this.compositing||(this.value=t.target.value?.trim(),this.dispatchCustomEvent("input",this.value,{bubbles:!0}))}_handleChange(t){this.dispatchCustomEvent("change",this.value)}connectedCallback(){super.connectedCallback(),this._connectedInit()}_connectedInit(){this.default??=this.value||"",this.value??=this.default}_compositionInit(){this._input&&(this.events.add(this._input,"compositionstart",(()=>this.compositing=!0)),this.events.add(this._input,"compositionend",(t=>{this.compositing=!1,this._handleInput(t)})))}_changeInputType(t){this._input&&(this._input.type=t)}focus(t){this._input?.focus(t)}firstUpdated(){this._compositionInit()}_renderPrefix(){return o`<label for="${this.makeId}" part="prefix">${st("prefix")}</label>`}_renderSuffix(){return o`<label for="${this.makeId}" part="suffix">${st("suffix")}</label>`}};h([W()],Ie.prototype,"autocomplete",void 0),h([W({attribute:"outline-type"})],Ie.prototype,"outlineType",void 0),h([W({type:Boolean,reflect:!0})],Ie.prototype,"disabled",void 0),h([W({reflect:!0})],Ie.prototype,"type",void 0),h([W({reflect:!0})],Ie.prototype,"placeholder",void 0),h([W({reflect:!0})],Ie.prototype,"name",void 0),h([W()],Ie.prototype,"value",void 0),h([W()],Ie.prototype,"default",void 0),h([J("input")],Ie.prototype,"_input",void 0),Ie=h([w(Pe,ze)],Ie);class OutlineBuilder{constructor({selector:t=":host",width:e=St.outlineWidth,color:o=St.outlineColor,outlineType:r}={}){const s=((t,e)=>{const o=`outline-color:var(${e});border-color:var(${e});`,r=`${o}outline-width:var(${t});outline-style:solid;`;return{outline:r,"outline-inset":`${r}outline-offset:calc(-1 * var(${t}));`,"box-shadow":`box-shadow:0 0 0 var(${t}) var(${e});`,"box-shadow-inset":`box-shadow:inset 0 0 0 var(${t}) var(${e});`,border:`${o}border-width:var(${t});border-style:solid;`}})(e,o);if(r&&r in s){const e=s[r];this.css=`${t}{${e}}`}else this.css=""}get styleSheet(){return a(this.css).styleSheet}}let Oe=class Input extends Ie{constructor(){super(...arguments),this.type="text",this.variant="default",this.__outlineSC=new StyleController(this,(()=>new OutlineBuilder({outlineType:this.outlineType}).css+("outline"===this.variant?`:host{${St.outlineColor}: var(${St.active})}`:"")))}render(){return o`<div part="root" ${it(this.observedRecord)} class="input-field">${[this._renderPrefix(),o`<input part="input" type="${this.type}" .value="${this.value}" ?autofocus="${this.autofocus}" ?disabled="${this.disabled}" autocapitalize="${this.autocapitalize||e}" autocomplete="${this.autocomplete||e}" placeholder="${this.placeholder||e}" id="${this.makeId}" @input="${this._handleInput}" @change="${this._handleChange}">`,this._renderSuffix()]}</div>`}_renderSuffix(){const t="password";return o`<label for="${this.makeId}" part="suffix">${this.type===t?o`<i part="icon" @mousedown="${()=>this._changeInputType("text")}" @mouseup="${()=>this._changeInputType(t)}" @mouseleave="${()=>this._changeInputType(t)}">${Ae()}</i>`:st("suffix")}</label>`}};h([W()],Oe.prototype,"variant",void 0),h([J("input")],Oe.prototype,"_input",void 0),Oe=h([x("input"),w(l`:host{display:block;height:var(${St.input}-height);width:var(${St.input}-width)}:host(:focus-within){${St.outlineColor}:var(${St.active})}`)],Oe);var Be=Oe;Be.define();let De=class Layout extends GlobalStyle{constructor(){super(...arguments),this.sticky=!1}render(){return o`<div part="root" ${it(this.observedRecord)}><header part="header">${st("header")}</header><main part="main">${st()}</main><footer part="footer">${st("footer")}</footer></div>`}};h([W({type:Boolean})],De.prototype,"sticky",void 0),De=h([x("layout"),w(l`:host{flex-direction:column;grid-template-rows:auto 1fr auto;min-height:100%;width:100%}:host,:host([contents]) [part=root]{display:flex}[part=root]{display:contents}[part=main]{flex:1;width:100%}[part=footer],[part=header]{flex-shrink:0;width:100%}[sticky] header{position:sticky;top:0}`)],De);var Ne=De;Ne.define();let Ue=class SuperAnchor extends GlobalStyle{constructor(){super(...arguments),this.target="_self"}get pathname(){return new URL(this.href,location.href).pathname}render(){return o`<a part="root" ${it(this.observedRecord)} href="${this.href||e}" target="${this.target}" @click="${this._handleClick}">${st()}</a>`}};var Le;h([W()],Ue.prototype,"href",void 0),h([W()],Ue.prototype,"target",void 0),Ue=h([w(l`:host{color:currentColor;cursor:default;display:inline-block;text-decoration:none}:host([href]){cursor:pointer}[part=root]{color:inherit;display:inline-block;text-decoration:inherit}`)],Ue);let je=Le=class Router extends GlobalStyle{constructor(){super(...arguments),this.__fieldRouteTree=new RouteTree,this.__slottedRouteTree=new RouteTree,this.__cacheRecord=new Map,this.component=null,this.pathname=location.pathname,this.default=st(),this.type="united",this.cache=!1,this.handlePopstate=this.events.add(window,"popstate",(()=>{this.pathname=location.pathname}))}get params(){return this.path?RouteTree.parseParams(this.pathname,this.path):{}}set routes(t){this.__routes=t,this.collectFieldRoutes(t)}get routes(){return this.__routes}clear(){this.__cacheRecord.clear()}render(){let t;if(this.cache&&(t=this.__cacheRecord.get(this.pathname))&&(this.component=t.component,this.path=t.path,this.pathname=t.pathname),!t)switch(this.type){case"field":this.component=this.fieldComponent();break;case"slotted":this.component=this.slottedComponent();break;default:this.component=this.fieldComponent()??this.slottedComponent()}return this.component??this.default}connectedCallback(){super.connectedCallback(),Le.routerInstances.add(this),"field"!==this.type&&(this.observers.add(this,MutationObserver,this.collectSlottedRoutes,{attributes:!0,attributeFilter:["slot"],subtree:!0}),this.collectSlottedRoutes())}disconnectedCallback(){super.disconnectedCallback(),Le.routerInstances.delete(this)}useRouter(){return{pathname:this.pathname,params:this.params,path:this.path,component:this.component}}updated(t){if(t.has("pathname")||t.has("path")){const t=this.useRouter();!this.__cacheRecord.has(this.pathname)&&this.path&&this.__cacheRecord.set(this.pathname,t),this.dispatchCustomEvent("change",t)}}fieldComponent(t){if(t||=this.__fieldRouteTree.search(this.pathname)?.pattern,this.path=t,!t)return null;const e=this.routes.find((e=>e.path===t));return e?"render"in e?e.render?.(v(this.useRouter(),"component"))||null:e.component:null}slottedComponent(t){const e=this._slottedNames;return t||=this.__slottedRouteTree.search(this.pathname)?.pattern,this.path=t,t?(this.path=e.find((e=>e===t)),this.path?st(this.path):null):null}collectSlottedRoutes(){this.__slottedRouteTree=new RouteTree,this.clear(),this._slottedNames.forEach((t=>{this.__slottedRouteTree.insert(t)}))}collectFieldRoutes(t){this.__fieldRouteTree=new RouteTree,this.clear(),t.forEach((({path:t})=>{this.__fieldRouteTree.insert(t)}))}static updateAll(){this.routerInstances.forEach((t=>{t.handlePopstate()}))}search(t){return this.__fieldRouteTree.search(t)||this.__slottedRouteTree.search(t)}};je.routerInstances=new Set,h([Y()],je.prototype,"component",void 0),h([Y()],je.prototype,"path",void 0),h([W()],je.prototype,"pathname",void 0),h([Y()],je.prototype,"default",void 0),h([W()],je.prototype,"type",void 0),h([W({type:Boolean})],je.prototype,"cache",void 0),h([Y()],je.prototype,"routes",null),je=Le=h([x("router"),w(l`:host{display:contents}`)],je);var Ve=je;const Ge="auto";let He=class Link extends Ue{constructor(){super(...arguments),this.type=Ge,this.suppress=!1,this.replace=!1,this.state={},this.handleState=()=>{switch(this.type){case Ge:case"push":if(!this.replace){history.pushState(this.state,"",this.href);break}case"replace":history.replaceState(this.state,"",this.href)}}}_handleClick(t){const{state:e,type:o,href:r,pathname:s,suppress:a}=this;if(this.dispatchCustomEvent("navigate",{...this.observedRecord,pathname:s,state:e}),r.startsWith("#")||"normal"===o)return;this.handleState();const l=[...Ve.routerInstances];a||o===Ge&&!l.some((t=>t.search(location.pathname)))||(t.preventDefault(),Ve.routerInstances.forEach((t=>{t.handlePopstate()})))}};h([W()],He.prototype,"type",void 0),h([W({type:Boolean})],He.prototype,"suppress",void 0),h([W({type:Boolean})],He.prototype,"replace",void 0),He=h([x("link")],He);var qe=He;qe.define();let Fe=class Progress extends GlobalStyle{constructor(){super(...arguments),this.max=1,this.min=0}render(){let t,e=20;if(!c(this.value)){const o=new Ranger(this.min,this.max);e=100*o.restrict(this.value/o.diff),t="static"}return o`<div part="root" ${it(this.observedRecord)} class="${t}"><i part="value" style="width:${e}%;"></i></div>`}};h([W({type:Number})],Fe.prototype,"max",void 0),h([W({type:Number})],Fe.prototype,"min",void 0),h([W({type:Number})],Fe.prototype,"value",void 0),Fe=h([x("progress"),w(l`:host{background:var(${St.passive});border-radius:.25em;color:var(${St.active});height:.5em;width:100%}:host,[part=root]{display:block}[part=root]{border-radius:inherit;overflow:hidden;position:relative;z-index:1}[part=value]{animation:progress 1.8s ease-in-out infinite alternate;background:currentColor;border-radius:inherit;height:100%;left:0;position:absolute;top:0;transition:all .3s;z-index:2}@keyframes progress{0%{left:0}to{left:80%}}.static [part=value]{animation:none}`)],Fe);var We=Fe;We.define();const Ye="range",Xe=Ct(Ye);let Ze=class Range extends Ie{constructor(){super(...arguments),this.min=0,this.max=100,this.vertical=!1,this.__focusStack=[]}get range(){return Array.isArray(this.value)}get rangeValue(){return this.range?this.value:[this.value]}padValue(t,e=0){const{rangeValue:o}=this,r=t-o.length;return r>0?new Array(r).fill(e).concat(o):o}attributeChangedCallback(t,e,o){super.attributeChangedCallback(t,e,o),"max"!==t&&"min"!==t&&"step"!==t||(this._ranger=new Ranger(this.min,this.max,this.step))}get observedRecord(){return v(super.observedRecord,"outline-type")}render(){const t=this.padValue(2),e=Math.min(...t),r=Math.max(...t),s=this._ranger.diff;return o`<div part="root" ${it(this.observedRecord)} @mousedown="${this.disabled?null:this._handleMousedownRoot}" style="${_([["--from",(e-this.min)/s*100+"%"],["--to",(r-this.min)/s*100+"%"],...t.map(((t,e)=>[`--handle-${e}`,(t-this.min)/s*100+"%"]))])}"><div part="track"></div>${lt(this.rangeValue.length,(t=>this._renderHandle(t)))}</div>`}_renderHandle(t){const{disabled:e,range:r,rangeValue:s}=this,a=!r||r&&t===s.length-1&&1===s.length;return o`<i tabindex="0" part="handle" class="${ht({"last-focus":this.lastFocus===t})}" @mousedown="${e?null:this.createMouseDown(t)}" @focus="${e?null:()=>this.focusHandle(t)}" @blur="${e?null:this.blurHandle}" style="${_({"z-index":this.__focusStack.indexOf(t)+1,"--handle":`var(--${a?"to":`handle-${t}`})`})}"></i>`}focusHandle(t){this.lastFocus=t;const e=this.__focusStack.indexOf(t);-1!==e&&this.__focusStack.splice(e,1),this.__focusStack.push(t);const o=this._handles.item(t);o?.focus(),this.__keydownEvent||(this.__keydownEvent=this.events.add(document,"keydown",this.createKeydownEvent(t)))}blurHandle(){this.lastFocus=void 0,this.__keydownEvent=this.events.remove(document,"keydown",this.__keydownEvent)}createKeydownEvent(t){return e=>{const{rangeValue:o,step:r}=this;o.length<2&&(t=0);const s=o[t];"ArrowLeft"===e.key||"ArrowDown"===e.key?(e.preventDefault(),this.createSetValue(t)(s-r)):"ArrowRight"!==e.key&&"ArrowUp"!==e.key||(e.preventDefault(),this.createSetValue(t)(s+r))}}createMouseDown(t){return e=>{this.focusHandle(t),this.createMousedownListener(this.createSetValue(t))(e)}}createSetValue(t){return e=>{const o=this._ranger.normalize(e);let r=o;this.range&&(r=[...this.value],r[t]=o),this.value=r,this.dispatchCustomEvent("change",this.value)}}_computeValue({clientX:t,clientY:e}){const{top:o,left:r,height:s,width:a}=this._root.getBoundingClientRect();return this._ranger.present(this.vertical?(e-o)/s:(t-r)/a)}_handleMousedownRoot(t){const e=this._computeValue(t),o=this.range?this.rangeValue.reduce(((t,o,r)=>Math.abs(e-o)<Math.abs(e-this.rangeValue[t])?r:t),0):0,r=this.createSetValue(o);r(e),this.createMousedownListener(r)(t),this.focusHandle(o)}createMousedownListener(t){return e=>{e.preventDefault(),e.stopPropagation();const o=this.createMousemoveListener(t);this.events.add(document,"mousemove",o);const r=()=>{this.events.remove(document,"mousemove",o),this.events.remove(document,"mouseup",r)};this.events.add(document,"mouseup",r)}}createMousemoveListener(t){return e=>{const o=this._computeValue(e);o===this._ranger.restrict(o)&&t?.call(this,o)}}_connectedInit(){this._ranger=new Ranger(this.min,this.max,this.step);const t=this._ranger.diff;this.step||=t/100,c(this.value)&&(c(this.default)?this.value=Math.round(t/2/this.step)*this.step:this.value=this.default),this.default??=this.value}reset(){this.value=this.default}sort(){return this.value=this.toSorted()}toSorted(){return this.range?[...this.value].sort(((t,e)=>t-e)):this.value}};h([W({type:Number})],Ze.prototype,"min",void 0),h([W({type:Number})],Ze.prototype,"max",void 0),h([W({type:Number})],Ze.prototype,"step",void 0),h([W({type:Boolean,reflect:!0})],Ze.prototype,"vertical",void 0),h([W({type:Array})],Ze.prototype,"value",void 0),h([W({type:Array})],Ze.prototype,"default",void 0),h([J("root")],Ze.prototype,"_root",void 0),h([Q("[part=handle]")],Ze.prototype,"_handles",void 0),h([Y()],Ze.prototype,"lastFocus",void 0),Ze=h([x(Ye),w(l`:host{${Xe}--handle-active:var(${St.active});${Xe}--track-width:.5em;${Xe}--length:var(${St.input}-width);background:var(${St.passive});display:block;width:var(${Xe}--length)}:host([contents]) [part=root]{width:inherit}:host([vertical]){height:var(${Xe}--length);width:-moz-fit-content;width:fit-content}:host(:not([disabled])) .last-focus{${Xe}--handle-scale:1.05;background:var(${Xe}--handle-active)}[part=root]{position:relative;--from:0%;--to:50%;height:var(${Xe}--track-width)}[part=root],[part=track]{border-radius:inherit;min-height:inherit}[part=track]{background:var(${St.active});height:100%;justify-content:space-between;left:min(var(--from),var(--to));pointer-events:none;width:max(calc(var(--to) - var(--from)),calc(var(--from) - var(--to)))}[part=handle],[part=track]{display:flex;position:absolute}[part=handle]{align-items:center;background:var(${St.active});border:.1em solid;border-color:var(${St.input}-control);border-radius:50%;height:1em;justify-content:center;transform:scale(var(${Xe}--handle-scale,1)) translate(-50%,-25%);transform-origin:0 25%;-webkit-user-select:none;user-select:none;width:1em}`,l`[vertical]{height:inherit;width:var(${Xe}--track-width)}[vertical] i{transform:translate(-25%,-50%)}[vertical] [part=track]{height:max(calc(var(--to) - var(--from)),calc(var(--from) - var(--to)));left:0;top:min(var(--from),var(--to));width:100%}`,l`[part=handle]{left:var(--handle);top:0}[vertical] [part=handle]{left:0;top:var(--handle)}`)],Ze);var Ke=Ze;Ke.define();const Qe="rotate",Je=Ct(Qe);let to=class Rotate extends GlobalStyle{render(){return o`<div part="root"><div part="slot" @mousemove="${this._handleRotate}">${st()}</div><i @mouseleave="${this.reset}"></i></div>`}reset(){this._root.style.removeProperty("transform"),this._root.style.removeProperty("transition")}_handleRotate(t){const{rotateX:e,rotateY:o}=this._computeOffset(t);this._root.style.setProperty("transform",`rotateX(${e}rad) rotateY(${o}rad)`),this._root.style.setProperty("transition","0s")}_computeOffset(t){const{left:e,top:o,width:r,height:s}=this._root.getBoundingClientRect(),{clientX:a,clientY:l}=t;return{rotateX:-(l-o-s/2)/s/2,rotateY:(a-e-r/2)/r/2}}};h([J("root")],to.prototype,"_root",void 0),to=h([x(Qe),w(l`:host{display:block;transition:all .5s ease-in-out;width:-moz-fit-content;width:fit-content;${Je}--padding:.75em;${Je}--offset:.5em}div{position:relative;transition:inherit;transition-property:transform}i{box-sizing:content-box;height:100%;margin:calc(var(${Je}--offset)*-1);padding:var(${Je}--offset);position:absolute;top:0;width:100%}[part=slot]{z-index:2}`)],to);var eo=to;eo.define(),Ve.define();const oo=a("[direction-inset-align]");l`[direction^=top] ${oo}{top:0}[direction^=bottom] ${oo}{bottom:0}[direction$=right] ${oo}{right:0}[direction$=left] ${oo}{left:0}`;const io=a("[direction-outset-place]"),ro=l`[direction^=top] ${io}{bottom:100%}[direction^=bottom] ${io}{top:100%}[direction$=right] ${io}{left:100%}[direction$=left] ${io}{right:100%}`;function so(t,e){return t&&e&&t.toLowerCase().includes(e.toLowerCase())}function no(t,e){if(t){const o="checked";e?t.setAttribute(o,""):t.removeAttribute(o)}}let ao=class Select extends Be{constructor(){super(...arguments),this.multiple=!1,this.visible=!1,this.autoDirection="bottom",this.__store=[]}get observedRecord(){return{...super.observedRecord,direction:this.direction||this.autoDirection}}render(){return o`<div part="root" ${it(this.observedRecord)} class="input-field">${[this._renderPrefix(),o`<input part="input" type="${this.type}" .value="${this.text}" ?autofocus="${this.autofocus}" ?disabled="${this.disabled}" autocapitalize="${this.autocapitalize||e}" autocomplete="${this.autocomplete||e}" placeholder="${this.placeholder||e}" id="${this.makeId}" @focus="${this._handleFocus}" @input="${this._handleInput}" @change="${this._handleChange}">`,o`<label for="${this.makeId}" part="suffix"><i part="icon">${le()}</i></label>`,o`<label for="${this.makeId}" part="content" direction-outset-place>${st()}</label>`]}</div>`}_handleFocus(){if(!this.direction){const{top:t,bottom:e}=this.getBoundingClientRect();window.innerHeight-e<this._content.clientHeight&&t>this._content.clientHeight?this.autoDirection="top":this.autoDirection="bottom"}this.visible=!0}firstUpdated(){this.events.add(this._content,"click",(t=>{t.preventDefault(),t.stopPropagation();const{target:e}=t,o=this.optionValue(e);if(o){const t=this.select(o,e.textContent);this.multiple||no(this.lastChecked,0),no(e,t),this.lastChecked=e}this._input.focus()})),this.events.add(document,"click",(t=>{t.stopPropagation();const e=t.composedPath()[0];e&&!this.shadowRoot.contains(e)&&this.blur()}))}_connectedInit(){if(!this.value){const t=[...this.querySelectorAll("[checked]")];(this.multiple?t:t.length?[this.lastChecked=t[0]]:[]).forEach((t=>{no(t,this.select(this.optionValue(t),t.textContent))})),this.default=this.value,this.defaultText=this.text,this.defaultChecked=t}this.text||(this.text="")}reset(){this.value=this.default,this.text=this.defaultText,this.querySelectorAll("[checked]").forEach((t=>no(t,0))),this.defaultChecked.forEach((t=>no(t,1)))}select(t,e){e||=t,e=e.trim();let o=0;if(this.multiple){const r=this.__store.findIndex((e=>e.value===t));r>-1?this.__store.splice(r,1):(this.__store.push({value:t,text:e}),o=1),this.value=this.__store.map((t=>t.value)),this.text=this.__store.map((t=>t.text)).join(", ")}else this.value===t?(this.value="",this.text=""):(this.value=t,this.text=e,o=1);return this.dispatchCustomEvent("select",this.value),this.filter(),o}filter(t){t=t?.trim(),[...this.children].forEach((e=>{this.filterCallback(e,!t||so(this.optionValue(e),t)||so(e.textContent,t),t)}))}filterCallback(t,e,o){t.style.display=e?"":"none"}_handleInput(t){if(t.stopPropagation(),this.compositing)return;const e=this._input.value;this.filter(this.multiple?function(t,e){const o=e.slice(0,t).lastIndexOf(",")+1||0,r=e.indexOf(",",t)||e.length;return e.slice(o,r)}(this._input.selectionStart,e):e),this.dispatchCustomEvent("input",this.value,{bubbles:!0})}focus(t){this._input.focus(t),this.visible=!0}blur(){this._input.blur(),this.visible=!1,super.blur()}optionValue(t){return t.value||t.getAttribute("value")||""}};h([W()],ao.prototype,"text",void 0),h([J("content")],ao.prototype,"_content",void 0),h([W()],ao.prototype,"direction",void 0),h([W({type:Boolean})],ao.prototype,"multiple",void 0),h([W({type:Boolean})],ao.prototype,"visible",void 0),h([Y()],ao.prototype,"autoDirection",void 0),ao=h([x("select"),w(ro,l`.outline,:host(:focus-within){${St.input}-outline-color:var(${St.active})}[part=input]{text-overflow:ellipsis}[part=content]{position:absolute;visibility:hidden;width:100%}[visible] [part=content]{visibility:visible}`)],ao);var lo=ao;lo.define();var ho=at("0 0 56 56")`<path fill="currentColor" d="M7.715 49.574h40.57c4.899 0 7.36-2.437 7.36-7.265V13.69c0-4.828-2.461-7.265-7.36-7.265H7.715C2.84 6.426.355 8.84.355 13.69v28.62c0 4.851 2.485 7.265 7.36 7.265m31.57-21.633c-1.055-.937-2.25-1.43-3.515-1.43c-1.313 0-2.462.446-3.54 1.407l-10.593 9.469l-4.336-3.938c-.985-.867-2.04-1.336-3.164-1.336c-1.032 0-2.04.446-3 1.313L4.129 39.73V13.88c0-2.438 1.312-3.68 3.656-3.68h40.43c2.32 0 3.656 1.242 3.656 3.68v25.875Zm-21.469.258c3.024 0 5.508-2.484 5.508-5.531c0-3.023-2.484-5.531-5.508-5.531c-3.046 0-5.53 2.508-5.53 5.531a5.54 5.54 0 0 0 5.53 5.531"/>`;const co="skeleton",po=Ct(co);let uo=class Skeleton extends GlobalStyle{constructor(){super(...arguments),this.animation="position",this.loading=!0}render(){return this.loading?o`<div part="root" ${it(this.observedRecord)}>${"image"===this.type?ho():""} ${st("loading")}</div>`:st()}};h([W()],uo.prototype,"type",void 0),h([W()],uo.prototype,"animation",void 0),h([Y()],uo.prototype,"loading",void 0),uo=h([x(co),w(l`:host{${po}--from:var(${St._colors.darkgray[9]});${po}--to:var(${St._colors.darkgray[7]});${po}--deg:95deg;${po}--duration:1.5s;${po}--icon-size:5em;${po}--icon-margin:.25em;background:var(${po}--from);color:var(${St._colors.darkgray[5]});display:block;flex-shrink:0;min-height:1.5em;overflow:hidden;width:100%}[part=root]{animation:var(${po}--duration) ease-in-out 0s infinite none running;min-height:inherit;text-align:center}svg{--size:var(${po}--icon-size);font-size:var(--size);margin:calc(var(--size)*.05)}[animation=position]{animation-name:po;background-color:transparent;background-image:linear-gradient(var(${po}--deg),var(${po}--from) 36%,var(${po}--to) 50%,var(${po}--from) 64%);background-size:200% 100%}@keyframes po{0%{background-position:150%}to{background-position:-50%}}[animation=opacity]{animation-direction:alternate;animation-name:op}@keyframes op{50%{opacity:.25}to{opacity:1}}`)],uo);var vo=uo;vo.define();const fo="split",mo=Ct(fo);let go=class Split extends Ie{constructor(){super(...arguments),this.len=6,this.index=-1,this.current=-1,this.currentValue=[],this.__outlineSC=new StyleController(this,(()=>new OutlineBuilder({selector:"[part=input-box]",outlineType:this.outlineType}).css))}get observedRecord(){return v(super.observedRecord,"outline-type")}render(){return o`<div part="root" ${it(this.observedRecord)}>${lt(this.len,(t=>o`<span part="input-box" outline-type="${this.outlineType}" class="${ht({focus:this.current===t})}" @click="${this.disabled?null:()=>this.focusAt(t)}">${this.currentValue[t]}</span>`))} <input part="input" id="${this.makeId}" @blur="${this.blur}" @input="${this._handleInput}" @change="${this._handleChange}" .value="${this.value.padStart(this.len," ")}"></div>`}connectedCallback(){super.connectedCallback(),this.reset()}_handleInput(t){t.stopPropagation(),this.compositing||(this.fillInput(t.data),this.value=this.currentValue.join(""),this.dispatchCustomEvent("input",this.value,{bubbles:!0}))}fillInput(t){if(null===t){if(null!==this.currentValue[this.current])this.currentValue[this.current]=null;else{this.currentValue[this.current-1]=null;const t=this.currentValue.findLastIndex((t=>null!==t));this.current=this.current-1<0?t<0?0:t:this.current-1}return}const e=t.length>1;if(this.currentValue[this.current]=t[0],this.current+1>=this.len?(this.current=this.currentValue.indexOf(null),-1===this.current&&this.blur()):this.current+=1,e){const e=t.slice(1);e&&this.fillInput(e)}}focus(){this.focusAt(this.current),super.focus()}focusAt(t){this.current=t,this._input.focus()}blur(){this._input.blur(),this.current=-1,super.blur()}reset(){this.current=-1,this.value=this.default,this.currentValue=this.value.split("").concat(Array(this.len-this.value.length).fill(null)),this.index>-1&&(this.current=this.index)}};h([W({type:Number})],go.prototype,"len",void 0),h([W({type:Number})],go.prototype,"index",void 0),h([Y()],go.prototype,"current",void 0),h([Y()],go.prototype,"currentValue",void 0),go=h([x(fo),w(l`:host{border-radius:.1em;display:block;width:-moz-fit-content;width:fit-content;${mo}--size:1.45em;${mo}--gap:.25em}[part=root]{display:flex;gap:var(${mo}--gap);justify-content:space-between;position:relative}[part=input-box],[part=root]{border-radius:inherit;vertical-align:top}[part=input-box]{align-items:center;display:inline-flex;height:var(${mo}--size);justify-content:center;width:var(${mo}--size)}[part=input]{background:none;height:100%;opacity:0;position:absolute;width:100%;z-index:-1}.focus,[part=input-box]:active{${St.outlineColor}:var(${St.active})}`)],go);var yo=go;yo.define();const bo="switch",$o=Ct(bo);let _o=class Switch extends Ie{constructor(){super(...arguments),this.default=!1,this.value=!1}set checked(t){this.value=t}get checked(){return this.value}get observedRecord(){return v(super.observedRecord,"outline-type")}render(){return o`<div part="root" ${it(this.observedRecord)} class="round"><input part="input" type="checkbox" ?disabled="${this.disabled}" ?checked="${this.value}" id="${this.makeId}" @change="${this._handleChange}"> <span part="handle"></span></div>`}reset(){this.value=this.default,this._input.checked=this.value}_connectedInit(){this.default?this.value=!0:this.value&&(this.value=!0,this.default=!0)}_handleChange(){const{checked:t}=this._input;this.value=t,this.dispatchCustomEvent("change",this.value)}};h([W({type:Boolean})],_o.prototype,"default",void 0),h([W({type:Boolean,attribute:"checked",reflect:!0})],_o.prototype,"value",void 0),_o=h([x(bo),w(l`:host,:host([contents]) [part=root]{display:inline-block}:host{${$o}-width:3em;${$o}-height:calc(var(${$o}-width)/2);${$o}-handle-size:1.25em;${$o}-handle-space:calc(var(${$o}-width)/4 - var(${$o}-handle-size)/2);${$o}-transition:.2s ease-in-out;background:var(${St.passive});border-radius:calc(var(${$o}-height)/2);height:var(${$o}-height);transition:.2s ease-in-out;transition-property:background,left;vertical-align:bottom;width:var(${$o}-width)}:host([checked]){background:var(${St.active})}[part=root]{position:relative}[part=handle],[part=root]{align-items:center;display:flex;transition:inherit}[part=handle]{background:currentColor;border-radius:100%;justify-content:center;left:0;pointer-events:none;position:absolute;top:50%;--size:var(${$o}-handle-size);height:var(--size);transform:translateY(-50%) translateX(var(${$o}-handle-space));width:var(--size)}:host([checked]) [part=handle]{left:50%}[part=input]{height:100%;opacity:0;width:100%}`)],_o);var wo=_o;wo.define();const xo="text",ko=Ct(xo);let Co=class Text extends GlobalStyle{constructor(){super(...arguments),this.underline="none",this.clip=!1}render(){return o`<span part="root" ${it(this.observedRecord)} class="${ht(this.underline)}">${st()}</span>`}};h([W()],Co.prototype,"underline",void 0),h([W({type:Boolean})],Co.prototype,"clip",void 0),Co=h([x(xo),w(l`:host{${ko}--color:currentColor;${ko}--color-hover:currentColor;${ko}--color-active:currentColor;display:inline-block;overflow-wrap:break-word;text-overflow:ellipsis}[part=root]{color:var(${ko}--color);display:inline-block;overflow:hidden;overflow-wrap:inherit;text-overflow:inherit;vertical-align:bottom;white-space:nowrap}[part=root]:hover{color:var(${ko}--color-hover,var(${ko}--color))}[part=root]:active{color:var(${ko}--color-active,var(${ko}--color))}.active:active,.always,.hover:hover{text-decoration:underline}.none{text-decoration:none}[clip]{background:var(${St.clipBackground});color:transparent;display:inline-block;-webkit-text-fill-color:transparent;background-clip:text;-webkit-background-clip:text}`)],Co);var So=Co;So.define();const Ro="tabs",Eo=Ct(Ro),To="hover";let Mo=class Tabs extends GlobalStyle{constructor(){super(...arguments),this.outlineType="border",this.useSlot=!1,this.index=0,this.__outlineSC=new StyleController(this,(()=>new OutlineBuilder({outlineType:this.outlineType}).css))}render(){return o`<ul part="root" ${it(this.observedRecord)} @mouseleave="${this._handleMouseLeave}">${this.tabs?.map(((t,e)=>t||this.useSlot?o`<li part="${ht("item",{selected:this.index===e})}" @mouseenter="${()=>{this.move(this._lastIndex,e),this._lastIndex=e}}" @click="${()=>this.select(e)}">${this.useSlot?st(t):t}<div part="indicator"></div></li>`:""))}</ul>`}connectedCallback(){super.connectedCallback(),this._lastIndex=this.index}_handleMouseLeave(){const t=this._items[this._lastIndex];t&&t.part.remove(To),this._lastIndex=this.index}move(t,e){if(t===e)return;const{_items:o,_indicators:r}=this,s=o[e];if(!s)return;s.part.add(To);const a=o[t];if(!a)return;a.part.remove(To);const l=r[e],h=r[t];if(!l||!h)return;const c=h.getBoundingClientRect(),d=s.getBoundingClientRect(),p=c.x-d.x,u=c.y-d.y,v=c.width,{style:f}=l;f.transform=`translate3d(${p}px,${u}px,0)`,f.width=v+"px",f.transition=h.style.transition="none",l.getBoundingClientRect(),f.width=f.transform=f.transition=h.style.transition=""}select(t){const{index:e,tabs:o,_lastIndex:r,useSlot:s}=this;o&&e!==t&&t in o&&(this.dispatchCustomEvent("select",t),this.move(r,t),this._lastIndex=t,e in o&&(o[e]||s)&&(this.index=t))}};h([W({attribute:"outline-type"})],Mo.prototype,"outlineType",void 0),h([W({type:Boolean})],Mo.prototype,"useSlot",void 0),h([W({type:Array})],Mo.prototype,"tabs",void 0),h([W({type:Number})],Mo.prototype,"index",void 0),h([Q("[part~=item]")],Mo.prototype,"_items",void 0),h([Q("[part=indicator]")],Mo.prototype,"_indicators",void 0),Mo=h([x(Ro),w(l`:host{${Eo}--indicator-background:var(${St._colors.darkgray[7]});${Eo}--space:0.25em;border-radius:var(${St.radius});cursor:default;display:flex;transition:.2s ease-in-out;width:-moz-fit-content;width:fit-content}[part=root]{border-radius:inherit;display:flex;flex-direction:inherit;gap:var(${Eo}--space);overflow-x:clip;padding:var(${Eo}--space);position:relative;transition:inherit;transition-property:width,transform,opacity;z-index:1}[useslot] [part~=item]{padding:0}[part~=item]{display:block;padding:0 .4em;position:relative;white-space:nowrap}[part=indicator],[part~=item]{border-radius:inherit;transition:inherit;transition-property:inherit;width:100%}[part=indicator]{background:var(${Eo}--indicator-background);height:100%;inset:0;opacity:0;position:absolute;z-index:-1}[part~=selected]{background:var(${Eo}--indicator-background)}[part~=hover] [part=indicator],[part~=selected] [part=indicator]{opacity:1}`)],Mo);var Ao=Mo;function Po(t,e=2){return t.toString().padStart(e,"0").split("")}Ao.define();let zo=class Time extends GlobalStyle{constructor(){super(...arguments),this.escape="%",this.format="YYYY-MM-DD hh:mm:ss",this.time=new Date}render(){return o`<span part="root" ${it(this.observedRecord)}>${function(t,e=new Date,o="%"){var r;if(!t)return t;if(isNaN(e.getTime()))return;const s=`${o}${o}`,a=[];t=t.replace(new RegExp(`${o}([ZYMDhmsS${o}])`,"g"),((t,e)=>(a.push(e),s)));const l=e.getTimezoneOffset()/-60,h={Z:[l>=0?"+"+l.toString():l.toString()],Y:e.getFullYear().toString().split(""),M:Po(e.getMonth()+1),D:Po(e.getDate()),h:Po(e.getHours()),m:Po(e.getMinutes()),s:Po(e.getSeconds()),S:Po(e.getMilliseconds(),3)},c=[];for(const e of t.split("").reverse()){const t=null===(r=h[e])||void 0===r?void 0:r.pop();t?c.push(t):c.push(e)}return c.reverse().join("").replace(new RegExp(s,"g"),(()=>a.shift()))}(this.format,this.time,this.escape)}</span>`}updated(t){t.has("timeout")&&this.timeout&&(this.timeouts.remove(this.timeoutId),this.timeoutId=this.timeouts.add(setInterval((()=>{this.dispatchCustomEvent("time",this.time),this.time=new Date(this.time.getTime()+(this.gap||this.timeout))}),Math.abs(this.timeout))))}};h([W()],zo.prototype,"escape",void 0),h([W()],zo.prototype,"format",void 0),h([W({type:Object})],zo.prototype,"time",void 0),h([W({type:Number})],zo.prototype,"timeout",void 0),h([W({type:Number})],zo.prototype,"gap",void 0),zo=h([x("time"),w(l`:host{text-align:center}`)],zo);var Io,Oo=zo;Oo.define();const Bo="tooltip",Do=Ct(Bo);let No=Io=class Tooltip extends SuperOpenable{constructor(){super(...arguments),this.direction="top",this.align="center",this.propagation=!1,this.type="hover"}render(){const t=Io.aligns[this.align]||"inherit",e="focus"===this.type;return o`<div part="root" ${it(this.observedRecord)} tabindex="${e?0:-1}" @focus="${e?()=>this.open=!0:null}" @blur="${e?()=>this.open=!1:null}" @mouseenter="${e?null:()=>this.open=!0}" @mouseleave="${e?null:()=>this.open=!1}" style="justify-content:${t};align-items:${t}">${st()}<div part="tip" direction-outset-place>${this.tip?o`<span class="passive">${this.tip}</span>`:st("tip")}</div></div>`}};No.aligns={start:"flex-start",end:"flex-end",center:"center","flex-start":"flex-start","flex-end":"flex-end"},h([W()],No.prototype,"tip",void 0),h([W()],No.prototype,"direction",void 0),h([W()],No.prototype,"align",void 0),h([W({type:Boolean})],No.prototype,"propagation",void 0),h([W()],No.prototype,"type",void 0),No=Io=h([x(Bo),w(ro,l`:host{${Do}--tip-background:inherit;width:-moz-fit-content;width:fit-content}:host,[part=root]{display:inline-flex}[part=root]{border-radius:inherit;position:relative;transition:inherit}[part=tip]{height:-moz-fit-content;height:fit-content;position:absolute;transition:inherit;-webkit-user-select:none;user-select:none;visibility:hidden;width:-moz-fit-content;width:fit-content}:host([open]) [part=tip]{visibility:visible}.passive{background:var(${Do}--tip-background)}[propagation] [part=tip]{pointer-events:none}`)],No);var Uo=No;Uo.define();const Lo="typewriter",jo=Ct(Lo);let Vo=class Typewriter extends GlobalStyle{constructor(){super(...arguments),this.content="",this.ended=!1,this.max=100,this.min=50,this.delay=0,this.index=0,this.contentInternal=""}get len(){return this.content.length}render(){return o`<div part="root" ${it(this.observedRecord)}>${st()} ${this.contentInternal} <i part="cursor" ?hidden="${this.ended}"></i></div>`}connectedCallback(){super.connectedCallback(),this._ranger=new Ranger(this.min,this.max)}firstUpdated(){this.content||=this._slot?.assignedNodes()[0]?.textContent.trim()||"",!this.ended&&this.len&&this.write()}updated(t){t.has("index")&&this.dispatchCustomEvent(this.index===this.len?"done":"write",this.contentInternal)}write(t=this.index){this.contentInternal=this.content.slice(0,t+1);const e=this.delay||this._ranger.random();this.timeoutID=this.timeouts.add(setTimeout((()=>{const e=t+1;e<=this.len&&(this.index=e,this.write())}),e))}stop(){clearTimeout(this.timeoutID)}end(){this.ended=!0}};h([W()],Vo.prototype,"content",void 0),h([W({type:Boolean})],Vo.prototype,"ended",void 0),h([W({type:Number})],Vo.prototype,"max",void 0),h([W({type:Number})],Vo.prototype,"min",void 0),h([W({type:Number})],Vo.prototype,"delay",void 0),h([W({type:Number})],Vo.prototype,"index",void 0),h([Y()],Vo.prototype,"contentInternal",void 0),h([Z("i")],Vo.prototype,"_i",void 0),Vo=h([x(Lo),w(l`:host{${jo}--cursor-width:.05em}:host,:host([contents]) [part=root]{display:inline-block}i{animation:s 1.5s steps(1) infinite;border-right:var(${jo}--cursor-width) solid;margin-left:.02em}@keyframes s{0%{border-color:currentColor}50%{border-color:transparent}}slot{display:none}`)],Vo);var Go=Vo;Go.define();export{Ot as Alert,Dt as Avatar,jt as Badge,qt as Breath,Qt as Button,oe as Card,ae as Carousel,pe as Details,me as Dialog,ye as Divider,$e as Dragbox,xe as Flex,Ce as Form,Ee as Grid,Me as Heading,Be as Input,Ne as Layout,qe as Link,We as Progress,Ke as Range,eo as Rotate,Ve as Router,lo as Select,vo as Skeleton,yo as Split,wo as Switch,Ao as Tabs,So as Text,Oo as Time,Uo as Tooltip,Go as Typewriter};
|
47
|
+
*/,et=6;let ot=class i{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,o){this._$Ct=t,this._$AM=e,this._$Ci=o}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}};function it(t,e){(t=>c(t)||!1===t)(e)?this.removeAttribute(t):!0===e?this.setAttribute(t,""):d(e)||(t=>"number"==typeof t)(e)&&!Number.isNaN(e)?this.setAttribute(t,String(e)):this[t]=e}const rt=(t=>(...e)=>({_$litDirective$:t,values:e}))(class AttrDirective extends ot{render(t,e){}update(e,[o,r=it]){if(o&&e.type===et)for(const t in o)r.call(e.element,t,o[t]);return t}}),st=((t,e)=>o=>t({...e,...o}))(rt,{width:"1em",height:"1em",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"}),nt=t=>o`<slot name="${t||e}"></slot>`,at=(t,r)=>{if(!t)return e;const s=d(t)?t:_(t);return s?o`<style media="${e}">${s}</style>`:e},lt=t=>(e,...s)=>{const a=r(e,s),l=d(t)?t:t.join(" "),h=t=>o`<svg viewBox="${l}" ${st(t)}>${a}</svg>`;return h.body=a,h.viewBox=l,h};function*ht(t,e,o){for(let o=0;o<t;o++)yield e(o)}const ct=(...t)=>t.reduce(((t,e)=>{if(!e)return t;if(u(e))return f(t,ct(...e)," ");if(p(e)){for(const o in e)e[o]&&(t=f(t,o," "));return t}return f(t,e," ")}),"");function dt(t,e=this){if(!e||!t)return[];const o=new Set;e instanceof Element&&e.shadowRoot&&dt(t,e.shadowRoot).forEach((t=>o.add(t))),e.querySelectorAll(t).forEach((t=>o.add(t)));for(const r of e.children)dt(t,r).forEach((t=>o.add(t)));return Array.from(o)}function pt(t,e=this){if(!e||!t)return null;let o;if(e instanceof Element&&e.shadowRoot&&(o=pt(t,e.shadowRoot),o))return o;if(o=e.querySelector(t),o)return o;for(const r of e.children)if(o=pt(t,r),o)return o;return null}class Events{constructor(){this.inner=new Map}add(t,e,o,r){if(!t||!o)return;const s=this.inner.get(e)||new Map,a=s.get(t)||new Set;return a.add(o),s.set(t,a),this.inner.set(e,s),t.addEventListener(e,o,r),o}remove(t,e,o,r){if(!t||!o)return;const s=this.inner.get(e);if(s){const r=s.get(t);r&&(r.delete(o),r.size||(s.delete(t),s.size||this.inner.delete(e)))}t.removeEventListener(e,o,r)}removeAll(){this.inner.forEach(((t,e)=>{t.forEach(((t,o)=>{t.forEach((t=>{o.removeEventListener(e,t)}))})),t.clear()})),this.inner.clear()}}class Observers{constructor(){this.inner=new Map}add(t,e,o,r){const[s,a]=((t,e,o)=>{let r,s;switch(t){case MutationObserver:case ResizeObserver:r=new t(e),s=t=>r.observe(t,o);break;case IntersectionObserver:r=new t(e,o),s=t=>r.observe(t);break;case PerformanceObserver:r=new t(e),s=()=>r.observe(o)}return[r,s]})(e,o,r);if(s)return this.inner.set(s,(this.inner.get(s)||new Set).add(t)),a(t),s}remove(t,e){t.disconnect();const o=this.inner.get(t);"unobserve"in t?(e?(t.unobserve(e),o?.delete(e)):(o?.forEach((e=>{t.unobserve(e)})),o?.clear()),o&&!o.size&&this.inner.delete(t)):o&&this.inner.delete(t)}removeAll(){this.inner.forEach(((t,e)=>{this.remove(e)}))}}class Ranger{constructor(t,e,o){this.max=Math.max(t,e),this.min=Math.min(t,e),this.diff=this.max-this.min,this.step=o}random(){return this.normalize(Math.random()*this.diff+this.min)}present(t){return this.normalize(t*this.diff)}normalize(t){return t=this.restrict(t),this.step?this.min+Math.round((t-this.min)/this.step)*this.step:t}restrict(t){return this.max<=t?this.max:this.min>=t?this.min:t}}class RouteTree{constructor(){this.matchType=RouteTree.MatchTypes.strict,this.children=[]}insert(t,e,o=0){if(e||(e=RouteTree.split(t)),e.length===o)return void(this.pattern=t);const r=e[o];let s=this.findStrict(r);s||(s=new RouteTree,s.part=r,s.matchType=RouteTree.dynamic(r).matchType,this.children.push(s),this.sorted=!1),s.insert(t,e,o+1)}search(t,e=0){if(d(t)&&(t=RouteTree.split(t)),this.sorted||this.sort(),t.length===e||RouteTree.dynamic(this.part).matchType===RouteTree.MatchTypes.multi)return this.pattern?this:null;const o=t[e],r=this.filterWide(o);for(const o of r){const r=o.search(t,e+1);if(null!==r)return r}return null}findStrict(t){return this.children.find((e=>e.part===t))||null}filterWide(t){return this.children.filter((e=>e.part===t||e.matchType))}sort(){const{children:t}=this;if(t.length){t.sort(((t,e)=>t.matchType-e.matchType));for(const e of t)e.sort()}this.sorted=!0}static parseParams(t,e){const o=RouteTree.split(t),r=RouteTree.split(e),s={};for(let t=0;t<r.length;t++){const e=r[t],{key:a,matchType:l}=RouteTree.dynamic(e);if(l===RouteTree.MatchTypes.single)s[a]=o[t];else if(l===RouteTree.MatchTypes.multi){s[a]=o.slice(t).join("/");break}}return s}static dynamic(t){if(t){if(m(t,"{","}")||m(t,"[","]")){t=t.slice(1,-1);const e=RouteTree.dynamic(t);return e.matchType||=RouteTree.MatchTypes.single,e}if(t.startsWith(":"))return{key:t.slice(1),matchType:RouteTree.MatchTypes.single};if(t.startsWith("*"))return{key:t.slice(1),matchType:RouteTree.MatchTypes.multi};if(t.startsWith("..."))return{key:t.slice(3),matchType:RouteTree.MatchTypes.multi}}return{key:t,matchType:RouteTree.MatchTypes.strict}}static split(t){return t.split("/").filter((t=>t))}}RouteTree.MatchTypes={strict:0,single:1,multi:2};class Timeouts{constructor(){this.inner=new Set}add(t){if(void 0!==t)return t=+t,this.inner.has(t)&&clearTimeout(t),this.inner.add(t),t}remove(t){void 0!==t&&(t=+t,clearTimeout(t),this.inner.delete(t))}removeAll(){this.inner.forEach(clearTimeout),this.inner.clear()}}const ut=(t,{attribute:e})=>!0===e||void 0===e?String(t).toLowerCase():!1!==e&&"symbol"!=typeof t?e:void 0,vt=/^[\s\S]*{[\s\S]*}$/;class GodownElement extends s{static define(t=this.elementTagName,e){this.isDefined()||this.godownConfig.define(t,this,e)}static isDefined(){return!!this.getDefined()}static getDefined(){return this.godownConfig.get(this.elementTagName)}static finalize(){super.finalize(),this.elementAttributes=new Map;for(const[t,e]of this.elementProperties.entries()){const o=ut(t,e);o&&this.elementAttributes.set(o,t)}}get observedRecord(){const t={};for(const[e,o]of this.constructor.elementAttributes.entries())t[e]=this[o];return t}get _slot(){return this.shadowRoot?this.shadowRoot.querySelector("slot:not([name])"):null}get _slotAll(){return this.shadowRoot?[...this.shadowRoot.querySelectorAll("slot")]:[]}get _slottedAll(){return[...this.querySelectorAll("[slot]")]}get _slottedNames(){return this._slottedAll.map((t=>t.getAttribute("slot"))).filter((t=>t))}getBoundingClientRect(){let t;return this.contents&&(t=this.contentsRoot||this.shadowRoot?.firstElementChild)&&t!==this?t.getBoundingClientRect():super.getBoundingClientRect()}getClientRects(){let t;return this.contents&&(t=this.contentsRoot||this.shadowRoot?.firstElementChild)&&t!==this?t.getClientRects():super.getClientRects()}get stylex(){return this.__stylex.css}set stylex(t){t=t.trim(),vt.test(t)||(t=`:host{${t}}`),this.shadowRoot?(this.__stylex.index&&this.shadowRoot.adoptedStyleSheets.splice(this.__stylex.index,1),this.__stylex.css=t,this.__stylex.index=this.adoptStyles(t)):this.__stylex.lazy=t}constructor(t){super(),this.events=new Events,this.observers=new Observers,this.timeouts=new Timeouts,this.__stylex={},this.assign={...GodownElement.godownConfig?.assign||{},...t}}connectedCallback(){super.connectedCallback(),this.assign&&(Object.assign(this,this.assign),this.assign=null);const{lazy:t}=this.__stylex;t&&(this.adoptStyles(t),this.__stylex.lazy="")}disconnectedCallback(){this.events.removeAll(),this.observers.removeAll(),this.timeouts.removeAll()}mount(t){this.firstUpdated(t)}unmount(){this.disconnectedCallback()}remount(t){this.unmount(),this.connectedCallback(),this.mount(t)}deepQuerySelector(t){return pt.call(this,t)}deepQuerySelectorAll(t){return dt.call(this,t)}adoptStyles(...t){if(!this.shadowRoot||!t.length)return;const e=this.shadowRoot.adoptedStyleSheets,o=new CSSStyleSheet;return t.forEach((t=>o.insertRule(t.toString()))),e.push(o),e.length-1}dispatchCustomEvent(t,e,o){this.dispatchEvent(new CustomEvent(t,{detail:e,composed:!0,...o}))}}GodownElement.godownConfig=new class GodownConfig{constructor(t){this.assign=null,this.prefix="godown",this.suffix="",this.components=new Map,this.registry=customElements,t&&Object.assign(this,t)}tag(t){return g(this.prefix+"-"+t+"-"+this.suffix)}define(t,e,o){this.registry.define(t,e,o),this.components.set(t,e)}get(t){return this.registry.get(t)}getName(t){const{getName:e}=this.registry;return e?e(t):[...this.components.entries()].find((([,e])=>e===t))?.[0]||null}whenDefined(t){return this.registry.whenDefined(t)}upgrade(t){this.registry.upgrade(t)}},h([Y({type:Boolean,reflect:!0})],GodownElement.prototype,"contents",void 0),h([Y({reflect:!0})],GodownElement.prototype,"stylex",null);var ft=lt("0 0 56 56")`<path fill="currentColor" d="M28 4c13.255 0 24 10.745 24 24S41.255 52 28 52S4 41.255 4 28S14.745 4 28 4m0 4C16.954 8 8 16.954 8 28s8.954 20 20 20s20-8.954 20-20S39.046 8 28 8m10.788 11.93c.67.67.67 1.756 0 2.425l-13.36 13.36a1.715 1.715 0 0 1-2.424 0l-5.645-5.646a1.714 1.714 0 0 1 2.425-2.424l3.22 3.22c.67.67 1.755.67 2.425 0l10.934-10.934c.67-.67 1.755-.67 2.425 0"/>`,mt=lt("0 0 56 56")`<path fill="currentColor" d="M28 51.906c13.055 0 23.906-10.828 23.906-23.906c0-13.055-10.875-23.906-23.93-23.906C14.899 4.094 4.095 14.945 4.095 28c0 13.078 10.828 23.906 23.906 23.906m0-3.984C16.937 47.922 8.1 39.062 8.1 28c0-11.04 8.813-19.922 19.876-19.922c11.039 0 19.921 8.883 19.945 19.922c.023 11.063-8.883 19.922-19.922 19.922m-.023-15.68c1.124 0 1.757-.633 1.78-1.851l.352-12.375c.024-1.196-.914-2.086-2.156-2.086c-1.266 0-2.156.867-2.133 2.062l.305 12.399c.023 1.195.68 1.851 1.852 1.851m0 7.617c1.335 0 2.53-1.078 2.53-2.437c0-1.383-1.171-2.438-2.53-2.438c-1.383 0-2.532 1.078-2.532 2.438c0 1.336 1.172 2.437 2.532 2.437"/>`,gt=lt("0 0 56 56")`<path fill="currentColor" d="M28 51.906c13.055 0 23.906-10.828 23.906-23.906c0-13.055-10.875-23.906-23.93-23.906C14.899 4.094 4.095 14.945 4.095 28c0 13.078 10.828 23.906 23.906 23.906m0-3.984C16.937 47.922 8.1 39.062 8.1 28c0-11.04 8.813-19.922 19.876-19.922c11.039 0 19.921 8.883 19.945 19.922c.023 11.063-8.883 19.922-19.922 19.922m-.211-28.266c1.71 0 3.047-1.36 3.047-3.047c0-1.71-1.336-3.07-3.047-3.07s-3.047 1.36-3.047 3.07a3.026 3.026 0 0 0 3.047 3.047m-3.914 21.235h9.562c.961 0 1.711-.68 1.711-1.641c0-.914-.75-1.64-1.71-1.64H30.53V25.68c0-1.266-.656-2.11-1.828-2.11h-4.43c-.937 0-1.687.727-1.687 1.64c0 .962.75 1.642 1.687 1.642h2.532v10.757h-2.93c-.938 0-1.688.727-1.688 1.641c0 .96.75 1.64 1.688 1.64"/>`,yt=lt("0 0 56 56")`<path fill="currentColor" d="M19.504 43.152h16.969c.797 0 1.289-.492 1.289-1.289v-3.75c0-5.672 8.25-9.328 8.25-19.453C46.012 7.996 38.793.871 27.988.871s-18 7.125-18 17.79c0 10.124 8.227 13.78 8.227 19.452v3.75c0 .797.515 1.29 1.289 1.29m2.203-4.992c0-6.89-8.18-10.57-8.18-19.476c0-8.579 5.79-14.274 14.461-14.274c8.672 0 14.485 5.695 14.485 14.274c0 8.906-8.203 12.586-8.203 19.476v1.453H21.707Zm-1.336 11.32h15.235c1.195 0 2.156-.984 2.156-2.203s-.961-2.203-2.157-2.203H20.371c-1.195 0-2.156.985-2.156 2.203c0 1.22.96 2.203 2.156 2.203m7.617 5.649c3.235 0 5.508-1.477 5.742-3.75H22.246c.211 2.273 2.484 3.75 5.742 3.75"/>`,bt=lt("0 0 56 56")`<path fill="currentColor" d="M28 51.906c13.055 0 23.906-10.828 23.906-23.906c0-13.055-10.875-23.906-23.93-23.906C14.899 4.094 4.095 14.945 4.095 28c0 13.078 10.828 23.906 23.906 23.906m0-3.984C16.937 47.922 8.1 39.062 8.1 28c0-11.04 8.813-19.922 19.876-19.922c11.039 0 19.921 8.883 19.945 19.922c.023 11.063-8.883 19.922-19.922 19.922m-.492-15.07c1.172 0 1.898-.727 1.898-1.664v-.282c0-1.312.75-2.133 2.39-3.21c2.274-1.5 3.891-2.884 3.891-5.673c0-3.914-3.468-6-7.453-6c-4.031 0-6.68 1.899-7.312 4.055c-.117.399-.211.774-.211 1.172c0 1.031.844 1.617 1.617 1.617c1.336 0 1.547-.726 2.297-1.594c.773-1.289 1.898-2.062 3.469-2.062c2.133 0 3.515 1.195 3.515 3c0 1.594-.984 2.367-3.023 3.773c-1.688 1.172-2.953 2.414-2.953 4.711V31c0 1.242.68 1.852 1.875 1.852m-.047 7.007c1.36 0 2.531-1.078 2.531-2.437c0-1.383-1.148-2.438-2.531-2.438s-2.531 1.078-2.531 2.438c0 1.336 1.171 2.437 2.53 2.437"/>`,$t=lt("0 0 56 56")`<path fill="currentColor" d="M28 51.906c13.055 0 23.906-10.828 23.906-23.906c0-13.055-10.875-23.906-23.93-23.906C14.899 4.094 4.095 14.945 4.095 28c0 13.078 10.828 23.906 23.906 23.906m0-3.984C16.937 47.922 8.1 39.062 8.1 28c0-11.04 8.813-19.922 19.876-19.922c11.039 0 19.921 8.883 19.945 19.922c.023 11.063-8.883 19.922-19.922 19.922m-8.156-9.727c.656 0 1.148-.28 1.664-.797l15.75-15.984c.492-.492.797-1.078.797-1.617c0-1.078-.891-1.945-1.97-1.945c-.562 0-1.1.28-1.616.796L18.742 34.61c-.539.516-.797 1.102-.797 1.641c0 1.055.774 1.945 1.899 1.945"/>`,_t=lt("0 0 56 56")`<path fill="currentColor" d="M28 51.906c13.055 0 23.906-10.828 23.906-23.906c0-13.055-10.875-23.906-23.93-23.906C14.899 4.094 4.095 14.945 4.095 28c0 13.078 10.828 23.906 23.906 23.906m0-3.984C16.937 47.922 8.1 39.062 8.1 28c0-11.04 8.813-19.922 19.876-19.922c11.039 0 19.921 8.883 19.945 19.922c.023 11.063-8.883 19.922-19.922 19.922m-8.016-9.984c.516 0 .985-.211 1.336-.586l6.657-6.68l6.656 6.68c.351.351.82.586 1.36.586c1.03 0 1.874-.868 1.874-1.899c0-.539-.21-.984-.562-1.336l-6.657-6.656l6.68-6.703c.375-.399.563-.797.563-1.313a1.865 1.865 0 0 0-1.875-1.875c-.493 0-.915.164-1.313.563l-6.727 6.703l-6.703-6.68c-.351-.375-.773-.539-1.289-.539c-1.054 0-1.875.797-1.875 1.852c0 .515.188.96.563 1.312l6.656 6.68l-6.656 6.68c-.375.328-.563.796-.563 1.312c0 1.031.82 1.898 1.875 1.898"/>`,wt=lt("0 0 56 56")`<path fill="currentColor" d="M10.023 43.023c-.796.797-.82 2.157 0 2.954c.82.796 2.157.796 2.977 0l15-15l15 15c.797.796 2.156.82 2.977 0c.796-.82.796-2.157 0-2.954L30.953 28l15.024-15c.796-.797.82-2.156 0-2.953c-.844-.82-2.18-.82-2.977 0l-15 15l-15-15c-.82-.82-2.18-.844-2.977 0c-.796.82-.796 2.156 0 2.953l15 15Z"/>`;const xt=(t,e,o)=>({r:t,g:e,b:o,toString(){return`${this.r} ${this.g} ${this.b}`}}),kt={darkgray:[xt(121,121,121),xt(109,109,109),xt(97,97,97),xt(85,85,85),xt(73,73,73),xt(61,61,61),xt(48,48,48),xt(36,36,36),xt(24,24,24),xt(12,12,12)],lightgray:[xt(243,243,243),xt(231,231,231),xt(219,219,219),xt(206,206,206),xt(194,194,194),xt(182,182,182),xt(170,170,170),xt(158,158,158),xt(146,146,146),xt(133,133,133)],teal:[xt(213,249,248),xt(170,243,241),xt(128,237,234),xt(85,231,226),xt(43,225,219),xt(0,219,212),xt(0,175,170),xt(0,131,127),xt(0,88,85),xt(0,44,42)],blue:[xt(213,240,255),xt(170,224,255),xt(128,209,255),xt(85,193,255),xt(43,178,255),xt(0,162,255),xt(0,130,204),xt(0,97,153),xt(0,65,102),xt(0,32,51)],green:[xt(221,243,221),xt(186,231,186),xt(152,219,152),xt(117,206,117),xt(82,194,82),xt(48,182,48),xt(38,146,38),xt(29,109,29),xt(19,73,19),xt(10,36,10)],red:[xt(251,221,221),xt(247,186,187),xt(243,152,154),xt(239,118,120),xt(235,83,86),xt(231,49,52),xt(185,39,42),xt(139,29,31),xt(92,20,21),xt(46,10,10)],purple:[xt(242,228,253),xt(229,201,250),xt(217,174,248),xt(204,146,245),xt(191,119,243),xt(178,92,240),xt(142,74,192),xt(107,55,144),xt(71,37,96),xt(36,18,48)],orange:[xt(255,235,213),xt(255,216,170),xt(255,196,128),xt(255,176,85),xt(255,157,43),xt(255,137,0),xt(204,110,0),xt(153,82,0),xt(102,55,0),xt(51,27,0)],yellow:[xt(251,252,216),xt(247,248,177),xt(243,245,138),xt(239,242,98),xt(235,238,59),xt(231,235,20),xt(185,188,16),xt(139,141,12),xt(92,94,8),xt(46,47,4)],pink:[xt(254,222,233),xt(253,189,211),xt(252,156,190),xt(251,123,168),xt(250,90,146),xt(249,57,124),xt(199,46,99),xt(149,34,74),xt(100,23,50),xt(50,11,25)]};class GlobalStyle extends GodownElement{}const Ct=((t,e)=>((t,e)=>((t,e)=>{if(!t||!e)return t;let o=0;for(;o<t.length&&e(t.slice(o,o+1));)o+=1;return t.slice(o)})(((t,e)=>{if(!t||!e)return t;let o=t.length;for(;o>0&&e(t.slice(o-1,o));)o-=1;return t.slice(0,o)})(t,e),e))(t,(t=>t===e)))(GlobalStyle.godownConfig.prefix,"-");function St(t,e=1){return function(t){return a(`--${t}`)}(Ct+"-".repeat(e)+t)}const Rt={clipBackground:St("clip-background",2),active:St("active",2),passive:St("passive",2),_colors:{},input:St("input",2),white:St("color-white",2),black:St("color-black",2),color:St("color",2),radius:St("radius",2),outlineWidth:St("outline-width",2),outlineColor:St("outline-color",2)};var Et,Tt;GlobalStyle.styles=[a(`:host{${Rt.black}:rgb(0 0 0);${Rt.white}:rgb(255 255 255);`+(Et=(t,e,o)=>{Rt._colors[t]||=[],Rt._colors[t].push(a(Rt.color+"-"+t+"-"+e));const r=`-${t}-${e}`;return`${Rt.color+r}:rgb(${o});`},Tt=kt,Object.entries(Tt).flatMap((([t,e])=>e.map(((e,o)=>Et(t,o,e)))))).join("")+w([[Rt.active,`var(${Rt._colors.blue[5]})`],[Rt.passive,`var(${Rt._colors.darkgray[5]})`],[Rt.clipBackground,`linear-gradient(to bottom, var(${Rt._colors.lightgray[0]}), var(${Rt._colors.darkgray[0]}))`],[Rt.outlineColor,`var(${Rt._colors.darkgray[4]})`],[Rt.outlineWidth,".075em"]])+"}"),l`button,dialog,input{border:0;outline:0}*{box-sizing:border-box;font-size:100%;font-style:normal;margin:0;padding:0}:host{border-style:none;box-sizing:border-box;outline-style:none}a{text-decoration:none}span{white-space:nowrap}svg{-webkit-user-select:none;user-select:none}:host([contents]){display:contents}[part=root]{height:100%;width:100%}:host([contents]) [part=root]{height:inherit;width:inherit}:where(:host([contents]) [part=root]){all:inherit;display:revert}`,l`:host{${Rt.radius}:0.2em;border-radius:var(${Rt.radius})}`];const Mt="alert",At=St(Mt),Pt=t=>[Rt._colors[t][5],Rt._colors[t][9]],zt={green:Pt("green"),blue:Pt("blue"),orange:Pt("orange"),red:Pt("red"),yellow:Pt("yellow"),purple:Pt("purple"),teal:Pt("teal"),pink:Pt("pink"),gray:[Rt._colors.lightgray[5],Rt._colors.darkgray[5]],white:[Rt._colors.lightgray[2],Rt._colors.darkgray[7]],black:[Rt._colors.darkgray[8],Rt._colors.lightgray[5]]},It={tip:{color:"teal",icon:yt},success:{color:"green",icon:ft},info:{color:"blue",icon:gt},warning:{color:"orange",icon:mt},danger:{color:"red",icon:_t},error:{color:"red",icon:_t},help:{color:"purple",icon:bt},deprecated:{color:"gray",icon:$t}};let Ot=class Alert extends GlobalStyle{constructor(){super(...arguments),this.__colorSC=new StyleController(this,(()=>{const t=It[this.call]?.color||this.color;if(t in zt){const[e,o]=zt[t];return _({":host":[[`${At}--color`,`var(${e})`],[`${At}--background`,`var(${o})`]]})}return null})),this.color="blue",this.autoclose=0,this.hideClose=!1,this.variant="dark"}render(){const t=this.call?It[this.call].icon():nt("icon");return o`<div part="root" ${rt(this.observedRecord)}> <div part="icon" class="start"> ${t} </div> <div part="content"> <strong part="title">${this.title||nt("title")}</strong> ${this.content||nt()} </div> ${this.hideClose||"blockquote"===this.variant?"":o`<div part="icon close" class="end" tabindex="0" @click="${this.close}"> ${wt()} </div>`} </div>`}close(){this.remove(),this.dispatchCustomEvent("close",void 0,{bubbles:!0})}firstUpdated(){this.autoclose&&this.timeouts.add(setTimeout((()=>this.close()),this.autoclose))}static alert(t,e){const o=new this;return Object.assign(o,e),t.appendChild(o),o}};h([Y()],Ot.prototype,"call",void 0),h([Y()],Ot.prototype,"color",void 0),h([Y({type:Number})],Ot.prototype,"autoclose",void 0),h([Y()],Ot.prototype,"title",void 0),h([Y()],Ot.prototype,"content",void 0),h([Y({type:Boolean})],Ot.prototype,"hideClose",void 0),h([Y()],Ot.prototype,"variant",void 0),Ot=h([k(Mt),x(l`:host{${At}--border-width:.075em;${At}--blockquote-width:.2em;${At}--blockquote-background:transparent;${At}--gap:.5em}:host,:where(:host([contents]) [part=root]){display:block}[part=root]{align-items:center;background:var(${At}--background);border-color:currentColor;border-radius:inherit;border-style:solid;border-width:var(${At}--border-width);color:var(${At}--color,currentColor);display:grid;grid-template-columns:auto 1fr auto;grid-template-rows:auto 1fr;padding:var(${At}--gap)}[variant=blockquote]{background:var(${At}--blockquote-background);border-radius:0;border-width:0;border-left-width:var(${At}--blockquote-width)}[part~=icon]{align-items:center;display:grid;height:2em}.start svg{margin-inline-end:var(${At}--gap)}.end svg{margin-inline-start:var(${At}--gap)}svg{height:1.25em;width:1.25em}[part=content]{grid-row:span 2/span 2}`)],Ot);var Bt=Ot;Bt.define();let Dt=class Avatar extends GlobalStyle{constructor(){super(...arguments),this.name="",this.round=!1}render(){return o`<div part="root" ${rt(v(this.observedRecord,"src"))}> ${this._renderAvatar()} </div>`}_renderAvatar(){return this.src?o`<img part="image" src="${this.src}" alt="${this.name}" @error=${this._handleError}/>`:this.name?o`<span part="name">${this.formatName()}</span>`:nt()}formatName(){return this.name}_handleError(){this.src=void 0}};h([Y()],Dt.prototype,"src",void 0),h([Y()],Dt.prototype,"name",void 0),h([Y({type:Boolean})],Dt.prototype,"round",void 0),Dt=h([k("avatar"),x(l`:host{background:var(${Rt.passive});height:2em;overflow:hidden;vertical-align:bottom;width:2em}:host,[part=root]{display:inline-flex}:host([contents]) [part=root]{display:inline-flex;height:inherit;width:inherit}:host([round]){border-radius:50%}[part=image]{height:100%;object-fit:cover;width:100%}[part=root]{align-items:center;border-radius:inherit;justify-content:center;position:relative}`)],Dt);var Nt=Dt;Nt.define();const Ut="badge",Lt=St(Ut);let jt=class Badge extends GlobalStyle{constructor(){super(...arguments),this.position="top-right",this.value=0,this.dot=!1,this.max=99}formatValue(t){return t>this.max?this.max+"+":t+""}render(){return o`<div part="root" ${rt(this.observedRecord)}> ${nt()} ${this.value||this.dot?o`<div part="badge">${this.dot?"":this.formatValue(this.value)}</div>`:""} </div>`}};h([Y()],jt.prototype,"position",void 0),h([Y({type:Number})],jt.prototype,"value",void 0),h([Y({type:Boolean})],jt.prototype,"dot",void 0),h([Y({type:Number})],jt.prototype,"max",void 0),jt=h([k(Ut),x(l`:host{${Lt}--background:var(${Rt.active});${Lt}--offset:0%;${Lt}--offset-x:var(${Lt}--offset);${Lt}--offset-y:var(${Lt}--offset)}:host,:host([contents]) [part=root]{display:inline-block}[part=root]{position:relative}[part=badge]{background:var(${Lt}--background);border-radius:calc(infinity*1px);font-size:75%;padding:0 .5em;position:absolute;transform:translate(-50%,-50%);-webkit-user-select:none;user-select:none}[part=badge]:empty{border-radius:50%;font-size:100%;height:.5em;padding:0;width:.5em}[position^=top] [part=badge]{top:calc(var(${Lt}--offset-y))}[position$=right] [part=badge]{left:calc(100% - var(${Lt}--offset-x))}[position^=bottom] [part=badge]{top:calc(100% - var(${Lt}--offset-y))}[position$=left] [part=badge]{left:calc(var(${Lt}--offset-x))}`)],jt);var Vt=jt;Vt.define();const Gt="breath",Ht=St(Gt),qt=/[\s,]+/;let Ft=class Breath extends GlobalStyle{render(){const t=this.getTexts();return o`<div part="root" ${rt(this.observedRecord)}> ${[t.map(this._renderText),at(this._computeStyle(t.length))]} </div>`}_renderText(t){return o`<span class="rel"> <span class="nocolor">${t}</span> <span class="colorful">${t}</span> </span>`}getTexts(){return Array.isArray(this.content)?this.content:(this.content||this.textContent).split(qt).filter((t=>t))}_computeStyle(t){const e=50/t,o=this.duration||1e3*(2*t+2);let r="";for(let e=1;e<=t;e++)r+=`.rel:nth-child(${e}) .colorful{animation-delay:${-o/t*(t-e+1)}ms;background:var(${Ht}--${e},var(${Ht}--${(e-1)%3+1}));}`;return`.colorful{animation-duration:${o}ms;}@keyframes colorfulN{0%,${3*e}%{opacity:0;}${e}%,${2*e}%{opacity:1;}}${r}`}};h([Y()],Ft.prototype,"content",void 0),h([Y({type:Number})],Ft.prototype,"duration",void 0),Ft=h([k(Gt),x(l`:host{${Ht}--deg:60deg;${Ht}--1-1:var(${Rt._colors.red[5]});${Ht}--1-2:var(${Rt._colors.yellow[5]});${Ht}--2-1:var(${Rt._colors.green[5]});${Ht}--2-2:var(${Rt._colors.purple[5]});${Ht}--3-1:var(${Rt._colors.blue[5]});${Ht}--3-2:var(${Rt._colors.pink[5]});${Ht}--1:linear-gradient(var(${Ht}--deg),var(${Ht}--1-1),var(${Ht}--1-2));${Ht}--2:linear-gradient(var(${Ht}--deg),var(${Ht}--2-1),var(${Ht}--2-2));${Ht}--3:linear-gradient(var(${Ht}--deg),var(${Ht}--3-1),var(${Ht}--3-2))}`,l`:host{align-items:center;direction:ltr;font-size:2em;margin:auto;width:-moz-fit-content;width:fit-content}:host,:host([contents]) [part=root]{display:flex}[part=root]{display:contents}::selection{background:none}.rel{font-size:inherit;font-weight:800;letter-spacing:-.05em;position:relative}`,l`.colorful,.nocolor{animation-iteration-count:infinite;-webkit-background-clip:text!important;background-clip:text!important;box-sizing:border-box;color:transparent;display:inline-block;padding:0 .05em}.colorful{animation-name:colorfulN;opacity:0}.nocolor{background:var(${Rt.clipBackground});position:absolute;top:0}`)],Ft);var Wt=Ft;Wt.define();const Yt="button",Xt=St(Yt),Zt=Rt.white,Kt=Rt.black,Qt={black:[Zt,Rt._colors.darkgray[7],Rt._colors.darkgray[5]],gray:[Zt,Rt._colors.darkgray[1],Rt._colors.lightgray[8]],white:[Kt,Rt._colors.lightgray[3],Rt._colors.lightgray[0]],blue:[Zt,Rt._colors.blue[6],Rt._colors.blue[4]],green:[Zt,Rt._colors.green[6],Rt._colors.green[4]],red:[Zt,Rt._colors.red[6],Rt._colors.red[4]],orange:[Zt,Rt._colors.orange[6],Rt._colors.orange[4]],pink:[Zt,Rt._colors.pink[6],Rt._colors.pink[4]],purple:[Zt,Rt._colors.purple[6],Rt._colors.purple[4]],yellow:[Kt,Rt._colors.yellow[6],Rt._colors.yellow[4]],teal:[Zt,Rt._colors.teal[6],Rt._colors.teal[4]]};let Jt=class Button extends GlobalStyle{constructor(){super(...arguments),this.__colorSC=new StyleController(this,(()=>{const t=this.nextColor();if(t in Qt){const[e,o,r]=Qt[t];return _({":host":[[`${Xt}--color`,`var(${e})`],[`${Xt}--background`,`var(${o})`],[`${Xt}--gradients`,`var(${r})`]]})}return null})),this.plain=!1,this.disabled=!1,this.ghost=!1,this.active=!1,this.round=!1,this.color="black"}render(){return o`<div part="root" ${rt(this.observedRecord)}> ${this.content||nt()} <span part="modal-root"></span> </div>`}focus(){this.disabled||(this.active=!0,super.focus())}blur(){this.active=!1,super.blur()}connectedCallback(){super.connectedCallback(),this.events.add(this,"click",this._handelClick,!0)}_handelClick(t){if(this.disabled)return t.stopPropagation(),void t.preventDefault();this.plain||this._handleModal(t)}_handleModal(t){const e=document.createElement("i"),{width:o,height:r}=this.getBoundingClientRect(),{x:s,y:a}=this._root.getBoundingClientRect(),l=2*Math.sqrt(r**2+o**2)+"px";e.style.height=l,e.style.width=l,e.style.left=t.x-s+"px",e.style.top=t.y-a+"px",e.style.animationName="kf",this._modalRoot.appendChild(e),e.addEventListener("animationend",(()=>e.remove()),{once:!0})}nextColor(){return this.color}};h([Y({type:Boolean,reflect:!0})],Jt.prototype,"plain",void 0),h([Y({type:Boolean,reflect:!0})],Jt.prototype,"disabled",void 0),h([Y({type:Boolean,reflect:!0})],Jt.prototype,"ghost",void 0),h([Y({type:Boolean,reflect:!0})],Jt.prototype,"active",void 0),h([Y({type:Boolean,reflect:!0})],Jt.prototype,"round",void 0),h([Y({reflect:!0})],Jt.prototype,"color",void 0),h([Y()],Jt.prototype,"content",void 0),h([tt("modal-root")],Jt.prototype,"_modalRoot",void 0),h([tt("root")],Jt.prototype,"_root",void 0),Jt=h([k(Yt),x(l`:host(:not([disabled]):active){transform:scale(var(${Xt}--focus-scale))}:host([round]){border-radius:calc(infinity*1px)}:host([disabled]){cursor:not-allowed;filter:brightness(.85)}:host([ghost]){${Xt}--modal-background:var(${Xt}--ghost-color);background:transparent;box-shadow:inset 0 0 0 var(${Xt}--ghost-width) var(${Xt}--ghost-color);color:var(${Xt}--ghost-color)}:host([plain]){${Xt}--gradients:unset;${Xt}--focus-scale:unset}`,l`:host{${Xt}--padding-x:.8em;${Xt}--padding-y:calc(var(${Xt}--padding-x)/4);${Xt}--padding:var(${Xt}--padding-y) var(${Xt}--padding-x);${Xt}--modal-animation-duration:1s;${Xt}--ghost-width:.08em;${Xt}--focus-scale:.97;${Xt}--deg:45deg;${Xt}--ghost-color:var(${Xt}--background);background:linear-gradient(var(${Xt}--deg),var(${Xt}--background),var(${Xt}--gradients,var(${Xt}--background)));color:var(${Xt}--color,inherit);cursor:pointer;display:block;overflow:hidden;padding:var(${Xt}--padding);text-align:center;width:-moz-fit-content;width:fit-content}[part=root]:not([contents]){height:100%;width:100%}[part=root]{border-radius:inherit;position:relative;transition:none;transition-duration:inherit;-webkit-user-select:none;user-select:none}i{animation-duration:var(${Xt}--modal-animation-duration);background:var(${Xt}--modal-background,currentColor);border-radius:50%;height:100%;inset:0;opacity:0;pointer-events:none;position:absolute;transform-origin:0 0;visibility:visible;width:100%}@keyframes kf{0%{opacity:var(${Xt}--modal-opacity,.1);transform:scale(0) translate(-50%,-50%)}80%{transform:scale(1) translate(-50%,-50%)}to{opacity:0}}`)],Jt);var te=Jt;te.define();const ee="card",oe=St(ee);let ie=class Card extends GlobalStyle{constructor(){super(...arguments),this.footer=!1,this.header=!1}render(){return o`<div part="root" ${rt(this.observedRecord)}> ${[this.header?nt("header"):"",nt(),this.footer?nt("footer"):""]} </div>`}};h([Y({type:Boolean})],ie.prototype,"footer",void 0),h([Y({type:Boolean})],ie.prototype,"header",void 0),ie=h([k(ee),x(l`:host{${oe}--border-width:.075em;${oe}--border-color:var(${Rt.passive});${oe}--padding:.75em;display:block;flex-shrink:0}slot{display:block;padding:var(${oe}--padding)}[part=root]{border-color:var(${oe}--border-color);border-radius:inherit;border-style:solid;border-width:var(${oe}--border-width)}[name=footer]{padding-top:0}[name=header]{padding-bottom:0}`)],ie);var re=ie;re.define();var se=lt("0 0 56 56")`<path fill="currentColor" d="M35.805 47.723c.398.398.914.633 1.523.633c1.219 0 2.133-.915 2.133-2.133c0-.586-.234-1.125-.61-1.524L21.79 28.012l17.063-16.688c.375-.398.609-.96.609-1.523c0-1.219-.914-2.157-2.133-2.157c-.61 0-1.125.235-1.523.633L17.242 26.441c-.445.375-.703.961-.703 1.57c0 .587.258 1.126.703 1.571Z"/>`,ne=lt("0 0 56 56")`<path fill="currentColor" d="M18.695 48.367c.586 0 1.102-.234 1.524-.633L38.78 29.57c.446-.445.68-.984.68-1.57c0-.61-.234-1.172-.68-1.57L20.22 8.289a2.07 2.07 0 0 0-1.524-.656a2.12 2.12 0 0 0-2.156 2.156c0 .563.258 1.125.633 1.524L34.21 28L17.17 44.688c-.374.398-.632.937-.632 1.523c0 1.219.938 2.156 2.156 2.156"/>`;function ae(t){return t.getBoundingClientRect().width}let le=class Carousel extends GlobalStyle{constructor(){super(...arguments),this.index=0,this.autoChange=0}render(){return o`<div part="root" ${rt(this.observedRecord)}> <i part="prev" @click="${this.prev}"> ${se()} </i> <div part="move-root">${nt()}</div> <i part="next" @click="${this.next}"> ${ne()} </i> </div>`}connectedCallback(){super.connectedCallback(),this.children.length&&(this.__cloneFirst?.remove(),this.__cloneLast?.remove(),this.__cloneLast=this.firstElementChild.cloneNode(!0),this.__cloneFirst=this.lastElementChild.cloneNode(!0),this.appendChild(this.__cloneLast),this.insertBefore(this.__cloneFirst,this.firstElementChild)),this.observers.add(this,ResizeObserver,(()=>{this._offset=this._computeOffset(),this._doTranslateX(`${this._offset}px`,!0)}))}async firstUpdated(){await this.updateComplete,this.show(this.index,!0)}attributeChangedCallback(t,e,o){super.attributeChangedCallback(t,e,o),"index"===t&&this.isConnected&&this.show(this.index)}show(t,e){t=this.normalizeIndex(t),this.index=t,this._offset=this._computeOffset(),this._doTranslateX(`${this._offset}px`,e),this.dispatchCustomEvent("change",t),this.timeouts.remove(this.intervalID),this.autoChange>0&&(this.intervalID=this.timeouts.add(setInterval((()=>{this.next()}),this.autoChange)))}next(){this.index===this.childElementCount-3?(this._doTranslateX("0",!0),this.show(0)):this.show(this.index+1)}prev(){0===this.index?(this._doTranslateX(`-${this.childElementCount-1}00%`,!0),this.show(this.children.length-3)):this.show(this.index-1)}_doTranslateX(t,e){this._moveRoot.style.transform=`translateX(${t})`,this._moveRoot.style.transition=e?"none":""}_computeOffset(){let t=0;for(let e=0;e<=this.index;e++)t-=ae(this.children[e]);return t+=(ae(this)-ae(this.children[this.index+1]))/2,t}normalizeIndex(t){return t<0?0:t>this.children.length-3?this.children.length-3:t}};h([Y({type:Number})],le.prototype,"index",void 0),h([Y({type:Number})],le.prototype,"autoChange",void 0),h([tt("move-root")],le.prototype,"_moveRoot",void 0),le=h([k("carousel"),x(l`:host{display:block;transition:.3s}[part=root]{direction:ltr;overflow:hidden}[part=move-root],[part=root]{display:flex;height:100%;position:relative;transition:inherit;width:100%}[part=next],[part=prev]{align-items:center;display:flex;height:100%;justify-content:center;position:absolute;-webkit-user-select:none;user-select:none;width:1.5em;z-index:1}[part=prev]{left:0}[part=next]{right:0}slot::slotted(*){flex-shrink:0!important}`)],le);var he=le;he.define();var ce=lt("0 0 56 56")`<path fill="currentColor" d="M28 39.46a2.1 2.1 0 0 0 1.57-.679l18.164-18.586a2.1 2.1 0 0 0 .633-1.5a2.12 2.12 0 0 0-2.156-2.156a2.27 2.27 0 0 0-1.523.61L28 34.21L11.313 17.148a2.23 2.23 0 0 0-1.524-.609a2.12 2.12 0 0 0-2.156 2.156c0 .586.234 1.102.633 1.524L26.43 38.78c.445.446.96.68 1.57.68"/>`;class SuperOpenable extends GlobalStyle{constructor(){super(...arguments),this.open=!1}toggle(t=!this.open){this.open=t}close(){this.open=!1}show(){this.open=!0}updated(t){void 0!==t.get("open")&&this.dispatchCustomEvent("change",this.open)}}h([Y({type:Boolean,reflect:!0})],SuperOpenable.prototype,"open",void 0);const de="details",pe=St(de);let ue=class Details extends SuperOpenable{constructor(){super(...arguments),this.float=!1,this.fill=!1,this.summary=""}render(){return o`<dl part="root" ${rt(this.observedRecord)}> <dt part="title" @click="${()=>this.toggle()}"> <span part="summary">${this.summary||nt("summary")}</span> <span part="icon">${ce()}</span> </dt> <dd part="details" @click=${this.fill?()=>this.toggle():null}> <div style="min-height: 0;">${nt()}</div> </dd> </dl>`}};h([Y({type:Boolean})],ue.prototype,"float",void 0),h([Y({type:Boolean})],ue.prototype,"fill",void 0),h([Y()],ue.prototype,"summary",void 0),ue=h([k(de),x(l`:host{${pe}--icon-deg-open:0deg;${pe}--icon-deg-close:90deg;display:block;padding:.2em;transition:.3s}[part=root]{position:relative}[part=title]{align-items:center;direction:ltr;grid-template-columns:auto auto;height:100%;justify-content:space-between}[part=details],[part=title]{display:grid;overflow:hidden;transition:inherit}[part=details]{grid-template-rows:0fr}:host([open]) [part=details]{grid-template-rows:1fr}[float] [part=details]{position:absolute;top:100%;width:100%}[part]{transition:inherit;transition-property:transform,grid-template-rows}[part=icon]{-webkit-backface-visibility:hidden;backface-visibility:hidden;display:flex;transform:rotate(var(${pe}--icon-deg-close))}:host([open]) [part=icon]{transform:rotate(var(${pe}--icon-deg-open))}`)],ue);var ve=ue;ve.define();const fe="dialog",me=St(fe),ge=/[\s,]+/;let ye=class Dialog extends SuperOpenable{constructor(){super(...arguments),this.key="Escape",this.__modalInvoke=!1}set modal(t){this.contents=t}get modal(){return this.contents}render(){return o`<dialog part="root" ${rt(this.observedRecord)}> ${nt()} </dialog>`}showModal(){this.modal=!0,this.__modalInvoke=!0,this.show()}attributeChangedCallback(t,e,o){super.attributeChangedCallback(t,e,o),"open"===t&&(this.open?this.modal?this._dialog.showModal():this._dialog.show():this._dialog.close())}updated(t){t.has("open")&&(this.open?(this.__submitEvent=this.events.add(this,"submit",this._handelSubmit),this.key&&(this.__keydownEvent=this.events.add(document,"keydown",this._handleKeydown.bind(this)))):(this.events.remove(this,"submit",this.__submitEvent),this.events.remove(document,"keydown",this.__keydownEvent)))}_handleKeydown(t){const e=this.key.split(ge);(e.includes(t.key)||e.includes(t.code))&&(t.preventDefault(),this.close())}_handelSubmit(t){"dialog"===t.target.method&&(t.preventDefault(),this.close())}close(){this.__modalInvoke&&(this.modal=!1,this.__modalInvoke=!1),this.open=!1}};h([Y({type:Boolean,reflect:!0})],ye.prototype,"modal",null),h([Y()],ye.prototype,"key",void 0),h([K("dialog")],ye.prototype,"_dialog",void 0),ye=h([k(fe),x(l`:host{${me}--background-modal:#000;${me}--opacity-modal:0.2;background:none;display:block;left:50%;margin:auto;position:fixed;top:50%;transform:translate(-50%,-50%);width:-moz-fit-content;width:fit-content}:host(:not([open])){visibility:hidden}:host([contents]) dialog{position:fixed}dialog{background:inherit;position:relative}::backdrop{background:var(${me}--background-modal);opacity:var(${me}--opacity-modal)}`)],ye);var be=ye;be.define();let $e=class Divider extends GlobalStyle{constructor(){super(...arguments),this.vertical=!1}render(){return o`<div part="root" ${rt(this.observedRecord)}></div>`}};h([Y({type:Boolean,reflect:!0})],$e.prototype,"vertical",void 0),$e=h([k("divider"),x(l`:host{background:currentColor;color:var(${Rt.passive});display:block;height:.05em;width:100%}:host([vertical]){height:100%;width:.05em}:host([contents]) [part=root]{background:currentColor;display:block;height:.05em;margin:auto;width:100%}[part=root]{display:contents}`)],$e);var _e=$e;_e.define();let we=class Dragbox extends GlobalStyle{constructor(){super(...arguments),this.__drag=!1}get _offsetParent(){return this.offsetParent??document.body}render(){return o`<div part="root" ${rt(this.observedRecord)} @mousedown="${this._handleDragStart}"> ${nt()} </div>`}firstUpdated(){this.reset()}_handleDragStart(t){this.__x=t.x,this.__y=t.y;const e=this._offsetParent.getBoundingClientRect(),o=this.getBoundingClientRect();this.__t=o.top-e.top,this.__l=o.left-e.left,this.__drag=!0,this.__handleMouseMove=this.events.add(document,"mousemove",this._handleDrag.bind(this)),this.__handleMouseLeave=this.events.add(document,"mouseleave",this._handleDragEnd.bind(this)),this.__handleMouseUp=this.events.add(document,"mouseup",this._handleDragEnd.bind(this))}_handleDragEnd(){this.__drag=!1,this.events.remove(document,"mousemove",this.__handleMouseMove),this.events.remove(document,"mouseleave",this.__handleMouseLeave),this.events.remove(document,"mouseup",this.__handleMouseUp)}_handleDrag(t){if(!this.__drag)return;const{__x:e,__y:o,__l:r,__t:s,style:a}=this,{height:l,width:h}=this._offsetParent.getBoundingClientRect(),{width:c,height:d}=this.getBoundingClientRect(),p=t.x-(e-r),u=t.y-(o-s);a.left=p<0?"0":p<h-c?`${p}px`:h-c+"px",a.top=u<0?"0":u<l-d?`${u}px`:l-d+"px"}reset(){const{x:t,y:e,style:o,offsetWidth:r,offsetHeight:s,offsetLeft:a,offsetTop:l}=this,{height:h,width:c}=this._offsetParent.getBoundingClientRect();o.left=t||"0",o.top=e||"0",a>c-r&&(o.left=c-r+"px"),l>h-s&&(o.top=h-s+"px")}};h([Y()],we.prototype,"x",void 0),h([Y()],we.prototype,"y",void 0),we=h([k("dragbox"),x(l`:host{display:block;position:absolute}:host(:active){-webkit-user-select:none;user-select:none}`)],we);var xe=we;xe.define();let ke=class Flex extends GlobalStyle{constructor(){super(...arguments),this.vertical=!1}render(){return o`<div part="root" ${rt(this.observedRecord)}> ${[nt(),at(_({":host":{gap:this.gap,"flex-flow":this.flexFlow,"flex-direction":this.vertical&&"column","align-items":this.items,"justify-content":this.content}}))]} </div>`}};h([Y({attribute:"flex-flow"})],ke.prototype,"flexFlow",void 0),h([Y()],ke.prototype,"gap",void 0),h([Y()],ke.prototype,"content",void 0),h([Y()],ke.prototype,"items",void 0),h([Y({type:Boolean})],ke.prototype,"vertical",void 0),ke=h([k("flex"),x(l`:host,:host([contents]) [part=root]{display:flex}[part=root]{display:contents}`)],ke);var Ce,Se=ke;Se.define();let Re=Ce=class Form extends GlobalStyle{constructor(){super(...arguments),this.name="",this.nameValue=this.namevalue}get value(){return Ce.buildValue(this._slot.assignedElements())}render(){return nt()}reset(){this.deepQuerySelectorAll("*").forEach((t=>{t.tagName!==this.tagName&&t.reset&&t.reset()}))}namevalue(){return[this.name,this.value]}static buildValue(t){const e={};for(const o of t)if("FORM"===o.tagName)Object.assign(e,Object.fromEntries(new FormData(o).entries()));else if(o.namevalue){const[t,r]=o.namevalue();t&&(e[t]=r)}else if(o.name&&void 0!==o.value)e[o.name]=o.value;else if(o.shadowRoot)for(const t of o.shadowRoot.querySelectorAll("slot"))Object.assign(e,this.buildValue(t.assignedElements()));return e}};h([Y()],Re.prototype,"name",void 0),Re=Ce=h([k("form"),x(l`:host{display:block}`)],Re);var Ee=Re;Ee.define();const Te=t=>{return e=t,Number.isNaN(+e)?t:`repeat(${t},1fr)`;var e};let Me=class Grid extends GlobalStyle{render(){return o`<div part="root" ${rt(this.observedRecord)}> ${[nt(),at(_({":host":{gap:this.gap,"grid-template-columns":Te(this.columns),"grid-template-rows":Te(this.rows),"place-content":this.content,"place-items":this.items}}))]} </div>`}};h([Y()],Me.prototype,"gap",void 0),h([Y()],Me.prototype,"columns",void 0),h([Y()],Me.prototype,"rows",void 0),h([Y()],Me.prototype,"content",void 0),h([Y()],Me.prototype,"items",void 0),Me=h([k("grid"),x(l`:host,:host([contents]) [part=root]{display:grid}[part=root]{display:contents}`)],Me);var Ae=Me;Ae.define();let Pe=class Heading extends GlobalStyle{constructor(){super(...arguments),this.as="h1",this.anchor="#",this.side="left"}render(){return o`<a part="root" href="${this.id?"#"+this.id:e}" ${rt(this.observedRecord)}> ${this.wrapHeading(nt(),this.id?o`<i part="anchor">${this.anchor}</i>`:"")} </a>`}wrapHeading(...t){switch(this.as){case"h2":return o`<h2>${t}</h2>`;case"h3":return o`<h3>${t}</h3>`;case"h4":return o`<h4>${t}</h4>`;case"h5":return o`<h5>${t}</h5>`;case"h6":return o`<h6>${t}</h6>`;default:return o`<h1>${t}</h1>`}}};h([Y()],Pe.prototype,"as",void 0),h([Y()],Pe.prototype,"anchor",void 0),h([Y()],Pe.prototype,"side",void 0),Pe=h([k("heading"),x(l`:host{display:block;text-align:start}[part=anchor]{min-width:1.25em;position:absolute;right:100%;text-align:center}[side=left] [part=anchor]{right:100%}[side=right] [part=anchor]{left:100%}a{color:inherit}h1,h2,h3,h4,h5,h6{direction:ltr;font-size:revert;position:relative;width:-moz-fit-content;width:fit-content}`)],Pe);var ze=Pe;ze.define();var Ie=lt("0 0 56 56")`<path fill="currentColor" d="M43.95 47.323c.304.305.732.468 1.119.468c.814 0 1.567-.733 1.567-1.568c0-.407-.163-.814-.468-1.12L12.112 11.069a1.57 1.57 0 0 0-1.12-.448c-.814 0-1.567.733-1.567 1.547c0 .428.143.835.448 1.12Zm1.913-5.761C52.255 37.43 56 32.056 56 29.674c0-4.132-11.297-17.303-27.99-17.303c-3.46 0-6.697.59-9.669 1.567l5.313 5.293a11 11 0 0 1 4.356-.896c6.31 0 11.38 4.988 11.38 11.339c0 1.547-.326 3.033-.958 4.336ZM28.01 46.977c3.766 0 7.267-.672 10.402-1.771l-5.394-5.395a10.8 10.8 0 0 1-5.008 1.201c-6.35 0-11.379-5.15-11.4-11.338c0-1.832.428-3.562 1.202-5.09l-7.084-7.124C4.01 21.592 0 27.231 0 29.674c0 4.112 11.501 17.303 28.01 17.303m6.473-17.73a6.446 6.446 0 0 0-6.473-6.454c-.264 0-.53.02-.773.041l7.206 7.206c.02-.244.04-.529.04-.794m-12.966-.041c0 3.582 2.951 6.473 6.514 6.473c.285 0 .55-.02.834-.04l-7.308-7.309c-.02.285-.04.59-.04.876"/>`;const Oe=l`.input-field{align-items:center;border-radius:inherit;display:flex;height:inherit;position:relative}.input-field [part=input]{background:none;color:inherit;height:100%;padding:var(${Rt.input}-space);width:100%}.input-field [part=icon]{align-items:center;color:var(${Rt.input}-icon-color);display:flex;justify-content:center}.input-field [part=prefix],.input-field [part=suffix]{display:flex;height:100%}.input-field [part=suffix] [part=icon]{padding-inline-end:var(${Rt.input}-space)}.input-field [part=prefix] [part=icon]{padding-inline-start:var(${Rt.input}-space)}`,Be=l`:host{${Rt.input}-width:10em;${Rt.input}-height:1.6em;${Rt.input}-space:0.2em;${Rt.input}-control:currentColor;${Rt.input}-icon-color:var(${Rt._colors.darkgray[4]})}:host([disabled]){cursor:not-allowed;filter:brightness(.85)}:host(:focus-within){${Rt.input}-icon-color:currentColor}input:disabled{cursor:inherit}input::-ms-clear,input::-ms-reveal{display:none}`;let De=class SuperInput extends GlobalStyle{constructor(){super(...arguments),this.autofocus=!1,this.outlineType="border",this.disabled=!1,this.compositing=!1,this.makeId=Math.random().toString(36).slice(1),this.nameValue=this.namevalue}get observedRecord(){return v(super.observedRecord,"default","value")}set defaultValue(t){this.default=t}get defaultValue(){return this.default}namevalue(){return[this.name,this.value]}reset(){this.value=this.default,this._input.value=this.default}_handleInput(t){t.stopPropagation(),this.compositing||(this.value=t.target.value?.trim(),this.dispatchCustomEvent("input",this.value,{bubbles:!0}))}_handleChange(t){this.dispatchCustomEvent("change",this.value)}connectedCallback(){super.connectedCallback(),this._connectedInit()}_connectedInit(){this.default??=this.value||"",this.value??=this.default}_compositionInit(){this._input&&(this.events.add(this._input,"compositionstart",(()=>this.compositing=!0)),this.events.add(this._input,"compositionend",(t=>{this.compositing=!1,this._handleInput(t)})))}_changeInputType(t){this._input&&(this._input.type=t)}focus(t){this._input?.focus(t)}firstUpdated(){this._compositionInit()}_renderPrefix(){return o`<label for=${this.makeId} part="prefix"> ${nt("prefix")} </label>`}_renderSuffix(){return o`<label for=${this.makeId} part="suffix"> ${nt("suffix")} </label>`}};h([Y()],De.prototype,"autocomplete",void 0),h([Y({attribute:"outline-type"})],De.prototype,"outlineType",void 0),h([Y({type:Boolean,reflect:!0})],De.prototype,"disabled",void 0),h([Y({reflect:!0})],De.prototype,"type",void 0),h([Y({reflect:!0})],De.prototype,"placeholder",void 0),h([Y({reflect:!0})],De.prototype,"name",void 0),h([Y()],De.prototype,"value",void 0),h([Y()],De.prototype,"default",void 0),h([tt("input")],De.prototype,"_input",void 0),De=h([x(Oe,Be)],De);class OutlineBuilder{constructor({selector:t=":host",width:e=Rt.outlineWidth,color:o=Rt.outlineColor,outlineType:r}={}){const s=((t,e)=>{const o=`outline-color:var(${e});border-color:var(${e});`,r=`${o}outline-width:var(${t});outline-style:solid;`;return{outline:r,"outline-inset":`${r}outline-offset:calc(-1 * var(${t}));`,"box-shadow":`box-shadow:0 0 0 var(${t}) var(${e});`,"box-shadow-inset":`box-shadow:inset 0 0 0 var(${t}) var(${e});`,border:`${o}border-width:var(${t});border-style:solid;`}})(e,o);if(r&&r in s){const e=s[r];this.css=`${t}{${e}}`}else this.css=""}get styleSheet(){return a(this.css).styleSheet}}let Ne=class Input extends De{constructor(){super(...arguments),this.type="text",this.variant="default",this.__outlineSC=new StyleController(this,(()=>new OutlineBuilder({outlineType:this.outlineType}).css+("outline"===this.variant?`:host{${Rt.outlineColor}: var(${Rt.active})}`:"")))}render(){return o`<div part="root" ${rt(this.observedRecord)} class="input-field"> ${[this._renderPrefix(),o`<input part="input" type="${this.type}" .value="${this.value}" ?autofocus="${this.autofocus}" ?disabled="${this.disabled}" autocapitalize="${this.autocapitalize||e}" autocomplete="${this.autocomplete||e}" placeholder="${this.placeholder||e}" id="${this.makeId}" @input="${this._handleInput}" @change="${this._handleChange}"/>`,this._renderSuffix()]} </div>`}_renderSuffix(){const t="password";return o`<label for=${this.makeId} part="suffix"> ${this.type===t?o`<i part="icon" @mousedown="${()=>this._changeInputType("text")}" @mouseup="${()=>this._changeInputType(t)}" @mouseleave="${()=>this._changeInputType(t)}"> ${Ie()} </i>`:nt("suffix")} </label>`}};h([Y()],Ne.prototype,"variant",void 0),h([tt("input")],Ne.prototype,"_input",void 0),Ne=h([k("input"),x(l`:host{display:block;height:var(${Rt.input}-height);width:var(${Rt.input}-width)}:host(:focus-within){${Rt.outlineColor}:var(${Rt.active})}`)],Ne);var Ue=Ne;Ue.define();let Le=class Layout extends GlobalStyle{constructor(){super(...arguments),this.sticky=!1}render(){return o`<div part="root" ${rt(this.observedRecord)}> <header part="header">${nt("header")}</header> <main part="main">${nt()}</main> <footer part="footer">${nt("footer")}</footer> </div>`}};h([Y({type:Boolean})],Le.prototype,"sticky",void 0),Le=h([k("layout"),x(l`:host{flex-direction:column;grid-template-rows:auto 1fr auto;min-height:100%;width:100%}:host,:host([contents]) [part=root]{display:flex}[part=root]{display:contents}[part=main]{flex:1;width:100%}[part=footer],[part=header]{flex-shrink:0;width:100%}[sticky] header{position:sticky;top:0}`)],Le);var je=Le;je.define();let Ve=class SuperAnchor extends GlobalStyle{constructor(){super(...arguments),this.target="_self"}get pathname(){return new URL(this.href,location.href).pathname}render(){return o`<a part="root" ${rt(this.observedRecord)} href="${this.href||e}" target="${this.target}" @click=${this._handleClick}> ${nt()} </a>`}};var Ge;h([Y()],Ve.prototype,"href",void 0),h([Y()],Ve.prototype,"target",void 0),Ve=h([x(l`:host{color:currentColor;cursor:default;display:inline-block;text-decoration:none}:host([href]){cursor:pointer}[part=root]{color:inherit;display:inline-block;text-decoration:inherit}`)],Ve);let He=Ge=class Router extends GlobalStyle{constructor(){super(...arguments),this.__fieldRouteTree=new RouteTree,this.__slottedRouteTree=new RouteTree,this.__cacheRecord=new Map,this.component=null,this.pathname=location.pathname,this.default=nt(),this.type="united",this.cache=!1,this.handlePopstate=this.events.add(window,"popstate",(()=>{this.pathname=location.pathname}))}get params(){return this.path?RouteTree.parseParams(this.pathname,this.path):{}}set routes(t){this.__routes=t,this.collectFieldRoutes(t)}get routes(){return this.__routes}clear(){this.__cacheRecord.clear()}render(){let t;if(this.cache&&(t=this.__cacheRecord.get(this.pathname))&&(this.component=t.component,this.path=t.path,this.pathname=t.pathname),!t)switch(this.type){case"field":this.component=this.fieldComponent();break;case"slotted":this.component=this.slottedComponent();break;default:this.component=this.fieldComponent()??this.slottedComponent()}return this.component??this.default}connectedCallback(){super.connectedCallback(),Ge.routerInstances.add(this),"field"!==this.type&&(this.observers.add(this,MutationObserver,this.collectSlottedRoutes,{attributes:!0,attributeFilter:["slot"],subtree:!0}),this.collectSlottedRoutes())}disconnectedCallback(){super.disconnectedCallback(),Ge.routerInstances.delete(this)}useRouter(){return{pathname:this.pathname,params:this.params,path:this.path,component:this.component}}updated(t){if(t.has("pathname")||t.has("path")){const t=this.useRouter();!this.__cacheRecord.has(this.pathname)&&this.path&&this.__cacheRecord.set(this.pathname,t),this.dispatchCustomEvent("change",t)}}fieldComponent(t){if(t||=this.__fieldRouteTree.search(this.pathname)?.pattern,this.path=t,!t)return null;const e=this.routes.find((e=>e.path===t));return e?"render"in e?e.render?.(v(this.useRouter(),"component"))||null:e.component:null}slottedComponent(t){const e=this._slottedNames;return t||=this.__slottedRouteTree.search(this.pathname)?.pattern,this.path=t,t?(this.path=e.find((e=>e===t)),this.path?nt(this.path):null):null}collectSlottedRoutes(){this.__slottedRouteTree=new RouteTree,this.clear(),this._slottedNames.forEach((t=>{this.__slottedRouteTree.insert(t)}))}collectFieldRoutes(t){this.__fieldRouteTree=new RouteTree,this.clear(),t.forEach((({path:t})=>{this.__fieldRouteTree.insert(t)}))}static updateAll(){this.routerInstances.forEach((t=>{t.handlePopstate()}))}search(t){return this.__fieldRouteTree.search(t)||this.__slottedRouteTree.search(t)}};He.routerInstances=new Set,h([X()],He.prototype,"component",void 0),h([X()],He.prototype,"path",void 0),h([Y()],He.prototype,"pathname",void 0),h([X()],He.prototype,"default",void 0),h([Y()],He.prototype,"type",void 0),h([Y({type:Boolean})],He.prototype,"cache",void 0),h([X()],He.prototype,"routes",null),He=Ge=h([k("router"),x(l`:host{display:contents}`)],He);var qe=He;const Fe="auto";let We=class Link extends Ve{constructor(){super(...arguments),this.type=Fe,this.suppress=!1,this.replace=!1,this.state={},this.handleState=()=>{switch(this.type){case Fe:case"push":if(!this.replace){history.pushState(this.state,"",this.href);break}case"replace":history.replaceState(this.state,"",this.href)}}}_handleClick(t){const{state:e,type:o,href:r,pathname:s,suppress:a}=this;if(this.dispatchCustomEvent("navigate",{...this.observedRecord,pathname:s,state:e}),r.startsWith("#")||"normal"===o)return;this.handleState();const l=[...qe.routerInstances];a||o===Fe&&!l.some((t=>t.search(location.pathname)))||(t.preventDefault(),qe.routerInstances.forEach((t=>{t.handlePopstate()})))}};h([Y()],We.prototype,"type",void 0),h([Y({type:Boolean})],We.prototype,"suppress",void 0),h([Y({type:Boolean})],We.prototype,"replace",void 0),We=h([k("link")],We);var Ye=We;Ye.define();let Xe=class Progress extends GlobalStyle{constructor(){super(...arguments),this.max=1,this.min=0}render(){let t,e=20;if(!c(this.value)){const o=new Ranger(this.min,this.max);e=100*o.restrict(this.value/o.diff),t="static"}return o`<div part="root" ${rt(this.observedRecord)} class="${t}"> <i part="value" style="width:${e}%;"></i> </div>`}};h([Y({type:Number})],Xe.prototype,"max",void 0),h([Y({type:Number})],Xe.prototype,"min",void 0),h([Y({type:Number})],Xe.prototype,"value",void 0),Xe=h([k("progress"),x(l`:host{background:var(${Rt.passive});border-radius:.25em;color:var(${Rt.active});height:.5em;width:100%}:host,[part=root]{display:block}[part=root]{border-radius:inherit;overflow:hidden;position:relative;z-index:1}[part=value]{animation:progress 1.8s ease-in-out infinite alternate;background:currentColor;border-radius:inherit;height:100%;left:0;position:absolute;top:0;transition:all .3s;z-index:2}@keyframes progress{0%{left:0}to{left:80%}}.static [part=value]{animation:none}`)],Xe);var Ze=Xe;Ze.define();const Ke="range",Qe=St(Ke);let Je=class Range extends De{constructor(){super(...arguments),this.min=0,this.max=100,this.vertical=!1,this.__focusStack=[]}get range(){return Array.isArray(this.value)}get rangeValue(){return this.range?this.value:[this.value]}padValue(t,e=0){const{rangeValue:o}=this,r=t-o.length;return r>0?new Array(r).fill(e).concat(o):o}attributeChangedCallback(t,e,o){super.attributeChangedCallback(t,e,o),"max"!==t&&"min"!==t&&"step"!==t||(this._ranger=new Ranger(this.min,this.max,this.step))}get observedRecord(){return v(super.observedRecord,"outline-type")}render(){const t=this.padValue(2),e=Math.min(...t),r=Math.max(...t),s=this._ranger.diff;return o`<div part="root" ${rt(this.observedRecord)} @mousedown="${this.disabled?null:this._handleMousedownRoot}" style="${w([["--from",(e-this.min)/s*100+"%"],["--to",(r-this.min)/s*100+"%"],...t.map(((t,e)=>[`--handle-${e}`,(t-this.min)/s*100+"%"]))])}"> <div part="track"></div> ${ht(this.rangeValue.length,(t=>this._renderHandle(t)))} </div>`}_renderHandle(t){const{disabled:e,range:r,rangeValue:s}=this,a=!r||r&&t===s.length-1&&1===s.length;return o`<i tabindex="0" part="handle" class="${ct({"last-focus":this.lastFocus===t})}" @mousedown="${e?null:this.createMouseDown(t)}" @focus="${e?null:()=>this.focusHandle(t)}" @blur="${e?null:this.blurHandle}" style="${w({"z-index":this.__focusStack.indexOf(t)+1,"--handle":`var(--${a?"to":`handle-${t}`})`})}"></i>`}focusHandle(t){this.lastFocus=t;const e=this.__focusStack.indexOf(t);-1!==e&&this.__focusStack.splice(e,1),this.__focusStack.push(t);const o=this._handles.item(t);o?.focus(),this.__keydownEvent||(this.__keydownEvent=this.events.add(document,"keydown",this.createKeydownEvent(t)))}blurHandle(){this.lastFocus=void 0,this.__keydownEvent=this.events.remove(document,"keydown",this.__keydownEvent)}createKeydownEvent(t){return e=>{const{rangeValue:o,step:r}=this;o.length<2&&(t=0);const s=o[t];"ArrowLeft"===e.key||"ArrowDown"===e.key?(e.preventDefault(),this.createSetValue(t)(s-r)):"ArrowRight"!==e.key&&"ArrowUp"!==e.key||(e.preventDefault(),this.createSetValue(t)(s+r))}}createMouseDown(t){return e=>{this.focusHandle(t),this.createMousedownListener(this.createSetValue(t))(e)}}createSetValue(t){return e=>{const o=this._ranger.normalize(e);let r=o;this.range&&(r=[...this.value],r[t]=o),this.value=r,this.dispatchCustomEvent("change",this.value)}}_computeValue({clientX:t,clientY:e}){const{top:o,left:r,height:s,width:a}=this._root.getBoundingClientRect();return this._ranger.present(this.vertical?(e-o)/s:(t-r)/a)}_handleMousedownRoot(t){const e=this._computeValue(t),o=this.range?this.rangeValue.reduce(((t,o,r)=>Math.abs(e-o)<Math.abs(e-this.rangeValue[t])?r:t),0):0,r=this.createSetValue(o);r(e),this.createMousedownListener(r)(t),this.focusHandle(o)}createMousedownListener(t){return e=>{e.preventDefault(),e.stopPropagation();const o=this.createMousemoveListener(t);this.events.add(document,"mousemove",o);const r=()=>{this.events.remove(document,"mousemove",o),this.events.remove(document,"mouseup",r)};this.events.add(document,"mouseup",r)}}createMousemoveListener(t){return e=>{const o=this._computeValue(e);o===this._ranger.restrict(o)&&t?.call(this,o)}}_connectedInit(){this._ranger=new Ranger(this.min,this.max,this.step);const t=this._ranger.diff;this.step||=t/100,c(this.value)&&(c(this.default)?this.value=Math.round(t/2/this.step)*this.step:this.value=this.default),this.default??=this.value}reset(){this.value=this.default}sort(){return this.value=this.toSorted()}toSorted(){return this.range?[...this.value].sort(((t,e)=>t-e)):this.value}};h([Y({type:Number})],Je.prototype,"min",void 0),h([Y({type:Number})],Je.prototype,"max",void 0),h([Y({type:Number})],Je.prototype,"step",void 0),h([Y({type:Boolean,reflect:!0})],Je.prototype,"vertical",void 0),h([Y({type:Array})],Je.prototype,"value",void 0),h([Y({type:Array})],Je.prototype,"default",void 0),h([tt("root")],Je.prototype,"_root",void 0),h([J("[part=handle]")],Je.prototype,"_handles",void 0),h([X()],Je.prototype,"lastFocus",void 0),Je=h([k(Ke),x(l`:host{${Qe}--handle-active:var(${Rt.active});${Qe}--track-width:.5em;${Qe}--length:var(${Rt.input}-width);background:var(${Rt.passive});display:block;width:var(${Qe}--length)}:host([contents]) [part=root]{width:inherit}:host([vertical]){height:var(${Qe}--length);width:-moz-fit-content;width:fit-content}:host(:not([disabled])) .last-focus{${Qe}--handle-scale:1.05;background:var(${Qe}--handle-active)}[part=root]{position:relative;--from:0%;--to:50%;height:var(${Qe}--track-width)}[part=root],[part=track]{border-radius:inherit;min-height:inherit}[part=track]{background:var(${Rt.active});height:100%;justify-content:space-between;left:min(var(--from),var(--to));pointer-events:none;width:max(calc(var(--to) - var(--from)),calc(var(--from) - var(--to)))}[part=handle],[part=track]{display:flex;position:absolute}[part=handle]{align-items:center;background:var(${Rt.active});border:.1em solid;border-color:var(${Rt.input}-control);border-radius:50%;height:1em;justify-content:center;transform:scale(var(${Qe}--handle-scale,1)) translate(-50%,-25%);transform-origin:0 25%;-webkit-user-select:none;user-select:none;width:1em}`,l`[vertical]{height:inherit;width:var(${Qe}--track-width)}[vertical] i{transform:translate(-25%,-50%)}[vertical] [part=track]{height:max(calc(var(--to) - var(--from)),calc(var(--from) - var(--to)));left:0;top:min(var(--from),var(--to));width:100%}`,l`[part=handle]{left:var(--handle);top:0}[vertical] [part=handle]{left:0;top:var(--handle)}`)],Je);var to=Je;to.define();const eo="rotate",oo=St(eo);let io=class Rotate extends GlobalStyle{render(){return o`<div part="root"> <div part="slot" @mousemove="${this._handleRotate}"> ${nt()} </div> <i @mouseleave="${this.reset}"></i> </div>`}reset(){this._root.style.removeProperty("transform"),this._root.style.removeProperty("transition")}_handleRotate(t){const{rotateX:e,rotateY:o}=this._computeOffset(t);this._root.style.setProperty("transform",`rotateX(${e}rad) rotateY(${o}rad)`),this._root.style.setProperty("transition","0s")}_computeOffset(t){const{left:e,top:o,width:r,height:s}=this._root.getBoundingClientRect(),{clientX:a,clientY:l}=t;return{rotateX:-(l-o-s/2)/s/2,rotateY:(a-e-r/2)/r/2}}};h([tt("root")],io.prototype,"_root",void 0),io=h([k(eo),x(l`:host{display:block;transition:all .5s ease-in-out;width:-moz-fit-content;width:fit-content;${oo}--padding:.75em;${oo}--offset:.5em}div{position:relative;transition:inherit;transition-property:transform}i{box-sizing:content-box;height:100%;margin:calc(var(${oo}--offset)*-1);padding:var(${oo}--offset);position:absolute;top:0;width:100%}[part=slot]{z-index:2}`)],io);var ro=io;ro.define(),qe.define();const so=a("[direction-inset-align]");l`[direction^=top] ${so}{top:0}[direction^=bottom] ${so}{bottom:0}[direction$=right] ${so}{right:0}[direction$=left] ${so}{left:0}`;const no=a("[direction-outset-place]"),ao=l`[direction^=top] ${no}{bottom:100%}[direction^=bottom] ${no}{top:100%}[direction$=right] ${no}{left:100%}[direction$=left] ${no}{right:100%}`;function lo(t,e){return t&&e&&t.toLowerCase().includes(e.toLowerCase())}function ho(t,e){if(t){const o="checked";e?t.setAttribute(o,""):t.removeAttribute(o)}}let co=class Select extends Ue{constructor(){super(...arguments),this.multiple=!1,this.visible=!1,this.autoDirection="bottom",this.__store=[]}get observedRecord(){return{...super.observedRecord,direction:this.direction||this.autoDirection}}render(){return o`<div part="root" ${rt(this.observedRecord)} class="input-field"> ${[this._renderPrefix(),o`<input part="input" type="${this.type}" .value="${this.text}" ?autofocus="${this.autofocus}" ?disabled="${this.disabled}" autocapitalize="${this.autocapitalize||e}" autocomplete="${this.autocomplete||e}" placeholder="${this.placeholder||e}" id="${this.makeId}" @focus="${this._handleFocus}" @input="${this._handleInput}" @change="${this._handleChange}"/>`,o`<label for="${this.makeId}" part="suffix"> <i part="icon">${ce()}</i> </label>`,o`<label for="${this.makeId}" part="content" direction-outset-place> ${nt()} </label>`]} </div>`}_handleFocus(){if(!this.direction){const{top:t,bottom:e}=this.getBoundingClientRect();window.innerHeight-e<this._content.clientHeight&&t>this._content.clientHeight?this.autoDirection="top":this.autoDirection="bottom"}this.visible=!0}firstUpdated(){this.events.add(this._content,"click",(t=>{t.preventDefault(),t.stopPropagation();const{target:e}=t,o=this.optionValue(e);if(o){const t=this.select(o,e.textContent);this.multiple||ho(this.lastChecked,0),ho(e,t),this.lastChecked=e}this._input.focus()})),this.events.add(document,"click",(t=>{t.stopPropagation();const e=t.composedPath()[0];e&&!this.shadowRoot.contains(e)&&this.blur()}))}_connectedInit(){if(!this.value){const t=[...this.querySelectorAll("[checked]")];(this.multiple?t:t.length?[this.lastChecked=t[0]]:[]).forEach((t=>{ho(t,this.select(this.optionValue(t),t.textContent))})),this.default=this.value,this.defaultText=this.text,this.defaultChecked=t}this.text||(this.text="")}reset(){this.value=this.default,this.text=this.defaultText,this.querySelectorAll("[checked]").forEach((t=>ho(t,0))),this.defaultChecked.forEach((t=>ho(t,1)))}select(t,e){e||=t,e=e.trim();let o=0;if(this.multiple){const r=this.__store.findIndex((e=>e.value===t));r>-1?this.__store.splice(r,1):(this.__store.push({value:t,text:e}),o=1),this.value=this.__store.map((t=>t.value)),this.text=this.__store.map((t=>t.text)).join(", ")}else this.value===t?(this.value="",this.text=""):(this.value=t,this.text=e,o=1);return this.dispatchCustomEvent("select",this.value),this.filter(),o}filter(t){t=t?.trim(),[...this.children].forEach((e=>{this.filterCallback(e,!t||lo(this.optionValue(e),t)||lo(e.textContent,t),t)}))}filterCallback(t,e,o){t.style.display=e?"":"none"}_handleInput(t){if(t.stopPropagation(),this.compositing)return;const e=this._input.value;this.filter(this.multiple?function(t,e){const o=e.slice(0,t).lastIndexOf(",")+1||0,r=e.indexOf(",",t)||e.length;return e.slice(o,r)}(this._input.selectionStart,e):e),this.dispatchCustomEvent("input",this.value,{bubbles:!0})}focus(t){this._input.focus(t),this.visible=!0}blur(){this._input.blur(),this.visible=!1,super.blur()}optionValue(t){return t.value||t.getAttribute("value")||""}};h([Y()],co.prototype,"text",void 0),h([tt("content")],co.prototype,"_content",void 0),h([Y()],co.prototype,"direction",void 0),h([Y({type:Boolean})],co.prototype,"multiple",void 0),h([Y({type:Boolean})],co.prototype,"visible",void 0),h([X()],co.prototype,"autoDirection",void 0),co=h([k("select"),x(ao,l`.outline,:host(:focus-within){${Rt.input}-outline-color:var(${Rt.active})}[part=input]{text-overflow:ellipsis}[part=content]{position:absolute;visibility:hidden;width:100%}[visible] [part=content]{visibility:visible}`)],co);var po=co;po.define();var uo=lt("0 0 56 56")`<path fill="currentColor" d="M7.715 49.574h40.57c4.899 0 7.36-2.437 7.36-7.265V13.69c0-4.828-2.461-7.265-7.36-7.265H7.715C2.84 6.426.355 8.84.355 13.69v28.62c0 4.851 2.485 7.265 7.36 7.265m31.57-21.633c-1.055-.937-2.25-1.43-3.515-1.43c-1.313 0-2.462.446-3.54 1.407l-10.593 9.469l-4.336-3.938c-.985-.867-2.04-1.336-3.164-1.336c-1.032 0-2.04.446-3 1.313L4.129 39.73V13.88c0-2.438 1.312-3.68 3.656-3.68h40.43c2.32 0 3.656 1.242 3.656 3.68v25.875Zm-21.469.258c3.024 0 5.508-2.484 5.508-5.531c0-3.023-2.484-5.531-5.508-5.531c-3.046 0-5.53 2.508-5.53 5.531a5.54 5.54 0 0 0 5.53 5.531"/>`;const vo="skeleton",fo=St(vo);let mo=class Skeleton extends GlobalStyle{constructor(){super(...arguments),this.animation="position",this.loading=!0}render(){return this.loading?o`<div part="root" ${rt(this.observedRecord)}> ${"image"===this.type?uo():""} ${nt("loading")} </div>`:nt()}};h([Y()],mo.prototype,"type",void 0),h([Y()],mo.prototype,"animation",void 0),h([X()],mo.prototype,"loading",void 0),mo=h([k(vo),x(l`:host{${fo}--from:var(${Rt._colors.darkgray[9]});${fo}--to:var(${Rt._colors.darkgray[7]});${fo}--deg:95deg;${fo}--duration:1.5s;${fo}--icon-size:5em;${fo}--icon-margin:.25em;background:var(${fo}--from);color:var(${Rt._colors.darkgray[5]});display:block;flex-shrink:0;min-height:1.5em;overflow:hidden;width:100%}[part=root]{animation:var(${fo}--duration) ease-in-out 0s infinite none running;min-height:inherit;text-align:center}svg{--size:var(${fo}--icon-size);font-size:var(--size);margin:calc(var(--size)*.05)}[animation=position]{animation-name:po;background-color:transparent;background-image:linear-gradient(var(${fo}--deg),var(${fo}--from) 36%,var(${fo}--to) 50%,var(${fo}--from) 64%);background-size:200% 100%}@keyframes po{0%{background-position:150%}to{background-position:-50%}}[animation=opacity]{animation-direction:alternate;animation-name:op}@keyframes op{50%{opacity:.25}to{opacity:1}}`)],mo);var go=mo;go.define();const yo="split",bo=St(yo);let $o=class Split extends De{constructor(){super(...arguments),this.len=6,this.index=-1,this.current=-1,this.currentValue=[],this.__outlineSC=new StyleController(this,(()=>new OutlineBuilder({selector:"[part=input-box]",outlineType:this.outlineType}).css))}get observedRecord(){return v(super.observedRecord,"outline-type")}render(){return o`<div part="root" ${rt(this.observedRecord)}> ${ht(this.len,(t=>o`<span part="input-box" outline-type="${this.outlineType}" class="${ct({focus:this.current===t})}" @click="${this.disabled?null:()=>this.focusAt(t)}"> ${this.currentValue[t]} </span>`))} <input part="input" id="${this.makeId}" @blur=${this.blur} @input="${this._handleInput}" @change="${this._handleChange}" .value="${this.value.padStart(this.len," ")}"/> </div>`}connectedCallback(){super.connectedCallback(),this.reset()}_handleInput(t){t.stopPropagation(),this.compositing||(this.fillInput(t.data),this.value=this.currentValue.join(""),this.dispatchCustomEvent("input",this.value,{bubbles:!0}))}fillInput(t){if(null===t){if(null!==this.currentValue[this.current])this.currentValue[this.current]=null;else{this.currentValue[this.current-1]=null;const t=this.currentValue.findLastIndex((t=>null!==t));this.current=this.current-1<0?t<0?0:t:this.current-1}return}const e=t.length>1;if(this.currentValue[this.current]=t[0],this.current+1>=this.len?(this.current=this.currentValue.indexOf(null),-1===this.current&&this.blur()):this.current+=1,e){const e=t.slice(1);e&&this.fillInput(e)}}focus(){this.focusAt(this.current),super.focus()}focusAt(t){this.current=t,this._input.focus()}blur(){this._input.blur(),this.current=-1,super.blur()}reset(){this.current=-1,this.value=this.default,this.currentValue=this.value.split("").concat(Array(this.len-this.value.length).fill(null)),this.index>-1&&(this.current=this.index)}};h([Y({type:Number})],$o.prototype,"len",void 0),h([Y({type:Number})],$o.prototype,"index",void 0),h([X()],$o.prototype,"current",void 0),h([X()],$o.prototype,"currentValue",void 0),$o=h([k(yo),x(l`:host{border-radius:.1em;display:block;width:-moz-fit-content;width:fit-content;${bo}--size:1.45em;${bo}--gap:.25em}[part=root]{display:flex;gap:var(${bo}--gap);justify-content:space-between;position:relative}[part=input-box],[part=root]{border-radius:inherit;vertical-align:top}[part=input-box]{align-items:center;display:inline-flex;height:var(${bo}--size);justify-content:center;width:var(${bo}--size)}[part=input]{background:none;height:100%;opacity:0;position:absolute;width:100%;z-index:-1}.focus,[part=input-box]:active{${Rt.outlineColor}:var(${Rt.active})}`)],$o);var _o=$o;_o.define();const wo="switch",xo=St(wo);let ko=class Switch extends De{constructor(){super(...arguments),this.default=!1,this.value=!1}set checked(t){this.value=t}get checked(){return this.value}get observedRecord(){return v(super.observedRecord,"outline-type")}render(){return o`<div part="root" ${rt(this.observedRecord)} class="round"> <input part="input" type="checkbox" ?disabled="${this.disabled}" ?checked="${this.value}" id="${this.makeId}" @change="${this._handleChange}"/> <span part="handle"></span> </div>`}reset(){this.value=this.default,this._input.checked=this.value}_connectedInit(){this.default?this.value=!0:this.value&&(this.value=!0,this.default=!0)}_handleChange(){const{checked:t}=this._input;this.value=t,this.dispatchCustomEvent("change",this.value)}};h([Y({type:Boolean})],ko.prototype,"default",void 0),h([Y({type:Boolean,attribute:"checked",reflect:!0})],ko.prototype,"value",void 0),ko=h([k(wo),x(l`:host,:host([contents]) [part=root]{display:inline-block}:host{${xo}-width:3em;${xo}-height:calc(var(${xo}-width)/2);${xo}-handle-size:1.25em;${xo}-handle-space:calc(var(${xo}-width)/4 - var(${xo}-handle-size)/2);${xo}-transition:.2s ease-in-out;background:var(${Rt.passive});border-radius:calc(var(${xo}-height)/2);height:var(${xo}-height);transition:.2s ease-in-out;transition-property:background,left;vertical-align:bottom;width:var(${xo}-width)}:host([checked]){background:var(${Rt.active})}[part=root]{position:relative}[part=handle],[part=root]{align-items:center;display:flex;transition:inherit}[part=handle]{background:currentColor;border-radius:100%;justify-content:center;left:0;pointer-events:none;position:absolute;top:50%;--size:var(${xo}-handle-size);height:var(--size);transform:translateY(-50%) translateX(var(${xo}-handle-space));width:var(--size)}:host([checked]) [part=handle]{left:50%}[part=input]{height:100%;opacity:0;width:100%}`)],ko);var Co=ko;Co.define();const So="text",Ro=St(So);let Eo=class Text extends GlobalStyle{constructor(){super(...arguments),this.underline="none",this.clip=!1}render(){return o`<span part="root" ${rt(this.observedRecord)} class="${ct(this.underline)}"> ${nt()} </span>`}};h([Y()],Eo.prototype,"underline",void 0),h([Y({type:Boolean})],Eo.prototype,"clip",void 0),Eo=h([k(So),x(l`:host{${Ro}--color:currentColor;${Ro}--color-hover:currentColor;${Ro}--color-active:currentColor;display:inline-block;overflow-wrap:break-word;text-overflow:ellipsis}[part=root]{color:var(${Ro}--color);display:inline-block;overflow:hidden;overflow-wrap:inherit;text-overflow:inherit;vertical-align:bottom;white-space:nowrap}[part=root]:hover{color:var(${Ro}--color-hover,var(${Ro}--color))}[part=root]:active{color:var(${Ro}--color-active,var(${Ro}--color))}.active:active,.always,.hover:hover{text-decoration:underline}.none{text-decoration:none}[clip]{background:var(${Rt.clipBackground});color:transparent;display:inline-block;-webkit-text-fill-color:transparent;background-clip:text;-webkit-background-clip:text}`)],Eo);var To=Eo;To.define();const Mo="tabs",Ao=St(Mo),Po="hover";let zo=class Tabs extends GlobalStyle{constructor(){super(...arguments),this.outlineType="border",this.useSlot=!1,this.index=0,this.__outlineSC=new StyleController(this,(()=>new OutlineBuilder({outlineType:this.outlineType}).css))}render(){return o`<ul part="root" ${rt(this.observedRecord)} @mouseleave="${this._handleMouseLeave}"> ${this.tabs?.map(((t,e)=>t||this.useSlot?o`<li part="${ct("item",{selected:this.index===e})}" @mouseenter=${()=>{this.move(this._lastIndex,e),this._lastIndex=e}} @click=${()=>this.select(e)}> ${this.useSlot?nt(t):t} <div part="indicator"></div> </li>`:""))} </ul>`}connectedCallback(){super.connectedCallback(),this._lastIndex=this.index}_handleMouseLeave(){const t=this._items[this._lastIndex];t&&t.part.remove(Po),this._lastIndex=this.index}move(t,e){if(t===e)return;const{_items:o,_indicators:r}=this,s=o[e];if(!s)return;s.part.add(Po);const a=o[t];if(!a)return;a.part.remove(Po);const l=r[e],h=r[t];if(!l||!h)return;const c=h.getBoundingClientRect(),d=s.getBoundingClientRect(),p=c.x-d.x,u=c.y-d.y,v=c.width,{style:f}=l;f.transform=`translate3d(${p}px,${u}px,0)`,f.width=v+"px",f.transition=h.style.transition="none",l.getBoundingClientRect(),f.width=f.transform=f.transition=h.style.transition=""}select(t){const{index:e,tabs:o,_lastIndex:r,useSlot:s}=this;o&&e!==t&&t in o&&(this.dispatchCustomEvent("select",t),this.move(r,t),this._lastIndex=t,e in o&&(o[e]||s)&&(this.index=t))}};h([Y({attribute:"outline-type"})],zo.prototype,"outlineType",void 0),h([Y({type:Boolean})],zo.prototype,"useSlot",void 0),h([Y({type:Array})],zo.prototype,"tabs",void 0),h([Y({type:Number})],zo.prototype,"index",void 0),h([J("[part~=item]")],zo.prototype,"_items",void 0),h([J("[part=indicator]")],zo.prototype,"_indicators",void 0),zo=h([k(Mo),x(l`:host{${Ao}--indicator-background:var(${Rt._colors.darkgray[7]});${Ao}--space:0.25em;border-radius:var(${Rt.radius});cursor:default;display:flex;transition:.2s ease-in-out;width:-moz-fit-content;width:fit-content}[part=root]{border-radius:inherit;display:flex;flex-direction:inherit;gap:var(${Ao}--space);overflow-x:clip;padding:var(${Ao}--space);position:relative;transition:inherit;transition-property:width,transform,opacity;z-index:1}[useslot] [part~=item]{padding:0}[part~=item]{display:block;padding:0 .4em;position:relative;white-space:nowrap}[part=indicator],[part~=item]{border-radius:inherit;transition:inherit;transition-property:inherit;width:100%}[part=indicator]{background:var(${Ao}--indicator-background);height:100%;inset:0;opacity:0;position:absolute;z-index:-1}[part~=selected]{background:var(${Ao}--indicator-background)}[part~=hover] [part=indicator],[part~=selected] [part=indicator]{opacity:1}`)],zo);var Io=zo;function Oo(t,e=2){return t.toString().padStart(e,"0").split("")}Io.define();let Bo=class Time extends GlobalStyle{constructor(){super(...arguments),this.escape="%",this.format="YYYY-MM-DD hh:mm:ss",this.time=new Date}render(){return o`<span part="root" ${rt(this.observedRecord)}> ${function(t,e=new Date,o="%"){var r;if(!t)return t;if(isNaN(e.getTime()))return;const s=`${o}${o}`,a=[];t=t.replace(new RegExp(`${o}([ZYMDhmsS${o}])`,"g"),((t,e)=>(a.push(e),s)));const l=e.getTimezoneOffset()/-60,h={Z:[l>=0?"+"+l.toString():l.toString()],Y:e.getFullYear().toString().split(""),M:Oo(e.getMonth()+1),D:Oo(e.getDate()),h:Oo(e.getHours()),m:Oo(e.getMinutes()),s:Oo(e.getSeconds()),S:Oo(e.getMilliseconds(),3)},c=[];for(const e of t.split("").reverse()){const t=null===(r=h[e])||void 0===r?void 0:r.pop();t?c.push(t):c.push(e)}return c.reverse().join("").replace(new RegExp(s,"g"),(()=>a.shift()))}(this.format,this.time,this.escape)} </span>`}updated(t){t.has("timeout")&&this.timeout&&(this.timeouts.remove(this.timeoutId),this.timeoutId=this.timeouts.add(setInterval((()=>{this.dispatchCustomEvent("time",this.time),this.time=new Date(this.time.getTime()+(this.gap||this.timeout))}),Math.abs(this.timeout))))}};h([Y()],Bo.prototype,"escape",void 0),h([Y()],Bo.prototype,"format",void 0),h([Y({type:Object})],Bo.prototype,"time",void 0),h([Y({type:Number})],Bo.prototype,"timeout",void 0),h([Y({type:Number})],Bo.prototype,"gap",void 0),Bo=h([k("time"),x(l`:host{text-align:center}`)],Bo);var Do,No=Bo;No.define();const Uo="tooltip",Lo=St(Uo);let jo=Do=class Tooltip extends SuperOpenable{constructor(){super(...arguments),this.direction="top",this.align="center",this.propagation=!1,this.type="hover"}render(){const t=Do.aligns[this.align]||"inherit",e="focus"===this.type;return o`<div part="root" ${rt(this.observedRecord)} tabindex="${e?0:-1}" @focus="${e?()=>this.open=!0:null}" @blur="${e?()=>this.open=!1:null}" @mouseenter="${e?null:()=>this.open=!0}" @mouseleave="${e?null:()=>this.open=!1}" style="justify-content:${t};align-items:${t}"> ${nt()} <div part="tip" direction-outset-place> ${this.tip?o`<span class="passive">${this.tip}</span>`:nt("tip")} </div> </div>`}};jo.aligns={start:"flex-start",end:"flex-end",center:"center","flex-start":"flex-start","flex-end":"flex-end"},h([Y()],jo.prototype,"tip",void 0),h([Y()],jo.prototype,"direction",void 0),h([Y()],jo.prototype,"align",void 0),h([Y({type:Boolean})],jo.prototype,"propagation",void 0),h([Y()],jo.prototype,"type",void 0),jo=Do=h([k(Uo),x(ao,l`:host{${Lo}--tip-background:inherit;width:-moz-fit-content;width:fit-content}:host,[part=root]{display:inline-flex}[part=root]{border-radius:inherit;position:relative;transition:inherit}[part=tip]{height:-moz-fit-content;height:fit-content;position:absolute;transition:inherit;-webkit-user-select:none;user-select:none;visibility:hidden;width:-moz-fit-content;width:fit-content}:host([open]) [part=tip]{visibility:visible}.passive{background:var(${Lo}--tip-background)}[propagation] [part=tip]{pointer-events:none}`)],jo);var Vo=jo;Vo.define();const Go="typewriter",Ho=St(Go);let qo=class Typewriter extends GlobalStyle{constructor(){super(...arguments),this.content="",this.ended=!1,this.max=100,this.min=50,this.delay=0,this.index=0,this.contentInternal=""}get len(){return this.content.length}render(){return o`<div part="root" ${rt(this.observedRecord)}> ${nt()} ${this.contentInternal} <i part="cursor" ?hidden="${this.ended}"></i> </div>`}connectedCallback(){super.connectedCallback(),this._ranger=new Ranger(this.min,this.max)}firstUpdated(){this.content||=this._slot?.assignedNodes()[0]?.textContent.trim()||"",!this.ended&&this.len&&this.write()}updated(t){t.has("index")&&this.dispatchCustomEvent(this.index===this.len?"done":"write",this.contentInternal)}write(t=this.index){this.contentInternal=this.content.slice(0,t+1);const e=this.delay||this._ranger.random();this.timeoutID=this.timeouts.add(setTimeout((()=>{const e=t+1;e<=this.len&&(this.index=e,this.write())}),e))}stop(){clearTimeout(this.timeoutID)}end(){this.ended=!0}};h([Y()],qo.prototype,"content",void 0),h([Y({type:Boolean})],qo.prototype,"ended",void 0),h([Y({type:Number})],qo.prototype,"max",void 0),h([Y({type:Number})],qo.prototype,"min",void 0),h([Y({type:Number})],qo.prototype,"delay",void 0),h([Y({type:Number})],qo.prototype,"index",void 0),h([X()],qo.prototype,"contentInternal",void 0),h([K("i")],qo.prototype,"_i",void 0),qo=h([k(Go),x(l`:host{${Ho}--cursor-width:.05em}:host,:host([contents]) [part=root]{display:inline-block}i{animation:s 1.5s steps(1) infinite;border-right:var(${Ho}--cursor-width) solid;margin-left:.02em}@keyframes s{0%{border-color:currentColor}50%{border-color:transparent}}slot{display:none}`)],qo);var Fo=qo;Fo.define();export{Bt as Alert,Nt as Avatar,Vt as Badge,Wt as Breath,te as Button,re as Card,he as Carousel,ve as Details,be as Dialog,_e as Divider,xe as Dragbox,Se as Flex,Ee as Form,Ae as Grid,ze as Heading,Ue as Input,je as Layout,Ye as Link,Ze as Progress,to as Range,ro as Rotate,qe as Router,po as Select,go as Skeleton,_o as Split,Co as Switch,Io as Tabs,To as Text,No as Time,Vo as Tooltip,Fo as Typewriter};
|
48
48
|
//# sourceMappingURL=godown.js.map
|