@momentum-design/components 0.62.2 → 0.62.3

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 yc=Object.defineProperty;var xc=Object.getOwnPropertyDescriptor;var n=(i,t,e,r)=>{for(var o=r>1?void 0:r?xc(t,e):t,a=i.length-1,s;a>=0;a--)(s=i[a])&&(o=(r?s(t,e,o):s(o))||o);return r&&o&&yc(t,e,o),o};var so=globalThis,no=so.ShadowRoot&&(so.ShadyCSS===void 0||so.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,bi=Symbol(),qa=new WeakMap,Tr=class{constructor(t,e,r){if(this._$cssResult$=!0,r!==bi)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(no&&t===void 0){let r=e!==void 0&&e.length===1;r&&(t=qa.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),r&&qa.set(e,t))}return t}toString(){return this.cssText}},Za=i=>new Tr(typeof i=="string"?i:i+"",void 0,bi),u=(i,...t)=>{let e=i.length===1?i[0]:t.reduce((r,o,a)=>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[a+1],i[0]);return new Tr(e,i,bi)},vi=(i,t)=>{if(no)i.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(let e of t){let r=document.createElement("style"),o=so.litNonce;o!==void 0&&r.setAttribute("nonce",o),r.textContent=e.cssText,i.appendChild(r)}},lo=no?i=>i:i=>i instanceof CSSStyleSheet?(t=>{let e="";for(let r of t.cssRules)e+=r.cssText;return Za(e)})(i):i;var{is:Ec,defineProperty:Tc,getOwnPropertyDescriptor:Ac,getOwnPropertyNames:Sc,getOwnPropertySymbols:Ic,getPrototypeOf:wc}=Object,je=globalThis,Xa=je.trustedTypes,Cc=Xa?Xa.emptyScript:"",gi=je.reactiveElementPolyfillSupport,Ar=(i,t)=>i,Sr={toAttribute(i,t){switch(t){case Boolean:i=i?Cc: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}},co=(i,t)=>!Ec(i,t),Ka={attribute:!0,type:String,converter:Sr,reflect:!1,hasChanged:co},ja,Qa;(ja=Symbol.metadata)!=null||(Symbol.metadata=Symbol("metadata")),(Qa=je.litPropertyMetadata)!=null||(je.litPropertyMetadata=new WeakMap);var Re=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=Ka){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&&Tc(this.prototype,t,o)}}static getPropertyDescriptor(t,e,r){var s;let{get:o,set:a}=(s=Ac(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 d=o==null?void 0:o.call(this);a.call(this,l),this.requestUpdate(t,d,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){var e;return(e=this.elementProperties.get(t))!=null?e:Ka}static _$Ei(){if(this.hasOwnProperty(Ar("elementProperties")))return;let t=wc(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(Ar("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Ar("properties"))){let e=this.properties,r=[...Sc(e),...Ic(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(lo(o))}else t!==void 0&&e.push(lo(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 vi(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 a;let r=this.constructor.elementProperties.get(t),o=this.constructor._$Eu(t,r);if(o!==void 0&&r.reflect===!0){let s=(((a=r.converter)==null?void 0:a.toAttribute)!==void 0?r.converter:Sr).toAttribute(e,r.type);this._$Em=t,s==null?this.removeAttribute(o):this.setAttribute(o,s),this._$Em=null}}_$AK(t,e){var a;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}:((a=s.converter)==null?void 0:a.fromAttribute)!==void 0?s.converter:Sr;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:co)(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 a=this.constructor.elementProperties;if(a.size>0)for(let[s,l]of a)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(a=>{var s;return(s=a.hostUpdate)==null?void 0:s.call(a)}),this.update(e)):this._$EU()}catch(a){throw t=!1,this._$EU(),a}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){}},Ja;Re.elementStyles=[],Re.shadowRootOptions={mode:"open"},Re[Ar("elementProperties")]=new Map,Re[Ar("finalized")]=new Map,gi==null||gi({ReactiveElement:Re}),((Ja=je.reactiveElementVersions)!=null?Ja:je.reactiveElementVersions=[]).push("2.0.4");var wr=globalThis,mo=wr.trustedTypes,es=mo?mo.createPolicy("lit-html",{createHTML:i=>i}):void 0,Ei="$lit$",Oe=`lit$${Math.random().toFixed(9).slice(2)}$`,Ti="?"+Oe,kc=`<${Ti}>`,mt=document,Cr=()=>mt.createComment(""),kr=i=>i===null||typeof i!="object"&&typeof i!="function",Ai=Array.isArray,ns=i=>Ai(i)||typeof(i==null?void 0:i[Symbol.iterator])=="function",yi=`[
2
- \f\r]`,Ir=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,ts=/-->/g,rs=/>/g,ct=RegExp(`>|${yi}(?:([^\\s"'>=/]+)(${yi}*=${yi}*(?:[^
3
- \f\r"'\`<>=]|("|')|))|$)`,"g"),os=/'/g,is=/"/g,ls=/^(?:script|style|textarea|title)$/i,Si=i=>(t,...e)=>({_$litType$:i,strings:t,values:e}),m=Si(1),mp=Si(2),pp=Si(3),Me=Symbol.for("lit-noChange"),g=Symbol.for("lit-nothing"),as=new WeakMap,dt=mt.createTreeWalker(mt,129);function cs(i,t){if(!Ai(i)||!i.hasOwnProperty("raw"))throw Error("invalid template strings array");return es!==void 0?es.createHTML(t):t}var ds=(i,t)=>{let e=i.length-1,r=[],o,a=t===2?"<svg>":t===3?"<math>":"",s=Ir;for(let l=0;l<e;l++){let d=i[l],p,h,b=-1,x=0;for(;x<d.length&&(s.lastIndex=x,h=s.exec(d),h!==null);)x=s.lastIndex,s===Ir?h[1]==="!--"?s=ts:h[1]!==void 0?s=rs:h[2]!==void 0?(ls.test(h[2])&&(o=RegExp("</"+h[2],"g")),s=ct):h[3]!==void 0&&(s=ct):s===ct?h[0]===">"?(s=o!=null?o:Ir,b=-1):h[1]===void 0?b=-2:(b=s.lastIndex-h[2].length,p=h[1],s=h[3]===void 0?ct:h[3]==='"'?is:os):s===is||s===os?s=ct:s===ts||s===rs?s=Ir:(s=ct,o=void 0);let y=s===ct&&i[l+1].startsWith("/>")?" ":"";a+=s===Ir?d+kc:b>=0?(r.push(p),d.slice(0,b)+Ei+d.slice(b)+Oe+y):d+Oe+(b===-2?l:y)}return[cs(i,a+(i[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),r]},Nr=class i{constructor({strings:t,_$litType$:e},r){let o;this.parts=[];let a=0,s=0,l=t.length-1,d=this.parts,[p,h]=ds(t,e);if(this.el=i.createElement(p,r),dt.currentNode=this.el.content,e===2||e===3){let b=this.el.content.firstChild;b.replaceWith(...b.childNodes)}for(;(o=dt.nextNode())!==null&&d.length<l;){if(o.nodeType===1){if(o.hasAttributes())for(let b of o.getAttributeNames())if(b.endsWith(Ei)){let x=h[s++],y=o.getAttribute(b).split(Oe),E=/([.?@])?(.*)/.exec(x);d.push({type:1,index:a,name:E[2],strings:y,ctor:E[1]==="."?ho:E[1]==="?"?uo:E[1]==="@"?fo:ht}),o.removeAttribute(b)}else b.startsWith(Oe)&&(d.push({type:6,index:a}),o.removeAttribute(b));if(ls.test(o.tagName)){let b=o.textContent.split(Oe),x=b.length-1;if(x>0){o.textContent=mo?mo.emptyScript:"";for(let y=0;y<x;y++)o.append(b[y],Cr()),dt.nextNode(),d.push({type:2,index:++a});o.append(b[x],Cr())}}}else if(o.nodeType===8)if(o.data===Ti)d.push({type:2,index:a});else{let b=-1;for(;(b=o.data.indexOf(Oe,b+1))!==-1;)d.push({type:7,index:a}),b+=Oe.length-1}a++}}static createElement(t,e){let r=mt.createElement("template");return r.innerHTML=t,r}};function pt(i,t,e=i,r){var s,l,d;if(t===Me)return t;let o=r!==void 0?(s=e.o)==null?void 0:s[r]:e.l,a=kr(t)?void 0:t._$litDirective$;return(o==null?void 0:o.constructor)!==a&&((l=o==null?void 0:o._$AO)==null||l.call(o,!1),a===void 0?o=void 0:(o=new a(i),o._$AT(i,e,r)),r!==void 0?((d=e.o)!=null?d:e.o=[])[r]=o:e.l=o),o!==void 0&&(t=pt(i,o._$AS(i,t.values),o,r)),t}var po=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 p;let{el:{content:e},parts:r}=this._$AD,o=((p=t==null?void 0:t.creationScope)!=null?p:mt).importNode(e,!0);dt.currentNode=o;let a=dt.nextNode(),s=0,l=0,d=r[0];for(;d!==void 0;){if(s===d.index){let h;d.type===2?h=new Bt(a,a.nextSibling,this,t):d.type===1?h=new d.ctor(a,d.name,d.strings,this,t):d.type===6&&(h=new bo(a,this,t)),this._$AV.push(h),d=r[++l]}s!==(d==null?void 0:d.index)&&(a=dt.nextNode(),s++)}return dt.currentNode=mt,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++}},Bt=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 a;this.type=2,this._$AH=g,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=r,this.options=o,this.v=(a=o==null?void 0:o.isConnected)!=null?a:!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=pt(this,t,e),kr(t)?t===g||t==null||t===""?(this._$AH!==g&&this._$AR(),this._$AH=g):t!==this._$AH&&t!==Me&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):ns(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!==g&&kr(this._$AH)?this._$AA.nextSibling.data=t:this.T(mt.createTextNode(t)),this._$AH=t}$(t){var a;let{values:e,_$litType$:r}=t,o=typeof r=="number"?this._$AC(t):(r.el===void 0&&(r.el=Nr.createElement(cs(r.h,r.h[0]),this.options)),r);if(((a=this._$AH)==null?void 0:a._$AD)===o)this._$AH.p(e);else{let s=new po(o,this),l=s.u(this.options);s.p(e),this.T(l),this._$AH=s}}_$AC(t){let e=as.get(t.strings);return e===void 0&&as.set(t.strings,e=new Nr(t)),e}k(t){Ai(this._$AH)||(this._$AH=[],this._$AR());let e=this._$AH,r,o=0;for(let a of t)o===e.length?e.push(r=new i(this.O(Cr()),this.O(Cr()),this,this.options)):r=e[o],r._$AI(a),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))}},ht=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,r,o,a){this.type=1,this._$AH=g,this._$AN=void 0,this.element=t,this.name=e,this._$AM=o,this.options=a,r.length>2||r[0]!==""||r[1]!==""?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=g}_$AI(t,e=this,r,o){let a=this.strings,s=!1;if(a===void 0)t=pt(this,t,e,0),s=!kr(t)||t!==this._$AH&&t!==Me,s&&(this._$AH=t);else{let l=t,d,p;for(t=a[0],d=0;d<a.length-1;d++)p=pt(this,l[r+d],e,d),p===Me&&(p=this._$AH[d]),s||(s=!kr(p)||p!==this._$AH[d]),p===g?t=g:t!==g&&(t+=(p!=null?p:"")+a[d+1]),this._$AH[d]=p}s&&!o&&this.j(t)}j(t){t===g?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t!=null?t:"")}},ho=class extends ht{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===g?void 0:t}},uo=class extends ht{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==g)}},fo=class extends ht{constructor(t,e,r,o,a){super(t,e,r,o,a),this.type=5}_$AI(t,e=this){var s;if((t=(s=pt(this,t,e,0))!=null?s:g)===Me)return;let r=this._$AH,o=t===g&&r!==g||t.capture!==r.capture||t.once!==r.once||t.passive!==r.passive,a=t!==g&&(r===g||o);o&&this.element.removeEventListener(this.name,this,r),a&&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)}},bo=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){pt(this,t)}},ms={M:Ei,P:Oe,A:Ti,C:1,L:ds,R:po,D:ns,V:pt,I:Bt,H:ht,N:uo,U:fo,B:ho,F:bo},xi=wr.litHtmlPolyfillSupport,ss;xi==null||xi(Nr,Bt),((ss=wr.litHtmlVersions)!=null?ss:wr.litHtmlVersions=[]).push("3.2.0");var ps=(i,t,e)=>{var a,s;let r=(a=e==null?void 0:e.renderBefore)!=null?a:t,o=r._$litPart$;if(o===void 0){let l=(s=e==null?void 0:e.renderBefore)!=null?s:null;r._$litPart$=o=new Bt(t.insertBefore(Cr(),l),l,void 0,e!=null?e:{})}return o._$AI(i),o};var Qe=class extends Re{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=ps(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 Me}},hs;Qe._$litElement$=!0,Qe.finalized=!0,(hs=globalThis.litElementHydrateSupport)==null||hs.call(globalThis,{LitElement:Qe});var Ii=globalThis.litElementPolyfillSupport;Ii==null||Ii({LitElement:Qe});var us;((us=globalThis.litElementVersions)!=null?us:globalThis.litElementVersions=[]).push("4.1.0");var Nc={attribute:!0,type:String,converter:Sr,reflect:!1,hasChanged:co},_c=(i=Nc,t,e)=>{let{kind:r,metadata:o}=e,a=globalThis.litPropertyMetadata.get(o);if(a===void 0&&globalThis.litPropertyMetadata.set(o,a=new Map),a.set(e.name,i),r==="accessor"){let{name:s}=e;return{set(l){let d=t.get.call(this);t.set.call(this,l),this.requestUpdate(s,d,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 d=this[s];t.call(this,l),this.requestUpdate(s,d,i)}}throw Error("Unsupported decorator location: "+r)};function c(i){return(t,e)=>typeof e=="object"?_c(i,t,e):((r,o,a)=>{let s=o.hasOwnProperty(a);return o.constructor.createProperty(a,s?{...r,wrapped:!0}:r),s?Object.getOwnPropertyDescriptor(o,a):void 0})(i,t,e)}function N(i){return c({...i,state:!0,attribute:!1})}var De=(i,t,e)=>(e.configurable=!0,e.enumerable=!0,Reflect.decorate&&typeof t!="object"&&Object.defineProperty(i,t,e),e);function $e(i,t){return(e,r,o)=>{let a=s=>{var l,d;return(d=(l=s.renderRoot)==null?void 0:l.querySelector(i))!=null?d:null};if(t){let{get:s,set:l}=typeof r=="object"?e:o!=null?o:(()=>{let d=Symbol();return{get(){return this[d]},set(p){this[d]=p}}})();return De(e,r,{get(){let d=s.call(this);return d===void 0&&(d=a(this),(d!==null||this.hasUpdated)&&l.call(this,d)),d}})}return De(e,r,{get(){return a(this)}})}}function ie(i){return(t,e)=>{let{slot:r,selector:o}=i!=null?i:{},a="slot"+(r?`[name=${r}]`:":not([name])");return De(t,e,{get(){var d,p;let s=(d=this.renderRoot)==null?void 0:d.querySelector(a),l=(p=s==null?void 0:s.assignedElements(i))!=null?p:[];return o===void 0?l:l.filter(h=>h.matches(o))}})}}function vo(i){return(t,e)=>{let{slot:r}=i!=null?i:{},o="slot"+(r?`[name=${r}]`:":not([name])");return De(t,e,{get(){var s,l;let a=(s=this.renderRoot)==null?void 0:s.querySelector(o);return(l=a==null?void 0:a.assignedNodes(i))!=null?l:[]}})}}var _=u`
1
+ "use strict";(()=>{var Tc=Object.defineProperty;var Ac=Object.getOwnPropertyDescriptor;var n=(i,t,e,r)=>{for(var o=r>1?void 0:r?Ac(t,e):t,a=i.length-1,s;a>=0;a--)(s=i[a])&&(o=(r?s(t,e,o):s(o))||o);return r&&o&&Tc(t,e,o),o};var no=globalThis,lo=no.ShadowRoot&&(no.ShadyCSS===void 0||no.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,gi=Symbol(),Xa=new WeakMap,Tr=class{constructor(t,e,r){if(this._$cssResult$=!0,r!==gi)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(lo&&t===void 0){let r=e!==void 0&&e.length===1;r&&(t=Xa.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),r&&Xa.set(e,t))}return t}toString(){return this.cssText}},Ka=i=>new Tr(typeof i=="string"?i:i+"",void 0,gi),u=(i,...t)=>{let e=i.length===1?i[0]:t.reduce((r,o,a)=>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[a+1],i[0]);return new Tr(e,i,gi)},yi=(i,t)=>{if(lo)i.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(let e of t){let r=document.createElement("style"),o=no.litNonce;o!==void 0&&r.setAttribute("nonce",o),r.textContent=e.cssText,i.appendChild(r)}},co=lo?i=>i:i=>i instanceof CSSStyleSheet?(t=>{let e="";for(let r of t.cssRules)e+=r.cssText;return Ka(e)})(i):i;var{is:Sc,defineProperty:Ic,getOwnPropertyDescriptor:wc,getOwnPropertyNames:Cc,getOwnPropertySymbols:kc,getPrototypeOf:Nc}=Object,Qe=globalThis,ja=Qe.trustedTypes,_c=ja?ja.emptyScript:"",xi=Qe.reactiveElementPolyfillSupport,Ar=(i,t)=>i,Sr={toAttribute(i,t){switch(t){case Boolean:i=i?_c: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}},mo=(i,t)=>!Sc(i,t),Qa={attribute:!0,type:String,converter:Sr,reflect:!1,hasChanged:mo},Ja,es;(Ja=Symbol.metadata)!=null||(Symbol.metadata=Symbol("metadata")),(es=Qe.litPropertyMetadata)!=null||(Qe.litPropertyMetadata=new WeakMap);var Re=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=Qa){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&&Ic(this.prototype,t,o)}}static getPropertyDescriptor(t,e,r){var s;let{get:o,set:a}=(s=wc(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 d=o==null?void 0:o.call(this);a.call(this,l),this.requestUpdate(t,d,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){var e;return(e=this.elementProperties.get(t))!=null?e:Qa}static _$Ei(){if(this.hasOwnProperty(Ar("elementProperties")))return;let t=Nc(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(Ar("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Ar("properties"))){let e=this.properties,r=[...Cc(e),...kc(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(co(o))}else t!==void 0&&e.push(co(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 yi(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 a;let r=this.constructor.elementProperties.get(t),o=this.constructor._$Eu(t,r);if(o!==void 0&&r.reflect===!0){let s=(((a=r.converter)==null?void 0:a.toAttribute)!==void 0?r.converter:Sr).toAttribute(e,r.type);this._$Em=t,s==null?this.removeAttribute(o):this.setAttribute(o,s),this._$Em=null}}_$AK(t,e){var a;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}:((a=s.converter)==null?void 0:a.fromAttribute)!==void 0?s.converter:Sr;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:mo)(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 a=this.constructor.elementProperties;if(a.size>0)for(let[s,l]of a)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(a=>{var s;return(s=a.hostUpdate)==null?void 0:s.call(a)}),this.update(e)):this._$EU()}catch(a){throw t=!1,this._$EU(),a}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){}},ts;Re.elementStyles=[],Re.shadowRootOptions={mode:"open"},Re[Ar("elementProperties")]=new Map,Re[Ar("finalized")]=new Map,xi==null||xi({ReactiveElement:Re}),((ts=Qe.reactiveElementVersions)!=null?ts:Qe.reactiveElementVersions=[]).push("2.0.4");var wr=globalThis,po=wr.trustedTypes,rs=po?po.createPolicy("lit-html",{createHTML:i=>i}):void 0,Ai="$lit$",Oe=`lit$${Math.random().toFixed(9).slice(2)}$`,Si="?"+Oe,Lc=`<${Si}>`,pt=document,Cr=()=>pt.createComment(""),kr=i=>i===null||typeof i!="object"&&typeof i!="function",Ii=Array.isArray,cs=i=>Ii(i)||typeof(i==null?void 0:i[Symbol.iterator])=="function",Ei=`[
2
+ \f\r]`,Ir=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,os=/-->/g,is=/>/g,dt=RegExp(`>|${Ei}(?:([^\\s"'>=/]+)(${Ei}*=${Ei}*(?:[^
3
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),as=/'/g,ss=/"/g,ds=/^(?:script|style|textarea|title)$/i,wi=i=>(t,...e)=>({_$litType$:i,strings:t,values:e}),m=wi(1),fp=wi(2),bp=wi(3),Me=Symbol.for("lit-noChange"),g=Symbol.for("lit-nothing"),ns=new WeakMap,mt=pt.createTreeWalker(pt,129);function ms(i,t){if(!Ii(i)||!i.hasOwnProperty("raw"))throw Error("invalid template strings array");return rs!==void 0?rs.createHTML(t):t}var ps=(i,t)=>{let e=i.length-1,r=[],o,a=t===2?"<svg>":t===3?"<math>":"",s=Ir;for(let l=0;l<e;l++){let d=i[l],p,h,b=-1,x=0;for(;x<d.length&&(s.lastIndex=x,h=s.exec(d),h!==null);)x=s.lastIndex,s===Ir?h[1]==="!--"?s=os:h[1]!==void 0?s=is:h[2]!==void 0?(ds.test(h[2])&&(o=RegExp("</"+h[2],"g")),s=dt):h[3]!==void 0&&(s=dt):s===dt?h[0]===">"?(s=o!=null?o:Ir,b=-1):h[1]===void 0?b=-2:(b=s.lastIndex-h[2].length,p=h[1],s=h[3]===void 0?dt:h[3]==='"'?ss:as):s===ss||s===as?s=dt:s===os||s===is?s=Ir:(s=dt,o=void 0);let y=s===dt&&i[l+1].startsWith("/>")?" ":"";a+=s===Ir?d+Lc:b>=0?(r.push(p),d.slice(0,b)+Ai+d.slice(b)+Oe+y):d+Oe+(b===-2?l:y)}return[ms(i,a+(i[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),r]},Nr=class i{constructor({strings:t,_$litType$:e},r){let o;this.parts=[];let a=0,s=0,l=t.length-1,d=this.parts,[p,h]=ps(t,e);if(this.el=i.createElement(p,r),mt.currentNode=this.el.content,e===2||e===3){let b=this.el.content.firstChild;b.replaceWith(...b.childNodes)}for(;(o=mt.nextNode())!==null&&d.length<l;){if(o.nodeType===1){if(o.hasAttributes())for(let b of o.getAttributeNames())if(b.endsWith(Ai)){let x=h[s++],y=o.getAttribute(b).split(Oe),E=/([.?@])?(.*)/.exec(x);d.push({type:1,index:a,name:E[2],strings:y,ctor:E[1]==="."?uo:E[1]==="?"?fo:E[1]==="@"?bo:ut}),o.removeAttribute(b)}else b.startsWith(Oe)&&(d.push({type:6,index:a}),o.removeAttribute(b));if(ds.test(o.tagName)){let b=o.textContent.split(Oe),x=b.length-1;if(x>0){o.textContent=po?po.emptyScript:"";for(let y=0;y<x;y++)o.append(b[y],Cr()),mt.nextNode(),d.push({type:2,index:++a});o.append(b[x],Cr())}}}else if(o.nodeType===8)if(o.data===Si)d.push({type:2,index:a});else{let b=-1;for(;(b=o.data.indexOf(Oe,b+1))!==-1;)d.push({type:7,index:a}),b+=Oe.length-1}a++}}static createElement(t,e){let r=pt.createElement("template");return r.innerHTML=t,r}};function ht(i,t,e=i,r){var s,l,d;if(t===Me)return t;let o=r!==void 0?(s=e.o)==null?void 0:s[r]:e.l,a=kr(t)?void 0:t._$litDirective$;return(o==null?void 0:o.constructor)!==a&&((l=o==null?void 0:o._$AO)==null||l.call(o,!1),a===void 0?o=void 0:(o=new a(i),o._$AT(i,e,r)),r!==void 0?((d=e.o)!=null?d:e.o=[])[r]=o:e.l=o),o!==void 0&&(t=ht(i,o._$AS(i,t.values),o,r)),t}var ho=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 p;let{el:{content:e},parts:r}=this._$AD,o=((p=t==null?void 0:t.creationScope)!=null?p:pt).importNode(e,!0);mt.currentNode=o;let a=mt.nextNode(),s=0,l=0,d=r[0];for(;d!==void 0;){if(s===d.index){let h;d.type===2?h=new Ht(a,a.nextSibling,this,t):d.type===1?h=new d.ctor(a,d.name,d.strings,this,t):d.type===6&&(h=new vo(a,this,t)),this._$AV.push(h),d=r[++l]}s!==(d==null?void 0:d.index)&&(a=mt.nextNode(),s++)}return mt.currentNode=pt,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++}},Ht=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 a;this.type=2,this._$AH=g,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=r,this.options=o,this.v=(a=o==null?void 0:o.isConnected)!=null?a:!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=ht(this,t,e),kr(t)?t===g||t==null||t===""?(this._$AH!==g&&this._$AR(),this._$AH=g):t!==this._$AH&&t!==Me&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):cs(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!==g&&kr(this._$AH)?this._$AA.nextSibling.data=t:this.T(pt.createTextNode(t)),this._$AH=t}$(t){var a;let{values:e,_$litType$:r}=t,o=typeof r=="number"?this._$AC(t):(r.el===void 0&&(r.el=Nr.createElement(ms(r.h,r.h[0]),this.options)),r);if(((a=this._$AH)==null?void 0:a._$AD)===o)this._$AH.p(e);else{let s=new ho(o,this),l=s.u(this.options);s.p(e),this.T(l),this._$AH=s}}_$AC(t){let e=ns.get(t.strings);return e===void 0&&ns.set(t.strings,e=new Nr(t)),e}k(t){Ii(this._$AH)||(this._$AH=[],this._$AR());let e=this._$AH,r,o=0;for(let a of t)o===e.length?e.push(r=new i(this.O(Cr()),this.O(Cr()),this,this.options)):r=e[o],r._$AI(a),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))}},ut=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,r,o,a){this.type=1,this._$AH=g,this._$AN=void 0,this.element=t,this.name=e,this._$AM=o,this.options=a,r.length>2||r[0]!==""||r[1]!==""?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=g}_$AI(t,e=this,r,o){let a=this.strings,s=!1;if(a===void 0)t=ht(this,t,e,0),s=!kr(t)||t!==this._$AH&&t!==Me,s&&(this._$AH=t);else{let l=t,d,p;for(t=a[0],d=0;d<a.length-1;d++)p=ht(this,l[r+d],e,d),p===Me&&(p=this._$AH[d]),s||(s=!kr(p)||p!==this._$AH[d]),p===g?t=g:t!==g&&(t+=(p!=null?p:"")+a[d+1]),this._$AH[d]=p}s&&!o&&this.j(t)}j(t){t===g?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t!=null?t:"")}},uo=class extends ut{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===g?void 0:t}},fo=class extends ut{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==g)}},bo=class extends ut{constructor(t,e,r,o,a){super(t,e,r,o,a),this.type=5}_$AI(t,e=this){var s;if((t=(s=ht(this,t,e,0))!=null?s:g)===Me)return;let r=this._$AH,o=t===g&&r!==g||t.capture!==r.capture||t.once!==r.once||t.passive!==r.passive,a=t!==g&&(r===g||o);o&&this.element.removeEventListener(this.name,this,r),a&&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)}},vo=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){ht(this,t)}},hs={M:Ai,P:Oe,A:Si,C:1,L:ps,R:ho,D:cs,V:ht,I:Ht,H:ut,N:fo,U:bo,B:uo,F:vo},Ti=wr.litHtmlPolyfillSupport,ls;Ti==null||Ti(Nr,Ht),((ls=wr.litHtmlVersions)!=null?ls:wr.litHtmlVersions=[]).push("3.2.0");var us=(i,t,e)=>{var a,s;let r=(a=e==null?void 0:e.renderBefore)!=null?a:t,o=r._$litPart$;if(o===void 0){let l=(s=e==null?void 0:e.renderBefore)!=null?s:null;r._$litPart$=o=new Ht(t.insertBefore(Cr(),l),l,void 0,e!=null?e:{})}return o._$AI(i),o};var Je=class extends Re{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=us(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 Me}},fs;Je._$litElement$=!0,Je.finalized=!0,(fs=globalThis.litElementHydrateSupport)==null||fs.call(globalThis,{LitElement:Je});var Ci=globalThis.litElementPolyfillSupport;Ci==null||Ci({LitElement:Je});var bs;((bs=globalThis.litElementVersions)!=null?bs:globalThis.litElementVersions=[]).push("4.1.0");var Rc={attribute:!0,type:String,converter:Sr,reflect:!1,hasChanged:mo},Oc=(i=Rc,t,e)=>{let{kind:r,metadata:o}=e,a=globalThis.litPropertyMetadata.get(o);if(a===void 0&&globalThis.litPropertyMetadata.set(o,a=new Map),a.set(e.name,i),r==="accessor"){let{name:s}=e;return{set(l){let d=t.get.call(this);t.set.call(this,l),this.requestUpdate(s,d,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 d=this[s];t.call(this,l),this.requestUpdate(s,d,i)}}throw Error("Unsupported decorator location: "+r)};function c(i){return(t,e)=>typeof e=="object"?Oc(i,t,e):((r,o,a)=>{let s=o.hasOwnProperty(a);return o.constructor.createProperty(a,s?{...r,wrapped:!0}:r),s?Object.getOwnPropertyDescriptor(o,a):void 0})(i,t,e)}function N(i){return c({...i,state:!0,attribute:!1})}var De=(i,t,e)=>(e.configurable=!0,e.enumerable=!0,Reflect.decorate&&typeof t!="object"&&Object.defineProperty(i,t,e),e);function $e(i,t){return(e,r,o)=>{let a=s=>{var l,d;return(d=(l=s.renderRoot)==null?void 0:l.querySelector(i))!=null?d:null};if(t){let{get:s,set:l}=typeof r=="object"?e:o!=null?o:(()=>{let d=Symbol();return{get(){return this[d]},set(p){this[d]=p}}})();return De(e,r,{get(){let d=s.call(this);return d===void 0&&(d=a(this),(d!==null||this.hasUpdated)&&l.call(this,d)),d}})}return De(e,r,{get(){return a(this)}})}}function ie(i){return(t,e)=>{let{slot:r,selector:o}=i!=null?i:{},a="slot"+(r?`[name=${r}]`:":not([name])");return De(t,e,{get(){var d,p;let s=(d=this.renderRoot)==null?void 0:d.querySelector(a),l=(p=s==null?void 0:s.assignedElements(i))!=null?p:[];return o===void 0?l:l.filter(h=>h.matches(o))}})}}function go(i){return(t,e)=>{let{slot:r}=i!=null?i:{},o="slot"+(r?`[name=${r}]`:":not([name])");return De(t,e,{get(){var s,l;let a=(s=this.renderRoot)==null?void 0:s.querySelector(o);return(l=a==null?void 0:a.assignedNodes(i))!=null?l:[]}})}}var _=u`
4
4
  :host {
5
5
  align-items: center;
6
6
  display: flex;
@@ -8,7 +8,7 @@
8
8
  justify-content: center;
9
9
  width: fit-content;
10
10
  }
11
- `,go=u`
11
+ `,yo=u`
12
12
  :host {
13
13
  --mdc-focus-ring-inner-color: var(--mds-color-theme-focus-default-0);
14
14
  --mdc-focus-ring-middle-color: var(--mds-color-theme-focus-default-1);
@@ -24,7 +24,7 @@
24
24
  `,O=(i=!1)=>{let t=u`0 0 0 var(--mdc-focus-ring-inner-width) var(--mdc-focus-ring-inner-color),
25
25
  0 0 0 var(--mdc-focus-ring-middle-width) var(--mdc-focus-ring-middle-color),
26
26
  0 0 0 var(--mdc-focus-ring-outer-width) var(--mdc-focus-ring-outer-color)
27
- `;return i?[go,u`
27
+ `;return i?[yo,u`
28
28
  .mdc-focus-ring:focus-visible {
29
29
  outline: none;
30
30
  }
@@ -48,7 +48,7 @@
48
48
  outline: 0.125rem solid var(--mds-color-theme-focus-default-0);
49
49
  }
50
50
  }
51
- `]:[go,u`
51
+ `]:[yo,u`
52
52
  :host([disabled]:focus) {
53
53
  box-shadow: none;
54
54
  }
@@ -63,7 +63,7 @@
63
63
  outline: 0.125rem solid var(--mds-color-theme-focus-default-0);
64
64
  }
65
65
  }
66
- `]};var Lc=u`
66
+ `]};var Mc=u`
67
67
  :host {
68
68
  height: 1.5rem;
69
69
  gap: 0.25rem;
@@ -166,7 +166,7 @@
166
166
  :host([variant="informational"]:active){
167
167
  --mdc-chip-background-color: var(--mds-color-theme-background-alert-theme-active);
168
168
  }
169
- `,fs=[_,Lc,...O()];var bs=u`
169
+ `,vs=[_,Mc,...O()];var gs=u`
170
170
  :host {
171
171
  box-sizing: border-box;
172
172
  }
@@ -176,11 +176,11 @@
176
176
  :host *::after {
177
177
  box-sizing: inherit;
178
178
  }
179
- `;var yo=class extends Qe{static register(t){customElements.get(t)||customElements.define(t,this)}};yo.styles=[bs];var vs=yo;var v=vs;var Je=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 Ht=class{constructor(t,e,r,o){var a;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=(a=s.subscribe)!=null?a:!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 Je(this.context,this.t,this.subscribe))}};var xo=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 wi=class extends Event{constructor(t){super("context-provider",{bubbles:!0,composed:!0}),this.context=t}},Gt=class extends xo{constructor(t,e,r){var o,a;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 d=new Set;for(let[p,{consumerHost:h}]of this.subscriptions)d.has(p)||(d.add(p),h.dispatchEvent(new Je(this.context,p,!0)));s.stopPropagation()},this.host=t,e.context!==void 0?this.context=e.context:this.context=e,this.attachListeners(),(a=(o=this.host).addController)==null||a.call(o,this)}attachListeners(){this.host.addEventListener("context-request",this.onContextRequest),this.host.addEventListener("context-provider",this.onProviderRequest)}hostConnected(){this.host.dispatchEvent(new wi(this.context))}};var Rc=u`
179
+ `;var xo=class extends Je{static register(t){customElements.get(t)||customElements.define(t,this)}};xo.styles=[gs];var ys=xo;var v=ys;var et=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 Gt=class{constructor(t,e,r,o){var a;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=(a=s.subscribe)!=null?a:!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 et(this.context,this.t,this.subscribe))}};var Eo=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 ki=class extends Event{constructor(t){super("context-provider",{bubbles:!0,composed:!0}),this.context=t}},Wt=class extends Eo{constructor(t,e,r){var o,a;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 d=new Set;for(let[p,{consumerHost:h}]of this.subscriptions)d.has(p)||(d.add(p),h.dispatchEvent(new et(this.context,p,!0)));s.stopPropagation()},this.host=t,e.context!==void 0?this.context=e.context:this.context=e,this.attachListeners(),(a=(o=this.host).addController)==null||a.call(o,this)}attachListeners(){this.host.addEventListener("context-request",this.onContextRequest),this.host.addEventListener("context-provider",this.onProviderRequest)}hostConnected(){this.host.dispatchEvent(new ki(this.context))}};var Dc=u`
180
180
  :host {
181
181
  display: contents;
182
182
  }
183
- `,ys=Rc;var Eo=class extends v{constructor({context:t,initialValue:e}){super(),this.context=new Gt(this,{context:t,initialValue:e})}render(){return this.updateContext(),m`<slot></slot>`}};Eo.styles=[...v.styles,ys];var xs=Eo;var Wt=xs;var Oc={PREFIX:"mdc",SEPARATOR:"-"},Mc={NAMESPACE:Oc},Ci=Mc;var Dc=i=>[Ci.NAMESPACE.PREFIX,i].join(Ci.NAMESPACE.SEPARATOR),f={constructTagName:Dc};var Jh=f.constructTagName("buttonsimple"),_r={20:20,24:24,28:28,32:32,40:40,48:48,52:52,64:64,72:72,88:88,124:124},Yt={BUTTON:"button",SUBMIT:"submit",RESET:"reset"},Lr={SIZE:_r[32],TYPE:Yt.BUTTON,ROLE:"button",ARIA_STATE_KEY:"aria-pressed"};var Rr=f.constructTagName("text"),I={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"},k={H1:"h1",H2:"h2",H3:"h3",H4:"h4",H5:"h5",H6:"h6",P:"p",SMALL:"small",SPAN:"span",DIV:"div"},ae={TYPE:I.BODY_LARGE_REGULAR,TEXT_ELEMENT_TAGNAME:k.P,CSS_PART_TEXT:"text",CHILDREN:"The quick brown fox jumps over the lazy dog"};var Es=f.constructTagName("alertchip"),ut={NEUTRAL:"neutral",ERROR:"error",SUCCESS:"success",WARNING:"warning",INFORMATIONAL:"informational"},qt={VARIANT:ut.NEUTRAL,TEXT_TYPE:I.BODY_MIDSIZE_REGULAR,TAG_NAME:k.SPAN,SIZE:_r[24],ROLE:"button"};var Ts=i=>({[ut.ERROR]:"error-legacy-badge-filled",[ut.WARNING]:"warning-badge-filled",[ut.SUCCESS]:"check-circle-badge-filled",[ut.INFORMATIONAL]:"info-badge-filled",[ut.NEUTRAL]:"dnd-presence-badge-filled"})[i];var H=i=>{class t extends i{}return n([c({reflect:!0,type:Boolean})],t.prototype,"disabled",2),t};var Zt=i=>{class t extends i{constructor(){super(...arguments);this.tabIndex=0}}return n([c({reflect:!0,type:Number})],t.prototype,"tabIndex",2),t};var $c=[_,u`
183
+ `,Es=Dc;var To=class extends v{constructor({context:t,initialValue:e}){super(),this.context=new Wt(this,{context:t,initialValue:e})}render(){return this.updateContext(),m`<slot></slot>`}};To.styles=[...v.styles,Es];var Ts=To;var Yt=Ts;var $c={PREFIX:"mdc",SEPARATOR:"-"},zc={NAMESPACE:$c},Ni=zc;var Pc=i=>[Ni.NAMESPACE.PREFIX,i].join(Ni.NAMESPACE.SEPARATOR),f={constructTagName:Pc};var ou=f.constructTagName("buttonsimple"),_r={20:20,24:24,28:28,32:32,40:40,48:48,52:52,64:64,72:72,88:88,124:124},qt={BUTTON:"button",SUBMIT:"submit",RESET:"reset"},Lr={SIZE:_r[32],TYPE:qt.BUTTON,ROLE:"button",ARIA_STATE_KEY:"aria-pressed"};var Rr=f.constructTagName("text"),I={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"},k={H1:"h1",H2:"h2",H3:"h3",H4:"h4",H5:"h5",H6:"h6",P:"p",SMALL:"small",SPAN:"span",DIV:"div"},ae={TYPE:I.BODY_LARGE_REGULAR,TEXT_ELEMENT_TAGNAME:k.P,CSS_PART_TEXT:"text",CHILDREN:"The quick brown fox jumps over the lazy dog"};var As=f.constructTagName("alertchip"),ft={NEUTRAL:"neutral",ERROR:"error",SUCCESS:"success",WARNING:"warning",INFORMATIONAL:"informational"},Zt={VARIANT:ft.NEUTRAL,TEXT_TYPE:I.BODY_MIDSIZE_REGULAR,TAG_NAME:k.SPAN,SIZE:_r[24],ROLE:"button"};var Ss=i=>({[ft.ERROR]:"error-legacy-badge-filled",[ft.WARNING]:"warning-badge-filled",[ft.SUCCESS]:"check-circle-badge-filled",[ft.INFORMATIONAL]:"info-badge-filled",[ft.NEUTRAL]:"dnd-presence-badge-filled"})[i];var H=i=>{class t extends i{}return n([c({reflect:!0,type:Boolean})],t.prototype,"disabled",2),t};var Xt=i=>{class t extends i{constructor(){super(...arguments);this.tabIndex=0}}return n([c({reflect:!0,type:Number})],t.prototype,"tabIndex",2),t};var Vc=[_,u`
184
184
  :host {
185
185
  border: 0.0625rem solid transparent;
186
186
  cursor: pointer;
@@ -237,10 +237,10 @@
237
237
  :host([size="20"]){
238
238
  height: var(--mdc-button-height-size-20);
239
239
  }
240
- `,...O()],As=$c;var ge=class extends Zt(H(v)){constructor(){super();this.size=Lr.SIZE;this.role=Lr.ROLE;this.type=Lr.TYPE;this.prevTabindex=0;this.internals=this.attachInternals(),this.addEventListener("click",this.executeAction.bind(this)),this.addEventListener("keydown",this.handleKeyDown.bind(this)),this.addEventListener("keyup",this.handleKeyUp.bind(this)),this.addEventListener("blur",this.handleBlur.bind(this))}get form(){return this.internals.form}update(e){super.update(e),e.has("disabled")&&this.setDisabled(this,this.disabled),e.has("softDisabled")&&this.setSoftDisabled(this,this.softDisabled),e.has("active")&&(this.active!==void 0&&(this.ariaStateKey=this.ariaStateKey||Lr.ARIA_STATE_KEY),this.setActive(this,this.active))}executeAction(){this.type===Yt.SUBMIT&&this.form&&this.form.requestSubmit(),this.type===Yt.RESET&&this.form&&this.form.reset()}setActive(e,r){this.ariaStateKey&&this.ariaStateKey.split(",").filter(a=>a.trim().startsWith("aria-")).forEach(a=>{r===!0?e.setAttribute(a.trim(),"true"):r===!1?e.setAttribute(a.trim(),"false"):e.removeAttribute(a.trim())})}setSoftDisabled(e,r){r?e.setAttribute("aria-disabled","true"):e.removeAttribute("aria-disabled")}setDisabled(e,r){r?(e.setAttribute("aria-disabled","true"),this.prevTabindex=this.tabIndex,this.tabIndex=-1):(this.tabIndex===-1&&(this.tabIndex=this.prevTabindex),e.removeAttribute("aria-disabled"))}triggerClickEvent(){let e=new MouseEvent("click",{bubbles:!0,cancelable:!0,view:window});this.dispatchEvent(e)}handleBlur(){this.classList.contains("pressed")&&this.classList.remove("pressed")}handleKeyDown(e){["Enter"," "].includes(e.key)&&(this.classList.add("pressed"),e.key==="Enter"&&this.triggerClickEvent(),e.preventDefault())}handleKeyUp(e){["Enter"," "].includes(e.key)&&(this.classList.remove("pressed"),e.key===" "&&this.triggerClickEvent())}render(){return m` <slot></slot> `}};ge.formAssociated=!0,ge.styles=[...v.styles,...As],n([c({type:Boolean,reflect:!0})],ge.prototype,"active",2),n([c({type:Boolean,attribute:"soft-disabled",reflect:!0})],ge.prototype,"softDisabled",2),n([c({type:Number,reflect:!0})],ge.prototype,"size",2),n([c({type:String,reflect:!0})],ge.prototype,"role",2),n([c({type:String,reflect:!0})],ge.prototype,"ariaStateKey",2),n([c({reflect:!0})],ge.prototype,"type",2);var me=ge;var Xt=class extends me{constructor(){super(...arguments);this.variant=qt.VARIANT;this.label=""}connectedCallback(){super.connectedCallback(),this.disabled=void 0,this.softDisabled=void 0,this.active=void 0,this.size=qt.SIZE,this.role=qt.ROLE}render(){return m`
241
- <mdc-icon part="icon" name="${Ts(this.variant)}" length-unit="rem" size="1"></mdc-icon>
242
- <mdc-text part="label" type="${qt.TEXT_TYPE}" tagname="${qt.TAG_NAME}">${this.label}</mdc-text>
243
- `}};Xt.styles=[...v.styles,...fs],n([c({type:String})],Xt.prototype,"variant",2),n([c({type:String})],Xt.prototype,"label",2);var ki=Xt;var Ss=u`
240
+ `,...O()],Is=Vc;var ge=class extends Xt(H(v)){constructor(){super();this.size=Lr.SIZE;this.role=Lr.ROLE;this.type=Lr.TYPE;this.prevTabindex=0;this.internals=this.attachInternals(),this.addEventListener("click",this.executeAction.bind(this)),this.addEventListener("keydown",this.handleKeyDown.bind(this)),this.addEventListener("keyup",this.handleKeyUp.bind(this)),this.addEventListener("blur",this.handleBlur.bind(this))}get form(){return this.internals.form}update(e){super.update(e),e.has("disabled")&&this.setDisabled(this,this.disabled),e.has("softDisabled")&&this.setSoftDisabled(this,this.softDisabled),e.has("active")&&(this.active!==void 0&&(this.ariaStateKey=this.ariaStateKey||Lr.ARIA_STATE_KEY),this.setActive(this,this.active))}executeAction(){this.type===qt.SUBMIT&&this.form&&this.form.requestSubmit(),this.type===qt.RESET&&this.form&&this.form.reset()}setActive(e,r){this.ariaStateKey&&this.ariaStateKey.split(",").filter(a=>a.trim().startsWith("aria-")).forEach(a=>{r===!0?e.setAttribute(a.trim(),"true"):r===!1?e.setAttribute(a.trim(),"false"):e.removeAttribute(a.trim())})}setSoftDisabled(e,r){r?e.setAttribute("aria-disabled","true"):e.removeAttribute("aria-disabled")}setDisabled(e,r){r?(e.setAttribute("aria-disabled","true"),this.prevTabindex=this.tabIndex,this.tabIndex=-1):(this.tabIndex===-1&&(this.tabIndex=this.prevTabindex),e.removeAttribute("aria-disabled"))}triggerClickEvent(){let e=new MouseEvent("click",{bubbles:!0,cancelable:!0,view:window});this.dispatchEvent(e)}handleBlur(){this.classList.contains("pressed")&&this.classList.remove("pressed")}handleKeyDown(e){["Enter"," "].includes(e.key)&&(this.classList.add("pressed"),e.key==="Enter"&&this.triggerClickEvent(),e.preventDefault())}handleKeyUp(e){["Enter"," "].includes(e.key)&&(this.classList.remove("pressed"),e.key===" "&&this.triggerClickEvent())}render(){return m` <slot></slot> `}};ge.formAssociated=!0,ge.styles=[...v.styles,...Is],n([c({type:Boolean,reflect:!0})],ge.prototype,"active",2),n([c({type:Boolean,attribute:"soft-disabled",reflect:!0})],ge.prototype,"softDisabled",2),n([c({type:Number,reflect:!0})],ge.prototype,"size",2),n([c({type:String,reflect:!0})],ge.prototype,"role",2),n([c({type:String,reflect:!0})],ge.prototype,"ariaStateKey",2),n([c({reflect:!0})],ge.prototype,"type",2);var me=ge;var Kt=class extends me{constructor(){super(...arguments);this.variant=Zt.VARIANT;this.label=""}connectedCallback(){super.connectedCallback(),this.disabled=void 0,this.softDisabled=void 0,this.active=void 0,this.size=Zt.SIZE,this.role=Zt.ROLE}render(){return m`
241
+ <mdc-icon part="icon" name="${Ss(this.variant)}" length-unit="rem" size="1"></mdc-icon>
242
+ <mdc-text part="label" type="${Zt.TEXT_TYPE}" tagname="${Zt.TAG_NAME}">${this.label}</mdc-text>
243
+ `}};Kt.styles=[...v.styles,...vs],n([c({type:String})],Kt.prototype,"variant",2),n([c({type:String})],Kt.prototype,"label",2);var _i=Kt;var ws=u`
244
244
  :host::part(text) {
245
245
  font-size: unset;
246
246
  font-weight: unset;
@@ -483,14 +483,14 @@
483
483
  text-decoration: var(--mds-font-apps-body-small-regular-text-decoration);
484
484
  text-transform: var(--mds-font-apps-body-small-regular-text-case);
485
485
  }
486
- `;var zc=[u`
486
+ `;var Uc=[u`
487
487
  :host {
488
488
  --mdc-text-font-family: var(--mdc-themeprovider-font-family);
489
489
 
490
490
  display: block;
491
491
  font-family: var(--mdc-text-font-family);
492
492
  }
493
- `,Ss],Is=zc;var Kt=class extends v{constructor(){super(...arguments);this.type=ae.TYPE;this.tagname=ae.TEXT_ELEMENT_TAGNAME}render(){switch(this.tagname){case k.H1:return m`<h1 part=${ae.CSS_PART_TEXT}><slot></slot></h1>`;case k.H2:return m`<h2 part=${ae.CSS_PART_TEXT}><slot></slot></h2>`;case k.H3:return m`<h3 part=${ae.CSS_PART_TEXT}><slot></slot></h3>`;case k.H4:return m`<h4 part=${ae.CSS_PART_TEXT}><slot></slot></h4>`;case k.H5:return m`<h5 part=${ae.CSS_PART_TEXT}><slot></slot></h5>`;case k.H6:return m`<h6 part=${ae.CSS_PART_TEXT}><slot></slot></h6>`;case k.DIV:return m`<div part=${ae.CSS_PART_TEXT}><slot></slot></div>`;case k.SPAN:return m`<span part=${ae.CSS_PART_TEXT}><slot></slot></span>`;case k.SMALL:return m`<small part=${ae.CSS_PART_TEXT}><slot></slot></small>`;case k.P:default:return m`<p part=${ae.CSS_PART_TEXT}><slot></slot></p>`}}};Kt.styles=[...v.styles,...Is],n([c({attribute:"type",reflect:!0,type:String})],Kt.prototype,"type",2),n([c({attribute:"tagname",reflect:!0,type:String})],Kt.prototype,"tagname",2);var Ni=Kt;Ni.register(Rr);var Pc=Ni;var Vc=[_,u`
493
+ `,ws],Cs=Uc;var jt=class extends v{constructor(){super(...arguments);this.type=ae.TYPE;this.tagname=ae.TEXT_ELEMENT_TAGNAME}render(){switch(this.tagname){case k.H1:return m`<h1 part=${ae.CSS_PART_TEXT}><slot></slot></h1>`;case k.H2:return m`<h2 part=${ae.CSS_PART_TEXT}><slot></slot></h2>`;case k.H3:return m`<h3 part=${ae.CSS_PART_TEXT}><slot></slot></h3>`;case k.H4:return m`<h4 part=${ae.CSS_PART_TEXT}><slot></slot></h4>`;case k.H5:return m`<h5 part=${ae.CSS_PART_TEXT}><slot></slot></h5>`;case k.H6:return m`<h6 part=${ae.CSS_PART_TEXT}><slot></slot></h6>`;case k.DIV:return m`<div part=${ae.CSS_PART_TEXT}><slot></slot></div>`;case k.SPAN:return m`<span part=${ae.CSS_PART_TEXT}><slot></slot></span>`;case k.SMALL:return m`<small part=${ae.CSS_PART_TEXT}><slot></slot></small>`;case k.P:default:return m`<p part=${ae.CSS_PART_TEXT}><slot></slot></p>`}}};jt.styles=[...v.styles,...Cs],n([c({attribute:"type",reflect:!0,type:String})],jt.prototype,"type",2),n([c({attribute:"tagname",reflect:!0,type:String})],jt.prototype,"tagname",2);var Li=jt;Li.register(Rr);var Fc=Li;var Bc=[_,u`
494
494
  :host {
495
495
  --mdc-icon-fill-color: currentColor;
496
496
  --mdc-icon-size: var(--computed-icon-size);
@@ -505,7 +505,7 @@
505
505
  width: 100%;
506
506
  fill: var(--mdc-icon-fill-color);
507
507
  }
508
- `,...O()],ws=Vc;var Uc=i=>{let{host:t,context:e,subscribe:r}=i;return new Ht(t,{context:e,subscribe:r!=null?r:!0})},Fc={consume:Uc},Cs=Fc;var To=f.constructTagName("iconprovider"),ks=["svg"],Ns=["em","rem","px","%"],Bc={px:16,em:1,rem:1,"%":100},ze={FILE_EXTENSION:"svg",LENGTH_UNIT:"em",SIZE:Bc.em,SHOULD_CACHE:!1,ICON_SET:"momentum-icons"};var Ao=class{};Ao.context=To;var So=Ao;var Ce=class extends Wt{constructor(){super({context:So.context,initialValue:new So});this.iconSet=ze.ICON_SET;this.fileExtension=ze.FILE_EXTENSION;this.lengthUnit=ze.LENGTH_UNIT;this.size=ze.SIZE}static get Context(){return So.context}updateValuesInContext(){this.fileExtension&&ks.includes(this.fileExtension)?this.context.value.fileExtension=this.fileExtension:(this.fileExtension=ze.FILE_EXTENSION,this.context.value.fileExtension=ze.FILE_EXTENSION),this.context.value.iconSet=this.iconSet,this.context.value.url=this.url,this.context.value.size=this.size,this.context.value.cacheName=this.cacheName,this.context.value.cacheStrategy=this.cacheStrategy,this.lengthUnit&&Ns.includes(this.lengthUnit)?this.context.value.lengthUnit=this.lengthUnit:(this.lengthUnit=ze.LENGTH_UNIT,this.context.value.lengthUnit=ze.LENGTH_UNIT)}updateContext(){(this.context.value.fileExtension!==this.fileExtension||this.context.value.iconSet!==this.iconSet||this.context.value.url!==this.url||this.context.value.lengthUnit!==this.lengthUnit||this.context.value.size!==this.size||this.context.value.cacheName!==this.cacheName||this.context.value.cacheStrategy!==this.cacheStrategy)&&(this.updateValuesInContext(),this.context.updateObservers())}};n([c({type:String,attribute:"icon-set",reflect:!0})],Ce.prototype,"iconSet",2),n([c({type:String})],Ce.prototype,"url",2),n([c({type:String,attribute:"file-extension",reflect:!0})],Ce.prototype,"fileExtension",2),n([c({type:String,attribute:"length-unit",reflect:!0})],Ce.prototype,"lengthUnit",2),n([c({type:Number,reflect:!0})],Ce.prototype,"size",2),n([c({type:String,attribute:"cache-strategy"})],Ce.prototype,"cacheStrategy",2),n([c({type:String,attribute:"cache-name"})],Ce.prototype,"cacheName",2);var Or=Ce;var Mr={},_s=async i=>(Mr[i]===void 0&&(Mr[i]=new Map),{async set(t,e){Mr[i].set(t.url,await e.text())},async get(t){return Mr[i].get(t.url)},async delete(t){Mr[i].delete(t.url)}}),Ls=async i=>{let t=await caches.open(i);return{set:async(e,r)=>{await t.put(e,r)},get:async e=>{let r=await t.match(e);return r==null?void 0:r.text()},delete:async e=>{await t.delete(e)}}},Rs=async(i,t)=>t==="in-memory-cache"?_s(i):Ls(i);var Os=async i=>fetch(i).then(t=>{if(!t.ok)throw new Error("There was a problem while fetching the icon!");return t}),Ms=async({url:i,name:t,fileExtension:e,cacheStrategy:r,cacheName:o,renewSignal:a})=>{let s=a(),l=new Request(`${i}/${t}.${e}`,{signal:s});return!o||!r||!["in-memory-cache","web-cache-api"].includes(r)?Os(l).then(d=>d.text()):Rs(o,r).then(d=>d.get(l).then(p=>p||Os(l.clone()).then(h=>{var b;return h.status<400&&h.headers.has("content-type")?(b=d.set)==null?void 0:b.call(d,l,h.clone()).then(()=>h.text()):h.text()})).catch(p=>{throw new Error(`Error in caching the Icon ${t}, ${p}`)}))};var Ds=f.constructTagName("icon"),_i={NAME:void 0,SIZE:1};var se=class extends v{constructor(){super();this.name=_i.NAME;this.ariaLabel=null;this.ariaLabelledBy=null;this.iconProviderContext=Cs.consume({host:this,context:Or.Context});this.abortController=new AbortController}prepareIconElement(e){let r=new DOMParser().parseFromString(e,"text/html").body.children[0];return this.name&&r.setAttribute("data-name",this.name),r.setAttribute("part","icon"),r.setAttribute("aria-hidden","true"),r}async getIconData(){if(this.iconProviderContext.value){let{fileExtension:r,url:o,cacheName:a,iconSet:s,cacheStrategy:l}=this.iconProviderContext.value;if(s==="custom-icons"&&o&&r&&this.name){let d=()=>(this.abortController.abort(),this.abortController=new AbortController,this.abortController.signal);return Ms({url:o,name:this.name,fileExtension:r,cacheName:a,cacheStrategy:l,renewSignal:d}).then(p=>{let h=this.prepareIconElement(p);this.handleIconLoadedSuccess(h)}).catch(p=>{this.handleIconLoadedFailure(p)})}if(s==="momentum-icons"&&this.name)return import(`@momentum-design/icons/dist/ts/${this.name}.ts`).then(d=>{this.handleIconLoadedSuccess(d.default())}).catch(d=>{this.handleIconLoadedFailure(d)})}let e=new Error("IconProvider not found or not properly set up.");return this.handleIconLoadedFailure(e),Promise.reject(e)}handleIconLoadedSuccess(e){this.iconData=e;let r=new Event("load",{bubbles:!0,cancelable:!0});this.dispatchEvent(r)}handleIconLoadedFailure(e){let r=new CustomEvent("error",{bubbles:!0,cancelable:!0,detail:{error:e}});this.dispatchEvent(r)}updateSize(){var e;if(this.computedIconSize&&(this.lengthUnit||this.lengthUnitFromContext)){let r=`${this.computedIconSize}${(e=this.lengthUnit)!=null?e:this.lengthUnitFromContext}`;this.style.setProperty("--computed-icon-size",r)}}get computedIconSize(){var e,r;return(r=(e=this.size)!=null?e:this.sizeFromContext)!=null?r:_i.SIZE}updated(e){var r,o,a,s;super.updated(e),e.has("name")&&this.getIconData().catch(l=>{l.name!=="AbortError"&&this.onerror&&this.onerror(l)}),(e.has("ariaLabel")||e.has("ariaLabelledBy"))&&(this.role=this.ariaLabel||this.ariaLabelledBy?"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!==((a=this.iconProviderContext.value)==null?void 0:a.size)&&(this.sizeFromContext=(s=this.iconProviderContext.value)==null?void 0:s.size,this.updateSize())}render(){return m` ${this.iconData} `}};se.styles=[...v.styles,...ws],n([N()],se.prototype,"iconData",2),n([N()],se.prototype,"lengthUnitFromContext",2),n([N()],se.prototype,"sizeFromContext",2),n([c({type:String,reflect:!0})],se.prototype,"name",2),n([c({type:Number})],se.prototype,"size",2),n([c({type:String,attribute:"length-unit"})],se.prototype,"lengthUnit",2),n([c({type:String,attribute:"aria-label"})],se.prototype,"ariaLabel",2),n([c({type:String,attribute:"aria-labelledby"})],se.prototype,"ariaLabelledBy",2),n([N()],se.prototype,"abortController",2);var Li=se;Li.register(Ds);var Hc=Li;ki.register(Es);var Gc=ki;var Wc=u`
508
+ `,...O()],ks=Bc;var Hc=i=>{let{host:t,context:e,subscribe:r}=i;return new Gt(t,{context:e,subscribe:r!=null?r:!0})},Gc={consume:Hc},Ns=Gc;var Ao=f.constructTagName("iconprovider"),_s=["svg"],Ls=["em","rem","px","%"],Wc={px:16,em:1,rem:1,"%":100},ze={FILE_EXTENSION:"svg",LENGTH_UNIT:"em",SIZE:Wc.em,SHOULD_CACHE:!1,ICON_SET:"momentum-icons"};var So=class{};So.context=Ao;var Io=So;var Ce=class extends Yt{constructor(){super({context:Io.context,initialValue:new Io});this.iconSet=ze.ICON_SET;this.fileExtension=ze.FILE_EXTENSION;this.lengthUnit=ze.LENGTH_UNIT;this.size=ze.SIZE}static get Context(){return Io.context}updateValuesInContext(){this.fileExtension&&_s.includes(this.fileExtension)?this.context.value.fileExtension=this.fileExtension:(this.fileExtension=ze.FILE_EXTENSION,this.context.value.fileExtension=ze.FILE_EXTENSION),this.context.value.iconSet=this.iconSet,this.context.value.url=this.url,this.context.value.size=this.size,this.context.value.cacheName=this.cacheName,this.context.value.cacheStrategy=this.cacheStrategy,this.lengthUnit&&Ls.includes(this.lengthUnit)?this.context.value.lengthUnit=this.lengthUnit:(this.lengthUnit=ze.LENGTH_UNIT,this.context.value.lengthUnit=ze.LENGTH_UNIT)}updateContext(){(this.context.value.fileExtension!==this.fileExtension||this.context.value.iconSet!==this.iconSet||this.context.value.url!==this.url||this.context.value.lengthUnit!==this.lengthUnit||this.context.value.size!==this.size||this.context.value.cacheName!==this.cacheName||this.context.value.cacheStrategy!==this.cacheStrategy)&&(this.updateValuesInContext(),this.context.updateObservers())}};n([c({type:String,attribute:"icon-set",reflect:!0})],Ce.prototype,"iconSet",2),n([c({type:String})],Ce.prototype,"url",2),n([c({type:String,attribute:"file-extension",reflect:!0})],Ce.prototype,"fileExtension",2),n([c({type:String,attribute:"length-unit",reflect:!0})],Ce.prototype,"lengthUnit",2),n([c({type:Number,reflect:!0})],Ce.prototype,"size",2),n([c({type:String,attribute:"cache-strategy"})],Ce.prototype,"cacheStrategy",2),n([c({type:String,attribute:"cache-name"})],Ce.prototype,"cacheName",2);var Or=Ce;var Mr={},Rs=async i=>(Mr[i]===void 0&&(Mr[i]=new Map),{async set(t,e){Mr[i].set(t.url,await e.text())},async get(t){return Mr[i].get(t.url)},async delete(t){Mr[i].delete(t.url)}}),Os=async i=>{let t=await caches.open(i);return{set:async(e,r)=>{await t.put(e,r)},get:async e=>{let r=await t.match(e);return r==null?void 0:r.text()},delete:async e=>{await t.delete(e)}}},Ms=async(i,t)=>t==="in-memory-cache"?Rs(i):Os(i);var Ds=async i=>fetch(i).then(t=>{if(!t.ok)throw new Error("There was a problem while fetching the icon!");return t}),$s=async({url:i,name:t,fileExtension:e,cacheStrategy:r,cacheName:o,renewSignal:a})=>{let s=a(),l=new Request(`${i}/${t}.${e}`,{signal:s});return!o||!r||!["in-memory-cache","web-cache-api"].includes(r)?Ds(l).then(d=>d.text()):Ms(o,r).then(d=>d.get(l).then(p=>p||Ds(l.clone()).then(h=>{var b;return h.status<400&&h.headers.has("content-type")?(b=d.set)==null?void 0:b.call(d,l,h.clone()).then(()=>h.text()):h.text()})).catch(p=>{throw new Error(`Error in caching the Icon ${t}, ${p}`)}))};var zs=f.constructTagName("icon"),Ri={NAME:void 0,SIZE:1};var se=class extends v{constructor(){super();this.name=Ri.NAME;this.ariaLabel=null;this.ariaLabelledBy=null;this.iconProviderContext=Ns.consume({host:this,context:Or.Context});this.abortController=new AbortController}prepareIconElement(e){let r=new DOMParser().parseFromString(e,"text/html").body.children[0];return this.name&&r.setAttribute("data-name",this.name),r.setAttribute("part","icon"),r.setAttribute("aria-hidden","true"),r}async getIconData(){if(this.iconProviderContext.value){let{fileExtension:r,url:o,cacheName:a,iconSet:s,cacheStrategy:l}=this.iconProviderContext.value;if(s==="custom-icons"&&o&&r&&this.name){let d=()=>(this.abortController.abort(),this.abortController=new AbortController,this.abortController.signal);return $s({url:o,name:this.name,fileExtension:r,cacheName:a,cacheStrategy:l,renewSignal:d}).then(p=>{let h=this.prepareIconElement(p);this.handleIconLoadedSuccess(h)}).catch(p=>{this.handleIconLoadedFailure(p)})}if(s==="momentum-icons"&&this.name)return import(`@momentum-design/icons/dist/ts/${this.name}.ts`).then(d=>{this.handleIconLoadedSuccess(d.default())}).catch(d=>{this.handleIconLoadedFailure(d)})}let e=new Error("IconProvider not found or not properly set up.");return this.handleIconLoadedFailure(e),Promise.reject(e)}handleIconLoadedSuccess(e){this.iconData=e;let r=new Event("load",{bubbles:!0,cancelable:!0});this.dispatchEvent(r)}handleIconLoadedFailure(e){let r=new CustomEvent("error",{bubbles:!0,cancelable:!0,detail:{error:e}});this.dispatchEvent(r)}updateSize(){var e;if(this.computedIconSize&&(this.lengthUnit||this.lengthUnitFromContext)){let r=`${this.computedIconSize}${(e=this.lengthUnit)!=null?e:this.lengthUnitFromContext}`;this.style.setProperty("--computed-icon-size",r)}}get computedIconSize(){var e,r;return(r=(e=this.size)!=null?e:this.sizeFromContext)!=null?r:Ri.SIZE}updated(e){var r,o,a,s;super.updated(e),e.has("name")&&this.getIconData().catch(l=>{l.name!=="AbortError"&&this.onerror&&this.onerror(l)}),(e.has("ariaLabel")||e.has("ariaLabelledBy"))&&(this.role=this.ariaLabel||this.ariaLabelledBy?"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!==((a=this.iconProviderContext.value)==null?void 0:a.size)&&(this.sizeFromContext=(s=this.iconProviderContext.value)==null?void 0:s.size,this.updateSize())}render(){return m` ${this.iconData} `}};se.styles=[...v.styles,...ks],n([N()],se.prototype,"iconData",2),n([N()],se.prototype,"lengthUnitFromContext",2),n([N()],se.prototype,"sizeFromContext",2),n([c({type:String,reflect:!0})],se.prototype,"name",2),n([c({type:Number})],se.prototype,"size",2),n([c({type:String,attribute:"length-unit"})],se.prototype,"lengthUnit",2),n([c({type:String,attribute:"aria-label"})],se.prototype,"ariaLabel",2),n([c({type:String,attribute:"aria-labelledby"})],se.prototype,"ariaLabelledBy",2),n([N()],se.prototype,"abortController",2);var Oi=se;Oi.register(zs);var Yc=Oi;_i.register(As);var qc=_i;var Zc=u`
509
509
  :host {
510
510
  --mdc-appheader-height: 4rem;
511
511
  }
@@ -539,7 +539,7 @@
539
539
  :host::part(trailing-section) {
540
540
  justify-content: flex-end;
541
541
  }
542
- `,$s=[Wc];var Io=class extends v{render(){return m`
542
+ `,Ps=[Zc];var wo=class extends v{render(){return m`
543
543
  <header part="container">
544
544
  <div part="leading-section">
545
545
  <slot name="leading"></slot>
@@ -550,7 +550,7 @@
550
550
  <div part="trailing-section">
551
551
  <slot name="trailing"></slot>
552
552
  </div>
553
- </header>`}};Io.styles=[...v.styles,...$s];var Ri=Io;var zs=f.constructTagName("appheader");Ri.register(zs);var Yc=Ri;var T=i=>i!=null?i:g;var Ps=f.constructTagName("avatar"),K={COUNTER:"counter",ICON:"icon",PHOTO:"photo",TEXT:"text"},Oi=99,qc="user-regular",D={24:24,32:32,48:48,64:64,72:72,88:88,124:124},jt={TYPE:K.PHOTO,SIZE:D[32],ICON_NAME:qc};var wo=i=>{class t extends i{constructor(){super(...arguments);this.size=jt.SIZE;this.isTyping=!1}}return n([c({type:String})],t.prototype,"src",2),n([c({type:String})],t.prototype,"initials",2),n([c({type:String})],t.prototype,"presence",2),n([c({type:Number,reflect:!0,attribute:"size"})],t.prototype,"size",2),n([c({type:Number})],t.prototype,"counter",2),n([c({type:Boolean,attribute:"is-typing"})],t.prototype,"isTyping",2),t};var ee=i=>{class t extends i{}return n([c({type:String,attribute:"icon-name"})],t.prototype,"iconName",2),t};var Zc=[_,u`
553
+ </header>`}};wo.styles=[...v.styles,...Ps];var Mi=wo;var Vs=f.constructTagName("appheader");Mi.register(Vs);var Xc=Mi;var T=i=>i!=null?i:g;var Us=f.constructTagName("avatar"),K={COUNTER:"counter",ICON:"icon",PHOTO:"photo",TEXT:"text"},Di=99,Kc="user-regular",D={24:24,32:32,48:48,64:64,72:72,88:88,124:124},Qt={TYPE:K.PHOTO,SIZE:D[32],ICON_NAME:Kc};var Co=i=>{class t extends i{constructor(){super(...arguments);this.size=Qt.SIZE;this.isTyping=!1}}return n([c({type:String})],t.prototype,"src",2),n([c({type:String})],t.prototype,"initials",2),n([c({type:String})],t.prototype,"presence",2),n([c({type:Number,reflect:!0,attribute:"size"})],t.prototype,"size",2),n([c({type:Number})],t.prototype,"counter",2),n([c({type:Boolean,attribute:"is-typing"})],t.prototype,"isTyping",2),t};var ee=i=>{class t extends i{}return n([c({type:String,attribute:"icon-name"})],t.prototype,"iconName",2),t};var jc=[_,u`
554
554
  :host {
555
555
  --mdc-avatar-default-background-color: var(--mds-color-theme-avatar-default);
556
556
  --mdc-avatar-default-foreground-color: var(--mds-color-theme-common-text-primary-normal);
@@ -673,8 +673,8 @@
673
673
  outline: 0.125rem solid;
674
674
  }
675
675
  }
676
- `],Vs=Zc;var Us=f.constructTagName("presence"),Z={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"},G={XX_SMALL:"xx_small",X_SMALL:"x_small",SMALL:"small",MIDSIZE:"midsize",LARGE:"large",X_LARGE:"x_large",XX_LARGE:"xx_large"},Qt={TYPE:Z.ACTIVE,SIZE:G.SMALL};var Fs=i=>({[D[124]]:G.XX_LARGE,[D[88]]:G.X_LARGE,[D[72]]:G.LARGE,[D[64]]:G.MIDSIZE,[D[48]]:G.SMALL,[D[32]]:G.X_SMALL,[D[24]]:G.XX_SMALL})[i]||G.X_SMALL,Bs=i=>({[D[124]]:4.75,[D[88]]:3,[D[72]]:2.5,[D[64]]:2.25,[D[48]]:1.75,[D[32]]:1.25,[D[24]]:1})[i]||1.25,Hs=i=>({[D[124]]:I.HEADING_XLARGE_MEDIUM,[D[88]]:I.HEADING_LARGE_MEDIUM,[D[72]]:I.HEADING_MIDSIZE_MEDIUM,[D[64]]:I.HEADING_SMALL_MEDIUM,[D[48]]:I.HEADING_SMALL_MEDIUM,[D[32]]:I.BODY_MIDSIZE_MEDIUM,[D[24]]:I.BODY_SMALL_MEDIUM})[i]||I.BODY_MIDSIZE_MEDIUM;var Dr=class extends wo(ee(v)){constructor(){super(...arguments);this.isPhotoLoaded=!1}getPresenceTemplateBasedOnType(e){return e===K.COUNTER&&(this.counter||this.counter===0)||this.isTyping?g:this.presence?m`
677
- <mdc-presence part="presence" type="${this.presence}" size="${Fs(this.size)}"></mdc-presence>
676
+ `],Fs=jc;var Bs=f.constructTagName("presence"),Z={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"},G={XX_SMALL:"xx_small",X_SMALL:"x_small",SMALL:"small",MIDSIZE:"midsize",LARGE:"large",X_LARGE:"x_large",XX_LARGE:"xx_large"},Jt={TYPE:Z.ACTIVE,SIZE:G.SMALL};var Hs=i=>({[D[124]]:G.XX_LARGE,[D[88]]:G.X_LARGE,[D[72]]:G.LARGE,[D[64]]:G.MIDSIZE,[D[48]]:G.SMALL,[D[32]]:G.X_SMALL,[D[24]]:G.XX_SMALL})[i]||G.X_SMALL,Gs=i=>({[D[124]]:4.75,[D[88]]:3,[D[72]]:2.5,[D[64]]:2.25,[D[48]]:1.75,[D[32]]:1.25,[D[24]]:1})[i]||1.25,Ws=i=>({[D[124]]:I.HEADING_XLARGE_MEDIUM,[D[88]]:I.HEADING_LARGE_MEDIUM,[D[72]]:I.HEADING_MIDSIZE_MEDIUM,[D[64]]:I.HEADING_SMALL_MEDIUM,[D[48]]:I.HEADING_SMALL_MEDIUM,[D[32]]:I.BODY_MIDSIZE_MEDIUM,[D[24]]:I.BODY_SMALL_MEDIUM})[i]||I.BODY_MIDSIZE_MEDIUM;var Dr=class extends Co(ee(v)){constructor(){super(...arguments);this.isPhotoLoaded=!1}getPresenceTemplateBasedOnType(e){return e===K.COUNTER&&(this.counter||this.counter===0)||this.isTyping?g:this.presence?m`
677
+ <mdc-presence part="presence" type="${this.presence}" size="${Hs(this.size)}"></mdc-presence>
678
678
  `:g}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`
679
679
  <img
680
680
  part="photo"
@@ -684,27 +684,27 @@
684
684
  @load="${this.handleOnLoad}"
685
685
  @error="${this.handleOnError}"
686
686
  />
687
- `}iconTemplate(){let e=this.iconName||jt.ICON_NAME;return m`
687
+ `}iconTemplate(){let e=this.iconName||Qt.ICON_NAME;return m`
688
688
  <mdc-icon
689
689
  name="${T(e)}"
690
690
  length-unit="rem"
691
- size="${Bs(this.size)}"
691
+ size="${Gs(this.size)}"
692
692
  ></mdc-icon>
693
693
  `}textTemplate(e){return m`
694
694
  <mdc-text
695
- type="${Hs(this.size)}"
695
+ type="${Ws(this.size)}"
696
696
  tagname="span"
697
697
  >
698
698
  ${e}
699
699
  </mdc-text>
700
- `}generateCounterText(e){return e<0?"0":e>Oi?`${Oi}+`:e.toString()}generateInitialsText(e){return e.toUpperCase().slice(0,2)}generateTextContent(e){let r="";return e===K.TEXT&&this.initials&&(r=this.generateInitialsText(this.initials)),e===K.COUNTER&&(this.counter||this.counter===0)&&(r=this.generateCounterText(this.counter)),this.textTemplate(r)}getTypeBasedOnInputs(){return this.src?K.PHOTO:this.iconName?K.ICON:this.initials?K.TEXT:this.counter||this.counter===0?K.COUNTER:K.ICON}getTemplateBasedOnType(e){switch(e){case K.PHOTO:return this.photoTemplate();case K.TEXT:case K.COUNTER:return this.generateTextContent(e);case K.ICON:default:return this.iconTemplate()}}getLoadingContent(){return this.isTyping?m`<div part="loading-wrapper"><div part="loader"></div></div>`:g}getPhotoPlaceHolderContent(e){return this.isPhotoLoaded?g:e===K.PHOTO?this.initials?this.textTemplate(this.generateInitialsText(this.initials)):this.iconTemplate():g}update(e){super.update(e),e.has("src")&&!this.src&&(this.isPhotoLoaded=!1)}render(){let e=this.getTypeBasedOnInputs();return m`
700
+ `}generateCounterText(e){return e<0?"0":e>Di?`${Di}+`:e.toString()}generateInitialsText(e){return e.toUpperCase().slice(0,2)}generateTextContent(e){let r="";return e===K.TEXT&&this.initials&&(r=this.generateInitialsText(this.initials)),e===K.COUNTER&&(this.counter||this.counter===0)&&(r=this.generateCounterText(this.counter)),this.textTemplate(r)}getTypeBasedOnInputs(){return this.src?K.PHOTO:this.iconName?K.ICON:this.initials?K.TEXT:this.counter||this.counter===0?K.COUNTER:K.ICON}getTemplateBasedOnType(e){switch(e){case K.PHOTO:return this.photoTemplate();case K.TEXT:case K.COUNTER:return this.generateTextContent(e);case K.ICON:default:return this.iconTemplate()}}getLoadingContent(){return this.isTyping?m`<div part="loading-wrapper"><div part="loader"></div></div>`:g}getPhotoPlaceHolderContent(e){return this.isPhotoLoaded?g:e===K.PHOTO?this.initials?this.textTemplate(this.generateInitialsText(this.initials)):this.iconTemplate():g}update(e){super.update(e),e.has("src")&&!this.src&&(this.isPhotoLoaded=!1)}render(){let e=this.getTypeBasedOnInputs();return m`
701
701
  <div part="content" aria-hidden="true">
702
702
  ${this.getPhotoPlaceHolderContent(e)}
703
703
  ${this.getTemplateBasedOnType(e)}
704
704
  ${this.getLoadingContent()}
705
705
  ${this.getPresenceTemplateBasedOnType(e)}
706
706
  </div>
707
- `}};Dr.styles=[...v.styles,...Vs],n([N()],Dr.prototype,"isPhotoLoaded",2);var Mi=Dr;var Xc=[_,u`
707
+ `}};Dr.styles=[...v.styles,...Fs],n([N()],Dr.prototype,"isPhotoLoaded",2);var $i=Dr;var Qc=[_,u`
708
708
  :host {
709
709
  --mdc-presence-active-background-color: var(--mds-color-theme-indicator-stable);
710
710
  --mdc-presence-away-background-color: var(--mds-color-theme-indicator-locked);
@@ -798,7 +798,7 @@
798
798
  .mdc-presence-icon__scheduled {
799
799
  color: var(--mdc-presence-scheduled-background-color);
800
800
  }
801
- `],Gs=Xc;var Ws=i=>{switch(i){case Z.AWAY:return"recents-presence-badge-filled";case Z.AWAY_CALLING:return"away-calling-presence-filled";case Z.BUSY:return"busy-presence-bold";case Z.DND:return"dnd-presence-badge-filled";case Z.MEETING:return"camera-filled";case Z.ON_CALL:return"handset-filled";case Z.ON_DEVICE:return"generic-device-video-badge-filled";case Z.ON_MOBILE:return"phone-badge-filled";case Z.PAUSE:return"pause-badge-filled";case Z.PTO:return"pto-presence-filled";case Z.PRESENTING:return"share-screen-badge-filled";case Z.QUIET:return"quiet-hours-presence-filled";case Z.SCHEDULED:return"meetings-presence-badge-filled";case Z.ACTIVE:default:return"active-presence-small-filled"}};var ft=class extends v{constructor(){super(...arguments);this.type=Qt.TYPE;this.size=Qt.SIZE;this.currentIconType=Qt.TYPE}get iconSize(){switch(this.size){case G.MIDSIZE:return 1.16125;case G.LARGE:return 1.30625;case G.X_LARGE:return 1.596875;case G.XX_LARGE:return 2.25;case G.XX_SMALL:case G.X_SMALL:case G.SMALL:default:return this.size=Qt.SIZE,.875}}get icon(){let e=Ws(this.type);return e==="active-presence-small-filled"&&(this.type=Qt.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`
801
+ `],Ys=Qc;var qs=i=>{switch(i){case Z.AWAY:return"recents-presence-badge-filled";case Z.AWAY_CALLING:return"away-calling-presence-filled";case Z.BUSY:return"busy-presence-bold";case Z.DND:return"dnd-presence-badge-filled";case Z.MEETING:return"camera-filled";case Z.ON_CALL:return"handset-filled";case Z.ON_DEVICE:return"generic-device-video-badge-filled";case Z.ON_MOBILE:return"phone-badge-filled";case Z.PAUSE:return"pause-badge-filled";case Z.PTO:return"pto-presence-filled";case Z.PRESENTING:return"share-screen-badge-filled";case Z.QUIET:return"quiet-hours-presence-filled";case Z.SCHEDULED:return"meetings-presence-badge-filled";case Z.ACTIVE:default:return"active-presence-small-filled"}};var bt=class extends v{constructor(){super(...arguments);this.type=Jt.TYPE;this.size=Jt.SIZE;this.currentIconType=Jt.TYPE}get iconSize(){switch(this.size){case G.MIDSIZE:return 1.16125;case G.LARGE:return 1.30625;case G.X_LARGE:return 1.596875;case G.XX_LARGE:return 2.25;case G.XX_SMALL:case G.X_SMALL:case G.SMALL:default:return this.size=Jt.SIZE,.875}}get icon(){let e=qs(this.type);return e==="active-presence-small-filled"&&(this.type=Jt.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`
802
802
  <div class="mdc-presence mdc-presence__${this.size}">
803
803
  <mdc-icon
804
804
  class="mdc-presence-icon mdc-presence-icon__${this.currentIconType}"
@@ -808,7 +808,7 @@
808
808
  @error="${this.handleOnError}"
809
809
  ></mdc-icon>
810
810
  </div>
811
- `}};ft.styles=[...v.styles,...Gs],n([c({type:String,reflect:!0})],ft.prototype,"type",2),n([c({type:String,reflect:!0})],ft.prototype,"size",2),n([N()],ft.prototype,"currentIconType",2);var Di=ft;Di.register(Us);var Kc=Di;Mi.register(Ps);var jc=Mi;var $r=f.constructTagName("button"),et={PRIMARY:"primary",SECONDARY:"secondary",TERTIARY:"tertiary"},zr={40:40,32:32,28:28,24:24},Jt={64:64,52:52,20:20,...zr},Co={POSITIVE:"positive",NEGATIVE:"negative",ACCENT:"accent",PROMOTIONAL:"promotional",DEFAULT:"default"},er={PILL:"pill",ICON:"icon",PILL_WITH_ICON:"pill-with-icon"},te={VARIANT:et.PRIMARY,SIZE:zr[32],COLOR:Co.DEFAULT,TYPE_INTERNAL:er.ICON,TYPE:Yt.BUTTON,INVERTED:!1};var Qc=[_,u`
811
+ `}};bt.styles=[...v.styles,...Ys],n([c({type:String,reflect:!0})],bt.prototype,"type",2),n([c({type:String,reflect:!0})],bt.prototype,"size",2),n([N()],bt.prototype,"currentIconType",2);var zi=bt;zi.register(Bs);var Jc=zi;$i.register(Us);var ed=$i;var $r=f.constructTagName("button"),tt={PRIMARY:"primary",SECONDARY:"secondary",TERTIARY:"tertiary"},zr={40:40,32:32,28:28,24:24},er={64:64,52:52,20:20,...zr},ko={POSITIVE:"positive",NEGATIVE:"negative",ACCENT:"accent",PROMOTIONAL:"promotional",DEFAULT:"default"},tr={PILL:"pill",ICON:"icon",PILL_WITH_ICON:"pill-with-icon"},te={VARIANT:tt.PRIMARY,SIZE:zr[32],COLOR:ko.DEFAULT,TYPE_INTERNAL:tr.ICON,TYPE:qt.BUTTON,INVERTED:!1};var td=[_,u`
812
812
  :host {
813
813
  --mdc-avatarbutton-overlay-background-color-rest: var(--mds-color-theme-avatar-ghost);
814
814
  --mdc-avatarbutton-overlay-background-color-hover: var(--mds-color-theme-avatar-hover);
@@ -837,7 +837,7 @@
837
837
  :host::part(presence) {
838
838
  z-index: 2;
839
839
  }
840
- `,...O()],Ys=Qc;var Pr=class extends wo(ee(me)){constructor(){super(...arguments);this.ariaLabel=null}connectedCallback(){super.connectedCallback(),this.active=void 0,this.disabled=void 0,this.softDisabled=void 0,this.role="button",this.type=te.TYPE}update(e){super.update(e),e.has("size")&&this.setSize(this.size)}setSize(e){this.setAttribute("size",Object.values(D).includes(e)?`${e}`:jt.SIZE.toString())}render(){return m`
840
+ `,...O()],Zs=td;var Pr=class extends Co(ee(me)){constructor(){super(...arguments);this.ariaLabel=null}connectedCallback(){super.connectedCallback(),this.active=void 0,this.disabled=void 0,this.softDisabled=void 0,this.role="button",this.type=te.TYPE}update(e){super.update(e),e.has("size")&&this.setSize(this.size)}setSize(e){this.setAttribute("size",Object.values(D).includes(e)?`${e}`:Qt.SIZE.toString())}render(){return m`
841
841
  <div part="overlay" aria-hidden="true"></div>
842
842
  <mdc-avatar
843
843
  ?is-typing="${this.isTyping}"
@@ -848,7 +848,7 @@
848
848
  size="${T(this.size)}"
849
849
  src="${T(this.src)}"
850
850
  ></mdc-avatar>
851
- `}};Pr.styles=[...Ys],n([c({type:String,attribute:"aria-label"})],Pr.prototype,"ariaLabel",2);var $i=Pr;var qs=f.constructTagName("avatarbutton");$i.register(qs);var Jc=$i;var ko={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},Vr=i=>(...t)=>({_$litDirective$:i,values:t}),tr=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 rr=Vr(class extends tr{constructor(i){var t;if(super(i),i.type!==ko.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(a=>a!=="")));for(let a in t)t[a]&&!((r=this.nt)!=null&&r.has(a))&&this.st.add(a);return this.render(t)}let e=i.element.classList;for(let a of this.st)a in t||(e.remove(a),this.st.delete(a));for(let a in t){let s=!!t[a];s===this.st.has(a)||(o=this.nt)!=null&&o.has(a)||(s?(e.add(a),this.st.add(a)):(e.remove(a),this.st.delete(a)))}return Me}});var Zs=f.constructTagName("badge"),Pe={DOT:"dot",ICON:"icon",COUNTER:"counter",SUCCESS:"success",WARNING:"warning",ERROR:"error"},No={SUCCESS_ICON_NAME:"check-circle-badge-filled",WARNING_ICON_NAME:"warning-badge-filled",ERROR_ICON_NAME:"error-legacy-badge-filled"},_o={PRIMARY:"primary",SECONDARY:"secondary"},Ur={SUCCESS:"success",WARNING:"warning",ERROR:"error"},Mv={..._o,...Ur},tt={TYPE:Pe.DOT,MAX_COUNTER:99,MAX_COUNTER_LIMIT:999,VARIANT:_o.PRIMARY,ICON_SIZE:1};var ed=[_,u`
851
+ `}};Pr.styles=[...Zs],n([c({type:String,attribute:"aria-label"})],Pr.prototype,"ariaLabel",2);var Pi=Pr;var Xs=f.constructTagName("avatarbutton");Pi.register(Xs);var rd=Pi;var No={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},Vr=i=>(...t)=>({_$litDirective$:i,values:t}),rr=class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,r){this.t=t,this._$AM=e,this.i=r}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}};var or=Vr(class extends rr{constructor(i){var t;if(super(i),i.type!==No.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(a=>a!=="")));for(let a in t)t[a]&&!((r=this.nt)!=null&&r.has(a))&&this.st.add(a);return this.render(t)}let e=i.element.classList;for(let a of this.st)a in t||(e.remove(a),this.st.delete(a));for(let a in t){let s=!!t[a];s===this.st.has(a)||(o=this.nt)!=null&&o.has(a)||(s?(e.add(a),this.st.add(a)):(e.remove(a),this.st.delete(a)))}return Me}});var Ks=f.constructTagName("badge"),Pe={DOT:"dot",ICON:"icon",COUNTER:"counter",SUCCESS:"success",WARNING:"warning",ERROR:"error"},_o={SUCCESS_ICON_NAME:"check-circle-badge-filled",WARNING_ICON_NAME:"warning-badge-filled",ERROR_ICON_NAME:"error-legacy-badge-filled"},Lo={PRIMARY:"primary",SECONDARY:"secondary"},Ur={SUCCESS:"success",WARNING:"warning",ERROR:"error"},Pv={...Lo,...Ur},rt={TYPE:Pe.DOT,MAX_COUNTER:99,MAX_COUNTER_LIMIT:999,VARIANT:Lo.PRIMARY,ICON_SIZE:1};var od=[_,u`
852
852
  :host {
853
853
  --mdc-badge-primary-foreground-color: var(--mds-color-theme-common-text-primary-normal);
854
854
  --mdc-badge-primary-background-color: var(--mds-color-theme-background-accent-normal);
@@ -917,21 +917,21 @@
917
917
  outline: 0.125rem solid;
918
918
  }
919
919
  }
920
- `],Xs=ed;var ke=class extends ee(v){constructor(){super(...arguments);this.variant=tt.VARIANT;this.maxCounter=tt.MAX_COUNTER;this.overlay=!1;this.ariaLabel=null}getCounterText(e,r){return r===void 0||typeof r!="number"||e===0?"":r>e?`${e}+`:e>tt.MAX_COUNTER_LIMIT||r>tt.MAX_COUNTER_LIMIT?`${tt.MAX_COUNTER_LIMIT}+`:r.toString()}getBadgeIcon(e,r){return m`
920
+ `],js=od;var ke=class extends ee(v){constructor(){super(...arguments);this.variant=rt.VARIANT;this.maxCounter=rt.MAX_COUNTER;this.overlay=!1;this.ariaLabel=null}getCounterText(e,r){return r===void 0||typeof r!="number"||e===0?"":r>e?`${e}+`:e>rt.MAX_COUNTER_LIMIT||r>rt.MAX_COUNTER_LIMIT?`${rt.MAX_COUNTER_LIMIT}+`:r.toString()}getBadgeIcon(e,r){return m`
921
921
  <mdc-icon
922
- class="mdc-badge-icon ${rr({"mdc-badge-overlay":this.overlay,[`mdc-badge-icon__${r}`]:!0})}"
922
+ class="mdc-badge-icon ${or({"mdc-badge-overlay":this.overlay,[`mdc-badge-icon__${r}`]:!0})}"
923
923
  name="${T(e)}"
924
- size="${tt.ICON_SIZE}"
924
+ size="${rt.ICON_SIZE}"
925
925
  ></mdc-icon>
926
- `}getBadgeDot(){return m`<div class="mdc-badge-dot ${rr({"mdc-badge-overlay":this.overlay})}"></div>`}getBadgeCounterText(){return m`
926
+ `}getBadgeDot(){return m`<div class="mdc-badge-dot ${or({"mdc-badge-overlay":this.overlay})}"></div>`}getBadgeCounterText(){return m`
927
927
  <mdc-text
928
928
  type="${I.BODY_SMALL_MEDIUM}"
929
929
  tagname="${k.DIV}"
930
- class="mdc-badge-text ${rr({"mdc-badge-overlay":this.overlay})}"
930
+ class="mdc-badge-text ${or({"mdc-badge-overlay":this.overlay})}"
931
931
  >
932
932
  ${this.getCounterText(this.maxCounter,this.counter)}
933
933
  </mdc-text>
934
- `}setRoleByAriaLabel(){this.ariaLabel?this.role="img":this.role=null}getBadgeContentBasedOnType(){this.variant&&!Object.values(_o).includes(this.variant)&&(this.variant=tt.VARIANT);let{iconName:e,type:r,variant:o}=this;switch(r){case Pe.ICON:return this.getBadgeIcon(e||"",o);case Pe.COUNTER:return this.getBadgeCounterText();case Pe.SUCCESS:return this.getBadgeIcon(No.SUCCESS_ICON_NAME,Ur.SUCCESS);case Pe.WARNING:return this.getBadgeIcon(No.WARNING_ICON_NAME,Ur.WARNING);case Pe.ERROR:return this.getBadgeIcon(No.ERROR_ICON_NAME,Ur.ERROR);case Pe.DOT:default:return this.type=Pe.DOT,this.getBadgeDot()}}update(e){super.update(e),e.has("ariaLabel")&&this.setRoleByAriaLabel()}render(){return this.getBadgeContentBasedOnType()}};ke.styles=[...v.styles,...Xs],n([c({type:String,reflect:!0})],ke.prototype,"type",2),n([c({type:String,reflect:!0})],ke.prototype,"variant",2),n([c({type:Number})],ke.prototype,"counter",2),n([c({type:Number,attribute:"max-counter",reflect:!0})],ke.prototype,"maxCounter",2),n([c({type:Boolean})],ke.prototype,"overlay",2),n([c({type:String,attribute:"aria-label"})],ke.prototype,"ariaLabel",2);var zi=ke;zi.register(Zs);var td=zi;var rd=u`
934
+ `}setRoleByAriaLabel(){this.ariaLabel?this.role="img":this.role=null}getBadgeContentBasedOnType(){this.variant&&!Object.values(Lo).includes(this.variant)&&(this.variant=rt.VARIANT);let{iconName:e,type:r,variant:o}=this;switch(r){case Pe.ICON:return this.getBadgeIcon(e||"",o);case Pe.COUNTER:return this.getBadgeCounterText();case Pe.SUCCESS:return this.getBadgeIcon(_o.SUCCESS_ICON_NAME,Ur.SUCCESS);case Pe.WARNING:return this.getBadgeIcon(_o.WARNING_ICON_NAME,Ur.WARNING);case Pe.ERROR:return this.getBadgeIcon(_o.ERROR_ICON_NAME,Ur.ERROR);case Pe.DOT:default:return this.type=Pe.DOT,this.getBadgeDot()}}update(e){super.update(e),e.has("ariaLabel")&&this.setRoleByAriaLabel()}render(){return this.getBadgeContentBasedOnType()}};ke.styles=[...v.styles,...js],n([c({type:String,reflect:!0})],ke.prototype,"type",2),n([c({type:String,reflect:!0})],ke.prototype,"variant",2),n([c({type:Number})],ke.prototype,"counter",2),n([c({type:Number,attribute:"max-counter",reflect:!0})],ke.prototype,"maxCounter",2),n([c({type:Boolean})],ke.prototype,"overlay",2),n([c({type:String,attribute:"aria-label"})],ke.prototype,"ariaLabel",2);var Vi=ke;Vi.register(Ks);var id=Vi;var ad=u`
935
935
  :host {
936
936
  display: block;
937
937
  height: 100%;
@@ -940,7 +940,7 @@
940
940
  height: 100%;
941
941
  width: 100%;
942
942
  }
943
- `,Ks=[rd];var js=f.constructTagName("brandvisual"),Qs={NAME:void 0};var or=class extends v{constructor(){super(...arguments);this.name=Qs.NAME}async getBrandVisualData(){return this.name?import(`@momentum-design/brand-visuals/dist/logos/ts/${this.name}.ts`).then(e=>{this.handleBrandVisualLoadedSuccess(e.default())}).catch(e=>{this.handleBrandVisualLoadedFailure(e)}):(this.handleBrandVisualLoadedFailure(new Error("No brandvisual name provided.")),Promise.reject(new Error("No brandvisual name provided.")))}updated(e){super.updated(e),e.has("name")&&this.getBrandVisualData().catch(r=>{this.onerror&&this.onerror(r)})}handleBrandVisualLoadedSuccess(e){this.brandVisualData=e;let r=new Event("load",{bubbles:!0,cancelable:!0});this.dispatchEvent(r)}handleBrandVisualLoadedFailure(e){let r=new CustomEvent("error",{bubbles:!0,cancelable:!0,detail:{error:e}});this.dispatchEvent(r)}render(){return m` ${this.brandVisualData} `}};or.styles=[...v.styles,...Ks],n([N()],or.prototype,"brandVisualData",2),n([c({type:String,reflect:!0})],or.prototype,"name",2);var Pi=or;Pi.register(js);var od=Pi;var id=u`
943
+ `,Qs=[ad];var Js=f.constructTagName("brandvisual"),en={NAME:void 0};var ir=class extends v{constructor(){super(...arguments);this.name=en.NAME}async getBrandVisualData(){return this.name?import(`@momentum-design/brand-visuals/dist/logos/ts/${this.name}.ts`).then(e=>{this.handleBrandVisualLoadedSuccess(e.default())}).catch(e=>{this.handleBrandVisualLoadedFailure(e)}):(this.handleBrandVisualLoadedFailure(new Error("No brandvisual name provided.")),Promise.reject(new Error("No brandvisual name provided.")))}updated(e){super.updated(e),e.has("name")&&this.getBrandVisualData().catch(r=>{this.onerror&&this.onerror(r)})}handleBrandVisualLoadedSuccess(e){this.brandVisualData=e;let r=new Event("load",{bubbles:!0,cancelable:!0});this.dispatchEvent(r)}handleBrandVisualLoadedFailure(e){let r=new CustomEvent("error",{bubbles:!0,cancelable:!0,detail:{error:e}});this.dispatchEvent(r)}render(){return m` ${this.brandVisualData} `}};ir.styles=[...v.styles,...Qs],n([N()],ir.prototype,"brandVisualData",2),n([c({type:String,reflect:!0})],ir.prototype,"name",2);var Ui=ir;Ui.register(Js);var sd=Ui;var nd=u`
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
- `,Js=[id];var en=f.constructTagName("bullet"),tn={SMALL:"small",MEDIUM:"medium",LARGE:"large"};var Fr=class extends v{constructor(){super(...arguments);this.size=tn.SMALL}};Fr.styles=[...v.styles,...Js],n([c({type:String,reflect:!0})],Fr.prototype,"size",2);var Vi=Fr;Vi.register(en);var ad=Vi;var Lo=i=>{class t extends i{constructor(){super(...arguments);this.variant=te.VARIANT;this.color=te.COLOR;this.typeInternal=te.TYPE_INTERNAL}setVariant(o){this.setAttribute("variant",Object.values(et).includes(o)?o:te.VARIANT)}setColor(o){!Object.values(Co).includes(o)||this.variant===et.TERTIARY?this.setAttribute("color",`${te.COLOR}`):this.setAttribute("color",o)}setSize(o){let s=this.typeInternal===er.ICON?Object.values(Jt).includes(o)&&!(o===Jt[20]&&this.variant!==et.TERTIARY):Object.values(zr).includes(o);this.setAttribute("size",s?`${o}`:`${te.SIZE}`)}inferButtonType(){var a,s;let o=(s=(a=this.shadowRoot)==null?void 0:a.querySelector("slot"))==null?void 0:s.assignedNodes().filter(l=>{var d;return l.nodeType!==Node.TEXT_NODE||((d=l.textContent)==null?void 0:d.trim())}).length;o&&(this.prefixIcon||this.postfixIcon)?(this.typeInternal=er.PILL_WITH_ICON,this.setAttribute("data-btn-type","pill-with-icon")):!o&&(this.prefixIcon||this.postfixIcon)?(this.typeInternal=er.ICON,this.setAttribute("data-btn-type","icon")):(this.typeInternal=er.PILL,this.setAttribute("data-btn-type","pill"))}}return n([c({type:String,attribute:"prefix-icon",reflect:!0})],t.prototype,"prefixIcon",2),n([c({type:String,attribute:"postfix-icon",reflect:!0})],t.prototype,"postfixIcon",2),n([c({type:String})],t.prototype,"variant",2),n([c({type:String})],t.prototype,"color",2),n([N()],t.prototype,"typeInternal",2),t};var sd=u`
964
+ `,tn=[nd];var rn=f.constructTagName("bullet"),on={SMALL:"small",MEDIUM:"medium",LARGE:"large"};var Fr=class extends v{constructor(){super(...arguments);this.size=on.SMALL}};Fr.styles=[...v.styles,...tn],n([c({type:String,reflect:!0})],Fr.prototype,"size",2);var Fi=Fr;Fi.register(rn);var ld=Fi;var Ro=i=>{class t extends i{constructor(){super(...arguments);this.variant=te.VARIANT;this.color=te.COLOR;this.typeInternal=te.TYPE_INTERNAL}setVariant(o){this.setAttribute("variant",Object.values(tt).includes(o)?o:te.VARIANT)}setColor(o){!Object.values(ko).includes(o)||this.variant===tt.TERTIARY?this.setAttribute("color",`${te.COLOR}`):this.setAttribute("color",o)}setSize(o){let s=this.typeInternal===tr.ICON?Object.values(er).includes(o)&&!(o===er[20]&&this.variant!==tt.TERTIARY):Object.values(zr).includes(o);this.setAttribute("size",s?`${o}`:`${te.SIZE}`)}inferButtonType(){var a,s;let o=(s=(a=this.shadowRoot)==null?void 0:a.querySelector("slot"))==null?void 0:s.assignedNodes().filter(l=>{var d;return l.nodeType!==Node.TEXT_NODE||((d=l.textContent)==null?void 0:d.trim())}).length;o&&(this.prefixIcon||this.postfixIcon)?(this.typeInternal=tr.PILL_WITH_ICON,this.setAttribute("data-btn-type","pill-with-icon")):!o&&(this.prefixIcon||this.postfixIcon)?(this.typeInternal=tr.ICON,this.setAttribute("data-btn-type","icon")):(this.typeInternal=tr.PILL,this.setAttribute("data-btn-type","pill"))}}return n([c({type:String,attribute:"prefix-icon",reflect:!0})],t.prototype,"prefixIcon",2),n([c({type:String,attribute:"postfix-icon",reflect:!0})],t.prototype,"postfixIcon",2),n([c({type:String})],t.prototype,"variant",2),n([c({type:String})],t.prototype,"color",2),n([N()],t.prototype,"typeInternal",2),t};var cd=u`
965
965
  :host {
966
966
  background-color: transparent;
967
967
  border-radius: 1.25rem;
@@ -1197,11 +1197,11 @@
1197
1197
  --mdc-button-primary-disabled-background-color: var(--mds-color-theme-inverted-button-primary-disabled);
1198
1198
  --mdc-button-primary-disabled-color: var(--mds-color-theme-inverted-text-primary-disabled);
1199
1199
  }
1200
- `,rn=[sd];var Br=i=>{let t=i.split("-"),e=["bold","filled","regular","light"];return t.filter(r=>!e.includes(r)).join("-")};var Ve=class extends Lo(me){constructor(){super(...arguments);this.size=te.SIZE;this.inverted=te.INVERTED;this.role="button"}update(e){super.update(e),e.has("active")&&this.inferFilledIconName(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.inferFilledIconName(this.active),this.inferButtonType())}inferFilledIconName(e){e?(this.prefixIcon&&(this.prefixFilledIconName=`${Br(this.prefixIcon)}-filled`),this.postfixIcon&&(this.postfixFilledIconName=`${Br(this.postfixIcon)}-filled`)):(this.prefixFilledIconName=this.prefixIcon,this.postfixFilledIconName=this.postfixIcon)}render(){return m`
1200
+ `,an=[cd];var Br=i=>{let t=i.split("-"),e=["bold","filled","regular","light"];return t.filter(r=>!e.includes(r)).join("-")};var Ve=class extends Ro(me){constructor(){super(...arguments);this.size=te.SIZE;this.inverted=te.INVERTED;this.role="button"}update(e){super.update(e),e.has("active")&&this.inferFilledIconName(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.inferFilledIconName(this.active),this.inferButtonType())}inferFilledIconName(e){e?(this.prefixIcon&&(this.prefixFilledIconName=`${Br(this.prefixIcon)}-filled`),this.postfixIcon&&(this.postfixFilledIconName=`${Br(this.postfixIcon)}-filled`)):(this.prefixFilledIconName=this.prefixIcon,this.postfixFilledIconName=this.postfixIcon)}render(){return m`
1201
1201
  ${this.prefixFilledIconName?m` <mdc-icon name="${this.prefixFilledIconName}" part="prefix-icon"></mdc-icon>`:""}
1202
1202
  <slot @slotchange=${this.inferButtonType}></slot>
1203
1203
  ${this.postfixFilledIconName?m` <mdc-icon name="${this.postfixFilledIconName}" part="postfix-icon"></mdc-icon>`:""}
1204
- `}};Ve.styles=[...me.styles,...rn],n([c({type:Number})],Ve.prototype,"size",2),n([c({type:Boolean,reflect:!0})],Ve.prototype,"inverted",2),n([c({type:String,reflect:!0})],Ve.prototype,"role",2),n([N()],Ve.prototype,"prefixFilledIconName",2),n([N()],Ve.prototype,"postfixFilledIconName",2);var bt=Ve;bt.register($r);var nd=bt;var P=i=>{class t extends i{constructor(){super(...arguments);this.dataAriaLabel=null}}return n([c({type:String,reflect:!0,attribute:"data-aria-label"})],t.prototype,"dataAriaLabel",2),t};var Y=[];for(let i=0;i<256;++i)Y.push((i+256).toString(16).slice(1));function on(i,t=0){return(Y[i[t+0]]+Y[i[t+1]]+Y[i[t+2]]+Y[i[t+3]]+"-"+Y[i[t+4]]+Y[i[t+5]]+"-"+Y[i[t+6]]+Y[i[t+7]]+"-"+Y[i[t+8]]+Y[i[t+9]]+"-"+Y[i[t+10]]+Y[i[t+11]]+Y[i[t+12]]+Y[i[t+13]]+Y[i[t+14]]+Y[i[t+15]]).toLowerCase()}var Ui,ld=new Uint8Array(16);function Fi(){if(!Ui){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");Ui=crypto.getRandomValues.bind(crypto)}return Ui(ld)}var cd=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),Bi={randomUUID:cd};function dd(i,t,e){var o,a,s;if(Bi.randomUUID&&!t&&!i)return Bi.randomUUID();i=i||{};let r=(s=(a=i.random)!=null?a:(o=i.rng)==null?void 0:o.call(i))!=null?s:Fi();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 on(r)}var Ue=dd;var re=i=>{class t extends i{constructor(){super(...arguments);this.name="";this.value="";this.internals=this.attachInternals()}get form(){return this.internals.form}get validity(){return this.internals.validity}get willValidate(){return this.internals.willValidate}connectedCallback(){super.connectedCallback(),this.id=`mdc-input-${Ue()}`}setValidity(){this.inputElement&&this.internals.setValidity(this.inputElement.validity,this.inputElement.validationMessage,this.inputElement)}checkValidity(){return this.setValidity(),this.internals.checkValidity()}reportValidity(){return this.setValidity(),this.internals.reportValidity()}}return t.formAssociated=!0,n([c({reflect:!0,type:String})],t.prototype,"name",2),n([c({reflect:!0,type:String})],t.prototype,"value",2),n([c({reflect:!0,type:String,attribute:"validation-message"})],t.prototype,"validationMessage",2),n([$e("input")],t.prototype,"inputElement",2),t};var an=f.constructTagName("formfieldwrapper"),W={DEFAULT:"default",ERROR:"error",PRIORITY:"priority",SUCCESS:"success",WARNING:"warning"},V={VALIDATION:W.DEFAULT,HELPER_TEXT_ID:"helper-text-id",HEADING_ID:"heading-id"},vt={TAGNAME:k.SPAN,TYPE:I.BODY_MIDSIZE_REGULAR,HEADER_TYPE:I.BODY_MIDSIZE_BOLD};var md=[_,u`
1204
+ `}};Ve.styles=[...me.styles,...an],n([c({type:Number})],Ve.prototype,"size",2),n([c({type:Boolean,reflect:!0})],Ve.prototype,"inverted",2),n([c({type:String,reflect:!0})],Ve.prototype,"role",2),n([N()],Ve.prototype,"prefixFilledIconName",2),n([N()],Ve.prototype,"postfixFilledIconName",2);var vt=Ve;vt.register($r);var dd=vt;var V=i=>{class t extends i{constructor(){super(...arguments);this.dataAriaLabel=null}}return n([c({type:String,reflect:!0,attribute:"data-aria-label"})],t.prototype,"dataAriaLabel",2),t};var Y=[];for(let i=0;i<256;++i)Y.push((i+256).toString(16).slice(1));function sn(i,t=0){return(Y[i[t+0]]+Y[i[t+1]]+Y[i[t+2]]+Y[i[t+3]]+"-"+Y[i[t+4]]+Y[i[t+5]]+"-"+Y[i[t+6]]+Y[i[t+7]]+"-"+Y[i[t+8]]+Y[i[t+9]]+"-"+Y[i[t+10]]+Y[i[t+11]]+Y[i[t+12]]+Y[i[t+13]]+Y[i[t+14]]+Y[i[t+15]]).toLowerCase()}var Bi,md=new Uint8Array(16);function Hi(){if(!Bi){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");Bi=crypto.getRandomValues.bind(crypto)}return Bi(md)}var pd=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),Gi={randomUUID:pd};function hd(i,t,e){var o,a,s;if(Gi.randomUUID&&!t&&!i)return Gi.randomUUID();i=i||{};let r=(s=(a=i.random)!=null?a:(o=i.rng)==null?void 0:o.call(i))!=null?s:Hi();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 sn(r)}var Ue=hd;var re=i=>{class t extends i{constructor(){super(...arguments);this.name="";this.value="";this.internals=this.attachInternals()}get form(){return this.internals.form}get validity(){return this.internals.validity}get willValidate(){return this.internals.willValidate}connectedCallback(){super.connectedCallback(),this.id=`mdc-input-${Ue()}`}setValidity(){this.inputElement&&this.internals.setValidity(this.inputElement.validity,this.inputElement.validationMessage,this.inputElement)}checkValidity(){return this.setValidity(),this.internals.checkValidity()}reportValidity(){return this.setValidity(),this.internals.reportValidity()}}return t.formAssociated=!0,n([c({reflect:!0,type:String})],t.prototype,"name",2),n([c({reflect:!0,type:String})],t.prototype,"value",2),n([c({reflect:!0,type:String,attribute:"validation-message"})],t.prototype,"validationMessage",2),n([$e("input")],t.prototype,"inputElement",2),t};var nn=f.constructTagName("formfieldwrapper"),W={DEFAULT:"default",ERROR:"error",PRIORITY:"priority",SUCCESS:"success",WARNING:"warning"},P={VALIDATION:W.DEFAULT,HELPER_TEXT_ID:"helper-text-id",HEADING_ID:"heading-id"},gt={TAGNAME:k.SPAN,TYPE:I.BODY_MIDSIZE_REGULAR,HEADER_TYPE:I.BODY_MIDSIZE_BOLD};var ud=[_,u`
1205
1205
  :host {
1206
1206
  flex-direction: column;
1207
1207
  align-items: flex-start;
@@ -1254,22 +1254,22 @@
1254
1254
  :host([help-text-type='priority']) .mdc-help-text {
1255
1255
  color: var(--mds-color-theme-text-accent-normal);
1256
1256
  }
1257
- `],sn=md;var nn=i=>({[W.ERROR]:"error-legacy-badge-filled",[W.WARNING]:"warning-badge-filled",[W.SUCCESS]:"check-circle-badge-filled",[W.PRIORITY]:"priority-badge-filled",[W.DEFAULT]:""})[i]||"";var Fe=class extends H(v){constructor(){super(...arguments);this.id="";this.helpTextType=V.VALIDATION;this.shouldRenderLabel=!0}renderLabelElement(){return this.label?this.shouldRenderLabel?m`<label for="${this.id}" id="${V.HEADING_ID}" class="mdc-label" part="label">${this.label}</label>`:m` <mdc-text
1258
- id="${V.HEADING_ID}"
1259
- tagname="${vt.TAGNAME}"
1260
- type="${vt.HEADER_TYPE}"
1257
+ `],ln=ud;var cn=i=>({[W.ERROR]:"error-legacy-badge-filled",[W.WARNING]:"warning-badge-filled",[W.SUCCESS]:"check-circle-badge-filled",[W.PRIORITY]:"priority-badge-filled",[W.DEFAULT]:""})[i]||"";var Fe=class extends H(v){constructor(){super(...arguments);this.id="";this.helpTextType=P.VALIDATION;this.shouldRenderLabel=!0}renderLabelElement(){return this.label?this.shouldRenderLabel?m`<label for="${this.id}" id="${P.HEADING_ID}" class="mdc-label" part="label">${this.label}</label>`:m` <mdc-text
1258
+ id="${P.HEADING_ID}"
1259
+ tagname="${gt.TAGNAME}"
1260
+ type="${gt.HEADER_TYPE}"
1261
1261
  part="label"
1262
1262
  >${this.label}</mdc-text
1263
1263
  >`:g}renderRequiredLabel(){return this.requiredLabel?m`
1264
- <mdc-text part="required-label" tagname=${vt.TAGNAME} type=${vt.TYPE}>
1264
+ <mdc-text part="required-label" tagname=${gt.TAGNAME} type=${gt.TYPE}>
1265
1265
  (${this.requiredLabel})
1266
1266
  </mdc-text>
1267
- `:g}renderHelpTextIcon(){if(!this.helpText)return g;let e=nn(this.helpTextType||V.VALIDATION);return e&&!this.disabled?m`<mdc-icon part="helper-icon" size="1" length-unit="rem" name=${e}></mdc-icon>`:g}renderHelpText(){return this.helpText?m`
1267
+ `:g}renderHelpTextIcon(){if(!this.helpText)return g;let e=cn(this.helpTextType||P.VALIDATION);return e&&!this.disabled?m`<mdc-icon part="helper-icon" size="1" length-unit="rem" name=${e}></mdc-icon>`:g}renderHelpText(){return this.helpText?m`
1268
1268
  <mdc-text
1269
- id="${V.HELPER_TEXT_ID}"
1269
+ id="${P.HELPER_TEXT_ID}"
1270
1270
  part="help-text"
1271
- tagname=${vt.TAGNAME}
1272
- type=${vt.TYPE}
1271
+ tagname=${gt.TAGNAME}
1272
+ type=${gt.TYPE}
1273
1273
  >
1274
1274
  ${this.helpText}
1275
1275
  </mdc-text>
@@ -1280,7 +1280,7 @@
1280
1280
  </div>`:g}renderHelperText(){return this.helpText?m`<div class="mdc-help-text" part="mdc-help-text">
1281
1281
  <slot name="help-icon">${this.renderHelpTextIcon()}</slot>
1282
1282
  <slot name="help-text">${this.renderHelpText()}</slot>
1283
- </div>`:g}};Fe.styles=[...v.styles,...sn],n([c({reflect:!0,type:String})],Fe.prototype,"label",2),n([c({type:String,reflect:!0,attribute:"required-label"})],Fe.prototype,"requiredLabel",2),n([c({type:String})],Fe.prototype,"id",2),n([c({reflect:!0,attribute:"help-text-type"})],Fe.prototype,"helpTextType",2),n([c({type:String,reflect:!0,attribute:"help-text"})],Fe.prototype,"helpText",2);var j=Fe;var pd=[u`
1283
+ </div>`:g}};Fe.styles=[...v.styles,...ln],n([c({reflect:!0,type:String})],Fe.prototype,"label",2),n([c({type:String,reflect:!0,attribute:"required-label"})],Fe.prototype,"requiredLabel",2),n([c({type:String})],Fe.prototype,"id",2),n([c({reflect:!0,attribute:"help-text-type"})],Fe.prototype,"helpTextType",2),n([c({type:String,reflect:!0,attribute:"help-text"})],Fe.prototype,"helpText",2);var j=Fe;var fd=[u`
1284
1284
  :host {
1285
1285
  --mdc-checkbox-background-color-hover: var(--mds-color-theme-control-inactive-hover);
1286
1286
  --mdc-checkbox-pressed-icon-color: var(--mds-color-theme-control-inactive-pressed);
@@ -1347,7 +1347,7 @@
1347
1347
  }
1348
1348
 
1349
1349
 
1350
- `,...O(!0)],ln=pd;var gt=class extends re(P(j)){constructor(){super(...arguments);this.checked=!1;this.indeterminate=!1;this.autofocus=!1;this.renderLabelAndHelperText=()=>this.label?m`<div class="text-container">
1350
+ `,...O(!0)],dn=fd;var yt=class extends re(V(j)){constructor(){super(...arguments);this.checked=!1;this.indeterminate=!1;this.autofocus=!1;this.renderLabelAndHelperText=()=>this.label?m`<div class="text-container">
1351
1351
  ${this.renderLabel()}
1352
1352
  ${this.renderHelperText()}
1353
1353
  </div>`:g}connectedCallback(){super.connectedCallback(),this.helpTextType=void 0}setFormValue(){let e=null;this.checked?e=this.value?this.value:"on":e=null,this.manageRequired(),this.internals.setFormValue(e)}manageRequired(){!this.checked&&this.requiredLabel?(this.validationMessage?this.inputElement.setCustomValidity(this.validationMessage):this.inputElement.setCustomValidity(""),this.setValidity()):this.internals.setValidity({})}formResetCallback(){this.checked=!1,this.indeterminate=!1}formStateRestoreCallback(e){e&&(this.checked=!0)}toggleState(){this.disabled||(this.checked=!this.checked,this.indeterminate=!1)}handleKeyDown(e){var r;e.key==="Enter"&&((r=this.form)==null||r.requestSubmit())}handleChange(e){this.toggleState();let r=e.constructor;this.dispatchEvent(new r(e.type,e))}update(e){super.update(e),e.has("checked")&&this.setFormValue()}render(){var e;return m`
@@ -1370,13 +1370,13 @@
1370
1370
  .disabled="${this.disabled}"
1371
1371
  aria-label="${(e=this.dataAriaLabel)!=null?e:""}"
1372
1372
  tabindex="${this.disabled?-1:0}"
1373
- aria-describedby="${T(this.helpText?V.HELPER_TEXT_ID:"")}"
1373
+ aria-describedby="${T(this.helpText?P.HELPER_TEXT_ID:"")}"
1374
1374
  @change=${this.handleChange}
1375
1375
  @keydown=${this.handleKeyDown}
1376
1376
  />
1377
1377
  </mdc-staticcheckbox>
1378
1378
  ${this.renderLabelAndHelperText()}
1379
- `}};gt.styles=[...j.styles,...ln],n([c({type:Boolean,reflect:!0})],gt.prototype,"checked",2),n([c({type:Boolean,reflect:!0})],gt.prototype,"indeterminate",2),n([c({type:Boolean,reflect:!0})],gt.prototype,"autofocus",2);var Hi=gt;var cn=f.constructTagName("checkbox"),Ro={CHECKED:"check-bold",INDETERMINATE:"minus-bold"};var hd=[u`
1379
+ `}};yt.styles=[...j.styles,...dn],n([c({type:Boolean,reflect:!0})],yt.prototype,"checked",2),n([c({type:Boolean,reflect:!0})],yt.prototype,"indeterminate",2),n([c({type:Boolean,reflect:!0})],yt.prototype,"autofocus",2);var Wi=yt;var mn=f.constructTagName("checkbox"),Oo={CHECKED:"check-bold",INDETERMINATE:"minus-bold"};var bd=[u`
1380
1380
  :host{
1381
1381
  margin: 0.125rem 0;
1382
1382
  border-radius: 0.125rem;
@@ -1433,15 +1433,15 @@
1433
1433
  border: 0.0625rem solid var(--mdc-staticcheckbox-border-color);
1434
1434
  }
1435
1435
  }
1436
- `],dn=hd;var mn=f.constructTagName("staticcheckbox");var ir=class extends H(v){constructor(){super(...arguments);this.checked=!1;this.indeterminate=!1}render(){let e=this.checked||this.indeterminate?m`
1436
+ `],pn=bd;var hn=f.constructTagName("staticcheckbox");var ar=class extends H(v){constructor(){super(...arguments);this.checked=!1;this.indeterminate=!1}render(){let e=this.checked||this.indeterminate?m`
1437
1437
  <mdc-icon
1438
1438
  class="icon"
1439
- name="${this.indeterminate?Ro.INDETERMINATE:Ro.CHECKED}"
1439
+ name="${this.indeterminate?Oo.INDETERMINATE:Oo.CHECKED}"
1440
1440
  size="1"
1441
1441
  length-unit="rem"
1442
1442
  ></mdc-icon>
1443
1443
  `:g;return m`<slot></slot>
1444
- <div part="icon-container">${e}</div>`}};ir.styles=[...v.styles,...dn],n([c({type:Boolean,reflect:!0})],ir.prototype,"checked",2),n([c({type:Boolean,reflect:!0})],ir.prototype,"indeterminate",2);var Gi=ir;Gi.register(mn);var ud=Gi;Hi.register(cn);var fd=Hi;var bd=u`
1444
+ <div part="icon-container">${e}</div>`}};ar.styles=[...v.styles,...pn],n([c({type:Boolean,reflect:!0})],ar.prototype,"checked",2),n([c({type:Boolean,reflect:!0})],ar.prototype,"indeterminate",2);var Yi=ar;Yi.register(hn);var vd=Yi;Wi.register(mn);var gd=Wi;var yd=u`
1445
1445
  :host {
1446
1446
  height: 1.5rem;
1447
1447
  gap: 0.25rem;
@@ -1578,15 +1578,15 @@
1578
1578
  --mdc-chip-color: var(--mds-color-theme-text-primary-disabled);
1579
1579
  cursor: auto;
1580
1580
  }
1581
- `,pn=[_,bd,...O()];var hn=f.constructTagName("chip"),vd={DEFAULT:"default",COBALT:"cobalt",GOLD:"gold",LIME:"lime",MINT:"mint",PINK:"pink",PURPLE:"purple",SLATE:"slate",VIOLET:"violet"},ar={COLOR:vd.DEFAULT,TEXT_TYPE:I.BODY_MIDSIZE_REGULAR,TAG_NAME:k.SPAN,SIZE:_r[24],ROLE:"button"};var sr=class extends ee(me){constructor(){super(...arguments);this.color=ar.COLOR;this.label=""}connectedCallback(){super.connectedCallback(),this.role=ar.ROLE,this.size=ar.SIZE,this.active=void 0,this.softDisabled=void 0}renderIcon(){return this.iconName?m`
1581
+ `,un=[_,yd,...O()];var fn=f.constructTagName("chip"),xd={DEFAULT:"default",COBALT:"cobalt",GOLD:"gold",LIME:"lime",MINT:"mint",PINK:"pink",PURPLE:"purple",SLATE:"slate",VIOLET:"violet"},sr={COLOR:xd.DEFAULT,TEXT_TYPE:I.BODY_MIDSIZE_REGULAR,TAG_NAME:k.SPAN,SIZE:_r[24],ROLE:"button"};var nr=class extends ee(me){constructor(){super(...arguments);this.color=sr.COLOR;this.label=""}connectedCallback(){super.connectedCallback(),this.role=sr.ROLE,this.size=sr.SIZE,this.active=void 0,this.softDisabled=void 0}renderIcon(){return this.iconName?m`
1582
1582
  <mdc-icon
1583
1583
  name="${this.iconName}"
1584
1584
  length-unit="rem"
1585
1585
  size="1"></mdc-icon>
1586
1586
  `:g}render(){return m`
1587
1587
  ${this.renderIcon()}
1588
- <mdc-text type="${ar.TEXT_TYPE}" tagname="${ar.TAG_NAME}">${this.label}</mdc-text>
1589
- `}};sr.styles=[...v.styles,...pn],n([c({type:String,reflect:!0})],sr.prototype,"color",2),n([c({type:String})],sr.prototype,"label",2);var nr=sr;nr.register(hn);var gd=nr;var Ne=Math.min,Q=Math.max,Gr=Math.round,Wr=Math.floor,ye=i=>({x:i,y:i}),yd={left:"right",right:"left",bottom:"top",top:"bottom"},xd={start:"end",end:"start"};function Mo(i,t,e){return Q(i,Ne(t,e))}function yt(i,t){return typeof i=="function"?i(t):i}function Be(i){return i.split("-")[0]}function xt(i){return i.split("-")[1]}function Wi(i){return i==="x"?"y":"x"}function Do(i){return i==="y"?"height":"width"}function rt(i){return["top","bottom"].includes(Be(i))?"y":"x"}function $o(i){return Wi(rt(i))}function un(i,t,e){e===void 0&&(e=!1);let r=xt(i),o=$o(i),a=Do(o),s=o==="x"?r===(e?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(s=Hr(s)),[s,Hr(s)]}function fn(i){let t=Hr(i);return[Oo(i),t,Oo(t)]}function Oo(i){return i.replace(/start|end/g,t=>xd[t])}function Ed(i,t,e){let r=["left","right"],o=["right","left"],a=["top","bottom"],s=["bottom","top"];switch(i){case"top":case"bottom":return e?t?o:r:t?r:o;case"left":case"right":return t?a:s;default:return[]}}function bn(i,t,e,r){let o=xt(i),a=Ed(Be(i),e==="start",r);return o&&(a=a.map(s=>s+"-"+o),t&&(a=a.concat(a.map(Oo)))),a}function Hr(i){return i.replace(/left|right|bottom|top/g,t=>yd[t])}function Td(i){return{top:0,right:0,bottom:0,left:0,...i}}function Yi(i){return typeof i!="number"?Td(i):{top:i,right:i,bottom:i,left:i}}function Et(i){let{x:t,y:e,width:r,height:o}=i;return{width:r,height:o,top:e,left:t,right:t+r,bottom:e+o,x:t,y:e}}function vn(i,t,e){let{reference:r,floating:o}=i,a=rt(t),s=$o(t),l=Do(s),d=Be(t),p=a==="y",h=r.x+r.width/2-o.width/2,b=r.y+r.height/2-o.height/2,x=r[l]/2-o[l]/2,y;switch(d){case"top":y={x:h,y:r.y-o.height};break;case"bottom":y={x:h,y:r.y+r.height};break;case"right":y={x:r.x+r.width,y:b};break;case"left":y={x:r.x-o.width,y:b};break;default:y={x:r.x,y:r.y}}switch(xt(t)){case"start":y[s]-=x*(e&&p?-1:1);break;case"end":y[s]+=x*(e&&p?-1:1);break}return y}var gn=async(i,t,e)=>{let{placement:r="bottom",strategy:o="absolute",middleware:a=[],platform:s}=e,l=a.filter(Boolean),d=await(s.isRTL==null?void 0:s.isRTL(t)),p=await s.getElementRects({reference:i,floating:t,strategy:o}),{x:h,y:b}=vn(p,r,d),x=r,y={},E=0;for(let A=0;A<l.length;A++){let{name:w,fn:S}=l[A],{x:C,y:R,data:B,reset:z}=await S({x:h,y:b,initialPlacement:r,placement:x,strategy:o,middlewareData:y,rects:p,platform:s,elements:{reference:i,floating:t}});h=C!=null?C:h,b=R!=null?R:b,y={...y,[w]:{...y[w],...B}},z&&E<=50&&(E++,typeof z=="object"&&(z.placement&&(x=z.placement),z.rects&&(p=z.rects===!0?await s.getElementRects({reference:i,floating:t,strategy:o}):z.rects),{x:h,y:b}=vn(p,x,d)),A=-1)}return{x:h,y:b,placement:x,strategy:o,middlewareData:y}};async function zo(i,t){var e;t===void 0&&(t={});let{x:r,y:o,platform:a,rects:s,elements:l,strategy:d}=i,{boundary:p="clippingAncestors",rootBoundary:h="viewport",elementContext:b="floating",altBoundary:x=!1,padding:y=0}=yt(t,i),E=Yi(y),w=l[x?b==="floating"?"reference":"floating":b],S=Et(await a.getClippingRect({element:(e=await(a.isElement==null?void 0:a.isElement(w)))==null||e?w:w.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(l.floating)),boundary:p,rootBoundary:h,strategy:d})),C=b==="floating"?{x:r,y:o,width:s.floating.width,height:s.floating.height}:s.reference,R=await(a.getOffsetParent==null?void 0:a.getOffsetParent(l.floating)),B=await(a.isElement==null?void 0:a.isElement(R))?await(a.getScale==null?void 0:a.getScale(R))||{x:1,y:1}:{x:1,y:1},z=Et(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:C,offsetParent:R,strategy:d}):C);return{top:(S.top-z.top+E.top)/B.y,bottom:(z.bottom-S.bottom+E.bottom)/B.y,left:(S.left-z.left+E.left)/B.x,right:(z.right-S.right+E.right)/B.x}}var yn=i=>({name:"arrow",options:i,async fn(t){let{x:e,y:r,placement:o,rects:a,platform:s,elements:l,middlewareData:d}=t,{element:p,padding:h=0}=yt(i,t)||{};if(p==null)return{};let b=Yi(h),x={x:e,y:r},y=$o(o),E=Do(y),A=await s.getDimensions(p),w=y==="y",S=w?"top":"left",C=w?"bottom":"right",R=w?"clientHeight":"clientWidth",B=a.reference[E]+a.reference[y]-x[y]-a.floating[E],z=x[y]-a.reference[y],de=await(s.getOffsetParent==null?void 0:s.getOffsetParent(p)),be=de?de[R]:0;(!be||!await(s.isElement==null?void 0:s.isElement(de)))&&(be=l.floating[R]||a.floating[E]);let _e=B/2-z/2,Se=be/2-A[E]/2-1,ve=Ne(b[S],Se),qe=Ne(b[C],Se),Ie=ve,Ze=be-A[E]-qe,X=be/2-A[E]/2+_e,Ft=Mo(Ie,X,Ze),Le=!d.arrow&&xt(o)!=null&&X!==Ft&&a.reference[E]/2-(X<Ie?ve:qe)-A[E]/2<0,we=Le?X<Ie?X-Ie:X-Ze:0;return{[y]:x[y]+we,data:{[y]:Ft,centerOffset:X-Ft-we,...Le&&{alignmentOffset:we}},reset:Le}}});var xn=function(i){return i===void 0&&(i={}),{name:"flip",options:i,async fn(t){var e,r;let{placement:o,middlewareData:a,rects:s,initialPlacement:l,platform:d,elements:p}=t,{mainAxis:h=!0,crossAxis:b=!0,fallbackPlacements:x,fallbackStrategy:y="bestFit",fallbackAxisSideDirection:E="none",flipAlignment:A=!0,...w}=yt(i,t);if((e=a.arrow)!=null&&e.alignmentOffset)return{};let S=Be(o),C=rt(l),R=Be(l)===l,B=await(d.isRTL==null?void 0:d.isRTL(p.floating)),z=x||(R||!A?[Hr(l)]:fn(l)),de=E!=="none";!x&&de&&z.push(...bn(l,A,E,B));let be=[l,...z],_e=await zo(t,w),Se=[],ve=((r=a.flip)==null?void 0:r.overflows)||[];if(h&&Se.push(_e[S]),b){let X=un(o,s,B);Se.push(_e[X[0]],_e[X[1]])}if(ve=[...ve,{placement:o,overflows:Se}],!Se.every(X=>X<=0)){var qe,Ie;let X=(((qe=a.flip)==null?void 0:qe.index)||0)+1,Ft=be[X];if(Ft)return{data:{index:X,overflows:ve},reset:{placement:Ft}};let Le=(Ie=ve.filter(we=>we.overflows[0]<=0).sort((we,Xe)=>we.overflows[1]-Xe.overflows[1])[0])==null?void 0:Ie.placement;if(!Le)switch(y){case"bestFit":{var Ze;let we=(Ze=ve.filter(Xe=>{if(de){let Ke=rt(Xe.placement);return Ke===C||Ke==="y"}return!0}).map(Xe=>[Xe.placement,Xe.overflows.filter(Ke=>Ke>0).reduce((Ke,gc)=>Ke+gc,0)]).sort((Xe,Ke)=>Xe[1]-Ke[1])[0])==null?void 0:Ze[0];we&&(Le=we);break}case"initialPlacement":Le=l;break}if(o!==Le)return{reset:{placement:Le}}}return{}}}};async function Ad(i,t){let{placement:e,platform:r,elements:o}=i,a=await(r.isRTL==null?void 0:r.isRTL(o.floating)),s=Be(e),l=xt(e),d=rt(e)==="y",p=["left","top"].includes(s)?-1:1,h=a&&d?-1:1,b=yt(t,i),{mainAxis:x,crossAxis:y,alignmentAxis:E}=typeof b=="number"?{mainAxis:b,crossAxis:0,alignmentAxis:null}:{mainAxis:b.mainAxis||0,crossAxis:b.crossAxis||0,alignmentAxis:b.alignmentAxis};return l&&typeof E=="number"&&(y=l==="end"?E*-1:E),d?{x:y*h,y:x*p}:{x:x*p,y:y*h}}var En=function(i){return i===void 0&&(i=0),{name:"offset",options:i,async fn(t){var e,r;let{x:o,y:a,placement:s,middlewareData:l}=t,d=await Ad(t,i);return s===((e=l.offset)==null?void 0:e.placement)&&(r=l.arrow)!=null&&r.alignmentOffset?{}:{x:o+d.x,y:a+d.y,data:{...d,placement:s}}}}},Tn=function(i){return i===void 0&&(i={}),{name:"shift",options:i,async fn(t){let{x:e,y:r,placement:o}=t,{mainAxis:a=!0,crossAxis:s=!1,limiter:l={fn:w=>{let{x:S,y:C}=w;return{x:S,y:C}}},...d}=yt(i,t),p={x:e,y:r},h=await zo(t,d),b=rt(Be(o)),x=Wi(b),y=p[x],E=p[b];if(a){let w=x==="y"?"top":"left",S=x==="y"?"bottom":"right",C=y+h[w],R=y-h[S];y=Mo(C,y,R)}if(s){let w=b==="y"?"top":"left",S=b==="y"?"bottom":"right",C=E+h[w],R=E-h[S];E=Mo(C,E,R)}let A=l.fn({...t,[x]:y,[b]:E});return{...A,data:{x:A.x-e,y:A.y-r,enabled:{[x]:a,[b]:s}}}}}};var An=function(i){return i===void 0&&(i={}),{name:"size",options:i,async fn(t){var e,r;let{placement:o,rects:a,platform:s,elements:l}=t,{apply:d=()=>{},...p}=yt(i,t),h=await zo(t,p),b=Be(o),x=xt(o),y=rt(o)==="y",{width:E,height:A}=a.floating,w,S;b==="top"||b==="bottom"?(w=b,S=x===(await(s.isRTL==null?void 0:s.isRTL(l.floating))?"start":"end")?"left":"right"):(S=b,w=x==="end"?"top":"bottom");let C=A-h.top-h.bottom,R=E-h.left-h.right,B=Ne(A-h[w],C),z=Ne(E-h[S],R),de=!t.middlewareData.shift,be=B,_e=z;if((e=t.middlewareData.shift)!=null&&e.enabled.x&&(_e=R),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(be=C),de&&!x){let ve=Q(h.left,0),qe=Q(h.right,0),Ie=Q(h.top,0),Ze=Q(h.bottom,0);y?_e=E-2*(ve!==0||qe!==0?ve+qe:Q(h.left,h.right)):be=A-2*(Ie!==0||Ze!==0?Ie+Ze:Q(h.top,h.bottom))}await d({...t,availableWidth:_e,availableHeight:be});let Se=await s.getDimensions(l.floating);return E!==Se.width||A!==Se.height?{reset:{rects:!0}}:{}}}};function Po(){return typeof window<"u"}function Tt(i){return In(i)?(i.nodeName||"").toLowerCase():"#document"}function oe(i){var t;return(i==null||(t=i.ownerDocument)==null?void 0:t.defaultView)||window}function xe(i){var t;return(t=(In(i)?i.ownerDocument:i.document)||window.document)==null?void 0:t.documentElement}function In(i){return Po()?i instanceof Node||i instanceof oe(i).Node:!1}function pe(i){return Po()?i instanceof Element||i instanceof oe(i).Element:!1}function Ee(i){return Po()?i instanceof HTMLElement||i instanceof oe(i).HTMLElement:!1}function Sn(i){return!Po()||typeof ShadowRoot>"u"?!1:i instanceof ShadowRoot||i instanceof oe(i).ShadowRoot}function cr(i){let{overflow:t,overflowX:e,overflowY:r,display:o}=he(i);return/auto|scroll|overlay|hidden|clip/.test(t+r+e)&&!["inline","contents"].includes(o)}function wn(i){return["table","td","th"].includes(Tt(i))}function Yr(i){return[":popover-open",":modal"].some(t=>{try{return i.matches(t)}catch{return!1}})}function Vo(i){let t=Uo(),e=pe(i)?he(i):i;return e.transform!=="none"||e.perspective!=="none"||(e.containerType?e.containerType!=="normal":!1)||!t&&(e.backdropFilter?e.backdropFilter!=="none":!1)||!t&&(e.filter?e.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(e.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(e.contain||"").includes(r))}function Cn(i){let t=He(i);for(;Ee(t)&&!At(t);){if(Vo(t))return t;if(Yr(t))return null;t=He(t)}return null}function Uo(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function At(i){return["html","body","#document"].includes(Tt(i))}function he(i){return oe(i).getComputedStyle(i)}function qr(i){return pe(i)?{scrollLeft:i.scrollLeft,scrollTop:i.scrollTop}:{scrollLeft:i.scrollX,scrollTop:i.scrollY}}function He(i){if(Tt(i)==="html")return i;let t=i.assignedSlot||i.parentNode||Sn(i)&&i.host||xe(i);return Sn(t)?t.host:t}function kn(i){let t=He(i);return At(t)?i.ownerDocument?i.ownerDocument.body:i.body:Ee(t)&&cr(t)?t:kn(t)}function lr(i,t,e){var r;t===void 0&&(t=[]),e===void 0&&(e=!0);let o=kn(i),a=o===((r=i.ownerDocument)==null?void 0:r.body),s=oe(o);if(a){let l=Fo(s);return t.concat(s,s.visualViewport||[],cr(o)?o:[],l&&e?lr(l):[])}return t.concat(o,lr(o,[],e))}function Fo(i){return i.parent&&Object.getPrototypeOf(i.parent)?i.frameElement:null}function Ln(i){let t=he(i),e=parseFloat(t.width)||0,r=parseFloat(t.height)||0,o=Ee(i),a=o?i.offsetWidth:e,s=o?i.offsetHeight:r,l=Gr(e)!==a||Gr(r)!==s;return l&&(e=a,r=s),{width:e,height:r,$:l}}function Zi(i){return pe(i)?i:i.contextElement}function dr(i){let t=Zi(i);if(!Ee(t))return ye(1);let e=t.getBoundingClientRect(),{width:r,height:o,$:a}=Ln(t),s=(a?Gr(e.width):e.width)/r,l=(a?Gr(e.height):e.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}}var Sd=ye(0);function Rn(i){let t=oe(i);return!Uo()||!t.visualViewport?Sd:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Id(i,t,e){return t===void 0&&(t=!1),!e||t&&e!==oe(i)?!1:t}function St(i,t,e,r){t===void 0&&(t=!1),e===void 0&&(e=!1);let o=i.getBoundingClientRect(),a=Zi(i),s=ye(1);t&&(r?pe(r)&&(s=dr(r)):s=dr(i));let l=Id(a,e,r)?Rn(a):ye(0),d=(o.left+l.x)/s.x,p=(o.top+l.y)/s.y,h=o.width/s.x,b=o.height/s.y;if(a){let x=oe(a),y=r&&pe(r)?oe(r):r,E=x,A=Fo(E);for(;A&&r&&y!==E;){let w=dr(A),S=A.getBoundingClientRect(),C=he(A),R=S.left+(A.clientLeft+parseFloat(C.paddingLeft))*w.x,B=S.top+(A.clientTop+parseFloat(C.paddingTop))*w.y;d*=w.x,p*=w.y,h*=w.x,b*=w.y,d+=R,p+=B,E=oe(A),A=Fo(E)}}return Et({width:h,height:b,x:d,y:p})}function Xi(i,t){let e=qr(i).scrollLeft;return t?t.left+e:St(xe(i)).left+e}function On(i,t,e){e===void 0&&(e=!1);let r=i.getBoundingClientRect(),o=r.left+t.scrollLeft-(e?0:Xi(i,r)),a=r.top+t.scrollTop;return{x:o,y:a}}function wd(i){let{elements:t,rect:e,offsetParent:r,strategy:o}=i,a=o==="fixed",s=xe(r),l=t?Yr(t.floating):!1;if(r===s||l&&a)return e;let d={scrollLeft:0,scrollTop:0},p=ye(1),h=ye(0),b=Ee(r);if((b||!b&&!a)&&((Tt(r)!=="body"||cr(s))&&(d=qr(r)),Ee(r))){let y=St(r);p=dr(r),h.x=y.x+r.clientLeft,h.y=y.y+r.clientTop}let x=s&&!b&&!a?On(s,d,!0):ye(0);return{width:e.width*p.x,height:e.height*p.y,x:e.x*p.x-d.scrollLeft*p.x+h.x+x.x,y:e.y*p.y-d.scrollTop*p.y+h.y+x.y}}function Cd(i){return Array.from(i.getClientRects())}function kd(i){let t=xe(i),e=qr(i),r=i.ownerDocument.body,o=Q(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=Q(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),s=-e.scrollLeft+Xi(i),l=-e.scrollTop;return he(r).direction==="rtl"&&(s+=Q(t.clientWidth,r.clientWidth)-o),{width:o,height:a,x:s,y:l}}function Nd(i,t){let e=oe(i),r=xe(i),o=e.visualViewport,a=r.clientWidth,s=r.clientHeight,l=0,d=0;if(o){a=o.width,s=o.height;let p=Uo();(!p||p&&t==="fixed")&&(l=o.offsetLeft,d=o.offsetTop)}return{width:a,height:s,x:l,y:d}}function _d(i,t){let e=St(i,!0,t==="fixed"),r=e.top+i.clientTop,o=e.left+i.clientLeft,a=Ee(i)?dr(i):ye(1),s=i.clientWidth*a.x,l=i.clientHeight*a.y,d=o*a.x,p=r*a.y;return{width:s,height:l,x:d,y:p}}function Nn(i,t,e){let r;if(t==="viewport")r=Nd(i,e);else if(t==="document")r=kd(xe(i));else if(pe(t))r=_d(t,e);else{let o=Rn(i);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Et(r)}function Mn(i,t){let e=He(i);return e===t||!pe(e)||At(e)?!1:he(e).position==="fixed"||Mn(e,t)}function Ld(i,t){let e=t.get(i);if(e)return e;let r=lr(i,[],!1).filter(l=>pe(l)&&Tt(l)!=="body"),o=null,a=he(i).position==="fixed",s=a?He(i):i;for(;pe(s)&&!At(s);){let l=he(s),d=Vo(s);!d&&l.position==="fixed"&&(o=null),(a?!d&&!o:!d&&l.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||cr(s)&&!d&&Mn(i,s))?r=r.filter(h=>h!==s):o=l,s=He(s)}return t.set(i,r),r}function Rd(i){let{element:t,boundary:e,rootBoundary:r,strategy:o}=i,s=[...e==="clippingAncestors"?Yr(t)?[]:Ld(t,this._c):[].concat(e),r],l=s[0],d=s.reduce((p,h)=>{let b=Nn(t,h,o);return p.top=Q(b.top,p.top),p.right=Ne(b.right,p.right),p.bottom=Ne(b.bottom,p.bottom),p.left=Q(b.left,p.left),p},Nn(t,l,o));return{width:d.right-d.left,height:d.bottom-d.top,x:d.left,y:d.top}}function Od(i){let{width:t,height:e}=Ln(i);return{width:t,height:e}}function Md(i,t,e){let r=Ee(t),o=xe(t),a=e==="fixed",s=St(i,!0,a,t),l={scrollLeft:0,scrollTop:0},d=ye(0);if(r||!r&&!a)if((Tt(t)!=="body"||cr(o))&&(l=qr(t)),r){let x=St(t,!0,a,t);d.x=x.x+t.clientLeft,d.y=x.y+t.clientTop}else o&&(d.x=Xi(o));let p=o&&!r&&!a?On(o,l):ye(0),h=s.left+l.scrollLeft-d.x-p.x,b=s.top+l.scrollTop-d.y-p.y;return{x:h,y:b,width:s.width,height:s.height}}function qi(i){return he(i).position==="static"}function _n(i,t){if(!Ee(i)||he(i).position==="fixed")return null;if(t)return t(i);let e=i.offsetParent;return xe(i)===e&&(e=e.ownerDocument.body),e}function Dn(i,t){let e=oe(i);if(Yr(i))return e;if(!Ee(i)){let o=He(i);for(;o&&!At(o);){if(pe(o)&&!qi(o))return o;o=He(o)}return e}let r=_n(i,t);for(;r&&wn(r)&&qi(r);)r=_n(r,t);return r&&At(r)&&qi(r)&&!Vo(r)?e:r||Cn(i)||e}var Dd=async function(i){let t=this.getOffsetParent||Dn,e=this.getDimensions,r=await e(i.floating);return{reference:Md(i.reference,await t(i.floating),i.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function $d(i){return he(i).direction==="rtl"}var zd={convertOffsetParentRelativeRectToViewportRelativeRect:wd,getDocumentElement:xe,getClippingRect:Rd,getOffsetParent:Dn,getElementRects:Dd,getClientRects:Cd,getDimensions:Od,getScale:dr,isElement:pe,isRTL:$d};function Pd(i,t){let e=null,r,o=xe(i);function a(){var l;clearTimeout(r),(l=e)==null||l.disconnect(),e=null}function s(l,d){l===void 0&&(l=!1),d===void 0&&(d=1),a();let{left:p,top:h,width:b,height:x}=i.getBoundingClientRect();if(l||t(),!b||!x)return;let y=Wr(h),E=Wr(o.clientWidth-(p+b)),A=Wr(o.clientHeight-(h+x)),w=Wr(p),C={rootMargin:-y+"px "+-E+"px "+-A+"px "+-w+"px",threshold:Q(0,Ne(1,d))||1},R=!0;function B(z){let de=z[0].intersectionRatio;if(de!==d){if(!R)return s();de?s(!1,de):r=setTimeout(()=>{s(!1,1e-7)},1e3)}R=!1}try{e=new IntersectionObserver(B,{...C,root:o.ownerDocument})}catch{e=new IntersectionObserver(B,C)}e.observe(i)}return s(!0),a}function $n(i,t,e,r){r===void 0&&(r={});let{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:d=!1}=r,p=Zi(i),h=o||a?[...p?lr(p):[],...lr(t)]:[];h.forEach(S=>{o&&S.addEventListener("scroll",e,{passive:!0}),a&&S.addEventListener("resize",e)});let b=p&&l?Pd(p,e):null,x=-1,y=null;s&&(y=new ResizeObserver(S=>{let[C]=S;C&&C.target===p&&y&&(y.unobserve(t),cancelAnimationFrame(x),x=requestAnimationFrame(()=>{var R;(R=y)==null||R.observe(t)})),e()}),p&&!d&&y.observe(p),y.observe(t));let E,A=d?St(i):null;d&&w();function w(){let S=St(i);A&&(S.x!==A.x||S.y!==A.y||S.width!==A.width||S.height!==A.height)&&e(),A=S,E=requestAnimationFrame(w)}return e(),()=>{var S;h.forEach(C=>{o&&C.removeEventListener("scroll",e),a&&C.removeEventListener("resize",e)}),b==null||b(),(S=y)==null||S.disconnect(),y=null,d&&cancelAnimationFrame(E)}}var zn=En;var Pn=Tn,Vn=xn,Un=An;var Fn=yn;var Bn=(i,t,e)=>{let r=new Map,o={platform:zd,...e},a={...o.platform,_c:r};return gn(i,t,{...o,platform:a})};var Hn=f.constructTagName("popover"),ne={LEFT_START:"left-start",LEFT:"left",LEFT_END:"left-end",RIGHT_START:"right-start",RIGHT:"right",RIGHT_END:"right-end",TOP_START:"top-start",TOP:"top",TOP_END:"top-end",BOTTOM_START:"bottom-start",BOTTOM:"bottom",BOTTOM_END:"bottom-end"},It={CLICK:"click",MOUSEENTER:"mouseenter",FOCUSIN:"focusin",MANUAL:"manual"},Zr={TONAL:"tonal",CONTRAST:"contrast"},M={PLACEMENT:ne.BOTTOM,TRIGGER:It.CLICK,COLOR:Zr.TONAL,OFFSET:4,VISIBLE:!1,ARROW:!1,CLOSE_BUTTON:!1,FOCUS_TRAP:!1,INTERACTIVE:!1,PREVENT_SCROLL:!1,HIDE_ON_ESCAPE:!1,HIDE_ON_BLUR:!1,HIDE_ON_CLICK_OUTSIDE:!1,FOCUS_BACK:!1,BACKDROP:!1,FLIP:!0,SIZE:!1,DELAY:"0,0",ROLE:"dialog",Z_INDEX:1e3,DISABLE_ARIA_EXPANDED:!1};var Gn=i=>{class t extends i{constructor(...o){super(...o);this.enabledFocusTrap=M.FOCUS_TRAP;this.enabledPreventScroll=M.PREVENT_SCROLL;this.focusTrapIndex=-1;this.focusableElements=[];this.shouldWrapFocus=()=>!0;this.addEventListener("keydown",this.handleKeydown)}deactivateFocusTrap(){this.enabledFocusTrap=!1,this.enabledPreventScroll=!1,this.focusTrapIndex=-1,document.body.style.overflow=""}hasNoClientRects(o){return o.getClientRects().length===0}hasZeroDimensions(o){let{width:a,height:s}=o.getBoundingClientRect(),{offsetWidth:l,offsetHeight:d}=o;return l+d+s+a===0}isNotVisible(o){return this.hasZeroDimensions(o)||this.hasNoClientRects(o)}hasHiddenStyle(o){let{display:a,opacity:s,visibility:l}=o.style;return a==="none"||s==="0"||l==="hidden"||l==="collapse"}hasComputedHidden(o){let a=getComputedStyle(o);return a.visibility==="hidden"||a.height==="0"||a.display==="none"}isHidden(o){return o.hasAttribute("hidden")||o.getAttribute("aria-hidden")==="true"||this.hasHiddenStyle(o)||this.isNotVisible(o)||this.hasComputedHidden(o)}isNotTabbable(o){return o.getAttribute("tabindex")==="-1"}isInteractiveElement(o){return!!(new Set(["BUTTON","DETAILS","EMBED","IFRAME","SELECT","TEXTAREA"]).has(o.tagName)||o instanceof HTMLAnchorElement&&o.hasAttribute("href")||o instanceof HTMLInputElement&&o.type!=="hidden"||(o instanceof HTMLAudioElement||o instanceof HTMLVideoElement)&&o.hasAttribute("controls")||(o instanceof HTMLImageElement||o instanceof HTMLObjectElement)&&o.hasAttribute("usemap")||o.hasAttribute("tabindex")&&o.tabIndex>-1)}isFocusable(o){return this.isHidden(o)||this.isNotTabbable(o)?!1:this.isInteractiveElement(o)}findFocusable(o,a=new Set){return o instanceof HTMLElement&&this.isFocusable(o)&&a.add(o),Array.from(o.children).forEach(l=>{let d=l;this.isFocusable(d)&&a.add(d),d.shadowRoot?this.findFocusable(d.shadowRoot,a):d.tagName==="SLOT"?d.assignedElements({flatten:!0}).forEach(h=>{h instanceof HTMLElement&&this.findFocusable(h,a)}):this.findFocusable(d,a)}),[...a]}setFocusableElements(){this.shadowRoot&&(this.focusableElements=this.findFocusable(this.shadowRoot,new Set))}setInitialFocus(o=0){this.focusableElements.length!==0&&(this.enabledPreventScroll&&(document.body.style.overflow="hidden"),this.focusableElements[o]&&(this.focusTrapIndex=o,this.focusableElements[o].focus()))}calculateNextIndex(o,a){let{length:s}=this.focusableElements,l=this.shouldWrapFocus();if(o===-1)return a>0?0:s-1;let d=o+a;return l?(d<0&&(d=s-1),d>=s&&(d=0)):(d<0&&(d=0),d>=s&&(d=s-1)),d}getDeepActiveElement(){var a;let o=document.activeElement||document.body;for(;o instanceof HTMLElement&&((a=o.shadowRoot)!=null&&a.activeElement);)o=o.shadowRoot.activeElement;return o||document.body}findElement(o){return this.focusableElements.findIndex(a=>this.isEqualFocusNode(o,a))}isEqualFocusNode(o,a){return o.nodeType>=0?a.isEqualNode(o)&&a===o:!1}trapFocus(o){if(this.focusableElements.length===0)return;let a=this.getDeepActiveElement(),s=this.findElement(a);o?this.focusTrapIndex=this.calculateNextIndex(s,-1):this.focusTrapIndex=this.calculateNextIndex(s,1);let l=this.focusableElements[this.focusTrapIndex];l&&l.focus()}handleKeydown(o){!this.enabledFocusTrap||!this.focusableElements.length||o.key==="Tab"&&(o.preventDefault(),this.trapFocus(o.shiftKey))}}return n([c({type:Boolean})],t.prototype,"enabledFocusTrap",2),n([c({type:Boolean})],t.prototype,"enabledPreventScroll",2),t};var wt=class{static dispatchPopoverEvent(t,e){e.dispatchEvent(new CustomEvent(t,{detail:{show:e.visible},composed:!0,bubbles:!0}))}static onShowPopover(t){this.dispatchPopoverEvent("shown",t)}static onHidePopover(t){this.dispatchPopoverEvent("hidden",t)}static onCreatedPopover(t){this.dispatchPopoverEvent("created",t)}static onDestroyedPopover(t){this.dispatchPopoverEvent("destroyed",t)}};var Ki=class{constructor(){this.stack=[]}push(t){this.stack.push(t)}pop(){return this.stack.pop()}peek(){return this.stack[this.stack.length-1]}remove(t){this.stack=this.stack.filter(e=>e!==t)}clear(){this.stack=[]}},Ct=new Ki;var Vd=u`
1588
+ <mdc-text type="${sr.TEXT_TYPE}" tagname="${sr.TAG_NAME}">${this.label}</mdc-text>
1589
+ `}};nr.styles=[...v.styles,...un],n([c({type:String,reflect:!0})],nr.prototype,"color",2),n([c({type:String})],nr.prototype,"label",2);var lr=nr;lr.register(fn);var Ed=lr;var Ne=Math.min,Q=Math.max,Gr=Math.round,Wr=Math.floor,ye=i=>({x:i,y:i}),Td={left:"right",right:"left",bottom:"top",top:"bottom"},Ad={start:"end",end:"start"};function Do(i,t,e){return Q(i,Ne(t,e))}function xt(i,t){return typeof i=="function"?i(t):i}function Be(i){return i.split("-")[0]}function Et(i){return i.split("-")[1]}function qi(i){return i==="x"?"y":"x"}function $o(i){return i==="y"?"height":"width"}function ot(i){return["top","bottom"].includes(Be(i))?"y":"x"}function zo(i){return qi(ot(i))}function bn(i,t,e){e===void 0&&(e=!1);let r=Et(i),o=zo(i),a=$o(o),s=o==="x"?r===(e?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(s=Hr(s)),[s,Hr(s)]}function vn(i){let t=Hr(i);return[Mo(i),t,Mo(t)]}function Mo(i){return i.replace(/start|end/g,t=>Ad[t])}function Sd(i,t,e){let r=["left","right"],o=["right","left"],a=["top","bottom"],s=["bottom","top"];switch(i){case"top":case"bottom":return e?t?o:r:t?r:o;case"left":case"right":return t?a:s;default:return[]}}function gn(i,t,e,r){let o=Et(i),a=Sd(Be(i),e==="start",r);return o&&(a=a.map(s=>s+"-"+o),t&&(a=a.concat(a.map(Mo)))),a}function Hr(i){return i.replace(/left|right|bottom|top/g,t=>Td[t])}function Id(i){return{top:0,right:0,bottom:0,left:0,...i}}function Zi(i){return typeof i!="number"?Id(i):{top:i,right:i,bottom:i,left:i}}function Tt(i){let{x:t,y:e,width:r,height:o}=i;return{width:r,height:o,top:e,left:t,right:t+r,bottom:e+o,x:t,y:e}}function yn(i,t,e){let{reference:r,floating:o}=i,a=ot(t),s=zo(t),l=$o(s),d=Be(t),p=a==="y",h=r.x+r.width/2-o.width/2,b=r.y+r.height/2-o.height/2,x=r[l]/2-o[l]/2,y;switch(d){case"top":y={x:h,y:r.y-o.height};break;case"bottom":y={x:h,y:r.y+r.height};break;case"right":y={x:r.x+r.width,y:b};break;case"left":y={x:r.x-o.width,y:b};break;default:y={x:r.x,y:r.y}}switch(Et(t)){case"start":y[s]-=x*(e&&p?-1:1);break;case"end":y[s]+=x*(e&&p?-1:1);break}return y}var xn=async(i,t,e)=>{let{placement:r="bottom",strategy:o="absolute",middleware:a=[],platform:s}=e,l=a.filter(Boolean),d=await(s.isRTL==null?void 0:s.isRTL(t)),p=await s.getElementRects({reference:i,floating:t,strategy:o}),{x:h,y:b}=yn(p,r,d),x=r,y={},E=0;for(let A=0;A<l.length;A++){let{name:w,fn:S}=l[A],{x:C,y:R,data:B,reset:z}=await S({x:h,y:b,initialPlacement:r,placement:x,strategy:o,middlewareData:y,rects:p,platform:s,elements:{reference:i,floating:t}});h=C!=null?C:h,b=R!=null?R:b,y={...y,[w]:{...y[w],...B}},z&&E<=50&&(E++,typeof z=="object"&&(z.placement&&(x=z.placement),z.rects&&(p=z.rects===!0?await s.getElementRects({reference:i,floating:t,strategy:o}):z.rects),{x:h,y:b}=yn(p,x,d)),A=-1)}return{x:h,y:b,placement:x,strategy:o,middlewareData:y}};async function Po(i,t){var e;t===void 0&&(t={});let{x:r,y:o,platform:a,rects:s,elements:l,strategy:d}=i,{boundary:p="clippingAncestors",rootBoundary:h="viewport",elementContext:b="floating",altBoundary:x=!1,padding:y=0}=xt(t,i),E=Zi(y),w=l[x?b==="floating"?"reference":"floating":b],S=Tt(await a.getClippingRect({element:(e=await(a.isElement==null?void 0:a.isElement(w)))==null||e?w:w.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(l.floating)),boundary:p,rootBoundary:h,strategy:d})),C=b==="floating"?{x:r,y:o,width:s.floating.width,height:s.floating.height}:s.reference,R=await(a.getOffsetParent==null?void 0:a.getOffsetParent(l.floating)),B=await(a.isElement==null?void 0:a.isElement(R))?await(a.getScale==null?void 0:a.getScale(R))||{x:1,y:1}:{x:1,y:1},z=Tt(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:C,offsetParent:R,strategy:d}):C);return{top:(S.top-z.top+E.top)/B.y,bottom:(z.bottom-S.bottom+E.bottom)/B.y,left:(S.left-z.left+E.left)/B.x,right:(z.right-S.right+E.right)/B.x}}var En=i=>({name:"arrow",options:i,async fn(t){let{x:e,y:r,placement:o,rects:a,platform:s,elements:l,middlewareData:d}=t,{element:p,padding:h=0}=xt(i,t)||{};if(p==null)return{};let b=Zi(h),x={x:e,y:r},y=zo(o),E=$o(y),A=await s.getDimensions(p),w=y==="y",S=w?"top":"left",C=w?"bottom":"right",R=w?"clientHeight":"clientWidth",B=a.reference[E]+a.reference[y]-x[y]-a.floating[E],z=x[y]-a.reference[y],de=await(s.getOffsetParent==null?void 0:s.getOffsetParent(p)),be=de?de[R]:0;(!be||!await(s.isElement==null?void 0:s.isElement(de)))&&(be=l.floating[R]||a.floating[E]);let _e=B/2-z/2,Se=be/2-A[E]/2-1,ve=Ne(b[S],Se),Ze=Ne(b[C],Se),Ie=ve,Xe=be-A[E]-Ze,X=be/2-A[E]/2+_e,Bt=Do(Ie,X,Xe),Le=!d.arrow&&Et(o)!=null&&X!==Bt&&a.reference[E]/2-(X<Ie?ve:Ze)-A[E]/2<0,we=Le?X<Ie?X-Ie:X-Xe:0;return{[y]:x[y]+we,data:{[y]:Bt,centerOffset:X-Bt-we,...Le&&{alignmentOffset:we}},reset:Le}}});var Tn=function(i){return i===void 0&&(i={}),{name:"flip",options:i,async fn(t){var e,r;let{placement:o,middlewareData:a,rects:s,initialPlacement:l,platform:d,elements:p}=t,{mainAxis:h=!0,crossAxis:b=!0,fallbackPlacements:x,fallbackStrategy:y="bestFit",fallbackAxisSideDirection:E="none",flipAlignment:A=!0,...w}=xt(i,t);if((e=a.arrow)!=null&&e.alignmentOffset)return{};let S=Be(o),C=ot(l),R=Be(l)===l,B=await(d.isRTL==null?void 0:d.isRTL(p.floating)),z=x||(R||!A?[Hr(l)]:vn(l)),de=E!=="none";!x&&de&&z.push(...gn(l,A,E,B));let be=[l,...z],_e=await Po(t,w),Se=[],ve=((r=a.flip)==null?void 0:r.overflows)||[];if(h&&Se.push(_e[S]),b){let X=bn(o,s,B);Se.push(_e[X[0]],_e[X[1]])}if(ve=[...ve,{placement:o,overflows:Se}],!Se.every(X=>X<=0)){var Ze,Ie;let X=(((Ze=a.flip)==null?void 0:Ze.index)||0)+1,Bt=be[X];if(Bt)return{data:{index:X,overflows:ve},reset:{placement:Bt}};let Le=(Ie=ve.filter(we=>we.overflows[0]<=0).sort((we,Ke)=>we.overflows[1]-Ke.overflows[1])[0])==null?void 0:Ie.placement;if(!Le)switch(y){case"bestFit":{var Xe;let we=(Xe=ve.filter(Ke=>{if(de){let je=ot(Ke.placement);return je===C||je==="y"}return!0}).map(Ke=>[Ke.placement,Ke.overflows.filter(je=>je>0).reduce((je,Ec)=>je+Ec,0)]).sort((Ke,je)=>Ke[1]-je[1])[0])==null?void 0:Xe[0];we&&(Le=we);break}case"initialPlacement":Le=l;break}if(o!==Le)return{reset:{placement:Le}}}return{}}}};async function wd(i,t){let{placement:e,platform:r,elements:o}=i,a=await(r.isRTL==null?void 0:r.isRTL(o.floating)),s=Be(e),l=Et(e),d=ot(e)==="y",p=["left","top"].includes(s)?-1:1,h=a&&d?-1:1,b=xt(t,i),{mainAxis:x,crossAxis:y,alignmentAxis:E}=typeof b=="number"?{mainAxis:b,crossAxis:0,alignmentAxis:null}:{mainAxis:b.mainAxis||0,crossAxis:b.crossAxis||0,alignmentAxis:b.alignmentAxis};return l&&typeof E=="number"&&(y=l==="end"?E*-1:E),d?{x:y*h,y:x*p}:{x:x*p,y:y*h}}var An=function(i){return i===void 0&&(i=0),{name:"offset",options:i,async fn(t){var e,r;let{x:o,y:a,placement:s,middlewareData:l}=t,d=await wd(t,i);return s===((e=l.offset)==null?void 0:e.placement)&&(r=l.arrow)!=null&&r.alignmentOffset?{}:{x:o+d.x,y:a+d.y,data:{...d,placement:s}}}}},Sn=function(i){return i===void 0&&(i={}),{name:"shift",options:i,async fn(t){let{x:e,y:r,placement:o}=t,{mainAxis:a=!0,crossAxis:s=!1,limiter:l={fn:w=>{let{x:S,y:C}=w;return{x:S,y:C}}},...d}=xt(i,t),p={x:e,y:r},h=await Po(t,d),b=ot(Be(o)),x=qi(b),y=p[x],E=p[b];if(a){let w=x==="y"?"top":"left",S=x==="y"?"bottom":"right",C=y+h[w],R=y-h[S];y=Do(C,y,R)}if(s){let w=b==="y"?"top":"left",S=b==="y"?"bottom":"right",C=E+h[w],R=E-h[S];E=Do(C,E,R)}let A=l.fn({...t,[x]:y,[b]:E});return{...A,data:{x:A.x-e,y:A.y-r,enabled:{[x]:a,[b]:s}}}}}};var In=function(i){return i===void 0&&(i={}),{name:"size",options:i,async fn(t){var e,r;let{placement:o,rects:a,platform:s,elements:l}=t,{apply:d=()=>{},...p}=xt(i,t),h=await Po(t,p),b=Be(o),x=Et(o),y=ot(o)==="y",{width:E,height:A}=a.floating,w,S;b==="top"||b==="bottom"?(w=b,S=x===(await(s.isRTL==null?void 0:s.isRTL(l.floating))?"start":"end")?"left":"right"):(S=b,w=x==="end"?"top":"bottom");let C=A-h.top-h.bottom,R=E-h.left-h.right,B=Ne(A-h[w],C),z=Ne(E-h[S],R),de=!t.middlewareData.shift,be=B,_e=z;if((e=t.middlewareData.shift)!=null&&e.enabled.x&&(_e=R),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(be=C),de&&!x){let ve=Q(h.left,0),Ze=Q(h.right,0),Ie=Q(h.top,0),Xe=Q(h.bottom,0);y?_e=E-2*(ve!==0||Ze!==0?ve+Ze:Q(h.left,h.right)):be=A-2*(Ie!==0||Xe!==0?Ie+Xe:Q(h.top,h.bottom))}await d({...t,availableWidth:_e,availableHeight:be});let Se=await s.getDimensions(l.floating);return E!==Se.width||A!==Se.height?{reset:{rects:!0}}:{}}}};function Vo(){return typeof window<"u"}function At(i){return Cn(i)?(i.nodeName||"").toLowerCase():"#document"}function oe(i){var t;return(i==null||(t=i.ownerDocument)==null?void 0:t.defaultView)||window}function xe(i){var t;return(t=(Cn(i)?i.ownerDocument:i.document)||window.document)==null?void 0:t.documentElement}function Cn(i){return Vo()?i instanceof Node||i instanceof oe(i).Node:!1}function pe(i){return Vo()?i instanceof Element||i instanceof oe(i).Element:!1}function Ee(i){return Vo()?i instanceof HTMLElement||i instanceof oe(i).HTMLElement:!1}function wn(i){return!Vo()||typeof ShadowRoot>"u"?!1:i instanceof ShadowRoot||i instanceof oe(i).ShadowRoot}function dr(i){let{overflow:t,overflowX:e,overflowY:r,display:o}=he(i);return/auto|scroll|overlay|hidden|clip/.test(t+r+e)&&!["inline","contents"].includes(o)}function kn(i){return["table","td","th"].includes(At(i))}function Yr(i){return[":popover-open",":modal"].some(t=>{try{return i.matches(t)}catch{return!1}})}function Uo(i){let t=Fo(),e=pe(i)?he(i):i;return e.transform!=="none"||e.perspective!=="none"||(e.containerType?e.containerType!=="normal":!1)||!t&&(e.backdropFilter?e.backdropFilter!=="none":!1)||!t&&(e.filter?e.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(e.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(e.contain||"").includes(r))}function Nn(i){let t=He(i);for(;Ee(t)&&!St(t);){if(Uo(t))return t;if(Yr(t))return null;t=He(t)}return null}function Fo(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function St(i){return["html","body","#document"].includes(At(i))}function he(i){return oe(i).getComputedStyle(i)}function qr(i){return pe(i)?{scrollLeft:i.scrollLeft,scrollTop:i.scrollTop}:{scrollLeft:i.scrollX,scrollTop:i.scrollY}}function He(i){if(At(i)==="html")return i;let t=i.assignedSlot||i.parentNode||wn(i)&&i.host||xe(i);return wn(t)?t.host:t}function _n(i){let t=He(i);return St(t)?i.ownerDocument?i.ownerDocument.body:i.body:Ee(t)&&dr(t)?t:_n(t)}function cr(i,t,e){var r;t===void 0&&(t=[]),e===void 0&&(e=!0);let o=_n(i),a=o===((r=i.ownerDocument)==null?void 0:r.body),s=oe(o);if(a){let l=Bo(s);return t.concat(s,s.visualViewport||[],dr(o)?o:[],l&&e?cr(l):[])}return t.concat(o,cr(o,[],e))}function Bo(i){return i.parent&&Object.getPrototypeOf(i.parent)?i.frameElement:null}function On(i){let t=he(i),e=parseFloat(t.width)||0,r=parseFloat(t.height)||0,o=Ee(i),a=o?i.offsetWidth:e,s=o?i.offsetHeight:r,l=Gr(e)!==a||Gr(r)!==s;return l&&(e=a,r=s),{width:e,height:r,$:l}}function Ki(i){return pe(i)?i:i.contextElement}function mr(i){let t=Ki(i);if(!Ee(t))return ye(1);let e=t.getBoundingClientRect(),{width:r,height:o,$:a}=On(t),s=(a?Gr(e.width):e.width)/r,l=(a?Gr(e.height):e.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}}var Cd=ye(0);function Mn(i){let t=oe(i);return!Fo()||!t.visualViewport?Cd:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function kd(i,t,e){return t===void 0&&(t=!1),!e||t&&e!==oe(i)?!1:t}function It(i,t,e,r){t===void 0&&(t=!1),e===void 0&&(e=!1);let o=i.getBoundingClientRect(),a=Ki(i),s=ye(1);t&&(r?pe(r)&&(s=mr(r)):s=mr(i));let l=kd(a,e,r)?Mn(a):ye(0),d=(o.left+l.x)/s.x,p=(o.top+l.y)/s.y,h=o.width/s.x,b=o.height/s.y;if(a){let x=oe(a),y=r&&pe(r)?oe(r):r,E=x,A=Bo(E);for(;A&&r&&y!==E;){let w=mr(A),S=A.getBoundingClientRect(),C=he(A),R=S.left+(A.clientLeft+parseFloat(C.paddingLeft))*w.x,B=S.top+(A.clientTop+parseFloat(C.paddingTop))*w.y;d*=w.x,p*=w.y,h*=w.x,b*=w.y,d+=R,p+=B,E=oe(A),A=Bo(E)}}return Tt({width:h,height:b,x:d,y:p})}function ji(i,t){let e=qr(i).scrollLeft;return t?t.left+e:It(xe(i)).left+e}function Dn(i,t,e){e===void 0&&(e=!1);let r=i.getBoundingClientRect(),o=r.left+t.scrollLeft-(e?0:ji(i,r)),a=r.top+t.scrollTop;return{x:o,y:a}}function Nd(i){let{elements:t,rect:e,offsetParent:r,strategy:o}=i,a=o==="fixed",s=xe(r),l=t?Yr(t.floating):!1;if(r===s||l&&a)return e;let d={scrollLeft:0,scrollTop:0},p=ye(1),h=ye(0),b=Ee(r);if((b||!b&&!a)&&((At(r)!=="body"||dr(s))&&(d=qr(r)),Ee(r))){let y=It(r);p=mr(r),h.x=y.x+r.clientLeft,h.y=y.y+r.clientTop}let x=s&&!b&&!a?Dn(s,d,!0):ye(0);return{width:e.width*p.x,height:e.height*p.y,x:e.x*p.x-d.scrollLeft*p.x+h.x+x.x,y:e.y*p.y-d.scrollTop*p.y+h.y+x.y}}function _d(i){return Array.from(i.getClientRects())}function Ld(i){let t=xe(i),e=qr(i),r=i.ownerDocument.body,o=Q(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=Q(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),s=-e.scrollLeft+ji(i),l=-e.scrollTop;return he(r).direction==="rtl"&&(s+=Q(t.clientWidth,r.clientWidth)-o),{width:o,height:a,x:s,y:l}}function Rd(i,t){let e=oe(i),r=xe(i),o=e.visualViewport,a=r.clientWidth,s=r.clientHeight,l=0,d=0;if(o){a=o.width,s=o.height;let p=Fo();(!p||p&&t==="fixed")&&(l=o.offsetLeft,d=o.offsetTop)}return{width:a,height:s,x:l,y:d}}function Od(i,t){let e=It(i,!0,t==="fixed"),r=e.top+i.clientTop,o=e.left+i.clientLeft,a=Ee(i)?mr(i):ye(1),s=i.clientWidth*a.x,l=i.clientHeight*a.y,d=o*a.x,p=r*a.y;return{width:s,height:l,x:d,y:p}}function Ln(i,t,e){let r;if(t==="viewport")r=Rd(i,e);else if(t==="document")r=Ld(xe(i));else if(pe(t))r=Od(t,e);else{let o=Mn(i);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Tt(r)}function $n(i,t){let e=He(i);return e===t||!pe(e)||St(e)?!1:he(e).position==="fixed"||$n(e,t)}function Md(i,t){let e=t.get(i);if(e)return e;let r=cr(i,[],!1).filter(l=>pe(l)&&At(l)!=="body"),o=null,a=he(i).position==="fixed",s=a?He(i):i;for(;pe(s)&&!St(s);){let l=he(s),d=Uo(s);!d&&l.position==="fixed"&&(o=null),(a?!d&&!o:!d&&l.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||dr(s)&&!d&&$n(i,s))?r=r.filter(h=>h!==s):o=l,s=He(s)}return t.set(i,r),r}function Dd(i){let{element:t,boundary:e,rootBoundary:r,strategy:o}=i,s=[...e==="clippingAncestors"?Yr(t)?[]:Md(t,this._c):[].concat(e),r],l=s[0],d=s.reduce((p,h)=>{let b=Ln(t,h,o);return p.top=Q(b.top,p.top),p.right=Ne(b.right,p.right),p.bottom=Ne(b.bottom,p.bottom),p.left=Q(b.left,p.left),p},Ln(t,l,o));return{width:d.right-d.left,height:d.bottom-d.top,x:d.left,y:d.top}}function $d(i){let{width:t,height:e}=On(i);return{width:t,height:e}}function zd(i,t,e){let r=Ee(t),o=xe(t),a=e==="fixed",s=It(i,!0,a,t),l={scrollLeft:0,scrollTop:0},d=ye(0);if(r||!r&&!a)if((At(t)!=="body"||dr(o))&&(l=qr(t)),r){let x=It(t,!0,a,t);d.x=x.x+t.clientLeft,d.y=x.y+t.clientTop}else o&&(d.x=ji(o));let p=o&&!r&&!a?Dn(o,l):ye(0),h=s.left+l.scrollLeft-d.x-p.x,b=s.top+l.scrollTop-d.y-p.y;return{x:h,y:b,width:s.width,height:s.height}}function Xi(i){return he(i).position==="static"}function Rn(i,t){if(!Ee(i)||he(i).position==="fixed")return null;if(t)return t(i);let e=i.offsetParent;return xe(i)===e&&(e=e.ownerDocument.body),e}function zn(i,t){let e=oe(i);if(Yr(i))return e;if(!Ee(i)){let o=He(i);for(;o&&!St(o);){if(pe(o)&&!Xi(o))return o;o=He(o)}return e}let r=Rn(i,t);for(;r&&kn(r)&&Xi(r);)r=Rn(r,t);return r&&St(r)&&Xi(r)&&!Uo(r)?e:r||Nn(i)||e}var Pd=async function(i){let t=this.getOffsetParent||zn,e=this.getDimensions,r=await e(i.floating);return{reference:zd(i.reference,await t(i.floating),i.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Vd(i){return he(i).direction==="rtl"}var Ud={convertOffsetParentRelativeRectToViewportRelativeRect:Nd,getDocumentElement:xe,getClippingRect:Dd,getOffsetParent:zn,getElementRects:Pd,getClientRects:_d,getDimensions:$d,getScale:mr,isElement:pe,isRTL:Vd};function Fd(i,t){let e=null,r,o=xe(i);function a(){var l;clearTimeout(r),(l=e)==null||l.disconnect(),e=null}function s(l,d){l===void 0&&(l=!1),d===void 0&&(d=1),a();let{left:p,top:h,width:b,height:x}=i.getBoundingClientRect();if(l||t(),!b||!x)return;let y=Wr(h),E=Wr(o.clientWidth-(p+b)),A=Wr(o.clientHeight-(h+x)),w=Wr(p),C={rootMargin:-y+"px "+-E+"px "+-A+"px "+-w+"px",threshold:Q(0,Ne(1,d))||1},R=!0;function B(z){let de=z[0].intersectionRatio;if(de!==d){if(!R)return s();de?s(!1,de):r=setTimeout(()=>{s(!1,1e-7)},1e3)}R=!1}try{e=new IntersectionObserver(B,{...C,root:o.ownerDocument})}catch{e=new IntersectionObserver(B,C)}e.observe(i)}return s(!0),a}function Pn(i,t,e,r){r===void 0&&(r={});let{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:d=!1}=r,p=Ki(i),h=o||a?[...p?cr(p):[],...cr(t)]:[];h.forEach(S=>{o&&S.addEventListener("scroll",e,{passive:!0}),a&&S.addEventListener("resize",e)});let b=p&&l?Fd(p,e):null,x=-1,y=null;s&&(y=new ResizeObserver(S=>{let[C]=S;C&&C.target===p&&y&&(y.unobserve(t),cancelAnimationFrame(x),x=requestAnimationFrame(()=>{var R;(R=y)==null||R.observe(t)})),e()}),p&&!d&&y.observe(p),y.observe(t));let E,A=d?It(i):null;d&&w();function w(){let S=It(i);A&&(S.x!==A.x||S.y!==A.y||S.width!==A.width||S.height!==A.height)&&e(),A=S,E=requestAnimationFrame(w)}return e(),()=>{var S;h.forEach(C=>{o&&C.removeEventListener("scroll",e),a&&C.removeEventListener("resize",e)}),b==null||b(),(S=y)==null||S.disconnect(),y=null,d&&cancelAnimationFrame(E)}}var Vn=An;var Un=Sn,Fn=Tn,Bn=In;var Hn=En;var Gn=(i,t,e)=>{let r=new Map,o={platform:Ud,...e},a={...o.platform,_c:r};return xn(i,t,{...o,platform:a})};var Wn=f.constructTagName("popover"),ne={LEFT_START:"left-start",LEFT:"left",LEFT_END:"left-end",RIGHT_START:"right-start",RIGHT:"right",RIGHT_END:"right-end",TOP_START:"top-start",TOP:"top",TOP_END:"top-end",BOTTOM_START:"bottom-start",BOTTOM:"bottom",BOTTOM_END:"bottom-end"},wt={CLICK:"click",MOUSEENTER:"mouseenter",FOCUSIN:"focusin",MANUAL:"manual"},Zr={TONAL:"tonal",CONTRAST:"contrast"},M={PLACEMENT:ne.BOTTOM,TRIGGER:wt.CLICK,COLOR:Zr.TONAL,OFFSET:4,VISIBLE:!1,ARROW:!1,CLOSE_BUTTON:!1,FOCUS_TRAP:!1,INTERACTIVE:!1,PREVENT_SCROLL:!1,HIDE_ON_ESCAPE:!1,HIDE_ON_BLUR:!1,HIDE_ON_CLICK_OUTSIDE:!1,FOCUS_BACK:!1,BACKDROP:!1,FLIP:!0,SIZE:!1,DELAY:"0,0",ROLE:"dialog",Z_INDEX:1e3,DISABLE_ARIA_EXPANDED:!1};var Yn=i=>{class t extends i{constructor(...o){super(...o);this.enabledFocusTrap=M.FOCUS_TRAP;this.enabledPreventScroll=M.PREVENT_SCROLL;this.focusTrapIndex=-1;this.focusableElements=[];this.shouldWrapFocus=()=>!0;this.addEventListener("keydown",this.handleKeydown)}deactivateFocusTrap(){this.enabledFocusTrap=!1,this.enabledPreventScroll=!1,this.focusTrapIndex=-1,document.body.style.overflow=""}hasNoClientRects(o){return o.getClientRects().length===0}hasZeroDimensions(o){let{width:a,height:s}=o.getBoundingClientRect(),{offsetWidth:l,offsetHeight:d}=o;return l+d+s+a===0}isNotVisible(o){return this.hasZeroDimensions(o)||this.hasNoClientRects(o)}hasHiddenStyle(o){let{display:a,opacity:s,visibility:l}=o.style;return a==="none"||s==="0"||l==="hidden"||l==="collapse"}hasComputedHidden(o){let a=getComputedStyle(o);return a.visibility==="hidden"||a.height==="0"||a.display==="none"}isHidden(o){return o.hasAttribute("hidden")||o.getAttribute("aria-hidden")==="true"||this.hasHiddenStyle(o)||this.isNotVisible(o)||this.hasComputedHidden(o)}isNotTabbable(o){return o.getAttribute("tabindex")==="-1"}isInteractiveElement(o){return!!(new Set(["BUTTON","DETAILS","EMBED","IFRAME","SELECT","TEXTAREA"]).has(o.tagName)||o instanceof HTMLAnchorElement&&o.hasAttribute("href")||o instanceof HTMLInputElement&&o.type!=="hidden"||(o instanceof HTMLAudioElement||o instanceof HTMLVideoElement)&&o.hasAttribute("controls")||(o instanceof HTMLImageElement||o instanceof HTMLObjectElement)&&o.hasAttribute("usemap")||o.hasAttribute("tabindex")&&o.tabIndex>-1)}isFocusable(o){return this.isHidden(o)||this.isNotTabbable(o)?!1:this.isInteractiveElement(o)}findFocusable(o,a=new Set){return o instanceof HTMLElement&&this.isFocusable(o)&&a.add(o),Array.from(o.children).forEach(l=>{let d=l;this.isFocusable(d)&&a.add(d),d.shadowRoot?this.findFocusable(d.shadowRoot,a):d.tagName==="SLOT"?d.assignedElements({flatten:!0}).forEach(h=>{h instanceof HTMLElement&&this.findFocusable(h,a)}):this.findFocusable(d,a)}),[...a]}setFocusableElements(){this.shadowRoot&&(this.focusableElements=this.findFocusable(this.shadowRoot,new Set))}setInitialFocus(o=0){this.focusableElements.length!==0&&(this.enabledPreventScroll&&(document.body.style.overflow="hidden"),this.focusableElements[o]&&(this.focusTrapIndex=o,this.focusableElements[o].focus()))}calculateNextIndex(o,a){let{length:s}=this.focusableElements,l=this.shouldWrapFocus();if(o===-1)return a>0?0:s-1;let d=o+a;return l?(d<0&&(d=s-1),d>=s&&(d=0)):(d<0&&(d=0),d>=s&&(d=s-1)),d}getDeepActiveElement(){var a;let o=document.activeElement||document.body;for(;o instanceof HTMLElement&&((a=o.shadowRoot)!=null&&a.activeElement);)o=o.shadowRoot.activeElement;return o||document.body}findElement(o){return this.focusableElements.findIndex(a=>this.isEqualFocusNode(o,a))}isEqualFocusNode(o,a){return o.nodeType>=0?a.isEqualNode(o)&&a===o:!1}trapFocus(o){if(this.focusableElements.length===0)return;let a=this.getDeepActiveElement(),s=this.findElement(a);o?this.focusTrapIndex=this.calculateNextIndex(s,-1):this.focusTrapIndex=this.calculateNextIndex(s,1);let l=this.focusableElements[this.focusTrapIndex];l&&l.focus()}handleKeydown(o){!this.enabledFocusTrap||!this.focusableElements.length||o.key==="Tab"&&(o.preventDefault(),this.trapFocus(o.shiftKey))}}return n([c({type:Boolean})],t.prototype,"enabledFocusTrap",2),n([c({type:Boolean})],t.prototype,"enabledPreventScroll",2),t};var Ct=class{static dispatchPopoverEvent(t,e){e.dispatchEvent(new CustomEvent(t,{detail:{show:e.visible},composed:!0,bubbles:!0}))}static onShowPopover(t){this.dispatchPopoverEvent("shown",t)}static onHidePopover(t){this.dispatchPopoverEvent("hidden",t)}static onCreatedPopover(t){this.dispatchPopoverEvent("created",t)}static onDestroyedPopover(t){this.dispatchPopoverEvent("destroyed",t)}};var Qi=class{constructor(){this.stack=[]}push(t){this.stack.push(t)}pop(){return this.stack.pop()}peek(){return this.stack[this.stack.length-1]}remove(t){this.stack=this.stack.filter(e=>e!==t)}clear(){this.stack=[]}},kt=new Qi;var Bd=u`
1590
1590
  :host {
1591
1591
  --mdc-popover-arrow-border-radius: 0.1875rem;
1592
1592
  --mdc-popover-arrow-border: 0.0625rem solid var(--mds-color-theme-outline-secondary-normal);
@@ -1695,7 +1695,7 @@
1695
1695
  border-top-right-radius: var(--mdc-popover-arrow-border-radius);
1696
1696
  border-bottom-left-radius: 100%;
1697
1697
  }
1698
- `,Wn=[Vd];var Bo=class{constructor(t){this.arrowPixelChange=!1;this.popover=t}setupDelay(){try{let[t,e]=this.popover.delay.split(",").map(r=>{let o=parseInt(r,10);if(Number.isNaN(o)||o<0)throw new Error(`Invalid delay value: ${r}`);return o});return[t,e]}catch{return this.popover.delay="0,0",[0,0]}}setupHoverBridge(t){let e=this.popover.renderRoot.querySelector(".popover-hover-bridge");Object.assign(e.style,{top:"",left:"",right:"",bottom:""});let r=`calc(${this.popover.showArrow?"0.75rem + ":""}${this.popover.offset}px)`,o=this.popover.offsetHeight||0,a=this.popover.offsetWidth||0;if(e)switch(t.split("-")[0]){case"top":e.style.height=r,e.style.bottom=`calc(-1 * (${r}))`,e.style.left="50%",e.style.width=`${a}px`;break;case"left":e.style.height=`${o}px`,e.style.width=r,e.style.right=`calc(-1.5 * (${r}))`;break;case"right":e.style.height=`${o}px`,e.style.width=r,e.style.left=`calc(-0.5 * (${r}))`;break;case"bottom":default:e.style.height=r,e.style.top=`calc(-1 * (${r}))`,e.style.left="50%",e.style.width=`${a}px`;break}}setupAppendTo(){if(this.popover.appendTo){let t=document.getElementById(this.popover.appendTo);t&&t.appendChild(this.popover)}}setupAccessibility(){var t,e,r;(this.popover.role==="dialog"||this.popover.role==="alertdialog")&&this.popover.toggleAttribute("aria-modal",this.popover.interactive),this.popover.interactive?(this.popover.setAttribute("aria-modal","true"),this.popover.ariaLabel||(this.popover.ariaLabel=((t=this.popover.triggerElement)==null?void 0:t.ariaLabel)||((e=this.popover.triggerElement)==null?void 0:e.textContent)||""),this.popover.ariaLabelledby||(this.popover.ariaLabelledby=((r=this.popover.triggerElement)==null?void 0:r.id)||"")):this.popover.removeAttribute("aria-modal")}updateAriaHasPopupAttribute(){var t,e,r;this.popover.interactive?(e=this.popover.triggerElement)==null||e.setAttribute("aria-haspopup",((t=this.popover.triggerElement)==null?void 0:t.getAttribute("aria-haspopup"))||"dialog"):(r=this.popover.triggerElement)==null||r.removeAttribute("aria-haspopup")}updateAriaExpandedAttribute(){var t,e;this.popover.disableAriaExpanded?(t=this.popover.triggerElement)==null||t.removeAttribute("aria-expanded"):(e=this.popover.triggerElement)==null||e.setAttribute("aria-expanded",`${this.popover.visible}`)}updateArrowStyle(t,e){var h;if(!this.popover.arrowElement)return;let r=e.split("-")[0],o={top:"bottom",right:"left",bottom:"top",left:"right"}[r],{x:a,y:s}=t,l=this.popover.arrowElement.getBoundingClientRect(),d=(h=this.popover.arrowElement.offsetParent)==null?void 0:h.getBoundingClientRect();if(!this.arrowPixelChange){let b=d!=null&&d[o]?12-Math.abs(l[o]-d[o]):0;Math.round(b)===1?this.arrowPixelChange=!0:this.arrowPixelChange=!1}let p=this.arrowPixelChange?.5:0;this.popover.arrowElement.setAttribute("data-side",r),Object.assign(this.popover.arrowElement.style,{left:a!=null?`${a}px`:"",top:s!=null?`${s}px`:"",[o]:`${-this.popover.arrowElement.offsetHeight/2-p}px`})}updatePopoverStyle(t,e){Object.assign(this.popover.style,{left:`${t}px`,top:`${e}px`})}createBackdrop(){var t;if(!this.popover.backdropElement){let e=document.createElement("div");e.classList.add("popover-backdrop"),(t=this.popover.parentElement)==null||t.appendChild(e);let r=document.createElement("style");r.textContent=`
1698
+ `,qn=[Bd];var Ho=class{constructor(t){this.arrowPixelChange=!1;this.popover=t}setupDelay(){try{let[t,e]=this.popover.delay.split(",").map(r=>{let o=parseInt(r,10);if(Number.isNaN(o)||o<0)throw new Error(`Invalid delay value: ${r}`);return o});return[t,e]}catch{return this.popover.delay="0,0",[0,0]}}setupHoverBridge(t){let e=this.popover.renderRoot.querySelector(".popover-hover-bridge");Object.assign(e.style,{top:"",left:"",right:"",bottom:""});let r=`calc(${this.popover.showArrow?"0.75rem + ":""}${this.popover.offset}px)`,o=this.popover.offsetHeight||0,a=this.popover.offsetWidth||0;if(e)switch(t.split("-")[0]){case"top":e.style.height=r,e.style.bottom=`calc(-1 * (${r}))`,e.style.left="50%",e.style.width=`${a}px`;break;case"left":e.style.height=`${o}px`,e.style.width=r,e.style.right=`calc(-1.5 * (${r}))`;break;case"right":e.style.height=`${o}px`,e.style.width=r,e.style.left=`calc(-0.5 * (${r}))`;break;case"bottom":default:e.style.height=r,e.style.top=`calc(-1 * (${r}))`,e.style.left="50%",e.style.width=`${a}px`;break}}setupAppendTo(){if(this.popover.appendTo){let t=document.getElementById(this.popover.appendTo);t&&t.appendChild(this.popover)}}setupAccessibility(){var t,e,r;(this.popover.role==="dialog"||this.popover.role==="alertdialog")&&this.popover.toggleAttribute("aria-modal",this.popover.interactive),this.popover.interactive?(this.popover.setAttribute("aria-modal","true"),this.popover.ariaLabel||(this.popover.ariaLabel=((t=this.popover.triggerElement)==null?void 0:t.ariaLabel)||((e=this.popover.triggerElement)==null?void 0:e.textContent)||""),this.popover.ariaLabelledby||(this.popover.ariaLabelledby=((r=this.popover.triggerElement)==null?void 0:r.id)||"")):this.popover.removeAttribute("aria-modal")}updateAriaHasPopupAttribute(){var t,e,r;this.popover.interactive?(e=this.popover.triggerElement)==null||e.setAttribute("aria-haspopup",((t=this.popover.triggerElement)==null?void 0:t.getAttribute("aria-haspopup"))||"dialog"):(r=this.popover.triggerElement)==null||r.removeAttribute("aria-haspopup")}updateAriaExpandedAttribute(){var t,e;this.popover.disableAriaExpanded?(t=this.popover.triggerElement)==null||t.removeAttribute("aria-expanded"):(e=this.popover.triggerElement)==null||e.setAttribute("aria-expanded",`${this.popover.visible}`)}updateArrowStyle(t,e){var h;if(!this.popover.arrowElement)return;let r=e.split("-")[0],o={top:"bottom",right:"left",bottom:"top",left:"right"}[r],{x:a,y:s}=t,l=this.popover.arrowElement.getBoundingClientRect(),d=(h=this.popover.arrowElement.offsetParent)==null?void 0:h.getBoundingClientRect();if(!this.arrowPixelChange){let b=d!=null&&d[o]?12-Math.abs(l[o]-d[o]):0;Math.round(b)===1?this.arrowPixelChange=!0:this.arrowPixelChange=!1}let p=this.arrowPixelChange?.5:0;this.popover.arrowElement.setAttribute("data-side",r),Object.assign(this.popover.arrowElement.style,{left:a!=null?`${a}px`:"",top:s!=null?`${s}px`:"",[o]:`${-this.popover.arrowElement.offsetHeight/2-p}px`})}updatePopoverStyle(t,e){Object.assign(this.popover.style,{left:`${t}px`,top:`${e}px`})}createBackdrop(){var t;if(!this.popover.backdropElement){let e=document.createElement("div");e.classList.add("popover-backdrop"),(t=this.popover.parentElement)==null||t.appendChild(e);let r=document.createElement("style");r.textContent=`
1699
1699
  .popover-backdrop {
1700
1700
  position: fixed;
1701
1701
  top: 0;
@@ -1705,7 +1705,7 @@
1705
1705
  background: transparent;
1706
1706
  z-index: ${this.popover.zIndex-1};
1707
1707
  }
1708
- `,e.appendChild(r),this.popover.backdropElement=e}}};var L=class extends Gn(v){constructor(){super();this.id="";this.triggerID="";this.trigger=M.TRIGGER;this.placement=M.PLACEMENT;this.color=M.COLOR;this.visible=M.VISIBLE;this.offset=M.OFFSET;this.focusTrap=M.FOCUS_TRAP;this.preventScroll=M.PREVENT_SCROLL;this.showArrow=M.ARROW;this.closeButton=M.CLOSE_BUTTON;this.interactive=M.INTERACTIVE;this.delay=M.DELAY;this.hideOnEscape=M.HIDE_ON_ESCAPE;this.hideOnBlur=M.HIDE_ON_BLUR;this.hideOnOutsideClick=M.HIDE_ON_CLICK_OUTSIDE;this.focusBackToTrigger=M.FOCUS_BACK;this.backdrop=M.BACKDROP;this.flip=M.FLIP;this.size=M.SIZE;this.zIndex=M.Z_INDEX;this.appendTo="";this.closeButtonAriaLabel=null;this.role=M.ROLE;this.ariaLabelledby=null;this.ariaDescribedby=null;this.disableAriaExpanded=M.DISABLE_ARIA_EXPANDED;this.arrowElement=null;this.triggerElement=null;this.hoverTimer=null;this.isTriggerClicked=!1;this.openDelay=0;this.closeDelay=0;this.backdropElement=null;this.onOutsidePopoverClick=e=>{if(Ct.peek()!==this)return;let r=!1,o=e.composedPath();r=this.contains(e.target)||o.includes(this.triggerElement);let a=this.backdropElement?o.includes(this.backdropElement):!1;(!r||a)&&this.hidePopover()};this.onEscapeKeydown=e=>{!this.visible||e.code!=="Escape"||(e.preventDefault(),this.hidePopover())};this.onPopoverFocusOut=e=>{this.contains(e.relatedTarget)||this.hidePopover()};this.startCloseDelay=()=>{if(!this.interactive)this.hidePopover();else{if(this.isTriggerClicked)return;this.hoverTimer=window.setTimeout(()=>{this.visible=!1},this.closeDelay)}};this.cancelCloseDelay=()=>{this.hoverTimer&&(clearTimeout(this.hoverTimer),this.hoverTimer=null)};this.showPopover=()=>{this.cancelCloseDelay(),setTimeout(()=>{this.visible=!0},this.openDelay)};this.hidePopover=()=>{Ct.peek()===this&&setTimeout(()=>{this.visible=!1,this.isTriggerClicked=!1},this.closeDelay)};this.togglePopoverVisible=()=>{this.isTriggerClicked?this.hidePopover():(this.showPopover(),this.isTriggerClicked=!0)};this.utils=new Bo(this)}async firstUpdated(e){super.firstUpdated(e),this.utils.setupAppendTo(),[this.openDelay,this.closeDelay]=this.utils.setupDelay(),this.setupTriggerListener(),this.utils.setupAccessibility(),this.style.zIndex=`${this.zIndex}`,wt.onCreatedPopover(this),this.visible&&(this.positionPopover(),await this.handleCreatePopoverFirstUpdate())}async disconnectedCallback(){super.disconnectedCallback(),this.removeEventListeners(),wt.onDestroyedPopover(this),Ct.remove(this)}setupTriggerListener(){if(this.triggerID&&(this.triggerElement=this.getRootNode().querySelector(`[id="${this.triggerID}"]`),!!this.triggerElement)){if(this.trigger==="mouseenter"&&(this.interactive?this.trigger="mouseenter click":this.trigger="mouseenter focusin"),this.trigger.includes("click")&&this.triggerElement.addEventListener("click",this.togglePopoverVisible),this.trigger.includes("mouseenter")){let e=this.renderRoot.querySelector(".popover-hover-bridge");this.triggerElement.addEventListener("mouseenter",this.showPopover),this.triggerElement.addEventListener("mouseleave",this.startCloseDelay),this.addEventListener("mouseenter",this.cancelCloseDelay),this.addEventListener("mouseleave",this.startCloseDelay),e==null||e.addEventListener("mouseenter",this.cancelCloseDelay)}this.trigger.includes("focusin")&&(this.triggerElement.addEventListener("focusin",this.showPopover),this.interactive||this.triggerElement.addEventListener("focusout",this.hidePopover)),this.addEventListener("focus-trap-exit",this.hidePopover)}}removeEventListeners(){if(!this.triggerElement)return;let e=this.renderRoot.querySelector(".popover-hover-bridge");this.triggerElement.removeEventListener("click",this.togglePopoverVisible),this.triggerElement.removeEventListener("mouseenter",this.showPopover),this.triggerElement.removeEventListener("mouseleave",this.hidePopover),this.removeEventListener("mouseenter",this.cancelCloseDelay),this.removeEventListener("mouseleave",this.startCloseDelay),this.triggerElement.removeEventListener("focusin",this.showPopover),this.triggerElement.removeEventListener("focusout",this.hidePopover),e==null||e.removeEventListener("mouseenter",this.cancelCloseDelay),this.removeEventListener("focus-trap-exit",this.hidePopover)}async updated(e){if(super.updated(e),e.has("visible")){let r=e.get("visible")||!1;await this.isOpenUpdated(r,this.visible),this.utils.updateAriaExpandedAttribute()}if(e.has("placement")&&this.setAttribute("placement",Object.values(ne).includes(this.placement)?this.placement:M.PLACEMENT),e.has("delay")&&([this.openDelay,this.closeDelay]=this.utils.setupDelay()),e.has("trigger")){let o=this.trigger.split(" ").filter(a=>Object.values(It).includes(a));this.setAttribute("trigger",o.length>0?this.trigger:M.TRIGGER),this.removeEventListeners(),this.setupTriggerListener()}e.has("color")&&this.setAttribute("color",Object.values(Zr).includes(this.color)?this.color:M.COLOR),e.has("zIndex")&&this.setAttribute("z-index",`${this.zIndex}`),e.has("append-to")&&this.utils.setupAppendTo(),(e.has("interactive")||e.has("aria-label")||e.has("aria-labelledby"))&&this.utils.setupAccessibility(),e.has("disableAriaExpanded")&&this.utils.updateAriaExpandedAttribute(),e.has("interactive")&&this.utils.updateAriaHasPopupAttribute()}async isOpenUpdated(e,r){var o,a,s;if(!(e===r||!this.triggerElement))if(r)Ct.peek()!==this&&Ct.push(this),this.enabledFocusTrap=this.focusTrap,this.enabledPreventScroll=this.preventScroll,this.backdrop&&(this.utils.createBackdrop(),this.triggerElement.style.zIndex=`${this.zIndex}`),this.positionPopover(),await this.handleCreatePopoverFirstUpdate(),this.hideOnBlur&&(this.addEventListener("focusout",this.onPopoverFocusOut),this.trigger==="click"&&(this.triggerElement.style.pointerEvents="none")),this.hideOnOutsideClick&&document.addEventListener("click",this.onOutsidePopoverClick),this.hideOnEscape&&document.addEventListener("keydown",this.onEscapeKeydown),wt.onShowPopover(this);else{if(Ct.pop(),this.backdropElement&&((o=this.backdropElement)==null||o.remove(),this.backdropElement=null),this.hideOnBlur&&(this.removeEventListener("focusout",this.onPopoverFocusOut),this.trigger==="click"&&(this.triggerElement.style.pointerEvents="")),this.hideOnOutsideClick&&document.removeEventListener("click",this.onOutsidePopoverClick),this.hideOnEscape&&document.removeEventListener("keydown",this.onEscapeKeydown),(a=this.deactivateFocusTrap)==null||a.call(this),this.disableAriaExpanded||this.triggerElement.removeAttribute("aria-expanded"),this.interactive){let l=this.triggerElement.getAttribute("aria-haspopup");(l==="dialog"||l==="alertdialog")&&this.triggerElement.removeAttribute("aria-haspopup")}this.focusBackToTrigger&&((s=this.triggerElement)==null||s.focus()),wt.onHidePopover(this)}}async handleCreatePopoverFirstUpdate(){var e,r;this.visible&&this.interactive&&((e=this.setFocusableElements)==null||e.call(this),await this.updateComplete,(r=this.setInitialFocus)==null||r.call(this))}positionPopover(){if(!this.triggerElement)return;let e=[Pn()],r=this.offset;if(this.flip&&e.push(Vn()),this.size){let o=this.renderRoot.querySelector('[part="popover-content"]');e.push(Un({apply({availableHeight:a}){o&&Object.assign(o.style,{maxHeight:`${a}px`,overflowY:"auto"})},padding:50}))}if(this.showArrow&&(this.arrowElement=this.renderRoot.querySelector(".popover-arrow"),this.arrowElement)){let o=this.arrowElement.offsetHeight;r=Math.sqrt(2*o**2)/2+this.offset,e.push(Fn({element:this.arrowElement,padding:12}))}e.push(zn(r)),$n(this.triggerElement,this,async()=>{if(!this.triggerElement)return;let{x:o,y:a,middlewareData:s,placement:l}=await Bn(this.triggerElement,this,{placement:this.placement,middleware:e});this.utils.updatePopoverStyle(o,a),s.arrow&&this.arrowElement&&this.utils.updateArrowStyle(s.arrow,l),this.trigger.includes("mouseenter")&&this.utils.setupHoverBridge(l)})}render(){return m`
1708
+ `,e.appendChild(r),this.popover.backdropElement=e}}};var L=class extends Yn(v){constructor(){super();this.id="";this.triggerID="";this.trigger=M.TRIGGER;this.placement=M.PLACEMENT;this.color=M.COLOR;this.visible=M.VISIBLE;this.offset=M.OFFSET;this.focusTrap=M.FOCUS_TRAP;this.preventScroll=M.PREVENT_SCROLL;this.showArrow=M.ARROW;this.closeButton=M.CLOSE_BUTTON;this.interactive=M.INTERACTIVE;this.delay=M.DELAY;this.hideOnEscape=M.HIDE_ON_ESCAPE;this.hideOnBlur=M.HIDE_ON_BLUR;this.hideOnOutsideClick=M.HIDE_ON_CLICK_OUTSIDE;this.focusBackToTrigger=M.FOCUS_BACK;this.backdrop=M.BACKDROP;this.flip=M.FLIP;this.size=M.SIZE;this.zIndex=M.Z_INDEX;this.appendTo="";this.closeButtonAriaLabel=null;this.role=M.ROLE;this.ariaLabelledby=null;this.ariaDescribedby=null;this.disableAriaExpanded=M.DISABLE_ARIA_EXPANDED;this.arrowElement=null;this.triggerElement=null;this.hoverTimer=null;this.isTriggerClicked=!1;this.openDelay=0;this.closeDelay=0;this.backdropElement=null;this.onOutsidePopoverClick=e=>{if(kt.peek()!==this)return;let r=!1,o=e.composedPath();r=this.contains(e.target)||o.includes(this.triggerElement);let a=this.backdropElement?o.includes(this.backdropElement):!1;(!r||a)&&this.hidePopover()};this.onEscapeKeydown=e=>{!this.visible||e.code!=="Escape"||(e.preventDefault(),this.hidePopover())};this.onPopoverFocusOut=e=>{this.contains(e.relatedTarget)||this.hidePopover()};this.startCloseDelay=()=>{if(!this.interactive)this.hidePopover();else{if(this.isTriggerClicked)return;this.hoverTimer=window.setTimeout(()=>{this.visible=!1},this.closeDelay)}};this.cancelCloseDelay=()=>{this.hoverTimer&&(clearTimeout(this.hoverTimer),this.hoverTimer=null)};this.showPopover=()=>{this.cancelCloseDelay(),setTimeout(()=>{this.visible=!0},this.openDelay)};this.hidePopover=()=>{kt.peek()===this&&setTimeout(()=>{this.visible=!1,this.isTriggerClicked=!1},this.closeDelay)};this.togglePopoverVisible=()=>{this.isTriggerClicked?this.hidePopover():(this.showPopover(),this.isTriggerClicked=!0)};this.utils=new Ho(this)}async firstUpdated(e){super.firstUpdated(e),this.utils.setupAppendTo(),[this.openDelay,this.closeDelay]=this.utils.setupDelay(),this.setupTriggerListener(),this.utils.setupAccessibility(),this.style.zIndex=`${this.zIndex}`,Ct.onCreatedPopover(this),this.visible&&(this.positionPopover(),await this.handleCreatePopoverFirstUpdate())}async disconnectedCallback(){super.disconnectedCallback(),this.removeEventListeners(),Ct.onDestroyedPopover(this),kt.remove(this)}setupTriggerListener(){if(this.triggerID&&(this.triggerElement=this.getRootNode().querySelector(`[id="${this.triggerID}"]`),!!this.triggerElement)){if(this.trigger==="mouseenter"&&(this.interactive?this.trigger="mouseenter click":this.trigger="mouseenter focusin"),this.trigger.includes("click")&&this.triggerElement.addEventListener("click",this.togglePopoverVisible),this.trigger.includes("mouseenter")){let e=this.renderRoot.querySelector(".popover-hover-bridge");this.triggerElement.addEventListener("mouseenter",this.showPopover),this.triggerElement.addEventListener("mouseleave",this.startCloseDelay),this.addEventListener("mouseenter",this.cancelCloseDelay),this.addEventListener("mouseleave",this.startCloseDelay),e==null||e.addEventListener("mouseenter",this.cancelCloseDelay)}this.trigger.includes("focusin")&&(this.triggerElement.addEventListener("focusin",this.showPopover),this.interactive||this.triggerElement.addEventListener("focusout",this.hidePopover)),this.addEventListener("focus-trap-exit",this.hidePopover)}}removeEventListeners(){if(!this.triggerElement)return;let e=this.renderRoot.querySelector(".popover-hover-bridge");this.triggerElement.removeEventListener("click",this.togglePopoverVisible),this.triggerElement.removeEventListener("mouseenter",this.showPopover),this.triggerElement.removeEventListener("mouseleave",this.hidePopover),this.removeEventListener("mouseenter",this.cancelCloseDelay),this.removeEventListener("mouseleave",this.startCloseDelay),this.triggerElement.removeEventListener("focusin",this.showPopover),this.triggerElement.removeEventListener("focusout",this.hidePopover),e==null||e.removeEventListener("mouseenter",this.cancelCloseDelay),this.removeEventListener("focus-trap-exit",this.hidePopover)}async updated(e){if(super.updated(e),e.has("visible")){let r=e.get("visible")||!1;await this.isOpenUpdated(r,this.visible),this.utils.updateAriaExpandedAttribute()}if(e.has("placement")&&this.setAttribute("placement",Object.values(ne).includes(this.placement)?this.placement:M.PLACEMENT),e.has("delay")&&([this.openDelay,this.closeDelay]=this.utils.setupDelay()),e.has("trigger")){let o=this.trigger.split(" ").filter(a=>Object.values(wt).includes(a));this.setAttribute("trigger",o.length>0?this.trigger:M.TRIGGER),this.removeEventListeners(),this.setupTriggerListener()}e.has("color")&&this.setAttribute("color",Object.values(Zr).includes(this.color)?this.color:M.COLOR),e.has("zIndex")&&this.setAttribute("z-index",`${this.zIndex}`),e.has("append-to")&&this.utils.setupAppendTo(),(e.has("interactive")||e.has("aria-label")||e.has("aria-labelledby"))&&this.utils.setupAccessibility(),e.has("disableAriaExpanded")&&this.utils.updateAriaExpandedAttribute(),e.has("interactive")&&this.utils.updateAriaHasPopupAttribute()}async isOpenUpdated(e,r){var o,a,s;if(!(e===r||!this.triggerElement))if(r)kt.peek()!==this&&kt.push(this),this.enabledFocusTrap=this.focusTrap,this.enabledPreventScroll=this.preventScroll,this.backdrop&&(this.utils.createBackdrop(),this.triggerElement.style.zIndex=`${this.zIndex}`),this.positionPopover(),await this.handleCreatePopoverFirstUpdate(),this.hideOnBlur&&(this.addEventListener("focusout",this.onPopoverFocusOut),this.trigger==="click"&&(this.triggerElement.style.pointerEvents="none")),this.hideOnOutsideClick&&document.addEventListener("click",this.onOutsidePopoverClick),this.hideOnEscape&&document.addEventListener("keydown",this.onEscapeKeydown),Ct.onShowPopover(this);else{if(kt.pop(),this.backdropElement&&((o=this.backdropElement)==null||o.remove(),this.backdropElement=null),this.hideOnBlur&&(this.removeEventListener("focusout",this.onPopoverFocusOut),this.trigger==="click"&&(this.triggerElement.style.pointerEvents="")),this.hideOnOutsideClick&&document.removeEventListener("click",this.onOutsidePopoverClick),this.hideOnEscape&&document.removeEventListener("keydown",this.onEscapeKeydown),(a=this.deactivateFocusTrap)==null||a.call(this),this.disableAriaExpanded||this.triggerElement.removeAttribute("aria-expanded"),this.interactive){let l=this.triggerElement.getAttribute("aria-haspopup");(l==="dialog"||l==="alertdialog")&&this.triggerElement.removeAttribute("aria-haspopup")}this.focusBackToTrigger&&((s=this.triggerElement)==null||s.focus()),Ct.onHidePopover(this)}}async handleCreatePopoverFirstUpdate(){var e,r;this.visible&&this.interactive&&((e=this.setFocusableElements)==null||e.call(this),await this.updateComplete,(r=this.setInitialFocus)==null||r.call(this))}positionPopover(){if(!this.triggerElement)return;let e=[Un()],r=this.offset;if(this.flip&&e.push(Fn()),this.size){let o=this.renderRoot.querySelector('[part="popover-content"]');e.push(Bn({apply({availableHeight:a}){o&&Object.assign(o.style,{maxHeight:`${a}px`,overflowY:"auto"})},padding:50}))}if(this.showArrow&&(this.arrowElement=this.renderRoot.querySelector(".popover-arrow"),this.arrowElement)){let o=this.arrowElement.offsetHeight;r=Math.sqrt(2*o**2)/2+this.offset,e.push(Hn({element:this.arrowElement,padding:12}))}e.push(Vn(r)),Pn(this.triggerElement,this,async()=>{if(!this.triggerElement)return;let{x:o,y:a,middlewareData:s,placement:l}=await Gn(this.triggerElement,this,{placement:this.placement,middleware:e});this.utils.updatePopoverStyle(o,a),s.arrow&&this.arrowElement&&this.utils.updateArrowStyle(s.arrow,l),this.trigger.includes("mouseenter")&&this.utils.setupHoverBridge(l)})}render(){return m`
1709
1709
  <div class="popover-hover-bridge"></div>
1710
1710
  ${this.closeButton?m` <mdc-button
1711
1711
  class="popover-close"
@@ -1719,7 +1719,7 @@
1719
1719
  <div part="popover-content">
1720
1720
  <slot></slot>
1721
1721
  </div>
1722
- `}};L.styles=[...v.styles,...Wn],n([c({type:String,reflect:!0})],L.prototype,"id",2),n([c({type:String,reflect:!0})],L.prototype,"triggerID",2),n([c({type:String,reflect:!0})],L.prototype,"trigger",2),n([c({type:String,reflect:!0})],L.prototype,"placement",2),n([c({type:String,reflect:!0})],L.prototype,"color",2),n([c({type:Boolean,reflect:!0})],L.prototype,"visible",2),n([c({type:Number,reflect:!0})],L.prototype,"offset",2),n([c({type:Boolean,reflect:!0,attribute:"focus-trap"})],L.prototype,"focusTrap",2),n([c({type:Boolean,reflect:!0,attribute:"prevent-scroll"})],L.prototype,"preventScroll",2),n([c({type:Boolean,reflect:!0,attribute:"show-arrow"})],L.prototype,"showArrow",2),n([c({type:Boolean,reflect:!0,attribute:"close-button"})],L.prototype,"closeButton",2),n([c({type:Boolean,reflect:!0})],L.prototype,"interactive",2),n([c({type:String,reflect:!0})],L.prototype,"delay",2),n([c({type:Boolean,reflect:!0,attribute:"hide-on-escape"})],L.prototype,"hideOnEscape",2),n([c({type:Boolean,reflect:!0,attribute:"hide-on-blur"})],L.prototype,"hideOnBlur",2),n([c({type:Boolean,reflect:!0,attribute:"hide-on-outside-click"})],L.prototype,"hideOnOutsideClick",2),n([c({type:Boolean,reflect:!0,attribute:"focus-back-to-trigger"})],L.prototype,"focusBackToTrigger",2),n([c({type:Boolean,reflect:!0})],L.prototype,"backdrop",2),n([c({type:Boolean,reflect:!0})],L.prototype,"flip",2),n([c({type:Boolean,reflect:!0})],L.prototype,"size",2),n([c({type:Number,reflect:!0,attribute:"z-index"})],L.prototype,"zIndex",2),n([c({type:String,reflect:!0,attribute:"append-to"})],L.prototype,"appendTo",2),n([c({type:String,attribute:"close-button-aria-label",reflect:!0})],L.prototype,"closeButtonAriaLabel",2),n([c({type:String,reflect:!0})],L.prototype,"role",2),n([c({type:String,reflect:!0,attribute:"aria-labelledby"})],L.prototype,"ariaLabelledby",2),n([c({type:String,reflect:!0,attribute:"aria-describedby"})],L.prototype,"ariaDescribedby",2),n([c({type:Boolean,reflect:!0,attribute:"disable-aria-expanded"})],L.prototype,"disableAriaExpanded",2);var Te=L;var Yn=f.constructTagName("coachmark"),kt={COLOR:Zr.CONTRAST,TRIGGER:It.MANUAL,ARROW:!0,CLOSE_BUTTON:!0,DISABLE_ARIA_EXPANDED:!0};var Nt=class extends Te{constructor(){super(...arguments);this.trigger=kt.TRIGGER;this.showArrow=kt.ARROW;this.closeButton=kt.CLOSE_BUTTON;this.disableAriaExpanded=kt.DISABLE_ARIA_EXPANDED}connectedCallback(){super.connectedCallback(),this.color=kt.COLOR,this.showArrow=kt.ARROW}};n([c({type:String,reflect:!0})],Nt.prototype,"trigger",2),n([c({type:Boolean,attribute:"show-arrow"})],Nt.prototype,"showArrow",2),n([c({type:Boolean,reflect:!0,attribute:"close-button"})],Nt.prototype,"closeButton",2),n([c({type:Boolean,reflect:!0,attribute:"disable-aria-expanded"})],Nt.prototype,"disableAriaExpanded",2);var ji=Nt;ji.register(Yn);var Ud=ji;var Fd=[u`
1722
+ `}};L.styles=[...v.styles,...qn],n([c({type:String,reflect:!0})],L.prototype,"id",2),n([c({type:String,reflect:!0})],L.prototype,"triggerID",2),n([c({type:String,reflect:!0})],L.prototype,"trigger",2),n([c({type:String,reflect:!0})],L.prototype,"placement",2),n([c({type:String,reflect:!0})],L.prototype,"color",2),n([c({type:Boolean,reflect:!0})],L.prototype,"visible",2),n([c({type:Number,reflect:!0})],L.prototype,"offset",2),n([c({type:Boolean,reflect:!0,attribute:"focus-trap"})],L.prototype,"focusTrap",2),n([c({type:Boolean,reflect:!0,attribute:"prevent-scroll"})],L.prototype,"preventScroll",2),n([c({type:Boolean,reflect:!0,attribute:"show-arrow"})],L.prototype,"showArrow",2),n([c({type:Boolean,reflect:!0,attribute:"close-button"})],L.prototype,"closeButton",2),n([c({type:Boolean,reflect:!0})],L.prototype,"interactive",2),n([c({type:String,reflect:!0})],L.prototype,"delay",2),n([c({type:Boolean,reflect:!0,attribute:"hide-on-escape"})],L.prototype,"hideOnEscape",2),n([c({type:Boolean,reflect:!0,attribute:"hide-on-blur"})],L.prototype,"hideOnBlur",2),n([c({type:Boolean,reflect:!0,attribute:"hide-on-outside-click"})],L.prototype,"hideOnOutsideClick",2),n([c({type:Boolean,reflect:!0,attribute:"focus-back-to-trigger"})],L.prototype,"focusBackToTrigger",2),n([c({type:Boolean,reflect:!0})],L.prototype,"backdrop",2),n([c({type:Boolean,reflect:!0})],L.prototype,"flip",2),n([c({type:Boolean,reflect:!0})],L.prototype,"size",2),n([c({type:Number,reflect:!0,attribute:"z-index"})],L.prototype,"zIndex",2),n([c({type:String,reflect:!0,attribute:"append-to"})],L.prototype,"appendTo",2),n([c({type:String,attribute:"close-button-aria-label",reflect:!0})],L.prototype,"closeButtonAriaLabel",2),n([c({type:String,reflect:!0})],L.prototype,"role",2),n([c({type:String,reflect:!0,attribute:"aria-labelledby"})],L.prototype,"ariaLabelledby",2),n([c({type:String,reflect:!0,attribute:"aria-describedby"})],L.prototype,"ariaDescribedby",2),n([c({type:Boolean,reflect:!0,attribute:"disable-aria-expanded"})],L.prototype,"disableAriaExpanded",2);var Te=L;var Zn=f.constructTagName("coachmark"),Nt={COLOR:Zr.CONTRAST,TRIGGER:wt.MANUAL,ARROW:!0,CLOSE_BUTTON:!0,DISABLE_ARIA_EXPANDED:!0};var _t=class extends Te{constructor(){super(...arguments);this.trigger=Nt.TRIGGER;this.showArrow=Nt.ARROW;this.closeButton=Nt.CLOSE_BUTTON;this.disableAriaExpanded=Nt.DISABLE_ARIA_EXPANDED}connectedCallback(){super.connectedCallback(),this.color=Nt.COLOR,this.showArrow=Nt.ARROW}};n([c({type:String,reflect:!0})],_t.prototype,"trigger",2),n([c({type:Boolean,attribute:"show-arrow"})],_t.prototype,"showArrow",2),n([c({type:Boolean,reflect:!0,attribute:"close-button"})],_t.prototype,"closeButton",2),n([c({type:Boolean,reflect:!0,attribute:"disable-aria-expanded"})],_t.prototype,"disableAriaExpanded",2);var Ji=_t;Ji.register(Zn);var Hd=Ji;var Gd=[u`
1723
1723
  :host{
1724
1724
  display: block;
1725
1725
  position: relative;
@@ -1802,9 +1802,9 @@
1802
1802
  :host([readonly][checked]) .icon:after{
1803
1803
  background-color: var(--mdc-staticradio-text-disabled-color);
1804
1804
  }
1805
- `],qn=Fd;var mr=class extends H(v){constructor(){super(...arguments);this.checked=!1;this.readonly=!1}render(){return m`
1805
+ `],Xn=Gd;var pr=class extends H(v){constructor(){super(...arguments);this.checked=!1;this.readonly=!1}render(){return m`
1806
1806
  <slot></slot>
1807
- <span part="radio-icon" class="icon"></span>`}};mr.styles=[...v.styles,...qn],n([c({type:Boolean,reflect:!0})],mr.prototype,"checked",2),n([c({type:Boolean,reflect:!0})],mr.prototype,"readonly",2);var Qi=mr;var Zn=f.constructTagName("staticradio");Qi.register(Zn);var Bd=Qi;var Xn=f.constructTagName("statictoggle"),Hd={DEFAULT:"default",COMPACT:"compact"},Ji={CHECKED:"check-bold",UNCHECKED:"cancel-bold"},Kn={compact:.75,default:1.25},jn={SIZE:Hd.DEFAULT};var Gd=[u`
1807
+ <span part="radio-icon" class="icon"></span>`}};pr.styles=[...v.styles,...Xn],n([c({type:Boolean,reflect:!0})],pr.prototype,"checked",2),n([c({type:Boolean,reflect:!0})],pr.prototype,"readonly",2);var ea=pr;var Kn=f.constructTagName("staticradio");ea.register(Kn);var Wd=ea;var jn=f.constructTagName("statictoggle"),Yd={DEFAULT:"default",COMPACT:"compact"},ta={CHECKED:"check-bold",UNCHECKED:"cancel-bold"},Qn={compact:.75,default:1.25},Jn={SIZE:Yd.DEFAULT};var qd=[u`
1808
1808
  :host {
1809
1809
  --mdc-statictoggle-width: 3rem;
1810
1810
  --mdc-statictoggle-height: 1.5rem;
@@ -1883,17 +1883,17 @@
1883
1883
  border: var(--mdc-statictoggle-border);
1884
1884
  }
1885
1885
  }
1886
- `],Qn=Gd;var pr=class extends H(v){constructor(){super(...arguments);this.checked=!1;this.size=jn.SIZE}render(){return m`
1886
+ `],el=qd;var hr=class extends H(v){constructor(){super(...arguments);this.checked=!1;this.size=Jn.SIZE}render(){return m`
1887
1887
  <slot></slot>
1888
1888
  <div part="slider">
1889
1889
  <mdc-icon
1890
- name="${this.checked?Ji.CHECKED:Ji.UNCHECKED}"
1890
+ name="${this.checked?ta.CHECKED:ta.UNCHECKED}"
1891
1891
  class="icon"
1892
1892
  length-unit="rem"
1893
- size="${Kn[this.size]}"
1893
+ size="${Qn[this.size]}"
1894
1894
  ></mdc-icon>
1895
1895
  </div>
1896
- `}};pr.styles=[...v.styles,...Qn],n([c({type:Boolean,reflect:!0})],pr.prototype,"checked",2),n([c({type:String,reflect:!0})],pr.prototype,"size",2);var ea=pr;ea.register(Xn);var Wd=ea;var Jn=f.constructTagName("divider"),Xr={HORIZONTAL:"horizontal",VERTICAL:"vertical"},ta={SOLID:"solid",GRADIENT:"gradient"},ot={POSITIVE:"positive",NEGATIVE:"negative"},Kr={UP:"arrow-up-regular",DOWN:"arrow-down-regular",LEFT:"arrow-left-regular",RIGHT:"arrow-right-regular"},_t={ORIENTATION:Xr.HORIZONTAL,VARIANT:ta.SOLID,ARROW_DIRECTION:ot.NEGATIVE,BUTTON_DIRECTION:ot.NEGATIVE};var Yd=[_,u`
1896
+ `}};hr.styles=[...v.styles,...el],n([c({type:Boolean,reflect:!0})],hr.prototype,"checked",2),n([c({type:String,reflect:!0})],hr.prototype,"size",2);var ra=hr;ra.register(jn);var Zd=ra;var tl=f.constructTagName("divider"),Xr={HORIZONTAL:"horizontal",VERTICAL:"vertical"},oa={SOLID:"solid",GRADIENT:"gradient"},it={POSITIVE:"positive",NEGATIVE:"negative"},Kr={UP:"arrow-up-regular",DOWN:"arrow-down-regular",LEFT:"arrow-left-regular",RIGHT:"arrow-right-regular"},Lt={ORIENTATION:Xr.HORIZONTAL,VARIANT:oa.SOLID,ARROW_DIRECTION:it.NEGATIVE,BUTTON_DIRECTION:it.NEGATIVE};var Xd=[_,u`
1897
1897
  :host {
1898
1898
  --mdc-divider-background-color: var(--mds-color-theme-outline-secondary-normal);
1899
1899
  --mdc-divider-width: 0.0625rem;
@@ -2104,11 +2104,11 @@
2104
2104
  font-size: var(--mdc-divider-text-size);
2105
2105
  line-height: var(--mdc-divider-text-line-height);
2106
2106
  }
2107
- `],el=Yd;var it=class extends v{constructor(){super(...arguments);this.orientation=_t.ORIENTATION;this.variant=_t.VARIANT;this.arrowDirection=_t.ARROW_DIRECTION;this.buttonPosition=_t.BUTTON_DIRECTION}setVariant(e){this.setAttribute("variant",Object.values(ta).includes(e)?e:_t.VARIANT)}setOrientation(e){this.setAttribute("orientation",Object.values(Xr).includes(e)?e:_t.ORIENTATION)}ensureValidDirections(){let e=this.orientation===Xr.HORIZONTAL?ot.NEGATIVE:ot.POSITIVE;Object.values(ot).includes(this.buttonPosition)||(this.buttonPosition=e),Object.values(ot).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===Xr.HORIZONTAL,r=this.arrowDirection===ot.POSITIVE;return e?r?Kr.UP:Kr.DOWN:r?Kr.RIGHT:Kr.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===Rr.toUpperCase()),a=r.some(l=>l.tagName===$r.toUpperCase());o&&!a?this.setAttribute("data-type","mdc-text-divider"):!o&&a&&(this.setAttribute("data-type","mdc-grabber-divider"),this.setGrabberButton())}connectedCallback(){super.connectedCallback(),this.setAttribute("data-type","mdc-primary-divider")}render(){return m`
2107
+ `],rl=Xd;var at=class extends v{constructor(){super(...arguments);this.orientation=Lt.ORIENTATION;this.variant=Lt.VARIANT;this.arrowDirection=Lt.ARROW_DIRECTION;this.buttonPosition=Lt.BUTTON_DIRECTION}setVariant(e){this.setAttribute("variant",Object.values(oa).includes(e)?e:Lt.VARIANT)}setOrientation(e){this.setAttribute("orientation",Object.values(Xr).includes(e)?e:Lt.ORIENTATION)}ensureValidDirections(){let e=this.orientation===Xr.HORIZONTAL?it.NEGATIVE:it.POSITIVE;Object.values(it).includes(this.buttonPosition)||(this.buttonPosition=e),Object.values(it).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===Xr.HORIZONTAL,r=this.arrowDirection===it.POSITIVE;return e?r?Kr.UP:Kr.DOWN:r?Kr.RIGHT:Kr.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===Rr.toUpperCase()),a=r.some(l=>l.tagName===$r.toUpperCase());o&&!a?this.setAttribute("data-type","mdc-text-divider"):!o&&a&&(this.setAttribute("data-type","mdc-grabber-divider"),this.setGrabberButton())}connectedCallback(){super.connectedCallback(),this.setAttribute("data-type","mdc-primary-divider")}render(){return m`
2108
2108
  <div></div>
2109
2109
  <slot @slotchange=${this.inferDividerType}></slot>
2110
2110
  <div></div>
2111
- `}};it.styles=[...v.styles,...el],n([c({type:String,reflect:!0})],it.prototype,"orientation",2),n([c({type:String,reflect:!0})],it.prototype,"variant",2),n([c({type:String,attribute:"arrow-direction",reflect:!0})],it.prototype,"arrowDirection",2),n([c({type:String,attribute:"button-position",reflect:!0})],it.prototype,"buttonPosition",2);var ra=it;ra.register(Jn);var qd=ra;var Zd=u`
2111
+ `}};at.styles=[...v.styles,...rl],n([c({type:String,reflect:!0})],at.prototype,"orientation",2),n([c({type:String,reflect:!0})],at.prototype,"variant",2),n([c({type:String,attribute:"arrow-direction",reflect:!0})],at.prototype,"arrowDirection",2),n([c({type:String,attribute:"button-position",reflect:!0})],at.prototype,"buttonPosition",2);var ia=at;ia.register(tl);var Kd=ia;var jd=u`
2112
2112
  :host([selected]){
2113
2113
  border: 2px solid;
2114
2114
  --mdc-chip-background-color: var(--mds-color-theme-background-label-default-active);
@@ -2128,7 +2128,7 @@
2128
2128
  --mdc-chip-color: var(--mds-color-theme-text-primary-disabled);
2129
2129
  cursor: auto;
2130
2130
  }
2131
- `,tl=[Zd];var rl=f.constructTagName("filterchip"),oa={ICON_NAME:"check-bold",COLOR:"default"};var jr=class extends nr{constructor(){super(...arguments);this.selected=!1}connectedCallback(){super.connectedCallback(),this.color=oa.COLOR}setSelected(e){e?(this.iconName=oa.ICON_NAME,this.setAttribute("aria-pressed","true")):(this.iconName=void 0,this.setAttribute("aria-pressed","false"))}executeAction(){this.selected=!this.selected}update(e){super.update(e),e.has("selected")&&this.setSelected(this.selected)}};jr.styles=[...nr.styles,...tl],n([c({type:Boolean,reflect:!0})],jr.prototype,"selected",2);var ia=jr;ia.register(rl);var Xd=ia;var ol=f.constructTagName("formfieldgroup"),aa={RADIOGROUP:"radiogroup",GROUP:"group"};var Kd=u`
2131
+ `,ol=[jd];var il=f.constructTagName("filterchip"),aa={ICON_NAME:"check-bold",COLOR:"default"};var jr=class extends lr{constructor(){super(...arguments);this.selected=!1}connectedCallback(){super.connectedCallback(),this.color=aa.COLOR}setSelected(e){e?(this.iconName=aa.ICON_NAME,this.setAttribute("aria-pressed","true")):(this.iconName=void 0,this.setAttribute("aria-pressed","false"))}executeAction(){this.selected=!this.selected}update(e){super.update(e),e.has("selected")&&this.setSelected(this.selected)}};jr.styles=[...lr.styles,...ol],n([c({type:Boolean,reflect:!0})],jr.prototype,"selected",2);var sa=jr;sa.register(il);var Qd=sa;var al=f.constructTagName("formfieldgroup"),na={RADIOGROUP:"radiogroup",GROUP:"group"};var Jd=u`
2132
2132
 
2133
2133
  :host::part(container) {
2134
2134
  display: flex;
@@ -2145,12 +2145,12 @@
2145
2145
  :host::part(label-text){
2146
2146
  font-weight: bold;
2147
2147
  }
2148
- `,il=[Kd];var Ho=class extends P(j){constructor(){super(...arguments);this.isRadio=!1}connectedCallback(){super.connectedCallback(),this.shouldRenderLabel=!1,this.id="",this.helpTextType=void 0,this.disabled=void 0}render(){var e;return m`
2148
+ `,sl=[Jd];var Go=class extends V(j){constructor(){super(...arguments);this.isRadio=!1}connectedCallback(){super.connectedCallback(),this.shouldRenderLabel=!1,this.id="",this.helpTextType=void 0,this.disabled=void 0}render(){var e;return m`
2149
2149
  <div
2150
2150
  part="container"
2151
- role="${this.isRadio?aa.RADIOGROUP:aa.GROUP}"
2152
- aria-labelledby="${V.HEADING_ID}"
2153
- aria-describedby="${T(this.helpText?V.HELPER_TEXT_ID:"")}"
2151
+ role="${this.isRadio?na.RADIOGROUP:na.GROUP}"
2152
+ aria-labelledby="${P.HEADING_ID}"
2153
+ aria-describedby="${T(this.helpText?P.HELPER_TEXT_ID:"")}"
2154
2154
  aria-label="${(e=this.dataAriaLabel)!=null?e:""}"
2155
2155
  >
2156
2156
  <div part="group-header">
@@ -2159,7 +2159,7 @@
2159
2159
  </div>
2160
2160
  <slot></slot>
2161
2161
  </div>
2162
- `}};Ho.styles=[...j.styles,...il];var sa=Ho;sa.register(ol);var Go=sa;Or.register(To);var jd=Or;var Qd=[u`
2162
+ `}};Go.styles=[...j.styles,...sl];var la=Go;la.register(al);var Wo=la;Or.register(Ao);var em=Or;var tm=[u`
2163
2163
  :host{
2164
2164
  --mdc-input-disabled-border-color: var(--mds-color-theme-outline-primary-disabled);
2165
2165
  --mdc-input-disabled-text-color: var(--mds-color-theme-text-primary-disabled);
@@ -2275,7 +2275,7 @@
2275
2275
  opacity: 0;
2276
2276
  pointer-events: none;
2277
2277
  }
2278
- `,...O(!0)],al=Qd;j.register(an);var ue=j;var sl=f.constructTagName("input"),Wo={OFF:"off",NONE:"none",ON:"on",SENTENCES:"sentences",WORDS:"words",CHARACTERS:"characters"},na={OFF:"off",ON:"on"},la={TEXT:"text",SEARCH:"search"},nl={MAX_LENGTH:10,VALIDATION:W.ERROR},Ge={VALIDATION:W.DEFAULT,ICON_SIZE_VALUE:1,ICON_SIZE_UNIT:"rem",CLEAR_BUTTON_ICON:"cancel-bold",CLEAR_BUTTON_VARIANT:et.TERTIARY,CLEAR_BUTTON_SIZE:Jt[20],PREFIX_TEXT_TYPE:I.BODY_MIDSIZE_REGULAR,PREFIX_TEXT_TAG:k.SPAN,AUTO_COMPLETE:na.OFF,INPUT_TYPE:la.TEXT};var U=class extends re(P(ue)){constructor(){super(...arguments);this.placeholder="";this.readonly=!1;this.trailingButton=!1;this.autocapitalize=Wo.OFF;this.autocomplete=na.OFF;this.autofocus=!1;this.clearAriaLabel=""}connectedCallback(){super.connectedCallback(),this.updateComplete.then(()=>{this.inputElement&&(this.inputElement.checkValidity(),this.setInputValidity(),this.internals.setFormValue(this.inputElement.value))}).catch(e=>{this.onerror&&this.onerror(e)})}formResetCallback(){this.value="",this.requestUpdate()}formStateRestoreCallback(e){this.value=e}handleValueChange(){this.updateComplete.then(()=>{this.setInputValidity()}).catch(e=>{this.onerror&&this.onerror(e)})}updated(e){super.updated(e),e.has("value")&&this.handleValueChange()}setInputValidity(){this.requiredLabel&&this.validationMessage&&this.value===""?this.inputElement.setCustomValidity(this.validationMessage):this.inputElement.setCustomValidity(""),this.setValidity()}attributeChangedCallback(e,r,o){super.attributeChangedCallback(e,r,o),["maxlength","minlength","pattern","required"].includes(e)&&this.updateComplete.then(()=>{this.setInputValidity()}).catch(s=>{this.onerror&&this.onerror(s)})}updateValue(){this.value=this.inputElement.value,this.internals.setFormValue(this.inputElement.value)}onInput(){this.updateValue(),this.setInputValidity()}onChange(e){this.updateValue(),this.setInputValidity();let r=e.constructor;this.dispatchEvent(new r(e.type,e))}handleKeyDown(e){var r;e.key==="Enter"&&((r=this.form)==null||r.requestSubmit())}renderLeadingIcon(){return this.leadingIcon?m`
2278
+ `,...O(!0)],nl=tm;j.register(nn);var ue=j;var ll=f.constructTagName("input"),Yo={OFF:"off",NONE:"none",ON:"on",SENTENCES:"sentences",WORDS:"words",CHARACTERS:"characters"},ca={OFF:"off",ON:"on"},da={TEXT:"text",SEARCH:"search"},cl={MAX_LENGTH:10,VALIDATION:W.ERROR},Ge={VALIDATION:W.DEFAULT,ICON_SIZE_VALUE:1,ICON_SIZE_UNIT:"rem",CLEAR_BUTTON_ICON:"cancel-bold",CLEAR_BUTTON_VARIANT:tt.TERTIARY,CLEAR_BUTTON_SIZE:er[20],PREFIX_TEXT_TYPE:I.BODY_MIDSIZE_REGULAR,PREFIX_TEXT_TAG:k.SPAN,AUTO_COMPLETE:ca.OFF,INPUT_TYPE:da.TEXT};var U=class extends re(V(ue)){constructor(){super(...arguments);this.placeholder="";this.readonly=!1;this.trailingButton=!1;this.autocapitalize=Yo.OFF;this.autocomplete=ca.OFF;this.autofocus=!1;this.clearAriaLabel=""}connectedCallback(){super.connectedCallback(),this.updateComplete.then(()=>{this.inputElement&&(this.inputElement.checkValidity(),this.setInputValidity(),this.internals.setFormValue(this.inputElement.value))}).catch(e=>{this.onerror&&this.onerror(e)})}formResetCallback(){this.value="",this.requestUpdate()}formStateRestoreCallback(e){this.value=e}handleValueChange(){this.updateComplete.then(()=>{this.setInputValidity()}).catch(e=>{this.onerror&&this.onerror(e)})}updated(e){super.updated(e),e.has("value")&&this.handleValueChange()}setInputValidity(){this.requiredLabel&&this.validationMessage&&this.value===""?this.inputElement.setCustomValidity(this.validationMessage):this.inputElement.setCustomValidity(""),this.setValidity()}attributeChangedCallback(e,r,o){super.attributeChangedCallback(e,r,o),["maxlength","minlength","pattern","required"].includes(e)&&this.updateComplete.then(()=>{this.setInputValidity()}).catch(s=>{this.onerror&&this.onerror(s)})}updateValue(){this.value=this.inputElement.value,this.internals.setFormValue(this.inputElement.value)}onInput(){this.updateValue(),this.setInputValidity()}onChange(e){this.updateValue(),this.setInputValidity();let r=e.constructor;this.dispatchEvent(new r(e.type,e))}handleKeyDown(e){var r;e.key==="Enter"&&((r=this.form)==null||r.requestSubmit())}renderLeadingIcon(){return this.leadingIcon?m`
2279
2279
  <mdc-icon
2280
2280
  class="leading-icon"
2281
2281
  part="leading-icon"
@@ -2290,7 +2290,7 @@
2290
2290
  type="${Ge.PREFIX_TEXT_TYPE}"
2291
2291
  aria-hidden="true"
2292
2292
  >
2293
- ${this.prefixText.slice(0,nl.MAX_LENGTH)}
2293
+ ${this.prefixText.slice(0,cl.MAX_LENGTH)}
2294
2294
  </mdc-text>
2295
2295
  `:g}clearInputText(){var e;this.value="",(e=this.inputElement)==null||e.focus()}renderTrailingButton(e=!1){let r=e||this.value&&this.trailingButton;return r?m`
2296
2296
  <mdc-button
@@ -2314,7 +2314,7 @@
2314
2314
  ?readonly="${this.readonly}"
2315
2315
  ?required="${!!this.requiredLabel}"
2316
2316
  type="${e}"
2317
- aria-describedby="${T(this.helpText?V.HELPER_TEXT_ID:"")}"
2317
+ aria-describedby="${T(this.helpText?P.HELPER_TEXT_ID:"")}"
2318
2318
  aria-invalid="${this.helpTextType==="error"?"true":"false"}"
2319
2319
  placeholder=${T(o)}
2320
2320
  minlength=${T(this.minlength)}
@@ -2340,7 +2340,7 @@
2340
2340
  <slot name="trailing-button">${this.renderTrailingButton()}</slot>
2341
2341
  </div>
2342
2342
  ${this.helpText?this.renderHelperText():g}
2343
- `}};U.styles=[...ue.styles,...al],n([c({type:String})],U.prototype,"placeholder",2),n([c({type:Boolean})],U.prototype,"readonly",2),n([c({type:String,attribute:"prefix-text"})],U.prototype,"prefixText",2),n([c({type:String,attribute:"leading-icon"})],U.prototype,"leadingIcon",2),n([c({type:Boolean,attribute:"trailing-button"})],U.prototype,"trailingButton",2),n([c({type:Number})],U.prototype,"maxlength",2),n([c({type:Number})],U.prototype,"minlength",2),n([c({type:String})],U.prototype,"autocapitalize",2),n([c({type:String})],U.prototype,"autocomplete",2),n([c({type:Boolean})],U.prototype,"autofocus",2),n([c({type:String})],U.prototype,"dirname",2),n([c({type:String})],U.prototype,"pattern",2),n([c({type:String})],U.prototype,"list",2),n([c({type:Number})],U.prototype,"size",2),n([c({type:String,attribute:"clear-aria-label"})],U.prototype,"clearAriaLabel",2);var hr=U;hr.register(sl);var Jd=hr;var em=u`
2343
+ `}};U.styles=[...ue.styles,...nl],n([c({type:String})],U.prototype,"placeholder",2),n([c({type:Boolean})],U.prototype,"readonly",2),n([c({type:String,attribute:"prefix-text"})],U.prototype,"prefixText",2),n([c({type:String,attribute:"leading-icon"})],U.prototype,"leadingIcon",2),n([c({type:Boolean,attribute:"trailing-button"})],U.prototype,"trailingButton",2),n([c({type:Number})],U.prototype,"maxlength",2),n([c({type:Number})],U.prototype,"minlength",2),n([c({type:String})],U.prototype,"autocapitalize",2),n([c({type:String})],U.prototype,"autocomplete",2),n([c({type:Boolean})],U.prototype,"autofocus",2),n([c({type:String})],U.prototype,"dirname",2),n([c({type:String})],U.prototype,"pattern",2),n([c({type:String})],U.prototype,"list",2),n([c({type:Number})],U.prototype,"size",2),n([c({type:String,attribute:"clear-aria-label"})],U.prototype,"clearAriaLabel",2);var ur=U;ur.register(ll);var rm=ur;var om=u`
2344
2344
  :host {
2345
2345
  height: 1.5rem;
2346
2346
  gap: 0.25rem;
@@ -2369,24 +2369,24 @@
2369
2369
  --mdc-chip-color: var(--mds-color-theme-text-primary-disabled);
2370
2370
  cursor: auto;
2371
2371
  }
2372
- `,ll=[_,em];var Yo=f.constructTagName("inputchip"),qo={TEXT_TYPE:I.BODY_MIDSIZE_REGULAR,TAG_NAME:k.SPAN,CLOSE_ICON:"cancel-bold"};var Lt=class extends ee(H(v)){constructor(){super(...arguments);this.label="";this.error=!1;this.clearAriaLabel=""}renderIcon(){return this.iconName?m`
2372
+ `,dl=[_,om];var qo=f.constructTagName("inputchip"),Zo={TEXT_TYPE:I.BODY_MIDSIZE_REGULAR,TAG_NAME:k.SPAN,CLOSE_ICON:"cancel-bold"};var Rt=class extends ee(H(v)){constructor(){super(...arguments);this.label="";this.error=!1;this.clearAriaLabel=""}renderIcon(){return this.iconName?m`
2373
2373
  <mdc-icon
2374
2374
  name="${this.iconName}"
2375
2375
  length-unit="rem"
2376
2376
  size="1"></mdc-icon>
2377
2377
  `:g}handleClose(){this.dispatchEvent(new CustomEvent("remove",{bubbles:!0,composed:!0}))}render(){return m`
2378
2378
  ${this.renderIcon()}
2379
- <mdc-text part="label" type="${qo.TEXT_TYPE}" tagname="${qo.TAG_NAME}">${this.label}</mdc-text>
2379
+ <mdc-text part="label" type="${Zo.TEXT_TYPE}" tagname="${Zo.TAG_NAME}">${this.label}</mdc-text>
2380
2380
  <mdc-button
2381
2381
  ?disabled="${this.disabled}"
2382
2382
  variant="tertiary"
2383
2383
  part="close-icon"
2384
2384
  aria-label="${this.clearAriaLabel}"
2385
- prefix-icon="${qo.CLOSE_ICON}"
2385
+ prefix-icon="${Zo.CLOSE_ICON}"
2386
2386
  size="20"
2387
2387
  @click="${this.handleClose}"
2388
2388
  ></mdc-button>
2389
- `}};Lt.styles=[...v.styles,...ll],n([c({type:String})],Lt.prototype,"label",2),n([c({type:Boolean})],Lt.prototype,"error",2),n([c({type:String,attribute:"clear-aria-label"})],Lt.prototype,"clearAriaLabel",2);var ca=Lt;ca.register(Yo);var tm=ca;var cl=f.constructTagName("link"),Zo={LARGE:"large",MIDSIZE:"midsize",SMALL:"small"},Xo={LARGE:1,MIDSIZE:.875,SMALL:.75},dl={LINK_SIZE:Zo.LARGE};var rm=u`
2389
+ `}};Rt.styles=[...v.styles,...dl],n([c({type:String})],Rt.prototype,"label",2),n([c({type:Boolean})],Rt.prototype,"error",2),n([c({type:String,attribute:"clear-aria-label"})],Rt.prototype,"clearAriaLabel",2);var ma=Rt;ma.register(qo);var im=ma;var ml=f.constructTagName("link"),Xo={LARGE:"large",MIDSIZE:"midsize",SMALL:"small"},Ko={LARGE:1,MIDSIZE:.875,SMALL:.75},pl={LINK_SIZE:Xo.LARGE};var am=u`
2390
2390
  :host {
2391
2391
  gap: 0.25rem;
2392
2392
  }
@@ -2444,7 +2444,7 @@
2444
2444
  text-decoration: var(--mds-font-apps-body-small-regular-underline-text-decoration);
2445
2445
  text-transform: var(--mds-font-apps-body-small-regular-underline-text-case);
2446
2446
  }
2447
- `,ml=[rm];var pl=f.constructTagName("linksimple"),da={INLINE:!1,INVERTED:!1};var om=[_,u`
2447
+ `,hl=[am];var ul=f.constructTagName("linksimple"),pa={INLINE:!1,INVERTED:!1};var sm=[_,u`
2448
2448
  :host {
2449
2449
  --mdc-link-border-radius: 0.25rem;
2450
2450
  --mdc-link-color-active: var(--mds-color-theme-text-accent-active);
@@ -2511,9 +2511,9 @@
2511
2511
  text-transform: var(--mds-font-apps-body-large-regular-underline-text-case);
2512
2512
  }
2513
2513
 
2514
- `,...O()],hl=om;var We=class extends H(Zt(v)){constructor(){super(...arguments);this.inline=da.INLINE;this.inverted=da.INVERTED;this.href="#";this.target="_self";this.prevTabindex=0;this.handleNavigation=e=>{if((e.type==="click"||e instanceof KeyboardEvent&&e.key==="Enter")&&this.href){if(this.disabled)return;window.open(this.href,this.target,this.rel)}}}connectedCallback(){super.connectedCallback(),this.setAttribute("role","link"),this.addEventListener("click",this.handleNavigation),this.addEventListener("keydown",this.handleNavigation)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",this.handleNavigation),this.removeEventListener("keydown",this.handleNavigation)}setDisabled(e){e?(this.setAttribute("aria-disabled","true"),this.prevTabindex=this.tabIndex,this.tabIndex=-1):(this.tabIndex===-1&&(this.tabIndex=this.prevTabindex),this.removeAttribute("aria-disabled"))}update(e){super.update(e),e.has("disabled")&&this.setDisabled(this.disabled)}render(){return m`
2514
+ `,...O()],fl=sm;var We=class extends H(Xt(v)){constructor(){super(...arguments);this.inline=pa.INLINE;this.inverted=pa.INVERTED;this.href="#";this.target="_self";this.prevTabindex=0;this.handleNavigation=e=>{if((e.type==="click"||e instanceof KeyboardEvent&&e.key==="Enter")&&this.href){if(this.disabled)return;window.open(this.href,this.target,this.rel)}}}connectedCallback(){super.connectedCallback(),this.setAttribute("role","link"),this.addEventListener("click",this.handleNavigation),this.addEventListener("keydown",this.handleNavigation)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",this.handleNavigation),this.removeEventListener("keydown",this.handleNavigation)}setDisabled(e){e?(this.setAttribute("aria-disabled","true"),this.prevTabindex=this.tabIndex,this.tabIndex=-1):(this.tabIndex===-1&&(this.tabIndex=this.prevTabindex),this.removeAttribute("aria-disabled"))}update(e){super.update(e),e.has("disabled")&&this.setDisabled(this.disabled)}render(){return m`
2515
2515
  <slot></slot>
2516
- `}};We.styles=[...v.styles,...hl],n([c({type:Boolean,reflect:!0})],We.prototype,"inline",2),n([c({type:Boolean,reflect:!0})],We.prototype,"inverted",2),n([c({type:String,reflect:!0})],We.prototype,"href",2),n([c({type:String,reflect:!0})],We.prototype,"target",2),n([c({type:String,reflect:!0})],We.prototype,"rel",2);var at=We;var Qr=class extends ee(at){constructor(){super(...arguments);this.size=dl.LINK_SIZE}getIconSize(){switch(this.size){case Zo.SMALL:return Xo.SMALL;case Zo.MIDSIZE:return Xo.MIDSIZE;default:return Xo.LARGE}}render(){return m`
2516
+ `}};We.styles=[...v.styles,...fl],n([c({type:Boolean,reflect:!0})],We.prototype,"inline",2),n([c({type:Boolean,reflect:!0})],We.prototype,"inverted",2),n([c({type:String,reflect:!0})],We.prototype,"href",2),n([c({type:String,reflect:!0})],We.prototype,"target",2),n([c({type:String,reflect:!0})],We.prototype,"rel",2);var st=We;var Qr=class extends ee(st){constructor(){super(...arguments);this.size=pl.LINK_SIZE}getIconSize(){switch(this.size){case Xo.SMALL:return Ko.SMALL;case Xo.MIDSIZE:return Ko.MIDSIZE;default:return Ko.LARGE}}render(){return m`
2517
2517
  <slot></slot>
2518
2518
  ${this.iconName?m`
2519
2519
  <mdc-icon
@@ -2522,13 +2522,13 @@
2522
2522
  length-unit="rem"
2523
2523
  ></mdc-icon>
2524
2524
  `:g}
2525
- `}};Qr.styles=[...at.styles,...ml],n([c({type:String,reflect:!0})],Qr.prototype,"size",2);var ma=Qr;ma.register(cl);var im=ma;var Ko=f.constructTagName("listitem"),pa={FULL_WIDTH:"full-width",INSET_PILL:"inset-pill",INSET_RECTANGLE:"inset-rectangle"},ul={VARIANT:pa.FULL_WIDTH};var fl=f.constructTagName("list"),ha="header-id";var am=u`
2525
+ `}};Qr.styles=[...st.styles,...hl],n([c({type:String,reflect:!0})],Qr.prototype,"size",2);var ha=Qr;ha.register(ml);var nm=ha;var jo=f.constructTagName("listitem"),Jr={FULL_WIDTH:"full-width",INSET_PILL:"inset-pill",INSET_RECTANGLE:"inset-rectangle"},bl={VARIANT:Jr.FULL_WIDTH};var vl=f.constructTagName("list"),ua="header-id";var lm=u`
2526
2526
  :host::part(header-text) {
2527
2527
  padding: 0.5rem 0.75rem;
2528
2528
  }
2529
- `,bl=[am];var $={ARROW_DOWN:"ArrowDown",ARROW_UP:"ArrowUp",END:"End",ENTER:"Enter",ESCAPE:"Escape",HOME:"Home",PAGE_DOWN:"PageDown",PAGE_UP:"PageUp",SPACE:" "};var ur=class extends P(v){constructor(){super(),this.addEventListener("keydown",this.handleKeyDown)}handleKeyDown(t){var o;let e=this.getCurrentIndex(t.target),r=this.getNewIndexBasedOnKey(t.key,e,this.listItems.length);r!==void 0&&((o=this.listItems[r])==null||o.focus(),this.resetTabIndexAndSetActiveTabIndex(r))}getCurrentIndex(t){return this.listItems.findIndex(e=>e===t||e===t.parentElement)}getNewIndexBasedOnKey(t,e,r){switch(t){case $.ARROW_DOWN:return(e+1)%r;case $.ARROW_UP:return(e-1+r)%r;case $.HOME:return 0;case $.END:return r-1;default:return}}handleMouseClick(t){let e=this.getCurrentIndex(t.target);this.resetTabIndexAndSetActiveTabIndex(e)}resetTabIndexAndSetActiveTabIndex(t){this.listItems.forEach((e,r)=>{let o=t===r?"0":"-1";e==null||e.setAttribute("tabindex",o)})}firstUpdated(){this.resetTabIndexAndSetActiveTabIndex(0)}render(){var e;let t=this.headerText?m`
2529
+ `,gl=[lm];var $={ARROW_DOWN:"ArrowDown",ARROW_UP:"ArrowUp",END:"End",ENTER:"Enter",ESCAPE:"Escape",HOME:"Home",PAGE_DOWN:"PageDown",PAGE_UP:"PageUp",SPACE:" "};var fr=class extends V(v){constructor(){super(),this.addEventListener("keydown",this.handleKeyDown)}handleKeyDown(t){var o;let e=this.getCurrentIndex(t.target),r=this.getNewIndexBasedOnKey(t.key,e,this.listItems.length);r!==void 0&&((o=this.listItems[r])==null||o.focus(),this.resetTabIndexAndSetActiveTabIndex(r))}getCurrentIndex(t){return this.listItems.findIndex(e=>e===t||e===t.parentElement)}getNewIndexBasedOnKey(t,e,r){switch(t){case $.ARROW_DOWN:return(e+1)%r;case $.ARROW_UP:return(e-1+r)%r;case $.HOME:return 0;case $.END:return r-1;default:return}}handleMouseClick(t){let e=this.getCurrentIndex(t.target);this.resetTabIndexAndSetActiveTabIndex(e)}resetTabIndexAndSetActiveTabIndex(t){this.listItems.forEach((e,r)=>{let o=t===r?"0":"-1";e==null||e.setAttribute("tabindex",o)})}firstUpdated(){this.resetTabIndexAndSetActiveTabIndex(0)}render(){var e;let t=this.headerText?m`
2530
2530
  <mdc-text
2531
- id="${ha}"
2531
+ id="${ua}"
2532
2532
  part="header-text"
2533
2533
  type="${I.BODY_MIDSIZE_BOLD}"
2534
2534
  tagname="${k.SPAN}"
@@ -2536,13 +2536,13 @@
2536
2536
  `:g;return m`
2537
2537
  <div
2538
2538
  role="list"
2539
- aria-labelledby="${this.headerText?ha:""}"
2539
+ aria-labelledby="${this.headerText?ua:""}"
2540
2540
  aria-label="${(e=this.dataAriaLabel)!=null?e:""}"
2541
2541
  >
2542
2542
  ${t}
2543
2543
  <slot role="presentation" @click="${this.handleMouseClick}"></slot>
2544
2544
  </div>
2545
- `}};ur.styles=[...v.styles,...bl],n([ie({selector:Ko})],ur.prototype,"listItems",2),n([c({type:String,attribute:"header-text",reflect:!0})],ur.prototype,"headerText",2);var ua=ur;ua.register(fl);var sm=ua;var nm=u`
2545
+ `}};fr.styles=[...v.styles,...gl],n([ie({selector:jo})],fr.prototype,"listItems",2),n([c({type:String,attribute:"header-text",reflect:!0})],fr.prototype,"headerText",2);var fa=fr;fa.register(vl);var cm=fa;var dm=u`
2546
2546
  :host {
2547
2547
  --mdc-listitem-default-background-color: var(--mds-color-theme-background-primary-ghost);
2548
2548
  --mdc-listitem-background-color-hover: var(--mds-color-theme-background-primary-hover);
@@ -2612,11 +2612,11 @@
2612
2612
  display: flex;
2613
2613
  flex-direction: row;
2614
2614
  }
2615
- `,vl=[nm,...O()];var fe=class extends P(H(Zt(v))){constructor(){super(...arguments);this.variant=ul.VARIANT}connectedCallback(){super.connectedCallback(),this.role=this.role||"listitem"}getText(e,r,o){return o?m`
2615
+ `,yl=[dm,...O()];var fe=class extends H(Xt(v)){constructor(){super(...arguments);this.variant=bl.VARIANT}connectedCallback(){super.connectedCallback(),this.role=this.role||"listitem"}getText(e,r,o){return o?m`
2616
2616
  <slot name="${e}">
2617
2617
  <mdc-text part="${e}" type="${r}" tagname="${k.SPAN}">${o}</mdc-text>
2618
2618
  </slot>
2619
- `:g}disableSlottedChildren(e){[...this.leadingControlsSlot,...this.trailingControlsSlot].forEach(r=>{e?r.setAttribute("disabled",""):r.removeAttribute("disabled")})}update(e){super.update(e),e.has("disabled")&&(this.tabIndex=this.disabled?-1:0,this.disableSlottedChildren(this.disabled))}render(){return m`
2619
+ `:g}disableSlottedChildren(e){[...this.leadingControlsSlot,...this.trailingControlsSlot].forEach(r=>{e?r.setAttribute("disabled",""):r.removeAttribute("disabled")})}update(e){super.update(e),e.has("disabled")&&(this.tabIndex=this.disabled?-1:0,this.disableSlottedChildren(this.disabled),this.setAttribute("aria-disabled",`${this.disabled}`))}render(){return m`
2620
2620
  <div part="leading">
2621
2621
  <slot name="leading-controls"></slot>
2622
2622
  <div part="leading-text">
@@ -2632,7 +2632,7 @@
2632
2632
  </div>
2633
2633
  <slot name="trailing-controls"></slot>
2634
2634
  </div>
2635
- `}};fe.styles=[...v.styles,...vl],n([ie({slot:"leading-controls"})],fe.prototype,"leadingControlsSlot",2),n([ie({slot:"trailing-controls"})],fe.prototype,"trailingControlsSlot",2),n([c({type:String,reflect:!0})],fe.prototype,"variant",2),n([c({type:String,reflect:!0})],fe.prototype,"label",2),n([c({type:String,reflect:!0,attribute:"secondary-label"})],fe.prototype,"secondaryLabel",2),n([c({type:String,reflect:!0,attribute:"tertiary-label"})],fe.prototype,"tertiaryLabel",2),n([c({type:String,reflect:!0,attribute:"side-header-text"})],fe.prototype,"sideHeaderText",2),n([c({type:String,reflect:!0,attribute:"subline-text"})],fe.prototype,"sublineText",2);var fr=fe;fr.register(Ko);var lm=fr;var cm=u`
2635
+ `}};fe.styles=[...v.styles,...yl],n([ie({slot:"leading-controls"})],fe.prototype,"leadingControlsSlot",2),n([ie({slot:"trailing-controls"})],fe.prototype,"trailingControlsSlot",2),n([c({type:String,reflect:!0})],fe.prototype,"variant",2),n([c({type:String,reflect:!0})],fe.prototype,"label",2),n([c({type:String,reflect:!0,attribute:"secondary-label"})],fe.prototype,"secondaryLabel",2),n([c({type:String,reflect:!0,attribute:"tertiary-label"})],fe.prototype,"tertiaryLabel",2),n([c({type:String,reflect:!0,attribute:"side-header-text"})],fe.prototype,"sideHeaderText",2),n([c({type:String,reflect:!0,attribute:"subline-text"})],fe.prototype,"sublineText",2);var Ye=fe;Ye.register(jo);var mm=Ye;var pm=u`
2636
2636
  :host {
2637
2637
  --mdc-marker-width: 0.25rem;
2638
2638
  --mdc-marker-solid-background-color: var(--mds-color-theme-outline-secondary-normal);
@@ -2657,7 +2657,7 @@
2657
2657
  var(--mdc-marker-striped-background-color) 0.375rem
2658
2658
  );
2659
2659
  }
2660
- `,gl=[cm];var yl=f.constructTagName("marker"),xl={SOLID:"solid",STRIPED:"striped"};var Jr=class extends v{constructor(){super(...arguments);this.variant=xl.SOLID}};Jr.styles=[...v.styles,...gl],n([c({type:String,reflect:!0})],Jr.prototype,"variant",2);var fa=Jr;fa.register(yl);var dm=fa;var jo=f.constructTagName("optgroup"),ba="header-id";var mm=u`
2660
+ `,xl=[pm];var El=f.constructTagName("marker"),Tl={SOLID:"solid",STRIPED:"striped"};var eo=class extends v{constructor(){super(...arguments);this.variant=Tl.SOLID}};eo.styles=[...v.styles,...xl],n([c({type:String,reflect:!0})],eo.prototype,"variant",2);var ba=eo;ba.register(El);var hm=ba;var Qo=f.constructTagName("optgroup"),va="header-id";var um=u`
2661
2661
  :host {
2662
2662
  --mdc-optgroup-disabled-color: var(--mds-color-theme-text-primary-disabled);
2663
2663
  }
@@ -2670,9 +2670,9 @@
2670
2670
  color: var(--mdc-optgroup-disabled-color);
2671
2671
  cursor: default;
2672
2672
  }
2673
- `,El=[mm];var br=class extends P(H(v)){setDisabledForAllOptions(){this.options.forEach(t=>{this.disabled?t.setAttribute("disabled",""):t.removeAttribute("disabled")})}updated(t){super.updated(t),t.has("disabled")&&this.setDisabledForAllOptions()}render(){var e;let t=this.label?m`
2673
+ `,Al=[um];var br=class extends V(H(v)){setDisabledForAllOptions(){this.options.forEach(t=>{this.disabled?t.setAttribute("disabled",""):t.removeAttribute("disabled")})}updated(t){super.updated(t),t.has("disabled")&&this.setDisabledForAllOptions()}render(){var e;let t=this.label?m`
2674
2674
  <mdc-text
2675
- id="${ba}"
2675
+ id="${va}"
2676
2676
  part="header-text"
2677
2677
  type="${I.BODY_MIDSIZE_BOLD}"
2678
2678
  tagname="${k.SPAN}"
@@ -2680,13 +2680,13 @@
2680
2680
  `:g;return m`
2681
2681
  <div
2682
2682
  role="group"
2683
- aria-labelledby="${this.label?ba:""}"
2683
+ aria-labelledby="${this.label?va:""}"
2684
2684
  aria-label="${(e=this.dataAriaLabel)!=null?e:""}"
2685
2685
  >
2686
2686
  ${t}
2687
2687
  <slot role="presentation"></slot>
2688
2688
  </div>
2689
- `}};br.styles=[...v.styles,...El],n([c({type:String,reflect:!0})],br.prototype,"label",2),n([ie({selector:"mdc-option"})],br.prototype,"options",2);var va=br;va.register(jo);var pm=va;var Qo=f.constructTagName("tooltip"),le={DESCRIPTION:"description",LABEL:"label",NONE:"none"},st={BACKDROP:!1,DELAY:"0,0",OFFSET:4,PLACEMENT:ne.TOP,SHOW_ARROW:!0,TOOLTIP_TYPE:le.DESCRIPTION};var hm=u`
2689
+ `}};br.styles=[...v.styles,...Al],n([c({type:String,reflect:!0})],br.prototype,"label",2),n([ie({selector:"mdc-option"})],br.prototype,"options",2);var ga=br;ga.register(Qo);var fm=ga;var Jo=f.constructTagName("tooltip"),le={DESCRIPTION:"description",LABEL:"label",NONE:"none"},nt={BACKDROP:!1,DELAY:"0,0",OFFSET:4,PLACEMENT:ne.TOP,SHOW_ARROW:!0,TOOLTIP_TYPE:le.DESCRIPTION};var bm=u`
2690
2690
 
2691
2691
  :host {
2692
2692
  --mdc-tooltip-max-width: 400px;
@@ -2711,7 +2711,7 @@
2711
2711
  :host([color='contrast'])::part(popover-content) {
2712
2712
  color: var(--mdc-tooltip-text-color-contrast);
2713
2713
  }
2714
- `,Tl=[hm];var vr=class extends Te{constructor(){super(...arguments);this.tooltipType=st.TOOLTIP_TYPE}connectedCallback(){super.connectedCallback(),this.backdrop=!1,this.delay=st.DELAY,this.focusTrap=!1,this.hideOnBlur=!0,this.hideOnEscape=!0,this.interactive=!1,this.offset=st.OFFSET,this.placement=st.PLACEMENT,this.role="tooltip",this.trigger="mouseenter focusin",this.enabledFocusTrap=!1,this.enabledPreventScroll=!1,this.flip=!0,this.focusTrap=!1,this.preventScroll=!1,this.closeButton=!1,this.hideOnOutsideClick=!1,this.focusBackToTrigger=!1,this.size=!1,this.disableAriaExpanded=!0}getTooltipText(){var e,r;return((r=(e=this.defaultSlotNodes)==null?void 0:e.map(o=>o.textContent).join(" "))==null?void 0:r.trim())||""}setTooltipType(e){this.setAttribute("tooltip-type",Object.values(le).includes(e)?e:st.TOOLTIP_TYPE)}onIdUpdated(){this.id.length===0&&(this.id=`mdc-tooltip-${Ue()}`);let e=document.getElementById(this.triggerID);if(e)switch(this.tooltipType){case le.DESCRIPTION:e.setAttribute("aria-describedby",this.id);break;case le.LABEL:e.setAttribute("aria-labelledby",this.id);break;default:break}}onPlacementUpdated(){Object.values(ne).includes(this.placement)||(this.placement=st.PLACEMENT)}onTooltipTypeUpdated(e){let r=e.get("tooltipType");Object.values(le).includes(this.tooltipType)||this.setTooltipType(st.TOOLTIP_TYPE);let o=document.getElementById(this.triggerID);if(o){let a=this.getTooltipText();switch(this.tooltipType){case le.DESCRIPTION:r===le.LABEL&&o.removeAttribute("aria-labelledby"),o.setAttribute("aria-describedby",this.id);break;case le.LABEL:r===le.DESCRIPTION&&o.removeAttribute("aria-describedby"),o.setAttribute("aria-labelledby",this.id);break;default:r===le.DESCRIPTION?o.removeAttribute("aria-describedby"):r===le.LABEL&&o.removeAttribute("aria-labelledby");break}a.length>0&&this.tooltipType!==le.NONE&&!this.ariaLabel&&(this.ariaLabel=a)}}update(e){super.update(e),e.has("id")&&this.onIdUpdated(),e.has("placement")&&this.onPlacementUpdated(),e.has("tooltipType")&&this.onTooltipTypeUpdated(e)}};vr.styles=[...Te.styles,...Tl],n([c({type:String,attribute:"tooltip-type",reflect:!0})],vr.prototype,"tooltipType",2),n([vo()],vr.prototype,"defaultSlotNodes",2);var ga=vr;ga.register(Qo);var um=ga;var Jo=f.constructTagName("select"),ei={ARROW_UP:"arrow-up-bold",ARROW_DOWN:"arrow-down-bold"};var Al="check-bold",ya="dynamic-option-tooltip-popover",eo=f.constructTagName("option");var fm=u`
2714
+ `,Sl=[bm];var vr=class extends Te{constructor(){super(...arguments);this.tooltipType=nt.TOOLTIP_TYPE}connectedCallback(){super.connectedCallback(),this.backdrop=!1,this.delay=nt.DELAY,this.focusTrap=!1,this.hideOnBlur=!0,this.hideOnEscape=!0,this.interactive=!1,this.offset=nt.OFFSET,this.placement=nt.PLACEMENT,this.role="tooltip",this.trigger="mouseenter focusin",this.enabledFocusTrap=!1,this.enabledPreventScroll=!1,this.flip=!0,this.focusTrap=!1,this.preventScroll=!1,this.closeButton=!1,this.hideOnOutsideClick=!1,this.focusBackToTrigger=!1,this.size=!1,this.disableAriaExpanded=!0}getTooltipText(){var e,r;return((r=(e=this.defaultSlotNodes)==null?void 0:e.map(o=>o.textContent).join(" "))==null?void 0:r.trim())||""}setTooltipType(e){this.setAttribute("tooltip-type",Object.values(le).includes(e)?e:nt.TOOLTIP_TYPE)}onIdUpdated(){this.id.length===0&&(this.id=`mdc-tooltip-${Ue()}`);let e=document.getElementById(this.triggerID);if(e)switch(this.tooltipType){case le.DESCRIPTION:e.setAttribute("aria-describedby",this.id);break;case le.LABEL:e.setAttribute("aria-labelledby",this.id);break;default:break}}onPlacementUpdated(){Object.values(ne).includes(this.placement)||(this.placement=nt.PLACEMENT)}onTooltipTypeUpdated(e){let r=e.get("tooltipType");Object.values(le).includes(this.tooltipType)||this.setTooltipType(nt.TOOLTIP_TYPE);let o=document.getElementById(this.triggerID);if(o){let a=this.getTooltipText();switch(this.tooltipType){case le.DESCRIPTION:r===le.LABEL&&o.removeAttribute("aria-labelledby"),o.setAttribute("aria-describedby",this.id);break;case le.LABEL:r===le.DESCRIPTION&&o.removeAttribute("aria-describedby"),o.setAttribute("aria-labelledby",this.id);break;default:r===le.DESCRIPTION?o.removeAttribute("aria-describedby"):r===le.LABEL&&o.removeAttribute("aria-labelledby");break}a.length>0&&this.tooltipType!==le.NONE&&!this.ariaLabel&&(this.ariaLabel=a)}}update(e){super.update(e),e.has("id")&&this.onIdUpdated(),e.has("placement")&&this.onPlacementUpdated(),e.has("tooltipType")&&this.onTooltipTypeUpdated(e)}};vr.styles=[...Te.styles,...Sl],n([c({type:String,attribute:"tooltip-type",reflect:!0})],vr.prototype,"tooltipType",2),n([go()],vr.prototype,"defaultSlotNodes",2);var ya=vr;ya.register(Jo);var vm=ya;var ei=f.constructTagName("select"),ti={ARROW_UP:"arrow-up-bold",ARROW_DOWN:"arrow-down-bold"};var Il="check-bold",xa="dynamic-option-tooltip-popover",to=f.constructTagName("option");var gm=u`
2715
2715
  :host {
2716
2716
  --mdc-option-icon-width: 1rem;
2717
2717
 
@@ -2740,12 +2740,12 @@
2740
2740
  text-overflow: ellipsis;
2741
2741
  white-space: nowrap;
2742
2742
  }
2743
- `,Sl=[fm];var Rt=class extends re(fr){constructor(){super(...arguments);this.selected=!1;this.ariaLabel=null}connectedCallback(){super.connectedCallback(),this.role="option",this.variant=pa.INSET_RECTANGLE,this.updateAttribute("aria-selected",`${this.selected}`),this.updateAttribute("aria-disabled",`${!!this.disabled}`),this.name=void 0,this.secondaryLabel=void 0,this.sideHeaderText=void 0,this.sublineText=void 0,this.dataAriaLabel=void 0,this.addEventListener("focusin",this.displayTooltipForLongText),this.addEventListener("mouseover",this.displayTooltipForLongText),this.addEventListener("focusout",this.hideTooltipOnLeave),this.addEventListener("mouseout",this.hideTooltipOnLeave),this.addEventListener("click",this.handleClick)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("focusin",this.displayTooltipForLongText),this.removeEventListener("mouseover",this.displayTooltipForLongText),this.removeEventListener("focusout",this.hideTooltipOnLeave),this.removeEventListener("mouseout",this.hideTooltipOnLeave),this.removeEventListener("click",this.handleClick)}handleClick(){this.hideTooltipOnLeave()}displayTooltipForLongText(e){var s,l;let r=(s=e.target.shadowRoot)==null?void 0:s.querySelector('[part="leading-text-primary-label"]');if(r&&r.scrollWidth&&r.clientWidth&&r.scrollWidth<=(r==null?void 0:r.clientWidth))return;let o=document.createElement(Qo);o.id=ya,o.textContent=(l=this.label)!=null?l:"",o.setAttribute("triggerid",this.id),o.setAttribute("visible",""),o.setAttribute("show-arrow","");let a=this.closest(Jo)||this.parentElement;a==null||a.after(o)}hideTooltipOnLeave(){let e=document.querySelector(`#${ya}`);e==null||e.remove()}handleDefaultSlotChange(){var r,o,a;let e=(r=this.shadowRoot)==null?void 0:r.querySelector("slot");e&&!this.label&&(this.label=(a=(o=e.assignedNodes()[0])==null?void 0:o.textContent)==null?void 0:a.trim())}updateAttribute(e,r){this.setAttribute(e,r)}update(e){super.update(e),e.has("disabled")&&this.updateAttribute("aria-disabled",`${this.disabled}`),e.has("selected")&&this.updateAttribute("aria-selected",`${this.selected}`)}render(){let e=this.prefixIcon?m`
2743
+ `,wl=[gm];var Ot=class extends re(Ye){constructor(){super(...arguments);this.selected=!1;this.ariaLabel=null}connectedCallback(){super.connectedCallback(),this.role="option",this.variant=Jr.INSET_RECTANGLE,this.updateAttribute("aria-selected",`${this.selected}`),this.updateAttribute("aria-disabled",`${!!this.disabled}`),this.name=void 0,this.secondaryLabel=void 0,this.sideHeaderText=void 0,this.sublineText=void 0,this.addEventListener("focusin",this.displayTooltipForLongText),this.addEventListener("mouseover",this.displayTooltipForLongText),this.addEventListener("focusout",this.hideTooltipOnLeave),this.addEventListener("mouseout",this.hideTooltipOnLeave),this.addEventListener("click",this.handleClick)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("focusin",this.displayTooltipForLongText),this.removeEventListener("mouseover",this.displayTooltipForLongText),this.removeEventListener("focusout",this.hideTooltipOnLeave),this.removeEventListener("mouseout",this.hideTooltipOnLeave),this.removeEventListener("click",this.handleClick)}handleClick(){this.hideTooltipOnLeave()}displayTooltipForLongText(e){var s,l;let r=(s=e.target.shadowRoot)==null?void 0:s.querySelector('[part="leading-text-primary-label"]');if(r&&r.scrollWidth&&r.clientWidth&&r.scrollWidth<=(r==null?void 0:r.clientWidth))return;let o=document.createElement(Jo);o.id=xa,o.textContent=(l=this.label)!=null?l:"",o.setAttribute("triggerid",this.id),o.setAttribute("visible",""),o.setAttribute("show-arrow","");let a=this.closest(ei)||this.parentElement;a==null||a.after(o)}hideTooltipOnLeave(){let e=document.querySelector(`#${xa}`);e==null||e.remove()}handleDefaultSlotChange(){var r,o,a;let e=(r=this.shadowRoot)==null?void 0:r.querySelector("slot");e&&!this.label&&(this.label=(a=(o=e.assignedNodes()[0])==null?void 0:o.textContent)==null?void 0:a.trim())}updateAttribute(e,r){this.setAttribute(e,r)}update(e){super.update(e),e.has("selected")&&this.updateAttribute("aria-selected",`${this.selected}`)}render(){let e=this.prefixIcon?m`
2744
2744
  <div part="leading-icon">
2745
2745
  <mdc-icon slot="leading-controls" name="${T(this.prefixIcon)}"></mdc-icon>
2746
2746
  </div>
2747
2747
  `:g,r=this.selected?m`
2748
- <mdc-icon slot="trailing-controls" name="${Al}"></mdc-icon>
2748
+ <mdc-icon slot="trailing-controls" name="${Il}"></mdc-icon>
2749
2749
  `:g;return m`
2750
2750
  ${e}
2751
2751
  <div part="leading-text">
@@ -2755,7 +2755,7 @@
2755
2755
  ${r}
2756
2756
  </div>
2757
2757
  <slot part="default-slot" @slotchange="${this.handleDefaultSlotChange}"></slot>
2758
- `}};Rt.styles=[...fr.styles,...Sl],n([c({type:Boolean,reflect:!0})],Rt.prototype,"selected",2),n([c({type:String,reflect:!0,attribute:"prefix-icon"})],Rt.prototype,"prefixIcon",2),n([c({type:String,reflect:!0,attribute:"aria-label"})],Rt.prototype,"ariaLabel",2);var xa=Rt;xa.register(eo);var bm=xa;Te.register(Hn);var vm=Te;var gm=[u`
2758
+ `}};Ot.styles=[...Ye.styles,...wl],n([c({type:Boolean,reflect:!0})],Ot.prototype,"selected",2),n([c({type:String,reflect:!0,attribute:"prefix-icon"})],Ot.prototype,"prefixIcon",2),n([c({type:String,reflect:!0,attribute:"aria-label"})],Ot.prototype,"ariaLabel",2);var Ea=Ot;Ea.register(to);var ym=Ea;Te.register(Wn);var xm=Te;var Em=[u`
2759
2759
  :host {
2760
2760
  --mdc-progressbar-background-color: var(--mds-color-theme-control-indicator-inactive-normal);
2761
2761
  --mdc-progressbar-active-background-color: var(--mds-color-theme-control-active-normal);
@@ -2839,7 +2839,7 @@
2839
2839
  border: var(--mdc-progressbar-border);
2840
2840
  }
2841
2841
  }
2842
- `],Il=gm;var wl=f.constructTagName("progressbar"),ti={DEFAULT:"default",INLINE:"inline"},Cl={VARIANT:ti.DEFAULT,VALIDATION:W.DEFAULT};var Ot=class extends P(ue){constructor(){super(...arguments);this.variant=Cl.VARIANT;this.value="0";this.error=!1;this.renderProgressbar=()=>{var a;let e=this.getValidationVariant(),r=this.clampedValue>0&&this.clampedValue<100,o=this.error?"100":`${this.clampedValue}`;return m`
2842
+ `],Cl=Em;var kl=f.constructTagName("progressbar"),ri={DEFAULT:"default",INLINE:"inline"},Nl={VARIANT:ri.DEFAULT,VALIDATION:W.DEFAULT};var Mt=class extends V(ue){constructor(){super(...arguments);this.variant=Nl.VARIANT;this.value="0";this.error=!1;this.renderProgressbar=()=>{var a;let e=this.getValidationVariant(),r=this.clampedValue>0&&this.clampedValue<100,o=this.error?"100":`${this.clampedValue}`;return m`
2843
2843
  <div
2844
2844
  part="progress-container ${r?"gap":""}"
2845
2845
  role="progressbar"
@@ -2851,16 +2851,16 @@
2851
2851
  <div part="progress-bar ${e}" style="width: ${o}%"></div>
2852
2852
  <div part="remaining"></div>
2853
2853
  </div>
2854
- `}}connectedCallback(){super.connectedCallback(),this.id=`mdc-progressbar-${Ue()}`,this.disabled=void 0}get clampedValue(){let e=Number(this.value);return Number.isNaN(e)?0:Math.max(0,Math.min(100,e))}getValidationVariant(){return this.error?this.helpTextType=W.ERROR:this.clampedValue===100?this.helpTextType=W.SUCCESS:this.helpTextType=W.DEFAULT,this.helpTextType}render(){let e=this.variant===ti.INLINE;return m`
2854
+ `}}connectedCallback(){super.connectedCallback(),this.id=`mdc-progressbar-${Ue()}`,this.disabled=void 0}get clampedValue(){let e=Number(this.value);return Number.isNaN(e)?0:Math.max(0,Math.min(100,e))}getValidationVariant(){return this.error?this.helpTextType=W.ERROR:this.clampedValue===100?this.helpTextType=W.SUCCESS:this.helpTextType=W.DEFAULT,this.helpTextType}render(){let e=this.variant===ri.INLINE;return m`
2855
2855
  ${e?m`<div part="inline-label-container">${this.renderLabelElement()} ${this.renderProgressbar()}</div>`:m`
2856
2856
  <div part="label-container">
2857
2857
  ${this.renderLabelElement()}
2858
- ${this.variant===ti.DEFAULT&&this.label?m`<span part="percentage">${this.clampedValue}%</span>`:""}
2858
+ ${this.variant===ri.DEFAULT&&this.label?m`<span part="percentage">${this.clampedValue}%</span>`:""}
2859
2859
  </div>
2860
2860
  ${this.renderProgressbar()}
2861
2861
  ${this.renderHelperText()}
2862
2862
  `}
2863
- `}};Ot.styles=[...ue.styles,...Il],n([c({type:String,reflect:!0})],Ot.prototype,"variant",2),n([c({type:String,reflect:!0})],Ot.prototype,"value",2),n([c({type:Boolean,attribute:"error"})],Ot.prototype,"error",2);var to=Ot;to.register(wl);var ym=to;var xm=u`
2863
+ `}};Mt.styles=[...ue.styles,...Cl],n([c({type:String,reflect:!0})],Mt.prototype,"variant",2),n([c({type:String,reflect:!0})],Mt.prototype,"value",2),n([c({type:Boolean,attribute:"error"})],Mt.prototype,"error",2);var ro=Mt;ro.register(kl);var Tm=ro;var Am=u`
2864
2864
  :host {
2865
2865
  --mdc-spinner-size: 3rem;
2866
2866
  --mdc-track-color: var(--mds-color-theme-control-indicator-inactive-normal);
@@ -2904,7 +2904,7 @@
2904
2904
  color: var(--mdc-progress-error-color);
2905
2905
  margin: 0.5rem;
2906
2906
  }
2907
- `,kl=[xm];var Nl=f.constructTagName("progressspinner"),F={RADIUS:20,CIRCUMFERENCE:2*Math.PI*20,STROKE_WIDTH:4,GAP_SIZE:7.5,ERROR_ICON_SIZE:2,SUCCESS_ICON_SIZE:3,ICON_LENGTH_UNIT:"em"},Ea={CHECK_CIRCLE_BOLD:"check-circle-bold",ERROR_LEGACY_FILLED:"error-legacy-filled"};var Ta=i=>{if(i===0)return 0;let t=i/100*F.CIRCUMFERENCE-F.GAP_SIZE;return Math.max(t,.1*i)},_l=i=>{let t=F.CIRCUMFERENCE-Ta(i)-2*F.GAP_SIZE;return i===0?F.CIRCUMFERENCE:t<0?0:t},Ll=i=>i===0?0:F.GAP_SIZE*.5,Rl=(i,t)=>{let e=t+F.GAP_SIZE*1.5;return i===0?0:e};var ri=class extends to{connectedCallback(){super.connectedCallback(),this.id="",this.disabled=void 0,this.helpTextType=void 0,this.helpText=void 0,this.requiredLabel=void 0,this.variant=void 0,this.label=void 0}renderProgressSpinner(){var a;let t=Ta(this.clampedValue),e=_l(this.clampedValue),r=Ll(this.clampedValue),o=Rl(this.clampedValue,t);return m`
2907
+ `,_l=[Am];var Ll=f.constructTagName("progressspinner"),F={RADIUS:20,CIRCUMFERENCE:2*Math.PI*20,STROKE_WIDTH:4,GAP_SIZE:7.5,ERROR_ICON_SIZE:2,SUCCESS_ICON_SIZE:3,ICON_LENGTH_UNIT:"em"},Ta={CHECK_CIRCLE_BOLD:"check-circle-bold",ERROR_LEGACY_FILLED:"error-legacy-filled"};var Aa=i=>{if(i===0)return 0;let t=i/100*F.CIRCUMFERENCE-F.GAP_SIZE;return Math.max(t,.1*i)},Rl=i=>{let t=F.CIRCUMFERENCE-Aa(i)-2*F.GAP_SIZE;return i===0?F.CIRCUMFERENCE:t<0?0:t},Ol=i=>i===0?0:F.GAP_SIZE*.5,Ml=(i,t)=>{let e=t+F.GAP_SIZE*1.5;return i===0?0:e};var oi=class extends ro{connectedCallback(){super.connectedCallback(),this.id="",this.disabled=void 0,this.helpTextType=void 0,this.helpText=void 0,this.requiredLabel=void 0,this.variant=void 0,this.label=void 0}renderProgressSpinner(){var a;let t=Aa(this.clampedValue),e=Rl(this.clampedValue),r=Ol(this.clampedValue),o=Ml(this.clampedValue,t);return m`
2908
2908
  <div
2909
2909
  part="spinner-container ${this.variant}"
2910
2910
  role="progressbar"
@@ -2938,18 +2938,18 @@
2938
2938
  <mdc-icon
2939
2939
  part="error-icon"
2940
2940
  aria-label="${(t=this.dataAriaLabel)!=null?t:""}"
2941
- name="${Ea.ERROR_LEGACY_FILLED}"
2941
+ name="${Ta.ERROR_LEGACY_FILLED}"
2942
2942
  size="${F.ERROR_ICON_SIZE}"
2943
2943
  length-unit="${F.ICON_LENGTH_UNIT}"></mdc-icon>
2944
2944
  `}renderSuccessState(){var t;return m`
2945
2945
  <mdc-icon
2946
2946
  part="success-icon"
2947
2947
  aria-label="${(t=this.dataAriaLabel)!=null?t:""}"
2948
- name="${Ea.CHECK_CIRCLE_BOLD}"
2948
+ name="${Ta.CHECK_CIRCLE_BOLD}"
2949
2949
  size="${F.SUCCESS_ICON_SIZE}"
2950
2950
  length-unit="${F.ICON_LENGTH_UNIT}"></mdc-icon>
2951
2951
  `}render(){return this.error?this.renderErrorState():this.clampedValue===100?this.renderSuccessState():m`
2952
- ${this.renderProgressSpinner()}`}};ri.styles=[...v.styles,...kl];var Aa=ri;Aa.register(Nl);var Em=Aa;var Tm=[_,u`
2952
+ ${this.renderProgressSpinner()}`}};oi.styles=[...v.styles,..._l];var Sa=oi;Sa.register(Ll);var Sm=Sa;var Im=[_,u`
2953
2953
  :host{
2954
2954
  display: flex;
2955
2955
  flex-direction: row;
@@ -3036,7 +3036,7 @@
3036
3036
  display: none;
3037
3037
  }
3038
3038
 
3039
- `,...O(!0)],Ol=Tm;var Mt=class extends re(P(j)){constructor(){super(...arguments);this.checked=!1;this.readonly=!1;this.autofocus=!1;this.renderLabelAndHelperText=()=>this.label?m`<div class="mdc-radio__label-container">
3039
+ `,...O(!0)],Dl=Im;var Dt=class extends re(V(j)){constructor(){super(...arguments);this.checked=!1;this.readonly=!1;this.autofocus=!1;this.renderLabelAndHelperText=()=>this.label?m`<div class="mdc-radio__label-container">
3040
3040
  ${this.renderLabel()}
3041
3041
  ${this.renderHelperText()}
3042
3042
  </div>`:g}connectedCallback(){super.connectedCallback(),this.helpTextType=void 0}firstUpdated(){this.updateTabIndex()}getAllRadiosWithinSameGroup(){return Array.from(document.querySelectorAll(`mdc-radio[name="${this.name}"]`))}dispatchChangeEvent(e){let r=e.constructor;this.dispatchEvent(new r(e.type,e))}formResetCallback(){this.getAllRadiosWithinSameGroup().forEach(r=>{r.checked=!1}),this.updateComplete.then(()=>{this.setActualFormValue()}).catch(r=>{this.onerror&&this.onerror(r)})}formStateRestoreCallback(e){this.value===e&&e!==""&&(this.checked=!0)}setComponentValidity(e){e?this.internals.setValidity({}):this.requiredLabel&&!this.checked&&(this.validationMessage?this.inputElement.setCustomValidity(this.validationMessage):this.inputElement.setCustomValidity(""),this.setValidity()),this.updateTabIndex()}setGroupValidity(e,r){this.updateComplete.then(()=>{e.forEach(o=>{o.setComponentValidity(r)})}).catch(o=>{this.onerror&&this.onerror(o)})}setActualFormValue(){let e="";this.checked?e=this.value?this.value:"on":e=null;let r=this.getAllRadiosWithinSameGroup();if(this.checked)this.setGroupValidity(r,!0);else{let o=r.some(l=>l.requiredLabel),a=!!r.find(l=>l.checked),s=o&&!a;this.setGroupValidity(r,!s)}this.internals.setFormValue(e)}handleChange(e){var a;if(this.disabled||this.readonly)return;this.getAllRadiosWithinSameGroup().forEach(s=>{var d;let l=(d=s.shadowRoot)==null?void 0:d.querySelector("input");l&&(s.checked=!1,l.checked=!1)}),this.checked=!0;let o=(a=this.shadowRoot)==null?void 0:a.querySelector("input");o&&(o.checked=!0),this.dispatchChangeEvent(e)}updateRadio(e,r,o){var a,s;(s=(a=e[r].shadowRoot)==null?void 0:a.querySelector("input"))==null||s.focus(),e[r].handleChange(o)}handleKeyDown(e){var s;if(this.disabled)return;let o=this.getAllRadiosWithinSameGroup().filter(l=>!l.disabled),a=o.indexOf(this);if(["ArrowDown","ArrowRight"].includes(e.key)){let l=(a+1)%o.length;this.updateRadio(o,l,e)}else if(["ArrowUp","ArrowLeft"].includes(e.key)){let l=(a-1+o.length)%o.length;this.updateRadio(o,l,e)}else e.key===" "&&this.updateRadio(o,a,e);this.updateTabIndex(),e.key==="Enter"&&((s=this.form)==null||s.requestSubmit())}updateTabIndex(){let e=this.getAllRadiosWithinSameGroup(),r=e.find(a=>a.checked),o=e.find(a=>!a.disabled);e.forEach(a=>{var l;let s=(l=a.shadowRoot)==null?void 0:l.querySelector("input");s&&(s.tabIndex=-1,(a===r||!r&&a===o)&&(s.tabIndex=0))})}update(e){super.update(e),e.has("checked")&&this.setActualFormValue()}render(){var e;return m`
@@ -3061,17 +3061,17 @@
3061
3061
  ?disabled=${this.disabled}
3062
3062
  class="mdc-radio__input"
3063
3063
  aria-checked="${this.checked}"
3064
- aria-describedby="${T(this.helpText?V.HELPER_TEXT_ID:"")}"
3064
+ aria-describedby="${T(this.helpText?P.HELPER_TEXT_ID:"")}"
3065
3065
  aria-label="${(e=this.dataAriaLabel)!=null?e:""}"
3066
3066
  />
3067
3067
  </mdc-staticradio>
3068
3068
  ${this.renderLabelAndHelperText()}
3069
- `}};Mt.styles=[...j.styles,...Ol],n([c({type:Boolean,reflect:!0})],Mt.prototype,"checked",2),n([c({type:Boolean,reflect:!0})],Mt.prototype,"readonly",2),n([c({type:Boolean,reflect:!0})],Mt.prototype,"autofocus",2);var Sa=Mt;var oi=f.constructTagName("radio");Sa.register(oi);var Am=Sa;var ro=class extends Go{constructor(){super();this.name="";this.isRadio=!0}firstUpdated(){var e,r,o,a,s;(s=(a=(o=(r=Array.from(((e=this.shadowRoot)==null?void 0:e.querySelectorAll("slot"))||[]))==null?void 0:r.flatMap(l=>l.assignedElements({flatten:!0})))==null?void 0:o.filter(l=>l.tagName.toLowerCase()===oi))==null?void 0:a.filter(l=>!l.hasAttribute("name")))==null||s.forEach(l=>{l.setAttribute("name",this.name),this.requiredLabel&&l.setAttribute("required-label",this.requiredLabel)})}};ro.styles=[...Go.styles],n([c({type:String})],ro.prototype,"name",2);var Ia=ro;var Ml=f.constructTagName("radiogroup");Ia.register(Ml);var Sm=Ia;var Dl=f.constructTagName("screenreaderannouncer"),Im={ASSERTIVE:"assertive",POLITE:"polite",OFF:"off"},gr={ARIA_LIVE:Im.POLITE,DELAY:150,IDENTITY:"mdc-screenreaderannouncer-identity",TIMEOUT:2e4};var wm=[u`
3069
+ `}};Dt.styles=[...j.styles,...Dl],n([c({type:Boolean,reflect:!0})],Dt.prototype,"checked",2),n([c({type:Boolean,reflect:!0})],Dt.prototype,"readonly",2),n([c({type:Boolean,reflect:!0})],Dt.prototype,"autofocus",2);var Ia=Dt;var ii=f.constructTagName("radio");Ia.register(ii);var wm=Ia;var oo=class extends Wo{constructor(){super();this.name="";this.isRadio=!0}firstUpdated(){var e,r,o,a,s;(s=(a=(o=(r=Array.from(((e=this.shadowRoot)==null?void 0:e.querySelectorAll("slot"))||[]))==null?void 0:r.flatMap(l=>l.assignedElements({flatten:!0})))==null?void 0:o.filter(l=>l.tagName.toLowerCase()===ii))==null?void 0:a.filter(l=>!l.hasAttribute("name")))==null||s.forEach(l=>{l.setAttribute("name",this.name),this.requiredLabel&&l.setAttribute("required-label",this.requiredLabel)})}};oo.styles=[...Wo.styles],n([c({type:String})],oo.prototype,"name",2);var wa=oo;var $l=f.constructTagName("radiogroup");wa.register($l);var Cm=wa;var zl=f.constructTagName("screenreaderannouncer"),km={ASSERTIVE:"assertive",POLITE:"polite",OFF:"off"},gr={ARIA_LIVE:km.POLITE,DELAY:150,IDENTITY:"mdc-screenreaderannouncer-identity",TIMEOUT:2e4};var Nm=[u`
3070
3070
  :host {
3071
3071
  display: none;
3072
3072
  visibility: hidden;
3073
3073
  }
3074
- `],$l=wm;var Ye=class extends v{constructor(){super(...arguments);this.announcement="";this.identity="";this.dataAriaLive=gr.ARIA_LIVE;this.delay=gr.DELAY;this.timeout=gr.TIMEOUT;this.timeOutIds=[];this.ariaLiveAnnouncementIds=[]}announce(e,r,o,a){var s;if(e.length>0){let l=`mdc-screenreaderannouncer-announcement-${Ue()}`,d=document.createElement("div");d.id=l,d.ariaLive=a,(s=document.getElementById(this.identity))==null||s.appendChild(d);let p=window.setTimeout(()=>{let h=document.createElement("p");h.textContent=e,d.appendChild(h),this.ariaLiveAnnouncementIds.push(l);let b=window.setTimeout(()=>{var x;(x=document.getElementById(l))==null||x.remove()},o);this.timeOutIds.push(b)},r);this.timeOutIds.push(p)}}clearTimeOutsAndAnnouncements(){this.timeOutIds.forEach(e=>{window.clearTimeout(e)}),this.ariaLiveAnnouncementIds.forEach(e=>{var r;(r=document.getElementById(e))==null||r.remove()})}createAnnouncementAriaLiveRegion(){let e=document.getElementById(this.identity);if(!e){e=document.createElement("div"),e.id=this.identity;let r=document.createElement("style");r.textContent=`
3074
+ `],Pl=Nm;var qe=class extends v{constructor(){super(...arguments);this.announcement="";this.identity="";this.dataAriaLive=gr.ARIA_LIVE;this.delay=gr.DELAY;this.timeout=gr.TIMEOUT;this.timeOutIds=[];this.ariaLiveAnnouncementIds=[]}announce(e,r,o,a){var s;if(e.length>0){let l=`mdc-screenreaderannouncer-announcement-${Ue()}`,d=document.createElement("div");d.id=l,d.ariaLive=a,(s=document.getElementById(this.identity))==null||s.appendChild(d);let p=window.setTimeout(()=>{let h=document.createElement("p");h.textContent=e,d.appendChild(h),this.ariaLiveAnnouncementIds.push(l);let b=window.setTimeout(()=>{var x;(x=document.getElementById(l))==null||x.remove()},o);this.timeOutIds.push(b)},r);this.timeOutIds.push(p)}}clearTimeOutsAndAnnouncements(){this.timeOutIds.forEach(e=>{window.clearTimeout(e)}),this.ariaLiveAnnouncementIds.forEach(e=>{var r;(r=document.getElementById(e))==null||r.remove()})}createAnnouncementAriaLiveRegion(){let e=document.getElementById(this.identity);if(!e){e=document.createElement("div"),e.id=this.identity;let r=document.createElement("style");r.textContent=`
3075
3075
  .mdc-screenreaderannouncer__visually-hidden {
3076
3076
  clip: rect(0 0 0 0);
3077
3077
  clip-path: inset(50%);
@@ -3081,7 +3081,7 @@
3081
3081
  white-space: nowrap;
3082
3082
  width: 1px;
3083
3083
  }
3084
- `,e.appendChild(r),e.classList.add("mdc-screenreaderannouncer__visually-hidden"),document.body.appendChild(e)}}connectedCallback(){super.connectedCallback(),this.identity.length===0&&(this.identity=gr.IDENTITY),this.createAnnouncementAriaLiveRegion()}disconnectedCallback(){super.disconnectedCallback(),this.clearTimeOutsAndAnnouncements()}updated(e){e.has("identity")&&this.identity.length===0&&(this.identity=gr.IDENTITY,this.createAnnouncementAriaLiveRegion()),e.has("announcement")&&this.announcement.length>0&&(this.announce(this.announcement,this.delay,this.timeout,this.dataAriaLive),this.announcement="")}};Ye.styles=[...v.styles,...$l],n([c({type:String,reflect:!0})],Ye.prototype,"announcement",2),n([c({type:String,reflect:!0})],Ye.prototype,"identity",2),n([c({type:String,reflect:!0,attribute:"data-aria-live"})],Ye.prototype,"dataAriaLive",2),n([c({type:Number,reflect:!0})],Ye.prototype,"delay",2),n([c({type:Number,reflect:!0})],Ye.prototype,"timeout",2);var wa=Ye;wa.register(Dl);var Cm=wa;var km=u`
3084
+ `,e.appendChild(r),e.classList.add("mdc-screenreaderannouncer__visually-hidden"),document.body.appendChild(e)}}connectedCallback(){super.connectedCallback(),this.identity.length===0&&(this.identity=gr.IDENTITY),this.createAnnouncementAriaLiveRegion()}disconnectedCallback(){super.disconnectedCallback(),this.clearTimeOutsAndAnnouncements()}updated(e){e.has("identity")&&this.identity.length===0&&(this.identity=gr.IDENTITY,this.createAnnouncementAriaLiveRegion()),e.has("announcement")&&this.announcement.length>0&&(this.announce(this.announcement,this.delay,this.timeout,this.dataAriaLive),this.announcement="")}};qe.styles=[...v.styles,...Pl],n([c({type:String,reflect:!0})],qe.prototype,"announcement",2),n([c({type:String,reflect:!0})],qe.prototype,"identity",2),n([c({type:String,reflect:!0,attribute:"data-aria-live"})],qe.prototype,"dataAriaLive",2),n([c({type:Number,reflect:!0})],qe.prototype,"delay",2),n([c({type:Number,reflect:!0})],qe.prototype,"timeout",2);var Ca=qe;Ca.register(zl);var _m=Ca;var Lm=u`
3085
3085
 
3086
3086
  :host::part(filters-container){
3087
3087
  display: flex;
@@ -3108,9 +3108,9 @@
3108
3108
  scrollbar-width: none;
3109
3109
  }
3110
3110
 
3111
- `,zl=[km];var Pl=f.constructTagName("searchfield"),oo={TYPE:la.SEARCH,ICON:"search-bold",CLOSE_BTN:!0,INPUT_CHIP_TAG:Yo};var Dt=class extends hr{constructor(){super(...arguments);this.isInputFocused=!1;this.hasInputChips=!1}handleKeyDown(e){super.handleKeyDown(e),e.key==="Escape"&&this.clearInputText()}connectedCallback(){super.connectedCallback(),this.leadingIcon=oo.ICON,this.trailingButton=oo.CLOSE_BTN,this.helpText=void 0,this.helpTextType=void 0,this.requiredLabel=void 0,this.validationMessage=void 0,this.prefixText=void 0}renderInputChips(){var e;this.hasInputChips=!!((e=this.inputChips)!=null&&e.length),this.inputChips&&this.inputChips.forEach(r=>{r.matches(oo.INPUT_CHIP_TAG)||r.remove()})}firstUpdated(){this.inputElement.onfocus=()=>{this.isInputFocused=!0},this.inputElement.onblur=()=>{this.isInputFocused=!1}}clearInputText(){var e;super.clearInputText(),(e=this.inputChips)==null||e.forEach(r=>{r.dispatchEvent(new CustomEvent("remove",{bubbles:!0,composed:!0}))})}render(){return m`
3111
+ `,Vl=[Lm];var Ul=f.constructTagName("searchfield"),io={TYPE:da.SEARCH,ICON:"search-bold",CLOSE_BTN:!0,INPUT_CHIP_TAG:qo};var $t=class extends ur{constructor(){super(...arguments);this.isInputFocused=!1;this.hasInputChips=!1}handleKeyDown(e){super.handleKeyDown(e),e.key==="Escape"&&this.clearInputText()}connectedCallback(){super.connectedCallback(),this.leadingIcon=io.ICON,this.trailingButton=io.CLOSE_BTN,this.helpText=void 0,this.helpTextType=void 0,this.requiredLabel=void 0,this.validationMessage=void 0,this.prefixText=void 0}renderInputChips(){var e;this.hasInputChips=!!((e=this.inputChips)!=null&&e.length),this.inputChips&&this.inputChips.forEach(r=>{r.matches(io.INPUT_CHIP_TAG)||r.remove()})}firstUpdated(){this.inputElement.onfocus=()=>{this.isInputFocused=!0},this.inputElement.onblur=()=>{this.isInputFocused=!1}}clearInputText(){var e;super.clearInputText(),(e=this.inputChips)==null||e.forEach(r=>{r.dispatchEvent(new CustomEvent("remove",{bubbles:!0,composed:!0}))})}render(){return m`
3112
3112
  ${this.renderLabelElement()}
3113
- <div class="${rr({"input-container":!0,"mdc-focus-ring":this.isInputFocused})}" part="input-container">
3113
+ <div class="${or({"input-container":!0,"mdc-focus-ring":this.isInputFocused})}" part="input-container">
3114
3114
  ${this.renderLeadingIcon()}
3115
3115
  <div part='scrollable-container' tabindex='-1'>
3116
3116
  <div part="filters-container"
@@ -3118,11 +3118,11 @@
3118
3118
  @keydown=${e=>e.key==="Enter"?this.inputElement.focus():null}
3119
3119
  @keyup=${e=>e.key===" "?this.inputElement.focus():null}>
3120
3120
  <slot name="filters" @slotchange=${this.renderInputChips}></slot></div>
3121
- ${this.renderInputElement(oo.TYPE,this.hasInputChips)}
3121
+ ${this.renderInputElement(io.TYPE,this.hasInputChips)}
3122
3122
  </div>
3123
3123
  ${this.renderTrailingButton(this.hasInputChips)}
3124
3124
  </div>
3125
- `}};Dt.styles=[...hr.styles,...zl],n([ie({slot:"filters"})],Dt.prototype,"inputChips",2),n([N()],Dt.prototype,"isInputFocused",2),n([N()],Dt.prototype,"hasInputChips",2);var Ca=Dt;Ca.register(Pl);var Nm=Ca;var _m=u`
3125
+ `}};$t.styles=[...ur.styles,...Vl],n([ie({slot:"filters"})],$t.prototype,"inputChips",2),n([N()],$t.prototype,"isInputFocused",2),n([N()],$t.prototype,"hasInputChips",2);var ka=$t;ka.register(Ul);var Rm=ka;var Om=u`
3126
3126
  :host {
3127
3127
  --mdc-select-background-color: var(--mds-color-theme-background-primary-ghost);
3128
3128
  --mdc-select-icon-border-color: var(--mds-color-theme-outline-input-normal);
@@ -3224,7 +3224,7 @@
3224
3224
  :host([help-text-type="warning"])::part(base-container) {
3225
3225
  border-color: var(--mdc-select-warning-border-color);
3226
3226
  }
3227
- `,Vl=[_m,...O(!0)];var J=class extends re(P(j)){constructor(){super(...arguments);this.readonly=!1;this.height="auto";this.baseIconName=ei.ARROW_DOWN;this.selectedValue="";this.displayPopover=!1;this.activeDescendant="";this.popoverWidth="100%"}connectedCallback(){super.connectedCallback(),this.value=void 0,this.addEventListener("keydown",this.handleKeydown)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("keydown",this.handleKeydown)}getAllValidOptions(){var e;return((e=this.optionsList)==null?void 0:e.map(r=>r.tagName.toLowerCase()===eo?r:r.tagName.toLowerCase()===jo?Array.from(r.children).filter(o=>o.tagName.toLowerCase()===eo):[]).flat())||[]}handlePopoverOpen(){this.displayPopover=!0,this.baseIconName=ei.ARROW_UP}handlePopoverClose(){this.displayPopover=!1,this.baseIconName=ei.ARROW_DOWN}updateTabIndexForAllOptions(e){var o;let r=!1;this.getAllValidOptions().forEach(a=>{a===e?(this.setSelectedValue(a),r=!0,a.setAttribute("selected",""),a.setAttribute("tabindex","0")):(a==null||a.setAttribute("tabindex","-1"),a==null||a.removeAttribute("selected"))}),!r&&((o=this.getAllValidOptions()[0])==null||o.setAttribute("tabindex","0"))}handleOptionsClick(e){this.updateTabIndexForAllOptions(e.target)}setSelectedValue(e){var r,o,a,s;this.selectedValueText=(o=(r=e==null?void 0:e.getAttribute("label"))!=null?r:e==null?void 0:e.textContent)!=null?o:"",this.selectedValue=(s=(a=e==null?void 0:e.getAttribute("value"))!=null?a:e==null?void 0:e.textContent)!=null?s:"",this.internals.setFormValue(this.selectedValue),this.manageRequired(),this.dispatchChange(this.selectedValue)}manageRequired(){!this.selectedValue&&this.requiredLabel?(this.validationMessage?this.inputElement.setCustomValidity(this.validationMessage):this.inputElement.setCustomValidity(""),this.setValidity()):this.internals.setValidity({})}formResetCallback(){this.selectedValue="",this.selectedValueText=void 0,this.internals.setFormValue(this.selectedValue),this.updateTabIndexForAllOptions()}formStateRestoreCallback(e){this.selectedValue=e,this.selectedValueText=e}dispatchChange(e){e&&this.dispatchEvent(new CustomEvent("change",{detail:{value:e},composed:!0,bubbles:!0}))}handleKeydown(e){this.displayPopover?this.handlePopoverOnOpen(e):this.handlePopoverOnClose(e)}handlePopoverOnOpen(e){var r;switch(e.key){case $.SPACE:this.updateTabIndexForAllOptions(e.target),this.closePopover(),e.preventDefault();break;case $.ENTER:this.updateTabIndexForAllOptions(e.target),this.closePopover(),e.preventDefault(),(r=this.form)==null||r.requestSubmit();break;case $.ESCAPE:this.closePopover(),e.stopPropagation();break;case $.HOME:this.setFocusAndTabIndex(0),e.preventDefault();break;case $.END:this.setFocusAndTabIndex(this.getAllValidOptions().length-1),e.preventDefault();break;case $.ARROW_DOWN:case $.ARROW_UP:case $.PAGE_DOWN:case $.PAGE_UP:this.handleOptionsNavigation(e),this.updateActivedescendant(e.target);break;default:break}}handlePopoverOnClose(e){switch(e.key){case $.ARROW_DOWN:case $.ARROW_UP:case $.ENTER:case $.SPACE:this.openPopover(),e.preventDefault();break;case $.HOME:this.openPopover(),this.setFocusAndTabIndex(0),e.preventDefault();break;case $.END:this.openPopover(),this.setFocusAndTabIndex(this.getAllValidOptions().length-1),e.preventDefault();break;default:break}}handleOptionsNavigation(e){let r=this.getAllValidOptions(),o=r.findIndex(s=>s===e.target),a=this.getNewIndexBasedOnKey(e.key,o,r.length);a!==-1&&(this.setFocusAndTabIndex(a),e.preventDefault())}getNewIndexBasedOnKey(e,r,o){return e===$.ARROW_DOWN&&r!==o-1?r+1:e===$.ARROW_UP&&r>0?r-1:e===$.PAGE_DOWN?r+10>o?o-1:r+10:e===$.PAGE_UP?r-10<0?0:r-10:-1}updateActivedescendant(e){var o,a;let r=this.getAllValidOptions().findIndex(s=>s===e);this.activeDescendant=(a=(o=this.getAllValidOptions()[r])==null?void 0:o.id)!=null?a:""}resetActivedescendant(){this.activeDescendant=""}setFocusAndTabIndex(e){var r;(r=this.getAllValidOptions()[e])==null||r.focus(),this.getAllValidOptions().forEach((o,a)=>{let s=e===a?"0":"-1";o==null||o.setAttribute("tabindex",s)})}openPopover(){this.displayPopover=!0,this.resetActivedescendant()}closePopover(){this.displayPopover=!1,this.resetActivedescendant()}firstUpdated(){let e=this.getAllValidOptions(),r=e.findIndex(o=>o==null?void 0:o.hasAttribute("selected"));r!==-1?(this.setSelectedValue(e[r]),this.updateTabIndexForAllOptions(e[r])):this.placeholder?this.placeholder&&this.manageRequired():(this.setSelectedValue(e[0]),this.updateTabIndexForAllOptions())}getNativeSelect(){return m`
3227
+ `,Fl=[Om,...O(!0)];var J=class extends re(V(j)){constructor(){super(...arguments);this.readonly=!1;this.height="auto";this.baseIconName=ti.ARROW_DOWN;this.selectedValue="";this.displayPopover=!1;this.activeDescendant="";this.popoverWidth="100%"}connectedCallback(){super.connectedCallback(),this.value=void 0,this.addEventListener("keydown",this.handleKeydown)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("keydown",this.handleKeydown)}getAllValidOptions(){var e;return((e=this.optionsList)==null?void 0:e.map(r=>r.tagName.toLowerCase()===to?r:r.tagName.toLowerCase()===Qo?Array.from(r.children).filter(o=>o.tagName.toLowerCase()===to):[]).flat())||[]}handlePopoverOpen(){this.displayPopover=!0,this.baseIconName=ti.ARROW_UP}handlePopoverClose(){this.displayPopover=!1,this.baseIconName=ti.ARROW_DOWN}updateTabIndexForAllOptions(e){var o;let r=!1;this.getAllValidOptions().forEach(a=>{a===e?(this.setSelectedValue(a),r=!0,a.setAttribute("selected",""),a.setAttribute("tabindex","0")):(a==null||a.setAttribute("tabindex","-1"),a==null||a.removeAttribute("selected"))}),!r&&((o=this.getAllValidOptions()[0])==null||o.setAttribute("tabindex","0"))}handleOptionsClick(e){this.updateTabIndexForAllOptions(e.target)}setSelectedValue(e){var r,o,a,s;this.selectedValueText=(o=(r=e==null?void 0:e.getAttribute("label"))!=null?r:e==null?void 0:e.textContent)!=null?o:"",this.selectedValue=(s=(a=e==null?void 0:e.getAttribute("value"))!=null?a:e==null?void 0:e.textContent)!=null?s:"",this.internals.setFormValue(this.selectedValue),this.manageRequired(),this.dispatchChange(this.selectedValue)}manageRequired(){!this.selectedValue&&this.requiredLabel?(this.validationMessage?this.inputElement.setCustomValidity(this.validationMessage):this.inputElement.setCustomValidity(""),this.setValidity()):this.internals.setValidity({})}formResetCallback(){this.selectedValue="",this.selectedValueText=void 0,this.internals.setFormValue(this.selectedValue),this.updateTabIndexForAllOptions()}formStateRestoreCallback(e){this.selectedValue=e,this.selectedValueText=e}dispatchChange(e){e&&this.dispatchEvent(new CustomEvent("change",{detail:{value:e},composed:!0,bubbles:!0}))}handleKeydown(e){this.displayPopover?this.handlePopoverOnOpen(e):this.handlePopoverOnClose(e)}handlePopoverOnOpen(e){var r;switch(e.key){case $.SPACE:this.updateTabIndexForAllOptions(e.target),this.closePopover(),e.preventDefault();break;case $.ENTER:this.updateTabIndexForAllOptions(e.target),this.closePopover(),e.preventDefault(),(r=this.form)==null||r.requestSubmit();break;case $.ESCAPE:this.closePopover(),e.stopPropagation();break;case $.HOME:this.setFocusAndTabIndex(0),e.preventDefault();break;case $.END:this.setFocusAndTabIndex(this.getAllValidOptions().length-1),e.preventDefault();break;case $.ARROW_DOWN:case $.ARROW_UP:case $.PAGE_DOWN:case $.PAGE_UP:this.handleOptionsNavigation(e),this.updateActivedescendant(e.target);break;default:break}}handlePopoverOnClose(e){switch(e.key){case $.ARROW_DOWN:case $.ARROW_UP:case $.ENTER:case $.SPACE:this.openPopover(),e.preventDefault();break;case $.HOME:this.openPopover(),this.setFocusAndTabIndex(0),e.preventDefault();break;case $.END:this.openPopover(),this.setFocusAndTabIndex(this.getAllValidOptions().length-1),e.preventDefault();break;default:break}}handleOptionsNavigation(e){let r=this.getAllValidOptions(),o=r.findIndex(s=>s===e.target),a=this.getNewIndexBasedOnKey(e.key,o,r.length);a!==-1&&(this.setFocusAndTabIndex(a),e.preventDefault())}getNewIndexBasedOnKey(e,r,o){return e===$.ARROW_DOWN&&r!==o-1?r+1:e===$.ARROW_UP&&r>0?r-1:e===$.PAGE_DOWN?r+10>o?o-1:r+10:e===$.PAGE_UP?r-10<0?0:r-10:-1}updateActivedescendant(e){var o,a;let r=this.getAllValidOptions().findIndex(s=>s===e);this.activeDescendant=(a=(o=this.getAllValidOptions()[r])==null?void 0:o.id)!=null?a:""}resetActivedescendant(){this.activeDescendant=""}setFocusAndTabIndex(e){var r;(r=this.getAllValidOptions()[e])==null||r.focus(),this.getAllValidOptions().forEach((o,a)=>{let s=e===a?"0":"-1";o==null||o.setAttribute("tabindex",s)})}openPopover(){this.displayPopover=!0,this.resetActivedescendant()}closePopover(){this.displayPopover=!1,this.resetActivedescendant()}firstUpdated(){let e=this.getAllValidOptions(),r=e.findIndex(o=>o==null?void 0:o.hasAttribute("selected"));r!==-1?(this.setSelectedValue(e[r]),this.updateTabIndexForAllOptions(e[r])):this.placeholder?this.placeholder&&this.manageRequired():(this.setSelectedValue(e[0]),this.updateTabIndexForAllOptions())}getNativeSelect(){return m`
3228
3228
  <select
3229
3229
  part="native-select"
3230
3230
  id="${this.id}"
@@ -3278,7 +3278,7 @@
3278
3278
  aria-activedescendant="${this.activeDescendant}"
3279
3279
  aria-haspopup="listbox"
3280
3280
  aria-label="${(e=this.dataAriaLabel)!=null?e:""}"
3281
- aria-labelledby="${this.label?V.HEADING_ID:""}"
3281
+ aria-labelledby="${this.label?P.HEADING_ID:""}"
3282
3282
  aria-expanded="${this.displayPopover?"true":"false"}"
3283
3283
  >
3284
3284
  <mdc-text
@@ -3296,7 +3296,7 @@
3296
3296
  ${this.getPopoverContent()}
3297
3297
  </div>
3298
3298
  ${this.renderHelperText()}
3299
- `}};J.styles=[...j.styles,...Vl],n([c({type:String})],J.prototype,"placeholder",2),n([c({type:Boolean})],J.prototype,"readonly",2),n([c({type:String})],J.prototype,"height",2),n([ie()],J.prototype,"optionsList",2),n([N()],J.prototype,"baseIconName",2),n([N()],J.prototype,"selectedValueText",2),n([N()],J.prototype,"selectedValue",2),n([N()],J.prototype,"displayPopover",2),n([N()],J.prototype,"activeDescendant",2),n([N()],J.prototype,"popoverWidth",2),n([$e("select")],J.prototype,"inputElement",2);var ka=J;ka.register(Jo);var Lm=ka;var Rm=[_,u`
3299
+ `}};J.styles=[...j.styles,...Fl],n([c({type:String})],J.prototype,"placeholder",2),n([c({type:Boolean})],J.prototype,"readonly",2),n([c({type:String})],J.prototype,"height",2),n([ie()],J.prototype,"optionsList",2),n([N()],J.prototype,"baseIconName",2),n([N()],J.prototype,"selectedValueText",2),n([N()],J.prototype,"selectedValue",2),n([N()],J.prototype,"displayPopover",2),n([N()],J.prototype,"activeDescendant",2),n([N()],J.prototype,"popoverWidth",2),n([$e("select")],J.prototype,"inputElement",2);var Na=J;Na.register(ei);var Mm=Na;var Dm=[_,u`
3300
3300
  :host {
3301
3301
  --mdc-spinner-default-color: var(--mds-color-theme-control-active-normal);
3302
3302
  --mdc-spinner-inverted-color: var(--mds-color-theme-inverted-control-active-normal);
@@ -3358,11 +3358,11 @@
3358
3358
  stroke-dashoffset: -292;
3359
3359
  }
3360
3360
  }
3361
- `],Ul=Rm;var Fl=f.constructTagName("spinner"),Om={LARGE:"large",MIDSIZE:"midsize",SMALL:"small"},Mm={STANDALONE:"standalone",BUTTON:"button"},ii={VARIANT:Mm.STANDALONE,SIZE:Om.MIDSIZE,INVERTED:!1};var nt=class extends v{constructor(){super(...arguments);this.inverted=ii.INVERTED;this.size=ii.SIZE;this.ariaLabel=null;this.variant=ii.VARIANT}updated(e){super.updated(e),e.has("ariaLabel")&&(this.role=this.ariaLabel?"img":null,this.ariaHidden=this.ariaLabel?"false":"true")}render(){return m`
3361
+ `],Bl=Dm;var Hl=f.constructTagName("spinner"),$m={LARGE:"large",MIDSIZE:"midsize",SMALL:"small"},zm={STANDALONE:"standalone",BUTTON:"button"},ai={VARIANT:zm.STANDALONE,SIZE:$m.MIDSIZE,INVERTED:!1};var lt=class extends v{constructor(){super(...arguments);this.inverted=ai.INVERTED;this.size=ai.SIZE;this.ariaLabel=null;this.variant=ai.VARIANT}updated(e){super.updated(e),e.has("ariaLabel")&&(this.role=this.ariaLabel?"img":null,this.ariaHidden=this.ariaLabel?"false":"true")}render(){return m`
3362
3362
  <svg part="container" viewBox="0 0 100 100">
3363
3363
  <circle part="circle" cx="50" cy="50" r="46"></circle>
3364
3364
  </svg>
3365
- `}};nt.styles=[...v.styles,...Ul],n([c({type:Boolean,reflect:!0})],nt.prototype,"inverted",2),n([c({type:String,reflect:!0})],nt.prototype,"size",2),n([c({type:String,attribute:"aria-label"})],nt.prototype,"ariaLabel",2),n([c({type:String,reflect:!0})],nt.prototype,"variant",2);var Na=nt;Na.register(Fl);var Dm=Na;var $m=[_,u`
3365
+ `}};lt.styles=[...v.styles,...Bl],n([c({type:Boolean,reflect:!0})],lt.prototype,"inverted",2),n([c({type:String,reflect:!0})],lt.prototype,"size",2),n([c({type:String,attribute:"aria-label"})],lt.prototype,"ariaLabel",2),n([c({type:String,reflect:!0})],lt.prototype,"variant",2);var _a=lt;_a.register(Hl);var Pm=_a;var Vm=[_,u`
3366
3366
 
3367
3367
  :host {
3368
3368
  --mdc-tab-content-gap: 0.5rem;
@@ -3606,7 +3606,7 @@
3606
3606
  color: var(--mdc-tab-pill-active-color-disabled);
3607
3607
  }
3608
3608
 
3609
- `,...O()],Bl=$m;var Hl=f.constructTagName("tab"),_a={GLASS:"glass",LINE:"line",PILL:"pill"},ai={VARIANT:_a.PILL,ACTIVE:!1};var lt=class extends ee(me){constructor(){super(...arguments);this.active=ai.ACTIVE;this.variant=ai.VARIANT;this.handleTabActiveChange=e=>{let r=new CustomEvent("activechange",{detail:{tabId:this.tabId,active:e},bubbles:!0});this.dispatchEvent(r)}}connectedCallback(){super.connectedCallback(),this.role="tab",this.softDisabled=void 0,this.size=void 0,this.type=void 0,this.ariaStateKey="aria-selected",!this.tabId&&this.onerror&&this.onerror("tab id is required")}modifyIconName(e){this.iconName&&(e?(this.prevIconName=this.iconName,this.iconName=`${Br(this.iconName)}-filled`):this.prevIconName&&(this.iconName=this.prevIconName))}setVariant(e){this.setAttribute("variant",Object.values(_a).includes(e)?e:ai.VARIANT)}setActive(e,r){super.setActive(e,r),this.modifyIconName(r)}executeAction(){this.handleTabActiveChange(this.active)}update(e){super.update(e),e.has("variant")&&this.setVariant(this.variant)}render(){return m`
3609
+ `,...O()],Gl=Vm;var Wl=f.constructTagName("tab"),La={GLASS:"glass",LINE:"line",PILL:"pill"},si={VARIANT:La.PILL,ACTIVE:!1};var ct=class extends ee(me){constructor(){super(...arguments);this.active=si.ACTIVE;this.variant=si.VARIANT;this.handleTabActiveChange=e=>{let r=new CustomEvent("activechange",{detail:{tabId:this.tabId,active:e},bubbles:!0});this.dispatchEvent(r)}}connectedCallback(){super.connectedCallback(),this.role="tab",this.softDisabled=void 0,this.size=void 0,this.type=void 0,this.ariaStateKey="aria-selected",!this.tabId&&this.onerror&&this.onerror("tab id is required")}modifyIconName(e){this.iconName&&(e?(this.prevIconName=this.iconName,this.iconName=`${Br(this.iconName)}-filled`):this.prevIconName&&(this.iconName=this.prevIconName))}setVariant(e){this.setAttribute("variant",Object.values(La).includes(e)?e:si.VARIANT)}setActive(e,r){super.setActive(e,r),this.modifyIconName(r)}executeAction(){this.handleTabActiveChange(this.active)}update(e){super.update(e),e.has("variant")&&this.setVariant(this.variant)}render(){return m`
3610
3610
  <div part="container">
3611
3611
  ${this.iconName?m` <mdc-icon name="${this.iconName}" size="1" length-unit="rem" part="icon"></mdc-icon>`:g}
3612
3612
  ${this.text?m` <mdc-text
@@ -3620,7 +3620,7 @@
3620
3620
  <slot name="chip"></slot>
3621
3621
  </div>
3622
3622
  <div part="indicator"></div>
3623
- `}};lt.styles=[...me.styles,...Bl],n([c({type:Boolean,reflect:!0})],lt.prototype,"active",2),n([c({type:String,reflect:!0})],lt.prototype,"text",2),n([c({type:String,reflect:!0})],lt.prototype,"variant",2),n([c({type:String,reflect:!0,attribute:"tab-id"})],lt.prototype,"tabId",2);var ce=lt;ce.register(Hl);var zm=ce;var Pm=[u`
3623
+ `}};ct.styles=[...me.styles,...Gl],n([c({type:Boolean,reflect:!0})],ct.prototype,"active",2),n([c({type:String,reflect:!0})],ct.prototype,"text",2),n([c({type:String,reflect:!0})],ct.prototype,"variant",2),n([c({type:String,reflect:!0,attribute:"tab-id"})],ct.prototype,"tabId",2);var ce=ct;ce.register(Wl);var Um=ce;var Fm=[u`
3624
3624
  :host {
3625
3625
  --mdc-textarea-disabled-border-color: var(--mds-color-theme-outline-primary-disabled);
3626
3626
  --mdc-textarea-disabled-text-color: var(--mds-color-theme-text-primary-disabled);
@@ -3741,11 +3741,11 @@
3741
3741
  pointer-events: none;
3742
3742
  }
3743
3743
 
3744
- `,...O(!0)],Gl=Pm;var Wl=f.constructTagName("textarea"),La={HARD:"hard",SOFT:"soft"},Yl={OFF:"off",ON:"on"},si={CHARACTER_COUNTER_TYPE:I.BODY_MIDSIZE_REGULAR,ROWS:5,COLS:40,WRAP:La.SOFT};var q=class extends re(P(ue)){constructor(){super(...arguments);this.readonly=!1;this.rows=si.ROWS;this.cols=si.COLS;this.wrap=La.SOFT;this.autocapitalize=Wo.OFF;this.autocomplete=Yl.OFF;this.autofocus=!1;this.characterLimitExceedingFired=!1}get textarea(){return this.inputElement}connectedCallback(){var e;super.connectedCallback(),this.value=((e=this.textContent)==null?void 0:e.trim())||this.value,this.updateComplete.then(()=>{this.textarea&&(this.textarea.checkValidity(),this.setTextareaValidity(),this.internals.setFormValue(this.textarea.value))}).catch(r=>{this.onerror&&this.onerror(r)})}setTextareaValidity(){this.requiredLabel&&this.validationMessage&&this.value===""?this.textarea.setCustomValidity(this.validationMessage):this.maxCharacterLimit&&this.value.length>this.maxCharacterLimit&&this.helpTextType===W.ERROR&&this.helpText?this.textarea.setCustomValidity(this.helpText):this.textarea.setCustomValidity(""),this.setValidity()}formResetCallback(){this.value="",this.requestUpdate()}formStateRestoreCallback(e){this.value=e}handleValueChange(){this.updateComplete.then(()=>{this.setTextareaValidity()}).catch(e=>{this.onerror&&this.onerror(e)})}updated(e){super.updated(e),e.has("value")&&(this.handleValueChange(),this.handleCharacterOverflowStateChange())}attributeChangedCallback(e,r,o){super.attributeChangedCallback(e,r,o),["maxlength","minlength","required"].includes(e)&&this.updateComplete.then(()=>{this.setTextareaValidity()}).catch(s=>{this.onerror&&this.onerror(s)})}dispatchCharacterOverflowStateChangeEvent(){this.dispatchEvent(new CustomEvent("limitexceeded",{detail:{currentCharacterCount:this.value.length,maxCharacterLimit:this.maxCharacterLimit,value:this.value},bubbles:!0,composed:!0}))}handleCharacterOverflowStateChange(){this.maxCharacterLimit&&(this.value.length>this.maxCharacterLimit&&!this.characterLimitExceedingFired?(this.dispatchCharacterOverflowStateChangeEvent(),this.characterLimitExceedingFired=!0):this.value.length<=this.maxCharacterLimit&&this.characterLimitExceedingFired&&(this.dispatchCharacterOverflowStateChangeEvent(),this.characterLimitExceedingFired=!1))}updateValue(){this.value=this.textarea.value,this.internals.setFormValue(this.textarea.value)}onChange(e){this.updateValue();let r=e.constructor;this.dispatchEvent(new r(e.type,e))}renderCharacterCounter(){return this.maxCharacterLimit?m`
3744
+ `,...O(!0)],Yl=Fm;var ql=f.constructTagName("textarea"),Ra={HARD:"hard",SOFT:"soft"},Zl={OFF:"off",ON:"on"},ni={CHARACTER_COUNTER_TYPE:I.BODY_MIDSIZE_REGULAR,ROWS:5,COLS:40,WRAP:Ra.SOFT};var q=class extends re(V(ue)){constructor(){super(...arguments);this.readonly=!1;this.rows=ni.ROWS;this.cols=ni.COLS;this.wrap=Ra.SOFT;this.autocapitalize=Yo.OFF;this.autocomplete=Zl.OFF;this.autofocus=!1;this.characterLimitExceedingFired=!1}get textarea(){return this.inputElement}connectedCallback(){var e;super.connectedCallback(),this.value=((e=this.textContent)==null?void 0:e.trim())||this.value,this.updateComplete.then(()=>{this.textarea&&(this.textarea.checkValidity(),this.setTextareaValidity(),this.internals.setFormValue(this.textarea.value))}).catch(r=>{this.onerror&&this.onerror(r)})}setTextareaValidity(){this.requiredLabel&&this.validationMessage&&this.value===""?this.textarea.setCustomValidity(this.validationMessage):this.maxCharacterLimit&&this.value.length>this.maxCharacterLimit&&this.helpTextType===W.ERROR&&this.helpText?this.textarea.setCustomValidity(this.helpText):this.textarea.setCustomValidity(""),this.setValidity()}formResetCallback(){this.value="",this.requestUpdate()}formStateRestoreCallback(e){this.value=e}handleValueChange(){this.updateComplete.then(()=>{this.setTextareaValidity()}).catch(e=>{this.onerror&&this.onerror(e)})}updated(e){super.updated(e),e.has("value")&&(this.handleValueChange(),this.handleCharacterOverflowStateChange())}attributeChangedCallback(e,r,o){super.attributeChangedCallback(e,r,o),["maxlength","minlength","required"].includes(e)&&this.updateComplete.then(()=>{this.setTextareaValidity()}).catch(s=>{this.onerror&&this.onerror(s)})}dispatchCharacterOverflowStateChangeEvent(){this.dispatchEvent(new CustomEvent("limitexceeded",{detail:{currentCharacterCount:this.value.length,maxCharacterLimit:this.maxCharacterLimit,value:this.value},bubbles:!0,composed:!0}))}handleCharacterOverflowStateChange(){this.maxCharacterLimit&&(this.value.length>this.maxCharacterLimit&&!this.characterLimitExceedingFired?(this.dispatchCharacterOverflowStateChangeEvent(),this.characterLimitExceedingFired=!0):this.value.length<=this.maxCharacterLimit&&this.characterLimitExceedingFired&&(this.dispatchCharacterOverflowStateChangeEvent(),this.characterLimitExceedingFired=!1))}updateValue(){this.value=this.textarea.value,this.internals.setFormValue(this.textarea.value)}onChange(e){this.updateValue();let r=e.constructor;this.dispatchEvent(new r(e.type,e))}renderCharacterCounter(){return this.maxCharacterLimit?m`
3745
3745
  <mdc-text
3746
3746
  part="character-counter"
3747
3747
  tagname="span"
3748
- type=${si.CHARACTER_COUNTER_TYPE}
3748
+ type=${ni.CHARACTER_COUNTER_TYPE}
3749
3749
  >
3750
3750
  ${this.value.length<10?`0${this.value.length}`:this.value.length}/${this.maxCharacterLimit}
3751
3751
  </mdc-text>
@@ -3778,12 +3778,12 @@
3778
3778
  dirname=${T(this.dirname)}
3779
3779
  @input=${this.updateValue}
3780
3780
  @change=${this.onChange}
3781
- aria-describedby="${T(this.helpText?V.HELPER_TEXT_ID:"")}"
3781
+ aria-describedby="${T(this.helpText?P.HELPER_TEXT_ID:"")}"
3782
3782
  aria-invalid="${this.helpTextType==="error"?"true":"false"}"
3783
3783
  ></textarea>
3784
3784
  </div>
3785
3785
  ${this.renderTextareaFooter()}
3786
- `}};q.styles=[...ue.styles,...Gl],n([c({type:String})],q.prototype,"placeholder",2),n([c({type:Boolean})],q.prototype,"readonly",2),n([c({type:Number})],q.prototype,"rows",2),n([c({type:Number})],q.prototype,"cols",2),n([c({type:String})],q.prototype,"wrap",2),n([c({type:String})],q.prototype,"autocapitalize",2),n([c({type:String})],q.prototype,"autocomplete",2),n([c({type:Boolean})],q.prototype,"autofocus",2),n([c({type:String})],q.prototype,"dirname",2),n([c({type:Number})],q.prototype,"maxlength",2),n([c({type:Number})],q.prototype,"minlength",2),n([c({type:Number,attribute:"max-character-limit"})],q.prototype,"maxCharacterLimit",2),n([$e("textarea")],q.prototype,"inputElement",2);var Ra=q;Ra.register(Wl);var Vm=Ra;var ni=f.constructTagName("themeprovider"),Oa={THEMECLASS:"mds-theme-stable-darkWebex"};var li=class{constructor(t){this.themeclass=t}};li.context=ni;var ci=li;var Um=u`
3786
+ `}};q.styles=[...ue.styles,...Yl],n([c({type:String})],q.prototype,"placeholder",2),n([c({type:Boolean})],q.prototype,"readonly",2),n([c({type:Number})],q.prototype,"rows",2),n([c({type:Number})],q.prototype,"cols",2),n([c({type:String})],q.prototype,"wrap",2),n([c({type:String})],q.prototype,"autocapitalize",2),n([c({type:String})],q.prototype,"autocomplete",2),n([c({type:Boolean})],q.prototype,"autofocus",2),n([c({type:String})],q.prototype,"dirname",2),n([c({type:Number})],q.prototype,"maxlength",2),n([c({type:Number})],q.prototype,"minlength",2),n([c({type:Number,attribute:"max-character-limit"})],q.prototype,"maxCharacterLimit",2),n([$e("textarea")],q.prototype,"inputElement",2);var Oa=q;Oa.register(ql);var Bm=Oa;var li=f.constructTagName("themeprovider"),Ma={THEMECLASS:"mds-theme-stable-darkWebex"};var ci=class{constructor(t){this.themeclass=t}};ci.context=li;var di=ci;var Hm=u`
3787
3787
  :host {
3788
3788
  --mdc-themeprovider-color-default: var(--mds-color-theme-text-primary-normal);
3789
3789
  --mdc-themeprovider-font-family: var(--mds-font-family-primary);
@@ -3812,7 +3812,7 @@
3812
3812
  * {
3813
3813
  scrollbar-color: var(--mdc-themeprovider-scrollbar-thumb-color) var(--mdc-themeprovider-scrollbar-track-color);
3814
3814
  }
3815
- `,ql=[Um];var yr=class extends Wt{constructor(){super({context:ci.context,initialValue:new ci(Oa.THEMECLASS)});this.themeclass=Oa.THEMECLASS}static get Context(){return ci.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(" "))}};yr.styles=[...Wt.styles,...ql],n([N()],yr.prototype,"currentThemeClass",2),n([c({type:String})],yr.prototype,"themeclass",2);var Ma=yr;Ma.register(ni);var Fm=Ma;var Zl=f.constructTagName("toggle"),Da={DEFAULT:"default",COMPACT:"compact"};var $a={SIZE:Da.DEFAULT,VALIDATION_MESSAGE:"Please toggle this switch if you want to proceed."};var Bm=[_,u`
3815
+ `,Xl=[Hm];var yr=class extends Yt{constructor(){super({context:di.context,initialValue:new di(Ma.THEMECLASS)});this.themeclass=Ma.THEMECLASS}static get Context(){return di.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(" "))}};yr.styles=[...Yt.styles,...Xl],n([N()],yr.prototype,"currentThemeClass",2),n([c({type:String})],yr.prototype,"themeclass",2);var Da=yr;Da.register(li);var Gm=Da;var Kl=f.constructTagName("toggle"),$a={DEFAULT:"default",COMPACT:"compact"};var za={SIZE:$a.DEFAULT,VALIDATION_MESSAGE:"Please toggle this switch if you want to proceed."};var Wm=[_,u`
3816
3816
  :host {
3817
3817
  --mdc-toggle-width: 3rem;
3818
3818
  --mdc-toggle-height: 1.5rem;
@@ -3894,7 +3894,7 @@
3894
3894
  :host([disabled]) .mdc-label-text, :host([disabled]) .mdc-help-text {
3895
3895
  color: var(--mdc-toggle-label-color-disabled);
3896
3896
  }
3897
- `,...O(!0)],Xl=Bm;var $t=class extends re(P(ue)){constructor(){super(...arguments);this.checked=!1;this.size=$a.SIZE;this.autofocus=!1}connectedCallback(){super.connectedCallback(),this.helpTextType=void 0}formResetCallback(){this.checked=!1}formStateRestoreCallback(e){e&&(this.checked=!0)}manageRequired(){!this.checked&&this.requiredLabel?(this.validationMessage?this.inputElement.setCustomValidity(this.validationMessage):this.inputElement.setCustomValidity(""),this.setValidity()):this.internals.setValidity({})}setFormValue(){let e=null;this.checked?e=this.value?this.value:"isActive":e=null,this.manageRequired(),this.internals.setFormValue(e)}toggleState(){this.disabled||(this.checked=!this.checked)}handleKeyDown(e){var r;e.key==="Enter"&&((r=this.form)==null||r.requestSubmit())}handleChange(e){this.toggleState();let r=e.constructor;this.dispatchEvent(new r(e.type,e))}setToggleSize(e){this.setAttribute("size",Object.values(Da).includes(e)?e:$a.SIZE)}update(e){super.update(e),e.has("checked")&&this.setFormValue(),e.has("size")&&this.setToggleSize(this.size)}render(){var e;return m`
3897
+ `,...O(!0)],jl=Wm;var zt=class extends re(V(ue)){constructor(){super(...arguments);this.checked=!1;this.size=za.SIZE;this.autofocus=!1}connectedCallback(){super.connectedCallback(),this.helpTextType=void 0}formResetCallback(){this.checked=!1}formStateRestoreCallback(e){e&&(this.checked=!0)}manageRequired(){!this.checked&&this.requiredLabel?(this.validationMessage?this.inputElement.setCustomValidity(this.validationMessage):this.inputElement.setCustomValidity(""),this.setValidity()):this.internals.setValidity({})}setFormValue(){let e=null;this.checked?e=this.value?this.value:"isActive":e=null,this.manageRequired(),this.internals.setFormValue(e)}toggleState(){this.disabled||(this.checked=!this.checked)}handleKeyDown(e){var r;e.key==="Enter"&&((r=this.form)==null||r.requestSubmit())}handleChange(e){this.toggleState();let r=e.constructor;this.dispatchEvent(new r(e.type,e))}setToggleSize(e){this.setAttribute("size",Object.values($a).includes(e)?e:za.SIZE)}update(e){super.update(e),e.has("checked")&&this.setFormValue(),e.has("size")&&this.setToggleSize(this.size)}render(){var e;return m`
3898
3898
  <mdc-statictoggle
3899
3899
  ?checked="${this.checked}"
3900
3900
  ?disabled="${this.disabled}"
@@ -3914,7 +3914,7 @@
3914
3914
  .checked="${this.checked}"
3915
3915
  aria-checked="${this.checked}"
3916
3916
  .disabled="${this.disabled}"
3917
- aria-describedby="${T(this.helpText?V.HELPER_TEXT_ID:"")}"
3917
+ aria-describedby="${T(this.helpText?P.HELPER_TEXT_ID:"")}"
3918
3918
  aria-label="${(e=this.dataAriaLabel)!=null?e:""}"
3919
3919
  tabindex="${this.disabled?-1:0}"
3920
3920
  @change="${this.handleChange}"
@@ -3923,7 +3923,7 @@
3923
3923
  </mdc-statictoggle>
3924
3924
  ${this.renderLabel()}
3925
3925
  ${this.renderHelperText()}
3926
- `}};$t.styles=[...ue.styles,...Xl],n([c({type:Boolean,reflect:!0})],$t.prototype,"checked",2),n([c({type:String,reflect:!0})],$t.prototype,"size",2),n([c({type:Boolean,reflect:!0})],$t.prototype,"autofocus",2);var za=$t;za.register(Zl);var Hm=za;var Kl=f.constructTagName("toggletip"),zt={CLOSE_BUTTON:!0,CLOSE_BUTTON_ARIA_LABEL:"Close",OFFSET:4,PLACEMENT:ne.TOP,CLICK:It.CLICK,SHOW_ARROW:!0};var Gm=u`
3926
+ `}};zt.styles=[...ue.styles,...jl],n([c({type:Boolean,reflect:!0})],zt.prototype,"checked",2),n([c({type:String,reflect:!0})],zt.prototype,"size",2),n([c({type:Boolean,reflect:!0})],zt.prototype,"autofocus",2);var Pa=zt;Pa.register(Kl);var Ym=Pa;var Ql=f.constructTagName("toggletip"),Pt={CLOSE_BUTTON:!0,CLOSE_BUTTON_ARIA_LABEL:"Close",OFFSET:4,PLACEMENT:ne.TOP,CLICK:wt.CLICK,SHOW_ARROW:!0};var qm=u`
3927
3927
  :host {
3928
3928
  --mdc-toggletip-max-width: 400px;
3929
3929
  --mdc-toggletip-text-color: var(--mds-color-theme-text-primary-normal);
@@ -3945,17 +3945,17 @@
3945
3945
  :host([color='contrast'])::part(popover-content) {
3946
3946
  color: var(--mdc-toggletip-text-color-contrast);
3947
3947
  }
3948
- `,jl=[Gm];var Pt=class extends Te{constructor(){super(...arguments);this.currentAnnouncement="";this.screenreaderAnnouncerIdentity=""}connectedCallback(){super.connectedCallback(),this.closeButton=zt.CLOSE_BUTTON,this.closeButtonAriaLabel=zt.CLOSE_BUTTON_ARIA_LABEL,this.placement=zt.PLACEMENT,this.trigger=zt.CLICK,this.showArrow=zt.SHOW_ARROW,this.interactive=!0,this.backdrop=!0,this.hideOnBlur=!0,this.hideOnEscape=!0,this.hideOnOutsideClick=!0,this.disableAriaExpanded=!1,this.focusBackToTrigger=!0}getToggleTipText(){var e,r;return((r=(e=this.defaultSlotNodes)==null?void 0:e.map(o=>o.textContent).join(" "))==null?void 0:r.trim())||""}onPlacementUpdated(){Object.values(ne).includes(this.placement)||(this.placement=zt.PLACEMENT)}update(e){super.update(e),e.has("placement")&&this.onPlacementUpdated(),e.has("visible")&&(this.currentAnnouncement=this.visible?this.getToggleTipText():"")}render(){return m`
3948
+ `,Jl=[qm];var Vt=class extends Te{constructor(){super(...arguments);this.currentAnnouncement="";this.screenreaderAnnouncerIdentity=""}connectedCallback(){super.connectedCallback(),this.closeButton=Pt.CLOSE_BUTTON,this.closeButtonAriaLabel=Pt.CLOSE_BUTTON_ARIA_LABEL,this.placement=Pt.PLACEMENT,this.trigger=Pt.CLICK,this.showArrow=Pt.SHOW_ARROW,this.interactive=!0,this.backdrop=!0,this.hideOnBlur=!0,this.hideOnEscape=!0,this.hideOnOutsideClick=!0,this.disableAriaExpanded=!1,this.focusBackToTrigger=!0}getToggleTipText(){var e,r;return((r=(e=this.defaultSlotNodes)==null?void 0:e.map(o=>o.textContent).join(" "))==null?void 0:r.trim())||""}onPlacementUpdated(){Object.values(ne).includes(this.placement)||(this.placement=Pt.PLACEMENT)}update(e){super.update(e),e.has("placement")&&this.onPlacementUpdated(),e.has("visible")&&(this.currentAnnouncement=this.visible?this.getToggleTipText():"")}render(){return m`
3949
3949
  ${super.render()}
3950
3950
  <mdc-screenreaderannouncer
3951
3951
  identity="${this.screenreaderAnnouncerIdentity}"
3952
3952
  announcement="${this.currentAnnouncement}"
3953
3953
  delay="300">
3954
3954
  </mdc-screenreaderannouncer>
3955
- `}};Pt.styles=[...Te.styles,...jl],n([vo()],Pt.prototype,"defaultSlotNodes",2),n([N()],Pt.prototype,"currentAnnouncement",2),n([c({type:String,reflect:!0,attribute:"screenreader-announcer-identity"})],Pt.prototype,"screenreaderAnnouncerIdentity",2);var Pa=Pt;Pa.register(Kl);var Wm=Pa;function Vt(i,t,e){var a;let r=(a=e.initialDeps)!=null?a:[],o;return()=>{var s,l,d,p;let h;e.key&&((s=e.debug)!=null&&s.call(e))&&(h=Date.now());let b=i();if(!(b.length!==r.length||b.some((E,A)=>r[A]!==E)))return o;r=b;let y;if(e.key&&((l=e.debug)!=null&&l.call(e))&&(y=Date.now()),o=t(...b),e.key&&((d=e.debug)!=null&&d.call(e))){let E=Math.round((Date.now()-h)*100)/100,A=Math.round((Date.now()-y)*100)/100,w=A/16,S=(C,R)=>{for(C=String(C);C.length<R;)C=" "+C;return C};console.info(`%c\u23F1 ${S(A,5)} /${S(E,5)} ms`,`
3955
+ `}};Vt.styles=[...Te.styles,...Jl],n([go()],Vt.prototype,"defaultSlotNodes",2),n([N()],Vt.prototype,"currentAnnouncement",2),n([c({type:String,reflect:!0,attribute:"screenreader-announcer-identity"})],Vt.prototype,"screenreaderAnnouncerIdentity",2);var Va=Vt;Va.register(Ql);var Zm=Va;function Ut(i,t,e){var a;let r=(a=e.initialDeps)!=null?a:[],o;return()=>{var s,l,d,p;let h;e.key&&((s=e.debug)!=null&&s.call(e))&&(h=Date.now());let b=i();if(!(b.length!==r.length||b.some((E,A)=>r[A]!==E)))return o;r=b;let y;if(e.key&&((l=e.debug)!=null&&l.call(e))&&(y=Date.now()),o=t(...b),e.key&&((d=e.debug)!=null&&d.call(e))){let E=Math.round((Date.now()-h)*100)/100,A=Math.round((Date.now()-y)*100)/100,w=A/16,S=(C,R)=>{for(C=String(C);C.length<R;)C=" "+C;return C};console.info(`%c\u23F1 ${S(A,5)} /${S(E,5)} ms`,`
3956
3956
  font-size: .6rem;
3957
3957
  font-weight: bold;
3958
- color: hsl(${Math.max(0,Math.min(120-120*w,120))}deg 100% 31%);`,e==null?void 0:e.key)}return(p=e==null?void 0:e.onChange)==null||p.call(e,o),o}}function di(i,t){if(i===void 0)throw new Error(`Unexpected undefined${t?`: ${t}`:""}`);return i}var Ql=(i,t)=>Math.abs(i-t)<1,Jl=(i,t,e)=>{let r;return function(...o){i.clearTimeout(r),r=i.setTimeout(()=>t.apply(this,o),e)}};var Ym=i=>i,qm=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},tc=(i,t)=>{let e=i.scrollElement;if(!e)return;let r=i.targetWindow;if(!r)return;let o=s=>{let{width:l,height:d}=s;t({width:Math.round(l),height:Math.round(d)})};if(o(e.getBoundingClientRect()),!r.ResizeObserver)return()=>{};let a=new r.ResizeObserver(s=>{let l=s[0];if(l!=null&&l.borderBoxSize){let d=l.borderBoxSize[0];if(d){o({width:d.inlineSize,height:d.blockSize});return}}o(e.getBoundingClientRect())});return a.observe(e,{box:"border-box"}),()=>{a.unobserve(e)}},ec={passive:!0};var Zm=typeof window>"u"?!0:"onscrollend"in window,rc=(i,t)=>{let e=i.scrollElement;if(!e)return;let r=i.targetWindow;if(!r)return;let o=0,a=i.options.useScrollendEvent&&Zm?()=>{}:Jl(r,()=>{t(o,!1)},i.options.isScrollingResetDelay),s=p=>()=>{let{horizontal:h,isRtl:b}=i.options;o=h?e.scrollLeft*(b&&-1||1):e.scrollTop,a(),t(o,p)},l=s(!0),d=s(!1);return d(),e.addEventListener("scroll",l,ec),e.addEventListener("scrollend",d,ec),()=>{e.removeEventListener("scroll",l),e.removeEventListener("scrollend",d)}};var Xm=(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 oc=(i,{adjustments:t=0,behavior:e},r)=>{var o,a;let s=i+t;(a=(o=r.scrollElement)==null?void 0:o.scrollTo)==null||a.call(o,{[r.options.horizontal?"left":"top"]:s,behavior:e})},mi=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(a=>{this._measureElement(a.target,a)})}));return{disconnect:()=>{var o;(o=r())==null||o.disconnect(),e=null},observe:o=>{var a;return(a=r())==null?void 0:a.observe(o,{box:"border-box"})},unobserve:o=>{var a;return(a=r())==null?void 0:a.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:Ym,rangeExtractor:qm,onChange:()=>{},measureElement:Xm,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=Vt(()=>(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(a=>{this.observer.observe(a)}),this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0}),this.unsubs.push(this.options.observeElementRect(this,a=>{this.scrollRect=a,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(a,s)=>{this.scrollAdjustments=0,this.scrollDirection=s?this.getScrollOffset()<a?"forward":"backward":null,this.scrollOffset=a,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,a=new Map;for(let s=r-1;s>=0;s--){let l=e[s];if(o.has(l.lane))continue;let d=a.get(l.lane);if(d==null||l.end>d.end?a.set(l.lane,l):l.end<d.end&&o.set(l.lane,!0),o.size===this.options.lanes)break}return a.size===this.options.lanes?Array.from(a.values()).sort((s,l)=>s.end===l.end?s.index-l.index:s.end-l.end)[0]:void 0},this.getMeasurementOptions=Vt(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled],(e,r,o,a,s)=>(this.pendingMeasuredCacheIndexes=[],{count:e,paddingStart:r,scrollMargin:o,getItemKey:a,enabled:s}),{key:!1}),this.getMeasurements=Vt(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:e,paddingStart:r,scrollMargin:o,getItemKey:a,enabled:s},l)=>{if(!s)return this.measurementsCache=[],this.itemSizeCache.clear(),[];this.measurementsCache.length===0&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(h=>{this.itemSizeCache.set(h.key,h.size)}));let d=this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[];let p=this.measurementsCache.slice(0,d);for(let h=d;h<e;h++){let b=a(h),x=this.options.lanes===1?p[h-1]:this.getFurthestMeasurement(p,h),y=x?x.end+this.options.gap:r+o,E=l.get(b),A=typeof E=="number"?E:this.options.estimateSize(h),w=y+A,S=x?x.lane:h%this.options.lanes;p[h]={index:h,start:y,size:A,end:w,key:b,lane:S}}return this.measurementsCache=p,p},{key:!1,debug:()=>this.options.debug}),this.calculateRange=Vt(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset()],(e,r,o)=>this.range=e.length>0&&r>0?Km({measurements:e,outerSize:r,scrollOffset:o}):null,{key:!1,debug:()=>this.options.debug}),this.getIndexes=Vt(()=>{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,a,s)=>a===null||s===null?[]:e({startIndex:a,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),a=this.measurementsCache[o];if(!a)return;let s=a.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 a=(l=this.itemSizeCache.get(o.key))!=null?l:o.size,s=r-a;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=Vt(()=>[this.getIndexes(),this.getMeasurements()],(e,r)=>{let o=[];for(let a=0,s=e.length;a<s;a++){let l=e[a],d=r[l];o.push(d)}return o},{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=e=>{let r=this.getMeasurements();if(r.length!==0)return di(r[ic(0,r.length-1,o=>di(r[o]).start,e)])},this.getOffsetForAlignment=(e,r)=>{let o=this.getSize(),a=this.getScrollOffset();r==="auto"&&e>=a+o&&(r="end"),r==="end"&&(e-=o);let s=this.options.horizontal?"scrollWidth":"scrollHeight",d=(this.scrollElement?"document"in this.scrollElement?this.scrollElement.document.documentElement[s]:this.scrollElement[s]:0)-o;return Math.max(Math.min(d,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 a=this.getSize(),s=this.getScrollOffset();if(r==="auto")if(o.end>=s+a-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-a)/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 a=this.getOffsetForIndex(e,r);if(!a)return;let[s,l]=a;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[p]=di(this.getOffsetForIndex(e,l));Ql(p,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 a;var e;let r=this.getMeasurements(),o;return r.length===0?o=this.options.paddingStart:o=this.options.lanes===1?(a=(e=r[r.length-1])==null?void 0:e.end)!=null?a: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)}},ic=(i,t,e,r)=>{for(;i<=t;){let o=(i+t)/2|0,a=e(o);if(a<r)i=o+1;else if(a>r)t=o-1;else return o}return i>0?i-1:0};function Km({measurements:i,outerSize:t,scrollOffset:e}){let r=i.length-1,a=ic(0,r,l=>i[l].start,e),s=a;for(;s<r&&i[s].end<e+t;)s++;return{startIndex:a,endIndex:s}}var Va=class{constructor(t,e){this.cleanup=()=>{},(this.host=t).addController(this);let r={...e,onChange:(o,a)=>{var s;this.host.updateComplete.then(()=>this.host.requestUpdate()),(s=e.onChange)==null||s.call(e,o,a)}};this.virtualizer=new mi(r)}getVirtualizer(){return this.virtualizer}async hostConnected(){this.cleanup=this.virtualizer._didMount()}hostUpdated(){this.virtualizer._willUpdate()}hostDisconnected(){this.cleanup()}},pi=class extends Va{constructor(t,e){super(t,{observeElementRect:tc,observeElementOffset:rc,scrollToFn:oc,...e})}};var{I:rR}=ms;var ac=i=>i.strings===void 0;var io=(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),io(o,t);return!0},hi=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)},sc=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),Jm(t)}};function jm(i){this._$AN!==void 0?(hi(this),this._$AM=i,sc(this)):this._$AM=i}function Qm(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 a=e;a<r.length;a++)io(r[a],!1),hi(r[a]);else r!=null&&(io(r,!1),hi(r));else io(this,i)}var Jm=i=>{var t,e;i.type==ko.CHILD&&((t=i._$AP)!=null||(i._$AP=Qm),(e=i._$AQ)!=null||(i._$AQ=jm))},ui=class extends tr{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,e,r){super._$AT(t,e,r),sc(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&&(io(this,t),hi(this))}setValue(t){if(ac(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 nc=()=>new Fa,Fa=class{},Ua=new WeakMap,lc=Vr(class extends ui{render(i){return g}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)),g}rt(i){var t;if(this.isConnected||(i=void 0),typeof this.Y=="function"){let e=(t=this.ht)!=null?t:globalThis,r=Ua.get(e);r===void 0&&(r=new WeakMap,Ua.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=Ua.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 ep=[u`
3958
+ color: hsl(${Math.max(0,Math.min(120-120*w,120))}deg 100% 31%);`,e==null?void 0:e.key)}return(p=e==null?void 0:e.onChange)==null||p.call(e,o),o}}function mi(i,t){if(i===void 0)throw new Error(`Unexpected undefined${t?`: ${t}`:""}`);return i}var ec=(i,t)=>Math.abs(i-t)<1,tc=(i,t,e)=>{let r;return function(...o){i.clearTimeout(r),r=i.setTimeout(()=>t.apply(this,o),e)}};var Xm=i=>i,Km=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},oc=(i,t)=>{let e=i.scrollElement;if(!e)return;let r=i.targetWindow;if(!r)return;let o=s=>{let{width:l,height:d}=s;t({width:Math.round(l),height:Math.round(d)})};if(o(e.getBoundingClientRect()),!r.ResizeObserver)return()=>{};let a=new r.ResizeObserver(s=>{let l=s[0];if(l!=null&&l.borderBoxSize){let d=l.borderBoxSize[0];if(d){o({width:d.inlineSize,height:d.blockSize});return}}o(e.getBoundingClientRect())});return a.observe(e,{box:"border-box"}),()=>{a.unobserve(e)}},rc={passive:!0};var jm=typeof window>"u"?!0:"onscrollend"in window,ic=(i,t)=>{let e=i.scrollElement;if(!e)return;let r=i.targetWindow;if(!r)return;let o=0,a=i.options.useScrollendEvent&&jm?()=>{}:tc(r,()=>{t(o,!1)},i.options.isScrollingResetDelay),s=p=>()=>{let{horizontal:h,isRtl:b}=i.options;o=h?e.scrollLeft*(b&&-1||1):e.scrollTop,a(),t(o,p)},l=s(!0),d=s(!1);return d(),e.addEventListener("scroll",l,rc),e.addEventListener("scrollend",d,rc),()=>{e.removeEventListener("scroll",l),e.removeEventListener("scrollend",d)}};var Qm=(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 ac=(i,{adjustments:t=0,behavior:e},r)=>{var o,a;let s=i+t;(a=(o=r.scrollElement)==null?void 0:o.scrollTo)==null||a.call(o,{[r.options.horizontal?"left":"top"]:s,behavior:e})},pi=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(a=>{this._measureElement(a.target,a)})}));return{disconnect:()=>{var o;(o=r())==null||o.disconnect(),e=null},observe:o=>{var a;return(a=r())==null?void 0:a.observe(o,{box:"border-box"})},unobserve:o=>{var a;return(a=r())==null?void 0:a.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:Xm,rangeExtractor:Km,onChange:()=>{},measureElement:Qm,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=Ut(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),e=>{this.notify(e)},{key:!1,debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(e=>e()),this.unsubs=[],this.observer.disconnect(),this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var 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(a=>{this.observer.observe(a)}),this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0}),this.unsubs.push(this.options.observeElementRect(this,a=>{this.scrollRect=a,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(a,s)=>{this.scrollAdjustments=0,this.scrollDirection=s?this.getScrollOffset()<a?"forward":"backward":null,this.scrollOffset=a,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,a=new Map;for(let s=r-1;s>=0;s--){let l=e[s];if(o.has(l.lane))continue;let d=a.get(l.lane);if(d==null||l.end>d.end?a.set(l.lane,l):l.end<d.end&&o.set(l.lane,!0),o.size===this.options.lanes)break}return a.size===this.options.lanes?Array.from(a.values()).sort((s,l)=>s.end===l.end?s.index-l.index:s.end-l.end)[0]:void 0},this.getMeasurementOptions=Ut(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled],(e,r,o,a,s)=>(this.pendingMeasuredCacheIndexes=[],{count:e,paddingStart:r,scrollMargin:o,getItemKey:a,enabled:s}),{key:!1}),this.getMeasurements=Ut(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:e,paddingStart:r,scrollMargin:o,getItemKey:a,enabled:s},l)=>{if(!s)return this.measurementsCache=[],this.itemSizeCache.clear(),[];this.measurementsCache.length===0&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(h=>{this.itemSizeCache.set(h.key,h.size)}));let d=this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[];let p=this.measurementsCache.slice(0,d);for(let h=d;h<e;h++){let b=a(h),x=this.options.lanes===1?p[h-1]:this.getFurthestMeasurement(p,h),y=x?x.end+this.options.gap:r+o,E=l.get(b),A=typeof E=="number"?E:this.options.estimateSize(h),w=y+A,S=x?x.lane:h%this.options.lanes;p[h]={index:h,start:y,size:A,end:w,key:b,lane:S}}return this.measurementsCache=p,p},{key:!1,debug:()=>this.options.debug}),this.calculateRange=Ut(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset()],(e,r,o)=>this.range=e.length>0&&r>0?Jm({measurements:e,outerSize:r,scrollOffset:o}):null,{key:!1,debug:()=>this.options.debug}),this.getIndexes=Ut(()=>{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,a,s)=>a===null||s===null?[]:e({startIndex:a,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),a=this.measurementsCache[o];if(!a)return;let s=a.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 a=(l=this.itemSizeCache.get(o.key))!=null?l:o.size,s=r-a;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=Ut(()=>[this.getIndexes(),this.getMeasurements()],(e,r)=>{let o=[];for(let a=0,s=e.length;a<s;a++){let l=e[a],d=r[l];o.push(d)}return o},{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=e=>{let r=this.getMeasurements();if(r.length!==0)return mi(r[sc(0,r.length-1,o=>mi(r[o]).start,e)])},this.getOffsetForAlignment=(e,r)=>{let o=this.getSize(),a=this.getScrollOffset();r==="auto"&&e>=a+o&&(r="end"),r==="end"&&(e-=o);let s=this.options.horizontal?"scrollWidth":"scrollHeight",d=(this.scrollElement?"document"in this.scrollElement?this.scrollElement.document.documentElement[s]:this.scrollElement[s]:0)-o;return Math.max(Math.min(d,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 a=this.getSize(),s=this.getScrollOffset();if(r==="auto")if(o.end>=s+a-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-a)/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 a=this.getOffsetForIndex(e,r);if(!a)return;let[s,l]=a;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[p]=mi(this.getOffsetForIndex(e,l));ec(p,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 a;var e;let r=this.getMeasurements(),o;return r.length===0?o=this.options.paddingStart:o=this.options.lanes===1?(a=(e=r[r.length-1])==null?void 0:e.end)!=null?a: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)}},sc=(i,t,e,r)=>{for(;i<=t;){let o=(i+t)/2|0,a=e(o);if(a<r)i=o+1;else if(a>r)t=o-1;else return o}return i>0?i-1:0};function Jm({measurements:i,outerSize:t,scrollOffset:e}){let r=i.length-1,a=sc(0,r,l=>i[l].start,e),s=a;for(;s<r&&i[s].end<e+t;)s++;return{startIndex:a,endIndex:s}}var Ua=class{constructor(t,e){this.cleanup=()=>{},(this.host=t).addController(this);let r={...e,onChange:(o,a)=>{var s;this.host.updateComplete.then(()=>this.host.requestUpdate()),(s=e.onChange)==null||s.call(e,o,a)}};this.virtualizer=new pi(r)}getVirtualizer(){return this.virtualizer}async hostConnected(){this.cleanup=this.virtualizer._didMount()}hostUpdated(){this.virtualizer._willUpdate()}hostDisconnected(){this.cleanup()}},hi=class extends Ua{constructor(t,e){super(t,{observeElementRect:oc,observeElementOffset:ic,scrollToFn:ac,...e})}};var{I:iR}=hs;var nc=i=>i.strings===void 0;var ao=(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),ao(o,t);return!0},ui=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)},lc=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),rp(t)}};function ep(i){this._$AN!==void 0?(ui(this),this._$AM=i,lc(this)):this._$AM=i}function tp(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 a=e;a<r.length;a++)ao(r[a],!1),ui(r[a]);else r!=null&&(ao(r,!1),ui(r));else ao(this,i)}var rp=i=>{var t,e;i.type==No.CHILD&&((t=i._$AP)!=null||(i._$AP=tp),(e=i._$AQ)!=null||(i._$AQ=ep))},fi=class extends rr{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,e,r){super._$AT(t,e,r),lc(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&&(ao(this,t),ui(this))}setValue(t){if(nc(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 cc=()=>new Ba,Ba=class{},Fa=new WeakMap,dc=Vr(class extends fi{render(i){return g}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)),g}rt(i){var t;if(this.isConnected||(i=void 0),typeof this.Y=="function"){let e=(t=this.ht)!=null?t:globalThis,r=Fa.get(e);r===void 0&&(r=new WeakMap,Fa.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=Fa.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 op=[u`
3959
3959
  :host::part(scroll) {
3960
3960
  height: 100%;
3961
3961
  width: 100%;
@@ -3965,19 +3965,19 @@
3965
3965
  position: relative;
3966
3966
  width: 100%;
3967
3967
  }
3968
- `],cc=ep;var dc=f.constructTagName("virtualizedlist"),gR=f.constructTagName("virtualizedwrapper"),mc={VIRTUALIZER_PROPS:{count:0,estimateSize:()=>0}};var Ut=class extends v{constructor(){super();this.virtualizerProps=mc.VIRTUALIZER_PROPS;this.scrollElementRef=nc();this.virtualItems=[];this.virtualizerController=null,this.virtualizer=null,this.setlistdata=null,this.onscroll=null}update(e){super.update(e),e.get("virtualizerProps")&&this.setVirtualizerOptions()}firstUpdated(e){super.firstUpdated(e),this.setVirtualizerOptions()}setVirtualizerOptions(){var e;(e=this.virtualizer)==null||e.setOptions({...this.virtualizer.options,...this.virtualizerProps}),this.requestUpdate()}connectedCallback(){var e;this.virtualizerController=new pi(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 l,d;this.virtualizer=e.getVirtualizer();let{getTotalSize:r,getVirtualItems:o,measureElement:a}=this.virtualizer,s=o();if(s!==this.virtualItems){this.virtualItems=s;let p=o(),h={position:"absolute",top:0,left:0,width:"100%",transform:`translateY(${(d=(l=p[0])==null?void 0:l.start)!=null?d:0}px)`};this.setlistdata&&this.setlistdata({virtualItems:p,measureElement:a,listStyle:h})}return m`<div
3968
+ `],mc=op;var pc=f.constructTagName("virtualizedlist"),xR=f.constructTagName("virtualizedwrapper"),hc={VIRTUALIZER_PROPS:{count:0,estimateSize:()=>0}};var Ft=class extends v{constructor(){super();this.virtualizerProps=hc.VIRTUALIZER_PROPS;this.scrollElementRef=cc();this.virtualItems=[];this.virtualizerController=null,this.virtualizer=null,this.setlistdata=null,this.onscroll=null}update(e){super.update(e),e.get("virtualizerProps")&&this.setVirtualizerOptions()}firstUpdated(e){super.firstUpdated(e),this.setVirtualizerOptions()}setVirtualizerOptions(){var e;(e=this.virtualizer)==null||e.setOptions({...this.virtualizer.options,...this.virtualizerProps}),this.requestUpdate()}connectedCallback(){var e;this.virtualizerController=new hi(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 l,d;this.virtualizer=e.getVirtualizer();let{getTotalSize:r,getVirtualItems:o,measureElement:a}=this.virtualizer,s=o();if(s!==this.virtualItems){this.virtualItems=s;let p=o(),h={position:"absolute",top:0,left:0,width:"100%",transform:`translateY(${(d=(l=p[0])==null?void 0:l.start)!=null?d:0}px)`};this.setlistdata&&this.setlistdata({virtualItems:p,measureElement:a,listStyle:h})}return m`<div
3969
3969
  part="container"
3970
3970
  style="height: ${r()}px;"
3971
3971
  >
3972
3972
  <slot></slot>
3973
3973
  </div>`}render(){return m`<div
3974
- ${lc(this.scrollElementRef)}
3974
+ ${dc(this.scrollElementRef)}
3975
3975
  part="scroll"
3976
3976
  @scroll=${this.onscroll&&this.onscroll}
3977
3977
  >
3978
3978
  ${this.virtualizerController?this.getVirtualizedListWrapper(this.virtualizerController):m``}
3979
3979
  </div>
3980
- `}};Ut.styles=[...v.styles,...cc],n([c({type:Function,attribute:"onscroll"})],Ut.prototype,"onscroll",2),n([c({type:Object,attribute:"virtualizerprops"})],Ut.prototype,"virtualizerProps",2),n([c({type:Function,attribute:"setlistdata"})],Ut.prototype,"setlistdata",2);var Ba=Ut;Ba.register(dc);var tp=Ba;var rp=[go,u`
3980
+ `}};Ft.styles=[...v.styles,...mc],n([c({type:Function,attribute:"onscroll"})],Ft.prototype,"onscroll",2),n([c({type:Object,attribute:"virtualizerprops"})],Ft.prototype,"virtualizerProps",2),n([c({type:Function,attribute:"setlistdata"})],Ft.prototype,"setlistdata",2);var Ha=Ft;Ha.register(pc);var ip=Ha;var ap=[yo,u`
3981
3981
  :host {
3982
3982
  --mdc-tablist-focus-ring-outer-width: var(--mdc-focus-ring-outer-width);
3983
3983
  --mdc-tablist-gap: 0.5rem;
@@ -4007,7 +4007,7 @@
4007
4007
  :host mdc-button[prefix-icon="arrow-right-regular"] {
4008
4008
  margin-left: var(--mdc-tablist-arrow-button-margin);
4009
4009
  }
4010
- `],pc=[...rp];var hc=f.constructTagName("tablist"),ao={LEFT:"ArrowLeft",RIGHT:"ArrowRight",HOME:"Home",END:"End"},xr={FORWARD:"forward",BACKWARD:"backward"};var fi=i=>i[0],Ha=i=>i[i.length-1],uc=(i,t)=>{let e=i.findIndex(r=>t===r)-1;return i[(e+i.length)%i.length]},fc=(i,t)=>{let e=i.findIndex(r=>t===r)+1;return i[e%i.length]},bc=(i,t)=>i.find(e=>e.tabId===t),Ga=i=>i.find(t=>t.active);var Ae=class extends v{constructor(){super();this.showForwardArrowButton=!1;this.showBackwardArrowButton=!1;this.isRtl=()=>{var e;return((e=document.querySelector("html"))==null?void 0:e.getAttribute("dir"))==="rtl"||window.getComputedStyle(this).direction==="rtl"};this.fireTabChangeEvent=e=>{let r=new CustomEvent("change",{detail:{tabId:e.tabId}});this.dispatchEvent(r)};this.handleFocus=async e=>{if(e.relatedTarget instanceof ce||!(e.target instanceof ce))return;let r=Ga(this.tabs||[]);r instanceof ce&&await this.focusTab(r)};this.handleMousedown=e=>{e.target instanceof ce&&e.preventDefault()};this.handleNestedTabActiveChange=async e=>{e.stopPropagation();let r=e.target;r instanceof ce&&(this.setActiveTab(r),await this.focusTab(r),this.activeTabId=r.tabId)};this.resetTabIndexAndSetNewTabIndex=e=>{var r;(r=this.tabs)==null||r.forEach(o=>{o.setAttribute("tabindex",o===e?"0":"-1")})};this.setActiveTab=e=>{var r;(r=this.tabs)==null||r.forEach(o=>{o===e?o.setAttribute("active",""):o.removeAttribute("active")})};this.focusTab=async e=>{e instanceof ce&&(e!==(document==null?void 0:document.activeElement)&&(this.resetTabIndexAndSetNewTabIndex(e),e.focus()),e.scrollIntoView({behavior:"instant",block:"start",inline:"center"}),await this.handleArrowButtonVisibility())};this.handleKeydown=async e=>{let r=e.target;if(!(r instanceof ce)||!this.tabs)return;let o=uc(this.tabs,r),a=fc(this.tabs,r),s=fi(this.tabs),l=Ha(this.tabs);switch(e.code){case ao.LEFT:e.preventDefault(),await this.focusTab(this.isRtl()?a:o);break;case ao.RIGHT:e.preventDefault(),await this.focusTab(this.isRtl()?o:a);break;case ao.HOME:await this.focusTab(s);break;case ao.END:await this.focusTab(l);break;default:}};this.shouldShowArrowButton=e=>e===xr.FORWARD?this.showForwardArrowButton:this.showBackwardArrowButton;this.switchFocus=async()=>{var e,r;await this.updateComplete,!this.showBackwardArrowButton&&!this.showForwardArrowButton?(e=Ga(this.tabs||[]))==null||e.focus():(this.showBackwardArrowButton&&!this.showForwardArrowButton||this.showForwardArrowButton&&!this.showBackwardArrowButton)&&((r=this.notFocusedArrowButton)==null||r.focus())};this.handleArrowButtonVisibility=async()=>{var b,x,y;if(!this.tabs||!this.tabsContainer)return;let e=!1;((b=this.shadowRoot)==null?void 0:b.activeElement)instanceof bt&&(e=!0);let r=fi(this.tabs),o=Ha(this.tabs),a=r.getBoundingClientRect().left,s=(x=this.tabsContainer)==null?void 0:x.getBoundingClientRect().left,l=o.getBoundingClientRect().right,d=(y=this.tabsContainer)==null?void 0:y.getBoundingClientRect().right,p=r.getBoundingClientRect().right,h=o.getBoundingClientRect().left;if(!this.isRtl()){a<=s?this.showBackwardArrowButton=!0:this.showBackwardArrowButton=!1,l>d?this.showForwardArrowButton=!0:this.showForwardArrowButton=!1,e&&await this.switchFocus();return}p>d?this.showBackwardArrowButton=!0:this.showBackwardArrowButton=!1,h<s?this.showForwardArrowButton=!0:this.showForwardArrowButton=!1,e&&await this.switchFocus()};this.scrollTabs=async e=>{var a;let r=this.isRtl()?-1:1,o=this.isRtl()?1:-1;(a=this.tabsContainer)==null||a.scrollBy({left:this.tabsContainer.clientWidth*(e===xr.FORWARD?r:o),behavior:"instant"}),await this.handleArrowButtonVisibility()};this.addEventListener("keydown",this.handleKeydown),this.addEventListener("activechange",this.handleNestedTabActiveChange)}async firstUpdated(){var o,a,s;if(!this.tabs)return;if(Array.isArray(this.tabs)&&this.tabs.length===0){this.onerror&&this.onerror("The tablist component must have at least one child tab");return}let e=this.tabs.map(l=>l.tabId);new Set(e).size!==this.tabs.length&&this.onerror&&this.onerror("The tabs inside the tab list must have unique tab ids"),new ResizeObserver(async()=>{let{activeElement:l}=document;l instanceof ce&&l.scrollIntoView({behavior:"instant",block:"start",inline:"center"}),await this.handleArrowButtonVisibility()}).observe(this),this.activeTabId||(this.activeTabId=(o=fi(this.tabs))==null?void 0:o.tabId),(a=this.tabsContainer)==null||a.addEventListener("focusin",this.handleFocus),(s=this.tabsContainer)==null||s.addEventListener("mousedown",this.handleMousedown)}async update(e){if(super.update(e),e.has("activeTabId")){if(!this.tabs||!this.activeTabId)return;let r=bc(this.tabs,this.activeTabId);if(!(r instanceof ce))return;this.setActiveTab(r),e.get("activeTabId")?(this.fireTabChangeEvent(r),await this.focusTab(r)):this.resetTabIndexAndSetNewTabIndex(r)}}render(){let e=this.isRtl()?"left":"right",r=this.isRtl()?"right":"left",o=a=>m` ${this.shouldShowArrowButton(a)?m`<mdc-button
4010
+ `],uc=[...ap];var fc=f.constructTagName("tablist"),so={LEFT:"ArrowLeft",RIGHT:"ArrowRight",HOME:"Home",END:"End"},xr={FORWARD:"forward",BACKWARD:"backward"};var bi=i=>i[0],Ga=i=>i[i.length-1],bc=(i,t)=>{let e=i.findIndex(r=>t===r)-1;return i[(e+i.length)%i.length]},vc=(i,t)=>{let e=i.findIndex(r=>t===r)+1;return i[e%i.length]},gc=(i,t)=>i.find(e=>e.tabId===t),Wa=i=>i.find(t=>t.active);var Ae=class extends v{constructor(){super();this.showForwardArrowButton=!1;this.showBackwardArrowButton=!1;this.isRtl=()=>{var e;return((e=document.querySelector("html"))==null?void 0:e.getAttribute("dir"))==="rtl"||window.getComputedStyle(this).direction==="rtl"};this.fireTabChangeEvent=e=>{let r=new CustomEvent("change",{detail:{tabId:e.tabId}});this.dispatchEvent(r)};this.handleFocus=async e=>{if(e.relatedTarget instanceof ce||!(e.target instanceof ce))return;let r=Wa(this.tabs||[]);r instanceof ce&&await this.focusTab(r)};this.handleMousedown=e=>{e.target instanceof ce&&e.preventDefault()};this.handleNestedTabActiveChange=async e=>{e.stopPropagation();let r=e.target;r instanceof ce&&(this.setActiveTab(r),await this.focusTab(r),this.activeTabId=r.tabId)};this.resetTabIndexAndSetNewTabIndex=e=>{var r;(r=this.tabs)==null||r.forEach(o=>{o.setAttribute("tabindex",o===e?"0":"-1")})};this.setActiveTab=e=>{var r;(r=this.tabs)==null||r.forEach(o=>{o===e?o.setAttribute("active",""):o.removeAttribute("active")})};this.focusTab=async e=>{e instanceof ce&&(e!==(document==null?void 0:document.activeElement)&&(this.resetTabIndexAndSetNewTabIndex(e),e.focus()),e.scrollIntoView({behavior:"instant",block:"start",inline:"center"}),await this.handleArrowButtonVisibility())};this.handleKeydown=async e=>{let r=e.target;if(!(r instanceof ce)||!this.tabs)return;let o=bc(this.tabs,r),a=vc(this.tabs,r),s=bi(this.tabs),l=Ga(this.tabs);switch(e.code){case so.LEFT:e.preventDefault(),await this.focusTab(this.isRtl()?a:o);break;case so.RIGHT:e.preventDefault(),await this.focusTab(this.isRtl()?o:a);break;case so.HOME:await this.focusTab(s);break;case so.END:await this.focusTab(l);break;default:}};this.shouldShowArrowButton=e=>e===xr.FORWARD?this.showForwardArrowButton:this.showBackwardArrowButton;this.switchFocus=async()=>{var e,r;await this.updateComplete,!this.showBackwardArrowButton&&!this.showForwardArrowButton?(e=Wa(this.tabs||[]))==null||e.focus():(this.showBackwardArrowButton&&!this.showForwardArrowButton||this.showForwardArrowButton&&!this.showBackwardArrowButton)&&((r=this.notFocusedArrowButton)==null||r.focus())};this.handleArrowButtonVisibility=async()=>{var b,x,y;if(!this.tabs||!this.tabsContainer)return;let e=!1;((b=this.shadowRoot)==null?void 0:b.activeElement)instanceof vt&&(e=!0);let r=bi(this.tabs),o=Ga(this.tabs),a=r.getBoundingClientRect().left,s=(x=this.tabsContainer)==null?void 0:x.getBoundingClientRect().left,l=o.getBoundingClientRect().right,d=(y=this.tabsContainer)==null?void 0:y.getBoundingClientRect().right,p=r.getBoundingClientRect().right,h=o.getBoundingClientRect().left;if(!this.isRtl()){a<=s?this.showBackwardArrowButton=!0:this.showBackwardArrowButton=!1,l>d?this.showForwardArrowButton=!0:this.showForwardArrowButton=!1,e&&await this.switchFocus();return}p>d?this.showBackwardArrowButton=!0:this.showBackwardArrowButton=!1,h<s?this.showForwardArrowButton=!0:this.showForwardArrowButton=!1,e&&await this.switchFocus()};this.scrollTabs=async e=>{var a;let r=this.isRtl()?-1:1,o=this.isRtl()?1:-1;(a=this.tabsContainer)==null||a.scrollBy({left:this.tabsContainer.clientWidth*(e===xr.FORWARD?r:o),behavior:"instant"}),await this.handleArrowButtonVisibility()};this.addEventListener("keydown",this.handleKeydown),this.addEventListener("activechange",this.handleNestedTabActiveChange)}async firstUpdated(){var o,a,s;if(!this.tabs)return;if(Array.isArray(this.tabs)&&this.tabs.length===0){this.onerror&&this.onerror("The tablist component must have at least one child tab");return}let e=this.tabs.map(l=>l.tabId);new Set(e).size!==this.tabs.length&&this.onerror&&this.onerror("The tabs inside the tab list must have unique tab ids"),new ResizeObserver(async()=>{let{activeElement:l}=document;l instanceof ce&&l.scrollIntoView({behavior:"instant",block:"start",inline:"center"}),await this.handleArrowButtonVisibility()}).observe(this),this.activeTabId||(this.activeTabId=(o=bi(this.tabs))==null?void 0:o.tabId),(a=this.tabsContainer)==null||a.addEventListener("focusin",this.handleFocus),(s=this.tabsContainer)==null||s.addEventListener("mousedown",this.handleMousedown)}async update(e){if(super.update(e),e.has("activeTabId")){if(!this.tabs||!this.activeTabId)return;let r=gc(this.tabs,this.activeTabId);if(!(r instanceof ce))return;this.setActiveTab(r),e.get("activeTabId")?(this.fireTabChangeEvent(r),await this.focusTab(r)):this.resetTabIndexAndSetNewTabIndex(r)}}render(){let e=this.isRtl()?"left":"right",r=this.isRtl()?"right":"left",o=a=>m` ${this.shouldShowArrowButton(a)?m`<mdc-button
4011
4011
  variant="tertiary"
4012
4012
  prefix-icon="arrow-${a===xr.FORWARD?e:r}-regular"
4013
4013
  aria-label="Scroll tabs ${a===xr.FORWARD?e:r}"
@@ -4020,11 +4020,11 @@
4020
4020
  aria-label="${T(this.dataAriaLabel)}">
4021
4021
  <slot></slot>
4022
4022
  </div>
4023
- ${o(xr.FORWARD)}`}};Ae.styles=[...v.styles,...pc],n([c({type:String,attribute:"active-tab-id",reflect:!0})],Ae.prototype,"activeTabId",2),n([c({type:String,attribute:"data-aria-label"})],Ae.prototype,"dataAriaLabel",2),n([$e(".container")],Ae.prototype,"tabsContainer",2),n([$e("mdc-button:not(:focus-visible)")],Ae.prototype,"notFocusedArrowButton",2),n([ie({selector:"mdc-tab"})],Ae.prototype,"tabs",2),n([N()],Ae.prototype,"showForwardArrowButton",2),n([N()],Ae.prototype,"showBackwardArrowButton",2);var Wa=Ae;Wa.register(hc);var op=Wa;var Er=class extends Lo(at){constructor(){super(...arguments);this.size=te.SIZE}setSoftDisabled(e,r){r?e.setAttribute("aria-disabled","true"):e.removeAttribute("aria-disabled")}update(e){super.update(e),e.has("softDisabled")&&this.setSoftDisabled(this,this.softDisabled),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()}render(){return m`
4023
+ ${o(xr.FORWARD)}`}};Ae.styles=[...v.styles,...uc],n([c({type:String,attribute:"active-tab-id",reflect:!0})],Ae.prototype,"activeTabId",2),n([c({type:String,attribute:"data-aria-label"})],Ae.prototype,"dataAriaLabel",2),n([$e(".container")],Ae.prototype,"tabsContainer",2),n([$e("mdc-button:not(:focus-visible)")],Ae.prototype,"notFocusedArrowButton",2),n([ie({selector:"mdc-tab"})],Ae.prototype,"tabs",2),n([N()],Ae.prototype,"showForwardArrowButton",2),n([N()],Ae.prototype,"showBackwardArrowButton",2);var Ya=Ae;Ya.register(fc);var sp=Ya;var Er=class extends Ro(st){constructor(){super(...arguments);this.size=te.SIZE}setSoftDisabled(e,r){r?e.setAttribute("aria-disabled","true"):e.removeAttribute("aria-disabled")}update(e){super.update(e),e.has("softDisabled")&&this.setSoftDisabled(this,this.softDisabled),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()}render(){return m`
4024
4024
  ${this.prefixIcon?m` <mdc-icon name="${this.prefixIcon}" part="prefix-icon"></mdc-icon>`:""}
4025
4025
  <slot @slotchange=${this.inferButtonType}></slot>
4026
4026
  ${this.postfixIcon?m` <mdc-icon name="${this.postfixIcon}" part="postfix-icon"></mdc-icon>`:""}
4027
- `}};Er.styles=[...bt.styles],n([c({type:Number,reflect:!0})],Er.prototype,"size",2),n([c({type:Boolean,attribute:"soft-disabled",reflect:!0})],Er.prototype,"softDisabled",2);var Ya=Er;var vc=f.constructTagName("buttonlink");Ya.register(vc);var ip=Ya;at.register(pl);var ap=at;})();
4027
+ `}};Er.styles=[...vt.styles],n([c({type:Number,reflect:!0})],Er.prototype,"size",2),n([c({type:Boolean,attribute:"soft-disabled",reflect:!0})],Er.prototype,"softDisabled",2);var qa=Er;var yc=f.constructTagName("buttonlink");qa.register(yc);var np=qa;st.register(ul);var lp=st;var vi=class extends Ye{connectedCallback(){super.connectedCallback(),this.role="menuitem",this.variant=Jr.INSET_RECTANGLE}};vi.styles=[...Ye.styles];var Za=vi;var xc=f.constructTagName("menuitem");Za.register(xc);var cp=Za;})();
4028
4028
  /*! Bundled license information:
4029
4029
 
4030
4030
  @lit/reactive-element/css-tag.js: