@momentum-design/components 0.23.2 → 0.24.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
- "use strict";(()=>{var Ci=Object.defineProperty;var zi=Object.getOwnPropertyDescriptor;var a=(i,t,e,r)=>{for(var o=r>1?void 0:r?zi(t,e):t,n=i.length-1,s;n>=0;n--)(s=i[n])&&(o=(r?s(t,e,o):s(o))||o);return r&&o&&Ci(t,e,o),o};var dt=globalThis,ct=dt.ShadowRoot&&(dt.ShadyCSS===void 0||dt.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Yt=Symbol(),Ur=new WeakMap,Ve=class{constructor(t,e,r){if(this._$cssResult$=!0,r!==Yt)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(ct&&t===void 0){let r=e!==void 0&&e.length===1;r&&(t=Ur.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),r&&Ur.set(e,t))}return t}toString(){return this.cssText}},Vr=i=>new Ve(typeof i=="string"?i:i+"",void 0,Yt),h=(i,...t)=>{let e=i.length===1?i[0]:t.reduce((r,o,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.")})(o)+i[n+1],i[0]);return new Ve(e,i,Yt)},Xt=(i,t)=>{if(ct)i.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(let e of t){let r=document.createElement("style"),o=dt.litNonce;o!==void 0&&r.setAttribute("nonce",o),r.textContent=e.cssText,i.appendChild(r)}},mt=ct?i=>i:i=>i instanceof CSSStyleSheet?(t=>{let e="";for(let r of t.cssRules)e+=r.cssText;return Vr(e)})(i):i;var{is:Ri,defineProperty:wi,getOwnPropertyDescriptor:Li,getOwnPropertyNames:Mi,getOwnPropertySymbols:Oi,getPrototypeOf:$i}=Object,K=globalThis,Hr=K.trustedTypes,Di=Hr?Hr.emptyScript:"",Zt=K.reactiveElementPolyfillSupport,He=(i,t)=>i,Ge={toAttribute(i,t){switch(t){case Boolean:i=i?Di:null;break;case Object:case Array:i=i==null?i:JSON.stringify(i)}return i},fromAttribute(i,t){let e=i;switch(t){case Boolean:e=i!==null;break;case Number:e=i===null?null:Number(i);break;case Object:case Array:try{e=JSON.parse(i)}catch{e=null}}return e}},ht=(i,t)=>!Ri(i,t),Gr={attribute:!0,type:String,converter:Ge,reflect:!1,hasChanged:ht},Br,Fr;(Br=Symbol.metadata)!=null||(Symbol.metadata=Symbol("metadata")),(Fr=K.litPropertyMetadata)!=null||(K.litPropertyMetadata=new WeakMap);var B=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=Gr){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(t,e),!e.noAccessor){let r=Symbol(),o=this.getPropertyDescriptor(t,r,e);o!==void 0&&wi(this.prototype,t,o)}}static getPropertyDescriptor(t,e,r){var s;let{get:o,set:n}=(s=Li(this.prototype,t))!=null?s:{get(){return this[e]},set(l){this[e]=l}};return{get(){return o==null?void 0:o.call(this)},set(l){let c=o==null?void 0:o.call(this);n.call(this,l),this.requestUpdate(t,c,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){var e;return(e=this.elementProperties.get(t))!=null?e:Gr}static _$Ei(){if(this.hasOwnProperty(He("elementProperties")))return;let t=$i(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(He("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(He("properties"))){let e=this.properties,r=[...Mi(e),...Oi(e)];for(let o of r)this.createProperty(o,e[o])}let t=this[Symbol.metadata];if(t!==null){let e=litPropertyMetadata.get(t);if(e!==void 0)for(let[r,o]of e)this.elementProperties.set(r,o)}this._$Eh=new Map;for(let[e,r]of this.elementProperties){let o=this._$Eu(e,r);o!==void 0&&this._$Eh.set(o,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 o of r)e.unshift(mt(o))}else t!==void 0&&e.push(mt(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 Xt(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 o;return(o=r.hostConnected)==null?void 0:o.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),o=this.constructor._$Eu(t,r);if(o!==void 0&&r.reflect===!0){let s=(((n=r.converter)==null?void 0:n.toAttribute)!==void 0?r.converter:Ge).toAttribute(e,r.type);this._$Em=t,s==null?this.removeAttribute(o):this.setAttribute(o,s),this._$Em=null}}_$AK(t,e){var n;let r=this.constructor,o=r._$Eh.get(t);if(o!==void 0&&this._$Em!==o){let s=r.getPropertyOptions(o),l=typeof s.converter=="function"?{fromAttribute:s.converter}:((n=s.converter)==null?void 0:n.fromAttribute)!==void 0?s.converter:Ge;this._$Em=o,this[o]=l.fromAttribute(e,s.type),this._$Em=null}}requestUpdate(t,e,r){var o;if(t!==void 0){if(r!=null||(r=this.constructor.getPropertyOptions(t)),!((o=r.hasChanged)!=null?o:ht)(this[t],e))return;this.P(t,e,r)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(t,e,r){var o;this._$AL.has(t)||this._$AL.set(t,e),r.reflect===!0&&this._$Em!==t&&((o=this._$Ej)!=null?o: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,o;if(!this.isUpdatePending)return;if(!this.hasUpdated){if((r=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this._$Ep){for(let[s,l]of this._$Ep)this[s]=l;this._$Ep=void 0}let n=this.constructor.elementProperties;if(n.size>0)for(let[s,l]of n)l.wrapped!==!0||this._$AL.has(s)||this[s]===void 0||this.P(s,this[s],l)}let t=!1,e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),(o=this._$EO)==null||o.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 o;return(o=r.hostUpdated)==null?void 0:o.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){}},Yr;B.elementStyles=[],B.shadowRootOptions={mode:"open"},B[He("elementProperties")]=new Map,B[He("finalized")]=new Map,Zt==null||Zt({ReactiveElement:B}),((Yr=K.reactiveElementVersions)!=null?Yr:K.reactiveElementVersions=[]).push("2.0.4");var Pi={attribute:!0,type:String,converter:Ge,reflect:!1,hasChanged:ht},Ui=(i=Pi,t,e)=>{let{kind:r,metadata:o}=e,n=globalThis.litPropertyMetadata.get(o);if(n===void 0&&globalThis.litPropertyMetadata.set(o,n=new Map),n.set(e.name,i),r==="accessor"){let{name:s}=e;return{set(l){let c=t.get.call(this);t.set.call(this,l),this.requestUpdate(s,c,i)},init(l){return l!==void 0&&this.P(s,void 0,i),l}}}if(r==="setter"){let{name:s}=e;return function(l){let c=this[s];t.call(this,l),this.requestUpdate(s,c,i)}}throw Error("Unsupported decorator location: "+r)};function d(i){return(t,e)=>typeof e=="object"?Ui(i,t,e):((r,o,n)=>{let s=o.hasOwnProperty(n);return o.constructor.createProperty(n,s?{...r,wrapped:!0}:r),s?Object.getOwnPropertyDescriptor(o,n):void 0})(i,t,e)}function w(i){return d({...i,state:!0,attribute:!1})}var ce=(i,t,e)=>(e.configurable=!0,e.enumerable=!0,Reflect.decorate&&typeof t!="object"&&Object.defineProperty(i,t,e),e);function Xr(i,t){return(e,r,o)=>{let n=s=>{var l,c;return(c=(l=s.renderRoot)==null?void 0:l.querySelector(i))!=null?c:null};if(t){let{get:s,set:l}=typeof r=="object"?e:o!=null?o:(()=>{let c=Symbol();return{get(){return this[c]},set(b){this[c]=b}}})();return ce(e,r,{get(){let c=s.call(this);return c===void 0&&(c=n(this),(c!==null||this.hasUpdated)&&l.call(this,c)),c}})}return ce(e,r,{get(){return n(this)}})}}var Vi={PREFIX:"mdc",SEPARATOR:"-"},Hi={NAMESPACE:Vi},qt=Hi;var Gi=i=>[qt.NAMESPACE.PREFIX,i].join(qt.NAMESPACE.SEPARATOR),u={constructTagName:Gi};var pt=u.constructTagName("themeprovider"),jt={THEMECLASS:"mds-theme-stable-darkWebex"};var Fe=globalThis,ut=Fe.trustedTypes,Zr=ut?ut.createPolicy("lit-html",{createHTML:i=>i}):void 0,Qt="$lit$",F=`lit$${Math.random().toFixed(9).slice(2)}$`,Jt="?"+F,Bi=`<${Jt}>`,pe=document,Ye=()=>pe.createComment(""),Xe=i=>i===null||typeof i!="object"&&typeof i!="function",er=Array.isArray,eo=i=>er(i)||typeof(i==null?void 0:i[Symbol.iterator])=="function",Wt=`[
2
- \f\r]`,Be=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,qr=/-->/g,jr=/>/g,me=RegExp(`>|${Wt}(?:([^\\s"'>=/]+)(${Wt}*=${Wt}*(?:[^
3
- \f\r"'\`<>=]|("|')|))|$)`,"g"),Wr=/'/g,Kr=/"/g,to=/^(?:script|style|textarea|title)$/i,tr=i=>(t,...e)=>({_$litType$:i,strings:t,values:e}),m=tr(1),Ln=tr(2),Mn=tr(3),Y=Symbol.for("lit-noChange"),p=Symbol.for("lit-nothing"),Qr=new WeakMap,he=pe.createTreeWalker(pe,129);function ro(i,t){if(!er(i)||!i.hasOwnProperty("raw"))throw Error("invalid template strings array");return Zr!==void 0?Zr.createHTML(t):t}var oo=(i,t)=>{let e=i.length-1,r=[],o,n=t===2?"<svg>":t===3?"<math>":"",s=Be;for(let l=0;l<e;l++){let c=i[l],b,f,v=-1,C=0;for(;C<c.length&&(s.lastIndex=C,f=s.exec(c),f!==null);)C=s.lastIndex,s===Be?f[1]==="!--"?s=qr:f[1]!==void 0?s=jr:f[2]!==void 0?(to.test(f[2])&&(o=RegExp("</"+f[2],"g")),s=me):f[3]!==void 0&&(s=me):s===me?f[0]===">"?(s=o!=null?o:Be,v=-1):f[1]===void 0?v=-2:(v=s.lastIndex-f[2].length,b=f[1],s=f[3]===void 0?me:f[3]==='"'?Kr:Wr):s===Kr||s===Wr?s=me:s===qr||s===jr?s=Be:(s=me,o=void 0);let R=s===me&&i[l+1].startsWith("/>")?" ":"";n+=s===Be?c+Bi:v>=0?(r.push(b),c.slice(0,v)+Qt+c.slice(v)+F+R):c+F+(v===-2?l:R)}return[ro(i,n+(i[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),r]},Ze=class i{constructor({strings:t,_$litType$:e},r){let o;this.parts=[];let n=0,s=0,l=t.length-1,c=this.parts,[b,f]=oo(t,e);if(this.el=i.createElement(b,r),he.currentNode=this.el.content,e===2||e===3){let v=this.el.content.firstChild;v.replaceWith(...v.childNodes)}for(;(o=he.nextNode())!==null&&c.length<l;){if(o.nodeType===1){if(o.hasAttributes())for(let v of o.getAttributeNames())if(v.endsWith(Qt)){let C=f[s++],R=o.getAttribute(v).split(F),$=/([.?@])?(.*)/.exec(C);c.push({type:1,index:n,name:$[2],strings:R,ctor:$[1]==="."?ft:$[1]==="?"?bt:$[1]==="@"?vt:ge}),o.removeAttribute(v)}else v.startsWith(F)&&(c.push({type:6,index:n}),o.removeAttribute(v));if(to.test(o.tagName)){let v=o.textContent.split(F),C=v.length-1;if(C>0){o.textContent=ut?ut.emptyScript:"";for(let R=0;R<C;R++)o.append(v[R],Ye()),he.nextNode(),c.push({type:2,index:++n});o.append(v[C],Ye())}}}else if(o.nodeType===8)if(o.data===Jt)c.push({type:2,index:n});else{let v=-1;for(;(v=o.data.indexOf(F,v+1))!==-1;)c.push({type:7,index:n}),v+=F.length-1}n++}}static createElement(t,e){let r=pe.createElement("template");return r.innerHTML=t,r}};function ue(i,t,e=i,r){var s,l,c;if(t===Y)return t;let o=r!==void 0?(s=e.o)==null?void 0:s[r]:e.l,n=Xe(t)?void 0:t._$litDirective$;return(o==null?void 0:o.constructor)!==n&&((l=o==null?void 0:o._$AO)==null||l.call(o,!1),n===void 0?o=void 0:(o=new n(i),o._$AT(i,e,r)),r!==void 0?((c=e.o)!=null?c:e.o=[])[r]=o:e.l=o),o!==void 0&&(t=ue(i,o._$AS(i,t.values),o,r)),t}var gt=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 b;let{el:{content:e},parts:r}=this._$AD,o=((b=t==null?void 0:t.creationScope)!=null?b:pe).importNode(e,!0);he.currentNode=o;let n=he.nextNode(),s=0,l=0,c=r[0];for(;c!==void 0;){if(s===c.index){let f;c.type===2?f=new Se(n,n.nextSibling,this,t):c.type===1?f=new c.ctor(n,c.name,c.strings,this,t):c.type===6&&(f=new yt(n,this,t)),this._$AV.push(f),c=r[++l]}s!==(c==null?void 0:c.index)&&(n=he.nextNode(),s++)}return he.currentNode=pe,o}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++}},Se=class i{get _$AU(){var t,e;return(e=(t=this._$AM)==null?void 0:t._$AU)!=null?e:this.v}constructor(t,e,r,o){var n;this.type=2,this._$AH=p,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=r,this.options=o,this.v=(n=o==null?void 0:o.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=ue(this,t,e),Xe(t)?t===p||t==null||t===""?(this._$AH!==p&&this._$AR(),this._$AH=p):t!==this._$AH&&t!==Y&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):eo(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!==p&&Xe(this._$AH)?this._$AA.nextSibling.data=t:this.T(pe.createTextNode(t)),this._$AH=t}$(t){var n;let{values:e,_$litType$:r}=t,o=typeof r=="number"?this._$AC(t):(r.el===void 0&&(r.el=Ze.createElement(ro(r.h,r.h[0]),this.options)),r);if(((n=this._$AH)==null?void 0:n._$AD)===o)this._$AH.p(e);else{let s=new gt(o,this),l=s.u(this.options);s.p(e),this.T(l),this._$AH=s}}_$AC(t){let e=Qr.get(t.strings);return e===void 0&&Qr.set(t.strings,e=new Ze(t)),e}k(t){er(this._$AH)||(this._$AH=[],this._$AR());let e=this._$AH,r,o=0;for(let n of t)o===e.length?e.push(r=new i(this.O(Ye()),this.O(Ye()),this,this.options)):r=e[o],r._$AI(n),o++;o<e.length&&(this._$AR(r&&r._$AB.nextSibling,o),e.length=o)}_$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 o=t.nextSibling;t.remove(),t=o}}setConnected(t){var e;this._$AM===void 0&&(this.v=t,(e=this._$AP)==null||e.call(this,t))}},ge=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,r,o,n){this.type=1,this._$AH=p,this._$AN=void 0,this.element=t,this.name=e,this._$AM=o,this.options=n,r.length>2||r[0]!==""||r[1]!==""?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=p}_$AI(t,e=this,r,o){let n=this.strings,s=!1;if(n===void 0)t=ue(this,t,e,0),s=!Xe(t)||t!==this._$AH&&t!==Y,s&&(this._$AH=t);else{let l=t,c,b;for(t=n[0],c=0;c<n.length-1;c++)b=ue(this,l[r+c],e,c),b===Y&&(b=this._$AH[c]),s||(s=!Xe(b)||b!==this._$AH[c]),b===p?t=p:t!==p&&(t+=(b!=null?b:"")+n[c+1]),this._$AH[c]=b}s&&!o&&this.j(t)}j(t){t===p?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t!=null?t:"")}},ft=class extends ge{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===p?void 0:t}},bt=class extends ge{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==p)}},vt=class extends ge{constructor(t,e,r,o,n){super(t,e,r,o,n),this.type=5}_$AI(t,e=this){var s;if((t=(s=ue(this,t,e,0))!=null?s:p)===Y)return;let r=this._$AH,o=t===p&&r!==p||t.capture!==r.capture||t.once!==r.once||t.passive!==r.passive,n=t!==p&&(r===p||o);o&&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)}},yt=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){ue(this,t)}},io={M:Qt,P:F,A:Jt,C:1,L:oo,R:gt,D:eo,V:ue,I:Se,H:ge,N:bt,U:vt,B:ft,F:yt},Kt=Fe.litHtmlPolyfillSupport,Jr;Kt==null||Kt(Ze,Se),((Jr=Fe.litHtmlVersions)!=null?Jr:Fe.litHtmlVersions=[]).push("3.2.0");var so=(i,t,e)=>{var n,s;let r=(n=e==null?void 0:e.renderBefore)!=null?n:t,o=r._$litPart$;if(o===void 0){let l=(s=e==null?void 0:e.renderBefore)!=null?s:null;r._$litPart$=o=new Se(t.insertBefore(Ye(),l),l,void 0,e!=null?e:{})}return o._$AI(i),o};var D=class extends B{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=so(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 Y}},no;D._$litElement$=!0,D.finalized=!0,(no=globalThis.litElementHydrateSupport)==null||no.call(globalThis,{LitElement:D});var rr=globalThis.litElementPolyfillSupport;rr==null||rr({LitElement:D});var ao;((ao=globalThis.litElementVersions)!=null?ao:globalThis.litElementVersions=[]).push("4.1.0");var lo=h`
1
+ "use strict";(()=>{var zi=Object.defineProperty;var Ri=Object.getOwnPropertyDescriptor;var a=(i,t,e,r)=>{for(var o=r>1?void 0:r?Ri(t,e):t,n=i.length-1,s;n>=0;n--)(s=i[n])&&(o=(r?s(t,e,o):s(o))||o);return r&&o&&zi(t,e,o),o};var dt=globalThis,ct=dt.ShadowRoot&&(dt.ShadyCSS===void 0||dt.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Yt=Symbol(),Hr=new WeakMap,Ve=class{constructor(t,e,r){if(this._$cssResult$=!0,r!==Yt)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(ct&&t===void 0){let r=e!==void 0&&e.length===1;r&&(t=Hr.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),r&&Hr.set(e,t))}return t}toString(){return this.cssText}},Gr=i=>new Ve(typeof i=="string"?i:i+"",void 0,Yt),h=(i,...t)=>{let e=i.length===1?i[0]:t.reduce((r,o,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.")})(o)+i[n+1],i[0]);return new Ve(e,i,Yt)},Xt=(i,t)=>{if(ct)i.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(let e of t){let r=document.createElement("style"),o=dt.litNonce;o!==void 0&&r.setAttribute("nonce",o),r.textContent=e.cssText,i.appendChild(r)}},mt=ct?i=>i:i=>i instanceof CSSStyleSheet?(t=>{let e="";for(let r of t.cssRules)e+=r.cssText;return Gr(e)})(i):i;var{is:wi,defineProperty:Li,getOwnPropertyDescriptor:Mi,getOwnPropertyNames:Oi,getOwnPropertySymbols:$i,getPrototypeOf:Di}=Object,K=globalThis,Br=K.trustedTypes,Pi=Br?Br.emptyScript:"",Zt=K.reactiveElementPolyfillSupport,He=(i,t)=>i,Ge={toAttribute(i,t){switch(t){case Boolean:i=i?Pi:null;break;case Object:case Array:i=i==null?i:JSON.stringify(i)}return i},fromAttribute(i,t){let e=i;switch(t){case Boolean:e=i!==null;break;case Number:e=i===null?null:Number(i);break;case Object:case Array:try{e=JSON.parse(i)}catch{e=null}}return e}},ht=(i,t)=>!wi(i,t),Fr={attribute:!0,type:String,converter:Ge,reflect:!1,hasChanged:ht},Yr,Xr;(Yr=Symbol.metadata)!=null||(Symbol.metadata=Symbol("metadata")),(Xr=K.litPropertyMetadata)!=null||(K.litPropertyMetadata=new WeakMap);var B=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=Fr){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(t,e),!e.noAccessor){let r=Symbol(),o=this.getPropertyDescriptor(t,r,e);o!==void 0&&Li(this.prototype,t,o)}}static getPropertyDescriptor(t,e,r){var s;let{get:o,set:n}=(s=Mi(this.prototype,t))!=null?s:{get(){return this[e]},set(l){this[e]=l}};return{get(){return o==null?void 0:o.call(this)},set(l){let c=o==null?void 0:o.call(this);n.call(this,l),this.requestUpdate(t,c,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){var e;return(e=this.elementProperties.get(t))!=null?e:Fr}static _$Ei(){if(this.hasOwnProperty(He("elementProperties")))return;let t=Di(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(He("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(He("properties"))){let e=this.properties,r=[...Oi(e),...$i(e)];for(let o of r)this.createProperty(o,e[o])}let t=this[Symbol.metadata];if(t!==null){let e=litPropertyMetadata.get(t);if(e!==void 0)for(let[r,o]of e)this.elementProperties.set(r,o)}this._$Eh=new Map;for(let[e,r]of this.elementProperties){let o=this._$Eu(e,r);o!==void 0&&this._$Eh.set(o,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 o of r)e.unshift(mt(o))}else t!==void 0&&e.push(mt(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 Xt(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 o;return(o=r.hostConnected)==null?void 0:o.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),o=this.constructor._$Eu(t,r);if(o!==void 0&&r.reflect===!0){let s=(((n=r.converter)==null?void 0:n.toAttribute)!==void 0?r.converter:Ge).toAttribute(e,r.type);this._$Em=t,s==null?this.removeAttribute(o):this.setAttribute(o,s),this._$Em=null}}_$AK(t,e){var n;let r=this.constructor,o=r._$Eh.get(t);if(o!==void 0&&this._$Em!==o){let s=r.getPropertyOptions(o),l=typeof s.converter=="function"?{fromAttribute:s.converter}:((n=s.converter)==null?void 0:n.fromAttribute)!==void 0?s.converter:Ge;this._$Em=o,this[o]=l.fromAttribute(e,s.type),this._$Em=null}}requestUpdate(t,e,r){var o;if(t!==void 0){if(r!=null||(r=this.constructor.getPropertyOptions(t)),!((o=r.hasChanged)!=null?o:ht)(this[t],e))return;this.P(t,e,r)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(t,e,r){var o;this._$AL.has(t)||this._$AL.set(t,e),r.reflect===!0&&this._$Em!==t&&((o=this._$Ej)!=null?o: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,o;if(!this.isUpdatePending)return;if(!this.hasUpdated){if((r=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this._$Ep){for(let[s,l]of this._$Ep)this[s]=l;this._$Ep=void 0}let n=this.constructor.elementProperties;if(n.size>0)for(let[s,l]of n)l.wrapped!==!0||this._$AL.has(s)||this[s]===void 0||this.P(s,this[s],l)}let t=!1,e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),(o=this._$EO)==null||o.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 o;return(o=r.hostUpdated)==null?void 0:o.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){}},Zr;B.elementStyles=[],B.shadowRootOptions={mode:"open"},B[He("elementProperties")]=new Map,B[He("finalized")]=new Map,Zt==null||Zt({ReactiveElement:B}),((Zr=K.reactiveElementVersions)!=null?Zr:K.reactiveElementVersions=[]).push("2.0.4");var Ui={attribute:!0,type:String,converter:Ge,reflect:!1,hasChanged:ht},Vi=(i=Ui,t,e)=>{let{kind:r,metadata:o}=e,n=globalThis.litPropertyMetadata.get(o);if(n===void 0&&globalThis.litPropertyMetadata.set(o,n=new Map),n.set(e.name,i),r==="accessor"){let{name:s}=e;return{set(l){let c=t.get.call(this);t.set.call(this,l),this.requestUpdate(s,c,i)},init(l){return l!==void 0&&this.P(s,void 0,i),l}}}if(r==="setter"){let{name:s}=e;return function(l){let c=this[s];t.call(this,l),this.requestUpdate(s,c,i)}}throw Error("Unsupported decorator location: "+r)};function d(i){return(t,e)=>typeof e=="object"?Vi(i,t,e):((r,o,n)=>{let s=o.hasOwnProperty(n);return o.constructor.createProperty(n,s?{...r,wrapped:!0}:r),s?Object.getOwnPropertyDescriptor(o,n):void 0})(i,t,e)}function w(i){return d({...i,state:!0,attribute:!1})}var ce=(i,t,e)=>(e.configurable=!0,e.enumerable=!0,Reflect.decorate&&typeof t!="object"&&Object.defineProperty(i,t,e),e);function qr(i,t){return(e,r,o)=>{let n=s=>{var l,c;return(c=(l=s.renderRoot)==null?void 0:l.querySelector(i))!=null?c:null};if(t){let{get:s,set:l}=typeof r=="object"?e:o!=null?o:(()=>{let c=Symbol();return{get(){return this[c]},set(f){this[c]=f}}})();return ce(e,r,{get(){let c=s.call(this);return c===void 0&&(c=n(this),(c!==null||this.hasUpdated)&&l.call(this,c)),c}})}return ce(e,r,{get(){return n(this)}})}}var Hi={PREFIX:"mdc",SEPARATOR:"-"},Gi={NAMESPACE:Hi},qt=Gi;var Bi=i=>[qt.NAMESPACE.PREFIX,i].join(qt.NAMESPACE.SEPARATOR),u={constructTagName:Bi};var pt=u.constructTagName("themeprovider"),jt={THEMECLASS:"mds-theme-stable-darkWebex"};var Fe=globalThis,ut=Fe.trustedTypes,jr=ut?ut.createPolicy("lit-html",{createHTML:i=>i}):void 0,Qt="$lit$",F=`lit$${Math.random().toFixed(9).slice(2)}$`,Jt="?"+F,Fi=`<${Jt}>`,pe=document,Ye=()=>pe.createComment(""),Xe=i=>i===null||typeof i!="object"&&typeof i!="function",er=Array.isArray,ro=i=>er(i)||typeof(i==null?void 0:i[Symbol.iterator])=="function",Wt=`[
2
+ \f\r]`,Be=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Wr=/-->/g,Kr=/>/g,me=RegExp(`>|${Wt}(?:([^\\s"'>=/]+)(${Wt}*=${Wt}*(?:[^
3
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),Qr=/'/g,Jr=/"/g,oo=/^(?:script|style|textarea|title)$/i,tr=i=>(t,...e)=>({_$litType$:i,strings:t,values:e}),m=tr(1),Ln=tr(2),Mn=tr(3),Y=Symbol.for("lit-noChange"),p=Symbol.for("lit-nothing"),eo=new WeakMap,he=pe.createTreeWalker(pe,129);function io(i,t){if(!er(i)||!i.hasOwnProperty("raw"))throw Error("invalid template strings array");return jr!==void 0?jr.createHTML(t):t}var so=(i,t)=>{let e=i.length-1,r=[],o,n=t===2?"<svg>":t===3?"<math>":"",s=Be;for(let l=0;l<e;l++){let c=i[l],f,b,v=-1,C=0;for(;C<c.length&&(s.lastIndex=C,b=s.exec(c),b!==null);)C=s.lastIndex,s===Be?b[1]==="!--"?s=Wr:b[1]!==void 0?s=Kr:b[2]!==void 0?(oo.test(b[2])&&(o=RegExp("</"+b[2],"g")),s=me):b[3]!==void 0&&(s=me):s===me?b[0]===">"?(s=o!=null?o:Be,v=-1):b[1]===void 0?v=-2:(v=s.lastIndex-b[2].length,f=b[1],s=b[3]===void 0?me:b[3]==='"'?Jr:Qr):s===Jr||s===Qr?s=me:s===Wr||s===Kr?s=Be:(s=me,o=void 0);let R=s===me&&i[l+1].startsWith("/>")?" ":"";n+=s===Be?c+Fi:v>=0?(r.push(f),c.slice(0,v)+Qt+c.slice(v)+F+R):c+F+(v===-2?l:R)}return[io(i,n+(i[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),r]},Ze=class i{constructor({strings:t,_$litType$:e},r){let o;this.parts=[];let n=0,s=0,l=t.length-1,c=this.parts,[f,b]=so(t,e);if(this.el=i.createElement(f,r),he.currentNode=this.el.content,e===2||e===3){let v=this.el.content.firstChild;v.replaceWith(...v.childNodes)}for(;(o=he.nextNode())!==null&&c.length<l;){if(o.nodeType===1){if(o.hasAttributes())for(let v of o.getAttributeNames())if(v.endsWith(Qt)){let C=b[s++],R=o.getAttribute(v).split(F),$=/([.?@])?(.*)/.exec(C);c.push({type:1,index:n,name:$[2],strings:R,ctor:$[1]==="."?bt:$[1]==="?"?ft:$[1]==="@"?vt:ge}),o.removeAttribute(v)}else v.startsWith(F)&&(c.push({type:6,index:n}),o.removeAttribute(v));if(oo.test(o.tagName)){let v=o.textContent.split(F),C=v.length-1;if(C>0){o.textContent=ut?ut.emptyScript:"";for(let R=0;R<C;R++)o.append(v[R],Ye()),he.nextNode(),c.push({type:2,index:++n});o.append(v[C],Ye())}}}else if(o.nodeType===8)if(o.data===Jt)c.push({type:2,index:n});else{let v=-1;for(;(v=o.data.indexOf(F,v+1))!==-1;)c.push({type:7,index:n}),v+=F.length-1}n++}}static createElement(t,e){let r=pe.createElement("template");return r.innerHTML=t,r}};function ue(i,t,e=i,r){var s,l,c;if(t===Y)return t;let o=r!==void 0?(s=e.o)==null?void 0:s[r]:e.l,n=Xe(t)?void 0:t._$litDirective$;return(o==null?void 0:o.constructor)!==n&&((l=o==null?void 0:o._$AO)==null||l.call(o,!1),n===void 0?o=void 0:(o=new n(i),o._$AT(i,e,r)),r!==void 0?((c=e.o)!=null?c:e.o=[])[r]=o:e.l=o),o!==void 0&&(t=ue(i,o._$AS(i,t.values),o,r)),t}var gt=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 f;let{el:{content:e},parts:r}=this._$AD,o=((f=t==null?void 0:t.creationScope)!=null?f:pe).importNode(e,!0);he.currentNode=o;let n=he.nextNode(),s=0,l=0,c=r[0];for(;c!==void 0;){if(s===c.index){let b;c.type===2?b=new Se(n,n.nextSibling,this,t):c.type===1?b=new c.ctor(n,c.name,c.strings,this,t):c.type===6&&(b=new yt(n,this,t)),this._$AV.push(b),c=r[++l]}s!==(c==null?void 0:c.index)&&(n=he.nextNode(),s++)}return he.currentNode=pe,o}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++}},Se=class i{get _$AU(){var t,e;return(e=(t=this._$AM)==null?void 0:t._$AU)!=null?e:this.v}constructor(t,e,r,o){var n;this.type=2,this._$AH=p,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=r,this.options=o,this.v=(n=o==null?void 0:o.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=ue(this,t,e),Xe(t)?t===p||t==null||t===""?(this._$AH!==p&&this._$AR(),this._$AH=p):t!==this._$AH&&t!==Y&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):ro(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!==p&&Xe(this._$AH)?this._$AA.nextSibling.data=t:this.T(pe.createTextNode(t)),this._$AH=t}$(t){var n;let{values:e,_$litType$:r}=t,o=typeof r=="number"?this._$AC(t):(r.el===void 0&&(r.el=Ze.createElement(io(r.h,r.h[0]),this.options)),r);if(((n=this._$AH)==null?void 0:n._$AD)===o)this._$AH.p(e);else{let s=new gt(o,this),l=s.u(this.options);s.p(e),this.T(l),this._$AH=s}}_$AC(t){let e=eo.get(t.strings);return e===void 0&&eo.set(t.strings,e=new Ze(t)),e}k(t){er(this._$AH)||(this._$AH=[],this._$AR());let e=this._$AH,r,o=0;for(let n of t)o===e.length?e.push(r=new i(this.O(Ye()),this.O(Ye()),this,this.options)):r=e[o],r._$AI(n),o++;o<e.length&&(this._$AR(r&&r._$AB.nextSibling,o),e.length=o)}_$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 o=t.nextSibling;t.remove(),t=o}}setConnected(t){var e;this._$AM===void 0&&(this.v=t,(e=this._$AP)==null||e.call(this,t))}},ge=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,r,o,n){this.type=1,this._$AH=p,this._$AN=void 0,this.element=t,this.name=e,this._$AM=o,this.options=n,r.length>2||r[0]!==""||r[1]!==""?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=p}_$AI(t,e=this,r,o){let n=this.strings,s=!1;if(n===void 0)t=ue(this,t,e,0),s=!Xe(t)||t!==this._$AH&&t!==Y,s&&(this._$AH=t);else{let l=t,c,f;for(t=n[0],c=0;c<n.length-1;c++)f=ue(this,l[r+c],e,c),f===Y&&(f=this._$AH[c]),s||(s=!Xe(f)||f!==this._$AH[c]),f===p?t=p:t!==p&&(t+=(f!=null?f:"")+n[c+1]),this._$AH[c]=f}s&&!o&&this.j(t)}j(t){t===p?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t!=null?t:"")}},bt=class extends ge{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===p?void 0:t}},ft=class extends ge{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==p)}},vt=class extends ge{constructor(t,e,r,o,n){super(t,e,r,o,n),this.type=5}_$AI(t,e=this){var s;if((t=(s=ue(this,t,e,0))!=null?s:p)===Y)return;let r=this._$AH,o=t===p&&r!==p||t.capture!==r.capture||t.once!==r.once||t.passive!==r.passive,n=t!==p&&(r===p||o);o&&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)}},yt=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){ue(this,t)}},no={M:Qt,P:F,A:Jt,C:1,L:so,R:gt,D:ro,V:ue,I:Se,H:ge,N:ft,U:vt,B:bt,F:yt},Kt=Fe.litHtmlPolyfillSupport,to;Kt==null||Kt(Ze,Se),((to=Fe.litHtmlVersions)!=null?to:Fe.litHtmlVersions=[]).push("3.2.0");var ao=(i,t,e)=>{var n,s;let r=(n=e==null?void 0:e.renderBefore)!=null?n:t,o=r._$litPart$;if(o===void 0){let l=(s=e==null?void 0:e.renderBefore)!=null?s:null;r._$litPart$=o=new Se(t.insertBefore(Ye(),l),l,void 0,e!=null?e:{})}return o._$AI(i),o};var D=class extends B{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=ao(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 Y}},lo;D._$litElement$=!0,D.finalized=!0,(lo=globalThis.litElementHydrateSupport)==null||lo.call(globalThis,{LitElement:D});var rr=globalThis.litElementPolyfillSupport;rr==null||rr({LitElement:D});var co;((co=globalThis.litElementVersions)!=null?co:globalThis.litElementVersions=[]).push("4.1.0");var mo=h`
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 xt=class extends D{static register(t){customElements.get(t)||customElements.define(t,this)}};xt.styles=[lo];var co=xt;var g=co;var Q=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 Ie=class{constructor(t,e,r,o){var n;if(this.subscribe=!1,this.provided=!1,this.value=void 0,this.t=(s,l)=>{this.unsubscribe&&(this.unsubscribe!==l&&(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,l)),this.unsubscribe=l},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=o!=null?o:!1;this.host.addController(this)}hostConnected(){this.dispatchRequest()}hostDisconnected(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=void 0)}dispatchRequest(){this.host.dispatchEvent(new Q(this.context,this.t,this.subscribe))}};var Et=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:o}=this.subscriptions.get(t);t(this.value,o)}clearCallbacks(){this.subscriptions.clear()}};var or=class extends Event{constructor(t){super("context-provider",{bubbles:!0,composed:!0}),this.context=t}},Ne=class extends Et{constructor(t,e,r){var o,n;super(e.context!==void 0?e.initialValue:r),this.onContextRequest=s=>{let l=s.composedPath()[0];s.context===this.context&&l!==this.host&&(s.stopPropagation(),this.addCallback(s.callback,l,s.subscribe))},this.onProviderRequest=s=>{let l=s.composedPath()[0];if(s.context!==this.context||l===this.host)return;let c=new Set;for(let[b,{consumerHost:f}]of this.subscriptions)c.has(b)||(c.add(b),f.dispatchEvent(new Q(this.context,b,!0)));s.stopPropagation()},this.host=t,e.context!==void 0?this.context=e.context:this.context=e,this.attachListeners(),(n=(o=this.host).addController)==null||n.call(o,this)}attachListeners(){this.host.addEventListener("context-request",this.onContextRequest),this.host.addEventListener("context-provider",this.onProviderRequest)}hostConnected(){this.host.dispatchEvent(new or(this.context))}};var Fi=h`
13
+ `;var xt=class extends D{static register(t){customElements.get(t)||customElements.define(t,this)}};xt.styles=[mo];var ho=xt;var g=ho;var Q=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 Ie=class{constructor(t,e,r,o){var n;if(this.subscribe=!1,this.provided=!1,this.value=void 0,this.t=(s,l)=>{this.unsubscribe&&(this.unsubscribe!==l&&(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,l)),this.unsubscribe=l},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=o!=null?o:!1;this.host.addController(this)}hostConnected(){this.dispatchRequest()}hostDisconnected(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=void 0)}dispatchRequest(){this.host.dispatchEvent(new Q(this.context,this.t,this.subscribe))}};var Et=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:o}=this.subscriptions.get(t);t(this.value,o)}clearCallbacks(){this.subscriptions.clear()}};var or=class extends Event{constructor(t){super("context-provider",{bubbles:!0,composed:!0}),this.context=t}},Ne=class extends Et{constructor(t,e,r){var o,n;super(e.context!==void 0?e.initialValue:r),this.onContextRequest=s=>{let l=s.composedPath()[0];s.context===this.context&&l!==this.host&&(s.stopPropagation(),this.addCallback(s.callback,l,s.subscribe))},this.onProviderRequest=s=>{let l=s.composedPath()[0];if(s.context!==this.context||l===this.host)return;let c=new Set;for(let[f,{consumerHost:b}]of this.subscriptions)c.has(f)||(c.add(f),b.dispatchEvent(new Q(this.context,f,!0)));s.stopPropagation()},this.host=t,e.context!==void 0?this.context=e.context:this.context=e,this.attachListeners(),(n=(o=this.host).addController)==null||n.call(o,this)}attachListeners(){this.host.addEventListener("context-request",this.onContextRequest),this.host.addEventListener("context-provider",this.onProviderRequest)}hostConnected(){this.host.dispatchEvent(new or(this.context))}};var Yi=h`
14
14
  :host {
15
15
  display: contents;
16
16
  }
17
- `,ho=Fi;var Tt=class extends g{constructor({context:t,initialValue:e}){super(),this.context=new Ne(this,{context:t,initialValue:e})}render(){return this.updateContext(),m`<slot></slot>`}};Tt.styles=[...g.styles,ho];var po=Tt;var ke=po;var _t=class{constructor(t){this.themeclass=t}};_t.context=pt;var At=_t;var Yi=h`
17
+ `,uo=Yi;var Tt=class extends g{constructor({context:t,initialValue:e}){super(),this.context=new Ne(this,{context:t,initialValue:e})}render(){return this.updateContext(),m`<slot></slot>`}};Tt.styles=[...g.styles,uo];var go=Tt;var ke=go;var _t=class{constructor(t){this.themeclass=t}};_t.context=pt;var At=_t;var Xi=h`
18
18
  :host {
19
19
  --mdc-themeprovider-color-default: var(--mds-color-theme-text-primary-normal);
20
20
  --mdc-themeprovider-font-family: var(--mds-font-family-primary);
@@ -31,7 +31,7 @@
31
31
 
32
32
  font-feature-settings: var(--mdc-themeprovider-font-feature-settings);
33
33
  }
34
- `,uo=[Yi];var Ce=class extends ke{constructor(){super({context:At.context,initialValue:new At(jt.THEMECLASS)});this.themeclass=jt.THEMECLASS}static get Context(){return At.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(" "))}};Ce.styles=[...ke.styles,...uo],a([w()],Ce.prototype,"currentThemeClass",2),a([d({type:String})],Ce.prototype,"themeclass",2);var ir=Ce;ir.register(pt);var Xi=ir;var E=h`
34
+ `,bo=[Xi];var Ce=class extends ke{constructor(){super({context:At.context,initialValue:new At(jt.THEMECLASS)});this.themeclass=jt.THEMECLASS}static get Context(){return At.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(" "))}};Ce.styles=[...ke.styles,...bo],a([w()],Ce.prototype,"currentThemeClass",2),a([d({type:String})],Ce.prototype,"themeclass",2);var ir=Ce;ir.register(pt);var Zi=ir;var E=h`
35
35
  :host {
36
36
  align-items: center;
37
37
  display: flex;
@@ -89,7 +89,7 @@
89
89
  outline: 0.125rem solid var(--mds-color-theme-focus-default-0);
90
90
  }
91
91
  }
92
- `]};var Zi=[E,h`
92
+ `]};var qi=[E,h`
93
93
  :host {
94
94
  --mdc-icon-fill-color: currentColor;
95
95
  --mdc-icon-size: var(--computed-icon-size);
@@ -104,7 +104,7 @@
104
104
  width: 100%;
105
105
  fill: var(--mdc-icon-fill-color);
106
106
  }
107
- `,...S()],go=Zi;var qi=i=>{let{host:t,context:e,subscribe:r}=i;return new Ie(t,{context:e,subscribe:r!=null?r:!0})},ji={consume:qi},fo=ji;var St=u.constructTagName("iconprovider"),bo=["svg"],vo=["em","rem","px","%"],Wi={px:16,em:1,rem:1,"%":100},X={FILE_EXTENSION:"svg",LENGTH_UNIT:"em",SIZE:Wi.em,SHOULD_CACHE:!1};var It=class{constructor(){this.iconsCache=new Map}};It.context=St;var Nt=It;var J=class extends ke{constructor(){super({context:Nt.context,initialValue:new Nt});this.fileExtension=X.FILE_EXTENSION;this.lengthUnit=X.LENGTH_UNIT;this.size=X.SIZE;this.shouldCache=X.SHOULD_CACHE}static get Context(){return Nt.context}updateValuesInContext(){this.fileExtension&&bo.includes(this.fileExtension)?this.context.value.fileExtension=this.fileExtension:(this.fileExtension=X.FILE_EXTENSION,this.context.value.fileExtension=X.FILE_EXTENSION),this.context.value.url=this.url,this.context.value.size=this.size,this.context.value.shouldCache=this.shouldCache,this.lengthUnit&&vo.includes(this.lengthUnit)?this.context.value.lengthUnit=this.lengthUnit:(this.lengthUnit=X.LENGTH_UNIT,this.context.value.lengthUnit=X.LENGTH_UNIT)}updateContext(){(this.context.value.fileExtension!==this.fileExtension||this.context.value.url!==this.url||this.context.value.lengthUnit!==this.lengthUnit||this.context.value.size!==this.size||this.context.value.shouldCache!==this.shouldCache)&&(this.updateValuesInContext(),this.context.updateObservers())}};a([d({type:String})],J.prototype,"url",2),a([d({type:String,attribute:"file-extension",reflect:!0})],J.prototype,"fileExtension",2),a([d({type:String,attribute:"length-unit",reflect:!0})],J.prototype,"lengthUnit",2),a([d({type:Number,reflect:!0})],J.prototype,"size",2),a([d({type:Boolean,attribute:"should-cache",reflect:!0})],J.prototype,"shouldCache",2);var qe=J;var yo=async(i,t,e,r)=>{let o=await fetch(`${i}/${t}.${e}`,{signal:r});if(!o.ok)throw new Error("There was a problem while fetching the icon!");return o.text()};var xo=u.constructTagName("icon"),sr={NAME:void 0,SIZE:1};var M=class extends g{constructor(){super();this.name=sr.NAME;this.ariaLabel=null;this.iconProviderContext=fo.consume({host:this,context:qe.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:e,url:r,iconsCache:o,shouldCache:n}=this.iconProviderContext.value;if(r&&e&&this.name){if(this.abortController.abort(),o.has(this.name)){let s=this.prepareIconElement(o.get(this.name));this.handleIconLoadedSuccess(s);return}this.abortController=new AbortController;try{let s=await yo(r,this.name,e,this.abortController.signal),l=this.prepareIconElement(s);this.handleIconLoadedSuccess(l),n&&o.set(this.name,s)}catch(s){this.handleIconLoadedFailure(s)}}}}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:sr.SIZE}updated(e){var r,o,n,s;super.updated(e),e.has("name")&&this.getIconData().catch(l=>{l.name!=="AbortError"&&this.onerror&&this.onerror(l)}),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=(o=this.iconProviderContext.value)==null?void 0:o.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 m` ${this.iconData} `}};M.styles=[...g.styles,...go],a([w()],M.prototype,"iconData",2),a([w()],M.prototype,"lengthUnitFromContext",2),a([w()],M.prototype,"sizeFromContext",2),a([d({type:String,reflect:!0})],M.prototype,"name",2),a([d({type:Number})],M.prototype,"size",2),a([d({type:String,attribute:"length-unit"})],M.prototype,"lengthUnit",2),a([d({type:String,attribute:"aria-label"})],M.prototype,"ariaLabel",2),a([w()],M.prototype,"abortController",2);var nr=M;nr.register(xo);var Ki=nr;qe.register(St);var Qi=qe;var y=i=>i!=null?i:p;var Eo=u.constructTagName("avatar"),z={COUNTER:"counter",ICON:"icon",PHOTO:"photo",TEXT:"text"},ar=99,Ji="user-regular",x={24:24,32:32,48:48,64:64,72:72,88:88,124:124},ze={TYPE:z.PHOTO,SIZE:x[32],ICON_NAME:Ji};var kt=i=>{class t extends i{constructor(){super(...arguments);this.size=ze.SIZE;this.isTyping=!1}}return a([d({type:String})],t.prototype,"src",2),a([d({type:String})],t.prototype,"initials",2),a([d({type:String})],t.prototype,"presence",2),a([d({type:Number,reflect:!0,attribute:"size"})],t.prototype,"size",2),a([d({type:Number})],t.prototype,"counter",2),a([d({type:Boolean,attribute:"is-typing"})],t.prototype,"isTyping",2),t};var P=i=>{class t extends i{}return a([d({type:String,attribute:"icon-name"})],t.prototype,"iconName",2),t};var es=[E,h`
107
+ `,...S()],fo=qi;var ji=i=>{let{host:t,context:e,subscribe:r}=i;return new Ie(t,{context:e,subscribe:r!=null?r:!0})},Wi={consume:ji},vo=Wi;var St=u.constructTagName("iconprovider"),yo=["svg"],xo=["em","rem","px","%"],Ki={px:16,em:1,rem:1,"%":100},X={FILE_EXTENSION:"svg",LENGTH_UNIT:"em",SIZE:Ki.em,SHOULD_CACHE:!1};var It=class{constructor(){this.iconsCache=new Map}};It.context=St;var Nt=It;var J=class extends ke{constructor(){super({context:Nt.context,initialValue:new Nt});this.fileExtension=X.FILE_EXTENSION;this.lengthUnit=X.LENGTH_UNIT;this.size=X.SIZE;this.shouldCache=X.SHOULD_CACHE}static get Context(){return Nt.context}updateValuesInContext(){this.fileExtension&&yo.includes(this.fileExtension)?this.context.value.fileExtension=this.fileExtension:(this.fileExtension=X.FILE_EXTENSION,this.context.value.fileExtension=X.FILE_EXTENSION),this.context.value.url=this.url,this.context.value.size=this.size,this.context.value.shouldCache=this.shouldCache,this.lengthUnit&&xo.includes(this.lengthUnit)?this.context.value.lengthUnit=this.lengthUnit:(this.lengthUnit=X.LENGTH_UNIT,this.context.value.lengthUnit=X.LENGTH_UNIT)}updateContext(){(this.context.value.fileExtension!==this.fileExtension||this.context.value.url!==this.url||this.context.value.lengthUnit!==this.lengthUnit||this.context.value.size!==this.size||this.context.value.shouldCache!==this.shouldCache)&&(this.updateValuesInContext(),this.context.updateObservers())}};a([d({type:String})],J.prototype,"url",2),a([d({type:String,attribute:"file-extension",reflect:!0})],J.prototype,"fileExtension",2),a([d({type:String,attribute:"length-unit",reflect:!0})],J.prototype,"lengthUnit",2),a([d({type:Number,reflect:!0})],J.prototype,"size",2),a([d({type:Boolean,attribute:"should-cache",reflect:!0})],J.prototype,"shouldCache",2);var qe=J;var Eo=async(i,t,e,r)=>{let o=await fetch(`${i}/${t}.${e}`,{signal:r});if(!o.ok)throw new Error("There was a problem while fetching the icon!");return o.text()};var To=u.constructTagName("icon"),sr={NAME:void 0,SIZE:1};var M=class extends g{constructor(){super();this.name=sr.NAME;this.ariaLabel=null;this.iconProviderContext=vo.consume({host:this,context:qe.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:e,url:r,iconsCache:o,shouldCache:n}=this.iconProviderContext.value;if(r&&e&&this.name){if(this.abortController.abort(),o.has(this.name)){let s=this.prepareIconElement(o.get(this.name));this.handleIconLoadedSuccess(s);return}this.abortController=new AbortController;try{let s=await Eo(r,this.name,e,this.abortController.signal),l=this.prepareIconElement(s);this.handleIconLoadedSuccess(l),n&&o.set(this.name,s)}catch(s){this.handleIconLoadedFailure(s)}}}}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:sr.SIZE}updated(e){var r,o,n,s;super.updated(e),e.has("name")&&this.getIconData().catch(l=>{l.name!=="AbortError"&&this.onerror&&this.onerror(l)}),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=(o=this.iconProviderContext.value)==null?void 0:o.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 m` ${this.iconData} `}};M.styles=[...g.styles,...fo],a([w()],M.prototype,"iconData",2),a([w()],M.prototype,"lengthUnitFromContext",2),a([w()],M.prototype,"sizeFromContext",2),a([d({type:String,reflect:!0})],M.prototype,"name",2),a([d({type:Number})],M.prototype,"size",2),a([d({type:String,attribute:"length-unit"})],M.prototype,"lengthUnit",2),a([d({type:String,attribute:"aria-label"})],M.prototype,"ariaLabel",2),a([w()],M.prototype,"abortController",2);var nr=M;nr.register(To);var Qi=nr;qe.register(St);var Ji=qe;var y=i=>i!=null?i:p;var _o=u.constructTagName("avatar"),z={COUNTER:"counter",ICON:"icon",PHOTO:"photo",TEXT:"text"},ar=99,es="user-regular",x={24:24,32:32,48:48,64:64,72:72,88:88,124:124},ze={TYPE:z.PHOTO,SIZE:x[32],ICON_NAME:es};var kt=i=>{class t extends i{constructor(){super(...arguments);this.size=ze.SIZE;this.isTyping=!1}}return a([d({type:String})],t.prototype,"src",2),a([d({type:String})],t.prototype,"initials",2),a([d({type:String})],t.prototype,"presence",2),a([d({type:Number,reflect:!0,attribute:"size"})],t.prototype,"size",2),a([d({type:Number})],t.prototype,"counter",2),a([d({type:Boolean,attribute:"is-typing"})],t.prototype,"isTyping",2),t};var P=i=>{class t extends i{}return a([d({type:String,attribute:"icon-name"})],t.prototype,"iconName",2),t};var ts=[E,h`
108
108
  :host {
109
109
  --mdc-avatar-default-background-color: var(--mds-color-theme-avatar-default);
110
110
  --mdc-avatar-default-foreground-color: var(--mds-color-theme-common-text-primary-normal);
@@ -227,8 +227,8 @@
227
227
  outline: 0.125rem solid;
228
228
  }
229
229
  }
230
- `],To=es;var _o=u.constructTagName("presence"),k={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"},I={XX_SMALL:"xx_small",X_SMALL:"x_small",SMALL:"small",MIDSIZE:"midsize",LARGE:"large",X_LARGE:"x_large",XX_LARGE:"xx_large"},Re={TYPE:k.ACTIVE,SIZE:I.SMALL};var je=u.constructTagName("text"),_={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"},T={H1:"h1",H2:"h2",H3:"h3",H4:"h4",H5:"h5",H6:"h6",P:"p",SMALL:"small",SPAN:"span",DIV:"div"},L={TYPE:_.BODY_LARGE_REGULAR,TEXT_ELEMENT_TAGNAME:T.P,CSS_PART_TEXT:"text",CHILDREN:"The quick brown fox jumps over the lazy dog"};var Ao=i=>({[x[124]]:I.XX_LARGE,[x[88]]:I.X_LARGE,[x[72]]:I.LARGE,[x[64]]:I.MIDSIZE,[x[48]]:I.SMALL,[x[32]]:I.X_SMALL,[x[24]]:I.XX_SMALL})[i]||I.X_SMALL,So=i=>({[x[124]]:4.75,[x[88]]:3,[x[72]]:2.5,[x[64]]:2.25,[x[48]]:1.75,[x[32]]:1.25,[x[24]]:1})[i]||1.25,Io=i=>({[x[124]]:_.HEADING_XLARGE_MEDIUM,[x[88]]:_.HEADING_LARGE_MEDIUM,[x[72]]:_.HEADING_MIDSIZE_MEDIUM,[x[64]]:_.HEADING_SMALL_MEDIUM,[x[48]]:_.HEADING_SMALL_MEDIUM,[x[32]]:_.BODY_MIDSIZE_MEDIUM,[x[24]]:_.BODY_SMALL_MEDIUM})[i]||_.BODY_MIDSIZE_MEDIUM;var We=class extends kt(P(g)){constructor(){super(...arguments);this.isPhotoLoaded=!1}getPresenceTemplateBasedOnType(e){return e===z.COUNTER&&(this.counter||this.counter===0)?p:this.presence?m`
231
- <mdc-presence class="presence" type="${this.presence}" size="${Ao(this.size)}"></mdc-presence>
230
+ `],Ao=ts;var So=u.constructTagName("presence"),k={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"},I={XX_SMALL:"xx_small",X_SMALL:"x_small",SMALL:"small",MIDSIZE:"midsize",LARGE:"large",X_LARGE:"x_large",XX_LARGE:"xx_large"},Re={TYPE:k.ACTIVE,SIZE:I.SMALL};var je=u.constructTagName("text"),_={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"},T={H1:"h1",H2:"h2",H3:"h3",H4:"h4",H5:"h5",H6:"h6",P:"p",SMALL:"small",SPAN:"span",DIV:"div"},L={TYPE:_.BODY_LARGE_REGULAR,TEXT_ELEMENT_TAGNAME:T.P,CSS_PART_TEXT:"text",CHILDREN:"The quick brown fox jumps over the lazy dog"};var Io=i=>({[x[124]]:I.XX_LARGE,[x[88]]:I.X_LARGE,[x[72]]:I.LARGE,[x[64]]:I.MIDSIZE,[x[48]]:I.SMALL,[x[32]]:I.X_SMALL,[x[24]]:I.XX_SMALL})[i]||I.X_SMALL,No=i=>({[x[124]]:4.75,[x[88]]:3,[x[72]]:2.5,[x[64]]:2.25,[x[48]]:1.75,[x[32]]:1.25,[x[24]]:1})[i]||1.25,ko=i=>({[x[124]]:_.HEADING_XLARGE_MEDIUM,[x[88]]:_.HEADING_LARGE_MEDIUM,[x[72]]:_.HEADING_MIDSIZE_MEDIUM,[x[64]]:_.HEADING_SMALL_MEDIUM,[x[48]]:_.HEADING_SMALL_MEDIUM,[x[32]]:_.BODY_MIDSIZE_MEDIUM,[x[24]]:_.BODY_SMALL_MEDIUM})[i]||_.BODY_MIDSIZE_MEDIUM;var We=class extends kt(P(g)){constructor(){super(...arguments);this.isPhotoLoaded=!1}getPresenceTemplateBasedOnType(e){return e===z.COUNTER&&(this.counter||this.counter===0)?p:this.presence?m`
231
+ <mdc-presence class="presence" type="${this.presence}" size="${Io(this.size)}"></mdc-presence>
232
232
  `:p}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 m`
233
233
  <img
234
234
  class="photo"
@@ -242,11 +242,11 @@
242
242
  <mdc-icon
243
243
  name="${y(e)}"
244
244
  length-unit="rem"
245
- size="${So(this.size)}"
245
+ size="${No(this.size)}"
246
246
  ></mdc-icon>
247
247
  `}textTemplate(e){return m`
248
248
  <mdc-text
249
- type="${Io(this.size)}"
249
+ type="${ko(this.size)}"
250
250
  tagname="span"
251
251
  >
252
252
  ${e}
@@ -258,7 +258,7 @@
258
258
  ${this.getLoadingContent()}
259
259
  ${this.getPresenceTemplateBasedOnType(e)}
260
260
  </div>
261
- `}};We.styles=[...g.styles,...To],a([w()],We.prototype,"isPhotoLoaded",2);var lr=We;var ts=[E,h`
261
+ `}};We.styles=[...g.styles,...Ao],a([w()],We.prototype,"isPhotoLoaded",2);var lr=We;var rs=[E,h`
262
262
  :host {
263
263
  --mdc-presence-active-background-color: var(--mds-color-theme-indicator-stable);
264
264
  --mdc-presence-away-background-color: var(--mds-color-theme-indicator-locked);
@@ -352,7 +352,7 @@
352
352
  .mdc-presence-icon__scheduled {
353
353
  color: var(--mdc-presence-scheduled-background-color);
354
354
  }
355
- `],No=ts;var ko=i=>{switch(i){case k.AWAY:return"recents-presence-badge-filled";case k.AWAY_CALLING:return"away-calling-presence-filled";case k.BUSY:return"busy-presence-bold";case k.DND:return"dnd-presence-badge-filled";case k.MEETING:return"camera-filled";case k.ON_CALL:return"handset-filled";case k.ON_DEVICE:return"generic-device-video-badge-filled";case k.ON_MOBILE:return"phone-badge-filled";case k.PAUSE:return"pause-badge-filled";case k.PTO:return"pto-presence-filled";case k.PRESENTING:return"share-screen-badge-filled";case k.QUIET:return"quiet-hours-presence-filled";case k.SCHEDULED:return"meetings-presence-badge-filled";case k.ACTIVE:default:return"active-presence-small-filled"}};var fe=class extends g{constructor(){super(...arguments);this.type=Re.TYPE;this.size=Re.SIZE;this.currentIconType=Re.TYPE}get iconSize(){switch(this.size){case I.MIDSIZE:return 1.16125;case I.LARGE:return 1.30625;case I.X_LARGE:return 1.596875;case I.XX_LARGE:return 2.25;case I.XX_SMALL:case I.X_SMALL:case I.SMALL:default:return this.size=Re.SIZE,.875}}get icon(){let e=ko(this.type);return e==="active-presence-small-filled"&&(this.type=Re.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 m`
355
+ `],Co=rs;var zo=i=>{switch(i){case k.AWAY:return"recents-presence-badge-filled";case k.AWAY_CALLING:return"away-calling-presence-filled";case k.BUSY:return"busy-presence-bold";case k.DND:return"dnd-presence-badge-filled";case k.MEETING:return"camera-filled";case k.ON_CALL:return"handset-filled";case k.ON_DEVICE:return"generic-device-video-badge-filled";case k.ON_MOBILE:return"phone-badge-filled";case k.PAUSE:return"pause-badge-filled";case k.PTO:return"pto-presence-filled";case k.PRESENTING:return"share-screen-badge-filled";case k.QUIET:return"quiet-hours-presence-filled";case k.SCHEDULED:return"meetings-presence-badge-filled";case k.ACTIVE:default:return"active-presence-small-filled"}};var be=class extends g{constructor(){super(...arguments);this.type=Re.TYPE;this.size=Re.SIZE;this.currentIconType=Re.TYPE}get iconSize(){switch(this.size){case I.MIDSIZE:return 1.16125;case I.LARGE:return 1.30625;case I.X_LARGE:return 1.596875;case I.XX_LARGE:return 2.25;case I.XX_SMALL:case I.X_SMALL:case I.SMALL:default:return this.size=Re.SIZE,.875}}get icon(){let e=zo(this.type);return e==="active-presence-small-filled"&&(this.type=Re.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 m`
356
356
  <div class="mdc-presence mdc-presence__${this.size}">
357
357
  <mdc-icon
358
358
  class="mdc-presence-icon mdc-presence-icon__${this.currentIconType}"
@@ -362,7 +362,7 @@
362
362
  @error="${this.handleOnError}"
363
363
  ></mdc-icon>
364
364
  </div>
365
- `}};fe.styles=[...g.styles,...No],a([d({type:String,reflect:!0})],fe.prototype,"type",2),a([d({type:String,reflect:!0})],fe.prototype,"size",2),a([w()],fe.prototype,"currentIconType",2);var dr=fe;dr.register(_o);var rs=dr;var Co=h`
365
+ `}};be.styles=[...g.styles,...Co],a([d({type:String,reflect:!0})],be.prototype,"type",2),a([d({type:String,reflect:!0})],be.prototype,"size",2),a([w()],be.prototype,"currentIconType",2);var dr=be;dr.register(So);var os=dr;var Ro=h`
366
366
  :host::part(text) {
367
367
  font-size: unset;
368
368
  font-weight: unset;
@@ -605,14 +605,14 @@
605
605
  text-decoration: var(--mds-font-apps-body-small-regular-text-decoration);
606
606
  text-transform: var(--mds-font-apps-body-small-regular-text-case);
607
607
  }
608
- `;var os=[h`
608
+ `;var is=[h`
609
609
  :host {
610
610
  --mdc-text-font-family: var(--mdc-themeprovider-font-family);
611
611
 
612
612
  display: block;
613
613
  font-family: var(--mdc-text-font-family);
614
614
  }
615
- `,Co],zo=os;var we=class extends g{constructor(){super(...arguments);this.type=L.TYPE;this.tagname=L.TEXT_ELEMENT_TAGNAME}render(){switch(this.tagname){case T.H1:return m`<h1 part=${L.CSS_PART_TEXT}><slot></slot></h1>`;case T.H2:return m`<h2 part=${L.CSS_PART_TEXT}><slot></slot></h2>`;case T.H3:return m`<h3 part=${L.CSS_PART_TEXT}><slot></slot></h3>`;case T.H4:return m`<h4 part=${L.CSS_PART_TEXT}><slot></slot></h4>`;case T.H5:return m`<h5 part=${L.CSS_PART_TEXT}><slot></slot></h5>`;case T.H6:return m`<h6 part=${L.CSS_PART_TEXT}><slot></slot></h6>`;case T.DIV:return m`<div part=${L.CSS_PART_TEXT}><slot></slot></div>`;case T.SPAN:return m`<span part=${L.CSS_PART_TEXT}><slot></slot></span>`;case T.SMALL:return m`<small part=${L.CSS_PART_TEXT}><slot></slot></small>`;case T.P:default:return m`<p part=${L.CSS_PART_TEXT}><slot></slot></p>`}}};we.styles=[...g.styles,...zo],a([d({attribute:"type",reflect:!0,type:String})],we.prototype,"type",2),a([d({attribute:"tagname",reflect:!0,type:String})],we.prototype,"tagname",2);var cr=we;cr.register(je);var is=cr;lr.register(Eo);var ss=lr;var Ct={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},Ke=i=>(...t)=>({_$litDirective$:i,values:t}),Le=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 zt=Ke(class extends Le{constructor(i){var t;if(super(i),i.type!==Ct.ATTRIBUTE||i.name!=="class"||((t=i.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(i){return" "+Object.keys(i).filter(t=>i[t]).join(" ")+" "}update(i,[t]){var r,o;if(this.st===void 0){this.st=new Set,i.strings!==void 0&&(this.nt=new Set(i.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=i.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)||(o=this.nt)!=null&&o.has(n)||(s?(e.add(n),this.st.add(n)):(e.remove(n),this.st.delete(n)))}return Y}});var Ro=u.constructTagName("badge"),Z={DOT:"dot",ICON:"icon",COUNTER:"counter",SUCCESS:"success",WARNING:"warning",ERROR:"error"},Rt={SUCCESS_ICON_NAME:"check-circle-badge-filled",WARNING_ICON_NAME:"warning-badge-filled",ERROR_ICON_NAME:"error-legacy-badge-filled"},wt={PRIMARY:"primary",SECONDARY:"secondary"},Qe={SUCCESS:"success",WARNING:"warning",ERROR:"error"},pc={...wt,...Qe},ee={TYPE:Z.DOT,MAX_COUNTER:99,MAX_COUNTER_LIMIT:999,VARIANT:wt.PRIMARY,ICON_SIZE:1};var ns=[E,h`
615
+ `,Ro],wo=is;var we=class extends g{constructor(){super(...arguments);this.type=L.TYPE;this.tagname=L.TEXT_ELEMENT_TAGNAME}render(){switch(this.tagname){case T.H1:return m`<h1 part=${L.CSS_PART_TEXT}><slot></slot></h1>`;case T.H2:return m`<h2 part=${L.CSS_PART_TEXT}><slot></slot></h2>`;case T.H3:return m`<h3 part=${L.CSS_PART_TEXT}><slot></slot></h3>`;case T.H4:return m`<h4 part=${L.CSS_PART_TEXT}><slot></slot></h4>`;case T.H5:return m`<h5 part=${L.CSS_PART_TEXT}><slot></slot></h5>`;case T.H6:return m`<h6 part=${L.CSS_PART_TEXT}><slot></slot></h6>`;case T.DIV:return m`<div part=${L.CSS_PART_TEXT}><slot></slot></div>`;case T.SPAN:return m`<span part=${L.CSS_PART_TEXT}><slot></slot></span>`;case T.SMALL:return m`<small part=${L.CSS_PART_TEXT}><slot></slot></small>`;case T.P:default:return m`<p part=${L.CSS_PART_TEXT}><slot></slot></p>`}}};we.styles=[...g.styles,...wo],a([d({attribute:"type",reflect:!0,type:String})],we.prototype,"type",2),a([d({attribute:"tagname",reflect:!0,type:String})],we.prototype,"tagname",2);var cr=we;cr.register(je);var ss=cr;lr.register(_o);var ns=lr;var Ct={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},Ke=i=>(...t)=>({_$litDirective$:i,values:t}),Le=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 zt=Ke(class extends Le{constructor(i){var t;if(super(i),i.type!==Ct.ATTRIBUTE||i.name!=="class"||((t=i.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(i){return" "+Object.keys(i).filter(t=>i[t]).join(" ")+" "}update(i,[t]){var r,o;if(this.st===void 0){this.st=new Set,i.strings!==void 0&&(this.nt=new Set(i.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=i.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)||(o=this.nt)!=null&&o.has(n)||(s?(e.add(n),this.st.add(n)):(e.remove(n),this.st.delete(n)))}return Y}});var Lo=u.constructTagName("badge"),Z={DOT:"dot",ICON:"icon",COUNTER:"counter",SUCCESS:"success",WARNING:"warning",ERROR:"error"},Rt={SUCCESS_ICON_NAME:"check-circle-badge-filled",WARNING_ICON_NAME:"warning-badge-filled",ERROR_ICON_NAME:"error-legacy-badge-filled"},wt={PRIMARY:"primary",SECONDARY:"secondary"},Qe={SUCCESS:"success",WARNING:"warning",ERROR:"error"},pc={...wt,...Qe},ee={TYPE:Z.DOT,MAX_COUNTER:99,MAX_COUNTER_LIMIT:999,VARIANT:wt.PRIMARY,ICON_SIZE:1};var as=[E,h`
616
616
  :host {
617
617
  --mdc-badge-primary-foreground-color: var(--mds-color-theme-common-text-primary-normal);
618
618
  --mdc-badge-primary-background-color: var(--mds-color-theme-background-accent-normal);
@@ -681,7 +681,7 @@
681
681
  outline: 0.125rem solid;
682
682
  }
683
683
  }
684
- `],wo=ns;var U=class extends P(g){constructor(){super(...arguments);this.variant=ee.VARIANT;this.maxCounter=ee.MAX_COUNTER;this.overlay=!1;this.ariaLabel=null}getCounterText(e,r){return r===void 0||typeof r!="number"||e===0?"":r>e?`${e}+`:e>ee.MAX_COUNTER_LIMIT||r>ee.MAX_COUNTER_LIMIT?`${ee.MAX_COUNTER_LIMIT}+`:r.toString()}getBadgeIcon(e,r){return m`
684
+ `],Mo=as;var U=class extends P(g){constructor(){super(...arguments);this.variant=ee.VARIANT;this.maxCounter=ee.MAX_COUNTER;this.overlay=!1;this.ariaLabel=null}getCounterText(e,r){return r===void 0||typeof r!="number"||e===0?"":r>e?`${e}+`:e>ee.MAX_COUNTER_LIMIT||r>ee.MAX_COUNTER_LIMIT?`${ee.MAX_COUNTER_LIMIT}+`:r.toString()}getBadgeIcon(e,r){return m`
685
685
  <mdc-icon
686
686
  class="mdc-badge-icon ${zt({"mdc-badge-overlay":this.overlay,[`mdc-badge-icon__${r}`]:!0})}"
687
687
  name="${y(e)}"
@@ -695,7 +695,7 @@
695
695
  >
696
696
  ${this.getCounterText(this.maxCounter,this.counter)}
697
697
  </mdc-text>
698
- `}setRoleByAriaLabel(){this.ariaLabel?this.role="img":this.role=null}getBadgeContentBasedOnType(){this.variant&&!Object.values(wt).includes(this.variant)&&(this.variant=ee.VARIANT);let{iconName:e,type:r,variant:o}=this;switch(r){case Z.ICON:return this.getBadgeIcon(e||"",o);case Z.COUNTER:return this.getBadgeCounterText();case Z.SUCCESS:return this.getBadgeIcon(Rt.SUCCESS_ICON_NAME,Qe.SUCCESS);case Z.WARNING:return this.getBadgeIcon(Rt.WARNING_ICON_NAME,Qe.WARNING);case Z.ERROR:return this.getBadgeIcon(Rt.ERROR_ICON_NAME,Qe.ERROR);case Z.DOT:default:return this.type=Z.DOT,this.getBadgeDot()}}update(e){super.update(e),e.has("ariaLabel")&&this.setRoleByAriaLabel()}render(){return this.getBadgeContentBasedOnType()}};U.styles=[...g.styles,...wo],a([d({type:String,reflect:!0})],U.prototype,"type",2),a([d({type:String,reflect:!0})],U.prototype,"variant",2),a([d({type:Number})],U.prototype,"counter",2),a([d({type:Number,attribute:"max-counter",reflect:!0})],U.prototype,"maxCounter",2),a([d({type:Boolean})],U.prototype,"overlay",2),a([d({type:String,attribute:"aria-label"})],U.prototype,"ariaLabel",2);var mr=U;mr.register(Ro);var as=mr;var Me=i=>{class t extends i{constructor(){super(...arguments);this.disabled=!1}}return a([d({reflect:!0,type:Boolean})],t.prototype,"disabled",2),t};var Lo=i=>{class t extends i{constructor(){super(...arguments);this.tabIndex=0}}return a([d({reflect:!0,type:Number})],t.prototype,"tabIndex",2),t};var Gc=u.constructTagName("buttonsimple"),ls={20:20,24:24,28:28,32:32,40:40,48:48,52:52,64:64,72:72,88:88,124:124},Oe={BUTTON:"button",SUBMIT:"submit",RESET:"reset"},Lt={SIZE:ls[32],TYPE:Oe.BUTTON,ROLE:"button"};var ds=[E,h`
698
+ `}setRoleByAriaLabel(){this.ariaLabel?this.role="img":this.role=null}getBadgeContentBasedOnType(){this.variant&&!Object.values(wt).includes(this.variant)&&(this.variant=ee.VARIANT);let{iconName:e,type:r,variant:o}=this;switch(r){case Z.ICON:return this.getBadgeIcon(e||"",o);case Z.COUNTER:return this.getBadgeCounterText();case Z.SUCCESS:return this.getBadgeIcon(Rt.SUCCESS_ICON_NAME,Qe.SUCCESS);case Z.WARNING:return this.getBadgeIcon(Rt.WARNING_ICON_NAME,Qe.WARNING);case Z.ERROR:return this.getBadgeIcon(Rt.ERROR_ICON_NAME,Qe.ERROR);case Z.DOT:default:return this.type=Z.DOT,this.getBadgeDot()}}update(e){super.update(e),e.has("ariaLabel")&&this.setRoleByAriaLabel()}render(){return this.getBadgeContentBasedOnType()}};U.styles=[...g.styles,...Mo],a([d({type:String,reflect:!0})],U.prototype,"type",2),a([d({type:String,reflect:!0})],U.prototype,"variant",2),a([d({type:Number})],U.prototype,"counter",2),a([d({type:Number,attribute:"max-counter",reflect:!0})],U.prototype,"maxCounter",2),a([d({type:Boolean})],U.prototype,"overlay",2),a([d({type:String,attribute:"aria-label"})],U.prototype,"ariaLabel",2);var mr=U;mr.register(Lo);var ls=mr;var Me=i=>{class t extends i{constructor(){super(...arguments);this.disabled=!1}}return a([d({reflect:!0,type:Boolean})],t.prototype,"disabled",2),t};var Oo=i=>{class t extends i{constructor(){super(...arguments);this.tabIndex=0}}return a([d({reflect:!0,type:Number})],t.prototype,"tabIndex",2),t};var Gc=u.constructTagName("buttonsimple"),ds={20:20,24:24,28:28,32:32,40:40,48:48,52:52,64:64,72:72,88:88,124:124},Oe={BUTTON:"button",SUBMIT:"submit",RESET:"reset"},Lt={SIZE:ds[32],TYPE:Oe.BUTTON,ROLE:"button"};var cs=[E,h`
699
699
  :host {
700
700
  border: 0.0625rem solid transparent;
701
701
  cursor: pointer;
@@ -751,9 +751,9 @@
751
751
  :host([size="20"]){
752
752
  height: var(--mdc-button-height-size-20);
753
753
  }
754
- `,...S()],Mo=ds;var V=class extends Lo(Me(g)){constructor(){super();this.active=!1;this.softDisabled=!1;this.size=Lt.SIZE;this.role=Lt.ROLE;this.type=Lt.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.internals=this.attachInternals()}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===Oe.SUBMIT&&this.internals.form&&this.internals.form.requestSubmit(),this.type===Oe.RESET&&this.internals.form&&this.internals.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)}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 m`
754
+ `,...S()],$o=cs;var V=class extends Oo(Me(g)){constructor(){super();this.active=!1;this.softDisabled=!1;this.size=Lt.SIZE;this.role=Lt.ROLE;this.type=Lt.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.internals=this.attachInternals()}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===Oe.SUBMIT&&this.internals.form&&this.internals.form.requestSubmit(),this.type===Oe.RESET&&this.internals.form&&this.internals.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)}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 m`
755
755
  <slot></slot>
756
- `}};V.formAssociated=!0,V.styles=[...g.styles,...Mo],a([d({type:Boolean,reflect:!0})],V.prototype,"active",2),a([d({type:Boolean,attribute:"soft-disabled"})],V.prototype,"softDisabled",2),a([d({type:Number,reflect:!0})],V.prototype,"size",2),a([d({type:String,reflect:!0})],V.prototype,"role",2),a([d({reflect:!0})],V.prototype,"type",2);var te=V;var Je=u.constructTagName("button"),be={PRIMARY:"primary",SECONDARY:"secondary",TERTIARY:"tertiary"},Mt={40:40,32:32,28:28,24:24},q={64:64,52:52,20:20,...Mt},hr={POSITIVE:"positive",NEGATIVE:"negative",ACCENT:"accent",PROMOTIONAL:"promotional",DEFAULT:"default"},$e={PILL:"pill",ICON:"icon",PILL_WITH_ICON:"pill-with-icon"},H={VARIANT:be.PRIMARY,SIZE:Mt[32],COLOR:hr.DEFAULT,TYPE_INTERNAL:$e.ICON,TYPE:Oe.BUTTON};var cs=h`
756
+ `}};V.formAssociated=!0,V.styles=[...g.styles,...$o],a([d({type:Boolean,reflect:!0})],V.prototype,"active",2),a([d({type:Boolean,attribute:"soft-disabled"})],V.prototype,"softDisabled",2),a([d({type:Number,reflect:!0})],V.prototype,"size",2),a([d({type:String,reflect:!0})],V.prototype,"role",2),a([d({reflect:!0})],V.prototype,"type",2);var te=V;var Je=u.constructTagName("button"),fe={PRIMARY:"primary",SECONDARY:"secondary",TERTIARY:"tertiary"},Mt={40:40,32:32,28:28,24:24},q={64:64,52:52,20:20,...Mt},hr={POSITIVE:"positive",NEGATIVE:"negative",ACCENT:"accent",PROMOTIONAL:"promotional",DEFAULT:"default"},$e={PILL:"pill",ICON:"icon",PILL_WITH_ICON:"pill-with-icon"},H={VARIANT:fe.PRIMARY,SIZE:Mt[32],COLOR:hr.DEFAULT,TYPE_INTERNAL:$e.ICON,TYPE:Oe.BUTTON};var ms=h`
757
757
  :host {
758
758
  background-color: transparent;
759
759
  border-radius: 1.25rem;
@@ -924,7 +924,7 @@
924
924
  --mdc-button-secondary-hover-background-color: var(--mds-color-theme-button-secondary-hover);
925
925
  --mdc-button-secondary-pressed-background-color: var(--mds-color-theme-button-secondary-pressed);
926
926
  }
927
- `,Oo=[cs];var $o=i=>{switch(i){case q[64]:return 2;case q[52]:return 1.75;case q[40]:return 1.25;default:return 1}},et=i=>{let t=i.split("-"),e=["bold","filled","regular","light"];return t.filter(r=>!e.includes(r)).join("-")};var O=class extends te{constructor(){super(...arguments);this.variant=H.VARIANT;this.size=H.SIZE;this.color=H.COLOR;this.role="button";this.typeInternal=H.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=`${et(this.prefixIcon)}-filled`),this.postfixIcon&&(this.prevPostfixIcon=this.postfixIcon,this.postfixIcon=`${et(this.postfixIcon)}-filled`)):(this.prevPrefixIcon&&(this.prefixIcon=this.prevPrefixIcon),this.prevPostfixIcon&&(this.postfixIcon=this.prevPostfixIcon))}setVariant(e){this.setAttribute("variant",Object.values(be).includes(e)?e:H.VARIANT)}setSize(e){let o=this.typeInternal===$e.ICON?Object.values(q).includes(e)&&!(e===q[20]&&this.variant!==be.TERTIARY):Object.values(Mt).includes(e);this.setAttribute("size",o?`${e}`:`${H.SIZE}`),this.iconSize=$o(e)}setColor(e){!Object.values(hr).includes(e)||this.variant===be.TERTIARY?this.setAttribute("color",`${H.COLOR}`):this.setAttribute("color",e)}inferButtonType(){var r,o;let e=(o=(r=this.shadowRoot)==null?void 0:r.querySelector("slot"))==null?void 0:o.assignedNodes().length;e&&(this.prefixIcon||this.postfixIcon)?(this.typeInternal=$e.PILL_WITH_ICON,this.setAttribute("data-btn-type","pill-with-icon")):!e&&(this.prefixIcon||this.postfixIcon)?(this.typeInternal=$e.ICON,this.setAttribute("data-btn-type","icon")):(this.typeInternal=$e.PILL,this.setAttribute("data-btn-type","pill"))}render(){return m`
927
+ `,Do=[ms];var Po=i=>{switch(i){case q[64]:return 2;case q[52]:return 1.75;case q[40]:return 1.25;default:return 1}},et=i=>{let t=i.split("-"),e=["bold","filled","regular","light"];return t.filter(r=>!e.includes(r)).join("-")};var O=class extends te{constructor(){super(...arguments);this.variant=H.VARIANT;this.size=H.SIZE;this.color=H.COLOR;this.role="button";this.typeInternal=H.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=`${et(this.prefixIcon)}-filled`),this.postfixIcon&&(this.prevPostfixIcon=this.postfixIcon,this.postfixIcon=`${et(this.postfixIcon)}-filled`)):(this.prevPrefixIcon&&(this.prefixIcon=this.prevPrefixIcon),this.prevPostfixIcon&&(this.postfixIcon=this.prevPostfixIcon))}setVariant(e){this.setAttribute("variant",Object.values(fe).includes(e)?e:H.VARIANT)}setSize(e){let o=this.typeInternal===$e.ICON?Object.values(q).includes(e)&&!(e===q[20]&&this.variant!==fe.TERTIARY):Object.values(Mt).includes(e);this.setAttribute("size",o?`${e}`:`${H.SIZE}`),this.iconSize=Po(e)}setColor(e){!Object.values(hr).includes(e)||this.variant===fe.TERTIARY?this.setAttribute("color",`${H.COLOR}`):this.setAttribute("color",e)}inferButtonType(){var r,o;let e=(o=(r=this.shadowRoot)==null?void 0:r.querySelector("slot"))==null?void 0:o.assignedNodes().length;e&&(this.prefixIcon||this.postfixIcon)?(this.typeInternal=$e.PILL_WITH_ICON,this.setAttribute("data-btn-type","pill-with-icon")):!e&&(this.prefixIcon||this.postfixIcon)?(this.typeInternal=$e.ICON,this.setAttribute("data-btn-type","icon")):(this.typeInternal=$e.PILL,this.setAttribute("data-btn-type","pill"))}render(){return m`
928
928
  ${this.prefixIcon?m`
929
929
  <mdc-icon
930
930
  name="${this.prefixIcon}"
@@ -940,7 +940,7 @@
940
940
  size=${this.iconSize}
941
941
  length-unit="rem">
942
942
  </mdc-icon>`:""}
943
- `}};O.styles=[...te.styles,...Oo],a([d({type:String,attribute:"prefix-icon",reflect:!0})],O.prototype,"prefixIcon",2),a([d({type:String,attribute:"postfix-icon",reflect:!0})],O.prototype,"postfixIcon",2),a([d({type:String})],O.prototype,"variant",2),a([d({type:Number})],O.prototype,"size",2),a([d({type:String})],O.prototype,"color",2),a([d({type:String,reflect:!0})],O.prototype,"role",2),a([w()],O.prototype,"typeInternal",2),a([w()],O.prototype,"iconSize",2);var pr=O;pr.register(Je);var ms=pr;var hs=h`
943
+ `}};O.styles=[...te.styles,...Do],a([d({type:String,attribute:"prefix-icon",reflect:!0})],O.prototype,"prefixIcon",2),a([d({type:String,attribute:"postfix-icon",reflect:!0})],O.prototype,"postfixIcon",2),a([d({type:String})],O.prototype,"variant",2),a([d({type:Number})],O.prototype,"size",2),a([d({type:String})],O.prototype,"color",2),a([d({type:String,reflect:!0})],O.prototype,"role",2),a([w()],O.prototype,"typeInternal",2),a([w()],O.prototype,"iconSize",2);var pr=O;pr.register(Je);var hs=pr;var ps=h`
944
944
  :host {
945
945
  --mdc-bullet-background-color: var(--mds-color-theme-outline-secondary-normal);
946
946
  --mdc-bullet-size-small: 0.25rem;
@@ -961,7 +961,7 @@
961
961
  :host([size="large"]) {
962
962
  height: var(--mdc-bullet-size-large);
963
963
  }
964
- `,Do=[hs];var Po=u.constructTagName("bullet"),Uo={SMALL:"small",MEDIUM:"medium",LARGE:"large"};var tt=class extends g{constructor(){super(...arguments);this.size=Uo.SMALL}};tt.styles=[...g.styles,...Do],a([d({type:String,reflect:!0})],tt.prototype,"size",2);var ur=tt;ur.register(Po);var ps=ur;var us=h`
964
+ `,Uo=[ps];var Vo=u.constructTagName("bullet"),Ho={SMALL:"small",MEDIUM:"medium",LARGE:"large"};var tt=class extends g{constructor(){super(...arguments);this.size=Ho.SMALL}};tt.styles=[...g.styles,...Uo],a([d({type:String,reflect:!0})],tt.prototype,"size",2);var ur=tt;ur.register(Vo);var us=ur;var gs=h`
965
965
  :host {
966
966
  --mdc-marker-width: 0.25rem;
967
967
  --mdc-marker-solid-background-color: var(--mds-color-theme-outline-secondary-normal);
@@ -986,7 +986,7 @@
986
986
  var(--mdc-marker-striped-background-color) 0.375rem
987
987
  );
988
988
  }
989
- `,Vo=[us];var Ho=u.constructTagName("marker"),Go={SOLID:"solid",STRIPED:"striped"};var rt=class extends g{constructor(){super(...arguments);this.variant=Go.SOLID}};rt.styles=[...g.styles,...Vo],a([d({type:String,reflect:!0})],rt.prototype,"variant",2);var gr=rt;gr.register(Ho);var gs=gr;var Bo=u.constructTagName("divider"),ot={HORIZONTAL:"horizontal",VERTICAL:"vertical"},fr={SOLID:"solid",GRADIENT:"gradient"},re={POSITIVE:"positive",NEGATIVE:"negative"},it={UP:"arrow-up-regular",DOWN:"arrow-down-regular",LEFT:"arrow-left-regular",RIGHT:"arrow-right-regular"},ve={ORIENTATION:ot.HORIZONTAL,VARIANT:fr.SOLID,ARROW_DIRECTION:re.NEGATIVE,BUTTON_DIRECTION:re.NEGATIVE};var fs=[E,h`
989
+ `,Go=[gs];var Bo=u.constructTagName("marker"),Fo={SOLID:"solid",STRIPED:"striped"};var rt=class extends g{constructor(){super(...arguments);this.variant=Fo.SOLID}};rt.styles=[...g.styles,...Go],a([d({type:String,reflect:!0})],rt.prototype,"variant",2);var gr=rt;gr.register(Bo);var bs=gr;var Yo=u.constructTagName("divider"),ot={HORIZONTAL:"horizontal",VERTICAL:"vertical"},br={SOLID:"solid",GRADIENT:"gradient"},re={POSITIVE:"positive",NEGATIVE:"negative"},it={UP:"arrow-up-regular",DOWN:"arrow-down-regular",LEFT:"arrow-left-regular",RIGHT:"arrow-right-regular"},ve={ORIENTATION:ot.HORIZONTAL,VARIANT:br.SOLID,ARROW_DIRECTION:re.NEGATIVE,BUTTON_DIRECTION:re.NEGATIVE};var fs=[E,h`
990
990
  :host {
991
991
  --mdc-divider-background-color: var(--mds-color-theme-outline-secondary-normal);
992
992
  --mdc-divider-width: 0.0625rem;
@@ -1130,18 +1130,18 @@
1130
1130
  font-size: var(--mdc-divider-text-size);
1131
1131
  line-height: var(--mdc-divider-text-line-height);
1132
1132
  }
1133
- `],Fo=fs;var oe=class extends g{constructor(){super();this.orientation=ve.ORIENTATION;this.variant=ve.VARIANT;this.arrowDirection=ve.ARROW_DIRECTION;this.buttonPosition=ve.BUTTON_DIRECTION;this.setAttribute("data-type","mdc-primary-divider")}setVariant(e){this.setAttribute("variant",Object.values(fr).includes(e)?e:ve.VARIANT)}setOrientation(e){this.setAttribute("orientation",Object.values(ot).includes(e)?e:ve.ORIENTATION)}ensureValidDirections(){let e=this.orientation===ot.HORIZONTAL?re.NEGATIVE:re.POSITIVE;Object.values(re).includes(this.buttonPosition)||(this.buttonPosition=e),Object.values(re).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===ot.HORIZONTAL,r=this.arrowDirection===re.POSITIVE;return e?r?it.UP:it.DOWN:r?it.RIGHT:it.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 o=r.some(l=>l.tagName===je.toUpperCase()),n=r.some(l=>l.tagName===Je.toUpperCase());o&&!n?this.setAttribute("data-type","mdc-text-divider"):!o&&n&&(this.setAttribute("data-type","mdc-grabber-divider"),this.setGrabberButton())}render(){return m`
1133
+ `],Xo=fs;var oe=class extends g{constructor(){super();this.orientation=ve.ORIENTATION;this.variant=ve.VARIANT;this.arrowDirection=ve.ARROW_DIRECTION;this.buttonPosition=ve.BUTTON_DIRECTION;this.setAttribute("data-type","mdc-primary-divider")}setVariant(e){this.setAttribute("variant",Object.values(br).includes(e)?e:ve.VARIANT)}setOrientation(e){this.setAttribute("orientation",Object.values(ot).includes(e)?e:ve.ORIENTATION)}ensureValidDirections(){let e=this.orientation===ot.HORIZONTAL?re.NEGATIVE:re.POSITIVE;Object.values(re).includes(this.buttonPosition)||(this.buttonPosition=e),Object.values(re).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===ot.HORIZONTAL,r=this.arrowDirection===re.POSITIVE;return e?r?it.UP:it.DOWN:r?it.RIGHT:it.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 o=r.some(l=>l.tagName===je.toUpperCase()),n=r.some(l=>l.tagName===Je.toUpperCase());o&&!n?this.setAttribute("data-type","mdc-text-divider"):!o&&n&&(this.setAttribute("data-type","mdc-grabber-divider"),this.setGrabberButton())}render(){return m`
1134
1134
  <div></div>
1135
1135
  <slot @slotchange=${this.inferDividerType}></slot>
1136
1136
  <div></div>
1137
- `}};oe.styles=[...g.styles,...Fo],a([d({type:String,reflect:!0})],oe.prototype,"orientation",2),a([d({type:String,reflect:!0})],oe.prototype,"variant",2),a([d({type:String,attribute:"arrow-direction",reflect:!0})],oe.prototype,"arrowDirection",2),a([d({type:String,attribute:"button-position",reflect:!0})],oe.prototype,"buttonPosition",2);var br=oe;br.register(Bo);var bs=br;var vs=[E,h`
1137
+ `}};oe.styles=[...g.styles,...Xo],a([d({type:String,reflect:!0})],oe.prototype,"orientation",2),a([d({type:String,reflect:!0})],oe.prototype,"variant",2),a([d({type:String,attribute:"arrow-direction",reflect:!0})],oe.prototype,"arrowDirection",2),a([d({type:String,attribute:"button-position",reflect:!0})],oe.prototype,"buttonPosition",2);var fr=oe;fr.register(Yo);var vs=fr;var ys=[E,h`
1138
1138
  :host {
1139
1139
  padding: unset;
1140
1140
  margin: unset;
1141
1141
  outline: none;
1142
1142
  border-radius: 0.25rem;
1143
1143
  }
1144
- `,...S()],Yo=vs;var st=class extends kt(P(te)){constructor(){super();this.ariaLabel=null;this.active=void 0,this.disabled=void 0,this.softDisabled=void 0,this.role="button",this.type=H.TYPE}update(e){super.update(e),e.has("size")&&this.setSize(this.size)}setSize(e){this.setAttribute("size",Object.values(x).includes(e)?`${e}`:ze.SIZE.toString())}render(){return m`
1144
+ `,...S()],Zo=ys;var st=class extends kt(P(te)){constructor(){super();this.ariaLabel=null;this.active=void 0,this.disabled=void 0,this.softDisabled=void 0,this.role="button",this.type=H.TYPE}update(e){super.update(e),e.has("size")&&this.setSize(this.size)}setSize(e){this.setAttribute("size",Object.values(x).includes(e)?`${e}`:ze.SIZE.toString())}render(){return m`
1145
1145
  <mdc-avatar
1146
1146
  slot="prefixIcon"
1147
1147
  ?is-typing="${this.isTyping}"
@@ -1152,7 +1152,7 @@
1152
1152
  size="${y(this.size)}"
1153
1153
  src="${y(this.src)}"
1154
1154
  ></mdc-avatar>
1155
- `}};st.styles=[...Yo],a([d({type:String,attribute:"aria-label"})],st.prototype,"ariaLabel",2);var vr=st;var Xo=u.constructTagName("avatarbutton");vr.register(Xo);var ys=vr;var xs=[h`
1155
+ `}};st.styles=[...Zo],a([d({type:String,attribute:"aria-label"})],st.prototype,"ariaLabel",2);var vr=st;var qo=u.constructTagName("avatarbutton");vr.register(qo);var xs=vr;var Es=[h`
1156
1156
  :host{
1157
1157
  --mdc-input-disabled-border-color: var(--mds-color-theme-outline-primary-disabled);
1158
1158
  --mdc-input-disabled-text-color: var(--mds-color-theme-text-primary-disabled);
@@ -1267,7 +1267,7 @@
1267
1267
  opacity: 0;
1268
1268
  pointer-events: none;
1269
1269
  }
1270
- `,...S(!0)],Zo=xs;var N=[];for(let i=0;i<256;++i)N.push((i+256).toString(16).slice(1));function qo(i,t=0){return(N[i[t+0]]+N[i[t+1]]+N[i[t+2]]+N[i[t+3]]+"-"+N[i[t+4]]+N[i[t+5]]+"-"+N[i[t+6]]+N[i[t+7]]+"-"+N[i[t+8]]+N[i[t+9]]+"-"+N[i[t+10]]+N[i[t+11]]+N[i[t+12]]+N[i[t+13]]+N[i[t+14]]+N[i[t+15]]).toLowerCase()}var yr,Es=new Uint8Array(16);function xr(){if(!yr){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");yr=crypto.getRandomValues.bind(crypto)}return yr(Es)}var Ts=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),Er={randomUUID:Ts};function _s(i,t,e){var o,n,s;if(Er.randomUUID&&!t&&!i)return Er.randomUUID();i=i||{};let r=(s=(n=i.random)!=null?n:(o=i.rng)==null?void 0:o.call(i))!=null?s:xr();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 l=0;l<16;++l)t[e+l]=r[l];return t}return qo(r)}var Tr=_s;var As=[E,h`
1270
+ `,...S(!0)],jo=Es;var N=[];for(let i=0;i<256;++i)N.push((i+256).toString(16).slice(1));function Wo(i,t=0){return(N[i[t+0]]+N[i[t+1]]+N[i[t+2]]+N[i[t+3]]+"-"+N[i[t+4]]+N[i[t+5]]+"-"+N[i[t+6]]+N[i[t+7]]+"-"+N[i[t+8]]+N[i[t+9]]+"-"+N[i[t+10]]+N[i[t+11]]+N[i[t+12]]+N[i[t+13]]+N[i[t+14]]+N[i[t+15]]).toLowerCase()}var yr,Ts=new Uint8Array(16);function xr(){if(!yr){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");yr=crypto.getRandomValues.bind(crypto)}return yr(Ts)}var _s=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),Er={randomUUID:_s};function As(i,t,e){var o,n,s;if(Er.randomUUID&&!t&&!i)return Er.randomUUID();i=i||{};let r=(s=(n=i.random)!=null?n:(o=i.rng)==null?void 0:o.call(i))!=null?s:xr();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 l=0;l<16;++l)t[e+l]=r[l];return t}return Wo(r)}var Tr=As;var Ss=[E,h`
1271
1271
  :host {
1272
1272
  flex-direction: column;
1273
1273
  align-items: flex-start;
@@ -1316,7 +1316,7 @@
1316
1316
  :host([help-text-type='priority']) .mdc-help-text {
1317
1317
  color: var(--mds-color-theme-text-accent-normal);
1318
1318
  }
1319
- `],jo=As;var Wo=u.constructTagName("formfieldwrapper"),G={DEFAULT:"default",ERROR:"error",PRIORITY:"priority",SUCCESS:"success",WARNING:"warning"},_r={VALIDATION:G.DEFAULT},nt={TAGNAME:T.SPAN,TYPE:_.BODY_MIDSIZE_REGULAR};var Ko=i=>({[G.ERROR]:"error-legacy-badge-filled",[G.WARNING]:"warning-badge-filled",[G.SUCCESS]:"check-circle-badge-filled",[G.PRIORITY]:"priority-badge-filled",[G.DEFAULT]:""})[i]||"";var j=class extends Me(g){constructor(){super(...arguments);this.id=`mdc-input-${Tr()}`;this.helpTextType=_r.VALIDATION}renderLabelElement(){return this.label?m`<label for="${this.id}" class="mdc-label" part="label">${this.label}</label>`:p}renderRequiredLabel(){return this.requiredLabel?m`
1319
+ `],Ko=Ss;var Qo=u.constructTagName("formfieldwrapper"),G={DEFAULT:"default",ERROR:"error",PRIORITY:"priority",SUCCESS:"success",WARNING:"warning"},_r={VALIDATION:G.DEFAULT},nt={TAGNAME:T.SPAN,TYPE:_.BODY_MIDSIZE_REGULAR};var Jo=i=>({[G.ERROR]:"error-legacy-badge-filled",[G.WARNING]:"warning-badge-filled",[G.SUCCESS]:"check-circle-badge-filled",[G.PRIORITY]:"priority-badge-filled",[G.DEFAULT]:""})[i]||"";var j=class extends Me(g){constructor(){super(...arguments);this.id=`mdc-input-${Tr()}`;this.helpTextType=_r.VALIDATION}renderLabelElement(){return this.label?m`<label for="${this.id}" class="mdc-label" part="label">${this.label}</label>`:p}renderRequiredLabel(){return this.requiredLabel?m`
1320
1320
  <mdc-text
1321
1321
  part="required-label"
1322
1322
  tagname=${nt.TAGNAME}
@@ -1324,7 +1324,7 @@
1324
1324
  >
1325
1325
  (${this.requiredLabel})
1326
1326
  </mdc-text>
1327
- `:p}renderHelpTextIcon(){if(!this.helpText)return p;let e=Ko(this.helpTextType||_r.VALIDATION);return e&&!this.disabled?m`<mdc-icon part="helper-icon" size="1" length-unit="rem" name=${e}></mdc-icon>`:p}renderHelpText(){return this.helpText?m`
1327
+ `:p}renderHelpTextIcon(){if(!this.helpText)return p;let e=Jo(this.helpTextType||_r.VALIDATION);return e&&!this.disabled?m`<mdc-icon part="helper-icon" size="1" length-unit="rem" name=${e}></mdc-icon>`:p}renderHelpText(){return this.helpText?m`
1328
1328
  <mdc-text
1329
1329
  part="help-text"
1330
1330
  tagname=${nt.TAGNAME}
@@ -1339,7 +1339,7 @@
1339
1339
  </div>`}renderHelperText(){return m`<div class="mdc-help-text" part="mdc-help-text">
1340
1340
  <slot name="help-icon">${this.renderHelpTextIcon()}</slot>
1341
1341
  <slot name="help-text">${this.renderHelpText()}</slot>
1342
- </div>`}};j.styles=[...g.styles,...jo],a([d({reflect:!0,type:String})],j.prototype,"label",2),a([d({type:String,reflect:!0,attribute:"required-label"})],j.prototype,"requiredLabel",2),a([d({type:String})],j.prototype,"id",2),a([d({reflect:!0,attribute:"help-text-type"})],j.prototype,"helpTextType",2),a([d({type:String,reflect:!0,attribute:"help-text"})],j.prototype,"helpText",2);var W=j;W.register(Wo);var De=W;var ie=i=>{class t extends i{constructor(){super(...arguments);this.name=""}}return a([d({reflect:!0,type:String})],t.prototype,"name",2),t};var Qo=u.constructTagName("input"),Jo={OFF:"off",NONE:"none",ON:"on",SENTENCES:"sentences",WORDS:"words",CHARACTERS:"characters"},ei={MAX_LENGTH:10,HELPERTEXT:"Prefix text should not exceed 10 characters",VALIDATION:G.ERROR},se={VALIDATION:G.DEFAULT,ICON_SIZE_VALUE:1,ICON_SIZE_UNIT:"rem",CLEAR_BUTTON_ICON:"cancel-bold",CLEAR_BUTTON_VARIANT:be.TERTIARY,CLEAR_BUTTON_SIZE:q[20],PREFIX_TEXT_TYPE:_.BODY_MIDSIZE_REGULAR,PREFIX_TEXT_TAG:T.SPAN};var ne=i=>{class t extends i{constructor(){super(...arguments);this.value=""}}return a([d({reflect:!0,type:String})],t.prototype,"value",2),t};var ae=i=>{class t extends i{constructor(){super(...arguments);this.dataAriaLabel=null}}return a([d({type:String,reflect:!0,attribute:"data-aria-label"})],t.prototype,"dataAriaLabel",2),t};var A=class extends ae(ne(ie(De))){constructor(){super();this.placeholder="";this.readonly=!1;this.trailingButton=!1;this.autocapitalize=Jo.OFF;this.autocomplete="off";this.autofocus=!1;this.clearAriaLabel="";this.internals=this.attachInternals()}checkValidity(){return this.setValidityFromInput(),this.internals.checkValidity()}reportValidity(){return this.setValidityFromInput(),this.internals.reportValidity()}get form(){return this.internals.form}connectedCallback(){super.connectedCallback(),this.updateComplete.then(()=>{this.inputElement&&(this.inputElement.checkValidity(),this.setValidityFromInput(),this.internals.setFormValue(this.inputElement.value))}).catch(e=>{this.onerror&&this.onerror(e)})}updated(e){super.updated(e),e.has("value")&&this.handleValueChange()}handleValueChange(){this.internals.setFormValue(this.value),this.updateComplete.then(()=>{this.setValidityFromInput()}).catch(e=>{this.onerror&&this.onerror(e)})}attributeChangedCallback(e,r,o){super.attributeChangedCallback(e,r,o),["maxlength","minlength","pattern","required"].includes(e)&&this.updateComplete.then(()=>{this.setValidityFromInput()}).catch(s=>{this.onerror&&this.onerror(s)})}setValidityFromInput(){this.inputElement&&this.internals.setValidity(this.inputElement.validity,this.inputElement.validationMessage,this.inputElement)}updateValue(){this.value=this.inputElement.value,this.internals.setFormValue(this.inputElement.value)}onInput(){this.updateValue(),this.setValidityFromInput()}onChange(e){this.updateValue(),this.setValidityFromInput();let r=e.constructor;this.dispatchEvent(new r(e.type,e))}handleKeyDown(e){var r;e.key==="Enter"&&((r=this.internals.form)==null||r.requestSubmit())}renderLeadingIcon(){return this.leadingIcon?m`
1342
+ </div>`}};j.styles=[...g.styles,...Ko],a([d({reflect:!0,type:String})],j.prototype,"label",2),a([d({type:String,reflect:!0,attribute:"required-label"})],j.prototype,"requiredLabel",2),a([d({type:String})],j.prototype,"id",2),a([d({reflect:!0,attribute:"help-text-type"})],j.prototype,"helpTextType",2),a([d({type:String,reflect:!0,attribute:"help-text"})],j.prototype,"helpText",2);var W=j;W.register(Qo);var De=W;var ie=i=>{class t extends i{constructor(){super(...arguments);this.name=""}}return a([d({reflect:!0,type:String})],t.prototype,"name",2),t};var ei=u.constructTagName("input"),ti={OFF:"off",NONE:"none",ON:"on",SENTENCES:"sentences",WORDS:"words",CHARACTERS:"characters"},ri={MAX_LENGTH:10,HELPERTEXT:"Prefix text should not exceed 10 characters",VALIDATION:G.ERROR},se={VALIDATION:G.DEFAULT,ICON_SIZE_VALUE:1,ICON_SIZE_UNIT:"rem",CLEAR_BUTTON_ICON:"cancel-bold",CLEAR_BUTTON_VARIANT:fe.TERTIARY,CLEAR_BUTTON_SIZE:q[20],PREFIX_TEXT_TYPE:_.BODY_MIDSIZE_REGULAR,PREFIX_TEXT_TAG:T.SPAN};var ne=i=>{class t extends i{constructor(){super(...arguments);this.value=""}}return a([d({reflect:!0,type:String})],t.prototype,"value",2),t};var ae=i=>{class t extends i{constructor(){super(...arguments);this.dataAriaLabel=null}}return a([d({type:String,reflect:!0,attribute:"data-aria-label"})],t.prototype,"dataAriaLabel",2),t};var A=class extends ae(ne(ie(De))){constructor(){super();this.placeholder="";this.readonly=!1;this.trailingButton=!1;this.autocapitalize=ti.OFF;this.autocomplete="off";this.autofocus=!1;this.clearAriaLabel="";this.internals=this.attachInternals()}checkValidity(){return this.setValidityFromInput(),this.internals.checkValidity()}reportValidity(){return this.setValidityFromInput(),this.internals.reportValidity()}get form(){return this.internals.form}connectedCallback(){super.connectedCallback(),this.updateComplete.then(()=>{this.inputElement&&(this.inputElement.checkValidity(),this.setValidityFromInput(),this.internals.setFormValue(this.inputElement.value))}).catch(e=>{this.onerror&&this.onerror(e)})}updated(e){super.updated(e),e.has("value")&&this.handleValueChange()}handleValueChange(){this.internals.setFormValue(this.value),this.updateComplete.then(()=>{this.setValidityFromInput()}).catch(e=>{this.onerror&&this.onerror(e)})}attributeChangedCallback(e,r,o){super.attributeChangedCallback(e,r,o),["maxlength","minlength","pattern","required"].includes(e)&&this.updateComplete.then(()=>{this.setValidityFromInput()}).catch(s=>{this.onerror&&this.onerror(s)})}setValidityFromInput(){this.inputElement&&this.internals.setValidity(this.inputElement.validity,this.inputElement.validationMessage,this.inputElement)}updateValue(){this.value=this.inputElement.value,this.internals.setFormValue(this.inputElement.value)}onInput(){this.updateValue(),this.setValidityFromInput()}onChange(e){this.updateValue(),this.setValidityFromInput();let r=e.constructor;this.dispatchEvent(new r(e.type,e))}handleKeyDown(e){var r;e.key==="Enter"&&((r=this.internals.form)==null||r.requestSubmit())}renderLeadingIcon(){return this.leadingIcon?m`
1343
1343
  <mdc-icon
1344
1344
  class="leading-icon"
1345
1345
  part="leading-icon"
@@ -1354,7 +1354,7 @@
1354
1354
  type="${se.PREFIX_TEXT_TYPE}"
1355
1355
  aria-hidden="true"
1356
1356
  >
1357
- ${this.prefixText.slice(0,ei.MAX_LENGTH)}
1357
+ ${this.prefixText.slice(0,ri.MAX_LENGTH)}
1358
1358
  </mdc-text>
1359
1359
  `:p}clearInputText(){var e;this.value="",(e=this.inputElement)==null||e.focus()}renderTrailingButton(){return this.trailingButton?m`
1360
1360
  <mdc-button
@@ -1404,7 +1404,7 @@
1404
1404
  <slot name="trailing-button">${this.renderTrailingButton()}</slot>
1405
1405
  </div>
1406
1406
  ${this.helpText?this.renderHelperText():p}
1407
- `}};A.formAssociated=!0,A.styles=[...De.styles,...Zo],a([d({type:String})],A.prototype,"placeholder",2),a([d({type:Boolean})],A.prototype,"readonly",2),a([d({type:String,attribute:"prefix-text"})],A.prototype,"prefixText",2),a([d({type:String,attribute:"leading-icon"})],A.prototype,"leadingIcon",2),a([d({type:Boolean,attribute:"trailing-button"})],A.prototype,"trailingButton",2),a([d({type:Number})],A.prototype,"maxlength",2),a([d({type:Number})],A.prototype,"minlength",2),a([d({type:String})],A.prototype,"autocapitalize",2),a([d({type:String})],A.prototype,"autocomplete",2),a([d({type:Boolean})],A.prototype,"autofocus",2),a([d({type:String})],A.prototype,"dirname",2),a([d({type:String})],A.prototype,"pattern",2),a([d({type:String})],A.prototype,"list",2),a([d({type:Number})],A.prototype,"size",2),a([d({type:String,attribute:"clear-aria-label"})],A.prototype,"clearAriaLabel",2),a([Xr("input")],A.prototype,"inputElement",2);var Ar=A;Ar.register(Qo);var Ss=Ar;var ti=u.constructTagName("link"),Ot={LARGE:"large",MIDSIZE:"midsize",SMALL:"small"},$t={LARGE:1,MIDSIZE:.875,SMALL:.75},Dt={INLINE:!1,INVERTED:!1,LINK_SIZE:Ot.LARGE};var Is=[E,h`
1407
+ `}};A.formAssociated=!0,A.styles=[...De.styles,...jo],a([d({type:String})],A.prototype,"placeholder",2),a([d({type:Boolean})],A.prototype,"readonly",2),a([d({type:String,attribute:"prefix-text"})],A.prototype,"prefixText",2),a([d({type:String,attribute:"leading-icon"})],A.prototype,"leadingIcon",2),a([d({type:Boolean,attribute:"trailing-button"})],A.prototype,"trailingButton",2),a([d({type:Number})],A.prototype,"maxlength",2),a([d({type:Number})],A.prototype,"minlength",2),a([d({type:String})],A.prototype,"autocapitalize",2),a([d({type:String})],A.prototype,"autocomplete",2),a([d({type:Boolean})],A.prototype,"autofocus",2),a([d({type:String})],A.prototype,"dirname",2),a([d({type:String})],A.prototype,"pattern",2),a([d({type:String})],A.prototype,"list",2),a([d({type:Number})],A.prototype,"size",2),a([d({type:String,attribute:"clear-aria-label"})],A.prototype,"clearAriaLabel",2),a([qr("input")],A.prototype,"inputElement",2);var Ar=A;Ar.register(ei);var Is=Ar;var oi=u.constructTagName("link"),Ot={LARGE:"large",MIDSIZE:"midsize",SMALL:"small"},$t={LARGE:1,MIDSIZE:.875,SMALL:.75},Dt={INLINE:!1,INVERTED:!1,LINK_SIZE:Ot.LARGE};var Ns=[E,h`
1408
1408
 
1409
1409
  :host {
1410
1410
 
@@ -1519,7 +1519,7 @@
1519
1519
  :host(:active) {
1520
1520
  box-shadow: none;
1521
1521
  }
1522
- `],ri=Is;var ye=class extends Me(P(g)){constructor(){super(...arguments);this.inline=Dt.INLINE;this.inverted=Dt.INVERTED;this.size=Dt.LINK_SIZE;this.prevTabindex=null}getIconSize(){switch(this.size){case Ot.SMALL:return $t.SMALL;case Ot.MIDSIZE:return $t.MIDSIZE;default:return $t.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 o,n;let e=(n=(o=this.shadowRoot)==null?void 0:o.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 m`<slot @slotchange=${this.updateTrailingIcon}></slot>`}};ye.styles=[...g.styles,...ri],a([d({type:Boolean,reflect:!0})],ye.prototype,"inline",2),a([d({type:Boolean,reflect:!0})],ye.prototype,"inverted",2),a([d({type:String,reflect:!0})],ye.prototype,"size",2);var Sr=ye;Sr.register(ti);var Ns=Sr;var ks=[E,h`
1522
+ `],ii=Ns;var ye=class extends Me(P(g)){constructor(){super(...arguments);this.inline=Dt.INLINE;this.inverted=Dt.INVERTED;this.size=Dt.LINK_SIZE;this.prevTabindex=null}getIconSize(){switch(this.size){case Ot.SMALL:return $t.SMALL;case Ot.MIDSIZE:return $t.MIDSIZE;default:return $t.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 o,n;let e=(n=(o=this.shadowRoot)==null?void 0:o.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 m`<slot @slotchange=${this.updateTrailingIcon}></slot>`}};ye.styles=[...g.styles,...ii],a([d({type:Boolean,reflect:!0})],ye.prototype,"inline",2),a([d({type:Boolean,reflect:!0})],ye.prototype,"inverted",2),a([d({type:String,reflect:!0})],ye.prototype,"size",2);var Sr=ye;Sr.register(oi);var ks=Sr;var Cs=[E,h`
1523
1523
  :host {
1524
1524
  --mdc-toggle-width: 3rem;
1525
1525
  --mdc-toggle-height: 1.5rem;
@@ -1663,7 +1663,7 @@
1663
1663
  border: var(--mdc-toggle-border);
1664
1664
  }
1665
1665
  }
1666
- `,...S(!0)],oi=ks;var ii=u.constructTagName("toggle"),Ir={DEFAULT:"default",COMPACT:"compact"},Nr={CHECKED:"check-bold",UNCHECKED:"cancel-bold"},si={compact:.75,default:1.25},kr={SIZE:Ir.DEFAULT};var xe=class extends ie(ne(ae(De))){constructor(){super();this.checked=!1;this.size=kr.SIZE;this.internals=this.attachInternals(),this.helpTextType=void 0}get form(){return this.internals.form}setFormValue(){let e=null;this.checked&&(e=this.value?this.value:"isActive"),this.internals.setFormValue(e)}toggleState(){this.disabled||(this.checked=!this.checked)}handleChange(e){this.toggleState();let r=e.constructor;this.dispatchEvent(new r(e.type,e))}setToggleSize(e){this.setAttribute("size",Object.values(Ir).includes(e)?e:kr.SIZE)}update(e){super.update(e),e.has("checked")&&this.setFormValue(),e.has("size")&&this.setToggleSize(this.size)}render(){var e;return m`
1666
+ `,...S(!0)],si=Cs;var ni=u.constructTagName("toggle"),Ir={DEFAULT:"default",COMPACT:"compact"},Nr={CHECKED:"check-bold",UNCHECKED:"cancel-bold"},ai={compact:.75,default:1.25},kr={SIZE:Ir.DEFAULT};var xe=class extends ie(ne(ae(De))){constructor(){super();this.checked=!1;this.size=kr.SIZE;this.internals=this.attachInternals(),this.helpTextType=void 0}get form(){return this.internals.form}setFormValue(){let e=null;this.checked&&(e=this.value?this.value:"isActive"),this.internals.setFormValue(e)}toggleState(){this.disabled||(this.checked=!this.checked)}handleChange(e){this.toggleState();let r=e.constructor;this.dispatchEvent(new r(e.type,e))}setToggleSize(e){this.setAttribute("size",Object.values(Ir).includes(e)?e:kr.SIZE)}update(e){super.update(e),e.has("checked")&&this.setFormValue(),e.has("size")&&this.setToggleSize(this.size)}render(){var e;return m`
1667
1667
  <div class="mdc-toggle__container mdc-focus-ring">
1668
1668
  <input
1669
1669
  id="${this.id}"
@@ -1683,13 +1683,13 @@
1683
1683
  name="${this.checked?Nr.CHECKED:Nr.UNCHECKED}"
1684
1684
  class="mdc-toggle__icon"
1685
1685
  length-unit="rem"
1686
- size="${si[this.size]}"
1686
+ size="${ai[this.size]}"
1687
1687
  ></mdc-icon>
1688
1688
  </div>
1689
1689
  </div>
1690
1690
  ${this.renderLabel()}
1691
1691
  ${this.renderHelperText()}
1692
- `}};xe.formAssociated=!0,xe.styles=[...De.styles,...oi],a([d({type:Boolean,reflect:!0})],xe.prototype,"checked",2),a([d({type:String,reflect:!0})],xe.prototype,"size",2);var Cr=xe;Cr.register(ii);var Cs=Cr;var Pt=u.constructTagName("checkbox"),zr={CHECKED:"check-bold",INDETERMINATE:"minus-bold"};var zs=[h`
1692
+ `}};xe.formAssociated=!0,xe.styles=[...De.styles,...si],a([d({type:Boolean,reflect:!0})],xe.prototype,"checked",2),a([d({type:String,reflect:!0})],xe.prototype,"size",2);var Cr=xe;Cr.register(ni);var zs=Cr;var Pt=u.constructTagName("checkbox"),zr={CHECKED:"check-bold",INDETERMINATE:"minus-bold"};var Rs=[h`
1693
1693
  :host {
1694
1694
  --mdc-checkbox-background-color-hover: var(--mds-color-theme-control-inactive-hover);
1695
1695
  --mdc-checkbox-border-color: var(--mds-color-theme-outline-button-normal);
@@ -1791,7 +1791,7 @@
1791
1791
  border: 0.0625rem solid var(--mdc-checkbox-border-color);
1792
1792
  }
1793
1793
  }
1794
- `,...S(!0)],ni=zs;var le=class extends ie(ne(ae(W))){constructor(){super();this.checked=!1;this.indeterminate=!1;this.internals=this.attachInternals(),this.helpTextType=void 0}get form(){return this.internals.form}setFormValue(){let e=null;this.checked&&(e=this.value?this.value:"on"),this.internals.setFormValue(e)}toggleState(){this.disabled||(this.checked=!this.checked,this.indeterminate=!1)}handleChange(e){this.toggleState();let r=e.constructor;this.dispatchEvent(new r(e.type,e))}handleKeyDown(e){var r;e.key==="Enter"&&((r=this.form)==null||r.requestSubmit())}update(e){super.update(e),e.has("checked")&&this.setFormValue()}render(){var o;let e=this.checked||this.indeterminate?m`
1794
+ `,...S(!0)],li=Rs;var le=class extends ie(ne(ae(W))){constructor(){super();this.checked=!1;this.indeterminate=!1;this.internals=this.attachInternals(),this.helpTextType=void 0}get form(){return this.internals.form}setFormValue(){let e=null;this.checked&&(e=this.value?this.value:"on"),this.internals.setFormValue(e)}toggleState(){this.disabled||(this.checked=!this.checked,this.indeterminate=!1)}handleChange(e){this.toggleState();let r=e.constructor;this.dispatchEvent(new r(e.type,e))}handleKeyDown(e){var r;e.key==="Enter"&&((r=this.form)==null||r.requestSubmit())}update(e){super.update(e),e.has("checked")&&this.setFormValue()}render(){var o;let e=this.checked||this.indeterminate?m`
1795
1795
  <mdc-icon
1796
1796
  class="icon"
1797
1797
  name="${this.indeterminate?zr.INDETERMINATE:zr.CHECKED}"
@@ -1819,19 +1819,19 @@
1819
1819
  ${this.renderLabel()}
1820
1820
  ${r}
1821
1821
  </div>
1822
- `}};le.formAssociated=!0,le.shadowRootOptions={...D.shadowRootOptions,delegatesFocus:!0},le.styles=[...W.styles,...ni],a([d({type:Boolean,reflect:!0})],le.prototype,"checked",2),a([d({type:Boolean,reflect:!0})],le.prototype,"indeterminate",2);var Rr=le;Rr.register(Pt);var Rs=Rr;var ws=h`
1822
+ `}};le.formAssociated=!0,le.shadowRootOptions={...D.shadowRootOptions,delegatesFocus:!0},le.styles=[...W.styles,...li],a([d({type:Boolean,reflect:!0})],le.prototype,"checked",2),a([d({type:Boolean,reflect:!0})],le.prototype,"indeterminate",2);var Rr=le;Rr.register(Pt);var ws=Rr;var Ls=h`
1823
1823
  :host {
1824
1824
  display: flex;
1825
1825
  flex-direction: column;
1826
1826
  gap: 0.75rem;
1827
1827
  }
1828
- `,ai=[ws];var Pe=class extends g{constructor(){super();this.role="group";this.addEventListener("keydown",this.handleKeyDown)}get checkboxList(){var o,n,s;let e=Array.from((n=(o=this.shadowRoot)==null?void 0:o.querySelectorAll("slot"))!=null?n:[]);return(((s=e==null?void 0:e.filter(l=>l.name!=="help-text")[0])==null?void 0:s.assignedElements())||[]).filter(l=>l.tagName.toLowerCase()===Pt)}handleKeyDown(e){e.key==="ArrowDown"&&this.navigate(e.target,1),e.key==="ArrowUp"&&this.navigate(e.target,-1)}navigate(e,r){let o=this.checkboxList.map(l=>l.id),s=((o.indexOf(e.id)+r)%o.length+o.length)%o.length;this.children[s].focus()}render(){let e=this.headerText?m`<mdc-text class="header-text" tagname="${T.SPAN}" type="${_.BODY_LARGE_BOLD}">
1828
+ `,di=[Ls];var Pe=class extends g{constructor(){super();this.role="group";this.addEventListener("keydown",this.handleKeyDown)}get checkboxList(){var o,n,s;let e=Array.from((n=(o=this.shadowRoot)==null?void 0:o.querySelectorAll("slot"))!=null?n:[]);return(((s=e==null?void 0:e.filter(l=>l.name!=="help-text")[0])==null?void 0:s.assignedElements())||[]).filter(l=>l.tagName.toLowerCase()===Pt)}handleKeyDown(e){e.key==="ArrowDown"&&this.navigate(e.target,1),e.key==="ArrowUp"&&this.navigate(e.target,-1)}navigate(e,r){let o=this.checkboxList.map(l=>l.id),s=((o.indexOf(e.id)+r)%o.length+o.length)%o.length;this.children[s].focus()}render(){let e=this.headerText?m`<mdc-text class="header-text" tagname="${T.SPAN}" type="${_.BODY_LARGE_BOLD}">
1829
1829
  ${this.headerText}
1830
1830
  </mdc-text>`:p;return m`
1831
1831
  ${e}
1832
1832
  <slot name="help-text"></slot>
1833
1833
  <slot></slot>
1834
- `}};Pe.styles=[...g.styles,...ai],a([d({type:String,attribute:"header-text"})],Pe.prototype,"headerText",2),a([d({type:String,reflect:!0})],Pe.prototype,"role",2);var wr=Pe;var li=u.constructTagName("checkboxgroup");wr.register(li);var Ls=wr;var Ms=[E,h`
1834
+ `}};Pe.styles=[...g.styles,...di],a([d({type:String,attribute:"header-text"})],Pe.prototype,"headerText",2),a([d({type:String,reflect:!0})],Pe.prototype,"role",2);var wr=Pe;var ci=u.constructTagName("checkboxgroup");wr.register(ci);var Ms=wr;var Os=[E,h`
1835
1835
  :host{
1836
1836
  --mdc-radio-inner-circle-size: 0.375rem;
1837
1837
  --mdc-radio-text-disabled-color: var(--mds-color-theme-text-primary-disabled);
@@ -1989,7 +1989,7 @@
1989
1989
  justify-content: center;
1990
1990
  gap: 0.25rem;
1991
1991
  }
1992
- `,...S(!0)],di=Ms;var Ee=class extends ie(ne(ae(W))){constructor(){super();this.checked=!1;this.readonly=!1;this.internals=this.attachInternals()}get form(){return this.internals.form}setFormValue(){this.checked&&this.internals.setFormValue(this.value)}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))}handleChange(e){var n;if(this.disabled||this.readonly)return;this.getAllRadiosWithinSameGroup().forEach(s=>{var c;let l=(c=s.shadowRoot)==null?void 0:c.querySelector("input");l&&(s.checked=!1,l.checked=!1)}),this.checked=!0;let o=(n=this.shadowRoot)==null?void 0:n.querySelector("input");o&&(o.checked=!0),this.dispatchChangeEvent(e)}updateRadio(e,r,o){var n,s;(s=(n=e[r].shadowRoot)==null?void 0:n.querySelector("input"))==null||s.focus(),e[r].handleChange(o)}handleKeyDown(e){if(this.disabled)return;let o=this.getAllRadiosWithinSameGroup().filter(s=>!s.disabled),n=o.indexOf(this);if(["ArrowDown","ArrowRight"].includes(e.key)){let s=(n+1)%o.length;this.updateRadio(o,s,e)}else if(["ArrowUp","ArrowLeft"].includes(e.key)){let s=(n-1+o.length)%o.length;this.updateRadio(o,s,e)}this.updateTabIndex()}updateTabIndex(){let e=this.getAllRadiosWithinSameGroup(),r=e.find(n=>n.checked),o=e.find(n=>!n.disabled);e.forEach(n=>{var l;let s=(l=n.shadowRoot)==null?void 0:l.querySelector("input");s&&(s.tabIndex=-1,(n===r||!r&&n===o)&&(s.tabIndex=0))})}update(e){super.update(e),e.has("checked")&&this.setFormValue()}render(){var r;let e=this.helpText?this.renderHelperText():p;return m`
1992
+ `,...S(!0)],mi=Os;var Ee=class extends ie(ne(ae(W))){constructor(){super();this.checked=!1;this.readonly=!1;this.internals=this.attachInternals()}get form(){return this.internals.form}setFormValue(){this.checked&&this.internals.setFormValue(this.value)}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))}handleChange(e){var n;if(this.disabled||this.readonly)return;this.getAllRadiosWithinSameGroup().forEach(s=>{var c;let l=(c=s.shadowRoot)==null?void 0:c.querySelector("input");l&&(s.checked=!1,l.checked=!1)}),this.checked=!0;let o=(n=this.shadowRoot)==null?void 0:n.querySelector("input");o&&(o.checked=!0),this.dispatchChangeEvent(e)}updateRadio(e,r,o){var n,s;(s=(n=e[r].shadowRoot)==null?void 0:n.querySelector("input"))==null||s.focus(),e[r].handleChange(o)}handleKeyDown(e){if(this.disabled)return;let o=this.getAllRadiosWithinSameGroup().filter(s=>!s.disabled),n=o.indexOf(this);if(["ArrowDown","ArrowRight"].includes(e.key)){let s=(n+1)%o.length;this.updateRadio(o,s,e)}else if(["ArrowUp","ArrowLeft"].includes(e.key)){let s=(n-1+o.length)%o.length;this.updateRadio(o,s,e)}this.updateTabIndex()}updateTabIndex(){let e=this.getAllRadiosWithinSameGroup(),r=e.find(n=>n.checked),o=e.find(n=>!n.disabled);e.forEach(n=>{var l;let s=(l=n.shadowRoot)==null?void 0:l.querySelector("input");s&&(s.tabIndex=-1,(n===r||!r&&n===o)&&(s.tabIndex=0))})}update(e){super.update(e),e.has("checked")&&this.setFormValue()}render(){var r;let e=this.helpText?this.renderHelperText():p;return m`
1993
1993
  <div class="mdc-radio__container">
1994
1994
  <div class="mdc-radio__icon-container mdc-focus-ring">
1995
1995
  <input
@@ -2014,10 +2014,10 @@
2014
2014
  ${e}
2015
2015
  </div>
2016
2016
  </div>
2017
- `}};Ee.formAssociated=!0,Ee.styles=[...W.styles,...di],a([d({type:Boolean,reflect:!0})],Ee.prototype,"checked",2),a([d({type:Boolean,reflect:!0})],Ee.prototype,"readonly",2);var Lr=Ee;var ci=u.constructTagName("radio");Lr.register(ci);var Os=Lr;function Te(i,t,e){var n;let r=(n=e.initialDeps)!=null?n:[],o;return()=>{var s,l,c,b;let f;e.key&&((s=e.debug)!=null&&s.call(e))&&(f=Date.now());let v=i();if(!(v.length!==r.length||v.some(($,de)=>r[de]!==$)))return o;r=v;let R;if(e.key&&((l=e.debug)!=null&&l.call(e))&&(R=Date.now()),o=t(...v),e.key&&((c=e.debug)!=null&&c.call(e))){let $=Math.round((Date.now()-f)*100)/100,de=Math.round((Date.now()-R)*100)/100,Ft=de/16,lt=(Ae,ki)=>{for(Ae=String(Ae);Ae.length<ki;)Ae=" "+Ae;return Ae};console.info(`%c\u23F1 ${lt(de,5)} /${lt($,5)} ms`,`
2017
+ `}};Ee.formAssociated=!0,Ee.styles=[...W.styles,...mi],a([d({type:Boolean,reflect:!0})],Ee.prototype,"checked",2),a([d({type:Boolean,reflect:!0})],Ee.prototype,"readonly",2);var Lr=Ee;var hi=u.constructTagName("radio");Lr.register(hi);var $s=Lr;function Te(i,t,e){var n;let r=(n=e.initialDeps)!=null?n:[],o;return()=>{var s,l,c,f;let b;e.key&&((s=e.debug)!=null&&s.call(e))&&(b=Date.now());let v=i();if(!(v.length!==r.length||v.some(($,de)=>r[de]!==$)))return o;r=v;let R;if(e.key&&((l=e.debug)!=null&&l.call(e))&&(R=Date.now()),o=t(...v),e.key&&((c=e.debug)!=null&&c.call(e))){let $=Math.round((Date.now()-b)*100)/100,de=Math.round((Date.now()-R)*100)/100,Ft=de/16,lt=(Ae,Ci)=>{for(Ae=String(Ae);Ae.length<Ci;)Ae=" "+Ae;return Ae};console.info(`%c\u23F1 ${lt(de,5)} /${lt($,5)} ms`,`
2018
2018
  font-size: .6rem;
2019
2019
  font-weight: bold;
2020
- color: hsl(${Math.max(0,Math.min(120-120*Ft,120))}deg 100% 31%);`,e==null?void 0:e.key)}return(b=e==null?void 0:e.onChange)==null||b.call(e,o),o}}function Ut(i,t){if(i===void 0)throw new Error(`Unexpected undefined${t?`: ${t}`:""}`);return i}var mi=(i,t)=>Math.abs(i-t)<1,hi=(i,t,e)=>{let r;return function(...o){i.clearTimeout(r),r=i.setTimeout(()=>t.apply(this,o),e)}};var $s=i=>i,Ds=i=>{let t=Math.max(i.startIndex-i.overscan,0),e=Math.min(i.endIndex+i.overscan,i.count-1),r=[];for(let o=t;o<=e;o++)r.push(o);return r},ui=(i,t)=>{let e=i.scrollElement;if(!e)return;let r=i.targetWindow;if(!r)return;let o=s=>{let{width:l,height:c}=s;t({width:Math.round(l),height:Math.round(c)})};if(o(e.getBoundingClientRect()),!r.ResizeObserver)return()=>{};let n=new r.ResizeObserver(s=>{let l=s[0];if(l!=null&&l.borderBoxSize){let c=l.borderBoxSize[0];if(c){o({width:c.inlineSize,height:c.blockSize});return}}o(e.getBoundingClientRect())});return n.observe(e,{box:"border-box"}),()=>{n.unobserve(e)}},pi={passive:!0};var Ps=typeof window>"u"?!0:"onscrollend"in window,gi=(i,t)=>{let e=i.scrollElement;if(!e)return;let r=i.targetWindow;if(!r)return;let o=0,n=i.options.useScrollendEvent&&Ps?()=>{}:hi(r,()=>{t(o,!1)},i.options.isScrollingResetDelay),s=b=>()=>{let{horizontal:f,isRtl:v}=i.options;o=f?e.scrollLeft*(v&&-1||1):e.scrollTop,n(),t(o,b)},l=s(!0),c=s(!1);return c(),e.addEventListener("scroll",l,pi),e.addEventListener("scrollend",c,pi),()=>{e.removeEventListener("scroll",l),e.removeEventListener("scrollend",c)}};var Us=(i,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(i.getBoundingClientRect()[e.options.horizontal?"width":"height"])};var fi=(i,{adjustments:t=0,behavior:e},r)=>{var o,n;let s=i+t;(n=(o=r.scrollElement)==null?void 0:o.scrollTo)==null||n.call(o,{[r.options.horizontal?"left":"top"]:s,behavior:e})},Vt=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(o=>{o.forEach(n=>{this._measureElement(n.target,n)})}));return{disconnect:()=>{var o;(o=r())==null||o.disconnect(),e=null},observe:o=>{var n;return(n=r())==null?void 0:n.observe(o,{box:"border-box"})},unobserve:o=>{var n;return(n=r())==null?void 0:n.unobserve(o)}}})(),this.range=null,this.setOptions=e=>{Object.entries(e).forEach(([r,o])=>{typeof o>"u"&&delete e[r]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:$s,rangeExtractor:Ds,onChange:()=>{},measureElement:Us,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,o;(o=(r=this.options).onChange)==null||o.call(r,this,e)},this.maybeNotify=Te(()=>(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 o;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=(o=(e=this.scrollElement)==null?void 0:e.window)!=null?o: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 o=new Map,n=new Map;for(let s=r-1;s>=0;s--){let l=e[s];if(o.has(l.lane))continue;let c=n.get(l.lane);if(c==null||l.end>c.end?n.set(l.lane,l):l.end<c.end&&o.set(l.lane,!0),o.size===this.options.lanes)break}return n.size===this.options.lanes?Array.from(n.values()).sort((s,l)=>s.end===l.end?s.index-l.index:s.end-l.end)[0]:void 0},this.getMeasurementOptions=Te(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled],(e,r,o,n,s)=>(this.pendingMeasuredCacheIndexes=[],{count:e,paddingStart:r,scrollMargin:o,getItemKey:n,enabled:s}),{key:!1}),this.getMeasurements=Te(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:e,paddingStart:r,scrollMargin:o,getItemKey:n,enabled:s},l)=>{if(!s)return this.measurementsCache=[],this.itemSizeCache.clear(),[];this.measurementsCache.length===0&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(f=>{this.itemSizeCache.set(f.key,f.size)}));let c=this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[];let b=this.measurementsCache.slice(0,c);for(let f=c;f<e;f++){let v=n(f),C=this.options.lanes===1?b[f-1]:this.getFurthestMeasurement(b,f),R=C?C.end+this.options.gap:r+o,$=l.get(v),de=typeof $=="number"?$:this.options.estimateSize(f),Ft=R+de,lt=C?C.lane:f%this.options.lanes;b[f]={index:f,start:R,size:de,end:Ft,key:v,lane:lt}}return this.measurementsCache=b,b},{key:!1,debug:()=>this.options.debug}),this.calculateRange=Te(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset()],(e,r,o)=>this.range=e.length>0&&r>0?Vs({measurements:e,outerSize:r,scrollOffset:o}):null,{key:!1,debug:()=>this.options.debug}),this.getIndexes=Te(()=>{let e=null,r=null,o=this.calculateRange();return o&&(e=o.startIndex,r=o.endIndex),[this.options.rangeExtractor,this.options.overscan,this.options.count,e,r]},(e,r,o,n,s)=>n===null||s===null?[]:e({startIndex:n,endIndex:s,overscan:r,count:o}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=e=>{let r=this.options.indexAttribute,o=e.getAttribute(r);return o?parseInt(o,10):(console.warn(`Missing attribute name '${r}={index}' on measured element.`),-1)},this._measureElement=(e,r)=>{let o=this.indexFromElement(e),n=this.measurementsCache[o];if(!n)return;let s=n.key,l=this.elementsCache.get(s);l!==e&&(l&&this.observer.unobserve(l),this.observer.observe(e),this.elementsCache.set(s,e)),e.isConnected&&this.resizeItem(o,this.options.measureElement(e,r,this))},this.resizeItem=(e,r)=>{var l;let o=this.measurementsCache[e];if(!o)return;let n=(l=this.itemSizeCache.get(o.key))!=null?l:o.size,s=r-n;s!==0&&((this.shouldAdjustScrollPositionOnItemSizeChange!==void 0?this.shouldAdjustScrollPositionOnItemSizeChange(o,s,this):o.start<this.getScrollOffset()+this.scrollAdjustments)&&this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=s,behavior:void 0}),this.pendingMeasuredCacheIndexes.push(o.index),this.itemSizeCache=new Map(this.itemSizeCache.set(o.key,r)),this.notify(!1))},this.measureElement=e=>{if(!e){this.elementsCache.forEach((r,o)=>{r.isConnected||(this.observer.unobserve(r),this.elementsCache.delete(o))});return}this._measureElement(e,void 0)},this.getVirtualItems=Te(()=>[this.getIndexes(),this.getMeasurements()],(e,r)=>{let o=[];for(let n=0,s=e.length;n<s;n++){let l=e[n],c=r[l];o.push(c)}return o},{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=e=>{let r=this.getMeasurements();if(r.length!==0)return Ut(r[bi(0,r.length-1,o=>Ut(r[o]).start,e)])},this.getOffsetForAlignment=(e,r)=>{let o=this.getSize(),n=this.getScrollOffset();r==="auto"&&e>=n+o&&(r="end"),r==="end"&&(e-=o);let s=this.options.horizontal?"scrollWidth":"scrollHeight",c=(this.scrollElement?"document"in this.scrollElement?this.scrollElement.document.documentElement[s]:this.scrollElement[s]:0)-o;return Math.max(Math.min(c,e),0)},this.getOffsetForIndex=(e,r="auto")=>{e=Math.max(0,Math.min(e,this.options.count-1));let o=this.measurementsCache[e];if(!o)return;let n=this.getSize(),s=this.getScrollOffset();if(r==="auto")if(o.end>=s+n-this.options.scrollPaddingEnd)r="end";else if(o.start<=s+this.options.scrollPaddingStart)r="start";else return[s,r];let l=o.start-this.options.scrollPaddingStart+(o.size-n)/2;switch(r){case"center":return[this.getOffsetForAlignment(l,r),r];case"end":return[this.getOffsetForAlignment(o.end+this.options.scrollPaddingEnd,r),r];default:return[this.getOffsetForAlignment(o.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:o}={})=>{this.cancelScrollToIndex(),o==="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:o})},this.scrollToIndex=(e,{align:r="auto",behavior:o}={})=>{e=Math.max(0,Math.min(e,this.options.count-1)),this.cancelScrollToIndex(),o==="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,l]=n;this._scrollToOffset(s,{adjustments:void 0,behavior:o}),o!=="smooth"&&this.isDynamicMode()&&this.targetWindow&&(this.scrollToIndexTimeoutId=this.targetWindow.setTimeout(()=>{if(this.scrollToIndexTimeoutId=null,this.elementsCache.has(this.options.getItemKey(e))){let[b]=Ut(this.getOffsetForIndex(e,l));mi(b,this.getScrollOffset())||this.scrollToIndex(e,{align:l,behavior:o})}else this.scrollToIndex(e,{align:l,behavior:o})}))},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(),o;return r.length===0?o=this.options.paddingStart:o=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(o-this.options.scrollMargin+this.options.paddingEnd,0)},this._scrollToOffset=(e,{adjustments:r,behavior:o})=>{this.options.scrollToFn(e,{behavior:o,adjustments:r},this)},this.measure=()=>{this.itemSizeCache=new Map,this.notify(!1)},this.setOptions(t)}},bi=(i,t,e,r)=>{for(;i<=t;){let o=(i+t)/2|0,n=e(o);if(n<r)i=o+1;else if(n>r)t=o-1;else return o}return i>0?i-1:0};function Vs({measurements:i,outerSize:t,scrollOffset:e}){let r=i.length-1,n=bi(0,r,l=>i[l].start,e),s=n;for(;s<r&&i[s].end<e+t;)s++;return{startIndex:n,endIndex:s}}var Mr=class{constructor(t,e){this.cleanup=()=>{},(this.host=t).addController(this);let r={...e,onChange:(o,n)=>{var s;this.host.updateComplete.then(()=>this.host.requestUpdate()),(s=e.onChange)==null||s.call(e,o,n)}};this.virtualizer=new Vt(r)}getVirtualizer(){return this.virtualizer}async hostConnected(){this.cleanup=this.virtualizer._didMount()}hostUpdated(){this.virtualizer._willUpdate()}hostDisconnected(){this.cleanup()}},Ht=class extends Mr{constructor(t,e){super(t,{observeElementRect:ui,observeElementOffset:gi,scrollToFn:fi,...e})}};var{I:Wg}=io;var vi=i=>i.strings===void 0;var at=(i,t)=>{var r;let e=i._$AN;if(e===void 0)return!1;for(let o of e)(r=o._$AO)==null||r.call(o,t,!1),at(o,t);return!0},Gt=i=>{let t,e;do{if((t=i._$AM)===void 0)break;e=t._$AN,e.delete(i),i=t}while((e==null?void 0:e.size)===0)},yi=i=>{for(let t;t=i._$AM;i=t){let e=t._$AN;if(e===void 0)t._$AN=e=new Set;else if(e.has(i))break;e.add(i),Bs(t)}};function Hs(i){this._$AN!==void 0?(Gt(this),this._$AM=i,yi(this)):this._$AM=i}function Gs(i,t=!1,e=0){let r=this._$AH,o=this._$AN;if(o!==void 0&&o.size!==0)if(t)if(Array.isArray(r))for(let n=e;n<r.length;n++)at(r[n],!1),Gt(r[n]);else r!=null&&(at(r,!1),Gt(r));else at(this,i)}var Bs=i=>{var t,e;i.type==Ct.CHILD&&((t=i._$AP)!=null||(i._$AP=Gs),(e=i._$AQ)!=null||(i._$AQ=Hs))},Bt=class extends Le{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,e,r){super._$AT(t,e,r),yi(this),this.isConnected=t._$AU}_$AO(t,e=!0){var r,o;t!==this.isConnected&&(this.isConnected=t,t?(r=this.reconnected)==null||r.call(this):(o=this.disconnected)==null||o.call(this)),e&&(at(this,t),Gt(this))}setValue(t){if(vi(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 xi=()=>new $r,$r=class{},Or=new WeakMap,Ei=Ke(class extends Bt{render(i){return p}update(i,[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=i.options)==null?void 0:r.host,this.rt(this.ct=i.element)),p}rt(i){var t;if(this.isConnected||(i=void 0),typeof this.Y=="function"){let e=(t=this.ht)!=null?t:globalThis,r=Or.get(e);r===void 0&&(r=new WeakMap,Or.set(e,r)),r.get(this.Y)!==void 0&&this.Y.call(this.ht,void 0),r.set(this.Y,i),i!==void 0&&this.Y.call(this.ht,i)}else this.Y.value=i}get lt(){var i,t,e;return typeof this.Y=="function"?(t=Or.get((i=this.ht)!=null?i: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 Fs=[h`
2020
+ color: hsl(${Math.max(0,Math.min(120-120*Ft,120))}deg 100% 31%);`,e==null?void 0:e.key)}return(f=e==null?void 0:e.onChange)==null||f.call(e,o),o}}function Ut(i,t){if(i===void 0)throw new Error(`Unexpected undefined${t?`: ${t}`:""}`);return i}var pi=(i,t)=>Math.abs(i-t)<1,ui=(i,t,e)=>{let r;return function(...o){i.clearTimeout(r),r=i.setTimeout(()=>t.apply(this,o),e)}};var Ds=i=>i,Ps=i=>{let t=Math.max(i.startIndex-i.overscan,0),e=Math.min(i.endIndex+i.overscan,i.count-1),r=[];for(let o=t;o<=e;o++)r.push(o);return r},bi=(i,t)=>{let e=i.scrollElement;if(!e)return;let r=i.targetWindow;if(!r)return;let o=s=>{let{width:l,height:c}=s;t({width:Math.round(l),height:Math.round(c)})};if(o(e.getBoundingClientRect()),!r.ResizeObserver)return()=>{};let n=new r.ResizeObserver(s=>{let l=s[0];if(l!=null&&l.borderBoxSize){let c=l.borderBoxSize[0];if(c){o({width:c.inlineSize,height:c.blockSize});return}}o(e.getBoundingClientRect())});return n.observe(e,{box:"border-box"}),()=>{n.unobserve(e)}},gi={passive:!0};var Us=typeof window>"u"?!0:"onscrollend"in window,fi=(i,t)=>{let e=i.scrollElement;if(!e)return;let r=i.targetWindow;if(!r)return;let o=0,n=i.options.useScrollendEvent&&Us?()=>{}:ui(r,()=>{t(o,!1)},i.options.isScrollingResetDelay),s=f=>()=>{let{horizontal:b,isRtl:v}=i.options;o=b?e.scrollLeft*(v&&-1||1):e.scrollTop,n(),t(o,f)},l=s(!0),c=s(!1);return c(),e.addEventListener("scroll",l,gi),e.addEventListener("scrollend",c,gi),()=>{e.removeEventListener("scroll",l),e.removeEventListener("scrollend",c)}};var Vs=(i,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(i.getBoundingClientRect()[e.options.horizontal?"width":"height"])};var vi=(i,{adjustments:t=0,behavior:e},r)=>{var o,n;let s=i+t;(n=(o=r.scrollElement)==null?void 0:o.scrollTo)==null||n.call(o,{[r.options.horizontal?"left":"top"]:s,behavior:e})},Vt=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(o=>{o.forEach(n=>{this._measureElement(n.target,n)})}));return{disconnect:()=>{var o;(o=r())==null||o.disconnect(),e=null},observe:o=>{var n;return(n=r())==null?void 0:n.observe(o,{box:"border-box"})},unobserve:o=>{var n;return(n=r())==null?void 0:n.unobserve(o)}}})(),this.range=null,this.setOptions=e=>{Object.entries(e).forEach(([r,o])=>{typeof o>"u"&&delete e[r]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:Ds,rangeExtractor:Ps,onChange:()=>{},measureElement:Vs,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,o;(o=(r=this.options).onChange)==null||o.call(r,this,e)},this.maybeNotify=Te(()=>(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 o;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=(o=(e=this.scrollElement)==null?void 0:e.window)!=null?o: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 o=new Map,n=new Map;for(let s=r-1;s>=0;s--){let l=e[s];if(o.has(l.lane))continue;let c=n.get(l.lane);if(c==null||l.end>c.end?n.set(l.lane,l):l.end<c.end&&o.set(l.lane,!0),o.size===this.options.lanes)break}return n.size===this.options.lanes?Array.from(n.values()).sort((s,l)=>s.end===l.end?s.index-l.index:s.end-l.end)[0]:void 0},this.getMeasurementOptions=Te(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled],(e,r,o,n,s)=>(this.pendingMeasuredCacheIndexes=[],{count:e,paddingStart:r,scrollMargin:o,getItemKey:n,enabled:s}),{key:!1}),this.getMeasurements=Te(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:e,paddingStart:r,scrollMargin:o,getItemKey:n,enabled:s},l)=>{if(!s)return this.measurementsCache=[],this.itemSizeCache.clear(),[];this.measurementsCache.length===0&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(b=>{this.itemSizeCache.set(b.key,b.size)}));let c=this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[];let f=this.measurementsCache.slice(0,c);for(let b=c;b<e;b++){let v=n(b),C=this.options.lanes===1?f[b-1]:this.getFurthestMeasurement(f,b),R=C?C.end+this.options.gap:r+o,$=l.get(v),de=typeof $=="number"?$:this.options.estimateSize(b),Ft=R+de,lt=C?C.lane:b%this.options.lanes;f[b]={index:b,start:R,size:de,end:Ft,key:v,lane:lt}}return this.measurementsCache=f,f},{key:!1,debug:()=>this.options.debug}),this.calculateRange=Te(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset()],(e,r,o)=>this.range=e.length>0&&r>0?Hs({measurements:e,outerSize:r,scrollOffset:o}):null,{key:!1,debug:()=>this.options.debug}),this.getIndexes=Te(()=>{let e=null,r=null,o=this.calculateRange();return o&&(e=o.startIndex,r=o.endIndex),[this.options.rangeExtractor,this.options.overscan,this.options.count,e,r]},(e,r,o,n,s)=>n===null||s===null?[]:e({startIndex:n,endIndex:s,overscan:r,count:o}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=e=>{let r=this.options.indexAttribute,o=e.getAttribute(r);return o?parseInt(o,10):(console.warn(`Missing attribute name '${r}={index}' on measured element.`),-1)},this._measureElement=(e,r)=>{let o=this.indexFromElement(e),n=this.measurementsCache[o];if(!n)return;let s=n.key,l=this.elementsCache.get(s);l!==e&&(l&&this.observer.unobserve(l),this.observer.observe(e),this.elementsCache.set(s,e)),e.isConnected&&this.resizeItem(o,this.options.measureElement(e,r,this))},this.resizeItem=(e,r)=>{var l;let o=this.measurementsCache[e];if(!o)return;let n=(l=this.itemSizeCache.get(o.key))!=null?l:o.size,s=r-n;s!==0&&((this.shouldAdjustScrollPositionOnItemSizeChange!==void 0?this.shouldAdjustScrollPositionOnItemSizeChange(o,s,this):o.start<this.getScrollOffset()+this.scrollAdjustments)&&this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=s,behavior:void 0}),this.pendingMeasuredCacheIndexes.push(o.index),this.itemSizeCache=new Map(this.itemSizeCache.set(o.key,r)),this.notify(!1))},this.measureElement=e=>{if(!e){this.elementsCache.forEach((r,o)=>{r.isConnected||(this.observer.unobserve(r),this.elementsCache.delete(o))});return}this._measureElement(e,void 0)},this.getVirtualItems=Te(()=>[this.getIndexes(),this.getMeasurements()],(e,r)=>{let o=[];for(let n=0,s=e.length;n<s;n++){let l=e[n],c=r[l];o.push(c)}return o},{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=e=>{let r=this.getMeasurements();if(r.length!==0)return Ut(r[yi(0,r.length-1,o=>Ut(r[o]).start,e)])},this.getOffsetForAlignment=(e,r)=>{let o=this.getSize(),n=this.getScrollOffset();r==="auto"&&e>=n+o&&(r="end"),r==="end"&&(e-=o);let s=this.options.horizontal?"scrollWidth":"scrollHeight",c=(this.scrollElement?"document"in this.scrollElement?this.scrollElement.document.documentElement[s]:this.scrollElement[s]:0)-o;return Math.max(Math.min(c,e),0)},this.getOffsetForIndex=(e,r="auto")=>{e=Math.max(0,Math.min(e,this.options.count-1));let o=this.measurementsCache[e];if(!o)return;let n=this.getSize(),s=this.getScrollOffset();if(r==="auto")if(o.end>=s+n-this.options.scrollPaddingEnd)r="end";else if(o.start<=s+this.options.scrollPaddingStart)r="start";else return[s,r];let l=o.start-this.options.scrollPaddingStart+(o.size-n)/2;switch(r){case"center":return[this.getOffsetForAlignment(l,r),r];case"end":return[this.getOffsetForAlignment(o.end+this.options.scrollPaddingEnd,r),r];default:return[this.getOffsetForAlignment(o.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:o}={})=>{this.cancelScrollToIndex(),o==="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:o})},this.scrollToIndex=(e,{align:r="auto",behavior:o}={})=>{e=Math.max(0,Math.min(e,this.options.count-1)),this.cancelScrollToIndex(),o==="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,l]=n;this._scrollToOffset(s,{adjustments:void 0,behavior:o}),o!=="smooth"&&this.isDynamicMode()&&this.targetWindow&&(this.scrollToIndexTimeoutId=this.targetWindow.setTimeout(()=>{if(this.scrollToIndexTimeoutId=null,this.elementsCache.has(this.options.getItemKey(e))){let[f]=Ut(this.getOffsetForIndex(e,l));pi(f,this.getScrollOffset())||this.scrollToIndex(e,{align:l,behavior:o})}else this.scrollToIndex(e,{align:l,behavior:o})}))},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(),o;return r.length===0?o=this.options.paddingStart:o=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(o-this.options.scrollMargin+this.options.paddingEnd,0)},this._scrollToOffset=(e,{adjustments:r,behavior:o})=>{this.options.scrollToFn(e,{behavior:o,adjustments:r},this)},this.measure=()=>{this.itemSizeCache=new Map,this.notify(!1)},this.setOptions(t)}},yi=(i,t,e,r)=>{for(;i<=t;){let o=(i+t)/2|0,n=e(o);if(n<r)i=o+1;else if(n>r)t=o-1;else return o}return i>0?i-1:0};function Hs({measurements:i,outerSize:t,scrollOffset:e}){let r=i.length-1,n=yi(0,r,l=>i[l].start,e),s=n;for(;s<r&&i[s].end<e+t;)s++;return{startIndex:n,endIndex:s}}var Mr=class{constructor(t,e){this.cleanup=()=>{},(this.host=t).addController(this);let r={...e,onChange:(o,n)=>{var s;this.host.updateComplete.then(()=>this.host.requestUpdate()),(s=e.onChange)==null||s.call(e,o,n)}};this.virtualizer=new Vt(r)}getVirtualizer(){return this.virtualizer}async hostConnected(){this.cleanup=this.virtualizer._didMount()}hostUpdated(){this.virtualizer._willUpdate()}hostDisconnected(){this.cleanup()}},Ht=class extends Mr{constructor(t,e){super(t,{observeElementRect:bi,observeElementOffset:fi,scrollToFn:vi,...e})}};var{I:Wg}=no;var xi=i=>i.strings===void 0;var at=(i,t)=>{var r;let e=i._$AN;if(e===void 0)return!1;for(let o of e)(r=o._$AO)==null||r.call(o,t,!1),at(o,t);return!0},Gt=i=>{let t,e;do{if((t=i._$AM)===void 0)break;e=t._$AN,e.delete(i),i=t}while((e==null?void 0:e.size)===0)},Ei=i=>{for(let t;t=i._$AM;i=t){let e=t._$AN;if(e===void 0)t._$AN=e=new Set;else if(e.has(i))break;e.add(i),Fs(t)}};function Gs(i){this._$AN!==void 0?(Gt(this),this._$AM=i,Ei(this)):this._$AM=i}function Bs(i,t=!1,e=0){let r=this._$AH,o=this._$AN;if(o!==void 0&&o.size!==0)if(t)if(Array.isArray(r))for(let n=e;n<r.length;n++)at(r[n],!1),Gt(r[n]);else r!=null&&(at(r,!1),Gt(r));else at(this,i)}var Fs=i=>{var t,e;i.type==Ct.CHILD&&((t=i._$AP)!=null||(i._$AP=Bs),(e=i._$AQ)!=null||(i._$AQ=Gs))},Bt=class extends Le{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,e,r){super._$AT(t,e,r),Ei(this),this.isConnected=t._$AU}_$AO(t,e=!0){var r,o;t!==this.isConnected&&(this.isConnected=t,t?(r=this.reconnected)==null||r.call(this):(o=this.disconnected)==null||o.call(this)),e&&(at(this,t),Gt(this))}setValue(t){if(xi(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 Ti=()=>new $r,$r=class{},Or=new WeakMap,_i=Ke(class extends Bt{render(i){return p}update(i,[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=i.options)==null?void 0:r.host,this.rt(this.ct=i.element)),p}rt(i){var t;if(this.isConnected||(i=void 0),typeof this.Y=="function"){let e=(t=this.ht)!=null?t:globalThis,r=Or.get(e);r===void 0&&(r=new WeakMap,Or.set(e,r)),r.get(this.Y)!==void 0&&this.Y.call(this.ht,void 0),r.set(this.Y,i),i!==void 0&&this.Y.call(this.ht,i)}else this.Y.value=i}get lt(){var i,t,e;return typeof this.Y=="function"?(t=Or.get((i=this.ht)!=null?i: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 Ys=[h`
2021
2021
  :host {
2022
2022
  .mdc-virtualizedlist-scroll {
2023
2023
  height: 100%;
@@ -2029,19 +2029,19 @@
2029
2029
  width: 100%;
2030
2030
  }
2031
2031
  }
2032
- `],Ti=Fs;var _i=u.constructTagName("virtualizedlist"),pf=u.constructTagName("virtualizedwrapper"),Ai={VIRTUALIZER_PROPS:{count:0,estimateSize:()=>0}};var _e=class extends g{constructor(){super();this.virtualizerprops=Ai.VIRTUALIZER_PROPS;this.scrollElementRef=xi();this.virtualizerController=null,this.virtualizer=null,this.setlistdata=null,this.onscroll=null}update(e){var r;super.update(e),e.get("virtualizerprops")&&((r=this.virtualizer)==null||r.setOptions({...this.virtualizer.options,...this.virtualizerprops}),this.requestUpdate())}connectedCallback(){var e;this.virtualizerController=new Ht(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 c,b;this.virtualizer=e.getVirtualizer();let{getVirtualItems:r,measureElement:o,getTotalSize:n}=this.virtualizer,s=r(),l={position:"absolute",top:0,left:0,width:"100%",transform:`translateY(${(b=(c=s[0])==null?void 0:c.start)!=null?b:0}px)`};return this.setlistdata&&this.setlistdata({virtualItems:s,measureElement:o,listStyle:l}),m`<div
2032
+ `],Ai=Ys;var Si=u.constructTagName("virtualizedlist"),hb=u.constructTagName("virtualizedwrapper"),Ii={VIRTUALIZER_PROPS:{count:0,estimateSize:()=>0}};var _e=class extends g{constructor(){super();this.virtualizerprops=Ii.VIRTUALIZER_PROPS;this.scrollElementRef=Ti();this.virtualizerController=null,this.virtualizer=null,this.setlistdata=null,this.onscroll=null}update(e){var r;super.update(e),e.get("virtualizerprops")&&((r=this.virtualizer)==null||r.setOptions({...this.virtualizer.options,...this.virtualizerprops}),this.requestUpdate())}connectedCallback(){var e;this.virtualizerController=new Ht(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 c,f;this.virtualizer=e.getVirtualizer();let{getVirtualItems:r,measureElement:o,getTotalSize:n}=this.virtualizer,s=r(),l={position:"absolute",top:0,left:0,width:"100%",transform:`translateY(${(f=(c=s[0])==null?void 0:c.start)!=null?f:0}px)`};return this.setlistdata&&this.setlistdata({virtualItems:s,measureElement:o,listStyle:l}),m`<div
2033
2033
  class="mdc-virtualizedlist-container"
2034
2034
  style="height: ${n()}px;"
2035
2035
  >
2036
2036
  <slot></slot>
2037
2037
  </div>`}render(){return m`<div
2038
- ${Ei(this.scrollElementRef)}
2038
+ ${_i(this.scrollElementRef)}
2039
2039
  class="mdc-virtualizedlist-scroll"
2040
2040
  @scroll=${this.onscroll&&this.onscroll}
2041
2041
  >
2042
2042
  ${this.virtualizerController?this.getVirtualizedListWrapper(this.virtualizerController):m``}
2043
2043
  </div>
2044
- `}};_e.styles=[...g.styles,...Ti],a([d({type:Function,attribute:"onscroll"})],_e.prototype,"onscroll",2),a([d({type:Object,attribute:"virtualizerprops"})],_e.prototype,"virtualizerprops",2),a([d({type:Function,attribute:"setlistdata"})],_e.prototype,"setlistdata",2);var Dr=_e;Dr.register(_i);var Ys=Dr;var Xs=[E,h`
2044
+ `}};_e.styles=[...g.styles,...Ai],a([d({type:Function,attribute:"onscroll"})],_e.prototype,"onscroll",2),a([d({type:Object,attribute:"virtualizerprops"})],_e.prototype,"virtualizerprops",2),a([d({type:Function,attribute:"setlistdata"})],_e.prototype,"setlistdata",2);var Dr=_e;Dr.register(Si);var Xs=Dr;var Zs=[E,h`
2045
2045
 
2046
2046
  :host {
2047
2047
  --mdc-tab-content-gap: 0.5rem;
@@ -2284,7 +2284,7 @@
2284
2284
  color: var(--mdc-tab-pill-active-color-disabled);
2285
2285
  }
2286
2286
 
2287
- `,...S()],Si=Xs;var Ii=u.constructTagName("tab"),Zs={GLASS:"glass",LINE:"line",PILL:"pill"},Ni={TAB_VARIANT:Zs.PILL};var Ue=class extends P(te){constructor(){super();this.variant=Ni.TAB_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=`${et(this.iconName)}-filled`):this.prevIconName&&(this.iconName=this.prevIconName))}setActive(e,r){e.setAttribute("aria-selected",r?"true":"false"),this.modifyIconName(r)}executeAction(){this.active=!this.active}render(){return m`
2287
+ `,...S()],Ni=Zs;var ki=u.constructTagName("tab"),Pr={GLASS:"glass",LINE:"line",PILL:"pill"},Ur={VARIANT:Pr.PILL};var Ue=class extends P(te){constructor(){super();this.variant=Ur.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=`${et(this.iconName)}-filled`):this.prevIconName&&(this.iconName=this.prevIconName))}setVariant(e){this.setAttribute("variant",Object.values(Pr).includes(e)?e:Ur.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 m`
2288
2288
  <div part="container">
2289
2289
  <slot name="badge" part="badge"></slot>
2290
2290
  ${this.iconName?m` <mdc-icon name="${this.iconName}" size="1" length-unit="rem" part="icon"></mdc-icon>`:p}
@@ -2297,7 +2297,7 @@
2297
2297
  >`:p}
2298
2298
  </div>
2299
2299
  <div part="indicator"></div>
2300
- `}};Ue.styles=[...te.styles,...Si],a([d({type:String,reflect:!0})],Ue.prototype,"text",2),a([d({type:String,reflect:!0})],Ue.prototype,"variant",2);var Pr=Ue;Pr.register(Ii);var qs=Pr;})();
2300
+ `}};Ue.styles=[...te.styles,...Ni],a([d({type:String,reflect:!0})],Ue.prototype,"text",2),a([d({type:String,reflect:!0})],Ue.prototype,"variant",2);var Vr=Ue;Vr.register(ki);var qs=Vr;})();
2301
2301
  /*! Bundled license information:
2302
2302
 
2303
2303
  @lit/reactive-element/decorators/custom-element.js: