@m3e/web 2.0.3 → 2.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/all.js +571 -463
- package/dist/all.js.map +1 -1
- package/dist/all.min.js +54 -59
- package/dist/all.min.js.map +1 -1
- package/dist/app-bar.js +10 -10
- package/dist/app-bar.js.map +1 -1
- package/dist/app-bar.min.js +1 -1
- package/dist/app-bar.min.js.map +1 -1
- package/dist/autocomplete.js +31 -18
- package/dist/autocomplete.js.map +1 -1
- package/dist/autocomplete.min.js +1 -1
- package/dist/autocomplete.min.js.map +1 -1
- package/dist/avatar.js +1 -2
- package/dist/avatar.js.map +1 -1
- package/dist/avatar.min.js +1 -1
- package/dist/avatar.min.js.map +1 -1
- package/dist/badge.js +2 -2
- package/dist/badge.js.map +1 -1
- package/dist/badge.min.js +1 -1
- package/dist/badge.min.js.map +1 -1
- package/dist/bottom-sheet.js +14 -15
- package/dist/bottom-sheet.js.map +1 -1
- package/dist/bottom-sheet.min.js +1 -1
- package/dist/bottom-sheet.min.js.map +1 -1
- package/dist/button-group.js +7 -7
- package/dist/button-group.js.map +1 -1
- package/dist/button-group.min.js +1 -1
- package/dist/button-group.min.js.map +1 -1
- package/dist/button.js +17 -17
- package/dist/button.js.map +1 -1
- package/dist/button.min.js +1 -1
- package/dist/button.min.js.map +1 -1
- package/dist/card.js +2 -2
- package/dist/card.js.map +1 -1
- package/dist/card.min.js +1 -1
- package/dist/card.min.js.map +1 -1
- package/dist/checkbox.js +3 -3
- package/dist/checkbox.js.map +1 -1
- package/dist/checkbox.min.js +1 -1
- package/dist/checkbox.min.js.map +1 -1
- package/dist/chips.js +50 -37
- package/dist/chips.js.map +1 -1
- package/dist/chips.min.js +1 -1
- package/dist/chips.min.js.map +1 -1
- package/dist/core-a11y.js +27 -1
- package/dist/core-a11y.js.map +1 -1
- package/dist/core-a11y.min.js +4 -13
- package/dist/core-a11y.min.js.map +1 -1
- package/dist/core-bidi.js +3 -5
- package/dist/core-bidi.js.map +1 -1
- package/dist/core-bidi.min.js +2 -2
- package/dist/core-bidi.min.js.map +1 -1
- package/dist/core.js +128 -49
- package/dist/core.js.map +1 -1
- package/dist/core.min.js +1 -1
- package/dist/core.min.js.map +1 -1
- package/dist/css-custom-data.json +140 -115
- package/dist/custom-elements.json +2310 -1497
- package/dist/dialog.js +10 -9
- package/dist/dialog.js.map +1 -1
- package/dist/dialog.min.js +1 -1
- package/dist/dialog.min.js.map +1 -1
- package/dist/divider.js +2 -2
- package/dist/divider.js.map +1 -1
- package/dist/divider.min.js +1 -1
- package/dist/divider.min.js.map +1 -1
- package/dist/drawer-container.js +18 -18
- package/dist/drawer-container.js.map +1 -1
- package/dist/drawer-container.min.js +1 -1
- package/dist/drawer-container.min.js.map +1 -1
- package/dist/expansion-panel.js +4 -4
- package/dist/expansion-panel.js.map +1 -1
- package/dist/expansion-panel.min.js +1 -1
- package/dist/expansion-panel.min.js.map +1 -1
- package/dist/fab-menu.js +9 -9
- package/dist/fab-menu.js.map +1 -1
- package/dist/fab-menu.min.js +1 -1
- package/dist/fab-menu.min.js.map +1 -1
- package/dist/fab.js +4 -4
- package/dist/fab.js.map +1 -1
- package/dist/fab.min.js +1 -1
- package/dist/fab.min.js.map +1 -1
- package/dist/form-field.js +22 -22
- package/dist/form-field.js.map +1 -1
- package/dist/form-field.min.js +3 -3
- package/dist/form-field.min.js.map +1 -1
- package/dist/heading.js +2 -2
- package/dist/heading.js.map +1 -1
- package/dist/heading.min.js +1 -1
- package/dist/heading.min.js.map +1 -1
- package/dist/html-custom-data.json +57 -57
- package/dist/icon-button.js +17 -17
- package/dist/icon-button.js.map +1 -1
- package/dist/icon-button.min.js +1 -1
- package/dist/icon-button.min.js.map +1 -1
- package/dist/icon.js +2 -2
- package/dist/icon.js.map +1 -1
- package/dist/icon.min.js +1 -1
- package/dist/icon.min.js.map +1 -1
- package/dist/list.js +26 -20
- package/dist/list.js.map +1 -1
- package/dist/list.min.js +1 -1
- package/dist/list.min.js.map +1 -1
- package/dist/loading-indicator.js +2 -2
- package/dist/loading-indicator.js.map +1 -1
- package/dist/loading-indicator.min.js +1 -1
- package/dist/loading-indicator.min.js.map +1 -1
- package/dist/menu.js +28 -26
- package/dist/menu.js.map +1 -1
- package/dist/menu.min.js +1 -1
- package/dist/menu.min.js.map +1 -1
- package/dist/nav-bar.js +4 -4
- package/dist/nav-bar.js.map +1 -1
- package/dist/nav-bar.min.js +1 -1
- package/dist/nav-bar.min.js.map +1 -1
- package/dist/nav-menu.js +25 -21
- package/dist/nav-menu.js.map +1 -1
- package/dist/nav-menu.min.js +1 -1
- package/dist/nav-menu.min.js.map +1 -1
- package/dist/nav-rail.js +4 -5
- package/dist/nav-rail.js.map +1 -1
- package/dist/nav-rail.min.js +1 -1
- package/dist/nav-rail.min.js.map +1 -1
- package/dist/option.js +26 -28
- package/dist/option.js.map +1 -1
- package/dist/option.min.js +1 -1
- package/dist/option.min.js.map +1 -1
- package/dist/paginator.js +7 -3
- package/dist/paginator.js.map +1 -1
- package/dist/paginator.min.js +2 -2
- package/dist/paginator.min.js.map +1 -1
- package/dist/progress-indicator.js +2 -2
- package/dist/progress-indicator.js.map +1 -1
- package/dist/progress-indicator.min.js +7 -7
- package/dist/progress-indicator.min.js.map +1 -1
- package/dist/radio-group.js +4 -4
- package/dist/radio-group.js.map +1 -1
- package/dist/radio-group.min.js +1 -1
- package/dist/radio-group.min.js.map +1 -1
- package/dist/segmented-button.js +9 -9
- package/dist/segmented-button.js.map +1 -1
- package/dist/segmented-button.min.js +1 -1
- package/dist/segmented-button.min.js.map +1 -1
- package/dist/select.js +10 -354
- package/dist/select.js.map +1 -1
- package/dist/select.min.js +1 -18
- package/dist/select.min.js.map +1 -1
- package/dist/shape.js +2 -2
- package/dist/shape.js.map +1 -1
- package/dist/shape.min.js +1 -1
- package/dist/shape.min.js.map +1 -1
- package/dist/slide-group.js +3 -2
- package/dist/slide-group.js.map +1 -1
- package/dist/slide-group.min.js +1 -1
- package/dist/slide-group.min.js.map +1 -1
- package/dist/slider.js +8 -8
- package/dist/slider.js.map +1 -1
- package/dist/slider.min.js +1 -1
- package/dist/slider.min.js.map +1 -1
- package/dist/snackbar.js +5 -3
- package/dist/snackbar.js.map +1 -1
- package/dist/snackbar.min.js +1 -1
- package/dist/snackbar.min.js.map +1 -1
- package/dist/split-button.js +3 -2
- package/dist/split-button.js.map +1 -1
- package/dist/split-button.min.js +1 -1
- package/dist/split-button.min.js.map +1 -1
- package/dist/src/autocomplete/AutocompleteElement.d.ts.map +1 -1
- package/dist/src/avatar/AvatarElement.d.ts.map +1 -1
- package/dist/src/bottom-sheet/BottomSheetActionElement.d.ts.map +1 -1
- package/dist/src/bottom-sheet/BottomSheetElement.d.ts +1 -1
- package/dist/src/bottom-sheet/BottomSheetElement.d.ts.map +1 -1
- package/dist/src/bottom-sheet/BottomSheetTriggerElement.d.ts.map +1 -1
- package/dist/src/button/ButtonElement.d.ts +2 -1
- package/dist/src/button/ButtonElement.d.ts.map +1 -1
- package/dist/src/button/styles/ButtonSizeStyle.d.ts.map +1 -1
- package/dist/src/button/styles/ButtonVariantStyle.d.ts.map +1 -1
- package/dist/src/button-group/ButtonGroupElement.d.ts.map +1 -1
- package/dist/src/card/CardElement.d.ts.map +1 -1
- package/dist/src/checkbox/CheckboxElement.d.ts.map +1 -1
- package/dist/src/chips/AssistChipElement.d.ts +3 -1
- package/dist/src/chips/AssistChipElement.d.ts.map +1 -1
- package/dist/src/chips/ChipElement.d.ts +3 -1
- package/dist/src/chips/ChipElement.d.ts.map +1 -1
- package/dist/src/chips/ChipSetElement.d.ts.map +1 -1
- package/dist/src/chips/FilterChipElement.d.ts +3 -1
- package/dist/src/chips/FilterChipElement.d.ts.map +1 -1
- package/dist/src/chips/FilterChipSetElement.d.ts.map +1 -1
- package/dist/src/chips/InputChipElement.d.ts +8 -1
- package/dist/src/chips/InputChipElement.d.ts.map +1 -1
- package/dist/src/chips/InputChipSetElement.d.ts.map +1 -1
- package/dist/src/chips/SuggestionChipElement.d.ts +3 -1
- package/dist/src/chips/SuggestionChipElement.d.ts.map +1 -1
- package/dist/src/core/bidi/Directionality.d.ts.map +1 -1
- package/dist/src/core/shared/controllers/HoverController.d.ts.map +1 -1
- package/dist/src/core/shared/controllers/IntersectionController.d.ts.map +1 -1
- package/dist/src/core/shared/decorators/component.d.ts +19 -0
- package/dist/src/core/shared/decorators/component.d.ts.map +1 -0
- package/dist/src/core/shared/decorators/customElement.d.ts +19 -0
- package/dist/src/core/shared/decorators/customElement.d.ts.map +1 -0
- package/dist/src/core/shared/decorators/element.d.ts +19 -0
- package/dist/src/core/shared/decorators/element.d.ts.map +1 -0
- package/dist/src/core/shared/decorators/index.d.ts +1 -0
- package/dist/src/core/shared/decorators/index.d.ts.map +1 -1
- package/dist/src/core/shared/mixins/AttachInternals.d.ts +27 -0
- package/dist/src/core/shared/mixins/AttachInternals.d.ts.map +1 -1
- package/dist/src/core/shared/mixins/Dirty.d.ts +2 -1
- package/dist/src/core/shared/mixins/Dirty.d.ts.map +1 -1
- package/dist/src/core/shared/mixins/HtmlFor.d.ts.map +1 -1
- package/dist/src/core/shared/mixins/Labelled.d.ts.map +1 -1
- package/dist/src/core/shared/mixins/Touched.d.ts +2 -1
- package/dist/src/core/shared/mixins/Touched.d.ts.map +1 -1
- package/dist/src/core/shared/primitives/CollapsibleElement.d.ts +1 -1
- package/dist/src/core/shared/primitives/CollapsibleElement.d.ts.map +1 -1
- package/dist/src/core/shared/primitives/ElevationElement.d.ts.map +1 -1
- package/dist/src/core/shared/primitives/FocusRingElement.d.ts.map +1 -1
- package/dist/src/core/shared/primitives/RippleElement.d.ts.map +1 -1
- package/dist/src/core/shared/primitives/ScrollContainerElement.d.ts +3 -1
- package/dist/src/core/shared/primitives/ScrollContainerElement.d.ts.map +1 -1
- package/dist/src/core/shared/primitives/SlideElement.d.ts +3 -1
- package/dist/src/core/shared/primitives/SlideElement.d.ts.map +1 -1
- package/dist/src/core/shared/primitives/StateLayerElement.d.ts.map +1 -1
- package/dist/src/core/shared/primitives/TextHighlightElement.d.ts.map +1 -1
- package/dist/src/core/shared/primitives/TextOverflowElement.d.ts.map +1 -1
- package/dist/src/core/shared/utils/getState.d.ts +15 -0
- package/dist/src/core/shared/utils/getState.d.ts.map +1 -0
- package/dist/src/dialog/DialogActionElement.d.ts.map +1 -1
- package/dist/src/dialog/DialogElement.d.ts +3 -2
- package/dist/src/dialog/DialogElement.d.ts.map +1 -1
- package/dist/src/dialog/DialogTriggerElement.d.ts.map +1 -1
- package/dist/src/drawer-container/DrawerContainerElement.d.ts +3 -1
- package/dist/src/drawer-container/DrawerContainerElement.d.ts.map +1 -1
- package/dist/src/drawer-container/DrawerToggleElement.d.ts.map +1 -1
- package/dist/src/drawer-container/styles/DrawerContainerStyle.d.ts.map +1 -1
- package/dist/src/expansion-panel/ExpansionHeaderElement.d.ts.map +1 -1
- package/dist/src/expansion-panel/ExpansionPanelElement.d.ts.map +1 -1
- package/dist/src/fab/FabElement.d.ts.map +1 -1
- package/dist/src/fab-menu/FabMenuElement.d.ts +1 -1
- package/dist/src/fab-menu/FabMenuElement.d.ts.map +1 -1
- package/dist/src/fab-menu/FabMenuItemElement.d.ts.map +1 -1
- package/dist/src/fab-menu/FabMenuTriggerElement.d.ts.map +1 -1
- package/dist/src/form-field/FormFieldElement.d.ts.map +1 -1
- package/dist/src/icon-button/IconButtonElement.d.ts +2 -1
- package/dist/src/icon-button/IconButtonElement.d.ts.map +1 -1
- package/dist/src/icon-button/styles/IconButtonSizeStyle.d.ts.map +1 -1
- package/dist/src/icon-button/styles/IconButtonVariantStyle.d.ts.map +1 -1
- package/dist/src/list/ActionListElement.d.ts.map +1 -1
- package/dist/src/list/ListElement.d.ts +1 -1
- package/dist/src/list/ListElement.d.ts.map +1 -1
- package/dist/src/list/ListItemButtonElement.d.ts.map +1 -1
- package/dist/src/list/ListItemElement.d.ts +1 -1
- package/dist/src/list/ListItemElement.d.ts.map +1 -1
- package/dist/src/list/ListOptionElement.d.ts.map +1 -1
- package/dist/src/list/SelectionListElement.d.ts.map +1 -1
- package/dist/src/menu/MenuElement.d.ts +1 -1
- package/dist/src/menu/MenuElement.d.ts.map +1 -1
- package/dist/src/menu/MenuItemCheckboxElement.d.ts.map +1 -1
- package/dist/src/menu/MenuItemGroupElement.d.ts.map +1 -1
- package/dist/src/menu/MenuItemRadioElement.d.ts.map +1 -1
- package/dist/src/menu/MenuTriggerElement.d.ts.map +1 -1
- package/dist/src/nav-bar/NavBarElement.d.ts +1 -1
- package/dist/src/nav-bar/NavBarElement.d.ts.map +1 -1
- package/dist/src/nav-bar/NavItemElement.d.ts.map +1 -1
- package/dist/src/nav-menu/NavMenuElement.d.ts.map +1 -1
- package/dist/src/nav-menu/NavMenuItemElement.d.ts.map +1 -1
- package/dist/src/nav-menu/NavMenuItemGroupElement.d.ts +1 -1
- package/dist/src/nav-menu/NavMenuItemGroupElement.d.ts.map +1 -1
- package/dist/src/nav-rail/NavRailElement.d.ts.map +1 -1
- package/dist/src/nav-rail/NavRailToggleElement.d.ts.map +1 -1
- package/dist/src/option/OptGroupElement.d.ts.map +1 -1
- package/dist/src/option/OptionElement.d.ts +1 -2
- package/dist/src/option/OptionElement.d.ts.map +1 -1
- package/dist/src/option/OptionPanelElement.d.ts +12 -13
- package/dist/src/option/OptionPanelElement.d.ts.map +1 -1
- package/dist/src/paginator/PaginatorElement.d.ts +5 -1
- package/dist/src/paginator/PaginatorElement.d.ts.map +1 -1
- package/dist/src/progress-indicator/CircularProgressIndicatorElement.d.ts.map +1 -1
- package/dist/src/radio-group/RadioElement.d.ts.map +1 -1
- package/dist/src/radio-group/RadioGroupElement.d.ts.map +1 -1
- package/dist/src/segmented-button/ButtonSegmentElement.d.ts.map +1 -1
- package/dist/src/segmented-button/SegmentedButtonElement.d.ts.map +1 -1
- package/dist/src/select/SelectElement.d.ts.map +1 -1
- package/dist/src/shape/ShapeElement.d.ts.map +1 -1
- package/dist/src/slide-group/SlideGroupElement.d.ts +1 -0
- package/dist/src/slide-group/SlideGroupElement.d.ts.map +1 -1
- package/dist/src/slider/SliderElement.d.ts +3 -1
- package/dist/src/slider/SliderElement.d.ts.map +1 -1
- package/dist/src/slider/SliderThumbElement.d.ts.map +1 -1
- package/dist/src/snackbar/SnackbarElement.d.ts +2 -0
- package/dist/src/snackbar/SnackbarElement.d.ts.map +1 -1
- package/dist/src/split-button/SplitButtonElement.d.ts +1 -0
- package/dist/src/split-button/SplitButtonElement.d.ts.map +1 -1
- package/dist/src/stepper/StepElement.d.ts.map +1 -1
- package/dist/src/stepper/StepperElement.d.ts.map +1 -1
- package/dist/src/switch/SwitchElement.d.ts.map +1 -1
- package/dist/src/tabs/TabElement.d.ts.map +1 -1
- package/dist/src/tabs/TabPanelElement.d.ts.map +1 -1
- package/dist/src/tabs/TabsElement.d.ts +1 -0
- package/dist/src/tabs/TabsElement.d.ts.map +1 -1
- package/dist/src/toc/TocElement.d.ts.map +1 -1
- package/dist/src/toc/TocItemElement.d.ts.map +1 -1
- package/dist/src/tooltip/RichTooltipActionElement.d.ts.map +1 -1
- package/dist/src/tooltip/TooltipElementBase.d.ts +1 -1
- package/dist/src/tooltip/TooltipElementBase.d.ts.map +1 -1
- package/dist/stepper.js +9 -9
- package/dist/stepper.js.map +1 -1
- package/dist/stepper.min.js +1 -1
- package/dist/stepper.min.js.map +1 -1
- package/dist/switch.js +2 -2
- package/dist/switch.js.map +1 -1
- package/dist/switch.min.js +1 -1
- package/dist/switch.min.js.map +1 -1
- package/dist/tabs.js +8 -7
- package/dist/tabs.js.map +1 -1
- package/dist/tabs.min.js +1 -1
- package/dist/tabs.min.js.map +1 -1
- package/dist/textarea-autosize.js +2 -2
- package/dist/textarea-autosize.js.map +1 -1
- package/dist/textarea-autosize.min.js +2 -2
- package/dist/textarea-autosize.min.js.map +1 -1
- package/dist/theme.js +2 -2
- package/dist/theme.js.map +1 -1
- package/dist/theme.min.js +2 -2
- package/dist/theme.min.js.map +1 -1
- package/dist/toc.js +9 -9
- package/dist/toc.js.map +1 -1
- package/dist/toc.min.js +1 -1
- package/dist/toc.min.js.map +1 -1
- package/dist/toolbar.js +2 -2
- package/dist/toolbar.js.map +1 -1
- package/dist/toolbar.min.js +1 -1
- package/dist/toolbar.min.js.map +1 -1
- package/dist/tooltip.js +5 -5
- package/dist/tooltip.js.map +1 -1
- package/dist/tooltip.min.js +1 -1
- package/dist/tooltip.min.js.map +1 -1
- package/package.json +1 -1
package/dist/core.min.js
CHANGED
|
@@ -3,5 +3,5 @@
|
|
|
3
3
|
* Copyright (c) 2025 matraic
|
|
4
4
|
* See LICENSE file in the project root for full license text.
|
|
5
5
|
*/
|
|
6
|
-
import{isServer as e,nothing as t,noChange as s,unsafeCSS as i,html as a,css as r,LitElement as n}from"lit";import{directive as o,Directive as l,PartType as c}from"lit/directive.js";import{property as d,customElement as h,query as p}from"lit/decorators.js";import{ifDefined as m}from"lit/directives/if-defined.js";function u(e,t,s,i){var a,r=arguments.length,n=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,s):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,s,i);else for(var o=e.length-1;o>=0;o--)(a=e[o])&&(n=(r<3?a(n):r>3?a(t,s,n):a(t,s))||n);return r>3&&n&&Object.defineProperty(t,s,n),n}function f(e,t,s,i){if("a"===s&&!i)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!i:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===s?i:"a"===s?i.call(e):i?i.value:t.get(e)}function v(e,t,s,i,a){if("m"===i)throw new TypeError("Private method is not writable");if("a"===i&&!a)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!a:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===i?a.call(e,s):a?a.value=s:t.set(e,s),s}var y,g,b,x,w,k,$,E,L,S,z,M,C,W,F,A,_,T,D,H,P,O,I,B,V,U,q,N,R,j,X,Y,G,Z,K,Q,J,ee,te,se,ie,ae,re,ne,oe,le,ce,de,he,pe,me,ue,fe,ve,ye,ge,be,xe,we,ke,$e,Ee,Le,Se,ze,Me,Ce,We,Fe,Ae,_e,Te,De,He,Pe,Oe,Ie,Be,Ve,Ue,qe,Ne,Re,je,Xe,Ye,Ge,Ze,Ke,Qe,Je,et;"function"==typeof SuppressedError&&SuppressedError;class tt{constructor(e,t){y.set(this,null),g.set(this,0),b.set(this,!1),x.set(this,void 0),w.set(this,()=>{if(!f(this,b,"f"))return;const e=performance.now();f(this,x,"f").call(this,(e-f(this,g,"f"))/1e3,e/1e3),v(this,g,e,"f"),v(this,y,requestAnimationFrame(f(this,w,"f")),"f")}),v(this,x,t,"f"),e.addController(this)}hostDisconnected(){this.stop()}start(){f(this,b,"f")||(v(this,b,!0,"f"),v(this,g,performance.now(),"f"),f(this,w,"f").call(this))}stop(){f(this,b,"f")&&(v(this,b,!1,"f"),null!==f(this,y,"f")&&(cancelAnimationFrame(f(this,y,"f")),v(this,y,null,"f")))}}y=new WeakMap,g=new WeakMap,b=new WeakMap,x=new WeakMap,w=new WeakMap;class st{constructor(e,t){k.set(this,void 0),$.set(this,void 0),E.set(this,new Set),v(this,k,e,"f"),v(this,$,t.target,"f"),f(this,k,"f").addController(this)}get targets(){return f(this,E,"f").values()}hostConnected(){null!==f(this,$,"f")&&this.observe(f(this,$,"f")??f(this,k,"f"))}hostDisconnected(){f(this,E,"f").forEach(e=>this.unobserve(e)),f(this,E,"f").clear()}observe(e){f(this,E,"f").has(e)||(f(this,E,"f").add(e),this._observe(e))}isObserving(e){return f(this,E,"f").has(e)}unobserve(e){f(this,E,"f").delete(e)&&this._unobserve(e)}}function it(e,t){if(!t)return 0;const s=document.createElement("div");s.style.all="inherit",s.style.width=t,s.style.position="absolute",s.style.visibility="hidden",s.style.pointerEvents="none",e.appendChild(s);try{return parseFloat(getComputedStyle(s).width)}finally{s.remove()}}function at(e){const t=parseFloat(getComputedStyle(e).lineHeight);return isNaN(t)||t<=0?0:Math.round(e.scrollHeight/t)}async function rt(e,t=200){function s(e){const t=e.getRootNode();return t instanceof ShadowRoot?t.activeElement===e:document.activeElement===e}e.focus();const i=performance.now();for(;!s(e);){if(!e.isConnected||performance.now()-i>t)return!1;await new Promise(requestAnimationFrame),e.focus()}return!0}function nt(){return!e&&matchMedia("(forced-colors: active)").matches}function ot(e,t,s){return e+(t-e)*s}function lt(e,t,s,i){return{x:Math.pow(1-i,2)*e.x+2*(1-i)*i*t.x+Math.pow(i,2)*s.x,y:Math.pow(1-i,2)*e.y+2*(1-i)*i*t.y+Math.pow(i,2)*s.y}}function ct(e,t,s,i,a){return{x:Math.pow(1-a,3)*e.x+3*Math.pow(1-a,2)*a*t.x+3*(1-a)*Math.pow(a,2)*s.x+Math.pow(a,3)*i.x,y:Math.pow(1-a,3)*e.y+3*Math.pow(1-a,2)*a*t.y+3*(1-a)*Math.pow(a,2)*s.y+Math.pow(a,3)*i.y}}function dt(e,t){const s=function(e){return(e.match(/[a-zA-Z][^a-zA-Z]*/g)||[]).map(e=>({type:e[0],nums:e.slice(1).trim().split(/[\s,]+/).filter(Boolean).map(Number)}))}(e);let i={x:0,y:0},a={x:0,y:0};const r=[];for(const e of s)if("M"===e.type)i={x:e.nums[0],y:e.nums[1]},a=i;else if("L"===e.type){const t={x:e.nums[0],y:e.nums[1]},s=t.x-i.x,a=t.y-i.y;r.push({type:"L",pts:[i,t],length:Math.hypot(s,a)}),i=t}else if("H"===e.type){const t={x:e.nums[0],y:i.y},s=t.x-i.x;r.push({type:"L",pts:[i,t],length:Math.abs(s)}),i=t}else if("V"===e.type){const t={x:i.x,y:e.nums[0]},s=t.y-i.y;r.push({type:"L",pts:[i,t],length:Math.abs(s)}),i=t}else if("Q"===e.type){const t={x:e.nums[0],y:e.nums[1]},s={x:e.nums[2],y:e.nums[3]};let a=0,n=i;const o=20;for(let e=1;e<=o;e++){const r=lt(i,t,s,e/o);a+=Math.hypot(r.x-n.x,r.y-n.y),n=r}r.push({type:"Q",pts:[i,t,s],length:a}),i=s}else if("C"===e.type){const t={x:e.nums[0],y:e.nums[1]},s={x:e.nums[2],y:e.nums[3]},a={x:e.nums[4],y:e.nums[5]};let n=0,o=i;const l=20;for(let e=1;e<=l;e++){const r=ct(i,t,s,a,e/l);n+=Math.hypot(r.x-o.x,r.y-o.y),o=r}r.push({type:"C",pts:[i,t,s,a],length:n}),i=a}else if("Z"===e.type){const e=a.x-i.x,t=a.y-i.y;r.push({type:"L",pts:[i,a],length:Math.hypot(e,t)}),i=a}const n=r.reduce((e,t)=>e+t.length,0)/(t-1),o=[];let l=0,c=0;for(let e=0;e<t;e++){const t=e*n;for(;c<r.length&&l+r[c].length<t;)l+=r[c].length,c++;const s=r[c];if(!s)break;const i=(t-l)/s.length;if("L"===s.type){const[e,t]=s.pts;o.push({x:ot(e.x,t.x,i),y:ot(e.y,t.y,i)})}else if("Q"===s.type){const[e,t,a]=s.pts;o.push(lt(e,t,a,i))}else if("C"===s.type){const[e,t,a,r]=s.pts;o.push(ct(e,t,a,r,i))}}return o}function ht(e,t,s){return Math.max(t,Math.min(s,e))}function pt(e,t){const s=e.length,i=new Array(s);for(let a=0;a<s;a++)i[a]=e[(a+t)%s];return i}function mt(e,t){const s=Math.min(t.length,e.length);let i=0,a=1/0;for(let r=0;r<s;r++){let n=0;for(let i=0;i<s;i++){const o=t[(i+r)%s],l=e[i],c=o.x-l.x,d=o.y-l.y;if(n+=c*c+d*d,n>=a)break}n<a&&(a=n,i=r)}return i}function ut(e){let t=0;const s=e.length;for(let i=0;i<s;i++){const a=e[i],r=e[(i+1)%s];t+=a.x*r.y-r.x*a.y}return t/2}function ft(e,t){return function(e){const t=e.map(e=>{const t=function(e){let t=1/0,s=1/0,i=-1/0,a=-1/0;for(const r of e)r.x<t&&(t=r.x),r.x>i&&(i=r.x),r.y<s&&(s=r.y),r.y>a&&(a=r.y);return{minX:t,minY:s,maxX:i,maxY:a,width:i-t,height:a-s}}(e),s=e.map(e=>({x:e.x-t.minX,y:e.y-t.minY})),i=Math.max(t.width,t.height)||1,a=s.map(e=>({x:e.x/i,y:e.y/i})),r=t.width/i,n=t.height/i,o=(1-r)/2,l=(1-n)/2;return a.map(e=>({x:e.x+o,y:e.y+l}))}),s=t[0],i=Math.sign(ut(s));for(let e=1;e<t.length;e++){let a=t[e];const r=Math.sign(ut(a));0!==r&&r!==i&&(a=a.slice().reverse());const n=mt(s,a);t[e]=pt(a,n)}return t}(e.map(e=>dt(e,t))).map(e=>`${e.map(e=>{const t=ht(100*e.x,0,100),s=ht(100*e.y,0,100);return`${t.toFixed(2)}% ${s.toFixed(2)}%`}).join(", ")}`)}function vt(e,t=!1){let s="";switch(e.nodeType){case Node.TEXT_NODE:s=e.nodeValue??"";break;case Node.ELEMENT_NODE:if(e instanceof HTMLSlotElement)for(const i of e.assignedNodes({flatten:!0}))s+=vt(i,t);else for(const i of e.childNodes)s+=vt(i,t)}return t&&(s=s.trim()),s}function yt(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,e=>{const t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)})}function gt(e){return e.assignedNodes({flatten:!0}).length>0}function bt(e,t,s){const i=Object.getOwnPropertyDescriptor(e,t)??Object.getOwnPropertyDescriptor(Object.getPrototypeOf(e),t);if(!i)throw new Error(`Property ${String(t)} not found on target.`);const a=i.get?.bind(e),r=i.set?.bind(e);return Object.defineProperty(e,t,{configurable:!0,enumerable:i.enumerable,get:()=>s.get?s.get(()=>a?.()):a?.(),set(e){s.set?s.set(e,e=>r?.(e)):r?.(e)}}),()=>Object.defineProperty(e,t,i)}function xt(){return e||matchMedia("(prefers-reduced-motion)").matches}function wt(e,t=document){return new Promise(s=>{const i=t.querySelector(`#${e}`);i?s(i):"complete"!==document.readyState&&"interactive"!==document.readyState?document.addEventListener("DOMContentLoaded",()=>s(t.querySelector(`#${e}`)),{once:!0}):s(t.querySelector(`#${e}`))})}function kt(e){const t=document?.location??null;return`url(${t?(t.pathname+t.search).split("#")[0]:""}#${e})`}function $t(e,t,s){const i=t.getBoundingClientRect(),a=e.getBoundingClientRect();(a.top<i.top||a.bottom>i.bottom)&&e.scrollIntoView(s)}k=new WeakMap,$=new WeakMap,E=new WeakMap;class Et{constructor(e=100){L.set(this,[]),S.set(this,void 0),v(this,S,e,"f")}add(e,t=performance.now()){f(this,L,"f").push({y:e,t:t});const s=t-f(this,S,"f");for(;f(this,L,"f").length>1&&f(this,L,"f")[0].t<s;)f(this,L,"f").shift()}getVelocity(){if(f(this,L,"f").length<2)return 0;const e=f(this,L,"f")[0],t=f(this,L,"f")[f(this,L,"f").length-1],s=t.y-e.y,i=(t.t-e.t)/1e3;return i>0?s/i:0}reset(){f(this,L,"f").length=0}}L=new WeakMap,S=new WeakMap;class Lt extends st{constructor(e,t){super(e,t),z.add(this),M.set(this,!1),C.set(this,void 0),W.set(this,e=>f(this,z,"m",O).call(this,e)),F.set(this,e=>f(this,z,"m",I).call(this,e)),A.set(this,e=>f(this,z,"m",B).call(this,e)),_.set(this,()=>v(this,M,!0,"f")),T.set(this,()=>v(this,M,!1,"f")),D.set(this,!1),H.set(this,()=>v(this,D,!0,"f")),P.set(this,()=>v(this,D,!1,"f")),v(this,C,t.callback,"f")}hostConnected(){super.hostConnected(),window?.addEventListener("keydown",f(this,H,"f"),{capture:!0,passive:!0}),window?.addEventListener("pointerdown",f(this,P,"f"),{capture:!0})}hostDisconnected(){super.hostDisconnected(),window?.removeEventListener("keydown",f(this,H,"f"),{capture:!0}),window?.removeEventListener("pointerdown",f(this,P,"f"),{capture:!0})}_observe(e){e.addEventListener("keydown",f(this,W,"f")),e.addEventListener("focusin",f(this,F,"f")),e.addEventListener("focusout",f(this,A,"f")),e.addEventListener("touchstart",f(this,_,"f")),e.addEventListener("touchend",f(this,T,"f")),e.addEventListener("touchcancel",f(this,T,"f"))}_unobserve(e){e.removeEventListener("keydown",f(this,W,"f")),e.removeEventListener("focusin",f(this,F,"f")),e.removeEventListener("focusout",f(this,A,"f")),e.removeEventListener("touchstart",f(this,_,"f")),e.removeEventListener("touchend",f(this,T,"f")),e.removeEventListener("touchcancel",f(this,T,"f"))}}M=new WeakMap,C=new WeakMap,W=new WeakMap,F=new WeakMap,A=new WeakMap,_=new WeakMap,T=new WeakMap,D=new WeakMap,H=new WeakMap,P=new WeakMap,z=new WeakSet,O=function(e){e.currentTarget.matches(":focus-within")&&f(this,z,"m",I).call(this,e)},I=function(e){if(f(this,M,"f"))return;const t=e.currentTarget;f(this,C,"f").call(this,!0,t.matches(":focus-visible")||f(this,D,"f")||nt(),t)},B=function(e){f(this,M,"f")||f(this,C,"f").call(this,!1,!1,e.currentTarget)};class St extends st{constructor(e,t){super(e,t),V.add(this),U.set(this,void 0),q.set(this,new Map),N.set(this,new Map),R.set(this,e=>f(this,V,"m",Z).call(this,e)),j.set(this,e=>f(this,V,"m",K).call(this,e)),v(this,U,t.callback,"f"),this.startDelay=t.startDelay??0,this.endDelay=t.endDelay??0}clearDelays(){for(const e of this.targets)f(this,V,"m",X).call(this,e)}_observe(e){e.addEventListener("pointerenter",f(this,R,"f")),e.addEventListener("pointerleave",f(this,j,"f"))}_unobserve(e){e.removeEventListener("pointerenter",f(this,R,"f")),e.removeEventListener("pointerleave",f(this,j,"f"))}}U=new WeakMap,q=new WeakMap,N=new WeakMap,R=new WeakMap,j=new WeakMap,V=new WeakSet,X=function(e){f(this,V,"m",Y).call(this,e),f(this,V,"m",G).call(this,e)},Y=function(e){return!!f(this,q,"f").has(e)&&(clearTimeout(f(this,q,"f").get(e)),f(this,q,"f").delete(e))},G=function(e){return!!f(this,N,"f").has(e)&&(clearTimeout(f(this,N,"f").get(e)),f(this,N,"f").delete(e))},Z=function(e){const t=e.target;f(this,V,"m",G).call(this,t),this.startDelay>0?(f(this,V,"m",Y).call(this,t),f(this,q,"f").set(t,setTimeout(()=>{f(this,q,"f").delete(t),f(this,U,"f").call(this,!0,t)},this.startDelay))):f(this,U,"f").call(this,!0,t)},K=function(e){const t=e.target;f(this,V,"m",Y).call(this,t)||(this.endDelay>0?(f(this,V,"m",G).call(this,t),f(this,N,"f").set(t,setTimeout(()=>{f(this,N,"f").delete(t),f(this,U,"f").call(this,!1,t)},this.endDelay))):f(this,U,"f").call(this,!1,t))};class zt extends st{constructor(t,s){super(t,s),Q.set(this,void 0),J.set(this,void 0),ee.set(this,!1),te.set(this,void 0),se.set(this,!0),v(this,Q,t,"f"),v(this,J,s.callback,"f"),v(this,ee,s.skipInitial??!1,"f"),e||(window.IntersectionObserver?v(this,te,new IntersectionObserver((e,t)=>{f(this,J,"f").call(this,e,t),f(this,Q,"f").requestUpdate()},s.init),"f"):console.warn("IntersectionController error: the browser does not support IntersectionObserver."))}async hostUpdated(){f(this,te,"f")&&!f(this,ee,"f")&&f(this,se,"f")&&f(this,J,"f").call(this,[],f(this,te,"f")),v(this,se,!1,"f")}_observe(e){f(this,te,"f")?.observe(e),v(this,se,!0,"f"),f(this,Q,"f").requestUpdate()}_unobserve(e){f(this,te,"f")?.unobserve(e)}}Q=new WeakMap,J=new WeakMap,ee=new WeakMap,te=new WeakMap,se=new WeakMap;class Mt extends st{constructor(e,t){super(e,t),ie.add(this),ae.set(this,void 0),re.set(this,void 0),ne.set(this,new Set),oe.set(this,new Map),le.set(this,e=>f(this,ie,"m",de).call(this,e)),ce.set(this,e=>f(this,ie,"m",he).call(this,e)),v(this,ae,t.callback,"f"),v(this,re,t.threshold??500,"f")}_observe(e){e.addEventListener("touchstart",f(this,le,"f"),{passive:!0}),e.addEventListener("touchend",f(this,ce,"f")),e.addEventListener("touchcancel",f(this,ce,"f"))}_unobserve(e){e.removeEventListener("touchstart",f(this,le,"f")),e.removeEventListener("touchend",f(this,ce,"f")),e.removeEventListener("touchcancel",f(this,ce,"f"))}}ae=new WeakMap,re=new WeakMap,ne=new WeakMap,oe=new WeakMap,le=new WeakMap,ce=new WeakMap,ie=new WeakSet,de=function(e){if(e.currentTarget instanceof HTMLElement&&this.isObserving(e.currentTarget)){const t=e.currentTarget;f(this,oe,"f").set(t,setTimeout(()=>{f(this,ne,"f").add(t),f(this,oe,"f").delete(t),f(this,ae,"f").call(this,!0,t)},f(this,re,"f")))}},he=function(e){if(e.currentTarget instanceof HTMLElement&&this.isObserving(e.currentTarget)){const t=e.currentTarget;f(this,ne,"f").has(t)&&(f(this,ae,"f").call(this,!1,t),f(this,ne,"f").delete(t)),f(this,oe,"f").has(t)&&(clearTimeout(f(this,oe,"f").get(t)),f(this,oe,"f").delete(t))}};class Ct extends st{constructor(t,s){super(t,s),pe.set(this,void 0),me.set(this,void 0),ue.set(this,!1),fe.set(this,void 0),ve.set(this,void 0),ye.set(this,!0),v(this,pe,t,"f"),v(this,me,s.callback,"f"),v(this,ue,s.skipInitial??!1,"f"),v(this,fe,s.config,"f"),e||(window.MutationObserver?v(this,ve,new MutationObserver((e,t)=>{f(this,me,"f").call(this,e,t),f(this,pe,"f").requestUpdate()}),"f"):console.warn("MutationController error: the browser does not support MutationObserver."))}async hostUpdated(){if(f(this,ve,"f")&&!f(this,ue,"f")&&f(this,ye,"f")){const e=f(this,ve,"f").takeRecords();e.length>0&&f(this,me,"f").call(this,e,f(this,ve,"f"))}v(this,ye,!1,"f")}hostDisconnected(){super.hostDisconnected(),f(this,ve,"f")?.disconnect()}_observe(e){f(this,ve,"f")?.observe(e,f(this,fe,"f")),v(this,ye,!0,"f"),f(this,pe,"f").requestUpdate()}_unobserve(){f(this,ve,"f")?.disconnect();for(const e of this.targets)f(this,ve,"f")?.observe(e,f(this,fe,"f"))}}pe=new WeakMap,me=new WeakMap,ue=new WeakMap,fe=new WeakMap,ve=new WeakMap,ye=new WeakMap;class Wt extends st{constructor(e,t){super(e,t),ge.add(this),be.set(this,void 0),xe.set(this,void 0),we.set(this,void 0),ke.set(this,new Map),$e.set(this,void 0),Ee.set(this,e=>f(this,ge,"m",Ce).call(this,e)),Le.set(this,e=>f(this,ge,"m",We).call(this,e)),Se.set(this,e=>f(this,ge,"m",Fe).call(this,e)),ze.set(this,e=>f(this,ge,"m",Ae).call(this,e)),Me.set(this,e=>f(this,ge,"m",_e).call(this,e)),v(this,be,t.capture,"f"),v(this,xe,t.callback,"f"),v(this,we,t.isPressedKey,"f"),v(this,$e,t.minPressedDuration??0,"f")}hostConnected(){document.addEventListener("pointerup",f(this,Le,"f"),{capture:f(this,be,"f")}),document.addEventListener("touchend",f(this,Se,"f"),{capture:f(this,be,"f")}),document.addEventListener("touchcancel",f(this,Se,"f"),{capture:f(this,be,"f")}),super.hostConnected()}hostDisconnected(){document.removeEventListener("pointerup",f(this,Le,"f"),{capture:f(this,be,"f")}),document.removeEventListener("touchend",f(this,Se,"f"),{capture:f(this,be,"f")}),document.removeEventListener("touchcancel",f(this,Se,"f"),{capture:f(this,be,"f")}),super.hostDisconnected(),f(this,ke,"f").clear()}_observe(e){e.addEventListener("pointerdown",f(this,Ee,"f"),{capture:f(this,be,"f")}),f(this,we,"f")&&(e.addEventListener("keydown",f(this,ze,"f"),{capture:f(this,be,"f")}),e.addEventListener("keyup",f(this,Me,"f"),{capture:f(this,be,"f")}))}_unobserve(e){e.removeEventListener("pointerdown",f(this,Ee,"f"),{capture:f(this,be,"f")}),f(this,we,"f")&&(e.removeEventListener("keydown",f(this,ze,"f"),{capture:f(this,be,"f")}),e.removeEventListener("keyup",f(this,Me,"f"),{capture:f(this,be,"f")}))}}be=new WeakMap,xe=new WeakMap,we=new WeakMap,ke=new WeakMap,$e=new WeakMap,Ee=new WeakMap,Le=new WeakMap,Se=new WeakMap,ze=new WeakMap,Me=new WeakMap,ge=new WeakSet,Ce=function(e){if(!("mouse"===e.pointerType&&e.button>1))for(const t of e.composedPath())if(t instanceof HTMLElement&&this.isObserving(t)){f(this,ke,"f").has(t)||(f(this,ke,"f").set(t,performance.now()),f(this,xe,"f").call(this,!0,{x:e.x,y:e.y},t));break}},We=function(e){"mouse"===e.pointerType&&e.button>1||f(this,ge,"m",Te).call(this,e.x,e.y)},Fe=function(e){f(this,ge,"m",Te).call(this,e.changedTouches[0]?.clientX??0,e.changedTouches[0]?.clientY??0)},Ae=function(e){if(e.target!==e.currentTarget)return;const t=e.currentTarget;if(f(this,we,"f")?.call(this,e.key)&&(" "===e.key&&e.preventDefault(),!f(this,ke,"f").has(t))){f(this,ke,"f").set(t,performance.now());const e=t.getBoundingClientRect();f(this,xe,"f").call(this,!0,{x:e.x+e.width/2,y:e.y+e.height/2},t)}},_e=function(e){const t=e.target;if(f(this,ke,"f").has(t)&&f(this,we,"f")?.call(this,e.key)){const e=f(this,$e,"f")-(performance.now()-f(this,ke,"f").get(t)),s=t.getBoundingClientRect();e>0?setTimeout(()=>{f(this,ke,"f").delete(t),f(this,xe,"f").call(this,!1,{x:s.x+s.width/2,y:s.y+s.height/2},t)},e):(f(this,ke,"f").delete(t),f(this,xe,"f").call(this,!1,{x:s.x+s.width/2,y:s.y+s.height/2},t))}},Te=function(e,t){for(const s of f(this,ke,"f")){const i=f(this,$e,"f")-(performance.now()-s[1]);i>0?setTimeout(()=>{f(this,ke,"f").delete(s[0]),f(this,xe,"f").call(this,!1,{x:e,y:t},s[0])},i):(f(this,ke,"f").delete(s[0]),f(this,xe,"f").call(this,!1,{x:e,y:t},s[0]))}};class Ft extends st{constructor(t,s){super(t,s),De.set(this,void 0),He.set(this,void 0),Pe.set(this,void 0),Oe.set(this,void 0),Ie.set(this,void 0),Be.set(this,!0),v(this,De,t,"f"),v(this,He,s.callback,"f"),v(this,Pe,s.skipInitial??!1,"f"),v(this,Oe,s.config,"f"),e||(window.ResizeObserver?v(this,Ie,new ResizeObserver((e,t)=>{f(this,He,"f").call(this,e,t),f(this,De,"f").requestUpdate()}),"f"):console.warn("ResizeController error: the browser does not support ResizeObserver."))}async hostUpdated(){f(this,Ie,"f")&&!f(this,Pe,"f")&&f(this,Be,"f")&&f(this,He,"f").call(this,[],f(this,Ie,"f")),v(this,Be,!1,"f")}_observe(e){f(this,Ie,"f")?.observe(e,f(this,Oe,"f")),v(this,Be,!0,"f"),f(this,De,"f").requestUpdate()}_unobserve(e){f(this,Ie,"f")?.unobserve(e)}}function At(e){const t=Symbol("_id");return(s,i,a)=>{const r=a.value;return a.value=function(...s){clearTimeout(this[t]),this[t]=setTimeout(()=>r.apply(this,s),e)},a}}De=new WeakMap,He=new WeakMap,Pe=new WeakMap,Oe=new WeakMap,Ie=new WeakMap,Be=new WeakMap;class _t extends st{constructor(e,t){super(e,t),Ve.add(this),Ue.set(this,void 0),qe.set(this,void 0),Ne.set(this,e=>f(this,Ve,"m",Xe).call(this,e)),Re.set(this,new Map),v(this,Ue,!0===t.debounce,"f"),v(this,qe,t.callback,"f")}getScrollContainers(e){return f(this,Re,"f").get(e)}_observe(e){const t=f(this,Ve,"m",je).call(this,e);if(t.length>0){f(this,Re,"f").set(e,t);for(const e of t)(e===document.documentElement?document:e).addEventListener("scroll",f(this,Ne,"f"),{passive:!0})}}_unobserve(e){if(f(this,Re,"f").has(e)){for(const t of f(this,Re,"f").get(e))(t===document.documentElement?document:t).removeEventListener("scroll",f(this,Ne,"f"));f(this,Re,"f").delete(e)}}_debounceCallback(e){f(this,qe,"f").call(this,e)}}Ue=new WeakMap,qe=new WeakMap,Ne=new WeakMap,Re=new WeakMap,Ve=new WeakSet,je=function(e){const t=new Array;let s=e;for(;s;){const e=getComputedStyle(s);/(auto|scroll)/.test(e.overflow+e.overflowY+e.overflowX)&&t.push(s),s=s.parentElement}return t},Xe=function(e){const t=e.target===document?document.documentElement:e.target;f(this,Ue,"f")?this._debounceCallback(t):f(this,qe,"f").call(this,t)},u([At(40)],_t.prototype,"_debounceCallback",null);class Tt{constructor(e){Ye.add(this),Ge.set(this,!1),Ze.set(this,0),Ke.set(this,0),Qe.set(this,""),Je.set(this,""),e.addController(this)}lock(){f(this,Ge,"f")||(v(this,Ge,!0,"f"),v(this,Ze,window.scrollY,"f"),v(this,Ke,window.scrollX,"f"),v(this,Qe,document.documentElement.style.overflow,"f"),v(this,Je,document.documentElement.style.scrollbarGutter,"f"),f(this,Ye,"m",et).call(this)&&(document.documentElement.style.scrollbarGutter="stable"),document.documentElement.style.overflow="hidden",window.scrollTo(f(this,Ke,"f"),f(this,Ze,"f")))}unlock(){f(this,Ge,"f")&&(v(this,Ge,!1,"f"),document.documentElement.style.overflow=f(this,Qe,"f"),document.documentElement.style.scrollbarGutter=f(this,Je,"f"),window.scrollTo(f(this,Ke,"f"),f(this,Ze,"f")))}hostDisconnected(){this.unlock()}}Ge=new WeakMap,Ze=new WeakMap,Ke=new WeakMap,Qe=new WeakMap,Je=new WeakMap,Ye=new WeakSet,et=function(){return document.documentElement.scrollHeight>document.documentElement.clientHeight};const Dt={fromAttribute:e=>e?e.split(/\s+/).map(e=>e.trim()).filter(Boolean):[],toAttribute:e=>e.join(" ")},Ht="important",Pt=" !"+Ht;const Ot=o(class extends l{constructor(e){if(super(e),e.type!==c.ATTRIBUTE||"style"!==e.name||e.strings?.length>2)throw new Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(e){return t}update(e,[t]){const{style:i}=e.element;void 0===this._previousStyleProperties&&(this._previousStyleProperties=new Set(Object.keys(t)));for(const e of this._previousStyleProperties)null==t[e]&&(this._previousStyleProperties.delete(e),e.includes("-")?i.removeProperty(e):i[e]=null);for(const e in t){const s=t[e];if(null!=s){this._previousStyleProperties.add(e);const t="string"==typeof s&&s.endsWith(Pt);e.includes("-")||t?i.setProperty(e,t?s.slice(0,-11):s,t?Ht:""):i[e]=s}}return s}});function It(e,...t){return"object"==typeof e&&null!==e&&t.every(t=>t in e)}const Bt=Symbol("internals");function Vt(e){return It(e,Bt)}const Ut=Symbol("_internals");function qt(e,t){class s extends e{get[Bt](){return this[Ut]??(this[Ut]=this.attachInternals())}}return s.formAssociated=t,s}function Nt(e){return It(e,"checked")}function Rt(e){class t extends e{constructor(){super(...arguments),this.checked=!1}update(e){super.update(e),e.has("checked")&&("button"===this.role?(this.ariaPressed=`${this.checked}`,this.ariaChecked=null):this.role&&"none"!==this.role&&"presentation"!==this.role&&(this.ariaChecked=`${this.checked}`,this.ariaPressed=null))}}return u([d({type:Boolean,reflect:!0})],t.prototype,"checked",void 0),t}function jt(e){return It(e,"indeterminate")&&Nt(e)}function Xt(e){class t extends(Rt(e)){constructor(){super(...arguments),this.indeterminate=!1}update(e){super.update(e),e.has("indeterminate")&&this.role&&"none"!==this.role&&"presentation"!==this.role&&(this.ariaChecked=!this.checked&&this.indeterminate?"mixed":`${this.checked}`)}}return u([d({type:Boolean,reflect:!0})],t.prototype,"indeterminate",void 0),t}function Yt(e){return It(e,"selected")}function Gt(e){class t extends e{constructor(){super(...arguments),this.selected=!1}update(e){super.update(e),e.has("selected")&&("button"===this.role?(this.ariaPressed=`${this.selected}`,this.ariaSelected=null,this.ariaChecked=null):"radio"===this.role?(this.ariaChecked=`${this.selected}`,this.ariaSelected=null,this.ariaPressed=null):this.role&&"none"!==this.role&&"presentation"!==this.role&&(this.ariaSelected=`${this.selected}`,this.ariaPressed=null,this.ariaChecked=null))}}return u([d({type:Boolean,reflect:!0})],t.prototype,"selected",void 0),t}function Zt(e){return Nt(e)||Yt(e)}function Kt(e){return Nt(e)&&e.checked||Yt(e)&&e.selected}function Qt(e,t){Nt(e)?e.checked=t:e.selected=t}function Jt(e){return It(e,"dirty","pristine","markAsDirty","markAsPristine")}const es=Symbol("_eventHandler");function ts(e){var t;return t=es,class extends e{constructor(){super(...arguments),this[t]=()=>this.markAsDirty()}get dirty(){return this.classList.contains("-dirty")}get pristine(){return!this.dirty}connectedCallback(){this.markAsPristine(),super.connectedCallback(),this.addEventListener("change",this[es])}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("change",this[es])}markAsPristine(){this.classList.toggle("-dirty",!1)}markAsDirty(){this.classList.toggle("-dirty",!0)}}}function ss(e){return It(e,"touched","untouched","markAsTouched","markAsUntouched")}const is=Symbol("_eventHandler");function as(e){var t;return t=is,class extends e{constructor(){super(...arguments),this[t]=()=>this.markAsTouched()}get touched(){return this.classList.contains("-touched")}get untouched(){return!this.touched}connectedCallback(){this.markAsUntouched(),super.connectedCallback(),this.addEventListener("focusout",this[is],{capture:!0})}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("focusout",this[is],{capture:!0})}markAsTouched(){this.classList.toggle("-touched",!0)}markAsUntouched(){this.classList.toggle("-touched",!1)}}}const rs={primary:i("var(--md-sys-color-primary, #6750A4)"),onPrimary:i("var(--md-sys-color-on-primary, #FFFFFF)"),primaryContainer:i("var(--md-sys-color-primary-container, #EADDFF)"),onPrimaryContainer:i("var(--md-sys-color-on-primary-container, #4F378B)"),primaryFixed:i("var(--md-sys-color-primary-fixed, #EADDFF)"),primaryFixedDim:i("var(--md-sys-color-primary-fixed-dim, #D0BCFF)"),onPrimaryFixed:i("var(--md-sys-color-on-primary-fixed, #21005D)"),onPrimaryFixedVariant:i("var(--md-sys-color-on-primary-fixed-variant, #4F378B)"),secondary:i("var(--md-sys-color-secondary, #625B71)"),onSecondary:i("var(--md-sys-color-on-secondary, #FFFFFF)"),secondaryContainer:i("var(--md-sys-color-secondary-container, #E8DEF8)"),onSecondaryContainer:i("var(--md-sys-color-on-secondary-container, #4A4458)"),secondaryFixed:i("var(--md-sys-color-secondary-fixed, #E8DEF8)"),secondaryFixedDim:i("var(--md-sys-color-secondary-fixed-dim, #CCC2DC)"),onSecondaryFixed:i("var(--md-sys-color-on-secondary-fixed, #1D192B)"),onSecondaryFixedVariant:i("var(--md-sys-color-on-secondary-fixed-variant, #4A4458)"),tertiary:i("var(--md-sys-color-tertiary, #7D5260)"),onTertiary:i("var(--md-sys-color-on-tertiary, #FFFFFF)"),tertiaryContainer:i("var(--md-sys-color-tertiary-container, #FFD8E4)"),onTertiaryContainer:i("var(--md-sys-color-on-tertiary-container, #633B48)"),tertiaryFixed:i("var(--md-sys-color-tertiary-fixed, #FFD8E4)"),tertiaryFixedDim:i("var(--md-sys-color-tertiary-fixed-dim, #EFB8C8)"),onTertiaryFixed:i("var(--md-sys-color-on-tertiary-fixed, #31111D)"),onTertiaryFixedVariant:i("var(--md-sys-color-on-tertiary-fixed-variant, #633B48)"),error:i("var(--md-sys-color-error, #B3261E)"),onError:i("var(--md-sys-color-on-error, #FFFFFF)"),errorContainer:i("var(--md-sys-color-error-container, #F9DEDC)"),onErrorContainer:i("var(--md-sys-color-on-error-container, #8C1D18)"),surface:i("var(--md-sys-color-surface, #FEF7FF)"),onSurface:i("var(--md-sys-color-on-surface, #1D1B20)"),onSurfaceVariant:i("var(--md-sys-color-on-surface-variant, #49454F)"),surfaceContainerLowest:i("var(--md-sys-color-surface-container-lowest, #FFFFFF)"),surfaceContainerLow:i("var(--md-sys-color-surface-container-low, #F7F2FA)"),surfaceContainer:i("var(--md-sys-color-surface-container, #F3EDF7)"),surfaceContainerHigh:i("var(--md-sys-color-surface-container-high, #ECE6F0)"),surfaceContainerHighest:i("var(--md-sys-color-surface-container-highest, #E6E0E9)"),surfaceDim:i("var(--md-sys-color-surface-dim, #DED8E1)"),surfaceBright:i("var(--md-sys-color-surface-bright, #FEF7FF)"),surfaceVariant:i("var(--md-sys-color-surface-variant, #E7E0EC)"),inverseSurface:i("var(--md-sys-color-inverse-surface, #322F35)"),inverseOnSurface:i("var(--md-sys-color-inverse-on-surface, #F5EFF7)"),inversePrimary:i("var(--md-sys-color-inverse-primary, #D0BCFF)"),outline:i("var(--md-sys-color-outline, #79747E)"),outlineVariant:i("var(--md-sys-color-outline-variant, #CAC4D0)"),shadow:i("var(--md-sys-color-shadow, #000000)"),scrim:i("var(--md-sys-color-scrim, #000000)")},ns={scale:i("var(--md-sys-density-scale, 0)"),size:i("var(--md-sys-density-size, 0.25rem)")},os={...ns,calc:e=>i(`calc(max(${e}, ${ns.scale}) * ${ns.size})`)},ls=`color-mix(in srgb, var(--m3e-elevation-color, ${rs.shadow}) 20%, transparent)`,cs=["0px 0px 0px 0px","0px 2px 1px -1px","0px 3px 1px -2px","0px 3px 3px -2px","0px 2px 4px -1px","0px 3px 5px -1px","0px 3px 5px -1px","0px 4px 5px -2px","0px 5px 5px -3px","0px 5px 6px -3px","0px 6px 6px -3px","0px 6px 7px -4px","0px 7px 8px -4px","0px 7px 8px -4px","0px 7px 9px -4px","0px 8px 9px -5px","0px 8px 10px -5px","0px 8px 11px -5px","0px 9px 11px -5px","0px 9px 12px -6px","0px 10px 13px -6px","0px 10px 13px -6px","0px 10px 14px -6px","0px 11px 14px -7px","0px 11px 15px -7px"],ds=`color-mix(in srgb, var(--m3e-elevation-color, ${rs.shadow}) 14%, transparent)`,hs=["0px 0px 0px 0px","0px 1px 1px 0px","0px 2px 2px 0px","0px 3px 4px 0px","0px 4px 5px 0px","0px 5px 8px 0px","0px 6px 10px 0px","0px 7px 10px 1px","0px 8px 10px 1px","0px 9px 12px 1px","0px 10px 14px 1px","0px 11px 15px 1px","0px 12px 17px 2px","0px 13px 19px 2px","0px 14px 21px 2px","0px 15px 22px 2px","0px 16px 24px 2px","0px 17px 26px 2px","0px 18px 28px 2px","0px 19px 29px 2px","0px 20px 31px 3px","0px 21px 33px 3px","0px 22px 35px 3px","0px 23px 36px 3px","0px 24px 38px 3px"],ps=`color-mix(in srgb, var(--m3e-elevation-color, ${rs.shadow}) 12%, transparent)`,ms=["0px 0px 0px 0px","0px 1px 3px 0px","0px 1px 5px 0px","0px 1px 8px 0px","0px 1px 10px 0px","0px 1px 14px 0px","0px 1px 18px 0px","0px 2px 16px 1px","0px 3px 14px 2px","0px 3px 16px 2px","0px 4px 18px 3px","0px 4px 20px 3px","0px 5px 22px 4px","0px 5px 24px 4px","0px 5px 26px 4px","0px 6px 28px 5px","0px 6px 30px 5px","0px 6px 32px 5px","0px 7px 34px 6px","0px 7px 36px 6px","0px 8px 38px 7px","0px 8px 40px 7px","0px 8px 42px 7px","0px 9px 44px 8px","0px 9px 46px 8px"];function us(e){return`${ls} ${cs[e]},${ds} ${hs[e]},${ps} ${ms[e]}`}const fs={level0:i(`var(--md-sys-elevation-level0, ${us(0)})`),level1:i(`var(--md-sys-elevation-level1, ${us(1)})`),level2:i(`var(--md-sys-elevation-level2, ${us(3)})`),level3:i(`var(--md-sys-elevation-level3, ${us(6)})`),level4:i(`var(--md-sys-elevation-level4, ${us(8)})`),level5:i(`var(--md-sys-elevation-level5, ${us(12)})`)},vs={emphasized:i("var(--md-sys-motion-easing-emphasized, cubic-bezier(0.2, 0.0, 0, 1.0))"),emphasizedDecelerate:i("var(--md-sys-motion-easing-emphasized-decelerate, cubic-bezier(0.05, 0.7, 0.1, 1.0))"),emphasizedAccelerate:i("var(--md-sys-motion-easing-emphasized-accelerate, cubic-bezier(0.3, 0.0, 0.8, 0.15))"),standard:i("var(--md-sys-motion-easing-standard, cubic-bezier(0.2, 0.0, 0, 1.0))"),standardDecelerate:i("var(--md-sys-motion-easing-standard-decelerate, cubic-bezier(0, 0, 0, 1))"),standardAccelerate:i("var(--md-sys-motion-easing-standard-accelerate, cubic-bezier(0.3, 0, 1, 1))")},ys={fastSpatial:i("var(--md-sys-motion-spring-fast-spatial, 350ms cubic-bezier(0.27, 1.06, 0.18, 1.00))"),defaultSpatial:i("var(--md-sys-motion-spring-default-spatial, 500ms cubic-bezier(0.27, 1.06, 0.18, 1.00))"),slowSpatial:i("var(--md-sys-motion-spring-slow-spatial, 750ms cubic-bezier(0.27, 1.06, 0.18, 1.00))"),fastEffects:i("var(--md-sys-motion-spring-fast-effects, 150ms cubic-bezier(0.31, 0.94, 0.34, 1.00))"),defaultEffects:i("var(--md-sys-motion-spring-default-effects, 200ms cubic-bezier(0.34, 0.80, 0.34, 1.00))"),slowEffects:i("var(--md-sys-motion-spring-slow-effects, 200ms cubic-bezier(0.34, 0.88, 0.34, 1.00))")},gs={easing:vs,duration:{short1:i("var(--md-sys-motion-duration-short-1, 50ms)"),short2:i("var(--md-sys-motion-duration-short-2, 100ms)"),short3:i("var(--md-sys-motion-duration-short-3, 150ms)"),short4:i("var(--md-sys-motion-duration-short-4, 200ms)"),medium1:i("var(--md-sys-motion-duration-medium-1, 250ms)"),medium2:i("var(--md-sys-motion-duration-medium-2, 300ms)"),medium3:i("var(--md-sys-motion-duration-medium-3, 350ms)"),medium4:i("var(--md-sys-motion-duration-medium-4, 400ms)"),long1:i("var(--md-sys-motion-duration-long-1, 450ms)"),long2:i("var(--md-sys-motion-duration-long-2, 500ms)"),long3:i("var(--md-sys-motion-duration-long-3, 550ms)"),long4:i("var(--md-sys-motion-duration-long-4, 600ms)"),extraLong1:i("var(--md-sys-motion-duration-extra-long-1, 700ms)"),extraLong2:i("var(--md-sys-motion-duration-extra-long-2, 800ms)"),extraLong3:i("var(--md-sys-motion-duration-extra-long-3, 900ms)"),extraLong4:i("var(--md-sys-motion-duration-extra-long-4, 1000ms)")},spring:ys},bs={width:i("var(--m3e-scrollbar-width, auto)"),thinWidth:i("var(--m3e-scrollbar-thin-width, thin)"),color:i("var(--m3e-scrollbar-thumb-color, #938f94) var(--m3e-scrollbar-track-color, transparent)")},xs={none:i("var(--md-sys-shape-corner-value-none, 0)"),extraSmall:i("var(--md-sys-shape-corner-value-extra-small, 0.25rem)"),small:i("var(--md-sys-shape-corner-value-small, 0.5rem)"),medium:i("var(--md-sys-shape-corner-value-medium, 0.75rem)"),large:i("var(--md-sys-shape-corner-value-large, 1rem)"),largeIncreased:i("var(--md-sys-shape-corner-value-large-increased, 1.25rem)"),extraLarge:i("var(--md-sys-shape-corner-value-extra-large, 1.75rem)"),extraLargeIncreased:i("var(--md-sys-shape-corner-value-extra-large-increased, 2rem)"),extraExtraLarge:i("var(--md-sys-shape-corner-value-extra-extra-large, 3rem)")},ws={color:rs,elevation:fs,motion:gs,shape:{corner:{full:i("var(--md-sys-shape-corner-full, 624.9375rem)"),extraLargeTop:i(`var(--md-sys-shape-corner-extra-large-top, ${xs.extraLarge} ${xs.extraLarge} ${xs.none} ${xs.none})`),extraLarge:i(`var(--md-sys-shape-corner-extra-large, ${xs.extraLarge})`),extraLargeEnd:i(`${xs.none} ${xs.extraLarge} ${xs.extraLarge} ${xs.none}`),extraLargeStart:i(`${xs.extraLarge} ${xs.none} ${xs.none} ${xs.extraLarge}`),largeTop:i(`var(--md-sys-shape-corner-large-top, ${xs.large} ${xs.large} ${xs.none} ${xs.none})`),largeEnd:i(`var(--md-sys-shape-corner-large-end, ${xs.none} ${xs.large} ${xs.large} ${xs.none})`),largeStart:i(`var(--md-sys-shape-corner-large-end, ${xs.large} ${xs.none} ${xs.none} ${xs.large})`),large:i(`var(--md-sys-shape-corner-large, ${xs.large})`),medium:i(`var(--md-sys-shape-corner-medium, ${xs.medium})`),mediumTop:i(`${xs.medium} ${xs.medium} ${xs.none} ${xs.none}`),mediumEnd:i(`${xs.none} ${xs.medium} ${xs.medium} ${xs.none}`),mediumStart:i(`${xs.medium} ${xs.none} ${xs.none} ${xs.medium}`),small:i(`var(--md-sys-shape-corner-small, ${xs.small})`),smallTop:i(`${xs.small} ${xs.small} ${xs.none} ${xs.none}`),smallEnd:i(`${xs.none} ${xs.small} ${xs.small} ${xs.none}`),smallStart:i(`${xs.small} ${xs.none} ${xs.none} ${xs.small}`),extraSmallTop:i(`var(--md-sys-shape-corner-extra-small-top, ${xs.extraSmall} ${xs.extraSmall} ${xs.none} ${xs.none})`),extraSmall:i(`var(--md-sys-shape-corner-extra-small, ${xs.extraSmall})`),extraSmallEnd:i(`${xs.none} ${xs.extraSmall} ${xs.extraSmall} ${xs.none}`),extraSmallStart:i(`${xs.extraSmall} ${xs.none} ${xs.none} ${xs.extraSmall}`),extraSmallBottom:i(`${xs.none} ${xs.none} ${xs.extraSmall} ${xs.extraSmall}`),none:i(`var(--md-sys-shape-corner-none, ${xs.none})`),largeIncreased:i(`var(--md-sys-shape-corner-large-increased, ${xs.largeIncreased})`),extraLargeIncreased:i(`var(--md-sys-shape-corner-extra-large-increased, ${xs.extraLargeIncreased})`),extraExtraLarge:i(`var(--md-sys-shape-corner-extra-extra-large, ${xs.extraExtraLarge})`),value:xs}},state:{focusStateLayerOpacity:i("var(--md-sys-state-focus-state-layer-opacity, 10%)"),hoverStateLayerOpacity:i("var(--md-sys-state-hover-state-layer-opacity, 8%)"),pressedStateLayerOpacity:i("var(--md-sys-state-pressed-state-layer-opacity, 10%)")},typescale:{standard:{display:{large:{fontSize:i("var(--md-sys-typescale-display-large-font-size, 3.5625rem)"),fontWeight:i("var(--md-sys-typescale-display-large-font-weight, 400)"),lineHeight:i("var(--md-sys-typescale-display-large-line-height, 4rem)"),tracking:i("var(--md-sys-typescale-display-large-tracking, 0.015625rem)")},medium:{fontSize:i("var(--md-sys-typescale-display-medium-font-size, 2.8125rem)"),fontWeight:i("var(--md-sys-typescale-display-medium-font-weight, 400)"),lineHeight:i("var(--md-sys-typescale-display-medium-line-height, 3.25rem)"),tracking:i("var(--md-sys-typescale-display-medium-tracking, 0)")},small:{fontSize:i("var(--md-sys-typescale-display-small-font-size, 2.25rem)"),fontWeight:i("var(--md-sys-typescale-display-small-font-weight, 400)"),lineHeight:i("var(--md-sys-typescale-display-small-line-height, 2.75rem)"),tracking:i("var(--md-sys-typescale-display-small-tracking, 0)")}},headline:{large:{fontSize:i("var(--md-sys-typescale-headline-large-font-size, 2rem)"),fontWeight:i("var(--md-sys-typescale-headline-large-font-weight, 400)"),lineHeight:i("var(--md-sys-typescale-headline-large-line-height, 2.5rem)"),tracking:i("var(--md-sys-typescale-headline-large-tracking, 0)")},medium:{fontSize:i("var(--md-sys-typescale-headline-medium-font-size, 1.75rem)"),fontWeight:i("var(--md-sys-typescale-headline-medium-font-weight, 400)"),lineHeight:i("var(--md-sys-typescale-headline-medium-line-height, 2.25rem)"),tracking:i("var(--md-sys-typescale-headline-medium-tracking, 0)")},small:{fontSize:i("var(--md-sys-typescale-headline-small-font-size, 1.5rem)"),fontWeight:i("var(--md-sys-typescale-headline-small-font-weight, 400)"),lineHeight:i("var(--md-sys-typescale-headline-small-line-height, 2rem)"),tracking:i("var(--md-sys-typescale-headline-small-tracking, 0)")}},title:{large:{fontSize:i("var(--md-sys-typescale-title-large-font-size, 1.375rem)"),fontWeight:i("var(--md-sys-typescale-title-large-font-weight, 400)"),lineHeight:i("var(--md-sys-typescale-title-large-line-height, 1.75rem)"),tracking:i("var(--md-sys-typescale-title-large-tracking, 0)")},medium:{fontSize:i("var(--md-sys-typescale-title-medium-font-size, 1rem)"),fontWeight:i("var(--md-sys-typescale-title-medium-font-weight, 500)"),lineHeight:i("var(--md-sys-typescale-title-medium-line-height, 1.5rem)"),tracking:i("var(--md-sys-typescale-title-medium-tracking, 0.009375rem)")},small:{fontSize:i("var(--md-sys-typescale-title-small-font-size, 0.875rem)"),fontWeight:i("var(--md-sys-typescale-title-small-font-weight, 500)"),lineHeight:i("var(--md-sys-typescale-title-small-line-height, 1.25rem)"),tracking:i("var(--md-sys-typescale-title-small-tracking, 0.00625rem)")}},body:{large:{fontSize:i("var(--md-sys-typescale-body-large-font-size, 1rem)"),fontWeight:i("var(--md-sys-typescale-body-large-font-weight, 400)"),lineHeight:i("var(--md-sys-typescale-body-large-line-height, 1.5rem)"),tracking:i("var(--md-sys-typescale-body-large-tracking, 0.03125rem)")},medium:{fontSize:i("var(--md-sys-typescale-body-medium-font-size, 0.875rem)"),fontWeight:i("var(--md-sys-typescale-body-medium-font-weight, 400)"),lineHeight:i("var(--md-sys-typescale-body-medium-line-height, 1.25rem)"),tracking:i("var(--md-sys-typescale-body-medium-tracking, 0.015625rem)")},small:{fontSize:i("var(--md-sys-typescale-body-small-font-size, 0.75rem)"),fontWeight:i("var(--md-sys-typescale-body-small-font-weight, 400)"),lineHeight:i("var(--md-sys-typescale-body-small-line-height, 1rem)"),tracking:i("var(--md-sys-typescale-body-small-tracking, 0.025rem)")}},label:{large:{fontSize:i("var(--md-sys-typescale-label-large-font-size, 0.875rem)"),fontWeight:i("var(--md-sys-typescale-label-large-font-weight, 500)"),lineHeight:i("var(--md-sys-typescale-label-large-line-height, 1.25rem)"),tracking:i("var(--md-sys-typescale-label-large-tracking, 0.00625rem)")},medium:{fontSize:i("var(--md-sys-typescale-label-medium-font-size, 0.75rem)"),fontWeight:i("var(--md-sys-typescale-label-medium-font-weight, 500)"),lineHeight:i("var(--md-sys-typescale-label-medium-line-height, 1rem)"),tracking:i("var(--md-sys-typescale-label-medium-tracking, 0.03125rem)")},small:{fontSize:i("var(--md-sys-typescale-label-small-font-size, 0.6875rem)"),fontWeight:i("var(--md-sys-typescale-label-small-font-weight, 500)"),lineHeight:i("var(--md-sys-typescale-label-small-line-height, 1rem)"),tracking:i("var(--md-sys-typescale-label-small-tracking, 0.03125rem)")}}},emphasized:{display:{large:{fontSize:i("var(--md-sys-typescale-emphasized-display-large-font-size, 3.5625rem)"),fontWeight:i("var(--md-sys-typescale-emphasized-display-large-font-weight, 500)"),lineHeight:i("var(--md-sys-typescale-emphasized-display-large-line-height, 4rem)"),tracking:i("var(--md-sys-typescale-emphasized-display-large-tracking, 0.015625rem)")},medium:{fontSize:i("var(--md-sys-typescale-emphasized-display-medium-font-size, 2.8125rem)"),fontWeight:i("var(--md-sys-typescale-emphasized-display-medium-font-weight, 500)"),lineHeight:i("var(--md-sys-typescale-emphasized-display-medium-line-height, 3.25rem)"),tracking:i("var(--md-sys-typescale-emphasized-display-medium-tracking, 0)")},small:{fontSize:i("var(--md-sys-typescale-emphasized-display-small-font-size, 2.25rem)"),fontWeight:i("var(--md-sys-typescale-emphasized-display-small-font-weight, 500)"),lineHeight:i("var(--md-sys-typescale-emphasized-display-small-line-height, 2.75rem)"),tracking:i("var(--md-sys-typescale-emphasized-display-small-tracking, 0)")}},headline:{large:{fontSize:i("var(--md-sys-typescale-emphasized-headline-large-font-size, 2rem)"),fontWeight:i("var(--md-sys-typescale-emphasized-headline-large-font-weight, 500)"),lineHeight:i("var(--md-sys-typescale-emphasized-headline-large-line-height, 2.5rem)"),tracking:i("var(--md-sys-typescale-emphasized-headline-large-tracking, 0)")},medium:{fontSize:i("var(--md-sys-typescale-emphasized-headline-medium-font-size, 1.75rem)"),fontWeight:i("var(--md-sys-typescale-emphasized-headline-medium-font-weight, 500)"),lineHeight:i("var(--md-sys-typescale-emphasized-headline-medium-line-height, 2.25rem)"),tracking:i("var(--md-sys-typescale-emphasized-headline-medium-tracking, 0)")},small:{fontSize:i("var(--md-sys-typescale-emphasized-headline-small-font-size, 1.5rem)"),fontWeight:i("var(--md-sys-typescale-emphasized-headline-small-font-weight, 500)"),lineHeight:i("var(--md-sys-typescale-emphasized-headline-small-line-height, 2rem)"),tracking:i("var(--md-sys-typescale-emphasized-headline-small-tracking, 0)")}},title:{large:{fontSize:i("var(--md-sys-typescale-emphasized-title-large-font-size, 1.375rem)"),fontWeight:i("var(--md-sys-typescale-emphasized-title-large-font-weight, 500)"),lineHeight:i("var(--md-sys-typescale-emphasized-title-large-line-height, 1.75rem)"),tracking:i("var(--md-sys-typescale-emphasized-title-large-tracking, 0)")},medium:{fontSize:i("var(--md-sys-typescale-emphasized-title-medium-font-size, 1rem)"),fontWeight:i("var(--md-sys-typescale-emphasized-title-medium-font-weight, 700)"),lineHeight:i("var(--md-sys-typescale-emphasized-title-medium-line-height, 3.5rem)"),tracking:i("var(--md-sys-typescale-emphasized-title-medium-tracking, 0.009375rem)")},small:{fontSize:i("var(--md-sys-typescale-emphasized-title-small-font-size, 0.875rem)"),fontWeight:i("var(--md-sys-typescale-emphasized-title-small-font-weight, 700)"),lineHeight:i("var(--md-sys-typescale-emphasized-title-small-line-height, 1.25rem)"),tracking:i("var(--md-sys-typescale-emphasized-title-small-tracking, 0.00625rem)")}},body:{large:{fontSize:i("var(--md-sys-typescale-emphasized-body-large-font-size, 1rem)"),fontWeight:i("var(--md-sys-typescale-emphasized-body-large-font-weight, 500)"),lineHeight:i("var(--md-sys-typescale-emphasized-body-large-line-height, 1.5rem)"),tracking:i("var(--md-sys-typescale-emphasized-body-large-tracking, 0.03125rem)")},medium:{fontSize:i("var(--md-sys-typescale-emphasized-body-medium-font-size, 0.875rem)"),fontWeight:i("var(--md-sys-typescale-emphasized-body-medium-font-weight, 500)"),lineHeight:i("var(--md-sys-typescale-emphasized-body-medium-line-height, 1.25rem)"),tracking:i("var(--md-sys-typescale-emphasized-body-medium-tracking, 0.015625rem)")},small:{fontSize:i("var(--md-sys-typescale-emphasized-body-small-font-size, 0.75rem)"),fontWeight:i("var(--md-sys-typescale-emphasized-body-small-font-weight, 500)"),lineHeight:i("var(--md-sys-typescale-emphasized-body-small-line-height, 1rem)"),tracking:i("var(--md-sys-typescale-emphasized-body-small-tracking, 0.025rem)")}},label:{large:{fontSize:i("var(--md-sys-typescale-emphasized-label-large-font-size, 0.875rem)"),fontWeight:i("var(--md-sys-typescale-emphasized-label-large-font-weight, 700)"),lineHeight:i("var(--md-sys-typescale-emphasized-label-large-line-height, 1.25rem)"),tracking:i("var(--md-sys-typescale-emphasized-label-large-tracking, 0.00625rem)")},medium:{fontSize:i("var(--md-sys-typescale-emphasized-label-medium-font-size, 0.75rem)"),fontWeight:i("var(--md-sys-typescale-emphasized-label-medium-font-weight, 700)"),lineHeight:i("var(--md-sys-typescale-emphasized-label-medium-line-height, 1rem)"),tracking:i("var(--md-sys-typescale-emphasized-label-medium-tracking, 0.03125rem)")},small:{fontSize:i("var(--md-sys-typescale-emphasized-label-small-font-size, 0.6875rem)"),fontWeight:i("var(--md-sys-typescale-emphasized-label-small-font-weight, 700)"),lineHeight:i("var(--md-sys-typescale-emphasized-label-small-line-height, 1rem)"),tracking:i("var(--md-sys-typescale-emphasized-label-small-tracking, 0.03125rem)")}}}},scrollbar:bs,density:os};function ks(e){return It(e,"disabled")}function $s(e,t=!0){class s extends e{constructor(){super(...arguments),this.disabled=!1}update(e){super.update(e),e.has("disabled")&&this.role&&"none"!==this.role&&"presentation"!==this.role&&(this.ariaDisabled=this.disabled?"true":null)}}return u([d({type:Boolean,reflect:t})],s.prototype,"disabled",void 0),s}function Es(e){return It(e,"disabledInteractive")&&ks(e)}const Ls=["click","dblclick","auxclick","keydown","keyup"],Ss=["Tab","ArrowLeft","ArrowUp","ArrowRight","ArrowDown","Left","Up","Right","Down"],zs=Symbol("_suppressedEventHandler");function Ms(e){var t;class s extends e{constructor(){super(...arguments),this[t]=e=>{if(this.disabledInteractive){if(e instanceof KeyboardEvent&&Ss.includes(e.key))return;e.stopImmediatePropagation(),e.preventDefault()}},this.disabledInteractive=!1}connectedCallback(){Ls.forEach(e=>this.addEventListener(e,this[zs],!0)),super.connectedCallback()}disconnectedCallback(){Ls.forEach(e=>this.removeEventListener(e,this[zs],!0)),super.disconnectedCallback()}update(e){super.update(e),(e.has("disabled")||e.has("disabledInteractive"))&&this.role&&"none"!==this.role&&"presentation"!==this.role&&"none"!==this.role&&(this.ariaDisabled=this.disabled||this.disabledInteractive?"true":null)}}return t=zs,u([d({attribute:"disabled-interactive",type:Boolean,reflect:!0})],s.prototype,"disabledInteractive",void 0),s}const Cs=Symbol("updateLabels");function Ws(e){return It(e,"labels")&&Vt(e)}const Fs=Symbol("_eventHandler");function As(e){var t;class s extends e{constructor(){super(...arguments),this[t]=e=>{e.defaultPrevented||this[Cs]()}}get labels(){return this[Bt].labels}connectedCallback(){super.connectedCallback(),this.addEventListener("focusout",this[Fs]),this.addEventListener("change",this[Fs])}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("focusout",this[Fs]),this.removeEventListener("change",this[Fs])}update(e){super.update(e),this[Cs]()}[(t=Fs,Cs)](){const e=this.hasAttribute("tabindex"),t=ks(this)&&this.disabled||Es(this)&&this.disabledInteractive,s=ss(this)&&this.touched&&(this.ariaInvalid||this.classList.contains("-invalid"));for(const i of this.labels??[])i.style.userSelect=e?"none":"",i.style.cursor=!t&&e?"pointer":"",!t&&e?i.style.setProperty("-webkit-tap-highlight-color","rgba(0, 0, 0, 0)"):i.style.removeProperty("-webkit-tap-highlight-color"),i.style.color=t?`color-mix(in srgb, ${ws.color.onSurface} 38%, transparent)`:s?`${ws.color.error}`:""}}return s.formAssociated=!0,s}const _s=Symbol("formValue"),Ts=Symbol("defaultValue");function Ds(e){return It(e,"disabled","form","name")&&Ws(e)&&Vt(e)}const Hs=Symbol("_defaultValue"),Ps=Symbol("_defaultIndeterminate"),Os=Symbol("_formDisabled");function Is(e){var t,s;class i extends e{constructor(){super(...arguments),this[t]=!1,this[s]=!1}get form(){return this[Bt].form}get labels(){return this[Bt].labels}get[(t=Ps,s=Os,_s)](){return null}get[Ts](){return this[Hs]}get name(){return this.getAttribute("name")??""}set name(e){e?this.setAttribute("name",e):this.removeAttribute("name")}get disabled(){return super.disabled||this[Os]}set disabled(e){super.disabled=e}connectedCallback(){super.connectedCallback(),Nt(this)?(this[Hs]=this.checked,jt(this)&&(this[Ps]=this.indeterminate)):"value"in this&&(this[Hs]=this.value)}requestUpdate(e,t,s){super.requestUpdate(e,t,s),this[Bt].setFormValue(this[_s])}formDisabledCallback(e){const t=this.disabled;this[Os]=e,this.disabled!=t&&this.requestUpdate("disabled",t)}formResetCallback(){Nt(this)?(this.checked=!0===this[Hs],jt(this)&&(this.indeterminate=this[Ps])):"value"in this&&(this.value=this[Ts]),Jt(this)&&this.markAsPristine(),ss(this)&&this.markAsUntouched()}}return i.formAssociated=!0,u([d({noAccessor:!0})],i.prototype,"name",null),u([d({type:Boolean})],i.prototype,"disabled",null),i}const Bs=Symbol("validate");function Vs(e){return It(e,"willValidate","validity","validationMessage","reportValidity","checkValidity","setCustomValidity")&&Ds(e)}const Us=Symbol("_updateValidity"),qs=Symbol("_validityMessage");function Ns(t){var s,i;class a extends t{constructor(){super(...arguments),s.add(this)}get willValidate(){return this[Bt].willValidate}get validity(){return this[Us](),this[Bt].validity}get validationMessage(){return this[Us](),this[Bt].validationMessage}[(s=new WeakSet,Bs)](){return this[qs]?{customError:!0}:void 0}reportValidity(){return ss(this)&&this.markAsTouched(),this[Us](),this[Bt].reportValidity()}checkValidity(){return this[Us](),this[Bt].checkValidity()}setCustomValidity(e){this[qs]=e||void 0,this[Us]()}requestUpdate(e,t,s){super.requestUpdate(e,t,s),this[Us]()}firstUpdated(e){super.firstUpdated(e),this[Us]()}[Us](){if(e||!this.isConnected)return;const t=this[Bs](),a=t&&Object.keys(t).some(e=>!0===t[e]);let r=t?.customError?this[qs]:"";t&&!r&&(r=f(this,s,"m",i).call(this,t)),this[Bt].setValidity(t,r),this.ariaInvalid=a?"true":null,this.classList.toggle("-invalid",!0===a),Ws(this)&&this[Cs]?.()}}return i=function(e){const t=document.createElement("input");return t.type="text",e.valueMissing&&(t.required=!0,t.value=""),e.typeMismatch&&(t.type="email",t.value="not-an-email"),e.patternMismatch&&(t.pattern="[0-9]{4}",t.value="abcd"),e.tooShort&&(t.minLength=5,t.value="abc"),e.tooLong&&(t.maxLength=2,t.value="abcdef"),e.rangeUnderflow&&(t.type="number",t.min="10",t.value="5"),e.rangeOverflow&&(t.type="number",t.max="5",t.value="10"),e.stepMismatch&&(t.type="number",t.step="2",t.value="3"),e.badInput&&(t.type="number",t.value="abc"),t.setCustomValidity(""),t.checkValidity(),t.validationMessage},a}function Rs(e,...t){return class extends e{dispatchEvent(e){if(t.includes(e.type)){const t=this.getAttribute(`on${e.type}`);t&&new Function("e",`${t};`).call(this,e)}return super.dispatchEvent(e)}}}const js=Symbol("_tabindex");function Xs(e){var t;return t=js,class extends e{constructor(){super(...arguments),this[t]=0}connectedCallback(){this[js]=Number.parseInt(this.getAttribute("tabindex")??"0"),super.connectedCallback()}firstUpdated(e){super.firstUpdated(e),this.hasAttribute("tabindex")||e.has("disabled")||this.setAttribute("tabindex",`${this[js]}`)}update(e){if(super.update(e),e.has("disabled"))if(this.disabled||"none"===this.role){const e=this.getAttribute("tabindex");e&&(this[js]=Number.parseInt(e)),this.removeAttribute("tabindex")}else this.hasAttribute("tabindex")||this.setAttribute("tabindex",`${this[js]}`)}}}function Ys(e){return It(e,"name","type","value")&&Vt(e)}const Gs=Symbol("_clickHandler");function Zs(e){var t;class s extends e{constructor(){super(...arguments),this.type="button",this[t]=async e=>{if(e.defaultPrevented||ks(this)&&this.disabled||Es(this)&&this.disabledInteractive)return;const t=this[Bt].form;if(t&&"button"!==this.type&&(await new Promise(e=>setTimeout(e)),!e.defaultPrevented))switch(this.type){case"reset":t.reset();break;case"submit":t.addEventListener("submit",e=>Object.defineProperty(e,"submitter",{configurable:!0,enumerable:!0,get:()=>this}),{capture:!0,once:!0}),this[Bt].setFormValue(this.value),t.requestSubmit()}}}get name(){return this.getAttribute("name")??""}set name(e){e?this.setAttribute("name",e):this.removeAttribute("name")}get value(){return this.getAttribute("value")}set value(e){null!=e?this.setAttribute("value",e):this.removeAttribute("value")}connectedCallback(){super.connectedCallback(),this.addEventListener("click",this[Gs])}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",this[Gs])}}return t=Gs,s.formAssociated=!0,u([d()],s.prototype,"name",null),u([d()],s.prototype,"value",null),u([d()],s.prototype,"type",void 0),s}function Ks(e){return It(e,"htmlFor","control","attach","detach")}const Qs=Symbol("_control"),Js=Symbol("_firstUpdated");function ei(e){var t,s;class i extends e{constructor(){super(...arguments),this[t]=null,this[s]=!1,this.htmlFor=null}get control(){return this[Qs]}firstUpdated(e){super.firstUpdated(e),this[Js]=!0}update(e){if(super.update(e),e.has("htmlFor"))if(this.htmlFor){const e=this.getRootNode();e&&wt(this.htmlFor,e).then(e=>{e!==this.control&&(this.control&&this.detach(),e instanceof HTMLElement&&this.attach(e))})}else this.control&&this[Js]&&this.detach()}attach(e){this[Qs]=e}detach(){this[Qs]=null}}return t=Qs,s=Js,u([d({attribute:"for"})],i.prototype,"htmlFor",void 0),i}function ti(e,t=!0){var s,i,a,r,n,o,l;return i=new WeakMap,a=new WeakMap,r=new WeakMap,n=new WeakMap,s=new WeakSet,o=function(e){e.target!==e.currentTarget||ks(this)&&this.disabled||Es(this)&&this.disabledInteractive?v(this,i,!1,"f"):(" "===e.key||t&&"Enter"===e.key)&&v(this,i,!0,"f")},l=function(e){e.target!==e.currentTarget||ks(this)&&this.disabled||Es(this)&&this.disabledInteractive||!f(this,i,"f")?v(this,i,!1,"f"):(v(this,i,!1,"f"),this.dispatchEvent(new MouseEvent("click",{cancelable:!0,bubbles:!0,composed:!0})))},class extends e{constructor(){super(...arguments),s.add(this),i.set(this,!1),a.set(this,e=>f(this,s,"m",o).call(this,e)),r.set(this,e=>f(this,s,"m",l).call(this,e)),n.set(this,()=>v(this,i,!1,"f"))}connectedCallback(){super.connectedCallback(),this.addEventListener("keydown",f(this,a,"f")),this.addEventListener("keyup",f(this,r,"f")),this.addEventListener("focusout",f(this,n,"f"))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("keydown",f(this,a,"f")),this.removeEventListener("keyup",f(this,r,"f")),this.removeEventListener("focusout",f(this,n,"f"))}}}const si=Symbol("renderPseudoLink");function ii(e){return It(e,"download","href","rel","target")}const ai=Symbol("_clickHandler");function ri(e){var s,i,r,n,o;class l extends e{constructor(){super(...arguments),s.add(this),this[o]=async e=>{if(Es(this)&&this.disabledInteractive&&(e.preventDefault(),e.stopPropagation()),await new Promise(e=>e()),!e.defaultPrevented&&this.href){e.preventDefault(),e.stopImmediatePropagation();const t=document.createElement("a");t.href=this.href,t.rel=this.rel,t.target=this.target,null!=this.download&&(t.download=this.download),t.addEventListener("click",async()=>{await new Promise(e=>e()),t.remove()}),document.body.appendChild(t),t.click()}},this.href="",this.target="",this.rel=""}get download(){return this.getAttribute("download")}set download(e){const t=this.download;t!==e&&(e?this.setAttribute("download",e):this.removeAttribute("download"),this.requestUpdate("download",t))}connectedCallback(){super.connectedCallback(),this.addEventListener("click",this[ai]),this.hasAttribute("href")&&"button"===this.role&&(this.role="link")}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",this[ai])}[(s=new WeakSet,o=ai,si)](){const e=ks(this)&&this.disabled,o=Es(this)&&this.disabledInteractive;return e||o||!this.href?t:a`<a href="${this.href}" target="${m(this.target||void 0)}" rel="${m(this.rel||void 0)}" download="${m(this.download||void 0)}" tabindex="-1" aria-hidden="true" @pointerdown="${f(this,s,"m",i)}" @focus="${f(this,s,"m",r)}" @blur="${f(this,s,"m",n)}"></a>`}}return i=function(e){2!==e.button?(e.preventDefault(),e.stopImmediatePropagation(),this.dispatchEvent(new MouseEvent("click",{bubbles:!0,cancelable:!0,view:window}))):e.target.removeAttribute("aria-hidden")},r=function(e){e.target.blur(),this.focus()},n=function(e){e.target.setAttribute("aria-hidden","true")},u([d()],l.prototype,"href",void 0),u([d()],l.prototype,"target",void 0),u([d()],l.prototype,"rel",void 0),u([d({reflect:!1})],l.prototype,"download",null),l}function ni(e){return It(e,"readOnly")}function oi(e,t=!0){class s extends e{constructor(){super(...arguments),this.readOnly=!1}update(e){super.update(e),e.has("readOnly")&&(this.ariaReadOnly=this.readOnly?"true":null)}}return u([d({attribute:"readonly",type:Boolean,reflect:t})],s.prototype,"readOnly",void 0),s}function li(e){return It(e,"required","optional")}function ci(e){class t extends e{constructor(){super(...arguments),this.required=!1}get optional(){return!this.required}update(e){super.update(e),e.has("required")&&(this.ariaRequired=`${this.required}`)}}return u([d({type:Boolean,reflect:!0})],t.prototype,"required",void 0),t}function di(e){return li(e)&&Vs(e)}function hi(e){return class extends e{[Bs](){const e=super[Bs]();if(!e&&this.required){if(Nt(this)&&!this.checked)return{valueMissing:!0};if(!this.value)return{valueMissing:!0}}return e}}}function pi(e,t){return class extends e{connectedCallback(){this.role=this.role||t,super.connectedCallback()}}}function mi(e){return It(e,"vertical")}function ui(e){class t extends e{constructor(){super(...arguments),this.vertical=!1}update(e){super.update(e),e.has("vertical")&&(this.ariaOrientation=this.vertical?"vertical":"horizontal")}}return u([d({type:Boolean,reflect:!0})],t.prototype,"vertical",void 0),t}var fi,vi,yi,gi,bi,xi,wi,ki;class $i extends n{constructor(){super(...arguments),fi.set(this,e=>{e.defaultPrevented||this._onClick(e)})}connectedCallback(){super.connectedCallback(),this.parentElement?.addEventListener("click",f(this,fi,"f"))}disconnectedCallback(){super.disconnectedCallback(),this.parentElement?.removeEventListener("click",f(this,fi,"f"))}render(){return a`<slot></slot>`}}fi=new WeakMap,$i.styles=r`:host { display: contents; } ::slotted(.material-icons) { font-size: inherit !important; }`;let Ei=class extends(Rs(n,"opening","opened","closing","closed")){constructor(){super(...arguments),vi.add(this),yi.set(this,!1),gi.set(this,!1),this.open=!1}update(e){if(super.update(e),this.classList.toggle("-no-animate",!0),!f(this,yi,"f"))return this.open&&(v(this,gi,!0,"f"),f(this,vi,"m",xi).call(this)),void v(this,yi,!0,"f");this.toggleAttribute("inert",!this.open),this.open?(v(this,gi,!0,"f"),xt()||(f(this,vi,"m",xi).call(this),this.classList.toggle("-overflows",this.clientHeight<this.scrollHeight),f(this,vi,"m",wi).call(this)),this.classList.toggle("-closing",!1),this.classList.toggle("-opening",!0),this.dispatchEvent(new Event("opening")),f(this,vi,"m",wi).call(this),this.classList.toggle("-no-animate",!1),f(this,vi,"m",ki).call(this),xt()?(f(this,vi,"m",xi).call(this),this.classList.toggle("-opening",!1),this.dispatchEvent(new Event("opened"))):this.addEventListener("transitionend",()=>{this.open&&(f(this,vi,"m",xi).call(this),this.classList.toggle("-opening",!1),this.dispatchEvent(new Event("opened")))},{once:!0})):(this.classList.toggle("-opening",!1),this.classList.toggle("-closing",!0),this.dispatchEvent(new Event("closing")),f(this,vi,"m",ki).call(this),f(this,gi,"f")&&this.classList.toggle("-no-animate",!1),xt()?(f(this,vi,"m",wi).call(this),this.classList.toggle("-closing",!1),this.dispatchEvent(new Event("closed"))):requestAnimationFrame(()=>{f(this,vi,"m",wi).call(this),this.addEventListener("transitionend",()=>{this.open||(this.classList.toggle("-closing",!1),this.dispatchEvent(new Event("closed")))},{once:!0})}))}render(){return a`<slot @slotchange="${f(this,vi,"m",bi)}"></slot>`}};yi=new WeakMap,gi=new WeakMap,vi=new WeakSet,bi=function(){v(this,yi,!0,"f")},xi=function(){this.style.height="auto"},wi=function(){this.style.height=""},ki=function(){this.style.height=`${this.scrollHeight}px`},Ei.styles=r`:host { display: block; height: 0px; overflow: hidden; transition: ${i(`visibility var(--m3e-collapsible-animation-duration, ${ws.motion.duration.medium1})\n ${ws.motion.easing.standard},\n height var(--m3e-collapsible-animation-duration, ${ws.motion.duration.medium1})\n ${ws.motion.easing.standard},\n padding-top var(--m3e-collapsible-animation-duration, ${ws.motion.duration.medium1})\n ${ws.motion.easing.standard},\n padding-bottom var(--m3e-collapsible-animation-duration, ${ws.motion.duration.medium1})\n ${ws.motion.easing.standard}`)}; } :host(:not(.-closing):not([open])) { visibility: hidden; } :host(:not([open])) { min-height: unset !important; padding-top: 0px !important; padding-bottom: 0px !important; } :host(.-no-animate) { transition-duration: 0ms; } :host(.-opening), :host(.-closing) { overflow-y: hidden !important; } :host(.-overflows) { scrollbar-gutter: stable; } ::slotted(*) { --m3e-collapsible-animation-duration: initial; } @media (prefers-reduced-motion) { :host { transition: none; } }`,u([d({type:Boolean,reflect:!0})],Ei.prototype,"open",void 0),Ei=u([h("m3e-collapsible")],Ei);const Li=i(`var(--m3e-elevation-lift-duration, ${ws.motion.duration.short4})`),Si=i(`var(--m3e-elevation-lift-easing, ${ws.motion.easing.standard})`),zi=i(`var(--m3e-elevation-settle-duration, ${ws.motion.duration.short3})`),Mi=i(`var(--m3e-elevation-settle-easing, ${ws.motion.easing.standardAccelerate})`),Ci=i(`var(--m3e-elevation-level, ${ws.elevation.level0})`),Wi=i(`var(--m3e-elevation-hover-level, ${ws.elevation.level0})`),Fi=i(`var(--m3e-elevation-focus-level, ${ws.elevation.level0})`),Ai=i(`var(--m3e-elevation-pressed-level, ${ws.elevation.level0})`);var _i,Ti,Di,Hi,Pi,Oi,Ii;let Bi=class extends(ei(pi(n,"none"))){constructor(){super(...arguments),_i.add(this),Ti.set(this,new St(this,{target:null,callback:e=>f(this,_i,"m",Pi).call(this,e)})),Di.set(this,new Lt(this,{target:null,callback:e=>f(this,_i,"m",Oi).call(this,e)})),Hi.set(this,new Wt(this,{target:null,callback:e=>f(this,_i,"m",Ii).call(this,e)})),this.disabled=!1,this.level=null}attach(e){super.attach(e),f(this,Ti,"f").observe(e),f(this,Di,"f").observe(e),f(this,Hi,"f").observe(e)}detach(){this.control&&(f(this,Ti,"f").unobserve(this.control),f(this,Di,"f").unobserve(this.control),f(this,Hi,"f").unobserve(this.control)),super.detach()}connectedCallback(){this.ariaHidden="true",super.connectedCallback()}disconnectedCallback(){super.disconnectedCallback(),this._shadow?.classList.toggle("hover",!1),this._shadow?.classList.toggle("focus",!1),this._shadow?.classList.toggle("pressed",!1),this._shadow?.classList.toggle("resting",!1)}updated(e){super.updated(e),e.has("disabled")&&this.disabled&&(this._shadow?.classList.toggle("hover",!1),this._shadow?.classList.toggle("focus",!1),this._shadow?.classList.toggle("pressed",!1),this._shadow?.classList.toggle("resting",!0))}render(){return a`<div class="shadow"></div>`}};Ti=new WeakMap,Di=new WeakMap,Hi=new WeakMap,_i=new WeakSet,Pi=function(e){this.disabled||(this._shadow?.classList.toggle("hover",e),this._shadow?.classList.toggle("resting",!e))},Oi=function(e){this.disabled||this._shadow?.classList.toggle("focus",e)},Ii=function(e){this.disabled||this._shadow?.classList.toggle("pressed",e)},Bi.styles=r`:host { display: block; } :host, .shadow { position: absolute; left: 0; top: 0; right: 0; bottom: 0; pointer-events: none; border-radius: inherit; } .shadow.resting, .shadow.focus, .shadow.pressed { will-change: box-shadow; transition: ${i(`box-shadow ${zi} ${Mi};`)}; } .shadow.hover { will-change: box-shadow; transition: ${i(`box-shadow ${Li} ${Si};`)}; } .shadow { box-shadow: ${Ci}; } .shadow.focus { box-shadow: ${Fi}; } .shadow.hover { box-shadow: ${Wi}; } .shadow.pressed { box-shadow: ${Ai}; } :host([level="0"]) .shadow { --m3e-elevation-level: ${ws.elevation.level0}; --m3e-elevation-hover-level: ${ws.elevation.level1}; } :host([level="1"]) .shadow { --m3e-elevation-level: ${ws.elevation.level1}; --m3e-elevation-hover-level: ${ws.elevation.level2}; } :host([level="2"]) .shadow { --m3e-elevation-level: ${ws.elevation.level2}; --m3e-elevation-hover-level: ${ws.elevation.level3}; } :host([level="3"]) .shadow { --m3e-elevation-level: ${ws.elevation.level3}; --m3e-elevation-hover-level: ${ws.elevation.level4}; } :host([level="4"]) .shadow { --m3e-elevation-level: ${ws.elevation.level4}; --m3e-elevation-hover-level: ${ws.elevation.level5}; } :host([level="5"]) .shadow { --m3e-elevation-level: ${ws.elevation.level5}; --m3e-elevation-hover-level: ${Ci}; } :host([level]) .shadow { --m3e-elevation-focus-level: ${Ci}; --m3e-elevation-pressed-level: ${Ci}; } @media (prefers-reduced-motion) { .shadow.resting, .shadow.pressed, .shadow.focus, .shadow.hover { transition: none; } } @media (forced-colors: active) { .shadow { display: none; } }`,u([p(".shadow")],Bi.prototype,"_shadow",void 0),u([d({type:Boolean,reflect:!0})],Bi.prototype,"disabled",void 0),u([d({type:Number,reflect:!0})],Bi.prototype,"level",void 0),Bi=u([h("m3e-elevation")],Bi);const Vi=i(`var(--m3e-focus-ring-color, ${ws.color.secondary})`),Ui=i(`var(--m3e-focus-ring-duration, ${ws.motion.duration.long2})`),qi=i("var(--m3e-focus-ring-thickness, 3px)"),Ni=i("var(--m3e-focus-ring-outward-offset, 2px)"),Ri=i("var(--m3e-focus-ring-inward-offset, 0px)"),ji=i("var(--m3e-focus-ring-visibility, visible)"),Xi=i("var(--m3e-focus-ring-growth-factor, 2)");var Yi,Gi,Zi;let Ki=class extends(ei(pi(n,"none"))){constructor(){super(...arguments),Yi.add(this),Gi.set(this,new Lt(this,{target:null,callback:(e,t)=>f(this,Yi,"m",Zi).call(this,t)})),this.inward=!1,this.disabled=!1}show(){this._outline?.classList.toggle("visible",!0)}hide(){this._outline?.classList.toggle("visible",!1)}attach(e){super.attach(e),f(this,Gi,"f").observe(e)}detach(){this.control&&f(this,Gi,"f").unobserve(this.control),super.detach()}connectedCallback(){this.ariaHidden="true",super.connectedCallback()}disconnectedCallback(){super.disconnectedCallback(),this.hide()}render(){return a`<div class="outline"></div>`}updated(e){super.updated(e),e.has("disabled")&&this.disabled&&this.hide()}};Gi=new WeakMap,Yi=new WeakSet,Zi=function(e){this.disabled||(e?this.show():this.hide())},Ki.styles=r`:host { display: block; position: absolute; left: 0; top: 0; right: 0; bottom: 0; pointer-events: none; border-radius: inherit; outline: none; } .outline { position: absolute; left: 0; top: 0; right: 0; bottom: 0; pointer-events: none; border-radius: inherit; z-index: 1; outline-color: ${Vi}; outline-width: ${qi}; visibility: ${ji}; } .outline.visible { outline-style: solid; } :host(:not([inward])) .outline { outline-offset: ${Ni}; } :host([inward]) .outline { outline-offset: calc(${Ri} - ${qi}); } :host(:not([inward])) .outline.visible { animation: grow-shrink ${Ui}; } :host([inward]) .outline.visible { animation: shrink-grow ${Ui}; } @keyframes grow-shrink { 50% { outline-width: calc(${qi} * ${Xi}); } } @keyframes shrink-grow { 50% { outline-offset: calc( ${Ri} - calc(${qi} * ${Xi}) ); outline-width: calc(${qi} * ${Xi}); } } @media (prefers-reduced-motion) { :host(:not([inward])) .outline.visible, :host([inward]) .outline.visible { animation: none; } } @media (forced-colors: active) { .outline { outline-color: Highlight; } }`,u([p(".outline")],Ki.prototype,"_outline",void 0),u([d({type:Boolean,reflect:!0})],Ki.prototype,"inward",void 0),u([d({type:Boolean,reflect:!0})],Ki.prototype,"disabled",void 0),Ki=u([h("m3e-focus-ring")],Ki);let Qi=class extends(Xt($s(pi(n,"none")))){connectedCallback(){super.connectedCallback(),this.ariaHidden="true"}render(){return this.indeterminate?a`<svg viewBox="0 -960 960 960" fill="currentColor"><path Required d="M240-440v-80h480v80H240Z"/></svg>`:this.checked?a`<svg viewBox="0 -960 960 960" fill="currentColor"><path d="M382-240 154-468l57-57 171 171 367-367 57 57-424 424Z"/></svg>`:t}};Qi.styles=r`:host { display: inline-block; vertical-align: middle; width: var(--m3e-checkbox-icon-size, 1.125rem); height: var(--m3e-checkbox-icon-size, 1.125rem); border-radius: var(--m3e-checkbox-container-shape, 2px); box-sizing: border-box; flex: none; } :host(:not([checked]):not([indeterminate])) { border-width: var(--m3e-checkbox-unselected-outline-thickness, 2px); border-style: solid; } :host(:not([disabled])[checked]), :host(:not([disabled])[indeterminate]) { background-color: var(--m3e-checkbox-selected-container-color, ${ws.color.primary}); color: var(--m3e-checkbox-selected-icon-color, ${ws.color.onPrimary}); } :host(:not([disabled]):not([checked]):not([indeterminate])) { border-color: var(--m3e-checkbox-unselected-outline-color, ${ws.color.onSurfaceVariant}); } :host([disabled]:not([checked]):not([indeterminate])) { border-color: color-mix( in srgb, var(--m3e-checkbox-unselected-disabled-outline-color, ${ws.color.onSurface}) var(--m3e-checkbox-unselected-disabled-outline-opacity, 38%), transparent ); } :host([disabled][checked]), :host([disabled][indeterminate]) { background-color: color-mix( in srgb, var(--m3e-checkbox-selected-disabled-container-color, ${ws.color.onSurface}) var(--m3e-checkbox-selected-disabled-container-opacity, 38%), transparent ); color: color-mix( in srgb, var(--m3e-checkbox-selected-disabled-icon-color, ${ws.color.surface}) var(--m3e-checkbox-selected-disabled-icon-opacity, 100%), transparent ); }`,Qi=u([h("m3e-pseudo-checkbox")],Qi);let Ji=class extends(Rt($s(pi(n,"none")))){connectedCallback(){super.connectedCallback(),this.ariaHidden="true"}render(){return a`<svg class="icon" viewBox="0 0 20 20"><mask id="cutout2"><rect width="100%" height="100%" fill="white"></rect><circle cx="10" cy="10" r="8" fill="black"></circle></mask><circle class="outer circle" cx="10" cy="10" r="10" mask="url(#cutout2)"></circle><circle class="inner circle" cx="10" cy="10" r="5"></circle></svg>`}};Ji.styles=r`:host { display: inline-block; vertical-align: middle; box-sizing: border-box; width: var(--m3e-radio-icon-size, 1.25rem); height: var(--m3e-radio-icon-size, 1.25rem); flex: none; } .circle { fill: currentColor; } :host(:not([checked])) .circle.inner { opacity: 0; } :host(:not([checked])) { color: var(--m3e-radio-unselected-icon-color, ${ws.color.onSurfaceVariant}); } :host([checked]) { color: var(--m3e-radio-selected-icon-color, ${ws.color.primary}); } :host([disabled]) { color: color-mix(in srgb, var(--m3e-radio-disabled-icon-color, ${ws.color.onSurface}) 38%, transparent); }`,Ji=u([h("m3e-pseudo-radio")],Ji);const ea=i(`var(--m3e-ripple-color, ${ws.color.onSurface})`),ta=i(`var(--m3e-ripple-opacity, ${ws.state.pressedStateLayerOpacity})`),sa=i(`var(--m3e-ripple-enter-duration, ${ws.motion.duration.long4})`),ia=i(`var(--m3e-ripple-exit-duration, ${ws.motion.duration.short2})`),aa=i("var(--m3e-ripple-scale-factor, 2.5)");var ra,na,oa,la,ca,da;let ha=class extends(ei(pi(n,"none"))){constructor(){super(...arguments),ra.add(this),na.set(this,null),oa.set(this,new Wt(this,{target:null,minPressedDuration:150,isPressedKey:e=>" "===e,callback:(e,{x:t,y:s})=>f(this,ra,"m",da).call(this,e,t,s)})),this.disabled=!1,this.centered=!1,this.unbounded=!1,this.radius=null}get visible(){return null!==f(this,na,"f")}show(e,t,s=!1){f(this,ra,"m",la).call(this);const i=this.getBoundingClientRect();this.centered&&(e=i.left+i.width/2,t=i.top+i.height/2);let a=this.radius;if(!a||isNaN(a)){const s=Math.max(Math.abs(e-i.left),Math.abs(e-i.right)),r=Math.max(Math.abs(t-i.top),Math.abs(t-i.bottom));a=Math.sqrt(s*s+r*r)}const r=e-i.left,n=t-i.top;v(this,na,document.createElement("div"),"f"),f(this,na,"f").classList.add("ripple"),s&&f(this,na,"f").classList.add("persistent"),f(this,na,"f").style.left=r-a+"px",f(this,na,"f").style.top=n-a+"px",f(this,na,"f").style.width=2*a+"px",f(this,na,"f").style.height=2*a+"px",f(this,na,"f").addEventListener("animationend",()=>f(this,ra,"m",ca).call(this,s),{once:!0}),f(this,na,"f").addEventListener("transitionend",()=>f(this,ra,"m",la).call(this),{once:!0}),this.shadowRoot?.appendChild(f(this,na,"f"))}hide(){f(this,na,"f")?.classList.add("exit")}attach(e){super.attach(e),f(this,oa,"f").observe(e)}detach(){this.control&&f(this,oa,"f").unobserve(this.control),super.detach()}connectedCallback(){this.ariaHidden="true",super.connectedCallback()}disconnectedCallback(){super.disconnectedCallback(),f(this,ra,"m",la).call(this)}updated(e){super.updated(e),e.has("disabled")&&this.disabled&&this.hide()}};var pa;na=new WeakMap,oa=new WeakMap,ra=new WeakSet,la=function(){f(this,na,"f")?.remove(),v(this,na,null,"f")},ca=function(e){e?f(this,na,"f")?.classList.add("pressed"):this.hide()},da=function(e,t,s){this.disabled||(e?this.show(t,s,!0):this.hide())},ha.styles=r`:host { display: block; position: absolute; left: 0; top: 0; right: 0; bottom: 0; pointer-events: none; border-radius: inherit; } :host(:not([unbounded])) { overflow: hidden; } .ripple { display: block; position: absolute; left: 0; top: 0; right: 0; bottom: 0; pointer-events: none; transform: scale(0); border-radius: ${ws.shape.corner.full}; background-color: color-mix(in srgb, ${ea} ${ta}, transparent); will-change: background-color, opacity; animation: ripple ${sa} linear; } .ripple.persistent.pressed { transform: scale(${aa}); } .ripple.exit { transition: opacity ${ia} cubic-bezier(0, 0, 0.2, 0.1); opacity: 0; } @keyframes ripple { to { transform: scale(${aa}); } } @media (prefers-reduced-motion) { .ripple { transform: scale(${aa}); animation-duration: 90ms; } .ripple.exit { transition-duration: 10ms; } } @media (forced-colors: active) { .ripple { display: none; } }`,u([d({type:Boolean,reflect:!0})],ha.prototype,"disabled",void 0),u([d({type:Boolean,reflect:!0})],ha.prototype,"centered",void 0),u([d({type:Boolean,reflect:!0})],ha.prototype,"unbounded",void 0),u([d({type:Number})],ha.prototype,"radius",void 0),ha=u([h("m3e-ripple")],ha);let ma=class extends n{constructor(){super(...arguments),pa.set(this,()=>this._updateScroll()),this.dividers="above-below",this.thin=!1}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("scroll",f(this,pa,"f"))}update(e){super.update(e),e.has("dividers")&&(this.removeEventListener("scroll",f(this,pa,"f")),"none"!==this.dividers&&this.addEventListener("scroll",f(this,pa,"f"),{passive:!0}))}render(){return a`<slot @slotchange="${this._updateScroll}"></slot>`}_updateScroll(){const e=("above"===this.dividers||"above-below"===this.dividers)&&this.scrollTop>0,t=("below"===this.dividers||"above-below"===this.dividers)&&this.scrollHeight-this.scrollTop-this.clientHeight>1;this.classList.toggle("-above",e),this.classList.toggle("-below",t)}};var ua,fa,va,ya;pa=new WeakMap,ma.styles=r`:host { display: block; overflow-y: auto; position: relative; box-sizing: border-box; scrollbar-color: ${ws.scrollbar.color}; border-top: var(--m3e-divider-thickness, 1px) solid transparent; border-bottom: var(--m3e-divider-thickness, 1px) solid transparent; outline-color: ${Vi}; outline-width: ${qi}; outline-offset: ${Ni}; } :host([thin]) { scrollbar-width: ${ws.scrollbar.thinWidth}; } :host(:not([thin])) { scrollbar-width: ${ws.scrollbar.width}; } :host(:not(:focus-visible).-above) { border-top-color: var(--m3e-divider-color, ${ws.color.outlineVariant}); } :host(:not(:focus-visible).-below) { border-bottom-color: var(--m3e-divider-color, ${ws.color.outlineVariant}); } :host(:focus-visible) { outline-style: solid; animation: grow-shrink ${Ui}; } @keyframes grow-shrink { 50% { outline-width: calc(${qi} * ${Xi}); } } @media (forced-colors: active) { :host { border-top: var(--m3e-divider-thickness, 1px) solid Canvas; border-bottom: var(--m3e-divider-thickness, 1px) solid Canvas; } :host(:not(:focus-visible).-above) { border-top-color: GrayText; } :host(:not(:focus-visible).-below) { border-bottom-color: GrayText; } } @media (prefers-reduced-motion) { :host(:focus-visible) { animation: none; } }`,u([d()],ma.prototype,"dividers",void 0),u([d({type:Boolean,reflect:!0})],ma.prototype,"thin",void 0),u([At(40)],ma.prototype,"_updateScroll",null),ma=u([h("m3e-scroll-container")],ma);let ga=class extends n{constructor(){super(...arguments),ua.add(this),fa.set(this,new Array),this.selectedIndex=null}connectedCallback(){super.connectedCallback(),this.classList.toggle("-no-animate",!0)}update(e){super.update(e),e.has("selectedIndex")&&(null===this.selectedIndex&&this.classList.toggle("-no-animate",!0),f(this,ua,"m",ya).call(this),null!==this.selectedIndex&&this.classList.contains("-no-animate")&&requestAnimationFrame(()=>{null!==this.selectedIndex&&this.classList.toggle("-no-animate",!1)}))}render(){return a`<slot @slotchange="${f(this,ua,"m",va)}"></slot>`}};fa=new WeakMap,ua=new WeakSet,va=function(e){const t=[...e.target.assignedElements({flatten:!0})];for(const e of f(this,fa,"f").filter(e=>!t.includes(e)))e.classList.remove("-before"),e.classList.remove("-after"),e.removeAttribute("inert");v(this,fa,t,"f"),f(this,ua,"m",ya).call(this)},ya=function(){const e=this.selectedIndex??f(this,fa,"f").length;for(let t=0;t<f(this,fa,"f").length;t++){const s=f(this,fa,"f")[t];s.classList.toggle("-before",t<e),s.classList.toggle("-after",t>e),s.toggleAttribute("inert",t!==e)}},ga.styles=r`:host { display: flex; position: relative; overflow: hidden; } ::slotted(*) { width: 100%; top: 0; transition: ${i(`inset-inline-start var(--m3e-slide-animation-duration, ${ws.motion.duration.long2}) ${ws.motion.easing.standard},\n visibility var(--m3e-slide-animation-duration, ${ws.motion.duration.long2}) ${ws.motion.easing.standard} allow-discrete`)}; } ::slotted(.-before), ::slotted(.-after) { visibility: hidden; position: absolute; } ::slotted(.-before) { inset-inline-start: -100%; } ::slotted(.-after) { inset-inline-start: 100%; } ::slotted(:not(.-before):not(.-after)) { position: relative; inset-inline-start: 0; } :host(.-no-animate) ::slotted(*) { transition: none; } @media (prefers-reduced-motion) { ::slotted(*) { transition: none; } }`,u([d({attribute:"selected-index",type:Number,reflect:!0})],ga.prototype,"selectedIndex",void 0),ga=u([h("m3e-slide")],ga);const ba=i(`var(--m3e-state-layer-hover-color, ${ws.color.onSurface})`),xa=i(`var(--m3e-state-layer-hover-opacity, ${ws.state.hoverStateLayerOpacity})`),wa=i(`var(--m3e-state-layer-focus-color, ${ws.color.onSurface})`),ka=i(`var(--m3e-state-layer-focus-opacity, ${ws.state.focusStateLayerOpacity})`),$a=i(`var(--m3e-state-layer-duration, ${ws.motion.duration.medium1})`),Ea=i(`var(--m3e-state-layer-easing, ${ws.motion.easing.standard})`);var La,Sa,za,Ma,Ca;let Wa=class extends(ei(pi(n,"none"))){constructor(){super(...arguments),La.add(this),Sa.set(this,new St(this,{target:null,callback:e=>f(this,La,"m",Ma).call(this,e)})),za.set(this,new Lt(this,{target:null,callback:(e,t)=>f(this,La,"m",Ca).call(this,t)})),this.disabled=!1,this.disableHover=!1}show(e){this._layer?.classList.toggle(e,!0)}hide(e){this._layer?.classList.toggle(e,!1)}attach(e){super.attach(e),f(this,Sa,"f").observe(e),f(this,za,"f").observe(e)}detach(){this.control&&(f(this,Sa,"f").unobserve(this.control),f(this,za,"f").unobserve(this.control)),super.detach()}connectedCallback(){this.ariaHidden="true",super.connectedCallback()}disconnectedCallback(){super.disconnectedCallback(),this.hide("hover"),this.hide("focused")}updated(e){super.updated(e),e.has("disabled")&&this.disabled&&(this.hide("hover"),this.hide("focused")),e.has("disableHover")&&this.disableHover&&this.hide("hover")}render(){return a`<div class="layer"></div>`}};Sa=new WeakMap,za=new WeakMap,La=new WeakSet,Ma=function(e){this.disabled||this.disableHover||(e?this.show("hover"):this.hide("hover"))},Ca=function(e){this.disabled||(e?this.show("focused"):this.hide("focused"))},Wa.styles=r`:host { display: block; } :host, .layer { position: absolute; left: 0; top: 0; right: 0; bottom: 0; pointer-events: none; border-radius: inherit; } .layer { will-change: background-color; transition: ${i(`background-color ${$a} ${Ea}`)}; } .layer.focused { background-color: color-mix(in srgb, ${wa} ${ka}, transparent); } .layer.hover { background-color: color-mix(in srgb, ${ba} ${xa}, transparent); } @media (prefers-reduced-motion) { .layer { transition: none; } } @media (forced-colors: active) { .layer { display: none; } }`,u([p(".layer")],Wa.prototype,"_layer",void 0),u([d({type:Boolean,reflect:!0})],Wa.prototype,"disabled",void 0),u([d({attribute:"disable-hover",type:Boolean,reflect:!0})],Wa.prototype,"disableHover",void 0),Wa=u([h("m3e-state-layer")],Wa);let Fa=class extends n{render(){return a`<span class="base"><slot></slot></span>`}};var Aa,_a,Ta,Da,Ha,Pa,Oa,Ia;Fa.styles=r`:host { flex: 1 1 auto; display: inline-flex; align-items: center; flex-wrap: nowrap; min-width: 0; } .base { flex: 1 1 auto; display: inline; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }`,Fa=u([h("m3e-text-overflow")],Fa);let Ba=Ia=class extends n{constructor(){super(),Aa.add(this),_a.set(this,"m3e-text-highlight-"+Ia.__nextId++),Ta.set(this,new Array),Da.set(this,null),this.disabled=!1,this.term="",this.caseSensitive=!1,this.isSupported&&(v(this,Da,new CSSStyleSheet,"f"),f(this,Da,"f").replaceSync(r`::highlight(${i(f(this,_a,"f"))}) { background-color: var(--m3e-text-highlight-container-color, ${ws.color.secondaryContainer}); color: var(--m3e-text-highlight-color, ${ws.color.onSecondaryContainer}); text-decoration: var(--m3e-text-highlight-decoration); text-shadow: var(--m3e-text-highlight-shadow); }`.toString()))}get isSupported(){return!(e||!CSS.highlights)}get ranges(){return f(this,Ta,"f")}firstUpdated(e){super.firstUpdated(e),this.shadowRoot&&f(this,Da,"f")&&!this.shadowRoot.adoptedStyleSheets.includes(f(this,Da,"f"))&&this.shadowRoot.adoptedStyleSheets.push(f(this,Da,"f"))}updated(e){super.updated(e),(e.has("term")||e.has("caseSensitive")||e.has("disabled"))&&f(this,Aa,"m",Oa).call(this)}render(){return a`<slot @slotchange="${f(this,Aa,"m",Oa)}"></slot>`}};_a=new WeakMap,Ta=new WeakMap,Da=new WeakMap,Aa=new WeakSet,Ha=function(e){return!/^(\\s|\\n)+$/gi.test(e.data)},Pa=function e(t,s){t instanceof HTMLSlotElement?t.assignedElements({flatten:!0}).forEach(t=>{switch(t.nodeType){case Node.TEXT_NODE:f(this,Aa,"m",Ha).call(this,t)&&s.push(t);break;case Node.ELEMENT_NODE:f(this,Aa,"m",e).call(this,t,s)}}):t.childNodes.forEach(t=>{switch(t.nodeType){case Node.TEXT_NODE:f(this,Aa,"m",Ha).call(this,t)&&s.push(t);break;case Node.ELEMENT_NODE:f(this,Aa,"m",e).call(this,t,s)}})},Oa=function(){if(!this.isSupported||!this.isConnected)return;if(CSS.highlights.delete(f(this,_a,"f")),f(this,Ta,"f").length=0,this.disabled)return;if(!this.term)return void this.dispatchEvent(new CustomEvent("highlight",{detail:[...f(this,Ta,"f")],bubbles:!1,composed:!1}));const e=new Array;f(this,Aa,"m",Pa).call(this,this,e);const t=this.caseSensitive?this.term:this.term.toLowerCase();v(this,Ta,e.map(e=>({el:e,text:(this.caseSensitive?e.textContent:e.textContent?.toLowerCase())??""})).map(({el:e,text:s})=>{const i=new Array;let a=0;for(;a<s.length;){const e=s.indexOf(t,a);if(-1===e)break;i.push(e),a=e+t.length}return i.map(s=>{const i=new Range;return i.setStart(e,s),i.setEnd(e,s+t.length),i})}).flat(),"f"),f(this,Ta,"f").length>0&&CSS.highlights.set(f(this,_a,"f"),new Highlight(...f(this,Ta,"f"))),this.dispatchEvent(new CustomEvent("highlight",{detail:[...f(this,Ta,"f")],bubbles:!1,composed:!1}))},Ba.styles=r`:host { display: contents; }`,Ba.__nextId=0,u([d({type:Boolean,reflect:!0})],Ba.prototype,"disabled",void 0),u([d()],Ba.prototype,"term",void 0),u([d({attribute:"case-sensitive",type:Boolean})],Ba.prototype,"caseSensitive",void 0),Ba=Ia=u([h("m3e-text-highlight")],Ba);export{$i as ActionElementBase,tt as AnimationLoopController,qt as AttachInternals,Rt as Checked,Xt as CheckedIndeterminate,Ns as ConstraintValidation,ws as DesignToken,ts as Dirty,$s as Disabled,Ms as DisabledInteractive,Rs as EventAttribute,Lt as FocusController,Xs as Focusable,Is as FormAssociated,Zs as FormSubmitter,St as HoverController,ei as HtmlFor,zt as IntersectionController,ti as KeyboardClick,As as Labelled,ri as LinkButton,Mt as LongPressController,Ei as M3eCollapsibleElement,Bi as M3eElevationElement,Ki as M3eFocusRingElement,Qi as M3ePseudoCheckboxElement,Ji as M3ePseudoRadioElement,ha as M3eRippleElement,ma as M3eScrollContainerElement,ga as M3eSlideElement,Wa as M3eStateLayerElement,Ba as M3eTextHighlightElement,Fa as M3eTextOverflowElement,Ct as MutationController,Wt as PressedController,oi as ReadOnly,ci as Required,hi as RequiredConstraintValidation,Ft as ResizeController,pi as Role,_t as ScrollController,Tt as ScrollLockController,Gt as Selected,as as Touched,Et as VelocityTracker,ui as Vertical,Qt as checkOrSelect,it as computeCssSize,at as computeLineCount,At as debounce,Ts as defaultValue,rt as focusWhenReady,nt as forcedColorsActive,_s as formValue,ft as generateClipPaths,vt as getTextContent,yt as guid,gt as hasAssignedNodes,It as hasKeys,bt as interceptProperty,Bt as internals,Vt as isAttachInternalsMixin,jt as isCheckedIndeterminateMixin,Nt as isCheckedMixin,Kt as isCheckedOrSelected,Zt as isCheckedOrSelectedMixin,Vs as isConstraintValidationMixin,Jt as isDirtyMixin,Es as isDisabledInteractiveMixin,ks as isDisabledMixin,Ds as isFormAssociatedMixin,Ys as isFormSubmitterMixin,Ks as isHtmlForMixin,Ws as isLabelledMixin,ii as isLinkButtonMixin,ni as isReadOnlyMixin,di as isRequiredConstraintValidationMixin,li as isRequiredMixin,Yt as isSelectedMixin,ss as isTouchedMixin,mi as isVerticalMixin,xt as prefersReducedMotion,si as renderPseudoLink,wt as resolveElementById,kt as resolveFragmentUrl,Ot as safeStyleMap,$t as scrollIntoViewIfNeeded,Dt as spaceSeparatedStringConverter,Cs as updateLabels,Bs as validate};
|
|
6
|
+
import{isServer as e,nothing as t,noChange as s,unsafeCSS as i,html as a,css as r,LitElement as n}from"lit";import{directive as o,Directive as l,PartType as d}from"lit/directive.js";import{property as c,query as h}from"lit/decorators.js";import{ifDefined as p}from"lit/directives/if-defined.js";function m(e,t,s,i){var a,r=arguments.length,n=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,s):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,s,i);else for(var o=e.length-1;o>=0;o--)(a=e[o])&&(n=(r<3?a(n):r>3?a(t,s,n):a(t,s))||n);return r>3&&n&&Object.defineProperty(t,s,n),n}function u(e,t,s,i){if("a"===s&&!i)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!i:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===s?i:"a"===s?i.call(e):i?i.value:t.get(e)}function f(e,t,s,i,a){if("m"===i)throw new TypeError("Private method is not writable");if("a"===i&&!a)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!a:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===i?a.call(e,s):a?a.value=s:t.set(e,s),s}var v,y,g,b,x,w,k,$,E,S,z,M,C,L,W,F,A,_,T,D,H,P,O,I,B,V,N,U,q,R,j,X,Y,G,Z,K,Q,J,ee,te,se,ie,ae,re,ne,oe,le,de,ce,he,pe,me,ue,fe,ve,ye,ge,be,xe,we,ke,$e,Ee,Se,ze,Me,Ce,Le,We,Fe,Ae,_e,Te,De,He,Pe,Oe;"function"==typeof SuppressedError&&SuppressedError;class Ie{constructor(e,t){v.set(this,null),y.set(this,0),g.set(this,!1),b.set(this,void 0),x.set(this,()=>{if(!u(this,g,"f"))return;const e=performance.now();u(this,b,"f").call(this,(e-u(this,y,"f"))/1e3,e/1e3),f(this,y,e,"f"),f(this,v,requestAnimationFrame(u(this,x,"f")),"f")}),f(this,b,t,"f"),e.addController(this)}hostDisconnected(){this.stop()}start(){u(this,g,"f")||(f(this,g,!0,"f"),f(this,y,performance.now(),"f"),u(this,x,"f").call(this))}stop(){u(this,g,"f")&&(f(this,g,!1,"f"),null!==u(this,v,"f")&&(cancelAnimationFrame(u(this,v,"f")),f(this,v,null,"f")))}}v=new WeakMap,y=new WeakMap,g=new WeakMap,b=new WeakMap,x=new WeakMap;class Be{constructor(e,t){w.set(this,void 0),k.set(this,void 0),$.set(this,new Set),f(this,w,e,"f"),f(this,k,t.target,"f"),u(this,w,"f").addController(this)}get targets(){return u(this,$,"f").values()}hostConnected(){null!==u(this,k,"f")&&this.observe(u(this,k,"f")??u(this,w,"f"))}hostDisconnected(){u(this,$,"f").forEach(e=>this.unobserve(e)),u(this,$,"f").clear()}observe(e){u(this,$,"f").has(e)||(u(this,$,"f").add(e),this._observe(e))}isObserving(e){return u(this,$,"f").has(e)}unobserve(e){u(this,$,"f").delete(e)&&this._unobserve(e)}}function Ve(e,t){if(!t)return 0;const s=document.createElement("div");s.style.all="inherit",s.style.width=t,s.style.position="absolute",s.style.visibility="hidden",s.style.pointerEvents="none",e.appendChild(s);try{return parseFloat(getComputedStyle(s).width)}finally{s.remove()}}function Ne(e){const t=parseFloat(getComputedStyle(e).lineHeight);return isNaN(t)||t<=0?0:Math.round(e.scrollHeight/t)}async function Ue(e,t=200){function s(e){const t=e.getRootNode();return t instanceof ShadowRoot?t.activeElement===e:document.activeElement===e}e.focus();const i=performance.now();for(;!s(e);){if(!e.isConnected||performance.now()-i>t)return!1;await new Promise(requestAnimationFrame),e.focus()}return!0}function qe(){return!e&&matchMedia("(forced-colors: active)").matches}function Re(e,t,s){return e+(t-e)*s}function je(e,t,s,i){return{x:Math.pow(1-i,2)*e.x+2*(1-i)*i*t.x+Math.pow(i,2)*s.x,y:Math.pow(1-i,2)*e.y+2*(1-i)*i*t.y+Math.pow(i,2)*s.y}}function Xe(e,t,s,i,a){return{x:Math.pow(1-a,3)*e.x+3*Math.pow(1-a,2)*a*t.x+3*(1-a)*Math.pow(a,2)*s.x+Math.pow(a,3)*i.x,y:Math.pow(1-a,3)*e.y+3*Math.pow(1-a,2)*a*t.y+3*(1-a)*Math.pow(a,2)*s.y+Math.pow(a,3)*i.y}}function Ye(e,t){const s=function(e){return(e.match(/[a-zA-Z][^a-zA-Z]*/g)||[]).map(e=>({type:e[0],nums:e.slice(1).trim().split(/[\s,]+/).filter(Boolean).map(Number)}))}(e);let i={x:0,y:0},a={x:0,y:0};const r=[];for(const e of s)if("M"===e.type)i={x:e.nums[0],y:e.nums[1]},a=i;else if("L"===e.type){const t={x:e.nums[0],y:e.nums[1]},s=t.x-i.x,a=t.y-i.y;r.push({type:"L",pts:[i,t],length:Math.hypot(s,a)}),i=t}else if("H"===e.type){const t={x:e.nums[0],y:i.y},s=t.x-i.x;r.push({type:"L",pts:[i,t],length:Math.abs(s)}),i=t}else if("V"===e.type){const t={x:i.x,y:e.nums[0]},s=t.y-i.y;r.push({type:"L",pts:[i,t],length:Math.abs(s)}),i=t}else if("Q"===e.type){const t={x:e.nums[0],y:e.nums[1]},s={x:e.nums[2],y:e.nums[3]};let a=0,n=i;const o=20;for(let e=1;e<=o;e++){const r=je(i,t,s,e/o);a+=Math.hypot(r.x-n.x,r.y-n.y),n=r}r.push({type:"Q",pts:[i,t,s],length:a}),i=s}else if("C"===e.type){const t={x:e.nums[0],y:e.nums[1]},s={x:e.nums[2],y:e.nums[3]},a={x:e.nums[4],y:e.nums[5]};let n=0,o=i;const l=20;for(let e=1;e<=l;e++){const r=Xe(i,t,s,a,e/l);n+=Math.hypot(r.x-o.x,r.y-o.y),o=r}r.push({type:"C",pts:[i,t,s,a],length:n}),i=a}else if("Z"===e.type){const e=a.x-i.x,t=a.y-i.y;r.push({type:"L",pts:[i,a],length:Math.hypot(e,t)}),i=a}const n=r.reduce((e,t)=>e+t.length,0)/(t-1),o=[];let l=0,d=0;for(let e=0;e<t;e++){const t=e*n;for(;d<r.length&&l+r[d].length<t;)l+=r[d].length,d++;const s=r[d];if(!s)break;const i=(t-l)/s.length;if("L"===s.type){const[e,t]=s.pts;o.push({x:Re(e.x,t.x,i),y:Re(e.y,t.y,i)})}else if("Q"===s.type){const[e,t,a]=s.pts;o.push(je(e,t,a,i))}else if("C"===s.type){const[e,t,a,r]=s.pts;o.push(Xe(e,t,a,r,i))}}return o}function Ge(e,t,s){return Math.max(t,Math.min(s,e))}function Ze(e,t){const s=e.length,i=new Array(s);for(let a=0;a<s;a++)i[a]=e[(a+t)%s];return i}function Ke(e,t){const s=Math.min(t.length,e.length);let i=0,a=1/0;for(let r=0;r<s;r++){let n=0;for(let i=0;i<s;i++){const o=t[(i+r)%s],l=e[i],d=o.x-l.x,c=o.y-l.y;if(n+=d*d+c*c,n>=a)break}n<a&&(a=n,i=r)}return i}function Qe(e){let t=0;const s=e.length;for(let i=0;i<s;i++){const a=e[i],r=e[(i+1)%s];t+=a.x*r.y-r.x*a.y}return t/2}function Je(e,t){return function(e){const t=e.map(e=>{const t=function(e){let t=1/0,s=1/0,i=-1/0,a=-1/0;for(const r of e)r.x<t&&(t=r.x),r.x>i&&(i=r.x),r.y<s&&(s=r.y),r.y>a&&(a=r.y);return{minX:t,minY:s,maxX:i,maxY:a,width:i-t,height:a-s}}(e),s=e.map(e=>({x:e.x-t.minX,y:e.y-t.minY})),i=Math.max(t.width,t.height)||1,a=s.map(e=>({x:e.x/i,y:e.y/i})),r=t.width/i,n=t.height/i,o=(1-r)/2,l=(1-n)/2;return a.map(e=>({x:e.x+o,y:e.y+l}))}),s=t[0],i=Math.sign(Qe(s));for(let e=1;e<t.length;e++){let a=t[e];const r=Math.sign(Qe(a));0!==r&&r!==i&&(a=a.slice().reverse());const n=Ke(s,a);t[e]=Ze(a,n)}return t}(e.map(e=>Ye(e,t))).map(e=>`${e.map(e=>{const t=Ge(100*e.x,0,100),s=Ge(100*e.y,0,100);return`${t.toFixed(2)}% ${s.toFixed(2)}%`}).join(", ")}`)}function et(e,t=!1){let s="";switch(e.nodeType){case Node.TEXT_NODE:s=e.nodeValue??"";break;case Node.ELEMENT_NODE:if(e instanceof HTMLSlotElement)for(const i of e.assignedNodes({flatten:!0}))s+=et(i,t);else for(const i of e.childNodes)s+=et(i,t)}return t&&(s=s.trim()),s}function tt(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,e=>{const t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)})}function st(e){return e.assignedNodes({flatten:!0}).length>0}function it(e,t,s){const i=Object.getOwnPropertyDescriptor(e,t)??Object.getOwnPropertyDescriptor(Object.getPrototypeOf(e),t);if(!i)throw new Error(`Property ${String(t)} not found on target.`);const a=i.get?.bind(e),r=i.set?.bind(e);return Object.defineProperty(e,t,{configurable:!0,enumerable:i.enumerable,get:()=>s.get?s.get(()=>a?.()):a?.(),set(e){s.set?s.set(e,e=>r?.(e)):r?.(e)}}),()=>Object.defineProperty(e,t,i)}function at(){return e||matchMedia("(prefers-reduced-motion)").matches}function rt(e,t=document){return new Promise(s=>{const i=t.querySelector(`#${e}`);i?s(i):"complete"!==document.readyState&&"interactive"!==document.readyState?document.addEventListener("DOMContentLoaded",()=>s(t.querySelector(`#${e}`)),{once:!0}):s(t.querySelector(`#${e}`))})}function nt(e){const t=document?.location??null;return`url(${t?(t.pathname+t.search).split("#")[0]:""}#${e})`}function ot(e,t,s){const i=t.getBoundingClientRect(),a=e.getBoundingClientRect();(a.top<i.top||a.bottom>i.bottom)&&e.scrollIntoView(s)}w=new WeakMap,k=new WeakMap,$=new WeakMap;class lt{constructor(e=100){E.set(this,[]),S.set(this,void 0),f(this,S,e,"f")}add(e,t=performance.now()){u(this,E,"f").push({y:e,t:t});const s=t-u(this,S,"f");for(;u(this,E,"f").length>1&&u(this,E,"f")[0].t<s;)u(this,E,"f").shift()}getVelocity(){if(u(this,E,"f").length<2)return 0;const e=u(this,E,"f")[0],t=u(this,E,"f")[u(this,E,"f").length-1],s=t.y-e.y,i=(t.t-e.t)/1e3;return i>0?s/i:0}reset(){u(this,E,"f").length=0}}E=new WeakMap,S=new WeakMap;class dt extends Be{constructor(e,t){super(e,t),z.add(this),M.set(this,!1),C.set(this,void 0),L.set(this,e=>u(this,z,"m",P).call(this,e)),W.set(this,e=>u(this,z,"m",O).call(this,e)),F.set(this,e=>u(this,z,"m",I).call(this,e)),A.set(this,()=>f(this,M,!0,"f")),_.set(this,()=>f(this,M,!1,"f")),T.set(this,!1),D.set(this,()=>f(this,T,!0,"f")),H.set(this,()=>f(this,T,!1,"f")),f(this,C,t.callback,"f")}hostConnected(){super.hostConnected(),window?.addEventListener("keydown",u(this,D,"f"),{capture:!0,passive:!0}),window?.addEventListener("pointerdown",u(this,H,"f"),{capture:!0})}hostDisconnected(){super.hostDisconnected(),window?.removeEventListener("keydown",u(this,D,"f"),{capture:!0}),window?.removeEventListener("pointerdown",u(this,H,"f"),{capture:!0})}_observe(e){e.addEventListener("keydown",u(this,L,"f")),e.addEventListener("focusin",u(this,W,"f")),e.addEventListener("focusout",u(this,F,"f")),e.addEventListener("touchstart",u(this,A,"f")),e.addEventListener("touchend",u(this,_,"f")),e.addEventListener("touchcancel",u(this,_,"f"))}_unobserve(e){e.removeEventListener("keydown",u(this,L,"f")),e.removeEventListener("focusin",u(this,W,"f")),e.removeEventListener("focusout",u(this,F,"f")),e.removeEventListener("touchstart",u(this,A,"f")),e.removeEventListener("touchend",u(this,_,"f")),e.removeEventListener("touchcancel",u(this,_,"f"))}}M=new WeakMap,C=new WeakMap,L=new WeakMap,W=new WeakMap,F=new WeakMap,A=new WeakMap,_=new WeakMap,T=new WeakMap,D=new WeakMap,H=new WeakMap,z=new WeakSet,P=function(e){e.currentTarget.matches(":focus-within")&&u(this,z,"m",O).call(this,e)},O=function(e){if(u(this,M,"f"))return;const t=e.currentTarget;u(this,C,"f").call(this,!0,t.matches(":focus-visible")||u(this,T,"f")||qe(),t)},I=function(e){u(this,M,"f")||u(this,C,"f").call(this,!1,!1,e.currentTarget)};class ct extends Be{constructor(e,t){super(e,t),B.add(this),V.set(this,void 0),N.set(this,new Map),U.set(this,new Map),q.set(this,e=>u(this,B,"m",G).call(this,e)),R.set(this,e=>u(this,B,"m",Z).call(this,e)),f(this,V,t.callback,"f"),this.startDelay=t.startDelay??0,this.endDelay=t.endDelay??0}clearDelays(){for(const e of this.targets)u(this,B,"m",j).call(this,e)}_observe(e){e.addEventListener("pointerenter",u(this,q,"f")),e.addEventListener("pointerleave",u(this,R,"f")),e.addEventListener("touchend",u(this,R,"f"))}_unobserve(e){e.removeEventListener("pointerenter",u(this,q,"f")),e.removeEventListener("pointerleave",u(this,R,"f")),e.removeEventListener("touchend",u(this,R,"f"))}}V=new WeakMap,N=new WeakMap,U=new WeakMap,q=new WeakMap,R=new WeakMap,B=new WeakSet,j=function(e){u(this,B,"m",X).call(this,e),u(this,B,"m",Y).call(this,e)},X=function(e){return!!u(this,N,"f").has(e)&&(clearTimeout(u(this,N,"f").get(e)),u(this,N,"f").delete(e))},Y=function(e){return!!u(this,U,"f").has(e)&&(clearTimeout(u(this,U,"f").get(e)),u(this,U,"f").delete(e))},G=function(e){const t=e.target;u(this,B,"m",Y).call(this,t),this.startDelay>0?(u(this,B,"m",X).call(this,t),u(this,N,"f").set(t,setTimeout(()=>{u(this,N,"f").delete(t),u(this,V,"f").call(this,!0,t)},this.startDelay))):u(this,V,"f").call(this,!0,t)},Z=function(e){const t=e.target;u(this,B,"m",X).call(this,t)||(this.endDelay>0?(u(this,B,"m",Y).call(this,t),u(this,U,"f").set(t,setTimeout(()=>{u(this,U,"f").delete(t),u(this,V,"f").call(this,!1,t)},this.endDelay))):u(this,V,"f").call(this,!1,t))};class ht extends Be{constructor(t,s){super(t,s),K.set(this,void 0),Q.set(this,!1),J.set(this,void 0),ee.set(this,!0),f(this,K,s.callback,"f"),f(this,Q,s.skipInitial??!1,"f"),e||(window.IntersectionObserver?f(this,J,new IntersectionObserver((e,t)=>{u(this,K,"f").call(this,e,t)},s.init),"f"):console.warn("IntersectionController error: the browser does not support IntersectionObserver."))}async hostUpdated(){u(this,J,"f")&&!u(this,Q,"f")&&u(this,ee,"f")&&u(this,K,"f").call(this,[],u(this,J,"f")),f(this,ee,!1,"f")}_observe(e){u(this,J,"f")?.observe(e),f(this,ee,!0,"f")}_unobserve(e){u(this,J,"f")?.unobserve(e)}}K=new WeakMap,Q=new WeakMap,J=new WeakMap,ee=new WeakMap;class pt extends Be{constructor(e,t){super(e,t),te.add(this),se.set(this,void 0),ie.set(this,void 0),ae.set(this,new Set),re.set(this,new Map),ne.set(this,e=>u(this,te,"m",le).call(this,e)),oe.set(this,e=>u(this,te,"m",de).call(this,e)),f(this,se,t.callback,"f"),f(this,ie,t.threshold??500,"f")}_observe(e){e.addEventListener("touchstart",u(this,ne,"f"),{passive:!0}),e.addEventListener("touchend",u(this,oe,"f")),e.addEventListener("touchcancel",u(this,oe,"f"))}_unobserve(e){e.removeEventListener("touchstart",u(this,ne,"f")),e.removeEventListener("touchend",u(this,oe,"f")),e.removeEventListener("touchcancel",u(this,oe,"f"))}}se=new WeakMap,ie=new WeakMap,ae=new WeakMap,re=new WeakMap,ne=new WeakMap,oe=new WeakMap,te=new WeakSet,le=function(e){if(e.currentTarget instanceof HTMLElement&&this.isObserving(e.currentTarget)){const t=e.currentTarget;u(this,re,"f").set(t,setTimeout(()=>{u(this,ae,"f").add(t),u(this,re,"f").delete(t),u(this,se,"f").call(this,!0,t)},u(this,ie,"f")))}},de=function(e){if(e.currentTarget instanceof HTMLElement&&this.isObserving(e.currentTarget)){const t=e.currentTarget;u(this,ae,"f").has(t)&&(u(this,se,"f").call(this,!1,t),u(this,ae,"f").delete(t)),u(this,re,"f").has(t)&&(clearTimeout(u(this,re,"f").get(t)),u(this,re,"f").delete(t))}};class mt extends Be{constructor(t,s){super(t,s),ce.set(this,void 0),he.set(this,void 0),pe.set(this,!1),me.set(this,void 0),ue.set(this,void 0),fe.set(this,!0),f(this,ce,t,"f"),f(this,he,s.callback,"f"),f(this,pe,s.skipInitial??!1,"f"),f(this,me,s.config,"f"),e||(window.MutationObserver?f(this,ue,new MutationObserver((e,t)=>{u(this,he,"f").call(this,e,t),u(this,ce,"f").requestUpdate()}),"f"):console.warn("MutationController error: the browser does not support MutationObserver."))}async hostUpdated(){if(u(this,ue,"f")&&!u(this,pe,"f")&&u(this,fe,"f")){const e=u(this,ue,"f").takeRecords();e.length>0&&u(this,he,"f").call(this,e,u(this,ue,"f"))}f(this,fe,!1,"f")}hostDisconnected(){super.hostDisconnected(),u(this,ue,"f")?.disconnect()}_observe(e){u(this,ue,"f")?.observe(e,u(this,me,"f")),f(this,fe,!0,"f"),u(this,ce,"f").requestUpdate()}_unobserve(){u(this,ue,"f")?.disconnect();for(const e of this.targets)u(this,ue,"f")?.observe(e,u(this,me,"f"))}}ce=new WeakMap,he=new WeakMap,pe=new WeakMap,me=new WeakMap,ue=new WeakMap,fe=new WeakMap;class ut extends Be{constructor(e,t){super(e,t),ve.add(this),ye.set(this,void 0),ge.set(this,void 0),be.set(this,void 0),xe.set(this,new Map),we.set(this,void 0),ke.set(this,e=>u(this,ve,"m",Me).call(this,e)),$e.set(this,e=>u(this,ve,"m",Ce).call(this,e)),Ee.set(this,e=>u(this,ve,"m",Le).call(this,e)),Se.set(this,e=>u(this,ve,"m",We).call(this,e)),ze.set(this,e=>u(this,ve,"m",Fe).call(this,e)),f(this,ye,t.capture,"f"),f(this,ge,t.callback,"f"),f(this,be,t.isPressedKey,"f"),f(this,we,t.minPressedDuration??0,"f")}hostConnected(){document.addEventListener("pointerup",u(this,$e,"f"),{capture:u(this,ye,"f")}),document.addEventListener("touchend",u(this,Ee,"f"),{capture:u(this,ye,"f")}),document.addEventListener("touchcancel",u(this,Ee,"f"),{capture:u(this,ye,"f")}),super.hostConnected()}hostDisconnected(){document.removeEventListener("pointerup",u(this,$e,"f"),{capture:u(this,ye,"f")}),document.removeEventListener("touchend",u(this,Ee,"f"),{capture:u(this,ye,"f")}),document.removeEventListener("touchcancel",u(this,Ee,"f"),{capture:u(this,ye,"f")}),super.hostDisconnected(),u(this,xe,"f").clear()}_observe(e){e.addEventListener("pointerdown",u(this,ke,"f"),{capture:u(this,ye,"f")}),u(this,be,"f")&&(e.addEventListener("keydown",u(this,Se,"f"),{capture:u(this,ye,"f")}),e.addEventListener("keyup",u(this,ze,"f"),{capture:u(this,ye,"f")}))}_unobserve(e){e.removeEventListener("pointerdown",u(this,ke,"f"),{capture:u(this,ye,"f")}),u(this,be,"f")&&(e.removeEventListener("keydown",u(this,Se,"f"),{capture:u(this,ye,"f")}),e.removeEventListener("keyup",u(this,ze,"f"),{capture:u(this,ye,"f")}))}}ye=new WeakMap,ge=new WeakMap,be=new WeakMap,xe=new WeakMap,we=new WeakMap,ke=new WeakMap,$e=new WeakMap,Ee=new WeakMap,Se=new WeakMap,ze=new WeakMap,ve=new WeakSet,Me=function(e){if(!("mouse"===e.pointerType&&e.button>1))for(const t of e.composedPath())if(t instanceof HTMLElement&&this.isObserving(t)){u(this,xe,"f").has(t)||(u(this,xe,"f").set(t,performance.now()),u(this,ge,"f").call(this,!0,{x:e.x,y:e.y},t));break}},Ce=function(e){"mouse"===e.pointerType&&e.button>1||u(this,ve,"m",Ae).call(this,e.x,e.y)},Le=function(e){u(this,ve,"m",Ae).call(this,e.changedTouches[0]?.clientX??0,e.changedTouches[0]?.clientY??0)},We=function(e){if(e.target!==e.currentTarget)return;const t=e.currentTarget;if(u(this,be,"f")?.call(this,e.key)&&(" "===e.key&&e.preventDefault(),!u(this,xe,"f").has(t))){u(this,xe,"f").set(t,performance.now());const e=t.getBoundingClientRect();u(this,ge,"f").call(this,!0,{x:e.x+e.width/2,y:e.y+e.height/2},t)}},Fe=function(e){const t=e.target;if(u(this,xe,"f").has(t)&&u(this,be,"f")?.call(this,e.key)){const e=u(this,we,"f")-(performance.now()-u(this,xe,"f").get(t)),s=t.getBoundingClientRect();e>0?setTimeout(()=>{u(this,xe,"f").delete(t),u(this,ge,"f").call(this,!1,{x:s.x+s.width/2,y:s.y+s.height/2},t)},e):(u(this,xe,"f").delete(t),u(this,ge,"f").call(this,!1,{x:s.x+s.width/2,y:s.y+s.height/2},t))}},Ae=function(e,t){for(const s of u(this,xe,"f")){const i=u(this,we,"f")-(performance.now()-s[1]);i>0?setTimeout(()=>{u(this,xe,"f").delete(s[0]),u(this,ge,"f").call(this,!1,{x:e,y:t},s[0])},i):(u(this,xe,"f").delete(s[0]),u(this,ge,"f").call(this,!1,{x:e,y:t},s[0]))}};class ft extends Be{constructor(t,s){super(t,s),_e.set(this,void 0),Te.set(this,void 0),De.set(this,void 0),He.set(this,void 0),Pe.set(this,void 0),Oe.set(this,!0),f(this,_e,t,"f"),f(this,Te,s.callback,"f"),f(this,De,s.skipInitial??!1,"f"),f(this,He,s.config,"f"),e||(window.ResizeObserver?f(this,Pe,new ResizeObserver((e,t)=>{u(this,Te,"f").call(this,e,t),u(this,_e,"f").requestUpdate()}),"f"):console.warn("ResizeController error: the browser does not support ResizeObserver."))}async hostUpdated(){u(this,Pe,"f")&&!u(this,De,"f")&&u(this,Oe,"f")&&u(this,Te,"f").call(this,[],u(this,Pe,"f")),f(this,Oe,!1,"f")}_observe(e){u(this,Pe,"f")?.observe(e,u(this,He,"f")),f(this,Oe,!0,"f"),u(this,_e,"f").requestUpdate()}_unobserve(e){u(this,Pe,"f")?.unobserve(e)}}_e=new WeakMap,Te=new WeakMap,De=new WeakMap,He=new WeakMap,Pe=new WeakMap,Oe=new WeakMap;const vt=e=>(t,s)=>{const i=()=>{"undefined"==typeof window||customElements.get(e)||customElements.define(e,t)};s?s.addInitializer(i):i()};function yt(e){const t=Symbol("_id");return(s,i,a)=>{const r=a.value;return a.value=function(...s){clearTimeout(this[t]),this[t]=setTimeout(()=>r.apply(this,s),e)},a}}var gt,bt,xt,wt,kt,$t,Et,St,zt,Mt,Ct,Lt,Wt,Ft;class At extends Be{constructor(e,t){super(e,t),gt.add(this),bt.set(this,void 0),xt.set(this,void 0),wt.set(this,e=>u(this,gt,"m",Et).call(this,e)),kt.set(this,new Map),f(this,bt,!0===t.debounce,"f"),f(this,xt,t.callback,"f")}getScrollContainers(e){return u(this,kt,"f").get(e)}_observe(e){const t=u(this,gt,"m",$t).call(this,e);if(t.length>0){u(this,kt,"f").set(e,t);for(const e of t)(e===document.documentElement?document:e).addEventListener("scroll",u(this,wt,"f"),{passive:!0})}}_unobserve(e){if(u(this,kt,"f").has(e)){for(const t of u(this,kt,"f").get(e))(t===document.documentElement?document:t).removeEventListener("scroll",u(this,wt,"f"));u(this,kt,"f").delete(e)}}_debounceCallback(e){u(this,xt,"f").call(this,e)}}bt=new WeakMap,xt=new WeakMap,wt=new WeakMap,kt=new WeakMap,gt=new WeakSet,$t=function(e){const t=new Array;let s=e;for(;s;){const e=getComputedStyle(s);/(auto|scroll)/.test(e.overflow+e.overflowY+e.overflowX)&&t.push(s),s=s.parentElement}return t},Et=function(e){const t=e.target===document?document.documentElement:e.target;u(this,bt,"f")?this._debounceCallback(t):u(this,xt,"f").call(this,t)},m([yt(40)],At.prototype,"_debounceCallback",null);class _t{constructor(e){St.add(this),zt.set(this,!1),Mt.set(this,0),Ct.set(this,0),Lt.set(this,""),Wt.set(this,""),e.addController(this)}lock(){u(this,zt,"f")||(f(this,zt,!0,"f"),f(this,Mt,window.scrollY,"f"),f(this,Ct,window.scrollX,"f"),f(this,Lt,document.documentElement.style.overflow,"f"),f(this,Wt,document.documentElement.style.scrollbarGutter,"f"),u(this,St,"m",Ft).call(this)&&(document.documentElement.style.scrollbarGutter="stable"),document.documentElement.style.overflow="hidden",window.scrollTo(u(this,Ct,"f"),u(this,Mt,"f")))}unlock(){u(this,zt,"f")&&(f(this,zt,!1,"f"),document.documentElement.style.overflow=u(this,Lt,"f"),document.documentElement.style.scrollbarGutter=u(this,Wt,"f"),window.scrollTo(u(this,Ct,"f"),u(this,Mt,"f")))}hostDisconnected(){this.unlock()}}zt=new WeakMap,Mt=new WeakMap,Ct=new WeakMap,Lt=new WeakMap,Wt=new WeakMap,St=new WeakSet,Ft=function(){return document.documentElement.scrollHeight>document.documentElement.clientHeight};const Tt={fromAttribute:e=>e?e.split(/\s+/).map(e=>e.trim()).filter(Boolean):[],toAttribute:e=>e.join(" ")},Dt="important",Ht=" !"+Dt;const Pt=o(class extends l{constructor(e){if(super(e),e.type!==d.ATTRIBUTE||"style"!==e.name||e.strings?.length>2)throw new Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(e){return t}update(e,[t]){const{style:i}=e.element;void 0===this._previousStyleProperties&&(this._previousStyleProperties=new Set(Object.keys(t)));for(const e of this._previousStyleProperties)null==t[e]&&(this._previousStyleProperties.delete(e),e.includes("-")?i.removeProperty(e):i[e]=null);for(const e in t){const s=t[e];if(null!=s){this._previousStyleProperties.add(e);const t="string"==typeof s&&s.endsWith(Ht);e.includes("-")||t?i.setProperty(e,t?s.slice(0,-11):s,t?Dt:""):i[e]=s}}return s}});function Ot(e,...t){return"object"==typeof e&&null!==e&&t.every(t=>t in e)}const It=Symbol("internals");function Bt(e){return Ot(e,It)}const Vt=Symbol("_internals");function Nt(e,t){class s extends e{get[It](){return this[Vt]??(this[Vt]=this.attachInternals())}}return s.formAssociated=t,s}function Ut(t,s){return!e&&t[It].states.has(s)}function qt(t,s){e||t[It]?.states.add(s)}function Rt(t,s){return!e&&t[It]?.states.delete(s)}function jt(e,t,s){s?qt(e,t):Rt(e,t)}function Xt(e){return Ot(e,"checked")}function Yt(e){class t extends e{constructor(){super(...arguments),this.checked=!1}update(e){super.update(e),e.has("checked")&&("button"===this.role?(this.ariaPressed=`${this.checked}`,this.ariaChecked=null):this.role&&"none"!==this.role&&"presentation"!==this.role&&(this.ariaChecked=`${this.checked}`,this.ariaPressed=null))}}return m([c({type:Boolean,reflect:!0})],t.prototype,"checked",void 0),t}function Gt(e){return Ot(e,"indeterminate")&&Xt(e)}function Zt(e){class t extends(Yt(e)){constructor(){super(...arguments),this.indeterminate=!1}update(e){super.update(e),e.has("indeterminate")&&this.role&&"none"!==this.role&&"presentation"!==this.role&&(this.ariaChecked=!this.checked&&this.indeterminate?"mixed":`${this.checked}`)}}return m([c({type:Boolean,reflect:!0})],t.prototype,"indeterminate",void 0),t}function Kt(e){return Ot(e,"selected")}function Qt(e){class t extends e{constructor(){super(...arguments),this.selected=!1}update(e){super.update(e),e.has("selected")&&("button"===this.role?(this.ariaPressed=`${this.selected}`,this.ariaSelected=null,this.ariaChecked=null):"radio"===this.role?(this.ariaChecked=`${this.selected}`,this.ariaSelected=null,this.ariaPressed=null):this.role&&"none"!==this.role&&"presentation"!==this.role&&(this.ariaSelected=`${this.selected}`,this.ariaPressed=null,this.ariaChecked=null))}}return m([c({type:Boolean,reflect:!0})],t.prototype,"selected",void 0),t}function Jt(e){return Xt(e)||Kt(e)}function es(e){return Xt(e)&&e.checked||Kt(e)&&e.selected}function ts(e,t){Xt(e)?e.checked=t:e.selected=t}function ss(e){return Ot(e,"dirty","pristine","markAsDirty","markAsPristine")}const is=Symbol("_eventHandler");function as(e){var t;return t=is,class extends e{constructor(){super(...arguments),this[t]=()=>this.markAsDirty()}get dirty(){return Ut(this,"-dirty")}get pristine(){return!this.dirty}connectedCallback(){this.markAsPristine(),super.connectedCallback(),this.addEventListener("change",this[is])}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("change",this[is])}markAsPristine(){Rt(this,"-dirty")}markAsDirty(){qt(this,"-dirty")}}}function rs(e){return Ot(e,"touched","untouched","markAsTouched","markAsUntouched")}const ns=Symbol("_eventHandler");function os(e){var t;return t=ns,class extends e{constructor(){super(...arguments),this[t]=()=>this.markAsTouched()}get touched(){return Ut(this,"-touched")}get untouched(){return!this.touched}connectedCallback(){this.markAsUntouched(),super.connectedCallback(),this.addEventListener("focusout",this[ns],{capture:!0})}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("focusout",this[ns],{capture:!0})}markAsTouched(){qt(this,"-touched")}markAsUntouched(){Rt(this,"-touched")}}}const ls={primary:i("var(--md-sys-color-primary, #6750A4)"),onPrimary:i("var(--md-sys-color-on-primary, #FFFFFF)"),primaryContainer:i("var(--md-sys-color-primary-container, #EADDFF)"),onPrimaryContainer:i("var(--md-sys-color-on-primary-container, #4F378B)"),primaryFixed:i("var(--md-sys-color-primary-fixed, #EADDFF)"),primaryFixedDim:i("var(--md-sys-color-primary-fixed-dim, #D0BCFF)"),onPrimaryFixed:i("var(--md-sys-color-on-primary-fixed, #21005D)"),onPrimaryFixedVariant:i("var(--md-sys-color-on-primary-fixed-variant, #4F378B)"),secondary:i("var(--md-sys-color-secondary, #625B71)"),onSecondary:i("var(--md-sys-color-on-secondary, #FFFFFF)"),secondaryContainer:i("var(--md-sys-color-secondary-container, #E8DEF8)"),onSecondaryContainer:i("var(--md-sys-color-on-secondary-container, #4A4458)"),secondaryFixed:i("var(--md-sys-color-secondary-fixed, #E8DEF8)"),secondaryFixedDim:i("var(--md-sys-color-secondary-fixed-dim, #CCC2DC)"),onSecondaryFixed:i("var(--md-sys-color-on-secondary-fixed, #1D192B)"),onSecondaryFixedVariant:i("var(--md-sys-color-on-secondary-fixed-variant, #4A4458)"),tertiary:i("var(--md-sys-color-tertiary, #7D5260)"),onTertiary:i("var(--md-sys-color-on-tertiary, #FFFFFF)"),tertiaryContainer:i("var(--md-sys-color-tertiary-container, #FFD8E4)"),onTertiaryContainer:i("var(--md-sys-color-on-tertiary-container, #633B48)"),tertiaryFixed:i("var(--md-sys-color-tertiary-fixed, #FFD8E4)"),tertiaryFixedDim:i("var(--md-sys-color-tertiary-fixed-dim, #EFB8C8)"),onTertiaryFixed:i("var(--md-sys-color-on-tertiary-fixed, #31111D)"),onTertiaryFixedVariant:i("var(--md-sys-color-on-tertiary-fixed-variant, #633B48)"),error:i("var(--md-sys-color-error, #B3261E)"),onError:i("var(--md-sys-color-on-error, #FFFFFF)"),errorContainer:i("var(--md-sys-color-error-container, #F9DEDC)"),onErrorContainer:i("var(--md-sys-color-on-error-container, #8C1D18)"),surface:i("var(--md-sys-color-surface, #FEF7FF)"),onSurface:i("var(--md-sys-color-on-surface, #1D1B20)"),onSurfaceVariant:i("var(--md-sys-color-on-surface-variant, #49454F)"),surfaceContainerLowest:i("var(--md-sys-color-surface-container-lowest, #FFFFFF)"),surfaceContainerLow:i("var(--md-sys-color-surface-container-low, #F7F2FA)"),surfaceContainer:i("var(--md-sys-color-surface-container, #F3EDF7)"),surfaceContainerHigh:i("var(--md-sys-color-surface-container-high, #ECE6F0)"),surfaceContainerHighest:i("var(--md-sys-color-surface-container-highest, #E6E0E9)"),surfaceDim:i("var(--md-sys-color-surface-dim, #DED8E1)"),surfaceBright:i("var(--md-sys-color-surface-bright, #FEF7FF)"),surfaceVariant:i("var(--md-sys-color-surface-variant, #E7E0EC)"),inverseSurface:i("var(--md-sys-color-inverse-surface, #322F35)"),inverseOnSurface:i("var(--md-sys-color-inverse-on-surface, #F5EFF7)"),inversePrimary:i("var(--md-sys-color-inverse-primary, #D0BCFF)"),outline:i("var(--md-sys-color-outline, #79747E)"),outlineVariant:i("var(--md-sys-color-outline-variant, #CAC4D0)"),shadow:i("var(--md-sys-color-shadow, #000000)"),scrim:i("var(--md-sys-color-scrim, #000000)")},ds={scale:i("var(--md-sys-density-scale, 0)"),size:i("var(--md-sys-density-size, 0.25rem)")},cs={...ds,calc:e=>i(`calc(max(${e}, ${ds.scale}) * ${ds.size})`)},hs=`color-mix(in srgb, var(--m3e-elevation-color, ${ls.shadow}) 20%, transparent)`,ps=["0px 0px 0px 0px","0px 2px 1px -1px","0px 3px 1px -2px","0px 3px 3px -2px","0px 2px 4px -1px","0px 3px 5px -1px","0px 3px 5px -1px","0px 4px 5px -2px","0px 5px 5px -3px","0px 5px 6px -3px","0px 6px 6px -3px","0px 6px 7px -4px","0px 7px 8px -4px","0px 7px 8px -4px","0px 7px 9px -4px","0px 8px 9px -5px","0px 8px 10px -5px","0px 8px 11px -5px","0px 9px 11px -5px","0px 9px 12px -6px","0px 10px 13px -6px","0px 10px 13px -6px","0px 10px 14px -6px","0px 11px 14px -7px","0px 11px 15px -7px"],ms=`color-mix(in srgb, var(--m3e-elevation-color, ${ls.shadow}) 14%, transparent)`,us=["0px 0px 0px 0px","0px 1px 1px 0px","0px 2px 2px 0px","0px 3px 4px 0px","0px 4px 5px 0px","0px 5px 8px 0px","0px 6px 10px 0px","0px 7px 10px 1px","0px 8px 10px 1px","0px 9px 12px 1px","0px 10px 14px 1px","0px 11px 15px 1px","0px 12px 17px 2px","0px 13px 19px 2px","0px 14px 21px 2px","0px 15px 22px 2px","0px 16px 24px 2px","0px 17px 26px 2px","0px 18px 28px 2px","0px 19px 29px 2px","0px 20px 31px 3px","0px 21px 33px 3px","0px 22px 35px 3px","0px 23px 36px 3px","0px 24px 38px 3px"],fs=`color-mix(in srgb, var(--m3e-elevation-color, ${ls.shadow}) 12%, transparent)`,vs=["0px 0px 0px 0px","0px 1px 3px 0px","0px 1px 5px 0px","0px 1px 8px 0px","0px 1px 10px 0px","0px 1px 14px 0px","0px 1px 18px 0px","0px 2px 16px 1px","0px 3px 14px 2px","0px 3px 16px 2px","0px 4px 18px 3px","0px 4px 20px 3px","0px 5px 22px 4px","0px 5px 24px 4px","0px 5px 26px 4px","0px 6px 28px 5px","0px 6px 30px 5px","0px 6px 32px 5px","0px 7px 34px 6px","0px 7px 36px 6px","0px 8px 38px 7px","0px 8px 40px 7px","0px 8px 42px 7px","0px 9px 44px 8px","0px 9px 46px 8px"];function ys(e){return`${hs} ${ps[e]},${ms} ${us[e]},${fs} ${vs[e]}`}const gs={level0:i(`var(--md-sys-elevation-level0, ${ys(0)})`),level1:i(`var(--md-sys-elevation-level1, ${ys(1)})`),level2:i(`var(--md-sys-elevation-level2, ${ys(3)})`),level3:i(`var(--md-sys-elevation-level3, ${ys(6)})`),level4:i(`var(--md-sys-elevation-level4, ${ys(8)})`),level5:i(`var(--md-sys-elevation-level5, ${ys(12)})`)},bs={emphasized:i("var(--md-sys-motion-easing-emphasized, cubic-bezier(0.2, 0.0, 0, 1.0))"),emphasizedDecelerate:i("var(--md-sys-motion-easing-emphasized-decelerate, cubic-bezier(0.05, 0.7, 0.1, 1.0))"),emphasizedAccelerate:i("var(--md-sys-motion-easing-emphasized-accelerate, cubic-bezier(0.3, 0.0, 0.8, 0.15))"),standard:i("var(--md-sys-motion-easing-standard, cubic-bezier(0.2, 0.0, 0, 1.0))"),standardDecelerate:i("var(--md-sys-motion-easing-standard-decelerate, cubic-bezier(0, 0, 0, 1))"),standardAccelerate:i("var(--md-sys-motion-easing-standard-accelerate, cubic-bezier(0.3, 0, 1, 1))")},xs={fastSpatial:i("var(--md-sys-motion-spring-fast-spatial, 350ms cubic-bezier(0.27, 1.06, 0.18, 1.00))"),defaultSpatial:i("var(--md-sys-motion-spring-default-spatial, 500ms cubic-bezier(0.27, 1.06, 0.18, 1.00))"),slowSpatial:i("var(--md-sys-motion-spring-slow-spatial, 750ms cubic-bezier(0.27, 1.06, 0.18, 1.00))"),fastEffects:i("var(--md-sys-motion-spring-fast-effects, 150ms cubic-bezier(0.31, 0.94, 0.34, 1.00))"),defaultEffects:i("var(--md-sys-motion-spring-default-effects, 200ms cubic-bezier(0.34, 0.80, 0.34, 1.00))"),slowEffects:i("var(--md-sys-motion-spring-slow-effects, 200ms cubic-bezier(0.34, 0.88, 0.34, 1.00))")},ws={easing:bs,duration:{short1:i("var(--md-sys-motion-duration-short-1, 50ms)"),short2:i("var(--md-sys-motion-duration-short-2, 100ms)"),short3:i("var(--md-sys-motion-duration-short-3, 150ms)"),short4:i("var(--md-sys-motion-duration-short-4, 200ms)"),medium1:i("var(--md-sys-motion-duration-medium-1, 250ms)"),medium2:i("var(--md-sys-motion-duration-medium-2, 300ms)"),medium3:i("var(--md-sys-motion-duration-medium-3, 350ms)"),medium4:i("var(--md-sys-motion-duration-medium-4, 400ms)"),long1:i("var(--md-sys-motion-duration-long-1, 450ms)"),long2:i("var(--md-sys-motion-duration-long-2, 500ms)"),long3:i("var(--md-sys-motion-duration-long-3, 550ms)"),long4:i("var(--md-sys-motion-duration-long-4, 600ms)"),extraLong1:i("var(--md-sys-motion-duration-extra-long-1, 700ms)"),extraLong2:i("var(--md-sys-motion-duration-extra-long-2, 800ms)"),extraLong3:i("var(--md-sys-motion-duration-extra-long-3, 900ms)"),extraLong4:i("var(--md-sys-motion-duration-extra-long-4, 1000ms)")},spring:xs},ks={width:i("var(--m3e-scrollbar-width, auto)"),thinWidth:i("var(--m3e-scrollbar-thin-width, thin)"),color:i("var(--m3e-scrollbar-thumb-color, #938f94) var(--m3e-scrollbar-track-color, transparent)")},$s={none:i("var(--md-sys-shape-corner-value-none, 0)"),extraSmall:i("var(--md-sys-shape-corner-value-extra-small, 0.25rem)"),small:i("var(--md-sys-shape-corner-value-small, 0.5rem)"),medium:i("var(--md-sys-shape-corner-value-medium, 0.75rem)"),large:i("var(--md-sys-shape-corner-value-large, 1rem)"),largeIncreased:i("var(--md-sys-shape-corner-value-large-increased, 1.25rem)"),extraLarge:i("var(--md-sys-shape-corner-value-extra-large, 1.75rem)"),extraLargeIncreased:i("var(--md-sys-shape-corner-value-extra-large-increased, 2rem)"),extraExtraLarge:i("var(--md-sys-shape-corner-value-extra-extra-large, 3rem)")},Es={color:ls,elevation:gs,motion:ws,shape:{corner:{full:i("var(--md-sys-shape-corner-full, 624.9375rem)"),extraLargeTop:i(`var(--md-sys-shape-corner-extra-large-top, ${$s.extraLarge} ${$s.extraLarge} ${$s.none} ${$s.none})`),extraLarge:i(`var(--md-sys-shape-corner-extra-large, ${$s.extraLarge})`),extraLargeEnd:i(`${$s.none} ${$s.extraLarge} ${$s.extraLarge} ${$s.none}`),extraLargeStart:i(`${$s.extraLarge} ${$s.none} ${$s.none} ${$s.extraLarge}`),largeTop:i(`var(--md-sys-shape-corner-large-top, ${$s.large} ${$s.large} ${$s.none} ${$s.none})`),largeEnd:i(`var(--md-sys-shape-corner-large-end, ${$s.none} ${$s.large} ${$s.large} ${$s.none})`),largeStart:i(`var(--md-sys-shape-corner-large-end, ${$s.large} ${$s.none} ${$s.none} ${$s.large})`),large:i(`var(--md-sys-shape-corner-large, ${$s.large})`),medium:i(`var(--md-sys-shape-corner-medium, ${$s.medium})`),mediumTop:i(`${$s.medium} ${$s.medium} ${$s.none} ${$s.none}`),mediumEnd:i(`${$s.none} ${$s.medium} ${$s.medium} ${$s.none}`),mediumStart:i(`${$s.medium} ${$s.none} ${$s.none} ${$s.medium}`),small:i(`var(--md-sys-shape-corner-small, ${$s.small})`),smallTop:i(`${$s.small} ${$s.small} ${$s.none} ${$s.none}`),smallEnd:i(`${$s.none} ${$s.small} ${$s.small} ${$s.none}`),smallStart:i(`${$s.small} ${$s.none} ${$s.none} ${$s.small}`),extraSmallTop:i(`var(--md-sys-shape-corner-extra-small-top, ${$s.extraSmall} ${$s.extraSmall} ${$s.none} ${$s.none})`),extraSmall:i(`var(--md-sys-shape-corner-extra-small, ${$s.extraSmall})`),extraSmallEnd:i(`${$s.none} ${$s.extraSmall} ${$s.extraSmall} ${$s.none}`),extraSmallStart:i(`${$s.extraSmall} ${$s.none} ${$s.none} ${$s.extraSmall}`),extraSmallBottom:i(`${$s.none} ${$s.none} ${$s.extraSmall} ${$s.extraSmall}`),none:i(`var(--md-sys-shape-corner-none, ${$s.none})`),largeIncreased:i(`var(--md-sys-shape-corner-large-increased, ${$s.largeIncreased})`),extraLargeIncreased:i(`var(--md-sys-shape-corner-extra-large-increased, ${$s.extraLargeIncreased})`),extraExtraLarge:i(`var(--md-sys-shape-corner-extra-extra-large, ${$s.extraExtraLarge})`),value:$s}},state:{focusStateLayerOpacity:i("var(--md-sys-state-focus-state-layer-opacity, 10%)"),hoverStateLayerOpacity:i("var(--md-sys-state-hover-state-layer-opacity, 8%)"),pressedStateLayerOpacity:i("var(--md-sys-state-pressed-state-layer-opacity, 10%)")},typescale:{standard:{display:{large:{fontSize:i("var(--md-sys-typescale-display-large-font-size, 3.5625rem)"),fontWeight:i("var(--md-sys-typescale-display-large-font-weight, 400)"),lineHeight:i("var(--md-sys-typescale-display-large-line-height, 4rem)"),tracking:i("var(--md-sys-typescale-display-large-tracking, 0.015625rem)")},medium:{fontSize:i("var(--md-sys-typescale-display-medium-font-size, 2.8125rem)"),fontWeight:i("var(--md-sys-typescale-display-medium-font-weight, 400)"),lineHeight:i("var(--md-sys-typescale-display-medium-line-height, 3.25rem)"),tracking:i("var(--md-sys-typescale-display-medium-tracking, 0)")},small:{fontSize:i("var(--md-sys-typescale-display-small-font-size, 2.25rem)"),fontWeight:i("var(--md-sys-typescale-display-small-font-weight, 400)"),lineHeight:i("var(--md-sys-typescale-display-small-line-height, 2.75rem)"),tracking:i("var(--md-sys-typescale-display-small-tracking, 0)")}},headline:{large:{fontSize:i("var(--md-sys-typescale-headline-large-font-size, 2rem)"),fontWeight:i("var(--md-sys-typescale-headline-large-font-weight, 400)"),lineHeight:i("var(--md-sys-typescale-headline-large-line-height, 2.5rem)"),tracking:i("var(--md-sys-typescale-headline-large-tracking, 0)")},medium:{fontSize:i("var(--md-sys-typescale-headline-medium-font-size, 1.75rem)"),fontWeight:i("var(--md-sys-typescale-headline-medium-font-weight, 400)"),lineHeight:i("var(--md-sys-typescale-headline-medium-line-height, 2.25rem)"),tracking:i("var(--md-sys-typescale-headline-medium-tracking, 0)")},small:{fontSize:i("var(--md-sys-typescale-headline-small-font-size, 1.5rem)"),fontWeight:i("var(--md-sys-typescale-headline-small-font-weight, 400)"),lineHeight:i("var(--md-sys-typescale-headline-small-line-height, 2rem)"),tracking:i("var(--md-sys-typescale-headline-small-tracking, 0)")}},title:{large:{fontSize:i("var(--md-sys-typescale-title-large-font-size, 1.375rem)"),fontWeight:i("var(--md-sys-typescale-title-large-font-weight, 400)"),lineHeight:i("var(--md-sys-typescale-title-large-line-height, 1.75rem)"),tracking:i("var(--md-sys-typescale-title-large-tracking, 0)")},medium:{fontSize:i("var(--md-sys-typescale-title-medium-font-size, 1rem)"),fontWeight:i("var(--md-sys-typescale-title-medium-font-weight, 500)"),lineHeight:i("var(--md-sys-typescale-title-medium-line-height, 1.5rem)"),tracking:i("var(--md-sys-typescale-title-medium-tracking, 0.009375rem)")},small:{fontSize:i("var(--md-sys-typescale-title-small-font-size, 0.875rem)"),fontWeight:i("var(--md-sys-typescale-title-small-font-weight, 500)"),lineHeight:i("var(--md-sys-typescale-title-small-line-height, 1.25rem)"),tracking:i("var(--md-sys-typescale-title-small-tracking, 0.00625rem)")}},body:{large:{fontSize:i("var(--md-sys-typescale-body-large-font-size, 1rem)"),fontWeight:i("var(--md-sys-typescale-body-large-font-weight, 400)"),lineHeight:i("var(--md-sys-typescale-body-large-line-height, 1.5rem)"),tracking:i("var(--md-sys-typescale-body-large-tracking, 0.03125rem)")},medium:{fontSize:i("var(--md-sys-typescale-body-medium-font-size, 0.875rem)"),fontWeight:i("var(--md-sys-typescale-body-medium-font-weight, 400)"),lineHeight:i("var(--md-sys-typescale-body-medium-line-height, 1.25rem)"),tracking:i("var(--md-sys-typescale-body-medium-tracking, 0.015625rem)")},small:{fontSize:i("var(--md-sys-typescale-body-small-font-size, 0.75rem)"),fontWeight:i("var(--md-sys-typescale-body-small-font-weight, 400)"),lineHeight:i("var(--md-sys-typescale-body-small-line-height, 1rem)"),tracking:i("var(--md-sys-typescale-body-small-tracking, 0.025rem)")}},label:{large:{fontSize:i("var(--md-sys-typescale-label-large-font-size, 0.875rem)"),fontWeight:i("var(--md-sys-typescale-label-large-font-weight, 500)"),lineHeight:i("var(--md-sys-typescale-label-large-line-height, 1.25rem)"),tracking:i("var(--md-sys-typescale-label-large-tracking, 0.00625rem)")},medium:{fontSize:i("var(--md-sys-typescale-label-medium-font-size, 0.75rem)"),fontWeight:i("var(--md-sys-typescale-label-medium-font-weight, 500)"),lineHeight:i("var(--md-sys-typescale-label-medium-line-height, 1rem)"),tracking:i("var(--md-sys-typescale-label-medium-tracking, 0.03125rem)")},small:{fontSize:i("var(--md-sys-typescale-label-small-font-size, 0.6875rem)"),fontWeight:i("var(--md-sys-typescale-label-small-font-weight, 500)"),lineHeight:i("var(--md-sys-typescale-label-small-line-height, 1rem)"),tracking:i("var(--md-sys-typescale-label-small-tracking, 0.03125rem)")}}},emphasized:{display:{large:{fontSize:i("var(--md-sys-typescale-emphasized-display-large-font-size, 3.5625rem)"),fontWeight:i("var(--md-sys-typescale-emphasized-display-large-font-weight, 500)"),lineHeight:i("var(--md-sys-typescale-emphasized-display-large-line-height, 4rem)"),tracking:i("var(--md-sys-typescale-emphasized-display-large-tracking, 0.015625rem)")},medium:{fontSize:i("var(--md-sys-typescale-emphasized-display-medium-font-size, 2.8125rem)"),fontWeight:i("var(--md-sys-typescale-emphasized-display-medium-font-weight, 500)"),lineHeight:i("var(--md-sys-typescale-emphasized-display-medium-line-height, 3.25rem)"),tracking:i("var(--md-sys-typescale-emphasized-display-medium-tracking, 0)")},small:{fontSize:i("var(--md-sys-typescale-emphasized-display-small-font-size, 2.25rem)"),fontWeight:i("var(--md-sys-typescale-emphasized-display-small-font-weight, 500)"),lineHeight:i("var(--md-sys-typescale-emphasized-display-small-line-height, 2.75rem)"),tracking:i("var(--md-sys-typescale-emphasized-display-small-tracking, 0)")}},headline:{large:{fontSize:i("var(--md-sys-typescale-emphasized-headline-large-font-size, 2rem)"),fontWeight:i("var(--md-sys-typescale-emphasized-headline-large-font-weight, 500)"),lineHeight:i("var(--md-sys-typescale-emphasized-headline-large-line-height, 2.5rem)"),tracking:i("var(--md-sys-typescale-emphasized-headline-large-tracking, 0)")},medium:{fontSize:i("var(--md-sys-typescale-emphasized-headline-medium-font-size, 1.75rem)"),fontWeight:i("var(--md-sys-typescale-emphasized-headline-medium-font-weight, 500)"),lineHeight:i("var(--md-sys-typescale-emphasized-headline-medium-line-height, 2.25rem)"),tracking:i("var(--md-sys-typescale-emphasized-headline-medium-tracking, 0)")},small:{fontSize:i("var(--md-sys-typescale-emphasized-headline-small-font-size, 1.5rem)"),fontWeight:i("var(--md-sys-typescale-emphasized-headline-small-font-weight, 500)"),lineHeight:i("var(--md-sys-typescale-emphasized-headline-small-line-height, 2rem)"),tracking:i("var(--md-sys-typescale-emphasized-headline-small-tracking, 0)")}},title:{large:{fontSize:i("var(--md-sys-typescale-emphasized-title-large-font-size, 1.375rem)"),fontWeight:i("var(--md-sys-typescale-emphasized-title-large-font-weight, 500)"),lineHeight:i("var(--md-sys-typescale-emphasized-title-large-line-height, 1.75rem)"),tracking:i("var(--md-sys-typescale-emphasized-title-large-tracking, 0)")},medium:{fontSize:i("var(--md-sys-typescale-emphasized-title-medium-font-size, 1rem)"),fontWeight:i("var(--md-sys-typescale-emphasized-title-medium-font-weight, 700)"),lineHeight:i("var(--md-sys-typescale-emphasized-title-medium-line-height, 3.5rem)"),tracking:i("var(--md-sys-typescale-emphasized-title-medium-tracking, 0.009375rem)")},small:{fontSize:i("var(--md-sys-typescale-emphasized-title-small-font-size, 0.875rem)"),fontWeight:i("var(--md-sys-typescale-emphasized-title-small-font-weight, 700)"),lineHeight:i("var(--md-sys-typescale-emphasized-title-small-line-height, 1.25rem)"),tracking:i("var(--md-sys-typescale-emphasized-title-small-tracking, 0.00625rem)")}},body:{large:{fontSize:i("var(--md-sys-typescale-emphasized-body-large-font-size, 1rem)"),fontWeight:i("var(--md-sys-typescale-emphasized-body-large-font-weight, 500)"),lineHeight:i("var(--md-sys-typescale-emphasized-body-large-line-height, 1.5rem)"),tracking:i("var(--md-sys-typescale-emphasized-body-large-tracking, 0.03125rem)")},medium:{fontSize:i("var(--md-sys-typescale-emphasized-body-medium-font-size, 0.875rem)"),fontWeight:i("var(--md-sys-typescale-emphasized-body-medium-font-weight, 500)"),lineHeight:i("var(--md-sys-typescale-emphasized-body-medium-line-height, 1.25rem)"),tracking:i("var(--md-sys-typescale-emphasized-body-medium-tracking, 0.015625rem)")},small:{fontSize:i("var(--md-sys-typescale-emphasized-body-small-font-size, 0.75rem)"),fontWeight:i("var(--md-sys-typescale-emphasized-body-small-font-weight, 500)"),lineHeight:i("var(--md-sys-typescale-emphasized-body-small-line-height, 1rem)"),tracking:i("var(--md-sys-typescale-emphasized-body-small-tracking, 0.025rem)")}},label:{large:{fontSize:i("var(--md-sys-typescale-emphasized-label-large-font-size, 0.875rem)"),fontWeight:i("var(--md-sys-typescale-emphasized-label-large-font-weight, 700)"),lineHeight:i("var(--md-sys-typescale-emphasized-label-large-line-height, 1.25rem)"),tracking:i("var(--md-sys-typescale-emphasized-label-large-tracking, 0.00625rem)")},medium:{fontSize:i("var(--md-sys-typescale-emphasized-label-medium-font-size, 0.75rem)"),fontWeight:i("var(--md-sys-typescale-emphasized-label-medium-font-weight, 700)"),lineHeight:i("var(--md-sys-typescale-emphasized-label-medium-line-height, 1rem)"),tracking:i("var(--md-sys-typescale-emphasized-label-medium-tracking, 0.03125rem)")},small:{fontSize:i("var(--md-sys-typescale-emphasized-label-small-font-size, 0.6875rem)"),fontWeight:i("var(--md-sys-typescale-emphasized-label-small-font-weight, 700)"),lineHeight:i("var(--md-sys-typescale-emphasized-label-small-line-height, 1rem)"),tracking:i("var(--md-sys-typescale-emphasized-label-small-tracking, 0.03125rem)")}}}},scrollbar:ks,density:cs};function Ss(e){return Ot(e,"disabled")}function zs(e,t=!0){class s extends e{constructor(){super(...arguments),this.disabled=!1}update(e){super.update(e),e.has("disabled")&&this.role&&"none"!==this.role&&"presentation"!==this.role&&(this.ariaDisabled=this.disabled?"true":null)}}return m([c({type:Boolean,reflect:t})],s.prototype,"disabled",void 0),s}function Ms(e){return Ot(e,"disabledInteractive")&&Ss(e)}const Cs=["click","dblclick","auxclick","keydown","keyup"],Ls=["Tab","ArrowLeft","ArrowUp","ArrowRight","ArrowDown","Left","Up","Right","Down"],Ws=Symbol("_suppressedEventHandler");function Fs(e){var t;class s extends e{constructor(){super(...arguments),this[t]=e=>{if(this.disabledInteractive){if(e instanceof KeyboardEvent&&Ls.includes(e.key))return;e.stopImmediatePropagation(),e.preventDefault()}},this.disabledInteractive=!1}connectedCallback(){Cs.forEach(e=>this.addEventListener(e,this[Ws],!0)),super.connectedCallback()}disconnectedCallback(){Cs.forEach(e=>this.removeEventListener(e,this[Ws],!0)),super.disconnectedCallback()}update(e){super.update(e),(e.has("disabled")||e.has("disabledInteractive"))&&this.role&&"none"!==this.role&&"presentation"!==this.role&&"none"!==this.role&&(this.ariaDisabled=this.disabled||this.disabledInteractive?"true":null)}}return t=Ws,m([c({attribute:"disabled-interactive",type:Boolean,reflect:!0})],s.prototype,"disabledInteractive",void 0),s}const As=Symbol("updateLabels");function _s(e){return Ot(e,"labels")&&Bt(e)}const Ts=Symbol("_eventHandler");function Ds(e){var t;class s extends e{constructor(){super(...arguments),this[t]=e=>{e.defaultPrevented||this[As]()}}get labels(){return this[It].labels}connectedCallback(){super.connectedCallback(),this.addEventListener("focusout",this[Ts]),this.addEventListener("change",this[Ts])}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("focusout",this[Ts]),this.removeEventListener("change",this[Ts])}update(e){super.update(e),this[As]()}[(t=Ts,As)](){const e=this.hasAttribute("tabindex"),t=Ss(this)&&this.disabled||Ms(this)&&this.disabledInteractive,s=rs(this)&&this.touched&&(this.ariaInvalid||Ut(this,"-invalid"));for(const i of this.labels??[])i.style.userSelect=e?"none":"",i.style.cursor=!t&&e?"pointer":"",!t&&e?i.style.setProperty("-webkit-tap-highlight-color","rgba(0, 0, 0, 0)"):i.style.removeProperty("-webkit-tap-highlight-color"),i.style.color=t?`color-mix(in srgb, ${Es.color.onSurface} 38%, transparent)`:s?`${Es.color.error}`:""}}return s.formAssociated=!0,s}const Hs=Symbol("formValue"),Ps=Symbol("defaultValue");function Os(e){return Ot(e,"disabled","form","name")&&_s(e)&&Bt(e)}const Is=Symbol("_defaultValue"),Bs=Symbol("_defaultIndeterminate"),Vs=Symbol("_formDisabled");function Ns(e){var t,s;class i extends e{constructor(){super(...arguments),this[t]=!1,this[s]=!1}get form(){return this[It].form}get labels(){return this[It].labels}get[(t=Bs,s=Vs,Hs)](){return null}get[Ps](){return this[Is]}get name(){return this.getAttribute("name")??""}set name(e){e?this.setAttribute("name",e):this.removeAttribute("name")}get disabled(){return super.disabled||this[Vs]}set disabled(e){super.disabled=e}connectedCallback(){super.connectedCallback(),Xt(this)?(this[Is]=this.checked,Gt(this)&&(this[Bs]=this.indeterminate)):"value"in this&&(this[Is]=this.value)}requestUpdate(e,t,s){super.requestUpdate(e,t,s),this[It].setFormValue(this[Hs])}formDisabledCallback(e){const t=this.disabled;this[Vs]=e,this.disabled!=t&&this.requestUpdate("disabled",t)}formResetCallback(){Xt(this)?(this.checked=!0===this[Is],Gt(this)&&(this.indeterminate=this[Bs])):"value"in this&&(this.value=this[Ps]),ss(this)&&this.markAsPristine(),rs(this)&&this.markAsUntouched()}}return i.formAssociated=!0,m([c({noAccessor:!0})],i.prototype,"name",null),m([c({type:Boolean})],i.prototype,"disabled",null),i}const Us=Symbol("validate");function qs(e){return Ot(e,"willValidate","validity","validationMessage","reportValidity","checkValidity","setCustomValidity")&&Os(e)}const Rs=Symbol("_updateValidity"),js=Symbol("_validityMessage");function Xs(t){var s,i;class a extends t{constructor(){super(...arguments),s.add(this)}get willValidate(){return this[It].willValidate}get validity(){return this[Rs](),this[It].validity}get validationMessage(){return this[Rs](),this[It].validationMessage}[(s=new WeakSet,Us)](){return this[js]?{customError:!0}:void 0}reportValidity(){return rs(this)&&this.markAsTouched(),this[Rs](),this[It].reportValidity()}checkValidity(){return this[Rs](),this[It].checkValidity()}setCustomValidity(e){this[js]=e||void 0,this[Rs]()}requestUpdate(e,t,s){super.requestUpdate(e,t,s),this[Rs]()}firstUpdated(e){super.firstUpdated(e),this[Rs]()}[Rs](){if(e||!this.isConnected)return;const t=this[Us](),a=t&&Object.keys(t).some(e=>!0===t[e]);let r=t?.customError?this[js]:"";t&&!r&&(r=u(this,s,"m",i).call(this,t)),this[It].setValidity(t,r),this.ariaInvalid=a?"true":null,jt(this,"-invalid",!0===a),_s(this)&&this[As]?.()}}return i=function(e){const t=document.createElement("input");return t.type="text",e.valueMissing&&(t.required=!0,t.value=""),e.typeMismatch&&(t.type="email",t.value="not-an-email"),e.patternMismatch&&(t.pattern="[0-9]{4}",t.value="abcd"),e.tooShort&&(t.minLength=5,t.value="abc"),e.tooLong&&(t.maxLength=2,t.value="abcdef"),e.rangeUnderflow&&(t.type="number",t.min="10",t.value="5"),e.rangeOverflow&&(t.type="number",t.max="5",t.value="10"),e.stepMismatch&&(t.type="number",t.step="2",t.value="3"),e.badInput&&(t.type="number",t.value="abc"),t.setCustomValidity(""),t.checkValidity(),t.validationMessage},a}function Ys(e,...t){return class extends e{dispatchEvent(e){if(t.includes(e.type)){const t=this.getAttribute(`on${e.type}`);t&&new Function("e",`${t};`).call(this,e)}return super.dispatchEvent(e)}}}const Gs=Symbol("_tabindex");function Zs(e){var t;return t=Gs,class extends e{constructor(){super(...arguments),this[t]=0}connectedCallback(){this[Gs]=Number.parseInt(this.getAttribute("tabindex")??"0"),super.connectedCallback()}firstUpdated(e){super.firstUpdated(e),this.hasAttribute("tabindex")||e.has("disabled")||this.setAttribute("tabindex",`${this[Gs]}`)}update(e){if(super.update(e),e.has("disabled"))if(this.disabled||"none"===this.role){const e=this.getAttribute("tabindex");e&&(this[Gs]=Number.parseInt(e)),this.removeAttribute("tabindex")}else this.hasAttribute("tabindex")||this.setAttribute("tabindex",`${this[Gs]}`)}}}function Ks(e){return Ot(e,"name","type","value")&&Bt(e)}const Qs=Symbol("_clickHandler");function Js(e){var t;class s extends e{constructor(){super(...arguments),this.type="button",this[t]=async e=>{if(e.defaultPrevented||Ss(this)&&this.disabled||Ms(this)&&this.disabledInteractive)return;const t=this[It].form;if(t&&"button"!==this.type&&(await new Promise(e=>setTimeout(e)),!e.defaultPrevented))switch(this.type){case"reset":t.reset();break;case"submit":t.addEventListener("submit",e=>Object.defineProperty(e,"submitter",{configurable:!0,enumerable:!0,get:()=>this}),{capture:!0,once:!0}),this[It].setFormValue(this.value),t.requestSubmit()}}}get name(){return this.getAttribute("name")??""}set name(e){e?this.setAttribute("name",e):this.removeAttribute("name")}get value(){return this.getAttribute("value")}set value(e){null!=e?this.setAttribute("value",e):this.removeAttribute("value")}connectedCallback(){super.connectedCallback(),this.addEventListener("click",this[Qs])}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",this[Qs])}}return t=Qs,s.formAssociated=!0,m([c()],s.prototype,"name",null),m([c()],s.prototype,"value",null),m([c()],s.prototype,"type",void 0),s}function ei(e){return Ot(e,"htmlFor","control","attach","detach")}const ti=Symbol("_control"),si=Symbol("_firstUpdated");function ii(e){var t;class s extends e{constructor(){super(...arguments),this[t]=!1,this.htmlFor=null}get control(){return this[ti]?.deref()??null}connectedCallback(){super.connectedCallback();const e=this[ti]?.deref();e&&this.attach(e)}disconnectedCallback(){super.disconnectedCallback();const e=this[ti];e&&(this.detach(),this[ti]=e)}firstUpdated(e){super.firstUpdated(e),this[si]=!0}update(e){if(super.update(e),e.has("htmlFor"))if(this.htmlFor){const e=this.getRootNode();e&&rt(this.htmlFor,e).then(e=>{e!==this.control&&(this.control&&this.detach(),e instanceof HTMLElement&&this.attach(e))})}else this.control&&this[si]&&this.detach()}attach(e){this[ti]=new WeakRef(e)}detach(){this[ti]=void 0}}return t=si,m([c({attribute:"for"})],s.prototype,"htmlFor",void 0),s}function ai(e,t=!0){var s,i,a,r,n,o,l;return i=new WeakMap,a=new WeakMap,r=new WeakMap,n=new WeakMap,s=new WeakSet,o=function(e){e.target!==e.currentTarget||Ss(this)&&this.disabled||Ms(this)&&this.disabledInteractive?f(this,i,!1,"f"):(" "===e.key||t&&"Enter"===e.key)&&f(this,i,!0,"f")},l=function(e){e.target!==e.currentTarget||Ss(this)&&this.disabled||Ms(this)&&this.disabledInteractive||!u(this,i,"f")?f(this,i,!1,"f"):(f(this,i,!1,"f"),this.dispatchEvent(new MouseEvent("click",{cancelable:!0,bubbles:!0,composed:!0})))},class extends e{constructor(){super(...arguments),s.add(this),i.set(this,!1),a.set(this,e=>u(this,s,"m",o).call(this,e)),r.set(this,e=>u(this,s,"m",l).call(this,e)),n.set(this,()=>f(this,i,!1,"f"))}connectedCallback(){super.connectedCallback(),this.addEventListener("keydown",u(this,a,"f")),this.addEventListener("keyup",u(this,r,"f")),this.addEventListener("focusout",u(this,n,"f"))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("keydown",u(this,a,"f")),this.removeEventListener("keyup",u(this,r,"f")),this.removeEventListener("focusout",u(this,n,"f"))}}}const ri=Symbol("renderPseudoLink");function ni(e){return Ot(e,"download","href","rel","target")}const oi=Symbol("_clickHandler");function li(e){var s,i,r,n,o;class l extends e{constructor(){super(...arguments),s.add(this),this[o]=async e=>{if(Ms(this)&&this.disabledInteractive&&(e.preventDefault(),e.stopPropagation()),await new Promise(e=>e()),!e.defaultPrevented&&this.href){e.preventDefault(),e.stopImmediatePropagation();const t=document.createElement("a");t.href=this.href,t.rel=this.rel,t.target=this.target,null!=this.download&&(t.download=this.download),t.addEventListener("click",async()=>{await new Promise(e=>e()),t.remove()}),document.body.appendChild(t),t.click()}},this.href="",this.target="",this.rel=""}get download(){return this.getAttribute("download")}set download(e){const t=this.download;t!==e&&(e?this.setAttribute("download",e):this.removeAttribute("download"),this.requestUpdate("download",t))}connectedCallback(){super.connectedCallback(),this.addEventListener("click",this[oi]),this.hasAttribute("href")&&"button"===this.role&&(this.role="link")}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",this[oi])}[(s=new WeakSet,o=oi,ri)](){const e=Ss(this)&&this.disabled,o=Ms(this)&&this.disabledInteractive;return e||o||!this.href?t:a`<a href="${this.href}" target="${p(this.target||void 0)}" rel="${p(this.rel||void 0)}" download="${p(this.download||void 0)}" tabindex="-1" aria-hidden="true" @pointerdown="${u(this,s,"m",i)}" @focus="${u(this,s,"m",r)}" @blur="${u(this,s,"m",n)}"></a>`}}return i=function(e){2!==e.button?(e.preventDefault(),e.stopImmediatePropagation(),this.dispatchEvent(new MouseEvent("click",{bubbles:!0,cancelable:!0,view:window}))):e.target.removeAttribute("aria-hidden")},r=function(e){e.target.blur(),this.focus()},n=function(e){e.target.setAttribute("aria-hidden","true")},m([c()],l.prototype,"href",void 0),m([c()],l.prototype,"target",void 0),m([c()],l.prototype,"rel",void 0),m([c({reflect:!1})],l.prototype,"download",null),l}function di(e){return Ot(e,"readOnly")}function ci(e,t=!0){class s extends e{constructor(){super(...arguments),this.readOnly=!1}update(e){super.update(e),e.has("readOnly")&&(this.ariaReadOnly=this.readOnly?"true":null)}}return m([c({attribute:"readonly",type:Boolean,reflect:t})],s.prototype,"readOnly",void 0),s}function hi(e){return Ot(e,"required","optional")}function pi(e){class t extends e{constructor(){super(...arguments),this.required=!1}get optional(){return!this.required}update(e){super.update(e),e.has("required")&&(this.ariaRequired=`${this.required}`)}}return m([c({type:Boolean,reflect:!0})],t.prototype,"required",void 0),t}function mi(e){return hi(e)&&qs(e)}function ui(e){return class extends e{[Us](){const e=super[Us]();if(!e&&this.required){if(Xt(this)&&!this.checked)return{valueMissing:!0};if(!this.value)return{valueMissing:!0}}return e}}}function fi(e,t){return class extends e{connectedCallback(){this.role=this.role||t,super.connectedCallback()}}}function vi(e){return Ot(e,"vertical")}function yi(e){class t extends e{constructor(){super(...arguments),this.vertical=!1}update(e){super.update(e),e.has("vertical")&&(this.ariaOrientation=this.vertical?"vertical":"horizontal")}}return m([c({type:Boolean,reflect:!0})],t.prototype,"vertical",void 0),t}var gi,bi,xi,wi,ki,$i,Ei,Si;class zi extends n{constructor(){super(...arguments),gi.set(this,e=>{e.defaultPrevented||this._onClick(e)})}connectedCallback(){super.connectedCallback(),this.parentElement?.addEventListener("click",u(this,gi,"f"))}disconnectedCallback(){super.disconnectedCallback(),this.parentElement?.removeEventListener("click",u(this,gi,"f"))}render(){return a`<slot></slot>`}}gi=new WeakMap,zi.styles=r`:host { display: contents; } ::slotted(.material-icons) { font-size: inherit !important; }`;let Mi=class extends(Ys(Nt(n),"opening","opened","closing","closed")){constructor(){super(...arguments),bi.add(this),xi.set(this,!1),wi.set(this,!1),this.open=!1}update(e){if(super.update(e),qt(this,"-no-animate"),!u(this,xi,"f"))return this.open&&(f(this,wi,!0,"f"),u(this,bi,"m",$i).call(this)),void f(this,xi,!0,"f");this.toggleAttribute("inert",!this.open),this.open?(f(this,wi,!0,"f"),at()||(u(this,bi,"m",$i).call(this),jt(this,"-overflows",this.clientHeight<this.scrollHeight),u(this,bi,"m",Ei).call(this)),Rt(this,"-closing"),qt(this,"-opening"),this.dispatchEvent(new Event("opening")),u(this,bi,"m",Ei).call(this),Rt(this,"-no-animate"),u(this,bi,"m",Si).call(this),at()?(u(this,bi,"m",$i).call(this),Rt(this,"-opening"),this.dispatchEvent(new Event("opened"))):this.addEventListener("transitionend",()=>{this.open&&(u(this,bi,"m",$i).call(this),Rt(this,"-opening"),this.dispatchEvent(new Event("opened")))},{once:!0})):(Rt(this,"-opening"),qt(this,"-closing"),this.dispatchEvent(new Event("closing")),u(this,bi,"m",Si).call(this),u(this,wi,"f")&&Rt(this,"-no-animate"),at()?(u(this,bi,"m",Ei).call(this),Rt(this,"-closing"),this.dispatchEvent(new Event("closed"))):requestAnimationFrame(()=>{u(this,bi,"m",Ei).call(this),this.addEventListener("transitionend",()=>{this.open||(Rt(this,"-closing"),this.dispatchEvent(new Event("closed")))},{once:!0})}))}render(){return a`<slot @slotchange="${u(this,bi,"m",ki)}"></slot>`}};xi=new WeakMap,wi=new WeakMap,bi=new WeakSet,ki=function(){f(this,xi,!0,"f")},$i=function(){this.style.height="auto"},Ei=function(){this.style.height=""},Si=function(){this.style.height=`${this.scrollHeight}px`},Mi.styles=r`:host { display: block; height: 0px; overflow: hidden; transition: ${i(`visibility var(--m3e-collapsible-animation-duration, ${Es.motion.duration.medium1})\n ${Es.motion.easing.standard},\n height var(--m3e-collapsible-animation-duration, ${Es.motion.duration.medium1})\n ${Es.motion.easing.standard},\n padding-top var(--m3e-collapsible-animation-duration, ${Es.motion.duration.medium1})\n ${Es.motion.easing.standard},\n padding-bottom var(--m3e-collapsible-animation-duration, ${Es.motion.duration.medium1})\n ${Es.motion.easing.standard}`)}; } :host(:not(:state(-closing)):not([open])) { visibility: hidden; } :host(:not([open])) { min-height: unset !important; padding-top: 0px !important; padding-bottom: 0px !important; } :host(:state(-no-animate)) { transition-duration: 0ms; } :host(:state(-opening)), :host(:state(-closing)) { overflow-y: hidden !important; } :host(:state(-overflows)) { scrollbar-gutter: stable; } ::slotted(*) { --m3e-collapsible-animation-duration: initial; } @media (prefers-reduced-motion) { :host { transition: none; } }`,m([c({type:Boolean,reflect:!0})],Mi.prototype,"open",void 0),Mi=m([vt("m3e-collapsible")],Mi);const Ci=i(`var(--m3e-elevation-lift-duration, ${Es.motion.duration.short4})`),Li=i(`var(--m3e-elevation-lift-easing, ${Es.motion.easing.standard})`),Wi=i(`var(--m3e-elevation-settle-duration, ${Es.motion.duration.short3})`),Fi=i(`var(--m3e-elevation-settle-easing, ${Es.motion.easing.standardAccelerate})`),Ai=i(`var(--m3e-elevation-level, ${Es.elevation.level0})`),_i=i(`var(--m3e-elevation-hover-level, ${Es.elevation.level0})`),Ti=i(`var(--m3e-elevation-focus-level, ${Es.elevation.level0})`),Di=i(`var(--m3e-elevation-pressed-level, ${Es.elevation.level0})`);var Hi,Pi,Oi,Ii,Bi,Vi,Ni;let Ui=class extends(ii(fi(n,"none"))){constructor(){super(...arguments),Hi.add(this),Pi.set(this,new ct(this,{target:null,callback:e=>u(this,Hi,"m",Bi).call(this,e)})),Oi.set(this,new dt(this,{target:null,callback:e=>u(this,Hi,"m",Vi).call(this,e)})),Ii.set(this,new ut(this,{target:null,callback:e=>u(this,Hi,"m",Ni).call(this,e)})),this.disabled=!1,this.level=null}attach(e){super.attach(e),u(this,Pi,"f").observe(e),u(this,Oi,"f").observe(e),u(this,Ii,"f").observe(e)}detach(){this.control&&(u(this,Pi,"f").unobserve(this.control),u(this,Oi,"f").unobserve(this.control),u(this,Ii,"f").unobserve(this.control)),super.detach()}connectedCallback(){this.ariaHidden="true",super.connectedCallback()}disconnectedCallback(){super.disconnectedCallback(),this._shadow?.classList.toggle("hover",!1),this._shadow?.classList.toggle("focus",!1),this._shadow?.classList.toggle("pressed",!1),this._shadow?.classList.toggle("resting",!1)}updated(e){super.updated(e),e.has("disabled")&&this.disabled&&(this._shadow?.classList.toggle("hover",!1),this._shadow?.classList.toggle("focus",!1),this._shadow?.classList.toggle("pressed",!1),this._shadow?.classList.toggle("resting",!0))}render(){return a`<div class="shadow"></div>`}};Pi=new WeakMap,Oi=new WeakMap,Ii=new WeakMap,Hi=new WeakSet,Bi=function(e){this.disabled||(this._shadow?.classList.toggle("hover",e),this._shadow?.classList.toggle("resting",!e))},Vi=function(e){this.disabled||this._shadow?.classList.toggle("focus",e)},Ni=function(e){this.disabled||this._shadow?.classList.toggle("pressed",e)},Ui.styles=r`:host { display: block; } :host, .shadow { position: absolute; left: 0; top: 0; right: 0; bottom: 0; pointer-events: none; border-radius: inherit; } .shadow.resting, .shadow.focus, .shadow.pressed { will-change: box-shadow; transition: ${i(`box-shadow ${Wi} ${Fi};`)}; } .shadow.hover { will-change: box-shadow; transition: ${i(`box-shadow ${Ci} ${Li};`)}; } .shadow { box-shadow: ${Ai}; } .shadow.focus { box-shadow: ${Ti}; } .shadow.hover { box-shadow: ${_i}; } .shadow.pressed { box-shadow: ${Di}; } :host([level="0"]) .shadow { --m3e-elevation-level: ${Es.elevation.level0}; --m3e-elevation-hover-level: ${Es.elevation.level1}; } :host([level="1"]) .shadow { --m3e-elevation-level: ${Es.elevation.level1}; --m3e-elevation-hover-level: ${Es.elevation.level2}; } :host([level="2"]) .shadow { --m3e-elevation-level: ${Es.elevation.level2}; --m3e-elevation-hover-level: ${Es.elevation.level3}; } :host([level="3"]) .shadow { --m3e-elevation-level: ${Es.elevation.level3}; --m3e-elevation-hover-level: ${Es.elevation.level4}; } :host([level="4"]) .shadow { --m3e-elevation-level: ${Es.elevation.level4}; --m3e-elevation-hover-level: ${Es.elevation.level5}; } :host([level="5"]) .shadow { --m3e-elevation-level: ${Es.elevation.level5}; --m3e-elevation-hover-level: ${Ai}; } :host([level]) .shadow { --m3e-elevation-focus-level: ${Ai}; --m3e-elevation-pressed-level: ${Ai}; } @media (prefers-reduced-motion) { .shadow.resting, .shadow.pressed, .shadow.focus, .shadow.hover { transition: none; } } @media (forced-colors: active) { .shadow { display: none; } }`,m([h(".shadow")],Ui.prototype,"_shadow",void 0),m([c({type:Boolean,reflect:!0})],Ui.prototype,"disabled",void 0),m([c({type:Number,reflect:!0})],Ui.prototype,"level",void 0),Ui=m([vt("m3e-elevation")],Ui);const qi=i(`var(--m3e-focus-ring-color, ${Es.color.secondary})`),Ri=i(`var(--m3e-focus-ring-duration, ${Es.motion.duration.long2})`),ji=i("var(--m3e-focus-ring-thickness, 3px)"),Xi=i("var(--m3e-focus-ring-outward-offset, 2px)"),Yi=i("var(--m3e-focus-ring-inward-offset, 0px)"),Gi=i("var(--m3e-focus-ring-visibility, visible)"),Zi=i("var(--m3e-focus-ring-growth-factor, 2)");var Ki,Qi,Ji;let ea=class extends(ii(fi(n,"none"))){constructor(){super(...arguments),Ki.add(this),Qi.set(this,new dt(this,{target:null,callback:(e,t)=>u(this,Ki,"m",Ji).call(this,t)})),this.inward=!1,this.disabled=!1}show(){this._outline?.classList.toggle("visible",!0)}hide(){this._outline?.classList.toggle("visible",!1)}attach(e){super.attach(e),u(this,Qi,"f").observe(e)}detach(){this.control&&u(this,Qi,"f").unobserve(this.control),super.detach()}connectedCallback(){this.ariaHidden="true",super.connectedCallback()}disconnectedCallback(){super.disconnectedCallback(),this.hide()}render(){return a`<div class="outline"></div>`}updated(e){super.updated(e),e.has("disabled")&&this.disabled&&this.hide()}};Qi=new WeakMap,Ki=new WeakSet,Ji=function(e){this.disabled||(e?this.show():this.hide())},ea.styles=r`:host { display: block; position: absolute; left: 0; top: 0; right: 0; bottom: 0; pointer-events: none; border-radius: inherit; outline: none; } .outline { position: absolute; left: 0; top: 0; right: 0; bottom: 0; pointer-events: none; border-radius: inherit; z-index: 1; outline-color: ${qi}; outline-width: ${ji}; visibility: ${Gi}; } .outline.visible { outline-style: solid; } :host(:not([inward])) .outline { outline-offset: ${Xi}; } :host([inward]) .outline { outline-offset: calc(${Yi} - ${ji}); } :host(:not([inward])) .outline.visible { animation: grow-shrink ${Ri}; } :host([inward]) .outline.visible { animation: shrink-grow ${Ri}; } @keyframes grow-shrink { 50% { outline-width: calc(${ji} * ${Zi}); } } @keyframes shrink-grow { 50% { outline-offset: calc( ${Yi} - calc(${ji} * ${Zi}) ); outline-width: calc(${ji} * ${Zi}); } } @media (prefers-reduced-motion) { :host(:not([inward])) .outline.visible, :host([inward]) .outline.visible { animation: none; } } @media (forced-colors: active) { .outline { outline-color: Highlight; } }`,m([h(".outline")],ea.prototype,"_outline",void 0),m([c({type:Boolean,reflect:!0})],ea.prototype,"inward",void 0),m([c({type:Boolean,reflect:!0})],ea.prototype,"disabled",void 0),ea=m([vt("m3e-focus-ring")],ea);let ta=class extends(Zt(zs(fi(n,"none")))){connectedCallback(){super.connectedCallback(),this.ariaHidden="true"}render(){return this.indeterminate?a`<svg viewBox="0 -960 960 960" fill="currentColor"><path Required d="M240-440v-80h480v80H240Z"/></svg>`:this.checked?a`<svg viewBox="0 -960 960 960" fill="currentColor"><path d="M382-240 154-468l57-57 171 171 367-367 57 57-424 424Z"/></svg>`:t}};ta.styles=r`:host { display: inline-block; vertical-align: middle; width: var(--m3e-checkbox-icon-size, 1.125rem); height: var(--m3e-checkbox-icon-size, 1.125rem); border-radius: var(--m3e-checkbox-container-shape, 2px); box-sizing: border-box; flex: none; } :host(:not([checked]):not([indeterminate])) { border-width: var(--m3e-checkbox-unselected-outline-thickness, 2px); border-style: solid; } :host(:not([disabled])[checked]), :host(:not([disabled])[indeterminate]) { background-color: var(--m3e-checkbox-selected-container-color, ${Es.color.primary}); color: var(--m3e-checkbox-selected-icon-color, ${Es.color.onPrimary}); } :host(:not([disabled]):not([checked]):not([indeterminate])) { border-color: var(--m3e-checkbox-unselected-outline-color, ${Es.color.onSurfaceVariant}); } :host([disabled]:not([checked]):not([indeterminate])) { border-color: color-mix( in srgb, var(--m3e-checkbox-unselected-disabled-outline-color, ${Es.color.onSurface}) var(--m3e-checkbox-unselected-disabled-outline-opacity, 38%), transparent ); } :host([disabled][checked]), :host([disabled][indeterminate]) { background-color: color-mix( in srgb, var(--m3e-checkbox-selected-disabled-container-color, ${Es.color.onSurface}) var(--m3e-checkbox-selected-disabled-container-opacity, 38%), transparent ); color: color-mix( in srgb, var(--m3e-checkbox-selected-disabled-icon-color, ${Es.color.surface}) var(--m3e-checkbox-selected-disabled-icon-opacity, 100%), transparent ); }`,ta=m([vt("m3e-pseudo-checkbox")],ta);let sa=class extends(Yt(zs(fi(n,"none")))){connectedCallback(){super.connectedCallback(),this.ariaHidden="true"}render(){return a`<svg class="icon" viewBox="0 0 20 20"><mask id="cutout2"><rect width="100%" height="100%" fill="white"></rect><circle cx="10" cy="10" r="8" fill="black"></circle></mask><circle class="outer circle" cx="10" cy="10" r="10" mask="url(#cutout2)"></circle><circle class="inner circle" cx="10" cy="10" r="5"></circle></svg>`}};sa.styles=r`:host { display: inline-block; vertical-align: middle; box-sizing: border-box; width: var(--m3e-radio-icon-size, 1.25rem); height: var(--m3e-radio-icon-size, 1.25rem); flex: none; } .circle { fill: currentColor; } :host(:not([checked])) .circle.inner { opacity: 0; } :host(:not([checked])) { color: var(--m3e-radio-unselected-icon-color, ${Es.color.onSurfaceVariant}); } :host([checked]) { color: var(--m3e-radio-selected-icon-color, ${Es.color.primary}); } :host([disabled]) { color: color-mix(in srgb, var(--m3e-radio-disabled-icon-color, ${Es.color.onSurface}) 38%, transparent); }`,sa=m([vt("m3e-pseudo-radio")],sa);const ia=i(`var(--m3e-ripple-color, ${Es.color.onSurface})`),aa=i(`var(--m3e-ripple-opacity, ${Es.state.pressedStateLayerOpacity})`),ra=i(`var(--m3e-ripple-enter-duration, ${Es.motion.duration.long4})`),na=i(`var(--m3e-ripple-exit-duration, ${Es.motion.duration.short2})`),oa=i("var(--m3e-ripple-scale-factor, 2.5)");var la,da,ca,ha,pa,ma;let ua=class extends(ii(fi(n,"none"))){constructor(){super(...arguments),la.add(this),da.set(this,null),ca.set(this,new ut(this,{target:null,minPressedDuration:150,isPressedKey:e=>" "===e,callback:(e,{x:t,y:s})=>u(this,la,"m",ma).call(this,e,t,s)})),this.disabled=!1,this.centered=!1,this.unbounded=!1,this.radius=null}get visible(){return null!==u(this,da,"f")}show(e,t,s=!1){u(this,la,"m",ha).call(this);const i=this.getBoundingClientRect();this.centered&&(e=i.left+i.width/2,t=i.top+i.height/2);let a=this.radius;if(!a||isNaN(a)){const s=Math.max(Math.abs(e-i.left),Math.abs(e-i.right)),r=Math.max(Math.abs(t-i.top),Math.abs(t-i.bottom));a=Math.sqrt(s*s+r*r)}const r=e-i.left,n=t-i.top;f(this,da,document.createElement("div"),"f"),u(this,da,"f").classList.add("ripple"),s&&u(this,da,"f").classList.add("persistent"),u(this,da,"f").style.left=r-a+"px",u(this,da,"f").style.top=n-a+"px",u(this,da,"f").style.width=2*a+"px",u(this,da,"f").style.height=2*a+"px",u(this,da,"f").addEventListener("animationend",()=>u(this,la,"m",pa).call(this,s),{once:!0}),u(this,da,"f").addEventListener("transitionend",()=>u(this,la,"m",ha).call(this),{once:!0}),this.shadowRoot?.appendChild(u(this,da,"f"))}hide(){u(this,da,"f")?.classList.add("exit")}attach(e){super.attach(e),u(this,ca,"f").observe(e)}detach(){this.control&&u(this,ca,"f").unobserve(this.control),super.detach()}connectedCallback(){this.ariaHidden="true",super.connectedCallback()}disconnectedCallback(){super.disconnectedCallback(),u(this,la,"m",ha).call(this)}updated(e){super.updated(e),e.has("disabled")&&this.disabled&&this.hide()}};var fa;da=new WeakMap,ca=new WeakMap,la=new WeakSet,ha=function(){u(this,da,"f")?.remove(),f(this,da,null,"f")},pa=function(e){e?u(this,da,"f")?.classList.add("pressed"):this.hide()},ma=function(e,t,s){this.disabled||(e?this.show(t,s,!0):this.hide())},ua.styles=r`:host { display: block; position: absolute; left: 0; top: 0; right: 0; bottom: 0; pointer-events: none; border-radius: inherit; } :host(:not([unbounded])) { overflow: hidden; } .ripple { display: block; position: absolute; left: 0; top: 0; right: 0; bottom: 0; pointer-events: none; transform: scale(0); border-radius: ${Es.shape.corner.full}; background-color: color-mix(in srgb, ${ia} ${aa}, transparent); will-change: background-color, opacity; animation: ripple ${ra} linear; } .ripple.persistent.pressed { transform: scale(${oa}); } .ripple.exit { transition: opacity ${na} cubic-bezier(0, 0, 0.2, 0.1); opacity: 0; } @keyframes ripple { to { transform: scale(${oa}); } } @media (prefers-reduced-motion) { .ripple { transform: scale(${oa}); animation-duration: 90ms; } .ripple.exit { transition-duration: 10ms; } } @media (forced-colors: active) { .ripple { display: none; } }`,m([c({type:Boolean,reflect:!0})],ua.prototype,"disabled",void 0),m([c({type:Boolean,reflect:!0})],ua.prototype,"centered",void 0),m([c({type:Boolean,reflect:!0})],ua.prototype,"unbounded",void 0),m([c({type:Number})],ua.prototype,"radius",void 0),ua=m([vt("m3e-ripple")],ua);let va=class extends(Nt(n)){constructor(){super(...arguments),fa.set(this,()=>this._updateScroll()),this.dividers="above-below",this.thin=!1}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("scroll",u(this,fa,"f"))}update(e){super.update(e),e.has("dividers")&&(this.removeEventListener("scroll",u(this,fa,"f")),"none"!==this.dividers&&this.addEventListener("scroll",u(this,fa,"f"),{passive:!0}))}render(){return a`<slot @slotchange="${this._updateScroll}"></slot>`}_updateScroll(){const e=("above"===this.dividers||"above-below"===this.dividers)&&this.scrollTop>0,t=("below"===this.dividers||"above-below"===this.dividers)&&this.scrollHeight-this.scrollTop-this.clientHeight>1;jt(this,"-above",e),jt(this,"-below",t)}};var ya,ga,ba,xa;fa=new WeakMap,va.styles=r`:host { display: block; overflow-y: auto; position: relative; box-sizing: border-box; scrollbar-color: ${Es.scrollbar.color}; border-top: var(--m3e-divider-thickness, 1px) solid transparent; border-bottom: var(--m3e-divider-thickness, 1px) solid transparent; outline-color: ${qi}; outline-width: ${ji}; outline-offset: ${Xi}; } :host([thin]) { scrollbar-width: ${Es.scrollbar.thinWidth}; } :host(:not([thin])) { scrollbar-width: ${Es.scrollbar.width}; } :host(:not(:focus-visible):state(-above)) { border-top-color: var(--m3e-divider-color, ${Es.color.outlineVariant}); } :host(:not(:focus-visible):state(-below)) { border-bottom-color: var(--m3e-divider-color, ${Es.color.outlineVariant}); } :host(:focus-visible) { outline-style: solid; animation: grow-shrink ${Ri}; } @keyframes grow-shrink { 50% { outline-width: calc(${ji} * ${Zi}); } } @media (forced-colors: active) { :host { border-top: var(--m3e-divider-thickness, 1px) solid Canvas; border-bottom: var(--m3e-divider-thickness, 1px) solid Canvas; } :host(:not(:focus-visible):state(-above)) { border-top-color: GrayText; } :host(:not(:focus-visible):state(-below)) { border-bottom-color: GrayText; } } @media (prefers-reduced-motion) { :host(:focus-visible) { animation: none; } }`,m([c()],va.prototype,"dividers",void 0),m([c({type:Boolean,reflect:!0})],va.prototype,"thin",void 0),m([yt(40)],va.prototype,"_updateScroll",null),va=m([vt("m3e-scroll-container")],va);let wa=class extends(Nt(n)){constructor(){super(...arguments),ya.add(this),ga.set(this,new Array),this.selectedIndex=null}connectedCallback(){super.connectedCallback(),qt(this,"-no-animate")}update(e){super.update(e),e.has("selectedIndex")&&(null===this.selectedIndex&&qt(this,"-no-animate"),u(this,ya,"m",xa).call(this),null!==this.selectedIndex&&Ut(this,"-no-animate")&&requestAnimationFrame(()=>{null!==this.selectedIndex&&Rt(this,"-no-animate")}))}render(){return a`<slot @slotchange="${u(this,ya,"m",ba)}"></slot>`}};ga=new WeakMap,ya=new WeakSet,ba=function(e){const t=[...e.target.assignedElements({flatten:!0})];for(const e of u(this,ga,"f").filter(e=>!t.includes(e)))e.classList.remove("-before"),e.classList.remove("-after"),e.removeAttribute("inert");f(this,ga,t,"f"),u(this,ya,"m",xa).call(this)},xa=function(){const e=this.selectedIndex??u(this,ga,"f").length;for(let t=0;t<u(this,ga,"f").length;t++){const s=u(this,ga,"f")[t];s.classList.toggle("-before",t<e),s.classList.toggle("-after",t>e),s.toggleAttribute("inert",t!==e)}},wa.styles=r`:host { display: flex; position: relative; overflow: hidden; } ::slotted(*) { width: 100%; top: 0; transition: ${i(`inset-inline-start var(--m3e-slide-animation-duration, ${Es.motion.duration.long2}) ${Es.motion.easing.standard},\n visibility var(--m3e-slide-animation-duration, ${Es.motion.duration.long2}) ${Es.motion.easing.standard} allow-discrete`)}; } ::slotted(.-before), ::slotted(.-after) { visibility: hidden; position: absolute; } ::slotted(.-before) { inset-inline-start: -100%; } ::slotted(.-after) { inset-inline-start: 100%; } ::slotted(:not(.-before):not(.-after)) { position: relative; inset-inline-start: 0; } :host(:state(-no-animate)) ::slotted(*) { transition: none; } @media (prefers-reduced-motion) { ::slotted(*) { transition: none; } }`,m([c({attribute:"selected-index",type:Number,reflect:!0})],wa.prototype,"selectedIndex",void 0),wa=m([vt("m3e-slide")],wa);const ka=i(`var(--m3e-state-layer-hover-color, ${Es.color.onSurface})`),$a=i(`var(--m3e-state-layer-hover-opacity, ${Es.state.hoverStateLayerOpacity})`),Ea=i(`var(--m3e-state-layer-focus-color, ${Es.color.onSurface})`),Sa=i(`var(--m3e-state-layer-focus-opacity, ${Es.state.focusStateLayerOpacity})`),za=i(`var(--m3e-state-layer-duration, ${Es.motion.duration.medium1})`),Ma=i(`var(--m3e-state-layer-easing, ${Es.motion.easing.standard})`);var Ca,La,Wa,Fa,Aa;let _a=class extends(ii(fi(n,"none"))){constructor(){super(...arguments),Ca.add(this),La.set(this,new ct(this,{target:null,callback:e=>u(this,Ca,"m",Fa).call(this,e)})),Wa.set(this,new dt(this,{target:null,callback:(e,t)=>u(this,Ca,"m",Aa).call(this,t)})),this.disabled=!1,this.disableHover=!1}show(e){this._layer?.classList.toggle(e,!0)}hide(e){this._layer?.classList.toggle(e,!1)}attach(e){super.attach(e),u(this,La,"f").observe(e),u(this,Wa,"f").observe(e)}detach(){this.control&&(u(this,La,"f").unobserve(this.control),u(this,Wa,"f").unobserve(this.control)),super.detach()}connectedCallback(){this.ariaHidden="true",super.connectedCallback()}disconnectedCallback(){super.disconnectedCallback(),this.hide("hover"),this.hide("focused")}updated(e){super.updated(e),e.has("disabled")&&this.disabled&&(this.hide("hover"),this.hide("focused")),e.has("disableHover")&&this.disableHover&&this.hide("hover")}render(){return a`<div class="layer"></div>`}};La=new WeakMap,Wa=new WeakMap,Ca=new WeakSet,Fa=function(e){this.disabled||this.disableHover||(e?this.show("hover"):this.hide("hover"))},Aa=function(e){this.disabled||(e?this.show("focused"):this.hide("focused"))},_a.styles=r`:host { display: block; } :host, .layer { position: absolute; left: 0; top: 0; right: 0; bottom: 0; pointer-events: none; border-radius: inherit; } .layer { will-change: background-color; transition: ${i(`background-color ${za} ${Ma}`)}; } .layer.focused { background-color: color-mix(in srgb, ${Ea} ${Sa}, transparent); } .layer.hover { background-color: color-mix(in srgb, ${ka} ${$a}, transparent); } @media (prefers-reduced-motion) { .layer { transition: none; } } @media (forced-colors: active) { .layer { display: none; } }`,m([h(".layer")],_a.prototype,"_layer",void 0),m([c({type:Boolean,reflect:!0})],_a.prototype,"disabled",void 0),m([c({attribute:"disable-hover",type:Boolean,reflect:!0})],_a.prototype,"disableHover",void 0),_a=m([vt("m3e-state-layer")],_a);let Ta=class extends n{render(){return a`<span class="base"><slot></slot></span>`}};var Da,Ha,Pa,Oa,Ia,Ba,Va,Na;Ta.styles=r`:host { flex: 1 1 auto; display: inline-flex; align-items: center; flex-wrap: nowrap; min-width: 0; } .base { flex: 1 1 auto; display: inline; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }`,Ta=m([vt("m3e-text-overflow")],Ta);let Ua=Na=class extends n{constructor(){super(),Da.add(this),Ha.set(this,"m3e-text-highlight-"+Na.__nextId++),Pa.set(this,new Array),Oa.set(this,null),this.disabled=!1,this.term="",this.caseSensitive=!1,this.isSupported&&(f(this,Oa,new CSSStyleSheet,"f"),u(this,Oa,"f").replaceSync(r`::highlight(${i(u(this,Ha,"f"))}) { background-color: var(--m3e-text-highlight-container-color, ${Es.color.secondaryContainer}); color: var(--m3e-text-highlight-color, ${Es.color.onSecondaryContainer}); text-decoration: var(--m3e-text-highlight-decoration); text-shadow: var(--m3e-text-highlight-shadow); }`.toString()))}get isSupported(){return!(e||!CSS.highlights)}get ranges(){return u(this,Pa,"f")}firstUpdated(e){super.firstUpdated(e),this.shadowRoot&&u(this,Oa,"f")&&!this.shadowRoot.adoptedStyleSheets.includes(u(this,Oa,"f"))&&this.shadowRoot.adoptedStyleSheets.push(u(this,Oa,"f"))}updated(e){super.updated(e),(e.has("term")||e.has("caseSensitive")||e.has("disabled"))&&u(this,Da,"m",Va).call(this)}render(){return a`<slot @slotchange="${u(this,Da,"m",Va)}"></slot>`}};Ha=new WeakMap,Pa=new WeakMap,Oa=new WeakMap,Da=new WeakSet,Ia=function(e){return!/^(\\s|\\n)+$/gi.test(e.data)},Ba=function e(t,s){t instanceof HTMLSlotElement?t.assignedElements({flatten:!0}).forEach(t=>{switch(t.nodeType){case Node.TEXT_NODE:u(this,Da,"m",Ia).call(this,t)&&s.push(t);break;case Node.ELEMENT_NODE:u(this,Da,"m",e).call(this,t,s)}}):t.childNodes.forEach(t=>{switch(t.nodeType){case Node.TEXT_NODE:u(this,Da,"m",Ia).call(this,t)&&s.push(t);break;case Node.ELEMENT_NODE:u(this,Da,"m",e).call(this,t,s)}})},Va=function(){if(!this.isSupported||!this.isConnected)return;if(CSS.highlights.delete(u(this,Ha,"f")),u(this,Pa,"f").length=0,this.disabled)return;if(!this.term)return void this.dispatchEvent(new CustomEvent("highlight",{detail:[...u(this,Pa,"f")],bubbles:!1,composed:!1}));const e=new Array;u(this,Da,"m",Ba).call(this,this,e);const t=this.caseSensitive?this.term:this.term.toLowerCase();f(this,Pa,e.map(e=>({el:e,text:(this.caseSensitive?e.textContent:e.textContent?.toLowerCase())??""})).map(({el:e,text:s})=>{const i=new Array;let a=0;for(;a<s.length;){const e=s.indexOf(t,a);if(-1===e)break;i.push(e),a=e+t.length}return i.map(s=>{const i=new Range;return i.setStart(e,s),i.setEnd(e,s+t.length),i})}).flat(),"f"),u(this,Pa,"f").length>0&&CSS.highlights.set(u(this,Ha,"f"),new Highlight(...u(this,Pa,"f"))),this.dispatchEvent(new CustomEvent("highlight",{detail:[...u(this,Pa,"f")],bubbles:!1,composed:!1}))},Ua.styles=r`:host { display: contents; }`,Ua.__nextId=0,m([c({type:Boolean,reflect:!0})],Ua.prototype,"disabled",void 0),m([c()],Ua.prototype,"term",void 0),m([c({attribute:"case-sensitive",type:Boolean})],Ua.prototype,"caseSensitive",void 0),Ua=Na=m([vt("m3e-text-highlight")],Ua);export{zi as ActionElementBase,Ie as AnimationLoopController,Nt as AttachInternals,Yt as Checked,Zt as CheckedIndeterminate,Xs as ConstraintValidation,Es as DesignToken,as as Dirty,zs as Disabled,Fs as DisabledInteractive,Ys as EventAttribute,dt as FocusController,Zs as Focusable,Ns as FormAssociated,Js as FormSubmitter,ct as HoverController,ii as HtmlFor,ht as IntersectionController,ai as KeyboardClick,Ds as Labelled,li as LinkButton,pt as LongPressController,Mi as M3eCollapsibleElement,Ui as M3eElevationElement,ea as M3eFocusRingElement,ta as M3ePseudoCheckboxElement,sa as M3ePseudoRadioElement,ua as M3eRippleElement,va as M3eScrollContainerElement,wa as M3eSlideElement,_a as M3eStateLayerElement,Ua as M3eTextHighlightElement,Ta as M3eTextOverflowElement,mt as MutationController,ut as PressedController,ci as ReadOnly,pi as Required,ui as RequiredConstraintValidation,ft as ResizeController,fi as Role,At as ScrollController,_t as ScrollLockController,Qt as Selected,os as Touched,lt as VelocityTracker,yi as Vertical,qt as addCustomState,ts as checkOrSelect,Ve as computeCssSize,Ne as computeLineCount,vt as customElement,yt as debounce,Ps as defaultValue,Rt as deleteCustomState,Ue as focusWhenReady,qe as forcedColorsActive,Hs as formValue,Je as generateClipPaths,et as getTextContent,tt as guid,st as hasAssignedNodes,Ut as hasCustomState,Ot as hasKeys,it as interceptProperty,It as internals,Bt as isAttachInternalsMixin,Gt as isCheckedIndeterminateMixin,Xt as isCheckedMixin,es as isCheckedOrSelected,Jt as isCheckedOrSelectedMixin,qs as isConstraintValidationMixin,ss as isDirtyMixin,Ms as isDisabledInteractiveMixin,Ss as isDisabledMixin,Os as isFormAssociatedMixin,Ks as isFormSubmitterMixin,ei as isHtmlForMixin,_s as isLabelledMixin,ni as isLinkButtonMixin,di as isReadOnlyMixin,mi as isRequiredConstraintValidationMixin,hi as isRequiredMixin,Kt as isSelectedMixin,rs as isTouchedMixin,vi as isVerticalMixin,at as prefersReducedMotion,ri as renderPseudoLink,rt as resolveElementById,nt as resolveFragmentUrl,Pt as safeStyleMap,ot as scrollIntoViewIfNeeded,jt as setCustomState,Tt as spaceSeparatedStringConverter,As as updateLabels,Us as validate};
|
|
7
7
|
//# sourceMappingURL=core.min.js.map
|