@m3e/web 2.2.1 → 2.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (55) hide show
  1. package/README.md +2 -0
  2. package/dist/all.js +782 -5
  3. package/dist/all.js.map +1 -1
  4. package/dist/all.min.js +45 -45
  5. package/dist/all.min.js.map +1 -1
  6. package/dist/calendar.js +4 -2
  7. package/dist/calendar.js.map +1 -1
  8. package/dist/calendar.min.js +3 -3
  9. package/dist/calendar.min.js.map +1 -1
  10. package/dist/core.js +22 -1
  11. package/dist/core.js.map +1 -1
  12. package/dist/core.min.js +1 -1
  13. package/dist/core.min.js.map +1 -1
  14. package/dist/css-custom-data.json +733 -603
  15. package/dist/custom-elements.json +8398 -7000
  16. package/dist/datepicker.js +3 -1
  17. package/dist/datepicker.js.map +1 -1
  18. package/dist/datepicker.min.js +1 -1
  19. package/dist/datepicker.min.js.map +1 -1
  20. package/dist/html-custom-data.json +293 -205
  21. package/dist/skeleton.js +153 -0
  22. package/dist/skeleton.js.map +1 -0
  23. package/dist/skeleton.min.js +7 -0
  24. package/dist/skeleton.min.js.map +1 -0
  25. package/dist/split-pane.js +627 -0
  26. package/dist/split-pane.js.map +1 -0
  27. package/dist/split-pane.min.js +7 -0
  28. package/dist/split-pane.min.js.map +1 -0
  29. package/dist/src/all.d.ts +2 -0
  30. package/dist/src/all.d.ts.map +1 -1
  31. package/dist/src/calendar/CalendarElement.d.ts +2 -0
  32. package/dist/src/calendar/CalendarElement.d.ts.map +1 -1
  33. package/dist/src/calendar/CalendarViewElementBase.d.ts.map +1 -1
  34. package/dist/src/calendar/MonthViewElement.d.ts.map +1 -1
  35. package/dist/src/core/shared/utils/index.d.ts +1 -0
  36. package/dist/src/core/shared/utils/index.d.ts.map +1 -1
  37. package/dist/src/core/shared/utils/waitForUpgrade.d.ts +6 -0
  38. package/dist/src/core/shared/utils/waitForUpgrade.d.ts.map +1 -0
  39. package/dist/src/datepicker/DatepickerElement.d.ts +2 -0
  40. package/dist/src/datepicker/DatepickerElement.d.ts.map +1 -1
  41. package/dist/src/skeleton/SkeletonAnimation.d.ts +3 -0
  42. package/dist/src/skeleton/SkeletonAnimation.d.ts.map +1 -0
  43. package/dist/src/skeleton/SkeletonElement.d.ts +73 -0
  44. package/dist/src/skeleton/SkeletonElement.d.ts.map +1 -0
  45. package/dist/src/skeleton/SkeletonShape.d.ts +3 -0
  46. package/dist/src/skeleton/SkeletonShape.d.ts.map +1 -0
  47. package/dist/src/skeleton/index.d.ts +4 -0
  48. package/dist/src/skeleton/index.d.ts.map +1 -0
  49. package/dist/src/split-pane/SplitPaneElement.d.ts +163 -0
  50. package/dist/src/split-pane/SplitPaneElement.d.ts.map +1 -0
  51. package/dist/src/split-pane/SplitPaneOrientation.d.ts +3 -0
  52. package/dist/src/split-pane/SplitPaneOrientation.d.ts.map +1 -0
  53. package/dist/src/split-pane/index.d.ts +3 -0
  54. package/dist/src/split-pane/index.d.ts.map +1 -0
  55. package/package.json +11 -1
package/dist/core.min.js CHANGED
@@ -3,5 +3,5 @@
3
3
  * Copyright (c) 2025 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 c}from"lit";import{directive as d,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,$,E,S,C,z,M,L,W,F,A,D,_,T,H,P,I,O,B,N,V,R,U,q,j,X,Z,Y,G,K,Q,J,ee,te,se,ie,ae,ne,re,oe,le,ce,de,he,pe,me,ue,fe,ve,ye,ge,be,xe,we,ke,$e,Ee,Se,Ce,ze,Me,Le,We,Fe,Ae,De,_e,Te,He,Pe,Ie;class Oe{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 Be{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 Ne(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 Ve(e){const t=parseFloat(getComputedStyle(e).lineHeight);return isNaN(t)||t<=0?0:Math.round(e.scrollHeight/t)}async function Re(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 Ue(){return!i&&matchMedia("(forced-colors: active)").matches}function qe(e,t,s){return e+(t-e)*s}function je(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 Xe(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 Ze(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=je(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=Xe(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:qe(e.x,t.x,i),y:qe(e.y,t.y,i)})}else if("Q"===s.type){const[e,t,a]=s.pts;o.push(je(e,t,a,i))}else if("C"===s.type){const[e,t,a,n]=s.pts;o.push(Xe(e,t,a,n,i))}}return o}function Ye(e,t,s){return Math.max(t,Math.min(s,e))}function Ge(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 Ke(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 Qe(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 Je(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(Qe(s));for(let e=1;e<t.length;e++){let a=t[e];const n=Math.sign(Qe(a));0!==n&&n!==i&&(a=a.slice().reverse());const r=Ke(s,a);t[e]=Ge(a,r)}return t}(e.map(e=>Ze(e,t))).map(e=>`${e.map(e=>{const t=Ye(100*e.x,0,100),s=Ye(100*e.y,0,100);return`${t.toFixed(2)}% ${s.toFixed(2)}%`}).join(", ")}`)}function et(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+=et(i,t);else for(const i of e.childNodes)s+=et(i,t)}return t&&(s=s.trim()),s}function tt(){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 st(e){return e.assignedNodes({flatten:!0}).length>0}function it(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 at(){return i||matchMedia("(prefers-reduced-motion)").matches}function nt(e){if("undefined"==typeof window)return;const t=new CSSStyleSheet;t.replaceSync(e.toString()),document.adoptedStyleSheets=[...document.adoptedStyleSheets,t]}function rt(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 ot(e){const t=document?.location??null;return`url(${t?(t.pathname+t.search).split("#")[0]:""}#${e})`}function lt(e,t,s){const i=t.getBoundingClientRect(),a=e.getBoundingClientRect();(a.top<i.top||a.bottom>i.bottom)&&e.scrollIntoView(s)}w=new WeakMap,k=new WeakMap,$=new WeakMap;class ct{constructor(e=100){E.set(this,[]),S.set(this,void 0),t(this,S,e,"f")}add(t,s=performance.now()){e(this,E,"f").push({y:t,t:s});const i=s-e(this,S,"f");for(;e(this,E,"f").length>1&&e(this,E,"f")[0].t<i;)e(this,E,"f").shift()}getVelocity(){if(e(this,E,"f").length<2)return 0;const t=e(this,E,"f")[0],s=e(this,E,"f")[e(this,E,"f").length-1],i=s.y-t.y,a=(s.t-t.t)/1e3;return a>0?i/a:0}reset(){e(this,E,"f").length=0}}E=new WeakMap,S=new WeakMap;class dt extends Be{constructor(s,i){super(s,i),C.add(this),z.set(this,!1),M.set(this,void 0),L.set(this,t=>e(this,C,"m",P).call(this,t)),W.set(this,t=>e(this,C,"m",I).call(this,t)),F.set(this,t=>e(this,C,"m",O).call(this,t)),A.set(this,()=>t(this,z,!0,"f")),D.set(this,()=>t(this,z,!1,"f")),_.set(this,!1),T.set(this,()=>t(this,_,!0,"f")),H.set(this,()=>t(this,_,!1,"f")),t(this,M,i.callback,"f")}hostConnected(){super.hostConnected(),window?.addEventListener("keydown",e(this,T,"f"),{capture:!0,passive:!0}),window?.addEventListener("pointerdown",e(this,H,"f"),{capture:!0})}hostDisconnected(){super.hostDisconnected(),window?.removeEventListener("keydown",e(this,T,"f"),{capture:!0}),window?.removeEventListener("pointerdown",e(this,H,"f"),{capture:!0})}_observe(t){t.addEventListener("keydown",e(this,L,"f")),t.addEventListener("focusin",e(this,W,"f")),t.addEventListener("focusout",e(this,F,"f")),t.addEventListener("touchstart",e(this,A,"f")),t.addEventListener("touchend",e(this,D,"f")),t.addEventListener("touchcancel",e(this,D,"f"))}_unobserve(t){t.removeEventListener("keydown",e(this,L,"f")),t.removeEventListener("focusin",e(this,W,"f")),t.removeEventListener("focusout",e(this,F,"f")),t.removeEventListener("touchstart",e(this,A,"f")),t.removeEventListener("touchend",e(this,D,"f")),t.removeEventListener("touchcancel",e(this,D,"f"))}}z=new WeakMap,M=new WeakMap,L=new WeakMap,W=new WeakMap,F=new WeakMap,A=new WeakMap,D=new WeakMap,_=new WeakMap,T=new WeakMap,H=new WeakMap,C=new WeakSet,P=function(t){t.currentTarget.matches(":focus-within")&&e(this,C,"m",I).call(this,t)},I=function(t){if(e(this,z,"f"))return;const s=t.currentTarget;e(this,M,"f").call(this,!0,s.matches(":focus-visible")||e(this,_,"f")||Ue(),s)},O=function(t){e(this,z,"f")||e(this,M,"f").call(this,!1,!1,t.currentTarget)};class ht extends Be{constructor(s,i){super(s,i),B.add(this),N.set(this,void 0),V.set(this,new Map),R.set(this,new Map),U.set(this,t=>e(this,B,"m",Y).call(this,t)),q.set(this,t=>e(this,B,"m",G).call(this,t)),t(this,N,i.callback,"f"),this.startDelay=i.startDelay??0,this.endDelay=i.endDelay??0}clearDelays(){for(const t of this.targets)e(this,B,"m",j).call(this,t)}_observe(t){t.addEventListener("pointerenter",e(this,U,"f")),t.addEventListener("pointerleave",e(this,q,"f")),t.addEventListener("touchend",e(this,q,"f"))}_unobserve(t){t.removeEventListener("pointerenter",e(this,U,"f")),t.removeEventListener("pointerleave",e(this,q,"f")),t.removeEventListener("touchend",e(this,q,"f"))}}N=new WeakMap,V=new WeakMap,R=new WeakMap,U=new WeakMap,q=new WeakMap,B=new WeakSet,j=function(t){e(this,B,"m",X).call(this,t),e(this,B,"m",Z).call(this,t)},X=function(t){return!!e(this,V,"f").has(t)&&(clearTimeout(e(this,V,"f").get(t)),e(this,V,"f").delete(t))},Z=function(t){return!!e(this,R,"f").has(t)&&(clearTimeout(e(this,R,"f").get(t)),e(this,R,"f").delete(t))},Y=function(t){const s=t.target;e(this,B,"m",Z).call(this,s),this.startDelay>0?(e(this,B,"m",X).call(this,s),e(this,V,"f").set(s,setTimeout(()=>{e(this,V,"f").delete(s),e(this,N,"f").call(this,!0,s)},this.startDelay))):e(this,N,"f").call(this,!0,s)},G=function(t){const s=t.target;e(this,B,"m",X).call(this,s)||(this.endDelay>0?(e(this,B,"m",Z).call(this,s),e(this,R,"f").set(s,setTimeout(()=>{e(this,R,"f").delete(s),e(this,N,"f").call(this,!1,s)},this.endDelay))):e(this,N,"f").call(this,!1,s))};class pt{constructor(e){K.set(this,void 0),Q.set(this,new Array),t(this,K,e,"f"),e.addController(this)}lock(){this.unlock();for(let t=e(this,K,"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,Q,"f").push(s))}unlock(){e(this,Q,"f").forEach(e=>e.inert=!1),e(this,Q,"f").length=0}hostDisconnected(){this.unlock()}}K=new WeakMap,Q=new WeakMap;class mt extends Be{constructor(s,a){super(s,a),J.set(this,void 0),ee.set(this,!1),te.set(this,void 0),se.set(this,!0),t(this,J,a.callback,"f"),t(this,ee,a.skipInitial??!1,"f"),i||(window.IntersectionObserver?t(this,te,new IntersectionObserver((t,s)=>{e(this,J,"f").call(this,t,s)},a.init),"f"):console.warn("IntersectionController error: the browser does not support IntersectionObserver."))}async hostUpdated(){e(this,te,"f")&&!e(this,ee,"f")&&e(this,se,"f")&&e(this,J,"f").call(this,[],e(this,te,"f")),t(this,se,!1,"f")}_observe(s){e(this,te,"f")?.observe(s),t(this,se,!0,"f")}_unobserve(t){e(this,te,"f")?.unobserve(t)}}J=new WeakMap,ee=new WeakMap,te=new WeakMap,se=new WeakMap;class ut extends Be{constructor(s,i){super(s,i),ie.add(this),ae.set(this,void 0),ne.set(this,void 0),re.set(this,new Set),oe.set(this,new Map),le.set(this,t=>e(this,ie,"m",de).call(this,t)),ce.set(this,t=>e(this,ie,"m",he).call(this,t)),t(this,ae,i.callback,"f"),t(this,ne,i.threshold??500,"f")}_observe(t){t.addEventListener("touchstart",e(this,le,"f"),{passive:!0}),t.addEventListener("touchend",e(this,ce,"f")),t.addEventListener("touchcancel",e(this,ce,"f"))}_unobserve(t){t.removeEventListener("touchstart",e(this,le,"f")),t.removeEventListener("touchend",e(this,ce,"f")),t.removeEventListener("touchcancel",e(this,ce,"f"))}}ae=new WeakMap,ne=new WeakMap,re=new WeakMap,oe=new WeakMap,le=new WeakMap,ce=new WeakMap,ie=new WeakSet,de=function(t){if(t.currentTarget instanceof HTMLElement&&this.isObserving(t.currentTarget)){const s=t.currentTarget;e(this,oe,"f").set(s,setTimeout(()=>{e(this,re,"f").add(s),e(this,oe,"f").delete(s),e(this,ae,"f").call(this,!0,s)},e(this,ne,"f")))}},he=function(t){if(t.currentTarget instanceof HTMLElement&&this.isObserving(t.currentTarget)){const s=t.currentTarget;e(this,re,"f").has(s)&&(e(this,ae,"f").call(this,!1,s),e(this,re,"f").delete(s)),e(this,oe,"f").has(s)&&(clearTimeout(e(this,oe,"f").get(s)),e(this,oe,"f").delete(s))}};class ft extends Be{constructor(s,a){super(s,a),pe.set(this,void 0),me.set(this,!1),ue.set(this,void 0),fe.set(this,void 0),ve.set(this,!0),t(this,pe,a.callback,"f"),t(this,me,a.skipInitial??!1,"f"),t(this,ue,a.config,"f"),i||(window.MutationObserver?t(this,fe,new MutationObserver((t,s)=>e(this,pe,"f").call(this,t,s)),"f"):console.warn("MutationController error: the browser does not support MutationObserver."))}async hostUpdated(){if(e(this,fe,"f")&&!e(this,me,"f")&&e(this,ve,"f")){const t=e(this,fe,"f").takeRecords();t.length>0&&e(this,pe,"f").call(this,t,e(this,fe,"f"))}t(this,ve,!1,"f")}hostDisconnected(){super.hostDisconnected(),e(this,fe,"f")?.disconnect()}_observe(s){e(this,fe,"f")?.observe(s,e(this,ue,"f")),t(this,ve,!0,"f")}_unobserve(){e(this,fe,"f")?.disconnect();for(const t of this.targets)e(this,fe,"f")?.observe(t,e(this,ue,"f"))}}pe=new WeakMap,me=new WeakMap,ue=new WeakMap,fe=new WeakMap,ve=new WeakMap;class vt extends Be{constructor(s,i){super(s,i),ye.add(this),ge.set(this,void 0),be.set(this,void 0),xe.set(this,void 0),we.set(this,new Map),ke.set(this,void 0),$e.set(this,t=>e(this,ye,"m",Me).call(this,t)),Ee.set(this,t=>e(this,ye,"m",Le).call(this,t)),Se.set(this,t=>e(this,ye,"m",We).call(this,t)),Ce.set(this,t=>e(this,ye,"m",Fe).call(this,t)),ze.set(this,t=>e(this,ye,"m",Ae).call(this,t)),t(this,ge,i.capture,"f"),t(this,be,i.callback,"f"),t(this,xe,i.isPressedKey,"f"),t(this,ke,i.minPressedDuration??0,"f")}hostConnected(){document.addEventListener("pointerup",e(this,Ee,"f"),{capture:e(this,ge,"f")}),document.addEventListener("touchend",e(this,Se,"f"),{capture:e(this,ge,"f")}),document.addEventListener("touchcancel",e(this,Se,"f"),{capture:e(this,ge,"f")}),super.hostConnected()}hostDisconnected(){document.removeEventListener("pointerup",e(this,Ee,"f"),{capture:e(this,ge,"f")}),document.removeEventListener("touchend",e(this,Se,"f"),{capture:e(this,ge,"f")}),document.removeEventListener("touchcancel",e(this,Se,"f"),{capture:e(this,ge,"f")}),super.hostDisconnected(),e(this,we,"f").clear()}_observe(t){t.addEventListener("pointerdown",e(this,$e,"f"),{capture:e(this,ge,"f")}),e(this,xe,"f")&&(t.addEventListener("keydown",e(this,Ce,"f"),{capture:e(this,ge,"f")}),t.addEventListener("keyup",e(this,ze,"f"),{capture:e(this,ge,"f")}))}_unobserve(t){t.removeEventListener("pointerdown",e(this,$e,"f"),{capture:e(this,ge,"f")}),e(this,xe,"f")&&(t.removeEventListener("keydown",e(this,Ce,"f"),{capture:e(this,ge,"f")}),t.removeEventListener("keyup",e(this,ze,"f"),{capture:e(this,ge,"f")}))}}ge=new WeakMap,be=new WeakMap,xe=new WeakMap,we=new WeakMap,ke=new WeakMap,$e=new WeakMap,Ee=new WeakMap,Se=new WeakMap,Ce=new WeakMap,ze=new WeakMap,ye=new WeakSet,Me=function(t){if(!("mouse"===t.pointerType&&t.button>1))for(const s of t.composedPath())if(s instanceof HTMLElement&&this.isObserving(s)){e(this,we,"f").has(s)||(e(this,we,"f").set(s,performance.now()),e(this,be,"f").call(this,!0,{x:t.x,y:t.y},s));break}},Le=function(t){"mouse"===t.pointerType&&t.button>1||e(this,ye,"m",De).call(this,t.x,t.y)},We=function(t){e(this,ye,"m",De).call(this,t.changedTouches[0]?.clientX??0,t.changedTouches[0]?.clientY??0)},Fe=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,we,"f").has(s))){e(this,we,"f").set(s,performance.now());const t=s.getBoundingClientRect();e(this,be,"f").call(this,!0,{x:t.x+t.width/2,y:t.y+t.height/2},s)}},Ae=function(t){const s=t.target;if(e(this,we,"f").has(s)&&e(this,xe,"f")?.call(this,t.key)){const t=e(this,ke,"f")-(performance.now()-e(this,we,"f").get(s)),i=s.getBoundingClientRect();t>0?setTimeout(()=>{e(this,we,"f").delete(s),e(this,be,"f").call(this,!1,{x:i.x+i.width/2,y:i.y+i.height/2},s)},t):(e(this,we,"f").delete(s),e(this,be,"f").call(this,!1,{x:i.x+i.width/2,y:i.y+i.height/2},s))}},De=function(t,s){for(const i of e(this,we,"f")){const a=e(this,ke,"f")-(performance.now()-i[1]);a>0?setTimeout(()=>{e(this,we,"f").delete(i[0]),e(this,be,"f").call(this,!1,{x:t,y:s},i[0])},a):(e(this,we,"f").delete(i[0]),e(this,be,"f").call(this,!1,{x:t,y:s},i[0]))}};class yt extends Be{constructor(s,a){super(s,a),_e.set(this,void 0),Te.set(this,void 0),He.set(this,void 0),Pe.set(this,void 0),Ie.set(this,!0),t(this,_e,a.callback,"f"),t(this,Te,a.skipInitial??!1,"f"),t(this,He,a.config,"f"),i||(window.ResizeObserver?t(this,Pe,new ResizeObserver((t,s)=>e(this,_e,"f").call(this,t,s)),"f"):console.warn("ResizeController error: the browser does not support ResizeObserver."))}async hostUpdated(){e(this,Pe,"f")&&!e(this,Te,"f")&&e(this,Ie,"f")&&e(this,_e,"f").call(this,[],e(this,Pe,"f")),t(this,Ie,!1,"f")}_observe(s){e(this,Pe,"f")?.observe(s,e(this,He,"f")),t(this,Ie,!0,"f")}_unobserve(t){e(this,Pe,"f")?.unobserve(t)}}_e=new WeakMap,Te=new WeakMap,He=new WeakMap,Pe=new WeakMap,Ie=new WeakMap;const gt=e=>(t,s)=>{const i=()=>{"undefined"==typeof window||customElements.get(e)||customElements.define(e,t)};s?s.addInitializer(i):i()};function bt(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 xt,wt,kt,$t,Et,St,Ct,zt,Mt,Lt,Wt,Ft,At,Dt;class _t extends Be{constructor(s,i){super(s,i),xt.add(this),wt.set(this,void 0),kt.set(this,void 0),$t.set(this,t=>e(this,xt,"m",Ct).call(this,t)),Et.set(this,new Map),t(this,wt,!0===i.debounce,"f"),t(this,kt,i.callback,"f")}getScrollContainers(t){return e(this,Et,"f").get(t)}_observe(t){const s=e(this,xt,"m",St).call(this,t);if(s.length>0){e(this,Et,"f").set(t,s);for(const t of s)(t===document.documentElement?document:t).addEventListener("scroll",e(this,$t,"f"),{passive:!0})}}_unobserve(t){if(e(this,Et,"f").has(t)){for(const s of e(this,Et,"f").get(t))(s===document.documentElement?document:s).removeEventListener("scroll",e(this,$t,"f"));e(this,Et,"f").delete(t)}}_debounceCallback(t){e(this,kt,"f").call(this,t)}}wt=new WeakMap,kt=new WeakMap,$t=new WeakMap,Et=new WeakMap,xt=new WeakSet,St=function(e){const t=new Array;let s=e;for(;s;){const e=getComputedStyle(s);/(auto|scroll)/.test(e.overflow+e.overflowY+e.overflowX)&&t.push(s),s=s.parentElement}return t},Ct=function(t){const s=t.target===document?document.documentElement:t.target;e(this,wt,"f")?this._debounceCallback(s):e(this,kt,"f").call(this,s)},s([bt(40)],_t.prototype,"_debounceCallback",null);class Tt{constructor(e){zt.add(this),Mt.set(this,!1),Lt.set(this,0),Wt.set(this,0),Ft.set(this,""),At.set(this,""),e.addController(this)}lock(){e(this,Mt,"f")||(t(this,Mt,!0,"f"),t(this,Lt,window.scrollY,"f"),t(this,Wt,window.scrollX,"f"),t(this,Ft,document.documentElement.style.overflow,"f"),t(this,At,document.documentElement.style.scrollbarGutter,"f"),e(this,zt,"m",Dt).call(this)&&(document.documentElement.style.scrollbarGutter="stable"),document.documentElement.style.overflow="hidden",window.scrollTo(e(this,Wt,"f"),e(this,Lt,"f")))}unlock(){e(this,Mt,"f")&&(t(this,Mt,!1,"f"),document.documentElement.style.overflow=e(this,Ft,"f"),document.documentElement.style.scrollbarGutter=e(this,At,"f"),window.scrollTo(e(this,Wt,"f"),e(this,Lt,"f")))}hostDisconnected(){this.unlock()}}Mt=new WeakMap,Lt=new WeakMap,Wt=new WeakMap,Ft=new WeakMap,At=new WeakMap,zt=new WeakSet,Dt=function(){return document.documentElement.scrollHeight>document.documentElement.clientHeight};const Ht={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),p=Date.UTC(s,i,a,r,o,l,c);return new Date(p-6e4*h)}return null},toAttribute:e=>e?.toISOString()??null},Pt={fromAttribute:e=>e?e.split(/\s+/).map(e=>e.trim()).filter(Boolean):[],toAttribute:e=>e.join(" ")},It="important",Ot=" !"+It;const Bt=d(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(Ot);e.includes("-")||t?s.setProperty(e,t?i.slice(0,-11):i,t?It:""):s[e]=i}}return n}});function Nt(e,...t){return"object"==typeof e&&null!==e&&t.every(t=>t in e)}const Vt=Symbol("internals");function Rt(e){return Nt(e,Vt)}const Ut=Symbol("_internals"),qt=Symbol("_customState");function jt(e,t){var s;class i extends e{constructor(){super(...arguments),this[s]=new Set}get[(s=qt,Vt)](){return this[Ut]??(this[Ut]=this.attachInternals())}}return i.formAssociated=t,i}function Xt(e,t){return qt in e?e[qt].has(t):e[Vt].states.has(t)}function Zt(e,t){qt in e&&e[qt].add(t),e[Vt]?.states.add(t),e[Vt]?.states.has(t)}function Yt(e,t){return qt in e&&e[qt].delete(t),!!e[Vt]?.states.delete(t)&&(e[Vt]?.states.has(t),!0)}function Gt(e,t,s){s?Zt(e,t):Yt(e,t)}function Kt(e){return Nt(e,"checked")}function Qt(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 Jt(e){return Nt(e,"indeterminate")&&Kt(e)}function es(e){class t extends(Qt(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 ts(e){return Nt(e,"selected")}function ss(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 is(e){return Kt(e)||ts(e)}function as(e){return Kt(e)&&e.checked||ts(e)&&e.selected}function ns(e,t){Kt(e)?e.checked=t:e.selected=t}function rs(e){return Nt(e,"dirty","pristine","markAsDirty","markAsPristine")}const os=Symbol("_eventHandler");function ls(e){var t;return t=os,class extends e{constructor(){super(...arguments),this[t]=()=>this.markAsDirty()}get dirty(){return Xt(this,"-dirty")}get pristine(){return!this.dirty}connectedCallback(){this.markAsPristine(),super.connectedCallback(),this.addEventListener("change",this[os])}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("change",this[os])}markAsPristine(){Yt(this,"-dirty")}markAsDirty(){Zt(this,"-dirty")}}}function cs(e){return Nt(e,"touched","untouched","markAsTouched","markAsUntouched")}const ds=Symbol("_eventHandler");function hs(e){var t;return t=ds,class extends e{constructor(){super(...arguments),this[t]=()=>this.markAsTouched()}get touched(){return Xt(this,"-touched")}get untouched(){return!this.touched}connectedCallback(){this.markAsUntouched(),super.connectedCallback(),this.addEventListener("focusout",this[ds],{capture:!0})}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("focusout",this[ds],{capture:!0})}markAsTouched(){Zt(this,"-touched")}markAsUntouched(){Yt(this,"-touched")}}}const ps={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)")},ms={scale:r("var(--md-sys-density-scale, 0)"),size:r("var(--md-sys-density-size, 0.25rem)")},us={...ms,calc:e=>r(`calc(max(${e}, ${ms.scale}) * ${ms.size})`)},fs=`color-mix(in srgb, var(--m3e-elevation-color, ${ps.shadow}) 20%, transparent)`,vs=["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"],ys=`color-mix(in srgb, var(--m3e-elevation-color, ${ps.shadow}) 14%, transparent)`,gs=["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"],bs=`color-mix(in srgb, var(--m3e-elevation-color, ${ps.shadow}) 12%, transparent)`,xs=["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 ws(e){return`${fs} ${vs[e]},${ys} ${gs[e]},${bs} ${xs[e]}`}const ks={level0:r(`var(--md-sys-elevation-level0, ${ws(0)})`),level1:r(`var(--md-sys-elevation-level1, ${ws(1)})`),level2:r(`var(--md-sys-elevation-level2, ${ws(3)})`),level3:r(`var(--md-sys-elevation-level3, ${ws(6)})`),level4:r(`var(--md-sys-elevation-level4, ${ws(8)})`),level5:r(`var(--md-sys-elevation-level5, ${ws(12)})`)},$s={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))")},Es={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))")},Ss={easing:$s,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:Es},Cs={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)")},zs={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)")},Ms={color:ps,elevation:ks,motion:Ss,shape:{corner:{full:r("var(--md-sys-shape-corner-full, 624.9375rem)"),extraLargeTop:r(`var(--md-sys-shape-corner-extra-large-top, ${zs.extraLarge} ${zs.extraLarge} ${zs.none} ${zs.none})`),extraLarge:r(`var(--md-sys-shape-corner-extra-large, ${zs.extraLarge})`),extraLargeEnd:r(`${zs.none} ${zs.extraLarge} ${zs.extraLarge} ${zs.none}`),extraLargeStart:r(`${zs.extraLarge} ${zs.none} ${zs.none} ${zs.extraLarge}`),largeTop:r(`var(--md-sys-shape-corner-large-top, ${zs.large} ${zs.large} ${zs.none} ${zs.none})`),largeEnd:r(`var(--md-sys-shape-corner-large-end, ${zs.none} ${zs.large} ${zs.large} ${zs.none})`),largeStart:r(`var(--md-sys-shape-corner-large-end, ${zs.large} ${zs.none} ${zs.none} ${zs.large})`),large:r(`var(--md-sys-shape-corner-large, ${zs.large})`),medium:r(`var(--md-sys-shape-corner-medium, ${zs.medium})`),mediumTop:r(`${zs.medium} ${zs.medium} ${zs.none} ${zs.none}`),mediumEnd:r(`${zs.none} ${zs.medium} ${zs.medium} ${zs.none}`),mediumStart:r(`${zs.medium} ${zs.none} ${zs.none} ${zs.medium}`),small:r(`var(--md-sys-shape-corner-small, ${zs.small})`),smallTop:r(`${zs.small} ${zs.small} ${zs.none} ${zs.none}`),smallEnd:r(`${zs.none} ${zs.small} ${zs.small} ${zs.none}`),smallStart:r(`${zs.small} ${zs.none} ${zs.none} ${zs.small}`),extraSmallTop:r(`var(--md-sys-shape-corner-extra-small-top, ${zs.extraSmall} ${zs.extraSmall} ${zs.none} ${zs.none})`),extraSmall:r(`var(--md-sys-shape-corner-extra-small, ${zs.extraSmall})`),extraSmallEnd:r(`${zs.none} ${zs.extraSmall} ${zs.extraSmall} ${zs.none}`),extraSmallStart:r(`${zs.extraSmall} ${zs.none} ${zs.none} ${zs.extraSmall}`),extraSmallBottom:r(`${zs.none} ${zs.none} ${zs.extraSmall} ${zs.extraSmall}`),none:r(`var(--md-sys-shape-corner-none, ${zs.none})`),largeIncreased:r(`var(--md-sys-shape-corner-large-increased, ${zs.largeIncreased})`),extraLargeIncreased:r(`var(--md-sys-shape-corner-extra-large-increased, ${zs.extraLargeIncreased})`),extraExtraLarge:r(`var(--md-sys-shape-corner-extra-extra-large, ${zs.extraExtraLarge})`),value:zs}},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:Cs,density:us};function Ls(e){return Nt(e,"disabled")}function Ws(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 Fs(e){return Nt(e,"disabledInteractive")&&Ls(e)}const As=["click","dblclick","auxclick","keydown","keyup"],Ds=["Tab","ArrowLeft","ArrowUp","ArrowRight","ArrowDown","Left","Up","Right","Down"],_s=Symbol("_suppressedEventHandler");function Ts(e){var t;class i extends e{constructor(){super(...arguments),this[t]=e=>{if(this.disabledInteractive){if(e instanceof KeyboardEvent&&Ds.includes(e.key))return;e.stopImmediatePropagation(),e.preventDefault()}},this.disabledInteractive=!1}connectedCallback(){As.forEach(e=>this.addEventListener(e,this[_s],!0)),super.connectedCallback()}disconnectedCallback(){As.forEach(e=>this.removeEventListener(e,this[_s],!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=_s,s([m({attribute:"disabled-interactive",type:Boolean,reflect:!0})],i.prototype,"disabledInteractive",void 0),i}const Hs=Symbol("updateLabels");function Ps(e){return Nt(e,"labels")&&Rt(e)}const Is=Symbol("_eventHandler");function Os(e){var t;class s extends e{constructor(){super(...arguments),this[t]=e=>{e.defaultPrevented||this[Hs]()}}get labels(){return this[Vt].labels}connectedCallback(){super.connectedCallback(),this.addEventListener("focusout",this[Is]),this.addEventListener("change",this[Is])}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("focusout",this[Is]),this.removeEventListener("change",this[Is])}update(e){super.update(e),this[Hs]()}[(t=Is,Hs)](){const e=this.hasAttribute("tabindex"),t=Ls(this)&&this.disabled||Fs(this)&&this.disabledInteractive,s=cs(this)&&this.touched&&(this.ariaInvalid||Xt(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, ${Ms.color.onSurface} 38%, transparent)`:s?`${Ms.color.error}`:""}}return s.formAssociated=!0,s}const Bs=Symbol("formValue"),Ns=Symbol("defaultValue");function Vs(e){return Nt(e,"disabled","form","name")&&Ps(e)&&Rt(e)}const Rs=Symbol("_defaultValue"),Us=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[Vt].form}get labels(){return this[Vt].labels}get[(t=Us,i=qs,Bs)](){return null}get[Ns](){return this[Rs]}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(),Kt(this)?(this[Rs]=this.checked,Jt(this)&&(this[Us]=this.indeterminate)):"value"in this&&(this[Rs]=this.value)}requestUpdate(e,t,s){super.requestUpdate(e,t,s),this[Vt].setFormValue(this[Bs])}formDisabledCallback(e){const t=this.disabled;this[qs]=e,this.disabled!=t&&this.requestUpdate("disabled",t)}formResetCallback(){Kt(this)?(this.checked=!0===this[Rs],Jt(this)&&(this.indeterminate=this[Us])):"value"in this&&(this.value=this[Ns]),rs(this)&&this.markAsPristine(),cs(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 Xs=Symbol("validate");function Zs(e){return Nt(e,"willValidate","validity","validationMessage","reportValidity","checkValidity","setCustomValidity")&&Vs(e)}const Ys=Symbol("_updateValidity"),Gs=Symbol("_validityMessage");function Ks(t){var s,a;class n extends t{constructor(){super(...arguments),s.add(this)}get willValidate(){return this[Vt].willValidate}get validity(){return this[Ys](),this[Vt].validity}get validationMessage(){return this[Ys](),this[Vt].validationMessage}[(s=new WeakSet,Xs)](){return this[Gs]?{customError:!0}:void 0}reportValidity(){return cs(this)&&this.markAsTouched(),this[Ys](),this[Vt].reportValidity()}checkValidity(){return this[Ys](),this[Vt].checkValidity()}setCustomValidity(e){this[Gs]=e||void 0,this[Ys]()}requestUpdate(e,t,s){super.requestUpdate(e,t,s),this[Ys]()}firstUpdated(e){super.firstUpdated(e),this[Ys]()}[Ys](){if(i||!this.isConnected)return;const t=this[Xs](),n=t&&Object.keys(t).some(e=>!0===t[e]);let r=t?.customError?this[Gs]:"";t&&!r&&(r=e(this,s,"m",a).call(this,t)),this[Vt].setValidity(t,r),this.ariaInvalid=n?"true":null,Gt(this,"-invalid",!0===n),Ps(this)&&this[Hs]?.()}}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}function Qs(e,...t){return class extends e{dispatchEvent(e){if(t.includes(e.type)){const t=this.getAttribute(`on${e.type}`);t&&new Function("e",`${t};`).call(this,e)}return super.dispatchEvent(e)}}}const Js=Symbol("_tabindex");function ei(e){var t;return t=Js,class extends e{constructor(){super(...arguments),this[t]=0}connectedCallback(){this[Js]=Number.parseInt(this.getAttribute("tabindex")??"0"),super.connectedCallback()}firstUpdated(e){super.firstUpdated(e),this.hasAttribute("tabindex")||e.has("disabled")||this.setAttribute("tabindex",`${this[Js]}`)}update(e){if(super.update(e),e.has("disabled"))if(this.disabled||"none"===this.role){const e=this.getAttribute("tabindex");e&&(this[Js]=Number.parseInt(e)),this.removeAttribute("tabindex")}else this.hasAttribute("tabindex")||this.setAttribute("tabindex",`${this[Js]}`)}}}function ti(e){return Nt(e,"name","type","value")&&Rt(e)}const si=Symbol("_clickHandler");function ii(e){var t;class i extends e{constructor(){super(...arguments),this.type="button",this[t]=async e=>{if(e.defaultPrevented||Ls(this)&&this.disabled||Fs(this)&&this.disabledInteractive)return;const t=this[Vt].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[Vt].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[si])}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",this[si])}}return t=si,i.formAssociated=!0,s([m()],i.prototype,"name",null),s([m()],i.prototype,"value",null),s([m()],i.prototype,"type",void 0),i}function ai(e){return Nt(e,"htmlFor","control","attach","detach")}const ni=Symbol("_control"),ri=Symbol("_firstUpdated");function oi(e){var t;class i extends e{constructor(){super(...arguments),this[t]=!1,this.htmlFor=null}get control(){return this[ni]?.deref()??null}connectedCallback(){super.connectedCallback();const e=this[ni]?.deref();e&&this.attach(e)}disconnectedCallback(){super.disconnectedCallback();const e=this[ni];e&&(this.detach(),this[ni]=e)}firstUpdated(e){super.firstUpdated(e),this[ri]=!0}update(e){if(super.update(e),e.has("htmlFor"))if(this.htmlFor){const e=this.getRootNode();e&&rt(this.htmlFor,e).then(e=>{e!==this.control&&(this.control&&this.detach(),e instanceof HTMLElement&&this.attach(e))})}else this.control&&this[ri]&&this.detach()}attach(e){this[ni]=new WeakRef(e)}detach(){this[ni]=void 0}}return t=ri,s([m({attribute:"for"})],i.prototype,"htmlFor",void 0),i}function li(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||Ls(this)&&this.disabled||Fs(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||Ls(this)&&this.disabled||Fs(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 ci=Symbol("renderPseudoLink");function di(e){return Nt(e,"download","href","rel","target")}const hi=Symbol("_clickHandler");function pi(t){var i,n,r,l,c;class d extends t{constructor(){super(...arguments),i.add(this),this[c]=async e=>{if(Fs(this)&&this.disabledInteractive&&(e.preventDefault(),e.stopPropagation()),await new Promise(e=>e()),!e.defaultPrevented&&this.href){e.preventDefault(),e.stopImmediatePropagation();const t=document.createElement("a");t.href=this.href,t.rel=this.rel,t.target=this.target,null!=this.download&&(t.download=this.download),t.addEventListener("click",async()=>{await new Promise(e=>e()),t.remove()}),document.body.appendChild(t),t.click()}},this.href="",this.target="",this.rel=""}get download(){return this.getAttribute("download")}set download(e){const t=this.download;t!==e&&(e?this.setAttribute("download",e):this.removeAttribute("download"),this.requestUpdate("download",t))}connectedCallback(){super.connectedCallback(),this.addEventListener("click",this[hi]),this.hasAttribute("href")&&"button"===this.role&&(this.role="link")}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",this[hi])}[(i=new WeakSet,c=hi,ci)](){const t=Ls(this)&&this.disabled,s=Fs(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,i,"m",n)}" @focus="${e(this,i,"m",r)}" @blur="${e(this,i,"m",l)}"></a>`}}return n=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")},r=function(e){e.target.blur(),this.focus()},l=function(e){e.target.setAttribute("aria-hidden","true")},s([m()],d.prototype,"href",void 0),s([m()],d.prototype,"target",void 0),s([m()],d.prototype,"rel",void 0),s([m({reflect:!1})],d.prototype,"download",null),d}function mi(e){return Nt(e,"readOnly")}function ui(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 fi=Symbol("_wasConnected");function vi(e){var t;return t=fi,class extends e{constructor(){super(...arguments),this[t]=!1}reconnectedCallback(){}connectedCallback(){super.connectedCallback(),this[fi]&&this.reconnectedCallback()}disconnectedCallback(){super.disconnectedCallback(),this[fi]=!0}}}function yi(e){return Nt(e,"required","optional")}function gi(e){class t extends e{constructor(){super(...arguments),this.required=!1}get optional(){return!this.required}update(e){super.update(e),e.has("required")&&(this.ariaRequired=`${this.required}`)}}return s([m({type:Boolean,reflect:!0})],t.prototype,"required",void 0),t}function bi(e){return yi(e)&&Zs(e)}function xi(e){return class extends e{[Xs](){const e=super[Xs]();if(!e&&this.required){if(Kt(this)&&!this.checked)return{valueMissing:!0};if(!this.value)return{valueMissing:!0}}return e}}}function wi(e,t){return class extends e{connectedCallback(){this.role=this.role||t,super.connectedCallback()}}}function ki(e){return class extends e{connectedCallback(){super.connectedCallback(),Zt(this,"-no-animate"),requestAnimationFrame(()=>Yt(this,"-no-animate"))}}}function $i(e){return Nt(e,"vertical")}function Ei(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 Si,Ci,zi,Mi,Li,Wi,Fi,Ai;class Di extends c{constructor(){super(...arguments),Si.set(this,e=>{e.defaultPrevented||this._onClick(e)})}connectedCallback(){super.connectedCallback(),this.parentElement?.addEventListener("click",e(this,Si,"f"))}disconnectedCallback(){super.disconnectedCallback(),this.parentElement?.removeEventListener("click",e(this,Si,"f"))}render(){return o`<slot></slot>`}}Si=new WeakMap,Di.styles=l`:host { display: contents; } ::slotted(.material-icons) { font-size: inherit !important; }`;let _i=class extends(Qs(jt(c),"opening","opened","closing","closed")){constructor(){super(...arguments),Ci.add(this),zi.set(this,!1),Mi.set(this,!1),this.open=!1}update(s){if(super.update(s),Zt(this,"-no-animate"),!e(this,zi,"f"))return this.open&&(t(this,Mi,!0,"f"),e(this,Ci,"m",Wi).call(this)),void t(this,zi,!0,"f");this.toggleAttribute("inert",!this.open),this.open?(t(this,Mi,!0,"f"),at()||(e(this,Ci,"m",Wi).call(this),Gt(this,"-overflows",this.clientHeight<this.scrollHeight),e(this,Ci,"m",Fi).call(this)),Yt(this,"-closing"),Zt(this,"-opening"),this.dispatchEvent(new Event("opening")),e(this,Ci,"m",Fi).call(this),Yt(this,"-no-animate"),e(this,Ci,"m",Ai).call(this),at()?(e(this,Ci,"m",Wi).call(this),Yt(this,"-opening"),this.dispatchEvent(new Event("opened"))):this.addEventListener("transitionend",()=>{this.open&&(e(this,Ci,"m",Wi).call(this),Yt(this,"-opening"),this.dispatchEvent(new Event("opened")))},{once:!0})):(Yt(this,"-opening"),Zt(this,"-closing"),this.dispatchEvent(new Event("closing")),e(this,Ci,"m",Ai).call(this),e(this,Mi,"f")&&Yt(this,"-no-animate"),at()?(e(this,Ci,"m",Fi).call(this),Yt(this,"-closing"),this.dispatchEvent(new Event("closed"))):requestAnimationFrame(()=>{e(this,Ci,"m",Fi).call(this),this.addEventListener("transitionend",()=>{this.open||(Yt(this,"-closing"),this.dispatchEvent(new Event("closed")))},{once:!0})}))}render(){return o`<slot @slotchange="${e(this,Ci,"m",Li)}"></slot>`}};zi=new WeakMap,Mi=new WeakMap,Ci=new WeakSet,Li=function(){t(this,zi,!0,"f")},Wi=function(){this.style.height="auto"},Fi=function(){this.style.height=""},Ai=function(){this.style.height=`${this.scrollHeight}px`},_i.styles=l`:host { display: block; height: 0px; overflow: hidden; transition: ${r(`visibility var(--m3e-collapsible-animation-duration, ${Ms.motion.duration.medium1})\n ${Ms.motion.easing.standard},\n height var(--m3e-collapsible-animation-duration, ${Ms.motion.duration.medium1})\n ${Ms.motion.easing.standard},\n padding-top var(--m3e-collapsible-animation-duration, ${Ms.motion.duration.medium1})\n ${Ms.motion.easing.standard},\n padding-bottom var(--m3e-collapsible-animation-duration, ${Ms.motion.duration.medium1})\n ${Ms.motion.easing.standard}`)}; } :host(:not(:state(-closing)):not([open])) { visibility: hidden; } :host(:not([open])) { min-height: unset !important; padding-top: 0px !important; padding-bottom: 0px !important; } :host(:state(-no-animate)) { transition-duration: 0ms; } :host(:state(-opening)), :host(:state(-closing)) { overflow-y: hidden !important; } :host(:state(-overflows)) { scrollbar-gutter: stable; } ::slotted(*) { --m3e-collapsible-animation-duration: initial; } @media (prefers-reduced-motion) { :host { transition: none; } }`,s([m({type:Boolean,reflect:!0})],_i.prototype,"open",void 0),_i=s([gt("m3e-collapsible")],_i);const Ti=r(`var(--m3e-elevation-lift-duration, ${Ms.motion.duration.short4})`),Hi=r(`var(--m3e-elevation-lift-easing, ${Ms.motion.easing.standard})`),Pi=r(`var(--m3e-elevation-settle-duration, ${Ms.motion.duration.short3})`),Ii=r(`var(--m3e-elevation-settle-easing, ${Ms.motion.easing.standardAccelerate})`),Oi=r(`var(--m3e-elevation-level, ${Ms.elevation.level0})`),Bi=r(`var(--m3e-elevation-hover-level, ${Ms.elevation.level0})`),Ni=r(`var(--m3e-elevation-focus-level, ${Ms.elevation.level0})`),Vi=r(`var(--m3e-elevation-pressed-level, ${Ms.elevation.level0})`);var Ri,Ui,qi,ji,Xi,Zi,Yi;let Gi=class extends(oi(wi(c,"none"))){constructor(){super(...arguments),Ri.add(this),Ui.set(this,new ht(this,{target:null,callback:t=>e(this,Ri,"m",Xi).call(this,t)})),qi.set(this,new dt(this,{target:null,callback:t=>e(this,Ri,"m",Zi).call(this,t)})),ji.set(this,new vt(this,{target:null,callback:t=>e(this,Ri,"m",Yi).call(this,t)})),this.disabled=!1,this.level=null}attach(t){super.attach(t),e(this,Ui,"f").observe(t),e(this,qi,"f").observe(t),e(this,ji,"f").observe(t)}detach(){this.control&&(e(this,Ui,"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>`}};Ui=new WeakMap,qi=new WeakMap,ji=new WeakMap,Ri=new WeakSet,Xi=function(e){this.disabled||(this._shadow?.classList.toggle("hover",e),this._shadow?.classList.toggle("resting",!e))},Zi=function(e){this.disabled||this._shadow?.classList.toggle("focus",e)},Yi=function(e){this.disabled||this._shadow?.classList.toggle("pressed",e)},Gi.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 ${Pi} ${Ii};`)}; } .shadow.hover { will-change: box-shadow; transition: ${r(`box-shadow ${Ti} ${Hi};`)}; } .shadow { box-shadow: ${Oi}; } .shadow.focus { box-shadow: ${Ni}; } .shadow.hover { box-shadow: ${Bi}; } .shadow.pressed { box-shadow: ${Vi}; } :host([level="0"]) .shadow { --m3e-elevation-level: ${Ms.elevation.level0}; --m3e-elevation-hover-level: ${Ms.elevation.level1}; } :host([level="1"]) .shadow { --m3e-elevation-level: ${Ms.elevation.level1}; --m3e-elevation-hover-level: ${Ms.elevation.level2}; } :host([level="2"]) .shadow { --m3e-elevation-level: ${Ms.elevation.level2}; --m3e-elevation-hover-level: ${Ms.elevation.level3}; } :host([level="3"]) .shadow { --m3e-elevation-level: ${Ms.elevation.level3}; --m3e-elevation-hover-level: ${Ms.elevation.level4}; } :host([level="4"]) .shadow { --m3e-elevation-level: ${Ms.elevation.level4}; --m3e-elevation-hover-level: ${Ms.elevation.level5}; } :host([level="5"]) .shadow { --m3e-elevation-level: ${Ms.elevation.level5}; --m3e-elevation-hover-level: ${Oi}; } :host([level]) .shadow { --m3e-elevation-focus-level: ${Oi}; --m3e-elevation-pressed-level: ${Oi}; } @media (prefers-reduced-motion) { .shadow.resting, .shadow.pressed, .shadow.focus, .shadow.hover { transition: none; } } @media (forced-colors: active) { .shadow { display: none; } }`,s([u(".shadow")],Gi.prototype,"_shadow",void 0),s([m({type:Boolean,reflect:!0})],Gi.prototype,"disabled",void 0),s([m({type:Number,reflect:!0})],Gi.prototype,"level",void 0),Gi=s([gt("m3e-elevation")],Gi);const Ki=r(`var(--m3e-focus-ring-color, ${Ms.color.secondary})`),Qi=r(`var(--m3e-focus-ring-duration, ${Ms.motion.duration.long2})`),Ji=r("var(--m3e-focus-ring-thickness, 3px)"),ea=r("var(--m3e-focus-ring-outward-offset, 2px)"),ta=r("var(--m3e-focus-ring-inward-offset, 0px)"),sa=r("var(--m3e-focus-ring-visibility, visible)"),ia=r("var(--m3e-focus-ring-growth-factor, 2)");var aa,na,ra;let oa=class extends(oi(wi(c,"none"))){constructor(){super(...arguments),aa.add(this),na.set(this,new dt(this,{target:null,callback:(t,s)=>e(this,aa,"m",ra).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,na,"f").observe(t)}detach(){this.control&&e(this,na,"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()}};na=new WeakMap,aa=new WeakSet,ra=function(e){this.disabled||(e?this.show():this.hide())},oa.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: ${Ki}; outline-width: ${Ji}; visibility: ${sa}; } .outline.visible { outline-style: solid; } :host(:not([inward])) .outline { outline-offset: ${ea}; } :host([inward]) .outline { outline-offset: calc(${ta} - ${Ji}); } :host(:not([inward])) .outline.visible { animation: grow-shrink ${Qi}; } :host([inward]) .outline.visible { animation: shrink-grow ${Qi}; } @keyframes grow-shrink { 50% { outline-width: calc(${Ji} * ${ia}); } } @keyframes shrink-grow { 50% { outline-offset: calc( ${ta} - calc(${Ji} * ${ia}) ); outline-width: calc(${Ji} * ${ia}); } } @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")],oa.prototype,"_outline",void 0),s([m({type:Boolean,reflect:!0})],oa.prototype,"inward",void 0),s([m({type:Boolean,reflect:!0})],oa.prototype,"disabled",void 0),oa=s([gt("m3e-focus-ring")],oa);let la=class extends(es(Ws(wi(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}};la.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, ${Ms.color.primary}); color: var(--m3e-checkbox-selected-icon-color, ${Ms.color.onPrimary}); } :host(:not([disabled]):not([checked]):not([indeterminate])) { border-color: var(--m3e-checkbox-unselected-outline-color, ${Ms.color.onSurfaceVariant}); } :host([disabled]:not([checked]):not([indeterminate])) { border-color: color-mix( in srgb, var(--m3e-checkbox-unselected-disabled-outline-color, ${Ms.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, ${Ms.color.onSurface}) var(--m3e-checkbox-selected-disabled-container-opacity, 38%), transparent ); color: color-mix( in srgb, var(--m3e-checkbox-selected-disabled-icon-color, ${Ms.color.surface}) var(--m3e-checkbox-selected-disabled-icon-opacity, 100%), transparent ); }`,la=s([gt("m3e-pseudo-checkbox")],la);let ca=class extends(Qt(Ws(wi(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>`}};ca.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, ${Ms.color.onSurfaceVariant}); } :host([checked]) { color: var(--m3e-radio-selected-icon-color, ${Ms.color.primary}); } :host([disabled]) { color: color-mix(in srgb, var(--m3e-radio-disabled-icon-color, ${Ms.color.onSurface}) 38%, transparent); }`,ca=s([gt("m3e-pseudo-radio")],ca);const da=r(`var(--m3e-ripple-color, ${Ms.color.onSurface})`),ha=r(`var(--m3e-ripple-opacity, ${Ms.state.pressedStateLayerOpacity})`),pa=r(`var(--m3e-ripple-enter-duration, ${Ms.motion.duration.long4})`),ma=r(`var(--m3e-ripple-exit-duration, ${Ms.motion.duration.short2})`),ua=r("var(--m3e-ripple-scale-factor, 2.5)");var fa,va,ya,ga,ba,xa;let wa=class extends(oi(wi(c,"none"))){constructor(){super(...arguments),fa.add(this),va.set(this,null),ya.set(this,new vt(this,{target:null,minPressedDuration:150,isPressedKey:e=>" "===e,callback:(t,{x:s,y:i})=>e(this,fa,"m",xa).call(this,t,s,i)})),this.disabled=!1,this.centered=!1,this.unbounded=!1,this.radius=null}get visible(){return null!==e(this,va,"f")}show(s,i,a=!1){e(this,fa,"m",ga).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,va,document.createElement("div"),"f"),e(this,va,"f").classList.add("ripple"),a&&e(this,va,"f").classList.add("persistent"),e(this,va,"f").style.left=o-r+"px",e(this,va,"f").style.top=l-r+"px",e(this,va,"f").style.width=2*r+"px",e(this,va,"f").style.height=2*r+"px",e(this,va,"f").addEventListener("animationend",()=>e(this,fa,"m",ba).call(this,a),{once:!0}),e(this,va,"f").addEventListener("transitionend",()=>e(this,fa,"m",ga).call(this),{once:!0}),this.shadowRoot?.appendChild(e(this,va,"f"))}hide(){e(this,va,"f")?.classList.add("exit")}attach(t){super.attach(t),e(this,ya,"f").observe(t)}detach(){this.control&&e(this,ya,"f").unobserve(this.control),super.detach()}connectedCallback(){this.ariaHidden="true",super.connectedCallback()}disconnectedCallback(){super.disconnectedCallback(),e(this,fa,"m",ga).call(this)}updated(e){super.updated(e),e.has("disabled")&&this.disabled&&this.hide()}};var ka;va=new WeakMap,ya=new WeakMap,fa=new WeakSet,ga=function(){e(this,va,"f")?.remove(),t(this,va,null,"f")},ba=function(t){t?e(this,va,"f")?.classList.add("pressed"):this.hide()},xa=function(e,t,s){this.disabled||(e?this.show(t,s,!0):this.hide())},wa.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: ${Ms.shape.corner.full}; background-color: color-mix(in srgb, ${da} ${ha}, transparent); will-change: background-color, opacity; animation: ripple ${pa} linear; } .ripple.persistent.pressed { transform: scale(${ua}); } .ripple.exit { transition: opacity ${ma} cubic-bezier(0, 0, 0.2, 0.1); opacity: 0; } @keyframes ripple { to { transform: scale(${ua}); } } @media (prefers-reduced-motion) { .ripple { transform: scale(${ua}); animation-duration: 90ms; } .ripple.exit { transition-duration: 10ms; } } @media (forced-colors: active) { .ripple { display: none; } }`,s([m({type:Boolean,reflect:!0})],wa.prototype,"disabled",void 0),s([m({type:Boolean,reflect:!0})],wa.prototype,"centered",void 0),s([m({type:Boolean,reflect:!0})],wa.prototype,"unbounded",void 0),s([m({type:Number})],wa.prototype,"radius",void 0),wa=s([gt("m3e-ripple")],wa);let $a=class extends(jt(c)){constructor(){super(...arguments),ka.set(this,()=>this._updateScroll()),this.dividers="above-below",this.thin=!1}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("scroll",e(this,ka,"f"))}update(t){super.update(t),t.has("dividers")&&(this.removeEventListener("scroll",e(this,ka,"f")),"none"!==this.dividers&&this.addEventListener("scroll",e(this,ka,"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;Gt(this,"-above",e),Gt(this,"-below",t)}};var Ea,Sa,Ca,za;ka=new WeakMap,$a.styles=l`:host { display: block; overflow-y: auto; position: relative; box-sizing: border-box; scrollbar-color: ${Ms.scrollbar.color}; border-top: var(--m3e-divider-thickness, 1px) solid transparent; border-bottom: var(--m3e-divider-thickness, 1px) solid transparent; outline-color: ${Ki}; outline-width: ${Ji}; outline-offset: ${ea}; } :host([thin]) { scrollbar-width: ${Ms.scrollbar.thinWidth}; } :host(:not([thin])) { scrollbar-width: ${Ms.scrollbar.width}; } :host(:not(:focus-visible):state(-above)) { border-top-color: var(--m3e-divider-color, ${Ms.color.outlineVariant}); } :host(:not(:focus-visible):state(-below)) { border-bottom-color: var(--m3e-divider-color, ${Ms.color.outlineVariant}); } :host(:focus-visible) { outline-style: solid; animation: grow-shrink ${Qi}; } @keyframes grow-shrink { 50% { outline-width: calc(${Ji} * ${ia}); } } @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):state(-above)) { border-top-color: GrayText; } :host(:not(:focus-visible):state(-below)) { border-bottom-color: GrayText; } } @media (prefers-reduced-motion) { :host(:focus-visible) { animation: none; } }`,s([m()],$a.prototype,"dividers",void 0),s([m({type:Boolean,reflect:!0})],$a.prototype,"thin",void 0),s([bt(40)],$a.prototype,"_updateScroll",null),$a=s([gt("m3e-scroll-container")],$a);let Ma=class extends(jt(c)){constructor(){super(...arguments),Ea.add(this),Sa.set(this,new Array),this.selectedIndex=null}connectedCallback(){super.connectedCallback(),Zt(this,"-no-animate")}update(t){super.update(t),t.has("selectedIndex")&&(null===this.selectedIndex&&Zt(this,"-no-animate"),e(this,Ea,"m",za).call(this),null!==this.selectedIndex&&Xt(this,"-no-animate")&&requestAnimationFrame(()=>{null!==this.selectedIndex&&Yt(this,"-no-animate")}))}render(){return o`<slot @slotchange="${e(this,Ea,"m",Ca)}"></slot>`}};Sa=new WeakMap,Ea=new WeakSet,Ca=function(s){const i=[...s.target.assignedElements({flatten:!0})];for(const t of e(this,Sa,"f").filter(e=>!i.includes(e)))t.classList.remove("-before"),t.classList.remove("-after"),t.removeAttribute("inert");t(this,Sa,i,"f"),e(this,Ea,"m",za).call(this)},za=function(){const t=this.selectedIndex??e(this,Sa,"f").length;for(let s=0;s<e(this,Sa,"f").length;s++){const i=e(this,Sa,"f")[s];i.classList.toggle("-before",s<t),i.classList.toggle("-after",s>t),i.toggleAttribute("inert",s!==t)}},Ma.styles=l`:host { display: flex; position: relative; overflow: hidden; } ::slotted(*) { width: 100%; top: 0; transition: ${r(`inset-inline-start var(--m3e-slide-animation-duration, ${Ms.motion.duration.long2}) ${Ms.motion.easing.standard},\n visibility var(--m3e-slide-animation-duration, ${Ms.motion.duration.long2}) ${Ms.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(:state(-no-animate)) ::slotted(*) { transition: none; } @media (prefers-reduced-motion) { ::slotted(*) { transition: none; } }`,s([m({attribute:"selected-index",type:Number,reflect:!0})],Ma.prototype,"selectedIndex",void 0),Ma=s([gt("m3e-slide")],Ma);const La=r(`var(--m3e-state-layer-hover-color, ${Ms.color.onSurface})`),Wa=r(`var(--m3e-state-layer-hover-opacity, ${Ms.state.hoverStateLayerOpacity})`),Fa=r(`var(--m3e-state-layer-focus-color, ${Ms.color.onSurface})`),Aa=r(`var(--m3e-state-layer-focus-opacity, ${Ms.state.focusStateLayerOpacity})`),Da=r(`var(--m3e-state-layer-duration, ${Ms.motion.duration.medium1})`),_a=r(`var(--m3e-state-layer-easing, ${Ms.motion.easing.standard})`);var Ta,Ha,Pa,Ia,Oa;let Ba=class extends(oi(wi(c,"none"))){constructor(){super(...arguments),Ta.add(this),Ha.set(this,new ht(this,{target:null,callback:t=>e(this,Ta,"m",Ia).call(this,t)})),Pa.set(this,new dt(this,{target:null,callback:(t,s)=>e(this,Ta,"m",Oa).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,Ha,"f").observe(t),e(this,Pa,"f").observe(t)}detach(){this.control&&(e(this,Ha,"f").unobserve(this.control),e(this,Pa,"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 Na,Va,Ra,Ua,qa,ja,Xa,Za;Ha=new WeakMap,Pa=new WeakMap,Ta=new WeakSet,Ia=function(e){this.disabled||this.disableHover||(e?this.show("hover"):this.hide("hover"))},Oa=function(e){this.disabled||(e?this.show("focused"):this.hide("focused"))},Ba.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 ${Da} ${_a}`)}; } .layer.focused { background-color: color-mix(in srgb, ${Fa} ${Aa}, transparent); } .layer.hover { background-color: color-mix(in srgb, ${La} ${Wa}, transparent); } @media (prefers-reduced-motion) { .layer { transition: none; } } @media (forced-colors: active) { .layer { display: none; } }`,s([u(".layer")],Ba.prototype,"_layer",void 0),s([m({type:Boolean,reflect:!0})],Ba.prototype,"disabled",void 0),s([m({attribute:"disable-hover",type:Boolean,reflect:!0})],Ba.prototype,"disableHover",void 0),Ba=s([gt("m3e-state-layer")],Ba);let Ya=Za=class extends c{constructor(){super(),Na.add(this),Va.set(this,"m3e-text-highlight-"+Za.__nextId++),Ra.set(this,new Array),Ua.set(this,null),this.disabled=!1,this.term="",this.caseSensitive=!1,this.mode="contains",this.isSupported&&(t(this,Ua,new CSSStyleSheet,"f"),e(this,Ua,"f").replaceSync(l`::highlight(${r(e(this,Va,"f"))}) { background-color: var(--m3e-text-highlight-container-color, ${Ms.color.secondaryContainer}); color: var(--m3e-text-highlight-color, ${Ms.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,Ra,"f")}firstUpdated(t){super.firstUpdated(t),this.shadowRoot&&e(this,Ua,"f")&&!this.shadowRoot.adoptedStyleSheets.includes(e(this,Ua,"f"))&&this.shadowRoot.adoptedStyleSheets.push(e(this,Ua,"f"))}updated(t){super.updated(t),(t.has("term")||t.has("caseSensitive")||t.has("disabled"))&&e(this,Na,"m",Xa).call(this)}render(){return o`<slot @slotchange="${e(this,Na,"m",Xa)}"></slot>`}};Va=new WeakMap,Ra=new WeakMap,Ua=new WeakMap,Na=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,Na,"m",qa).call(this,s)&&i.push(s);break;case Node.ELEMENT_NODE:e(this,Na,"m",t).call(this,s,i)}}):s.childNodes.forEach(s=>{switch(s.nodeType){case Node.TEXT_NODE:e(this,Na,"m",qa).call(this,s)&&i.push(s);break;case Node.ELEMENT_NODE:e(this,Na,"m",t).call(this,s,i)}})},Xa=function(){if(!this.isSupported||!this.isConnected)return;if(CSS.highlights.delete(e(this,Va,"f")),e(this,Ra,"f").length=0,this.disabled)return;if(!this.term)return void this.dispatchEvent(new CustomEvent("highlight",{detail:[...e(this,Ra,"f")],bubbles:!1,composed:!1}));const s=new Array;if(e(this,Na,"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,Ra,"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,Ra,"f").push(r)}}break;case"contains":t(this,Ra,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,Ra,"f").length>0&&CSS.highlights.set(e(this,Va,"f"),new Highlight(...e(this,Ra,"f")))}this.dispatchEvent(new CustomEvent("highlight",{detail:[...e(this,Ra,"f")],bubbles:!1,composed:!1}))},Ya.styles=l`:host { display: contents; }`,Ya.__nextId=0,s([m({type:Boolean,reflect:!0})],Ya.prototype,"disabled",void 0),s([m()],Ya.prototype,"term",void 0),s([m({attribute:"case-sensitive",type:Boolean})],Ya.prototype,"caseSensitive",void 0),s([m()],Ya.prototype,"mode",void 0),Ya=Za=s([gt("m3e-text-highlight")],Ya);let Ga=class extends c{render(){return o`<span class="base"><slot></slot></span>`}};Ga.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; }`,Ga=s([gt("m3e-text-overflow")],Ga);export{Di as ActionElementBase,Oe as AnimationLoopController,jt as AttachInternals,Qt as Checked,es as CheckedIndeterminate,Ks as ConstraintValidation,Ms as DesignToken,ls as Dirty,Ws as Disabled,Ts as DisabledInteractive,Qs as EventAttribute,dt as FocusController,ei as Focusable,js as FormAssociated,ii as FormSubmitter,ht as HoverController,oi as HtmlFor,pt as InertController,mt as IntersectionController,li as KeyboardClick,Os as Labelled,pi as LinkButton,ut as LongPressController,_i as M3eCollapsibleElement,Gi as M3eElevationElement,oa as M3eFocusRingElement,la as M3ePseudoCheckboxElement,ca as M3ePseudoRadioElement,wa as M3eRippleElement,$a as M3eScrollContainerElement,Ma as M3eSlideElement,Ba as M3eStateLayerElement,Ya as M3eTextHighlightElement,Ga as M3eTextOverflowElement,ft as MutationController,vt as PressedController,ui as ReadOnly,vi as ReconnectedCallback,gi as Required,xi as RequiredConstraintValidation,yt as ResizeController,wi as Role,_t as ScrollController,Tt as ScrollLockController,ss as Selected,ki as SuppressInitialAnimation,hs as Touched,ct as VelocityTracker,Ei as Vertical,Zt as addCustomState,ns as checkOrSelect,Ne as computeCssSize,Ve as computeLineCount,gt as customElement,Ht as dateConverter,bt as debounce,Ns as defaultValue,Yt as deleteCustomState,Re as focusWhenReady,Ue as forcedColorsActive,Bs as formValue,Je as generateClipPaths,et as getTextContent,tt as guid,st as hasAssignedNodes,Xt as hasCustomState,Nt as hasKeys,it as interceptProperty,Vt as internals,Rt as isAttachInternalsMixin,Jt as isCheckedIndeterminateMixin,Kt as isCheckedMixin,as as isCheckedOrSelected,is as isCheckedOrSelectedMixin,Zs as isConstraintValidationMixin,rs as isDirtyMixin,Fs as isDisabledInteractiveMixin,Ls as isDisabledMixin,Vs as isFormAssociatedMixin,ti as isFormSubmitterMixin,ai as isHtmlForMixin,Ps as isLabelledMixin,di as isLinkButtonMixin,mi as isReadOnlyMixin,bi as isRequiredConstraintValidationMixin,yi as isRequiredMixin,ts as isSelectedMixin,cs as isTouchedMixin,$i as isVerticalMixin,at as prefersReducedMotion,nt as registerStyleSheet,ci as renderPseudoLink,rt as resolveElementById,ot as resolveFragmentUrl,Bt as safeStyleMap,lt as scrollIntoViewIfNeeded,Gt as setCustomState,Pt as spaceSeparatedStringConverter,Hs as updateLabels,Xs as validate};
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 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,$,E,S,C,z,M,L,W,F,A,D,_,T,H,P,I,O,B,N,V,R,U,q,j,X,Z,Y,G,K,Q,J,ee,te,se,ie,ae,ne,re,oe,le,ce,de,he,pe,me,ue,fe,ve,ye,ge,be,xe,we,ke,$e,Ee,Se,Ce,ze,Me,Le,We,Fe,Ae,De,_e,Te,He,Pe,Ie;class Oe{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 Be{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 Ne(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 Ve(e){const t=parseFloat(getComputedStyle(e).lineHeight);return isNaN(t)||t<=0?0:Math.round(e.scrollHeight/t)}async function Re(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 Ue(){return!i&&matchMedia("(forced-colors: active)").matches}function qe(e,t,s){return e+(t-e)*s}function je(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 Xe(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 Ze(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=je(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=Xe(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:qe(e.x,t.x,i),y:qe(e.y,t.y,i)})}else if("Q"===s.type){const[e,t,a]=s.pts;o.push(je(e,t,a,i))}else if("C"===s.type){const[e,t,a,n]=s.pts;o.push(Xe(e,t,a,n,i))}}return o}function Ye(e,t,s){return Math.max(t,Math.min(s,e))}function Ge(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 Ke(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 Qe(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 Je(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(Qe(s));for(let e=1;e<t.length;e++){let a=t[e];const n=Math.sign(Qe(a));0!==n&&n!==i&&(a=a.slice().reverse());const r=Ke(s,a);t[e]=Ge(a,r)}return t}(e.map(e=>Ze(e,t))).map(e=>`${e.map(e=>{const t=Ye(100*e.x,0,100),s=Ye(100*e.y,0,100);return`${t.toFixed(2)}% ${s.toFixed(2)}%`}).join(", ")}`)}function et(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+=et(i,t);else for(const i of e.childNodes)s+=et(i,t)}return t&&(s=s.trim()),s}function tt(){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 st(e){return e.assignedNodes({flatten:!0}).length>0}function it(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 at(){return i||matchMedia("(prefers-reduced-motion)").matches}function nt(e){if("undefined"==typeof window)return;const t=new CSSStyleSheet;t.replaceSync(e.toString()),document.adoptedStyleSheets=[...document.adoptedStyleSheets,t]}function rt(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 ot(e){const t=document?.location??null;return`url(${t?(t.pathname+t.search).split("#")[0]:""}#${e})`}function lt(e,t,s){const i=t.getBoundingClientRect(),a=e.getBoundingClientRect();(a.top<i.top||a.bottom>i.bottom)&&e.scrollIntoView(s)}w=new WeakMap,k=new WeakMap,$=new WeakMap;class ct{constructor(e=100){E.set(this,[]),S.set(this,void 0),t(this,S,e,"f")}add(t,s=performance.now()){e(this,E,"f").push({y:t,t:s});const i=s-e(this,S,"f");for(;e(this,E,"f").length>1&&e(this,E,"f")[0].t<i;)e(this,E,"f").shift()}getVelocity(){if(e(this,E,"f").length<2)return 0;const t=e(this,E,"f")[0],s=e(this,E,"f")[e(this,E,"f").length-1],i=s.y-t.y,a=(s.t-t.t)/1e3;return a>0?i/a:0}reset(){e(this,E,"f").length=0}}async function dt(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())}E=new WeakMap,S=new WeakMap;class ht extends Be{constructor(s,i){super(s,i),C.add(this),z.set(this,!1),M.set(this,void 0),L.set(this,t=>e(this,C,"m",P).call(this,t)),W.set(this,t=>e(this,C,"m",I).call(this,t)),F.set(this,t=>e(this,C,"m",O).call(this,t)),A.set(this,()=>t(this,z,!0,"f")),D.set(this,()=>t(this,z,!1,"f")),_.set(this,!1),T.set(this,()=>t(this,_,!0,"f")),H.set(this,()=>t(this,_,!1,"f")),t(this,M,i.callback,"f")}hostConnected(){super.hostConnected(),window?.addEventListener("keydown",e(this,T,"f"),{capture:!0,passive:!0}),window?.addEventListener("pointerdown",e(this,H,"f"),{capture:!0})}hostDisconnected(){super.hostDisconnected(),window?.removeEventListener("keydown",e(this,T,"f"),{capture:!0}),window?.removeEventListener("pointerdown",e(this,H,"f"),{capture:!0})}_observe(t){t.addEventListener("keydown",e(this,L,"f")),t.addEventListener("focusin",e(this,W,"f")),t.addEventListener("focusout",e(this,F,"f")),t.addEventListener("touchstart",e(this,A,"f")),t.addEventListener("touchend",e(this,D,"f")),t.addEventListener("touchcancel",e(this,D,"f"))}_unobserve(t){t.removeEventListener("keydown",e(this,L,"f")),t.removeEventListener("focusin",e(this,W,"f")),t.removeEventListener("focusout",e(this,F,"f")),t.removeEventListener("touchstart",e(this,A,"f")),t.removeEventListener("touchend",e(this,D,"f")),t.removeEventListener("touchcancel",e(this,D,"f"))}}z=new WeakMap,M=new WeakMap,L=new WeakMap,W=new WeakMap,F=new WeakMap,A=new WeakMap,D=new WeakMap,_=new WeakMap,T=new WeakMap,H=new WeakMap,C=new WeakSet,P=function(t){t.currentTarget.matches(":focus-within")&&e(this,C,"m",I).call(this,t)},I=function(t){if(e(this,z,"f"))return;const s=t.currentTarget;e(this,M,"f").call(this,!0,s.matches(":focus-visible")||e(this,_,"f")||Ue(),s)},O=function(t){e(this,z,"f")||e(this,M,"f").call(this,!1,!1,t.currentTarget)};class pt extends Be{constructor(s,i){super(s,i),B.add(this),N.set(this,void 0),V.set(this,new Map),R.set(this,new Map),U.set(this,t=>e(this,B,"m",Y).call(this,t)),q.set(this,t=>e(this,B,"m",G).call(this,t)),t(this,N,i.callback,"f"),this.startDelay=i.startDelay??0,this.endDelay=i.endDelay??0}clearDelays(){for(const t of this.targets)e(this,B,"m",j).call(this,t)}_observe(t){t.addEventListener("pointerenter",e(this,U,"f")),t.addEventListener("pointerleave",e(this,q,"f")),t.addEventListener("touchend",e(this,q,"f"))}_unobserve(t){t.removeEventListener("pointerenter",e(this,U,"f")),t.removeEventListener("pointerleave",e(this,q,"f")),t.removeEventListener("touchend",e(this,q,"f"))}}N=new WeakMap,V=new WeakMap,R=new WeakMap,U=new WeakMap,q=new WeakMap,B=new WeakSet,j=function(t){e(this,B,"m",X).call(this,t),e(this,B,"m",Z).call(this,t)},X=function(t){return!!e(this,V,"f").has(t)&&(clearTimeout(e(this,V,"f").get(t)),e(this,V,"f").delete(t))},Z=function(t){return!!e(this,R,"f").has(t)&&(clearTimeout(e(this,R,"f").get(t)),e(this,R,"f").delete(t))},Y=function(t){const s=t.target;e(this,B,"m",Z).call(this,s),this.startDelay>0?(e(this,B,"m",X).call(this,s),e(this,V,"f").set(s,setTimeout(()=>{e(this,V,"f").delete(s),e(this,N,"f").call(this,!0,s)},this.startDelay))):e(this,N,"f").call(this,!0,s)},G=function(t){const s=t.target;e(this,B,"m",X).call(this,s)||(this.endDelay>0?(e(this,B,"m",Z).call(this,s),e(this,R,"f").set(s,setTimeout(()=>{e(this,R,"f").delete(s),e(this,N,"f").call(this,!1,s)},this.endDelay))):e(this,N,"f").call(this,!1,s))};class mt{constructor(e){K.set(this,void 0),Q.set(this,new Array),t(this,K,e,"f"),e.addController(this)}lock(){this.unlock();for(let t=e(this,K,"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,Q,"f").push(s))}unlock(){e(this,Q,"f").forEach(e=>e.inert=!1),e(this,Q,"f").length=0}hostDisconnected(){this.unlock()}}K=new WeakMap,Q=new WeakMap;class ut extends Be{constructor(s,a){super(s,a),J.set(this,void 0),ee.set(this,!1),te.set(this,void 0),se.set(this,!0),t(this,J,a.callback,"f"),t(this,ee,a.skipInitial??!1,"f"),i||(window.IntersectionObserver?t(this,te,new IntersectionObserver((t,s)=>{e(this,J,"f").call(this,t,s)},a.init),"f"):console.warn("IntersectionController error: the browser does not support IntersectionObserver."))}async hostUpdated(){e(this,te,"f")&&!e(this,ee,"f")&&e(this,se,"f")&&e(this,J,"f").call(this,[],e(this,te,"f")),t(this,se,!1,"f")}_observe(s){e(this,te,"f")?.observe(s),t(this,se,!0,"f")}_unobserve(t){e(this,te,"f")?.unobserve(t)}}J=new WeakMap,ee=new WeakMap,te=new WeakMap,se=new WeakMap;class ft extends Be{constructor(s,i){super(s,i),ie.add(this),ae.set(this,void 0),ne.set(this,void 0),re.set(this,new Set),oe.set(this,new Map),le.set(this,t=>e(this,ie,"m",de).call(this,t)),ce.set(this,t=>e(this,ie,"m",he).call(this,t)),t(this,ae,i.callback,"f"),t(this,ne,i.threshold??500,"f")}_observe(t){t.addEventListener("touchstart",e(this,le,"f"),{passive:!0}),t.addEventListener("touchend",e(this,ce,"f")),t.addEventListener("touchcancel",e(this,ce,"f"))}_unobserve(t){t.removeEventListener("touchstart",e(this,le,"f")),t.removeEventListener("touchend",e(this,ce,"f")),t.removeEventListener("touchcancel",e(this,ce,"f"))}}ae=new WeakMap,ne=new WeakMap,re=new WeakMap,oe=new WeakMap,le=new WeakMap,ce=new WeakMap,ie=new WeakSet,de=function(t){if(t.currentTarget instanceof HTMLElement&&this.isObserving(t.currentTarget)){const s=t.currentTarget;e(this,oe,"f").set(s,setTimeout(()=>{e(this,re,"f").add(s),e(this,oe,"f").delete(s),e(this,ae,"f").call(this,!0,s)},e(this,ne,"f")))}},he=function(t){if(t.currentTarget instanceof HTMLElement&&this.isObserving(t.currentTarget)){const s=t.currentTarget;e(this,re,"f").has(s)&&(e(this,ae,"f").call(this,!1,s),e(this,re,"f").delete(s)),e(this,oe,"f").has(s)&&(clearTimeout(e(this,oe,"f").get(s)),e(this,oe,"f").delete(s))}};class vt extends Be{constructor(s,a){super(s,a),pe.set(this,void 0),me.set(this,!1),ue.set(this,void 0),fe.set(this,void 0),ve.set(this,!0),t(this,pe,a.callback,"f"),t(this,me,a.skipInitial??!1,"f"),t(this,ue,a.config,"f"),i||(window.MutationObserver?t(this,fe,new MutationObserver((t,s)=>e(this,pe,"f").call(this,t,s)),"f"):console.warn("MutationController error: the browser does not support MutationObserver."))}async hostUpdated(){if(e(this,fe,"f")&&!e(this,me,"f")&&e(this,ve,"f")){const t=e(this,fe,"f").takeRecords();t.length>0&&e(this,pe,"f").call(this,t,e(this,fe,"f"))}t(this,ve,!1,"f")}hostDisconnected(){super.hostDisconnected(),e(this,fe,"f")?.disconnect()}_observe(s){e(this,fe,"f")?.observe(s,e(this,ue,"f")),t(this,ve,!0,"f")}_unobserve(){e(this,fe,"f")?.disconnect();for(const t of this.targets)e(this,fe,"f")?.observe(t,e(this,ue,"f"))}}pe=new WeakMap,me=new WeakMap,ue=new WeakMap,fe=new WeakMap,ve=new WeakMap;class yt extends Be{constructor(s,i){super(s,i),ye.add(this),ge.set(this,void 0),be.set(this,void 0),xe.set(this,void 0),we.set(this,new Map),ke.set(this,void 0),$e.set(this,t=>e(this,ye,"m",Me).call(this,t)),Ee.set(this,t=>e(this,ye,"m",Le).call(this,t)),Se.set(this,t=>e(this,ye,"m",We).call(this,t)),Ce.set(this,t=>e(this,ye,"m",Fe).call(this,t)),ze.set(this,t=>e(this,ye,"m",Ae).call(this,t)),t(this,ge,i.capture,"f"),t(this,be,i.callback,"f"),t(this,xe,i.isPressedKey,"f"),t(this,ke,i.minPressedDuration??0,"f")}hostConnected(){document.addEventListener("pointerup",e(this,Ee,"f"),{capture:e(this,ge,"f")}),document.addEventListener("touchend",e(this,Se,"f"),{capture:e(this,ge,"f")}),document.addEventListener("touchcancel",e(this,Se,"f"),{capture:e(this,ge,"f")}),super.hostConnected()}hostDisconnected(){document.removeEventListener("pointerup",e(this,Ee,"f"),{capture:e(this,ge,"f")}),document.removeEventListener("touchend",e(this,Se,"f"),{capture:e(this,ge,"f")}),document.removeEventListener("touchcancel",e(this,Se,"f"),{capture:e(this,ge,"f")}),super.hostDisconnected(),e(this,we,"f").clear()}_observe(t){t.addEventListener("pointerdown",e(this,$e,"f"),{capture:e(this,ge,"f")}),e(this,xe,"f")&&(t.addEventListener("keydown",e(this,Ce,"f"),{capture:e(this,ge,"f")}),t.addEventListener("keyup",e(this,ze,"f"),{capture:e(this,ge,"f")}))}_unobserve(t){t.removeEventListener("pointerdown",e(this,$e,"f"),{capture:e(this,ge,"f")}),e(this,xe,"f")&&(t.removeEventListener("keydown",e(this,Ce,"f"),{capture:e(this,ge,"f")}),t.removeEventListener("keyup",e(this,ze,"f"),{capture:e(this,ge,"f")}))}}ge=new WeakMap,be=new WeakMap,xe=new WeakMap,we=new WeakMap,ke=new WeakMap,$e=new WeakMap,Ee=new WeakMap,Se=new WeakMap,Ce=new WeakMap,ze=new WeakMap,ye=new WeakSet,Me=function(t){if(!("mouse"===t.pointerType&&t.button>1))for(const s of t.composedPath())if(s instanceof HTMLElement&&this.isObserving(s)){e(this,we,"f").has(s)||(e(this,we,"f").set(s,performance.now()),e(this,be,"f").call(this,!0,{x:t.x,y:t.y},s));break}},Le=function(t){"mouse"===t.pointerType&&t.button>1||e(this,ye,"m",De).call(this,t.x,t.y)},We=function(t){e(this,ye,"m",De).call(this,t.changedTouches[0]?.clientX??0,t.changedTouches[0]?.clientY??0)},Fe=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,we,"f").has(s))){e(this,we,"f").set(s,performance.now());const t=s.getBoundingClientRect();e(this,be,"f").call(this,!0,{x:t.x+t.width/2,y:t.y+t.height/2},s)}},Ae=function(t){const s=t.target;if(e(this,we,"f").has(s)&&e(this,xe,"f")?.call(this,t.key)){const t=e(this,ke,"f")-(performance.now()-e(this,we,"f").get(s)),i=s.getBoundingClientRect();t>0?setTimeout(()=>{e(this,we,"f").delete(s),e(this,be,"f").call(this,!1,{x:i.x+i.width/2,y:i.y+i.height/2},s)},t):(e(this,we,"f").delete(s),e(this,be,"f").call(this,!1,{x:i.x+i.width/2,y:i.y+i.height/2},s))}},De=function(t,s){for(const i of e(this,we,"f")){const a=e(this,ke,"f")-(performance.now()-i[1]);a>0?setTimeout(()=>{e(this,we,"f").delete(i[0]),e(this,be,"f").call(this,!1,{x:t,y:s},i[0])},a):(e(this,we,"f").delete(i[0]),e(this,be,"f").call(this,!1,{x:t,y:s},i[0]))}};class gt extends Be{constructor(s,a){super(s,a),_e.set(this,void 0),Te.set(this,void 0),He.set(this,void 0),Pe.set(this,void 0),Ie.set(this,!0),t(this,_e,a.callback,"f"),t(this,Te,a.skipInitial??!1,"f"),t(this,He,a.config,"f"),i||(window.ResizeObserver?t(this,Pe,new ResizeObserver((t,s)=>e(this,_e,"f").call(this,t,s)),"f"):console.warn("ResizeController error: the browser does not support ResizeObserver."))}async hostUpdated(){e(this,Pe,"f")&&!e(this,Te,"f")&&e(this,Ie,"f")&&e(this,_e,"f").call(this,[],e(this,Pe,"f")),t(this,Ie,!1,"f")}_observe(s){e(this,Pe,"f")?.observe(s,e(this,He,"f")),t(this,Ie,!0,"f")}_unobserve(t){e(this,Pe,"f")?.unobserve(t)}}_e=new WeakMap,Te=new WeakMap,He=new WeakMap,Pe=new WeakMap,Ie=new WeakMap;const bt=e=>(t,s)=>{const i=()=>{"undefined"==typeof window||customElements.get(e)||customElements.define(e,t)};s?s.addInitializer(i):i()};function xt(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 wt,kt,$t,Et,St,Ct,zt,Mt,Lt,Wt,Ft,At,Dt,_t;class Tt extends Be{constructor(s,i){super(s,i),wt.add(this),kt.set(this,void 0),$t.set(this,void 0),Et.set(this,t=>e(this,wt,"m",zt).call(this,t)),St.set(this,new Map),t(this,kt,!0===i.debounce,"f"),t(this,$t,i.callback,"f")}getScrollContainers(t){return e(this,St,"f").get(t)}_observe(t){const s=e(this,wt,"m",Ct).call(this,t);if(s.length>0){e(this,St,"f").set(t,s);for(const t of s)(t===document.documentElement?document:t).addEventListener("scroll",e(this,Et,"f"),{passive:!0})}}_unobserve(t){if(e(this,St,"f").has(t)){for(const s of e(this,St,"f").get(t))(s===document.documentElement?document:s).removeEventListener("scroll",e(this,Et,"f"));e(this,St,"f").delete(t)}}_debounceCallback(t){e(this,$t,"f").call(this,t)}}kt=new WeakMap,$t=new WeakMap,Et=new WeakMap,St=new WeakMap,wt=new WeakSet,Ct=function(e){const t=new Array;let s=e;for(;s;){const e=getComputedStyle(s);/(auto|scroll)/.test(e.overflow+e.overflowY+e.overflowX)&&t.push(s),s=s.parentElement}return t},zt=function(t){const s=t.target===document?document.documentElement:t.target;e(this,kt,"f")?this._debounceCallback(s):e(this,$t,"f").call(this,s)},s([xt(40)],Tt.prototype,"_debounceCallback",null);class Ht{constructor(e){Mt.add(this),Lt.set(this,!1),Wt.set(this,0),Ft.set(this,0),At.set(this,""),Dt.set(this,""),e.addController(this)}lock(){e(this,Lt,"f")||(t(this,Lt,!0,"f"),t(this,Wt,window.scrollY,"f"),t(this,Ft,window.scrollX,"f"),t(this,At,document.documentElement.style.overflow,"f"),t(this,Dt,document.documentElement.style.scrollbarGutter,"f"),e(this,Mt,"m",_t).call(this)&&(document.documentElement.style.scrollbarGutter="stable"),document.documentElement.style.overflow="hidden",window.scrollTo(e(this,Ft,"f"),e(this,Wt,"f")))}unlock(){e(this,Lt,"f")&&(t(this,Lt,!1,"f"),document.documentElement.style.overflow=e(this,At,"f"),document.documentElement.style.scrollbarGutter=e(this,Dt,"f"),window.scrollTo(e(this,Ft,"f"),e(this,Wt,"f")))}hostDisconnected(){this.unlock()}}Lt=new WeakMap,Wt=new WeakMap,Ft=new WeakMap,At=new WeakMap,Dt=new WeakMap,Mt=new WeakSet,_t=function(){return document.documentElement.scrollHeight>document.documentElement.clientHeight};const Pt={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),p=Date.UTC(s,i,a,r,o,l,c);return new Date(p-6e4*h)}return null},toAttribute:e=>e?.toISOString()??null},It={fromAttribute:e=>e?e.split(/\s+/).map(e=>e.trim()).filter(Boolean):[],toAttribute:e=>e.join(" ")},Ot="important",Bt=" !"+Ot;const Nt=d(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(Bt);e.includes("-")||t?s.setProperty(e,t?i.slice(0,-11):i,t?Ot:""):s[e]=i}}return n}});function Vt(e,...t){return"object"==typeof e&&null!==e&&t.every(t=>t in e)}const Rt=Symbol("internals");function Ut(e){return Vt(e,Rt)}const qt=Symbol("_internals"),jt=Symbol("_customState");function Xt(e,t){var s;class i extends e{constructor(){super(...arguments),this[s]=new Set}get[(s=jt,Rt)](){return this[qt]??(this[qt]=this.attachInternals())}}return i.formAssociated=t,i}function Zt(e,t){return jt in e?e[jt].has(t):e[Rt].states.has(t)}function Yt(e,t){jt in e&&e[jt].add(t),e[Rt]?.states.add(t),e[Rt]?.states.has(t)}function Gt(e,t){return jt in e&&e[jt].delete(t),!!e[Rt]?.states.delete(t)&&(e[Rt]?.states.has(t),!0)}function Kt(e,t,s){s?Yt(e,t):Gt(e,t)}function Qt(e){return Vt(e,"checked")}function Jt(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 es(e){return Vt(e,"indeterminate")&&Qt(e)}function ts(e){class t extends(Jt(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 ss(e){return Vt(e,"selected")}function is(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 as(e){return Qt(e)||ss(e)}function ns(e){return Qt(e)&&e.checked||ss(e)&&e.selected}function rs(e,t){Qt(e)?e.checked=t:e.selected=t}function os(e){return Vt(e,"dirty","pristine","markAsDirty","markAsPristine")}const ls=Symbol("_eventHandler");function cs(e){var t;return t=ls,class extends e{constructor(){super(...arguments),this[t]=()=>this.markAsDirty()}get dirty(){return Zt(this,"-dirty")}get pristine(){return!this.dirty}connectedCallback(){this.markAsPristine(),super.connectedCallback(),this.addEventListener("change",this[ls])}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("change",this[ls])}markAsPristine(){Gt(this,"-dirty")}markAsDirty(){Yt(this,"-dirty")}}}function ds(e){return Vt(e,"touched","untouched","markAsTouched","markAsUntouched")}const hs=Symbol("_eventHandler");function ps(e){var t;return t=hs,class extends e{constructor(){super(...arguments),this[t]=()=>this.markAsTouched()}get touched(){return Zt(this,"-touched")}get untouched(){return!this.touched}connectedCallback(){this.markAsUntouched(),super.connectedCallback(),this.addEventListener("focusout",this[hs],{capture:!0})}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("focusout",this[hs],{capture:!0})}markAsTouched(){Yt(this,"-touched")}markAsUntouched(){Gt(this,"-touched")}}}const ms={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)")},us={scale:r("var(--md-sys-density-scale, 0)"),size:r("var(--md-sys-density-size, 0.25rem)")},fs={...us,calc:e=>r(`calc(max(${e}, ${us.scale}) * ${us.size})`)},vs=`color-mix(in srgb, var(--m3e-elevation-color, ${ms.shadow}) 20%, transparent)`,ys=["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"],gs=`color-mix(in srgb, var(--m3e-elevation-color, ${ms.shadow}) 14%, transparent)`,bs=["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"],xs=`color-mix(in srgb, var(--m3e-elevation-color, ${ms.shadow}) 12%, transparent)`,ws=["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 ks(e){return`${vs} ${ys[e]},${gs} ${bs[e]},${xs} ${ws[e]}`}const $s={level0:r(`var(--md-sys-elevation-level0, ${ks(0)})`),level1:r(`var(--md-sys-elevation-level1, ${ks(1)})`),level2:r(`var(--md-sys-elevation-level2, ${ks(3)})`),level3:r(`var(--md-sys-elevation-level3, ${ks(6)})`),level4:r(`var(--md-sys-elevation-level4, ${ks(8)})`),level5:r(`var(--md-sys-elevation-level5, ${ks(12)})`)},Es={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))")},Ss={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))")},Cs={easing:Es,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:Ss},zs={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)")},Ms={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)")},Ls={color:ms,elevation:$s,motion:Cs,shape:{corner:{full:r("var(--md-sys-shape-corner-full, 624.9375rem)"),extraLargeTop:r(`var(--md-sys-shape-corner-extra-large-top, ${Ms.extraLarge} ${Ms.extraLarge} ${Ms.none} ${Ms.none})`),extraLarge:r(`var(--md-sys-shape-corner-extra-large, ${Ms.extraLarge})`),extraLargeEnd:r(`${Ms.none} ${Ms.extraLarge} ${Ms.extraLarge} ${Ms.none}`),extraLargeStart:r(`${Ms.extraLarge} ${Ms.none} ${Ms.none} ${Ms.extraLarge}`),largeTop:r(`var(--md-sys-shape-corner-large-top, ${Ms.large} ${Ms.large} ${Ms.none} ${Ms.none})`),largeEnd:r(`var(--md-sys-shape-corner-large-end, ${Ms.none} ${Ms.large} ${Ms.large} ${Ms.none})`),largeStart:r(`var(--md-sys-shape-corner-large-end, ${Ms.large} ${Ms.none} ${Ms.none} ${Ms.large})`),large:r(`var(--md-sys-shape-corner-large, ${Ms.large})`),medium:r(`var(--md-sys-shape-corner-medium, ${Ms.medium})`),mediumTop:r(`${Ms.medium} ${Ms.medium} ${Ms.none} ${Ms.none}`),mediumEnd:r(`${Ms.none} ${Ms.medium} ${Ms.medium} ${Ms.none}`),mediumStart:r(`${Ms.medium} ${Ms.none} ${Ms.none} ${Ms.medium}`),small:r(`var(--md-sys-shape-corner-small, ${Ms.small})`),smallTop:r(`${Ms.small} ${Ms.small} ${Ms.none} ${Ms.none}`),smallEnd:r(`${Ms.none} ${Ms.small} ${Ms.small} ${Ms.none}`),smallStart:r(`${Ms.small} ${Ms.none} ${Ms.none} ${Ms.small}`),extraSmallTop:r(`var(--md-sys-shape-corner-extra-small-top, ${Ms.extraSmall} ${Ms.extraSmall} ${Ms.none} ${Ms.none})`),extraSmall:r(`var(--md-sys-shape-corner-extra-small, ${Ms.extraSmall})`),extraSmallEnd:r(`${Ms.none} ${Ms.extraSmall} ${Ms.extraSmall} ${Ms.none}`),extraSmallStart:r(`${Ms.extraSmall} ${Ms.none} ${Ms.none} ${Ms.extraSmall}`),extraSmallBottom:r(`${Ms.none} ${Ms.none} ${Ms.extraSmall} ${Ms.extraSmall}`),none:r(`var(--md-sys-shape-corner-none, ${Ms.none})`),largeIncreased:r(`var(--md-sys-shape-corner-large-increased, ${Ms.largeIncreased})`),extraLargeIncreased:r(`var(--md-sys-shape-corner-extra-large-increased, ${Ms.extraLargeIncreased})`),extraExtraLarge:r(`var(--md-sys-shape-corner-extra-extra-large, ${Ms.extraExtraLarge})`),value:Ms}},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:zs,density:fs};function Ws(e){return Vt(e,"disabled")}function Fs(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 As(e){return Vt(e,"disabledInteractive")&&Ws(e)}const Ds=["click","dblclick","auxclick","keydown","keyup"],_s=["Tab","ArrowLeft","ArrowUp","ArrowRight","ArrowDown","Left","Up","Right","Down"],Ts=Symbol("_suppressedEventHandler");function Hs(e){var t;class i extends e{constructor(){super(...arguments),this[t]=e=>{if(this.disabledInteractive){if(e instanceof KeyboardEvent&&_s.includes(e.key))return;e.stopImmediatePropagation(),e.preventDefault()}},this.disabledInteractive=!1}connectedCallback(){Ds.forEach(e=>this.addEventListener(e,this[Ts],!0)),super.connectedCallback()}disconnectedCallback(){Ds.forEach(e=>this.removeEventListener(e,this[Ts],!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=Ts,s([m({attribute:"disabled-interactive",type:Boolean,reflect:!0})],i.prototype,"disabledInteractive",void 0),i}const Ps=Symbol("updateLabels");function Is(e){return Vt(e,"labels")&&Ut(e)}const Os=Symbol("_eventHandler");function Bs(e){var t;class s extends e{constructor(){super(...arguments),this[t]=e=>{e.defaultPrevented||this[Ps]()}}get labels(){return this[Rt].labels}connectedCallback(){super.connectedCallback(),this.addEventListener("focusout",this[Os]),this.addEventListener("change",this[Os])}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("focusout",this[Os]),this.removeEventListener("change",this[Os])}update(e){super.update(e),this[Ps]()}[(t=Os,Ps)](){const e=this.hasAttribute("tabindex"),t=Ws(this)&&this.disabled||As(this)&&this.disabledInteractive,s=ds(this)&&this.touched&&(this.ariaInvalid||Zt(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, ${Ls.color.onSurface} 38%, transparent)`:s?`${Ls.color.error}`:""}}return s.formAssociated=!0,s}const Ns=Symbol("formValue"),Vs=Symbol("defaultValue");function Rs(e){return Vt(e,"disabled","form","name")&&Is(e)&&Ut(e)}const Us=Symbol("_defaultValue"),qs=Symbol("_defaultIndeterminate"),js=Symbol("_formDisabled");function Xs(e){var t,i;class a extends e{constructor(){super(...arguments),this[t]=!1,this[i]=!1}get form(){return this[Rt].form}get labels(){return this[Rt].labels}get[(t=qs,i=js,Ns)](){return null}get[Vs](){return this[Us]}get name(){return this.getAttribute("name")??""}set name(e){e?this.setAttribute("name",e):this.removeAttribute("name")}get disabled(){return super.disabled||this[js]}set disabled(e){super.disabled=e}connectedCallback(){super.connectedCallback(),Qt(this)?(this[Us]=this.checked,es(this)&&(this[qs]=this.indeterminate)):"value"in this&&(this[Us]=this.value)}requestUpdate(e,t,s){super.requestUpdate(e,t,s),this[Rt].setFormValue(this[Ns])}formDisabledCallback(e){const t=this.disabled;this[js]=e,this.disabled!=t&&this.requestUpdate("disabled",t)}formResetCallback(){Qt(this)?(this.checked=!0===this[Us],es(this)&&(this.indeterminate=this[qs])):"value"in this&&(this.value=this[Vs]),os(this)&&this.markAsPristine(),ds(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 Zs=Symbol("validate");function Ys(e){return Vt(e,"willValidate","validity","validationMessage","reportValidity","checkValidity","setCustomValidity")&&Rs(e)}const Gs=Symbol("_updateValidity"),Ks=Symbol("_validityMessage");function Qs(t){var s,a;class n extends t{constructor(){super(...arguments),s.add(this)}get willValidate(){return this[Rt].willValidate}get validity(){return this[Gs](),this[Rt].validity}get validationMessage(){return this[Gs](),this[Rt].validationMessage}[(s=new WeakSet,Zs)](){return this[Ks]?{customError:!0}:void 0}reportValidity(){return ds(this)&&this.markAsTouched(),this[Gs](),this[Rt].reportValidity()}checkValidity(){return this[Gs](),this[Rt].checkValidity()}setCustomValidity(e){this[Ks]=e||void 0,this[Gs]()}requestUpdate(e,t,s){super.requestUpdate(e,t,s),this[Gs]()}firstUpdated(e){super.firstUpdated(e),this[Gs]()}[Gs](){if(i||!this.isConnected)return;const t=this[Zs](),n=t&&Object.keys(t).some(e=>!0===t[e]);let r=t?.customError?this[Ks]:"";t&&!r&&(r=e(this,s,"m",a).call(this,t)),this[Rt].setValidity(t,r),this.ariaInvalid=n?"true":null,Kt(this,"-invalid",!0===n),Is(this)&&this[Ps]?.()}}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}function Js(e,...t){return class extends e{dispatchEvent(e){if(t.includes(e.type)){const t=this.getAttribute(`on${e.type}`);t&&new Function("e",`${t};`).call(this,e)}return super.dispatchEvent(e)}}}const ei=Symbol("_tabindex");function ti(e){var t;return t=ei,class extends e{constructor(){super(...arguments),this[t]=0}connectedCallback(){this[ei]=Number.parseInt(this.getAttribute("tabindex")??"0"),super.connectedCallback()}firstUpdated(e){super.firstUpdated(e),this.hasAttribute("tabindex")||e.has("disabled")||this.setAttribute("tabindex",`${this[ei]}`)}update(e){if(super.update(e),e.has("disabled"))if(this.disabled||"none"===this.role){const e=this.getAttribute("tabindex");e&&(this[ei]=Number.parseInt(e)),this.removeAttribute("tabindex")}else this.hasAttribute("tabindex")||this.setAttribute("tabindex",`${this[ei]}`)}}}function si(e){return Vt(e,"name","type","value")&&Ut(e)}const ii=Symbol("_clickHandler");function ai(e){var t;class i extends e{constructor(){super(...arguments),this.type="button",this[t]=async e=>{if(e.defaultPrevented||Ws(this)&&this.disabled||As(this)&&this.disabledInteractive)return;const t=this[Rt].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[Rt].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[ii])}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",this[ii])}}return t=ii,i.formAssociated=!0,s([m()],i.prototype,"name",null),s([m()],i.prototype,"value",null),s([m()],i.prototype,"type",void 0),i}function ni(e){return Vt(e,"htmlFor","control","attach","detach")}const ri=Symbol("_control"),oi=Symbol("_firstUpdated");function li(e){var t;class i extends e{constructor(){super(...arguments),this[t]=!1,this.htmlFor=null}get control(){return this[ri]?.deref()??null}connectedCallback(){super.connectedCallback();const e=this[ri]?.deref();e&&this.attach(e)}disconnectedCallback(){super.disconnectedCallback();const e=this[ri];e&&(this.detach(),this[ri]=e)}firstUpdated(e){super.firstUpdated(e),this[oi]=!0}update(e){if(super.update(e),e.has("htmlFor"))if(this.htmlFor){const e=this.getRootNode();e&&rt(this.htmlFor,e).then(e=>{e!==this.control&&(this.control&&this.detach(),e instanceof HTMLElement&&this.attach(e))})}else this.control&&this[oi]&&this.detach()}attach(e){this[ri]=new WeakRef(e)}detach(){this[ri]=void 0}}return t=oi,s([m({attribute:"for"})],i.prototype,"htmlFor",void 0),i}function ci(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||Ws(this)&&this.disabled||As(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||Ws(this)&&this.disabled||As(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 di=Symbol("renderPseudoLink");function hi(e){return Vt(e,"download","href","rel","target")}const pi=Symbol("_clickHandler");function mi(t){var i,n,r,l,c;class d extends t{constructor(){super(...arguments),i.add(this),this[c]=async e=>{if(As(this)&&this.disabledInteractive&&(e.preventDefault(),e.stopPropagation()),await new Promise(e=>e()),!e.defaultPrevented&&this.href){e.preventDefault(),e.stopImmediatePropagation();const t=document.createElement("a");t.href=this.href,t.rel=this.rel,t.target=this.target,null!=this.download&&(t.download=this.download),t.addEventListener("click",async()=>{await new Promise(e=>e()),t.remove()}),document.body.appendChild(t),t.click()}},this.href="",this.target="",this.rel=""}get download(){return this.getAttribute("download")}set download(e){const t=this.download;t!==e&&(e?this.setAttribute("download",e):this.removeAttribute("download"),this.requestUpdate("download",t))}connectedCallback(){super.connectedCallback(),this.addEventListener("click",this[pi]),this.hasAttribute("href")&&"button"===this.role&&(this.role="link")}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",this[pi])}[(i=new WeakSet,c=pi,di)](){const t=Ws(this)&&this.disabled,s=As(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,i,"m",n)}" @focus="${e(this,i,"m",r)}" @blur="${e(this,i,"m",l)}"></a>`}}return n=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")},r=function(e){e.target.blur(),this.focus()},l=function(e){e.target.setAttribute("aria-hidden","true")},s([m()],d.prototype,"href",void 0),s([m()],d.prototype,"target",void 0),s([m()],d.prototype,"rel",void 0),s([m({reflect:!1})],d.prototype,"download",null),d}function ui(e){return Vt(e,"readOnly")}function fi(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 vi=Symbol("_wasConnected");function yi(e){var t;return t=vi,class extends e{constructor(){super(...arguments),this[t]=!1}reconnectedCallback(){}connectedCallback(){super.connectedCallback(),this[vi]&&this.reconnectedCallback()}disconnectedCallback(){super.disconnectedCallback(),this[vi]=!0}}}function gi(e){return Vt(e,"required","optional")}function bi(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 xi(e){return gi(e)&&Ys(e)}function wi(e){return class extends e{[Zs](){const e=super[Zs]();if(!e&&this.required){if(Qt(this)&&!this.checked)return{valueMissing:!0};if(!this.value)return{valueMissing:!0}}return e}}}function ki(e,t){return class extends e{connectedCallback(){this.role=this.role||t,super.connectedCallback()}}}function $i(e){return class extends e{connectedCallback(){super.connectedCallback(),Yt(this,"-no-animate"),requestAnimationFrame(()=>Gt(this,"-no-animate"))}}}function Ei(e){return Vt(e,"vertical")}function Si(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 Ci,zi,Mi,Li,Wi,Fi,Ai,Di;class _i extends c{constructor(){super(...arguments),Ci.set(this,e=>{e.defaultPrevented||this._onClick(e)})}connectedCallback(){super.connectedCallback(),this.parentElement?.addEventListener("click",e(this,Ci,"f"))}disconnectedCallback(){super.disconnectedCallback(),this.parentElement?.removeEventListener("click",e(this,Ci,"f"))}render(){return o`<slot></slot>`}}Ci=new WeakMap,_i.styles=l`:host { display: contents; } ::slotted(.material-icons) { font-size: inherit !important; }`;let Ti=class extends(Js(Xt(c),"opening","opened","closing","closed")){constructor(){super(...arguments),zi.add(this),Mi.set(this,!1),Li.set(this,!1),this.open=!1}update(s){if(super.update(s),Yt(this,"-no-animate"),!e(this,Mi,"f"))return this.open&&(t(this,Li,!0,"f"),e(this,zi,"m",Fi).call(this)),void t(this,Mi,!0,"f");this.toggleAttribute("inert",!this.open),this.open?(t(this,Li,!0,"f"),at()||(e(this,zi,"m",Fi).call(this),Kt(this,"-overflows",this.clientHeight<this.scrollHeight),e(this,zi,"m",Ai).call(this)),Gt(this,"-closing"),Yt(this,"-opening"),this.dispatchEvent(new Event("opening")),e(this,zi,"m",Ai).call(this),Gt(this,"-no-animate"),e(this,zi,"m",Di).call(this),at()?(e(this,zi,"m",Fi).call(this),Gt(this,"-opening"),this.dispatchEvent(new Event("opened"))):this.addEventListener("transitionend",()=>{this.open&&(e(this,zi,"m",Fi).call(this),Gt(this,"-opening"),this.dispatchEvent(new Event("opened")))},{once:!0})):(Gt(this,"-opening"),Yt(this,"-closing"),this.dispatchEvent(new Event("closing")),e(this,zi,"m",Di).call(this),e(this,Li,"f")&&Gt(this,"-no-animate"),at()?(e(this,zi,"m",Ai).call(this),Gt(this,"-closing"),this.dispatchEvent(new Event("closed"))):requestAnimationFrame(()=>{e(this,zi,"m",Ai).call(this),this.addEventListener("transitionend",()=>{this.open||(Gt(this,"-closing"),this.dispatchEvent(new Event("closed")))},{once:!0})}))}render(){return o`<slot @slotchange="${e(this,zi,"m",Wi)}"></slot>`}};Mi=new WeakMap,Li=new WeakMap,zi=new WeakSet,Wi=function(){t(this,Mi,!0,"f")},Fi=function(){this.style.height="auto"},Ai=function(){this.style.height=""},Di=function(){this.style.height=`${this.scrollHeight}px`},Ti.styles=l`:host { display: block; height: 0px; overflow: hidden; transition: ${r(`visibility var(--m3e-collapsible-animation-duration, ${Ls.motion.duration.medium1})\n ${Ls.motion.easing.standard},\n height var(--m3e-collapsible-animation-duration, ${Ls.motion.duration.medium1})\n ${Ls.motion.easing.standard},\n padding-top var(--m3e-collapsible-animation-duration, ${Ls.motion.duration.medium1})\n ${Ls.motion.easing.standard},\n padding-bottom var(--m3e-collapsible-animation-duration, ${Ls.motion.duration.medium1})\n ${Ls.motion.easing.standard}`)}; } :host(:not(:state(-closing)):not([open])) { visibility: hidden; } :host(:not([open])) { min-height: unset !important; padding-top: 0px !important; padding-bottom: 0px !important; } :host(:state(-no-animate)) { transition-duration: 0ms; } :host(:state(-opening)), :host(:state(-closing)) { overflow-y: hidden !important; } :host(:state(-overflows)) { scrollbar-gutter: stable; } ::slotted(*) { --m3e-collapsible-animation-duration: initial; } @media (prefers-reduced-motion) { :host { transition: none; } }`,s([m({type:Boolean,reflect:!0})],Ti.prototype,"open",void 0),Ti=s([bt("m3e-collapsible")],Ti);const Hi=r(`var(--m3e-elevation-lift-duration, ${Ls.motion.duration.short4})`),Pi=r(`var(--m3e-elevation-lift-easing, ${Ls.motion.easing.standard})`),Ii=r(`var(--m3e-elevation-settle-duration, ${Ls.motion.duration.short3})`),Oi=r(`var(--m3e-elevation-settle-easing, ${Ls.motion.easing.standardAccelerate})`),Bi=r(`var(--m3e-elevation-level, ${Ls.elevation.level0})`),Ni=r(`var(--m3e-elevation-hover-level, ${Ls.elevation.level0})`),Vi=r(`var(--m3e-elevation-focus-level, ${Ls.elevation.level0})`),Ri=r(`var(--m3e-elevation-pressed-level, ${Ls.elevation.level0})`);var Ui,qi,ji,Xi,Zi,Yi,Gi;let Ki=class extends(li(ki(c,"none"))){constructor(){super(...arguments),Ui.add(this),qi.set(this,new pt(this,{target:null,callback:t=>e(this,Ui,"m",Zi).call(this,t)})),ji.set(this,new ht(this,{target:null,callback:t=>e(this,Ui,"m",Yi).call(this,t)})),Xi.set(this,new yt(this,{target:null,callback:t=>e(this,Ui,"m",Gi).call(this,t)})),this.disabled=!1,this.level=null}attach(t){super.attach(t),e(this,qi,"f").observe(t),e(this,ji,"f").observe(t),e(this,Xi,"f").observe(t)}detach(){this.control&&(e(this,qi,"f").unobserve(this.control),e(this,ji,"f").unobserve(this.control),e(this,Xi,"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>`}};qi=new WeakMap,ji=new WeakMap,Xi=new WeakMap,Ui=new WeakSet,Zi=function(e){this.disabled||(this._shadow?.classList.toggle("hover",e),this._shadow?.classList.toggle("resting",!e))},Yi=function(e){this.disabled||this._shadow?.classList.toggle("focus",e)},Gi=function(e){this.disabled||this._shadow?.classList.toggle("pressed",e)},Ki.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 ${Ii} ${Oi};`)}; } .shadow.hover { will-change: box-shadow; transition: ${r(`box-shadow ${Hi} ${Pi};`)}; } .shadow { box-shadow: ${Bi}; } .shadow.focus { box-shadow: ${Vi}; } .shadow.hover { box-shadow: ${Ni}; } .shadow.pressed { box-shadow: ${Ri}; } :host([level="0"]) .shadow { --m3e-elevation-level: ${Ls.elevation.level0}; --m3e-elevation-hover-level: ${Ls.elevation.level1}; } :host([level="1"]) .shadow { --m3e-elevation-level: ${Ls.elevation.level1}; --m3e-elevation-hover-level: ${Ls.elevation.level2}; } :host([level="2"]) .shadow { --m3e-elevation-level: ${Ls.elevation.level2}; --m3e-elevation-hover-level: ${Ls.elevation.level3}; } :host([level="3"]) .shadow { --m3e-elevation-level: ${Ls.elevation.level3}; --m3e-elevation-hover-level: ${Ls.elevation.level4}; } :host([level="4"]) .shadow { --m3e-elevation-level: ${Ls.elevation.level4}; --m3e-elevation-hover-level: ${Ls.elevation.level5}; } :host([level="5"]) .shadow { --m3e-elevation-level: ${Ls.elevation.level5}; --m3e-elevation-hover-level: ${Bi}; } :host([level]) .shadow { --m3e-elevation-focus-level: ${Bi}; --m3e-elevation-pressed-level: ${Bi}; } @media (prefers-reduced-motion) { .shadow.resting, .shadow.pressed, .shadow.focus, .shadow.hover { transition: none; } } @media (forced-colors: active) { .shadow { display: none; } }`,s([u(".shadow")],Ki.prototype,"_shadow",void 0),s([m({type:Boolean,reflect:!0})],Ki.prototype,"disabled",void 0),s([m({type:Number,reflect:!0})],Ki.prototype,"level",void 0),Ki=s([bt("m3e-elevation")],Ki);const Qi=r(`var(--m3e-focus-ring-color, ${Ls.color.secondary})`),Ji=r(`var(--m3e-focus-ring-duration, ${Ls.motion.duration.long2})`),ea=r("var(--m3e-focus-ring-thickness, 3px)"),ta=r("var(--m3e-focus-ring-outward-offset, 2px)"),sa=r("var(--m3e-focus-ring-inward-offset, 0px)"),ia=r("var(--m3e-focus-ring-visibility, visible)"),aa=r("var(--m3e-focus-ring-growth-factor, 2)");var na,ra,oa;let la=class extends(li(ki(c,"none"))){constructor(){super(...arguments),na.add(this),ra.set(this,new ht(this,{target:null,callback:(t,s)=>e(this,na,"m",oa).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,ra,"f").observe(t)}detach(){this.control&&e(this,ra,"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()}};ra=new WeakMap,na=new WeakSet,oa=function(e){this.disabled||(e?this.show():this.hide())},la.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: ${Qi}; outline-width: ${ea}; visibility: ${ia}; } .outline.visible { outline-style: solid; } :host(:not([inward])) .outline { outline-offset: ${ta}; } :host([inward]) .outline { outline-offset: calc(${sa} - ${ea}); } :host(:not([inward])) .outline.visible { animation: grow-shrink ${Ji}; } :host([inward]) .outline.visible { animation: shrink-grow ${Ji}; } @keyframes grow-shrink { 50% { outline-width: calc(${ea} * ${aa}); } } @keyframes shrink-grow { 50% { outline-offset: calc( ${sa} - calc(${ea} * ${aa}) ); outline-width: calc(${ea} * ${aa}); } } @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")],la.prototype,"_outline",void 0),s([m({type:Boolean,reflect:!0})],la.prototype,"inward",void 0),s([m({type:Boolean,reflect:!0})],la.prototype,"disabled",void 0),la=s([bt("m3e-focus-ring")],la);let ca=class extends(ts(Fs(ki(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}};ca.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, ${Ls.color.primary}); color: var(--m3e-checkbox-selected-icon-color, ${Ls.color.onPrimary}); } :host(:not([disabled]):not([checked]):not([indeterminate])) { border-color: var(--m3e-checkbox-unselected-outline-color, ${Ls.color.onSurfaceVariant}); } :host([disabled]:not([checked]):not([indeterminate])) { border-color: color-mix( in srgb, var(--m3e-checkbox-unselected-disabled-outline-color, ${Ls.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, ${Ls.color.onSurface}) var(--m3e-checkbox-selected-disabled-container-opacity, 38%), transparent ); color: color-mix( in srgb, var(--m3e-checkbox-selected-disabled-icon-color, ${Ls.color.surface}) var(--m3e-checkbox-selected-disabled-icon-opacity, 100%), transparent ); }`,ca=s([bt("m3e-pseudo-checkbox")],ca);let da=class extends(Jt(Fs(ki(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>`}};da.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, ${Ls.color.onSurfaceVariant}); } :host([checked]) { color: var(--m3e-radio-selected-icon-color, ${Ls.color.primary}); } :host([disabled]) { color: color-mix(in srgb, var(--m3e-radio-disabled-icon-color, ${Ls.color.onSurface}) 38%, transparent); }`,da=s([bt("m3e-pseudo-radio")],da);const ha=r(`var(--m3e-ripple-color, ${Ls.color.onSurface})`),pa=r(`var(--m3e-ripple-opacity, ${Ls.state.pressedStateLayerOpacity})`),ma=r(`var(--m3e-ripple-enter-duration, ${Ls.motion.duration.long4})`),ua=r(`var(--m3e-ripple-exit-duration, ${Ls.motion.duration.short2})`),fa=r("var(--m3e-ripple-scale-factor, 2.5)");var va,ya,ga,ba,xa,wa;let ka=class extends(li(ki(c,"none"))){constructor(){super(...arguments),va.add(this),ya.set(this,null),ga.set(this,new yt(this,{target:null,minPressedDuration:150,isPressedKey:e=>" "===e,callback:(t,{x:s,y:i})=>e(this,va,"m",wa).call(this,t,s,i)})),this.disabled=!1,this.centered=!1,this.unbounded=!1,this.radius=null}get visible(){return null!==e(this,ya,"f")}show(s,i,a=!1){e(this,va,"m",ba).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,ya,document.createElement("div"),"f"),e(this,ya,"f").classList.add("ripple"),a&&e(this,ya,"f").classList.add("persistent"),e(this,ya,"f").style.left=o-r+"px",e(this,ya,"f").style.top=l-r+"px",e(this,ya,"f").style.width=2*r+"px",e(this,ya,"f").style.height=2*r+"px",e(this,ya,"f").addEventListener("animationend",()=>e(this,va,"m",xa).call(this,a),{once:!0}),e(this,ya,"f").addEventListener("transitionend",()=>e(this,va,"m",ba).call(this),{once:!0}),this.shadowRoot?.appendChild(e(this,ya,"f"))}hide(){e(this,ya,"f")?.classList.add("exit")}attach(t){super.attach(t),e(this,ga,"f").observe(t)}detach(){this.control&&e(this,ga,"f").unobserve(this.control),super.detach()}connectedCallback(){this.ariaHidden="true",super.connectedCallback()}disconnectedCallback(){super.disconnectedCallback(),e(this,va,"m",ba).call(this)}updated(e){super.updated(e),e.has("disabled")&&this.disabled&&this.hide()}};var $a;ya=new WeakMap,ga=new WeakMap,va=new WeakSet,ba=function(){e(this,ya,"f")?.remove(),t(this,ya,null,"f")},xa=function(t){t?e(this,ya,"f")?.classList.add("pressed"):this.hide()},wa=function(e,t,s){this.disabled||(e?this.show(t,s,!0):this.hide())},ka.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: ${Ls.shape.corner.full}; background-color: color-mix(in srgb, ${ha} ${pa}, transparent); will-change: background-color, opacity; animation: ripple ${ma} linear; } .ripple.persistent.pressed { transform: scale(${fa}); } .ripple.exit { transition: opacity ${ua} cubic-bezier(0, 0, 0.2, 0.1); opacity: 0; } @keyframes ripple { to { transform: scale(${fa}); } } @media (prefers-reduced-motion) { .ripple { transform: scale(${fa}); animation-duration: 90ms; } .ripple.exit { transition-duration: 10ms; } } @media (forced-colors: active) { .ripple { display: none; } }`,s([m({type:Boolean,reflect:!0})],ka.prototype,"disabled",void 0),s([m({type:Boolean,reflect:!0})],ka.prototype,"centered",void 0),s([m({type:Boolean,reflect:!0})],ka.prototype,"unbounded",void 0),s([m({type:Number})],ka.prototype,"radius",void 0),ka=s([bt("m3e-ripple")],ka);let Ea=class extends(Xt(c)){constructor(){super(...arguments),$a.set(this,()=>this._updateScroll()),this.dividers="above-below",this.thin=!1}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("scroll",e(this,$a,"f"))}update(t){super.update(t),t.has("dividers")&&(this.removeEventListener("scroll",e(this,$a,"f")),"none"!==this.dividers&&this.addEventListener("scroll",e(this,$a,"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;Kt(this,"-above",e),Kt(this,"-below",t)}};var Sa,Ca,za,Ma;$a=new WeakMap,Ea.styles=l`:host { display: block; overflow-y: auto; position: relative; box-sizing: border-box; scrollbar-color: ${Ls.scrollbar.color}; border-top: var(--m3e-divider-thickness, 1px) solid transparent; border-bottom: var(--m3e-divider-thickness, 1px) solid transparent; outline-color: ${Qi}; outline-width: ${ea}; outline-offset: ${ta}; } :host([thin]) { scrollbar-width: ${Ls.scrollbar.thinWidth}; } :host(:not([thin])) { scrollbar-width: ${Ls.scrollbar.width}; } :host(:not(:focus-visible):state(-above)) { border-top-color: var(--m3e-divider-color, ${Ls.color.outlineVariant}); } :host(:not(:focus-visible):state(-below)) { border-bottom-color: var(--m3e-divider-color, ${Ls.color.outlineVariant}); } :host(:focus-visible) { outline-style: solid; animation: grow-shrink ${Ji}; } @keyframes grow-shrink { 50% { outline-width: calc(${ea} * ${aa}); } } @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):state(-above)) { border-top-color: GrayText; } :host(:not(:focus-visible):state(-below)) { border-bottom-color: GrayText; } } @media (prefers-reduced-motion) { :host(:focus-visible) { animation: none; } }`,s([m()],Ea.prototype,"dividers",void 0),s([m({type:Boolean,reflect:!0})],Ea.prototype,"thin",void 0),s([xt(40)],Ea.prototype,"_updateScroll",null),Ea=s([bt("m3e-scroll-container")],Ea);let La=class extends(Xt(c)){constructor(){super(...arguments),Sa.add(this),Ca.set(this,new Array),this.selectedIndex=null}connectedCallback(){super.connectedCallback(),Yt(this,"-no-animate")}update(t){super.update(t),t.has("selectedIndex")&&(null===this.selectedIndex&&Yt(this,"-no-animate"),e(this,Sa,"m",Ma).call(this),null!==this.selectedIndex&&Zt(this,"-no-animate")&&requestAnimationFrame(()=>{null!==this.selectedIndex&&Gt(this,"-no-animate")}))}render(){return o`<slot @slotchange="${e(this,Sa,"m",za)}"></slot>`}};Ca=new WeakMap,Sa=new WeakSet,za=function(s){const i=[...s.target.assignedElements({flatten:!0})];for(const t of e(this,Ca,"f").filter(e=>!i.includes(e)))t.classList.remove("-before"),t.classList.remove("-after"),t.removeAttribute("inert");t(this,Ca,i,"f"),e(this,Sa,"m",Ma).call(this)},Ma=function(){const t=this.selectedIndex??e(this,Ca,"f").length;for(let s=0;s<e(this,Ca,"f").length;s++){const i=e(this,Ca,"f")[s];i.classList.toggle("-before",s<t),i.classList.toggle("-after",s>t),i.toggleAttribute("inert",s!==t)}},La.styles=l`:host { display: flex; position: relative; overflow: hidden; } ::slotted(*) { width: 100%; top: 0; transition: ${r(`inset-inline-start var(--m3e-slide-animation-duration, ${Ls.motion.duration.long2}) ${Ls.motion.easing.standard},\n visibility var(--m3e-slide-animation-duration, ${Ls.motion.duration.long2}) ${Ls.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(:state(-no-animate)) ::slotted(*) { transition: none; } @media (prefers-reduced-motion) { ::slotted(*) { transition: none; } }`,s([m({attribute:"selected-index",type:Number,reflect:!0})],La.prototype,"selectedIndex",void 0),La=s([bt("m3e-slide")],La);const Wa=r(`var(--m3e-state-layer-hover-color, ${Ls.color.onSurface})`),Fa=r(`var(--m3e-state-layer-hover-opacity, ${Ls.state.hoverStateLayerOpacity})`),Aa=r(`var(--m3e-state-layer-focus-color, ${Ls.color.onSurface})`),Da=r(`var(--m3e-state-layer-focus-opacity, ${Ls.state.focusStateLayerOpacity})`),_a=r(`var(--m3e-state-layer-duration, ${Ls.motion.duration.medium1})`),Ta=r(`var(--m3e-state-layer-easing, ${Ls.motion.easing.standard})`);var Ha,Pa,Ia,Oa,Ba;let Na=class extends(li(ki(c,"none"))){constructor(){super(...arguments),Ha.add(this),Pa.set(this,new pt(this,{target:null,callback:t=>e(this,Ha,"m",Oa).call(this,t)})),Ia.set(this,new ht(this,{target:null,callback:(t,s)=>e(this,Ha,"m",Ba).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,Pa,"f").observe(t),e(this,Ia,"f").observe(t)}detach(){this.control&&(e(this,Pa,"f").unobserve(this.control),e(this,Ia,"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 Va,Ra,Ua,qa,ja,Xa,Za,Ya;Pa=new WeakMap,Ia=new WeakMap,Ha=new WeakSet,Oa=function(e){this.disabled||this.disableHover||(e?this.show("hover"):this.hide("hover"))},Ba=function(e){this.disabled||(e?this.show("focused"):this.hide("focused"))},Na.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 ${_a} ${Ta}`)}; } .layer.focused { background-color: color-mix(in srgb, ${Aa} ${Da}, transparent); } .layer.hover { background-color: color-mix(in srgb, ${Wa} ${Fa}, transparent); } @media (prefers-reduced-motion) { .layer { transition: none; } } @media (forced-colors: active) { .layer { display: none; } }`,s([u(".layer")],Na.prototype,"_layer",void 0),s([m({type:Boolean,reflect:!0})],Na.prototype,"disabled",void 0),s([m({attribute:"disable-hover",type:Boolean,reflect:!0})],Na.prototype,"disableHover",void 0),Na=s([bt("m3e-state-layer")],Na);let Ga=Ya=class extends c{constructor(){super(),Va.add(this),Ra.set(this,"m3e-text-highlight-"+Ya.__nextId++),Ua.set(this,new Array),qa.set(this,null),this.disabled=!1,this.term="",this.caseSensitive=!1,this.mode="contains",this.isSupported&&(t(this,qa,new CSSStyleSheet,"f"),e(this,qa,"f").replaceSync(l`::highlight(${r(e(this,Ra,"f"))}) { background-color: var(--m3e-text-highlight-container-color, ${Ls.color.secondaryContainer}); color: var(--m3e-text-highlight-color, ${Ls.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,Ua,"f")}firstUpdated(t){super.firstUpdated(t),this.shadowRoot&&e(this,qa,"f")&&!this.shadowRoot.adoptedStyleSheets.includes(e(this,qa,"f"))&&this.shadowRoot.adoptedStyleSheets.push(e(this,qa,"f"))}updated(t){super.updated(t),(t.has("term")||t.has("caseSensitive")||t.has("disabled"))&&e(this,Va,"m",Za).call(this)}render(){return o`<slot @slotchange="${e(this,Va,"m",Za)}"></slot>`}};Ra=new WeakMap,Ua=new WeakMap,qa=new WeakMap,Va=new WeakSet,ja=function(e){return!/^\s*$/.test(e.data)},Xa=function t(s,i){s instanceof HTMLSlotElement?s.assignedNodes({flatten:!0}).forEach(s=>{switch(s.nodeType){case Node.TEXT_NODE:e(this,Va,"m",ja).call(this,s)&&i.push(s);break;case Node.ELEMENT_NODE:e(this,Va,"m",t).call(this,s,i)}}):s.childNodes.forEach(s=>{switch(s.nodeType){case Node.TEXT_NODE:e(this,Va,"m",ja).call(this,s)&&i.push(s);break;case Node.ELEMENT_NODE:e(this,Va,"m",t).call(this,s,i)}})},Za=function(){if(!this.isSupported||!this.isConnected)return;if(CSS.highlights.delete(e(this,Ra,"f")),e(this,Ua,"f").length=0,this.disabled)return;if(!this.term)return void this.dispatchEvent(new CustomEvent("highlight",{detail:[...e(this,Ua,"f")],bubbles:!1,composed:!1}));const s=new Array;if(e(this,Va,"m",Xa).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,Ua,"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,Ua,"f").push(r)}}break;case"contains":t(this,Ua,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,Ua,"f").length>0&&CSS.highlights.set(e(this,Ra,"f"),new Highlight(...e(this,Ua,"f")))}this.dispatchEvent(new CustomEvent("highlight",{detail:[...e(this,Ua,"f")],bubbles:!1,composed:!1}))},Ga.styles=l`:host { display: contents; }`,Ga.__nextId=0,s([m({type:Boolean,reflect:!0})],Ga.prototype,"disabled",void 0),s([m()],Ga.prototype,"term",void 0),s([m({attribute:"case-sensitive",type:Boolean})],Ga.prototype,"caseSensitive",void 0),s([m()],Ga.prototype,"mode",void 0),Ga=Ya=s([bt("m3e-text-highlight")],Ga);let Ka=class extends c{render(){return o`<span class="base"><slot></slot></span>`}};Ka.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; }`,Ka=s([bt("m3e-text-overflow")],Ka);export{_i as ActionElementBase,Oe as AnimationLoopController,Xt as AttachInternals,Jt as Checked,ts as CheckedIndeterminate,Qs as ConstraintValidation,Ls as DesignToken,cs as Dirty,Fs as Disabled,Hs as DisabledInteractive,Js as EventAttribute,ht as FocusController,ti as Focusable,Xs as FormAssociated,ai as FormSubmitter,pt as HoverController,li as HtmlFor,mt as InertController,ut as IntersectionController,ci as KeyboardClick,Bs as Labelled,mi as LinkButton,ft as LongPressController,Ti as M3eCollapsibleElement,Ki as M3eElevationElement,la as M3eFocusRingElement,ca as M3ePseudoCheckboxElement,da as M3ePseudoRadioElement,ka as M3eRippleElement,Ea as M3eScrollContainerElement,La as M3eSlideElement,Na as M3eStateLayerElement,Ga as M3eTextHighlightElement,Ka as M3eTextOverflowElement,vt as MutationController,yt as PressedController,fi as ReadOnly,yi as ReconnectedCallback,bi as Required,wi as RequiredConstraintValidation,gt as ResizeController,ki as Role,Tt as ScrollController,Ht as ScrollLockController,is as Selected,$i as SuppressInitialAnimation,ps as Touched,ct as VelocityTracker,Si as Vertical,Yt as addCustomState,rs as checkOrSelect,Ne as computeCssSize,Ve as computeLineCount,bt as customElement,Pt as dateConverter,xt as debounce,Vs as defaultValue,Gt as deleteCustomState,Re as focusWhenReady,Ue as forcedColorsActive,Ns as formValue,Je as generateClipPaths,et as getTextContent,tt as guid,st as hasAssignedNodes,Zt as hasCustomState,Vt as hasKeys,it as interceptProperty,Rt as internals,Ut as isAttachInternalsMixin,es as isCheckedIndeterminateMixin,Qt as isCheckedMixin,ns as isCheckedOrSelected,as as isCheckedOrSelectedMixin,Ys as isConstraintValidationMixin,os as isDirtyMixin,As as isDisabledInteractiveMixin,Ws as isDisabledMixin,Rs as isFormAssociatedMixin,si as isFormSubmitterMixin,ni as isHtmlForMixin,Is as isLabelledMixin,hi as isLinkButtonMixin,ui as isReadOnlyMixin,xi as isRequiredConstraintValidationMixin,gi as isRequiredMixin,ss as isSelectedMixin,ds as isTouchedMixin,Ei as isVerticalMixin,at as prefersReducedMotion,nt as registerStyleSheet,di as renderPseudoLink,rt as resolveElementById,ot as resolveFragmentUrl,Nt as safeStyleMap,lt as scrollIntoViewIfNeeded,Kt as setCustomState,It as spaceSeparatedStringConverter,Ps as updateLabels,Zs as validate,dt as waitForUpgrade};
7
7
  //# sourceMappingURL=core.min.js.map