@m3e/web 2.5.8 → 2.5.10

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