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