@m3e/core 1.1.9 → 1.1.11

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/index.min.js CHANGED
@@ -52,5 +52,5 @@ function Yt(e,t){return(t,s,i)=>((e,t,s)=>(s.configurable=!0,s.enumerable=!0,Ref
52
52
  * Copyright 2018 Google LLC
53
53
  * SPDX-License-Identifier: BSD-3-Clause
54
54
  */
55
- const qi=e=>e??Li,Vi=Symbol("renderPseudoLink");function ji(e){return xt(e,"download","href","rel","target")}const Xi=Symbol("_clickHandler");function Zi(e){var s,i,a,n,h;class c extends e{constructor(){super(...arguments),s.add(this),this[h]=async e=>{if(zs(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[Xi]),this.hasAttribute("href")&&"button"===this.role&&(this.role="link")}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",this[Xi])}[(s=new WeakSet,h=Xi,Vi)](){const e=Ls(this)&&this.disabled,o=zs(this)&&this.disabledInteractive;return e||o||!this.href?t:r`<a href="${this.href}" target="${qi(this.target||void 0)}" rel="${qi(this.rel||void 0)}" download="${qi(this.download||void 0)}" tabindex="-1" aria-hidden="true" @pointerdown="${l(this,s,"m",i)}" @focus="${l(this,s,"m",a)}" @blur="${l(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")},a=function(e){e.target.blur(),this.focus()},n=function(e){e.target.setAttribute("aria-hidden","true")},o([Kt()],c.prototype,"href",void 0),o([Kt()],c.prototype,"target",void 0),o([Kt()],c.prototype,"rel",void 0),o([Kt({reflect:!1})],c.prototype,"download",null),c}function Ki(e){return xt(e,"readOnly")}function Yi(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 o([Kt({attribute:"readonly",type:Boolean,reflect:t})],s.prototype,"readOnly",void 0),s}function Qi(e){return xt(e,"required","optional")}function Gi(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 o([Kt({type:Boolean,reflect:!0})],t.prototype,"required",void 0),t}function Ji(e){return Qi(e)&&Zs(e)}function er(e){return class extends e{[Xs](){const e=super[Xs]();if(!e&&this.required){if(Qt(this)&&!this.checked)return{valueMissing:!0};if(!this.value)return{valueMissing:!0}}return e}}}function tr(e,t){return class extends e{connectedCallback(){this.role=this.role||t,super.connectedCallback()}}}function sr(e){return xt(e,"vertical")}function ir(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 o([Kt({type:Boolean,reflect:!0})],t.prototype,"vertical",void 0),t}var rr,ar,nr,or,lr,hr,cr,dr;class pr extends n{constructor(){super(...arguments),rr.set(this,e=>{e.defaultPrevented||this._onClick(e)})}connectedCallback(){super.connectedCallback(),this.parentElement?.addEventListener("click",l(this,rr,"f"))}disconnectedCallback(){super.disconnectedCallback(),this.parentElement?.removeEventListener("click",l(this,rr,"f"))}render(){return r`<slot></slot>`}}rr=new WeakMap,pr.styles=a`:host { display: contents; } ::slotted(.material-icons) { font-size: inherit !important; }`;let ur=class extends(Gs(n,"opening","opened","closing","closed")){constructor(){super(...arguments),ar.add(this),nr.set(this,!1),or.set(this,!1),this.open=!1}update(e){if(super.update(e),this.classList.toggle("-no-animate",!0),!l(this,nr,"f"))return this.open&&(h(this,or,!0,"f"),l(this,ar,"m",hr).call(this)),void h(this,nr,!0,"f");this.toggleAttribute("inert",!this.open),this.open?(h(this,or,!0,"f"),st()||(l(this,ar,"m",hr).call(this),this.classList.toggle("-overflows",this.clientHeight<this.scrollHeight),l(this,ar,"m",cr).call(this)),this.classList.toggle("-closing",!1),this.classList.toggle("-opening",!0),this.dispatchEvent(new Event("opening")),l(this,ar,"m",cr).call(this),this.classList.toggle("-no-animate",!1),l(this,ar,"m",dr).call(this),st()?(l(this,ar,"m",hr).call(this),this.classList.toggle("-opening",!1),this.dispatchEvent(new Event("opened"))):this.addEventListener("transitionend",()=>{this.open&&(l(this,ar,"m",hr).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")),l(this,ar,"m",dr).call(this),l(this,or,"f")&&this.classList.toggle("-no-animate",!1),st()?(l(this,ar,"m",cr).call(this),this.classList.toggle("-closing",!1),this.dispatchEvent(new Event("closed"))):requestAnimationFrame(()=>{l(this,ar,"m",cr).call(this),this.addEventListener("transitionend",()=>{this.open||(this.classList.toggle("-closing",!1),this.dispatchEvent(new Event("closed")))},{once:!0})}))}render(){return r`<slot @slotchange="${l(this,ar,"m",lr)}"></slot>`}};nr=new WeakMap,or=new WeakMap,ar=new WeakSet,lr=function(){h(this,nr,!0,"f")},hr=function(){this.style.height="auto"},cr=function(){this.style.height=""},dr=function(){this.style.height=`${this.scrollHeight}px`},ur.styles=a`:host { display: block; height: 0px; overflow: hidden; transition: ${i(`visibility var(--m3e-collapsible-animation-duration, ${Cs.motion.duration.medium1})\n ${Cs.motion.easing.standard},\n height var(--m3e-collapsible-animation-duration, ${Cs.motion.duration.medium1})\n ${Cs.motion.easing.standard},\n padding-top var(--m3e-collapsible-animation-duration, ${Cs.motion.duration.medium1})\n ${Cs.motion.easing.standard},\n padding-bottom var(--m3e-collapsible-animation-duration, ${Cs.motion.duration.medium1})\n ${Cs.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; } }`,o([Kt({type:Boolean,reflect:!0})],ur.prototype,"open",void 0),ur=o([_t("m3e-collapsible")],ur);const mr=i(`var(--m3e-elevation-lift-duration, ${Cs.motion.duration.short4})`),fr=i(`var(--m3e-elevation-lift-easing, ${Cs.motion.easing.standard})`),vr=i(`var(--m3e-elevation-settle-duration, ${Cs.motion.duration.short3})`),yr=i(`var(--m3e-elevation-settle-easing, ${Cs.motion.easing.standardAccelerate})`),gr=i(`var(--m3e-elevation-level, ${Cs.elevation.level0})`),br=i(`var(--m3e-elevation-hover-level, ${Cs.elevation.level0})`),xr=i(`var(--m3e-elevation-focus-level, ${Cs.elevation.level0})`),wr=i(`var(--m3e-elevation-pressed-level, ${Cs.elevation.level0})`);var $r,kr,Er,_r,Sr,Ar,Cr;let Lr=class extends(oi(tr(n,"none"))){constructor(){super(...arguments),$r.add(this),kr.set(this,new ot(this,{target:null,callback:e=>l(this,$r,"m",Sr).call(this,e)})),Er.set(this,new nt(this,{target:null,callback:e=>l(this,$r,"m",Ar).call(this,e)})),_r.set(this,new dt(this,{target:null,callback:e=>l(this,$r,"m",Cr).call(this,e)})),this.disabled=!1,this.level=null}attach(e){super.attach(e),l(this,kr,"f").observe(e),l(this,Er,"f").observe(e),l(this,_r,"f").observe(e)}detach(){this.control&&(l(this,kr,"f").unobserve(this.control),l(this,Er,"f").unobserve(this.control),l(this,_r,"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 r`<div class="shadow"></div>`}};kr=new WeakMap,Er=new WeakMap,_r=new WeakMap,$r=new WeakSet,Sr=function(e){this.disabled||(this._shadow?.classList.toggle("hover",e),this._shadow?.classList.toggle("resting",!e))},Ar=function(e){this.disabled||this._shadow?.classList.toggle("focus",e)},Cr=function(e){this.disabled||this._shadow?.classList.toggle("pressed",e)},Lr.styles=a`: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 ${vr} ${yr};`)}; } .shadow.hover { will-change: box-shadow; transition: ${i(`box-shadow ${mr} ${fr};`)}; } .shadow { box-shadow: ${gr}; } .shadow.focus { box-shadow: ${xr}; } .shadow.hover { box-shadow: ${br}; } .shadow.pressed { box-shadow: ${wr}; } :host([level="0"]) .shadow { --m3e-elevation-level: ${Cs.elevation.level0}; --m3e-elevation-hover-level: ${Cs.elevation.level1}; } :host([level="1"]) .shadow { --m3e-elevation-level: ${Cs.elevation.level1}; --m3e-elevation-hover-level: ${Cs.elevation.level2}; } :host([level="2"]) .shadow { --m3e-elevation-level: ${Cs.elevation.level2}; --m3e-elevation-hover-level: ${Cs.elevation.level3}; } :host([level="3"]) .shadow { --m3e-elevation-level: ${Cs.elevation.level3}; --m3e-elevation-hover-level: ${Cs.elevation.level4}; } :host([level="4"]) .shadow { --m3e-elevation-level: ${Cs.elevation.level4}; --m3e-elevation-hover-level: ${Cs.elevation.level5}; } :host([level="5"]) .shadow { --m3e-elevation-level: ${Cs.elevation.level5}; --m3e-elevation-hover-level: ${gr}; } :host([level]) .shadow { --m3e-elevation-focus-level: ${gr}; --m3e-elevation-pressed-level: ${gr}; } @media (prefers-reduced-motion) { .shadow.resting, .shadow.pressed, .shadow.focus, .shadow.hover { transition: none; } } @media (forced-colors: active) { .shadow { display: none; } }`,o([Yt(".shadow")],Lr.prototype,"_shadow",void 0),o([Kt({type:Boolean,reflect:!0})],Lr.prototype,"disabled",void 0),o([Kt({type:Number,reflect:!0})],Lr.prototype,"level",void 0),Lr=o([_t("m3e-elevation")],Lr);const Mr=i(`var(--m3e-focus-ring-color, ${Cs.color.secondary})`),zr=i(`var(--m3e-focus-ring-duration, ${Cs.motion.duration.long2})`),Wr=i("var(--m3e-focus-ring-thickness, 0.1875rem)"),Pr=i("var(--m3e-focus-ring-visibility, visible)"),Tr=i("var(--m3e-focus-ring-growth-factor, 2)");var Hr,Fr,Or;let Dr=class extends(oi(tr(n,"none"))){constructor(){super(...arguments),Hr.add(this),Fr.set(this,new nt(this,{target:null,callback:(e,t)=>l(this,Hr,"m",Or).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),l(this,Fr,"f").observe(e)}detach(){this.control&&l(this,Fr,"f").unobserve(this.control),super.detach()}connectedCallback(){this.ariaHidden="true",super.connectedCallback()}disconnectedCallback(){super.disconnectedCallback(),this.hide()}render(){return r`<div class="outline"></div>`}updated(e){super.updated(e),e.has("disabled")&&this.disabled&&this.hide()}};Fr=new WeakMap,Hr=new WeakSet,Or=function(e){this.disabled||(e?this.show():this.hide())},Dr.styles=a`: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: ${Mr}; outline-width: ${Wr}; visibility: ${Pr}; } .outline.visible { outline-style: solid; } :host(:not([inward])) .outline { outline-offset: calc(${Wr} / ${Tr}); } :host([inward]) .outline { outline-offset: calc(0px - ${Wr}); } :host(:not([inward])) .outline.visible { animation: grow-shrink ${zr}; } :host([inward]) .outline.visible { animation: shrink-grow ${zr}; } @keyframes grow-shrink { 50% { outline-width: calc(${Wr} * ${Tr}); } } @keyframes shrink-grow { 50% { outline-offset: calc(0px - calc(${Wr} * ${Tr})); outline-width: calc(${Wr} * ${Tr}); } } @media (prefers-reduced-motion) { :host(:not([inward])) .outline.visible, :host([inward]) .outline.visible { animation: none; } } @media (forced-colors: active) { .outline { outline-color: Highlight; } }`,o([Yt(".outline")],Dr.prototype,"_outline",void 0),o([Kt({type:Boolean,reflect:!0})],Dr.prototype,"inward",void 0),o([Kt({type:Boolean,reflect:!0})],Dr.prototype,"disabled",void 0),Dr=o([_t("m3e-focus-ring")],Dr);let Ur=class extends(es(Ms(tr(n,"none")))){connectedCallback(){super.connectedCallback(),this.ariaHidden="true"}render(){return this.indeterminate?r`<svg viewBox="0 -960 960 960" fill="currentColor"><path Required d="M240-440v-80h480v80H240Z"/></svg>`:this.checked?r`<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}};Ur.styles=a`: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, 0.125rem); box-sizing: border-box; flex: none; } :host(:not([checked]):not([indeterminate])) { border-width: var(--m3e-checkbox-unselected-outline-thickness, 0.125rem); border-style: solid; } :host(:not([disabled])[checked]), :host(:not([disabled])[indeterminate]) { background-color: var(--m3e-checkbox-selected-container-color, ${Cs.color.primary}); color: var(--m3e-checkbox-selected-icon-color, ${Cs.color.onPrimary}); } :host(:not([disabled]):not([checked]):not([indeterminate])) { border-color: var(--m3e-checkbox-unselected-outline-color, ${Cs.color.onSurfaceVariant}); } :host([disabled]:not([checked]):not([indeterminate])) { border-color: color-mix( in srgb, var(--m3e-checkbox-unselected-disabled-outline-color, ${Cs.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, ${Cs.color.onSurface}) var(--m3e-checkbox-selected-disabled-container-opacity, 38%), transparent ); color: color-mix( in srgb, var(--m3e-checkbox-selected-disabled-icon-color, ${Cs.color.surface}) var(--m3e-checkbox-selected-disabled-icon-opacity, 100%), transparent ); }`,Ur=o([_t("m3e-pseudo-checkbox")],Ur);let Nr=class extends(Gt(Ms(tr(n,"none")))){connectedCallback(){super.connectedCallback(),this.ariaHidden="true"}render(){return r`<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>`}};Nr.styles=a`: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, ${Cs.color.onSurfaceVariant}); } :host([checked]) { color: var(--m3e-radio-selected-icon-color, ${Cs.color.primary}); } :host([disabled]) { color: color-mix(in srgb, var(--m3e-radio-disabled-icon-color, ${Cs.color.onSurface}) 38%, transparent); }`,Nr=o([_t("m3e-pseudo-radio")],Nr);const Ir=i(`var(--m3e-ripple-color, ${Cs.color.onSurface})`),Rr=i(`var(--m3e-ripple-opacity, ${Cs.state.pressedStateLayerOpacity})`),Br=i(`var(--m3e-ripple-enter-duration, ${Cs.motion.duration.long4})`),qr=i(`var(--m3e-ripple-exit-duration, ${Cs.motion.duration.short2})`),Vr=i("var(--m3e-ripple-scale-factor, 2.5)");var jr,Xr,Zr,Kr,Yr,Qr;let Gr=class extends(oi(tr(n,"none"))){constructor(){super(...arguments),jr.add(this),Xr.set(this,null),Zr.set(this,new dt(this,{target:null,minPressedDuration:150,isPressedKey:e=>" "===e,callback:(e,{x:t,y:s})=>l(this,jr,"m",Qr).call(this,e,t,s)})),this.disabled=!1,this.centered=!1,this.unbounded=!1,this.radius=null}get visible(){return null!==l(this,Xr,"f")}show(e,t,s=!1){l(this,jr,"m",Kr).call(this);const i=this.getBoundingClientRect();this.centered&&(e=i.left+i.width/2,t=i.top+i.height/2);let r=this.radius;if(!r||isNaN(r)){const s=Math.max(Math.abs(e-i.left),Math.abs(e-i.right)),a=Math.max(Math.abs(t-i.top),Math.abs(t-i.bottom));r=Math.sqrt(s*s+a*a)}const a=e-i.left,n=t-i.top;h(this,Xr,document.createElement("div"),"f"),l(this,Xr,"f").classList.add("ripple"),s&&l(this,Xr,"f").classList.add("persistent"),l(this,Xr,"f").style.left=a-r+"px",l(this,Xr,"f").style.top=n-r+"px",l(this,Xr,"f").style.width=2*r+"px",l(this,Xr,"f").style.height=2*r+"px",l(this,Xr,"f").addEventListener("animationend",()=>l(this,jr,"m",Yr).call(this,s),{once:!0}),l(this,Xr,"f").addEventListener("transitionend",()=>l(this,jr,"m",Kr).call(this),{once:!0}),this.shadowRoot?.appendChild(l(this,Xr,"f"))}hide(){l(this,Xr,"f")?.classList.add("exit")}attach(e){super.attach(e),l(this,Zr,"f").observe(e)}detach(){this.control&&l(this,Zr,"f").unobserve(this.control),super.detach()}connectedCallback(){this.ariaHidden="true",super.connectedCallback()}disconnectedCallback(){super.disconnectedCallback(),l(this,jr,"m",Kr).call(this)}updated(e){super.updated(e),e.has("disabled")&&this.disabled&&this.hide()}};var Jr;Xr=new WeakMap,Zr=new WeakMap,jr=new WeakSet,Kr=function(){l(this,Xr,"f")?.remove(),h(this,Xr,null,"f")},Yr=function(e){e?l(this,Xr,"f")?.classList.add("pressed"):this.hide()},Qr=function(e,t,s){this.disabled||(e?this.show(t,s,!0):this.hide())},Gr.styles=a`: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: ${Cs.shape.corner.full}; background-color: color-mix(in srgb, ${Ir} ${Rr}, transparent); will-change: background-color, opacity; animation: ripple ${Br} linear; } .ripple.persistent.pressed { transform: scale(${Vr}); } .ripple.exit { transition: opacity ${qr} cubic-bezier(0, 0, 0.2, 0.1); opacity: 0; } @keyframes ripple { to { transform: scale(${Vr}); } } @media (prefers-reduced-motion) { .ripple { transform: scale(${Vr}); animation-duration: 90ms; } .ripple.exit { transition-duration: 10ms; } } @media (forced-colors: active) { .ripple { display: none; } }`,o([Kt({type:Boolean,reflect:!0})],Gr.prototype,"disabled",void 0),o([Kt({type:Boolean,reflect:!0})],Gr.prototype,"centered",void 0),o([Kt({type:Boolean,reflect:!0})],Gr.prototype,"unbounded",void 0),o([Kt({type:Number})],Gr.prototype,"radius",void 0),Gr=o([_t("m3e-ripple")],Gr);let ea=class extends n{constructor(){super(...arguments),Jr.set(this,()=>this._updateScroll()),this.dividers="above-below",this.thin=!1}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("scroll",l(this,Jr,"f"))}update(e){super.update(e),e.has("dividers")&&(this.removeEventListener("scroll",l(this,Jr,"f")),"none"!==this.dividers&&this.addEventListener("scroll",l(this,Jr,"f"),{passive:!0}))}render(){return r`<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 ta,sa,ia,ra;Jr=new WeakMap,ea.styles=a`:host { display: block; overflow-y: auto; position: relative; box-sizing: border-box; scrollbar-color: ${Cs.scrollbar.color}; border-top: var(--m3e-divider-thickness, 1px) solid transparent; border-bottom: var(--m3e-divider-thickness, 1px) solid transparent; outline: var(--m3e-focus-ring-color, ${Cs.color.secondary}); outline-width: var(--m3e-focus-ring-thickness, 0.25rem); outline-offset: calc(var(--m3e-focus-ring-thickness, 0.25rem) / 2); } :host([thin]) { scrollbar-width: ${Cs.scrollbar.thinWidth}; } :host(:not([thin])) { scrollbar-width: ${Cs.scrollbar.width}; } :host(:not(:focus-visible).-above) { border-top-color: var(--m3e-divider-color, ${Cs.color.outlineVariant}); } :host(:not(:focus-visible).-below) { border-bottom-color: var(--m3e-divider-color, ${Cs.color.outlineVariant}); } :host(:focus-visible) { outline-style: solid; animation: grow-shrink var(--m3e-focus-ring-duration, ${Cs.motion.duration.long2}); } @keyframes grow-shrink { 50% { outline-width: calc(var(--m3e-focus-ring-thickness, 0.25rem) * var(--m3e-focus-ring-factor, 2)); } } @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; } }`,o([Kt()],ea.prototype,"dividers",void 0),o([Kt({type:Boolean,reflect:!0})],ea.prototype,"thin",void 0),o([ut(40)],ea.prototype,"_updateScroll",null),ea=o([_t("m3e-scroll-container")],ea);let aa=class extends n{constructor(){super(...arguments),ta.add(this),sa.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),l(this,ta,"m",ra).call(this),null!==this.selectedIndex&&this.classList.contains("-no-animate")&&requestAnimationFrame(()=>{null!==this.selectedIndex&&this.classList.toggle("-no-animate",!1)}))}render(){return r`<slot @slotchange="${l(this,ta,"m",ia)}"></slot>`}};sa=new WeakMap,ta=new WeakSet,ia=function(e){const t=[...e.target.assignedElements({flatten:!0})];for(const e of l(this,sa,"f").filter(e=>!t.includes(e)))e.classList.remove("-before"),e.classList.remove("-after"),e.removeAttribute("inert");h(this,sa,t,"f"),l(this,ta,"m",ra).call(this)},ra=function(){const e=this.selectedIndex??l(this,sa,"f").length;for(let t=0;t<l(this,sa,"f").length;t++){const s=l(this,sa,"f")[t];s.classList.toggle("-before",t<e),s.classList.toggle("-after",t>e),s.toggleAttribute("inert",t!==e)}},aa.styles=a`:host { display: flex; position: relative; overflow: hidden; } ::slotted(*) { width: 100%; top: 0; transition: ${i(`inset-inline-start var(--m3e-slide-animation-duration, ${Cs.motion.duration.long2}) ${Cs.motion.easing.standard},\n visibility var(--m3e-slide-animation-duration, ${Cs.motion.duration.long2}) ${Cs.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; } }`,o([Kt({attribute:"selected-index",type:Number,reflect:!0})],aa.prototype,"selectedIndex",void 0),aa=o([_t("m3e-slide")],aa);const na=i(`var(--m3e-state-layer-hover-color, ${Cs.color.onSurface})`),oa=i(`var(--m3e-state-layer-hover-opacity, ${Cs.state.hoverStateLayerOpacity})`),la=i(`var(--m3e-state-layer-focus-color, ${Cs.color.onSurface})`),ha=i(`var(--m3e-state-layer-focus-opacity, ${Cs.state.focusStateLayerOpacity})`),ca=i(`var(--m3e-state-layer-duration, ${Cs.motion.duration.medium1})`),da=i(`var(--m3e-state-layer-easing, ${Cs.motion.easing.standard})`);var pa,ua,ma,fa,va;let ya=class extends(oi(tr(n,"none"))){constructor(){super(...arguments),pa.add(this),ua.set(this,new ot(this,{target:null,callback:e=>l(this,pa,"m",fa).call(this,e)})),ma.set(this,new nt(this,{target:null,callback:(e,t)=>l(this,pa,"m",va).call(this,e&&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),l(this,ua,"f").observe(e),l(this,ma,"f").observe(e)}detach(){this.control&&(l(this,ua,"f").unobserve(this.control),l(this,ma,"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 r`<div class="layer"></div>`}};ua=new WeakMap,ma=new WeakMap,pa=new WeakSet,fa=function(e){this.disabled||this.disableHover||(e?this.show("hover"):this.hide("hover"))},va=function(e){this.disabled||(e?this.show("focused"):this.hide("focused"))},ya.styles=a`: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 ${ca} ${da}`)}; } .layer.focused { background-color: color-mix(in srgb, ${la} ${ha}, transparent); } .layer.hover { background-color: color-mix(in srgb, ${na} ${oa}, transparent); } @media (prefers-reduced-motion) { .layer { transition: none; } } @media (forced-colors: active) { .layer { display: none; } }`,o([Yt(".layer")],ya.prototype,"_layer",void 0),o([Kt({type:Boolean,reflect:!0})],ya.prototype,"disabled",void 0),o([Kt({attribute:"disable-hover",type:Boolean,reflect:!0})],ya.prototype,"disableHover",void 0),ya=o([_t("m3e-state-layer")],ya);let ga=class extends n{render(){return r`<span class="base"><slot></slot></span>`}};var ba,xa,wa,$a,ka,Ea,_a,Sa;ga.styles=a`: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; }`,ga=o([_t("m3e-text-overflow")],ga);let Aa=Sa=class extends n{constructor(){super(),ba.add(this),xa.set(this,"m3e-text-highlight-"+Sa.__nextId++),wa.set(this,new Array),$a.set(this,null),this.disabled=!1,this.term="",this.caseSensitive=!1,this.isSupported&&(h(this,$a,new CSSStyleSheet,"f"),l(this,$a,"f").replaceSync(a`::highlight(${i(l(this,xa,"f"))}) { background-color: var(--m3e-text-highlight-container-color, ${Cs.color.secondaryContainer}); color: var(--m3e-text-highlight-color, ${Cs.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 l(this,wa,"f")}firstUpdated(e){super.firstUpdated(e),this.shadowRoot&&l(this,$a,"f")&&!this.shadowRoot.adoptedStyleSheets.includes(l(this,$a,"f"))&&this.shadowRoot.adoptedStyleSheets.push(l(this,$a,"f"))}updated(e){super.updated(e),(e.has("term")||e.has("caseSensitive")||e.has("disabled"))&&l(this,ba,"m",_a).call(this)}render(){return r`<slot @slotchange="${l(this,ba,"m",_a)}"></slot>`}};xa=new WeakMap,wa=new WeakMap,$a=new WeakMap,ba=new WeakSet,ka=function(e){return!/^(\\s|\\n)+$/gi.test(e.data)},Ea=function e(t,s){t instanceof HTMLSlotElement?t.assignedElements({flatten:!0}).forEach(t=>{switch(t.nodeType){case Node.TEXT_NODE:l(this,ba,"m",ka).call(this,t)&&s.push(t);break;case Node.ELEMENT_NODE:l(this,ba,"m",e).call(this,t,s)}}):t.childNodes.forEach(t=>{switch(t.nodeType){case Node.TEXT_NODE:l(this,ba,"m",ka).call(this,t)&&s.push(t);break;case Node.ELEMENT_NODE:l(this,ba,"m",e).call(this,t,s)}})},_a=function(){if(!this.isSupported||!this.isConnected)return;if(CSS.highlights.delete(l(this,xa,"f")),l(this,wa,"f").length=0,this.disabled)return;if(!this.term)return void this.dispatchEvent(new CustomEvent("highlight",{detail:[...l(this,wa,"f")],bubbles:!1,composed:!1}));const e=new Array;l(this,ba,"m",Ea).call(this,this,e);const t=this.caseSensitive?this.term:this.term.toLowerCase();h(this,wa,e.map(e=>({el:e,text:(this.caseSensitive?e.textContent:e.textContent?.toLowerCase())??""})).map(({el:e,text:s})=>{const i=new Array;let r=0;for(;r<s.length;){const e=s.indexOf(t,r);if(-1===e)break;i.push(e),r=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"),l(this,wa,"f").length>0&&CSS.highlights.set(l(this,xa,"f"),new Highlight(...l(this,wa,"f"))),this.dispatchEvent(new CustomEvent("highlight",{detail:[...l(this,wa,"f")],bubbles:!1,composed:!1}))},Aa.styles=a`:host { display: contents; }`,Aa.__nextId=0,o([Kt({type:Boolean,reflect:!0})],Aa.prototype,"disabled",void 0),o([Kt()],Aa.prototype,"term",void 0),o([Kt({attribute:"case-sensitive",type:Boolean})],Aa.prototype,"caseSensitive",void 0),Aa=Sa=o([_t("m3e-text-highlight")],Aa);export{pr as ActionElementBase,De as AnimationLoopController,Et as AttachInternals,Gt as Checked,es as CheckedIndeterminate,Qs as ConstraintValidation,Cs as DesignToken,ls as Dirty,Ms as Disabled,Hs as DisabledInteractive,Gs as EventAttribute,nt as FocusController,ei as Focusable,js as FormAssociated,ii as FormSubmitter,ot as HoverController,oi as HtmlFor,lt as IntersectionController,li as KeyboardClick,Us as Labelled,Zi as LinkButton,ht as LongPressController,ur as M3eCollapsibleElement,Lr as M3eElevationElement,Dr as M3eFocusRingElement,Ur as M3ePseudoCheckboxElement,Nr as M3ePseudoRadioElement,Gr as M3eRippleElement,ea as M3eScrollContainerElement,aa as M3eSlideElement,ya as M3eStateLayerElement,Aa as M3eTextHighlightElement,ga as M3eTextOverflowElement,ct as MutationController,dt as PressedController,Yi as ReadOnly,Gi as Required,er as RequiredConstraintValidation,pt as ResizeController,tr as Role,mt as ScrollController,ss as Selected,ds as Touched,ir as Vertical,as as checkOrSelect,Ne as computeLineCount,ut as debounce,Is as defaultValue,Ie as focusWhenReady,Re as forcedColorsActive,Ns as formValue,Qe as generateClipPaths,Ge as getTextContent,Je as guid,et as hasAssignedNodes,xt as hasKeys,tt as interceptProperty,wt as internals,$t as isAttachInternalsMixin,Jt as isCheckedIndeterminateMixin,Qt as isCheckedMixin,rs as isCheckedOrSelected,is as isCheckedOrSelectedMixin,Zs as isConstraintValidationMixin,ns as isDirtyMixin,zs as isDisabledInteractiveMixin,Ls as isDisabledMixin,Rs as isFormAssociatedMixin,ti as isFormSubmitterMixin,ri as isHtmlForMixin,Os as isLabelledMixin,ji as isLinkButtonMixin,Ki as isReadOnlyMixin,Ji as isRequiredConstraintValidationMixin,Qi as isRequiredMixin,ts as isSelectedMixin,hs as isTouchedMixin,sr as isVerticalMixin,st as prefersReducedMotion,Vi as renderPseudoLink,it as resolveElementById,rt as resolveFragmentUrl,bt as safeStyleMap,at as scrollIntoViewIfNeeded,Fs as updateLabels,Xs as validate};
55
+ const qi=e=>e??Li,Vi=Symbol("renderPseudoLink");function ji(e){return xt(e,"download","href","rel","target")}const Xi=Symbol("_clickHandler");function Zi(e){var s,i,a,n,h;class c extends e{constructor(){super(...arguments),s.add(this),this[h]=async e=>{if(zs(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[Xi]),this.hasAttribute("href")&&"button"===this.role&&(this.role="link")}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",this[Xi])}[(s=new WeakSet,h=Xi,Vi)](){const e=Ls(this)&&this.disabled,o=zs(this)&&this.disabledInteractive;return e||o||!this.href?t:r`<a href="${this.href}" target="${qi(this.target||void 0)}" rel="${qi(this.rel||void 0)}" download="${qi(this.download||void 0)}" tabindex="-1" aria-hidden="true" @pointerdown="${l(this,s,"m",i)}" @focus="${l(this,s,"m",a)}" @blur="${l(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")},a=function(e){e.target.blur(),this.focus()},n=function(e){e.target.setAttribute("aria-hidden","true")},o([Kt()],c.prototype,"href",void 0),o([Kt()],c.prototype,"target",void 0),o([Kt()],c.prototype,"rel",void 0),o([Kt({reflect:!1})],c.prototype,"download",null),c}function Ki(e){return xt(e,"readOnly")}function Yi(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 o([Kt({attribute:"readonly",type:Boolean,reflect:t})],s.prototype,"readOnly",void 0),s}function Qi(e){return xt(e,"required","optional")}function Gi(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 o([Kt({type:Boolean,reflect:!0})],t.prototype,"required",void 0),t}function Ji(e){return Qi(e)&&Zs(e)}function er(e){return class extends e{[Xs](){const e=super[Xs]();if(!e&&this.required){if(Qt(this)&&!this.checked)return{valueMissing:!0};if(!this.value)return{valueMissing:!0}}return e}}}function tr(e,t){return class extends e{connectedCallback(){this.role=this.role||t,super.connectedCallback()}}}function sr(e){return xt(e,"vertical")}function ir(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 o([Kt({type:Boolean,reflect:!0})],t.prototype,"vertical",void 0),t}var rr,ar,nr,or,lr,hr,cr,dr;class pr extends n{constructor(){super(...arguments),rr.set(this,e=>{e.defaultPrevented||this._onClick(e)})}connectedCallback(){super.connectedCallback(),this.parentElement?.addEventListener("click",l(this,rr,"f"))}disconnectedCallback(){super.disconnectedCallback(),this.parentElement?.removeEventListener("click",l(this,rr,"f"))}render(){return r`<slot></slot>`}}rr=new WeakMap,pr.styles=a`:host { display: contents; } ::slotted(.material-icons) { font-size: inherit !important; }`;let ur=class extends(Gs(n,"opening","opened","closing","closed")){constructor(){super(...arguments),ar.add(this),nr.set(this,!1),or.set(this,!1),this.open=!1}update(e){if(super.update(e),this.classList.toggle("-no-animate",!0),!l(this,nr,"f"))return this.open&&(h(this,or,!0,"f"),l(this,ar,"m",hr).call(this)),void h(this,nr,!0,"f");this.toggleAttribute("inert",!this.open),this.open?(h(this,or,!0,"f"),st()||(l(this,ar,"m",hr).call(this),this.classList.toggle("-overflows",this.clientHeight<this.scrollHeight),l(this,ar,"m",cr).call(this)),this.classList.toggle("-closing",!1),this.classList.toggle("-opening",!0),this.dispatchEvent(new Event("opening")),l(this,ar,"m",cr).call(this),this.classList.toggle("-no-animate",!1),l(this,ar,"m",dr).call(this),st()?(l(this,ar,"m",hr).call(this),this.classList.toggle("-opening",!1),this.dispatchEvent(new Event("opened"))):this.addEventListener("transitionend",()=>{this.open&&(l(this,ar,"m",hr).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")),l(this,ar,"m",dr).call(this),l(this,or,"f")&&this.classList.toggle("-no-animate",!1),st()?(l(this,ar,"m",cr).call(this),this.classList.toggle("-closing",!1),this.dispatchEvent(new Event("closed"))):requestAnimationFrame(()=>{l(this,ar,"m",cr).call(this),this.addEventListener("transitionend",()=>{this.open||(this.classList.toggle("-closing",!1),this.dispatchEvent(new Event("closed")))},{once:!0})}))}render(){return r`<slot @slotchange="${l(this,ar,"m",lr)}"></slot>`}};nr=new WeakMap,or=new WeakMap,ar=new WeakSet,lr=function(){h(this,nr,!0,"f")},hr=function(){this.style.height="auto"},cr=function(){this.style.height=""},dr=function(){this.style.height=`${this.scrollHeight}px`},ur.styles=a`:host { display: block; height: 0px; overflow: hidden; transition: ${i(`visibility var(--m3e-collapsible-animation-duration, ${Cs.motion.duration.medium1})\n ${Cs.motion.easing.standard},\n height var(--m3e-collapsible-animation-duration, ${Cs.motion.duration.medium1})\n ${Cs.motion.easing.standard},\n padding-top var(--m3e-collapsible-animation-duration, ${Cs.motion.duration.medium1})\n ${Cs.motion.easing.standard},\n padding-bottom var(--m3e-collapsible-animation-duration, ${Cs.motion.duration.medium1})\n ${Cs.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; } }`,o([Kt({type:Boolean,reflect:!0})],ur.prototype,"open",void 0),ur=o([_t("m3e-collapsible")],ur);const mr=i(`var(--m3e-elevation-lift-duration, ${Cs.motion.duration.short4})`),fr=i(`var(--m3e-elevation-lift-easing, ${Cs.motion.easing.standard})`),vr=i(`var(--m3e-elevation-settle-duration, ${Cs.motion.duration.short3})`),yr=i(`var(--m3e-elevation-settle-easing, ${Cs.motion.easing.standardAccelerate})`),gr=i(`var(--m3e-elevation-level, ${Cs.elevation.level0})`),br=i(`var(--m3e-elevation-hover-level, ${Cs.elevation.level0})`),xr=i(`var(--m3e-elevation-focus-level, ${Cs.elevation.level0})`),wr=i(`var(--m3e-elevation-pressed-level, ${Cs.elevation.level0})`);var $r,kr,Er,_r,Sr,Ar,Cr;let Lr=class extends(oi(tr(n,"none"))){constructor(){super(...arguments),$r.add(this),kr.set(this,new ot(this,{target:null,callback:e=>l(this,$r,"m",Sr).call(this,e)})),Er.set(this,new nt(this,{target:null,callback:e=>l(this,$r,"m",Ar).call(this,e)})),_r.set(this,new dt(this,{target:null,callback:e=>l(this,$r,"m",Cr).call(this,e)})),this.disabled=!1,this.level=null}attach(e){super.attach(e),l(this,kr,"f").observe(e),l(this,Er,"f").observe(e),l(this,_r,"f").observe(e)}detach(){this.control&&(l(this,kr,"f").unobserve(this.control),l(this,Er,"f").unobserve(this.control),l(this,_r,"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 r`<div class="shadow"></div>`}};kr=new WeakMap,Er=new WeakMap,_r=new WeakMap,$r=new WeakSet,Sr=function(e){this.disabled||(this._shadow?.classList.toggle("hover",e),this._shadow?.classList.toggle("resting",!e))},Ar=function(e){this.disabled||this._shadow?.classList.toggle("focus",e)},Cr=function(e){this.disabled||this._shadow?.classList.toggle("pressed",e)},Lr.styles=a`: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 ${vr} ${yr};`)}; } .shadow.hover { will-change: box-shadow; transition: ${i(`box-shadow ${mr} ${fr};`)}; } .shadow { box-shadow: ${gr}; } .shadow.focus { box-shadow: ${xr}; } .shadow.hover { box-shadow: ${br}; } .shadow.pressed { box-shadow: ${wr}; } :host([level="0"]) .shadow { --m3e-elevation-level: ${Cs.elevation.level0}; --m3e-elevation-hover-level: ${Cs.elevation.level1}; } :host([level="1"]) .shadow { --m3e-elevation-level: ${Cs.elevation.level1}; --m3e-elevation-hover-level: ${Cs.elevation.level2}; } :host([level="2"]) .shadow { --m3e-elevation-level: ${Cs.elevation.level2}; --m3e-elevation-hover-level: ${Cs.elevation.level3}; } :host([level="3"]) .shadow { --m3e-elevation-level: ${Cs.elevation.level3}; --m3e-elevation-hover-level: ${Cs.elevation.level4}; } :host([level="4"]) .shadow { --m3e-elevation-level: ${Cs.elevation.level4}; --m3e-elevation-hover-level: ${Cs.elevation.level5}; } :host([level="5"]) .shadow { --m3e-elevation-level: ${Cs.elevation.level5}; --m3e-elevation-hover-level: ${gr}; } :host([level]) .shadow { --m3e-elevation-focus-level: ${gr}; --m3e-elevation-pressed-level: ${gr}; } @media (prefers-reduced-motion) { .shadow.resting, .shadow.pressed, .shadow.focus, .shadow.hover { transition: none; } } @media (forced-colors: active) { .shadow { display: none; } }`,o([Yt(".shadow")],Lr.prototype,"_shadow",void 0),o([Kt({type:Boolean,reflect:!0})],Lr.prototype,"disabled",void 0),o([Kt({type:Number,reflect:!0})],Lr.prototype,"level",void 0),Lr=o([_t("m3e-elevation")],Lr);const Mr=i(`var(--m3e-focus-ring-color, ${Cs.color.secondary})`),zr=i(`var(--m3e-focus-ring-duration, ${Cs.motion.duration.long2})`),Wr=i("var(--m3e-focus-ring-thickness, 0.1875rem)"),Pr=i("var(--m3e-focus-ring-visibility, visible)"),Tr=i("var(--m3e-focus-ring-growth-factor, 2)");var Hr,Fr,Or;let Dr=class extends(oi(tr(n,"none"))){constructor(){super(...arguments),Hr.add(this),Fr.set(this,new nt(this,{target:null,callback:(e,t)=>l(this,Hr,"m",Or).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),l(this,Fr,"f").observe(e)}detach(){this.control&&l(this,Fr,"f").unobserve(this.control),super.detach()}connectedCallback(){this.ariaHidden="true",super.connectedCallback()}disconnectedCallback(){super.disconnectedCallback(),this.hide()}render(){return r`<div class="outline"></div>`}updated(e){super.updated(e),e.has("disabled")&&this.disabled&&this.hide()}};Fr=new WeakMap,Hr=new WeakSet,Or=function(e){this.disabled||(e?this.show():this.hide())},Dr.styles=a`: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: ${Mr}; outline-width: ${Wr}; visibility: ${Pr}; } .outline.visible { outline-style: solid; } :host(:not([inward])) .outline { outline-offset: calc(${Wr} / ${Tr}); } :host([inward]) .outline { outline-offset: calc(0px - ${Wr}); } :host(:not([inward])) .outline.visible { animation: grow-shrink ${zr}; } :host([inward]) .outline.visible { animation: shrink-grow ${zr}; } @keyframes grow-shrink { 50% { outline-width: calc(${Wr} * ${Tr}); } } @keyframes shrink-grow { 50% { outline-offset: calc(0px - calc(${Wr} * ${Tr})); outline-width: calc(${Wr} * ${Tr}); } } @media (prefers-reduced-motion) { :host(:not([inward])) .outline.visible, :host([inward]) .outline.visible { animation: none; } } @media (forced-colors: active) { .outline { outline-color: Highlight; } }`,o([Yt(".outline")],Dr.prototype,"_outline",void 0),o([Kt({type:Boolean,reflect:!0})],Dr.prototype,"inward",void 0),o([Kt({type:Boolean,reflect:!0})],Dr.prototype,"disabled",void 0),Dr=o([_t("m3e-focus-ring")],Dr);let Ur=class extends(es(Ms(tr(n,"none")))){connectedCallback(){super.connectedCallback(),this.ariaHidden="true"}render(){return this.indeterminate?r`<svg viewBox="0 -960 960 960" fill="currentColor"><path Required d="M240-440v-80h480v80H240Z"/></svg>`:this.checked?r`<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}};Ur.styles=a`: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, 0.125rem); box-sizing: border-box; flex: none; } :host(:not([checked]):not([indeterminate])) { border-width: var(--m3e-checkbox-unselected-outline-thickness, 0.125rem); border-style: solid; } :host(:not([disabled])[checked]), :host(:not([disabled])[indeterminate]) { background-color: var(--m3e-checkbox-selected-container-color, ${Cs.color.primary}); color: var(--m3e-checkbox-selected-icon-color, ${Cs.color.onPrimary}); } :host(:not([disabled]):not([checked]):not([indeterminate])) { border-color: var(--m3e-checkbox-unselected-outline-color, ${Cs.color.onSurfaceVariant}); } :host([disabled]:not([checked]):not([indeterminate])) { border-color: color-mix( in srgb, var(--m3e-checkbox-unselected-disabled-outline-color, ${Cs.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, ${Cs.color.onSurface}) var(--m3e-checkbox-selected-disabled-container-opacity, 38%), transparent ); color: color-mix( in srgb, var(--m3e-checkbox-selected-disabled-icon-color, ${Cs.color.surface}) var(--m3e-checkbox-selected-disabled-icon-opacity, 100%), transparent ); }`,Ur=o([_t("m3e-pseudo-checkbox")],Ur);let Nr=class extends(Gt(Ms(tr(n,"none")))){connectedCallback(){super.connectedCallback(),this.ariaHidden="true"}render(){return r`<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>`}};Nr.styles=a`: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, ${Cs.color.onSurfaceVariant}); } :host([checked]) { color: var(--m3e-radio-selected-icon-color, ${Cs.color.primary}); } :host([disabled]) { color: color-mix(in srgb, var(--m3e-radio-disabled-icon-color, ${Cs.color.onSurface}) 38%, transparent); }`,Nr=o([_t("m3e-pseudo-radio")],Nr);const Ir=i(`var(--m3e-ripple-color, ${Cs.color.onSurface})`),Rr=i(`var(--m3e-ripple-opacity, ${Cs.state.pressedStateLayerOpacity})`),Br=i(`var(--m3e-ripple-enter-duration, ${Cs.motion.duration.long4})`),qr=i(`var(--m3e-ripple-exit-duration, ${Cs.motion.duration.short2})`),Vr=i("var(--m3e-ripple-scale-factor, 2.5)");var jr,Xr,Zr,Kr,Yr,Qr;let Gr=class extends(oi(tr(n,"none"))){constructor(){super(...arguments),jr.add(this),Xr.set(this,null),Zr.set(this,new dt(this,{target:null,minPressedDuration:150,isPressedKey:e=>" "===e,callback:(e,{x:t,y:s})=>l(this,jr,"m",Qr).call(this,e,t,s)})),this.disabled=!1,this.centered=!1,this.unbounded=!1,this.radius=null}get visible(){return null!==l(this,Xr,"f")}show(e,t,s=!1){l(this,jr,"m",Kr).call(this);const i=this.getBoundingClientRect();this.centered&&(e=i.left+i.width/2,t=i.top+i.height/2);let r=this.radius;if(!r||isNaN(r)){const s=Math.max(Math.abs(e-i.left),Math.abs(e-i.right)),a=Math.max(Math.abs(t-i.top),Math.abs(t-i.bottom));r=Math.sqrt(s*s+a*a)}const a=e-i.left,n=t-i.top;h(this,Xr,document.createElement("div"),"f"),l(this,Xr,"f").classList.add("ripple"),s&&l(this,Xr,"f").classList.add("persistent"),l(this,Xr,"f").style.left=a-r+"px",l(this,Xr,"f").style.top=n-r+"px",l(this,Xr,"f").style.width=2*r+"px",l(this,Xr,"f").style.height=2*r+"px",l(this,Xr,"f").addEventListener("animationend",()=>l(this,jr,"m",Yr).call(this,s),{once:!0}),l(this,Xr,"f").addEventListener("transitionend",()=>l(this,jr,"m",Kr).call(this),{once:!0}),this.shadowRoot?.appendChild(l(this,Xr,"f"))}hide(){l(this,Xr,"f")?.classList.add("exit")}attach(e){super.attach(e),l(this,Zr,"f").observe(e)}detach(){this.control&&l(this,Zr,"f").unobserve(this.control),super.detach()}connectedCallback(){this.ariaHidden="true",super.connectedCallback()}disconnectedCallback(){super.disconnectedCallback(),l(this,jr,"m",Kr).call(this)}updated(e){super.updated(e),e.has("disabled")&&this.disabled&&this.hide()}};var Jr;Xr=new WeakMap,Zr=new WeakMap,jr=new WeakSet,Kr=function(){l(this,Xr,"f")?.remove(),h(this,Xr,null,"f")},Yr=function(e){e?l(this,Xr,"f")?.classList.add("pressed"):this.hide()},Qr=function(e,t,s){this.disabled||(e?this.show(t,s,!0):this.hide())},Gr.styles=a`: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: ${Cs.shape.corner.full}; background-color: color-mix(in srgb, ${Ir} ${Rr}, transparent); will-change: background-color, opacity; animation: ripple ${Br} linear; } .ripple.persistent.pressed { transform: scale(${Vr}); } .ripple.exit { transition: opacity ${qr} cubic-bezier(0, 0, 0.2, 0.1); opacity: 0; } @keyframes ripple { to { transform: scale(${Vr}); } } @media (prefers-reduced-motion) { .ripple { transform: scale(${Vr}); animation-duration: 90ms; } .ripple.exit { transition-duration: 10ms; } } @media (forced-colors: active) { .ripple { display: none; } }`,o([Kt({type:Boolean,reflect:!0})],Gr.prototype,"disabled",void 0),o([Kt({type:Boolean,reflect:!0})],Gr.prototype,"centered",void 0),o([Kt({type:Boolean,reflect:!0})],Gr.prototype,"unbounded",void 0),o([Kt({type:Number})],Gr.prototype,"radius",void 0),Gr=o([_t("m3e-ripple")],Gr);let ea=class extends n{constructor(){super(...arguments),Jr.set(this,()=>this._updateScroll()),this.dividers="above-below",this.thin=!1}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("scroll",l(this,Jr,"f"))}update(e){super.update(e),e.has("dividers")&&(this.removeEventListener("scroll",l(this,Jr,"f")),"none"!==this.dividers&&this.addEventListener("scroll",l(this,Jr,"f"),{passive:!0}))}render(){return r`<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 ta,sa,ia,ra;Jr=new WeakMap,ea.styles=a`:host { display: block; overflow-y: auto; position: relative; box-sizing: border-box; scrollbar-color: ${Cs.scrollbar.color}; border-top: var(--m3e-divider-thickness, 1px) solid transparent; border-bottom: var(--m3e-divider-thickness, 1px) solid transparent; outline: var(--m3e-focus-ring-color, ${Cs.color.secondary}); outline-width: var(--m3e-focus-ring-thickness, 0.25rem); outline-offset: calc(var(--m3e-focus-ring-thickness, 0.25rem) / 2); } :host([thin]) { scrollbar-width: ${Cs.scrollbar.thinWidth}; } :host(:not([thin])) { scrollbar-width: ${Cs.scrollbar.width}; } :host(:not(:focus-visible).-above) { border-top-color: var(--m3e-divider-color, ${Cs.color.outlineVariant}); } :host(:not(:focus-visible).-below) { border-bottom-color: var(--m3e-divider-color, ${Cs.color.outlineVariant}); } :host(:focus-visible) { outline-style: solid; animation: grow-shrink var(--m3e-focus-ring-duration, ${Cs.motion.duration.long2}); } @keyframes grow-shrink { 50% { outline-width: calc(var(--m3e-focus-ring-thickness, 0.25rem) * var(--m3e-focus-ring-factor, 2)); } } @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; } }`,o([Kt()],ea.prototype,"dividers",void 0),o([Kt({type:Boolean,reflect:!0})],ea.prototype,"thin",void 0),o([ut(40)],ea.prototype,"_updateScroll",null),ea=o([_t("m3e-scroll-container")],ea);let aa=class extends n{constructor(){super(...arguments),ta.add(this),sa.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),l(this,ta,"m",ra).call(this),null!==this.selectedIndex&&this.classList.contains("-no-animate")&&requestAnimationFrame(()=>{null!==this.selectedIndex&&this.classList.toggle("-no-animate",!1)}))}render(){return r`<slot @slotchange="${l(this,ta,"m",ia)}"></slot>`}};sa=new WeakMap,ta=new WeakSet,ia=function(e){const t=[...e.target.assignedElements({flatten:!0})];for(const e of l(this,sa,"f").filter(e=>!t.includes(e)))e.classList.remove("-before"),e.classList.remove("-after"),e.removeAttribute("inert");h(this,sa,t,"f"),l(this,ta,"m",ra).call(this)},ra=function(){const e=this.selectedIndex??l(this,sa,"f").length;for(let t=0;t<l(this,sa,"f").length;t++){const s=l(this,sa,"f")[t];s.classList.toggle("-before",t<e),s.classList.toggle("-after",t>e),s.toggleAttribute("inert",t!==e)}},aa.styles=a`:host { display: flex; position: relative; overflow: hidden; } ::slotted(*) { width: 100%; top: 0; transition: ${i(`inset-inline-start var(--m3e-slide-animation-duration, ${Cs.motion.duration.long2}) ${Cs.motion.easing.standard},\n visibility var(--m3e-slide-animation-duration, ${Cs.motion.duration.long2}) ${Cs.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; } }`,o([Kt({attribute:"selected-index",type:Number,reflect:!0})],aa.prototype,"selectedIndex",void 0),aa=o([_t("m3e-slide")],aa);const na=i(`var(--m3e-state-layer-hover-color, ${Cs.color.onSurface})`),oa=i(`var(--m3e-state-layer-hover-opacity, ${Cs.state.hoverStateLayerOpacity})`),la=i(`var(--m3e-state-layer-focus-color, ${Cs.color.onSurface})`),ha=i(`var(--m3e-state-layer-focus-opacity, ${Cs.state.focusStateLayerOpacity})`),ca=i(`var(--m3e-state-layer-duration, ${Cs.motion.duration.medium1})`),da=i(`var(--m3e-state-layer-easing, ${Cs.motion.easing.standard})`);var pa,ua,ma,fa,va;let ya=class extends(oi(tr(n,"none"))){constructor(){super(...arguments),pa.add(this),ua.set(this,new ot(this,{target:null,callback:e=>l(this,pa,"m",fa).call(this,e)})),ma.set(this,new nt(this,{target:null,callback:(e,t)=>l(this,pa,"m",va).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),l(this,ua,"f").observe(e),l(this,ma,"f").observe(e)}detach(){this.control&&(l(this,ua,"f").unobserve(this.control),l(this,ma,"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 r`<div class="layer"></div>`}};ua=new WeakMap,ma=new WeakMap,pa=new WeakSet,fa=function(e){this.disabled||this.disableHover||(e?this.show("hover"):this.hide("hover"))},va=function(e){this.disabled||(e?this.show("focused"):this.hide("focused"))},ya.styles=a`: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 ${ca} ${da}`)}; } .layer.focused { background-color: color-mix(in srgb, ${la} ${ha}, transparent); } .layer.hover { background-color: color-mix(in srgb, ${na} ${oa}, transparent); } @media (prefers-reduced-motion) { .layer { transition: none; } } @media (forced-colors: active) { .layer { display: none; } }`,o([Yt(".layer")],ya.prototype,"_layer",void 0),o([Kt({type:Boolean,reflect:!0})],ya.prototype,"disabled",void 0),o([Kt({attribute:"disable-hover",type:Boolean,reflect:!0})],ya.prototype,"disableHover",void 0),ya=o([_t("m3e-state-layer")],ya);let ga=class extends n{render(){return r`<span class="base"><slot></slot></span>`}};var ba,xa,wa,$a,ka,Ea,_a,Sa;ga.styles=a`: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; }`,ga=o([_t("m3e-text-overflow")],ga);let Aa=Sa=class extends n{constructor(){super(),ba.add(this),xa.set(this,"m3e-text-highlight-"+Sa.__nextId++),wa.set(this,new Array),$a.set(this,null),this.disabled=!1,this.term="",this.caseSensitive=!1,this.isSupported&&(h(this,$a,new CSSStyleSheet,"f"),l(this,$a,"f").replaceSync(a`::highlight(${i(l(this,xa,"f"))}) { background-color: var(--m3e-text-highlight-container-color, ${Cs.color.secondaryContainer}); color: var(--m3e-text-highlight-color, ${Cs.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 l(this,wa,"f")}firstUpdated(e){super.firstUpdated(e),this.shadowRoot&&l(this,$a,"f")&&!this.shadowRoot.adoptedStyleSheets.includes(l(this,$a,"f"))&&this.shadowRoot.adoptedStyleSheets.push(l(this,$a,"f"))}updated(e){super.updated(e),(e.has("term")||e.has("caseSensitive")||e.has("disabled"))&&l(this,ba,"m",_a).call(this)}render(){return r`<slot @slotchange="${l(this,ba,"m",_a)}"></slot>`}};xa=new WeakMap,wa=new WeakMap,$a=new WeakMap,ba=new WeakSet,ka=function(e){return!/^(\\s|\\n)+$/gi.test(e.data)},Ea=function e(t,s){t instanceof HTMLSlotElement?t.assignedElements({flatten:!0}).forEach(t=>{switch(t.nodeType){case Node.TEXT_NODE:l(this,ba,"m",ka).call(this,t)&&s.push(t);break;case Node.ELEMENT_NODE:l(this,ba,"m",e).call(this,t,s)}}):t.childNodes.forEach(t=>{switch(t.nodeType){case Node.TEXT_NODE:l(this,ba,"m",ka).call(this,t)&&s.push(t);break;case Node.ELEMENT_NODE:l(this,ba,"m",e).call(this,t,s)}})},_a=function(){if(!this.isSupported||!this.isConnected)return;if(CSS.highlights.delete(l(this,xa,"f")),l(this,wa,"f").length=0,this.disabled)return;if(!this.term)return void this.dispatchEvent(new CustomEvent("highlight",{detail:[...l(this,wa,"f")],bubbles:!1,composed:!1}));const e=new Array;l(this,ba,"m",Ea).call(this,this,e);const t=this.caseSensitive?this.term:this.term.toLowerCase();h(this,wa,e.map(e=>({el:e,text:(this.caseSensitive?e.textContent:e.textContent?.toLowerCase())??""})).map(({el:e,text:s})=>{const i=new Array;let r=0;for(;r<s.length;){const e=s.indexOf(t,r);if(-1===e)break;i.push(e),r=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"),l(this,wa,"f").length>0&&CSS.highlights.set(l(this,xa,"f"),new Highlight(...l(this,wa,"f"))),this.dispatchEvent(new CustomEvent("highlight",{detail:[...l(this,wa,"f")],bubbles:!1,composed:!1}))},Aa.styles=a`:host { display: contents; }`,Aa.__nextId=0,o([Kt({type:Boolean,reflect:!0})],Aa.prototype,"disabled",void 0),o([Kt()],Aa.prototype,"term",void 0),o([Kt({attribute:"case-sensitive",type:Boolean})],Aa.prototype,"caseSensitive",void 0),Aa=Sa=o([_t("m3e-text-highlight")],Aa);export{pr as ActionElementBase,De as AnimationLoopController,Et as AttachInternals,Gt as Checked,es as CheckedIndeterminate,Qs as ConstraintValidation,Cs as DesignToken,ls as Dirty,Ms as Disabled,Hs as DisabledInteractive,Gs as EventAttribute,nt as FocusController,ei as Focusable,js as FormAssociated,ii as FormSubmitter,ot as HoverController,oi as HtmlFor,lt as IntersectionController,li as KeyboardClick,Us as Labelled,Zi as LinkButton,ht as LongPressController,ur as M3eCollapsibleElement,Lr as M3eElevationElement,Dr as M3eFocusRingElement,Ur as M3ePseudoCheckboxElement,Nr as M3ePseudoRadioElement,Gr as M3eRippleElement,ea as M3eScrollContainerElement,aa as M3eSlideElement,ya as M3eStateLayerElement,Aa as M3eTextHighlightElement,ga as M3eTextOverflowElement,ct as MutationController,dt as PressedController,Yi as ReadOnly,Gi as Required,er as RequiredConstraintValidation,pt as ResizeController,tr as Role,mt as ScrollController,ss as Selected,ds as Touched,ir as Vertical,as as checkOrSelect,Ne as computeLineCount,ut as debounce,Is as defaultValue,Ie as focusWhenReady,Re as forcedColorsActive,Ns as formValue,Qe as generateClipPaths,Ge as getTextContent,Je as guid,et as hasAssignedNodes,xt as hasKeys,tt as interceptProperty,wt as internals,$t as isAttachInternalsMixin,Jt as isCheckedIndeterminateMixin,Qt as isCheckedMixin,rs as isCheckedOrSelected,is as isCheckedOrSelectedMixin,Zs as isConstraintValidationMixin,ns as isDirtyMixin,zs as isDisabledInteractiveMixin,Ls as isDisabledMixin,Rs as isFormAssociatedMixin,ti as isFormSubmitterMixin,ri as isHtmlForMixin,Os as isLabelledMixin,ji as isLinkButtonMixin,Ki as isReadOnlyMixin,Ji as isRequiredConstraintValidationMixin,Qi as isRequiredMixin,ts as isSelectedMixin,hs as isTouchedMixin,sr as isVerticalMixin,st as prefersReducedMotion,Vi as renderPseudoLink,it as resolveElementById,rt as resolveFragmentUrl,bt as safeStyleMap,at as scrollIntoViewIfNeeded,Fs as updateLabels,Xs as validate};
56
56
  //# sourceMappingURL=index.min.js.map