@fluentui/web-components 3.0.0-beta.3 → 3.0.0-beta.30
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/CHANGELOG.md +420 -103
- package/README.md +46 -15
- package/dist/dts/accordion/accordion.bench.d.ts +3 -0
- package/dist/dts/accordion/accordion.d.ts +47 -3
- package/dist/dts/accordion/accordion.definition.d.ts +0 -4
- package/dist/dts/accordion/accordion.options.d.ts +14 -0
- package/dist/dts/accordion/accordion.template.d.ts +4 -0
- package/dist/dts/accordion/index.d.ts +2 -1
- package/dist/dts/accordion-item/accordion-item.bench.d.ts +3 -0
- package/dist/dts/accordion-item/accordion-item.d.ts +78 -6
- package/dist/dts/accordion-item/accordion-item.definition.d.ts +0 -3
- package/dist/dts/accordion-item/accordion-item.options.d.ts +3 -3
- package/dist/dts/accordion-item/accordion-item.template.d.ts +2 -1
- package/dist/dts/accordion-item/index.d.ts +3 -2
- package/dist/dts/anchor-button/anchor-button.bench.d.ts +3 -0
- package/dist/dts/anchor-button/anchor-button.d.ts +144 -26
- package/dist/dts/anchor-button/anchor-button.definition.d.ts +0 -3
- package/dist/dts/anchor-button/anchor-button.options.d.ts +43 -5
- package/dist/dts/anchor-button/anchor-button.template.d.ts +7 -2
- package/dist/dts/anchor-button/index.d.ts +4 -3
- package/dist/dts/avatar/avatar.bench.d.ts +3 -0
- package/dist/dts/avatar/avatar.d.ts +22 -2
- package/dist/dts/avatar/avatar.options.d.ts +7 -7
- package/dist/dts/avatar/index.d.ts +2 -2
- package/dist/dts/badge/badge.bench.d.ts +3 -0
- package/dist/dts/badge/badge.d.ts +1 -1
- package/dist/dts/badge/badge.definition.d.ts +0 -3
- package/dist/dts/badge/badge.options.d.ts +7 -7
- package/dist/dts/badge/index.d.ts +2 -2
- package/dist/dts/button/button.bench.d.ts +3 -0
- package/dist/dts/button/button.d.ts +243 -22
- package/dist/dts/button/button.definition.d.ts +2 -3
- package/dist/dts/button/button.options.d.ts +42 -6
- package/dist/dts/button/button.styles.d.ts +9 -0
- package/dist/dts/button/button.template.d.ts +8 -0
- package/dist/dts/button/index.d.ts +5 -4
- package/dist/dts/checkbox/checkbox.bench.d.ts +3 -0
- package/dist/dts/checkbox/checkbox.d.ts +282 -16
- package/dist/dts/checkbox/checkbox.options.d.ts +15 -12
- package/dist/dts/checkbox/checkbox.template.d.ts +7 -1
- package/dist/dts/checkbox/index.d.ts +4 -3
- package/dist/dts/compound-button/compound-button.bench.d.ts +3 -0
- package/dist/dts/compound-button/compound-button.definition.d.ts +0 -3
- package/dist/dts/compound-button/compound-button.options.d.ts +9 -9
- package/dist/dts/compound-button/index.d.ts +2 -2
- package/dist/dts/counter-badge/counter-badge.bench.d.ts +3 -0
- package/dist/dts/counter-badge/counter-badge.d.ts +1 -1
- package/dist/dts/counter-badge/counter-badge.definition.d.ts +0 -4
- package/dist/dts/counter-badge/counter-badge.options.d.ts +6 -6
- package/dist/dts/counter-badge/index.d.ts +2 -2
- package/dist/dts/dialog/define.d.ts +1 -0
- package/dist/dts/dialog/dialog.bench.d.ts +3 -0
- package/dist/dts/dialog/dialog.d.ts +58 -0
- package/dist/dts/dialog/dialog.definition.d.ts +9 -0
- package/dist/dts/dialog/dialog.options.d.ts +11 -0
- package/dist/dts/dialog/dialog.styles.d.ts +4 -0
- package/dist/dts/dialog/dialog.template.d.ts +7 -0
- package/dist/dts/dialog/index.d.ts +5 -0
- package/dist/dts/dialog-body/define.d.ts +1 -0
- package/dist/dts/dialog-body/dialog-body.bench.d.ts +3 -0
- package/dist/dts/dialog-body/dialog-body.d.ts +14 -0
- package/dist/dts/dialog-body/dialog-body.definition.d.ts +9 -0
- package/dist/dts/dialog-body/dialog-body.styles.d.ts +4 -0
- package/dist/dts/dialog-body/dialog-body.template.d.ts +6 -0
- package/dist/dts/dialog-body/index.d.ts +4 -0
- package/dist/dts/divider/divider.bench.d.ts +3 -0
- package/dist/dts/divider/divider.d.ts +47 -11
- package/dist/dts/divider/divider.options.d.ts +32 -8
- package/dist/dts/divider/divider.template.d.ts +1 -0
- package/dist/dts/divider/index.d.ts +2 -2
- package/dist/dts/field/define.d.ts +1 -0
- package/dist/dts/field/field.bench.d.ts +3 -0
- package/dist/dts/field/field.d.ts +99 -0
- package/dist/dts/field/field.definition.d.ts +9 -0
- package/dist/dts/field/field.options.d.ts +41 -0
- package/dist/dts/field/field.styles.d.ts +6 -0
- package/dist/dts/field/field.template.d.ts +6 -0
- package/dist/dts/field/index.d.ts +6 -0
- package/dist/dts/form-associated/form-associated.d.ts +104 -0
- package/dist/dts/image/image.bench.d.ts +3 -0
- package/dist/dts/image/image.options.d.ts +3 -3
- package/dist/dts/image/index.d.ts +2 -2
- package/dist/dts/index-rollup.d.ts +32 -1
- package/dist/dts/index.d.ts +53 -30
- package/dist/dts/label/index.d.ts +2 -1
- package/dist/dts/label/label.bench.d.ts +3 -0
- package/dist/dts/label/label.d.ts +0 -2
- package/dist/dts/label/label.options.d.ts +3 -3
- package/dist/dts/link/define.d.ts +1 -0
- package/dist/dts/link/index.d.ts +4 -0
- package/dist/dts/link/link.bench.d.ts +3 -0
- package/dist/dts/link/link.d.ts +33 -0
- package/dist/dts/link/link.definition.d.ts +7 -0
- package/dist/dts/link/link.options.d.ts +52 -0
- package/dist/dts/link/link.styles.d.ts +1 -0
- package/dist/dts/link/link.template.d.ts +12 -0
- package/dist/dts/menu/index.d.ts +1 -1
- package/dist/dts/menu/menu.bench.d.ts +3 -0
- package/dist/dts/menu/menu.d.ts +27 -25
- package/dist/dts/menu-button/index.d.ts +4 -3
- package/dist/dts/menu-button/menu-button.bench.d.ts +3 -0
- package/dist/dts/menu-button/menu-button.definition.d.ts +0 -3
- package/dist/dts/menu-button/menu-button.options.d.ts +6 -6
- package/dist/dts/menu-item/index.d.ts +5 -3
- package/dist/dts/menu-item/menu-item.bench.d.ts +3 -0
- package/dist/dts/menu-item/menu-item.d.ts +162 -5
- package/dist/dts/menu-item/menu-item.definition.d.ts +0 -4
- package/dist/dts/menu-item/menu-item.options.d.ts +30 -0
- package/dist/dts/menu-item/menu-item.template.d.ts +2 -1
- package/dist/dts/menu-list/index.d.ts +1 -1
- package/dist/dts/menu-list/menu-list.bench.d.ts +3 -0
- package/dist/dts/menu-list/menu-list.d.ts +71 -4
- package/dist/dts/menu-list/menu-list.definition.d.ts +0 -4
- package/dist/dts/menu-list/menu-list.template.d.ts +1 -0
- package/dist/dts/patterns/aria-globals.d.ts +189 -0
- package/dist/dts/patterns/index.d.ts +2 -0
- package/dist/dts/patterns/start-end.d.ts +44 -0
- package/dist/dts/progress-bar/index.d.ts +2 -2
- package/dist/dts/progress-bar/progress-bar.bench.d.ts +3 -0
- package/dist/dts/progress-bar/progress-bar.d.ts +60 -10
- package/dist/dts/progress-bar/progress-bar.options.d.ts +4 -4
- package/dist/dts/progress-bar/progress-bar.template.d.ts +1 -0
- package/dist/dts/radio/index.d.ts +2 -1
- package/dist/dts/radio/radio.bench.d.ts +3 -0
- package/dist/dts/radio/radio.d.ts +54 -3
- package/dist/dts/radio/radio.form-associated.d.ts +14 -0
- package/dist/dts/radio/radio.template.d.ts +2 -1
- package/dist/dts/radio-group/index.d.ts +2 -2
- package/dist/dts/radio-group/radio-group.bench.d.ts +3 -0
- package/dist/dts/radio-group/radio-group.d.ts +91 -2
- package/dist/dts/radio-group/radio-group.options.d.ts +17 -0
- package/dist/dts/radio-group/radio-group.template.d.ts +1 -0
- package/dist/dts/slider/index.d.ts +3 -2
- package/dist/dts/slider/slider-utilities.d.ts +5 -0
- package/dist/dts/slider/slider.bench.d.ts +3 -0
- package/dist/dts/slider/slider.d.ts +195 -5
- package/dist/dts/slider/slider.form-associated.d.ts +14 -0
- package/dist/dts/slider/slider.options.d.ts +44 -3
- package/dist/dts/slider/slider.template.d.ts +4 -2
- package/dist/dts/spinner/index.d.ts +2 -2
- package/dist/dts/spinner/spinner.bench.d.ts +3 -0
- package/dist/dts/spinner/spinner.d.ts +9 -4
- package/dist/dts/spinner/spinner.definition.d.ts +0 -4
- package/dist/dts/spinner/spinner.options.d.ts +3 -3
- package/dist/dts/spinner/spinner.template.d.ts +1 -2
- package/dist/dts/styles/partials/index.d.ts +1 -0
- package/dist/dts/styles/partials/typography.partials.d.ts +18 -0
- package/dist/dts/switch/index.d.ts +3 -2
- package/dist/dts/switch/switch.bench.d.ts +3 -0
- package/dist/dts/switch/switch.d.ts +6 -12
- package/dist/dts/switch/switch.form-associated.d.ts +14 -0
- package/dist/dts/switch/switch.options.d.ts +2 -2
- package/dist/dts/switch/switch.template.d.ts +2 -1
- package/dist/dts/tab/index.d.ts +4 -3
- package/dist/dts/tab/tab.bench.d.ts +3 -0
- package/dist/dts/tab/tab.d.ts +17 -2
- package/dist/dts/tab/tab.template.d.ts +3 -3
- package/dist/dts/tab-panel/index.d.ts +1 -1
- package/dist/dts/tab-panel/tab-panel.bench.d.ts +3 -0
- package/dist/dts/tab-panel/tab-panel.d.ts +2 -2
- package/dist/dts/tab-panel/tab-panel.template.d.ts +4 -1
- package/dist/dts/tabs/index.d.ts +5 -4
- package/dist/dts/tabs/tabs.bench.d.ts +3 -0
- package/dist/dts/tabs/tabs.d.ts +102 -13
- package/dist/dts/tabs/tabs.options.d.ts +23 -5
- package/dist/dts/tabs/tabs.template.d.ts +5 -1
- package/dist/dts/text/index.d.ts +2 -2
- package/dist/dts/text/text.bench.d.ts +3 -0
- package/dist/dts/text/text.options.d.ts +5 -5
- package/dist/dts/text-input/index.d.ts +5 -5
- package/dist/dts/text-input/text-input.bench.d.ts +3 -0
- package/dist/dts/text-input/text-input.d.ts +395 -11
- package/dist/dts/text-input/text-input.definition.d.ts +2 -3
- package/dist/dts/text-input/text-input.options.d.ts +31 -10
- package/dist/dts/text-input/text-input.styles.d.ts +5 -2
- package/dist/dts/text-input/text-input.template.d.ts +8 -1
- package/dist/dts/theme/design-tokens.d.ts +2180 -384
- package/dist/dts/theme/set-theme.d.ts +6 -3
- package/dist/dts/toggle-button/index.d.ts +5 -4
- package/dist/dts/toggle-button/toggle-button.bench.d.ts +3 -0
- package/dist/dts/toggle-button/toggle-button.d.ts +29 -26
- package/dist/dts/toggle-button/toggle-button.definition.d.ts +0 -2
- package/dist/dts/toggle-button/toggle-button.options.d.ts +6 -6
- package/dist/dts/toggle-button/toggle-button.styles.d.ts +7 -0
- package/dist/dts/utils/behaviors/match-media-stylesheet-behavior.d.ts +124 -0
- package/dist/dts/utils/benchmark-dependencies/tokens.d.ts +1 -0
- package/dist/dts/utils/benchmark-wrapper.d.ts +2 -0
- package/dist/dts/utils/direction.d.ts +10 -0
- package/dist/dts/utils/display.d.ts +17 -0
- package/dist/dts/utils/element-internals.d.ts +20 -0
- package/dist/dts/utils/index.d.ts +6 -0
- package/dist/dts/utils/template-helpers.d.ts +16 -0
- package/dist/dts/utils/typings.d.ts +6 -0
- package/dist/dts/utils/whitespace-filter.d.ts +12 -0
- package/dist/esm/accordion/accordion.bench.js +30 -0
- package/dist/esm/accordion/accordion.bench.js.map +1 -0
- package/dist/esm/accordion/accordion.definition.js +0 -4
- package/dist/esm/accordion/accordion.definition.js.map +1 -1
- package/dist/esm/accordion/accordion.js +211 -3
- package/dist/esm/accordion/accordion.js.map +1 -1
- package/dist/esm/accordion/accordion.options.js +9 -0
- package/dist/esm/accordion/accordion.options.js.map +1 -0
- package/dist/esm/accordion/accordion.styles.js +1 -1
- package/dist/esm/accordion/accordion.styles.js.map +1 -1
- package/dist/esm/accordion/accordion.template.js +11 -1
- package/dist/esm/accordion/accordion.template.js.map +1 -1
- package/dist/esm/accordion/index.js +2 -1
- package/dist/esm/accordion/index.js.map +1 -1
- package/dist/esm/accordion-item/accordion-item.bench.js +14 -0
- package/dist/esm/accordion-item/accordion-item.bench.js.map +1 -0
- package/dist/esm/accordion-item/accordion-item.definition.js +0 -3
- package/dist/esm/accordion-item/accordion-item.definition.js.map +1 -1
- package/dist/esm/accordion-item/accordion-item.js +80 -10
- package/dist/esm/accordion-item/accordion-item.js.map +1 -1
- package/dist/esm/accordion-item/accordion-item.styles.js +1 -1
- package/dist/esm/accordion-item/accordion-item.styles.js.map +1 -1
- package/dist/esm/accordion-item/accordion-item.template.js +47 -2
- package/dist/esm/accordion-item/accordion-item.template.js.map +1 -1
- package/dist/esm/accordion-item/index.js +2 -2
- package/dist/esm/accordion-item/index.js.map +1 -1
- package/dist/esm/anchor-button/anchor-button.bench.js +11 -0
- package/dist/esm/anchor-button/anchor-button.bench.js.map +1 -0
- package/dist/esm/anchor-button/anchor-button.definition.js +0 -6
- package/dist/esm/anchor-button/anchor-button.definition.js.map +1 -1
- package/dist/esm/anchor-button/anchor-button.js +123 -64
- package/dist/esm/anchor-button/anchor-button.js.map +1 -1
- package/dist/esm/anchor-button/anchor-button.options.js +26 -0
- package/dist/esm/anchor-button/anchor-button.options.js.map +1 -1
- package/dist/esm/anchor-button/anchor-button.styles.js +8 -8
- package/dist/esm/anchor-button/anchor-button.styles.js.map +1 -1
- package/dist/esm/anchor-button/anchor-button.template.js +21 -1
- package/dist/esm/anchor-button/anchor-button.template.js.map +1 -1
- package/dist/esm/anchor-button/index.js +3 -3
- package/dist/esm/anchor-button/index.js.map +1 -1
- package/dist/esm/avatar/avatar.bench.js +10 -0
- package/dist/esm/avatar/avatar.bench.js.map +1 -0
- package/dist/esm/avatar/avatar.js +43 -23
- package/dist/esm/avatar/avatar.js.map +1 -1
- package/dist/esm/avatar/avatar.styles.js +36 -36
- package/dist/esm/avatar/avatar.styles.js.map +1 -1
- package/dist/esm/avatar/avatar.template.js +2 -4
- package/dist/esm/avatar/avatar.template.js.map +1 -1
- package/dist/esm/avatar/index.js +2 -2
- package/dist/esm/avatar/index.js.map +1 -1
- package/dist/esm/badge/badge.bench.js +11 -0
- package/dist/esm/badge/badge.bench.js.map +1 -0
- package/dist/esm/badge/badge.definition.js +0 -3
- package/dist/esm/badge/badge.definition.js.map +1 -1
- package/dist/esm/badge/badge.js +2 -7
- package/dist/esm/badge/badge.js.map +1 -1
- package/dist/esm/badge/badge.styles.js +8 -1
- package/dist/esm/badge/badge.styles.js.map +1 -1
- package/dist/esm/badge/badge.template.js +2 -2
- package/dist/esm/badge/badge.template.js.map +1 -1
- package/dist/esm/badge/index.js +2 -2
- package/dist/esm/badge/index.js.map +1 -1
- package/dist/esm/button/button.bench.js +11 -0
- package/dist/esm/button/button.bench.js.map +1 -0
- package/dist/esm/button/button.definition.js +2 -6
- package/dist/esm/button/button.definition.js.map +1 -1
- package/dist/esm/button/button.js +264 -42
- package/dist/esm/button/button.js.map +1 -1
- package/dist/esm/button/button.options.js +20 -0
- package/dist/esm/button/button.options.js.map +1 -1
- package/dist/esm/button/button.styles.js +79 -70
- package/dist/esm/button/button.styles.js.map +1 -1
- package/dist/esm/button/button.template.js +23 -1
- package/dist/esm/button/button.template.js.map +1 -1
- package/dist/esm/button/index.js +4 -4
- package/dist/esm/button/index.js.map +1 -1
- package/dist/esm/checkbox/checkbox.bench.js +11 -0
- package/dist/esm/checkbox/checkbox.bench.js.map +1 -0
- package/dist/esm/checkbox/checkbox.definition.js +1 -1
- package/dist/esm/checkbox/checkbox.definition.js.map +1 -1
- package/dist/esm/checkbox/checkbox.js +371 -13
- package/dist/esm/checkbox/checkbox.js.map +1 -1
- package/dist/esm/checkbox/checkbox.options.js +0 -8
- package/dist/esm/checkbox/checkbox.options.js.map +1 -1
- package/dist/esm/checkbox/checkbox.styles.js +145 -123
- package/dist/esm/checkbox/checkbox.styles.js.map +1 -1
- package/dist/esm/checkbox/checkbox.template.js +34 -17
- package/dist/esm/checkbox/checkbox.template.js.map +1 -1
- package/dist/esm/checkbox/index.js +3 -3
- package/dist/esm/checkbox/index.js.map +1 -1
- package/dist/esm/compound-button/compound-button.bench.js +15 -0
- package/dist/esm/compound-button/compound-button.bench.js.map +1 -0
- package/dist/esm/compound-button/compound-button.definition.js +0 -6
- package/dist/esm/compound-button/compound-button.definition.js.map +1 -1
- package/dist/esm/compound-button/compound-button.options.js.map +1 -1
- package/dist/esm/compound-button/compound-button.styles.js +7 -7
- package/dist/esm/compound-button/compound-button.template.js +4 -40
- package/dist/esm/compound-button/compound-button.template.js.map +1 -1
- package/dist/esm/compound-button/index.js +2 -2
- package/dist/esm/compound-button/index.js.map +1 -1
- package/dist/esm/counter-badge/counter-badge.bench.js +11 -0
- package/dist/esm/counter-badge/counter-badge.bench.js.map +1 -0
- package/dist/esm/counter-badge/counter-badge.definition.js +0 -4
- package/dist/esm/counter-badge/counter-badge.definition.js.map +1 -1
- package/dist/esm/counter-badge/counter-badge.js +2 -7
- package/dist/esm/counter-badge/counter-badge.js.map +1 -1
- package/dist/esm/counter-badge/index.js +2 -2
- package/dist/esm/counter-badge/index.js.map +1 -1
- package/dist/esm/dialog/define.js +4 -0
- package/dist/esm/dialog/define.js.map +1 -0
- package/dist/esm/dialog/dialog.bench.js +11 -0
- package/dist/esm/dialog/dialog.bench.js.map +1 -0
- package/dist/esm/dialog/dialog.definition.js +17 -0
- package/dist/esm/dialog/dialog.definition.js.map +1 -0
- package/dist/esm/dialog/dialog.js +91 -0
- package/dist/esm/dialog/dialog.js.map +1 -0
- package/dist/esm/dialog/dialog.options.js +10 -0
- package/dist/esm/dialog/dialog.options.js.map +1 -0
- package/dist/esm/dialog/dialog.styles.js +86 -0
- package/dist/esm/dialog/dialog.styles.js.map +1 -0
- package/dist/esm/dialog/dialog.template.js +24 -0
- package/dist/esm/dialog/dialog.template.js.map +1 -0
- package/dist/esm/dialog/index.js +6 -0
- package/dist/esm/dialog/index.js.map +1 -0
- package/dist/esm/dialog-body/define.js +4 -0
- package/dist/esm/dialog-body/define.js.map +1 -0
- package/dist/esm/dialog-body/dialog-body.bench.js +11 -0
- package/dist/esm/dialog-body/dialog-body.bench.js.map +1 -0
- package/dist/esm/dialog-body/dialog-body.definition.js +17 -0
- package/dist/esm/dialog-body/dialog-body.definition.js.map +1 -0
- package/dist/esm/dialog-body/dialog-body.js +22 -0
- package/dist/esm/dialog-body/dialog-body.js.map +1 -0
- package/dist/esm/dialog-body/dialog-body.styles.js +79 -0
- package/dist/esm/dialog-body/dialog-body.styles.js.map +1 -0
- package/dist/esm/dialog-body/dialog-body.template.js +42 -0
- package/dist/esm/dialog-body/dialog-body.template.js.map +1 -0
- package/dist/esm/dialog-body/index.js +5 -0
- package/dist/esm/dialog-body/index.js.map +1 -0
- package/dist/esm/divider/divider.bench.js +10 -0
- package/dist/esm/divider/divider.bench.js.map +1 -0
- package/dist/esm/divider/divider.js +56 -11
- package/dist/esm/divider/divider.js.map +1 -1
- package/dist/esm/divider/divider.options.js +14 -5
- package/dist/esm/divider/divider.options.js.map +1 -1
- package/dist/esm/divider/divider.styles.js +1 -1
- package/dist/esm/divider/divider.styles.js.map +1 -1
- package/dist/esm/divider/divider.template.js +4 -1
- package/dist/esm/divider/divider.template.js.map +1 -1
- package/dist/esm/divider/index.js +2 -2
- package/dist/esm/divider/index.js.map +1 -1
- package/dist/esm/field/define.js +4 -0
- package/dist/esm/field/define.js.map +1 -0
- package/dist/esm/field/field.bench.js +10 -0
- package/dist/esm/field/field.bench.js.map +1 -0
- package/dist/esm/field/field.definition.js +20 -0
- package/dist/esm/field/field.definition.js.map +1 -0
- package/dist/esm/field/field.js +139 -0
- package/dist/esm/field/field.js.map +1 -0
- package/dist/esm/field/field.options.js +27 -0
- package/dist/esm/field/field.options.js.map +1 -0
- package/dist/esm/field/field.styles.js +186 -0
- package/dist/esm/field/field.styles.js.map +1 -0
- package/dist/esm/field/field.template.js +26 -0
- package/dist/esm/field/field.template.js.map +1 -0
- package/dist/esm/field/index.js +6 -0
- package/dist/esm/field/index.js.map +1 -0
- package/dist/esm/form-associated/form-associated.js +458 -0
- package/dist/esm/form-associated/form-associated.js.map +1 -0
- package/dist/esm/image/image.bench.js +14 -0
- package/dist/esm/image/image.bench.js.map +1 -0
- package/dist/esm/image/image.js +1 -6
- package/dist/esm/image/image.js.map +1 -1
- package/dist/esm/image/index.js +2 -2
- package/dist/esm/image/index.js.map +1 -1
- package/dist/esm/index-rollup.js +32 -1
- package/dist/esm/index-rollup.js.map +1 -1
- package/dist/esm/index.js +39 -30
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/label/index.js +2 -1
- package/dist/esm/label/index.js.map +1 -1
- package/dist/esm/label/label.bench.js +11 -0
- package/dist/esm/label/label.bench.js.map +1 -0
- package/dist/esm/label/label.js +1 -6
- package/dist/esm/label/label.js.map +1 -1
- package/dist/esm/label/label.styles.js +13 -6
- package/dist/esm/label/label.styles.js.map +1 -1
- package/dist/esm/link/define.js +4 -0
- package/dist/esm/link/define.js.map +1 -0
- package/dist/esm/link/index.js +5 -0
- package/dist/esm/link/index.js.map +1 -0
- package/dist/esm/link/link.bench.js +11 -0
- package/dist/esm/link/link.bench.js.map +1 -0
- package/dist/esm/link/link.definition.js +15 -0
- package/dist/esm/link/link.definition.js.map +1 -0
- package/dist/esm/link/link.js +36 -0
- package/dist/esm/link/link.js.map +1 -0
- package/dist/esm/link/link.options.js +21 -0
- package/dist/esm/link/link.options.js.map +1 -0
- package/dist/esm/link/link.styles.js +67 -0
- package/dist/esm/link/link.styles.js.map +1 -0
- package/dist/esm/link/link.template.js +22 -0
- package/dist/esm/link/link.template.js.map +1 -0
- package/dist/esm/menu/index.js +1 -1
- package/dist/esm/menu/index.js.map +1 -1
- package/dist/esm/menu/menu.bench.js +31 -0
- package/dist/esm/menu/menu.bench.js.map +1 -0
- package/dist/esm/menu/menu.js +26 -29
- package/dist/esm/menu/menu.js.map +1 -1
- package/dist/esm/menu-button/index.js +3 -3
- package/dist/esm/menu-button/index.js.map +1 -1
- package/dist/esm/menu-button/menu-button.bench.js +11 -0
- package/dist/esm/menu-button/menu-button.bench.js.map +1 -0
- package/dist/esm/menu-button/menu-button.definition.js +0 -6
- package/dist/esm/menu-button/menu-button.definition.js.map +1 -1
- package/dist/esm/menu-button/menu-button.options.js.map +1 -1
- package/dist/esm/menu-button/menu-button.template.js +6 -2
- package/dist/esm/menu-button/menu-button.template.js.map +1 -1
- package/dist/esm/menu-item/index.js +4 -3
- package/dist/esm/menu-item/index.js.map +1 -1
- package/dist/esm/menu-item/menu-item.bench.js +11 -0
- package/dist/esm/menu-item/menu-item.bench.js.map +1 -0
- package/dist/esm/menu-item/menu-item.definition.js +0 -4
- package/dist/esm/menu-item/menu-item.definition.js.map +1 -1
- package/dist/esm/menu-item/menu-item.js +265 -4
- package/dist/esm/menu-item/menu-item.js.map +1 -1
- package/dist/esm/menu-item/menu-item.options.js +27 -0
- package/dist/esm/menu-item/menu-item.options.js.map +1 -0
- package/dist/esm/menu-item/menu-item.styles.js +1 -1
- package/dist/esm/menu-item/menu-item.styles.js.map +1 -1
- package/dist/esm/menu-item/menu-item.template.js +57 -2
- package/dist/esm/menu-item/menu-item.template.js.map +1 -1
- package/dist/esm/menu-list/index.js +1 -1
- package/dist/esm/menu-list/index.js.map +1 -1
- package/dist/esm/menu-list/menu-list.bench.js +21 -0
- package/dist/esm/menu-list/menu-list.bench.js.map +1 -0
- package/dist/esm/menu-list/menu-list.definition.js +0 -4
- package/dist/esm/menu-list/menu-list.definition.js.map +1 -1
- package/dist/esm/menu-list/menu-list.js +262 -11
- package/dist/esm/menu-list/menu-list.js.map +1 -1
- package/dist/esm/menu-list/menu-list.styles.js +1 -1
- package/dist/esm/menu-list/menu-list.styles.js.map +1 -1
- package/dist/esm/menu-list/menu-list.template.js +13 -1
- package/dist/esm/menu-list/menu-list.template.js.map +1 -1
- package/dist/esm/patterns/aria-globals.js +72 -0
- package/dist/esm/patterns/aria-globals.js.map +1 -0
- package/dist/esm/patterns/index.js +3 -0
- package/dist/esm/patterns/index.js.map +1 -0
- package/dist/esm/patterns/start-end.js +29 -0
- package/dist/esm/patterns/start-end.js.map +1 -0
- package/dist/esm/progress-bar/index.js +2 -2
- package/dist/esm/progress-bar/index.js.map +1 -1
- package/dist/esm/progress-bar/progress-bar.bench.js +10 -0
- package/dist/esm/progress-bar/progress-bar.bench.js.map +1 -0
- package/dist/esm/progress-bar/progress-bar.js +66 -13
- package/dist/esm/progress-bar/progress-bar.js.map +1 -1
- package/dist/esm/progress-bar/progress-bar.options.js.map +1 -1
- package/dist/esm/progress-bar/progress-bar.styles.js +49 -128
- package/dist/esm/progress-bar/progress-bar.styles.js.map +1 -1
- package/dist/esm/progress-bar/progress-bar.template.js +11 -5
- package/dist/esm/progress-bar/progress-bar.template.js.map +1 -1
- package/dist/esm/radio/index.js +1 -1
- package/dist/esm/radio/index.js.map +1 -1
- package/dist/esm/radio/radio.bench.js +11 -0
- package/dist/esm/radio/radio.bench.js.map +1 -0
- package/dist/esm/radio/radio.form-associated.js +14 -0
- package/dist/esm/radio/radio.form-associated.js.map +1 -0
- package/dist/esm/radio/radio.js +91 -3
- package/dist/esm/radio/radio.js.map +1 -1
- package/dist/esm/radio/radio.styles.js +1 -1
- package/dist/esm/radio/radio.styles.js.map +1 -1
- package/dist/esm/radio/radio.template.js +28 -2
- package/dist/esm/radio/radio.template.js.map +1 -1
- package/dist/esm/radio-group/index.js +2 -2
- package/dist/esm/radio-group/index.js.map +1 -1
- package/dist/esm/radio-group/radio-group.bench.js +21 -0
- package/dist/esm/radio-group/radio-group.bench.js.map +1 -0
- package/dist/esm/radio-group/radio-group.js +347 -9
- package/dist/esm/radio-group/radio-group.js.map +1 -1
- package/dist/esm/radio-group/radio-group.options.js +7 -0
- package/dist/esm/radio-group/radio-group.options.js.map +1 -0
- package/dist/esm/radio-group/radio-group.styles.js +1 -1
- package/dist/esm/radio-group/radio-group.styles.js.map +1 -1
- package/dist/esm/radio-group/radio-group.template.js +30 -1
- package/dist/esm/radio-group/radio-group.template.js.map +1 -1
- package/dist/esm/slider/index.js +2 -2
- package/dist/esm/slider/index.js.map +1 -1
- package/dist/esm/slider/slider-utilities.js +12 -0
- package/dist/esm/slider/slider-utilities.js.map +1 -0
- package/dist/esm/slider/slider.bench.js +10 -0
- package/dist/esm/slider/slider.bench.js.map +1 -0
- package/dist/esm/slider/slider.form-associated.js +14 -0
- package/dist/esm/slider/slider.form-associated.js.map +1 -0
- package/dist/esm/slider/slider.js +433 -22
- package/dist/esm/slider/slider.js.map +1 -1
- package/dist/esm/slider/slider.options.js +11 -1
- package/dist/esm/slider/slider.options.js.map +1 -1
- package/dist/esm/slider/slider.styles.js +1 -1
- package/dist/esm/slider/slider.styles.js.map +1 -1
- package/dist/esm/slider/slider.template.js +39 -2
- package/dist/esm/slider/slider.template.js.map +1 -1
- package/dist/esm/spinner/index.js +2 -2
- package/dist/esm/spinner/index.js.map +1 -1
- package/dist/esm/spinner/spinner.bench.js +10 -0
- package/dist/esm/spinner/spinner.bench.js.map +1 -0
- package/dist/esm/spinner/spinner.definition.js +0 -4
- package/dist/esm/spinner/spinner.definition.js.map +1 -1
- package/dist/esm/spinner/spinner.js +13 -9
- package/dist/esm/spinner/spinner.js.map +1 -1
- package/dist/esm/spinner/spinner.styles.js +3 -17
- package/dist/esm/spinner/spinner.styles.js.map +1 -1
- package/dist/esm/spinner/spinner.template.js +8 -21
- package/dist/esm/spinner/spinner.template.js.map +1 -1
- package/dist/esm/styles/partials/badge.partials.js +1 -1
- package/dist/esm/styles/partials/badge.partials.js.map +1 -1
- package/dist/esm/styles/partials/index.js +1 -0
- package/dist/esm/styles/partials/index.js.map +1 -1
- package/dist/esm/styles/partials/typography.partials.js +105 -0
- package/dist/esm/styles/partials/typography.partials.js.map +1 -0
- package/dist/esm/switch/index.js +2 -2
- package/dist/esm/switch/index.js.map +1 -1
- package/dist/esm/switch/switch.bench.js +11 -0
- package/dist/esm/switch/switch.bench.js.map +1 -0
- package/dist/esm/switch/switch.form-associated.js +14 -0
- package/dist/esm/switch/switch.form-associated.js.map +1 -0
- package/dist/esm/switch/switch.js +2 -12
- package/dist/esm/switch/switch.js.map +1 -1
- package/dist/esm/switch/switch.styles.js +38 -58
- package/dist/esm/switch/switch.styles.js.map +1 -1
- package/dist/esm/switch/switch.template.js +15 -1
- package/dist/esm/switch/switch.template.js.map +1 -1
- package/dist/esm/tab/index.js +3 -3
- package/dist/esm/tab/index.js.map +1 -1
- package/dist/esm/tab/tab.bench.js +11 -0
- package/dist/esm/tab/tab.bench.js.map +1 -0
- package/dist/esm/tab/tab.js +9 -3
- package/dist/esm/tab/tab.js.map +1 -1
- package/dist/esm/tab/tab.styles.js +1 -1
- package/dist/esm/tab/tab.styles.js.map +1 -1
- package/dist/esm/tab/tab.template.js +1 -1
- package/dist/esm/tab/tab.template.js.map +1 -1
- package/dist/esm/tab-panel/index.js +1 -1
- package/dist/esm/tab-panel/index.js.map +1 -1
- package/dist/esm/tab-panel/tab-panel.bench.js +13 -0
- package/dist/esm/tab-panel/tab-panel.bench.js.map +1 -0
- package/dist/esm/tab-panel/tab-panel.js +2 -2
- package/dist/esm/tab-panel/tab-panel.js.map +1 -1
- package/dist/esm/tab-panel/tab-panel.styles.js +1 -1
- package/dist/esm/tab-panel/tab-panel.styles.js.map +1 -1
- package/dist/esm/tab-panel/tab-panel.template.js +8 -1
- package/dist/esm/tab-panel/tab-panel.template.js.map +1 -1
- package/dist/esm/tabs/index.js +4 -4
- package/dist/esm/tabs/index.js.map +1 -1
- package/dist/esm/tabs/tabs.bench.js +32 -0
- package/dist/esm/tabs/tabs.bench.js.map +1 -0
- package/dist/esm/tabs/tabs.js +292 -20
- package/dist/esm/tabs/tabs.js.map +1 -1
- package/dist/esm/tabs/tabs.options.js +6 -2
- package/dist/esm/tabs/tabs.options.js.map +1 -1
- package/dist/esm/tabs/tabs.styles.js +1 -1
- package/dist/esm/tabs/tabs.styles.js.map +1 -1
- package/dist/esm/tabs/tabs.template.js +14 -1
- package/dist/esm/tabs/tabs.template.js.map +1 -1
- package/dist/esm/text/index.js +2 -2
- package/dist/esm/text/index.js.map +1 -1
- package/dist/esm/text/text.bench.js +13 -0
- package/dist/esm/text/text.bench.js.map +1 -0
- package/dist/esm/text/text.js +1 -6
- package/dist/esm/text/text.js.map +1 -1
- package/dist/esm/text/text.styles.js +49 -25
- package/dist/esm/text/text.styles.js.map +1 -1
- package/dist/esm/text-input/index.js +4 -5
- package/dist/esm/text-input/index.js.map +1 -1
- package/dist/esm/text-input/text-input.bench.js +10 -0
- package/dist/esm/text-input/text-input.bench.js.map +1 -0
- package/dist/esm/text-input/text-input.definition.js +5 -3
- package/dist/esm/text-input/text-input.definition.js.map +1 -1
- package/dist/esm/text-input/text-input.js +398 -11
- package/dist/esm/text-input/text-input.js.map +1 -1
- package/dist/esm/text-input/text-input.options.js +35 -2
- package/dist/esm/text-input/text-input.options.js.map +1 -1
- package/dist/esm/text-input/text-input.styles.js +22 -12
- package/dist/esm/text-input/text-input.styles.js.map +1 -1
- package/dist/esm/text-input/text-input.template.js +55 -2
- package/dist/esm/text-input/text-input.template.js.map +1 -1
- package/dist/esm/theme/design-tokens.js +2181 -386
- package/dist/esm/theme/design-tokens.js.map +1 -1
- package/dist/esm/theme/set-theme.js +26 -3
- package/dist/esm/theme/set-theme.js.map +1 -1
- package/dist/esm/toggle-button/index.js +4 -4
- package/dist/esm/toggle-button/index.js.map +1 -1
- package/dist/esm/toggle-button/toggle-button.bench.js +11 -0
- package/dist/esm/toggle-button/toggle-button.bench.js.map +1 -0
- package/dist/esm/toggle-button/toggle-button.definition.js +0 -5
- package/dist/esm/toggle-button/toggle-button.definition.js.map +1 -1
- package/dist/esm/toggle-button/toggle-button.js +43 -91
- package/dist/esm/toggle-button/toggle-button.js.map +1 -1
- package/dist/esm/toggle-button/toggle-button.options.js.map +1 -1
- package/dist/esm/toggle-button/toggle-button.styles.js +31 -26
- package/dist/esm/toggle-button/toggle-button.styles.js.map +1 -1
- package/dist/esm/toggle-button/toggle-button.template.js +1 -1
- package/dist/esm/toggle-button/toggle-button.template.js.map +1 -1
- package/dist/esm/utils/behaviors/match-media-stylesheet-behavior.js +142 -0
- package/dist/esm/utils/behaviors/match-media-stylesheet-behavior.js.map +1 -0
- package/dist/esm/utils/benchmark-dependencies/tokens.js +2 -0
- package/dist/esm/utils/benchmark-dependencies/tokens.js.map +1 -0
- package/dist/esm/utils/benchmark-wrapper.js +18 -0
- package/dist/esm/utils/benchmark-wrapper.js.map +1 -0
- package/dist/esm/utils/direction.js +15 -0
- package/dist/esm/utils/direction.js.map +1 -0
- package/dist/esm/utils/display.js +15 -0
- package/dist/esm/utils/display.js.map +1 -0
- package/dist/esm/utils/element-internals.js +32 -0
- package/dist/esm/utils/element-internals.js.map +1 -0
- package/dist/esm/utils/get-initials.js.map +1 -1
- package/dist/esm/utils/index.js +7 -0
- package/dist/esm/utils/index.js.map +1 -0
- package/dist/esm/utils/template-helpers.js +19 -0
- package/dist/esm/utils/template-helpers.js.map +1 -0
- package/dist/esm/utils/typings.js +3 -0
- package/dist/esm/utils/typings.js.map +1 -0
- package/dist/esm/utils/whitespace-filter.js +13 -0
- package/dist/esm/utils/whitespace-filter.js.map +1 -0
- package/dist/web-components.d.ts +6220 -1635
- package/dist/web-components.js +5383 -6596
- package/dist/web-components.min.js +337 -191
- package/package.json +40 -13
- package/dist/fluent-web-components.api.json +0 -19686
- package/dist/storybook/108.78b731e00015540915a8.manager.bundle.js +0 -1
- package/dist/storybook/108.b31ec3a1.iframe.bundle.js +0 -1
- package/dist/storybook/316.bc4aabd3.iframe.bundle.js +0 -2
- package/dist/storybook/316.bc4aabd3.iframe.bundle.js.LICENSE.txt +0 -17
- package/dist/storybook/401.7edec720.iframe.bundle.js +0 -2
- package/dist/storybook/401.7edec720.iframe.bundle.js.LICENSE.txt +0 -12
- package/dist/storybook/401.c9bdfaf0dda8b194127f.manager.bundle.js +0 -2
- package/dist/storybook/401.c9bdfaf0dda8b194127f.manager.bundle.js.LICENSE.txt +0 -12
- package/dist/storybook/491.77b24750.iframe.bundle.js +0 -1
- package/dist/storybook/591.f5bf0d78d2f203de19f5.manager.bundle.js +0 -2
- package/dist/storybook/591.f5bf0d78d2f203de19f5.manager.bundle.js.LICENSE.txt +0 -94
- package/dist/storybook/677.939f187f.iframe.bundle.js +0 -462
- package/dist/storybook/677.939f187f.iframe.bundle.js.LICENSE.txt +0 -46
- package/dist/storybook/677.939f187f.iframe.bundle.js.map +0 -1
- package/dist/storybook/709.22096ad4.iframe.bundle.js +0 -2
- package/dist/storybook/709.22096ad4.iframe.bundle.js.LICENSE.txt +0 -8
- package/dist/storybook/709.b131e33993a6b94d7ad8.manager.bundle.js +0 -2
- package/dist/storybook/709.b131e33993a6b94d7ad8.manager.bundle.js.LICENSE.txt +0 -8
- package/dist/storybook/721.46fa9f53.iframe.bundle.js +0 -2
- package/dist/storybook/721.46fa9f53.iframe.bundle.js.LICENSE.txt +0 -31
- package/dist/storybook/721.c225c101a0a55a8f98eb.manager.bundle.js +0 -2
- package/dist/storybook/721.c225c101a0a55a8f98eb.manager.bundle.js.LICENSE.txt +0 -31
- package/dist/storybook/858.da40ed98.iframe.bundle.js +0 -1
- package/dist/storybook/858.e08e25a6901d2e21e9d8.manager.bundle.js +0 -1
- package/dist/storybook/950.674e7934b4a26a022608.manager.bundle.js +0 -1
- package/dist/storybook/954.630c5748.iframe.bundle.js +0 -1
- package/dist/storybook/954.7f985e2fdf9f15a7748b.manager.bundle.js +0 -1
- package/dist/storybook/SegoeUI-VF.ttf +0 -0
- package/dist/storybook/favicon.ico +0 -0
- package/dist/storybook/favicon.png +0 -0
- package/dist/storybook/iframe.html +0 -364
- package/dist/storybook/index.html +0 -165
- package/dist/storybook/main.5d7b916dc1e37293b1d8.manager.bundle.js +0 -1
- package/dist/storybook/main.b782e9fb.iframe.bundle.js +0 -2
- package/dist/storybook/main.b782e9fb.iframe.bundle.js.LICENSE.txt +0 -1
- package/dist/storybook/project.json +0 -1
- package/dist/storybook/runtime~main.5d918fe7.iframe.bundle.js +0 -1
- package/dist/storybook/runtime~main.dbf00b470fe610082919.manager.bundle.js +0 -1
- package/dist/storybook/shell.css +0 -83
- package/dist/storybook/theme-switch.ts +0 -13
- package/docs/api-report.md +0 -2427
- package/playwright.config.ts +0 -25
|
@@ -1,35 +1,59 @@
|
|
|
1
|
-
function e(e,t,o,r){var i,a=arguments.length,n=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,o,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(n=(a<3?i(n):a>3?i(t,o,n):i(t,o))||n);return a>3&&n&&Object.defineProperty(t,o,n),n}function t(e,t,o,r){return new(o||(o=Promise))((function(i,a){function n(e){try{l(r.next(e))}catch(e){a(e)}}function s(e){try{l(r.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof o?t:new o((function(e){e(t)}))).then(n,s)}l((r=r.apply(e,t||[])).next())}))}let o;try{if(document.currentScript)o=document.currentScript.getAttribute("fast-kernel");else{const e=document.getElementsByTagName("script");o=e[e.length-1].getAttribute("fast-kernel")}}catch(jh){o="isolate"}let r;switch(o){case"share":r=Object.freeze({updateQueue:1,observable:2,contextEvent:3,elementRegistry:4});break;case"share-v2":r=Object.freeze({updateQueue:1.2,observable:2.2,contextEvent:3.2,elementRegistry:4.2});break;default:const e="-"+Math.random().toString(36).substring(2,8);r=Object.freeze({updateQueue:"1.2"+e,observable:"2.2"+e,contextEvent:"3.2"+e,elementRegistry:"4.2"+e})}const i=e=>"function"==typeof e,a=e=>"string"==typeof e,n=()=>{};var s="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};!function(){if("undefined"==typeof globalThis)if(void 0!==s)s.globalThis=s;else if("undefined"!=typeof self)self.globalThis=self;else if("undefined"!=typeof window)window.globalThis=window;else{const e=new Function("return this")();e.globalThis=e}}();const l={configurable:!1,enumerable:!1,writable:!1};void 0===globalThis.FAST&&Reflect.defineProperty(globalThis,"FAST",Object.assign({value:Object.create(null)},l));const c=globalThis.FAST;if(void 0===c.getById){const e=Object.create(null);Reflect.defineProperty(c,"getById",Object.assign({value(t,o){let r=e[t];return void 0===r&&(r=o?e[t]=o():null),r}},l))}void 0===c.error&&Object.assign(c,{warn(){},error:e=>new Error("Error "+e),addMessages(){}});const d=Object.freeze([]);function h(){const e=new Map;return Object.freeze({register:t=>!e.has(t.type)&&(e.set(t.type,t),!0),getByType:t=>e.get(t),getForInstance(t){if(null!=t)return e.get(t.constructor)}})}function u(){const e=new WeakMap;return function(t){let o=e.get(t);if(void 0===o){let r=Reflect.getPrototypeOf(t);for(;void 0===o&&null!==r;)o=e.get(r),r=Reflect.getPrototypeOf(r);o=void 0===o?[]:o.slice(0),e.set(t,o)}return o}}function p(e){e.prototype.toJSON=n}const g=Object.freeze({none:0,attribute:1,booleanAttribute:2,property:3,content:4,tokenList:5,event:6}),b=e=>e,f=globalThis.trustedTypes?globalThis.trustedTypes.createPolicy("fast-html",{createHTML:b}):{createHTML:b};let m=Object.freeze({createHTML:e=>f.createHTML(e),protect:(e,t,o,r)=>r});const v=m,y=Object.freeze({get policy(){return m},setPolicy(e){if(m!==v)throw c.error(1201);m=e},setAttribute(e,t,o){null==o?e.removeAttribute(t):e.setAttribute(t,o)},setBooleanAttribute(e,t,o){o?e.setAttribute(t,""):e.removeAttribute(t)}}),k=c.getById(r.updateQueue,()=>{const e=[],t=[],o=globalThis.requestAnimationFrame;let r=!0;function i(){if(t.length)throw t.shift()}function a(o){try{o.call()}catch(o){if(!r)throw e.length=0,o;t.push(o),setTimeout(i,0)}}function n(){let t=0;for(;t<e.length;)if(a(e[t]),t++,t>1024){for(let o=0,r=e.length-t;o<r;o++)e[o]=e[o+t];e.length-=t,t=0}e.length=0}function s(t){e.push(t),e.length<2&&(r?o(n):n())}return Object.freeze({enqueue:s,next:()=>new Promise(s),process:n,setMode:e=>r=e})});class x{constructor(e,t){this.sub1=void 0,this.sub2=void 0,this.spillover=void 0,this.subject=e,this.sub1=t}has(e){return void 0===this.spillover?this.sub1===e||this.sub2===e:-1!==this.spillover.indexOf(e)}subscribe(e){const t=this.spillover;if(void 0===t){if(this.has(e))return;if(void 0===this.sub1)return void(this.sub1=e);if(void 0===this.sub2)return void(this.sub2=e);this.spillover=[this.sub1,this.sub2,e],this.sub1=void 0,this.sub2=void 0}else{-1===t.indexOf(e)&&t.push(e)}}unsubscribe(e){const t=this.spillover;if(void 0===t)this.sub1===e?this.sub1=void 0:this.sub2===e&&(this.sub2=void 0);else{const o=t.indexOf(e);-1!==o&&t.splice(o,1)}}notify(e){const t=this.spillover,o=this.subject;if(void 0===t){const t=this.sub1,r=this.sub2;void 0!==t&&t.handleChange(o,e),void 0!==r&&r.handleChange(o,e)}else for(let r=0,i=t.length;r<i;++r)t[r].handleChange(o,e)}}class ${constructor(e){this.subscribers={},this.subjectSubscribers=null,this.subject=e}notify(e){var t,o;null===(t=this.subscribers[e])||void 0===t||t.notify(e),null===(o=this.subjectSubscribers)||void 0===o||o.notify(e)}subscribe(e,t){var o,r;let i;i=t?null!==(o=this.subscribers[t])&&void 0!==o?o:this.subscribers[t]=new x(this.subject):null!==(r=this.subjectSubscribers)&&void 0!==r?r:this.subjectSubscribers=new x(this.subject),i.subscribe(e)}unsubscribe(e,t){var o,r;t?null===(o=this.subscribers[t])||void 0===o||o.unsubscribe(e):null===(r=this.subjectSubscribers)||void 0===r||r.unsubscribe(e)}}const w=Object.freeze({unknown:void 0,coupled:1}),B=c.getById(r.observable,()=>{const e=k.enqueue,t=/(:|&&|\|\||if|\?\.)/,o=new WeakMap;let r=void 0,n=e=>{throw c.error(1101)};function s(e){var t;let r=null!==(t=e.$fastController)&&void 0!==t?t:o.get(e);return void 0===r&&(Array.isArray(e)?r=n(e):o.set(e,r=new $(e))),r}const l=u();class d{constructor(e){this.name=e,this.field="_"+e,this.callback=e+"Changed"}getValue(e){return void 0!==r&&r.watch(e,this.name),e[this.field]}setValue(e,t){const o=this.field,r=e[o];if(r!==t){e[o]=t;const a=e[this.callback];i(a)&&a.call(e,r,t),s(e).notify(this.name)}}}class h extends x{constructor(e,t,o=!1){super(e,t),this.expression=e,this.isVolatileBinding=o,this.needsRefresh=!0,this.needsQueue=!0,this.isAsync=!0,this.first=this,this.last=null,this.propertySource=void 0,this.propertyName=void 0,this.notifier=void 0,this.next=void 0}setMode(e){this.isAsync=this.needsQueue=e}bind(e){this.controller=e;const t=this.observe(e.source,e.context);return!e.isBound&&this.requiresUnbind(e)&&e.onUnbind(this),t}requiresUnbind(e){return e.sourceLifetime!==w.coupled||this.first!==this.last||this.first.propertySource!==e.source}unbind(e){this.dispose()}observe(e,t){this.needsRefresh&&null!==this.last&&this.dispose();const o=r;let i;r=this.needsRefresh?this:void 0,this.needsRefresh=this.isVolatileBinding;try{i=this.expression(e,t)}finally{r=o}return i}disconnect(){this.dispose()}dispose(){if(null!==this.last){let e=this.first;for(;void 0!==e;)e.notifier.unsubscribe(this,e.propertyName),e=e.next;this.last=null,this.needsRefresh=this.needsQueue=this.isAsync}}watch(e,t){const o=this.last,i=s(e),a=null===o?this.first:{};if(a.propertySource=e,a.propertyName=t,a.notifier=i,i.subscribe(this,t),null!==o){if(!this.needsRefresh){let t;r=void 0,t=o.propertySource[o.propertyName],r=this,e===t&&(this.needsRefresh=!0)}o.next=a}this.last=a}handleChange(){this.needsQueue?(this.needsQueue=!1,e(this)):this.isAsync||this.call()}call(){null!==this.last&&(this.needsQueue=this.isAsync,this.notify(this))}*records(){let e=this.first;for(;void 0!==e;)yield e,e=e.next}}return p(h),Object.freeze({setArrayObserverFactory(e){n=e},getNotifier:s,track(e,t){r&&r.watch(e,t)},trackVolatile(){r&&(r.needsRefresh=!0)},notify(e,t){s(e).notify(t)},defineProperty(e,t){a(t)&&(t=new d(t)),l(e).push(t),Reflect.defineProperty(e,t.name,{enumerable:!0,get(){return t.getValue(this)},set(e){t.setValue(this,e)}})},getAccessors:l,binding(e,t,o=this.isVolatileBinding(e)){return new h(e,t,o)},isVolatileBinding:e=>t.test(e.toString())})});function C(e,t){B.defineProperty(e,t)}const S=c.getById(r.contextEvent,()=>{let e=null;return{get:()=>e,set(t){e=t}}}),P=Object.freeze({default:{index:0,length:0,get event(){return P.getEvent()},eventDetail(){return this.event.detail},eventTarget(){return this.event.target}},getEvent:()=>S.get(),setEvent(e){S.set(e)}});class T{constructor(e,t,o=!1){this.evaluate=e,this.policy=t,this.isVolatile=o}}class I extends T{createObserver(e){return B.binding(this.evaluate,e,this.isVolatile)}}function A(e,t,o=B.isVolatileBinding(e)){return new I(e,t,o)}class F extends T{createObserver(){return this}bind(e){return this.evaluate(e.source,e.context)}}function z(e,t){return new F(e,t)}let L;p(F);class N{constructor(e){this.styles=e,this.targets=new WeakSet,this._strategy=null,this.behaviors=e.map(e=>e instanceof N?e.behaviors:null).reduce((e,t)=>null===t?e:null===e?t:e.concat(t),null)}get strategy(){return null===this._strategy&&this.withStrategy(L),this._strategy}addStylesTo(e){this.strategy.addStylesTo(e),this.targets.add(e)}removeStylesFrom(e){this.strategy.removeStylesFrom(e),this.targets.delete(e)}isAttachedTo(e){return this.targets.has(e)}withBehaviors(...e){return this.behaviors=null===this.behaviors?e:this.behaviors.concat(e),this}withStrategy(e){return this._strategy=new e(function e(t){return t.map(t=>t instanceof N?e(t.styles):[t]).reduce((e,t)=>e.concat(t),[])}(this.styles)),this}static setDefaultStrategy(e){L=e}static normalize(e){return void 0===e?void 0:Array.isArray(e)?new N(e):e instanceof N?e:new N([e])}}N.supportsAdoptedStyleSheets=Array.isArray(document.adoptedStyleSheets)&&"replace"in CSSStyleSheet.prototype;const O=h(),D=Object.freeze({getForInstance:O.getForInstance,getByType:O.getByType,define:e=>(O.register({type:e}),e)});function E(e,t,o){t.source.style.setProperty(e.targetAspect,o.bind(t))}class M{constructor(e,t){this.dataBinding=e,this.targetAspect=t}createCSS(e){return e(this),`var(${this.targetAspect})`}addedCallback(e){var t;const o=e.source;if(!o.$cssBindings){o.$cssBindings=new Map;const e=o.setAttribute;o.setAttribute=(t,r)=>{e.call(o,t,r),"style"===t&&o.$cssBindings.forEach((e,t)=>E(t,e.controller,e.observer))}}const r=null!==(t=e[this.targetAspect])&&void 0!==t?t:e[this.targetAspect]=this.dataBinding.createObserver(this,this);r.controller=e,e.source.$cssBindings.set(this,{controller:e,observer:r})}connectedCallback(e){E(this,e,e[this.targetAspect])}removedCallback(e){e.source.$cssBindings&&e.source.$cssBindings.delete(this)}handleChange(e,t){E(this,t.controller,t)}}D.define(M);const R=""+Math.random().toString(36).substring(2,8);let H=0;const V=()=>`--v${R}${++H}`;function _(e,t){const o=[];let r="";const a=[],n=e=>{a.push(e)};for(let a=0,s=e.length-1;a<s;++a){r+=e[a];let s=t[a];i(s)?s=new M(A(s),V()).createCSS(n):s instanceof T?s=new M(s,V()).createCSS(n):void 0!==D.getForInstance(s)&&(s=s.createCSS(n)),s instanceof N||s instanceof CSSStyleSheet?(""!==r.trim()&&(o.push(r),r=""),o.push(s)):r+=s}return r+=e[e.length-1],""!==r.trim()&&o.push(r),{styles:o,behaviors:a}}const j=(e,...t)=>{const{styles:o,behaviors:r}=_(e,t),i=new N(o);return r.length?i.withBehaviors(...r):i};class G{constructor(e,t){this.behaviors=t,this.css="";const o=e.reduce((e,t)=>(a(t)?this.css+=t:e.push(t),e),[]);o.length&&(this.styles=new N(o))}createCSS(e){return this.behaviors.forEach(e),this.styles&&e(this),this.css}addedCallback(e){e.addStyles(this.styles)}removedCallback(e){e.removeStyles(this.styles)}}D.define(G),j.partial=(e,...t)=>{const{styles:o,behaviors:r}=_(e,t);return new G(o,r)};const q="fast-"+Math.random().toString(36).substring(2,8),X=q+"{",W="}"+q,U=W.length;let Y=0;const K=()=>`${q}-${++Y}`,Q=Object.freeze({interpolation:e=>`${X}${e}${W}`,attribute:e=>`${K()}="${X}${e}${W}"`,comment:e=>`\x3c!--${X}${e}${W}--\x3e`}),Z=Object.freeze({parse(e,t){const o=e.split(X);if(1===o.length)return null;const r=[];for(let e=0,i=o.length;e<i;++e){const i=o[e],a=i.indexOf(W);let n;if(-1===a)n=i;else{const e=i.substring(0,a);r.push(t[e]),n=i.substring(a+U)}""!==n&&r.push(n)}return r}}),J=h(),ee=Object.freeze({getForInstance:J.getForInstance,getByType:J.getByType,define:(e,t)=>((t=t||{}).type=e,J.register(t),e),assignAspect(e,t){if(t)switch(e.sourceAspect=t,t[0]){case":":e.targetAspect=t.substring(1),e.aspectType="classList"===e.targetAspect?g.tokenList:g.property;break;case"?":e.targetAspect=t.substring(1),e.aspectType=g.booleanAttribute;break;case"@":e.targetAspect=t.substring(1),e.aspectType=g.event;break;default:e.targetAspect=t,e.aspectType=g.attribute}else e.aspectType=g.content}});class te{constructor(e){this.options=e}createHTML(e){return Q.attribute(e(this))}createBehavior(){return this}}p(te);const oe={[g.attribute]:y.setAttribute,[g.booleanAttribute]:y.setBooleanAttribute,[g.property]:(e,t,o)=>e[t]=o,[g.content]:function(e,t,o,r){if(null==o&&(o=""),o.create){e.textContent="";let t=e.$fastView;void 0===t?t=o.create():e.$fastTemplate!==o&&(t.isComposed&&(t.remove(),t.unbind()),t=o.create()),t.isComposed?t.needsBindOnly&&(t.needsBindOnly=!1,t.bind(r.source,r.context)):(t.isComposed=!0,t.bind(r.source,r.context),t.insertBefore(e),e.$fastView=t,e.$fastTemplate=o)}else{const t=e.$fastView;void 0!==t&&t.isComposed&&(t.isComposed=!1,t.remove(),t.needsBindOnly?t.needsBindOnly=!1:t.unbind()),e.textContent=o}},[g.tokenList]:function(e,t,o){var r;const i=this.id+"-t",a=null!==(r=e[i])&&void 0!==r?r:e[i]={v:0,cv:Object.create(null)},n=a.cv;let s=a.v;const l=e[t];if(null!=o&&o.length){const e=o.split(/\s+/);for(let t=0,o=e.length;t<o;++t){const o=e[t];""!==o&&(n[o]=s,l.add(o))}}if(a.v=s+1,0!==s){s-=1;for(const e in n)n[e]===s&&l.remove(e)}},[g.event]:()=>{}};class re{constructor(e){this.dataBinding=e,this.updateTarget=null,this.aspectType=g.content}createHTML(e){return Q.interpolation(e(this))}createBehavior(){var e;if(null===this.updateTarget){const t=oe[this.aspectType],o=null!==(e=this.dataBinding.policy)&&void 0!==e?e:this.policy;if(!t)throw c.error(1205);this.data=this.id+"-d",this.updateTarget=o.protect(this.targetTagName,this.aspectType,this.targetAspect,t)}return this}bind(e){var t;const o=e.targets[this.targetNodeId];switch(this.aspectType){case g.event:o[this.data]=e,o.addEventListener(this.targetAspect,this,this.dataBinding.options);break;case g.content:e.onUnbind(this);default:const r=null!==(t=o[this.data])&&void 0!==t?t:o[this.data]=this.dataBinding.createObserver(this,this);r.target=o,r.controller=e,this.updateTarget(o,this.targetAspect,r.bind(e),e)}}unbind(e){const t=e.targets[this.targetNodeId].$fastView;void 0!==t&&t.isComposed&&(t.unbind(),t.needsBindOnly=!0)}handleEvent(e){const t=e.currentTarget[this.data];if(t.isBound){P.setEvent(e);const o=this.dataBinding.evaluate(t.source,t.context);P.setEvent(null),!0!==o&&e.preventDefault()}}handleChange(e,t){const o=t.target,r=t.controller;this.updateTarget(o,this.targetAspect,t.bind(r),r)}}function ie(e,t){const o=e.parentNode;let r,i=e;for(;i!==t;)r=i.nextSibling,o.removeChild(i),i=r;o.removeChild(t)}ee.define(re,{aspected:!0});class ae{constructor(e,t,o){this.fragment=e,this.factories=t,this.targets=o,this.behaviors=null,this.unbindables=[],this.source=null,this.isBound=!1,this.sourceLifetime=w.unknown,this.context=this,this.index=0,this.length=0,this.firstChild=e.firstChild,this.lastChild=e.lastChild}get event(){return P.getEvent()}get isEven(){return this.index%2==0}get isOdd(){return this.index%2!=0}get isFirst(){return 0===this.index}get isInMiddle(){return!this.isFirst&&!this.isLast}get isLast(){return this.index===this.length-1}eventDetail(){return this.event.detail}eventTarget(){return this.event.target}appendTo(e){e.appendChild(this.fragment)}insertBefore(e){if(this.fragment.hasChildNodes())e.parentNode.insertBefore(this.fragment,e);else{const t=this.lastChild;if(e.previousSibling===t)return;const o=e.parentNode;let r,i=this.firstChild;for(;i!==t;)r=i.nextSibling,o.insertBefore(i,e),i=r;o.insertBefore(t,e)}}remove(){const e=this.fragment,t=this.lastChild;let o,r=this.firstChild;for(;r!==t;)o=r.nextSibling,e.appendChild(r),r=o;e.appendChild(t)}dispose(){ie(this.firstChild,this.lastChild),this.unbind()}onUnbind(e){this.unbindables.push(e)}bind(e,t=this){if(this.source===e)return;let o=this.behaviors;if(null===o){this.source=e,this.context=t,this.behaviors=o=new Array(this.factories.length);const r=this.factories;for(let e=0,t=r.length;e<t;++e){const t=r[e].createBehavior();t.bind(this),o[e]=t}}else{null!==this.source&&this.evaluateUnbindables(),this.isBound=!1,this.source=e,this.context=t;for(let e=0,t=o.length;e<t;++e)o[e].bind(this)}this.isBound=!0}unbind(){this.isBound&&null!==this.source&&(this.evaluateUnbindables(),this.source=null,this.context=this,this.isBound=!1)}evaluateUnbindables(){const e=this.unbindables;for(let t=0,o=e.length;t<o;++t)e[t].unbind(this);e.length=0}static disposeContiguousBatch(e){if(0!==e.length){ie(e[0].firstChild,e[e.length-1].lastChild);for(let t=0,o=e.length;t<o;++t)e[t].unbind()}}}p(ae),B.defineProperty(ae.prototype,"index"),B.defineProperty(ae.prototype,"length");const ne=(e,t)=>`${e}.${t}`,se={},le={index:0,node:null};function ce(e){e.startsWith("fast-")||c.warn(1204,{name:e})}const de=new Proxy(document.createElement("div"),{get(e,t){ce(t);const o=Reflect.get(e,t);return i(o)?o.bind(e):o},set:(e,t,o)=>(ce(t),Reflect.set(e,t,o))});class he{constructor(e,t,o){this.fragment=e,this.directives=t,this.policy=o,this.proto=null,this.nodeIds=new Set,this.descriptors={},this.factories=[]}addFactory(e,t,o,r,i){var a,n;this.nodeIds.has(o)||(this.nodeIds.add(o),this.addTargetDescriptor(t,o,r)),e.id=null!==(a=e.id)&&void 0!==a?a:K(),e.targetNodeId=o,e.targetTagName=i,e.policy=null!==(n=e.policy)&&void 0!==n?n:this.policy,this.factories.push(e)}freeze(){return this.proto=Object.create(null,this.descriptors),this}addTargetDescriptor(e,t,o){const r=this.descriptors;if("r"===t||"h"===t||r[t])return;if(!r[e]){const t=e.lastIndexOf("."),o=e.substring(0,t),r=parseInt(e.substring(t+1));this.addTargetDescriptor(o,e,r)}let i=se[t];if(!i){const r="_"+t;se[t]=i={get(){var t;return null!==(t=this[r])&&void 0!==t?t:this[r]=this[e].childNodes[o]}}}r[t]=i}createView(e){const t=this.fragment.cloneNode(!0),o=Object.create(this.proto);o.r=t,o.h=null!=e?e:de;for(const e of this.nodeIds)o[e];return new ae(t,this.factories,o)}}function ue(e,t,o,r,i,a=!1){const n=o.attributes,s=e.directives;for(let l=0,c=n.length;l<c;++l){const d=n[l],h=d.value,u=Z.parse(h,s);let p=null;null===u?a&&(p=new re(z(()=>h,e.policy)),ee.assignAspect(p,d.name)):p=be.aggregate(u,e.policy),null!==p&&(o.removeAttributeNode(d),l--,c--,e.addFactory(p,t,r,i,o.tagName))}}function pe(e,t,o){let r=0,i=t.firstChild;for(;i;){const t=ge(e,o,i,r);i=t.node,r=t.index}}function ge(e,t,o,r){const i=ne(t,r);switch(o.nodeType){case 1:ue(e,t,o,i,r),pe(e,o,i);break;case 3:return function(e,t,o,r,i){const n=Z.parse(t.textContent,e.directives);if(null===n)return le.node=t.nextSibling,le.index=i+1,le;let s,l=s=t;for(let t=0,c=n.length;t<c;++t){const c=n[t];0!==t&&(i++,r=ne(o,i),s=l.parentNode.insertBefore(document.createTextNode(""),l.nextSibling)),a(c)?s.textContent=c:(s.textContent=" ",ee.assignAspect(c),e.addFactory(c,o,r,i,null)),l=s}return le.index=i+1,le.node=l.nextSibling,le}(e,o,t,i,r);case 8:const n=Z.parse(o.data,e.directives);null!==n&&e.addFactory(be.aggregate(n),t,i,r,null)}return le.index=r+1,le.node=o.nextSibling,le}const be={compile(e,t,o=y.policy){let r;if(a(e)){r=document.createElement("TEMPLATE"),r.innerHTML=o.createHTML(e);const t=r.content.firstElementChild;null!==t&&"TEMPLATE"===t.tagName&&(r=t)}else r=e;r.content.firstChild||r.content.lastChild||r.content.appendChild(document.createComment(""));const i=document.adoptNode(r.content),n=new he(i,t,o);var s,l;return ue(n,"",r,"h",0,!0),s=i.firstChild,l=t,(s&&8==s.nodeType&&null!==Z.parse(s.data,l)||1===i.childNodes.length&&Object.keys(t).length>0)&&i.insertBefore(document.createComment(""),i.firstChild),pe(n,i,"r"),le.node=null,n.freeze()},setDefaultStrategy(e){this.compile=e},aggregate(e,t=y.policy){if(1===e.length)return e[0];let o,r,i=!1,n=void 0;const s=e.length,l=e.map(e=>a(e)?()=>e:(o=e.sourceAspect||o,r=e.dataBinding||r,i=i||e.dataBinding.isVolatile,n=n||e.dataBinding.policy,e.dataBinding.evaluate));r.evaluate=(e,t)=>{let o="";for(let r=0;r<s;++r)o+=l[r](e,t);return o},r.isVolatile=i,r.policy=null!=n?n:t;const c=new re(r);return ee.assignAspect(c,o),c}},fe=/([ \x09\x0a\x0c\x0d])([^\0-\x1F\x7F-\x9F "'>=/]+)([ \x09\x0a\x0c\x0d]*=[ \x09\x0a\x0c\x0d]*(?:[^ \x09\x0a\x0c\x0d"'`<>=]*|"[^"]*|'[^']*))$/,me=Object.create(null);class ve{constructor(e,t=me){this.html=e,this.factories=t}createHTML(e){const t=this.factories;for(const o in t)e(t[o]);return this.html}}function ye(e,t,o,r=ee.getForInstance(e)){if(r.aspected){const o=fe.exec(t);null!==o&&ee.assignAspect(e,o[2])}return e.createHTML(o)}ve.empty=new ve(""),ee.define(ve);class ke{constructor(e,t={},o){this.policy=o,this.result=null,this.html=e,this.factories=t}create(e){return null===this.result&&(this.result=be.compile(this.html,this.factories,this.policy)),this.result.createView(e)}inline(){return new ve(a(this.html)?this.html:this.html.innerHTML,this.factories)}withPolicy(e){if(this.result)throw c.error(1208);if(this.policy)throw c.error(1207);return this.policy=e,this}render(e,t,o){const r=this.create(o);return r.bind(e),r.appendTo(t),r}static create(e,t,o){let r="";const a=Object.create(null),n=e=>{var t;const o=null!==(t=e.id)&&void 0!==t?t:e.id=K();return a[o]=e,o};for(let o=0,a=e.length-1;o<a;++o){const a=e[o];let s,l=t[o];if(r+=a,i(l))l=new re(A(l));else if(l instanceof T)l=new re(l);else if(!(s=ee.getForInstance(l))){const e=l;l=new re(z(()=>e))}r+=ye(l,a,n,s)}return new ke(r+e[e.length-1],a,o)}}p(ke);const xe=(e,...t)=>{if(Array.isArray(e)&&Array.isArray(e.raw))return ke.create(e,t);throw c.error(1206)};xe.partial=e=>new ve(e);class $e extends te{bind(e){e.source[this.options]=e.targets[this.targetNodeId]}}ee.define($e);const we=e=>new $e(e),Be=()=>null;function Ce(e){return void 0===e?Be:i(e)?e:()=>e}function Se(e,t,o){const r=i(e)?e:()=>e,a=Ce(t),n=Ce(o);return(e,t)=>r(e,t)?a(e,t):n(e,t)}const Pe=e=>1===e.nodeType,Te=e=>e?t=>1===t.nodeType&&t.matches(e):Pe;class Ie extends te{get id(){return this._id}set id(e){this._id=e,this._controllerProperty=e+"-c"}bind(e){const t=e.targets[this.targetNodeId];t[this._controllerProperty]=e,this.updateTarget(e.source,this.computeNodes(t)),this.observe(t),e.onUnbind(this)}unbind(e){const t=e.targets[this.targetNodeId];this.updateTarget(e.source,d),this.disconnect(t),t[this._controllerProperty]=null}getSource(e){return e[this._controllerProperty].source}updateTarget(e,t){e[this.options.property]=t}computeNodes(e){let t=this.getNodes(e);return"filter"in this.options&&(t=t.filter(this.options.filter)),t}}class Ae extends Ie{observe(e){e.addEventListener("slotchange",this)}disconnect(e){e.removeEventListener("slotchange",this)}getNodes(e){return e.assignedNodes(this.options)}handleEvent(e){const t=e.currentTarget;this.updateTarget(this.getSource(t),this.computeNodes(t))}}function Fe(e){return a(e)&&(e={property:e}),new Ae(e)}ee.define(Ae);const ze=Object.freeze({locate:u()}),Le={toView:e=>e?"true":"false",fromView:e=>null!=e&&"false"!==e&&!1!==e&&0!==e};function Ne(e){if(null==e)return null;const t=1*e;return isNaN(t)?null:t}const Oe={toView(e){const t=Ne(e);return t?t.toString():t},fromView:Ne};class De{constructor(e,t,o=t.toLowerCase(),r="reflect",i){this.guards=new Set,this.Owner=e,this.name=t,this.attribute=o,this.mode=r,this.converter=i,this.fieldName="_"+t,this.callbackName=t+"Changed",this.hasCallback=this.callbackName in e.prototype,"boolean"===r&&void 0===i&&(this.converter=Le)}setValue(e,t){const o=e[this.fieldName],r=this.converter;void 0!==r&&(t=r.fromView(t)),o!==t&&(e[this.fieldName]=t,this.tryReflectToAttribute(e),this.hasCallback&&e[this.callbackName](o,t),e.$fastController.notify(this.name))}getValue(e){return B.track(e,this.name),e[this.fieldName]}onAttributeChangedCallback(e,t){this.guards.has(e)||(this.guards.add(e),this.setValue(e,t),this.guards.delete(e))}tryReflectToAttribute(e){const t=this.mode,o=this.guards;o.has(e)||"fromView"===t||k.enqueue(()=>{o.add(e);const r=e[this.fieldName];switch(t){case"reflect":const t=this.converter;y.setAttribute(e,this.attribute,void 0!==t?t.toView(r):r);break;case"boolean":y.setBooleanAttribute(e,this.attribute,r)}o.delete(e)})}static collect(e,...t){const o=[];t.push(ze.locate(e));for(let r=0,i=t.length;r<i;++r){const i=t[r];if(void 0!==i)for(let t=0,r=i.length;t<r;++t){const r=i[t];a(r)?o.push(new De(e,r)):o.push(new De(e,r.property,r.attribute,r.mode,r.converter))}}return o}}function Ee(e,t){let o;function r(e,t){arguments.length>1&&(o.property=t),ze.locate(e.constructor).push(o)}return arguments.length>1?(o={},void r(e,t)):(o=void 0===e?{}:e,r)}const Me={mode:"open"},Re={},He=new Set,Ve=c.getById(r.elementRegistry,()=>h());class _e{constructor(e,t=e.definition){var o;this.platformDefined=!1,a(t)&&(t={name:t}),this.type=e,this.name=t.name,this.template=t.template,this.registry=null!==(o=t.registry)&&void 0!==o?o:customElements;const r=e.prototype,i=De.collect(e,t.attributes),n=new Array(i.length),s={},l={};for(let e=0,t=i.length;e<t;++e){const t=i[e];n[e]=t.attribute,s[t.name]=t,l[t.attribute]=t,B.defineProperty(r,t)}Reflect.defineProperty(e,"observedAttributes",{value:n,enumerable:!0}),this.attributes=i,this.propertyLookup=s,this.attributeLookup=l,this.shadowOptions=void 0===t.shadowOptions?Me:null===t.shadowOptions?void 0:Object.assign(Object.assign({},Me),t.shadowOptions),this.elementOptions=void 0===t.elementOptions?Re:Object.assign(Object.assign({},Re),t.elementOptions),this.styles=N.normalize(t.styles),Ve.register(this)}get isDefined(){return this.platformDefined}define(e=this.registry){const t=this.type;return e.get(this.name)||(this.platformDefined=!0,e.define(this.name,t,this.elementOptions)),this}static compose(e,t){return He.has(e)||Ve.getByType(e)?new _e(class extends e{},t):new _e(e,t)}static registerBaseType(e){He.add(e)}}_e.getByType=Ve.getByType,_e.getForInstance=Ve.getForInstance;const je={bubbles:!0,composed:!0,cancelable:!0},Ge=new WeakMap;function qe(e){var t,o;return null!==(o=null!==(t=e.shadowRoot)&&void 0!==t?t:Ge.get(e))&&void 0!==o?o:null}let Xe;class We extends ${constructor(e,t){super(e),this.boundObservables=null,this.needsInitialization=!0,this.hasExistingShadowRoot=!1,this._template=null,this.stage=3,this.guardBehaviorConnection=!1,this.behaviors=null,this._mainStyles=null,this.$fastController=this,this.view=null,this.source=e,this.definition=t;const o=t.shadowOptions;if(void 0!==o){let t=e.shadowRoot;t?this.hasExistingShadowRoot=!0:(t=e.attachShadow(o),"closed"===o.mode&&Ge.set(e,t))}const r=B.getAccessors(e);if(r.length>0){const t=this.boundObservables=Object.create(null);for(let o=0,i=r.length;o<i;++o){const i=r[o].name,a=e[i];void 0!==a&&(delete e[i],t[i]=a)}}}get isConnected(){return B.track(this,"isConnected"),1===this.stage}get context(){var e,t;return null!==(t=null===(e=this.view)||void 0===e?void 0:e.context)&&void 0!==t?t:P.default}get isBound(){var e,t;return null!==(t=null===(e=this.view)||void 0===e?void 0:e.isBound)&&void 0!==t&&t}get sourceLifetime(){var e;return null===(e=this.view)||void 0===e?void 0:e.sourceLifetime}get template(){var e;if(null===this._template){const t=this.definition;this.source.resolveTemplate?this._template=this.source.resolveTemplate():t.template&&(this._template=null!==(e=t.template)&&void 0!==e?e:null)}return this._template}set template(e){this._template!==e&&(this._template=e,this.needsInitialization||this.renderTemplate(e))}get mainStyles(){var e;if(null===this._mainStyles){const t=this.definition;this.source.resolveStyles?this._mainStyles=this.source.resolveStyles():t.styles&&(this._mainStyles=null!==(e=t.styles)&&void 0!==e?e:null)}return this._mainStyles}set mainStyles(e){this._mainStyles!==e&&(null!==this._mainStyles&&this.removeStyles(this._mainStyles),this._mainStyles=e,this.needsInitialization||this.addStyles(e))}onUnbind(e){var t;null===(t=this.view)||void 0===t||t.onUnbind(e)}addBehavior(e){var t,o;const r=null!==(t=this.behaviors)&&void 0!==t?t:this.behaviors=new Map,i=null!==(o=r.get(e))&&void 0!==o?o:0;0===i?(r.set(e,1),e.addedCallback&&e.addedCallback(this),!e.connectedCallback||this.guardBehaviorConnection||1!==this.stage&&0!==this.stage||e.connectedCallback(this)):r.set(e,i+1)}removeBehavior(e,t=!1){const o=this.behaviors;if(null===o)return;const r=o.get(e);void 0!==r&&(1===r||t?(o.delete(e),e.disconnectedCallback&&3!==this.stage&&e.disconnectedCallback(this),e.removedCallback&&e.removedCallback(this)):o.set(e,r-1))}addStyles(e){var t;if(!e)return;const o=this.source;if(e instanceof HTMLElement){(null!==(t=qe(o))&&void 0!==t?t:this.source).append(e)}else if(!e.isAttachedTo(o)){const t=e.behaviors;if(e.addStylesTo(o),null!==t)for(let e=0,o=t.length;e<o;++e)this.addBehavior(t[e])}}removeStyles(e){var t;if(!e)return;const o=this.source;if(e instanceof HTMLElement){(null!==(t=qe(o))&&void 0!==t?t:o).removeChild(e)}else if(e.isAttachedTo(o)){const t=e.behaviors;if(e.removeStylesFrom(o),null!==t)for(let e=0,o=t.length;e<o;++e)this.removeBehavior(t[e])}}connect(){if(3!==this.stage)return;if(this.stage=0,null!==this.boundObservables){const e=this.source,t=this.boundObservables,o=Object.keys(t);for(let r=0,i=o.length;r<i;++r){const i=o[r];e[i]=t[i]}this.boundObservables=null}const e=this.behaviors;if(null!==e){this.guardBehaviorConnection=!0;for(const t of e.keys())t.connectedCallback&&t.connectedCallback(this);this.guardBehaviorConnection=!1}this.needsInitialization?(this.renderTemplate(this.template),this.addStyles(this.mainStyles),this.needsInitialization=!1):null!==this.view&&this.view.bind(this.source),this.stage=1,B.notify(this,"isConnected")}disconnect(){if(1!==this.stage)return;this.stage=2,B.notify(this,"isConnected"),null!==this.view&&this.view.unbind();const e=this.behaviors;if(null!==e)for(const t of e.keys())t.disconnectedCallback&&t.disconnectedCallback(this);this.stage=3}onAttributeChangedCallback(e,t,o){const r=this.definition.attributeLookup[e];void 0!==r&&r.onAttributeChangedCallback(this.source,o)}emit(e,t,o){return 1===this.stage&&this.source.dispatchEvent(new CustomEvent(e,Object.assign(Object.assign({detail:t},je),o)))}renderTemplate(e){var t;const o=this.source,r=null!==(t=qe(o))&&void 0!==t?t:o;if(null!==this.view)this.view.dispose(),this.view=null;else if(!this.needsInitialization||this.hasExistingShadowRoot){this.hasExistingShadowRoot=!1;for(let e=r.firstChild;null!==e;e=r.firstChild)r.removeChild(e)}e&&(this.view=e.render(o,r,o),this.view.sourceLifetime=w.coupled)}static forCustomElement(e){const t=e.$fastController;if(void 0!==t)return t;const o=_e.getForInstance(e);if(void 0===o)throw c.error(1401);return e.$fastController=new Xe(e,o)}static setStrategy(e){Xe=e}}function Ue(e){var t;return"adoptedStyleSheets"in e?e:null!==(t=qe(e))&&void 0!==t?t:e.getRootNode()}p(We),We.setStrategy(We);class Ye{constructor(e){const t=Ye.styleSheetCache;this.sheets=e.map(e=>{if(e instanceof CSSStyleSheet)return e;let o=t.get(e);return void 0===o&&(o=new CSSStyleSheet,o.replaceSync(e),t.set(e,o)),o})}addStylesTo(e){Je(Ue(e),this.sheets)}removeStylesFrom(e){et(Ue(e),this.sheets)}}Ye.styleSheetCache=new Map;let Ke=0;function Qe(e){return e===document?document.body:e}class Ze{constructor(e){this.styles=e,this.styleClass="fast-"+ ++Ke}addStylesTo(e){e=Qe(Ue(e));const t=this.styles,o=this.styleClass;for(let r=0;r<t.length;r++){const i=document.createElement("style");i.innerHTML=t[r],i.className=o,e.append(i)}}removeStylesFrom(e){const t=(e=Qe(Ue(e))).querySelectorAll("."+this.styleClass);for(let o=0,r=t.length;o<r;++o)e.removeChild(t[o])}}let Je=(e,t)=>{e.adoptedStyleSheets=[...e.adoptedStyleSheets,...t]},et=(e,t)=>{e.adoptedStyleSheets=e.adoptedStyleSheets.filter(e=>-1===t.indexOf(e))};if(N.supportsAdoptedStyleSheets){try{document.adoptedStyleSheets.push(),document.adoptedStyleSheets.splice(),Je=(e,t)=>{e.adoptedStyleSheets.push(...t)},et=(e,t)=>{for(const o of t){const t=e.adoptedStyleSheets.indexOf(o);-1!==t&&e.adoptedStyleSheets.splice(t,1)}}}catch(jh){}N.setDefaultStrategy(Ye)}else N.setDefaultStrategy(Ze);function tt(e){const t=class extends e{constructor(){super(),We.forCustomElement(this)}$emit(e,t,o){return this.$fastController.emit(e,t,o)}connectedCallback(){this.$fastController.connect()}disconnectedCallback(){this.$fastController.disconnect()}attributeChangedCallback(e,t,o){this.$fastController.onAttributeChangedCallback(e,t,o)}};return _e.registerBaseType(t),t}const ot=Object.assign(tt(HTMLElement),{from:function(e){return tt(e)},define:function(e,t){return i(e)?_e.compose(e,t).define().type:_e.compose(this,e).define().type},compose:function(e,t){return i(e)?_e.compose(e,t):_e.compose(this,e)}}),rt={horizontal:"horizontal",vertical:"vertical"};function it(...e){return e.every(e=>e instanceof HTMLElement)}const at={ArrowDown:"ArrowDown",ArrowLeft:"ArrowLeft",ArrowRight:"ArrowRight",ArrowUp:"ArrowUp"};var nt;function st(e,t,o){return Math.min(Math.max(o,e),t)}!function(e){e.ltr="ltr",e.rtl="rtl"}(nt||(nt={}));let lt=0;function ct(e=""){return`${e}${lt++}`}class dt{}function ht(e){return e?"string"==typeof e?new ve(e):"inline"in e?e.inline():e:ve.empty}e([Ee({attribute:"aria-atomic"})],dt.prototype,"ariaAtomic",void 0),e([Ee({attribute:"aria-busy"})],dt.prototype,"ariaBusy",void 0),e([Ee({attribute:"aria-controls"})],dt.prototype,"ariaControls",void 0),e([Ee({attribute:"aria-current"})],dt.prototype,"ariaCurrent",void 0),e([Ee({attribute:"aria-describedby"})],dt.prototype,"ariaDescribedby",void 0),e([Ee({attribute:"aria-details"})],dt.prototype,"ariaDetails",void 0),e([Ee({attribute:"aria-disabled"})],dt.prototype,"ariaDisabled",void 0),e([Ee({attribute:"aria-errormessage"})],dt.prototype,"ariaErrormessage",void 0),e([Ee({attribute:"aria-flowto"})],dt.prototype,"ariaFlowto",void 0),e([Ee({attribute:"aria-haspopup"})],dt.prototype,"ariaHaspopup",void 0),e([Ee({attribute:"aria-hidden"})],dt.prototype,"ariaHidden",void 0),e([Ee({attribute:"aria-invalid"})],dt.prototype,"ariaInvalid",void 0),e([Ee({attribute:"aria-keyshortcuts"})],dt.prototype,"ariaKeyshortcuts",void 0),e([Ee({attribute:"aria-label"})],dt.prototype,"ariaLabel",void 0),e([Ee({attribute:"aria-labelledby"})],dt.prototype,"ariaLabelledby",void 0),e([Ee({attribute:"aria-live"})],dt.prototype,"ariaLive",void 0),e([Ee({attribute:"aria-owns"})],dt.prototype,"ariaOwns",void 0),e([Ee({attribute:"aria-relevant"})],dt.prototype,"ariaRelevant",void 0),e([Ee({attribute:"aria-roledescription"})],dt.prototype,"ariaRoledescription",void 0);class ut{}function pt(e){return xe`<slot name="end" ${we("end")}>${ht(e.end)}</slot>`.inline()}function gt(e){return xe`<slot name="start" ${we("start")}>${ht(e.start)}</slot>`.inline()}function bt(e,...t){const o=ze.locate(e);t.forEach(t=>{Object.getOwnPropertyNames(t.prototype).forEach(o=>{"constructor"!==o&&Object.defineProperty(e.prototype,o,Object.getOwnPropertyDescriptor(t.prototype,o))});ze.locate(t).forEach(e=>o.push(e))})}class ft extends ot{constructor(){super(...arguments),this.headinglevel=2,this.expanded=!1,this.disabled=!1,this.id=ct("accordion-"),this.clickHandler=e=>{this.disabled||this.$emit("click",e)}}}e([Ee({attribute:"heading-level",mode:"fromView",converter:Oe})],ft.prototype,"headinglevel",void 0),e([Ee({mode:"boolean"})],ft.prototype,"expanded",void 0),e([Ee({mode:"boolean"})],ft.prototype,"disabled",void 0),e([Ee],ft.prototype,"id",void 0),bt(ft,ut);const mt="single",vt="multi";class yt extends ot{constructor(){super(...arguments),this.expandmode=vt,this.activeItemIndex=0,this.change=()=>{this.$emit("change",this.activeid)},this.setItems=()=>{if(0===this.slottedAccordionItems.length)return;const e=Array.from(this.children);if(this.removeItemListeners(e),e.forEach(e=>B.getNotifier(e).subscribe(this,"disabled")),this.accordionItems=e.filter(e=>!e.hasAttribute("disabled")),this.accordionIds=this.getItemIds(),this.accordionItems.forEach((e,t)=>{e instanceof ft&&(e.addEventListener("click",this.activeItemChange),B.getNotifier(e).subscribe(this,"expanded"));const o=this.accordionIds[t];e.setAttribute("id","string"!=typeof o?"accordion-"+(t+1):o),this.activeid=this.accordionIds[this.activeItemIndex],e.addEventListener("keydown",this.handleItemKeyDown),e.addEventListener("focus",this.handleItemFocus)}),this.isSingleExpandMode()){const e=this.findExpandedItem();this.setSingleExpandMode(e)}},this.removeItemListeners=e=>{e.forEach((e,t)=>{B.getNotifier(e).unsubscribe(this,"disabled"),B.getNotifier(e).unsubscribe(this,"expanded"),e.removeEventListener("click",this.activeItemChange),e.removeEventListener("keydown",this.handleItemKeyDown),e.removeEventListener("focus",this.handleItemFocus)})},this.activeItemChange=e=>{e.defaultPrevented||e.target!==e.currentTarget||(e.preventDefault(),this.handleExpandedChange(e.target))},this.handleExpandedChange=e=>{e instanceof ft&&(this.activeid=e.getAttribute("id"),this.isSingleExpandMode()?this.setSingleExpandMode(e):(e.expanded=!e.expanded,this.activeItemIndex=this.accordionItems.indexOf(e)),this.change())},this.handleItemKeyDown=e=>{if(e.target===e.currentTarget)switch(this.accordionIds=this.getItemIds(),e.key){case"ArrowUp":e.preventDefault(),this.adjust(-1);break;case"ArrowDown":e.preventDefault(),this.adjust(1);break;case"Home":this.activeItemIndex=0,this.focusItem();break;case"End":this.activeItemIndex=this.accordionItems.length-1,this.focusItem()}},this.handleItemFocus=e=>{if(e.target===e.currentTarget){const t=e.target,o=this.activeItemIndex=Array.from(this.accordionItems).indexOf(t);this.activeItemIndex!==o&&-1!==o&&(this.activeItemIndex=o,this.activeid=this.accordionIds[this.activeItemIndex])}}}expandmodeChanged(e,t){if(!this.$fastController.isConnected)return;const o=this.findExpandedItem();o&&(t!==mt?null==o||o.expandbutton.removeAttribute("aria-disabled"):this.setSingleExpandMode(o))}slottedAccordionItemsChanged(e,t){this.$fastController.isConnected&&this.setItems()}handleChange(e,t){"disabled"===t?this.setItems():"expanded"===t&&e.expanded&&this.isSingleExpandMode()&&this.setSingleExpandMode(e)}findExpandedItem(){var e;return 0===this.accordionItems.length?null:null!==(e=this.accordionItems.find(e=>e instanceof ft&&e.expanded))&&void 0!==e?e:this.accordionItems[0]}setSingleExpandMode(e){if(0===this.accordionItems.length)return;const t=Array.from(this.accordionItems);this.activeItemIndex=t.indexOf(e),t.forEach((e,t)=>{this.activeItemIndex===t?(e.expanded=!0,e.expandbutton.setAttribute("aria-disabled","true")):(e.expanded=!1,e.hasAttribute("disabled")||e.expandbutton.removeAttribute("aria-disabled"))})}getItemIds(){return this.slottedAccordionItems.map(e=>e.id)}isSingleExpandMode(){return this.expandmode===mt}adjust(e){var t,o,r;this.activeItemIndex=(t=0,o=this.accordionItems.length-1,(r=this.activeItemIndex+e)<t?o:r>o?t:r),this.focusItem()}focusItem(){const e=this.accordionItems[this.activeItemIndex];e instanceof ft&&e.expandbutton.focus()}}e([Ee({attribute:"expand-mode"})],yt.prototype,"expandmode",void 0),e([C],yt.prototype,"slottedAccordionItems",void 0);class kt extends yt{}const xt=xe`<template><slot ${Fe({property:"slottedAccordionItems",filter:Te()})}></slot></template>`,$t=e=>{var t;return"rtl"===(null===(t=e.closest("[dir]"))||void 0===t?void 0:t.dir)?nt.rtl:nt.ltr};class wt extends class{constructor(e){this.listenerCache=new WeakMap,this.query=e}connectedCallback(e){const{query:t}=this;let o=this.listenerCache.get(e);o||(o=this.constructListener(e),this.listenerCache.set(e,o)),o.bind(t)(),t.addEventListener("change",o)}disconnectedCallback(e){const t=this.listenerCache.get(e);t&&this.query.removeEventListener("change",t)}}{constructor(e,t){super(e),this.styles=t}static with(e){return t=>new wt(e,t)}constructListener(e){let t=!1;const o=this.styles;return function(){const{matches:r}=this;r&&!t?(e.addStyles(o),t=r):!r&&t&&(e.removeStyles(o),t=r)}}removedCallback(e){e.removeStyles(this.styles)}}const Bt=wt.with(window.matchMedia("(forced-colors)"));wt.with(window.matchMedia("(prefers-color-scheme: dark)")),wt.with(window.matchMedia("(prefers-color-scheme: light)"));function Ct(e){return`:host([hidden]){display:none}:host{display:${e}}`}const St=e=>{var t;return e.nodeType!==Node.TEXT_NODE||!!(null===(t=e.nodeValue)||void 0===t?void 0:t.trim().length)},Pt=j`
|
|
2
|
-
${
|
|
3
|
-
|
|
4
|
-
:host{flex-direction:column;width:100%;contain:content}`,Tt=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElements}),It=kt.compose({name:Tt.prefix+"-accordion",template:xt,styles:Pt});var At=Object.defineProperty,Ft=Object.getOwnPropertyDescriptor,zt=(e,t,o,r)=>{for(var i,a=r>1?void 0:r?Ft(t,o):t,n=e.length-1;n>=0;n--)(i=e[n])&&(a=(r?i(t,o,a):i(a))||a);return r&&a&&At(t,o,a),a};class Lt extends ft{constructor(){super(...arguments),this.block=!1}}zt([Ee],Lt.prototype,"size",2),zt([Ee({mode:"boolean"})],Lt.prototype,"block",2),zt([Ee({attribute:"expand-icon-position"})],Lt.prototype,"expandIconPosition",2);const Nt={small:"small",medium:"medium",large:"large",extraLarge:"extra-large"},Ot={start:"start",end:"end"};function Dt(e){const t=e.parentElement;if(t)return t;{const t=e.getRootNode();if(t.host instanceof HTMLElement)return t.host}return null}Object.freeze({create(e){const t=[],o={};let r=null,i=!1;return{source:e,context:P.default,targets:o,get isBound(){return i},addBehaviorFactory(e,t){var o,r,i,a;const n=e;n.id=null!==(o=n.id)&&void 0!==o?o:K(),n.targetNodeId=null!==(r=n.targetNodeId)&&void 0!==r?r:K(),n.targetTagName=null!==(i=t.tagName)&&void 0!==i?i:null,n.policy=null!==(a=n.policy)&&void 0!==a?a:y.policy,this.addTarget(n.targetNodeId,t),this.addBehavior(n.createBehavior())},addTarget(e,t){o[e]=t},addBehavior(e){t.push(e),i&&e.bind(this)},onUnbind(e){null===r&&(r=[]),r.push(e)},connectedCallback(e){i||(i=!0,t.forEach(e=>e.bind(this)))},disconnectedCallback(e){i&&(i=!1,null!==r&&r.forEach(e=>e.unbind(this)))}}}});class Et{constructor(e){this.value=e,this.notifier=B.getNotifier(this),this.dependencies=new Set,this.binding=B.binding(e,this),this.binding.setMode(!1)}static getOrCreate(e){let t=Et.cache.get(e);return t||(t=new Et(e),Et.cache.set(e,t),t)}evaluate(e,t){return this.binding.observe(o=>{if(this.dependencies.add(o),t===o){if(e.parent)return e.parent.getTokenValue(o);throw new Error("DesignTokenNode has encountered a circular token reference. Avoid this by setting the token value for an ancestor node.")}return e.getTokenValue(o)})}handleChange(){this.notifier.notify(void 0)}}Et.cache=new WeakMap;class Mt{constructor(e,t,o,r){this.token=e,this.evaluator=t,this.node=o,this.subscriber=r,this.value=t.evaluate(o,e),this.subscriber&&B.getNotifier(this.evaluator).subscribe(this.subscriber)}dispose(){this.subscriber&&B.getNotifier(this.evaluator).unsubscribe(this.subscriber)}update(){return this.value=this.evaluator.evaluate(this.node,this.token),this}}class Rt{constructor(e,t,o,r){this.target=e,this.type=t,this.token=o,this.value=r}notify(){B.getNotifier(this.token).notify(this)}}class Ht{constructor(){this._parent=null,this._children=new Set,this._values=new Map,this._derived=new Map,this.dependencyGraph=new Map}static isDerivedTokenValue(e){return"function"==typeof e}static isDerivedFor(e,t){return e._derived.has(t)}static collectDerivedContext(e){const t=new Map;if(null===e.parent)return t;let o=Ht.getAssignedTokensForNode(e),r=e.parent;do{const e=Ht.getAssignedTokensForNode(r);for(let i=0,a=e.length;i<a;i++){const a=e[i];!o.includes(a)&&Ht.isDerivedFor(r,a)&&t.set(a,r._derived.get(a))}o=Array.from(new Set(o.concat(e))),r=r.parent}while(null!==r);return t}static getLocalTokenValue(e,t){return Ht.isAssigned(e,t)?Ht.isDerivedFor(e,t)?e._derived.get(t).value:e._values.get(t):void 0}static getOrCreateDependencyGraph(e,t){let o=e.dependencyGraph.get(t);return o||(o=new Set,e.dependencyGraph.set(t,o),o)}static notify(){const e=this._notifications;this._notifications=[];for(const t of e)t.notify()}static queueNotification(...e){this._notifications.push(...e)}static getAssignedTokensForNode(e){return Array.from(e._values.keys())}static composeAssignedTokensForNode(e){const t=new Set(Ht.getAssignedTokensForNode(e));let o=e.parent;for(;null!==o;){const e=Ht.getAssignedTokensForNode(o);for(const o of e)t.add(o);o=o.parent}return Array.from(t)}static isAssigned(e,t){return e._values.has(t)}get parent(){return this._parent}get children(){return Array.from(this._children)}appendChild(e){var t,o;let r=null;null!==e.parent&&(r=Ht.composeAssignedTokensForNode(e.parent),e.parent._children.delete(e));const i=Ht.composeAssignedTokensForNode(this),a=Ht.collectDerivedContext(this);e._parent=this,this._children.add(e);for(const o of i){let i=0;if(null!==r){const e=r.indexOf(o);-1!==e&&(i=1,r.splice(e,1))}e.dispatch(new Rt(this,i,o,null===(t=a.get(o))||void 0===t?void 0:t.evaluator.value))}if(null!==r&&r.length>0)for(const t of r)e.dispatch(new Rt(this,2,t,null===(o=a.get(t))||void 0===o?void 0:o.evaluator.value));Ht.notify()}removeChild(e){if(e.parent===this){const t=Ht.composeAssignedTokensForNode(this);e._parent=null,this._children.delete(e);for(const o of t)e.dispatch(new Rt(this,2,o));Ht.notify()}}dispose(){this.parent&&(this.parent._children.delete(this),this._parent=null);for(const[,e]of this._derived)e.dispose()}setTokenValue(e,t){const o=Ht.isAssigned(this,e)||Ht.isDerivedFor(this,e)?1:0,r=Ht.getLocalTokenValue(this,e);this._values.set(e,t),Ht.isDerivedFor(this,e)&&this.tearDownDerivedTokenValue(e);const i=Ht.isDerivedTokenValue(t),a=Ht.collectDerivedContext(this);let n;if(i){n=this.setupDerivedTokenValue(e,t,!0).value}else n=t;r!==n&&Ht.queueNotification(new Rt(this,o,e,t)),this.dispatch(new Rt(this,o,e,t)),a.forEach((e,t)=>{if(!Ht.isDerivedFor(this,t)){Ht.getLocalTokenValue(this,t)!==(e=this.setupDerivedTokenValue(t,e.evaluator.value)).value&&Ht.queueNotification(new Rt(this,1,t,e.evaluator.value)),this.dispatch(new Rt(this,0,t,e.evaluator.value))}}),Ht.notify()}getTokenValue(e){let t,o=this;for(;null!==o;){if(Ht.isDerivedFor(o,e)){t=o._derived.get(e).value;break}if(Ht.isAssigned(o,e)){t=o._values.get(e);break}o=o._parent}if(void 0!==t)return t;throw new Error(`No value set for token ${e} in node tree.`)}deleteTokenValue(e){if(Ht.isAssigned(this,e)){const t=Ht.getLocalTokenValue(this,e);let o;this._values.delete(e),this.tearDownDerivedTokenValue(e);try{o=this.getTokenValue(e)}catch(e){o=void 0}Ht.queueNotification(new Rt(this,2,e)),t!==o&&this.dispatch(new Rt(this,2,e)),Ht.notify()}}dispatch(e){var t,o,r;if(this!==e.target){const{token:i}=e,a=Ht.isAssigned(this,i),n=a&&(null===(t=this._derived.get(i))||void 0===t?void 0:t.evaluator.dependencies.has(i));if(a&&!n)return;2===e.type&&!a&&Ht.isDerivedFor(this,i)&&(this.tearDownDerivedTokenValue(i),Ht.queueNotification(new Rt(this,2,i))),n&&(e=new Rt(this,1,i,null===(o=this._derived.get(i))||void 0===o?void 0:o.evaluator.value));const{value:s}=e;if(s&&Ht.isDerivedTokenValue(s)){const t=Et.getOrCreate(s).dependencies;let o=!1;for(const e of t)if(Ht.isAssigned(this,e)){o=!0;break}if(o){const t=null===(r=this._derived.get(i))||void 0===r?void 0:r.value,o=this.setupDerivedTokenValue(i,s);if(t!==o.value){const r=new Rt(this,void 0===t?0:1,i,o.evaluator.value);Ht.queueNotification(r),e=r}}}}this.collectLocalChangeRecords(e).forEach(e=>{Ht.queueNotification(e),this.dispatch(e)}),this.notifyChildren(e)}collectLocalChangeRecords(e){const t=new Map;for(const o of Ht.getOrCreateDependencyGraph(this,e.token))o.value!==o.update().value&&t.set(o.token,new Rt(this,1,o.token,o.evaluator.value));return t}notifyChildren(...e){if(this.children.length)for(let t=0,o=this.children.length;t<o;t++)for(let o=0;o<e.length;o++)this.children[t].dispatch(e[o])}tearDownDerivedTokenValue(e){if(Ht.isDerivedFor(this,e)){const t=this._derived.get(e);t.dispose(),this._derived.delete(e),t.evaluator.dependencies.forEach(e=>{Ht.getOrCreateDependencyGraph(this,e).delete(t)})}}setupDerivedTokenValue(e,t,o=!1){const r=new Mt(e,Et.getOrCreate(t),this,o?{handleChange:()=>{if(r.value!==r.update().value){const e=new Rt(this,1,r.token,r.evaluator.value);Ht.queueNotification(e),this.dispatch(e),Ht.notify()}}}:void 0);return this._derived.set(e,r),r.evaluator.dependencies.forEach(t=>{t!==e&&Ht.getOrCreateDependencyGraph(this,t).add(r)}),r}}Ht._notifications=[];class Vt{setProperty(e,t){k.enqueue(()=>this.target.setProperty(e,t))}removeProperty(e){k.enqueue(()=>this.target.removeProperty(e))}}class _t extends Vt{constructor(){super();const e=new CSSStyleSheet;this.target=e.cssRules[e.insertRule(":root{}")].style,document.adoptedStyleSheets=[...document.adoptedStyleSheets,e]}}class jt extends Vt{constructor(){super(),this.style=document.createElement("style"),document.head.appendChild(this.style);const{sheet:e}=this.style;if(e){const t=e.insertRule(":root{}",e.cssRules.length);this.target=e.cssRules[t].style}}}class Gt{constructor(e){this.store=new Map,this.target=null;const t=e.$fastController;this.style=document.createElement("style"),t.addStyles(this.style),B.getNotifier(t).subscribe(this,"isConnected"),this.handleChange(t,"isConnected")}targetChanged(){if(null!==this.target)for(const[e,t]of this.store.entries())this.target.setProperty(e,t)}setProperty(e,t){this.store.set(e,t),k.enqueue(()=>{null!==this.target&&this.target.setProperty(e,t)})}removeProperty(e){this.store.delete(e),k.enqueue(()=>{null!==this.target&&this.target.removeProperty(e)})}handleChange(e,t){const{sheet:o}=this.style;if(o){const e=o.insertRule(":host{}",o.cssRules.length);this.target=o.cssRules[e].style}else this.target=null}}e([C],Gt.prototype,"target",void 0);class qt{setProperty(e,t){qt.properties[e]=t;for(const o of qt.roots.values())o.setProperty(e,t)}removeProperty(e){delete qt.properties[e];for(const t of qt.roots.values())t.removeProperty(e)}static registerRoot(e){const{roots:t}=qt;if(!t.has(e)){t.add(e);for(const t in qt.properties)e.setProperty(t,qt.properties[t])}}static unregisterRoot(e){const{roots:t}=qt;if(t.has(e)){t.delete(e);for(const t in qt.properties)e.removeProperty(t)}}}qt.roots=new Set,qt.properties={};const Xt=new WeakMap,Wt=N.supportsAdoptedStyleSheets?class extends Vt{constructor(e){super();const t=new CSSStyleSheet;this.target=t.cssRules[t.insertRule(":host{}")].style,e.$fastController.addStyles(new N([t]))}}:Gt,Ut=Object.freeze({getOrCreate(e){if(Xt.has(e))return Xt.get(e);let t;return t=e instanceof Document?N.supportsAdoptedStyleSheets?new _t:new jt:new Wt(e),Xt.set(e,t),t}});class Yt{constructor(e){this.subscriberNotifier={handleChange:(e,t)=>{const o={target:t.target===Jt.defaultNode?"default":t.target.target,token:this};this.subscribers.notify(o)}},this.name=e.name,B.getNotifier(this).subscribe(this.subscriberNotifier)}get $value(){return this.default}get default(){return Jt.defaultNode.getTokenValue(this)}get subscribers(){return this._subscribers||(this._subscribers=new x(this)),this._subscribers}static isCSSDesignTokenConfiguration(e){return"string"==typeof e.cssCustomPropertyName}static create(e){return"string"==typeof e?new Kt({name:e,cssCustomPropertyName:e}):Yt.isCSSDesignTokenConfiguration(e)?new Kt(e):new Yt(e)}static withStrategy(e){Jt.withStrategy(e)}static registerDefaultStyleTarget(e=document){(e instanceof ot||e instanceof Document)&&(e=Ut.getOrCreate(e)),qt.registerRoot(e)}static unregisterDefaultStyleTarget(e=document){(e instanceof ot||e instanceof Document)&&(e=Ut.getOrCreate(e)),qt.unregisterRoot(e)}getValueFor(e){return Jt.getOrCreate(e).getTokenValue(this)}setValueFor(e,t){Jt.getOrCreate(e).setTokenValue(this,this.normalizeValue(t))}deleteValueFor(e){return Jt.getOrCreate(e).deleteTokenValue(this),this}withDefault(e){return Jt.defaultNode.setTokenValue(this,this.normalizeValue(e)),this}subscribe(e){this.subscribers.subscribe(e)}unsubscribe(e){this.subscribers.unsubscribe(e)}alias(e){return t=>t(e)}normalizeValue(e){return e instanceof Yt&&(e=this.alias(e)),e}}let Kt=class extends Yt{constructor(e){super(e),this.cssReflector={handleChange:(e,t)=>{const o=t.target===Jt.defaultNode?Jt.rootStyleSheetTarget:t.target instanceof Jt?Ut.getOrCreate(t.target.target):null;o&&(2===t.type?o.removeProperty(this.cssCustomProperty):o.setProperty(this.cssCustomProperty,this.resolveCSSValue(t.target.getTokenValue(this))))}},this.cssCustomProperty="--"+e.cssCustomPropertyName,this.cssVar=`var(${this.cssCustomProperty})`,B.getNotifier(this).subscribe(this.cssReflector)}createCSS(){return this.cssVar}createHTML(){return this.cssVar}resolveCSSValue(e){return e&&"function"==typeof e.createCSS?e.createCSS():e}};var Qt;Kt=e([function(e){D.define(e)},function(e){ee.define(e,Qt)}],Kt);const Zt={contains:function(e,t){let o=t;for(;null!==o;){if(o===e)return!0;o=Dt(o)}return!1},parent(e){let t=Dt(e);for(;null!==t;){if(t instanceof ot)return t;t=Dt(t)}return null}};class Jt extends Ht{constructor(e){super(),this.target=e,this.setTokenValue=this.lazyAttachToDefault(super.setTokenValue),this.getTokenValue=this.lazyAttachToDefault(super.getTokenValue),this.deleteTokenValue=this.lazyAttachToDefault(super.deleteTokenValue)}static get strategy(){return void 0===this._strategy&&Jt.withStrategy(Zt),this._strategy}connectedCallback(e){let t=Jt.findParent(e.source);if(null===t&&(t=Jt.defaultNode),t!==this.parent){const o=[];for(const r of t.children)r instanceof Jt&&Jt.strategy.contains(e.source,r.target)&&o.push(r);t.appendChild(this);for(const e of o)this.appendChild(e)}}disconnectedCallback(e){Jt.cache.delete(this.target),this.dispose()}static getOrCreate(e){let t=Jt.cache.get(e);return t||(t=new Jt(e),Jt.cache.set(e,t),e.$fastController.addBehavior(Jt.strategy),e.$fastController.addBehavior(t),t)}static withStrategy(e){this._strategy=e}static findParent(e){let t=Jt.strategy.parent(e);for(;null!==t;){const e=Jt.cache.get(t);if(e)return e;t=Jt.strategy.parent(t)}return null}lazyAttachToDefault(e){return(...t)=>(null===this.parent&&Jt.defaultNode.appendChild(this),e.apply(this,t))}}Jt.defaultNode=new Ht,Jt.rootStyleSheetTarget=new qt,Jt.cache=new WeakMap;const{create:eo}=Yt,to=eo("borderRadiusNone"),oo=eo("borderRadiusSmall"),ro=eo("borderRadiusMedium"),io=eo("borderRadiusLarge"),ao=eo("borderRadiusXLarge"),no=eo("borderRadiusCircular"),so=eo("fontSizeBase100"),lo=eo("fontSizeBase200"),co=eo("fontSizeBase300"),ho=eo("fontSizeBase400"),uo=eo("fontSizeBase500"),po=eo("fontSizeBase600"),go=eo("fontSizeHero700"),bo=eo("fontSizeHero800"),fo=eo("fontSizeHero900"),mo=eo("fontSizeHero1000"),vo=eo("lineHeightBase100"),yo=eo("lineHeightBase200"),ko=eo("lineHeightBase300"),xo=eo("lineHeightBase400"),$o=eo("lineHeightBase500"),wo=eo("lineHeightBase600"),Bo=eo("lineHeightHero700"),Co=eo("lineHeightHero800"),So=eo("lineHeightHero900"),Po=eo("lineHeightHero1000"),To=eo("fontFamilyBase"),Io=eo("fontFamilyMonospace"),Ao=eo("fontFamilyNumeric"),Fo=eo("fontWeightRegular"),zo=eo("fontWeightMedium"),Lo=eo("fontWeightSemibold"),No=eo("fontWeightBold"),Oo=eo("strokeWidthThin"),Do=eo("strokeWidthThick"),Eo=eo("strokeWidthThicker"),Mo=eo("strokeWidthThickest"),Ro=eo("spacingHorizontalNone"),Ho=eo("spacingHorizontalXXS"),Vo=eo("spacingHorizontalXS"),_o=eo("spacingHorizontalSNudge"),jo=eo("spacingHorizontalS"),Go=eo("spacingHorizontalMNudge"),qo=eo("spacingHorizontalM"),Xo=eo("spacingHorizontalL"),Wo=eo("spacingHorizontalXL"),Uo=eo("spacingHorizontalXXL"),Yo=eo("spacingHorizontalXXXL"),Ko=eo("spacingVerticalNone"),Qo=eo("spacingVerticalXXS"),Zo=eo("spacingVerticalXS"),Jo=eo("spacingVerticalSNudge"),er=eo("spacingVerticalS"),tr=eo("spacingVerticalMNudge"),or=eo("spacingVerticalM"),rr=eo("spacingVerticalL"),ir=eo("spacingVerticalXL"),ar=eo("spacingVerticalXXL"),nr=eo("spacingVerticalXXXL"),sr=eo("durationUltraFast"),lr=eo("durationFaster"),cr=eo("durationFast"),dr=eo("durationNormal"),hr=eo("durationSlow"),ur=eo("durationSlower"),pr=eo("durationUltraSlow"),gr=eo("curveAccelerateMax"),br=eo("curveAccelerateMid"),fr=eo("curveAccelerateMin"),mr=eo("curveDecelerateMax"),vr=eo("curveDecelerateMid"),yr=eo("curveDecelerateMin"),kr=eo("curveEasyEaseMax"),xr=eo("curveEasyEase"),$r=eo("curveLinear"),wr=eo("colorNeutralForeground1"),Br=eo("colorNeutralForeground1Hover"),Cr=eo("colorNeutralForeground1Pressed"),Sr=eo("colorNeutralForeground1Selected"),Pr=eo("colorNeutralForeground2"),Tr=eo("colorNeutralForeground2Hover"),Ir=eo("colorNeutralForeground2Pressed"),Ar=eo("colorNeutralForeground2Selected"),Fr=eo("colorNeutralForeground2BrandHover"),zr=eo("colorNeutralForeground2BrandPressed"),Lr=eo("colorNeutralForeground2BrandSelected"),Nr=eo("colorNeutralForeground3"),Or=eo("colorNeutralForeground3Hover"),Dr=eo("colorNeutralForeground3Pressed"),Er=eo("colorNeutralForeground3Selected"),Mr=eo("colorNeutralForeground3BrandHover"),Rr=eo("colorNeutralForeground3BrandPressed"),Hr=eo("colorNeutralForeground3BrandSelected"),Vr=eo("colorNeutralForeground4"),_r=eo("colorNeutralForegroundDisabled"),jr=eo("colorNeutralForegroundInvertedDisabled"),Gr=eo("colorBrandForegroundLink"),qr=eo("colorBrandForegroundLinkHover"),Xr=eo("colorBrandForegroundLinkPressed"),Wr=eo("colorBrandForegroundLinkSelected"),Ur=eo("colorNeutralForeground2Link"),Yr=eo("colorNeutralForeground2LinkHover"),Kr=eo("colorNeutralForeground2LinkPressed"),Qr=eo("colorNeutralForeground2LinkSelected"),Zr=eo("colorCompoundBrandForeground1"),Jr=eo("colorCompoundBrandForeground1Hover"),ei=eo("colorCompoundBrandForeground1Pressed"),ti=eo("colorBrandForeground1"),oi=eo("colorBrandForeground2"),ri=eo("colorNeutralForeground1Static"),ii=eo("colorNeutralForegroundStaticInverted"),ai=eo("colorNeutralForegroundInverted"),ni=eo("colorNeutralForegroundInvertedHover"),si=eo("colorNeutralForegroundInvertedPressed"),li=eo("colorNeutralForegroundInvertedSelected"),ci=eo("colorNeutralForegroundInverted2"),di=eo("colorNeutralForegroundOnBrand"),hi=eo("colorNeutralForegroundInvertedLink"),ui=eo("colorNeutralForegroundInvertedLinkHover"),pi=eo("colorNeutralForegroundInvertedLinkPressed"),gi=eo("colorNeutralForegroundInvertedLinkSelected"),bi=eo("colorBrandForegroundInverted"),fi=eo("colorBrandForegroundInvertedHover"),mi=eo("colorBrandForegroundInvertedPressed"),vi=eo("colorBrandForegroundOnLight"),yi=eo("colorBrandForegroundOnLightHover"),ki=eo("colorBrandForegroundOnLightPressed"),xi=eo("colorBrandForegroundOnLightSelected"),$i=eo("colorNeutralBackground1"),wi=eo("colorNeutralBackground1Hover"),Bi=eo("colorNeutralBackground1Pressed"),Ci=eo("colorNeutralBackground1Selected"),Si=eo("colorNeutralBackground2"),Pi=eo("colorNeutralBackground2Hover"),Ti=eo("colorNeutralBackground2Pressed"),Ii=eo("colorNeutralBackground2Selected"),Ai=eo("colorNeutralBackground3"),Fi=eo("colorNeutralBackground3Hover"),zi=eo("colorNeutralBackground3Pressed"),Li=eo("colorNeutralBackground3Selected"),Ni=eo("colorNeutralBackground4"),Oi=eo("colorNeutralBackground4Hover"),Di=eo("colorNeutralBackground4Pressed"),Ei=eo("colorNeutralBackground4Selected"),Mi=eo("colorNeutralBackground5"),Ri=eo("colorNeutralBackground5Hover"),Hi=eo("colorNeutralBackground5Pressed"),Vi=eo("colorNeutralBackground5Selected"),_i=eo("colorNeutralBackground6"),ji=eo("colorNeutralBackgroundInverted"),Gi=eo("colorNeutralBackgroundStatic"),qi=eo("colorSubtleBackground"),Xi=eo("colorSubtleBackgroundHover"),Wi=eo("colorSubtleBackgroundPressed"),Ui=eo("colorSubtleBackgroundSelected"),Yi=eo("colorSubtleBackgroundLightAlphaHover"),Ki=eo("colorSubtleBackgroundLightAlphaPressed"),Qi=eo("colorSubtleBackgroundLightAlphaSelected"),Zi=eo("colorSubtleBackgroundInverted"),Ji=eo("colorSubtleBackgroundInvertedHover"),ea=eo("colorSubtleBackgroundInvertedPressed"),ta=eo("colorSubtleBackgroundInvertedSelected"),oa=eo("colorTransparentBackground"),ra=eo("colorTransparentBackgroundHover"),ia=eo("colorTransparentBackgroundPressed"),aa=eo("colorTransparentBackgroundSelected"),na=eo("colorNeutralBackgroundDisabled"),sa=eo("colorNeutralBackgroundInvertedDisabled"),la=eo("colorNeutralStencil1"),ca=eo("colorNeutralStencil2"),da=eo("colorNeutralStencil1Alpha"),ha=eo("colorNeutralStencil2Alpha"),ua=eo("colorBackgroundOverlay"),pa=eo("colorScrollbarOverlay"),ga=eo("colorBrandBackground"),ba=eo("colorBrandBackgroundHover"),fa=eo("colorBrandBackgroundPressed"),ma=eo("colorBrandBackgroundSelected"),va=eo("colorCompoundBrandBackground"),ya=eo("colorCompoundBrandBackgroundHover"),ka=eo("colorCompoundBrandBackgroundPressed"),xa=eo("colorBrandBackgroundStatic"),$a=eo("colorBrandBackground2"),wa=eo("colorBrandBackgroundInverted"),Ba=eo("colorBrandBackgroundInvertedHover"),Ca=eo("colorBrandBackgroundInvertedPressed"),Sa=eo("colorBrandBackgroundInvertedSelected"),Pa=eo("colorNeutralStrokeAccessible"),Ta=eo("colorNeutralStrokeAccessibleHover"),Ia=eo("colorNeutralStrokeAccessiblePressed"),Aa=eo("colorNeutralStrokeAccessibleSelected"),Fa=eo("colorNeutralStroke1"),za=eo("colorNeutralStroke1Hover"),La=eo("colorNeutralStroke1Pressed"),Na=eo("colorNeutralStroke1Selected"),Oa=eo("colorNeutralStroke2"),Da=eo("colorNeutralStroke3"),Ea=eo("colorNeutralStrokeOnBrand"),Ma=eo("colorNeutralStrokeOnBrand2"),Ra=eo("colorNeutralStrokeOnBrand2Hover"),Ha=eo("colorNeutralStrokeOnBrand2Pressed"),Va=eo("colorNeutralStrokeOnBrand2Selected"),_a=eo("colorBrandStroke1"),ja=eo("colorBrandStroke2"),Ga=eo("colorCompoundBrandStroke"),qa=eo("colorCompoundBrandStrokeHover"),Xa=eo("colorCompoundBrandStrokePressed"),Wa=eo("colorNeutralStrokeDisabled"),Ua=eo("colorNeutralStrokeInvertedDisabled"),Ya=eo("colorTransparentStroke"),Ka=eo("colorTransparentStrokeInteractive"),Qa=eo("colorTransparentStrokeDisabled"),Za=eo("colorStrokeFocus1"),Ja=eo("colorStrokeFocus2"),en=eo("colorNeutralShadowAmbient"),tn=eo("colorNeutralShadowKey"),on=eo("colorNeutralShadowAmbientLighter"),rn=eo("colorNeutralShadowKeyLighter"),an=eo("colorNeutralShadowAmbientDarker"),nn=eo("colorNeutralShadowKeyDarker"),sn=eo("colorBrandShadowAmbient"),ln=eo("colorBrandShadowKey"),cn=eo("colorPaletteRedBackground1"),dn=eo("colorPaletteRedBackground2"),hn=eo("colorPaletteRedBackground3"),un=eo("colorPaletteRedForeground1"),pn=eo("colorPaletteRedForeground2"),gn=eo("colorPaletteRedForeground3"),bn=eo("colorPaletteRedBorderActive"),fn=eo("colorPaletteRedBorder1"),mn=eo("colorPaletteRedBorder2"),vn=eo("colorPaletteGreenBackground1"),yn=eo("colorPaletteGreenBackground2"),kn=eo("colorPaletteGreenBackground3"),xn=eo("colorPaletteGreenForeground1"),$n=eo("colorPaletteGreenForeground2"),wn=eo("colorPaletteGreenForeground3"),Bn=eo("colorPaletteGreenBorderActive"),Cn=eo("colorPaletteGreenBorder1"),Sn=eo("colorPaletteGreenBorder2"),Pn=eo("colorPaletteDarkOrangeBackground1"),Tn=eo("colorPaletteDarkOrangeBackground2"),In=eo("colorPaletteDarkOrangeBackground3"),An=eo("colorPaletteDarkOrangeForeground1"),Fn=eo("colorPaletteDarkOrangeForeground2"),zn=eo("colorPaletteDarkOrangeForeground3"),Ln=eo("colorPaletteDarkOrangeBorderActive"),Nn=eo("colorPaletteDarkOrangeBorder1"),On=eo("colorPaletteDarkOrangeBorder2"),Dn=eo("colorPaletteYellowBackground1"),En=eo("colorPaletteYellowBackground2"),Mn=eo("colorPaletteYellowBackground3"),Rn=eo("colorPaletteYellowForeground1"),Hn=eo("colorPaletteYellowForeground2"),Vn=eo("colorPaletteYellowForeground3"),_n=eo("colorPaletteYellowBorderActive"),jn=eo("colorPaletteYellowBorder1"),Gn=eo("colorPaletteYellowBorder2"),qn=eo("colorPaletteBerryBackground1"),Xn=eo("colorPaletteBerryBackground2"),Wn=eo("colorPaletteBerryBackground3"),Un=eo("colorPaletteBerryForeground1"),Yn=eo("colorPaletteBerryForeground2"),Kn=eo("colorPaletteBerryForeground3"),Qn=eo("colorPaletteBerryBorderActive"),Zn=eo("colorPaletteBerryBorder1"),Jn=eo("colorPaletteBerryBorder2"),es=eo("colorPaletteLightGreenBackground1"),ts=eo("colorPaletteLightGreenBackground2"),os=eo("colorPaletteLightGreenBackground3"),rs=eo("colorPaletteLightGreenForeground1"),is=eo("colorPaletteLightGreenForeground2"),as=eo("colorPaletteLightGreenForeground3"),ns=eo("colorPaletteLightGreenBorderActive"),ss=eo("colorPaletteLightGreenBorder1"),ls=eo("colorPaletteLightGreenBorder2"),cs=eo("colorPaletteMarigoldBackground1"),ds=eo("colorPaletteMarigoldBackground2"),hs=eo("colorPaletteMarigoldBackground3"),us=eo("colorPaletteMarigoldForeground1"),ps=eo("colorPaletteMarigoldForeground2"),gs=eo("colorPaletteMarigoldForeground3"),bs=eo("colorPaletteMarigoldBorderActive"),fs=eo("colorPaletteMarigoldBorder1"),ms=eo("colorPaletteMarigoldBorder2"),vs=eo("colorPaletteDarkRedBackground2"),ys=eo("colorPaletteDarkRedForeground2"),ks=eo("colorPaletteDarkRedBorderActive"),xs=eo("colorPaletteCranberryBackground2"),$s=eo("colorPaletteCranberryForeground2"),ws=eo("colorPaletteCranberryBorderActive"),Bs=eo("colorPalettePumpkinBackground2"),Cs=eo("colorPalettePumpkinForeground2"),Ss=eo("colorPalettePumpkinBorderActive"),Ps=eo("colorPalettePeachBackground2"),Ts=eo("colorPalettePeachForeground2"),Is=eo("colorPalettePeachBorderActive"),As=eo("colorPaletteGoldBackground2"),Fs=eo("colorPaletteGoldForeground2"),zs=eo("colorPaletteGoldBorderActive"),Ls=eo("colorPaletteBrassBackground2"),Ns=eo("colorPaletteBrassForeground2"),Os=eo("colorPaletteBrassBorderActive"),Ds=eo("colorPaletteBrownBackground2"),Es=eo("colorPaletteBrownForeground2"),Ms=eo("colorPaletteBrownBorderActive"),Rs=eo("colorPaletteForestBackground2"),Hs=eo("colorPaletteForestForeground2"),Vs=eo("colorPaletteForestBorderActive"),_s=eo("colorPaletteSeafoamBackground2"),js=eo("colorPaletteSeafoamForeground2"),Gs=eo("colorPaletteSeafoamBorderActive"),qs=eo("colorPaletteDarkGreenBackground2"),Xs=eo("colorPaletteDarkGreenForeground2"),Ws=eo("colorPaletteDarkGreenBorderActive"),Us=eo("colorPaletteLightTealBackground2"),Ys=eo("colorPaletteLightTealForeground2"),Ks=eo("colorPaletteLightTealBorderActive"),Qs=eo("colorPaletteTealBackground2"),Zs=eo("colorPaletteTealForeground2"),Js=eo("colorPaletteTealBorderActive"),el=eo("colorPaletteSteelBackground2"),tl=eo("colorPaletteSteelForeground2"),ol=eo("colorPaletteSteelBorderActive"),rl=eo("colorPaletteBlueBackground2"),il=eo("colorPaletteBlueForeground2"),al=eo("colorPaletteBlueBorderActive"),nl=eo("colorPaletteRoyalBlueBackground2"),sl=eo("colorPaletteRoyalBlueForeground2"),ll=eo("colorPaletteRoyalBlueBorderActive"),cl=eo("colorPaletteCornflowerBackground2"),dl=eo("colorPaletteCornflowerForeground2"),hl=eo("colorPaletteCornflowerBorderActive"),ul=eo("colorPaletteNavyBackground2"),pl=eo("colorPaletteNavyForeground2"),gl=eo("colorPaletteNavyBorderActive"),bl=eo("colorPaletteLavenderBackground2"),fl=eo("colorPaletteLavenderForeground2"),ml=eo("colorPaletteLavenderBorderActive"),vl=eo("colorPalettePurpleBackground2"),yl=eo("colorPalettePurpleForeground2"),kl=eo("colorPalettePurpleBorderActive"),xl=eo("colorPaletteGrapeBackground2"),$l=eo("colorPaletteGrapeForeground2"),wl=eo("colorPaletteGrapeBorderActive"),Bl=eo("colorPaletteLilacBackground2"),Cl=eo("colorPaletteLilacForeground2"),Sl=eo("colorPaletteLilacBorderActive"),Pl=eo("colorPalettePinkBackground2"),Tl=eo("colorPalettePinkForeground2"),Il=eo("colorPalettePinkBorderActive"),Al=eo("colorPaletteMagentaBackground2"),Fl=eo("colorPaletteMagentaForeground2"),zl=eo("colorPaletteMagentaBorderActive"),Ll=eo("colorPalettePlumBackground2"),Nl=eo("colorPalettePlumForeground2"),Ol=eo("colorPalettePlumBorderActive"),Dl=eo("colorPaletteBeigeBackground2"),El=eo("colorPaletteBeigeForeground2"),Ml=eo("colorPaletteBeigeBorderActive"),Rl=eo("colorPaletteMinkBackground2"),Hl=eo("colorPaletteMinkForeground2"),Vl=eo("colorPaletteMinkBorderActive"),_l=eo("colorPalettePlatinumBackground2"),jl=eo("colorPalettePlatinumForeground2"),Gl=eo("colorPalettePlatinumBorderActive"),ql=eo("colorPaletteAnchorBackground2"),Xl=eo("colorPaletteAnchorForeground2"),Wl=eo("colorPaletteAnchorBorderActive"),Ul=eo("colorPaletteRedForegroundInverted"),Yl=eo("colorPaletteGreenForegroundInverted"),Kl=eo("colorPaletteYellowForegroundInverted"),Ql=eo("shadow2"),Zl=eo("shadow4"),Jl=eo("shadow8"),ec=eo("shadow16"),tc=eo("shadow28"),oc=eo("shadow64"),rc=eo("shadow2Brand"),ic=eo("shadow4Brand"),ac=eo("shadow8Brand"),nc=eo("shadow16Brand"),sc=eo("shadow28Brand"),lc=eo("shadow64Brand");var cc=Object.freeze({__proto__:null,borderRadiusNone:to,borderRadiusSmall:oo,borderRadiusMedium:ro,borderRadiusLarge:io,borderRadiusXLarge:ao,borderRadiusCircular:no,fontSizeBase100:so,fontSizeBase200:lo,fontSizeBase300:co,fontSizeBase400:ho,fontSizeBase500:uo,fontSizeBase600:po,fontSizeHero700:go,fontSizeHero800:bo,fontSizeHero900:fo,fontSizeHero1000:mo,lineHeightBase100:vo,lineHeightBase200:yo,lineHeightBase300:ko,lineHeightBase400:xo,lineHeightBase500:$o,lineHeightBase600:wo,lineHeightHero700:Bo,lineHeightHero800:Co,lineHeightHero900:So,lineHeightHero1000:Po,fontFamilyBase:To,fontFamilyMonospace:Io,fontFamilyNumeric:Ao,fontWeightRegular:Fo,fontWeightMedium:zo,fontWeightSemibold:Lo,fontWeightBold:No,strokeWidthThin:Oo,strokeWidthThick:Do,strokeWidthThicker:Eo,strokeWidthThickest:Mo,spacingHorizontalNone:Ro,spacingHorizontalXXS:Ho,spacingHorizontalXS:Vo,spacingHorizontalSNudge:_o,spacingHorizontalS:jo,spacingHorizontalMNudge:Go,spacingHorizontalM:qo,spacingHorizontalL:Xo,spacingHorizontalXL:Wo,spacingHorizontalXXL:Uo,spacingHorizontalXXXL:Yo,spacingVerticalNone:Ko,spacingVerticalXXS:Qo,spacingVerticalXS:Zo,spacingVerticalSNudge:Jo,spacingVerticalS:er,spacingVerticalMNudge:tr,spacingVerticalM:or,spacingVerticalL:rr,spacingVerticalXL:ir,spacingVerticalXXL:ar,spacingVerticalXXXL:nr,durationUltraFast:sr,durationFaster:lr,durationFast:cr,durationNormal:dr,durationSlow:hr,durationSlower:ur,durationUltraSlow:pr,curveAccelerateMax:gr,curveAccelerateMid:br,curveAccelerateMin:fr,curveDecelerateMax:mr,curveDecelerateMid:vr,curveDecelerateMin:yr,curveEasyEaseMax:kr,curveEasyEase:xr,curveLinear:$r,colorNeutralForeground1:wr,colorNeutralForeground1Hover:Br,colorNeutralForeground1Pressed:Cr,colorNeutralForeground1Selected:Sr,colorNeutralForeground2:Pr,colorNeutralForeground2Hover:Tr,colorNeutralForeground2Pressed:Ir,colorNeutralForeground2Selected:Ar,colorNeutralForeground2BrandHover:Fr,colorNeutralForeground2BrandPressed:zr,colorNeutralForeground2BrandSelected:Lr,colorNeutralForeground3:Nr,colorNeutralForeground3Hover:Or,colorNeutralForeground3Pressed:Dr,colorNeutralForeground3Selected:Er,colorNeutralForeground3BrandHover:Mr,colorNeutralForeground3BrandPressed:Rr,colorNeutralForeground3BrandSelected:Hr,colorNeutralForeground4:Vr,colorNeutralForegroundDisabled:_r,colorNeutralForegroundInvertedDisabled:jr,colorBrandForegroundLink:Gr,colorBrandForegroundLinkHover:qr,colorBrandForegroundLinkPressed:Xr,colorBrandForegroundLinkSelected:Wr,colorNeutralForeground2Link:Ur,colorNeutralForeground2LinkHover:Yr,colorNeutralForeground2LinkPressed:Kr,colorNeutralForeground2LinkSelected:Qr,colorCompoundBrandForeground1:Zr,colorCompoundBrandForeground1Hover:Jr,colorCompoundBrandForeground1Pressed:ei,colorBrandForeground1:ti,colorBrandForeground2:oi,colorNeutralForeground1Static:ri,colorNeutralForegroundStaticInverted:ii,colorNeutralForegroundInverted:ai,colorNeutralForegroundInvertedHover:ni,colorNeutralForegroundInvertedPressed:si,colorNeutralForegroundInvertedSelected:li,colorNeutralForegroundInverted2:ci,colorNeutralForegroundOnBrand:di,colorNeutralForegroundInvertedLink:hi,colorNeutralForegroundInvertedLinkHover:ui,colorNeutralForegroundInvertedLinkPressed:pi,colorNeutralForegroundInvertedLinkSelected:gi,colorBrandForegroundInverted:bi,colorBrandForegroundInvertedHover:fi,colorBrandForegroundInvertedPressed:mi,colorBrandForegroundOnLight:vi,colorBrandForegroundOnLightHover:yi,colorBrandForegroundOnLightPressed:ki,colorBrandForegroundOnLightSelected:xi,colorNeutralBackground1:$i,colorNeutralBackground1Hover:wi,colorNeutralBackground1Pressed:Bi,colorNeutralBackground1Selected:Ci,colorNeutralBackground2:Si,colorNeutralBackground2Hover:Pi,colorNeutralBackground2Pressed:Ti,colorNeutralBackground2Selected:Ii,colorNeutralBackground3:Ai,colorNeutralBackground3Hover:Fi,colorNeutralBackground3Pressed:zi,colorNeutralBackground3Selected:Li,colorNeutralBackground4:Ni,colorNeutralBackground4Hover:Oi,colorNeutralBackground4Pressed:Di,colorNeutralBackground4Selected:Ei,colorNeutralBackground5:Mi,colorNeutralBackground5Hover:Ri,colorNeutralBackground5Pressed:Hi,colorNeutralBackground5Selected:Vi,colorNeutralBackground6:_i,colorNeutralBackgroundInverted:ji,colorNeutralBackgroundStatic:Gi,colorSubtleBackground:qi,colorSubtleBackgroundHover:Xi,colorSubtleBackgroundPressed:Wi,colorSubtleBackgroundSelected:Ui,colorSubtleBackgroundLightAlphaHover:Yi,colorSubtleBackgroundLightAlphaPressed:Ki,colorSubtleBackgroundLightAlphaSelected:Qi,colorSubtleBackgroundInverted:Zi,colorSubtleBackgroundInvertedHover:Ji,colorSubtleBackgroundInvertedPressed:ea,colorSubtleBackgroundInvertedSelected:ta,colorTransparentBackground:oa,colorTransparentBackgroundHover:ra,colorTransparentBackgroundPressed:ia,colorTransparentBackgroundSelected:aa,colorNeutralBackgroundDisabled:na,colorNeutralBackgroundInvertedDisabled:sa,colorNeutralStencil1:la,colorNeutralStencil2:ca,colorNeutralStencil1Alpha:da,colorNeutralStencil2Alpha:ha,colorBackgroundOverlay:ua,colorScrollbarOverlay:pa,colorBrandBackground:ga,colorBrandBackgroundHover:ba,colorBrandBackgroundPressed:fa,colorBrandBackgroundSelected:ma,colorCompoundBrandBackground:va,colorCompoundBrandBackgroundHover:ya,colorCompoundBrandBackgroundPressed:ka,colorBrandBackgroundStatic:xa,colorBrandBackground2:$a,colorBrandBackgroundInverted:wa,colorBrandBackgroundInvertedHover:Ba,colorBrandBackgroundInvertedPressed:Ca,colorBrandBackgroundInvertedSelected:Sa,colorNeutralStrokeAccessible:Pa,colorNeutralStrokeAccessibleHover:Ta,colorNeutralStrokeAccessiblePressed:Ia,colorNeutralStrokeAccessibleSelected:Aa,colorNeutralStroke1:Fa,colorNeutralStroke1Hover:za,colorNeutralStroke1Pressed:La,colorNeutralStroke1Selected:Na,colorNeutralStroke2:Oa,colorNeutralStroke3:Da,colorNeutralStrokeOnBrand:Ea,colorNeutralStrokeOnBrand2:Ma,colorNeutralStrokeOnBrand2Hover:Ra,colorNeutralStrokeOnBrand2Pressed:Ha,colorNeutralStrokeOnBrand2Selected:Va,colorBrandStroke1:_a,colorBrandStroke2:ja,colorCompoundBrandStroke:Ga,colorCompoundBrandStrokeHover:qa,colorCompoundBrandStrokePressed:Xa,colorNeutralStrokeDisabled:Wa,colorNeutralStrokeInvertedDisabled:Ua,colorTransparentStroke:Ya,colorTransparentStrokeInteractive:Ka,colorTransparentStrokeDisabled:Qa,colorStrokeFocus1:Za,colorStrokeFocus2:Ja,colorNeutralShadowAmbient:en,colorNeutralShadowKey:tn,colorNeutralShadowAmbientLighter:on,colorNeutralShadowKeyLighter:rn,colorNeutralShadowAmbientDarker:an,colorNeutralShadowKeyDarker:nn,colorBrandShadowAmbient:sn,colorBrandShadowKey:ln,colorPaletteRedBackground1:cn,colorPaletteRedBackground2:dn,colorPaletteRedBackground3:hn,colorPaletteRedForeground1:un,colorPaletteRedForeground2:pn,colorPaletteRedForeground3:gn,colorPaletteRedBorderActive:bn,colorPaletteRedBorder1:fn,colorPaletteRedBorder2:mn,colorPaletteGreenBackground1:vn,colorPaletteGreenBackground2:yn,colorPaletteGreenBackground3:kn,colorPaletteGreenForeground1:xn,colorPaletteGreenForeground2:$n,colorPaletteGreenForeground3:wn,colorPaletteGreenBorderActive:Bn,colorPaletteGreenBorder1:Cn,colorPaletteGreenBorder2:Sn,colorPaletteDarkOrangeBackground1:Pn,colorPaletteDarkOrangeBackground2:Tn,colorPaletteDarkOrangeBackground3:In,colorPaletteDarkOrangeForeground1:An,colorPaletteDarkOrangeForeground2:Fn,colorPaletteDarkOrangeForeground3:zn,colorPaletteDarkOrangeBorderActive:Ln,colorPaletteDarkOrangeBorder1:Nn,colorPaletteDarkOrangeBorder2:On,colorPaletteYellowBackground1:Dn,colorPaletteYellowBackground2:En,colorPaletteYellowBackground3:Mn,colorPaletteYellowForeground1:Rn,colorPaletteYellowForeground2:Hn,colorPaletteYellowForeground3:Vn,colorPaletteYellowBorderActive:_n,colorPaletteYellowBorder1:jn,colorPaletteYellowBorder2:Gn,colorPaletteBerryBackground1:qn,colorPaletteBerryBackground2:Xn,colorPaletteBerryBackground3:Wn,colorPaletteBerryForeground1:Un,colorPaletteBerryForeground2:Yn,colorPaletteBerryForeground3:Kn,colorPaletteBerryBorderActive:Qn,colorPaletteBerryBorder1:Zn,colorPaletteBerryBorder2:Jn,colorPaletteLightGreenBackground1:es,colorPaletteLightGreenBackground2:ts,colorPaletteLightGreenBackground3:os,colorPaletteLightGreenForeground1:rs,colorPaletteLightGreenForeground2:is,colorPaletteLightGreenForeground3:as,colorPaletteLightGreenBorderActive:ns,colorPaletteLightGreenBorder1:ss,colorPaletteLightGreenBorder2:ls,colorPaletteMarigoldBackground1:cs,colorPaletteMarigoldBackground2:ds,colorPaletteMarigoldBackground3:hs,colorPaletteMarigoldForeground1:us,colorPaletteMarigoldForeground2:ps,colorPaletteMarigoldForeground3:gs,colorPaletteMarigoldBorderActive:bs,colorPaletteMarigoldBorder1:fs,colorPaletteMarigoldBorder2:ms,colorPaletteDarkRedBackground2:vs,colorPaletteDarkRedForeground2:ys,colorPaletteDarkRedBorderActive:ks,colorPaletteCranberryBackground2:xs,colorPaletteCranberryForeground2:$s,colorPaletteCranberryBorderActive:ws,colorPalettePumpkinBackground2:Bs,colorPalettePumpkinForeground2:Cs,colorPalettePumpkinBorderActive:Ss,colorPalettePeachBackground2:Ps,colorPalettePeachForeground2:Ts,colorPalettePeachBorderActive:Is,colorPaletteGoldBackground2:As,colorPaletteGoldForeground2:Fs,colorPaletteGoldBorderActive:zs,colorPaletteBrassBackground2:Ls,colorPaletteBrassForeground2:Ns,colorPaletteBrassBorderActive:Os,colorPaletteBrownBackground2:Ds,colorPaletteBrownForeground2:Es,colorPaletteBrownBorderActive:Ms,colorPaletteForestBackground2:Rs,colorPaletteForestForeground2:Hs,colorPaletteForestBorderActive:Vs,colorPaletteSeafoamBackground2:_s,colorPaletteSeafoamForeground2:js,colorPaletteSeafoamBorderActive:Gs,colorPaletteDarkGreenBackground2:qs,colorPaletteDarkGreenForeground2:Xs,colorPaletteDarkGreenBorderActive:Ws,colorPaletteLightTealBackground2:Us,colorPaletteLightTealForeground2:Ys,colorPaletteLightTealBorderActive:Ks,colorPaletteTealBackground2:Qs,colorPaletteTealForeground2:Zs,colorPaletteTealBorderActive:Js,colorPaletteSteelBackground2:el,colorPaletteSteelForeground2:tl,colorPaletteSteelBorderActive:ol,colorPaletteBlueBackground2:rl,colorPaletteBlueForeground2:il,colorPaletteBlueBorderActive:al,colorPaletteRoyalBlueBackground2:nl,colorPaletteRoyalBlueForeground2:sl,colorPaletteRoyalBlueBorderActive:ll,colorPaletteCornflowerBackground2:cl,colorPaletteCornflowerForeground2:dl,colorPaletteCornflowerBorderActive:hl,colorPaletteNavyBackground2:ul,colorPaletteNavyForeground2:pl,colorPaletteNavyBorderActive:gl,colorPaletteLavenderBackground2:bl,colorPaletteLavenderForeground2:fl,colorPaletteLavenderBorderActive:ml,colorPalettePurpleBackground2:vl,colorPalettePurpleForeground2:yl,colorPalettePurpleBorderActive:kl,colorPaletteGrapeBackground2:xl,colorPaletteGrapeForeground2:$l,colorPaletteGrapeBorderActive:wl,colorPaletteLilacBackground2:Bl,colorPaletteLilacForeground2:Cl,colorPaletteLilacBorderActive:Sl,colorPalettePinkBackground2:Pl,colorPalettePinkForeground2:Tl,colorPalettePinkBorderActive:Il,colorPaletteMagentaBackground2:Al,colorPaletteMagentaForeground2:Fl,colorPaletteMagentaBorderActive:zl,colorPalettePlumBackground2:Ll,colorPalettePlumForeground2:Nl,colorPalettePlumBorderActive:Ol,colorPaletteBeigeBackground2:Dl,colorPaletteBeigeForeground2:El,colorPaletteBeigeBorderActive:Ml,colorPaletteMinkBackground2:Rl,colorPaletteMinkForeground2:Hl,colorPaletteMinkBorderActive:Vl,colorPalettePlatinumBackground2:_l,colorPalettePlatinumForeground2:jl,colorPalettePlatinumBorderActive:Gl,colorPaletteAnchorBackground2:ql,colorPaletteAnchorForeground2:Xl,colorPaletteAnchorBorderActive:Wl,colorPaletteRedForegroundInverted:Ul,colorPaletteGreenForegroundInverted:Yl,colorPaletteYellowForegroundInverted:Kl,shadow2:Ql,shadow4:Zl,shadow8:Jl,shadow16:ec,shadow28:tc,shadow64:oc,shadow2Brand:rc,shadow4Brand:ic,shadow8Brand:ac,shadow16Brand:nc,shadow28Brand:sc,shadow64Brand:lc});const dc=j`
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
1
|
+
const b=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElements});let xo;const ms="fast-kernel";try{if(document.currentScript)xo=document.currentScript.getAttribute(ms);else{const o=document.getElementsByTagName("script");xo=o[o.length-1].getAttribute(ms)}}catch{xo="isolate"}let ve;switch(xo){case"share":ve=Object.freeze({updateQueue:1,observable:2,contextEvent:3,elementRegistry:4});break;case"share-v2":ve=Object.freeze({updateQueue:1.2,observable:2.2,contextEvent:3.2,elementRegistry:4.2});break;default:const o=`-${Math.random().toString(36).substring(2,8)}`;ve=Object.freeze({updateQueue:`1.2${o}`,observable:`2.2${o}`,contextEvent:`3.2${o}`,elementRegistry:`4.2${o}`});break}const re=o=>typeof o=="function",zt=o=>typeof o=="string",vs=()=>{};var bi=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};(function(){if(!(typeof globalThis<"u"))if(typeof bi<"u")bi.globalThis=bi;else if(typeof self<"u")self.globalThis=self;else if(typeof window<"u")window.globalThis=window;else{const t=new Function("return this")();t.globalThis=t}})();const $s={configurable:!1,enumerable:!1,writable:!1};globalThis.FAST===void 0&&Reflect.defineProperty(globalThis,"FAST",Object.assign({value:Object.create(null)},$s));const W=globalThis.FAST;if(W.getById===void 0){const o=Object.create(null);Reflect.defineProperty(W,"getById",Object.assign({value(t,e){let i=o[t];return i===void 0&&(i=e?o[t]=e():null),i}},$s))}W.error===void 0&&Object.assign(W,{warn(){},error(o){return new Error(`Error ${o}`)},addMessages(){}});const ys=Object.freeze([]);function mi(){const o=new Map;return Object.freeze({register(t){return o.has(t.type)?!1:(o.set(t.type,t),!0)},getByType(t){return o.get(t)},getForInstance(t){if(t!=null)return o.get(t.constructor)}})}function xs(){const o=new WeakMap;return function(t){let e=o.get(t);if(e===void 0){let i=Reflect.getPrototypeOf(t);for(;e===void 0&&i!==null;)e=o.get(i),i=Reflect.getPrototypeOf(i);e=e===void 0?[]:e.slice(0),o.set(t,e)}return e}}function Ee(o){o.prototype.toJSON=vs}const K=Object.freeze({none:0,attribute:1,booleanAttribute:2,property:3,content:4,tokenList:5,event:6}),ks=o=>o,qn=globalThis.trustedTypes?globalThis.trustedTypes.createPolicy("fast-html",{createHTML:ks}):{createHTML:ks};let ko=Object.freeze({createHTML(o){return qn.createHTML(o)},protect(o,t,e,i){return i}});const Wn=ko,Le=Object.freeze({get policy(){return ko},setPolicy(o){if(ko!==Wn)throw W.error(1201);ko=o},setAttribute(o,t,e){e==null?o.removeAttribute(t):o.setAttribute(t,e)},setBooleanAttribute(o,t,e){e?o.setAttribute(t,""):o.removeAttribute(t)}}),mt=W.getById(ve.updateQueue,()=>{const o=[],t=[],e=globalThis.requestAnimationFrame;let i=!0;function s(){if(t.length)throw t.shift()}function r(h){try{h.call()}catch(d){if(i)t.push(d),setTimeout(s,0);else throw o.length=0,d}}function n(){let d=0;for(;d<o.length;)if(r(o[d]),d++,d>1024){for(let l=0,u=o.length-d;l<u;l++)o[l]=o[l+d];o.length-=d,d=0}o.length=0}function c(h){o.push(h),o.length<2&&(i?e(n):n())}return Object.freeze({enqueue:c,next:()=>new Promise(c),process:n,setMode:h=>i=h})});class vi{constructor(t,e){this.sub1=void 0,this.sub2=void 0,this.spillover=void 0,this.subject=t,this.sub1=e}has(t){return this.spillover===void 0?this.sub1===t||this.sub2===t:this.spillover.indexOf(t)!==-1}subscribe(t){const e=this.spillover;if(e===void 0){if(this.has(t))return;if(this.sub1===void 0){this.sub1=t;return}if(this.sub2===void 0){this.sub2=t;return}this.spillover=[this.sub1,this.sub2,t],this.sub1=void 0,this.sub2=void 0}else e.indexOf(t)===-1&&e.push(t)}unsubscribe(t){const e=this.spillover;if(e===void 0)this.sub1===t?this.sub1=void 0:this.sub2===t&&(this.sub2=void 0);else{const i=e.indexOf(t);i!==-1&&e.splice(i,1)}}notify(t){const e=this.spillover,i=this.subject;if(e===void 0){const s=this.sub1,r=this.sub2;s!==void 0&&s.handleChange(i,t),r!==void 0&&r.handleChange(i,t)}else for(let s=0,r=e.length;s<r;++s)e[s].handleChange(i,t)}}class ws{constructor(t){this.subscribers={},this.subjectSubscribers=null,this.subject=t}notify(t){var e,i;(e=this.subscribers[t])===null||e===void 0||e.notify(t),(i=this.subjectSubscribers)===null||i===void 0||i.notify(t)}subscribe(t,e){var i,s;let r;e?r=(i=this.subscribers[e])!==null&&i!==void 0?i:this.subscribers[e]=new vi(this.subject):r=(s=this.subjectSubscribers)!==null&&s!==void 0?s:this.subjectSubscribers=new vi(this.subject),r.subscribe(t)}unsubscribe(t,e){var i,s;e?(i=this.subscribers[e])===null||i===void 0||i.unsubscribe(t):(s=this.subjectSubscribers)===null||s===void 0||s.unsubscribe(t)}}const $i=Object.freeze({unknown:void 0,coupled:1}),k=W.getById(ve.observable,()=>{const o=mt.enqueue,t=/(:|&&|\|\||if|\?\.)/,e=new WeakMap;let i,s=d=>{throw W.error(1101)};function r(d){var l;let u=(l=d.$fastController)!==null&&l!==void 0?l:e.get(d);return u===void 0&&(Array.isArray(d)?u=s(d):e.set(d,u=new ws(d))),u}const n=xs();class c{constructor(l){this.name=l,this.field=`_${l}`,this.callback=`${l}Changed`}getValue(l){return i!==void 0&&i.watch(l,this.name),l[this.field]}setValue(l,u){const f=this.field,g=l[f];if(g!==u){l[f]=u;const m=l[this.callback];re(m)&&m.call(l,g,u),r(l).notify(this.name)}}}class h extends vi{constructor(l,u,f=!1){super(l,u),this.expression=l,this.isVolatileBinding=f,this.needsRefresh=!0,this.needsQueue=!0,this.isAsync=!0,this.first=this,this.last=null,this.propertySource=void 0,this.propertyName=void 0,this.notifier=void 0,this.next=void 0}setMode(l){this.isAsync=this.needsQueue=l}bind(l){this.controller=l;const u=this.observe(l.source,l.context);return!l.isBound&&this.requiresUnbind(l)&&l.onUnbind(this),u}requiresUnbind(l){return l.sourceLifetime!==$i.coupled||this.first!==this.last||this.first.propertySource!==l.source}unbind(l){this.dispose()}observe(l,u){this.needsRefresh&&this.last!==null&&this.dispose();const f=i;i=this.needsRefresh?this:void 0,this.needsRefresh=this.isVolatileBinding;let g;try{g=this.expression(l,u)}finally{i=f}return g}disconnect(){this.dispose()}dispose(){if(this.last!==null){let l=this.first;for(;l!==void 0;)l.notifier.unsubscribe(this,l.propertyName),l=l.next;this.last=null,this.needsRefresh=this.needsQueue=this.isAsync}}watch(l,u){const f=this.last,g=r(l),m=f===null?this.first:{};if(m.propertySource=l,m.propertyName=u,m.notifier=g,g.subscribe(this,u),f!==null){if(!this.needsRefresh){let x;i=void 0,x=f.propertySource[f.propertyName],i=this,l===x&&(this.needsRefresh=!0)}f.next=m}this.last=m}handleChange(){this.needsQueue?(this.needsQueue=!1,o(this)):this.isAsync||this.call()}call(){this.last!==null&&(this.needsQueue=this.isAsync,this.notify(this))}*records(){let l=this.first;for(;l!==void 0;)yield l,l=l.next}}return Ee(h),Object.freeze({setArrayObserverFactory(d){s=d},getNotifier:r,track(d,l){i&&i.watch(d,l)},trackVolatile(){i&&(i.needsRefresh=!0)},notify(d,l){r(d).notify(l)},defineProperty(d,l){zt(l)&&(l=new c(l)),n(d).push(l),Reflect.defineProperty(d,l.name,{enumerable:!0,get(){return l.getValue(this)},set(u){l.setValue(this,u)}})},getAccessors:n,binding(d,l,u=this.isVolatileBinding(d)){return new h(d,l,u)},isVolatileBinding(d){return t.test(d.toString())}})});function $(o,t){k.defineProperty(o,t)}function Gn(o,t,e){return Object.assign({},e,{get(){return k.trackVolatile(),e.get.apply(this)}})}const Cs=W.getById(ve.contextEvent,()=>{let o=null;return{get(){return o},set(t){o=t}}}),Ye=Object.freeze({default:{index:0,length:0,get event(){return Ye.getEvent()},eventDetail(){return this.event.detail},eventTarget(){return this.event.target}},getEvent(){return Cs.get()},setEvent(o){Cs.set(o)}});class wo{constructor(t,e,i=!1){this.evaluate=t,this.policy=e,this.isVolatile=i}}class Un extends wo{createObserver(t){return k.binding(this.evaluate,t,this.isVolatile)}}function Ss(o,t,e=k.isVolatileBinding(o)){return new Un(o,t,e)}class Is extends wo{createObserver(){return this}bind(t){return this.evaluate(t.source,t.context)}}Ee(Is);function Ps(o,t){return new Is(o,t)}let Bs;function zs(o){return o.map(t=>t instanceof st?zs(t.styles):[t]).reduce((t,e)=>t.concat(e),[])}class st{constructor(t){this.styles=t,this.targets=new WeakSet,this._strategy=null,this.behaviors=t.map(e=>e instanceof st?e.behaviors:null).reduce((e,i)=>i===null?e:e===null?i:e.concat(i),null)}get strategy(){return this._strategy===null&&this.withStrategy(Bs),this._strategy}addStylesTo(t){this.strategy.addStylesTo(t),this.targets.add(t)}removeStylesFrom(t){this.strategy.removeStylesFrom(t),this.targets.delete(t)}isAttachedTo(t){return this.targets.has(t)}withBehaviors(...t){return this.behaviors=this.behaviors===null?t:this.behaviors.concat(t),this}withStrategy(t){return this._strategy=new t(zs(this.styles)),this}static setDefaultStrategy(t){Bs=t}static normalize(t){return t===void 0?void 0:Array.isArray(t)?new st(t):t instanceof st?t:new st([t])}}st.supportsAdoptedStyleSheets=Array.isArray(document.adoptedStyleSheets)&&"replace"in CSSStyleSheet.prototype;const yi=mi(),xi=Object.freeze({getForInstance:yi.getForInstance,getByType:yi.getByType,define(o){return yi.register({type:o}),o}});function ki(o,t,e){t.source.style.setProperty(o.targetAspect,e.bind(t))}class wi{constructor(t,e){this.dataBinding=t,this.targetAspect=e}createCSS(t){return t(this),`var(${this.targetAspect})`}addedCallback(t){var e;const i=t.source;if(!i.$cssBindings){i.$cssBindings=new Map;const r=i.setAttribute;i.setAttribute=(n,c)=>{r.call(i,n,c),n==="style"&&i.$cssBindings.forEach((h,d)=>ki(d,h.controller,h.observer))}}const s=(e=t[this.targetAspect])!==null&&e!==void 0?e:t[this.targetAspect]=this.dataBinding.createObserver(this,this);s.controller=t,t.source.$cssBindings.set(this,{controller:t,observer:s})}connectedCallback(t){ki(this,t,t[this.targetAspect])}removedCallback(t){t.source.$cssBindings&&t.source.$cssBindings.delete(this)}handleChange(t,e){ki(this,e.controller,e)}}xi.define(wi);const Xn=`${Math.random().toString(36).substring(2,8)}`;let Kn=0;const Ts=()=>`--v${Xn}${++Kn}`;function Fs(o,t){const e=[];let i="";const s=[],r=n=>{s.push(n)};for(let n=0,c=o.length-1;n<c;++n){i+=o[n];let h=t[n];re(h)?h=new wi(Ss(h),Ts()).createCSS(r):h instanceof wo?h=new wi(h,Ts()).createCSS(r):xi.getForInstance(h)!==void 0&&(h=h.createCSS(r)),h instanceof st||h instanceof CSSStyleSheet?(i.trim()!==""&&(e.push(i),i=""),e.push(h)):i+=h}return i+=o[o.length-1],i.trim()!==""&&e.push(i),{styles:e,behaviors:s}}const p=(o,...t)=>{const{styles:e,behaviors:i}=Fs(o,t),s=new st(e);return i.length?s.withBehaviors(...i):s};class Os{constructor(t,e){this.behaviors=e,this.css="";const i=t.reduce((s,r)=>(zt(r)?this.css+=r:s.push(r),s),[]);i.length&&(this.styles=new st(i))}createCSS(t){return this.behaviors.forEach(t),this.styles&&t(this),this.css}addedCallback(t){t.addStyles(this.styles)}removedCallback(t){t.removeStyles(this.styles)}}xi.define(Os),p.partial=(o,...t)=>{const{styles:e,behaviors:i}=Fs(o,t);return new Os(e,i)};const Ci=`fast-${Math.random().toString(36).substring(2,8)}`,Co=`${Ci}{`,Qe=`}${Ci}`,Yn=Qe.length;let Qn=0;const Si=()=>`${Ci}-${++Qn}`,As=Object.freeze({interpolation:o=>`${Co}${o}${Qe}`,attribute:o=>`${Si()}="${Co}${o}${Qe}"`,comment:o=>`<!--${Co}${o}${Qe}-->`}),So=Object.freeze({parse(o,t){const e=o.split(Co);if(e.length===1)return null;const i=[];for(let s=0,r=e.length;s<r;++s){const n=e[s],c=n.indexOf(Qe);let h;if(c===-1)h=n;else{const d=n.substring(0,c);i.push(t[d]),h=n.substring(c+Yn)}h!==""&&i.push(h)}return i}}),Ii=mi(),vt=Object.freeze({getForInstance:Ii.getForInstance,getByType:Ii.getByType,define(o,t){return t=t||{},t.type=o,Ii.register(t),o},assignAspect(o,t){if(!t){o.aspectType=K.content;return}switch(o.sourceAspect=t,t[0]){case":":o.targetAspect=t.substring(1),o.aspectType=o.targetAspect==="classList"?K.tokenList:K.property;break;case"?":o.targetAspect=t.substring(1),o.aspectType=K.booleanAttribute;break;case"@":o.targetAspect=t.substring(1),o.aspectType=K.event;break;default:o.targetAspect=t,o.aspectType=K.attribute;break}}});class Pi{constructor(t){this.options=t}createHTML(t){return As.attribute(t(this))}createBehavior(){return this}}Ee(Pi);function Zn(o,t,e,i){if(e==null&&(e=""),e.create){o.textContent="";let s=o.$fastView;s===void 0?s=e.create():o.$fastTemplate!==e&&(s.isComposed&&(s.remove(),s.unbind()),s=e.create()),s.isComposed?s.needsBindOnly&&(s.needsBindOnly=!1,s.bind(i.source,i.context)):(s.isComposed=!0,s.bind(i.source,i.context),s.insertBefore(o),o.$fastView=s,o.$fastTemplate=e)}else{const s=o.$fastView;s!==void 0&&s.isComposed&&(s.isComposed=!1,s.remove(),s.needsBindOnly?s.needsBindOnly=!1:s.unbind()),o.textContent=e}}function Jn(o,t,e){var i;const s=`${this.id}-t`,r=(i=o[s])!==null&&i!==void 0?i:o[s]={v:0,cv:Object.create(null)},n=r.cv;let c=r.v;const h=o[t];if(e!=null&&e.length){const d=e.split(/\s+/);for(let l=0,u=d.length;l<u;++l){const f=d[l];f!==""&&(n[f]=c,h.add(f))}}if(r.v=c+1,c!==0){c-=1;for(const d in n)n[d]===c&&h.remove(d)}}const ta={[K.attribute]:Le.setAttribute,[K.booleanAttribute]:Le.setBooleanAttribute,[K.property]:(o,t,e)=>o[t]=e,[K.content]:Zn,[K.tokenList]:Jn,[K.event]:()=>{}};class Me{constructor(t){this.dataBinding=t,this.updateTarget=null,this.aspectType=K.content}createHTML(t){return As.interpolation(t(this))}createBehavior(){var t;if(this.updateTarget===null){const e=ta[this.aspectType],i=(t=this.dataBinding.policy)!==null&&t!==void 0?t:this.policy;if(!e)throw W.error(1205);this.data=`${this.id}-d`,this.updateTarget=i.protect(this.targetTagName,this.aspectType,this.targetAspect,e)}return this}bind(t){var e;const i=t.targets[this.targetNodeId];switch(this.aspectType){case K.event:i[this.data]=t,i.addEventListener(this.targetAspect,this,this.dataBinding.options);break;case K.content:t.onUnbind(this);default:const s=(e=i[this.data])!==null&&e!==void 0?e:i[this.data]=this.dataBinding.createObserver(this,this);s.target=i,s.controller=t,this.updateTarget(i,this.targetAspect,s.bind(t),t);break}}unbind(t){const i=t.targets[this.targetNodeId].$fastView;i!==void 0&&i.isComposed&&(i.unbind(),i.needsBindOnly=!0)}handleEvent(t){const e=t.currentTarget[this.data];if(e.isBound){Ye.setEvent(t);const i=this.dataBinding.evaluate(e.source,e.context);Ye.setEvent(null),i!==!0&&t.preventDefault()}}handleChange(t,e){const i=e.target,s=e.controller;this.updateTarget(i,this.targetAspect,e.bind(s),s)}}vt.define(Me,{aspected:!0});function Es(o,t){const e=o.parentNode;let i=o,s;for(;i!==t;)s=i.nextSibling,e.removeChild(i),i=s;e.removeChild(t)}class Io{constructor(t,e,i){this.fragment=t,this.factories=e,this.targets=i,this.behaviors=null,this.unbindables=[],this.source=null,this.isBound=!1,this.sourceLifetime=$i.unknown,this.context=this,this.index=0,this.length=0,this.firstChild=t.firstChild,this.lastChild=t.lastChild}get event(){return Ye.getEvent()}get isEven(){return this.index%2===0}get isOdd(){return this.index%2!==0}get isFirst(){return this.index===0}get isInMiddle(){return!this.isFirst&&!this.isLast}get isLast(){return this.index===this.length-1}eventDetail(){return this.event.detail}eventTarget(){return this.event.target}appendTo(t){t.appendChild(this.fragment)}insertBefore(t){if(this.fragment.hasChildNodes())t.parentNode.insertBefore(this.fragment,t);else{const e=this.lastChild;if(t.previousSibling===e)return;const i=t.parentNode;let s=this.firstChild,r;for(;s!==e;)r=s.nextSibling,i.insertBefore(s,t),s=r;i.insertBefore(e,t)}}remove(){const t=this.fragment,e=this.lastChild;let i=this.firstChild,s;for(;i!==e;)s=i.nextSibling,t.appendChild(i),i=s;t.appendChild(e)}dispose(){Es(this.firstChild,this.lastChild),this.unbind()}onUnbind(t){this.unbindables.push(t)}bind(t,e=this){if(this.source===t)return;let i=this.behaviors;if(i===null){this.source=t,this.context=e,this.behaviors=i=new Array(this.factories.length);const s=this.factories;for(let r=0,n=s.length;r<n;++r){const c=s[r].createBehavior();c.bind(this),i[r]=c}}else{this.source!==null&&this.evaluateUnbindables(),this.isBound=!1,this.source=t,this.context=e;for(let s=0,r=i.length;s<r;++s)i[s].bind(this)}this.isBound=!0}unbind(){!this.isBound||this.source===null||(this.evaluateUnbindables(),this.source=null,this.context=this,this.isBound=!1)}evaluateUnbindables(){const t=this.unbindables;for(let e=0,i=t.length;e<i;++e)t[e].unbind(this);t.length=0}static disposeContiguousBatch(t){if(t.length!==0){Es(t[0].firstChild,t[t.length-1].lastChild);for(let e=0,i=t.length;e<i;++e)t[e].unbind()}}}Ee(Io),k.defineProperty(Io.prototype,"index"),k.defineProperty(Io.prototype,"length");const Ls=(o,t)=>`${o}.${t}`,Ms={},Tt={index:0,node:null};function _s(o){o.startsWith("fast-")||W.warn(1204,{name:o})}const ea=new Proxy(document.createElement("div"),{get(o,t){_s(t);const e=Reflect.get(o,t);return re(e)?e.bind(o):e},set(o,t,e){return _s(t),Reflect.set(o,t,e)}});class oa{constructor(t,e,i){this.fragment=t,this.directives=e,this.policy=i,this.proto=null,this.nodeIds=new Set,this.descriptors={},this.factories=[]}addFactory(t,e,i,s,r){var n,c;this.nodeIds.has(i)||(this.nodeIds.add(i),this.addTargetDescriptor(e,i,s)),t.id=(n=t.id)!==null&&n!==void 0?n:Si(),t.targetNodeId=i,t.targetTagName=r,t.policy=(c=t.policy)!==null&&c!==void 0?c:this.policy,this.factories.push(t)}freeze(){return this.proto=Object.create(null,this.descriptors),this}addTargetDescriptor(t,e,i){const s=this.descriptors;if(e==="r"||e==="h"||s[e])return;if(!s[t]){const n=t.lastIndexOf("."),c=t.substring(0,n),h=parseInt(t.substring(n+1));this.addTargetDescriptor(c,t,h)}let r=Ms[e];if(!r){const n=`_${e}`;Ms[e]=r={get(){var c;return(c=this[n])!==null&&c!==void 0?c:this[n]=this[t].childNodes[i]}}}s[e]=r}createView(t){const e=this.fragment.cloneNode(!0),i=Object.create(this.proto);i.r=e,i.h=t??ea;for(const s of this.nodeIds)i[s];return new Io(e,this.factories,i)}}function Rs(o,t,e,i,s,r=!1){const n=e.attributes,c=o.directives;for(let h=0,d=n.length;h<d;++h){const l=n[h],u=l.value,f=So.parse(u,c);let g=null;f===null?r&&(g=new Me(Ps(()=>u,o.policy)),vt.assignAspect(g,l.name)):g=Bi.aggregate(f,o.policy),g!==null&&(e.removeAttributeNode(l),h--,d--,o.addFactory(g,t,i,s,e.tagName))}}function ia(o,t,e,i,s){const r=So.parse(t.textContent,o.directives);if(r===null)return Tt.node=t.nextSibling,Tt.index=s+1,Tt;let n,c=n=t;for(let h=0,d=r.length;h<d;++h){const l=r[h];h!==0&&(s++,i=Ls(e,s),n=c.parentNode.insertBefore(document.createTextNode(""),c.nextSibling)),zt(l)?n.textContent=l:(n.textContent=" ",vt.assignAspect(l),o.addFactory(l,e,i,s,null)),c=n}return Tt.index=s+1,Tt.node=c.nextSibling,Tt}function Ds(o,t,e){let i=0,s=t.firstChild;for(;s;){const r=sa(o,e,s,i);s=r.node,i=r.index}}function sa(o,t,e,i){const s=Ls(t,i);switch(e.nodeType){case 1:Rs(o,t,e,s,i),Ds(o,e,s);break;case 3:return ia(o,e,t,s,i);case 8:const r=So.parse(e.data,o.directives);r!==null&&o.addFactory(Bi.aggregate(r),t,s,i,null);break}return Tt.index=i+1,Tt.node=e.nextSibling,Tt}function ra(o,t){return o&&o.nodeType==8&&So.parse(o.data,t)!==null}const Hs="TEMPLATE",Bi={compile(o,t,e=Le.policy){let i;if(zt(o)){i=document.createElement(Hs),i.innerHTML=e.createHTML(o);const n=i.content.firstElementChild;n!==null&&n.tagName===Hs&&(i=n)}else i=o;!i.content.firstChild&&!i.content.lastChild&&i.content.appendChild(document.createComment(""));const s=document.adoptNode(i.content),r=new oa(s,t,e);return Rs(r,"",i,"h",0,!0),(ra(s.firstChild,t)||s.childNodes.length===1&&Object.keys(t).length>0)&&s.insertBefore(document.createComment(""),s.firstChild),Ds(r,s,"r"),Tt.node=null,r.freeze()},setDefaultStrategy(o){this.compile=o},aggregate(o,t=Le.policy){if(o.length===1)return o[0];let e,i,s=!1,r;const n=o.length,c=o.map(l=>zt(l)?()=>l:(e=l.sourceAspect||e,i=l.dataBinding||i,s=s||l.dataBinding.isVolatile,r=r||l.dataBinding.policy,l.dataBinding.evaluate)),h=(l,u)=>{let f="";for(let g=0;g<n;++g)f+=c[g](l,u);return f};i.evaluate=h,i.isVolatile=s,i.policy=r??t;const d=new Me(i);return vt.assignAspect(d,e),d}},na=/([ \x09\x0a\x0c\x0d])([^\0-\x1F\x7F-\x9F "'>=/]+)([ \x09\x0a\x0c\x0d]*=[ \x09\x0a\x0c\x0d]*(?:[^ \x09\x0a\x0c\x0d"'`<>=]*|"[^"]*|'[^']*))$/,aa=Object.create(null);class $e{constructor(t,e=aa){this.html=t,this.factories=e}createHTML(t){const e=this.factories;for(const i in e)t(e[i]);return this.html}}$e.empty=new $e(""),vt.define($e);function la(o,t,e,i=vt.getForInstance(o)){if(i.aspected){const s=na.exec(t);s!==null&&vt.assignAspect(o,s[2])}return o.createHTML(e)}class ui{constructor(t,e={},i){this.policy=i,this.result=null,this.html=t,this.factories=e}create(t){return this.result===null&&(this.result=Bi.compile(this.html,this.factories,this.policy)),this.result.createView(t)}inline(){return new $e(zt(this.html)?this.html:this.html.innerHTML,this.factories)}withPolicy(t){if(this.result)throw W.error(1208);if(this.policy)throw W.error(1207);return this.policy=t,this}render(t,e,i){const s=this.create(i);return s.bind(t),s.appendTo(e),s}static create(t,e,i){let s="";const r=Object.create(null),n=c=>{var h;const d=(h=c.id)!==null&&h!==void 0?h:c.id=Si();return r[d]=c,d};for(let c=0,h=t.length-1;c<h;++c){const d=t[c];let l=e[c],u;if(s+=d,re(l))l=new Me(Ss(l));else if(l instanceof wo)l=new Me(l);else if(!(u=vt.getForInstance(l))){const f=l;l=new Me(Ps(()=>f))}s+=la(l,d,n,u)}return new ui(s+t[t.length-1],r,i)}}Ee(ui);const v=(o,...t)=>{if(Array.isArray(o)&&Array.isArray(o.raw))return ui.create(o,t);throw W.error(1206)};v.partial=o=>new $e(o);class Vs extends Pi{bind(t){t.source[this.options]=t.targets[this.targetNodeId]}}vt.define(Vs);const $t=o=>new Vs(o),ca=()=>null;function Ns(o){return o===void 0?ca:re(o)?o:()=>o}function zi(o,t,e){const i=re(o)?o:()=>o,s=Ns(t),r=Ns(e);return(n,c)=>i(n,c)?s(n,c):r(n,c)}const da=o=>o.nodeType===1,ye=o=>o?t=>t.nodeType===1&&t.matches(o):da;class js extends Pi{get id(){return this._id}set id(t){this._id=t,this._controllerProperty=`${t}-c`}bind(t){const e=t.targets[this.targetNodeId];e[this._controllerProperty]=t,this.updateTarget(t.source,this.computeNodes(e)),this.observe(e),t.onUnbind(this)}unbind(t){const e=t.targets[this.targetNodeId];this.updateTarget(t.source,ys),this.disconnect(e),e[this._controllerProperty]=null}getSource(t){return t[this._controllerProperty].source}updateTarget(t,e){t[this.options.property]=e}computeNodes(t){let e=this.getNodes(t);return"filter"in this.options&&(e=e.filter(this.options.filter)),e}}const qs="slotchange";class Ws extends js{observe(t){t.addEventListener(qs,this)}disconnect(t){t.removeEventListener(qs,this)}getNodes(t){return t.assignedNodes(this.options)}handleEvent(t){const e=t.currentTarget;this.updateTarget(this.getSource(e),this.computeNodes(e))}}vt.define(Ws);function rt(o){return zt(o)&&(o={property:o}),new Ws(o)}class Gs extends js{constructor(t){super(t),this.observerProperty=Symbol(),this.handleEvent=(e,i)=>{const s=i.target;this.updateTarget(this.getSource(s),this.computeNodes(s))},t.childList=!0}observe(t){let e=t[this.observerProperty];e||(e=new MutationObserver(this.handleEvent),e.toJSON=vs,t[this.observerProperty]=e),e.target=t,e.observe(t,this.options)}disconnect(t){const e=t[this.observerProperty];e.target=null,e.disconnect()}getNodes(t){return"selector"in this.options?Array.from(t.querySelectorAll(this.options.selector)):Array.from(t.childNodes)}}vt.define(Gs);function ha(o){return zt(o)&&(o={property:o}),new Gs(o)}const Us="boolean",Xs="reflect",Po=Object.freeze({locate:xs()}),Ks={toView(o){return o?"true":"false"},fromView(o){return!(o==null||o==="false"||o===!1||o===0)}};function Ys(o){if(o==null)return null;const t=o*1;return isNaN(t)?null:t}const nt={toView(o){const t=Ys(o);return t&&t.toString()},fromView:Ys};class pi{constructor(t,e,i=e.toLowerCase(),s=Xs,r){this.guards=new Set,this.Owner=t,this.name=e,this.attribute=i,this.mode=s,this.converter=r,this.fieldName=`_${e}`,this.callbackName=`${e}Changed`,this.hasCallback=this.callbackName in t.prototype,s===Us&&r===void 0&&(this.converter=Ks)}setValue(t,e){const i=t[this.fieldName],s=this.converter;s!==void 0&&(e=s.fromView(e)),i!==e&&(t[this.fieldName]=e,this.tryReflectToAttribute(t),this.hasCallback&&t[this.callbackName](i,e),t.$fastController.notify(this.name))}getValue(t){return k.track(t,this.name),t[this.fieldName]}onAttributeChangedCallback(t,e){this.guards.has(t)||(this.guards.add(t),this.setValue(t,e),this.guards.delete(t))}tryReflectToAttribute(t){const e=this.mode,i=this.guards;i.has(t)||e==="fromView"||mt.enqueue(()=>{i.add(t);const s=t[this.fieldName];switch(e){case Xs:const r=this.converter;Le.setAttribute(t,this.attribute,r!==void 0?r.toView(s):s);break;case Us:Le.setBooleanAttribute(t,this.attribute,s);break}i.delete(t)})}static collect(t,...e){const i=[];e.push(Po.locate(t));for(let s=0,r=e.length;s<r;++s){const n=e[s];if(n!==void 0)for(let c=0,h=n.length;c<h;++c){const d=n[c];zt(d)?i.push(new pi(t,d)):i.push(new pi(t,d.property,d.attribute,d.mode,d.converter))}}return i}}function a(o,t){let e;function i(s,r){arguments.length>1&&(e.property=r),Po.locate(s.constructor).push(e)}if(arguments.length>1){e={},i(o,t);return}return e=o===void 0?{}:o,i}const Qs={mode:"open"},Zs={},Js=new Set,Bo=W.getById(ve.elementRegistry,()=>mi());class Bt{constructor(t,e=t.definition){var i;this.platformDefined=!1,zt(e)&&(e={name:e}),this.type=t,this.name=e.name,this.template=e.template,this.registry=(i=e.registry)!==null&&i!==void 0?i:customElements;const s=t.prototype,r=pi.collect(t,e.attributes),n=new Array(r.length),c={},h={};for(let d=0,l=r.length;d<l;++d){const u=r[d];n[d]=u.attribute,c[u.name]=u,h[u.attribute]=u,k.defineProperty(s,u)}Reflect.defineProperty(t,"observedAttributes",{value:n,enumerable:!0}),this.attributes=r,this.propertyLookup=c,this.attributeLookup=h,this.shadowOptions=e.shadowOptions===void 0?Qs:e.shadowOptions===null?void 0:Object.assign(Object.assign({},Qs),e.shadowOptions),this.elementOptions=e.elementOptions===void 0?Zs:Object.assign(Object.assign({},Zs),e.elementOptions),this.styles=st.normalize(e.styles),Bo.register(this)}get isDefined(){return this.platformDefined}define(t=this.registry){const e=this.type;return t.get(this.name)||(this.platformDefined=!0,t.define(this.name,e,this.elementOptions)),this}static compose(t,e){return Js.has(t)||Bo.getByType(t)?new Bt(class extends t{},e):new Bt(t,e)}static registerBaseType(t){Js.add(t)}}Bt.getByType=Bo.getByType,Bt.getForInstance=Bo.getForInstance;const ua={bubbles:!0,composed:!0,cancelable:!0},Ti="isConnected",tr=new WeakMap;function zo(o){var t,e;return(e=(t=o.shadowRoot)!==null&&t!==void 0?t:tr.get(o))!==null&&e!==void 0?e:null}let er;class To extends ws{constructor(t,e){super(t),this.boundObservables=null,this.needsInitialization=!0,this.hasExistingShadowRoot=!1,this._template=null,this.stage=3,this.guardBehaviorConnection=!1,this.behaviors=null,this._mainStyles=null,this.$fastController=this,this.view=null,this.source=t,this.definition=e;const i=e.shadowOptions;if(i!==void 0){let r=t.shadowRoot;r?this.hasExistingShadowRoot=!0:(r=t.attachShadow(i),i.mode==="closed"&&tr.set(t,r))}const s=k.getAccessors(t);if(s.length>0){const r=this.boundObservables=Object.create(null);for(let n=0,c=s.length;n<c;++n){const h=s[n].name,d=t[h];d!==void 0&&(delete t[h],r[h]=d)}}}get isConnected(){return k.track(this,Ti),this.stage===1}get context(){var t,e;return(e=(t=this.view)===null||t===void 0?void 0:t.context)!==null&&e!==void 0?e:Ye.default}get isBound(){var t,e;return(e=(t=this.view)===null||t===void 0?void 0:t.isBound)!==null&&e!==void 0?e:!1}get sourceLifetime(){var t;return(t=this.view)===null||t===void 0?void 0:t.sourceLifetime}get template(){var t;if(this._template===null){const e=this.definition;this.source.resolveTemplate?this._template=this.source.resolveTemplate():e.template&&(this._template=(t=e.template)!==null&&t!==void 0?t:null)}return this._template}set template(t){this._template!==t&&(this._template=t,this.needsInitialization||this.renderTemplate(t))}get mainStyles(){var t;if(this._mainStyles===null){const e=this.definition;this.source.resolveStyles?this._mainStyles=this.source.resolveStyles():e.styles&&(this._mainStyles=(t=e.styles)!==null&&t!==void 0?t:null)}return this._mainStyles}set mainStyles(t){this._mainStyles!==t&&(this._mainStyles!==null&&this.removeStyles(this._mainStyles),this._mainStyles=t,this.needsInitialization||this.addStyles(t))}onUnbind(t){var e;(e=this.view)===null||e===void 0||e.onUnbind(t)}addBehavior(t){var e,i;const s=(e=this.behaviors)!==null&&e!==void 0?e:this.behaviors=new Map,r=(i=s.get(t))!==null&&i!==void 0?i:0;r===0?(s.set(t,1),t.addedCallback&&t.addedCallback(this),t.connectedCallback&&!this.guardBehaviorConnection&&(this.stage===1||this.stage===0)&&t.connectedCallback(this)):s.set(t,r+1)}removeBehavior(t,e=!1){const i=this.behaviors;if(i===null)return;const s=i.get(t);s!==void 0&&(s===1||e?(i.delete(t),t.disconnectedCallback&&this.stage!==3&&t.disconnectedCallback(this),t.removedCallback&&t.removedCallback(this)):i.set(t,s-1))}addStyles(t){var e;if(!t)return;const i=this.source;if(t instanceof HTMLElement)((e=zo(i))!==null&&e!==void 0?e:this.source).append(t);else if(!t.isAttachedTo(i)){const s=t.behaviors;if(t.addStylesTo(i),s!==null)for(let r=0,n=s.length;r<n;++r)this.addBehavior(s[r])}}removeStyles(t){var e;if(!t)return;const i=this.source;if(t instanceof HTMLElement)((e=zo(i))!==null&&e!==void 0?e:i).removeChild(t);else if(t.isAttachedTo(i)){const s=t.behaviors;if(t.removeStylesFrom(i),s!==null)for(let r=0,n=s.length;r<n;++r)this.removeBehavior(s[r])}}connect(){if(this.stage!==3)return;if(this.stage=0,this.boundObservables!==null){const e=this.source,i=this.boundObservables,s=Object.keys(i);for(let r=0,n=s.length;r<n;++r){const c=s[r];e[c]=i[c]}this.boundObservables=null}const t=this.behaviors;if(t!==null){this.guardBehaviorConnection=!0;for(const e of t.keys())e.connectedCallback&&e.connectedCallback(this);this.guardBehaviorConnection=!1}this.needsInitialization?(this.renderTemplate(this.template),this.addStyles(this.mainStyles),this.needsInitialization=!1):this.view!==null&&this.view.bind(this.source),this.stage=1,k.notify(this,Ti)}disconnect(){if(this.stage!==1)return;this.stage=2,k.notify(this,Ti),this.view!==null&&this.view.unbind();const t=this.behaviors;if(t!==null)for(const e of t.keys())e.disconnectedCallback&&e.disconnectedCallback(this);this.stage=3}onAttributeChangedCallback(t,e,i){const s=this.definition.attributeLookup[t];s!==void 0&&s.onAttributeChangedCallback(this.source,i)}emit(t,e,i){return this.stage===1?this.source.dispatchEvent(new CustomEvent(t,Object.assign(Object.assign({detail:e},ua),i))):!1}renderTemplate(t){var e;const i=this.source,s=(e=zo(i))!==null&&e!==void 0?e:i;if(this.view!==null)this.view.dispose(),this.view=null;else if(!this.needsInitialization||this.hasExistingShadowRoot){this.hasExistingShadowRoot=!1;for(let r=s.firstChild;r!==null;r=s.firstChild)s.removeChild(r)}t&&(this.view=t.render(i,s,i),this.view.sourceLifetime=$i.coupled)}static forCustomElement(t){const e=t.$fastController;if(e!==void 0)return e;const i=Bt.getForInstance(t);if(i===void 0)throw W.error(1401);return t.$fastController=new er(t,i)}static setStrategy(t){er=t}}Ee(To),To.setStrategy(To);function Fo(o){var t;return"adoptedStyleSheets"in o?o:(t=zo(o))!==null&&t!==void 0?t:o.getRootNode()}class fi{constructor(t){const e=fi.styleSheetCache;this.sheets=t.map(i=>{if(i instanceof CSSStyleSheet)return i;let s=e.get(i);return s===void 0&&(s=new CSSStyleSheet,s.replaceSync(i),e.set(i,s)),s})}addStylesTo(t){ir(Fo(t),this.sheets)}removeStylesFrom(t){sr(Fo(t),this.sheets)}}fi.styleSheetCache=new Map;let pa=0;const fa=()=>`fast-${++pa}`;function or(o){return o===document?document.body:o}class ga{constructor(t){this.styles=t,this.styleClass=fa()}addStylesTo(t){t=or(Fo(t));const e=this.styles,i=this.styleClass;for(let s=0;s<e.length;s++){const r=document.createElement("style");r.innerHTML=e[s],r.className=i,t.append(r)}}removeStylesFrom(t){t=or(Fo(t));const e=t.querySelectorAll(`.${this.styleClass}`);for(let i=0,s=e.length;i<s;++i)t.removeChild(e[i])}}let ir=(o,t)=>{o.adoptedStyleSheets=[...o.adoptedStyleSheets,...t]},sr=(o,t)=>{o.adoptedStyleSheets=o.adoptedStyleSheets.filter(e=>t.indexOf(e)===-1)};if(st.supportsAdoptedStyleSheets){try{document.adoptedStyleSheets.push(),document.adoptedStyleSheets.splice(),ir=(o,t)=>{o.adoptedStyleSheets.push(...t)},sr=(o,t)=>{for(const e of t){const i=o.adoptedStyleSheets.indexOf(e);i!==-1&&o.adoptedStyleSheets.splice(i,1)}}}catch{}st.setDefaultStrategy(fi)}else st.setDefaultStrategy(ga);function rr(o){const t=class extends o{constructor(){super(),To.forCustomElement(this)}$emit(e,i,s){return this.$fastController.emit(e,i,s)}connectedCallback(){this.$fastController.connect()}disconnectedCallback(){this.$fastController.disconnect()}attributeChangedCallback(e,i,s){this.$fastController.onAttributeChangedCallback(e,i,s)}};return Bt.registerBaseType(t),t}function ba(o,t){return re(o)?Bt.compose(o,t):Bt.compose(this,o)}function ma(o,t){return re(o)?Bt.compose(o,t).define().type:Bt.compose(this,o).define().type}function va(o){return rr(o)}const S=Object.assign(rr(HTMLElement),{from:va,define:ma,compose:ba}),J={horizontal:"horizontal",vertical:"vertical"};function nr(...o){return o.every(t=>t instanceof HTMLElement)}const _e="ArrowDown",Re="ArrowLeft",De="ArrowRight",He="ArrowUp",Oo="End",Ve="Enter",ar="Escape",Ao="Home",Eo=" ",$a="Tab",ya={ArrowDown:_e,ArrowLeft:Re,ArrowRight:De,ArrowUp:He};var gt;(function(o){o.ltr="ltr",o.rtl="rtl"})(gt||(gt={}));function xa(o,t,e){return e<o?t:e>t?o:e}function Fi(o,t,e){return Math.min(Math.max(e,o),t)}let ka=0;function Oi(o=""){return`${o}${ka++}`}var wa=Object.defineProperty,Ca=Object.getOwnPropertyDescriptor,H=(o,t,e,i)=>{for(var s=i>1?void 0:i?Ca(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(s=(i?n(t,e,s):n(s))||s);return i&&s&&wa(t,e,s),s};class V{}H([a({attribute:"aria-atomic"})],V.prototype,"ariaAtomic",2),H([a({attribute:"aria-busy"})],V.prototype,"ariaBusy",2),H([a({attribute:"aria-controls"})],V.prototype,"ariaControls",2),H([a({attribute:"aria-current"})],V.prototype,"ariaCurrent",2),H([a({attribute:"aria-describedby"})],V.prototype,"ariaDescribedby",2),H([a({attribute:"aria-details"})],V.prototype,"ariaDetails",2),H([a({attribute:"aria-disabled"})],V.prototype,"ariaDisabled",2),H([a({attribute:"aria-errormessage"})],V.prototype,"ariaErrormessage",2),H([a({attribute:"aria-flowto"})],V.prototype,"ariaFlowto",2),H([a({attribute:"aria-haspopup"})],V.prototype,"ariaHaspopup",2),H([a({attribute:"aria-hidden"})],V.prototype,"ariaHidden",2),H([a({attribute:"aria-invalid"})],V.prototype,"ariaInvalid",2),H([a({attribute:"aria-keyshortcuts"})],V.prototype,"ariaKeyshortcuts",2),H([a({attribute:"aria-label"})],V.prototype,"ariaLabel",2),H([a({attribute:"aria-labelledby"})],V.prototype,"ariaLabelledby",2),H([a({attribute:"aria-live"})],V.prototype,"ariaLive",2),H([a({attribute:"aria-owns"})],V.prototype,"ariaOwns",2),H([a({attribute:"aria-relevant"})],V.prototype,"ariaRelevant",2),H([a({attribute:"aria-roledescription"})],V.prototype,"ariaRoledescription",2);const lr=o=>o.closest("[dir]")?.dir==="rtl"?gt.rtl:gt.ltr;function at(o){return o?typeof o=="string"?new $e(o):"inline"in o?o.inline():o:$e.empty}const cr=o=>o.nodeType!==Node.TEXT_NODE||!!o.nodeValue?.trim().length,Sa=":host([hidden]){display:none}";function z(o){return`${Sa}:host{display:${o}}`}class Ia{constructor(t){this.listenerCache=new WeakMap,this.query=t}connectedCallback(t){const{query:e}=this;let i=this.listenerCache.get(t);i||(i=this.constructListener(t),this.listenerCache.set(t,i)),i.bind(e)(),e.addEventListener("change",i)}disconnectedCallback(t){const e=this.listenerCache.get(t);e&&this.query.removeEventListener("change",e)}}class yo extends Ia{constructor(t,e){super(t),this.styles=e}static with(t){return e=>new yo(t,e)}constructListener(t){let e=!1;const i=this.styles;return function(){const{matches:r}=this;r&&!e?(t.addStyles(i),e=r):!r&&e&&(t.removeStyles(i),e=r)}}removedCallback(t){t.removeStyles(this.styles)}}const lt=yo.with(window.matchMedia("(forced-colors)"));yo.with(window.matchMedia("(prefers-color-scheme: dark)")),yo.with(window.matchMedia("(prefers-color-scheme: light)"));class Wt{}function Gt(o){return v`<slot name="end" ${$t("end")}>${at(o.end)}</slot>`.inline()}function Ut(o){return v`<slot name="start" ${$t("start")}>${at(o.start)}</slot>`.inline()}function Xt(o,...t){const e=Po.locate(o);t.forEach(i=>{Object.getOwnPropertyNames(i.prototype).forEach(r=>{r!=="constructor"&&Object.defineProperty(o.prototype,r,Object.getOwnPropertyDescriptor(i.prototype,r))}),Po.locate(i).forEach(r=>e.push(r))})}var Pa=Object.defineProperty,Ba=Object.getOwnPropertyDescriptor,xe=(o,t,e,i)=>{for(var s=i>1?void 0:i?Ba(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(s=(i?n(t,e,s):n(s))||s);return i&&s&&Pa(t,e,s),s};class tt extends S{constructor(){super(...arguments),this.headinglevel=2,this.expanded=!1,this.disabled=!1,this.id=Oi("accordion-"),this.block=!1,this.clickHandler=t=>{this.disabled||this.$emit("click",t)}}}xe([a({attribute:"heading-level",mode:"fromView",converter:nt})],tt.prototype,"headinglevel",2),xe([a({mode:"boolean"})],tt.prototype,"expanded",2),xe([a({mode:"boolean"})],tt.prototype,"disabled",2),xe([a],tt.prototype,"id",2),xe([a],tt.prototype,"size",2),xe([a({mode:"boolean"})],tt.prototype,"block",2),xe([a({attribute:"expand-icon-position"})],tt.prototype,"expandIconPosition",2),Xt(tt,Wt);const M="var(--colorNeutralForeground1)",dr="var(--colorNeutralForeground1Hover)",za="var(--colorNeutralForeground1Pressed)",Ft="var(--colorNeutralForeground2)",Lo="var(--colorNeutralForeground2Hover)",Mo="var(--colorNeutralForeground2Pressed)",Ta="var(--colorNeutralForeground2Selected)",_o="var(--colorNeutralForeground2BrandHover)",Ro="var(--colorNeutralForeground2BrandPressed)",Fa="var(--colorNeutralForeground2BrandSelected)",et="var(--colorNeutralForeground3)",Oa="var(--colorNeutralForeground3Hover)",Aa="var(--colorNeutralForeground3Pressed)",Ea="var(--colorNeutralForeground4)",C="var(--colorNeutralForegroundDisabled)",La="var(--colorBrandForegroundLink)",Ma="var(--colorBrandForegroundLinkHover)",_a="var(--colorBrandForegroundLinkPressed)",Ra="var(--colorNeutralForeground2Link)",Da="var(--colorNeutralForeground2LinkHover)",Ha="var(--colorNeutralForeground2LinkPressed)",hr="var(--colorCompoundBrandForeground1)",ur="var(--colorCompoundBrandForeground1Hover)",pr="var(--colorCompoundBrandForeground1Pressed)",Kt="var(--colorNeutralForegroundOnBrand)",Do="var(--colorNeutralForegroundInverted)",Va="var(--colorNeutralForegroundInvertedHover)",Na="var(--colorNeutralForegroundInvertedPressed)",fr="var(--colorNeutralForegroundStaticInverted)",Ai="var(--colorBrandForeground1)",ja="var(--colorBrandForeground2)",qa="var(--colorNeutralForeground1Static)",_="var(--colorNeutralBackground1)",Ei="var(--colorNeutralBackground1Hover)",gr="var(--colorNeutralBackground1Pressed)",br="var(--colorNeutralBackground1Selected)",mr="var(--colorNeutralBackground3)",Wa="var(--colorNeutralBackground4)",Ga="var(--colorNeutralBackground5)",Ho="var(--colorNeutralBackground6)",Ua="var(--colorNeutralBackgroundInverted)",Xa="var(--colorSubtleBackground)",Li="var(--colorSubtleBackgroundHover)",Vo="var(--colorSubtleBackgroundPressed)",Ka="var(--colorSubtleBackgroundSelected)",yt="var(--colorTransparentBackground)",Mi="var(--colorTransparentBackgroundHover)",_i="var(--colorTransparentBackgroundPressed)",Ya="var(--colorTransparentBackgroundSelected)",Ze="var(--colorNeutralBackgroundDisabled)",Qa="var(--colorBackgroundOverlay)",Ri="var(--colorBrandBackground)",vr="var(--colorBrandBackgroundHover)",$r="var(--colorBrandBackgroundPressed)",Za="var(--colorBrandBackgroundSelected)",Je="var(--colorCompoundBrandBackground)",to="var(--colorCompoundBrandBackgroundHover)",eo="var(--colorCompoundBrandBackgroundPressed)",yr="var(--colorBrandBackgroundStatic)",Ja="var(--colorBrandBackground2)",Yt="var(--colorNeutralStrokeAccessible)",oo="var(--colorNeutralStrokeAccessibleHover)",io="var(--colorNeutralStrokeAccessiblePressed)",Ne="var(--colorNeutralStroke1)",No="var(--colorNeutralStroke1Hover)",Di="var(--colorNeutralStroke1Pressed)",so="var(--colorNeutralStroke2)",tl="var(--colorNeutralStroke3)",el="var(--colorNeutralStrokeOnBrand2)",xr="var(--colorBrandStroke1)",kr="var(--colorBrandStroke2)",Hi="var(--colorCompoundBrandStroke)",Vi="var(--colorCompoundBrandStrokeHover)",Ni="var(--colorCompoundBrandStrokePressed)",Qt="var(--colorNeutralStrokeDisabled)",Ot="var(--colorTransparentStroke)",wr="var(--colorTransparentStrokeInteractive)",jo="var(--colorStrokeFocus1)",Zt="var(--colorStrokeFocus2)",ol="var(--colorPaletteRedBackground1)",il="var(--colorPaletteRedBackground2)",Cr="var(--colorPaletteRedBackground3)",sl="var(--colorPaletteRedBorder1)",rl="var(--colorPaletteRedBorder2)",Sr="var(--colorPaletteRedForeground1)",nl="var(--colorPaletteRedForeground2)",Ir="var(--colorPaletteRedForeground3)",al="var(--colorPaletteGreenBackground1)",Pr="var(--colorPaletteGreenBackground3)",ll="var(--colorPaletteGreenBorder2)",cl="var(--colorPaletteGreenForeground1)",dl="var(--colorPaletteGreenForeground2)",hl="var(--colorPaletteGreenForeground3)",ul="var(--colorPaletteDarkOrangeBackground1)",Br="var(--colorPaletteDarkOrangeBackground3)",pl="var(--colorPaletteDarkOrangeBorder1)",fl="var(--colorPaletteDarkOrangeForeground1)",zr="var(--colorPaletteDarkOrangeForeground3)",gl="var(--colorPaletteYellowBackground1)",bl="var(--colorPaletteYellowBackground3)",ml="var(--colorPaletteYellowBorder1)",ji="var(--colorPaletteYellowForeground2)",vl="var(--colorPaletteMarigoldBackground2)",$l="var(--colorPaletteMarigoldForeground2)",yl="var(--colorPaletteAnchorBackground2)",xl="var(--colorPaletteAnchorForeground2)",kl="var(--colorPaletteBeigeBackground2)",wl="var(--colorPaletteBeigeForeground2)",Cl="var(--colorPaletteBlueBackground2)",Sl="var(--colorPaletteBlueForeground2)",Il="var(--colorPaletteBrassBackground2)",Pl="var(--colorPaletteBrassForeground2)",Bl="var(--colorPaletteBrownBackground2)",zl="var(--colorPaletteBrownForeground2)",Tl="var(--colorPaletteCornflowerBackground2)",Fl="var(--colorPaletteCornflowerForeground2)",Ol="var(--colorPaletteCranberryBackground2)",Al="var(--colorPaletteCranberryForeground2)",El="var(--colorPaletteDarkGreenBackground2)",Ll="var(--colorPaletteDarkGreenForeground2)",Ml="var(--colorPaletteDarkRedBackground2)",_l="var(--colorPaletteDarkRedForeground2)",Rl="var(--colorPaletteForestBackground2)",Dl="var(--colorPaletteForestForeground2)",Hl="var(--colorPaletteGoldBackground2)",Vl="var(--colorPaletteGoldForeground2)",Nl="var(--colorPaletteGrapeBackground2)",jl="var(--colorPaletteGrapeForeground2)",ql="var(--colorPaletteLavenderBackground2)",Wl="var(--colorPaletteLavenderForeground2)",Gl="var(--colorPaletteLightTealBackground2)",Ul="var(--colorPaletteLightTealForeground2)",Xl="var(--colorPaletteLilacBackground2)",Kl="var(--colorPaletteLilacForeground2)",Yl="var(--colorPaletteMagentaBackground2)",Ql="var(--colorPaletteMagentaForeground2)",Zl="var(--colorPaletteMinkBackground2)",Jl="var(--colorPaletteMinkForeground2)",tc="var(--colorPaletteNavyBackground2)",ec="var(--colorPaletteNavyForeground2)",oc="var(--colorPalettePeachBackground2)",ic="var(--colorPalettePeachForeground2)",sc="var(--colorPalettePinkBackground2)",rc="var(--colorPalettePinkForeground2)",nc="var(--colorPalettePlatinumBackground2)",ac="var(--colorPalettePlatinumForeground2)",lc="var(--colorPalettePlumBackground2)",cc="var(--colorPalettePlumForeground2)",dc="var(--colorPalettePumpkinBackground2)",hc="var(--colorPalettePumpkinForeground2)",uc="var(--colorPalettePurpleBackground2)",pc="var(--colorPalettePurpleForeground2)",fc="var(--colorPaletteRoyalBlueBackground2)",gc="var(--colorPaletteRoyalBlueForeground2)",bc="var(--colorPaletteSeafoamBackground2)",mc="var(--colorPaletteSeafoamForeground2)",vc="var(--colorPaletteSteelBackground2)",$c="var(--colorPaletteSteelForeground2)",yc="var(--colorPaletteTealBackground2)",xc="var(--colorPaletteTealForeground2)",qi="var(--borderRadiusNone)",xt="var(--borderRadiusSmall)",L="var(--borderRadiusMedium)",Tr="var(--borderRadiusLarge)",Fr="var(--borderRadiusXLarge)",ct="var(--borderRadiusCircular)",y="var(--fontFamilyBase)",kc="var(--fontFamilyMonospace)",wc="var(--fontFamilyNumeric)",ro="var(--fontSizeBase100)",G="var(--fontSizeBase200)",O="var(--fontSizeBase300)",dt="var(--fontSizeBase400)",ke="var(--fontSizeBase500)",qo="var(--fontSizeBase600)",Or="var(--fontSizeHero700)",Ar="var(--fontSizeHero800)",Er="var(--fontSizeHero900)",Lr="var(--fontSizeHero1000)",A="var(--fontWeightRegular)",Cc="var(--fontWeightMedium)",N="var(--fontWeightSemibold)",Wo="var(--fontWeightBold)",Go="var(--lineHeightBase100)",ht="var(--lineHeightBase200)",R="var(--lineHeightBase300)",kt="var(--lineHeightBase400)",Uo="var(--lineHeightBase500)",Mr="var(--lineHeightBase600)",_r="var(--lineHeightHero700)",Rr="var(--lineHeightHero800)",Dr="var(--lineHeightHero900)",Hr="var(--lineHeightHero1000)",Vr="var(--shadow2)",Xo="var(--shadow4)",Sc="var(--shadow8)",Nr="var(--shadow16)",Ic="var(--shadow28)",Pc="var(--shadow64)",Y="var(--strokeWidthThin)",we="var(--strokeWidthThick)",ne="var(--strokeWidthThicker)",jr="var(--strokeWidthThickest)",Ce="var(--spacingHorizontalXXS)",Jt="var(--spacingHorizontalXS)",Se="var(--spacingHorizontalSNudge)",At="var(--spacingHorizontalS)",te="var(--spacingHorizontalMNudge)",ae="var(--spacingHorizontalM)",Bc="var(--spacingHorizontalL)",zc="var(--spacingHorizontalXXL)",Ko="var(--spacingVerticalXXS)",Tc="var(--spacingVerticalXS)",no="var(--spacingVerticalSNudge)",U="var(--spacingVerticalS)",qr="var(--spacingVerticalMNudge)",Wr="var(--spacingVerticalL)",ao="var(--spacingVerticalXXL)",Fc="var(--durationUltraFast)",Wi="var(--durationFaster)",Gr="var(--durationNormal)",Oc="var(--durationGentle)",Ac="var(--durationSlow)",Ur="var(--durationSlower)",Yo="var(--durationUltraSlow)",Ec="var(--curveAccelerateMax)",Gi="var(--curveAccelerateMid)",Lc="var(--curveAccelerateMin)",Xr="var(--curveDecelerateMax)",Ui="var(--curveDecelerateMid)",Mc="var(--curveDecelerateMin)",_c="var(--curveEasyEaseMax)",Xi="var(--curveEasyEase)",Kr="var(--curveLinear)",Rc=p`
|
|
2
|
+
${z("block")}
|
|
3
|
+
|
|
4
|
+
:host{max-width:fit-content;contain:content}.heading{height:44px;display:grid;position:relative;vertical-align:middle;padding-inline:${ae} ${te};border-radius:${L};font-family:${y};font-size:${O};font-weight:${A};line-height:${R};grid-template-columns:auto auto 1fr auto}.heading-content{height:100%;display:flex;align-items:center}.button{box-sizing:border-box;appearance:none;border:none;outline:none;text-align:start;cursor:pointer;font-family:inherit;height:44px;color:${M};background:${yt};line-height:${R};height:auto;padding:0;font-size:inherit;grid-column:auto / span 2;grid-row:1}.button::before{content:'';position:absolute;inset:0px;cursor:pointer;border-radius:${xt}}.icon{display:flex;align-items:center;justify-content:center;pointer-events:none;position:relative;height:100%;padding-right:${At};grid-column:1 / span 1;grid-row:1}.region{margin:0 ${ae}}::slotted([slot='start']),::slotted([slot='end']){justify-content:center;align-items:center;padding-right:${At};grid-column:2 / span 1;grid-row:1 / span 1}button:focus-visible::after{content:'';position:absolute;inset:0px;cursor:pointer;border-radius:${xt};outline:none;border:2px solid ${jo};box-shadow:inset 0 0 0 1px ${Zt}}:host([disabled]) .button{color:${C}}:host([disabled]) svg{filter:invert(89%) sepia(0%) saturate(569%) hue-rotate(155deg) brightness(88%) contrast(87%)}:host([expanded]) .region{display:block}:host([expanded]) .default-collapsed-icon,:host([expanded]) ::slotted([slot='collapsed-icon']),:host(:not([expanded])) .default-expanded-icon,:host(:not([expanded])) ::slotted([slot='expanded-icon']),:host([expanded]) ::slotted([slot='end']),::slotted([slot='start']),.region{display:none}:host([expanded]) ::slotted([slot='start']),:host([expanded]) ::slotted([slot='expanded-icon']),:host(:not([expanded])) ::slotted([slot='collapsed-icon']),::slotted([slot='end']){display:flex}.heading{font-size:${O};line-height:${R}}:host([size='small']) .heading{font-size:${G};line-height:${ht}}:host([size='large']) .heading{font-size:${dt};line-height:${kt}}:host([size='extra-large']) .heading{font-size:${ke};line-height:${Uo}}:host([expand-icon-position='end']) :slotted(span[slot='start']),:host([expand-icon-position='end']) ::slotted(span[slot='end']){grid-column:1 / span 1;grid-row:1}:host([expand-icon-position='end']) ::slotted(span[slot='start']),:host([expand-icon-position='end']) ::slotted(span[slot='end']){grid-column:1 / span 1;grid-row:1}:host([expand-icon-position='end']) .icon{grid-column:4 / span 1;grid-row:1;display:flex;padding-left:10px;padding-right:0}:host([expand-icon-position='end']) .button{grid-column:2 / span 3;grid-row:1}:host([block]){max-width:100%}:host([expand-icon-position='end']) .heading{grid-template-columns:auto auto 28px}:host([expand-icon-position='end']) .icon{grid-column:5 / span 1}:host([block][expand-icon-position='end']) .heading{grid-template-columns:auto 1fr}:host([block][expand-icon-position='end']) .icon{grid-column:5 / span 1}`,Dc=v.partial(`<svg
|
|
5
|
+
width="20"
|
|
6
|
+
height="20"
|
|
7
|
+
viewBox="0 0 20 20"
|
|
8
|
+
fill="none"
|
|
9
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
10
|
+
class="default-collapsed-icon"
|
|
11
|
+
>
|
|
12
|
+
<path
|
|
13
|
+
d="M7.73271 4.20694C8.03263 3.92125 8.50737 3.93279 8.79306 4.23271L13.7944 9.48318C14.0703 9.77285 14.0703 10.2281 13.7944 10.5178L8.79306 15.7682C8.50737 16.0681 8.03263 16.0797 7.73271 15.794C7.43279 15.5083 7.42125 15.0336 7.70694 14.7336L12.2155 10.0005L7.70694 5.26729C7.42125 4.96737 7.43279 4.49264 7.73271 4.20694Z"
|
|
14
|
+
fill="currentColor"
|
|
15
|
+
/>
|
|
16
|
+
</svg>`),Hc=v.partial(`<svg
|
|
17
|
+
width="20"
|
|
18
|
+
height="20"
|
|
19
|
+
viewBox="0 0 20 20"
|
|
20
|
+
fill="none"
|
|
21
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
22
|
+
class="default-expanded-icon"
|
|
23
|
+
>
|
|
24
|
+
<path
|
|
25
|
+
d="M15.794 7.73271C16.0797 8.03263 16.0681 8.50737 15.7682 8.79306L10.5178 13.7944C10.2281 14.0703 9.77285 14.0703 9.48318 13.7944L4.23271 8.79306C3.93279 8.50737 3.92125 8.03263 4.20694 7.73271C4.49264 7.43279 4.96737 7.42125 5.26729 7.70694L10.0005 12.2155L14.7336 7.70694C15.0336 7.42125 15.5083 7.43279 15.794 7.73271Z"
|
|
26
|
+
fill="currentColor"
|
|
27
|
+
/>
|
|
28
|
+
</svg>`);function Vc(o={}){return v`<div class="heading" part="heading" role="heading" aria-level="${t=>t.headinglevel}"><button class="button" part="button" ${$t("expandbutton")} ?disabled="${t=>t.disabled?"true":void 0}" aria-expanded="${t=>t.expanded}" aria-controls="${t=>t.id}-panel" id="${t=>t.id}" @click="${(t,e)=>t.clickHandler(e.event)}"><span class="heading-content" part="heading-content"><slot name="heading"></slot></span></button>${Ut(o)} ${Gt(o)}<span class="icon" part="icon" aria-hidden="true"><slot name="expanded-icon">${at(o.expandedIcon)}</slot><slot name="collapsed-icon">${at(o.collapsedIcon)}</slot><span></div><div class="region" part="region" id="${t=>t.id}-panel" role="region" aria-labelledby="${t=>t.id}"><slot></slot></div>`}const Nc=Vc({collapsedIcon:Dc,expandedIcon:Hc}),jc=tt.compose({name:`${b.prefix}-accordion-item`,template:Nc,styles:Rc});jc.define(b.registry);const Ki={single:"single",multi:"multi"};var qc=Object.defineProperty,Wc=Object.getOwnPropertyDescriptor,Yr=(o,t,e,i)=>{for(var s=i>1?void 0:i?Wc(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(s=(i?n(t,e,s):n(s))||s);return i&&s&&qc(t,e,s),s};class Yi extends S{constructor(){super(...arguments),this.expandmode=Ki.multi,this.activeItemIndex=0,this.change=()=>{this.$emit("change",this.activeid)},this.setItems=()=>{if(this.slottedAccordionItems.length===0)return;const t=Array.from(this.children);if(this.removeItemListeners(t),t.forEach(e=>k.getNotifier(e).subscribe(this,"disabled")),this.accordionItems=t.filter(e=>!e.hasAttribute("disabled")),this.accordionIds=this.getItemIds(),this.accordionItems.forEach((e,i)=>{e instanceof tt&&(e.addEventListener("click",this.activeItemChange),e.addEventListener("keydown",this.handleItemKeyDown),e.addEventListener("focus",this.handleItemFocus),k.getNotifier(e).subscribe(this,"expanded"));const s=this.accordionIds[i];e.setAttribute("id",typeof s!="string"?`accordion-${i+1}`:s),this.activeid=this.accordionIds[this.activeItemIndex]}),this.isSingleExpandMode()){const e=this.findExpandedItem();this.setSingleExpandMode(e)}},this.removeItemListeners=t=>{t.forEach((e,i)=>{k.getNotifier(e).unsubscribe(this,"disabled"),k.getNotifier(e).unsubscribe(this,"expanded"),e.removeEventListener("click",this.activeItemChange),e.removeEventListener("keydown",this.handleItemKeyDown),e.removeEventListener("focus",this.handleItemFocus)})},this.activeItemChange=t=>{t.defaultPrevented||t.target!==t.currentTarget||(t.preventDefault(),this.handleExpandedChange(t.target))},this.handleExpandedChange=t=>{t instanceof tt&&(this.activeid=t.getAttribute("id"),this.isSingleExpandMode()?this.setSingleExpandMode(t):(t.expanded=!t.expanded,this.activeItemIndex=this.accordionItems.indexOf(t)),this.change())},this.handleItemKeyDown=t=>{if(t.target===t.currentTarget)switch(this.accordionIds=this.getItemIds(),t.key){case He:t.preventDefault(),this.adjust(-1);break;case _e:t.preventDefault(),this.adjust(1);break;case Ao:this.activeItemIndex=0,this.focusItem();break;case Oo:this.activeItemIndex=this.accordionItems.length-1,this.focusItem();break}},this.handleItemFocus=t=>{if(t.target===t.currentTarget){const e=t.target,i=this.activeItemIndex=Array.from(this.accordionItems).indexOf(e);this.activeItemIndex!==i&&i!==-1&&(this.activeItemIndex=i,this.activeid=this.accordionIds[this.activeItemIndex])}}}expandmodeChanged(t,e){if(!this.$fastController.isConnected)return;const i=this.findExpandedItem();i&&(e!==Ki.single?i?.expandbutton.removeAttribute("aria-disabled"):this.setSingleExpandMode(i))}slottedAccordionItemsChanged(t,e){this.$fastController.isConnected&&this.setItems()}handleChange(t,e){e==="disabled"?this.setItems():e==="expanded"&&t.expanded&&this.isSingleExpandMode()&&this.setSingleExpandMode(t)}findExpandedItem(){return this.accordionItems.length===0?null:this.accordionItems.find(t=>t instanceof tt&&t.expanded)??this.accordionItems[0]}setSingleExpandMode(t){if(this.accordionItems.length===0)return;const e=Array.from(this.accordionItems);this.activeItemIndex=e.indexOf(t),e.forEach((i,s)=>{i instanceof tt&&(this.activeItemIndex===s?(i.expanded=!0,i.expandbutton.setAttribute("aria-disabled","true")):(i.expanded=!1,i.hasAttribute("disabled")||i.expandbutton.removeAttribute("aria-disabled")))})}getItemIds(){return this.slottedAccordionItems.map(t=>t.id)}isSingleExpandMode(){return this.expandmode===Ki.single}adjust(t){this.activeItemIndex=xa(0,this.accordionItems.length-1,this.activeItemIndex+t),this.focusItem()}focusItem(){const t=this.accordionItems[this.activeItemIndex];t instanceof tt&&t.expandbutton.focus()}}Yr([a({attribute:"expand-mode"})],Yi.prototype,"expandmode",2),Yr([$],Yi.prototype,"slottedAccordionItems",2);const Gc=p`
|
|
29
|
+
${z("flex")}
|
|
30
|
+
|
|
31
|
+
:host{flex-direction:column;width:100%;contain:content}`;function Uc(){return v`<template><slot ${rt({property:"slottedAccordionItems",filter:ye()})}></slot></template>`}const Xc=Uc(),Kc=Yi.compose({name:`${b.prefix}-accordion`,template:Xc,styles:Gc});Kc.define(b.registry);const Qo={submit:"submit",reset:"reset",button:"button"},Yc={download:"download",href:"href",hreflang:"hreflang",ping:"ping",referrerpolicy:"referrerpolicy",rel:"rel",target:"target",type:"type"};var Qc=Object.defineProperty,Zc=Object.getOwnPropertyDescriptor,bt=(o,t,e,i)=>{for(var s=i>1?void 0:i?Zc(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(s=(i?n(t,e,s):n(s))||s);return i&&s&&Qc(t,e,s),s};class Et extends S{constructor(){super(),this.elementInternals=this.attachInternals(),this.internalProxyAnchor=this.createProxyElement(),this.elementInternals.role="link"}connectedCallback(){super.connectedCallback(),k.getNotifier(this).subscribe(this),Object.keys(this.$fastController.definition.attributeLookup).forEach(t=>{this.handleChange(this,t)}),this.append(this.internalProxyAnchor)}disconnectedCallback(){super.disconnectedCallback(),k.getNotifier(this).unsubscribe(this)}handleChange(t,e){if(e in Yc){const i=this.$fastController.definition.attributeLookup[e]?.attribute;i&&this.handleProxyAttributeChange(i,this[e])}}clickHandler(){return this.internalProxyAnchor.click(),!0}keypressHandler(t){if(t.key===Ve){this.internalProxyAnchor.click();return}return!0}handleProxyAttributeChange(t,e){e?this.internalProxyAnchor.setAttribute(t,e):this.internalProxyAnchor.removeAttribute(t)}createProxyElement(){const t=this.internalProxyAnchor??document.createElement("a");return t.hidden=!0,t}}bt([a],Et.prototype,"download",2),bt([a],Et.prototype,"href",2),bt([a],Et.prototype,"hreflang",2),bt([a],Et.prototype,"ping",2),bt([a],Et.prototype,"referrerpolicy",2),bt([a],Et.prototype,"rel",2),bt([a],Et.prototype,"target",2),bt([a],Et.prototype,"type",2);class je extends Et{constructor(){super(...arguments),this.iconOnly=!1}}bt([a],je.prototype,"appearance",2),bt([a],je.prototype,"shape",2),bt([a],je.prototype,"size",2),bt([a({attribute:"icon-only",mode:"boolean"})],je.prototype,"iconOnly",2),Xt(je,Wt);const Qr=p`
|
|
32
|
+
${z("inline-flex")}
|
|
33
|
+
|
|
34
|
+
:host{--icon-spacing:${Se};contain:layout style;vertical-align:middle;align-items:center;box-sizing:border-box;justify-content:center;text-align:center;text-decoration-line:none;margin:0;min-height:32px;outline-style:none;background-color:${_};color:${M};border:${Y} solid ${Ne};padding:0 ${ae};min-width:96px;border-radius:${L};font-size:${O};font-family:${y};font-weight:${N};line-height:${R};transition-duration:${Wi};transition-property:background,border,color;transition-timing-function:${Xi};cursor:pointer;user-select:none}.content{display:inherit}:host(:hover){background-color:${Ei};color:${dr};border-color:${No}}:host(:hover:active){background-color:${gr};border-color:${Di};color:${za};outline-style:none}:host(:focus-visible){border-color:${Ot};outline:${we} solid ${Ot};box-shadow:${Xo},0 0 0 2px ${Zt}}@media screen and (prefers-reduced-motion:reduce){transition-duration:0.01ms}::slotted(svg){font-size:20px;height:20px;width:20px;fill:currentColor}[slot='start'],::slotted([slot='start']){margin-inline-end:var(--icon-spacing)}[slot='end'],::slotted([slot='end']){margin-inline-start:var(--icon-spacing)}:host([icon-only]){min-width:32px;max-width:32px}:host([size='small']){--icon-spacing:${Jt};min-height:24px;min-width:64px;padding:0 ${At};border-radius:${xt};font-size:${G};line-height:${ht};font-weight:${A}}:host([size='small'][icon-only]){min-width:24px;max-width:24px}:host([size='large']){min-height:40px;border-radius:${Tr};padding:0 ${Bc};font-size:${dt};line-height:${kt}}:host([size='large'][icon-only]){min-width:40px;max-width:40px}:host([size='large']) ::slotted(svg){font-size:24px;height:24px;width:24px}:host([shape='circular']),:host([shape='circular']:focus-visible){border-radius:${ct}}:host([shape='square']),:host([shape='square']:focus-visible){border-radius:${qi}}:host([appearance='primary']){background-color:${Ri};color:${Kt};border-color:transparent}:host([appearance='primary']:hover){background-color:${vr}}:host([appearance='primary']:hover),:host([appearance='primary']:hover:active){border-color:transparent;color:${Kt}}:host([appearance='primary']:hover:active){background-color:${$r}}:host([appearance='primary']:focus-visible){border-color:${Kt};box-shadow:${Vr},0 0 0 2px ${Zt}}:host([appearance='outline']){background-color:${yt}}:host([appearance='outline']:hover){background-color:${Mi}}:host([appearance='outline']:hover:active){background-color:${_i}}:host([appearance='subtle']){background-color:${Xa};color:${Ft};border-color:transparent}:host([appearance='subtle']:hover){background-color:${Li};color:${Lo};border-color:transparent}:host([appearance='subtle']:hover:active){background-color:${Vo};color:${Mo};border-color:transparent}:host([appearance='subtle']:hover) ::slotted(svg){fill:${_o}}:host([appearance='subtle']:hover:active) ::slotted(svg){fill:${Ro}}:host([appearance='transparent']){background-color:${yt};color:${Ft}}:host([appearance='transparent']:hover){background-color:${Mi};color:${_o}}:host([appearance='transparent']:hover:active){background-color:${_i};color:${Ro}}:host([appearance='transparent']),:host([appearance='transparent']:hover),:host([appearance='transparent']:hover:active){border-color:transparent}`,Zo=p`
|
|
35
|
+
${Qr}
|
|
36
|
+
|
|
37
|
+
:host(:is([disabled],[disabled-focusable],[appearance][disabled],[appearance][disabled-focusable])),:host(:is([disabled],[disabled-focusable],[appearance][disabled],[appearance][disabled-focusable]):hover),:host(:is([disabled],[disabled-focusable],[appearance][disabled],[appearance][disabled-focusable]):hover:active){background-color:${Ze};border-color:${Qt};color:${C};cursor:not-allowed}:host(:is([disabled][appearance='primary'],[disabled-focusable][appearance='primary'])),:host(:is([disabled][appearance='primary'],[disabled-focusable][appearance='primary']):hover),:host(:is([disabled][appearance='primary'],[disabled-focusable][appearance='primary']):hover:active){border-color:transparent}:host(:is([disabled][appearance='outline'],[disabled-focusable][appearance='outline'])),:host(:is([disabled][appearance='outline'],[disabled-focusable][appearance='outline']):hover),:host(:is([disabled][appearance='outline'],[disabled-focusable][appearance='outline']):hover:active){background-color:${yt}}:host(:is([disabled][appearance='subtle'],[disabled-focusable][appearance='subtle'])),:host(:is([disabled][appearance='subtle'],[disabled-focusable][appearance='subtle']):hover),:host(:is([disabled][appearance='subtle'],[disabled-focusable][appearance='subtle']):hover:active){background-color:${yt};border-color:transparent}:host(:is([disabled][appearance='transparent'],[disabled-focusable][appearance='transparent'])),:host(:is([disabled][appearance='transparent'],[disabled-focusable][appearance='transparent']):hover),:host(:is([disabled][appearance='transparent'],[disabled-focusable][appearance='transparent']):hover:active){border-color:transparent;background-color:${yt}}`.withBehaviors(lt(p`
|
|
38
|
+
:host{background:ButtonFace;color:ButtonText}:host(:is(:hover,:focus-visible)){border-color:Highlight}`)),Jc=Qr.withBehaviors(lt(p`
|
|
39
|
+
:host{border-color:LinkText;color:LinkText}`));function td(o={}){return v`<template tabindex="0" @click="${t=>t.clickHandler()}" @keypress="${(t,e)=>t.keypressHandler(e.event)}">${Ut(o)}<span class="content" part="content"><slot></slot></span>${Gt(o)}</template>`}const ed=td(),od=je.compose({name:`${b.prefix}-anchor-button`,template:ed,styles:Jc});od.define(b.registry);const id=/[\(\[\{][^\)\]\}]*[\)\]\}]/g,sd=/[\0-\u001F\!-/:-@\[-`\{-\u00BF\u0250-\u036F\uD800-\uFFFF]/g,rd=/^\d+[\d\s]*(:?ext|x|)\s*\d+$/i,nd=/\s+/g,ad=/[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\u1100-\u11FF\u3130-\u318F\uA960-\uA97F\uAC00-\uD7AF\uD7B0-\uD7FF\u3040-\u309F\u30A0-\u30FF\u3400-\u4DBF\u4E00-\u9FFF\uF900-\uFAFF]|[\uD840-\uD869][\uDC00-\uDED6]/;function ld(o,t,e){let i="";const s=o.split(" ");return s.length!==0&&(i+=s[0].charAt(0).toUpperCase()),e||(s.length===2?i+=s[1].charAt(0).toUpperCase():s.length===3&&(i+=s[2].charAt(0).toUpperCase())),t&&i.length>1?i.charAt(1)+i.charAt(0):i}function cd(o){return o=o.replace(id,""),o=o.replace(sd,""),o=o.replace(nd," "),o=o.trim(),o}function dd(o,t,e){return!o||(o=cd(o),ad.test(o)||!e?.allowPhoneInitials&&rd.test(o))?"":ld(o,t,e?.firstInitialOnly)}const hd=CSS.supports("selector(:state(g))");function Lt(o,t,e){if(!hd){o.shadowRoot.host.toggleAttribute(`state--${t}`,e);return}if(e=e??!o.states.has(t),e){o.states.add(t);return}o.states.delete(t)}const Zr={darkRed:"dark-red",cranberry:"cranberry",red:"red",pumpkin:"pumpkin",peach:"peach",marigold:"marigold",gold:"gold",brass:"brass",brown:"brown",forest:"forest",seafoam:"seafoam",darkGreen:"dark-green",lightTeal:"light-teal",teal:"teal",steel:"steel",blue:"blue",royalBlue:"royal-blue",cornflower:"cornflower",navy:"navy",lavender:"lavender",purple:"purple",grape:"grape",lilac:"lilac",pink:"pink",magenta:"magenta",plum:"plum",beige:"beige",mink:"mink",platinum:"platinum",anchor:"anchor"},Jr={neutral:"neutral",brand:"brand",colorful:"colorful",...Zr};var ud=Object.defineProperty,pd=Object.getOwnPropertyDescriptor,le=(o,t,e,i)=>{for(var s=i>1?void 0:i?pd(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(s=(i?n(t,e,s):n(s))||s);return i&&s&&ud(t,e,s),s};const Mt=class hs extends S{constructor(){super(),this.elementInternals=this.attachInternals(),this.elementInternals.role="img"}connectedCallback(){super.connectedCallback(),k.getNotifier(this).subscribe(this),this.generateColor()}disconnectedCallback(){super.disconnectedCallback(),k.getNotifier(this).unsubscribe(this)}handleChange(t,e){switch(e){case"color":case"colorId":this.generateColor();break}}generateColor(){const t=this.color===Jr.colorful,e=this.currentColor;Lt(this.elementInternals,`${e}`,!1),this.currentColor=t&&this.colorId?this.colorId:t?hs.colors[gd(this.name??"")%hs.colors.length]:this.color??Jr.neutral,Lt(this.elementInternals,`${this.currentColor}`,!0)}generateInitials(){if(!this.name&&!this.initials)return;const t=this.size??32;return this.initials??dd(this.name,window.getComputedStyle(this).direction==="rtl",{firstInitialOnly:t<=16})}};Mt.colors=Object.values(Zr),le([a],Mt.prototype,"name",2),le([a],Mt.prototype,"initials",2),le([a({converter:nt})],Mt.prototype,"size",2),le([a],Mt.prototype,"shape",2),le([a],Mt.prototype,"active",2),le([a],Mt.prototype,"appearance",2),le([a],Mt.prototype,"color",2),le([a({attribute:"color-id"})],Mt.prototype,"colorId",2);let fd=Mt;const gd=o=>{let t=0;for(let e=o.length-1;e>=0;e--){const i=o.charCodeAt(e),s=e%8;t^=(i<<s)+(i>>8-s)}return t},ce={fastOutSlowInMax:Xr,fastOutSlowInMid:Ui,fastOutSlowInMin:Mc,slowOutFastInMax:Ec,slowOutFastInMid:Gi,slowOutFastInMin:Lc,fastEase:_c,normalEase:Xi,nullEasing:Kr},bd=p`
|
|
40
|
+
${z("inline-flex")} :host{position:relative;align-items:center;justify-content:center;flex-shrink:0;width:32px;height:32px;font-family:${y};font-weight:${N};font-size:${O};border-radius:${ct};color:${et};background-color:${Ho};contain:layout style}.default-icon,::slotted(svg){width:20px;height:20px;font-size:20px}::slotted(img){box-sizing:border-box;width:100%;height:100%;border-radius:${ct}}::slotted([slot='badge']){position:absolute;bottom:0;right:0;box-shadow:0 0 0 ${Y}) ${_}}:host([size='64']) ::slotted([slot='badge']),:host([size='72']) ::slotted([slot='badge']),:host([size='96']) ::slotted([slot='badge']),:host([size='120']) ::slotted([slot='badge']),:host([size='128']) ::slotted([slot='badge']){box-shadow:0 0 0 ${we}) ${_}}:host([size='16']),:host([size='20']),:host([size='24']){font-size:${ro};font-weight:${A}}:host([size='16']){width:16px;height:16px}:host([size='20']){width:20px;height:20px}:host([size='24']){width:24px;height:24px}:host([size='16']) .default-icon,:host([size='16']) ::slotted(svg){width:12px;height:12px;font-size:12px}:host([size='20']) .default-icon,:host([size='24']) .default-icon,:host([size='20']) ::slotted(svg),:host([size='24']) ::slotted(svg){width:16px;height:16px;font-size:16px}:host([size='28']){width:28px;height:28px;font-size:${G}}:host([size='36']){width:36px;height:36px}:host([size='40']){width:40px;height:40px}:host([size='48']),:host([size='56']){font-size:${dt}}:host([size='48']){width:48px;height:48px}:host([size='48']) .default-icon,:host([size='48']) ::slotted(svg){width:24px;height:24px;font-size:24px}:host([size='56']){width:56px;height:56px}:host([size='56']) .default-icon,:host([size='56']) ::slotted(svg){width:28px;height:28px;font-size:28px}:host([size='64']),:host([size='72']),:host([size='96']){font-size:${ke}}:host([size='64']) .default-icon,:host([size='72']) .default-icon,:host([size='64']) ::slotted(svg),:host([size='72']) ::slotted(svg){width:32px;height:32px;font-size:32px}:host([size='64']){width:64px;height:64px}:host([size='72']){width:72px;height:72px}:host([size='96']){width:96px;height:96px}:host([size='96']) .default-icon,:host([size='120']) .default-icon,:host([size='128']) .default-icon,:host([size='96']) ::slotted(svg),:host([size='120']) ::slotted(svg),:host([size='128']) ::slotted(svg){width:48px;height:48px;font-size:48px}:host([size='120']),:host([size='128']){font-size:${qo}}:host([size='120']){width:120px;height:120px}:host([size='128']){width:128px;height:128px}:host([shape='square']){border-radius:${L}}:host([shape='square'][size='20']),:host([shape='square'][size='24']){border-radius:${xt}}:host([shape='square'][size='56']),:host([shape='square'][size='64']),:host([shape='square'][size='72']){border-radius:${Tr}}:host([shape='square'][size='96']),:host([shape='square'][size='120']),:host([shape='square'][size='128']){border-radius:${Fr}}:host(:is([state--brand],:state(brand))){color:${fr};background-color:${yr}}:host(:is([state--dark-red],:state(dark-red))){color:${_l};background-color:${Ml}}:host(:is([state--cranberry],:state(cranberry))){color:${Al};background-color:${Ol}}:host(:is([state--red],:state(red))){color:${nl};background-color:${il}}:host(:is([state--pumpkin],:state(pumpkin))){color:${hc};background-color:${dc}}:host(:is([state--peach],:state(peach))){color:${ic};background-color:${oc}}:host(:is([state--marigold],:state(marigold))){color:${$l};background-color:${vl}}:host(:is([state--gold],:state(gold))){color:${Vl};background-color:${Hl}}:host(:is([state--brass],:state(brass))){color:${Pl};background-color:${Il}}:host(:is([state--brown],:state(brown))){color:${zl};background-color:${Bl}}:host(:is([state--forest],:state(forest))){color:${Dl};background-color:${Rl}}:host(:is([state--seafoam],:state(seafoam))){color:${mc};background-color:${bc}}:host(:is([state--dark-green],:state(dark-green))){color:${Ll};background-color:${El}}:host(:is([state--light-teal],:state(light-teal))){color:${Ul};background-color:${Gl}}:host(:is([state--teal],:state(teal))){color:${xc};background-color:${yc}}:host(:is([state--steel],:state(steel))){color:${$c};background-color:${vc}}:host(:is([state--blue],:state(blue))){color:${Sl};background-color:${Cl}}:host(:is([state--royal-blue],:state(royal-blue))){color:${gc};background-color:${fc}}:host(:is([state--cornflower],:state(cornflower))){color:${Fl};background-color:${Tl}}:host(:is([state--navy],:state(navy))){color:${ec};background-color:${tc}}:host(:is([state--lavender],:state(lavender))){color:${Wl};background-color:${ql}}:host(:is([state--purple],:state(purple))){color:${pc};background-color:${uc}}:host(:is([state--grape],:state(grape))){color:${jl};background-color:${Nl}}:host(:is([state--lilac],:state(lilac))){color:${Kl};background-color:${Xl}}:host(:is([state--pink],:state(pink))){color:${rc};background-color:${sc}}:host(:is([state--magenta],:state(magenta))){color:${Ql};background-color:${Yl}}:host(:is([state--plum],:state(plum))){color:${cc};background-color:${lc}}:host(:is([state--beige],:state(beige))){color:${wl};background-color:${kl}}:host(:is([state--mink],:state(mink))){color:${Jl};background-color:${Zl}}:host(:is([state--platinum],:state(platinum))){color:${ac};background-color:${nc}}:host(:is([state--anchor],:state(anchor))){color:${xl};background-color:${yl}}:host([active]){transform:perspective(1px);transition-property:transform,opacity;transition-duration:${Yo},${Wi};transition-delay:${ce.fastEase},${ce.nullEasing}}:host([active])::before{content:'';position:absolute;top:0;left:0;bottom:0;right:0;border-radius:inherit;transition-property:margin,opacity;transition-duration:${Yo}),${Ur};transition-delay:${ce.fastEase}),${ce.nullEasing})}:host([active])::before{box-shadow:${Sc};border-style:solid;border-color:${yr}}:host([active][appearance='shadow'])::before{border-style:none;border-color:none}:host([active]:not([appearance='shadow']))::before{margin:calc(-2 * ${we});border-width:${we}}:host([size='56'][active]:not([appearance='shadow']))::before,:host([size='64'][active]:not([appearance='shadow']))::before{margin:calc(-2 * ${ne});border-width:${ne}}:host([size='72'][active]:not([appearance='shadow']))::before,:host([size='96'][active]:not([appearance='shadow']))::before,:host([size='120'][active]:not([appearance='shadow']))::before,:host([size='128'][active]:not([appearance='shadow']))::before{margin:calc(-2 * ${jr});border-width:${jr}}:host([size='20'][active][appearance])::before,:host([size='24'][active][appearance])::before,:host([size='28'][active][appearance])::before{box-shadow:${Xo}}:host([size='56'][active][appearance])::before,:host([size='64'][active][appearance])::before{box-shadow:${Nr}}:host([size='72'][active][appearance])::before,:host([size='96'][active][appearance])::before,:host([size='120'][active][appearance])::before,:host([size='128'][active][appearance])::before{box-shadow:${Ic}}:host([active][appearance='ring'])::before{box-shadow:none}:host([active='inactive']){opacity:0.8;transform:scale(0.875);transition-property:transform,opacity;transition-duration:${Yo},${Wi};transition-delay:${ce.fastOutSlowInMin},${ce.nullEasing}}:host([active='inactive'])::before{margin:0;opacity:0;transition-property:margin,opacity;transition-duration:${Yo},${Ur};transition-delay:${ce.fastOutSlowInMin},${ce.nullEasing}}@media screen and (prefers-reduced-motion:reduce){:host([active]){transition-duration:0.01ms}:host([active])::before{transition-duration:0.01ms;transition-delay:0.01ms}}`,md=v`<svg width="1em" height="1em" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg" class="default-icon" fill="currentcolor" aria-hidden="true"><path d="M10 2a4 4 0 100 8 4 4 0 000-8zM7 6a3 3 0 116 0 3 3 0 01-6 0zm-2 5a2 2 0 00-2 2c0 1.7.83 2.97 2.13 3.8A9.14 9.14 0 0010 18c1.85 0 3.58-.39 4.87-1.2A4.35 4.35 0 0017 13a2 2 0 00-2-2H5zm-1 2a1 1 0 011-1h10a1 1 0 011 1c0 1.3-.62 2.28-1.67 2.95A8.16 8.16 0 0110 17a8.16 8.16 0 01-4.33-1.05A3.36 3.36 0 014 13z"></path></svg>`;function vd(){return v`<slot>${o=>o.name||o.initials?o.generateInitials():md}</slot><slot name="badge"></slot>`}const $d=vd(),yd=fd.compose({name:`${b.prefix}-avatar`,template:$d,styles:bd});yd.define(b.registry);const xd={filled:"filled",ghost:"ghost",outline:"outline",tint:"tint"},kd={brand:"brand",danger:"danger",important:"important",informative:"informative",severe:"severe",subtle:"subtle",success:"success",warning:"warning"};var wd=Object.defineProperty,Cd=Object.getOwnPropertyDescriptor,Jo=(o,t,e,i)=>{for(var s=i>1?void 0:i?Cd(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(s=(i?n(t,e,s):n(s))||s);return i&&s&&wd(t,e,s),s};class qe extends S{constructor(){super(...arguments),this.appearance=xd.filled,this.color=kd.brand}}Jo([a],qe.prototype,"appearance",2),Jo([a],qe.prototype,"color",2),Jo([a],qe.prototype,"shape",2),Jo([a],qe.prototype,"size",2),Xt(qe,Wt);const ti=Ce,tn=p.partial`
|
|
41
|
+
${z("inline-flex")} :host {
|
|
18
42
|
position: relative;
|
|
19
43
|
box-sizing: border-box;
|
|
20
44
|
align-items: center;
|
|
21
45
|
justify-content: center;
|
|
22
|
-
font-family: ${
|
|
23
|
-
font-weight: ${
|
|
24
|
-
font-size: ${
|
|
25
|
-
line-height: ${
|
|
46
|
+
font-family: ${y};
|
|
47
|
+
font-weight: ${N};
|
|
48
|
+
font-size: ${G};
|
|
49
|
+
line-height: ${ht};
|
|
26
50
|
min-width: 20px;
|
|
27
51
|
height: 20px;
|
|
28
|
-
padding-inline: calc(${
|
|
29
|
-
border-radius: ${
|
|
30
|
-
border-color: ${
|
|
31
|
-
background-color: ${
|
|
32
|
-
color: ${
|
|
52
|
+
padding-inline: calc(${Jt} + ${ti});
|
|
53
|
+
border-radius: ${ct};
|
|
54
|
+
border-color: ${Ot};
|
|
55
|
+
background-color: ${Ri};
|
|
56
|
+
color: ${Kt};
|
|
33
57
|
contain: content;
|
|
34
58
|
}
|
|
35
59
|
|
|
@@ -45,11 +69,11 @@ function e(e,t,o,r){var i,a=arguments.length,n=a<3?t:null===r?r=Object.getOwnPro
|
|
|
45
69
|
bottom: 0;
|
|
46
70
|
right: 0;
|
|
47
71
|
border-style: solid;
|
|
48
|
-
border-width: ${
|
|
72
|
+
border-width: ${Y};
|
|
49
73
|
border-color: inherit;
|
|
50
74
|
border-radius: inherit;
|
|
51
75
|
}
|
|
52
|
-
`,
|
|
76
|
+
`,en=p.partial`
|
|
53
77
|
:host([size='tiny']) {
|
|
54
78
|
width: 6px;
|
|
55
79
|
height: 6px;
|
|
@@ -75,9 +99,9 @@ function e(e,t,o,r){var i,a=arguments.length,n=a<3?t:null===r?r=Object.getOwnPro
|
|
|
75
99
|
:host([size='small']) {
|
|
76
100
|
min-width: 16px;
|
|
77
101
|
height: 16px;
|
|
78
|
-
font-size: ${
|
|
79
|
-
line-height: ${
|
|
80
|
-
padding-inline: calc(${
|
|
102
|
+
font-size: ${ro};
|
|
103
|
+
line-height: ${Go};
|
|
104
|
+
padding-inline: calc(${Ce} + ${ti});
|
|
81
105
|
}
|
|
82
106
|
:host([size='small']) ::slotted(svg) {
|
|
83
107
|
font-size: 12px;
|
|
@@ -85,9 +109,9 @@ function e(e,t,o,r){var i,a=arguments.length,n=a<3?t:null===r?r=Object.getOwnPro
|
|
|
85
109
|
:host([size='large']) {
|
|
86
110
|
min-width: 24px;
|
|
87
111
|
height: 24px;
|
|
88
|
-
font-size: ${
|
|
89
|
-
line-height: ${
|
|
90
|
-
padding-inline: calc(${
|
|
112
|
+
font-size: ${G};
|
|
113
|
+
line-height: ${ht};
|
|
114
|
+
padding-inline: calc(${Jt} + ${ti});
|
|
91
115
|
}
|
|
92
116
|
:host([size='large']) ::slotted(svg) {
|
|
93
117
|
font-size: 16px;
|
|
@@ -95,255 +119,377 @@ function e(e,t,o,r){var i,a=arguments.length,n=a<3?t:null===r?r=Object.getOwnPro
|
|
|
95
119
|
:host([size='extra-large']) {
|
|
96
120
|
min-width: 32px;
|
|
97
121
|
height: 32px;
|
|
98
|
-
font-size: ${
|
|
99
|
-
line-height: ${
|
|
100
|
-
padding-inline: calc(${
|
|
122
|
+
font-size: ${G};
|
|
123
|
+
line-height: ${ht};
|
|
124
|
+
padding-inline: calc(${Se} + ${ti});
|
|
101
125
|
}
|
|
102
126
|
:host([size='extra-large']) ::slotted(svg) {
|
|
103
127
|
font-size: 20px;
|
|
104
128
|
}
|
|
105
|
-
`,
|
|
129
|
+
`,on=p.partial`
|
|
106
130
|
:host([color='danger']) {
|
|
107
|
-
background-color: ${
|
|
108
|
-
color: ${
|
|
131
|
+
background-color: ${Cr};
|
|
132
|
+
color: ${Kt};
|
|
109
133
|
}
|
|
110
134
|
|
|
111
135
|
:host([color='important']) {
|
|
112
|
-
background-color: ${
|
|
113
|
-
color: ${
|
|
136
|
+
background-color: ${M};
|
|
137
|
+
color: ${_};
|
|
114
138
|
}
|
|
115
139
|
|
|
116
140
|
:host([color='informative']) {
|
|
117
|
-
background-color: ${
|
|
118
|
-
color: ${
|
|
141
|
+
background-color: ${Ga};
|
|
142
|
+
color: ${et};
|
|
119
143
|
}
|
|
120
144
|
|
|
121
145
|
:host([color='severe']) {
|
|
122
|
-
background-color: ${
|
|
123
|
-
color: ${
|
|
146
|
+
background-color: ${Br};
|
|
147
|
+
color: ${Kt};
|
|
124
148
|
}
|
|
125
149
|
|
|
126
150
|
:host([color='subtle']) {
|
|
127
|
-
background-color: ${
|
|
128
|
-
color: ${
|
|
151
|
+
background-color: ${_};
|
|
152
|
+
color: ${M};
|
|
129
153
|
}
|
|
130
154
|
|
|
131
155
|
:host([color='success']) {
|
|
132
|
-
background-color: ${
|
|
133
|
-
color: ${
|
|
156
|
+
background-color: ${Pr};
|
|
157
|
+
color: ${Kt};
|
|
134
158
|
}
|
|
135
159
|
|
|
136
160
|
:host([color='warning']) {
|
|
137
|
-
background-color: ${
|
|
138
|
-
color: ${
|
|
161
|
+
background-color: ${bl};
|
|
162
|
+
color: ${qa};
|
|
139
163
|
}
|
|
140
|
-
`,
|
|
164
|
+
`,sn=p.partial`
|
|
141
165
|
:host([appearance='ghost']) {
|
|
142
|
-
color: ${
|
|
166
|
+
color: ${Ai};
|
|
143
167
|
background-color: initial;
|
|
144
168
|
}
|
|
145
169
|
|
|
146
170
|
:host([appearance='ghost'][color='danger']) {
|
|
147
|
-
color: ${
|
|
171
|
+
color: ${Ir};
|
|
148
172
|
}
|
|
149
173
|
|
|
150
174
|
:host([appearance='ghost'][color='important']) {
|
|
151
|
-
color: ${
|
|
175
|
+
color: ${M};
|
|
152
176
|
}
|
|
153
177
|
|
|
154
178
|
:host([appearance='ghost'][color='informative']) {
|
|
155
|
-
color: ${
|
|
179
|
+
color: ${et};
|
|
156
180
|
}
|
|
157
181
|
|
|
158
182
|
:host([appearance='ghost'][color='severe']) {
|
|
159
|
-
color: ${
|
|
183
|
+
color: ${zr};
|
|
160
184
|
}
|
|
161
185
|
|
|
162
186
|
:host([appearance='ghost'][color='subtle']) {
|
|
163
|
-
color: ${
|
|
187
|
+
color: ${Do};
|
|
164
188
|
}
|
|
165
189
|
|
|
166
190
|
:host([appearance='ghost'][color='success']) {
|
|
167
|
-
color: ${
|
|
191
|
+
color: ${hl};
|
|
168
192
|
}
|
|
169
193
|
|
|
170
194
|
:host([appearance='ghost'][color='warning']) {
|
|
171
|
-
color: ${
|
|
195
|
+
color: ${ji};
|
|
172
196
|
}
|
|
173
|
-
`,
|
|
197
|
+
`,Sd=p.partial`
|
|
174
198
|
:host([appearance='outline']) {
|
|
175
199
|
border-color: currentColor;
|
|
176
|
-
color: ${
|
|
200
|
+
color: ${Ai};
|
|
177
201
|
background-color: initial;
|
|
178
202
|
}
|
|
179
203
|
|
|
180
204
|
:host([appearance='outline'][color='danger']) {
|
|
181
|
-
color: ${
|
|
205
|
+
color: ${Ir};
|
|
182
206
|
}
|
|
183
207
|
|
|
184
208
|
:host([appearance='outline'][color='important']) {
|
|
185
|
-
color: ${
|
|
186
|
-
border-color: ${
|
|
209
|
+
color: ${et};
|
|
210
|
+
border-color: ${Yt};
|
|
187
211
|
}
|
|
188
212
|
|
|
189
213
|
:host([appearance='outline'][color='informative']) {
|
|
190
|
-
color: ${
|
|
191
|
-
border-color: ${
|
|
214
|
+
color: ${et};
|
|
215
|
+
border-color: ${so};
|
|
192
216
|
}
|
|
193
217
|
|
|
194
218
|
:host([appearance='outline'][color='severe']) {
|
|
195
|
-
color: ${
|
|
219
|
+
color: ${zr};
|
|
196
220
|
}
|
|
197
221
|
|
|
198
222
|
:host([appearance='outline'][color='subtle']) {
|
|
199
|
-
color: ${
|
|
223
|
+
color: ${fr};
|
|
200
224
|
}
|
|
201
225
|
|
|
202
226
|
:host([appearance='outline'][color='success']) {
|
|
203
|
-
color: ${
|
|
227
|
+
color: ${dl};
|
|
204
228
|
}
|
|
205
229
|
|
|
206
230
|
:host([appearance='outline'][color='warning']) {
|
|
207
|
-
color: ${
|
|
231
|
+
color: ${ji};
|
|
208
232
|
}
|
|
209
|
-
`,
|
|
233
|
+
`,Id=p.partial`
|
|
210
234
|
:host([appearance='tint']) {
|
|
211
|
-
background-color: ${
|
|
212
|
-
color: ${
|
|
213
|
-
border-color: ${
|
|
235
|
+
background-color: ${Ja};
|
|
236
|
+
color: ${ja};
|
|
237
|
+
border-color: ${kr};
|
|
214
238
|
}
|
|
215
239
|
|
|
216
240
|
:host([appearance='tint'][color='danger']) {
|
|
217
|
-
background-color: ${
|
|
218
|
-
color: ${
|
|
219
|
-
border-color: ${
|
|
241
|
+
background-color: ${ol};
|
|
242
|
+
color: ${Sr};
|
|
243
|
+
border-color: ${sl};
|
|
220
244
|
}
|
|
221
245
|
|
|
222
246
|
:host([appearance='tint'][color='important']) {
|
|
223
|
-
background-color: ${
|
|
224
|
-
color: ${
|
|
225
|
-
border-color: ${
|
|
247
|
+
background-color: ${et};
|
|
248
|
+
color: ${_};
|
|
249
|
+
border-color: ${Ot};
|
|
226
250
|
}
|
|
227
251
|
|
|
228
252
|
:host([appearance='tint'][color='informative']) {
|
|
229
|
-
background-color: ${
|
|
230
|
-
color: ${
|
|
231
|
-
border-color: ${
|
|
253
|
+
background-color: ${Wa};
|
|
254
|
+
color: ${et};
|
|
255
|
+
border-color: ${so};
|
|
232
256
|
}
|
|
233
257
|
|
|
234
258
|
:host([appearance='tint'][color='severe']) {
|
|
235
|
-
background-color: ${
|
|
236
|
-
color: ${
|
|
237
|
-
border-color: ${
|
|
259
|
+
background-color: ${ul};
|
|
260
|
+
color: ${fl};
|
|
261
|
+
border-color: ${pl};
|
|
238
262
|
}
|
|
239
263
|
|
|
240
264
|
:host([appearance='tint'][color='subtle']) {
|
|
241
|
-
background-color: ${
|
|
242
|
-
color: ${
|
|
243
|
-
border-color: ${
|
|
265
|
+
background-color: ${_};
|
|
266
|
+
color: ${et};
|
|
267
|
+
border-color: ${so};
|
|
244
268
|
}
|
|
245
269
|
|
|
246
270
|
:host([appearance='tint'][color='success']) {
|
|
247
|
-
background-color: ${
|
|
248
|
-
color: ${
|
|
249
|
-
border-color: ${
|
|
271
|
+
background-color: ${al};
|
|
272
|
+
color: ${cl};
|
|
273
|
+
border-color: ${ll};
|
|
250
274
|
}
|
|
251
275
|
|
|
252
276
|
:host([appearance='tint'][color='warning']) {
|
|
253
|
-
background-color: ${
|
|
254
|
-
color: ${
|
|
255
|
-
border-color: ${
|
|
256
|
-
}
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
${
|
|
260
|
-
${
|
|
261
|
-
${
|
|
262
|
-
|
|
263
|
-
${
|
|
264
|
-
`,yd=ld.compose({name:Tt.prefix+"-badge",template:dd,styles:vd}),kd="ElementInternals"in window&&"setFormValue"in window.ElementInternals.prototype,xd=new WeakMap;function $d(e){const t=class extends e{constructor(...e){super(...e),this.dirtyValue=!1,this.disabled=!1,this.proxyEventsToBlock=["change","click"],this.proxyInitialized=!1,this.required=!1,this.initialValue=this.initialValue||"",this.elementInternals||(this.formResetCallback=this.formResetCallback.bind(this))}static get formAssociated(){return kd}get validity(){return this.elementInternals?this.elementInternals.validity:this.proxy.validity}get form(){return this.elementInternals?this.elementInternals.form:this.proxy.form}get validationMessage(){return this.elementInternals?this.elementInternals.validationMessage:this.proxy.validationMessage}get willValidate(){return this.elementInternals?this.elementInternals.willValidate:this.proxy.willValidate}get labels(){if(this.elementInternals)return Object.freeze(Array.from(this.elementInternals.labels));if(this.proxy instanceof HTMLElement&&this.proxy.ownerDocument&&this.id){const e=this.proxy.labels,t=Array.from(this.proxy.getRootNode().querySelectorAll(`[for='${this.id}']`)),o=e?t.concat(Array.from(e)):t;return Object.freeze(o)}return d}valueChanged(e,t){this.dirtyValue=!0,this.proxy instanceof HTMLElement&&(this.proxy.value=this.value),this.currentValue=this.value,this.setFormValue(this.value),this.validate()}currentValueChanged(){this.value=this.currentValue}initialValueChanged(e,t){this.dirtyValue||(this.value=this.initialValue,this.dirtyValue=!1)}disabledChanged(e,t){this.proxy instanceof HTMLElement&&(this.proxy.disabled=this.disabled),k.enqueue(()=>this.classList.toggle("disabled",this.disabled))}nameChanged(e,t){this.proxy instanceof HTMLElement&&(this.proxy.name=this.name)}requiredChanged(e,t){this.proxy instanceof HTMLElement&&(this.proxy.required=this.required),k.enqueue(()=>this.classList.toggle("required",this.required)),this.validate()}get elementInternals(){if(!kd)return null;let e=xd.get(this);return e||(e=this.attachInternals(),xd.set(this,e)),e}connectedCallback(){super.connectedCallback(),this.addEventListener("keypress",this._keypressHandler),this.value||(this.value=this.initialValue,this.dirtyValue=!1),this.elementInternals||(this.attachProxy(),this.form&&this.form.addEventListener("reset",this.formResetCallback))}disconnectedCallback(){this.proxyEventsToBlock.forEach(e=>this.proxy.removeEventListener(e,this.stopPropagation)),!this.elementInternals&&this.form&&this.form.removeEventListener("reset",this.formResetCallback)}checkValidity(){return this.elementInternals?this.elementInternals.checkValidity():this.proxy.checkValidity()}reportValidity(){return this.elementInternals?this.elementInternals.reportValidity():this.proxy.reportValidity()}setValidity(e,t,o){this.elementInternals?this.elementInternals.setValidity(e,t,o):"string"==typeof t&&this.proxy.setCustomValidity(t)}formDisabledCallback(e){this.disabled=e}formResetCallback(){this.value=this.initialValue,this.dirtyValue=!1}attachProxy(){var e;this.proxyInitialized||(this.proxyInitialized=!0,this.proxy.style.display="none",this.proxyEventsToBlock.forEach(e=>this.proxy.addEventListener(e,this.stopPropagation)),this.proxy.disabled=this.disabled,this.proxy.required=this.required,"string"==typeof this.name&&(this.proxy.name=this.name),"string"==typeof this.value&&(this.proxy.value=this.value),this.proxy.setAttribute("slot","form-associated-proxy"),this.proxySlot=document.createElement("slot"),this.proxySlot.setAttribute("name","form-associated-proxy")),null===(e=this.shadowRoot)||void 0===e||e.appendChild(this.proxySlot),this.appendChild(this.proxy)}detachProxy(){var e;this.removeChild(this.proxy),null===(e=this.shadowRoot)||void 0===e||e.removeChild(this.proxySlot)}validate(e){this.proxy instanceof HTMLElement&&this.setValidity(this.proxy.validity,this.proxy.validationMessage,e)}setFormValue(e,t){this.elementInternals&&this.elementInternals.setFormValue(e,t||e)}_keypressHandler(e){switch(e.key){case"Enter":if(this.form instanceof HTMLFormElement){const e=this.form.querySelector("[type=submit]");null==e||e.click()}}}stopPropagation(e){e.stopPropagation()}};return Ee({mode:"boolean"})(t.prototype,"disabled"),Ee({mode:"fromView",attribute:"value"})(t.prototype,"initialValue"),Ee({attribute:"current-value"})(t.prototype,"currentValue"),Ee(t.prototype,"name"),Ee({mode:"boolean"})(t.prototype,"required"),C(t.prototype,"value"),t}function wd(e){class t extends($d(e)){}class o extends t{constructor(...e){super(e),this.dirtyChecked=!1,this.checkedAttribute=!1,this.checked=!1,this.dirtyChecked=!1}checkedAttributeChanged(){this.defaultChecked=this.checkedAttribute}defaultCheckedChanged(){this.dirtyChecked||(this.checked=this.defaultChecked,this.dirtyChecked=!1)}checkedChanged(e,t){this.dirtyChecked||(this.dirtyChecked=!0),this.currentChecked=this.checked,this.updateForm(),this.proxy instanceof HTMLInputElement&&(this.proxy.checked=this.checked),void 0!==e&&this.$emit("change"),this.validate()}currentCheckedChanged(e,t){this.checked=this.currentChecked}updateForm(){const e=this.checked?this.value:null;this.setFormValue(e,e)}connectedCallback(){super.connectedCallback(),this.updateForm()}formResetCallback(){super.formResetCallback(),this.checked=!!this.checkedAttribute,this.dirtyChecked=!1}}return Ee({attribute:"checked",mode:"boolean"})(o.prototype,"checkedAttribute"),Ee({attribute:"current-checked",converter:Le})(o.prototype,"currentChecked"),C(o.prototype,"defaultChecked"),C(o.prototype,"checked"),o}class Bd extends ot{}class Cd extends($d(Bd)){constructor(){super(...arguments),this.proxy=document.createElement("input")}}const Sd="submit",Pd="reset";class Td extends Cd{constructor(){super(...arguments),this.handleSubmission=()=>{if(!this.form)return;const e=this.proxy.isConnected;e||this.attachProxy(),"function"==typeof this.form.requestSubmit?this.form.requestSubmit(this.proxy):this.proxy.click(),e||this.detachProxy()},this.handleFormReset=()=>{var e;null===(e=this.form)||void 0===e||e.reset()}}formactionChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.formAction=this.formaction)}formenctypeChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.formEnctype=this.formenctype)}formmethodChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.formMethod=this.formmethod)}formnovalidateChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.formNoValidate=this.formnovalidate)}formtargetChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.formTarget=this.formtarget)}typeChanged(e,t){this.proxy instanceof HTMLInputElement&&(this.proxy.type=this.type),t===Sd&&this.addEventListener("click",this.handleSubmission),e===Sd&&this.removeEventListener("click",this.handleSubmission),t===Pd&&this.addEventListener("click",this.handleFormReset),e===Pd&&this.removeEventListener("click",this.handleFormReset)}validate(){super.validate(this.control)}connectedCallback(){super.connectedCallback(),this.proxy.setAttribute("type",this.type)}}e([Ee({mode:"boolean"})],Td.prototype,"autofocus",void 0),e([Ee({attribute:"form"})],Td.prototype,"formId",void 0),e([Ee],Td.prototype,"formaction",void 0),e([Ee],Td.prototype,"formenctype",void 0),e([Ee],Td.prototype,"formmethod",void 0),e([Ee({mode:"boolean"})],Td.prototype,"formnovalidate",void 0),e([Ee],Td.prototype,"formtarget",void 0),e([Ee],Td.prototype,"type",void 0),e([C],Td.prototype,"defaultSlottedContent",void 0);class Id{}function Ad(e={}){return xe`<button class="control" part="control" ?autofocus="${e=>e.autofocus}" ?disabled="${e=>e.disabled}" form="${e=>e.formId}" formaction="${e=>e.formaction}" formenctype="${e=>e.formenctype}" formmethod="${e=>e.formmethod}" ?formnovalidate="${e=>e.formnovalidate}" formtarget="${e=>e.formtarget}" name="${e=>e.name}" type="${e=>e.type}" value="${e=>e.value}" aria-atomic="${e=>e.ariaAtomic}" aria-busy="${e=>e.ariaBusy}" aria-controls="${e=>e.ariaControls}" aria-current="${e=>e.ariaCurrent}" aria-describedby="${e=>e.ariaDescribedby}" aria-details="${e=>e.ariaDetails}" aria-disabled="${e=>e.ariaDisabled}" aria-errormessage="${e=>e.ariaErrormessage}" aria-expanded="${e=>e.ariaExpanded}" aria-flowto="${e=>e.ariaFlowto}" aria-haspopup="${e=>e.ariaHaspopup}" aria-hidden="${e=>e.ariaHidden}" aria-invalid="${e=>e.ariaInvalid}" aria-keyshortcuts="${e=>e.ariaKeyshortcuts}" aria-label="${e=>e.ariaLabel}" aria-labelledby="${e=>e.ariaLabelledby}" aria-live="${e=>e.ariaLive}" aria-owns="${e=>e.ariaOwns}" aria-pressed="${e=>e.ariaPressed}" aria-relevant="${e=>e.ariaRelevant}" aria-roledescription="${e=>e.ariaRoledescription}" ${we("control")}>${gt(e)}<span class="content" part="content"><slot ${Fe("defaultSlottedContent")}></slot></span>${pt(e)}</button>`}e([Ee({attribute:"aria-expanded"})],Id.prototype,"ariaExpanded",void 0),e([Ee({attribute:"aria-pressed"})],Id.prototype,"ariaPressed",void 0),bt(Id,dt),bt(Td,ut,Id);var Fd=Object.defineProperty,zd=Object.getOwnPropertyDescriptor,Ld=(e,t,o,r)=>{for(var i,a=r>1?void 0:r?zd(t,o):t,n=e.length-1;n>=0;n--)(i=e[n])&&(a=(r?i(t,o,a):i(a))||a);return r&&a&&Fd(t,o,a),a};class Nd extends Td{constructor(){super(...arguments),this.iconOnly=!1,this.disabledFocusable=!1,this.handleDisabledFocusableClick=e=>{e&&this.disabledFocusable&&e.stopImmediatePropagation()}}disabledFocusableChanged(e,t){this.$fastController.isConnected&&(this.disabledFocusable?this.setAttribute("aria-disabled","true"):this.removeAttribute("aria-disabled"))}connectedCallback(){super.connectedCallback(),this.addEventListener("click",this.handleDisabledFocusableClick)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",this.handleDisabledFocusableClick)}}Ld([Ee],Nd.prototype,"appearance",2),Ld([Ee],Nd.prototype,"shape",2),Ld([Ee],Nd.prototype,"size",2),Ld([Ee({attribute:"icon-only",mode:"boolean"})],Nd.prototype,"iconOnly",2),Ld([Ee({attribute:"disabled-focusable",mode:"boolean"})],Nd.prototype,"disabledFocusable",2);const Od=Ad(),Dd=Nd.compose({name:Tt.prefix+"-button",template:Od,styles:Sc,shadowOptions:{delegatesFocus:!0}});class Ed extends ot{}class Md extends(wd(Ed)){constructor(){super(...arguments),this.proxy=document.createElement("input")}}class Rd extends Md{constructor(){super(),this.initialValue="on",this.indeterminate=!1,this.keypressHandler=e=>{if(!this.disabled)switch(e.key){case" ":this.toggleChecked()}},this.clickHandler=e=>{this.disabled||this.toggleChecked()},this.proxy.setAttribute("type","checkbox")}toggleChecked(){this.indeterminate&&(this.indeterminate=!1),this.checked=!this.checked}}e([C],Rd.prototype,"defaultSlottedNodes",void 0),e([C],Rd.prototype,"indeterminate",void 0);var Hd=Object.defineProperty,Vd=Object.getOwnPropertyDescriptor,_d=(e,t,o,r)=>{for(var i,a=r>1?void 0:r?Vd(t,o):t,n=e.length-1;n>=0;n--)(i=e[n])&&(a=(r?i(t,o,a):i(a))||a);return r&&a&&Hd(t,o,a),a};class jd extends Rd{}_d([Ee],jd.prototype,"shape",2),_d([Ee],jd.prototype,"size",2),_d([Ee({attribute:"label-position"})],jd.prototype,"labelPosition",2);const Gd={circular:"circular",square:"square"},qd={medium:"medium",large:"large"},Xd={before:"before",after:"after"},Wd=function(e={}){return xe`<template role="checkbox" aria-checked="${e=>e.indeterminate?"mixed":e.checked}" aria-required="${e=>e.required}" aria-disabled="${e=>e.disabled}" tabindex="${e=>e.disabled?null:0}" @keypress="${(e,t)=>e.keypressHandler(t.event)}" @click="${(e,t)=>e.clickHandler(t.event)}"><div part="control" class="control"><slot name="checked-indicator">${ht(e.checkedIndicator)}</slot><slot name="indeterminate-indicator">${ht(e.indeterminateIndicator)}</slot></div><label part="label" class="${e=>e.defaultSlottedNodes&&e.defaultSlottedNodes.length?"label":"label label__hidden"}"><slot ${Fe("defaultSlottedNodes")}></slot></label></template>`}({checkedIndicator:xe.partial('\n <div class="checked-indicator">\n <svg fill="currentColor" \n aria-hidden="true" \n width="1em" \n height="1em" \n viewBox="0 0 12 12" \n xmlns="http://www.w3.org/2000/svg">\n <path d="M9.76 3.2c.3.29.32.76.04 1.06l-4.25 4.5a.75.75 0 0 1-1.08.02L2.22 6.53a.75.75 0 0 1 1.06-1.06l1.7 1.7L8.7 3.24a.75.75 0 0 1 1.06-.04Z" fill="currentColor">\n </path>\n </svg>\n </div>\n'),indeterminateIndicator:xe.partial('\n <div class="indeterminate-indicator"></div>\n')}),Ud=j`
|
|
265
|
-
${
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
${
|
|
275
|
-
${
|
|
276
|
-
${
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
${
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
${
|
|
285
|
-
|
|
286
|
-
:host{font-family:${To};font-size:${co};line-height:${ko};font-weight:${Fo};color:${wr}}.asterisk{color:${un};margin-left:${Vo}}:host([size='small']){font-size:${lo};line-height:${yo}}:host([size='large']){font-size:${ho};line-height:${xo};font-weight:${Lo}}:host([weight='semibold']){font-weight:${Lo}}:host([disabled]),:host([disabled]) .asterisk{color:${_r}}`;const Hh=xe`<slot></slot><span part="asterisk" class="asterisk" ?hidden="${e=>!e.required}">*</span>`,Vh=Mh.compose({name:Tt.prefix+"-label",template:Hh,styles:Rh});function _h(e){return e.split("-")[1]}function jh(e){return"y"===e?"height":"width"}function Gh(e){return e.split("-")[0]}function qh(e){return["top","bottom"].includes(Gh(e))?"x":"y"}function Xh(e,t,o){let{reference:r,floating:i}=e;const a=r.x+r.width/2-i.width/2,n=r.y+r.height/2-i.height/2,s=qh(t),l=jh(s),c=r[l]/2-i[l]/2,d="x"===s;let h;switch(Gh(t)){case"top":h={x:a,y:r.y-i.height};break;case"bottom":h={x:a,y:r.y+r.height};break;case"right":h={x:r.x+r.width,y:n};break;case"left":h={x:r.x-i.width,y:n};break;default:h={x:r.x,y:r.y}}switch(_h(t)){case"start":h[s]-=c*(o&&d?-1:1);break;case"end":h[s]+=c*(o&&d?-1:1)}return h}function Wh(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}async function Uh(e,t){var o;void 0===t&&(t={});const{x:r,y:i,platform:a,rects:n,elements:s,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:d="viewport",elementContext:h="floating",altBoundary:u=!1,padding:p=0}=t,g=function(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}(p),b=s[u?"floating"===h?"reference":"floating":h],f=Wh(await a.getClippingRect({element:null==(o=await(null==a.isElement?void 0:a.isElement(b)))||o?b:b.contextElement||await(null==a.getDocumentElement?void 0:a.getDocumentElement(s.floating)),boundary:c,rootBoundary:d,strategy:l})),m="floating"===h?{...n.floating,x:r,y:i}:n.reference,v=await(null==a.getOffsetParent?void 0:a.getOffsetParent(s.floating)),y=await(null==a.isElement?void 0:a.isElement(v))&&await(null==a.getScale?void 0:a.getScale(v))||{x:1,y:1},k=Wh(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({rect:m,offsetParent:v,strategy:l}):m);return{top:(f.top-k.top+g.top)/y.y,bottom:(k.bottom-f.bottom+g.bottom)/y.y,left:(f.left-k.left+g.left)/y.x,right:(k.right-f.right+g.right)/y.x}}const Yh=Math.min,Kh=Math.max;function Qh(e,t,o){return Kh(e,Yh(t,o))}const Zh=["top","right","bottom","left"];Zh.reduce((e,t)=>e.concat(t,t+"-start",t+"-end"),[]);const Jh={left:"right",right:"left",bottom:"top",top:"bottom"};function eu(e){return e.replace(/left|right|bottom|top/g,e=>Jh[e])}function tu(e,t,o){void 0===o&&(o=!1);const r=_h(e),i=qh(e),a=jh(i);let n="x"===i?r===(o?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[a]>t.floating[a]&&(n=eu(n)),{main:n,cross:eu(n)}}const ou={start:"end",end:"start"};function ru(e){return e.replace(/start|end/g,e=>ou[e])}const iu=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var o;const{placement:r,middlewareData:i,rects:a,initialPlacement:n,platform:s,elements:l}=t,{mainAxis:c=!0,crossAxis:d=!0,fallbackPlacements:h,fallbackStrategy:u="bestFit",fallbackAxisSideDirection:p="none",flipAlignment:g=!0,...b}=e,f=Gh(r),m=Gh(n)===n,v=await(null==s.isRTL?void 0:s.isRTL(l.floating)),y=h||(m||!g?[eu(n)]:function(e){const t=eu(e);return[ru(e),t,ru(t)]}(n));h||"none"===p||y.push(...function(e,t,o,r){const i=_h(e);let a=function(e,t,o){const r=["left","right"],i=["right","left"],a=["top","bottom"],n=["bottom","top"];switch(e){case"top":case"bottom":return o?t?i:r:t?r:i;case"left":case"right":return t?a:n;default:return[]}}(Gh(e),"start"===o,r);return i&&(a=a.map(e=>e+"-"+i),t&&(a=a.concat(a.map(ru)))),a}(n,g,p,v));const k=[n,...y],x=await Uh(t,b),$=[];let w=(null==(o=i.flip)?void 0:o.overflows)||[];if(c&&$.push(x[f]),d){const{main:e,cross:t}=tu(r,a,v);$.push(x[e],x[t])}if(w=[...w,{placement:r,overflows:$}],!$.every(e=>e<=0)){var B,C;const e=((null==(B=i.flip)?void 0:B.index)||0)+1,t=k[e];if(t)return{data:{index:e,overflows:w},reset:{placement:t}};let o=null==(C=w.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:C.placement;if(!o)switch(u){case"bestFit":{var S;const e=null==(S=w.map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:S[0];e&&(o=e);break}case"initialPlacement":o=n}if(r!==o)return{reset:{placement:o}}}return{}}}};function au(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function nu(e){return Zh.some(t=>e[t]>=0)}const su=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){const{strategy:o="referenceHidden",...r}=e,{rects:i}=t;switch(o){case"referenceHidden":{const e=au(await Uh(t,{...r,elementContext:"reference"}),i.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:nu(e)}}}case"escaped":{const e=au(await Uh(t,{...r,altBoundary:!0}),i.floating);return{data:{escapedOffsets:e,escaped:nu(e)}}}default:return{}}}}};const lu=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:o,y:r,placement:i}=t,{mainAxis:a=!0,crossAxis:n=!1,limiter:s={fn:e=>{let{x:t,y:o}=e;return{x:t,y:o}}},...l}=e,c={x:o,y:r},d=await Uh(t,l),h=qh(Gh(i)),u=function(e){return"x"===e?"y":"x"}(h);let p=c[h],g=c[u];if(a){const e="y"===h?"bottom":"right";p=Qh(p+d["y"===h?"top":"left"],p,p-d[e])}if(n){const e="y"===u?"bottom":"right";g=Qh(g+d["y"===u?"top":"left"],g,g-d[e])}const b=s.fn({...t,[h]:p,[u]:g});return{...b,data:{x:b.x-o,y:b.y-r}}}}},cu=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){const{placement:o,rects:r,platform:i,elements:a}=t,{apply:n=(()=>{}),...s}=e,l=await Uh(t,s),c=Gh(o),d=_h(o),h="x"===qh(o),{width:u,height:p}=r.floating;let g,b;"top"===c||"bottom"===c?(g=c,b=d===(await(null==i.isRTL?void 0:i.isRTL(a.floating))?"start":"end")?"left":"right"):(b=c,g="end"===d?"top":"bottom");const f=p-l[g],m=u-l[b];let v=f,y=m;if(h?y=Yh(u-l.right-l.left,m):v=Yh(p-l.bottom-l.top,f),!t.middlewareData.shift&&!d){const e=Kh(l.left,0),t=Kh(l.right,0),o=Kh(l.top,0),r=Kh(l.bottom,0);h?y=u-2*(0!==e||0!==t?e+t:Kh(l.left,l.right)):v=p-2*(0!==o||0!==r?o+r:Kh(l.top,l.bottom))}await n({...t,availableWidth:y,availableHeight:v});const k=await i.getDimensions(a.floating);return u!==k.width||p!==k.height?{reset:{rects:!0}}:{}}}};function du(e){var t;return(null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function hu(e){return du(e).getComputedStyle(e)}const uu=Math.min,pu=Math.max,gu=Math.round;function bu(e){const t=hu(e);let o=parseFloat(t.width),r=parseFloat(t.height);const i=e.offsetWidth,a=e.offsetHeight,n=gu(o)!==i||gu(r)!==a;return n&&(o=i,r=a),{width:o,height:r,fallback:n}}function fu(e){return xu(e)?(e.nodeName||"").toLowerCase():""}let mu;function vu(){if(mu)return mu;const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?(mu=e.brands.map(e=>e.brand+"/"+e.version).join(" "),mu):navigator.userAgent}function yu(e){return e instanceof du(e).HTMLElement}function ku(e){return e instanceof du(e).Element}function xu(e){return e instanceof du(e).Node}function $u(e){return"undefined"!=typeof ShadowRoot&&(e instanceof du(e).ShadowRoot||e instanceof ShadowRoot)}function wu(e){const{overflow:t,overflowX:o,overflowY:r,display:i}=hu(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+o)&&!["inline","contents"].includes(i)}function Bu(e){return["table","td","th"].includes(fu(e))}function Cu(e){const t=/firefox/i.test(vu()),o=hu(e),r=o.backdropFilter||o.WebkitBackdropFilter;return"none"!==o.transform||"none"!==o.perspective||!!r&&"none"!==r||t&&"filter"===o.willChange||t&&!!o.filter&&"none"!==o.filter||["transform","perspective"].some(e=>o.willChange.includes(e))||["paint","layout","strict","content"].some(e=>{const t=o.contain;return null!=t&&t.includes(e)})}function Su(){return/^((?!chrome|android).)*safari/i.test(vu())}function Pu(e){return["html","body","#document"].includes(fu(e))}function Tu(e){return ku(e)?e:e.contextElement}const Iu={x:1,y:1};function Au(e){const t=Tu(e);if(!yu(t))return Iu;const o=t.getBoundingClientRect(),{width:r,height:i,fallback:a}=bu(t);let n=(a?gu(o.width):o.width)/r,s=(a?gu(o.height):o.height)/i;return n&&Number.isFinite(n)||(n=1),s&&Number.isFinite(s)||(s=1),{x:n,y:s}}function Fu(e,t,o,r){var i,a;void 0===t&&(t=!1),void 0===o&&(o=!1);const n=e.getBoundingClientRect(),s=Tu(e);let l=Iu;t&&(r?ku(r)&&(l=Au(r)):l=Au(e));const c=s?du(s):window,d=Su()&&o;let h=(n.left+(d&&(null==(i=c.visualViewport)?void 0:i.offsetLeft)||0))/l.x,u=(n.top+(d&&(null==(a=c.visualViewport)?void 0:a.offsetTop)||0))/l.y,p=n.width/l.x,g=n.height/l.y;if(s){const e=du(s),t=r&&ku(r)?du(r):r;let o=e.frameElement;for(;o&&r&&t!==e;){const e=Au(o),t=o.getBoundingClientRect(),r=getComputedStyle(o);t.x+=(o.clientLeft+parseFloat(r.paddingLeft))*e.x,t.y+=(o.clientTop+parseFloat(r.paddingTop))*e.y,h*=e.x,u*=e.y,p*=e.x,g*=e.y,h+=t.x,u+=t.y,o=du(o).frameElement}}return{width:p,height:g,top:u,right:h+p,bottom:u+g,left:h,x:h,y:u}}function zu(e){return((xu(e)?e.ownerDocument:e.document)||window.document).documentElement}function Lu(e){return ku(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Nu(e){return Fu(zu(e)).left+Lu(e).scrollLeft}function Ou(e){if("html"===fu(e))return e;const t=e.assignedSlot||e.parentNode||$u(e)&&e.host||zu(e);return $u(t)?t.host:t}function Du(e,t){var o;void 0===t&&(t=[]);const r=function e(t){const o=Ou(t);return Pu(o)?o.ownerDocument.body:yu(o)&&wu(o)?o:e(o)}(e),i=r===(null==(o=e.ownerDocument)?void 0:o.body),a=du(r);return i?t.concat(a,a.visualViewport||[],wu(r)?r:[]):t.concat(r,Du(r))}function Eu(e,t,o){let r;if("viewport"===t)r=function(e,t){const o=du(e),r=zu(e),i=o.visualViewport;let a=r.clientWidth,n=r.clientHeight,s=0,l=0;if(i){a=i.width,n=i.height;const e=Su();(!e||e&&"fixed"===t)&&(s=i.offsetLeft,l=i.offsetTop)}return{width:a,height:n,x:s,y:l}}(e,o);else if("document"===t)r=function(e){const t=zu(e),o=Lu(e),r=e.ownerDocument.body,i=pu(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=pu(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let n=-o.scrollLeft+Nu(e);const s=-o.scrollTop;return"rtl"===hu(r).direction&&(n+=pu(t.clientWidth,r.clientWidth)-i),{width:i,height:a,x:n,y:s}}(zu(e));else if(ku(t))r=function(e,t){const o=Fu(e,!0,"fixed"===t),r=o.top+e.clientTop,i=o.left+e.clientLeft,a=yu(e)?Au(e):{x:1,y:1};return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:r*a.y}}(t,o);else{const o={...t};if(Su()){var i,a;const t=du(e);o.x-=(null==(i=t.visualViewport)?void 0:i.offsetLeft)||0,o.y-=(null==(a=t.visualViewport)?void 0:a.offsetTop)||0}r=o}return Wh(r)}function Mu(e,t){return yu(e)&&"fixed"!==hu(e).position?t?t(e):e.offsetParent:null}function Ru(e,t){const o=du(e);let r=Mu(e,t);for(;r&&Bu(r)&&"static"===hu(r).position;)r=Mu(r,t);return r&&("html"===fu(r)||"body"===fu(r)&&"static"===hu(r).position&&!Cu(r))?o:r||function(e){let t=Ou(e);for(;yu(t)&&!Pu(t);){if(Cu(t))return t;t=Ou(t)}return null}(e)||o}function Hu(e,t,o){const r=yu(t),i=zu(t),a=Fu(e,!0,"fixed"===o,t);let n={scrollLeft:0,scrollTop:0};const s={x:0,y:0};if(r||!r&&"fixed"!==o)if(("body"!==fu(t)||wu(i))&&(n=Lu(t)),yu(t)){const e=Fu(t,!0);s.x=e.x+t.clientLeft,s.y=e.y+t.clientTop}else i&&(s.x=Nu(i));return{x:a.left+n.scrollLeft-s.x,y:a.top+n.scrollTop-s.y,width:a.width,height:a.height}}const Vu={getClippingRect:function(e){let{element:t,boundary:o,rootBoundary:r,strategy:i}=e;const a=[..."clippingAncestors"===o?function(e,t){const o=t.get(e);if(o)return o;let r=Du(e).filter(e=>ku(e)&&"body"!==fu(e)),i=null;const a="fixed"===hu(e).position;let n=a?Ou(e):e;for(;ku(n)&&!Pu(n);){const e=hu(n),t=Cu(n);(a?t||i:t||"static"!==e.position||!i||!["absolute","fixed"].includes(i.position))?i=e:r=r.filter(e=>e!==n),n=Ou(n)}return t.set(e,r),r}(t,this._c):[].concat(o),r],n=a[0],s=a.reduce((e,o)=>{const r=Eu(t,o,i);return e.top=pu(r.top,e.top),e.right=uu(r.right,e.right),e.bottom=uu(r.bottom,e.bottom),e.left=pu(r.left,e.left),e},Eu(t,n,i));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:o,strategy:r}=e;const i=yu(o),a=zu(o);if(o===a)return t;let n={scrollLeft:0,scrollTop:0},s={x:1,y:1};const l={x:0,y:0};if((i||!i&&"fixed"!==r)&&(("body"!==fu(o)||wu(a))&&(n=Lu(o)),yu(o))){const e=Fu(o);s=Au(o),l.x=e.x+o.clientLeft,l.y=e.y+o.clientTop}return{width:t.width*s.x,height:t.height*s.y,x:t.x*s.x-n.scrollLeft*s.x+l.x,y:t.y*s.y-n.scrollTop*s.y+l.y}},isElement:ku,getDimensions:function(e){return yu(e)?bu(e):e.getBoundingClientRect()},getOffsetParent:Ru,getDocumentElement:zu,getScale:Au,async getElementRects(e){let{reference:t,floating:o,strategy:r}=e;const i=this.getOffsetParent||Ru,a=this.getDimensions;return{reference:Hu(t,await i(o),r),floating:{x:0,y:0,...await a(o)}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>"rtl"===hu(e).direction};function _u(e,t,o,r){void 0===r&&(r={});const{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:n=!0,animationFrame:s=!1}=r,l=i&&!s,c=l||a?[...ku(e)?Du(e):e.contextElement?Du(e.contextElement):[],...Du(t)]:[];c.forEach(e=>{l&&e.addEventListener("scroll",o,{passive:!0}),a&&e.addEventListener("resize",o)});let d,h=null;if(n){let r=!0;h=new ResizeObserver(()=>{r||o(),r=!1}),ku(e)&&!s&&h.observe(e),ku(e)||!e.contextElement||s||h.observe(e.contextElement),h.observe(t)}let u=s?Fu(e):null;return s&&function t(){const r=Fu(e);!u||r.x===u.x&&r.y===u.y&&r.width===u.width&&r.height===u.height||o(),u=r,d=requestAnimationFrame(t)}(),o(),()=>{var e;c.forEach(e=>{l&&e.removeEventListener("scroll",o),a&&e.removeEventListener("resize",o)}),null==(e=h)||e.disconnect(),h=null,s&&cancelAnimationFrame(d)}}const ju=(e,t,o)=>{const r=new Map,i={platform:Vu,...o},a={...i.platform,_c:r};return(async(e,t,o)=>{const{placement:r="bottom",strategy:i="absolute",middleware:a=[],platform:n}=o,s=a.filter(Boolean),l=await(null==n.isRTL?void 0:n.isRTL(t));let c=await n.getElementRects({reference:e,floating:t,strategy:i}),{x:d,y:h}=Xh(c,r,l),u=r,p={},g=0;for(let o=0;o<s.length;o++){const{name:a,fn:b}=s[o],{x:f,y:m,data:v,reset:y}=await b({x:d,y:h,initialPlacement:r,placement:u,strategy:i,middlewareData:p,rects:c,platform:n,elements:{reference:e,floating:t}});d=null!=f?f:d,h=null!=m?m:h,p={...p,[a]:{...p[a],...v}},y&&g<=50&&(g++,"object"==typeof y&&(y.placement&&(u=y.placement),y.rects&&(c=!0===y.rects?await n.getElementRects({reference:e,floating:t,strategy:i}):y.rects),({x:d,y:h}=Xh(c,u,l))),o=-1)}return{x:d,y:h,placement:u,strategy:i,middlewareData:p}})(e,t,{...i,platform:a})};var Gu=Object.defineProperty,qu=Object.getOwnPropertyDescriptor,Xu=(e,t,o,r)=>{for(var i,a=r>1?void 0:r?qu(t,o):t,n=e.length-1;n>=0;n--)(i=e[n])&&(a=(r?i(t,o,a):i(a))||a);return r&&a&&Gu(t,o,a),a};class Wu extends ot{constructor(){super(...arguments),this.openOnHover=!1,this.openOnContext=!1,this.closeOnScroll=!1,this.persistOnItemClick=!1,this.open=!1,this.slottedMenuList=[],this.slottedTriggers=[],this.toggleMenu=()=>{this.open?this.closeMenu():this.openMenu()},this.closeMenu=()=>{this.open=!1,this.closeOnScroll&&document.removeEventListener("scroll",this.closeMenu)},this.openMenu=e=>{this.open=!0,e&&this.openOnContext&&e.preventDefault(),this.closeOnScroll&&document.addEventListener("scroll",this.closeMenu)},this.setPositioningTask=()=>{this.setPositioning()},this.handleTriggerKeydown=e=>{if(e.defaultPrevented)return;switch(e.key){case" ":case"Enter":e.preventDefault(),this.toggleMenu(),this.open&&this.focusMenuList();break;default:return!0}},this.handleDocumentClick=e=>{!e||e.composedPath().includes(this._menuList)||e.composedPath().includes(this._trigger)||this.closeMenu()}}connectedCallback(){super.connectedCallback(),k.enqueue(()=>this.setComponent())}disconnectedCallback(){var e;super.disconnectedCallback(),null==(e=this.cleanup)||e.call(this),this.removeListeners()}setComponent(){this.$fastController.isConnected&&this.slottedMenuList.length&&this.slottedTriggers.length&&(this._trigger=this.slottedTriggers[0],this._menuList=this.slottedMenuList[0],this._trigger.setAttribute("aria-haspopup","true"),this._trigger.setAttribute("aria-expanded",""+this.open),this.addListeners())}focusMenuList(){this.open&&this._menuList&&k.enqueue(()=>{this._menuList.focus()})}focusTrigger(){!this.open&&this._trigger&&k.enqueue(()=>{this._trigger.focus()})}openChanged(e,t){var o;this.$fastController.isConnected&&this._trigger instanceof HTMLElement&&(this._trigger.setAttribute("aria-expanded",""+this.open),this._menuList&&this.open&&k.enqueue(this.setPositioningTask)),null==(o=this.cleanup)||o.call(this),this.$emit("onOpenChange",{open:t})}openOnHoverChanged(e,t){var o,r;t?null==(o=this._trigger)||o.addEventListener("mouseover",this.openMenu):null==(r=this._trigger)||r.removeEventListener("mouseover",this.openMenu)}persistOnItemClickChanged(e,t){var o,r;t?null==(r=this._menuList)||r.removeEventListener("click",this.closeMenu):null==(o=this._menuList)||o.addEventListener("click",this.closeMenu)}openOnContextChanged(e,t){var o,r;t?null==(o=this._trigger)||o.addEventListener("contextmenu",this.openMenu):null==(r=this._trigger)||r.removeEventListener("contextmenu",this.openMenu)}closeOnScrollChanged(e,t){t?document.addEventListener("scroll",this.closeMenu):document.removeEventListener("scroll",this.closeMenu)}setPositioning(){this.$fastController.isConnected&&this._menuList&&this.open&&this._trigger&&(this.cleanup=_u(this,this.positioningContainer,async()=>{var e,t;const{middlewareData:o,x:r,y:i}=await ju(this._trigger,this.positioningContainer,{placement:"bottom",strategy:"fixed",middleware:[iu(),cu({apply:({availableHeight:e,rects:t})=>{var o;(null==(o=this.positioningContainer)?void 0:o.style)&&Object.assign(this.positioningContainer.style,{maxHeight:e+"px",width:t.reference.width+"px"})}}),su()]});(null==(e=o.hide)?void 0:e.referenceHidden)?this.open=!1:(null==(t=this.positioningContainer)?void 0:t.style)&&Object.assign(this.positioningContainer.style,{position:"fixed",top:"0",left:"0",transform:`translate(${r}px, ${i}px)`})}))}addListeners(){var e,t,o,r,i;document.addEventListener("click",this.handleDocumentClick),null==(e=this._trigger)||e.addEventListener("keydown",this.handleTriggerKeydown),this.persistOnItemClick||null==(t=this._menuList)||t.addEventListener("click",this.closeMenu),this.openOnHover?null==(o=this._trigger)||o.addEventListener("mouseover",this.openMenu):this.openOnContext?null==(r=this._trigger)||r.addEventListener("contextmenu",this.openMenu):null==(i=this._trigger)||i.addEventListener("click",this.toggleMenu)}removeListeners(){var e,t,o,r,i;document.removeEventListener("click",this.handleDocumentClick),null==(e=this._trigger)||e.removeEventListener("keydown",this.handleTriggerKeydown),this.persistOnItemClick||null==(t=this._menuList)||t.removeEventListener("click",this.closeMenu),this.openOnHover&&(null==(o=this._trigger)||o.removeEventListener("mouseover",this.openMenu)),this.openOnContext?null==(r=this._trigger)||r.removeEventListener("contextmenu",this.openMenu):null==(i=this._trigger)||i.removeEventListener("click",this.toggleMenu)}handleMenuKeydown(e){if(e.defaultPrevented)return;switch(e.key){case"Escape":e.preventDefault(),this.open&&(this.closeMenu(),this.focusTrigger());break;case"Tab":this.open&&this.closeMenu(),e.shiftKey&&this.focusTrigger();default:return!0}}}Xu([C,Ee({attribute:"open-on-hover",mode:"boolean"})],Wu.prototype,"openOnHover",2),Xu([C,Ee({attribute:"open-on-context",mode:"boolean"})],Wu.prototype,"openOnContext",2),Xu([C,Ee({attribute:"close-on-scroll",mode:"boolean"})],Wu.prototype,"closeOnScroll",2),Xu([C,Ee({attribute:"persist-on-item-click",mode:"boolean"})],Wu.prototype,"persistOnItemClick",2),Xu([C,Ee({mode:"boolean"})],Wu.prototype,"open",2),Xu([C],Wu.prototype,"slottedMenuList",2),Xu([C],Wu.prototype,"slottedTriggers",2);const Uu=xe`<template ?open-on-hover="${e=>e.openOnHover}" ?open-on-context="${e=>e.openOnContext}" ?close-on-scroll="${e=>e.closeOnScroll}" ?persist-on-item-click="${e=>e.persistOnItemClick}" @keydown="${(e,t)=>e.handleMenuKeydown(t.event)}"><slot name="trigger" ${Fe({property:"slottedTriggers",filter:Te()})}></slot><span ${we("positioningContainer")} part="positioning-container" class="positioning-container" ?hidden="${e=>!e.open}"><slot ${Fe({property:"slottedMenuList",filter:Te()})}></slot></span></template>`,Yu=j`
|
|
287
|
-
|
|
288
|
-
${
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
${
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
${
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
${
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
${
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
${
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
${
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
${
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
${
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
${
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
:host([aria-pressed='true']) .control,:host([aria-pressed='true'][appearance='primary']) .control,:host([aria-pressed='true'][appearance='subtle']) .control,:host([aria-pressed='true'][appearance='outline']) .control,:host([aria-pressed='true'][appearance='transparent']) .control,:host([aria-pressed='true'][appearance='transparent']) .control{background:SelectedItem;color:SelectedItemText}`)),$b=fb.compose({name:Tt.prefix+"-toggle-button",template:kb,styles:xb,shadowOptions:{delegatesFocus:!0}}),wb=Object.keys(cc),Bb=e=>{for(const t of wb)cc[t].withDefault(e[t])},Cb=(e,t)=>{for(const o of wb)cc[o].setValueFor(e,t[o])};export{kt as Accordion,Lt as AccordionItem,Ot as AccordionItemExpandIconPosition,Nt as AccordionItemSize,vc as AnchorButton,$c as AnchorButtonAppearance,Tc as AnchorButtonDefinition,wc as AnchorButtonShape,Bc as AnchorButtonSize,Cc as AnchorButtonTemplate,qc as Avatar,Oc as AvatarActive,Ec as AvatarAppearance,Rc as AvatarColor,Jc as AvatarDefinition,Mc as AvatarNamedColor,Dc as AvatarShape,Hc as AvatarSize,Zc as AvatarStyles,Uc as AvatarTemplate,ld as Badge,td as BadgeAppearance,od as BadgeColor,yd as BadgeDefinition,rd as BadgeShape,id as BadgeSize,vd as BadgeStyles,dd as BadgeTemplate,Nd as Button,yc as ButtonAppearance,Dd as ButtonDefinition,kc as ButtonShape,xc as ButtonSize,Sc as ButtonStyles,Od as ButtonTemplate,jd as Checkbox,Yd as CheckboxDefinition,Xd as CheckboxLabelPosition,Gd as CheckboxShape,qd as CheckboxSize,Ud as CheckboxStyles,Wd as CheckboxTemplate,Kd as CompoundButton,Qd as CompoundButtonAppearance,oh as CompoundButtonDefinition,Zd as CompoundButtonShape,Jd as CompoundButtonSize,th as CompoundButtonStyles,eh as CompoundButtonTemplate,nh as CounterBadge,sh as CounterBadgeAppearance,lh as CounterBadgeColor,ph as CounterBadgeDefinition,ch as CounterBadgeShape,dh as CounterBadgeSize,uh as CounterBadgeStyles,hh as CounterBadgeTemplate,kh as Divider,xh as DividerAlignContent,$h as DividerAppearance,Ch as DividerDefinition,bh as DividerOrientation,gh as DividerRole,Bh as DividerStyles,wh as DividerTemplate,Tt as FluentDesignSystem,Ih as Image,Nh as ImageDefinition,Ah as ImageFit,Fh as ImageShape,Lh as ImageStyles,zh as ImageTemplate,Mh as Label,Vh as LabelDefinition,Rh as LabelStyles,Hh as LabelTemplate,Wu as Menu,Qu as MenuButton,Zu as MenuButtonAppearance,op as MenuButtonDefinition,Ju as MenuButtonShape,ep as MenuButtonSize,Sc as MenuButtonStyles,tp as MenuButtonTemplate,Ku as MenuDefinition,ap as MenuItem,cp as MenuItemDefinition,rp as MenuItemRole,lp as MenuItemStyles,sp as MenuItemTemplate,hp as MenuList,gp as MenuListDefinition,pp as MenuListStyles,up as MenuListTemplate,Yu as MenuStyles,Uu as MenuTemplate,kp as ProgressBar,Sp as ProgressBarDefinition,$p as ProgressBarShape,Bp as ProgressBarStyles,Cp as ProgressBarTemplate,xp as ProgressBarThickness,wp as ProgressBarValidationState,Ap as Radio,Lp as RadioDefinition,Mp as RadioGroup,Vp as RadioGroupDefinition,Np as RadioGroupOrientation,Rp as RadioGroupStyles,Hp as RadioGroupTemplate,Fp as RadioStyles,zp as RadioTemplate,Kp as Slider,eg as SliderDefinition,qp as SliderOrientation,Qp as SliderSize,Zp as SliderStyles,Jp as SliderTemplate,ag as Spinner,ng as SpinnerAppearance,dg as SpinnerDefinition,sg as SpinnerSize,cg as SpinnerStyles,lg as SpinnerTemplate,fg as Switch,kg as SwitchDefinition,mg as SwitchLabelPosition,yg as SwitchStyles,vg as SwitchTemplate,Lg as Tab,Dg as TabDefinition,Mg as TabPanel,Vg as TabPanelDefinition,Hg as TabPanelStyles,Rg as TabPanelTemplate,Og as TabStyles,Ng as TabTemplate,Tg as Tabs,wg as TabsAppearance,Fg as TabsDefinition,xg as TabsOrientation,Bg as TabsSize,Ag as TabsStyles,Ig as TabsTemplate,qg as Text,Yg as TextAlign,Zg as TextDefinition,Wg as TextFont,sb as TextInput,cb as TextInputAppearance,lb as TextInputControlSize,ub as TextInputDefinition,hb as TextInputStyles,db as TextInputTemplate,tb as TextInputType,Xg as TextSize,Qg as TextStyles,Kg as TextTemplate,Ug as TextWeight,fb as ToggleButton,mb as ToggleButtonAppearance,$b as ToggleButtonDefinition,vb as ToggleButtonShape,yb as ToggleButtonSize,xb as ToggleButtonStyles,kb as ToggleButtonTemplate,It as accordionDefinition,uc as accordionItemDefinition,dc as accordionItemStyles,hc as accordionItemTemplate,Pt as accordionStyles,xt as accordionTemplate,no as borderRadiusCircular,io as borderRadiusLarge,ro as borderRadiusMedium,to as borderRadiusNone,oo as borderRadiusSmall,ao as borderRadiusXLarge,ua as colorBackgroundOverlay,ga as colorBrandBackground,$a as colorBrandBackground2,ba as colorBrandBackgroundHover,wa as colorBrandBackgroundInverted,Ba as colorBrandBackgroundInvertedHover,Ca as colorBrandBackgroundInvertedPressed,Sa as colorBrandBackgroundInvertedSelected,fa as colorBrandBackgroundPressed,ma as colorBrandBackgroundSelected,xa as colorBrandBackgroundStatic,ti as colorBrandForeground1,oi as colorBrandForeground2,bi as colorBrandForegroundInverted,fi as colorBrandForegroundInvertedHover,mi as colorBrandForegroundInvertedPressed,Gr as colorBrandForegroundLink,qr as colorBrandForegroundLinkHover,Xr as colorBrandForegroundLinkPressed,Wr as colorBrandForegroundLinkSelected,vi as colorBrandForegroundOnLight,yi as colorBrandForegroundOnLightHover,ki as colorBrandForegroundOnLightPressed,xi as colorBrandForegroundOnLightSelected,sn as colorBrandShadowAmbient,ln as colorBrandShadowKey,_a as colorBrandStroke1,ja as colorBrandStroke2,va as colorCompoundBrandBackground,ya as colorCompoundBrandBackgroundHover,ka as colorCompoundBrandBackgroundPressed,Zr as colorCompoundBrandForeground1,Jr as colorCompoundBrandForeground1Hover,ei as colorCompoundBrandForeground1Pressed,Ga as colorCompoundBrandStroke,qa as colorCompoundBrandStrokeHover,Xa as colorCompoundBrandStrokePressed,$i as colorNeutralBackground1,wi as colorNeutralBackground1Hover,Bi as colorNeutralBackground1Pressed,Ci as colorNeutralBackground1Selected,Si as colorNeutralBackground2,Pi as colorNeutralBackground2Hover,Ti as colorNeutralBackground2Pressed,Ii as colorNeutralBackground2Selected,Ai as colorNeutralBackground3,Fi as colorNeutralBackground3Hover,zi as colorNeutralBackground3Pressed,Li as colorNeutralBackground3Selected,Ni as colorNeutralBackground4,Oi as colorNeutralBackground4Hover,Di as colorNeutralBackground4Pressed,Ei as colorNeutralBackground4Selected,Mi as colorNeutralBackground5,Ri as colorNeutralBackground5Hover,Hi as colorNeutralBackground5Pressed,Vi as colorNeutralBackground5Selected,_i as colorNeutralBackground6,na as colorNeutralBackgroundDisabled,ji as colorNeutralBackgroundInverted,sa as colorNeutralBackgroundInvertedDisabled,Gi as colorNeutralBackgroundStatic,wr as colorNeutralForeground1,Br as colorNeutralForeground1Hover,Cr as colorNeutralForeground1Pressed,Sr as colorNeutralForeground1Selected,ri as colorNeutralForeground1Static,Pr as colorNeutralForeground2,Fr as colorNeutralForeground2BrandHover,zr as colorNeutralForeground2BrandPressed,Lr as colorNeutralForeground2BrandSelected,Tr as colorNeutralForeground2Hover,Ur as colorNeutralForeground2Link,Yr as colorNeutralForeground2LinkHover,Kr as colorNeutralForeground2LinkPressed,Qr as colorNeutralForeground2LinkSelected,Ir as colorNeutralForeground2Pressed,Ar as colorNeutralForeground2Selected,Nr as colorNeutralForeground3,Mr as colorNeutralForeground3BrandHover,Rr as colorNeutralForeground3BrandPressed,Hr as colorNeutralForeground3BrandSelected,Or as colorNeutralForeground3Hover,Dr as colorNeutralForeground3Pressed,Er as colorNeutralForeground3Selected,Vr as colorNeutralForeground4,_r as colorNeutralForegroundDisabled,ai as colorNeutralForegroundInverted,ci as colorNeutralForegroundInverted2,jr as colorNeutralForegroundInvertedDisabled,ni as colorNeutralForegroundInvertedHover,hi as colorNeutralForegroundInvertedLink,ui as colorNeutralForegroundInvertedLinkHover,pi as colorNeutralForegroundInvertedLinkPressed,gi as colorNeutralForegroundInvertedLinkSelected,si as colorNeutralForegroundInvertedPressed,li as colorNeutralForegroundInvertedSelected,di as colorNeutralForegroundOnBrand,ii as colorNeutralForegroundStaticInverted,en as colorNeutralShadowAmbient,an as colorNeutralShadowAmbientDarker,on as colorNeutralShadowAmbientLighter,tn as colorNeutralShadowKey,nn as colorNeutralShadowKeyDarker,rn as colorNeutralShadowKeyLighter,la as colorNeutralStencil1,da as colorNeutralStencil1Alpha,ca as colorNeutralStencil2,ha as colorNeutralStencil2Alpha,Fa as colorNeutralStroke1,za as colorNeutralStroke1Hover,La as colorNeutralStroke1Pressed,Na as colorNeutralStroke1Selected,Oa as colorNeutralStroke2,Da as colorNeutralStroke3,Pa as colorNeutralStrokeAccessible,Ta as colorNeutralStrokeAccessibleHover,Ia as colorNeutralStrokeAccessiblePressed,Aa as colorNeutralStrokeAccessibleSelected,Wa as colorNeutralStrokeDisabled,Ua as colorNeutralStrokeInvertedDisabled,Ea as colorNeutralStrokeOnBrand,Ma as colorNeutralStrokeOnBrand2,Ra as colorNeutralStrokeOnBrand2Hover,Ha as colorNeutralStrokeOnBrand2Pressed,Va as colorNeutralStrokeOnBrand2Selected,ql as colorPaletteAnchorBackground2,Wl as colorPaletteAnchorBorderActive,Xl as colorPaletteAnchorForeground2,Dl as colorPaletteBeigeBackground2,Ml as colorPaletteBeigeBorderActive,El as colorPaletteBeigeForeground2,qn as colorPaletteBerryBackground1,Xn as colorPaletteBerryBackground2,Wn as colorPaletteBerryBackground3,Zn as colorPaletteBerryBorder1,Jn as colorPaletteBerryBorder2,Qn as colorPaletteBerryBorderActive,Un as colorPaletteBerryForeground1,Yn as colorPaletteBerryForeground2,Kn as colorPaletteBerryForeground3,rl as colorPaletteBlueBackground2,al as colorPaletteBlueBorderActive,il as colorPaletteBlueForeground2,Ls as colorPaletteBrassBackground2,Os as colorPaletteBrassBorderActive,Ns as colorPaletteBrassForeground2,Ds as colorPaletteBrownBackground2,Ms as colorPaletteBrownBorderActive,Es as colorPaletteBrownForeground2,cl as colorPaletteCornflowerBackground2,hl as colorPaletteCornflowerBorderActive,dl as colorPaletteCornflowerForeground2,xs as colorPaletteCranberryBackground2,ws as colorPaletteCranberryBorderActive,$s as colorPaletteCranberryForeground2,qs as colorPaletteDarkGreenBackground2,Ws as colorPaletteDarkGreenBorderActive,Xs as colorPaletteDarkGreenForeground2,Pn as colorPaletteDarkOrangeBackground1,Tn as colorPaletteDarkOrangeBackground2,In as colorPaletteDarkOrangeBackground3,Nn as colorPaletteDarkOrangeBorder1,On as colorPaletteDarkOrangeBorder2,Ln as colorPaletteDarkOrangeBorderActive,An as colorPaletteDarkOrangeForeground1,Fn as colorPaletteDarkOrangeForeground2,zn as colorPaletteDarkOrangeForeground3,vs as colorPaletteDarkRedBackground2,ks as colorPaletteDarkRedBorderActive,ys as colorPaletteDarkRedForeground2,Rs as colorPaletteForestBackground2,Vs as colorPaletteForestBorderActive,Hs as colorPaletteForestForeground2,As as colorPaletteGoldBackground2,zs as colorPaletteGoldBorderActive,Fs as colorPaletteGoldForeground2,xl as colorPaletteGrapeBackground2,wl as colorPaletteGrapeBorderActive,$l as colorPaletteGrapeForeground2,vn as colorPaletteGreenBackground1,yn as colorPaletteGreenBackground2,kn as colorPaletteGreenBackground3,Cn as colorPaletteGreenBorder1,Sn as colorPaletteGreenBorder2,Bn as colorPaletteGreenBorderActive,xn as colorPaletteGreenForeground1,$n as colorPaletteGreenForeground2,wn as colorPaletteGreenForeground3,Yl as colorPaletteGreenForegroundInverted,bl as colorPaletteLavenderBackground2,ml as colorPaletteLavenderBorderActive,fl as colorPaletteLavenderForeground2,es as colorPaletteLightGreenBackground1,ts as colorPaletteLightGreenBackground2,os as colorPaletteLightGreenBackground3,ss as colorPaletteLightGreenBorder1,ls as colorPaletteLightGreenBorder2,ns as colorPaletteLightGreenBorderActive,rs as colorPaletteLightGreenForeground1,is as colorPaletteLightGreenForeground2,as as colorPaletteLightGreenForeground3,Us as colorPaletteLightTealBackground2,Ks as colorPaletteLightTealBorderActive,Ys as colorPaletteLightTealForeground2,Bl as colorPaletteLilacBackground2,Sl as colorPaletteLilacBorderActive,Cl as colorPaletteLilacForeground2,Al as colorPaletteMagentaBackground2,zl as colorPaletteMagentaBorderActive,Fl as colorPaletteMagentaForeground2,cs as colorPaletteMarigoldBackground1,ds as colorPaletteMarigoldBackground2,hs as colorPaletteMarigoldBackground3,fs as colorPaletteMarigoldBorder1,ms as colorPaletteMarigoldBorder2,bs as colorPaletteMarigoldBorderActive,us as colorPaletteMarigoldForeground1,ps as colorPaletteMarigoldForeground2,gs as colorPaletteMarigoldForeground3,Rl as colorPaletteMinkBackground2,Vl as colorPaletteMinkBorderActive,Hl as colorPaletteMinkForeground2,ul as colorPaletteNavyBackground2,gl as colorPaletteNavyBorderActive,pl as colorPaletteNavyForeground2,Ps as colorPalettePeachBackground2,Is as colorPalettePeachBorderActive,Ts as colorPalettePeachForeground2,Pl as colorPalettePinkBackground2,Il as colorPalettePinkBorderActive,Tl as colorPalettePinkForeground2,_l as colorPalettePlatinumBackground2,Gl as colorPalettePlatinumBorderActive,jl as colorPalettePlatinumForeground2,Ll as colorPalettePlumBackground2,Ol as colorPalettePlumBorderActive,Nl as colorPalettePlumForeground2,Bs as colorPalettePumpkinBackground2,Ss as colorPalettePumpkinBorderActive,Cs as colorPalettePumpkinForeground2,vl as colorPalettePurpleBackground2,kl as colorPalettePurpleBorderActive,yl as colorPalettePurpleForeground2,cn as colorPaletteRedBackground1,dn as colorPaletteRedBackground2,hn as colorPaletteRedBackground3,fn as colorPaletteRedBorder1,mn as colorPaletteRedBorder2,bn as colorPaletteRedBorderActive,un as colorPaletteRedForeground1,pn as colorPaletteRedForeground2,gn as colorPaletteRedForeground3,Ul as colorPaletteRedForegroundInverted,nl as colorPaletteRoyalBlueBackground2,ll as colorPaletteRoyalBlueBorderActive,sl as colorPaletteRoyalBlueForeground2,_s as colorPaletteSeafoamBackground2,Gs as colorPaletteSeafoamBorderActive,js as colorPaletteSeafoamForeground2,el as colorPaletteSteelBackground2,ol as colorPaletteSteelBorderActive,tl as colorPaletteSteelForeground2,Qs as colorPaletteTealBackground2,Js as colorPaletteTealBorderActive,Zs as colorPaletteTealForeground2,Dn as colorPaletteYellowBackground1,En as colorPaletteYellowBackground2,Mn as colorPaletteYellowBackground3,jn as colorPaletteYellowBorder1,Gn as colorPaletteYellowBorder2,_n as colorPaletteYellowBorderActive,Rn as colorPaletteYellowForeground1,Hn as colorPaletteYellowForeground2,Vn as colorPaletteYellowForeground3,Kl as colorPaletteYellowForegroundInverted,pa as colorScrollbarOverlay,Za as colorStrokeFocus1,Ja as colorStrokeFocus2,qi as colorSubtleBackground,Xi as colorSubtleBackgroundHover,Zi as colorSubtleBackgroundInverted,Ji as colorSubtleBackgroundInvertedHover,ea as colorSubtleBackgroundInvertedPressed,ta as colorSubtleBackgroundInvertedSelected,Yi as colorSubtleBackgroundLightAlphaHover,Ki as colorSubtleBackgroundLightAlphaPressed,Qi as colorSubtleBackgroundLightAlphaSelected,Wi as colorSubtleBackgroundPressed,Ui as colorSubtleBackgroundSelected,oa as colorTransparentBackground,ra as colorTransparentBackgroundHover,ia as colorTransparentBackgroundPressed,aa as colorTransparentBackgroundSelected,Ya as colorTransparentStroke,Qa as colorTransparentStrokeDisabled,Ka as colorTransparentStrokeInteractive,gr as curveAccelerateMax,br as curveAccelerateMid,fr as curveAccelerateMin,mr as curveDecelerateMax,vr as curveDecelerateMid,yr as curveDecelerateMin,xr as curveEasyEase,kr as curveEasyEaseMax,$r as curveLinear,cr as durationFast,lr as durationFaster,dr as durationNormal,hr as durationSlow,ur as durationSlower,sr as durationUltraFast,pr as durationUltraSlow,To as fontFamilyBase,Io as fontFamilyMonospace,Ao as fontFamilyNumeric,so as fontSizeBase100,lo as fontSizeBase200,co as fontSizeBase300,ho as fontSizeBase400,uo as fontSizeBase500,po as fontSizeBase600,mo as fontSizeHero1000,go as fontSizeHero700,bo as fontSizeHero800,fo as fontSizeHero900,No as fontWeightBold,zo as fontWeightMedium,Fo as fontWeightRegular,Lo as fontWeightSemibold,vo as lineHeightBase100,yo as lineHeightBase200,ko as lineHeightBase300,xo as lineHeightBase400,$o as lineHeightBase500,wo as lineHeightBase600,Po as lineHeightHero1000,Bo as lineHeightHero700,Co as lineHeightHero800,So as lineHeightHero900,Bb as setTheme,Cb as setThemeFor,ec as shadow16,nc as shadow16Brand,Ql as shadow2,tc as shadow28,sc as shadow28Brand,rc as shadow2Brand,Zl as shadow4,ic as shadow4Brand,oc as shadow64,lc as shadow64Brand,Jl as shadow8,ac as shadow8Brand,Xo as spacingHorizontalL,qo as spacingHorizontalM,Go as spacingHorizontalMNudge,Ro as spacingHorizontalNone,jo as spacingHorizontalS,_o as spacingHorizontalSNudge,Wo as spacingHorizontalXL,Vo as spacingHorizontalXS,Uo as spacingHorizontalXXL,Ho as spacingHorizontalXXS,Yo as spacingHorizontalXXXL,rr as spacingVerticalL,or as spacingVerticalM,tr as spacingVerticalMNudge,Ko as spacingVerticalNone,er as spacingVerticalS,Jo as spacingVerticalSNudge,ir as spacingVerticalXL,Zo as spacingVerticalXS,ar as spacingVerticalXXL,Qo as spacingVerticalXXS,nr as spacingVerticalXXXL,Do as strokeWidthThick,Eo as strokeWidthThicker,Mo as strokeWidthThickest,Oo as strokeWidthThin};
|
|
277
|
+
background-color: ${gl};
|
|
278
|
+
color: ${ji};
|
|
279
|
+
border-color: ${ml};
|
|
280
|
+
}
|
|
281
|
+
`;p.partial`
|
|
282
|
+
font-family: ${y};
|
|
283
|
+
font-size: ${O};
|
|
284
|
+
line-height: ${R};
|
|
285
|
+
font-weight: ${A};
|
|
286
|
+
`,p.partial`
|
|
287
|
+
font-family: ${y};
|
|
288
|
+
font-size: ${O};
|
|
289
|
+
line-height: ${R};
|
|
290
|
+
font-weight: ${N};
|
|
291
|
+
`,p.partial`
|
|
292
|
+
font-family: ${y};
|
|
293
|
+
font-size: ${O};
|
|
294
|
+
line-height: ${R};
|
|
295
|
+
font-weight: ${Wo};
|
|
296
|
+
`,p.partial`
|
|
297
|
+
font-family: ${y};
|
|
298
|
+
font-size: ${dt};
|
|
299
|
+
line-height: ${kt};
|
|
300
|
+
font-weight: ${A};
|
|
301
|
+
`,p.partial`
|
|
302
|
+
font-family: ${y};
|
|
303
|
+
font-size: ${G};
|
|
304
|
+
line-height: ${ht};
|
|
305
|
+
font-weight: ${A};
|
|
306
|
+
`,p.partial`
|
|
307
|
+
font-family: ${y};
|
|
308
|
+
font-size: ${G};
|
|
309
|
+
line-height: ${ht};
|
|
310
|
+
font-weight: ${N};
|
|
311
|
+
`,p.partial`
|
|
312
|
+
font-family: ${y};
|
|
313
|
+
font-size: ${G};
|
|
314
|
+
line-height: ${ht};
|
|
315
|
+
font-weight: ${Wo};
|
|
316
|
+
`,p.partial`
|
|
317
|
+
font-family: ${y};
|
|
318
|
+
font-size: ${ro};
|
|
319
|
+
line-height: ${Go};
|
|
320
|
+
font-weight: ${A};
|
|
321
|
+
`,p.partial`
|
|
322
|
+
font-family: ${y};
|
|
323
|
+
font-size: ${ro};
|
|
324
|
+
line-height: ${Go};
|
|
325
|
+
font-weight: ${N};
|
|
326
|
+
`,p.partial`
|
|
327
|
+
font-family: ${y};
|
|
328
|
+
font-size: ${ke};
|
|
329
|
+
line-height: ${Uo};
|
|
330
|
+
font-weight: ${N};
|
|
331
|
+
`,p.partial`
|
|
332
|
+
font-family: ${y};
|
|
333
|
+
font-size: ${dt};
|
|
334
|
+
line-height: ${kt};
|
|
335
|
+
font-weight: ${N};
|
|
336
|
+
`,p.partial`
|
|
337
|
+
font-family: ${y};
|
|
338
|
+
font-size: ${dt};
|
|
339
|
+
line-height: ${kt};
|
|
340
|
+
font-weight: ${Wo};
|
|
341
|
+
`,p.partial`
|
|
342
|
+
font-family: ${y};
|
|
343
|
+
font-size: ${Ar};
|
|
344
|
+
line-height: ${Rr};
|
|
345
|
+
font-weight: ${N};
|
|
346
|
+
`,p.partial`
|
|
347
|
+
font-family: ${y};
|
|
348
|
+
font-size: ${Or};
|
|
349
|
+
line-height: ${_r};
|
|
350
|
+
font-weight: ${N};
|
|
351
|
+
`,p.partial`
|
|
352
|
+
font-family: ${y};
|
|
353
|
+
font-size: ${qo};
|
|
354
|
+
line-height: ${Mr};
|
|
355
|
+
font-weight: ${N};
|
|
356
|
+
`,p.partial`
|
|
357
|
+
font-family: ${y};
|
|
358
|
+
font-size: ${Er};
|
|
359
|
+
line-height: ${Dr};
|
|
360
|
+
font-weight: ${N};
|
|
361
|
+
`,p.partial`
|
|
362
|
+
font-family: ${y};
|
|
363
|
+
font-size: ${Lr};
|
|
364
|
+
line-height: ${Hr};
|
|
365
|
+
font-weight: ${N};
|
|
366
|
+
`;const Pd=p`
|
|
367
|
+
:host([shape='square']){border-radius:${qi}}:host([shape='rounded']){border-radius:${L}}:host([shape='rounded'][size='tiny']),:host([shape='rounded'][size='extra-small']),:host([shape='rounded'][size='small']){border-radius:${xt}}${en}
|
|
368
|
+
${on}
|
|
369
|
+
${sn}
|
|
370
|
+
${Sd}
|
|
371
|
+
${Id}
|
|
372
|
+
${tn}
|
|
373
|
+
`.withBehaviors(lt(p`
|
|
374
|
+
:host,:host([appearance='outline']),:host([appearance='tint']){border-color:CanvasText}`));function rn(o={}){return v` ${Ut(o)}<slot>${at(o.defaultContent)}</slot>${Gt(o)} `}const Bd=rn(),zd=qe.compose({name:`${b.prefix}-badge`,template:Bd,styles:Pd});zd.define(b.registry);var Td=Object.defineProperty,Fd=Object.getOwnPropertyDescriptor,j=(o,t,e,i)=>{for(var s=i>1?void 0:i?Fd(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(s=(i?n(t,e,s):n(s))||s);return i&&s&&Td(t,e,s),s};class F extends S{constructor(){super(),this.disabledFocusable=!1,this.elementInternals=this.attachInternals(),this.iconOnly=!1,this.elementInternals.role="button"}disabledFocusableChanged(t,e){this.$fastController.isConnected&&(this.elementInternals.ariaDisabled=`${!!e}`)}get form(){return this.elementInternals.form}get labels(){return Object.freeze(Array.from(this.elementInternals.labels))}typeChanged(t,e){e!==Qo.submit&&(this.formSubmissionFallbackControl?.remove(),this.shadowRoot?.querySelector('slot[name="internal"]')?.remove())}clickHandler(t){if(t&&this.disabledFocusable){t.stopImmediatePropagation();return}return this.press(),!0}connectedCallback(){super.connectedCallback(),this.elementInternals.ariaDisabled=`${!!this.disabledFocusable}`}createAndInsertFormSubmissionFallbackControl(){const t=this.formSubmissionFallbackControlSlot??document.createElement("slot");t.setAttribute("name","internal"),this.shadowRoot?.appendChild(t),this.formSubmissionFallbackControlSlot=t;const e=this.formSubmissionFallbackControl??document.createElement("button");e.style.display="none",e.setAttribute("type","submit"),e.setAttribute("slot","internal"),this.formNoValidate&&e.toggleAttribute("formnovalidate",!0),this.elementInternals.form?.id&&e.setAttribute("form",this.elementInternals.form.id),this.name&&e.setAttribute("name",this.name),this.value&&e.setAttribute("value",this.value),this.formAction&&e.setAttribute("formaction",this.formAction??""),this.formEnctype&&e.setAttribute("formenctype",this.formEnctype??""),this.formMethod&&e.setAttribute("formmethod",this.formMethod??""),this.formTarget&&e.setAttribute("formtarget",this.formTarget??""),this.append(e),this.formSubmissionFallbackControl=e}formDisabledCallback(t){this.disabled=t}keypressHandler(t){if(t&&this.disabledFocusable){t.stopImmediatePropagation();return}if(t.key===Ve||t.key===Eo){this.click();return}return!0}press(){switch(this.type){case Qo.reset:{this.resetForm();break}case Qo.submit:{this.submitForm();break}}}resetForm(){this.elementInternals.form?.reset()}submitForm(){if(!(!this.elementInternals.form||this.disabled||this.type!==Qo.submit)){if(!this.name&&!this.formAction&&!this.formEnctype&&!this.form&&!this.formMethod&&!this.formNoValidate&&!this.formTarget){this.elementInternals.form.requestSubmit();return}try{this.elementInternals.setFormValue(this.value??""),this.elementInternals.form.requestSubmit(this)}catch{this.createAndInsertFormSubmissionFallbackControl(),this.elementInternals.setFormValue(null),this.elementInternals.form.requestSubmit(this.formSubmissionFallbackControl)}}}}F.formAssociated=!0,j([a],F.prototype,"appearance",2),j([a({mode:"boolean"})],F.prototype,"autofocus",2),j([$],F.prototype,"defaultSlottedContent",2),j([a({mode:"boolean"})],F.prototype,"disabled",2),j([a({attribute:"disabled-focusable",mode:"boolean"})],F.prototype,"disabledFocusable",2),j([a({attribute:"formaction"})],F.prototype,"formAction",2),j([a({attribute:"form"})],F.prototype,"formAttribute",2),j([a({attribute:"formenctype"})],F.prototype,"formEnctype",2),j([a({attribute:"formmethod"})],F.prototype,"formMethod",2),j([a({attribute:"formnovalidate",mode:"boolean"})],F.prototype,"formNoValidate",2),j([a({attribute:"formtarget"})],F.prototype,"formTarget",2),j([a({attribute:"icon-only",mode:"boolean"})],F.prototype,"iconOnly",2),j([a],F.prototype,"name",2),j([a],F.prototype,"shape",2),j([a],F.prototype,"size",2),j([a],F.prototype,"type",2),j([a],F.prototype,"value",2),Xt(F,Wt);function Qi(o={}){return v`<template tabindex="${t=>t.disabled?-1:0}" @click="${(t,e)=>t.clickHandler(e.event)}" @keypress="${(t,e)=>t.keypressHandler(e.event)}">${Ut(o)}<span class="content" part="content"><slot ${rt("defaultSlottedContent")}></slot></span>${Gt(o)}</template>`}const Od=Qi(),Ad=F.compose({name:`${b.prefix}-button`,template:Od,styles:Zo});Ad.define(b.registry);var Ed=Object.defineProperty,Ld=Object.getOwnPropertyDescriptor,_t=(o,t,e,i)=>{for(var s=i>1?void 0:i?Ld(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(s=(i?n(t,e,s):n(s))||s);return i&&s&&Ed(t,e,s),s};class wt extends S{constructor(){super(),this.disabled=!1,this.initialValue="on",this._checked=this.initialChecked??!1,this.dirtyChecked=!1,this.elementInternals=this.attachInternals(),this._validationFallbackMessage="",this._value=this.initialValue,this.elementInternals.role="checkbox"}get checked(){return k.track(this,"checked"),this._checked}set checked(t){this._checked=t,this.setFormValue(t?this.value:null),this.setValidity(),this.setAriaChecked(),Lt(this.elementInternals,"checked",t),k.notify(this,"checked")}indeterminateChanged(t,e){this.setAriaChecked(),Lt(this.elementInternals,"indeterminate",e)}initialCheckedChanged(t,e){this.dirtyChecked||(this.checked=e)}initialValueChanged(t,e){this._value=e}requiredChanged(t,e){this.$fastController.isConnected&&(this.setValidity(),this.elementInternals.ariaRequired=`${!!e}`)}get form(){return this.elementInternals.form}get labels(){return Object.freeze(Array.from(this.elementInternals.labels))}get validationMessage(){if(this.elementInternals.validationMessage)return this.elementInternals.validationMessage;if(!this._validationFallbackMessage){const t=document.createElement("input");t.type="checkbox",t.required=!0,t.checked=!1,this._validationFallbackMessage=t.validationMessage}return this._validationFallbackMessage}get validity(){return this.elementInternals.validity}get value(){return k.track(this,"value"),this._value}set value(t){this._value=t,this.$fastController.isConnected&&(this.setFormValue(t),this.setValidity(),k.notify(this,"value"))}get willValidate(){return this.elementInternals.willValidate}setAriaChecked(){this.elementInternals.ariaChecked=this.indeterminate?"mixed":`${this.checked}`}checkValidity(){return this.elementInternals.checkValidity()}clickHandler(t){if(!this.disabled)return this.dirtyChecked=!0,this.toggleChecked(),this.$emit("change"),this.$emit("input"),!0}connectedCallback(){super.connectedCallback(),this.setFormValue(this.checked?this.value:null),this.setAriaChecked(),this.setValidity()}inputHandler(t){return this.elementInternals.setFormValue(this.value),this.setValidity(),!0}keydownHandler(t){if(t.key!==" ")return!0}keyupHandler(t){if(t.key!==" ")return!0;this.click()}formResetCallback(){this.checked=this.initialChecked??!1,this.dirtyChecked=!1,this.indeterminate=!1,this.setValidity()}reportValidity(){return this.elementInternals.reportValidity()}setFormValue(t,e){this.elementInternals.setFormValue(t,t??e)}setCustomValidity(t){this.elementInternals.setValidity({customError:!0},t),this.setValidity()}setValidity(t={valueMissing:!!this.required&&!this.checked},e=this.validationMessage,i){if(this.$fastController.isConnected){if(this.disabled){this.elementInternals.setValidity({});return}this.elementInternals.setValidity(t,e,i)}}toggleChecked(t=!this.checked){this.indeterminate=!1,this.checked=t}}wt.formAssociated=!0,_t([a({mode:"boolean"})],wt.prototype,"autofocus",2),_t([a({mode:"boolean"})],wt.prototype,"disabled",2),_t([a({attribute:"form"})],wt.prototype,"formAttribute",2),_t([$],wt.prototype,"indeterminate",2),_t([a({attribute:"checked",mode:"boolean"})],wt.prototype,"initialChecked",2),_t([a({attribute:"value",mode:"fromView"})],wt.prototype,"initialValue",2),_t([a],wt.prototype,"name",2),_t([a({mode:"boolean"})],wt.prototype,"required",2);class Zi extends wt{}_t([a],Zi.prototype,"shape",2),_t([a],Zi.prototype,"size",2);const Ct=p.partial`:is([state--checked], :state(checked))`,Ie=p.partial`:is([state--indeterminate], :state(indeterminate))`,Md=p`
|
|
375
|
+
${z("inline-flex")}
|
|
376
|
+
|
|
377
|
+
:host{--size:16px;background-color:${_};border-radius:${xt};border:${Y} solid ${Yt};box-sizing:border-box;cursor:pointer;position:relative;width:var(--size)}:host,.indeterminate-indicator,.checked-indicator{aspect-ratio:1}:host(:hover){border-color:${oo}}:host(:active){border-color:${io}}:host(${Ct}:hover){background-color:${to};border-color:${Vi}}:host(${Ct}:active){background-color:${eo};border-color:${Ni}}:host(:focus-visible){outline:none}:host(:not([slot='input']))::after{content:'';position:absolute;inset:-8px;box-sizing:border-box;outline:none;border:${we} solid ${Ot};border-radius:${L}}:host(:not([slot='input']):focus-visible)::after{border-color:${Zt}}.indeterminate-indicator,.checked-indicator{color:${Do};inset:0;margin:auto;position:absolute}::slotted([slot='checked-indicator']),.checked-indicator{fill:currentColor;display:inline-flex;flex:1 0 auto;width:12px}:host(:not(${Ct})) *:is(::slotted([slot='checked-indicator']),.checked-indicator){display:none}:host(${Ct}),:host(${Ie}){border-color:${Hi}}:host(${Ct}),:host(${Ie}) .indeterminate-indicator{background-color:${Je}}:host(${Ie}) .indeterminate-indicator{border-radius:${xt};position:absolute;width:calc(var(--size) / 2);inset:0}:host([size='large']){--size:20px}:host([size='large']) ::slotted([slot='checked-indicator']),:host([size='large']) .checked-indicator{width:16px}:host([shape='circular']),:host([shape='circular']) .indeterminate-indicator{border-radius:${ct}}:host([disabled]),:host([disabled]${Ct}){background-color:${Ze};border-color:${Qt}}:host([disabled]){cursor:unset}:host([disabled]${Ie}) .indeterminate-indicator{background-color:${Qt}}:host([disabled]${Ct}) .checked-indicator{color:${Qt}}`.withBehaviors(lt(p`
|
|
378
|
+
:host{border-color:FieldText}:host(:not([slot='input']:focus-visible))::after{border-color:Canvas}:host(:not([disabled]):hover),:host(${Ct}:not([disabled]):hover),:host(:not([slot='input']):focus-visible)::after{border-color:Highlight}.indeterminate-indicator,.checked-indicator{color:HighlightText}:host(${Ct}),:host(${Ie}) .indeterminate-indicator{background-color:FieldText}:host(${Ct}:not([disabled]):hover),:host(${Ie}:not([disabled]):hover) .indeterminate-indicator{background-color:Highlight}:host([disabled]){border-color:GrayText}:host([disabled]${Ie}) .indeterminate-indicator{background-color:GrayText}:host([disabled]),:host([disabled]${Ct}) .checked-indicator{color:GrayText}`)),_d=v.partial(`
|
|
379
|
+
<svg
|
|
380
|
+
fill="currentColor"
|
|
381
|
+
aria-hidden="true"
|
|
382
|
+
class="checked-indicator"
|
|
383
|
+
width="1em"
|
|
384
|
+
height="1em"
|
|
385
|
+
viewBox="0 0 12 12"
|
|
386
|
+
xmlns="http://www.w3.org/2000/svg">
|
|
387
|
+
<path d="M9.76 3.2c.3.29.32.76.04 1.06l-4.25 4.5a.75.75 0 0 1-1.08.02L2.22 6.53a.75.75 0 0 1 1.06-1.06l1.7 1.7L8.7 3.24a.75.75 0 0 1 1.06-.04Z" fill="currentColor"></path>
|
|
388
|
+
</svg>
|
|
389
|
+
`),Rd=v.partial(`
|
|
390
|
+
<span class="indeterminate-indicator"></span>
|
|
391
|
+
`);function Dd(o={}){return v`<template tabindex="${t=>t.disabled?void 0:0}" @click="${(t,e)=>t.clickHandler(e.event)}" @input="${(t,e)=>t.inputHandler(e.event)}" @keydown="${(t,e)=>t.keydownHandler(e.event)}" @keyup="${(t,e)=>t.keyupHandler(e.event)}"><slot name="checked-indicator">${at(o.checkedIndicator)}</slot><slot name="indeterminate-indicator">${at(o.indeterminateIndicator)}</slot></template>`}const Hd=Dd({checkedIndicator:_d,indeterminateIndicator:Rd}),Vd=Zi.compose({name:`${b.prefix}-checkbox`,template:Hd,styles:Md});Vd.define(b.registry);class Nd extends F{}const jd=p`
|
|
392
|
+
${Zo}
|
|
393
|
+
|
|
394
|
+
:host,:host(:is([size])){gap:12px;height:auto;padding-top:14px;padding-inline:12px;padding-bottom:16px;font-size:${O};line-height:${R}}.content{display:flex;flex-direction:column;text-align:start}::slotted([slot='description']){color:${Ft};line-height:100%;font-size:${G};font-weight:${A}}::slotted(svg),:host([size='large']) ::slotted(svg){font-size:40px;height:40px;width:40px}:host(:hover) ::slotted([slot='description']){color:${Lo}}:host(:active) ::slotted([slot='description']){color:${Mo}}:host(:is([appearance='primary'],[appearance='primary']:hover,[appearance='primary']:active))
|
|
395
|
+
::slotted([slot='description']){color:${Kt}}:host(:is([appearance='subtle'],[appearance='subtle']:hover,[appearance='subtle']:active))
|
|
396
|
+
::slotted([slot='description']),:host([appearance='transparent']) ::slotted([slot='description']){color:${Ft}}:host([appearance='transparent']:hover) ::slotted([slot='description']){color:${_o}}:host([appearance='transparent']:active) ::slotted([slot='description']){color:${Ro}}:host(:is([disabled],[disabled][appearance],[disabled-focusable],[disabled-focusable][appearance]))
|
|
397
|
+
::slotted([slot='description']){color:${C}}:host([size='small']){padding:8px;padding-bottom:10px}:host([icon-only]){min-width:52px;max-width:52px;padding:${Se}}:host([icon-only][size='small']){min-width:48px;max-width:48px;padding:${Jt}}:host([icon-only][size='large']){min-width:56px;max-width:56px;padding:${At}}:host([size='large']){padding-top:18px;padding-inline:16px;padding-bottom:20px;font-size:${dt};line-height:${kt}}:host([size='large']) ::slotted([slot='description']){font-size:${O}}`;function qd(o={}){return v`<template ?disabled="${t=>t.disabled}" tabindex="${t=>t.disabled?-1:0}">${Ut(o)}<span class="content" part="content"><slot ${rt("defaultSlottedContent")}></slot><slot name="description"></slot></span>${Gt(o)}</template>`}const Wd=qd(),Gd=Nd.compose({name:`${b.prefix}-compound-button`,template:Wd,styles:jd});Gd.define(b.registry);var Ud=Object.defineProperty,Xd=Object.getOwnPropertyDescriptor,de=(o,t,e,i)=>{for(var s=i>1?void 0:i?Xd(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(s=(i?n(t,e,s):n(s))||s);return i&&s&&Ud(t,e,s),s};class Rt extends S{constructor(){super(...arguments),this.count=0,this.overflowCount=99,this.showZero=!1,this.dot=!1}countChanged(){this.setCount()}overflowCountChanged(){this.setCount()}setCount(){const t=this.count??0;if((t!==0||this.showZero)&&!this.dot)return t>this.overflowCount?`${this.overflowCount}+`:`${t}`}}de([a],Rt.prototype,"appearance",2),de([a],Rt.prototype,"color",2),de([a],Rt.prototype,"shape",2),de([a],Rt.prototype,"size",2),de([a({converter:nt})],Rt.prototype,"count",2),de([a({attribute:"overflow-count",converter:nt})],Rt.prototype,"overflowCount",2),de([a({attribute:"show-zero",mode:"boolean"})],Rt.prototype,"showZero",2),de([a({mode:"boolean"})],Rt.prototype,"dot",2),Xt(Rt,Wt);const Kd=p`
|
|
398
|
+
:host([shape='rounded']){border-radius:${L}}:host([shape='rounded'][size='tiny']),:host([shape='rounded'][size='extra-small']),:host([shape='rounded'][size='small']){border-radius:${xt}}${en}
|
|
399
|
+
${on}
|
|
400
|
+
${sn}
|
|
401
|
+
${tn}
|
|
402
|
+
|
|
403
|
+
:host([dot]),:host([dot][appearance][size]){min-width:auto;width:6px;height:6px;padding:0}`;function Yd(o={}){return rn({defaultContent:v`${t=>t.setCount()}`})}const Qd=Yd(),Zd=Rt.compose({name:`${b.prefix}-counter-badge`,template:Qd,styles:Kd});Zd.define(b.registry);const Dt={modal:"modal",nonModal:"non-modal",alert:"alert"};var Jd=Object.defineProperty,th=Object.getOwnPropertyDescriptor,ei=(o,t,e,i)=>{for(var s=i>1?void 0:i?th(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(s=(i?n(t,e,s):n(s))||s);return i&&s&&Jd(t,e,s),s};class lo extends S{constructor(){super(...arguments),this.type=Dt.modal,this.emitBeforeToggle=()=>{this.$emit("beforetoggle",{oldState:this.dialog.open?"open":"closed",newState:this.dialog.open?"closed":"open"})},this.emitToggle=()=>{this.$emit("toggle",{oldState:this.dialog.open?"closed":"open",newState:this.dialog.open?"open":"closed"})}}show(){mt.enqueue(()=>{this.emitBeforeToggle(),this.type===Dt.alert||this.type===Dt.modal?this.dialog.showModal():this.type===Dt.nonModal&&this.dialog.show(),this.emitToggle()})}hide(){this.emitBeforeToggle(),this.dialog.close(),this.emitToggle()}clickHandler(t){return t.preventDefault(),this.dialog.open&&this.type!==Dt.alert&&t.target===this.dialog&&this.hide(),!0}}ei([$],lo.prototype,"dialog",2),ei([a({attribute:"aria-describedby"})],lo.prototype,"ariaDescribedby",2),ei([a({attribute:"aria-labelledby"})],lo.prototype,"ariaLabelledby",2),ei([a],lo.prototype,"type",2);const eh=v`<dialog role="${o=>o.type===Dt.alert?"alertdialog":"dialog"}" type="${o=>o.type}" class="dialog" part="dialog" aria-modal="${o=>o.type===Dt.modal||o.type===Dt.alert?"true":void 0}" aria-describedby="${o=>o.ariaDescribedby}" aria-labelledby="${o=>o.ariaLabelledby}" aria-label="${o=>o.ariaLabel}" @click="${(o,t)=>o.clickHandler(t.event)}" @cancel="${(o,t)=>o.type===Dt.alert?t.event.preventDefault():o.hide()}" ${$t("dialog")}><slot></slot></dialog>`,oh=p`
|
|
404
|
+
@layer base{:host{--dialog-backdrop:${Qa};--dialog-starting-scale:0.85}::backdrop{background:var(--dialog-backdrop,rgba(0,0,0,0.4))}dialog{background:${_};border-radius:${Fr};border:none;box-shadow:${Pc};color:${M};max-height:calc(-48px + 100vh);padding:0;width:100%;max-width:600px}:host([type='non-modal']) dialog{inset:0;position:fixed;z-index:2;overflow:auto}}@layer animations{@media (prefers-reduced-motion:no-preference){dialog,::backdrop{transition:display allow-discrete,opacity,overlay allow-discrete,scale;transition-duration:${Oc};transition-timing-function:${Ui};opacity:0}::backdrop{transition-timing-function:${Kr}}[open],[open]::backdrop{opacity:1}dialog:not([open]){scale:var(--dialog-starting-scale);transition-timing-function:${Gi}}}@starting-style{[open],[open]::backdrop{opacity:0}dialog{scale:var(--dialog-starting-scale)}}}`.withBehaviors(lt(p`
|
|
405
|
+
@layer base{dialog{border:${Y} solid ${Ot}}}`)),ih=lo.compose({name:`${b.prefix}-dialog`,template:eh,styles:oh});ih.define(b.registry);var sh=Object.defineProperty,rh=Object.getOwnPropertyDescriptor,nh=(o,t,e,i)=>{for(var s=i>1?void 0:i?rh(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(s=(i?n(t,e,s):n(s))||s);return i&&s&&sh(t,e,s),s};class nn extends S{constructor(){super(...arguments),this.noTitleAction=!1}}nh([a({mode:"boolean",attribute:"no-title-action"})],nn.prototype,"noTitleAction",2);const ah=v.partial(`
|
|
406
|
+
<svg
|
|
407
|
+
fill="currentColor"
|
|
408
|
+
aria-hidden="true"
|
|
409
|
+
width="20"
|
|
410
|
+
height="20"
|
|
411
|
+
viewBox="0 0 20 20"
|
|
412
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
413
|
+
>
|
|
414
|
+
<path
|
|
415
|
+
d="m4.09 4.22.06-.07a.5.5 0 0 1 .63-.06l.07.06L10 9.29l5.15-5.14a.5.5 0 0 1 .63-.06l.07.06c.18.17.2.44.06.63l-.06.07L10.71 10l5.14 5.15c.18.17.2.44.06.63l-.06.07a.5.5 0 0 1-.63.06l-.07-.06L10 10.71l-5.15 5.14a.5.5 0 0 1-.63.06l-.07-.06a.5.5 0 0 1-.06-.63l.06-.07L9.29 10 4.15 4.85a.5.5 0 0 1-.06-.63l.06-.07-.06.07Z"
|
|
416
|
+
fill="currentColor"
|
|
417
|
+
></path>
|
|
418
|
+
</svg>`),lh=v`<div class="title" part="title"><slot name="title"></slot><slot name="title-action"><fluent-button ?hidden=${o=>o.noTitleAction||o.parentNode?.type===Dt.alert} tabindex="0" part="title-action" class="title-action" appearance="transparent" icon-only @click=${o=>o.parentNode?.hide()} ${$t("defaultTitleAction")}>${ah}</fluent-button></slot></div><div class="content" part="content"><slot></slot></div><div class="actions" part="actions"><slot name="action"></slot></div>`,ch=p`
|
|
419
|
+
${z("grid")}
|
|
420
|
+
|
|
421
|
+
:host{background:${_};box-sizing:border-box;gap:${U};padding:${ao} ${zc};container:dialog-body / inline-size}.title{box-sizing:border-box;align-items:flex-start;background:${_};color:${M};column-gap:8px;display:flex;font-family:${y};font-size:${ke};font-weight:${N};inset-block-start:0;justify-content:space-between;line-height:${Uo};margin-block-end:calc(${U} * -1);margin-block-start:calc(${ao} * -1);padding-block-end:${U};padding-block-start:${ao};position:sticky;z-index:1}.content{box-sizing:border-box;color:${M};font-family:${y};font-size:${O};font-weight:${A};line-height:${R};min-height:32px}.actions{box-sizing:border-box;background:${_};display:flex;flex-direction:column;gap:${U};inset-block-end:0;margin-block-end:calc(${ao} * -1);padding-block-end:${ao};padding-block-start:${Wr};position:sticky;z-index:2}:not(:has(:is([slot='title'],[slot='title-action']))) .title:not(:has(.title-action)),:not(:has([slot='action'])) .actions{display:none}@container (min-width:480px){.actions{align-items:center;flex-direction:row;justify-content:flex-end;margin-block-start:calc(${U} * -1);padding-block-start:${U}}}`,dh=nn.compose({name:`${b.prefix}-dialog-body`,template:lh,styles:ch});dh.define(b.registry);const co={separator:"separator",presentation:"presentation"},hh=J;var uh=Object.defineProperty,ph=Object.getOwnPropertyDescriptor,ho=(o,t,e,i)=>{for(var s=i>1?void 0:i?ph(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(s=(i?n(t,e,s):n(s))||s);return i&&s&&uh(t,e,s),s};class We extends S{constructor(){super(...arguments),this.elementInternals=this.attachInternals()}connectedCallback(){super.connectedCallback(),this.elementInternals.role=this.role??co.separator,this.role!==co.presentation&&(this.elementInternals.ariaOrientation=this.orientation??hh.horizontal)}roleChanged(t,e){this.$fastController.isConnected&&(this.elementInternals.role=`${e??co.separator}`),e===co.presentation&&(this.elementInternals.ariaOrientation=null)}orientationChanged(t,e){this.$fastController.isConnected&&(this.elementInternals.ariaOrientation=this.role!==co.presentation?e:null)}}ho([a],We.prototype,"role",2),ho([a],We.prototype,"orientation",2),ho([a({attribute:"align-content"})],We.prototype,"alignContent",2),ho([a],We.prototype,"appearance",2),ho([a({mode:"boolean"})],We.prototype,"inset",2);function fh(){return v`<slot></slot>`}const gh=fh(),bh=p`
|
|
422
|
+
${z("flex")}
|
|
423
|
+
|
|
424
|
+
:host{contain:content}:host::after,:host::before{align-self:center;background:${so};box-sizing:border-box;content:'';display:flex;flex-grow:1;height:${Y}}:host([inset]){padding:0 12px}:host ::slotted(*){color:${Ft};font-family:${y};font-size:${G};font-weight:${A};margin:0;padding:0 12px}:host([align-content='start'])::before,:host([align-content='end'])::after{flex-basis:12px;flex-grow:0;flex-shrink:0}:host([orientation='vertical']){height:100%;min-height:84px}:host([orientation='vertical']):empty{min-height:20px}:host([orientation='vertical']){flex-direction:column;align-items:center}:host([orientation='vertical'][inset])::before{margin-top:12px}:host([orientation='vertical'][inset])::after{margin-bottom:12px}:host([orientation='vertical']):empty::before,:host([orientation='vertical']):empty::after{height:10px;min-height:10px;flex-grow:0}:host([orientation='vertical'])::before,:host([orientation='vertical'])::after{width:${Y};min-height:20px;height:100%}:host([orientation='vertical']) ::slotted(*){display:flex;flex-direction:column;padding:12px 0;line-height:20px}:host([orientation='vertical'][align-content='start'])::before{min-height:8px}:host([orientation='vertical'][align-content='end'])::after{min-height:8px}:host([appearance='strong'])::before,:host([appearance='strong'])::after{background:${Ne}}:host([appearance='strong']) ::slotted(*){color:${M}}:host([appearance='brand'])::before,:host([appearance='brand'])::after{background:${xr}}:host([appearance='brand']) ::slotted(*){color:${Ai}}:host([appearance='subtle'])::before,:host([appearance='subtle'])::after{background:${tl}}:host([appearance='subtle']) ::slotted(*){color:${et}}`.withBehaviors(lt(p`
|
|
425
|
+
:host([appearance='strong'])::before,:host([appearance='strong'])::after,:host([appearance='brand'])::before,:host([appearance='brand'])::after,:host([appearance='subtle'])::before,:host([appearance='subtle'])::after,:host::after,:host::before{background:WindowText;color:WindowText}`)),mh=We.compose({name:`${b.prefix}-divider`,template:gh,styles:bh});mh.define(b.registry);const vh={above:"above",after:"after",before:"before"},w={badInput:"bad-input",customError:"custom-error",patternMismatch:"pattern-mismatch",rangeOverflow:"range-overflow",rangeUnderflow:"range-underflow",stepMismatch:"step-mismatch",tooLong:"too-long",tooShort:"too-short",typeMismatch:"type-mismatch",valueMissing:"value-missing",valid:"valid"};var $h=Object.defineProperty,yh=Object.getOwnPropertyDescriptor,Ji=(o,t,e,i)=>{for(var s=i>1?void 0:i?yh(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(s=(i?n(t,e,s):n(s))||s);return i&&s&&$h(t,e,s),s};class oi extends S{constructor(){super(...arguments),this.labelPosition=vh.above,this.elementInternals=this.attachInternals()}messageSlotChanged(t,e){if(!e.length){this.removeEventListener("invalid",this.invalidHandler,{capture:!0});return}this.addEventListener("invalid",this.invalidHandler,{capture:!0})}slottedInputsChanged(t,e){this.input=e?.[0],this.input&&this.setStates()}changeHandler(t){this.setStates()}clickHandler(t){if(this.isSameNode(t.target)){this.input.focus(),this.input.click();return}return!0}focusinHandler(t){return t.target.matches(":focus-visible")&&Lt(this.elementInternals,"focus-visible",!0),!0}focusoutHandler(t){return Lt(this.elementInternals,"focus-visible",!1),!0}invalidHandler(t){this.messageSlot.length&&t.preventDefault(),this.setStates()}setStates(){if(this.$fastController.isConnected){if(Lt(this.elementInternals,"disabled",!!this.input.disabled),Lt(this.elementInternals,"readonly",!!this.input.readOnly),Lt(this.elementInternals,"required",!!this.input.required),!this.input.validity)return;for(const[t,e]of Object.entries(w))Lt(this.elementInternals,e,!!this.input.validity[t])}}}Ji([a({attribute:"label-position"})],oi.prototype,"labelPosition",2),Ji([$],oi.prototype,"messageSlot",2),Ji([$],oi.prototype,"slottedInputs",2);const xh=p.partial`:is([state--disabled], :state(disabled))`,kh=p.partial`:is([state--focus-visible], :state(focus-visible))`,wh=p.partial`:is([state--${w.badInput}], :state(${w.badInput}))`,Ch=p.partial`:is([state--${w.customError}], :state(${w.customError}))`,Sh=p.partial`:is([state--${w.patternMismatch}], :state(${w.patternMismatch}))`,Ih=p.partial`:is([state--${w.rangeOverflow}], :state(${w.rangeOverflow}))`,Ph=p.partial`:is([state--${w.rangeUnderflow}], :state(${w.rangeUnderflow}))`,Bh=p.partial`:is([state--${w.stepMismatch}], :state(${w.stepMismatch}))`,zh=p.partial`:is([state--${w.tooLong}], :state(${w.tooLong}))`,Th=p.partial`:is([state--${w.tooShort}], :state(${w.tooShort}))`,Fh=p.partial`:is([state--${w.typeMismatch}], :state(${w.typeMismatch}))`,Oh=p.partial`:is([state-${w.valid}], :state(${w.valid}))`,Ah=p.partial`:is([state--${w.valueMissing}], :state(${w.valueMissing}))`,Eh=p`
|
|
426
|
+
${z("inline-grid")}
|
|
427
|
+
|
|
428
|
+
:host{align-items:center;cursor:pointer;gap:0 ${ae};justify-items:start;padding:${U}}:has([slot='message']){color:${M};row-gap:${U}}:not(::slotted([slot='label'])){gap:0}:host([label-position='before']){grid-template-areas:'label input' 'label message'}:host([label-position='after']){gap:0;grid-template-areas:'input label' 'message message';grid-template-columns:auto 1fr}:host([label-position='after']) ::slotted([slot='input']){margin-inline-end:${ae}}:host([label-position='above']){grid-template-areas:'label' 'input' 'message';row-gap:${Ko}}:host([label-position='below']){grid-template-areas:'input' 'label' 'message'}::slotted([slot='label']){cursor:pointer;grid-area:label}::slotted([slot='input']){grid-area:input}::slotted([slot='message']){margin-block-start:${Ko};grid-area:message}:host(${kh}:focus-within){border-radius:${L};outline:${we} solid ${Zt}}::slotted(label){display:inline-flex;color:${M};cursor:pointer;font-family:${y};font-size:${O};font-weight:${A};line-height:${R};user-select:none}:host([size='small']) ::slotted(label){font-size:${G};line-height:${ht}}:host([size='large']) ::slotted(label){font-size:${dt};line-height:${kt}}:host([size='large']) ::slotted(label),:host([weight='semibold']) ::slotted(label){font-weight:${N}}:host(${xh}) ::slotted(label){color:${M};cursor:default}::slotted([flag]){display:none}:host(${wh}) ::slotted([flag='${w.badInput}']),:host(${Ch}) ::slotted([flag='${w.customError}']),:host(${Sh}) ::slotted([flag='${w.patternMismatch}']),:host(${Ih}) ::slotted([flag='${w.rangeOverflow}']),:host(${Ph}) ::slotted([flag='${w.rangeUnderflow}']),:host(${Bh}) ::slotted([flag='${w.stepMismatch}']),:host(${zh}) ::slotted([flag='${w.tooLong}']),:host(${Th}) ::slotted([flag='${w.tooShort}']),:host(${Fh}) ::slotted([flag='${w.typeMismatch}']),:host(${Ah}) ::slotted([flag='${w.valueMissing}']),:host(${Oh}) ::slotted([flag='${w.valid}']){display:block}`,Lh=v`<template @click="${(o,t)=>o.clickHandler(t.event)}" @change="${(o,t)=>o.changeHandler(t.event)}" @focusin="${(o,t)=>o.focusinHandler(t.event)}" @focusout="${(o,t)=>o.focusoutHandler(t.event)}" ${ha({property:"slottedInputs",attributes:!0,attributeFilter:["disabled","required","readonly"],subtree:!0,selector:'[slot="input"]',filter:ye()})}><slot name="label" part="label"></slot><slot name="input" part="input"></slot><slot name="message" part="message" ${rt({property:"messageSlot",filter:ye("[flag]")})}></slot></template>`,Mh=oi.compose({name:`${b.prefix}-field`,template:Lh,styles:Eh,shadowOptions:{delegatesFocus:!0}});Mh.define(b.registry);var _h=Object.defineProperty,Rh=Object.getOwnPropertyDescriptor,uo=(o,t,e,i)=>{for(var s=i>1?void 0:i?Rh(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(s=(i?n(t,e,s):n(s))||s);return i&&s&&_h(t,e,s),s};class Ge extends S{}uo([a({mode:"boolean"})],Ge.prototype,"block",2),uo([a({mode:"boolean"})],Ge.prototype,"bordered",2),uo([a({mode:"boolean"})],Ge.prototype,"shadow",2),uo([a],Ge.prototype,"fit",2),uo([a],Ge.prototype,"shape",2);const Dh=v`<slot></slot>`,Hh=p`
|
|
429
|
+
:host{contain:content}:host ::slotted(img){box-sizing:border-box;min-height:8px;min-width:8px;display:inline-block}:host([block]) ::slotted(img){width:100%;height:auto}:host([bordered]) ::slotted(img){border:${Y} solid ${so}}:host([fit='none']) ::slotted(img){object-fit:none;object-position:top left;height:100%;width:100%}:host([fit='center']) ::slotted(img){object-fit:none;object-position:center;height:100%;width:100%}:host([fit='contain']) ::slotted(img){object-fit:contain;object-position:center;height:100%;width:100%}:host([fit='cover']) ::slotted(img){object-fit:cover;object-position:center;height:100%;width:100%}:host([shadow]) ::slotted(img){box-shadow:${Xo}}:host([shape='circular']) ::slotted(img){border-radius:${ct}}:host([shape='rounded']) ::slotted(img){border-radius:${L}}`,Vh=Ge.compose({name:`${b.prefix}-image`,template:Dh,styles:Hh});Vh.define(b.registry);var Nh=Object.defineProperty,jh=Object.getOwnPropertyDescriptor,ii=(o,t,e,i)=>{for(var s=i>1?void 0:i?jh(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(s=(i?n(t,e,s):n(s))||s);return i&&s&&Nh(t,e,s),s};class po extends S{constructor(){super(...arguments),this.disabled=!1,this.required=!1}}ii([a],po.prototype,"size",2),ii([a],po.prototype,"weight",2),ii([a({mode:"boolean"})],po.prototype,"disabled",2),ii([a({mode:"boolean"})],po.prototype,"required",2);const qh=p`
|
|
430
|
+
${z("inline-flex")}
|
|
431
|
+
|
|
432
|
+
:host{color:${M};cursor:pointer;font-family:${y};font-size:${O};font-weight:${A};line-height:${R};user-select:none}.asterisk{color:${Sr};margin-inline-start:${Jt}}:host([size='small']){font-size:${G};line-height:${ht}}:host([size='large']){font-size:${dt};line-height:${kt}}:host([size='large']),:host([weight='semibold']){font-weight:${N}}:host([disabled]),:host([disabled]) .asterisk{color:${C}}`;function Wh(){return v`<slot></slot><span part="asterisk" class="asterisk" ?hidden="${o=>!o.required}">*</span>`}const Gh=Wh(),Uh=po.compose({name:`${b.prefix}-label`,template:Gh,styles:qh});Uh.define(b.registry);var Xh=Object.defineProperty,Kh=Object.getOwnPropertyDescriptor,an=(o,t,e,i)=>{for(var s=i>1?void 0:i?Kh(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(s=(i?n(t,e,s):n(s))||s);return i&&s&&Xh(t,e,s),s};class ts extends Et{constructor(){super(...arguments),this.inline=!1}}an([a],ts.prototype,"appearance",2),an([a({mode:"boolean"})],ts.prototype,"inline",2);const Yh=p`
|
|
433
|
+
${z("inline")}
|
|
434
|
+
|
|
435
|
+
:host{box-sizing:border-box;background-color:transparent;color:${La};cursor:pointer;font-family:${y};font-size:${O};font-weight:${A};margin:0;padding:0;overflow:inherit;text-align:left;text-decoration:none;text-decoration-thinkness:${Y};text-overflow:inherit;user-select:text}:host(:is(:hover,:focus-visible)){outline:none;text-decoration-line:underline}@media (hover:hover){:host(:hover){color:${Ma}}:host(:active){color:${_a}}:host([appearance='subtle']:hover){color:${Da}}:host([appearance='subtle']:active){color:${Ha}}}:host([appearance='subtle']){color:${Ra}}:host-context(:is(h1,h2,h3,h4,h5,h6,p,fluent-text)),:host([inline]){font:inherit;text-decoration:underline}:host(:not([href])){color:inherit;text-decoration:none}`.withBehaviors(lt(p`
|
|
436
|
+
:host{color:LinkText}`));function Qh(){return v`<template tabindex="0" @click="${o=>o.clickHandler()}" @keypress="${(o,t)=>o.keypressHandler(t.event)}"><slot></slot></template>`}const Zh=Qh(),Jh=ts.compose({name:`${b.prefix}-link`,template:Zh,styles:Yh});Jh.define(b.registry);class tu extends F{}const eu=Qi({end:v.partial(`
|
|
437
|
+
<svg slot="end" fill="currentColor" aria-hidden="true" width="1em" height="1em" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg">
|
|
438
|
+
<path d="M15.85 7.65c.2.2.2.5 0 .7l-5.46 5.49a.55.55 0 0 1-.78 0L4.15 8.35a.5.5 0 1 1 .7-.7L10 12.8l5.15-5.16c.2-.2.5-.2.7 0Z" fill="currentColor"></path>
|
|
439
|
+
</svg>
|
|
440
|
+
`)}),ou=tu.compose({name:`${b.prefix}-menu-button`,template:eu,styles:Zo});ou.define(b.registry);function si(o){return o.split("-")[1]}function ln(o){return o==="y"?"height":"width"}function Pe(o){return o.split("-")[0]}function ri(o){return["top","bottom"].includes(Pe(o))?"x":"y"}function cn(o,t,e){let{reference:i,floating:s}=o;const r=i.x+i.width/2-s.width/2,n=i.y+i.height/2-s.height/2,c=ri(t),h=ln(c),d=i[h]/2-s[h]/2,l=c==="x";let u;switch(Pe(t)){case"top":u={x:r,y:i.y-s.height};break;case"bottom":u={x:r,y:i.y+i.height};break;case"right":u={x:i.x+i.width,y:n};break;case"left":u={x:i.x-s.width,y:n};break;default:u={x:i.x,y:i.y}}switch(si(t)){case"start":u[c]-=d*(e&&l?-1:1);break;case"end":u[c]+=d*(e&&l?-1:1)}return u}const iu=async(o,t,e)=>{const{placement:i="bottom",strategy:s="absolute",middleware:r=[],platform:n}=e,c=r.filter(Boolean),h=await(n.isRTL==null?void 0:n.isRTL(t));let d=await n.getElementRects({reference:o,floating:t,strategy:s}),{x:l,y:u}=cn(d,i,h),f=i,g={},m=0;for(let x=0;x<c.length;x++){const{name:I,fn:T}=c[x],{x:B,y:D,data:Q,reset:Z}=await T({x:l,y:u,initialPlacement:i,placement:f,strategy:s,middlewareData:g,rects:d,platform:n,elements:{reference:o,floating:t}});l=B??l,u=D??u,g={...g,[I]:{...g[I],...Q}},Z&&m<=50&&(m++,typeof Z=="object"&&(Z.placement&&(f=Z.placement),Z.rects&&(d=Z.rects===!0?await n.getElementRects({reference:o,floating:t,strategy:s}):Z.rects),{x:l,y:u}=cn(d,f,h)),x=-1)}return{x:l,y:u,placement:f,strategy:s,middlewareData:g}};function su(o){return typeof o!="number"?function(t){return{top:0,right:0,bottom:0,left:0,...t}}(o):{top:o,right:o,bottom:o,left:o}}function es(o){return{...o,top:o.y,left:o.x,right:o.x+o.width,bottom:o.y+o.height}}async function fo(o,t){var e;t===void 0&&(t={});const{x:i,y:s,platform:r,rects:n,elements:c,strategy:h}=o,{boundary:d="clippingAncestors",rootBoundary:l="viewport",elementContext:u="floating",altBoundary:f=!1,padding:g=0}=t,m=su(g),x=c[f?u==="floating"?"reference":"floating":u],I=es(await r.getClippingRect({element:(e=await(r.isElement==null?void 0:r.isElement(x)))==null||e?x:x.contextElement||await(r.getDocumentElement==null?void 0:r.getDocumentElement(c.floating)),boundary:d,rootBoundary:l,strategy:h})),T=u==="floating"?{...n.floating,x:i,y:s}:n.reference,B=await(r.getOffsetParent==null?void 0:r.getOffsetParent(c.floating)),D=await(r.isElement==null?void 0:r.isElement(B))&&await(r.getScale==null?void 0:r.getScale(B))||{x:1,y:1},Q=es(r.convertOffsetParentRelativeRectToViewportRelativeRect?await r.convertOffsetParentRelativeRectToViewportRelativeRect({rect:T,offsetParent:B,strategy:h}):T);return{top:(I.top-Q.top+m.top)/D.y,bottom:(Q.bottom-I.bottom+m.bottom)/D.y,left:(I.left-Q.left+m.left)/D.x,right:(Q.right-I.right+m.right)/D.x}}const os=Math.min,Be=Math.max;function dn(o,t,e){return Be(o,os(t,e))}const hn=["top","right","bottom","left"];hn.reduce((o,t)=>o.concat(t,t+"-start",t+"-end"),[]);const ru={left:"right",right:"left",bottom:"top",top:"bottom"};function ni(o){return o.replace(/left|right|bottom|top/g,t=>ru[t])}function nu(o,t,e){e===void 0&&(e=!1);const i=si(o),s=ri(o),r=ln(s);let n=s==="x"?i===(e?"end":"start")?"right":"left":i==="start"?"bottom":"top";return t.reference[r]>t.floating[r]&&(n=ni(n)),{main:n,cross:ni(n)}}const au={start:"end",end:"start"};function is(o){return o.replace(/start|end/g,t=>au[t])}const un=function(o){return o===void 0&&(o={}),{name:"flip",options:o,async fn(t){var e;const{placement:i,middlewareData:s,rects:r,initialPlacement:n,platform:c,elements:h}=t,{mainAxis:d=!0,crossAxis:l=!0,fallbackPlacements:u,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:m=!0,...x}=o,I=Pe(i),T=Pe(n)===n,B=await(c.isRTL==null?void 0:c.isRTL(h.floating)),D=u||(T||!m?[ni(n)]:function(pt){const jt=ni(pt);return[is(pt),jt,is(jt)]}(n));u||g==="none"||D.push(...function(pt,jt,me,se){const qt=si(pt);let ft=function(Ke,gi,Vn){const gs=["left","right"],bs=["right","left"],Nn=["top","bottom"],jn=["bottom","top"];switch(Ke){case"top":case"bottom":return Vn?gi?bs:gs:gi?gs:bs;case"left":case"right":return gi?Nn:jn;default:return[]}}(Pe(pt),me==="start",se);return qt&&(ft=ft.map(Ke=>Ke+"-"+qt),jt&&(ft=ft.concat(ft.map(is)))),ft}(n,m,g,B));const Q=[n,...D],Z=await fo(t,x),be=[];let ie=((e=s.flip)==null?void 0:e.overflows)||[];if(d&&be.push(Z[I]),l){const{main:pt,cross:jt}=nu(i,r,B);be.push(Z[pt],Z[jt])}if(ie=[...ie,{placement:i,overflows:be}],!be.every(pt=>pt<=0)){var Xe,ps;const pt=(((Xe=s.flip)==null?void 0:Xe.index)||0)+1,jt=Q[pt];if(jt)return{data:{index:pt,overflows:ie},reset:{placement:jt}};let me=(ps=ie.filter(se=>se.overflows[0]<=0).sort((se,qt)=>se.overflows[1]-qt.overflows[1])[0])==null?void 0:ps.placement;if(!me)switch(f){case"bestFit":{var fs;const se=(fs=ie.map(qt=>[qt.placement,qt.overflows.filter(ft=>ft>0).reduce((ft,Ke)=>ft+Ke,0)]).sort((qt,ft)=>qt[1]-ft[1])[0])==null?void 0:fs[0];se&&(me=se);break}case"initialPlacement":me=n}if(i!==me)return{reset:{placement:me}}}return{}}}};function pn(o,t){return{top:o.top-t.height,right:o.right-t.width,bottom:o.bottom-t.height,left:o.left-t.width}}function fn(o){return hn.some(t=>o[t]>=0)}const lu=function(o){return o===void 0&&(o={}),{name:"hide",options:o,async fn(t){const{strategy:e="referenceHidden",...i}=o,{rects:s}=t;switch(e){case"referenceHidden":{const r=pn(await fo(t,{...i,elementContext:"reference"}),s.reference);return{data:{referenceHiddenOffsets:r,referenceHidden:fn(r)}}}case"escaped":{const r=pn(await fo(t,{...i,altBoundary:!0}),s.floating);return{data:{escapedOffsets:r,escaped:fn(r)}}}default:return{}}}}};function cu(o){return o==="x"?"y":"x"}const du=function(o){return o===void 0&&(o={}),{name:"shift",options:o,async fn(t){const{x:e,y:i,placement:s}=t,{mainAxis:r=!0,crossAxis:n=!1,limiter:c={fn:I=>{let{x:T,y:B}=I;return{x:T,y:B}}},...h}=o,d={x:e,y:i},l=await fo(t,h),u=ri(Pe(s)),f=cu(u);let g=d[u],m=d[f];if(r){const I=u==="y"?"bottom":"right";g=dn(g+l[u==="y"?"top":"left"],g,g-l[I])}if(n){const I=f==="y"?"bottom":"right";m=dn(m+l[f==="y"?"top":"left"],m,m-l[I])}const x=c.fn({...t,[u]:g,[f]:m});return{...x,data:{x:x.x-e,y:x.y-i}}}}},gn=function(o){return o===void 0&&(o={}),{name:"size",options:o,async fn(t){const{placement:e,rects:i,platform:s,elements:r}=t,{apply:n=()=>{},...c}=o,h=await fo(t,c),d=Pe(e),l=si(e),u=ri(e)==="x",{width:f,height:g}=i.floating;let m,x;d==="top"||d==="bottom"?(m=d,x=l===(await(s.isRTL==null?void 0:s.isRTL(r.floating))?"start":"end")?"left":"right"):(x=d,m=l==="end"?"top":"bottom");const I=g-h[m],T=f-h[x];let B=I,D=T;if(u?D=os(f-h.right-h.left,T):B=os(g-h.bottom-h.top,I),!t.middlewareData.shift&&!l){const Z=Be(h.left,0),be=Be(h.right,0),ie=Be(h.top,0),Xe=Be(h.bottom,0);u?D=f-2*(Z!==0||be!==0?Z+be:Be(h.left,h.right)):B=g-2*(ie!==0||Xe!==0?ie+Xe:Be(h.top,h.bottom))}await n({...t,availableWidth:D,availableHeight:B});const Q=await s.getDimensions(r.floating);return f!==Q.width||g!==Q.height?{reset:{rects:!0}}:{}}}};function ut(o){var t;return((t=o.ownerDocument)==null?void 0:t.defaultView)||window}function Ht(o){return ut(o).getComputedStyle(o)}const bn=Math.min,go=Math.max,ai=Math.round;function mn(o){const t=Ht(o);let e=parseFloat(t.width),i=parseFloat(t.height);const s=o.offsetWidth,r=o.offsetHeight,n=ai(e)!==s||ai(i)!==r;return n&&(e=s,i=r),{width:e,height:i,fallback:n}}function he(o){return $n(o)?(o.nodeName||"").toLowerCase():""}let li;function vn(){if(li)return li;const o=navigator.userAgentData;return o&&Array.isArray(o.brands)?(li=o.brands.map(t=>t.brand+"/"+t.version).join(" "),li):navigator.userAgent}function Vt(o){return o instanceof ut(o).HTMLElement}function St(o){return o instanceof ut(o).Element}function $n(o){return o instanceof ut(o).Node}function yn(o){return typeof ShadowRoot>"u"?!1:o instanceof ut(o).ShadowRoot||o instanceof ShadowRoot}function ci(o){const{overflow:t,overflowX:e,overflowY:i,display:s}=Ht(o);return/auto|scroll|overlay|hidden|clip/.test(t+i+e)&&!["inline","contents"].includes(s)}function hu(o){return["table","td","th"].includes(he(o))}function ss(o){const t=/firefox/i.test(vn()),e=Ht(o),i=e.backdropFilter||e.WebkitBackdropFilter;return e.transform!=="none"||e.perspective!=="none"||!!i&&i!=="none"||t&&e.willChange==="filter"||t&&!!e.filter&&e.filter!=="none"||["transform","perspective"].some(s=>e.willChange.includes(s))||["paint","layout","strict","content"].some(s=>{const r=e.contain;return r!=null&&r.includes(s)})}function rs(){return/^((?!chrome|android).)*safari/i.test(vn())}function ns(o){return["html","body","#document"].includes(he(o))}function xn(o){return St(o)?o:o.contextElement}const kn={x:1,y:1};function Ue(o){const t=xn(o);if(!Vt(t))return kn;const e=t.getBoundingClientRect(),{width:i,height:s,fallback:r}=mn(t);let n=(r?ai(e.width):e.width)/i,c=(r?ai(e.height):e.height)/s;return n&&Number.isFinite(n)||(n=1),c&&Number.isFinite(c)||(c=1),{x:n,y:c}}function ze(o,t,e,i){var s,r;t===void 0&&(t=!1),e===void 0&&(e=!1);const n=o.getBoundingClientRect(),c=xn(o);let h=kn;t&&(i?St(i)&&(h=Ue(i)):h=Ue(o));const d=c?ut(c):window,l=rs()&&e;let u=(n.left+(l&&((s=d.visualViewport)==null?void 0:s.offsetLeft)||0))/h.x,f=(n.top+(l&&((r=d.visualViewport)==null?void 0:r.offsetTop)||0))/h.y,g=n.width/h.x,m=n.height/h.y;if(c){const x=ut(c),I=i&&St(i)?ut(i):i;let T=x.frameElement;for(;T&&i&&I!==x;){const B=Ue(T),D=T.getBoundingClientRect(),Q=getComputedStyle(T);D.x+=(T.clientLeft+parseFloat(Q.paddingLeft))*B.x,D.y+=(T.clientTop+parseFloat(Q.paddingTop))*B.y,u*=B.x,f*=B.y,g*=B.x,m*=B.y,u+=D.x,f+=D.y,T=ut(T).frameElement}}return{width:g,height:m,top:f,right:u+g,bottom:f+m,left:u,x:u,y:f}}function ue(o){return(($n(o)?o.ownerDocument:o.document)||window.document).documentElement}function di(o){return St(o)?{scrollLeft:o.scrollLeft,scrollTop:o.scrollTop}:{scrollLeft:o.pageXOffset,scrollTop:o.pageYOffset}}function wn(o){return ze(ue(o)).left+di(o).scrollLeft}function bo(o){if(he(o)==="html")return o;const t=o.assignedSlot||o.parentNode||yn(o)&&o.host||ue(o);return yn(t)?t.host:t}function Cn(o){const t=bo(o);return ns(t)?t.ownerDocument.body:Vt(t)&&ci(t)?t:Cn(t)}function mo(o,t){var e;t===void 0&&(t=[]);const i=Cn(o),s=i===((e=o.ownerDocument)==null?void 0:e.body),r=ut(i);return s?t.concat(r,r.visualViewport||[],ci(i)?i:[]):t.concat(i,mo(i))}function Sn(o,t,e){let i;if(t==="viewport")i=function(n,c){const h=ut(n),d=ue(n),l=h.visualViewport;let u=d.clientWidth,f=d.clientHeight,g=0,m=0;if(l){u=l.width,f=l.height;const x=rs();(!x||x&&c==="fixed")&&(g=l.offsetLeft,m=l.offsetTop)}return{width:u,height:f,x:g,y:m}}(o,e);else if(t==="document")i=function(n){const c=ue(n),h=di(n),d=n.ownerDocument.body,l=go(c.scrollWidth,c.clientWidth,d.scrollWidth,d.clientWidth),u=go(c.scrollHeight,c.clientHeight,d.scrollHeight,d.clientHeight);let f=-h.scrollLeft+wn(n);const g=-h.scrollTop;return Ht(d).direction==="rtl"&&(f+=go(c.clientWidth,d.clientWidth)-l),{width:l,height:u,x:f,y:g}}(ue(o));else if(St(t))i=function(n,c){const h=ze(n,!0,c==="fixed"),d=h.top+n.clientTop,l=h.left+n.clientLeft,u=Vt(n)?Ue(n):{x:1,y:1};return{width:n.clientWidth*u.x,height:n.clientHeight*u.y,x:l*u.x,y:d*u.y}}(t,e);else{const n={...t};if(rs()){var s,r;const c=ut(o);n.x-=((s=c.visualViewport)==null?void 0:s.offsetLeft)||0,n.y-=((r=c.visualViewport)==null?void 0:r.offsetTop)||0}i=n}return es(i)}function In(o,t){return Vt(o)&&Ht(o).position!=="fixed"?t?t(o):o.offsetParent:null}function Pn(o,t){const e=ut(o);let i=In(o,t);for(;i&&hu(i)&&Ht(i).position==="static";)i=In(i,t);return i&&(he(i)==="html"||he(i)==="body"&&Ht(i).position==="static"&&!ss(i))?e:i||function(s){let r=bo(s);for(;Vt(r)&&!ns(r);){if(ss(r))return r;r=bo(r)}return null}(o)||e}function uu(o,t,e){const i=Vt(t),s=ue(t),r=ze(o,!0,e==="fixed",t);let n={scrollLeft:0,scrollTop:0};const c={x:0,y:0};if(i||!i&&e!=="fixed")if((he(t)!=="body"||ci(s))&&(n=di(t)),Vt(t)){const h=ze(t,!0);c.x=h.x+t.clientLeft,c.y=h.y+t.clientTop}else s&&(c.x=wn(s));return{x:r.left+n.scrollLeft-c.x,y:r.top+n.scrollTop-c.y,width:r.width,height:r.height}}const pu={getClippingRect:function(o){let{element:t,boundary:e,rootBoundary:i,strategy:s}=o;const r=e==="clippingAncestors"?function(d,l){const u=l.get(d);if(u)return u;let f=mo(d).filter(I=>St(I)&&he(I)!=="body"),g=null;const m=Ht(d).position==="fixed";let x=m?bo(d):d;for(;St(x)&&!ns(x);){const I=Ht(x),T=ss(x);(m?T||g:T||I.position!=="static"||!g||!["absolute","fixed"].includes(g.position))?g=I:f=f.filter(B=>B!==x),x=bo(x)}return l.set(d,f),f}(t,this._c):[].concat(e),n=[...r,i],c=n[0],h=n.reduce((d,l)=>{const u=Sn(t,l,s);return d.top=go(u.top,d.top),d.right=bn(u.right,d.right),d.bottom=bn(u.bottom,d.bottom),d.left=go(u.left,d.left),d},Sn(t,c,s));return{width:h.right-h.left,height:h.bottom-h.top,x:h.left,y:h.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(o){let{rect:t,offsetParent:e,strategy:i}=o;const s=Vt(e),r=ue(e);if(e===r)return t;let n={scrollLeft:0,scrollTop:0},c={x:1,y:1};const h={x:0,y:0};if((s||!s&&i!=="fixed")&&((he(e)!=="body"||ci(r))&&(n=di(e)),Vt(e))){const d=ze(e);c=Ue(e),h.x=d.x+e.clientLeft,h.y=d.y+e.clientTop}return{width:t.width*c.x,height:t.height*c.y,x:t.x*c.x-n.scrollLeft*c.x+h.x,y:t.y*c.y-n.scrollTop*c.y+h.y}},isElement:St,getDimensions:function(o){return Vt(o)?mn(o):o.getBoundingClientRect()},getOffsetParent:Pn,getDocumentElement:ue,getScale:Ue,async getElementRects(o){let{reference:t,floating:e,strategy:i}=o;const s=this.getOffsetParent||Pn,r=this.getDimensions;return{reference:uu(t,await s(e),i),floating:{x:0,y:0,...await r(e)}}},getClientRects:o=>Array.from(o.getClientRects()),isRTL:o=>Ht(o).direction==="rtl"};function Bn(o,t,e,i){i===void 0&&(i={});const{ancestorScroll:s=!0,ancestorResize:r=!0,elementResize:n=!0,animationFrame:c=!1}=i,h=s&&!c,d=h||r?[...St(o)?mo(o):o.contextElement?mo(o.contextElement):[],...mo(t)]:[];d.forEach(g=>{h&&g.addEventListener("scroll",e,{passive:!0}),r&&g.addEventListener("resize",e)});let l,u=null;if(n){let g=!0;u=new ResizeObserver(()=>{g||e(),g=!1}),St(o)&&!c&&u.observe(o),St(o)||!o.contextElement||c||u.observe(o.contextElement),u.observe(t)}let f=c?ze(o):null;return c&&function g(){const m=ze(o);!f||m.x===f.x&&m.y===f.y&&m.width===f.width&&m.height===f.height||e(),f=m,l=requestAnimationFrame(g)}(),e(),()=>{var g;d.forEach(m=>{h&&m.removeEventListener("scroll",e),r&&m.removeEventListener("resize",e)}),(g=u)==null||g.disconnect(),u=null,c&&cancelAnimationFrame(l)}}const zn=(o,t,e)=>{const i=new Map,s={platform:pu,...e},r={...s.platform,_c:i};return iu(o,t,{...s,platform:r})},ot={menuitem:"menuitem",menuitemcheckbox:"menuitemcheckbox",menuitemradio:"menuitemradio"};ot.menuitem+"",ot.menuitemcheckbox+"",ot.menuitemradio+"";var fu=Object.defineProperty,gu=Object.getOwnPropertyDescriptor,Te=(o,t,e,i)=>{for(var s=i>1?void 0:i?gu(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(s=(i?n(t,e,s):n(s))||s);return i&&s&&fu(t,e,s),s};class It extends S{constructor(){super(...arguments),this.role=ot.menuitem,this.checked=!1,this.focusSubmenuOnLoad=!1,this.handleMenuItemKeyDown=t=>{if(t.defaultPrevented)return!1;switch(t.key){case Ve:case Eo:return this.invoke(),!1;case De:return this.expanded&&this.submenu?this.submenu.focus():this.expandAndFocus(),!1;case ar:if(this.expanded)return this.closeSubMenu(),!1;break;case Re:if(this.expanded)return this.closeSubMenu(),!1}return!0},this.handleMenuItemClick=t=>(t.defaultPrevented||this.disabled||this.invoke(),!1),this.submenuLoaded=()=>{this.focusSubmenuOnLoad&&(this.focusSubmenuOnLoad=!1,this.submenu&&(this.submenu.focus(),this.setAttribute("tabindex","-1")))},this.handleMouseOver=t=>(this.disabled||!this.hasSubmenu||this.expanded||(this.expanded=!0),!1),this.handleMouseOut=t=>(!this.expanded||this.contains(document.activeElement)||(this.expanded=!1),!1),this.closeSubMenu=()=>{this.expanded=!1,this.focus()},this.expandAndFocus=()=>{this.hasSubmenu&&(this.focusSubmenuOnLoad=!0,this.expanded=!0)},this.invoke=()=>{if(!this.disabled)switch(this.role){case ot.menuitemcheckbox:this.checked=!this.checked;break;case ot.menuitem:if(this.hasSubmenu){this.expandAndFocus();break}this.$emit("change");break;case ot.menuitemradio:this.checked||(this.checked=!0);break}}}expandedChanged(t,e){this.$fastController.isConnected&&(e&&this.submenu&&this.updateSubmenu(),this.$emit("expanded-change",this,{bubbles:!1}))}checkedChanged(t,e){this.$fastController.isConnected&&this.$emit("change")}get hasSubmenu(){return!!this.submenu}slottedSubmenuChanged(t,e){e.length&&(this.submenu=e[0],this.updateSubmenu())}disconnectedCallback(){this.cleanup?.(),super.disconnectedCallback()}updateSubmenu(){this.cleanup?.(),!(!this.submenu||!this.expanded)&&mt.enqueue(()=>{this.cleanup=Bn(this,this.submenuContainer,async()=>{const t=["left-start","right-start"],{x:e,y:i}=await zn(this,this.submenuContainer,{middleware:[du(),gn({apply:({availableWidth:s,rects:r})=>{s<r.floating.width&&t.push("bottom-end","top-end")}}),un({fallbackPlacements:t})],placement:"right-start",strategy:"fixed"});Object.assign(this.submenuContainer.style,{left:`${e}px`,position:"fixed",top:`${i}px`}),this.submenuLoaded()})})}}Te([a({mode:"boolean"})],It.prototype,"disabled",2),Te([a({mode:"boolean"})],It.prototype,"expanded",2),Te([a],It.prototype,"role",2),Te([a({mode:"boolean"})],It.prototype,"checked",2),Te([a({mode:"boolean"})],It.prototype,"hidden",2),Te([$],It.prototype,"slottedSubmenu",2),Te([$],It.prototype,"submenu",2),Xt(It,Wt);const bu=p`
|
|
441
|
+
${z("grid")}
|
|
442
|
+
|
|
443
|
+
:host{grid-template-columns:20px 20px auto 20px;align-items:center;grid-gap:4px;height:32px;background:${_};font:${A} ${O} / ${R} ${y};border-radius:${L};color:${Ft};padding:0 10px;cursor:pointer;overflow:visible;contain:layout}:host(:hover){background:${Ei}}.content{white-space:nowrap;flex-grow:1;grid-column:auto / span 2;padding:0 2px}.checkbox,.radio{display:none}.input-container,.expand-collapse-glyph-container,::slotted([slot='start']),::slotted([slot='end']),:host([checked]) .checkbox,:host([checked]) .radio{display:inline-flex;justify-content:center;align-items:center;color:${Ft}}.expand-collapse-glyph-container,::slotted([slot='start']),::slotted([slot='end']){height:32px;font-size:${ke};width:fit-content}.input-container{width:20px}::slotted([slot='end']){color:${et};font:${A} ${G} / ${ht} ${y};white-space:nowrap;grid-column:4 / span 1;justify-self:flex-end}.expand-collapse-glyph-container{grid-column:4 / span 1;justify-self:flex-end}:host(:hover) .input-container,:host(:hover) .expand-collapse-glyph-container,:host(:hover) .content{color:${Lo}}:host([icon]:hover) ::slotted([slot='start']){color:${ur}}:host(:active){background-color:${br}}:host(:active) .input-container,:host(:active) .expand-collapse-glyph-container,:host(:active) .content{color:${Mo}}:host(:active) ::slotted([slot='start']){color:${pr}}:host([disabled]){background-color:${Ze}}:host([disabled]) .content,:host([disabled]) .expand-collapse-glyph-container,:host([disabled]) ::slotted([slot='end']),:host([disabled]) ::slotted([slot='start']){color:${C}}:host([data-indent]){display:grid}:host([data-indent='1']) .content{grid-column:2 / span 1}:host([data-indent='1'][role='menuitemcheckbox']){display:grid}:host([data-indent='2'][aria-haspopup='menu']) ::slotted([slot='end']){grid-column:4 / span 1}:host([data-indent='2'][aria-haspopup='menu']) .expand-collapse-glyph-container{grid-column:5 / span 1}:host([data-indent='1']) .content{grid-column:2 / span 1}:host([data-indent='1'][role='menuitemcheckbox']) .content,:host([data-indent='1'][role='menuitemradio']) .content{grid-column:auto / span 1}:host([icon]) ::slotted([slot='end']),:host([data-indent='1']) ::slotted([slot='end']){grid-column:4 / span 1;justify-self:flex-end}:host([data-indent='2']){display:grid;grid-template-columns:20px 20px auto auto}:host([data-indent='2']) .content{grid-column:3 / span 1}:host([data-indent='2']) .input-container{grid-column:1 / span 1}:host([data-indent='2']) ::slotted([slot='start']){grid-column:2 / span 1}:host([aria-haspopup='menu']){grid-template-columns:20px auto auto 20px}:host([data-indent='2'][aria-haspopup='menu']){grid-template-columns:20px 20px auto auto 20px}:host([aria-haspopup='menu']) ::slotted([slot='end']){grid-column:3 / span 1;justify-self:flex-end}:host([data-indent='2'][aria-haspopup='menu']) ::slotted([slot='end']){grid-column:4 / span 1;justify-self:flex-end}`,Tn=v.partial('<svg fill="currentColor" class="___12fm75w f1w7gpdv fez10in fg4l7m0" aria-hidden="true" width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M14.05 3.49c.28.3.27.77-.04 1.06l-7.93 7.47A.85.85 0 014.9 12L2.22 9.28a.75.75 0 111.06-1.06l2.24 2.27 7.47-7.04a.75.75 0 011.06.04z" fill="currentColor"></path></svg>'),mu=v.partial('<svg fill="currentColor" class="___12fm75w f1w7gpdv fez10in fg4l7m0" aria-hidden="true" width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M5.74 3.2a.75.75 0 00-.04 1.06L9.23 8 5.7 11.74a.75.75 0 101.1 1.02l4-4.25a.75.75 0 000-1.02l-4-4.25a.75.75 0 00-1.06-.04z" fill="currentColor"></path></svg>');function vu(o={}){return v`<template aria-haspopup="${t=>t.hasSubmenu?"menu":void 0}" aria-checked="${t=>t.role!==ot.menuitem?t.checked:void 0}" aria-disabled="${t=>t.disabled}" aria-expanded="${t=>t.expanded}" @keydown="${(t,e)=>t.handleMenuItemKeyDown(e.event)}" @click="${(t,e)=>t.handleMenuItemClick(e.event)}" @mouseover="${(t,e)=>t.handleMouseOver(e.event)}" @mouseout="${(t,e)=>t.handleMouseOut(e.event)}">${zi(t=>t.role===ot.menuitemcheckbox,v`<div part="input-container" class="input-container"><span part="checkbox" class="checkbox"><slot name="checkbox-indicator">${at(o.checkboxIndicator)}</slot></span></div>`)} ${zi(t=>t.role===ot.menuitemradio,v`<div part="input-container" class="input-container"><span part="radio" class="radio"><slot name="radio-indicator">${at(o.radioIndicator)}</slot></span></div>`)}</div>${Ut(o)}<span class="content" part="content"><slot></slot></span>${Gt(o)} ${zi(t=>t.hasSubmenu,v`<div part="expand-collapse-glyph-container" class="expand-collapse-glyph-container"><span part="expand-collapse" class="expand-collapse"><slot name="expand-collapse-indicator">${at(o.expandCollapseGlyph)}</slot></span></div>`)}<span ?hidden="${t=>!t.expanded}" class="submenu-container" part="submenu-container" ${$t("submenuContainer")}><slot name="submenu" ${rt({property:"slottedSubmenu",filter:ye("[role='menu']")})}></slot></span></template>`}const $u=vu({checkboxIndicator:Tn,expandCollapseGlyph:mu,radioIndicator:Tn}),yu=It.compose({name:`${b.prefix}-menu-item`,template:$u,styles:bu});yu.define(b.registry);var xu=Object.defineProperty,ku=Object.getOwnPropertyDescriptor,wu=(o,t,e,i)=>{for(var s=i>1?void 0:i?ku(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(s=(i?n(t,e,s):n(s))||s);return i&&s&&xu(t,e,s),s};const as=class us extends S{constructor(){super(...arguments),this.expandedItem=null,this.focusIndex=-1,this.isNestedMenu=()=>this.parentElement!==null&&nr(this.parentElement)&&this.parentElement.getAttribute("role")==="menuitem",this.handleFocusOut=t=>{if(!this.contains(t.relatedTarget)&&this.menuItems!==void 0){this.collapseExpandedItem();const e=this.menuItems.findIndex(this.isFocusableElement);this.menuItems[this.focusIndex].setAttribute("tabindex","-1"),this.menuItems[e].setAttribute("tabindex","0"),this.focusIndex=e}},this.handleItemFocus=t=>{const e=t.target;this.menuItems!==void 0&&e!==this.menuItems[this.focusIndex]&&(this.menuItems[this.focusIndex].setAttribute("tabindex","-1"),this.focusIndex=this.menuItems.indexOf(e),e.setAttribute("tabindex","0"))},this.handleExpandedChanged=t=>{if(t.defaultPrevented||t.target===null||this.menuItems===void 0||this.menuItems.indexOf(t.target)<0)return;t.preventDefault();const e=t.target;if(this.expandedItem!==null&&e===this.expandedItem&&e.expanded===!1){this.expandedItem=null;return}e.expanded&&(this.expandedItem!==null&&this.expandedItem!==e&&(this.expandedItem.expanded=!1),this.menuItems[this.focusIndex].setAttribute("tabindex","-1"),this.expandedItem=e,this.focusIndex=this.menuItems.indexOf(e),e.setAttribute("tabindex","0"))},this.changeHandler=t=>{if(this.menuItems===void 0)return;const e=t.target,i=this.menuItems.indexOf(e);if(i!==-1&&e.role==="menuitemradio"&&e.checked===!0){for(let r=i-1;r>=0;--r){const n=this.menuItems[r],c=n.getAttribute("role");if(c===ot.menuitemradio&&(n.checked=!1),c==="separator")break}const s=this.menuItems.length-1;for(let r=i+1;r<=s;++r){const n=this.menuItems[r],c=n.getAttribute("role");if(c===ot.menuitemradio&&(n.checked=!1),c==="separator")break}}},this.isMenuItemElement=t=>t instanceof It||nr(t)&&t.getAttribute("role")in us.focusableElementRoles,this.isFocusableElement=t=>this.isMenuItemElement(t)}itemsChanged(t,e){this.$fastController.isConnected&&this.menuItems!==void 0&&this.setItems()}connectedCallback(){super.connectedCallback(),mt.enqueue(()=>{this.setItems()}),this.addEventListener("change",this.changeHandler)}disconnectedCallback(){super.disconnectedCallback(),this.removeItemListeners(),this.menuItems=void 0,this.removeEventListener("change",this.changeHandler)}focus(){this.setFocus(0,1)}collapseExpandedItem(){this.expandedItem!==null&&(this.expandedItem.expanded=!1,this.expandedItem=null)}handleMenuKeyDown(t){if(!(t.defaultPrevented||this.menuItems===void 0))switch(t.key){case _e:this.setFocus(this.focusIndex+1,1);return;case He:this.setFocus(this.focusIndex-1,-1);return;case Oo:this.setFocus(this.menuItems.length-1,-1);return;case Ao:this.setFocus(0,1);return;default:return!0}}removeItemListeners(t=this.items){t.forEach(e=>{e.removeEventListener("focus",this.handleItemFocus),e.removeEventListener("expanded-changed",this.handleExpandedChanged),k.getNotifier(e).unsubscribe(this,"hidden")})}static elementIndent(t){const e=t.getAttribute("role"),i=t.querySelector("[slot=start]");return e&&e!==ot.menuitem?i?2:1:i?1:0}setItems(){const t=Array.from(this.children);this.removeItemListeners(t),t.forEach(r=>k.getNotifier(r).subscribe(this,"hidden"));const e=t.filter(r=>!r.hasAttribute("hidden"));this.menuItems=e;const i=this.menuItems.filter(this.isMenuItemElement);i.length&&(this.focusIndex=0),i.forEach((r,n)=>{r.setAttribute("tabindex",n===0?"0":"-1"),r.addEventListener("expanded-change",this.handleExpandedChanged),r.addEventListener("focus",this.handleItemFocus)});const s=this.menuItems?.filter(this.isMenuItemElement);s?.forEach((r,n)=>{const c=s?.reduce((h,d)=>{const l=us.elementIndent(d);return Math.max(h,l)},0);r instanceof It&&r.setAttribute("data-indent",`${c}`)})}handleChange(t,e){e==="hidden"&&this.setItems()}setFocus(t,e){if(this.menuItems!==void 0)for(;t>=0&&t<this.menuItems.length;){const i=this.menuItems[t];if(this.isFocusableElement(i)){this.focusIndex>-1&&this.menuItems.length>=this.focusIndex-1&&this.menuItems[this.focusIndex].setAttribute("tabindex","-1"),this.focusIndex=t,i.setAttribute("tabindex","0"),i.focus();break}t+=e}}};as.focusableElementRoles=ot,wu([$],as.prototype,"items",2);let Cu=as;const Su=p`
|
|
444
|
+
${z("flex")}
|
|
445
|
+
|
|
446
|
+
:host{flex-direction:column;height:fit-content;max-width:300px;min-width:160px;width:auto;background-color:${_};border:1px solid ${Ot};border-radius:${L};box-shadow:${Nr};padding:4px;row-gap:2px}`;function Iu(){return v`<template slot="${o=>o.slot?o.slot:o.isNestedMenu()?"submenu":void 0}" role="menu" @keydown="${(o,t)=>o.handleMenuKeyDown(t.event)}" @focusout="${(o,t)=>o.handleFocusOut(t.event)}"><slot ${rt("items")}></slot></template>`}const Pu=Iu(),Bu=Cu.compose({name:`${b.prefix}-menu-list`,template:Pu,styles:Su});Bu.define(b.registry);var zu=Object.defineProperty,Tu=Object.getOwnPropertyDescriptor,Fe=(o,t,e,i)=>{for(var s=i>1?void 0:i?Tu(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(s=(i?n(t,e,s):n(s))||s);return i&&s&&zu(t,e,s),s};class pe extends S{constructor(){super(...arguments),this.openOnHover=!1,this.openOnContext=!1,this.closeOnScroll=!1,this.persistOnItemClick=!1,this.open=!1,this.slottedMenuList=[],this.slottedTriggers=[],this.toggleMenu=()=>{this.open?this.closeMenu():this.openMenu()},this.closeMenu=()=>{this.open=!1,this.closeOnScroll&&document.removeEventListener("scroll",this.closeMenu)},this.openMenu=t=>{this.open=!0,t&&this.openOnContext&&t.preventDefault(),this.closeOnScroll&&document.addEventListener("scroll",this.closeMenu)},this.setPositioningTask=()=>{this.setPositioning()},this.handleTriggerKeydown=t=>{if(t.defaultPrevented)return;switch(t.key){case Eo:case Ve:t.preventDefault(),this.toggleMenu(),this.open&&this.focusMenuList();break;default:return!0}},this.handleDocumentClick=t=>{t&&!t.composedPath().includes(this._menuList)&&!t.composedPath().includes(this._trigger)&&this.closeMenu()}}connectedCallback(){super.connectedCallback(),mt.enqueue(()=>this.setComponent())}disconnectedCallback(){super.disconnectedCallback(),this.cleanup?.(),this.removeListeners()}setComponent(){this.$fastController.isConnected&&this.slottedMenuList.length&&this.slottedTriggers.length&&(this._trigger=this.slottedTriggers[0],this._menuList=this.slottedMenuList[0],this._trigger.setAttribute("aria-haspopup","true"),this._trigger.setAttribute("aria-expanded",`${this.open}`),this.addListeners())}focusMenuList(){this.open&&this._menuList&&mt.enqueue(()=>{this._menuList.focus()})}focusTrigger(){!this.open&&this._trigger&&mt.enqueue(()=>{this._trigger.focus()})}openChanged(t,e){this.$fastController.isConnected&&this._trigger instanceof HTMLElement&&(this._trigger.setAttribute("aria-expanded",`${this.open}`),this._menuList&&this.open&&mt.enqueue(this.setPositioningTask)),this.cleanup?.(),this.$emit("onOpenChange",{open:e})}openOnHoverChanged(t,e){e?this._trigger?.addEventListener("mouseover",this.openMenu):this._trigger?.removeEventListener("mouseover",this.openMenu)}persistOnItemClickChanged(t,e){e?this._menuList?.removeEventListener("click",this.closeMenu):this._menuList?.addEventListener("click",this.closeMenu)}openOnContextChanged(t,e){e?this._trigger?.addEventListener("contextmenu",this.openMenu):this._trigger?.removeEventListener("contextmenu",this.openMenu)}closeOnScrollChanged(t,e){e?document.addEventListener("scroll",this.closeMenu):document.removeEventListener("scroll",this.closeMenu)}setPositioning(){this.$fastController.isConnected&&this._menuList&&this.open&&this._trigger&&(this.cleanup=Bn(this,this.positioningContainer,async()=>{const{middlewareData:t,x:e,y:i}=await zn(this._trigger,this.positioningContainer,{placement:"bottom",strategy:"fixed",middleware:[un(),gn({apply:({availableHeight:s,rects:r})=>{this.positioningContainer?.style&&Object.assign(this.positioningContainer.style,{maxHeight:`${s}px`,width:`${r.reference.width}px`})}}),lu()]});if(t.hide?.referenceHidden){this.open=!1;return}this.positioningContainer?.style&&Object.assign(this.positioningContainer.style,{position:"fixed",top:"0",left:"0",transform:`translate(${e}px, ${i}px)`})}))}addListeners(){document.addEventListener("click",this.handleDocumentClick),this._trigger?.addEventListener("keydown",this.handleTriggerKeydown),this.persistOnItemClick||this._menuList?.addEventListener("click",this.closeMenu),this.openOnHover?this._trigger?.addEventListener("mouseover",this.openMenu):this.openOnContext?this._trigger?.addEventListener("contextmenu",this.openMenu):this._trigger?.addEventListener("click",this.toggleMenu)}removeListeners(){document.removeEventListener("click",this.handleDocumentClick),this._trigger?.removeEventListener("keydown",this.handleTriggerKeydown),this.persistOnItemClick||this._menuList?.removeEventListener("click",this.closeMenu),this.openOnHover&&this._trigger?.removeEventListener("mouseover",this.openMenu),this.openOnContext?this._trigger?.removeEventListener("contextmenu",this.openMenu):this._trigger?.removeEventListener("click",this.toggleMenu)}handleMenuKeydown(t){if(t.defaultPrevented)return;switch(t.key){case ar:t.preventDefault(),this.open&&(this.closeMenu(),this.focusTrigger());break;case $a:this.open&&this.closeMenu(),t.shiftKey&&this.focusTrigger();default:return!0}}}Fe([$,a({attribute:"open-on-hover",mode:"boolean"})],pe.prototype,"openOnHover",2),Fe([$,a({attribute:"open-on-context",mode:"boolean"})],pe.prototype,"openOnContext",2),Fe([$,a({attribute:"close-on-scroll",mode:"boolean"})],pe.prototype,"closeOnScroll",2),Fe([$,a({attribute:"persist-on-item-click",mode:"boolean"})],pe.prototype,"persistOnItemClick",2),Fe([$,a({mode:"boolean"})],pe.prototype,"open",2),Fe([$],pe.prototype,"slottedMenuList",2),Fe([$],pe.prototype,"slottedTriggers",2);const Fu=p`
|
|
447
|
+
:host{position:relative;z-index:var(--z-index-menu,1)}.positioning-container{position:fixed;top:0;left:0;transform:translate(0,0)}`;function Ou(){return v`<template ?open-on-hover="${o=>o.openOnHover}" ?open-on-context="${o=>o.openOnContext}" ?close-on-scroll="${o=>o.closeOnScroll}" ?persist-on-item-click="${o=>o.persistOnItemClick}" @keydown="${(o,t)=>o.handleMenuKeydown(t.event)}"><slot name="trigger" ${rt({property:"slottedTriggers",filter:ye()})}></slot><span ${$t("positioningContainer")} part="positioning-container" class="positioning-container" ?hidden="${o=>!o.open}"><slot ${rt({property:"slottedMenuList",filter:ye()})}></slot></span></template>`}const Au=Ou(),Eu=pe.compose({name:`${b.prefix}-menu`,template:Au,styles:Fu});Eu.define(b.registry);var Lu=Object.defineProperty,Mu=Object.getOwnPropertyDescriptor,Oe=(o,t,e,i)=>{for(var s=i>1?void 0:i?Mu(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(s=(i?n(t,e,s):n(s))||s);return i&&s&&Lu(t,e,s),s};class fe extends S{constructor(){super(),this.elementInternals=this.attachInternals(),this.validationState=null,this.elementInternals.role="progressbar"}valueChanged(t,e){this.elementInternals.ariaValueNow=typeof e=="number"?`${e}`:null}minChanged(t,e){this.elementInternals.ariaValueMin=typeof e=="number"?`${e}`:null}maxChanged(t,e){this.elementInternals.ariaValueMax=typeof e=="number"?`${e}`:null}get percentComplete(){const t=this.min??0,e=this.max??100,i=this.value??0,s=e-t;return s===0?0:Math.fround((i-t)/s*100)}}Oe([a],fe.prototype,"thickness",2),Oe([a],fe.prototype,"shape",2),Oe([a({attribute:"validation-state"})],fe.prototype,"validationState",2),Oe([a({converter:nt})],fe.prototype,"value",2),Oe([a({converter:nt})],fe.prototype,"min",2),Oe([a({converter:nt})],fe.prototype,"max",2),Oe([Gn],fe.prototype,"percentComplete",1);const _u=p`
|
|
448
|
+
${z("block")}
|
|
449
|
+
|
|
450
|
+
:host{width:100%;height:2px;overflow-x:hidden;background-color:${Ho};border-radius:${L};contain:content}:host([thickness='large']){height:4px}:host([shape='square']){border-radius:${qi}}.indicator{background-color:${Je};border-radius:inherit;height:100%}:host([value]) .indicator{transition:all 0.2s ease-in-out}:host(:not([value])) .indicator{position:relative;width:33%;background-image:linear-gradient(
|
|
451
|
+
to right,${Ho} 0%,${yt} 50%,${Ho} 100%
|
|
452
|
+
);animation-name:indeterminate;animation-duration:3s;animation-timing-function:linear;animation-iteration-count:infinite}:host([validation-state='error']) .indicator{background-color:${Cr}}:host([validation-state='warning']) .indicator{background-color:${Br}}:host([validation-state='success']) .indicator{background-color:${Pr}}@layer animations{@media (prefers-reduced-motion:no-preference){:host([value]){transition:none}:host(:not([value])) .indicator{animation-duration:0.01ms;animation-iteration-count:1}}}@keyframes indeterminate{0%{inset-inline-start:-33%}100%{inset-inline-start:100%}}`.withBehaviors(lt(p`
|
|
453
|
+
:host{background-color:CanvasText}.indicator,:host(:is([validation-state='success'],[validation-state='warning'],[validation-state='error'])) .indicator{background-color:Highlight}`));function Ru(){return v`<div class="indicator" part="indicator" style="${o=>typeof o.value=="number"?`width: ${o.percentComplete}%`:void 0}"></div>`}const Du=Ru(),Hu=fe.compose({name:`${b.prefix}-progress-bar`,template:Du,styles:_u});Hu.define(b.registry);const Fn="form-associated-proxy",On="ElementInternals",An=On in window&&"setFormValue"in window[On].prototype,En=new WeakMap;function Ln(o){const t=class extends o{constructor(...e){super(...e),this.dirtyValue=!1,this.initialValue="",this.disabled=!1,this.proxyEventsToBlock=["change","click"],this.proxyInitialized=!1,this.required=!1,this.initialValue=this.initialValue||"",this.elementInternals||(this.formResetCallback=this.formResetCallback.bind(this))}static get formAssociated(){return An}get validity(){return this.elementInternals?this.elementInternals.validity:this.proxy.validity}get form(){return this.elementInternals?this.elementInternals.form:this.proxy.form}get validationMessage(){return this.elementInternals?this.elementInternals.validationMessage:this.proxy.validationMessage}get willValidate(){return this.elementInternals?this.elementInternals.willValidate:this.proxy.willValidate}get labels(){if(this.elementInternals)return Object.freeze(Array.from(this.elementInternals.labels));if(this.proxy instanceof HTMLElement&&this.proxy.ownerDocument&&this.id){const e=this.proxy.labels,i=Array.from(this.proxy.getRootNode().querySelectorAll(`[for='${this.id}']`)),s=e?i.concat(Array.from(e)):i;return Object.freeze(s)}else return ys}valueChanged(e,i){this.dirtyValue=!0,this.proxy instanceof HTMLElement&&(this.proxy.value=this.value),this.currentValue=this.value,this.setFormValue(this.value),this.validate()}currentValueChanged(){this.value=this.currentValue}initialValueChanged(e,i){this.dirtyValue||(this.value=this.initialValue,this.dirtyValue=!1)}disabledChanged(e,i){this.proxy instanceof HTMLElement&&(this.proxy.disabled=this.disabled),mt.enqueue(()=>this.classList.toggle("disabled",this.disabled))}nameChanged(e,i){this.proxy instanceof HTMLElement&&(this.proxy.name=this.name)}requiredChanged(e,i){this.proxy instanceof HTMLElement&&(this.proxy.required=this.required),mt.enqueue(()=>this.classList.toggle("required",this.required)),this.validate()}get elementInternals(){if(!An)return null;let e=En.get(this);return e||(e=this.attachInternals(),En.set(this,e)),e}connectedCallback(){super.connectedCallback(),this.addEventListener("keypress",this._keypressHandler),this.value||(this.value=this.initialValue,this.dirtyValue=!1),this.elementInternals||(this.attachProxy(),this.form&&this.form.addEventListener("reset",this.formResetCallback))}disconnectedCallback(){this.proxyEventsToBlock.forEach(e=>this.proxy.removeEventListener(e,this.stopPropagation)),!this.elementInternals&&this.form&&this.form.removeEventListener("reset",this.formResetCallback)}checkValidity(){return this.elementInternals?this.elementInternals.checkValidity():this.proxy.checkValidity()}reportValidity(){return this.elementInternals?this.elementInternals.reportValidity():this.proxy.reportValidity()}setValidity(e,i,s){this.elementInternals?this.elementInternals.setValidity(e,i,s):typeof i=="string"&&this.proxy.setCustomValidity(i)}formDisabledCallback(e){this.disabled=e}formResetCallback(){this.value=this.initialValue,this.dirtyValue=!1}attachProxy(){this.proxyInitialized||(this.proxyInitialized=!0,this.proxy.style.display="none",this.proxyEventsToBlock.forEach(e=>this.proxy.addEventListener(e,this.stopPropagation)),this.proxy.disabled=this.disabled,this.proxy.required=this.required,typeof this.name=="string"&&(this.proxy.name=this.name),typeof this.value=="string"&&(this.proxy.value=this.value),this.proxy.setAttribute("slot",Fn),this.proxySlot=document.createElement("slot"),this.proxySlot.setAttribute("name",Fn)),this.shadowRoot?.appendChild(this.proxySlot),this.appendChild(this.proxy)}detachProxy(){this.removeChild(this.proxy),this.shadowRoot?.removeChild(this.proxySlot)}validate(e){this.proxy instanceof HTMLElement&&this.setValidity(this.proxy.validity,this.proxy.validationMessage,e)}setFormValue(e,i){this.elementInternals&&this.elementInternals.setFormValue(e,i||e)}_keypressHandler(e){switch(e.key){case Ve:this.form instanceof HTMLFormElement&&this.form.querySelector("[type=submit]")?.click();break}}stopPropagation(e){e.stopPropagation()}};return a({mode:"boolean"})(t.prototype,"disabled"),a({mode:"fromView",attribute:"value"})(t.prototype,"initialValue"),a({attribute:"current-value"})(t.prototype,"currentValue"),a(t.prototype,"name"),a({mode:"boolean"})(t.prototype,"required"),$(t.prototype,"value"),t}function Vu(o){class t extends Ln(o){}class e extends t{constructor(...s){super(s),this.dirtyChecked=!1,this.checkedAttribute=!1,this.checked=!1,this.dirtyChecked=!1}checkedAttributeChanged(){this.defaultChecked=this.checkedAttribute}defaultCheckedChanged(){this.dirtyChecked||(this.checked=this.defaultChecked,this.dirtyChecked=!1)}checkedChanged(s,r){this.dirtyChecked||(this.dirtyChecked=!0),this.currentChecked=this.checked,this.updateForm(),this.proxy instanceof HTMLInputElement&&(this.proxy.checked=this.checked),s!==void 0&&this.$emit("change"),this.validate()}currentCheckedChanged(s,r){this.checked=this.currentChecked}updateForm(){const s=this.checked?this.value:null;this.setFormValue(s,s)}connectedCallback(){super.connectedCallback(),this.updateForm()}formResetCallback(){super.formResetCallback(),this.checked=!!this.checkedAttribute,this.dirtyChecked=!1}}return a({attribute:"checked",mode:"boolean"})(e.prototype,"checkedAttribute"),a({attribute:"current-checked",converter:Ks})(e.prototype,"currentChecked"),$(e.prototype,"defaultChecked"),$(e.prototype,"checked"),e}class Nu extends S{}class ju extends Vu(Nu){constructor(){super(...arguments),this.proxy=document.createElement("input")}}var qu=Object.defineProperty,Wu=Object.getOwnPropertyDescriptor,Mn=(o,t,e,i)=>{for(var s=i>1?void 0:i?Wu(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(s=(i?n(t,e,s):n(s))||s);return i&&s&&qu(t,e,s),s};class ee extends ju{constructor(){super(),this.initialValue="on",this.proxy.setAttribute("type","radio")}get radioGroup(){return this.closest("[role=radiogroup]")}defaultCheckedChanged(){this.$fastController.isConnected&&!this.dirtyChecked&&(this.isInsideRadioGroup()||(this.checked=this.defaultChecked??!1,this.dirtyChecked=!1))}connectedCallback(){super.connectedCallback(),this.validate(),this.parentElement?.getAttribute("role")!=="radiogroup"&&this.getAttribute("tabindex")===null&&(this.disabled||this.setAttribute("tabindex","0")),this.checkedAttribute&&(this.dirtyChecked||this.isInsideRadioGroup()||(this.checked=this.defaultChecked??!1,this.dirtyChecked=!1))}isInsideRadioGroup(){return this.radioGroup!==null}keypressHandler(t){switch(t.key){case Eo:!this.checked&&!this.radioGroup?.readOnly&&(this.checked=!0);return}return!0}}Mn([$],ee.prototype,"name",2),Mn([$],ee.prototype,"defaultSlottedNodes",2);const _n=J;var Gu=Object.defineProperty,Uu=Object.getOwnPropertyDescriptor,ge=(o,t,e,i)=>{for(var s=i>1?void 0:i?Uu(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(s=(i?n(t,e,s):n(s))||s);return i&&s&&Gu(t,e,s),s};class oe extends S{constructor(){super(...arguments),this.stacked=!1,this.orientation=_n.horizontal,this.radioChangeHandler=t=>{const e=t.target;e.checked&&(this.slottedRadioButtons.forEach(i=>{i instanceof ee&&i!==e&&(i.checked=!1,this.isInsideFoundationToolbar||i.setAttribute("tabindex","-1"))}),this.selectedRadio=e,this.value=e.value,e.setAttribute("tabindex","0"),this.focusedRadio=e),t.stopPropagation()},this.moveToRadioByIndex=(t,e)=>{const i=t[e];this.isInsideToolbar||(i.setAttribute("tabindex","0"),i.checked=!0,this.selectedRadio=i),this.focusedRadio=i,i.focus()},this.moveRightOffGroup=()=>{this.nextElementSibling?.focus()},this.moveLeftOffGroup=()=>{this.previousElementSibling?.focus()},this.focusOutHandler=t=>{const e=this.slottedRadioButtons,i=t.target,s=i!==null?e.indexOf(i):0,r=this.focusedRadio?e.indexOf(this.focusedRadio):-1;return(r===0&&s===r||r===e.length-1&&r===s)&&(this.selectedRadio?(this.focusedRadio=this.selectedRadio,this.isInsideFoundationToolbar||(this.selectedRadio.setAttribute("tabindex","0"),e.forEach(n=>{n!==this.selectedRadio&&n.setAttribute("tabindex","-1")}))):(this.focusedRadio=e[0],this.focusedRadio.setAttribute("tabindex","0"),e.forEach(n=>{i instanceof ee&&n!==this.focusedRadio&&n.setAttribute("tabindex","-1")}))),!0},this.handleDisabledClick=t=>{if(this.disabled){t.preventDefault();return}return!0},this.clickHandler=t=>{if(this.disabled)return;t.preventDefault();const e=t.target;e&&e instanceof ee&&(e.checked=!0,e.setAttribute("tabindex","0"),this.selectedRadio=e,this.focusedRadio=e)},this.shouldMoveOffGroupToTheRight=(t,e,i)=>t===e.length&&this.isInsideToolbar&&i===De,this.shouldMoveOffGroupToTheLeft=(t,e)=>(this.focusedRadio?t.indexOf(this.focusedRadio)-1:0)<0&&this.isInsideToolbar&&e===Re,this.checkFocusedRadio=()=>{this.focusedRadio!==null&&!this.focusedRadio.checked&&(this.focusedRadio.checked=!0,this.focusedRadio.setAttribute("tabindex","0"),this.focusedRadio.focus(),this.selectedRadio=this.focusedRadio)},this.moveRight=t=>{const e=this.slottedRadioButtons;let i=0;if(i=this.focusedRadio?e.indexOf(this.focusedRadio)+1:1,this.shouldMoveOffGroupToTheRight(i,e,t.key)){this.moveRightOffGroup();return}else i===e.length&&(i=0);for(;i<e.length&&e.length>1;)if(e[i].disabled){if(this.focusedRadio&&i===e.indexOf(this.focusedRadio))break;if(i+1>=e.length){if(this.isInsideToolbar)break;i=0}else i+=1}else{this.moveToRadioByIndex(e,i);break}},this.moveLeft=t=>{const e=this.slottedRadioButtons;let i=0;if(i=this.focusedRadio?e.indexOf(this.focusedRadio)-1:0,i=i<0?e.length-1:i,this.shouldMoveOffGroupToTheLeft(e,t.key)){this.moveLeftOffGroup();return}for(;i>=0&&e.length>1;)if(e[i].disabled){if(this.focusedRadio&&i===e.indexOf(this.focusedRadio))break;i-1<0?i=e.length-1:i-=1}else{this.moveToRadioByIndex(e,i);break}},this.keydownHandler=t=>{const e=t.key;if(e in ya&&(this.isInsideFoundationToolbar||this.disabled))return!0;switch(e){case Ve:{this.checkFocusedRadio();break}case De:case _e:{this.direction===gt.ltr?this.moveRight(t):this.moveLeft(t);break}case Re:case He:{this.direction===gt.ltr?this.moveLeft(t):this.moveRight(t);break}default:return!0}}}nameChanged(){this.slottedRadioButtons&&this.slottedRadioButtons.forEach(t=>{t.setAttribute("name",this.name)})}valueChanged(){this.slottedRadioButtons&&this.slottedRadioButtons.forEach(t=>{t instanceof ee&&t.value===this.value&&(t.checked=!0,this.selectedRadio=t)}),this.$emit("change")}slottedRadioButtonsChanged(t,e){this.slottedRadioButtons&&this.slottedRadioButtons.length>0&&this.setupRadioButtons()}get parentToolbar(){return this.closest('[role="toolbar"]')}get isInsideToolbar(){return this.parentToolbar??!1}get isInsideFoundationToolbar(){return!!this.parentToolbar?.hasOwnProperty("$fastController")}connectedCallback(){super.connectedCallback(),this.direction=lr(this),this.setupRadioButtons()}disconnectedCallback(){this.slottedRadioButtons.forEach(t=>{t instanceof ee&&t.removeEventListener("change",this.radioChangeHandler)})}setupRadioButtons(){const t=this.slottedRadioButtons.filter(s=>s.hasAttribute("checked")),e=t?t.length:0;if(e>1){const s=t[e-1];s.checked=!0}let i=!1;if(this.slottedRadioButtons.forEach(s=>{s instanceof ee&&(this.name!==void 0&&s.setAttribute("name",this.name),this.value&&this.value===s.value?(this.selectedRadio=s,this.focusedRadio=s,s.checked=!0,s.setAttribute("tabindex","0"),i=!0):(this.isInsideFoundationToolbar||s.setAttribute("tabindex","-1"),s.checked=!1),s.addEventListener("change",this.radioChangeHandler))}),this.value===void 0&&this.slottedRadioButtons.length>0){const s=this.slottedRadioButtons.filter(n=>n.hasAttribute("checked")),r=s!==null?s.length:0;if(r>0&&!i){const n=s[r-1];n.checked=!0,this.focusedRadio=n,n.setAttribute("tabindex","0")}else this.slottedRadioButtons[0].setAttribute("tabindex","0"),this.focusedRadio=this.slottedRadioButtons[0]}}}ge([a({mode:"boolean"})],oe.prototype,"stacked",2),ge([a({attribute:"readonly",mode:"boolean"})],oe.prototype,"readOnly",2),ge([a({attribute:"disabled",mode:"boolean"})],oe.prototype,"disabled",2),ge([a],oe.prototype,"name",2),ge([a],oe.prototype,"value",2),ge([a],oe.prototype,"orientation",2),ge([$],oe.prototype,"childItems",2),ge([$],oe.prototype,"slottedRadioButtons",2);const Xu=p`
|
|
454
|
+
${z("flex")}
|
|
455
|
+
|
|
456
|
+
:host{align-items:flex-start;flex-direction:column;row-gap:${U}}:host([disabled]) ::slotted([role='radio']){--control-border-color:${C};--checked-indicator-background-color:${C};--state-color:${C}}::slotted([slot='label']){color:${M};padding:${U} ${At} ${U} ${Jt};font:${A} ${O} / ${R} ${y};cursor:default}.positioning-region{display:flex;flex-wrap:wrap}:host([orientation='vertical']) .positioning-region{flex-direction:column;justify-content:flex-start}:host([orientation='horizontal']) .positioning-region{flex-direction:row}:host([orientation='horizontal']) ::slotted([role='radio']){padding-inline-end:${At}}:host([orientation='horizontal'][stacked]) ::slotted([role='radio']){display:flex;flex-direction:column;padding-inline:${At};height:auto;align-items:center;justify-content:center}:host([disabled]) ::slotted([role='radio']){pointer-events:none}`;function Ku(){return v`<template role="radiogroup" tabindex="${o=>o.disabled?-1:void 0}" aria-disabled="${o=>o.disabled}" aria-readonly="${o=>o.readOnly}" aria-orientation="${o=>o.orientation}" @click="${(o,t)=>o.clickHandler(t.event)}" @mousedown="${(o,t)=>o.handleDisabledClick(t.event)}" @keydown="${(o,t)=>o.keydownHandler(t.event)}" @focusout="${(o,t)=>o.focusOutHandler(t.event)}"><slot name="label"></slot><div class="positioning-region ${o=>o.orientation===_n.horizontal?"horizontal":"vertical"}" part="positioning-region"><slot ${rt({property:"slottedRadioButtons",filter:ye("[role=radio]")})}></slot></div></template>`}const Yu=Ku(),Qu=oe.compose({name:`${b.prefix}-radio-group`,template:Yu,styles:Xu});Qu.define(b.registry);const Zu=p`
|
|
457
|
+
${z("inline-grid")}
|
|
458
|
+
|
|
459
|
+
:host{grid-auto-flow:column;grid-template-columns:max-content;gap:${Jt};align-items:center;height:32px;cursor:pointer;outline:none;position:relative;user-select:none;color:blue;color:var(--state-color,${et});padding-inline-end:${At};--control-border-color:${Yt};--checked-indicator-background-color:${hr};--state-color:${et}}:host([disabled]){--control-border-color:${C};--checked-indicator-background-color:${C};--state-color:${C}}.label{cursor:pointer;font-family:${y};font-size:${O};font-weight:${A};line-height:${R}}.label__hidden{display:none}.control{box-sizing:border-box;align-items:center;border:1px solid var(--control-border-color,${Yt});border-radius:${ct};display:flex;height:16px;justify-content:center;margin:${U} ${At};position:relative;width:16px;justify-self:center}.checked-indicator{border-radius:${ct};height:10px;opacity:0;width:10px}:host([aria-checked='false']:hover) .control{color:${Ft}}:host(:focus-visible){border-radius:${xt};box-shadow:0 0 0 3px ${Zt};outline:1px solid ${jo}}:host(:hover) .control{border-color:${oo}}:host(:active) .control{border-color:${io}}:host([aria-checked='true']) .checked-indicator{opacity:1}:host([aria-checked='true']) .control{border-color:var(--control-border-color,${Yt})}:host([aria-checked='true']) .checked-indicator{background-color:var(--checked-indicator-background-color,${hr})}:host([aria-checked='true']:hover) .control{border-color:${Vi}}:host([aria-checked='true']:hover) .checked-indicator{background-color:${Vi}}:host([aria-checked='true']:active) .control{border-color:${Ni}}:host([aria-checked='true']:active) .checked-indicator{background:${pr}}:host([disabled]){color:${C};pointer-events:none}:host([disabled]) .control{pointer-events:none;border-color:${C}}:host([disabled]) .checked-indicator{background:${C}}`.withBehaviors(lt(p`
|
|
460
|
+
:host .control{border-color:InactiveBorder}:host([aria-checked='true']) .checked-indicator,:host([aria-checked='true']:active) .checked-indicator,:host([aria-checked='true']:hover) .checked-indicator{background-color:Highlight;border-color:ActiveBorder}`));function Ju(o={}){return v`<template role="radio" aria-checked="${t=>t.checked}" aria-required="${t=>t.required}" aria-disabled="${t=>t.disabled}" @keypress="${(t,e)=>t.keypressHandler(e.event)}"><div part="control" class="control"><slot name="checked-indicator">${at(o.checkedIndicator)}</slot></div><label part="label" class="${t=>["label",!t.defaultSlottedNodes?.length&&"label__hidden"].filter(Boolean).join(" ")}"><slot ${rt({property:"defaultSlottedNodes",filter:cr})}></slot></label></template>`}const tp=Ju({checkedIndicator:v`<div part="checked-indicator" class="checked-indicator"></div>`}),ep=ee.compose({name:`${b.prefix}-radio`,template:tp,styles:Zu});ep.define(b.registry);const op={singleValue:"single-value"};class ip extends S{}class sp extends Ln(ip){constructor(){super(...arguments),this.proxy=document.createElement("input")}}function Rn(o,t,e,i){let s=Fi(0,1,(o-t)/(e-t));return i===gt.rtl&&(s=1-s),s}var rp=Object.defineProperty,np=Object.getOwnPropertyDescriptor,X=(o,t,e,i)=>{for(var s=i>1?void 0:i?np(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(s=(i?n(t,e,s):n(s))||s);return i&&s&&rp(t,e,s),s};class q extends sp{constructor(){super(...arguments),this.direction=gt.ltr,this.isDragging=!1,this.trackWidth=0,this.trackMinWidth=0,this.trackHeight=0,this.trackLeft=0,this.trackMinHeight=0,this.valueTextFormatter=()=>null,this.min=0,this.max=10,this.orientation=J.horizontal,this.mode=op.singleValue,this.keypressHandler=t=>{if(!(this.readOnly||this.disabled)){if(t.key===Ao)t.preventDefault(),this.direction!==gt.rtl&&this.orientation!==J.vertical?this.value=`${this.min}`:this.value=`${this.max}`;else if(t.key===Oo)t.preventDefault(),this.direction!==gt.rtl&&this.orientation!==J.vertical?this.value=`${this.max}`:this.value=`${this.min}`;else if(!t.shiftKey)switch(t.key){case De:case He:t.preventDefault(),this.increment();break;case Re:case _e:t.preventDefault(),this.decrement();break}}},this.setupTrackConstraints=()=>{const t=this.track.getBoundingClientRect();this.trackWidth=this.track.clientWidth,this.trackMinWidth=this.track.clientLeft,this.trackHeight=t.top,this.trackMinHeight=t.bottom,this.trackLeft=this.getBoundingClientRect().left,this.trackWidth===0&&(this.trackWidth=1)},this.setupListeners=(t=!1)=>{this.addEventListener("keydown",this.keypressHandler),this.addEventListener("mousedown",this.handleMouseDown),t&&(this.removeEventListener("keydown",this.keypressHandler),this.removeEventListener("mousedown",this.handleMouseDown))},this.initialValue="",this.handleThumbMouseDown=t=>{const e=t!==null?window.addEventListener:window.removeEventListener;e("mouseup",this.handleWindowMouseUp),e("mousemove",this.handleMouseMove,{passive:!0}),e("touchmove",this.handleMouseMove,{passive:!0}),e("touchend",this.handleWindowMouseUp),this.isDragging=t!==null},this.handleMouseMove=t=>{if(this.readOnly||this.disabled||t.defaultPrevented)return;const e=window.TouchEvent&&t instanceof TouchEvent?t.touches[0]:t,i=this.orientation===J.horizontal?e.pageX-document.documentElement.scrollLeft-this.trackLeft:e.pageY-document.documentElement.scrollTop;this.value=`${this.calculateNewValue(i)}`},this.handleWindowMouseUp=t=>{this.stopDragging()},this.stopDragging=()=>{this.isDragging=!1,this.handleMouseDown(null),this.handleThumbMouseDown(null)},this.handleMouseDown=t=>{if(t===null||!this.disabled&&!this.readOnly){const e=t!==null?window.addEventListener:window.removeEventListener,i=t!==null?document.addEventListener:document.removeEventListener;if(e("mouseup",this.handleWindowMouseUp),i("mouseleave",this.handleWindowMouseUp),e("mousemove",this.handleMouseMove),t){this.setupTrackConstraints();const s=this.orientation===J.horizontal?t.pageX-document.documentElement.scrollLeft-this.trackLeft:t.pageY-document.documentElement.scrollTop;this.value=`${this.calculateNewValue(s)}`}}}}handleChange(t,e){switch(e){case"min":case"max":case"step":this.handleStepStyles();break}}handleStepStyles(){if(this.step){const t=100/Math.floor((this.max-this.min)/this.step);this.stepStyles!==void 0&&this.$fastController.removeStyles(this.stepStyles),this.stepStyles=p`
|
|
461
|
+
:host{--step-rate:${t}%;color:blue}`,this.$fastController.addStyles(this.stepStyles)}else this.stepStyles!==void 0&&this.$fastController.removeStyles(this.stepStyles)}readOnlyChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.readOnly=this.readOnly)}get valueAsNumber(){return parseFloat(super.value)}set valueAsNumber(t){this.value=t.toString()}valueChanged(t,e){if(this.$fastController.isConnected){const i=parseFloat(e),s=Fi(this.min,this.max,this.convertToConstrainedValue(i)).toString();if(s!==e){this.value=s;return}super.valueChanged(t,e),this.setThumbPositionForOrientation(this.direction),this.$emit("change")}}minChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.min=`${this.min}`),this.validate()}maxChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.max=`${this.max}`),this.validate()}stepChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.step=`${this.step}`),this.updateStepMultiplier(),this.validate()}orientationChanged(){this.$fastController.isConnected&&this.setThumbPositionForOrientation(this.direction)}connectedCallback(){super.connectedCallback(),this.proxy.setAttribute("type","range"),this.direction=lr(this),this.updateStepMultiplier(),this.setupTrackConstraints(),this.setupListeners(),this.setupDefaultValue(),this.setThumbPositionForOrientation(this.direction),k.getNotifier(this).subscribe(this,"max"),k.getNotifier(this).subscribe(this,"min"),k.getNotifier(this).subscribe(this,"step"),this.handleStepStyles()}disconnectedCallback(){super.disconnectedCallback(),this.setupListeners(!0),k.getNotifier(this).unsubscribe(this,"max"),k.getNotifier(this).unsubscribe(this,"min"),k.getNotifier(this).unsubscribe(this,"step")}increment(){const t=this.direction!==gt.rtl&&this.orientation!==J.vertical?Number(this.value)+Number(this.stepValue):Number(this.value)+Number(this.stepValue),e=this.convertToConstrainedValue(t),i=e<Number(this.max)?`${e}`:`${this.max}`;this.value=i}decrement(){const t=this.direction!==gt.rtl&&this.orientation!==J.vertical?Number(this.value)-Number(this.stepValue):Number(this.value)-Number(this.stepValue),e=this.convertToConstrainedValue(t),i=e>Number(this.min)?`${e}`:`${this.min}`;this.value=i}get stepValue(){return this.step===void 0?1:this.step}setThumbPositionForOrientation(t){const i=(1-Rn(Number(this.value),Number(this.min),Number(this.max),t))*100;this.orientation===J.horizontal?this.position=this.isDragging?`right: ${i}%; transition: none;`:`right: ${i}%; transition: all 0.2s ease;`:this.position=this.isDragging?`top: ${i}%; transition: none;`:`top: ${i}%; transition: all 0.2s ease;`}updateStepMultiplier(){const t=this.stepValue+"",e=this.stepValue%1?t.length-t.indexOf(".")-1:0;this.stepMultiplier=Math.pow(10,e)}get midpoint(){return`${this.convertToConstrainedValue((this.max+this.min)/2)}`}setupDefaultValue(){if(typeof this.value=="string")if(this.value.length===0)this.initialValue=this.midpoint;else{const t=parseFloat(this.value);!Number.isNaN(t)&&(t<this.min||t>this.max)&&(this.value=this.midpoint)}}calculateNewValue(t){this.setupTrackConstraints();const e=Rn(t,this.orientation===J.horizontal?this.trackMinWidth:this.trackMinHeight,this.orientation===J.horizontal?this.trackWidth:this.trackHeight,this.direction),i=(this.max-this.min)*e+this.min;return this.convertToConstrainedValue(i)}convertToConstrainedValue(t){isNaN(t)&&(t=this.min);let e=t-this.min;const i=Math.round(e/this.stepValue),s=e-i*(this.stepMultiplier*this.stepValue)/this.stepMultiplier;return e=s>=Number(this.stepValue)/2?e-s+Number(this.stepValue):e-s,e+this.min}}X([a],q.prototype,"size",2),X([a({attribute:"readonly",mode:"boolean"})],q.prototype,"readOnly",2),X([$],q.prototype,"direction",2),X([$],q.prototype,"isDragging",2),X([$],q.prototype,"position",2),X([$],q.prototype,"trackWidth",2),X([$],q.prototype,"trackMinWidth",2),X([$],q.prototype,"trackHeight",2),X([$],q.prototype,"trackLeft",2),X([$],q.prototype,"trackMinHeight",2),X([$],q.prototype,"valueTextFormatter",2),X([a({converter:nt})],q.prototype,"min",2),X([a({converter:nt})],q.prototype,"max",2),X([a({converter:nt})],q.prototype,"step",2),X([a],q.prototype,"orientation",2),X([a],q.prototype,"mode",2);const ap=p`
|
|
462
|
+
${z("inline-grid")} :host{--thumb-size:18px;--thumb-padding:3px;--thumb-translate:calc(var(--thumb-size) * -0.5 + var(--track-width) / 2);--track-overhang:-2px;--track-width:4px;--fast-slider-height:calc(var(--thumb-size) * 10);--slider-direction:90deg;align-items:center;box-sizing:border-box;outline:none;cursor:pointer;user-select:none;border-radius:${xt};touch-action:pan-y;min-width:calc(var(--thumb-size) * 1px);width:100%}:host([size='small']){--thumb-size:14px;--track-width:2px;--thumb-padding:3px}:host([orientation='vertical']){--slider-direction:0deg;height:160px;min-height:var(--thumb-size);touch-action:pan-x;padding:8px 0;width:auto;min-width:auto}:host([disabled]:hover){cursor:initial}:host(:focus-visible){box-shadow:0 0 0 2pt ${Zt};outline:1px solid ${jo}}.thumb-cursor:focus{outline:0}.thumb-container{position:absolute;height:var(--thumb-size);width:var(--thumb-size);transition:all 0.2s ease}.thumb-container{transform:translateX(calc(var(--thumb-size) * 0.5)) translateY(calc(var(--thumb-translate) * -1.5))}:host([size='small']) .thumb-container{transform:translateX(calc(var(--thumb-size) * 0.5)) translateY(calc(var(--thumb-translate) * -1.35))}:host([orientation='vertical']) .thumb-container{transform:translateX(calc(var(--thumb-translate) * -1.5)) translateY(calc(var(--thumb-size) * -0.5))}:host([orientation='vertical'][size='small']) .thumb-container{transform:translateX(calc(var(--thumb-translate) * -1.35)) translateY(calc(var(--thumb-size) * -0.5))}.thumb-cursor{height:var(--thumb-size);width:var(--thumb-size);background-color:${Ri};border-radius:${ct};box-shadow:inset 0 0 0 var(--thumb-padding) ${_},0 0 0 1px ${Ne}}.thumb-cursor:hover{background-color:${to}}.thumb-cursor:active{background-color:${eo}}:host([disabled]) .thumb-cursor{background-color:${C};box-shadow:inset 0 0 0 var(--thumb-padding) ${_},0 0 0 1px ${Qt}}.positioning-region{position:relative;display:grid}:host([orientation='horizontal']) .positioning-region{margin:0 8px;grid-template-rows:var(--thumb-size) var(--thumb-size)}:host([orientation='vertical']) .positioning-region{margin:8px 0;height:100%;grid-template-columns:var(--thumb-size) var(--thumb-size)}.track{align-self:start;position:absolute;background-color:${Yt};border-radius:${L};overflow:hidden}:host([step]) .track::after{content:'';position:absolute;border-radius:${L};width:100%;inset:0 2px;background-image:repeating-linear-gradient(
|
|
463
|
+
var(--slider-direction),#0000 0%,#0000 calc(var(--step-rate) - 1px),${_} calc(var(--step-rate) - 1px),${_} var(--step-rate)
|
|
464
|
+
)}:host([orientation='vertical'][step]) .track::after{inset:-2px 0}:host([disabled]) .track{background-color:${Ze}}:host([orientation='horizontal']) .track{right:var(--track-overhang);left:var(--track-overhang);align-self:start;height:var(--track-width);grid-row:2 / auto}:host([orientation='vertical']) .track{top:var(--track-overhang);bottom:var(--track-overhang);width:var(--track-width);height:100%;grid-column:2 / auto}.track-start{background-color:${Je};position:absolute;height:100%;left:0;border-radius:${L}}:host([disabled]) .track-start{background-color:${C}}:host(:hover) .track-start{background-color:${to}}:host([disabled]:hover) .track-start{background-color:${C}}.track-start:active{background-color:${eo}}:host([orientation='vertical']) .track-start{height:auto;width:100%;bottom:0}`.withBehaviors(lt(p`
|
|
465
|
+
.track:hover,.track:active,.track{background:WindowText}.thumb-cursor:hover,.thumb-cursor:active,.thumb-cursor{background:ButtonText}:host(:hover) .track-start,.track-start:active,.track-start{background:Highlight}`));function lp(o={}){return v`<template role="slider" tabindex="${t=>t.disabled?null:0}" aria-valuetext="${t=>t.valueTextFormatter(t.value)}" aria-valuenow="${t=>t.value}" aria-valuemin="${t=>t.min}" aria-valuemax="${t=>t.max}" aria-disabled="${t=>t.disabled?!0:void 0}" aria-readonly="${t=>t.readOnly?!0:void 0}" aria-orientation="${t=>t.orientation}" class="${t=>t.orientation}"><div part="positioning-region" class="positioning-region"><div ${$t("track")} part="track-container" class="track"><slot name="track"></slot><div part="track-start" class="track-start" style="${t=>t.position}"><slot name="track-start"></slot></div></div><slot></slot><div ${$t("thumb")} part="thumb-container" class="thumb-container" style="${t=>t.position}" @mousedown="${(t,e)=>t.handleThumbMouseDown(e.event)}" @touchstart="${(t,e)=>t.handleThumbMouseDown(e.event)}"><slot name="thumb">${at(o.thumb)}</slot></div></div></template>`}const cp=lp({thumb:'<div class="thumb-cursor"></div>'}),dp=q.compose({name:`${b.prefix}-slider`,template:cp,styles:ap});dp.define(b.registry);var hp=Object.defineProperty,up=Object.getOwnPropertyDescriptor,Dn=(o,t,e,i)=>{for(var s=i>1?void 0:i?up(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(s=(i?n(t,e,s):n(s))||s);return i&&s&&hp(t,e,s),s};class ls extends S{constructor(){super(),this.elementInternals=this.attachInternals(),this.elementInternals.role="progressbar"}}Dn([a],ls.prototype,"size",2),Dn([a],ls.prototype,"appearance",2);const pp=p`
|
|
466
|
+
${z("flex")}
|
|
467
|
+
|
|
468
|
+
:host{display:flex;align-items:center;height:32px;width:32px;contain:content}:host([size='tiny']){height:20px;width:20px}:host([size='extra-small']){height:24px;width:24px}:host([size='small']){height:28px;width:28px}:host([size='large']){height:36px;width:36px}:host([size='extra-large']){height:40px;width:40px}:host([size='huge']){height:44px;width:44px}.progress{height:100%;width:100%}.background{fill:none;stroke:${kr};stroke-width:1.5px}:host([appearance='inverted']) .background{stroke:rgba(255,255,255,0.2)}.indicator{stroke:${xr};fill:none;stroke-width:1.5px;stroke-linecap:round;transform-origin:50% 50%;transform:rotate(-90deg);transition:all 0.2s ease-in-out;animation:spin-infinite 3s cubic-bezier(0.53,0.21,0.29,0.67) infinite}:host([appearance='inverted']) .indicator{stroke:${el}}@keyframes spin-infinite{0%{stroke-dasharray:0.01px 43.97px;transform:rotate(0deg)}50%{stroke-dasharray:21.99px 21.99px;transform:rotate(450deg)}100%{stroke-dasharray:0.01px 43.97px;transform:rotate(1080deg)}}`,fp=v`<slot name="indicator"><svg class="progress" part="progress" viewBox="0 0 16 16"><circle class="background" cx="8px" cy="8px" r="7px"></circle><circle class="indicator" cx="8px" cy="8px" r="7px"></circle></svg></slot>`,gp=ls.compose({name:`${b.prefix}-spinner`,template:fp,styles:pp});gp.define(b.registry);class bp extends wt{}function mp(o={}){return v`<template tabindex="${t=>t.disabled?void 0:0}" @click="${(t,e)=>t.clickHandler(e.event)}" @input="${(t,e)=>t.inputHandler(e.event)}" @keydown="${(t,e)=>t.keydownHandler(e.event)}" @keyup="${(t,e)=>t.keyupHandler(e.event)}"><slot name="switch">${at(o.switch)}</slot></template>`}const vp=mp({switch:'<span class="checked-indicator" part="checked-indicator"></span>'}),it=p.partial`:is([state--checked], :state(checked))`,$p=p`
|
|
469
|
+
${z("inline-flex")}
|
|
470
|
+
|
|
471
|
+
:host{box-sizing:border-box;align-items:center;flex-direction:row;outline:none;user-select:none;contain:content;padding:0 ${Ce};width:40px;height:20px;background-color:${yt};border:1px solid ${Yt};border-radius:${ct};cursor:pointer}:host(:hover){background:none;border-color:${oo}}:host(:active){border-color:${io}}:host(:disabled),:host([readonly]){border:1px solid ${Qt};background-color:none;pointer:default}:host(${it}){background:${Je};border-color:${Je}}:host(${it}:hover){background:${to};border-color:${to}}:host(${it}:active){background:${eo};border-color:${eo}}:host(${it}:disabled){background:${Ze};border-color:${Qt}}.checked-indicator{height:14px;width:14px;border-radius:50%;margin-inline-start:0;background-color:${et};transition-duration:${Gr};transition-timing-function:${Xi};transition-property:margin-inline-start}:host(${it}) .checked-indicator{background-color:${Do};margin-inline-start:calc(100% - 14px)}:host(${it}:hover) .checked-indicator{background:${Va}}:host(${it}:active) .checked-indicator{background:${Na}}:host(:hover) .checked-indicator{background-color:${Oa}}:host(:active) .checked-indicator{background-color:${Aa}}:host(:disabled) .checked-indicator,:host([readonly]) .checked-indicator{background:${C}}:host(${it}:disabled) .checked-indicator{background:${C}}:host(:focus-visible){outline:none}:host(:not([slot='input']):focus-visible){border-color:${Ot};outline:${we} solid ${Ot};box-shadow:${Xo},0 0 0 2px ${Zt}}`.withBehaviors(lt(p`
|
|
472
|
+
:host{border-color:InactiveBorder}:host(${it}),:host(${it}:active),:host(${it}:hover){background:Highlight;border-color:Highlight}.checked-indicator,:host(:hover) .checked-indicator,:host(:active) .checked-indicator{background-color:ActiveCaption}:host(${it}) .checked-indicator,:host(${it}:hover) .checked-indicator,:host(${it}:active) .checked-indicator{background-color:ButtonFace}`)),yp=bp.compose({name:`${b.prefix}-switch`,template:vp,styles:$p});yp.define(b.registry);class xp extends S{}function kp(){return v`<template slot="tabpanel" role="tabpanel"><slot></slot></template>`}const wp=kp(),Cp=p`
|
|
473
|
+
${z("block")}
|
|
474
|
+
|
|
475
|
+
:host{box-sizing:border-box;padding:${ae} ${te}}`,Sp=xp.compose({name:`${b.prefix}-tab-panel`,template:wp,styles:Cp});Sp.define(b.registry);var Ip=Object.defineProperty,Pp=Object.getOwnPropertyDescriptor,Bp=(o,t,e,i)=>{for(var s=i>1?void 0:i?Pp(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(s=(i?n(t,e,s):n(s))||s);return i&&s&&Ip(t,e,s),s};class cs extends S{connectedCallback(){super.connectedCallback(),this.styles!==void 0&&this.$fastController.removeStyles(this.styles),this.styles=p`
|
|
476
|
+
:host{--textContent:'${this.textContent}'}`,this.$fastController.addStyles(this.styles)}}Bp([a({mode:"boolean"})],cs.prototype,"disabled",2),Xt(cs,Wt);function zp(o={}){return v`<template slot="tab" role="tab" aria-disabled="${t=>t.disabled}">${Ut(o)}<span class="tab-content"><slot></slot></span>${Gt(o)}</template>`}const Tp=zp({}),Fp=p`
|
|
477
|
+
${z("inline-flex")}
|
|
478
|
+
|
|
479
|
+
:host{position:relative;flex-direction:column;cursor:pointer;box-sizing:border-box;justify-content:center;line-height:${R};font-family:${y};font-size:${O};color:${Ft};fill:currentcolor;grid-row:1;padding:${ae} ${te};border-radius:${L}}:host .tab-content{display:inline-flex;flex-direction:column;padding:0 2px}:host([aria-selected='true']){color:${M};font-weight:${N}}:host .tab-content::after{content:var(--textContent);visibility:hidden;height:0;line-height:${R};font-weight:${N}}:host([aria-selected='true'])::after{background-color:${Hi};border-radius:${ct};content:'';inset:0;position:absolute;z-index:2}:host([aria-selected='false']:hover)::after{background-color:${No};border-radius:${ct};content:'';inset:0;position:absolute;z-index:1}:host([aria-selected='true'][disabled])::after{background-color:${C}}::slotted([slot='start']),::slotted([slot='end']){display:flex}::slotted([slot='start']){margin-inline-end:11px}::slotted([slot='end']){margin-inline-start:11px}:host([disabled]){cursor:not-allowed;fill:${C};color:${C}}:host([disabled]:hover)::after{background-color:unset}:host(:focus){outline:none}:host(:focus-visible){border-radius:${xt};box-shadow:0 0 0 3px ${Zt};outline:1px solid ${jo}}`.withBehaviors(lt(p`
|
|
480
|
+
:host([aria-selected='true'])::after{background-color:Highlight}`)),Op=cs.compose({name:`${b.prefix}-tab`,template:Tp,styles:Fp});Op.define(b.registry);const Ap={subtle:"subtle",transparent:"transparent"},hi=J;var Ep=Object.defineProperty,Lp=Object.getOwnPropertyDescriptor,Ae=(o,t,e,i)=>{for(var s=i>1?void 0:i?Lp(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(s=(i?n(t,e,s):n(s))||s);return i&&s&&Ep(t,e,s),s};class vo extends S{constructor(){super(...arguments),this.orientation=hi.horizontal,this.prevActiveTabIndex=0,this.activeTabIndex=0,this.change=()=>{this.$emit("change",this.activetab)},this.isDisabledElement=t=>t.getAttribute("aria-disabled")==="true",this.isHiddenElement=t=>t.hasAttribute("hidden"),this.isFocusableElement=t=>!this.isDisabledElement(t)&&!this.isHiddenElement(t),this.handleTabClick=t=>{const e=t.currentTarget;e.nodeType===1&&this.isFocusableElement(e)&&(this.prevActiveTabIndex=this.activeTabIndex,this.activeTabIndex=this.tabs.indexOf(e),this.setComponent())},this.handleTabKeyDown=t=>{if(this.isHorizontal())switch(t.key){case Re:t.preventDefault(),this.adjustBackward(t);break;case De:t.preventDefault(),this.adjustForward(t);break}else switch(t.key){case He:t.preventDefault(),this.adjustBackward(t);break;case _e:t.preventDefault(),this.adjustForward(t);break}switch(t.key){case Ao:t.preventDefault(),this.adjust(-this.activeTabIndex);break;case Oo:t.preventDefault(),this.adjust(this.tabs.length-this.activeTabIndex-1);break}}}orientationChanged(){this.$fastController.isConnected&&this.setTabs()}activeidChanged(t,e){this.$fastController.isConnected&&this.tabs.length<=this.tabpanels.length&&(this.prevActiveTabIndex=this.tabs.findIndex(i=>i.id===t),this.setTabs())}tabsChanged(){this.$fastController.isConnected&&this.tabs.length<=this.tabpanels.length&&(this.tabIds=this.getTabIds(),this.tabpanelIds=this.getTabPanelIds(),this.setTabs())}tabpanelsChanged(){this.$fastController.isConnected&&this.tabpanels.length<=this.tabs.length&&(this.tabIds=this.getTabIds(),this.tabpanelIds=this.getTabPanelIds(),this.setTabs())}getActiveIndex(){return this.activeid!==void 0?this.tabIds.indexOf(this.activeid)===-1?0:this.tabIds.indexOf(this.activeid):0}setTabs(){const t="gridColumn",e="gridRow",i=this.isHorizontal()?t:e;this.activeTabIndex=this.getActiveIndex(),this.tabs.forEach((s,r)=>{if(s.slot==="tab"){const n=this.activeTabIndex===r&&this.isFocusableElement(s),c=this.tabIds[r],h=this.tabpanelIds[r];s.setAttribute("id",c),s.setAttribute("aria-selected",n?"true":"false"),s.setAttribute("aria-controls",h),s.addEventListener("click",this.handleTabClick),s.addEventListener("keydown",this.handleTabKeyDown),s.setAttribute("tabindex",n?"0":"-1"),n&&(this.activetab=s,this.activeid=c)}s.style[t]="",s.style[e]="",s.style[i]=`${r+1}`,this.isHorizontal()?s.classList.remove("vertical"):s.classList.add("vertical")}),this.setTabPanels()}setTabPanels(){this.tabpanels.forEach((t,e)=>{const i=this.tabIds[e],s=this.tabpanelIds[e];t.setAttribute("id",s),t.setAttribute("aria-labelledby",i),this.activeTabIndex!==e?t.setAttribute("hidden",""):t.removeAttribute("hidden")})}getTabIds(){return this.tabs.map(t=>t.getAttribute("id")??`tab-${Oi()}`)}getTabPanelIds(){return this.tabpanels.map(t=>t.getAttribute("id")??`panel-${Oi()}`)}setComponent(){this.activeTabIndex!==this.prevActiveTabIndex&&(this.activeid=this.tabIds[this.activeTabIndex],this.focusTab(),this.change())}isHorizontal(){return this.orientation===hi.horizontal}adjust(t){const e=this.tabs.filter(n=>this.isFocusableElement(n)),i=e.indexOf(this.activetab),s=Fi(0,e.length-1,i+t),r=this.tabs.indexOf(e[s]);r>-1&&this.moveToTabByIndex(this.tabs,r)}adjustForward(t){const e=this.tabs;let i=0;for(i=this.activetab?e.indexOf(this.activetab)+1:1,i===e.length&&(i=0);i<e.length&&e.length>1;)if(this.isFocusableElement(e[i])){this.moveToTabByIndex(e,i);break}else{if(this.activetab&&i===e.indexOf(this.activetab))break;i+1>=e.length?i=0:i+=1}}adjustBackward(t){const e=this.tabs;let i=0;for(i=this.activetab?e.indexOf(this.activetab)-1:0,i=i<0?e.length-1:i;i>=0&&e.length>1;)if(this.isFocusableElement(e[i])){this.moveToTabByIndex(e,i);break}else i-1<0?i=e.length-1:i-=1}moveToTabByIndex(t,e){const i=t[e];this.activetab=i,this.prevActiveTabIndex=this.activeTabIndex,this.activeTabIndex=e,i.focus(),this.setComponent()}focusTab(){this.tabs[this.activeTabIndex].focus()}connectedCallback(){super.connectedCallback(),this.tabIds=this.getTabIds(),this.tabpanelIds=this.getTabPanelIds(),this.activeTabIndex=this.getActiveIndex()}}Ae([a],vo.prototype,"orientation",2),Ae([a],vo.prototype,"activeid",2),Ae([$],vo.prototype,"tabs",2),Ae([$],vo.prototype,"tabpanels",2);class $o extends vo{constructor(){super(...arguments),this.activeTabData={x:0,y:0,height:0,width:0},this.previousActiveTabData={x:0,y:0,height:0,width:0},this.activeTabOffset=0,this.activeTabScale=1,this.appearance=Ap.transparent}calculateAnimationProperties(t){this.activeTabOffset=this.getTabPosition(t),this.activeTabScale=this.getTabScale(t)}getTabPosition(t){return this.orientation===hi.horizontal?this.previousActiveTabData.x-(t.getBoundingClientRect().x-this.getBoundingClientRect().x):this.previousActiveTabData.y-(t.getBoundingClientRect().y-this.getBoundingClientRect().y)}getTabScale(t){return this.orientation===hi.horizontal?this.previousActiveTabData.width/t.getBoundingClientRect().width:this.previousActiveTabData.height/t.getBoundingClientRect().height}applyUpdatedCSSValues(t){this.calculateAnimationProperties(t),this.setTabScaleCSSVar(),this.setTabOffsetCSSVar()}animationLoop(t){t.setAttribute("data-animate","false"),this.applyUpdatedCSSValues(t),this.previousActiveTabData=this.activeTabData,this.applyUpdatedCSSValues(t),t.setAttribute("data-animate","true")}setTabData(){if(this.tabs&&this.tabs.length>0){const t=this.tabs,i=(this.activetab||t[0])?.getBoundingClientRect(),s=this.getBoundingClientRect();this.activeTabData={x:i.x-s.x,y:i.y-s.y,height:i.height,width:i.width},this.previousActiveTabData?.x!==this.activeTabData?.x&&this.previousActiveTabData?.y!==this.activeTabData?.y&&(this.previousActiveTabData=this.activeTabData)}}setTabOffsetCSSVar(){this.styles=p`
|
|
481
|
+
:host{--tabIndicatorOffset:${this.activeTabOffset.toString()}px}`,this.$fastController.addStyles(this.styles)}setTabScaleCSSVar(){this.styles=p`
|
|
482
|
+
:host{--tabIndicatorScale:${this.activeTabScale.toString()}}`,this.$fastController.addStyles(this.styles)}activeidChanged(t,e){super.activeidChanged(t,e),this.setTabData(),this.activetab&&this.animationLoop(this.activetab)}tabsChanged(){super.tabsChanged(),this.setTabData()}}Ae([a],$o.prototype,"appearance",2),Ae([a({mode:"boolean"})],$o.prototype,"disabled",2),Ae([a],$o.prototype,"size",2),Xt($o,Wt);function Mp(o={}){return v` ${Ut(o)}<div class="tablist" part="tablist" role="tablist"><slot name="tab" ${rt("tabs")}></slot></div>${Gt(o)}<div class="tabpanel" part="tabpanel"><slot name="tabpanel" ${rt("tabpanels")}></slot></div>`}const _p=Mp({}),Rp=p`
|
|
483
|
+
${z("grid")}
|
|
484
|
+
|
|
485
|
+
:host{box-sizing:border-box;font-family:${y};font-size:${O};line-height:${R};color:${Ft};grid-template-columns:auto 1fr auto;grid-template-rows:auto 1fr}:host([disabled]){cursor:not-allowed;color:${C}}:host([disabled]) ::slotted(fluent-tab){pointer-events:none;cursor:not-allowed;color:${C}}:host([disabled]) ::slotted(fluent-tab:after){background-color:${C}}:host([disabled]) ::slotted(fluent-tab[aria-selected='true'])::after{background-color:${C}}:host([disabled]) ::slotted(fluent-tab:hover):before{content:unset}:host ::slotted(fluent-tab){border-radius:${L}}:host ::slotted(fluent-tab[aria-selected='true'])::before{background-color:${C}}.tablist{display:grid;grid-template-rows:auto auto;grid-template-columns:auto;position:relative;width:max-content;align-self:end;box-sizing:border-box}::slotted([slot='start']),::slotted([slot='end']){display:flex;align-self:center}::slotted([slot='start']){margin-inline-end:11px}::slotted([slot='end']){margin-inline-start:11px}.tabpanel{grid-row:2;grid-column-start:1;grid-column-end:4;position:relative}:host([orientation='vertical']){grid-template-rows:auto 1fr auto;grid-template-columns:auto 1fr}:host([orientation='vertical']) .tablist{grid-row-start:2;grid-row-end:2;display:grid;grid-template-rows:auto;grid-template-columns:auto 1fr;position:relative;width:max-content;justify-self:end;align-self:flex-start;width:100%}:host([orientation='vertical']) .tabpanel{grid-column:2;grid-row-start:1;grid-row-end:4}:host([orientation='vertical']) ::slotted([slot='end']){grid-row:3}:host([appearance='subtle']) ::slotted(fluent-tab:hover){background-color:${Li};color:${dr};fill:${ur}}:host([appearance='subtle']) ::slotted(fluent-tab:active){background-color:${Vo};fill:${Vo};color:${M}}:host([size='small']) ::slotted(fluent-tab){font-size:${O};line-height:${R};padding:${no} ${Se}}:host([size='large']) ::slotted(fluent-tab){font-size:${dt};line-height:${kt};padding:${Wr} ${te}}:host ::slotted(fluent-tab[data-animate='true'])::after{transition-property:transform;transition-duration:${Ac};transition-timing-function:${Xr}}:host ::slotted(fluent-tab)::after{height:${ne};margin-top:auto;transform-origin:left;transform:translateX(var(--tabIndicatorOffset)) scaleX(var(--tabIndicatorScale))}:host([orientation='vertical']) ::slotted(fluent-tab)::after{width:${ne};height:unset;margin-top:unset;transform-origin:top;transform:translateY(var(--tabIndicatorOffset)) scaleY(var(--tabIndicatorScale))}:host ::slotted(fluent-tab)::before{height:${ne};border-radius:${ct};content:'';inset:0;position:absolute;margin-top:auto}:host([orientation='vertical']) ::slotted(fluent-tab)::before{height:unset;width:${ne};margin-inline-end:auto;transform-origin:top}:host ::slotted(fluent-tab[aria-selected='false']:hover)::after{height:${ne};margin-top:auto;transform-origin:left}:host([orientation='vertical']) ::slotted(fluent-tab[aria-selected='false']:hover)::after{height:unset;margin-inline-end:auto;transform-origin:top;width:${ne}}:host([orientation='vertical']) ::slotted(fluent-tab){align-items:flex-start;grid-column:2;padding-top:${no};padding-bottom:${no}}:host([orientation='vertical'][size='small']) ::slotted(fluent-tab){padding-top:${Ko};padding-bottom:${Ko}}:host([orientation='vertical'][size='large']) ::slotted(fluent-tab){padding-top:${U};padding-bottom:${U}}:host([size='small']) ::slotted(fluent-tab)::after,:host([size='small']) ::slotted(fluent-tab)::before,:host([size='small']) ::slotted(fluent-tab:hover)::after{right:${Se};left:${Se}}:host ::slotted(fluent-tab)::after,:host ::slotted(fluent-tab)::before,:host ::slotted(fluent-tab:hover)::after{right:${te};left:${te}}:host([size='large']) ::slotted(fluent-tab)::after,:host([size='large']) ::slotted(fluent-tab)::before,:host([size='large']) ::slotted(fluent-tab:hover)::after{right:${te};left:${te}}:host([orientation='vertical'][size='small']) ::slotted(fluent-tab)::after,:host([orientation='vertical'][size='small']) ::slotted(fluent-tab)::before,:host([orientation='vertical'][size='small']) ::slotted(fluent-tab:hover)::after{right:0;left:0;top:${no};bottom:${no}}:host([orientation='vertical']) ::slotted(fluent-tab)::after,:host([orientation='vertical']) ::slotted(fluent-tab)::before,:host([orientation='vertical']) ::slotted(fluent-tab:hover)::after{right:0;left:0;top:${U};bottom:${U}}:host([orientation='vertical'][size='large']) ::slotted(fluent-tab)::after,:host([orientation='vertical'][size='large']) ::slotted(fluent-tab)::before,:host([orientation='vertical'][size='large']) ::slotted(fluent-tab:hover)::after{right:0;left:0;top:${qr};bottom:${qr}}`,Dp=$o.compose({name:`${b.prefix}-tabs`,template:_p,styles:Rp});Dp.define(b.registry);const Hp={email:"email",password:"password",tel:"tel",text:"text",url:"url"},Vp=["date","datetime-local","email","month","number","password","search","tel","text","time","url","week"];var Np=Object.defineProperty,jp=Object.getOwnPropertyDescriptor,E=(o,t,e,i)=>{for(var s=i>1?void 0:i?jp(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(s=(i?n(t,e,s):n(s))||s);return i&&s&&Np(t,e,s),s};class P extends S{constructor(){super(...arguments),this.type=Hp.text,this._value=this.initialValue,this.dirtyValue=!1,this.elementInternals=this.attachInternals()}defaultSlottedNodesChanged(t,e){this.$fastController.isConnected&&(this.controlLabel.hidden=!e?.length)}initialValueChanged(){this.dirtyValue||(this.value=this.initialValue)}readOnlyChanged(){this.$fastController.isConnected&&(this.elementInternals.ariaReadOnly=`${!!this.readOnly}`)}requiredChanged(t,e){this.$fastController.isConnected&&(this.elementInternals.ariaRequired=`${!!e}`)}get validity(){return this.elementInternals.validity}get validationMessage(){return this.elementInternals.validationMessage||this.control.validationMessage}get value(){return k.track(this,"value"),this._value}set value(t){this._value=t,this.$fastController.isConnected&&(this.control.value=t,this.setFormValue(t),this.setValidity(),k.notify(this,"value"))}get willValidate(){return this.elementInternals.willValidate}get form(){return this.elementInternals.form}beforeinputHandler(t){return t.inputType==="insertLineBreak"&&this.implicitSubmit(),!0}changeHandler(t){return this.setValidity(),this.$emit("change",t,{bubbles:!0,composed:!0}),!0}checkValidity(){return this.elementInternals.checkValidity()}clickHandler(t){this.isSameNode(t.target)&&this.control?.click()}connectedCallback(){super.connectedCallback(),this.setFormValue(this.value),this.setValidity()}focusinHandler(t){this.control?.focus()}formResetCallback(){this.value=this.initialValue,this.dirtyValue=!1}implicitSubmit(){if(!this.elementInternals.form)return;if(this.elementInternals.form.elements.length===1){this.elementInternals.form.requestSubmit();return}const t=[...this.elementInternals.form.elements],e=t.find(s=>s.getAttribute("type")==="submit");if(e){e.click();return}t.filter(s=>Vp.includes(s.getAttribute("type")??"")).length>1||this.elementInternals.form.requestSubmit()}inputHandler(t){return this.dirtyValue=!0,this.value=this.control.value,!0}keydownHandler(t){return t.key==="Enter"&&this.implicitSubmit(),!0}select(){this.control.select(),this.$emit("select")}setCustomValidity(t){this.elementInternals.setValidity({customError:!0},t),this.reportValidity()}reportValidity(){return this.elementInternals.reportValidity()}setFormValue(t,e){this.elementInternals.setFormValue(t,t??e)}setValidity(t=this.control.validity,e=this.validationMessage,i=this.control){if(this.$fastController.isConnected){if(this.disabled){this.elementInternals.setValidity({});return}this.elementInternals.setValidity(t,e,i)}}}P.formAssociated=!0,E([a],P.prototype,"appearance",2),E([a],P.prototype,"autocomplete",2),E([a({mode:"boolean"})],P.prototype,"autofocus",2),E([a({attribute:"control-size"})],P.prototype,"controlSize",2),E([$],P.prototype,"defaultSlottedNodes",2),E([a],P.prototype,"dirname",2),E([a({mode:"boolean"})],P.prototype,"disabled",2),E([a({attribute:"form"})],P.prototype,"formAttribute",2),E([a({attribute:"value",mode:"fromView"})],P.prototype,"initialValue",2),E([a],P.prototype,"list",2),E([a({converter:nt})],P.prototype,"maxlength",2),E([a({converter:nt})],P.prototype,"minlength",2),E([a({mode:"boolean"})],P.prototype,"multiple",2),E([a],P.prototype,"name",2),E([a],P.prototype,"pattern",2),E([a],P.prototype,"placeholder",2),E([a({attribute:"readonly",mode:"boolean"})],P.prototype,"readOnly",2),E([a({mode:"boolean"})],P.prototype,"required",2),E([a({converter:nt})],P.prototype,"size",2),E([a({converter:{fromView:o=>typeof o=="string"?["true",""].includes(o.trim().toLowerCase()):null,toView:o=>o.toString()}})],P.prototype,"spellcheck",2),E([a],P.prototype,"type",2),E([$],P.prototype,"controlLabel",2),Xt(P,Wt);const qp=p`
|
|
486
|
+
${z("block")}
|
|
487
|
+
|
|
488
|
+
:host{font-family:${y};font-size:${O};font-weight:${A};line-height:${R};max-width:400px}.label{display:flex;color:${M};padding-bottom:${Tc};flex-shrink:0;padding-inline-end:${Jt}}.label[hidden],:host(:empty) .label{display:none}.root{align-items:center;background-color:${_};border:${Y} solid ${Ne};border-bottom-color:${Yt};border-radius:${L};box-sizing:border-box;height:32px;display:inline-flex;flex-direction:row;gap:${Ce};padding:0 ${te};position:relative;width:100%}:has(.control:user-invalid){border-color:${rl}}.root::after{box-sizing:border-box;content:'';position:absolute;left:-1px;bottom:0px;right:-1px;height:max(2px,${L});border-radius:0 0 ${L} ${L};border-bottom:2px solid ${Hi};clip-path:inset(calc(100% - 2px) 1px 0px);transform:scaleX(0);transition-property:transform;transition-duration:${Fc};transition-delay:${Gi}}.control{width:100%;height:100%;box-sizing:border-box;color:${M};border-radius:${L};background:${yt};font-family:${y};font-weight:${A};font-size:${O};border:none;vertical-align:center}.control:focus-visible{outline:0;border:0}.control::placeholder{color:${Ea}}:host ::slotted([slot='start']),:host ::slotted([slot='end']){display:flex;align-items:center;justify-content:center;color:${et};font-size:${ke}}:host ::slotted([slot='start']){padding-right:${Ce}}:host ::slotted([slot='end']){padding-left:${Ce};gap:${Jt}}:host(:hover) .root{border-color:${No};border-bottom-color:${oo}}:host(:active) .root{border-color:${Di}}:host(:focus-within) .root{outline:transparent solid 2px;border-bottom:0}:host(:focus-within) .root::after{transform:scaleX(1);transition-property:transform;transition-duration:${Gr};transition-delay:${Ui}}:host(:focus-within:active) .root:after{border-bottom-color:${Ni}}:host([appearance='outline']:focus-within) .root{border:${Y} solid ${Ne}}:host(:focus-within) .control{color:${M}}:host([disabled]) .root{background:${yt};border:${Y} solid ${Qt}}:host([disabled]) .control::placeholder,:host([disabled]) ::slotted([slot='start']),:host([disabled]) ::slotted([slot='end']){color:${C}}::selection{color:${Do};background-color:${Ua}}:host([control-size='small']) .control{font-size:${G};font-weight:${A};line-height:${ht}}:host([control-size='small']) .root{height:24px;gap:${Ce};padding:0 ${Se}}:host([control-size='small']) ::slotted([slot='start']),:host([control-size='small']) ::slotted([slot='end']){font-size:${dt}}:host([control-size='large']) .control{font-size:${dt};font-weight:${A};line-height:${kt}}:host([control-size='large']) .root{height:40px;gap:${At};padding:0 ${ae}}:host([control-size='large']) ::slotted([slot='start']),:host([control-size='large']) ::slotted([slot='end']){font-size:${qo}}:host([appearance='underline']) .root{background:${yt};border:0;border-radius:0;border-bottom:${Y} solid ${Yt}}:host([appearance='underline']:hover) .root{border-bottom-color:${oo}}:host([appearance='underline']:active) .root{border-bottom-color:${io}}:host([appearance='underline']:focus-within) .root{border:0;border-bottom-color:${io}}:host([appearance='underline'][disabled]) .root{border-bottom-color:${Qt}}:host([appearance='filled-lighter']) .root,:host([appearance='filled-darker']) .root{border:${Y} solid ${Ot};box-shadow:${Vr}}:host([appearance='filled-lighter']) .root{background:${_}}:host([appearance='filled-darker']) .root{background:${mr}}:host([appearance='filled-lighter']:hover) .root,:host([appearance='filled-darker']:hover) .root{border-color:${wr}}:host([appearance='filled-lighter']:active) .root,:host([appearance='filled-darker']:active) .root{border-color:${wr};background:${mr}}`;function Wp(o={}){return v`<template @beforeinput="${(t,e)=>t.beforeinputHandler(e.event)}" @focusin="${(t,e)=>t.focusinHandler(e.event)}" @keydown="${(t,e)=>t.keydownHandler(e.event)}"><label part="label" for="control" class="label" ${$t("controlLabel")}><slot ${rt({property:"defaultSlottedNodes",filter:cr})}></slot></label><div class="root" part="root">${Ut(o)}<input class="control" part="control" id="control" @change="${(t,e)=>t.changeHandler(e.event)}" @input="${(t,e)=>t.inputHandler(e.event)}" ?autofocus="${t=>t.autofocus}" autocomplete="${t=>t.autocomplete}" ?disabled="${t=>t.disabled}" list="${t=>t.list}" maxlength="${t=>t.maxlength}" minlength="${t=>t.minlength}" ?multiple="${t=>t.multiple}" name="${t=>t.name}" pattern="${t=>t.pattern}" placeholder="${t=>t.placeholder}" ?readonly="${t=>t.readOnly}" ?required="${t=>t.required}" size="${t=>t.size}" spellcheck="${t=>t.spellcheck}" type="${t=>t.type}" value="${t=>t.initialValue}" ${$t("control")} />${Gt(o)}</div></template>`}const Gp=Wp(),Up=P.compose({name:`${b.prefix}-text-input`,template:Gp,styles:qp,shadowOptions:{delegatesFocus:!0}});Up.define(b.registry);var Xp=Object.defineProperty,Kp=Object.getOwnPropertyDescriptor,Nt=(o,t,e,i)=>{for(var s=i>1?void 0:i?Kp(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(s=(i?n(t,e,s):n(s))||s);return i&&s&&Xp(t,e,s),s};class Pt extends S{constructor(){super(...arguments),this.nowrap=!1,this.truncate=!1,this.italic=!1,this.underline=!1,this.strikethrough=!1,this.block=!1}}Nt([a({mode:"boolean"})],Pt.prototype,"nowrap",2),Nt([a({mode:"boolean"})],Pt.prototype,"truncate",2),Nt([a({mode:"boolean"})],Pt.prototype,"italic",2),Nt([a({mode:"boolean"})],Pt.prototype,"underline",2),Nt([a({mode:"boolean"})],Pt.prototype,"strikethrough",2),Nt([a({mode:"boolean"})],Pt.prototype,"block",2),Nt([a],Pt.prototype,"size",2),Nt([a],Pt.prototype,"font",2),Nt([a],Pt.prototype,"weight",2),Nt([a],Pt.prototype,"align",2);const Yp=p`
|
|
489
|
+
${z("inline")}
|
|
490
|
+
|
|
491
|
+
:host{contain:content}::slotted(*){font-family:${y};font-size:${O};line-height:${R};font-weight:${A};text-align:start;white-space:normal;overflow:visible;text-overflow:clip;margin:0;display:inline}:host([nowrap]) ::slotted(*),:host([nowrap]){white-space:nowrap;overflow:hidden}:host([truncate]) ::slotted(*),:host([truncate]){text-overflow:ellipsis}:host([block]),:host([block]) ::slotted(*),:host([block]){display:block}:host([italic]) ::slotted(*),:host([italic]){font-style:italic}:host([underline]) ::slotted(*),:host([underline]){text-decoration-line:underline}:host([strikethrough]) ::slotted(*),:host([strikethrough]){text-decoration-line:line-through}:host([underline][strikethrough]) ::slotted(*),:host([underline][strikethrough]){text-decoration-line:line-through underline}:host([size='100']) ::slotted(*),:host([size='100']){font-size:${ro};line-height:${Go}}:host([size='200']) ::slotted(*),:host([size='200']){font-size:${G};line-height:${ht}}:host([size='400']) ::slotted(*),:host([size='400']){font-size:${dt};line-height:${kt}}:host([size='500']) ::slotted(*),:host([size='500']){font-size:${ke};line-height:${Uo}}:host([size='600']) ::slotted(*),:host([size='600']){font-size:${qo};line-height:${Mr}}:host([size='700']) ::slotted(*),:host([size='700']){font-size:${Or};line-height:${_r}}:host([size='800']) ::slotted(*),:host([size='800']){font-size:${Ar};line-height:${Rr}}:host([size='900']) ::slotted(*),:host([size='900']){font-size:${Er};line-height:${Dr}}:host([size='1000']) ::slotted(*),:host([size='1000']){font-size:${Lr};line-height:${Hr}}:host([font='monospace']) ::slotted(*),:host([font='monospace']){font-family:${kc}}:host([font='numeric']) ::slotted(*),:host([font='numeric']){font-family:${wc}}:host([weight='medium']) ::slotted(*),:host([weight='medium']){font-weight:${Cc}}:host([weight='semibold']) ::slotted(*),:host([weight='semibold']){font-weight:${N}}:host([weight='bold']) ::slotted(*),:host([weight='bold']){font-weight:${Wo}}:host([align='center']) ::slotted(*),:host([align='center']){text-align:center}:host([align='end']) ::slotted(*),:host([align='end']){text-align:end}:host([align='justify']) ::slotted(*),:host([align='justify']){text-align:justify}`,Qp=v`<slot></slot>`,Zp=Pt.compose({name:`${b.prefix}-text`,template:Qp,styles:Yp});Zp.define(b.registry);var Jp=Object.defineProperty,tf=Object.getOwnPropertyDescriptor,Hn=(o,t,e,i)=>{for(var s=i>1?void 0:i?tf(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(s=(i?n(t,e,s):n(s))||s);return i&&s&&Jp(t,e,s),s};class ds extends F{pressedChanged(){this.setPressedState()}mixedChanged(){this.setPressedState()}press(){this.pressed=!this.pressed}connectedCallback(){super.connectedCallback(),this.setPressedState()}setPressedState(){if(this.$fastController.isConnected){const t=`${this.mixed?"mixed":!!this.pressed}`;this.elementInternals.ariaPressed=t,this.setAttribute("aria-pressed",t)}}}Hn([a({mode:"boolean"})],ds.prototype,"pressed",2),Hn([a({mode:"boolean"})],ds.prototype,"mixed",2);const ef=p`
|
|
492
|
+
${Zo}
|
|
493
|
+
|
|
494
|
+
:host([aria-pressed='true']){border-color:${Ne};background-color:${br};color:${M};border-width:${Y}}:host([aria-pressed='true']:hover){border-color:${No};background-color:${Ei}}:host([aria-pressed='true']:active){border-color:${Di};background-color:${gr}}:host([aria-pressed='true'][appearance='primary']){border-color:transparent;background-color:${Za};color:${Kt}}:host([aria-pressed='true'][appearance='primary']:hover){background-color:${vr}}:host([aria-pressed='true'][appearance='primary']:active){background-color:${$r}}:host([aria-pressed='true'][appearance='subtle']){border-color:transparent;background-color:${Ka};color:${Ta}}:host([aria-pressed='true'][appearance='subtle']:hover){background-color:${Li};color:${Lo}}:host([aria-pressed='true'][appearance='subtle']:active){background-color:${Vo};color:${Mo}}:host([aria-pressed='true'][appearance='outline']),:host([aria-pressed='true'][appearance='transparent']){background-color:${Ya}}:host([aria-pressed='true'][appearance='outline']:hover),:host([aria-pressed='true'][appearance='transparent']:hover){background-color:${Mi}}:host([aria-pressed='true'][appearance='outline']:active),:host([aria-pressed='true'][appearance='transparent']:active){background-color:${_i}}:host([aria-pressed='true'][appearance='transparent']){border-color:transparent;color:${Fa}}:host([aria-pressed='true'][appearance='transparent']:hover){color:${_o}}:host([aria-pressed='true'][appearance='transparent']:active){color:${Ro}}`.withBehaviors(lt(p`
|
|
495
|
+
:host([aria-pressed='true']),:host([aria-pressed='true'][appearance='primary']),:host([aria-pressed='true'][appearance='subtle']),:host([aria-pressed='true'][appearance='outline']),:host([aria-pressed='true'][appearance='transparent']){background:SelectedItem;color:SelectedItemText}`)),of=Qi(),sf=ds.compose({name:`${b.prefix}-toggle-button`,template:of,styles:ef});sf.define(b.registry);
|