@m3e/web 2.5.16 → 2.6.0

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.
Files changed (62) hide show
  1. package/dist/TextOverflowElement.js +3605 -0
  2. package/dist/TextOverflowElement.js.map +1 -0
  3. package/dist/TextOverflowElement.min.js +7 -0
  4. package/dist/TextOverflowElement.min.js.map +1 -0
  5. package/dist/all.js +1565 -6
  6. package/dist/all.js.map +1 -1
  7. package/dist/all.min.js +89 -81
  8. package/dist/all.min.js.map +1 -1
  9. package/dist/badge.js +2 -1
  10. package/dist/badge.js.map +1 -1
  11. package/dist/badge.min.js +1 -1
  12. package/dist/badge.min.js.map +1 -1
  13. package/dist/core.js +415 -3968
  14. package/dist/core.js.map +1 -1
  15. package/dist/core.min.js +1 -1
  16. package/dist/core.min.js.map +1 -1
  17. package/dist/css-custom-data.json +590 -0
  18. package/dist/custom-elements.json +4385 -611
  19. package/dist/html-custom-data.json +251 -0
  20. package/dist/list.js +12 -4
  21. package/dist/list.js.map +1 -1
  22. package/dist/list.min.js +1 -1
  23. package/dist/list.min.js.map +1 -1
  24. package/dist/src/all.d.ts +1 -0
  25. package/dist/src/all.d.ts.map +1 -1
  26. package/dist/src/badge/BadgeElement.d.ts.map +1 -1
  27. package/dist/src/core/shared/converters/index.d.ts +1 -0
  28. package/dist/src/core/shared/converters/index.d.ts.map +1 -1
  29. package/dist/src/core/shared/converters/timeConverter.d.ts +11 -0
  30. package/dist/src/core/shared/converters/timeConverter.d.ts.map +1 -0
  31. package/dist/src/list/ListItemElement.d.ts.map +1 -1
  32. package/dist/src/timepicker/TimepickerDialElement.d.ts +76 -0
  33. package/dist/src/timepicker/TimepickerDialElement.d.ts.map +1 -0
  34. package/dist/src/timepicker/TimepickerElement.d.ts +266 -0
  35. package/dist/src/timepicker/TimepickerElement.d.ts.map +1 -0
  36. package/dist/src/timepicker/TimepickerFormat.d.ts +3 -0
  37. package/dist/src/timepicker/TimepickerFormat.d.ts.map +1 -0
  38. package/dist/src/timepicker/TimepickerInputElement.d.ts +110 -0
  39. package/dist/src/timepicker/TimepickerInputElement.d.ts.map +1 -0
  40. package/dist/src/timepicker/TimepickerInputElementBase.d.ts +69 -0
  41. package/dist/src/timepicker/TimepickerInputElementBase.d.ts.map +1 -0
  42. package/dist/src/timepicker/TimepickerInputPeriodToggleElement.d.ts +18 -0
  43. package/dist/src/timepicker/TimepickerInputPeriodToggleElement.d.ts.map +1 -0
  44. package/dist/src/timepicker/TimepickerMode.d.ts +3 -0
  45. package/dist/src/timepicker/TimepickerMode.d.ts.map +1 -0
  46. package/dist/src/timepicker/TimepickerOrientation.d.ts +3 -0
  47. package/dist/src/timepicker/TimepickerOrientation.d.ts.map +1 -0
  48. package/dist/src/timepicker/TimepickerPeriod.d.ts +8 -0
  49. package/dist/src/timepicker/TimepickerPeriod.d.ts.map +1 -0
  50. package/dist/src/timepicker/TimepickerToggleElement.d.ts +21 -0
  51. package/dist/src/timepicker/TimepickerToggleElement.d.ts.map +1 -0
  52. package/dist/src/timepicker/TimepickerVariant.d.ts +3 -0
  53. package/dist/src/timepicker/TimepickerVariant.d.ts.map +1 -0
  54. package/dist/src/timepicker/TimepickerView.d.ts +3 -0
  55. package/dist/src/timepicker/TimepickerView.d.ts.map +1 -0
  56. package/dist/src/timepicker/index.d.ts +11 -0
  57. package/dist/src/timepicker/index.d.ts.map +1 -0
  58. package/dist/timepicker.js +1533 -0
  59. package/dist/timepicker.js.map +1 -0
  60. package/dist/timepicker.min.js +15 -0
  61. package/dist/timepicker.min.js.map +1 -0
  62. package/package.json +6 -1
@@ -0,0 +1,7 @@
1
+ /**
2
+ * @license MIT
3
+ * Copyright (c) 2025–2026 matraic
4
+ * See LICENSE file in the project root for full license text.
5
+ */
6
+ import{isServer as e,nothing as t,noChange as s,unsafeCSS as i,css as a,LitElement as o,html as n}from"lit";import{directive as r,Directive as l,PartType as d}from"lit/directive.js";import{__classPrivateFieldGet as h,__classPrivateFieldSet as c,__decorate as m}from"tslib";import{property as p,query as u}from"lit/decorators.js";import"lit/directives/if-defined.js";var v,f,y,g,x,b,w,k,$,z,E,S,W,L,C,M,F,T,H,_,D,B,A,N,O,I,P,R,V,U,q,G,j,X,Y,K,Z,J,Q,ee,te,se,ie,ae,oe,ne,re,le,de,he,ce,me,pe,ue,ve,fe,ye,ge,xe,be,we,ke,$e,ze,Ee,Se,We,Le,Ce,Me,Fe,Te,He,_e,De,Be,Ae,Ne,Oe,Ie,Pe,Re,Ve;class Ue{constructor(e,t){v.set(this,null),f.set(this,0),y.set(this,!1),g.set(this,void 0),x.set(this,()=>{if(!h(this,y,"f"))return;const e=performance.now();h(this,g,"f").call(this,(e-h(this,f,"f"))/1e3,e/1e3),c(this,f,e,"f"),c(this,v,requestAnimationFrame(h(this,x,"f")),"f")}),c(this,g,t,"f"),e.addController(this)}hostDisconnected(){this.stop()}start(){h(this,y,"f")||(c(this,y,!0,"f"),c(this,f,performance.now(),"f"),h(this,x,"f").call(this))}stop(){h(this,y,"f")&&(c(this,y,!1,"f"),null!==h(this,v,"f")&&(cancelAnimationFrame(h(this,v,"f")),c(this,v,null,"f")))}}v=new WeakMap,f=new WeakMap,y=new WeakMap,g=new WeakMap,x=new WeakMap;class qe{constructor(e,t){b.set(this,void 0),w.set(this,void 0),k.set(this,new Set),c(this,b,e,"f"),c(this,w,t.target,"f"),h(this,b,"f").addController(this)}get targets(){return h(this,k,"f").values()}get hasTargets(){return h(this,k,"f").size>0}hostConnected(){null!==h(this,w,"f")&&this.observe(h(this,w,"f")??h(this,b,"f"))}hostDisconnected(){this.unobserveAll()}observe(e){h(this,k,"f").has(e)||(h(this,k,"f").add(e),this._observe(e))}isObserving(e){return h(this,k,"f").has(e)}unobserve(e){h(this,k,"f").delete(e)&&this._unobserve(e)}unobserveAll(){h(this,k,"f").forEach(e=>this.unobserve(e)),h(this,k,"f").clear()}}b=new WeakMap,w=new WeakMap,k=new WeakMap;class Ge extends qe{constructor(e,t){super(e,t),$.add(this),z.set(this,void 0),E.set(this,e=>h(this,$,"m",W).call(this,e)),S.set(this,!1),c(this,z,t.callback,"f")}_observe(){h(this,S,"f")||(document.addEventListener("click",h(this,E,"f")),c(this,S,!0,"f"))}_unobserve(){!this.hasTargets&&h(this,S,"f")&&(document.removeEventListener("click",h(this,E,"f")),c(this,S,!1,"f"))}}function je(){return!e&&matchMedia("(forced-colors: active)").matches}function Xe(){return e||matchMedia("(prefers-reduced-motion)").matches}function Ye(e,t=document){return new Promise(s=>{const i=t.querySelector(`#${e}`);i?s(i):"complete"!==document.readyState&&"interactive"!==document.readyState?document.addEventListener("DOMContentLoaded",()=>s(t.querySelector(`#${e}`)),{once:!0}):s(t.querySelector(`#${e}`))})}z=new WeakMap,E=new WeakMap,S=new WeakMap,$=new WeakSet,W=function(e){const t=e.composedPath();t.some(e=>e instanceof HTMLElement&&this.isObserving(e))||h(this,z,"f").call(this,t)};class Ke{constructor(e=100){L.set(this,[]),C.set(this,void 0),c(this,C,e,"f")}add(e,t=performance.now()){h(this,L,"f").push({y:e,t:t});const s=t-h(this,C,"f");for(;h(this,L,"f").length>1&&h(this,L,"f")[0].t<s;)h(this,L,"f").shift()}getVelocity(){if(h(this,L,"f").length<2)return 0;const e=h(this,L,"f")[0],t=h(this,L,"f")[h(this,L,"f").length-1],s=t.y-e.y,i=(t.t-e.t)/1e3;return i>0?s/i:0}reset(){h(this,L,"f").length=0}}L=new WeakMap,C=new WeakMap;class Ze extends qe{constructor(e,t){super(e,t),M.add(this),T.set(this,!1),H.set(this,void 0),_.set(this,void 0),D.set(this,e=>h(this,M,"m",P).call(this,e)),B.set(this,e=>h(this,M,"m",R).call(this,e)),A.set(this,e=>h(this,M,"m",V).call(this,e)),N.set(this,()=>c(this,T,!0,"f")),O.set(this,()=>c(this,T,!1,"f")),c(this,H,t.callback,"f"),c(this,_,t.filter,"f")}_observe(e){e.addEventListener("keydown",h(this,D,"f")),e.addEventListener("focusin",h(this,B,"f")),e.addEventListener("focusout",h(this,A,"f")),e.addEventListener("touchstart",h(this,N,"f"),{passive:!0}),e.addEventListener("touchend",h(this,O,"f")),e.addEventListener("touchcancel",h(this,O,"f"))}_unobserve(e){e.removeEventListener("keydown",h(this,D,"f")),e.removeEventListener("focusin",h(this,B,"f")),e.removeEventListener("focusout",h(this,A,"f")),e.removeEventListener("touchstart",h(this,N,"f")),e.removeEventListener("touchend",h(this,O,"f")),e.removeEventListener("touchcancel",h(this,O,"f"))}}F=Ze,T=new WeakMap,H=new WeakMap,_=new WeakMap,D=new WeakMap,B=new WeakMap,A=new WeakMap,N=new WeakMap,O=new WeakMap,M=new WeakSet,P=function(e){if(h(this,_,"f")?.call(this,e))return;e.currentTarget.matches(":focus-within")&&h(this,M,"m",R).call(this,e)},R=function(e){if(h(this,_,"f")?.call(this,e))return;if(h(this,T,"f"))return;const t=e.currentTarget;h(this,H,"f").call(this,!0,t.matches(":focus-visible")||h(F,F,"f",I)||je(),t)},V=function(e){h(this,_,"f")?.call(this,e)||h(this,T,"f")||h(this,H,"f").call(this,!1,!1,e.currentTarget)},"undefined"!=typeof window&&(window.addEventListener("keydown",()=>c(F,F,!0,"f",I),{capture:!0,passive:!0}),window.addEventListener("pointerdown",()=>c(F,F,!1,"f",I),{capture:!0})),I={value:!1};class Je extends qe{constructor(e,t){super(e,t),U.add(this),q.set(this,void 0),G.set(this,new Map),j.set(this,new Map),X.set(this,e=>h(this,U,"m",Q).call(this,e)),Y.set(this,e=>h(this,U,"m",ee).call(this,e)),c(this,q,t.callback,"f"),this.startDelay=t.startDelay??0,this.endDelay=t.endDelay??0}clearDelays(){for(const e of this.targets)h(this,U,"m",K).call(this,e)}_observe(e){e.addEventListener("pointerenter",h(this,X,"f")),e.addEventListener("pointerleave",h(this,Y,"f")),e.addEventListener("touchend",h(this,Y,"f"))}_unobserve(e){e.removeEventListener("pointerenter",h(this,X,"f")),e.removeEventListener("pointerleave",h(this,Y,"f")),e.removeEventListener("touchend",h(this,Y,"f")),h(this,U,"m",K).call(this,e)}}q=new WeakMap,G=new WeakMap,j=new WeakMap,X=new WeakMap,Y=new WeakMap,U=new WeakSet,K=function(e){h(this,U,"m",Z).call(this,e),h(this,U,"m",J).call(this,e)},Z=function(e){return!!h(this,G,"f").has(e)&&(clearTimeout(h(this,G,"f").get(e)),h(this,G,"f").delete(e))},J=function(e){return!!h(this,j,"f").has(e)&&(clearTimeout(h(this,j,"f").get(e)),h(this,j,"f").delete(e))},Q=function(e){const t=e.target;h(this,U,"m",J).call(this,t),this.startDelay>0?(h(this,U,"m",Z).call(this,t),h(this,G,"f").set(t,setTimeout(()=>{h(this,G,"f").delete(t),h(this,q,"f").call(this,!0,t)},this.startDelay))):h(this,q,"f").call(this,!0,t)},ee=function(e){const t=e.target;h(this,U,"m",Z).call(this,t)||(this.endDelay>0?(h(this,U,"m",J).call(this,t),h(this,j,"f").set(t,setTimeout(()=>{h(this,j,"f").delete(t),h(this,q,"f").call(this,!1,t)},this.endDelay))):h(this,q,"f").call(this,!1,t))};class Qe{constructor(e){te.set(this,void 0),se.set(this,new Array),c(this,te,e,"f"),e.addController(this)}lock(){this.unlock();for(let e=h(this,te,"f");e.parentNode&&e.parentNode!==document.documentElement;e=e.parentNode)for(const t of e.parentNode.children)t instanceof HTMLElement&&t!==e&&!t.inert&&(t.inert=!0,h(this,se,"f").push(t))}unlock(){h(this,se,"f").forEach(e=>e.inert=!1),h(this,se,"f").length=0}hostDisconnected(){this.unlock()}}te=new WeakMap,se=new WeakMap;class et extends qe{constructor(t,s){super(t,s),ie.set(this,void 0),ae.set(this,!1),oe.set(this,void 0),ne.set(this,!0),c(this,ie,s.callback,"f"),c(this,ae,s.skipInitial??!1,"f"),e||(window.IntersectionObserver?c(this,oe,new IntersectionObserver((e,t)=>{h(this,ie,"f").call(this,e,t)},s.init),"f"):console.warn("IntersectionController error: the browser does not support IntersectionObserver."))}async hostUpdated(){h(this,oe,"f")&&!h(this,ae,"f")&&h(this,ne,"f")&&h(this,ie,"f").call(this,[],h(this,oe,"f")),c(this,ne,!1,"f")}_observe(e){h(this,oe,"f")?.observe(e),c(this,ne,!0,"f")}_unobserve(e){h(this,oe,"f")?.unobserve(e)}}ie=new WeakMap,ae=new WeakMap,oe=new WeakMap,ne=new WeakMap;class tt extends qe{constructor(e,t){super(e,t),re.add(this),le.set(this,void 0),de.set(this,void 0),he.set(this,new Set),ce.set(this,new Map),me.set(this,e=>h(this,re,"m",ue).call(this,e)),pe.set(this,e=>h(this,re,"m",ve).call(this,e)),c(this,le,t.callback,"f"),c(this,de,t.threshold??500,"f")}_observe(e){e.addEventListener("touchstart",h(this,me,"f"),{passive:!0}),e.addEventListener("touchend",h(this,pe,"f")),e.addEventListener("touchcancel",h(this,pe,"f"))}_unobserve(e){e.removeEventListener("touchstart",h(this,me,"f")),e.removeEventListener("touchend",h(this,pe,"f")),e.removeEventListener("touchcancel",h(this,pe,"f"))}}le=new WeakMap,de=new WeakMap,he=new WeakMap,ce=new WeakMap,me=new WeakMap,pe=new WeakMap,re=new WeakSet,ue=function(e){if(e.currentTarget instanceof HTMLElement&&this.isObserving(e.currentTarget)){const t=e.currentTarget;h(this,ce,"f").set(t,setTimeout(()=>{h(this,he,"f").add(t),h(this,ce,"f").delete(t),h(this,le,"f").call(this,!0,t)},h(this,de,"f")))}},ve=function(e){if(e.currentTarget instanceof HTMLElement&&this.isObserving(e.currentTarget)){const t=e.currentTarget;h(this,he,"f").has(t)&&(h(this,le,"f").call(this,!1,t),h(this,he,"f").delete(t)),h(this,ce,"f").has(t)&&(clearTimeout(h(this,ce,"f").get(t)),h(this,ce,"f").delete(t))}};class st extends qe{constructor(t,s){super(t,s),fe.set(this,void 0),ye.set(this,!1),ge.set(this,void 0),xe.set(this,void 0),be.set(this,!0),c(this,fe,s.callback,"f"),c(this,ye,s.skipInitial??!1,"f"),c(this,ge,s.config,"f"),e||(window.MutationObserver?c(this,xe,new MutationObserver((e,t)=>h(this,fe,"f").call(this,e,t)),"f"):console.warn("MutationController error: the browser does not support MutationObserver."))}async hostUpdated(){if(h(this,xe,"f")&&!h(this,ye,"f")&&h(this,be,"f")){const e=h(this,xe,"f").takeRecords();e.length>0&&h(this,fe,"f").call(this,e,h(this,xe,"f"))}c(this,be,!1,"f")}hostDisconnected(){super.hostDisconnected(),h(this,xe,"f")?.disconnect()}_observe(e){h(this,xe,"f")?.observe(e,h(this,ge,"f")),c(this,be,!0,"f")}_unobserve(){h(this,xe,"f")?.disconnect();for(const e of this.targets)h(this,xe,"f")?.observe(e,h(this,ge,"f"))}}fe=new WeakMap,ye=new WeakMap,ge=new WeakMap,xe=new WeakMap,be=new WeakMap;class it extends qe{constructor(e,t){super(e,t),we.add(this),ke.set(this,void 0),$e.set(this,void 0),ze.set(this,void 0),Ee.set(this,void 0),Se.set(this,new Map),We.set(this,void 0),Le.set(this,e=>h(this,we,"m",He).call(this,e)),Ce.set(this,e=>h(this,we,"m",_e).call(this,e)),Me.set(this,e=>h(this,we,"m",De).call(this,e)),Fe.set(this,e=>h(this,we,"m",Be).call(this,e)),Te.set(this,e=>h(this,we,"m",Ae).call(this,e)),c(this,ke,t.capture,"f"),c(this,$e,t.callback,"f"),c(this,ze,t.filter,"f"),c(this,Ee,t.isPressedKey,"f"),c(this,We,t.minPressedDuration??0,"f")}hostConnected(){document.addEventListener("pointerup",h(this,Ce,"f"),{capture:h(this,ke,"f")}),document.addEventListener("touchend",h(this,Me,"f"),{capture:h(this,ke,"f")}),document.addEventListener("touchcancel",h(this,Me,"f"),{capture:h(this,ke,"f")}),super.hostConnected()}hostDisconnected(){document.removeEventListener("pointerup",h(this,Ce,"f"),{capture:h(this,ke,"f")}),document.removeEventListener("touchend",h(this,Me,"f"),{capture:h(this,ke,"f")}),document.removeEventListener("touchcancel",h(this,Me,"f"),{capture:h(this,ke,"f")}),super.hostDisconnected(),h(this,Se,"f").clear()}_observe(e){e.addEventListener("pointerdown",h(this,Le,"f"),{capture:h(this,ke,"f")}),h(this,Ee,"f")&&(e.addEventListener("keydown",h(this,Fe,"f"),{capture:h(this,ke,"f")}),e.addEventListener("keyup",h(this,Te,"f"),{capture:h(this,ke,"f")}))}_unobserve(e){e.removeEventListener("pointerdown",h(this,Le,"f"),{capture:h(this,ke,"f")}),h(this,Ee,"f")&&(e.removeEventListener("keydown",h(this,Fe,"f"),{capture:h(this,ke,"f")}),e.removeEventListener("keyup",h(this,Te,"f"),{capture:h(this,ke,"f")}))}}ke=new WeakMap,$e=new WeakMap,ze=new WeakMap,Ee=new WeakMap,Se=new WeakMap,We=new WeakMap,Le=new WeakMap,Ce=new WeakMap,Me=new WeakMap,Fe=new WeakMap,Te=new WeakMap,we=new WeakSet,He=function(e){if(!(h(this,ze,"f")?.call(this,e)||"mouse"===e.pointerType&&e.button>1))for(const t of e.composedPath())if(t instanceof HTMLElement&&this.isObserving(t)){h(this,Se,"f").has(t)||(h(this,Se,"f").set(t,performance.now()),h(this,$e,"f").call(this,!0,{x:e.x,y:e.y},t));break}},_e=function(e){"mouse"===e.pointerType&&e.button>1||h(this,we,"m",Ne).call(this,e.x,e.y)},De=function(e){h(this,we,"m",Ne).call(this,e.changedTouches[0]?.clientX??0,e.changedTouches[0]?.clientY??0)},Be=function(e){if(h(this,ze,"f")?.call(this,e))return;if(e.target!==e.currentTarget)return;const t=e.currentTarget;if(h(this,Ee,"f")?.call(this,e.key)&&(" "===e.key&&e.preventDefault(),!h(this,Se,"f").has(t))){h(this,Se,"f").set(t,performance.now());const e=t.getBoundingClientRect();h(this,$e,"f").call(this,!0,{x:e.x+e.width/2,y:e.y+e.height/2},t)}},Ae=function(e){const t=e.target;if(h(this,Se,"f").has(t)&&h(this,Ee,"f")?.call(this,e.key)){const e=h(this,We,"f")-(performance.now()-h(this,Se,"f").get(t)),s=t.getBoundingClientRect();e>0?setTimeout(()=>{h(this,Se,"f").delete(t),h(this,$e,"f").call(this,!1,{x:s.x+s.width/2,y:s.y+s.height/2},t)},e):(h(this,Se,"f").delete(t),h(this,$e,"f").call(this,!1,{x:s.x+s.width/2,y:s.y+s.height/2},t))}},Ne=function(e,t){for(const s of h(this,Se,"f")){const i=h(this,We,"f")-(performance.now()-s[1]);i>0?setTimeout(()=>{h(this,Se,"f").delete(s[0]),h(this,$e,"f").call(this,!1,{x:e,y:t},s[0])},i):(h(this,Se,"f").delete(s[0]),h(this,$e,"f").call(this,!1,{x:e,y:t},s[0]))}};class at extends qe{constructor(t,s){super(t,s),Oe.set(this,void 0),Ie.set(this,void 0),Pe.set(this,void 0),Re.set(this,void 0),Ve.set(this,!0),c(this,Oe,s.callback,"f"),c(this,Ie,s.skipInitial??!1,"f"),c(this,Pe,s.config,"f"),e||(window.ResizeObserver?c(this,Re,new ResizeObserver((e,t)=>h(this,Oe,"f").call(this,e,t)),"f"):console.warn("ResizeController error: the browser does not support ResizeObserver."))}async hostUpdated(){h(this,Re,"f")&&!h(this,Ie,"f")&&h(this,Ve,"f")&&h(this,Oe,"f").call(this,[],h(this,Re,"f")),c(this,Ve,!1,"f")}_observe(e){h(this,Re,"f")?.observe(e,h(this,Pe,"f")),c(this,Ve,!0,"f")}_unobserve(e){h(this,Re,"f")?.unobserve(e)}}Oe=new WeakMap,Ie=new WeakMap,Pe=new WeakMap,Re=new WeakMap,Ve=new WeakMap;const ot=e=>(t,s)=>{const i=()=>{"undefined"==typeof window||customElements.get(e)||customElements.define(e,t)};s?s.addInitializer(i):i()};function nt(e){const t=Symbol("_id");return(s,i,a)=>{const o=a.value;return a.value=function(...s){clearTimeout(this[t]),this[t]=setTimeout(()=>o.apply(this,s),e)},a}}var rt,lt,dt,ht,ct,mt,pt,ut,vt,ft,yt,gt,xt,bt,wt,kt;class $t extends qe{constructor(e,t){super(e,t),rt.add(this),lt.set(this,void 0),dt.set(this,void 0),ht.set(this,e=>h(this,rt,"m",vt).call(this,e)),ct.set(this,new Map),c(this,lt,!0===t.debounce,"f"),c(this,dt,t.callback,"f")}getScrollContainers(e){return h(this,ct,"f").get(e)}_observe(e){const t=h(this,rt,"m",ut).call(this,e);if(t.length>0){h(this,ct,"f").set(e,t);for(const e of t)(e===document.documentElement?document:e).addEventListener("scroll",h(this,ht,"f"),{passive:!0})}}_unobserve(e){if(h(this,ct,"f").has(e)){for(const t of h(this,ct,"f").get(e))(t===document.documentElement?document:t).removeEventListener("scroll",h(this,ht,"f"));h(this,ct,"f").delete(e)}}_debounceCallback(e){h(this,dt,"f").call(this,e)}}lt=new WeakMap,dt=new WeakMap,ht=new WeakMap,ct=new WeakMap,rt=new WeakSet,mt=function(e){const t=e.shadowRoot;if(!t)return null;const s=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT);let i=s.currentNode;for(;i;){if(i instanceof Element&&h(this,rt,"m",pt).call(this,i))return i;i=s.nextNode()}return null},pt=function(e){const t=getComputedStyle(e);return/(auto|scroll)/.test(t.overflow+t.overflowY+t.overflowX)},ut=function(e){const t=new Array,s=h(this,rt,"m",mt).call(this,e);s&&t.push(s);let i=e;for(;i;)h(this,rt,"m",pt).call(this,i)&&t.push(i),i=i.parentElement;return t},vt=function(e){const t=e.target===document?document.documentElement:e.target;h(this,lt,"f")?this._debounceCallback(t):h(this,dt,"f").call(this,t)},m([nt(40)],$t.prototype,"_debounceCallback",null);class zt{constructor(e){ft.add(this),yt.set(this,!1),gt.set(this,0),xt.set(this,0),bt.set(this,""),wt.set(this,""),e.addController(this)}lock(){h(this,yt,"f")||(c(this,yt,!0,"f"),c(this,gt,window.scrollY,"f"),c(this,xt,window.scrollX,"f"),c(this,bt,document.documentElement.style.overflow,"f"),c(this,wt,document.documentElement.style.scrollbarGutter,"f"),h(this,ft,"m",kt).call(this)&&(document.documentElement.style.scrollbarGutter="stable"),document.documentElement.style.overflow="hidden",window.scrollTo(h(this,xt,"f"),h(this,gt,"f")))}unlock(){h(this,yt,"f")&&(c(this,yt,!1,"f"),document.documentElement.style.overflow=h(this,bt,"f"),document.documentElement.style.scrollbarGutter=h(this,wt,"f"),window.scrollTo(h(this,xt,"f"),h(this,gt,"f")))}hostDisconnected(){this.unlock()}}yt=new WeakMap,gt=new WeakMap,xt=new WeakMap,bt=new WeakMap,wt=new WeakMap,ft=new WeakSet,kt=function(){return document.documentElement.scrollHeight>document.documentElement.clientHeight};const Et={fromAttribute(e){if(!e)return null;e=e.trim().toLowerCase();let t=/^([01]\d|2[0-3]):([0-5]\d)$/.exec(e);if(t)return{hour:Number(t[1]),minute:Number(t[2])};if(t=/^(\d{1,2}):([0-5]\d)\s*(am|pm)$/.exec(e),t){const e=Number(t[1]),s=Number(t[2]),i=t[3];if(e<1||e>12)return null;const a=e%12;return{hour:"pm"===i?a+12:a,minute:s}}return null},toAttribute(e){if(!e)return null;return`${String(e.hour).padStart(2,"0")}:${String(e.minute).padStart(2,"0")}`}},St="important",Wt=" !"+St;const Lt=r(class extends l{constructor(e){if(super(e),e.type!==d.ATTRIBUTE||"style"!==e.name||e.strings?.length>2)throw new Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(e){return t}update(e,[t]){const{style:i}=e.element;void 0===this._previousStyleProperties&&(this._previousStyleProperties=new Set(Object.keys(t)));for(const e of this._previousStyleProperties)null==t[e]&&(this._previousStyleProperties.delete(e),e.includes("-")?i.removeProperty(e):i[e]=null);for(const e in t){const s=t[e];if(null!=s){this._previousStyleProperties.add(e);const t="string"==typeof s&&s.endsWith(Wt);e.includes("-")||t?i.setProperty(e,t?s.slice(0,-11):s,t?St:""):i[e]=s}}return s}});function Ct(e,...t){return"object"==typeof e&&null!==e&&t.every(t=>t in e)}const Mt=Symbol("internals");function Ft(e){return Ct(e,Mt)}const Tt=Symbol("_internals"),Ht=Symbol("_customState");function _t(e,t){var s;class i extends e{constructor(){super(...arguments),this[s]=new Set}get[(s=Ht,Mt)](){return this[Tt]??(this[Tt]=this.attachInternals())}}return i.formAssociated=t,i}function Dt(e,t){return Ht in e?e[Ht].has(t):e[Mt].states.has(t)}function Bt(e,t){Dt(e,t)||(Ht in e&&e[Ht].add(t),e[Mt]?.states.add(t),e[Mt]?.states.has(t))}function At(e,t){return Ht in e&&e[Ht].delete(t),!!e[Mt]?.states.delete(t)&&(e[Mt]?.states.has(t),!0)}function Nt(e,t,s){s?Bt(e,t):At(e,t)}function Ot(e){return Ct(e,"checked")}function It(e){class t extends e{constructor(){super(...arguments),this.checked=!1}update(e){super.update(e),e.has("checked")&&("button"===this.role?(this.ariaPressed=`${this.checked}`,this.ariaChecked=null):this.role&&"none"!==this.role&&"presentation"!==this.role&&(this.ariaChecked=`${this.checked}`,this.ariaPressed=null))}}return m([p({type:Boolean,reflect:!0})],t.prototype,"checked",void 0),t}function Pt(e){return Ct(e,"indeterminate")&&Ot(e)}function Rt(e){class t extends(It(e)){constructor(){super(...arguments),this.indeterminate=!1}update(e){super.update(e),e.has("indeterminate")&&this.role&&"none"!==this.role&&"presentation"!==this.role&&(this.ariaChecked=!this.checked&&this.indeterminate?"mixed":`${this.checked}`)}}return m([p({type:Boolean,reflect:!0})],t.prototype,"indeterminate",void 0),t}const Vt={primary:i("var(--md-sys-color-primary, #6750A4)"),onPrimary:i("var(--md-sys-color-on-primary, #FFFFFF)"),primaryContainer:i("var(--md-sys-color-primary-container, #EADDFF)"),onPrimaryContainer:i("var(--md-sys-color-on-primary-container, #4F378B)"),primaryFixed:i("var(--md-sys-color-primary-fixed, #EADDFF)"),primaryFixedDim:i("var(--md-sys-color-primary-fixed-dim, #D0BCFF)"),onPrimaryFixed:i("var(--md-sys-color-on-primary-fixed, #21005D)"),onPrimaryFixedVariant:i("var(--md-sys-color-on-primary-fixed-variant, #4F378B)"),secondary:i("var(--md-sys-color-secondary, #625B71)"),onSecondary:i("var(--md-sys-color-on-secondary, #FFFFFF)"),secondaryContainer:i("var(--md-sys-color-secondary-container, #E8DEF8)"),onSecondaryContainer:i("var(--md-sys-color-on-secondary-container, #4A4458)"),secondaryFixed:i("var(--md-sys-color-secondary-fixed, #E8DEF8)"),secondaryFixedDim:i("var(--md-sys-color-secondary-fixed-dim, #CCC2DC)"),onSecondaryFixed:i("var(--md-sys-color-on-secondary-fixed, #1D192B)"),onSecondaryFixedVariant:i("var(--md-sys-color-on-secondary-fixed-variant, #4A4458)"),tertiary:i("var(--md-sys-color-tertiary, #7D5260)"),onTertiary:i("var(--md-sys-color-on-tertiary, #FFFFFF)"),tertiaryContainer:i("var(--md-sys-color-tertiary-container, #FFD8E4)"),onTertiaryContainer:i("var(--md-sys-color-on-tertiary-container, #633B48)"),tertiaryFixed:i("var(--md-sys-color-tertiary-fixed, #FFD8E4)"),tertiaryFixedDim:i("var(--md-sys-color-tertiary-fixed-dim, #EFB8C8)"),onTertiaryFixed:i("var(--md-sys-color-on-tertiary-fixed, #31111D)"),onTertiaryFixedVariant:i("var(--md-sys-color-on-tertiary-fixed-variant, #633B48)"),error:i("var(--md-sys-color-error, #B3261E)"),onError:i("var(--md-sys-color-on-error, #FFFFFF)"),errorContainer:i("var(--md-sys-color-error-container, #F9DEDC)"),onErrorContainer:i("var(--md-sys-color-on-error-container, #8C1D18)"),surface:i("var(--md-sys-color-surface, #FEF7FF)"),onSurface:i("var(--md-sys-color-on-surface, #1D1B20)"),onSurfaceVariant:i("var(--md-sys-color-on-surface-variant, #49454F)"),surfaceContainerLowest:i("var(--md-sys-color-surface-container-lowest, #FFFFFF)"),surfaceContainerLow:i("var(--md-sys-color-surface-container-low, #F7F2FA)"),surfaceContainer:i("var(--md-sys-color-surface-container, #F3EDF7)"),surfaceContainerHigh:i("var(--md-sys-color-surface-container-high, #ECE6F0)"),surfaceContainerHighest:i("var(--md-sys-color-surface-container-highest, #E6E0E9)"),surfaceDim:i("var(--md-sys-color-surface-dim, #DED8E1)"),surfaceBright:i("var(--md-sys-color-surface-bright, #FEF7FF)"),surfaceVariant:i("var(--md-sys-color-surface-variant, #E7E0EC)"),inverseSurface:i("var(--md-sys-color-inverse-surface, #322F35)"),inverseOnSurface:i("var(--md-sys-color-inverse-on-surface, #F5EFF7)"),inversePrimary:i("var(--md-sys-color-inverse-primary, #D0BCFF)"),outline:i("var(--md-sys-color-outline, #79747E)"),outlineVariant:i("var(--md-sys-color-outline-variant, #CAC4D0)"),shadow:i("var(--md-sys-color-shadow, #000000)"),scrim:i("var(--md-sys-color-scrim, #000000)")},Ut={scale:i("var(--md-sys-density-scale, 0)"),size:i("var(--md-sys-density-size, 0.25rem)")},qt={...Ut,calc:e=>i(`calc(max(${e}, ${Ut.scale}) * ${Ut.size})`)},Gt=`color-mix(in srgb, var(--m3e-elevation-color, ${Vt.shadow}) 20%, transparent)`,jt=["0px 0px 0px 0px","0px 2px 1px -1px","0px 3px 1px -2px","0px 3px 3px -2px","0px 2px 4px -1px","0px 3px 5px -1px","0px 3px 5px -1px","0px 4px 5px -2px","0px 5px 5px -3px","0px 5px 6px -3px","0px 6px 6px -3px","0px 6px 7px -4px","0px 7px 8px -4px","0px 7px 8px -4px","0px 7px 9px -4px","0px 8px 9px -5px","0px 8px 10px -5px","0px 8px 11px -5px","0px 9px 11px -5px","0px 9px 12px -6px","0px 10px 13px -6px","0px 10px 13px -6px","0px 10px 14px -6px","0px 11px 14px -7px","0px 11px 15px -7px"],Xt=`color-mix(in srgb, var(--m3e-elevation-color, ${Vt.shadow}) 14%, transparent)`,Yt=["0px 0px 0px 0px","0px 1px 1px 0px","0px 2px 2px 0px","0px 3px 4px 0px","0px 4px 5px 0px","0px 5px 8px 0px","0px 6px 10px 0px","0px 7px 10px 1px","0px 8px 10px 1px","0px 9px 12px 1px","0px 10px 14px 1px","0px 11px 15px 1px","0px 12px 17px 2px","0px 13px 19px 2px","0px 14px 21px 2px","0px 15px 22px 2px","0px 16px 24px 2px","0px 17px 26px 2px","0px 18px 28px 2px","0px 19px 29px 2px","0px 20px 31px 3px","0px 21px 33px 3px","0px 22px 35px 3px","0px 23px 36px 3px","0px 24px 38px 3px"],Kt=`color-mix(in srgb, var(--m3e-elevation-color, ${Vt.shadow}) 12%, transparent)`,Zt=["0px 0px 0px 0px","0px 1px 3px 0px","0px 1px 5px 0px","0px 1px 8px 0px","0px 1px 10px 0px","0px 1px 14px 0px","0px 1px 18px 0px","0px 2px 16px 1px","0px 3px 14px 2px","0px 3px 16px 2px","0px 4px 18px 3px","0px 4px 20px 3px","0px 5px 22px 4px","0px 5px 24px 4px","0px 5px 26px 4px","0px 6px 28px 5px","0px 6px 30px 5px","0px 6px 32px 5px","0px 7px 34px 6px","0px 7px 36px 6px","0px 8px 38px 7px","0px 8px 40px 7px","0px 8px 42px 7px","0px 9px 44px 8px","0px 9px 46px 8px"];function Jt(e){return`${Gt} ${jt[e]},${Xt} ${Yt[e]},${Kt} ${Zt[e]}`}const Qt={level0:i(`var(--md-sys-elevation-level0, ${Jt(0)})`),level1:i(`var(--md-sys-elevation-level1, ${Jt(1)})`),level2:i(`var(--md-sys-elevation-level2, ${Jt(3)})`),level3:i(`var(--md-sys-elevation-level3, ${Jt(6)})`),level4:i(`var(--md-sys-elevation-level4, ${Jt(8)})`),level5:i(`var(--md-sys-elevation-level5, ${Jt(12)})`)};function es(e){return i(`var(--md-sys-measurement-space${e}, ${e/100*.5}rem)`)}const ts={space0:es(0),space25:es(25),space50:es(50),space75:es(75),space100:es(100),space125:es(125),space150:es(150),space175:es(175),space200:es(200),space250:es(250),space300:es(300),space400:es(400),space450:es(450),space500:es(500),space600:es(600),space700:es(700),space800:es(800),space900:es(900)},ss={emphasized:i("var(--md-sys-motion-easing-emphasized, cubic-bezier(0.2, 0.0, 0, 1.0))"),emphasizedDecelerate:i("var(--md-sys-motion-easing-emphasized-decelerate, cubic-bezier(0.05, 0.7, 0.1, 1.0))"),emphasizedAccelerate:i("var(--md-sys-motion-easing-emphasized-accelerate, cubic-bezier(0.3, 0.0, 0.8, 0.15))"),standard:i("var(--md-sys-motion-easing-standard, cubic-bezier(0.2, 0.0, 0, 1.0))"),standardDecelerate:i("var(--md-sys-motion-easing-standard-decelerate, cubic-bezier(0, 0, 0, 1))"),standardAccelerate:i("var(--md-sys-motion-easing-standard-accelerate, cubic-bezier(0.3, 0, 1, 1))")},is={fastSpatial:i("var(--md-sys-motion-spring-fast-spatial, 350ms cubic-bezier(0.27, 1.06, 0.18, 1.00))"),defaultSpatial:i("var(--md-sys-motion-spring-default-spatial, 500ms cubic-bezier(0.27, 1.06, 0.18, 1.00))"),slowSpatial:i("var(--md-sys-motion-spring-slow-spatial, 750ms cubic-bezier(0.27, 1.06, 0.18, 1.00))"),fastEffects:i("var(--md-sys-motion-spring-fast-effects, 150ms cubic-bezier(0.31, 0.94, 0.34, 1.00))"),defaultEffects:i("var(--md-sys-motion-spring-default-effects, 200ms cubic-bezier(0.34, 0.80, 0.34, 1.00))"),slowEffects:i("var(--md-sys-motion-spring-slow-effects, 200ms cubic-bezier(0.34, 0.88, 0.34, 1.00))")},as={easing:ss,duration:{short1:i("var(--md-sys-motion-duration-short-1, 50ms)"),short2:i("var(--md-sys-motion-duration-short-2, 100ms)"),short3:i("var(--md-sys-motion-duration-short-3, 150ms)"),short4:i("var(--md-sys-motion-duration-short-4, 200ms)"),medium1:i("var(--md-sys-motion-duration-medium-1, 250ms)"),medium2:i("var(--md-sys-motion-duration-medium-2, 300ms)"),medium3:i("var(--md-sys-motion-duration-medium-3, 350ms)"),medium4:i("var(--md-sys-motion-duration-medium-4, 400ms)"),long1:i("var(--md-sys-motion-duration-long-1, 450ms)"),long2:i("var(--md-sys-motion-duration-long-2, 500ms)"),long3:i("var(--md-sys-motion-duration-long-3, 550ms)"),long4:i("var(--md-sys-motion-duration-long-4, 600ms)"),extraLong1:i("var(--md-sys-motion-duration-extra-long-1, 700ms)"),extraLong2:i("var(--md-sys-motion-duration-extra-long-2, 800ms)"),extraLong3:i("var(--md-sys-motion-duration-extra-long-3, 900ms)"),extraLong4:i("var(--md-sys-motion-duration-extra-long-4, 1000ms)")},spring:is},os={width:i("var(--m3e-scrollbar-width, auto)"),thinWidth:i("var(--m3e-scrollbar-thin-width, thin)"),color:i("var(--m3e-scrollbar-thumb-color, #938f94) var(--m3e-scrollbar-track-color, transparent)")},ns={none:i("var(--md-sys-shape-corner-value-none, 0)"),extraSmall:i("var(--md-sys-shape-corner-value-extra-small, 0.25rem)"),small:i("var(--md-sys-shape-corner-value-small, 0.5rem)"),medium:i("var(--md-sys-shape-corner-value-medium, 0.75rem)"),large:i("var(--md-sys-shape-corner-value-large, 1rem)"),largeIncreased:i("var(--md-sys-shape-corner-value-large-increased, 1.25rem)"),extraLarge:i("var(--md-sys-shape-corner-value-extra-large, 1.75rem)"),extraLargeIncreased:i("var(--md-sys-shape-corner-value-extra-large-increased, 2rem)"),extraExtraLarge:i("var(--md-sys-shape-corner-value-extra-extra-large, 3rem)")},rs={color:Vt,elevation:Qt,motion:as,shape:{corner:{full:i("var(--md-sys-shape-corner-full, 624.9375rem)"),extraLargeTop:i(`var(--md-sys-shape-corner-extra-large-top, ${ns.extraLarge} ${ns.extraLarge} ${ns.none} ${ns.none})`),extraLarge:i(`var(--md-sys-shape-corner-extra-large, ${ns.extraLarge})`),extraLargeEnd:i(`${ns.none} ${ns.extraLarge} ${ns.extraLarge} ${ns.none}`),extraLargeStart:i(`${ns.extraLarge} ${ns.none} ${ns.none} ${ns.extraLarge}`),largeTop:i(`var(--md-sys-shape-corner-large-top, ${ns.large} ${ns.large} ${ns.none} ${ns.none})`),largeEnd:i(`var(--md-sys-shape-corner-large-end, ${ns.none} ${ns.large} ${ns.large} ${ns.none})`),largeStart:i(`var(--md-sys-shape-corner-large-start, ${ns.large} ${ns.none} ${ns.none} ${ns.large})`),large:i(`var(--md-sys-shape-corner-large, ${ns.large})`),medium:i(`var(--md-sys-shape-corner-medium, ${ns.medium})`),mediumTop:i(`${ns.medium} ${ns.medium} ${ns.none} ${ns.none}`),mediumEnd:i(`${ns.none} ${ns.medium} ${ns.medium} ${ns.none}`),mediumStart:i(`${ns.medium} ${ns.none} ${ns.none} ${ns.medium}`),small:i(`var(--md-sys-shape-corner-small, ${ns.small})`),smallTop:i(`${ns.small} ${ns.small} ${ns.none} ${ns.none}`),smallEnd:i(`${ns.none} ${ns.small} ${ns.small} ${ns.none}`),smallStart:i(`${ns.small} ${ns.none} ${ns.none} ${ns.small}`),extraSmallTop:i(`var(--md-sys-shape-corner-extra-small-top, ${ns.extraSmall} ${ns.extraSmall} ${ns.none} ${ns.none})`),extraSmall:i(`var(--md-sys-shape-corner-extra-small, ${ns.extraSmall})`),extraSmallEnd:i(`${ns.none} ${ns.extraSmall} ${ns.extraSmall} ${ns.none}`),extraSmallStart:i(`${ns.extraSmall} ${ns.none} ${ns.none} ${ns.extraSmall}`),extraSmallBottom:i(`${ns.none} ${ns.none} ${ns.extraSmall} ${ns.extraSmall}`),none:i(`var(--md-sys-shape-corner-none, ${ns.none})`),largeIncreased:i(`var(--md-sys-shape-corner-large-increased, ${ns.largeIncreased})`),extraLargeIncreased:i(`var(--md-sys-shape-corner-extra-large-increased, ${ns.extraLargeIncreased})`),extraExtraLarge:i(`var(--md-sys-shape-corner-extra-extra-large, ${ns.extraExtraLarge})`),value:ns}},state:{focusStateLayerOpacity:i("var(--md-sys-state-focus-state-layer-opacity, 10%)"),hoverStateLayerOpacity:i("var(--md-sys-state-hover-state-layer-opacity, 8%)"),pressedStateLayerOpacity:i("var(--md-sys-state-pressed-state-layer-opacity, 10%)")},typescale:{standard:{display:{large:{fontSize:i("var(--md-sys-typescale-display-large-font-size, 3.5625rem)"),fontWeight:i("var(--md-sys-typescale-display-large-font-weight, 400)"),lineHeight:i("var(--md-sys-typescale-display-large-line-height, 4rem)"),tracking:i("var(--md-sys-typescale-display-large-tracking, 0.015625rem)")},medium:{fontSize:i("var(--md-sys-typescale-display-medium-font-size, 2.8125rem)"),fontWeight:i("var(--md-sys-typescale-display-medium-font-weight, 400)"),lineHeight:i("var(--md-sys-typescale-display-medium-line-height, 3.25rem)"),tracking:i("var(--md-sys-typescale-display-medium-tracking, 0)")},small:{fontSize:i("var(--md-sys-typescale-display-small-font-size, 2.25rem)"),fontWeight:i("var(--md-sys-typescale-display-small-font-weight, 400)"),lineHeight:i("var(--md-sys-typescale-display-small-line-height, 2.75rem)"),tracking:i("var(--md-sys-typescale-display-small-tracking, 0)")}},headline:{large:{fontSize:i("var(--md-sys-typescale-headline-large-font-size, 2rem)"),fontWeight:i("var(--md-sys-typescale-headline-large-font-weight, 400)"),lineHeight:i("var(--md-sys-typescale-headline-large-line-height, 2.5rem)"),tracking:i("var(--md-sys-typescale-headline-large-tracking, 0)")},medium:{fontSize:i("var(--md-sys-typescale-headline-medium-font-size, 1.75rem)"),fontWeight:i("var(--md-sys-typescale-headline-medium-font-weight, 400)"),lineHeight:i("var(--md-sys-typescale-headline-medium-line-height, 2.25rem)"),tracking:i("var(--md-sys-typescale-headline-medium-tracking, 0)")},small:{fontSize:i("var(--md-sys-typescale-headline-small-font-size, 1.5rem)"),fontWeight:i("var(--md-sys-typescale-headline-small-font-weight, 400)"),lineHeight:i("var(--md-sys-typescale-headline-small-line-height, 2rem)"),tracking:i("var(--md-sys-typescale-headline-small-tracking, 0)")}},title:{large:{fontSize:i("var(--md-sys-typescale-title-large-font-size, 1.375rem)"),fontWeight:i("var(--md-sys-typescale-title-large-font-weight, 400)"),lineHeight:i("var(--md-sys-typescale-title-large-line-height, 1.75rem)"),tracking:i("var(--md-sys-typescale-title-large-tracking, 0)")},medium:{fontSize:i("var(--md-sys-typescale-title-medium-font-size, 1rem)"),fontWeight:i("var(--md-sys-typescale-title-medium-font-weight, 500)"),lineHeight:i("var(--md-sys-typescale-title-medium-line-height, 1.5rem)"),tracking:i("var(--md-sys-typescale-title-medium-tracking, 0.009375rem)")},small:{fontSize:i("var(--md-sys-typescale-title-small-font-size, 0.875rem)"),fontWeight:i("var(--md-sys-typescale-title-small-font-weight, 500)"),lineHeight:i("var(--md-sys-typescale-title-small-line-height, 1.25rem)"),tracking:i("var(--md-sys-typescale-title-small-tracking, 0.00625rem)")}},body:{large:{fontSize:i("var(--md-sys-typescale-body-large-font-size, 1rem)"),fontWeight:i("var(--md-sys-typescale-body-large-font-weight, 400)"),lineHeight:i("var(--md-sys-typescale-body-large-line-height, 1.5rem)"),tracking:i("var(--md-sys-typescale-body-large-tracking, 0.03125rem)")},medium:{fontSize:i("var(--md-sys-typescale-body-medium-font-size, 0.875rem)"),fontWeight:i("var(--md-sys-typescale-body-medium-font-weight, 400)"),lineHeight:i("var(--md-sys-typescale-body-medium-line-height, 1.25rem)"),tracking:i("var(--md-sys-typescale-body-medium-tracking, 0.015625rem)")},small:{fontSize:i("var(--md-sys-typescale-body-small-font-size, 0.75rem)"),fontWeight:i("var(--md-sys-typescale-body-small-font-weight, 400)"),lineHeight:i("var(--md-sys-typescale-body-small-line-height, 1rem)"),tracking:i("var(--md-sys-typescale-body-small-tracking, 0.025rem)")}},label:{large:{fontSize:i("var(--md-sys-typescale-label-large-font-size, 0.875rem)"),fontWeight:i("var(--md-sys-typescale-label-large-font-weight, 500)"),lineHeight:i("var(--md-sys-typescale-label-large-line-height, 1.25rem)"),tracking:i("var(--md-sys-typescale-label-large-tracking, 0.00625rem)")},medium:{fontSize:i("var(--md-sys-typescale-label-medium-font-size, 0.75rem)"),fontWeight:i("var(--md-sys-typescale-label-medium-font-weight, 500)"),lineHeight:i("var(--md-sys-typescale-label-medium-line-height, 1rem)"),tracking:i("var(--md-sys-typescale-label-medium-tracking, 0.03125rem)")},small:{fontSize:i("var(--md-sys-typescale-label-small-font-size, 0.6875rem)"),fontWeight:i("var(--md-sys-typescale-label-small-font-weight, 500)"),lineHeight:i("var(--md-sys-typescale-label-small-line-height, 1rem)"),tracking:i("var(--md-sys-typescale-label-small-tracking, 0.03125rem)")}}},emphasized:{display:{large:{fontSize:i("var(--md-sys-typescale-emphasized-display-large-font-size, 3.5625rem)"),fontWeight:i("var(--md-sys-typescale-emphasized-display-large-font-weight, 500)"),lineHeight:i("var(--md-sys-typescale-emphasized-display-large-line-height, 4rem)"),tracking:i("var(--md-sys-typescale-emphasized-display-large-tracking, 0.015625rem)")},medium:{fontSize:i("var(--md-sys-typescale-emphasized-display-medium-font-size, 2.8125rem)"),fontWeight:i("var(--md-sys-typescale-emphasized-display-medium-font-weight, 500)"),lineHeight:i("var(--md-sys-typescale-emphasized-display-medium-line-height, 3.25rem)"),tracking:i("var(--md-sys-typescale-emphasized-display-medium-tracking, 0)")},small:{fontSize:i("var(--md-sys-typescale-emphasized-display-small-font-size, 2.25rem)"),fontWeight:i("var(--md-sys-typescale-emphasized-display-small-font-weight, 500)"),lineHeight:i("var(--md-sys-typescale-emphasized-display-small-line-height, 2.75rem)"),tracking:i("var(--md-sys-typescale-emphasized-display-small-tracking, 0)")}},headline:{large:{fontSize:i("var(--md-sys-typescale-emphasized-headline-large-font-size, 2rem)"),fontWeight:i("var(--md-sys-typescale-emphasized-headline-large-font-weight, 500)"),lineHeight:i("var(--md-sys-typescale-emphasized-headline-large-line-height, 2.5rem)"),tracking:i("var(--md-sys-typescale-emphasized-headline-large-tracking, 0)")},medium:{fontSize:i("var(--md-sys-typescale-emphasized-headline-medium-font-size, 1.75rem)"),fontWeight:i("var(--md-sys-typescale-emphasized-headline-medium-font-weight, 500)"),lineHeight:i("var(--md-sys-typescale-emphasized-headline-medium-line-height, 2.25rem)"),tracking:i("var(--md-sys-typescale-emphasized-headline-medium-tracking, 0)")},small:{fontSize:i("var(--md-sys-typescale-emphasized-headline-small-font-size, 1.5rem)"),fontWeight:i("var(--md-sys-typescale-emphasized-headline-small-font-weight, 500)"),lineHeight:i("var(--md-sys-typescale-emphasized-headline-small-line-height, 2rem)"),tracking:i("var(--md-sys-typescale-emphasized-headline-small-tracking, 0)")}},title:{large:{fontSize:i("var(--md-sys-typescale-emphasized-title-large-font-size, 1.375rem)"),fontWeight:i("var(--md-sys-typescale-emphasized-title-large-font-weight, 500)"),lineHeight:i("var(--md-sys-typescale-emphasized-title-large-line-height, 1.75rem)"),tracking:i("var(--md-sys-typescale-emphasized-title-large-tracking, 0)")},medium:{fontSize:i("var(--md-sys-typescale-emphasized-title-medium-font-size, 1rem)"),fontWeight:i("var(--md-sys-typescale-emphasized-title-medium-font-weight, 700)"),lineHeight:i("var(--md-sys-typescale-emphasized-title-medium-line-height, 3.5rem)"),tracking:i("var(--md-sys-typescale-emphasized-title-medium-tracking, 0.009375rem)")},small:{fontSize:i("var(--md-sys-typescale-emphasized-title-small-font-size, 0.875rem)"),fontWeight:i("var(--md-sys-typescale-emphasized-title-small-font-weight, 700)"),lineHeight:i("var(--md-sys-typescale-emphasized-title-small-line-height, 1.25rem)"),tracking:i("var(--md-sys-typescale-emphasized-title-small-tracking, 0.00625rem)")}},body:{large:{fontSize:i("var(--md-sys-typescale-emphasized-body-large-font-size, 1rem)"),fontWeight:i("var(--md-sys-typescale-emphasized-body-large-font-weight, 500)"),lineHeight:i("var(--md-sys-typescale-emphasized-body-large-line-height, 1.5rem)"),tracking:i("var(--md-sys-typescale-emphasized-body-large-tracking, 0.03125rem)")},medium:{fontSize:i("var(--md-sys-typescale-emphasized-body-medium-font-size, 0.875rem)"),fontWeight:i("var(--md-sys-typescale-emphasized-body-medium-font-weight, 500)"),lineHeight:i("var(--md-sys-typescale-emphasized-body-medium-line-height, 1.25rem)"),tracking:i("var(--md-sys-typescale-emphasized-body-medium-tracking, 0.015625rem)")},small:{fontSize:i("var(--md-sys-typescale-emphasized-body-small-font-size, 0.75rem)"),fontWeight:i("var(--md-sys-typescale-emphasized-body-small-font-weight, 500)"),lineHeight:i("var(--md-sys-typescale-emphasized-body-small-line-height, 1rem)"),tracking:i("var(--md-sys-typescale-emphasized-body-small-tracking, 0.025rem)")}},label:{large:{fontSize:i("var(--md-sys-typescale-emphasized-label-large-font-size, 0.875rem)"),fontWeight:i("var(--md-sys-typescale-emphasized-label-large-font-weight, 700)"),lineHeight:i("var(--md-sys-typescale-emphasized-label-large-line-height, 1.25rem)"),tracking:i("var(--md-sys-typescale-emphasized-label-large-tracking, 0.00625rem)")},medium:{fontSize:i("var(--md-sys-typescale-emphasized-label-medium-font-size, 0.75rem)"),fontWeight:i("var(--md-sys-typescale-emphasized-label-medium-font-weight, 700)"),lineHeight:i("var(--md-sys-typescale-emphasized-label-medium-line-height, 1rem)"),tracking:i("var(--md-sys-typescale-emphasized-label-medium-tracking, 0.03125rem)")},small:{fontSize:i("var(--md-sys-typescale-emphasized-label-small-font-size, 0.6875rem)"),fontWeight:i("var(--md-sys-typescale-emphasized-label-small-font-weight, 700)"),lineHeight:i("var(--md-sys-typescale-emphasized-label-small-line-height, 1rem)"),tracking:i("var(--md-sys-typescale-emphasized-label-small-tracking, 0.03125rem)")}}}},scrollbar:os,density:qt,measurement:ts};function ls(e){return Ct(e,"disabled")}function ds(e,t=!0){class s extends e{constructor(){super(...arguments),this.disabled=!1}update(e){super.update(e),e.has("disabled")&&this.role&&"none"!==this.role&&"presentation"!==this.role&&(this.ariaDisabled=this.disabled?"true":null)}}return m([p({type:Boolean,reflect:t})],s.prototype,"disabled",void 0),s}function hs(e){return Ct(e,"htmlFor","control","attach","detach")}const cs=Symbol("_control"),ms=Symbol("_firstUpdated");function ps(e){var t;class s extends e{constructor(){super(...arguments),this[t]=!1,this.htmlFor=null}get control(){return this[cs]?.deref()??null}connectedCallback(){super.connectedCallback();const e=this[cs]?.deref();e&&this.attach(e)}disconnectedCallback(){super.disconnectedCallback();const e=this[cs];e&&(this.detach(),this[cs]=e)}firstUpdated(e){super.firstUpdated(e),this[ms]=!0}update(e){if(super.update(e),e.has("htmlFor"))if(this.htmlFor){const e=this.getRootNode();e&&Ye(this.htmlFor,e).then(e=>{e!==this.control&&(this.control&&this.detach(),e instanceof HTMLElement&&this.attach(e))})}else this.control&&this[ms]&&this.detach()}attach(e){this[cs]=new WeakRef(e)}detach(){this[cs]=void 0}}return t=ms,m([p({attribute:"for"})],s.prototype,"htmlFor",void 0),s}function us(e,t){return class extends e{connectedCallback(){this.role=this.role||t,super.connectedCallback()}}}var vs,fs,ys,gs,xs,bs,ws,ks;class $s extends o{constructor(){super(...arguments),vs.set(this,e=>{e.defaultPrevented||this._onClick(e)})}connectedCallback(){super.connectedCallback(),this.parentElement?.addEventListener("click",h(this,vs,"f"))}disconnectedCallback(){super.disconnectedCallback(),this.parentElement?.removeEventListener("click",h(this,vs,"f"))}render(){return n`<slot></slot>`}}vs=new WeakMap,$s.styles=a`:host { display: contents; } ::slotted(.material-icons) { font-size: inherit !important; }`;let zs=class extends(_t(o)){constructor(){super(...arguments),fs.add(this),ys.set(this,!1),gs.set(this,!1),this.open=!1,this.orientation="vertical",this.noAnimate=!1}update(e){super.update(e);const t=this.noAnimate||e.has("orientation")&&!e.has("open");if(Bt(this,"--no-animate"),!h(this,ys,"f"))return this.open&&(c(this,gs,!0,"f"),h(this,fs,"m",bs).call(this)),void c(this,ys,!0,"f");this.toggleAttribute("inert",!this.open),this.open?(c(this,gs,!0,"f"),t||Xe()||(h(this,fs,"m",bs).call(this),Nt(this,"--overflows","vertical"===this.orientation?this.clientHeight<this.scrollHeight:"horizontal"===this.orientation?this.clientWidth<this.scrollWidth:this.clientHeight<this.scrollHeight||this.clientWidth<this.scrollWidth),h(this,fs,"m",ws).call(this)),At(this,"--closing"),Bt(this,"--opening"),this.dispatchEvent(new Event("opening")),h(this,fs,"m",ws).call(this),At(this,"--no-animate"),h(this,fs,"m",ks).call(this),t||Xe()?(h(this,fs,"m",bs).call(this),At(this,"--opening"),this.dispatchEvent(new Event("opened"))):this.addEventListener("transitionend",()=>{this.open&&(h(this,fs,"m",bs).call(this),At(this,"--opening"),this.dispatchEvent(new Event("opened")))},{once:!0})):(At(this,"--opening"),Bt(this,"--closing"),this.dispatchEvent(new Event("closing")),h(this,fs,"m",ks).call(this),h(this,gs,"f")&&At(this,"--no-animate"),t||Xe()?(h(this,fs,"m",ws).call(this),At(this,"--closing"),this.dispatchEvent(new Event("closed"))):requestAnimationFrame(()=>{h(this,fs,"m",ws).call(this),this.addEventListener("transitionend",()=>{this.open||(At(this,"--closing"),this.dispatchEvent(new Event("closed")))},{once:!0})}))}render(){return n`<slot @slotchange="${h(this,fs,"m",xs)}"></slot>`}};ys=new WeakMap,gs=new WeakMap,fs=new WeakSet,xs=function(){c(this,ys,!0,"f")},bs=function(){switch(this.orientation){case"vertical":this.style.height="auto";break;case"horizontal":this.style.width="auto";break;case"both":this.style.height=this.style.width="auto"}},ws=function(){switch(this.orientation){case"vertical":this.style.height="";break;case"horizontal":this.style.width="";break;case"both":this.style.height=this.style.width=""}},ks=function(){switch(this.orientation){case"vertical":this.style.height=`${this.scrollHeight}px`;break;case"horizontal":this.style.width=`${this.scrollWidth}px`;break;case"both":this.style.height=`${this.scrollHeight}px`,this.style.width=`${this.scrollWidth}px`}},zs.styles=a`:host { display: block; overflow: hidden; } :host([orientation="vertical"]) { height: 0px; transition: ${i(`visibility var(--m3e-collapsible-animation-duration, ${rs.motion.duration.medium1})\n ${rs.motion.easing.standard},\n height var(--m3e-collapsible-animation-duration, ${rs.motion.duration.medium1})\n ${rs.motion.easing.standard},\n padding-top var(--m3e-collapsible-animation-duration, ${rs.motion.duration.medium1})\n ${rs.motion.easing.standard},\n padding-bottom var(--m3e-collapsible-animation-duration, ${rs.motion.duration.medium1})\n ${rs.motion.easing.standard}`)}; } :host([orientation="horizontal"]) { width: 0px; transition: ${i(`visibility var(--m3e-collapsible-animation-duration, ${rs.motion.duration.medium1})\n ${rs.motion.easing.standard},\n width var(--m3e-collapsible-animation-duration, ${rs.motion.duration.medium1})\n ${rs.motion.easing.standard},\n padding-left var(--m3e-collapsible-animation-duration, ${rs.motion.duration.medium1})\n ${rs.motion.easing.standard},\n padding-right var(--m3e-collapsible-animation-duration, ${rs.motion.duration.medium1})\n ${rs.motion.easing.standard}`)}; } :host([orientation="both"]) { height: 0px; width: 0px; transition: ${i(`visibility var(--m3e-collapsible-animation-duration, ${rs.motion.duration.medium1})\n ${rs.motion.easing.standard},\n width var(--m3e-collapsible-animation-duration, ${rs.motion.duration.medium1})\n ${rs.motion.easing.standard},\n height var(--m3e-collapsible-animation-duration, ${rs.motion.duration.medium1})\n ${rs.motion.easing.standard},\n padding var(--m3e-collapsible-animation-duration, ${rs.motion.duration.medium1})\n ${rs.motion.easing.standard}`)}; } :host(:not(:is(:state(--closing), :--closing)):not([open])) { visibility: hidden; } :host([orientation="vertical"]:not([open])) { min-height: unset !important; padding-top: 0px !important; padding-bottom: 0px !important; } :host([orientation="horizontal"]:not([open])) { min-width: unset !important; padding-left: 0px !important; padding-right: 0px !important; } :host([orientation="both"]:not([open])) { min-height: unset !important; min-width: unset !important; padding: 0px !important; } :host([no-animate]), :host(:is(:state(--no-animate), :--no-animate)) { transition-duration: 0ms; } :host([orientation="vertical"]:is(:state(--opening), :--opening)), :host([orientation="vertical"]:is(:state(--closing), :--closing)) { overflow-y: hidden !important; } :host([orientation="horizontal"]:is(:state(--opening), :--opening)), :host([orientation="horizontal"]:is(:state(--closing), :--closing)) { overflow-x: hidden !important; } :host([orientation="both"]:is(:state(--opening), :--opening)), :host([orientation="both"]:is(:state(--closing), :--closing)) { overflow-y: hidden !important; overflow-x: hidden !important; } :host(:is(:state(--overflows), :--overflows)) { scrollbar-gutter: stable; } ::slotted(*) { --m3e-collapsible-animation-duration: initial; } @media (prefers-reduced-motion) { :host { transition: none; } }`,m([p({type:Boolean,reflect:!0})],zs.prototype,"open",void 0),m([p({reflect:!0})],zs.prototype,"orientation",void 0),m([p({attribute:"no-animate",type:Boolean,reflect:!0})],zs.prototype,"noAnimate",void 0),zs=m([ot("m3e-collapsible")],zs);const Es=i(`var(--m3e-elevation-lift-duration, ${rs.motion.duration.short4})`),Ss=i(`var(--m3e-elevation-lift-easing, ${rs.motion.easing.standard})`),Ws=i(`var(--m3e-elevation-settle-duration, ${rs.motion.duration.short3})`),Ls=i(`var(--m3e-elevation-settle-easing, ${rs.motion.easing.standardAccelerate})`),Cs=i(`var(--m3e-elevation-level, ${rs.elevation.level0})`),Ms=i(`var(--m3e-elevation-hover-level, ${rs.elevation.level0})`),Fs=i(`var(--m3e-elevation-focus-level, ${rs.elevation.level0})`),Ts=i(`var(--m3e-elevation-pressed-level, ${rs.elevation.level0})`);var Hs,_s,Ds,Bs,As,Ns,Os;let Is=class extends(ps(us(o,"none"))){constructor(){super(...arguments),Hs.add(this),_s.set(this,new Je(this,{target:null,callback:e=>h(this,Hs,"m",As).call(this,e)})),Ds.set(this,new Ze(this,{target:null,callback:e=>h(this,Hs,"m",Ns).call(this,e)})),Bs.set(this,new it(this,{target:null,callback:e=>h(this,Hs,"m",Os).call(this,e)})),this.disabled=!1,this.level=null}attach(e){super.attach(e),h(this,_s,"f").observe(e),h(this,Ds,"f").observe(e),h(this,Bs,"f").observe(e)}detach(){this.control&&(h(this,_s,"f").unobserve(this.control),h(this,Ds,"f").unobserve(this.control),h(this,Bs,"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 n`<div class="shadow"></div>`}};_s=new WeakMap,Ds=new WeakMap,Bs=new WeakMap,Hs=new WeakSet,As=function(e){this.disabled||(this._shadow?.classList.toggle("hover",e),this._shadow?.classList.toggle("resting",!e))},Ns=function(e){this.disabled||this._shadow?.classList.toggle("focus",e)},Os=function(e){this.disabled||this._shadow?.classList.toggle("pressed",e)},Is.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 ${Ws} ${Ls};`)}; } .shadow.hover { will-change: box-shadow; transition: ${i(`box-shadow ${Es} ${Ss};`)}; } .shadow { box-shadow: ${Cs}; } .shadow.focus { box-shadow: ${Fs}; } .shadow.hover { box-shadow: ${Ms}; } .shadow.pressed { box-shadow: ${Ts}; } :host([level="0"]) .shadow { --m3e-elevation-level: ${rs.elevation.level0}; --m3e-elevation-hover-level: ${rs.elevation.level1}; } :host([level="1"]) .shadow { --m3e-elevation-level: ${rs.elevation.level1}; --m3e-elevation-hover-level: ${rs.elevation.level2}; } :host([level="2"]) .shadow { --m3e-elevation-level: ${rs.elevation.level2}; --m3e-elevation-hover-level: ${rs.elevation.level3}; } :host([level="3"]) .shadow { --m3e-elevation-level: ${rs.elevation.level3}; --m3e-elevation-hover-level: ${rs.elevation.level4}; } :host([level="4"]) .shadow { --m3e-elevation-level: ${rs.elevation.level4}; --m3e-elevation-hover-level: ${rs.elevation.level5}; } :host([level="5"]) .shadow { --m3e-elevation-level: ${rs.elevation.level5}; --m3e-elevation-hover-level: ${Cs}; } :host([level]) .shadow { --m3e-elevation-focus-level: ${Cs}; --m3e-elevation-pressed-level: ${Cs}; } @media (prefers-reduced-motion) { .shadow.resting, .shadow.pressed, .shadow.focus, .shadow.hover { transition: none; } } @media (forced-colors: active) { .shadow { display: none; } }`,m([u(".shadow")],Is.prototype,"_shadow",void 0),m([p({type:Boolean,reflect:!0})],Is.prototype,"disabled",void 0),m([p({type:Number,reflect:!0})],Is.prototype,"level",void 0),Is=m([ot("m3e-elevation")],Is);const Ps=i(`var(--m3e-focus-ring-color, ${rs.color.secondary})`),Rs=i(`var(--m3e-focus-ring-duration, ${rs.motion.duration.long2})`),Vs=i("var(--m3e-focus-ring-thickness, 3px)"),Us=i("var(--m3e-focus-ring-outward-offset, 2px)"),qs=i("var(--m3e-focus-ring-inward-offset, 0px)"),Gs=i("var(--m3e-focus-ring-visibility, visible)"),js=i("var(--m3e-focus-ring-growth-factor, 2)");var Xs,Ys,Ks;let Zs=class extends(ps(us(o,"none"))){constructor(){super(...arguments),Xs.add(this),Ys.set(this,new Ze(this,{target:null,callback:(e,t)=>h(this,Xs,"m",Ks).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),h(this,Ys,"f").observe(e)}detach(){this.control&&h(this,Ys,"f").unobserve(this.control),super.detach()}connectedCallback(){this.ariaHidden="true",super.connectedCallback()}disconnectedCallback(){super.disconnectedCallback(),this.hide()}render(){return n`<div class="outline"></div>`}updated(e){super.updated(e),e.has("disabled")&&this.disabled&&this.hide()}};Ys=new WeakMap,Xs=new WeakSet,Ks=function(e){this.disabled||(e?this.show():this.hide())},Zs.styles=a`:host { display: block; position: absolute; left: 0; top: 0; right: 0; bottom: 0; pointer-events: none; border-radius: inherit; outline: none; } .outline { contain: layout style; position: absolute; left: 0; top: 0; right: 0; bottom: 0; pointer-events: none; border-radius: inherit; z-index: 1; outline-color: ${Ps}; outline-width: ${Vs}; visibility: ${Gs}; } .outline.visible { outline-style: solid; } :host(:not([inward])) .outline { outline-offset: ${Us}; } :host([inward]) .outline { outline-offset: calc(${qs} - ${Vs}); } :host(:not([inward])) .outline.visible { animation: grow-shrink ${Rs}; } :host([inward]) .outline.visible { animation: shrink-grow ${Rs}; } @keyframes grow-shrink { 50% { outline-width: calc(${Vs} * ${js}); } } @keyframes shrink-grow { 50% { outline-offset: calc( ${qs} - calc(${Vs} * ${js}) ); outline-width: calc(${Vs} * ${js}); } } @media (prefers-reduced-motion) { :host(:not([inward])) .outline.visible, :host([inward]) .outline.visible { animation: none; } } @media (forced-colors: active) { .outline { outline-color: Highlight; } }`,m([u(".outline")],Zs.prototype,"_outline",void 0),m([p({type:Boolean,reflect:!0})],Zs.prototype,"inward",void 0),m([p({type:Boolean,reflect:!0})],Zs.prototype,"disabled",void 0),Zs=m([ot("m3e-focus-ring")],Zs);let Js=class extends(Rt(ds(us(o,"none")))){connectedCallback(){super.connectedCallback(),this.ariaHidden="true"}render(){return this.indeterminate?n`<svg viewBox="0 -960 960 960" fill="currentColor"><path Required d="M240-440v-80h480v80H240Z"/></svg>`:this.checked?n`<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}};Js.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, 2px); box-sizing: border-box; flex: none; contain: layout style paint; } :host(:not([checked]):not([indeterminate])) { border-width: var(--m3e-checkbox-unselected-outline-thickness, 2px); border-style: solid; } :host(:not([disabled])[checked]), :host(:not([disabled])[indeterminate]) { background-color: var(--m3e-checkbox-selected-container-color, ${rs.color.primary}); color: var(--m3e-checkbox-selected-icon-color, ${rs.color.onPrimary}); } :host(:not([disabled]):not([checked]):not([indeterminate])) { border-color: var(--m3e-checkbox-unselected-outline-color, ${rs.color.onSurfaceVariant}); } :host([disabled]:not([checked]):not([indeterminate])) { border-color: color-mix( in srgb, var(--m3e-checkbox-unselected-disabled-outline-color, ${rs.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, ${rs.color.onSurface}) var(--m3e-checkbox-selected-disabled-container-opacity, 38%), transparent ); color: color-mix( in srgb, var(--m3e-checkbox-selected-disabled-icon-color, ${rs.color.surface}) var(--m3e-checkbox-selected-disabled-icon-opacity, 100%), transparent ); } svg { pointer-events: none; } @media (forced-colors: active) { :host(:not([disabled])[checked]), :host(:not([disabled])[indeterminate]) { border-color: Highlight; background-color: Highlight; color: HighlightText; } :host(:not([disabled]):not([checked]):not([indeterminate])) { border-color: CanvasText; background: Canvas; } :host([disabled]:not([checked]):not([indeterminate])) { border-color: GrayText; background-color: Canvas; } :host([disabled][checked]), :host([disabled][indeterminate]) { background-color: GrayText; color: Canvas; } }`,Js=m([ot("m3e-pseudo-checkbox")],Js);let Qs=class extends(It(ds(us(o,"none")))){connectedCallback(){super.connectedCallback(),this.ariaHidden="true"}render(){return n`<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>`}};Qs.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; contain: layout style paint; } .circle { fill: currentColor; } :host(:not([checked])) .circle.inner { opacity: 0; } :host(:not([checked])) { color: var(--m3e-radio-unselected-icon-color, ${rs.color.onSurfaceVariant}); } :host([checked]) { color: var(--m3e-radio-selected-icon-color, ${rs.color.primary}); } :host([disabled]) { color: color-mix(in srgb, var(--m3e-radio-disabled-icon-color, ${rs.color.onSurface}) 38%, transparent); } @media (forced-colors: active) { :host { border-radius: 50%; } :host(:not([checked])) { color: CanvasText; background-color: Canvas; } :host([checked]) { color: HighlightText; background-color: Highlight; } :host([disabled]) { color: GrayText; background-color: Canvas; } }`,Qs=m([ot("m3e-pseudo-radio")],Qs);const ei=i(`var(--m3e-ripple-color, ${rs.color.onSurface})`),ti=i(`var(--m3e-ripple-opacity, ${rs.state.pressedStateLayerOpacity})`),si=i(`var(--m3e-ripple-enter-duration, ${rs.motion.duration.long4})`),ii=i(`var(--m3e-ripple-exit-duration, ${rs.motion.duration.short2})`),ai=i("var(--m3e-ripple-scale-factor, 2.5)");var oi,ni,ri,li,di,hi;let ci=class extends(ps(us(o,"none"))){constructor(){super(...arguments),oi.add(this),ni.set(this,null),ri.set(this,new it(this,{target:null,minPressedDuration:150,isPressedKey:e=>" "===e,callback:(e,{x:t,y:s})=>h(this,oi,"m",hi).call(this,e,t,s)})),this.disabled=!1,this.centered=!1,this.unbounded=!1,this.radius=null}get visible(){return null!==h(this,ni,"f")}show(e,t,s=!1){h(this,oi,"m",li).call(this);const i=this.getBoundingClientRect();this.centered&&(e=i.left+i.width/2,t=i.top+i.height/2);let a=this.radius;if(!a||isNaN(a)){const s=Math.max(Math.abs(e-i.left),Math.abs(e-i.right)),o=Math.max(Math.abs(t-i.top),Math.abs(t-i.bottom));a=Math.sqrt(s*s+o*o)}const o=e-i.left,n=t-i.top;c(this,ni,document.createElement("div"),"f"),h(this,ni,"f").classList.add("ripple"),s&&h(this,ni,"f").classList.add("persistent"),h(this,ni,"f").style.left=o-a+"px",h(this,ni,"f").style.top=n-a+"px",h(this,ni,"f").style.width=2*a+"px",h(this,ni,"f").style.height=2*a+"px",h(this,ni,"f").addEventListener("animationend",()=>h(this,oi,"m",di).call(this,s),{once:!0}),h(this,ni,"f").addEventListener("transitionend",()=>h(this,oi,"m",li).call(this),{once:!0}),this.shadowRoot?.appendChild(h(this,ni,"f"))}hide(){h(this,ni,"f")?.classList.add("exit")}attach(e){super.attach(e),h(this,ri,"f").observe(e)}detach(){this.control&&h(this,ri,"f").unobserve(this.control),super.detach()}connectedCallback(){this.ariaHidden="true",super.connectedCallback()}disconnectedCallback(){super.disconnectedCallback(),h(this,oi,"m",li).call(this)}updated(e){super.updated(e),e.has("disabled")&&this.disabled&&this.hide()}};var mi;ni=new WeakMap,ri=new WeakMap,oi=new WeakSet,li=function(){h(this,ni,"f")?.remove(),c(this,ni,null,"f")},di=function(e){e?h(this,ni,"f")?.classList.add("pressed"):this.hide()},hi=function(e,t,s){this.disabled||(e?this.show(t,s,!0):this.hide())},ci.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; } :host(:not([unbounded])) .ripple { contain: layout style paint; } :host([unbounded]) .ripple { contain: layout style; } .ripple { display: block; position: absolute; left: 0; top: 0; right: 0; bottom: 0; pointer-events: none; transform: scale(0); border-radius: ${rs.shape.corner.full}; background-color: color-mix(in srgb, ${ei} ${ti}, transparent); will-change: background-color, opacity; animation: ripple ${si} linear; } .ripple.persistent.pressed { transform: scale(${ai}); } .ripple.exit { transition: opacity ${ii} cubic-bezier(0, 0, 0.2, 0.1); opacity: 0; } @keyframes ripple { to { transform: scale(${ai}); } } @media (prefers-reduced-motion) { .ripple { transform: scale(${ai}); animation-duration: 90ms; } .ripple.exit { transition-duration: 10ms; } } @media (forced-colors: active) { .ripple { display: none; } }`,m([p({type:Boolean,reflect:!0})],ci.prototype,"disabled",void 0),m([p({type:Boolean,reflect:!0})],ci.prototype,"centered",void 0),m([p({type:Boolean,reflect:!0})],ci.prototype,"unbounded",void 0),m([p({type:Number})],ci.prototype,"radius",void 0),ci=m([ot("m3e-ripple")],ci);let pi=class extends(_t(o)){constructor(){super(...arguments),mi.set(this,()=>this._updateScroll()),this.dividers="above-below",this.thin=!1}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("scroll",h(this,mi,"f"))}update(e){super.update(e),e.has("dividers")&&(this.removeEventListener("scroll",h(this,mi,"f")),"none"!==this.dividers&&this.addEventListener("scroll",h(this,mi,"f"),{passive:!0}))}render(){return n`<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;Nt(this,"--above",e),Nt(this,"--below",t)}};var ui,vi,fi,yi;mi=new WeakMap,pi.styles=a`:host { display: block; overflow-y: auto; position: relative; box-sizing: border-box; scrollbar-color: ${rs.scrollbar.color}; border-top: var(--m3e-divider-thickness, 1px) solid transparent; border-bottom: var(--m3e-divider-thickness, 1px) solid transparent; outline-color: ${Ps}; outline-width: ${Vs}; outline-offset: ${Us}; } :host([thin]) { scrollbar-width: ${rs.scrollbar.thinWidth}; } :host(:not([thin])) { scrollbar-width: ${rs.scrollbar.width}; } :host(:not(:focus-visible):is(:state(--above), :--above)) { border-top-color: var(--m3e-divider-color, ${rs.color.outlineVariant}); } :host(:not(:focus-visible):is(:state(--below), :--below)) { border-bottom-color: var(--m3e-divider-color, ${rs.color.outlineVariant}); } :host(:focus-visible) { outline-style: solid; animation: grow-shrink ${Rs}; } @keyframes grow-shrink { 50% { outline-width: calc(${Vs} * ${js}); } } @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):is(:state(--above), :--above)) { border-top-color: GrayText; } :host(:not(:focus-visible):is(:state(--below), :--below)) { border-bottom-color: GrayText; } } @media (prefers-reduced-motion) { :host(:focus-visible) { animation: none; } }`,m([p()],pi.prototype,"dividers",void 0),m([p({type:Boolean,reflect:!0})],pi.prototype,"thin",void 0),m([nt(40)],pi.prototype,"_updateScroll",null),pi=m([ot("m3e-scroll-container")],pi);let gi=class extends(_t(o)){constructor(){super(...arguments),ui.add(this),vi.set(this,new Array),this.selectedIndex=null}connectedCallback(){super.connectedCallback(),Bt(this,"--no-animate")}update(e){super.update(e),e.has("selectedIndex")&&(null===this.selectedIndex&&Bt(this,"--no-animate"),h(this,ui,"m",yi).call(this),null!==this.selectedIndex&&Dt(this,"--no-animate")&&requestAnimationFrame(()=>{null!==this.selectedIndex&&At(this,"--no-animate")}))}render(){return n`<slot @slotchange="${h(this,ui,"m",fi)}"></slot>`}};vi=new WeakMap,ui=new WeakSet,fi=function(e){const t=[...e.target.assignedElements({flatten:!0})];for(const e of h(this,vi,"f").filter(e=>!t.includes(e)))e.classList.remove("-before"),e.classList.remove("-after"),e.removeAttribute("inert");c(this,vi,t,"f"),h(this,ui,"m",yi).call(this)},yi=function(){const e=this.selectedIndex??h(this,vi,"f").length;for(let t=0;t<h(this,vi,"f").length;t++){const s=h(this,vi,"f")[t];s.classList.toggle("-before",t<e),s.classList.toggle("-after",t>e),s.toggleAttribute("inert",t!==e)}},gi.styles=a`:host { display: flex; position: relative; overflow: hidden; } ::slotted(*) { width: 100%; top: 0; transition: ${i(`inset-inline-start var(--m3e-slide-animation-duration, ${rs.motion.duration.long2}) ${rs.motion.easing.standard},\n visibility var(--m3e-slide-animation-duration, ${rs.motion.duration.long2}) ${rs.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(:is(:state(--no-animate), :--no-animate)) ::slotted(*) { transition: none; } @media (prefers-reduced-motion) { ::slotted(*) { transition: none; } }`,m([p({attribute:"selected-index",type:Number,reflect:!0})],gi.prototype,"selectedIndex",void 0),gi=m([ot("m3e-slide")],gi);const xi=i(`var(--m3e-state-layer-hover-color, ${rs.color.onSurface})`),bi=i(`var(--m3e-state-layer-hover-opacity, ${rs.state.hoverStateLayerOpacity})`),wi=i(`var(--m3e-state-layer-focus-color, ${rs.color.onSurface})`),ki=i(`var(--m3e-state-layer-focus-opacity, ${rs.state.focusStateLayerOpacity})`),$i=i(`var(--m3e-state-layer-duration, ${rs.motion.duration.medium1})`),zi=i(`var(--m3e-state-layer-easing, ${rs.motion.easing.standard})`);var Ei,Si,Wi,Li,Ci;let Mi=class extends(ps(us(o,"none"))){constructor(){super(...arguments),Ei.add(this),Si.set(this,new Je(this,{target:null,callback:e=>h(this,Ei,"m",Li).call(this,e)})),Wi.set(this,new Ze(this,{target:null,callback:(e,t)=>h(this,Ei,"m",Ci).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),h(this,Si,"f").observe(e),h(this,Wi,"f").observe(e)}detach(){this.control&&(h(this,Si,"f").unobserve(this.control),h(this,Wi,"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 n`<div class="layer"></div>`}};var Fi,Ti,Hi,_i,Di,Bi,Ai,Ni;Si=new WeakMap,Wi=new WeakMap,Ei=new WeakSet,Li=function(e){this.disabled||this.disableHover||(e?this.show("hover"):this.hide("hover"))},Ci=function(e){this.disabled||(e?this.show("focused"):this.hide("focused"))},Mi.styles=a`:host { display: block; } :host, .layer { position: absolute; left: 0; top: 0; right: 0; bottom: 0; pointer-events: none; border-radius: inherit; } .layer { contain: layout style paint; will-change: background-color; transition: ${i(`background-color ${$i} ${zi}`)}; } .layer.focused { background-color: color-mix(in srgb, ${wi} ${ki}, transparent); } .layer.hover { background-color: color-mix(in srgb, ${xi} ${bi}, transparent); } @media (prefers-reduced-motion) { .layer { transition: none; } } @media (forced-colors: active) { .layer { display: none; } }`,m([u(".layer")],Mi.prototype,"_layer",void 0),m([p({type:Boolean,reflect:!0})],Mi.prototype,"disabled",void 0),m([p({attribute:"disable-hover",type:Boolean,reflect:!0})],Mi.prototype,"disableHover",void 0),Mi=m([ot("m3e-state-layer")],Mi);let Oi=Ni=class extends o{constructor(){super(),Fi.add(this),Ti.set(this,"m3e-text-highlight-"+Ni.__nextId++),Hi.set(this,new Array),_i.set(this,null),this.disabled=!1,this.term="",this.caseSensitive=!1,this.mode="contains",this.isSupported&&(c(this,_i,new CSSStyleSheet,"f"),h(this,_i,"f").replaceSync(a`::highlight(${i(h(this,Ti,"f"))}) { background-color: var(--m3e-text-highlight-container-color, ${rs.color.secondaryContainer}); color: var(--m3e-text-highlight-color, ${rs.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 h(this,Hi,"f")}firstUpdated(e){super.firstUpdated(e),this.shadowRoot&&h(this,_i,"f")&&!this.shadowRoot.adoptedStyleSheets.includes(h(this,_i,"f"))&&this.shadowRoot.adoptedStyleSheets.push(h(this,_i,"f"))}updated(e){super.updated(e),(e.has("term")||e.has("caseSensitive")||e.has("disabled"))&&h(this,Fi,"m",Ai).call(this)}render(){return n`<slot @slotchange="${h(this,Fi,"m",Ai)}"></slot>`}};Ti=new WeakMap,Hi=new WeakMap,_i=new WeakMap,Fi=new WeakSet,Di=function(e){return!/^\s*$/.test(e.data)},Bi=function e(t,s){t instanceof HTMLSlotElement?t.assignedNodes({flatten:!0}).forEach(t=>{switch(t.nodeType){case Node.TEXT_NODE:h(this,Fi,"m",Di).call(this,t)&&s.push(t);break;case Node.ELEMENT_NODE:h(this,Fi,"m",e).call(this,t,s)}}):t.childNodes.forEach(t=>{switch(t.nodeType){case Node.TEXT_NODE:h(this,Fi,"m",Di).call(this,t)&&s.push(t);break;case Node.ELEMENT_NODE:h(this,Fi,"m",e).call(this,t,s)}})},Ai=function(){if(!this.isSupported||!this.isConnected)return;if(CSS.highlights.delete(h(this,Ti,"f")),h(this,Hi,"f").length=0,this.disabled)return;if(!this.term)return void this.dispatchEvent(new CustomEvent("highlight",{detail:[...h(this,Hi,"f")],bubbles:!1,composed:!1}));const e=new Array;if(h(this,Fi,"m",Bi).call(this,this,e),e.length>0){const t=this.caseSensitive?this.term:this.term.toLowerCase();switch(this.mode){case"starts-with":{const s=e[0];if(((this.caseSensitive?s.textContent:s.textContent?.toLowerCase())??"").startsWith(t)){const e=new Range;e.setStart(s,0),e.setEnd(s,t.length),h(this,Hi,"f").push(e)}}break;case"ends-with":{const s=e[e.length-1],i=(this.caseSensitive?s.textContent:s.textContent?.toLowerCase())??"";if(i.endsWith(t)){const e=i.length-t.length,a=e+t.length,o=new Range;o.setStart(s,e),o.setEnd(s,a),h(this,Hi,"f").push(o)}}break;case"contains":c(this,Hi,e.map(e=>({el:e,text:(this.caseSensitive?e.textContent:e.textContent?.toLowerCase())??""})).map(({el:e,text:s})=>{const i=new Array;let a=0;for(;a<s.length;){const e=s.indexOf(t,a);if(-1===e)break;i.push(e),a=e+t.length}return i.map(s=>{const i=new Range;return i.setStart(e,s),i.setEnd(e,s+t.length),i})}).flat(),"f")}h(this,Hi,"f").length>0&&CSS.highlights.set(h(this,Ti,"f"),new Highlight(...h(this,Hi,"f")))}this.dispatchEvent(new CustomEvent("highlight",{detail:[...h(this,Hi,"f")],bubbles:!1,composed:!1}))},Oi.styles=a`:host { display: contents; }`,Oi.__nextId=0,m([p({type:Boolean,reflect:!0})],Oi.prototype,"disabled",void 0),m([p()],Oi.prototype,"term",void 0),m([p({attribute:"case-sensitive",type:Boolean})],Oi.prototype,"caseSensitive",void 0),m([p()],Oi.prototype,"mode",void 0),Oi=Ni=m([ot("m3e-text-highlight")],Oi);let Ii=class extends o{render(){return n`<span class="base"><slot></slot></span>`}};Ii.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; }`,Ii=m([ot("m3e-text-overflow")],Ii);export{$s as ActionElementBase,Ue as AnimationLoopController,_t as AttachInternals,It as Checked,Rt as CheckedIndeterminate,Ge as ClickOutsideController,rs as DesignToken,ds as Disabled,Ze as FocusController,Je as HoverController,ps as HtmlFor,Qe as InertController,et as IntersectionController,tt as LongPressController,zs as M3eCollapsibleElement,Is as M3eElevationElement,Zs as M3eFocusRingElement,Js as M3ePseudoCheckboxElement,Qs as M3ePseudoRadioElement,ci as M3eRippleElement,pi as M3eScrollContainerElement,gi as M3eSlideElement,Mi as M3eStateLayerElement,Oi as M3eTextHighlightElement,Ii as M3eTextOverflowElement,st as MutationController,it as PressedController,at as ResizeController,us as Role,$t as ScrollController,zt as ScrollLockController,Ke as VelocityTracker,Bt as addCustomState,ot as customElement,nt as debounce,At as deleteCustomState,je as forcedColorsActive,Dt as hasCustomState,Ct as hasKeys,Mt as internals,Ft as isAttachInternalsMixin,Pt as isCheckedIndeterminateMixin,Ot as isCheckedMixin,ls as isDisabledMixin,hs as isHtmlForMixin,Xe as prefersReducedMotion,Ye as resolveElementById,Lt as safeStyleMap,Nt as setCustomState,Et as timeConverter};
7
+ //# sourceMappingURL=TextOverflowElement.min.js.map