@m3e/core 1.1.6 → 1.1.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.min.js CHANGED
@@ -3,34 +3,34 @@
3
3
  * Copyright (c) 2025 matraic
4
4
  * See LICENSE file in the project root for full license text.
5
5
  */
6
- import{isServer as e,nothing as t,noChange as s,unsafeCSS as i,html as r,css as a,LitElement as n}from"lit";function o(e,t,s,i){var r,a=arguments.length,n=a<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,s):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,s,i);else for(var o=e.length-1;o>=0;o--)(r=e[o])&&(n=(a<3?r(n):a>3?r(t,s,n):r(t,s))||n);return a>3&&n&&Object.defineProperty(t,s,n),n}function l(e,t,s,i){if("a"===s&&!i)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!i:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===s?i:"a"===s?i.call(e):i?i.value:t.get(e)}function h(e,t,s,i,r){if("m"===i)throw new TypeError("Private method is not writable");if("a"===i&&!r)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===i?r.call(e,s):r?r.value=s:t.set(e,s),s}var c,d,p,u,m,f,v,y,g,b,x,w,$,k,E,_,S,A,C,L,M,z,W,P,T,H,F,O,D,U,N,I,R,B,q,V,j,X,Z,K,Y,Q,G,J,ee,te,se,ie,re,ae,ne,oe,le,he,ce,de,pe,ue,me,fe,ve,ye,ge,be,xe,we,$e,ke,Ee,_e,Se,Ae,Ce,Le,Me,ze,We,Pe,Te;"function"==typeof SuppressedError&&SuppressedError;class He{constructor(e,t){c.set(this,null),d.set(this,0),p.set(this,!1),u.set(this,void 0),m.set(this,()=>{if(!l(this,p,"f"))return;const e=performance.now();l(this,u,"f").call(this,(e-l(this,d,"f"))/1e3,e/1e3),h(this,d,e,"f"),h(this,c,requestAnimationFrame(l(this,m,"f")),"f")}),h(this,u,t,"f"),e.addController(this)}hostDisconnected(){this.stop()}start(){l(this,p,"f")||(h(this,p,!0,"f"),h(this,d,performance.now(),"f"),l(this,m,"f").call(this))}stop(){l(this,p,"f")&&(h(this,p,!1,"f"),null!==l(this,c,"f")&&(cancelAnimationFrame(l(this,c,"f")),h(this,c,null,"f")))}}c=new WeakMap,d=new WeakMap,p=new WeakMap,u=new WeakMap,m=new WeakMap;class Fe{constructor(e,t){f.set(this,void 0),v.set(this,void 0),y.set(this,new Set),h(this,f,e,"f"),h(this,v,t.target,"f"),l(this,f,"f").addController(this)}get targets(){return l(this,y,"f").values()}hostConnected(){null!==l(this,v,"f")&&this.observe(l(this,v,"f")??l(this,f,"f"))}hostDisconnected(){l(this,y,"f").forEach(e=>this.unobserve(e)),l(this,y,"f").clear()}observe(e){l(this,y,"f").has(e)||(l(this,y,"f").add(e),this._observe(e))}isObserving(e){return l(this,y,"f").has(e)}unobserve(e){l(this,y,"f").delete(e)&&this._unobserve(e)}}async function Oe(e,t=200){e.focus();const s=performance.now();for(;e.shadowRoot?.activeElement!==e;){if(!e.isConnected||performance.now()-s>t)return!1;await new Promise(requestAnimationFrame),e.focus()}return!0}function De(){return!e&&matchMedia("(forced-colors: active)").matches}function Ue(e,t,s){return e+(t-e)*s}function Ne(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 Ie(e,t,s,i,r){return{x:Math.pow(1-r,3)*e.x+3*Math.pow(1-r,2)*r*t.x+3*(1-r)*Math.pow(r,2)*s.x+Math.pow(r,3)*i.x,y:Math.pow(1-r,3)*e.y+3*Math.pow(1-r,2)*r*t.y+3*(1-r)*Math.pow(r,2)*s.y+Math.pow(r,3)*i.y}}function Re(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},r={x:0,y:0};const a=[];for(const e of s)if("M"===e.type)i={x:e.nums[0],y:e.nums[1]},r=i;else if("L"===e.type){const t={x:e.nums[0],y:e.nums[1]},s=t.x-i.x,r=t.y-i.y;a.push({type:"L",pts:[i,t],length:Math.hypot(s,r)}),i=t}else if("H"===e.type){const t={x:e.nums[0],y:i.y},s=t.x-i.x;a.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;a.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 r=0,n=i;const o=20;for(let e=1;e<=o;e++){const a=Ne(i,t,s,e/o);r+=Math.hypot(a.x-n.x,a.y-n.y),n=a}a.push({type:"Q",pts:[i,t,s],length:r}),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]},r={x:e.nums[4],y:e.nums[5]};let n=0,o=i;const l=20;for(let e=1;e<=l;e++){const a=Ie(i,t,s,r,e/l);n+=Math.hypot(a.x-o.x,a.y-o.y),o=a}a.push({type:"C",pts:[i,t,s,r],length:n}),i=r}else if("Z"===e.type){const e=r.x-i.x,t=r.y-i.y;a.push({type:"L",pts:[i,r],length:Math.hypot(e,t)}),i=r}const n=a.reduce((e,t)=>e+t.length,0),o=n/(t-1),l=[];let h=0,c=0;for(let e=0;e<t;e++){const t=e*o;for(;c<a.length&&h+a[c].length<t;)h+=a[c].length,c++;const s=a[c];if(!s)break;const i=(t-h)/s.length;if("L"===s.type){const[e,t]=s.pts;l.push({x:Ue(e.x,t.x,i),y:Ue(e.y,t.y,i)})}else if("Q"===s.type){const[e,t,r]=s.pts;l.push(Ne(e,t,r,i))}else if("C"===s.type){const[e,t,r,a]=s.pts;l.push(Ie(e,t,r,a,i))}}return l}function Be(e,t,s){return Math.max(t,Math.min(s,e))}function qe(e,t){const s=e.length,i=new Array(s);for(let r=0;r<s;r++)i[r]=e[(r+t)%s];return i}function Ve(e,t){const s=e.length;let i=0,r=1/0;for(let a=0;a<s;a++){let n=0;for(let i=0;i<s;i++){const o=t[(i+a)%s],l=e[i],h=o.x-l.x,c=o.y-l.y;if(n+=h*h+c*c,n>=r)break}n<r&&(r=n,i=a)}return i}function je(e){let t=0;const s=e.length;for(let i=0;i<s;i++){const r=e[i],a=e[(i+1)%s];t+=r.x*a.y-a.x*r.y}return t/2}function Xe(e,t){return function(e){const t=e.map(e=>{const t=function(e){let t=1/0,s=1/0,i=-1/0,r=-1/0;for(const a of e)a.x<t&&(t=a.x),a.x>i&&(i=a.x),a.y<s&&(s=a.y),a.y>r&&(r=a.y);return{minX:t,minY:s,maxX:i,maxY:r,width:i-t,height:r-s}}(e),s=e.map(e=>({x:e.x-t.minX,y:e.y-t.minY})),i=Math.max(t.width,t.height)||1,r=s.map(e=>({x:e.x/i,y:e.y/i})),a=t.width/i,n=t.height/i,o=(1-a)/2,l=(1-n)/2;return r.map(e=>({x:e.x+o,y:e.y+l}))}),s=t[0],i=Math.sign(je(s));for(let e=1;e<t.length;e++){let r=t[e];const a=Math.sign(je(r));0!==a&&a!==i&&(r=r.slice().reverse());const n=Ve(s,r);t[e]=qe(r,n)}return t}(e.map(e=>Re(e,t))).map(e=>function(e){const t=e.map(e=>{const t=Be(100*e.x,0,100),s=Be(100*e.y,0,100);return`${t.toFixed(2)}% ${s.toFixed(2)}%`});return`${t.join(", ")}`}(e))}function Ze(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+=Ze(i,t);else for(const i of e.childNodes)s+=Ze(i,t)}return t&&(s=s.trim()),s}function Ke(){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 Ye(e){return e.assignedNodes({flatten:!0}).length>0}function Qe(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 r=i.get?.bind(e),a=i.set?.bind(e);return Object.defineProperty(e,t,{configurable:!0,enumerable:i.enumerable,get:()=>s.get?s.get(()=>r?.()):r?.(),set(e){s.set?s.set(e,e=>a?.(e)):a?.(e)}}),()=>Object.defineProperty(e,t,i)}function Ge(){return e||matchMedia("(prefers-reduced-motion)").matches}function Je(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 et(e){const t=document?.location??null;return`url(${t?(t.pathname+t.search).split("#")[0]:""}#${e})`}function tt(e,t,s){const i=t.getBoundingClientRect(),r=e.getBoundingClientRect();(r.top<i.top||r.bottom>i.bottom)&&e.scrollIntoView(s)}f=new WeakMap,v=new WeakMap,y=new WeakMap;class st extends Fe{constructor(e,t){super(e,t),g.add(this),b.set(this,!1),x.set(this,void 0),w.set(this,e=>l(this,g,"m",S).call(this,e)),$.set(this,e=>l(this,g,"m",A).call(this,e)),k.set(this,e=>l(this,g,"m",C).call(this,e)),E.set(this,()=>h(this,b,!0,"f")),_.set(this,()=>h(this,b,!1,"f")),h(this,x,t.callback,"f")}_observe(e){e.addEventListener("keydown",l(this,w,"f")),e.addEventListener("focusin",l(this,$,"f")),e.addEventListener("focusout",l(this,k,"f")),e.addEventListener("touchstart",l(this,E,"f")),e.addEventListener("touchend",l(this,_,"f")),e.addEventListener("touchcancel",l(this,_,"f"))}_unobserve(e){e.removeEventListener("keydown",l(this,w,"f")),e.removeEventListener("focusin",l(this,$,"f")),e.removeEventListener("focusout",l(this,k,"f")),e.removeEventListener("touchstart",l(this,E,"f")),e.removeEventListener("touchend",l(this,_,"f")),e.removeEventListener("touchcancel",l(this,_,"f"))}}b=new WeakMap,x=new WeakMap,w=new WeakMap,$=new WeakMap,k=new WeakMap,E=new WeakMap,_=new WeakMap,g=new WeakSet,S=function(e){e.currentTarget.matches(":focus-within")&&l(this,g,"m",A).call(this,e)},A=function(e){if(l(this,b,"f"))return;const t=e.currentTarget;l(this,x,"f").call(this,!0,t.matches(":focus-visible")||De(),t)},C=function(e){l(this,b,"f")||l(this,x,"f").call(this,!1,!1,e.currentTarget)};class it extends Fe{constructor(e,t){super(e,t),L.add(this),M.set(this,void 0),z.set(this,new Map),W.set(this,new Map),P.set(this,e=>l(this,L,"m",D).call(this,e)),T.set(this,e=>l(this,L,"m",U).call(this,e)),h(this,M,t.callback,"f"),this.startDelay=t.startDelay??0,this.endDelay=t.endDelay??0}clearDelays(){for(const e of this.targets)l(this,L,"m",H).call(this,e)}_observe(e){e.addEventListener("pointerenter",l(this,P,"f")),e.addEventListener("pointerleave",l(this,T,"f"))}_unobserve(e){e.removeEventListener("pointerenter",l(this,P,"f")),e.removeEventListener("pointerleave",l(this,T,"f"))}}M=new WeakMap,z=new WeakMap,W=new WeakMap,P=new WeakMap,T=new WeakMap,L=new WeakSet,H=function(e){l(this,L,"m",F).call(this,e),l(this,L,"m",O).call(this,e)},F=function(e){return!!l(this,z,"f").has(e)&&(clearTimeout(l(this,z,"f").get(e)),l(this,z,"f").delete(e))},O=function(e){return!!l(this,W,"f").has(e)&&(clearTimeout(l(this,W,"f").get(e)),l(this,W,"f").delete(e))},D=function(e){const t=e.target;l(this,L,"m",O).call(this,t),this.startDelay>0?(l(this,L,"m",F).call(this,t),l(this,z,"f").set(t,setTimeout(()=>{l(this,z,"f").delete(t),l(this,M,"f").call(this,!0,t)},this.startDelay))):l(this,M,"f").call(this,!0,t)},U=function(e){const t=e.target;l(this,L,"m",F).call(this,t)||(this.endDelay>0?(l(this,L,"m",O).call(this,t),l(this,W,"f").set(t,setTimeout(()=>{l(this,W,"f").delete(t),l(this,M,"f").call(this,!1,t)},this.endDelay))):l(this,M,"f").call(this,!1,t))};class rt extends Fe{constructor(t,s){super(t,s),N.set(this,void 0),I.set(this,void 0),R.set(this,!1),B.set(this,void 0),q.set(this,!0),h(this,N,t,"f"),h(this,I,s.callback,"f"),h(this,R,s.skipInitial??!1,"f"),e||(window.IntersectionObserver?h(this,B,new IntersectionObserver((e,t)=>{l(this,I,"f").call(this,e,t),l(this,N,"f").requestUpdate()},s.init),"f"):console.warn("IntersectionController error: the browser does not support IntersectionObserver."))}async hostUpdated(){l(this,B,"f")&&!l(this,R,"f")&&l(this,q,"f")&&l(this,I,"f").call(this,[],l(this,B,"f")),h(this,q,!1,"f")}_observe(e){l(this,B,"f")?.observe(e),h(this,q,!0,"f"),l(this,N,"f").requestUpdate()}_unobserve(e){l(this,B,"f")?.unobserve(e)}}N=new WeakMap,I=new WeakMap,R=new WeakMap,B=new WeakMap,q=new WeakMap;class at extends Fe{constructor(e,t){super(e,t),V.add(this),j.set(this,void 0),X.set(this,void 0),Z.set(this,new Set),K.set(this,new Map),Y.set(this,e=>l(this,V,"m",G).call(this,e)),Q.set(this,e=>l(this,V,"m",J).call(this,e)),h(this,j,t.callback,"f"),h(this,X,t.threshold??500,"f")}_observe(e){e.addEventListener("touchstart",l(this,Y,"f"),{passive:!0}),e.addEventListener("touchend",l(this,Q,"f")),e.addEventListener("touchcancel",l(this,Q,"f"))}_unobserve(e){e.removeEventListener("touchstart",l(this,Y,"f")),e.removeEventListener("touchend",l(this,Q,"f")),e.removeEventListener("touchcancel",l(this,Q,"f"))}}j=new WeakMap,X=new WeakMap,Z=new WeakMap,K=new WeakMap,Y=new WeakMap,Q=new WeakMap,V=new WeakSet,G=function(e){if(e.currentTarget instanceof HTMLElement&&this.isObserving(e.currentTarget)){const t=e.currentTarget;l(this,K,"f").set(t,setTimeout(()=>{l(this,Z,"f").add(t),l(this,K,"f").delete(t),l(this,j,"f").call(this,!0,t)},l(this,X,"f")))}},J=function(e){if(e.currentTarget instanceof HTMLElement&&this.isObserving(e.currentTarget)){const t=e.currentTarget;l(this,Z,"f").has(t)&&(l(this,j,"f").call(this,!1,t),l(this,Z,"f").delete(t)),l(this,K,"f").has(t)&&(clearTimeout(l(this,K,"f").get(t)),l(this,K,"f").delete(t))}};class nt extends Fe{constructor(t,s){super(t,s),ee.set(this,void 0),te.set(this,void 0),se.set(this,!1),ie.set(this,void 0),re.set(this,void 0),ae.set(this,!0),h(this,ee,t,"f"),h(this,te,s.callback,"f"),h(this,se,s.skipInitial??!1,"f"),h(this,ie,s.config,"f"),e||(window.MutationObserver?h(this,re,new MutationObserver((e,t)=>{l(this,te,"f").call(this,e,t),l(this,ee,"f").requestUpdate()}),"f"):console.warn("MutationController error: the browser does not support MutationObserver."))}async hostUpdated(){if(l(this,re,"f")&&!l(this,se,"f")&&l(this,ae,"f")){const e=l(this,re,"f").takeRecords();e.length>0&&l(this,te,"f").call(this,e,l(this,re,"f"))}h(this,ae,!1,"f")}hostDisconnected(){super.hostDisconnected(),l(this,re,"f")?.disconnect()}_observe(e){l(this,re,"f")?.observe(e,l(this,ie,"f")),h(this,ae,!0,"f"),l(this,ee,"f").requestUpdate()}_unobserve(){l(this,re,"f")?.disconnect();for(const e of this.targets)l(this,re,"f")?.observe(e,l(this,ie,"f"))}}ee=new WeakMap,te=new WeakMap,se=new WeakMap,ie=new WeakMap,re=new WeakMap,ae=new WeakMap;class ot extends Fe{constructor(e,t){super(e,t),ne.add(this),oe.set(this,void 0),le.set(this,void 0),he.set(this,void 0),ce.set(this,new Map),de.set(this,void 0),pe.set(this,e=>l(this,ne,"m",ye).call(this,e)),ue.set(this,e=>l(this,ne,"m",ge).call(this,e)),me.set(this,e=>l(this,ne,"m",be).call(this,e)),fe.set(this,e=>l(this,ne,"m",xe).call(this,e)),ve.set(this,e=>l(this,ne,"m",we).call(this,e)),h(this,oe,t.capture,"f"),h(this,le,t.callback,"f"),h(this,he,t.isPressedKey,"f"),h(this,de,t.minPressedDuration??0,"f")}hostConnected(){document.addEventListener("pointerup",l(this,ue,"f"),{capture:l(this,oe,"f")}),document.addEventListener("touchend",l(this,me,"f"),{capture:l(this,oe,"f")}),document.addEventListener("touchcancel",l(this,me,"f"),{capture:l(this,oe,"f")}),super.hostConnected()}hostDisconnected(){document.removeEventListener("pointerup",l(this,ue,"f"),{capture:l(this,oe,"f")}),document.addEventListener("touchend",l(this,me,"f"),{capture:l(this,oe,"f")}),document.addEventListener("touchcancel",l(this,me,"f"),{capture:l(this,oe,"f")}),super.hostDisconnected(),l(this,ce,"f").clear()}_observe(e){e.addEventListener("pointerdown",l(this,pe,"f"),{capture:l(this,oe,"f")}),l(this,he,"f")&&(e.addEventListener("keydown",l(this,fe,"f"),{capture:l(this,oe,"f")}),e.addEventListener("keyup",l(this,ve,"f"),{capture:l(this,oe,"f")}))}_unobserve(e){e.removeEventListener("pointerdown",l(this,pe,"f"),{capture:l(this,oe,"f")}),l(this,he,"f")&&(e.removeEventListener("keydown",l(this,fe,"f"),{capture:l(this,oe,"f")}),e.removeEventListener("keyup",l(this,ve,"f"),{capture:l(this,oe,"f")}))}}oe=new WeakMap,le=new WeakMap,he=new WeakMap,ce=new WeakMap,de=new WeakMap,pe=new WeakMap,ue=new WeakMap,me=new WeakMap,fe=new WeakMap,ve=new WeakMap,ne=new WeakSet,ye=function(e){if(!("mouse"===e.pointerType&&e.button>1))for(const t of e.composedPath())if(t instanceof HTMLElement&&this.isObserving(t)){l(this,ce,"f").has(t)||(l(this,ce,"f").set(t,performance.now()),l(this,le,"f").call(this,!0,{x:e.x,y:e.y},t));break}},ge=function(e){if("mouse"===e.pointerType&&e.button>1)return;const t=e.x,s=e.y;for(const e of l(this,ce,"f").keys()){const i=l(this,de,"f")-(performance.now()-l(this,ce,"f").get(e));i>0?setTimeout(()=>{l(this,ce,"f").delete(e),l(this,le,"f").call(this,!1,{x:t,y:s},e)},i):(l(this,ce,"f").delete(e),l(this,le,"f").call(this,!1,{x:t,y:s},e))}},be=function(e){const t=e.touches[0]?.clientX??0,s=e.touches[0]?.clientY??0;for(const e of l(this,ce,"f").keys()){const i=l(this,de,"f")-(performance.now()-l(this,ce,"f").get(e));i>0?setTimeout(()=>{l(this,ce,"f").delete(e),l(this,le,"f").call(this,!1,{x:t,y:s},e)},i):(l(this,ce,"f").delete(e),l(this,le,"f").call(this,!1,{x:t,y:s},e))}},xe=function(e){if(e.target!==e.currentTarget)return;const t=e.currentTarget;if(l(this,he,"f")?.call(this,e.key)&&(" "===e.key&&e.preventDefault(),!l(this,ce,"f").has(t))){l(this,ce,"f").set(t,performance.now());const e=t.getBoundingClientRect();l(this,le,"f").call(this,!0,{x:e.x+e.width/2,y:e.y+e.height/2},t)}},we=function(e){const t=e.target;if(l(this,ce,"f").has(t)&&l(this,he,"f")?.call(this,e.key)){const e=l(this,de,"f")-(performance.now()-l(this,ce,"f").get(t)),s=t.getBoundingClientRect();e>0?setTimeout(()=>{l(this,ce,"f").delete(t),l(this,le,"f").call(this,!1,{x:s.x+s.width/2,y:s.y+s.height/2},t)},e):(l(this,ce,"f").delete(t),l(this,le,"f").call(this,!1,{x:s.x+s.width/2,y:s.y+s.height/2},t))}};class lt extends Fe{constructor(t,s){super(t,s),$e.set(this,void 0),ke.set(this,void 0),Ee.set(this,void 0),_e.set(this,void 0),Se.set(this,void 0),Ae.set(this,!0),h(this,$e,t,"f"),h(this,ke,s.callback,"f"),h(this,Ee,s.skipInitial??!1,"f"),h(this,_e,s.config,"f"),e||(window.ResizeObserver?h(this,Se,new ResizeObserver((e,t)=>{l(this,ke,"f").call(this,e,t),l(this,$e,"f").requestUpdate()}),"f"):console.warn("ResizeController error: the browser does not support ResizeObserver."))}async hostUpdated(){l(this,Se,"f")&&!l(this,Ee,"f")&&l(this,Ae,"f")&&l(this,ke,"f").call(this,[],l(this,Se,"f")),h(this,Ae,!1,"f")}_observe(e){l(this,Se,"f")?.observe(e,l(this,_e,"f")),h(this,Ae,!0,"f"),l(this,$e,"f").requestUpdate()}_unobserve(e){l(this,Se,"f")?.unobserve(e)}}function ht(e){const t=Symbol("_id");return(s,i,r)=>{const a=r.value;return r.value=function(...s){clearTimeout(this[t]),this[t]=setTimeout(()=>a.apply(this,s),e)},r}}$e=new WeakMap,ke=new WeakMap,Ee=new WeakMap,_e=new WeakMap,Se=new WeakMap,Ae=new WeakMap;class ct extends Fe{constructor(e,t){super(e,t),Ce.add(this),Le.set(this,void 0),Me.set(this,void 0),ze.set(this,e=>l(this,Ce,"m",Te).call(this,e)),We.set(this,new Map),h(this,Le,!0===t.debounce,"f"),h(this,Me,t.callback,"f")}getScrollContainers(e){return l(this,We,"f").get(e)}_observe(e){const t=l(this,Ce,"m",Pe).call(this,e);if(t.length>0){l(this,We,"f").set(e,t);for(const e of t)(e===document.documentElement?document:e).addEventListener("scroll",l(this,ze,"f"),{passive:!0})}}_unobserve(e){if(l(this,We,"f").has(e)){for(const t of l(this,We,"f").get(e))(t===document.documentElement?document:t).removeEventListener("scroll",l(this,ze,"f"));l(this,We,"f").delete(e)}}_debounceCallback(e){l(this,Me,"f").call(this,e)}}Le=new WeakMap,Me=new WeakMap,ze=new WeakMap,We=new WeakMap,Ce=new WeakSet,Pe=function(e){const t=new Array;let s=e;for(;s;){const e=getComputedStyle(s);/(auto|scroll)/.test(e.overflow+e.overflowY+e.overflowX)&&t.push(s),s=s.parentElement}return t},Te=function(e){const t=e.target===document?document.documentElement:e.target;l(this,Le,"f")?this._debounceCallback(t):l(this,Me,"f").call(this,t)},o([ht(40)],ct.prototype,"_debounceCallback",null);
6
+ import{isServer as e,nothing as t,noChange as s,unsafeCSS as i,html as r,css as a,LitElement as n}from"lit";function o(e,t,s,i){var r,a=arguments.length,n=a<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,s):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,s,i);else for(var o=e.length-1;o>=0;o--)(r=e[o])&&(n=(a<3?r(n):a>3?r(t,s,n):r(t,s))||n);return a>3&&n&&Object.defineProperty(t,s,n),n}function l(e,t,s,i){if("a"===s&&!i)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!i:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===s?i:"a"===s?i.call(e):i?i.value:t.get(e)}function h(e,t,s,i,r){if("m"===i)throw new TypeError("Private method is not writable");if("a"===i&&!r)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===i?r.call(e,s):r?r.value=s:t.set(e,s),s}var c,d,p,u,m,f,v,y,g,b,x,w,$,k,E,_,S,A,C,L,M,z,W,P,T,H,F,O,D,U,N,I,R,B,q,V,j,X,Z,K,Y,Q,G,J,ee,te,se,ie,re,ae,ne,oe,le,he,ce,de,pe,ue,me,fe,ve,ye,ge,be,xe,we,$e,ke,Ee,_e,Se,Ae,Ce,Le,Me,ze,We,Pe,Te;"function"==typeof SuppressedError&&SuppressedError;class He{constructor(e,t){c.set(this,null),d.set(this,0),p.set(this,!1),u.set(this,void 0),m.set(this,()=>{if(!l(this,p,"f"))return;const e=performance.now();l(this,u,"f").call(this,(e-l(this,d,"f"))/1e3,e/1e3),h(this,d,e,"f"),h(this,c,requestAnimationFrame(l(this,m,"f")),"f")}),h(this,u,t,"f"),e.addController(this)}hostDisconnected(){this.stop()}start(){l(this,p,"f")||(h(this,p,!0,"f"),h(this,d,performance.now(),"f"),l(this,m,"f").call(this))}stop(){l(this,p,"f")&&(h(this,p,!1,"f"),null!==l(this,c,"f")&&(cancelAnimationFrame(l(this,c,"f")),h(this,c,null,"f")))}}c=new WeakMap,d=new WeakMap,p=new WeakMap,u=new WeakMap,m=new WeakMap;class Fe{constructor(e,t){f.set(this,void 0),v.set(this,void 0),y.set(this,new Set),h(this,f,e,"f"),h(this,v,t.target,"f"),l(this,f,"f").addController(this)}get targets(){return l(this,y,"f").values()}hostConnected(){null!==l(this,v,"f")&&this.observe(l(this,v,"f")??l(this,f,"f"))}hostDisconnected(){l(this,y,"f").forEach(e=>this.unobserve(e)),l(this,y,"f").clear()}observe(e){l(this,y,"f").has(e)||(l(this,y,"f").add(e),this._observe(e))}isObserving(e){return l(this,y,"f").has(e)}unobserve(e){l(this,y,"f").delete(e)&&this._unobserve(e)}}function Oe(e){const t=parseFloat(getComputedStyle(e).lineHeight);return isNaN(t)||t<=0?0:Math.round(e.scrollHeight/t)}async function De(e,t=200){e.focus();const s=performance.now();for(;e.shadowRoot?.activeElement!==e;){if(!e.isConnected||performance.now()-s>t)return!1;await new Promise(requestAnimationFrame),e.focus()}return!0}function Ue(){return!e&&matchMedia("(forced-colors: active)").matches}function Ne(e,t,s){return e+(t-e)*s}function Ie(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 Re(e,t,s,i,r){return{x:Math.pow(1-r,3)*e.x+3*Math.pow(1-r,2)*r*t.x+3*(1-r)*Math.pow(r,2)*s.x+Math.pow(r,3)*i.x,y:Math.pow(1-r,3)*e.y+3*Math.pow(1-r,2)*r*t.y+3*(1-r)*Math.pow(r,2)*s.y+Math.pow(r,3)*i.y}}function Be(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},r={x:0,y:0};const a=[];for(const e of s)if("M"===e.type)i={x:e.nums[0],y:e.nums[1]},r=i;else if("L"===e.type){const t={x:e.nums[0],y:e.nums[1]},s=t.x-i.x,r=t.y-i.y;a.push({type:"L",pts:[i,t],length:Math.hypot(s,r)}),i=t}else if("H"===e.type){const t={x:e.nums[0],y:i.y},s=t.x-i.x;a.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;a.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 r=0,n=i;const o=20;for(let e=1;e<=o;e++){const a=Ie(i,t,s,e/o);r+=Math.hypot(a.x-n.x,a.y-n.y),n=a}a.push({type:"Q",pts:[i,t,s],length:r}),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]},r={x:e.nums[4],y:e.nums[5]};let n=0,o=i;const l=20;for(let e=1;e<=l;e++){const a=Re(i,t,s,r,e/l);n+=Math.hypot(a.x-o.x,a.y-o.y),o=a}a.push({type:"C",pts:[i,t,s,r],length:n}),i=r}else if("Z"===e.type){const e=r.x-i.x,t=r.y-i.y;a.push({type:"L",pts:[i,r],length:Math.hypot(e,t)}),i=r}const n=a.reduce((e,t)=>e+t.length,0),o=n/(t-1),l=[];let h=0,c=0;for(let e=0;e<t;e++){const t=e*o;for(;c<a.length&&h+a[c].length<t;)h+=a[c].length,c++;const s=a[c];if(!s)break;const i=(t-h)/s.length;if("L"===s.type){const[e,t]=s.pts;l.push({x:Ne(e.x,t.x,i),y:Ne(e.y,t.y,i)})}else if("Q"===s.type){const[e,t,r]=s.pts;l.push(Ie(e,t,r,i))}else if("C"===s.type){const[e,t,r,a]=s.pts;l.push(Re(e,t,r,a,i))}}return l}function qe(e,t,s){return Math.max(t,Math.min(s,e))}function Ve(e,t){const s=e.length,i=new Array(s);for(let r=0;r<s;r++)i[r]=e[(r+t)%s];return i}function je(e,t){const s=e.length;let i=0,r=1/0;for(let a=0;a<s;a++){let n=0;for(let i=0;i<s;i++){const o=t[(i+a)%s],l=e[i],h=o.x-l.x,c=o.y-l.y;if(n+=h*h+c*c,n>=r)break}n<r&&(r=n,i=a)}return i}function Xe(e){let t=0;const s=e.length;for(let i=0;i<s;i++){const r=e[i],a=e[(i+1)%s];t+=r.x*a.y-a.x*r.y}return t/2}function Ze(e,t){return function(e){const t=e.map(e=>{const t=function(e){let t=1/0,s=1/0,i=-1/0,r=-1/0;for(const a of e)a.x<t&&(t=a.x),a.x>i&&(i=a.x),a.y<s&&(s=a.y),a.y>r&&(r=a.y);return{minX:t,minY:s,maxX:i,maxY:r,width:i-t,height:r-s}}(e),s=e.map(e=>({x:e.x-t.minX,y:e.y-t.minY})),i=Math.max(t.width,t.height)||1,r=s.map(e=>({x:e.x/i,y:e.y/i})),a=t.width/i,n=t.height/i,o=(1-a)/2,l=(1-n)/2;return r.map(e=>({x:e.x+o,y:e.y+l}))}),s=t[0],i=Math.sign(Xe(s));for(let e=1;e<t.length;e++){let r=t[e];const a=Math.sign(Xe(r));0!==a&&a!==i&&(r=r.slice().reverse());const n=je(s,r);t[e]=Ve(r,n)}return t}(e.map(e=>Be(e,t))).map(e=>function(e){const t=e.map(e=>{const t=qe(100*e.x,0,100),s=qe(100*e.y,0,100);return`${t.toFixed(2)}% ${s.toFixed(2)}%`});return`${t.join(", ")}`}(e))}function Ke(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+=Ke(i,t);else for(const i of e.childNodes)s+=Ke(i,t)}return t&&(s=s.trim()),s}function Ye(){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 Qe(e){return e.assignedNodes({flatten:!0}).length>0}function Ge(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 r=i.get?.bind(e),a=i.set?.bind(e);return Object.defineProperty(e,t,{configurable:!0,enumerable:i.enumerable,get:()=>s.get?s.get(()=>r?.()):r?.(),set(e){s.set?s.set(e,e=>a?.(e)):a?.(e)}}),()=>Object.defineProperty(e,t,i)}function Je(){return e||matchMedia("(prefers-reduced-motion)").matches}function et(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 tt(e){const t=document?.location??null;return`url(${t?(t.pathname+t.search).split("#")[0]:""}#${e})`}function st(e,t,s){const i=t.getBoundingClientRect(),r=e.getBoundingClientRect();(r.top<i.top||r.bottom>i.bottom)&&e.scrollIntoView(s)}f=new WeakMap,v=new WeakMap,y=new WeakMap;class it extends Fe{constructor(e,t){super(e,t),g.add(this),b.set(this,!1),x.set(this,void 0),w.set(this,e=>l(this,g,"m",S).call(this,e)),$.set(this,e=>l(this,g,"m",A).call(this,e)),k.set(this,e=>l(this,g,"m",C).call(this,e)),E.set(this,()=>h(this,b,!0,"f")),_.set(this,()=>h(this,b,!1,"f")),h(this,x,t.callback,"f")}_observe(e){e.addEventListener("keydown",l(this,w,"f")),e.addEventListener("focusin",l(this,$,"f")),e.addEventListener("focusout",l(this,k,"f")),e.addEventListener("touchstart",l(this,E,"f")),e.addEventListener("touchend",l(this,_,"f")),e.addEventListener("touchcancel",l(this,_,"f"))}_unobserve(e){e.removeEventListener("keydown",l(this,w,"f")),e.removeEventListener("focusin",l(this,$,"f")),e.removeEventListener("focusout",l(this,k,"f")),e.removeEventListener("touchstart",l(this,E,"f")),e.removeEventListener("touchend",l(this,_,"f")),e.removeEventListener("touchcancel",l(this,_,"f"))}}b=new WeakMap,x=new WeakMap,w=new WeakMap,$=new WeakMap,k=new WeakMap,E=new WeakMap,_=new WeakMap,g=new WeakSet,S=function(e){e.currentTarget.matches(":focus-within")&&l(this,g,"m",A).call(this,e)},A=function(e){if(l(this,b,"f"))return;const t=e.currentTarget;l(this,x,"f").call(this,!0,t.matches(":focus-visible")||Ue(),t)},C=function(e){l(this,b,"f")||l(this,x,"f").call(this,!1,!1,e.currentTarget)};class rt extends Fe{constructor(e,t){super(e,t),L.add(this),M.set(this,void 0),z.set(this,new Map),W.set(this,new Map),P.set(this,e=>l(this,L,"m",D).call(this,e)),T.set(this,e=>l(this,L,"m",U).call(this,e)),h(this,M,t.callback,"f"),this.startDelay=t.startDelay??0,this.endDelay=t.endDelay??0}clearDelays(){for(const e of this.targets)l(this,L,"m",H).call(this,e)}_observe(e){e.addEventListener("pointerenter",l(this,P,"f")),e.addEventListener("pointerleave",l(this,T,"f"))}_unobserve(e){e.removeEventListener("pointerenter",l(this,P,"f")),e.removeEventListener("pointerleave",l(this,T,"f"))}}M=new WeakMap,z=new WeakMap,W=new WeakMap,P=new WeakMap,T=new WeakMap,L=new WeakSet,H=function(e){l(this,L,"m",F).call(this,e),l(this,L,"m",O).call(this,e)},F=function(e){return!!l(this,z,"f").has(e)&&(clearTimeout(l(this,z,"f").get(e)),l(this,z,"f").delete(e))},O=function(e){return!!l(this,W,"f").has(e)&&(clearTimeout(l(this,W,"f").get(e)),l(this,W,"f").delete(e))},D=function(e){const t=e.target;l(this,L,"m",O).call(this,t),this.startDelay>0?(l(this,L,"m",F).call(this,t),l(this,z,"f").set(t,setTimeout(()=>{l(this,z,"f").delete(t),l(this,M,"f").call(this,!0,t)},this.startDelay))):l(this,M,"f").call(this,!0,t)},U=function(e){const t=e.target;l(this,L,"m",F).call(this,t)||(this.endDelay>0?(l(this,L,"m",O).call(this,t),l(this,W,"f").set(t,setTimeout(()=>{l(this,W,"f").delete(t),l(this,M,"f").call(this,!1,t)},this.endDelay))):l(this,M,"f").call(this,!1,t))};class at extends Fe{constructor(t,s){super(t,s),N.set(this,void 0),I.set(this,void 0),R.set(this,!1),B.set(this,void 0),q.set(this,!0),h(this,N,t,"f"),h(this,I,s.callback,"f"),h(this,R,s.skipInitial??!1,"f"),e||(window.IntersectionObserver?h(this,B,new IntersectionObserver((e,t)=>{l(this,I,"f").call(this,e,t),l(this,N,"f").requestUpdate()},s.init),"f"):console.warn("IntersectionController error: the browser does not support IntersectionObserver."))}async hostUpdated(){l(this,B,"f")&&!l(this,R,"f")&&l(this,q,"f")&&l(this,I,"f").call(this,[],l(this,B,"f")),h(this,q,!1,"f")}_observe(e){l(this,B,"f")?.observe(e),h(this,q,!0,"f"),l(this,N,"f").requestUpdate()}_unobserve(e){l(this,B,"f")?.unobserve(e)}}N=new WeakMap,I=new WeakMap,R=new WeakMap,B=new WeakMap,q=new WeakMap;class nt extends Fe{constructor(e,t){super(e,t),V.add(this),j.set(this,void 0),X.set(this,void 0),Z.set(this,new Set),K.set(this,new Map),Y.set(this,e=>l(this,V,"m",G).call(this,e)),Q.set(this,e=>l(this,V,"m",J).call(this,e)),h(this,j,t.callback,"f"),h(this,X,t.threshold??500,"f")}_observe(e){e.addEventListener("touchstart",l(this,Y,"f"),{passive:!0}),e.addEventListener("touchend",l(this,Q,"f")),e.addEventListener("touchcancel",l(this,Q,"f"))}_unobserve(e){e.removeEventListener("touchstart",l(this,Y,"f")),e.removeEventListener("touchend",l(this,Q,"f")),e.removeEventListener("touchcancel",l(this,Q,"f"))}}j=new WeakMap,X=new WeakMap,Z=new WeakMap,K=new WeakMap,Y=new WeakMap,Q=new WeakMap,V=new WeakSet,G=function(e){if(e.currentTarget instanceof HTMLElement&&this.isObserving(e.currentTarget)){const t=e.currentTarget;l(this,K,"f").set(t,setTimeout(()=>{l(this,Z,"f").add(t),l(this,K,"f").delete(t),l(this,j,"f").call(this,!0,t)},l(this,X,"f")))}},J=function(e){if(e.currentTarget instanceof HTMLElement&&this.isObserving(e.currentTarget)){const t=e.currentTarget;l(this,Z,"f").has(t)&&(l(this,j,"f").call(this,!1,t),l(this,Z,"f").delete(t)),l(this,K,"f").has(t)&&(clearTimeout(l(this,K,"f").get(t)),l(this,K,"f").delete(t))}};class ot extends Fe{constructor(t,s){super(t,s),ee.set(this,void 0),te.set(this,void 0),se.set(this,!1),ie.set(this,void 0),re.set(this,void 0),ae.set(this,!0),h(this,ee,t,"f"),h(this,te,s.callback,"f"),h(this,se,s.skipInitial??!1,"f"),h(this,ie,s.config,"f"),e||(window.MutationObserver?h(this,re,new MutationObserver((e,t)=>{l(this,te,"f").call(this,e,t),l(this,ee,"f").requestUpdate()}),"f"):console.warn("MutationController error: the browser does not support MutationObserver."))}async hostUpdated(){if(l(this,re,"f")&&!l(this,se,"f")&&l(this,ae,"f")){const e=l(this,re,"f").takeRecords();e.length>0&&l(this,te,"f").call(this,e,l(this,re,"f"))}h(this,ae,!1,"f")}hostDisconnected(){super.hostDisconnected(),l(this,re,"f")?.disconnect()}_observe(e){l(this,re,"f")?.observe(e,l(this,ie,"f")),h(this,ae,!0,"f"),l(this,ee,"f").requestUpdate()}_unobserve(){l(this,re,"f")?.disconnect();for(const e of this.targets)l(this,re,"f")?.observe(e,l(this,ie,"f"))}}ee=new WeakMap,te=new WeakMap,se=new WeakMap,ie=new WeakMap,re=new WeakMap,ae=new WeakMap;class lt extends Fe{constructor(e,t){super(e,t),ne.add(this),oe.set(this,void 0),le.set(this,void 0),he.set(this,void 0),ce.set(this,new Map),de.set(this,void 0),pe.set(this,e=>l(this,ne,"m",ye).call(this,e)),ue.set(this,e=>l(this,ne,"m",ge).call(this,e)),me.set(this,e=>l(this,ne,"m",be).call(this,e)),fe.set(this,e=>l(this,ne,"m",xe).call(this,e)),ve.set(this,e=>l(this,ne,"m",we).call(this,e)),h(this,oe,t.capture,"f"),h(this,le,t.callback,"f"),h(this,he,t.isPressedKey,"f"),h(this,de,t.minPressedDuration??0,"f")}hostConnected(){document.addEventListener("pointerup",l(this,ue,"f"),{capture:l(this,oe,"f")}),document.addEventListener("touchend",l(this,me,"f"),{capture:l(this,oe,"f")}),document.addEventListener("touchcancel",l(this,me,"f"),{capture:l(this,oe,"f")}),super.hostConnected()}hostDisconnected(){document.removeEventListener("pointerup",l(this,ue,"f"),{capture:l(this,oe,"f")}),document.addEventListener("touchend",l(this,me,"f"),{capture:l(this,oe,"f")}),document.addEventListener("touchcancel",l(this,me,"f"),{capture:l(this,oe,"f")}),super.hostDisconnected(),l(this,ce,"f").clear()}_observe(e){e.addEventListener("pointerdown",l(this,pe,"f"),{capture:l(this,oe,"f")}),l(this,he,"f")&&(e.addEventListener("keydown",l(this,fe,"f"),{capture:l(this,oe,"f")}),e.addEventListener("keyup",l(this,ve,"f"),{capture:l(this,oe,"f")}))}_unobserve(e){e.removeEventListener("pointerdown",l(this,pe,"f"),{capture:l(this,oe,"f")}),l(this,he,"f")&&(e.removeEventListener("keydown",l(this,fe,"f"),{capture:l(this,oe,"f")}),e.removeEventListener("keyup",l(this,ve,"f"),{capture:l(this,oe,"f")}))}}oe=new WeakMap,le=new WeakMap,he=new WeakMap,ce=new WeakMap,de=new WeakMap,pe=new WeakMap,ue=new WeakMap,me=new WeakMap,fe=new WeakMap,ve=new WeakMap,ne=new WeakSet,ye=function(e){if(!("mouse"===e.pointerType&&e.button>1))for(const t of e.composedPath())if(t instanceof HTMLElement&&this.isObserving(t)){l(this,ce,"f").has(t)||(l(this,ce,"f").set(t,performance.now()),l(this,le,"f").call(this,!0,{x:e.x,y:e.y},t));break}},ge=function(e){if("mouse"===e.pointerType&&e.button>1)return;const t=e.x,s=e.y;for(const e of l(this,ce,"f").keys()){const i=l(this,de,"f")-(performance.now()-l(this,ce,"f").get(e));i>0?setTimeout(()=>{l(this,ce,"f").delete(e),l(this,le,"f").call(this,!1,{x:t,y:s},e)},i):(l(this,ce,"f").delete(e),l(this,le,"f").call(this,!1,{x:t,y:s},e))}},be=function(e){const t=e.touches[0]?.clientX??0,s=e.touches[0]?.clientY??0;for(const e of l(this,ce,"f").keys()){const i=l(this,de,"f")-(performance.now()-l(this,ce,"f").get(e));i>0?setTimeout(()=>{l(this,ce,"f").delete(e),l(this,le,"f").call(this,!1,{x:t,y:s},e)},i):(l(this,ce,"f").delete(e),l(this,le,"f").call(this,!1,{x:t,y:s},e))}},xe=function(e){if(e.target!==e.currentTarget)return;const t=e.currentTarget;if(l(this,he,"f")?.call(this,e.key)&&(" "===e.key&&e.preventDefault(),!l(this,ce,"f").has(t))){l(this,ce,"f").set(t,performance.now());const e=t.getBoundingClientRect();l(this,le,"f").call(this,!0,{x:e.x+e.width/2,y:e.y+e.height/2},t)}},we=function(e){const t=e.target;if(l(this,ce,"f").has(t)&&l(this,he,"f")?.call(this,e.key)){const e=l(this,de,"f")-(performance.now()-l(this,ce,"f").get(t)),s=t.getBoundingClientRect();e>0?setTimeout(()=>{l(this,ce,"f").delete(t),l(this,le,"f").call(this,!1,{x:s.x+s.width/2,y:s.y+s.height/2},t)},e):(l(this,ce,"f").delete(t),l(this,le,"f").call(this,!1,{x:s.x+s.width/2,y:s.y+s.height/2},t))}};class ht extends Fe{constructor(t,s){super(t,s),$e.set(this,void 0),ke.set(this,void 0),Ee.set(this,void 0),_e.set(this,void 0),Se.set(this,void 0),Ae.set(this,!0),h(this,$e,t,"f"),h(this,ke,s.callback,"f"),h(this,Ee,s.skipInitial??!1,"f"),h(this,_e,s.config,"f"),e||(window.ResizeObserver?h(this,Se,new ResizeObserver((e,t)=>{l(this,ke,"f").call(this,e,t),l(this,$e,"f").requestUpdate()}),"f"):console.warn("ResizeController error: the browser does not support ResizeObserver."))}async hostUpdated(){l(this,Se,"f")&&!l(this,Ee,"f")&&l(this,Ae,"f")&&l(this,ke,"f").call(this,[],l(this,Se,"f")),h(this,Ae,!1,"f")}_observe(e){l(this,Se,"f")?.observe(e,l(this,_e,"f")),h(this,Ae,!0,"f"),l(this,$e,"f").requestUpdate()}_unobserve(e){l(this,Se,"f")?.unobserve(e)}}function ct(e){const t=Symbol("_id");return(s,i,r)=>{const a=r.value;return r.value=function(...s){clearTimeout(this[t]),this[t]=setTimeout(()=>a.apply(this,s),e)},r}}$e=new WeakMap,ke=new WeakMap,Ee=new WeakMap,_e=new WeakMap,Se=new WeakMap,Ae=new WeakMap;class dt extends Fe{constructor(e,t){super(e,t),Ce.add(this),Le.set(this,void 0),Me.set(this,void 0),ze.set(this,e=>l(this,Ce,"m",Te).call(this,e)),We.set(this,new Map),h(this,Le,!0===t.debounce,"f"),h(this,Me,t.callback,"f")}getScrollContainers(e){return l(this,We,"f").get(e)}_observe(e){const t=l(this,Ce,"m",Pe).call(this,e);if(t.length>0){l(this,We,"f").set(e,t);for(const e of t)(e===document.documentElement?document:e).addEventListener("scroll",l(this,ze,"f"),{passive:!0})}}_unobserve(e){if(l(this,We,"f").has(e)){for(const t of l(this,We,"f").get(e))(t===document.documentElement?document:t).removeEventListener("scroll",l(this,ze,"f"));l(this,We,"f").delete(e)}}_debounceCallback(e){l(this,Me,"f").call(this,e)}}Le=new WeakMap,Me=new WeakMap,ze=new WeakMap,We=new WeakMap,Ce=new WeakSet,Pe=function(e){const t=new Array;let s=e;for(;s;){const e=getComputedStyle(s);/(auto|scroll)/.test(e.overflow+e.overflowY+e.overflowX)&&t.push(s),s=s.parentElement}return t},Te=function(e){const t=e.target===document?document.documentElement:e.target;l(this,Le,"f")?this._debounceCallback(t):l(this,Me,"f").call(this,t)},o([ct(40)],dt.prototype,"_debounceCallback",null);
7
7
  /**
8
8
  * @license
9
9
  * Copyright 2017 Google LLC
10
10
  * SPDX-License-Identifier: BSD-3-Clause
11
11
  */
12
- const dt=1;let pt=class{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,t,s){this._$Ct=e,this._$AM=t,this._$Ci=s}_$AS(e,t){return this.update(e,t)}update(e,t){return this.render(...t)}};const ut="important",mt=" !"+ut;const ft=(e=>(...t)=>({_$litDirective$:e,values:t}))(class extends pt{constructor(e){if(super(e),e.type!==dt||"style"!==e.name||e.strings?.length>2)throw new Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(e){return t}update(e,[t]){const{style:i}=e.element;void 0===this._previousStyleProperties&&(this._previousStyleProperties=new Set(Object.keys(t)));for(const e of this._previousStyleProperties)null==t[e]&&(this._previousStyleProperties.delete(e),e.includes("-")?i.removeProperty(e):i[e]=null);for(const e in t){const s=t[e];if(null!=s){this._previousStyleProperties.add(e);const t="string"==typeof s&&s.endsWith(mt);e.includes("-")||t?i.setProperty(e,t?s.slice(0,-11):s,t?ut:""):i[e]=s}}return s}});function vt(e,...t){return"object"==typeof e&&null!==e&&t.every(t=>t in e)}const yt=Symbol("internals");function gt(e){return vt(e,yt)}const bt=Symbol("_internals");function xt(e,t){class s extends e{get[yt](){return this[bt]??(this[bt]=this.attachInternals())}}return s.formAssociated=t,s}
12
+ const pt=1;let ut=class{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,t,s){this._$Ct=e,this._$AM=t,this._$Ci=s}_$AS(e,t){return this.update(e,t)}update(e,t){return this.render(...t)}};const mt="important",ft=" !"+mt;const vt=(e=>(...t)=>({_$litDirective$:e,values:t}))(class extends ut{constructor(e){if(super(e),e.type!==pt||"style"!==e.name||e.strings?.length>2)throw new Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(e){return t}update(e,[t]){const{style:i}=e.element;void 0===this._previousStyleProperties&&(this._previousStyleProperties=new Set(Object.keys(t)));for(const e of this._previousStyleProperties)null==t[e]&&(this._previousStyleProperties.delete(e),e.includes("-")?i.removeProperty(e):i[e]=null);for(const e in t){const s=t[e];if(null!=s){this._previousStyleProperties.add(e);const t="string"==typeof s&&s.endsWith(ft);e.includes("-")||t?i.setProperty(e,t?s.slice(0,-11):s,t?mt:""):i[e]=s}}return s}});function yt(e,...t){return"object"==typeof e&&null!==e&&t.every(t=>t in e)}const gt=Symbol("internals");function bt(e){return yt(e,gt)}const xt=Symbol("_internals");function wt(e,t){class s extends e{get[gt](){return this[xt]??(this[xt]=this.attachInternals())}}return s.formAssociated=t,s}
13
13
  /**
14
14
  * @license
15
15
  * Copyright 2017 Google LLC
16
16
  * SPDX-License-Identifier: BSD-3-Clause
17
- */const wt=e=>(t,s)=>{void 0!==s?s.addInitializer(()=>{customElements.define(e,t)}):customElements.define(e,t)},$t=globalThis,kt=$t.ShadowRoot&&(void 0===$t.ShadyCSS||$t.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Et=Symbol(),_t=new WeakMap;
17
+ */const $t=e=>(t,s)=>{void 0!==s?s.addInitializer(()=>{customElements.define(e,t)}):customElements.define(e,t)},kt=globalThis,Et=kt.ShadowRoot&&(void 0===kt.ShadyCSS||kt.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,_t=Symbol(),St=new WeakMap;
18
18
  /**
19
19
  * @license
20
20
  * Copyright 2019 Google LLC
21
21
  * SPDX-License-Identifier: BSD-3-Clause
22
- */let St=class{constructor(e,t,s){if(this._$cssResult$=!0,s!==Et)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o;const t=this.t;if(kt&&void 0===e){const s=void 0!==t&&1===t.length;s&&(e=_t.get(t)),void 0===e&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),s&&_t.set(t,e))}return e}toString(){return this.cssText}};const At=kt?e=>e:e=>e instanceof CSSStyleSheet?(e=>{let t="";for(const s of e.cssRules)t+=s.cssText;return(e=>new St("string"==typeof e?e:e+"",void 0,Et))(t)})(e):e,{is:Ct,defineProperty:Lt,getOwnPropertyDescriptor:Mt,getOwnPropertyNames:zt,getOwnPropertySymbols:Wt,getPrototypeOf:Pt}=Object,Tt=globalThis,Ht=Tt.trustedTypes,Ft=Ht?Ht.emptyScript:"",Ot=Tt.reactiveElementPolyfillSupport,Dt=(e,t)=>e,Ut={toAttribute(e,t){switch(t){case Boolean:e=e?Ft:null;break;case Object:case Array:e=null==e?e:JSON.stringify(e)}return e},fromAttribute(e,t){let s=e;switch(t){case Boolean:s=null!==e;break;case Number:s=null===e?null:Number(e);break;case Object:case Array:try{s=JSON.parse(e)}catch(e){s=null}}return s}},Nt=(e,t)=>!Ct(e,t),It={attribute:!0,type:String,converter:Ut,reflect:!1,useDefault:!1,hasChanged:Nt};
22
+ */let At=class{constructor(e,t,s){if(this._$cssResult$=!0,s!==_t)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o;const t=this.t;if(Et&&void 0===e){const s=void 0!==t&&1===t.length;s&&(e=St.get(t)),void 0===e&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),s&&St.set(t,e))}return e}toString(){return this.cssText}};const Ct=Et?e=>e:e=>e instanceof CSSStyleSheet?(e=>{let t="";for(const s of e.cssRules)t+=s.cssText;return(e=>new At("string"==typeof e?e:e+"",void 0,_t))(t)})(e):e,{is:Lt,defineProperty:Mt,getOwnPropertyDescriptor:zt,getOwnPropertyNames:Wt,getOwnPropertySymbols:Pt,getPrototypeOf:Tt}=Object,Ht=globalThis,Ft=Ht.trustedTypes,Ot=Ft?Ft.emptyScript:"",Dt=Ht.reactiveElementPolyfillSupport,Ut=(e,t)=>e,Nt={toAttribute(e,t){switch(t){case Boolean:e=e?Ot:null;break;case Object:case Array:e=null==e?e:JSON.stringify(e)}return e},fromAttribute(e,t){let s=e;switch(t){case Boolean:s=null!==e;break;case Number:s=null===e?null:Number(e);break;case Object:case Array:try{s=JSON.parse(e)}catch(e){s=null}}return s}},It=(e,t)=>!Lt(e,t),Rt={attribute:!0,type:String,converter:Nt,reflect:!1,useDefault:!1,hasChanged:It};
23
23
  /**
24
24
  * @license
25
25
  * Copyright 2017 Google LLC
26
26
  * SPDX-License-Identifier: BSD-3-Clause
27
- */Symbol.metadata??=Symbol("metadata"),Tt.litPropertyMetadata??=new WeakMap;class Rt extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,t=It){if(t.state&&(t.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(e)&&((t=Object.create(t)).wrapped=!0),this.elementProperties.set(e,t),!t.noAccessor){const s=Symbol(),i=this.getPropertyDescriptor(e,s,t);void 0!==i&&Lt(this.prototype,e,i)}}static getPropertyDescriptor(e,t,s){const{get:i,set:r}=Mt(this.prototype,e)??{get(){return this[t]},set(e){this[t]=e}};return{get:i,set(t){const a=i?.call(this);r?.call(this,t),this.requestUpdate(e,a,s)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??It}static _$Ei(){if(this.hasOwnProperty(Dt("elementProperties")))return;const e=Pt(this);e.finalize(),void 0!==e.l&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(Dt("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Dt("properties"))){const e=this.properties,t=[...zt(e),...Wt(e)];for(const s of t)this.createProperty(s,e[s])}const e=this[Symbol.metadata];if(null!==e){const t=litPropertyMetadata.get(e);if(void 0!==t)for(const[e,s]of t)this.elementProperties.set(e,s)}this._$Eh=new Map;for(const[e,t]of this.elementProperties){const s=this._$Eu(e,t);void 0!==s&&this._$Eh.set(s,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){const t=[];if(Array.isArray(e)){const s=new Set(e.flat(1/0).reverse());for(const e of s)t.unshift(At(e))}else void 0!==e&&t.push(At(e));return t}static _$Eu(e,t){const s=t.attribute;return!1===s?void 0:"string"==typeof s?s:"string"==typeof e?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(e=>e(this))}addController(e){(this._$EO??=new Set).add(e),void 0!==this.renderRoot&&this.isConnected&&e.hostConnected?.()}removeController(e){this._$EO?.delete(e)}_$E_(){const e=new Map,t=this.constructor.elementProperties;for(const s of t.keys())this.hasOwnProperty(s)&&(e.set(s,this[s]),delete this[s]);e.size>0&&(this._$Ep=e)}createRenderRoot(){const e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return((e,t)=>{if(kt)e.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(const s of t){const t=document.createElement("style"),i=$t.litNonce;void 0!==i&&t.setAttribute("nonce",i),t.textContent=s.cssText,e.appendChild(t)}})(e,this.constructor.elementStyles),e}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(e=>e.hostConnected?.())}enableUpdating(e){}disconnectedCallback(){this._$EO?.forEach(e=>e.hostDisconnected?.())}attributeChangedCallback(e,t,s){this._$AK(e,s)}_$ET(e,t){const s=this.constructor.elementProperties.get(e),i=this.constructor._$Eu(e,s);if(void 0!==i&&!0===s.reflect){const r=(void 0!==s.converter?.toAttribute?s.converter:Ut).toAttribute(t,s.type);this._$Em=e,null==r?this.removeAttribute(i):this.setAttribute(i,r),this._$Em=null}}_$AK(e,t){const s=this.constructor,i=s._$Eh.get(e);if(void 0!==i&&this._$Em!==i){const e=s.getPropertyOptions(i),r="function"==typeof e.converter?{fromAttribute:e.converter}:void 0!==e.converter?.fromAttribute?e.converter:Ut;this._$Em=i;const a=r.fromAttribute(t,e.type);this[i]=a??this._$Ej?.get(i)??a,this._$Em=null}}requestUpdate(e,t,s){if(void 0!==e){const i=this.constructor,r=this[e];if(s??=i.getPropertyOptions(e),!((s.hasChanged??Nt)(r,t)||s.useDefault&&s.reflect&&r===this._$Ej?.get(e)&&!this.hasAttribute(i._$Eu(e,s))))return;this.C(e,t,s)}!1===this.isUpdatePending&&(this._$ES=this._$EP())}C(e,t,{useDefault:s,reflect:i,wrapped:r},a){s&&!(this._$Ej??=new Map).has(e)&&(this._$Ej.set(e,a??t??this[e]),!0!==r||void 0!==a)||(this._$AL.has(e)||(this.hasUpdated||s||(t=void 0),this._$AL.set(e,t)),!0===i&&this._$Em!==e&&(this._$Eq??=new Set).add(e))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(e){Promise.reject(e)}const e=this.scheduleUpdate();return null!=e&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[e,t]of this._$Ep)this[e]=t;this._$Ep=void 0}const e=this.constructor.elementProperties;if(e.size>0)for(const[t,s]of e){const{wrapped:e}=s,i=this[t];!0!==e||this._$AL.has(t)||void 0===i||this.C(t,void 0,s,i)}}let e=!1;const t=this._$AL;try{e=this.shouldUpdate(t),e?(this.willUpdate(t),this._$EO?.forEach(e=>e.hostUpdate?.()),this.update(t)):this._$EM()}catch(t){throw e=!1,this._$EM(),t}e&&this._$AE(t)}willUpdate(e){}_$AE(e){this._$EO?.forEach(e=>e.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Eq&&=this._$Eq.forEach(e=>this._$ET(e,this[e])),this._$EM()}updated(e){}firstUpdated(e){}}Rt.elementStyles=[],Rt.shadowRootOptions={mode:"open"},Rt[Dt("elementProperties")]=new Map,Rt[Dt("finalized")]=new Map,Ot?.({ReactiveElement:Rt}),(Tt.reactiveElementVersions??=[]).push("2.1.1");
27
+ */Symbol.metadata??=Symbol("metadata"),Ht.litPropertyMetadata??=new WeakMap;class Bt extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,t=Rt){if(t.state&&(t.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(e)&&((t=Object.create(t)).wrapped=!0),this.elementProperties.set(e,t),!t.noAccessor){const s=Symbol(),i=this.getPropertyDescriptor(e,s,t);void 0!==i&&Mt(this.prototype,e,i)}}static getPropertyDescriptor(e,t,s){const{get:i,set:r}=zt(this.prototype,e)??{get(){return this[t]},set(e){this[t]=e}};return{get:i,set(t){const a=i?.call(this);r?.call(this,t),this.requestUpdate(e,a,s)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??Rt}static _$Ei(){if(this.hasOwnProperty(Ut("elementProperties")))return;const e=Tt(this);e.finalize(),void 0!==e.l&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(Ut("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Ut("properties"))){const e=this.properties,t=[...Wt(e),...Pt(e)];for(const s of t)this.createProperty(s,e[s])}const e=this[Symbol.metadata];if(null!==e){const t=litPropertyMetadata.get(e);if(void 0!==t)for(const[e,s]of t)this.elementProperties.set(e,s)}this._$Eh=new Map;for(const[e,t]of this.elementProperties){const s=this._$Eu(e,t);void 0!==s&&this._$Eh.set(s,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){const t=[];if(Array.isArray(e)){const s=new Set(e.flat(1/0).reverse());for(const e of s)t.unshift(Ct(e))}else void 0!==e&&t.push(Ct(e));return t}static _$Eu(e,t){const s=t.attribute;return!1===s?void 0:"string"==typeof s?s:"string"==typeof e?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(e=>e(this))}addController(e){(this._$EO??=new Set).add(e),void 0!==this.renderRoot&&this.isConnected&&e.hostConnected?.()}removeController(e){this._$EO?.delete(e)}_$E_(){const e=new Map,t=this.constructor.elementProperties;for(const s of t.keys())this.hasOwnProperty(s)&&(e.set(s,this[s]),delete this[s]);e.size>0&&(this._$Ep=e)}createRenderRoot(){const e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return((e,t)=>{if(Et)e.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(const s of t){const t=document.createElement("style"),i=kt.litNonce;void 0!==i&&t.setAttribute("nonce",i),t.textContent=s.cssText,e.appendChild(t)}})(e,this.constructor.elementStyles),e}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(e=>e.hostConnected?.())}enableUpdating(e){}disconnectedCallback(){this._$EO?.forEach(e=>e.hostDisconnected?.())}attributeChangedCallback(e,t,s){this._$AK(e,s)}_$ET(e,t){const s=this.constructor.elementProperties.get(e),i=this.constructor._$Eu(e,s);if(void 0!==i&&!0===s.reflect){const r=(void 0!==s.converter?.toAttribute?s.converter:Nt).toAttribute(t,s.type);this._$Em=e,null==r?this.removeAttribute(i):this.setAttribute(i,r),this._$Em=null}}_$AK(e,t){const s=this.constructor,i=s._$Eh.get(e);if(void 0!==i&&this._$Em!==i){const e=s.getPropertyOptions(i),r="function"==typeof e.converter?{fromAttribute:e.converter}:void 0!==e.converter?.fromAttribute?e.converter:Nt;this._$Em=i;const a=r.fromAttribute(t,e.type);this[i]=a??this._$Ej?.get(i)??a,this._$Em=null}}requestUpdate(e,t,s){if(void 0!==e){const i=this.constructor,r=this[e];if(s??=i.getPropertyOptions(e),!((s.hasChanged??It)(r,t)||s.useDefault&&s.reflect&&r===this._$Ej?.get(e)&&!this.hasAttribute(i._$Eu(e,s))))return;this.C(e,t,s)}!1===this.isUpdatePending&&(this._$ES=this._$EP())}C(e,t,{useDefault:s,reflect:i,wrapped:r},a){s&&!(this._$Ej??=new Map).has(e)&&(this._$Ej.set(e,a??t??this[e]),!0!==r||void 0!==a)||(this._$AL.has(e)||(this.hasUpdated||s||(t=void 0),this._$AL.set(e,t)),!0===i&&this._$Em!==e&&(this._$Eq??=new Set).add(e))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(e){Promise.reject(e)}const e=this.scheduleUpdate();return null!=e&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[e,t]of this._$Ep)this[e]=t;this._$Ep=void 0}const e=this.constructor.elementProperties;if(e.size>0)for(const[t,s]of e){const{wrapped:e}=s,i=this[t];!0!==e||this._$AL.has(t)||void 0===i||this.C(t,void 0,s,i)}}let e=!1;const t=this._$AL;try{e=this.shouldUpdate(t),e?(this.willUpdate(t),this._$EO?.forEach(e=>e.hostUpdate?.()),this.update(t)):this._$EM()}catch(t){throw e=!1,this._$EM(),t}e&&this._$AE(t)}willUpdate(e){}_$AE(e){this._$EO?.forEach(e=>e.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Eq&&=this._$Eq.forEach(e=>this._$ET(e,this[e])),this._$EM()}updated(e){}firstUpdated(e){}}Bt.elementStyles=[],Bt.shadowRootOptions={mode:"open"},Bt[Ut("elementProperties")]=new Map,Bt[Ut("finalized")]=new Map,Dt?.({ReactiveElement:Bt}),(Ht.reactiveElementVersions??=[]).push("2.1.1");
28
28
  /**
29
29
  * @license
30
30
  * Copyright 2017 Google LLC
31
31
  * SPDX-License-Identifier: BSD-3-Clause
32
32
  */
33
- const Bt={attribute:!0,type:String,converter:Ut,reflect:!1,hasChanged:Nt},qt=(e=Bt,t,s)=>{const{kind:i,metadata:r}=s;let a=globalThis.litPropertyMetadata.get(r);if(void 0===a&&globalThis.litPropertyMetadata.set(r,a=new Map),"setter"===i&&((e=Object.create(e)).wrapped=!0),a.set(s.name,e),"accessor"===i){const{name:i}=s;return{set(s){const r=t.get.call(this);t.set.call(this,s),this.requestUpdate(i,r,e)},init(t){return void 0!==t&&this.C(i,void 0,e,t),t}}}if("setter"===i){const{name:i}=s;return function(s){const r=this[i];t.call(this,s),this.requestUpdate(i,r,e)}}throw Error("Unsupported decorator location: "+i)};function Vt(e){return(t,s)=>"object"==typeof s?qt(e,t,s):((e,t,s)=>{const i=t.hasOwnProperty(s);return t.constructor.createProperty(s,e),i?Object.getOwnPropertyDescriptor(t,s):void 0})(e,t,s)}
33
+ const qt={attribute:!0,type:String,converter:Nt,reflect:!1,hasChanged:It},Vt=(e=qt,t,s)=>{const{kind:i,metadata:r}=s;let a=globalThis.litPropertyMetadata.get(r);if(void 0===a&&globalThis.litPropertyMetadata.set(r,a=new Map),"setter"===i&&((e=Object.create(e)).wrapped=!0),a.set(s.name,e),"accessor"===i){const{name:i}=s;return{set(s){const r=t.get.call(this);t.set.call(this,s),this.requestUpdate(i,r,e)},init(t){return void 0!==t&&this.C(i,void 0,e,t),t}}}if("setter"===i){const{name:i}=s;return function(s){const r=this[i];t.call(this,s),this.requestUpdate(i,r,e)}}throw Error("Unsupported decorator location: "+i)};function jt(e){return(t,s)=>"object"==typeof s?Vt(e,t,s):((e,t,s)=>{const i=t.hasOwnProperty(s);return t.constructor.createProperty(s,e),i?Object.getOwnPropertyDescriptor(t,s):void 0})(e,t,s)}
34
34
  /**
35
35
  * @license
36
36
  * Copyright 2017 Google LLC
@@ -41,16 +41,16 @@ const Bt={attribute:!0,type:String,converter:Ut,reflect:!1,hasChanged:Nt},qt=(e=
41
41
  * Copyright 2017 Google LLC
42
42
  * SPDX-License-Identifier: BSD-3-Clause
43
43
  */
44
- function jt(e,t){return(t,s,i)=>((e,t,s)=>(s.configurable=!0,s.enumerable=!0,Reflect.decorate&&"object"!=typeof t&&Object.defineProperty(e,t,s),s))(t,s,{get(){return(t=>t.renderRoot?.querySelector(e)??null)(this)}})}function Xt(e){return vt(e,"checked")}function Zt(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 o([Vt({type:Boolean,reflect:!0})],t.prototype,"checked",void 0),t}function Kt(e){return vt(e,"indeterminate")&&Xt(e)}function Yt(e){class t extends(Zt(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 o([Vt({type:Boolean,reflect:!0})],t.prototype,"indeterminate",void 0),t}function Qt(e){return vt(e,"selected")}function Gt(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 o([Vt({type:Boolean,reflect:!0})],t.prototype,"selected",void 0),t}function Jt(e){return Xt(e)||Qt(e)}function es(e){return Xt(e)&&e.checked||Qt(e)&&e.selected}function ts(e,t){Xt(e)?e.checked=t:e.selected=t}function ss(e){return vt(e,"dirty","pristine","markAsDirty","markAsPristine")}const is=Symbol("_eventHandler");function rs(e){var t;return t=is,class extends e{constructor(){super(...arguments),this[t]=()=>this.markAsDirty()}get dirty(){return this.classList.contains("-dirty")}get pristine(){return!this.dirty}connectedCallback(){this.markAsPristine(),super.connectedCallback(),this.addEventListener("change",this[is])}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("change",this[is])}markAsPristine(){this.classList.toggle("-dirty",!1)}markAsDirty(){this.classList.toggle("-dirty",!0)}}}function as(e){return vt(e,"touched","untouched","markAsTouched","markAsUntouched")}const ns=Symbol("_eventHandler");function os(e){var t;return t=ns,class extends e{constructor(){super(...arguments),this[t]=()=>this.markAsTouched()}get touched(){return this.classList.contains("-touched")}get untouched(){return!this.touched}connectedCallback(){this.markAsUntouched(),super.connectedCallback(),this.addEventListener("focusout",this[ns],{capture:!0})}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("focusout",this[ns],{capture:!0})}markAsTouched(){this.classList.toggle("-touched",!0)}markAsUntouched(){this.classList.toggle("-touched",!1)}}}const ls={primary:i("var(--md-sys-color-primary, #6750A4)"),onPrimary:i("var(--md-sys-color-on-primary, #FFFFFF)"),primaryContainer:i("var(--md-sys-color-primary-container, #EADDFF)"),onPrimaryContainer:i("var(--md-sys-color-on-primary-container, #4F378B)"),primaryFixed:i("var(--md-sys-color-primary-fixed, #EADDFF)"),primaryFixedDim:i("var(--md-sys-color-primary-fixed-dim, #D0BCFF)"),onPrimaryFixed:i("var(--md-sys-color-on-primary-fixed, #21005D)"),onPrimaryFixedVariant:i("var(--md-sys-color-on-primary-fixed-variant, #4F378B)"),secondary:i("var(--md-sys-color-secondary, #625B71)"),onSecondary:i("var(--md-sys-color-on-secondary, #FFFFFF)"),secondaryContainer:i("var(--md-sys-color-secondary-container, #E8DEF8)"),onSecondaryContainer:i("var(--md-sys-color-on-secondary-container, #4A4458)"),secondaryFixed:i("var(--md-sys-color-secondary-fixed, #E8DEF8)"),secondaryFixedDim:i("var(--md-sys-color-secondary-fixed-dim, #CCC2DC)"),onSecondaryFixed:i("var(--md-sys-color-on-secondary-fixed, #1D192B)"),onSecondaryFixedVariant:i("var(--md-sys-color-on-secondary-fixed-variant, #4A4458)"),tertiary:i("var(--md-sys-color-tertiary, #7D5260)"),onTertiary:i("var(--md-sys-color-on-tertiary, #FFFFFF)"),tertiaryContainer:i("var(--md-sys-color-tertiary-container, #FFD8E4)"),onTertiaryContainer:i("var(--md-sys-color-on-tertiary-container, #633B48)"),tertiaryFixed:i("var(--md-sys-color-tertiary-fixed, #FFD8E4)"),tertiaryFixedDim:i("var(--md-sys-color-tertiary-fixed-dim, #EFB8C8)"),onTertiaryFixed:i("var(--md-sys-color-on-tertiary-fixed, #31111D)"),onTertiaryFixedVariant:i("var(--md-sys-color-on-tertiary-fixed-variant, #633B48)"),error:i("var(--md-sys-color-error, #B3261E)"),onError:i("var(--md-sys-color-on-error, #FFFFFF)"),errorContainer:i("var(--md-sys-color-error-container, #F9DEDC)"),onErrorContainer:i("var(--md-sys-color-on-error-container, #8C1D18)"),surface:i("var(--md-sys-color-surface, #FEF7FF)"),onSurface:i("var(--md-sys-color-on-surface, #1D1B20)"),onSurfaceVariant:i("var(--md-sys-color-on-surface-variant, #49454F)"),surfaceContainerLowest:i("var(--md-sys-color-surface-container-lowest, #FFFFFF)"),surfaceContainerLow:i("var(--md-sys-color-surface-container-low, #F7F2FA)"),surfaceContainer:i("var(--md-sys-color-surface-container, #F3EDF7)"),surfaceContainerHigh:i("var(--md-sys-color-surface-container-high, #ECE6F0)"),surfaceContainerHighest:i("var(--md-sys-color-surface-container-highest, #E6E0E9)"),surfaceDim:i("var(--md-sys-color-surface-dim, #DED8E1)"),surfaceBright:i("var(--md-sys-color-surface-bright, #FEF7FF)"),surfaceVariant:i("var(--md-sys-color-surface-variant, #E7E0EC)"),inverseSurface:i("var(--md-sys-color-inverse-surface, #322F35)"),inverseOnSurface:i("var(--md-sys-color-inverse-on-surface, #F5EFF7)"),inversePrimary:i("var(--md-sys-color-inverse-primary, #D0BCFF)"),outline:i("var(--md-sys-color-outline, #79747E)"),outlineVariant:i("var(--md-sys-color-outline-variant, #CAC4D0)"),shadow:i("var(--md-sys-color-shadow, #000000)"),scrim:i("var(--md-sys-color-scrim, #000000)")},hs={scale:i("var(--md-sys-density-scale, 0)"),size:i("var(--md-sys-density-size, 0.25rem)")},cs={...hs,calc:e=>i(`calc(max(${e}, ${hs.scale}) * ${hs.size})`)},ds=`color-mix(in srgb, var(--m3e-elevation-color, ${ls.shadow}) 20%, transparent)`,ps=["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"],us=`color-mix(in srgb, var(--m3e-elevation-color, ${ls.shadow}) 14%, transparent)`,ms=["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"],fs=`color-mix(in srgb, var(--m3e-elevation-color, ${ls.shadow}) 12%, transparent)`,vs=["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 ys(e){return`${ds} ${ps[e]},${us} ${ms[e]},${fs} ${vs[e]}`}const gs={level0:i(`var(--md-sys-elevation-level0, ${ys(0)})`),level1:i(`var(--md-sys-elevation-level1, ${ys(1)})`),level2:i(`var(--md-sys-elevation-level2, ${ys(3)})`),level3:i(`var(--md-sys-elevation-level3, ${ys(6)})`),level4:i(`var(--md-sys-elevation-level4, ${ys(8)})`),level5:i(`var(--md-sys-elevation-level5, ${ys(12)})`)},bs={emphasized:i("var(--md-sys-motion-easing-emphasized, cubic-bezier(0.2, 0.0, 0, 1.0))"),emphasizedDecelerate:i("var(--md-sys-motion-easing-emphasized-decelerate, cubic-bezier(0.05, 0.7, 0.1, 1.0))"),emphasizedAccelerate:i("var(--md-sys-motion-easing-emphasized-accelerate, cubic-bezier(0.3, 0.0, 0.8, 0.15))"),standard:i("var(--md-sys-motion-easing-standard, cubic-bezier(0.2, 0.0, 0, 1.0))"),standardDecelerate:i("var(--md-sys-motion-easing-standard-decelerate, cubic-bezier(0, 0, 0, 1))"),standardAccelerate:i("var(--md-sys-motion-easing-standard-accelerate, cubic-bezier(0.3, 0, 1, 1))")},xs={fastSpatial:i("var(--md-sys-motion-spring-fast-spatial, 350ms cubic-bezier(0.27, 1.06, 0.18, 1.00))"),defaultSpatial:i("var(--md-sys-motion-spring-default-spatial, 500ms cubic-bezier(0.27, 1.06, 0.18, 1.00))"),slowSpatial:i("var(--md-sys-motion-spring-slow-spatial, 750ms cubic-bezier(0.27, 1.06, 0.18, 1.00))"),fastEffects:i("var(--md-sys-motion-spring-fast-effects, 150ms cubic-bezier(0.31, 0.94, 0.34, 1.00))"),defaultEffects:i("var(--md-sys-motion-spring-default-effects, 200ms cubic-bezier(0.34, 0.80, 0.34, 1.00))"),slowEffects:i("var(--md-sys-motion-spring-slow-effects, 200ms cubic-bezier(0.34, 0.88, 0.34, 1.00))")},ws={easing:bs,duration:{short1:i("var(--md-sys-motion-duration-short-1, 50ms)"),short2:i("var(--md-sys-motion-duration-short-2, 100ms)"),short3:i("var(--md-sys-motion-duration-short-3, 150ms)"),short4:i("var(--md-sys-motion-duration-short-4, 200ms)"),medium1:i("var(--md-sys-motion-duration-medium-1, 250ms)"),medium2:i("var(--md-sys-motion-duration-medium-2, 300ms)"),medium3:i("var(--md-sys-motion-duration-medium-3, 350ms)"),medium4:i("var(--md-sys-motion-duration-medium-4, 400ms)"),long1:i("var(--md-sys-motion-duration-long-1, 450ms)"),long2:i("var(--md-sys-motion-duration-long-2, 500ms)"),long3:i("var(--md-sys-motion-duration-long-3, 550ms)"),long4:i("var(--md-sys-motion-duration-long-4, 600ms)"),extraLong1:i("var(--md-sys-motion-duration-extra-long-1, 700ms)"),extraLong2:i("var(--md-sys-motion-duration-extra-long-2, 800ms)"),extraLong3:i("var(--md-sys-motion-duration-extra-long-3, 900ms)"),extraLong4:i("var(--md-sys-motion-duration-extra-long-4, 1000ms)")},spring:xs},$s={width:i("var(--m3e-scrollbar-width, auto)"),thinWidth:i("var(--m3e-scrollbar-thin-width, thin)"),color:i("var(--m3e-scrollbar-thumb-color, #938f94) var(--m3e-scrollbar-track-color, transparent)")},ks={none:i("var(--md-sys-shape-corner-value-none, 0)"),extraSmall:i("var(--md-sys-shape-corner-value-extra-small, 0.25rem)"),small:i("var(--md-sys-shape-corner-value-small, 0.5rem)"),medium:i("var(--md-sys-shape-corner-value-medium, 0.75rem)"),large:i("var(--md-sys-shape-corner-value-large, 1rem)"),largeIncreased:i("var(--md-sys-shape-corner-value-large-increased, 1.25rem)"),extraLarge:i("var(--md-sys-shape-corner-value-extra-large, 1.75rem)"),extraLargeIncreased:i("var(--md-sys-shape-corner-value-extra-large-increased, 2rem)"),extraExtraLarge:i("var(--md-sys-shape-corner-value-extra-extra-large, 3rem)")},Es={color:ls,elevation:gs,motion:ws,shape:{corner:{full:i("var(--md-sys-shape-corner-full, 624.9375rem)"),extraLargeTop:i(`var(--md-sys-shape-corner-extra-large-top, ${ks.extraLarge} ${ks.extraLarge} ${ks.none} ${ks.none})`),extraLarge:i(`var(--md-sys-shape-corner-extra-large, ${ks.extraLarge})`),extraLargeEnd:i(`${ks.none} ${ks.extraLarge} ${ks.extraLarge} ${ks.none}`),extraLargeStart:i(`${ks.extraLarge} ${ks.none} ${ks.none} ${ks.extraLarge}`),largeTop:i(`var(--md-sys-shape-corner-large-top, ${ks.large} ${ks.large} ${ks.none} ${ks.none})`),largeEnd:i(`var(--md-sys-shape-corner-large-end, ${ks.none} ${ks.large} ${ks.large} ${ks.none})`),largeStart:i(`var(--md-sys-shape-corner-large-end, ${ks.large} ${ks.none} ${ks.none} ${ks.large})`),large:i(`var(--md-sys-shape-corner-large, ${ks.large})`),medium:i(`var(--md-sys-shape-corner-medium, ${ks.medium})`),mediumTop:i(`${ks.medium} ${ks.medium} ${ks.none} ${ks.none}`),mediumEnd:i(`${ks.none} ${ks.medium} ${ks.medium} ${ks.none}`),mediumStart:i(`${ks.medium} ${ks.none} ${ks.none} ${ks.medium}`),small:i(`var(--md-sys-shape-corner-small, ${ks.small})`),smallTop:i(`${ks.small} ${ks.small} ${ks.none} ${ks.none}`),smallEnd:i(`${ks.none} ${ks.small} ${ks.small} ${ks.none}`),smallStart:i(`${ks.small} ${ks.none} ${ks.none} ${ks.small}`),extraSmallTop:i(`var(--md-sys-shape-corner-extra-small-top, ${ks.extraSmall} ${ks.extraSmall} ${ks.none} ${ks.none})`),extraSmall:i(`var(--md-sys-shape-corner-extra-small, ${ks.extraSmall})`),extraSmallEnd:i(`${ks.none} ${ks.extraSmall} ${ks.extraSmall} ${ks.none}`),extraSmallStart:i(`${ks.extraSmall} ${ks.none} ${ks.none} ${ks.extraSmall}`),extraSmallBottom:i(`${ks.none} ${ks.none} ${ks.extraSmall} ${ks.extraSmall}`),none:i(`var(--md-sys-shape-corner-none, ${ks.none})`),largeIncreased:i(`var(--md-sys-shape-corner-large-increased, ${ks.largeIncreased})`),extraLargeIncreased:i(`var(--md-sys-shape-corner-extra-large-increased, ${ks.extraLargeIncreased})`),extraExtraLarge:i(`var(--md-sys-shape-corner-extra-extra-large, ${ks.extraExtraLarge})`),value:ks}},state:{focusStateLayerOpacity:i("var(--md-sys-state-focus-state-layer-opacity, 10%)"),hoverStateLayerOpacity:i("var(--md-sys-state-hover-state-layer-opacity, 8%)"),pressedStateLayerOpacity:i("var(--md-sys-state-pressed-state-layer-opacity, 10%)")},typescale:{standard:{display:{large:{fontSize:i("var(--md-sys-typescale-display-large-font-size, 3.5625rem)"),fontWeight:i("var(--md-sys-typescale-display-large-font-weight, 400)"),lineHeight:i("var(--md-sys-typescale-display-large-line-height, 4rem)"),tracking:i("var(--md-sys-typescale-display-large-tracking, 0.015625rem)")},medium:{fontSize:i("var(--md-sys-typescale-display-medium-font-size, 2.8125rem)"),fontWeight:i("var(--md-sys-typescale-display-medium-font-weight, 400)"),lineHeight:i("var(--md-sys-typescale-display-medium-line-height, 3.25rem)"),tracking:i("var(--md-sys-typescale-display-medium-tracking, 0)")},small:{fontSize:i("var(--md-sys-typescale-display-small-font-size, 2.25rem)"),fontWeight:i("var(--md-sys-typescale-display-small-font-weight, 400)"),lineHeight:i("var(--md-sys-typescale-display-small-line-height, 2.75rem)"),tracking:i("var(--md-sys-typescale-display-small-tracking, 0)")}},headline:{large:{fontSize:i("var(--md-sys-typescale-headline-large-font-size, 2rem)"),fontWeight:i("var(--md-sys-typescale-headline-large-font-weight, 400)"),lineHeight:i("var(--md-sys-typescale-headline-large-line-height, 2.5rem)"),tracking:i("var(--md-sys-typescale-headline-large-tracking, 0)")},medium:{fontSize:i("var(--md-sys-typescale-headline-medium-font-size, 1.75rem)"),fontWeight:i("var(--md-sys-typescale-headline-medium-font-weight, 400)"),lineHeight:i("var(--md-sys-typescale-headline-medium-line-height, 2.25rem)"),tracking:i("var(--md-sys-typescale-headline-medium-tracking, 0)")},small:{fontSize:i("var(--md-sys-typescale-headline-small-font-size, 1.5rem)"),fontWeight:i("var(--md-sys-typescale-headline-small-font-weight, 400)"),lineHeight:i("var(--md-sys-typescale-headline-small-line-height, 2rem)"),tracking:i("var(--md-sys-typescale-headline-small-tracking, 0)")}},title:{large:{fontSize:i("var(--md-sys-typescale-title-large-font-size, 1.375rem)"),fontWeight:i("var(--md-sys-typescale-title-large-font-weight, 400)"),lineHeight:i("var(--md-sys-typescale-title-large-line-height, 1.75rem)"),tracking:i("var(--md-sys-typescale-title-large-tracking, 0)")},medium:{fontSize:i("var(--md-sys-typescale-title-medium-font-size, 1rem)"),fontWeight:i("var(--md-sys-typescale-title-medium-font-weight, 500)"),lineHeight:i("var(--md-sys-typescale-title-medium-line-height, 1.5rem)"),tracking:i("var(--md-sys-typescale-title-medium-tracking, 0.009375rem)")},small:{fontSize:i("var(--md-sys-typescale-title-small-font-size, 0.875rem)"),fontWeight:i("var(--md-sys-typescale-title-small-font-weight, 500)"),lineHeight:i("var(--md-sys-typescale-title-small-line-height, 1.25rem)"),tracking:i("var(--md-sys-typescale-title-small-tracking, 0.00625rem)")}},body:{large:{fontSize:i("var(--md-sys-typescale-body-large-font-size, 1rem)"),fontWeight:i("var(--md-sys-typescale-body-large-font-weight, 400)"),lineHeight:i("var(--md-sys-typescale-body-large-line-height, 1.5rem)"),tracking:i("var(--md-sys-typescale-body-large-tracking, 0.03125rem)")},medium:{fontSize:i("var(--md-sys-typescale-body-medium-font-size, 0.875rem)"),fontWeight:i("var(--md-sys-typescale-body-medium-font-weight, 400)"),lineHeight:i("var(--md-sys-typescale-body-medium-line-height, 1.25rem)"),tracking:i("var(--md-sys-typescale-body-medium-tracking, 0.015625rem)")},small:{fontSize:i("var(--md-sys-typescale-body-small-font-size, 0.75rem)"),fontWeight:i("var(--md-sys-typescale-body-small-font-weight, 400)"),lineHeight:i("var(--md-sys-typescale-body-small-line-height, 1rem)"),tracking:i("var(--md-sys-typescale-body-small-tracking, 0.025rem)")}},label:{large:{fontSize:i("var(--md-sys-typescale-label-large-font-size, 0.875rem)"),fontWeight:i("var(--md-sys-typescale-label-large-font-weight, 500)"),lineHeight:i("var(--md-sys-typescale-label-large-line-height, 1.25rem)"),tracking:i("var(--md-sys-typescale-label-large-tracking, 0.00625rem)")},medium:{fontSize:i("var(--md-sys-typescale-label-medium-font-size, 0.75rem)"),fontWeight:i("var(--md-sys-typescale-label-medium-font-weight, 500)"),lineHeight:i("var(--md-sys-typescale-label-medium-line-height, 1rem)"),tracking:i("var(--md-sys-typescale-label-medium-tracking, 0.03125rem)")},small:{fontSize:i("var(--md-sys-typescale-label-small-font-size, 0.6875rem)"),fontWeight:i("var(--md-sys-typescale-label-small-font-weight, 500)"),lineHeight:i("var(--md-sys-typescale-label-small-line-height, 1rem)"),tracking:i("var(--md-sys-typescale-label-small-tracking, 0.03125rem)")}}},emphasized:{display:{large:{fontSize:i("var(--md-sys-typescale-emphasized-display-large-font-size, 3.5625rem)"),fontWeight:i("var(--md-sys-typescale-emphasized-display-large-font-weight, 500)"),lineHeight:i("var(--md-sys-typescale-emphasized-display-large-line-height, 4rem)"),tracking:i("var(--md-sys-typescale-emphasized-display-large-tracking, 0.015625rem)")},medium:{fontSize:i("var(--md-sys-typescale-emphasized-display-medium-font-size, 2.8125rem)"),fontWeight:i("var(--md-sys-typescale-emphasized-display-medium-font-weight, 500)"),lineHeight:i("var(--md-sys-typescale-emphasized-display-medium-line-height, 3.25rem)"),tracking:i("var(--md-sys-typescale-emphasized-display-medium-tracking, 0)")},small:{fontSize:i("var(--md-sys-typescale-emphasized-display-small-font-size, 2.25rem)"),fontWeight:i("var(--md-sys-typescale-emphasized-display-small-font-weight, 500)"),lineHeight:i("var(--md-sys-typescale-emphasized-display-small-line-height, 2.75rem)"),tracking:i("var(--md-sys-typescale-emphasized-display-small-tracking, 0)")}},headline:{large:{fontSize:i("var(--md-sys-typescale-emphasized-headline-large-font-size, 2rem)"),fontWeight:i("var(--md-sys-typescale-emphasized-headline-large-font-weight, 500)"),lineHeight:i("var(--md-sys-typescale-emphasized-headline-large-line-height, 2.5rem)"),tracking:i("var(--md-sys-typescale-emphasized-headline-large-tracking, 0)")},medium:{fontSize:i("var(--md-sys-typescale-emphasized-headline-medium-font-size, 1.75rem)"),fontWeight:i("var(--md-sys-typescale-emphasized-headline-medium-font-weight, 500)"),lineHeight:i("var(--md-sys-typescale-emphasized-headline-medium-line-height, 2.25rem)"),tracking:i("var(--md-sys-typescale-emphasized-headline-medium-tracking, 0)")},small:{fontSize:i("var(--md-sys-typescale-emphasized-headline-small-font-size, 1.5rem)"),fontWeight:i("var(--md-sys-typescale-emphasized-headline-small-font-weight, 500)"),lineHeight:i("var(--md-sys-typescale-emphasized-headline-small-line-height, 2rem)"),tracking:i("var(--md-sys-typescale-emphasized-headline-small-tracking, 0)")}},title:{large:{fontSize:i("var(--md-sys-typescale-emphasized-title-large-font-size, 1.375rem)"),fontWeight:i("var(--md-sys-typescale-emphasized-title-large-font-weight, 500)"),lineHeight:i("var(--md-sys-typescale-emphasized-title-large-line-height, 1.75rem)"),tracking:i("var(--md-sys-typescale-emphasized-title-large-tracking, 0)")},medium:{fontSize:i("var(--md-sys-typescale-emphasized-title-medium-font-size, 1rem)"),fontWeight:i("var(--md-sys-typescale-emphasized-title-medium-font-weight, 700)"),lineHeight:i("var(--md-sys-typescale-emphasized-title-medium-line-height, 3.5rem)"),tracking:i("var(--md-sys-typescale-emphasized-title-medium-tracking, 0.009375rem)")},small:{fontSize:i("var(--md-sys-typescale-emphasized-title-small-font-size, 0.875rem)"),fontWeight:i("var(--md-sys-typescale-emphasized-title-small-font-weight, 700)"),lineHeight:i("var(--md-sys-typescale-emphasized-title-small-line-height, 1.25rem)"),tracking:i("var(--md-sys-typescale-emphasized-title-small-tracking, 0.00625rem)")}},body:{large:{fontSize:i("var(--md-sys-typescale-emphasized-body-large-font-size, 1rem)"),fontWeight:i("var(--md-sys-typescale-emphasized-body-large-font-weight, 500)"),lineHeight:i("var(--md-sys-typescale-emphasized-body-large-line-height, 1.5rem)"),tracking:i("var(--md-sys-typescale-emphasized-body-large-tracking, 0.03125rem)")},medium:{fontSize:i("var(--md-sys-typescale-emphasized-body-medium-font-size, 0.875rem)"),fontWeight:i("var(--md-sys-typescale-emphasized-body-medium-font-weight, 500)"),lineHeight:i("var(--md-sys-typescale-emphasized-body-medium-line-height, 1.25rem)"),tracking:i("var(--md-sys-typescale-emphasized-body-medium-tracking, 0.015625rem)")},small:{fontSize:i("var(--md-sys-typescale-emphasized-body-small-font-size, 0.75rem)"),fontWeight:i("var(--md-sys-typescale-emphasized-body-small-font-weight, 500)"),lineHeight:i("var(--md-sys-typescale-emphasized-body-small-line-height, 1rem)"),tracking:i("var(--md-sys-typescale-emphasized-body-small-tracking, 0.025rem)")}},label:{large:{fontSize:i("var(--md-sys-typescale-emphasized-label-large-font-size, 0.875rem)"),fontWeight:i("var(--md-sys-typescale-emphasized-label-large-font-weight, 700)"),lineHeight:i("var(--md-sys-typescale-emphasized-label-large-line-height, 1.25rem)"),tracking:i("var(--md-sys-typescale-emphasized-label-large-tracking, 0.00625rem)")},medium:{fontSize:i("var(--md-sys-typescale-emphasized-label-medium-font-size, 0.75rem)"),fontWeight:i("var(--md-sys-typescale-emphasized-label-medium-font-weight, 700)"),lineHeight:i("var(--md-sys-typescale-emphasized-label-medium-line-height, 1rem)"),tracking:i("var(--md-sys-typescale-emphasized-label-medium-tracking, 0.03125rem)")},small:{fontSize:i("var(--md-sys-typescale-emphasized-label-small-font-size, 0.6875rem)"),fontWeight:i("var(--md-sys-typescale-emphasized-label-small-font-weight, 700)"),lineHeight:i("var(--md-sys-typescale-emphasized-label-small-line-height, 1rem)"),tracking:i("var(--md-sys-typescale-emphasized-label-small-tracking, 0.03125rem)")}}}},scrollbar:$s,density:cs};function _s(e){return vt(e,"disabled")}function Ss(e,t=!0){class s extends e{constructor(){super(...arguments),this.disabled=!1}update(e){super.update(e),e.has("disabled")&&this.role&&"none"!==this.role&&"presentation"!==this.role&&(this.ariaDisabled=this.disabled?"true":null)}}return o([Vt({type:Boolean,reflect:t})],s.prototype,"disabled",void 0),s}function As(e){return vt(e,"disabledInteractive")&&_s(e)}const Cs=["click","dblclick","auxclick","keydown","keyup"],Ls=["Tab","ArrowLeft","ArrowUp","ArrowRight","ArrowDown","Left","Up","Right","Down"],Ms=Symbol("_suppressedEventHandler");function zs(e){var t;class s extends e{constructor(){super(...arguments),this[t]=e=>{if(this.disabledInteractive){if(e instanceof KeyboardEvent&&Ls.includes(e.key))return;e.stopImmediatePropagation(),e.preventDefault()}},this.disabledInteractive=!1}connectedCallback(){Cs.forEach(e=>this.addEventListener(e,this[Ms],!0)),super.connectedCallback()}disconnectedCallback(){Cs.forEach(e=>this.removeEventListener(e,this[Ms],!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=Ms,o([Vt({attribute:"disabled-interactive",type:Boolean,reflect:!0})],s.prototype,"disabledInteractive",void 0),s}const Ws=Symbol("updateLabels");function Ps(e){return vt(e,"labels")&&gt(e)}const Ts=Symbol("_eventHandler");function Hs(e){var t;class s extends e{constructor(){super(...arguments),this[t]=e=>{e.defaultPrevented||this[Ws]()}}get labels(){return this[yt].labels}connectedCallback(){super.connectedCallback(),this.addEventListener("focusout",this[Ts]),this.addEventListener("change",this[Ts])}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("focusout",this[Ts]),this.removeEventListener("change",this[Ts])}update(e){super.update(e),this[Ws]()}[(t=Ts,Ws)](){const e=this.hasAttribute("tabindex"),t=_s(this)&&this.disabled||As(this)&&this.disabledInteractive,s=as(this)&&this.touched&&(this.ariaInvalid||this.classList.contains("-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, ${Es.color.onSurface} 38%, transparent)`:s?`${Es.color.error}`:""}}return s.formAssociated=!0,s}const Fs=Symbol("formValue"),Os=Symbol("defaultValue");function Ds(e){return vt(e,"disabled","form","name")&&Ps(e)&&gt(e)}const Us=Symbol("_defaultValue"),Ns=Symbol("_defaultIndeterminate"),Is=Symbol("_formDisabled");function Rs(e){var t,s;class i extends e{constructor(){super(...arguments),this[t]=!1,this[s]=!1}get form(){return this[yt].form}get labels(){return this[yt].labels}get[(t=Ns,s=Is,Fs)](){return null}get[Os](){return this[Us]}get name(){return this.getAttribute("name")??""}set name(e){e?this.setAttribute("name",e):this.removeAttribute("name")}get disabled(){return super.disabled||this[Is]}set disabled(e){super.disabled=e}connectedCallback(){super.connectedCallback(),Xt(this)?(this[Us]=this.checked,Kt(this)&&(this[Ns]=this.indeterminate)):"value"in this&&(this[Us]=this.value)}requestUpdate(e,t,s){super.requestUpdate(e,t,s),this[yt].setFormValue(this[Fs])}formDisabledCallback(e){const t=this.disabled;this[Is]=e,this.disabled!=t&&this.requestUpdate("disabled",t)}formResetCallback(){Xt(this)?(this.checked=!0===this[Us],Kt(this)&&(this.indeterminate=this[Ns])):"value"in this&&(this.value=this[Os]),ss(this)&&this.markAsPristine(),as(this)&&this.markAsUntouched()}}return i.formAssociated=!0,o([Vt({noAccessor:!0})],i.prototype,"name",null),o([Vt({type:Boolean})],i.prototype,"disabled",null),i}const Bs=Symbol("validate");function qs(e){return vt(e,"willValidate","validity","validationMessage","reportValidity","checkValidity","setCustomValidity")&&Ds(e)}const Vs=Symbol("_updateValidity"),js=Symbol("_validityMessage");function Xs(t){var s,i;class r extends t{constructor(){super(...arguments),s.add(this)}get willValidate(){return this[yt].willValidate}get validity(){return this[Vs](),this[yt].validity}get validationMessage(){return this[Vs](),this[yt].validationMessage}[(s=new WeakSet,Bs)](){return this[js]?{customError:!0}:void 0}reportValidity(){return as(this)&&this.markAsTouched(),this[Vs](),this[yt].reportValidity()}checkValidity(){return this[Vs](),this[yt].checkValidity()}setCustomValidity(e){this[js]=e||void 0,this[Vs]()}requestUpdate(e,t,s){super.requestUpdate(e,t,s),this[Vs]()}firstUpdated(e){super.firstUpdated(e),this[Vs]()}[Vs](){if(e||!this.isConnected)return;const t=this[Bs](),r=t&&Object.keys(t).some(e=>!0===t[e]);let a=t?.customError?this[js]:"";t&&!a&&(a=l(this,s,"m",i).call(this,t)),this[yt].setValidity(t,a),this.ariaInvalid=r?"true":null,this.classList.toggle("-invalid",!0===r),Ps(this)&&this[Ws]?.()}}return i=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},r}function Zs(e,...t){return class extends e{dispatchEvent(e){if(t.includes(e.type)){const t=this.getAttribute(`on${e.type}`);t&&new Function("e",`${t};`).call(this,e)}return super.dispatchEvent(e)}}}const Ks=Symbol("_tabindex");function Ys(e){var t;return t=Ks,class extends e{constructor(){super(...arguments),this[t]=0}connectedCallback(){this[Ks]=Number.parseInt(this.getAttribute("tabindex")??"0"),super.connectedCallback()}firstUpdated(e){super.firstUpdated(e),this.hasAttribute("tabindex")||e.has("disabled")||this.setAttribute("tabindex",`${this[Ks]}`)}update(e){if(super.update(e),e.has("disabled"))if(this.disabled||"none"===this.role){const e=this.getAttribute("tabindex");e&&(this[Ks]=Number.parseInt(e)),this.removeAttribute("tabindex")}else this.hasAttribute("tabindex")||this.setAttribute("tabindex",`${this[Ks]}`)}}}function Qs(e){return vt(e,"name","type","value")&&gt(e)}const Gs=Symbol("_clickHandler");function Js(e){var t;class s extends e{constructor(){super(...arguments),this.type="button",this[t]=async e=>{if(e.defaultPrevented||_s(this)&&this.disabled||As(this)&&this.disabledInteractive)return;const t=this[yt].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[yt].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[Gs])}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",this[Gs])}}return t=Gs,s.formAssociated=!0,o([Vt()],s.prototype,"name",null),o([Vt()],s.prototype,"value",null),o([Vt()],s.prototype,"type",void 0),s}function ei(e){return vt(e,"htmlFor","control","attach","detach")}const ti=Symbol("_control"),si=Symbol("_firstUpdated");function ii(e){var t,s;class i extends e{constructor(){super(...arguments),this[t]=null,this[s]=!1,this.htmlFor=null}get control(){return this[ti]}firstUpdated(e){super.firstUpdated(e),this[si]=!0}update(e){if(super.update(e),e.has("htmlFor"))if(this.htmlFor){const e=this.getRootNode();e&&Je(this.htmlFor,e).then(e=>{e!==this.control&&(this.control&&this.detach(),e instanceof HTMLElement&&this.attach(e))})}else this.control&&this[si]&&this.detach()}attach(e){this[ti]=e}detach(){this[ti]=null}}return t=ti,s=si,o([Vt({attribute:"for"})],i.prototype,"htmlFor",void 0),i}function ri(e,t=!0){var s,i,r,a,n,o,c;return i=new WeakMap,r=new WeakMap,a=new WeakMap,n=new WeakMap,s=new WeakSet,o=function(e){e.defaultPrevented||e.target!==e.currentTarget||_s(this)&&this.disabled||As(this)&&this.disabledInteractive||(" "===e.key||t&&"Enter"===e.key)&&h(this,i,!0,"f")},c=function(e){e.defaultPrevented||e.target!==e.currentTarget||_s(this)&&this.disabled||As(this)&&this.disabledInteractive||!l(this,i,"f")||this.dispatchEvent(new MouseEvent("click",{cancelable:!0,bubbles:!0,composed:!0}))},class extends e{constructor(){super(...arguments),s.add(this),i.set(this,!1),r.set(this,e=>l(this,s,"m",o).call(this,e)),a.set(this,e=>l(this,s,"m",c).call(this,e)),n.set(this,()=>h(this,i,!1,"f"))}connectedCallback(){super.connectedCallback(),this.addEventListener("keydown",l(this,r,"f")),this.addEventListener("keyup",l(this,a,"f")),this.addEventListener("focusout",l(this,n,"f"))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("keydown",l(this,r,"f")),this.removeEventListener("keyup",l(this,a,"f")),this.removeEventListener("focusout",l(this,n,"f"))}}}
44
+ function Xt(e,t){return(t,s,i)=>((e,t,s)=>(s.configurable=!0,s.enumerable=!0,Reflect.decorate&&"object"!=typeof t&&Object.defineProperty(e,t,s),s))(t,s,{get(){return(t=>t.renderRoot?.querySelector(e)??null)(this)}})}function Zt(e){return yt(e,"checked")}function Kt(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 o([jt({type:Boolean,reflect:!0})],t.prototype,"checked",void 0),t}function Yt(e){return yt(e,"indeterminate")&&Zt(e)}function Qt(e){class t extends(Kt(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 o([jt({type:Boolean,reflect:!0})],t.prototype,"indeterminate",void 0),t}function Gt(e){return yt(e,"selected")}function Jt(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 o([jt({type:Boolean,reflect:!0})],t.prototype,"selected",void 0),t}function es(e){return Zt(e)||Gt(e)}function ts(e){return Zt(e)&&e.checked||Gt(e)&&e.selected}function ss(e,t){Zt(e)?e.checked=t:e.selected=t}function is(e){return yt(e,"dirty","pristine","markAsDirty","markAsPristine")}const rs=Symbol("_eventHandler");function as(e){var t;return t=rs,class extends e{constructor(){super(...arguments),this[t]=()=>this.markAsDirty()}get dirty(){return this.classList.contains("-dirty")}get pristine(){return!this.dirty}connectedCallback(){this.markAsPristine(),super.connectedCallback(),this.addEventListener("change",this[rs])}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("change",this[rs])}markAsPristine(){this.classList.toggle("-dirty",!1)}markAsDirty(){this.classList.toggle("-dirty",!0)}}}function ns(e){return yt(e,"touched","untouched","markAsTouched","markAsUntouched")}const os=Symbol("_eventHandler");function ls(e){var t;return t=os,class extends e{constructor(){super(...arguments),this[t]=()=>this.markAsTouched()}get touched(){return this.classList.contains("-touched")}get untouched(){return!this.touched}connectedCallback(){this.markAsUntouched(),super.connectedCallback(),this.addEventListener("focusout",this[os],{capture:!0})}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("focusout",this[os],{capture:!0})}markAsTouched(){this.classList.toggle("-touched",!0)}markAsUntouched(){this.classList.toggle("-touched",!1)}}}const hs={primary:i("var(--md-sys-color-primary, #6750A4)"),onPrimary:i("var(--md-sys-color-on-primary, #FFFFFF)"),primaryContainer:i("var(--md-sys-color-primary-container, #EADDFF)"),onPrimaryContainer:i("var(--md-sys-color-on-primary-container, #4F378B)"),primaryFixed:i("var(--md-sys-color-primary-fixed, #EADDFF)"),primaryFixedDim:i("var(--md-sys-color-primary-fixed-dim, #D0BCFF)"),onPrimaryFixed:i("var(--md-sys-color-on-primary-fixed, #21005D)"),onPrimaryFixedVariant:i("var(--md-sys-color-on-primary-fixed-variant, #4F378B)"),secondary:i("var(--md-sys-color-secondary, #625B71)"),onSecondary:i("var(--md-sys-color-on-secondary, #FFFFFF)"),secondaryContainer:i("var(--md-sys-color-secondary-container, #E8DEF8)"),onSecondaryContainer:i("var(--md-sys-color-on-secondary-container, #4A4458)"),secondaryFixed:i("var(--md-sys-color-secondary-fixed, #E8DEF8)"),secondaryFixedDim:i("var(--md-sys-color-secondary-fixed-dim, #CCC2DC)"),onSecondaryFixed:i("var(--md-sys-color-on-secondary-fixed, #1D192B)"),onSecondaryFixedVariant:i("var(--md-sys-color-on-secondary-fixed-variant, #4A4458)"),tertiary:i("var(--md-sys-color-tertiary, #7D5260)"),onTertiary:i("var(--md-sys-color-on-tertiary, #FFFFFF)"),tertiaryContainer:i("var(--md-sys-color-tertiary-container, #FFD8E4)"),onTertiaryContainer:i("var(--md-sys-color-on-tertiary-container, #633B48)"),tertiaryFixed:i("var(--md-sys-color-tertiary-fixed, #FFD8E4)"),tertiaryFixedDim:i("var(--md-sys-color-tertiary-fixed-dim, #EFB8C8)"),onTertiaryFixed:i("var(--md-sys-color-on-tertiary-fixed, #31111D)"),onTertiaryFixedVariant:i("var(--md-sys-color-on-tertiary-fixed-variant, #633B48)"),error:i("var(--md-sys-color-error, #B3261E)"),onError:i("var(--md-sys-color-on-error, #FFFFFF)"),errorContainer:i("var(--md-sys-color-error-container, #F9DEDC)"),onErrorContainer:i("var(--md-sys-color-on-error-container, #8C1D18)"),surface:i("var(--md-sys-color-surface, #FEF7FF)"),onSurface:i("var(--md-sys-color-on-surface, #1D1B20)"),onSurfaceVariant:i("var(--md-sys-color-on-surface-variant, #49454F)"),surfaceContainerLowest:i("var(--md-sys-color-surface-container-lowest, #FFFFFF)"),surfaceContainerLow:i("var(--md-sys-color-surface-container-low, #F7F2FA)"),surfaceContainer:i("var(--md-sys-color-surface-container, #F3EDF7)"),surfaceContainerHigh:i("var(--md-sys-color-surface-container-high, #ECE6F0)"),surfaceContainerHighest:i("var(--md-sys-color-surface-container-highest, #E6E0E9)"),surfaceDim:i("var(--md-sys-color-surface-dim, #DED8E1)"),surfaceBright:i("var(--md-sys-color-surface-bright, #FEF7FF)"),surfaceVariant:i("var(--md-sys-color-surface-variant, #E7E0EC)"),inverseSurface:i("var(--md-sys-color-inverse-surface, #322F35)"),inverseOnSurface:i("var(--md-sys-color-inverse-on-surface, #F5EFF7)"),inversePrimary:i("var(--md-sys-color-inverse-primary, #D0BCFF)"),outline:i("var(--md-sys-color-outline, #79747E)"),outlineVariant:i("var(--md-sys-color-outline-variant, #CAC4D0)"),shadow:i("var(--md-sys-color-shadow, #000000)"),scrim:i("var(--md-sys-color-scrim, #000000)")},cs={scale:i("var(--md-sys-density-scale, 0)"),size:i("var(--md-sys-density-size, 0.25rem)")},ds={...cs,calc:e=>i(`calc(max(${e}, ${cs.scale}) * ${cs.size})`)},ps=`color-mix(in srgb, var(--m3e-elevation-color, ${hs.shadow}) 20%, transparent)`,us=["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"],ms=`color-mix(in srgb, var(--m3e-elevation-color, ${hs.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"],vs=`color-mix(in srgb, var(--m3e-elevation-color, ${hs.shadow}) 12%, transparent)`,ys=["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 gs(e){return`${ps} ${us[e]},${ms} ${fs[e]},${vs} ${ys[e]}`}const bs={level0:i(`var(--md-sys-elevation-level0, ${gs(0)})`),level1:i(`var(--md-sys-elevation-level1, ${gs(1)})`),level2:i(`var(--md-sys-elevation-level2, ${gs(3)})`),level3:i(`var(--md-sys-elevation-level3, ${gs(6)})`),level4:i(`var(--md-sys-elevation-level4, ${gs(8)})`),level5:i(`var(--md-sys-elevation-level5, ${gs(12)})`)},xs={emphasized:i("var(--md-sys-motion-easing-emphasized, cubic-bezier(0.2, 0.0, 0, 1.0))"),emphasizedDecelerate:i("var(--md-sys-motion-easing-emphasized-decelerate, cubic-bezier(0.05, 0.7, 0.1, 1.0))"),emphasizedAccelerate:i("var(--md-sys-motion-easing-emphasized-accelerate, cubic-bezier(0.3, 0.0, 0.8, 0.15))"),standard:i("var(--md-sys-motion-easing-standard, cubic-bezier(0.2, 0.0, 0, 1.0))"),standardDecelerate:i("var(--md-sys-motion-easing-standard-decelerate, cubic-bezier(0, 0, 0, 1))"),standardAccelerate:i("var(--md-sys-motion-easing-standard-accelerate, cubic-bezier(0.3, 0, 1, 1))")},ws={fastSpatial:i("var(--md-sys-motion-spring-fast-spatial, 350ms cubic-bezier(0.27, 1.06, 0.18, 1.00))"),defaultSpatial:i("var(--md-sys-motion-spring-default-spatial, 500ms cubic-bezier(0.27, 1.06, 0.18, 1.00))"),slowSpatial:i("var(--md-sys-motion-spring-slow-spatial, 750ms cubic-bezier(0.27, 1.06, 0.18, 1.00))"),fastEffects:i("var(--md-sys-motion-spring-fast-effects, 150ms cubic-bezier(0.31, 0.94, 0.34, 1.00))"),defaultEffects:i("var(--md-sys-motion-spring-default-effects, 200ms cubic-bezier(0.34, 0.80, 0.34, 1.00))"),slowEffects:i("var(--md-sys-motion-spring-slow-effects, 200ms cubic-bezier(0.34, 0.88, 0.34, 1.00))")},$s={easing:xs,duration:{short1:i("var(--md-sys-motion-duration-short-1, 50ms)"),short2:i("var(--md-sys-motion-duration-short-2, 100ms)"),short3:i("var(--md-sys-motion-duration-short-3, 150ms)"),short4:i("var(--md-sys-motion-duration-short-4, 200ms)"),medium1:i("var(--md-sys-motion-duration-medium-1, 250ms)"),medium2:i("var(--md-sys-motion-duration-medium-2, 300ms)"),medium3:i("var(--md-sys-motion-duration-medium-3, 350ms)"),medium4:i("var(--md-sys-motion-duration-medium-4, 400ms)"),long1:i("var(--md-sys-motion-duration-long-1, 450ms)"),long2:i("var(--md-sys-motion-duration-long-2, 500ms)"),long3:i("var(--md-sys-motion-duration-long-3, 550ms)"),long4:i("var(--md-sys-motion-duration-long-4, 600ms)"),extraLong1:i("var(--md-sys-motion-duration-extra-long-1, 700ms)"),extraLong2:i("var(--md-sys-motion-duration-extra-long-2, 800ms)"),extraLong3:i("var(--md-sys-motion-duration-extra-long-3, 900ms)"),extraLong4:i("var(--md-sys-motion-duration-extra-long-4, 1000ms)")},spring:ws},ks={width:i("var(--m3e-scrollbar-width, auto)"),thinWidth:i("var(--m3e-scrollbar-thin-width, thin)"),color:i("var(--m3e-scrollbar-thumb-color, #938f94) var(--m3e-scrollbar-track-color, transparent)")},Es={none:i("var(--md-sys-shape-corner-value-none, 0)"),extraSmall:i("var(--md-sys-shape-corner-value-extra-small, 0.25rem)"),small:i("var(--md-sys-shape-corner-value-small, 0.5rem)"),medium:i("var(--md-sys-shape-corner-value-medium, 0.75rem)"),large:i("var(--md-sys-shape-corner-value-large, 1rem)"),largeIncreased:i("var(--md-sys-shape-corner-value-large-increased, 1.25rem)"),extraLarge:i("var(--md-sys-shape-corner-value-extra-large, 1.75rem)"),extraLargeIncreased:i("var(--md-sys-shape-corner-value-extra-large-increased, 2rem)"),extraExtraLarge:i("var(--md-sys-shape-corner-value-extra-extra-large, 3rem)")},_s={color:hs,elevation:bs,motion:$s,shape:{corner:{full:i("var(--md-sys-shape-corner-full, 624.9375rem)"),extraLargeTop:i(`var(--md-sys-shape-corner-extra-large-top, ${Es.extraLarge} ${Es.extraLarge} ${Es.none} ${Es.none})`),extraLarge:i(`var(--md-sys-shape-corner-extra-large, ${Es.extraLarge})`),extraLargeEnd:i(`${Es.none} ${Es.extraLarge} ${Es.extraLarge} ${Es.none}`),extraLargeStart:i(`${Es.extraLarge} ${Es.none} ${Es.none} ${Es.extraLarge}`),largeTop:i(`var(--md-sys-shape-corner-large-top, ${Es.large} ${Es.large} ${Es.none} ${Es.none})`),largeEnd:i(`var(--md-sys-shape-corner-large-end, ${Es.none} ${Es.large} ${Es.large} ${Es.none})`),largeStart:i(`var(--md-sys-shape-corner-large-end, ${Es.large} ${Es.none} ${Es.none} ${Es.large})`),large:i(`var(--md-sys-shape-corner-large, ${Es.large})`),medium:i(`var(--md-sys-shape-corner-medium, ${Es.medium})`),mediumTop:i(`${Es.medium} ${Es.medium} ${Es.none} ${Es.none}`),mediumEnd:i(`${Es.none} ${Es.medium} ${Es.medium} ${Es.none}`),mediumStart:i(`${Es.medium} ${Es.none} ${Es.none} ${Es.medium}`),small:i(`var(--md-sys-shape-corner-small, ${Es.small})`),smallTop:i(`${Es.small} ${Es.small} ${Es.none} ${Es.none}`),smallEnd:i(`${Es.none} ${Es.small} ${Es.small} ${Es.none}`),smallStart:i(`${Es.small} ${Es.none} ${Es.none} ${Es.small}`),extraSmallTop:i(`var(--md-sys-shape-corner-extra-small-top, ${Es.extraSmall} ${Es.extraSmall} ${Es.none} ${Es.none})`),extraSmall:i(`var(--md-sys-shape-corner-extra-small, ${Es.extraSmall})`),extraSmallEnd:i(`${Es.none} ${Es.extraSmall} ${Es.extraSmall} ${Es.none}`),extraSmallStart:i(`${Es.extraSmall} ${Es.none} ${Es.none} ${Es.extraSmall}`),extraSmallBottom:i(`${Es.none} ${Es.none} ${Es.extraSmall} ${Es.extraSmall}`),none:i(`var(--md-sys-shape-corner-none, ${Es.none})`),largeIncreased:i(`var(--md-sys-shape-corner-large-increased, ${Es.largeIncreased})`),extraLargeIncreased:i(`var(--md-sys-shape-corner-extra-large-increased, ${Es.extraLargeIncreased})`),extraExtraLarge:i(`var(--md-sys-shape-corner-extra-extra-large, ${Es.extraExtraLarge})`),value:Es}},state:{focusStateLayerOpacity:i("var(--md-sys-state-focus-state-layer-opacity, 10%)"),hoverStateLayerOpacity:i("var(--md-sys-state-hover-state-layer-opacity, 8%)"),pressedStateLayerOpacity:i("var(--md-sys-state-pressed-state-layer-opacity, 10%)")},typescale:{standard:{display:{large:{fontSize:i("var(--md-sys-typescale-display-large-font-size, 3.5625rem)"),fontWeight:i("var(--md-sys-typescale-display-large-font-weight, 400)"),lineHeight:i("var(--md-sys-typescale-display-large-line-height, 4rem)"),tracking:i("var(--md-sys-typescale-display-large-tracking, 0.015625rem)")},medium:{fontSize:i("var(--md-sys-typescale-display-medium-font-size, 2.8125rem)"),fontWeight:i("var(--md-sys-typescale-display-medium-font-weight, 400)"),lineHeight:i("var(--md-sys-typescale-display-medium-line-height, 3.25rem)"),tracking:i("var(--md-sys-typescale-display-medium-tracking, 0)")},small:{fontSize:i("var(--md-sys-typescale-display-small-font-size, 2.25rem)"),fontWeight:i("var(--md-sys-typescale-display-small-font-weight, 400)"),lineHeight:i("var(--md-sys-typescale-display-small-line-height, 2.75rem)"),tracking:i("var(--md-sys-typescale-display-small-tracking, 0)")}},headline:{large:{fontSize:i("var(--md-sys-typescale-headline-large-font-size, 2rem)"),fontWeight:i("var(--md-sys-typescale-headline-large-font-weight, 400)"),lineHeight:i("var(--md-sys-typescale-headline-large-line-height, 2.5rem)"),tracking:i("var(--md-sys-typescale-headline-large-tracking, 0)")},medium:{fontSize:i("var(--md-sys-typescale-headline-medium-font-size, 1.75rem)"),fontWeight:i("var(--md-sys-typescale-headline-medium-font-weight, 400)"),lineHeight:i("var(--md-sys-typescale-headline-medium-line-height, 2.25rem)"),tracking:i("var(--md-sys-typescale-headline-medium-tracking, 0)")},small:{fontSize:i("var(--md-sys-typescale-headline-small-font-size, 1.5rem)"),fontWeight:i("var(--md-sys-typescale-headline-small-font-weight, 400)"),lineHeight:i("var(--md-sys-typescale-headline-small-line-height, 2rem)"),tracking:i("var(--md-sys-typescale-headline-small-tracking, 0)")}},title:{large:{fontSize:i("var(--md-sys-typescale-title-large-font-size, 1.375rem)"),fontWeight:i("var(--md-sys-typescale-title-large-font-weight, 400)"),lineHeight:i("var(--md-sys-typescale-title-large-line-height, 1.75rem)"),tracking:i("var(--md-sys-typescale-title-large-tracking, 0)")},medium:{fontSize:i("var(--md-sys-typescale-title-medium-font-size, 1rem)"),fontWeight:i("var(--md-sys-typescale-title-medium-font-weight, 500)"),lineHeight:i("var(--md-sys-typescale-title-medium-line-height, 1.5rem)"),tracking:i("var(--md-sys-typescale-title-medium-tracking, 0.009375rem)")},small:{fontSize:i("var(--md-sys-typescale-title-small-font-size, 0.875rem)"),fontWeight:i("var(--md-sys-typescale-title-small-font-weight, 500)"),lineHeight:i("var(--md-sys-typescale-title-small-line-height, 1.25rem)"),tracking:i("var(--md-sys-typescale-title-small-tracking, 0.00625rem)")}},body:{large:{fontSize:i("var(--md-sys-typescale-body-large-font-size, 1rem)"),fontWeight:i("var(--md-sys-typescale-body-large-font-weight, 400)"),lineHeight:i("var(--md-sys-typescale-body-large-line-height, 1.5rem)"),tracking:i("var(--md-sys-typescale-body-large-tracking, 0.03125rem)")},medium:{fontSize:i("var(--md-sys-typescale-body-medium-font-size, 0.875rem)"),fontWeight:i("var(--md-sys-typescale-body-medium-font-weight, 400)"),lineHeight:i("var(--md-sys-typescale-body-medium-line-height, 1.25rem)"),tracking:i("var(--md-sys-typescale-body-medium-tracking, 0.015625rem)")},small:{fontSize:i("var(--md-sys-typescale-body-small-font-size, 0.75rem)"),fontWeight:i("var(--md-sys-typescale-body-small-font-weight, 400)"),lineHeight:i("var(--md-sys-typescale-body-small-line-height, 1rem)"),tracking:i("var(--md-sys-typescale-body-small-tracking, 0.025rem)")}},label:{large:{fontSize:i("var(--md-sys-typescale-label-large-font-size, 0.875rem)"),fontWeight:i("var(--md-sys-typescale-label-large-font-weight, 500)"),lineHeight:i("var(--md-sys-typescale-label-large-line-height, 1.25rem)"),tracking:i("var(--md-sys-typescale-label-large-tracking, 0.00625rem)")},medium:{fontSize:i("var(--md-sys-typescale-label-medium-font-size, 0.75rem)"),fontWeight:i("var(--md-sys-typescale-label-medium-font-weight, 500)"),lineHeight:i("var(--md-sys-typescale-label-medium-line-height, 1rem)"),tracking:i("var(--md-sys-typescale-label-medium-tracking, 0.03125rem)")},small:{fontSize:i("var(--md-sys-typescale-label-small-font-size, 0.6875rem)"),fontWeight:i("var(--md-sys-typescale-label-small-font-weight, 500)"),lineHeight:i("var(--md-sys-typescale-label-small-line-height, 1rem)"),tracking:i("var(--md-sys-typescale-label-small-tracking, 0.03125rem)")}}},emphasized:{display:{large:{fontSize:i("var(--md-sys-typescale-emphasized-display-large-font-size, 3.5625rem)"),fontWeight:i("var(--md-sys-typescale-emphasized-display-large-font-weight, 500)"),lineHeight:i("var(--md-sys-typescale-emphasized-display-large-line-height, 4rem)"),tracking:i("var(--md-sys-typescale-emphasized-display-large-tracking, 0.015625rem)")},medium:{fontSize:i("var(--md-sys-typescale-emphasized-display-medium-font-size, 2.8125rem)"),fontWeight:i("var(--md-sys-typescale-emphasized-display-medium-font-weight, 500)"),lineHeight:i("var(--md-sys-typescale-emphasized-display-medium-line-height, 3.25rem)"),tracking:i("var(--md-sys-typescale-emphasized-display-medium-tracking, 0)")},small:{fontSize:i("var(--md-sys-typescale-emphasized-display-small-font-size, 2.25rem)"),fontWeight:i("var(--md-sys-typescale-emphasized-display-small-font-weight, 500)"),lineHeight:i("var(--md-sys-typescale-emphasized-display-small-line-height, 2.75rem)"),tracking:i("var(--md-sys-typescale-emphasized-display-small-tracking, 0)")}},headline:{large:{fontSize:i("var(--md-sys-typescale-emphasized-headline-large-font-size, 2rem)"),fontWeight:i("var(--md-sys-typescale-emphasized-headline-large-font-weight, 500)"),lineHeight:i("var(--md-sys-typescale-emphasized-headline-large-line-height, 2.5rem)"),tracking:i("var(--md-sys-typescale-emphasized-headline-large-tracking, 0)")},medium:{fontSize:i("var(--md-sys-typescale-emphasized-headline-medium-font-size, 1.75rem)"),fontWeight:i("var(--md-sys-typescale-emphasized-headline-medium-font-weight, 500)"),lineHeight:i("var(--md-sys-typescale-emphasized-headline-medium-line-height, 2.25rem)"),tracking:i("var(--md-sys-typescale-emphasized-headline-medium-tracking, 0)")},small:{fontSize:i("var(--md-sys-typescale-emphasized-headline-small-font-size, 1.5rem)"),fontWeight:i("var(--md-sys-typescale-emphasized-headline-small-font-weight, 500)"),lineHeight:i("var(--md-sys-typescale-emphasized-headline-small-line-height, 2rem)"),tracking:i("var(--md-sys-typescale-emphasized-headline-small-tracking, 0)")}},title:{large:{fontSize:i("var(--md-sys-typescale-emphasized-title-large-font-size, 1.375rem)"),fontWeight:i("var(--md-sys-typescale-emphasized-title-large-font-weight, 500)"),lineHeight:i("var(--md-sys-typescale-emphasized-title-large-line-height, 1.75rem)"),tracking:i("var(--md-sys-typescale-emphasized-title-large-tracking, 0)")},medium:{fontSize:i("var(--md-sys-typescale-emphasized-title-medium-font-size, 1rem)"),fontWeight:i("var(--md-sys-typescale-emphasized-title-medium-font-weight, 700)"),lineHeight:i("var(--md-sys-typescale-emphasized-title-medium-line-height, 3.5rem)"),tracking:i("var(--md-sys-typescale-emphasized-title-medium-tracking, 0.009375rem)")},small:{fontSize:i("var(--md-sys-typescale-emphasized-title-small-font-size, 0.875rem)"),fontWeight:i("var(--md-sys-typescale-emphasized-title-small-font-weight, 700)"),lineHeight:i("var(--md-sys-typescale-emphasized-title-small-line-height, 1.25rem)"),tracking:i("var(--md-sys-typescale-emphasized-title-small-tracking, 0.00625rem)")}},body:{large:{fontSize:i("var(--md-sys-typescale-emphasized-body-large-font-size, 1rem)"),fontWeight:i("var(--md-sys-typescale-emphasized-body-large-font-weight, 500)"),lineHeight:i("var(--md-sys-typescale-emphasized-body-large-line-height, 1.5rem)"),tracking:i("var(--md-sys-typescale-emphasized-body-large-tracking, 0.03125rem)")},medium:{fontSize:i("var(--md-sys-typescale-emphasized-body-medium-font-size, 0.875rem)"),fontWeight:i("var(--md-sys-typescale-emphasized-body-medium-font-weight, 500)"),lineHeight:i("var(--md-sys-typescale-emphasized-body-medium-line-height, 1.25rem)"),tracking:i("var(--md-sys-typescale-emphasized-body-medium-tracking, 0.015625rem)")},small:{fontSize:i("var(--md-sys-typescale-emphasized-body-small-font-size, 0.75rem)"),fontWeight:i("var(--md-sys-typescale-emphasized-body-small-font-weight, 500)"),lineHeight:i("var(--md-sys-typescale-emphasized-body-small-line-height, 1rem)"),tracking:i("var(--md-sys-typescale-emphasized-body-small-tracking, 0.025rem)")}},label:{large:{fontSize:i("var(--md-sys-typescale-emphasized-label-large-font-size, 0.875rem)"),fontWeight:i("var(--md-sys-typescale-emphasized-label-large-font-weight, 700)"),lineHeight:i("var(--md-sys-typescale-emphasized-label-large-line-height, 1.25rem)"),tracking:i("var(--md-sys-typescale-emphasized-label-large-tracking, 0.00625rem)")},medium:{fontSize:i("var(--md-sys-typescale-emphasized-label-medium-font-size, 0.75rem)"),fontWeight:i("var(--md-sys-typescale-emphasized-label-medium-font-weight, 700)"),lineHeight:i("var(--md-sys-typescale-emphasized-label-medium-line-height, 1rem)"),tracking:i("var(--md-sys-typescale-emphasized-label-medium-tracking, 0.03125rem)")},small:{fontSize:i("var(--md-sys-typescale-emphasized-label-small-font-size, 0.6875rem)"),fontWeight:i("var(--md-sys-typescale-emphasized-label-small-font-weight, 700)"),lineHeight:i("var(--md-sys-typescale-emphasized-label-small-line-height, 1rem)"),tracking:i("var(--md-sys-typescale-emphasized-label-small-tracking, 0.03125rem)")}}}},scrollbar:ks,density:ds};function Ss(e){return yt(e,"disabled")}function As(e,t=!0){class s extends e{constructor(){super(...arguments),this.disabled=!1}update(e){super.update(e),e.has("disabled")&&this.role&&"none"!==this.role&&"presentation"!==this.role&&(this.ariaDisabled=this.disabled?"true":null)}}return o([jt({type:Boolean,reflect:t})],s.prototype,"disabled",void 0),s}function Cs(e){return yt(e,"disabledInteractive")&&Ss(e)}const Ls=["click","dblclick","auxclick","keydown","keyup"],Ms=["Tab","ArrowLeft","ArrowUp","ArrowRight","ArrowDown","Left","Up","Right","Down"],zs=Symbol("_suppressedEventHandler");function Ws(e){var t;class s extends e{constructor(){super(...arguments),this[t]=e=>{if(this.disabledInteractive){if(e instanceof KeyboardEvent&&Ms.includes(e.key))return;e.stopImmediatePropagation(),e.preventDefault()}},this.disabledInteractive=!1}connectedCallback(){Ls.forEach(e=>this.addEventListener(e,this[zs],!0)),super.connectedCallback()}disconnectedCallback(){Ls.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,o([jt({attribute:"disabled-interactive",type:Boolean,reflect:!0})],s.prototype,"disabledInteractive",void 0),s}const Ps=Symbol("updateLabels");function Ts(e){return yt(e,"labels")&&bt(e)}const Hs=Symbol("_eventHandler");function Fs(e){var t;class s extends e{constructor(){super(...arguments),this[t]=e=>{e.defaultPrevented||this[Ps]()}}get labels(){return this[gt].labels}connectedCallback(){super.connectedCallback(),this.addEventListener("focusout",this[Hs]),this.addEventListener("change",this[Hs])}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("focusout",this[Hs]),this.removeEventListener("change",this[Hs])}update(e){super.update(e),this[Ps]()}[(t=Hs,Ps)](){const e=this.hasAttribute("tabindex"),t=Ss(this)&&this.disabled||Cs(this)&&this.disabledInteractive,s=ns(this)&&this.touched&&(this.ariaInvalid||this.classList.contains("-invalid"));for(const i of this.labels??[])i.style.userSelect=e?"none":"",i.style.cursor=!t&&e?"pointer":"",!t&&e?i.style.setProperty("-webkit-tap-highlight-color","rgba(0, 0, 0, 0)"):i.style.removeProperty("-webkit-tap-highlight-color"),i.style.color=t?`color-mix(in srgb, ${_s.color.onSurface} 38%, transparent)`:s?`${_s.color.error}`:""}}return s.formAssociated=!0,s}const Os=Symbol("formValue"),Ds=Symbol("defaultValue");function Us(e){return yt(e,"disabled","form","name")&&Ts(e)&&bt(e)}const Ns=Symbol("_defaultValue"),Is=Symbol("_defaultIndeterminate"),Rs=Symbol("_formDisabled");function Bs(e){var t,s;class i extends e{constructor(){super(...arguments),this[t]=!1,this[s]=!1}get form(){return this[gt].form}get labels(){return this[gt].labels}get[(t=Is,s=Rs,Os)](){return null}get[Ds](){return this[Ns]}get name(){return this.getAttribute("name")??""}set name(e){e?this.setAttribute("name",e):this.removeAttribute("name")}get disabled(){return super.disabled||this[Rs]}set disabled(e){super.disabled=e}connectedCallback(){super.connectedCallback(),Zt(this)?(this[Ns]=this.checked,Yt(this)&&(this[Is]=this.indeterminate)):"value"in this&&(this[Ns]=this.value)}requestUpdate(e,t,s){super.requestUpdate(e,t,s),this[gt].setFormValue(this[Os])}formDisabledCallback(e){const t=this.disabled;this[Rs]=e,this.disabled!=t&&this.requestUpdate("disabled",t)}formResetCallback(){Zt(this)?(this.checked=!0===this[Ns],Yt(this)&&(this.indeterminate=this[Is])):"value"in this&&(this.value=this[Ds]),is(this)&&this.markAsPristine(),ns(this)&&this.markAsUntouched()}}return i.formAssociated=!0,o([jt({noAccessor:!0})],i.prototype,"name",null),o([jt({type:Boolean})],i.prototype,"disabled",null),i}const qs=Symbol("validate");function Vs(e){return yt(e,"willValidate","validity","validationMessage","reportValidity","checkValidity","setCustomValidity")&&Us(e)}const js=Symbol("_updateValidity"),Xs=Symbol("_validityMessage");function Zs(t){var s,i;class r extends t{constructor(){super(...arguments),s.add(this)}get willValidate(){return this[gt].willValidate}get validity(){return this[js](),this[gt].validity}get validationMessage(){return this[js](),this[gt].validationMessage}[(s=new WeakSet,qs)](){return this[Xs]?{customError:!0}:void 0}reportValidity(){return ns(this)&&this.markAsTouched(),this[js](),this[gt].reportValidity()}checkValidity(){return this[js](),this[gt].checkValidity()}setCustomValidity(e){this[Xs]=e||void 0,this[js]()}requestUpdate(e,t,s){super.requestUpdate(e,t,s),this[js]()}firstUpdated(e){super.firstUpdated(e),this[js]()}[js](){if(e||!this.isConnected)return;const t=this[qs](),r=t&&Object.keys(t).some(e=>!0===t[e]);let a=t?.customError?this[Xs]:"";t&&!a&&(a=l(this,s,"m",i).call(this,t)),this[gt].setValidity(t,a),this.ariaInvalid=r?"true":null,this.classList.toggle("-invalid",!0===r),Ts(this)&&this[Ps]?.()}}return i=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},r}function Ks(e,...t){return class extends e{dispatchEvent(e){if(t.includes(e.type)){const t=this.getAttribute(`on${e.type}`);t&&new Function("e",`${t};`).call(this,e)}return super.dispatchEvent(e)}}}const Ys=Symbol("_tabindex");function Qs(e){var t;return t=Ys,class extends e{constructor(){super(...arguments),this[t]=0}connectedCallback(){this[Ys]=Number.parseInt(this.getAttribute("tabindex")??"0"),super.connectedCallback()}firstUpdated(e){super.firstUpdated(e),this.hasAttribute("tabindex")||e.has("disabled")||this.setAttribute("tabindex",`${this[Ys]}`)}update(e){if(super.update(e),e.has("disabled"))if(this.disabled||"none"===this.role){const e=this.getAttribute("tabindex");e&&(this[Ys]=Number.parseInt(e)),this.removeAttribute("tabindex")}else this.hasAttribute("tabindex")||this.setAttribute("tabindex",`${this[Ys]}`)}}}function Gs(e){return yt(e,"name","type","value")&&bt(e)}const Js=Symbol("_clickHandler");function ei(e){var t;class s extends e{constructor(){super(...arguments),this.type="button",this[t]=async e=>{if(e.defaultPrevented||Ss(this)&&this.disabled||Cs(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[Js])}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",this[Js])}}return t=Js,s.formAssociated=!0,o([jt()],s.prototype,"name",null),o([jt()],s.prototype,"value",null),o([jt()],s.prototype,"type",void 0),s}function ti(e){return yt(e,"htmlFor","control","attach","detach")}const si=Symbol("_control"),ii=Symbol("_firstUpdated");function ri(e){var t,s;class i extends e{constructor(){super(...arguments),this[t]=null,this[s]=!1,this.htmlFor=null}get control(){return this[si]}firstUpdated(e){super.firstUpdated(e),this[ii]=!0}update(e){if(super.update(e),e.has("htmlFor"))if(this.htmlFor){const e=this.getRootNode();e&&et(this.htmlFor,e).then(e=>{e!==this.control&&(this.control&&this.detach(),e instanceof HTMLElement&&this.attach(e))})}else this.control&&this[ii]&&this.detach()}attach(e){this[si]=e}detach(){this[si]=null}}return t=si,s=ii,o([jt({attribute:"for"})],i.prototype,"htmlFor",void 0),i}function ai(e,t=!0){var s,i,r,a,n,o,c;return i=new WeakMap,r=new WeakMap,a=new WeakMap,n=new WeakMap,s=new WeakSet,o=function(e){e.defaultPrevented||e.target!==e.currentTarget||Ss(this)&&this.disabled||Cs(this)&&this.disabledInteractive||(" "===e.key||t&&"Enter"===e.key)&&h(this,i,!0,"f")},c=function(e){e.defaultPrevented||e.target!==e.currentTarget||Ss(this)&&this.disabled||Cs(this)&&this.disabledInteractive||!l(this,i,"f")||this.dispatchEvent(new MouseEvent("click",{cancelable:!0,bubbles:!0,composed:!0}))},class extends e{constructor(){super(...arguments),s.add(this),i.set(this,!1),r.set(this,e=>l(this,s,"m",o).call(this,e)),a.set(this,e=>l(this,s,"m",c).call(this,e)),n.set(this,()=>h(this,i,!1,"f"))}connectedCallback(){super.connectedCallback(),this.addEventListener("keydown",l(this,r,"f")),this.addEventListener("keyup",l(this,a,"f")),this.addEventListener("focusout",l(this,n,"f"))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("keydown",l(this,r,"f")),this.removeEventListener("keyup",l(this,a,"f")),this.removeEventListener("focusout",l(this,n,"f"))}}}
45
45
  /**
46
46
  * @license
47
47
  * Copyright 2017 Google LLC
48
48
  * SPDX-License-Identifier: BSD-3-Clause
49
- */const ai=globalThis,ni=ai.trustedTypes,oi=ni?ni.createPolicy("lit-html",{createHTML:e=>e}):void 0,li="$lit$",hi=`lit$${Math.random().toFixed(9).slice(2)}$`,ci="?"+hi,di=`<${ci}>`,pi=document,ui=()=>pi.createComment(""),mi=e=>null===e||"object"!=typeof e&&"function"!=typeof e,fi=Array.isArray,vi="[ \t\n\f\r]",yi=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,gi=/-->/g,bi=/>/g,xi=RegExp(`>|${vi}(?:([^\\s"'>=/]+)(${vi}*=${vi}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),wi=/'/g,$i=/"/g,ki=/^(?:script|style|textarea|title)$/i,Ei=Symbol.for("lit-noChange"),_i=Symbol.for("lit-nothing"),Si=new WeakMap,Ai=pi.createTreeWalker(pi,129);function Ci(e,t){if(!fi(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==oi?oi.createHTML(t):t}const Li=(e,t)=>{const s=e.length-1,i=[];let r,a=2===t?"<svg>":3===t?"<math>":"",n=yi;for(let t=0;t<s;t++){const s=e[t];let o,l,h=-1,c=0;for(;c<s.length&&(n.lastIndex=c,l=n.exec(s),null!==l);)c=n.lastIndex,n===yi?"!--"===l[1]?n=gi:void 0!==l[1]?n=bi:void 0!==l[2]?(ki.test(l[2])&&(r=RegExp("</"+l[2],"g")),n=xi):void 0!==l[3]&&(n=xi):n===xi?">"===l[0]?(n=r??yi,h=-1):void 0===l[1]?h=-2:(h=n.lastIndex-l[2].length,o=l[1],n=void 0===l[3]?xi:'"'===l[3]?$i:wi):n===$i||n===wi?n=xi:n===gi||n===bi?n=yi:(n=xi,r=void 0);const d=n===xi&&e[t+1].startsWith("/>")?" ":"";a+=n===yi?s+di:h>=0?(i.push(o),s.slice(0,h)+li+s.slice(h)+hi+d):s+hi+(-2===h?t:d)}return[Ci(e,a+(e[s]||"<?>")+(2===t?"</svg>":3===t?"</math>":"")),i]};class Mi{constructor({strings:e,_$litType$:t},s){let i;this.parts=[];let r=0,a=0;const n=e.length-1,o=this.parts,[l,h]=Li(e,t);if(this.el=Mi.createElement(l,s),Ai.currentNode=this.el.content,2===t||3===t){const e=this.el.content.firstChild;e.replaceWith(...e.childNodes)}for(;null!==(i=Ai.nextNode())&&o.length<n;){if(1===i.nodeType){if(i.hasAttributes())for(const e of i.getAttributeNames())if(e.endsWith(li)){const t=h[a++],s=i.getAttribute(e).split(hi),n=/([.?@])?(.*)/.exec(t);o.push({type:1,index:r,name:n[2],strings:s,ctor:"."===n[1]?Hi:"?"===n[1]?Fi:"@"===n[1]?Oi:Ti}),i.removeAttribute(e)}else e.startsWith(hi)&&(o.push({type:6,index:r}),i.removeAttribute(e));if(ki.test(i.tagName)){const e=i.textContent.split(hi),t=e.length-1;if(t>0){i.textContent=ni?ni.emptyScript:"";for(let s=0;s<t;s++)i.append(e[s],ui()),Ai.nextNode(),o.push({type:2,index:++r});i.append(e[t],ui())}}}else if(8===i.nodeType)if(i.data===ci)o.push({type:2,index:r});else{let e=-1;for(;-1!==(e=i.data.indexOf(hi,e+1));)o.push({type:7,index:r}),e+=hi.length-1}r++}}static createElement(e,t){const s=pi.createElement("template");return s.innerHTML=e,s}}function zi(e,t,s=e,i){if(t===Ei)return t;let r=void 0!==i?s._$Co?.[i]:s._$Cl;const a=mi(t)?void 0:t._$litDirective$;return r?.constructor!==a&&(r?._$AO?.(!1),void 0===a?r=void 0:(r=new a(e),r._$AT(e,s,i)),void 0!==i?(s._$Co??=[])[i]=r:s._$Cl=r),void 0!==r&&(t=zi(e,r._$AS(e,t.values),r,i)),t}class Wi{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){const{el:{content:t},parts:s}=this._$AD,i=(e?.creationScope??pi).importNode(t,!0);Ai.currentNode=i;let r=Ai.nextNode(),a=0,n=0,o=s[0];for(;void 0!==o;){if(a===o.index){let t;2===o.type?t=new Pi(r,r.nextSibling,this,e):1===o.type?t=new o.ctor(r,o.name,o.strings,this,e):6===o.type&&(t=new Di(r,this,e)),this._$AV.push(t),o=s[++n]}a!==o?.index&&(r=Ai.nextNode(),a++)}return Ai.currentNode=pi,i}p(e){let t=0;for(const s of this._$AV)void 0!==s&&(void 0!==s.strings?(s._$AI(e,s,t),t+=s.strings.length-2):s._$AI(e[t])),t++}}class Pi{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,t,s,i){this.type=2,this._$AH=_i,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=s,this.options=i,this._$Cv=i?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode;const t=this._$AM;return void 0!==t&&11===e?.nodeType&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=zi(this,e,t),mi(e)?e===_i||null==e||""===e?(this._$AH!==_i&&this._$AR(),this._$AH=_i):e!==this._$AH&&e!==Ei&&this._(e):void 0!==e._$litType$?this.$(e):void 0!==e.nodeType?this.T(e):(e=>fi(e)||"function"==typeof e?.[Symbol.iterator])(e)?this.k(e):this._(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==_i&&mi(this._$AH)?this._$AA.nextSibling.data=e:this.T(pi.createTextNode(e)),this._$AH=e}$(e){const{values:t,_$litType$:s}=e,i="number"==typeof s?this._$AC(e):(void 0===s.el&&(s.el=Mi.createElement(Ci(s.h,s.h[0]),this.options)),s);if(this._$AH?._$AD===i)this._$AH.p(t);else{const e=new Wi(i,this),s=e.u(this.options);e.p(t),this.T(s),this._$AH=e}}_$AC(e){let t=Si.get(e.strings);return void 0===t&&Si.set(e.strings,t=new Mi(e)),t}k(e){fi(this._$AH)||(this._$AH=[],this._$AR());const t=this._$AH;let s,i=0;for(const r of e)i===t.length?t.push(s=new Pi(this.O(ui()),this.O(ui()),this,this.options)):s=t[i],s._$AI(r),i++;i<t.length&&(this._$AR(s&&s._$AB.nextSibling,i),t.length=i)}_$AR(e=this._$AA.nextSibling,t){for(this._$AP?.(!1,!0,t);e!==this._$AB;){const t=e.nextSibling;e.remove(),e=t}}setConnected(e){void 0===this._$AM&&(this._$Cv=e,this._$AP?.(e))}}class Ti{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,t,s,i,r){this.type=1,this._$AH=_i,this._$AN=void 0,this.element=e,this.name=t,this._$AM=i,this.options=r,s.length>2||""!==s[0]||""!==s[1]?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=_i}_$AI(e,t=this,s,i){const r=this.strings;let a=!1;if(void 0===r)e=zi(this,e,t,0),a=!mi(e)||e!==this._$AH&&e!==Ei,a&&(this._$AH=e);else{const i=e;let n,o;for(e=r[0],n=0;n<r.length-1;n++)o=zi(this,i[s+n],t,n),o===Ei&&(o=this._$AH[n]),a||=!mi(o)||o!==this._$AH[n],o===_i?e=_i:e!==_i&&(e+=(o??"")+r[n+1]),this._$AH[n]=o}a&&!i&&this.j(e)}j(e){e===_i?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}}class Hi extends Ti{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===_i?void 0:e}}class Fi extends Ti{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==_i)}}class Oi extends Ti{constructor(e,t,s,i,r){super(e,t,s,i,r),this.type=5}_$AI(e,t=this){if((e=zi(this,e,t,0)??_i)===Ei)return;const s=this._$AH,i=e===_i&&s!==_i||e.capture!==s.capture||e.once!==s.once||e.passive!==s.passive,r=e!==_i&&(s===_i||i);i&&this.element.removeEventListener(this.name,this,s),r&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}}class Di{constructor(e,t,s){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=s}get _$AU(){return this._$AM._$AU}_$AI(e){zi(this,e)}}const Ui=ai.litHtmlPolyfillSupport;Ui?.(Mi,Pi),(ai.litHtmlVersions??=[]).push("3.3.1");
49
+ */const ni=globalThis,oi=ni.trustedTypes,li=oi?oi.createPolicy("lit-html",{createHTML:e=>e}):void 0,hi="$lit$",ci=`lit$${Math.random().toFixed(9).slice(2)}$`,di="?"+ci,pi=`<${di}>`,ui=document,mi=()=>ui.createComment(""),fi=e=>null===e||"object"!=typeof e&&"function"!=typeof e,vi=Array.isArray,yi="[ \t\n\f\r]",gi=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,bi=/-->/g,xi=/>/g,wi=RegExp(`>|${yi}(?:([^\\s"'>=/]+)(${yi}*=${yi}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),$i=/'/g,ki=/"/g,Ei=/^(?:script|style|textarea|title)$/i,_i=Symbol.for("lit-noChange"),Si=Symbol.for("lit-nothing"),Ai=new WeakMap,Ci=ui.createTreeWalker(ui,129);function Li(e,t){if(!vi(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==li?li.createHTML(t):t}const Mi=(e,t)=>{const s=e.length-1,i=[];let r,a=2===t?"<svg>":3===t?"<math>":"",n=gi;for(let t=0;t<s;t++){const s=e[t];let o,l,h=-1,c=0;for(;c<s.length&&(n.lastIndex=c,l=n.exec(s),null!==l);)c=n.lastIndex,n===gi?"!--"===l[1]?n=bi:void 0!==l[1]?n=xi:void 0!==l[2]?(Ei.test(l[2])&&(r=RegExp("</"+l[2],"g")),n=wi):void 0!==l[3]&&(n=wi):n===wi?">"===l[0]?(n=r??gi,h=-1):void 0===l[1]?h=-2:(h=n.lastIndex-l[2].length,o=l[1],n=void 0===l[3]?wi:'"'===l[3]?ki:$i):n===ki||n===$i?n=wi:n===bi||n===xi?n=gi:(n=wi,r=void 0);const d=n===wi&&e[t+1].startsWith("/>")?" ":"";a+=n===gi?s+pi:h>=0?(i.push(o),s.slice(0,h)+hi+s.slice(h)+ci+d):s+ci+(-2===h?t:d)}return[Li(e,a+(e[s]||"<?>")+(2===t?"</svg>":3===t?"</math>":"")),i]};class zi{constructor({strings:e,_$litType$:t},s){let i;this.parts=[];let r=0,a=0;const n=e.length-1,o=this.parts,[l,h]=Mi(e,t);if(this.el=zi.createElement(l,s),Ci.currentNode=this.el.content,2===t||3===t){const e=this.el.content.firstChild;e.replaceWith(...e.childNodes)}for(;null!==(i=Ci.nextNode())&&o.length<n;){if(1===i.nodeType){if(i.hasAttributes())for(const e of i.getAttributeNames())if(e.endsWith(hi)){const t=h[a++],s=i.getAttribute(e).split(ci),n=/([.?@])?(.*)/.exec(t);o.push({type:1,index:r,name:n[2],strings:s,ctor:"."===n[1]?Fi:"?"===n[1]?Oi:"@"===n[1]?Di:Hi}),i.removeAttribute(e)}else e.startsWith(ci)&&(o.push({type:6,index:r}),i.removeAttribute(e));if(Ei.test(i.tagName)){const e=i.textContent.split(ci),t=e.length-1;if(t>0){i.textContent=oi?oi.emptyScript:"";for(let s=0;s<t;s++)i.append(e[s],mi()),Ci.nextNode(),o.push({type:2,index:++r});i.append(e[t],mi())}}}else if(8===i.nodeType)if(i.data===di)o.push({type:2,index:r});else{let e=-1;for(;-1!==(e=i.data.indexOf(ci,e+1));)o.push({type:7,index:r}),e+=ci.length-1}r++}}static createElement(e,t){const s=ui.createElement("template");return s.innerHTML=e,s}}function Wi(e,t,s=e,i){if(t===_i)return t;let r=void 0!==i?s._$Co?.[i]:s._$Cl;const a=fi(t)?void 0:t._$litDirective$;return r?.constructor!==a&&(r?._$AO?.(!1),void 0===a?r=void 0:(r=new a(e),r._$AT(e,s,i)),void 0!==i?(s._$Co??=[])[i]=r:s._$Cl=r),void 0!==r&&(t=Wi(e,r._$AS(e,t.values),r,i)),t}class Pi{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){const{el:{content:t},parts:s}=this._$AD,i=(e?.creationScope??ui).importNode(t,!0);Ci.currentNode=i;let r=Ci.nextNode(),a=0,n=0,o=s[0];for(;void 0!==o;){if(a===o.index){let t;2===o.type?t=new Ti(r,r.nextSibling,this,e):1===o.type?t=new o.ctor(r,o.name,o.strings,this,e):6===o.type&&(t=new Ui(r,this,e)),this._$AV.push(t),o=s[++n]}a!==o?.index&&(r=Ci.nextNode(),a++)}return Ci.currentNode=ui,i}p(e){let t=0;for(const s of this._$AV)void 0!==s&&(void 0!==s.strings?(s._$AI(e,s,t),t+=s.strings.length-2):s._$AI(e[t])),t++}}class Ti{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,t,s,i){this.type=2,this._$AH=Si,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=s,this.options=i,this._$Cv=i?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode;const t=this._$AM;return void 0!==t&&11===e?.nodeType&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=Wi(this,e,t),fi(e)?e===Si||null==e||""===e?(this._$AH!==Si&&this._$AR(),this._$AH=Si):e!==this._$AH&&e!==_i&&this._(e):void 0!==e._$litType$?this.$(e):void 0!==e.nodeType?this.T(e):(e=>vi(e)||"function"==typeof e?.[Symbol.iterator])(e)?this.k(e):this._(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==Si&&fi(this._$AH)?this._$AA.nextSibling.data=e:this.T(ui.createTextNode(e)),this._$AH=e}$(e){const{values:t,_$litType$:s}=e,i="number"==typeof s?this._$AC(e):(void 0===s.el&&(s.el=zi.createElement(Li(s.h,s.h[0]),this.options)),s);if(this._$AH?._$AD===i)this._$AH.p(t);else{const e=new Pi(i,this),s=e.u(this.options);e.p(t),this.T(s),this._$AH=e}}_$AC(e){let t=Ai.get(e.strings);return void 0===t&&Ai.set(e.strings,t=new zi(e)),t}k(e){vi(this._$AH)||(this._$AH=[],this._$AR());const t=this._$AH;let s,i=0;for(const r of e)i===t.length?t.push(s=new Ti(this.O(mi()),this.O(mi()),this,this.options)):s=t[i],s._$AI(r),i++;i<t.length&&(this._$AR(s&&s._$AB.nextSibling,i),t.length=i)}_$AR(e=this._$AA.nextSibling,t){for(this._$AP?.(!1,!0,t);e!==this._$AB;){const t=e.nextSibling;e.remove(),e=t}}setConnected(e){void 0===this._$AM&&(this._$Cv=e,this._$AP?.(e))}}class Hi{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,t,s,i,r){this.type=1,this._$AH=Si,this._$AN=void 0,this.element=e,this.name=t,this._$AM=i,this.options=r,s.length>2||""!==s[0]||""!==s[1]?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=Si}_$AI(e,t=this,s,i){const r=this.strings;let a=!1;if(void 0===r)e=Wi(this,e,t,0),a=!fi(e)||e!==this._$AH&&e!==_i,a&&(this._$AH=e);else{const i=e;let n,o;for(e=r[0],n=0;n<r.length-1;n++)o=Wi(this,i[s+n],t,n),o===_i&&(o=this._$AH[n]),a||=!fi(o)||o!==this._$AH[n],o===Si?e=Si:e!==Si&&(e+=(o??"")+r[n+1]),this._$AH[n]=o}a&&!i&&this.j(e)}j(e){e===Si?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}}class Fi extends Hi{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===Si?void 0:e}}class Oi extends Hi{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==Si)}}class Di extends Hi{constructor(e,t,s,i,r){super(e,t,s,i,r),this.type=5}_$AI(e,t=this){if((e=Wi(this,e,t,0)??Si)===_i)return;const s=this._$AH,i=e===Si&&s!==Si||e.capture!==s.capture||e.once!==s.once||e.passive!==s.passive,r=e!==Si&&(s===Si||i);i&&this.element.removeEventListener(this.name,this,s),r&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}}class Ui{constructor(e,t,s){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=s}get _$AU(){return this._$AM._$AU}_$AI(e){Wi(this,e)}}const Ni=ni.litHtmlPolyfillSupport;Ni?.(zi,Ti),(ni.litHtmlVersions??=[]).push("3.3.1");
50
50
  /**
51
51
  * @license
52
52
  * Copyright 2018 Google LLC
53
53
  * SPDX-License-Identifier: BSD-3-Clause
54
54
  */
55
- const Ni=e=>e??_i,Ii=Symbol("renderPseudoLink");function Ri(e){return vt(e,"download","href","rel","target")}const Bi=Symbol("_clickHandler");function qi(e){var s,i,a,n,h;class c extends e{constructor(){super(...arguments),s.add(this),this[h]=async e=>{if(As(this)&&this.disabledInteractive&&(e.preventDefault(),e.stopPropagation()),await new Promise(e=>e()),!e.defaultPrevented&&this.href){e.preventDefault(),e.stopImmediatePropagation();const t=document.createElement("a");t.href=this.href,t.rel=this.rel,t.target=this.target,null!=this.download&&(t.download=this.download),t.addEventListener("click",async()=>{await new Promise(e=>e()),t.remove()}),document.body.appendChild(t),t.click()}},this.href="",this.target="",this.rel=""}get download(){return this.getAttribute("download")}set download(e){const t=this.download;t!==e&&(e?this.setAttribute("download",e):this.removeAttribute("download"),this.requestUpdate("download",t))}connectedCallback(){super.connectedCallback(),this.addEventListener("click",this[Bi]),this.hasAttribute("href")&&"button"===this.role&&(this.role="link")}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",this[Bi])}[(s=new WeakSet,h=Bi,Ii)](){const e=_s(this)&&this.disabled,o=As(this)&&this.disabledInteractive;return e||o||!this.href?t:r`<a href="${this.href}" target="${Ni(this.target||void 0)}" rel="${Ni(this.rel||void 0)}" download="${Ni(this.download||void 0)}" tabindex="-1" aria-hidden="true" @pointerdown="${l(this,s,"m",i)}" @focus="${l(this,s,"m",a)}" @blur="${l(this,s,"m",n)}"></a>`}}return i=function(e){2!==e.button?(e.preventDefault(),e.stopImmediatePropagation(),this.dispatchEvent(new MouseEvent("click",{bubbles:!0,cancelable:!0,view:window}))):e.target.removeAttribute("aria-hidden")},a=function(e){e.target.blur(),this.focus()},n=function(e){e.target.setAttribute("aria-hidden","true")},o([Vt()],c.prototype,"href",void 0),o([Vt()],c.prototype,"target",void 0),o([Vt()],c.prototype,"rel",void 0),o([Vt({reflect:!1})],c.prototype,"download",null),c}function Vi(e){return vt(e,"readOnly")}function ji(e,t=!0){class s extends e{constructor(){super(...arguments),this.readOnly=!1}update(e){super.update(e),e.has("readOnly")&&(this.ariaReadOnly=this.readOnly?"true":null)}}return o([Vt({attribute:"readonly",type:Boolean,reflect:t})],s.prototype,"readOnly",void 0),s}function Xi(e){return vt(e,"required","optional")}function Zi(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 o([Vt({type:Boolean,reflect:!0})],t.prototype,"required",void 0),t}function Ki(e){return Xi(e)&&qs(e)}function Yi(e){return class extends e{[Bs](){const e=super[Bs]();if(!e&&this.required){if(Xt(this)&&!this.checked)return{valueMissing:!0};if(!this.value)return{valueMissing:!0}}return e}}}function Qi(e,t){return class extends e{connectedCallback(){this.role=this.role||t,super.connectedCallback()}}}function Gi(e){return vt(e,"vertical")}function Ji(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 o([Vt({type:Boolean,reflect:!0})],t.prototype,"vertical",void 0),t}var er,tr,sr,ir,rr,ar,nr,or;class lr extends n{constructor(){super(...arguments),er.set(this,e=>{e.defaultPrevented||this._onClick(e)})}connectedCallback(){super.connectedCallback(),this.parentElement?.addEventListener("click",l(this,er,"f"))}disconnectedCallback(){super.disconnectedCallback(),this.parentElement?.removeEventListener("click",l(this,er,"f"))}render(){return r`<slot></slot>`}}er=new WeakMap,lr.styles=a`:host { display: contents; } ::slotted(.material-icons) { font-size: inherit !important; }`;let hr=class extends(Zs(n,"opening","opened","closing","closed")){constructor(){super(...arguments),tr.add(this),sr.set(this,!1),ir.set(this,!1),this.open=!1}update(e){if(super.update(e),this.classList.toggle("-no-animate",!0),!l(this,sr,"f"))return this.open&&(h(this,ir,!0,"f"),l(this,tr,"m",ar).call(this)),void h(this,sr,!0,"f");this.toggleAttribute("inert",!this.open),this.open?(h(this,ir,!0,"f"),Ge()||(l(this,tr,"m",ar).call(this),this.classList.toggle("-overflows",this.clientHeight<this.scrollHeight),l(this,tr,"m",nr).call(this)),this.classList.toggle("-closing",!1),this.classList.toggle("-opening",!0),this.dispatchEvent(new Event("opening")),l(this,tr,"m",nr).call(this),this.classList.toggle("-no-animate",!1),l(this,tr,"m",or).call(this),Ge()?(l(this,tr,"m",ar).call(this),this.classList.toggle("-opening",!1),this.dispatchEvent(new Event("opened"))):this.addEventListener("transitionend",()=>{this.open&&(l(this,tr,"m",ar).call(this),this.classList.toggle("-opening",!1),this.dispatchEvent(new Event("opened")))},{once:!0})):(this.classList.toggle("-opening",!1),this.classList.toggle("-closing",!0),this.dispatchEvent(new Event("closing")),l(this,tr,"m",or).call(this),l(this,ir,"f")&&this.classList.toggle("-no-animate",!1),Ge()?(l(this,tr,"m",nr).call(this),this.classList.toggle("-closing",!1),this.dispatchEvent(new Event("closed"))):requestAnimationFrame(()=>{l(this,tr,"m",nr).call(this),this.addEventListener("transitionend",()=>{this.open||(this.classList.toggle("-closing",!1),this.dispatchEvent(new Event("closed")))},{once:!0})}))}render(){return r`<slot @slotchange="${l(this,tr,"m",rr)}"></slot>`}};sr=new WeakMap,ir=new WeakMap,tr=new WeakSet,rr=function(){h(this,sr,!0,"f")},ar=function(){this.style.height="auto"},nr=function(){this.style.height=""},or=function(){this.style.height=`${this.scrollHeight}px`},hr.styles=a`:host { display: block; height: 0px; overflow: hidden; transition: ${i(`visibility var(--m3e-collapsible-animation-duration, ${Es.motion.duration.medium1})\n ${Es.motion.easing.standard},\n height var(--m3e-collapsible-animation-duration, ${Es.motion.duration.medium1})\n ${Es.motion.easing.standard},\n padding-top var(--m3e-collapsible-animation-duration, ${Es.motion.duration.medium1})\n ${Es.motion.easing.standard},\n padding-bottom var(--m3e-collapsible-animation-duration, ${Es.motion.duration.medium1})\n ${Es.motion.easing.standard}`)}; } :host(:not(.-closing):not([open])) { visibility: hidden; } :host(:not([open])) { min-height: unset !important; padding-top: 0px !important; padding-bottom: 0px !important; } :host(.-no-animate) { transition-duration: 0ms; } :host(.-opening), :host(.-closing) { overflow-y: hidden !important; } :host(.-overflows) { scrollbar-gutter: stable; } ::slotted(*) { --m3e-collapsible-animation-duration: initial; } @media (prefers-reduced-motion) { :host { transition: none; } }`,o([Vt({type:Boolean,reflect:!0})],hr.prototype,"open",void 0),hr=o([wt("m3e-collapsible")],hr);const cr=i(`var(--m3e-elevation-lift-duration, ${Es.motion.duration.short4})`),dr=i(`var(--m3e-elevation-lift-easing, ${Es.motion.easing.standard})`),pr=i(`var(--m3e-elevation-settle-duration, ${Es.motion.duration.short3})`),ur=i(`var(--m3e-elevation-settle-easing, ${Es.motion.easing.standardAccelerate})`),mr=i(`var(--m3e-elevation-level, ${Es.elevation.level0})`),fr=i(`var(--m3e-elevation-hover-level, ${Es.elevation.level0})`),vr=i(`var(--m3e-elevation-focus-level, ${Es.elevation.level0})`),yr=i(`var(--m3e-elevation-pressed-level, ${Es.elevation.level0})`);var gr,br,xr,wr,$r,kr,Er;let _r=class extends(ii(Qi(n,"none"))){constructor(){super(...arguments),gr.add(this),br.set(this,new it(this,{target:null,callback:e=>l(this,gr,"m",$r).call(this,e)})),xr.set(this,new st(this,{target:null,callback:e=>l(this,gr,"m",kr).call(this,e)})),wr.set(this,new ot(this,{target:null,callback:e=>l(this,gr,"m",Er).call(this,e)})),this.disabled=!1,this.level=null}attach(e){super.attach(e),l(this,br,"f").observe(e),l(this,xr,"f").observe(e),l(this,wr,"f").observe(e)}detach(){this.control&&(l(this,br,"f").unobserve(this.control),l(this,xr,"f").unobserve(this.control),l(this,wr,"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 r`<div class="shadow"></div>`}};br=new WeakMap,xr=new WeakMap,wr=new WeakMap,gr=new WeakSet,$r=function(e){this.disabled||(this._shadow?.classList.toggle("hover",e),this._shadow?.classList.toggle("resting",!e))},kr=function(e){this.disabled||this._shadow?.classList.toggle("focus",e)},Er=function(e){this.disabled||this._shadow?.classList.toggle("pressed",e)},_r.styles=a`:host { display: block; } :host, .shadow { position: absolute; left: 0; top: 0; right: 0; bottom: 0; pointer-events: none; border-radius: inherit; } .shadow.resting, .shadow.focus, .shadow.pressed { will-change: box-shadow; transition: ${i(`box-shadow ${pr} ${ur};`)}; } .shadow.hover { will-change: box-shadow; transition: ${i(`box-shadow ${cr} ${dr};`)}; } .shadow { box-shadow: ${mr}; } .shadow.focus { box-shadow: ${vr}; } .shadow.hover { box-shadow: ${fr}; } .shadow.pressed { box-shadow: ${yr}; } :host([level="0"]) .shadow { --m3e-elevation-level: ${Es.elevation.level0}; --m3e-elevation-hover-level: ${Es.elevation.level1}; } :host([level="1"]) .shadow { --m3e-elevation-level: ${Es.elevation.level1}; --m3e-elevation-hover-level: ${Es.elevation.level2}; } :host([level="2"]) .shadow { --m3e-elevation-level: ${Es.elevation.level2}; --m3e-elevation-hover-level: ${Es.elevation.level3}; } :host([level="3"]) .shadow { --m3e-elevation-level: ${Es.elevation.level3}; --m3e-elevation-hover-level: ${Es.elevation.level4}; } :host([level="4"]) .shadow { --m3e-elevation-level: ${Es.elevation.level4}; --m3e-elevation-hover-level: ${Es.elevation.level5}; } :host([level="5"]) .shadow { --m3e-elevation-level: ${Es.elevation.level5}; --m3e-elevation-hover-level: ${mr}; } :host([level]) .shadow { --m3e-elevation-focus-level: ${mr}; --m3e-elevation-pressed-level: ${mr}; } @media (prefers-reduced-motion) { .shadow.resting, .shadow.pressed, .shadow.focus, .shadow.hover { transition: none; } } @media (forced-colors: active) { .shadow { display: none; } }`,o([jt(".shadow")],_r.prototype,"_shadow",void 0),o([Vt({type:Boolean,reflect:!0})],_r.prototype,"disabled",void 0),o([Vt({type:Number,reflect:!0})],_r.prototype,"level",void 0),_r=o([wt("m3e-elevation")],_r);const Sr=i(`var(--m3e-focus-ring-color, ${Es.color.secondary})`),Ar=i(`var(--m3e-focus-ring-duration, ${Es.motion.duration.long2})`),Cr=i("var(--m3e-focus-ring-thickness, 0.1875rem)"),Lr=i("var(--m3e-focus-ring-visibility, visible)"),Mr=i("var(--m3e-focus-ring-growth-factor, 2)");var zr,Wr,Pr;let Tr=class extends(ii(Qi(n,"none"))){constructor(){super(...arguments),zr.add(this),Wr.set(this,new st(this,{target:null,callback:(e,t)=>l(this,zr,"m",Pr).call(this,t)})),this.inward=!1,this.disabled=!1}show(){this._outline?.classList.toggle("visible",!0)}hide(){this._outline?.classList.toggle("visible",!1)}attach(e){super.attach(e),l(this,Wr,"f").observe(e)}detach(){this.control&&l(this,Wr,"f").unobserve(this.control),super.detach()}connectedCallback(){this.ariaHidden="true",super.connectedCallback()}disconnectedCallback(){super.disconnectedCallback(),this.hide()}render(){return r`<div class="outline"></div>`}updated(e){super.updated(e),e.has("disabled")&&this.disabled&&this.hide()}};Wr=new WeakMap,zr=new WeakSet,Pr=function(e){this.disabled||(e?this.show():this.hide())},Tr.styles=a`: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: ${Sr}; outline-width: ${Cr}; visibility: ${Lr}; } .outline.visible { outline-style: solid; } :host(:not([inward])) .outline { outline-offset: calc(${Cr} / ${Mr}); } :host([inward]) .outline { outline-offset: calc(0px - ${Cr}); } :host(:not([inward])) .outline.visible { animation: grow-shrink ${Ar}; } :host([inward]) .outline.visible { animation: shrink-grow ${Ar}; } @keyframes grow-shrink { 50% { outline-width: calc(${Cr} * ${Mr}); } } @keyframes shrink-grow { 50% { outline-offset: calc(0px - calc(${Cr} * ${Mr})); outline-width: calc(${Cr} * ${Mr}); } } @media (prefers-reduced-motion) { :host(:not([inward])) .outline.visible, :host([inward]) .outline.visible { animation: none; } } @media (forced-colors: active) { .outline { outline-color: Highlight; } }`,o([jt(".outline")],Tr.prototype,"_outline",void 0),o([Vt({type:Boolean,reflect:!0})],Tr.prototype,"inward",void 0),o([Vt({type:Boolean,reflect:!0})],Tr.prototype,"disabled",void 0),Tr=o([wt("m3e-focus-ring")],Tr);let Hr=class extends(Yt(Ss(Qi(n,"none")))){connectedCallback(){super.connectedCallback(),this.ariaHidden="true"}render(){return this.indeterminate?r`<svg viewBox="0 -960 960 960" fill="currentColor"><path Required d="M240-440v-80h480v80H240Z"/></svg>`:this.checked?r`<svg viewBox="0 -960 960 960" fill="currentColor"><path d="M382-240 154-468l57-57 171 171 367-367 57 57-424 424Z"/></svg>`:t}};Hr.styles=a`:host { display: inline-block; vertical-align: middle; width: var(--m3e-checkbox-icon-size, 1.125rem); height: var(--m3e-checkbox-icon-size, 1.125rem); border-radius: var(--m3e-checkbox-container-shape, 0.125rem); box-sizing: border-box; flex: none; } :host(:not([checked]):not([indeterminate])) { border-width: var(--m3e-checkbox-unselected-outline-thickness, 0.125rem); border-style: solid; } :host(:not([disabled])[checked]), :host(:not([disabled])[indeterminate]) { background-color: var(--m3e-checkbox-selected-container-color, ${Es.color.primary}); color: var(--m3e-checkbox-selected-icon-color, ${Es.color.onPrimary}); } :host(:not([disabled]):not([checked]):not([indeterminate])) { border-color: var(--m3e-checkbox-unselected-outline-color, ${Es.color.onSurfaceVariant}); } :host([disabled]:not([checked]):not([indeterminate])) { border-color: color-mix( in srgb, var(--m3e-checkbox-unselected-disabled-outline-color, ${Es.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, ${Es.color.onSurface}) var(--m3e-checkbox-selected-disabled-container-opacity, 38%), transparent ); color: color-mix( in srgb, var(--m3e-checkbox-selected-disabled-icon-color, ${Es.color.surface}) var(--m3e-checkbox-selected-disabled-icon-opacity, 100%), transparent ); }`,Hr=o([wt("m3e-pseudo-checkbox")],Hr);let Fr=class extends(Zt(Ss(Qi(n,"none")))){connectedCallback(){super.connectedCallback(),this.ariaHidden="true"}render(){return r`<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>`}};Fr.styles=a`:host { display: inline-block; vertical-align: middle; box-sizing: border-box; width: var(--m3e-radio-icon-size, 1.25rem); height: var(--m3e-radio-icon-size, 1.25rem); flex: none; } .circle { fill: currentColor; } :host(:not([checked])) .circle.inner { opacity: 0; } :host(:not([checked])) { color: var(--m3e-radio-unselected-icon-color, ${Es.color.onSurfaceVariant}); } :host([checked]) { color: var(--m3e-radio-selected-icon-color, ${Es.color.primary}); } :host([disabled]) { color: color-mix(in srgb, var(--m3e-radio-disabled-icon-color, ${Es.color.onSurface}) 38%, transparent); }`,Fr=o([wt("m3e-pseudo-radio")],Fr);const Or=i(`var(--m3e-ripple-color, ${Es.color.onSurface})`),Dr=i(`var(--m3e-ripple-opacity, ${Es.state.pressedStateLayerOpacity})`),Ur=i(`var(--m3e-ripple-enter-duration, ${Es.motion.duration.long4})`),Nr=i(`var(--m3e-ripple-exit-duration, ${Es.motion.duration.short2})`),Ir=i("var(--m3e-ripple-scale-factor, 2.5)");var Rr,Br,qr,Vr,jr,Xr;let Zr=class extends(ii(Qi(n,"none"))){constructor(){super(...arguments),Rr.add(this),Br.set(this,null),qr.set(this,new ot(this,{target:null,minPressedDuration:150,isPressedKey:e=>" "===e,callback:(e,{x:t,y:s})=>l(this,Rr,"m",Xr).call(this,e,t,s)})),this.disabled=!1,this.centered=!1,this.unbounded=!1,this.radius=null}get visible(){return null!==l(this,Br,"f")}show(e,t,s=!1){l(this,Rr,"m",Vr).call(this);const i=this.getBoundingClientRect();this.centered&&(e=i.left+i.width/2,t=i.top+i.height/2);let r=this.radius;if(!r||isNaN(r)){const s=Math.max(Math.abs(e-i.left),Math.abs(e-i.right)),a=Math.max(Math.abs(t-i.top),Math.abs(t-i.bottom));r=Math.sqrt(s*s+a*a)}const a=e-i.left,n=t-i.top;h(this,Br,document.createElement("div"),"f"),l(this,Br,"f").classList.add("ripple"),s&&l(this,Br,"f").classList.add("persistent"),l(this,Br,"f").style.left=a-r+"px",l(this,Br,"f").style.top=n-r+"px",l(this,Br,"f").style.width=2*r+"px",l(this,Br,"f").style.height=2*r+"px",l(this,Br,"f").addEventListener("animationend",()=>l(this,Rr,"m",jr).call(this,s),{once:!0}),l(this,Br,"f").addEventListener("transitionend",()=>l(this,Rr,"m",Vr).call(this),{once:!0}),this.shadowRoot?.appendChild(l(this,Br,"f"))}hide(){l(this,Br,"f")?.classList.add("exit")}attach(e){super.attach(e),l(this,qr,"f").observe(e)}detach(){this.control&&l(this,qr,"f").unobserve(this.control),super.detach()}connectedCallback(){this.ariaHidden="true",super.connectedCallback()}disconnectedCallback(){super.disconnectedCallback(),l(this,Rr,"m",Vr).call(this)}updated(e){super.updated(e),e.has("disabled")&&this.disabled&&this.hide()}};var Kr;Br=new WeakMap,qr=new WeakMap,Rr=new WeakSet,Vr=function(){l(this,Br,"f")?.remove(),h(this,Br,null,"f")},jr=function(e){e?l(this,Br,"f")?.classList.add("pressed"):this.hide()},Xr=function(e,t,s){this.disabled||(e?this.show(t,s,!0):this.hide())},Zr.styles=a`:host { display: block; position: absolute; left: 0; top: 0; right: 0; bottom: 0; pointer-events: none; border-radius: inherit; } :host(:not([unbounded])) { overflow: hidden; } .ripple { display: block; position: absolute; left: 0; top: 0; right: 0; bottom: 0; pointer-events: none; transform: scale(0); border-radius: ${Es.shape.corner.full}; background-color: color-mix(in srgb, ${Or} ${Dr}, transparent); will-change: background-color, opacity; animation: ripple ${Ur} linear; } .ripple.persistent.pressed { transform: scale(${Ir}); } .ripple.exit { transition: opacity ${Nr} cubic-bezier(0, 0, 0.2, 0.1); opacity: 0; } @keyframes ripple { to { transform: scale(${Ir}); } } @media (prefers-reduced-motion) { .ripple { transform: scale(${Ir}); animation-duration: 90ms; } .ripple.exit { transition-duration: 10ms; } } @media (forced-colors: active) { .ripple { display: none; } }`,o([Vt({type:Boolean,reflect:!0})],Zr.prototype,"disabled",void 0),o([Vt({type:Boolean,reflect:!0})],Zr.prototype,"centered",void 0),o([Vt({type:Boolean,reflect:!0})],Zr.prototype,"unbounded",void 0),o([Vt({type:Number})],Zr.prototype,"radius",void 0),Zr=o([wt("m3e-ripple")],Zr);let Yr=class extends n{constructor(){super(...arguments),Kr.set(this,()=>this._updateScroll()),this.dividers="above-below",this.thin=!1}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("scroll",l(this,Kr,"f"))}update(e){super.update(e),e.has("dividers")&&(this.removeEventListener("scroll",l(this,Kr,"f")),"none"!==this.dividers&&this.addEventListener("scroll",l(this,Kr,"f"),{passive:!0}))}render(){return r`<slot @slotchange="${this._updateScroll}"></slot>`}_updateScroll(){const e=("above"===this.dividers||"above-below"===this.dividers)&&this.scrollTop>0,t=("below"===this.dividers||"above-below"===this.dividers)&&this.scrollHeight-this.scrollTop-this.clientHeight>1;this.classList.toggle("-above",e),this.classList.toggle("-below",t)}};var Qr,Gr,Jr,ea;Kr=new WeakMap,Yr.styles=a`:host { display: block; overflow-y: auto; position: relative; box-sizing: border-box; scrollbar-color: ${Es.scrollbar.color}; border-top: var(--m3e-divider-thickness, 1px) solid transparent; border-bottom: var(--m3e-divider-thickness, 1px) solid transparent; outline: var(--m3e-focus-ring-color, ${Es.color.secondary}); outline-width: var(--m3e-focus-ring-thickness, 0.25rem); outline-offset: calc(var(--m3e-focus-ring-thickness, 0.25rem) / 2); } :host([thin]) { scrollbar-width: ${Es.scrollbar.thinWidth}; } :host(:not([thin])) { scrollbar-width: ${Es.scrollbar.width}; } :host(:not(:focus-visible).-above) { border-top-color: var(--m3e-divider-color, ${Es.color.outlineVariant}); } :host(:not(:focus-visible).-below) { border-bottom-color: var(--m3e-divider-color, ${Es.color.outlineVariant}); } :host(:focus-visible) { outline-style: solid; animation: grow-shrink var(--m3e-focus-ring-duration, ${Es.motion.duration.long2}); } @keyframes grow-shrink { 50% { outline-width: calc(var(--m3e-focus-ring-thickness, 0.25rem) * var(--m3e-focus-ring-factor, 2)); } } @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).-above) { border-top-color: GrayText; } :host(:not(:focus-visible).-below) { border-bottom-color: GrayText; } } @media (prefers-reduced-motion) { :host(:focus-visible) { animation: none; } }`,o([Vt()],Yr.prototype,"dividers",void 0),o([Vt({type:Boolean,reflect:!0})],Yr.prototype,"thin",void 0),o([ht(40)],Yr.prototype,"_updateScroll",null),Yr=o([wt("m3e-scroll-container")],Yr);let ta=class extends n{constructor(){super(...arguments),Qr.add(this),Gr.set(this,new Array),this.selectedIndex=null}connectedCallback(){super.connectedCallback(),this.classList.toggle("-no-animate",!0)}update(e){super.update(e),e.has("selectedIndex")&&(null===this.selectedIndex&&this.classList.toggle("-no-animate",!0),l(this,Qr,"m",ea).call(this),null!==this.selectedIndex&&this.classList.contains("-no-animate")&&requestAnimationFrame(()=>{null!==this.selectedIndex&&this.classList.toggle("-no-animate",!1)}))}render(){return r`<slot @slotchange="${l(this,Qr,"m",Jr)}"></slot>`}};Gr=new WeakMap,Qr=new WeakSet,Jr=function(e){const t=[...e.target.assignedElements({flatten:!0})];for(const e of l(this,Gr,"f").filter(e=>!t.includes(e)))e.classList.remove("-before"),e.classList.remove("-after"),e.removeAttribute("inert");h(this,Gr,t,"f"),l(this,Qr,"m",ea).call(this)},ea=function(){const e=this.selectedIndex??l(this,Gr,"f").length;for(let t=0;t<l(this,Gr,"f").length;t++){const s=l(this,Gr,"f")[t];s.classList.toggle("-before",t<e),s.classList.toggle("-after",t>e),s.toggleAttribute("inert",t!==e)}},ta.styles=a`:host { display: flex; position: relative; overflow: hidden; } ::slotted(*) { width: 100%; top: 0; transition: ${i(`inset-inline-start var(--m3e-slide-animation-duration, ${Es.motion.duration.long2}) ${Es.motion.easing.standard},\n visibility var(--m3e-slide-animation-duration, ${Es.motion.duration.long2}) ${Es.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(.-no-animate) ::slotted(*) { transition: none; } @media (prefers-reduced-motion) { ::slotted(*) { transition: none; } }`,o([Vt({attribute:"selected-index",type:Number,reflect:!0})],ta.prototype,"selectedIndex",void 0),ta=o([wt("m3e-slide")],ta);const sa=i(`var(--m3e-state-layer-hover-color, ${Es.color.onSurface})`),ia=i(`var(--m3e-state-layer-hover-opacity, ${Es.state.hoverStateLayerOpacity})`),ra=i(`var(--m3e-state-layer-focus-color, ${Es.color.onSurface})`),aa=i(`var(--m3e-state-layer-focus-opacity, ${Es.state.focusStateLayerOpacity})`),na=i(`var(--m3e-state-layer-duration, ${Es.motion.duration.medium1})`),oa=i(`var(--m3e-state-layer-easing, ${Es.motion.easing.standard})`);var la,ha,ca,da,pa;let ua=class extends(ii(Qi(n,"none"))){constructor(){super(...arguments),la.add(this),ha.set(this,new it(this,{target:null,callback:e=>l(this,la,"m",da).call(this,e)})),ca.set(this,new st(this,{target:null,callback:(e,t)=>l(this,la,"m",pa).call(this,e&&t)})),this.disabled=!1,this.disableHover=!1}show(e){this._layer?.classList.toggle(e,!0)}hide(e){this._layer?.classList.toggle(e,!1)}attach(e){super.attach(e),l(this,ha,"f").observe(e),l(this,ca,"f").observe(e)}detach(){this.control&&(l(this,ha,"f").unobserve(this.control),l(this,ca,"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 r`<div class="layer"></div>`}};ha=new WeakMap,ca=new WeakMap,la=new WeakSet,da=function(e){this.disabled||this.disableHover||(e?this.show("hover"):this.hide("hover"))},pa=function(e){this.disabled||(e?this.show("focused"):this.hide("focused"))},ua.styles=a`: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: ${i(`background-color ${na} ${oa}`)}; } .layer.focused { background-color: color-mix(in srgb, ${ra} ${aa}, transparent); } .layer.hover { background-color: color-mix(in srgb, ${sa} ${ia}, transparent); } @media (prefers-reduced-motion) { .layer { transition: none; } } @media (forced-colors: active) { .layer { display: none; } }`,o([jt(".layer")],ua.prototype,"_layer",void 0),o([Vt({type:Boolean,reflect:!0})],ua.prototype,"disabled",void 0),o([Vt({attribute:"disable-hover",type:Boolean,reflect:!0})],ua.prototype,"disableHover",void 0),ua=o([wt("m3e-state-layer")],ua);let ma=class extends n{render(){return r`<span class="base"><slot></slot></span>`}};var fa,va,ya,ga,ba,xa,wa,$a;ma.styles=a`:host { flex: 1 1 auto; display: inline-flex; align-items: center; flex-wrap: nowrap; min-width: 0; } .base { flex: 1 1 auto; display: inline; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }`,ma=o([wt("m3e-text-overflow")],ma);let ka=$a=class extends n{constructor(){super(),fa.add(this),va.set(this,"m3e-text-highlight-"+$a.__nextId++),ya.set(this,new Array),ga.set(this,null),this.disabled=!1,this.term="",this.caseSensitive=!1,this.isSupported&&(h(this,ga,new CSSStyleSheet,"f"),l(this,ga,"f").replaceSync(a`::highlight(${i(l(this,va,"f"))}) { background-color: var(--m3e-text-highlight-container-color, ${Es.color.secondaryContainer}); color: var(--m3e-text-highlight-color, ${Es.color.onSecondaryContainer}); text-decoration: var(--m3e-text-highlight-decoration); text-shadow: var(--m3e-text-highlight-shadow); }`.toString()))}get isSupported(){return!(e||!CSS.highlights)}get ranges(){return l(this,ya,"f")}firstUpdated(e){super.firstUpdated(e),this.shadowRoot&&l(this,ga,"f")&&!this.shadowRoot.adoptedStyleSheets.includes(l(this,ga,"f"))&&this.shadowRoot.adoptedStyleSheets.push(l(this,ga,"f"))}updated(e){super.updated(e),(e.has("term")||e.has("caseSensitive")||e.has("disabled"))&&l(this,fa,"m",wa).call(this)}render(){return r`<slot @slotchange="${l(this,fa,"m",wa)}"></slot>`}};va=new WeakMap,ya=new WeakMap,ga=new WeakMap,fa=new WeakSet,ba=function(e){return!/^(\\s|\\n)+$/gi.test(e.data)},xa=function e(t,s){t instanceof HTMLSlotElement?t.assignedElements({flatten:!0}).forEach(t=>{switch(t.nodeType){case Node.TEXT_NODE:l(this,fa,"m",ba).call(this,t)&&s.push(t);break;case Node.ELEMENT_NODE:l(this,fa,"m",e).call(this,t,s)}}):t.childNodes.forEach(t=>{switch(t.nodeType){case Node.TEXT_NODE:l(this,fa,"m",ba).call(this,t)&&s.push(t);break;case Node.ELEMENT_NODE:l(this,fa,"m",e).call(this,t,s)}})},wa=function(){if(!this.isSupported||!this.isConnected)return;if(CSS.highlights.delete(l(this,va,"f")),l(this,ya,"f").length=0,this.disabled)return;if(!this.term)return void this.dispatchEvent(new CustomEvent("highlight",{detail:[...l(this,ya,"f")],bubbles:!1,composed:!1}));const e=new Array;l(this,fa,"m",xa).call(this,this,e);const t=this.caseSensitive?this.term:this.term.toLowerCase();h(this,ya,e.map(e=>({el:e,text:(this.caseSensitive?e.textContent:e.textContent?.toLowerCase())??""})).map(({el:e,text:s})=>{const i=new Array;let r=0;for(;r<s.length;){const e=s.indexOf(t,r);if(-1===e)break;i.push(e),r=e+t.length}return i.map(s=>{const i=new Range;return i.setStart(e,s),i.setEnd(e,s+t.length),i})}).flat(),"f"),l(this,ya,"f").length>0&&CSS.highlights.set(l(this,va,"f"),new Highlight(...l(this,ya,"f"))),this.dispatchEvent(new CustomEvent("highlight",{detail:[...l(this,ya,"f")],bubbles:!1,composed:!1}))},ka.styles=a`:host { display: contents; }`,ka.__nextId=0,o([Vt({type:Boolean,reflect:!0})],ka.prototype,"disabled",void 0),o([Vt()],ka.prototype,"term",void 0),o([Vt({attribute:"case-sensitive",type:Boolean})],ka.prototype,"caseSensitive",void 0),ka=$a=o([wt("m3e-text-highlight")],ka);export{lr as ActionElementBase,He as AnimationLoopController,xt as AttachInternals,Zt as Checked,Yt as CheckedIndeterminate,Xs as ConstraintValidation,Es as DesignToken,rs as Dirty,Ss as Disabled,zs as DisabledInteractive,Zs as EventAttribute,st as FocusController,Ys as Focusable,Rs as FormAssociated,Js as FormSubmitter,it as HoverController,ii as HtmlFor,rt as IntersectionController,ri as KeyboardClick,Hs as Labelled,qi as LinkButton,at as LongPressController,hr as M3eCollapsibleElement,_r as M3eElevationElement,Tr as M3eFocusRingElement,Hr as M3ePseudoCheckboxElement,Fr as M3ePseudoRadioElement,Zr as M3eRippleElement,Yr as M3eScrollContainerElement,ta as M3eSlideElement,ua as M3eStateLayerElement,ka as M3eTextHighlightElement,ma as M3eTextOverflowElement,nt as MutationController,ot as PressedController,ji as ReadOnly,Zi as Required,Yi as RequiredConstraintValidation,lt as ResizeController,Qi as Role,ct as ScrollController,Gt as Selected,os as Touched,Ji as Vertical,ts as checkOrSelect,ht as debounce,Os as defaultValue,Oe as focusWhenReady,De as forcedColorsActive,Fs as formValue,Xe as generateClipPaths,Ze as getTextContent,Ke as guid,Ye as hasAssignedNodes,vt as hasKeys,Qe as interceptProperty,yt as internals,gt as isAttachInternalsMixin,Kt as isCheckedIndeterminateMixin,Xt as isCheckedMixin,es as isCheckedOrSelected,Jt as isCheckedOrSelectedMixin,qs as isConstraintValidationMixin,ss as isDirtyMixin,As as isDisabledInteractiveMixin,_s as isDisabledMixin,Ds as isFormAssociatedMixin,Qs as isFormSubmitterMixin,ei as isHtmlForMixin,Ps as isLabelledMixin,Ri as isLinkButtonMixin,Vi as isReadOnlyMixin,Ki as isRequiredConstraintValidationMixin,Xi as isRequiredMixin,Qt as isSelectedMixin,as as isTouchedMixin,Gi as isVerticalMixin,Ge as prefersReducedMotion,Ii as renderPseudoLink,Je as resolveElementById,et as resolveFragmentUrl,ft as safeStyleMap,tt as scrollIntoViewIfNeeded,Ws as updateLabels,Bs as validate};
55
+ const Ii=e=>e??Si,Ri=Symbol("renderPseudoLink");function Bi(e){return yt(e,"download","href","rel","target")}const qi=Symbol("_clickHandler");function Vi(e){var s,i,a,n,h;class c extends e{constructor(){super(...arguments),s.add(this),this[h]=async e=>{if(Cs(this)&&this.disabledInteractive&&(e.preventDefault(),e.stopPropagation()),await new Promise(e=>e()),!e.defaultPrevented&&this.href){e.preventDefault(),e.stopImmediatePropagation();const t=document.createElement("a");t.href=this.href,t.rel=this.rel,t.target=this.target,null!=this.download&&(t.download=this.download),t.addEventListener("click",async()=>{await new Promise(e=>e()),t.remove()}),document.body.appendChild(t),t.click()}},this.href="",this.target="",this.rel=""}get download(){return this.getAttribute("download")}set download(e){const t=this.download;t!==e&&(e?this.setAttribute("download",e):this.removeAttribute("download"),this.requestUpdate("download",t))}connectedCallback(){super.connectedCallback(),this.addEventListener("click",this[qi]),this.hasAttribute("href")&&"button"===this.role&&(this.role="link")}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",this[qi])}[(s=new WeakSet,h=qi,Ri)](){const e=Ss(this)&&this.disabled,o=Cs(this)&&this.disabledInteractive;return e||o||!this.href?t:r`<a href="${this.href}" target="${Ii(this.target||void 0)}" rel="${Ii(this.rel||void 0)}" download="${Ii(this.download||void 0)}" tabindex="-1" aria-hidden="true" @pointerdown="${l(this,s,"m",i)}" @focus="${l(this,s,"m",a)}" @blur="${l(this,s,"m",n)}"></a>`}}return i=function(e){2!==e.button?(e.preventDefault(),e.stopImmediatePropagation(),this.dispatchEvent(new MouseEvent("click",{bubbles:!0,cancelable:!0,view:window}))):e.target.removeAttribute("aria-hidden")},a=function(e){e.target.blur(),this.focus()},n=function(e){e.target.setAttribute("aria-hidden","true")},o([jt()],c.prototype,"href",void 0),o([jt()],c.prototype,"target",void 0),o([jt()],c.prototype,"rel",void 0),o([jt({reflect:!1})],c.prototype,"download",null),c}function ji(e){return yt(e,"readOnly")}function Xi(e,t=!0){class s extends e{constructor(){super(...arguments),this.readOnly=!1}update(e){super.update(e),e.has("readOnly")&&(this.ariaReadOnly=this.readOnly?"true":null)}}return o([jt({attribute:"readonly",type:Boolean,reflect:t})],s.prototype,"readOnly",void 0),s}function Zi(e){return yt(e,"required","optional")}function Ki(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 o([jt({type:Boolean,reflect:!0})],t.prototype,"required",void 0),t}function Yi(e){return Zi(e)&&Vs(e)}function Qi(e){return class extends e{[qs](){const e=super[qs]();if(!e&&this.required){if(Zt(this)&&!this.checked)return{valueMissing:!0};if(!this.value)return{valueMissing:!0}}return e}}}function Gi(e,t){return class extends e{connectedCallback(){this.role=this.role||t,super.connectedCallback()}}}function Ji(e){return yt(e,"vertical")}function er(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 o([jt({type:Boolean,reflect:!0})],t.prototype,"vertical",void 0),t}var tr,sr,ir,rr,ar,nr,or,lr;class hr extends n{constructor(){super(...arguments),tr.set(this,e=>{e.defaultPrevented||this._onClick(e)})}connectedCallback(){super.connectedCallback(),this.parentElement?.addEventListener("click",l(this,tr,"f"))}disconnectedCallback(){super.disconnectedCallback(),this.parentElement?.removeEventListener("click",l(this,tr,"f"))}render(){return r`<slot></slot>`}}tr=new WeakMap,hr.styles=a`:host { display: contents; } ::slotted(.material-icons) { font-size: inherit !important; }`;let cr=class extends(Ks(n,"opening","opened","closing","closed")){constructor(){super(...arguments),sr.add(this),ir.set(this,!1),rr.set(this,!1),this.open=!1}update(e){if(super.update(e),this.classList.toggle("-no-animate",!0),!l(this,ir,"f"))return this.open&&(h(this,rr,!0,"f"),l(this,sr,"m",nr).call(this)),void h(this,ir,!0,"f");this.toggleAttribute("inert",!this.open),this.open?(h(this,rr,!0,"f"),Je()||(l(this,sr,"m",nr).call(this),this.classList.toggle("-overflows",this.clientHeight<this.scrollHeight),l(this,sr,"m",or).call(this)),this.classList.toggle("-closing",!1),this.classList.toggle("-opening",!0),this.dispatchEvent(new Event("opening")),l(this,sr,"m",or).call(this),this.classList.toggle("-no-animate",!1),l(this,sr,"m",lr).call(this),Je()?(l(this,sr,"m",nr).call(this),this.classList.toggle("-opening",!1),this.dispatchEvent(new Event("opened"))):this.addEventListener("transitionend",()=>{this.open&&(l(this,sr,"m",nr).call(this),this.classList.toggle("-opening",!1),this.dispatchEvent(new Event("opened")))},{once:!0})):(this.classList.toggle("-opening",!1),this.classList.toggle("-closing",!0),this.dispatchEvent(new Event("closing")),l(this,sr,"m",lr).call(this),l(this,rr,"f")&&this.classList.toggle("-no-animate",!1),Je()?(l(this,sr,"m",or).call(this),this.classList.toggle("-closing",!1),this.dispatchEvent(new Event("closed"))):requestAnimationFrame(()=>{l(this,sr,"m",or).call(this),this.addEventListener("transitionend",()=>{this.open||(this.classList.toggle("-closing",!1),this.dispatchEvent(new Event("closed")))},{once:!0})}))}render(){return r`<slot @slotchange="${l(this,sr,"m",ar)}"></slot>`}};ir=new WeakMap,rr=new WeakMap,sr=new WeakSet,ar=function(){h(this,ir,!0,"f")},nr=function(){this.style.height="auto"},or=function(){this.style.height=""},lr=function(){this.style.height=`${this.scrollHeight}px`},cr.styles=a`:host { display: block; height: 0px; overflow: hidden; transition: ${i(`visibility var(--m3e-collapsible-animation-duration, ${_s.motion.duration.medium1})\n ${_s.motion.easing.standard},\n height var(--m3e-collapsible-animation-duration, ${_s.motion.duration.medium1})\n ${_s.motion.easing.standard},\n padding-top var(--m3e-collapsible-animation-duration, ${_s.motion.duration.medium1})\n ${_s.motion.easing.standard},\n padding-bottom var(--m3e-collapsible-animation-duration, ${_s.motion.duration.medium1})\n ${_s.motion.easing.standard}`)}; } :host(:not(.-closing):not([open])) { visibility: hidden; } :host(:not([open])) { min-height: unset !important; padding-top: 0px !important; padding-bottom: 0px !important; } :host(.-no-animate) { transition-duration: 0ms; } :host(.-opening), :host(.-closing) { overflow-y: hidden !important; } :host(.-overflows) { scrollbar-gutter: stable; } ::slotted(*) { --m3e-collapsible-animation-duration: initial; } @media (prefers-reduced-motion) { :host { transition: none; } }`,o([jt({type:Boolean,reflect:!0})],cr.prototype,"open",void 0),cr=o([$t("m3e-collapsible")],cr);const dr=i(`var(--m3e-elevation-lift-duration, ${_s.motion.duration.short4})`),pr=i(`var(--m3e-elevation-lift-easing, ${_s.motion.easing.standard})`),ur=i(`var(--m3e-elevation-settle-duration, ${_s.motion.duration.short3})`),mr=i(`var(--m3e-elevation-settle-easing, ${_s.motion.easing.standardAccelerate})`),fr=i(`var(--m3e-elevation-level, ${_s.elevation.level0})`),vr=i(`var(--m3e-elevation-hover-level, ${_s.elevation.level0})`),yr=i(`var(--m3e-elevation-focus-level, ${_s.elevation.level0})`),gr=i(`var(--m3e-elevation-pressed-level, ${_s.elevation.level0})`);var br,xr,wr,$r,kr,Er,_r;let Sr=class extends(ri(Gi(n,"none"))){constructor(){super(...arguments),br.add(this),xr.set(this,new rt(this,{target:null,callback:e=>l(this,br,"m",kr).call(this,e)})),wr.set(this,new it(this,{target:null,callback:e=>l(this,br,"m",Er).call(this,e)})),$r.set(this,new lt(this,{target:null,callback:e=>l(this,br,"m",_r).call(this,e)})),this.disabled=!1,this.level=null}attach(e){super.attach(e),l(this,xr,"f").observe(e),l(this,wr,"f").observe(e),l(this,$r,"f").observe(e)}detach(){this.control&&(l(this,xr,"f").unobserve(this.control),l(this,wr,"f").unobserve(this.control),l(this,$r,"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 r`<div class="shadow"></div>`}};xr=new WeakMap,wr=new WeakMap,$r=new WeakMap,br=new WeakSet,kr=function(e){this.disabled||(this._shadow?.classList.toggle("hover",e),this._shadow?.classList.toggle("resting",!e))},Er=function(e){this.disabled||this._shadow?.classList.toggle("focus",e)},_r=function(e){this.disabled||this._shadow?.classList.toggle("pressed",e)},Sr.styles=a`:host { display: block; } :host, .shadow { position: absolute; left: 0; top: 0; right: 0; bottom: 0; pointer-events: none; border-radius: inherit; } .shadow.resting, .shadow.focus, .shadow.pressed { will-change: box-shadow; transition: ${i(`box-shadow ${ur} ${mr};`)}; } .shadow.hover { will-change: box-shadow; transition: ${i(`box-shadow ${dr} ${pr};`)}; } .shadow { box-shadow: ${fr}; } .shadow.focus { box-shadow: ${yr}; } .shadow.hover { box-shadow: ${vr}; } .shadow.pressed { box-shadow: ${gr}; } :host([level="0"]) .shadow { --m3e-elevation-level: ${_s.elevation.level0}; --m3e-elevation-hover-level: ${_s.elevation.level1}; } :host([level="1"]) .shadow { --m3e-elevation-level: ${_s.elevation.level1}; --m3e-elevation-hover-level: ${_s.elevation.level2}; } :host([level="2"]) .shadow { --m3e-elevation-level: ${_s.elevation.level2}; --m3e-elevation-hover-level: ${_s.elevation.level3}; } :host([level="3"]) .shadow { --m3e-elevation-level: ${_s.elevation.level3}; --m3e-elevation-hover-level: ${_s.elevation.level4}; } :host([level="4"]) .shadow { --m3e-elevation-level: ${_s.elevation.level4}; --m3e-elevation-hover-level: ${_s.elevation.level5}; } :host([level="5"]) .shadow { --m3e-elevation-level: ${_s.elevation.level5}; --m3e-elevation-hover-level: ${fr}; } :host([level]) .shadow { --m3e-elevation-focus-level: ${fr}; --m3e-elevation-pressed-level: ${fr}; } @media (prefers-reduced-motion) { .shadow.resting, .shadow.pressed, .shadow.focus, .shadow.hover { transition: none; } } @media (forced-colors: active) { .shadow { display: none; } }`,o([Xt(".shadow")],Sr.prototype,"_shadow",void 0),o([jt({type:Boolean,reflect:!0})],Sr.prototype,"disabled",void 0),o([jt({type:Number,reflect:!0})],Sr.prototype,"level",void 0),Sr=o([$t("m3e-elevation")],Sr);const Ar=i(`var(--m3e-focus-ring-color, ${_s.color.secondary})`),Cr=i(`var(--m3e-focus-ring-duration, ${_s.motion.duration.long2})`),Lr=i("var(--m3e-focus-ring-thickness, 0.1875rem)"),Mr=i("var(--m3e-focus-ring-visibility, visible)"),zr=i("var(--m3e-focus-ring-growth-factor, 2)");var Wr,Pr,Tr;let Hr=class extends(ri(Gi(n,"none"))){constructor(){super(...arguments),Wr.add(this),Pr.set(this,new it(this,{target:null,callback:(e,t)=>l(this,Wr,"m",Tr).call(this,t)})),this.inward=!1,this.disabled=!1}show(){this._outline?.classList.toggle("visible",!0)}hide(){this._outline?.classList.toggle("visible",!1)}attach(e){super.attach(e),l(this,Pr,"f").observe(e)}detach(){this.control&&l(this,Pr,"f").unobserve(this.control),super.detach()}connectedCallback(){this.ariaHidden="true",super.connectedCallback()}disconnectedCallback(){super.disconnectedCallback(),this.hide()}render(){return r`<div class="outline"></div>`}updated(e){super.updated(e),e.has("disabled")&&this.disabled&&this.hide()}};Pr=new WeakMap,Wr=new WeakSet,Tr=function(e){this.disabled||(e?this.show():this.hide())},Hr.styles=a`: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: ${Ar}; outline-width: ${Lr}; visibility: ${Mr}; } .outline.visible { outline-style: solid; } :host(:not([inward])) .outline { outline-offset: calc(${Lr} / ${zr}); } :host([inward]) .outline { outline-offset: calc(0px - ${Lr}); } :host(:not([inward])) .outline.visible { animation: grow-shrink ${Cr}; } :host([inward]) .outline.visible { animation: shrink-grow ${Cr}; } @keyframes grow-shrink { 50% { outline-width: calc(${Lr} * ${zr}); } } @keyframes shrink-grow { 50% { outline-offset: calc(0px - calc(${Lr} * ${zr})); outline-width: calc(${Lr} * ${zr}); } } @media (prefers-reduced-motion) { :host(:not([inward])) .outline.visible, :host([inward]) .outline.visible { animation: none; } } @media (forced-colors: active) { .outline { outline-color: Highlight; } }`,o([Xt(".outline")],Hr.prototype,"_outline",void 0),o([jt({type:Boolean,reflect:!0})],Hr.prototype,"inward",void 0),o([jt({type:Boolean,reflect:!0})],Hr.prototype,"disabled",void 0),Hr=o([$t("m3e-focus-ring")],Hr);let Fr=class extends(Qt(As(Gi(n,"none")))){connectedCallback(){super.connectedCallback(),this.ariaHidden="true"}render(){return this.indeterminate?r`<svg viewBox="0 -960 960 960" fill="currentColor"><path Required d="M240-440v-80h480v80H240Z"/></svg>`:this.checked?r`<svg viewBox="0 -960 960 960" fill="currentColor"><path d="M382-240 154-468l57-57 171 171 367-367 57 57-424 424Z"/></svg>`:t}};Fr.styles=a`:host { display: inline-block; vertical-align: middle; width: var(--m3e-checkbox-icon-size, 1.125rem); height: var(--m3e-checkbox-icon-size, 1.125rem); border-radius: var(--m3e-checkbox-container-shape, 0.125rem); box-sizing: border-box; flex: none; } :host(:not([checked]):not([indeterminate])) { border-width: var(--m3e-checkbox-unselected-outline-thickness, 0.125rem); border-style: solid; } :host(:not([disabled])[checked]), :host(:not([disabled])[indeterminate]) { background-color: var(--m3e-checkbox-selected-container-color, ${_s.color.primary}); color: var(--m3e-checkbox-selected-icon-color, ${_s.color.onPrimary}); } :host(:not([disabled]):not([checked]):not([indeterminate])) { border-color: var(--m3e-checkbox-unselected-outline-color, ${_s.color.onSurfaceVariant}); } :host([disabled]:not([checked]):not([indeterminate])) { border-color: color-mix( in srgb, var(--m3e-checkbox-unselected-disabled-outline-color, ${_s.color.onSurface}) var(--m3e-checkbox-unselected-disabled-outline-opacity, 38%), transparent ); } :host([disabled][checked]), :host([disabled][indeterminate]) { background-color: color-mix( in srgb, var(--m3e-checkbox-selected-disabled-container-color, ${_s.color.onSurface}) var(--m3e-checkbox-selected-disabled-container-opacity, 38%), transparent ); color: color-mix( in srgb, var(--m3e-checkbox-selected-disabled-icon-color, ${_s.color.surface}) var(--m3e-checkbox-selected-disabled-icon-opacity, 100%), transparent ); }`,Fr=o([$t("m3e-pseudo-checkbox")],Fr);let Or=class extends(Kt(As(Gi(n,"none")))){connectedCallback(){super.connectedCallback(),this.ariaHidden="true"}render(){return r`<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>`}};Or.styles=a`:host { display: inline-block; vertical-align: middle; box-sizing: border-box; width: var(--m3e-radio-icon-size, 1.25rem); height: var(--m3e-radio-icon-size, 1.25rem); flex: none; } .circle { fill: currentColor; } :host(:not([checked])) .circle.inner { opacity: 0; } :host(:not([checked])) { color: var(--m3e-radio-unselected-icon-color, ${_s.color.onSurfaceVariant}); } :host([checked]) { color: var(--m3e-radio-selected-icon-color, ${_s.color.primary}); } :host([disabled]) { color: color-mix(in srgb, var(--m3e-radio-disabled-icon-color, ${_s.color.onSurface}) 38%, transparent); }`,Or=o([$t("m3e-pseudo-radio")],Or);const Dr=i(`var(--m3e-ripple-color, ${_s.color.onSurface})`),Ur=i(`var(--m3e-ripple-opacity, ${_s.state.pressedStateLayerOpacity})`),Nr=i(`var(--m3e-ripple-enter-duration, ${_s.motion.duration.long4})`),Ir=i(`var(--m3e-ripple-exit-duration, ${_s.motion.duration.short2})`),Rr=i("var(--m3e-ripple-scale-factor, 2.5)");var Br,qr,Vr,jr,Xr,Zr;let Kr=class extends(ri(Gi(n,"none"))){constructor(){super(...arguments),Br.add(this),qr.set(this,null),Vr.set(this,new lt(this,{target:null,minPressedDuration:150,isPressedKey:e=>" "===e,callback:(e,{x:t,y:s})=>l(this,Br,"m",Zr).call(this,e,t,s)})),this.disabled=!1,this.centered=!1,this.unbounded=!1,this.radius=null}get visible(){return null!==l(this,qr,"f")}show(e,t,s=!1){l(this,Br,"m",jr).call(this);const i=this.getBoundingClientRect();this.centered&&(e=i.left+i.width/2,t=i.top+i.height/2);let r=this.radius;if(!r||isNaN(r)){const s=Math.max(Math.abs(e-i.left),Math.abs(e-i.right)),a=Math.max(Math.abs(t-i.top),Math.abs(t-i.bottom));r=Math.sqrt(s*s+a*a)}const a=e-i.left,n=t-i.top;h(this,qr,document.createElement("div"),"f"),l(this,qr,"f").classList.add("ripple"),s&&l(this,qr,"f").classList.add("persistent"),l(this,qr,"f").style.left=a-r+"px",l(this,qr,"f").style.top=n-r+"px",l(this,qr,"f").style.width=2*r+"px",l(this,qr,"f").style.height=2*r+"px",l(this,qr,"f").addEventListener("animationend",()=>l(this,Br,"m",Xr).call(this,s),{once:!0}),l(this,qr,"f").addEventListener("transitionend",()=>l(this,Br,"m",jr).call(this),{once:!0}),this.shadowRoot?.appendChild(l(this,qr,"f"))}hide(){l(this,qr,"f")?.classList.add("exit")}attach(e){super.attach(e),l(this,Vr,"f").observe(e)}detach(){this.control&&l(this,Vr,"f").unobserve(this.control),super.detach()}connectedCallback(){this.ariaHidden="true",super.connectedCallback()}disconnectedCallback(){super.disconnectedCallback(),l(this,Br,"m",jr).call(this)}updated(e){super.updated(e),e.has("disabled")&&this.disabled&&this.hide()}};var Yr;qr=new WeakMap,Vr=new WeakMap,Br=new WeakSet,jr=function(){l(this,qr,"f")?.remove(),h(this,qr,null,"f")},Xr=function(e){e?l(this,qr,"f")?.classList.add("pressed"):this.hide()},Zr=function(e,t,s){this.disabled||(e?this.show(t,s,!0):this.hide())},Kr.styles=a`:host { display: block; position: absolute; left: 0; top: 0; right: 0; bottom: 0; pointer-events: none; border-radius: inherit; } :host(:not([unbounded])) { overflow: hidden; } .ripple { display: block; position: absolute; left: 0; top: 0; right: 0; bottom: 0; pointer-events: none; transform: scale(0); border-radius: ${_s.shape.corner.full}; background-color: color-mix(in srgb, ${Dr} ${Ur}, transparent); will-change: background-color, opacity; animation: ripple ${Nr} linear; } .ripple.persistent.pressed { transform: scale(${Rr}); } .ripple.exit { transition: opacity ${Ir} cubic-bezier(0, 0, 0.2, 0.1); opacity: 0; } @keyframes ripple { to { transform: scale(${Rr}); } } @media (prefers-reduced-motion) { .ripple { transform: scale(${Rr}); animation-duration: 90ms; } .ripple.exit { transition-duration: 10ms; } } @media (forced-colors: active) { .ripple { display: none; } }`,o([jt({type:Boolean,reflect:!0})],Kr.prototype,"disabled",void 0),o([jt({type:Boolean,reflect:!0})],Kr.prototype,"centered",void 0),o([jt({type:Boolean,reflect:!0})],Kr.prototype,"unbounded",void 0),o([jt({type:Number})],Kr.prototype,"radius",void 0),Kr=o([$t("m3e-ripple")],Kr);let Qr=class extends n{constructor(){super(...arguments),Yr.set(this,()=>this._updateScroll()),this.dividers="above-below",this.thin=!1}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("scroll",l(this,Yr,"f"))}update(e){super.update(e),e.has("dividers")&&(this.removeEventListener("scroll",l(this,Yr,"f")),"none"!==this.dividers&&this.addEventListener("scroll",l(this,Yr,"f"),{passive:!0}))}render(){return r`<slot @slotchange="${this._updateScroll}"></slot>`}_updateScroll(){const e=("above"===this.dividers||"above-below"===this.dividers)&&this.scrollTop>0,t=("below"===this.dividers||"above-below"===this.dividers)&&this.scrollHeight-this.scrollTop-this.clientHeight>1;this.classList.toggle("-above",e),this.classList.toggle("-below",t)}};var Gr,Jr,ea,ta;Yr=new WeakMap,Qr.styles=a`:host { display: block; overflow-y: auto; position: relative; box-sizing: border-box; scrollbar-color: ${_s.scrollbar.color}; border-top: var(--m3e-divider-thickness, 1px) solid transparent; border-bottom: var(--m3e-divider-thickness, 1px) solid transparent; outline: var(--m3e-focus-ring-color, ${_s.color.secondary}); outline-width: var(--m3e-focus-ring-thickness, 0.25rem); outline-offset: calc(var(--m3e-focus-ring-thickness, 0.25rem) / 2); } :host([thin]) { scrollbar-width: ${_s.scrollbar.thinWidth}; } :host(:not([thin])) { scrollbar-width: ${_s.scrollbar.width}; } :host(:not(:focus-visible).-above) { border-top-color: var(--m3e-divider-color, ${_s.color.outlineVariant}); } :host(:not(:focus-visible).-below) { border-bottom-color: var(--m3e-divider-color, ${_s.color.outlineVariant}); } :host(:focus-visible) { outline-style: solid; animation: grow-shrink var(--m3e-focus-ring-duration, ${_s.motion.duration.long2}); } @keyframes grow-shrink { 50% { outline-width: calc(var(--m3e-focus-ring-thickness, 0.25rem) * var(--m3e-focus-ring-factor, 2)); } } @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).-above) { border-top-color: GrayText; } :host(:not(:focus-visible).-below) { border-bottom-color: GrayText; } } @media (prefers-reduced-motion) { :host(:focus-visible) { animation: none; } }`,o([jt()],Qr.prototype,"dividers",void 0),o([jt({type:Boolean,reflect:!0})],Qr.prototype,"thin",void 0),o([ct(40)],Qr.prototype,"_updateScroll",null),Qr=o([$t("m3e-scroll-container")],Qr);let sa=class extends n{constructor(){super(...arguments),Gr.add(this),Jr.set(this,new Array),this.selectedIndex=null}connectedCallback(){super.connectedCallback(),this.classList.toggle("-no-animate",!0)}update(e){super.update(e),e.has("selectedIndex")&&(null===this.selectedIndex&&this.classList.toggle("-no-animate",!0),l(this,Gr,"m",ta).call(this),null!==this.selectedIndex&&this.classList.contains("-no-animate")&&requestAnimationFrame(()=>{null!==this.selectedIndex&&this.classList.toggle("-no-animate",!1)}))}render(){return r`<slot @slotchange="${l(this,Gr,"m",ea)}"></slot>`}};Jr=new WeakMap,Gr=new WeakSet,ea=function(e){const t=[...e.target.assignedElements({flatten:!0})];for(const e of l(this,Jr,"f").filter(e=>!t.includes(e)))e.classList.remove("-before"),e.classList.remove("-after"),e.removeAttribute("inert");h(this,Jr,t,"f"),l(this,Gr,"m",ta).call(this)},ta=function(){const e=this.selectedIndex??l(this,Jr,"f").length;for(let t=0;t<l(this,Jr,"f").length;t++){const s=l(this,Jr,"f")[t];s.classList.toggle("-before",t<e),s.classList.toggle("-after",t>e),s.toggleAttribute("inert",t!==e)}},sa.styles=a`:host { display: flex; position: relative; overflow: hidden; } ::slotted(*) { width: 100%; top: 0; transition: ${i(`inset-inline-start var(--m3e-slide-animation-duration, ${_s.motion.duration.long2}) ${_s.motion.easing.standard},\n visibility var(--m3e-slide-animation-duration, ${_s.motion.duration.long2}) ${_s.motion.easing.standard} allow-discrete`)}; } ::slotted(.-before), ::slotted(.-after) { visibility: hidden; position: absolute; } ::slotted(.-before) { inset-inline-start: -100%; } ::slotted(.-after) { inset-inline-start: 100%; } ::slotted(:not(.-before):not(.-after)) { position: relative; inset-inline-start: 0; } :host(.-no-animate) ::slotted(*) { transition: none; } @media (prefers-reduced-motion) { ::slotted(*) { transition: none; } }`,o([jt({attribute:"selected-index",type:Number,reflect:!0})],sa.prototype,"selectedIndex",void 0),sa=o([$t("m3e-slide")],sa);const ia=i(`var(--m3e-state-layer-hover-color, ${_s.color.onSurface})`),ra=i(`var(--m3e-state-layer-hover-opacity, ${_s.state.hoverStateLayerOpacity})`),aa=i(`var(--m3e-state-layer-focus-color, ${_s.color.onSurface})`),na=i(`var(--m3e-state-layer-focus-opacity, ${_s.state.focusStateLayerOpacity})`),oa=i(`var(--m3e-state-layer-duration, ${_s.motion.duration.medium1})`),la=i(`var(--m3e-state-layer-easing, ${_s.motion.easing.standard})`);var ha,ca,da,pa,ua;let ma=class extends(ri(Gi(n,"none"))){constructor(){super(...arguments),ha.add(this),ca.set(this,new rt(this,{target:null,callback:e=>l(this,ha,"m",pa).call(this,e)})),da.set(this,new it(this,{target:null,callback:(e,t)=>l(this,ha,"m",ua).call(this,e&&t)})),this.disabled=!1,this.disableHover=!1}show(e){this._layer?.classList.toggle(e,!0)}hide(e){this._layer?.classList.toggle(e,!1)}attach(e){super.attach(e),l(this,ca,"f").observe(e),l(this,da,"f").observe(e)}detach(){this.control&&(l(this,ca,"f").unobserve(this.control),l(this,da,"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 r`<div class="layer"></div>`}};ca=new WeakMap,da=new WeakMap,ha=new WeakSet,pa=function(e){this.disabled||this.disableHover||(e?this.show("hover"):this.hide("hover"))},ua=function(e){this.disabled||(e?this.show("focused"):this.hide("focused"))},ma.styles=a`: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: ${i(`background-color ${oa} ${la}`)}; } .layer.focused { background-color: color-mix(in srgb, ${aa} ${na}, transparent); } .layer.hover { background-color: color-mix(in srgb, ${ia} ${ra}, transparent); } @media (prefers-reduced-motion) { .layer { transition: none; } } @media (forced-colors: active) { .layer { display: none; } }`,o([Xt(".layer")],ma.prototype,"_layer",void 0),o([jt({type:Boolean,reflect:!0})],ma.prototype,"disabled",void 0),o([jt({attribute:"disable-hover",type:Boolean,reflect:!0})],ma.prototype,"disableHover",void 0),ma=o([$t("m3e-state-layer")],ma);let fa=class extends n{render(){return r`<span class="base"><slot></slot></span>`}};var va,ya,ga,ba,xa,wa,$a,ka;fa.styles=a`:host { flex: 1 1 auto; display: inline-flex; align-items: center; flex-wrap: nowrap; min-width: 0; } .base { flex: 1 1 auto; display: inline; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }`,fa=o([$t("m3e-text-overflow")],fa);let Ea=ka=class extends n{constructor(){super(),va.add(this),ya.set(this,"m3e-text-highlight-"+ka.__nextId++),ga.set(this,new Array),ba.set(this,null),this.disabled=!1,this.term="",this.caseSensitive=!1,this.isSupported&&(h(this,ba,new CSSStyleSheet,"f"),l(this,ba,"f").replaceSync(a`::highlight(${i(l(this,ya,"f"))}) { background-color: var(--m3e-text-highlight-container-color, ${_s.color.secondaryContainer}); color: var(--m3e-text-highlight-color, ${_s.color.onSecondaryContainer}); text-decoration: var(--m3e-text-highlight-decoration); text-shadow: var(--m3e-text-highlight-shadow); }`.toString()))}get isSupported(){return!(e||!CSS.highlights)}get ranges(){return l(this,ga,"f")}firstUpdated(e){super.firstUpdated(e),this.shadowRoot&&l(this,ba,"f")&&!this.shadowRoot.adoptedStyleSheets.includes(l(this,ba,"f"))&&this.shadowRoot.adoptedStyleSheets.push(l(this,ba,"f"))}updated(e){super.updated(e),(e.has("term")||e.has("caseSensitive")||e.has("disabled"))&&l(this,va,"m",$a).call(this)}render(){return r`<slot @slotchange="${l(this,va,"m",$a)}"></slot>`}};ya=new WeakMap,ga=new WeakMap,ba=new WeakMap,va=new WeakSet,xa=function(e){return!/^(\\s|\\n)+$/gi.test(e.data)},wa=function e(t,s){t instanceof HTMLSlotElement?t.assignedElements({flatten:!0}).forEach(t=>{switch(t.nodeType){case Node.TEXT_NODE:l(this,va,"m",xa).call(this,t)&&s.push(t);break;case Node.ELEMENT_NODE:l(this,va,"m",e).call(this,t,s)}}):t.childNodes.forEach(t=>{switch(t.nodeType){case Node.TEXT_NODE:l(this,va,"m",xa).call(this,t)&&s.push(t);break;case Node.ELEMENT_NODE:l(this,va,"m",e).call(this,t,s)}})},$a=function(){if(!this.isSupported||!this.isConnected)return;if(CSS.highlights.delete(l(this,ya,"f")),l(this,ga,"f").length=0,this.disabled)return;if(!this.term)return void this.dispatchEvent(new CustomEvent("highlight",{detail:[...l(this,ga,"f")],bubbles:!1,composed:!1}));const e=new Array;l(this,va,"m",wa).call(this,this,e);const t=this.caseSensitive?this.term:this.term.toLowerCase();h(this,ga,e.map(e=>({el:e,text:(this.caseSensitive?e.textContent:e.textContent?.toLowerCase())??""})).map(({el:e,text:s})=>{const i=new Array;let r=0;for(;r<s.length;){const e=s.indexOf(t,r);if(-1===e)break;i.push(e),r=e+t.length}return i.map(s=>{const i=new Range;return i.setStart(e,s),i.setEnd(e,s+t.length),i})}).flat(),"f"),l(this,ga,"f").length>0&&CSS.highlights.set(l(this,ya,"f"),new Highlight(...l(this,ga,"f"))),this.dispatchEvent(new CustomEvent("highlight",{detail:[...l(this,ga,"f")],bubbles:!1,composed:!1}))},Ea.styles=a`:host { display: contents; }`,Ea.__nextId=0,o([jt({type:Boolean,reflect:!0})],Ea.prototype,"disabled",void 0),o([jt()],Ea.prototype,"term",void 0),o([jt({attribute:"case-sensitive",type:Boolean})],Ea.prototype,"caseSensitive",void 0),Ea=ka=o([$t("m3e-text-highlight")],Ea);export{hr as ActionElementBase,He as AnimationLoopController,wt as AttachInternals,Kt as Checked,Qt as CheckedIndeterminate,Zs as ConstraintValidation,_s as DesignToken,as as Dirty,As as Disabled,Ws as DisabledInteractive,Ks as EventAttribute,it as FocusController,Qs as Focusable,Bs as FormAssociated,ei as FormSubmitter,rt as HoverController,ri as HtmlFor,at as IntersectionController,ai as KeyboardClick,Fs as Labelled,Vi as LinkButton,nt as LongPressController,cr as M3eCollapsibleElement,Sr as M3eElevationElement,Hr as M3eFocusRingElement,Fr as M3ePseudoCheckboxElement,Or as M3ePseudoRadioElement,Kr as M3eRippleElement,Qr as M3eScrollContainerElement,sa as M3eSlideElement,ma as M3eStateLayerElement,Ea as M3eTextHighlightElement,fa as M3eTextOverflowElement,ot as MutationController,lt as PressedController,Xi as ReadOnly,Ki as Required,Qi as RequiredConstraintValidation,ht as ResizeController,Gi as Role,dt as ScrollController,Jt as Selected,ls as Touched,er as Vertical,ss as checkOrSelect,Oe as computeLineCount,ct as debounce,Ds as defaultValue,De as focusWhenReady,Ue as forcedColorsActive,Os as formValue,Ze as generateClipPaths,Ke as getTextContent,Ye as guid,Qe as hasAssignedNodes,yt as hasKeys,Ge as interceptProperty,gt as internals,bt as isAttachInternalsMixin,Yt as isCheckedIndeterminateMixin,Zt as isCheckedMixin,ts as isCheckedOrSelected,es as isCheckedOrSelectedMixin,Vs as isConstraintValidationMixin,is as isDirtyMixin,Cs as isDisabledInteractiveMixin,Ss as isDisabledMixin,Us as isFormAssociatedMixin,Gs as isFormSubmitterMixin,ti as isHtmlForMixin,Ts as isLabelledMixin,Bi as isLinkButtonMixin,ji as isReadOnlyMixin,Yi as isRequiredConstraintValidationMixin,Zi as isRequiredMixin,Gt as isSelectedMixin,ns as isTouchedMixin,Ji as isVerticalMixin,Je as prefersReducedMotion,Ri as renderPseudoLink,et as resolveElementById,tt as resolveFragmentUrl,vt as safeStyleMap,st as scrollIntoViewIfNeeded,Ps as updateLabels,qs as validate};
56
56
  //# sourceMappingURL=index.min.js.map