@momentum-design/components 0.29.0 → 0.29.1

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.
@@ -1,6 +1,6 @@
1
- "use strict";(()=>{var ea=Object.defineProperty;var ta=Object.getOwnPropertyDescriptor;var c=(o,t,e,r)=>{for(var i=r>1?void 0:r?ta(t,e):t,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(t,e,i):s(i))||i);return r&&i&&ea(t,e,i),i};var hr=globalThis,pr=hr.ShadowRoot&&(hr.ShadyCSS===void 0||hr.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,mo=Symbol(),xi=new WeakMap,Mt=class{constructor(t,e,r){if(this._$cssResult$=!0,r!==mo)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o,e=this.t;if(pr&&t===void 0){let r=e!==void 0&&e.length===1;r&&(t=xi.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),r&&xi.set(e,t))}return t}toString(){return this.cssText}},Ei=o=>new Mt(typeof o=="string"?o:o+"",void 0,mo),g=(o,...t)=>{let e=o.length===1?o[0]:t.reduce((r,i,n)=>r+(s=>{if(s._$cssResult$===!0)return s.cssText;if(typeof s=="number")return s;throw Error("Value passed to 'css' function must be a 'css' function result: "+s+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+o[n+1],o[0]);return new Mt(e,o,mo)},ho=(o,t)=>{if(pr)o.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(let e of t){let r=document.createElement("style"),i=hr.litNonce;i!==void 0&&r.setAttribute("nonce",i),r.textContent=e.cssText,o.appendChild(r)}},ur=pr?o=>o:o=>o instanceof CSSStyleSheet?(t=>{let e="";for(let r of t.cssRules)e+=r.cssText;return Ei(e)})(o):o;var{is:ra,defineProperty:oa,getOwnPropertyDescriptor:ia,getOwnPropertyNames:na,getOwnPropertySymbols:sa,getPrototypeOf:aa}=Object,Me=globalThis,Ti=Me.trustedTypes,la=Ti?Ti.emptyScript:"",po=Me.reactiveElementPolyfillSupport,zt=(o,t)=>o,Dt={toAttribute(o,t){switch(t){case Boolean:o=o?la:null;break;case Object:case Array:o=o==null?o:JSON.stringify(o)}return o},fromAttribute(o,t){let e=o;switch(t){case Boolean:e=o!==null;break;case Number:e=o===null?null:Number(o);break;case Object:case Array:try{e=JSON.parse(o)}catch{e=null}}return e}},fr=(o,t)=>!ra(o,t),Ai={attribute:!0,type:String,converter:Dt,reflect:!1,hasChanged:fr},Si,_i;(Si=Symbol.metadata)!=null||(Symbol.metadata=Symbol("metadata")),(_i=Me.litPropertyMetadata)!=null||(Me.litPropertyMetadata=new WeakMap);var ye=class extends HTMLElement{static addInitializer(t){var e;this._$Ei(),((e=this.l)!=null?e:this.l=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=Ai){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(t,e),!e.noAccessor){let r=Symbol(),i=this.getPropertyDescriptor(t,r,e);i!==void 0&&oa(this.prototype,t,i)}}static getPropertyDescriptor(t,e,r){var s;let{get:i,set:n}=(s=ia(this.prototype,t))!=null?s:{get(){return this[e]},set(a){this[e]=a}};return{get(){return i==null?void 0:i.call(this)},set(a){let l=i==null?void 0:i.call(this);n.call(this,a),this.requestUpdate(t,l,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){var e;return(e=this.elementProperties.get(t))!=null?e:Ai}static _$Ei(){if(this.hasOwnProperty(zt("elementProperties")))return;let t=aa(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(zt("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(zt("properties"))){let e=this.properties,r=[...na(e),...sa(e)];for(let i of r)this.createProperty(i,e[i])}let t=this[Symbol.metadata];if(t!==null){let e=litPropertyMetadata.get(t);if(e!==void 0)for(let[r,i]of e)this.elementProperties.set(r,i)}this._$Eh=new Map;for(let[e,r]of this.elementProperties){let i=this._$Eu(e,r);i!==void 0&&this._$Eh.set(i,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){let e=[];if(Array.isArray(t)){let r=new Set(t.flat(1/0).reverse());for(let i of r)e.unshift(ur(i))}else t!==void 0&&e.push(ur(t));return e}static _$Eu(t,e){let r=e.attribute;return r===!1?void 0:typeof r=="string"?r:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var t;this._$ES=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),(t=this.constructor.l)==null||t.forEach(e=>e(this))}addController(t){var e,r;((e=this._$EO)!=null?e:this._$EO=new Set).add(t),this.renderRoot!==void 0&&this.isConnected&&((r=t.hostConnected)==null||r.call(t))}removeController(t){var e;(e=this._$EO)==null||e.delete(t)}_$E_(){let t=new Map,e=this.constructor.elementProperties;for(let r of e.keys())this.hasOwnProperty(r)&&(t.set(r,this[r]),delete this[r]);t.size>0&&(this._$Ep=t)}createRenderRoot(){var e;let t=(e=this.shadowRoot)!=null?e:this.attachShadow(this.constructor.shadowRootOptions);return ho(t,this.constructor.elementStyles),t}connectedCallback(){var t,e;(t=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(e=this._$EO)==null||e.forEach(r=>{var i;return(i=r.hostConnected)==null?void 0:i.call(r)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$EO)==null||t.forEach(e=>{var r;return(r=e.hostDisconnected)==null?void 0:r.call(e)})}attributeChangedCallback(t,e,r){this._$AK(t,r)}_$EC(t,e){var n;let r=this.constructor.elementProperties.get(t),i=this.constructor._$Eu(t,r);if(i!==void 0&&r.reflect===!0){let s=(((n=r.converter)==null?void 0:n.toAttribute)!==void 0?r.converter:Dt).toAttribute(e,r.type);this._$Em=t,s==null?this.removeAttribute(i):this.setAttribute(i,s),this._$Em=null}}_$AK(t,e){var n;let r=this.constructor,i=r._$Eh.get(t);if(i!==void 0&&this._$Em!==i){let s=r.getPropertyOptions(i),a=typeof s.converter=="function"?{fromAttribute:s.converter}:((n=s.converter)==null?void 0:n.fromAttribute)!==void 0?s.converter:Dt;this._$Em=i,this[i]=a.fromAttribute(e,s.type),this._$Em=null}}requestUpdate(t,e,r){var i;if(t!==void 0){if(r!=null||(r=this.constructor.getPropertyOptions(t)),!((i=r.hasChanged)!=null?i:fr)(this[t],e))return;this.P(t,e,r)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(t,e,r){var i;this._$AL.has(t)||this._$AL.set(t,e),r.reflect===!0&&this._$Em!==t&&((i=this._$Ej)!=null?i:this._$Ej=new Set).add(t)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(e){Promise.reject(e)}let t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var r,i;if(!this.isUpdatePending)return;if(!this.hasUpdated){if((r=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this._$Ep){for(let[s,a]of this._$Ep)this[s]=a;this._$Ep=void 0}let n=this.constructor.elementProperties;if(n.size>0)for(let[s,a]of n)a.wrapped!==!0||this._$AL.has(s)||this[s]===void 0||this.P(s,this[s],a)}let t=!1,e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),(i=this._$EO)==null||i.forEach(n=>{var s;return(s=n.hostUpdate)==null?void 0:s.call(n)}),this.update(e)):this._$EU()}catch(n){throw t=!1,this._$EU(),n}t&&this._$AE(e)}willUpdate(t){}_$AE(t){var e;(e=this._$EO)==null||e.forEach(r=>{var i;return(i=r.hostUpdated)==null?void 0:i.call(r)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Ej&&(this._$Ej=this._$Ej.forEach(e=>this._$EC(e,this[e]))),this._$EU()}updated(t){}firstUpdated(t){}},Ii;ye.elementStyles=[],ye.shadowRootOptions={mode:"open"},ye[zt("elementProperties")]=new Map,ye[zt("finalized")]=new Map,po==null||po({ReactiveElement:ye}),((Ii=Me.reactiveElementVersions)!=null?Ii:Me.reactiveElementVersions=[]).push("2.0.4");var Pt=globalThis,gr=Pt.trustedTypes,wi=gr?gr.createPolicy("lit-html",{createHTML:o=>o}):void 0,go="$lit$",xe=`lit$${Math.random().toFixed(9).slice(2)}$`,vo="?"+xe,ca=`<${vo}>`,Ze=document,Ut=()=>Ze.createComment(""),Vt=o=>o===null||typeof o!="object"&&typeof o!="function",bo=Array.isArray,Mi=o=>bo(o)||typeof(o==null?void 0:o[Symbol.iterator])=="function",uo=`[
2
- \f\r]`,$t=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Ci=/-->/g,ki=/>/g,We=RegExp(`>|${uo}(?:([^\\s"'>=/]+)(${uo}*=${uo}*(?:[^
3
- \f\r"'\`<>=]|("|')|))|$)`,"g"),Ri=/'/g,Li=/"/g,zi=/^(?:script|style|textarea|title)$/i,yo=o=>(t,...e)=>({_$litType$:o,strings:t,values:e}),u=yo(1),oc=yo(2),ic=yo(3),Ee=Symbol.for("lit-noChange"),b=Symbol.for("lit-nothing"),Ni=new WeakMap,Xe=Ze.createTreeWalker(Ze,129);function Di(o,t){if(!bo(o)||!o.hasOwnProperty("raw"))throw Error("invalid template strings array");return wi!==void 0?wi.createHTML(t):t}var $i=(o,t)=>{let e=o.length-1,r=[],i,n=t===2?"<svg>":t===3?"<math>":"",s=$t;for(let a=0;a<e;a++){let l=o[a],m,h,p=-1,v=0;for(;v<l.length&&(s.lastIndex=v,h=s.exec(l),h!==null);)v=s.lastIndex,s===$t?h[1]==="!--"?s=Ci:h[1]!==void 0?s=ki:h[2]!==void 0?(zi.test(h[2])&&(i=RegExp("</"+h[2],"g")),s=We):h[3]!==void 0&&(s=We):s===We?h[0]===">"?(s=i!=null?i:$t,p=-1):h[1]===void 0?p=-2:(p=s.lastIndex-h[2].length,m=h[1],s=h[3]===void 0?We:h[3]==='"'?Li:Ri):s===Li||s===Ri?s=We:s===Ci||s===ki?s=$t:(s=We,i=void 0);let f=s===We&&o[a+1].startsWith("/>")?" ":"";n+=s===$t?l+ca:p>=0?(r.push(m),l.slice(0,p)+go+l.slice(p)+xe+f):l+xe+(p===-2?a:f)}return[Di(o,n+(o[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),r]},Ht=class o{constructor({strings:t,_$litType$:e},r){let i;this.parts=[];let n=0,s=0,a=t.length-1,l=this.parts,[m,h]=$i(t,e);if(this.el=o.createElement(m,r),Xe.currentNode=this.el.content,e===2||e===3){let p=this.el.content.firstChild;p.replaceWith(...p.childNodes)}for(;(i=Xe.nextNode())!==null&&l.length<a;){if(i.nodeType===1){if(i.hasAttributes())for(let p of i.getAttributeNames())if(p.endsWith(go)){let v=h[s++],f=i.getAttribute(p).split(xe),x=/([.?@])?(.*)/.exec(v);l.push({type:1,index:n,name:x[2],strings:f,ctor:x[1]==="."?br:x[1]==="?"?yr:x[1]==="@"?xr:Ke}),i.removeAttribute(p)}else p.startsWith(xe)&&(l.push({type:6,index:n}),i.removeAttribute(p));if(zi.test(i.tagName)){let p=i.textContent.split(xe),v=p.length-1;if(v>0){i.textContent=gr?gr.emptyScript:"";for(let f=0;f<v;f++)i.append(p[f],Ut()),Xe.nextNode(),l.push({type:2,index:++n});i.append(p[v],Ut())}}}else if(i.nodeType===8)if(i.data===vo)l.push({type:2,index:n});else{let p=-1;for(;(p=i.data.indexOf(xe,p+1))!==-1;)l.push({type:7,index:n}),p+=xe.length-1}n++}}static createElement(t,e){let r=Ze.createElement("template");return r.innerHTML=t,r}};function je(o,t,e=o,r){var s,a,l;if(t===Ee)return t;let i=r!==void 0?(s=e.o)==null?void 0:s[r]:e.l,n=Vt(t)?void 0:t._$litDirective$;return(i==null?void 0:i.constructor)!==n&&((a=i==null?void 0:i._$AO)==null||a.call(i,!1),n===void 0?i=void 0:(i=new n(o),i._$AT(o,e,r)),r!==void 0?((l=e.o)!=null?l:e.o=[])[r]=i:e.l=i),i!==void 0&&(t=je(o,i._$AS(o,t.values),i,r)),t}var vr=class{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var m;let{el:{content:e},parts:r}=this._$AD,i=((m=t==null?void 0:t.creationScope)!=null?m:Ze).importNode(e,!0);Xe.currentNode=i;let n=Xe.nextNode(),s=0,a=0,l=r[0];for(;l!==void 0;){if(s===l.index){let h;l.type===2?h=new vt(n,n.nextSibling,this,t):l.type===1?h=new l.ctor(n,l.name,l.strings,this,t):l.type===6&&(h=new Er(n,this,t)),this._$AV.push(h),l=r[++a]}s!==(l==null?void 0:l.index)&&(n=Xe.nextNode(),s++)}return Xe.currentNode=Ze,i}p(t){let e=0;for(let r of this._$AV)r!==void 0&&(r.strings!==void 0?(r._$AI(t,r,e),e+=r.strings.length-2):r._$AI(t[e])),e++}},vt=class o{get _$AU(){var t,e;return(e=(t=this._$AM)==null?void 0:t._$AU)!=null?e:this.v}constructor(t,e,r,i){var n;this.type=2,this._$AH=b,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=r,this.options=i,this.v=(n=i==null?void 0:i.isConnected)!=null?n:!0}get parentNode(){let t=this._$AA.parentNode,e=this._$AM;return e!==void 0&&(t==null?void 0:t.nodeType)===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=je(this,t,e),Vt(t)?t===b||t==null||t===""?(this._$AH!==b&&this._$AR(),this._$AH=b):t!==this._$AH&&t!==Ee&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):Mi(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==b&&Vt(this._$AH)?this._$AA.nextSibling.data=t:this.T(Ze.createTextNode(t)),this._$AH=t}$(t){var n;let{values:e,_$litType$:r}=t,i=typeof r=="number"?this._$AC(t):(r.el===void 0&&(r.el=Ht.createElement(Di(r.h,r.h[0]),this.options)),r);if(((n=this._$AH)==null?void 0:n._$AD)===i)this._$AH.p(e);else{let s=new vr(i,this),a=s.u(this.options);s.p(e),this.T(a),this._$AH=s}}_$AC(t){let e=Ni.get(t.strings);return e===void 0&&Ni.set(t.strings,e=new Ht(t)),e}k(t){bo(this._$AH)||(this._$AH=[],this._$AR());let e=this._$AH,r,i=0;for(let n of t)i===e.length?e.push(r=new o(this.O(Ut()),this.O(Ut()),this,this.options)):r=e[i],r._$AI(n),i++;i<e.length&&(this._$AR(r&&r._$AB.nextSibling,i),e.length=i)}_$AR(t=this._$AA.nextSibling,e){var r;for((r=this._$AP)==null?void 0:r.call(this,!1,!0,e);t&&t!==this._$AB;){let i=t.nextSibling;t.remove(),t=i}}setConnected(t){var e;this._$AM===void 0&&(this.v=t,(e=this._$AP)==null||e.call(this,t))}},Ke=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,r,i,n){this.type=1,this._$AH=b,this._$AN=void 0,this.element=t,this.name=e,this._$AM=i,this.options=n,r.length>2||r[0]!==""||r[1]!==""?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=b}_$AI(t,e=this,r,i){let n=this.strings,s=!1;if(n===void 0)t=je(this,t,e,0),s=!Vt(t)||t!==this._$AH&&t!==Ee,s&&(this._$AH=t);else{let a=t,l,m;for(t=n[0],l=0;l<n.length-1;l++)m=je(this,a[r+l],e,l),m===Ee&&(m=this._$AH[l]),s||(s=!Vt(m)||m!==this._$AH[l]),m===b?t=b:t!==b&&(t+=(m!=null?m:"")+n[l+1]),this._$AH[l]=m}s&&!i&&this.j(t)}j(t){t===b?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t!=null?t:"")}},br=class extends Ke{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===b?void 0:t}},yr=class extends Ke{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==b)}},xr=class extends Ke{constructor(t,e,r,i,n){super(t,e,r,i,n),this.type=5}_$AI(t,e=this){var s;if((t=(s=je(this,t,e,0))!=null?s:b)===Ee)return;let r=this._$AH,i=t===b&&r!==b||t.capture!==r.capture||t.once!==r.once||t.passive!==r.passive,n=t!==b&&(r===b||i);i&&this.element.removeEventListener(this.name,this,r),n&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,r;typeof this._$AH=="function"?this._$AH.call((r=(e=this.options)==null?void 0:e.host)!=null?r:this.element,t):this._$AH.handleEvent(t)}},Er=class{constructor(t,e,r){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=r}get _$AU(){return this._$AM._$AU}_$AI(t){je(this,t)}},Pi={M:go,P:xe,A:vo,C:1,L:$i,R:vr,D:Mi,V:je,I:vt,H:Ke,N:yr,U:xr,B:br,F:Er},fo=Pt.litHtmlPolyfillSupport,Oi;fo==null||fo(Ht,vt),((Oi=Pt.litHtmlVersions)!=null?Oi:Pt.litHtmlVersions=[]).push("3.2.0");var Ui=(o,t,e)=>{var n,s;let r=(n=e==null?void 0:e.renderBefore)!=null?n:t,i=r._$litPart$;if(i===void 0){let a=(s=e==null?void 0:e.renderBefore)!=null?s:null;r._$litPart$=i=new vt(t.insertBefore(Ut(),a),a,void 0,e!=null?e:{})}return i._$AI(o),i};var ze=class extends ye{constructor(){super(...arguments),this.renderOptions={host:this},this.o=void 0}createRenderRoot(){var e,r;let t=super.createRenderRoot();return(r=(e=this.renderOptions).renderBefore)!=null||(e.renderBefore=t.firstChild),t}update(t){let e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this.o=Ui(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),(t=this.o)==null||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this.o)==null||t.setConnected(!1)}render(){return Ee}},Vi;ze._$litElement$=!0,ze.finalized=!0,(Vi=globalThis.litElementHydrateSupport)==null||Vi.call(globalThis,{LitElement:ze});var xo=globalThis.litElementPolyfillSupport;xo==null||xo({LitElement:ze});var Hi;((Hi=globalThis.litElementVersions)!=null?Hi:globalThis.litElementVersions=[]).push("4.1.0");var da={attribute:!0,type:String,converter:Dt,reflect:!1,hasChanged:fr},ma=(o=da,t,e)=>{let{kind:r,metadata:i}=e,n=globalThis.litPropertyMetadata.get(i);if(n===void 0&&globalThis.litPropertyMetadata.set(i,n=new Map),n.set(e.name,o),r==="accessor"){let{name:s}=e;return{set(a){let l=t.get.call(this);t.set.call(this,a),this.requestUpdate(s,l,o)},init(a){return a!==void 0&&this.P(s,void 0,o),a}}}if(r==="setter"){let{name:s}=e;return function(a){let l=this[s];t.call(this,a),this.requestUpdate(s,l,o)}}throw Error("Unsupported decorator location: "+r)};function d(o){return(t,e)=>typeof e=="object"?ma(o,t,e):((r,i,n)=>{let s=i.hasOwnProperty(n);return i.constructor.createProperty(n,s?{...r,wrapped:!0}:r),s?Object.getOwnPropertyDescriptor(i,n):void 0})(o,t,e)}function Y(o){return d({...o,state:!0,attribute:!1})}var De=(o,t,e)=>(e.configurable=!0,e.enumerable=!0,Reflect.decorate&&typeof t!="object"&&Object.defineProperty(o,t,e),e);function Fi(o,t){return(e,r,i)=>{let n=s=>{var a,l;return(l=(a=s.renderRoot)==null?void 0:a.querySelector(o))!=null?l:null};if(t){let{get:s,set:a}=typeof r=="object"?e:i!=null?i:(()=>{let l=Symbol();return{get(){return this[l]},set(m){this[l]=m}}})();return De(e,r,{get(){let l=s.call(this);return l===void 0&&(l=n(this),(l!==null||this.hasUpdated)&&a.call(this,l)),l}})}return De(e,r,{get(){return n(this)}})}}function Ft(o){return(t,e)=>{let{slot:r,selector:i}=o!=null?o:{},n="slot"+(r?`[name=${r}]`:":not([name])");return De(t,e,{get(){var l,m;let s=(l=this.renderRoot)==null?void 0:l.querySelector(n),a=(m=s==null?void 0:s.assignedElements(o))!=null?m:[];return i===void 0?a:a.filter(h=>h.matches(i))}})}}var A=o=>o!=null?o:b;var Bi=g`
1
+ "use strict";(()=>{var ea=Object.defineProperty;var ta=Object.getOwnPropertyDescriptor;var c=(o,t,e,r)=>{for(var i=r>1?void 0:r?ta(t,e):t,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(t,e,i):s(i))||i);return r&&i&&ea(t,e,i),i};var mr=globalThis,hr=mr.ShadowRoot&&(mr.ShadyCSS===void 0||mr.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,co=Symbol(),xi=new WeakMap,Ot=class{constructor(t,e,r){if(this._$cssResult$=!0,r!==co)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o,e=this.t;if(hr&&t===void 0){let r=e!==void 0&&e.length===1;r&&(t=xi.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),r&&xi.set(e,t))}return t}toString(){return this.cssText}},Ei=o=>new Ot(typeof o=="string"?o:o+"",void 0,co),g=(o,...t)=>{let e=o.length===1?o[0]:t.reduce((r,i,n)=>r+(s=>{if(s._$cssResult$===!0)return s.cssText;if(typeof s=="number")return s;throw Error("Value passed to 'css' function must be a 'css' function result: "+s+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+o[n+1],o[0]);return new Ot(e,o,co)},mo=(o,t)=>{if(hr)o.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(let e of t){let r=document.createElement("style"),i=mr.litNonce;i!==void 0&&r.setAttribute("nonce",i),r.textContent=e.cssText,o.appendChild(r)}},pr=hr?o=>o:o=>o instanceof CSSStyleSheet?(t=>{let e="";for(let r of t.cssRules)e+=r.cssText;return Ei(e)})(o):o;var{is:ra,defineProperty:oa,getOwnPropertyDescriptor:ia,getOwnPropertyNames:na,getOwnPropertySymbols:sa,getPrototypeOf:aa}=Object,Ne=globalThis,Ti=Ne.trustedTypes,la=Ti?Ti.emptyScript:"",ho=Ne.reactiveElementPolyfillSupport,Mt=(o,t)=>o,zt={toAttribute(o,t){switch(t){case Boolean:o=o?la:null;break;case Object:case Array:o=o==null?o:JSON.stringify(o)}return o},fromAttribute(o,t){let e=o;switch(t){case Boolean:e=o!==null;break;case Number:e=o===null?null:Number(o);break;case Object:case Array:try{e=JSON.parse(o)}catch{e=null}}return e}},ur=(o,t)=>!ra(o,t),Ai={attribute:!0,type:String,converter:zt,reflect:!1,hasChanged:ur},Si,_i;(Si=Symbol.metadata)!=null||(Symbol.metadata=Symbol("metadata")),(_i=Ne.litPropertyMetadata)!=null||(Ne.litPropertyMetadata=new WeakMap);var ye=class extends HTMLElement{static addInitializer(t){var e;this._$Ei(),((e=this.l)!=null?e:this.l=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=Ai){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(t,e),!e.noAccessor){let r=Symbol(),i=this.getPropertyDescriptor(t,r,e);i!==void 0&&oa(this.prototype,t,i)}}static getPropertyDescriptor(t,e,r){var s;let{get:i,set:n}=(s=ia(this.prototype,t))!=null?s:{get(){return this[e]},set(a){this[e]=a}};return{get(){return i==null?void 0:i.call(this)},set(a){let l=i==null?void 0:i.call(this);n.call(this,a),this.requestUpdate(t,l,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){var e;return(e=this.elementProperties.get(t))!=null?e:Ai}static _$Ei(){if(this.hasOwnProperty(Mt("elementProperties")))return;let t=aa(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(Mt("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Mt("properties"))){let e=this.properties,r=[...na(e),...sa(e)];for(let i of r)this.createProperty(i,e[i])}let t=this[Symbol.metadata];if(t!==null){let e=litPropertyMetadata.get(t);if(e!==void 0)for(let[r,i]of e)this.elementProperties.set(r,i)}this._$Eh=new Map;for(let[e,r]of this.elementProperties){let i=this._$Eu(e,r);i!==void 0&&this._$Eh.set(i,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){let e=[];if(Array.isArray(t)){let r=new Set(t.flat(1/0).reverse());for(let i of r)e.unshift(pr(i))}else t!==void 0&&e.push(pr(t));return e}static _$Eu(t,e){let r=e.attribute;return r===!1?void 0:typeof r=="string"?r:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var t;this._$ES=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),(t=this.constructor.l)==null||t.forEach(e=>e(this))}addController(t){var e,r;((e=this._$EO)!=null?e:this._$EO=new Set).add(t),this.renderRoot!==void 0&&this.isConnected&&((r=t.hostConnected)==null||r.call(t))}removeController(t){var e;(e=this._$EO)==null||e.delete(t)}_$E_(){let t=new Map,e=this.constructor.elementProperties;for(let r of e.keys())this.hasOwnProperty(r)&&(t.set(r,this[r]),delete this[r]);t.size>0&&(this._$Ep=t)}createRenderRoot(){var e;let t=(e=this.shadowRoot)!=null?e:this.attachShadow(this.constructor.shadowRootOptions);return mo(t,this.constructor.elementStyles),t}connectedCallback(){var t,e;(t=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(e=this._$EO)==null||e.forEach(r=>{var i;return(i=r.hostConnected)==null?void 0:i.call(r)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$EO)==null||t.forEach(e=>{var r;return(r=e.hostDisconnected)==null?void 0:r.call(e)})}attributeChangedCallback(t,e,r){this._$AK(t,r)}_$EC(t,e){var n;let r=this.constructor.elementProperties.get(t),i=this.constructor._$Eu(t,r);if(i!==void 0&&r.reflect===!0){let s=(((n=r.converter)==null?void 0:n.toAttribute)!==void 0?r.converter:zt).toAttribute(e,r.type);this._$Em=t,s==null?this.removeAttribute(i):this.setAttribute(i,s),this._$Em=null}}_$AK(t,e){var n;let r=this.constructor,i=r._$Eh.get(t);if(i!==void 0&&this._$Em!==i){let s=r.getPropertyOptions(i),a=typeof s.converter=="function"?{fromAttribute:s.converter}:((n=s.converter)==null?void 0:n.fromAttribute)!==void 0?s.converter:zt;this._$Em=i,this[i]=a.fromAttribute(e,s.type),this._$Em=null}}requestUpdate(t,e,r){var i;if(t!==void 0){if(r!=null||(r=this.constructor.getPropertyOptions(t)),!((i=r.hasChanged)!=null?i:ur)(this[t],e))return;this.P(t,e,r)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(t,e,r){var i;this._$AL.has(t)||this._$AL.set(t,e),r.reflect===!0&&this._$Em!==t&&((i=this._$Ej)!=null?i:this._$Ej=new Set).add(t)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(e){Promise.reject(e)}let t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var r,i;if(!this.isUpdatePending)return;if(!this.hasUpdated){if((r=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this._$Ep){for(let[s,a]of this._$Ep)this[s]=a;this._$Ep=void 0}let n=this.constructor.elementProperties;if(n.size>0)for(let[s,a]of n)a.wrapped!==!0||this._$AL.has(s)||this[s]===void 0||this.P(s,this[s],a)}let t=!1,e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),(i=this._$EO)==null||i.forEach(n=>{var s;return(s=n.hostUpdate)==null?void 0:s.call(n)}),this.update(e)):this._$EU()}catch(n){throw t=!1,this._$EU(),n}t&&this._$AE(e)}willUpdate(t){}_$AE(t){var e;(e=this._$EO)==null||e.forEach(r=>{var i;return(i=r.hostUpdated)==null?void 0:i.call(r)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Ej&&(this._$Ej=this._$Ej.forEach(e=>this._$EC(e,this[e]))),this._$EU()}updated(t){}firstUpdated(t){}},Ii;ye.elementStyles=[],ye.shadowRootOptions={mode:"open"},ye[Mt("elementProperties")]=new Map,ye[Mt("finalized")]=new Map,ho==null||ho({ReactiveElement:ye}),((Ii=Ne.reactiveElementVersions)!=null?Ii:Ne.reactiveElementVersions=[]).push("2.0.4");var $t=globalThis,fr=$t.trustedTypes,wi=fr?fr.createPolicy("lit-html",{createHTML:o=>o}):void 0,fo="$lit$",xe=`lit$${Math.random().toFixed(9).slice(2)}$`,go="?"+xe,ca=`<${go}>`,Xe=document,Pt=()=>Xe.createComment(""),Ut=o=>o===null||typeof o!="object"&&typeof o!="function",vo=Array.isArray,Mi=o=>vo(o)||typeof(o==null?void 0:o[Symbol.iterator])=="function",po=`[
2
+ \f\r]`,Dt=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Ci=/-->/g,ki=/>/g,Ye=RegExp(`>|${po}(?:([^\\s"'>=/]+)(${po}*=${po}*(?:[^
3
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),Ri=/'/g,Li=/"/g,zi=/^(?:script|style|textarea|title)$/i,bo=o=>(t,...e)=>({_$litType$:o,strings:t,values:e}),u=bo(1),oc=bo(2),ic=bo(3),Ee=Symbol.for("lit-noChange"),b=Symbol.for("lit-nothing"),Ni=new WeakMap,We=Xe.createTreeWalker(Xe,129);function Di(o,t){if(!vo(o)||!o.hasOwnProperty("raw"))throw Error("invalid template strings array");return wi!==void 0?wi.createHTML(t):t}var $i=(o,t)=>{let e=o.length-1,r=[],i,n=t===2?"<svg>":t===3?"<math>":"",s=Dt;for(let a=0;a<e;a++){let l=o[a],m,h,p=-1,v=0;for(;v<l.length&&(s.lastIndex=v,h=s.exec(l),h!==null);)v=s.lastIndex,s===Dt?h[1]==="!--"?s=Ci:h[1]!==void 0?s=ki:h[2]!==void 0?(zi.test(h[2])&&(i=RegExp("</"+h[2],"g")),s=Ye):h[3]!==void 0&&(s=Ye):s===Ye?h[0]===">"?(s=i!=null?i:Dt,p=-1):h[1]===void 0?p=-2:(p=s.lastIndex-h[2].length,m=h[1],s=h[3]===void 0?Ye:h[3]==='"'?Li:Ri):s===Li||s===Ri?s=Ye:s===Ci||s===ki?s=Dt:(s=Ye,i=void 0);let f=s===Ye&&o[a+1].startsWith("/>")?" ":"";n+=s===Dt?l+ca:p>=0?(r.push(m),l.slice(0,p)+fo+l.slice(p)+xe+f):l+xe+(p===-2?a:f)}return[Di(o,n+(o[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),r]},Vt=class o{constructor({strings:t,_$litType$:e},r){let i;this.parts=[];let n=0,s=0,a=t.length-1,l=this.parts,[m,h]=$i(t,e);if(this.el=o.createElement(m,r),We.currentNode=this.el.content,e===2||e===3){let p=this.el.content.firstChild;p.replaceWith(...p.childNodes)}for(;(i=We.nextNode())!==null&&l.length<a;){if(i.nodeType===1){if(i.hasAttributes())for(let p of i.getAttributeNames())if(p.endsWith(fo)){let v=h[s++],f=i.getAttribute(p).split(xe),x=/([.?@])?(.*)/.exec(v);l.push({type:1,index:n,name:x[2],strings:f,ctor:x[1]==="."?vr:x[1]==="?"?br:x[1]==="@"?yr:je}),i.removeAttribute(p)}else p.startsWith(xe)&&(l.push({type:6,index:n}),i.removeAttribute(p));if(zi.test(i.tagName)){let p=i.textContent.split(xe),v=p.length-1;if(v>0){i.textContent=fr?fr.emptyScript:"";for(let f=0;f<v;f++)i.append(p[f],Pt()),We.nextNode(),l.push({type:2,index:++n});i.append(p[v],Pt())}}}else if(i.nodeType===8)if(i.data===go)l.push({type:2,index:n});else{let p=-1;for(;(p=i.data.indexOf(xe,p+1))!==-1;)l.push({type:7,index:n}),p+=xe.length-1}n++}}static createElement(t,e){let r=Xe.createElement("template");return r.innerHTML=t,r}};function Ze(o,t,e=o,r){var s,a,l;if(t===Ee)return t;let i=r!==void 0?(s=e.o)==null?void 0:s[r]:e.l,n=Ut(t)?void 0:t._$litDirective$;return(i==null?void 0:i.constructor)!==n&&((a=i==null?void 0:i._$AO)==null||a.call(i,!1),n===void 0?i=void 0:(i=new n(o),i._$AT(o,e,r)),r!==void 0?((l=e.o)!=null?l:e.o=[])[r]=i:e.l=i),i!==void 0&&(t=Ze(o,i._$AS(o,t.values),i,r)),t}var gr=class{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var m;let{el:{content:e},parts:r}=this._$AD,i=((m=t==null?void 0:t.creationScope)!=null?m:Xe).importNode(e,!0);We.currentNode=i;let n=We.nextNode(),s=0,a=0,l=r[0];for(;l!==void 0;){if(s===l.index){let h;l.type===2?h=new gt(n,n.nextSibling,this,t):l.type===1?h=new l.ctor(n,l.name,l.strings,this,t):l.type===6&&(h=new xr(n,this,t)),this._$AV.push(h),l=r[++a]}s!==(l==null?void 0:l.index)&&(n=We.nextNode(),s++)}return We.currentNode=Xe,i}p(t){let e=0;for(let r of this._$AV)r!==void 0&&(r.strings!==void 0?(r._$AI(t,r,e),e+=r.strings.length-2):r._$AI(t[e])),e++}},gt=class o{get _$AU(){var t,e;return(e=(t=this._$AM)==null?void 0:t._$AU)!=null?e:this.v}constructor(t,e,r,i){var n;this.type=2,this._$AH=b,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=r,this.options=i,this.v=(n=i==null?void 0:i.isConnected)!=null?n:!0}get parentNode(){let t=this._$AA.parentNode,e=this._$AM;return e!==void 0&&(t==null?void 0:t.nodeType)===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=Ze(this,t,e),Ut(t)?t===b||t==null||t===""?(this._$AH!==b&&this._$AR(),this._$AH=b):t!==this._$AH&&t!==Ee&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):Mi(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==b&&Ut(this._$AH)?this._$AA.nextSibling.data=t:this.T(Xe.createTextNode(t)),this._$AH=t}$(t){var n;let{values:e,_$litType$:r}=t,i=typeof r=="number"?this._$AC(t):(r.el===void 0&&(r.el=Vt.createElement(Di(r.h,r.h[0]),this.options)),r);if(((n=this._$AH)==null?void 0:n._$AD)===i)this._$AH.p(e);else{let s=new gr(i,this),a=s.u(this.options);s.p(e),this.T(a),this._$AH=s}}_$AC(t){let e=Ni.get(t.strings);return e===void 0&&Ni.set(t.strings,e=new Vt(t)),e}k(t){vo(this._$AH)||(this._$AH=[],this._$AR());let e=this._$AH,r,i=0;for(let n of t)i===e.length?e.push(r=new o(this.O(Pt()),this.O(Pt()),this,this.options)):r=e[i],r._$AI(n),i++;i<e.length&&(this._$AR(r&&r._$AB.nextSibling,i),e.length=i)}_$AR(t=this._$AA.nextSibling,e){var r;for((r=this._$AP)==null?void 0:r.call(this,!1,!0,e);t&&t!==this._$AB;){let i=t.nextSibling;t.remove(),t=i}}setConnected(t){var e;this._$AM===void 0&&(this.v=t,(e=this._$AP)==null||e.call(this,t))}},je=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,r,i,n){this.type=1,this._$AH=b,this._$AN=void 0,this.element=t,this.name=e,this._$AM=i,this.options=n,r.length>2||r[0]!==""||r[1]!==""?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=b}_$AI(t,e=this,r,i){let n=this.strings,s=!1;if(n===void 0)t=Ze(this,t,e,0),s=!Ut(t)||t!==this._$AH&&t!==Ee,s&&(this._$AH=t);else{let a=t,l,m;for(t=n[0],l=0;l<n.length-1;l++)m=Ze(this,a[r+l],e,l),m===Ee&&(m=this._$AH[l]),s||(s=!Ut(m)||m!==this._$AH[l]),m===b?t=b:t!==b&&(t+=(m!=null?m:"")+n[l+1]),this._$AH[l]=m}s&&!i&&this.j(t)}j(t){t===b?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t!=null?t:"")}},vr=class extends je{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===b?void 0:t}},br=class extends je{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==b)}},yr=class extends je{constructor(t,e,r,i,n){super(t,e,r,i,n),this.type=5}_$AI(t,e=this){var s;if((t=(s=Ze(this,t,e,0))!=null?s:b)===Ee)return;let r=this._$AH,i=t===b&&r!==b||t.capture!==r.capture||t.once!==r.once||t.passive!==r.passive,n=t!==b&&(r===b||i);i&&this.element.removeEventListener(this.name,this,r),n&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,r;typeof this._$AH=="function"?this._$AH.call((r=(e=this.options)==null?void 0:e.host)!=null?r:this.element,t):this._$AH.handleEvent(t)}},xr=class{constructor(t,e,r){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=r}get _$AU(){return this._$AM._$AU}_$AI(t){Ze(this,t)}},Pi={M:fo,P:xe,A:go,C:1,L:$i,R:gr,D:Mi,V:Ze,I:gt,H:je,N:br,U:yr,B:vr,F:xr},uo=$t.litHtmlPolyfillSupport,Oi;uo==null||uo(Vt,gt),((Oi=$t.litHtmlVersions)!=null?Oi:$t.litHtmlVersions=[]).push("3.2.0");var Ui=(o,t,e)=>{var n,s;let r=(n=e==null?void 0:e.renderBefore)!=null?n:t,i=r._$litPart$;if(i===void 0){let a=(s=e==null?void 0:e.renderBefore)!=null?s:null;r._$litPart$=i=new gt(t.insertBefore(Pt(),a),a,void 0,e!=null?e:{})}return i._$AI(o),i};var Oe=class extends ye{constructor(){super(...arguments),this.renderOptions={host:this},this.o=void 0}createRenderRoot(){var e,r;let t=super.createRenderRoot();return(r=(e=this.renderOptions).renderBefore)!=null||(e.renderBefore=t.firstChild),t}update(t){let e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this.o=Ui(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),(t=this.o)==null||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this.o)==null||t.setConnected(!1)}render(){return Ee}},Vi;Oe._$litElement$=!0,Oe.finalized=!0,(Vi=globalThis.litElementHydrateSupport)==null||Vi.call(globalThis,{LitElement:Oe});var yo=globalThis.litElementPolyfillSupport;yo==null||yo({LitElement:Oe});var Hi;((Hi=globalThis.litElementVersions)!=null?Hi:globalThis.litElementVersions=[]).push("4.1.0");var da={attribute:!0,type:String,converter:zt,reflect:!1,hasChanged:ur},ma=(o=da,t,e)=>{let{kind:r,metadata:i}=e,n=globalThis.litPropertyMetadata.get(i);if(n===void 0&&globalThis.litPropertyMetadata.set(i,n=new Map),n.set(e.name,o),r==="accessor"){let{name:s}=e;return{set(a){let l=t.get.call(this);t.set.call(this,a),this.requestUpdate(s,l,o)},init(a){return a!==void 0&&this.P(s,void 0,o),a}}}if(r==="setter"){let{name:s}=e;return function(a){let l=this[s];t.call(this,a),this.requestUpdate(s,l,o)}}throw Error("Unsupported decorator location: "+r)};function d(o){return(t,e)=>typeof e=="object"?ma(o,t,e):((r,i,n)=>{let s=i.hasOwnProperty(n);return i.constructor.createProperty(n,s?{...r,wrapped:!0}:r),s?Object.getOwnPropertyDescriptor(i,n):void 0})(o,t,e)}function Y(o){return d({...o,state:!0,attribute:!1})}var Me=(o,t,e)=>(e.configurable=!0,e.enumerable=!0,Reflect.decorate&&typeof t!="object"&&Object.defineProperty(o,t,e),e);function Fi(o,t){return(e,r,i)=>{let n=s=>{var a,l;return(l=(a=s.renderRoot)==null?void 0:a.querySelector(o))!=null?l:null};if(t){let{get:s,set:a}=typeof r=="object"?e:i!=null?i:(()=>{let l=Symbol();return{get(){return this[l]},set(m){this[l]=m}}})();return Me(e,r,{get(){let l=s.call(this);return l===void 0&&(l=n(this),(l!==null||this.hasUpdated)&&a.call(this,l)),l}})}return Me(e,r,{get(){return n(this)}})}}function Ht(o){return(t,e)=>{let{slot:r,selector:i}=o!=null?o:{},n="slot"+(r?`[name=${r}]`:":not([name])");return Me(t,e,{get(){var l,m;let s=(l=this.renderRoot)==null?void 0:l.querySelector(n),a=(m=s==null?void 0:s.assignedElements(o))!=null?m:[];return i===void 0?a:a.filter(h=>h.matches(i))}})}}var A=o=>o!=null?o:b;var Bi=g`
4
4
  :host {
5
5
  box-sizing: border-box;
6
6
  }
@@ -10,11 +10,11 @@
10
10
  :host *::after {
11
11
  box-sizing: inherit;
12
12
  }
13
- `;var Tr=class extends ze{static register(t){customElements.get(t)||customElements.define(t,this)}};Tr.styles=[Bi];var Gi=Tr;var E=Gi;var $e=class extends Event{constructor(t,e,r){super("context-request",{bubbles:!0,composed:!0}),this.context=t,this.callback=e,this.subscribe=r!=null?r:!1}};var bt=class{constructor(t,e,r,i){var n;if(this.subscribe=!1,this.provided=!1,this.value=void 0,this.t=(s,a)=>{this.unsubscribe&&(this.unsubscribe!==a&&(this.provided=!1,this.unsubscribe()),this.subscribe||this.unsubscribe()),this.value=s,this.host.requestUpdate(),this.provided&&!this.subscribe||(this.provided=!0,this.callback&&this.callback(s,a)),this.unsubscribe=a},this.host=t,e.context!==void 0){let s=e;this.context=s.context,this.callback=s.callback,this.subscribe=(n=s.subscribe)!=null?n:!1}else this.context=e,this.callback=r,this.subscribe=i!=null?i:!1;this.host.addController(this)}hostConnected(){this.dispatchRequest()}hostDisconnected(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=void 0)}dispatchRequest(){this.host.dispatchEvent(new $e(this.context,this.t,this.subscribe))}};var Ar=class{get value(){return this.o}set value(t){this.setValue(t)}setValue(t,e=!1){let r=e||!Object.is(t,this.o);this.o=t,r&&this.updateObservers()}constructor(t){this.subscriptions=new Map,this.updateObservers=()=>{for(let[e,{disposer:r}]of this.subscriptions)e(this.o,r)},t!==void 0&&(this.value=t)}addCallback(t,e,r){if(!r)return void t(this.value);this.subscriptions.has(t)||this.subscriptions.set(t,{disposer:()=>{this.subscriptions.delete(t)},consumerHost:e});let{disposer:i}=this.subscriptions.get(t);t(this.value,i)}clearCallbacks(){this.subscriptions.clear()}};var Eo=class extends Event{constructor(t){super("context-provider",{bubbles:!0,composed:!0}),this.context=t}},yt=class extends Ar{constructor(t,e,r){var i,n;super(e.context!==void 0?e.initialValue:r),this.onContextRequest=s=>{let a=s.composedPath()[0];s.context===this.context&&a!==this.host&&(s.stopPropagation(),this.addCallback(s.callback,a,s.subscribe))},this.onProviderRequest=s=>{let a=s.composedPath()[0];if(s.context!==this.context||a===this.host)return;let l=new Set;for(let[m,{consumerHost:h}]of this.subscriptions)l.has(m)||(l.add(m),h.dispatchEvent(new $e(this.context,m,!0)));s.stopPropagation()},this.host=t,e.context!==void 0?this.context=e.context:this.context=e,this.attachListeners(),(n=(i=this.host).addController)==null||n.call(i,this)}attachListeners(){this.host.addEventListener("context-request",this.onContextRequest),this.host.addEventListener("context-provider",this.onProviderRequest)}hostConnected(){this.host.dispatchEvent(new Eo(this.context))}};var ha=g`
13
+ `;var Er=class extends Oe{static register(t){customElements.get(t)||customElements.define(t,this)}};Er.styles=[Bi];var Gi=Er;var E=Gi;var ze=class extends Event{constructor(t,e,r){super("context-request",{bubbles:!0,composed:!0}),this.context=t,this.callback=e,this.subscribe=r!=null?r:!1}};var vt=class{constructor(t,e,r,i){var n;if(this.subscribe=!1,this.provided=!1,this.value=void 0,this.t=(s,a)=>{this.unsubscribe&&(this.unsubscribe!==a&&(this.provided=!1,this.unsubscribe()),this.subscribe||this.unsubscribe()),this.value=s,this.host.requestUpdate(),this.provided&&!this.subscribe||(this.provided=!0,this.callback&&this.callback(s,a)),this.unsubscribe=a},this.host=t,e.context!==void 0){let s=e;this.context=s.context,this.callback=s.callback,this.subscribe=(n=s.subscribe)!=null?n:!1}else this.context=e,this.callback=r,this.subscribe=i!=null?i:!1;this.host.addController(this)}hostConnected(){this.dispatchRequest()}hostDisconnected(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=void 0)}dispatchRequest(){this.host.dispatchEvent(new ze(this.context,this.t,this.subscribe))}};var Tr=class{get value(){return this.o}set value(t){this.setValue(t)}setValue(t,e=!1){let r=e||!Object.is(t,this.o);this.o=t,r&&this.updateObservers()}constructor(t){this.subscriptions=new Map,this.updateObservers=()=>{for(let[e,{disposer:r}]of this.subscriptions)e(this.o,r)},t!==void 0&&(this.value=t)}addCallback(t,e,r){if(!r)return void t(this.value);this.subscriptions.has(t)||this.subscriptions.set(t,{disposer:()=>{this.subscriptions.delete(t)},consumerHost:e});let{disposer:i}=this.subscriptions.get(t);t(this.value,i)}clearCallbacks(){this.subscriptions.clear()}};var xo=class extends Event{constructor(t){super("context-provider",{bubbles:!0,composed:!0}),this.context=t}},bt=class extends Tr{constructor(t,e,r){var i,n;super(e.context!==void 0?e.initialValue:r),this.onContextRequest=s=>{let a=s.composedPath()[0];s.context===this.context&&a!==this.host&&(s.stopPropagation(),this.addCallback(s.callback,a,s.subscribe))},this.onProviderRequest=s=>{let a=s.composedPath()[0];if(s.context!==this.context||a===this.host)return;let l=new Set;for(let[m,{consumerHost:h}]of this.subscriptions)l.has(m)||(l.add(m),h.dispatchEvent(new ze(this.context,m,!0)));s.stopPropagation()},this.host=t,e.context!==void 0?this.context=e.context:this.context=e,this.attachListeners(),(n=(i=this.host).addController)==null||n.call(i,this)}attachListeners(){this.host.addEventListener("context-request",this.onContextRequest),this.host.addEventListener("context-provider",this.onProviderRequest)}hostConnected(){this.host.dispatchEvent(new xo(this.context))}};var ha=g`
14
14
  :host {
15
15
  display: contents;
16
16
  }
17
- `,Yi=ha;var Sr=class extends E{constructor({context:t,initialValue:e}){super(),this.context=new yt(this,{context:t,initialValue:e})}render(){return this.updateContext(),u`<slot></slot>`}};Sr.styles=[...E.styles,Yi];var Wi=Sr;var xt=Wi;var pa={PREFIX:"mdc",SEPARATOR:"-"},ua={NAMESPACE:pa},To=ua;var fa=o=>[To.NAMESPACE.PREFIX,o].join(To.NAMESPACE.SEPARATOR),y={constructTagName:fa};var Xi=y.constructTagName("avatar"),G={COUNTER:"counter",ICON:"icon",PHOTO:"photo",TEXT:"text"},Ao=99,ga="user-regular",N={24:24,32:32,48:48,64:64,72:72,88:88,124:124},Et={TYPE:G.PHOTO,SIZE:N[32],ICON_NAME:ga};var _r=o=>{class t extends o{constructor(){super(...arguments);this.size=Et.SIZE;this.isTyping=!1}}return c([d({type:String})],t.prototype,"src",2),c([d({type:String})],t.prototype,"initials",2),c([d({type:String})],t.prototype,"presence",2),c([d({type:Number,reflect:!0,attribute:"size"})],t.prototype,"size",2),c([d({type:Number})],t.prototype,"counter",2),c([d({type:Boolean,attribute:"is-typing"})],t.prototype,"isTyping",2),t};var de=o=>{class t extends o{}return c([d({type:String,attribute:"icon-name"})],t.prototype,"iconName",2),t};var C=g`
17
+ `,Yi=ha;var Ar=class extends E{constructor({context:t,initialValue:e}){super(),this.context=new bt(this,{context:t,initialValue:e})}render(){return this.updateContext(),u`<slot></slot>`}};Ar.styles=[...E.styles,Yi];var Wi=Ar;var yt=Wi;var pa={PREFIX:"mdc",SEPARATOR:"-"},ua={NAMESPACE:pa},Eo=ua;var fa=o=>[Eo.NAMESPACE.PREFIX,o].join(Eo.NAMESPACE.SEPARATOR),y={constructTagName:fa};var Xi=y.constructTagName("avatar"),G={COUNTER:"counter",ICON:"icon",PHOTO:"photo",TEXT:"text"},To=99,ga="user-regular",N={24:24,32:32,48:48,64:64,72:72,88:88,124:124},xt={TYPE:G.PHOTO,SIZE:N[32],ICON_NAME:ga};var Sr=o=>{class t extends o{constructor(){super(...arguments);this.size=xt.SIZE;this.isTyping=!1}}return c([d({type:String})],t.prototype,"src",2),c([d({type:String})],t.prototype,"initials",2),c([d({type:String})],t.prototype,"presence",2),c([d({type:Number,reflect:!0,attribute:"size"})],t.prototype,"size",2),c([d({type:Number})],t.prototype,"counter",2),c([d({type:Boolean,attribute:"is-typing"})],t.prototype,"isTyping",2),t};var de=o=>{class t extends o{}return c([d({type:String,attribute:"icon-name"})],t.prototype,"iconName",2),t};var C=g`
18
18
  :host {
19
19
  align-items: center;
20
20
  display: flex;
@@ -202,7 +202,7 @@
202
202
  outline: 0.125rem solid;
203
203
  }
204
204
  }
205
- `],Zi=va;var ji=y.constructTagName("presence"),H={ACTIVE:"active",AWAY:"away",AWAY_CALLING:"away-calling",BUSY:"busy",DND:"dnd",MEETING:"meeting",ON_CALL:"on-call",ON_DEVICE:"on-device",ON_MOBILE:"on-mobile",PAUSE:"pause",PTO:"pto",PRESENTING:"presenting",QUIET:"quiet",SCHEDULED:"scheduled"},P={XX_SMALL:"xx_small",X_SMALL:"x_small",SMALL:"small",MIDSIZE:"midsize",LARGE:"large",X_LARGE:"x_large",XX_LARGE:"xx_large"},Tt={TYPE:H.ACTIVE,SIZE:P.SMALL};var Bt=y.constructTagName("text"),k={BODY_SMALL_REGULAR:"body-small-regular",BODY_SMALL_MEDIUM:"body-small-medium",BODY_SMALL_BOLD:"body-small-bold",BODY_MIDSIZE_REGULAR:"body-midsize-regular",BODY_MIDSIZE_MEDIUM:"body-midsize-medium",BODY_MIDSIZE_BOLD:"body-midsize-bold",BODY_LARGE_REGULAR:"body-large-regular",BODY_LARGE_MEDIUM:"body-large-medium",BODY_LARGE_BOLD:"body-large-bold",BODY_SMALL_REGULAR_UNDERLINE:"body-small-regular-underline",BODY_SMALL_MEDIUM_UNDERLINE:"body-small-medium-underline",BODY_MIDSIZE_REGULAR_UNDERLINE:"body-midsize-regular-underline",BODY_MIDSIZE_MEDIUM_UNDERLINE:"body-midsize-medium-underline",BODY_LARGE_REGULAR_UNDERLINE:"body-large-regular-underline",BODY_LARGE_MEDIUM_UNDERLINE:"body-large-medium-underline",HEADING_SMALL_REGULAR:"heading-small-regular",HEADING_SMALL_MEDIUM:"heading-small-medium",HEADING_SMALL_BOLD:"heading-small-bold",HEADING_MIDSIZE_REGULAR:"heading-midsize-regular",HEADING_MIDSIZE_MEDIUM:"heading-midsize-medium",HEADING_MIDSIZE_BOLD:"heading-midsize-bold",HEADING_LARGE_REGULAR:"heading-large-regular",HEADING_LARGE_MEDIUM:"heading-large-medium",HEADING_LARGE_BOLD:"heading-large-bold",HEADING_XLARGE_REGULAR:"heading-xlarge-regular",HEADING_XLARGE_MEDIUM:"heading-xlarge-medium",HEADING_XLARGE_BOLD:"heading-xlarge-bold",HEADLINE_SMALL_LIGHT:"headline-small-light",HEADLINE_SMALL_REGULAR:"headline-small-regular"},O={H1:"h1",H2:"h2",H3:"h3",H4:"h4",H5:"h5",H6:"h6",P:"p",SMALL:"small",SPAN:"span",DIV:"div"},X={TYPE:k.BODY_LARGE_REGULAR,TEXT_ELEMENT_TAGNAME:O.P,CSS_PART_TEXT:"text",CHILDREN:"The quick brown fox jumps over the lazy dog"};var Ki=o=>({[N[124]]:P.XX_LARGE,[N[88]]:P.X_LARGE,[N[72]]:P.LARGE,[N[64]]:P.MIDSIZE,[N[48]]:P.SMALL,[N[32]]:P.X_SMALL,[N[24]]:P.XX_SMALL})[o]||P.X_SMALL,Qi=o=>({[N[124]]:4.75,[N[88]]:3,[N[72]]:2.5,[N[64]]:2.25,[N[48]]:1.75,[N[32]]:1.25,[N[24]]:1})[o]||1.25,Ji=o=>({[N[124]]:k.HEADING_XLARGE_MEDIUM,[N[88]]:k.HEADING_LARGE_MEDIUM,[N[72]]:k.HEADING_MIDSIZE_MEDIUM,[N[64]]:k.HEADING_SMALL_MEDIUM,[N[48]]:k.HEADING_SMALL_MEDIUM,[N[32]]:k.BODY_MIDSIZE_MEDIUM,[N[24]]:k.BODY_SMALL_MEDIUM})[o]||k.BODY_MIDSIZE_MEDIUM;var Gt=class extends _r(de(E)){constructor(){super(...arguments);this.isPhotoLoaded=!1}getPresenceTemplateBasedOnType(e){return e===G.COUNTER&&(this.counter||this.counter===0)?b:this.presence?u`
205
+ `],Zi=va;var ji=y.constructTagName("presence"),H={ACTIVE:"active",AWAY:"away",AWAY_CALLING:"away-calling",BUSY:"busy",DND:"dnd",MEETING:"meeting",ON_CALL:"on-call",ON_DEVICE:"on-device",ON_MOBILE:"on-mobile",PAUSE:"pause",PTO:"pto",PRESENTING:"presenting",QUIET:"quiet",SCHEDULED:"scheduled"},P={XX_SMALL:"xx_small",X_SMALL:"x_small",SMALL:"small",MIDSIZE:"midsize",LARGE:"large",X_LARGE:"x_large",XX_LARGE:"xx_large"},Et={TYPE:H.ACTIVE,SIZE:P.SMALL};var Ft=y.constructTagName("text"),k={BODY_SMALL_REGULAR:"body-small-regular",BODY_SMALL_MEDIUM:"body-small-medium",BODY_SMALL_BOLD:"body-small-bold",BODY_MIDSIZE_REGULAR:"body-midsize-regular",BODY_MIDSIZE_MEDIUM:"body-midsize-medium",BODY_MIDSIZE_BOLD:"body-midsize-bold",BODY_LARGE_REGULAR:"body-large-regular",BODY_LARGE_MEDIUM:"body-large-medium",BODY_LARGE_BOLD:"body-large-bold",BODY_SMALL_REGULAR_UNDERLINE:"body-small-regular-underline",BODY_SMALL_MEDIUM_UNDERLINE:"body-small-medium-underline",BODY_MIDSIZE_REGULAR_UNDERLINE:"body-midsize-regular-underline",BODY_MIDSIZE_MEDIUM_UNDERLINE:"body-midsize-medium-underline",BODY_LARGE_REGULAR_UNDERLINE:"body-large-regular-underline",BODY_LARGE_MEDIUM_UNDERLINE:"body-large-medium-underline",HEADING_SMALL_REGULAR:"heading-small-regular",HEADING_SMALL_MEDIUM:"heading-small-medium",HEADING_SMALL_BOLD:"heading-small-bold",HEADING_MIDSIZE_REGULAR:"heading-midsize-regular",HEADING_MIDSIZE_MEDIUM:"heading-midsize-medium",HEADING_MIDSIZE_BOLD:"heading-midsize-bold",HEADING_LARGE_REGULAR:"heading-large-regular",HEADING_LARGE_MEDIUM:"heading-large-medium",HEADING_LARGE_BOLD:"heading-large-bold",HEADING_XLARGE_REGULAR:"heading-xlarge-regular",HEADING_XLARGE_MEDIUM:"heading-xlarge-medium",HEADING_XLARGE_BOLD:"heading-xlarge-bold",HEADLINE_SMALL_LIGHT:"headline-small-light",HEADLINE_SMALL_REGULAR:"headline-small-regular"},O={H1:"h1",H2:"h2",H3:"h3",H4:"h4",H5:"h5",H6:"h6",P:"p",SMALL:"small",SPAN:"span",DIV:"div"},X={TYPE:k.BODY_LARGE_REGULAR,TEXT_ELEMENT_TAGNAME:O.P,CSS_PART_TEXT:"text",CHILDREN:"The quick brown fox jumps over the lazy dog"};var Ki=o=>({[N[124]]:P.XX_LARGE,[N[88]]:P.X_LARGE,[N[72]]:P.LARGE,[N[64]]:P.MIDSIZE,[N[48]]:P.SMALL,[N[32]]:P.X_SMALL,[N[24]]:P.XX_SMALL})[o]||P.X_SMALL,Qi=o=>({[N[124]]:4.75,[N[88]]:3,[N[72]]:2.5,[N[64]]:2.25,[N[48]]:1.75,[N[32]]:1.25,[N[24]]:1})[o]||1.25,Ji=o=>({[N[124]]:k.HEADING_XLARGE_MEDIUM,[N[88]]:k.HEADING_LARGE_MEDIUM,[N[72]]:k.HEADING_MIDSIZE_MEDIUM,[N[64]]:k.HEADING_SMALL_MEDIUM,[N[48]]:k.HEADING_SMALL_MEDIUM,[N[32]]:k.BODY_MIDSIZE_MEDIUM,[N[24]]:k.BODY_SMALL_MEDIUM})[o]||k.BODY_MIDSIZE_MEDIUM;var Bt=class extends Sr(de(E)){constructor(){super(...arguments);this.isPhotoLoaded=!1}getPresenceTemplateBasedOnType(e){return e===G.COUNTER&&(this.counter||this.counter===0)?b:this.presence?u`
206
206
  <mdc-presence part="presence" type="${this.presence}" size="${Ki(this.size)}"></mdc-presence>
207
207
  `:b}handleOnLoad(){this.isPhotoLoaded=!0}handleOnError(){this.isPhotoLoaded=!1,this.onerror&&this.onerror("There was a problem while fetching the <img/>. Please check the src attribute and try again.")}photoTemplate(){return u`
208
208
  <img
@@ -213,7 +213,7 @@
213
213
  @load="${this.handleOnLoad}"
214
214
  @error="${this.handleOnError}"
215
215
  />
216
- `}iconTemplate(){let e=this.iconName||Et.ICON_NAME;return u`
216
+ `}iconTemplate(){let e=this.iconName||xt.ICON_NAME;return u`
217
217
  <mdc-icon
218
218
  name="${A(e)}"
219
219
  length-unit="rem"
@@ -226,14 +226,14 @@
226
226
  >
227
227
  ${e}
228
228
  </mdc-text>
229
- `}generateCounterText(e){return e<0?"0":e>Ao?`${Ao}+`:e.toString()}generateInitialsText(e){return e.toUpperCase().slice(0,2)}generateTextContent(e){let r="";return e===G.TEXT&&this.initials&&(r=this.generateInitialsText(this.initials)),e===G.COUNTER&&(this.counter||this.counter===0)&&(r=this.generateCounterText(this.counter)),this.textTemplate(r)}getTypeBasedOnInputs(){return this.src?G.PHOTO:this.iconName?G.ICON:this.initials?G.TEXT:this.counter||this.counter===0?G.COUNTER:G.ICON}getTemplateBasedOnType(e){switch(e){case G.PHOTO:return this.photoTemplate();case G.TEXT:case G.COUNTER:return this.generateTextContent(e);case G.ICON:default:return this.iconTemplate()}}getLoadingContent(){return this.isTyping?u`<div part="loading-wrapper"><div part="loader"></div></div>`:b}getPhotoPlaceHolderContent(e){return this.isPhotoLoaded?b:e===G.PHOTO?this.initials?this.textTemplate(this.generateInitialsText(this.initials)):this.iconTemplate():b}update(e){super.update(e),e.has("src")&&!this.src&&(this.isPhotoLoaded=!1)}render(){let e=this.getTypeBasedOnInputs();return u`
229
+ `}generateCounterText(e){return e<0?"0":e>To?`${To}+`:e.toString()}generateInitialsText(e){return e.toUpperCase().slice(0,2)}generateTextContent(e){let r="";return e===G.TEXT&&this.initials&&(r=this.generateInitialsText(this.initials)),e===G.COUNTER&&(this.counter||this.counter===0)&&(r=this.generateCounterText(this.counter)),this.textTemplate(r)}getTypeBasedOnInputs(){return this.src?G.PHOTO:this.iconName?G.ICON:this.initials?G.TEXT:this.counter||this.counter===0?G.COUNTER:G.ICON}getTemplateBasedOnType(e){switch(e){case G.PHOTO:return this.photoTemplate();case G.TEXT:case G.COUNTER:return this.generateTextContent(e);case G.ICON:default:return this.iconTemplate()}}getLoadingContent(){return this.isTyping?u`<div part="loading-wrapper"><div part="loader"></div></div>`:b}getPhotoPlaceHolderContent(e){return this.isPhotoLoaded?b:e===G.PHOTO?this.initials?this.textTemplate(this.generateInitialsText(this.initials)):this.iconTemplate():b}update(e){super.update(e),e.has("src")&&!this.src&&(this.isPhotoLoaded=!1)}render(){let e=this.getTypeBasedOnInputs();return u`
230
230
  <div part="content" aria-hidden="true">
231
231
  ${this.getPhotoPlaceHolderContent(e)}
232
232
  ${this.getTemplateBasedOnType(e)}
233
233
  ${this.getLoadingContent()}
234
234
  ${this.getPresenceTemplateBasedOnType(e)}
235
235
  </div>
236
- `}};Gt.styles=[...E.styles,...Zi],c([Y()],Gt.prototype,"isPhotoLoaded",2);var So=Gt;var ba=[C,g`
236
+ `}};Bt.styles=[...E.styles,...Zi],c([Y()],Bt.prototype,"isPhotoLoaded",2);var Ao=Bt;var ba=[C,g`
237
237
  :host {
238
238
  --mdc-icon-fill-color: currentColor;
239
239
  --mdc-icon-size: var(--computed-icon-size);
@@ -248,7 +248,7 @@
248
248
  width: 100%;
249
249
  fill: var(--mdc-icon-fill-color);
250
250
  }
251
- `,...z()],en=ba;var ya=o=>{let{host:t,context:e,subscribe:r}=o;return new bt(t,{context:e,subscribe:r!=null?r:!0})},xa={consume:ya},tn=xa;var Ir=y.constructTagName("iconprovider"),rn=["svg"],on=["em","rem","px","%"],Ea={px:16,em:1,rem:1,"%":100},Te={FILE_EXTENSION:"svg",LENGTH_UNIT:"em",SIZE:Ea.em,SHOULD_CACHE:!1,ICON_SET:"momentum-icons"};var wr=class{};wr.context=Ir;var Cr=wr;var me=class extends xt{constructor(){super({context:Cr.context,initialValue:new Cr});this.iconSet=Te.ICON_SET;this.fileExtension=Te.FILE_EXTENSION;this.lengthUnit=Te.LENGTH_UNIT;this.size=Te.SIZE}static get Context(){return Cr.context}updateValuesInContext(){this.fileExtension&&rn.includes(this.fileExtension)?this.context.value.fileExtension=this.fileExtension:(this.fileExtension=Te.FILE_EXTENSION,this.context.value.fileExtension=Te.FILE_EXTENSION),this.context.value.iconSet=this.iconSet,this.context.value.url=this.url,this.context.value.size=this.size,this.context.value.cacheName=this.cacheName,this.context.value.cacheStrategy=this.cacheStrategy,this.lengthUnit&&on.includes(this.lengthUnit)?this.context.value.lengthUnit=this.lengthUnit:(this.lengthUnit=Te.LENGTH_UNIT,this.context.value.lengthUnit=Te.LENGTH_UNIT)}updateContext(){(this.context.value.fileExtension!==this.fileExtension||this.context.value.iconSet!==this.iconSet||this.context.value.url!==this.url||this.context.value.lengthUnit!==this.lengthUnit||this.context.value.size!==this.size||this.context.value.cacheName!==this.cacheName||this.context.value.cacheStrategy!==this.cacheStrategy)&&(this.updateValuesInContext(),this.context.updateObservers())}};c([d({type:String,attribute:"icon-set",reflect:!0})],me.prototype,"iconSet",2),c([d({type:String})],me.prototype,"url",2),c([d({type:String,attribute:"file-extension",reflect:!0})],me.prototype,"fileExtension",2),c([d({type:String,attribute:"length-unit",reflect:!0})],me.prototype,"lengthUnit",2),c([d({type:Number,reflect:!0})],me.prototype,"size",2),c([d({type:String,attribute:"cache-strategy"})],me.prototype,"cacheStrategy",2),c([d({type:String,attribute:"cache-name"})],me.prototype,"cacheName",2);var qt=me;var Yt={},nn=async o=>(Yt[o]===void 0&&(Yt[o]=new Map),{async set(t,e){Yt[o].set(t.url,await e.text())},async get(t){return Yt[o].get(t.url)},async delete(t){Yt[o].delete(t.url)}}),sn=async o=>{let t=await caches.open(o);return{set:async(e,r)=>{await t.put(e,r)},get:async e=>{let r=await t.match(e);return r==null?void 0:r.text()},delete:async e=>{await t.delete(e)}}},an=async(o,t)=>t==="in-memory-cache"?nn(o):sn(o);var ln=async o=>fetch(o).then(t=>{if(!t.ok)throw new Error("There was a problem while fetching the icon!");return t}),cn=async({url:o,name:t,fileExtension:e,cacheStrategy:r,cacheName:i,renewSignal:n})=>{let s=n(),a=new Request(`${o}/${t}.${e}`,{signal:s});return!i||!r||!["in-memory-cache","web-cache-api"].includes(r)?ln(a).then(l=>l.text()):an(i,r).then(l=>l.get(a).then(m=>m||ln(a.clone()).then(h=>{var p;return h.status<400&&h.headers.has("content-type")?(p=l.set)==null?void 0:p.call(l,a,h.clone()).then(()=>h.text()):h.text()})).catch(m=>{throw new Error(`Error in caching the Icon ${t}, ${m}`)}))};var dn=y.constructTagName("icon"),_o={NAME:void 0,SIZE:1};var j=class extends E{constructor(){super();this.name=_o.NAME;this.ariaLabel=null;this.iconProviderContext=tn.consume({host:this,context:qt.Context});this.abortController=new AbortController}prepareIconElement(e){let r=new DOMParser().parseFromString(e,"text/html").body.children[0];return this.name&&r.setAttribute("data-name",this.name),r.setAttribute("part","icon"),r.setAttribute("aria-hidden","true"),r}async getIconData(){if(this.iconProviderContext.value){let{fileExtension:r,url:i,cacheName:n,iconSet:s,cacheStrategy:a}=this.iconProviderContext.value;if(s==="custom-icons"&&i&&r&&this.name){let l=()=>(this.abortController.abort(),this.abortController=new AbortController,this.abortController.signal);return cn({url:i,name:this.name,fileExtension:r,cacheName:n,cacheStrategy:a,renewSignal:l}).then(m=>{let h=this.prepareIconElement(m);this.handleIconLoadedSuccess(h)}).catch(m=>{this.handleIconLoadedFailure(m)})}if(s==="momentum-icons"&&this.name)return import(`@momentum-design/icons/dist/ts/${this.name}.ts`).then(l=>{this.handleIconLoadedSuccess(l.default())}).catch(l=>{this.handleIconLoadedFailure(l)})}let e=new Error("IconProvider not found or not properly set up.");return this.handleIconLoadedFailure(e),Promise.reject(e)}handleIconLoadedSuccess(e){this.iconData=e;let r=new Event("load",{bubbles:!0,cancelable:!0});this.dispatchEvent(r)}handleIconLoadedFailure(e){let r=new CustomEvent("error",{bubbles:!0,cancelable:!0,detail:{error:e}});this.dispatchEvent(r)}updateSize(){var e;if(this.computedIconSize&&(this.lengthUnit||this.lengthUnitFromContext)){let r=`${this.computedIconSize}${(e=this.lengthUnit)!=null?e:this.lengthUnitFromContext}`;this.style.setProperty("--computed-icon-size",r)}}get computedIconSize(){var e,r;return(r=(e=this.size)!=null?e:this.sizeFromContext)!=null?r:_o.SIZE}updated(e){var r,i,n,s;super.updated(e),e.has("name")&&this.getIconData().catch(a=>{a.name!=="AbortError"&&this.onerror&&this.onerror(a)}),e.has("ariaLabel")&&(this.role=this.ariaLabel?"img":null),(e.has("size")||e.has("lengthUnit"))&&this.updateSize(),this.lengthUnitFromContext!==((r=this.iconProviderContext.value)==null?void 0:r.lengthUnit)&&(this.lengthUnitFromContext=(i=this.iconProviderContext.value)==null?void 0:i.lengthUnit,this.updateSize()),this.sizeFromContext!==((n=this.iconProviderContext.value)==null?void 0:n.size)&&(this.sizeFromContext=(s=this.iconProviderContext.value)==null?void 0:s.size,this.updateSize())}render(){return u` ${this.iconData} `}};j.styles=[...E.styles,...en],c([Y()],j.prototype,"iconData",2),c([Y()],j.prototype,"lengthUnitFromContext",2),c([Y()],j.prototype,"sizeFromContext",2),c([d({type:String,reflect:!0})],j.prototype,"name",2),c([d({type:Number})],j.prototype,"size",2),c([d({type:String,attribute:"length-unit"})],j.prototype,"lengthUnit",2),c([d({type:String,attribute:"aria-label"})],j.prototype,"ariaLabel",2),c([Y()],j.prototype,"abortController",2);var Io=j;Io.register(dn);var Ta=Io;var Aa=[C,g`
251
+ `,...z()],en=ba;var ya=o=>{let{host:t,context:e,subscribe:r}=o;return new vt(t,{context:e,subscribe:r!=null?r:!0})},xa={consume:ya},tn=xa;var _r=y.constructTagName("iconprovider"),rn=["svg"],on=["em","rem","px","%"],Ea={px:16,em:1,rem:1,"%":100},Te={FILE_EXTENSION:"svg",LENGTH_UNIT:"em",SIZE:Ea.em,SHOULD_CACHE:!1,ICON_SET:"momentum-icons"};var Ir=class{};Ir.context=_r;var wr=Ir;var me=class extends yt{constructor(){super({context:wr.context,initialValue:new wr});this.iconSet=Te.ICON_SET;this.fileExtension=Te.FILE_EXTENSION;this.lengthUnit=Te.LENGTH_UNIT;this.size=Te.SIZE}static get Context(){return wr.context}updateValuesInContext(){this.fileExtension&&rn.includes(this.fileExtension)?this.context.value.fileExtension=this.fileExtension:(this.fileExtension=Te.FILE_EXTENSION,this.context.value.fileExtension=Te.FILE_EXTENSION),this.context.value.iconSet=this.iconSet,this.context.value.url=this.url,this.context.value.size=this.size,this.context.value.cacheName=this.cacheName,this.context.value.cacheStrategy=this.cacheStrategy,this.lengthUnit&&on.includes(this.lengthUnit)?this.context.value.lengthUnit=this.lengthUnit:(this.lengthUnit=Te.LENGTH_UNIT,this.context.value.lengthUnit=Te.LENGTH_UNIT)}updateContext(){(this.context.value.fileExtension!==this.fileExtension||this.context.value.iconSet!==this.iconSet||this.context.value.url!==this.url||this.context.value.lengthUnit!==this.lengthUnit||this.context.value.size!==this.size||this.context.value.cacheName!==this.cacheName||this.context.value.cacheStrategy!==this.cacheStrategy)&&(this.updateValuesInContext(),this.context.updateObservers())}};c([d({type:String,attribute:"icon-set",reflect:!0})],me.prototype,"iconSet",2),c([d({type:String})],me.prototype,"url",2),c([d({type:String,attribute:"file-extension",reflect:!0})],me.prototype,"fileExtension",2),c([d({type:String,attribute:"length-unit",reflect:!0})],me.prototype,"lengthUnit",2),c([d({type:Number,reflect:!0})],me.prototype,"size",2),c([d({type:String,attribute:"cache-strategy"})],me.prototype,"cacheStrategy",2),c([d({type:String,attribute:"cache-name"})],me.prototype,"cacheName",2);var Gt=me;var qt={},nn=async o=>(qt[o]===void 0&&(qt[o]=new Map),{async set(t,e){qt[o].set(t.url,await e.text())},async get(t){return qt[o].get(t.url)},async delete(t){qt[o].delete(t.url)}}),sn=async o=>{let t=await caches.open(o);return{set:async(e,r)=>{await t.put(e,r)},get:async e=>{let r=await t.match(e);return r==null?void 0:r.text()},delete:async e=>{await t.delete(e)}}},an=async(o,t)=>t==="in-memory-cache"?nn(o):sn(o);var ln=async o=>fetch(o).then(t=>{if(!t.ok)throw new Error("There was a problem while fetching the icon!");return t}),cn=async({url:o,name:t,fileExtension:e,cacheStrategy:r,cacheName:i,renewSignal:n})=>{let s=n(),a=new Request(`${o}/${t}.${e}`,{signal:s});return!i||!r||!["in-memory-cache","web-cache-api"].includes(r)?ln(a).then(l=>l.text()):an(i,r).then(l=>l.get(a).then(m=>m||ln(a.clone()).then(h=>{var p;return h.status<400&&h.headers.has("content-type")?(p=l.set)==null?void 0:p.call(l,a,h.clone()).then(()=>h.text()):h.text()})).catch(m=>{throw new Error(`Error in caching the Icon ${t}, ${m}`)}))};var dn=y.constructTagName("icon"),So={NAME:void 0,SIZE:1};var j=class extends E{constructor(){super();this.name=So.NAME;this.ariaLabel=null;this.iconProviderContext=tn.consume({host:this,context:Gt.Context});this.abortController=new AbortController}prepareIconElement(e){let r=new DOMParser().parseFromString(e,"text/html").body.children[0];return this.name&&r.setAttribute("data-name",this.name),r.setAttribute("part","icon"),r.setAttribute("aria-hidden","true"),r}async getIconData(){if(this.iconProviderContext.value){let{fileExtension:r,url:i,cacheName:n,iconSet:s,cacheStrategy:a}=this.iconProviderContext.value;if(s==="custom-icons"&&i&&r&&this.name){let l=()=>(this.abortController.abort(),this.abortController=new AbortController,this.abortController.signal);return cn({url:i,name:this.name,fileExtension:r,cacheName:n,cacheStrategy:a,renewSignal:l}).then(m=>{let h=this.prepareIconElement(m);this.handleIconLoadedSuccess(h)}).catch(m=>{this.handleIconLoadedFailure(m)})}if(s==="momentum-icons"&&this.name)return import(`@momentum-design/icons/dist/ts/${this.name}.ts`).then(l=>{this.handleIconLoadedSuccess(l.default())}).catch(l=>{this.handleIconLoadedFailure(l)})}let e=new Error("IconProvider not found or not properly set up.");return this.handleIconLoadedFailure(e),Promise.reject(e)}handleIconLoadedSuccess(e){this.iconData=e;let r=new Event("load",{bubbles:!0,cancelable:!0});this.dispatchEvent(r)}handleIconLoadedFailure(e){let r=new CustomEvent("error",{bubbles:!0,cancelable:!0,detail:{error:e}});this.dispatchEvent(r)}updateSize(){var e;if(this.computedIconSize&&(this.lengthUnit||this.lengthUnitFromContext)){let r=`${this.computedIconSize}${(e=this.lengthUnit)!=null?e:this.lengthUnitFromContext}`;this.style.setProperty("--computed-icon-size",r)}}get computedIconSize(){var e,r;return(r=(e=this.size)!=null?e:this.sizeFromContext)!=null?r:So.SIZE}updated(e){var r,i,n,s;super.updated(e),e.has("name")&&this.getIconData().catch(a=>{a.name!=="AbortError"&&this.onerror&&this.onerror(a)}),e.has("ariaLabel")&&(this.role=this.ariaLabel?"img":null),(e.has("size")||e.has("lengthUnit"))&&this.updateSize(),this.lengthUnitFromContext!==((r=this.iconProviderContext.value)==null?void 0:r.lengthUnit)&&(this.lengthUnitFromContext=(i=this.iconProviderContext.value)==null?void 0:i.lengthUnit,this.updateSize()),this.sizeFromContext!==((n=this.iconProviderContext.value)==null?void 0:n.size)&&(this.sizeFromContext=(s=this.iconProviderContext.value)==null?void 0:s.size,this.updateSize())}render(){return u` ${this.iconData} `}};j.styles=[...E.styles,...en],c([Y()],j.prototype,"iconData",2),c([Y()],j.prototype,"lengthUnitFromContext",2),c([Y()],j.prototype,"sizeFromContext",2),c([d({type:String,reflect:!0})],j.prototype,"name",2),c([d({type:Number})],j.prototype,"size",2),c([d({type:String,attribute:"length-unit"})],j.prototype,"lengthUnit",2),c([d({type:String,attribute:"aria-label"})],j.prototype,"ariaLabel",2),c([Y()],j.prototype,"abortController",2);var _o=j;_o.register(dn);var Ta=_o;var Aa=[C,g`
252
252
  :host {
253
253
  --mdc-presence-active-background-color: var(--mds-color-theme-indicator-stable);
254
254
  --mdc-presence-away-background-color: var(--mds-color-theme-indicator-locked);
@@ -342,7 +342,7 @@
342
342
  .mdc-presence-icon__scheduled {
343
343
  color: var(--mdc-presence-scheduled-background-color);
344
344
  }
345
- `],mn=Aa;var hn=o=>{switch(o){case H.AWAY:return"recents-presence-badge-filled";case H.AWAY_CALLING:return"away-calling-presence-filled";case H.BUSY:return"busy-presence-bold";case H.DND:return"dnd-presence-badge-filled";case H.MEETING:return"camera-filled";case H.ON_CALL:return"handset-filled";case H.ON_DEVICE:return"generic-device-video-badge-filled";case H.ON_MOBILE:return"phone-badge-filled";case H.PAUSE:return"pause-badge-filled";case H.PTO:return"pto-presence-filled";case H.PRESENTING:return"share-screen-badge-filled";case H.QUIET:return"quiet-hours-presence-filled";case H.SCHEDULED:return"meetings-presence-badge-filled";case H.ACTIVE:default:return"active-presence-small-filled"}};var Qe=class extends E{constructor(){super(...arguments);this.type=Tt.TYPE;this.size=Tt.SIZE;this.currentIconType=Tt.TYPE}get iconSize(){switch(this.size){case P.MIDSIZE:return 1.16125;case P.LARGE:return 1.30625;case P.X_LARGE:return 1.596875;case P.XX_LARGE:return 2.25;case P.XX_SMALL:case P.X_SMALL:case P.SMALL:default:return this.size=Tt.SIZE,.875}}get icon(){let e=hn(this.type);return e==="active-presence-small-filled"&&(this.type=Tt.TYPE),e}handleOnLoad(){this.currentIconType=this.type}handleOnError(){this.onerror&&this.onerror("There was a problem while fetching the icon. Please check the icon name and try again.")}render(){return u`
345
+ `],mn=Aa;var hn=o=>{switch(o){case H.AWAY:return"recents-presence-badge-filled";case H.AWAY_CALLING:return"away-calling-presence-filled";case H.BUSY:return"busy-presence-bold";case H.DND:return"dnd-presence-badge-filled";case H.MEETING:return"camera-filled";case H.ON_CALL:return"handset-filled";case H.ON_DEVICE:return"generic-device-video-badge-filled";case H.ON_MOBILE:return"phone-badge-filled";case H.PAUSE:return"pause-badge-filled";case H.PTO:return"pto-presence-filled";case H.PRESENTING:return"share-screen-badge-filled";case H.QUIET:return"quiet-hours-presence-filled";case H.SCHEDULED:return"meetings-presence-badge-filled";case H.ACTIVE:default:return"active-presence-small-filled"}};var Ke=class extends E{constructor(){super(...arguments);this.type=Et.TYPE;this.size=Et.SIZE;this.currentIconType=Et.TYPE}get iconSize(){switch(this.size){case P.MIDSIZE:return 1.16125;case P.LARGE:return 1.30625;case P.X_LARGE:return 1.596875;case P.XX_LARGE:return 2.25;case P.XX_SMALL:case P.X_SMALL:case P.SMALL:default:return this.size=Et.SIZE,.875}}get icon(){let e=hn(this.type);return e==="active-presence-small-filled"&&(this.type=Et.TYPE),e}handleOnLoad(){this.currentIconType=this.type}handleOnError(){this.onerror&&this.onerror("There was a problem while fetching the icon. Please check the icon name and try again.")}render(){return u`
346
346
  <div class="mdc-presence mdc-presence__${this.size}">
347
347
  <mdc-icon
348
348
  class="mdc-presence-icon mdc-presence-icon__${this.currentIconType}"
@@ -352,7 +352,7 @@
352
352
  @error="${this.handleOnError}"
353
353
  ></mdc-icon>
354
354
  </div>
355
- `}};Qe.styles=[...E.styles,...mn],c([d({type:String,reflect:!0})],Qe.prototype,"type",2),c([d({type:String,reflect:!0})],Qe.prototype,"size",2),c([Y()],Qe.prototype,"currentIconType",2);var wo=Qe;wo.register(ji);var Sa=wo;var pn=g`
355
+ `}};Ke.styles=[...E.styles,...mn],c([d({type:String,reflect:!0})],Ke.prototype,"type",2),c([d({type:String,reflect:!0})],Ke.prototype,"size",2),c([Y()],Ke.prototype,"currentIconType",2);var Io=Ke;Io.register(ji);var Sa=Io;var pn=g`
356
356
  :host::part(text) {
357
357
  font-size: unset;
358
358
  font-weight: unset;
@@ -602,7 +602,7 @@
602
602
  display: block;
603
603
  font-family: var(--mdc-text-font-family);
604
604
  }
605
- `,pn],un=_a;var At=class extends E{constructor(){super(...arguments);this.type=X.TYPE;this.tagname=X.TEXT_ELEMENT_TAGNAME}render(){switch(this.tagname){case O.H1:return u`<h1 part=${X.CSS_PART_TEXT}><slot></slot></h1>`;case O.H2:return u`<h2 part=${X.CSS_PART_TEXT}><slot></slot></h2>`;case O.H3:return u`<h3 part=${X.CSS_PART_TEXT}><slot></slot></h3>`;case O.H4:return u`<h4 part=${X.CSS_PART_TEXT}><slot></slot></h4>`;case O.H5:return u`<h5 part=${X.CSS_PART_TEXT}><slot></slot></h5>`;case O.H6:return u`<h6 part=${X.CSS_PART_TEXT}><slot></slot></h6>`;case O.DIV:return u`<div part=${X.CSS_PART_TEXT}><slot></slot></div>`;case O.SPAN:return u`<span part=${X.CSS_PART_TEXT}><slot></slot></span>`;case O.SMALL:return u`<small part=${X.CSS_PART_TEXT}><slot></slot></small>`;case O.P:default:return u`<p part=${X.CSS_PART_TEXT}><slot></slot></p>`}}};At.styles=[...E.styles,...un],c([d({attribute:"type",reflect:!0,type:String})],At.prototype,"type",2),c([d({attribute:"tagname",reflect:!0,type:String})],At.prototype,"tagname",2);var Co=At;Co.register(Bt);var Ia=Co;So.register(Xi);var wa=So;var Yh=y.constructTagName("buttonsimple"),Ca={20:20,24:24,28:28,32:32,40:40,48:48,52:52,64:64,72:72,88:88,124:124},St={BUTTON:"button",SUBMIT:"submit",RESET:"reset"},kr={SIZE:Ca[32],TYPE:St.BUTTON,ROLE:"button"};var Wt=y.constructTagName("button"),Je={PRIMARY:"primary",SECONDARY:"secondary",TERTIARY:"tertiary"},Rr={40:40,32:32,28:28,24:24},Ae={64:64,52:52,20:20,...Rr},ko={POSITIVE:"positive",NEGATIVE:"negative",ACCENT:"accent",PROMOTIONAL:"promotional",DEFAULT:"default"},_t={PILL:"pill",ICON:"icon",PILL_WITH_ICON:"pill-with-icon"},he={VARIANT:Je.PRIMARY,SIZE:Rr[32],COLOR:ko.DEFAULT,TYPE_INTERNAL:_t.ICON,TYPE:St.BUTTON};var Pe=o=>{class t extends o{constructor(){super(...arguments);this.disabled=!1}}return c([d({reflect:!0,type:Boolean})],t.prototype,"disabled",2),t};var pe=o=>{class t extends o{constructor(...i){super(i);this.name="";this.value="";this.internals=this.attachInternals()}get form(){return this.internals.form}get validity(){return this.internals.validity}get willValidate(){return this.internals.willValidate}setValidity(){this.inputElement&&this.internals.setValidity(this.inputElement.validity,this.inputElement.validationMessage,this.inputElement)}checkValidity(){return this.setValidity(),this.internals.checkValidity()}reportValidity(){return this.setValidity(),this.internals.reportValidity()}}return t.formAssociated=!0,c([d({reflect:!0,type:String})],t.prototype,"name",2),c([d({reflect:!0,type:String})],t.prototype,"value",2),c([d({reflect:!0,type:String,attribute:"validation-message"})],t.prototype,"validationMessage",2),c([Fi("input")],t.prototype,"inputElement",2),t};var Lr=o=>{class t extends o{constructor(){super(...arguments);this.tabIndex=0}}return c([d({reflect:!0,type:Number})],t.prototype,"tabIndex",2),t};var ka=[C,g`
605
+ `,pn],un=_a;var Tt=class extends E{constructor(){super(...arguments);this.type=X.TYPE;this.tagname=X.TEXT_ELEMENT_TAGNAME}render(){switch(this.tagname){case O.H1:return u`<h1 part=${X.CSS_PART_TEXT}><slot></slot></h1>`;case O.H2:return u`<h2 part=${X.CSS_PART_TEXT}><slot></slot></h2>`;case O.H3:return u`<h3 part=${X.CSS_PART_TEXT}><slot></slot></h3>`;case O.H4:return u`<h4 part=${X.CSS_PART_TEXT}><slot></slot></h4>`;case O.H5:return u`<h5 part=${X.CSS_PART_TEXT}><slot></slot></h5>`;case O.H6:return u`<h6 part=${X.CSS_PART_TEXT}><slot></slot></h6>`;case O.DIV:return u`<div part=${X.CSS_PART_TEXT}><slot></slot></div>`;case O.SPAN:return u`<span part=${X.CSS_PART_TEXT}><slot></slot></span>`;case O.SMALL:return u`<small part=${X.CSS_PART_TEXT}><slot></slot></small>`;case O.P:default:return u`<p part=${X.CSS_PART_TEXT}><slot></slot></p>`}}};Tt.styles=[...E.styles,...un],c([d({attribute:"type",reflect:!0,type:String})],Tt.prototype,"type",2),c([d({attribute:"tagname",reflect:!0,type:String})],Tt.prototype,"tagname",2);var wo=Tt;wo.register(Ft);var Ia=wo;Ao.register(Xi);var wa=Ao;var Yh=y.constructTagName("buttonsimple"),Ca={20:20,24:24,28:28,32:32,40:40,48:48,52:52,64:64,72:72,88:88,124:124},At={BUTTON:"button",SUBMIT:"submit",RESET:"reset"},Cr={SIZE:Ca[32],TYPE:At.BUTTON,ROLE:"button"};var Yt=y.constructTagName("button"),Qe={PRIMARY:"primary",SECONDARY:"secondary",TERTIARY:"tertiary"},kr={40:40,32:32,28:28,24:24},Ae={64:64,52:52,20:20,...kr},Co={POSITIVE:"positive",NEGATIVE:"negative",ACCENT:"accent",PROMOTIONAL:"promotional",DEFAULT:"default"},St={PILL:"pill",ICON:"icon",PILL_WITH_ICON:"pill-with-icon"},he={VARIANT:Qe.PRIMARY,SIZE:kr[32],COLOR:Co.DEFAULT,TYPE_INTERNAL:St.ICON,TYPE:At.BUTTON};var De=o=>{class t extends o{constructor(){super(...arguments);this.disabled=!1}}return c([d({reflect:!0,type:Boolean})],t.prototype,"disabled",2),t};var Rr=o=>{class t extends o{constructor(){super(...arguments);this.tabIndex=0}}return c([d({reflect:!0,type:Number})],t.prototype,"tabIndex",2),t};var ka=[C,g`
606
606
  :host {
607
607
  border: 0.0625rem solid transparent;
608
608
  cursor: pointer;
@@ -658,16 +658,16 @@
658
658
  :host([size="20"]){
659
659
  height: var(--mdc-button-height-size-20);
660
660
  }
661
- `,...z()],fn=ka;var Se=class extends pe(Lr(Pe(E))){constructor(){super();this.active=!1;this.softDisabled=!1;this.size=kr.SIZE;this.role=kr.ROLE;this.type=kr.TYPE;this.prevTabindex=0;this.addEventListener("click",this.executeAction.bind(this)),this.addEventListener("keydown",this.handleKeyDown.bind(this)),this.addEventListener("keyup",this.handleKeyUp.bind(this)),this.addEventListener("blur",this.handleBlur.bind(this))}update(e){super.update(e),e.has("disabled")&&this.setDisabled(this,this.disabled),e.has("softDisabled")&&this.setSoftDisabled(this,this.softDisabled),e.has("active")&&this.setActive(this,this.active)}executeAction(){this.type===St.SUBMIT&&this.form&&this.form.requestSubmit(),this.type===St.RESET&&this.form&&this.form.reset()}setActive(e,r){r?e.setAttribute("aria-pressed","true"):e.removeAttribute("aria-pressed")}setSoftDisabled(e,r){r?e.setAttribute("aria-disabled","true"):e.removeAttribute("aria-disabled")}setDisabled(e,r){r?(e.setAttribute("aria-disabled","true"),this.prevTabindex=this.tabIndex,this.tabIndex=-1):(this.tabIndex===-1&&(this.tabIndex=this.prevTabindex),e.removeAttribute("aria-disabled"))}triggerClickEvent(){let e=new MouseEvent("click",{bubbles:!0,cancelable:!0,view:window});this.dispatchEvent(e)}handleBlur(){this.classList.contains("pressed")&&this.classList.remove("pressed")}handleKeyDown(e){["Enter"," "].includes(e.key)&&(this.classList.add("pressed"),e.key==="Enter"&&this.triggerClickEvent())}handleKeyUp(e){["Enter"," "].includes(e.key)&&(this.classList.remove("pressed"),e.key===" "&&this.triggerClickEvent())}render(){return u`
661
+ `,...z()],fn=ka;var pe=class extends Rr(De(E)){constructor(){super();this.active=!1;this.softDisabled=!1;this.size=Cr.SIZE;this.role=Cr.ROLE;this.type=Cr.TYPE;this.prevTabindex=0;this.internals=this.attachInternals(),this.addEventListener("click",this.executeAction.bind(this)),this.addEventListener("keydown",this.handleKeyDown.bind(this)),this.addEventListener("keyup",this.handleKeyUp.bind(this)),this.addEventListener("blur",this.handleBlur.bind(this))}get form(){return this.internals.form}update(e){super.update(e),e.has("disabled")&&this.setDisabled(this,this.disabled),e.has("softDisabled")&&this.setSoftDisabled(this,this.softDisabled),e.has("active")&&this.setActive(this,this.active)}executeAction(){this.type===At.SUBMIT&&this.form&&this.form.requestSubmit(),this.type===At.RESET&&this.form&&this.form.reset()}setActive(e,r){r?e.setAttribute("aria-pressed","true"):e.removeAttribute("aria-pressed")}setSoftDisabled(e,r){r?e.setAttribute("aria-disabled","true"):e.removeAttribute("aria-disabled")}setDisabled(e,r){r?(e.setAttribute("aria-disabled","true"),this.prevTabindex=this.tabIndex,this.tabIndex=-1):(this.tabIndex===-1&&(this.tabIndex=this.prevTabindex),e.removeAttribute("aria-disabled"))}triggerClickEvent(){let e=new MouseEvent("click",{bubbles:!0,cancelable:!0,view:window});this.dispatchEvent(e)}handleBlur(){this.classList.contains("pressed")&&this.classList.remove("pressed")}handleKeyDown(e){["Enter"," "].includes(e.key)&&(this.classList.add("pressed"),e.key==="Enter"&&this.triggerClickEvent())}handleKeyUp(e){["Enter"," "].includes(e.key)&&(this.classList.remove("pressed"),e.key===" "&&this.triggerClickEvent())}render(){return u`
662
662
  <slot></slot>
663
- `}};Se.styles=[...E.styles,...fn],c([d({type:Boolean,reflect:!0})],Se.prototype,"active",2),c([d({type:Boolean,attribute:"soft-disabled"})],Se.prototype,"softDisabled",2),c([d({type:Number,reflect:!0})],Se.prototype,"size",2),c([d({type:String,reflect:!0})],Se.prototype,"role",2),c([d({reflect:!0})],Se.prototype,"type",2);var Ue=Se;var Ra=[C,g`
663
+ `}};pe.formAssociated=!0,pe.styles=[...E.styles,...fn],c([d({type:Boolean,reflect:!0})],pe.prototype,"active",2),c([d({type:Boolean,attribute:"soft-disabled"})],pe.prototype,"softDisabled",2),c([d({type:Number,reflect:!0})],pe.prototype,"size",2),c([d({type:String,reflect:!0})],pe.prototype,"role",2),c([d({reflect:!0})],pe.prototype,"type",2);var $e=pe;var Ra=[C,g`
664
664
  :host {
665
665
  padding: unset;
666
666
  margin: unset;
667
667
  outline: none;
668
668
  border-radius: 0.25rem;
669
669
  }
670
- `,...z()],gn=Ra;var Xt=class extends _r(de(Ue)){constructor(){super();this.ariaLabel=null;this.active=void 0,this.disabled=void 0,this.softDisabled=void 0,this.role="button",this.type=he.TYPE}update(e){super.update(e),e.has("size")&&this.setSize(this.size)}setSize(e){this.setAttribute("size",Object.values(N).includes(e)?`${e}`:Et.SIZE.toString())}render(){return u`
670
+ `,...z()],gn=Ra;var Wt=class extends Sr(de($e)){constructor(){super();this.ariaLabel=null;this.active=void 0,this.disabled=void 0,this.softDisabled=void 0,this.role="button",this.type=he.TYPE}update(e){super.update(e),e.has("size")&&this.setSize(this.size)}setSize(e){this.setAttribute("size",Object.values(N).includes(e)?`${e}`:xt.SIZE.toString())}render(){return u`
671
671
  <mdc-avatar
672
672
  slot="prefixIcon"
673
673
  ?is-typing="${this.isTyping}"
@@ -678,7 +678,7 @@
678
678
  size="${A(this.size)}"
679
679
  src="${A(this.src)}"
680
680
  ></mdc-avatar>
681
- `}};Xt.styles=[...gn],c([d({type:String,attribute:"aria-label"})],Xt.prototype,"ariaLabel",2);var Ro=Xt;var vn=y.constructTagName("avatarbutton");Ro.register(vn);var La=Ro;var Nr={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},Zt=o=>(...t)=>({_$litDirective$:o,values:t}),It=class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,r){this.t=t,this._$AM=e,this.i=r}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}};var Or=Zt(class extends It{constructor(o){var t;if(super(o),o.type!==Nr.ATTRIBUTE||o.name!=="class"||((t=o.strings)==null?void 0:t.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(o){return" "+Object.keys(o).filter(t=>o[t]).join(" ")+" "}update(o,[t]){var r,i;if(this.st===void 0){this.st=new Set,o.strings!==void 0&&(this.nt=new Set(o.strings.join(" ").split(/\s/).filter(n=>n!=="")));for(let n in t)t[n]&&!((r=this.nt)!=null&&r.has(n))&&this.st.add(n);return this.render(t)}let e=o.element.classList;for(let n of this.st)n in t||(e.remove(n),this.st.delete(n));for(let n in t){let s=!!t[n];s===this.st.has(n)||(i=this.nt)!=null&&i.has(n)||(s?(e.add(n),this.st.add(n)):(e.remove(n),this.st.delete(n)))}return Ee}});var bn=y.constructTagName("badge"),_e={DOT:"dot",ICON:"icon",COUNTER:"counter",SUCCESS:"success",WARNING:"warning",ERROR:"error"},Mr={SUCCESS_ICON_NAME:"check-circle-badge-filled",WARNING_ICON_NAME:"warning-badge-filled",ERROR_ICON_NAME:"error-legacy-badge-filled"},zr={PRIMARY:"primary",SECONDARY:"secondary"},jt={SUCCESS:"success",WARNING:"warning",ERROR:"error"},Wp={...zr,...jt},Ve={TYPE:_e.DOT,MAX_COUNTER:99,MAX_COUNTER_LIMIT:999,VARIANT:zr.PRIMARY,ICON_SIZE:1};var Na=[C,g`
681
+ `}};Wt.styles=[...gn],c([d({type:String,attribute:"aria-label"})],Wt.prototype,"ariaLabel",2);var ko=Wt;var vn=y.constructTagName("avatarbutton");ko.register(vn);var La=ko;var Lr={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},Xt=o=>(...t)=>({_$litDirective$:o,values:t}),_t=class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,r){this.t=t,this._$AM=e,this.i=r}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}};var Nr=Xt(class extends _t{constructor(o){var t;if(super(o),o.type!==Lr.ATTRIBUTE||o.name!=="class"||((t=o.strings)==null?void 0:t.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(o){return" "+Object.keys(o).filter(t=>o[t]).join(" ")+" "}update(o,[t]){var r,i;if(this.st===void 0){this.st=new Set,o.strings!==void 0&&(this.nt=new Set(o.strings.join(" ").split(/\s/).filter(n=>n!=="")));for(let n in t)t[n]&&!((r=this.nt)!=null&&r.has(n))&&this.st.add(n);return this.render(t)}let e=o.element.classList;for(let n of this.st)n in t||(e.remove(n),this.st.delete(n));for(let n in t){let s=!!t[n];s===this.st.has(n)||(i=this.nt)!=null&&i.has(n)||(s?(e.add(n),this.st.add(n)):(e.remove(n),this.st.delete(n)))}return Ee}});var bn=y.constructTagName("badge"),Se={DOT:"dot",ICON:"icon",COUNTER:"counter",SUCCESS:"success",WARNING:"warning",ERROR:"error"},Or={SUCCESS_ICON_NAME:"check-circle-badge-filled",WARNING_ICON_NAME:"warning-badge-filled",ERROR_ICON_NAME:"error-legacy-badge-filled"},Mr={PRIMARY:"primary",SECONDARY:"secondary"},Zt={SUCCESS:"success",WARNING:"warning",ERROR:"error"},Bp={...Mr,...Zt},Pe={TYPE:Se.DOT,MAX_COUNTER:99,MAX_COUNTER_LIMIT:999,VARIANT:Mr.PRIMARY,ICON_SIZE:1};var Na=[C,g`
682
682
  :host {
683
683
  --mdc-badge-primary-foreground-color: var(--mds-color-theme-common-text-primary-normal);
684
684
  --mdc-badge-primary-background-color: var(--mds-color-theme-background-accent-normal);
@@ -747,21 +747,21 @@
747
747
  outline: 0.125rem solid;
748
748
  }
749
749
  }
750
- `],yn=Na;var ue=class extends de(E){constructor(){super(...arguments);this.variant=Ve.VARIANT;this.maxCounter=Ve.MAX_COUNTER;this.overlay=!1;this.ariaLabel=null}getCounterText(e,r){return r===void 0||typeof r!="number"||e===0?"":r>e?`${e}+`:e>Ve.MAX_COUNTER_LIMIT||r>Ve.MAX_COUNTER_LIMIT?`${Ve.MAX_COUNTER_LIMIT}+`:r.toString()}getBadgeIcon(e,r){return u`
750
+ `],yn=Na;var ue=class extends de(E){constructor(){super(...arguments);this.variant=Pe.VARIANT;this.maxCounter=Pe.MAX_COUNTER;this.overlay=!1;this.ariaLabel=null}getCounterText(e,r){return r===void 0||typeof r!="number"||e===0?"":r>e?`${e}+`:e>Pe.MAX_COUNTER_LIMIT||r>Pe.MAX_COUNTER_LIMIT?`${Pe.MAX_COUNTER_LIMIT}+`:r.toString()}getBadgeIcon(e,r){return u`
751
751
  <mdc-icon
752
- class="mdc-badge-icon ${Or({"mdc-badge-overlay":this.overlay,[`mdc-badge-icon__${r}`]:!0})}"
752
+ class="mdc-badge-icon ${Nr({"mdc-badge-overlay":this.overlay,[`mdc-badge-icon__${r}`]:!0})}"
753
753
  name="${A(e)}"
754
- size="${Ve.ICON_SIZE}"
754
+ size="${Pe.ICON_SIZE}"
755
755
  ></mdc-icon>
756
- `}getBadgeDot(){return u`<div class="mdc-badge-dot ${Or({"mdc-badge-overlay":this.overlay})}"></div>`}getBadgeCounterText(){return u`
756
+ `}getBadgeDot(){return u`<div class="mdc-badge-dot ${Nr({"mdc-badge-overlay":this.overlay})}"></div>`}getBadgeCounterText(){return u`
757
757
  <mdc-text
758
758
  type="${k.BODY_SMALL_MEDIUM}"
759
759
  tagname="${O.DIV}"
760
- class="mdc-badge-text ${Or({"mdc-badge-overlay":this.overlay})}"
760
+ class="mdc-badge-text ${Nr({"mdc-badge-overlay":this.overlay})}"
761
761
  >
762
762
  ${this.getCounterText(this.maxCounter,this.counter)}
763
763
  </mdc-text>
764
- `}setRoleByAriaLabel(){this.ariaLabel?this.role="img":this.role=null}getBadgeContentBasedOnType(){this.variant&&!Object.values(zr).includes(this.variant)&&(this.variant=Ve.VARIANT);let{iconName:e,type:r,variant:i}=this;switch(r){case _e.ICON:return this.getBadgeIcon(e||"",i);case _e.COUNTER:return this.getBadgeCounterText();case _e.SUCCESS:return this.getBadgeIcon(Mr.SUCCESS_ICON_NAME,jt.SUCCESS);case _e.WARNING:return this.getBadgeIcon(Mr.WARNING_ICON_NAME,jt.WARNING);case _e.ERROR:return this.getBadgeIcon(Mr.ERROR_ICON_NAME,jt.ERROR);case _e.DOT:default:return this.type=_e.DOT,this.getBadgeDot()}}update(e){super.update(e),e.has("ariaLabel")&&this.setRoleByAriaLabel()}render(){return this.getBadgeContentBasedOnType()}};ue.styles=[...E.styles,...yn],c([d({type:String,reflect:!0})],ue.prototype,"type",2),c([d({type:String,reflect:!0})],ue.prototype,"variant",2),c([d({type:Number})],ue.prototype,"counter",2),c([d({type:Number,attribute:"max-counter",reflect:!0})],ue.prototype,"maxCounter",2),c([d({type:Boolean})],ue.prototype,"overlay",2),c([d({type:String,attribute:"aria-label"})],ue.prototype,"ariaLabel",2);var Lo=ue;Lo.register(bn);var Oa=Lo;var Ma=g`
764
+ `}setRoleByAriaLabel(){this.ariaLabel?this.role="img":this.role=null}getBadgeContentBasedOnType(){this.variant&&!Object.values(Mr).includes(this.variant)&&(this.variant=Pe.VARIANT);let{iconName:e,type:r,variant:i}=this;switch(r){case Se.ICON:return this.getBadgeIcon(e||"",i);case Se.COUNTER:return this.getBadgeCounterText();case Se.SUCCESS:return this.getBadgeIcon(Or.SUCCESS_ICON_NAME,Zt.SUCCESS);case Se.WARNING:return this.getBadgeIcon(Or.WARNING_ICON_NAME,Zt.WARNING);case Se.ERROR:return this.getBadgeIcon(Or.ERROR_ICON_NAME,Zt.ERROR);case Se.DOT:default:return this.type=Se.DOT,this.getBadgeDot()}}update(e){super.update(e),e.has("ariaLabel")&&this.setRoleByAriaLabel()}render(){return this.getBadgeContentBasedOnType()}};ue.styles=[...E.styles,...yn],c([d({type:String,reflect:!0})],ue.prototype,"type",2),c([d({type:String,reflect:!0})],ue.prototype,"variant",2),c([d({type:Number})],ue.prototype,"counter",2),c([d({type:Number,attribute:"max-counter",reflect:!0})],ue.prototype,"maxCounter",2),c([d({type:Boolean})],ue.prototype,"overlay",2),c([d({type:String,attribute:"aria-label"})],ue.prototype,"ariaLabel",2);var Ro=ue;Ro.register(bn);var Oa=Ro;var Ma=g`
765
765
  :host {
766
766
  --mdc-bullet-background-color: var(--mds-color-theme-outline-secondary-normal);
767
767
  --mdc-bullet-size-small: 0.25rem;
@@ -782,7 +782,7 @@
782
782
  :host([size="large"]) {
783
783
  height: var(--mdc-bullet-size-large);
784
784
  }
785
- `,xn=[Ma];var En=y.constructTagName("bullet"),Tn={SMALL:"small",MEDIUM:"medium",LARGE:"large"};var Kt=class extends E{constructor(){super(...arguments);this.size=Tn.SMALL}};Kt.styles=[...E.styles,...xn],c([d({type:String,reflect:!0})],Kt.prototype,"size",2);var No=Kt;No.register(En);var za=No;var Da=g`
785
+ `,xn=[Ma];var En=y.constructTagName("bullet"),Tn={SMALL:"small",MEDIUM:"medium",LARGE:"large"};var jt=class extends E{constructor(){super(...arguments);this.size=Tn.SMALL}};jt.styles=[...E.styles,...xn],c([d({type:String,reflect:!0})],jt.prototype,"size",2);var Lo=jt;Lo.register(En);var za=Lo;var Da=g`
786
786
  :host {
787
787
  background-color: transparent;
788
788
  border-radius: 1.25rem;
@@ -954,7 +954,7 @@
954
954
  --mdc-button-secondary-hover-background-color: var(--mds-color-theme-button-secondary-hover);
955
955
  --mdc-button-secondary-pressed-background-color: var(--mds-color-theme-button-secondary-pressed);
956
956
  }
957
- `,An=[Da];var Sn=o=>{switch(o){case Ae[64]:return 2;case Ae[52]:return 1.75;case Ae[40]:return 1.25;default:return 1}},Qt=o=>{let t=o.split("-"),e=["bold","filled","regular","light"];return t.filter(r=>!e.includes(r)).join("-")};var K=class extends Ue{constructor(){super(...arguments);this.variant=he.VARIANT;this.size=he.SIZE;this.color=he.COLOR;this.role="button";this.typeInternal=he.TYPE_INTERNAL;this.iconSize=1}update(e){super.update(e),e.has("active")&&this.modifyIconName(this.active),e.has("size")&&this.setSize(this.size),e.has("variant")&&(this.setVariant(this.variant),this.setSize(this.size)),e.has("color")&&this.setColor(this.color),e.has("typeInternal")&&this.setSize(this.size),(e.has("prefixIcon")||e.has("postfixIcon"))&&this.inferButtonType()}modifyIconName(e){e?(this.prefixIcon&&(this.prevPrefixIcon=this.prefixIcon,this.prefixIcon=`${Qt(this.prefixIcon)}-filled`),this.postfixIcon&&(this.prevPostfixIcon=this.postfixIcon,this.postfixIcon=`${Qt(this.postfixIcon)}-filled`)):(this.prevPrefixIcon&&(this.prefixIcon=this.prevPrefixIcon),this.prevPostfixIcon&&(this.postfixIcon=this.prevPostfixIcon))}setVariant(e){this.setAttribute("variant",Object.values(Je).includes(e)?e:he.VARIANT)}setSize(e){let i=this.typeInternal===_t.ICON?Object.values(Ae).includes(e)&&!(e===Ae[20]&&this.variant!==Je.TERTIARY):Object.values(Rr).includes(e);this.setAttribute("size",i?`${e}`:`${he.SIZE}`),this.iconSize=Sn(e)}setColor(e){!Object.values(ko).includes(e)||this.variant===Je.TERTIARY?this.setAttribute("color",`${he.COLOR}`):this.setAttribute("color",e)}inferButtonType(){var r,i;let e=(i=(r=this.shadowRoot)==null?void 0:r.querySelector("slot"))==null?void 0:i.assignedNodes().filter(n=>{var s;return n.nodeType!==Node.TEXT_NODE||((s=n.textContent)==null?void 0:s.trim())}).length;e&&(this.prefixIcon||this.postfixIcon)?(this.typeInternal=_t.PILL_WITH_ICON,this.setAttribute("data-btn-type","pill-with-icon")):!e&&(this.prefixIcon||this.postfixIcon)?(this.typeInternal=_t.ICON,this.setAttribute("data-btn-type","icon")):(this.typeInternal=_t.PILL,this.setAttribute("data-btn-type","pill"))}render(){return u`
957
+ `,An=[Da];var Sn=o=>{switch(o){case Ae[64]:return 2;case Ae[52]:return 1.75;case Ae[40]:return 1.25;default:return 1}},Kt=o=>{let t=o.split("-"),e=["bold","filled","regular","light"];return t.filter(r=>!e.includes(r)).join("-")};var K=class extends $e{constructor(){super(...arguments);this.variant=he.VARIANT;this.size=he.SIZE;this.color=he.COLOR;this.role="button";this.typeInternal=he.TYPE_INTERNAL;this.iconSize=1}update(e){super.update(e),e.has("active")&&this.modifyIconName(this.active),e.has("size")&&this.setSize(this.size),e.has("variant")&&(this.setVariant(this.variant),this.setSize(this.size)),e.has("color")&&this.setColor(this.color),e.has("typeInternal")&&this.setSize(this.size),(e.has("prefixIcon")||e.has("postfixIcon"))&&this.inferButtonType()}modifyIconName(e){e?(this.prefixIcon&&(this.prevPrefixIcon=this.prefixIcon,this.prefixIcon=`${Kt(this.prefixIcon)}-filled`),this.postfixIcon&&(this.prevPostfixIcon=this.postfixIcon,this.postfixIcon=`${Kt(this.postfixIcon)}-filled`)):(this.prevPrefixIcon&&(this.prefixIcon=this.prevPrefixIcon),this.prevPostfixIcon&&(this.postfixIcon=this.prevPostfixIcon))}setVariant(e){this.setAttribute("variant",Object.values(Qe).includes(e)?e:he.VARIANT)}setSize(e){let i=this.typeInternal===St.ICON?Object.values(Ae).includes(e)&&!(e===Ae[20]&&this.variant!==Qe.TERTIARY):Object.values(kr).includes(e);this.setAttribute("size",i?`${e}`:`${he.SIZE}`),this.iconSize=Sn(e)}setColor(e){!Object.values(Co).includes(e)||this.variant===Qe.TERTIARY?this.setAttribute("color",`${he.COLOR}`):this.setAttribute("color",e)}inferButtonType(){var r,i;let e=(i=(r=this.shadowRoot)==null?void 0:r.querySelector("slot"))==null?void 0:i.assignedNodes().filter(n=>{var s;return n.nodeType!==Node.TEXT_NODE||((s=n.textContent)==null?void 0:s.trim())}).length;e&&(this.prefixIcon||this.postfixIcon)?(this.typeInternal=St.PILL_WITH_ICON,this.setAttribute("data-btn-type","pill-with-icon")):!e&&(this.prefixIcon||this.postfixIcon)?(this.typeInternal=St.ICON,this.setAttribute("data-btn-type","icon")):(this.typeInternal=St.PILL,this.setAttribute("data-btn-type","pill"))}render(){return u`
958
958
  ${this.prefixIcon?u` <mdc-icon
959
959
  name="${this.prefixIcon}"
960
960
  part="prefix-icon"
@@ -970,7 +970,7 @@
970
970
  length-unit="rem"
971
971
  >
972
972
  </mdc-icon>`:""}
973
- `}};K.styles=[...Ue.styles,...An],c([d({type:String,attribute:"prefix-icon",reflect:!0})],K.prototype,"prefixIcon",2),c([d({type:String,attribute:"postfix-icon",reflect:!0})],K.prototype,"postfixIcon",2),c([d({type:String})],K.prototype,"variant",2),c([d({type:Number})],K.prototype,"size",2),c([d({type:String})],K.prototype,"color",2),c([d({type:String,reflect:!0})],K.prototype,"role",2),c([Y()],K.prototype,"typeInternal",2),c([Y()],K.prototype,"iconSize",2);var Oo=K;Oo.register(Wt);var $a=Oo;var V=[];for(let o=0;o<256;++o)V.push((o+256).toString(16).slice(1));function _n(o,t=0){return(V[o[t+0]]+V[o[t+1]]+V[o[t+2]]+V[o[t+3]]+"-"+V[o[t+4]]+V[o[t+5]]+"-"+V[o[t+6]]+V[o[t+7]]+"-"+V[o[t+8]]+V[o[t+9]]+"-"+V[o[t+10]]+V[o[t+11]]+V[o[t+12]]+V[o[t+13]]+V[o[t+14]]+V[o[t+15]]).toLowerCase()}var Mo,Pa=new Uint8Array(16);function zo(){if(!Mo){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");Mo=crypto.getRandomValues.bind(crypto)}return Mo(Pa)}var Ua=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),Do={randomUUID:Ua};function Va(o,t,e){var i,n,s;if(Do.randomUUID&&!t&&!o)return Do.randomUUID();o=o||{};let r=(s=(n=o.random)!=null?n:(i=o.rng)==null?void 0:i.call(o))!=null?s:zo();if(r.length<16)throw new Error("Random bytes length must be >= 16");if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,t){if(e=e||0,e<0||e+16>t.length)throw new RangeError(`UUID byte range ${e}:${e+15} is out of buffer bounds`);for(let a=0;a<16;++a)t[e+a]=r[a];return t}return _n(r)}var Ie=Va;var U=o=>{class t extends o{constructor(){super(...arguments);this.dataAriaLabel=null}}return c([d({type:String,reflect:!0,attribute:"data-aria-label"})],t.prototype,"dataAriaLabel",2),t};var In=y.constructTagName("formfieldwrapper"),fe={DEFAULT:"default",ERROR:"error",PRIORITY:"priority",SUCCESS:"success",WARNING:"warning"},F={VALIDATION:fe.DEFAULT,HELPER_TEXT_ID:"helper-text-id",HEADING_ID:"heading-id"},et={TAGNAME:O.SPAN,TYPE:k.BODY_MIDSIZE_REGULAR,HEADER_TYPE:k.BODY_MIDSIZE_BOLD};var Ha=[C,g`
973
+ `}};K.styles=[...$e.styles,...An],c([d({type:String,attribute:"prefix-icon",reflect:!0})],K.prototype,"prefixIcon",2),c([d({type:String,attribute:"postfix-icon",reflect:!0})],K.prototype,"postfixIcon",2),c([d({type:String})],K.prototype,"variant",2),c([d({type:Number})],K.prototype,"size",2),c([d({type:String})],K.prototype,"color",2),c([d({type:String,reflect:!0})],K.prototype,"role",2),c([Y()],K.prototype,"typeInternal",2),c([Y()],K.prototype,"iconSize",2);var No=K;No.register(Yt);var $a=No;var U=o=>{class t extends o{constructor(){super(...arguments);this.dataAriaLabel=null}}return c([d({type:String,reflect:!0,attribute:"data-aria-label"})],t.prototype,"dataAriaLabel",2),t};var V=[];for(let o=0;o<256;++o)V.push((o+256).toString(16).slice(1));function _n(o,t=0){return(V[o[t+0]]+V[o[t+1]]+V[o[t+2]]+V[o[t+3]]+"-"+V[o[t+4]]+V[o[t+5]]+"-"+V[o[t+6]]+V[o[t+7]]+"-"+V[o[t+8]]+V[o[t+9]]+"-"+V[o[t+10]]+V[o[t+11]]+V[o[t+12]]+V[o[t+13]]+V[o[t+14]]+V[o[t+15]]).toLowerCase()}var Oo,Pa=new Uint8Array(16);function Mo(){if(!Oo){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");Oo=crypto.getRandomValues.bind(crypto)}return Oo(Pa)}var Ua=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),zo={randomUUID:Ua};function Va(o,t,e){var i,n,s;if(zo.randomUUID&&!t&&!o)return zo.randomUUID();o=o||{};let r=(s=(n=o.random)!=null?n:(i=o.rng)==null?void 0:i.call(o))!=null?s:Mo();if(r.length<16)throw new Error("Random bytes length must be >= 16");if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,t){if(e=e||0,e<0||e+16>t.length)throw new RangeError(`UUID byte range ${e}:${e+15} is out of buffer bounds`);for(let a=0;a<16;++a)t[e+a]=r[a];return t}return _n(r)}var Do=Va;var Ue=o=>{class t extends o{constructor(...i){super(i);this.name="";this.value="";this.internals=this.attachInternals(),this.id=`mdc-input-${Do()}`}get form(){return this.internals.form}get validity(){return this.internals.validity}get willValidate(){return this.internals.willValidate}setValidity(){this.inputElement&&this.internals.setValidity(this.inputElement.validity,this.inputElement.validationMessage,this.inputElement)}checkValidity(){return this.setValidity(),this.internals.checkValidity()}reportValidity(){return this.setValidity(),this.internals.reportValidity()}}return t.formAssociated=!0,c([d({reflect:!0,type:String})],t.prototype,"name",2),c([d({reflect:!0,type:String})],t.prototype,"value",2),c([d({reflect:!0,type:String,attribute:"validation-message"})],t.prototype,"validationMessage",2),c([Fi("input")],t.prototype,"inputElement",2),t};var In=y.constructTagName("formfieldwrapper"),fe={DEFAULT:"default",ERROR:"error",PRIORITY:"priority",SUCCESS:"success",WARNING:"warning"},F={VALIDATION:fe.DEFAULT,HELPER_TEXT_ID:"helper-text-id",HEADING_ID:"heading-id"},Je={TAGNAME:O.SPAN,TYPE:k.BODY_MIDSIZE_REGULAR,HEADER_TYPE:k.BODY_MIDSIZE_BOLD};var Ha=[C,g`
974
974
  :host {
975
975
  flex-direction: column;
976
976
  align-items: flex-start;
@@ -1019,22 +1019,22 @@
1019
1019
  :host([help-text-type='priority']) .mdc-help-text {
1020
1020
  color: var(--mds-color-theme-text-accent-normal);
1021
1021
  }
1022
- `],wn=Ha;var Cn=o=>({[fe.ERROR]:"error-legacy-badge-filled",[fe.WARNING]:"warning-badge-filled",[fe.SUCCESS]:"check-circle-badge-filled",[fe.PRIORITY]:"priority-badge-filled",[fe.DEFAULT]:""})[o]||"";var we=class extends Pe(E){constructor(){super(...arguments);this.id="";this.helpTextType=F.VALIDATION;this.shouldRenderLabel=!0}renderLabelElement(){return this.label?this.shouldRenderLabel?u`<label for="${this.id}" class="mdc-label" part="label">${this.label}</label>`:u` <mdc-text
1022
+ `],wn=Ha;var Cn=o=>({[fe.ERROR]:"error-legacy-badge-filled",[fe.WARNING]:"warning-badge-filled",[fe.SUCCESS]:"check-circle-badge-filled",[fe.PRIORITY]:"priority-badge-filled",[fe.DEFAULT]:""})[o]||"";var _e=class extends De(E){constructor(){super(...arguments);this.id="";this.helpTextType=F.VALIDATION;this.shouldRenderLabel=!0}renderLabelElement(){return this.label?this.shouldRenderLabel?u`<label for="${this.id}" class="mdc-label" part="label">${this.label}</label>`:u` <mdc-text
1023
1023
  id="${F.HEADING_ID}"
1024
- tagname="${et.TAGNAME}"
1025
- type="${et.HEADER_TYPE}"
1024
+ tagname="${Je.TAGNAME}"
1025
+ type="${Je.HEADER_TYPE}"
1026
1026
  part="label"
1027
1027
  >${this.label}</mdc-text
1028
1028
  >`:b}renderRequiredLabel(){return this.requiredLabel?u`
1029
- <mdc-text part="required-label" tagname=${et.TAGNAME} type=${et.TYPE}>
1029
+ <mdc-text part="required-label" tagname=${Je.TAGNAME} type=${Je.TYPE}>
1030
1030
  (${this.requiredLabel})
1031
1031
  </mdc-text>
1032
1032
  `:b}renderHelpTextIcon(){if(!this.helpText)return b;let e=Cn(this.helpTextType||F.VALIDATION);return e&&!this.disabled?u`<mdc-icon part="helper-icon" size="1" length-unit="rem" name=${e}></mdc-icon>`:b}renderHelpText(){return this.helpText?u`
1033
1033
  <mdc-text
1034
1034
  id="${F.HELPER_TEXT_ID}"
1035
1035
  part="help-text"
1036
- tagname=${et.TAGNAME}
1037
- type=${et.TYPE}
1036
+ tagname=${Je.TAGNAME}
1037
+ type=${Je.TYPE}
1038
1038
  >
1039
1039
  ${this.helpText}
1040
1040
  </mdc-text>
@@ -1045,7 +1045,7 @@
1045
1045
  </div>`:b}renderHelperText(){return this.helpText?u`<div class="mdc-help-text" part="mdc-help-text">
1046
1046
  <slot name="help-icon">${this.renderHelpTextIcon()}</slot>
1047
1047
  <slot name="help-text">${this.renderHelpText()}</slot>
1048
- </div>`:b}};we.styles=[...E.styles,...wn],c([d({reflect:!0,type:String})],we.prototype,"label",2),c([d({type:String,reflect:!0,attribute:"required-label"})],we.prototype,"requiredLabel",2),c([d({type:String})],we.prototype,"id",2),c([d({reflect:!0,attribute:"help-text-type"})],we.prototype,"helpTextType",2),c([d({type:String,reflect:!0,attribute:"help-text"})],we.prototype,"helpText",2);var Q=we;var kn=y.constructTagName("checkbox"),$o={CHECKED:"check-bold",INDETERMINATE:"minus-bold"};var Fa=[g`
1048
+ </div>`:b}};_e.styles=[...E.styles,...wn],c([d({reflect:!0,type:String})],_e.prototype,"label",2),c([d({type:String,reflect:!0,attribute:"required-label"})],_e.prototype,"requiredLabel",2),c([d({type:String})],_e.prototype,"id",2),c([d({reflect:!0,attribute:"help-text-type"})],_e.prototype,"helpTextType",2),c([d({type:String,reflect:!0,attribute:"help-text"})],_e.prototype,"helpText",2);var Q=_e;var kn=y.constructTagName("checkbox"),$o={CHECKED:"check-bold",INDETERMINATE:"minus-bold"};var Fa=[g`
1049
1049
  :host {
1050
1050
  --mdc-checkbox-background-color-hover: var(--mds-color-theme-control-inactive-hover);
1051
1051
  --mdc-checkbox-border-color: var(--mds-color-theme-outline-button-normal);
@@ -1147,10 +1147,10 @@
1147
1147
  border: 0.0625rem solid var(--mdc-checkbox-border-color);
1148
1148
  }
1149
1149
  }
1150
- `,...z(!0)],Rn=Fa;var tt=class extends pe(U(Q)){constructor(){super();this.checked=!1;this.indeterminate=!1;this.autofocus=!1;this.renderLabelAndHelperText=()=>this.label?u`<div class="text-container">
1150
+ `,...z(!0)],Rn=Fa;var et=class extends Ue(U(Q)){constructor(){super();this.checked=!1;this.indeterminate=!1;this.autofocus=!1;this.renderLabelAndHelperText=()=>this.label?u`<div class="text-container">
1151
1151
  ${this.renderLabel()}
1152
1152
  ${this.renderHelperText()}
1153
- </div>`:b;this.helpTextType=void 0,this.id=`mdc-input-${Ie()}`}setFormValue(){let e=null;this.checked?e=this.value?this.value:"on":e=null,this.manageRequired(),this.internals.setFormValue(e)}manageRequired(){!this.checked&&this.requiredLabel?(this.validationMessage?this.inputElement.setCustomValidity(this.validationMessage):this.inputElement.setCustomValidity(""),this.setValidity()):this.internals.setValidity({})}formResetCallback(){this.checked=!1,this.indeterminate=!1}formStateRestoreCallback(e){e&&(this.checked=!0)}toggleState(){this.disabled||(this.checked=!this.checked,this.indeterminate=!1)}handleKeyDown(e){var r;e.key==="Enter"&&((r=this.form)==null||r.requestSubmit())}handleChange(e){this.toggleState();let r=e.constructor;this.dispatchEvent(new r(e.type,e))}update(e){super.update(e),e.has("checked")&&this.setFormValue()}render(){var r;let e=this.checked||this.indeterminate?u`
1153
+ </div>`:b;this.helpTextType=void 0}setFormValue(){let e=null;this.checked?e=this.value?this.value:"on":e=null,this.manageRequired(),this.internals.setFormValue(e)}manageRequired(){!this.checked&&this.requiredLabel?(this.validationMessage?this.inputElement.setCustomValidity(this.validationMessage):this.inputElement.setCustomValidity(""),this.setValidity()):this.internals.setValidity({})}formResetCallback(){this.checked=!1,this.indeterminate=!1}formStateRestoreCallback(e){e&&(this.checked=!0)}toggleState(){this.disabled||(this.checked=!this.checked,this.indeterminate=!1)}handleKeyDown(e){var r;e.key==="Enter"&&((r=this.form)==null||r.requestSubmit())}handleChange(e){this.toggleState();let r=e.constructor;this.dispatchEvent(new r(e.type,e))}update(e){super.update(e),e.has("checked")&&this.setFormValue()}render(){var r;let e=this.checked||this.indeterminate?u`
1154
1154
  <mdc-icon
1155
1155
  class="icon"
1156
1156
  name="${this.indeterminate?$o.INDETERMINATE:$o.CHECKED}"
@@ -1180,7 +1180,7 @@
1180
1180
  <div class="icon-container">${e}</div>
1181
1181
  </div>
1182
1182
  ${this.renderLabelAndHelperText()}
1183
- `}};tt.styles=[...Q.styles,...Rn],c([d({type:Boolean,reflect:!0})],tt.prototype,"checked",2),c([d({type:Boolean,reflect:!0})],tt.prototype,"indeterminate",2),c([d({type:Boolean,reflect:!0})],tt.prototype,"autofocus",2);var Po=tt;Po.register(kn);var Ba=Po;var Ln=y.constructTagName("divider"),Jt={HORIZONTAL:"horizontal",VERTICAL:"vertical"},Uo={SOLID:"solid",GRADIENT:"gradient"},He={POSITIVE:"positive",NEGATIVE:"negative"},er={UP:"arrow-up-regular",DOWN:"arrow-down-regular",LEFT:"arrow-left-regular",RIGHT:"arrow-right-regular"},rt={ORIENTATION:Jt.HORIZONTAL,VARIANT:Uo.SOLID,ARROW_DIRECTION:He.NEGATIVE,BUTTON_DIRECTION:He.NEGATIVE};var Ga=[C,g`
1183
+ `}};et.styles=[...Q.styles,...Rn],c([d({type:Boolean,reflect:!0})],et.prototype,"checked",2),c([d({type:Boolean,reflect:!0})],et.prototype,"indeterminate",2),c([d({type:Boolean,reflect:!0})],et.prototype,"autofocus",2);var Po=et;Po.register(kn);var Ba=Po;var Ln=y.constructTagName("divider"),Qt={HORIZONTAL:"horizontal",VERTICAL:"vertical"},Uo={SOLID:"solid",GRADIENT:"gradient"},Ve={POSITIVE:"positive",NEGATIVE:"negative"},Jt={UP:"arrow-up-regular",DOWN:"arrow-down-regular",LEFT:"arrow-left-regular",RIGHT:"arrow-right-regular"},tt={ORIENTATION:Qt.HORIZONTAL,VARIANT:Uo.SOLID,ARROW_DIRECTION:Ve.NEGATIVE,BUTTON_DIRECTION:Ve.NEGATIVE};var Ga=[C,g`
1184
1184
  :host {
1185
1185
  --mdc-divider-background-color: var(--mds-color-theme-outline-secondary-normal);
1186
1186
  --mdc-divider-width: 0.0625rem;
@@ -1391,11 +1391,11 @@
1391
1391
  font-size: var(--mdc-divider-text-size);
1392
1392
  line-height: var(--mdc-divider-text-line-height);
1393
1393
  }
1394
- `],Nn=Ga;var Fe=class extends E{constructor(){super();this.orientation=rt.ORIENTATION;this.variant=rt.VARIANT;this.arrowDirection=rt.ARROW_DIRECTION;this.buttonPosition=rt.BUTTON_DIRECTION;this.setAttribute("data-type","mdc-primary-divider")}setVariant(e){this.setAttribute("variant",Object.values(Uo).includes(e)?e:rt.VARIANT)}setOrientation(e){this.setAttribute("orientation",Object.values(Jt).includes(e)?e:rt.ORIENTATION)}ensureValidDirections(){let e=this.orientation===Jt.HORIZONTAL?He.NEGATIVE:He.POSITIVE;Object.values(He).includes(this.buttonPosition)||(this.buttonPosition=e),Object.values(He).includes(this.arrowDirection)||(this.arrowDirection=e)}setGrabberButton(){this.ensureValidDirections();let e=this.querySelector("mdc-button");if(e){let r=this.getArrowIcon();e.setAttribute("variant","secondary"),e.setAttribute("prefix-icon",r)}}getArrowIcon(){let e=this.orientation===Jt.HORIZONTAL,r=this.arrowDirection===He.POSITIVE;return e?r?er.UP:er.DOWN:r?er.RIGHT:er.LEFT}update(e){super.update(e),e.has("orientation")&&this.setOrientation(this.orientation),e.has("variant")&&this.setVariant(this.variant),(e.has("orientation")||e.has("arrowDirection")||e.has("buttonPosition"))&&this.setGrabberButton()}inferDividerType(){var s;let e=(s=this.shadowRoot)==null?void 0:s.querySelector("slot"),r=(e==null?void 0:e.assignedElements({flatten:!0}))||[];if(r.length>1)return;let i=r.some(a=>a.tagName===Bt.toUpperCase()),n=r.some(a=>a.tagName===Wt.toUpperCase());i&&!n?this.setAttribute("data-type","mdc-text-divider"):!i&&n&&(this.setAttribute("data-type","mdc-grabber-divider"),this.setGrabberButton())}render(){return u`
1394
+ `],Nn=Ga;var He=class extends E{constructor(){super();this.orientation=tt.ORIENTATION;this.variant=tt.VARIANT;this.arrowDirection=tt.ARROW_DIRECTION;this.buttonPosition=tt.BUTTON_DIRECTION;this.setAttribute("data-type","mdc-primary-divider")}setVariant(e){this.setAttribute("variant",Object.values(Uo).includes(e)?e:tt.VARIANT)}setOrientation(e){this.setAttribute("orientation",Object.values(Qt).includes(e)?e:tt.ORIENTATION)}ensureValidDirections(){let e=this.orientation===Qt.HORIZONTAL?Ve.NEGATIVE:Ve.POSITIVE;Object.values(Ve).includes(this.buttonPosition)||(this.buttonPosition=e),Object.values(Ve).includes(this.arrowDirection)||(this.arrowDirection=e)}setGrabberButton(){this.ensureValidDirections();let e=this.querySelector("mdc-button");if(e){let r=this.getArrowIcon();e.setAttribute("variant","secondary"),e.setAttribute("prefix-icon",r)}}getArrowIcon(){let e=this.orientation===Qt.HORIZONTAL,r=this.arrowDirection===Ve.POSITIVE;return e?r?Jt.UP:Jt.DOWN:r?Jt.RIGHT:Jt.LEFT}update(e){super.update(e),e.has("orientation")&&this.setOrientation(this.orientation),e.has("variant")&&this.setVariant(this.variant),(e.has("orientation")||e.has("arrowDirection")||e.has("buttonPosition"))&&this.setGrabberButton()}inferDividerType(){var s;let e=(s=this.shadowRoot)==null?void 0:s.querySelector("slot"),r=(e==null?void 0:e.assignedElements({flatten:!0}))||[];if(r.length>1)return;let i=r.some(a=>a.tagName===Ft.toUpperCase()),n=r.some(a=>a.tagName===Yt.toUpperCase());i&&!n?this.setAttribute("data-type","mdc-text-divider"):!i&&n&&(this.setAttribute("data-type","mdc-grabber-divider"),this.setGrabberButton())}render(){return u`
1395
1395
  <div></div>
1396
1396
  <slot @slotchange=${this.inferDividerType}></slot>
1397
1397
  <div></div>
1398
- `}};Fe.styles=[...E.styles,...Nn],c([d({type:String,reflect:!0})],Fe.prototype,"orientation",2),c([d({type:String,reflect:!0})],Fe.prototype,"variant",2),c([d({type:String,attribute:"arrow-direction",reflect:!0})],Fe.prototype,"arrowDirection",2),c([d({type:String,attribute:"button-position",reflect:!0})],Fe.prototype,"buttonPosition",2);var Vo=Fe;Vo.register(Ln);var qa=Vo;var On=y.constructTagName("formfieldgroup"),Ho={RADIOGROUP:"radiogroup",GROUP:"group"};var Ya=g`
1398
+ `}};He.styles=[...E.styles,...Nn],c([d({type:String,reflect:!0})],He.prototype,"orientation",2),c([d({type:String,reflect:!0})],He.prototype,"variant",2),c([d({type:String,attribute:"arrow-direction",reflect:!0})],He.prototype,"arrowDirection",2),c([d({type:String,attribute:"button-position",reflect:!0})],He.prototype,"buttonPosition",2);var Vo=He;Vo.register(Ln);var qa=Vo;var On=y.constructTagName("formfieldgroup"),Ho={RADIOGROUP:"radiogroup",GROUP:"group"};var Ya=g`
1399
1399
 
1400
1400
  :host::part(container) {
1401
1401
  display: flex;
@@ -1412,7 +1412,7 @@
1412
1412
  :host::part(label-text){
1413
1413
  font-weight: bold;
1414
1414
  }
1415
- `,Mn=[Ya];var Dr=class extends U(Q){constructor(){super();this.isRadio=!1;this.shouldRenderLabel=!1,this.id="",this.helpTextType=void 0,this.disabled=void 0}render(){var e;return u`
1415
+ `,Mn=[Ya];var zr=class extends U(Q){constructor(){super();this.isRadio=!1;this.shouldRenderLabel=!1,this.id="",this.helpTextType=void 0,this.disabled=void 0}render(){var e;return u`
1416
1416
  <div
1417
1417
  part="container"
1418
1418
  role="${this.isRadio?Ho.RADIOGROUP:Ho.GROUP}"
@@ -1426,7 +1426,7 @@
1426
1426
  </div>
1427
1427
  <slot></slot>
1428
1428
  </div>
1429
- `}};Dr.styles=[...Q.styles,...Mn];var Fo=Dr;Fo.register(On);var $r=Fo;qt.register(Ir);var Wa=qt;var Xa=[g`
1429
+ `}};zr.styles=[...Q.styles,...Mn];var Fo=zr;Fo.register(On);var Dr=Fo;Gt.register(_r);var Wa=Gt;var Xa=[g`
1430
1430
  :host{
1431
1431
  --mdc-input-disabled-border-color: var(--mds-color-theme-outline-primary-disabled);
1432
1432
  --mdc-input-disabled-text-color: var(--mds-color-theme-text-primary-disabled);
@@ -1541,19 +1541,19 @@
1541
1541
  opacity: 0;
1542
1542
  pointer-events: none;
1543
1543
  }
1544
- `,...z(!0)],zn=Xa;Q.register(In);var wt=Q;var Dn=y.constructTagName("input"),$n={OFF:"off",NONE:"none",ON:"on",SENTENCES:"sentences",WORDS:"words",CHARACTERS:"characters"},Pn={MAX_LENGTH:10,HELPERTEXT:"Prefix text should not exceed 10 characters",VALIDATION:fe.ERROR},Be={VALIDATION:fe.DEFAULT,ICON_SIZE_VALUE:1,ICON_SIZE_UNIT:"rem",CLEAR_BUTTON_ICON:"cancel-bold",CLEAR_BUTTON_VARIANT:Je.TERTIARY,CLEAR_BUTTON_SIZE:Ae[20],PREFIX_TEXT_TYPE:k.BODY_MIDSIZE_REGULAR,PREFIX_TEXT_TAG:O.SPAN};var D=class extends pe(U(wt)){constructor(){super();this.placeholder="";this.readonly=!1;this.trailingButton=!1;this.autocapitalize=$n.OFF;this.autocomplete="off";this.autofocus=!1;this.clearAriaLabel="";this.id=`mdc-input-${Ie()}`}connectedCallback(){super.connectedCallback(),this.updateComplete.then(()=>{this.inputElement&&(this.inputElement.checkValidity(),this.setInputValidity(),this.internals.setFormValue(this.inputElement.value))}).catch(e=>{this.onerror&&this.onerror(e)})}formResetCallback(){this.value="",this.requestUpdate()}formStateRestoreCallback(e){this.value=e}handleValueChange(){this.updateComplete.then(()=>{this.setInputValidity()}).catch(e=>{this.onerror&&this.onerror(e)})}updated(e){super.updated(e),e.has("value")&&this.handleValueChange()}setInputValidity(){this.validationMessage&&this.value===""?this.inputElement.setCustomValidity(this.validationMessage):this.inputElement.setCustomValidity(""),this.setValidity()}attributeChangedCallback(e,r,i){super.attributeChangedCallback(e,r,i),["maxlength","minlength","pattern","required"].includes(e)&&this.updateComplete.then(()=>{this.setInputValidity()}).catch(s=>{this.onerror&&this.onerror(s)})}updateValue(){this.value=this.inputElement.value,this.internals.setFormValue(this.inputElement.value)}onInput(){this.updateValue(),this.setInputValidity()}onChange(e){this.updateValue(),this.setInputValidity();let r=e.constructor;this.dispatchEvent(new r(e.type,e))}handleKeyDown(e){var r;e.key==="Enter"&&((r=this.form)==null||r.requestSubmit())}renderLeadingIcon(){return this.leadingIcon?u`
1544
+ `,...z(!0)],zn=Xa;Q.register(In);var It=Q;var Dn=y.constructTagName("input"),$n={OFF:"off",NONE:"none",ON:"on",SENTENCES:"sentences",WORDS:"words",CHARACTERS:"characters"},Pn={MAX_LENGTH:10,HELPERTEXT:"Prefix text should not exceed 10 characters",VALIDATION:fe.ERROR},Fe={VALIDATION:fe.DEFAULT,ICON_SIZE_VALUE:1,ICON_SIZE_UNIT:"rem",CLEAR_BUTTON_ICON:"cancel-bold",CLEAR_BUTTON_VARIANT:Qe.TERTIARY,CLEAR_BUTTON_SIZE:Ae[20],PREFIX_TEXT_TYPE:k.BODY_MIDSIZE_REGULAR,PREFIX_TEXT_TAG:O.SPAN};var D=class extends Ue(U(It)){constructor(){super(...arguments);this.placeholder="";this.readonly=!1;this.trailingButton=!1;this.autocapitalize=$n.OFF;this.autocomplete="off";this.autofocus=!1;this.clearAriaLabel=""}connectedCallback(){super.connectedCallback(),this.updateComplete.then(()=>{this.inputElement&&(this.inputElement.checkValidity(),this.setInputValidity(),this.internals.setFormValue(this.inputElement.value))}).catch(e=>{this.onerror&&this.onerror(e)})}formResetCallback(){this.value="",this.requestUpdate()}formStateRestoreCallback(e){this.value=e}handleValueChange(){this.updateComplete.then(()=>{this.setInputValidity()}).catch(e=>{this.onerror&&this.onerror(e)})}updated(e){super.updated(e),e.has("value")&&this.handleValueChange()}setInputValidity(){this.validationMessage&&this.value===""?this.inputElement.setCustomValidity(this.validationMessage):this.inputElement.setCustomValidity(""),this.setValidity()}attributeChangedCallback(e,r,i){super.attributeChangedCallback(e,r,i),["maxlength","minlength","pattern","required"].includes(e)&&this.updateComplete.then(()=>{this.setInputValidity()}).catch(s=>{this.onerror&&this.onerror(s)})}updateValue(){this.value=this.inputElement.value,this.internals.setFormValue(this.inputElement.value)}onInput(){this.updateValue(),this.setInputValidity()}onChange(e){this.updateValue(),this.setInputValidity();let r=e.constructor;this.dispatchEvent(new r(e.type,e))}handleKeyDown(e){var r;e.key==="Enter"&&((r=this.form)==null||r.requestSubmit())}renderLeadingIcon(){return this.leadingIcon?u`
1545
1545
  <mdc-icon
1546
1546
  class="leading-icon"
1547
1547
  part="leading-icon"
1548
1548
  name=${this.leadingIcon}
1549
- size="${Be.ICON_SIZE_VALUE}"
1550
- length-unit="${Be.ICON_SIZE_UNIT}">
1549
+ size="${Fe.ICON_SIZE_VALUE}"
1550
+ length-unit="${Fe.ICON_SIZE_UNIT}">
1551
1551
  </mdc-icon>
1552
1552
  `:b}renderPrefixText(){return this.prefixText?u`
1553
1553
  <mdc-text
1554
1554
  class="prefix-text"
1555
- tagname="${Be.PREFIX_TEXT_TAG}"
1556
- type="${Be.PREFIX_TEXT_TYPE}"
1555
+ tagname="${Fe.PREFIX_TEXT_TAG}"
1556
+ type="${Fe.PREFIX_TEXT_TYPE}"
1557
1557
  aria-hidden="true"
1558
1558
  >
1559
1559
  ${this.prefixText.slice(0,Pn.MAX_LENGTH)}
@@ -1562,9 +1562,9 @@
1562
1562
  <mdc-button
1563
1563
  part='trailing-button'
1564
1564
  class='own-focus-ring ${this.value?"":"hidden"}'
1565
- prefix-icon='${Be.CLEAR_BUTTON_ICON}'
1566
- variant='${Be.CLEAR_BUTTON_VARIANT}'
1567
- size="${Be.CLEAR_BUTTON_SIZE}"
1565
+ prefix-icon='${Fe.CLEAR_BUTTON_ICON}'
1566
+ variant='${Fe.CLEAR_BUTTON_VARIANT}'
1567
+ size="${Fe.CLEAR_BUTTON_SIZE}"
1568
1568
  aria-label="${this.clearAriaLabel}"
1569
1569
  @click=${this.clearInputText}
1570
1570
  ?disabled=${this.disabled||this.readonly||!this.value}
@@ -1608,7 +1608,7 @@
1608
1608
  <slot name="trailing-button">${this.renderTrailingButton()}</slot>
1609
1609
  </div>
1610
1610
  ${this.helpText?this.renderHelperText():b}
1611
- `}};D.styles=[...wt.styles,...zn],c([d({type:String})],D.prototype,"placeholder",2),c([d({type:Boolean})],D.prototype,"readonly",2),c([d({type:String,attribute:"prefix-text"})],D.prototype,"prefixText",2),c([d({type:String,attribute:"leading-icon"})],D.prototype,"leadingIcon",2),c([d({type:Boolean,attribute:"trailing-button"})],D.prototype,"trailingButton",2),c([d({type:Number})],D.prototype,"maxlength",2),c([d({type:Number})],D.prototype,"minlength",2),c([d({type:String})],D.prototype,"autocapitalize",2),c([d({type:String})],D.prototype,"autocomplete",2),c([d({type:Boolean})],D.prototype,"autofocus",2),c([d({type:String})],D.prototype,"dirname",2),c([d({type:String})],D.prototype,"pattern",2),c([d({type:String})],D.prototype,"list",2),c([d({type:Number})],D.prototype,"size",2),c([d({type:String,attribute:"clear-aria-label"})],D.prototype,"clearAriaLabel",2);var Bo=D;Bo.register(Dn);var Za=Bo;var Un=y.constructTagName("link"),Pr={LARGE:"large",MIDSIZE:"midsize",SMALL:"small"},Ur={LARGE:1,MIDSIZE:.875,SMALL:.75},Vr={INLINE:!1,INVERTED:!1,LINK_SIZE:Pr.LARGE};var ja=[C,g`
1611
+ `}};D.styles=[...It.styles,...zn],c([d({type:String})],D.prototype,"placeholder",2),c([d({type:Boolean})],D.prototype,"readonly",2),c([d({type:String,attribute:"prefix-text"})],D.prototype,"prefixText",2),c([d({type:String,attribute:"leading-icon"})],D.prototype,"leadingIcon",2),c([d({type:Boolean,attribute:"trailing-button"})],D.prototype,"trailingButton",2),c([d({type:Number})],D.prototype,"maxlength",2),c([d({type:Number})],D.prototype,"minlength",2),c([d({type:String})],D.prototype,"autocapitalize",2),c([d({type:String})],D.prototype,"autocomplete",2),c([d({type:Boolean})],D.prototype,"autofocus",2),c([d({type:String})],D.prototype,"dirname",2),c([d({type:String})],D.prototype,"pattern",2),c([d({type:String})],D.prototype,"list",2),c([d({type:Number})],D.prototype,"size",2),c([d({type:String,attribute:"clear-aria-label"})],D.prototype,"clearAriaLabel",2);var Bo=D;Bo.register(Dn);var Za=Bo;var Un=y.constructTagName("link"),$r={LARGE:"large",MIDSIZE:"midsize",SMALL:"small"},Pr={LARGE:1,MIDSIZE:.875,SMALL:.75},Ur={INLINE:!1,INVERTED:!1,LINK_SIZE:$r.LARGE};var ja=[C,g`
1612
1612
 
1613
1613
  :host {
1614
1614
 
@@ -1731,15 +1731,15 @@
1731
1731
  :host(:active)::part(link-container) {
1732
1732
  box-shadow: none;
1733
1733
  }
1734
- `],Vn=ja;var ot=class extends Pe(de(E)){constructor(){super(...arguments);this.inline=Vr.INLINE;this.inverted=Vr.INVERTED;this.size=Vr.LINK_SIZE;this.prevTabindex=null}getIconSize(){switch(this.size){case Pr.SMALL:return Ur.SMALL;case Pr.MIDSIZE:return Ur.MIDSIZE;default:return Ur.LARGE}}setDisabled(e){e?(this.prevTabindex=this.hasAttribute("tabindex")?this.tabIndex:null,this.tabIndex=-1,this.setAttribute("aria-disabled","true")):this.prevTabindex===null?(this.removeAttribute("tabindex"),this.removeAttribute("aria-disabled")):(this.tabIndex=this.prevTabindex,this.removeAttribute("aria-disabled"))}updateTrailingIcon(){var i,n;let e=(n=(i=this.shadowRoot)==null?void 0:i.querySelector("slot"))==null?void 0:n.assignedElements({flatten:!0}).find(s=>s.tagName==="A"),r=this.getIconSize();if(this.iconName&&e){let s=document.createElement("mdc-icon");s.setAttribute("name",this.iconName),s.setAttribute("size",`${r}`),s.setAttribute("length-unit","rem"),e.appendChild(s)}}update(e){super.update(e),e.has("disabled")&&this.setDisabled(this.disabled)}render(){return u`
1734
+ `],Vn=ja;var rt=class extends De(de(E)){constructor(){super(...arguments);this.inline=Ur.INLINE;this.inverted=Ur.INVERTED;this.size=Ur.LINK_SIZE;this.prevTabindex=null}getIconSize(){switch(this.size){case $r.SMALL:return Pr.SMALL;case $r.MIDSIZE:return Pr.MIDSIZE;default:return Pr.LARGE}}setDisabled(e){e?(this.prevTabindex=this.hasAttribute("tabindex")?this.tabIndex:null,this.tabIndex=-1,this.setAttribute("aria-disabled","true")):this.prevTabindex===null?(this.removeAttribute("tabindex"),this.removeAttribute("aria-disabled")):(this.tabIndex=this.prevTabindex,this.removeAttribute("aria-disabled"))}updateTrailingIcon(){var i,n;let e=(n=(i=this.shadowRoot)==null?void 0:i.querySelector("slot"))==null?void 0:n.assignedElements({flatten:!0}).find(s=>s.tagName==="A"),r=this.getIconSize();if(this.iconName&&e){let s=document.createElement("mdc-icon");s.setAttribute("name",this.iconName),s.setAttribute("size",`${r}`),s.setAttribute("length-unit","rem"),e.appendChild(s)}}update(e){super.update(e),e.has("disabled")&&this.setDisabled(this.disabled)}render(){return u`
1735
1735
  <div part='link-container' class='mdc-focus-ring'>
1736
1736
  <slot @slotchange=${this.updateTrailingIcon}></slot>
1737
1737
  </div>
1738
- `}};ot.styles=[...E.styles,...Vn],c([d({type:Boolean,reflect:!0})],ot.prototype,"inline",2),c([d({type:Boolean,reflect:!0})],ot.prototype,"inverted",2),c([d({type:String,reflect:!0})],ot.prototype,"size",2);var Go=ot;Go.register(Un);var Ka=Go;var Hr=y.constructTagName("listitem"),Qa={FULL_WIDTH:"full-width",INSET_PILL:"inset-pill",INSET_RECTANGLE:"inset-rectangle"},Hn={VARIANT:Qa.FULL_WIDTH};var Fn=y.constructTagName("list"),tr={ARROW_DOWN:"ArrowDown",ARROW_UP:"ArrowUp",HOME:"Home",END:"End"},qo="header-id";var Ja=g`
1738
+ `}};rt.styles=[...E.styles,...Vn],c([d({type:Boolean,reflect:!0})],rt.prototype,"inline",2),c([d({type:Boolean,reflect:!0})],rt.prototype,"inverted",2),c([d({type:String,reflect:!0})],rt.prototype,"size",2);var Go=rt;Go.register(Un);var Ka=Go;var Vr=y.constructTagName("listitem"),Qa={FULL_WIDTH:"full-width",INSET_PILL:"inset-pill",INSET_RECTANGLE:"inset-rectangle"},Hn={VARIANT:Qa.FULL_WIDTH};var Fn=y.constructTagName("list"),er={ARROW_DOWN:"ArrowDown",ARROW_UP:"ArrowUp",HOME:"Home",END:"End"},qo="header-id";var Ja=g`
1739
1739
  :host::part(header-text) {
1740
1740
  padding: 0.5rem 0.75rem;
1741
1741
  }
1742
- `,Bn=[Ja];var Ct=class extends U(E){constructor(){super(),this.addEventListener("keydown",this.handleKeyDown)}handleKeyDown(t){var i;let e=this.getCurrentIndex(t.target),r=this.getNewIndexBasedOnKey(t.key,e,this.listItems.length);r!==void 0&&((i=this.listItems[r])==null||i.focus(),this.resetTabIndexAndSetActiveTabIndex(r))}getCurrentIndex(t){return this.listItems.findIndex(e=>e===t||e===t.parentElement)}getNewIndexBasedOnKey(t,e,r){switch(t){case tr.ARROW_DOWN:return(e+1)%r;case tr.ARROW_UP:return(e-1+r)%r;case tr.HOME:return 0;case tr.END:return r-1;default:return}}handleMouseClick(t){let e=this.getCurrentIndex(t.target);this.resetTabIndexAndSetActiveTabIndex(e)}resetTabIndexAndSetActiveTabIndex(t){this.listItems.forEach((e,r)=>{let i=t===r?"0":"-1";e==null||e.setAttribute("tabindex",i)})}firstUpdated(){this.resetTabIndexAndSetActiveTabIndex(0)}render(){var e;let t=this.headerText?u`
1742
+ `,Bn=[Ja];var wt=class extends U(E){constructor(){super(),this.addEventListener("keydown",this.handleKeyDown)}handleKeyDown(t){var i;let e=this.getCurrentIndex(t.target),r=this.getNewIndexBasedOnKey(t.key,e,this.listItems.length);r!==void 0&&((i=this.listItems[r])==null||i.focus(),this.resetTabIndexAndSetActiveTabIndex(r))}getCurrentIndex(t){return this.listItems.findIndex(e=>e===t||e===t.parentElement)}getNewIndexBasedOnKey(t,e,r){switch(t){case er.ARROW_DOWN:return(e+1)%r;case er.ARROW_UP:return(e-1+r)%r;case er.HOME:return 0;case er.END:return r-1;default:return}}handleMouseClick(t){let e=this.getCurrentIndex(t.target);this.resetTabIndexAndSetActiveTabIndex(e)}resetTabIndexAndSetActiveTabIndex(t){this.listItems.forEach((e,r)=>{let i=t===r?"0":"-1";e==null||e.setAttribute("tabindex",i)})}firstUpdated(){this.resetTabIndexAndSetActiveTabIndex(0)}render(){var e;let t=this.headerText?u`
1743
1743
  <mdc-text
1744
1744
  id="${qo}"
1745
1745
  part="header-text"
@@ -1755,7 +1755,7 @@
1755
1755
  ${t}
1756
1756
  <slot role="presentation" @click="${this.handleMouseClick}"></slot>
1757
1757
  </div>
1758
- `}};Ct.styles=[...E.styles,...Bn],c([Ft({selector:Hr})],Ct.prototype,"listItems",2),c([d({type:String,attribute:"header-text",reflect:!0})],Ct.prototype,"headerText",2);var Yo=Ct;Yo.register(Fn);var el=Yo;var tl=g`
1758
+ `}};wt.styles=[...E.styles,...Bn],c([Ht({selector:Vr})],wt.prototype,"listItems",2),c([d({type:String,attribute:"header-text",reflect:!0})],wt.prototype,"headerText",2);var Yo=wt;Yo.register(Fn);var el=Yo;var tl=g`
1759
1759
  :host {
1760
1760
  --mdc-listitem-default-background-color: var(--mds-color-theme-background-primary-ghost);
1761
1761
  --mdc-listitem-background-color-hover: var(--mds-color-theme-background-primary-hover);
@@ -1821,7 +1821,7 @@
1821
1821
  display: flex;
1822
1822
  flex-direction: row;
1823
1823
  }
1824
- `,Gn=[tl,...z()];var J=class extends U(Pe(Lr(E))){constructor(){super();this.variant=Hn.VARIANT;this.role="listitem"}getText(e,r,i){return i?u`
1824
+ `,Gn=[tl,...z()];var J=class extends U(De(Rr(E))){constructor(){super();this.variant=Hn.VARIANT;this.role="listitem"}getText(e,r,i){return i?u`
1825
1825
  <slot name="${e}">
1826
1826
  <mdc-text part="${e}" type="${r}" tagname="${O.SPAN}">${i}</mdc-text>
1827
1827
  </slot>
@@ -1841,7 +1841,7 @@
1841
1841
  </div>
1842
1842
  <slot name="trailing-controls"></slot>
1843
1843
  </div>
1844
- `}};J.styles=[...E.styles,...Gn],c([Ft({slot:"leading-controls"})],J.prototype,"leadingControlsSlot",2),c([Ft({slot:"trailing-controls"})],J.prototype,"trailingControlsSlot",2),c([d({type:String,reflect:!0})],J.prototype,"variant",2),c([d({type:String,reflect:!0})],J.prototype,"label",2),c([d({type:String,reflect:!0,attribute:"secondary-label"})],J.prototype,"secondaryLabel",2),c([d({type:String,reflect:!0,attribute:"tertiary-label"})],J.prototype,"tertiaryLabel",2),c([d({type:String,reflect:!0,attribute:"side-header-text"})],J.prototype,"sideHeaderText",2),c([d({type:String,reflect:!0,attribute:"subline-text"})],J.prototype,"sublineText",2);var Wo=J;Wo.register(Hr);var rl=Wo;var ol=g`
1844
+ `}};J.styles=[...E.styles,...Gn],c([Ht({slot:"leading-controls"})],J.prototype,"leadingControlsSlot",2),c([Ht({slot:"trailing-controls"})],J.prototype,"trailingControlsSlot",2),c([d({type:String,reflect:!0})],J.prototype,"variant",2),c([d({type:String,reflect:!0})],J.prototype,"label",2),c([d({type:String,reflect:!0,attribute:"secondary-label"})],J.prototype,"secondaryLabel",2),c([d({type:String,reflect:!0,attribute:"tertiary-label"})],J.prototype,"tertiaryLabel",2),c([d({type:String,reflect:!0,attribute:"side-header-text"})],J.prototype,"sideHeaderText",2),c([d({type:String,reflect:!0,attribute:"subline-text"})],J.prototype,"sublineText",2);var Wo=J;Wo.register(Vr);var rl=Wo;var ol=g`
1845
1845
  :host {
1846
1846
  --mdc-marker-width: 0.25rem;
1847
1847
  --mdc-marker-solid-background-color: var(--mds-color-theme-outline-secondary-normal);
@@ -1866,7 +1866,7 @@
1866
1866
  var(--mdc-marker-striped-background-color) 0.375rem
1867
1867
  );
1868
1868
  }
1869
- `,qn=[ol];var Yn=y.constructTagName("marker"),Wn={SOLID:"solid",STRIPED:"striped"};var rr=class extends E{constructor(){super(...arguments);this.variant=Wn.SOLID}};rr.styles=[...E.styles,...qn],c([d({type:String,reflect:!0})],rr.prototype,"variant",2);var Xo=rr;Xo.register(Yn);var il=Xo;var ge=Math.min,q=Math.max,ir=Math.round,nr=Math.floor,ie=o=>({x:o,y:o}),nl={left:"right",right:"left",bottom:"top",top:"bottom"},sl={start:"end",end:"start"};function Br(o,t,e){return q(o,ge(t,e))}function it(o,t){return typeof o=="function"?o(t):o}function Ce(o){return o.split("-")[0]}function nt(o){return o.split("-")[1]}function Zo(o){return o==="x"?"y":"x"}function Gr(o){return o==="y"?"height":"width"}function Ge(o){return["top","bottom"].includes(Ce(o))?"y":"x"}function qr(o){return Zo(Ge(o))}function Xn(o,t,e){e===void 0&&(e=!1);let r=nt(o),i=qr(o),n=Gr(i),s=i==="x"?r===(e?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[n]>t.floating[n]&&(s=or(s)),[s,or(s)]}function Zn(o){let t=or(o);return[Fr(o),t,Fr(t)]}function Fr(o){return o.replace(/start|end/g,t=>sl[t])}function al(o,t,e){let r=["left","right"],i=["right","left"],n=["top","bottom"],s=["bottom","top"];switch(o){case"top":case"bottom":return e?t?i:r:t?r:i;case"left":case"right":return t?n:s;default:return[]}}function jn(o,t,e,r){let i=nt(o),n=al(Ce(o),e==="start",r);return i&&(n=n.map(s=>s+"-"+i),t&&(n=n.concat(n.map(Fr)))),n}function or(o){return o.replace(/left|right|bottom|top/g,t=>nl[t])}function ll(o){return{top:0,right:0,bottom:0,left:0,...o}}function jo(o){return typeof o!="number"?ll(o):{top:o,right:o,bottom:o,left:o}}function st(o){let{x:t,y:e,width:r,height:i}=o;return{width:r,height:i,top:e,left:t,right:t+r,bottom:e+i,x:t,y:e}}function Kn(o,t,e){let{reference:r,floating:i}=o,n=Ge(t),s=qr(t),a=Gr(s),l=Ce(t),m=n==="y",h=r.x+r.width/2-i.width/2,p=r.y+r.height/2-i.height/2,v=r[a]/2-i[a]/2,f;switch(l){case"top":f={x:h,y:r.y-i.height};break;case"bottom":f={x:h,y:r.y+r.height};break;case"right":f={x:r.x+r.width,y:p};break;case"left":f={x:r.x-i.width,y:p};break;default:f={x:r.x,y:r.y}}switch(nt(t)){case"start":f[s]-=v*(e&&m?-1:1);break;case"end":f[s]+=v*(e&&m?-1:1);break}return f}var Qn=async(o,t,e)=>{let{placement:r="bottom",strategy:i="absolute",middleware:n=[],platform:s}=e,a=n.filter(Boolean),l=await(s.isRTL==null?void 0:s.isRTL(t)),m=await s.getElementRects({reference:o,floating:t,strategy:i}),{x:h,y:p}=Kn(m,r,l),v=r,f={},x=0;for(let T=0;T<a.length;T++){let{name:_,fn:S}=a[T],{x:I,y:w,data:$,reset:M}=await S({x:h,y:p,initialPlacement:r,placement:v,strategy:i,middlewareData:f,rects:m,platform:s,elements:{reference:o,floating:t}});h=I!=null?I:h,p=w!=null?w:p,f={...f,[_]:{...f[_],...$}},M&&x<=50&&(x++,typeof M=="object"&&(M.placement&&(v=M.placement),M.rects&&(m=M.rects===!0?await s.getElementRects({reference:o,floating:t,strategy:i}):M.rects),{x:h,y:p}=Kn(m,v,l)),T=-1)}return{x:h,y:p,placement:v,strategy:i,middlewareData:f}};async function Yr(o,t){var e;t===void 0&&(t={});let{x:r,y:i,platform:n,rects:s,elements:a,strategy:l}=o,{boundary:m="clippingAncestors",rootBoundary:h="viewport",elementContext:p="floating",altBoundary:v=!1,padding:f=0}=it(t,o),x=jo(f),_=a[v?p==="floating"?"reference":"floating":p],S=st(await n.getClippingRect({element:(e=await(n.isElement==null?void 0:n.isElement(_)))==null||e?_:_.contextElement||await(n.getDocumentElement==null?void 0:n.getDocumentElement(a.floating)),boundary:m,rootBoundary:h,strategy:l})),I=p==="floating"?{x:r,y:i,width:s.floating.width,height:s.floating.height}:s.reference,w=await(n.getOffsetParent==null?void 0:n.getOffsetParent(a.floating)),$=await(n.isElement==null?void 0:n.isElement(w))?await(n.getScale==null?void 0:n.getScale(w))||{x:1,y:1}:{x:1,y:1},M=st(n.convertOffsetParentRelativeRectToViewportRelativeRect?await n.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:I,offsetParent:w,strategy:l}):I);return{top:(S.top-M.top+x.top)/$.y,bottom:(M.bottom-S.bottom+x.bottom)/$.y,left:(S.left-M.left+x.left)/$.x,right:(M.right-S.right+x.right)/$.x}}var Jn=o=>({name:"arrow",options:o,async fn(t){let{x:e,y:r,placement:i,rects:n,platform:s,elements:a,middlewareData:l}=t,{element:m,padding:h=0}=it(o,t)||{};if(m==null)return{};let p=jo(h),v={x:e,y:r},f=qr(i),x=Gr(f),T=await s.getDimensions(m),_=f==="y",S=_?"top":"left",I=_?"bottom":"right",w=_?"clientHeight":"clientWidth",$=n.reference[x]+n.reference[f]-v[f]-n.floating[x],M=v[f]-n.reference[f],Z=await(s.getOffsetParent==null?void 0:s.getOffsetParent(m)),re=Z?Z[w]:0;(!re||!await(s.isElement==null?void 0:s.isElement(Z)))&&(re=a.floating[w]||n.floating[x]);let ve=$/2-M/2,ae=re/2-T[x]/2-1,oe=ge(p[S],ae),Re=ge(p[I],ae),le=oe,Le=re-T[x]-Re,B=re/2-T[x]/2+ve,gt=Br(le,B,Le),be=!l.arrow&&nt(i)!=null&&B!==gt&&n.reference[x]/2-(B<le?oe:Re)-T[x]/2<0,ce=be?B<le?B-le:B-Le:0;return{[f]:v[f]+ce,data:{[f]:gt,centerOffset:B-gt-ce,...be&&{alignmentOffset:ce}},reset:be}}});var es=function(o){return o===void 0&&(o={}),{name:"flip",options:o,async fn(t){var e,r;let{placement:i,middlewareData:n,rects:s,initialPlacement:a,platform:l,elements:m}=t,{mainAxis:h=!0,crossAxis:p=!0,fallbackPlacements:v,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:x="none",flipAlignment:T=!0,..._}=it(o,t);if((e=n.arrow)!=null&&e.alignmentOffset)return{};let S=Ce(i),I=Ge(a),w=Ce(a)===a,$=await(l.isRTL==null?void 0:l.isRTL(m.floating)),M=v||(w||!T?[or(a)]:Zn(a)),Z=x!=="none";!v&&Z&&M.push(...jn(a,T,x,$));let re=[a,...M],ve=await Yr(t,_),ae=[],oe=((r=n.flip)==null?void 0:r.overflows)||[];if(h&&ae.push(ve[S]),p){let B=Xn(i,s,$);ae.push(ve[B[0]],ve[B[1]])}if(oe=[...oe,{placement:i,overflows:ae}],!ae.every(B=>B<=0)){var Re,le;let B=(((Re=n.flip)==null?void 0:Re.index)||0)+1,gt=re[B];if(gt)return{data:{index:B,overflows:oe},reset:{placement:gt}};let be=(le=oe.filter(ce=>ce.overflows[0]<=0).sort((ce,Ne)=>ce.overflows[1]-Ne.overflows[1])[0])==null?void 0:le.placement;if(!be)switch(f){case"bestFit":{var Le;let ce=(Le=oe.filter(Ne=>{if(Z){let Oe=Ge(Ne.placement);return Oe===I||Oe==="y"}return!0}).map(Ne=>[Ne.placement,Ne.overflows.filter(Oe=>Oe>0).reduce((Oe,Js)=>Oe+Js,0)]).sort((Ne,Oe)=>Ne[1]-Oe[1])[0])==null?void 0:Le[0];ce&&(be=ce);break}case"initialPlacement":be=a;break}if(i!==be)return{reset:{placement:be}}}return{}}}};async function cl(o,t){let{placement:e,platform:r,elements:i}=o,n=await(r.isRTL==null?void 0:r.isRTL(i.floating)),s=Ce(e),a=nt(e),l=Ge(e)==="y",m=["left","top"].includes(s)?-1:1,h=n&&l?-1:1,p=it(t,o),{mainAxis:v,crossAxis:f,alignmentAxis:x}=typeof p=="number"?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return a&&typeof x=="number"&&(f=a==="end"?x*-1:x),l?{x:f*h,y:v*m}:{x:v*m,y:f*h}}var ts=function(o){return o===void 0&&(o=0),{name:"offset",options:o,async fn(t){var e,r;let{x:i,y:n,placement:s,middlewareData:a}=t,l=await cl(t,o);return s===((e=a.offset)==null?void 0:e.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:i+l.x,y:n+l.y,data:{...l,placement:s}}}}},rs=function(o){return o===void 0&&(o={}),{name:"shift",options:o,async fn(t){let{x:e,y:r,placement:i}=t,{mainAxis:n=!0,crossAxis:s=!1,limiter:a={fn:_=>{let{x:S,y:I}=_;return{x:S,y:I}}},...l}=it(o,t),m={x:e,y:r},h=await Yr(t,l),p=Ge(Ce(i)),v=Zo(p),f=m[v],x=m[p];if(n){let _=v==="y"?"top":"left",S=v==="y"?"bottom":"right",I=f+h[_],w=f-h[S];f=Br(I,f,w)}if(s){let _=p==="y"?"top":"left",S=p==="y"?"bottom":"right",I=x+h[_],w=x-h[S];x=Br(I,x,w)}let T=a.fn({...t,[v]:f,[p]:x});return{...T,data:{x:T.x-e,y:T.y-r,enabled:{[v]:n,[p]:s}}}}}};var os=function(o){return o===void 0&&(o={}),{name:"size",options:o,async fn(t){var e,r;let{placement:i,rects:n,platform:s,elements:a}=t,{apply:l=()=>{},...m}=it(o,t),h=await Yr(t,m),p=Ce(i),v=nt(i),f=Ge(i)==="y",{width:x,height:T}=n.floating,_,S;p==="top"||p==="bottom"?(_=p,S=v===(await(s.isRTL==null?void 0:s.isRTL(a.floating))?"start":"end")?"left":"right"):(S=p,_=v==="end"?"top":"bottom");let I=T-h.top-h.bottom,w=x-h.left-h.right,$=ge(T-h[_],I),M=ge(x-h[S],w),Z=!t.middlewareData.shift,re=$,ve=M;if((e=t.middlewareData.shift)!=null&&e.enabled.x&&(ve=w),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(re=I),Z&&!v){let oe=q(h.left,0),Re=q(h.right,0),le=q(h.top,0),Le=q(h.bottom,0);f?ve=x-2*(oe!==0||Re!==0?oe+Re:q(h.left,h.right)):re=T-2*(le!==0||Le!==0?le+Le:q(h.top,h.bottom))}await l({...t,availableWidth:ve,availableHeight:re});let ae=await s.getDimensions(a.floating);return x!==ae.width||T!==ae.height?{reset:{rects:!0}}:{}}}};function Wr(){return typeof window<"u"}function at(o){return ns(o)?(o.nodeName||"").toLowerCase():"#document"}function W(o){var t;return(o==null||(t=o.ownerDocument)==null?void 0:t.defaultView)||window}function ne(o){var t;return(t=(ns(o)?o.ownerDocument:o.document)||window.document)==null?void 0:t.documentElement}function ns(o){return Wr()?o instanceof Node||o instanceof W(o).Node:!1}function ee(o){return Wr()?o instanceof Element||o instanceof W(o).Element:!1}function se(o){return Wr()?o instanceof HTMLElement||o instanceof W(o).HTMLElement:!1}function is(o){return!Wr()||typeof ShadowRoot>"u"?!1:o instanceof ShadowRoot||o instanceof W(o).ShadowRoot}function Rt(o){let{overflow:t,overflowX:e,overflowY:r,display:i}=te(o);return/auto|scroll|overlay|hidden|clip/.test(t+r+e)&&!["inline","contents"].includes(i)}function ss(o){return["table","td","th"].includes(at(o))}function sr(o){return[":popover-open",":modal"].some(t=>{try{return o.matches(t)}catch{return!1}})}function Xr(o){let t=Zr(),e=ee(o)?te(o):o;return e.transform!=="none"||e.perspective!=="none"||(e.containerType?e.containerType!=="normal":!1)||!t&&(e.backdropFilter?e.backdropFilter!=="none":!1)||!t&&(e.filter?e.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(e.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(e.contain||"").includes(r))}function as(o){let t=ke(o);for(;se(t)&&!lt(t);){if(Xr(t))return t;if(sr(t))return null;t=ke(t)}return null}function Zr(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function lt(o){return["html","body","#document"].includes(at(o))}function te(o){return W(o).getComputedStyle(o)}function ar(o){return ee(o)?{scrollLeft:o.scrollLeft,scrollTop:o.scrollTop}:{scrollLeft:o.scrollX,scrollTop:o.scrollY}}function ke(o){if(at(o)==="html")return o;let t=o.assignedSlot||o.parentNode||is(o)&&o.host||ne(o);return is(t)?t.host:t}function ls(o){let t=ke(o);return lt(t)?o.ownerDocument?o.ownerDocument.body:o.body:se(t)&&Rt(t)?t:ls(t)}function kt(o,t,e){var r;t===void 0&&(t=[]),e===void 0&&(e=!0);let i=ls(o),n=i===((r=o.ownerDocument)==null?void 0:r.body),s=W(i);if(n){let a=jr(s);return t.concat(s,s.visualViewport||[],Rt(i)?i:[],a&&e?kt(a):[])}return t.concat(i,kt(i,[],e))}function jr(o){return o.parent&&Object.getPrototypeOf(o.parent)?o.frameElement:null}function ms(o){let t=te(o),e=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=se(o),n=i?o.offsetWidth:e,s=i?o.offsetHeight:r,a=ir(e)!==n||ir(r)!==s;return a&&(e=n,r=s),{width:e,height:r,$:a}}function Qo(o){return ee(o)?o:o.contextElement}function Lt(o){let t=Qo(o);if(!se(t))return ie(1);let e=t.getBoundingClientRect(),{width:r,height:i,$:n}=ms(t),s=(n?ir(e.width):e.width)/r,a=(n?ir(e.height):e.height)/i;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}var dl=ie(0);function hs(o){let t=W(o);return!Zr()||!t.visualViewport?dl:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function ml(o,t,e){return t===void 0&&(t=!1),!e||t&&e!==W(o)?!1:t}function ct(o,t,e,r){t===void 0&&(t=!1),e===void 0&&(e=!1);let i=o.getBoundingClientRect(),n=Qo(o),s=ie(1);t&&(r?ee(r)&&(s=Lt(r)):s=Lt(o));let a=ml(n,e,r)?hs(n):ie(0),l=(i.left+a.x)/s.x,m=(i.top+a.y)/s.y,h=i.width/s.x,p=i.height/s.y;if(n){let v=W(n),f=r&&ee(r)?W(r):r,x=v,T=jr(x);for(;T&&r&&f!==x;){let _=Lt(T),S=T.getBoundingClientRect(),I=te(T),w=S.left+(T.clientLeft+parseFloat(I.paddingLeft))*_.x,$=S.top+(T.clientTop+parseFloat(I.paddingTop))*_.y;l*=_.x,m*=_.y,h*=_.x,p*=_.y,l+=w,m+=$,x=W(T),T=jr(x)}}return st({width:h,height:p,x:l,y:m})}function Jo(o,t){let e=ar(o).scrollLeft;return t?t.left+e:ct(ne(o)).left+e}function ps(o,t,e){e===void 0&&(e=!1);let r=o.getBoundingClientRect(),i=r.left+t.scrollLeft-(e?0:Jo(o,r)),n=r.top+t.scrollTop;return{x:i,y:n}}function hl(o){let{elements:t,rect:e,offsetParent:r,strategy:i}=o,n=i==="fixed",s=ne(r),a=t?sr(t.floating):!1;if(r===s||a&&n)return e;let l={scrollLeft:0,scrollTop:0},m=ie(1),h=ie(0),p=se(r);if((p||!p&&!n)&&((at(r)!=="body"||Rt(s))&&(l=ar(r)),se(r))){let f=ct(r);m=Lt(r),h.x=f.x+r.clientLeft,h.y=f.y+r.clientTop}let v=s&&!p&&!n?ps(s,l,!0):ie(0);return{width:e.width*m.x,height:e.height*m.y,x:e.x*m.x-l.scrollLeft*m.x+h.x+v.x,y:e.y*m.y-l.scrollTop*m.y+h.y+v.y}}function pl(o){return Array.from(o.getClientRects())}function ul(o){let t=ne(o),e=ar(o),r=o.ownerDocument.body,i=q(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),n=q(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),s=-e.scrollLeft+Jo(o),a=-e.scrollTop;return te(r).direction==="rtl"&&(s+=q(t.clientWidth,r.clientWidth)-i),{width:i,height:n,x:s,y:a}}function fl(o,t){let e=W(o),r=ne(o),i=e.visualViewport,n=r.clientWidth,s=r.clientHeight,a=0,l=0;if(i){n=i.width,s=i.height;let m=Zr();(!m||m&&t==="fixed")&&(a=i.offsetLeft,l=i.offsetTop)}return{width:n,height:s,x:a,y:l}}function gl(o,t){let e=ct(o,!0,t==="fixed"),r=e.top+o.clientTop,i=e.left+o.clientLeft,n=se(o)?Lt(o):ie(1),s=o.clientWidth*n.x,a=o.clientHeight*n.y,l=i*n.x,m=r*n.y;return{width:s,height:a,x:l,y:m}}function cs(o,t,e){let r;if(t==="viewport")r=fl(o,e);else if(t==="document")r=ul(ne(o));else if(ee(t))r=gl(t,e);else{let i=hs(o);r={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return st(r)}function us(o,t){let e=ke(o);return e===t||!ee(e)||lt(e)?!1:te(e).position==="fixed"||us(e,t)}function vl(o,t){let e=t.get(o);if(e)return e;let r=kt(o,[],!1).filter(a=>ee(a)&&at(a)!=="body"),i=null,n=te(o).position==="fixed",s=n?ke(o):o;for(;ee(s)&&!lt(s);){let a=te(s),l=Xr(s);!l&&a.position==="fixed"&&(i=null),(n?!l&&!i:!l&&a.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||Rt(s)&&!l&&us(o,s))?r=r.filter(h=>h!==s):i=a,s=ke(s)}return t.set(o,r),r}function bl(o){let{element:t,boundary:e,rootBoundary:r,strategy:i}=o,s=[...e==="clippingAncestors"?sr(t)?[]:vl(t,this._c):[].concat(e),r],a=s[0],l=s.reduce((m,h)=>{let p=cs(t,h,i);return m.top=q(p.top,m.top),m.right=ge(p.right,m.right),m.bottom=ge(p.bottom,m.bottom),m.left=q(p.left,m.left),m},cs(t,a,i));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function yl(o){let{width:t,height:e}=ms(o);return{width:t,height:e}}function xl(o,t,e){let r=se(t),i=ne(t),n=e==="fixed",s=ct(o,!0,n,t),a={scrollLeft:0,scrollTop:0},l=ie(0);if(r||!r&&!n)if((at(t)!=="body"||Rt(i))&&(a=ar(t)),r){let v=ct(t,!0,n,t);l.x=v.x+t.clientLeft,l.y=v.y+t.clientTop}else i&&(l.x=Jo(i));let m=i&&!r&&!n?ps(i,a):ie(0),h=s.left+a.scrollLeft-l.x-m.x,p=s.top+a.scrollTop-l.y-m.y;return{x:h,y:p,width:s.width,height:s.height}}function Ko(o){return te(o).position==="static"}function ds(o,t){if(!se(o)||te(o).position==="fixed")return null;if(t)return t(o);let e=o.offsetParent;return ne(o)===e&&(e=e.ownerDocument.body),e}function fs(o,t){let e=W(o);if(sr(o))return e;if(!se(o)){let i=ke(o);for(;i&&!lt(i);){if(ee(i)&&!Ko(i))return i;i=ke(i)}return e}let r=ds(o,t);for(;r&&ss(r)&&Ko(r);)r=ds(r,t);return r&&lt(r)&&Ko(r)&&!Xr(r)?e:r||as(o)||e}var El=async function(o){let t=this.getOffsetParent||fs,e=this.getDimensions,r=await e(o.floating);return{reference:xl(o.reference,await t(o.floating),o.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Tl(o){return te(o).direction==="rtl"}var Al={convertOffsetParentRelativeRectToViewportRelativeRect:hl,getDocumentElement:ne,getClippingRect:bl,getOffsetParent:fs,getElementRects:El,getClientRects:pl,getDimensions:yl,getScale:Lt,isElement:ee,isRTL:Tl};function Sl(o,t){let e=null,r,i=ne(o);function n(){var a;clearTimeout(r),(a=e)==null||a.disconnect(),e=null}function s(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),n();let{left:m,top:h,width:p,height:v}=o.getBoundingClientRect();if(a||t(),!p||!v)return;let f=nr(h),x=nr(i.clientWidth-(m+p)),T=nr(i.clientHeight-(h+v)),_=nr(m),I={rootMargin:-f+"px "+-x+"px "+-T+"px "+-_+"px",threshold:q(0,ge(1,l))||1},w=!0;function $(M){let Z=M[0].intersectionRatio;if(Z!==l){if(!w)return s();Z?s(!1,Z):r=setTimeout(()=>{s(!1,1e-7)},1e3)}w=!1}try{e=new IntersectionObserver($,{...I,root:i.ownerDocument})}catch{e=new IntersectionObserver($,I)}e.observe(o)}return s(!0),n}function gs(o,t,e,r){r===void 0&&(r={});let{ancestorScroll:i=!0,ancestorResize:n=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,m=Qo(o),h=i||n?[...m?kt(m):[],...kt(t)]:[];h.forEach(S=>{i&&S.addEventListener("scroll",e,{passive:!0}),n&&S.addEventListener("resize",e)});let p=m&&a?Sl(m,e):null,v=-1,f=null;s&&(f=new ResizeObserver(S=>{let[I]=S;I&&I.target===m&&f&&(f.unobserve(t),cancelAnimationFrame(v),v=requestAnimationFrame(()=>{var w;(w=f)==null||w.observe(t)})),e()}),m&&!l&&f.observe(m),f.observe(t));let x,T=l?ct(o):null;l&&_();function _(){let S=ct(o);T&&(S.x!==T.x||S.y!==T.y||S.width!==T.width||S.height!==T.height)&&e(),T=S,x=requestAnimationFrame(_)}return e(),()=>{var S;h.forEach(I=>{i&&I.removeEventListener("scroll",e),n&&I.removeEventListener("resize",e)}),p==null||p(),(S=f)==null||S.disconnect(),f=null,l&&cancelAnimationFrame(x)}}var vs=ts;var bs=rs,ys=es,xs=os;var Es=Jn;var Ts=(o,t,e)=>{let r=new Map,i={platform:Al,...e},n={...i.platform,_c:r};return Qn(o,t,{...i,platform:n})};var _l=g`
1869
+ `,qn=[ol];var Yn=y.constructTagName("marker"),Wn={SOLID:"solid",STRIPED:"striped"};var tr=class extends E{constructor(){super(...arguments);this.variant=Wn.SOLID}};tr.styles=[...E.styles,...qn],c([d({type:String,reflect:!0})],tr.prototype,"variant",2);var Xo=tr;Xo.register(Yn);var il=Xo;var ge=Math.min,q=Math.max,or=Math.round,ir=Math.floor,ie=o=>({x:o,y:o}),nl={left:"right",right:"left",bottom:"top",top:"bottom"},sl={start:"end",end:"start"};function Fr(o,t,e){return q(o,ge(t,e))}function ot(o,t){return typeof o=="function"?o(t):o}function Ie(o){return o.split("-")[0]}function it(o){return o.split("-")[1]}function Zo(o){return o==="x"?"y":"x"}function Br(o){return o==="y"?"height":"width"}function Be(o){return["top","bottom"].includes(Ie(o))?"y":"x"}function Gr(o){return Zo(Be(o))}function Xn(o,t,e){e===void 0&&(e=!1);let r=it(o),i=Gr(o),n=Br(i),s=i==="x"?r===(e?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[n]>t.floating[n]&&(s=rr(s)),[s,rr(s)]}function Zn(o){let t=rr(o);return[Hr(o),t,Hr(t)]}function Hr(o){return o.replace(/start|end/g,t=>sl[t])}function al(o,t,e){let r=["left","right"],i=["right","left"],n=["top","bottom"],s=["bottom","top"];switch(o){case"top":case"bottom":return e?t?i:r:t?r:i;case"left":case"right":return t?n:s;default:return[]}}function jn(o,t,e,r){let i=it(o),n=al(Ie(o),e==="start",r);return i&&(n=n.map(s=>s+"-"+i),t&&(n=n.concat(n.map(Hr)))),n}function rr(o){return o.replace(/left|right|bottom|top/g,t=>nl[t])}function ll(o){return{top:0,right:0,bottom:0,left:0,...o}}function jo(o){return typeof o!="number"?ll(o):{top:o,right:o,bottom:o,left:o}}function nt(o){let{x:t,y:e,width:r,height:i}=o;return{width:r,height:i,top:e,left:t,right:t+r,bottom:e+i,x:t,y:e}}function Kn(o,t,e){let{reference:r,floating:i}=o,n=Be(t),s=Gr(t),a=Br(s),l=Ie(t),m=n==="y",h=r.x+r.width/2-i.width/2,p=r.y+r.height/2-i.height/2,v=r[a]/2-i[a]/2,f;switch(l){case"top":f={x:h,y:r.y-i.height};break;case"bottom":f={x:h,y:r.y+r.height};break;case"right":f={x:r.x+r.width,y:p};break;case"left":f={x:r.x-i.width,y:p};break;default:f={x:r.x,y:r.y}}switch(it(t)){case"start":f[s]-=v*(e&&m?-1:1);break;case"end":f[s]+=v*(e&&m?-1:1);break}return f}var Qn=async(o,t,e)=>{let{placement:r="bottom",strategy:i="absolute",middleware:n=[],platform:s}=e,a=n.filter(Boolean),l=await(s.isRTL==null?void 0:s.isRTL(t)),m=await s.getElementRects({reference:o,floating:t,strategy:i}),{x:h,y:p}=Kn(m,r,l),v=r,f={},x=0;for(let T=0;T<a.length;T++){let{name:_,fn:S}=a[T],{x:I,y:w,data:$,reset:M}=await S({x:h,y:p,initialPlacement:r,placement:v,strategy:i,middlewareData:f,rects:m,platform:s,elements:{reference:o,floating:t}});h=I!=null?I:h,p=w!=null?w:p,f={...f,[_]:{...f[_],...$}},M&&x<=50&&(x++,typeof M=="object"&&(M.placement&&(v=M.placement),M.rects&&(m=M.rects===!0?await s.getElementRects({reference:o,floating:t,strategy:i}):M.rects),{x:h,y:p}=Kn(m,v,l)),T=-1)}return{x:h,y:p,placement:v,strategy:i,middlewareData:f}};async function qr(o,t){var e;t===void 0&&(t={});let{x:r,y:i,platform:n,rects:s,elements:a,strategy:l}=o,{boundary:m="clippingAncestors",rootBoundary:h="viewport",elementContext:p="floating",altBoundary:v=!1,padding:f=0}=ot(t,o),x=jo(f),_=a[v?p==="floating"?"reference":"floating":p],S=nt(await n.getClippingRect({element:(e=await(n.isElement==null?void 0:n.isElement(_)))==null||e?_:_.contextElement||await(n.getDocumentElement==null?void 0:n.getDocumentElement(a.floating)),boundary:m,rootBoundary:h,strategy:l})),I=p==="floating"?{x:r,y:i,width:s.floating.width,height:s.floating.height}:s.reference,w=await(n.getOffsetParent==null?void 0:n.getOffsetParent(a.floating)),$=await(n.isElement==null?void 0:n.isElement(w))?await(n.getScale==null?void 0:n.getScale(w))||{x:1,y:1}:{x:1,y:1},M=nt(n.convertOffsetParentRelativeRectToViewportRelativeRect?await n.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:I,offsetParent:w,strategy:l}):I);return{top:(S.top-M.top+x.top)/$.y,bottom:(M.bottom-S.bottom+x.bottom)/$.y,left:(S.left-M.left+x.left)/$.x,right:(M.right-S.right+x.right)/$.x}}var Jn=o=>({name:"arrow",options:o,async fn(t){let{x:e,y:r,placement:i,rects:n,platform:s,elements:a,middlewareData:l}=t,{element:m,padding:h=0}=ot(o,t)||{};if(m==null)return{};let p=jo(h),v={x:e,y:r},f=Gr(i),x=Br(f),T=await s.getDimensions(m),_=f==="y",S=_?"top":"left",I=_?"bottom":"right",w=_?"clientHeight":"clientWidth",$=n.reference[x]+n.reference[f]-v[f]-n.floating[x],M=v[f]-n.reference[f],Z=await(s.getOffsetParent==null?void 0:s.getOffsetParent(m)),re=Z?Z[w]:0;(!re||!await(s.isElement==null?void 0:s.isElement(Z)))&&(re=a.floating[w]||n.floating[x]);let ve=$/2-M/2,ae=re/2-T[x]/2-1,oe=ge(p[S],ae),Ce=ge(p[I],ae),le=oe,ke=re-T[x]-Ce,B=re/2-T[x]/2+ve,ft=Fr(le,B,ke),be=!l.arrow&&it(i)!=null&&B!==ft&&n.reference[x]/2-(B<le?oe:Ce)-T[x]/2<0,ce=be?B<le?B-le:B-ke:0;return{[f]:v[f]+ce,data:{[f]:ft,centerOffset:B-ft-ce,...be&&{alignmentOffset:ce}},reset:be}}});var es=function(o){return o===void 0&&(o={}),{name:"flip",options:o,async fn(t){var e,r;let{placement:i,middlewareData:n,rects:s,initialPlacement:a,platform:l,elements:m}=t,{mainAxis:h=!0,crossAxis:p=!0,fallbackPlacements:v,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:x="none",flipAlignment:T=!0,..._}=ot(o,t);if((e=n.arrow)!=null&&e.alignmentOffset)return{};let S=Ie(i),I=Be(a),w=Ie(a)===a,$=await(l.isRTL==null?void 0:l.isRTL(m.floating)),M=v||(w||!T?[rr(a)]:Zn(a)),Z=x!=="none";!v&&Z&&M.push(...jn(a,T,x,$));let re=[a,...M],ve=await qr(t,_),ae=[],oe=((r=n.flip)==null?void 0:r.overflows)||[];if(h&&ae.push(ve[S]),p){let B=Xn(i,s,$);ae.push(ve[B[0]],ve[B[1]])}if(oe=[...oe,{placement:i,overflows:ae}],!ae.every(B=>B<=0)){var Ce,le;let B=(((Ce=n.flip)==null?void 0:Ce.index)||0)+1,ft=re[B];if(ft)return{data:{index:B,overflows:oe},reset:{placement:ft}};let be=(le=oe.filter(ce=>ce.overflows[0]<=0).sort((ce,Re)=>ce.overflows[1]-Re.overflows[1])[0])==null?void 0:le.placement;if(!be)switch(f){case"bestFit":{var ke;let ce=(ke=oe.filter(Re=>{if(Z){let Le=Be(Re.placement);return Le===I||Le==="y"}return!0}).map(Re=>[Re.placement,Re.overflows.filter(Le=>Le>0).reduce((Le,Js)=>Le+Js,0)]).sort((Re,Le)=>Re[1]-Le[1])[0])==null?void 0:ke[0];ce&&(be=ce);break}case"initialPlacement":be=a;break}if(i!==be)return{reset:{placement:be}}}return{}}}};async function cl(o,t){let{placement:e,platform:r,elements:i}=o,n=await(r.isRTL==null?void 0:r.isRTL(i.floating)),s=Ie(e),a=it(e),l=Be(e)==="y",m=["left","top"].includes(s)?-1:1,h=n&&l?-1:1,p=ot(t,o),{mainAxis:v,crossAxis:f,alignmentAxis:x}=typeof p=="number"?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return a&&typeof x=="number"&&(f=a==="end"?x*-1:x),l?{x:f*h,y:v*m}:{x:v*m,y:f*h}}var ts=function(o){return o===void 0&&(o=0),{name:"offset",options:o,async fn(t){var e,r;let{x:i,y:n,placement:s,middlewareData:a}=t,l=await cl(t,o);return s===((e=a.offset)==null?void 0:e.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:i+l.x,y:n+l.y,data:{...l,placement:s}}}}},rs=function(o){return o===void 0&&(o={}),{name:"shift",options:o,async fn(t){let{x:e,y:r,placement:i}=t,{mainAxis:n=!0,crossAxis:s=!1,limiter:a={fn:_=>{let{x:S,y:I}=_;return{x:S,y:I}}},...l}=ot(o,t),m={x:e,y:r},h=await qr(t,l),p=Be(Ie(i)),v=Zo(p),f=m[v],x=m[p];if(n){let _=v==="y"?"top":"left",S=v==="y"?"bottom":"right",I=f+h[_],w=f-h[S];f=Fr(I,f,w)}if(s){let _=p==="y"?"top":"left",S=p==="y"?"bottom":"right",I=x+h[_],w=x-h[S];x=Fr(I,x,w)}let T=a.fn({...t,[v]:f,[p]:x});return{...T,data:{x:T.x-e,y:T.y-r,enabled:{[v]:n,[p]:s}}}}}};var os=function(o){return o===void 0&&(o={}),{name:"size",options:o,async fn(t){var e,r;let{placement:i,rects:n,platform:s,elements:a}=t,{apply:l=()=>{},...m}=ot(o,t),h=await qr(t,m),p=Ie(i),v=it(i),f=Be(i)==="y",{width:x,height:T}=n.floating,_,S;p==="top"||p==="bottom"?(_=p,S=v===(await(s.isRTL==null?void 0:s.isRTL(a.floating))?"start":"end")?"left":"right"):(S=p,_=v==="end"?"top":"bottom");let I=T-h.top-h.bottom,w=x-h.left-h.right,$=ge(T-h[_],I),M=ge(x-h[S],w),Z=!t.middlewareData.shift,re=$,ve=M;if((e=t.middlewareData.shift)!=null&&e.enabled.x&&(ve=w),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(re=I),Z&&!v){let oe=q(h.left,0),Ce=q(h.right,0),le=q(h.top,0),ke=q(h.bottom,0);f?ve=x-2*(oe!==0||Ce!==0?oe+Ce:q(h.left,h.right)):re=T-2*(le!==0||ke!==0?le+ke:q(h.top,h.bottom))}await l({...t,availableWidth:ve,availableHeight:re});let ae=await s.getDimensions(a.floating);return x!==ae.width||T!==ae.height?{reset:{rects:!0}}:{}}}};function Yr(){return typeof window<"u"}function st(o){return ns(o)?(o.nodeName||"").toLowerCase():"#document"}function W(o){var t;return(o==null||(t=o.ownerDocument)==null?void 0:t.defaultView)||window}function ne(o){var t;return(t=(ns(o)?o.ownerDocument:o.document)||window.document)==null?void 0:t.documentElement}function ns(o){return Yr()?o instanceof Node||o instanceof W(o).Node:!1}function ee(o){return Yr()?o instanceof Element||o instanceof W(o).Element:!1}function se(o){return Yr()?o instanceof HTMLElement||o instanceof W(o).HTMLElement:!1}function is(o){return!Yr()||typeof ShadowRoot>"u"?!1:o instanceof ShadowRoot||o instanceof W(o).ShadowRoot}function kt(o){let{overflow:t,overflowX:e,overflowY:r,display:i}=te(o);return/auto|scroll|overlay|hidden|clip/.test(t+r+e)&&!["inline","contents"].includes(i)}function ss(o){return["table","td","th"].includes(st(o))}function nr(o){return[":popover-open",":modal"].some(t=>{try{return o.matches(t)}catch{return!1}})}function Wr(o){let t=Xr(),e=ee(o)?te(o):o;return e.transform!=="none"||e.perspective!=="none"||(e.containerType?e.containerType!=="normal":!1)||!t&&(e.backdropFilter?e.backdropFilter!=="none":!1)||!t&&(e.filter?e.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(e.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(e.contain||"").includes(r))}function as(o){let t=we(o);for(;se(t)&&!at(t);){if(Wr(t))return t;if(nr(t))return null;t=we(t)}return null}function Xr(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function at(o){return["html","body","#document"].includes(st(o))}function te(o){return W(o).getComputedStyle(o)}function sr(o){return ee(o)?{scrollLeft:o.scrollLeft,scrollTop:o.scrollTop}:{scrollLeft:o.scrollX,scrollTop:o.scrollY}}function we(o){if(st(o)==="html")return o;let t=o.assignedSlot||o.parentNode||is(o)&&o.host||ne(o);return is(t)?t.host:t}function ls(o){let t=we(o);return at(t)?o.ownerDocument?o.ownerDocument.body:o.body:se(t)&&kt(t)?t:ls(t)}function Ct(o,t,e){var r;t===void 0&&(t=[]),e===void 0&&(e=!0);let i=ls(o),n=i===((r=o.ownerDocument)==null?void 0:r.body),s=W(i);if(n){let a=Zr(s);return t.concat(s,s.visualViewport||[],kt(i)?i:[],a&&e?Ct(a):[])}return t.concat(i,Ct(i,[],e))}function Zr(o){return o.parent&&Object.getPrototypeOf(o.parent)?o.frameElement:null}function ms(o){let t=te(o),e=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=se(o),n=i?o.offsetWidth:e,s=i?o.offsetHeight:r,a=or(e)!==n||or(r)!==s;return a&&(e=n,r=s),{width:e,height:r,$:a}}function Qo(o){return ee(o)?o:o.contextElement}function Rt(o){let t=Qo(o);if(!se(t))return ie(1);let e=t.getBoundingClientRect(),{width:r,height:i,$:n}=ms(t),s=(n?or(e.width):e.width)/r,a=(n?or(e.height):e.height)/i;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}var dl=ie(0);function hs(o){let t=W(o);return!Xr()||!t.visualViewport?dl:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function ml(o,t,e){return t===void 0&&(t=!1),!e||t&&e!==W(o)?!1:t}function lt(o,t,e,r){t===void 0&&(t=!1),e===void 0&&(e=!1);let i=o.getBoundingClientRect(),n=Qo(o),s=ie(1);t&&(r?ee(r)&&(s=Rt(r)):s=Rt(o));let a=ml(n,e,r)?hs(n):ie(0),l=(i.left+a.x)/s.x,m=(i.top+a.y)/s.y,h=i.width/s.x,p=i.height/s.y;if(n){let v=W(n),f=r&&ee(r)?W(r):r,x=v,T=Zr(x);for(;T&&r&&f!==x;){let _=Rt(T),S=T.getBoundingClientRect(),I=te(T),w=S.left+(T.clientLeft+parseFloat(I.paddingLeft))*_.x,$=S.top+(T.clientTop+parseFloat(I.paddingTop))*_.y;l*=_.x,m*=_.y,h*=_.x,p*=_.y,l+=w,m+=$,x=W(T),T=Zr(x)}}return nt({width:h,height:p,x:l,y:m})}function Jo(o,t){let e=sr(o).scrollLeft;return t?t.left+e:lt(ne(o)).left+e}function ps(o,t,e){e===void 0&&(e=!1);let r=o.getBoundingClientRect(),i=r.left+t.scrollLeft-(e?0:Jo(o,r)),n=r.top+t.scrollTop;return{x:i,y:n}}function hl(o){let{elements:t,rect:e,offsetParent:r,strategy:i}=o,n=i==="fixed",s=ne(r),a=t?nr(t.floating):!1;if(r===s||a&&n)return e;let l={scrollLeft:0,scrollTop:0},m=ie(1),h=ie(0),p=se(r);if((p||!p&&!n)&&((st(r)!=="body"||kt(s))&&(l=sr(r)),se(r))){let f=lt(r);m=Rt(r),h.x=f.x+r.clientLeft,h.y=f.y+r.clientTop}let v=s&&!p&&!n?ps(s,l,!0):ie(0);return{width:e.width*m.x,height:e.height*m.y,x:e.x*m.x-l.scrollLeft*m.x+h.x+v.x,y:e.y*m.y-l.scrollTop*m.y+h.y+v.y}}function pl(o){return Array.from(o.getClientRects())}function ul(o){let t=ne(o),e=sr(o),r=o.ownerDocument.body,i=q(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),n=q(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),s=-e.scrollLeft+Jo(o),a=-e.scrollTop;return te(r).direction==="rtl"&&(s+=q(t.clientWidth,r.clientWidth)-i),{width:i,height:n,x:s,y:a}}function fl(o,t){let e=W(o),r=ne(o),i=e.visualViewport,n=r.clientWidth,s=r.clientHeight,a=0,l=0;if(i){n=i.width,s=i.height;let m=Xr();(!m||m&&t==="fixed")&&(a=i.offsetLeft,l=i.offsetTop)}return{width:n,height:s,x:a,y:l}}function gl(o,t){let e=lt(o,!0,t==="fixed"),r=e.top+o.clientTop,i=e.left+o.clientLeft,n=se(o)?Rt(o):ie(1),s=o.clientWidth*n.x,a=o.clientHeight*n.y,l=i*n.x,m=r*n.y;return{width:s,height:a,x:l,y:m}}function cs(o,t,e){let r;if(t==="viewport")r=fl(o,e);else if(t==="document")r=ul(ne(o));else if(ee(t))r=gl(t,e);else{let i=hs(o);r={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return nt(r)}function us(o,t){let e=we(o);return e===t||!ee(e)||at(e)?!1:te(e).position==="fixed"||us(e,t)}function vl(o,t){let e=t.get(o);if(e)return e;let r=Ct(o,[],!1).filter(a=>ee(a)&&st(a)!=="body"),i=null,n=te(o).position==="fixed",s=n?we(o):o;for(;ee(s)&&!at(s);){let a=te(s),l=Wr(s);!l&&a.position==="fixed"&&(i=null),(n?!l&&!i:!l&&a.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||kt(s)&&!l&&us(o,s))?r=r.filter(h=>h!==s):i=a,s=we(s)}return t.set(o,r),r}function bl(o){let{element:t,boundary:e,rootBoundary:r,strategy:i}=o,s=[...e==="clippingAncestors"?nr(t)?[]:vl(t,this._c):[].concat(e),r],a=s[0],l=s.reduce((m,h)=>{let p=cs(t,h,i);return m.top=q(p.top,m.top),m.right=ge(p.right,m.right),m.bottom=ge(p.bottom,m.bottom),m.left=q(p.left,m.left),m},cs(t,a,i));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function yl(o){let{width:t,height:e}=ms(o);return{width:t,height:e}}function xl(o,t,e){let r=se(t),i=ne(t),n=e==="fixed",s=lt(o,!0,n,t),a={scrollLeft:0,scrollTop:0},l=ie(0);if(r||!r&&!n)if((st(t)!=="body"||kt(i))&&(a=sr(t)),r){let v=lt(t,!0,n,t);l.x=v.x+t.clientLeft,l.y=v.y+t.clientTop}else i&&(l.x=Jo(i));let m=i&&!r&&!n?ps(i,a):ie(0),h=s.left+a.scrollLeft-l.x-m.x,p=s.top+a.scrollTop-l.y-m.y;return{x:h,y:p,width:s.width,height:s.height}}function Ko(o){return te(o).position==="static"}function ds(o,t){if(!se(o)||te(o).position==="fixed")return null;if(t)return t(o);let e=o.offsetParent;return ne(o)===e&&(e=e.ownerDocument.body),e}function fs(o,t){let e=W(o);if(nr(o))return e;if(!se(o)){let i=we(o);for(;i&&!at(i);){if(ee(i)&&!Ko(i))return i;i=we(i)}return e}let r=ds(o,t);for(;r&&ss(r)&&Ko(r);)r=ds(r,t);return r&&at(r)&&Ko(r)&&!Wr(r)?e:r||as(o)||e}var El=async function(o){let t=this.getOffsetParent||fs,e=this.getDimensions,r=await e(o.floating);return{reference:xl(o.reference,await t(o.floating),o.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Tl(o){return te(o).direction==="rtl"}var Al={convertOffsetParentRelativeRectToViewportRelativeRect:hl,getDocumentElement:ne,getClippingRect:bl,getOffsetParent:fs,getElementRects:El,getClientRects:pl,getDimensions:yl,getScale:Rt,isElement:ee,isRTL:Tl};function Sl(o,t){let e=null,r,i=ne(o);function n(){var a;clearTimeout(r),(a=e)==null||a.disconnect(),e=null}function s(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),n();let{left:m,top:h,width:p,height:v}=o.getBoundingClientRect();if(a||t(),!p||!v)return;let f=ir(h),x=ir(i.clientWidth-(m+p)),T=ir(i.clientHeight-(h+v)),_=ir(m),I={rootMargin:-f+"px "+-x+"px "+-T+"px "+-_+"px",threshold:q(0,ge(1,l))||1},w=!0;function $(M){let Z=M[0].intersectionRatio;if(Z!==l){if(!w)return s();Z?s(!1,Z):r=setTimeout(()=>{s(!1,1e-7)},1e3)}w=!1}try{e=new IntersectionObserver($,{...I,root:i.ownerDocument})}catch{e=new IntersectionObserver($,I)}e.observe(o)}return s(!0),n}function gs(o,t,e,r){r===void 0&&(r={});let{ancestorScroll:i=!0,ancestorResize:n=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,m=Qo(o),h=i||n?[...m?Ct(m):[],...Ct(t)]:[];h.forEach(S=>{i&&S.addEventListener("scroll",e,{passive:!0}),n&&S.addEventListener("resize",e)});let p=m&&a?Sl(m,e):null,v=-1,f=null;s&&(f=new ResizeObserver(S=>{let[I]=S;I&&I.target===m&&f&&(f.unobserve(t),cancelAnimationFrame(v),v=requestAnimationFrame(()=>{var w;(w=f)==null||w.observe(t)})),e()}),m&&!l&&f.observe(m),f.observe(t));let x,T=l?lt(o):null;l&&_();function _(){let S=lt(o);T&&(S.x!==T.x||S.y!==T.y||S.width!==T.width||S.height!==T.height)&&e(),T=S,x=requestAnimationFrame(_)}return e(),()=>{var S;h.forEach(I=>{i&&I.removeEventListener("scroll",e),n&&I.removeEventListener("resize",e)}),p==null||p(),(S=f)==null||S.disconnect(),f=null,l&&cancelAnimationFrame(x)}}var vs=ts;var bs=rs,ys=es,xs=os;var Es=Jn;var Ts=(o,t,e)=>{let r=new Map,i={platform:Al,...e},n={...i.platform,_c:r};return Qn(o,t,{...i,platform:n})};var _l=g`
1870
1870
  :host {
1871
1871
  --mdc-popover-arrow-border-radius: 0.1875rem;
1872
1872
  --mdc-popover-arrow-border: 0.0625rem solid var(--mds-color-theme-outline-secondary-normal);
@@ -1972,7 +1972,7 @@
1972
1972
  border-top-right-radius: var(--mdc-popover-arrow-border-radius);
1973
1973
  border-bottom-left-radius: 100%;
1974
1974
  }
1975
- `,As=[_l];var Ss=y.constructTagName("modalcontainer"),lr={TONAL:"tonal",CONTRAST:"contrast"},Il={0:0,1:1,2:2,3:3,4:4},cr={COLOR:lr.TONAL,ELEVATION:Il[0],ROLE:"dialog",ARIA_MODAL:!1,CHILDREN:"Lorem ipsum dolor sit amet"};var _s=y.constructTagName("popover"),ei={LEFT_START:"left-start",LEFT:"left",LEFT_END:"left-end",RIGHT_START:"right-start",RIGHT:"right",RIGHT_END:"right-end",TOP_START:"top-start",TOP:"top",TOP_END:"top-end",BOTTOM_START:"bottom-start",BOTTOM:"bottom",BOTTOM_END:"bottom-end"},ti={CLICK:"click",MOUSEENTER:"mouseenter",FOCUSIN:"focusin",MANUAL:"manual"},L={PLACEMENT:ei.BOTTOM,TRIGGER:ti.CLICK,COLOR:lr.TONAL,OFFSET:4,VISIBLE:!1,ARROW:!1,CLOSE_BUTTON:!1,FOCUS_TRAP:!1,INTERACTIVE:!1,PREVENT_SCROLL:!1,HIDE_ON_ESCAPE:!1,HIDE_ON_BLUR:!1,HIDE_ON_CLICK_OUTSIDE:!1,FOCUS_BACK:!1,BACKDROP:!1,FLIP:!0,SIZE:!1,DELAY:"0,0",ROLE:"dialog",Z_INDEX:1e3};var Is=o=>{class t extends o{constructor(...i){super(...i);this.enabledFocusTrap=L.FOCUS_TRAP;this.enabledPreventScroll=L.PREVENT_SCROLL;this.focusTrapIndex=-1;this.focusableElements=[];this.shouldWrapFocus=()=>!0;this.addEventListener("keydown",this.handleKeydown)}deactivateFocusTrap(){this.enabledFocusTrap=!1,this.enabledPreventScroll=!1,this.focusTrapIndex=-1,document.body.style.overflow=""}hasNoClientRects(i){return i.getClientRects().length===0}hasZeroDimensions(i){let{width:n,height:s}=i.getBoundingClientRect(),{offsetWidth:a,offsetHeight:l}=i;return a+l+s+n===0}isNotVisible(i){return this.hasZeroDimensions(i)||this.hasNoClientRects(i)}hasHiddenStyle(i){let{display:n,opacity:s,visibility:a}=i.style;return n==="none"||s==="0"||a==="hidden"||a==="collapse"}hasComputedHidden(i){let n=getComputedStyle(i);return n.visibility==="hidden"||n.height==="0"||n.display==="none"}isHidden(i){return i.hasAttribute("hidden")||i.getAttribute("aria-hidden")==="true"||this.hasHiddenStyle(i)||this.isNotVisible(i)||this.hasComputedHidden(i)}isNotTabbable(i){return i.getAttribute("tabindex")==="-1"}isInteractiveElement(i){return!!(new Set(["BUTTON","DETAILS","EMBED","IFRAME","SELECT","TEXTAREA"]).has(i.tagName)||i instanceof HTMLAnchorElement&&i.hasAttribute("href")||i instanceof HTMLInputElement&&i.type!=="hidden"||(i instanceof HTMLAudioElement||i instanceof HTMLVideoElement)&&i.hasAttribute("controls")||(i instanceof HTMLImageElement||i instanceof HTMLObjectElement)&&i.hasAttribute("usemap")||i.hasAttribute("tabindex")&&i.tabIndex>-1)}isFocusable(i){return this.isHidden(i)||this.isNotTabbable(i)?!1:this.isInteractiveElement(i)}findFocusable(i,n=new Set){return i instanceof HTMLElement&&this.isFocusable(i)&&n.add(i),Array.from(i.children).forEach(a=>{let l=a;this.isFocusable(l)&&n.add(l),l.shadowRoot?this.findFocusable(l.shadowRoot,n):l.tagName==="SLOT"?l.assignedElements({flatten:!0}).forEach(h=>{h instanceof HTMLElement&&this.findFocusable(h,n)}):this.findFocusable(l,n)}),[...n]}setFocusableElements(){this.shadowRoot&&(this.focusableElements=this.findFocusable(this.shadowRoot,new Set))}setInitialFocus(i=0){this.focusableElements.length!==0&&(this.enabledPreventScroll&&(document.body.style.overflow="hidden"),this.focusableElements[i]&&(this.focusTrapIndex=i,this.focusableElements[i].focus()))}calculateNextIndex(i,n){let{length:s}=this.focusableElements,a=this.shouldWrapFocus();if(i===-1)return n>0?0:s-1;let l=i+n;return a?(l<0&&(l=s-1),l>=s&&(l=0)):(l<0&&(l=0),l>=s&&(l=s-1)),l}getDeepActiveElement(){var n;let i=document.activeElement||document.body;for(;i instanceof HTMLElement&&((n=i.shadowRoot)!=null&&n.activeElement);)i=i.shadowRoot.activeElement;return i||document.body}findElement(i){return this.focusableElements.findIndex(n=>this.isEqualFocusNode(i,n))}isEqualFocusNode(i,n){return i.nodeType>=0?n.isEqualNode(i)&&n===i:!1}trapFocus(i){if(this.focusableElements.length===0)return;let n=this.getDeepActiveElement(),s=this.findElement(n);i?this.focusTrapIndex=this.calculateNextIndex(s,-1):this.focusTrapIndex=this.calculateNextIndex(s,1);let a=this.focusableElements[this.focusTrapIndex];a&&a.focus()}handleKeydown(i){!this.enabledFocusTrap||!this.focusableElements.length||i.key==="Tab"&&(i.preventDefault(),this.trapFocus(i.shiftKey))}}return c([d({type:Boolean})],t.prototype,"enabledFocusTrap",2),c([d({type:Boolean})],t.prototype,"enabledPreventScroll",2),t};var ri=class{constructor(){this.stack=[]}push(t){this.stack.push(t)}pop(){return this.stack.pop()}peek(){return this.stack[this.stack.length-1]}remove(t){this.stack=this.stack.filter(e=>e!==t)}clear(){this.stack=[]}},dt=new ri;var Kr=o=>{class t extends o{constructor(){super(...arguments);this.dataAriaDescribedby=null}}return c([d({type:String,reflect:!0,attribute:"data-aria-describedby"})],t.prototype,"dataAriaDescribedby",2),t};var Qr=o=>{class t extends o{constructor(){super(...arguments);this.dataAriaLabelledby=null}}return c([d({type:String,reflect:!0,attribute:"data-aria-labelledby"})],t.prototype,"dataAriaLabelledby",2),t};var mt=class{static dispatchPopoverEvent(t,e){e.dispatchEvent(new CustomEvent(t,{detail:{show:e.visible},composed:!0,bubbles:!0}))}static onShowPopover(t){this.dispatchPopoverEvent("popover-on-show",t)}static onHidePopover(t){this.dispatchPopoverEvent("popover-on-hide",t)}static onCreatedPopover(t){this.dispatchPopoverEvent("popover-on-created",t)}static onDestroyedPopover(t){this.dispatchPopoverEvent("popover-on-destroyed",t)}};var Jr=class{constructor(t){this.arrowPixelChange=!1;this.popover=t}setupDelay(){try{let[t,e]=this.popover.delay.split(",").map(r=>{let i=parseInt(r,10);if(Number.isNaN(i)||i<0)throw new Error(`Invalid delay value: ${r}`);return i});return[t,e]}catch{return this.popover.delay="0,0",[0,0]}}setupHoverBridge(t){var a;let e=this.popover.renderRoot.querySelector(".popover-hover-bridge");Object.assign(e.style,{top:"",left:"",right:"",bottom:""});let r=`calc(${this.popover.showArrow?"0.75rem + ":""}${this.popover.offset}px)`,i=(a=this.popover.shadowRoot)==null?void 0:a.querySelector("mdc-modalcontainer"),n=i.offsetHeight||0,s=i.offsetWidth||0;if(e)switch(t.split("-")[0]){case"top":e.style.height=r,e.style.bottom=`calc(-1 * (${r}))`,e.style.left="50%",e.style.width=`${s}px`;break;case"left":e.style.height=`${n}px`,e.style.width=r,e.style.right=`calc(-1.5 * (${r}))`;break;case"right":e.style.height=`${n}px`,e.style.width=r,e.style.left=`calc(-0.5 * (${r}))`;break;case"bottom":default:e.style.height=r,e.style.top=`calc(-1 * (${r}))`,e.style.left="50%",e.style.width=`${s}px`;break}}setupAppendTo(){if(this.popover.appendTo){let t=document.getElementById(this.popover.appendTo);t&&t.appendChild(this.popover)}}setupAccessibility(){var t,e,r;this.popover.interactive&&(this.popover.dataAriaLabel||(this.popover.dataAriaLabel=((t=this.popover.triggerElement)==null?void 0:t.ariaLabel)||((e=this.popover.triggerElement)==null?void 0:e.textContent)||""),this.popover.dataAriaLabelledby||(this.popover.dataAriaLabelledby=((r=this.popover.triggerElement)==null?void 0:r.id)||""))}updateArrowStyle(t,e){var h;if(!this.popover.arrowElement)return;let r=e.split("-")[0],i={top:"bottom",right:"left",bottom:"top",left:"right"}[r],{x:n,y:s}=t,a=this.popover.arrowElement.getBoundingClientRect(),l=(h=this.popover.arrowElement.offsetParent)==null?void 0:h.getBoundingClientRect();if(!this.arrowPixelChange){let p=l!=null&&l[i]?12-Math.abs(a[i]-l[i]):0;Math.round(p)===1?this.arrowPixelChange=!0:this.arrowPixelChange=!1}let m=this.arrowPixelChange?.5:0;this.popover.arrowElement.setAttribute("data-side",r),Object.assign(this.popover.arrowElement.style,{left:n!=null?`${n}px`:"",top:s!=null?`${s}px`:"",[i]:`${-this.popover.arrowElement.offsetHeight/2-m}px`})}updatePopoverStyle(t,e){this.popover.containerElement&&Object.assign(this.popover.containerElement.style,{left:`${t}px`,top:`${e}px`})}};var R=class extends U(Qr(Kr(Is(E)))){constructor(){super();this.id="";this.triggerID="";this.trigger=L.TRIGGER;this.placement=L.PLACEMENT;this.color=L.COLOR;this.visible=L.VISIBLE;this.offset=L.OFFSET;this.focusTrap=L.FOCUS_TRAP;this.preventScroll=L.PREVENT_SCROLL;this.showArrow=L.ARROW;this.closeButton=L.CLOSE_BUTTON;this.interactive=L.INTERACTIVE;this.delay=L.DELAY;this.hideOnEscape=L.HIDE_ON_ESCAPE;this.hideOnBlur=L.HIDE_ON_BLUR;this.hideOnOutsideClick=L.HIDE_ON_CLICK_OUTSIDE;this.focusBackToTrigger=L.FOCUS_BACK;this.backdrop=L.BACKDROP;this.flip=L.FLIP;this.size=L.SIZE;this.zIndex=L.Z_INDEX;this.appendTo="";this.closeButtonAriaLabel=null;this.dataRole=L.ROLE;this.arrowElement=null;this.triggerElement=null;this.containerElement=null;this.hoverTimer=null;this.isTriggerClicked=!1;this.openDelay=0;this.closeDelay=0;this.onOutsidePopoverClick=e=>{if(dt.peek()!==this)return;let r=!1,i=e.composedPath();r=this.contains(e.target)||i.includes(this.triggerElement);let n=this.renderRoot.querySelector(".popover-backdrop"),s=n?i.includes(n):!1;(!r||s)&&this.hidePopover()};this.onEscapeKeydown=e=>{!this.visible||e.code!=="Escape"||(e.preventDefault(),this.hidePopover())};this.onPopoverFocusOut=e=>{this.contains(e.relatedTarget)||this.hidePopover()};this.startCloseDelay=()=>{if(!this.interactive)this.hidePopover();else{if(this.isTriggerClicked)return;this.hoverTimer=window.setTimeout(()=>{this.visible=!1},this.closeDelay)}};this.cancelCloseDelay=()=>{this.hoverTimer&&(clearTimeout(this.hoverTimer),this.hoverTimer=null)};this.showPopover=()=>{this.cancelCloseDelay(),setTimeout(()=>{this.visible=!0,mt.onShowPopover(this)},this.openDelay),dt.peek()!==this&&dt.push(this)};this.hidePopover=()=>{dt.peek()===this&&(setTimeout(()=>{this.visible=!1,mt.onHidePopover(this),this.isTriggerClicked=!1},this.closeDelay),dt.pop())};this.togglePopoverVisible=()=>{this.isTriggerClicked?this.hidePopover():(this.showPopover(),this.isTriggerClicked=!0)};this.utils=new Jr(this)}async firstUpdated(e){super.firstUpdated(e),this.containerElement=this.renderRoot.querySelector(".popover-container"),this.utils.setupAppendTo(),[this.openDelay,this.closeDelay]=this.utils.setupDelay(),this.setupTriggerListener(),this.utils.setupAccessibility(),mt.onCreatedPopover(this),this.visible&&(await this.positionPopover(),await this.handleCreatePopoverFirstUpdate())}async disconnectedCallback(){super.disconnectedCallback(),await this.removeEventListeners(),mt.onDestroyedPopover(this),dt.remove(this)}setupTriggerListener(){var e,r;if(this.triggerID&&(this.triggerElement=document.getElementById(this.triggerID),!!this.triggerElement)){if(this.trigger==="mouseenter"&&(this.interactive?this.trigger="mouseenter click":this.trigger="mouseenter focusin"),this.trigger.includes("click")&&this.triggerElement.addEventListener("click",this.togglePopoverVisible),this.trigger.includes("mouseenter")){let i=this.renderRoot.querySelector(".popover-hover-bridge");this.triggerElement.addEventListener("mouseenter",this.showPopover),this.triggerElement.addEventListener("mouseleave",this.startCloseDelay),(e=this.containerElement)==null||e.addEventListener("mouseenter",this.cancelCloseDelay),(r=this.containerElement)==null||r.addEventListener("mouseleave",this.startCloseDelay),i==null||i.addEventListener("mouseenter",this.cancelCloseDelay)}this.trigger.includes("focusin")&&(this.triggerElement.addEventListener("focusin",this.showPopover),this.interactive||this.triggerElement.addEventListener("focusout",this.hidePopover)),this.addEventListener("focus-trap-exit",this.hidePopover)}}removeEventListeners(){var r,i;if(!this.triggerElement)return;let e=this.renderRoot.querySelector(".popover-hover-bridge");this.triggerElement.removeEventListener("click",this.togglePopoverVisible),this.triggerElement.removeEventListener("mouseenter",this.showPopover),this.triggerElement.removeEventListener("mouseleave",this.hidePopover),(r=this.containerElement)==null||r.removeEventListener("mouseenter",this.cancelCloseDelay),(i=this.containerElement)==null||i.removeEventListener("mouseleave",this.startCloseDelay),this.triggerElement.removeEventListener("focusin",this.showPopover),this.triggerElement.removeEventListener("focusout",this.hidePopover),e==null||e.removeEventListener("mouseenter",this.cancelCloseDelay),this.removeEventListener("focus-trap-exit",this.hidePopover)}async updated(e){if(super.updated(e),e.has("visible")){let r=e.get("visible");await this.isOpenUpdated(r,this.visible)}if(e.has("placement")&&this.setAttribute("placement",Object.values(ei).includes(this.placement)?this.placement:L.PLACEMENT),e.has("delay")&&([this.openDelay,this.closeDelay]=this.utils.setupDelay()),e.has("trigger")){let i=this.trigger.split(" ").filter(n=>Object.values(ti).includes(n));this.setAttribute("trigger",i.length>0?this.trigger:L.TRIGGER),this.removeEventListeners(),this.setupTriggerListener()}e.has("color")&&this.setAttribute("color",Object.values(lr).includes(this.color)?this.color:L.COLOR),e.has("zIndex")&&this.setAttribute("z-index",`${this.zIndex}`),e.has("append-to")&&this.utils.setupAppendTo(),(e.has("interactive")||e.has("data-aria-label")||e.has("data-aria-labelledby"))&&this.utils.setupAccessibility()}async isOpenUpdated(e,r){var i,n,s,a;if(!(e===r||!this.triggerElement))if(r){if(this.enabledFocusTrap=this.focusTrap,this.enabledPreventScroll=this.preventScroll,this.backdrop){let l=this.renderRoot.querySelector(".popover-backdrop");l.style.zIndex=`${this.zIndex-1}`,this.triggerElement.style.zIndex=`${this.zIndex}`}this.positionPopover(),await this.handleCreatePopoverFirstUpdate(),this.hideOnBlur&&((i=this.containerElement)==null||i.addEventListener("focusout",this.onPopoverFocusOut),this.trigger==="click"&&(this.triggerElement.style.pointerEvents="none")),this.hideOnOutsideClick&&document.addEventListener("click",this.onOutsidePopoverClick),this.hideOnEscape&&document.addEventListener("keydown",this.onEscapeKeydown),this.triggerElement.setAttribute("aria-expanded","true"),this.interactive&&this.triggerElement.setAttribute("aria-haspopup",this.triggerElement.getAttribute("aria-haspopup")||"dialog")}else this.hideOnBlur&&((n=this.containerElement)==null||n.removeEventListener("focusout",this.onPopoverFocusOut),this.trigger==="click"&&(this.triggerElement.style.pointerEvents="")),this.hideOnOutsideClick&&document.removeEventListener("click",this.onOutsidePopoverClick),this.hideOnEscape&&document.removeEventListener("keydown",this.onEscapeKeydown),(s=this.deactivateFocusTrap)==null||s.call(this),this.triggerElement.removeAttribute("aria-expanded"),this.interactive&&this.triggerElement.removeAttribute("aria-haspopup"),this.focusBackToTrigger&&((a=this.triggerElement)==null||a.focus())}async handleCreatePopoverFirstUpdate(){var e,r;this.visible&&this.interactive&&((e=this.setFocusableElements)==null||e.call(this),await this.updateComplete,(r=this.setInitialFocus)==null||r.call(this))}positionPopover(){if(!this.triggerElement||!this.containerElement)return;let e=[bs()],r=this.offset;if(this.flip&&e.push(ys()),this.size){let i=this.containerElement.querySelector('[part="popover-content"]');e.push(xs({apply({availableHeight:n}){i&&Object.assign(i.style,{maxHeight:`${n}px`})},padding:50}))}if(this.showArrow&&(this.arrowElement=this.renderRoot.querySelector(".popover-arrow"),this.arrowElement)){let i=this.arrowElement.offsetHeight;r=Math.sqrt(2*i**2)/2+this.offset,e.push(Es({element:this.arrowElement,padding:12}))}e.push(vs(r)),gs(this.triggerElement,this.containerElement,async()=>{if(!this.triggerElement||!this.containerElement)return;let{x:i,y:n,middlewareData:s,placement:a}=await Ts(this.triggerElement,this.containerElement,{placement:this.placement,middleware:e});this.utils.updatePopoverStyle(i,n),s.arrow&&this.arrowElement&&this.utils.updateArrowStyle(s.arrow,a),this.trigger.includes("mouseenter")&&this.utils.setupHoverBridge(a)})}render(){return u`
1975
+ `,As=[_l];var Ss=y.constructTagName("modalcontainer"),ar={TONAL:"tonal",CONTRAST:"contrast"},Il={0:0,1:1,2:2,3:3,4:4},lr={COLOR:ar.TONAL,ELEVATION:Il[0],ROLE:"dialog",ARIA_MODAL:!1,CHILDREN:"Lorem ipsum dolor sit amet"};var _s=y.constructTagName("popover"),ei={LEFT_START:"left-start",LEFT:"left",LEFT_END:"left-end",RIGHT_START:"right-start",RIGHT:"right",RIGHT_END:"right-end",TOP_START:"top-start",TOP:"top",TOP_END:"top-end",BOTTOM_START:"bottom-start",BOTTOM:"bottom",BOTTOM_END:"bottom-end"},ti={CLICK:"click",MOUSEENTER:"mouseenter",FOCUSIN:"focusin",MANUAL:"manual"},L={PLACEMENT:ei.BOTTOM,TRIGGER:ti.CLICK,COLOR:ar.TONAL,OFFSET:4,VISIBLE:!1,ARROW:!1,CLOSE_BUTTON:!1,FOCUS_TRAP:!1,INTERACTIVE:!1,PREVENT_SCROLL:!1,HIDE_ON_ESCAPE:!1,HIDE_ON_BLUR:!1,HIDE_ON_CLICK_OUTSIDE:!1,FOCUS_BACK:!1,BACKDROP:!1,FLIP:!0,SIZE:!1,DELAY:"0,0",ROLE:"dialog",Z_INDEX:1e3};var Is=o=>{class t extends o{constructor(...i){super(...i);this.enabledFocusTrap=L.FOCUS_TRAP;this.enabledPreventScroll=L.PREVENT_SCROLL;this.focusTrapIndex=-1;this.focusableElements=[];this.shouldWrapFocus=()=>!0;this.addEventListener("keydown",this.handleKeydown)}deactivateFocusTrap(){this.enabledFocusTrap=!1,this.enabledPreventScroll=!1,this.focusTrapIndex=-1,document.body.style.overflow=""}hasNoClientRects(i){return i.getClientRects().length===0}hasZeroDimensions(i){let{width:n,height:s}=i.getBoundingClientRect(),{offsetWidth:a,offsetHeight:l}=i;return a+l+s+n===0}isNotVisible(i){return this.hasZeroDimensions(i)||this.hasNoClientRects(i)}hasHiddenStyle(i){let{display:n,opacity:s,visibility:a}=i.style;return n==="none"||s==="0"||a==="hidden"||a==="collapse"}hasComputedHidden(i){let n=getComputedStyle(i);return n.visibility==="hidden"||n.height==="0"||n.display==="none"}isHidden(i){return i.hasAttribute("hidden")||i.getAttribute("aria-hidden")==="true"||this.hasHiddenStyle(i)||this.isNotVisible(i)||this.hasComputedHidden(i)}isNotTabbable(i){return i.getAttribute("tabindex")==="-1"}isInteractiveElement(i){return!!(new Set(["BUTTON","DETAILS","EMBED","IFRAME","SELECT","TEXTAREA"]).has(i.tagName)||i instanceof HTMLAnchorElement&&i.hasAttribute("href")||i instanceof HTMLInputElement&&i.type!=="hidden"||(i instanceof HTMLAudioElement||i instanceof HTMLVideoElement)&&i.hasAttribute("controls")||(i instanceof HTMLImageElement||i instanceof HTMLObjectElement)&&i.hasAttribute("usemap")||i.hasAttribute("tabindex")&&i.tabIndex>-1)}isFocusable(i){return this.isHidden(i)||this.isNotTabbable(i)?!1:this.isInteractiveElement(i)}findFocusable(i,n=new Set){return i instanceof HTMLElement&&this.isFocusable(i)&&n.add(i),Array.from(i.children).forEach(a=>{let l=a;this.isFocusable(l)&&n.add(l),l.shadowRoot?this.findFocusable(l.shadowRoot,n):l.tagName==="SLOT"?l.assignedElements({flatten:!0}).forEach(h=>{h instanceof HTMLElement&&this.findFocusable(h,n)}):this.findFocusable(l,n)}),[...n]}setFocusableElements(){this.shadowRoot&&(this.focusableElements=this.findFocusable(this.shadowRoot,new Set))}setInitialFocus(i=0){this.focusableElements.length!==0&&(this.enabledPreventScroll&&(document.body.style.overflow="hidden"),this.focusableElements[i]&&(this.focusTrapIndex=i,this.focusableElements[i].focus()))}calculateNextIndex(i,n){let{length:s}=this.focusableElements,a=this.shouldWrapFocus();if(i===-1)return n>0?0:s-1;let l=i+n;return a?(l<0&&(l=s-1),l>=s&&(l=0)):(l<0&&(l=0),l>=s&&(l=s-1)),l}getDeepActiveElement(){var n;let i=document.activeElement||document.body;for(;i instanceof HTMLElement&&((n=i.shadowRoot)!=null&&n.activeElement);)i=i.shadowRoot.activeElement;return i||document.body}findElement(i){return this.focusableElements.findIndex(n=>this.isEqualFocusNode(i,n))}isEqualFocusNode(i,n){return i.nodeType>=0?n.isEqualNode(i)&&n===i:!1}trapFocus(i){if(this.focusableElements.length===0)return;let n=this.getDeepActiveElement(),s=this.findElement(n);i?this.focusTrapIndex=this.calculateNextIndex(s,-1):this.focusTrapIndex=this.calculateNextIndex(s,1);let a=this.focusableElements[this.focusTrapIndex];a&&a.focus()}handleKeydown(i){!this.enabledFocusTrap||!this.focusableElements.length||i.key==="Tab"&&(i.preventDefault(),this.trapFocus(i.shiftKey))}}return c([d({type:Boolean})],t.prototype,"enabledFocusTrap",2),c([d({type:Boolean})],t.prototype,"enabledPreventScroll",2),t};var ri=class{constructor(){this.stack=[]}push(t){this.stack.push(t)}pop(){return this.stack.pop()}peek(){return this.stack[this.stack.length-1]}remove(t){this.stack=this.stack.filter(e=>e!==t)}clear(){this.stack=[]}},ct=new ri;var jr=o=>{class t extends o{constructor(){super(...arguments);this.dataAriaDescribedby=null}}return c([d({type:String,reflect:!0,attribute:"data-aria-describedby"})],t.prototype,"dataAriaDescribedby",2),t};var Kr=o=>{class t extends o{constructor(){super(...arguments);this.dataAriaLabelledby=null}}return c([d({type:String,reflect:!0,attribute:"data-aria-labelledby"})],t.prototype,"dataAriaLabelledby",2),t};var dt=class{static dispatchPopoverEvent(t,e){e.dispatchEvent(new CustomEvent(t,{detail:{show:e.visible},composed:!0,bubbles:!0}))}static onShowPopover(t){this.dispatchPopoverEvent("popover-on-show",t)}static onHidePopover(t){this.dispatchPopoverEvent("popover-on-hide",t)}static onCreatedPopover(t){this.dispatchPopoverEvent("popover-on-created",t)}static onDestroyedPopover(t){this.dispatchPopoverEvent("popover-on-destroyed",t)}};var Qr=class{constructor(t){this.arrowPixelChange=!1;this.popover=t}setupDelay(){try{let[t,e]=this.popover.delay.split(",").map(r=>{let i=parseInt(r,10);if(Number.isNaN(i)||i<0)throw new Error(`Invalid delay value: ${r}`);return i});return[t,e]}catch{return this.popover.delay="0,0",[0,0]}}setupHoverBridge(t){var a;let e=this.popover.renderRoot.querySelector(".popover-hover-bridge");Object.assign(e.style,{top:"",left:"",right:"",bottom:""});let r=`calc(${this.popover.showArrow?"0.75rem + ":""}${this.popover.offset}px)`,i=(a=this.popover.shadowRoot)==null?void 0:a.querySelector("mdc-modalcontainer"),n=i.offsetHeight||0,s=i.offsetWidth||0;if(e)switch(t.split("-")[0]){case"top":e.style.height=r,e.style.bottom=`calc(-1 * (${r}))`,e.style.left="50%",e.style.width=`${s}px`;break;case"left":e.style.height=`${n}px`,e.style.width=r,e.style.right=`calc(-1.5 * (${r}))`;break;case"right":e.style.height=`${n}px`,e.style.width=r,e.style.left=`calc(-0.5 * (${r}))`;break;case"bottom":default:e.style.height=r,e.style.top=`calc(-1 * (${r}))`,e.style.left="50%",e.style.width=`${s}px`;break}}setupAppendTo(){if(this.popover.appendTo){let t=document.getElementById(this.popover.appendTo);t&&t.appendChild(this.popover)}}setupAccessibility(){var t,e,r;this.popover.interactive&&(this.popover.dataAriaLabel||(this.popover.dataAriaLabel=((t=this.popover.triggerElement)==null?void 0:t.ariaLabel)||((e=this.popover.triggerElement)==null?void 0:e.textContent)||""),this.popover.dataAriaLabelledby||(this.popover.dataAriaLabelledby=((r=this.popover.triggerElement)==null?void 0:r.id)||""))}updateArrowStyle(t,e){var h;if(!this.popover.arrowElement)return;let r=e.split("-")[0],i={top:"bottom",right:"left",bottom:"top",left:"right"}[r],{x:n,y:s}=t,a=this.popover.arrowElement.getBoundingClientRect(),l=(h=this.popover.arrowElement.offsetParent)==null?void 0:h.getBoundingClientRect();if(!this.arrowPixelChange){let p=l!=null&&l[i]?12-Math.abs(a[i]-l[i]):0;Math.round(p)===1?this.arrowPixelChange=!0:this.arrowPixelChange=!1}let m=this.arrowPixelChange?.5:0;this.popover.arrowElement.setAttribute("data-side",r),Object.assign(this.popover.arrowElement.style,{left:n!=null?`${n}px`:"",top:s!=null?`${s}px`:"",[i]:`${-this.popover.arrowElement.offsetHeight/2-m}px`})}updatePopoverStyle(t,e){this.popover.containerElement&&Object.assign(this.popover.containerElement.style,{left:`${t}px`,top:`${e}px`})}};var R=class extends U(Kr(jr(Is(E)))){constructor(){super();this.id="";this.triggerID="";this.trigger=L.TRIGGER;this.placement=L.PLACEMENT;this.color=L.COLOR;this.visible=L.VISIBLE;this.offset=L.OFFSET;this.focusTrap=L.FOCUS_TRAP;this.preventScroll=L.PREVENT_SCROLL;this.showArrow=L.ARROW;this.closeButton=L.CLOSE_BUTTON;this.interactive=L.INTERACTIVE;this.delay=L.DELAY;this.hideOnEscape=L.HIDE_ON_ESCAPE;this.hideOnBlur=L.HIDE_ON_BLUR;this.hideOnOutsideClick=L.HIDE_ON_CLICK_OUTSIDE;this.focusBackToTrigger=L.FOCUS_BACK;this.backdrop=L.BACKDROP;this.flip=L.FLIP;this.size=L.SIZE;this.zIndex=L.Z_INDEX;this.appendTo="";this.closeButtonAriaLabel=null;this.dataRole=L.ROLE;this.arrowElement=null;this.triggerElement=null;this.containerElement=null;this.hoverTimer=null;this.isTriggerClicked=!1;this.openDelay=0;this.closeDelay=0;this.onOutsidePopoverClick=e=>{if(ct.peek()!==this)return;let r=!1,i=e.composedPath();r=this.contains(e.target)||i.includes(this.triggerElement);let n=this.renderRoot.querySelector(".popover-backdrop"),s=n?i.includes(n):!1;(!r||s)&&this.hidePopover()};this.onEscapeKeydown=e=>{!this.visible||e.code!=="Escape"||(e.preventDefault(),this.hidePopover())};this.onPopoverFocusOut=e=>{this.contains(e.relatedTarget)||this.hidePopover()};this.startCloseDelay=()=>{if(!this.interactive)this.hidePopover();else{if(this.isTriggerClicked)return;this.hoverTimer=window.setTimeout(()=>{this.visible=!1},this.closeDelay)}};this.cancelCloseDelay=()=>{this.hoverTimer&&(clearTimeout(this.hoverTimer),this.hoverTimer=null)};this.showPopover=()=>{this.cancelCloseDelay(),setTimeout(()=>{this.visible=!0,dt.onShowPopover(this)},this.openDelay),ct.peek()!==this&&ct.push(this)};this.hidePopover=()=>{ct.peek()===this&&(setTimeout(()=>{this.visible=!1,dt.onHidePopover(this),this.isTriggerClicked=!1},this.closeDelay),ct.pop())};this.togglePopoverVisible=()=>{this.isTriggerClicked?this.hidePopover():(this.showPopover(),this.isTriggerClicked=!0)};this.utils=new Qr(this)}async firstUpdated(e){super.firstUpdated(e),this.containerElement=this.renderRoot.querySelector(".popover-container"),this.utils.setupAppendTo(),[this.openDelay,this.closeDelay]=this.utils.setupDelay(),this.setupTriggerListener(),this.utils.setupAccessibility(),dt.onCreatedPopover(this),this.visible&&(await this.positionPopover(),await this.handleCreatePopoverFirstUpdate())}async disconnectedCallback(){super.disconnectedCallback(),await this.removeEventListeners(),dt.onDestroyedPopover(this),ct.remove(this)}setupTriggerListener(){var e,r;if(this.triggerID&&(this.triggerElement=document.getElementById(this.triggerID),!!this.triggerElement)){if(this.trigger==="mouseenter"&&(this.interactive?this.trigger="mouseenter click":this.trigger="mouseenter focusin"),this.trigger.includes("click")&&this.triggerElement.addEventListener("click",this.togglePopoverVisible),this.trigger.includes("mouseenter")){let i=this.renderRoot.querySelector(".popover-hover-bridge");this.triggerElement.addEventListener("mouseenter",this.showPopover),this.triggerElement.addEventListener("mouseleave",this.startCloseDelay),(e=this.containerElement)==null||e.addEventListener("mouseenter",this.cancelCloseDelay),(r=this.containerElement)==null||r.addEventListener("mouseleave",this.startCloseDelay),i==null||i.addEventListener("mouseenter",this.cancelCloseDelay)}this.trigger.includes("focusin")&&(this.triggerElement.addEventListener("focusin",this.showPopover),this.interactive||this.triggerElement.addEventListener("focusout",this.hidePopover)),this.addEventListener("focus-trap-exit",this.hidePopover)}}removeEventListeners(){var r,i;if(!this.triggerElement)return;let e=this.renderRoot.querySelector(".popover-hover-bridge");this.triggerElement.removeEventListener("click",this.togglePopoverVisible),this.triggerElement.removeEventListener("mouseenter",this.showPopover),this.triggerElement.removeEventListener("mouseleave",this.hidePopover),(r=this.containerElement)==null||r.removeEventListener("mouseenter",this.cancelCloseDelay),(i=this.containerElement)==null||i.removeEventListener("mouseleave",this.startCloseDelay),this.triggerElement.removeEventListener("focusin",this.showPopover),this.triggerElement.removeEventListener("focusout",this.hidePopover),e==null||e.removeEventListener("mouseenter",this.cancelCloseDelay),this.removeEventListener("focus-trap-exit",this.hidePopover)}async updated(e){if(super.updated(e),e.has("visible")){let r=e.get("visible");await this.isOpenUpdated(r,this.visible)}if(e.has("placement")&&this.setAttribute("placement",Object.values(ei).includes(this.placement)?this.placement:L.PLACEMENT),e.has("delay")&&([this.openDelay,this.closeDelay]=this.utils.setupDelay()),e.has("trigger")){let i=this.trigger.split(" ").filter(n=>Object.values(ti).includes(n));this.setAttribute("trigger",i.length>0?this.trigger:L.TRIGGER),this.removeEventListeners(),this.setupTriggerListener()}e.has("color")&&this.setAttribute("color",Object.values(ar).includes(this.color)?this.color:L.COLOR),e.has("zIndex")&&this.setAttribute("z-index",`${this.zIndex}`),e.has("append-to")&&this.utils.setupAppendTo(),(e.has("interactive")||e.has("data-aria-label")||e.has("data-aria-labelledby"))&&this.utils.setupAccessibility()}async isOpenUpdated(e,r){var i,n,s,a;if(!(e===r||!this.triggerElement))if(r){if(this.enabledFocusTrap=this.focusTrap,this.enabledPreventScroll=this.preventScroll,this.backdrop){let l=this.renderRoot.querySelector(".popover-backdrop");l.style.zIndex=`${this.zIndex-1}`,this.triggerElement.style.zIndex=`${this.zIndex}`}this.positionPopover(),await this.handleCreatePopoverFirstUpdate(),this.hideOnBlur&&((i=this.containerElement)==null||i.addEventListener("focusout",this.onPopoverFocusOut),this.trigger==="click"&&(this.triggerElement.style.pointerEvents="none")),this.hideOnOutsideClick&&document.addEventListener("click",this.onOutsidePopoverClick),this.hideOnEscape&&document.addEventListener("keydown",this.onEscapeKeydown),this.triggerElement.setAttribute("aria-expanded","true"),this.interactive&&this.triggerElement.setAttribute("aria-haspopup",this.triggerElement.getAttribute("aria-haspopup")||"dialog")}else this.hideOnBlur&&((n=this.containerElement)==null||n.removeEventListener("focusout",this.onPopoverFocusOut),this.trigger==="click"&&(this.triggerElement.style.pointerEvents="")),this.hideOnOutsideClick&&document.removeEventListener("click",this.onOutsidePopoverClick),this.hideOnEscape&&document.removeEventListener("keydown",this.onEscapeKeydown),(s=this.deactivateFocusTrap)==null||s.call(this),this.triggerElement.removeAttribute("aria-expanded"),this.interactive&&this.triggerElement.removeAttribute("aria-haspopup"),this.focusBackToTrigger&&((a=this.triggerElement)==null||a.focus())}async handleCreatePopoverFirstUpdate(){var e,r;this.visible&&this.interactive&&((e=this.setFocusableElements)==null||e.call(this),await this.updateComplete,(r=this.setInitialFocus)==null||r.call(this))}positionPopover(){if(!this.triggerElement||!this.containerElement)return;let e=[bs()],r=this.offset;if(this.flip&&e.push(ys()),this.size){let i=this.containerElement.querySelector('[part="popover-content"]');e.push(xs({apply({availableHeight:n}){i&&Object.assign(i.style,{maxHeight:`${n}px`})},padding:50}))}if(this.showArrow&&(this.arrowElement=this.renderRoot.querySelector(".popover-arrow"),this.arrowElement)){let i=this.arrowElement.offsetHeight;r=Math.sqrt(2*i**2)/2+this.offset,e.push(Es({element:this.arrowElement,padding:12}))}e.push(vs(r)),gs(this.triggerElement,this.containerElement,async()=>{if(!this.triggerElement||!this.containerElement)return;let{x:i,y:n,middlewareData:s,placement:a}=await Ts(this.triggerElement,this.containerElement,{placement:this.placement,middleware:e});this.utils.updatePopoverStyle(i,n),s.arrow&&this.arrowElement&&this.utils.updateArrowStyle(s.arrow,a),this.trigger.includes("mouseenter")&&this.utils.setupHoverBridge(a)})}render(){return u`
1976
1976
  ${this.backdrop&&this.visible?u`<div class="popover-backdrop"></div>`:b}
1977
1977
  <mdc-modalcontainer
1978
1978
  class="popover-container"
@@ -2037,7 +2037,7 @@
2037
2037
  :host([elevation='4'])::part(container) {
2038
2038
  filter: var(--mdc-modalcontainer-elevation-4);
2039
2039
  }
2040
- `],ws=wl;var qe=class extends U(Qr(Kr(E))){constructor(){super(...arguments);this.color=cr.COLOR;this.elevation=cr.ELEVATION;this.dataRole=cr.ROLE;this.dataAriaModal=cr.ARIA_MODAL}render(){return u`
2040
+ `],ws=wl;var Ge=class extends U(Kr(jr(E))){constructor(){super(...arguments);this.color=lr.COLOR;this.elevation=lr.ELEVATION;this.dataRole=lr.ROLE;this.dataAriaModal=lr.ARIA_MODAL}render(){return u`
2041
2041
  <div
2042
2042
  role="${A(this.dataRole)}"
2043
2043
  aria-modal=${A(this.dataAriaModal===!0?"true":void 0)}
@@ -2048,7 +2048,7 @@
2048
2048
  >
2049
2049
  <slot></slot>
2050
2050
  </div>
2051
- `}};qe.styles=[...E.styles,...ws],c([d({type:String,reflect:!0})],qe.prototype,"color",2),c([d({type:Number,reflect:!0})],qe.prototype,"elevation",2),c([d({type:String,reflect:!0,attribute:"data-role"})],qe.prototype,"dataRole",2),c([d({type:Boolean,reflect:!0,attribute:"data-aria-modal"})],qe.prototype,"dataAriaModal",2);var Cs=qe;Cs.register(Ss);oi.register(_s);var Cl=oi;var kl=[C,g`
2051
+ `}};Ge.styles=[...E.styles,...ws],c([d({type:String,reflect:!0})],Ge.prototype,"color",2),c([d({type:Number,reflect:!0})],Ge.prototype,"elevation",2),c([d({type:String,reflect:!0,attribute:"data-role"})],Ge.prototype,"dataRole",2),c([d({type:Boolean,reflect:!0,attribute:"data-aria-modal"})],Ge.prototype,"dataAriaModal",2);var Cs=Ge;Cs.register(Ss);oi.register(_s);var Cl=oi;var kl=[C,g`
2052
2052
  :host{
2053
2053
  --mdc-radio-inner-circle-size: 0.375rem;
2054
2054
  --mdc-radio-text-disabled-color: var(--mds-color-theme-text-primary-disabled);
@@ -2210,10 +2210,10 @@
2210
2210
  display: none;
2211
2211
  }
2212
2212
 
2213
- `,...z(!0)],ks=kl;var ht=class extends pe(U(Q)){constructor(){super();this.checked=!1;this.readonly=!1;this.autofocus=!1;this.renderLabelAndHelperText=()=>this.label?u`<div class="mdc-radio__label-container">
2213
+ `,...z(!0)],ks=kl;var mt=class extends Ue(U(Q)){constructor(){super();this.checked=!1;this.readonly=!1;this.autofocus=!1;this.renderLabelAndHelperText=()=>this.label?u`<div class="mdc-radio__label-container">
2214
2214
  ${this.renderLabel()}
2215
2215
  ${this.renderHelperText()}
2216
- </div>`:b;this.helpTextType=void 0,this.id=`mdc-radio-${Ie()}`}firstUpdated(){this.updateTabIndex()}getAllRadiosWithinSameGroup(){return Array.from(document.querySelectorAll(`mdc-radio[name="${this.name}"]`))}dispatchChangeEvent(e){let r=e.constructor;this.dispatchEvent(new r(e.type,e))}formResetCallback(){this.getAllRadiosWithinSameGroup().forEach(r=>{r.checked=!1}),this.updateComplete.then(()=>{this.setActualFormValue()}).catch(r=>{this.onerror&&this.onerror(r)})}formStateRestoreCallback(e){this.value===e&&e!==""&&(this.checked=!0)}setComponentValidity(e){e?this.internals.setValidity({}):this.requiredLabel&&!this.checked&&(this.validationMessage?this.inputElement.setCustomValidity(this.validationMessage):this.inputElement.setCustomValidity(""),this.setValidity()),this.updateTabIndex()}setGroupValidity(e,r){this.updateComplete.then(()=>{e.forEach(i=>{i.setComponentValidity(r)})}).catch(i=>{this.onerror&&this.onerror(i)})}setActualFormValue(){let e="";this.checked?e=this.value?this.value:"on":e=null;let r=this.getAllRadiosWithinSameGroup();if(this.checked)this.setGroupValidity(r,!0);else{let i=r.some(a=>a.requiredLabel),n=!!r.find(a=>a.checked),s=i&&!n;this.setGroupValidity(r,!s)}this.internals.setFormValue(e)}handleChange(e){var n;if(this.disabled||this.readonly)return;this.getAllRadiosWithinSameGroup().forEach(s=>{var l;let a=(l=s.shadowRoot)==null?void 0:l.querySelector("input");a&&(s.checked=!1,a.checked=!1)}),this.checked=!0;let i=(n=this.shadowRoot)==null?void 0:n.querySelector("input");i&&(i.checked=!0),this.dispatchChangeEvent(e)}updateRadio(e,r,i){var n,s;(s=(n=e[r].shadowRoot)==null?void 0:n.querySelector("input"))==null||s.focus(),e[r].handleChange(i)}handleKeyDown(e){var s;if(this.disabled)return;let i=this.getAllRadiosWithinSameGroup().filter(a=>!a.disabled),n=i.indexOf(this);if(["ArrowDown","ArrowRight"].includes(e.key)){let a=(n+1)%i.length;this.updateRadio(i,a,e)}else if(["ArrowUp","ArrowLeft"].includes(e.key)){let a=(n-1+i.length)%i.length;this.updateRadio(i,a,e)}else e.key===" "&&this.updateRadio(i,n,e);this.updateTabIndex(),e.key==="Enter"&&((s=this.form)==null||s.requestSubmit())}updateTabIndex(){let e=this.getAllRadiosWithinSameGroup(),r=e.find(n=>n.checked),i=e.find(n=>!n.disabled);e.forEach(n=>{var a;let s=(a=n.shadowRoot)==null?void 0:a.querySelector("input");s&&(s.tabIndex=-1,(n===r||!r&&n===i)&&(s.tabIndex=0))})}update(e){super.update(e),e.has("checked")&&this.setActualFormValue()}render(){var e;return u`
2216
+ </div>`:b;this.helpTextType=void 0}firstUpdated(){this.updateTabIndex()}getAllRadiosWithinSameGroup(){return Array.from(document.querySelectorAll(`mdc-radio[name="${this.name}"]`))}dispatchChangeEvent(e){let r=e.constructor;this.dispatchEvent(new r(e.type,e))}formResetCallback(){this.getAllRadiosWithinSameGroup().forEach(r=>{r.checked=!1}),this.updateComplete.then(()=>{this.setActualFormValue()}).catch(r=>{this.onerror&&this.onerror(r)})}formStateRestoreCallback(e){this.value===e&&e!==""&&(this.checked=!0)}setComponentValidity(e){e?this.internals.setValidity({}):this.requiredLabel&&!this.checked&&(this.validationMessage?this.inputElement.setCustomValidity(this.validationMessage):this.inputElement.setCustomValidity(""),this.setValidity()),this.updateTabIndex()}setGroupValidity(e,r){this.updateComplete.then(()=>{e.forEach(i=>{i.setComponentValidity(r)})}).catch(i=>{this.onerror&&this.onerror(i)})}setActualFormValue(){let e="";this.checked?e=this.value?this.value:"on":e=null;let r=this.getAllRadiosWithinSameGroup();if(this.checked)this.setGroupValidity(r,!0);else{let i=r.some(a=>a.requiredLabel),n=!!r.find(a=>a.checked),s=i&&!n;this.setGroupValidity(r,!s)}this.internals.setFormValue(e)}handleChange(e){var n;if(this.disabled||this.readonly)return;this.getAllRadiosWithinSameGroup().forEach(s=>{var l;let a=(l=s.shadowRoot)==null?void 0:l.querySelector("input");a&&(s.checked=!1,a.checked=!1)}),this.checked=!0;let i=(n=this.shadowRoot)==null?void 0:n.querySelector("input");i&&(i.checked=!0),this.dispatchChangeEvent(e)}updateRadio(e,r,i){var n,s;(s=(n=e[r].shadowRoot)==null?void 0:n.querySelector("input"))==null||s.focus(),e[r].handleChange(i)}handleKeyDown(e){var s;if(this.disabled)return;let i=this.getAllRadiosWithinSameGroup().filter(a=>!a.disabled),n=i.indexOf(this);if(["ArrowDown","ArrowRight"].includes(e.key)){let a=(n+1)%i.length;this.updateRadio(i,a,e)}else if(["ArrowUp","ArrowLeft"].includes(e.key)){let a=(n-1+i.length)%i.length;this.updateRadio(i,a,e)}else e.key===" "&&this.updateRadio(i,n,e);this.updateTabIndex(),e.key==="Enter"&&((s=this.form)==null||s.requestSubmit())}updateTabIndex(){let e=this.getAllRadiosWithinSameGroup(),r=e.find(n=>n.checked),i=e.find(n=>!n.disabled);e.forEach(n=>{var a;let s=(a=n.shadowRoot)==null?void 0:a.querySelector("input");s&&(s.tabIndex=-1,(n===r||!r&&n===i)&&(s.tabIndex=0))})}update(e){super.update(e),e.has("checked")&&this.setActualFormValue()}render(){var e;return u`
2217
2217
  <div class="mdc-radio__container">
2218
2218
  <div class="mdc-radio__icon-container mdc-focus-ring">
2219
2219
  <input
@@ -2238,7 +2238,7 @@
2238
2238
  </div>
2239
2239
  ${this.renderLabelAndHelperText()}
2240
2240
  </div>
2241
- `}};ht.styles=[...Q.styles,...ks],c([d({type:Boolean,reflect:!0})],ht.prototype,"checked",2),c([d({type:Boolean,reflect:!0})],ht.prototype,"readonly",2),c([d({type:Boolean,reflect:!0})],ht.prototype,"autofocus",2);var ii=ht;var eo=y.constructTagName("radio");ii.register(eo);var Rl=ii;var dr=class extends $r{constructor(){super();this.name="";this.isRadio=!0}firstUpdated(){var e,r,i,n,s;(s=(n=(i=(r=Array.from(((e=this.shadowRoot)==null?void 0:e.querySelectorAll("slot"))||[]))==null?void 0:r.flatMap(a=>a.assignedElements({flatten:!0})))==null?void 0:i.filter(a=>a.tagName.toLowerCase()===eo))==null?void 0:n.filter(a=>!a.hasAttribute("name")))==null||s.forEach(a=>{a.setAttribute("name",this.name),this.requiredLabel&&a.setAttribute("required-label",this.requiredLabel)})}};dr.styles=[...$r.styles],c([d({type:String})],dr.prototype,"name",2);var ni=dr;var Rs=y.constructTagName("radiogroup");ni.register(Rs);var Ll=ni;var Nl=[C,g`
2241
+ `}};mt.styles=[...Q.styles,...ks],c([d({type:Boolean,reflect:!0})],mt.prototype,"checked",2),c([d({type:Boolean,reflect:!0})],mt.prototype,"readonly",2),c([d({type:Boolean,reflect:!0})],mt.prototype,"autofocus",2);var ii=mt;var Jr=y.constructTagName("radio");ii.register(Jr);var Rl=ii;var cr=class extends Dr{constructor(){super();this.name="";this.isRadio=!0}firstUpdated(){var e,r,i,n,s;(s=(n=(i=(r=Array.from(((e=this.shadowRoot)==null?void 0:e.querySelectorAll("slot"))||[]))==null?void 0:r.flatMap(a=>a.assignedElements({flatten:!0})))==null?void 0:i.filter(a=>a.tagName.toLowerCase()===Jr))==null?void 0:n.filter(a=>!a.hasAttribute("name")))==null||s.forEach(a=>{a.setAttribute("name",this.name),this.requiredLabel&&a.setAttribute("required-label",this.requiredLabel)})}};cr.styles=[...Dr.styles],c([d({type:String})],cr.prototype,"name",2);var ni=cr;var Rs=y.constructTagName("radiogroup");ni.register(Rs);var Ll=ni;var Nl=[C,g`
2242
2242
  :host {
2243
2243
  --mdc-spinner-default-color: var(--mds-color-theme-control-active-normal);
2244
2244
  --mdc-spinner-inverted-color: var(--mds-color-theme-inverted-control-active-normal);
@@ -2300,11 +2300,11 @@
2300
2300
  stroke-dashoffset: -292;
2301
2301
  }
2302
2302
  }
2303
- `],Ls=Nl;var Ns=y.constructTagName("spinner"),Ol={LARGE:"large",MIDSIZE:"midsize",SMALL:"small"},Ml={STANDALONE:"standalone",BUTTON:"button"},to={VARIANT:Ml.STANDALONE,SIZE:Ol.MIDSIZE,INVERTED:!1};var Ye=class extends E{constructor(){super(...arguments);this.inverted=to.INVERTED;this.size=to.SIZE;this.ariaLabel=null;this.variant=to.VARIANT}updated(e){super.updated(e),e.has("ariaLabel")&&(this.role=this.ariaLabel?"img":null,this.ariaHidden=this.ariaLabel?"false":"true")}render(){return u`
2303
+ `],Ls=Nl;var Ns=y.constructTagName("spinner"),Ol={LARGE:"large",MIDSIZE:"midsize",SMALL:"small"},Ml={STANDALONE:"standalone",BUTTON:"button"},eo={VARIANT:Ml.STANDALONE,SIZE:Ol.MIDSIZE,INVERTED:!1};var qe=class extends E{constructor(){super(...arguments);this.inverted=eo.INVERTED;this.size=eo.SIZE;this.ariaLabel=null;this.variant=eo.VARIANT}updated(e){super.updated(e),e.has("ariaLabel")&&(this.role=this.ariaLabel?"img":null,this.ariaHidden=this.ariaLabel?"false":"true")}render(){return u`
2304
2304
  <svg part="container" viewBox="0 0 100 100">
2305
2305
  <circle part="circle" cx="50" cy="50" r="46"></circle>
2306
2306
  </svg>
2307
- `}};Ye.styles=[...E.styles,...Ls],c([d({type:Boolean,reflect:!0})],Ye.prototype,"inverted",2),c([d({type:String,reflect:!0})],Ye.prototype,"size",2),c([d({type:String,attribute:"aria-label"})],Ye.prototype,"ariaLabel",2),c([d({type:String,reflect:!0})],Ye.prototype,"variant",2);var si=Ye;si.register(Ns);var zl=si;var Dl=[C,g`
2307
+ `}};qe.styles=[...E.styles,...Ls],c([d({type:Boolean,reflect:!0})],qe.prototype,"inverted",2),c([d({type:String,reflect:!0})],qe.prototype,"size",2),c([d({type:String,attribute:"aria-label"})],qe.prototype,"ariaLabel",2),c([d({type:String,reflect:!0})],qe.prototype,"variant",2);var si=qe;si.register(Ns);var zl=si;var Dl=[C,g`
2308
2308
 
2309
2309
  :host {
2310
2310
  --mdc-tab-content-gap: 0.5rem;
@@ -2547,7 +2547,7 @@
2547
2547
  color: var(--mdc-tab-pill-active-color-disabled);
2548
2548
  }
2549
2549
 
2550
- `,...z()],Os=Dl;var Ms=y.constructTagName("tab"),ai={GLASS:"glass",LINE:"line",PILL:"pill"},li={VARIANT:ai.PILL};var Nt=class extends de(Ue){constructor(){super();this.variant=li.VARIANT;this.role="tab",this.softDisabled=void 0,this.size=void 0,this.type=void 0}modifyIconName(e){this.iconName&&(e?(this.prevIconName=this.iconName,this.iconName=`${Qt(this.iconName)}-filled`):this.prevIconName&&(this.iconName=this.prevIconName))}setVariant(e){this.setAttribute("variant",Object.values(ai).includes(e)?e:li.VARIANT)}setActive(e,r){e.setAttribute("aria-selected",r?"true":"false"),this.modifyIconName(r)}executeAction(){this.active=!this.active}update(e){super.update(e),e.has("variant")&&this.setVariant(this.variant)}render(){return u`
2550
+ `,...z()],Os=Dl;var Ms=y.constructTagName("tab"),ai={GLASS:"glass",LINE:"line",PILL:"pill"},li={VARIANT:ai.PILL};var Lt=class extends de($e){constructor(){super();this.variant=li.VARIANT;this.role="tab",this.softDisabled=void 0,this.size=void 0,this.type=void 0}modifyIconName(e){this.iconName&&(e?(this.prevIconName=this.iconName,this.iconName=`${Kt(this.iconName)}-filled`):this.prevIconName&&(this.iconName=this.prevIconName))}setVariant(e){this.setAttribute("variant",Object.values(ai).includes(e)?e:li.VARIANT)}setActive(e,r){e.setAttribute("aria-selected",r?"true":"false"),this.modifyIconName(r)}executeAction(){this.active=!this.active}update(e){super.update(e),e.has("variant")&&this.setVariant(this.variant)}render(){return u`
2551
2551
  <div part="container">
2552
2552
  ${this.iconName?u` <mdc-icon name="${this.iconName}" size="1" length-unit="rem" part="icon"></mdc-icon>`:b}
2553
2553
  ${this.text?u` <mdc-text
@@ -2561,7 +2561,7 @@
2561
2561
  <slot name="chip"></slot>
2562
2562
  </div>
2563
2563
  <div part="indicator"></div>
2564
- `}};Nt.styles=[...Ue.styles,...Os],c([d({type:String,reflect:!0})],Nt.prototype,"text",2),c([d({type:String,reflect:!0})],Nt.prototype,"variant",2);var ci=Nt;ci.register(Ms);var $l=ci;var ro=y.constructTagName("themeprovider"),di={THEMECLASS:"mds-theme-stable-darkWebex"};var oo=class{constructor(t){this.themeclass=t}};oo.context=ro;var io=oo;var Pl=g`
2564
+ `}};Lt.styles=[...$e.styles,...Os],c([d({type:String,reflect:!0})],Lt.prototype,"text",2),c([d({type:String,reflect:!0})],Lt.prototype,"variant",2);var ci=Lt;ci.register(Ms);var $l=ci;var to=y.constructTagName("themeprovider"),di={THEMECLASS:"mds-theme-stable-darkWebex"};var ro=class{constructor(t){this.themeclass=t}};ro.context=to;var oo=ro;var Pl=g`
2565
2565
  :host {
2566
2566
  --mdc-themeprovider-color-default: var(--mds-color-theme-text-primary-normal);
2567
2567
  --mdc-themeprovider-font-family: var(--mds-font-family-primary);
@@ -2590,7 +2590,7 @@
2590
2590
  * {
2591
2591
  scrollbar-color: var(--mdc-themeprovider-scrollbar-thumb-color) var(--mdc-themeprovider-scrollbar-track-color);
2592
2592
  }
2593
- `,zs=[Pl];var Ot=class extends xt{constructor(){super({context:io.context,initialValue:new io(di.THEMECLASS)});this.themeclass=di.THEMECLASS}static get Context(){return io.context}updated(e){super.updated(e),e.has("themeclass")&&(this.setThemeInClassList(),this.currentThemeClass=this.themeclass)}updateContext(){this.context.value.themeclass!==this.themeclass&&(this.context.value.themeclass=this.themeclass,this.context.updateObservers())}setThemeInClassList(){this.currentThemeClass&&this.classList.remove(...this.currentThemeClass.split(" ")),this.themeclass&&this.classList.add(...this.themeclass.split(" "))}};Ot.styles=[...xt.styles,...zs],c([Y()],Ot.prototype,"currentThemeClass",2),c([d({type:String})],Ot.prototype,"themeclass",2);var mi=Ot;mi.register(ro);var Ul=mi;var Vl=[C,g`
2593
+ `,zs=[Pl];var Nt=class extends yt{constructor(){super({context:oo.context,initialValue:new oo(di.THEMECLASS)});this.themeclass=di.THEMECLASS}static get Context(){return oo.context}updated(e){super.updated(e),e.has("themeclass")&&(this.setThemeInClassList(),this.currentThemeClass=this.themeclass)}updateContext(){this.context.value.themeclass!==this.themeclass&&(this.context.value.themeclass=this.themeclass,this.context.updateObservers())}setThemeInClassList(){this.currentThemeClass&&this.classList.remove(...this.currentThemeClass.split(" ")),this.themeclass&&this.classList.add(...this.themeclass.split(" "))}};Nt.styles=[...yt.styles,...zs],c([Y()],Nt.prototype,"currentThemeClass",2),c([d({type:String})],Nt.prototype,"themeclass",2);var mi=Nt;mi.register(to);var Ul=mi;var Vl=[C,g`
2594
2594
  :host {
2595
2595
  --mdc-toggle-width: 3rem;
2596
2596
  --mdc-toggle-height: 1.5rem;
@@ -2742,7 +2742,7 @@
2742
2742
  border: var(--mdc-toggle-border);
2743
2743
  }
2744
2744
  }
2745
- `,...z(!0)],Ds=Vl;var $s=y.constructTagName("toggle"),hi={DEFAULT:"default",COMPACT:"compact"},pi={CHECKED:"check-bold",UNCHECKED:"cancel-bold"},Ps={compact:.75,default:1.25},ui={SIZE:hi.DEFAULT,VALIDATION_MESSAGE:"Please toggle this switch if you want to proceed."};var pt=class extends pe(U(wt)){constructor(){super();this.checked=!1;this.size=ui.SIZE;this.autofocus=!1;this.helpTextType=void 0,this.id=`mdc-toggle-${Ie()}`}formResetCallback(){this.checked=!1}formStateRestoreCallback(e){e&&(this.checked=!0)}manageRequired(){!this.checked&&this.requiredLabel?(this.validationMessage?this.inputElement.setCustomValidity(this.validationMessage):this.inputElement.setCustomValidity(""),this.setValidity()):this.internals.setValidity({})}setFormValue(){let e=null;this.checked?e=this.value?this.value:"isActive":e=null,this.manageRequired(),this.internals.setFormValue(e)}toggleState(){this.disabled||(this.checked=!this.checked)}handleKeyDown(e){var r;e.key==="Enter"&&((r=this.form)==null||r.requestSubmit())}handleChange(e){this.toggleState();let r=e.constructor;this.dispatchEvent(new r(e.type,e))}setToggleSize(e){this.setAttribute("size",Object.values(hi).includes(e)?e:ui.SIZE)}update(e){super.update(e),e.has("checked")&&this.setFormValue(),e.has("size")&&this.setToggleSize(this.size)}render(){var e;return u`
2745
+ `,...z(!0)],Ds=Vl;var $s=y.constructTagName("toggle"),hi={DEFAULT:"default",COMPACT:"compact"},pi={CHECKED:"check-bold",UNCHECKED:"cancel-bold"},Ps={compact:.75,default:1.25},ui={SIZE:hi.DEFAULT,VALIDATION_MESSAGE:"Please toggle this switch if you want to proceed."};var ht=class extends Ue(U(It)){constructor(){super();this.checked=!1;this.size=ui.SIZE;this.autofocus=!1;this.helpTextType=void 0}formResetCallback(){this.checked=!1}formStateRestoreCallback(e){e&&(this.checked=!0)}manageRequired(){!this.checked&&this.requiredLabel?(this.validationMessage?this.inputElement.setCustomValidity(this.validationMessage):this.inputElement.setCustomValidity(""),this.setValidity()):this.internals.setValidity({})}setFormValue(){let e=null;this.checked?e=this.value?this.value:"isActive":e=null,this.manageRequired(),this.internals.setFormValue(e)}toggleState(){this.disabled||(this.checked=!this.checked)}handleKeyDown(e){var r;e.key==="Enter"&&((r=this.form)==null||r.requestSubmit())}handleChange(e){this.toggleState();let r=e.constructor;this.dispatchEvent(new r(e.type,e))}setToggleSize(e){this.setAttribute("size",Object.values(hi).includes(e)?e:ui.SIZE)}update(e){super.update(e),e.has("checked")&&this.setFormValue(),e.has("size")&&this.setToggleSize(this.size)}render(){var e;return u`
2746
2746
  <div class="mdc-toggle__container mdc-focus-ring">
2747
2747
  <input
2748
2748
  id="${this.id}"
@@ -2773,10 +2773,10 @@
2773
2773
  </div>
2774
2774
  ${this.renderLabel()}
2775
2775
  ${this.renderHelperText()}
2776
- `}};pt.styles=[...wt.styles,...Ds],c([d({type:Boolean,reflect:!0})],pt.prototype,"checked",2),c([d({type:String,reflect:!0})],pt.prototype,"size",2),c([d({type:Boolean,reflect:!0})],pt.prototype,"autofocus",2);var fi=pt;fi.register($s);var Hl=fi;function ut(o,t,e){var n;let r=(n=e.initialDeps)!=null?n:[],i;return()=>{var s,a,l,m;let h;e.key&&((s=e.debug)!=null&&s.call(e))&&(h=Date.now());let p=o();if(!(p.length!==r.length||p.some((x,T)=>r[T]!==x)))return i;r=p;let f;if(e.key&&((a=e.debug)!=null&&a.call(e))&&(f=Date.now()),i=t(...p),e.key&&((l=e.debug)!=null&&l.call(e))){let x=Math.round((Date.now()-h)*100)/100,T=Math.round((Date.now()-f)*100)/100,_=T/16,S=(I,w)=>{for(I=String(I);I.length<w;)I=" "+I;return I};console.info(`%c\u23F1 ${S(T,5)} /${S(x,5)} ms`,`
2776
+ `}};ht.styles=[...It.styles,...Ds],c([d({type:Boolean,reflect:!0})],ht.prototype,"checked",2),c([d({type:String,reflect:!0})],ht.prototype,"size",2),c([d({type:Boolean,reflect:!0})],ht.prototype,"autofocus",2);var fi=ht;fi.register($s);var Hl=fi;function pt(o,t,e){var n;let r=(n=e.initialDeps)!=null?n:[],i;return()=>{var s,a,l,m;let h;e.key&&((s=e.debug)!=null&&s.call(e))&&(h=Date.now());let p=o();if(!(p.length!==r.length||p.some((x,T)=>r[T]!==x)))return i;r=p;let f;if(e.key&&((a=e.debug)!=null&&a.call(e))&&(f=Date.now()),i=t(...p),e.key&&((l=e.debug)!=null&&l.call(e))){let x=Math.round((Date.now()-h)*100)/100,T=Math.round((Date.now()-f)*100)/100,_=T/16,S=(I,w)=>{for(I=String(I);I.length<w;)I=" "+I;return I};console.info(`%c\u23F1 ${S(T,5)} /${S(x,5)} ms`,`
2777
2777
  font-size: .6rem;
2778
2778
  font-weight: bold;
2779
- color: hsl(${Math.max(0,Math.min(120-120*_,120))}deg 100% 31%);`,e==null?void 0:e.key)}return(m=e==null?void 0:e.onChange)==null||m.call(e,i),i}}function no(o,t){if(o===void 0)throw new Error(`Unexpected undefined${t?`: ${t}`:""}`);return o}var Us=(o,t)=>Math.abs(o-t)<1,Vs=(o,t,e)=>{let r;return function(...i){o.clearTimeout(r),r=o.setTimeout(()=>t.apply(this,i),e)}};var Fl=o=>o,Bl=o=>{let t=Math.max(o.startIndex-o.overscan,0),e=Math.min(o.endIndex+o.overscan,o.count-1),r=[];for(let i=t;i<=e;i++)r.push(i);return r},Fs=(o,t)=>{let e=o.scrollElement;if(!e)return;let r=o.targetWindow;if(!r)return;let i=s=>{let{width:a,height:l}=s;t({width:Math.round(a),height:Math.round(l)})};if(i(e.getBoundingClientRect()),!r.ResizeObserver)return()=>{};let n=new r.ResizeObserver(s=>{let a=s[0];if(a!=null&&a.borderBoxSize){let l=a.borderBoxSize[0];if(l){i({width:l.inlineSize,height:l.blockSize});return}}i(e.getBoundingClientRect())});return n.observe(e,{box:"border-box"}),()=>{n.unobserve(e)}},Hs={passive:!0};var Gl=typeof window>"u"?!0:"onscrollend"in window,Bs=(o,t)=>{let e=o.scrollElement;if(!e)return;let r=o.targetWindow;if(!r)return;let i=0,n=o.options.useScrollendEvent&&Gl?()=>{}:Vs(r,()=>{t(i,!1)},o.options.isScrollingResetDelay),s=m=>()=>{let{horizontal:h,isRtl:p}=o.options;i=h?e.scrollLeft*(p&&-1||1):e.scrollTop,n(),t(i,m)},a=s(!0),l=s(!1);return l(),e.addEventListener("scroll",a,Hs),e.addEventListener("scrollend",l,Hs),()=>{e.removeEventListener("scroll",a),e.removeEventListener("scrollend",l)}};var ql=(o,t,e)=>{if(t!=null&&t.borderBoxSize){let r=t.borderBoxSize[0];if(r)return Math.round(r[e.options.horizontal?"inlineSize":"blockSize"])}return Math.round(o.getBoundingClientRect()[e.options.horizontal?"width":"height"])};var Gs=(o,{adjustments:t=0,behavior:e},r)=>{var i,n;let s=o+t;(n=(i=r.scrollElement)==null?void 0:i.scrollTo)==null||n.call(i,{[r.options.horizontal?"left":"top"]:s,behavior:e})},so=class{constructor(t){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.scrollToIndexTimeoutId=null,this.measurementsCache=[],this.itemSizeCache=new Map,this.pendingMeasuredCacheIndexes=[],this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this.elementsCache=new Map,this.observer=(()=>{let e=null,r=()=>e||(!this.targetWindow||!this.targetWindow.ResizeObserver?null:e=new this.targetWindow.ResizeObserver(i=>{i.forEach(n=>{this._measureElement(n.target,n)})}));return{disconnect:()=>{var i;(i=r())==null||i.disconnect(),e=null},observe:i=>{var n;return(n=r())==null?void 0:n.observe(i,{box:"border-box"})},unobserve:i=>{var n;return(n=r())==null?void 0:n.unobserve(i)}}})(),this.range=null,this.setOptions=e=>{Object.entries(e).forEach(([r,i])=>{typeof i>"u"&&delete e[r]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:Fl,rangeExtractor:Bl,onChange:()=>{},measureElement:ql,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!0,...e}},this.notify=e=>{var r,i;(i=(r=this.options).onChange)==null||i.call(r,this,e)},this.maybeNotify=ut(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),e=>{this.notify(e)},{key:!1,debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(e=>e()),this.unsubs=[],this.observer.disconnect(),this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var i;var e;let r=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==r){if(this.cleanup(),!r){this.maybeNotify();return}this.scrollElement=r,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=(i=(e=this.scrollElement)==null?void 0:e.window)!=null?i:null,this.elementsCache.forEach(n=>{this.observer.observe(n)}),this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0}),this.unsubs.push(this.options.observeElementRect(this,n=>{this.scrollRect=n,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(n,s)=>{this.scrollAdjustments=0,this.scrollDirection=s?this.getScrollOffset()<n?"forward":"backward":null,this.scrollOffset=n,this.isScrolling=s,this.maybeNotify()}))}},this.getSize=()=>{var e;return this.options.enabled?(this.scrollRect=(e=this.scrollRect)!=null?e:this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0)},this.getScrollOffset=()=>{var e;return this.options.enabled?(this.scrollOffset=(e=this.scrollOffset)!=null?e:typeof this.options.initialOffset=="function"?this.options.initialOffset():this.options.initialOffset,this.scrollOffset):(this.scrollOffset=null,0)},this.getFurthestMeasurement=(e,r)=>{let i=new Map,n=new Map;for(let s=r-1;s>=0;s--){let a=e[s];if(i.has(a.lane))continue;let l=n.get(a.lane);if(l==null||a.end>l.end?n.set(a.lane,a):a.end<l.end&&i.set(a.lane,!0),i.size===this.options.lanes)break}return n.size===this.options.lanes?Array.from(n.values()).sort((s,a)=>s.end===a.end?s.index-a.index:s.end-a.end)[0]:void 0},this.getMeasurementOptions=ut(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled],(e,r,i,n,s)=>(this.pendingMeasuredCacheIndexes=[],{count:e,paddingStart:r,scrollMargin:i,getItemKey:n,enabled:s}),{key:!1}),this.getMeasurements=ut(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:e,paddingStart:r,scrollMargin:i,getItemKey:n,enabled:s},a)=>{if(!s)return this.measurementsCache=[],this.itemSizeCache.clear(),[];this.measurementsCache.length===0&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(h=>{this.itemSizeCache.set(h.key,h.size)}));let l=this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[];let m=this.measurementsCache.slice(0,l);for(let h=l;h<e;h++){let p=n(h),v=this.options.lanes===1?m[h-1]:this.getFurthestMeasurement(m,h),f=v?v.end+this.options.gap:r+i,x=a.get(p),T=typeof x=="number"?x:this.options.estimateSize(h),_=f+T,S=v?v.lane:h%this.options.lanes;m[h]={index:h,start:f,size:T,end:_,key:p,lane:S}}return this.measurementsCache=m,m},{key:!1,debug:()=>this.options.debug}),this.calculateRange=ut(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset()],(e,r,i)=>this.range=e.length>0&&r>0?Yl({measurements:e,outerSize:r,scrollOffset:i}):null,{key:!1,debug:()=>this.options.debug}),this.getIndexes=ut(()=>{let e=null,r=null,i=this.calculateRange();return i&&(e=i.startIndex,r=i.endIndex),[this.options.rangeExtractor,this.options.overscan,this.options.count,e,r]},(e,r,i,n,s)=>n===null||s===null?[]:e({startIndex:n,endIndex:s,overscan:r,count:i}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=e=>{let r=this.options.indexAttribute,i=e.getAttribute(r);return i?parseInt(i,10):(console.warn(`Missing attribute name '${r}={index}' on measured element.`),-1)},this._measureElement=(e,r)=>{let i=this.indexFromElement(e),n=this.measurementsCache[i];if(!n)return;let s=n.key,a=this.elementsCache.get(s);a!==e&&(a&&this.observer.unobserve(a),this.observer.observe(e),this.elementsCache.set(s,e)),e.isConnected&&this.resizeItem(i,this.options.measureElement(e,r,this))},this.resizeItem=(e,r)=>{var a;let i=this.measurementsCache[e];if(!i)return;let n=(a=this.itemSizeCache.get(i.key))!=null?a:i.size,s=r-n;s!==0&&((this.shouldAdjustScrollPositionOnItemSizeChange!==void 0?this.shouldAdjustScrollPositionOnItemSizeChange(i,s,this):i.start<this.getScrollOffset()+this.scrollAdjustments)&&this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=s,behavior:void 0}),this.pendingMeasuredCacheIndexes.push(i.index),this.itemSizeCache=new Map(this.itemSizeCache.set(i.key,r)),this.notify(!1))},this.measureElement=e=>{if(!e){this.elementsCache.forEach((r,i)=>{r.isConnected||(this.observer.unobserve(r),this.elementsCache.delete(i))});return}this._measureElement(e,void 0)},this.getVirtualItems=ut(()=>[this.getIndexes(),this.getMeasurements()],(e,r)=>{let i=[];for(let n=0,s=e.length;n<s;n++){let a=e[n],l=r[a];i.push(l)}return i},{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=e=>{let r=this.getMeasurements();if(r.length!==0)return no(r[qs(0,r.length-1,i=>no(r[i]).start,e)])},this.getOffsetForAlignment=(e,r)=>{let i=this.getSize(),n=this.getScrollOffset();r==="auto"&&e>=n+i&&(r="end"),r==="end"&&(e-=i);let s=this.options.horizontal?"scrollWidth":"scrollHeight",l=(this.scrollElement?"document"in this.scrollElement?this.scrollElement.document.documentElement[s]:this.scrollElement[s]:0)-i;return Math.max(Math.min(l,e),0)},this.getOffsetForIndex=(e,r="auto")=>{e=Math.max(0,Math.min(e,this.options.count-1));let i=this.measurementsCache[e];if(!i)return;let n=this.getSize(),s=this.getScrollOffset();if(r==="auto")if(i.end>=s+n-this.options.scrollPaddingEnd)r="end";else if(i.start<=s+this.options.scrollPaddingStart)r="start";else return[s,r];let a=i.start-this.options.scrollPaddingStart+(i.size-n)/2;switch(r){case"center":return[this.getOffsetForAlignment(a,r),r];case"end":return[this.getOffsetForAlignment(i.end+this.options.scrollPaddingEnd,r),r];default:return[this.getOffsetForAlignment(i.start-this.options.scrollPaddingStart,r),r]}},this.isDynamicMode=()=>this.elementsCache.size>0,this.cancelScrollToIndex=()=>{this.scrollToIndexTimeoutId!==null&&this.targetWindow&&(this.targetWindow.clearTimeout(this.scrollToIndexTimeoutId),this.scrollToIndexTimeoutId=null)},this.scrollToOffset=(e,{align:r="start",behavior:i}={})=>{this.cancelScrollToIndex(),i==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getOffsetForAlignment(e,r),{adjustments:void 0,behavior:i})},this.scrollToIndex=(e,{align:r="auto",behavior:i}={})=>{e=Math.max(0,Math.min(e,this.options.count-1)),this.cancelScrollToIndex(),i==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size.");let n=this.getOffsetForIndex(e,r);if(!n)return;let[s,a]=n;this._scrollToOffset(s,{adjustments:void 0,behavior:i}),i!=="smooth"&&this.isDynamicMode()&&this.targetWindow&&(this.scrollToIndexTimeoutId=this.targetWindow.setTimeout(()=>{if(this.scrollToIndexTimeoutId=null,this.elementsCache.has(this.options.getItemKey(e))){let[m]=no(this.getOffsetForIndex(e,a));Us(m,this.getScrollOffset())||this.scrollToIndex(e,{align:a,behavior:i})}else this.scrollToIndex(e,{align:a,behavior:i})}))},this.scrollBy=(e,{behavior:r}={})=>{this.cancelScrollToIndex(),r==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getScrollOffset()+e,{adjustments:void 0,behavior:r})},this.getTotalSize=()=>{var n;var e;let r=this.getMeasurements(),i;return r.length===0?i=this.options.paddingStart:i=this.options.lanes===1?(n=(e=r[r.length-1])==null?void 0:e.end)!=null?n:0:Math.max(...r.slice(-this.options.lanes).map(s=>s.end)),Math.max(i-this.options.scrollMargin+this.options.paddingEnd,0)},this._scrollToOffset=(e,{adjustments:r,behavior:i})=>{this.options.scrollToFn(e,{behavior:i,adjustments:r},this)},this.measure=()=>{this.itemSizeCache=new Map,this.notify(!1)},this.setOptions(t)}},qs=(o,t,e,r)=>{for(;o<=t;){let i=(o+t)/2|0,n=e(i);if(n<r)o=i+1;else if(n>r)t=i-1;else return i}return o>0?o-1:0};function Yl({measurements:o,outerSize:t,scrollOffset:e}){let r=o.length-1,n=qs(0,r,a=>o[a].start,e),s=n;for(;s<r&&o[s].end<e+t;)s++;return{startIndex:n,endIndex:s}}var gi=class{constructor(t,e){this.cleanup=()=>{},(this.host=t).addController(this);let r={...e,onChange:(i,n)=>{var s;this.host.updateComplete.then(()=>this.host.requestUpdate()),(s=e.onChange)==null||s.call(e,i,n)}};this.virtualizer=new so(r)}getVirtualizer(){return this.virtualizer}async hostConnected(){this.cleanup=this.virtualizer._didMount()}hostUpdated(){this.virtualizer._willUpdate()}hostDisconnected(){this.cleanup()}},ao=class extends gi{constructor(t,e){super(t,{observeElementRect:Fs,observeElementOffset:Bs,scrollToFn:Gs,...e})}};var{I:aT}=Pi;var Ys=o=>o.strings===void 0;var mr=(o,t)=>{var r;let e=o._$AN;if(e===void 0)return!1;for(let i of e)(r=i._$AO)==null||r.call(i,t,!1),mr(i,t);return!0},lo=o=>{let t,e;do{if((t=o._$AM)===void 0)break;e=t._$AN,e.delete(o),o=t}while((e==null?void 0:e.size)===0)},Ws=o=>{for(let t;t=o._$AM;o=t){let e=t._$AN;if(e===void 0)t._$AN=e=new Set;else if(e.has(o))break;e.add(o),Zl(t)}};function Wl(o){this._$AN!==void 0?(lo(this),this._$AM=o,Ws(this)):this._$AM=o}function Xl(o,t=!1,e=0){let r=this._$AH,i=this._$AN;if(i!==void 0&&i.size!==0)if(t)if(Array.isArray(r))for(let n=e;n<r.length;n++)mr(r[n],!1),lo(r[n]);else r!=null&&(mr(r,!1),lo(r));else mr(this,o)}var Zl=o=>{var t,e;o.type==Nr.CHILD&&((t=o._$AP)!=null||(o._$AP=Xl),(e=o._$AQ)!=null||(o._$AQ=Wl))},co=class extends It{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,e,r){super._$AT(t,e,r),Ws(this),this.isConnected=t._$AU}_$AO(t,e=!0){var r,i;t!==this.isConnected&&(this.isConnected=t,t?(r=this.reconnected)==null||r.call(this):(i=this.disconnected)==null||i.call(this)),e&&(mr(this,t),lo(this))}setValue(t){if(Ys(this.t))this.t._$AI(t,this);else{let e=[...this.t._$AH];e[this.i]=t,this.t._$AI(e,this,0)}}disconnected(){}reconnected(){}};var Xs=()=>new bi,bi=class{},vi=new WeakMap,Zs=Zt(class extends co{render(o){return b}update(o,[t]){var r;let e=t!==this.Y;return e&&this.Y!==void 0&&this.rt(void 0),(e||this.lt!==this.ct)&&(this.Y=t,this.ht=(r=o.options)==null?void 0:r.host,this.rt(this.ct=o.element)),b}rt(o){var t;if(this.isConnected||(o=void 0),typeof this.Y=="function"){let e=(t=this.ht)!=null?t:globalThis,r=vi.get(e);r===void 0&&(r=new WeakMap,vi.set(e,r)),r.get(this.Y)!==void 0&&this.Y.call(this.ht,void 0),r.set(this.Y,o),o!==void 0&&this.Y.call(this.ht,o)}else this.Y.value=o}get lt(){var o,t,e;return typeof this.Y=="function"?(t=vi.get((o=this.ht)!=null?o:globalThis))==null?void 0:t.get(this.Y):(e=this.Y)==null?void 0:e.value}disconnected(){this.lt===this.ct&&this.rt(void 0)}reconnected(){this.rt(this.ct)}});var jl=[g`
2779
+ color: hsl(${Math.max(0,Math.min(120-120*_,120))}deg 100% 31%);`,e==null?void 0:e.key)}return(m=e==null?void 0:e.onChange)==null||m.call(e,i),i}}function io(o,t){if(o===void 0)throw new Error(`Unexpected undefined${t?`: ${t}`:""}`);return o}var Us=(o,t)=>Math.abs(o-t)<1,Vs=(o,t,e)=>{let r;return function(...i){o.clearTimeout(r),r=o.setTimeout(()=>t.apply(this,i),e)}};var Fl=o=>o,Bl=o=>{let t=Math.max(o.startIndex-o.overscan,0),e=Math.min(o.endIndex+o.overscan,o.count-1),r=[];for(let i=t;i<=e;i++)r.push(i);return r},Fs=(o,t)=>{let e=o.scrollElement;if(!e)return;let r=o.targetWindow;if(!r)return;let i=s=>{let{width:a,height:l}=s;t({width:Math.round(a),height:Math.round(l)})};if(i(e.getBoundingClientRect()),!r.ResizeObserver)return()=>{};let n=new r.ResizeObserver(s=>{let a=s[0];if(a!=null&&a.borderBoxSize){let l=a.borderBoxSize[0];if(l){i({width:l.inlineSize,height:l.blockSize});return}}i(e.getBoundingClientRect())});return n.observe(e,{box:"border-box"}),()=>{n.unobserve(e)}},Hs={passive:!0};var Gl=typeof window>"u"?!0:"onscrollend"in window,Bs=(o,t)=>{let e=o.scrollElement;if(!e)return;let r=o.targetWindow;if(!r)return;let i=0,n=o.options.useScrollendEvent&&Gl?()=>{}:Vs(r,()=>{t(i,!1)},o.options.isScrollingResetDelay),s=m=>()=>{let{horizontal:h,isRtl:p}=o.options;i=h?e.scrollLeft*(p&&-1||1):e.scrollTop,n(),t(i,m)},a=s(!0),l=s(!1);return l(),e.addEventListener("scroll",a,Hs),e.addEventListener("scrollend",l,Hs),()=>{e.removeEventListener("scroll",a),e.removeEventListener("scrollend",l)}};var ql=(o,t,e)=>{if(t!=null&&t.borderBoxSize){let r=t.borderBoxSize[0];if(r)return Math.round(r[e.options.horizontal?"inlineSize":"blockSize"])}return Math.round(o.getBoundingClientRect()[e.options.horizontal?"width":"height"])};var Gs=(o,{adjustments:t=0,behavior:e},r)=>{var i,n;let s=o+t;(n=(i=r.scrollElement)==null?void 0:i.scrollTo)==null||n.call(i,{[r.options.horizontal?"left":"top"]:s,behavior:e})},no=class{constructor(t){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.scrollToIndexTimeoutId=null,this.measurementsCache=[],this.itemSizeCache=new Map,this.pendingMeasuredCacheIndexes=[],this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this.elementsCache=new Map,this.observer=(()=>{let e=null,r=()=>e||(!this.targetWindow||!this.targetWindow.ResizeObserver?null:e=new this.targetWindow.ResizeObserver(i=>{i.forEach(n=>{this._measureElement(n.target,n)})}));return{disconnect:()=>{var i;(i=r())==null||i.disconnect(),e=null},observe:i=>{var n;return(n=r())==null?void 0:n.observe(i,{box:"border-box"})},unobserve:i=>{var n;return(n=r())==null?void 0:n.unobserve(i)}}})(),this.range=null,this.setOptions=e=>{Object.entries(e).forEach(([r,i])=>{typeof i>"u"&&delete e[r]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:Fl,rangeExtractor:Bl,onChange:()=>{},measureElement:ql,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!0,...e}},this.notify=e=>{var r,i;(i=(r=this.options).onChange)==null||i.call(r,this,e)},this.maybeNotify=pt(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),e=>{this.notify(e)},{key:!1,debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(e=>e()),this.unsubs=[],this.observer.disconnect(),this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var i;var e;let r=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==r){if(this.cleanup(),!r){this.maybeNotify();return}this.scrollElement=r,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=(i=(e=this.scrollElement)==null?void 0:e.window)!=null?i:null,this.elementsCache.forEach(n=>{this.observer.observe(n)}),this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0}),this.unsubs.push(this.options.observeElementRect(this,n=>{this.scrollRect=n,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(n,s)=>{this.scrollAdjustments=0,this.scrollDirection=s?this.getScrollOffset()<n?"forward":"backward":null,this.scrollOffset=n,this.isScrolling=s,this.maybeNotify()}))}},this.getSize=()=>{var e;return this.options.enabled?(this.scrollRect=(e=this.scrollRect)!=null?e:this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0)},this.getScrollOffset=()=>{var e;return this.options.enabled?(this.scrollOffset=(e=this.scrollOffset)!=null?e:typeof this.options.initialOffset=="function"?this.options.initialOffset():this.options.initialOffset,this.scrollOffset):(this.scrollOffset=null,0)},this.getFurthestMeasurement=(e,r)=>{let i=new Map,n=new Map;for(let s=r-1;s>=0;s--){let a=e[s];if(i.has(a.lane))continue;let l=n.get(a.lane);if(l==null||a.end>l.end?n.set(a.lane,a):a.end<l.end&&i.set(a.lane,!0),i.size===this.options.lanes)break}return n.size===this.options.lanes?Array.from(n.values()).sort((s,a)=>s.end===a.end?s.index-a.index:s.end-a.end)[0]:void 0},this.getMeasurementOptions=pt(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled],(e,r,i,n,s)=>(this.pendingMeasuredCacheIndexes=[],{count:e,paddingStart:r,scrollMargin:i,getItemKey:n,enabled:s}),{key:!1}),this.getMeasurements=pt(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:e,paddingStart:r,scrollMargin:i,getItemKey:n,enabled:s},a)=>{if(!s)return this.measurementsCache=[],this.itemSizeCache.clear(),[];this.measurementsCache.length===0&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(h=>{this.itemSizeCache.set(h.key,h.size)}));let l=this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[];let m=this.measurementsCache.slice(0,l);for(let h=l;h<e;h++){let p=n(h),v=this.options.lanes===1?m[h-1]:this.getFurthestMeasurement(m,h),f=v?v.end+this.options.gap:r+i,x=a.get(p),T=typeof x=="number"?x:this.options.estimateSize(h),_=f+T,S=v?v.lane:h%this.options.lanes;m[h]={index:h,start:f,size:T,end:_,key:p,lane:S}}return this.measurementsCache=m,m},{key:!1,debug:()=>this.options.debug}),this.calculateRange=pt(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset()],(e,r,i)=>this.range=e.length>0&&r>0?Yl({measurements:e,outerSize:r,scrollOffset:i}):null,{key:!1,debug:()=>this.options.debug}),this.getIndexes=pt(()=>{let e=null,r=null,i=this.calculateRange();return i&&(e=i.startIndex,r=i.endIndex),[this.options.rangeExtractor,this.options.overscan,this.options.count,e,r]},(e,r,i,n,s)=>n===null||s===null?[]:e({startIndex:n,endIndex:s,overscan:r,count:i}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=e=>{let r=this.options.indexAttribute,i=e.getAttribute(r);return i?parseInt(i,10):(console.warn(`Missing attribute name '${r}={index}' on measured element.`),-1)},this._measureElement=(e,r)=>{let i=this.indexFromElement(e),n=this.measurementsCache[i];if(!n)return;let s=n.key,a=this.elementsCache.get(s);a!==e&&(a&&this.observer.unobserve(a),this.observer.observe(e),this.elementsCache.set(s,e)),e.isConnected&&this.resizeItem(i,this.options.measureElement(e,r,this))},this.resizeItem=(e,r)=>{var a;let i=this.measurementsCache[e];if(!i)return;let n=(a=this.itemSizeCache.get(i.key))!=null?a:i.size,s=r-n;s!==0&&((this.shouldAdjustScrollPositionOnItemSizeChange!==void 0?this.shouldAdjustScrollPositionOnItemSizeChange(i,s,this):i.start<this.getScrollOffset()+this.scrollAdjustments)&&this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=s,behavior:void 0}),this.pendingMeasuredCacheIndexes.push(i.index),this.itemSizeCache=new Map(this.itemSizeCache.set(i.key,r)),this.notify(!1))},this.measureElement=e=>{if(!e){this.elementsCache.forEach((r,i)=>{r.isConnected||(this.observer.unobserve(r),this.elementsCache.delete(i))});return}this._measureElement(e,void 0)},this.getVirtualItems=pt(()=>[this.getIndexes(),this.getMeasurements()],(e,r)=>{let i=[];for(let n=0,s=e.length;n<s;n++){let a=e[n],l=r[a];i.push(l)}return i},{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=e=>{let r=this.getMeasurements();if(r.length!==0)return io(r[qs(0,r.length-1,i=>io(r[i]).start,e)])},this.getOffsetForAlignment=(e,r)=>{let i=this.getSize(),n=this.getScrollOffset();r==="auto"&&e>=n+i&&(r="end"),r==="end"&&(e-=i);let s=this.options.horizontal?"scrollWidth":"scrollHeight",l=(this.scrollElement?"document"in this.scrollElement?this.scrollElement.document.documentElement[s]:this.scrollElement[s]:0)-i;return Math.max(Math.min(l,e),0)},this.getOffsetForIndex=(e,r="auto")=>{e=Math.max(0,Math.min(e,this.options.count-1));let i=this.measurementsCache[e];if(!i)return;let n=this.getSize(),s=this.getScrollOffset();if(r==="auto")if(i.end>=s+n-this.options.scrollPaddingEnd)r="end";else if(i.start<=s+this.options.scrollPaddingStart)r="start";else return[s,r];let a=i.start-this.options.scrollPaddingStart+(i.size-n)/2;switch(r){case"center":return[this.getOffsetForAlignment(a,r),r];case"end":return[this.getOffsetForAlignment(i.end+this.options.scrollPaddingEnd,r),r];default:return[this.getOffsetForAlignment(i.start-this.options.scrollPaddingStart,r),r]}},this.isDynamicMode=()=>this.elementsCache.size>0,this.cancelScrollToIndex=()=>{this.scrollToIndexTimeoutId!==null&&this.targetWindow&&(this.targetWindow.clearTimeout(this.scrollToIndexTimeoutId),this.scrollToIndexTimeoutId=null)},this.scrollToOffset=(e,{align:r="start",behavior:i}={})=>{this.cancelScrollToIndex(),i==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getOffsetForAlignment(e,r),{adjustments:void 0,behavior:i})},this.scrollToIndex=(e,{align:r="auto",behavior:i}={})=>{e=Math.max(0,Math.min(e,this.options.count-1)),this.cancelScrollToIndex(),i==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size.");let n=this.getOffsetForIndex(e,r);if(!n)return;let[s,a]=n;this._scrollToOffset(s,{adjustments:void 0,behavior:i}),i!=="smooth"&&this.isDynamicMode()&&this.targetWindow&&(this.scrollToIndexTimeoutId=this.targetWindow.setTimeout(()=>{if(this.scrollToIndexTimeoutId=null,this.elementsCache.has(this.options.getItemKey(e))){let[m]=io(this.getOffsetForIndex(e,a));Us(m,this.getScrollOffset())||this.scrollToIndex(e,{align:a,behavior:i})}else this.scrollToIndex(e,{align:a,behavior:i})}))},this.scrollBy=(e,{behavior:r}={})=>{this.cancelScrollToIndex(),r==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getScrollOffset()+e,{adjustments:void 0,behavior:r})},this.getTotalSize=()=>{var n;var e;let r=this.getMeasurements(),i;return r.length===0?i=this.options.paddingStart:i=this.options.lanes===1?(n=(e=r[r.length-1])==null?void 0:e.end)!=null?n:0:Math.max(...r.slice(-this.options.lanes).map(s=>s.end)),Math.max(i-this.options.scrollMargin+this.options.paddingEnd,0)},this._scrollToOffset=(e,{adjustments:r,behavior:i})=>{this.options.scrollToFn(e,{behavior:i,adjustments:r},this)},this.measure=()=>{this.itemSizeCache=new Map,this.notify(!1)},this.setOptions(t)}},qs=(o,t,e,r)=>{for(;o<=t;){let i=(o+t)/2|0,n=e(i);if(n<r)o=i+1;else if(n>r)t=i-1;else return i}return o>0?o-1:0};function Yl({measurements:o,outerSize:t,scrollOffset:e}){let r=o.length-1,n=qs(0,r,a=>o[a].start,e),s=n;for(;s<r&&o[s].end<e+t;)s++;return{startIndex:n,endIndex:s}}var gi=class{constructor(t,e){this.cleanup=()=>{},(this.host=t).addController(this);let r={...e,onChange:(i,n)=>{var s;this.host.updateComplete.then(()=>this.host.requestUpdate()),(s=e.onChange)==null||s.call(e,i,n)}};this.virtualizer=new no(r)}getVirtualizer(){return this.virtualizer}async hostConnected(){this.cleanup=this.virtualizer._didMount()}hostUpdated(){this.virtualizer._willUpdate()}hostDisconnected(){this.cleanup()}},so=class extends gi{constructor(t,e){super(t,{observeElementRect:Fs,observeElementOffset:Bs,scrollToFn:Gs,...e})}};var{I:oT}=Pi;var Ys=o=>o.strings===void 0;var dr=(o,t)=>{var r;let e=o._$AN;if(e===void 0)return!1;for(let i of e)(r=i._$AO)==null||r.call(i,t,!1),dr(i,t);return!0},ao=o=>{let t,e;do{if((t=o._$AM)===void 0)break;e=t._$AN,e.delete(o),o=t}while((e==null?void 0:e.size)===0)},Ws=o=>{for(let t;t=o._$AM;o=t){let e=t._$AN;if(e===void 0)t._$AN=e=new Set;else if(e.has(o))break;e.add(o),Zl(t)}};function Wl(o){this._$AN!==void 0?(ao(this),this._$AM=o,Ws(this)):this._$AM=o}function Xl(o,t=!1,e=0){let r=this._$AH,i=this._$AN;if(i!==void 0&&i.size!==0)if(t)if(Array.isArray(r))for(let n=e;n<r.length;n++)dr(r[n],!1),ao(r[n]);else r!=null&&(dr(r,!1),ao(r));else dr(this,o)}var Zl=o=>{var t,e;o.type==Lr.CHILD&&((t=o._$AP)!=null||(o._$AP=Xl),(e=o._$AQ)!=null||(o._$AQ=Wl))},lo=class extends _t{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,e,r){super._$AT(t,e,r),Ws(this),this.isConnected=t._$AU}_$AO(t,e=!0){var r,i;t!==this.isConnected&&(this.isConnected=t,t?(r=this.reconnected)==null||r.call(this):(i=this.disconnected)==null||i.call(this)),e&&(dr(this,t),ao(this))}setValue(t){if(Ys(this.t))this.t._$AI(t,this);else{let e=[...this.t._$AH];e[this.i]=t,this.t._$AI(e,this,0)}}disconnected(){}reconnected(){}};var Xs=()=>new bi,bi=class{},vi=new WeakMap,Zs=Xt(class extends lo{render(o){return b}update(o,[t]){var r;let e=t!==this.Y;return e&&this.Y!==void 0&&this.rt(void 0),(e||this.lt!==this.ct)&&(this.Y=t,this.ht=(r=o.options)==null?void 0:r.host,this.rt(this.ct=o.element)),b}rt(o){var t;if(this.isConnected||(o=void 0),typeof this.Y=="function"){let e=(t=this.ht)!=null?t:globalThis,r=vi.get(e);r===void 0&&(r=new WeakMap,vi.set(e,r)),r.get(this.Y)!==void 0&&this.Y.call(this.ht,void 0),r.set(this.Y,o),o!==void 0&&this.Y.call(this.ht,o)}else this.Y.value=o}get lt(){var o,t,e;return typeof this.Y=="function"?(t=vi.get((o=this.ht)!=null?o:globalThis))==null?void 0:t.get(this.Y):(e=this.Y)==null?void 0:e.value}disconnected(){this.lt===this.ct&&this.rt(void 0)}reconnected(){this.rt(this.ct)}});var jl=[g`
2780
2780
  :host::part(scroll) {
2781
2781
  height: 100%;
2782
2782
  width: 100%;
@@ -2786,7 +2786,7 @@
2786
2786
  position: relative;
2787
2787
  width: 100%;
2788
2788
  }
2789
- `],js=jl;var Ks=y.constructTagName("virtualizedlist"),AT=y.constructTagName("virtualizedwrapper"),Qs={VIRTUALIZER_PROPS:{count:0,estimateSize:()=>0}};var ft=class extends E{constructor(){super();this.virtualizerProps=Qs.VIRTUALIZER_PROPS;this.scrollElementRef=Xs();this.virtualItems=[];this.virtualizerController=null,this.virtualizer=null,this.setlistdata=null,this.onscroll=null}update(e){super.update(e),e.get("virtualizerProps")&&this.setVirtualizerOptions()}firstUpdated(e){super.firstUpdated(e),this.setVirtualizerOptions()}setVirtualizerOptions(){var e;(e=this.virtualizer)==null||e.setOptions({...this.virtualizer.options,...this.virtualizerProps}),this.requestUpdate()}connectedCallback(){var e;this.virtualizerController=new ao(this,{count:this.virtualizerProps.count,estimateSize:(e=this.virtualizerProps)==null?void 0:e.estimateSize,getScrollElement:()=>this.scrollElementRef.value||null,...this.virtualizerProps}),super.connectedCallback()}getVirtualizedListWrapper(e){var a,l;this.virtualizer=e.getVirtualizer();let{getTotalSize:r,getVirtualItems:i,measureElement:n}=this.virtualizer,s=i();if(s!==this.virtualItems){this.virtualItems=s;let m=i(),h={position:"absolute",top:0,left:0,width:"100%",transform:`translateY(${(l=(a=m[0])==null?void 0:a.start)!=null?l:0}px)`};this.setlistdata&&this.setlistdata({virtualItems:m,measureElement:n,listStyle:h})}return u`<div
2789
+ `],js=jl;var Ks=y.constructTagName("virtualizedlist"),yT=y.constructTagName("virtualizedwrapper"),Qs={VIRTUALIZER_PROPS:{count:0,estimateSize:()=>0}};var ut=class extends E{constructor(){super();this.virtualizerProps=Qs.VIRTUALIZER_PROPS;this.scrollElementRef=Xs();this.virtualItems=[];this.virtualizerController=null,this.virtualizer=null,this.setlistdata=null,this.onscroll=null}update(e){super.update(e),e.get("virtualizerProps")&&this.setVirtualizerOptions()}firstUpdated(e){super.firstUpdated(e),this.setVirtualizerOptions()}setVirtualizerOptions(){var e;(e=this.virtualizer)==null||e.setOptions({...this.virtualizer.options,...this.virtualizerProps}),this.requestUpdate()}connectedCallback(){var e;this.virtualizerController=new so(this,{count:this.virtualizerProps.count,estimateSize:(e=this.virtualizerProps)==null?void 0:e.estimateSize,getScrollElement:()=>this.scrollElementRef.value||null,...this.virtualizerProps}),super.connectedCallback()}getVirtualizedListWrapper(e){var a,l;this.virtualizer=e.getVirtualizer();let{getTotalSize:r,getVirtualItems:i,measureElement:n}=this.virtualizer,s=i();if(s!==this.virtualItems){this.virtualItems=s;let m=i(),h={position:"absolute",top:0,left:0,width:"100%",transform:`translateY(${(l=(a=m[0])==null?void 0:a.start)!=null?l:0}px)`};this.setlistdata&&this.setlistdata({virtualItems:m,measureElement:n,listStyle:h})}return u`<div
2790
2790
  part="container"
2791
2791
  style="height: ${r()}px;"
2792
2792
  >
@@ -2798,7 +2798,7 @@
2798
2798
  >
2799
2799
  ${this.virtualizerController?this.getVirtualizedListWrapper(this.virtualizerController):u``}
2800
2800
  </div>
2801
- `}};ft.styles=[...E.styles,...js],c([d({type:Function,attribute:"onscroll"})],ft.prototype,"onscroll",2),c([d({type:Object,attribute:"virtualizerprops"})],ft.prototype,"virtualizerProps",2),c([d({type:Function,attribute:"setlistdata"})],ft.prototype,"setlistdata",2);var yi=ft;yi.register(Ks);var Kl=yi;})();
2801
+ `}};ut.styles=[...E.styles,...js],c([d({type:Function,attribute:"onscroll"})],ut.prototype,"onscroll",2),c([d({type:Object,attribute:"virtualizerprops"})],ut.prototype,"virtualizerProps",2),c([d({type:Function,attribute:"setlistdata"})],ut.prototype,"setlistdata",2);var yi=ut;yi.register(Ks);var Kl=yi;})();
2802
2802
  /*! Bundled license information:
2803
2803
 
2804
2804
  @lit/reactive-element/css-tag.js: