@m3e/core 1.0.0-rc.3 → 1.0.0-rc.4
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/a11y.js.map +1 -1
- package/dist/a11y.min.js.map +1 -1
- package/dist/custom-elements.json +253 -250
- package/dist/index.js +23 -11
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +2 -2
- package/dist/index.min.js.map +1 -1
- package/dist/src/shared/mixins/ConstraintValidation.d.ts.map +1 -1
- package/dist/src/shared/mixins/Labelled.d.ts +4 -0
- package/dist/src/shared/mixins/Labelled.d.ts.map +1 -1
- package/dist/src/shared/mixins/Selected.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.min.js
CHANGED
|
@@ -45,7 +45,7 @@ const ct={attribute:!0,type:String,converter:nt,reflect:!1,hasChanged:lt},pt=(e=
|
|
|
45
45
|
* @license
|
|
46
46
|
* Copyright 2021 Google LLC
|
|
47
47
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
48
|
-
*/function ft(e){return Oe(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 n([mt({type:Boolean,reflect:!0})],t.prototype,"checked",void 0),t}function gt(e){return Oe(e,"indeterminate")&&ft(e)}function bt(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 n([mt({type:Boolean,reflect:!0})],t.prototype,"indeterminate",void 0),t}function xt(e){return Oe(e,"selected")}function wt(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.role&&"none"!==this.role&&"presentation"!==this.role&&(this.ariaSelected=`${this.selected}`,this.ariaPressed=null))}}return n([mt({type:Boolean,reflect:!0})],t.prototype,"selected",void 0),t}function $t(e){return ft(e)||xt(e)}function kt(e){return ft(e)&&e.checked||xt(e)&&e.selected}function _t(e,t){ft(e)?e.checked=t:e.selected=t}function Et(e){return Oe(e,"dirty","pristine","markAsDirty","markAsPristine")}const St=Symbol("_eventHandler");function At(e){var t;return t=St,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[St])}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("change",this[St])}markAsPristine(){this.classList.toggle("-dirty",!1)}markAsDirty(){this.classList.toggle("-dirty",!0)}}}function Ct(e){return Oe(e,"touched","untouched","markAsTouched","markAsUntouched")}const zt=Symbol("_eventHandler");function Lt(e){var t;return t=zt,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[zt])}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("focusout",this[zt])}markAsTouched(){this.classList.toggle("-touched",!0)}markAsUntouched(){this.classList.toggle("-touched",!1)}}}const Mt={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)")},Wt={scale:i("var(--md-sys-density-scale, 0)"),size:i("var(--md-sys-density-size, 0.25rem)")},Pt={...Wt,calc:e=>i(`calc(max(${e}, ${Wt.scale}) * ${Wt.size})`)},Tt=`color-mix(in srgb, var(--m3e-elevation-color, ${Mt.shadow}) 20%, transparent)`,Ft=["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"],Ht=`color-mix(in srgb, var(--m3e-elevation-color, ${Mt.shadow}) 14%, transparent)`,Dt=["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"],Ot=`color-mix(in srgb, var(--m3e-elevation-color, ${Mt.shadow}) 12%, transparent)`,Ut=["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 Nt(e){return`${Tt} ${Ft[e]},${Ht} ${Dt[e]},${Ot} ${Ut[e]}`}const It={level0:i(`var(--md-sys-elevation-level0, ${Nt(0)})`),level1:i(`var(--md-sys-elevation-level1, ${Nt(1)})`),level2:i(`var(--md-sys-elevation-level2, ${Nt(3)})`),level3:i(`var(--md-sys-elevation-level3, ${Nt(6)})`),level4:i(`var(--md-sys-elevation-level4, ${Nt(8)})`),level5:i(`var(--md-sys-elevation-level5, ${Nt(12)})`)},Rt={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))")},Bt={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))")},qt={easing:Rt,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:Bt},Vt={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)")},jt={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)")},Kt={color:Mt,elevation:It,motion:qt,shape:{corner:{full:i("var(--md-sys-shape-corner-full, 624.9375rem)"),extraLargeTop:i(`var(--md-sys-shape-corner-extra-large-top, ${jt.extraLarge} ${jt.extraLarge} ${jt.none} ${jt.none})`),extraLarge:i(`var(--md-sys-shape-corner-extra-large, ${jt.extraLarge})`),extraLargeEnd:i(`${jt.none} ${jt.extraLarge} ${jt.extraLarge} ${jt.none}`),extraLargeStart:i(`${jt.extraLarge} ${jt.none} ${jt.none} ${jt.extraLarge}`),largeTop:i(`var(--md-sys-shape-corner-large-top, ${jt.large} ${jt.large} ${jt.none} ${jt.none})`),largeEnd:i(`var(--md-sys-shape-corner-large-end, ${jt.none} ${jt.large} ${jt.large} ${jt.none})`),largeStart:i(`var(--md-sys-shape-corner-large-end, ${jt.large} ${jt.none} ${jt.none} ${jt.large})`),large:i(`var(--md-sys-shape-corner-large, ${jt.large})`),medium:i(`var(--md-sys-shape-corner-medium, ${jt.medium})`),mediumTop:i(`${jt.medium} ${jt.medium} ${jt.none} ${jt.none}`),mediumEnd:i(`${jt.none} ${jt.medium} ${jt.medium} ${jt.none}`),mediumStart:i(`${jt.medium} ${jt.none} ${jt.none} ${jt.medium}`),small:i(`var(--md-sys-shape-corner-small, ${jt.small})`),smallTop:i(`${jt.small} ${jt.small} ${jt.none} ${jt.none}`),smallEnd:i(`${jt.none} ${jt.small} ${jt.small} ${jt.none}`),smallStart:i(`${jt.small} ${jt.none} ${jt.none} ${jt.small}`),extraSmallTop:i(`var(--md-sys-shape-corner-extra-small-top, ${jt.extraSmall} ${jt.extraSmall} ${jt.none} ${jt.none})`),extraSmall:i(`var(--md-sys-shape-corner-extra-small, ${jt.extraSmall})`),extraSmallEnd:i(`${jt.none} ${jt.extraSmall} ${jt.extraSmall} ${jt.none}`),extraSmallStart:i(`${jt.extraSmall} ${jt.none} ${jt.none} ${jt.extraSmall}`),extraSmallBottom:i(`${jt.none} ${jt.none} ${jt.extraSmall} ${jt.extraSmall}`),none:i(`var(--md-sys-shape-corner-none, ${jt.none})`),largeIncreased:i(`var(--md-sys-shape-corner-large-increased, ${jt.largeIncreased})`),extraLargeIncreased:i(`var(--md-sys-shape-corner-extra-large-increased, ${jt.extraLargeIncreased})`),extraExtraLarge:i(`var(--md-sys-shape-corner-extra-extra-large, ${jt.extraExtraLarge})`),value:jt}},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:Vt,density:Pt};function Xt(e){return Oe(e,"disabled")}function Zt(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 n([mt({type:Boolean,reflect:t})],s.prototype,"disabled",void 0),s}function Gt(e){return Oe(e,"disabledInteractive")&&Xt(e)}const Jt=["click","dblclick","auxclick","keydown","keyup"],Yt=["Tab","ArrowLeft","ArrowUp","ArrowRight","ArrowDown","Left","Up","Right","Down"],Qt=Symbol("_suppressedEventHandler");function es(e){var t;class s extends e{constructor(){super(...arguments),this[t]=e=>{if(this.disabledInteractive){if(e instanceof KeyboardEvent&&Yt.includes(e.key))return;e.stopImmediatePropagation(),e.preventDefault()}},this.disabledInteractive=!1}connectedCallback(){Jt.forEach(e=>this.addEventListener(e,this[Qt],!0)),super.connectedCallback()}disconnectedCallback(){Jt.forEach(e=>this.removeEventListener(e,this[Qt],!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=Qt,n([mt({attribute:"disabled-interactive",type:Boolean,reflect:!0})],s.prototype,"disabledInteractive",void 0),s}function ts(e){return Oe(e,"labels")&&Ne(e)}const ss=Symbol("_updateLabels"),is=Symbol("_eventHandler");function rs(e){var t;class s extends e{constructor(){super(...arguments),this[t]=e=>{e.defaultPrevented||this[ss]()}}get labels(){return this[Ue].labels}connectedCallback(){super.connectedCallback(),this.addEventListener("focusout",this[is]),this.addEventListener("change",this[is])}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("focusout",this[is]),this.removeEventListener("change",this[is])}update(e){super.update(e),this[ss]()}[(t=is,ss)](){const e=this.hasAttribute("tabindex"),t=Xt(this)&&this.disabled||Gt(this)&&this.disabledInteractive;for(const s of this.labels)s.style.userSelect=e?"none":"",s.style.cursor=t?"":"pointer",s.style.color=t?`color-mix(in srgb, ${Kt.color.onSurface} 38%, transparent)`:Ct(this)&&this.touched&&this.ariaInvalid?`${Kt.color.error}`:""}}return s.formAssociated=!0,s}const as=Symbol("formValue"),os=Symbol("defaultValue");function ns(e){return Oe(e,"disabled","form","name")&&ts(e)&&Ne(e)}const ls=Symbol("_defaultValue"),ds=Symbol("_defaultIndeterminate"),hs=Symbol("_formDisabled");function cs(e){var t,s;class i extends e{constructor(){super(...arguments),this[t]=!1,this[s]=!1}get form(){return this[Ue].form}get labels(){return this[Ue].labels}get[(t=ds,s=hs,as)](){return null}get[os](){return this[ls]}get name(){return this.getAttribute("name")??""}set name(e){e?this.setAttribute("name",e):this.removeAttribute("name")}get disabled(){return super.disabled||this[hs]}set disabled(e){super.disabled=e}connectedCallback(){super.connectedCallback(),ft(this)?(this[ls]=this.checked,gt(this)&&(this[ds]=this.indeterminate)):"value"in this&&(this[ls]=this.value)}requestUpdate(e,t,s){super.requestUpdate(e,t,s),this[Ue].setFormValue(this[as])}formDisabledCallback(e){const t=this.disabled;this[hs]=e,this.disabled!=t&&this.requestUpdate("disabled",t)}formResetCallback(){ft(this)?(this.checked=!0===this[ls],gt(this)&&(this.indeterminate=this[ds])):"value"in this&&(this.value=this[os]),Et(this)&&this.markAsPristine(),Ct(this)&&this.markAsUntouched()}}return i.formAssociated=!0,n([mt({noAccessor:!0})],i.prototype,"name",null),n([mt({type:Boolean})],i.prototype,"disabled",null),i}const ps=Symbol("validate");function ms(e){return Oe(e,"willValidate","validity","validationMessage","reportValidity","checkValidity","setCustomValidity")&&ns(e)}const us=Symbol("_updateValidity"),vs=Symbol("_validityMessage");function fs(t){var s,i;class r extends t{constructor(){super(...arguments),s.add(this)}get willValidate(){return this[Ue].willValidate}get validity(){return this[us](),this[Ue].validity}get validationMessage(){return this[us](),this[Ue].validationMessage}[(s=new WeakSet,ps)](){return this[vs]?{customError:!0}:void 0}reportValidity(){return Ct(this)&&this.markAsTouched(),this[us](),this[Ue].reportValidity()}checkValidity(){return this[us](),this[Ue].checkValidity()}setCustomValidity(e){this[vs]=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[ps](),r=t&&Object.keys(t).some(e=>!0===t[e]);let a=t?.customError?this[vs]:"";t&&!a&&(a=l(this,s,"m",i).call(this,t)),this[Ue].setValidity(t,a),this.ariaInvalid=r?"true":null,this.classList.toggle("-invalid",!0===r)}}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},r}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 bs(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 xs(e){return Oe(e,"name","type","value")&&Ne(e)}const ws=Symbol("_clickHandler");function $s(e){var t;class s extends e{constructor(){super(...arguments),this.type="button",this[t]=async e=>{if(e.defaultPrevented||Xt(this)&&this.disabled||Gt(this)&&this.disabledInteractive)return;const t=this[Ue].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[Ue].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[ws])}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",this[ws])}}return t=ws,s.formAssociated=!0,n([mt()],s.prototype,"name",null),n([mt()],s.prototype,"value",null),n([mt()],s.prototype,"type",void 0),s}function ks(e){return Oe(e,"htmlFor","control","attach","detach")}const _s=Symbol("_control"),Es=Symbol("_firstUpdated");function Ss(e){var t,s;class i extends e{constructor(){super(...arguments),this[t]=null,this[s]=!1,this.htmlFor=null}get control(){return this[_s]}firstUpdated(e){super.firstUpdated(e),this[Es]=!0}update(e){if(super.update(e),e.has("htmlFor"))if(this.htmlFor){const e=this.getRootNode()?.querySelector(`#${this.htmlFor}`);e!==this.control&&(this.control&&this.detach(),e instanceof HTMLElement&&this.attach(e))}else this.control&&this[Es]&&this.detach()}attach(e){this[_s]=e}detach(){this[_s]=null}}return t=_s,s=Es,n([mt({attribute:"for"})],i.prototype,"htmlFor",void 0),i}function As(e,t=!0){var s,i,r;return i=new WeakMap,s=new WeakSet,r=function(e){e.defaultPrevented||e.target!==e.currentTarget||Xt(this)&&this.disabled||Gt(this)&&this.disabledInteractive||(" "===e.key||t&&"Enter"===e.key)&&this.dispatchEvent(new MouseEvent("click",{cancelable:!0,bubbles:!0,composed:!0}))},class extends e{constructor(){super(...arguments),s.add(this),i.set(this,e=>l(this,s,"m",r).call(this,e))}connectedCallback(){super.connectedCallback(),this.addEventListener("keyup",l(this,i,"f"))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("keyup",l(this,i,"f"))}}}
|
|
48
|
+
*/function ft(e){return Oe(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 n([mt({type:Boolean,reflect:!0})],t.prototype,"checked",void 0),t}function gt(e){return Oe(e,"indeterminate")&&ft(e)}function bt(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 n([mt({type:Boolean,reflect:!0})],t.prototype,"indeterminate",void 0),t}function xt(e){return Oe(e,"selected")}function wt(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 n([mt({type:Boolean,reflect:!0})],t.prototype,"selected",void 0),t}function $t(e){return ft(e)||xt(e)}function kt(e){return ft(e)&&e.checked||xt(e)&&e.selected}function _t(e,t){ft(e)?e.checked=t:e.selected=t}function Et(e){return Oe(e,"dirty","pristine","markAsDirty","markAsPristine")}const St=Symbol("_eventHandler");function At(e){var t;return t=St,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[St])}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("change",this[St])}markAsPristine(){this.classList.toggle("-dirty",!1)}markAsDirty(){this.classList.toggle("-dirty",!0)}}}function Ct(e){return Oe(e,"touched","untouched","markAsTouched","markAsUntouched")}const zt=Symbol("_eventHandler");function Lt(e){var t;return t=zt,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[zt],{capture:!0})}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("focusout",this[zt],{capture:!0})}markAsTouched(){this.classList.toggle("-touched",!0)}markAsUntouched(){this.classList.toggle("-touched",!1)}}}const Mt={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)")},Wt={scale:i("var(--md-sys-density-scale, 0)"),size:i("var(--md-sys-density-size, 0.25rem)")},Pt={...Wt,calc:e=>i(`calc(max(${e}, ${Wt.scale}) * ${Wt.size})`)},Tt=`color-mix(in srgb, var(--m3e-elevation-color, ${Mt.shadow}) 20%, transparent)`,Ft=["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"],Ht=`color-mix(in srgb, var(--m3e-elevation-color, ${Mt.shadow}) 14%, transparent)`,Dt=["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"],Ot=`color-mix(in srgb, var(--m3e-elevation-color, ${Mt.shadow}) 12%, transparent)`,Ut=["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 Nt(e){return`${Tt} ${Ft[e]},${Ht} ${Dt[e]},${Ot} ${Ut[e]}`}const It={level0:i(`var(--md-sys-elevation-level0, ${Nt(0)})`),level1:i(`var(--md-sys-elevation-level1, ${Nt(1)})`),level2:i(`var(--md-sys-elevation-level2, ${Nt(3)})`),level3:i(`var(--md-sys-elevation-level3, ${Nt(6)})`),level4:i(`var(--md-sys-elevation-level4, ${Nt(8)})`),level5:i(`var(--md-sys-elevation-level5, ${Nt(12)})`)},Rt={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))")},Bt={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))")},qt={easing:Rt,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:Bt},Vt={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)")},jt={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)")},Kt={color:Mt,elevation:It,motion:qt,shape:{corner:{full:i("var(--md-sys-shape-corner-full, 624.9375rem)"),extraLargeTop:i(`var(--md-sys-shape-corner-extra-large-top, ${jt.extraLarge} ${jt.extraLarge} ${jt.none} ${jt.none})`),extraLarge:i(`var(--md-sys-shape-corner-extra-large, ${jt.extraLarge})`),extraLargeEnd:i(`${jt.none} ${jt.extraLarge} ${jt.extraLarge} ${jt.none}`),extraLargeStart:i(`${jt.extraLarge} ${jt.none} ${jt.none} ${jt.extraLarge}`),largeTop:i(`var(--md-sys-shape-corner-large-top, ${jt.large} ${jt.large} ${jt.none} ${jt.none})`),largeEnd:i(`var(--md-sys-shape-corner-large-end, ${jt.none} ${jt.large} ${jt.large} ${jt.none})`),largeStart:i(`var(--md-sys-shape-corner-large-end, ${jt.large} ${jt.none} ${jt.none} ${jt.large})`),large:i(`var(--md-sys-shape-corner-large, ${jt.large})`),medium:i(`var(--md-sys-shape-corner-medium, ${jt.medium})`),mediumTop:i(`${jt.medium} ${jt.medium} ${jt.none} ${jt.none}`),mediumEnd:i(`${jt.none} ${jt.medium} ${jt.medium} ${jt.none}`),mediumStart:i(`${jt.medium} ${jt.none} ${jt.none} ${jt.medium}`),small:i(`var(--md-sys-shape-corner-small, ${jt.small})`),smallTop:i(`${jt.small} ${jt.small} ${jt.none} ${jt.none}`),smallEnd:i(`${jt.none} ${jt.small} ${jt.small} ${jt.none}`),smallStart:i(`${jt.small} ${jt.none} ${jt.none} ${jt.small}`),extraSmallTop:i(`var(--md-sys-shape-corner-extra-small-top, ${jt.extraSmall} ${jt.extraSmall} ${jt.none} ${jt.none})`),extraSmall:i(`var(--md-sys-shape-corner-extra-small, ${jt.extraSmall})`),extraSmallEnd:i(`${jt.none} ${jt.extraSmall} ${jt.extraSmall} ${jt.none}`),extraSmallStart:i(`${jt.extraSmall} ${jt.none} ${jt.none} ${jt.extraSmall}`),extraSmallBottom:i(`${jt.none} ${jt.none} ${jt.extraSmall} ${jt.extraSmall}`),none:i(`var(--md-sys-shape-corner-none, ${jt.none})`),largeIncreased:i(`var(--md-sys-shape-corner-large-increased, ${jt.largeIncreased})`),extraLargeIncreased:i(`var(--md-sys-shape-corner-extra-large-increased, ${jt.extraLargeIncreased})`),extraExtraLarge:i(`var(--md-sys-shape-corner-extra-extra-large, ${jt.extraExtraLarge})`),value:jt}},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:Vt,density:Pt};function Xt(e){return Oe(e,"disabled")}function Zt(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 n([mt({type:Boolean,reflect:t})],s.prototype,"disabled",void 0),s}function Gt(e){return Oe(e,"disabledInteractive")&&Xt(e)}const Jt=["click","dblclick","auxclick","keydown","keyup"],Yt=["Tab","ArrowLeft","ArrowUp","ArrowRight","ArrowDown","Left","Up","Right","Down"],Qt=Symbol("_suppressedEventHandler");function es(e){var t;class s extends e{constructor(){super(...arguments),this[t]=e=>{if(this.disabledInteractive){if(e instanceof KeyboardEvent&&Yt.includes(e.key))return;e.stopImmediatePropagation(),e.preventDefault()}},this.disabledInteractive=!1}connectedCallback(){Jt.forEach(e=>this.addEventListener(e,this[Qt],!0)),super.connectedCallback()}disconnectedCallback(){Jt.forEach(e=>this.removeEventListener(e,this[Qt],!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=Qt,n([mt({attribute:"disabled-interactive",type:Boolean,reflect:!0})],s.prototype,"disabledInteractive",void 0),s}const ts=Symbol("updateLabels");function ss(e){return Oe(e,"labels")&&Ne(e)}const is=Symbol("_eventHandler");function rs(e){var t;class s extends e{constructor(){super(...arguments),this[t]=e=>{e.defaultPrevented||this[ts]()}}get labels(){return this[Ue].labels}connectedCallback(){super.connectedCallback(),this.addEventListener("focusout",this[is]),this.addEventListener("change",this[is])}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("focusout",this[is]),this.removeEventListener("change",this[is])}update(e){super.update(e),this[ts]()}[(t=is,ts)](){const e=this.hasAttribute("tabindex"),t=Xt(this)&&this.disabled||Gt(this)&&this.disabledInteractive,s=Ct(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":"",i.style.color=t?`color-mix(in srgb, ${Kt.color.onSurface} 38%, transparent)`:s?`${Kt.color.error}`:""}}return s.formAssociated=!0,s}const as=Symbol("formValue"),os=Symbol("defaultValue");function ns(e){return Oe(e,"disabled","form","name")&&ss(e)&&Ne(e)}const ls=Symbol("_defaultValue"),ds=Symbol("_defaultIndeterminate"),hs=Symbol("_formDisabled");function cs(e){var t,s;class i extends e{constructor(){super(...arguments),this[t]=!1,this[s]=!1}get form(){return this[Ue].form}get labels(){return this[Ue].labels}get[(t=ds,s=hs,as)](){return null}get[os](){return this[ls]}get name(){return this.getAttribute("name")??""}set name(e){e?this.setAttribute("name",e):this.removeAttribute("name")}get disabled(){return super.disabled||this[hs]}set disabled(e){super.disabled=e}connectedCallback(){super.connectedCallback(),ft(this)?(this[ls]=this.checked,gt(this)&&(this[ds]=this.indeterminate)):"value"in this&&(this[ls]=this.value)}requestUpdate(e,t,s){super.requestUpdate(e,t,s),this[Ue].setFormValue(this[as])}formDisabledCallback(e){const t=this.disabled;this[hs]=e,this.disabled!=t&&this.requestUpdate("disabled",t)}formResetCallback(){ft(this)?(this.checked=!0===this[ls],gt(this)&&(this.indeterminate=this[ds])):"value"in this&&(this.value=this[os]),Et(this)&&this.markAsPristine(),Ct(this)&&this.markAsUntouched()}}return i.formAssociated=!0,n([mt({noAccessor:!0})],i.prototype,"name",null),n([mt({type:Boolean})],i.prototype,"disabled",null),i}const ps=Symbol("validate");function ms(e){return Oe(e,"willValidate","validity","validationMessage","reportValidity","checkValidity","setCustomValidity")&&ns(e)}const us=Symbol("_updateValidity"),vs=Symbol("_validityMessage");function fs(t){var s,i;class r extends t{constructor(){super(...arguments),s.add(this)}get willValidate(){return this[Ue].willValidate}get validity(){return this[us](),this[Ue].validity}get validationMessage(){return this[us](),this[Ue].validationMessage}[(s=new WeakSet,ps)](){return this[vs]?{customError:!0}:void 0}reportValidity(){return Ct(this)&&this.markAsTouched(),this[us](),this[Ue].reportValidity()}checkValidity(){return this[us](),this[Ue].checkValidity()}setCustomValidity(e){this[vs]=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[ps](),r=t&&Object.keys(t).some(e=>!0===t[e]);let a=t?.customError?this[vs]:"";t&&!a&&(a=l(this,s,"m",i).call(this,t)),this[Ue].setValidity(t,a),this.ariaInvalid=r?"true":null,this.classList.toggle("-invalid",!0===r),ss(this)&&this[ts]?.()}}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},r}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 bs(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 xs(e){return Oe(e,"name","type","value")&&Ne(e)}const ws=Symbol("_clickHandler");function $s(e){var t;class s extends e{constructor(){super(...arguments),this.type="button",this[t]=async e=>{if(e.defaultPrevented||Xt(this)&&this.disabled||Gt(this)&&this.disabledInteractive)return;const t=this[Ue].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[Ue].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[ws])}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",this[ws])}}return t=ws,s.formAssociated=!0,n([mt()],s.prototype,"name",null),n([mt()],s.prototype,"value",null),n([mt()],s.prototype,"type",void 0),s}function ks(e){return Oe(e,"htmlFor","control","attach","detach")}const _s=Symbol("_control"),Es=Symbol("_firstUpdated");function Ss(e){var t,s;class i extends e{constructor(){super(...arguments),this[t]=null,this[s]=!1,this.htmlFor=null}get control(){return this[_s]}firstUpdated(e){super.firstUpdated(e),this[Es]=!0}update(e){if(super.update(e),e.has("htmlFor"))if(this.htmlFor){const e=this.getRootNode()?.querySelector(`#${this.htmlFor}`);e!==this.control&&(this.control&&this.detach(),e instanceof HTMLElement&&this.attach(e))}else this.control&&this[Es]&&this.detach()}attach(e){this[_s]=e}detach(){this[_s]=null}}return t=_s,s=Es,n([mt({attribute:"for"})],i.prototype,"htmlFor",void 0),i}function As(e,t=!0){var s,i,r;return i=new WeakMap,s=new WeakSet,r=function(e){e.defaultPrevented||e.target!==e.currentTarget||Xt(this)&&this.disabled||Gt(this)&&this.disabledInteractive||(" "===e.key||t&&"Enter"===e.key)&&this.dispatchEvent(new MouseEvent("click",{cancelable:!0,bubbles:!0,composed:!0}))},class extends e{constructor(){super(...arguments),s.add(this),i.set(this,e=>l(this,s,"m",r).call(this,e))}connectedCallback(){super.connectedCallback(),this.addEventListener("keyup",l(this,i,"f"))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("keyup",l(this,i,"f"))}}}
|
|
49
49
|
/**
|
|
50
50
|
* @license
|
|
51
51
|
* Copyright 2017 Google LLC
|
|
@@ -527,5 +527,5 @@ const di=e=>e??Xs,hi=Symbol("renderPseudoLink");function ci(e){return Oe(e,"down
|
|
|
527
527
|
:host {
|
|
528
528
|
display: contents;
|
|
529
529
|
}
|
|
530
|
-
`,Kr.__nextId=0,n([mt({type:Boolean,reflect:!0})],Kr.prototype,"disabled",void 0),n([mt()],Kr.prototype,"term",void 0),n([mt({attribute:"case-sensitive",type:Boolean})],Kr.prototype,"caseSensitive",void 0),Kr=jr=n([Be("m3e-text-highlight")],Kr);export{Re as AttachInternals,yt as Checked,bt as CheckedIndeterminate,fs as ConstraintValidation,Kt as DesignToken,At as Dirty,Zt as Disabled,es as DisabledInteractive,ys as EventAttribute,_e as FocusController,bs as Focusable,cs as FormAssociated,$s as FormSubmitter,Ee as HoverController,Ss as HtmlFor,Se as IntersectionController,As as KeyboardClick,rs as Labelled,mi as LinkButton,Ae as LongPressController,Fi as M3eCollapsibleElement,Ji as M3eElevationElement,or as M3eFocusRingElement,nr as M3ePseudoCheckboxElement,lr as M3ePseudoRadioElement,xr as M3eRippleElement,$r as M3eScrollContainerElement,Er as M3eSlide,Dr as M3eStateLayerElement,Kr as M3eTextHighlightElement,Or as M3eTextOverflowElement,Ce as MutationController,ze as PressedController,vi as ReadOnly,yi as Required,bi as RequiredConstraintValidation,Le as ResizeController,xi as Role,We as ScrollController,wt as Selected,Lt as Touched,$i as Vertical,_t as checkOrSelect,Me as debounce,os as defaultValue,as as formValue,ki as getTextContent,_i as guid,Ei as hasAssignedNodes,Oe as hasKeys,Ue as internals,Ne as isAttachInternalsMixin,gt as isCheckedIndeterminateMixin,ft as isCheckedMixin,kt as isCheckedOrSelected,$t as isCheckedOrSelectedMixin,ms as isConstraintValidationMixin,Et as isDirtyMixin,Gt as isDisabledInteractiveMixin,Xt as isDisabledMixin,ns as isFormAssociatedMixin,xs as isFormSubmitterMixin,ks as isHtmlForMixin,
|
|
530
|
+
`,Kr.__nextId=0,n([mt({type:Boolean,reflect:!0})],Kr.prototype,"disabled",void 0),n([mt()],Kr.prototype,"term",void 0),n([mt({attribute:"case-sensitive",type:Boolean})],Kr.prototype,"caseSensitive",void 0),Kr=jr=n([Be("m3e-text-highlight")],Kr);export{Re as AttachInternals,yt as Checked,bt as CheckedIndeterminate,fs as ConstraintValidation,Kt as DesignToken,At as Dirty,Zt as Disabled,es as DisabledInteractive,ys as EventAttribute,_e as FocusController,bs as Focusable,cs as FormAssociated,$s as FormSubmitter,Ee as HoverController,Ss as HtmlFor,Se as IntersectionController,As as KeyboardClick,rs as Labelled,mi as LinkButton,Ae as LongPressController,Fi as M3eCollapsibleElement,Ji as M3eElevationElement,or as M3eFocusRingElement,nr as M3ePseudoCheckboxElement,lr as M3ePseudoRadioElement,xr as M3eRippleElement,$r as M3eScrollContainerElement,Er as M3eSlide,Dr as M3eStateLayerElement,Kr as M3eTextHighlightElement,Or as M3eTextOverflowElement,Ce as MutationController,ze as PressedController,vi as ReadOnly,yi as Required,bi as RequiredConstraintValidation,Le as ResizeController,xi as Role,We as ScrollController,wt as Selected,Lt as Touched,$i as Vertical,_t as checkOrSelect,Me as debounce,os as defaultValue,as as formValue,ki as getTextContent,_i as guid,Ei as hasAssignedNodes,Oe as hasKeys,Ue as internals,Ne as isAttachInternalsMixin,gt as isCheckedIndeterminateMixin,ft as isCheckedMixin,kt as isCheckedOrSelected,$t as isCheckedOrSelectedMixin,ms as isConstraintValidationMixin,Et as isDirtyMixin,Gt as isDisabledInteractiveMixin,Xt as isDisabledMixin,ns as isFormAssociatedMixin,xs as isFormSubmitterMixin,ks as isHtmlForMixin,ss as isLabelledMixin,ci as isLinkButtonMixin,ui as isReadOnlyMixin,gi as isRequiredConstraintValidationMixin,fi as isRequiredMixin,xt as isSelectedMixin,Ct as isTouchedMixin,wi as isVerticalMixin,Si as prefersReducedMotion,hi as renderPseudoLink,De as safeStyleMap,Ai as scrollIntoViewIfNeeded,ts as updateLabels,ps as validate};
|
|
531
531
|
//# sourceMappingURL=index.min.js.map
|