@fluentui/web-components 3.0.0-beta.2 → 3.0.0-beta.21
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 +339 -103
- package/README.md +46 -15
- 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.d.ts +78 -3
- package/dist/dts/accordion-item/accordion-item.definition.d.ts +0 -3
- package/dist/dts/accordion-item/accordion-item.options.d.ts +1 -1
- package/dist/dts/accordion-item/accordion-item.template.d.ts +2 -1
- package/dist/dts/accordion-item/index.d.ts +2 -2
- package/dist/dts/anchor-button/anchor-button.d.ts +116 -4
- package/dist/dts/anchor-button/anchor-button.definition.d.ts +0 -3
- package/dist/dts/anchor-button/anchor-button.options.d.ts +19 -2
- package/dist/dts/anchor-button/anchor-button.template.d.ts +7 -2
- package/dist/dts/anchor-button/index.d.ts +2 -2
- package/dist/dts/avatar/avatar.options.d.ts +1 -1
- package/dist/dts/avatar/index.d.ts +2 -2
- 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 +2 -2
- package/dist/dts/badge/index.d.ts +2 -2
- 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 +39 -3
- package/dist/dts/button/button.styles.d.ts +5 -0
- package/dist/dts/button/button.template.d.ts +8 -0
- package/dist/dts/button/index.d.ts +2 -2
- package/dist/dts/checkbox/checkbox.d.ts +46 -3
- package/dist/dts/checkbox/checkbox.form-associated.d.ts +14 -0
- package/dist/dts/checkbox/checkbox.options.d.ts +1 -1
- package/dist/dts/checkbox/checkbox.template.d.ts +6 -1
- package/dist/dts/checkbox/index.d.ts +2 -2
- package/dist/dts/compound-button/compound-button.definition.d.ts +0 -3
- package/dist/dts/compound-button/compound-button.options.d.ts +6 -6
- package/dist/dts/compound-button/index.d.ts +2 -2
- 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 +1 -1
- package/dist/dts/counter-badge/index.d.ts +2 -2
- package/dist/dts/dialog/define.d.ts +1 -0
- package/dist/dts/dialog/dialog.d.ts +192 -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/divider/divider.d.ts +20 -4
- package/dist/dts/divider/divider.options.d.ts +30 -6
- package/dist/dts/divider/divider.template.d.ts +1 -0
- package/dist/dts/divider/index.d.ts +2 -2
- package/dist/dts/form-associated/form-associated.d.ts +104 -0
- package/dist/dts/image/image.options.d.ts +1 -1
- package/dist/dts/image/index.d.ts +2 -2
- package/dist/dts/index-rollup.d.ts +35 -1
- package/dist/dts/index.d.ts +36 -29
- package/dist/dts/label/index.d.ts +2 -1
- package/dist/dts/label/label.options.d.ts +1 -1
- package/dist/dts/menu/define.d.ts +1 -0
- package/dist/dts/menu/index.d.ts +4 -0
- package/dist/dts/menu/menu.d.ts +194 -0
- package/dist/dts/menu/menu.definition.d.ts +9 -0
- package/dist/dts/menu/menu.styles.d.ts +4 -0
- package/dist/dts/menu/menu.template.d.ts +4 -0
- package/dist/dts/menu-button/index.d.ts +2 -2
- package/dist/dts/menu-button/menu-button.definition.d.ts +0 -3
- package/dist/dts/menu-button/menu-button.options.d.ts +2 -2
- package/dist/dts/menu-item/index.d.ts +2 -1
- package/dist/dts/menu-item/menu-item.d.ts +161 -4
- 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.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/base-progress.d.ts +41 -0
- package/dist/dts/progress-bar/index.d.ts +2 -2
- package/dist/dts/progress-bar/progress-bar.d.ts +11 -4
- package/dist/dts/progress-bar/progress-bar.options.d.ts +10 -1
- package/dist/dts/progress-bar/progress-bar.template.d.ts +2 -0
- package/dist/dts/radio/index.d.ts +1 -1
- 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.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 +2 -2
- package/dist/dts/slider/slider-utilities.d.ts +5 -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 +43 -2
- package/dist/dts/slider/slider.template.d.ts +4 -2
- package/dist/dts/spinner/index.d.ts +2 -2
- package/dist/dts/spinner/spinner.d.ts +9 -2
- package/dist/dts/spinner/spinner.definition.d.ts +0 -4
- package/dist/dts/spinner/spinner.options.d.ts +1 -1
- 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 +2 -2
- package/dist/dts/switch/switch.d.ts +34 -2
- package/dist/dts/switch/switch.form-associated.d.ts +14 -0
- package/dist/dts/switch/switch.options.d.ts +1 -1
- package/dist/dts/switch/switch.template.d.ts +2 -1
- package/dist/dts/tab/index.d.ts +1 -1
- 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.d.ts +2 -2
- package/dist/dts/tab-panel/tab-panel.template.d.ts +4 -1
- package/dist/dts/tabs/index.d.ts +2 -2
- package/dist/dts/tabs/tabs.d.ts +89 -4
- package/dist/dts/tabs/tabs.options.d.ts +21 -3
- package/dist/dts/tabs/tabs.template.d.ts +5 -1
- package/dist/dts/text/index.d.ts +2 -2
- package/dist/dts/text/text.options.d.ts +1 -1
- package/dist/dts/text-input/index.d.ts +5 -5
- package/dist/dts/text-input/text-input.d.ts +355 -10
- package/dist/dts/text-input/text-input.definition.d.ts +2 -3
- package/dist/dts/text-input/text-input.options.d.ts +30 -9
- 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 +436 -384
- package/dist/dts/theme/set-theme.d.ts +1 -2
- package/dist/dts/toggle-button/index.d.ts +2 -2
- 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 +2 -2
- 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/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.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.definition.js +0 -3
- package/dist/esm/accordion-item/accordion-item.definition.js.map +1 -1
- package/dist/esm/accordion-item/accordion-item.js +81 -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.definition.js +0 -3
- package/dist/esm/anchor-button/anchor-button.definition.js.map +1 -1
- package/dist/esm/anchor-button/anchor-button.js +53 -10
- package/dist/esm/anchor-button/anchor-button.js.map +1 -1
- package/dist/esm/anchor-button/anchor-button.options.js +11 -0
- package/dist/esm/anchor-button/anchor-button.options.js.map +1 -1
- package/dist/esm/anchor-button/anchor-button.styles.js +255 -3
- package/dist/esm/anchor-button/anchor-button.styles.js.map +1 -1
- package/dist/esm/anchor-button/anchor-button.template.js +49 -1
- package/dist/esm/anchor-button/anchor-button.template.js.map +1 -1
- package/dist/esm/anchor-button/index.js +2 -2
- package/dist/esm/anchor-button/index.js.map +1 -1
- package/dist/esm/avatar/avatar.js +1 -6
- package/dist/esm/avatar/avatar.js.map +1 -1
- package/dist/esm/avatar/avatar.styles.js +5 -5
- package/dist/esm/avatar/avatar.styles.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.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.definition.js +2 -6
- package/dist/esm/button/button.definition.js.map +1 -1
- package/dist/esm/button/button.js +263 -41
- 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 +54 -56
- 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 +2 -2
- package/dist/esm/button/index.js.map +1 -1
- package/dist/esm/checkbox/checkbox.form-associated.js +14 -0
- package/dist/esm/checkbox/checkbox.form-associated.js.map +1 -0
- package/dist/esm/checkbox/checkbox.js +63 -10
- package/dist/esm/checkbox/checkbox.js.map +1 -1
- package/dist/esm/checkbox/checkbox.styles.js +1 -1
- package/dist/esm/checkbox/checkbox.styles.js.map +1 -1
- package/dist/esm/checkbox/checkbox.template.js +35 -7
- package/dist/esm/checkbox/checkbox.template.js.map +1 -1
- package/dist/esm/checkbox/index.js +2 -2
- package/dist/esm/checkbox/index.js.map +1 -1
- 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.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.definition.js +17 -0
- package/dist/esm/dialog/dialog.definition.js.map +1 -0
- package/dist/esm/dialog/dialog.js +365 -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 +102 -0
- package/dist/esm/dialog/dialog.styles.js.map +1 -0
- package/dist/esm/dialog/dialog.template.js +61 -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/divider/divider.js +30 -10
- 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 +12 -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/form-associated/form-associated.js +458 -0
- package/dist/esm/form-associated/form-associated.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 +35 -1
- package/dist/esm/index-rollup.js.map +1 -1
- package/dist/esm/index.js +36 -29
- 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.js +1 -6
- package/dist/esm/label/label.js.map +1 -1
- package/dist/esm/label/label.styles.js +1 -1
- package/dist/esm/label/label.styles.js.map +1 -1
- package/dist/esm/menu/define.js +4 -0
- package/dist/esm/menu/define.js.map +1 -0
- package/dist/esm/menu/index.js +5 -0
- package/dist/esm/menu/index.js.map +1 -0
- package/dist/esm/menu/menu.definition.js +17 -0
- package/dist/esm/menu/menu.definition.js.map +1 -0
- package/dist/esm/menu/menu.js +408 -0
- package/dist/esm/menu/menu.js.map +1 -0
- package/dist/esm/menu/menu.styles.js +17 -0
- package/dist/esm/menu/menu.styles.js.map +1 -0
- package/dist/esm/menu/menu.template.js +24 -0
- package/dist/esm/menu/menu.template.js.map +1 -0
- package/dist/esm/menu-button/index.js +2 -2
- package/dist/esm/menu-button/index.js.map +1 -1
- 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 +2 -1
- package/dist/esm/menu-item/index.js.map +1 -1
- 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.definition.js +0 -4
- package/dist/esm/menu-list/menu-list.definition.js.map +1 -1
- package/dist/esm/menu-list/menu-list.js +260 -10
- 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/base-progress.js +56 -0
- package/dist/esm/progress-bar/base-progress.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.js +11 -9
- 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 +1 -1
- package/dist/esm/progress-bar/progress-bar.styles.js.map +1 -1
- package/dist/esm/progress-bar/progress-bar.template.js +25 -1
- 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.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.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.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 +38 -1
- 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.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.form-associated.js +14 -0
- package/dist/esm/switch/switch.form-associated.js.map +1 -0
- package/dist/esm/switch/switch.js +49 -9
- package/dist/esm/switch/switch.js.map +1 -1
- package/dist/esm/switch/switch.styles.js +4 -3
- package/dist/esm/switch/switch.styles.js.map +1 -1
- package/dist/esm/switch/switch.template.js +25 -1
- package/dist/esm/switch/switch.template.js.map +1 -1
- package/dist/esm/tab/index.js +1 -1
- package/dist/esm/tab/index.js.map +1 -1
- 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.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 +2 -2
- package/dist/esm/tabs/index.js.map +1 -1
- package/dist/esm/tabs/tabs.js +279 -11
- 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.js +1 -6
- package/dist/esm/text/text.js.map +1 -1
- package/dist/esm/text/text.styles.js +1 -1
- 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.definition.js +2 -3
- package/dist/esm/text-input/text-input.definition.js.map +1 -1
- package/dist/esm/text-input/text-input.js +340 -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 +8 -3
- package/dist/esm/text-input/text-input.styles.js.map +1 -1
- package/dist/esm/text-input/text-input.template.js +49 -2
- package/dist/esm/text-input/text-input.template.js.map +1 -1
- package/dist/esm/theme/design-tokens.js +437 -386
- package/dist/esm/theme/design-tokens.js.map +1 -1
- package/dist/esm/theme/set-theme.js +2 -2
- package/dist/esm/theme/set-theme.js.map +1 -1
- package/dist/esm/toggle-button/index.js +2 -2
- package/dist/esm/toggle-button/index.js.map +1 -1
- 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/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/fluent-web-components.api.json +19072 -7994
- package/dist/web-components.d.ts +4130 -1264
- package/dist/web-components.js +3675 -3856
- package/dist/web-components.min.js +340 -190
- package/docs/api-report.md +1352 -527
- package/package.json +20 -11
- package/playwright.config.ts +2 -3
- package/project.json +6 -0
- package/tensile.config.js +22 -0
- 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/651.e36cf1e8.iframe.bundle.js +0 -462
- package/dist/storybook/651.e36cf1e8.iframe.bundle.js.LICENSE.txt +0 -46
- package/dist/storybook/651.e36cf1e8.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.696937e6.iframe.bundle.js +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
|
@@ -1,35 +1,57 @@
|
|
|
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(Kh){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 F(e,t,o=B.isVolatileBinding(e)){return new I(e,t,o)}class A extends T{createObserver(){return this}bind(e){return this.evaluate(e.source,e.context)}}function z(e,t){return new A(e,t)}let N;p(A);class L{constructor(e){this.styles=e,this.targets=new WeakSet,this._strategy=null,this.behaviors=e.map(e=>e instanceof L?e.behaviors:null).reduce((e,t)=>null===t?e:null===e?t:e.concat(t),null)}get strategy(){return null===this._strategy&&this.withStrategy(N),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 L?e(t.styles):[t]).reduce((e,t)=>e.concat(t),[])}(this.styles)),this}static setDefaultStrategy(e){N=e}static normalize(e){return void 0===e?void 0:Array.isArray(e)?new L(e):e instanceof L?e:new L([e])}}L.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 R{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(R);const M=""+Math.random().toString(36).substring(2,8);let H=0;const V=()=>`--v${M}${++H}`;function j(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 R(F(s),V()).createCSS(n):s instanceof T?s=new R(s,V()).createCSS(n):void 0!==D.getForInstance(s)&&(s=s.createCSS(n)),s instanceof L||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 _=(e,...t)=>{const{styles:o,behaviors:r}=j(e,t),i=new L(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 L(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),_.partial=(e,...t)=>{const{styles:o,behaviors:r}=j(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(F(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 Fe 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 Ae(e){return a(e)&&(e={property:e}),new Fe(e)}ee.define(Fe);const ze=Object.freeze({locate:u()}),Ne={toView:e=>e?"true":"false",fromView:e=>null!=e&&"false"!==e&&!1!==e&&0!==e};function Le(e){if(null==e)return null;const t=1*e;return isNaN(t)?null:t}const Oe={toView(e){const t=Le(e);return t?t.toString():t},fromView:Le};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=Ne)}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 Re={mode:"open"},Me={},He=new Set,Ve=c.getById(r.elementRegistry,()=>h());class je{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?Re:null===t.shadowOptions?void 0:Object.assign(Object.assign({},Re),t.shadowOptions),this.elementOptions=void 0===t.elementOptions?Me:Object.assign(Object.assign({},Me),t.elementOptions),this.styles=L.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 je(class extends e{},t):new je(e,t)}static registerBaseType(e){He.add(e)}}je.getByType=Ve.getByType,je.getForInstance=Ve.getForInstance;const _e={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},_e),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=je.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(L.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(Kh){}L.setDefaultStrategy(Ye)}else L.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 je.registerBaseType(t),t}const ot=Object.assign(tt(HTMLElement),{from:function(e){return tt(e)},define:function(e,t){return i(e)?je.compose(e,t).define().type:je.compose(this,e).define().type},compose:function(e,t){return i(e)?je.compose(e,t):je.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 ${Ae({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=_`
|
|
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 Ft=Object.defineProperty,At=Object.getOwnPropertyDescriptor,zt=(e,t,o,r)=>{for(var i,a=r>1?void 0:r?At(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&&Ft(t,o,a),a};class Nt extends ft{constructor(){super(...arguments),this.block=!1}}zt([Ee],Nt.prototype,"size",2),zt([Ee({mode:"boolean"})],Nt.prototype,"block",2),zt([Ee({attribute:"expand-icon-position"})],Nt.prototype,"expandIconPosition",2);const Lt={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 Rt{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 Mt{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 Mt(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 Mt(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 Mt(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 Mt(this,o,e,t)),this.dispatch(new Mt(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 Mt(this,1,t,e.evaluator.value)),this.dispatch(new Mt(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 Mt(this,2,e)),t!==o&&this.dispatch(new Mt(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 Mt(this,2,i))),n&&(e=new Mt(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 Mt(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 Mt(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 Rt(e,Et.getOrCreate(t),this,o?{handleChange:()=>{if(r.value!==r.update().value){const e=new Mt(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 jt extends Vt{constructor(){super();const e=new CSSStyleSheet;this.target=e.cssRules[e.insertRule(":root{}")].style,document.adoptedStyleSheets=[...document.adoptedStyleSheets,e]}}class _t 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=L.supportsAdoptedStyleSheets?class extends Vt{constructor(e){super();const t=new CSSStyleSheet;this.target=t.cssRules[t.insertRule(":host{}")].style,e.$fastController.addStyles(new L([t]))}}:Gt,Ut=Object.freeze({getOrCreate(e){if(Xt.has(e))return Xt.get(e);let t;return t=e instanceof Document?L.supportsAdoptedStyleSheets?new jt:new _t: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"),Fo=eo("fontFamilyNumeric"),Ao=eo("fontWeightRegular"),zo=eo("fontWeightMedium"),No=eo("fontWeightSemibold"),Lo=eo("fontWeightBold"),Oo=eo("strokeWidthThin"),Do=eo("strokeWidthThick"),Eo=eo("strokeWidthThicker"),Ro=eo("strokeWidthThickest"),Mo=eo("spacingHorizontalNone"),Ho=eo("spacingHorizontalXXS"),Vo=eo("spacingHorizontalXS"),jo=eo("spacingHorizontalSNudge"),_o=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"),Fr=eo("colorNeutralForeground2Selected"),Ar=eo("colorNeutralForeground2BrandHover"),zr=eo("colorNeutralForeground2BrandPressed"),Nr=eo("colorNeutralForeground2BrandSelected"),Lr=eo("colorNeutralForeground3"),Or=eo("colorNeutralForeground3Hover"),Dr=eo("colorNeutralForeground3Pressed"),Er=eo("colorNeutralForeground3Selected"),Rr=eo("colorNeutralForeground3BrandHover"),Mr=eo("colorNeutralForeground3BrandPressed"),Hr=eo("colorNeutralForeground3BrandSelected"),Vr=eo("colorNeutralForeground4"),jr=eo("colorNeutralForegroundDisabled"),_r=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"),Fi=eo("colorNeutralBackground3"),Ai=eo("colorNeutralBackground3Hover"),zi=eo("colorNeutralBackground3Pressed"),Ni=eo("colorNeutralBackground3Selected"),Li=eo("colorNeutralBackground4"),Oi=eo("colorNeutralBackground4Hover"),Di=eo("colorNeutralBackground4Pressed"),Ei=eo("colorNeutralBackground4Selected"),Ri=eo("colorNeutralBackground5"),Mi=eo("colorNeutralBackground5Hover"),Hi=eo("colorNeutralBackground5Pressed"),Vi=eo("colorNeutralBackground5Selected"),ji=eo("colorNeutralBackground6"),_i=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"),Fa=eo("colorNeutralStrokeAccessibleSelected"),Aa=eo("colorNeutralStroke1"),za=eo("colorNeutralStroke1Hover"),Na=eo("colorNeutralStroke1Pressed"),La=eo("colorNeutralStroke1Selected"),Oa=eo("colorNeutralStroke2"),Da=eo("colorNeutralStroke3"),Ea=eo("colorNeutralStrokeOnBrand"),Ra=eo("colorNeutralStrokeOnBrand2"),Ma=eo("colorNeutralStrokeOnBrand2Hover"),Ha=eo("colorNeutralStrokeOnBrand2Pressed"),Va=eo("colorNeutralStrokeOnBrand2Selected"),ja=eo("colorBrandStroke1"),_a=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"),Fn=eo("colorPaletteDarkOrangeForeground1"),An=eo("colorPaletteDarkOrangeForeground2"),zn=eo("colorPaletteDarkOrangeForeground3"),Nn=eo("colorPaletteDarkOrangeBorderActive"),Ln=eo("colorPaletteDarkOrangeBorder1"),On=eo("colorPaletteDarkOrangeBorder2"),Dn=eo("colorPaletteYellowBackground1"),En=eo("colorPaletteYellowBackground2"),Rn=eo("colorPaletteYellowBackground3"),Mn=eo("colorPaletteYellowForeground1"),Hn=eo("colorPaletteYellowForeground2"),Vn=eo("colorPaletteYellowForeground3"),jn=eo("colorPaletteYellowBorderActive"),_n=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"),Fs=eo("colorPaletteGoldBackground2"),As=eo("colorPaletteGoldForeground2"),zs=eo("colorPaletteGoldBorderActive"),Ns=eo("colorPaletteBrassBackground2"),Ls=eo("colorPaletteBrassForeground2"),Os=eo("colorPaletteBrassBorderActive"),Ds=eo("colorPaletteBrownBackground2"),Es=eo("colorPaletteBrownForeground2"),Rs=eo("colorPaletteBrownBorderActive"),Ms=eo("colorPaletteForestBackground2"),Hs=eo("colorPaletteForestForeground2"),Vs=eo("colorPaletteForestBorderActive"),js=eo("colorPaletteSeafoamBackground2"),_s=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"),Fl=eo("colorPaletteMagentaBackground2"),Al=eo("colorPaletteMagentaForeground2"),zl=eo("colorPaletteMagentaBorderActive"),Nl=eo("colorPalettePlumBackground2"),Ll=eo("colorPalettePlumForeground2"),Ol=eo("colorPalettePlumBorderActive"),Dl=eo("colorPaletteBeigeBackground2"),El=eo("colorPaletteBeigeForeground2"),Rl=eo("colorPaletteBeigeBorderActive"),Ml=eo("colorPaletteMinkBackground2"),Hl=eo("colorPaletteMinkForeground2"),Vl=eo("colorPaletteMinkBorderActive"),jl=eo("colorPalettePlatinumBackground2"),_l=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:Fo,fontWeightRegular:Ao,fontWeightMedium:zo,fontWeightSemibold:No,fontWeightBold:Lo,strokeWidthThin:Oo,strokeWidthThick:Do,strokeWidthThicker:Eo,strokeWidthThickest:Ro,spacingHorizontalNone:Mo,spacingHorizontalXXS:Ho,spacingHorizontalXS:Vo,spacingHorizontalSNudge:jo,spacingHorizontalS:_o,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:Fr,colorNeutralForeground2BrandHover:Ar,colorNeutralForeground2BrandPressed:zr,colorNeutralForeground2BrandSelected:Nr,colorNeutralForeground3:Lr,colorNeutralForeground3Hover:Or,colorNeutralForeground3Pressed:Dr,colorNeutralForeground3Selected:Er,colorNeutralForeground3BrandHover:Rr,colorNeutralForeground3BrandPressed:Mr,colorNeutralForeground3BrandSelected:Hr,colorNeutralForeground4:Vr,colorNeutralForegroundDisabled:jr,colorNeutralForegroundInvertedDisabled:_r,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:Fi,colorNeutralBackground3Hover:Ai,colorNeutralBackground3Pressed:zi,colorNeutralBackground3Selected:Ni,colorNeutralBackground4:Li,colorNeutralBackground4Hover:Oi,colorNeutralBackground4Pressed:Di,colorNeutralBackground4Selected:Ei,colorNeutralBackground5:Ri,colorNeutralBackground5Hover:Mi,colorNeutralBackground5Pressed:Hi,colorNeutralBackground5Selected:Vi,colorNeutralBackground6:ji,colorNeutralBackgroundInverted:_i,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:Fa,colorNeutralStroke1:Aa,colorNeutralStroke1Hover:za,colorNeutralStroke1Pressed:Na,colorNeutralStroke1Selected:La,colorNeutralStroke2:Oa,colorNeutralStroke3:Da,colorNeutralStrokeOnBrand:Ea,colorNeutralStrokeOnBrand2:Ra,colorNeutralStrokeOnBrand2Hover:Ma,colorNeutralStrokeOnBrand2Pressed:Ha,colorNeutralStrokeOnBrand2Selected:Va,colorBrandStroke1:ja,colorBrandStroke2:_a,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:Fn,colorPaletteDarkOrangeForeground2:An,colorPaletteDarkOrangeForeground3:zn,colorPaletteDarkOrangeBorderActive:Nn,colorPaletteDarkOrangeBorder1:Ln,colorPaletteDarkOrangeBorder2:On,colorPaletteYellowBackground1:Dn,colorPaletteYellowBackground2:En,colorPaletteYellowBackground3:Rn,colorPaletteYellowForeground1:Mn,colorPaletteYellowForeground2:Hn,colorPaletteYellowForeground3:Vn,colorPaletteYellowBorderActive:jn,colorPaletteYellowBorder1:_n,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:Fs,colorPaletteGoldForeground2:As,colorPaletteGoldBorderActive:zs,colorPaletteBrassBackground2:Ns,colorPaletteBrassForeground2:Ls,colorPaletteBrassBorderActive:Os,colorPaletteBrownBackground2:Ds,colorPaletteBrownForeground2:Es,colorPaletteBrownBorderActive:Rs,colorPaletteForestBackground2:Ms,colorPaletteForestForeground2:Hs,colorPaletteForestBorderActive:Vs,colorPaletteSeafoamBackground2:js,colorPaletteSeafoamForeground2:_s,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:Fl,colorPaletteMagentaForeground2:Al,colorPaletteMagentaBorderActive:zl,colorPalettePlumBackground2:Nl,colorPalettePlumForeground2:Ll,colorPalettePlumBorderActive:Ol,colorPaletteBeigeBackground2:Dl,colorPaletteBeigeForeground2:El,colorPaletteBeigeBorderActive:Rl,colorPaletteMinkBackground2:Ml,colorPaletteMinkForeground2:Hl,colorPaletteMinkBorderActive:Vl,colorPalettePlatinumBackground2:jl,colorPalettePlatinumForeground2:_l,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=_`
|
|
5
|
-
${
|
|
6
|
-
|
|
7
|
-
:host{max-width:fit-content;contain:content}.heading{height:44px;display:grid;position:relative;vertical-align:middle;padding-inline:${
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
1
|
+
let hr;const ps="fast-kernel";try{if(document.currentScript)hr=document.currentScript.getAttribute(ps);else{const o=document.getElementsByTagName("script");hr=o[o.length-1].getAttribute(ps)}}catch{hr="isolate"}let xt;switch(hr){case"share":xt=Object.freeze({updateQueue:1,observable:2,contextEvent:3,elementRegistry:4});break;case"share-v2":xt=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)}`;xt=Object.freeze({updateQueue:`1.2${o}`,observable:`2.2${o}`,contextEvent:`3.2${o}`,elementRegistry:`4.2${o}`});break}const st=o=>typeof o=="function",Ke=o=>typeof o=="string",eg=()=>{};var Aa=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};(function(){if(!(typeof globalThis<"u"))if(typeof Aa<"u")Aa.globalThis=Aa;else if(typeof self<"u")self.globalThis=self;else if(typeof window<"u")window.globalThis=window;else{const e=new Function("return this")();e.globalThis=e}})();const gs={configurable:!1,enumerable:!1,writable:!1};globalThis.FAST===void 0&&Reflect.defineProperty(globalThis,"FAST",Object.assign({value:Object.create(null)},gs));const Q=globalThis.FAST;if(Q.getById===void 0){const o=Object.create(null);Reflect.defineProperty(Q,"getById",Object.assign({value(e,t){let r=o[e];return r===void 0&&(r=t?o[e]=t():null),r}},gs))}Q.error===void 0&&Object.assign(Q,{warn(){},error(o){return new Error(`Error ${o}`)},addMessages(){}});const fs=Object.freeze([]);function Ia(){const o=new Map;return Object.freeze({register(e){return o.has(e.type)?!1:(o.set(e.type,e),!0)},getByType(e){return o.get(e)},getForInstance(e){if(e!=null)return o.get(e.constructor)}})}function bs(){const o=new WeakMap;return function(e){let t=o.get(e);if(t===void 0){let r=Reflect.getPrototypeOf(e);for(;t===void 0&&r!==null;)t=o.get(r),r=Reflect.getPrototypeOf(r);t=t===void 0?[]:t.slice(0),o.set(e,t)}return t}}function Zt(o){o.prototype.toJSON=eg}const re=Object.freeze({none:0,attribute:1,booleanAttribute:2,property:3,content:4,tokenList:5,event:6}),vs=o=>o,tg=globalThis.trustedTypes?globalThis.trustedTypes.createPolicy("fast-html",{createHTML:vs}):{createHTML:vs};let pr=Object.freeze({createHTML(o){return tg.createHTML(o)},protect(o,e,t,r){return r}});const og=pr,Jt=Object.freeze({get policy(){return pr},setPolicy(o){if(pr!==og)throw Q.error(1201);pr=o},setAttribute(o,e,t){t==null?o.removeAttribute(e):o.setAttribute(e,t)},setBooleanAttribute(o,e,t){t?o.setAttribute(e,""):o.removeAttribute(e)}}),ve=Q.getById(xt.updateQueue,()=>{const o=[],e=[],t=globalThis.requestAnimationFrame;let r=!0;function a(){if(e.length)throw e.shift()}function n(u){try{u.call()}catch(d){if(r)e.push(d),setTimeout(a,0);else throw o.length=0,d}}function i(){let d=0;for(;d<o.length;)if(n(o[d]),d++,d>1024){for(let l=0,h=o.length-d;l<h;l++)o[l]=o[l+d];o.length-=d,d=0}o.length=0}function c(u){o.push(u),o.length<2&&(r?t(i):i())}return Object.freeze({enqueue:c,next:()=>new Promise(c),process:i,setMode:u=>r=u})});class za{constructor(e,t){this.sub1=void 0,this.sub2=void 0,this.spillover=void 0,this.subject=e,this.sub1=t}has(e){return this.spillover===void 0?this.sub1===e||this.sub2===e:this.spillover.indexOf(e)!==-1}subscribe(e){const t=this.spillover;if(t===void 0){if(this.has(e))return;if(this.sub1===void 0){this.sub1=e;return}if(this.sub2===void 0){this.sub2=e;return}this.spillover=[this.sub1,this.sub2,e],this.sub1=void 0,this.sub2=void 0}else t.indexOf(e)===-1&&t.push(e)}unsubscribe(e){const t=this.spillover;if(t===void 0)this.sub1===e?this.sub1=void 0:this.sub2===e&&(this.sub2=void 0);else{const r=t.indexOf(e);r!==-1&&t.splice(r,1)}}notify(e){const t=this.spillover,r=this.subject;if(t===void 0){const a=this.sub1,n=this.sub2;a!==void 0&&a.handleChange(r,e),n!==void 0&&n.handleChange(r,e)}else for(let a=0,n=t.length;a<n;++a)t[a].handleChange(r,e)}}class ms{constructor(e){this.subscribers={},this.subjectSubscribers=null,this.subject=e}notify(e){var t,r;(t=this.subscribers[e])===null||t===void 0||t.notify(e),(r=this.subjectSubscribers)===null||r===void 0||r.notify(e)}subscribe(e,t){var r,a;let n;t?n=(r=this.subscribers[t])!==null&&r!==void 0?r:this.subscribers[t]=new za(this.subject):n=(a=this.subjectSubscribers)!==null&&a!==void 0?a:this.subjectSubscribers=new za(this.subject),n.subscribe(e)}unsubscribe(e,t){var r,a;t?(r=this.subscribers[t])===null||r===void 0||r.unsubscribe(e):(a=this.subjectSubscribers)===null||a===void 0||a.unsubscribe(e)}}const Na=Object.freeze({unknown:void 0,coupled:1}),C=Q.getById(xt.observable,()=>{const o=ve.enqueue,e=/(:|&&|\|\||if|\?\.)/,t=new WeakMap;let r,a=d=>{throw Q.error(1101)};function n(d){var l;let h=(l=d.$fastController)!==null&&l!==void 0?l:t.get(d);return h===void 0&&(Array.isArray(d)?h=a(d):t.set(d,h=new ms(d))),h}const i=bs();class c{constructor(l){this.name=l,this.field=`_${l}`,this.callback=`${l}Changed`}getValue(l){return r!==void 0&&r.watch(l,this.name),l[this.field]}setValue(l,h){const p=this.field,f=l[p];if(f!==h){l[p]=h;const b=l[this.callback];st(b)&&b.call(l,f,h),n(l).notify(this.name)}}}class u extends za{constructor(l,h,p=!1){super(l,h),this.expression=l,this.isVolatileBinding=p,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 h=this.observe(l.source,l.context);return!l.isBound&&this.requiresUnbind(l)&&l.onUnbind(this),h}requiresUnbind(l){return l.sourceLifetime!==Na.coupled||this.first!==this.last||this.first.propertySource!==l.source}unbind(l){this.dispose()}observe(l,h){this.needsRefresh&&this.last!==null&&this.dispose();const p=r;r=this.needsRefresh?this:void 0,this.needsRefresh=this.isVolatileBinding;let f;try{f=this.expression(l,h)}finally{r=p}return f}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,h){const p=this.last,f=n(l),b=p===null?this.first:{};if(b.propertySource=l,b.propertyName=h,b.notifier=f,f.subscribe(this,h),p!==null){if(!this.needsRefresh){let $;r=void 0,$=p.propertySource[p.propertyName],r=this,l===$&&(this.needsRefresh=!0)}p.next=b}this.last=b}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 Zt(u),Object.freeze({setArrayObserverFactory(d){a=d},getNotifier:n,track(d,l){r&&r.watch(d,l)},trackVolatile(){r&&(r.needsRefresh=!0)},notify(d,l){n(d).notify(l)},defineProperty(d,l){Ke(l)&&(l=new c(l)),i(d).push(l),Reflect.defineProperty(d,l.name,{enumerable:!0,get(){return l.getValue(this)},set(h){l.setValue(this,h)}})},getAccessors:i,binding(d,l,h=this.isVolatileBinding(d)){return new u(d,l,h)},isVolatileBinding(d){return e.test(d.toString())}})});function m(o,e){C.defineProperty(o,e)}const ys=Q.getById(xt.contextEvent,()=>{let o=null;return{get(){return o},set(e){o=e}}}),Co=Object.freeze({default:{index:0,length:0,get event(){return Co.getEvent()},eventDetail(){return this.event.detail},eventTarget(){return this.event.target}},getEvent(){return ys.get()},setEvent(o){ys.set(o)}});class gr{constructor(e,t,r=!1){this.evaluate=e,this.policy=t,this.isVolatile=r}}class rg extends gr{createObserver(e){return C.binding(this.evaluate,e,this.isVolatile)}}function $s(o,e,t=C.isVolatileBinding(o)){return new rg(o,e,t)}class ks extends gr{createObserver(){return this}bind(e){return this.evaluate(e.source,e.context)}}Zt(ks);function xs(o,e){return new ks(o,e)}let Bs;function ws(o){return o.map(e=>e instanceof be?ws(e.styles):[e]).reduce((e,t)=>e.concat(t),[])}class be{constructor(e){this.styles=e,this.targets=new WeakSet,this._strategy=null,this.behaviors=e.map(t=>t instanceof be?t.behaviors:null).reduce((t,r)=>r===null?t:t===null?r:t.concat(r),null)}get strategy(){return this._strategy===null&&this.withStrategy(Bs),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=this.behaviors===null?e:this.behaviors.concat(e),this}withStrategy(e){return this._strategy=new e(ws(this.styles)),this}static setDefaultStrategy(e){Bs=e}static normalize(e){return e===void 0?void 0:Array.isArray(e)?new be(e):e instanceof be?e:new be([e])}}be.supportsAdoptedStyleSheets=Array.isArray(document.adoptedStyleSheets)&&"replace"in CSSStyleSheet.prototype;const La=Ia(),Da=Object.freeze({getForInstance:La.getForInstance,getByType:La.getByType,define(o){return La.register({type:o}),o}});function Oa(o,e,t){e.source.style.setProperty(o.targetAspect,t.bind(e))}class Ea{constructor(e,t){this.dataBinding=e,this.targetAspect=t}createCSS(e){return e(this),`var(${this.targetAspect})`}addedCallback(e){var t;const r=e.source;if(!r.$cssBindings){r.$cssBindings=new Map;const n=r.setAttribute;r.setAttribute=(i,c)=>{n.call(r,i,c),i==="style"&&r.$cssBindings.forEach((u,d)=>Oa(d,u.controller,u.observer))}}const a=(t=e[this.targetAspect])!==null&&t!==void 0?t:e[this.targetAspect]=this.dataBinding.createObserver(this,this);a.controller=e,e.source.$cssBindings.set(this,{controller:e,observer:a})}connectedCallback(e){Oa(this,e,e[this.targetAspect])}removedCallback(e){e.source.$cssBindings&&e.source.$cssBindings.delete(this)}handleChange(e,t){Oa(this,t.controller,t)}}Da.define(Ea);const ag=`${Math.random().toString(36).substring(2,8)}`;let ng=0;const Ss=()=>`--v${ag}${++ng}`;function Ps(o,e){const t=[];let r="";const a=[],n=i=>{a.push(i)};for(let i=0,c=o.length-1;i<c;++i){r+=o[i];let u=e[i];st(u)?u=new Ea($s(u),Ss()).createCSS(n):u instanceof gr?u=new Ea(u,Ss()).createCSS(n):Da.getForInstance(u)!==void 0&&(u=u.createCSS(n)),u instanceof be||u instanceof CSSStyleSheet?(r.trim()!==""&&(t.push(r),r=""),t.push(u)):r+=u}return r+=o[o.length-1],r.trim()!==""&&t.push(r),{styles:t,behaviors:a}}const g=(o,...e)=>{const{styles:t,behaviors:r}=Ps(o,e),a=new be(t);return r.length?a.withBehaviors(...r):a};class Cs{constructor(e,t){this.behaviors=t,this.css="";const r=e.reduce((a,n)=>(Ke(n)?this.css+=n:a.push(n),a),[]);r.length&&(this.styles=new be(r))}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)}}Da.define(Cs),g.partial=(o,...e)=>{const{styles:t,behaviors:r}=Ps(o,e);return new Cs(t,r)};const Ma=`fast-${Math.random().toString(36).substring(2,8)}`,fr=`${Ma}{`,Fo=`}${Ma}`,ig=Fo.length;let sg=0;const Ha=()=>`${Ma}-${++sg}`,Fs=Object.freeze({interpolation:o=>`${fr}${o}${Fo}`,attribute:o=>`${Ha()}="${fr}${o}${Fo}"`,comment:o=>`<!--${fr}${o}${Fo}-->`}),br=Object.freeze({parse(o,e){const t=o.split(fr);if(t.length===1)return null;const r=[];for(let a=0,n=t.length;a<n;++a){const i=t[a],c=i.indexOf(Fo);let u;if(c===-1)u=i;else{const d=i.substring(0,c);r.push(e[d]),u=i.substring(c+ig)}u!==""&&r.push(u)}return r}}),_a=Ia(),De=Object.freeze({getForInstance:_a.getForInstance,getByType:_a.getByType,define(o,e){return e=e||{},e.type=o,_a.register(e),o},assignAspect(o,e){if(!e){o.aspectType=re.content;return}switch(o.sourceAspect=e,e[0]){case":":o.targetAspect=e.substring(1),o.aspectType=o.targetAspect==="classList"?re.tokenList:re.property;break;case"?":o.targetAspect=e.substring(1),o.aspectType=re.booleanAttribute;break;case"@":o.targetAspect=e.substring(1),o.aspectType=re.event;break;default:o.targetAspect=e,o.aspectType=re.attribute;break}}});class Ra{constructor(e){this.options=e}createHTML(e){return Fs.attribute(e(this))}createBehavior(){return this}}Zt(Ra);function lg(o,e,t,r){if(t==null&&(t=""),t.create){o.textContent="";let a=o.$fastView;a===void 0?a=t.create():o.$fastTemplate!==t&&(a.isComposed&&(a.remove(),a.unbind()),a=t.create()),a.isComposed?a.needsBindOnly&&(a.needsBindOnly=!1,a.bind(r.source,r.context)):(a.isComposed=!0,a.bind(r.source,r.context),a.insertBefore(o),o.$fastView=a,o.$fastTemplate=t)}else{const a=o.$fastView;a!==void 0&&a.isComposed&&(a.isComposed=!1,a.remove(),a.needsBindOnly?a.needsBindOnly=!1:a.unbind()),o.textContent=t}}function cg(o,e,t){var r;const a=`${this.id}-t`,n=(r=o[a])!==null&&r!==void 0?r:o[a]={v:0,cv:Object.create(null)},i=n.cv;let c=n.v;const u=o[e];if(t!=null&&t.length){const d=t.split(/\s+/);for(let l=0,h=d.length;l<h;++l){const p=d[l];p!==""&&(i[p]=c,u.add(p))}}if(n.v=c+1,c!==0){c-=1;for(const d in i)i[d]===c&&u.remove(d)}}const dg={[re.attribute]:Jt.setAttribute,[re.booleanAttribute]:Jt.setBooleanAttribute,[re.property]:(o,e,t)=>o[e]=t,[re.content]:lg,[re.tokenList]:cg,[re.event]:()=>{}};class eo{constructor(e){this.dataBinding=e,this.updateTarget=null,this.aspectType=re.content}createHTML(e){return Fs.interpolation(e(this))}createBehavior(){var e;if(this.updateTarget===null){const t=dg[this.aspectType],r=(e=this.dataBinding.policy)!==null&&e!==void 0?e:this.policy;if(!t)throw Q.error(1205);this.data=`${this.id}-d`,this.updateTarget=r.protect(this.targetTagName,this.aspectType,this.targetAspect,t)}return this}bind(e){var t;const r=e.targets[this.targetNodeId];switch(this.aspectType){case re.event:r[this.data]=e,r.addEventListener(this.targetAspect,this,this.dataBinding.options);break;case re.content:e.onUnbind(this);default:const a=(t=r[this.data])!==null&&t!==void 0?t:r[this.data]=this.dataBinding.createObserver(this,this);a.target=r,a.controller=e,this.updateTarget(r,this.targetAspect,a.bind(e),e);break}}unbind(e){const r=e.targets[this.targetNodeId].$fastView;r!==void 0&&r.isComposed&&(r.unbind(),r.needsBindOnly=!0)}handleEvent(e){const t=e.currentTarget[this.data];if(t.isBound){Co.setEvent(e);const r=this.dataBinding.evaluate(t.source,t.context);Co.setEvent(null),r!==!0&&e.preventDefault()}}handleChange(e,t){const r=t.target,a=t.controller;this.updateTarget(r,this.targetAspect,t.bind(a),a)}}De.define(eo,{aspected:!0});function Ts(o,e){const t=o.parentNode;let r=o,a;for(;r!==e;)a=r.nextSibling,t.removeChild(r),r=a;t.removeChild(e)}class vr{constructor(e,t,r){this.fragment=e,this.factories=t,this.targets=r,this.behaviors=null,this.unbindables=[],this.source=null,this.isBound=!1,this.sourceLifetime=Na.unknown,this.context=this,this.index=0,this.length=0,this.firstChild=e.firstChild,this.lastChild=e.lastChild}get event(){return Co.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(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 r=e.parentNode;let a=this.firstChild,n;for(;a!==t;)n=a.nextSibling,r.insertBefore(a,e),a=n;r.insertBefore(t,e)}}remove(){const e=this.fragment,t=this.lastChild;let r=this.firstChild,a;for(;r!==t;)a=r.nextSibling,e.appendChild(r),r=a;e.appendChild(t)}dispose(){Ts(this.firstChild,this.lastChild),this.unbind()}onUnbind(e){this.unbindables.push(e)}bind(e,t=this){if(this.source===e)return;let r=this.behaviors;if(r===null){this.source=e,this.context=t,this.behaviors=r=new Array(this.factories.length);const a=this.factories;for(let n=0,i=a.length;n<i;++n){const c=a[n].createBehavior();c.bind(this),r[n]=c}}else{this.source!==null&&this.evaluateUnbindables(),this.isBound=!1,this.source=e,this.context=t;for(let a=0,n=r.length;a<n;++a)r[a].bind(this)}this.isBound=!0}unbind(){!this.isBound||this.source===null||(this.evaluateUnbindables(),this.source=null,this.context=this,this.isBound=!1)}evaluateUnbindables(){const e=this.unbindables;for(let t=0,r=e.length;t<r;++t)e[t].unbind(this);e.length=0}static disposeContiguousBatch(e){if(e.length!==0){Ts(e[0].firstChild,e[e.length-1].lastChild);for(let t=0,r=e.length;t<r;++t)e[t].unbind()}}}Zt(vr),C.defineProperty(vr.prototype,"index"),C.defineProperty(vr.prototype,"length");const As=(o,e)=>`${o}.${e}`,Is={},Oe={index:0,node:null};function zs(o){o.startsWith("fast-")||Q.warn(1204,{name:o})}const ug=new Proxy(document.createElement("div"),{get(o,e){zs(e);const t=Reflect.get(o,e);return st(t)?t.bind(o):t},set(o,e,t){return zs(e),Reflect.set(o,e,t)}});class hg{constructor(e,t,r){this.fragment=e,this.directives=t,this.policy=r,this.proto=null,this.nodeIds=new Set,this.descriptors={},this.factories=[]}addFactory(e,t,r,a,n){var i,c;this.nodeIds.has(r)||(this.nodeIds.add(r),this.addTargetDescriptor(t,r,a)),e.id=(i=e.id)!==null&&i!==void 0?i:Ha(),e.targetNodeId=r,e.targetTagName=n,e.policy=(c=e.policy)!==null&&c!==void 0?c:this.policy,this.factories.push(e)}freeze(){return this.proto=Object.create(null,this.descriptors),this}addTargetDescriptor(e,t,r){const a=this.descriptors;if(t==="r"||t==="h"||a[t])return;if(!a[e]){const i=e.lastIndexOf("."),c=e.substring(0,i),u=parseInt(e.substring(i+1));this.addTargetDescriptor(c,e,u)}let n=Is[t];if(!n){const i=`_${t}`;Is[t]=n={get(){var c;return(c=this[i])!==null&&c!==void 0?c:this[i]=this[e].childNodes[r]}}}a[t]=n}createView(e){const t=this.fragment.cloneNode(!0),r=Object.create(this.proto);r.r=t,r.h=e??ug;for(const a of this.nodeIds)r[a];return new vr(t,this.factories,r)}}function Ns(o,e,t,r,a,n=!1){const i=t.attributes,c=o.directives;for(let u=0,d=i.length;u<d;++u){const l=i[u],h=l.value,p=br.parse(h,c);let f=null;p===null?n&&(f=new eo(xs(()=>h,o.policy)),De.assignAspect(f,l.name)):f=Va.aggregate(p,o.policy),f!==null&&(t.removeAttributeNode(l),u--,d--,o.addFactory(f,e,r,a,t.tagName))}}function pg(o,e,t,r,a){const n=br.parse(e.textContent,o.directives);if(n===null)return Oe.node=e.nextSibling,Oe.index=a+1,Oe;let i,c=i=e;for(let u=0,d=n.length;u<d;++u){const l=n[u];u!==0&&(a++,r=As(t,a),i=c.parentNode.insertBefore(document.createTextNode(""),c.nextSibling)),Ke(l)?i.textContent=l:(i.textContent=" ",De.assignAspect(l),o.addFactory(l,t,r,a,null)),c=i}return Oe.index=a+1,Oe.node=c.nextSibling,Oe}function Ls(o,e,t){let r=0,a=e.firstChild;for(;a;){const n=gg(o,t,a,r);a=n.node,r=n.index}}function gg(o,e,t,r){const a=As(e,r);switch(t.nodeType){case 1:Ns(o,e,t,a,r),Ls(o,t,a);break;case 3:return pg(o,t,e,a,r);case 8:const n=br.parse(t.data,o.directives);n!==null&&o.addFactory(Va.aggregate(n),e,a,r,null);break}return Oe.index=r+1,Oe.node=t.nextSibling,Oe}function fg(o,e){return o&&o.nodeType==8&&br.parse(o.data,e)!==null}const Ds="TEMPLATE",Va={compile(o,e,t=Jt.policy){let r;if(Ke(o)){r=document.createElement(Ds),r.innerHTML=t.createHTML(o);const i=r.content.firstElementChild;i!==null&&i.tagName===Ds&&(r=i)}else r=o;!r.content.firstChild&&!r.content.lastChild&&r.content.appendChild(document.createComment(""));const a=document.adoptNode(r.content),n=new hg(a,e,t);return Ns(n,"",r,"h",0,!0),(fg(a.firstChild,e)||a.childNodes.length===1&&Object.keys(e).length>0)&&a.insertBefore(document.createComment(""),a.firstChild),Ls(n,a,"r"),Oe.node=null,n.freeze()},setDefaultStrategy(o){this.compile=o},aggregate(o,e=Jt.policy){if(o.length===1)return o[0];let t,r,a=!1,n;const i=o.length,c=o.map(l=>Ke(l)?()=>l:(t=l.sourceAspect||t,r=l.dataBinding||r,a=a||l.dataBinding.isVolatile,n=n||l.dataBinding.policy,l.dataBinding.evaluate)),u=(l,h)=>{let p="";for(let f=0;f<i;++f)p+=c[f](l,h);return p};r.evaluate=u,r.isVolatile=a,r.policy=n??e;const d=new eo(r);return De.assignAspect(d,t),d}},bg=/([ \x09\x0a\x0c\x0d])([^\0-\x1F\x7F-\x9F "'>=/]+)([ \x09\x0a\x0c\x0d]*=[ \x09\x0a\x0c\x0d]*(?:[^ \x09\x0a\x0c\x0d"'`<>=]*|"[^"]*|'[^']*))$/,vg=Object.create(null);class Bt{constructor(e,t=vg){this.html=e,this.factories=t}createHTML(e){const t=this.factories;for(const r in t)e(t[r]);return this.html}}Bt.empty=new Bt(""),De.define(Bt);function mg(o,e,t,r=De.getForInstance(o)){if(r.aspected){const a=bg.exec(e);a!==null&&De.assignAspect(o,a[2])}return o.createHTML(t)}class Pa{constructor(e,t={},r){this.policy=r,this.result=null,this.html=e,this.factories=t}create(e){return this.result===null&&(this.result=Va.compile(this.html,this.factories,this.policy)),this.result.createView(e)}inline(){return new Bt(Ke(this.html)?this.html:this.html.innerHTML,this.factories)}withPolicy(e){if(this.result)throw Q.error(1208);if(this.policy)throw Q.error(1207);return this.policy=e,this}render(e,t,r){const a=this.create(r);return a.bind(e),a.appendTo(t),a}static create(e,t,r){let a="";const n=Object.create(null),i=c=>{var u;const d=(u=c.id)!==null&&u!==void 0?u:c.id=Ha();return n[d]=c,d};for(let c=0,u=e.length-1;c<u;++c){const d=e[c];let l=t[c],h;if(a+=d,st(l))l=new eo($s(l));else if(l instanceof gr)l=new eo(l);else if(!(h=De.getForInstance(l))){const p=l;l=new eo(xs(()=>p))}a+=mg(l,d,i,h)}return new Pa(a+e[e.length-1],n,r)}}Zt(Pa);const v=(o,...e)=>{if(Array.isArray(o)&&Array.isArray(o.raw))return Pa.create(o,e);throw Q.error(1206)};v.partial=o=>new Bt(o);class Os extends Ra{bind(e){e.source[this.options]=e.targets[this.targetNodeId]}}De.define(Os);const we=o=>new Os(o),yg=()=>null;function Es(o){return o===void 0?yg:st(o)?o:()=>o}function To(o,e,t){const r=st(o)?o:()=>o,a=Es(e),n=Es(t);return(i,c)=>r(i,c)?a(i,c):n(i,c)}const $g=o=>o.nodeType===1,to=o=>o?e=>e.nodeType===1&&e.matches(o):$g;class kg extends Ra{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,fs),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}}const Ms="slotchange";class Hs extends kg{observe(e){e.addEventListener(Ms,this)}disconnect(e){e.removeEventListener(Ms,this)}getNodes(e){return e.assignedNodes(this.options)}handleEvent(e){const t=e.currentTarget;this.updateTarget(this.getSource(t),this.computeNodes(t))}}De.define(Hs);function Z(o){return Ke(o)&&(o={property:o}),new Hs(o)}const _s="boolean",Rs="reflect",mr=Object.freeze({locate:bs()}),Vs={toView(o){return o?"true":"false"},fromView(o){return!(o==null||o==="false"||o===!1||o===0)}};function js(o){if(o==null)return null;const e=o*1;return isNaN(e)?null:e}const me={toView(o){const e=js(o);return e&&e.toString()},fromView:js};class Ca{constructor(e,t,r=t.toLowerCase(),a=Rs,n){this.guards=new Set,this.Owner=e,this.name=t,this.attribute=r,this.mode=a,this.converter=n,this.fieldName=`_${t}`,this.callbackName=`${t}Changed`,this.hasCallback=this.callbackName in e.prototype,a===_s&&n===void 0&&(this.converter=Vs)}setValue(e,t){const r=e[this.fieldName],a=this.converter;a!==void 0&&(t=a.fromView(t)),r!==t&&(e[this.fieldName]=t,this.tryReflectToAttribute(e),this.hasCallback&&e[this.callbackName](r,t),e.$fastController.notify(this.name))}getValue(e){return C.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,r=this.guards;r.has(e)||t==="fromView"||ve.enqueue(()=>{r.add(e);const a=e[this.fieldName];switch(t){case Rs:const n=this.converter;Jt.setAttribute(e,this.attribute,n!==void 0?n.toView(a):a);break;case _s:Jt.setBooleanAttribute(e,this.attribute,a);break}r.delete(e)})}static collect(e,...t){const r=[];t.push(mr.locate(e));for(let a=0,n=t.length;a<n;++a){const i=t[a];if(i!==void 0)for(let c=0,u=i.length;c<u;++c){const d=i[c];Ke(d)?r.push(new Ca(e,d)):r.push(new Ca(e,d.property,d.attribute,d.mode,d.converter))}}return r}}function s(o,e){let t;function r(a,n){arguments.length>1&&(t.property=n),mr.locate(a.constructor).push(t)}if(arguments.length>1){t={},r(o,e);return}return t=o===void 0?{}:o,r}const Gs={mode:"open"},Ws={},qs=new Set,yr=Q.getById(xt.elementRegistry,()=>Ia());class Le{constructor(e,t=e.definition){var r;this.platformDefined=!1,Ke(t)&&(t={name:t}),this.type=e,this.name=t.name,this.template=t.template,this.registry=(r=t.registry)!==null&&r!==void 0?r:customElements;const a=e.prototype,n=Ca.collect(e,t.attributes),i=new Array(n.length),c={},u={};for(let d=0,l=n.length;d<l;++d){const h=n[d];i[d]=h.attribute,c[h.name]=h,u[h.attribute]=h,C.defineProperty(a,h)}Reflect.defineProperty(e,"observedAttributes",{value:i,enumerable:!0}),this.attributes=n,this.propertyLookup=c,this.attributeLookup=u,this.shadowOptions=t.shadowOptions===void 0?Gs:t.shadowOptions===null?void 0:Object.assign(Object.assign({},Gs),t.shadowOptions),this.elementOptions=t.elementOptions===void 0?Ws:Object.assign(Object.assign({},Ws),t.elementOptions),this.styles=be.normalize(t.styles),yr.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 qs.has(e)||yr.getByType(e)?new Le(class extends e{},t):new Le(e,t)}static registerBaseType(e){qs.add(e)}}Le.getByType=yr.getByType,Le.getForInstance=yr.getForInstance;const xg={bubbles:!0,composed:!0,cancelable:!0},ja="isConnected",Xs=new WeakMap;function $r(o){var e,t;return(t=(e=o.shadowRoot)!==null&&e!==void 0?e:Xs.get(o))!==null&&t!==void 0?t:null}let Us;class kr extends ms{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 r=t.shadowOptions;if(r!==void 0){let n=e.shadowRoot;n?this.hasExistingShadowRoot=!0:(n=e.attachShadow(r),r.mode==="closed"&&Xs.set(e,n))}const a=C.getAccessors(e);if(a.length>0){const n=this.boundObservables=Object.create(null);for(let i=0,c=a.length;i<c;++i){const u=a[i].name,d=e[u];d!==void 0&&(delete e[u],n[u]=d)}}}get isConnected(){return C.track(this,ja),this.stage===1}get context(){var e,t;return(t=(e=this.view)===null||e===void 0?void 0:e.context)!==null&&t!==void 0?t:Co.default}get isBound(){var e,t;return(t=(e=this.view)===null||e===void 0?void 0:e.isBound)!==null&&t!==void 0?t:!1}get sourceLifetime(){var e;return(e=this.view)===null||e===void 0?void 0:e.sourceLifetime}get template(){var e;if(this._template===null){const t=this.definition;this.source.resolveTemplate?this._template=this.source.resolveTemplate():t.template&&(this._template=(e=t.template)!==null&&e!==void 0?e:null)}return this._template}set template(e){this._template!==e&&(this._template=e,this.needsInitialization||this.renderTemplate(e))}get mainStyles(){var e;if(this._mainStyles===null){const t=this.definition;this.source.resolveStyles?this._mainStyles=this.source.resolveStyles():t.styles&&(this._mainStyles=(e=t.styles)!==null&&e!==void 0?e:null)}return this._mainStyles}set mainStyles(e){this._mainStyles!==e&&(this._mainStyles!==null&&this.removeStyles(this._mainStyles),this._mainStyles=e,this.needsInitialization||this.addStyles(e))}onUnbind(e){var t;(t=this.view)===null||t===void 0||t.onUnbind(e)}addBehavior(e){var t,r;const a=(t=this.behaviors)!==null&&t!==void 0?t:this.behaviors=new Map,n=(r=a.get(e))!==null&&r!==void 0?r:0;n===0?(a.set(e,1),e.addedCallback&&e.addedCallback(this),e.connectedCallback&&!this.guardBehaviorConnection&&(this.stage===1||this.stage===0)&&e.connectedCallback(this)):a.set(e,n+1)}removeBehavior(e,t=!1){const r=this.behaviors;if(r===null)return;const a=r.get(e);a!==void 0&&(a===1||t?(r.delete(e),e.disconnectedCallback&&this.stage!==3&&e.disconnectedCallback(this),e.removedCallback&&e.removedCallback(this)):r.set(e,a-1))}addStyles(e){var t;if(!e)return;const r=this.source;if(e instanceof HTMLElement)((t=$r(r))!==null&&t!==void 0?t:this.source).append(e);else if(!e.isAttachedTo(r)){const a=e.behaviors;if(e.addStylesTo(r),a!==null)for(let n=0,i=a.length;n<i;++n)this.addBehavior(a[n])}}removeStyles(e){var t;if(!e)return;const r=this.source;if(e instanceof HTMLElement)((t=$r(r))!==null&&t!==void 0?t:r).removeChild(e);else if(e.isAttachedTo(r)){const a=e.behaviors;if(e.removeStylesFrom(r),a!==null)for(let n=0,i=a.length;n<i;++n)this.removeBehavior(a[n])}}connect(){if(this.stage!==3)return;if(this.stage=0,this.boundObservables!==null){const t=this.source,r=this.boundObservables,a=Object.keys(r);for(let n=0,i=a.length;n<i;++n){const c=a[n];t[c]=r[c]}this.boundObservables=null}const e=this.behaviors;if(e!==null){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):this.view!==null&&this.view.bind(this.source),this.stage=1,C.notify(this,ja)}disconnect(){if(this.stage!==1)return;this.stage=2,C.notify(this,ja),this.view!==null&&this.view.unbind();const e=this.behaviors;if(e!==null)for(const t of e.keys())t.disconnectedCallback&&t.disconnectedCallback(this);this.stage=3}onAttributeChangedCallback(e,t,r){const a=this.definition.attributeLookup[e];a!==void 0&&a.onAttributeChangedCallback(this.source,r)}emit(e,t,r){return this.stage===1?this.source.dispatchEvent(new CustomEvent(e,Object.assign(Object.assign({detail:t},xg),r))):!1}renderTemplate(e){var t;const r=this.source,a=(t=$r(r))!==null&&t!==void 0?t:r;if(this.view!==null)this.view.dispose(),this.view=null;else if(!this.needsInitialization||this.hasExistingShadowRoot){this.hasExistingShadowRoot=!1;for(let n=a.firstChild;n!==null;n=a.firstChild)a.removeChild(n)}e&&(this.view=e.render(r,a,r),this.view.sourceLifetime=Na.coupled)}static forCustomElement(e){const t=e.$fastController;if(t!==void 0)return t;const r=Le.getForInstance(e);if(r===void 0)throw Q.error(1401);return e.$fastController=new Us(e,r)}static setStrategy(e){Us=e}}Zt(kr),kr.setStrategy(kr);function xr(o){var e;return"adoptedStyleSheets"in o?o:(e=$r(o))!==null&&e!==void 0?e:o.getRootNode()}class Fa{constructor(e){const t=Fa.styleSheetCache;this.sheets=e.map(r=>{if(r instanceof CSSStyleSheet)return r;let a=t.get(r);return a===void 0&&(a=new CSSStyleSheet,a.replaceSync(r),t.set(r,a)),a})}addStylesTo(e){Ys(xr(e),this.sheets)}removeStylesFrom(e){Qs(xr(e),this.sheets)}}Fa.styleSheetCache=new Map;let Bg=0;const wg=()=>`fast-${++Bg}`;function Ks(o){return o===document?document.body:o}class Sg{constructor(e){this.styles=e,this.styleClass=wg()}addStylesTo(e){e=Ks(xr(e));const t=this.styles,r=this.styleClass;for(let a=0;a<t.length;a++){const n=document.createElement("style");n.innerHTML=t[a],n.className=r,e.append(n)}}removeStylesFrom(e){e=Ks(xr(e));const t=e.querySelectorAll(`.${this.styleClass}`);for(let r=0,a=t.length;r<a;++r)e.removeChild(t[r])}}let Ys=(o,e)=>{o.adoptedStyleSheets=[...o.adoptedStyleSheets,...e]},Qs=(o,e)=>{o.adoptedStyleSheets=o.adoptedStyleSheets.filter(t=>e.indexOf(t)===-1)};if(be.supportsAdoptedStyleSheets){try{document.adoptedStyleSheets.push(),document.adoptedStyleSheets.splice(),Ys=(o,e)=>{o.adoptedStyleSheets.push(...e)},Qs=(o,e)=>{for(const t of e){const r=o.adoptedStyleSheets.indexOf(t);r!==-1&&o.adoptedStyleSheets.splice(r,1)}}}catch{}be.setDefaultStrategy(Fa)}else be.setDefaultStrategy(Sg);function Zs(o){const e=class extends o{constructor(){super(),kr.forCustomElement(this)}$emit(t,r,a){return this.$fastController.emit(t,r,a)}connectedCallback(){this.$fastController.connect()}disconnectedCallback(){this.$fastController.disconnect()}attributeChangedCallback(t,r,a){this.$fastController.onAttributeChangedCallback(t,r,a)}};return Le.registerBaseType(e),e}function Pg(o,e){return st(o)?Le.compose(o,e):Le.compose(this,o)}function Cg(o,e){return st(o)?Le.compose(o,e).define().type:Le.compose(this,o).define().type}function Fg(o){return Zs(o)}const S=Object.assign(Zs(HTMLElement),{from:Fg,define:Cg,compose:Pg}),he={horizontal:"horizontal",vertical:"vertical"};function Js(...o){return o.every(e=>e instanceof HTMLElement)}const oo="ArrowDown",ro="ArrowLeft",ao="ArrowRight",no="ArrowUp",Br="End",wt="Enter",Ga="Escape",wr="Home",io=" ",el="Tab",Tg={ArrowDown:oo,ArrowLeft:ro,ArrowRight:ao,ArrowUp:no};var Se;(function(o){o.ltr="ltr",o.rtl="rtl"})(Se||(Se={}));function Ag(o,e,t){return t<o?e:t>e?o:t}function Wa(o,e,t){return Math.min(Math.max(t,o),e)}let Ig=0;function qa(o=""){return`${o}${Ig++}`}var zg=Object.defineProperty,Ng=Object.getOwnPropertyDescriptor,_=(o,e,t,r)=>{for(var a=r>1?void 0:r?Ng(e,t):e,n=o.length-1,i;n>=0;n--)(i=o[n])&&(a=(r?i(e,t,a):i(a))||a);return r&&a&&zg(e,t,a),a};class M{}_([s({attribute:"aria-atomic"})],M.prototype,"ariaAtomic",2),_([s({attribute:"aria-busy"})],M.prototype,"ariaBusy",2),_([s({attribute:"aria-controls"})],M.prototype,"ariaControls",2),_([s({attribute:"aria-current"})],M.prototype,"ariaCurrent",2),_([s({attribute:"aria-describedby"})],M.prototype,"ariaDescribedby",2),_([s({attribute:"aria-details"})],M.prototype,"ariaDetails",2),_([s({attribute:"aria-disabled"})],M.prototype,"ariaDisabled",2),_([s({attribute:"aria-errormessage"})],M.prototype,"ariaErrormessage",2),_([s({attribute:"aria-flowto"})],M.prototype,"ariaFlowto",2),_([s({attribute:"aria-haspopup"})],M.prototype,"ariaHaspopup",2),_([s({attribute:"aria-hidden"})],M.prototype,"ariaHidden",2),_([s({attribute:"aria-invalid"})],M.prototype,"ariaInvalid",2),_([s({attribute:"aria-keyshortcuts"})],M.prototype,"ariaKeyshortcuts",2),_([s({attribute:"aria-label"})],M.prototype,"ariaLabel",2),_([s({attribute:"aria-labelledby"})],M.prototype,"ariaLabelledby",2),_([s({attribute:"aria-live"})],M.prototype,"ariaLive",2),_([s({attribute:"aria-owns"})],M.prototype,"ariaOwns",2),_([s({attribute:"aria-relevant"})],M.prototype,"ariaRelevant",2),_([s({attribute:"aria-roledescription"})],M.prototype,"ariaRoledescription",2);const Xa=o=>o.closest("[dir]")?.dir==="rtl"?Se.rtl:Se.ltr;function ae(o){return o?typeof o=="string"?new Bt(o):"inline"in o?o.inline():o:Bt.empty}const tl=o=>o.nodeType!==Node.TEXT_NODE||!!o.nodeValue?.trim().length,Lg=":host([hidden]){display:none}";function A(o){return`${Lg}:host{display:${o}}`}class Dg{constructor(e){this.listenerCache=new WeakMap,this.query=e}connectedCallback(e){const{query:t}=this;let r=this.listenerCache.get(e);r||(r=this.constructListener(e),this.listenerCache.set(e,r)),r.bind(t)(),t.addEventListener("change",r)}disconnectedCallback(e){const t=this.listenerCache.get(e);t&&this.query.removeEventListener("change",t)}}class ur extends Dg{constructor(e,t){super(e),this.styles=t}static with(e){return t=>new ur(e,t)}constructListener(e){let t=!1;const r=this.styles;return function(){const{matches:n}=this;n&&!t?(e.addStyles(r),t=n):!n&&t&&(e.removeStyles(r),t=n)}}removedCallback(e){e.removeStyles(this.styles)}}const Te=ur.with(window.matchMedia("(forced-colors)")),Og=ur.with(window.matchMedia("(prefers-color-scheme: dark)")),Eg=ur.with(window.matchMedia("(prefers-color-scheme: light)"));class Ye{}function Qe(o){return v`<slot name="end" ${we("end")}>${ae(o.end)}</slot>`.inline()}function Ze(o){return v`<slot name="start" ${we("start")}>${ae(o.start)}</slot>`.inline()}function Ee(o,...e){const t=mr.locate(o);e.forEach(r=>{Object.getOwnPropertyNames(r.prototype).forEach(n=>{n!=="constructor"&&Object.defineProperty(o.prototype,n,Object.getOwnPropertyDescriptor(r.prototype,n))}),mr.locate(r).forEach(n=>t.push(n))})}var Mg=Object.defineProperty,Hg=Object.getOwnPropertyDescriptor,St=(o,e,t,r)=>{for(var a=r>1?void 0:r?Hg(e,t):e,n=o.length-1,i;n>=0;n--)(i=o[n])&&(a=(r?i(e,t,a):i(a))||a);return r&&a&&Mg(e,t,a),a};class ne extends S{constructor(){super(...arguments),this.headinglevel=2,this.expanded=!1,this.disabled=!1,this.id=qa("accordion-"),this.block=!1,this.clickHandler=e=>{this.disabled||this.$emit("click",e)}}}St([s({attribute:"heading-level",mode:"fromView",converter:me})],ne.prototype,"headinglevel",2),St([s({mode:"boolean"})],ne.prototype,"expanded",2),St([s({mode:"boolean"})],ne.prototype,"disabled",2),St([s],ne.prototype,"id",2),St([s],ne.prototype,"size",2),St([s({mode:"boolean"})],ne.prototype,"block",2),St([s({attribute:"expand-icon-position"})],ne.prototype,"expandIconPosition",2),Ee(ne,Ye);const Sr={single:"single",multi:"multi"};var _g=Object.defineProperty,Rg=Object.getOwnPropertyDescriptor,ol=(o,e,t,r)=>{for(var a=r>1?void 0:r?Rg(e,t):e,n=o.length-1,i;n>=0;n--)(i=o[n])&&(a=(r?i(e,t,a):i(a))||a);return r&&a&&_g(e,t,a),a};class Pr extends S{constructor(){super(...arguments),this.expandmode=Sr.multi,this.activeItemIndex=0,this.change=()=>{this.$emit("change",this.activeid)},this.setItems=()=>{if(this.slottedAccordionItems.length===0)return;const e=Array.from(this.children);if(this.removeItemListeners(e),e.forEach(t=>C.getNotifier(t).subscribe(this,"disabled")),this.accordionItems=e.filter(t=>!t.hasAttribute("disabled")),this.accordionIds=this.getItemIds(),this.accordionItems.forEach((t,r)=>{t instanceof ne&&(t.addEventListener("click",this.activeItemChange),t.addEventListener("keydown",this.handleItemKeyDown),t.addEventListener("focus",this.handleItemFocus),C.getNotifier(t).subscribe(this,"expanded"));const a=this.accordionIds[r];t.setAttribute("id",typeof a!="string"?`accordion-${r+1}`:a),this.activeid=this.accordionIds[this.activeItemIndex]}),this.isSingleExpandMode()){const t=this.findExpandedItem();this.setSingleExpandMode(t)}},this.removeItemListeners=e=>{e.forEach((t,r)=>{C.getNotifier(t).unsubscribe(this,"disabled"),C.getNotifier(t).unsubscribe(this,"expanded"),t.removeEventListener("click",this.activeItemChange),t.removeEventListener("keydown",this.handleItemKeyDown),t.removeEventListener("focus",this.handleItemFocus)})},this.activeItemChange=e=>{e.defaultPrevented||e.target!==e.currentTarget||(e.preventDefault(),this.handleExpandedChange(e.target))},this.handleExpandedChange=e=>{e instanceof ne&&(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 no:e.preventDefault(),this.adjust(-1);break;case oo:e.preventDefault(),this.adjust(1);break;case wr:this.activeItemIndex=0,this.focusItem();break;case Br:this.activeItemIndex=this.accordionItems.length-1,this.focusItem();break}},this.handleItemFocus=e=>{if(e.target===e.currentTarget){const t=e.target,r=this.activeItemIndex=Array.from(this.accordionItems).indexOf(t);this.activeItemIndex!==r&&r!==-1&&(this.activeItemIndex=r,this.activeid=this.accordionIds[this.activeItemIndex])}}}expandmodeChanged(e,t){if(!this.$fastController.isConnected)return;const r=this.findExpandedItem();r&&(t!==Sr.single?r?.expandbutton.removeAttribute("aria-disabled"):this.setSingleExpandMode(r))}slottedAccordionItemsChanged(e,t){this.$fastController.isConnected&&this.setItems()}handleChange(e,t){t==="disabled"?this.setItems():t==="expanded"&&e.expanded&&this.isSingleExpandMode()&&this.setSingleExpandMode(e)}findExpandedItem(){return this.accordionItems.length===0?null:this.accordionItems.find(e=>e instanceof ne&&e.expanded)??this.accordionItems[0]}setSingleExpandMode(e){if(this.accordionItems.length===0)return;const t=Array.from(this.accordionItems);this.activeItemIndex=t.indexOf(e),t.forEach((r,a)=>{r instanceof ne&&(this.activeItemIndex===a?(r.expanded=!0,r.expandbutton.setAttribute("aria-disabled","true")):(r.expanded=!1,r.hasAttribute("disabled")||r.expandbutton.removeAttribute("aria-disabled")))})}getItemIds(){return this.slottedAccordionItems.map(e=>e.id)}isSingleExpandMode(){return this.expandmode===Sr.single}adjust(e){this.activeItemIndex=Ag(0,this.accordionItems.length-1,this.activeItemIndex+e),this.focusItem()}focusItem(){const e=this.accordionItems[this.activeItemIndex];e instanceof ne&&e.expandbutton.focus()}}ol([s({attribute:"expand-mode"})],Pr.prototype,"expandmode",2),ol([m],Pr.prototype,"slottedAccordionItems",2);function Vg(){return v`<template><slot ${Z({property:"slottedAccordionItems",filter:to()})}></slot></template>`}const rl=Vg(),al=g`
|
|
2
|
+
${A("flex")}
|
|
3
|
+
|
|
4
|
+
:host{flex-direction:column;width:100%;contain:content}`,x=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElements}),jg=Pr.compose({name:`${x.prefix}-accordion`,template:rl,styles:al}),Gg={small:"small",medium:"medium",large:"large",extraLarge:"extra-large"},Wg={start:"start",end:"end"},E="var(--colorNeutralForeground1)",Ao="var(--colorNeutralForeground1Hover)",Cr="var(--colorNeutralForeground1Pressed)",nl="var(--colorNeutralForeground1Selected)",ie="var(--colorNeutralForeground2)",Pt="var(--colorNeutralForeground2Hover)",Ct="var(--colorNeutralForeground2Pressed)",Ua="var(--colorNeutralForeground2Selected)",lt="var(--colorNeutralForeground2BrandHover)",ct="var(--colorNeutralForeground2BrandPressed)",Ka="var(--colorNeutralForeground2BrandSelected)",X="var(--colorNeutralForeground3)",Ya="var(--colorNeutralForeground3Hover)",Qa="var(--colorNeutralForeground3Pressed)",il="var(--colorNeutralForeground3Selected)",sl="var(--colorNeutralForeground3BrandHover)",ll="var(--colorNeutralForeground3BrandPressed)",cl="var(--colorNeutralForeground3BrandSelected)",Za="var(--colorNeutralForeground4)",k="var(--colorNeutralForegroundDisabled)",dl="var(--colorBrandForegroundLink)",ul="var(--colorBrandForegroundLinkHover)",hl="var(--colorBrandForegroundLinkPressed)",pl="var(--colorBrandForegroundLinkSelected)",gl="var(--colorNeutralForeground2Link)",fl="var(--colorNeutralForeground2LinkHover)",bl="var(--colorNeutralForeground2LinkPressed)",vl="var(--colorNeutralForeground2LinkSelected)",Io="var(--colorCompoundBrandForeground1)",zo="var(--colorCompoundBrandForeground1Hover)",No="var(--colorCompoundBrandForeground1Pressed)",pe="var(--colorNeutralForegroundOnBrand)",so="var(--colorNeutralForegroundInverted)",Ja="var(--colorNeutralForegroundInvertedHover)",en="var(--colorNeutralForegroundInvertedPressed)",ml="var(--colorNeutralForegroundInvertedSelected)",yl="var(--colorNeutralForegroundInverted2)",Fr="var(--colorNeutralForegroundStaticInverted)",$l="var(--colorNeutralForegroundInvertedLink)",kl="var(--colorNeutralForegroundInvertedLinkHover)",xl="var(--colorNeutralForegroundInvertedLinkPressed)",Bl="var(--colorNeutralForegroundInvertedLinkSelected)",wl="var(--colorNeutralForegroundInvertedDisabled)",Lo="var(--colorBrandForeground1)",tn="var(--colorBrandForeground2)",Sl="var(--colorBrandForeground2Hover)",Pl="var(--colorBrandForeground2Pressed)",on="var(--colorNeutralForeground1Static)",Cl="var(--colorBrandForegroundInverted)",Fl="var(--colorBrandForegroundInvertedHover)",Tl="var(--colorBrandForegroundInvertedPressed)",Al="var(--colorBrandForegroundOnLight)",Il="var(--colorBrandForegroundOnLightHover)",zl="var(--colorBrandForegroundOnLightPressed)",Nl="var(--colorBrandForegroundOnLightSelected)",V="var(--colorNeutralBackground1)",lo="var(--colorNeutralBackground1Hover)",Do="var(--colorNeutralBackground1Pressed)",Tr="var(--colorNeutralBackground1Selected)",Ll="var(--colorNeutralBackground2)",Dl="var(--colorNeutralBackground2Hover)",Ol="var(--colorNeutralBackground2Pressed)",El="var(--colorNeutralBackground2Selected)",Ar="var(--colorNeutralBackground3)",Ml="var(--colorNeutralBackground3Hover)",Hl="var(--colorNeutralBackground3Pressed)",_l="var(--colorNeutralBackground3Selected)",rn="var(--colorNeutralBackground4)",Rl="var(--colorNeutralBackground4Hover)",Vl="var(--colorNeutralBackground4Pressed)",jl="var(--colorNeutralBackground4Selected)",an="var(--colorNeutralBackground5)",Gl="var(--colorNeutralBackground5Hover)",Wl="var(--colorNeutralBackground5Pressed)",ql="var(--colorNeutralBackground5Selected)",Ir="var(--colorNeutralBackground6)",nn="var(--colorNeutralBackgroundInverted)",Xl="var(--colorNeutralBackgroundStatic)",Ul="var(--colorNeutralBackgroundAlpha)",Kl="var(--colorNeutralBackgroundAlpha2)",zr="var(--colorSubtleBackground)",co="var(--colorSubtleBackgroundHover)",Ft="var(--colorSubtleBackgroundPressed)",sn="var(--colorSubtleBackgroundSelected)",Yl="var(--colorSubtleBackgroundLightAlphaHover)",Ql="var(--colorSubtleBackgroundLightAlphaPressed)",Zl="var(--colorSubtleBackgroundLightAlphaSelected)",Jl="var(--colorSubtleBackgroundInverted)",ec="var(--colorSubtleBackgroundInvertedHover)",tc="var(--colorSubtleBackgroundInvertedPressed)",oc="var(--colorSubtleBackgroundInvertedSelected)",U="var(--colorTransparentBackground)",dt="var(--colorTransparentBackgroundHover)",Tt="var(--colorTransparentBackgroundPressed)",ln="var(--colorTransparentBackgroundSelected)",At="var(--colorNeutralBackgroundDisabled)",rc="var(--colorNeutralBackgroundInvertedDisabled)",ac="var(--colorNeutralStencil1)",nc="var(--colorNeutralStencil2)",ic="var(--colorNeutralStencil1Alpha)",sc="var(--colorNeutralStencil2Alpha)",cn="var(--colorBackgroundOverlay)",lc="var(--colorScrollbarOverlay)",uo="var(--colorBrandBackground)",Oo="var(--colorBrandBackgroundHover)",Eo="var(--colorBrandBackgroundPressed)",dn="var(--colorBrandBackgroundSelected)",ut="var(--colorCompoundBrandBackground)",It="var(--colorCompoundBrandBackgroundHover)",zt="var(--colorCompoundBrandBackgroundPressed)",Nr="var(--colorBrandBackgroundStatic)",Nt="var(--colorBrandBackground2)",cc="var(--colorBrandBackground2Hover)",dc="var(--colorBrandBackground2Pressed)",uc="var(--colorBrandBackground3Static)",hc="var(--colorBrandBackground4Static)",pc="var(--colorBrandBackgroundInverted)",gc="var(--colorBrandBackgroundInvertedHover)",fc="var(--colorBrandBackgroundInvertedPressed)",bc="var(--colorBrandBackgroundInvertedSelected)",vc="var(--colorNeutralCardBackground)",mc="var(--colorNeutralCardBackgroundHover)",yc="var(--colorNeutralCardBackgroundPressed)",$c="var(--colorNeutralCardBackgroundSelected)",kc="var(--colorNeutralCardBackgroundDisabled)",Ae="var(--colorNeutralStrokeAccessible)",Lt="var(--colorNeutralStrokeAccessibleHover)",Dt="var(--colorNeutralStrokeAccessiblePressed)",xc="var(--colorNeutralStrokeAccessibleSelected)",Je="var(--colorNeutralStroke1)",Ot="var(--colorNeutralStroke1Hover)",ho="var(--colorNeutralStroke1Pressed)",Bc="var(--colorNeutralStroke1Selected)",Et="var(--colorNeutralStroke2)",un="var(--colorNeutralStroke3)",wc="var(--colorNeutralStrokeSubtle)",Sc="var(--colorNeutralStrokeOnBrand)",hn="var(--colorNeutralStrokeOnBrand2)",Pc="var(--colorNeutralStrokeOnBrand2Hover)",Cc="var(--colorNeutralStrokeOnBrand2Pressed)",Fc="var(--colorNeutralStrokeOnBrand2Selected)",Lr="var(--colorBrandStroke1)",Dr="var(--colorBrandStroke2)",Tc="var(--colorBrandStroke2Hover)",Ac="var(--colorBrandStroke2Pressed)",Ic="var(--colorBrandStroke2Contrast)",Mo="var(--colorCompoundBrandStroke)",po="var(--colorCompoundBrandStrokeHover)",Ho="var(--colorCompoundBrandStrokePressed)",Me="var(--colorNeutralStrokeDisabled)",zc="var(--colorNeutralStrokeInvertedDisabled)",ye="var(--colorTransparentStroke)",Or="var(--colorTransparentStrokeInteractive)",Nc="var(--colorTransparentStrokeDisabled)",Lc="var(--colorNeutralStrokeAlpha)",Dc="var(--colorNeutralStrokeAlpha2)",Mt="var(--colorStrokeFocus1)",Pe="var(--colorStrokeFocus2)",Oc="var(--colorNeutralShadowAmbient)",Ec="var(--colorNeutralShadowKey)",Mc="var(--colorNeutralShadowAmbientLighter)",Hc="var(--colorNeutralShadowKeyLighter)",_c="var(--colorNeutralShadowAmbientDarker)",Rc="var(--colorNeutralShadowKeyDarker)",Vc="var(--colorBrandShadowAmbient)",jc="var(--colorBrandShadowKey)",pn="var(--colorPaletteRedBackground1)",_o="var(--colorPaletteRedBackground2)",Ro="var(--colorPaletteRedBackground3)",Gc="var(--colorPaletteRedBorderActive)",gn="var(--colorPaletteRedBorder1)",Wc="var(--colorPaletteRedBorder2)",Er="var(--colorPaletteRedForeground1)",fn="var(--colorPaletteRedForeground2)",Mr="var(--colorPaletteRedForeground3)",qc="var(--colorPaletteRedForegroundInverted)",bn="var(--colorPaletteGreenBackground1)",Hr="var(--colorPaletteGreenBackground2)",Vo="var(--colorPaletteGreenBackground3)",Xc="var(--colorPaletteGreenBorderActive)",Uc="var(--colorPaletteGreenBorder1)",vn="var(--colorPaletteGreenBorder2)",mn="var(--colorPaletteGreenForeground1)",yn="var(--colorPaletteGreenForeground2)",$n="var(--colorPaletteGreenForeground3)",Kc="var(--colorPaletteGreenForegroundInverted)",kn="var(--colorPaletteDarkOrangeBackground1)",_r="var(--colorPaletteDarkOrangeBackground2)",jo="var(--colorPaletteDarkOrangeBackground3)",Yc="var(--colorPaletteDarkOrangeBorderActive)",xn="var(--colorPaletteDarkOrangeBorder1)",Qc="var(--colorPaletteDarkOrangeBorder2)",Bn="var(--colorPaletteDarkOrangeForeground1)",Zc="var(--colorPaletteDarkOrangeForeground2)",Rr="var(--colorPaletteDarkOrangeForeground3)",wn="var(--colorPaletteYellowBackground1)",Jc="var(--colorPaletteYellowBackground2)",Sn="var(--colorPaletteYellowBackground3)",ed="var(--colorPaletteYellowBorderActive)",Pn="var(--colorPaletteYellowBorder1)",td="var(--colorPaletteYellowBorder2)",od="var(--colorPaletteYellowForeground1)",Go="var(--colorPaletteYellowForeground2)",rd="var(--colorPaletteYellowForeground3)",ad="var(--colorPaletteYellowForegroundInverted)",nd="var(--colorPaletteBerryBackground1)",id="var(--colorPaletteBerryBackground2)",sd="var(--colorPaletteBerryBackground3)",ld="var(--colorPaletteBerryBorderActive)",cd="var(--colorPaletteBerryBorder1)",dd="var(--colorPaletteBerryBorder2)",ud="var(--colorPaletteBerryForeground1)",hd="var(--colorPaletteBerryForeground2)",pd="var(--colorPaletteBerryForeground3)",gd="var(--colorPaletteMarigoldBackground1)",Cn="var(--colorPaletteMarigoldBackground2)",fd="var(--colorPaletteMarigoldBackground3)",bd="var(--colorPaletteMarigoldBorderActive)",vd="var(--colorPaletteMarigoldBorder1)",md="var(--colorPaletteMarigoldBorder2)",yd="var(--colorPaletteMarigoldForeground1)",Fn="var(--colorPaletteMarigoldForeground2)",$d="var(--colorPaletteMarigoldForeground3)",kd="var(--colorPaletteLightGreenBackground1)",xd="var(--colorPaletteLightGreenBackground2)",Bd="var(--colorPaletteLightGreenBackground3)",wd="var(--colorPaletteLightGreenBorderActive)",Sd="var(--colorPaletteLightGreenBorder1)",Pd="var(--colorPaletteLightGreenBorder2)",Cd="var(--colorPaletteLightGreenForeground1)",Fd="var(--colorPaletteLightGreenForeground2)",Td="var(--colorPaletteLightGreenForeground3)",Tn="var(--colorPaletteAnchorBackground2)",Ad="var(--colorPaletteAnchorBorderActive)",An="var(--colorPaletteAnchorForeground2)",In="var(--colorPaletteBeigeBackground2)",Id="var(--colorPaletteBeigeBorderActive)",zn="var(--colorPaletteBeigeForeground2)",Nn="var(--colorPaletteBlueBackground2)",zd="var(--colorPaletteBlueBorderActive)",Ln="var(--colorPaletteBlueForeground2)",Dn="var(--colorPaletteBrassBackground2)",Nd="var(--colorPaletteBrassBorderActive)",On="var(--colorPaletteBrassForeground2)",En="var(--colorPaletteBrownBackground2)",Ld="var(--colorPaletteBrownBorderActive)",Mn="var(--colorPaletteBrownForeground2)",Hn="var(--colorPaletteCornflowerBackground2)",Dd="var(--colorPaletteCornflowerBorderActive)",_n="var(--colorPaletteCornflowerForeground2)",Rn="var(--colorPaletteCranberryBackground2)",Od="var(--colorPaletteCranberryBorderActive)",Vn="var(--colorPaletteCranberryForeground2)",jn="var(--colorPaletteDarkGreenBackground2)",Ed="var(--colorPaletteDarkGreenBorderActive)",Gn="var(--colorPaletteDarkGreenForeground2)",Wn="var(--colorPaletteDarkRedBackground2)",Md="var(--colorPaletteDarkRedBorderActive)",qn="var(--colorPaletteDarkRedForeground2)",Xn="var(--colorPaletteForestBackground2)",Hd="var(--colorPaletteForestBorderActive)",Un="var(--colorPaletteForestForeground2)",Kn="var(--colorPaletteGoldBackground2)",_d="var(--colorPaletteGoldBorderActive)",Yn="var(--colorPaletteGoldForeground2)",Qn="var(--colorPaletteGrapeBackground2)",Rd="var(--colorPaletteGrapeBorderActive)",Zn="var(--colorPaletteGrapeForeground2)",Jn="var(--colorPaletteLavenderBackground2)",Vd="var(--colorPaletteLavenderBorderActive)",ei="var(--colorPaletteLavenderForeground2)",ti="var(--colorPaletteLightTealBackground2)",jd="var(--colorPaletteLightTealBorderActive)",oi="var(--colorPaletteLightTealForeground2)",ri="var(--colorPaletteLilacBackground2)",Gd="var(--colorPaletteLilacBorderActive)",ai="var(--colorPaletteLilacForeground2)",ni="var(--colorPaletteMagentaBackground2)",Wd="var(--colorPaletteMagentaBorderActive)",ii="var(--colorPaletteMagentaForeground2)",si="var(--colorPaletteMinkBackground2)",qd="var(--colorPaletteMinkBorderActive)",li="var(--colorPaletteMinkForeground2)",ci="var(--colorPaletteNavyBackground2)",Xd="var(--colorPaletteNavyBorderActive)",di="var(--colorPaletteNavyForeground2)",ui="var(--colorPalettePeachBackground2)",Ud="var(--colorPalettePeachBorderActive)",hi="var(--colorPalettePeachForeground2)",pi="var(--colorPalettePinkBackground2)",Kd="var(--colorPalettePinkBorderActive)",gi="var(--colorPalettePinkForeground2)",fi="var(--colorPalettePlatinumBackground2)",Yd="var(--colorPalettePlatinumBorderActive)",bi="var(--colorPalettePlatinumForeground2)",vi="var(--colorPalettePlumBackground2)",Qd="var(--colorPalettePlumBorderActive)",mi="var(--colorPalettePlumForeground2)",yi="var(--colorPalettePumpkinBackground2)",Zd="var(--colorPalettePumpkinBorderActive)",$i="var(--colorPalettePumpkinForeground2)",ki="var(--colorPalettePurpleBackground2)",Jd="var(--colorPalettePurpleBorderActive)",xi="var(--colorPalettePurpleForeground2)",Bi="var(--colorPaletteRoyalBlueBackground2)",eu="var(--colorPaletteRoyalBlueBorderActive)",wi="var(--colorPaletteRoyalBlueForeground2)",Si="var(--colorPaletteSeafoamBackground2)",tu="var(--colorPaletteSeafoamBorderActive)",Pi="var(--colorPaletteSeafoamForeground2)",Ci="var(--colorPaletteSteelBackground2)",ou="var(--colorPaletteSteelBorderActive)",Fi="var(--colorPaletteSteelForeground2)",Ti="var(--colorPaletteTealBackground2)",ru="var(--colorPaletteTealBorderActive)",Ai="var(--colorPaletteTealForeground2)",au="var(--colorStatusSuccessBackground1)",nu="var(--colorStatusSuccessBackground2)",iu="var(--colorStatusSuccessBackground3)",su="var(--colorStatusSuccessForeground1)",lu="var(--colorStatusSuccessForeground2)",cu="var(--colorStatusSuccessForeground3)",du="var(--colorStatusSuccessForegroundInverted)",uu="var(--colorStatusSuccessBorderActive)",hu="var(--colorStatusSuccessBorder1)",pu="var(--colorStatusSuccessBorder2)",gu="var(--colorStatusWarningBackground1)",fu="var(--colorStatusWarningBackground2)",bu="var(--colorStatusWarningBackground3)",vu="var(--colorStatusWarningForeground1)",mu="var(--colorStatusWarningForeground2)",yu="var(--colorStatusWarningForeground3)",$u="var(--colorStatusWarningForegroundInverted)",ku="var(--colorStatusWarningBorderActive)",xu="var(--colorStatusWarningBorder1)",Bu="var(--colorStatusWarningBorder2)",wu="var(--colorStatusDangerBackground1)",Su="var(--colorStatusDangerBackground2)",Pu="var(--colorStatusDangerBackground3)",Cu="var(--colorStatusDangerBackground3Hover)",Fu="var(--colorStatusDangerBackground3Pressed)",Tu="var(--colorStatusDangerForeground1)",Au="var(--colorStatusDangerForeground2)",Iu="var(--colorStatusDangerForeground3)",zu="var(--colorStatusDangerForegroundInverted)",Nu="var(--colorStatusDangerBorderActive)",Lu="var(--colorStatusDangerBorder1)",Du="var(--colorStatusDangerBorder2)",Wo="var(--borderRadiusNone)",ge="var(--borderRadiusSmall)",B="var(--borderRadiusMedium)",qo="var(--borderRadiusLarge)",Vr="var(--borderRadiusXLarge)",J="var(--borderRadiusCircular)",y="var(--fontFamilyBase)",Ii="var(--fontFamilyMonospace)",zi="var(--fontFamilyNumeric)",Ht="var(--fontSizeBase100)",j="var(--fontSizeBase200)",F="var(--fontSizeBase300)",se="var(--fontSizeBase400)",et="var(--fontSizeBase500)",go="var(--fontSizeBase600)",jr="var(--fontSizeHero700)",Gr="var(--fontSizeHero800)",Wr="var(--fontSizeHero900)",qr="var(--fontSizeHero1000)",I="var(--fontWeightRegular)",Ni="var(--fontWeightMedium)",D="var(--fontWeightSemibold)",fo="var(--fontWeightBold)",bo="var(--lineHeightBase100)",le="var(--lineHeightBase200)",z="var(--lineHeightBase300)",$e="var(--lineHeightBase400)",vo="var(--lineHeightBase500)",Xr="var(--lineHeightBase600)",Ur="var(--lineHeightHero700)",Kr="var(--lineHeightHero800)",Yr="var(--lineHeightHero900)",Qr="var(--lineHeightHero1000)",Xo="var(--shadow2)",_t="var(--shadow4)",Li="var(--shadow8)",Zr="var(--shadow16)",Di="var(--shadow28)",Oi="var(--shadow64)",Ou="var(--shadow2Brand)",Eu="var(--shadow4Brand)",Mu="var(--shadow8Brand)",Hu="var(--shadow16Brand)",_u="var(--shadow28Brand)",Ru="var(--shadow64Brand)",K="var(--strokeWidthThin)",ht="var(--strokeWidthThick)",He="var(--strokeWidthThicker)",Jr="var(--strokeWidthThickest)",Vu="var(--spacingHorizontalNone)",tt="var(--spacingHorizontalXXS)",fe="var(--spacingHorizontalXS)",_e="var(--spacingHorizontalSNudge)",G="var(--spacingHorizontalS)",Ie="var(--spacingHorizontalMNudge)",ot="var(--spacingHorizontalM)",ea="var(--spacingHorizontalL)",ju="var(--spacingHorizontalXL)",Ei="var(--spacingHorizontalXXL)",Gu="var(--spacingHorizontalXXXL)",Wu="var(--spacingVerticalNone)",ta="var(--spacingVerticalXXS)",oa="var(--spacingVerticalXS)",Rt="var(--spacingVerticalSNudge)",R="var(--spacingVerticalS)",ra="var(--spacingVerticalMNudge)",qu="var(--spacingVerticalM)",Mi="var(--spacingVerticalL)",Xu="var(--spacingVerticalXL)",aa="var(--spacingVerticalXXL)",Uu="var(--spacingVerticalXXXL)",Hi="var(--durationUltraFast)",mo="var(--durationFaster)",Ku="var(--durationFast)",na="var(--durationNormal)",Yu="var(--durationGentle)",_i="var(--durationSlow)",ia="var(--durationSlower)",yo="var(--durationUltraSlow)",Ri="var(--curveAccelerateMax)",sa="var(--curveAccelerateMid)",Vi="var(--curveAccelerateMin)",la="var(--curveDecelerateMax)",ca="var(--curveDecelerateMid)",ji="var(--curveDecelerateMin)",Gi="var(--curveEasyEaseMax)",$o="var(--curveEasyEase)",Wi="var(--curveLinear)";var qg=Object.freeze({__proto__:null,colorNeutralForeground1:E,colorNeutralForeground1Hover:Ao,colorNeutralForeground1Pressed:Cr,colorNeutralForeground1Selected:nl,colorNeutralForeground2:ie,colorNeutralForeground2Hover:Pt,colorNeutralForeground2Pressed:Ct,colorNeutralForeground2Selected:Ua,colorNeutralForeground2BrandHover:lt,colorNeutralForeground2BrandPressed:ct,colorNeutralForeground2BrandSelected:Ka,colorNeutralForeground3:X,colorNeutralForeground3Hover:Ya,colorNeutralForeground3Pressed:Qa,colorNeutralForeground3Selected:il,colorNeutralForeground3BrandHover:sl,colorNeutralForeground3BrandPressed:ll,colorNeutralForeground3BrandSelected:cl,colorNeutralForeground4:Za,colorNeutralForegroundDisabled:k,colorBrandForegroundLink:dl,colorBrandForegroundLinkHover:ul,colorBrandForegroundLinkPressed:hl,colorBrandForegroundLinkSelected:pl,colorNeutralForeground2Link:gl,colorNeutralForeground2LinkHover:fl,colorNeutralForeground2LinkPressed:bl,colorNeutralForeground2LinkSelected:vl,colorCompoundBrandForeground1:Io,colorCompoundBrandForeground1Hover:zo,colorCompoundBrandForeground1Pressed:No,colorNeutralForegroundOnBrand:pe,colorNeutralForegroundInverted:so,colorNeutralForegroundInvertedHover:Ja,colorNeutralForegroundInvertedPressed:en,colorNeutralForegroundInvertedSelected:ml,colorNeutralForegroundInverted2:yl,colorNeutralForegroundStaticInverted:Fr,colorNeutralForegroundInvertedLink:$l,colorNeutralForegroundInvertedLinkHover:kl,colorNeutralForegroundInvertedLinkPressed:xl,colorNeutralForegroundInvertedLinkSelected:Bl,colorNeutralForegroundInvertedDisabled:wl,colorBrandForeground1:Lo,colorBrandForeground2:tn,colorBrandForeground2Hover:Sl,colorBrandForeground2Pressed:Pl,colorNeutralForeground1Static:on,colorBrandForegroundInverted:Cl,colorBrandForegroundInvertedHover:Fl,colorBrandForegroundInvertedPressed:Tl,colorBrandForegroundOnLight:Al,colorBrandForegroundOnLightHover:Il,colorBrandForegroundOnLightPressed:zl,colorBrandForegroundOnLightSelected:Nl,colorNeutralBackground1:V,colorNeutralBackground1Hover:lo,colorNeutralBackground1Pressed:Do,colorNeutralBackground1Selected:Tr,colorNeutralBackground2:Ll,colorNeutralBackground2Hover:Dl,colorNeutralBackground2Pressed:Ol,colorNeutralBackground2Selected:El,colorNeutralBackground3:Ar,colorNeutralBackground3Hover:Ml,colorNeutralBackground3Pressed:Hl,colorNeutralBackground3Selected:_l,colorNeutralBackground4:rn,colorNeutralBackground4Hover:Rl,colorNeutralBackground4Pressed:Vl,colorNeutralBackground4Selected:jl,colorNeutralBackground5:an,colorNeutralBackground5Hover:Gl,colorNeutralBackground5Pressed:Wl,colorNeutralBackground5Selected:ql,colorNeutralBackground6:Ir,colorNeutralBackgroundInverted:nn,colorNeutralBackgroundStatic:Xl,colorNeutralBackgroundAlpha:Ul,colorNeutralBackgroundAlpha2:Kl,colorSubtleBackground:zr,colorSubtleBackgroundHover:co,colorSubtleBackgroundPressed:Ft,colorSubtleBackgroundSelected:sn,colorSubtleBackgroundLightAlphaHover:Yl,colorSubtleBackgroundLightAlphaPressed:Ql,colorSubtleBackgroundLightAlphaSelected:Zl,colorSubtleBackgroundInverted:Jl,colorSubtleBackgroundInvertedHover:ec,colorSubtleBackgroundInvertedPressed:tc,colorSubtleBackgroundInvertedSelected:oc,colorTransparentBackground:U,colorTransparentBackgroundHover:dt,colorTransparentBackgroundPressed:Tt,colorTransparentBackgroundSelected:ln,colorNeutralBackgroundDisabled:At,colorNeutralBackgroundInvertedDisabled:rc,colorNeutralStencil1:ac,colorNeutralStencil2:nc,colorNeutralStencil1Alpha:ic,colorNeutralStencil2Alpha:sc,colorBackgroundOverlay:cn,colorScrollbarOverlay:lc,colorBrandBackground:uo,colorBrandBackgroundHover:Oo,colorBrandBackgroundPressed:Eo,colorBrandBackgroundSelected:dn,colorCompoundBrandBackground:ut,colorCompoundBrandBackgroundHover:It,colorCompoundBrandBackgroundPressed:zt,colorBrandBackgroundStatic:Nr,colorBrandBackground2:Nt,colorBrandBackground2Hover:cc,colorBrandBackground2Pressed:dc,colorBrandBackground3Static:uc,colorBrandBackground4Static:hc,colorBrandBackgroundInverted:pc,colorBrandBackgroundInvertedHover:gc,colorBrandBackgroundInvertedPressed:fc,colorBrandBackgroundInvertedSelected:bc,colorNeutralCardBackground:vc,colorNeutralCardBackgroundHover:mc,colorNeutralCardBackgroundPressed:yc,colorNeutralCardBackgroundSelected:$c,colorNeutralCardBackgroundDisabled:kc,colorNeutralStrokeAccessible:Ae,colorNeutralStrokeAccessibleHover:Lt,colorNeutralStrokeAccessiblePressed:Dt,colorNeutralStrokeAccessibleSelected:xc,colorNeutralStroke1:Je,colorNeutralStroke1Hover:Ot,colorNeutralStroke1Pressed:ho,colorNeutralStroke1Selected:Bc,colorNeutralStroke2:Et,colorNeutralStroke3:un,colorNeutralStrokeSubtle:wc,colorNeutralStrokeOnBrand:Sc,colorNeutralStrokeOnBrand2:hn,colorNeutralStrokeOnBrand2Hover:Pc,colorNeutralStrokeOnBrand2Pressed:Cc,colorNeutralStrokeOnBrand2Selected:Fc,colorBrandStroke1:Lr,colorBrandStroke2:Dr,colorBrandStroke2Hover:Tc,colorBrandStroke2Pressed:Ac,colorBrandStroke2Contrast:Ic,colorCompoundBrandStroke:Mo,colorCompoundBrandStrokeHover:po,colorCompoundBrandStrokePressed:Ho,colorNeutralStrokeDisabled:Me,colorNeutralStrokeInvertedDisabled:zc,colorTransparentStroke:ye,colorTransparentStrokeInteractive:Or,colorTransparentStrokeDisabled:Nc,colorNeutralStrokeAlpha:Lc,colorNeutralStrokeAlpha2:Dc,colorStrokeFocus1:Mt,colorStrokeFocus2:Pe,colorNeutralShadowAmbient:Oc,colorNeutralShadowKey:Ec,colorNeutralShadowAmbientLighter:Mc,colorNeutralShadowKeyLighter:Hc,colorNeutralShadowAmbientDarker:_c,colorNeutralShadowKeyDarker:Rc,colorBrandShadowAmbient:Vc,colorBrandShadowKey:jc,colorPaletteRedBackground1:pn,colorPaletteRedBackground2:_o,colorPaletteRedBackground3:Ro,colorPaletteRedBorderActive:Gc,colorPaletteRedBorder1:gn,colorPaletteRedBorder2:Wc,colorPaletteRedForeground1:Er,colorPaletteRedForeground2:fn,colorPaletteRedForeground3:Mr,colorPaletteRedForegroundInverted:qc,colorPaletteGreenBackground1:bn,colorPaletteGreenBackground2:Hr,colorPaletteGreenBackground3:Vo,colorPaletteGreenBorderActive:Xc,colorPaletteGreenBorder1:Uc,colorPaletteGreenBorder2:vn,colorPaletteGreenForeground1:mn,colorPaletteGreenForeground2:yn,colorPaletteGreenForeground3:$n,colorPaletteGreenForegroundInverted:Kc,colorPaletteDarkOrangeBackground1:kn,colorPaletteDarkOrangeBackground2:_r,colorPaletteDarkOrangeBackground3:jo,colorPaletteDarkOrangeBorderActive:Yc,colorPaletteDarkOrangeBorder1:xn,colorPaletteDarkOrangeBorder2:Qc,colorPaletteDarkOrangeForeground1:Bn,colorPaletteDarkOrangeForeground2:Zc,colorPaletteDarkOrangeForeground3:Rr,colorPaletteYellowBackground1:wn,colorPaletteYellowBackground2:Jc,colorPaletteYellowBackground3:Sn,colorPaletteYellowBorderActive:ed,colorPaletteYellowBorder1:Pn,colorPaletteYellowBorder2:td,colorPaletteYellowForeground1:od,colorPaletteYellowForeground2:Go,colorPaletteYellowForeground3:rd,colorPaletteYellowForegroundInverted:ad,colorPaletteBerryBackground1:nd,colorPaletteBerryBackground2:id,colorPaletteBerryBackground3:sd,colorPaletteBerryBorderActive:ld,colorPaletteBerryBorder1:cd,colorPaletteBerryBorder2:dd,colorPaletteBerryForeground1:ud,colorPaletteBerryForeground2:hd,colorPaletteBerryForeground3:pd,colorPaletteMarigoldBackground1:gd,colorPaletteMarigoldBackground2:Cn,colorPaletteMarigoldBackground3:fd,colorPaletteMarigoldBorderActive:bd,colorPaletteMarigoldBorder1:vd,colorPaletteMarigoldBorder2:md,colorPaletteMarigoldForeground1:yd,colorPaletteMarigoldForeground2:Fn,colorPaletteMarigoldForeground3:$d,colorPaletteLightGreenBackground1:kd,colorPaletteLightGreenBackground2:xd,colorPaletteLightGreenBackground3:Bd,colorPaletteLightGreenBorderActive:wd,colorPaletteLightGreenBorder1:Sd,colorPaletteLightGreenBorder2:Pd,colorPaletteLightGreenForeground1:Cd,colorPaletteLightGreenForeground2:Fd,colorPaletteLightGreenForeground3:Td,colorPaletteAnchorBackground2:Tn,colorPaletteAnchorBorderActive:Ad,colorPaletteAnchorForeground2:An,colorPaletteBeigeBackground2:In,colorPaletteBeigeBorderActive:Id,colorPaletteBeigeForeground2:zn,colorPaletteBlueBackground2:Nn,colorPaletteBlueBorderActive:zd,colorPaletteBlueForeground2:Ln,colorPaletteBrassBackground2:Dn,colorPaletteBrassBorderActive:Nd,colorPaletteBrassForeground2:On,colorPaletteBrownBackground2:En,colorPaletteBrownBorderActive:Ld,colorPaletteBrownForeground2:Mn,colorPaletteCornflowerBackground2:Hn,colorPaletteCornflowerBorderActive:Dd,colorPaletteCornflowerForeground2:_n,colorPaletteCranberryBackground2:Rn,colorPaletteCranberryBorderActive:Od,colorPaletteCranberryForeground2:Vn,colorPaletteDarkGreenBackground2:jn,colorPaletteDarkGreenBorderActive:Ed,colorPaletteDarkGreenForeground2:Gn,colorPaletteDarkRedBackground2:Wn,colorPaletteDarkRedBorderActive:Md,colorPaletteDarkRedForeground2:qn,colorPaletteForestBackground2:Xn,colorPaletteForestBorderActive:Hd,colorPaletteForestForeground2:Un,colorPaletteGoldBackground2:Kn,colorPaletteGoldBorderActive:_d,colorPaletteGoldForeground2:Yn,colorPaletteGrapeBackground2:Qn,colorPaletteGrapeBorderActive:Rd,colorPaletteGrapeForeground2:Zn,colorPaletteLavenderBackground2:Jn,colorPaletteLavenderBorderActive:Vd,colorPaletteLavenderForeground2:ei,colorPaletteLightTealBackground2:ti,colorPaletteLightTealBorderActive:jd,colorPaletteLightTealForeground2:oi,colorPaletteLilacBackground2:ri,colorPaletteLilacBorderActive:Gd,colorPaletteLilacForeground2:ai,colorPaletteMagentaBackground2:ni,colorPaletteMagentaBorderActive:Wd,colorPaletteMagentaForeground2:ii,colorPaletteMinkBackground2:si,colorPaletteMinkBorderActive:qd,colorPaletteMinkForeground2:li,colorPaletteNavyBackground2:ci,colorPaletteNavyBorderActive:Xd,colorPaletteNavyForeground2:di,colorPalettePeachBackground2:ui,colorPalettePeachBorderActive:Ud,colorPalettePeachForeground2:hi,colorPalettePinkBackground2:pi,colorPalettePinkBorderActive:Kd,colorPalettePinkForeground2:gi,colorPalettePlatinumBackground2:fi,colorPalettePlatinumBorderActive:Yd,colorPalettePlatinumForeground2:bi,colorPalettePlumBackground2:vi,colorPalettePlumBorderActive:Qd,colorPalettePlumForeground2:mi,colorPalettePumpkinBackground2:yi,colorPalettePumpkinBorderActive:Zd,colorPalettePumpkinForeground2:$i,colorPalettePurpleBackground2:ki,colorPalettePurpleBorderActive:Jd,colorPalettePurpleForeground2:xi,colorPaletteRoyalBlueBackground2:Bi,colorPaletteRoyalBlueBorderActive:eu,colorPaletteRoyalBlueForeground2:wi,colorPaletteSeafoamBackground2:Si,colorPaletteSeafoamBorderActive:tu,colorPaletteSeafoamForeground2:Pi,colorPaletteSteelBackground2:Ci,colorPaletteSteelBorderActive:ou,colorPaletteSteelForeground2:Fi,colorPaletteTealBackground2:Ti,colorPaletteTealBorderActive:ru,colorPaletteTealForeground2:Ai,colorStatusSuccessBackground1:au,colorStatusSuccessBackground2:nu,colorStatusSuccessBackground3:iu,colorStatusSuccessForeground1:su,colorStatusSuccessForeground2:lu,colorStatusSuccessForeground3:cu,colorStatusSuccessForegroundInverted:du,colorStatusSuccessBorderActive:uu,colorStatusSuccessBorder1:hu,colorStatusSuccessBorder2:pu,colorStatusWarningBackground1:gu,colorStatusWarningBackground2:fu,colorStatusWarningBackground3:bu,colorStatusWarningForeground1:vu,colorStatusWarningForeground2:mu,colorStatusWarningForeground3:yu,colorStatusWarningForegroundInverted:$u,colorStatusWarningBorderActive:ku,colorStatusWarningBorder1:xu,colorStatusWarningBorder2:Bu,colorStatusDangerBackground1:wu,colorStatusDangerBackground2:Su,colorStatusDangerBackground3:Pu,colorStatusDangerBackground3Hover:Cu,colorStatusDangerBackground3Pressed:Fu,colorStatusDangerForeground1:Tu,colorStatusDangerForeground2:Au,colorStatusDangerForeground3:Iu,colorStatusDangerForegroundInverted:zu,colorStatusDangerBorderActive:Nu,colorStatusDangerBorder1:Lu,colorStatusDangerBorder2:Du,borderRadiusNone:Wo,borderRadiusSmall:ge,borderRadiusMedium:B,borderRadiusLarge:qo,borderRadiusXLarge:Vr,borderRadiusCircular:J,fontFamilyBase:y,fontFamilyMonospace:Ii,fontFamilyNumeric:zi,fontSizeBase100:Ht,fontSizeBase200:j,fontSizeBase300:F,fontSizeBase400:se,fontSizeBase500:et,fontSizeBase600:go,fontSizeHero700:jr,fontSizeHero800:Gr,fontSizeHero900:Wr,fontSizeHero1000:qr,fontWeightRegular:I,fontWeightMedium:Ni,fontWeightSemibold:D,fontWeightBold:fo,lineHeightBase100:bo,lineHeightBase200:le,lineHeightBase300:z,lineHeightBase400:$e,lineHeightBase500:vo,lineHeightBase600:Xr,lineHeightHero700:Ur,lineHeightHero800:Kr,lineHeightHero900:Yr,lineHeightHero1000:Qr,shadow2:Xo,shadow4:_t,shadow8:Li,shadow16:Zr,shadow28:Di,shadow64:Oi,shadow2Brand:Ou,shadow4Brand:Eu,shadow8Brand:Mu,shadow16Brand:Hu,shadow28Brand:_u,shadow64Brand:Ru,strokeWidthThin:K,strokeWidthThick:ht,strokeWidthThicker:He,strokeWidthThickest:Jr,spacingHorizontalNone:Vu,spacingHorizontalXXS:tt,spacingHorizontalXS:fe,spacingHorizontalSNudge:_e,spacingHorizontalS:G,spacingHorizontalMNudge:Ie,spacingHorizontalM:ot,spacingHorizontalL:ea,spacingHorizontalXL:ju,spacingHorizontalXXL:Ei,spacingHorizontalXXXL:Gu,spacingVerticalNone:Wu,spacingVerticalXXS:ta,spacingVerticalXS:oa,spacingVerticalSNudge:Rt,spacingVerticalS:R,spacingVerticalMNudge:ra,spacingVerticalM:qu,spacingVerticalL:Mi,spacingVerticalXL:Xu,spacingVerticalXXL:aa,spacingVerticalXXXL:Uu,durationUltraFast:Hi,durationFaster:mo,durationFast:Ku,durationNormal:na,durationGentle:Yu,durationSlow:_i,durationSlower:ia,durationUltraSlow:yo,curveAccelerateMax:Ri,curveAccelerateMid:sa,curveAccelerateMin:Vi,curveDecelerateMax:la,curveDecelerateMid:ca,curveDecelerateMin:ji,curveEasyEaseMax:Gi,curveEasyEase:$o,curveLinear:Wi});const Qu=g`
|
|
5
|
+
${A("block")}
|
|
6
|
+
|
|
7
|
+
:host{max-width:fit-content;contain:content}.heading{height:44px;display:grid;position:relative;vertical-align:middle;padding-inline:${ot} ${Ie};border-radius:${B};font-family:${y};font-size:${F};font-weight:${I};line-height:${z};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:${E};background:${U};line-height:${z};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:${ge}}.icon{display:flex;align-items:center;justify-content:center;pointer-events:none;position:relative;height:100%;padding-right:${G};grid-column:1 / span 1;grid-row:1}.region{margin:0 ${ot}}::slotted([slot='start']),::slotted([slot='end']){justify-content:center;align-items:center;padding-right:${G};grid-column:2 / span 1;grid-row:1 / span 1}button:focus-visible::after{content:'';position:absolute;inset:0px;cursor:pointer;border-radius:${ge};outline:none;border:2px solid ${Mt};box-shadow:inset 0 0 0 1px ${Pe}}:host([disabled]) .button{color:${k}}: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:${F};line-height:${z}}:host([size='small']) .heading{font-size:${j};line-height:${le}}:host([size='large']) .heading{font-size:${se};line-height:${$e}}:host([size='extra-large']) .heading{font-size:${et};line-height:${vo}}: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}`,Xg=v.partial(`<svg
|
|
8
|
+
width="20"
|
|
9
|
+
height="20"
|
|
10
|
+
viewBox="0 0 20 20"
|
|
11
|
+
fill="none"
|
|
12
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
13
|
+
class="default-collapsed-icon"
|
|
14
|
+
>
|
|
15
|
+
<path
|
|
16
|
+
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"
|
|
17
|
+
fill="currentColor"
|
|
18
|
+
/>
|
|
19
|
+
</svg>`),Ug=v.partial(`<svg
|
|
20
|
+
width="20"
|
|
21
|
+
height="20"
|
|
22
|
+
viewBox="0 0 20 20"
|
|
23
|
+
fill="none"
|
|
24
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
25
|
+
class="default-expanded-icon"
|
|
26
|
+
>
|
|
27
|
+
<path
|
|
28
|
+
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"
|
|
29
|
+
fill="currentColor"
|
|
30
|
+
/>
|
|
31
|
+
</svg>`);function Kg(o={}){return v`<div class="heading" part="heading" role="heading" aria-level="${e=>e.headinglevel}"><button class="button" part="button" ${we("expandbutton")} ?disabled="${e=>e.disabled?"true":void 0}" aria-expanded="${e=>e.expanded}" aria-controls="${e=>e.id}-panel" id="${e=>e.id}" @click="${(e,t)=>e.clickHandler(t.event)}"><span class="heading-content" part="heading-content"><slot name="heading"></slot></span></button>${Ze(o)} ${Qe(o)}<span class="icon" part="icon" aria-hidden="true"><slot name="expanded-icon">${ae(o.expandedIcon)}</slot><slot name="collapsed-icon">${ae(o.collapsedIcon)}</slot><span></div><div class="region" part="region" id="${e=>e.id}-panel" role="region" aria-labelledby="${e=>e.id}"><slot></slot></div>`}const Zu=Kg({collapsedIcon:Xg,expandedIcon:Ug}),Yg=ne.compose({name:`${x.prefix}-accordion-item`,template:Zu,styles:Qu});var Qg=Object.defineProperty,Zg=Object.getOwnPropertyDescriptor,ee=(o,e,t,r)=>{for(var a=r>1?void 0:r?Zg(e,t):e,n=o.length-1,i;n>=0;n--)(i=o[n])&&(a=(r?i(e,t,a):i(a))||a);return r&&a&&Qg(e,t,a),a};class W extends S{constructor(){super(...arguments),this.iconOnly=!1,this.disabled=!1,this.disabledFocusable=!1,this.handleDisabledFocusableClick=e=>{if(e&&this.disabled||this.disabledFocusable){e.stopImmediatePropagation();return}}}disabledChanged(e,t){this.disabled?(this.setAttribute("aria-disabled","true"),this.setAttribute("tabindex","-1")):(this.removeAttribute("aria-disabled"),this.removeAttribute("tabindex"))}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)}}ee([s],W.prototype,"download",2),ee([s],W.prototype,"href",2),ee([s],W.prototype,"hreflang",2),ee([s],W.prototype,"ping",2),ee([s],W.prototype,"referrerpolicy",2),ee([s],W.prototype,"rel",2),ee([s],W.prototype,"target",2),ee([s],W.prototype,"type",2),ee([m],W.prototype,"defaultSlottedContent",2),ee([s],W.prototype,"appearance",2),ee([s],W.prototype,"shape",2),ee([s],W.prototype,"size",2),ee([s({attribute:"icon-only",mode:"boolean"})],W.prototype,"iconOnly",2),ee([s({mode:"boolean"})],W.prototype,"disabled",2),ee([s({attribute:"disabled-focusable",mode:"boolean"})],W.prototype,"disabledFocusable",2);class qi{}ee([s({attribute:"aria-expanded"})],qi.prototype,"ariaExpanded",2),Ee(qi,M),Ee(W,Ye,qi);const Uo={primary:"primary",outline:"outline",subtle:"subtle",secondary:"secondary",transparent:"transparent"},Ko={circular:"circular",rounded:"rounded",square:"square"},Yo={small:"small",medium:"medium",large:"large"},Qo={submit:"submit",reset:"reset",button:"button"},Jg=Uo,ef=Ko,tf=Yo,of={_self:"_self",_blank:"_blank",_parent:"_parent",_top:"_top"};function rf(o={}){return v`<a class="control" part="control" download="${e=>e.download}" href="${e=>e.href}" hreflang="${e=>e.hreflang}" ping="${e=>e.ping}" referrerpolicy="${e=>e.referrerpolicy}" rel="${e=>e.rel}" target="${e=>e.target}" type="${e=>e.type}" 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-relevant="${e=>e.ariaRelevant}" aria-roledescription="${e=>e.ariaRoledescription}" ${we("control")}>${Ze(o)}<span class="content" part="content"><slot ${Z("defaultSlottedContent")}></slot></span>${Qe(o)}</a>`}const Ju=rf(),af=g`
|
|
32
|
+
${A("inline-flex")}
|
|
33
|
+
|
|
34
|
+
:host{--icon-spacing:${_e};contain:layout style;vertical-align:middle}:host .control{display:inline-flex;align-items:center;box-sizing:border-box;justify-content:center;text-decoration-line:none;margin:0;min-height:32px;outline-style:none;background-color:${V};color:${E};border:${K} solid ${Je};padding:0 ${ot};min-width:96px;border-radius:${B};font-size:${F};font-family:${y};font-weight:${D};line-height:${z};transition-duration:${mo};transition-property:background,border,color;transition-timing-function:${$o};cursor:pointer}.content{display:inherit;text-align:center}:host(:hover) .control{background-color:${lo};color:${Ao};border-color:${Ot}}:host(:hover:active) .control{background-color:${Do};border-color:${ho};color:${Cr};outline-style:none}:host .control:focus-visible{border-color:${ye};outline:${ht}) solid ${ye};box-shadow:${_t},0 0 0 2px ${Pe}}@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]) .control{min-width:32px;max-width:32px}:host([size='small']){--icon-spacing:${fe}}:host([size='small']) .control{min-height:24px;min-width:64px;padding:0 ${G};border-radius:${ge};font-size:${j};line-height:${le};font-weight:${I}}:host([size='small'][icon-only]) .control{min-width:24px;max-width:24px}:host([size='large']) .control{min-height:40px;border-radius:${qo};padding:0 ${ea};font-size:${se};line-height:${$e}}:host([size='large'][icon-only]) .control{min-width:40px;max-width:40px}:host([size='large']) ::slotted(svg){font-size:24px;height:24px;width:24px}:host([shape='circular']) .control,:host([shape='circular']) .control:focus-visible{border-radius:${J}}:host([shape='square']) .control,:host([shape='square']) .control:focus-visible{border-radius:${Wo}}:host([appearance='primary']) .control{background-color:${uo};color:${pe};border-color:transparent}:host([appearance='primary']:hover) .control{background-color:${Oo}}:host([appearance='primary']:hover) .control,:host([appearance='primary']:hover:active) .control{border-color:transparent;color:${pe}}:host([appearance='primary']:hover:active) .control{background-color:${Eo}}:host([appearance='primary']) .control:focus-visible{border-color:${pe};box-shadow:${Xo},0 0 0 2px ${Pe}}:host(:is([disabled][appearance='primary'],[disabled-focusabale][appearance='primary'])) .control,:host(:is([disabled][appearance='primary'],[disabled-focusabale][appearance='primary']):hover) .control,:host(:is([disabled][appearance='primary'],[disabled-focusabale][appearance='primary']):hover:active) .control{border-color:transparent}:host([appearance='outline']) .control{background-color:${U}}:host([appearance='outline']:hover) .control{background-color:${dt}}:host([appearance='outline']:hover:active) .control{background-color:${Tt}}:host(:is([disabled][appearance='outline'],[disabled-focusabale][appearance='outline'])) .control,:host(:is([disabled][appearance='outline'],[disabled-focusabale][appearance='outline']):hover) .control,:host(:is([disabled][appearance='outline'],[disabled-focusabale][appearance='outline']):hover:active) .control{background-color:${U}}:host([appearance='subtle']) .control{background-color:${zr};color:${ie};border-color:transparent}:host([appearance='subtle']:hover) .control{background-color:${co};color:${Pt};border-color:transparent}:host([appearance='subtle']:hover:active) .control{background-color:${Ft};color:${Ct};border-color:transparent}:host(:is([disabled][appearance='subtle'],[disabled-focusabale][appearance='subtle'])) .control,:host(:is([disabled][appearance='subtle'],[disabled-focusabale][appearance='subtle']):hover) .control,:host(:is([disabled][appearance='subtle'],[disabled-focusabale][appearance='subtle']):hover:active) .control{background-color:${U};border-color:transparent}:host([appearance='subtle']:hover) ::slotted(svg){fill:${lt}}:host([appearance='subtle']:hover:active) ::slotted(svg){fill:${ct}}:host([appearance='transparent']) .control{background-color:${U};color:${ie}}:host([appearance='transparent']:hover) .control{background-color:${dt};color:${lt}}:host([appearance='transparent']:hover:active) .control{background-color:${Tt};color:${ct}}:host([appearance='transparent']) .control,:host([appearance='transparent']:hover) .control,:host([appearance='transparent']:hover:active) .control{border-color:transparent}:host(:is([disabled][appearance='transparent'],[disabled-focusabale][appearance='transparent'])) .control,:host(:is([disabled][appearance='transparent'],[disabled-focusabale][appearance='transparent']):hover) .control,:host(:is([disabled][appearance='transparent'],[disabled-focusabale][appearance='transparent']):hover:active)
|
|
35
|
+
.control{border-color:transparent;background-color:${U}}:host(:is([disabled],[disabled-focusable],[appearance][disabled],[appearance][disabled-focusable])) .control,:host(:is([disabled],[disabled-focusable],[appearance][disabled],[appearance][disabled-focusable]):hover) .control,:host(:is([disabled],[disabled-focusable],[appearance][disabled],[appearance][disabled-focusable]):hover:active)
|
|
36
|
+
.control{background-color:${At};border-color:${Me};color:${k};cursor:not-allowed}`.withBehaviors(Te(g`
|
|
37
|
+
:host([appearance='transparent']:hover) .control{border-color:Highlight}`)),nf=W.compose({name:`${x.prefix}-anchor-button`,template:Ju,styles:af,shadowOptions:{delegatesFocus:!0}}),sf=/[\(\[\{][^\)\]\}]*[\)\]\}]/g,lf=/[\0-\u001F\!-/:-@\[-`\{-\u00BF\u0250-\u036F\uD800-\uFFFF]/g,cf=/^\d+[\d\s]*(:?ext|x|)\s*\d+$/i,df=/\s+/g,uf=/[\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 hf(o,e,t){let r="";const a=o.split(" ");return a.length!==0&&(r+=a[0].charAt(0).toUpperCase()),t||(a.length===2?r+=a[1].charAt(0).toUpperCase():a.length===3&&(r+=a[2].charAt(0).toUpperCase())),e&&r.length>1?r.charAt(1)+r.charAt(0):r}function pf(o){return o=o.replace(sf,""),o=o.replace(lf,""),o=o.replace(df," "),o=o.trim(),o}function gf(o,e,t){return!o||(o=pf(o),uf.test(o)||!t?.allowPhoneInitials&&cf.test(o))?"":hf(o,e,t?.firstInitialOnly)}const ff={active:"active",inactive:"inactive"},bf={circular:"circular",square:"square"},vf={ring:"ring",shadow:"shadow",ringShadow:"ring-shadow"},Xi={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"},eh={neutral:"neutral",brand:"brand",colorful:"colorful",...Xi},mf={_16:16,_20:20,_24:24,_28:28,_32:32,_36:36,_40:40,_48:48,_56:56,_64:64,_72:72,_96:96,_120:120,_128:128};var yf=Object.defineProperty,$f=Object.getOwnPropertyDescriptor,pt=(o,e,t,r)=>{for(var a=r>1?void 0:r?$f(e,t):e,n=o.length-1,i;n>=0;n--)(i=o[n])&&(a=(r?i(e,t,a):i(a))||a);return r&&a&&yf(e,t,a),a};const Re=class ss extends S{constructor(){super(...arguments),this.color="neutral"}generateColor(){if(this.color)return this.color===eh.colorful?ss.colors[kf(this.colorId??this.name??"")%ss.colors.length]:this.color}generateInitials(){if(!this.name&&!this.initials)return;const e=this.size??32;return this.initials??gf(this.name,window.getComputedStyle(this).direction==="rtl",{firstInitialOnly:e<=16})}};Re.colors=Object.values(Xi),pt([s],Re.prototype,"name",2),pt([s],Re.prototype,"initials",2),pt([s({converter:me})],Re.prototype,"size",2),pt([s],Re.prototype,"shape",2),pt([s],Re.prototype,"active",2),pt([s],Re.prototype,"appearance",2),pt([s],Re.prototype,"color",2),pt([s({attribute:"color-id"})],Re.prototype,"colorId",2);let th=Re;const kf=o=>{let e=0;for(let t=o.length-1;t>=0;t--){const r=o.charCodeAt(t),a=t%8;e^=(r<<a)+(r>>8-a)}return e},xf=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 Bf(){return v`<template role="img" data-color=${o=>o.generateColor()}><slot>${o=>o.name||o.initials?o.generateInitials():xf}</slot><slot name="badge"></slot></template>`}const oh=Bf(),gt={fastOutSlowInMax:la,fastOutSlowInMid:ca,fastOutSlowInMin:ji,slowOutFastInMax:Ri,slowOutFastInMid:sa,slowOutFastInMin:Vi,fastEase:Gi,normalEase:$o,nullEasing:Wi},rh=g`
|
|
38
|
+
${A("inline-flex")} :host{position:relative;align-items:center;justify-content:center;flex-shrink:0;width:32px;height:32px;font-family:${y};font-weight:${D};font-size:${F};border-radius:${J};color:${X};background-color:${Ir};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:${J}}::slotted([slot='badge']){position:absolute;bottom:0;right:0;box-shadow:0 0 0 ${K}) ${V}}: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 ${ht}) ${V}}:host([size='16']),:host([size='20']),:host([size='24']){font-size:${Ht};font-weight:${I}}: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:${j}}:host([size='36']){width:36px;height:36px}:host([size='40']){width:40px;height:40px}:host([size='48']),:host([size='56']){font-size:${se}}: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:${et}}: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:${go}}:host([size='120']){width:120px;height:120px}:host([size='128']){width:128px;height:128px}:host([shape='square']){border-radius:${B}}:host([shape='square'][size='20']),:host([shape='square'][size='24']){border-radius:${ge}}:host([shape='square'][size='56']),:host([shape='square'][size='64']),:host([shape='square'][size='72']){border-radius:${qo}}:host([shape='square'][size='96']),:host([shape='square'][size='120']),:host([shape='square'][size='128']){border-radius:${Vr}}:host([data-color='brand']){color:${Fr};background-color:${Nr}}:host([data-color='dark-red']){color:${qn};background-color:${Wn}}:host([data-color='cranberry']){color:${Vn};background-color:${Rn}}:host([data-color='red']){color:${fn};background-color:${_o}}:host([data-color='pumpkin']){color:${$i};background-color:${yi}}:host([data-color='peach']){color:${hi};background-color:${ui}}:host([data-color='marigold']){color:${Fn};background-color:${Cn}}:host([data-color='gold']){color:${Yn};background-color:${Kn}}:host([data-color='brass']){color:${On};background-color:${Dn}}:host([data-color='brown']){color:${Mn};background-color:${En}}:host([data-color='forest']){color:${Un};background-color:${Xn}}:host([data-color='seafoam']){color:${Pi};background-color:${Si}}:host([data-color='dark-green']){color:${Gn};background-color:${jn}}:host([data-color='light-teal']){color:${oi};background-color:${ti}}:host([data-color='teal']){color:${Ai};background-color:${Ti}}:host([data-color='steel']){color:${Fi};background-color:${Ci}}:host([data-color='blue']){color:${Ln};background-color:${Nn}}:host([data-color='royal-blue']){color:${wi};background-color:${Bi}}:host([data-color='cornflower']){color:${_n};background-color:${Hn}}:host([data-color='navy']){color:${di};background-color:${ci}}:host([data-color='lavender']){color:${ei};background-color:${Jn}}:host([data-color='purple']){color:${xi};background-color:${ki}}:host([data-color='grape']){color:${Zn};background-color:${Qn}}:host([data-color='lilac']){color:${ai};background-color:${ri}}:host([data-color='pink']){color:${gi};background-color:${pi}}:host([data-color='magenta']){color:${ii};background-color:${ni}}:host([data-color='plum']){color:${mi};background-color:${vi}}:host([data-color='beige']){color:${zn};background-color:${In}}:host([data-color='mink']){color:${li};background-color:${si}}:host([data-color='platinum']){color:${bi};background-color:${fi}}:host([data-color='anchor']){color:${An};background-color:${Tn}}:host([active]){transform:perspective(1px);transition-property:transform,opacity;transition-duration:${yo},${mo};transition-delay:${gt.fastEase},${gt.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}),${ia};transition-delay:${gt.fastEase}),${gt.nullEasing})}:host([active])::before{box-shadow:${Li};border-style:solid;border-color:${Nr}}:host([active][appearance='shadow'])::before{border-style:none;border-color:none}:host([active]:not([appearance='shadow']))::before{margin:calc(-2 * ${ht});border-width:${ht}}:host([size='56'][active]:not([appearance='shadow']))::before,:host([size='64'][active]:not([appearance='shadow']))::before{margin:calc(-2 * ${He});border-width:${He}}: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:${_t}}:host([size='56'][active][appearance])::before,:host([size='64'][active][appearance])::before{box-shadow:${Zr}}: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:${Di}}: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},${mo};transition-delay:${gt.fastOutSlowInMin},${gt.nullEasing}}:host([active='inactive'])::before{margin:0;opacity:0;transition-property:margin,opacity;transition-duration:${yo},${ia};transition-delay:${gt.fastOutSlowInMin},${gt.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}}`,wf=th.compose({name:`${x.prefix}-avatar`,template:oh,styles:rh}),ah={filled:"filled",ghost:"ghost",outline:"outline",tint:"tint"},nh={brand:"brand",danger:"danger",important:"important",informative:"informative",severe:"severe",subtle:"subtle",success:"success",warning:"warning"},Sf={circular:"circular",rounded:"rounded",square:"square"},Pf={tiny:"tiny",extraSmall:"extra-small",small:"small",medium:"medium",large:"large",extraLarge:"extra-large"};var Cf=Object.defineProperty,Ff=Object.getOwnPropertyDescriptor,da=(o,e,t,r)=>{for(var a=r>1?void 0:r?Ff(e,t):e,n=o.length-1,i;n>=0;n--)(i=o[n])&&(a=(r?i(e,t,a):i(a))||a);return r&&a&&Cf(e,t,a),a};class Vt extends S{constructor(){super(...arguments),this.appearance=ah.filled,this.color=nh.brand}}da([s],Vt.prototype,"appearance",2),da([s],Vt.prototype,"color",2),da([s],Vt.prototype,"shape",2),da([s],Vt.prototype,"size",2),Ee(Vt,Ye);function ih(o={}){return v` ${Ze(o)}<slot>${ae(o.defaultContent)}</slot>${Qe(o)} `}const sh=ih(),ua=tt,lh=g.partial`
|
|
39
|
+
${A("inline-flex")} :host {
|
|
18
40
|
position: relative;
|
|
19
41
|
box-sizing: border-box;
|
|
20
42
|
align-items: center;
|
|
21
43
|
justify-content: center;
|
|
22
|
-
font-family: ${
|
|
23
|
-
font-weight: ${
|
|
24
|
-
font-size: ${
|
|
25
|
-
line-height: ${
|
|
44
|
+
font-family: ${y};
|
|
45
|
+
font-weight: ${D};
|
|
46
|
+
font-size: ${j};
|
|
47
|
+
line-height: ${le};
|
|
26
48
|
min-width: 20px;
|
|
27
49
|
height: 20px;
|
|
28
|
-
padding-inline: calc(${
|
|
29
|
-
border-radius: ${
|
|
30
|
-
border-color: ${
|
|
31
|
-
background-color: ${
|
|
32
|
-
color: ${
|
|
50
|
+
padding-inline: calc(${fe} + ${ua});
|
|
51
|
+
border-radius: ${J};
|
|
52
|
+
border-color: ${ye};
|
|
53
|
+
background-color: ${uo};
|
|
54
|
+
color: ${pe};
|
|
33
55
|
contain: content;
|
|
34
56
|
}
|
|
35
57
|
|
|
@@ -45,11 +67,11 @@ function e(e,t,o,r){var i,a=arguments.length,n=a<3?t:null===r?r=Object.getOwnPro
|
|
|
45
67
|
bottom: 0;
|
|
46
68
|
right: 0;
|
|
47
69
|
border-style: solid;
|
|
48
|
-
border-width: ${
|
|
70
|
+
border-width: ${K};
|
|
49
71
|
border-color: inherit;
|
|
50
72
|
border-radius: inherit;
|
|
51
73
|
}
|
|
52
|
-
`,
|
|
74
|
+
`,ch=g.partial`
|
|
53
75
|
:host([size='tiny']) {
|
|
54
76
|
width: 6px;
|
|
55
77
|
height: 6px;
|
|
@@ -75,9 +97,9 @@ function e(e,t,o,r){var i,a=arguments.length,n=a<3?t:null===r?r=Object.getOwnPro
|
|
|
75
97
|
:host([size='small']) {
|
|
76
98
|
min-width: 16px;
|
|
77
99
|
height: 16px;
|
|
78
|
-
font-size: ${
|
|
79
|
-
line-height: ${
|
|
80
|
-
padding-inline: calc(${
|
|
100
|
+
font-size: ${Ht};
|
|
101
|
+
line-height: ${bo};
|
|
102
|
+
padding-inline: calc(${tt} + ${ua});
|
|
81
103
|
}
|
|
82
104
|
:host([size='small']) ::slotted(svg) {
|
|
83
105
|
font-size: 12px;
|
|
@@ -85,9 +107,9 @@ function e(e,t,o,r){var i,a=arguments.length,n=a<3?t:null===r?r=Object.getOwnPro
|
|
|
85
107
|
:host([size='large']) {
|
|
86
108
|
min-width: 24px;
|
|
87
109
|
height: 24px;
|
|
88
|
-
font-size: ${
|
|
89
|
-
line-height: ${
|
|
90
|
-
padding-inline: calc(${
|
|
110
|
+
font-size: ${j};
|
|
111
|
+
line-height: ${le};
|
|
112
|
+
padding-inline: calc(${fe} + ${ua});
|
|
91
113
|
}
|
|
92
114
|
:host([size='large']) ::slotted(svg) {
|
|
93
115
|
font-size: 16px;
|
|
@@ -95,254 +117,382 @@ function e(e,t,o,r){var i,a=arguments.length,n=a<3?t:null===r?r=Object.getOwnPro
|
|
|
95
117
|
:host([size='extra-large']) {
|
|
96
118
|
min-width: 32px;
|
|
97
119
|
height: 32px;
|
|
98
|
-
font-size: ${
|
|
99
|
-
line-height: ${
|
|
100
|
-
padding-inline: calc(${
|
|
120
|
+
font-size: ${j};
|
|
121
|
+
line-height: ${le};
|
|
122
|
+
padding-inline: calc(${_e} + ${ua});
|
|
101
123
|
}
|
|
102
124
|
:host([size='extra-large']) ::slotted(svg) {
|
|
103
125
|
font-size: 20px;
|
|
104
126
|
}
|
|
105
|
-
`,
|
|
127
|
+
`,dh=g.partial`
|
|
106
128
|
:host([color='danger']) {
|
|
107
|
-
background-color: ${
|
|
108
|
-
color: ${
|
|
129
|
+
background-color: ${Ro};
|
|
130
|
+
color: ${pe};
|
|
109
131
|
}
|
|
110
132
|
|
|
111
133
|
:host([color='important']) {
|
|
112
|
-
background-color: ${
|
|
113
|
-
color: ${
|
|
134
|
+
background-color: ${E};
|
|
135
|
+
color: ${V};
|
|
114
136
|
}
|
|
115
137
|
|
|
116
138
|
:host([color='informative']) {
|
|
117
|
-
background-color: ${
|
|
118
|
-
color: ${
|
|
139
|
+
background-color: ${an};
|
|
140
|
+
color: ${X};
|
|
119
141
|
}
|
|
120
142
|
|
|
121
143
|
:host([color='severe']) {
|
|
122
|
-
background-color: ${
|
|
123
|
-
color: ${
|
|
144
|
+
background-color: ${jo};
|
|
145
|
+
color: ${pe};
|
|
124
146
|
}
|
|
125
147
|
|
|
126
148
|
:host([color='subtle']) {
|
|
127
|
-
background-color: ${
|
|
128
|
-
color: ${
|
|
149
|
+
background-color: ${V};
|
|
150
|
+
color: ${E};
|
|
129
151
|
}
|
|
130
152
|
|
|
131
153
|
:host([color='success']) {
|
|
132
|
-
background-color: ${
|
|
133
|
-
color: ${
|
|
154
|
+
background-color: ${Vo};
|
|
155
|
+
color: ${pe};
|
|
134
156
|
}
|
|
135
157
|
|
|
136
158
|
:host([color='warning']) {
|
|
137
|
-
background-color: ${
|
|
138
|
-
color: ${
|
|
159
|
+
background-color: ${Sn};
|
|
160
|
+
color: ${on};
|
|
139
161
|
}
|
|
140
|
-
`,
|
|
162
|
+
`,uh=g.partial`
|
|
141
163
|
:host([appearance='ghost']) {
|
|
142
|
-
color: ${
|
|
164
|
+
color: ${Lo};
|
|
143
165
|
background-color: initial;
|
|
144
166
|
}
|
|
145
167
|
|
|
146
168
|
:host([appearance='ghost'][color='danger']) {
|
|
147
|
-
color: ${
|
|
169
|
+
color: ${Mr};
|
|
148
170
|
}
|
|
149
171
|
|
|
150
172
|
:host([appearance='ghost'][color='important']) {
|
|
151
|
-
color: ${
|
|
173
|
+
color: ${E};
|
|
152
174
|
}
|
|
153
175
|
|
|
154
176
|
:host([appearance='ghost'][color='informative']) {
|
|
155
|
-
color: ${
|
|
177
|
+
color: ${X};
|
|
156
178
|
}
|
|
157
179
|
|
|
158
180
|
:host([appearance='ghost'][color='severe']) {
|
|
159
|
-
color: ${
|
|
181
|
+
color: ${Rr};
|
|
160
182
|
}
|
|
161
183
|
|
|
162
184
|
:host([appearance='ghost'][color='subtle']) {
|
|
163
|
-
color: ${
|
|
185
|
+
color: ${so};
|
|
164
186
|
}
|
|
165
187
|
|
|
166
188
|
:host([appearance='ghost'][color='success']) {
|
|
167
|
-
color: ${
|
|
189
|
+
color: ${$n};
|
|
168
190
|
}
|
|
169
191
|
|
|
170
192
|
:host([appearance='ghost'][color='warning']) {
|
|
171
|
-
color: ${
|
|
193
|
+
color: ${Go};
|
|
172
194
|
}
|
|
173
|
-
`,
|
|
195
|
+
`,Tf=g.partial`
|
|
174
196
|
:host([appearance='outline']) {
|
|
175
197
|
border-color: currentColor;
|
|
176
|
-
color: ${
|
|
198
|
+
color: ${Lo};
|
|
177
199
|
background-color: initial;
|
|
178
200
|
}
|
|
179
201
|
|
|
180
202
|
:host([appearance='outline'][color='danger']) {
|
|
181
|
-
color: ${
|
|
203
|
+
color: ${Mr};
|
|
182
204
|
}
|
|
183
205
|
|
|
184
206
|
:host([appearance='outline'][color='important']) {
|
|
185
|
-
color: ${
|
|
186
|
-
border-color: ${
|
|
207
|
+
color: ${X};
|
|
208
|
+
border-color: ${Ae};
|
|
187
209
|
}
|
|
188
210
|
|
|
189
211
|
:host([appearance='outline'][color='informative']) {
|
|
190
|
-
color: ${
|
|
191
|
-
border-color: ${
|
|
212
|
+
color: ${X};
|
|
213
|
+
border-color: ${Et};
|
|
192
214
|
}
|
|
193
215
|
|
|
194
216
|
:host([appearance='outline'][color='severe']) {
|
|
195
|
-
color: ${
|
|
217
|
+
color: ${Rr};
|
|
196
218
|
}
|
|
197
219
|
|
|
198
220
|
:host([appearance='outline'][color='subtle']) {
|
|
199
|
-
color: ${
|
|
221
|
+
color: ${Fr};
|
|
200
222
|
}
|
|
201
223
|
|
|
202
224
|
:host([appearance='outline'][color='success']) {
|
|
203
|
-
color: ${
|
|
225
|
+
color: ${yn};
|
|
204
226
|
}
|
|
205
227
|
|
|
206
228
|
:host([appearance='outline'][color='warning']) {
|
|
207
|
-
color: ${
|
|
229
|
+
color: ${Go};
|
|
208
230
|
}
|
|
209
|
-
`,
|
|
231
|
+
`,Af=g.partial`
|
|
210
232
|
:host([appearance='tint']) {
|
|
211
|
-
background-color: ${
|
|
212
|
-
color: ${
|
|
213
|
-
border-color: ${
|
|
233
|
+
background-color: ${Nt};
|
|
234
|
+
color: ${tn};
|
|
235
|
+
border-color: ${Dr};
|
|
214
236
|
}
|
|
215
237
|
|
|
216
238
|
:host([appearance='tint'][color='danger']) {
|
|
217
|
-
background-color: ${
|
|
218
|
-
color: ${
|
|
219
|
-
border-color: ${
|
|
239
|
+
background-color: ${pn};
|
|
240
|
+
color: ${Er};
|
|
241
|
+
border-color: ${gn};
|
|
220
242
|
}
|
|
221
243
|
|
|
222
244
|
:host([appearance='tint'][color='important']) {
|
|
223
|
-
background-color: ${
|
|
224
|
-
color: ${
|
|
225
|
-
border-color: ${
|
|
245
|
+
background-color: ${X};
|
|
246
|
+
color: ${V};
|
|
247
|
+
border-color: ${ye};
|
|
226
248
|
}
|
|
227
249
|
|
|
228
250
|
:host([appearance='tint'][color='informative']) {
|
|
229
|
-
background-color: ${
|
|
230
|
-
color: ${
|
|
231
|
-
border-color: ${
|
|
251
|
+
background-color: ${rn};
|
|
252
|
+
color: ${X};
|
|
253
|
+
border-color: ${Et};
|
|
232
254
|
}
|
|
233
255
|
|
|
234
256
|
:host([appearance='tint'][color='severe']) {
|
|
235
|
-
background-color: ${
|
|
236
|
-
color: ${
|
|
237
|
-
border-color: ${
|
|
257
|
+
background-color: ${kn};
|
|
258
|
+
color: ${Bn};
|
|
259
|
+
border-color: ${xn};
|
|
238
260
|
}
|
|
239
261
|
|
|
240
262
|
:host([appearance='tint'][color='subtle']) {
|
|
241
|
-
background-color: ${
|
|
242
|
-
color: ${
|
|
243
|
-
border-color: ${
|
|
263
|
+
background-color: ${V};
|
|
264
|
+
color: ${X};
|
|
265
|
+
border-color: ${Et};
|
|
244
266
|
}
|
|
245
267
|
|
|
246
268
|
:host([appearance='tint'][color='success']) {
|
|
247
|
-
background-color: ${
|
|
248
|
-
color: ${
|
|
249
|
-
border-color: ${
|
|
269
|
+
background-color: ${bn};
|
|
270
|
+
color: ${mn};
|
|
271
|
+
border-color: ${vn};
|
|
250
272
|
}
|
|
251
273
|
|
|
252
274
|
: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:Ne})(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 Fd(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 ${Ae("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 Ad=Object.defineProperty,zd=Object.getOwnPropertyDescriptor,Nd=(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&&Ad(t,o,a),a};class Ld 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)}}Nd([Ee],Ld.prototype,"appearance",2),Nd([Ee],Ld.prototype,"shape",2),Nd([Ee],Ld.prototype,"size",2),Nd([Ee({attribute:"icon-only",mode:"boolean"})],Ld.prototype,"iconOnly",2),Nd([Ee({attribute:"disabled-focusable",mode:"boolean"})],Ld.prototype,"disabledFocusable",2);const Od=Fd(),Dd=Ld.compose({name:Tt.prefix+"-button",template:Od,styles:Sc,shadowOptions:{delegatesFocus:!0}});class Ed extends ot{}class Rd extends(wd(Ed)){constructor(){super(...arguments),this.proxy=document.createElement("input")}}class Md extends Rd{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],Md.prototype,"defaultSlottedNodes",void 0),e([C],Md.prototype,"indeterminate",void 0);var Hd=Object.defineProperty,Vd=Object.getOwnPropertyDescriptor,jd=(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 _d extends Md{}jd([Ee],_d.prototype,"shape",2),jd([Ee],_d.prototype,"size",2),jd([Ee({attribute:"label-position"})],_d.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 ${Ae("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=_`
|
|
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:${Ao};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:${No}}:host([weight='semibold']){font-weight:${No}}:host([disabled]),:host([disabled]) .asterisk{color:${jr}}`;const Hh=xe`<slot></slot><span part="asterisk" class="asterisk" ?hidden="${e=>!e.required}">*</span>`,Vh=Rh.compose({name:Tt.prefix+"-label",template:Hh,styles:Mh});class jh extends Ld{}const _h=yc,Gh=kc,qh=xc,Xh=Fd({end:xe.partial('<svg slot="end" fill="currentColor" aria-hidden="true" width="1em" height="1em" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><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></svg>')}),Wh=jh.compose({name:Tt.prefix+"-menu-button",template:Xh,styles:Sc,shadowOptions:{delegatesFocus:!0}}),Uh={menuitem:"menuitem",menuitemcheckbox:"menuitemcheckbox",menuitemradio:"menuitemradio"};function Yh(e){return e.split("-")[1]}function Kh(e){return"y"===e?"height":"width"}function Qh(e){return e.split("-")[0]}function Zh(e){return["top","bottom"].includes(Qh(e))?"x":"y"}function Jh(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=Zh(t),l=Kh(s),c=r[l]/2-i[l]/2,d="x"===s;let h;switch(Qh(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(Yh(t)){case"start":h[s]-=c*(o&&d?-1:1);break;case"end":h[s]+=c*(o&&d?-1:1)}return h}function eu(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}async function tu(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=eu(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=eu(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 ou=Math.min,ru=Math.max;function iu(e,t,o){return ru(e,ou(t,o))}["top","right","bottom","left"].reduce((e,t)=>e.concat(t,t+"-start",t+"-end"),[]);const au={left:"right",right:"left",bottom:"top",top:"bottom"};function nu(e){return e.replace(/left|right|bottom|top/g,e=>au[e])}function su(e,t,o){void 0===o&&(o=!1);const r=Yh(e),i=Zh(e),a=Kh(i);let n="x"===i?r===(o?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[a]>t.floating[a]&&(n=nu(n)),{main:n,cross:nu(n)}}const lu={start:"end",end:"start"};function cu(e){return e.replace(/start|end/g,e=>lu[e])}const du=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=Qh(r),m=Qh(n)===n,v=await(null==s.isRTL?void 0:s.isRTL(l.floating)),y=h||(m||!g?[nu(n)]:function(e){const t=nu(e);return[cu(e),t,cu(t)]}(n));h||"none"===p||y.push(...function(e,t,o,r){const i=Yh(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[]}}(Qh(e),"start"===o,r);return i&&(a=a.map(e=>e+"-"+i),t&&(a=a.concat(a.map(cu)))),a}(n,g,p,v));const k=[n,...y],x=await tu(t,b),$=[];let w=(null==(o=i.flip)?void 0:o.overflows)||[];if(c&&$.push(x[f]),d){const{main:e,cross:t}=su(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{}}}};const hu=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 tu(t,l),h=Zh(Qh(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=iu(p+d["y"===h?"top":"left"],p,p-d[e])}if(n){const e="y"===u?"bottom":"right";g=iu(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}}}}},uu=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 tu(t,s),c=Qh(o),d=Yh(o),h="x"===Zh(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=ou(u-l.right-l.left,m):v=ou(p-l.bottom-l.top,f),!t.middlewareData.shift&&!d){const e=ru(l.left,0),t=ru(l.right,0),o=ru(l.top,0),r=ru(l.bottom,0);h?y=u-2*(0!==e||0!==t?e+t:ru(l.left,l.right)):v=p-2*(0!==o||0!==r?o+r:ru(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 pu(e){var t;return(null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function gu(e){return pu(e).getComputedStyle(e)}const bu=Math.min,fu=Math.max,mu=Math.round;function vu(e){const t=gu(e);let o=parseFloat(t.width),r=parseFloat(t.height);const i=e.offsetWidth,a=e.offsetHeight,n=mu(o)!==i||mu(r)!==a;return n&&(o=i,r=a),{width:o,height:r,fallback:n}}function yu(e){return Bu(e)?(e.nodeName||"").toLowerCase():""}let ku;function xu(){if(ku)return ku;const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?(ku=e.brands.map(e=>e.brand+"/"+e.version).join(" "),ku):navigator.userAgent}function $u(e){return e instanceof pu(e).HTMLElement}function wu(e){return e instanceof pu(e).Element}function Bu(e){return e instanceof pu(e).Node}function Cu(e){return"undefined"!=typeof ShadowRoot&&(e instanceof pu(e).ShadowRoot||e instanceof ShadowRoot)}function Su(e){const{overflow:t,overflowX:o,overflowY:r,display:i}=gu(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+o)&&!["inline","contents"].includes(i)}function Pu(e){return["table","td","th"].includes(yu(e))}function Tu(e){const t=/firefox/i.test(xu()),o=gu(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 Iu(){return/^((?!chrome|android).)*safari/i.test(xu())}function Fu(e){return["html","body","#document"].includes(yu(e))}function Au(e){return wu(e)?e:e.contextElement}const zu={x:1,y:1};function Nu(e){const t=Au(e);if(!$u(t))return zu;const o=t.getBoundingClientRect(),{width:r,height:i,fallback:a}=vu(t);let n=(a?mu(o.width):o.width)/r,s=(a?mu(o.height):o.height)/i;return n&&Number.isFinite(n)||(n=1),s&&Number.isFinite(s)||(s=1),{x:n,y:s}}function Lu(e,t,o,r){var i,a;void 0===t&&(t=!1),void 0===o&&(o=!1);const n=e.getBoundingClientRect(),s=Au(e);let l=zu;t&&(r?wu(r)&&(l=Nu(r)):l=Nu(e));const c=s?pu(s):window,d=Iu()&&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=pu(s),t=r&&wu(r)?pu(r):r;let o=e.frameElement;for(;o&&r&&t!==e;){const e=Nu(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=pu(o).frameElement}}return{width:p,height:g,top:u,right:h+p,bottom:u+g,left:h,x:h,y:u}}function Ou(e){return((Bu(e)?e.ownerDocument:e.document)||window.document).documentElement}function Du(e){return wu(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Eu(e){return Lu(Ou(e)).left+Du(e).scrollLeft}function Ru(e){if("html"===yu(e))return e;const t=e.assignedSlot||e.parentNode||Cu(e)&&e.host||Ou(e);return Cu(t)?t.host:t}function Mu(e,t){var o;void 0===t&&(t=[]);const r=function e(t){const o=Ru(t);return Fu(o)?o.ownerDocument.body:$u(o)&&Su(o)?o:e(o)}(e),i=r===(null==(o=e.ownerDocument)?void 0:o.body),a=pu(r);return i?t.concat(a,a.visualViewport||[],Su(r)?r:[]):t.concat(r,Mu(r))}function Hu(e,t,o){let r;if("viewport"===t)r=function(e,t){const o=pu(e),r=Ou(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=Iu();(!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=Ou(e),o=Du(e),r=e.ownerDocument.body,i=fu(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=fu(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let n=-o.scrollLeft+Eu(e);const s=-o.scrollTop;return"rtl"===gu(r).direction&&(n+=fu(t.clientWidth,r.clientWidth)-i),{width:i,height:a,x:n,y:s}}(Ou(e));else if(wu(t))r=function(e,t){const o=Lu(e,!0,"fixed"===t),r=o.top+e.clientTop,i=o.left+e.clientLeft,a=$u(e)?Nu(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(Iu()){var i,a;const t=pu(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 eu(r)}function Vu(e,t){return $u(e)&&"fixed"!==gu(e).position?t?t(e):e.offsetParent:null}function ju(e,t){const o=pu(e);let r=Vu(e,t);for(;r&&Pu(r)&&"static"===gu(r).position;)r=Vu(r,t);return r&&("html"===yu(r)||"body"===yu(r)&&"static"===gu(r).position&&!Tu(r))?o:r||function(e){let t=Ru(e);for(;$u(t)&&!Fu(t);){if(Tu(t))return t;t=Ru(t)}return null}(e)||o}function _u(e,t,o){const r=$u(t),i=Ou(t),a=Lu(e,!0,"fixed"===o,t);let n={scrollLeft:0,scrollTop:0};const s={x:0,y:0};if(r||!r&&"fixed"!==o)if(("body"!==yu(t)||Su(i))&&(n=Du(t)),$u(t)){const e=Lu(t,!0);s.x=e.x+t.clientLeft,s.y=e.y+t.clientTop}else i&&(s.x=Eu(i));return{x:a.left+n.scrollLeft-s.x,y:a.top+n.scrollTop-s.y,width:a.width,height:a.height}}const Gu={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=Mu(e).filter(e=>wu(e)&&"body"!==yu(e)),i=null;const a="fixed"===gu(e).position;let n=a?Ru(e):e;for(;wu(n)&&!Fu(n);){const e=gu(n),t=Tu(n);(a?t||i:t||"static"!==e.position||!i||!["absolute","fixed"].includes(i.position))?i=e:r=r.filter(e=>e!==n),n=Ru(n)}return t.set(e,r),r}(t,this._c):[].concat(o),r],n=a[0],s=a.reduce((e,o)=>{const r=Hu(t,o,i);return e.top=fu(r.top,e.top),e.right=bu(r.right,e.right),e.bottom=bu(r.bottom,e.bottom),e.left=fu(r.left,e.left),e},Hu(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=$u(o),a=Ou(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"!==yu(o)||Su(a))&&(n=Du(o)),$u(o))){const e=Lu(o);s=Nu(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:wu,getDimensions:function(e){return $u(e)?vu(e):e.getBoundingClientRect()},getOffsetParent:ju,getDocumentElement:Ou,getScale:Nu,async getElementRects(e){let{reference:t,floating:o,strategy:r}=e;const i=this.getOffsetParent||ju,a=this.getDimensions;return{reference:_u(t,await i(o),r),floating:{x:0,y:0,...await a(o)}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>"rtl"===gu(e).direction};const qu=(e,t,o)=>{const r=new Map,i={platform:Gu,...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}=Jh(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}=Jh(c,u,l))),o=-1)}return{x:d,y:h,placement:u,strategy:i,middlewareData:p}})(e,t,{...i,platform:a})};class Xu extends ot{constructor(){super(...arguments),this.role=Uh.menuitem,this.checked=!1,this.focusSubmenuOnLoad=!1,this.handleMenuItemKeyDown=e=>{if(e.defaultPrevented)return!1;switch(e.key){case"Enter":case" ":return this.invoke(),!1;case"ArrowRight":return this.expanded&&this.submenu?this.submenu.focus():this.expandAndFocus(),!1;case"Escape":if(this.expanded)return this.closeSubMenu(),!1;break;case"ArrowLeft":if(this.expanded)return this.closeSubMenu(),!1}return!0},this.handleMenuItemClick=e=>(e.defaultPrevented||this.disabled||this.invoke(),!1),this.submenuLoaded=()=>{this.focusSubmenuOnLoad&&(this.focusSubmenuOnLoad=!1,this.submenu&&(this.submenu.focus(),this.setAttribute("tabindex","-1")))},this.handleMouseOver=e=>(this.disabled||!this.hasSubmenu||this.expanded||(this.expanded=!0),!1),this.handleMouseOut=e=>(!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 Uh.menuitemcheckbox:this.checked=!this.checked;break;case Uh.menuitem:if(this.hasSubmenu){this.expandAndFocus();break}this.$emit("change");break;case Uh.menuitemradio:this.checked||(this.checked=!0)}}}expandedChanged(e,t){this.$fastController.isConnected&&(t&&this.submenu&&this.updateSubmenu(),this.$emit("expanded-change",this,{bubbles:!1}))}checkedChanged(e,t){this.$fastController.isConnected&&this.$emit("change")}get hasSubmenu(){return!!this.submenu}slottedSubmenuChanged(e,t){t.length&&(this.submenu=t[0],this.updateSubmenu())}disconnectedCallback(){var e;null===(e=this.cleanup)||void 0===e||e.call(this),super.disconnectedCallback()}updateSubmenu(){var e;null===(e=this.cleanup)||void 0===e||e.call(this),this.submenu&&this.expanded&&k.enqueue(()=>{this.cleanup=function(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?[...wu(e)?Mu(e):e.contextElement?Mu(e.contextElement):[],...Mu(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}),wu(e)&&!s&&h.observe(e),wu(e)||!e.contextElement||s||h.observe(e.contextElement),h.observe(t)}let u=s?Lu(e):null;return s&&function t(){const r=Lu(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)}}(this,this.submenuContainer,()=>t(this,void 0,void 0,(function*(){const e=["left-start","right-start"],{x:t,y:o}=yield qu(this,this.submenuContainer,{middleware:[hu(),uu({apply:({availableWidth:t,rects:o})=>{t<o.floating.width&&e.push("bottom-end","top-end")}}),du({fallbackPlacements:e})],placement:"right-start",strategy:"fixed"});Object.assign(this.submenuContainer.style,{left:t+"px",position:"fixed",top:o+"px"}),this.submenuLoaded()})))})}}e([Ee({mode:"boolean"})],Xu.prototype,"disabled",void 0),e([Ee({mode:"boolean"})],Xu.prototype,"expanded",void 0),e([Ee],Xu.prototype,"role",void 0),e([Ee({mode:"boolean"})],Xu.prototype,"checked",void 0),e([Ee({mode:"boolean"})],Xu.prototype,"hidden",void 0),e([C],Xu.prototype,"slottedSubmenu",void 0),e([C],Xu.prototype,"submenu",void 0),bt(Xu,ut);class Wu extends Xu{}const Uu=xe.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>'),Yu=function(e={}){return xe`<template aria-haspopup="${e=>e.hasSubmenu?"menu":void 0}" aria-checked="${e=>e.role!==Uh.menuitem?e.checked:void 0}" aria-disabled="${e=>e.disabled}" aria-expanded="${e=>e.expanded}" @keydown="${(e,t)=>e.handleMenuItemKeyDown(t.event)}" @click="${(e,t)=>e.handleMenuItemClick(t.event)}" @mouseover="${(e,t)=>e.handleMouseOver(t.event)}" @mouseout="${(e,t)=>e.handleMouseOut(t.event)}">${Se(e=>e.role===Uh.menuitemcheckbox,xe`<div part="input-container" class="input-container"><span part="checkbox" class="checkbox"><slot name="checkbox-indicator">${ht(e.checkboxIndicator)}</slot></span></div>`)} ${Se(e=>e.role===Uh.menuitemradio,xe`<div part="input-container" class="input-container"><span part="radio" class="radio"><slot name="radio-indicator">${ht(e.radioIndicator)}</slot></span></div>`)}</div>${gt(e)}<span class="content" part="content"><slot></slot></span>${pt(e)} ${Se(e=>e.hasSubmenu,xe`<div part="expand-collapse-glyph-container" class="expand-collapse-glyph-container"><span part="expand-collapse" class="expand-collapse"><slot name="expand-collapse-indicator">${ht(e.expandCollapseGlyph)}</slot></span></div>`)}<span ?hidden="${e=>!e.expanded}" class="submenu-container" part="submenu-container" ${we("submenuContainer")}><slot name="submenu" ${Ae({property:"slottedSubmenu",filter:Te("[role='menu']")})}></slot></span></template>`}({checkboxIndicator:Uu,expandCollapseGlyph:xe.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>'),radioIndicator:Uu}),Ku=_`
|
|
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
|
-
: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}`)),db=ib.compose({name:Tt.prefix+"-toggle-button",template:lb,styles:cb,shadowOptions:{delegatesFocus:!0}}),hb=Object.keys(cc),ub=e=>{for(const t of hb)cc[t].withDefault(e[t])},pb=(e,t)=>{for(const o of hb)cc[o].setValueFor(e,t[o])};export{kt as Accordion,Nt as AccordionItem,Ot as AccordionItemExpandIconPosition,Lt 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,Mc as AvatarColor,Jc as AvatarDefinition,Rc 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,Ld as Button,yc as ButtonAppearance,Dd as ButtonDefinition,kc as ButtonShape,xc as ButtonSize,Sc as ButtonStyles,Od as ButtonTemplate,_d 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,Lh as ImageDefinition,Fh as ImageFit,Ah as ImageShape,Nh as ImageStyles,zh as ImageTemplate,Rh as Label,Vh as LabelDefinition,Mh as LabelStyles,Hh as LabelTemplate,jh as MenuButton,_h as MenuButtonAppearance,Wh as MenuButtonDefinition,Gh as MenuButtonShape,qh as MenuButtonSize,Sc as MenuButtonStyles,Xh as MenuButtonTemplate,Wu as MenuItem,Qu as MenuItemDefinition,Uh as MenuItemRole,Ku as MenuItemStyles,Yu as MenuItemTemplate,Ju as MenuList,op as MenuListDefinition,tp as MenuListStyles,ep as MenuListTemplate,lp as ProgressBar,gp as ProgressBarDefinition,dp as ProgressBarShape,up as ProgressBarStyles,pp as ProgressBarTemplate,cp as ProgressBarThickness,hp as ProgressBarValidationState,vp as Radio,xp as RadioDefinition,Sp as RadioGroup,Ip as RadioGroupDefinition,$p as RadioGroupOrientation,Pp as RadioGroupStyles,Tp as RadioGroupTemplate,yp as RadioStyles,kp as RadioTemplate,Rp as Slider,jp as SliderDefinition,Np as SliderOrientation,Mp as SliderSize,Hp as SliderStyles,Vp as SliderTemplate,Wp as Spinner,Up as SpinnerAppearance,Zp as SpinnerDefinition,Yp as SpinnerSize,Qp as SpinnerStyles,Kp as SpinnerTemplate,ig as Switch,lg as SwitchDefinition,ag as SwitchLabelPosition,sg as SwitchStyles,ng as SwitchTemplate,xg as Tab,Bg as TabDefinition,Sg as TabPanel,Ig as TabPanelDefinition,Tg as TabPanelStyles,Pg as TabPanelTemplate,wg as TabStyles,$g as TabTemplate,fg as Tabs,hg as TabsAppearance,yg as TabsDefinition,cg as TabsOrientation,ug as TabsSize,vg as TabsStyles,mg as TabsTemplate,Ng as Text,Eg as TextAlign,Hg as TextDefinition,Og as TextFont,Yg as TextInput,Qg as TextInputAppearance,Kg as TextInputControlSize,eb as TextInputDefinition,Jg as TextInputStyles,Zg as TextInputTemplate,_g as TextInputType,Lg as TextSize,Mg as TextStyles,Rg as TextTemplate,Dg as TextWeight,ib as ToggleButton,ab as ToggleButtonAppearance,db as ToggleButtonDefinition,nb as ToggleButtonShape,sb as ToggleButtonSize,cb as ToggleButtonStyles,lb 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,ja as colorBrandStroke1,_a 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,Fi as colorNeutralBackground3,Ai as colorNeutralBackground3Hover,zi as colorNeutralBackground3Pressed,Ni as colorNeutralBackground3Selected,Li as colorNeutralBackground4,Oi as colorNeutralBackground4Hover,Di as colorNeutralBackground4Pressed,Ei as colorNeutralBackground4Selected,Ri as colorNeutralBackground5,Mi as colorNeutralBackground5Hover,Hi as colorNeutralBackground5Pressed,Vi as colorNeutralBackground5Selected,ji as colorNeutralBackground6,na as colorNeutralBackgroundDisabled,_i 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,Ar as colorNeutralForeground2BrandHover,zr as colorNeutralForeground2BrandPressed,Nr as colorNeutralForeground2BrandSelected,Tr as colorNeutralForeground2Hover,Ur as colorNeutralForeground2Link,Yr as colorNeutralForeground2LinkHover,Kr as colorNeutralForeground2LinkPressed,Qr as colorNeutralForeground2LinkSelected,Ir as colorNeutralForeground2Pressed,Fr as colorNeutralForeground2Selected,Lr as colorNeutralForeground3,Rr as colorNeutralForeground3BrandHover,Mr as colorNeutralForeground3BrandPressed,Hr as colorNeutralForeground3BrandSelected,Or as colorNeutralForeground3Hover,Dr as colorNeutralForeground3Pressed,Er as colorNeutralForeground3Selected,Vr as colorNeutralForeground4,jr as colorNeutralForegroundDisabled,ai as colorNeutralForegroundInverted,ci as colorNeutralForegroundInverted2,_r 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,Aa as colorNeutralStroke1,za as colorNeutralStroke1Hover,Na as colorNeutralStroke1Pressed,La as colorNeutralStroke1Selected,Oa as colorNeutralStroke2,Da as colorNeutralStroke3,Pa as colorNeutralStrokeAccessible,Ta as colorNeutralStrokeAccessibleHover,Ia as colorNeutralStrokeAccessiblePressed,Fa as colorNeutralStrokeAccessibleSelected,Wa as colorNeutralStrokeDisabled,Ua as colorNeutralStrokeInvertedDisabled,Ea as colorNeutralStrokeOnBrand,Ra as colorNeutralStrokeOnBrand2,Ma as colorNeutralStrokeOnBrand2Hover,Ha as colorNeutralStrokeOnBrand2Pressed,Va as colorNeutralStrokeOnBrand2Selected,ql as colorPaletteAnchorBackground2,Wl as colorPaletteAnchorBorderActive,Xl as colorPaletteAnchorForeground2,Dl as colorPaletteBeigeBackground2,Rl 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,Ns as colorPaletteBrassBackground2,Os as colorPaletteBrassBorderActive,Ls as colorPaletteBrassForeground2,Ds as colorPaletteBrownBackground2,Rs 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,Ln as colorPaletteDarkOrangeBorder1,On as colorPaletteDarkOrangeBorder2,Nn as colorPaletteDarkOrangeBorderActive,Fn as colorPaletteDarkOrangeForeground1,An as colorPaletteDarkOrangeForeground2,zn as colorPaletteDarkOrangeForeground3,vs as colorPaletteDarkRedBackground2,ks as colorPaletteDarkRedBorderActive,ys as colorPaletteDarkRedForeground2,Ms as colorPaletteForestBackground2,Vs as colorPaletteForestBorderActive,Hs as colorPaletteForestForeground2,Fs as colorPaletteGoldBackground2,zs as colorPaletteGoldBorderActive,As 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,Fl as colorPaletteMagentaBackground2,zl as colorPaletteMagentaBorderActive,Al 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,Ml 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,jl as colorPalettePlatinumBackground2,Gl as colorPalettePlatinumBorderActive,_l as colorPalettePlatinumForeground2,Nl as colorPalettePlumBackground2,Ol as colorPalettePlumBorderActive,Ll 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,js as colorPaletteSeafoamBackground2,Gs as colorPaletteSeafoamBorderActive,_s 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,Rn as colorPaletteYellowBackground3,_n as colorPaletteYellowBorder1,Gn as colorPaletteYellowBorder2,jn as colorPaletteYellowBorderActive,Mn 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,Fo 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,Lo as fontWeightBold,zo as fontWeightMedium,Ao as fontWeightRegular,No 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,ub as setTheme,pb 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,Mo as spacingHorizontalNone,_o as spacingHorizontalS,jo 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,Ro as strokeWidthThickest,Oo as strokeWidthThin};
|
|
275
|
+
background-color: ${wn};
|
|
276
|
+
color: ${Go};
|
|
277
|
+
border-color: ${Pn};
|
|
278
|
+
}
|
|
279
|
+
`;g.partial`
|
|
280
|
+
font-family: ${y};
|
|
281
|
+
font-size: ${F};
|
|
282
|
+
line-height: ${z};
|
|
283
|
+
font-weight: ${I};
|
|
284
|
+
`,g.partial`
|
|
285
|
+
font-family: ${y};
|
|
286
|
+
font-size: ${F};
|
|
287
|
+
line-height: ${z};
|
|
288
|
+
font-weight: ${D};
|
|
289
|
+
`,g.partial`
|
|
290
|
+
font-family: ${y};
|
|
291
|
+
font-size: ${F};
|
|
292
|
+
line-height: ${z};
|
|
293
|
+
font-weight: ${fo};
|
|
294
|
+
`,g.partial`
|
|
295
|
+
font-family: ${y};
|
|
296
|
+
font-size: ${se};
|
|
297
|
+
line-height: ${$e};
|
|
298
|
+
font-weight: ${I};
|
|
299
|
+
`,g.partial`
|
|
300
|
+
font-family: ${y};
|
|
301
|
+
font-size: ${j};
|
|
302
|
+
line-height: ${le};
|
|
303
|
+
font-weight: ${I};
|
|
304
|
+
`,g.partial`
|
|
305
|
+
font-family: ${y};
|
|
306
|
+
font-size: ${j};
|
|
307
|
+
line-height: ${le};
|
|
308
|
+
font-weight: ${D};
|
|
309
|
+
`,g.partial`
|
|
310
|
+
font-family: ${y};
|
|
311
|
+
font-size: ${j};
|
|
312
|
+
line-height: ${le};
|
|
313
|
+
font-weight: ${fo};
|
|
314
|
+
`,g.partial`
|
|
315
|
+
font-family: ${y};
|
|
316
|
+
font-size: ${Ht};
|
|
317
|
+
line-height: ${bo};
|
|
318
|
+
font-weight: ${I};
|
|
319
|
+
`,g.partial`
|
|
320
|
+
font-family: ${y};
|
|
321
|
+
font-size: ${Ht};
|
|
322
|
+
line-height: ${bo};
|
|
323
|
+
font-weight: ${D};
|
|
324
|
+
`,g.partial`
|
|
325
|
+
font-family: ${y};
|
|
326
|
+
font-size: ${et};
|
|
327
|
+
line-height: ${vo};
|
|
328
|
+
font-weight: ${D};
|
|
329
|
+
`,g.partial`
|
|
330
|
+
font-family: ${y};
|
|
331
|
+
font-size: ${se};
|
|
332
|
+
line-height: ${$e};
|
|
333
|
+
font-weight: ${D};
|
|
334
|
+
`,g.partial`
|
|
335
|
+
font-family: ${y};
|
|
336
|
+
font-size: ${se};
|
|
337
|
+
line-height: ${$e};
|
|
338
|
+
font-weight: ${fo};
|
|
339
|
+
`,g.partial`
|
|
340
|
+
font-family: ${y};
|
|
341
|
+
font-size: ${Gr};
|
|
342
|
+
line-height: ${Kr};
|
|
343
|
+
font-weight: ${D};
|
|
344
|
+
`,g.partial`
|
|
345
|
+
font-family: ${y};
|
|
346
|
+
font-size: ${jr};
|
|
347
|
+
line-height: ${Ur};
|
|
348
|
+
font-weight: ${D};
|
|
349
|
+
`,g.partial`
|
|
350
|
+
font-family: ${y};
|
|
351
|
+
font-size: ${go};
|
|
352
|
+
line-height: ${Xr};
|
|
353
|
+
font-weight: ${D};
|
|
354
|
+
`,g.partial`
|
|
355
|
+
font-family: ${y};
|
|
356
|
+
font-size: ${Wr};
|
|
357
|
+
line-height: ${Yr};
|
|
358
|
+
font-weight: ${D};
|
|
359
|
+
`,g.partial`
|
|
360
|
+
font-family: ${y};
|
|
361
|
+
font-size: ${qr};
|
|
362
|
+
line-height: ${Qr};
|
|
363
|
+
font-weight: ${D};
|
|
364
|
+
`;const hh=g`
|
|
365
|
+
:host([shape='square']){border-radius:${Wo}}:host([shape='rounded']){border-radius:${B}}:host([shape='rounded'][size='tiny']),:host([shape='rounded'][size='extra-small']),:host([shape='rounded'][size='small']){border-radius:${ge}}${ch}
|
|
366
|
+
${dh}
|
|
367
|
+
${uh}
|
|
368
|
+
${Tf}
|
|
369
|
+
${Af}
|
|
370
|
+
${lh}
|
|
371
|
+
`.withBehaviors(Te(g`
|
|
372
|
+
:host,:host([appearance='outline']),:host([appearance='tint']){border-color:CanvasText}`)),If=Vt.compose({name:`${x.prefix}-badge`,template:sh,styles:hh});var zf=Object.defineProperty,Nf=Object.getOwnPropertyDescriptor,Y=(o,e,t,r)=>{for(var a=r>1?void 0:r?Nf(e,t):e,n=o.length-1,i;n>=0;n--)(i=o[n])&&(a=(r?i(e,t,a):i(a))||a);return r&&a&&zf(e,t,a),a};class N extends S{constructor(){super(),this.disabledFocusable=!1,this.elementInternals=this.attachInternals(),this.iconOnly=!1,this.elementInternals.role="button"}disabledFocusableChanged(e,t){this.$fastController.isConnected&&(this.elementInternals.ariaDisabled=`${!!t}`)}get form(){return this.elementInternals.form}get labels(){return Object.freeze(Array.from(this.elementInternals.labels))}typeChanged(e,t){t!==Qo.submit&&(this.formSubmissionFallbackControl?.remove(),this.shadowRoot?.querySelector('slot[name="internal"]')?.remove())}clickHandler(e){if(e&&this.disabledFocusable){e.stopImmediatePropagation();return}return this.press(),!0}connectedCallback(){super.connectedCallback(),this.elementInternals.ariaDisabled=`${!!this.disabledFocusable}`}createAndInsertFormSubmissionFallbackControl(){const e=this.formSubmissionFallbackControlSlot??document.createElement("slot");e.setAttribute("name","internal"),this.shadowRoot?.appendChild(e),this.formSubmissionFallbackControlSlot=e;const t=this.formSubmissionFallbackControl??document.createElement("button");t.style.display="none",t.setAttribute("type","submit"),t.setAttribute("slot","internal"),this.formNoValidate&&t.toggleAttribute("formnovalidate",!0),this.elementInternals.form?.id&&t.setAttribute("form",this.elementInternals.form.id),this.name&&t.setAttribute("name",this.name),this.value&&t.setAttribute("value",this.value),this.formAction&&t.setAttribute("formaction",this.formAction??""),this.formEnctype&&t.setAttribute("formenctype",this.formEnctype??""),this.formMethod&&t.setAttribute("formmethod",this.formMethod??""),this.formTarget&&t.setAttribute("formtarget",this.formTarget??""),this.append(t),this.formSubmissionFallbackControl=t}formDisabledCallback(e){this.disabled=e}keypressHandler(e){if(e&&this.disabledFocusable){e.stopImmediatePropagation();return}if(e.key===wt||e.key===io){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)}}}}N.formAssociated=!0,Y([s],N.prototype,"appearance",2),Y([s({mode:"boolean"})],N.prototype,"autofocus",2),Y([m],N.prototype,"defaultSlottedContent",2),Y([s({mode:"boolean"})],N.prototype,"disabled",2),Y([s({attribute:"disabled-focusable",mode:"boolean"})],N.prototype,"disabledFocusable",2),Y([s({attribute:"formaction"})],N.prototype,"formAction",2),Y([s({attribute:"form"})],N.prototype,"formAttribute",2),Y([s({attribute:"formenctype"})],N.prototype,"formEnctype",2),Y([s({attribute:"formmethod"})],N.prototype,"formMethod",2),Y([s({attribute:"formnovalidate",mode:"boolean"})],N.prototype,"formNoValidate",2),Y([s({attribute:"formtarget"})],N.prototype,"formTarget",2),Y([s({attribute:"icon-only",mode:"boolean"})],N.prototype,"iconOnly",2),Y([s],N.prototype,"name",2),Y([s],N.prototype,"shape",2),Y([s],N.prototype,"size",2),Y([s],N.prototype,"type",2),Y([s],N.prototype,"value",2),Ee(N,Ye);function Ui(o={}){return v`<template tabindex="${e=>e.disabled?-1:0}" @click="${(e,t)=>e.clickHandler(t.event)}" @keypress="${(e,t)=>e.keypressHandler(t.event)}">${Ze(o)}<span class="content" part="content"><slot ${Z("defaultSlottedContent")}></slot></span>${Qe(o)}</template>`}const ph=Ui(),ko=g`
|
|
373
|
+
${A("inline-flex")}
|
|
374
|
+
|
|
375
|
+
:host{--icon-spacing:${_e};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:${V};color:${E};border:${K} solid ${Je};padding:0 ${ot};min-width:96px;border-radius:${B};font-size:${F};font-family:${y};font-weight:${D};line-height:${z};transition-duration:${mo};transition-property:background,border,color;transition-timing-function:${$o};cursor:pointer;user-select:none}.content{display:inherit}:host(:hover){background-color:${lo};color:${Ao};border-color:${Ot}}:host(:hover:active){background-color:${Do};border-color:${ho};color:${Cr};outline-style:none}:host(:focus-visible){border-color:${ye};outline:${ht}) solid ${ye};box-shadow:${_t},0 0 0 2px ${Pe}}@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:${fe};min-height:24px;min-width:64px;padding:0 ${G};border-radius:${ge};font-size:${j};line-height:${le};font-weight:${I}}:host([size='small'][icon-only]){min-width:24px;max-width:24px}:host([size='large']){min-height:40px;border-radius:${qo};padding:0 ${ea};font-size:${se};line-height:${$e}}: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:${J}}:host([shape='square']),:host([shape='square']:focus-visible){border-radius:${Wo}}:host([appearance='primary']){background-color:${uo};color:${pe};border-color:transparent}:host([appearance='primary']:hover){background-color:${Oo}}:host([appearance='primary']:hover),:host([appearance='primary']:hover:active){border-color:transparent;color:${pe}}:host([appearance='primary']:hover:active){background-color:${Eo}}:host([appearance='primary']:focus-visible){border-color:${pe};box-shadow:${Xo},0 0 0 2px ${Pe}}:host(:is([disabled][appearance='primary'],[disabled-focusabale][appearance='primary'])),:host(:is([disabled][appearance='primary'],[disabled-focusabale][appearance='primary']):hover),:host(:is([disabled][appearance='primary'],[disabled-focusabale][appearance='primary']):hover:active){border-color:transparent}:host([appearance='outline']){background-color:${U}}:host([appearance='outline']:hover){background-color:${dt}}:host([appearance='outline']:hover:active){background-color:${Tt}}:host(:is([disabled][appearance='outline'],[disabled-focusabale][appearance='outline'])),:host(:is([disabled][appearance='outline'],[disabled-focusabale][appearance='outline']):hover),:host(:is([disabled][appearance='outline'],[disabled-focusabale][appearance='outline']):hover:active){background-color:${U}}:host([appearance='subtle']){background-color:${zr};color:${ie};border-color:transparent}:host([appearance='subtle']:hover){background-color:${co};color:${Pt};border-color:transparent}:host([appearance='subtle']:hover:active){background-color:${Ft};color:${Ct};border-color:transparent}:host(:is([disabled][appearance='subtle'],[disabled-focusabale][appearance='subtle'])),:host(:is([disabled][appearance='subtle'],[disabled-focusabale][appearance='subtle']):hover),:host(:is([disabled][appearance='subtle'],[disabled-focusabale][appearance='subtle']):hover:active){background-color:${U};border-color:transparent}:host([appearance='subtle']:hover) ::slotted(svg){fill:${lt}}:host([appearance='subtle']:hover:active) ::slotted(svg){fill:${ct}}:host([appearance='transparent']){background-color:${U};color:${ie}}:host([appearance='transparent']:hover){background-color:${dt};color:${lt}}:host([appearance='transparent']:hover:active){background-color:${Tt};color:${ct}}:host([appearance='transparent']),:host([appearance='transparent']:hover),:host([appearance='transparent']:hover:active){border-color:transparent}:host(:is([disabled][appearance='transparent'],[disabled-focusabale][appearance='transparent'])),:host(:is([disabled][appearance='transparent'],[disabled-focusabale][appearance='transparent']):hover),:host(:is([disabled][appearance='transparent'],[disabled-focusabale][appearance='transparent']):hover:active){border-color:transparent;background-color:${U}}: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:${At};border-color:${Me};color:${k};cursor:not-allowed}`.withBehaviors(Te(g`
|
|
376
|
+
:host([appearance='transparent']:hover){border-color:Highlight}`)),Lf=N.compose({name:`${x.prefix}-button`,template:ph,styles:ko}),gh="form-associated-proxy",fh="ElementInternals",bh=fh in window&&"setFormValue"in window[fh].prototype,vh=new WeakMap;function mh(o){const e=class extends o{constructor(...t){super(...t),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 bh}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 t=this.proxy.labels,r=Array.from(this.proxy.getRootNode().querySelectorAll(`[for='${this.id}']`)),a=t?r.concat(Array.from(t)):r;return Object.freeze(a)}else return fs}valueChanged(t,r){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(t,r){this.dirtyValue||(this.value=this.initialValue,this.dirtyValue=!1)}disabledChanged(t,r){this.proxy instanceof HTMLElement&&(this.proxy.disabled=this.disabled),ve.enqueue(()=>this.classList.toggle("disabled",this.disabled))}nameChanged(t,r){this.proxy instanceof HTMLElement&&(this.proxy.name=this.name)}requiredChanged(t,r){this.proxy instanceof HTMLElement&&(this.proxy.required=this.required),ve.enqueue(()=>this.classList.toggle("required",this.required)),this.validate()}get elementInternals(){if(!bh)return null;let t=vh.get(this);return t||(t=this.attachInternals(),vh.set(this,t)),t}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(t=>this.proxy.removeEventListener(t,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(t,r,a){this.elementInternals?this.elementInternals.setValidity(t,r,a):typeof r=="string"&&this.proxy.setCustomValidity(r)}formDisabledCallback(t){this.disabled=t}formResetCallback(){this.value=this.initialValue,this.dirtyValue=!1}attachProxy(){this.proxyInitialized||(this.proxyInitialized=!0,this.proxy.style.display="none",this.proxyEventsToBlock.forEach(t=>this.proxy.addEventListener(t,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",gh),this.proxySlot=document.createElement("slot"),this.proxySlot.setAttribute("name",gh)),this.shadowRoot?.appendChild(this.proxySlot),this.appendChild(this.proxy)}detachProxy(){this.removeChild(this.proxy),this.shadowRoot?.removeChild(this.proxySlot)}validate(t){this.proxy instanceof HTMLElement&&this.setValidity(this.proxy.validity,this.proxy.validationMessage,t)}setFormValue(t,r){this.elementInternals&&this.elementInternals.setFormValue(t,r||t)}_keypressHandler(t){switch(t.key){case wt:this.form instanceof HTMLFormElement&&this.form.querySelector("[type=submit]")?.click();break}}stopPropagation(t){t.stopPropagation()}};return s({mode:"boolean"})(e.prototype,"disabled"),s({mode:"fromView",attribute:"value"})(e.prototype,"initialValue"),s({attribute:"current-value"})(e.prototype,"currentValue"),s(e.prototype,"name"),s({mode:"boolean"})(e.prototype,"required"),m(e.prototype,"value"),e}function Ki(o){class e extends mh(o){}class t extends e{constructor(...a){super(a),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(a,n){this.dirtyChecked||(this.dirtyChecked=!0),this.currentChecked=this.checked,this.updateForm(),this.proxy instanceof HTMLInputElement&&(this.proxy.checked=this.checked),a!==void 0&&this.$emit("change"),this.validate()}currentCheckedChanged(a,n){this.checked=this.currentChecked}updateForm(){const a=this.checked?this.value:null;this.setFormValue(a,a)}connectedCallback(){super.connectedCallback(),this.updateForm()}formResetCallback(){super.formResetCallback(),this.checked=!!this.checkedAttribute,this.dirtyChecked=!1}}return s({attribute:"checked",mode:"boolean"})(t.prototype,"checkedAttribute"),s({attribute:"current-checked",converter:Vs})(t.prototype,"currentChecked"),m(t.prototype,"defaultChecked"),m(t.prototype,"checked"),t}class Df extends S{}class Of extends Ki(Df){constructor(){super(...arguments),this.proxy=document.createElement("input")}}var Ef=Object.defineProperty,Mf=Object.getOwnPropertyDescriptor,Zo=(o,e,t,r)=>{for(var a=r>1?void 0:r?Mf(e,t):e,n=o.length-1,i;n>=0;n--)(i=o[n])&&(a=(r?i(e,t,a):i(a))||a);return r&&a&&Ef(e,t,a),a};class jt extends Of{constructor(){super(),this.initialValue="on",this.indeterminate=!1,this.keypressHandler=e=>{if(!this.disabled)switch(e.key){case io:this.toggleChecked();break}},this.clickHandler=e=>{this.disabled||this.toggleChecked()},this.proxy.setAttribute("type","checkbox")}toggleChecked(){this.indeterminate&&(this.indeterminate=!1),this.checked=!this.checked}}Zo([s],jt.prototype,"shape",2),Zo([s],jt.prototype,"size",2),Zo([s({attribute:"label-position"})],jt.prototype,"labelPosition",2),Zo([m],jt.prototype,"defaultSlottedNodes",2),Zo([m],jt.prototype,"indeterminate",2);const Hf={circular:"circular",square:"square"},_f={medium:"medium",large:"large"},Rf={before:"before",after:"after"},Vf=v.partial(`
|
|
377
|
+
<div class="checked-indicator">
|
|
378
|
+
<svg fill="currentColor"
|
|
379
|
+
aria-hidden="true"
|
|
380
|
+
width="1em"
|
|
381
|
+
height="1em"
|
|
382
|
+
viewBox="0 0 12 12"
|
|
383
|
+
xmlns="http://www.w3.org/2000/svg">
|
|
384
|
+
<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">
|
|
385
|
+
</path>
|
|
386
|
+
</svg>
|
|
387
|
+
</div>
|
|
388
|
+
`),jf=v.partial(`
|
|
389
|
+
<div class="indeterminate-indicator"></div>
|
|
390
|
+
`);function Gf(o={}){return v`<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">${ae(o.checkedIndicator)}</slot><slot name="indeterminate-indicator">${ae(o.indeterminateIndicator)}</slot></div><label part="label" class="${e=>e.defaultSlottedNodes&&e.defaultSlottedNodes.length?"label":"label label__hidden"}"><slot ${Z("defaultSlottedNodes")}></slot></label></template>`}const yh=Gf({checkedIndicator:Vf,indeterminateIndicator:jf}),$h=g`
|
|
391
|
+
${A("inline-flex")}
|
|
392
|
+
:host{align-items:center;outline:none;user-select:none;vertical-align:middle;cursor:pointer;font-family:${y};font-size:${F};line-height:${z};color:${X};position:relative}:host(:focus-visible)::after{content:'';position:absolute;inset:0px;cursor:pointer;border-radius:${B};outline:none;border:2px solid ${Mt};box-shadow:inset 0 0 0 1px ${Pe}}.control{position:relative;box-sizing:border-box;display:flex;flex-shrink:0;align-items:center;justify-content:center;overflow:hidden;margin:${R} ${G};fill:currentcolor;height:16px;width:16px;border:${K} solid ${Ae};border-radius:${ge};outline:none}.label{align-self:center;cursor:inherit;padding-inline:${G};padding-bottom:${R};padding-top:${R}}.label__hidden{display:none;visibility:hidden}.checked-indicator{display:flex;align-items:center;justify-content:center;color:${so};font-size:12px;margin:auto;opacity:0}.indeterminate-indicator{position:absolute;width:8px;height:8px;border-radius:${ge};background-color:${Io};opacity:0}:host(:hover){color:${ie}}:host(:hover) .control{border-color:${Lt}}:host(:hover) .indeterminate-indicator{background-color:${zo}}:host(:active) .control{border-color:${Dt}}:host(:active) .indeterminate-indicator{background-color:${No}}:host([aria-checked='true']),:host([aria-checked='mixed']),:host(:active){color:${E}}:host([aria-checked='true']) .control{background-color:${ut}}:host([aria-checked='true']:hover) .control{border-color:${po};background-color:${It}}:host([aria-checked='true']:active) .control{background-color:${zt}}:host([aria-checked='mixed']:hover) .control{border-color:${po}}:host([aria-checked='true']) .checked-indicator,:host([aria-checked='mixed']) .indeterminate-indicator{opacity:1}:host([aria-checked='true']) .control,:host([aria-checked='mixed']) .control{border-color:${Mo}}:host([aria-checked='mixed']:active) .control,:host([aria-checked='true']:active) .control{border-color:${Ho}}:host([label-position='before']){flex-direction:row-reverse}:host([label-position='before']) .label{padding-inline:${G} ${fe};padding-top:${R};padding-bottom:${R}}:host([size='large']) .control{width:20px;height:20px}:host([size='large']) .checked-indicator{font-size:16px;height:20px}:host([aria-checked='mixed'][size='large']) .indeterminate-indicator{height:10px;width:10px}:host([shape='circular']) .control,:host([shape='circular']) .indeterminate-indicator{border-radius:${J}}:host([disabled]) .control,:host([aria-checked='mixed'][disabled]) .control,:host([aria-checked='true'][disabled]) .control{background-color:${dt};border-color:${Me}}:host([aria-checked='true'][disabled]) .checked-indicator,:host([disabled]) ::slotted([slot='start']),:host([disabled]) .label,:host([aria-checked='mixed'][disabled]) .label,:host([aria-checked='true'][disabled]) .label{color:${k}}:host([disabled]) .indeterminate-indicator{background-color:${k}}`,Wf=jt.compose({name:`${x.prefix}-checkbox`,template:yh,styles:$h});class kh extends N{}const qf=Uo,Xf=Ko,Uf=Yo;function Kf(o={}){return v`<template ?disabled="${e=>e.disabled}" tabindex="${e=>e.disabled?-1:0}">${Ze(o)}<span class="content" part="content"><slot ${Z("defaultSlottedContent")}></slot><slot name="description"></slot></span>${Qe(o)}</template>`}const xh=Kf(),Bh=g`
|
|
393
|
+
${ko}
|
|
394
|
+
|
|
395
|
+
:host,:host(:is([size])){gap:12px;height:auto;padding-top:14px;padding-inline:12px;padding-bottom:16px;font-size:${F};line-height:${z}}.content{display:flex;flex-direction:column;text-align:start}::slotted([slot='description']){color:${ie};line-height:100%;font-size:${j};font-weight:${I}}::slotted(svg),:host([size='large']) ::slotted(svg){font-size:40px;height:40px;width:40px}:host(:hover) ::slotted([slot='description']){color:${Pt}}:host(:active) ::slotted([slot='description']){color:${Ct}}:host(:is([appearance='primary'],[appearance='primary']:hover,[appearance='primary']:active))
|
|
396
|
+
::slotted([slot='description']){color:${pe}}:host(:is([appearance='subtle'],[appearance='subtle']:hover,[appearance='subtle']:active))
|
|
397
|
+
::slotted([slot='description']),:host([appearance='transparent']) ::slotted([slot='description']){color:${ie}}:host([appearance='transparent']:hover) ::slotted([slot='description']){color:${lt}}:host([appearance='transparent']:active) ::slotted([slot='description']){color:${ct}}:host(:is([disabled],[disabled][appearance],[disabled-focusable],[disabled-focusable][appearance]))
|
|
398
|
+
::slotted([slot='description']){color:${k}}:host([size='small']){padding:8px;padding-bottom:10px}:host([icon-only]){min-width:52px;max-width:52px;padding:${_e}}:host([icon-only][size='small']){min-width:48px;max-width:48px;padding:${fe}}:host([icon-only][size='large']){min-width:56px;max-width:56px;padding:${G}}:host([size='large']){padding-top:18px;padding-inline:16px;padding-bottom:20px;font-size:${se};line-height:${$e}}:host([size='large']) ::slotted([slot='description']){font-size:${F}}`,Yf=kh.compose({name:`${x.prefix}-compound-button`,template:xh,styles:Bh});var Qf=Object.defineProperty,Zf=Object.getOwnPropertyDescriptor,ft=(o,e,t,r)=>{for(var a=r>1?void 0:r?Zf(e,t):e,n=o.length-1,i;n>=0;n--)(i=o[n])&&(a=(r?i(e,t,a):i(a))||a);return r&&a&&Qf(e,t,a),a};class ze 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 e=this.count??0;if((e!==0||this.showZero)&&!this.dot)return e>this.overflowCount?`${this.overflowCount}+`:`${e}`}}ft([s],ze.prototype,"appearance",2),ft([s],ze.prototype,"color",2),ft([s],ze.prototype,"shape",2),ft([s],ze.prototype,"size",2),ft([s({converter:me})],ze.prototype,"count",2),ft([s({attribute:"overflow-count",converter:me})],ze.prototype,"overflowCount",2),ft([s({attribute:"show-zero",mode:"boolean"})],ze.prototype,"showZero",2),ft([s({mode:"boolean"})],ze.prototype,"dot",2),Ee(ze,Ye);const Jf={filled:"filled",ghost:"ghost"},eb={brand:"brand",danger:"danger",important:"important",informative:"informative",severe:"severe",subtle:"subtle",success:"success",warning:"warning"},tb={circular:"circular",rounded:"rounded"},ob={tiny:"tiny",extraSmall:"extra-small",small:"small",medium:"medium",large:"large",extraLarge:"extra-large"};function rb(o={}){return ih({defaultContent:v`${e=>e.setCount()}`})}const wh=rb(),Sh=g`
|
|
399
|
+
:host([shape='rounded']){border-radius:${B}}:host([shape='rounded'][size='tiny']),:host([shape='rounded'][size='extra-small']),:host([shape='rounded'][size='small']){border-radius:${ge}}${ch}
|
|
400
|
+
${dh}
|
|
401
|
+
${uh}
|
|
402
|
+
${lh}
|
|
403
|
+
|
|
404
|
+
:host([dot]),:host([dot][appearance][size]){min-width:auto;width:6px;height:6px;padding:0}`,ab=ze.compose({name:`${x.prefix}-counter-badge`,template:wh,styles:Sh});/*!
|
|
405
|
+
* tabbable 6.2.0
|
|
406
|
+
* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
|
|
407
|
+
*/var nb=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],ib=nb.join(","),Ph=typeof Element>"u",ha=Ph?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,pa=!Ph&&Element.prototype.getRootNode?function(o){var e;return o==null||(e=o.getRootNode)===null||e===void 0?void 0:e.call(o)}:function(o){return o?.ownerDocument},sb=function o(e,t){var r;t===void 0&&(t=!0);var a=e==null||(r=e.getAttribute)===null||r===void 0?void 0:r.call(e,"inert"),n=a===""||a==="true",i=n||t&&e&&o(e.parentNode);return i},lb=function(e){var t,r=e==null||(t=e.getAttribute)===null||t===void 0?void 0:t.call(e,"contenteditable");return r===""||r==="true"},cb=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},db=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||lb(e))&&!cb(e)?0:e.tabIndex},Ch=function(e){return e.tagName==="INPUT"},ub=function(e){return Ch(e)&&e.type==="hidden"},hb=function(e){var t=e.tagName==="DETAILS"&&Array.prototype.slice.apply(e.children).some(function(r){return r.tagName==="SUMMARY"});return t},pb=function(e,t){for(var r=0;r<e.length;r++)if(e[r].checked&&e[r].form===t)return e[r]},gb=function(e){if(!e.name)return!0;var t=e.form||pa(e),r=function(c){return t.querySelectorAll('input[type="radio"][name="'+c+'"]')},a;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")a=r(window.CSS.escape(e.name));else try{a=r(e.name)}catch(i){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",i.message),!1}var n=pb(a,e.form);return!n||n===e},fb=function(e){return Ch(e)&&e.type==="radio"},bb=function(e){return fb(e)&&!gb(e)},vb=function(e){var t,r=e&&pa(e),a=(t=r)===null||t===void 0?void 0:t.host,n=!1;if(r&&r!==e){var i,c,u;for(n=!!((i=a)!==null&&i!==void 0&&(c=i.ownerDocument)!==null&&c!==void 0&&c.contains(a)||e!=null&&(u=e.ownerDocument)!==null&&u!==void 0&&u.contains(e));!n&&a;){var d,l,h;r=pa(a),a=(d=r)===null||d===void 0?void 0:d.host,n=!!((l=a)!==null&&l!==void 0&&(h=l.ownerDocument)!==null&&h!==void 0&&h.contains(a))}}return n},Fh=function(e){var t=e.getBoundingClientRect(),r=t.width,a=t.height;return r===0&&a===0},mb=function(e,t){var r=t.displayCheck,a=t.getShadowRoot;if(getComputedStyle(e).visibility==="hidden")return!0;var n=ha.call(e,"details>summary:first-of-type"),i=n?e.parentElement:e;if(ha.call(i,"details:not([open]) *"))return!0;if(!r||r==="full"||r==="legacy-full"){if(typeof a=="function"){for(var c=e;e;){var u=e.parentElement,d=pa(e);if(u&&!u.shadowRoot&&a(u)===!0)return Fh(e);e.assignedSlot?e=e.assignedSlot:!u&&d!==e.ownerDocument?e=d.host:e=u}e=c}if(vb(e))return!e.getClientRects().length;if(r!=="legacy-full")return!0}else if(r==="non-zero-area")return Fh(e);return!1},yb=function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if(t.tagName==="FIELDSET"&&t.disabled){for(var r=0;r<t.children.length;r++){var a=t.children.item(r);if(a.tagName==="LEGEND")return ha.call(t,"fieldset[disabled] *")?!0:!a.contains(e)}return!0}t=t.parentElement}return!1},$b=function(e,t){return!(t.disabled||sb(t)||ub(t)||mb(t,e)||hb(t)||yb(t))},kb=function(e,t){return!(bb(t)||db(t)<0||!$b(e,t))},Th=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return ha.call(e,ib)===!1?!1:kb(t,e)};const te={modal:"modal",nonModal:"non-modal",alert:"alert"};var xb=Object.defineProperty,Bb=Object.getOwnPropertyDescriptor,bt=(o,e,t,r)=>{for(var a=r>1?void 0:r?Bb(e,t):e,n=o.length-1,i;n>=0;n--)(i=o[n])&&(a=(r?i(e,t,a):i(a))||a);return r&&a&&xb(e,t,a),a};const rt=class dr extends S{constructor(){super(...arguments),this.isTrappingFocus=!1,this.titleAction=[],this.modalType=te.modal,this.open=!1,this.noTitleAction=!1,this.trapFocus=!1,this.onOpenChangeEvent=(e=!1)=>{this.$emit("onOpenChange",{open:this.dialog.open,dismissed:e})},this.handleKeydown=e=>{if(!e.defaultPrevented)switch(e.key){case Ga:this.modalType!==te.alert&&(this.hide(!0),this.$emit("dismiss"));break;default:return!0}},this.handleDocumentKeydown=e=>{if(!e.defaultPrevented&&this.dialog.open)switch(e.key){case el:this.handleTabKeyDown(e);break}},this.handleTabKeyDown=e=>{if(!this.trapFocus||!this.dialog.open)return;const t=this.getTabQueueBounds();if(t.length===1){t[0].focus(),e.preventDefault();return}e.shiftKey&&e.target===t[0]?(t[t.length-1].focus(),e.preventDefault()):!e.shiftKey&&e.target===t[t.length-1]&&(t[0].focus(),e.preventDefault())},this.getTabQueueBounds=()=>{const e=[];return dr.reduceTabbableItems(e,this)},this.focusFirstElement=()=>{const e=this.getTabQueueBounds();e.length>0?e[0].focus():this.dialog instanceof HTMLElement&&this.dialog.focus()},this.shouldForceFocus=e=>this.isTrappingFocus&&!this.contains(e),this.shouldTrapFocus=()=>this.trapFocus&&this.dialog.open,this.handleDocumentFocus=e=>{!e.defaultPrevented&&this.shouldForceFocus(e.target)&&(this.focusFirstElement(),e.preventDefault())},this.updateTrapFocus=e=>{const t=e===void 0?this.shouldTrapFocus():e;t&&!this.isTrappingFocus?(this.isTrappingFocus=!0,document.addEventListener("focusin",this.handleDocumentFocus),ve.enqueue(()=>{this.shouldForceFocus(document.activeElement)&&this.focusFirstElement()})):!t&&this.isTrappingFocus&&(this.isTrappingFocus=!1,document.removeEventListener("focusin",this.handleDocumentFocus))}}connectedCallback(){super.connectedCallback(),document.addEventListener("keydown",this.handleDocumentKeydown),ve.enqueue(()=>{this.updateTrapFocus(),this.setComponent()})}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("keydown",this.handleDocumentKeydown),this.updateTrapFocus(!1)}openChanged(e,t){t!==e&&(t&&!e?this.show():!t&&e&&this.hide())}modalTypeChanged(e,t){t!==e&&(t==te.alert||t==te.modal?this.trapFocus=!0:this.trapFocus=!1)}setComponent(){this.modalType==te.modal||this.modalType==te.alert?this.trapFocus=!0:this.trapFocus=!1}show(){ve.enqueue(()=>{this.modalType===te.alert||this.modalType===te.modal?(this.dialog.showModal(),this.open=!0,this.updateTrapFocus(!0)):this.modalType===te.nonModal&&(this.dialog.show(),this.open=!0),this.onOpenChangeEvent()})}hide(e=!1){this.dialog.close(),this.open=!1,this.onOpenChangeEvent(e)}dismiss(){this.modalType!==te.alert&&this.hide(!0)}handleClick(e){return e.preventDefault(),this.dialog.open&&this.modalType!==te.alert&&e.target===this.dialog&&this.dismiss(),!0}static reduceTabbableItems(e,t){return t.getAttribute("tabindex")==="-1"?e:Th(t)||dr.isFocusableFastElement(t)&&dr.hasTabbableShadow(t)?(e.push(t),e):Array.from(t.children).reduce((r,a)=>dr.reduceTabbableItems(r,a),e)}static isFocusableFastElement(e){return!!e.$fastController?.definition.shadowOptions?.delegatesFocus}static hasTabbableShadow(e){return Array.from(e.shadowRoot?.querySelectorAll("*")??[]).some(t=>Th(t))}};bt([m],rt.prototype,"dialog",2),bt([m],rt.prototype,"titleAction",2),bt([m],rt.prototype,"defaultTitleAction",2),bt([s({attribute:"aria-describedby"})],rt.prototype,"ariaDescribedby",2),bt([s({attribute:"aria-labelledby"})],rt.prototype,"ariaLabelledby",2),bt([s({attribute:"modal-type"})],rt.prototype,"modalType",2),bt([s({mode:"boolean"})],rt.prototype,"open",2),bt([s({mode:"boolean",attribute:"no-title-action"})],rt.prototype,"noTitleAction",2);let Ah=rt;const wb=v.partial(`
|
|
408
|
+
<svg
|
|
409
|
+
fill="currentColor"
|
|
410
|
+
aria-hidden="true"
|
|
411
|
+
width="20"
|
|
412
|
+
height="20"
|
|
413
|
+
viewBox="0 0 20 20"
|
|
414
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
415
|
+
>
|
|
416
|
+
<path
|
|
417
|
+
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"
|
|
418
|
+
fill="currentColor"
|
|
419
|
+
></path>
|
|
420
|
+
</svg>`),Ih=v`<template ?open="${o=>o.open}"><dialog role="${o=>o.modalType===te.alert?"alertdialog":"dialog"}" modal-type="${o=>o.modalType}" class="dialog" part="dialog" aria-modal="${o=>o.modalType===te.modal||o.modalType===te.alert?"true":void 0}" aria-describedby="${o=>o.ariaDescribedby}" aria-labelledby="${o=>o.ariaLabelledby}" aria-label="${o=>o.ariaLabel}" @keydown="${(o,e)=>o.handleKeydown(e.event)}" @click="${(o,e)=>o.handleClick(e.event)}" ${we("dialog")}><div class="root" part="root"><div class="title" part="title"><slot name="title"></slot><slot ${Z({property:"titleAction",filter:to()})} name="title-action"></slot>${To(o=>o.modalType===te.nonModal&&o.titleAction.length===0&&!o.noTitleAction,v`<fluent-button tabindex="0" part="title-action" class="title-action" appearance="transparent" icon-only @click=${o=>o.dismiss()} ${we("defaultTitleAction")}>${wb}</fluent-button>`)}</div><div class="content" part="content"><slot></slot></div><div class="actions" part="actions"><slot name="action"></slot></div></div></dialog></template>`,zh=g`
|
|
421
|
+
${A("flex")}
|
|
422
|
+
|
|
423
|
+
:host{--dialog-backdrop:${cn}}dialog{background:${V};border:${K} solid ${ye};z-index:2;margin:auto auto;max-width:100%;width:100vw;border-radius:${Vr};box-shadow:${Oi};max-height:100vh;height:fit-content;overflow:unset;position:fixed;inset:0;padding:0}dialog::backdrop{background:var(--dialog-backdrop,rgba(0,0,0,0.4))}.root{box-sizing:border-box;display:flex;flex-direction:column;overflow:unset;max-height:calc(100vh - 48px);padding:${aa} ${Ei}}.title{font-size:${et};line-height:${vo};font-weight:${D};font-family:${y};color:${E};margin-bottom:${R};display:flex;justify-content:space-between;align-items:flex-start;column-gap:8px}.content{vertical-align:top;min-height:32px;color:${E};font-size:${F};line-height:${z};font-weight:${I};font-family:${y};overflow-y:auto;box-sizing:border-box}.actions{display:flex;grid-column-start:1;flex-direction:column;max-width:100vw;row-gap:${R};padding-top:${aa};justify-self:stretch;width:100%}::slotted([slot='action']){width:100%}@media screen and (min-width:480px){::slotted([slot='action']){width:fit-content}dialog{max-width:600px;width:100%}.actions{display:flex;flex-direction:row;justify-content:flex-end;align-items:center;column-gap:${G};padding-top:${R};box-sizing:border-box}}`,Sb=Ah.compose({name:`${x.prefix}-dialog`,template:Ih,styles:zh}),Yi={separator:"separator",presentation:"presentation"},Nh=he,Pb={center:"center",start:"start",end:"end"},Cb={strong:"strong",brand:"brand",subtle:"subtle",default:"default"};var Fb=Object.defineProperty,Tb=Object.getOwnPropertyDescriptor,Jo=(o,e,t,r)=>{for(var a=r>1?void 0:r?Tb(e,t):e,n=o.length-1,i;n>=0;n--)(i=o[n])&&(a=(r?i(e,t,a):i(a))||a);return r&&a&&Fb(e,t,a),a};class Gt extends S{constructor(){super(...arguments),this.role=Yi.separator,this.orientation=Nh.horizontal}}Jo([s],Gt.prototype,"role",2),Jo([s],Gt.prototype,"orientation",2),Jo([s({attribute:"align-content"})],Gt.prototype,"alignContent",2),Jo([s],Gt.prototype,"appearance",2),Jo([s({mode:"boolean"})],Gt.prototype,"inset",2);function Ab(){return v`<template role="${o=>o.role}" aria-orientation="${o=>o.role!==Yi.presentation?o.orientation:void 0}"><slot></slot></template>`}const Lh=Ab(),Dh=g`
|
|
424
|
+
${A("flex")}
|
|
425
|
+
|
|
426
|
+
:host{contain:content}:host::after,:host::before{align-self:center;background:${Et};box-sizing:border-box;content:'';display:flex;flex-grow:1;height:${K}}:host([inset]){padding:0 12px}:host ::slotted(*){color:${ie};font-family:${y};font-size:${j};font-weight:${I};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:${K};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:${Je}}:host([appearance='strong']) ::slotted(*){color:${E}}:host([appearance='brand'])::before,:host([appearance='brand'])::after{background:${Lr}}:host([appearance='brand']) ::slotted(*){color:${Lo}}:host([appearance='subtle'])::before,:host([appearance='subtle'])::after{background:${un}}:host([appearance='subtle']) ::slotted(*){color:${X}}`.withBehaviors(Te(g`
|
|
427
|
+
: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}`)),Ib=Gt.compose({name:`${x.prefix}-divider`,template:Lh,styles:Dh});var zb=Object.defineProperty,Nb=Object.getOwnPropertyDescriptor,er=(o,e,t,r)=>{for(var a=r>1?void 0:r?Nb(e,t):e,n=o.length-1,i;n>=0;n--)(i=o[n])&&(a=(r?i(e,t,a):i(a))||a);return r&&a&&zb(e,t,a),a};class Wt extends S{}er([s({mode:"boolean"})],Wt.prototype,"block",2),er([s({mode:"boolean"})],Wt.prototype,"bordered",2),er([s({mode:"boolean"})],Wt.prototype,"shadow",2),er([s],Wt.prototype,"fit",2),er([s],Wt.prototype,"shape",2);const Lb={none:"none",center:"center",contain:"contain",cover:"cover",default:"default"},Db={circular:"circular",rounded:"rounded",square:"square"},Oh=v`<slot></slot>`,Eh=g`
|
|
428
|
+
: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:${K} solid ${Et}}: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:${_t}}:host([shape='circular']) ::slotted(img){border-radius:${J}}:host([shape='rounded']) ::slotted(img){border-radius:${B}}`,Ob=Wt.compose({name:`${x.prefix}-image`,template:Oh,styles:Eh});var Eb=Object.defineProperty,Mb=Object.getOwnPropertyDescriptor,ga=(o,e,t,r)=>{for(var a=r>1?void 0:r?Mb(e,t):e,n=o.length-1,i;n>=0;n--)(i=o[n])&&(a=(r?i(e,t,a):i(a))||a);return r&&a&&Eb(e,t,a),a};class xo extends S{constructor(){super(...arguments),this.disabled=!1,this.required=!1}}ga([s],xo.prototype,"size",2),ga([s],xo.prototype,"weight",2),ga([s({mode:"boolean"})],xo.prototype,"disabled",2),ga([s({mode:"boolean"})],xo.prototype,"required",2);const Hb={small:"small",medium:"medium",large:"large"},_b={regular:"regular",semibold:"semibold"},Mh=g`
|
|
429
|
+
${A("flex")}
|
|
430
|
+
|
|
431
|
+
:host{font-family:${y};font-size:${F};line-height:${z};font-weight:${I};color:${E}}.asterisk{color:${Er};margin-left:${fe}}:host([size='small']){font-size:${j};line-height:${le}}:host([size='large']){font-size:${se};line-height:${$e};font-weight:${D}}:host([weight='semibold']){font-weight:${D}}:host([disabled]),:host([disabled]) .asterisk{color:${k}}`;function Rb(){return v`<slot></slot><span part="asterisk" class="asterisk" ?hidden="${o=>!o.required}">*</span>`}const Hh=Rb(),Vb=xo.compose({name:`${x.prefix}-label`,template:Hh,styles:Mh});function fa(o){return o.split("-")[1]}function _h(o){return o==="y"?"height":"width"}function qt(o){return o.split("-")[0]}function ba(o){return["top","bottom"].includes(qt(o))?"x":"y"}function Rh(o,e,t){let{reference:r,floating:a}=o;const n=r.x+r.width/2-a.width/2,i=r.y+r.height/2-a.height/2,c=ba(e),u=_h(c),d=r[u]/2-a[u]/2,l=c==="x";let h;switch(qt(e)){case"top":h={x:n,y:r.y-a.height};break;case"bottom":h={x:n,y:r.y+r.height};break;case"right":h={x:r.x+r.width,y:i};break;case"left":h={x:r.x-a.width,y:i};break;default:h={x:r.x,y:r.y}}switch(fa(e)){case"start":h[c]-=d*(t&&l?-1:1);break;case"end":h[c]+=d*(t&&l?-1:1)}return h}const jb=async(o,e,t)=>{const{placement:r="bottom",strategy:a="absolute",middleware:n=[],platform:i}=t,c=n.filter(Boolean),u=await(i.isRTL==null?void 0:i.isRTL(e));let d=await i.getElementRects({reference:o,floating:e,strategy:a}),{x:l,y:h}=Rh(d,r,u),p=r,f={},b=0;for(let $=0;$<c.length;$++){const{name:w,fn:L}=c[$],{x:T,y:H,data:de,reset:ue}=await L({x:l,y:h,initialPlacement:r,placement:p,strategy:a,middlewareData:f,rects:d,platform:i,elements:{reference:o,floating:e}});l=T??l,h=H??h,f={...f,[w]:{...f[w],...de}},ue&&b<=50&&(b++,typeof ue=="object"&&(ue.placement&&(p=ue.placement),ue.rects&&(d=ue.rects===!0?await i.getElementRects({reference:o,floating:e,strategy:a}):ue.rects),{x:l,y:h}=Rh(d,p,u)),$=-1)}return{x:l,y:h,placement:p,strategy:a,middlewareData:f}};function Gb(o){return typeof o!="number"?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(o):{top:o,right:o,bottom:o,left:o}}function Qi(o){return{...o,top:o.y,left:o.x,right:o.x+o.width,bottom:o.y+o.height}}async function tr(o,e){var t;e===void 0&&(e={});const{x:r,y:a,platform:n,rects:i,elements:c,strategy:u}=o,{boundary:d="clippingAncestors",rootBoundary:l="viewport",elementContext:h="floating",altBoundary:p=!1,padding:f=0}=e,b=Gb(f),$=c[p?h==="floating"?"reference":"floating":h],w=Qi(await n.getClippingRect({element:(t=await(n.isElement==null?void 0:n.isElement($)))==null||t?$:$.contextElement||await(n.getDocumentElement==null?void 0:n.getDocumentElement(c.floating)),boundary:d,rootBoundary:l,strategy:u})),L=h==="floating"?{...i.floating,x:r,y:a}:i.reference,T=await(n.getOffsetParent==null?void 0:n.getOffsetParent(c.floating)),H=await(n.isElement==null?void 0:n.isElement(T))&&await(n.getScale==null?void 0:n.getScale(T))||{x:1,y:1},de=Qi(n.convertOffsetParentRelativeRectToViewportRelativeRect?await n.convertOffsetParentRelativeRectToViewportRelativeRect({rect:L,offsetParent:T,strategy:u}):L);return{top:(w.top-de.top+b.top)/H.y,bottom:(de.bottom-w.bottom+b.bottom)/H.y,left:(w.left-de.left+b.left)/H.x,right:(de.right-w.right+b.right)/H.x}}const Zi=Math.min,Xt=Math.max;function Vh(o,e,t){return Xt(o,Zi(e,t))}const jh=["top","right","bottom","left"];jh.reduce((o,e)=>o.concat(e,e+"-start",e+"-end"),[]);const Wb={left:"right",right:"left",bottom:"top",top:"bottom"};function va(o){return o.replace(/left|right|bottom|top/g,e=>Wb[e])}function qb(o,e,t){t===void 0&&(t=!1);const r=fa(o),a=ba(o),n=_h(a);let i=a==="x"?r===(t?"end":"start")?"right":"left":r==="start"?"bottom":"top";return e.reference[n]>e.floating[n]&&(i=va(i)),{main:i,cross:va(i)}}const Xb={start:"end",end:"start"};function Ji(o){return o.replace(/start|end/g,e=>Xb[e])}const Gh=function(o){return o===void 0&&(o={}),{name:"flip",options:o,async fn(e){var t;const{placement:r,middlewareData:a,rects:n,initialPlacement:i,platform:c,elements:u}=e,{mainAxis:d=!0,crossAxis:l=!0,fallbackPlacements:h,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:f="none",flipAlignment:b=!0,...$}=o,w=qt(r),L=qt(i)===i,T=await(c.isRTL==null?void 0:c.isRTL(u.floating)),H=h||(L||!b?[va(i)]:function(xe){const Xe=va(xe);return[Ji(xe),Xe,Ji(Xe)]}(i));h||f==="none"||H.push(...function(xe,Xe,kt,it){const Ue=fa(xe);let Be=function(Po,Ta,Qp){const us=["left","right"],hs=["right","left"],Zp=["top","bottom"],Jp=["bottom","top"];switch(Po){case"top":case"bottom":return Qp?Ta?hs:us:Ta?us:hs;case"left":case"right":return Ta?Zp:Jp;default:return[]}}(qt(xe),kt==="start",it);return Ue&&(Be=Be.map(Po=>Po+"-"+Ue),Xe&&(Be=Be.concat(Be.map(Ji)))),Be}(i,b,f,T));const de=[i,...H],ue=await tr(e,$),$t=[];let nt=((t=a.flip)==null?void 0:t.overflows)||[];if(d&&$t.push(ue[w]),l){const{main:xe,cross:Xe}=qb(r,n,T);$t.push(ue[xe],ue[Xe])}if(nt=[...nt,{placement:r,overflows:$t}],!$t.every(xe=>xe<=0)){var So,cs;const xe=(((So=a.flip)==null?void 0:So.index)||0)+1,Xe=de[xe];if(Xe)return{data:{index:xe,overflows:nt},reset:{placement:Xe}};let kt=(cs=nt.filter(it=>it.overflows[0]<=0).sort((it,Ue)=>it.overflows[1]-Ue.overflows[1])[0])==null?void 0:cs.placement;if(!kt)switch(p){case"bestFit":{var ds;const it=(ds=nt.map(Ue=>[Ue.placement,Ue.overflows.filter(Be=>Be>0).reduce((Be,Po)=>Be+Po,0)]).sort((Ue,Be)=>Ue[1]-Be[1])[0])==null?void 0:ds[0];it&&(kt=it);break}case"initialPlacement":kt=i}if(r!==kt)return{reset:{placement:kt}}}return{}}}};function Wh(o,e){return{top:o.top-e.height,right:o.right-e.width,bottom:o.bottom-e.height,left:o.left-e.width}}function qh(o){return jh.some(e=>o[e]>=0)}const Ub=function(o){return o===void 0&&(o={}),{name:"hide",options:o,async fn(e){const{strategy:t="referenceHidden",...r}=o,{rects:a}=e;switch(t){case"referenceHidden":{const n=Wh(await tr(e,{...r,elementContext:"reference"}),a.reference);return{data:{referenceHiddenOffsets:n,referenceHidden:qh(n)}}}case"escaped":{const n=Wh(await tr(e,{...r,altBoundary:!0}),a.floating);return{data:{escapedOffsets:n,escaped:qh(n)}}}default:return{}}}}};function Kb(o){return o==="x"?"y":"x"}const Yb=function(o){return o===void 0&&(o={}),{name:"shift",options:o,async fn(e){const{x:t,y:r,placement:a}=e,{mainAxis:n=!0,crossAxis:i=!1,limiter:c={fn:w=>{let{x:L,y:T}=w;return{x:L,y:T}}},...u}=o,d={x:t,y:r},l=await tr(e,u),h=ba(qt(a)),p=Kb(h);let f=d[h],b=d[p];if(n){const w=h==="y"?"bottom":"right";f=Vh(f+l[h==="y"?"top":"left"],f,f-l[w])}if(i){const w=p==="y"?"bottom":"right";b=Vh(b+l[p==="y"?"top":"left"],b,b-l[w])}const $=c.fn({...e,[h]:f,[p]:b});return{...$,data:{x:$.x-t,y:$.y-r}}}}},Xh=function(o){return o===void 0&&(o={}),{name:"size",options:o,async fn(e){const{placement:t,rects:r,platform:a,elements:n}=e,{apply:i=()=>{},...c}=o,u=await tr(e,c),d=qt(t),l=fa(t),h=ba(t)==="x",{width:p,height:f}=r.floating;let b,$;d==="top"||d==="bottom"?(b=d,$=l===(await(a.isRTL==null?void 0:a.isRTL(n.floating))?"start":"end")?"left":"right"):($=d,b=l==="end"?"top":"bottom");const w=f-u[b],L=p-u[$];let T=w,H=L;if(h?H=Zi(p-u.right-u.left,L):T=Zi(f-u.bottom-u.top,w),!e.middlewareData.shift&&!l){const ue=Xt(u.left,0),$t=Xt(u.right,0),nt=Xt(u.top,0),So=Xt(u.bottom,0);h?H=p-2*(ue!==0||$t!==0?ue+$t:Xt(u.left,u.right)):T=f-2*(nt!==0||So!==0?nt+So:Xt(u.top,u.bottom))}await i({...e,availableWidth:H,availableHeight:T});const de=await a.getDimensions(n.floating);return p!==de.width||f!==de.height?{reset:{rects:!0}}:{}}}};function ke(o){var e;return((e=o.ownerDocument)==null?void 0:e.defaultView)||window}function Ve(o){return ke(o).getComputedStyle(o)}const Uh=Math.min,or=Math.max,ma=Math.round;function Kh(o){const e=Ve(o);let t=parseFloat(e.width),r=parseFloat(e.height);const a=o.offsetWidth,n=o.offsetHeight,i=ma(t)!==a||ma(r)!==n;return i&&(t=a,r=n),{width:t,height:r,fallback:i}}function vt(o){return Qh(o)?(o.nodeName||"").toLowerCase():""}let ya;function Yh(){if(ya)return ya;const o=navigator.userAgentData;return o&&Array.isArray(o.brands)?(ya=o.brands.map(e=>e.brand+"/"+e.version).join(" "),ya):navigator.userAgent}function je(o){return o instanceof ke(o).HTMLElement}function Ne(o){return o instanceof ke(o).Element}function Qh(o){return o instanceof ke(o).Node}function Zh(o){return typeof ShadowRoot>"u"?!1:o instanceof ke(o).ShadowRoot||o instanceof ShadowRoot}function $a(o){const{overflow:e,overflowX:t,overflowY:r,display:a}=Ve(o);return/auto|scroll|overlay|hidden|clip/.test(e+r+t)&&!["inline","contents"].includes(a)}function Qb(o){return["table","td","th"].includes(vt(o))}function es(o){const e=/firefox/i.test(Yh()),t=Ve(o),r=t.backdropFilter||t.WebkitBackdropFilter;return t.transform!=="none"||t.perspective!=="none"||!!r&&r!=="none"||e&&t.willChange==="filter"||e&&!!t.filter&&t.filter!=="none"||["transform","perspective"].some(a=>t.willChange.includes(a))||["paint","layout","strict","content"].some(a=>{const n=t.contain;return n!=null&&n.includes(a)})}function ts(){return/^((?!chrome|android).)*safari/i.test(Yh())}function os(o){return["html","body","#document"].includes(vt(o))}function Jh(o){return Ne(o)?o:o.contextElement}const ep={x:1,y:1};function Bo(o){const e=Jh(o);if(!je(e))return ep;const t=e.getBoundingClientRect(),{width:r,height:a,fallback:n}=Kh(e);let i=(n?ma(t.width):t.width)/r,c=(n?ma(t.height):t.height)/a;return i&&Number.isFinite(i)||(i=1),c&&Number.isFinite(c)||(c=1),{x:i,y:c}}function Ut(o,e,t,r){var a,n;e===void 0&&(e=!1),t===void 0&&(t=!1);const i=o.getBoundingClientRect(),c=Jh(o);let u=ep;e&&(r?Ne(r)&&(u=Bo(r)):u=Bo(o));const d=c?ke(c):window,l=ts()&&t;let h=(i.left+(l&&((a=d.visualViewport)==null?void 0:a.offsetLeft)||0))/u.x,p=(i.top+(l&&((n=d.visualViewport)==null?void 0:n.offsetTop)||0))/u.y,f=i.width/u.x,b=i.height/u.y;if(c){const $=ke(c),w=r&&Ne(r)?ke(r):r;let L=$.frameElement;for(;L&&r&&w!==$;){const T=Bo(L),H=L.getBoundingClientRect(),de=getComputedStyle(L);H.x+=(L.clientLeft+parseFloat(de.paddingLeft))*T.x,H.y+=(L.clientTop+parseFloat(de.paddingTop))*T.y,h*=T.x,p*=T.y,f*=T.x,b*=T.y,h+=H.x,p+=H.y,L=ke(L).frameElement}}return{width:f,height:b,top:p,right:h+f,bottom:p+b,left:h,x:h,y:p}}function mt(o){return((Qh(o)?o.ownerDocument:o.document)||window.document).documentElement}function ka(o){return Ne(o)?{scrollLeft:o.scrollLeft,scrollTop:o.scrollTop}:{scrollLeft:o.pageXOffset,scrollTop:o.pageYOffset}}function tp(o){return Ut(mt(o)).left+ka(o).scrollLeft}function rr(o){if(vt(o)==="html")return o;const e=o.assignedSlot||o.parentNode||Zh(o)&&o.host||mt(o);return Zh(e)?e.host:e}function op(o){const e=rr(o);return os(e)?e.ownerDocument.body:je(e)&&$a(e)?e:op(e)}function ar(o,e){var t;e===void 0&&(e=[]);const r=op(o),a=r===((t=o.ownerDocument)==null?void 0:t.body),n=ke(r);return a?e.concat(n,n.visualViewport||[],$a(r)?r:[]):e.concat(r,ar(r))}function rp(o,e,t){let r;if(e==="viewport")r=function(i,c){const u=ke(i),d=mt(i),l=u.visualViewport;let h=d.clientWidth,p=d.clientHeight,f=0,b=0;if(l){h=l.width,p=l.height;const $=ts();(!$||$&&c==="fixed")&&(f=l.offsetLeft,b=l.offsetTop)}return{width:h,height:p,x:f,y:b}}(o,t);else if(e==="document")r=function(i){const c=mt(i),u=ka(i),d=i.ownerDocument.body,l=or(c.scrollWidth,c.clientWidth,d.scrollWidth,d.clientWidth),h=or(c.scrollHeight,c.clientHeight,d.scrollHeight,d.clientHeight);let p=-u.scrollLeft+tp(i);const f=-u.scrollTop;return Ve(d).direction==="rtl"&&(p+=or(c.clientWidth,d.clientWidth)-l),{width:l,height:h,x:p,y:f}}(mt(o));else if(Ne(e))r=function(i,c){const u=Ut(i,!0,c==="fixed"),d=u.top+i.clientTop,l=u.left+i.clientLeft,h=je(i)?Bo(i):{x:1,y:1};return{width:i.clientWidth*h.x,height:i.clientHeight*h.y,x:l*h.x,y:d*h.y}}(e,t);else{const i={...e};if(ts()){var a,n;const c=ke(o);i.x-=((a=c.visualViewport)==null?void 0:a.offsetLeft)||0,i.y-=((n=c.visualViewport)==null?void 0:n.offsetTop)||0}r=i}return Qi(r)}function ap(o,e){return je(o)&&Ve(o).position!=="fixed"?e?e(o):o.offsetParent:null}function np(o,e){const t=ke(o);let r=ap(o,e);for(;r&&Qb(r)&&Ve(r).position==="static";)r=ap(r,e);return r&&(vt(r)==="html"||vt(r)==="body"&&Ve(r).position==="static"&&!es(r))?t:r||function(a){let n=rr(a);for(;je(n)&&!os(n);){if(es(n))return n;n=rr(n)}return null}(o)||t}function Zb(o,e,t){const r=je(e),a=mt(e),n=Ut(o,!0,t==="fixed",e);let i={scrollLeft:0,scrollTop:0};const c={x:0,y:0};if(r||!r&&t!=="fixed")if((vt(e)!=="body"||$a(a))&&(i=ka(e)),je(e)){const u=Ut(e,!0);c.x=u.x+e.clientLeft,c.y=u.y+e.clientTop}else a&&(c.x=tp(a));return{x:n.left+i.scrollLeft-c.x,y:n.top+i.scrollTop-c.y,width:n.width,height:n.height}}const Jb={getClippingRect:function(o){let{element:e,boundary:t,rootBoundary:r,strategy:a}=o;const n=t==="clippingAncestors"?function(d,l){const h=l.get(d);if(h)return h;let p=ar(d).filter(w=>Ne(w)&&vt(w)!=="body"),f=null;const b=Ve(d).position==="fixed";let $=b?rr(d):d;for(;Ne($)&&!os($);){const w=Ve($),L=es($);(b?L||f:L||w.position!=="static"||!f||!["absolute","fixed"].includes(f.position))?f=w:p=p.filter(T=>T!==$),$=rr($)}return l.set(d,p),p}(e,this._c):[].concat(t),i=[...n,r],c=i[0],u=i.reduce((d,l)=>{const h=rp(e,l,a);return d.top=or(h.top,d.top),d.right=Uh(h.right,d.right),d.bottom=Uh(h.bottom,d.bottom),d.left=or(h.left,d.left),d},rp(e,c,a));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(o){let{rect:e,offsetParent:t,strategy:r}=o;const a=je(t),n=mt(t);if(t===n)return e;let i={scrollLeft:0,scrollTop:0},c={x:1,y:1};const u={x:0,y:0};if((a||!a&&r!=="fixed")&&((vt(t)!=="body"||$a(n))&&(i=ka(t)),je(t))){const d=Ut(t);c=Bo(t),u.x=d.x+t.clientLeft,u.y=d.y+t.clientTop}return{width:e.width*c.x,height:e.height*c.y,x:e.x*c.x-i.scrollLeft*c.x+u.x,y:e.y*c.y-i.scrollTop*c.y+u.y}},isElement:Ne,getDimensions:function(o){return je(o)?Kh(o):o.getBoundingClientRect()},getOffsetParent:np,getDocumentElement:mt,getScale:Bo,async getElementRects(o){let{reference:e,floating:t,strategy:r}=o;const a=this.getOffsetParent||np,n=this.getDimensions;return{reference:Zb(e,await a(t),r),floating:{x:0,y:0,...await n(t)}}},getClientRects:o=>Array.from(o.getClientRects()),isRTL:o=>Ve(o).direction==="rtl"};function ip(o,e,t,r){r===void 0&&(r={});const{ancestorScroll:a=!0,ancestorResize:n=!0,elementResize:i=!0,animationFrame:c=!1}=r,u=a&&!c,d=u||n?[...Ne(o)?ar(o):o.contextElement?ar(o.contextElement):[],...ar(e)]:[];d.forEach(f=>{u&&f.addEventListener("scroll",t,{passive:!0}),n&&f.addEventListener("resize",t)});let l,h=null;if(i){let f=!0;h=new ResizeObserver(()=>{f||t(),f=!1}),Ne(o)&&!c&&h.observe(o),Ne(o)||!o.contextElement||c||h.observe(o.contextElement),h.observe(e)}let p=c?Ut(o):null;return c&&function f(){const b=Ut(o);!p||b.x===p.x&&b.y===p.y&&b.width===p.width&&b.height===p.height||t(),p=b,l=requestAnimationFrame(f)}(),t(),()=>{var f;d.forEach(b=>{u&&b.removeEventListener("scroll",t),n&&b.removeEventListener("resize",t)}),(f=h)==null||f.disconnect(),h=null,c&&cancelAnimationFrame(l)}}const sp=(o,e,t)=>{const r=new Map,a={platform:Jb,...t},n={...a.platform,_c:r};return jb(o,e,{...a,platform:n})};var ev=Object.defineProperty,tv=Object.getOwnPropertyDescriptor,Kt=(o,e,t,r)=>{for(var a=r>1?void 0:r?tv(e,t):e,n=o.length-1,i;n>=0;n--)(i=o[n])&&(a=(r?i(e,t,a):i(a))||a);return r&&a&&ev(e,t,a),a};class at 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=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 io:case wt: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(),ve.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&&ve.enqueue(()=>{this._menuList.focus()})}focusTrigger(){!this.open&&this._trigger&&ve.enqueue(()=>{this._trigger.focus()})}openChanged(e,t){this.$fastController.isConnected&&this._trigger instanceof HTMLElement&&(this._trigger.setAttribute("aria-expanded",`${this.open}`),this._menuList&&this.open&&ve.enqueue(this.setPositioningTask)),this.cleanup?.(),this.$emit("onOpenChange",{open:t})}openOnHoverChanged(e,t){t?this._trigger?.addEventListener("mouseover",this.openMenu):this._trigger?.removeEventListener("mouseover",this.openMenu)}persistOnItemClickChanged(e,t){t?this._menuList?.removeEventListener("click",this.closeMenu):this._menuList?.addEventListener("click",this.closeMenu)}openOnContextChanged(e,t){t?this._trigger?.addEventListener("contextmenu",this.openMenu):this._trigger?.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=ip(this,this.positioningContainer,async()=>{const{middlewareData:e,x:t,y:r}=await sp(this._trigger,this.positioningContainer,{placement:"bottom",strategy:"fixed",middleware:[Gh(),Xh({apply:({availableHeight:a,rects:n})=>{this.positioningContainer?.style&&Object.assign(this.positioningContainer.style,{maxHeight:`${a}px`,width:`${n.reference.width}px`})}}),Ub()]});if(e.hide?.referenceHidden){this.open=!1;return}this.positioningContainer?.style&&Object.assign(this.positioningContainer.style,{position:"fixed",top:"0",left:"0",transform:`translate(${t}px, ${r}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(e){if(e.defaultPrevented)return;switch(e.key){case Ga:e.preventDefault(),this.open&&(this.closeMenu(),this.focusTrigger());break;case el:this.open&&this.closeMenu(),e.shiftKey&&this.focusTrigger();default:return!0}}}Kt([m,s({attribute:"open-on-hover",mode:"boolean"})],at.prototype,"openOnHover",2),Kt([m,s({attribute:"open-on-context",mode:"boolean"})],at.prototype,"openOnContext",2),Kt([m,s({attribute:"close-on-scroll",mode:"boolean"})],at.prototype,"closeOnScroll",2),Kt([m,s({attribute:"persist-on-item-click",mode:"boolean"})],at.prototype,"persistOnItemClick",2),Kt([m,s({mode:"boolean"})],at.prototype,"open",2),Kt([m],at.prototype,"slottedMenuList",2),Kt([m],at.prototype,"slottedTriggers",2);function ov(){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,e)=>o.handleMenuKeydown(e.event)}"><slot name="trigger" ${Z({property:"slottedTriggers",filter:to()})}></slot><span ${we("positioningContainer")} part="positioning-container" class="positioning-container" ?hidden="${o=>!o.open}"><slot ${Z({property:"slottedMenuList",filter:to()})}></slot></span></template>`}const lp=ov(),cp=g`
|
|
432
|
+
:host{position:relative;z-index:var(--z-index-menu,1)}.positioning-container{position:fixed;top:0;left:0;transform:translate(0,0)}`,rv=at.compose({name:`${x.prefix}-menu`,template:lp,styles:cp});class dp extends N{}const av=Uo,nv=Ko,iv=Yo,up=Ui({end:v.partial(`
|
|
433
|
+
<svg slot="end" fill="currentColor" aria-hidden="true" width="1em" height="1em" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg">
|
|
434
|
+
<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>
|
|
435
|
+
</svg>
|
|
436
|
+
`)}),sv=dp.compose({name:`${x.prefix}-menu-button`,template:up,styles:ko}),ce={menuitem:"menuitem",menuitemcheckbox:"menuitemcheckbox",menuitemradio:"menuitemradio"},lv={[ce.menuitem]:"menuitem",[ce.menuitemcheckbox]:"menuitemcheckbox",[ce.menuitemradio]:"menuitemradio"};var cv=Object.defineProperty,dv=Object.getOwnPropertyDescriptor,Yt=(o,e,t,r)=>{for(var a=r>1?void 0:r?dv(e,t):e,n=o.length-1,i;n>=0;n--)(i=o[n])&&(a=(r?i(e,t,a):i(a))||a);return r&&a&&cv(e,t,a),a};class Ce extends S{constructor(){super(...arguments),this.role=ce.menuitem,this.checked=!1,this.focusSubmenuOnLoad=!1,this.handleMenuItemKeyDown=e=>{if(e.defaultPrevented)return!1;switch(e.key){case wt:case io:return this.invoke(),!1;case ao:return this.expanded&&this.submenu?this.submenu.focus():this.expandAndFocus(),!1;case Ga:if(this.expanded)return this.closeSubMenu(),!1;break;case ro:if(this.expanded)return this.closeSubMenu(),!1}return!0},this.handleMenuItemClick=e=>(e.defaultPrevented||this.disabled||this.invoke(),!1),this.submenuLoaded=()=>{this.focusSubmenuOnLoad&&(this.focusSubmenuOnLoad=!1,this.submenu&&(this.submenu.focus(),this.setAttribute("tabindex","-1")))},this.handleMouseOver=e=>(this.disabled||!this.hasSubmenu||this.expanded||(this.expanded=!0),!1),this.handleMouseOut=e=>(!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 ce.menuitemcheckbox:this.checked=!this.checked;break;case ce.menuitem:if(this.hasSubmenu){this.expandAndFocus();break}this.$emit("change");break;case ce.menuitemradio:this.checked||(this.checked=!0);break}}}expandedChanged(e,t){this.$fastController.isConnected&&(t&&this.submenu&&this.updateSubmenu(),this.$emit("expanded-change",this,{bubbles:!1}))}checkedChanged(e,t){this.$fastController.isConnected&&this.$emit("change")}get hasSubmenu(){return!!this.submenu}slottedSubmenuChanged(e,t){t.length&&(this.submenu=t[0],this.updateSubmenu())}disconnectedCallback(){this.cleanup?.(),super.disconnectedCallback()}updateSubmenu(){this.cleanup?.(),!(!this.submenu||!this.expanded)&&ve.enqueue(()=>{this.cleanup=ip(this,this.submenuContainer,async()=>{const e=["left-start","right-start"],{x:t,y:r}=await sp(this,this.submenuContainer,{middleware:[Yb(),Xh({apply:({availableWidth:a,rects:n})=>{a<n.floating.width&&e.push("bottom-end","top-end")}}),Gh({fallbackPlacements:e})],placement:"right-start",strategy:"fixed"});Object.assign(this.submenuContainer.style,{left:`${t}px`,position:"fixed",top:`${r}px`}),this.submenuLoaded()})})}}Yt([s({mode:"boolean"})],Ce.prototype,"disabled",2),Yt([s({mode:"boolean"})],Ce.prototype,"expanded",2),Yt([s],Ce.prototype,"role",2),Yt([s({mode:"boolean"})],Ce.prototype,"checked",2),Yt([s({mode:"boolean"})],Ce.prototype,"hidden",2),Yt([m],Ce.prototype,"slottedSubmenu",2),Yt([m],Ce.prototype,"submenu",2),Ee(Ce,Ye);const hp=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>'),uv=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 hv(o={}){return v`<template aria-haspopup="${e=>e.hasSubmenu?"menu":void 0}" aria-checked="${e=>e.role!==ce.menuitem?e.checked:void 0}" aria-disabled="${e=>e.disabled}" aria-expanded="${e=>e.expanded}" @keydown="${(e,t)=>e.handleMenuItemKeyDown(t.event)}" @click="${(e,t)=>e.handleMenuItemClick(t.event)}" @mouseover="${(e,t)=>e.handleMouseOver(t.event)}" @mouseout="${(e,t)=>e.handleMouseOut(t.event)}">${To(e=>e.role===ce.menuitemcheckbox,v`<div part="input-container" class="input-container"><span part="checkbox" class="checkbox"><slot name="checkbox-indicator">${ae(o.checkboxIndicator)}</slot></span></div>`)} ${To(e=>e.role===ce.menuitemradio,v`<div part="input-container" class="input-container"><span part="radio" class="radio"><slot name="radio-indicator">${ae(o.radioIndicator)}</slot></span></div>`)}</div>${Ze(o)}<span class="content" part="content"><slot></slot></span>${Qe(o)} ${To(e=>e.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">${ae(o.expandCollapseGlyph)}</slot></span></div>`)}<span ?hidden="${e=>!e.expanded}" class="submenu-container" part="submenu-container" ${we("submenuContainer")}><slot name="submenu" ${Z({property:"slottedSubmenu",filter:to("[role='menu']")})}></slot></span></template>`}const pp=hv({checkboxIndicator:hp,expandCollapseGlyph:uv,radioIndicator:hp}),gp=g`
|
|
437
|
+
${A("grid")}
|
|
438
|
+
|
|
439
|
+
:host{grid-template-columns:20px 20px auto 20px;align-items:center;grid-gap:4px;height:32px;background:${V};font:${I} ${F} / ${z} ${y};border-radius:${B};color:${ie};padding:0 10px;cursor:pointer;overflow:visible;contain:layout}:host(:hover){background:${lo}}.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:${ie}}.expand-collapse-glyph-container,::slotted([slot='start']),::slotted([slot='end']){height:32px;font-size:${et};width:fit-content}.input-container{width:20px}::slotted([slot='end']){color:${X};font:${I} ${j} / ${le} ${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:${Pt}}:host([icon]:hover) ::slotted([slot='start']){color:${zo}}:host(:active){background-color:${Tr}}:host(:active) .input-container,:host(:active) .expand-collapse-glyph-container,:host(:active) .content{color:${Ct}}:host(:active) ::slotted([slot='start']){color:${No}}:host([disabled]){background-color:${At}}:host([disabled]) .content,:host([disabled]) .expand-collapse-glyph-container,:host([disabled]) ::slotted([slot='end']),:host([disabled]) ::slotted([slot='start']){color:${k}}: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}`,pv=Ce.compose({name:`${x.prefix}-menu-item`,template:pp,styles:gp});var gv=Object.defineProperty,fv=Object.getOwnPropertyDescriptor,bv=(o,e,t,r)=>{for(var a=r>1?void 0:r?fv(e,t):e,n=o.length-1,i;n>=0;n--)(i=o[n])&&(a=(r?i(e,t,a):i(a))||a);return r&&a&&gv(e,t,a),a};const rs=class ls extends S{constructor(){super(...arguments),this.expandedItem=null,this.focusIndex=-1,this.isNestedMenu=()=>this.parentElement!==null&&Js(this.parentElement)&&this.parentElement.getAttribute("role")==="menuitem",this.handleFocusOut=e=>{if(!this.contains(e.relatedTarget)&&this.menuItems!==void 0){this.collapseExpandedItem();const t=this.menuItems.findIndex(this.isFocusableElement);this.menuItems[this.focusIndex].setAttribute("tabindex","-1"),this.menuItems[t].setAttribute("tabindex","0"),this.focusIndex=t}},this.handleItemFocus=e=>{const t=e.target;this.menuItems!==void 0&&t!==this.menuItems[this.focusIndex]&&(this.menuItems[this.focusIndex].setAttribute("tabindex","-1"),this.focusIndex=this.menuItems.indexOf(t),t.setAttribute("tabindex","0"))},this.handleExpandedChanged=e=>{if(e.defaultPrevented||e.target===null||this.menuItems===void 0||this.menuItems.indexOf(e.target)<0)return;e.preventDefault();const t=e.target;if(this.expandedItem!==null&&t===this.expandedItem&&t.expanded===!1){this.expandedItem=null;return}t.expanded&&(this.expandedItem!==null&&this.expandedItem!==t&&(this.expandedItem.expanded=!1),this.menuItems[this.focusIndex].setAttribute("tabindex","-1"),this.expandedItem=t,this.focusIndex=this.menuItems.indexOf(t),t.setAttribute("tabindex","0"))},this.changeHandler=e=>{if(this.menuItems===void 0)return;const t=e.target,r=this.menuItems.indexOf(t);if(r!==-1&&t.role==="menuitemradio"&&t.checked===!0){for(let n=r-1;n>=0;--n){const i=this.menuItems[n],c=i.getAttribute("role");if(c===ce.menuitemradio&&(i.checked=!1),c==="separator")break}const a=this.menuItems.length-1;for(let n=r+1;n<=a;++n){const i=this.menuItems[n],c=i.getAttribute("role");if(c===ce.menuitemradio&&(i.checked=!1),c==="separator")break}}},this.isMenuItemElement=e=>e instanceof Ce||Js(e)&&e.getAttribute("role")in ls.focusableElementRoles,this.isFocusableElement=e=>this.isMenuItemElement(e)}itemsChanged(e,t){this.$fastController.isConnected&&this.menuItems!==void 0&&this.setItems()}connectedCallback(){super.connectedCallback(),ve.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(e){if(!(e.defaultPrevented||this.menuItems===void 0))switch(e.key){case oo:this.setFocus(this.focusIndex+1,1);return;case no:this.setFocus(this.focusIndex-1,-1);return;case Br:this.setFocus(this.menuItems.length-1,-1);return;case wr:this.setFocus(0,1);return;default:return!0}}removeItemListeners(e=this.items){e.forEach(t=>{t.removeEventListener("focus",this.handleItemFocus),t.removeEventListener("expanded-changed",this.handleExpandedChanged),C.getNotifier(t).unsubscribe(this,"hidden")})}static elementIndent(e){const t=e.getAttribute("role"),r=e.querySelector("[slot=start]");return t&&t!==ce.menuitem?r?2:1:r?1:0}setItems(){const e=Array.from(this.children);this.removeItemListeners(e),e.forEach(n=>C.getNotifier(n).subscribe(this,"hidden"));const t=e.filter(n=>!n.hasAttribute("hidden"));this.menuItems=t;const r=this.menuItems.filter(this.isMenuItemElement);r.length&&(this.focusIndex=0),r.forEach((n,i)=>{n.setAttribute("tabindex",i===0?"0":"-1"),n.addEventListener("expanded-change",this.handleExpandedChanged),n.addEventListener("focus",this.handleItemFocus)});const a=this.menuItems?.filter(this.isMenuItemElement);a?.forEach((n,i)=>{const c=a?.reduce((u,d)=>{const l=ls.elementIndent(d);return Math.max(u,l)},0);n instanceof Ce&&n.setAttribute("data-indent",`${c}`)})}handleChange(e,t){t==="hidden"&&this.setItems()}setFocus(e,t){if(this.menuItems!==void 0)for(;e>=0&&e<this.menuItems.length;){const r=this.menuItems[e];if(this.isFocusableElement(r)){this.focusIndex>-1&&this.menuItems.length>=this.focusIndex-1&&this.menuItems[this.focusIndex].setAttribute("tabindex","-1"),this.focusIndex=e,r.setAttribute("tabindex","0"),r.focus();break}e+=t}}};rs.focusableElementRoles=ce,bv([m],rs.prototype,"items",2);let fp=rs;function vv(){return v`<template slot="${o=>o.slot?o.slot:o.isNestedMenu()?"submenu":void 0}" role="menu" @keydown="${(o,e)=>o.handleMenuKeyDown(e.event)}" @focusout="${(o,e)=>o.handleFocusOut(e.event)}"><slot ${Z("items")}></slot></template>`}const bp=vv(),vp=g`
|
|
440
|
+
${A("flex")}
|
|
441
|
+
|
|
442
|
+
:host{flex-direction:column;height:fit-content;max-width:300px;min-width:160px;width:auto;background-color:${V};border:1px solid ${ye};border-radius:${B};box-shadow:${Zr};padding:4px;row-gap:2px}`,mv=fp.compose({name:`${x.prefix}-menu-list`,template:bp,styles:vp});var yv=Object.defineProperty,$v=Object.getOwnPropertyDescriptor,xa=(o,e,t,r)=>{for(var a=r>1?void 0:r?$v(e,t):e,n=o.length-1,i;n>=0;n--)(i=o[n])&&(a=(r?i(e,t,a):i(a))||a);return r&&a&&yv(e,t,a),a};class nr extends S{constructor(){super(...arguments),this.percentComplete=0}valueChanged(){this.updatePercentComplete()}minChanged(){this.$fastController.isConnected&&this.updatePercentComplete()}maxChanged(){this.$fastController.isConnected&&this.updatePercentComplete()}connectedCallback(){super.connectedCallback(),this.updatePercentComplete()}updatePercentComplete(){const e=typeof this.min=="number"?this.min:0,t=typeof this.max=="number"?this.max:100,r=typeof this.value=="number"?this.value:0,a=t-e;this.percentComplete=a===0?0:Math.fround((r-e)/a*100)}}xa([s({converter:me})],nr.prototype,"value",2),xa([s({converter:me})],nr.prototype,"min",2),xa([s({converter:me})],nr.prototype,"max",2),xa([m],nr.prototype,"percentComplete",2);var kv=Object.defineProperty,xv=Object.getOwnPropertyDescriptor,as=(o,e,t,r)=>{for(var a=r>1?void 0:r?xv(e,t):e,n=o.length-1,i;n>=0;n--)(i=o[n])&&(a=(r?i(e,t,a):i(a))||a);return r&&a&&kv(e,t,a),a};class ir extends nr{constructor(){super(...arguments),this.validationState=null}}as([s],ir.prototype,"thickness",2),as([s],ir.prototype,"shape",2),as([s({attribute:"validation-state"})],ir.prototype,"validationState",2);const Bv={medium:"medium",large:"large"},wv={rounded:"rounded",square:"square"},Sv={success:"success",warning:"warning",error:"error"},mp=g`
|
|
443
|
+
${A("flex")}
|
|
444
|
+
|
|
445
|
+
:host{align-items:center;height:2px;overflow-x:hidden;border-radius:${B};contain:content}:host([thickness='large']),:host([thickness='large']) .progress,:host([thickness='large']) .determinate{height:4px}:host([shape='square']),:host([shape='square']) .progress,:host([shape='square']) .determinate{border-radius:0}:host([validation-state='error']) .determinate{background-color:${Ro}}:host([validation-state='error']) .indeterminate-indicator-1,:host([validation-state='error']) .indeterminate-indicator-2{background:linear-gradient(
|
|
446
|
+
to right,${_o} 0%,${Ro} 50%,${_o}
|
|
447
|
+
)}:host([validation-state='warning']) .determinate{background-color:${jo}}:host([validation-state='warning']) .indeterminate-indicator-1,:host([validation-state='warning']) .indeterminate-indicator-2{background:linear-gradient(
|
|
448
|
+
to right,${_r} 0%,${jo} 50%,${_r}
|
|
449
|
+
)}:host([validation-state='success']) .determinate{background-color:${Vo}}:host([validation-state='success']) .indeterminate-indicator-1,:host([validation-state='success']) .indeterminate-indicator-2{background:linear-gradient(
|
|
450
|
+
to right,${Hr} 0%,${Vo} 50%,${Hr}
|
|
451
|
+
)}.progress{background-color:${Ir};border-radius:${B};width:100%;height:2px;display:flex;align-items:center;position:relative}.determinate{background-color:${ut};border-radius:${B};height:2px;transition:all 0.2s ease-in-out;display:flex}.indeterminate-indicator-1{position:absolute;opacity:0;height:100%;background:linear-gradient(
|
|
452
|
+
to right,${Nt} 0%,${ut} 50%,${Nt}
|
|
453
|
+
);border-radius:${B};animation-timing-function:cubic-bezier(0.4,0,0.6,1);width:40%;animation:indeterminate-1 3s infinite}.indeterminate-indicator-2{position:absolute;opacity:0;height:100%;background:linear-gradient(
|
|
454
|
+
to right,${Nt} 0%,${ut} 50%,${Nt}
|
|
455
|
+
);border-radius:${B};animation-timing-function:cubic-bezier(0.4,0,0.6,1);width:60%;animation:indeterminate-2 3s infinite}@keyframes indeterminate-1{0%{opacity:1;transform:translateX(-100%)}70%{opacity:1;transform:translateX(300%)}70.01%{opacity:0}100%{opacity:0;transform:translateX(300%)}}@keyframes indeterminate-2{0%{opacity:0;transform:translateX(-150%)}29.99%{opacity:0}30%{opacity:1;transform:translateX(-150%)}100%{transform:translateX(166.66%);opacity:1}}`.withBehaviors(Te(g`
|
|
456
|
+
.progress{background-color:HighlightText}.determinate,:host([validation-state='success']) .determinate,:host([validation-state='warning']) .determinate,:host([validation-state='error']) .determinate,:host([validation-state='success']) ..indeterminate-indicator-1,:host([validation-state='success']) ..indeterminate-indicator-2,:host([validation-state='warning']) .indeterminate-indicator-1,:host([validation-state='warning']) .indeterminate-indicator-2,:host([validation-state='error']) .indeterminate-indicator-1,:host([validation-state='error']) .indeterminate-indicator-2{background-color:Highlight}`));function Pv(o={}){return v`<template role="progressbar" aria-valuenow="${e=>e.value}" aria-valuemin="${e=>e.min}" aria-valuemax="${e=>e.max}">${To(e=>typeof e.value=="number",v`<div class="progress" part="progress" slot="determinate"><div class="determinate" part="determinate" style="width: ${e=>e.percentComplete}%"></div></div>`,v`<div class="progress" part="progress" slot="indeterminate"><slot name="indeterminate">${ae(o.indeterminateIndicator1)} ${ae(o.indeterminateIndicator2)}</slot></div>`)}</template>`}const yp=Pv({indeterminateIndicator1:'<span class="indeterminate-indicator-1" part="indeterminate-indicator-1></span>',indeterminateIndicator2:'<span class="indeterminate-indicator-2" part="indeterminate-indicator-2"></span>'}),Cv=ir.compose({name:`${x.prefix}-progress-bar`,template:yp,styles:mp});class Fv extends S{}class Tv extends Ki(Fv){constructor(){super(...arguments),this.proxy=document.createElement("input")}}var Av=Object.defineProperty,Iv=Object.getOwnPropertyDescriptor,$p=(o,e,t,r)=>{for(var a=r>1?void 0:r?Iv(e,t):e,n=o.length-1,i;n>=0;n--)(i=o[n])&&(a=(r?i(e,t,a):i(a))||a);return r&&a&&Av(e,t,a),a};class Ge extends Tv{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(e){switch(e.key){case io:!this.checked&&!this.radioGroup?.readOnly&&(this.checked=!0);return}return!0}}$p([m],Ge.prototype,"name",2),$p([m],Ge.prototype,"defaultSlottedNodes",2);const kp=g`
|
|
457
|
+
${A("inline-grid")}
|
|
458
|
+
|
|
459
|
+
:host{grid-auto-flow:column;grid-template-columns:max-content;gap:${fe};align-items:center;height:32px;cursor:pointer;outline:none;position:relative;user-select:none;color:blue;color:var(--state-color,${X});padding-inline-end:${G};--control-border-color:${Ae};--checked-indicator-background-color:${Io};--state-color:${X}}:host([disabled]){--control-border-color:${k};--checked-indicator-background-color:${k};--state-color:${k}}.label{cursor:pointer;font-family:${y};font-size:${F};font-weight:${I};line-height:${z}}.label__hidden{display:none}.control{box-sizing:border-box;align-items:center;border:1px solid var(--control-border-color,${Ae});border-radius:${J};display:flex;height:16px;justify-content:center;margin:${R} ${G};position:relative;width:16px;justify-self:center}.checked-indicator{border-radius:${J};height:10px;opacity:0;width:10px}:host([aria-checked='false']:hover) .control{color:${ie}}:host(:focus-visible){border-radius:${ge};box-shadow:0 0 0 3px ${Pe};outline:1px solid ${Mt}}:host(:hover) .control{border-color:${Lt}}:host(:active) .control{border-color:${Dt}}:host([aria-checked='true']) .checked-indicator{opacity:1}:host([aria-checked='true']) .control{border-color:var(--control-border-color,${Ae})}:host([aria-checked='true']) .checked-indicator{background-color:var(--checked-indicator-background-color,${Io})}:host([aria-checked='true']:hover) .control{border-color:${po}}:host([aria-checked='true']:hover) .checked-indicator{background-color:${po}}:host([aria-checked='true']:active) .control{border-color:${Ho}}:host([aria-checked='true']:active) .checked-indicator{background:${No}}:host([disabled]){color:${k};pointer-events:none}:host([disabled]) .control{pointer-events:none;border-color:${k}}:host([disabled]) .checked-indicator{background:${k}}`.withBehaviors(Te(g`
|
|
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 zv(o={}){return v`<template role="radio" aria-checked="${e=>e.checked}" aria-required="${e=>e.required}" aria-disabled="${e=>e.disabled}" @keypress="${(e,t)=>e.keypressHandler(t.event)}"><div part="control" class="control"><slot name="checked-indicator">${ae(o.checkedIndicator)}</slot></div><label part="label" class="${e=>["label",!e.defaultSlottedNodes?.length&&"label__hidden"].filter(Boolean).join(" ")}"><slot ${Z({property:"defaultSlottedNodes",filter:tl})}></slot></label></template>`}const xp=zv({checkedIndicator:v`<div part="checked-indicator" class="checked-indicator"></div>`}),Nv=Ge.compose({name:`${x.prefix}-radio`,template:xp,styles:kp}),ns=he;var Lv=Object.defineProperty,Dv=Object.getOwnPropertyDescriptor,yt=(o,e,t,r)=>{for(var a=r>1?void 0:r?Dv(e,t):e,n=o.length-1,i;n>=0;n--)(i=o[n])&&(a=(r?i(e,t,a):i(a))||a);return r&&a&&Lv(e,t,a),a};class We extends S{constructor(){super(...arguments),this.stacked=!1,this.orientation=ns.horizontal,this.radioChangeHandler=e=>{const t=e.target;t.checked&&(this.slottedRadioButtons.forEach(r=>{r instanceof Ge&&r!==t&&(r.checked=!1,this.isInsideFoundationToolbar||r.setAttribute("tabindex","-1"))}),this.selectedRadio=t,this.value=t.value,t.setAttribute("tabindex","0"),this.focusedRadio=t),e.stopPropagation()},this.moveToRadioByIndex=(e,t)=>{const r=e[t];this.isInsideToolbar||(r.setAttribute("tabindex","0"),r.checked=!0,this.selectedRadio=r),this.focusedRadio=r,r.focus()},this.moveRightOffGroup=()=>{this.nextElementSibling?.focus()},this.moveLeftOffGroup=()=>{this.previousElementSibling?.focus()},this.focusOutHandler=e=>{const t=this.slottedRadioButtons,r=e.target,a=r!==null?t.indexOf(r):0,n=this.focusedRadio?t.indexOf(this.focusedRadio):-1;return(n===0&&a===n||n===t.length-1&&n===a)&&(this.selectedRadio?(this.focusedRadio=this.selectedRadio,this.isInsideFoundationToolbar||(this.selectedRadio.setAttribute("tabindex","0"),t.forEach(i=>{i!==this.selectedRadio&&i.setAttribute("tabindex","-1")}))):(this.focusedRadio=t[0],this.focusedRadio.setAttribute("tabindex","0"),t.forEach(i=>{r instanceof Ge&&i!==this.focusedRadio&&i.setAttribute("tabindex","-1")}))),!0},this.handleDisabledClick=e=>{if(this.disabled){e.preventDefault();return}return!0},this.clickHandler=e=>{if(this.disabled)return;e.preventDefault();const t=e.target;t&&t instanceof Ge&&(t.checked=!0,t.setAttribute("tabindex","0"),this.selectedRadio=t,this.focusedRadio=t)},this.shouldMoveOffGroupToTheRight=(e,t,r)=>e===t.length&&this.isInsideToolbar&&r===ao,this.shouldMoveOffGroupToTheLeft=(e,t)=>(this.focusedRadio?e.indexOf(this.focusedRadio)-1:0)<0&&this.isInsideToolbar&&t===ro,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=e=>{const t=this.slottedRadioButtons;let r=0;if(r=this.focusedRadio?t.indexOf(this.focusedRadio)+1:1,this.shouldMoveOffGroupToTheRight(r,t,e.key)){this.moveRightOffGroup();return}else r===t.length&&(r=0);for(;r<t.length&&t.length>1;)if(t[r].disabled){if(this.focusedRadio&&r===t.indexOf(this.focusedRadio))break;if(r+1>=t.length){if(this.isInsideToolbar)break;r=0}else r+=1}else{this.moveToRadioByIndex(t,r);break}},this.moveLeft=e=>{const t=this.slottedRadioButtons;let r=0;if(r=this.focusedRadio?t.indexOf(this.focusedRadio)-1:0,r=r<0?t.length-1:r,this.shouldMoveOffGroupToTheLeft(t,e.key)){this.moveLeftOffGroup();return}for(;r>=0&&t.length>1;)if(t[r].disabled){if(this.focusedRadio&&r===t.indexOf(this.focusedRadio))break;r-1<0?r=t.length-1:r-=1}else{this.moveToRadioByIndex(t,r);break}},this.keydownHandler=e=>{const t=e.key;if(t in Tg&&(this.isInsideFoundationToolbar||this.disabled))return!0;switch(t){case wt:{this.checkFocusedRadio();break}case ao:case oo:{this.direction===Se.ltr?this.moveRight(e):this.moveLeft(e);break}case ro:case no:{this.direction===Se.ltr?this.moveLeft(e):this.moveRight(e);break}default:return!0}}}nameChanged(){this.slottedRadioButtons&&this.slottedRadioButtons.forEach(e=>{e.setAttribute("name",this.name)})}valueChanged(){this.slottedRadioButtons&&this.slottedRadioButtons.forEach(e=>{e instanceof Ge&&e.value===this.value&&(e.checked=!0,this.selectedRadio=e)}),this.$emit("change")}slottedRadioButtonsChanged(e,t){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=Xa(this),this.setupRadioButtons()}disconnectedCallback(){this.slottedRadioButtons.forEach(e=>{e instanceof Ge&&e.removeEventListener("change",this.radioChangeHandler)})}setupRadioButtons(){const e=this.slottedRadioButtons.filter(a=>a.hasAttribute("checked")),t=e?e.length:0;if(t>1){const a=e[t-1];a.checked=!0}let r=!1;if(this.slottedRadioButtons.forEach(a=>{a instanceof Ge&&(this.name!==void 0&&a.setAttribute("name",this.name),this.value&&this.value===a.value?(this.selectedRadio=a,this.focusedRadio=a,a.checked=!0,a.setAttribute("tabindex","0"),r=!0):(this.isInsideFoundationToolbar||a.setAttribute("tabindex","-1"),a.checked=!1),a.addEventListener("change",this.radioChangeHandler))}),this.value===void 0&&this.slottedRadioButtons.length>0){const a=this.slottedRadioButtons.filter(i=>i.hasAttribute("checked")),n=a!==null?a.length:0;if(n>0&&!r){const i=a[n-1];i.checked=!0,this.focusedRadio=i,i.setAttribute("tabindex","0")}else this.slottedRadioButtons[0].setAttribute("tabindex","0"),this.focusedRadio=this.slottedRadioButtons[0]}}}yt([s({mode:"boolean"})],We.prototype,"stacked",2),yt([s({attribute:"readonly",mode:"boolean"})],We.prototype,"readOnly",2),yt([s({attribute:"disabled",mode:"boolean"})],We.prototype,"disabled",2),yt([s],We.prototype,"name",2),yt([s],We.prototype,"value",2),yt([s],We.prototype,"orientation",2),yt([m],We.prototype,"childItems",2),yt([m],We.prototype,"slottedRadioButtons",2);const Bp=g`
|
|
461
|
+
${A("flex")}
|
|
462
|
+
|
|
463
|
+
:host{align-items:flex-start;flex-direction:column;row-gap:${R}}:host([disabled]) ::slotted([role='radio']){--control-border-color:${k};--checked-indicator-background-color:${k};--state-color:${k}}::slotted([slot='label']){color:${E};padding:${R} ${G} ${R} ${fe};font:${I} ${F} / ${z} ${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:${G}}:host([orientation='horizontal'][stacked]) ::slotted([role='radio']){display:flex;flex-direction:column;padding-inline:${G};height:auto;align-items:center;justify-content:center}:host([disabled]) ::slotted([role='radio']){pointer-events:none}`;function Ov(){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,e)=>o.clickHandler(e.event)}" @mousedown="${(o,e)=>o.handleDisabledClick(e.event)}" @keydown="${(o,e)=>o.keydownHandler(e.event)}" @focusout="${(o,e)=>o.focusOutHandler(e.event)}"><slot name="label"></slot><div class="positioning-region ${o=>o.orientation===ns.horizontal?"horizontal":"vertical"}" part="positioning-region"><slot ${Z({property:"slottedRadioButtons",filter:to("[role=radio]")})}></slot></div></template>`}const wp=Ov(),Ev=We.compose({name:`${x.prefix}-radio-group`,template:wp,styles:Bp}),Mv={small:"small",medium:"medium"},Hv=he,Sp={singleValue:"single-value"};class _v extends S{}class Rv extends mh(_v){constructor(){super(...arguments),this.proxy=document.createElement("input")}}function Pp(o,e,t,r){let a=Wa(0,1,(o-e)/(t-e));return r===Se.rtl&&(a=1-a),a}var Vv=Object.defineProperty,jv=Object.getOwnPropertyDescriptor,oe=(o,e,t,r)=>{for(var a=r>1?void 0:r?jv(e,t):e,n=o.length-1,i;n>=0;n--)(i=o[n])&&(a=(r?i(e,t,a):i(a))||a);return r&&a&&Vv(e,t,a),a};class q extends Rv{constructor(){super(...arguments),this.direction=Se.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=he.horizontal,this.mode=Sp.singleValue,this.keypressHandler=e=>{if(!(this.readOnly||this.disabled)){if(e.key===wr)e.preventDefault(),this.direction!==Se.rtl&&this.orientation!==he.vertical?this.value=`${this.min}`:this.value=`${this.max}`;else if(e.key===Br)e.preventDefault(),this.direction!==Se.rtl&&this.orientation!==he.vertical?this.value=`${this.max}`:this.value=`${this.min}`;else if(!e.shiftKey)switch(e.key){case ao:case no:e.preventDefault(),this.increment();break;case ro:case oo:e.preventDefault(),this.decrement();break}}},this.setupTrackConstraints=()=>{const e=this.track.getBoundingClientRect();this.trackWidth=this.track.clientWidth,this.trackMinWidth=this.track.clientLeft,this.trackHeight=e.top,this.trackMinHeight=e.bottom,this.trackLeft=this.getBoundingClientRect().left,this.trackWidth===0&&(this.trackWidth=1)},this.setupListeners=(e=!1)=>{this.addEventListener("keydown",this.keypressHandler),this.addEventListener("mousedown",this.handleMouseDown),e&&(this.removeEventListener("keydown",this.keypressHandler),this.removeEventListener("mousedown",this.handleMouseDown))},this.initialValue="",this.handleThumbMouseDown=e=>{const t=e!==null?window.addEventListener:window.removeEventListener;t("mouseup",this.handleWindowMouseUp),t("mousemove",this.handleMouseMove,{passive:!0}),t("touchmove",this.handleMouseMove,{passive:!0}),t("touchend",this.handleWindowMouseUp),this.isDragging=e!==null},this.handleMouseMove=e=>{if(this.readOnly||this.disabled||e.defaultPrevented)return;const t=window.TouchEvent&&e instanceof TouchEvent?e.touches[0]:e,r=this.orientation===he.horizontal?t.pageX-document.documentElement.scrollLeft-this.trackLeft:t.pageY-document.documentElement.scrollTop;this.value=`${this.calculateNewValue(r)}`},this.handleWindowMouseUp=e=>{this.stopDragging()},this.stopDragging=()=>{this.isDragging=!1,this.handleMouseDown(null),this.handleThumbMouseDown(null)},this.handleMouseDown=e=>{if(e===null||!this.disabled&&!this.readOnly){const t=e!==null?window.addEventListener:window.removeEventListener,r=e!==null?document.addEventListener:document.removeEventListener;if(t("mouseup",this.handleWindowMouseUp),r("mouseleave",this.handleWindowMouseUp),t("mousemove",this.handleMouseMove),e){this.setupTrackConstraints();const a=this.orientation===he.horizontal?e.pageX-document.documentElement.scrollLeft-this.trackLeft:e.pageY-document.documentElement.scrollTop;this.value=`${this.calculateNewValue(a)}`}}}}handleChange(e,t){switch(t){case"min":case"max":case"step":this.handleStepStyles();break}}handleStepStyles(){if(this.step){const e=100/Math.floor((this.max-this.min)/this.step);this.stepStyles!==void 0&&this.$fastController.removeStyles(this.stepStyles),this.stepStyles=g`
|
|
464
|
+
:host{--step-rate:${e}%;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(e){this.value=e.toString()}valueChanged(e,t){if(this.$fastController.isConnected){const r=parseFloat(t),a=Wa(this.min,this.max,this.convertToConstrainedValue(r)).toString();if(a!==t){this.value=a;return}super.valueChanged(e,t),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=Xa(this),this.updateStepMultiplier(),this.setupTrackConstraints(),this.setupListeners(),this.setupDefaultValue(),this.setThumbPositionForOrientation(this.direction),C.getNotifier(this).subscribe(this,"max"),C.getNotifier(this).subscribe(this,"min"),C.getNotifier(this).subscribe(this,"step"),this.handleStepStyles()}disconnectedCallback(){super.disconnectedCallback(),this.setupListeners(!0),C.getNotifier(this).unsubscribe(this,"max"),C.getNotifier(this).unsubscribe(this,"min"),C.getNotifier(this).unsubscribe(this,"step")}increment(){const e=this.direction!==Se.rtl&&this.orientation!==he.vertical?Number(this.value)+Number(this.stepValue):Number(this.value)+Number(this.stepValue),t=this.convertToConstrainedValue(e),r=t<Number(this.max)?`${t}`:`${this.max}`;this.value=r}decrement(){const e=this.direction!==Se.rtl&&this.orientation!==he.vertical?Number(this.value)-Number(this.stepValue):Number(this.value)-Number(this.stepValue),t=this.convertToConstrainedValue(e),r=t>Number(this.min)?`${t}`:`${this.min}`;this.value=r}get stepValue(){return this.step===void 0?1:this.step}setThumbPositionForOrientation(e){const r=(1-Pp(Number(this.value),Number(this.min),Number(this.max),e))*100;this.orientation===he.horizontal?this.position=this.isDragging?`right: ${r}%; transition: none;`:`right: ${r}%; transition: all 0.2s ease;`:this.position=this.isDragging?`top: ${r}%; transition: none;`:`top: ${r}%; transition: all 0.2s ease;`}updateStepMultiplier(){const e=this.stepValue+"",t=this.stepValue%1?e.length-e.indexOf(".")-1:0;this.stepMultiplier=Math.pow(10,t)}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 e=parseFloat(this.value);!Number.isNaN(e)&&(e<this.min||e>this.max)&&(this.value=this.midpoint)}}calculateNewValue(e){this.setupTrackConstraints();const t=Pp(e,this.orientation===he.horizontal?this.trackMinWidth:this.trackMinHeight,this.orientation===he.horizontal?this.trackWidth:this.trackHeight,this.direction),r=(this.max-this.min)*t+this.min;return this.convertToConstrainedValue(r)}convertToConstrainedValue(e){isNaN(e)&&(e=this.min);let t=e-this.min;const r=Math.round(t/this.stepValue),a=t-r*(this.stepMultiplier*this.stepValue)/this.stepMultiplier;return t=a>=Number(this.stepValue)/2?t-a+Number(this.stepValue):t-a,t+this.min}}oe([s],q.prototype,"size",2),oe([s({attribute:"readonly",mode:"boolean"})],q.prototype,"readOnly",2),oe([m],q.prototype,"direction",2),oe([m],q.prototype,"isDragging",2),oe([m],q.prototype,"position",2),oe([m],q.prototype,"trackWidth",2),oe([m],q.prototype,"trackMinWidth",2),oe([m],q.prototype,"trackHeight",2),oe([m],q.prototype,"trackLeft",2),oe([m],q.prototype,"trackMinHeight",2),oe([m],q.prototype,"valueTextFormatter",2),oe([s({converter:me})],q.prototype,"min",2),oe([s({converter:me})],q.prototype,"max",2),oe([s({converter:me})],q.prototype,"step",2),oe([s],q.prototype,"orientation",2),oe([s],q.prototype,"mode",2);const Cp=g`
|
|
465
|
+
${A("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:${ge};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 ${Pe};outline:1px solid ${Mt}}.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:${uo};border-radius:${J};box-shadow:inset 0 0 0 var(--thumb-padding) ${V},0 0 0 1px ${Je}}.thumb-cursor:hover{background-color:${It}}.thumb-cursor:active{background-color:${zt}}:host([disabled]) .thumb-cursor{background-color:${k};box-shadow:inset 0 0 0 var(--thumb-padding) ${V},0 0 0 1px ${Me}}.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:${Ae};border-radius:${B};overflow:hidden}:host([step]) .track::after{content:'';position:absolute;border-radius:${B};width:100%;inset:0 2px;background-image:repeating-linear-gradient(
|
|
466
|
+
var(--slider-direction),#0000 0%,#0000 calc(var(--step-rate) - 1px),${V} calc(var(--step-rate) - 1px),${V} var(--step-rate)
|
|
467
|
+
)}:host([orientation='vertical'][step]) .track::after{inset:-2px 0}:host([disabled]) .track{background-color:${At}}: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:${ut};position:absolute;height:100%;left:0;border-radius:${B}}:host([disabled]) .track-start{background-color:${k}}:host(:hover) .track-start{background-color:${It}}:host([disabled]:hover) .track-start{background-color:${k}}.track-start:active{background-color:${zt}}:host([orientation='vertical']) .track-start{height:auto;width:100%;bottom:0}`.withBehaviors(Te(g`
|
|
468
|
+
.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 Gv(o={}){return v`<template role="slider" tabindex="${e=>e.disabled?null:0}" aria-valuetext="${e=>e.valueTextFormatter(e.value)}" aria-valuenow="${e=>e.value}" aria-valuemin="${e=>e.min}" aria-valuemax="${e=>e.max}" aria-disabled="${e=>e.disabled?!0:void 0}" aria-readonly="${e=>e.readOnly?!0:void 0}" aria-orientation="${e=>e.orientation}" class="${e=>e.orientation}"><div part="positioning-region" class="positioning-region"><div ${we("track")} part="track-container" class="track"><slot name="track"></slot><div part="track-start" class="track-start" style="${e=>e.position}"><slot name="track-start"></slot></div></div><slot></slot><div ${we("thumb")} part="thumb-container" class="thumb-container" style="${e=>e.position}" @mousedown="${(e,t)=>e.handleThumbMouseDown(t.event)}" @touchstart="${(e,t)=>e.handleThumbMouseDown(t.event)}"><slot name="thumb">${ae(o.thumb)}</slot></div></div></template>`}const Fp=Gv({thumb:'<div class="thumb-cursor" tabindex="0"></div>'}),Wv=q.compose({name:`${x.prefix}-slider`,template:Fp,styles:Cp});var qv=Object.defineProperty,Xv=Object.getOwnPropertyDescriptor,Tp=(o,e,t,r)=>{for(var a=r>1?void 0:r?Xv(e,t):e,n=o.length-1,i;n>=0;n--)(i=o[n])&&(a=(r?i(e,t,a):i(a))||a);return r&&a&&qv(e,t,a),a};class Ba extends S{constructor(){super(),this.elementInternals=this.attachInternals(),this.elementInternals.role="progressbar"}}Tp([s],Ba.prototype,"size",2),Tp([s],Ba.prototype,"appearance",2);const Uv={primary:"primary",inverted:"inverted"},Kv={tiny:"tiny",extraSmall:"extra-small",small:"small",medium:"medium",large:"large",extraLarge:"extra-large",huge:"huge"},Ap=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>`,Ip=g`
|
|
469
|
+
${A("flex")}
|
|
470
|
+
|
|
471
|
+
: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:${Dr};stroke-width:1.5px}:host([appearance='inverted']) .background{stroke:rgba(255,255,255,0.2)}.indicator{stroke:${Lr};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:${hn}}@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)}}`,Yv=Ba.compose({name:`${x.prefix}-spinner`,template:Ap,styles:Ip});class Qv extends S{}class Zv extends Ki(Qv){constructor(){super(...arguments),this.proxy=document.createElement("input")}}var Jv=Object.defineProperty,em=Object.getOwnPropertyDescriptor,is=(o,e,t,r)=>{for(var a=r>1?void 0:r?em(e,t):e,n=o.length-1,i;n>=0;n--)(i=o[n])&&(a=(r?i(e,t,a):i(a))||a);return r&&a&&Jv(e,t,a),a};class sr extends Zv{constructor(){super(),this.initialValue="on",this.keypressHandler=e=>{if(!this.readOnly)switch(e.key){case wt:case io:this.checked=!this.checked;break}},this.clickHandler=e=>{!this.disabled&&!this.readOnly&&(this.checked=!this.checked)},this.proxy.setAttribute("type","checkbox")}readOnlyChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.readOnly=this.readOnly)}}is([s({attribute:"label-position"})],sr.prototype,"labelPosition",2),is([s({attribute:"readonly",mode:"boolean"})],sr.prototype,"readOnly",2),is([m],sr.prototype,"defaultSlottedNodes",2);const tm={above:"above",after:"after",before:"before"};function om(o={}){return v`<template role="switch" aria-checked="${e=>e.checked}" aria-disabled="${e=>e.disabled}" aria-readonly="${e=>e.readOnly}" tabindex="${e=>e.disabled?null:0}" @keypress="${(e,t)=>e.keypressHandler(t.event)}" @click="${(e,t)=>e.clickHandler(t.event)}"><label part="label" class="${e=>e.defaultSlottedNodes&&e.defaultSlottedNodes.length?"label":"label label__hidden"}"><slot ${Z("defaultSlottedNodes")}></slot></label><div part="switch" class="switch"><slot name="switch">${ae(o.switch)}</slot></div></template>`}const zp=om({switch:'<span class="checked-indicator" part="checked-indicator"></span>'}),Np=g`
|
|
472
|
+
${A("inline-flex")}
|
|
473
|
+
|
|
474
|
+
:host{align-items:center;flex-direction:row-reverse;outline:none;user-select:none;contain:content}:host([label-position='before']){flex-direction:row}:host([label-position='above']){flex-direction:column;align-items:flex-start}:host([disabled]) .label,:host([readonly]) .label,:host([readonly]) .switch,:host([disabled]) .switch{cursor:not-allowed}.label{position:relative;color:${E};line-height:${z};font-size:${F};font-weight:${I};font-family:${y};padding:${oa} ${fe};cursor:pointer}.label__hidden{display:none}.switch{display:flex;align-items:center;padding:0 ${tt};box-sizing:border-box;width:40px;height:20px;background-color:${U};border:1px solid ${Ae};border-radius:${J};outline:none;cursor:pointer;margin:${R} ${G}}:host(:hover) .switch{background:none;border-color:${Lt}}:host(:active) .switch{border-color:${Dt}}:host([disabled]) .switch,:host([readonly]) .switch{border:1px solid ${Me};background-color:none;pointer:default}:host([aria-checked='true']) .switch{background:${ut}}:host([aria-checked='true']:hover) .switch{background:${It};border-color:${It}}:host([aria-checked='true']:active) .switch{background:${zt};border-color:${zt}}:host([aria-checked='true'][disabled]) .switch{background:${At};border-color:${Me}}.checked-indicator{height:14px;width:14px;border-radius:50%;margin-inline-start:0;background-color:${X};transition-duration:${na};transition-timing-function:${$o};transition-property:margin-inline-start}:host([aria-checked='true']) .checked-indicator{background-color:${so};margin-inline-start:calc(100% - 14px)}:host([aria-checked='true']:hover) .checked-indicator{background:${Ja}}:host([aria-checked='true']:active) .checked-indicator{background:${en}}:host(:hover) .checked-indicator{background-color:${Ya}}:host(:active) .checked-indicator{background-color:${Qa}}:host([disabled]) .checked-indicator,:host([readonly]) .checked-indicator{background:${k}}:host([aria-checked='true'][disabled]) .checked-indicator{background:${k}}:host(:focus-visible){border-color:${ye};outline:${ht} solid ${ye};box-shadow:${_t},0 0 0 2px ${Pe}}`.withBehaviors(Te(g`
|
|
475
|
+
.switch{border-color:InactiveBorder}:host([aria-checked='true']) .switch,:host([aria-checked='true']:active) .switch,:host([aria-checked='true']:hover) .switch{background:Highlight;border-color:Highlight}.checked-indicator,:host(:hover) .checked-indicator,:host(:active) .checked-indicator{background-color:ActiveCaption}:host([aria-checked='true']) .checked-indicator,:host([aria-checked='true']:hover) .checked-indicator,:host([aria-checked='true']:active) .checked-indicator{background-color:ButtonFace}`)),rm=sr.compose({name:`${x.prefix}-switch`,template:zp,styles:Np});var am=Object.defineProperty,nm=Object.getOwnPropertyDescriptor,im=(o,e,t,r)=>{for(var a=r>1?void 0:r?nm(e,t):e,n=o.length-1,i;n>=0;n--)(i=o[n])&&(a=(r?i(e,t,a):i(a))||a);return r&&a&&am(e,t,a),a};class wa extends S{connectedCallback(){super.connectedCallback(),this.styles!==void 0&&this.$fastController.removeStyles(this.styles),this.styles=g`
|
|
476
|
+
:host{--textContent:'${this.textContent}'}`,this.$fastController.addStyles(this.styles)}}im([s({mode:"boolean"})],wa.prototype,"disabled",2),Ee(wa,Ye);function sm(o={}){return v`<template slot="tab" role="tab" aria-disabled="${e=>e.disabled}">${Ze(o)}<span class="tab-content"><slot></slot></span>${Qe(o)}</template>`}const Lp=sm({}),Dp=g`
|
|
477
|
+
${A("inline-flex")}
|
|
478
|
+
|
|
479
|
+
:host{position:relative;flex-direction:column;cursor:pointer;box-sizing:border-box;justify-content:center;line-height:${z};font-family:${y};font-size:${F};color:${ie};fill:currentcolor;grid-row:1;padding:${ot} ${Ie};border-radius:${B}}:host .tab-content{display:inline-flex;flex-direction:column;padding:0 2px}:host([aria-selected='true']){color:${E};font-weight:${D}}:host .tab-content::after{content:var(--textContent);visibility:hidden;height:0;line-height:${z};font-weight:${D}}:host([aria-selected='true'])::after{background-color:${Mo};border-radius:${J};content:'';inset:0;position:absolute;z-index:2}:host([aria-selected='false']:hover)::after{background-color:${Ot};border-radius:${J};content:'';inset:0;position:absolute;z-index:1}:host([aria-selected='true'][disabled])::after{background-color:${k}}::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:${k};color:${k}}:host([disabled]:hover)::after{background-color:unset}:host(:focus){outline:none}:host(:focus-visible){border-radius:${ge};box-shadow:0 0 0 3px ${Pe};outline:1px solid ${Mt}}`.withBehaviors(Te(g`
|
|
480
|
+
:host([aria-selected='true'])::after{background-color:Highlight}`)),lm=wa.compose({name:`${x.prefix}-tab`,template:Lp,styles:Dp});class Op extends S{}function cm(){return v`<template slot="tabpanel" role="tabpanel"><slot></slot></template>`}const Ep=cm(),Mp=g`
|
|
481
|
+
${A("block")}
|
|
482
|
+
|
|
483
|
+
:host{box-sizing:border-box;padding:${ot} ${Ie}}`,dm=Op.compose({name:`${x.prefix}-tab-panel`,template:Ep,styles:Mp}),Hp={subtle:"subtle",transparent:"transparent"},um={small:"small",medium:"medium",large:"large"},lr=he;var hm=Object.defineProperty,pm=Object.getOwnPropertyDescriptor,Qt=(o,e,t,r)=>{for(var a=r>1?void 0:r?pm(e,t):e,n=o.length-1,i;n>=0;n--)(i=o[n])&&(a=(r?i(e,t,a):i(a))||a);return r&&a&&hm(e,t,a),a};class cr extends S{constructor(){super(...arguments),this.orientation=lr.horizontal,this.prevActiveTabIndex=0,this.activeTabIndex=0,this.change=()=>{this.$emit("change",this.activetab)},this.isDisabledElement=e=>e.getAttribute("aria-disabled")==="true",this.isHiddenElement=e=>e.hasAttribute("hidden"),this.isFocusableElement=e=>!this.isDisabledElement(e)&&!this.isHiddenElement(e),this.handleTabClick=e=>{const t=e.currentTarget;t.nodeType===1&&this.isFocusableElement(t)&&(this.prevActiveTabIndex=this.activeTabIndex,this.activeTabIndex=this.tabs.indexOf(t),this.setComponent())},this.handleTabKeyDown=e=>{if(this.isHorizontal())switch(e.key){case ro:e.preventDefault(),this.adjustBackward(e);break;case ao:e.preventDefault(),this.adjustForward(e);break}else switch(e.key){case no:e.preventDefault(),this.adjustBackward(e);break;case oo:e.preventDefault(),this.adjustForward(e);break}switch(e.key){case wr:e.preventDefault(),this.adjust(-this.activeTabIndex);break;case Br:e.preventDefault(),this.adjust(this.tabs.length-this.activeTabIndex-1);break}}}orientationChanged(){this.$fastController.isConnected&&this.setTabs()}activeidChanged(e,t){this.$fastController.isConnected&&this.tabs.length<=this.tabpanels.length&&(this.prevActiveTabIndex=this.tabs.findIndex(r=>r.id===e),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 e="gridColumn",t="gridRow",r=this.isHorizontal()?e:t;this.activeTabIndex=this.getActiveIndex(),this.tabs.forEach((a,n)=>{if(a.slot==="tab"){const i=this.activeTabIndex===n&&this.isFocusableElement(a),c=this.tabIds[n],u=this.tabpanelIds[n];a.setAttribute("id",c),a.setAttribute("aria-selected",i?"true":"false"),a.setAttribute("aria-controls",u),a.addEventListener("click",this.handleTabClick),a.addEventListener("keydown",this.handleTabKeyDown),a.setAttribute("tabindex",i?"0":"-1"),i&&(this.activetab=a,this.activeid=c)}a.style[e]="",a.style[t]="",a.style[r]=`${n+1}`,this.isHorizontal()?a.classList.remove("vertical"):a.classList.add("vertical")}),this.setTabPanels()}setTabPanels(){this.tabpanels.forEach((e,t)=>{const r=this.tabIds[t],a=this.tabpanelIds[t];e.setAttribute("id",a),e.setAttribute("aria-labelledby",r),this.activeTabIndex!==t?e.setAttribute("hidden",""):e.removeAttribute("hidden")})}getTabIds(){return this.tabs.map(e=>e.getAttribute("id")??`tab-${qa()}`)}getTabPanelIds(){return this.tabpanels.map(e=>e.getAttribute("id")??`panel-${qa()}`)}setComponent(){this.activeTabIndex!==this.prevActiveTabIndex&&(this.activeid=this.tabIds[this.activeTabIndex],this.focusTab(),this.change())}isHorizontal(){return this.orientation===lr.horizontal}adjust(e){const t=this.tabs.filter(i=>this.isFocusableElement(i)),r=t.indexOf(this.activetab),a=Wa(0,t.length-1,r+e),n=this.tabs.indexOf(t[a]);n>-1&&this.moveToTabByIndex(this.tabs,n)}adjustForward(e){const t=this.tabs;let r=0;for(r=this.activetab?t.indexOf(this.activetab)+1:1,r===t.length&&(r=0);r<t.length&&t.length>1;)if(this.isFocusableElement(t[r])){this.moveToTabByIndex(t,r);break}else{if(this.activetab&&r===t.indexOf(this.activetab))break;r+1>=t.length?r=0:r+=1}}adjustBackward(e){const t=this.tabs;let r=0;for(r=this.activetab?t.indexOf(this.activetab)-1:0,r=r<0?t.length-1:r;r>=0&&t.length>1;)if(this.isFocusableElement(t[r])){this.moveToTabByIndex(t,r);break}else r-1<0?r=t.length-1:r-=1}moveToTabByIndex(e,t){const r=e[t];this.activetab=r,this.prevActiveTabIndex=this.activeTabIndex,this.activeTabIndex=t,r.focus(),this.setComponent()}focusTab(){this.tabs[this.activeTabIndex].focus()}connectedCallback(){super.connectedCallback(),this.tabIds=this.getTabIds(),this.tabpanelIds=this.getTabPanelIds(),this.activeTabIndex=this.getActiveIndex()}}Qt([s],cr.prototype,"orientation",2),Qt([s],cr.prototype,"activeid",2),Qt([m],cr.prototype,"tabs",2),Qt([m],cr.prototype,"tabpanels",2);class wo extends cr{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=Hp.transparent}calculateAnimationProperties(e){this.activeTabOffset=this.getTabPosition(e),this.activeTabScale=this.getTabScale(e)}getTabPosition(e){return this.orientation===lr.horizontal?this.previousActiveTabData.x-(e.getBoundingClientRect().x-this.getBoundingClientRect().x):this.previousActiveTabData.y-(e.getBoundingClientRect().y-this.getBoundingClientRect().y)}getTabScale(e){return this.orientation===lr.horizontal?this.previousActiveTabData.width/e.getBoundingClientRect().width:this.previousActiveTabData.height/e.getBoundingClientRect().height}applyUpdatedCSSValues(e){this.calculateAnimationProperties(e),this.setTabScaleCSSVar(),this.setTabOffsetCSSVar()}animationLoop(e){e.setAttribute("data-animate","false"),this.applyUpdatedCSSValues(e),this.previousActiveTabData=this.activeTabData,this.applyUpdatedCSSValues(e),e.setAttribute("data-animate","true")}setTabData(){if(this.tabs&&this.tabs.length>0){const e=this.tabs,r=(this.activetab||e[0])?.getBoundingClientRect(),a=this.getBoundingClientRect();this.activeTabData={x:r.x-a.x,y:r.y-a.y,height:r.height,width:r.width},this.previousActiveTabData?.x!==this.activeTabData?.x&&this.previousActiveTabData?.y!==this.activeTabData?.y&&(this.previousActiveTabData=this.activeTabData)}}setTabOffsetCSSVar(){this.styles=g`
|
|
484
|
+
:host{--tabIndicatorOffset:${this.activeTabOffset.toString()}px}`,this.$fastController.addStyles(this.styles)}setTabScaleCSSVar(){this.styles=g`
|
|
485
|
+
:host{--tabIndicatorScale:${this.activeTabScale.toString()}}`,this.$fastController.addStyles(this.styles)}activeidChanged(e,t){super.activeidChanged(e,t),this.setTabData(),this.activetab&&this.animationLoop(this.activetab)}tabsChanged(){super.tabsChanged(),this.setTabData()}}Qt([s],wo.prototype,"appearance",2),Qt([s({mode:"boolean"})],wo.prototype,"disabled",2),Qt([s],wo.prototype,"size",2),Ee(wo,Ye);function gm(o={}){return v` ${Ze(o)}<div class="tablist" part="tablist" role="tablist"><slot name="tab" ${Z("tabs")}></slot></div>${Qe(o)}<div class="tabpanel" part="tabpanel"><slot name="tabpanel" ${Z("tabpanels")}></slot></div>`}const _p=gm({}),Rp=g`
|
|
486
|
+
${A("grid")}
|
|
487
|
+
|
|
488
|
+
:host{box-sizing:border-box;font-family:${y};font-size:${F};line-height:${z};color:${ie};grid-template-columns:auto 1fr auto;grid-template-rows:auto 1fr}:host([disabled]){cursor:not-allowed;color:${k}}:host([disabled]) ::slotted(fluent-tab){pointer-events:none;cursor:not-allowed;color:${k}}:host([disabled]) ::slotted(fluent-tab:after){background-color:${k}}:host([disabled]) ::slotted(fluent-tab[aria-selected='true'])::after{background-color:${k}}:host([disabled]) ::slotted(fluent-tab:hover):before{content:unset}:host ::slotted(fluent-tab){border-radius:${B}}:host ::slotted(fluent-tab[aria-selected='true'])::before{background-color:${k}}.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:${co};color:${Ao};fill:${zo}}:host([appearance='subtle']) ::slotted(fluent-tab:active){background-color:${Ft};fill:${Ft};color:${E}}:host([size='small']) ::slotted(fluent-tab){font-size:${F};line-height:${z};padding:${Rt} ${_e}}:host([size='large']) ::slotted(fluent-tab){font-size:${se};line-height:${$e};padding:${Mi} ${Ie}}:host ::slotted(fluent-tab[data-animate='true'])::after{transition-property:transform;transition-duration:${_i};transition-timing-function:${la}}:host ::slotted(fluent-tab)::after{height:${He};margin-top:auto;transform-origin:left;transform:translateX(var(--tabIndicatorOffset)) scaleX(var(--tabIndicatorScale))}:host([orientation='vertical']) ::slotted(fluent-tab)::after{width:${He};height:unset;margin-top:unset;transform-origin:top;transform:translateY(var(--tabIndicatorOffset)) scaleY(var(--tabIndicatorScale))}:host ::slotted(fluent-tab)::before{height:${He};border-radius:${J};content:'';inset:0;position:absolute;margin-top:auto}:host([orientation='vertical']) ::slotted(fluent-tab)::before{height:unset;width:${He};margin-inline-end:auto;transform-origin:top}:host ::slotted(fluent-tab[aria-selected='false']:hover)::after{height:${He};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:${He}}:host([orientation='vertical']) ::slotted(fluent-tab){align-items:flex-start;grid-column:2;padding-top:${Rt};padding-bottom:${Rt}}:host([orientation='vertical'][size='small']) ::slotted(fluent-tab){padding-top:${ta};padding-bottom:${ta}}:host([orientation='vertical'][size='large']) ::slotted(fluent-tab){padding-top:${R};padding-bottom:${R}}:host([size='small']) ::slotted(fluent-tab)::after,:host([size='small']) ::slotted(fluent-tab)::before,:host([size='small']) ::slotted(fluent-tab:hover)::after{right:${_e};left:${_e}}:host ::slotted(fluent-tab)::after,:host ::slotted(fluent-tab)::before,:host ::slotted(fluent-tab:hover)::after{right:${Ie};left:${Ie}}:host([size='large']) ::slotted(fluent-tab)::after,:host([size='large']) ::slotted(fluent-tab)::before,:host([size='large']) ::slotted(fluent-tab:hover)::after{right:${Ie};left:${Ie}}: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:${Rt};bottom:${Rt}}: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:${R};bottom:${R}}: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:${ra};bottom:${ra}}`,fm=wo.compose({name:`${x.prefix}-tabs`,template:_p,styles:Rp});var bm=Object.defineProperty,vm=Object.getOwnPropertyDescriptor,qe=(o,e,t,r)=>{for(var a=r>1?void 0:r?vm(e,t):e,n=o.length-1,i;n>=0;n--)(i=o[n])&&(a=(r?i(e,t,a):i(a))||a);return r&&a&&bm(e,t,a),a};class Fe extends S{constructor(){super(...arguments),this.nowrap=!1,this.truncate=!1,this.italic=!1,this.underline=!1,this.strikethrough=!1,this.block=!1}}qe([s({mode:"boolean"})],Fe.prototype,"nowrap",2),qe([s({mode:"boolean"})],Fe.prototype,"truncate",2),qe([s({mode:"boolean"})],Fe.prototype,"italic",2),qe([s({mode:"boolean"})],Fe.prototype,"underline",2),qe([s({mode:"boolean"})],Fe.prototype,"strikethrough",2),qe([s({mode:"boolean"})],Fe.prototype,"block",2),qe([s],Fe.prototype,"size",2),qe([s],Fe.prototype,"font",2),qe([s],Fe.prototype,"weight",2),qe([s],Fe.prototype,"align",2);const mm={_100:"100",_200:"200",_300:"300",_400:"400",_500:"500",_600:"600",_700:"700",_800:"800",_900:"900",_1000:"1000"},ym={base:"base",numeric:"numeric",monospace:"monospace"},$m={medium:"medium",regular:"regular",semibold:"semibold",bold:"bold"},km={start:"start",end:"end",center:"center",justify:"justify"},Vp=v`<slot></slot>`,jp=g`
|
|
489
|
+
${A("inline")}
|
|
490
|
+
|
|
491
|
+
:host{contain:content}::slotted(*){font-family:${y};font-size:${F};line-height:${z};font-weight:${I};text-align:start;white-space:normal;overflow:visible;text-overflow:clip;margin:0;display:inline}:host([nowrap]) ::slotted(*){white-space:nowrap;overflow:hidden}:host([truncate]) ::slotted(*){text-overflow:ellipsis}:host([block]),:host([block]) ::slotted(*){display:block}:host([italic]) ::slotted(*){font-style:italic}:host([underline]) ::slotted(*){text-decoration-line:underline}:host([strikethrough]) ::slotted(*){text-decoration-line:line-through}:host([underline][strikethrough]) ::slotted(*){text-decoration-line:line-through underline}:host([size='100']) ::slotted(*){font-size:${Ht};line-height:${bo}}:host([size='200']) ::slotted(*){font-size:${j};line-height:${le}}:host([size='400']) ::slotted(*){font-size:${se};line-height:${$e}}:host([size='500']) ::slotted(*){font-size:${et};line-height:${vo}}:host([size='600']) ::slotted(*){font-size:${go};line-height:${Xr}}:host([size='700']) ::slotted(*){font-size:${jr};line-height:${Ur}}:host([size='800']) ::slotted(*){font-size:${Gr};line-height:${Kr}}:host([size='900']) ::slotted(*){font-size:${Wr};line-height:${Yr}}:host([size='1000']) ::slotted(*){font-size:${qr};line-height:${Qr}}:host([font='monospace']) ::slotted(*){font-family:${Ii}}:host([font='numeric']) ::slotted(*){font-family:${zi}}:host([weight='medium']) ::slotted(*){font-weight:${Ni}}:host([weight='semibold']) ::slotted(*){font-weight:${D}}:host([weight='bold']) ::slotted(*){font-weight:${fo}}:host([align='center']) ::slotted(*){text-align:center}:host([align='end']) ::slotted(*){text-align:end}:host([align='justify']) ::slotted(*){text-align:justify}`,xm=Fe.compose({name:`${x.prefix}-text`,template:Vp,styles:jp}),Bm={small:"small",medium:"medium",large:"large"},wm={outline:"outline",underline:"underline",filledLighter:"filled-lighter",filledDarker:"filled-darker"},Gp={email:"email",password:"password",tel:"tel",text:"text",url:"url"},Sm=["date","datetime-local","email","month","number","password","search","tel","text","time","url","week"];var Pm=Object.defineProperty,Cm=Object.getOwnPropertyDescriptor,O=(o,e,t,r)=>{for(var a=r>1?void 0:r?Cm(e,t):e,n=o.length-1,i;n>=0;n--)(i=o[n])&&(a=(r?i(e,t,a):i(a))||a);return r&&a&&Pm(e,t,a),a};class P extends S{constructor(){super(...arguments),this.type=Gp.text,this._value=this.initialValue,this.dirtyValue=!1,this.elementInternals=this.attachInternals()}defaultSlottedNodesChanged(e,t){this.$fastController.isConnected&&(this.controlLabel.hidden=!t?.length)}initialValueChanged(){this.dirtyValue||(this.value=this.initialValue)}readonlyChanged(){this.$fastController.isConnected&&(this.elementInternals.ariaReadOnly=`${!!this.readonly}`)}requiredChanged(e,t){this.$fastController.isConnected&&(this.elementInternals.ariaRequired=`${!!t}`)}get validity(){return this.elementInternals.validity}get validationMessage(){return this.elementInternals.validationMessage}get value(){return C.track(this,"value"),this._value}set value(e){this._value=e,this.$fastController.isConnected&&(this.control.value=e,this.setFormValue(e),this.setValidity(),C.notify(this,"value"))}get willValidate(){return this.elementInternals.willValidate}get form(){return this.elementInternals.form}changeHandler(e){e.preventDefault(),this.setValidity(),this.$emit("change",e,{bubbles:!0,cancelable:!1,composed:!1})}connectedCallback(){super.connectedCallback(),this.addEventListener("keypress",this.keypressHandler),this.setFormValue(this.value),this.setValidity()}disconnectedCallback(){this.removeEventListener("keypress",this.keypressHandler),super.disconnectedCallback()}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 e=[...this.elementInternals.form.elements],t=e.find(a=>a.getAttribute("type")==="submit");if(t){t.click();return}e.filter(a=>Sm.includes(a.getAttribute("type")??"")).length>1||this.elementInternals.form.requestSubmit()}inputHandler(e){return this.dirtyValue=!0,this.value=this.control.value,!0}keypressHandler(e){return e.key===wt&&this.implicitSubmit(),!0}select(){this.control.select(),this.$emit("select")}setFormValue(e,t){this.elementInternals.setFormValue(e,e??t)}setValidity(e=this.control.validity,t=this.control.validationMessage,r=this.control){if(this.disabled){this.elementInternals.setValidity({});return}this.elementInternals.setValidity(e,t??"",r)}}P.formAssociated=!0,O([s],P.prototype,"appearance",2),O([s],P.prototype,"autocomplete",2),O([s({mode:"boolean"})],P.prototype,"autofocus",2),O([s({attribute:"control-size"})],P.prototype,"controlSize",2),O([m],P.prototype,"defaultSlottedNodes",2),O([s],P.prototype,"dirname",2),O([s({mode:"boolean"})],P.prototype,"disabled",2),O([s({attribute:"form"})],P.prototype,"formAttribute",2),O([s({attribute:"value",mode:"fromView"})],P.prototype,"initialValue",2),O([s],P.prototype,"list",2),O([s({converter:me})],P.prototype,"maxlength",2),O([s({converter:me})],P.prototype,"minlength",2),O([s({mode:"boolean"})],P.prototype,"multiple",2),O([s],P.prototype,"name",2),O([s],P.prototype,"pattern",2),O([s],P.prototype,"placeholder",2),O([s({attribute:"readonly",mode:"boolean"})],P.prototype,"readonly",2),O([s({mode:"boolean"})],P.prototype,"required",2),O([s({converter:me})],P.prototype,"size",2),O([s({converter:{fromView:o=>typeof o=="string"?["true",""].includes(o.trim().toLowerCase()):null,toView:o=>o.toString()}})],P.prototype,"spellcheck",2),O([s],P.prototype,"type",2),O([m],P.prototype,"controlLabel",2),Ee(P,Ye);const Wp=g`
|
|
492
|
+
${A("block")}
|
|
493
|
+
|
|
494
|
+
:host{font-family:${y};font-size:${F};font-weight:${I};line-height:${z};max-width:400px}.label{display:flex;color:${E};padding-bottom:${oa};flex-shrink:0;padding-inline-end:${fe}}.label[hidden],:host(:empty) .label{display:none}.root{position:relative;box-sizing:border-box;height:32px;display:inline-flex;align-items:center;flex-direction:row;width:100%;padding:0 ${Ie};border:${K} solid ${Je};border-bottom-color:${Ae};border-radius:${B};gap:${tt}}.root::after{box-sizing:border-box;content:'';position:absolute;left:-1px;bottom:0px;right:-1px;height:max(2px,${B});border-radius:0 0 ${B} ${B};border-bottom:2px solid ${Mo};clip-path:inset(calc(100% - 2px) 1px 0px);transform:scaleX(0);transition-property:transform;transition-duration:${Hi};transition-delay:${sa}}.control{width:100%;height:100%;box-sizing:border-box;color:${E};border-radius:${B};background:${U};font-family:${y};font-weight:${I};font-size:${F};border:none;background:transparent;vertical-align:center}.control:focus-visible{outline:0;border:0}.control::placeholder{color:${Za}}:host ::slotted([slot='start']),:host ::slotted([slot='end']){display:flex;align-items:center;justify-content:center;color:${X};font-size:${et}}:host ::slotted([slot='start']){padding-right:${tt}}:host ::slotted([slot='end']){padding-left:${tt};gap:${fe}}:host(:hover) .root{border-color:${Ot};border-bottom-color:${Lt}}:host(:active) .root{border-color:${ho}}:host(:focus-within) .root{outline:transparent solid 2px;border-bottom:0}:host(:focus-within) .root::after{transform:scaleX(1);transition-property:transform;transition-duration:${na};transition-delay:${ca}}:host(:focus-within:active) .root:after{border-bottom-color:${Ho}}:host([appearance='outline']:focus-within) .root{border:${K} solid ${Je}}:host(:focus-within) .control{color:${E}}:host([disabled]) .root{background:${U};border:${K} solid ${Me}}:host([disabled]) .control::placeholder,:host([disabled]) ::slotted([slot='start']),:host([disabled]) ::slotted([slot='end']){color:${k}}::selection{color:${so};background-color:${nn}}:host([control-size='small']) .control{font-size:${j};font-weight:${I};line-height:${le}}:host([control-size='small']) .root{height:24px;gap:${tt};padding:0 ${_e}}:host([control-size='small']) ::slotted([slot='start']),:host([control-size='small']) ::slotted([slot='end']){font-size:${se}}:host([control-size='large']) .control{font-size:${se};font-weight:${I};line-height:${$e}}:host([control-size='large']) .root{height:40px;gap:${G};padding:0 ${ot}}:host([control-size='large']) ::slotted([slot='start']),:host([control-size='large']) ::slotted([slot='end']){font-size:${go}}:host([appearance='underline']) .root{background:${U};border:0;border-radius:0;border-bottom:${K} solid ${Ae}}:host([appearance='underline']:hover) .root{border-bottom-color:${Lt}}:host([appearance='underline']:active) .root{border-bottom-color:${Dt}}:host([appearance='underline']:focus-within) .root{border:0;border-bottom-color:${Dt}}:host([appearance='underline'][disabled]) .root{border-bottom-color:${Me}}:host([appearance='filled-lighter']) .root,:host([appearance='filled-darker']) .root{border:${K} solid ${ye};box-shadow:${Xo}}:host([appearance='filled-lighter']) .root{background:${V}}:host([appearance='filled-darker']) .root{background:${Ar}}:host([appearance='filled-lighter']:hover) .root,:host([appearance='filled-darker']:hover) .root{border-color:${Or}}:host([appearance='filled-lighter']:active) .root,:host([appearance='filled-darker']:active) .root{border-color:${Or};background:${Ar}}`;function Fm(o={}){return v`<label part="label" for="control" class="label" ${we("controlLabel")}><slot ${Z({property:"defaultSlottedNodes",filter:tl})}></slot></label><div class="root" part="root">${Ze(o)}<input class="control" part="control" id="control" @change="${(e,t)=>e.changeHandler(t.event)}" @input="${(e,t)=>e.inputHandler(t.event)}" ?autofocus="${e=>e.autofocus}" autocomplete="${e=>e.autocomplete}" ?disabled="${e=>e.disabled}" list="${e=>e.list}" maxlength="${e=>e.maxlength}" minlength="${e=>e.minlength}" ?multiple="${e=>e.multiple}" name="${e=>e.name}" pattern="${e=>e.pattern}" placeholder="${e=>e.placeholder}" ?readonly="${e=>e.readonly}" ?required="${e=>e.required}" size="${e=>e.size}" spellcheck="${e=>e.spellcheck}" type="${e=>e.type}" value="${e=>e.initialValue}" ${we("control")} />${Qe(o)}</div>`}const qp=Fm(),Tm=P.compose({name:`${x.prefix}-text-input`,template:qp,styles:Wp});var Am=Object.defineProperty,Im=Object.getOwnPropertyDescriptor,Xp=(o,e,t,r)=>{for(var a=r>1?void 0:r?Im(e,t):e,n=o.length-1,i;n>=0;n--)(i=o[n])&&(a=(r?i(e,t,a):i(a))||a);return r&&a&&Am(e,t,a),a};class Sa extends N{pressedChanged(){this.setPressedState()}mixedChanged(){this.setPressedState()}press(){this.pressed=!this.pressed}connectedCallback(){super.connectedCallback(),this.setPressedState()}setPressedState(){if(this.$fastController.isConnected){const e=`${this.mixed?"mixed":!!this.pressed}`;this.elementInternals.ariaPressed=e,this.setAttribute("aria-pressed",e)}}}Xp([s({mode:"boolean"})],Sa.prototype,"pressed",2),Xp([s({mode:"boolean"})],Sa.prototype,"mixed",2);const zm=Uo,Nm=Ko,Lm=Yo,Up=Ui(),Kp=g`
|
|
495
|
+
${ko}
|
|
496
|
+
|
|
497
|
+
:host([aria-pressed='true']){border-color:${Je};background-color:${Tr};color:${E};border-width:${K}}:host([aria-pressed='true']:hover){border-color:${Ot};background-color:${lo}}:host([aria-pressed='true']:active){border-color:${ho};background-color:${Do}}:host([aria-pressed='true'][appearance='primary']){border-color:transparent;background-color:${dn};color:${pe}}:host([aria-pressed='true'][appearance='primary']:hover){background-color:${Oo}}:host([aria-pressed='true'][appearance='primary']:active){background-color:${Eo}}:host([aria-pressed='true'][appearance='subtle']){border-color:transparent;background-color:${sn};color:${Ua}}:host([aria-pressed='true'][appearance='subtle']:hover){background-color:${co};color:${Pt}}:host([aria-pressed='true'][appearance='subtle']:active){background-color:${Ft};color:${Ct}}:host([aria-pressed='true'][appearance='outline']),:host([aria-pressed='true'][appearance='transparent']){background-color:${ln}}:host([aria-pressed='true'][appearance='outline']:hover),:host([aria-pressed='true'][appearance='transparent']:hover){background-color:${dt}}:host([aria-pressed='true'][appearance='outline']:active),:host([aria-pressed='true'][appearance='transparent']:active){background-color:${Tt}}:host([aria-pressed='true'][appearance='transparent']){border-color:transparent;color:${Ka}}:host([aria-pressed='true'][appearance='transparent']:hover){color:${lt}}:host([aria-pressed='true'][appearance='transparent']:active){color:${ct}}`.withBehaviors(Te(g`
|
|
498
|
+
: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}`)),Dm=Sa.compose({name:`${x.prefix}-toggle-button`,template:Up,styles:Kp}),Yp=Object.keys(qg),Om=o=>{for(const e of Yp)document.body.style.setProperty(`--${e}`,o[e])},Em=(o,e)=>{for(const t of Yp)o.style.setProperty(`--${t}`,e[t])};export{Pr as Accordion,Sr as AccordionExpandMode,ne as AccordionItem,Wg as AccordionItemExpandIconPosition,Gg as AccordionItemSize,W as AnchorButton,Jg as AnchorButtonAppearance,nf as AnchorButtonDefinition,ef as AnchorButtonShape,tf as AnchorButtonSize,Ju as AnchorButtonTemplate,of as AnchorTarget,th as Avatar,ff as AvatarActive,vf as AvatarAppearance,eh as AvatarColor,wf as AvatarDefinition,Xi as AvatarNamedColor,bf as AvatarShape,mf as AvatarSize,rh as AvatarStyles,oh as AvatarTemplate,Vt as Badge,ah as BadgeAppearance,nh as BadgeColor,If as BadgeDefinition,Sf as BadgeShape,Pf as BadgeSize,hh as BadgeStyles,sh as BadgeTemplate,N as Button,Uo as ButtonAppearance,Lf as ButtonDefinition,Ko as ButtonShape,Yo as ButtonSize,ko as ButtonStyles,ph as ButtonTemplate,Qo as ButtonType,jt as Checkbox,Wf as CheckboxDefinition,Rf as CheckboxLabelPosition,Hf as CheckboxShape,_f as CheckboxSize,$h as CheckboxStyles,yh as CheckboxTemplate,kh as CompoundButton,qf as CompoundButtonAppearance,Yf as CompoundButtonDefinition,Xf as CompoundButtonShape,Uf as CompoundButtonSize,Bh as CompoundButtonStyles,xh as CompoundButtonTemplate,ze as CounterBadge,Jf as CounterBadgeAppearance,eb as CounterBadgeColor,ab as CounterBadgeDefinition,tb as CounterBadgeShape,ob as CounterBadgeSize,Sh as CounterBadgeStyles,wh as CounterBadgeTemplate,Ah as Dialog,Sb as DialogDefinition,te as DialogModalType,zh as DialogStyles,Ih as DialogTemplate,Gt as Divider,Pb as DividerAlignContent,Cb as DividerAppearance,Ib as DividerDefinition,Nh as DividerOrientation,Yi as DividerRole,Dh as DividerStyles,Lh as DividerTemplate,x as FluentDesignSystem,Wt as Image,Ob as ImageDefinition,Lb as ImageFit,Db as ImageShape,Eh as ImageStyles,Oh as ImageTemplate,xo as Label,Vb as LabelDefinition,Hb as LabelSize,Mh as LabelStyles,Hh as LabelTemplate,_b as LabelWeight,at as Menu,dp as MenuButton,av as MenuButtonAppearance,sv as MenuButtonDefinition,nv as MenuButtonShape,iv as MenuButtonSize,ko as MenuButtonStyles,up as MenuButtonTemplate,rv as MenuDefinition,Ce as MenuItem,pv as MenuItemDefinition,ce as MenuItemRole,gp as MenuItemStyles,pp as MenuItemTemplate,fp as MenuList,mv as MenuListDefinition,vp as MenuListStyles,bp as MenuListTemplate,cp as MenuStyles,lp as MenuTemplate,ir as ProgressBar,Cv as ProgressBarDefinition,wv as ProgressBarShape,mp as ProgressBarStyles,yp as ProgressBarTemplate,Bv as ProgressBarThickness,Sv as ProgressBarValidationState,Ge as Radio,Nv as RadioDefinition,We as RadioGroup,Ev as RadioGroupDefinition,ns as RadioGroupOrientation,Bp as RadioGroupStyles,wp as RadioGroupTemplate,kp as RadioStyles,xp as RadioTemplate,q as Slider,Wv as SliderDefinition,Sp as SliderMode,Hv as SliderOrientation,Mv as SliderSize,Cp as SliderStyles,Fp as SliderTemplate,Ba as Spinner,Uv as SpinnerAppearance,Yv as SpinnerDefinition,Kv as SpinnerSize,Ip as SpinnerStyles,Ap as SpinnerTemplate,sr as Switch,rm as SwitchDefinition,tm as SwitchLabelPosition,Np as SwitchStyles,zp as SwitchTemplate,wa as Tab,lm as TabDefinition,Op as TabPanel,dm as TabPanelDefinition,Mp as TabPanelStyles,Ep as TabPanelTemplate,Dp as TabStyles,Lp as TabTemplate,wo as Tabs,Hp as TabsAppearance,fm as TabsDefinition,lr as TabsOrientation,um as TabsSize,Rp as TabsStyles,_p as TabsTemplate,Fe as Text,km as TextAlign,xm as TextDefinition,ym as TextFont,P as TextInput,wm as TextInputAppearance,Bm as TextInputControlSize,Tm as TextInputDefinition,Wp as TextInputStyles,qp as TextInputTemplate,Gp as TextInputType,mm as TextSize,jp as TextStyles,Vp as TextTemplate,$m as TextWeight,Sa as ToggleButton,zm as ToggleButtonAppearance,Dm as ToggleButtonDefinition,Nm as ToggleButtonShape,Lm as ToggleButtonSize,Kp as ToggleButtonStyles,Up as ToggleButtonTemplate,jg as accordionDefinition,Yg as accordionItemDefinition,Qu as accordionItemStyles,Zu as accordionItemTemplate,al as accordionStyles,rl as accordionTemplate,J as borderRadiusCircular,qo as borderRadiusLarge,B as borderRadiusMedium,Wo as borderRadiusNone,ge as borderRadiusSmall,Vr as borderRadiusXLarge,cn as colorBackgroundOverlay,uo as colorBrandBackground,Nt as colorBrandBackground2,cc as colorBrandBackground2Hover,dc as colorBrandBackground2Pressed,uc as colorBrandBackground3Static,hc as colorBrandBackground4Static,Oo as colorBrandBackgroundHover,pc as colorBrandBackgroundInverted,gc as colorBrandBackgroundInvertedHover,fc as colorBrandBackgroundInvertedPressed,bc as colorBrandBackgroundInvertedSelected,Eo as colorBrandBackgroundPressed,dn as colorBrandBackgroundSelected,Nr as colorBrandBackgroundStatic,Lo as colorBrandForeground1,tn as colorBrandForeground2,Sl as colorBrandForeground2Hover,Pl as colorBrandForeground2Pressed,Cl as colorBrandForegroundInverted,Fl as colorBrandForegroundInvertedHover,Tl as colorBrandForegroundInvertedPressed,dl as colorBrandForegroundLink,ul as colorBrandForegroundLinkHover,hl as colorBrandForegroundLinkPressed,pl as colorBrandForegroundLinkSelected,Al as colorBrandForegroundOnLight,Il as colorBrandForegroundOnLightHover,zl as colorBrandForegroundOnLightPressed,Nl as colorBrandForegroundOnLightSelected,Vc as colorBrandShadowAmbient,jc as colorBrandShadowKey,Lr as colorBrandStroke1,Dr as colorBrandStroke2,Ic as colorBrandStroke2Contrast,Tc as colorBrandStroke2Hover,Ac as colorBrandStroke2Pressed,ut as colorCompoundBrandBackground,It as colorCompoundBrandBackgroundHover,zt as colorCompoundBrandBackgroundPressed,Io as colorCompoundBrandForeground1,zo as colorCompoundBrandForeground1Hover,No as colorCompoundBrandForeground1Pressed,Mo as colorCompoundBrandStroke,po as colorCompoundBrandStrokeHover,Ho as colorCompoundBrandStrokePressed,V as colorNeutralBackground1,lo as colorNeutralBackground1Hover,Do as colorNeutralBackground1Pressed,Tr as colorNeutralBackground1Selected,Ll as colorNeutralBackground2,Dl as colorNeutralBackground2Hover,Ol as colorNeutralBackground2Pressed,El as colorNeutralBackground2Selected,Ar as colorNeutralBackground3,Ml as colorNeutralBackground3Hover,Hl as colorNeutralBackground3Pressed,_l as colorNeutralBackground3Selected,rn as colorNeutralBackground4,Rl as colorNeutralBackground4Hover,Vl as colorNeutralBackground4Pressed,jl as colorNeutralBackground4Selected,an as colorNeutralBackground5,Gl as colorNeutralBackground5Hover,Wl as colorNeutralBackground5Pressed,ql as colorNeutralBackground5Selected,Ir as colorNeutralBackground6,Ul as colorNeutralBackgroundAlpha,Kl as colorNeutralBackgroundAlpha2,At as colorNeutralBackgroundDisabled,nn as colorNeutralBackgroundInverted,rc as colorNeutralBackgroundInvertedDisabled,Xl as colorNeutralBackgroundStatic,vc as colorNeutralCardBackground,kc as colorNeutralCardBackgroundDisabled,mc as colorNeutralCardBackgroundHover,yc as colorNeutralCardBackgroundPressed,$c as colorNeutralCardBackgroundSelected,E as colorNeutralForeground1,Ao as colorNeutralForeground1Hover,Cr as colorNeutralForeground1Pressed,nl as colorNeutralForeground1Selected,on as colorNeutralForeground1Static,ie as colorNeutralForeground2,lt as colorNeutralForeground2BrandHover,ct as colorNeutralForeground2BrandPressed,Ka as colorNeutralForeground2BrandSelected,Pt as colorNeutralForeground2Hover,gl as colorNeutralForeground2Link,fl as colorNeutralForeground2LinkHover,bl as colorNeutralForeground2LinkPressed,vl as colorNeutralForeground2LinkSelected,Ct as colorNeutralForeground2Pressed,Ua as colorNeutralForeground2Selected,X as colorNeutralForeground3,sl as colorNeutralForeground3BrandHover,ll as colorNeutralForeground3BrandPressed,cl as colorNeutralForeground3BrandSelected,Ya as colorNeutralForeground3Hover,Qa as colorNeutralForeground3Pressed,il as colorNeutralForeground3Selected,Za as colorNeutralForeground4,k as colorNeutralForegroundDisabled,so as colorNeutralForegroundInverted,yl as colorNeutralForegroundInverted2,wl as colorNeutralForegroundInvertedDisabled,Ja as colorNeutralForegroundInvertedHover,$l as colorNeutralForegroundInvertedLink,kl as colorNeutralForegroundInvertedLinkHover,xl as colorNeutralForegroundInvertedLinkPressed,Bl as colorNeutralForegroundInvertedLinkSelected,en as colorNeutralForegroundInvertedPressed,ml as colorNeutralForegroundInvertedSelected,pe as colorNeutralForegroundOnBrand,Fr as colorNeutralForegroundStaticInverted,Oc as colorNeutralShadowAmbient,_c as colorNeutralShadowAmbientDarker,Mc as colorNeutralShadowAmbientLighter,Ec as colorNeutralShadowKey,Rc as colorNeutralShadowKeyDarker,Hc as colorNeutralShadowKeyLighter,ac as colorNeutralStencil1,ic as colorNeutralStencil1Alpha,nc as colorNeutralStencil2,sc as colorNeutralStencil2Alpha,Je as colorNeutralStroke1,Ot as colorNeutralStroke1Hover,ho as colorNeutralStroke1Pressed,Bc as colorNeutralStroke1Selected,Et as colorNeutralStroke2,un as colorNeutralStroke3,Ae as colorNeutralStrokeAccessible,Lt as colorNeutralStrokeAccessibleHover,Dt as colorNeutralStrokeAccessiblePressed,xc as colorNeutralStrokeAccessibleSelected,Lc as colorNeutralStrokeAlpha,Dc as colorNeutralStrokeAlpha2,Me as colorNeutralStrokeDisabled,zc as colorNeutralStrokeInvertedDisabled,Sc as colorNeutralStrokeOnBrand,hn as colorNeutralStrokeOnBrand2,Pc as colorNeutralStrokeOnBrand2Hover,Cc as colorNeutralStrokeOnBrand2Pressed,Fc as colorNeutralStrokeOnBrand2Selected,wc as colorNeutralStrokeSubtle,Tn as colorPaletteAnchorBackground2,Ad as colorPaletteAnchorBorderActive,An as colorPaletteAnchorForeground2,In as colorPaletteBeigeBackground2,Id as colorPaletteBeigeBorderActive,zn as colorPaletteBeigeForeground2,nd as colorPaletteBerryBackground1,id as colorPaletteBerryBackground2,sd as colorPaletteBerryBackground3,cd as colorPaletteBerryBorder1,dd as colorPaletteBerryBorder2,ld as colorPaletteBerryBorderActive,ud as colorPaletteBerryForeground1,hd as colorPaletteBerryForeground2,pd as colorPaletteBerryForeground3,Nn as colorPaletteBlueBackground2,zd as colorPaletteBlueBorderActive,Ln as colorPaletteBlueForeground2,Dn as colorPaletteBrassBackground2,Nd as colorPaletteBrassBorderActive,On as colorPaletteBrassForeground2,En as colorPaletteBrownBackground2,Ld as colorPaletteBrownBorderActive,Mn as colorPaletteBrownForeground2,Hn as colorPaletteCornflowerBackground2,Dd as colorPaletteCornflowerBorderActive,_n as colorPaletteCornflowerForeground2,Rn as colorPaletteCranberryBackground2,Od as colorPaletteCranberryBorderActive,Vn as colorPaletteCranberryForeground2,jn as colorPaletteDarkGreenBackground2,Ed as colorPaletteDarkGreenBorderActive,Gn as colorPaletteDarkGreenForeground2,kn as colorPaletteDarkOrangeBackground1,_r as colorPaletteDarkOrangeBackground2,jo as colorPaletteDarkOrangeBackground3,xn as colorPaletteDarkOrangeBorder1,Qc as colorPaletteDarkOrangeBorder2,Yc as colorPaletteDarkOrangeBorderActive,Bn as colorPaletteDarkOrangeForeground1,Zc as colorPaletteDarkOrangeForeground2,Rr as colorPaletteDarkOrangeForeground3,Wn as colorPaletteDarkRedBackground2,Md as colorPaletteDarkRedBorderActive,qn as colorPaletteDarkRedForeground2,Xn as colorPaletteForestBackground2,Hd as colorPaletteForestBorderActive,Un as colorPaletteForestForeground2,Kn as colorPaletteGoldBackground2,_d as colorPaletteGoldBorderActive,Yn as colorPaletteGoldForeground2,Qn as colorPaletteGrapeBackground2,Rd as colorPaletteGrapeBorderActive,Zn as colorPaletteGrapeForeground2,bn as colorPaletteGreenBackground1,Hr as colorPaletteGreenBackground2,Vo as colorPaletteGreenBackground3,Uc as colorPaletteGreenBorder1,vn as colorPaletteGreenBorder2,Xc as colorPaletteGreenBorderActive,mn as colorPaletteGreenForeground1,yn as colorPaletteGreenForeground2,$n as colorPaletteGreenForeground3,Kc as colorPaletteGreenForegroundInverted,Jn as colorPaletteLavenderBackground2,Vd as colorPaletteLavenderBorderActive,ei as colorPaletteLavenderForeground2,kd as colorPaletteLightGreenBackground1,xd as colorPaletteLightGreenBackground2,Bd as colorPaletteLightGreenBackground3,Sd as colorPaletteLightGreenBorder1,Pd as colorPaletteLightGreenBorder2,wd as colorPaletteLightGreenBorderActive,Cd as colorPaletteLightGreenForeground1,Fd as colorPaletteLightGreenForeground2,Td as colorPaletteLightGreenForeground3,ti as colorPaletteLightTealBackground2,jd as colorPaletteLightTealBorderActive,oi as colorPaletteLightTealForeground2,ri as colorPaletteLilacBackground2,Gd as colorPaletteLilacBorderActive,ai as colorPaletteLilacForeground2,ni as colorPaletteMagentaBackground2,Wd as colorPaletteMagentaBorderActive,ii as colorPaletteMagentaForeground2,gd as colorPaletteMarigoldBackground1,Cn as colorPaletteMarigoldBackground2,fd as colorPaletteMarigoldBackground3,vd as colorPaletteMarigoldBorder1,md as colorPaletteMarigoldBorder2,bd as colorPaletteMarigoldBorderActive,yd as colorPaletteMarigoldForeground1,Fn as colorPaletteMarigoldForeground2,$d as colorPaletteMarigoldForeground3,si as colorPaletteMinkBackground2,qd as colorPaletteMinkBorderActive,li as colorPaletteMinkForeground2,ci as colorPaletteNavyBackground2,Xd as colorPaletteNavyBorderActive,di as colorPaletteNavyForeground2,ui as colorPalettePeachBackground2,Ud as colorPalettePeachBorderActive,hi as colorPalettePeachForeground2,pi as colorPalettePinkBackground2,Kd as colorPalettePinkBorderActive,gi as colorPalettePinkForeground2,fi as colorPalettePlatinumBackground2,Yd as colorPalettePlatinumBorderActive,bi as colorPalettePlatinumForeground2,vi as colorPalettePlumBackground2,Qd as colorPalettePlumBorderActive,mi as colorPalettePlumForeground2,yi as colorPalettePumpkinBackground2,Zd as colorPalettePumpkinBorderActive,$i as colorPalettePumpkinForeground2,ki as colorPalettePurpleBackground2,Jd as colorPalettePurpleBorderActive,xi as colorPalettePurpleForeground2,pn as colorPaletteRedBackground1,_o as colorPaletteRedBackground2,Ro as colorPaletteRedBackground3,gn as colorPaletteRedBorder1,Wc as colorPaletteRedBorder2,Gc as colorPaletteRedBorderActive,Er as colorPaletteRedForeground1,fn as colorPaletteRedForeground2,Mr as colorPaletteRedForeground3,qc as colorPaletteRedForegroundInverted,Bi as colorPaletteRoyalBlueBackground2,eu as colorPaletteRoyalBlueBorderActive,wi as colorPaletteRoyalBlueForeground2,Si as colorPaletteSeafoamBackground2,tu as colorPaletteSeafoamBorderActive,Pi as colorPaletteSeafoamForeground2,Ci as colorPaletteSteelBackground2,ou as colorPaletteSteelBorderActive,Fi as colorPaletteSteelForeground2,Ti as colorPaletteTealBackground2,ru as colorPaletteTealBorderActive,Ai as colorPaletteTealForeground2,wn as colorPaletteYellowBackground1,Jc as colorPaletteYellowBackground2,Sn as colorPaletteYellowBackground3,Pn as colorPaletteYellowBorder1,td as colorPaletteYellowBorder2,ed as colorPaletteYellowBorderActive,od as colorPaletteYellowForeground1,Go as colorPaletteYellowForeground2,rd as colorPaletteYellowForeground3,ad as colorPaletteYellowForegroundInverted,lc as colorScrollbarOverlay,wu as colorStatusDangerBackground1,Su as colorStatusDangerBackground2,Pu as colorStatusDangerBackground3,Cu as colorStatusDangerBackground3Hover,Fu as colorStatusDangerBackground3Pressed,Lu as colorStatusDangerBorder1,Du as colorStatusDangerBorder2,Nu as colorStatusDangerBorderActive,Tu as colorStatusDangerForeground1,Au as colorStatusDangerForeground2,Iu as colorStatusDangerForeground3,zu as colorStatusDangerForegroundInverted,au as colorStatusSuccessBackground1,nu as colorStatusSuccessBackground2,iu as colorStatusSuccessBackground3,hu as colorStatusSuccessBorder1,pu as colorStatusSuccessBorder2,uu as colorStatusSuccessBorderActive,su as colorStatusSuccessForeground1,lu as colorStatusSuccessForeground2,cu as colorStatusSuccessForeground3,du as colorStatusSuccessForegroundInverted,gu as colorStatusWarningBackground1,fu as colorStatusWarningBackground2,bu as colorStatusWarningBackground3,xu as colorStatusWarningBorder1,Bu as colorStatusWarningBorder2,ku as colorStatusWarningBorderActive,vu as colorStatusWarningForeground1,mu as colorStatusWarningForeground2,yu as colorStatusWarningForeground3,$u as colorStatusWarningForegroundInverted,Mt as colorStrokeFocus1,Pe as colorStrokeFocus2,zr as colorSubtleBackground,co as colorSubtleBackgroundHover,Jl as colorSubtleBackgroundInverted,ec as colorSubtleBackgroundInvertedHover,tc as colorSubtleBackgroundInvertedPressed,oc as colorSubtleBackgroundInvertedSelected,Yl as colorSubtleBackgroundLightAlphaHover,Ql as colorSubtleBackgroundLightAlphaPressed,Zl as colorSubtleBackgroundLightAlphaSelected,Ft as colorSubtleBackgroundPressed,sn as colorSubtleBackgroundSelected,U as colorTransparentBackground,dt as colorTransparentBackgroundHover,Tt as colorTransparentBackgroundPressed,ln as colorTransparentBackgroundSelected,ye as colorTransparentStroke,Nc as colorTransparentStrokeDisabled,Or as colorTransparentStrokeInteractive,Ri as curveAccelerateMax,sa as curveAccelerateMid,Vi as curveAccelerateMin,la as curveDecelerateMax,ca as curveDecelerateMid,ji as curveDecelerateMin,$o as curveEasyEase,Gi as curveEasyEaseMax,Wi as curveLinear,Og as darkModeStylesheetBehavior,A as display,Ku as durationFast,mo as durationFaster,Yu as durationGentle,na as durationNormal,_i as durationSlow,ia as durationSlower,Hi as durationUltraFast,yo as durationUltraSlow,y as fontFamilyBase,Ii as fontFamilyMonospace,zi as fontFamilyNumeric,Ht as fontSizeBase100,j as fontSizeBase200,F as fontSizeBase300,se as fontSizeBase400,et as fontSizeBase500,go as fontSizeBase600,qr as fontSizeHero1000,jr as fontSizeHero700,Gr as fontSizeHero800,Wr as fontSizeHero900,fo as fontWeightBold,Ni as fontWeightMedium,I as fontWeightRegular,D as fontWeightSemibold,Te as forcedColorsStylesheetBehavior,Xa as getDirection,Eg as lightModeStylesheetBehavior,bo as lineHeightBase100,le as lineHeightBase200,z as lineHeightBase300,$e as lineHeightBase400,vo as lineHeightBase500,Xr as lineHeightBase600,Qr as lineHeightHero1000,Ur as lineHeightHero700,Kr as lineHeightHero800,Yr as lineHeightHero900,lv as roleForMenuItem,Om as setTheme,Em as setThemeFor,Zr as shadow16,Hu as shadow16Brand,Xo as shadow2,Di as shadow28,_u as shadow28Brand,Ou as shadow2Brand,_t as shadow4,Eu as shadow4Brand,Oi as shadow64,Ru as shadow64Brand,Li as shadow8,Mu as shadow8Brand,ea as spacingHorizontalL,ot as spacingHorizontalM,Ie as spacingHorizontalMNudge,Vu as spacingHorizontalNone,G as spacingHorizontalS,_e as spacingHorizontalSNudge,ju as spacingHorizontalXL,fe as spacingHorizontalXS,Ei as spacingHorizontalXXL,tt as spacingHorizontalXXS,Gu as spacingHorizontalXXXL,Mi as spacingVerticalL,qu as spacingVerticalM,ra as spacingVerticalMNudge,Wu as spacingVerticalNone,R as spacingVerticalS,Rt as spacingVerticalSNudge,Xu as spacingVerticalXL,oa as spacingVerticalXS,aa as spacingVerticalXXL,ta as spacingVerticalXXS,Uu as spacingVerticalXXXL,ht as strokeWidthThick,He as strokeWidthThicker,Jr as strokeWidthThickest,K as strokeWidthThin};
|