@m3e/all 1.0.0 → 1.0.1

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
@@ -341,7 +341,7 @@ const ho=e=>e??Yr,po=Symbol("renderPseudoLink");function uo(e){return Ht(e,"down
341
341
  :host([disabled]) {
342
342
  color: color-mix(in srgb, var(--m3e-radio-disabled-icon-color, ${Xi.color.onSurface}) 38%, transparent);
343
343
  }
344
- `,ds=ne([Ft("m3e-pseudo-radio")],ds);const hs=s(`var(--m3e-ripple-color, ${Xi.color.onSurface})`),ps=s(`var(--m3e-ripple-opacity, ${Xi.state.pressedStateLayerOpacity})`),us=s(`var(--m3e-ripple-enter-duration, ${Xi.motion.duration.long4})`),ms=s(`var(--m3e-ripple-exit-duration, ${Xi.motion.duration.short2})`),fs=s("var(--m3e-ripple-scale-factor, 2.5)");var vs,bs,ys,gs,$s,ws;let _s=class extends(kr(_o(se,"none"))){constructor(){super(...arguments),vs.add(this),bs.set(this,null),ys.set(this,new Tt(this,{target:null,minPressedDuration:150,isPressedKey:e=>" "===e||!this.disableEnter&&"Enter"===e,callback:(e,{x:t,y:i})=>le(this,vs,"m",ws).call(this,e,t,i)})),this.disabled=!1,this.disableEnter=!1,this.centered=!1,this.unbounded=!1,this.radius=null,this.trigger=null}get visible(){return null!==le(this,bs,"f")}show(e,t,i=!1){le(this,vs,"m",gs).call(this);const r=this.getBoundingClientRect();this.centered&&(e=r.left+r.width/2,t=r.top+r.height/2);let o=this.radius;if(!o||isNaN(o)){const i=Math.max(Math.abs(e-r.left),Math.abs(e-r.right)),s=Math.max(Math.abs(t-r.top),Math.abs(t-r.bottom));o=Math.sqrt(i*i+s*s)}const s=e-r.left,a=t-r.top;ce(this,bs,document.createElement("div")),le(this,bs,"f").classList.add("ripple"),i&&le(this,bs,"f").classList.add("persistent"),le(this,bs,"f").style.left=s-o+"px",le(this,bs,"f").style.top=a-o+"px",le(this,bs,"f").style.width=2*o+"px",le(this,bs,"f").style.height=2*o+"px",le(this,bs,"f").addEventListener("animationend",()=>le(this,vs,"m",$s).call(this,i),{once:!0}),le(this,bs,"f").addEventListener("transitionend",()=>le(this,vs,"m",gs).call(this),{once:!0}),this.shadowRoot?.appendChild(le(this,bs,"f"))}hide(){le(this,bs,"f")?.classList.add("exit")}attach(e){super.attach(e),le(this,ys,"f").observe(e)}detach(){this.control&&le(this,ys,"f").unobserve(this.control),super.detach()}connectedCallback(){this.ariaHidden="true",super.connectedCallback()}disconnectedCallback(){super.disconnectedCallback(),le(this,vs,"m",gs).call(this)}updated(e){super.updated(e),e.has("disabled")&&this.disabled&&this.hide()}};var Ss;bs=new WeakMap,ys=new WeakMap,vs=new WeakSet,gs=function(){le(this,bs,"f")?.remove(),ce(this,bs,null)},$s=function(e){e?le(this,bs,"f")?.classList.add("pressed"):this.hide()},ws=function(e,t,i){this.disabled||(e?this.show(t,i,!0):this.hide())},_s.styles=a`
344
+ `,ds=ne([Ft("m3e-pseudo-radio")],ds);const hs=s(`var(--m3e-ripple-color, ${Xi.color.onSurface})`),ps=s(`var(--m3e-ripple-opacity, ${Xi.state.pressedStateLayerOpacity})`),us=s(`var(--m3e-ripple-enter-duration, ${Xi.motion.duration.long4})`),ms=s(`var(--m3e-ripple-exit-duration, ${Xi.motion.duration.short2})`),fs=s("var(--m3e-ripple-scale-factor, 2.5)");var vs,bs,ys,gs,$s,ws;let _s=class extends(kr(_o(se,"none"))){constructor(){super(...arguments),vs.add(this),bs.set(this,null),ys.set(this,new Tt(this,{target:null,minPressedDuration:150,isPressedKey:e=>" "===e,callback:(e,{x:t,y:i})=>le(this,vs,"m",ws).call(this,e,t,i)})),this.disabled=!1,this.centered=!1,this.unbounded=!1,this.radius=null,this.trigger=null}get visible(){return null!==le(this,bs,"f")}show(e,t,i=!1){le(this,vs,"m",gs).call(this);const r=this.getBoundingClientRect();this.centered&&(e=r.left+r.width/2,t=r.top+r.height/2);let o=this.radius;if(!o||isNaN(o)){const i=Math.max(Math.abs(e-r.left),Math.abs(e-r.right)),s=Math.max(Math.abs(t-r.top),Math.abs(t-r.bottom));o=Math.sqrt(i*i+s*s)}const s=e-r.left,a=t-r.top;ce(this,bs,document.createElement("div")),le(this,bs,"f").classList.add("ripple"),i&&le(this,bs,"f").classList.add("persistent"),le(this,bs,"f").style.left=s-o+"px",le(this,bs,"f").style.top=a-o+"px",le(this,bs,"f").style.width=2*o+"px",le(this,bs,"f").style.height=2*o+"px",le(this,bs,"f").addEventListener("animationend",()=>le(this,vs,"m",$s).call(this,i),{once:!0}),le(this,bs,"f").addEventListener("transitionend",()=>le(this,vs,"m",gs).call(this),{once:!0}),this.shadowRoot?.appendChild(le(this,bs,"f"))}hide(){le(this,bs,"f")?.classList.add("exit")}attach(e){super.attach(e),le(this,ys,"f").observe(e)}detach(){this.control&&le(this,ys,"f").unobserve(this.control),super.detach()}connectedCallback(){this.ariaHidden="true",super.connectedCallback()}disconnectedCallback(){super.disconnectedCallback(),le(this,vs,"m",gs).call(this)}updated(e){super.updated(e),e.has("disabled")&&this.disabled&&this.hide()}};var Ss;bs=new WeakMap,ys=new WeakMap,vs=new WeakSet,gs=function(){le(this,bs,"f")?.remove(),ce(this,bs,null)},$s=function(e){e?le(this,bs,"f")?.classList.add("pressed"):this.hide()},ws=function(e,t,i){this.disabled||(e?this.show(t,i,!0):this.hide())},_s.styles=a`
345
345
  :host {
346
346
  display: block;
347
347
  position: absolute;
@@ -408,7 +408,7 @@ const ho=e=>e??Yr,po=Symbol("renderPseudoLink");function uo(e){return Ht(e,"down
408
408
  display: none;
409
409
  }
410
410
  }
411
- `,ne([fi({type:Boolean,reflect:!0})],_s.prototype,"disabled",void 0),ne([fi({attribute:"disable-enter",type:Boolean,reflect:!0})],_s.prototype,"disableEnter",void 0),ne([fi({type:Boolean,reflect:!0})],_s.prototype,"centered",void 0),ne([fi({type:Boolean,reflect:!0})],_s.prototype,"unbounded",void 0),ne([fi({type:Number})],_s.prototype,"radius",void 0),ne([fi()],_s.prototype,"trigger",void 0),_s=ne([Ft("m3e-ripple")],_s);let Es=class extends se{constructor(){super(...arguments),Ss.set(this,()=>this._updateScroll()),this.dividers="above-below",this.thin=!1}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("scroll",le(this,Ss,"f"))}update(e){super.update(e),e.has("dividers")&&(this.removeEventListener("scroll",le(this,Ss,"f")),"none"!==this.dividers&&this.addEventListener("scroll",le(this,Ss,"f")))}render(){return W`<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 xs,Cs;Ss=new WeakMap,Es.styles=a`
411
+ `,ne([fi({type:Boolean,reflect:!0})],_s.prototype,"disabled",void 0),ne([fi({type:Boolean,reflect:!0})],_s.prototype,"centered",void 0),ne([fi({type:Boolean,reflect:!0})],_s.prototype,"unbounded",void 0),ne([fi({type:Number})],_s.prototype,"radius",void 0),ne([fi()],_s.prototype,"trigger",void 0),_s=ne([Ft("m3e-ripple")],_s);let Es=class extends se{constructor(){super(...arguments),Ss.set(this,()=>this._updateScroll()),this.dividers="above-below",this.thin=!1}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("scroll",le(this,Ss,"f"))}update(e){super.update(e),e.has("dividers")&&(this.removeEventListener("scroll",le(this,Ss,"f")),"none"!==this.dividers&&this.addEventListener("scroll",le(this,Ss,"f")))}render(){return W`<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 xs,Cs;Ss=new WeakMap,Es.styles=a`
412
412
  :host {
413
413
  display: block;
414
414
  overflow-y: auto;
@@ -494,7 +494,7 @@ const ho=e=>e??Yr,po=Symbol("renderPseudoLink");function uo(e){return Ht(e,"down
494
494
  transition: none;
495
495
  }
496
496
  }
497
- `,ne([function(e){return(t,i)=>{const{slot:r,selector:o}=e??{},s="slot"+(r?`[name=${r}]`:":not([name])");return vi(t,i,{get(){const t=this.renderRoot?.querySelector(s),i=t?.assignedElements(e)??[];return void 0===o?i:i.filter(e=>e.matches(o))}})}}({flatten:!0})],Ps.prototype,"_items",void 0),ne([fi({attribute:"selected-index",type:Number,reflect:!0})],Ps.prototype,"selectedIndex",void 0),Ps=ne([Ft("m3e-slide")],Ps);const ks=s(`var(--m3e-state-layer-hover-color, ${Xi.color.onSurface})`),As=s(`var(--m3e-state-layer-hover-opacity, ${Xi.state.hoverStateLayerOpacity})`),Os=s(`var(--m3e-state-layer-focus-color, ${Xi.color.onSurface})`),Ts=s(`var(--m3e-state-layer-focus-opacity, ${Xi.state.focusStateLayerOpacity})`),Us=s(`var(--m3e-state-layer-duration, ${Xi.motion.duration.medium1})`),Ms=s(`var(--m3e-state-layer-easing, ${Xi.motion.easing.standard})`);var Ls,zs,Rs,Ds,Is;let js=class extends(kr(_o(se,"none"))){constructor(){super(...arguments),Ls.add(this),zs.set(this,new Pt(this,{target:null,callback:e=>le(this,Ls,"m",Ds).call(this,e)})),Rs.set(this,new Ct(this,{target:null,callback:e=>le(this,Ls,"m",Is).call(this,e)})),this.disabled=!1}show(e){this._layer?.classList.toggle(e,!0)}hide(e){this._layer?.classList.toggle(e,!1)}attach(e){super.attach(e),le(this,zs,"f").observe(e),le(this,Rs,"f").observe(e)}detach(){this.control&&(le(this,zs,"f").unobserve(this.control),le(this,Rs,"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"))}render(){return W`<div class="layer"></div>`}};zs=new WeakMap,Rs=new WeakMap,Ls=new WeakSet,Ds=function(e){this.disabled||(e?this.show("hover"):this.hide("hover"))},Is=function(e){this.disabled||(e?this.show("focused"):this.hide("focused"))},js.styles=a`
497
+ `,ne([function(e){return(t,i)=>{const{slot:r,selector:o}=e??{},s="slot"+(r?`[name=${r}]`:":not([name])");return vi(t,i,{get(){const t=this.renderRoot?.querySelector(s),i=t?.assignedElements(e)??[];return void 0===o?i:i.filter(e=>e.matches(o))}})}}({flatten:!0})],Ps.prototype,"_items",void 0),ne([fi({attribute:"selected-index",type:Number,reflect:!0})],Ps.prototype,"selectedIndex",void 0),Ps=ne([Ft("m3e-slide")],Ps);const ks=s(`var(--m3e-state-layer-hover-color, ${Xi.color.onSurface})`),As=s(`var(--m3e-state-layer-hover-opacity, ${Xi.state.hoverStateLayerOpacity})`),Os=s(`var(--m3e-state-layer-focus-color, ${Xi.color.onSurface})`),Ts=s(`var(--m3e-state-layer-focus-opacity, ${Xi.state.focusStateLayerOpacity})`),Us=s(`var(--m3e-state-layer-duration, ${Xi.motion.duration.medium1})`),Ms=s(`var(--m3e-state-layer-easing, ${Xi.motion.easing.standard})`);var Ls,zs,Rs,Ds,Is;let js=class extends(kr(_o(se,"none"))){constructor(){super(...arguments),Ls.add(this),zs.set(this,new Pt(this,{target:null,callback:e=>le(this,Ls,"m",Ds).call(this,e)})),Rs.set(this,new Ct(this,{target:null,callback:(e,t)=>le(this,Ls,"m",Is).call(this,e&&t)})),this.disabled=!1}show(e){this._layer?.classList.toggle(e,!0)}hide(e){this._layer?.classList.toggle(e,!1)}attach(e){super.attach(e),le(this,zs,"f").observe(e),le(this,Rs,"f").observe(e)}detach(){this.control&&(le(this,zs,"f").unobserve(this.control),le(this,Rs,"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"))}render(){return W`<div class="layer"></div>`}};zs=new WeakMap,Rs=new WeakMap,Ls=new WeakSet,Ds=function(e){this.disabled||(e?this.show("hover"):this.hide("hover"))},Is=function(e){this.disabled||(e?this.show("focused"):this.hide("focused"))},js.styles=a`
498
498
  :host {
499
499
  display: block;
500
500
  }
@@ -1462,7 +1462,7 @@ function zh(e,t){return(t,i,r)=>((e,t,i)=>(i.configurable=!0,i.enumerable=!0,Ref
1462
1462
  :host([variant="outlined"]) .base {
1463
1463
  outline-style: solid;
1464
1464
  }
1465
- `];var Bh,qh,Fh,Vh,Kh;let Jh=class extends(Ar(fo(Er(wr(ir(Gi(qt(_o(se,"button"),!0)))))))){constructor(){super(),Bh.add(this),qh.set(this,e=>dh(this,Bh,"m",Fh).call(this,e)),this.variant="text",this.shape="rounded",this.size="small",this.toggle=!1,this.selected=!1,new Ut(this,{callback:()=>{this.grouped&&this._handleResize()}}),new Ct(this,{callback:e=>{!this.disabledInteractive&&this._base&&(e?dh(this,Bh,"m",Kh).call(this):this.grouped||this._base?.style.removeProperty("--_button-shape"))}}),new Tt(this,{isPressedKey:e=>" "===e||"Enter"===e,minPressedDuration:150,callback:e=>{if(!this.disabled&&!this.disabledInteractive){this.classList.toggle("-pressed",e),this.classList.toggle("-resting",!e);const t=this.closest("m3e-button-group");if(t){const i=this.getBoundingClientRect().width,r=[...t.querySelectorAll("m3e-button,m3e-icon-button")],o=r.indexOf(this);for(let t=0;t<r.length;t++){const s=r[t];t===o-1||t===o+1?(s.style.setProperty("--_adjacent-button-width",`${i}px`),s.classList.toggle("-adjacent-pressed",e)):(s.style.removeProperty("--_adjacent-button-width"),s.classList.remove("-adjacent-pressed"))}}}}})}get grouped(){return this.classList.contains("-grouped")}render(){return W`<div class="base">
1465
+ `];var Bh,qh,Fh,Vh,Kh;let Jh=class extends(Ar(fo(Er(wr(ir(Gi(qt(_o(se,"button"),!0)))))))){constructor(){super(),Bh.add(this),qh.set(this,e=>dh(this,Bh,"m",Fh).call(this,e)),this.variant="text",this.shape="rounded",this.size="small",this.toggle=!1,this.selected=!1,new Ut(this,{callback:()=>{this.grouped&&this._handleResize()}}),new Ct(this,{callback:e=>{!this.disabledInteractive&&this._base&&(e?dh(this,Bh,"m",Kh).call(this):this.grouped||this._base?.style.removeProperty("--_button-shape"))}}),new Tt(this,{isPressedKey:e=>" "===e,minPressedDuration:150,callback:e=>{if(!this.disabled&&!this.disabledInteractive){this.classList.toggle("-pressed",e),this.classList.toggle("-resting",!e);const t=this.closest("m3e-button-group");if(t){const i=this.getBoundingClientRect().width,r=[...t.querySelectorAll("m3e-button,m3e-icon-button")],o=r.indexOf(this);for(let t=0;t<r.length;t++){const s=r[t];t===o-1||t===o+1?(s.style.setProperty("--_adjacent-button-width",`${i}px`),s.classList.toggle("-adjacent-pressed",e)):(s.style.removeProperty("--_adjacent-button-width"),s.classList.remove("-adjacent-pressed"))}}}}})}get grouped(){return this.classList.contains("-grouped")}render(){return W`<div class="base">
1466
1466
  <m3e-elevation class="elevation" ?disabled="${this.disabled||this.disabledInteractive}"></m3e-elevation>
1467
1467
  <m3e-state-layer class="state-layer" ?disabled="${this.disabled||this.disabledInteractive}"></m3e-state-layer>
1468
1468
  <m3e-focus-ring class="focus-ring" ?disabled="${this.disabled}"></m3e-focus-ring>
@@ -1520,7 +1520,7 @@ const yp={attribute:!0,type:String,converter:mp,reflect:!1,hasChanged:fp},gp=(e=
1520
1520
  * @license
1521
1521
  * Copyright 2017 Google LLC
1522
1522
  * SPDX-License-Identifier: BSD-3-Clause
1523
- */var _p,Sp,Ep,xp;let Cp=class extends(_o(se,"group")){constructor(){super(...arguments),_p.add(this),Sp.set(this,new Tt(this,{target:null,capture:!0,minPressedDuration:150,isPressedKey:e=>" "===e||"Enter"===e,callback:e=>{this._base&&(e&&"connected"!==this.variant?(this._base.classList.add("pressed"),this._base.style.setProperty("--_button-group-width",`${this._base.getBoundingClientRect().width}px`)):(this._base.style.removeProperty("--_button-group-width"),this._base.classList.remove("pressed")))}})),this.variant="standard",this.size="small",this.multi=!1}connectedCallback(){super.connectedCallback(),this.hasAttribute("disable-role")&&(this.role=null)}disconnectedCallback(){super.disconnectedCallback(),this._base?.style.removeProperty("--_button-group-width"),this._base?.classList.remove("pressed")}update(e){super.update(e),(e.has("multi")||e.has("variant"))&&Yh(this,_p,"m",Ep).call(this),e.has("variant")&&this._base?.style.removeProperty("--_button-group-width")}render(){return W`<div class="base">
1523
+ */var _p,Sp,Ep,xp;let Cp=class extends(_o(se,"group")){constructor(){super(...arguments),_p.add(this),Sp.set(this,new Tt(this,{target:null,capture:!0,minPressedDuration:150,isPressedKey:e=>" "===e,callback:e=>{this._base&&(e&&"connected"!==this.variant?(this._base.classList.add("pressed"),this._base.style.setProperty("--_button-group-width",`${this._base.getBoundingClientRect().width}px`)):(this._base.style.removeProperty("--_button-group-width"),this._base.classList.remove("pressed")))}})),this.variant="standard",this.size="small",this.multi=!1}connectedCallback(){super.connectedCallback(),this.hasAttribute("disable-role")&&(this.role=null)}disconnectedCallback(){super.disconnectedCallback(),this._base?.style.removeProperty("--_button-group-width"),this._base?.classList.remove("pressed")}update(e){super.update(e),(e.has("multi")||e.has("variant"))&&Yh(this,_p,"m",Ep).call(this),e.has("variant")&&this._base?.style.removeProperty("--_button-group-width")}render(){return W`<div class="base">
1524
1524
  <slot @slotchange="${Yh(this,_p,"m",Ep)}" @change="${Yh(this,_p,"m",xp)}"></slot>
1525
1525
  </div>`}};
1526
1526
  /**
@@ -1978,7 +1978,7 @@ function Qp(e,t){return(t,i,r)=>((e,t,i)=>(i.configurable=!0,i.enumerable=!0,Ref
1978
1978
  :host([actionable][variant="${s(e)}"][disabled-interactive]) ::slotted(video) {
1979
1979
  opacity: ${iu[e].disabled.imageOpacity};
1980
1980
  }
1981
- `}const su=[ou("filled"),ou("elevated"),ou("outlined")];var au,nu,lu;let cu=class extends(Ar(fo(Er(wr(ir(Gi(qt(se),!0))))))){constructor(){super(),au.add(this),nu.set(this,e=>kp(this,au,"m",lu).call(this,e)),this.inline=!1,this.actionable=!1,this.variant="filled",this.orientation="vertical",new Tt(this,{isPressedKey:e=>" "===e||"Enter"===e,callback:e=>{!this.actionable||this.disabled||this.disabledInteractive||this._base?.classList.toggle("pressed",e)}})}connectedCallback(){this.hasAttribute("actionable")&&(this.role="button"),super.connectedCallback(),this.addEventListener("click",kp(this,nu,"f"))}disconnectedCallback(){super.disconnectedCallback(),this._base?.classList.toggle("pressed",!1),this.removeEventListener("click",kp(this,nu,"f"))}render(){return W`<div class="base">
1981
+ `}const su=[ou("filled"),ou("elevated"),ou("outlined")];var au,nu,lu;let cu=class extends(Ar(fo(Er(wr(ir(Gi(qt(se),!0))))))){constructor(){super(),au.add(this),nu.set(this,e=>kp(this,au,"m",lu).call(this,e)),this.inline=!1,this.actionable=!1,this.variant="filled",this.orientation="vertical",new Tt(this,{isPressedKey:e=>" "===e,callback:e=>{!this.actionable||this.disabled||this.disabledInteractive||this._base?.classList.toggle("pressed",e)}})}connectedCallback(){this.hasAttribute("actionable")&&(this.role="button"),super.connectedCallback(),this.addEventListener("click",kp(this,nu,"f"))}disconnectedCallback(){super.disconnectedCallback(),this._base?.classList.toggle("pressed",!1),this.removeEventListener("click",kp(this,nu,"f"))}render(){return W`<div class="base">
1982
1982
  <m3e-elevation
1983
1983
  class="elevation"
1984
1984
  ?disabled="${!this.actionable||this.disabled||this.disabledInteractive}"
@@ -2034,7 +2034,7 @@ const Mu={attribute:!0,type:String,converter:Au,reflect:!1,hasChanged:Ou},Lu=(e=
2034
2034
  function zu(e,t){return(t,i,r)=>((e,t,i)=>(i.configurable=!0,i.enumerable=!0,Reflect.decorate&&"object"!=typeof t&&Object.defineProperty(e,t,i),i))(t,i,{get(){return(t=>t.renderRoot?.querySelector(e)??null)(this)}})}var Ru,Du,Iu,ju,Hu,Nu;let Wu=class extends(ar(wo(Ai(Ui(go(yr(wi(ur(Ar(wr(Gi(qt(_o(se,"checkbox")))),!1)))))))))){constructor(){super(...arguments),Ru.add(this),Du.set(this,e=>hu(this,Ru,"m",Nu).call(this,e)),Iu.set(this,new Pt(this,{target:null,callback:e=>{this.disabled||(e?this._stateLayer?.show("hover"):this._stateLayer?.hide("hover"))}})),ju.set(this,new Tt(this,{target:null,minPressedDuration:150,callback:e=>{this.disabled||(e?this._ripple?.show(0,0,!0):this._ripple?.hide())}})),this.value="on"}get[(Du=new WeakMap,Iu=new WeakMap,ju=new WeakMap,Ru=new WeakSet,nr)](){return!this.checked||this.indeterminate?null:this.value}connectedCallback(){super.connectedCallback(),this.addEventListener("click",hu(this,Du,"f"));for(const e of this.labels)hu(this,Iu,"f").observe(e),hu(this,ju,"f").observe(e)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",hu(this,Du,"f"));for(const e of this.labels)hu(this,Iu,"f").unobserve(e),hu(this,ju,"f").unobserve(e)}firstUpdated(e){super.firstUpdated(e),[this._focusRing,this._stateLayer,this._ripple].forEach(e=>e?.attach(this))}render(){return W`<div class="base">
2035
2035
  <m3e-state-layer class="state-layer" ?disabled="${this.disabled}"></m3e-state-layer>
2036
2036
  <m3e-focus-ring class="focus-ring" ?disabled="${this.disabled}"></m3e-focus-ring>
2037
- <m3e-ripple class="ripple" centered disable-enter ?disabled="${this.disabled}"></m3e-ripple>
2037
+ <m3e-ripple class="ripple" centered ?disabled="${this.disabled}"></m3e-ripple>
2038
2038
  <div class="touch" aria-hidden="true"></div>
2039
2039
  <div class="wrapper" aria-hidden="true">${hu(this,Ru,"m",Hu).call(this)}</div>
2040
2040
  </div>`}};
@@ -3712,7 +3712,7 @@ function j$(e,t){return(t,i,r)=>((e,t,i)=>(i.configurable=!0,i.enumerable=!0,Ref
3712
3712
  transparent
3713
3713
  );
3714
3714
  }
3715
- `}const V$=[F$("primary"),F$("secondary"),F$("tertiary"),F$("primary-container"),F$("secondary-container"),F$("tertiary-container"),F$("surface")];var K$,J$;let X$=class extends(Ar(fo(Er(wr(ir(Gi(qt(_o(se,"button"),!0)))))))){constructor(){super(),K$.add(this),this.variant="primary-container",this.lowered=!1,this.size="medium",this.extended=!1,new Tt(this,{isPressedKey:e=>" "===e||"Enter"===e,callback:e=>{this.disabled||this.disabledInteractive||(this._base?.classList.toggle("pressed",e),this._base?.classList.toggle("resting",!e))}})}disconnectedCallback(){super.disconnectedCallback(),this._base?.classList.toggle("pressed",!1),this._base?.classList.toggle("resting",!1)}firstUpdated(e){super.firstUpdated(e),[this._elevation,this._focusRing,this._stateLayer,this._ripple].forEach(e=>e?.attach(this))}updated(e){super.updated(e),(e.has("disabled")&&this.disabled||e.has("disabledInteractive")&&this.disabledInteractive)&&(this._base?.classList.toggle("pressed",!1),this._base?.classList.toggle("resting",!1))}render(){return W`<div class="base">
3715
+ `}const V$=[F$("primary"),F$("secondary"),F$("tertiary"),F$("primary-container"),F$("secondary-container"),F$("tertiary-container"),F$("surface")];var K$,J$;let X$=class extends(Ar(fo(Er(wr(ir(Gi(qt(_o(se,"button"),!0)))))))){constructor(){super(),K$.add(this),this.variant="primary-container",this.lowered=!1,this.size="medium",this.extended=!1,new Tt(this,{isPressedKey:e=>" "===e,callback:e=>{this.disabled||this.disabledInteractive||(this._base?.classList.toggle("pressed",e),this._base?.classList.toggle("resting",!e))}})}disconnectedCallback(){super.disconnectedCallback(),this._base?.classList.toggle("pressed",!1),this._base?.classList.toggle("resting",!1)}firstUpdated(e){super.firstUpdated(e),[this._elevation,this._focusRing,this._stateLayer,this._ripple].forEach(e=>e?.attach(this))}updated(e){super.updated(e),(e.has("disabled")&&this.disabled||e.has("disabledInteractive")&&this.disabledInteractive)&&(this._base?.classList.toggle("pressed",!1),this._base?.classList.toggle("resting",!1))}render(){return W`<div class="base">
3716
3716
  <m3e-elevation class="elevation" ?disabled="${this.disabled||this.disabledInteractive}"></m3e-elevation>
3717
3717
  <m3e-state-layer class="state-layer" ?disabled="${this.disabled||this.disabledInteractive}"></m3e-state-layer>
3718
3718
  <m3e-focus-ring class="focus-ring" ?disabled="${this.disabled}"></m3e-focus-ring>
@@ -3904,7 +3904,7 @@ function Sw(e,t){return(t,i,r)=>((e,t,i)=>(i.configurable=!0,i.enumerable=!0,Ref
3904
3904
  color: GrayText;
3905
3905
  }
3906
3906
  }
3907
- `,Y$([Sw(".elevation")],Pw.prototype,"_elevation",void 0),Y$([Sw(".focus-ring")],Pw.prototype,"_focusRing",void 0),Y$([Sw(".state-layer")],Pw.prototype,"_stateLayer",void 0),Y$([Sw(".ripple")],Pw.prototype,"_ripple",void 0),Pw=Y$([Q$("m3e-fab-menu-item")],Pw);let Ww=class extends(_o(se,"menu")){constructor(){super(...arguments),kw.add(this),Aw.set(this,void 0),Ow.set(this,void 0),Tw.set(this,void 0),Uw.set(this,(new mn).withWrap().withHomeAndEnd().withVerticalOrientation()),Mw.set(this,e=>G$(this,kw,"m",Iw).call(this,e)),Lw.set(this,e=>G$(this,kw,"m",jw).call(this,e)),zw.set(this,new Lt(this,{target:null,callback:()=>this.hide()})),Rw.set(this,e=>{"closed"===e.newState?(G$(this,Tw,"f")?.call(this),Z$(this,Tw,void 0)):setTimeout(()=>{G$(this,Uw,"f").setActiveItem(G$(this,Uw,"f").items.find(e=>!e.disabled))},40)}),this.variant="primary"}get isOpen(){return void 0!==G$(this,Ow,"f")}async show(e){G$(this,Ow,"f")&&G$(this,Ow,"f")!==e&&this.hide(),G$(this,Tw,"f")?.call(this),Z$(this,Tw,await gc(this,e,{position:"ltr"===Pc.current?"top-end":"top-start",inline:!0,shift:!0,flip:!0,offset:8},(e,t,i)=>{this.classList.toggle("-right",i.includes("end")),this.classList.toggle("-left",i.includes("start")),this.style.left=`${e}px`,this.style.top=`${t}px`})),this.showPopover(),Z$(this,Ow,e),G$(this,Ow,"f").ariaExpanded="true",G$(this,zw,"f").observe(G$(this,Ow,"f")),G$(this,kw,"m",Hw).call(this)}hide(e=!1){G$(this,Ow,"f")&&(G$(this,Ow,"f").ariaExpanded="false",e&&G$(this,Ow,"f").focus(),G$(this,kw,"m",Nw).call(this),G$(this,zw,"f").unobserve(G$(this,Ow,"f")),Z$(this,Ow,void 0)),this.hidePopover()}async toggle(e){G$(this,Ow,"f")?this.hide():await this.show(e)}connectedCallback(){super.connectedCallback(),this.tabIndex=-1,this.setAttribute("popover","manual"),this.classList.add("-no-animate"),this.addEventListener("keydown",G$(this,Mw,"f")),this.addEventListener("toggle",G$(this,Rw,"f")),document.addEventListener("click",G$(this,Lw,"f"))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("keydown",G$(this,Mw,"f")),this.removeEventListener("toggle",G$(this,Rw,"f")),document.removeEventListener("click",G$(this,Lw,"f"))}firstUpdated(e){super.firstUpdated(e),requestAnimationFrame(()=>this.classList.remove("-no-animate"))}render(){return W`<div class="base"><slot @slotchange="${G$(this,kw,"m",Dw)}"></slot></div>`}};var Bw,qw,Fw;Aw=new WeakMap,Ow=new WeakMap,Tw=new WeakMap,Uw=new WeakMap,Mw=new WeakMap,Lw=new WeakMap,zw=new WeakMap,Rw=new WeakMap,kw=new WeakSet,Dw=function(){const{added:e}=G$(this,Uw,"f").setItems([...this.querySelectorAll("m3e-fab-menu-item")]);G$(this,Uw,"f").activeItem||G$(this,Uw,"f").updateActiveItem(e.find(e=>!e.disabled))},Iw=function(e){switch(e.key){case"Tab":this.hide();break;case"Escape":e.shiftKey||e.ctrlKey||this.hide(!0);break;default:G$(this,Uw,"f").onKeyDown(e)}},jw=function(e){e.composedPath().some(e=>e instanceof Pw||e===G$(this,Ow,"f"))||this.hide()},Hw=function(){const e=G$(this,Ow,"f")?.closest("m3e-fab");e&&(Z$(this,Aw,e.tabIndex),e.addEventListener("keydown",G$(this,Mw,"f")),G$(this,Uw,"f").setItems([...G$(this,Uw,"f").items,e]))},Nw=function(){const e=G$(this,Ow,"f")?.closest("m3e-fab");e&&(void 0!==G$(this,Aw,"f")&&(e.tabIndex=G$(this,Aw,"f")),e.removeEventListener("keydown",G$(this,Mw,"f")),G$(this,Uw,"f").setItems([...G$(this,Uw,"f").items.filter(t=>t!==e)]))},Ww.styles=a`
3907
+ `,Y$([Sw(".elevation")],Pw.prototype,"_elevation",void 0),Y$([Sw(".focus-ring")],Pw.prototype,"_focusRing",void 0),Y$([Sw(".state-layer")],Pw.prototype,"_stateLayer",void 0),Y$([Sw(".ripple")],Pw.prototype,"_ripple",void 0),Pw=Y$([Q$("m3e-fab-menu-item")],Pw);let Ww=class extends(_o(se,"menu")){constructor(){super(...arguments),kw.add(this),Aw.set(this,void 0),Ow.set(this,void 0),Tw.set(this,void 0),Uw.set(this,(new mn).withWrap().withHomeAndEnd().withVerticalOrientation()),Mw.set(this,e=>G$(this,kw,"m",Iw).call(this,e)),Lw.set(this,e=>G$(this,kw,"m",jw).call(this,e)),zw.set(this,new Lt(this,{target:null,callback:()=>this.hide()})),Rw.set(this,e=>{"closed"===e.newState?(G$(this,Tw,"f")?.call(this),Z$(this,Tw,void 0)):setTimeout(()=>{G$(this,Uw,"f").setActiveItem(G$(this,Uw,"f").items.find(e=>!e.disabled))},40)}),this.variant="primary"}get isOpen(){return void 0!==G$(this,Ow,"f")}async show(e){G$(this,Ow,"f")&&G$(this,Ow,"f")!==e&&this.hide(),G$(this,Tw,"f")?.call(this),Z$(this,Tw,await gc(this,e,{position:"ltr"===Pc.current?"top-end":"top-start",inline:!0,shift:!0,flip:!0,offset:8},(e,t,i)=>{this.classList.toggle("-right",i.includes("end")),this.classList.toggle("-left",i.includes("start")),this.style.left=`${e}px`,this.style.top=`${t}px`})),this.showPopover(),Z$(this,Ow,e),G$(this,Ow,"f").ariaExpanded="true",G$(this,zw,"f").observe(G$(this,Ow,"f")),G$(this,kw,"m",Hw).call(this)}hide(e=!1){G$(this,Tw,"f")?.call(this),Z$(this,Tw,void 0),G$(this,Ow,"f")&&(G$(this,Ow,"f").ariaExpanded="false",e&&G$(this,Ow,"f").focus(),G$(this,kw,"m",Nw).call(this),G$(this,zw,"f").unobserve(G$(this,Ow,"f")),Z$(this,Ow,void 0)),this.hidePopover()}async toggle(e){G$(this,Ow,"f")?this.hide():await this.show(e)}connectedCallback(){super.connectedCallback(),this.tabIndex=-1,this.setAttribute("popover","manual"),this.classList.add("-no-animate"),this.addEventListener("keydown",G$(this,Mw,"f")),this.addEventListener("toggle",G$(this,Rw,"f")),document.addEventListener("click",G$(this,Lw,"f"))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("keydown",G$(this,Mw,"f")),this.removeEventListener("toggle",G$(this,Rw,"f")),document.removeEventListener("click",G$(this,Lw,"f"))}firstUpdated(e){super.firstUpdated(e),requestAnimationFrame(()=>this.classList.remove("-no-animate"))}render(){return W`<div class="base"><slot @slotchange="${G$(this,kw,"m",Dw)}"></slot></div>`}};var Bw,qw,Fw;Aw=new WeakMap,Ow=new WeakMap,Tw=new WeakMap,Uw=new WeakMap,Mw=new WeakMap,Lw=new WeakMap,zw=new WeakMap,Rw=new WeakMap,kw=new WeakSet,Dw=function(){const{added:e}=G$(this,Uw,"f").setItems([...this.querySelectorAll("m3e-fab-menu-item")]);G$(this,Uw,"f").activeItem||G$(this,Uw,"f").updateActiveItem(e.find(e=>!e.disabled))},Iw=function(e){switch(e.key){case"Tab":this.hide();break;case"Escape":e.shiftKey||e.ctrlKey||this.hide(!0);break;default:G$(this,Uw,"f").onKeyDown(e)}},jw=function(e){e.composedPath().some(e=>e instanceof Pw||e===G$(this,Ow,"f"))||this.hide()},Hw=function(){const e=G$(this,Ow,"f")?.closest("m3e-fab");e&&(Z$(this,Aw,e.tabIndex),e.addEventListener("keydown",G$(this,Mw,"f")),G$(this,Uw,"f").setItems([...G$(this,Uw,"f").items,e]))},Nw=function(){const e=G$(this,Ow,"f")?.closest("m3e-fab");e&&(void 0!==G$(this,Aw,"f")&&(e.tabIndex=G$(this,Aw,"f")),e.removeEventListener("keydown",G$(this,Mw,"f")),G$(this,Uw,"f").setItems([...G$(this,Uw,"f").items.filter(t=>t!==e)]))},Ww.styles=a`
3908
3908
  :host {
3909
3909
  position: absolute;
3910
3910
  flex-direction: column;
@@ -4102,7 +4102,7 @@ function E_(e,t){return(t,i,r)=>((e,t,i)=>(i.configurable=!0,i.enumerable=!0,Ref
4102
4102
  * Copyright (c) 2025 matraic
4103
4103
  * See LICENSE file in the project root for full license text.
4104
4104
  */
4105
- function Z_(e,t,i,r){var o,s=arguments.length,a=s<3?t:r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,r);else for(var n=e.length-1;n>=0;n--)(o=e[n])&&(a=(s<3?o(a):s>3?o(t,i,a):o(t,i))||a);return s>3&&a&&Object.defineProperty(t,i,a),a}C_=new WeakMap,P_=new WeakMap,k_=new WeakMap,A_=new WeakMap,O_=new WeakMap,T_=new WeakMap,U_=new WeakMap,M_=new WeakMap,L_=new WeakMap,z_=new WeakMap,R_=new WeakMap,x_=new WeakSet,D_=function(){return void 0!==Gw(this,C_,"f")?.shouldLabelFloat?!0===Gw(this,C_,"f").shouldLabelFloat:"string"==typeof Gw(this,C_,"f")?.value&&Gw(this,C_,"f").value.length>0},I_=function(e){e.stopImmediatePropagation(),e.stopPropagation()},j_=function(e){const t=e.target.assignedElements({flatten:!0});this.classList.toggle("-with-label",t.length>0),this._pseudoLabel=t[0]?.textContent??""},H_=function(e){this.classList.toggle("-with-prefix",Po(e.target)),Gw(this,O_,"f").observe(this._prefix)},N_=function(e){this.classList.toggle("-with-suffix",Po(e.target))},W_=function(){"outlined"===this.variant&&this._base.style.setProperty("--_prefix-width",`${this._prefix.clientWidth}px`)},B_=function(e){Gw(this,x_,"m",J_).call(this,Xw(e.target))},q_=function(e){!Gw(this,C_,"f")||Gw(this,L_,"f")||Gw(this,C_,"f").disabled||(Gw(this,C_,"f").onContainerClick?Gw(this,C_,"f").onContainerClick(e):Gw(this,C_,"f").focus())},F_=function(){this._invalid=!0,this.notifyControlStateChange()},V_=function(){this._invalid=!(Gw(this,C_,"f")?.checkValidity?.()??1),this.notifyControlStateChange()},K_=function(){this._invalid=!1,this.notifyControlStateChange()},J_=function(e){Gw(this,C_,"f")!==e&&(Gw(this,C_,"f")&&(Gw(this,z_,"f")&&zn.removeDescription(Gw(this,C_,"f"),Gw(this,z_,"f")),Gw(this,R_,"f")&&zn.removeDescription(Gw(this,C_,"f"),Gw(this,R_,"f")),Gw(this,A_,"f").unobserve(Gw(this,C_,"f")),Gw(this,C_,"f").removeEventListener("invalid",Gw(this,k_,"f")),Gw(this,C_,"f").form?.removeEventListener("reset",Gw(this,P_,"f"))),Zw(this,C_,e),Gw(this,C_,"f")&&(Gw(this,A_,"f").observe(Gw(this,C_,"f")),Gw(this,C_,"f").addEventListener("invalid",Gw(this,k_,"f")),Gw(this,C_,"f").form?.addEventListener("reset",Gw(this,P_,"f")),Gw(this,C_,"f").removeAttribute("aria-invalid"),Gw(this,z_,"f")&&zn.describe(Gw(this,C_,"f"),Gw(this,z_,"f")),this.notifyControlStateChange()))},X_=function(){const e=xo(this._hint,!0);e!==Gw(this,z_,"f")&&(Gw(this,C_,"f")&&Gw(this,z_,"f")&&zn.removeDescription(Gw(this,C_,"f"),Gw(this,z_,"f")),Zw(this,z_,e),Gw(this,C_,"f")&&Gw(this,z_,"f")&&zn.describe(Gw(this,C_,"f"),Gw(this,z_,"f")))},Y_=function(){const e=xo(this._error,!0);e!==Gw(this,R_,"f")&&(Gw(this,C_,"f")&&Gw(this,R_,"f")&&zn.removeDescription(Gw(this,C_,"f"),Gw(this,R_,"f")),Zw(this,R_,e),Gw(this,C_,"f")&&Gw(this,R_,"f")&&this._invalid&&zn.describe(Gw(this,C_,"f"),Gw(this,R_,"f")))},(()=>{const e=new CSSStyleSheet;e.replaceSync(a`
4105
+ function Z_(e,t,i,r){var o,s=arguments.length,a=s<3?t:r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,r);else for(var n=e.length-1;n>=0;n--)(o=e[n])&&(a=(s<3?o(a):s>3?o(t,i,a):o(t,i))||a);return s>3&&a&&Object.defineProperty(t,i,a),a}C_=new WeakMap,P_=new WeakMap,k_=new WeakMap,A_=new WeakMap,O_=new WeakMap,T_=new WeakMap,U_=new WeakMap,M_=new WeakMap,L_=new WeakMap,z_=new WeakMap,R_=new WeakMap,x_=new WeakSet,D_=function(){return void 0!==Gw(this,C_,"f")?.shouldLabelFloat?!0===Gw(this,C_,"f").shouldLabelFloat:"string"==typeof Gw(this,C_,"f")?.value&&Gw(this,C_,"f").value.length>0},I_=function(e){e.stopImmediatePropagation(),e.stopPropagation()},j_=function(e){const t=e.target.assignedElements({flatten:!0});this.classList.toggle("-with-label",t.length>0),this._pseudoLabel=t[0]?.textContent??""},H_=function(e){this.classList.toggle("-with-prefix",Po(e.target)),Gw(this,O_,"f").observe(this._prefix)},N_=function(e){this.classList.toggle("-with-suffix",Po(e.target))},W_=function(){"outlined"===this.variant&&this._base.style.setProperty("--_prefix-width",`${this._prefix.clientWidth}px`)},B_=function(e){Gw(this,x_,"m",J_).call(this,Xw(e.target))},q_=function(e){!Gw(this,C_,"f")||Gw(this,L_,"f")||Gw(this,C_,"f").disabled||(Gw(this,C_,"f").onContainerClick?Gw(this,C_,"f").onContainerClick(e):Gw(this,C_,"f").focus())},F_=function(){this._invalid=!0,this.notifyControlStateChange()},V_=function(){this._invalid=!(Gw(this,C_,"f")?.checkValidity?.()??1),this.notifyControlStateChange()},K_=function(){this._invalid=!1,this.notifyControlStateChange()},J_=function(e){Gw(this,C_,"f")!==e&&(Gw(this,C_,"f")&&(Gw(this,z_,"f")&&zn.removeDescription(Gw(this,C_,"f"),Gw(this,z_,"f")),Gw(this,R_,"f")&&zn.removeDescription(Gw(this,C_,"f"),Gw(this,R_,"f")),Gw(this,A_,"f").unobserve(Gw(this,C_,"f")),Gw(this,C_,"f").removeEventListener("invalid",Gw(this,k_,"f")),Gw(this,C_,"f").form?.removeEventListener("reset",Gw(this,P_,"f"))),Zw(this,C_,e),["INPUT","TEXTAREA"].includes(Gw(this,C_,"f")?.tagName??"")?this._base.style.setProperty("--_form-field-cursor","text"):this._base.style.removeProperty("--_form-field-cursor"),Gw(this,C_,"f")&&(Gw(this,A_,"f").observe(Gw(this,C_,"f")),Gw(this,C_,"f").addEventListener("invalid",Gw(this,k_,"f")),Gw(this,C_,"f").form?.addEventListener("reset",Gw(this,P_,"f")),Gw(this,C_,"f").removeAttribute("aria-invalid"),Gw(this,z_,"f")&&zn.describe(Gw(this,C_,"f"),Gw(this,z_,"f")),this.notifyControlStateChange()))},X_=function(){const e=xo(this._hint,!0);e!==Gw(this,z_,"f")&&(Gw(this,C_,"f")&&Gw(this,z_,"f")&&zn.removeDescription(Gw(this,C_,"f"),Gw(this,z_,"f")),Zw(this,z_,e),Gw(this,C_,"f")&&Gw(this,z_,"f")&&zn.describe(Gw(this,C_,"f"),Gw(this,z_,"f")))},Y_=function(){const e=xo(this._error,!0);e!==Gw(this,R_,"f")&&(Gw(this,C_,"f")&&Gw(this,R_,"f")&&zn.removeDescription(Gw(this,C_,"f"),Gw(this,R_,"f")),Zw(this,R_,e),Gw(this,C_,"f")&&Gw(this,R_,"f")&&this._invalid&&zn.describe(Gw(this,C_,"f"),Gw(this,R_,"f")))},(()=>{const e=new CSSStyleSheet;e.replaceSync(a`
4106
4106
  m3e-form-field input::placeholder,
4107
4107
  m3e-form-field textarea::placeholder {
4108
4108
  user-select: none;
@@ -4132,6 +4132,9 @@ function Z_(e,t,i,r){var o,s=arguments.length,a=s<3?t:r;if("object"==typeof Refl
4132
4132
  width: var(--m3e-form-field-width, 14.5rem);
4133
4133
  color: var(--_form-field-color);
4134
4134
  }
4135
+ :host(:not(.-disabled)) .base {
4136
+ cursor: var(--_form-field-cursor);
4137
+ }
4135
4138
  .base {
4136
4139
  display: flex;
4137
4140
  align-items: center;
@@ -5143,7 +5146,7 @@ function _E(e,t){return(t,i,r)=>((e,t,i)=>(i.configurable=!0,i.enumerable=!0,Ref
5143
5146
  :host([variant="outlined"]) .base {
5144
5147
  outline-style: solid;
5145
5148
  }
5146
- `];var OE,TE,UE,ME,LE;let zE=class extends(Ar(fo(Er(wr(ir(Gi(qt(_o(se,"button"),!0)))))))){constructor(){super(),OE.add(this),TE.set(this,e=>GS(this,OE,"m",ME).call(this,e)),this.variant="standard",this.shape="rounded",this.size="small",this.width="default",this.toggle=!1,this.selected=!1,new Ut(this,{callback:()=>{this.grouped&&this._handleResize()}}),new Ct(this,{callback:e=>{!this.disabledInteractive&&this._base&&(e?GS(this,OE,"m",UE).call(this):this.grouped||this._base?.style.removeProperty("--_button-shape"))}}),new Tt(this,{isPressedKey:e=>" "===e||"Enter"===e,minPressedDuration:150,callback:e=>{if(!this.disabled&&!this.disabledInteractive){this.classList.toggle("-pressed",e),this.classList.toggle("-resting",!e);const t=this.closest("m3e-button-group");if(t){const i=this.getBoundingClientRect().width,r=[...t.querySelectorAll("m3e-button,m3e-icon-button")],o=r.indexOf(this);for(let t=0;t<r.length;t++){const s=r[t];t===o-1||t===o+1?(s.style.setProperty("--_adjacent-button-width",`${i}px`),s.classList.toggle("-adjacent-pressed",e)):(s.style.removeProperty("--_adjacent-button-width"),s.classList.remove("-adjacent-pressed"))}}}}})}get grouped(){return this.classList.contains("-grouped")}render(){return W`<div class="base">
5149
+ `];var OE,TE,UE,ME,LE;let zE=class extends(Ar(fo(Er(wr(ir(Gi(qt(_o(se,"button"),!0)))))))){constructor(){super(),OE.add(this),TE.set(this,e=>GS(this,OE,"m",ME).call(this,e)),this.variant="standard",this.shape="rounded",this.size="small",this.width="default",this.toggle=!1,this.selected=!1,new Ut(this,{callback:()=>{this.grouped&&this._handleResize()}}),new Ct(this,{callback:e=>{!this.disabledInteractive&&this._base&&(e?GS(this,OE,"m",UE).call(this):this.grouped||this._base?.style.removeProperty("--_button-shape"))}}),new Tt(this,{isPressedKey:e=>" "===e,minPressedDuration:150,callback:e=>{if(!this.disabled&&!this.disabledInteractive){this.classList.toggle("-pressed",e),this.classList.toggle("-resting",!e);const t=this.closest("m3e-button-group");if(t){const i=this.getBoundingClientRect().width,r=[...t.querySelectorAll("m3e-button,m3e-icon-button")],o=r.indexOf(this);for(let t=0;t<r.length;t++){const s=r[t];t===o-1||t===o+1?(s.style.setProperty("--_adjacent-button-width",`${i}px`),s.classList.toggle("-adjacent-pressed",e)):(s.style.removeProperty("--_adjacent-button-width"),s.classList.remove("-adjacent-pressed"))}}}}})}get grouped(){return this.classList.contains("-grouped")}render(){return W`<div class="base">
5147
5150
  <m3e-state-layer class="state-layer" ?disabled="${this.disabled||this.disabledInteractive}"></m3e-state-layer>
5148
5151
  <m3e-elevation class="elevation" ?disabled="${this.disabled||this.disabledInteractive}"></m3e-elevation>
5149
5152
  <m3e-focus-ring class="focus-ring" ?disabled="${this.disabled}"></m3e-focus-ring>
@@ -6231,7 +6234,7 @@ function zk(e,t){return(t,i,r)=>((e,t,i)=>(i.configurable=!0,i.enumerable=!0,Ref
6231
6234
  * @license
6232
6235
  * Copyright 2017 Google LLC
6233
6236
  * SPDX-License-Identifier: BSD-3-Clause
6234
- */()],kA.prototype,"_hasChildItems",void 0),nk([Lk({type:Boolean,reflect:!0})],kA.prototype,"open",void 0),kA=PA=nk([dk("m3e-nav-menu-item")],kA);let qA=BA=class extends(_o(se,"tree")){constructor(){super(),AA.add(this),OA.set(this,!1),TA.set(this,!1),this[WA]=(new bn).withVerticalOrientation().withHomeAndEnd().withTypeahead().withSkipPredicate(e=>e.disabled||!e.visible).disableRovingTabIndex().onActiveItemChange(()=>{this[vn].activeItem&&lk(this,AA,"m",jA).call(this,this[vn].activeItem)}).onSelectedItemsChange(()=>{const e=this.selected;for(const t of this.items)t!==e&&lk(this,AA,"m",NA).call(this,t,!1,!1);e?.label&&Ao(e.label,this,{block:"start",behavior:"smooth"})}),UA.set(this,e=>lk(this,AA,"m",RA).call(this,e)),MA.set(this,e=>lk(this,AA,"m",DA).call(this,e)),LA.set(this,e=>lk(this,AA,"m",IA).call(this,e)),new Tt(this,{callback:e=>ck(this,TA,e)}),new Ct(this,{callback:()=>{lk(this,TA,"f")||lk(this,AA,"m",HA).call(this)}})}get selected(){return this[vn].selectedItems[0]??null}get items(){return this[vn].items}expand(e){(e??this[vn].items).forEach(e=>e.expand())}collapse(e){(e??this[vn].items).forEach(e=>e.collapse());const t=this[vn].activeItem;if(t&&!t.visible)for(let e=t.parentItem;e;e=e.parentItem)if(e.visible){this[vn].setActiveItem(e);break}}connectedCallback(){super.connectedCallback(),this.setAttribute("tabindex","0"),this.addEventListener("keydown",lk(this,UA,"f")),this.addEventListener("keyup",lk(this,MA,"f")),this.addEventListener("pointerdown",lk(this,LA,"f"))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("keydown",lk(this,UA,"f")),this.removeEventListener("keyup",lk(this,MA,"f")),this.removeEventListener("pointerdown",lk(this,LA,"f"))}render(){return W`<slot @slotchange="${lk(this,AA,"m",zA)}"></slot>`}};var FA,VA,KA,JA,XA;OA=new WeakMap,TA=new WeakMap,UA=new WeakMap,MA=new WeakMap,LA=new WeakMap,AA=new WeakSet,WA=vn,zA=function(){for(const e of this.querySelectorAll("m3e-divider"))e.ariaHidden="true";const{added:e}=this[vn].setItems([...this.querySelectorAll("m3e-nav-menu-item")]);for(const t of e)t.id=t.id||"m3e-nav-menu-item-"+BA.__nextId++;this[vn].activeItem?(this.setAttribute("aria-activedescendant",this[vn].activeItem.id),lk(this,AA,"m",HA).call(this)):this.removeAttribute("aria-activedescendant")},RA=function(e){ck(this,OA,!1),lk(this,AA,"m",HA).call(this);const t=this[vn].activeItem;if(!e.defaultPrevented&&t&&!t.disabled)switch(e.key){case"Enter":case" ":e.preventDefault(),t.ripple&&!t.ripple.visible&&t.ripple.show(0,0,!0),t.hasChildItems?t.toggle():t.selected||(this[vn].select(t),t.link?.click());break;case"*":e.preventDefault(),t.expand(!0);break;case"Left":case"ArrowLeft":if(e.preventDefault(),t.hasChildItems&&t.open)t.collapse();else{const e=t.parentItem;e&&(e.collapse(),this[vn].setActiveItem(e))}break;case"Right":case"ArrowRight":if(t.hasChildItems)if(t.open)try{this[vn].vertical=!1,this[vn].onKeyDown(e)}finally{this[vn].vertical=!0}else e.preventDefault(),t.expand();else e.preventDefault();break;default:this[vn].onKeyDown(e)}},DA=function(e){const t=this[vn].activeItem;if(!e.defaultPrevented&&t&&!t.disabled)switch(e.key){case"Enter":case" ":t.ripple?.hide()}},IA=function(e){if(!e.defaultPrevented&&!lk(this,OA,"f")){ck(this,OA,!0);const t=e.composedPath().reverse().find(e=>e instanceof kA);t&&!t.disabled&&lk(this,AA,"m",NA).call(this,t,!0,!1)}},jA=function(e){this.setAttribute("aria-activedescendant",e.id),e.label&&Ao(e.label,this,{block:"nearest",behavior:"smooth"}),lk(this,AA,"m",HA).call(this)},HA=function(){const e=this.matches(":focus")||this.matches(":focus-within"),t=!lk(this,OA,"f")&&this.matches(":focus-visible");this[vn].items.forEach(i=>{const r=i===this[vn].activeItem;lk(this,AA,"m",NA).call(this,i,r&&e,r&&t)})},NA=function(e,t,i){t?e.stateLayer?.show("focused"):e.stateLayer?.hide("focused"),i?e.focusRing?.show():e.focusRing?.hide()},qA.styles=a`
6237
+ */()],kA.prototype,"_hasChildItems",void 0),nk([Lk({type:Boolean,reflect:!0})],kA.prototype,"open",void 0),kA=PA=nk([dk("m3e-nav-menu-item")],kA);let qA=BA=class extends(_o(se,"tree")){constructor(){super(),AA.add(this),OA.set(this,!1),TA.set(this,!1),this[WA]=(new bn).withVerticalOrientation().withHomeAndEnd().withTypeahead().withSkipPredicate(e=>e.disabled||!e.visible).disableRovingTabIndex().onActiveItemChange(()=>{this[vn].activeItem&&lk(this,AA,"m",jA).call(this,this[vn].activeItem)}).onSelectedItemsChange(()=>{const e=this.selected;for(const t of this.items)t!==e&&lk(this,AA,"m",NA).call(this,t,!1,!1);e?.label&&Ao(e.label,this,{block:"start",behavior:"smooth"})}),UA.set(this,e=>lk(this,AA,"m",RA).call(this,e)),MA.set(this,e=>lk(this,AA,"m",DA).call(this,e)),LA.set(this,e=>lk(this,AA,"m",IA).call(this,e)),new Tt(this,{callback:e=>ck(this,TA,e)}),new Ct(this,{callback:()=>{lk(this,TA,"f")||lk(this,AA,"m",HA).call(this)}})}get selected(){return this[vn].selectedItems[0]??null}get items(){return this[vn].items}expand(e){(e??this[vn].items).forEach(e=>e.expand())}collapse(e){(e??this[vn].items).forEach(e=>e.collapse());const t=this[vn].activeItem;if(t&&!t.visible)for(let e=t.parentItem;e;e=e.parentItem)if(e.visible){this[vn].setActiveItem(e);break}}connectedCallback(){super.connectedCallback(),this.setAttribute("tabindex","0"),this.addEventListener("keydown",lk(this,UA,"f")),this.addEventListener("keyup",lk(this,MA,"f")),this.addEventListener("pointerdown",lk(this,LA,"f"))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("keydown",lk(this,UA,"f")),this.removeEventListener("keyup",lk(this,MA,"f")),this.removeEventListener("pointerdown",lk(this,LA,"f"))}render(){return W`<slot @slotchange="${lk(this,AA,"m",zA)}"></slot>`}};var FA,VA,KA,JA,XA;OA=new WeakMap,TA=new WeakMap,UA=new WeakMap,MA=new WeakMap,LA=new WeakMap,AA=new WeakSet,WA=vn,zA=function(){for(const e of this.querySelectorAll("m3e-divider"))e.ariaHidden="true";const{added:e}=this[vn].setItems([...this.querySelectorAll("m3e-nav-menu-item")]);for(const t of e)t.id=t.id||"m3e-nav-menu-item-"+BA.__nextId++;this[vn].activeItem?(this.setAttribute("aria-activedescendant",this[vn].activeItem.id),lk(this,AA,"m",HA).call(this)):this.removeAttribute("aria-activedescendant")},RA=function(e){ck(this,OA,!1),lk(this,AA,"m",HA).call(this);const t=this[vn].activeItem;if(!e.defaultPrevented&&t&&!t.disabled)switch(e.key){case"Enter":case" ":e.preventDefault(),t.ripple&&!t.ripple.visible&&t.ripple.show(0,0,!0),t.hasChildItems?t.toggle():t.selected||(this[vn].select(t),t.link?.click());break;case"*":e.preventDefault(),t.expand(!0);break;case"Left":case"ArrowLeft":if(e.preventDefault(),t.hasChildItems&&t.open)t.collapse();else{const e=t.parentItem;e&&(e.collapse(),this[vn].setActiveItem(e))}break;case"Right":case"ArrowRight":if(t.hasChildItems)if(t.open)try{this[vn].vertical=!1,this[vn].onKeyDown(e)}finally{this[vn].vertical=!0}else e.preventDefault(),t.expand();else e.preventDefault();break;default:this[vn].onKeyDown(e)}},DA=function(e){const t=this[vn].activeItem;if(!e.defaultPrevented&&t&&!t.disabled)switch(e.key){case"Enter":case" ":t.ripple?.hide()}},IA=function(e){if(!e.defaultPrevented&&!lk(this,OA,"f")){ck(this,OA,!0);const t=e.composedPath().reverse().find(e=>e instanceof kA);t&&!t.disabled&&lk(this,AA,"m",NA).call(this,t,!0,!1)}},jA=function(e){this.setAttribute("aria-activedescendant",e.id),e.label&&Ao(e.label,this,{block:"nearest",behavior:"smooth"}),lk(this,AA,"m",HA).call(this)},HA=function(){const e=this.matches(":focus")||this.matches(":focus-within"),t=!lk(this,OA,"f")&&this.matches(":focus-visible");this[vn].items.forEach(i=>{const r=i===this[vn].activeItem;lk(this,AA,"m",NA).call(this,i,r&&e,r&&t)})},NA=function(e,t,i){t&&i?e.stateLayer?.show("focused"):e.stateLayer?.hide("focused"),i?e.focusRing?.show():e.focusRing?.hide()},qA.styles=a`
6235
6238
  :host {
6236
6239
  display: flex;
6237
6240
  flex-direction: column;
@@ -6783,7 +6786,7 @@ const IT={attribute:!0,type:String,converter:LT,reflect:!1,hasChanged:zT},jT=(e=
6783
6786
  function HT(e,t){return(t,i,r)=>((e,t,i)=>(i.configurable=!0,i.enumerable=!0,Reflect.decorate&&"object"!=typeof t&&Object.defineProperty(e,t,i),i))(t,i,{get(){return(t=>t.renderRoot?.querySelector(e)??null)(this)}})}var NT,WT,BT,qT,FT,VT,KT;let JT=class extends(ar(Ai(Ui(gi(Ar(wr(ur(Gi(qt(_o(se,"radio"),!0)))))))))){constructor(){super(...arguments),NT.add(this),WT.set(this,e=>fT(this,NT,"m",VT).call(this,e)),BT.set(this,new Pt(this,{target:null,callback:e=>{this.disabled||(e?this._stateLayer?.show("hover"):this._stateLayer?.hide("hover"))}})),qT.set(this,new Tt(this,{target:null,minPressedDuration:150,callback:e=>{this.disabled||(e?this._ripple?.show(0,0,!0):this._ripple?.hide())}})),this.value="on"}get[(WT=new WeakMap,BT=new WeakMap,qT=new WeakMap,NT=new WeakSet,nr)](){return this.checked?this.value:null}connectedCallback(){super.connectedCallback(),this.addEventListener("click",fT(this,WT,"f"));for(const e of this.labels)fT(this,BT,"f").observe(e),fT(this,qT,"f").observe(e)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",fT(this,WT,"f"));for(const e of this.labels)fT(this,BT,"f").unobserve(e),fT(this,qT,"f").unobserve(e)}update(e){super.update(e),e.has("checked")&&fT(this,NT,"m",KT).call(this)}firstUpdated(e){super.firstUpdated(e),[this._focusRing,this._stateLayer,this._ripple].forEach(e=>e?.attach(this))}render(){return W`<div class="base">
6784
6787
  <m3e-state-layer class="state-layer" ?disabled="${this.disabled}"></m3e-state-layer>
6785
6788
  <m3e-focus-ring class="focus-ring" ?disabled="${this.disabled}"></m3e-focus-ring>
6786
- <m3e-ripple class="ripple" centered disable-enter ?disabled="${this.disabled}"></m3e-ripple>
6789
+ <m3e-ripple class="ripple" centered ?disabled="${this.disabled}"></m3e-ripple>
6787
6790
  <div class="touch" aria-hidden="true"></div>
6788
6791
  <div class="wrapper" aria-hidden="true">${fT(this,NT,"m",FT).call(this)}</div>
6789
6792
  </div>`}};var XT,YT,GT,ZT,QT,eU;FT=function(){return W`<svg viewBox="0 0 20 20">
@@ -7937,7 +7940,7 @@ const jR={attribute:!0,type:String,converter:zR,reflect:!1,hasChanged:RR},HR=(e=
7937
7940
  * @license
7938
7941
  * Copyright 2017 Google LLC
7939
7942
  * SPDX-License-Identifier: BSD-3-Clause
7940
- */var WR,BR,qR,FR,VR,KR,JR,XR,YR,GR,ZR,QR;let eD=class extends(_o(se,"group")){constructor(){super(...arguments),WR.add(this),BR.set(this,void 0),qR.set(this,void 0),FR.set(this,!1),VR.set(this,new Tt(this,{target:null,capture:!0,isPressedKey:e=>" "===e||"Enter"===e,callback:(e,t,i)=>{switch(i){case vR(this,BR,"f"):vR(this,WR,"m",GR).call(this,e);break;case vR(this,qR,"f"):vR(this,WR,"m",ZR).call(this,e||vR(this,FR,"f"))}}})),KR.set(this,new Pt(this,{target:null,callback:(e,t)=>{if(t===vR(this,qR,"f"))vR(this,qR,"f")?.disabled||vR(this,qR,"f")?.disabledInteractive||(bR(this,FR,e),vR(this,WR,"m",ZR).call(this,e))}})),this.variant="filled",this.size="small"}update(e){super.update(e),e.has("variant")&&vR(this,WR,"m",YR).call(this)}render(){return W`<m3e-button-group class="base" disable-role variant="connected" size="${this.size}">
7943
+ */var WR,BR,qR,FR,VR,KR,JR,XR,YR,GR,ZR,QR;let eD=class extends(_o(se,"group")){constructor(){super(...arguments),WR.add(this),BR.set(this,void 0),qR.set(this,void 0),FR.set(this,!1),VR.set(this,new Tt(this,{target:null,capture:!0,isPressedKey:e=>" "===e,callback:(e,t,i)=>{switch(i){case vR(this,BR,"f"):vR(this,WR,"m",GR).call(this,e);break;case vR(this,qR,"f"):vR(this,WR,"m",ZR).call(this,e||vR(this,FR,"f"))}}})),KR.set(this,new Pt(this,{target:null,callback:(e,t)=>{if(t===vR(this,qR,"f"))vR(this,qR,"f")?.disabled||vR(this,qR,"f")?.disabledInteractive||(bR(this,FR,e),vR(this,WR,"m",ZR).call(this,e))}})),this.variant="filled",this.size="small"}update(e){super.update(e),e.has("variant")&&vR(this,WR,"m",YR).call(this)}render(){return W`<m3e-button-group class="base" disable-role variant="connected" size="${this.size}">
7941
7944
  <slot name="leading-button" @slotchange="${vR(this,WR,"m",JR)}"></slot>
7942
7945
  <slot name="trailing-button" @slotchange="${vR(this,WR,"m",XR)}"></slot>
7943
7946
  </m3e-button-group>`}};
@@ -8582,7 +8585,7 @@ function PD(e,t){return(t,i,r)=>((e,t,i)=>(i.configurable=!0,i.enumerable=!0,Ref
8582
8585
  transition: none;
8583
8586
  }
8584
8587
  }
8585
- `;var qI,FI,VI,KI,JI,XI;let YI=class extends(ar(Ai(Ui(yr(gi(ur(Ar(wr(Gi(qt(_o(se,"switch")))))))))))){constructor(){super(),qI.add(this),FI.set(this,e=>iD(this,qI,"m",XI).call(this,e)),VI.set(this,new Pt(this,{target:null,callback:e=>{this.disabled||(e?this._stateLayer?.show("hover"):this._stateLayer?.hide("hover"))}})),KI.set(this,new Tt(this,{target:null,callback:e=>this._track?.classList.toggle("pressed",e&&!this.disabled)})),this.icons="none",this.value="on",new Tt(this,{isPressedKey:e=>" "===e||"Enter"===e,callback:e=>this._track?.classList.toggle("pressed",e&&!this.disabled)})}get[(FI=new WeakMap,VI=new WeakMap,KI=new WeakMap,qI=new WeakSet,nr)](){return this.checked?this.value:null}connectedCallback(){super.connectedCallback(),this.addEventListener("click",iD(this,FI,"f"));for(const e of this.labels)iD(this,VI,"f").observe(e),iD(this,KI,"f").observe(e)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",iD(this,FI,"f"));for(const e of this.labels)iD(this,VI,"f").unobserve(e),iD(this,KI,"f").unobserve(e)}firstUpdated(e){super.firstUpdated(e),[this._focusRing,this._stateLayer].forEach(e=>e?.attach(this))}render(){return W`<m3e-focus-ring class="focus-ring"></m3e-focus-ring>
8588
+ `;var qI,FI,VI,KI,JI,XI;let YI=class extends(ar(Ai(Ui(yr(gi(ur(Ar(wr(Gi(qt(_o(se,"switch")))))))))))){constructor(){super(),qI.add(this),FI.set(this,e=>iD(this,qI,"m",XI).call(this,e)),VI.set(this,new Pt(this,{target:null,callback:e=>{this.disabled||(e?this._stateLayer?.show("hover"):this._stateLayer?.hide("hover"))}})),KI.set(this,new Tt(this,{target:null,callback:e=>this._track?.classList.toggle("pressed",e&&!this.disabled)})),this.icons="none",this.value="on",new Tt(this,{isPressedKey:e=>" "===e,callback:e=>this._track?.classList.toggle("pressed",e&&!this.disabled)})}get[(FI=new WeakMap,VI=new WeakMap,KI=new WeakMap,qI=new WeakSet,nr)](){return this.checked?this.value:null}connectedCallback(){super.connectedCallback(),this.addEventListener("click",iD(this,FI,"f"));for(const e of this.labels)iD(this,VI,"f").observe(e),iD(this,KI,"f").observe(e)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",iD(this,FI,"f"));for(const e of this.labels)iD(this,VI,"f").unobserve(e),iD(this,KI,"f").unobserve(e)}firstUpdated(e){super.firstUpdated(e),[this._focusRing,this._stateLayer].forEach(e=>e?.attach(this))}render(){return W`<m3e-focus-ring class="focus-ring"></m3e-focus-ring>
8586
8589
  <div class="track" aria-hidden="true">
8587
8590
  <div class="touch" aria-hidden="true"></div>
8588
8591
  <div class="handle">